@dharma-ai-labs/agent-fabric 0.2.113 → 0.2.115
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 +70 -25
- package/dist/index.js.map +1 -1
- package/dist/index.test.js +5 -1
- package/dist/index.test.js.map +1 -1
- package/dist/onboardingWorkspace.d.ts +24 -0
- package/dist/onboardingWorkspace.d.ts.map +1 -0
- package/dist/onboardingWorkspace.js +32 -0
- package/dist/onboardingWorkspace.js.map +1 -0
- package/dist/onboardingWorkspace.test.d.ts +2 -0
- package/dist/onboardingWorkspace.test.d.ts.map +1 -0
- package/dist/onboardingWorkspace.test.js +50 -0
- package/dist/onboardingWorkspace.test.js.map +1 -0
- package/dist/relaySupervisor.test.js +7 -2
- package/dist/relaySupervisor.test.js.map +1 -1
- package/dist/skillPreparationCache.test.js +6 -1
- package/dist/skillPreparationCache.test.js.map +1 -1
- package/dist/skillSyncPolicy.test.js +67 -25
- package/dist/skillSyncPolicy.test.js.map +1 -1
- package/package.json +1 -1
package/dist/index.test.js
CHANGED
|
@@ -11,6 +11,7 @@ import { acceptedTrajectoryHead, activateAgyPlugin, attestAgySkillActivation, at
|
|
|
11
11
|
import { canonicalize, signCanonicalObject } from '@dharma-ai-labs/agent-fabric-contracts';
|
|
12
12
|
import { buildTrajectoryCapsule, trajectoryCapsuleHash } from '@dharma-ai-labs/agent-fabric-evidence-reduction';
|
|
13
13
|
import { CLI_USAGE } from './usage.js';
|
|
14
|
+
import { workspaceIdForDevice } from './onboardingWorkspace.js';
|
|
14
15
|
import { isSupportedNodeVersion, launchWithRuntime, nodeRuntimeCandidates, runtimeBootstrapHint, } from './runtime-bootstrap.js';
|
|
15
16
|
test('installation identity is durable per DHARMA_HOME and rejects corrupt state', async () => {
|
|
16
17
|
const root = await mkdtemp(join(tmpdir(), 'dharma-installation-identity-'));
|
|
@@ -969,6 +970,9 @@ test('single capture selects an older session exactly and advances a changing se
|
|
|
969
970
|
await mkdir(workspace);
|
|
970
971
|
await mkdir(sessions);
|
|
971
972
|
const canonicalWorkspace = await realpath(workspace);
|
|
973
|
+
const fixtureWorkspaceId = workspaceIdForDevice({
|
|
974
|
+
organizationId: 'org_test', deviceId: 'device_test', path: canonicalWorkspace,
|
|
975
|
+
});
|
|
972
976
|
const source = join(sessions, 'desktop.jsonl');
|
|
973
977
|
const firstTurn = '019fcaab-6c8e-7432-bfb7-fc63efa3d728';
|
|
974
978
|
const secondTurn = '019fcaac-6c8e-7432-bfb7-fc63efa3d729';
|
|
@@ -990,7 +994,7 @@ test('single capture selects an older session exactly and advances a changing se
|
|
|
990
994
|
relayUrl: 'wss://relay.invalid', enrolledAt: '2026-08-12T00:00:00.000Z',
|
|
991
995
|
}));
|
|
992
996
|
await writeFile(join(home, 'registry', 'workspaces.json'), JSON.stringify([{
|
|
993
|
-
workspaceId:
|
|
997
|
+
workspaceId: fixtureWorkspaceId, organizationId: 'org_test', name: 'repo', path: canonicalWorkspace,
|
|
994
998
|
routeHash: 'route', repositoryRemoteHash: null, defaultBranch: null, status: 'active',
|
|
995
999
|
}]));
|
|
996
1000
|
const generated = await materializeWorkspacePolicy({ workspace, organizationId: 'org_test', revision: 'policy_test' });
|