@dharma-ai-labs/agent-fabric 0.2.112 → 0.2.114

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.
@@ -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: 'workspace_test', organizationId: 'org_test', name: 'repo', path: canonicalWorkspace,
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' });