@aws/agentcore 0.3.0-preview.5.0 → 0.3.0-preview.6.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/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +1124 -97
- package/dist/assets/cdk/package.json +1 -1
- package/dist/assets/cdk/test/cdk.test.ts +2 -0
- package/dist/assets/python/a2a/googleadk/base/README.md +22 -0
- package/dist/assets/python/a2a/googleadk/base/main.py +48 -0
- package/dist/assets/python/a2a/googleadk/base/pyproject.toml +20 -0
- package/dist/assets/python/a2a/langchain_langgraph/base/README.md +22 -0
- package/dist/assets/python/a2a/langchain_langgraph/base/main.py +64 -0
- package/dist/assets/python/a2a/langchain_langgraph/base/pyproject.toml +24 -0
- package/dist/assets/python/a2a/strands/base/README.md +22 -0
- package/dist/assets/python/a2a/strands/base/main.py +44 -0
- package/dist/assets/python/a2a/strands/base/pyproject.toml +23 -0
- package/dist/assets/python/a2a/strands/capabilities/memory/session.py +38 -0
- package/dist/assets/python/{autogen → http/autogen}/base/mcp_client/client.py +10 -0
- package/dist/assets/python/http/googleadk/base/gitignore.template +41 -0
- package/dist/assets/python/{googleadk → http/googleadk}/base/mcp_client/client.py +9 -0
- package/dist/assets/python/http/googleadk/base/model/load.py +41 -0
- package/dist/assets/python/http/langchain_langgraph/base/gitignore.template +41 -0
- package/dist/assets/python/{langchain_langgraph → http/langchain_langgraph}/base/mcp_client/client.py +9 -0
- package/dist/assets/python/http/langchain_langgraph/base/model/load.py +123 -0
- package/dist/assets/python/http/openaiagents/base/gitignore.template +41 -0
- package/dist/assets/python/{openaiagents → http/openaiagents}/base/mcp_client/client.py +9 -0
- package/dist/assets/python/http/openaiagents/base/model/__init__.py +1 -0
- package/dist/assets/python/http/strands/base/mcp_client/__init__.py +1 -0
- package/dist/assets/python/{strands → http/strands}/base/mcp_client/client.py +9 -0
- package/dist/assets/python/http/strands/base/model/__init__.py +1 -0
- package/dist/assets/python/http/strands/base/model/load.py +123 -0
- package/dist/assets/python/http/strands/capabilities/memory/__init__.py +1 -0
- package/dist/assets/python/mcp/standalone/base/README.md +36 -0
- package/dist/assets/python/mcp/standalone/base/gitignore.template +41 -0
- package/dist/assets/python/mcp/standalone/base/main.py +25 -0
- package/dist/assets/python/mcp/standalone/base/pyproject.toml +16 -0
- package/dist/cli/index.mjs +359 -321
- package/dist/lib/packaging/helpers.js +2 -2
- package/dist/lib/packaging/helpers.js.map +1 -1
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/index.js +3 -1
- package/dist/lib/utils/index.js.map +1 -1
- package/dist/lib/utils/json-rpc.d.ts +3 -0
- package/dist/lib/utils/json-rpc.d.ts.map +1 -0
- package/dist/lib/utils/json-rpc.js +27 -0
- package/dist/lib/utils/json-rpc.js.map +1 -0
- package/dist/schema/constants.d.ts +20 -1
- package/dist/schema/constants.d.ts.map +1 -1
- package/dist/schema/constants.js +29 -2
- package/dist/schema/constants.js.map +1 -1
- package/dist/schema/schemas/agent-env.d.ts +20 -2
- package/dist/schema/schemas/agent-env.d.ts.map +1 -1
- package/dist/schema/schemas/agent-env.js +37 -2
- package/dist/schema/schemas/agent-env.js.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +82 -1
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +59 -2
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/deployed-state.d.ts +62 -0
- package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
- package/dist/schema/schemas/deployed-state.js +18 -1
- package/dist/schema/schemas/deployed-state.js.map +1 -1
- package/dist/schema/schemas/mcp.d.ts +25 -10
- package/dist/schema/schemas/mcp.d.ts.map +1 -1
- package/dist/schema/schemas/mcp.js +9 -1
- package/dist/schema/schemas/mcp.js.map +1 -1
- package/dist/schema/schemas/primitives/evaluator.d.ts +68 -0
- package/dist/schema/schemas/primitives/evaluator.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/evaluator.js +58 -0
- package/dist/schema/schemas/primitives/evaluator.js.map +1 -0
- package/dist/schema/schemas/primitives/index.d.ts +4 -0
- package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/index.js +14 -1
- package/dist/schema/schemas/primitives/index.js.map +1 -1
- package/dist/schema/schemas/primitives/online-eval-config.d.ts +13 -0
- package/dist/schema/schemas/primitives/online-eval-config.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/online-eval-config.js +27 -0
- package/dist/schema/schemas/primitives/online-eval-config.js.map +1 -0
- package/package.json +11 -5
- /package/dist/assets/python/{autogen → a2a/googleadk}/base/gitignore.template +0 -0
- /package/dist/assets/python/{autogen/base/mcp_client → a2a/googleadk/base/model}/__init__.py +0 -0
- /package/dist/assets/python/{googleadk → a2a/googleadk}/base/model/load.py +0 -0
- /package/dist/assets/python/{crewai → a2a/langchain_langgraph}/base/gitignore.template +0 -0
- /package/dist/assets/python/{autogen → a2a/langchain_langgraph}/base/model/__init__.py +0 -0
- /package/dist/assets/python/{langchain_langgraph → a2a/langchain_langgraph}/base/model/load.py +0 -0
- /package/dist/assets/python/{googleadk → a2a/strands}/base/gitignore.template +0 -0
- /package/dist/assets/python/{crewai → a2a/strands}/base/model/__init__.py +0 -0
- /package/dist/assets/python/{strands → a2a/strands}/base/model/load.py +0 -0
- /package/dist/assets/python/{googleadk/base/mcp_client → a2a/strands/capabilities/memory}/__init__.py +0 -0
- /package/dist/assets/python/{autogen → http/autogen}/base/README.md +0 -0
- /package/dist/assets/python/{langchain_langgraph → http/autogen}/base/gitignore.template +0 -0
- /package/dist/assets/python/{autogen → http/autogen}/base/main.py +0 -0
- /package/dist/assets/python/{googleadk/base/model → http/autogen/base/mcp_client}/__init__.py +0 -0
- /package/dist/assets/python/{langchain_langgraph/base/mcp_client → http/autogen/base/model}/__init__.py +0 -0
- /package/dist/assets/python/{autogen → http/autogen}/base/model/load.py +0 -0
- /package/dist/assets/python/{autogen → http/autogen}/base/pyproject.toml +0 -0
- /package/dist/assets/python/{crewai → http/crewai}/base/README.md +0 -0
- /package/dist/assets/python/{openaiagents → http/crewai}/base/gitignore.template +0 -0
- /package/dist/assets/python/{crewai → http/crewai}/base/main.py +0 -0
- /package/dist/assets/python/{langchain_langgraph → http/crewai}/base/model/__init__.py +0 -0
- /package/dist/assets/python/{crewai → http/crewai}/base/model/load.py +0 -0
- /package/dist/assets/python/{crewai → http/crewai}/base/pyproject.toml +0 -0
- /package/dist/assets/python/{googleadk → http/googleadk}/base/README.md +0 -0
- /package/dist/assets/python/{googleadk → http/googleadk}/base/main.py +0 -0
- /package/dist/assets/python/{openaiagents → http/googleadk}/base/mcp_client/__init__.py +0 -0
- /package/dist/assets/python/{openaiagents → http/googleadk}/base/model/__init__.py +0 -0
- /package/dist/assets/python/{googleadk → http/googleadk}/base/pyproject.toml +0 -0
- /package/dist/assets/python/{langchain_langgraph → http/langchain_langgraph}/base/README.md +0 -0
- /package/dist/assets/python/{langchain_langgraph → http/langchain_langgraph}/base/main.py +0 -0
- /package/dist/assets/python/{strands → http/langchain_langgraph}/base/mcp_client/__init__.py +0 -0
- /package/dist/assets/python/{strands → http/langchain_langgraph}/base/model/__init__.py +0 -0
- /package/dist/assets/python/{langchain_langgraph → http/langchain_langgraph}/base/pyproject.toml +0 -0
- /package/dist/assets/python/{openaiagents → http/openaiagents}/base/README.md +0 -0
- /package/dist/assets/python/{openaiagents → http/openaiagents}/base/main.py +0 -0
- /package/dist/assets/python/{strands/capabilities/memory → http/openaiagents/base/mcp_client}/__init__.py +0 -0
- /package/dist/assets/python/{openaiagents → http/openaiagents}/base/model/load.py +0 -0
- /package/dist/assets/python/{openaiagents → http/openaiagents}/base/pyproject.toml +0 -0
- /package/dist/assets/python/{strands → http/strands}/base/README.md +0 -0
- /package/dist/assets/python/{strands → http/strands}/base/gitignore.template +0 -0
- /package/dist/assets/python/{strands → http/strands}/base/main.py +0 -0
- /package/dist/assets/python/{strands → http/strands}/base/pyproject.toml +0 -0
- /package/dist/assets/python/{strands → http/strands}/capabilities/memory/session.py +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EvaluatorConfigSchema = exports.LlmAsAJudgeConfigSchema = exports.BedrockModelIdSchema = exports.RatingScaleSchema = exports.CategoricalRatingSchema = exports.NumericalRatingSchema = exports.EvaluatorNameSchema = exports.EvaluationLevelSchema = void 0;
|
|
4
|
+
exports.isValidBedrockModelId = isValidBedrockModelId;
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
// ============================================================================
|
|
7
|
+
// Evaluator Types
|
|
8
|
+
// ============================================================================
|
|
9
|
+
exports.EvaluationLevelSchema = zod_1.z.enum(['SESSION', 'TRACE', 'TOOL_CALL']);
|
|
10
|
+
exports.EvaluatorNameSchema = zod_1.z
|
|
11
|
+
.string()
|
|
12
|
+
.min(1, 'Name is required')
|
|
13
|
+
.max(48)
|
|
14
|
+
.regex(/^[a-zA-Z][a-zA-Z0-9_]{0,47}$/, 'Must begin with a letter and contain only alphanumeric characters and underscores (max 48 chars)');
|
|
15
|
+
// ============================================================================
|
|
16
|
+
// Rating Scale
|
|
17
|
+
// ============================================================================
|
|
18
|
+
exports.NumericalRatingSchema = zod_1.z.object({
|
|
19
|
+
value: zod_1.z.number().int(),
|
|
20
|
+
label: zod_1.z.string().min(1),
|
|
21
|
+
definition: zod_1.z.string().min(1),
|
|
22
|
+
});
|
|
23
|
+
exports.CategoricalRatingSchema = zod_1.z.object({
|
|
24
|
+
label: zod_1.z.string().min(1),
|
|
25
|
+
definition: zod_1.z.string().min(1),
|
|
26
|
+
});
|
|
27
|
+
exports.RatingScaleSchema = zod_1.z
|
|
28
|
+
.object({
|
|
29
|
+
numerical: zod_1.z.array(exports.NumericalRatingSchema).optional(),
|
|
30
|
+
categorical: zod_1.z.array(exports.CategoricalRatingSchema).optional(),
|
|
31
|
+
})
|
|
32
|
+
.refine(scale => {
|
|
33
|
+
const hasNumerical = Boolean(scale.numerical);
|
|
34
|
+
const hasCategorical = Boolean(scale.categorical);
|
|
35
|
+
return hasNumerical !== hasCategorical;
|
|
36
|
+
}, { message: 'Rating scale must have either numerical or categorical, not both' });
|
|
37
|
+
// ============================================================================
|
|
38
|
+
// LLM-as-a-Judge Config
|
|
39
|
+
// ============================================================================
|
|
40
|
+
// eslint-disable-next-line security/detect-unsafe-regex -- anchored pattern, no backtracking risk
|
|
41
|
+
const BEDROCK_MODEL_ID_PATTERN = /^[a-z][a-z0-9-]*\.[a-zA-Z0-9._-]+(:[0-9]+)?$/;
|
|
42
|
+
const BEDROCK_ARN_PATTERN = /^arn:aws[a-z-]*:bedrock:[a-z0-9-]+:\d{12}:(inference-profile|foundation-model)\/.+$/;
|
|
43
|
+
function isValidBedrockModelId(value) {
|
|
44
|
+
return BEDROCK_MODEL_ID_PATTERN.test(value) || BEDROCK_ARN_PATTERN.test(value);
|
|
45
|
+
}
|
|
46
|
+
exports.BedrockModelIdSchema = zod_1.z.string().min(1, 'Model ID is required');
|
|
47
|
+
exports.LlmAsAJudgeConfigSchema = zod_1.z.object({
|
|
48
|
+
model: exports.BedrockModelIdSchema,
|
|
49
|
+
instructions: zod_1.z.string().min(1, 'Evaluation instructions are required'),
|
|
50
|
+
ratingScale: exports.RatingScaleSchema,
|
|
51
|
+
});
|
|
52
|
+
// ============================================================================
|
|
53
|
+
// Evaluator Config
|
|
54
|
+
// ============================================================================
|
|
55
|
+
exports.EvaluatorConfigSchema = zod_1.z.object({
|
|
56
|
+
llmAsAJudge: exports.LlmAsAJudgeConfigSchema,
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=evaluator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluator.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/evaluator.ts"],"names":[],"mappings":";;;AA6DA,sDAEC;AA/DD,6BAAwB;AAExB,+EAA+E;AAC/E,kBAAkB;AAClB,+EAA+E;AAElE,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC;AAGlE,QAAA,mBAAmB,GAAG,OAAC;KACjC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;KAC1B,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,8BAA8B,EAC9B,kGAAkG,CACnG,CAAC;AAEJ,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAElE,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC9B,CAAC,CAAC;AAIU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC9B,CAAC,CAAC;AAIU,QAAA,iBAAiB,GAAG,OAAC;KAC/B,MAAM,CAAC;IACN,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAqB,CAAC,CAAC,QAAQ,EAAE;IACpD,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAuB,CAAC,CAAC,QAAQ,EAAE;CACzD,CAAC;KACD,MAAM,CACL,KAAK,CAAC,EAAE;IACN,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC9C,MAAM,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAClD,OAAO,YAAY,KAAK,cAAc,CAAC;AACzC,CAAC,EACD,EAAE,OAAO,EAAE,kEAAkE,EAAE,CAChF,CAAC;AAIJ,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAE/E,kGAAkG;AAClG,MAAM,wBAAwB,GAAG,8CAA8C,CAAC;AAChF,MAAM,mBAAmB,GAAG,qFAAqF,CAAC;AAElH,SAAgB,qBAAqB,CAAC,KAAa;IACjD,OAAO,wBAAwB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACjF,CAAC;AAEY,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,sBAAsB,CAAC,CAAC;AAEjE,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,KAAK,EAAE,4BAAoB;IAC3B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,sCAAsC,CAAC;IACvE,WAAW,EAAE,yBAAiB;CAC/B,CAAC,CAAC;AAIH,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAElE,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,WAAW,EAAE,+BAAuB;CACrC,CAAC,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export type { MemoryStrategy, MemoryStrategyType } from './memory';
|
|
2
2
|
export { DEFAULT_STRATEGY_NAMESPACES, MemoryStrategyNameSchema, MemoryStrategySchema, MemoryStrategyTypeSchema, } from './memory';
|
|
3
|
+
export type { EvaluationLevel, EvaluatorConfig, LlmAsAJudgeConfig, RatingScale, NumericalRating, CategoricalRating, } from './evaluator';
|
|
4
|
+
export { BedrockModelIdSchema, isValidBedrockModelId, EvaluationLevelSchema, EvaluatorConfigSchema, EvaluatorNameSchema, LlmAsAJudgeConfigSchema, RatingScaleSchema, NumericalRatingSchema, CategoricalRatingSchema, } from './evaluator';
|
|
5
|
+
export type { OnlineEvalConfig } from './online-eval-config';
|
|
6
|
+
export { OnlineEvalConfigSchema, OnlineEvalConfigNameSchema } from './online-eval-config';
|
|
3
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,UAAU,CAAC;AAElB,YAAY,EACV,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,aAAa,CAAC;AAErB,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MemoryStrategyTypeSchema = exports.MemoryStrategySchema = exports.MemoryStrategyNameSchema = exports.DEFAULT_STRATEGY_NAMESPACES = void 0;
|
|
3
|
+
exports.OnlineEvalConfigNameSchema = exports.OnlineEvalConfigSchema = exports.CategoricalRatingSchema = exports.NumericalRatingSchema = exports.RatingScaleSchema = exports.LlmAsAJudgeConfigSchema = exports.EvaluatorNameSchema = exports.EvaluatorConfigSchema = exports.EvaluationLevelSchema = exports.isValidBedrockModelId = exports.BedrockModelIdSchema = exports.MemoryStrategyTypeSchema = exports.MemoryStrategySchema = exports.MemoryStrategyNameSchema = exports.DEFAULT_STRATEGY_NAMESPACES = void 0;
|
|
4
4
|
var memory_1 = require("./memory");
|
|
5
5
|
Object.defineProperty(exports, "DEFAULT_STRATEGY_NAMESPACES", { enumerable: true, get: function () { return memory_1.DEFAULT_STRATEGY_NAMESPACES; } });
|
|
6
6
|
Object.defineProperty(exports, "MemoryStrategyNameSchema", { enumerable: true, get: function () { return memory_1.MemoryStrategyNameSchema; } });
|
|
7
7
|
Object.defineProperty(exports, "MemoryStrategySchema", { enumerable: true, get: function () { return memory_1.MemoryStrategySchema; } });
|
|
8
8
|
Object.defineProperty(exports, "MemoryStrategyTypeSchema", { enumerable: true, get: function () { return memory_1.MemoryStrategyTypeSchema; } });
|
|
9
|
+
var evaluator_1 = require("./evaluator");
|
|
10
|
+
Object.defineProperty(exports, "BedrockModelIdSchema", { enumerable: true, get: function () { return evaluator_1.BedrockModelIdSchema; } });
|
|
11
|
+
Object.defineProperty(exports, "isValidBedrockModelId", { enumerable: true, get: function () { return evaluator_1.isValidBedrockModelId; } });
|
|
12
|
+
Object.defineProperty(exports, "EvaluationLevelSchema", { enumerable: true, get: function () { return evaluator_1.EvaluationLevelSchema; } });
|
|
13
|
+
Object.defineProperty(exports, "EvaluatorConfigSchema", { enumerable: true, get: function () { return evaluator_1.EvaluatorConfigSchema; } });
|
|
14
|
+
Object.defineProperty(exports, "EvaluatorNameSchema", { enumerable: true, get: function () { return evaluator_1.EvaluatorNameSchema; } });
|
|
15
|
+
Object.defineProperty(exports, "LlmAsAJudgeConfigSchema", { enumerable: true, get: function () { return evaluator_1.LlmAsAJudgeConfigSchema; } });
|
|
16
|
+
Object.defineProperty(exports, "RatingScaleSchema", { enumerable: true, get: function () { return evaluator_1.RatingScaleSchema; } });
|
|
17
|
+
Object.defineProperty(exports, "NumericalRatingSchema", { enumerable: true, get: function () { return evaluator_1.NumericalRatingSchema; } });
|
|
18
|
+
Object.defineProperty(exports, "CategoricalRatingSchema", { enumerable: true, get: function () { return evaluator_1.CategoricalRatingSchema; } });
|
|
19
|
+
var online_eval_config_1 = require("./online-eval-config");
|
|
20
|
+
Object.defineProperty(exports, "OnlineEvalConfigSchema", { enumerable: true, get: function () { return online_eval_config_1.OnlineEvalConfigSchema; } });
|
|
21
|
+
Object.defineProperty(exports, "OnlineEvalConfigNameSchema", { enumerable: true, get: function () { return online_eval_config_1.OnlineEvalConfigNameSchema; } });
|
|
9
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/index.ts"],"names":[],"mappings":";;;AACA,mCAKkB;AAJhB,qHAAA,2BAA2B,OAAA;AAC3B,kHAAA,wBAAwB,OAAA;AACxB,8GAAA,oBAAoB,OAAA;AACpB,kHAAA,wBAAwB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/index.ts"],"names":[],"mappings":";;;AACA,mCAKkB;AAJhB,qHAAA,2BAA2B,OAAA;AAC3B,kHAAA,wBAAwB,OAAA;AACxB,8GAAA,oBAAoB,OAAA;AACpB,kHAAA,wBAAwB,OAAA;AAW1B,yCAUqB;AATnB,iHAAA,oBAAoB,OAAA;AACpB,kHAAA,qBAAqB,OAAA;AACrB,kHAAA,qBAAqB,OAAA;AACrB,kHAAA,qBAAqB,OAAA;AACrB,gHAAA,mBAAmB,OAAA;AACnB,oHAAA,uBAAuB,OAAA;AACvB,8GAAA,iBAAiB,OAAA;AACjB,kHAAA,qBAAqB,OAAA;AACrB,oHAAA,uBAAuB,OAAA;AAIzB,2DAA0F;AAAjF,4HAAA,sBAAsB,OAAA;AAAE,gIAAA,0BAA0B,OAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OnlineEvalConfigNameSchema: z.ZodString;
|
|
3
|
+
export declare const OnlineEvalConfigSchema: z.ZodObject<{
|
|
4
|
+
type: z.ZodLiteral<"OnlineEvaluationConfig">;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
agent: z.ZodString;
|
|
7
|
+
evaluators: z.ZodArray<z.ZodString>;
|
|
8
|
+
samplingRate: z.ZodNumber;
|
|
9
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10
|
+
enableOnCreate: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type OnlineEvalConfig = z.infer<typeof OnlineEvalConfigSchema>;
|
|
13
|
+
//# sourceMappingURL=online-eval-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"online-eval-config.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/online-eval-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,0BAA0B,aAOpC,CAAC;AAEJ,eAAO,MAAM,sBAAsB;;;;;;;;iBAajC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OnlineEvalConfigSchema = exports.OnlineEvalConfigNameSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// ============================================================================
|
|
6
|
+
// Online Eval Config Types
|
|
7
|
+
// ============================================================================
|
|
8
|
+
exports.OnlineEvalConfigNameSchema = zod_1.z
|
|
9
|
+
.string()
|
|
10
|
+
.min(1, 'Name is required')
|
|
11
|
+
.max(48)
|
|
12
|
+
.regex(/^[a-zA-Z][a-zA-Z0-9_]{0,47}$/, 'Must begin with a letter and contain only alphanumeric characters and underscores (max 48 chars)');
|
|
13
|
+
exports.OnlineEvalConfigSchema = zod_1.z.object({
|
|
14
|
+
type: zod_1.z.literal('OnlineEvaluationConfig'),
|
|
15
|
+
name: exports.OnlineEvalConfigNameSchema,
|
|
16
|
+
/** Agent name to monitor (must match a project agent) */
|
|
17
|
+
agent: zod_1.z.string().min(1, 'Agent name is required'),
|
|
18
|
+
/** Evaluator names (custom), Builtin.* IDs, or evaluator ARNs */
|
|
19
|
+
evaluators: zod_1.z.array(zod_1.z.string().min(1)).min(1, 'At least one evaluator is required'),
|
|
20
|
+
/** Sampling rate as a percentage (0.01 to 100) */
|
|
21
|
+
samplingRate: zod_1.z.number().min(0.01).max(100),
|
|
22
|
+
/** Optional description for the online eval config */
|
|
23
|
+
description: zod_1.z.string().max(200).optional(),
|
|
24
|
+
/** Whether to enable execution on create (default: true) */
|
|
25
|
+
enableOnCreate: zod_1.z.boolean().optional(),
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=online-eval-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"online-eval-config.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/online-eval-config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+EAA+E;AAC/E,2BAA2B;AAC3B,+EAA+E;AAElE,QAAA,0BAA0B,GAAG,OAAC;KACxC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;KAC1B,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,8BAA8B,EAC9B,kGAAkG,CACnG,CAAC;AAES,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC;IACzC,IAAI,EAAE,kCAA0B;IAChC,yDAAyD;IACzD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,wBAAwB,CAAC;IAClD,iEAAiE;IACjE,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,oCAAoC,CAAC;IACnF,kDAAkD;IAClD,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC3C,sDAAsD;IACtD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC3C,4DAA4D;IAC5D,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws/agentcore",
|
|
3
|
-
"version": "0.3.0-preview.
|
|
3
|
+
"version": "0.3.0-preview.6.0",
|
|
4
4
|
"description": "CLI for Amazon Bedrock AgentCore",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"files": [
|
|
42
42
|
"dist",
|
|
43
|
-
"scripts"
|
|
43
|
+
"scripts",
|
|
44
|
+
"!dist/mcp-harness"
|
|
44
45
|
],
|
|
45
46
|
"scripts": {
|
|
46
47
|
"preinstall": "node scripts/check-old-cli.mjs",
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
"build:lib": "tsc -p tsconfig.build.json",
|
|
49
50
|
"build:cli": "node esbuild.config.mjs",
|
|
50
51
|
"build:assets": "node scripts/copy-assets.mjs",
|
|
52
|
+
"build:harness": "BUILD_HARNESS=1 node esbuild.config.mjs",
|
|
51
53
|
"cli": "npx tsx src/cli/index.ts",
|
|
52
54
|
"typecheck": "tsc --noEmit",
|
|
53
55
|
"lint": "eslint src/",
|
|
@@ -64,7 +66,8 @@
|
|
|
64
66
|
"test:integ": "vitest run --project integ",
|
|
65
67
|
"test:unit": "vitest run --project unit --coverage",
|
|
66
68
|
"test:e2e": "vitest run --project e2e",
|
|
67
|
-
"test:update-snapshots": "vitest run --project unit --update"
|
|
69
|
+
"test:update-snapshots": "vitest run --project unit --update",
|
|
70
|
+
"test:tui": "npm run build:harness && vitest run --project tui"
|
|
68
71
|
},
|
|
69
72
|
"dependencies": {
|
|
70
73
|
"@aws-cdk/toolkit-lib": "^1.16.0",
|
|
@@ -96,6 +99,7 @@
|
|
|
96
99
|
},
|
|
97
100
|
"devDependencies": {
|
|
98
101
|
"@eslint/js": "^9.39.2",
|
|
102
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
99
103
|
"@secretlint/secretlint-rule-preset-recommend": "^11.3.0",
|
|
100
104
|
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
|
|
101
105
|
"@types/node": "^25.0.3",
|
|
@@ -103,20 +107,22 @@
|
|
|
103
107
|
"@typescript-eslint/eslint-plugin": "^8.50.0",
|
|
104
108
|
"@typescript-eslint/parser": "^8.50.0",
|
|
105
109
|
"@vitest/coverage-v8": "^4.0.18",
|
|
110
|
+
"@xterm/headless": "^6.0.0",
|
|
106
111
|
"aws-cdk-lib": "^2.240.0",
|
|
107
112
|
"constructs": "^10.4.4",
|
|
108
113
|
"esbuild": "^0.27.2",
|
|
109
|
-
"eslint": "^9.39.
|
|
114
|
+
"eslint": "^9.39.4",
|
|
110
115
|
"eslint-config-prettier": "^10.1.8",
|
|
111
116
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
112
117
|
"eslint-plugin-import": "^2.32.0",
|
|
113
118
|
"eslint-plugin-react": "^7.37.5",
|
|
114
119
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
115
|
-
"eslint-plugin-react-refresh": "^0.
|
|
120
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
116
121
|
"eslint-plugin-security": "^4.0.0",
|
|
117
122
|
"husky": "^9.1.7",
|
|
118
123
|
"ink-testing-library": "^4.0.0",
|
|
119
124
|
"lint-staged": "^16.2.7",
|
|
125
|
+
"node-pty": "^1.1.0",
|
|
120
126
|
"prettier": "^3.7.4",
|
|
121
127
|
"secretlint": "^11.3.0",
|
|
122
128
|
"tsx": "^4.21.0",
|
|
File without changes
|
/package/dist/assets/python/{autogen/base/mcp_client → a2a/googleadk/base/model}/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/assets/python/{langchain_langgraph → a2a/langchain_langgraph}/base/model/load.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/assets/python/{googleadk/base/model → http/autogen/base/mcp_client}/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/assets/python/{strands → http/langchain_langgraph}/base/mcp_client/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/assets/python/{langchain_langgraph → http/langchain_langgraph}/base/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|