@aws/agentcore 1.0.0-preview.4 → 1.0.0-preview.6
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/README.md +26 -9
- package/dist/agent-inspector/index.css +1 -1
- package/dist/agent-inspector/index.js +86 -81
- package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +125 -17
- package/dist/assets/cdk/test/cdk.test.ts +1 -0
- package/dist/assets/python/http/langchain_langgraph/base/main.py +52 -8
- package/dist/assets/python/http/strands/base/main.py +71 -8
- package/dist/cli/index.mjs +988 -626
- package/dist/lib/packaging/build-args.js +2 -2
- package/dist/lib/packaging/build-args.js.map +1 -1
- package/dist/lib/packaging/helpers.d.ts.map +1 -1
- package/dist/lib/packaging/helpers.js +10 -6
- package/dist/lib/packaging/helpers.js.map +1 -1
- package/dist/lib/schemas/io/config-io.d.ts.map +1 -1
- package/dist/lib/schemas/io/config-io.js +9 -1
- package/dist/lib/schemas/io/config-io.js.map +1 -1
- package/dist/lib/schemas/io/global-config.d.ts +33 -0
- package/dist/lib/schemas/io/global-config.d.ts.map +1 -0
- package/dist/lib/schemas/io/global-config.js +89 -0
- package/dist/lib/schemas/io/global-config.js.map +1 -0
- package/dist/lib/schemas/io/index.d.ts +0 -1
- package/dist/lib/schemas/io/index.d.ts.map +1 -1
- package/dist/lib/schemas/io/index.js +1 -3
- package/dist/lib/schemas/io/index.js.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +83 -2
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +89 -1
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/deployed-state.d.ts +113 -0
- package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
- package/dist/schema/schemas/deployed-state.js +40 -1
- package/dist/schema/schemas/deployed-state.js.map +1 -1
- package/dist/schema/schemas/primitives/ab-test.d.ts +141 -0
- package/dist/schema/schemas/primitives/ab-test.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/ab-test.js +97 -0
- package/dist/schema/schemas/primitives/ab-test.js.map +1 -0
- package/dist/schema/schemas/primitives/config-bundle.d.ts +31 -0
- package/dist/schema/schemas/primitives/config-bundle.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/config-bundle.js +38 -0
- package/dist/schema/schemas/primitives/config-bundle.js.map +1 -0
- package/dist/schema/schemas/primitives/harness.d.ts +84 -8
- package/dist/schema/schemas/primitives/harness.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/harness.js +27 -3
- package/dist/schema/schemas/primitives/harness.js.map +1 -1
- package/dist/schema/schemas/primitives/http-gateway.d.ts +21 -0
- package/dist/schema/schemas/primitives/http-gateway.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/http-gateway.js +35 -0
- package/dist/schema/schemas/primitives/http-gateway.js.map +1 -0
- package/dist/schema/schemas/primitives/index.d.ts +6 -2
- package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/index.js +17 -1
- package/dist/schema/schemas/primitives/index.js.map +1 -1
- package/dist/schema/schemas/primitives/online-eval-config.d.ts +1 -0
- package/dist/schema/schemas/primitives/online-eval-config.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/online-eval-config.js +2 -0
- package/dist/schema/schemas/primitives/online-eval-config.js.map +1 -1
- package/package.json +2 -2
- package/scripts/bundle.mjs +5 -2
- package/dist/lib/schemas/io/cli-config.d.ts +0 -12
- package/dist/lib/schemas/io/cli-config.d.ts.map +0 -1
- package/dist/lib/schemas/io/cli-config.js +0 -35
- package/dist/lib/schemas/io/cli-config.js.map +0 -1
package/scripts/bundle.mjs
CHANGED
|
@@ -109,7 +109,8 @@ function resolveInspectorPath() {
|
|
|
109
109
|
|
|
110
110
|
log('Starting bundle process...');
|
|
111
111
|
|
|
112
|
-
const
|
|
112
|
+
const now = new Date();
|
|
113
|
+
const timestamp = now.toISOString().replace(/[-:T]/g, '').slice(0, 14);
|
|
113
114
|
log(`Bundle timestamp: ${timestamp}`);
|
|
114
115
|
|
|
115
116
|
// Helper to bump a package version with a unique e2e timestamp tag.
|
|
@@ -119,7 +120,9 @@ function bumpVersion(pkgDir) {
|
|
|
119
120
|
const pkg = JSON.parse(fs.readFileSync(pkgJsonPath, 'utf8'));
|
|
120
121
|
const originalVersion = pkg.version;
|
|
121
122
|
const baseVersion = originalVersion.split('-')[0];
|
|
122
|
-
|
|
123
|
+
const prerelease = originalVersion.includes('-') ? originalVersion.split('-').slice(1).join('-') : '';
|
|
124
|
+
const tag = prerelease ? `${prerelease}-${timestamp}` : timestamp;
|
|
125
|
+
pkg.version = `${baseVersion}-${tag}`;
|
|
123
126
|
fs.writeFileSync(pkgJsonPath, JSON.stringify(pkg, null, 2) + '\n');
|
|
124
127
|
log(`Bumped ${pkg.name} version: ${originalVersion} -> ${pkg.version}`);
|
|
125
128
|
return { pkgJsonPath, originalVersion, bumpedVersion: pkg.version };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface CliConfig {
|
|
2
|
-
uvDefaultIndex?: string;
|
|
3
|
-
uvIndex?: string;
|
|
4
|
-
disableTransactionSearch?: boolean;
|
|
5
|
-
transactionSearchIndexPercentage?: number;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Read the global CLI config from ~/.agentcore/config.json.
|
|
9
|
-
* Returns an empty object if the file doesn't exist or is malformed.
|
|
10
|
-
*/
|
|
11
|
-
export declare function readCliConfig(): CliConfig;
|
|
12
|
-
//# sourceMappingURL=cli-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli-config.d.ts","sourceRoot":"","sources":["../../../../src/lib/schemas/io/cli-config.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,SAAS;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,gCAAgC,CAAC,EAAE,MAAM,CAAC;CAC3C;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,SAAS,CAkBzC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.readCliConfig = readCliConfig;
|
|
4
|
-
const fs_1 = require("fs");
|
|
5
|
-
const os_1 = require("os");
|
|
6
|
-
const path_1 = require("path");
|
|
7
|
-
const CONFIG_FILE = (0, path_1.join)((0, os_1.homedir)(), '.agentcore', 'config.json');
|
|
8
|
-
/**
|
|
9
|
-
* Read the global CLI config from ~/.agentcore/config.json.
|
|
10
|
-
* Returns an empty object if the file doesn't exist or is malformed.
|
|
11
|
-
*/
|
|
12
|
-
function readCliConfig() {
|
|
13
|
-
try {
|
|
14
|
-
const data = (0, fs_1.readFileSync)(CONFIG_FILE, 'utf-8');
|
|
15
|
-
const parsed = JSON.parse(data);
|
|
16
|
-
const config = {};
|
|
17
|
-
if (typeof parsed.uvDefaultIndex === 'string')
|
|
18
|
-
config.uvDefaultIndex = parsed.uvDefaultIndex;
|
|
19
|
-
if (typeof parsed.uvIndex === 'string')
|
|
20
|
-
config.uvIndex = parsed.uvIndex;
|
|
21
|
-
if (parsed.disableTransactionSearch === true)
|
|
22
|
-
config.disableTransactionSearch = true;
|
|
23
|
-
if (typeof parsed.transactionSearchIndexPercentage === 'number') {
|
|
24
|
-
const pct = parsed.transactionSearchIndexPercentage;
|
|
25
|
-
if (pct >= 0 && pct <= 100) {
|
|
26
|
-
config.transactionSearchIndexPercentage = pct;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return config;
|
|
30
|
-
}
|
|
31
|
-
catch {
|
|
32
|
-
return {};
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=cli-config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli-config.js","sourceRoot":"","sources":["../../../../src/lib/schemas/io/cli-config.ts"],"names":[],"mappings":";;AAiBA,sCAkBC;AAnCD,2BAAkC;AAClC,2BAA6B;AAC7B,+BAA4B;AAE5B,MAAM,WAAW,GAAG,IAAA,WAAI,EAAC,IAAA,YAAO,GAAE,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;AASjE;;;GAGG;AACH,SAAgB,aAAa;IAC3B,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAA,iBAAY,EAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAChD,MAAM,MAAM,GAA4B,IAAI,CAAC,KAAK,CAAC,IAAI,CAA4B,CAAC;QACpF,MAAM,MAAM,GAAc,EAAE,CAAC;QAC7B,IAAI,OAAO,MAAM,CAAC,cAAc,KAAK,QAAQ;YAAE,MAAM,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;QAC7F,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ;YAAE,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QACxE,IAAI,MAAM,CAAC,wBAAwB,KAAK,IAAI;YAAE,MAAM,CAAC,wBAAwB,GAAG,IAAI,CAAC;QACrF,IAAI,OAAO,MAAM,CAAC,gCAAgC,KAAK,QAAQ,EAAE,CAAC;YAChE,MAAM,GAAG,GAAG,MAAM,CAAC,gCAAgC,CAAC;YACpD,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC;gBAC3B,MAAM,CAAC,gCAAgC,GAAG,GAAG,CAAC;YAChD,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|