@dharma-ai-labs/agent-fabric 0.1.27 → 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.
@@ -0,0 +1,568 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/trajectory-capsule/v3",
4
+ "title": "Dharma Trajectory Capsule v3",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema",
9
+ "trajectoryId",
10
+ "revision",
11
+ "organizationId",
12
+ "deviceId",
13
+ "workspaceId",
14
+ "provider",
15
+ "sessionId",
16
+ "captureProvenance",
17
+ "timeRange",
18
+ "status",
19
+ "evidenceMode",
20
+ "coverage",
21
+ "events",
22
+ "contentIndex",
23
+ "redactionReceipt",
24
+ "localEvidenceAvailable",
25
+ "capsuleHash",
26
+ "createdAt"
27
+ ],
28
+ "properties": {
29
+ "schema": {
30
+ "const": "dharma.trajectory-capsule/v3"
31
+ },
32
+ "trajectoryId": {
33
+ "type": "string",
34
+ "format": "uuid"
35
+ },
36
+ "revision": {
37
+ "type": "integer",
38
+ "minimum": 1
39
+ },
40
+ "previousRevisionHash": {
41
+ "type": [
42
+ "string",
43
+ "null"
44
+ ],
45
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
46
+ },
47
+ "organizationId": {
48
+ "type": "string",
49
+ "minLength": 1
50
+ },
51
+ "deviceId": {
52
+ "type": "string",
53
+ "minLength": 1
54
+ },
55
+ "workspaceId": {
56
+ "type": "string",
57
+ "minLength": 1
58
+ },
59
+ "provider": {
60
+ "type": "string"
61
+ },
62
+ "sessionId": {
63
+ "type": "string",
64
+ "minLength": 1
65
+ },
66
+ "taskId": {
67
+ "type": [
68
+ "string",
69
+ "null"
70
+ ]
71
+ },
72
+ "captureProvenance": {
73
+ "type": "object",
74
+ "additionalProperties": false,
75
+ "required": [
76
+ "sourceClass",
77
+ "collectedAt",
78
+ "taskReceiptHash"
79
+ ],
80
+ "properties": {
81
+ "sourceClass": {
82
+ "type": "string",
83
+ "enum": [
84
+ "provider_discovery",
85
+ "explicit_import",
86
+ "signed_task_execution"
87
+ ]
88
+ },
89
+ "collectedAt": {
90
+ "type": "string",
91
+ "format": "date-time"
92
+ },
93
+ "taskReceiptHash": {
94
+ "type": [
95
+ "string",
96
+ "null"
97
+ ],
98
+ "pattern": "^sha256:[A-Fa-f0-9]{64}$"
99
+ }
100
+ }
101
+ },
102
+ "timeRange": {
103
+ "type": "object",
104
+ "additionalProperties": false,
105
+ "required": [
106
+ "start",
107
+ "end"
108
+ ],
109
+ "properties": {
110
+ "start": {
111
+ "type": "string",
112
+ "format": "date-time"
113
+ },
114
+ "end": {
115
+ "type": "string",
116
+ "format": "date-time"
117
+ }
118
+ }
119
+ },
120
+ "status": {
121
+ "type": "string",
122
+ "enum": [
123
+ "open",
124
+ "completed",
125
+ "failed",
126
+ "cancelled",
127
+ "partial"
128
+ ]
129
+ },
130
+ "evidenceMode": {
131
+ "type": "string",
132
+ "enum": [
133
+ "structured",
134
+ "deep",
135
+ "reduced_full_session",
136
+ "incident_capture"
137
+ ]
138
+ },
139
+ "automaticDisclosureMode": {
140
+ "type": "string",
141
+ "enum": [
142
+ "metadata_only",
143
+ "local_analysis",
144
+ "customer_authorized_content"
145
+ ]
146
+ },
147
+ "coverage": {
148
+ "type": "object",
149
+ "additionalProperties": false,
150
+ "required": [
151
+ "state",
152
+ "admittedSessions",
153
+ "excludedSessions",
154
+ "missingFields"
155
+ ],
156
+ "properties": {
157
+ "state": {
158
+ "type": "string",
159
+ "enum": [
160
+ "observed",
161
+ "partial",
162
+ "unavailable"
163
+ ]
164
+ },
165
+ "admittedSessions": {
166
+ "type": "integer",
167
+ "minimum": 0
168
+ },
169
+ "excludedSessions": {
170
+ "type": "integer",
171
+ "minimum": 0
172
+ },
173
+ "missingFields": {
174
+ "type": "array",
175
+ "items": {
176
+ "type": "string"
177
+ },
178
+ "uniqueItems": true
179
+ }
180
+ }
181
+ },
182
+ "repoState": {
183
+ "type": "object"
184
+ },
185
+ "skillState": {
186
+ "type": "object"
187
+ },
188
+ "events": {
189
+ "type": "array",
190
+ "items": {
191
+ "$ref": "https://schemas.dharma-ai.io/agent-event/v1"
192
+ }
193
+ },
194
+ "contentIndex": {
195
+ "type": "array",
196
+ "items": {
197
+ "type": "object",
198
+ "additionalProperties": false,
199
+ "required": [
200
+ "contentId",
201
+ "kind",
202
+ "bytes",
203
+ "uploaded",
204
+ "availableLocally"
205
+ ],
206
+ "properties": {
207
+ "contentId": {
208
+ "type": "string",
209
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
210
+ },
211
+ "kind": {
212
+ "type": "string"
213
+ },
214
+ "bytes": {
215
+ "type": "integer",
216
+ "minimum": 0
217
+ },
218
+ "uploaded": {
219
+ "type": "boolean"
220
+ },
221
+ "availableLocally": {
222
+ "type": "boolean"
223
+ },
224
+ "mimeType": {
225
+ "type": [
226
+ "string",
227
+ "null"
228
+ ]
229
+ },
230
+ "normalizedPath": {
231
+ "type": [
232
+ "string",
233
+ "null"
234
+ ]
235
+ }
236
+ }
237
+ }
238
+ },
239
+ "validationResults": {
240
+ "type": "array",
241
+ "items": {
242
+ "type": "object"
243
+ },
244
+ "default": []
245
+ },
246
+ "localAnalysis": {
247
+ "type": [
248
+ "object",
249
+ "null"
250
+ ],
251
+ "additionalProperties": false,
252
+ "required": [
253
+ "schema",
254
+ "analyzer",
255
+ "recordCount",
256
+ "recordBytes",
257
+ "eventKinds",
258
+ "toolDiscipline",
259
+ "outcomeSignals",
260
+ "durationMs",
261
+ "semanticReviewRecommended",
262
+ "reasonCodes"
263
+ ],
264
+ "properties": {
265
+ "schema": {
266
+ "const": "dharma.local-trajectory-analysis/v1"
267
+ },
268
+ "analyzer": {
269
+ "const": "deterministic"
270
+ },
271
+ "recordCount": {
272
+ "type": "integer",
273
+ "minimum": 0
274
+ },
275
+ "recordBytes": {
276
+ "type": "object",
277
+ "additionalProperties": false,
278
+ "required": [
279
+ "total",
280
+ "maximum"
281
+ ],
282
+ "properties": {
283
+ "total": {
284
+ "type": "integer",
285
+ "minimum": 0
286
+ },
287
+ "maximum": {
288
+ "type": "integer",
289
+ "minimum": 0
290
+ }
291
+ }
292
+ },
293
+ "eventKinds": {
294
+ "type": "object",
295
+ "additionalProperties": {
296
+ "type": "integer",
297
+ "minimum": 0
298
+ }
299
+ },
300
+ "toolDiscipline": {
301
+ "type": "object",
302
+ "additionalProperties": false,
303
+ "required": [
304
+ "calls",
305
+ "results",
306
+ "unmatchedCalls",
307
+ "orphanResults"
308
+ ],
309
+ "properties": {
310
+ "calls": {
311
+ "type": "integer",
312
+ "minimum": 0
313
+ },
314
+ "results": {
315
+ "type": "integer",
316
+ "minimum": 0
317
+ },
318
+ "unmatchedCalls": {
319
+ "type": "integer",
320
+ "minimum": 0
321
+ },
322
+ "orphanResults": {
323
+ "type": "integer",
324
+ "minimum": 0
325
+ }
326
+ }
327
+ },
328
+ "outcomeSignals": {
329
+ "type": "object",
330
+ "additionalProperties": false,
331
+ "required": [
332
+ "errorRecords",
333
+ "incomplete",
334
+ "coverage"
335
+ ],
336
+ "properties": {
337
+ "errorRecords": {
338
+ "type": "integer",
339
+ "minimum": 0
340
+ },
341
+ "incomplete": {
342
+ "type": "boolean"
343
+ },
344
+ "coverage": {
345
+ "type": "string",
346
+ "enum": [
347
+ "observed",
348
+ "partial",
349
+ "unavailable"
350
+ ]
351
+ }
352
+ }
353
+ },
354
+ "durationMs": {
355
+ "type": "integer",
356
+ "minimum": 0
357
+ },
358
+ "semanticReviewRecommended": {
359
+ "type": "boolean"
360
+ },
361
+ "reasonCodes": {
362
+ "type": "array",
363
+ "items": {
364
+ "type": "string"
365
+ },
366
+ "uniqueItems": true
367
+ }
368
+ }
369
+ },
370
+ "redactionReceipt": {
371
+ "type": "object",
372
+ "additionalProperties": false,
373
+ "required": [
374
+ "policyRevision",
375
+ "disclosureClass",
376
+ "disclosureMode",
377
+ "consentReceiptId",
378
+ "disclosedClasses",
379
+ "excludedClasses",
380
+ "classes",
381
+ "redactedValues",
382
+ "excludedPaths",
383
+ "inputBytes",
384
+ "outputBytes"
385
+ ],
386
+ "properties": {
387
+ "policyRevision": {
388
+ "type": "string"
389
+ },
390
+ "disclosureClass": {
391
+ "const": "automatic_capsule"
392
+ },
393
+ "disclosureMode": {
394
+ "type": "string",
395
+ "enum": [
396
+ "metadata_only",
397
+ "local_analysis",
398
+ "customer_authorized_content"
399
+ ]
400
+ },
401
+ "consentReceiptId": {
402
+ "type": [
403
+ "string",
404
+ "null"
405
+ ]
406
+ },
407
+ "disclosedClasses": {
408
+ "type": "array",
409
+ "items": {
410
+ "type": "string"
411
+ },
412
+ "uniqueItems": true,
413
+ "minItems": 1
414
+ },
415
+ "excludedClasses": {
416
+ "type": "array",
417
+ "items": {
418
+ "type": "string"
419
+ },
420
+ "uniqueItems": true,
421
+ "minItems": 1
422
+ },
423
+ "classes": {
424
+ "type": "array",
425
+ "items": {
426
+ "type": "string"
427
+ },
428
+ "uniqueItems": true
429
+ },
430
+ "redactedValues": {
431
+ "type": "integer",
432
+ "minimum": 0
433
+ },
434
+ "excludedPaths": {
435
+ "type": "integer",
436
+ "minimum": 0
437
+ },
438
+ "inputBytes": {
439
+ "type": "integer",
440
+ "minimum": 0
441
+ },
442
+ "outputBytes": {
443
+ "type": "integer",
444
+ "minimum": 0
445
+ }
446
+ }
447
+ },
448
+ "localEvidenceAvailable": {
449
+ "type": "array",
450
+ "items": {
451
+ "type": "object",
452
+ "additionalProperties": false,
453
+ "required": [
454
+ "contentId",
455
+ "kind",
456
+ "bytes"
457
+ ],
458
+ "properties": {
459
+ "contentId": {
460
+ "type": "string",
461
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
462
+ },
463
+ "kind": {
464
+ "type": "string"
465
+ },
466
+ "bytes": {
467
+ "type": "integer",
468
+ "minimum": 0
469
+ }
470
+ }
471
+ }
472
+ },
473
+ "capsuleHash": {
474
+ "type": "string",
475
+ "pattern": "^(sha256|blake3):[A-Fa-f0-9]{32,128}$"
476
+ },
477
+ "createdAt": {
478
+ "type": "string",
479
+ "format": "date-time"
480
+ }
481
+ },
482
+ "allOf": [
483
+ {
484
+ "if": {
485
+ "properties": {
486
+ "captureProvenance": {
487
+ "type": "object",
488
+ "properties": {
489
+ "sourceClass": {
490
+ "const": "signed_task_execution"
491
+ }
492
+ },
493
+ "required": [
494
+ "sourceClass"
495
+ ]
496
+ }
497
+ },
498
+ "required": [
499
+ "captureProvenance"
500
+ ]
501
+ },
502
+ "then": {
503
+ "type": "object",
504
+ "properties": {
505
+ "taskId": {
506
+ "type": "string",
507
+ "format": "uuid"
508
+ },
509
+ "captureProvenance": {
510
+ "type": "object",
511
+ "properties": {
512
+ "taskReceiptHash": {
513
+ "type": "string",
514
+ "pattern": "^sha256:[A-Fa-f0-9]{64}$"
515
+ }
516
+ }
517
+ },
518
+ "events": {
519
+ "type": "array",
520
+ "minItems": 1,
521
+ "items": {
522
+ "type": "object",
523
+ "required": [
524
+ "skillBundleId"
525
+ ],
526
+ "properties": {
527
+ "skillBundleId": {
528
+ "type": "string",
529
+ "format": "uuid"
530
+ }
531
+ }
532
+ }
533
+ }
534
+ },
535
+ "required": [
536
+ "taskId"
537
+ ]
538
+ },
539
+ "else": {
540
+ "type": "object",
541
+ "properties": {
542
+ "taskId": {
543
+ "type": "null"
544
+ },
545
+ "captureProvenance": {
546
+ "type": "object",
547
+ "properties": {
548
+ "taskReceiptHash": {
549
+ "type": "null"
550
+ }
551
+ }
552
+ },
553
+ "events": {
554
+ "type": "array",
555
+ "items": {
556
+ "type": "object",
557
+ "properties": {
558
+ "skillBundleId": {
559
+ "type": "null"
560
+ }
561
+ }
562
+ }
563
+ }
564
+ }
565
+ }
566
+ }
567
+ ]
568
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dharma-ai-labs/agent-fabric",
3
- "version": "0.1.27",
3
+ "version": "0.2.0",
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,13 +34,13 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@dharma-ai-labs/agent-fabric-contracts": "0.1.4",
37
- "@dharma-ai-labs/agent-fabric-evidence-reduction": "0.1.11",
38
- "@dharma-ai-labs/agent-fabric-local-vault": "0.1.6",
37
+ "@dharma-ai-labs/agent-fabric-evidence-reduction": "0.2.0",
38
+ "@dharma-ai-labs/agent-fabric-local-vault": "0.1.7",
39
39
  "@dharma-ai-labs/agent-fabric-policy": "0.1.4",
40
40
  "@dharma-ai-labs/agent-fabric-provider-adapters": "0.1.7",
41
- "@dharma-ai-labs/agent-fabric-relay-client": "0.1.5",
42
- "@dharma-ai-labs/agent-fabric-sdk": "0.1.3",
43
- "@dharma-ai-labs/agent-fabric-skill-manager": "0.1.3",
41
+ "@dharma-ai-labs/agent-fabric-relay-client": "0.2.0",
42
+ "@dharma-ai-labs/agent-fabric-sdk": "0.1.5",
43
+ "@dharma-ai-labs/agent-fabric-skill-manager": "0.2.0",
44
44
  "@dharma-ai-labs/agent-fabric-task-runner": "0.1.5"
45
45
  }
46
46
  }