@dharma-ai-labs/agent-fabric 0.2.129 → 0.2.130

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 (35) hide show
  1. package/README.md +30 -0
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +88 -10
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.test.js +2 -0
  7. package/dist/index.test.js.map +1 -1
  8. package/dist/namedSessionPackageGate.d.ts +22 -0
  9. package/dist/namedSessionPackageGate.d.ts.map +1 -0
  10. package/dist/namedSessionPackageGate.js +135 -0
  11. package/dist/namedSessionPackageGate.js.map +1 -0
  12. package/dist/namedSessionPackageGate.test.d.ts +2 -0
  13. package/dist/namedSessionPackageGate.test.d.ts.map +1 -0
  14. package/dist/namedSessionPackageGate.test.js +20 -0
  15. package/dist/namedSessionPackageGate.test.js.map +1 -0
  16. package/dist/namedSessionRepositoryState.d.ts +47 -0
  17. package/dist/namedSessionRepositoryState.d.ts.map +1 -0
  18. package/dist/namedSessionRepositoryState.js +36 -0
  19. package/dist/namedSessionRepositoryState.js.map +1 -0
  20. package/dist/namedSessionRepositoryState.test.d.ts +2 -0
  21. package/dist/namedSessionRepositoryState.test.d.ts.map +1 -0
  22. package/dist/namedSessionRepositoryState.test.js +73 -0
  23. package/dist/namedSessionRepositoryState.test.js.map +1 -0
  24. package/dist/namedSessionService.d.ts +4 -1
  25. package/dist/namedSessionService.d.ts.map +1 -1
  26. package/dist/namedSessionService.js +10 -1
  27. package/dist/namedSessionService.js.map +1 -1
  28. package/dist/namedSessionService.test.js +32 -3
  29. package/dist/namedSessionService.test.js.map +1 -1
  30. package/dist/relaySupervisor.test.js +9 -4
  31. package/dist/relaySupervisor.test.js.map +1 -1
  32. package/dist/repositoryPackageDelivery.test.js +34 -1
  33. package/dist/repositoryPackageDelivery.test.js.map +1 -1
  34. package/dist/schemas/codex-task-observation.schema.json +94 -0
  35. package/package.json +5 -5
@@ -0,0 +1,94 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/codex-task-observation/v1",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": ["schema", "organizationId", "repositoryBindingId", "workspaceId", "endpointId", "membershipId", "deviceId", "bindingId", "workId", "logicalRequestId", "capture", "sourceSnapshotHash", "resultSnapshotHash", "package", "consent", "provider", "outcome", "signature"],
7
+ "$defs": {
8
+ "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
9
+ "uuid": { "type": "string", "format": "uuid" },
10
+ "name": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" },
11
+ "signature": { "type": "string", "pattern": "^[A-Za-z0-9_-]{86}$" },
12
+ "logicalId": { "type": "string", "pattern": "^codex-task:[a-f0-9]{64}$" }
13
+ },
14
+ "properties": {
15
+ "schema": { "const": "dharma.codex-task-observation/v1" },
16
+ "organizationId": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,199}$" },
17
+ "repositoryBindingId": { "$ref": "#/$defs/uuid" },
18
+ "workspaceId": { "$ref": "#/$defs/uuid" },
19
+ "endpointId": { "$ref": "#/$defs/uuid" },
20
+ "membershipId": { "$ref": "#/$defs/uuid" },
21
+ "deviceId": { "$ref": "#/$defs/uuid" },
22
+ "bindingId": { "$ref": "#/$defs/uuid" },
23
+ "workId": { "$ref": "#/$defs/name" },
24
+ "logicalRequestId": { "$ref": "#/$defs/logicalId" },
25
+ "capture": {
26
+ "type": "object", "additionalProperties": false,
27
+ "required": ["captureId", "captureHash", "requestHash", "eventsHash", "threadId", "turnId", "startedAt", "completedAt", "terminalState", "coverage", "droppedEvents"],
28
+ "properties": {
29
+ "captureId": { "$ref": "#/$defs/uuid" },
30
+ "captureHash": { "$ref": "#/$defs/hash" },
31
+ "requestHash": { "$ref": "#/$defs/hash" },
32
+ "eventsHash": { "$ref": "#/$defs/hash" },
33
+ "threadId": { "$ref": "#/$defs/name" },
34
+ "turnId": { "$ref": "#/$defs/name" },
35
+ "startedAt": { "type": "string", "format": "date-time" },
36
+ "completedAt": { "type": "string", "format": "date-time" },
37
+ "terminalState": { "enum": ["completed", "failed", "interrupted"] },
38
+ "coverage": { "const": "observed" },
39
+ "droppedEvents": { "const": 0 }
40
+ }
41
+ },
42
+ "sourceSnapshotHash": { "$ref": "#/$defs/hash" },
43
+ "resultSnapshotHash": { "$ref": "#/$defs/hash" },
44
+ "package": {
45
+ "type": "object", "additionalProperties": false,
46
+ "required": ["releaseId", "manifestHash", "catalogHash", "skillsHash"],
47
+ "properties": {
48
+ "releaseId": { "$ref": "#/$defs/uuid" },
49
+ "manifestHash": { "$ref": "#/$defs/hash" },
50
+ "catalogHash": { "$ref": "#/$defs/hash" },
51
+ "skillsHash": { "$ref": "#/$defs/hash" }
52
+ }
53
+ },
54
+ "consent": {
55
+ "type": "object", "additionalProperties": false,
56
+ "required": ["policyId", "revision", "receiptId"],
57
+ "properties": {
58
+ "policyId": { "$ref": "#/$defs/uuid" },
59
+ "revision": { "type": "integer", "minimum": 1 },
60
+ "receiptId": { "$ref": "#/$defs/uuid" }
61
+ }
62
+ },
63
+ "provider": {
64
+ "type": "object", "additionalProperties": false,
65
+ "required": ["name", "runtimeVersion", "requestedModel", "executedModel", "retainedContextHash", "replayMode"],
66
+ "properties": {
67
+ "name": { "const": "codex" },
68
+ "runtimeVersion": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:[-+][A-Za-z0-9.-]+)?$" },
69
+ "requestedModel": { "$ref": "#/$defs/name" },
70
+ "executedModel": { "type": "null" },
71
+ "retainedContextHash": { "$ref": "#/$defs/hash" },
72
+ "replayMode": { "const": "task_level" }
73
+ }
74
+ },
75
+ "outcome": {
76
+ "type": "object", "additionalProperties": false,
77
+ "required": ["receiptId", "logicalRequestId", "captureHash", "sourceSnapshotHash", "resultSnapshotHash", "evaluationContractHash", "publicEvidenceHash", "status", "completedAt", "signerKeyVersion", "signature"],
78
+ "properties": {
79
+ "receiptId": { "$ref": "#/$defs/uuid" },
80
+ "logicalRequestId": { "$ref": "#/$defs/logicalId" },
81
+ "captureHash": { "$ref": "#/$defs/hash" },
82
+ "sourceSnapshotHash": { "$ref": "#/$defs/hash" },
83
+ "resultSnapshotHash": { "$ref": "#/$defs/hash" },
84
+ "evaluationContractHash": { "$ref": "#/$defs/hash" },
85
+ "publicEvidenceHash": { "$ref": "#/$defs/hash" },
86
+ "status": { "enum": ["passed", "failed", "error"] },
87
+ "completedAt": { "type": "string", "format": "date-time" },
88
+ "signerKeyVersion": { "type": "string", "minLength": 1, "maxLength": 500, "pattern": "^[^\\r\\n\\u0000]+$" },
89
+ "signature": { "$ref": "#/$defs/signature" }
90
+ }
91
+ },
92
+ "signature": { "$ref": "#/$defs/signature" }
93
+ }
94
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dharma-ai-labs/agent-fabric",
3
- "version": "0.2.129",
3
+ "version": "0.2.130",
4
4
  "description": "Local-first CLI for connecting coding agents to Dharma evaluation, orchestration, and signed Skill delivery",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/dharma-ai-labs/dharma-agent-fabric/tree/main/packages/cli#readme",
@@ -34,16 +34,16 @@
34
34
  "test": "node --test dist/*.test.js"
35
35
  },
36
36
  "dependencies": {
37
- "@dharma-ai-labs/agent-fabric-contracts": "0.1.11",
38
- "@dharma-ai-labs/agent-fabric-evidence-reduction": "0.2.24",
37
+ "@dharma-ai-labs/agent-fabric-contracts": "0.1.12",
38
+ "@dharma-ai-labs/agent-fabric-evidence-reduction": "0.2.25",
39
39
  "@dharma-ai-labs/agent-fabric-local-vault": "0.1.24",
40
40
  "@dharma-ai-labs/agent-fabric-policy": "0.1.4",
41
- "@dharma-ai-labs/agent-fabric-provider-adapters": "0.1.25",
41
+ "@dharma-ai-labs/agent-fabric-provider-adapters": "0.1.26",
42
42
  "@dharma-ai-labs/agent-fabric-relay-client": "0.2.25",
43
43
  "@dharma-ai-labs/agent-fabric-sdk": "0.1.10",
44
44
  "@dharma-ai-labs/agent-fabric-secure-store": "0.1.7",
45
45
  "@dharma-ai-labs/agent-fabric-skill-manager": "0.2.10",
46
- "@dharma-ai-labs/agent-fabric-task-runner": "0.1.27",
46
+ "@dharma-ai-labs/agent-fabric-task-runner": "0.1.28",
47
47
  "ajv": "8.20.0",
48
48
  "ajv-formats": "3.0.1",
49
49
  "fs-native-extensions": "1.5.1"