@dharma-ai-labs/agent-fabric 0.2.62 → 0.2.63
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 +2 -0
- package/dist/index.js +1 -1
- package/dist/index.test.js +2 -2
- package/dist/onboardingContract.test.d.ts +2 -0
- package/dist/onboardingContract.test.d.ts.map +1 -0
- package/dist/onboardingContract.test.js +14 -0
- package/dist/onboardingContract.test.js.map +1 -0
- package/package.json +1 -1
|
@@ -12,6 +12,8 @@ The private setup envelope contains the organization, intended recipient, policy
|
|
|
12
12
|
4. Read the complete JSON result. Verify the organization, member, device, repository identity, provider, and enrollment state. If the command returns a pending or blocked stage, preserve the correlation data and continue only through the supported recovery path.
|
|
13
13
|
5. Confirm provider readiness with `dharma providers list`, enrollment with `dharma status`, and the connected repository with `dharma repositories status --repo . --json`.
|
|
14
14
|
|
|
15
|
+
Do not modify Dharma or customer product code to work around a failed onboarding step. Do not create a workaround pull request. Do not invent credentials, and do not bypass enrollment, weaken device approval, or substitute a local implementation for the released CLI and platform contract. When setup blocks, report the exact failed stage, non-sensitive error, and correlation ID. Continue only through the CLI's supported retry, reconciliation, rollback, or browser-authorized re-enrollment path.
|
|
16
|
+
|
|
15
17
|
Verify the installed native skill with the literal command for the active provider: `dharma skills verify --provider codex --workspace .`, `dharma skills verify --provider claude --workspace .`, `dharma skills verify --provider agy --workspace .`, or `dharma skills verify --provider hermes --workspace .`. The result must say `ready: true`.
|
|
16
18
|
|
|
17
19
|
Do not claim readiness merely because the package installed. Full readiness requires the shared repository package, role registration, first-learning disposition, relay, and synchronization receipts described below.
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ import { adoptRepositoryCandidate, pollRepositoryCandidate, synchronizeRepositor
|
|
|
31
31
|
import { registerRepositoryRoleMetadata, discoverRepositoryRoleMetadata } from './repositoryRoleMetadata.js';
|
|
32
32
|
import { askRepositoryRoleQuestion, readRepositoryRoleReply } from './repositoryRoleQuestion.js';
|
|
33
33
|
import { deriveRepositoryRole } from './repositoryRoleDerivation.js';
|
|
34
|
-
const VERSION = '0.2.
|
|
34
|
+
const VERSION = '0.2.63';
|
|
35
35
|
const USAGE = CLI_USAGE;
|
|
36
36
|
const execFileAsync = promisify(execFile);
|
|
37
37
|
const LOCAL_PROVIDER_IDS = ['codex', 'claude', 'agy', 'hermes'];
|
package/dist/index.test.js
CHANGED
|
@@ -1567,13 +1567,13 @@ test('relay probe opens an authenticated session without polling or leasing work
|
|
|
1567
1567
|
},
|
|
1568
1568
|
openSession: async (version) => {
|
|
1569
1569
|
sessions += 1;
|
|
1570
|
-
assert.equal(version, '0.2.
|
|
1570
|
+
assert.equal(version, '0.2.63');
|
|
1571
1571
|
return { ok: true };
|
|
1572
1572
|
},
|
|
1573
1573
|
}));
|
|
1574
1574
|
assert.equal(sessions, 1);
|
|
1575
1575
|
assert.deepEqual(result, {
|
|
1576
|
-
ok: true, connected: true, organizationId: 'org_test', deviceId: 'device_test', relayVersion: '0.2.
|
|
1576
|
+
ok: true, connected: true, organizationId: 'org_test', deviceId: 'device_test', relayVersion: '0.2.63',
|
|
1577
1577
|
});
|
|
1578
1578
|
});
|
|
1579
1579
|
test('relay probe fails closed when the server does not acknowledge the session', async () => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboardingContract.test.d.ts","sourceRoot":"","sources":["../src/onboardingContract.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import assert from 'node:assert/strict';
|
|
2
|
+
import { readFile } from 'node:fs/promises';
|
|
3
|
+
import test from 'node:test';
|
|
4
|
+
const contractUrl = new URL('../AGENT_FABRIC_ONBOARDING.md', import.meta.url);
|
|
5
|
+
test('the installed onboarding contract forbids product-code workarounds', async () => {
|
|
6
|
+
const contract = await readFile(contractUrl, 'utf8');
|
|
7
|
+
assert.match(contract, /Do not modify Dharma or customer product code/i);
|
|
8
|
+
assert.match(contract, /Do not create a workaround pull request/i);
|
|
9
|
+
assert.match(contract, /Do not invent credentials/i);
|
|
10
|
+
assert.match(contract, /do not bypass enrollment/i);
|
|
11
|
+
assert.match(contract, /exact failed stage, non-sensitive error, and correlation ID/i);
|
|
12
|
+
assert.match(contract, /supported retry, reconciliation, rollback, or browser-authorized re-enrollment/i);
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=onboardingContract.test.js.map
|
|
@@ -0,0 +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;AAC5G,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.
|
|
3
|
+
"version": "0.2.63",
|
|
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",
|