@nexart/ai-execution 0.4.0 → 0.4.1
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 +28 -7
- package/dist/index.cjs +130 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +129 -41
- package/dist/index.mjs.map +1 -1
- package/dist/providers/anthropic.cjs +1 -1
- package/dist/providers/anthropic.cjs.map +1 -1
- package/dist/providers/anthropic.d.cts +1 -1
- package/dist/providers/anthropic.d.ts +1 -1
- package/dist/providers/anthropic.mjs +1 -1
- package/dist/providers/anthropic.mjs.map +1 -1
- package/dist/providers/openai.cjs +1 -1
- package/dist/providers/openai.cjs.map +1 -1
- package/dist/providers/openai.d.cts +1 -1
- package/dist/providers/openai.d.ts +1 -1
- package/dist/providers/openai.mjs +1 -1
- package/dist/providers/openai.mjs.map +1 -1
- package/dist/providers/wrap.cjs +1 -1
- package/dist/providers/wrap.cjs.map +1 -1
- package/dist/providers/wrap.d.cts +1 -1
- package/dist/providers/wrap.d.ts +1 -1
- package/dist/providers/wrap.mjs +1 -1
- package/dist/providers/wrap.mjs.map +1 -1
- package/dist/{types-DF29BsH5.d.cts → types-342Snbrb.d.cts} +15 -1
- package/dist/{types-DF29BsH5.d.ts → types-342Snbrb.d.ts} +15 -1
- package/package.json +2 -2
|
@@ -41,9 +41,23 @@ interface CerAiExecutionBundle {
|
|
|
41
41
|
snapshot: AiExecutionSnapshotV1;
|
|
42
42
|
meta?: CerMeta;
|
|
43
43
|
}
|
|
44
|
+
declare const CerVerifyCode: {
|
|
45
|
+
readonly OK: "OK";
|
|
46
|
+
readonly CERTIFICATE_HASH_MISMATCH: "CERTIFICATE_HASH_MISMATCH";
|
|
47
|
+
readonly SNAPSHOT_HASH_MISMATCH: "SNAPSHOT_HASH_MISMATCH";
|
|
48
|
+
readonly INPUT_HASH_MISMATCH: "INPUT_HASH_MISMATCH";
|
|
49
|
+
readonly OUTPUT_HASH_MISMATCH: "OUTPUT_HASH_MISMATCH";
|
|
50
|
+
readonly INVALID_SHA256_FORMAT: "INVALID_SHA256_FORMAT";
|
|
51
|
+
readonly CANONICALIZATION_ERROR: "CANONICALIZATION_ERROR";
|
|
52
|
+
readonly SCHEMA_ERROR: "SCHEMA_ERROR";
|
|
53
|
+
readonly UNKNOWN_ERROR: "UNKNOWN_ERROR";
|
|
54
|
+
};
|
|
55
|
+
type CerVerifyCode = typeof CerVerifyCode[keyof typeof CerVerifyCode];
|
|
44
56
|
interface VerificationResult {
|
|
45
57
|
ok: boolean;
|
|
46
58
|
errors: string[];
|
|
59
|
+
code: CerVerifyCode;
|
|
60
|
+
details?: string[];
|
|
47
61
|
}
|
|
48
62
|
interface CreateSnapshotParams {
|
|
49
63
|
executionId: string;
|
|
@@ -152,4 +166,4 @@ interface WrappedExecutionResult {
|
|
|
152
166
|
bundle: CerAiExecutionBundle;
|
|
153
167
|
}
|
|
154
168
|
|
|
155
|
-
export type
|
|
169
|
+
export { type AiExecutionSnapshotV1 as A, type CreateSnapshotParams as C, type ProviderConfig as P, type RunBuilderOptions as R, type StepParams as S, type VerificationResult as V, type WrappedExecutionParams as W, type CerMeta as a, type CerAiExecutionBundle as b, type CertifyDecisionParams as c, type RunSummary as d, type AttestOptions as e, type AttestationResult as f, CerVerifyCode as g, type AiExecutionParameters as h, type WrappedExecutionResult as i };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexart/ai-execution",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "AI Execution Integrity — tamper-evident records and Certified Execution Records (CER) for AI operations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsup",
|
|
34
34
|
"build:tsc": "tsc",
|
|
35
|
-
"test": "tsc && node --test dist-tsc/__tests__/vectors.test.js dist-tsc/__tests__/fixtures.test.js dist-tsc/__tests__/v020.test.js dist-tsc/__tests__/v030.test.js dist-tsc/__tests__/v040.test.js",
|
|
35
|
+
"test": "tsc && node --test dist-tsc/__tests__/vectors.test.js dist-tsc/__tests__/fixtures.test.js dist-tsc/__tests__/v020.test.js dist-tsc/__tests__/v030.test.js dist-tsc/__tests__/v040.test.js dist-tsc/__tests__/v041.test.js",
|
|
36
36
|
"release": "npm run build && npm run test && npm version patch && npm publish --access public",
|
|
37
37
|
"prepublishOnly": "npm run build && npm run test"
|
|
38
38
|
},
|