Skip to content

Commit e6e1f6d

Browse files
committed
Merge remote-tracking branch 'origin/main' into ai-sdk-streaming-sample
# Conflicts: # pnpm-lock.yaml
2 parents 4165e76 + 3f2dba1 commit e6e1f6d

51 files changed

Lines changed: 2328 additions & 93 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.scripts/copy-shared-files.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const TSCONFIG_EXCLUDE = [
1919
'nextjs-ecommerce-oneclick',
2020
'monorepo-folders',
2121
'fetch-esm',
22+
'strands-agents',
2223
'production',
2324
'hello-world-js',
2425
'food-delivery',
@@ -42,6 +43,7 @@ const ESLINTRC_EXCLUDE = [
4243
'nextjs-ecommerce-oneclick',
4344
'monorepo-folders',
4445
'fetch-esm',
46+
'strands-agents',
4547
'hello-world-js',
4648
'protobufs',
4749
'food-delivery',

.scripts/list-of-samples.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"snippets",
5050
"standalone-activity",
5151
"state",
52+
"strands-agents",
5253
"timer-examples",
5354
"timer-progress",
5455
"vscode-debugger",

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
"peerDependencies": {
3434
"ts-node": "*"
3535
}
36+
},
37+
"@temporalio/strands-agents": {
38+
"dependencies": {
39+
"zod": "^4.0.0"
40+
}
3641
}
3742
}
3843
}

pnpm-lock.yaml

Lines changed: 833 additions & 93 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

strands-agents/.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
lib
3+
.eslintrc.js

strands-agents/.eslintrc.cjs

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
const { builtinModules } = require('module');
2+
3+
const ALLOWED_NODE_BUILTINS = new Set(['assert']);
4+
5+
module.exports = {
6+
root: true,
7+
parser: '@typescript-eslint/parser',
8+
parserOptions: {
9+
project: './tsconfig.json',
10+
tsconfigRootDir: __dirname,
11+
},
12+
plugins: ['@typescript-eslint', 'deprecation'],
13+
extends: [
14+
'eslint:recommended',
15+
'plugin:@typescript-eslint/eslint-recommended',
16+
'plugin:@typescript-eslint/recommended',
17+
'prettier',
18+
],
19+
rules: {
20+
'@typescript-eslint/no-floating-promises': 'error',
21+
'deprecation/deprecation': 'warn',
22+
'object-shorthand': ['error', 'always'],
23+
'@typescript-eslint/no-unused-vars': [
24+
'warn',
25+
{
26+
argsIgnorePattern: '^_',
27+
varsIgnorePattern: '^_',
28+
},
29+
],
30+
'@typescript-eslint/no-explicit-any': 'off',
31+
},
32+
overrides: [
33+
{
34+
files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'],
35+
rules: {
36+
'no-restricted-imports': [
37+
'error',
38+
...builtinModules.filter((m) => !ALLOWED_NODE_BUILTINS.has(m)).flatMap((m) => [m, `node:${m}`]),
39+
],
40+
},
41+
},
42+
],
43+
};

strands-agents/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lib
2+
node_modules

strands-agents/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

strands-agents/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

strands-agents/.post-create

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
To begin development, install the Temporal CLI:
2+
3+
Mac: {cyan brew install temporal}
4+
Other: Download and extract the latest release from https://github.com/temporalio/cli/releases/latest
5+
6+
Start Temporal Server:
7+
8+
{cyan temporal server start-dev}
9+
10+
Use Node version 18+ (v22.x is recommended):
11+
12+
Mac: {cyan brew install node@22}
13+
Other: https://nodejs.org/en/download/
14+
15+
Then, in the project directory, using two other shells, run these commands:
16+
17+
{cyan npm run start.watch}
18+
{cyan npm run workflow}

0 commit comments

Comments
 (0)