@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.
@@ -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 { AiExecutionSnapshotV1 as A, CreateSnapshotParams as C, ProviderConfig as P, RunBuilderOptions as R, StepParams as S, VerificationResult as V, WrappedExecutionParams as W, CerMeta as a, CerAiExecutionBundle as b, CertifyDecisionParams as c, RunSummary as d, AttestOptions as e, AttestationResult as f, AiExecutionParameters as g, WrappedExecutionResult as h };
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.0",
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
  },