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

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 (71) hide show
  1. package/AGENT_FABRIC_ONBOARDING.md +1 -1
  2. package/README.md +13 -0
  3. package/dist/demoEnrollment.d.ts.map +1 -1
  4. package/dist/demoEnrollment.js +3 -2
  5. package/dist/demoEnrollment.js.map +1 -1
  6. package/dist/demoPackage.d.ts.map +1 -1
  7. package/dist/demoPackage.js +29 -9
  8. package/dist/demoPackage.js.map +1 -1
  9. package/dist/demoPackage.test.js +75 -1
  10. package/dist/demoPackage.test.js.map +1 -1
  11. package/dist/demoStateRename.d.ts +7 -0
  12. package/dist/demoStateRename.d.ts.map +1 -0
  13. package/dist/demoStateRename.js +21 -0
  14. package/dist/demoStateRename.js.map +1 -0
  15. package/dist/demoStateRename.test.d.ts +2 -0
  16. package/dist/demoStateRename.test.d.ts.map +1 -0
  17. package/dist/demoStateRename.test.js +67 -0
  18. package/dist/demoStateRename.test.js.map +1 -0
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +26 -18
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.test.js +3 -2
  23. package/dist/index.test.js.map +1 -1
  24. package/dist/namedSessionRepositoryState.d.ts +18 -0
  25. package/dist/namedSessionRepositoryState.d.ts.map +1 -1
  26. package/dist/namedSessionRepositoryState.js +18 -0
  27. package/dist/namedSessionRepositoryState.js.map +1 -1
  28. package/dist/namedSessionRepositoryState.test.js +6 -3
  29. package/dist/namedSessionRepositoryState.test.js.map +1 -1
  30. package/dist/namedSessionService.d.ts +1 -0
  31. package/dist/namedSessionService.d.ts.map +1 -1
  32. package/dist/namedSessionService.js +16 -1
  33. package/dist/namedSessionService.js.map +1 -1
  34. package/dist/namedSessionService.test.js +15 -0
  35. package/dist/namedSessionService.test.js.map +1 -1
  36. package/dist/namedSessionTaskExport.d.ts +22 -0
  37. package/dist/namedSessionTaskExport.d.ts.map +1 -0
  38. package/dist/namedSessionTaskExport.js +158 -0
  39. package/dist/namedSessionTaskExport.js.map +1 -0
  40. package/dist/namedSessionTaskExport.test.d.ts +2 -0
  41. package/dist/namedSessionTaskExport.test.d.ts.map +1 -0
  42. package/dist/namedSessionTaskExport.test.js +385 -0
  43. package/dist/namedSessionTaskExport.test.js.map +1 -0
  44. package/dist/namedSessionTaskExportSync.d.ts +57 -0
  45. package/dist/namedSessionTaskExportSync.d.ts.map +1 -0
  46. package/dist/namedSessionTaskExportSync.js +193 -0
  47. package/dist/namedSessionTaskExportSync.js.map +1 -0
  48. package/dist/pidLock.test.js +33 -1
  49. package/dist/pidLock.test.js.map +1 -1
  50. package/dist/relayAutostart.d.ts +5 -3
  51. package/dist/relayAutostart.d.ts.map +1 -1
  52. package/dist/relayAutostart.js +151 -24
  53. package/dist/relayAutostart.js.map +1 -1
  54. package/dist/relayAutostart.test.js +138 -2
  55. package/dist/relayAutostart.test.js.map +1 -1
  56. package/dist/repositoryPackage.d.ts.map +1 -1
  57. package/dist/repositoryPackage.js +18 -2
  58. package/dist/repositoryPackage.js.map +1 -1
  59. package/dist/repositoryPackage.test.js +29 -0
  60. package/dist/repositoryPackage.test.js.map +1 -1
  61. package/dist/repositoryRelaySupervisor.d.ts +1 -1
  62. package/dist/repositoryRelaySupervisor.d.ts.map +1 -1
  63. package/dist/repositoryRelaySupervisor.js +3 -2
  64. package/dist/repositoryRelaySupervisor.js.map +1 -1
  65. package/dist/repositoryRelaySupervisor.test.js +17 -0
  66. package/dist/repositoryRelaySupervisor.test.js.map +1 -1
  67. package/dist/schemas/codex-task-export-upload-receipt.schema.json +24 -0
  68. package/dist/schemas/codex-task-observation.schema.json +6 -1
  69. package/dist/schemas/codex-task-replay-export.schema.json +375 -0
  70. package/dist/schemas/named-session-task-export-outbox.schema.json +29 -0
  71. package/package.json +7 -7
@@ -0,0 +1,375 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/codex-task-replay-export/v1",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "schema",
8
+ "organizationId",
9
+ "repositoryBindingId",
10
+ "workspaceId",
11
+ "endpointId",
12
+ "membershipId",
13
+ "deviceId",
14
+ "bindingId",
15
+ "workId",
16
+ "captureId",
17
+ "providerThreadId",
18
+ "providerTurnId",
19
+ "timeRange",
20
+ "terminalState",
21
+ "policy",
22
+ "original",
23
+ "exported",
24
+ "request",
25
+ "events",
26
+ "context",
27
+ "redaction",
28
+ "coverage",
29
+ "limitations",
30
+ "acceptedLearningObservation"
31
+ ],
32
+ "$defs": {
33
+ "uuid": {
34
+ "type": "string",
35
+ "format": "uuid"
36
+ },
37
+ "name": {
38
+ "type": "string",
39
+ "pattern": "^[A-Za-z0-9_-]{1,128}$"
40
+ },
41
+ "hash": {
42
+ "type": "string",
43
+ "pattern": "^sha256:[a-f0-9]{64}$"
44
+ },
45
+ "hashes": {
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": [
49
+ "requestHash",
50
+ "eventsHash",
51
+ "contextHash"
52
+ ],
53
+ "properties": {
54
+ "requestHash": {
55
+ "$ref": "#/$defs/hash"
56
+ },
57
+ "eventsHash": {
58
+ "$ref": "#/$defs/hash"
59
+ },
60
+ "contextHash": {
61
+ "$ref": "#/$defs/hash"
62
+ }
63
+ }
64
+ }
65
+ },
66
+ "properties": {
67
+ "schema": {
68
+ "const": "dharma.codex-task-replay-export/v1"
69
+ },
70
+ "organizationId": {
71
+ "type": "string",
72
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,199}$"
73
+ },
74
+ "repositoryBindingId": {
75
+ "$ref": "#/$defs/uuid"
76
+ },
77
+ "workspaceId": {
78
+ "$ref": "#/$defs/uuid"
79
+ },
80
+ "endpointId": {
81
+ "$ref": "#/$defs/uuid"
82
+ },
83
+ "membershipId": {
84
+ "$ref": "#/$defs/uuid"
85
+ },
86
+ "deviceId": {
87
+ "$ref": "#/$defs/uuid"
88
+ },
89
+ "bindingId": {
90
+ "$ref": "#/$defs/uuid"
91
+ },
92
+ "workId": {
93
+ "$ref": "#/$defs/name"
94
+ },
95
+ "captureId": {
96
+ "$ref": "#/$defs/uuid"
97
+ },
98
+ "providerThreadId": {
99
+ "$ref": "#/$defs/name"
100
+ },
101
+ "providerTurnId": {
102
+ "$ref": "#/$defs/name"
103
+ },
104
+ "timeRange": {
105
+ "type": "object",
106
+ "additionalProperties": false,
107
+ "required": [
108
+ "startedAt",
109
+ "completedAt"
110
+ ],
111
+ "properties": {
112
+ "startedAt": {
113
+ "type": "string",
114
+ "format": "date-time"
115
+ },
116
+ "completedAt": {
117
+ "type": "string",
118
+ "format": "date-time"
119
+ }
120
+ }
121
+ },
122
+ "terminalState": {
123
+ "enum": [
124
+ "completed",
125
+ "failed",
126
+ "interrupted"
127
+ ]
128
+ },
129
+ "policy": {
130
+ "type": "object",
131
+ "additionalProperties": false,
132
+ "required": [
133
+ "revision",
134
+ "consentReceiptId",
135
+ "contentClass",
136
+ "purpose"
137
+ ],
138
+ "properties": {
139
+ "revision": {
140
+ "type": "string",
141
+ "pattern": "^[A-Za-z0-9_.-]{1,200}$"
142
+ },
143
+ "consentReceiptId": {
144
+ "type": "string",
145
+ "pattern": "^consent_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
146
+ },
147
+ "contentClass": {
148
+ "const": "native_provider_payload"
149
+ },
150
+ "purpose": {
151
+ "const": "continuous_evaluation"
152
+ }
153
+ }
154
+ },
155
+ "original": {
156
+ "type": "object",
157
+ "additionalProperties": false,
158
+ "required": [
159
+ "captureHash",
160
+ "requestHash",
161
+ "eventsHash",
162
+ "contextHash"
163
+ ],
164
+ "properties": {
165
+ "captureHash": {
166
+ "$ref": "#/$defs/hash"
167
+ },
168
+ "requestHash": {
169
+ "$ref": "#/$defs/hash"
170
+ },
171
+ "eventsHash": {
172
+ "$ref": "#/$defs/hash"
173
+ },
174
+ "contextHash": {
175
+ "$ref": "#/$defs/hash"
176
+ }
177
+ }
178
+ },
179
+ "exported": {
180
+ "$ref": "#/$defs/hashes"
181
+ },
182
+ "request": {
183
+ "type": "object",
184
+ "additionalProperties": false,
185
+ "required": [
186
+ "method",
187
+ "params"
188
+ ],
189
+ "properties": {
190
+ "method": {
191
+ "const": "turn/start"
192
+ },
193
+ "params": {
194
+ "type": "object",
195
+ "additionalProperties": false,
196
+ "required": [
197
+ "threadId",
198
+ "input",
199
+ "cwd",
200
+ "approvalPolicy",
201
+ "permissions"
202
+ ],
203
+ "properties": {
204
+ "threadId": {
205
+ "$ref": "#/$defs/name"
206
+ },
207
+ "input": {
208
+ "type": "array",
209
+ "minItems": 1,
210
+ "maxItems": 1,
211
+ "items": {
212
+ "type": "object",
213
+ "additionalProperties": false,
214
+ "required": [
215
+ "type",
216
+ "text"
217
+ ],
218
+ "properties": {
219
+ "type": {
220
+ "const": "text"
221
+ },
222
+ "text": {
223
+ "type": "string",
224
+ "minLength": 1,
225
+ "maxLength": 12000
226
+ }
227
+ }
228
+ }
229
+ },
230
+ "cwd": {
231
+ "const": "[REDACTED:local_path]"
232
+ },
233
+ "approvalPolicy": {
234
+ "const": "never"
235
+ },
236
+ "permissions": {
237
+ "const": "dharma_work"
238
+ }
239
+ }
240
+ }
241
+ }
242
+ },
243
+ "events": {
244
+ "type": "array",
245
+ "minItems": 1,
246
+ "maxItems": 2048,
247
+ "items": {
248
+ "type": "object"
249
+ }
250
+ },
251
+ "context": {
252
+ "type": "object",
253
+ "additionalProperties": false,
254
+ "required": [
255
+ "schema",
256
+ "threadId",
257
+ "capturedAt",
258
+ "configuredModel",
259
+ "configuredModelProvider",
260
+ "configuredReasoningEffort",
261
+ "executedModel",
262
+ "replayMode",
263
+ "limitations",
264
+ "turns"
265
+ ],
266
+ "properties": {
267
+ "schema": {
268
+ "const": "dharma.codex-task-portable-context/v1"
269
+ },
270
+ "threadId": {
271
+ "$ref": "#/$defs/name"
272
+ },
273
+ "capturedAt": {
274
+ "type": "string",
275
+ "format": "date-time"
276
+ },
277
+ "configuredModel": {
278
+ "type": "string",
279
+ "maxLength": 200
280
+ },
281
+ "configuredModelProvider": {
282
+ "type": "string",
283
+ "maxLength": 200
284
+ },
285
+ "configuredReasoningEffort": {
286
+ "type": [
287
+ "string",
288
+ "null"
289
+ ],
290
+ "maxLength": 200
291
+ },
292
+ "executedModel": {
293
+ "type": "null"
294
+ },
295
+ "replayMode": {
296
+ "const": "task_level"
297
+ },
298
+ "limitations": {
299
+ "const": [
300
+ "public_history_only",
301
+ "executed_model_unreported"
302
+ ]
303
+ },
304
+ "turns": {
305
+ "type": "array",
306
+ "maxItems": 2048,
307
+ "items": {
308
+ "type": "object",
309
+ "additionalProperties": false,
310
+ "required": [
311
+ "id",
312
+ "status",
313
+ "items"
314
+ ],
315
+ "properties": {
316
+ "id": {
317
+ "$ref": "#/$defs/name"
318
+ },
319
+ "status": {
320
+ "enum": [
321
+ "completed",
322
+ "failed",
323
+ "interrupted"
324
+ ]
325
+ },
326
+ "items": {
327
+ "type": "array",
328
+ "items": {
329
+ "type": "object"
330
+ }
331
+ }
332
+ }
333
+ }
334
+ }
335
+ }
336
+ },
337
+ "redaction": {
338
+ "type": "object",
339
+ "additionalProperties": false,
340
+ "required": [
341
+ "classes",
342
+ "redactedValues"
343
+ ],
344
+ "properties": {
345
+ "classes": {
346
+ "type": "array",
347
+ "uniqueItems": true,
348
+ "maxItems": 32,
349
+ "items": {
350
+ "type": "string",
351
+ "pattern": "^[a-z_]{1,80}$"
352
+ }
353
+ },
354
+ "redactedValues": {
355
+ "type": "integer",
356
+ "minimum": 0
357
+ }
358
+ }
359
+ },
360
+ "coverage": {
361
+ "const": "redacted_task_level"
362
+ },
363
+ "limitations": {
364
+ "const": [
365
+ "not_full_native_capture",
366
+ "protected_reasoning_excluded",
367
+ "local_paths_redacted",
368
+ "executed_model_unreported"
369
+ ]
370
+ },
371
+ "acceptedLearningObservation": {
372
+ "const": false
373
+ }
374
+ }
375
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/named-session-task-export-outbox/v1",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": ["schema", "organizationId", "repositoryBindingId", "workspaceId", "endpointId", "membershipId", "deviceId", "bindingId", "workId", "workKey", "captureHash", "contextHash", "exportHash", "policyRevision", "consentReceiptId", "createdAt"],
7
+ "properties": {
8
+ "schema": { "const": "dharma.named-session-task-export-outbox/v1" },
9
+ "organizationId": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,199}$" },
10
+ "repositoryBindingId": { "$ref": "#/$defs/uuid" },
11
+ "workspaceId": { "$ref": "#/$defs/uuid" },
12
+ "endpointId": { "$ref": "#/$defs/uuid" },
13
+ "membershipId": { "$ref": "#/$defs/uuid" },
14
+ "deviceId": { "$ref": "#/$defs/uuid" },
15
+ "bindingId": { "$ref": "#/$defs/uuid" },
16
+ "workId": { "type": "string", "minLength": 1, "maxLength": 128 },
17
+ "workKey": { "$ref": "#/$defs/hash" },
18
+ "captureHash": { "$ref": "#/$defs/hash" },
19
+ "contextHash": { "$ref": "#/$defs/hash" },
20
+ "exportHash": { "$ref": "#/$defs/hash" },
21
+ "policyRevision": { "type": "string", "minLength": 1, "maxLength": 200 },
22
+ "consentReceiptId": { "type": "string", "pattern": "^(consent_)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$" },
23
+ "createdAt": { "type": "string", "format": "date-time" }
24
+ },
25
+ "$defs": {
26
+ "uuid": { "type": "string", "format": "uuid" },
27
+ "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }
28
+ }
29
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dharma-ai-labs/agent-fabric",
3
- "version": "0.2.130",
3
+ "version": "0.2.131",
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.12",
38
- "@dharma-ai-labs/agent-fabric-evidence-reduction": "0.2.25",
39
- "@dharma-ai-labs/agent-fabric-local-vault": "0.1.24",
37
+ "@dharma-ai-labs/agent-fabric-contracts": "0.1.13",
38
+ "@dharma-ai-labs/agent-fabric-evidence-reduction": "0.2.26",
39
+ "@dharma-ai-labs/agent-fabric-local-vault": "0.1.25",
40
40
  "@dharma-ai-labs/agent-fabric-policy": "0.1.4",
41
- "@dharma-ai-labs/agent-fabric-provider-adapters": "0.1.26",
42
- "@dharma-ai-labs/agent-fabric-relay-client": "0.2.25",
41
+ "@dharma-ai-labs/agent-fabric-provider-adapters": "0.1.27",
42
+ "@dharma-ai-labs/agent-fabric-relay-client": "0.2.26",
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.28",
46
+ "@dharma-ai-labs/agent-fabric-task-runner": "0.1.29",
47
47
  "ajv": "8.20.0",
48
48
  "ajv-formats": "3.0.1",
49
49
  "fs-native-extensions": "1.5.1"