@aws/nx-plugin 1.0.0-rc.24 → 1.0.0-rc.25
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 +2020 -702
- package/package.json +6 -6
- package/src/agentcore-gateway/gateway-connection/generator.d.ts +1 -1
- package/src/agentcore-gateway/gateway-connection/generator.js +7 -5
- package/src/agentcore-gateway/gateway-connection/generator.js.map +1 -1
- package/src/agentcore-gateway/gateway-connection/schema.d.js.map +1 -1
- package/src/agentcore-gateway/gateway-connection/schema.d.ts +1 -0
- package/src/agentcore-gateway/gateway-connection/schema.json +5 -0
- package/src/agentcore-gateway/generator.js +7 -4
- package/src/agentcore-gateway/generator.js.map +1 -1
- package/src/agentcore-gateway/mcp-connection/generator.d.ts +1 -1
- package/src/agentcore-gateway/mcp-connection/generator.js +7 -5
- package/src/agentcore-gateway/mcp-connection/generator.js.map +1 -1
- package/src/agentcore-gateway/mcp-connection/schema.d.js.map +1 -1
- package/src/agentcore-gateway/mcp-connection/schema.d.ts +1 -0
- package/src/agentcore-gateway/mcp-connection/schema.json +5 -0
- package/src/agentcore-gateway/schema.d.js.map +1 -1
- package/src/agentcore-gateway/schema.d.ts +1 -0
- package/src/agentcore-gateway/schema.json +5 -0
- package/src/connection/generator.d.ts +1 -0
- package/src/connection/generator.js +8 -4
- package/src/connection/generator.js.map +1 -1
- package/src/connection/schema.d.js.map +1 -1
- package/src/connection/schema.d.ts +1 -0
- package/src/connection/schema.json +5 -0
- package/src/infra/app/__snapshots__/generator.spec.ts.snap +29 -21
- package/src/infra/app/generator.js +12 -6
- package/src/infra/app/generator.js.map +1 -1
- package/src/infra/app/schema.d.js.map +1 -1
- package/src/infra/app/schema.d.ts +1 -1
- package/src/infra/app/schema.json +5 -0
- package/src/license/schema.d.js.map +1 -1
- package/src/license/schema.d.ts +2 -0
- package/src/license/schema.json +5 -0
- package/src/mcp-server/tools/general-guidance.js +17 -0
- package/src/mcp-server/tools/general-guidance.js.map +1 -1
- package/src/preset/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/preset/generator.d.ts +1 -1
- package/src/preset/generator.js +8 -5
- package/src/preset/generator.js.map +1 -1
- package/src/preset/schema.d.js.map +1 -1
- package/src/preset/schema.d.ts +1 -0
- package/src/preset/schema.json +5 -0
- package/src/py/agent/__snapshots__/generator.constructs.spec.ts.snap +9 -9
- package/src/py/agent/__snapshots__/generator.frameworks.spec.ts.snap +10 -10
- package/src/py/agent/__snapshots__/generator.protocols.spec.ts.snap +1 -1
- package/src/py/agent/a2a-connection/generator.js +7 -4
- package/src/py/agent/a2a-connection/generator.js.map +1 -1
- package/src/py/agent/a2a-connection/schema.d.js.map +1 -1
- package/src/py/agent/a2a-connection/schema.d.ts +1 -0
- package/src/py/agent/a2a-connection/schema.json +5 -0
- package/src/py/agent/gateway-connection/generator.js +7 -4
- package/src/py/agent/gateway-connection/generator.js.map +1 -1
- package/src/py/agent/gateway-connection/schema.d.js.map +1 -1
- package/src/py/agent/gateway-connection/schema.d.ts +1 -0
- package/src/py/agent/gateway-connection/schema.json +5 -0
- package/src/py/agent/generator.js +8 -6
- package/src/py/agent/generator.js.map +1 -1
- package/src/py/agent/mcp-connection/generator.js +7 -4
- package/src/py/agent/mcp-connection/generator.js.map +1 -1
- package/src/py/agent/mcp-connection/schema.d.js.map +1 -1
- package/src/py/agent/mcp-connection/schema.d.ts +1 -0
- package/src/py/agent/mcp-connection/schema.json +5 -0
- package/src/py/agent/react-connection/generator.d.ts +1 -1
- package/src/py/agent/react-connection/generator.js +7 -4
- package/src/py/agent/react-connection/generator.js.map +1 -1
- package/src/py/agent/react-connection/schema.d.js.map +1 -1
- package/src/py/agent/react-connection/schema.d.ts +1 -0
- package/src/py/agent/react-connection/schema.json +5 -0
- package/src/py/agent/schema.d.js.map +1 -1
- package/src/py/agent/schema.d.ts +1 -0
- package/src/py/agent/schema.json +5 -0
- package/src/py/api/generator.js +2 -1
- package/src/py/api/generator.js.map +1 -1
- package/src/py/api/schema.d.js.map +1 -1
- package/src/py/api/schema.d.ts +1 -0
- package/src/py/api/schema.json +5 -0
- package/src/py/dynamodb/agent-connection/generator.js +8 -6
- package/src/py/dynamodb/agent-connection/generator.js.map +1 -1
- package/src/py/dynamodb/agent-connection/schema.d.js.map +1 -1
- package/src/py/dynamodb/agent-connection/schema.d.ts +1 -0
- package/src/py/dynamodb/agent-connection/schema.json +5 -0
- package/src/py/dynamodb/fast-api-connection/generator.js +8 -6
- package/src/py/dynamodb/fast-api-connection/generator.js.map +1 -1
- package/src/py/dynamodb/fast-api-connection/schema.d.js.map +1 -1
- package/src/py/dynamodb/fast-api-connection/schema.d.ts +1 -0
- package/src/py/dynamodb/fast-api-connection/schema.json +5 -0
- package/src/py/dynamodb/generator.js +10 -7
- package/src/py/dynamodb/generator.js.map +1 -1
- package/src/py/dynamodb/mcp-server-connection/generator.js +8 -6
- package/src/py/dynamodb/mcp-server-connection/generator.js.map +1 -1
- package/src/py/dynamodb/mcp-server-connection/schema.d.js.map +1 -1
- package/src/py/dynamodb/mcp-server-connection/schema.d.ts +1 -0
- package/src/py/dynamodb/mcp-server-connection/schema.json +5 -0
- package/src/py/dynamodb/schema.d.js.map +1 -1
- package/src/py/dynamodb/schema.d.ts +1 -0
- package/src/py/dynamodb/schema.json +5 -0
- package/src/py/fast-api/generator.js +10 -7
- package/src/py/fast-api/generator.js.map +1 -1
- package/src/py/fast-api/react/generator.d.ts +2 -2
- package/src/py/fast-api/react/generator.js +7 -5
- package/src/py/fast-api/react/generator.js.map +1 -1
- package/src/py/fast-api/react/schema.d.js.map +1 -1
- package/src/py/fast-api/react/schema.d.ts +1 -0
- package/src/py/fast-api/react/schema.json +5 -0
- package/src/py/fast-api/schema.d.js.map +1 -1
- package/src/py/fast-api/schema.d.ts +1 -0
- package/src/py/fast-api/schema.json +5 -0
- package/src/py/lambda-function/generator.js +8 -6
- package/src/py/lambda-function/generator.js.map +1 -1
- package/src/py/lambda-function/schema.d.js.map +1 -1
- package/src/py/lambda-function/schema.d.ts +1 -0
- package/src/py/lambda-function/schema.json +5 -0
- package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +5 -5
- package/src/py/mcp-server/generator.js +8 -6
- package/src/py/mcp-server/generator.js.map +1 -1
- package/src/py/mcp-server/schema.d.js.map +1 -1
- package/src/py/mcp-server/schema.d.ts +1 -0
- package/src/py/mcp-server/schema.json +5 -0
- package/src/py/project/generator.js +9 -6
- package/src/py/project/generator.js.map +1 -1
- package/src/py/project/schema.d.js.map +1 -1
- package/src/py/project/schema.d.ts +1 -0
- package/src/py/project/schema.json +5 -0
- package/src/sdk/open-api.d.ts +1 -1
- package/src/sdk/open-api.js +1 -1
- package/src/sdk/open-api.js.map +1 -1
- package/src/sdk/utils/ast.d.ts +1 -2
- package/src/sdk/utils/ast.js +1 -2
- package/src/sdk/utils/ast.js.map +1 -1
- package/src/smithy/project/generator.js +7 -4
- package/src/smithy/project/generator.js.map +1 -1
- package/src/smithy/project/schema.d.js.map +1 -1
- package/src/smithy/project/schema.d.ts +1 -0
- package/src/smithy/project/schema.json +5 -0
- package/src/smithy/react-connection/generator.js +7 -4
- package/src/smithy/react-connection/generator.js.map +1 -1
- package/src/smithy/react-connection/schema.d.js.map +1 -1
- package/src/smithy/react-connection/schema.d.ts +1 -0
- package/src/smithy/react-connection/schema.json +5 -0
- package/src/smithy/ts/api/generator.js +11 -6
- package/src/smithy/ts/api/generator.js.map +1 -1
- package/src/smithy/ts/api/schema.d.js.map +1 -1
- package/src/smithy/ts/api/schema.d.ts +1 -0
- package/src/smithy/ts/api/schema.json +5 -0
- package/src/terraform/project/generator.js +13 -4
- package/src/terraform/project/generator.js.map +1 -1
- package/src/terraform/project/schema.d.js.map +1 -1
- package/src/terraform/project/schema.d.ts +1 -0
- package/src/terraform/project/schema.json +5 -0
- package/src/trpc/backend/generator.d.ts +1 -1
- package/src/trpc/backend/generator.js +9 -5
- package/src/trpc/backend/generator.js.map +1 -1
- package/src/trpc/backend/schema.d.js.map +1 -1
- package/src/trpc/backend/schema.d.ts +1 -0
- package/src/trpc/backend/schema.json +5 -0
- package/src/trpc/react/generator.d.ts +1 -1
- package/src/trpc/react/generator.js +9 -5
- package/src/trpc/react/generator.js.map +1 -1
- package/src/trpc/react/schema.d.js.map +1 -1
- package/src/trpc/react/schema.d.ts +1 -0
- package/src/trpc/react/schema.json +5 -0
- package/src/ts/agent/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/agent/a2a-connection/generator.js +7 -4
- package/src/ts/agent/a2a-connection/generator.js.map +1 -1
- package/src/ts/agent/a2a-connection/schema.d.js.map +1 -1
- package/src/ts/agent/a2a-connection/schema.d.ts +1 -0
- package/src/ts/agent/a2a-connection/schema.json +5 -0
- package/src/ts/agent/gateway-connection/generator.js +7 -4
- package/src/ts/agent/gateway-connection/generator.js.map +1 -1
- package/src/ts/agent/gateway-connection/schema.d.js.map +1 -1
- package/src/ts/agent/gateway-connection/schema.d.ts +1 -0
- package/src/ts/agent/gateway-connection/schema.json +5 -0
- package/src/ts/agent/generator.js +7 -4
- package/src/ts/agent/generator.js.map +1 -1
- package/src/ts/agent/mcp-connection/generator.js +7 -4
- package/src/ts/agent/mcp-connection/generator.js.map +1 -1
- package/src/ts/agent/mcp-connection/schema.d.js.map +1 -1
- package/src/ts/agent/mcp-connection/schema.d.ts +1 -0
- package/src/ts/agent/mcp-connection/schema.json +5 -0
- package/src/ts/agent/react-connection/generator.d.ts +1 -1
- package/src/ts/agent/react-connection/generator.js +14 -8
- package/src/ts/agent/react-connection/generator.js.map +1 -1
- package/src/ts/agent/react-connection/schema.d.js.map +1 -1
- package/src/ts/agent/react-connection/schema.d.ts +1 -0
- package/src/ts/agent/react-connection/schema.json +5 -0
- package/src/ts/agent/schema.d.js.map +1 -1
- package/src/ts/agent/schema.d.ts +1 -0
- package/src/ts/agent/schema.json +5 -0
- package/src/ts/api/generator.js +4 -2
- package/src/ts/api/generator.js.map +1 -1
- package/src/ts/api/schema.d.js.map +1 -1
- package/src/ts/api/schema.d.ts +1 -0
- package/src/ts/api/schema.json +5 -0
- package/src/ts/astro-docs/generator.js +7 -6
- package/src/ts/astro-docs/generator.js.map +1 -1
- package/src/ts/astro-docs/schema.d.js.map +1 -1
- package/src/ts/astro-docs/schema.d.ts +2 -2
- package/src/ts/astro-docs/schema.json +3 -3
- package/src/ts/docs/schema.d.js.map +1 -1
- package/src/ts/docs/schema.d.ts +1 -4
- package/src/ts/docs/schema.json +3 -3
- package/src/ts/dynamodb/agent-connection/schema.d.js.map +1 -1
- package/src/ts/dynamodb/agent-connection/schema.d.ts +1 -0
- package/src/ts/dynamodb/agent-connection/schema.json +5 -0
- package/src/ts/dynamodb/generator.js +9 -5
- package/src/ts/dynamodb/generator.js.map +1 -1
- package/src/ts/dynamodb/mcp-server-connection/schema.d.js.map +1 -1
- package/src/ts/dynamodb/mcp-server-connection/schema.d.ts +1 -0
- package/src/ts/dynamodb/mcp-server-connection/schema.json +5 -0
- package/src/ts/dynamodb/schema.d.js.map +1 -1
- package/src/ts/dynamodb/schema.d.ts +1 -0
- package/src/ts/dynamodb/schema.json +5 -0
- package/src/ts/dynamodb/smithy-connection/schema.d.js.map +1 -1
- package/src/ts/dynamodb/smithy-connection/schema.d.ts +1 -0
- package/src/ts/dynamodb/smithy-connection/schema.json +5 -0
- package/src/ts/dynamodb/trpc-connection/schema.d.js.map +1 -1
- package/src/ts/dynamodb/trpc-connection/schema.d.ts +1 -0
- package/src/ts/dynamodb/trpc-connection/schema.json +5 -0
- package/src/ts/lambda-function/generator.js +7 -4
- package/src/ts/lambda-function/generator.js.map +1 -1
- package/src/ts/lambda-function/schema.d.js.map +1 -1
- package/src/ts/lambda-function/schema.d.ts +1 -0
- package/src/ts/lambda-function/schema.json +5 -0
- package/src/ts/lib/generator.js +10 -6
- package/src/ts/lib/generator.js.map +1 -1
- package/src/ts/lib/schema.d.js.map +1 -1
- package/src/ts/lib/schema.d.ts +1 -1
- package/src/ts/lib/schema.json +5 -0
- package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/mcp-server/generator.js +7 -4
- package/src/ts/mcp-server/generator.js.map +1 -1
- package/src/ts/mcp-server/schema.d.js.map +1 -1
- package/src/ts/mcp-server/schema.d.ts +1 -0
- package/src/ts/mcp-server/schema.json +5 -0
- package/src/ts/nx-generator/__snapshots__/generator.spec.ts.snap +18 -8
- package/src/ts/nx-generator/files/common/schema.d.ts.template +1 -0
- package/src/ts/nx-generator/files/common/schema.json.template +5 -0
- package/src/ts/nx-generator/files/nx-plugin-for-aws/generator/generator.ts.template +3 -4
- package/src/ts/nx-generator/generator.js +7 -4
- package/src/ts/nx-generator/generator.js.map +1 -1
- package/src/ts/nx-generator/schema.d.js.map +1 -1
- package/src/ts/nx-generator/schema.d.ts +1 -0
- package/src/ts/nx-generator/schema.json +5 -0
- package/src/ts/nx-plugin/generator.js +13 -6
- package/src/ts/nx-plugin/generator.js.map +1 -1
- package/src/ts/nx-plugin/schema.json +5 -0
- package/src/ts/rdb/agent-connection/schema.d.js.map +1 -1
- package/src/ts/rdb/agent-connection/schema.d.ts +1 -0
- package/src/ts/rdb/agent-connection/schema.json +5 -0
- package/src/ts/rdb/generator.js +9 -5
- package/src/ts/rdb/generator.js.map +1 -1
- package/src/ts/rdb/mcp-server-connection/schema.d.js.map +1 -1
- package/src/ts/rdb/mcp-server-connection/schema.d.ts +1 -0
- package/src/ts/rdb/mcp-server-connection/schema.json +5 -0
- package/src/ts/rdb/schema.d.js.map +1 -1
- package/src/ts/rdb/schema.d.ts +1 -0
- package/src/ts/rdb/schema.json +5 -0
- package/src/ts/rdb/smithy-connection/schema.d.js.map +1 -1
- package/src/ts/rdb/smithy-connection/schema.d.ts +1 -0
- package/src/ts/rdb/smithy-connection/schema.json +5 -0
- package/src/ts/rdb/trpc-connection/schema.d.js.map +1 -1
- package/src/ts/rdb/trpc-connection/schema.d.ts +1 -0
- package/src/ts/rdb/trpc-connection/schema.json +5 -0
- package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +26 -26
- package/src/ts/react-website/app/generator.d.ts +1 -1
- package/src/ts/react-website/app/generator.js +18 -6
- package/src/ts/react-website/app/generator.js.map +1 -1
- package/src/ts/react-website/app/schema.d.js.map +1 -1
- package/src/ts/react-website/app/schema.d.ts +1 -1
- package/src/ts/react-website/app/schema.json +5 -0
- package/src/ts/react-website/cognito-auth/__snapshots__/generator.terraform.spec.ts.snap +1 -1
- package/src/ts/react-website/cognito-auth/generator.d.ts +1 -1
- package/src/ts/react-website/cognito-auth/generator.js +9 -5
- package/src/ts/react-website/cognito-auth/generator.js.map +1 -1
- package/src/ts/react-website/cognito-auth/schema.d.js.map +1 -1
- package/src/ts/react-website/cognito-auth/schema.d.ts +1 -0
- package/src/ts/react-website/cognito-auth/schema.json +5 -0
- package/src/ts/react-website/runtime-config/schema.d.js.map +1 -1
- package/src/ts/react-website/runtime-config/schema.d.ts +1 -0
- package/src/ts/react-website/runtime-config/schema.json +5 -0
- package/src/ts/website/app/schema.d.js.map +1 -1
- package/src/ts/website/app/schema.d.ts +1 -1
- package/src/ts/website/app/schema.json +5 -0
- package/src/ts/website/auth/generator.d.ts +1 -1
- package/src/ts/website/auth/generator.js +2 -1
- package/src/ts/website/auth/generator.js.map +1 -1
- package/src/ts/website/auth/schema.d.js.map +1 -1
- package/src/ts/website/auth/schema.d.ts +1 -0
- package/src/ts/website/auth/schema.json +5 -0
- package/src/utils/files/common/scripts/src/infra/stage-credentials/cdk-command.ts.template +11 -3
- package/src/utils/install.d.ts +32 -0
- package/src/utils/install.js +56 -0
- package/src/utils/install.js.map +1 -0
- package/src/utils/versions.d.ts +64 -64
- package/src/utils/versions.js +63 -63
- package/src/utils/versions.js.map +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/ import { addDependenciesToPackageJson, generateFiles,
|
|
4
|
+
*/ import { addDependenciesToPackageJson, generateFiles, joinPathFragments, OverwriteStrategy } from "@nx/devkit";
|
|
5
5
|
import { readFileSync } from "fs";
|
|
6
6
|
import { join } from "path";
|
|
7
7
|
import { addDestructuredImport, addSingleImport, applyGritQL } from "../../../utils/ast.js";
|
|
@@ -9,6 +9,7 @@ import { addHookResultToRouterProviderContext } from "../../../utils/ast/website
|
|
|
9
9
|
import { formatFilesInSubtree } from "../../../utils/format.js";
|
|
10
10
|
import { resolveIac } from "../../../utils/iac.js";
|
|
11
11
|
import { addIdentityInfra } from "../../../utils/identity-constructs/identity-constructs.js";
|
|
12
|
+
import { installDependencies } from "../../../utils/install.js";
|
|
12
13
|
import { addGeneratorMetricsIfApplicable } from "../../../utils/metrics.js";
|
|
13
14
|
import { getNpmScope } from "../../../utils/npm-scope.js";
|
|
14
15
|
import { addComponentGeneratorMetadata, getGeneratorInfo, readProjectConfigurationUnqualified } from "../../../utils/nx.js";
|
|
@@ -24,7 +25,8 @@ export async function tsReactWebsiteAuthGenerator(tree, options) {
|
|
|
24
25
|
const srcRoot = projectConfig.sourceRoot;
|
|
25
26
|
const cognitoDomain = options.cognitoDomain && options.cognitoDomain.length > 0 ? options.cognitoDomain : deriveCognitoDomainPrefix(getNpmScope(tree), projectConfig.name);
|
|
26
27
|
await runtimeConfigGenerator(tree, {
|
|
27
|
-
project: options.project
|
|
28
|
+
project: options.project,
|
|
29
|
+
preferInstallDependencies: false
|
|
28
30
|
});
|
|
29
31
|
const iac = await resolveIac(tree, options.iac);
|
|
30
32
|
await sharedConstructsGenerator(tree, {
|
|
@@ -83,9 +85,11 @@ export async function tsReactWebsiteAuthGenerator(tree, options) {
|
|
|
83
85
|
COGNITO_AUTH_GENERATOR_INFO
|
|
84
86
|
]);
|
|
85
87
|
await formatFilesInSubtree(tree);
|
|
86
|
-
return ()=>{
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
return ()=>installDependencies(tree, options.preferInstallDependencies, {
|
|
89
|
+
languages: [
|
|
90
|
+
'typescript'
|
|
91
|
+
]
|
|
92
|
+
});
|
|
89
93
|
}
|
|
90
94
|
export default tsReactWebsiteAuthGenerator;
|
|
91
95
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/ts/react-website/cognito-auth/generator.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {\n addDependenciesToPackageJson,\n generateFiles,\n
|
|
1
|
+
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/ts/react-website/cognito-auth/generator.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {\n addDependenciesToPackageJson,\n generateFiles,\n joinPathFragments,\n OverwriteStrategy,\n type Tree,\n} from '@nx/devkit';\nimport { readFileSync } from 'fs';\nimport { join } from 'path';\nimport {\n addDestructuredImport,\n addSingleImport,\n applyGritQL,\n} from '../../../utils/ast';\nimport { addHookResultToRouterProviderContext } from '../../../utils/ast/website';\nimport { formatFilesInSubtree } from '../../../utils/format';\nimport { resolveIac } from '../../../utils/iac';\nimport { addIdentityInfra } from '../../../utils/identity-constructs/identity-constructs';\nimport { installDependencies } from '../../../utils/install';\nimport { addGeneratorMetricsIfApplicable } from '../../../utils/metrics';\nimport { getNpmScope } from '../../../utils/npm-scope';\nimport {\n addComponentGeneratorMetadata,\n getGeneratorInfo,\n type NxGeneratorInfo,\n readProjectConfigurationUnqualified,\n} from '../../../utils/nx';\nimport { toProjectRelativePath } from '../../../utils/paths';\nimport { sharedConstructsGenerator } from '../../../utils/shared-constructs';\nimport { withVersions } from '../../../utils/versions';\nimport { runtimeConfigGenerator } from '../runtime-config/generator';\nimport type { TsReactWebsiteAuthGeneratorSchema } from './schema';\nimport {\n addCloudscapeAuthMenu,\n addNoneAuthMenu,\n addShadcnAuthMenu,\n deriveCognitoDomainPrefix,\n} from './utils';\n\nconst readGritPattern = (name: string): string =>\n readFileSync(\n join(import.meta.dirname, 'grit', `${name}.grit`),\n 'utf-8',\n ).trim();\n\nexport const COGNITO_AUTH_GENERATOR_INFO: NxGeneratorInfo = getGeneratorInfo(\n import.meta.filename,\n);\n\nexport async function tsReactWebsiteAuthGenerator(\n tree: Tree,\n options: TsReactWebsiteAuthGeneratorSchema,\n) {\n const projectConfig = readProjectConfigurationUnqualified(\n tree,\n options.project,\n );\n const srcRoot = projectConfig.sourceRoot;\n\n const cognitoDomain =\n options.cognitoDomain && options.cognitoDomain.length > 0\n ? options.cognitoDomain\n : deriveCognitoDomainPrefix(getNpmScope(tree), projectConfig.name!);\n\n await runtimeConfigGenerator(tree, {\n project: options.project,\n preferInstallDependencies: false,\n });\n\n const iac = await resolveIac(tree, options.iac);\n\n await sharedConstructsGenerator(tree, {\n iac,\n });\n\n await addIdentityInfra(tree, {\n iac,\n allowSignup: options.allowSignup,\n cognitoDomain,\n });\n\n generateFiles(\n tree,\n joinPathFragments(import.meta.dirname, 'files', 'app'),\n srcRoot,\n options,\n {\n overwriteStrategy: OverwriteStrategy.KeepExisting,\n },\n );\n\n addDependenciesToPackageJson(\n tree,\n withVersions(['oidc-client-ts', 'react-oidc-context']),\n {},\n );\n\n const mainTsxPath = joinPathFragments(srcRoot, 'main.tsx');\n\n await addSingleImport(\n tree,\n mainTsxPath,\n 'CognitoAuth',\n './components/CognitoAuth',\n );\n\n await addHookResultToRouterProviderContext(tree, mainTsxPath, {\n hook: 'useAuth',\n module: 'react-oidc-context',\n contextProp: 'auth',\n });\n\n const projectConfiguration = readProjectConfigurationUnqualified(\n tree,\n options.project,\n );\n\n const ux = (\n (projectConfiguration.metadata as any)?.ux ?? 'shadcn'\n ).toLowerCase();\n\n await applyGritQL(tree, mainTsxPath, readGritPattern('cognito-auth-wrapper'));\n // Update App Layout\n const appLayoutTsxPath = joinPathFragments(\n srcRoot,\n 'components',\n 'AppLayout',\n 'index.tsx',\n );\n if (tree.exists(appLayoutTsxPath)) {\n await addDestructuredImport(\n tree,\n appLayoutTsxPath,\n ['useAuth'],\n 'react-oidc-context',\n );\n await applyGritQL(\n tree,\n appLayoutTsxPath,\n readGritPattern('app-layout-use-auth'),\n );\n // TODO: update utils if they exist by appending to the array\n // Add a top-level navigation menu that shows the signed-in user's profile and actions\n switch (ux) {\n case 'cloudscape':\n await addCloudscapeAuthMenu(tree, appLayoutTsxPath);\n break;\n case 'shadcn':\n await addShadcnAuthMenu(tree, appLayoutTsxPath);\n break;\n case 'none':\n await addNoneAuthMenu(tree, appLayoutTsxPath);\n break;\n default:\n throw new Error(\n `Top-level navigation menu to show the signed-in user for ux \"${ux}\" is not implemented.`,\n );\n }\n } else {\n console.info(\n `Skipping update to ${appLayoutTsxPath} as it does not exist.`,\n );\n }\n // End update App Layout\n\n addComponentGeneratorMetadata(\n tree,\n options.project,\n COGNITO_AUTH_GENERATOR_INFO,\n toProjectRelativePath(\n projectConfig,\n joinPathFragments(srcRoot, 'components', 'CognitoAuth'),\n ),\n );\n\n await addGeneratorMetricsIfApplicable(tree, [COGNITO_AUTH_GENERATOR_INFO]);\n\n await formatFilesInSubtree(tree);\n return () =>\n installDependencies(tree, options.preferInstallDependencies, {\n languages: ['typescript'],\n });\n}\nexport default tsReactWebsiteAuthGenerator;\n"],"names":["addDependenciesToPackageJson","generateFiles","joinPathFragments","OverwriteStrategy","readFileSync","join","addDestructuredImport","addSingleImport","applyGritQL","addHookResultToRouterProviderContext","formatFilesInSubtree","resolveIac","addIdentityInfra","installDependencies","addGeneratorMetricsIfApplicable","getNpmScope","addComponentGeneratorMetadata","getGeneratorInfo","readProjectConfigurationUnqualified","toProjectRelativePath","sharedConstructsGenerator","withVersions","runtimeConfigGenerator","addCloudscapeAuthMenu","addNoneAuthMenu","addShadcnAuthMenu","deriveCognitoDomainPrefix","readGritPattern","name","dirname","trim","COGNITO_AUTH_GENERATOR_INFO","filename","tsReactWebsiteAuthGenerator","tree","options","projectConfig","project","srcRoot","sourceRoot","cognitoDomain","length","preferInstallDependencies","iac","allowSignup","overwriteStrategy","KeepExisting","mainTsxPath","hook","module","contextProp","projectConfiguration","ux","metadata","toLowerCase","appLayoutTsxPath","exists","Error","console","info","languages"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/ts/react-website/cognito-auth/schema.d.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IacOption } from '../../../utils/iac';\n\nexport interface TsReactWebsiteAuthGeneratorSchema {\n project: string;\n allowSignup: boolean;\n cognitoDomain?: string;\n iac: IacOption;\n}\n"],"names":[],"mappings":"AAAA;;;CAGC,GAID,
|
|
1
|
+
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/ts/react-website/cognito-auth/schema.d.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IacOption } from '../../../utils/iac';\n\nexport interface TsReactWebsiteAuthGeneratorSchema {\n project: string;\n allowSignup: boolean;\n cognitoDomain?: string;\n iac: IacOption;\n preferInstallDependencies?: boolean;\n}\n"],"names":[],"mappings":"AAAA;;;CAGC,GAID,WAMC"}
|
|
@@ -44,6 +44,11 @@
|
|
|
44
44
|
"x-priority": "important",
|
|
45
45
|
"default": "inherit",
|
|
46
46
|
"x-prompt": "Which provider would you like to manage your infrastructure? (default: inherit)"
|
|
47
|
+
},
|
|
48
|
+
"preferInstallDependencies": {
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"description": "Whether to prefer installing dependencies after the generator runs. Set to false to defer installing when batching multiple generators (an install still runs if needed so subsequent generators can compute the Nx project graph); install once at the end.",
|
|
51
|
+
"default": true
|
|
47
52
|
}
|
|
48
53
|
},
|
|
49
54
|
"required": ["project"]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/ts/react-website/runtime-config/schema.d.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nexport interface RuntimeConfigGeneratorSchema {\n project: string;\n}\n"],"names":[],"mappings":"AAAA;;;CAGC,GACD,
|
|
1
|
+
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/ts/react-website/runtime-config/schema.d.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nexport interface RuntimeConfigGeneratorSchema {\n project: string;\n preferInstallDependencies?: boolean;\n}\n"],"names":[],"mappings":"AAAA;;;CAGC,GACD,WAGC"}
|
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
"x-priority": "important",
|
|
14
14
|
"x-prompt": "the project to target",
|
|
15
15
|
"x-dropdown": "projects"
|
|
16
|
+
},
|
|
17
|
+
"preferInstallDependencies": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"description": "Whether to prefer installing dependencies after the generator runs. Set to false to defer installing when batching multiple generators (an install still runs if needed so subsequent generators can compute the Nx project graph); install once at the end.",
|
|
20
|
+
"default": true
|
|
16
21
|
}
|
|
17
22
|
},
|
|
18
23
|
"required": ["project"]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/ts/website/app/schema.d.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { IacOption } from '../../../utils/iac';\nimport { UxOption } from '../../react-website/app/generator';\n\nexport type WebsiteFramework = 'react';\nexport type WebsiteInfraOption = 'cloudfront-s3' | 'none';\n\nexport interface TsWebsiteGeneratorSchema {\n name: string;\n framework?: WebsiteFramework;\n directory?: string;\n subDirectory?: string;\n
|
|
1
|
+
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/ts/website/app/schema.d.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { IacOption } from '../../../utils/iac';\nimport { UxOption } from '../../react-website/app/generator';\n\nexport type WebsiteFramework = 'react';\nexport type WebsiteInfraOption = 'cloudfront-s3' | 'none';\n\nexport interface TsWebsiteGeneratorSchema {\n name: string;\n framework?: WebsiteFramework;\n directory?: string;\n subDirectory?: string;\n tanstackRouter?: boolean;\n tailwind?: boolean;\n ux?: UxOption;\n infra?: WebsiteInfraOption;\n iac: IacOption;\n preferInstallDependencies?: boolean;\n}\n"],"names":[],"mappings":"AAAA;;;CAGC,GAOD,WAWC"}
|
|
@@ -13,10 +13,10 @@ export interface TsWebsiteGeneratorSchema {
|
|
|
13
13
|
framework?: WebsiteFramework;
|
|
14
14
|
directory?: string;
|
|
15
15
|
subDirectory?: string;
|
|
16
|
-
skipInstall?: boolean;
|
|
17
16
|
tanstackRouter?: boolean;
|
|
18
17
|
tailwind?: boolean;
|
|
19
18
|
ux?: UxOption;
|
|
20
19
|
infra?: WebsiteInfraOption;
|
|
21
20
|
iac: IacOption;
|
|
21
|
+
preferInstallDependencies?: boolean;
|
|
22
22
|
}
|
|
@@ -98,6 +98,11 @@
|
|
|
98
98
|
"x-priority": "important",
|
|
99
99
|
"default": "inherit",
|
|
100
100
|
"x-prompt": "Which provider would you like to manage your infrastructure? (default: inherit)"
|
|
101
|
+
},
|
|
102
|
+
"preferInstallDependencies": {
|
|
103
|
+
"type": "boolean",
|
|
104
|
+
"description": "Whether to prefer installing dependencies after the generator runs. Set to false to defer installing when batching multiple generators (an install still runs if needed so subsequent generators can compute the Nx project graph); install once at the end.",
|
|
105
|
+
"default": true
|
|
101
106
|
}
|
|
102
107
|
},
|
|
103
108
|
"required": ["name"],
|
|
@@ -6,5 +6,5 @@ import type { Tree } from '@nx/devkit';
|
|
|
6
6
|
import { type NxGeneratorInfo } from '../../../utils/nx';
|
|
7
7
|
import type { TsWebsiteAuthGeneratorSchema } from './schema';
|
|
8
8
|
export declare const TS_WEBSITE_AUTH_GENERATOR_INFO: NxGeneratorInfo;
|
|
9
|
-
export declare function tsWebsiteAuthGenerator(tree: Tree, schema: TsWebsiteAuthGeneratorSchema): Promise<() => void
|
|
9
|
+
export declare function tsWebsiteAuthGenerator(tree: Tree, schema: TsWebsiteAuthGeneratorSchema): Promise<() => Promise<void>>;
|
|
10
10
|
export default tsWebsiteAuthGenerator;
|
|
@@ -9,7 +9,8 @@ export async function tsWebsiteAuthGenerator(tree, schema) {
|
|
|
9
9
|
project: schema.project,
|
|
10
10
|
allowSignup: schema.allowSignup,
|
|
11
11
|
cognitoDomain: schema.cognitoDomain,
|
|
12
|
-
iac: schema.iac
|
|
12
|
+
iac: schema.iac,
|
|
13
|
+
preferInstallDependencies: schema.preferInstallDependencies
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
16
|
export default tsWebsiteAuthGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/ts/website/auth/generator.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport type { Tree } from '@nx/devkit';\nimport { getGeneratorInfo, type NxGeneratorInfo } from '../../../utils/nx';\nimport { tsReactWebsiteAuthGenerator } from '../../react-website/cognito-auth/generator';\nimport type { TsWebsiteAuthGeneratorSchema } from './schema';\n\nexport const TS_WEBSITE_AUTH_GENERATOR_INFO: NxGeneratorInfo = getGeneratorInfo(\n import.meta.filename,\n);\n\nexport async function tsWebsiteAuthGenerator(\n tree: Tree,\n schema: TsWebsiteAuthGeneratorSchema,\n) {\n return tsReactWebsiteAuthGenerator(tree, {\n project: schema.project,\n allowSignup: schema.allowSignup,\n cognitoDomain: schema.cognitoDomain,\n iac: schema.iac,\n });\n}\n\nexport default tsWebsiteAuthGenerator;\n"],"names":["getGeneratorInfo","tsReactWebsiteAuthGenerator","TS_WEBSITE_AUTH_GENERATOR_INFO","filename","tsWebsiteAuthGenerator","tree","schema","project","allowSignup","cognitoDomain","iac"],"mappings":"AAAA;;;CAGC,GAED,SAASA,gBAAgB,QAA8B,uBAAoB;AAC3E,SAASC,2BAA2B,QAAQ,gDAA6C;AAGzF,OAAO,MAAMC,iCAAkDF,iBAC7D,YAAYG,QAAQ,EACpB;AAEF,OAAO,eAAeC,uBACpBC,IAAU,EACVC,MAAoC;IAEpC,OAAOL,4BAA4BI,MAAM;QACvCE,SAASD,OAAOC,OAAO;QACvBC,aAAaF,OAAOE,WAAW;QAC/BC,eAAeH,OAAOG,aAAa;QACnCC,KAAKJ,OAAOI,GAAG;
|
|
1
|
+
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/ts/website/auth/generator.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport type { Tree } from '@nx/devkit';\nimport { getGeneratorInfo, type NxGeneratorInfo } from '../../../utils/nx';\nimport { tsReactWebsiteAuthGenerator } from '../../react-website/cognito-auth/generator';\nimport type { TsWebsiteAuthGeneratorSchema } from './schema';\n\nexport const TS_WEBSITE_AUTH_GENERATOR_INFO: NxGeneratorInfo = getGeneratorInfo(\n import.meta.filename,\n);\n\nexport async function tsWebsiteAuthGenerator(\n tree: Tree,\n schema: TsWebsiteAuthGeneratorSchema,\n) {\n return tsReactWebsiteAuthGenerator(tree, {\n project: schema.project,\n allowSignup: schema.allowSignup,\n cognitoDomain: schema.cognitoDomain,\n iac: schema.iac,\n preferInstallDependencies: schema.preferInstallDependencies,\n });\n}\n\nexport default tsWebsiteAuthGenerator;\n"],"names":["getGeneratorInfo","tsReactWebsiteAuthGenerator","TS_WEBSITE_AUTH_GENERATOR_INFO","filename","tsWebsiteAuthGenerator","tree","schema","project","allowSignup","cognitoDomain","iac","preferInstallDependencies"],"mappings":"AAAA;;;CAGC,GAED,SAASA,gBAAgB,QAA8B,uBAAoB;AAC3E,SAASC,2BAA2B,QAAQ,gDAA6C;AAGzF,OAAO,MAAMC,iCAAkDF,iBAC7D,YAAYG,QAAQ,EACpB;AAEF,OAAO,eAAeC,uBACpBC,IAAU,EACVC,MAAoC;IAEpC,OAAOL,4BAA4BI,MAAM;QACvCE,SAASD,OAAOC,OAAO;QACvBC,aAAaF,OAAOE,WAAW;QAC/BC,eAAeH,OAAOG,aAAa;QACnCC,KAAKJ,OAAOI,GAAG;QACfC,2BAA2BL,OAAOK,yBAAyB;IAC7D;AACF;AAEA,eAAeP,uBAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/ts/website/auth/schema.d.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { IacOption } from '../../../utils/iac';\n\nexport interface TsWebsiteAuthGeneratorSchema {\n project: string;\n allowSignup: boolean;\n cognitoDomain?: string;\n iac: IacOption;\n}\n"],"names":[],"mappings":"AAAA;;;CAGC,GAGD,
|
|
1
|
+
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/ts/website/auth/schema.d.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { IacOption } from '../../../utils/iac';\n\nexport interface TsWebsiteAuthGeneratorSchema {\n project: string;\n allowSignup: boolean;\n cognitoDomain?: string;\n iac: IacOption;\n preferInstallDependencies?: boolean;\n}\n"],"names":[],"mappings":"AAAA;;;CAGC,GAGD,WAMC"}
|
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
"x-priority": "important",
|
|
41
41
|
"default": "inherit",
|
|
42
42
|
"x-prompt": "Which provider would you like to manage your infrastructure? (default: inherit)"
|
|
43
|
+
},
|
|
44
|
+
"preferInstallDependencies": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"description": "Whether to prefer installing dependencies after the generator runs. Set to false to defer installing when batching multiple generators (an install still runs if needed so subsequent generators can compute the Nx project graph); install once at the end.",
|
|
47
|
+
"default": true
|
|
43
48
|
}
|
|
44
49
|
},
|
|
45
50
|
"required": ["project"]
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
* Defaults to --require-approval=never (standard for local dev deploys).
|
|
5
5
|
* If the user explicitly passes --require-approval with any value, we
|
|
6
6
|
* respect their choice and don't add the default.
|
|
7
|
+
*
|
|
8
|
+
* Deploys default to --express (CloudFormation express mode) for faster
|
|
9
|
+
* local iteration. Pass --no-express to opt out.
|
|
7
10
|
*/
|
|
8
11
|
export function buildCdkCommand(
|
|
9
12
|
action: string,
|
|
@@ -12,7 +15,12 @@ export function buildCdkCommand(
|
|
|
12
15
|
const hasRequireApproval = remainingArgs.some(
|
|
13
16
|
(a) => a === '--require-approval' || a.startsWith('--require-approval='),
|
|
14
17
|
);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
const hasExpressFlag = remainingArgs.some(
|
|
19
|
+
(a) => a === '--express' || a === '--no-express',
|
|
20
|
+
);
|
|
21
|
+
const defaults = [
|
|
22
|
+
...(hasRequireApproval ? [] : ['--require-approval=never']),
|
|
23
|
+
...(action === 'deploy' && !hasExpressFlag ? ['--express'] : []),
|
|
24
|
+
];
|
|
25
|
+
return ['cdk', action, ...defaults, ...remainingArgs];
|
|
18
26
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type Tree } from '@nx/devkit';
|
|
2
|
+
import type { ITsDepVersion } from './versions';
|
|
3
|
+
/**
|
|
4
|
+
* Languages whose dependencies a generator may install.
|
|
5
|
+
*/
|
|
6
|
+
export type InstallLanguage = 'typescript' | 'python';
|
|
7
|
+
export interface InstallDependenciesOptions {
|
|
8
|
+
/** Languages to install dependencies for. */
|
|
9
|
+
languages: InstallLanguage[];
|
|
10
|
+
/**
|
|
11
|
+
* Packages that must resolve from the workspace after this generator, because
|
|
12
|
+
* a config file it writes (e.g. `vite.config.mts`) imports them and Nx loads
|
|
13
|
+
* that config when computing the project graph. When the caller prefers to
|
|
14
|
+
* defer installing, we honour that only if these already resolve.
|
|
15
|
+
*
|
|
16
|
+
* The per-language graph deps in `LANGUAGE_GRAPH_DEPS` are always included, so
|
|
17
|
+
* callers only list packages beyond those.
|
|
18
|
+
*/
|
|
19
|
+
ensureResolvable?: ITsDepVersion[];
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Installs dependencies for the given languages.
|
|
23
|
+
*
|
|
24
|
+
* Call from a generator's returned callback:
|
|
25
|
+
* `return () => installDependencies(tree, options.preferInstallDependencies, { ... })`.
|
|
26
|
+
*
|
|
27
|
+
* `preferInstallDependencies` is a preference: when `false` the install is
|
|
28
|
+
* deferred so a batch installs once at the end — unless an `ensureResolvable`
|
|
29
|
+
* package is missing, in which case it runs anyway so the next `nx` command can
|
|
30
|
+
* still compute the project graph.
|
|
31
|
+
*/
|
|
32
|
+
export declare const installDependencies: (tree: Tree, preferInstallDependencies: boolean | undefined, options: InstallDependenciesOptions) => Promise<void>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/ import { existsSync } from "node:fs";
|
|
5
|
+
import { join } from "node:path";
|
|
6
|
+
import { installPackagesTask } from "@nx/devkit";
|
|
7
|
+
import { Logger, UVProvider } from "./nxlv-python.js";
|
|
8
|
+
/**
|
|
9
|
+
* Packages each language always needs resolvable for Nx to compute the project
|
|
10
|
+
* graph, so a deferred install still runs whenever it would otherwise break.
|
|
11
|
+
*/ const LANGUAGE_GRAPH_DEPS = {
|
|
12
|
+
typescript: [
|
|
13
|
+
'vitest'
|
|
14
|
+
],
|
|
15
|
+
python: [
|
|
16
|
+
'@nxlv/python'
|
|
17
|
+
]
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Returns true if every package is linked at `<root>/node_modules/<pkg>`.
|
|
21
|
+
*
|
|
22
|
+
* This is the condition Nx's inferred plugins need when they load a generated
|
|
23
|
+
* config (e.g. `vite.config.mts`) during graph computation: the config's
|
|
24
|
+
* imports resolve from inside the workspace's own `node_modules`. We avoid
|
|
25
|
+
* `require.resolve`, which can succeed via an ancestor `node_modules` even when
|
|
26
|
+
* the package isn't linked here. `existsSync` follows symlinks, so pnpm's store
|
|
27
|
+
* links resolve, and Nx always uses a `node_modules` linker (never PnP).
|
|
28
|
+
*/ const allResolvable = (root, packages)=>packages.every((pkg)=>existsSync(join(root, 'node_modules', pkg)));
|
|
29
|
+
/**
|
|
30
|
+
* Installs dependencies for the given languages.
|
|
31
|
+
*
|
|
32
|
+
* Call from a generator's returned callback:
|
|
33
|
+
* `return () => installDependencies(tree, options.preferInstallDependencies, { ... })`.
|
|
34
|
+
*
|
|
35
|
+
* `preferInstallDependencies` is a preference: when `false` the install is
|
|
36
|
+
* deferred so a batch installs once at the end — unless an `ensureResolvable`
|
|
37
|
+
* package is missing, in which case it runs anyway so the next `nx` command can
|
|
38
|
+
* still compute the project graph.
|
|
39
|
+
*/ export const installDependencies = async (tree, preferInstallDependencies, options)=>{
|
|
40
|
+
const { languages, ensureResolvable = [] } = options;
|
|
41
|
+
const mustResolve = [
|
|
42
|
+
...ensureResolvable,
|
|
43
|
+
...languages.flatMap((language)=>LANGUAGE_GRAPH_DEPS[language])
|
|
44
|
+
];
|
|
45
|
+
if (preferInstallDependencies === false && allResolvable(tree.root, mustResolve)) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (languages.includes('typescript')) {
|
|
49
|
+
installPackagesTask(tree);
|
|
50
|
+
}
|
|
51
|
+
if (languages.includes('python')) {
|
|
52
|
+
await new UVProvider(tree.root, new Logger(), tree).install();
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=install.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../packages/nx-plugin/src/utils/install.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { existsSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { installPackagesTask, type Tree } from '@nx/devkit';\nimport { Logger, UVProvider } from './nxlv-python';\nimport type { ITsDepVersion } from './versions';\n\n/**\n * Languages whose dependencies a generator may install.\n */\nexport type InstallLanguage = 'typescript' | 'python';\n\nexport interface InstallDependenciesOptions {\n /** Languages to install dependencies for. */\n languages: InstallLanguage[];\n /**\n * Packages that must resolve from the workspace after this generator, because\n * a config file it writes (e.g. `vite.config.mts`) imports them and Nx loads\n * that config when computing the project graph. When the caller prefers to\n * defer installing, we honour that only if these already resolve.\n *\n * The per-language graph deps in `LANGUAGE_GRAPH_DEPS` are always included, so\n * callers only list packages beyond those.\n */\n ensureResolvable?: ITsDepVersion[];\n}\n\n/**\n * Packages each language always needs resolvable for Nx to compute the project\n * graph, so a deferred install still runs whenever it would otherwise break.\n */\nconst LANGUAGE_GRAPH_DEPS: Record<InstallLanguage, string[]> = {\n typescript: ['vitest'], // every TypeScript project has a `vitest.config.mts`\n python: ['@nxlv/python'], // every Python project registers this inference plugin\n};\n\n/**\n * Returns true if every package is linked at `<root>/node_modules/<pkg>`.\n *\n * This is the condition Nx's inferred plugins need when they load a generated\n * config (e.g. `vite.config.mts`) during graph computation: the config's\n * imports resolve from inside the workspace's own `node_modules`. We avoid\n * `require.resolve`, which can succeed via an ancestor `node_modules` even when\n * the package isn't linked here. `existsSync` follows symlinks, so pnpm's store\n * links resolve, and Nx always uses a `node_modules` linker (never PnP).\n */\nconst allResolvable = (root: string, packages: string[]): boolean =>\n packages.every((pkg) => existsSync(join(root, 'node_modules', pkg)));\n\n/**\n * Installs dependencies for the given languages.\n *\n * Call from a generator's returned callback:\n * `return () => installDependencies(tree, options.preferInstallDependencies, { ... })`.\n *\n * `preferInstallDependencies` is a preference: when `false` the install is\n * deferred so a batch installs once at the end — unless an `ensureResolvable`\n * package is missing, in which case it runs anyway so the next `nx` command can\n * still compute the project graph.\n */\nexport const installDependencies = async (\n tree: Tree,\n preferInstallDependencies: boolean | undefined,\n options: InstallDependenciesOptions,\n): Promise<void> => {\n const { languages, ensureResolvable = [] } = options;\n const mustResolve = [\n ...ensureResolvable,\n ...languages.flatMap((language) => LANGUAGE_GRAPH_DEPS[language]),\n ];\n if (\n preferInstallDependencies === false &&\n allResolvable(tree.root, mustResolve)\n ) {\n return;\n }\n if (languages.includes('typescript')) {\n installPackagesTask(tree);\n }\n if (languages.includes('python')) {\n await new UVProvider(tree.root, new Logger(), tree).install();\n }\n};\n"],"names":["existsSync","join","installPackagesTask","Logger","UVProvider","LANGUAGE_GRAPH_DEPS","typescript","python","allResolvable","root","packages","every","pkg","installDependencies","tree","preferInstallDependencies","options","languages","ensureResolvable","mustResolve","flatMap","language","includes","install"],"mappings":"AAAA;;;CAGC,GACD,SAASA,UAAU,QAAQ,UAAU;AACrC,SAASC,IAAI,QAAQ,YAAY;AACjC,SAASC,mBAAmB,QAAmB,aAAa;AAC5D,SAASC,MAAM,EAAEC,UAAU,QAAQ,mBAAgB;AAuBnD;;;CAGC,GACD,MAAMC,sBAAyD;IAC7DC,YAAY;QAAC;KAAS;IACtBC,QAAQ;QAAC;KAAe;AAC1B;AAEA;;;;;;;;;CASC,GACD,MAAMC,gBAAgB,CAACC,MAAcC,WACnCA,SAASC,KAAK,CAAC,CAACC,MAAQZ,WAAWC,KAAKQ,MAAM,gBAAgBG;AAEhE;;;;;;;;;;CAUC,GACD,OAAO,MAAMC,sBAAsB,OACjCC,MACAC,2BACAC;IAEA,MAAM,EAAEC,SAAS,EAAEC,mBAAmB,EAAE,EAAE,GAAGF;IAC7C,MAAMG,cAAc;WACfD;WACAD,UAAUG,OAAO,CAAC,CAACC,WAAahB,mBAAmB,CAACgB,SAAS;KACjE;IACD,IACEN,8BAA8B,SAC9BP,cAAcM,KAAKL,IAAI,EAAEU,cACzB;QACA;IACF;IACA,IAAIF,UAAUK,QAAQ,CAAC,eAAe;QACpCpB,oBAAoBY;IACtB;IACA,IAAIG,UAAUK,QAAQ,CAAC,WAAW;QAChC,MAAM,IAAIlB,WAAWU,KAAKL,IAAI,EAAE,IAAIN,UAAUW,MAAMS,OAAO;IAC7D;AACF,EAAE"}
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const TS_VERSIONS: {
|
|
9
9
|
readonly '@a2a-js/sdk': "0.3.13";
|
|
10
|
-
readonly '@aws/aws-distro-opentelemetry-node-autoinstrumentation': "0.
|
|
11
|
-
readonly '@aws-sdk/client-dynamodb': "3.
|
|
12
|
-
readonly '@aws-sdk/client-bedrock-runtime': "3.
|
|
13
|
-
readonly '@aws-sdk/client-s3': "3.
|
|
14
|
-
readonly '@aws-sdk/client-sts': "3.
|
|
15
|
-
readonly '@aws-sdk/credential-providers': "3.
|
|
16
|
-
readonly '@aws-sdk/credential-provider-cognito-identity': "3.972.
|
|
17
|
-
readonly '@aws-sdk/client-secrets-manager': "3.
|
|
18
|
-
readonly '@aws-sdk/rds-signer': "3.
|
|
10
|
+
readonly '@aws/aws-distro-opentelemetry-node-autoinstrumentation': "0.12.0";
|
|
11
|
+
readonly '@aws-sdk/client-dynamodb': "3.1075.0";
|
|
12
|
+
readonly '@aws-sdk/client-bedrock-runtime': "3.1075.0";
|
|
13
|
+
readonly '@aws-sdk/client-s3': "3.1075.0";
|
|
14
|
+
readonly '@aws-sdk/client-sts': "3.1075.0";
|
|
15
|
+
readonly '@aws-sdk/credential-providers': "3.1075.0";
|
|
16
|
+
readonly '@aws-sdk/credential-provider-cognito-identity': "3.972.48";
|
|
17
|
+
readonly '@aws-sdk/client-secrets-manager': "3.1075.0";
|
|
18
|
+
readonly '@aws-sdk/rds-signer': "3.1075.0";
|
|
19
19
|
readonly '@aws-smithy/server-apigateway': "1.0.0-alpha.10";
|
|
20
20
|
readonly '@aws-smithy/server-node': "1.0.0-alpha.10";
|
|
21
21
|
readonly '@aws-lambda-powertools/logger': "2.33.1";
|
|
@@ -23,57 +23,57 @@ export declare const TS_VERSIONS: {
|
|
|
23
23
|
readonly '@aws-lambda-powertools/parameters': "2.33.1";
|
|
24
24
|
readonly '@aws-lambda-powertools/tracer': "2.33.1";
|
|
25
25
|
readonly '@aws-lambda-powertools/parser': "2.33.1";
|
|
26
|
-
readonly '@aws-sdk/client-appconfigdata': "3.
|
|
27
|
-
readonly '@middy/core': "7.
|
|
28
|
-
readonly '@nxlv/python': "22.2.
|
|
26
|
+
readonly '@aws-sdk/client-appconfigdata': "3.1075.0";
|
|
27
|
+
readonly '@middy/core': "7.7.0";
|
|
28
|
+
readonly '@nxlv/python': "22.2.1";
|
|
29
29
|
readonly '@nx-extend/terraform': "10.2.1";
|
|
30
30
|
readonly '@nx/devkit': "23.0.1";
|
|
31
31
|
readonly '@nx/react': "23.0.1";
|
|
32
32
|
readonly 'create-nx-workspace': "23.0.1";
|
|
33
33
|
readonly '@swc-node/register': "1.11.1";
|
|
34
|
-
readonly '@swc/core': "1.15.
|
|
34
|
+
readonly '@swc/core': "1.15.43";
|
|
35
35
|
readonly '@modelcontextprotocol/sdk': "1.29.0";
|
|
36
36
|
readonly '@modelcontextprotocol/inspector': "0.19.0";
|
|
37
|
-
readonly '@ag-ui/aws-strands': "0.
|
|
37
|
+
readonly '@ag-ui/aws-strands': "0.2.3";
|
|
38
38
|
readonly '@ag-ui/client': "0.0.57";
|
|
39
39
|
readonly '@ag-ui/core': "0.0.57";
|
|
40
40
|
readonly '@ag-ui/encoder': "0.0.57";
|
|
41
41
|
readonly 'agent-chat-cli': "0.3.0";
|
|
42
|
-
readonly '@copilotkit/react-core': "1.
|
|
42
|
+
readonly '@copilotkit/react-core': "1.61.2";
|
|
43
43
|
readonly rxjs: "7.8.2";
|
|
44
|
-
readonly '@strands-agents/sdk': "1.
|
|
45
|
-
readonly '@tanstack/react-router': "1.170.
|
|
44
|
+
readonly '@strands-agents/sdk': "1.7.0";
|
|
45
|
+
readonly '@tanstack/react-router': "1.170.16";
|
|
46
46
|
readonly '@tanstack/router-plugin': "1.168.18";
|
|
47
47
|
readonly '@tanstack/router-generator': "1.167.17";
|
|
48
48
|
readonly '@tanstack/virtual-file-routes': "1.162.0";
|
|
49
49
|
readonly '@tanstack/router-utils': "1.162.2";
|
|
50
|
-
readonly '@cloudscape-design/board-components': "3.0.
|
|
51
|
-
readonly '@cloudscape-design/chat-components': "1.0.
|
|
52
|
-
readonly '@cloudscape-design/components': "3.0.
|
|
53
|
-
readonly '@cloudscape-design/global-styles': "1.0.
|
|
54
|
-
readonly '@tanstack/react-query': "5.101.
|
|
55
|
-
readonly '@tanstack/react-query-devtools': "5.101.
|
|
56
|
-
readonly '@trpc/tanstack-react-query': "11.
|
|
57
|
-
readonly '@trpc/client': "11.
|
|
58
|
-
readonly '@trpc/server': "11.
|
|
59
|
-
readonly '@types/node': "25.9.
|
|
50
|
+
readonly '@cloudscape-design/board-components': "3.0.197";
|
|
51
|
+
readonly '@cloudscape-design/chat-components': "1.0.146";
|
|
52
|
+
readonly '@cloudscape-design/components': "3.0.1320";
|
|
53
|
+
readonly '@cloudscape-design/global-styles': "1.0.61";
|
|
54
|
+
readonly '@tanstack/react-query': "5.101.2";
|
|
55
|
+
readonly '@tanstack/react-query-devtools': "5.101.2";
|
|
56
|
+
readonly '@trpc/tanstack-react-query': "11.18.0";
|
|
57
|
+
readonly '@trpc/client': "11.18.0";
|
|
58
|
+
readonly '@trpc/server': "11.18.0";
|
|
59
|
+
readonly '@types/node': "25.9.4";
|
|
60
60
|
readonly '@types/aws-lambda': "8.10.162";
|
|
61
61
|
readonly '@types/cors': "2.8.19";
|
|
62
62
|
readonly '@types/pg': "8.20.0";
|
|
63
63
|
readonly '@types/ws': "8.18.1";
|
|
64
64
|
readonly '@types/express': "5.0.6";
|
|
65
|
-
readonly '@smithy/config-resolver': "4.
|
|
66
|
-
readonly '@smithy/node-config-provider': "4.
|
|
67
|
-
readonly '@smithy/node-http-handler': "4.
|
|
68
|
-
readonly '@smithy/types': "4.
|
|
69
|
-
readonly '@vitest/coverage-v8': "4.1.
|
|
70
|
-
readonly '@vitest/ui': "4.1.
|
|
65
|
+
readonly '@smithy/config-resolver': "4.6.2";
|
|
66
|
+
readonly '@smithy/node-config-provider': "4.5.2";
|
|
67
|
+
readonly '@smithy/node-http-handler': "4.8.2";
|
|
68
|
+
readonly '@smithy/types': "4.15.0";
|
|
69
|
+
readonly '@vitest/coverage-v8': "4.1.9";
|
|
70
|
+
readonly '@vitest/ui': "4.1.9";
|
|
71
71
|
readonly '@astrojs/react': "5.0.7";
|
|
72
72
|
readonly '@astrojs/starlight': "0.40.0";
|
|
73
|
-
readonly astro: "6.4.
|
|
73
|
+
readonly astro: "6.4.8";
|
|
74
74
|
readonly aws4fetch: "1.0.20";
|
|
75
|
-
readonly 'aws-cdk': "2.
|
|
76
|
-
readonly 'aws-cdk-lib': "2.
|
|
75
|
+
readonly 'aws-cdk': "2.1129.0";
|
|
76
|
+
readonly 'aws-cdk-lib': "2.260.0";
|
|
77
77
|
readonly 'aws-xray-sdk-core': "3.12.0";
|
|
78
78
|
readonly constructs: "10.6.0";
|
|
79
79
|
readonly cors: "2.8.6";
|
|
@@ -85,7 +85,7 @@ export declare const TS_VERSIONS: {
|
|
|
85
85
|
readonly esbuild: "0.28.1";
|
|
86
86
|
readonly 'event-source-polyfill': "1.0.31";
|
|
87
87
|
readonly '@types/event-source-polyfill': "1.0.5";
|
|
88
|
-
readonly '@biomejs/biome': "2.5.
|
|
88
|
+
readonly '@biomejs/biome': "2.5.1";
|
|
89
89
|
readonly '@prisma/adapter-mariadb': "7.8.0";
|
|
90
90
|
readonly '@prisma/adapter-pg': "7.8.0";
|
|
91
91
|
readonly '@prisma/client': "7.8.0";
|
|
@@ -101,27 +101,27 @@ export declare const TS_VERSIONS: {
|
|
|
101
101
|
readonly ncp: "2.0.0";
|
|
102
102
|
readonly 'npm-check-updates': "19.6.6";
|
|
103
103
|
readonly 'oidc-client-ts': "3.5.0";
|
|
104
|
-
readonly pg: "8.
|
|
104
|
+
readonly pg: "8.22.0";
|
|
105
105
|
readonly prisma: "7.8.0";
|
|
106
106
|
readonly 'react-oidc-context': "3.3.1";
|
|
107
107
|
readonly react: "19.2.7";
|
|
108
108
|
readonly 'react-dom': "19.2.7";
|
|
109
109
|
readonly rimraf: "6.1.3";
|
|
110
|
-
readonly rolldown: "1.1.
|
|
110
|
+
readonly rolldown: "1.1.3";
|
|
111
111
|
readonly 'simple-git': "3.36.0";
|
|
112
112
|
readonly 'source-map-support': "0.5.21";
|
|
113
113
|
readonly 'starlight-blog': "0.26.1";
|
|
114
114
|
readonly tailwindcss: "4.2.2";
|
|
115
115
|
readonly '@tailwindcss/vite': "4.2.2";
|
|
116
116
|
readonly tsx: "4.22.4";
|
|
117
|
-
readonly 'lucide-react': "1.
|
|
118
|
-
readonly 'radix-ui': "1.
|
|
119
|
-
readonly shadcn: "4.
|
|
117
|
+
readonly 'lucide-react': "1.22.0";
|
|
118
|
+
readonly 'radix-ui': "1.6.0";
|
|
119
|
+
readonly shadcn: "4.12.0";
|
|
120
120
|
readonly 'tw-animate-css': "1.4.0";
|
|
121
121
|
readonly 'tailwind-merge': "3.6.0";
|
|
122
|
-
readonly vite: "8.0
|
|
122
|
+
readonly vite: "8.1.0";
|
|
123
123
|
readonly typescript: "6.0.3";
|
|
124
|
-
readonly vitest: "4.1.
|
|
124
|
+
readonly vitest: "4.1.9";
|
|
125
125
|
readonly zod: "4.4.3";
|
|
126
126
|
readonly ws: "8.21.0";
|
|
127
127
|
};
|
|
@@ -130,7 +130,7 @@ export type ITsDepVersion = keyof typeof TS_VERSIONS;
|
|
|
130
130
|
* Add versions to the given dependencies
|
|
131
131
|
*/
|
|
132
132
|
export declare const withVersions: (deps: ITsDepVersion[]) => {
|
|
133
|
-
[k: string]: "0.3.13" | "0.
|
|
133
|
+
[k: string]: "0.3.13" | "0.12.0" | "3.1075.0" | "3.972.48" | "1.0.0-alpha.10" | "2.33.1" | "7.7.0" | "22.2.1" | "10.2.1" | "23.0.1" | "1.11.1" | "1.15.43" | "1.29.0" | "0.19.0" | "0.2.3" | "0.0.57" | "0.3.0" | "1.61.2" | "7.8.2" | "1.7.0" | "1.170.16" | "1.168.18" | "1.167.17" | "1.162.0" | "1.162.2" | "3.0.197" | "1.0.146" | "3.0.1320" | "1.0.61" | "5.101.2" | "11.18.0" | "25.9.4" | "8.10.162" | "2.8.19" | "8.20.0" | "8.18.1" | "5.0.6" | "4.6.2" | "4.5.2" | "4.8.2" | "4.15.0" | "4.1.9" | "5.0.7" | "0.40.0" | "6.4.8" | "1.0.20" | "2.1129.0" | "2.260.0" | "3.12.0" | "10.6.0" | "2.8.6" | "5.6.2" | "0.7.1" | "2.1.1" | "14.0.3" | "3.9.1" | "0.28.1" | "1.0.31" | "1.0.5" | "2.5.1" | "7.8.0" | "6.0.1" | "3.1.5" | "5.2.1" | "3.3.3" | "9.1.7" | "11.3.5" | "11.0.4" | "4.0.0" | "3.5.3" | "2.0.0" | "19.6.6" | "3.5.0" | "8.22.0" | "3.3.1" | "19.2.7" | "6.1.3" | "1.1.3" | "3.36.0" | "0.5.21" | "0.26.1" | "4.2.2" | "4.22.4" | "1.22.0" | "1.6.0" | "4.12.0" | "1.4.0" | "3.6.0" | "8.1.0" | "6.0.3" | "4.4.3" | "8.21.0";
|
|
134
134
|
};
|
|
135
135
|
/**
|
|
136
136
|
* Versions for Python dependencies added by generators
|
|
@@ -139,28 +139,28 @@ export declare const PY_VERSIONS: {
|
|
|
139
139
|
readonly 'a2a-sdk': "==0.3.26";
|
|
140
140
|
readonly 'ag-ui-langgraph': "==0.0.42";
|
|
141
141
|
readonly 'ag-ui-protocol': "==0.1.19";
|
|
142
|
-
readonly 'ag-ui-strands': "==0.2.
|
|
143
|
-
readonly 'aws-lambda-powertools': "==3.
|
|
144
|
-
readonly 'aws-lambda-powertools[tracer]': "==3.
|
|
145
|
-
readonly 'aws-lambda-powertools[parser]': "==3.
|
|
146
|
-
readonly 'aws-opentelemetry-distro': "==0.
|
|
147
|
-
readonly 'bedrock-agentcore': "==1.
|
|
148
|
-
readonly boto3: "==1.43.
|
|
149
|
-
readonly checkov: "==3.3.
|
|
150
|
-
readonly fastapi: "==0.
|
|
151
|
-
readonly 'fastapi[standard]': "==0.
|
|
142
|
+
readonly 'ag-ui-strands': "==0.2.2";
|
|
143
|
+
readonly 'aws-lambda-powertools': "==3.31.0";
|
|
144
|
+
readonly 'aws-lambda-powertools[tracer]': "==3.31.0";
|
|
145
|
+
readonly 'aws-lambda-powertools[parser]': "==3.31.0";
|
|
146
|
+
readonly 'aws-opentelemetry-distro': "==0.18.0";
|
|
147
|
+
readonly 'bedrock-agentcore': "==1.15.1";
|
|
148
|
+
readonly boto3: "==1.43.37";
|
|
149
|
+
readonly checkov: "==3.3.6";
|
|
150
|
+
readonly fastapi: "==0.138.2";
|
|
151
|
+
readonly 'fastapi[standard]': "==0.138.2";
|
|
152
152
|
readonly httpx: "==0.28.1";
|
|
153
|
-
readonly langchain: "==1.3.
|
|
154
|
-
readonly 'langchain-aws': "==1.
|
|
153
|
+
readonly langchain: "==1.3.11";
|
|
154
|
+
readonly 'langchain-aws': "==1.6.1";
|
|
155
155
|
readonly 'langchain-mcp-adapters': "==0.3.0";
|
|
156
|
-
readonly langgraph: "==1.2.
|
|
157
|
-
readonly mcp: "==1.
|
|
158
|
-
readonly 'pip-check-updates': "==0.
|
|
156
|
+
readonly langgraph: "==1.2.7";
|
|
157
|
+
readonly mcp: "==1.28.1";
|
|
158
|
+
readonly 'pip-check-updates': "==0.29.0";
|
|
159
159
|
readonly 'pip-licenses': "==5.5.5";
|
|
160
|
-
readonly 'strands-agents': "==1.
|
|
161
|
-
readonly 'strands-agents[a2a]': "==1.
|
|
162
|
-
readonly 'strands-agents-tools': "==0.8.
|
|
163
|
-
readonly ty: "==0.0.
|
|
160
|
+
readonly 'strands-agents': "==1.45.0";
|
|
161
|
+
readonly 'strands-agents[a2a]': "==1.45.0";
|
|
162
|
+
readonly 'strands-agents-tools': "==0.8.2";
|
|
163
|
+
readonly ty: "==0.0.55";
|
|
164
164
|
readonly pynamodb: "==6.1.0";
|
|
165
165
|
readonly uvicorn: "==0.49.0";
|
|
166
166
|
};
|