@nexart/ai-execution 0.10.0 → 0.12.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.
@@ -87,6 +87,42 @@ interface CerMeta {
87
87
  tags?: string[];
88
88
  [key: string]: unknown;
89
89
  }
90
+ /**
91
+ * A single upstream signal captured for optional inclusion in a CER.
92
+ *
93
+ * Structurally identical to NexArtSignal from @nexart/signals — consumers
94
+ * using that package can pass NexArtSignal[] directly.
95
+ *
96
+ * NexArt does not interpret the meaning of signals or their payload.
97
+ *
98
+ * v0.10.0 — included in certificateHash when present via bundle.context.
99
+ */
100
+ interface CerContextSignal {
101
+ /** Signal category — free-form. */
102
+ type: string;
103
+ /** Upstream system or protocol — free-form. */
104
+ source: string;
105
+ /** Position in sequence. */
106
+ step: number;
107
+ /** ISO 8601 timestamp. */
108
+ timestamp: string;
109
+ /** Actor that produced this signal — free-form. */
110
+ actor: string;
111
+ /** Outcome or state — free-form (e.g. "ok", "error", "pending"). */
112
+ status: string;
113
+ /** Opaque upstream payload. NexArt does not interpret this field. */
114
+ payload: Record<string, unknown>;
115
+ }
116
+ /**
117
+ * Optional top-level context block for a CER bundle.
118
+ *
119
+ * Included in certificateHash when present.
120
+ * Omit entirely (or leave signals empty) to get identical hashing to pre-v0.10.0 bundles.
121
+ */
122
+ interface CerContext {
123
+ /** Upstream signals captured as optional evidence. */
124
+ signals: CerContextSignal[];
125
+ }
90
126
  interface CerAiExecutionBundle {
91
127
  bundleType: 'cer.ai.execution.v1';
92
128
  certificateHash: string;
@@ -100,6 +136,12 @@ interface CerAiExecutionBundle {
100
136
  * Satisfies AIEF-02 SHOULD requirement for self-describing artifacts.
101
137
  */
102
138
  declaration?: BundleDeclaration;
139
+ /**
140
+ * v0.10.0 — Optional upstream signal evidence.
141
+ * INCLUDED in certificateHash computation when present (signals are evidence, not metadata).
142
+ * Omit to get identical hashing to pre-v0.10.0 bundles.
143
+ */
144
+ context?: CerContext;
103
145
  }
104
146
  declare const CerVerifyCode: {
105
147
  readonly OK: "OK";
@@ -229,6 +271,12 @@ interface CertifyDecisionParams {
229
271
  workflowId?: string | null;
230
272
  conversationId?: string | null;
231
273
  prevStepHash?: string | null;
274
+ /**
275
+ * v0.10.0 — Optional upstream signals to bind as evidence in the CER.
276
+ * When provided, included in certificateHash via bundle.context.signals.
277
+ * Accepts NexArtSignal[] from @nexart/signals directly (structurally compatible).
278
+ */
279
+ signals?: CerContextSignal[];
232
280
  }
233
281
  interface RunBuilderOptions {
234
282
  runId?: string;
@@ -335,4 +383,4 @@ interface WrappedExecutionResult {
335
383
  bundle: CerAiExecutionBundle;
336
384
  }
337
385
 
338
- export { type AiExecutionSnapshotV1 as A, type BundleDeclaration as B, type CreateSnapshotParams as C, type NodeKeysDocument as N, type ProviderCallParams as P, type RunBuilderOptions as R, type StepParams as S, type ToolEvent as T, 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, type SanitizeStorageOptions as g, type AttestationReceipt as h, type NodeReceiptVerifyResult as i, type SignedAttestationReceipt as j, CerVerifyCode as k, type AiefVerifyResult as l, type RunSummaryVerifyResult as m, type AiefProfile as n, type AiExecutionParameters as o, type AttestationReceiptResult as p, type ClientDefaults as q, type NexArtClient as r, type ProviderCallResult as s, type ProviderConfig as t, type RedactionEnvelope as u, type WrappedExecutionResult as v };
386
+ export { type AiExecutionSnapshotV1 as A, type BundleDeclaration as B, type CreateSnapshotParams as C, type NodeKeysDocument as N, type ProviderCallParams as P, type RunBuilderOptions as R, type StepParams as S, type ToolEvent as T, type VerificationResult as V, type WrappedExecutionParams as W, type CerMeta as a, type CerContextSignal as b, type CerAiExecutionBundle as c, type CertifyDecisionParams as d, type RunSummary as e, type AttestOptions as f, type AttestationResult as g, type SanitizeStorageOptions as h, type AttestationReceipt as i, type NodeReceiptVerifyResult as j, type SignedAttestationReceipt as k, CerVerifyCode as l, type AiefVerifyResult as m, type RunSummaryVerifyResult as n, type AiefProfile as o, type AiExecutionParameters as p, type AttestationReceiptResult as q, type CerContext as r, type ClientDefaults as s, type NexArtClient as t, type ProviderCallResult as u, type ProviderConfig as v, type RedactionEnvelope as w, type WrappedExecutionResult as x };
@@ -87,6 +87,42 @@ interface CerMeta {
87
87
  tags?: string[];
88
88
  [key: string]: unknown;
89
89
  }
90
+ /**
91
+ * A single upstream signal captured for optional inclusion in a CER.
92
+ *
93
+ * Structurally identical to NexArtSignal from @nexart/signals — consumers
94
+ * using that package can pass NexArtSignal[] directly.
95
+ *
96
+ * NexArt does not interpret the meaning of signals or their payload.
97
+ *
98
+ * v0.10.0 — included in certificateHash when present via bundle.context.
99
+ */
100
+ interface CerContextSignal {
101
+ /** Signal category — free-form. */
102
+ type: string;
103
+ /** Upstream system or protocol — free-form. */
104
+ source: string;
105
+ /** Position in sequence. */
106
+ step: number;
107
+ /** ISO 8601 timestamp. */
108
+ timestamp: string;
109
+ /** Actor that produced this signal — free-form. */
110
+ actor: string;
111
+ /** Outcome or state — free-form (e.g. "ok", "error", "pending"). */
112
+ status: string;
113
+ /** Opaque upstream payload. NexArt does not interpret this field. */
114
+ payload: Record<string, unknown>;
115
+ }
116
+ /**
117
+ * Optional top-level context block for a CER bundle.
118
+ *
119
+ * Included in certificateHash when present.
120
+ * Omit entirely (or leave signals empty) to get identical hashing to pre-v0.10.0 bundles.
121
+ */
122
+ interface CerContext {
123
+ /** Upstream signals captured as optional evidence. */
124
+ signals: CerContextSignal[];
125
+ }
90
126
  interface CerAiExecutionBundle {
91
127
  bundleType: 'cer.ai.execution.v1';
92
128
  certificateHash: string;
@@ -100,6 +136,12 @@ interface CerAiExecutionBundle {
100
136
  * Satisfies AIEF-02 SHOULD requirement for self-describing artifacts.
101
137
  */
102
138
  declaration?: BundleDeclaration;
139
+ /**
140
+ * v0.10.0 — Optional upstream signal evidence.
141
+ * INCLUDED in certificateHash computation when present (signals are evidence, not metadata).
142
+ * Omit to get identical hashing to pre-v0.10.0 bundles.
143
+ */
144
+ context?: CerContext;
103
145
  }
104
146
  declare const CerVerifyCode: {
105
147
  readonly OK: "OK";
@@ -229,6 +271,12 @@ interface CertifyDecisionParams {
229
271
  workflowId?: string | null;
230
272
  conversationId?: string | null;
231
273
  prevStepHash?: string | null;
274
+ /**
275
+ * v0.10.0 — Optional upstream signals to bind as evidence in the CER.
276
+ * When provided, included in certificateHash via bundle.context.signals.
277
+ * Accepts NexArtSignal[] from @nexart/signals directly (structurally compatible).
278
+ */
279
+ signals?: CerContextSignal[];
232
280
  }
233
281
  interface RunBuilderOptions {
234
282
  runId?: string;
@@ -335,4 +383,4 @@ interface WrappedExecutionResult {
335
383
  bundle: CerAiExecutionBundle;
336
384
  }
337
385
 
338
- export { type AiExecutionSnapshotV1 as A, type BundleDeclaration as B, type CreateSnapshotParams as C, type NodeKeysDocument as N, type ProviderCallParams as P, type RunBuilderOptions as R, type StepParams as S, type ToolEvent as T, 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, type SanitizeStorageOptions as g, type AttestationReceipt as h, type NodeReceiptVerifyResult as i, type SignedAttestationReceipt as j, CerVerifyCode as k, type AiefVerifyResult as l, type RunSummaryVerifyResult as m, type AiefProfile as n, type AiExecutionParameters as o, type AttestationReceiptResult as p, type ClientDefaults as q, type NexArtClient as r, type ProviderCallResult as s, type ProviderConfig as t, type RedactionEnvelope as u, type WrappedExecutionResult as v };
386
+ export { type AiExecutionSnapshotV1 as A, type BundleDeclaration as B, type CreateSnapshotParams as C, type NodeKeysDocument as N, type ProviderCallParams as P, type RunBuilderOptions as R, type StepParams as S, type ToolEvent as T, type VerificationResult as V, type WrappedExecutionParams as W, type CerMeta as a, type CerContextSignal as b, type CerAiExecutionBundle as c, type CertifyDecisionParams as d, type RunSummary as e, type AttestOptions as f, type AttestationResult as g, type SanitizeStorageOptions as h, type AttestationReceipt as i, type NodeReceiptVerifyResult as j, type SignedAttestationReceipt as k, CerVerifyCode as l, type AiefVerifyResult as m, type RunSummaryVerifyResult as n, type AiefProfile as o, type AiExecutionParameters as p, type AttestationReceiptResult as q, type CerContext as r, type ClientDefaults as s, type NexArtClient as t, type ProviderCallResult as u, type ProviderConfig as v, type RedactionEnvelope as w, type WrappedExecutionResult as x };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexart/ai-execution",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
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",
@@ -37,7 +37,7 @@
37
37
  "scripts": {
38
38
  "build": "node \"$(node -p 'require.resolve(\"tsup/dist/cli-default\")')\"",
39
39
  "build:tsc": "node \"$(node -p 'require.resolve(\"typescript/bin/tsc\")')\"",
40
- "test": "node \"$(node -p 'require.resolve(\"typescript/bin/tsc\")')\" && node --test --test-concurrency 1 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 dist-tsc/__tests__/v042.test.js dist-tsc/__tests__/v050.test.js dist-tsc/__tests__/v060.test.js dist-tsc/__tests__/v070.test.js dist-tsc/__tests__/v071.test.js dist-tsc/__tests__/cerProtocol.test.js dist-tsc/__tests__/langchain.test.js",
40
+ "test": "node \"$(node -p 'require.resolve(\"typescript/bin/tsc\")')\" && node --test --test-concurrency 1 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 dist-tsc/__tests__/v042.test.js dist-tsc/__tests__/v050.test.js dist-tsc/__tests__/v060.test.js dist-tsc/__tests__/v070.test.js dist-tsc/__tests__/v071.test.js dist-tsc/__tests__/cerProtocol.test.js dist-tsc/__tests__/langchain.test.js dist-tsc/__tests__/cerSignals.test.js dist-tsc/__tests__/cerPackage.test.js",
41
41
  "release": "npm run build && npm run test && npm version patch && npm publish --access public",
42
42
  "prepublishOnly": "npm run build && npm run test"
43
43
  },