@dharma-ai-labs/agent-fabric 0.2.66 → 0.2.67
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 +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/index.test.js +2 -2
- package/dist/repositorySharedReady.test.d.ts +2 -0
- package/dist/repositorySharedReady.test.d.ts.map +1 -0
- package/dist/repositorySharedReady.test.js +36 -0
- package/dist/repositorySharedReady.test.js.map +1 -0
- package/package.json +1 -1
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.67');
|
|
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.67',
|
|
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":"repositorySharedReady.test.d.ts","sourceRoot":"","sources":["../src/repositorySharedReady.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import assert from 'node:assert/strict';
|
|
2
|
+
import test from 'node:test';
|
|
3
|
+
import { repositorySharedReady } from './index.js';
|
|
4
|
+
const workspace = {
|
|
5
|
+
workspaceId: 'workspace-fixture',
|
|
6
|
+
organizationId: 'org-fixture',
|
|
7
|
+
name: 'fixture',
|
|
8
|
+
path: '/fixture',
|
|
9
|
+
routeHash: 'route-fixture',
|
|
10
|
+
repositoryRemoteHash: null,
|
|
11
|
+
repositoryAgentId: 'agent-fixture',
|
|
12
|
+
repositoryBindingId: 'binding-fixture',
|
|
13
|
+
defaultBranch: 'main',
|
|
14
|
+
status: 'active',
|
|
15
|
+
repositoryPackage: {
|
|
16
|
+
state: 'blocked',
|
|
17
|
+
candidateId: 'candidate-fixture',
|
|
18
|
+
operationId: 'operation-fixture',
|
|
19
|
+
snapshotHash: 'snapshot-fixture',
|
|
20
|
+
sourceManifestHash: 'manifest-fixture',
|
|
21
|
+
releaseId: null,
|
|
22
|
+
generation: 0,
|
|
23
|
+
consolidationMode: 'initial_repository',
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
test('a signed installed release is ready despite a blocked older candidate', async () => {
|
|
27
|
+
assert.equal(await repositorySharedReady(workspace, async () => ({ generation: 10 })), true);
|
|
28
|
+
});
|
|
29
|
+
test('a published candidate alone cannot establish installed readiness', async () => {
|
|
30
|
+
const published = { ...workspace, repositoryPackage: {
|
|
31
|
+
...workspace.repositoryPackage, state: 'published', releaseId: 'release-fixture', generation: 10,
|
|
32
|
+
} };
|
|
33
|
+
assert.equal(await repositorySharedReady(published, async () => null), false);
|
|
34
|
+
assert.equal(await repositorySharedReady(published, async () => { throw new Error('Invalid signature'); }), false);
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=repositorySharedReady.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repositorySharedReady.test.js","sourceRoot":"","sources":["../src/repositorySharedReady.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,SAAS,GAAG;IAChB,WAAW,EAAE,mBAAmB;IAChC,cAAc,E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C;AACrH,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.67",
|
|
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",
|