Commit 3f2dba1
Added Strands Agents sample (#472)
* Added Strands Agents sample
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Add snipsync markers to Strands Agents samples
Wraps each Strands Agents sample with @@@SNIPSTART/@@@SNIPEND markers
(typescript-strands-* labels) so the TypeScript integration guide in the
documentation repo can pull snippets via snipsync.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: bump strands-agents sample to 1.21.1
Switch @temporalio/strands-agents and @temporalio/workflow-streams from
local tgz references to published npm packages, and bump all @temporalio/*
deps from 1.17.2 to 1.21.1.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: register strands-agents in list-of-samples
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore: fix CI for strands-agents (lockfile, shared configs, formatting)
- Regenerate pnpm-lock.yaml (was stale after the 1.21.1 dep bump, which
failed CI's frozen-lockfile install)
- Add missing shared config files (.gitignore, .npmrc, .nvmrc,
.post-create, .prettierignore, .prettierrc) that the sample was created
without
- Run prettier over the sample source to satisfy format:check
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix: convert strands-agents sample to ESM so CI passes
@strands-agents/sdk is ESM-only (every published version sets
"type": "module"), which the repo's nodenext tsconfig cannot consume from a
CommonJS sample. Under npm's flat node_modules this was masked, but pnpm's
strict layout (used in CI) surfaces it as a build failure, and CommonJS also
can't require() the SDK on Node 20.
Convert the sample to ESM, following the fetch-esm template:
- package.json: "type": "module"; run scripts via tsx (drop ts-node/nodemon);
mocha runs under tsx; add @temporalio/common (was imported but undeclared)
- tsconfig.json: module esnext / moduleResolution node / noEmit
- worker.ts + tests: replace require.resolve/__dirname with import.meta.url
(new src/mocha/workflows-path.ts helper for the test suite)
- rename .eslintrc.js -> .eslintrc.cjs (CommonJS config under type: module)
- exclude strands-agents from the shared tsconfig/eslintrc copies
Also patch @temporalio/strands-agents@1.21.1 via pnpm.packageExtensions: it
calls zod 4's z.toJSONSchema at runtime but only declares zod as a
devDependency, so pnpm's strict layout leaves it unresolvable. Declaring the
dependency links the correct zod v4 for that package only.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5c245e0 commit 3f2dba1
51 files changed
Lines changed: 2315 additions & 69 deletions
File tree
- .scripts
- strands-agents
- src
- activities
- mocha
- workflows
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments