@nexart/ai-execution 0.8.0 → 0.9.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,4 +1,4 @@
1
- import { A as AiExecutionSnapshotV1, b as CerAiExecutionBundle } from '../types-CcqCDPrD.cjs';
1
+ import { A as AiExecutionSnapshotV1, b as CerAiExecutionBundle } from '../types-C5t12OK8.cjs';
2
2
 
3
3
  interface AnthropicChatParams {
4
4
  prompt: string;
@@ -1,4 +1,4 @@
1
- import { A as AiExecutionSnapshotV1, b as CerAiExecutionBundle } from '../types-CcqCDPrD.js';
1
+ import { A as AiExecutionSnapshotV1, b as CerAiExecutionBundle } from '../types-C5t12OK8.js';
2
2
 
3
3
  interface AnthropicChatParams {
4
4
  prompt: string;
@@ -1,4 +1,4 @@
1
- import { A as AiExecutionSnapshotV1, b as CerAiExecutionBundle } from '../types-CcqCDPrD.cjs';
1
+ import { A as AiExecutionSnapshotV1, b as CerAiExecutionBundle } from '../types-C5t12OK8.cjs';
2
2
 
3
3
  interface OpenAIChatParams {
4
4
  prompt: string;
@@ -1,4 +1,4 @@
1
- import { A as AiExecutionSnapshotV1, b as CerAiExecutionBundle } from '../types-CcqCDPrD.js';
1
+ import { A as AiExecutionSnapshotV1, b as CerAiExecutionBundle } from '../types-C5t12OK8.js';
2
2
 
3
3
  interface OpenAIChatParams {
4
4
  prompt: string;
@@ -1,4 +1,4 @@
1
- import { t as ProviderConfig, W as WrappedExecutionParams, v as WrappedExecutionResult } from '../types-CcqCDPrD.cjs';
1
+ import { t as ProviderConfig, W as WrappedExecutionParams, v as WrappedExecutionResult } from '../types-C5t12OK8.cjs';
2
2
 
3
3
  declare function wrapProvider<TInput = unknown, TOutput = unknown>(config: ProviderConfig<TInput, TOutput>): {
4
4
  execute(params: WrappedExecutionParams & {
@@ -1,4 +1,4 @@
1
- import { t as ProviderConfig, W as WrappedExecutionParams, v as WrappedExecutionResult } from '../types-CcqCDPrD.js';
1
+ import { t as ProviderConfig, W as WrappedExecutionParams, v as WrappedExecutionResult } from '../types-C5t12OK8.js';
2
2
 
3
3
  declare function wrapProvider<TInput = unknown, TOutput = unknown>(config: ProviderConfig<TInput, TOutput>): {
4
4
  execute(params: WrappedExecutionParams & {
@@ -211,6 +211,8 @@ interface AttestOptions {
211
211
  interface CertifyDecisionParams {
212
212
  executionId?: string;
213
213
  timestamp?: string;
214
+ /** CER bundle creation timestamp. Defaults to current time if omitted. */
215
+ createdAt?: string;
214
216
  provider: string;
215
217
  model: string;
216
218
  modelVersion?: string | null;
@@ -211,6 +211,8 @@ interface AttestOptions {
211
211
  interface CertifyDecisionParams {
212
212
  executionId?: string;
213
213
  timestamp?: string;
214
+ /** CER bundle creation timestamp. Defaults to current time if omitted. */
215
+ createdAt?: string;
214
216
  provider: string;
215
217
  model: string;
216
218
  modelVersion?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexart/ai-execution",
3
- "version": "0.8.0",
3
+ "version": "0.9.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",
@@ -32,7 +32,7 @@
32
32
  "scripts": {
33
33
  "build": "node \"$(node -p 'require.resolve(\"tsup/dist/cli-default\")')\"",
34
34
  "build:tsc": "node \"$(node -p 'require.resolve(\"typescript/bin/tsc\")')\"",
35
- "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",
35
+ "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",
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
  },