@aws/nx-plugin-mcp 1.7.1 → 1.8.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/bin/aws-nx-mcp.js
CHANGED
|
@@ -39,15 +39,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
39
39
|
enumerable: true
|
|
40
40
|
}) : target, mod));
|
|
41
41
|
let node_process = require("node:process");
|
|
42
|
-
node_process = __toESM(node_process, 1);
|
|
43
42
|
let path = require("path");
|
|
43
|
+
let fs = require("fs");
|
|
44
|
+
let node_path = require("node:path");
|
|
45
|
+
let node_url = require("node:url");
|
|
46
|
+
node_process = __toESM(node_process, 1);
|
|
44
47
|
let path$3 = __toESM(path, 1);
|
|
45
48
|
path = __toESM(path);
|
|
46
|
-
let fs = require("fs");
|
|
47
49
|
fs = __toESM(fs, 1);
|
|
48
|
-
let node_path = require("node:path");
|
|
49
50
|
node_path = __toESM(node_path, 1);
|
|
50
|
-
let node_url = require("node:url");
|
|
51
51
|
// ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v3/helpers/util.js
|
|
52
52
|
var util;
|
|
53
53
|
(function(util) {
|
|
@@ -757,8 +757,7 @@ var ZodType$1 = class {
|
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
759
|
describe(description) {
|
|
760
|
-
|
|
761
|
-
return new This({
|
|
760
|
+
return new this.constructor({
|
|
762
761
|
...this._def,
|
|
763
762
|
description
|
|
764
763
|
});
|
|
@@ -2585,9 +2584,7 @@ function mergeValues$1(a, b) {
|
|
|
2585
2584
|
if (a.length !== b.length) return { valid: false };
|
|
2586
2585
|
const newArray = [];
|
|
2587
2586
|
for (let index = 0; index < a.length; index++) {
|
|
2588
|
-
const
|
|
2589
|
-
const itemB = b[index];
|
|
2590
|
-
const sharedValue = mergeValues$1(itemA, itemB);
|
|
2587
|
+
const sharedValue = mergeValues$1(a[index], b[index]);
|
|
2591
2588
|
if (!sharedValue.valid) return { valid: false };
|
|
2592
2589
|
newArray.push(sharedValue.data);
|
|
2593
2590
|
}
|
|
@@ -3792,8 +3789,8 @@ function optionalKeys(shape) {
|
|
|
3792
3789
|
}
|
|
3793
3790
|
const NUMBER_FORMAT_RANGES = /*@__PURE__*/ (() => ({
|
|
3794
3791
|
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
3795
|
-
int32: [-
|
|
3796
|
-
uint32: [0,
|
|
3792
|
+
int32: [-0x80000000, 0x7fffffff],
|
|
3793
|
+
uint32: [0, 0xffffffff],
|
|
3797
3794
|
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
3798
3795
|
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
3799
3796
|
}))();
|
|
@@ -5988,9 +5985,7 @@ function mergeValues(a, b) {
|
|
|
5988
5985
|
};
|
|
5989
5986
|
const newArray = [];
|
|
5990
5987
|
for (let index = 0; index < a.length; index++) {
|
|
5991
|
-
const
|
|
5992
|
-
const itemB = b[index];
|
|
5993
|
-
const sharedValue = mergeValues(itemA, itemB);
|
|
5988
|
+
const sharedValue = mergeValues(a[index], b[index]);
|
|
5994
5989
|
if (!sharedValue.valid) return {
|
|
5995
5990
|
valid: false,
|
|
5996
5991
|
mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
|
|
@@ -7979,8 +7974,7 @@ const dateProcessor = (schema, ctx, json, params) => {
|
|
|
7979
7974
|
handleUnrepresentable(schema, ctx, json, params, "Date cannot be represented in JSON Schema");
|
|
7980
7975
|
};
|
|
7981
7976
|
const enumProcessor = (schema, _ctx, json, _params) => {
|
|
7982
|
-
const
|
|
7983
|
-
const values = getEnumValues(def.entries);
|
|
7977
|
+
const values = getEnumValues(schema._zod.def.entries);
|
|
7984
7978
|
if (values.length === 0) {
|
|
7985
7979
|
json.not = {};
|
|
7986
7980
|
return;
|
|
@@ -21497,7 +21491,7 @@ const EMPTY_COMPLETION_RESULT = { completion: {
|
|
|
21497
21491
|
*/
|
|
21498
21492
|
var ReadBuffer = class {
|
|
21499
21493
|
constructor(options) {
|
|
21500
|
-
this._maxBufferSize = options?.maxBufferSize ??
|
|
21494
|
+
this._maxBufferSize = options?.maxBufferSize ?? 0xa00000;
|
|
21501
21495
|
}
|
|
21502
21496
|
append(chunk) {
|
|
21503
21497
|
if ((this._buffer?.length ?? 0) + chunk.length > this._maxBufferSize) {
|
|
@@ -22613,25 +22607,25 @@ const kebabCase = (str) => {
|
|
|
22613
22607
|
*/
|
|
22614
22608
|
const NX_VERSION = {
|
|
22615
22609
|
"@a2a-js/sdk": "0.3.14",
|
|
22616
|
-
"@aws/aws-distro-opentelemetry-node-autoinstrumentation": "0.
|
|
22610
|
+
"@aws/aws-distro-opentelemetry-node-autoinstrumentation": "0.15.0",
|
|
22617
22611
|
"@opentelemetry/propagator-jaeger": "2.12.1",
|
|
22618
|
-
minimatch: "11.0.
|
|
22612
|
+
minimatch: "11.0.9",
|
|
22619
22613
|
"deepmerge-ts": "8.0.2",
|
|
22620
22614
|
mysql2: "3.24.6",
|
|
22621
22615
|
effect: "3.22.5",
|
|
22622
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
22623
|
-
"@aws-sdk/client-api-gateway": "3.
|
|
22624
|
-
"@aws-sdk/client-iam": "3.
|
|
22625
|
-
"@aws-sdk/client-bedrock-agentcore": "3.
|
|
22626
|
-
"@aws-sdk/client-bedrock-runtime": "3.
|
|
22627
|
-
"@aws-sdk/client-greengrassv2": "3.
|
|
22628
|
-
"@aws-sdk/client-s3": "3.
|
|
22629
|
-
"@aws-sdk/client-sts": "3.
|
|
22630
|
-
"@aws-sdk/client-cognito-identity-provider": "3.
|
|
22631
|
-
"@aws-sdk/credential-providers": "3.
|
|
22632
|
-
"@aws-sdk/credential-provider-cognito-identity": "3.972.
|
|
22633
|
-
"@aws-sdk/client-secrets-manager": "3.
|
|
22634
|
-
"@aws-sdk/rds-signer": "3.
|
|
22616
|
+
"@aws-sdk/client-dynamodb": "3.1175.0",
|
|
22617
|
+
"@aws-sdk/client-api-gateway": "3.1175.0",
|
|
22618
|
+
"@aws-sdk/client-iam": "3.1175.0",
|
|
22619
|
+
"@aws-sdk/client-bedrock-agentcore": "3.1175.0",
|
|
22620
|
+
"@aws-sdk/client-bedrock-runtime": "3.1175.0",
|
|
22621
|
+
"@aws-sdk/client-greengrassv2": "3.1175.0",
|
|
22622
|
+
"@aws-sdk/client-s3": "3.1175.0",
|
|
22623
|
+
"@aws-sdk/client-sts": "3.1175.0",
|
|
22624
|
+
"@aws-sdk/client-cognito-identity-provider": "3.1175.0",
|
|
22625
|
+
"@aws-sdk/credential-providers": "3.1175.0",
|
|
22626
|
+
"@aws-sdk/credential-provider-cognito-identity": "3.972.84",
|
|
22627
|
+
"@aws-sdk/client-secrets-manager": "3.1175.0",
|
|
22628
|
+
"@aws-sdk/rds-signer": "3.1175.0",
|
|
22635
22629
|
"@smithy/server-apigateway": "0.3.5",
|
|
22636
22630
|
"@smithy/server-node": "0.3.5",
|
|
22637
22631
|
"@aws-lambda-powertools/logger": "2.36.0",
|
|
@@ -22639,9 +22633,9 @@ const NX_VERSION = {
|
|
|
22639
22633
|
"@aws-lambda-powertools/parameters": "2.36.0",
|
|
22640
22634
|
"@aws-lambda-powertools/tracer": "2.36.0",
|
|
22641
22635
|
"@aws-lambda-powertools/parser": "2.36.0",
|
|
22642
|
-
"@aws-sdk/client-appconfigdata": "3.
|
|
22636
|
+
"@aws-sdk/client-appconfigdata": "3.1175.0",
|
|
22643
22637
|
"@middy/core": "7.9.2",
|
|
22644
|
-
"@nxlv/python": "23.
|
|
22638
|
+
"@nxlv/python": "23.5.0",
|
|
22645
22639
|
"@nx-extend/terraform": "10.4.1",
|
|
22646
22640
|
nx: "24.0.6",
|
|
22647
22641
|
"@nx/devkit": "24.0.6",
|
|
@@ -22655,30 +22649,30 @@ const NX_VERSION = {
|
|
|
22655
22649
|
"@swc/core": "1.16.22",
|
|
22656
22650
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
22657
22651
|
"@modelcontextprotocol/client": "2.4.0",
|
|
22658
|
-
"@modelcontextprotocol/inspector": "2.
|
|
22652
|
+
"@modelcontextprotocol/inspector": "2.16.0",
|
|
22659
22653
|
"@ag-ui/a2ui-toolkit": "0.0.5",
|
|
22660
22654
|
"@ag-ui/aws-strands": "1.0.2",
|
|
22661
|
-
"@ag-ui/client": "1.0.
|
|
22662
|
-
"@ag-ui/core": "1.0.
|
|
22663
|
-
"@ag-ui/encoder": "1.0.
|
|
22655
|
+
"@ag-ui/client": "1.0.5",
|
|
22656
|
+
"@ag-ui/core": "1.0.5",
|
|
22657
|
+
"@ag-ui/encoder": "1.0.5",
|
|
22664
22658
|
"agent-chat-cli": "0.3.0",
|
|
22665
|
-
"@copilotkit/react-core": "1.
|
|
22659
|
+
"@copilotkit/react-core": "1.90.0",
|
|
22666
22660
|
rxjs: "7.8.2",
|
|
22667
|
-
"@strands-agents/sdk": "1.
|
|
22661
|
+
"@strands-agents/sdk": "1.26.0",
|
|
22668
22662
|
"@tanstack/react-router": "1.170.46",
|
|
22669
22663
|
"@tanstack/router-plugin": "1.169.0",
|
|
22670
22664
|
"@tanstack/router-generator": "1.168.0",
|
|
22671
22665
|
"@tanstack/virtual-file-routes": "1.162.0",
|
|
22672
22666
|
"@tanstack/router-utils": "1.163.0",
|
|
22673
|
-
"@cloudscape-design/board-components": "3.0.
|
|
22674
|
-
"@cloudscape-design/chat-components": "1.0.
|
|
22675
|
-
"@cloudscape-design/components": "3.0.
|
|
22667
|
+
"@cloudscape-design/board-components": "3.0.250",
|
|
22668
|
+
"@cloudscape-design/chat-components": "1.0.194",
|
|
22669
|
+
"@cloudscape-design/components": "3.0.1421",
|
|
22676
22670
|
"@cloudscape-design/global-styles": "1.0.72",
|
|
22677
|
-
"@tanstack/react-query": "5.
|
|
22678
|
-
"@tanstack/react-query-devtools": "5.
|
|
22679
|
-
"@trpc/tanstack-react-query": "11.
|
|
22680
|
-
"@trpc/client": "11.
|
|
22681
|
-
"@trpc/server": "11.
|
|
22671
|
+
"@tanstack/react-query": "5.108.2",
|
|
22672
|
+
"@tanstack/react-query-devtools": "5.108.2",
|
|
22673
|
+
"@trpc/tanstack-react-query": "11.29.7",
|
|
22674
|
+
"@trpc/client": "11.29.7",
|
|
22675
|
+
"@trpc/server": "11.29.7",
|
|
22682
22676
|
"@types/node": "26.6.6",
|
|
22683
22677
|
"@types/aws-lambda": "8.10.164",
|
|
22684
22678
|
"@types/cors": "2.8.19",
|
|
@@ -22690,15 +22684,15 @@ const NX_VERSION = {
|
|
|
22690
22684
|
"@smithy/node-config-provider": "4.6.2",
|
|
22691
22685
|
"@smithy/node-http-handler": "4.14.2",
|
|
22692
22686
|
"@smithy/types": "4.20.0",
|
|
22693
|
-
"@vitest/coverage-v8": "5.1.
|
|
22694
|
-
"@vitest/ui": "5.1.
|
|
22687
|
+
"@vitest/coverage-v8": "5.1.1",
|
|
22688
|
+
"@vitest/ui": "5.1.1",
|
|
22695
22689
|
"@astrojs/react": "6.0.6",
|
|
22696
22690
|
"@astrojs/starlight": "0.43.1",
|
|
22697
|
-
astro: "7.4.
|
|
22691
|
+
astro: "7.4.13",
|
|
22698
22692
|
cookie: "2.0.2",
|
|
22699
22693
|
aws4fetch: "1.0.20",
|
|
22700
|
-
"aws-cdk": "2.
|
|
22701
|
-
"aws-cdk-lib": "2.
|
|
22694
|
+
"aws-cdk": "2.1149.0",
|
|
22695
|
+
"aws-cdk-lib": "2.278.0",
|
|
22702
22696
|
"aws-iot-device-sdk-v2": "1.28.2",
|
|
22703
22697
|
"aws-xray-sdk-core": "3.12.0",
|
|
22704
22698
|
constructs: "10.8.1",
|
|
@@ -22711,7 +22705,7 @@ const NX_VERSION = {
|
|
|
22711
22705
|
esbuild: "0.28.2",
|
|
22712
22706
|
"event-source-polyfill": "1.0.31",
|
|
22713
22707
|
"@types/event-source-polyfill": "1.0.5",
|
|
22714
|
-
"@biomejs/biome": "2.6.
|
|
22708
|
+
"@biomejs/biome": "2.6.8",
|
|
22715
22709
|
"@prisma/adapter-mariadb": "7.10.1",
|
|
22716
22710
|
"@prisma/adapter-pg": "7.10.1",
|
|
22717
22711
|
"@prisma/client": "7.10.1",
|
|
@@ -22724,8 +22718,8 @@ const NX_VERSION = {
|
|
|
22724
22718
|
"@types/fs-extra": "11.0.4",
|
|
22725
22719
|
"js-yaml": "4.3.2",
|
|
22726
22720
|
mariadb: "3.5.5",
|
|
22727
|
-
mise: "2026.11.
|
|
22728
|
-
npm: "12.2.
|
|
22721
|
+
mise: "2026.11.12",
|
|
22722
|
+
npm: "12.2.3",
|
|
22729
22723
|
"npm-check-updates": "23.1.1",
|
|
22730
22724
|
"oidc-client-ts": "3.5.0",
|
|
22731
22725
|
pg: "8.23.1",
|
|
@@ -22733,22 +22727,22 @@ const NX_VERSION = {
|
|
|
22733
22727
|
"react-oidc-context": "3.3.1",
|
|
22734
22728
|
react: "19.3.1",
|
|
22735
22729
|
"react-dom": "19.3.1",
|
|
22736
|
-
rolldown: "1.3.
|
|
22730
|
+
rolldown: "1.3.3",
|
|
22737
22731
|
"rolldown-plugin-dts": "0.30.2",
|
|
22738
22732
|
shx: "0.4.0",
|
|
22739
|
-
"simple-git": "4.0
|
|
22733
|
+
"simple-git": "4.1.0",
|
|
22740
22734
|
"source-map-support": "0.5.21",
|
|
22741
22735
|
"starlight-blog": "0.30.2",
|
|
22742
22736
|
tailwindcss: "4.3.5",
|
|
22743
22737
|
"@tailwindcss/vite": "4.3.5",
|
|
22744
22738
|
tsx: "4.23.15",
|
|
22745
|
-
"lucide-react": "1.
|
|
22739
|
+
"lucide-react": "1.77.0",
|
|
22746
22740
|
"radix-ui": "1.8.1",
|
|
22747
22741
|
shadcn: "4.23.0",
|
|
22748
22742
|
"tw-animate-css": "1.4.0",
|
|
22749
22743
|
vite: "8.3.8",
|
|
22750
22744
|
typescript: "6.0.3",
|
|
22751
|
-
vitest: "5.1.
|
|
22745
|
+
vitest: "5.1.1",
|
|
22752
22746
|
jsdom: "29.1.1",
|
|
22753
22747
|
zod: "4.6.7",
|
|
22754
22748
|
ws: "8.23.0"
|
|
@@ -24892,7 +24886,7 @@ function requireDumper() {
|
|
|
24892
24886
|
} else if (character <= 65535) {
|
|
24893
24887
|
handle = "u";
|
|
24894
24888
|
length = 4;
|
|
24895
|
-
} else if (character <=
|
|
24889
|
+
} else if (character <= 0xffffffff) {
|
|
24896
24890
|
handle = "U";
|
|
24897
24891
|
length = 8;
|
|
24898
24892
|
} else throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
|
|
@@ -27303,10 +27297,7 @@ var init_lib$22 = __esmMin((() => {
|
|
|
27303
27297
|
*/
|
|
27304
27298
|
function addList(plugins) {
|
|
27305
27299
|
let index = -1;
|
|
27306
|
-
if (plugins === null || plugins === void 0) {} else if (Array.isArray(plugins)) while (++index < plugins.length)
|
|
27307
|
-
const thing = plugins[index];
|
|
27308
|
-
add(thing);
|
|
27309
|
-
}
|
|
27300
|
+
if (plugins === null || plugins === void 0) {} else if (Array.isArray(plugins)) while (++index < plugins.length) add(plugins[index]);
|
|
27310
27301
|
else throw new TypeError("Expected a list of plugins, not `" + plugins + "`");
|
|
27311
27302
|
}
|
|
27312
27303
|
/**
|
|
@@ -38148,7 +38139,7 @@ var init_lib$16 = __esmMin((() => {
|
|
|
38148
38139
|
var init_stringify_entities = __esmMin((() => {
|
|
38149
38140
|
init_lib$16();
|
|
38150
38141
|
}));
|
|
38151
|
-
// ../../node_modules/.pnpm/mdast-util-mdx-jsx@3.2.
|
|
38142
|
+
// ../../node_modules/.pnpm/mdast-util-mdx-jsx@3.2.2_supports-color@10.2.2/node_modules/mdast-util-mdx-jsx/lib/index.js
|
|
38152
38143
|
/**
|
|
38153
38144
|
* Create an extension for `mdast-util-from-markdown` to enable MDX JSX.
|
|
38154
38145
|
*
|
|
@@ -38608,7 +38599,7 @@ function mdxJsxToMarkdown(options) {
|
|
|
38608
38599
|
if (value === null || value === void 0) {} else if (typeof value === "object") right = serializeExpression(state, value.value || "", expressionIndent);
|
|
38609
38600
|
else {
|
|
38610
38601
|
const appliedQuote = quoteSmart && ccount(value, quote) > ccount(value, alternative) ? alternative : quote;
|
|
38611
|
-
right = appliedQuote + stringifyEntitiesLight(value, { subset: [appliedQuote] }) + appliedQuote;
|
|
38602
|
+
right = appliedQuote + stringifyEntitiesLight(encodeAmpersands(value), { subset: [appliedQuote] }) + appliedQuote;
|
|
38612
38603
|
}
|
|
38613
38604
|
result = left + (right ? "=" : "") + right;
|
|
38614
38605
|
}
|
|
@@ -38742,6 +38733,27 @@ function serializeExpression(state, value, indent) {
|
|
|
38742
38733
|
});
|
|
38743
38734
|
return "{" + result + "}";
|
|
38744
38735
|
}
|
|
38736
|
+
/**
|
|
38737
|
+
* Encode ampersands that would start character references.
|
|
38738
|
+
*
|
|
38739
|
+
* @param {string} value
|
|
38740
|
+
* Attribute value.
|
|
38741
|
+
* @returns {string}
|
|
38742
|
+
* Encoded value.
|
|
38743
|
+
*/
|
|
38744
|
+
function encodeAmpersands(value) {
|
|
38745
|
+
let result = "";
|
|
38746
|
+
let start = 0;
|
|
38747
|
+
parseEntities(value, {
|
|
38748
|
+
nonTerminated: false,
|
|
38749
|
+
reference(_, position) {
|
|
38750
|
+
const end = position.start.offset;
|
|
38751
|
+
result += value.slice(start, end) + "&";
|
|
38752
|
+
start = end + 1;
|
|
38753
|
+
}
|
|
38754
|
+
});
|
|
38755
|
+
return result + value.slice(start);
|
|
38756
|
+
}
|
|
38745
38757
|
var indent;
|
|
38746
38758
|
var init_lib$15 = __esmMin((() => {
|
|
38747
38759
|
init_parse_entities();
|
|
@@ -38750,7 +38762,7 @@ var init_lib$15 = __esmMin((() => {
|
|
|
38750
38762
|
init_vfile_message();
|
|
38751
38763
|
indent = " ";
|
|
38752
38764
|
}));
|
|
38753
|
-
// ../../node_modules/.pnpm/mdast-util-mdx-jsx@3.2.
|
|
38765
|
+
// ../../node_modules/.pnpm/mdast-util-mdx-jsx@3.2.2_supports-color@10.2.2/node_modules/mdast-util-mdx-jsx/index.js
|
|
38754
38766
|
var init_mdast_util_mdx_jsx = __esmMin((() => {
|
|
38755
38767
|
init_lib$15();
|
|
38756
38768
|
}));
|
|
@@ -39088,7 +39100,7 @@ function stringToBigInt(str) {
|
|
|
39088
39100
|
if (typeof BigInt !== "function") return null;
|
|
39089
39101
|
return BigInt(str.replace(/_/g, ""));
|
|
39090
39102
|
}
|
|
39091
|
-
var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars, nonASCIIidentifierStartChars, reservedWords, ecma5AndLessKeywords, keywords$1, keywordRelationalOperator, nonASCIIidentifierStart, nonASCIIidentifier, TokenType, beforeExpr, startsExpr, keywords, types$1, lineBreak, lineBreakG, nonASCIIwhitespace, skipWhiteSpace, ref, hasOwnProperty, toString, hasOwn, isArray, regexpCache, loneSurrogate, Position, SourceLocation, defaultOptions, warnedAboutEcmaVersion, SCOPE_TOP, SCOPE_FUNCTION, SCOPE_ASYNC, SCOPE_GENERATOR, SCOPE_ARROW, SCOPE_SIMPLE_CATCH, SCOPE_SUPER, SCOPE_DIRECT_SUPER, SCOPE_CLASS_STATIC_BLOCK, SCOPE_CLASS_FIELD_INIT, SCOPE_SWITCH, SCOPE_VAR, BIND_NONE, BIND_VAR, BIND_LEXICAL, BIND_FUNCTION, BIND_SIMPLE_CATCH, BIND_OUTSIDE, Parser, prototypeAccessors, pp$9, literal, DestructuringErrors, pp$8, loopLabel, switchLabel, empty$1$1, FUNC_STATEMENT, FUNC_HANGING_STATEMENT, FUNC_NULLABLE_ID, pp$7, TokContext, types, pp$6, pp$5, empty$2, pp$4, pp$3, Scope, Node, pp$2, scriptValuesAddedInUnicode, ecma9BinaryProperties, ecma10BinaryProperties, ecma11BinaryProperties, ecma12BinaryProperties, ecma13BinaryProperties, unicodeBinaryProperties, unicodeBinaryPropertiesOfStrings, unicodeGeneralCategoryValues, ecma9ScriptValues, ecma10ScriptValues, ecma11ScriptValues, ecma12ScriptValues, ecma13ScriptValues, unicodeScriptValues, data, i, list$2,
|
|
39103
|
+
var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars, nonASCIIidentifierStartChars, reservedWords, ecma5AndLessKeywords, keywords$1, keywordRelationalOperator, nonASCIIidentifierStart, nonASCIIidentifier, TokenType, beforeExpr, startsExpr, keywords, types$1, lineBreak, lineBreakG, nonASCIIwhitespace, skipWhiteSpace, ref, hasOwnProperty, toString, hasOwn, isArray, regexpCache, loneSurrogate, Position, SourceLocation, defaultOptions, warnedAboutEcmaVersion, SCOPE_TOP, SCOPE_FUNCTION, SCOPE_ASYNC, SCOPE_GENERATOR, SCOPE_ARROW, SCOPE_SIMPLE_CATCH, SCOPE_SUPER, SCOPE_DIRECT_SUPER, SCOPE_CLASS_STATIC_BLOCK, SCOPE_CLASS_FIELD_INIT, SCOPE_SWITCH, SCOPE_VAR, BIND_NONE, BIND_VAR, BIND_LEXICAL, BIND_FUNCTION, BIND_SIMPLE_CATCH, BIND_OUTSIDE, Parser, prototypeAccessors, pp$9, literal, DestructuringErrors, pp$8, loopLabel, switchLabel, empty$1$1, FUNC_STATEMENT, FUNC_HANGING_STATEMENT, FUNC_NULLABLE_ID, pp$7, TokContext, types, pp$6, pp$5, empty$2, pp$4, pp$3, Scope, Node, pp$2, scriptValuesAddedInUnicode, ecma9BinaryProperties, ecma10BinaryProperties, ecma11BinaryProperties, ecma12BinaryProperties, ecma13BinaryProperties, unicodeBinaryProperties, unicodeBinaryPropertiesOfStrings, unicodeGeneralCategoryValues, ecma9ScriptValues, ecma10ScriptValues, ecma11ScriptValues, ecma12ScriptValues, ecma13ScriptValues, unicodeScriptValues, data, i, list$2, pp$1, BranchID, RegExpValidationState, CharSetNone, CharSetOk, CharSetString, Token, pp, INVALID_TEMPLATE_ESCAPE_ERROR, version;
|
|
39092
39104
|
var init_acorn = __esmMin((() => {
|
|
39093
39105
|
astralIdentifierCodes = [
|
|
39094
39106
|
509,
|
|
@@ -42537,10 +42549,7 @@ var init_acorn = __esmMin((() => {
|
|
|
42537
42549
|
12,
|
|
42538
42550
|
13,
|
|
42539
42551
|
14
|
|
42540
|
-
]; i < list$2.length; i += 1)
|
|
42541
|
-
ecmaVersion = list$2[i];
|
|
42542
|
-
buildUnicodeData(ecmaVersion);
|
|
42543
|
-
}
|
|
42552
|
+
]; i < list$2.length; i += 1) buildUnicodeData(list$2[i]);
|
|
42544
42553
|
pp$1 = Parser.prototype;
|
|
42545
42554
|
BranchID = function BranchID(parent, base) {
|
|
42546
42555
|
this.parent = parent;
|
|
@@ -44256,6 +44265,7 @@ var require_xhtml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
44256
44265
|
}));
|
|
44257
44266
|
// ../../node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.js
|
|
44258
44267
|
var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module, this$1) => {
|
|
44268
|
+
var define;
|
|
44259
44269
|
(function(global, factory) {
|
|
44260
44270
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.acorn = {}));
|
|
44261
44271
|
})(this$1, (function(exports) {
|
|
@@ -47839,10 +47849,7 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module, this$1) =>
|
|
|
47839
47849
|
12,
|
|
47840
47850
|
13,
|
|
47841
47851
|
14
|
|
47842
|
-
]; i < list.length; i += 1)
|
|
47843
|
-
var ecmaVersion = list[i];
|
|
47844
|
-
buildUnicodeData(ecmaVersion);
|
|
47845
|
-
}
|
|
47852
|
+
]; i < list.length; i += 1) buildUnicodeData(list[i]);
|
|
47846
47853
|
var pp$1 = Parser.prototype;
|
|
47847
47854
|
var BranchID = function BranchID(parent, base) {
|
|
47848
47855
|
this.parent = parent;
|
|
@@ -52563,8 +52570,7 @@ function visitParents(tree, testOrEnterOrVisitors, enterOrVisitorsOrReverse, rev
|
|
|
52563
52570
|
let offset = (preorder ? -1 : nodeAsParent.children.length) + step;
|
|
52564
52571
|
const grandparents = [...parents, nodeAsParent];
|
|
52565
52572
|
while (offset > -1 && offset < nodeAsParent.children.length) {
|
|
52566
|
-
const
|
|
52567
|
-
const subresult = factory(child, offset, grandparents)();
|
|
52573
|
+
const subresult = factory(nodeAsParent.children[offset], offset, grandparents)();
|
|
52568
52574
|
if (subresult[0] === false) return subresult;
|
|
52569
52575
|
offset = typeof subresult[1] === "number" ? subresult[1] : offset + step;
|
|
52570
52576
|
}
|
|
@@ -123,7 +123,7 @@ The generator adds `langfuse_telemetry.py` and `langfuse_dev.py` beside the agen
|
|
|
123
123
|
|
|
124
124
|
The Langfuse entrypoint creates one provider before importing the agent. FastAPI's overlapping tracing is disabled only in that process; native Strands spans use the same provider. The Langfuse SDK's public observation API supplies the application root and session attributes. Invocation input/output capture is bounded to 1 MiB each; the root records `content_truncated` when that limit is exceeded.
|
|
125
125
|
|
|
126
|
-
The dependency set uses Langfuse 4.18.0 and ADOT 0.
|
|
126
|
+
The dependency set uses Langfuse 4.18.0 and ADOT 0.24.0. The vended OpenTelemetry pins match ADOT's requirements, including API/SDK/HTTP exporter 1.45.2, and are held to preserve that compatibility. ADOT and Langfuse remain eligible for the repository's regular dependency updates; check their compatibility and adjust the OpenTelemetry pins when upgrading. Starlette follows FastAPI's dependency requirements.
|
|
127
127
|
|
|
128
128
|
Repeating the generator with the same inputs does not duplicate wiring or overwrite your runtime edits. It still honors your dependency-installation preference, so you can rerun it to retry a failed or deferred installation. Changing the host or secret updates both the local entrypoint and CDK configuration; restart local development, rebuild, and use the [rollback-enabled deployment command](#build-deploy-and-check-a-trace) to apply the change in both environments. If you edit either configuration or customize the local startup commands, the generator asks you to reconcile them before changing options. This prevents an option change from silently replacing custom wiring.
|
|
129
129
|
|
|
@@ -57,10 +57,10 @@ The generator adds the following files to your project. The source folder is nam
|
|
|
57
57
|
- Dockerfile Container image definition
|
|
58
58
|
- .dockerignore Files left out of the image build context
|
|
59
59
|
- pyproject.toml Updated with FastAPI and uvicorn dependencies
|
|
60
|
-
- project.json Updated with the `bundle-arm`
|
|
60
|
+
- project.json Updated with a bundle target for the service's CPU architecture (`bundle-arm` or `bundle-x86`), the aggregate `bundle` target, and the `<name>-serve`, `<name>-docker` and `<name>-trivy` targets for your service
|
|
61
61
|
</FileTree>
|
|
62
62
|
|
|
63
|
-
Target names start with the `name` option, or with `container` if you leave it out. For example, the targets are `container-serve`, `container-docker` and `container-trivy` without a name, and `orders-serve`, `orders-docker` and `orders-trivy` for `--name=orders`. The
|
|
63
|
+
Target names start with the `name` option, or with `container` if you leave it out. For example, the targets are `container-serve`, `container-docker` and `container-trivy` without a name, and `orders-serve`, `orders-docker` and `orders-trivy` for `--name=orders`. The bundle targets are shared by everything the project bundles.
|
|
64
64
|
|
|
65
65
|
<OptionFilter when={{ infra: 'ecs' }} description="ECS service infrastructure">
|
|
66
66
|
### Infrastructure
|
|
@@ -129,7 +129,7 @@ The server also has a sample route that you replace with your own routes. `GET /
|
|
|
129
129
|
|
|
130
130
|
## Building and Scanning the Image
|
|
131
131
|
|
|
132
|
-
The `<name>-docker` target builds
|
|
132
|
+
The `<name>-docker` target builds an image of your service for the CPU architecture in the `architecture` option, `linux/arm64` or `linux/amd64`. It runs the matching bundle target first, `bundle-arm` or `bundle-x86`, which writes your code and its dependencies for that architecture to `dist/<project root>/bundle-arm` or `dist/<project root>/bundle-x86`. The aggregate `bundle` target depends on it. The `<name>-docker` target then copies that folder, the `Dockerfile` and the `.dockerignore` into `dist/<project root>/docker/<name>`, and builds the image with that folder as the build context (the files the image build can read). It uses the container engine your workspace is set up with, `docker` or [Finch](https://runfinch.com/). The target runs as part of the aggregate `docker` target, which builds every image in the project.
|
|
133
133
|
|
|
134
134
|
<NxCommands commands={['run your-project:container-docker']} />
|
|
135
135
|
|
|
@@ -362,6 +362,33 @@ secrets = { API_KEY = aws_secretsmanager_secret.api_key.arn }
|
|
|
362
362
|
</Fragment>
|
|
363
363
|
</Infrastructure>
|
|
364
364
|
|
|
365
|
+
#### CPU Architecture
|
|
366
|
+
|
|
367
|
+
The `architecture` option sets the CPU the tasks run on, the platform the image is built for, and the platform the bundle resolves its Python wheels for: `ARM64` or `X86_64`. ARM64 runs on [AWS Graviton](https://aws.amazon.com/ec2/graviton/) processors, which AWS Fargate bills at a lower rate per vCPU and per GB of memory than X86_64. See [AWS Fargate pricing](https://aws.amazon.com/fargate/pricing/) for the rates in your Region.
|
|
368
|
+
|
|
369
|
+
Leave the option out and the generator uses the architecture of the machine you run it on, so `nx run your-project:container-docker` builds natively and needs no emulator. Re-running the generator keeps the architecture it generated the first time, whatever machine you re-run it on, because that architecture is already in your deployed task definition and in the name of your bundle target.
|
|
370
|
+
|
|
371
|
+
The architecture is fixed when the service is first generated. The generator never rewrites the infrastructure it vended, so moving an existing service to the other architecture takes two steps:
|
|
372
|
+
|
|
373
|
+
1. Change the architecture in the vended code. In CDK, the `architecture:` line in `packages/common/constructs/src/app/services/<name>.ts`. In Terraform, `cpu_architecture` in the `module "ecs_service"` block of `packages/common/terraform/src/app/services/<name>/<name>.tf`.
|
|
374
|
+
2. Re-run the generator with `--architecture` set to the same value, so the `<name>-docker` target builds for it and the bundle resolves wheels for it.
|
|
375
|
+
|
|
376
|
+
Then redeploy. If you pass an architecture that differs from the one the generator recorded, it warns and names the file you have to change.
|
|
377
|
+
|
|
378
|
+
Doing step 2 and forgetting step 1 fails differently per provider, and neither failure is loud. In Terraform, the task definition keeps the old architecture while the image Terraform pushes has the new one, so the task does not start. In CDK, the deployed image is built from the vended construct, so it has the old architecture, while the bundle inside it holds wheels for the architecture you asked for: the container then crashes on its first compiled import.
|
|
379
|
+
|
|
380
|
+
A switch also leaves the previous architecture's bundle target in place, because the bundle targets are shared by everything in the project that bundles for their platform. The warning names it; remove it once nothing else uses it.
|
|
381
|
+
|
|
382
|
+
`architecture` is also a prop of the vended service construct, so a stack can pass a different one for a single instantiation. That changes what deploys but not what the `<name>-docker` and `<name>-trivy` targets build, so keep the two in step yourself.
|
|
383
|
+
|
|
384
|
+
Building an ARM64 image on an x86_64 machine, or an X86_64 image on an arm64 machine, fails with `exec format error` unless you install an emulator. The generator warns you when the architecture it is about to generate is not the one your machine runs. See <Link path="/troubleshooting/docker">Troubleshooting Docker</Link>.
|
|
385
|
+
|
|
386
|
+
| Setting | CDK prop | Terraform variable | Default |
|
|
387
|
+
| --- | --- | --- | --- |
|
|
388
|
+
| CPU architecture | `architecture` | `cpu_architecture` | `'ARM64'` |
|
|
389
|
+
|
|
390
|
+
The generator writes the architecture it chose into your service's construct and module, so that default applies only when you use the generic `EcsService` construct or the `ecs-service` module yourself.
|
|
391
|
+
|
|
365
392
|
#### Sizing and Scaling
|
|
366
393
|
|
|
367
394
|
Each task gets 256 CPU units (a quarter of a vCPU) and 512 MiB of memory by default. The service starts one task, and autoscaling keeps between one and two tasks running, adding tasks when average CPU use goes above 70%.
|
|
@@ -129,7 +129,7 @@ The server also has a sample route that you replace with your own routes. `GET /
|
|
|
129
129
|
|
|
130
130
|
## Building and Scanning the Image
|
|
131
131
|
|
|
132
|
-
The `<name>-docker` target builds
|
|
132
|
+
The `<name>-docker` target builds an image of your service for the CPU architecture in the `architecture` option, `linux/arm64` or `linux/amd64`. It runs the `bundle` target first, so the image holds the bundled server. It then copies the `Dockerfile` and `.dockerignore` into the bundle output folder, `dist/<project root>/bundle/container/<name>`, and builds the image with that folder as the build context (the files the image build can read). It uses the container engine your workspace is set up with, `docker` or [Finch](https://runfinch.com/). The target runs as part of the aggregate `docker` target, which builds every image in the project.
|
|
133
133
|
|
|
134
134
|
<NxCommands commands={['run your-project:container-docker']} />
|
|
135
135
|
|
|
@@ -362,6 +362,31 @@ secrets = { API_KEY = aws_secretsmanager_secret.api_key.arn }
|
|
|
362
362
|
</Fragment>
|
|
363
363
|
</Infrastructure>
|
|
364
364
|
|
|
365
|
+
#### CPU Architecture
|
|
366
|
+
|
|
367
|
+
The `architecture` option sets the CPU the tasks run on and the platform the image is built for: `ARM64` or `X86_64`. ARM64 runs on [AWS Graviton](https://aws.amazon.com/ec2/graviton/) processors, which AWS Fargate bills at a lower rate per vCPU and per GB of memory than X86_64. See [AWS Fargate pricing](https://aws.amazon.com/fargate/pricing/) for the rates in your Region.
|
|
368
|
+
|
|
369
|
+
Leave the option out and the generator uses the architecture of the machine you run it on, so `nx run your-project:container-docker` builds natively and needs no emulator. Re-running the generator keeps the architecture it generated the first time, whatever machine you re-run it on, because that architecture is already in your deployed task definition.
|
|
370
|
+
|
|
371
|
+
The architecture is fixed when the service is first generated. The generator never rewrites the infrastructure it vended, so moving an existing service to the other architecture takes two steps:
|
|
372
|
+
|
|
373
|
+
1. Change the architecture in the vended code. In CDK, the `architecture:` line in `packages/common/constructs/src/app/services/<name>.ts`. In Terraform, `cpu_architecture` in the `module "ecs_service"` block of `packages/common/terraform/src/app/services/<name>/<name>.tf`.
|
|
374
|
+
2. Re-run the generator with `--architecture` set to the same value, so the `<name>-docker` target builds for it.
|
|
375
|
+
|
|
376
|
+
Then redeploy. If you pass an architecture that differs from the one the generator recorded, it warns and names the file you have to change.
|
|
377
|
+
|
|
378
|
+
Doing step 2 and forgetting step 1 fails differently per provider, and neither failure is loud. In Terraform, the task definition keeps the old architecture while the image Terraform pushes has the new one, so the task does not start. In CDK, the deployed image is built from the vended construct, so the service keeps running on the old architecture and the image you built and scanned locally is the other one, which is never deployed.
|
|
379
|
+
|
|
380
|
+
`architecture` is also a prop of the vended service construct, so a stack can pass a different one for a single instantiation. That changes what deploys but not what the `<name>-docker` and `<name>-trivy` targets build, so keep the two in step yourself.
|
|
381
|
+
|
|
382
|
+
Building an ARM64 image on an x86_64 machine, or an X86_64 image on an arm64 machine, fails with `exec format error` unless you install an emulator. The generator warns you when the architecture it is about to generate is not the one your machine runs. See <Link path="/troubleshooting/docker">Troubleshooting Docker</Link>.
|
|
383
|
+
|
|
384
|
+
| Setting | CDK prop | Terraform variable | Default |
|
|
385
|
+
| --- | --- | --- | --- |
|
|
386
|
+
| CPU architecture | `architecture` | `cpu_architecture` | `'ARM64'` |
|
|
387
|
+
|
|
388
|
+
The generator writes the architecture it chose into your service's construct and module, so that default applies only when you use the generic `EcsService` construct or the `ecs-service` module yourself.
|
|
389
|
+
|
|
365
390
|
#### Sizing and Scaling
|
|
366
391
|
|
|
367
392
|
Each task gets 256 CPU units (a quarter of a vCPU) and 512 MiB of memory by default. The service starts one task, and autoscaling keeps between one and two tasks running, adding tasks when average CPU use goes above 70%.
|
package/package.json
CHANGED
|
@@ -37,6 +37,11 @@
|
|
|
37
37
|
"default": "inherit",
|
|
38
38
|
"x-prompt": "Which provider would you like to manage your infrastructure? (default: inherit)"
|
|
39
39
|
},
|
|
40
|
+
"architecture": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "The CPU architecture your container image is built for and its ECS task runs on. ARM64 runs on AWS Graviton, which costs less per task on AWS Fargate. By default this is the architecture of the machine you run the generator on, and re-running keeps the architecture already generated.",
|
|
43
|
+
"enum": ["ARM64", "X86_64"]
|
|
44
|
+
},
|
|
40
45
|
"preferInstallDependencies": {
|
|
41
46
|
"type": "boolean",
|
|
42
47
|
"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.",
|
|
@@ -37,6 +37,11 @@
|
|
|
37
37
|
"default": "inherit",
|
|
38
38
|
"x-prompt": "Which provider would you like to manage your infrastructure? (default: inherit)"
|
|
39
39
|
},
|
|
40
|
+
"architecture": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "The CPU architecture your container image is built for and its ECS task runs on. ARM64 runs on AWS Graviton, which costs less per task on AWS Fargate. By default this is the architecture of the machine you run the generator on, and re-running keeps the architecture already generated.",
|
|
43
|
+
"enum": ["ARM64", "X86_64"]
|
|
44
|
+
},
|
|
40
45
|
"preferInstallDependencies": {
|
|
41
46
|
"type": "boolean",
|
|
42
47
|
"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.",
|