@aws/nx-plugin 0.99.1 → 0.101.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE-THIRD-PARTY +14 -94
- package/generators.json +27 -19
- package/package.json +1 -1
- package/src/preset/__snapshots__/generator.spec.ts.snap +2 -0
- package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +10 -10
- package/src/py/mcp-server/files/deploy/Dockerfile.template +1 -1
- package/src/py/mcp-server/generator.js +10 -2
- package/src/py/mcp-server/generator.js.map +1 -1
- package/src/py/strands-agent/__snapshots__/generator.spec.ts.snap +43 -12
- package/src/py/strands-agent/files/ag-ui/main.py.template +19 -0
- package/src/py/strands-agent/files/deploy/Dockerfile.template +3 -1
- package/src/py/strands-agent/generator.js +20 -7
- package/src/py/strands-agent/generator.js.map +1 -1
- package/src/py/strands-agent/react-connection/__snapshots__/generator.spec.ts.snap +133 -0
- package/src/py/strands-agent/react-connection/generator.js +69 -56
- package/src/py/strands-agent/react-connection/generator.js.map +1 -1
- package/src/py/strands-agent/react-connection/serve-local.d.ts +6 -2
- package/src/py/strands-agent/react-connection/serve-local.js +11 -6
- package/src/py/strands-agent/react-connection/serve-local.js.map +1 -1
- package/src/py/strands-agent/schema.d.ts +1 -1
- package/src/py/strands-agent/schema.json +2 -2
- package/src/ts/astro-docs/__snapshots__/generator.spec.ts.snap +223 -0
- package/src/ts/astro-docs/files/base/README.md.template +63 -0
- package/src/ts/astro-docs/files/base/astro.config.mjs.template +47 -0
- package/src/ts/astro-docs/files/base/src/components/link.astro.template +25 -0
- package/src/ts/astro-docs/files/base/src/components/snippet.astro.template +20 -0
- package/src/ts/astro-docs/files/base/src/content/docs/en/blog/welcome.mdx.template +13 -0
- package/src/ts/astro-docs/files/base/src/content/docs/en/guides/getting-started.mdx.template +64 -0
- package/src/ts/astro-docs/files/base/src/content/docs/en/index.mdx.template +29 -0
- package/src/ts/astro-docs/files/base/src/content/docs/en/snippets/example.mdx.template +7 -0
- package/src/ts/astro-docs/files/base/src/content.config.ts.template +13 -0
- package/src/ts/astro-docs/files/base/src/styles/custom.css.template +1 -0
- package/src/ts/astro-docs/files/base/tsconfig.json.template +12 -0
- package/src/ts/astro-docs/files/translation/scripts/translate.config.json.template +10 -0
- package/src/ts/astro-docs/files/translation/scripts/translate.ts.template +430 -0
- package/src/ts/astro-docs/generator.d.ts +10 -0
- package/src/ts/astro-docs/generator.js +113 -0
- package/src/ts/astro-docs/generator.js.map +1 -0
- package/src/ts/astro-docs/schema.d.ts +30 -0
- package/src/ts/astro-docs/schema.json +62 -0
- package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +10 -10
- package/src/ts/mcp-server/files/Dockerfile.template +1 -1
- package/src/ts/mcp-server/generator.js +9 -1
- package/src/ts/mcp-server/generator.js.map +1 -1
- package/src/ts/react-website/agui/files/src/components/AguiProvider.tsx.template +19 -0
- package/src/ts/react-website/agui/files/src/hooks/useAgui__agentNameClassName__.tsx.template +142 -0
- package/src/ts/react-website/agui/generator.d.ts +26 -0
- package/src/ts/react-website/agui/generator.js +98 -0
- package/src/ts/react-website/agui/generator.js.map +1 -0
- package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +49 -0
- package/src/ts/react-website/cognito-auth/__snapshots__/generator.spec.ts.snap +2 -0
- package/src/ts/strands-agent/__snapshots__/generator.spec.ts.snap +43 -12
- package/src/ts/strands-agent/files/deploy/Dockerfile.template +1 -1
- package/src/ts/strands-agent/generator.js +14 -1
- package/src/ts/strands-agent/generator.js.map +1 -1
- package/src/ts/strands-agent/schema.d.ts +1 -1
- package/src/ts/strands-agent/schema.json +2 -2
- package/src/utils/__snapshots__/shared-constructs.spec.ts.snap +24 -0
- package/src/utils/agent-core-constructs/agent-core-constructs.d.ts +3 -0
- package/src/utils/agent-core-constructs/agent-core-constructs.js +2 -0
- package/src/utils/agent-core-constructs/agent-core-constructs.js.map +1 -1
- package/src/utils/agent-core-constructs/files/cdk/app/agent-core/__nameKebabCase__/__nameKebabCase__.ts.template +26 -11
- package/src/utils/agent-core-constructs/files/terraform/app/agent-core/__nameKebabCase__/__nameKebabCase__.tf.template +13 -1
- package/src/utils/files/common/constructs/src/core/index.ts.template +2 -1
- package/src/utils/files/common/constructs/src/core/workspace.ts.template +19 -0
- package/src/utils/versions.d.ts +18 -1
- package/src/utils/versions.js +17 -0
- package/src/utils/versions.js.map +1 -1
- package/src/utils/agent-core-constructs/files/cdk/app/agent-core/__nameKebabCase__/Dockerfile.template +0 -1
|
@@ -17,6 +17,7 @@ const iac_1 = require("../../utils/iac");
|
|
|
17
17
|
const shared_constructs_1 = require("../../utils/shared-constructs");
|
|
18
18
|
const agent_core_constructs_1 = require("../../utils/agent-core-constructs/agent-core-constructs");
|
|
19
19
|
const port_1 = require("../../utils/port");
|
|
20
|
+
const fs_1 = require("../../utils/fs");
|
|
20
21
|
exports.TS_STRANDS_AGENT_GENERATOR_INFO = (0, nx_1.getGeneratorInfo)(__filename);
|
|
21
22
|
const tsStrandsAgentGenerator = async (tree, options) => {
|
|
22
23
|
const project = (0, nx_1.readProjectConfigurationUnqualified)(tree, options.project);
|
|
@@ -34,6 +35,11 @@ const tsStrandsAgentGenerator = async (tree, options) => {
|
|
|
34
35
|
const computeType = options.computeType ?? 'BedrockAgentCoreRuntime';
|
|
35
36
|
const auth = options.auth ?? 'IAM';
|
|
36
37
|
const protocol = options.protocol ?? 'HTTP';
|
|
38
|
+
if (protocol === 'AG-UI') {
|
|
39
|
+
throw new Error(`The AG-UI protocol is not yet supported for TypeScript Strands Agents. ` +
|
|
40
|
+
`Use a Python Strands Agent with protocol='AG-UI' instead, or choose 'HTTP' or 'A2A' for TypeScript. ` +
|
|
41
|
+
`Track TypeScript support at https://github.com/strands-agents/sdk-typescript/issues/347`);
|
|
42
|
+
}
|
|
37
43
|
const templateContext = {
|
|
38
44
|
name,
|
|
39
45
|
agentNameClassName,
|
|
@@ -57,12 +63,18 @@ const tsStrandsAgentGenerator = async (tree, options) => {
|
|
|
57
63
|
protocol,
|
|
58
64
|
adotVersion: versions_1.TS_VERSIONS['@aws/aws-distro-opentelemetry-node-autoinstrumentation'],
|
|
59
65
|
}, { overwriteStrategy: devkit_1.OverwriteStrategy.KeepExisting });
|
|
66
|
+
const dockerOutputDir = (0, devkit_1.joinPathFragments)('dist', project.root, 'bundle', 'agent', name);
|
|
60
67
|
const dockerTargetName = `${agentTargetPrefix}-docker`;
|
|
68
|
+
const fs = new fs_1.FsCommands(tree);
|
|
61
69
|
project.targets[dockerTargetName] = {
|
|
62
70
|
cache: true,
|
|
63
71
|
executor: 'nx:run-commands',
|
|
64
72
|
options: {
|
|
65
|
-
|
|
73
|
+
commands: [
|
|
74
|
+
fs.cp(`${targetSourceDir}/Dockerfile`, `${dockerOutputDir}/Dockerfile`),
|
|
75
|
+
`docker build --platform linux/arm64 -t ${dockerImageTag} ${dockerOutputDir}`,
|
|
76
|
+
],
|
|
77
|
+
parallel: false,
|
|
66
78
|
},
|
|
67
79
|
dependsOn: ['bundle'],
|
|
68
80
|
};
|
|
@@ -76,6 +88,7 @@ const tsStrandsAgentGenerator = async (tree, options) => {
|
|
|
76
88
|
agentNameClassName,
|
|
77
89
|
projectName: project.name,
|
|
78
90
|
dockerImageTag,
|
|
91
|
+
dockerOutputDir,
|
|
79
92
|
iacProvider,
|
|
80
93
|
auth,
|
|
81
94
|
serverProtocol: protocol,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/ts/strands-agent/generator.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCASoB;AAEpB,uCAMwB;AACxB,iDAAsE;AACtE,+CAA0D;AAC1D,6CAA2D;AAC3D,mDAAiE;AACjE,qDAAoD;AACpD,sDAAsE;AACtE,yCAAqD;AACrD,qEAA0E;AAC1E,mGAAwF;AAExF,2CAA8C;
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages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O,EAAE;oBACP,QAAQ,EAAE,CAAC,eAAe,iBAAiB,WAAW,CAAC;oBACvD,GAAG,EAAE,eAAe;oBACpB,GAAG,EAAE;wBACH,IAAI,EAAE,GAAG,YAAY,EAAE;qBACxB;iBACF;gBACD,UAAU,EAAE,IAAI;aACjB;YACD,CAAC,GAAG,iBAAiB,cAAc,CAAC,EAAE;gBACpC,QAAQ,EAAE,iBAAiB;gBAC3B,OAAO,EAAE;oBACP,QAAQ,EAAE,CAAC,eAAe,iBAAiB,WAAW,CAAC;oBACvD,GAAG,EAAE,eAAe;oBACpB,GAAG,EAAE;wBACH,IAAI,EAAE,GAAG,YAAY,EAAE;wBACvB,WAAW,EAAE,MAAM;qBACpB;iBACF;gBACD,UAAU,EAAE,IAAI;aACjB;SACF;KACF,CAAC,CAAC;IAEH,IAAA,kCAA6B,EAC3B,IAAI,EACJ,OAAO,CAAC,IAAI,EACZ,uCAA+B,EAC/B,oCAAoC,EACpC,iBAAiB,EACjB,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,QAAQ,EAAE,CAC/D,CAAC;IAEF,MAAM,IAAA,yCAA+B,EAAC,IAAI,EAAE;QAC1C,uCAA+B;KAChC,CAAC,CAAC;IAEH,MAAM,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAC;IACjC,OAAO,GAAG,EAAE;QACV,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC;AACJ,CAAC,CAAC;AArNW,QAAA,uBAAuB,2BAqNlC;AAEF,kBAAe,+BAAuB,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { IacProviderOption } from '../../utils/iac';
|
|
7
7
|
|
|
8
8
|
export type TsStrandsAgentComputeType = 'BedrockAgentCoreRuntime' | 'None';
|
|
9
|
-
export type StrandsAgentProtocol = 'HTTP' | 'A2A';
|
|
9
|
+
export type StrandsAgentProtocol = 'HTTP' | 'A2A' | 'AG-UI';
|
|
10
10
|
|
|
11
11
|
export type TsStrandsAgentAuth = 'IAM' | 'Cognito';
|
|
12
12
|
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"protocol": {
|
|
40
40
|
"type": "string",
|
|
41
|
-
"description": "The server protocol for your Strands Agent. HTTP exposes a tRPC/WebSocket server. A2A exposes an Agent-to-Agent protocol server.",
|
|
41
|
+
"description": "The server protocol for your Strands Agent. HTTP exposes a tRPC/WebSocket server. A2A exposes an Agent-to-Agent protocol server. AG-UI is not yet supported for TypeScript agents.",
|
|
42
42
|
"x-prompt": "Which protocol would you like to use for your Strands Agent?",
|
|
43
|
-
"enum": ["HTTP", "A2A"],
|
|
43
|
+
"enum": ["HTTP", "A2A", "AG-UI"],
|
|
44
44
|
"default": "HTTP",
|
|
45
45
|
"x-priority": "important"
|
|
46
46
|
},
|
|
@@ -83,6 +83,7 @@ exports[`shared-constructs utils > sharedConstructsGenerator > should generate s
|
|
|
83
83
|
"export * from './app.js';
|
|
84
84
|
export * from './checkov.js';
|
|
85
85
|
export * from './runtime-config.js';
|
|
86
|
+
export * from './workspace.js';
|
|
86
87
|
"
|
|
87
88
|
`;
|
|
88
89
|
|
|
@@ -272,6 +273,29 @@ export class RuntimeConfig extends Construct {
|
|
|
272
273
|
"
|
|
273
274
|
`;
|
|
274
275
|
|
|
276
|
+
exports[`shared-constructs utils > sharedConstructsGenerator > should generate shared constructs when they do not exist > packages/common/constructs/src/core/workspace.ts 1`] = `
|
|
277
|
+
"import * as fs from 'fs';
|
|
278
|
+
import * as path from 'path';
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Find the workspace root by walking up from the given file path
|
|
282
|
+
* until we find nx.json (the marker for an Nx workspace root).
|
|
283
|
+
*/
|
|
284
|
+
export const findWorkspaceRoot = (startPath: string): string => {
|
|
285
|
+
let dir = fs.statSync(startPath).isDirectory()
|
|
286
|
+
? startPath
|
|
287
|
+
: path.dirname(startPath);
|
|
288
|
+
while (dir !== path.dirname(dir)) {
|
|
289
|
+
if (fs.existsSync(path.join(dir, 'nx.json'))) {
|
|
290
|
+
return dir;
|
|
291
|
+
}
|
|
292
|
+
dir = path.dirname(dir);
|
|
293
|
+
}
|
|
294
|
+
throw new Error(\`Could not find workspace root (nx.json) from \${startPath}\`);
|
|
295
|
+
};
|
|
296
|
+
"
|
|
297
|
+
`;
|
|
298
|
+
|
|
275
299
|
exports[`shared-constructs utils > sharedConstructsGenerator > should generate shared constructs when they do not exist > packages/common/constructs/src/index.ts 1`] = `
|
|
276
300
|
"export * from './app/index.js';
|
|
277
301
|
export * from './core/index.js';
|
|
@@ -13,6 +13,7 @@ export interface AddAgentCoreInfraProps {
|
|
|
13
13
|
nameKebabCase: string;
|
|
14
14
|
projectName: string;
|
|
15
15
|
dockerImageTag: string;
|
|
16
|
+
dockerOutputDir: string;
|
|
16
17
|
appDirectory: string;
|
|
17
18
|
serverProtocol: 'MCP' | 'HTTP' | 'A2A';
|
|
18
19
|
auth: AgentCoreAuth;
|
|
@@ -22,6 +23,7 @@ export interface AddMcpServerInfraProps {
|
|
|
22
23
|
mcpServerNameKebabCase: string;
|
|
23
24
|
projectName: string;
|
|
24
25
|
dockerImageTag: string;
|
|
26
|
+
dockerOutputDir: string;
|
|
25
27
|
auth: AgentCoreAuth;
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
@@ -33,6 +35,7 @@ export interface AddAgentInfraProps {
|
|
|
33
35
|
agentNameKebabCase: string;
|
|
34
36
|
projectName: string;
|
|
35
37
|
dockerImageTag: string;
|
|
38
|
+
dockerOutputDir: string;
|
|
36
39
|
auth: AgentCoreAuth;
|
|
37
40
|
serverProtocol?: 'HTTP' | 'A2A';
|
|
38
41
|
}
|
|
@@ -64,6 +64,7 @@ const addMcpServerInfra = async (tree, options) => {
|
|
|
64
64
|
nameClassName: options.mcpServerNameClassName,
|
|
65
65
|
nameKebabCase: options.mcpServerNameKebabCase,
|
|
66
66
|
dockerImageTag: options.dockerImageTag,
|
|
67
|
+
dockerOutputDir: options.dockerOutputDir,
|
|
67
68
|
projectName: options.projectName,
|
|
68
69
|
appDirectory: 'mcp-servers',
|
|
69
70
|
serverProtocol: 'MCP',
|
|
@@ -81,6 +82,7 @@ const addAgentInfra = async (tree, options) => {
|
|
|
81
82
|
nameKebabCase: options.agentNameKebabCase,
|
|
82
83
|
projectName: options.projectName,
|
|
83
84
|
dockerImageTag: options.dockerImageTag,
|
|
85
|
+
dockerOutputDir: options.dockerOutputDir,
|
|
84
86
|
appDirectory: 'agents',
|
|
85
87
|
serverProtocol: options.serverProtocol ?? 'HTTP',
|
|
86
88
|
iacProvider: options.iacProvider,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-core-constructs.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/utils/agent-core-constructs/agent-core-constructs.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCAQoB;AACpB,gFAIwC;AACxC,gCAAuC;AAEvC,0CAA2C;
|
|
1
|
+
{"version":3,"file":"agent-core-constructs.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/utils/agent-core-constructs/agent-core-constructs.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,uCAQoB;AACpB,gFAIwC;AACxC,gCAAuC;AAEvC,0CAA2C;AAiB3C,MAAM,iBAAiB,GAAG,KAAK,EAC7B,IAAU,EACV,OAA8D,EAC9D,EAAE;IACF,QAAQ,OAAO,CAAC,WAAW,EAAE,CAAC;QAC5B,KAAK,KAAK;YACR,MAAM,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAC1C,MAAM;QACR,KAAK,WAAW;YACd,0BAA0B,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAC1C,MAAM;IACV,CAAC;IAED,qFAAqF;IACrF,IAAA,mBAAU,EACR,IAAI,EACJ,IAAA,0BAAiB,EACf,0CAAY,EACZ,OAAO,CAAC,WAAW,KAAK,KAAK;QAC3B,CAAC,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,OAAO,CAAC,cAAc;QACtC,eAAe,EAAE,OAAO,CAAC,eAAe;QACxC,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,YAAY,EAAE,aAAa;QAC3B,cAAc,EAAE,KAAK;QACrB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC,CAAC;AACL,CAAC,CAAC;AAfW,QAAA,iBAAiB,qBAe5B;AAYF;;GAEG;AACI,MAAM,aAAa,GAAG,KAAK,EAChC,IAAU,EACV,OAAyC,EACzC,EAAE;IACF,MAAM,iBAAiB,CAAC,IAAI,EAAE;QAC5B,aAAa,EAAE,OAAO,CAAC,kBAAkB;QACzC,aAAa,EAAE,OAAO,CAAC,kBAAkB;QACzC,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,eAAe,EAAE,OAAO,CAAC,eAAe;QACxC,YAAY,EAAE,QAAQ;QACtB,cAAc,EAAE,OAAO,CAAC,cAAc,IAAI,MAAM;QAChD,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC,CAAC;AACL,CAAC,CAAC;AAfW,QAAA,aAAa,iBAexB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Lazy, Names } from 'aws-cdk-lib';
|
|
2
2
|
import { Platform } from 'aws-cdk-lib/aws-ecr-assets';
|
|
3
3
|
import { Construct } from 'constructs';
|
|
4
|
-
import { execSync } from 'child_process';
|
|
5
4
|
import * as path from 'path';
|
|
6
5
|
import * as url from 'url';
|
|
7
6
|
import {
|
|
@@ -13,11 +12,12 @@ import {
|
|
|
13
12
|
RuntimeAuthorizerConfiguration,
|
|
14
13
|
<%_ } _%>
|
|
15
14
|
} from '@aws-cdk/aws-bedrock-agentcore-alpha';
|
|
16
|
-
import { IGrantable, IPrincipal<%_ if (auth === 'IAM') { _%>, Grant<%_ } _%> } from 'aws-cdk-lib/aws-iam';
|
|
15
|
+
import { <%_ if (serverProtocol !== 'MCP') { _%>PolicyStatement, <%_ } _%>IGrantable, IPrincipal<%_ if (auth === 'IAM') { _%>, Grant<%_ } _%> } from 'aws-cdk-lib/aws-iam';
|
|
17
16
|
<%_ if (auth === 'Cognito') { _%>
|
|
18
17
|
import { IUserPool, IUserPoolClient } from 'aws-cdk-lib/aws-cognito';
|
|
19
18
|
<%_ } _%>
|
|
20
19
|
import { RuntimeConfig } from '../../../core/runtime-config.js';
|
|
20
|
+
import { findWorkspaceRoot } from '../../../core/workspace.js';
|
|
21
21
|
|
|
22
22
|
<%_ if (auth === 'IAM') { _%>
|
|
23
23
|
export type <%- nameClassName %>Props = Omit<
|
|
@@ -54,17 +54,16 @@ export class <%- nameClassName %> extends Construct implements IGrantable {
|
|
|
54
54
|
|
|
55
55
|
const rc = RuntimeConfig.ensure(this);
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
extraHash: execSync(
|
|
62
|
-
`docker inspect <%- dockerImageTag %> --format '{{.Id}}'`,
|
|
63
|
-
{ encoding: 'utf-8' },
|
|
64
|
-
).trim(),
|
|
65
|
-
},
|
|
57
|
+
// Resolve the bundle output directory containing the Dockerfile and built artifacts
|
|
58
|
+
const bundleDir = path.join(
|
|
59
|
+
findWorkspaceRoot(url.fileURLToPath(new URL(import.meta.url))),
|
|
60
|
+
'<%- dockerOutputDir %>',
|
|
66
61
|
);
|
|
67
62
|
|
|
63
|
+
this.dockerImage = AgentRuntimeArtifact.fromAsset(bundleDir, {
|
|
64
|
+
platform: Platform.LINUX_ARM64,
|
|
65
|
+
});
|
|
66
|
+
|
|
68
67
|
<%_ if (auth === 'Cognito') { _%>
|
|
69
68
|
const { identity, ...restProps } = props;
|
|
70
69
|
|
|
@@ -95,6 +94,22 @@ export class <%- nameClassName %> extends Construct implements IGrantable {
|
|
|
95
94
|
},
|
|
96
95
|
});
|
|
97
96
|
|
|
97
|
+
<%_ if (serverProtocol !== 'MCP') { _%>
|
|
98
|
+
// Grant access for the agent to invoke bedrock models
|
|
99
|
+
this.agentCoreRuntime.addToRolePolicy(
|
|
100
|
+
new PolicyStatement({
|
|
101
|
+
actions: [
|
|
102
|
+
'bedrock:InvokeModel',
|
|
103
|
+
'bedrock:InvokeModelWithResponseStream',
|
|
104
|
+
],
|
|
105
|
+
resources: [
|
|
106
|
+
'arn:aws:bedrock:*:*:foundation-model/*',
|
|
107
|
+
'arn:aws:bedrock:*:*:inference-profile/*',
|
|
108
|
+
],
|
|
109
|
+
}),
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
<%_ } _%>
|
|
98
113
|
rc.grantReadAppConfig(this.agentCoreRuntime);
|
|
99
114
|
|
|
100
115
|
rc.set('agentcore', 'agentRuntimes', {
|
|
@@ -69,7 +69,19 @@ module "agent_core_runtime" {
|
|
|
69
69
|
"appconfig:GetLatestConfiguration"
|
|
70
70
|
]
|
|
71
71
|
Resource = ["${module.appconfig.application_arn}/*"]
|
|
72
|
-
}
|
|
72
|
+
}<% if (serverProtocol !== 'MCP') { %>,
|
|
73
|
+
# Grant access for the agent to invoke bedrock models
|
|
74
|
+
{
|
|
75
|
+
Effect = "Allow"
|
|
76
|
+
Action = [
|
|
77
|
+
"bedrock:InvokeModel",
|
|
78
|
+
"bedrock:InvokeModelWithResponseStream"
|
|
79
|
+
]
|
|
80
|
+
Resource = [
|
|
81
|
+
"arn:aws:bedrock:*:*:foundation-model/*",
|
|
82
|
+
"arn:aws:bedrock:*:*:inference-profile/*"
|
|
83
|
+
]
|
|
84
|
+
}<% } %>
|
|
73
85
|
], var.additional_iam_policy_statements)
|
|
74
86
|
tags = var.tags
|
|
75
87
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as fs from 'fs';
|
|
2
|
+
import * as path from 'path';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Find the workspace root by walking up from the given file path
|
|
6
|
+
* until we find nx.json (the marker for an Nx workspace root).
|
|
7
|
+
*/
|
|
8
|
+
export const findWorkspaceRoot = (startPath: string): string => {
|
|
9
|
+
let dir = fs.statSync(startPath).isDirectory()
|
|
10
|
+
? startPath
|
|
11
|
+
: path.dirname(startPath);
|
|
12
|
+
while (dir !== path.dirname(dir)) {
|
|
13
|
+
if (fs.existsSync(path.join(dir, 'nx.json'))) {
|
|
14
|
+
return dir;
|
|
15
|
+
}
|
|
16
|
+
dir = path.dirname(dir);
|
|
17
|
+
}
|
|
18
|
+
throw new Error(`Could not find workspace root (nx.json) from ${startPath}`);
|
|
19
|
+
};
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare const TS_VERSIONS: {
|
|
|
9
9
|
readonly '@a2a-js/sdk': "0.3.13";
|
|
10
10
|
readonly '@aws/aws-distro-opentelemetry-node-autoinstrumentation': "0.10.0";
|
|
11
11
|
readonly '@aws-sdk/client-dynamodb': "3.1029.0";
|
|
12
|
+
readonly '@aws-sdk/client-bedrock-runtime': "3.1029.0";
|
|
12
13
|
readonly '@aws-sdk/client-sts': "3.1029.0";
|
|
13
14
|
readonly '@aws-sdk/credential-providers': "3.1029.0";
|
|
14
15
|
readonly '@aws-smithy/server-apigateway': "1.0.0-alpha.10";
|
|
@@ -27,6 +28,9 @@ export declare const TS_VERSIONS: {
|
|
|
27
28
|
readonly 'create-nx-workspace': "22.6.5";
|
|
28
29
|
readonly '@modelcontextprotocol/sdk': "1.29.0";
|
|
29
30
|
readonly '@modelcontextprotocol/inspector': "0.19.0";
|
|
31
|
+
readonly '@ag-ui/client': "0.0.52";
|
|
32
|
+
readonly '@copilotkit/react-core': "1.56.2";
|
|
33
|
+
readonly rxjs: "7.8.1";
|
|
30
34
|
readonly '@strands-agents/sdk': "1.0.0-rc.4";
|
|
31
35
|
readonly '@tanstack/react-router': "1.168.17";
|
|
32
36
|
readonly '@tanstack/router-plugin': "1.167.16";
|
|
@@ -46,9 +50,13 @@ export declare const TS_VERSIONS: {
|
|
|
46
50
|
readonly '@types/cors': "2.8.19";
|
|
47
51
|
readonly '@types/ws': "8.18.1";
|
|
48
52
|
readonly '@types/express': "5.0.6";
|
|
53
|
+
readonly '@smithy/node-http-handler': "4.5.2";
|
|
49
54
|
readonly '@smithy/types': "4.14.0";
|
|
50
55
|
readonly '@vitest/coverage-v8': "4.1.4";
|
|
51
56
|
readonly '@vitest/ui': "4.1.4";
|
|
57
|
+
readonly '@astrojs/react': "5.0.3";
|
|
58
|
+
readonly '@astrojs/starlight': "0.38.3";
|
|
59
|
+
readonly astro: "6.1.5";
|
|
52
60
|
readonly aws4fetch: "1.0.20";
|
|
53
61
|
readonly 'aws-cdk': "2.1118.0";
|
|
54
62
|
readonly 'aws-cdk-lib': "2.248.0";
|
|
@@ -56,8 +64,10 @@ export declare const TS_VERSIONS: {
|
|
|
56
64
|
readonly 'aws-xray-sdk-core': "3.12.0";
|
|
57
65
|
readonly constructs: "10.6.0";
|
|
58
66
|
readonly cors: "2.8.6";
|
|
67
|
+
readonly chalk: "5.6.2";
|
|
59
68
|
readonly 'class-variance-authority': "0.7.1";
|
|
60
69
|
readonly clsx: "2.1.1";
|
|
70
|
+
readonly commander: "14.0.3";
|
|
61
71
|
readonly electrodb: "3.7.5";
|
|
62
72
|
readonly esbuild: "0.28.0";
|
|
63
73
|
readonly 'event-source-polyfill': "1.0.31";
|
|
@@ -66,6 +76,9 @@ export declare const TS_VERSIONS: {
|
|
|
66
76
|
readonly '@typescript-eslint/parser': "8.58.1";
|
|
67
77
|
readonly 'eslint-plugin-prettier': "5.5.5";
|
|
68
78
|
readonly express: "5.2.1";
|
|
79
|
+
readonly 'fast-glob': "3.3.3";
|
|
80
|
+
readonly 'fs-extra': "11.3.4";
|
|
81
|
+
readonly '@types/fs-extra': "11.0.4";
|
|
69
82
|
readonly 'jsonc-eslint-parser': "3.1.0";
|
|
70
83
|
readonly 'typescript-eslint': "8.58.1";
|
|
71
84
|
readonly 'make-dir-cli': "4.0.0";
|
|
@@ -78,7 +91,9 @@ export declare const TS_VERSIONS: {
|
|
|
78
91
|
readonly 'react-dom': "19.2.5";
|
|
79
92
|
readonly rimraf: "6.1.3";
|
|
80
93
|
readonly rolldown: "1.0.0-rc.15";
|
|
94
|
+
readonly 'simple-git': "3.36.0";
|
|
81
95
|
readonly 'source-map-support': "0.5.21";
|
|
96
|
+
readonly 'starlight-blog': "0.26.1";
|
|
82
97
|
readonly tailwindcss: "4.2.2";
|
|
83
98
|
readonly '@tailwindcss/vite': "4.2.2";
|
|
84
99
|
readonly tsx: "4.21.0";
|
|
@@ -98,12 +113,14 @@ export type ITsDepVersion = keyof typeof TS_VERSIONS;
|
|
|
98
113
|
* Add versions to the given dependencies
|
|
99
114
|
*/
|
|
100
115
|
export declare const withVersions: (deps: ITsDepVersion[]) => {
|
|
101
|
-
[k: string]: "22.6.5" | "3.8.2" | "1.29.0" | "22.1.1" | "6.0.2" | "8.0.8" | "4.1.4" | "4.3.6" | "0.3.13" | "0.10.0" | "3.1029.0" | "1.0.0-alpha.10" | "2.32.0" | "7.2.1" | "10.2.1" | "0.19.0" | "1.0.0-rc.4" | "1.168.17" | "1.167.16" | "1.166.28" | "1.161.7" | "1.161.6" | "3.0.166" | "3.0.1272" | "1.0.57" | "5.99.0" | "11.16.0" | "25.6.0" | "8.10.161" | "2.8.19" | "8.18.1" | "5.0.6" | "4.14.0" | "1.0.20" | "2.1118.0" | "2.248.0" | "2.248.0-alpha.0" | "3.12.0" | "10.6.0" | "2.8.6" | "0.7.1" | "2.1.1" | "3.7.5" | "0.28.0" | "1.0.31" | "1.0.5" | "8.58.1" | "5.5.5" | "5.2.1" | "3.1.0" | "4.0.0" | "2.0.0" | "19.6.6" | "3.5.0" | "3.3.1" | "19.2.5" | "6.1.3" | "1.0.0-rc.15" | "0.5.21" | "4.2.2" | "4.21.0" | "1.8.0" | "1.4.3" | "4.2.0" | "1.4.0" | "8.20.0";
|
|
116
|
+
[k: string]: "22.6.5" | "3.8.2" | "1.29.0" | "22.1.1" | "3.3.3" | "6.0.2" | "8.0.8" | "4.1.4" | "4.3.6" | "0.3.13" | "0.10.0" | "3.1029.0" | "1.0.0-alpha.10" | "2.32.0" | "7.2.1" | "10.2.1" | "0.19.0" | "0.0.52" | "1.56.2" | "7.8.1" | "1.0.0-rc.4" | "1.168.17" | "1.167.16" | "1.166.28" | "1.161.7" | "1.161.6" | "3.0.166" | "3.0.1272" | "1.0.57" | "5.99.0" | "11.16.0" | "25.6.0" | "8.10.161" | "2.8.19" | "8.18.1" | "5.0.6" | "4.5.2" | "4.14.0" | "5.0.3" | "0.38.3" | "6.1.5" | "1.0.20" | "2.1118.0" | "2.248.0" | "2.248.0-alpha.0" | "3.12.0" | "10.6.0" | "2.8.6" | "5.6.2" | "0.7.1" | "2.1.1" | "14.0.3" | "3.7.5" | "0.28.0" | "1.0.31" | "1.0.5" | "8.58.1" | "5.5.5" | "5.2.1" | "11.3.4" | "11.0.4" | "3.1.0" | "4.0.0" | "2.0.0" | "19.6.6" | "3.5.0" | "3.3.1" | "19.2.5" | "6.1.3" | "1.0.0-rc.15" | "3.36.0" | "0.5.21" | "0.26.1" | "4.2.2" | "4.21.0" | "1.8.0" | "1.4.3" | "4.2.0" | "1.4.0" | "8.20.0";
|
|
102
117
|
};
|
|
103
118
|
/**
|
|
104
119
|
* Versions for Python dependencies added by generators
|
|
105
120
|
*/
|
|
106
121
|
export declare const PY_VERSIONS: {
|
|
122
|
+
readonly 'ag-ui-protocol': "==0.1.15";
|
|
123
|
+
readonly 'ag-ui-strands': "==0.1.7";
|
|
107
124
|
readonly 'aws-lambda-powertools': "==3.27.0";
|
|
108
125
|
readonly 'aws-lambda-powertools[tracer]': "==3.27.0";
|
|
109
126
|
readonly 'aws-lambda-powertools[parser]': "==3.27.0";
|
package/src/utils/versions.js
CHANGED
|
@@ -12,6 +12,7 @@ exports.TS_VERSIONS = {
|
|
|
12
12
|
'@a2a-js/sdk': '0.3.13',
|
|
13
13
|
'@aws/aws-distro-opentelemetry-node-autoinstrumentation': '0.10.0',
|
|
14
14
|
'@aws-sdk/client-dynamodb': '3.1029.0',
|
|
15
|
+
'@aws-sdk/client-bedrock-runtime': '3.1029.0',
|
|
15
16
|
'@aws-sdk/client-sts': '3.1029.0',
|
|
16
17
|
'@aws-sdk/credential-providers': '3.1029.0',
|
|
17
18
|
'@aws-smithy/server-apigateway': '1.0.0-alpha.10',
|
|
@@ -30,6 +31,9 @@ exports.TS_VERSIONS = {
|
|
|
30
31
|
'create-nx-workspace': '22.6.5',
|
|
31
32
|
'@modelcontextprotocol/sdk': '1.29.0',
|
|
32
33
|
'@modelcontextprotocol/inspector': '0.19.0',
|
|
34
|
+
'@ag-ui/client': '0.0.52',
|
|
35
|
+
'@copilotkit/react-core': '1.56.2',
|
|
36
|
+
rxjs: '7.8.1',
|
|
33
37
|
'@strands-agents/sdk': '1.0.0-rc.4',
|
|
34
38
|
'@tanstack/react-router': '1.168.17',
|
|
35
39
|
'@tanstack/router-plugin': '1.167.16',
|
|
@@ -49,9 +53,13 @@ exports.TS_VERSIONS = {
|
|
|
49
53
|
'@types/cors': '2.8.19',
|
|
50
54
|
'@types/ws': '8.18.1',
|
|
51
55
|
'@types/express': '5.0.6',
|
|
56
|
+
'@smithy/node-http-handler': '4.5.2',
|
|
52
57
|
'@smithy/types': '4.14.0',
|
|
53
58
|
'@vitest/coverage-v8': '4.1.4',
|
|
54
59
|
'@vitest/ui': '4.1.4',
|
|
60
|
+
'@astrojs/react': '5.0.3',
|
|
61
|
+
'@astrojs/starlight': '0.38.3',
|
|
62
|
+
astro: '6.1.5',
|
|
55
63
|
aws4fetch: '1.0.20',
|
|
56
64
|
'aws-cdk': '2.1118.0',
|
|
57
65
|
'aws-cdk-lib': '2.248.0',
|
|
@@ -59,8 +67,10 @@ exports.TS_VERSIONS = {
|
|
|
59
67
|
'aws-xray-sdk-core': '3.12.0',
|
|
60
68
|
constructs: '10.6.0',
|
|
61
69
|
cors: '2.8.6',
|
|
70
|
+
chalk: '5.6.2',
|
|
62
71
|
'class-variance-authority': '0.7.1',
|
|
63
72
|
clsx: '2.1.1',
|
|
73
|
+
commander: '14.0.3',
|
|
64
74
|
electrodb: '3.7.5',
|
|
65
75
|
esbuild: '0.28.0',
|
|
66
76
|
'event-source-polyfill': '1.0.31',
|
|
@@ -69,6 +79,9 @@ exports.TS_VERSIONS = {
|
|
|
69
79
|
'@typescript-eslint/parser': '8.58.1',
|
|
70
80
|
'eslint-plugin-prettier': '5.5.5',
|
|
71
81
|
express: '5.2.1',
|
|
82
|
+
'fast-glob': '3.3.3',
|
|
83
|
+
'fs-extra': '11.3.4',
|
|
84
|
+
'@types/fs-extra': '11.0.4',
|
|
72
85
|
'jsonc-eslint-parser': '3.1.0',
|
|
73
86
|
'typescript-eslint': '8.58.1',
|
|
74
87
|
'make-dir-cli': '4.0.0',
|
|
@@ -81,7 +94,9 @@ exports.TS_VERSIONS = {
|
|
|
81
94
|
'react-dom': '19.2.5',
|
|
82
95
|
rimraf: '6.1.3',
|
|
83
96
|
rolldown: '1.0.0-rc.15',
|
|
97
|
+
'simple-git': '3.36.0',
|
|
84
98
|
'source-map-support': '0.5.21',
|
|
99
|
+
'starlight-blog': '0.26.1',
|
|
85
100
|
tailwindcss: '4.2.2',
|
|
86
101
|
'@tailwindcss/vite': '4.2.2',
|
|
87
102
|
tsx: '4.21.0',
|
|
@@ -105,6 +120,8 @@ exports.withVersions = withVersions;
|
|
|
105
120
|
* Versions for Python dependencies added by generators
|
|
106
121
|
*/
|
|
107
122
|
exports.PY_VERSIONS = {
|
|
123
|
+
'ag-ui-protocol': '==0.1.15',
|
|
124
|
+
'ag-ui-strands': '==0.1.7',
|
|
108
125
|
'aws-lambda-powertools': '==3.27.0',
|
|
109
126
|
'aws-lambda-powertools[tracer]': '==3.27.0',
|
|
110
127
|
'aws-lambda-powertools[parser]': '==3.27.0',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/nx-plugin/src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