veryfront 0.1.533 → 0.1.535
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/esm/cli/commands/extension/init-command.d.ts +1 -1
- package/esm/cli/commands/extension/init-command.d.ts.map +1 -1
- package/esm/cli/commands/extension/init-command.js +14 -4
- package/esm/deno.d.ts +1 -0
- package/esm/deno.js +5 -4
- package/esm/extensions/ext-auth-jwt/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-auth-jwt/src/index.js +0 -1
- package/esm/extensions/ext-bundler-esbuild/src/index.js +4 -4
- package/esm/extensions/ext-content-mdx/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-content-mdx/src/index.js +4 -1
- package/esm/extensions/ext-css-tailwind/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-css-tailwind/src/index.js +3 -1
- package/esm/extensions/ext-db-sqlite/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-db-sqlite/src/index.js +3 -1
- package/esm/extensions/ext-document-kreuzberg/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-document-kreuzberg/src/index.js +3 -1
- package/esm/extensions/ext-llm-anthropic/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-llm-anthropic/src/index.js +5 -1
- package/esm/extensions/ext-llm-google/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-llm-google/src/index.js +5 -1
- package/esm/extensions/ext-llm-openai/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-llm-openai/src/index.js +5 -1
- package/esm/extensions/ext-observability-opentelemetry/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-observability-opentelemetry/src/index.js +3 -2
- package/esm/extensions/ext-parser-babel/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-parser-babel/src/index.js +4 -1
- package/esm/extensions/ext-sandbox-shell-tools/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-sandbox-shell-tools/src/index.js +4 -1
- package/esm/extensions/ext-schema-zod/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-schema-zod/src/index.js +4 -1
- package/esm/src/agent/testing/durable-run-canaries/cli-runner.d.ts +18 -0
- package/esm/src/agent/testing/durable-run-canaries/cli-runner.d.ts.map +1 -0
- package/esm/src/agent/testing/durable-run-canaries/cli-runner.js +65 -0
- package/esm/src/agent/testing/durable-run-canaries/environment.d.ts +11 -0
- package/esm/src/agent/testing/durable-run-canaries/environment.d.ts.map +1 -0
- package/esm/src/agent/testing/durable-run-canaries/environment.js +13 -0
- package/esm/src/agent/testing/durable-run-canaries/index.d.ts +3 -0
- package/esm/src/agent/testing/durable-run-canaries/index.d.ts.map +1 -1
- package/esm/src/agent/testing/durable-run-canaries/index.js +3 -0
- package/esm/src/agent/testing/durable-run-canaries/validation.d.ts +7 -0
- package/esm/src/agent/testing/durable-run-canaries/validation.d.ts.map +1 -0
- package/esm/src/agent/testing/durable-run-canaries/validation.js +66 -0
- package/esm/src/agent/testing/index.d.ts +2 -2
- package/esm/src/agent/testing/index.d.ts.map +1 -1
- package/esm/src/agent/testing/index.js +2 -2
- package/esm/src/agent/testing/live-evals/cli-runner.d.ts +36 -0
- package/esm/src/agent/testing/live-evals/cli-runner.d.ts.map +1 -0
- package/esm/src/agent/testing/live-evals/cli-runner.js +143 -0
- package/esm/src/agent/testing/live-evals/environment.d.ts +12 -0
- package/esm/src/agent/testing/live-evals/environment.d.ts.map +1 -0
- package/esm/src/agent/testing/live-evals/environment.js +18 -0
- package/esm/src/agent/testing/live-evals/index.d.ts +3 -0
- package/esm/src/agent/testing/live-evals/index.d.ts.map +1 -1
- package/esm/src/agent/testing/live-evals/index.js +3 -0
- package/esm/src/agent/testing/live-evals/preflight.d.ts +9 -0
- package/esm/src/agent/testing/live-evals/preflight.d.ts.map +1 -0
- package/esm/src/agent/testing/live-evals/preflight.js +25 -0
- package/esm/src/extensions/builtin-extensions.d.ts.map +1 -1
- package/esm/src/extensions/builtin-extensions.js +4 -1
- package/esm/src/extensions/capabilities.d.ts +1 -1
- package/esm/src/extensions/capabilities.d.ts.map +1 -1
- package/esm/src/extensions/capabilities.js +1 -4
- package/esm/src/extensions/discovery.d.ts +2 -1
- package/esm/src/extensions/discovery.d.ts.map +1 -1
- package/esm/src/extensions/discovery.js +24 -1
- package/esm/src/extensions/index.d.ts +1 -1
- package/esm/src/extensions/index.d.ts.map +1 -1
- package/esm/src/extensions/loader.d.ts.map +1 -1
- package/esm/src/extensions/loader.js +26 -11
- package/esm/src/extensions/types.d.ts +8 -0
- package/esm/src/extensions/types.d.ts.map +1 -1
- package/esm/src/extensions/validation.d.ts.map +1 -1
- package/esm/src/extensions/validation.js +32 -8
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +1 -1
- package/src/cli/commands/extension/init-command.ts +14 -4
- package/src/deno.js +5 -4
- package/src/deps/esm.sh/@types/react-dom@19.2.3/client.d.ts +1 -1
- package/src/deps/esm.sh/react-dom@19.2.4/client.d.ts +1 -1
- package/src/extensions/ext-auth-jwt/src/index.ts +0 -1
- package/src/extensions/ext-bundler-esbuild/src/index.ts +4 -4
- package/src/extensions/ext-content-mdx/src/index.ts +4 -1
- package/src/extensions/ext-css-tailwind/src/index.ts +3 -1
- package/src/extensions/ext-db-sqlite/src/index.ts +3 -1
- package/src/extensions/ext-document-kreuzberg/src/index.ts +3 -1
- package/src/extensions/ext-llm-anthropic/src/index.ts +5 -1
- package/src/extensions/ext-llm-google/src/index.ts +5 -1
- package/src/extensions/ext-llm-openai/src/index.ts +5 -1
- package/src/extensions/ext-observability-opentelemetry/src/index.ts +3 -2
- package/src/extensions/ext-parser-babel/src/index.ts +4 -1
- package/src/extensions/ext-sandbox-shell-tools/src/index.ts +4 -1
- package/src/extensions/ext-schema-zod/src/index.ts +4 -1
- package/src/src/agent/testing/durable-run-canaries/cli-runner.ts +117 -0
- package/src/src/agent/testing/durable-run-canaries/environment.ts +27 -0
- package/src/src/agent/testing/durable-run-canaries/index.ts +18 -0
- package/src/src/agent/testing/durable-run-canaries/validation.ts +87 -0
- package/src/src/agent/testing/index.ts +14 -0
- package/src/src/agent/testing/live-evals/cli-runner.ts +234 -0
- package/src/src/agent/testing/live-evals/environment.ts +31 -0
- package/src/src/agent/testing/live-evals/index.ts +16 -0
- package/src/src/agent/testing/live-evals/preflight.ts +42 -0
- package/src/src/extensions/builtin-extensions.ts +4 -1
- package/src/src/extensions/capabilities.ts +1 -5
- package/src/src/extensions/discovery.ts +27 -2
- package/src/src/extensions/index.ts +1 -0
- package/src/src/extensions/loader.ts +29 -11
- package/src/src/extensions/types.ts +10 -0
- package/src/src/extensions/validation.ts +47 -7
- package/src/src/utils/version-constant.ts +1 -1
- package/src/deps/esm.sh/@types/react@19.2.3/global.d.ts +0 -165
- package/src/deps/esm.sh/@types/react@19.2.3/index.d.ts +0 -4301
|
@@ -9,7 +9,7 @@ export interface GeneratedFile {
|
|
|
9
9
|
export declare function validateExtensionName(name: string): string | undefined;
|
|
10
10
|
/**
|
|
11
11
|
* Generate the file contents for a new extension scaffold.
|
|
12
|
-
* Does not write to disk
|
|
12
|
+
* Does not write to disk. Returns file path/content pairs.
|
|
13
13
|
*/
|
|
14
14
|
export declare function generateExtensionFiles(name: string): GeneratedFile[];
|
|
15
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/extension/init-command.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAID;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAOtE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"init-command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/extension/init-command.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAID;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAOtE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,EAAE,CA6FpE;AASD;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAYnF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Extension init command
|
|
2
|
+
* Extension init command: scaffold a new extension.
|
|
3
3
|
*
|
|
4
4
|
* @module cli/commands/extension/init-command
|
|
5
5
|
*/
|
|
@@ -21,7 +21,7 @@ export function validateExtensionName(name) {
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Generate the file contents for a new extension scaffold.
|
|
24
|
-
* Does not write to disk
|
|
24
|
+
* Does not write to disk. Returns file path/content pairs.
|
|
25
25
|
*/
|
|
26
26
|
export function generateExtensionFiles(name) {
|
|
27
27
|
const base = `extensions/${name}`;
|
|
@@ -36,6 +36,12 @@ import type { ExtensionFactory } from "veryfront/extensions";
|
|
|
36
36
|
const ${camelCase(name)}: ExtensionFactory = () => ({
|
|
37
37
|
name: "${name}",
|
|
38
38
|
version: "0.1.0",
|
|
39
|
+
// Use contracts.provides for dynamic ctx.provide() registrations.
|
|
40
|
+
// Use contracts.requires before calling ctx.require().
|
|
41
|
+
contracts: {
|
|
42
|
+
provides: [],
|
|
43
|
+
requires: [],
|
|
44
|
+
},
|
|
39
45
|
capabilities: [],
|
|
40
46
|
|
|
41
47
|
// Uncomment and modify to provide a contract implementation:
|
|
@@ -45,8 +51,8 @@ const ${camelCase(name)}: ExtensionFactory = () => ({
|
|
|
45
51
|
|
|
46
52
|
// Uncomment for async setup:
|
|
47
53
|
// async setup(ctx) {
|
|
48
|
-
// // ctx.get<T>("ContractName")
|
|
49
|
-
// // ctx.provide("ContractName", impl)
|
|
54
|
+
// // ctx.get<T>("ContractName"): consume another contract
|
|
55
|
+
// // ctx.provide("ContractName", impl): register a contract
|
|
50
56
|
// },
|
|
51
57
|
|
|
52
58
|
// Uncomment for cleanup:
|
|
@@ -90,6 +96,10 @@ describe("${name} extension", () => {
|
|
|
90
96
|
version: "0.1.0",
|
|
91
97
|
veryfront: {
|
|
92
98
|
extension: true,
|
|
99
|
+
contracts: {
|
|
100
|
+
provides: [],
|
|
101
|
+
requires: [],
|
|
102
|
+
},
|
|
93
103
|
capabilities: [],
|
|
94
104
|
},
|
|
95
105
|
}, null, 2);
|
package/esm/deno.d.ts
CHANGED
|
@@ -307,6 +307,7 @@ declare namespace _default {
|
|
|
307
307
|
"lint:ban-zod": string;
|
|
308
308
|
"lint:core-deps": string;
|
|
309
309
|
"lint:dependency-boundaries": string;
|
|
310
|
+
"lint:extension-contracts": string;
|
|
310
311
|
"lint:ban-console": string;
|
|
311
312
|
"lint:ban-deep-imports": string;
|
|
312
313
|
"lint:imports": string;
|
package/esm/deno.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"name": "veryfront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.535",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"nodeModulesDir": "auto",
|
|
6
6
|
"workspace": [
|
|
@@ -331,8 +331,8 @@ export default {
|
|
|
331
331
|
"fmt": "deno fmt src/ cli/ react/",
|
|
332
332
|
"fmt:check": "deno fmt --check src/ cli/ react/",
|
|
333
333
|
"typecheck": "deno task generate && deno check src/index.ts cli/main.ts src/server/index.ts src/routing/api/index.ts src/rendering/index.ts src/platform/index.ts src/platform/adapters/index.ts src/build/index.ts src/build/production-build/index.ts src/transforms/index.ts src/config/index.ts src/utils/index.ts src/data/index.ts src/security/index.ts src/middleware/index.ts src/server/handlers/dev/index.ts src/server/handlers/request/api/index.ts src/rendering/cache/index.ts src/rendering/cache/stores/index.ts src/rendering/rsc/actions/index.ts src/html/index.ts src/modules/index.ts src/proxy/main.ts src/chat/index.ts src/markdown/index.ts src/mdx/index.ts src/fs/index.ts src/oauth/index.ts src/agent/index.ts src/agent/service/route-export.check.ts src/tool/index.ts src/workflow/index.ts src/prompt/index.ts src/resource/index.ts src/jobs/index.ts src/mcp/index.ts src/provider/index.ts",
|
|
334
|
-
"verify": "deno task generate && deno fmt --check src/ cli/ react/ && DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ react/ && deno task lint:style && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task lint:ban-zod && deno task lint:core-deps && deno task lint:dependency-boundaries && deno task docs:validate && deno task typecheck && deno task test && deno task test:e2e:binary",
|
|
335
|
-
"verify:quick": "deno task generate && deno fmt --check src/ cli/ react/ && DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ react/ && deno task lint:style && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task lint:ban-zod && deno task lint:core-deps && deno task lint:dependency-boundaries && deno task docs:validate && deno task typecheck",
|
|
334
|
+
"verify": "deno task generate && deno fmt --check src/ cli/ react/ && DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ react/ && deno task lint:style && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task lint:ban-zod && deno task lint:core-deps && deno task lint:dependency-boundaries && deno task lint:extension-contracts && deno task docs:validate && deno task typecheck && deno task test && deno task test:e2e:binary",
|
|
335
|
+
"verify:quick": "deno task generate && deno fmt --check src/ cli/ react/ && DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ react/ && deno task lint:style && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task lint:ban-zod && deno task lint:core-deps && deno task lint:dependency-boundaries && deno task lint:extension-contracts && deno task docs:validate && deno task typecheck",
|
|
336
336
|
"docs": "rm -rf docs/reference && deno run --allow-read --allow-write --allow-run scripts/docs/generate-api-reference.ts",
|
|
337
337
|
"docs:copy": "rm -rf ../../docs/docs/code/reference && cp -r docs/reference/ ../../docs/docs/code/reference/",
|
|
338
338
|
"docs:validate": "deno run --allow-read scripts/docs/validate-api-reference.ts",
|
|
@@ -341,6 +341,7 @@ export default {
|
|
|
341
341
|
"lint:ban-zod": "deno run --allow-read scripts/lint/ban-zod-imports.ts",
|
|
342
342
|
"lint:core-deps": "deno run --allow-read scripts/lint/audit-core-deps.ts",
|
|
343
343
|
"lint:dependency-boundaries": "deno run --allow-read scripts/lint/audit-dependency-boundaries.ts",
|
|
344
|
+
"lint:extension-contracts": "deno run --allow-read --allow-env --allow-sys scripts/lint/audit-extension-contracts.ts",
|
|
344
345
|
"lint:ban-console": "deno run --allow-read scripts/lint/ban-console.ts",
|
|
345
346
|
"lint:ban-deep-imports": "deno run --allow-read scripts/lint/ban-deep-imports.ts",
|
|
346
347
|
"lint:imports": "deno run --allow-read scripts/lint/no-cross-boundary-relative-imports.ts",
|
|
@@ -354,7 +355,7 @@ export default {
|
|
|
354
355
|
"lint:wildcard-exports": "deno run --allow-read scripts/lint/ban-wildcard-exports.ts",
|
|
355
356
|
"lint:deps": "deno run --allow-read scripts/lint/audit-deps.ts",
|
|
356
357
|
"lint:barrel-jsdoc": "deno run --allow-read scripts/lint/check-barrel-jsdoc.ts",
|
|
357
|
-
"test:scripts": "deno test --config=scripts/test.deno.json --no-check --allow-read --allow-write scripts/build/generate-sbom.test.ts scripts/build/npm-react-shims.test.ts scripts/lint/audit-core-deps.test.ts scripts/lint/audit-dependency-boundaries.test.ts scripts/lint/audit-deps.test.ts scripts/security/audit-npm.test.ts scripts/security/submit-dependency-snapshot.test.ts",
|
|
358
|
+
"test:scripts": "deno test --config=scripts/test.deno.json --no-check --allow-read --allow-write scripts/build/generate-sbom.test.ts scripts/build/npm-react-shims.test.ts scripts/lint/audit-core-deps.test.ts scripts/lint/audit-dependency-boundaries.test.ts scripts/lint/audit-extension-contracts.test.ts scripts/lint/audit-deps.test.ts scripts/security/audit-npm.test.ts scripts/security/submit-dependency-snapshot.test.ts",
|
|
358
359
|
"test:cross-runtime": "deno run --allow-all src/platform/compat/cross-runtime.test.ts",
|
|
359
360
|
"test:node": "node ./tests/node/run-tests.mjs 'src/**/*.test.ts'",
|
|
360
361
|
"test:bun": "node ./tests/bun/run-tests.mjs src/",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-auth-jwt/src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAKL,SAAS,EAGV,MAAM,MAAM,CAAC;AAEd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EACV,YAAY,EAKb,MAAM,uCAAuC,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,YAAY,CAAC;AAEpE;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAC7B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC3C;AAsBD,iBAAS,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,CAgG9D;AAED;;;;;GAKG;AACH,QAAA,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-auth-jwt/src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAKL,SAAS,EAGV,MAAM,MAAM,CAAC;AAEd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EACV,YAAY,EAKb,MAAM,uCAAuC,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,YAAY,CAAC;AAEpE;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAC7B,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC3C;AAsBD,iBAAS,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,CAgG9D;AAED;;;;;GAKG;AACH,QAAA,MAAM,MAAM,EAAE,gBAcb,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -18,10 +18,10 @@ const extEsbuild = () => {
|
|
|
18
18
|
return {
|
|
19
19
|
name: "ext-bundler-esbuild",
|
|
20
20
|
version: "0.1.0",
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
],
|
|
21
|
+
contracts: {
|
|
22
|
+
provides: ["Bundler", "ModuleLexer"],
|
|
23
|
+
},
|
|
24
|
+
capabilities: [],
|
|
25
25
|
setup(ctx) {
|
|
26
26
|
if (!ctx.get("Bundler")) {
|
|
27
27
|
ctx.provide("Bundler", bundler);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-content-mdx/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EACV,qBAAqB,EACrB,aAAa,EACb,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,0CAA0C,CAAC;AAKlD,cAAM,mBAAoB,YAAW,gBAAgB;IACnD,UAAU,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAG5E,eAAe,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAGjF,gBAAgB,IAAI,aAAa,EAAE;IAGnC,gBAAgB,IAAI,aAAa,EAAE;CAGpC;AAED,QAAA,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-content-mdx/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EACV,qBAAqB,EACrB,aAAa,EACb,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,0CAA0C,CAAC;AAKlD,cAAM,mBAAoB,YAAW,gBAAgB;IACnD,UAAU,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAG5E,eAAe,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAGjF,gBAAgB,IAAI,aAAa,EAAE;IAGnC,gBAAgB,IAAI,aAAa,EAAE;CAGpC;AAED,QAAA,MAAM,MAAM,EAAE,gBAiBb,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -38,7 +38,10 @@ const extMdx = () => {
|
|
|
38
38
|
return {
|
|
39
39
|
name: "ext-content-mdx",
|
|
40
40
|
version: "0.1.0",
|
|
41
|
-
|
|
41
|
+
contracts: {
|
|
42
|
+
provides: ["ContentProcessor"],
|
|
43
|
+
},
|
|
44
|
+
capabilities: [],
|
|
42
45
|
setup(ctx) {
|
|
43
46
|
ctx.provide("ContentProcessor", impl);
|
|
44
47
|
ctx.logger.info("[ext-content-mdx] ContentProcessor registered");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-css-tailwind/src/index.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAgBzG,cAAM,oBAAqB,YAAW,YAAY;IAC1C,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,WAAW,CAAC;CAgBpF;AAED,QAAA,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-css-tailwind/src/index.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAgBzG,cAAM,oBAAqB,YAAW,YAAY;IAC1C,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,WAAW,CAAC;CAgBpF;AAED,QAAA,MAAM,WAAW,EAAE,gBAsBlB,CAAC;AAEF,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -49,8 +49,10 @@ const extTailwind = () => {
|
|
|
49
49
|
return {
|
|
50
50
|
name: "ext-css-tailwind",
|
|
51
51
|
version: "0.1.0",
|
|
52
|
+
contracts: {
|
|
53
|
+
provides: ["CSSProcessor"],
|
|
54
|
+
},
|
|
52
55
|
capabilities: [
|
|
53
|
-
{ type: "contract", name: "CSSProcessor" },
|
|
54
56
|
{ type: "net:outbound", hosts: ["esm.sh"] },
|
|
55
57
|
],
|
|
56
58
|
setup(ctx) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-db-sqlite/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAU3F,qBAAa,iBAAkB,YAAW,WAAW;IACnD,kBAAkB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;CAG3D;AAED,QAAA,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-db-sqlite/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAU3F,qBAAa,iBAAkB,YAAW,WAAW;IACnD,kBAAkB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;CAG3D;AAED,QAAA,MAAM,WAAW,EAAE,gBAmBlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -22,8 +22,10 @@ const extDbSqlite = () => {
|
|
|
22
22
|
return {
|
|
23
23
|
name: "ext-db-sqlite",
|
|
24
24
|
version: "0.1.0",
|
|
25
|
+
contracts: {
|
|
26
|
+
provides: ["SqliteStore"],
|
|
27
|
+
},
|
|
25
28
|
capabilities: [
|
|
26
|
-
{ type: "contract", name: "SqliteStore" },
|
|
27
29
|
{ type: "fs:read" },
|
|
28
30
|
{ type: "fs:write" },
|
|
29
31
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-document-kreuzberg/src/index.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAgDrG,qBAAa,0BAA2B,YAAW,iBAAiB;IAClE,eAAe,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAIxC,eAAe,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAS9E;AAED,QAAA,MAAM,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-document-kreuzberg/src/index.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAgDrG,qBAAa,0BAA2B,YAAW,iBAAiB;IAClE,eAAe,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAIxC,eAAe,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAS9E;AAED,QAAA,MAAM,oBAAoB,EAAE,gBAkB3B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -58,8 +58,10 @@ const extDocumentKreuzberg = () => {
|
|
|
58
58
|
return {
|
|
59
59
|
name: "ext-document-kreuzberg",
|
|
60
60
|
version: "0.1.0",
|
|
61
|
+
contracts: {
|
|
62
|
+
provides: ["DocumentExtractor"],
|
|
63
|
+
},
|
|
61
64
|
capabilities: [
|
|
62
|
-
{ type: "contract", name: "DocumentExtractor" },
|
|
63
65
|
{ type: "fs:read" },
|
|
64
66
|
],
|
|
65
67
|
setup(ctx) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-llm-anthropic/src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,QAAA,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-llm-anthropic/src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,QAAA,MAAM,YAAY,EAAE,gBAsBnB,CAAC;AAEF,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -12,7 +12,11 @@ const extAnthropic = () => {
|
|
|
12
12
|
return {
|
|
13
13
|
name: "ext-llm-anthropic",
|
|
14
14
|
version: "0.1.0",
|
|
15
|
-
|
|
15
|
+
contracts: {
|
|
16
|
+
provides: ["LLMProvider:anthropic"],
|
|
17
|
+
requires: [LLMProviderRegistryName],
|
|
18
|
+
},
|
|
19
|
+
capabilities: [],
|
|
16
20
|
setup(ctx) {
|
|
17
21
|
const registry = ctx.require(LLMProviderRegistryName);
|
|
18
22
|
registry.register(provider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-llm-google/src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGzE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,QAAA,MAAM,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-llm-google/src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGzE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,QAAA,MAAM,SAAS,EAAE,gBAmBhB,CAAC;AAEF,eAAe,SAAS,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -11,7 +11,11 @@ const extGoogle = () => {
|
|
|
11
11
|
return {
|
|
12
12
|
name: "ext-llm-google",
|
|
13
13
|
version: "0.1.0",
|
|
14
|
-
|
|
14
|
+
contracts: {
|
|
15
|
+
provides: ["LLMProvider:google"],
|
|
16
|
+
requires: [LLMProviderRegistryName],
|
|
17
|
+
},
|
|
18
|
+
capabilities: [],
|
|
15
19
|
setup(ctx) {
|
|
16
20
|
const registry = ctx.require(LLMProviderRegistryName);
|
|
17
21
|
registry.register(provider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-llm-openai/src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGzE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,QAAA,MAAM,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-llm-openai/src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGzE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,QAAA,MAAM,SAAS,EAAE,gBAqBhB,CAAC;AAEF,eAAe,SAAS,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -12,7 +12,11 @@ const extOpenAI = () => {
|
|
|
12
12
|
return {
|
|
13
13
|
name: "ext-llm-openai",
|
|
14
14
|
version: "0.1.0",
|
|
15
|
-
|
|
15
|
+
contracts: {
|
|
16
|
+
provides: ["LLMProvider:openai"],
|
|
17
|
+
requires: [LLMProviderRegistryName],
|
|
18
|
+
},
|
|
19
|
+
capabilities: [],
|
|
16
20
|
setup(ctx) {
|
|
17
21
|
registry = ctx.require(LLMProviderRegistryName);
|
|
18
22
|
registry.register(provider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-observability-opentelemetry/src/index.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EACV,8BAA8B,EAC9B,qBAAqB,EACrB,QAAQ,EACR,eAAe,EAChB,MAAM,gDAAgD,CAAC;AAiBxD;;;GAGG;AACH,UAAU,kBAAkB;IAC1B,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACpD;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE;QACL,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC3C,CAAC;CACH;AAqDD,cAAM,mBAAoB,YAAW,eAAe;IAClD,OAAO,CAAC,WAAW,CAAoC;IAEjD,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAyCxD,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAKzC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAU/B,WAAW,IAAI,kBAAkB;IAOjC,aAAa,IAAI;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI;IAKzF,WAAW,IAAI;QAAE,aAAa,IAAI,OAAO,CAAC;QAAC,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI;CAOnF;AAED,cAAM,kCAAmC,YAAW,qBAAqB;IACvE,OAAO,CAAC,GAAG,CAAwB;IAE7B,UAAU,CAAC,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,OAAO,CAAC;IA0CrE,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAQhC;AAED;;;;;GAKG;AACH,QAAA,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-observability-opentelemetry/src/index.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EACV,8BAA8B,EAC9B,qBAAqB,EACrB,QAAQ,EACR,eAAe,EAChB,MAAM,gDAAgD,CAAC;AAiBxD;;;GAGG;AACH,UAAU,kBAAkB;IAC1B,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACpD;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE;QACL,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC3C,CAAC;CACH;AAqDD,cAAM,mBAAoB,YAAW,eAAe;IAClD,OAAO,CAAC,WAAW,CAAoC;IAEjD,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAyCxD,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAKzC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAU/B,WAAW,IAAI,kBAAkB;IAOjC,aAAa,IAAI;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI;IAKzF,WAAW,IAAI;QAAE,aAAa,IAAI,OAAO,CAAC;QAAC,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI;CAOnF;AAED,cAAM,kCAAmC,YAAW,qBAAqB;IACvE,OAAO,CAAC,GAAG,CAAwB;IAE7B,UAAU,CAAC,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,OAAO,CAAC;IA0CrE,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAQhC;AAED;;;;;GAKG;AACH,QAAA,MAAM,gBAAgB,EAAE,gBAiCvB,CAAC;AAEF,eAAe,gBAAgB,CAAC;AAChC,OAAO,EAAE,kCAAkC,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -193,9 +193,10 @@ const extOpenTelemetry = () => {
|
|
|
193
193
|
return {
|
|
194
194
|
name: "ext-observability-opentelemetry",
|
|
195
195
|
version: "0.1.0",
|
|
196
|
+
contracts: {
|
|
197
|
+
provides: ["TracingExporter", "NodeTelemetryProvider"],
|
|
198
|
+
},
|
|
196
199
|
capabilities: [
|
|
197
|
-
{ type: "contract", name: "TracingExporter" },
|
|
198
|
-
{ type: "contract", name: "NodeTelemetryProvider" },
|
|
199
200
|
{ type: "net:outbound", hosts: ["*"] },
|
|
200
201
|
{
|
|
201
202
|
type: "env:read",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-parser-babel/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EACV,OAAO,EACP,UAAU,EACV,eAAe,EACf,cAAc,EACd,6BAA6B,EAC7B,YAAY,EACZ,eAAe,EAChB,MAAM,yCAAyC,CAAC;AAiCjD,cAAM,eAAgB,YAAW,UAAU;IACzC,KAAK,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;IAQ9C,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,GAAG,IAAI;IAItD,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC;IAW1E,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,6BAA6B,GAAG,MAAM;CAGvF;AAED,QAAA,MAAM,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-parser-babel/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EACV,OAAO,EACP,UAAU,EACV,eAAe,EACf,cAAc,EACd,6BAA6B,EAC7B,YAAY,EACZ,eAAe,EAChB,MAAM,yCAAyC,CAAC;AAiCjD,cAAM,eAAgB,YAAW,UAAU;IACzC,KAAK,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;IAQ9C,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,GAAG,IAAI;IAItD,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC;IAW1E,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,6BAA6B,GAAG,MAAM;CAGvF;AAED,QAAA,MAAM,QAAQ,EAAE,gBAiBf,CAAC;AAEF,eAAe,QAAQ,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -65,7 +65,10 @@ const extBabel = () => {
|
|
|
65
65
|
return {
|
|
66
66
|
name: "ext-parser-babel",
|
|
67
67
|
version: "0.1.0",
|
|
68
|
-
|
|
68
|
+
contracts: {
|
|
69
|
+
provides: ["CodeParser"],
|
|
70
|
+
},
|
|
71
|
+
capabilities: [],
|
|
69
72
|
setup(ctx) {
|
|
70
73
|
ctx.provide("CodeParser", impl);
|
|
71
74
|
ctx.logger.info("[ext-parser-babel] CodeParser registered");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-sandbox-shell-tools/src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAE/B,MAAM,0CAA0C,CAAC;AAGlD,KAAK,eAAe,GAAG,CACrB,KAAK,EAAE,4BAA4B,KAChC,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC,CAAC;AAEjD,wBAAgB,+BAA+B,CAC7C,kBAAkB,EAAE,eAAe,GAClC,yBAAyB,CAE3B;AAED,QAAA,MAAM,QAAQ,2BAAkD,CAAC;AAEjE,QAAA,MAAM,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-sandbox-shell-tools/src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAE/B,MAAM,0CAA0C,CAAC;AAGlD,KAAK,eAAe,GAAG,CACrB,KAAK,EAAE,4BAA4B,KAChC,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC,CAAC;AAEjD,wBAAgB,+BAA+B,CAC7C,kBAAkB,EAAE,eAAe,GAClC,yBAAyB,CAE3B;AAED,QAAA,MAAM,QAAQ,2BAAkD,CAAC;AAEjE,QAAA,MAAM,oBAAoB,EAAE,gBAW1B,CAAC;AAEH,eAAe,oBAAoB,CAAC;AACpC,OAAO,EAAE,QAAQ,IAAI,mCAAmC,EAAE,CAAC"}
|
|
@@ -12,7 +12,10 @@ const provider = createSandboxShellToolsProvider(createBashTool);
|
|
|
12
12
|
const extSandboxShellTools = () => ({
|
|
13
13
|
name: "ext-sandbox-shell-tools",
|
|
14
14
|
version: "0.1.0",
|
|
15
|
-
|
|
15
|
+
contracts: {
|
|
16
|
+
provides: [SandboxShellToolsProviderName],
|
|
17
|
+
},
|
|
18
|
+
capabilities: [],
|
|
16
19
|
setup(ctx) {
|
|
17
20
|
ctx.provide(SandboxShellToolsProviderName, provider);
|
|
18
21
|
ctx.logger.info("[ext-sandbox-shell-tools] Sandbox shell tools provider registered");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-schema-zod/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGzE,QAAA,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-schema-zod/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGzE,QAAA,MAAM,MAAM,EAAE,gBAiBb,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -18,7 +18,10 @@ const extZod = () => {
|
|
|
18
18
|
return {
|
|
19
19
|
name: "ext-schema-zod",
|
|
20
20
|
version: "0.1.0",
|
|
21
|
-
|
|
21
|
+
contracts: {
|
|
22
|
+
provides: ["SchemaValidator"],
|
|
23
|
+
},
|
|
24
|
+
capabilities: [],
|
|
22
25
|
setup(ctx) {
|
|
23
26
|
ctx.provide("SchemaValidator", impl);
|
|
24
27
|
ctx.logger.info("[ext-schema-zod] SchemaValidator registered");
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type LiveEvalApiContext } from "../live-evals/api-client.js";
|
|
2
|
+
import { createDurableRunCanaryRunner, type DurableRunCanaryCase, type DurableRunCanaryRunnerConfig } from "./runner.js";
|
|
3
|
+
type EnvRecord = Record<string, string | undefined>;
|
|
4
|
+
export interface DurableRunCanaryCliCaseFactoryInput {
|
|
5
|
+
context: LiveEvalApiContext;
|
|
6
|
+
requestTimeoutMs: number;
|
|
7
|
+
}
|
|
8
|
+
export interface RunDurableRunCanaryCliInput {
|
|
9
|
+
env: EnvRecord;
|
|
10
|
+
agentId: string;
|
|
11
|
+
createCases: (input: DurableRunCanaryCliCaseFactoryInput) => DurableRunCanaryCase[];
|
|
12
|
+
cwd?: string;
|
|
13
|
+
log?: (message: string) => void;
|
|
14
|
+
createRunner?: (config: DurableRunCanaryRunnerConfig) => ReturnType<typeof createDurableRunCanaryRunner>;
|
|
15
|
+
}
|
|
16
|
+
export declare function runDurableRunCanaryCli(input: RunDurableRunCanaryCliInput): Promise<number>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=cli-runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-runner.d.ts","sourceRoot":"","sources":["../../../../../src/src/agent/testing/durable-run-canaries/cli-runner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,EACL,4BAA4B,EAC5B,KAAK,oBAAoB,EAEzB,KAAK,4BAA4B,EAClC,MAAM,aAAa,CAAC;AAErB,KAAK,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAEpD,MAAM,WAAW,mCAAmC;IAClD,OAAO,EAAE,kBAAkB,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,2BAA2B;IAC1C,GAAG,EAAE,SAAS,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,CAAC,KAAK,EAAE,mCAAmC,KAAK,oBAAoB,EAAE,CAAC;IACpF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,YAAY,CAAC,EAAE,CACb,MAAM,EAAE,4BAA4B,KACjC,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC;CACtD;AAcD,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,2BAA2B,GACjC,OAAO,CAAC,MAAM,CAAC,CAwEjB"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { mkdir, writeFile } from "node:fs/promises";
|
|
2
|
+
import { dirname, resolve } from "node:path";
|
|
3
|
+
import { cwd as getProcessCwd } from "node:process";
|
|
4
|
+
import { resolveDurableRunCanaryEnvironment } from "./environment.js";
|
|
5
|
+
import { createDurableRunCanaryRunner, } from "./runner.js";
|
|
6
|
+
function createTimestampedReportPath(input) {
|
|
7
|
+
return resolve(input.cwd, ".omx/logs", input.directory, `${new Date().toISOString().replaceAll(":", "-").replaceAll(".", "-")}.json`);
|
|
8
|
+
}
|
|
9
|
+
export async function runDurableRunCanaryCli(input) {
|
|
10
|
+
const log = input.log ?? console.log;
|
|
11
|
+
const cwd = input.cwd ?? getProcessCwd();
|
|
12
|
+
const { apiUrl, authToken, projectId, requestTimeoutMs, keepSuccessfulEvidence } = resolveDurableRunCanaryEnvironment(input.env);
|
|
13
|
+
const reportPath = input.env.DURABLE_CANARY_REPORT_PATH ??
|
|
14
|
+
createTimestampedReportPath({ cwd, directory: "durable-run-staging-canaries" });
|
|
15
|
+
if (!authToken) {
|
|
16
|
+
throw new Error("Missing VERYFRONT_TOKEN");
|
|
17
|
+
}
|
|
18
|
+
if (!projectId) {
|
|
19
|
+
throw new Error("Missing AG_UI_EVAL_PROJECT_ID");
|
|
20
|
+
}
|
|
21
|
+
const context = {
|
|
22
|
+
apiUrl,
|
|
23
|
+
authToken,
|
|
24
|
+
projectId: projectId || null,
|
|
25
|
+
};
|
|
26
|
+
const createRunner = input.createRunner ?? createDurableRunCanaryRunner;
|
|
27
|
+
const { runCase } = createRunner({
|
|
28
|
+
apiUrl,
|
|
29
|
+
authToken,
|
|
30
|
+
agentId: input.agentId,
|
|
31
|
+
projectId: projectId || null,
|
|
32
|
+
requestTimeoutMs,
|
|
33
|
+
keepSuccessfulEvidence,
|
|
34
|
+
});
|
|
35
|
+
const testCases = input.createCases({
|
|
36
|
+
context,
|
|
37
|
+
requestTimeoutMs,
|
|
38
|
+
});
|
|
39
|
+
log(`Durable run canaries -> ${apiUrl}`);
|
|
40
|
+
log(`Project scope -> ${projectId}`);
|
|
41
|
+
const results = [];
|
|
42
|
+
for (const testCase of testCases) {
|
|
43
|
+
log(`\n[run] ${testCase.label}`);
|
|
44
|
+
const result = await runCase(testCase);
|
|
45
|
+
results.push(result);
|
|
46
|
+
log(`[${result.status}] ${result.id}: ${result.details}`);
|
|
47
|
+
}
|
|
48
|
+
const summary = {
|
|
49
|
+
passed: results.filter((result) => result.status === "pass").length,
|
|
50
|
+
failed: results.filter((result) => result.status === "fail").length,
|
|
51
|
+
};
|
|
52
|
+
await mkdir(dirname(reportPath), { recursive: true });
|
|
53
|
+
await writeFile(reportPath, JSON.stringify({
|
|
54
|
+
generatedAt: new Date().toISOString(),
|
|
55
|
+
apiUrl,
|
|
56
|
+
projectId,
|
|
57
|
+
results,
|
|
58
|
+
summary,
|
|
59
|
+
}, null, 2));
|
|
60
|
+
log("\nSummary");
|
|
61
|
+
log(`passed: ${summary.passed}`);
|
|
62
|
+
log(`failed: ${summary.failed}`);
|
|
63
|
+
log(`report: ${reportPath}`);
|
|
64
|
+
return summary.failed > 0 ? 1 : 0;
|
|
65
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type AgentServiceConfigInput } from "../../service/config.js";
|
|
2
|
+
export interface DurableRunCanaryEnvironment {
|
|
3
|
+
apiUrl: string;
|
|
4
|
+
authToken: string;
|
|
5
|
+
projectId: string;
|
|
6
|
+
requestTimeoutMs: number;
|
|
7
|
+
keepSuccessfulEvidence: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const DEFAULT_DURABLE_RUN_CANARY_TIMEOUT_MS = 240000;
|
|
10
|
+
export declare function resolveDurableRunCanaryEnvironment(env?: AgentServiceConfigInput): DurableRunCanaryEnvironment;
|
|
11
|
+
//# sourceMappingURL=environment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../../../src/src/agent/testing/durable-run-canaries/environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,uBAAuB,EAA2B,MAAM,yBAAyB,CAAC;AAEhG,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAED,eAAO,MAAM,qCAAqC,SAAU,CAAC;AAE7D,wBAAgB,kCAAkC,CAChD,GAAG,GAAE,uBAA4B,GAChC,2BAA2B,CAY7B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { parseAgentServiceConfig } from "../../service/config.js";
|
|
2
|
+
export const DEFAULT_DURABLE_RUN_CANARY_TIMEOUT_MS = 240_000;
|
|
3
|
+
export function resolveDurableRunCanaryEnvironment(env = {}) {
|
|
4
|
+
return {
|
|
5
|
+
apiUrl: typeof env.VERYFRONT_API_URL === "string"
|
|
6
|
+
? env.VERYFRONT_API_URL
|
|
7
|
+
: parseAgentServiceConfig(env).VERYFRONT_API_URL,
|
|
8
|
+
authToken: typeof env.VERYFRONT_TOKEN === "string" ? env.VERYFRONT_TOKEN : "",
|
|
9
|
+
projectId: typeof env.AG_UI_EVAL_PROJECT_ID === "string" ? env.AG_UI_EVAL_PROJECT_ID : "",
|
|
10
|
+
requestTimeoutMs: Number(env.DURABLE_CANARY_TIMEOUT_MS ?? DEFAULT_DURABLE_RUN_CANARY_TIMEOUT_MS),
|
|
11
|
+
keepSuccessfulEvidence: env.DURABLE_CANARY_KEEP_SUCCESS === "1",
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
export { type DurableRunCanaryCliCaseFactoryInput, runDurableRunCanaryCli, type RunDurableRunCanaryCliInput, } from "./cli-runner.js";
|
|
2
|
+
export { DEFAULT_DURABLE_RUN_CANARY_TIMEOUT_MS, type DurableRunCanaryEnvironment, resolveDurableRunCanaryEnvironment, } from "./environment.js";
|
|
1
3
|
export { createDurableRunCanaryApiClient, createDurableRunCanaryRunner, type DurableRunCanaryApiClient, type DurableRunCanaryApiConfig, type DurableRunCanaryCase, type DurableRunCanaryCreateRootRunInput, type DurableRunCanaryMessage, type DurableRunCanaryPreparedCase, type DurableRunCanaryResult, type DurableRunCanaryRunnerConfig, durableRunCanaryRunnerInternals, type DurableRunCanaryRunSummary, type DurableRunCanarySendUserMessageInput, type DurableRunCanaryStartRunInput, getDurableRunCanaryMessageSchema, parseDurableRunCanaryRunSummary, } from "./runner.js";
|
|
4
|
+
export { assertCompleted, assertNoMalformedCreateFileToolCalls, collectAssistantText, findAssistantMessage, stringifyUnknown, } from "./validation.js";
|
|
2
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/src/agent/testing/durable-run-canaries/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAC/B,4BAA4B,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EACjC,+BAA+B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,oCAAoC,EACzC,KAAK,6BAA6B,EAClC,gCAAgC,EAChC,+BAA+B,GAChC,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/src/agent/testing/durable-run-canaries/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mCAAmC,EACxC,sBAAsB,EACtB,KAAK,2BAA2B,GACjC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,qCAAqC,EACrC,KAAK,2BAA2B,EAChC,kCAAkC,GACnC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,+BAA+B,EAC/B,4BAA4B,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EACjC,+BAA+B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,oCAAoC,EACzC,KAAK,6BAA6B,EAClC,gCAAgC,EAChC,+BAA+B,GAChC,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,eAAe,EACf,oCAAoC,EACpC,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1,4 @@
|
|
|
1
|
+
export { runDurableRunCanaryCli, } from "./cli-runner.js";
|
|
2
|
+
export { DEFAULT_DURABLE_RUN_CANARY_TIMEOUT_MS, resolveDurableRunCanaryEnvironment, } from "./environment.js";
|
|
1
3
|
export { createDurableRunCanaryApiClient, createDurableRunCanaryRunner, durableRunCanaryRunnerInternals, getDurableRunCanaryMessageSchema, parseDurableRunCanaryRunSummary, } from "./runner.js";
|
|
4
|
+
export { assertCompleted, assertNoMalformedCreateFileToolCalls, collectAssistantText, findAssistantMessage, stringifyUnknown, } from "./validation.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DurableRunCanaryMessage, DurableRunCanaryRunSummary } from "./runner.js";
|
|
2
|
+
export declare function assertCompleted(run: DurableRunCanaryRunSummary): void;
|
|
3
|
+
export declare function findAssistantMessage(messages: DurableRunCanaryMessage[], messageId: string): DurableRunCanaryMessage;
|
|
4
|
+
export declare function stringifyUnknown(value: unknown): string;
|
|
5
|
+
export declare function collectAssistantText(message: DurableRunCanaryMessage): string;
|
|
6
|
+
export declare function assertNoMalformedCreateFileToolCalls(messages: DurableRunCanaryMessage[]): void;
|
|
7
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../../src/src/agent/testing/durable-run-canaries/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AA+BvF,wBAAgB,eAAe,CAAC,GAAG,EAAE,0BAA0B,GAAG,IAAI,CAQrE;AAED,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,uBAAuB,EAAE,EACnC,SAAS,EAAE,MAAM,GAChB,uBAAuB,CASzB;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAUvD;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,uBAAuB,GAAG,MAAM,CAK7E;AAED,wBAAgB,oCAAoC,CAAC,QAAQ,EAAE,uBAAuB,EAAE,GAAG,IAAI,CAY9F"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
function isRecord(value) {
|
|
2
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
3
|
+
}
|
|
4
|
+
function getStringProperty(record, key) {
|
|
5
|
+
const value = record[key];
|
|
6
|
+
return typeof value === "string" ? value : null;
|
|
7
|
+
}
|
|
8
|
+
function getToolCallName(part) {
|
|
9
|
+
if (part.type === "tool_call") {
|
|
10
|
+
return getStringProperty(part, "name");
|
|
11
|
+
}
|
|
12
|
+
if (part.type === "tool-call") {
|
|
13
|
+
return getStringProperty(part, "toolName");
|
|
14
|
+
}
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
function hasCreateFileInput(value) {
|
|
18
|
+
if (!isRecord(value)) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
return getStringProperty(value, "path") !== null && getStringProperty(value, "content") !== null;
|
|
22
|
+
}
|
|
23
|
+
export function assertCompleted(run) {
|
|
24
|
+
if (run.status !== "completed") {
|
|
25
|
+
throw new Error(`Expected completed run, got ${run.status} (${run.terminalErrorCode ?? "no-code"}: ${run.terminalErrorMessage ?? "no message"})`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export function findAssistantMessage(messages, messageId) {
|
|
29
|
+
const message = messages.find((candidate) => candidate.id === messageId);
|
|
30
|
+
if (!message) {
|
|
31
|
+
throw new Error(`Assistant message ${messageId} was not persisted`);
|
|
32
|
+
}
|
|
33
|
+
if (message.role !== "assistant") {
|
|
34
|
+
throw new Error(`Expected assistant message ${messageId}, got role ${message.role}`);
|
|
35
|
+
}
|
|
36
|
+
return message;
|
|
37
|
+
}
|
|
38
|
+
export function stringifyUnknown(value) {
|
|
39
|
+
if (typeof value === "string") {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
try {
|
|
43
|
+
return JSON.stringify(value);
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
return String(value);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export function collectAssistantText(message) {
|
|
50
|
+
return message.parts
|
|
51
|
+
.filter((part) => part.type === "text" && typeof part.text === "string")
|
|
52
|
+
.map((part) => part.text)
|
|
53
|
+
.join("\n");
|
|
54
|
+
}
|
|
55
|
+
export function assertNoMalformedCreateFileToolCalls(messages) {
|
|
56
|
+
for (const message of messages) {
|
|
57
|
+
for (const part of message.parts) {
|
|
58
|
+
if (!isRecord(part) || getToolCallName(part) !== "create_file") {
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
if (!hasCreateFileInput(part.input)) {
|
|
62
|
+
throw new Error("Expected create_file tool_call input to include a path and content");
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import "../../../_dnt.polyfills.js";
|
|
7
7
|
export { assertCompleted, assertContains, assertToolCalled, printTestResults, testAgent, type TestCase, type TestResult, type TestSuite, } from "./agent-tester.js";
|
|
8
|
-
export { createDurableRunCanaryApiClient, createDurableRunCanaryRunner, type DurableRunCanaryApiClient, type DurableRunCanaryApiConfig, type DurableRunCanaryCase, type DurableRunCanaryCreateRootRunInput, type DurableRunCanaryMessage, type DurableRunCanaryPreparedCase, type DurableRunCanaryResult, type DurableRunCanaryRunnerConfig, durableRunCanaryRunnerInternals, type DurableRunCanaryRunSummary, type DurableRunCanarySendUserMessageInput, type DurableRunCanaryStartRunInput, getDurableRunCanaryMessageSchema, parseDurableRunCanaryRunSummary, } from "./durable-run-canaries/index.js";
|
|
9
|
-
export { buildFailureSuffix, buildLiveEvalCaseMetadata, type BuildLiveEvalCaseMetadataInput, buildLiveEvalCaseTagSummary, buildLiveEvalRequestBody, type BuildLiveEvalRequestBodyInput, buildLiveEvalRuntimeSummary, buildLiveEvalStatusSummary, buildProgressLine, buildRuntimePerformanceSummary, cancelLiveEvalInputRequest, containsOrderedSubsequence, containsSkillLoad, countStepStartedEvents, createFailedEvalResult, createLiveEvalApiClient, createLiveEvalCaseSupport, createLiveEvalConversation, createLiveEvalProjectUploadFixture, createLiveEvalRelease, createPassedEvalResult, createPlainTextPdf, createSkippedEvalResult, DEFAULT_LIVE_EVAL_AREA_TAG_RULES, DEFAULT_LIVE_EVAL_OPTIONAL_JUDGE_CASE_PREFIXES, deleteLiveEvalConversation, deleteLiveEvalProjectFile, getLiveEvalProjectFile, hasEveryLiveEvalTag, hasFinished, listOpenLiveEvalInputRequests, type LiveEvalApiClient, type LiveEvalApiContext, type LiveEvalCase, type LiveEvalCaseMetadata, type LiveEvalCaseMetadataOptions, type LiveEvalCaseSelectionInput, type LiveEvalCaseSurface, type LiveEvalCaseTagRule, type LiveEvalContext, type LiveEvalConversationInput, type LiveEvalCreateConversationInput, type LiveEvalCreateReleaseInput, type LiveEvalInputRequestInput, type LiveEvalInputRequestRecord, type LiveEvalInputResponseValues, type LiveEvalProjectFile, type LiveEvalProjectFileInput, type LiveEvalProjectFileReaderInput, type LiveEvalProjectUploadFixtureInput, type LiveEvalRequestBody, type LiveEvalRequestTimeoutInput, type LiveEvalResultForPerformance, type LiveEvalResultForReport, type LiveEvalResultRecord, type LiveEvalRunnerConfig, liveEvalRunnerInternals, type LiveEvalRuntime, type LiveEvalSubmitInputResponseInput, type LiveEvalWaitForOpenInputRequestInput, type PreparedLiveEvalInput, resolveLiveEvalRequestedCaseIds, type RuntimePerformanceSummary, selectLiveEvalCases, submitLiveEvalInputResponse, waitForOpenLiveEvalInputRequest, withLiveEvalMetadata, } from "./live-evals/index.js";
|
|
8
|
+
export { assertCompleted as assertDurableRunCanaryCompleted, assertNoMalformedCreateFileToolCalls, collectAssistantText, createDurableRunCanaryApiClient, createDurableRunCanaryRunner, DEFAULT_DURABLE_RUN_CANARY_TIMEOUT_MS, type DurableRunCanaryApiClient, type DurableRunCanaryApiConfig, type DurableRunCanaryCase, type DurableRunCanaryCreateRootRunInput, type DurableRunCanaryEnvironment, type DurableRunCanaryMessage, type DurableRunCanaryPreparedCase, type DurableRunCanaryResult, type DurableRunCanaryRunnerConfig, durableRunCanaryRunnerInternals, type DurableRunCanaryRunSummary, type DurableRunCanarySendUserMessageInput, type DurableRunCanaryStartRunInput, findAssistantMessage, getDurableRunCanaryMessageSchema, parseDurableRunCanaryRunSummary, resolveDurableRunCanaryEnvironment, stringifyUnknown, } from "./durable-run-canaries/index.js";
|
|
9
|
+
export { buildFailureSuffix, buildLiveEvalCaseMetadata, type BuildLiveEvalCaseMetadataInput, buildLiveEvalCaseTagSummary, buildLiveEvalRequestBody, type BuildLiveEvalRequestBodyInput, buildLiveEvalRuntimeSummary, buildLiveEvalStatusSummary, buildProgressLine, buildRuntimePerformanceSummary, cancelLiveEvalInputRequest, containsOrderedSubsequence, containsSkillLoad, countStepStartedEvents, createFailedEvalResult, createLiveEvalApiClient, createLiveEvalCaseSupport, createLiveEvalConversation, createLiveEvalProjectUploadFixture, createLiveEvalRelease, createPassedEvalResult, createPlainTextPdf, createSkippedEvalResult, DEFAULT_LIVE_EVAL_AREA_TAG_RULES, DEFAULT_LIVE_EVAL_ENDPOINT, DEFAULT_LIVE_EVAL_OPTIONAL_JUDGE_CASE_PREFIXES, deleteLiveEvalConversation, deleteLiveEvalProjectFile, evaluateRuntimeConfidenceEnv, getLiveEvalProjectFile, hasEveryLiveEvalTag, hasFinished, listOpenLiveEvalInputRequests, type LiveEvalApiClient, type LiveEvalApiContext, type LiveEvalCase, type LiveEvalCaseMetadata, type LiveEvalCaseMetadataOptions, type LiveEvalCaseSelectionInput, type LiveEvalCaseSurface, type LiveEvalCaseTagRule, type LiveEvalContext, type LiveEvalConversationInput, type LiveEvalCreateConversationInput, type LiveEvalCreateReleaseInput, type LiveEvalEnvironment, type LiveEvalInputRequestInput, type LiveEvalInputRequestRecord, type LiveEvalInputResponseValues, type LiveEvalProjectFile, type LiveEvalProjectFileInput, type LiveEvalProjectFileReaderInput, type LiveEvalProjectUploadFixtureInput, type LiveEvalRequestBody, type LiveEvalRequestTimeoutInput, type LiveEvalResultForPerformance, type LiveEvalResultForReport, type LiveEvalResultRecord, type LiveEvalRunnerConfig, liveEvalRunnerInternals, type LiveEvalRuntime, type LiveEvalSubmitInputResponseInput, type LiveEvalWaitForOpenInputRequestInput, type PreparedLiveEvalInput, printRuntimeConfidencePreflight, resolveLiveEvalEnvironment, resolveLiveEvalRequestedCaseIds, type RuntimeConfidencePreflightResult, type RuntimePerformanceSummary, selectLiveEvalCases, submitLiveEvalInputResponse, waitForOpenLiveEvalInputRequest, withLiveEvalMetadata, } from "./live-evals/index.js";
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|