ai-evaluate 2.1.8 → 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.
- package/README.md +16 -0
- package/dist/evaluate.d.ts.map +1 -1
- package/dist/evaluate.js +10 -10
- package/dist/evaluate.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/miniflare-pool.d.ts.map +1 -1
- package/dist/miniflare-pool.js +1 -1
- package/dist/miniflare-pool.js.map +1 -1
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js.map +1 -1
- package/dist/repl.js +6 -6
- package/dist/repl.js.map +1 -1
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +5 -2
- package/dist/shared.js.map +1 -1
- package/dist/static/index.d.ts +111 -0
- package/dist/static/index.d.ts.map +1 -0
- package/dist/static/index.js +347 -0
- package/dist/static/index.js.map +1 -0
- package/dist/type-guards.d.ts.map +1 -1
- package/dist/type-guards.js +64 -62
- package/dist/type-guards.js.map +1 -1
- package/dist/worker-template/core.d.ts.map +1 -1
- package/dist/worker-template/core.js +1 -1
- package/dist/worker-template/core.js.map +1 -1
- package/package.json +19 -6
- package/public/capnweb.mjs +220 -0
- package/public/index.mjs +426 -0
- package/public/scaffold.mjs +198 -0
- package/.turbo/turbo-build.log +0 -4
- package/.turbo/turbo-test.log +0 -54
- package/.turbo/turbo-typecheck.log +0 -4
- package/CHANGELOG.md +0 -48
- package/dist/worker-template.d.ts +0 -41
- package/dist/worker-template.d.ts.map +0 -1
- package/dist/worker-template.js +0 -3748
- package/dist/worker-template.js.map +0 -1
- package/example/package.json +0 -20
- package/example/src/index.ts +0 -221
- package/example/wrangler.jsonc +0 -25
- package/src/capnweb-bundle.ts +0 -2596
- package/src/evaluate.ts +0 -329
- package/src/index.ts +0 -23
- package/src/miniflare-pool.ts +0 -395
- package/src/node.ts +0 -245
- package/src/repl.ts +0 -228
- package/src/shared.ts +0 -186
- package/src/type-guards.ts +0 -323
- package/src/types.ts +0 -196
- package/src/validation.ts +0 -120
- package/src/worker-template/code-transforms.ts +0 -32
- package/src/worker-template/core.ts +0 -557
- package/src/worker-template/helpers.ts +0 -90
- package/src/worker-template/index.ts +0 -23
- package/src/worker-template/sdk-generator.ts +0 -2515
- package/src/worker-template/test-generator.ts +0 -358
- package/test/evaluate-extended.test.js +0 -429
- package/test/evaluate-extended.test.ts +0 -469
- package/test/evaluate.test.js +0 -235
- package/test/evaluate.test.ts +0 -253
- package/test/index.test.js +0 -77
- package/test/index.test.ts +0 -95
- package/test/miniflare-pool.test.ts +0 -246
- package/test/node.test.ts +0 -467
- package/test/security.test.ts +0 -1009
- package/test/shared.test.ts +0 -105
- package/test/type-guards.test.ts +0 -303
- package/test/validation.test.ts +0 -240
- package/test/worker-template.test.js +0 -365
- package/test/worker-template.test.ts +0 -432
- package/tsconfig.json +0 -22
- package/vitest.config.js +0 -21
- package/vitest.config.ts +0 -28
package/CHANGELOG.md
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# ai-evaluate
|
|
2
|
-
|
|
3
|
-
## 2.1.3
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Documentation and testing improvements
|
|
8
|
-
- Add deterministic AI testing suite with self-validating patterns
|
|
9
|
-
- Apply StoryBrand narrative to all package READMEs
|
|
10
|
-
- Update TESTING.md with four principles of deterministic AI testing
|
|
11
|
-
- Fix duplicate examples package name conflict
|
|
12
|
-
|
|
13
|
-
- Updated dependencies
|
|
14
|
-
- ai-functions@2.1.3
|
|
15
|
-
- ai-tests@2.1.3
|
|
16
|
-
|
|
17
|
-
## 2.1.1
|
|
18
|
-
|
|
19
|
-
### Patch Changes
|
|
20
|
-
|
|
21
|
-
- Updated dependencies [6beb531]
|
|
22
|
-
- ai-functions@2.1.1
|
|
23
|
-
- ai-tests@2.1.1
|
|
24
|
-
|
|
25
|
-
## 2.0.3
|
|
26
|
-
|
|
27
|
-
### Patch Changes
|
|
28
|
-
|
|
29
|
-
- Updated dependencies
|
|
30
|
-
- rpc.do@0.2.0
|
|
31
|
-
- ai-functions@2.0.3
|
|
32
|
-
- ai-tests@2.0.3
|
|
33
|
-
|
|
34
|
-
## 2.0.2
|
|
35
|
-
|
|
36
|
-
### Patch Changes
|
|
37
|
-
|
|
38
|
-
- Updated dependencies
|
|
39
|
-
- ai-functions@2.0.2
|
|
40
|
-
- ai-tests@2.0.2
|
|
41
|
-
|
|
42
|
-
## 2.0.1
|
|
43
|
-
|
|
44
|
-
### Patch Changes
|
|
45
|
-
|
|
46
|
-
- Updated dependencies
|
|
47
|
-
- ai-functions@2.0.1
|
|
48
|
-
- ai-tests@2.0.1
|
|
@@ -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"}
|