@dharma-ai-labs/agent-fabric 0.2.2 → 0.2.4
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.
- package/dist/index.d.ts +15 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +143 -30
- package/dist/index.js.map +1 -1
- package/dist/index.test.js +113 -1
- package/dist/index.test.js.map +1 -1
- package/dist/schemas/action-decision-acknowledgement.schema.json +17 -0
- package/dist/schemas/action-decision-receipt.schema.json +30 -0
- package/dist/schemas/action-decision-task-request.schema.json +48 -0
- package/dist/schemas/server-signing-keyset.schema.json +18 -0
- package/dist/schemas/task-action.schema.json +24 -0
- package/dist/schemas/task-envelope.schema.json +53 -0
- package/package.json +9 -9
|
@@ -62,9 +62,33 @@
|
|
|
62
62
|
"provider": {
|
|
63
63
|
"type": "string",
|
|
64
64
|
"enum": ["codex", "claude", "agy"]
|
|
65
|
+
},
|
|
66
|
+
"endpointId": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"format": "uuid"
|
|
65
69
|
}
|
|
66
70
|
}
|
|
67
71
|
},
|
|
72
|
+
"requiredCapabilities": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"maxItems": 1,
|
|
75
|
+
"uniqueItems": true,
|
|
76
|
+
"items": {
|
|
77
|
+
"const": "action_decision_receipts_v1"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"actionDecision": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"required": ["id", "actionDigest", "receipt", "signature", "keyVersion"],
|
|
84
|
+
"properties": {
|
|
85
|
+
"id": { "type": "string", "format": "uuid" },
|
|
86
|
+
"actionDigest": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" },
|
|
87
|
+
"receipt": { "$ref": "https://schemas.dharma-ai.io/action-decision-receipt/v1" },
|
|
88
|
+
"signature": { "type": "string", "minLength": 1, "maxLength": 1000 },
|
|
89
|
+
"keyVersion": { "type": "string", "minLength": 1, "maxLength": 500 }
|
|
90
|
+
}
|
|
91
|
+
},
|
|
68
92
|
"source": {
|
|
69
93
|
"type": "object",
|
|
70
94
|
"additionalProperties": false,
|
|
@@ -379,6 +403,35 @@
|
|
|
379
403
|
]
|
|
380
404
|
}
|
|
381
405
|
}
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"if": {
|
|
409
|
+
"properties": {
|
|
410
|
+
"requiredCapabilities": {
|
|
411
|
+
"type": "array",
|
|
412
|
+
"contains": { "const": "action_decision_receipts_v1" }
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"required": ["requiredCapabilities"]
|
|
416
|
+
},
|
|
417
|
+
"then": {
|
|
418
|
+
"required": ["actionDecision"],
|
|
419
|
+
"properties": {
|
|
420
|
+
"target": { "type": "object", "required": ["endpointId"] }
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"if": { "required": ["actionDecision"] },
|
|
426
|
+
"then": {
|
|
427
|
+
"required": ["requiredCapabilities"],
|
|
428
|
+
"properties": {
|
|
429
|
+
"requiredCapabilities": {
|
|
430
|
+
"type": "array",
|
|
431
|
+
"contains": { "const": "action_decision_receipts_v1" }
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
382
435
|
}
|
|
383
436
|
]
|
|
384
437
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dharma-ai-labs/agent-fabric",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
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",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"test": "node --test dist/*.test.js"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@dharma-ai-labs/agent-fabric-contracts": "0.1.
|
|
37
|
-
"@dharma-ai-labs/agent-fabric-evidence-reduction": "0.2.
|
|
38
|
-
"@dharma-ai-labs/agent-fabric-local-vault": "0.1.
|
|
36
|
+
"@dharma-ai-labs/agent-fabric-contracts": "0.1.6",
|
|
37
|
+
"@dharma-ai-labs/agent-fabric-evidence-reduction": "0.2.1",
|
|
38
|
+
"@dharma-ai-labs/agent-fabric-local-vault": "0.1.9",
|
|
39
39
|
"@dharma-ai-labs/agent-fabric-policy": "0.1.4",
|
|
40
|
-
"@dharma-ai-labs/agent-fabric-provider-adapters": "0.1.
|
|
41
|
-
"@dharma-ai-labs/agent-fabric-relay-client": "0.2.
|
|
42
|
-
"@dharma-ai-labs/agent-fabric-sdk": "0.1.
|
|
43
|
-
"@dharma-ai-labs/agent-fabric-skill-manager": "0.2.
|
|
44
|
-
"@dharma-ai-labs/agent-fabric-task-runner": "0.1.
|
|
40
|
+
"@dharma-ai-labs/agent-fabric-provider-adapters": "0.1.8",
|
|
41
|
+
"@dharma-ai-labs/agent-fabric-relay-client": "0.2.4",
|
|
42
|
+
"@dharma-ai-labs/agent-fabric-sdk": "0.1.6",
|
|
43
|
+
"@dharma-ai-labs/agent-fabric-skill-manager": "0.2.1",
|
|
44
|
+
"@dharma-ai-labs/agent-fabric-task-runner": "0.1.7"
|
|
45
45
|
}
|
|
46
46
|
}
|