@dharma-ai-labs/agent-fabric 0.2.207 → 0.2.208

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,37 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.dharma-ai.io/named-session-readiness-diagnostic/v1",
4
+ "title": "Local named-session transport failure observation; not readiness or an authority envelope",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["ok", "schema", "localOnly", "nativeReady", "receiptId", "observedAt", "name", "bindingId", "organizationId", "repositoryBindingId", "workspaceId", "endpointId", "membershipId", "deviceId", "provider", "code", "diagnostic"],
8
+ "properties": {
9
+ "ok": {"const": false},
10
+ "schema": {"const": "dharma.named-session-readiness-diagnostic/v1"},
11
+ "localOnly": {"const": true},
12
+ "nativeReady": {"const": false},
13
+ "receiptId": {"type": "string", "format": "uuid"},
14
+ "observedAt": {"type": "string", "format": "date-time"},
15
+ "name": {"type": "string", "pattern": "^[a-z][a-z0-9-]{0,47}$(?![\\s\\S])"},
16
+ "bindingId": {"type": "string", "format": "uuid"},
17
+ "organizationId": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,199}$(?![\\s\\S])"},
18
+ "repositoryBindingId": {"type": "string", "format": "uuid"},
19
+ "workspaceId": {"type": "string", "format": "uuid"},
20
+ "endpointId": {"type": "string", "format": "uuid"},
21
+ "membershipId": {"type": "string", "format": "uuid"},
22
+ "deviceId": {"type": "string", "format": "uuid"},
23
+ "provider": {"const": "codex"},
24
+ "code": {"const": "named_session_unavailable"},
25
+ "diagnostic": {
26
+ "type": "object", "additionalProperties": false,
27
+ "required": ["schema", "phase", "reason", "osCode", "remoteCode"],
28
+ "properties": {
29
+ "schema": {"const": "dharma.named-session-transport-diagnostic/v1"},
30
+ "phase": {"enum": ["connect", "write", "response", "decode", "remote"]},
31
+ "reason": {"enum": ["socket_missing", "connection_refused", "permission_denied", "connection_reset", "timeout", "transport_error", "connection_closed", "response_too_large", "malformed_response", "remote_rejected"]},
32
+ "osCode": {"enum": [null, "ENOENT", "ECONNREFUSED", "EACCES", "EPERM", "ECONNRESET", "ETIMEDOUT", "EPIPE"]},
33
+ "remoteCode": {"enum": [null, "named_session_unavailable", "named_session_failed", "named_session_stopped", "named_session_busy", "named_session_quiesced", "named_session_readiness_unavailable", "named_session_readiness_scope_mismatch", "named_session_native_skill_unavailable", "named_session_scope_mismatch", "named_session_registration_invalid", "setup_session_invalid", "setup_session_scope_changed", "setup_readiness_stale", "vault_api_unavailable"]}
34
+ }
35
+ }
36
+ }
37
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../src/usage.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,QAIyY,CAAC"}
1
+ {"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../src/usage.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,QAKyY,CAAC"}
package/dist/usage.js CHANGED
@@ -1,7 +1,8 @@
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]';
1
+ const COMMAND_USAGE = 'Usage: dharma <bootstrap|onboard|login|status|sessions start|sessions status|sessions readiness|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
2
  export const CLI_USAGE = COMMAND_USAGE + '\n\nLinux named-Codex setup entry: setup codex --portal-context-sha256 <copied-context-hash> --portal-prompt-sha256 <copied-public-prompt-checksum> --portal-url <origin> --organization-id <org> --setup-reference <public-reference> --workspace <checkout> [--maximum-provider-cost-cents <1..25>] [--dry-run]. Fetches and verifies canonical public portal instructions; this is not attestation of the enclosing human message. Alternatively, legacy --stdin requires the entire original public prompt and cannot combine with either portal hash. No 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.'
6
- + '\n\nFor an unresolved restoration upload, an empty lookup is not cancellation. With the owned relay stopped, --apply --plan-hash <original-hash> --fence-upload requests metadata-only fencing under current authority. An admitted operation is returned for ordinary recovery; only a terminal server fence permits checkpoint archival and a new dry-run plan. Fencing does not upload source or activate a release.';
6
+ + '\n\nFor an unresolved restoration upload, an empty lookup is not cancellation. With the owned relay stopped, --apply --plan-hash <original-hash> --fence-upload requests metadata-only fencing under current authority. An admitted operation is returned for ordinary recovery; only a terminal server fence permits checkpoint archival and a new dry-run plan. Fencing does not upload source or activate a release.'
7
+ + '\n\nRead-only named-session diagnosis: sessions readiness --name <registered-name> --workspace-id <workspace> --diagnostic. Uses the existing owner and unchanged readiness request; never starts a session, runs a model turn or grants access. A closed local failure receipt exits 2 and is not native readiness or permission to retry/restart. No passwords, socket paths or arbitrary remote errors are returned.';
7
8
  //# sourceMappingURL=usage.js.map
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,+rDAA+rD;MACpuD,0tBAA0tB;MACxtB,8XAA8X;MAC9X,sdAAsd;MACtd,yZAAyZ,CAAC"}
1
+ {"version":3,"file":"usage.js","sourceRoot":"","sources":["../src/usage.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,m2CAAm2C,CAAC;AAE13C,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,GAAG,+rDAA+rD;MACpuD,0tBAA0tB;MACxtB,8XAA8X;MAC9X,sdAAsd;MACtd,yZAAyZ;MACzZ,yZAAyZ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dharma-ai-labs/agent-fabric",
3
- "version": "0.2.207",
3
+ "version": "0.2.208",
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",