@dharma-ai-labs/agent-fabric 0.2.190 → 0.2.191
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/AGENT_FABRIC_ONBOARDING.md +4 -2
- package/dist/cliVersionContract.test.d.ts +2 -0
- package/dist/cliVersionContract.test.d.ts.map +1 -0
- package/dist/cliVersionContract.test.js +17 -0
- package/dist/cliVersionContract.test.js.map +1 -0
- package/dist/codexSetupLaunchReservation.d.ts +12 -0
- package/dist/codexSetupLaunchReservation.d.ts.map +1 -0
- package/dist/codexSetupLaunchReservation.js +76 -0
- package/dist/codexSetupLaunchReservation.js.map +1 -0
- package/dist/codexSetupLaunchReservation.test.d.ts +2 -0
- package/dist/codexSetupLaunchReservation.test.d.ts.map +1 -0
- package/dist/codexSetupLaunchReservation.test.js +168 -0
- package/dist/codexSetupLaunchReservation.test.js.map +1 -0
- package/dist/codexSetupOwnedConnection.d.ts +4 -1
- package/dist/codexSetupOwnedConnection.d.ts.map +1 -1
- package/dist/codexSetupOwnedConnection.js +16 -3
- package/dist/codexSetupOwnedConnection.js.map +1 -1
- package/dist/codexSetupOwnedConnection.test.js +14 -0
- package/dist/codexSetupOwnedConnection.test.js.map +1 -1
- package/dist/codexSetupPortalIngress.test.d.ts +2 -0
- package/dist/codexSetupPortalIngress.test.d.ts.map +1 -0
- package/dist/codexSetupPortalIngress.test.js +355 -0
- package/dist/codexSetupPortalIngress.test.js.map +1 -0
- package/dist/codexSetupPortalPreparation.d.ts +28 -0
- package/dist/codexSetupPortalPreparation.d.ts.map +1 -0
- package/dist/codexSetupPortalPreparation.js +101 -0
- package/dist/codexSetupPortalPreparation.js.map +1 -0
- package/dist/codexSetupPortalPreparation.test.d.ts +2 -0
- package/dist/codexSetupPortalPreparation.test.d.ts.map +1 -0
- package/dist/codexSetupPortalPreparation.test.js +173 -0
- package/dist/codexSetupPortalPreparation.test.js.map +1 -0
- package/dist/codexSetupPublicStdin.d.ts +6 -0
- package/dist/codexSetupPublicStdin.d.ts.map +1 -0
- package/dist/codexSetupPublicStdin.js +36 -0
- package/dist/codexSetupPublicStdin.js.map +1 -0
- package/dist/codexSetupPublicStdin.test.d.ts +2 -0
- package/dist/codexSetupPublicStdin.test.d.ts.map +1 -0
- package/dist/codexSetupPublicStdin.test.js +40 -0
- package/dist/codexSetupPublicStdin.test.js.map +1 -0
- package/dist/codexSetupUserPrompt.d.ts +2 -0
- package/dist/codexSetupUserPrompt.d.ts.map +1 -1
- package/dist/codexSetupUserPrompt.js +13 -7
- package/dist/codexSetupUserPrompt.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +187 -4
- package/dist/index.js.map +1 -1
- package/dist/onboardingContract.test.js +9 -0
- package/dist/onboardingContract.test.js.map +1 -1
- package/dist/schemas/setup-claim-request.schema.json +10 -0
- package/dist/schemas/setup-host-preparation.schema.json +51 -0
- package/dist/schemas/setup-launch-reservation.schema.json +29 -0
- package/dist/usage.js +1 -1
- package/dist/usage.js.map +1 -1
- package/package.json +1 -1
|
@@ -44,4 +44,13 @@ test('the installed guide names the supported knowledge and peer workflow', asyn
|
|
|
44
44
|
assert.match(contract, /source edit, successful upload, or local snapshot alone is not publication/);
|
|
45
45
|
assert.doesNotMatch(contract, /dhab_[A-Za-z0-9_-]+/);
|
|
46
46
|
});
|
|
47
|
+
test('the installed guide admits only the official original-message Linux setup handoff', async () => {
|
|
48
|
+
const contract = await readFile(contractUrl, 'utf8');
|
|
49
|
+
assert.match(contract, /`dharma setup codex --stdin`/);
|
|
50
|
+
assert.match(contract, /entire original public portal prompt unchanged/i);
|
|
51
|
+
assert.match(contract, /qualified private `DHARMA_HOME` and existing `CODEX_HOME`/);
|
|
52
|
+
assert.match(contract, /not attachment to an arbitrary existing desktop chat/i);
|
|
53
|
+
assert.match(contract, /never retry a refused, expired or interrupted setup/i);
|
|
54
|
+
assert.doesNotMatch(contract, /When the agent has no matching registered tool, it reports/);
|
|
55
|
+
});
|
|
47
56
|
//# sourceMappingURL=onboardingContract.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboardingContract.test.js","sourceRoot":"","sources":["../src/onboardingContract.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,+BAA+B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE9E,IAAI,CAAC,oEAAoE,EAAE,KAAK,IAAI,EAAE;IACpF,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAErD,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,gDAAgD,CAAC,CAAC;IACzE,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,0CAA0C,CAAC,CAAC;IACnE,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,4BAA4B,CAAC,CAAC;IACrD,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAC;IACpD,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,8DAA8D,CAAC,CAAC;IACvF,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,iFAAiF,CAAC,CAAC;IAC1G,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,qEAAqE,CAAC,CAAC;IAC9F,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,yCAAyC,CAAC,CAAC;AACpE,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,iGAAiG,EAAE,KAAK,IAAI,EAAE;IACjH,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACrD,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,oDAAoD,CAAC,C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pF,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,uDAAuD,CAAC,CAAC;IAChF,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,sDAAsD,CAAC,CAAC;IAC/E,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,4DAA4D,CAAC,CAAC;AAC9F,CAAC,CAAC,CAAC"}
|
|
@@ -12,6 +12,16 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"oneOf": [
|
|
15
|
+
{
|
|
16
|
+
"type": "object", "additionalProperties": false,
|
|
17
|
+
"required": ["action", "organizationId", "setupReference", "promptSha256"],
|
|
18
|
+
"properties": {
|
|
19
|
+
"action": {"const": "prepare_host"},
|
|
20
|
+
"organizationId": {"type": "string", "maxLength": 256, "pattern": "^org_[A-Za-z0-9]+$"},
|
|
21
|
+
"setupReference": {"type": "string", "format": "uuid"},
|
|
22
|
+
"promptSha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
15
25
|
{
|
|
16
26
|
"type": "object", "additionalProperties": false,
|
|
17
27
|
"required": ["action", "organizationId", "setupReference", "publicKeyEd25519", "credentialEncryptionPublicKey", "device"],
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.dharma-ai.io/setup-host-preparation/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["schema", "ok", "effects", "grantRedeemed", "approvalRequired", "sourcePolicyRevalidated", "preparedAt", "expiresAt", "promptSha256", "cliVersion", "binding", "context", "integrity"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schema": {"const": "dharma.setup-host-preparation/v1"},
|
|
9
|
+
"ok": {"const": true},
|
|
10
|
+
"effects": {"const": false},
|
|
11
|
+
"grantRedeemed": {"const": false},
|
|
12
|
+
"approvalRequired": {"const": true},
|
|
13
|
+
"sourcePolicyRevalidated": {"const": true, "$comment": "Read-only consent and policy snapshot; not an activation, lock or execution lease. Browser approval and consumption independently recheck."},
|
|
14
|
+
"integrity": {
|
|
15
|
+
"type": "object", "additionalProperties": false,
|
|
16
|
+
"required": ["algorithm", "kind", "authenticity", "contextSha256"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"algorithm": {"const": "sha256"}, "kind": {"const": "portal-context"},
|
|
19
|
+
"authenticity": {"const": "same-origin-https"},
|
|
20
|
+
"contextSha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"}
|
|
21
|
+
},
|
|
22
|
+
"$comment": "Immutable context digest independently pinned in the original authenticated portal-copied user message. Not a server signature or signed fresh preparedAt/sourcePolicy assertion."
|
|
23
|
+
},
|
|
24
|
+
"preparedAt": {"type": "string", "format": "date-time"},
|
|
25
|
+
"expiresAt": {"type": "string", "format": "date-time"},
|
|
26
|
+
"promptSha256": {"type": "string", "pattern": "^[a-f0-9]{64}$", "$comment": "SHA256 of UTF8 original portal prompt, normalizing CRLF to LF only. Actual native user-message bytes remain unchanged."},
|
|
27
|
+
"cliVersion": {"type": "string", "pattern": "^[0-9]+[.][0-9]+[.][0-9]+$"},
|
|
28
|
+
"binding": {
|
|
29
|
+
"type": "object", "additionalProperties": false,
|
|
30
|
+
"required": ["recipientEmail", "repositoryRemoteUrl"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"recipientEmail": {"type": "string", "format": "email", "maxLength": 254},
|
|
33
|
+
"repositoryRemoteUrl": {"type": "string", "format": "uri", "maxLength": 2048}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"context": {
|
|
37
|
+
"type": "object", "additionalProperties": false,
|
|
38
|
+
"required": ["origin", "organizationId", "setupReference", "recipientMembershipId", "repositoryFingerprint", "policyRevision", "scopeDigest", "contractDigest"],
|
|
39
|
+
"properties": {
|
|
40
|
+
"origin": {"type": "string", "format": "uri", "maxLength": 2048},
|
|
41
|
+
"organizationId": {"type": "string", "pattern": "^org_[A-Za-z0-9]+$"},
|
|
42
|
+
"setupReference": {"type": "string", "format": "uuid"},
|
|
43
|
+
"recipientMembershipId": {"type": "string", "format": "uuid"},
|
|
44
|
+
"repositoryFingerprint": {"type": "string", "pattern": "^sha256:[a-f0-9]{64}$"},
|
|
45
|
+
"policyRevision": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},
|
|
46
|
+
"scopeDigest": {"type": "string", "pattern": "^sha256:[a-f0-9]{64}$"},
|
|
47
|
+
"contractDigest": {"type": "string", "pattern": "^sha256:[a-f0-9]{64}$"}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.dharma-ai.io/setup-launch-reservation/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["schema", "organizationId", "setupReference", "operationId", "promptSha256", "reservedProviderCostCents", "reservedAt", "expiresAt", "actualUsd", "status", "hardInvoiceCapProven", "integrity"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schema": {"const": "dharma.setup-launch-reservation/v1"},
|
|
9
|
+
"organizationId": {"type": "string", "pattern": "^org_[A-Za-z0-9]+$"},
|
|
10
|
+
"setupReference": {"type": "string", "format": "uuid"},
|
|
11
|
+
"operationId": {"type": "string", "format": "uuid"},
|
|
12
|
+
"promptSha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
|
|
13
|
+
"reservedProviderCostCents": {"type": "integer", "minimum": 1, "maximum": 25},
|
|
14
|
+
"reservedAt": {"type": "string", "format": "date-time"},
|
|
15
|
+
"expiresAt": {"const": null, "$comment": "Unsettled financial exposure does not automatically expire."},
|
|
16
|
+
"actualUsd": {"const": null},
|
|
17
|
+
"status": {"const": "UNSETTLED_NOT_RELEASED"},
|
|
18
|
+
"hardInvoiceCapProven": {"const": false},
|
|
19
|
+
"integrity": {
|
|
20
|
+
"type": "object", "additionalProperties": false,
|
|
21
|
+
"required": ["algorithm", "payloadSha256"],
|
|
22
|
+
"properties": {
|
|
23
|
+
"algorithm": {"const": "sha256"},
|
|
24
|
+
"payloadSha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"}
|
|
25
|
+
},
|
|
26
|
+
"$comment": "Canonical public record payload digest excluding integrity. Corruption detection, not a signature or financial authority."
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
package/dist/usage.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const COMMAND_USAGE = 'Usage: dharma <bootstrap|onboard|login|status|sessions start|sessions status|sessions work|sessions stop|sessions audit|demo connect|demo transport-connect|demo status|demo package|demo package-status|demo watch|demo watch-enable|demo watch-status|demo watch-disable|demo role|demo peers|demo ask|demo reply|demo inbox|demo ack|demo resume|demo signing-client-proof|demo signing-owner-proof|providers list|repositories discover|repositories connect|repositories list|repositories status|repositories snapshot|repositories recover-installer|repositories role-register|repositories role-discover|repositories ask|repositories reply|workspace add|workspace sync|workspace recover-registry|evidence preview|evidence capture|evidence capture-batch|evidence sync|evidence run-request|relay container-entrypoint|relay probe|relay start|relay stop|relay upgrade|relay autostart status|relay autostart disable|assistant chat|assistant history|assistant status|assistant approve|assistant reject|organization status|agents list|agents bind-runtime|evaluations validate|evaluations launch|evaluations status|evaluations results|experiments list|experiments run|failures list|remediations list|remediations act|tasks list|tasks dispatch|handoffs list|skills list|skills release|skills rollout|skills rollback|skills sync|skills status|skills verify|usage list> [options]';
|
|
2
|
-
export const CLI_USAGE = COMMAND_USAGE + '\n\nAgent setup: bootstrap --setup-reference <public-reference> --setup-recipient-membership-id <membership> --setup-scope-digest <sha256> --setup-contract-digest <sha256> --complete [exact source/portal options]. Run inside the coding agent; approve the exact device in the browser. No terminal secret input. --dry-run produces a grant-free plan. Reference setup cannot combine with --grant, --grant-prompt, --resume, replacement, join or disabled relay startup. Legacy private setup: bootstrap --grant-prompt [exact portal options], with USER-only private terminal entry. Enrolled recovery: bootstrap --resume --complete [exact scoped options], with no grant/reference.'
|
|
2
|
+
export const CLI_USAGE = COMMAND_USAGE + '\n\nLinux named-Codex setup entry: setup codex --stdin --portal-url <origin> --organization-id <org> --setup-reference <public-reference> --workspace <checkout> [--maximum-provider-cost-cents <1..25>] [--dry-run]. The coding agent supplies the entire original public portal prompt on stdin, not a file, secret or human terminal entry. Requires the intended qualified private DHARMA_HOME and existing CODEX_HOME. This starts an owned named setup session with the bound tool; it does not attach to an existing desktop chat. Matching-recipient browser device approval remains required. A refused/expired/interrupted attempt is not retried. Dry-run verifies only public preparation, not execution admission or readiness. The local reservation is conservative unresolved exposure, not an invoice cap.\n\nAgent setup compatibility: bootstrap --setup-reference <public-reference> --setup-recipient-membership-id <membership> --setup-scope-digest <sha256> --setup-contract-digest <sha256> --complete [exact source/portal options]. Run inside the coding agent; approve the exact device in the browser. No terminal secret input. --dry-run produces a grant-free plan. Reference setup cannot combine with --grant, --grant-prompt, --resume, replacement, join or disabled relay startup. Legacy private setup: bootstrap --grant-prompt [exact portal options], with USER-only private terminal entry. Enrolled recovery: bootstrap --resume --complete [exact scoped options], with no grant/reference.'
|
|
3
3
|
+ '\n\nReturning device: login --unattended opts in to reuse the approved identity; login --no-unattended disables automatic selection; --dry-run plans either change. login --resume connects once without opting in. login --reauthenticate explicitly requests fresh browser approval for the original protected identity to recover its enrollment anchor; it never replaces keys or configuration. Opted-in bootstrap --complete can omit grants only for the same registered repository and approved policy revision. A compatible membership-guarded server admission response is required. Device admission does not sign in a provider or establish repository readiness. Standing relay lifecycle remains controlled by relay autostart commands.'
|
|
4
4
|
+ '\n\nRepository source conflicts: repositories source-resolve --workspace-id <workspace> [--dry-run | --prepare | --apply --plan-hash <sha256> --choose-reviewed-local]. Default is a read-only plan. Review and merge authorized source before preparation; approval is exact-input, expires after 15 minutes and does not publish. Existing relay/evaluation/signing gates remain required.'
|
|
5
5
|
+ '\n\nAfter a clear-baseline rollback: repositories restore --workspace-id <workspace> --dry-run reads a current-policy stable signed catalog and plans a fresh candidate. With the owned relay stopped, --apply --plan-hash <reviewed-hash> submits that exact plan through normal evaluation/signing. It never reactivates an archived release, changes enrollment or resets history. Resume the owned relay only after submission; readiness and activation remain separate checks.'
|
package/dist/usage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../src/usage.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,g1CAAg1C,CAAC;AAEv2C,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../src/usage.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,g1CAAg1C,CAAC;AAEv2C,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,GAAG,08CAA08C;MAC/+C,0tBAA0tB;MACxtB,8XAA8X;MAC9X,sdAAsd;MACtd,yZAAyZ,CAAC"}
|
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.191",
|
|
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",
|