ai-evaluate 2.2.0 → 2.3.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.
@@ -1,7 +1,7 @@
1
1
  /**
2
- * ai-evaluate v2.1.8
2
+ * ai-evaluate v2.2.0
3
3
  * Static worker template for evaluate.workers.do
4
- * Generated: 2026-01-26T01:42:47.000Z
4
+ * Generated: 2026-05-26T11:50:49.389Z
5
5
  *
6
6
  * @license MIT
7
7
  */
package/public/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * ai-evaluate v2.1.8
2
+ * ai-evaluate v2.2.0
3
3
  * Static worker template for evaluate.workers.do
4
- * Generated: 2026-01-26T01:42:47.000Z
4
+ * Generated: 2026-05-26T11:50:49.389Z
5
5
  *
6
6
  * @license MIT
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * ai-evaluate v2.1.8
2
+ * ai-evaluate v2.2.0
3
3
  * Static worker template for evaluate.workers.do
4
- * Generated: 2026-01-26T01:42:47.000Z
4
+ * Generated: 2026-05-26T11:50:49.389Z
5
5
  *
6
6
  * @license MIT
7
7
  */
@@ -1,41 +0,0 @@
1
- /**
2
- * Worker template for sandbox execution
3
- *
4
- * This code is stringified and sent to the worker loader.
5
- * It uses the TEST service binding (ai-tests) for assertions and test running.
6
- *
7
- * The user's code (module, tests, script) is embedded directly into
8
- * the worker source - no eval() or new Function() needed. The security
9
- * comes from running in an isolated V8 context via worker_loaders.
10
- *
11
- * Routes:
12
- * - POST /execute - Run tests and scripts, return results
13
- * - POST /rpc or WebSocket upgrade - capnweb RPC to module exports
14
- * - GET / - Return info about available exports
15
- */
16
- import type { SDKConfig, FetchConfig } from './types.js';
17
- /**
18
- * Generate worker code for production (uses RPC to ai-tests)
19
- */
20
- export declare function generateWorkerCode(options: {
21
- module?: string | undefined;
22
- tests?: string | undefined;
23
- script?: string | undefined;
24
- sdk?: SDKConfig | boolean | undefined;
25
- imports?: string[] | undefined;
26
- }): string;
27
- /**
28
- * Generate worker code for development (embedded test framework)
29
- *
30
- * This version bundles the test framework directly into the worker,
31
- * avoiding the need for RPC service bindings in local development.
32
- */
33
- export declare function generateDevWorkerCode(options: {
34
- module?: string | undefined;
35
- tests?: string | undefined;
36
- script?: string | undefined;
37
- sdk?: SDKConfig | boolean | undefined;
38
- imports?: string[] | undefined;
39
- fetch?: null | FetchConfig | undefined;
40
- }): string;
41
- //# sourceMappingURL=worker-template.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"worker-template.d.ts","sourceRoot":"","sources":["../src/worker-template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AA23FxD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE;IAC1C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,GAAG,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;IACrC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CAC/B,GAAG,MAAM,CAoQT;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE;IAC7C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,GAAG,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;IACrC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IAC9B,KAAK,CAAC,EAAE,IAAI,GAAG,WAAW,GAAG,SAAS,CAAA;CACvC,GAAG,MAAM,CAikBT"}