@nexart/ai-execution 0.1.0 → 0.2.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.
Files changed (49) hide show
  1. package/README.md +270 -112
  2. package/dist/__tests__/v020.test.d.ts +2 -0
  3. package/dist/__tests__/v020.test.d.ts.map +1 -0
  4. package/dist/__tests__/v020.test.js +408 -0
  5. package/dist/__tests__/v020.test.js.map +1 -0
  6. package/dist/archive.d.ts +4 -0
  7. package/dist/archive.d.ts.map +1 -0
  8. package/dist/archive.js +28 -0
  9. package/dist/archive.js.map +1 -0
  10. package/dist/attest.d.ts +3 -0
  11. package/dist/attest.d.ts.map +1 -0
  12. package/dist/attest.js +42 -0
  13. package/dist/attest.js.map +1 -0
  14. package/dist/certify.d.ts +3 -0
  15. package/dist/certify.d.ts.map +1 -0
  16. package/dist/certify.js +27 -0
  17. package/dist/certify.js.map +1 -0
  18. package/dist/errors.d.ts +10 -0
  19. package/dist/errors.d.ts.map +1 -0
  20. package/dist/errors.js +19 -0
  21. package/dist/errors.js.map +1 -0
  22. package/dist/index.d.ts +7 -1
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +6 -0
  25. package/dist/index.js.map +1 -1
  26. package/dist/providers/anthropic.d.ts +22 -0
  27. package/dist/providers/anthropic.d.ts.map +1 -0
  28. package/dist/providers/anthropic.js +61 -0
  29. package/dist/providers/anthropic.js.map +1 -0
  30. package/dist/providers/wrap.d.ts +7 -0
  31. package/dist/providers/wrap.d.ts.map +1 -0
  32. package/dist/providers/wrap.js +28 -0
  33. package/dist/providers/wrap.js.map +1 -0
  34. package/dist/run.d.ts +14 -0
  35. package/dist/run.d.ts.map +1 -0
  36. package/dist/run.js +62 -0
  37. package/dist/run.js.map +1 -0
  38. package/dist/snapshot.d.ts.map +1 -1
  39. package/dist/snapshot.js +15 -2
  40. package/dist/snapshot.js.map +1 -1
  41. package/dist/types.d.ts +99 -0
  42. package/dist/types.d.ts.map +1 -1
  43. package/fixtures/golden/golden-001.json +29 -0
  44. package/fixtures/golden/golden-002.json +38 -0
  45. package/fixtures/golden/golden-003.json +36 -0
  46. package/fixtures/golden/golden-004.json +29 -0
  47. package/fixtures/golden/golden-005.json +29 -0
  48. package/fixtures/vectors/vector-002.chain.json +101 -0
  49. package/package.json +13 -3
@@ -0,0 +1,101 @@
1
+ [
2
+ {
3
+ "snapshot": {
4
+ "type": "ai.execution.v1",
5
+ "protocolVersion": "1.2.0",
6
+ "executionSurface": "ai",
7
+ "executionId": "vec-002-step-0",
8
+ "timestamp": "2026-03-01T00:00:00.000Z",
9
+ "provider": "openai",
10
+ "model": "gpt-4o",
11
+ "modelVersion": null,
12
+ "prompt": "Plan the analysis.",
13
+ "input": "Analyze sales data for Q1",
14
+ "inputHash": "sha256:11503825ac14fd8f8b118eafca0f657bbc4b3154243dcadb822624872629aa34",
15
+ "parameters": {
16
+ "temperature": 0.3,
17
+ "maxTokens": 512,
18
+ "topP": null,
19
+ "seed": null
20
+ },
21
+ "output": "I will: 1) load data, 2) compute totals, 3) summarize.",
22
+ "outputHash": "sha256:87eede0dfd7afd3d7bdb828633f8d99d67bd6809e3d1449ba241101d10753fc5",
23
+ "sdkVersion": "0.2.0",
24
+ "appId": null,
25
+ "runId": "run-vec-002",
26
+ "stepId": "step-0",
27
+ "stepIndex": 0,
28
+ "workflowId": "wf-analysis",
29
+ "conversationId": null,
30
+ "prevStepHash": null
31
+ },
32
+ "expectedCertificateHash": "sha256:a159ff1a6591384bd102d289040f36317ae35265095b76a71d485dc922db4cc6",
33
+ "cerCreatedAt": "2026-03-01T00:00:00.000Z"
34
+ },
35
+ {
36
+ "snapshot": {
37
+ "type": "ai.execution.v1",
38
+ "protocolVersion": "1.2.0",
39
+ "executionSurface": "ai",
40
+ "executionId": "vec-002-step-1",
41
+ "timestamp": "2026-03-01T00:00:00.000Z",
42
+ "provider": "openai",
43
+ "model": "gpt-4o",
44
+ "modelVersion": null,
45
+ "prompt": "Execute step 1 of the plan.",
46
+ "input": "Load and total the Q1 data.",
47
+ "inputHash": "sha256:544b18ed4cf2caa45e3aad3dbabdca50a7f7bb8e354ce35c406c96f3929b0b34",
48
+ "parameters": {
49
+ "temperature": 0.3,
50
+ "maxTokens": 512,
51
+ "topP": null,
52
+ "seed": null
53
+ },
54
+ "output": "Total revenue: $1.2M across 3 regions.",
55
+ "outputHash": "sha256:50f990992c3b9a261ac4594e535e176d528a4a320c9d8eb5ff5631ac1fbba80a",
56
+ "sdkVersion": "0.2.0",
57
+ "appId": null,
58
+ "runId": "run-vec-002",
59
+ "stepId": "step-1",
60
+ "stepIndex": 1,
61
+ "workflowId": "wf-analysis",
62
+ "conversationId": null,
63
+ "prevStepHash": "sha256:a159ff1a6591384bd102d289040f36317ae35265095b76a71d485dc922db4cc6"
64
+ },
65
+ "expectedCertificateHash": "sha256:9f1116538932bb1be27b01a33d5037dacca22548c7704a3bc3ddcd5e75c9bf2e",
66
+ "cerCreatedAt": "2026-03-01T00:00:00.000Z"
67
+ },
68
+ {
69
+ "snapshot": {
70
+ "type": "ai.execution.v1",
71
+ "protocolVersion": "1.2.0",
72
+ "executionSurface": "ai",
73
+ "executionId": "vec-002-step-2",
74
+ "timestamp": "2026-03-01T00:00:00.000Z",
75
+ "provider": "openai",
76
+ "model": "gpt-4o",
77
+ "modelVersion": null,
78
+ "prompt": "Summarize findings.",
79
+ "input": "Summarize: Total revenue $1.2M, 3 regions.",
80
+ "inputHash": "sha256:9707eccac666818b01558a57356bcf590ed83ae342c091c80a380372c5a05958",
81
+ "parameters": {
82
+ "temperature": 0.3,
83
+ "maxTokens": 512,
84
+ "topP": null,
85
+ "seed": null
86
+ },
87
+ "output": "Q1 revenue was $1.2M distributed across North, South, and West regions.",
88
+ "outputHash": "sha256:399b3ce0ef2b056df2f2bc78fb252385be40af12cae260e6750f478391418a7f",
89
+ "sdkVersion": "0.2.0",
90
+ "appId": null,
91
+ "runId": "run-vec-002",
92
+ "stepId": "step-2",
93
+ "stepIndex": 2,
94
+ "workflowId": "wf-analysis",
95
+ "conversationId": null,
96
+ "prevStepHash": "sha256:9f1116538932bb1be27b01a33d5037dacca22548c7704a3bc3ddcd5e75c9bf2e"
97
+ },
98
+ "expectedCertificateHash": "sha256:7cb3f19a32e6905170fd80b203d8c75b3a3ea67e090d0231e9ee7ea95ec57b8d",
99
+ "cerCreatedAt": "2026-03-01T00:00:00.000Z"
100
+ }
101
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexart/ai-execution",
3
- "version": "0.1.0",
3
+ "version": "0.2.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.js",
@@ -13,11 +13,19 @@
13
13
  "./providers/openai": {
14
14
  "types": "./dist/providers/openai.d.ts",
15
15
  "import": "./dist/providers/openai.js"
16
+ },
17
+ "./providers/anthropic": {
18
+ "types": "./dist/providers/anthropic.d.ts",
19
+ "import": "./dist/providers/anthropic.js"
20
+ },
21
+ "./providers/wrap": {
22
+ "types": "./dist/providers/wrap.d.ts",
23
+ "import": "./dist/providers/wrap.js"
16
24
  }
17
25
  },
18
26
  "scripts": {
19
27
  "build": "tsc",
20
- "test": "node --test dist/__tests__/vectors.test.js dist/__tests__/fixtures.test.js",
28
+ "test": "node --test dist/__tests__/vectors.test.js dist/__tests__/fixtures.test.js dist/__tests__/v020.test.js",
21
29
  "prepublishOnly": "npm run build && npm run test"
22
30
  },
23
31
  "keywords": [
@@ -29,7 +37,9 @@
29
37
  "cer",
30
38
  "snapshot",
31
39
  "sha256",
32
- "tamper-evident"
40
+ "tamper-evident",
41
+ "agentic",
42
+ "workflow"
33
43
  ],
34
44
  "author": "NexArt",
35
45
  "license": "MIT",