@dharma-ai-labs/agent-fabric 0.2.91 → 0.2.92

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.
@@ -65,6 +65,8 @@ For relevant tasks, consult the installed repository manifest, knowledge catalog
65
65
 
66
66
  Use `dharma skills status --provider <provider> --workspace-id <workspace-id>` and `dharma skills verify --provider <provider> --workspace .` to identify the active signed bundle. Read its `MANIFEST.json`, `knowledge/CATALOG.json`, and included skills through the provider's installed Agent Fabric skill. The repository checkout may also contain a locally initialized catalog; it is not authoritative merely because the file exists. Prefer the active signed release and its source references. Do not edit a managed bundle, catalog, manifest, signature, or trust file in place.
67
67
 
68
+ Exception for a relay-executed peer question: its detached task worktree is not the enrolled workspace. The relay checks the signed bundle before execution and supplies receipt-pinned `.dharma-task-knowledge/MANIFEST.json` and `CATALOG.json` inside that temporary worktree. Read those files as data for the question. Do not run `dharma skills verify --workspace .` there or interpret its generic-bootstrap result as the enrolled device's state. If the provider cannot read the supplied files, report the exact denied operation; do not invent a catalog answer or claim the enrolled bundle is absent.
69
+
68
70
  When a teammate asks what a term means, locate its stable concept ID, canonical name, aliases, definition, status, source references, and release generation. If it is absent or conflicting, answer that it is unresolved and request a governed change. Do not silently treat an extracted historical concept as an approved company lexicon term. An organization's repositories have separate catalogs unless a policy explicitly authorizes cross-repository sharing.
69
71
 
70
72
  To propose a new or corrected term, edit an approved repository source or registered output folder in the normal work branch. A useful definition names the term in a heading, states the meaning and scope, cites the underlying source, distinguishes aliases, and identifies any conflict with existing terminology. Human review may still be required by the repository's lexicon policy. Do not add a fake concept directly to `CATALOG.json`. The running relay observes a stable approved snapshot, evaluates it, and publishes a signed candidate only when policy, disclosure, budget, and quality gates pass. Confirm the candidate/release receipt and that the next signed catalog contains the proposed source reference. A source edit, successful upload, or local snapshot alone is not publication.
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ import { withOnboardingStage } from './onboardingStage.js';
35
35
  import { waitForRepositoryReadiness } from './repositoryReadinessWait.js';
36
36
  import { connectDemoDevice, verifyDemoDevice } from './demoEnrollment.js';
37
37
  import { performDemoPeerAction, withDemoDeviceLock } from './demoPeer.js';
38
- const VERSION = '0.2.91';
38
+ const VERSION = '0.2.92';
39
39
  const USAGE = CLI_USAGE;
40
40
  const execFileAsync = promisify(execFile);
41
41
  const LOCAL_PROVIDER_IDS = ['codex', 'claude', 'agy', 'hermes'];
@@ -1752,13 +1752,13 @@ test('relay probe opens an authenticated session without polling or leasing work
1752
1752
  },
1753
1753
  openSession: async (version) => {
1754
1754
  sessions += 1;
1755
- assert.equal(version, '0.2.91');
1755
+ assert.equal(version, '0.2.92');
1756
1756
  return { ok: true };
1757
1757
  },
1758
1758
  }));
1759
1759
  assert.equal(sessions, 1);
1760
1760
  assert.deepEqual(result, {
1761
- ok: true, connected: true, organizationId: 'org_test', deviceId: 'device_test', relayVersion: '0.2.91',
1761
+ ok: true, connected: true, organizationId: 'org_test', deviceId: 'device_test', relayVersion: '0.2.92',
1762
1762
  });
1763
1763
  });
1764
1764
  test('relay probe fails closed when the server does not acknowledge the session', async () => {
@@ -19,6 +19,9 @@ test('the installed guide names the supported knowledge and peer workflow', asyn
19
19
  assert.match(contract, /repositories reply --workspace-id <workspace-id> --question-id <question-id>/);
20
20
  assert.match(contract, /reads the response rather than manually sending one/);
21
21
  assert.match(contract, /active signed release and its source references/);
22
+ assert.match(contract, /detached task worktree is not the enrolled workspace/);
23
+ assert.match(contract, /Do not run `dharma skills verify --workspace \.` there/);
24
+ assert.match(contract, /report the exact denied operation/);
22
25
  assert.match(contract, /source edit, successful upload, or local snapshot alone is not publication/);
23
26
  assert.doesNotMatch(contract, /dhab_[A-Za-z0-9_-]+/);
24
27
  });
@@ -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,MA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AC,KAAK,CAAC,QAAQ,EAAE,oHAAoH,CAAC,CAAC;IAC7I,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,8EAA8E,CAAC,CAAC;IACvG,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,qDAAqD,CAAC,CAAC;IAC9E,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,iDAAiD,CAAC,CAAC;IAC1E,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,sDAAsD,CAAC,CAAC;IAC/E,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,wDAAwD,CAAC,CAAC;IACjF,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,mCAAmC,CAAC,CAAC;IAC5D,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,4EAA4E,CAAC,CAAC;IACrG,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dharma-ai-labs/agent-fabric",
3
- "version": "0.2.91",
3
+ "version": "0.2.92",
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",