@dharma-ai-labs/agent-fabric 0.2.101 → 0.2.103

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.
@@ -872,12 +872,12 @@ test('status reports verified relay state and hides local identifiers by default
872
872
  await writeFile(join(home, 'relay', 'supervisor.pid'), `${process.pid}\n`);
873
873
  await writeFile(join(home, 'relay', 'supervisor-workspace.json'), JSON.stringify({ pid: process.pid, workspaceId: 'workspace_private' }));
874
874
  await writeFile(join(home, 'relay', 'last-successful-poll.json'), JSON.stringify({
875
- at: acknowledgedAt, workspaceId: 'workspace_private', version: '0.2.101',
875
+ at: acknowledgedAt, workspaceId: 'workspace_private', version: '0.2.103',
876
876
  }));
877
877
  const acknowledged = await run(['status']);
878
878
  assert.deepEqual(acknowledged.reconnect, { state: 'acknowledged_recently', lastSuccessfulPollAt: acknowledgedAt });
879
879
  await writeFile(join(home, 'relay', 'last-successful-poll.json'), JSON.stringify({
880
- at: acknowledgedAt, workspaceId: 'foreign_workspace', version: '0.2.101',
880
+ at: acknowledgedAt, workspaceId: 'foreign_workspace', version: '0.2.103',
881
881
  }));
882
882
  const foreign = await run(['status']);
883
883
  assert.deepEqual(foreign.reconnect, { state: 'awaiting_acknowledgement', lastSuccessfulPollAt: null });
@@ -1814,13 +1814,13 @@ test('relay probe opens an authenticated session without polling or leasing work
1814
1814
  },
1815
1815
  openSession: async (version) => {
1816
1816
  sessions += 1;
1817
- assert.equal(version, '0.2.101');
1817
+ assert.equal(version, '0.2.103');
1818
1818
  return { ok: true };
1819
1819
  },
1820
1820
  }));
1821
1821
  assert.equal(sessions, 1);
1822
1822
  assert.deepEqual(result, {
1823
- ok: true, connected: true, organizationId: 'org_test', deviceId: 'device_test', relayVersion: '0.2.101',
1823
+ ok: true, connected: true, organizationId: 'org_test', deviceId: 'device_test', relayVersion: '0.2.103',
1824
1824
  });
1825
1825
  });
1826
1826
  test('relay probe fails closed when the server does not acknowledge the session', async () => {
@@ -26,7 +26,7 @@ test('Linux enable, status and disable preserve an explicit OS registration rece
26
26
  const options = {
27
27
  platform: 'linux', home: join(root, 'dharma'), userHome: root,
28
28
  workspace: join(root, 'repo'), launcher: join(root, 'repo', '.dharma', 'bin', 'dharma'),
29
- policy: join(root, 'repo', '.dharma', 'approved-policy.json'), version: '0.2.101', run,
29
+ policy: join(root, 'repo', '.dharma', 'approved-policy.json'), version: '0.2.102', run,
30
30
  };
31
31
  const installed = await enableRelayAutostart(options);
32
32
  assert.equal(installed.state, 'enabled');
@@ -56,7 +56,7 @@ test('Windows task registration uses the enrolled user without an embedded passw
56
56
  const options = {
57
57
  platform: 'win32', home: join(root, 'dharma'), userHome: root,
58
58
  workspace: 'C:\\Work Space\\repo', launcher: 'C:\\Work Space\\repo\\.dharma\\bin\\dharma.cmd',
59
- policy: 'C:\\Work Space\\repo\\.dharma\\approved-policy.json', version: '0.2.101', run,
59
+ policy: 'C:\\Work Space\\repo\\.dharma\\approved-policy.json', version: '0.2.102', run,
60
60
  };
61
61
  assert.equal((await enableRelayAutostart(options)).state, 'enabled');
62
62
  const script = await readFile(join(root, 'dharma', 'relay', 'autostart.ps1'), 'utf8');
@@ -71,7 +71,7 @@ test('failed OS registration remains unavailable instead of reporting completion
71
71
  const options = {
72
72
  platform: 'linux', home: join(root, 'dharma'), userHome: root,
73
73
  workspace: join(root, 'repo'), launcher: join(root, 'repo', '.dharma', 'bin', 'dharma'),
74
- policy: join(root, 'repo', '.dharma', 'approved-policy.json'), version: '0.2.101',
74
+ policy: join(root, 'repo', '.dharma', 'approved-policy.json'), version: '0.2.102',
75
75
  run: async () => { throw new Error('No systemd user bus'); },
76
76
  };
77
77
  await assert.rejects(enableRelayAutostart(options), /No systemd user bus/);
@@ -85,7 +85,7 @@ test('registration refuses to replace an unmanaged user startup entry', async ()
85
85
  await assert.rejects(enableRelayAutostart({
86
86
  platform: 'linux', home: join(root, 'dharma'), userHome: root,
87
87
  workspace: join(root, 'repo'), launcher: join(root, 'repo', 'dharma'),
88
- policy: join(root, 'repo', 'policy.json'), version: '0.2.101',
88
+ policy: join(root, 'repo', 'policy.json'), version: '0.2.102',
89
89
  run: async () => ({ stdout: '' }),
90
90
  }), /autostart_conflict/);
91
91
  assert.equal(await readFile(unit, 'utf8'), '[Service]\nExecStart=/custom/relay\n');
@@ -95,7 +95,7 @@ test('Windows registration refuses an existing task without an ownership receipt
95
95
  await assert.rejects(enableRelayAutostart({
96
96
  platform: 'win32', home: join(root, 'dharma'), userHome: root,
97
97
  workspace: 'C:\\Work', launcher: 'C:\\Work\\dharma.cmd',
98
- policy: 'C:\\Work\\policy.json', version: '0.2.101',
98
+ policy: 'C:\\Work\\policy.json', version: '0.2.102',
99
99
  run: async (_file, args) => ({ stdout: Buffer.from(args.at(-1) || '', 'base64').toString('utf16le')
100
100
  .includes('Get-ScheduledTask') ? 'exists\n' : '' }),
101
101
  }), /autostart_conflict/);
@@ -59,7 +59,7 @@ function bootstrapDependencies(onboarding) {
59
59
  return { shell: '.dharma/bin/dharma', windows: '.dharma/bin/dharma.cmd' };
60
60
  },
61
61
  dharmaHome: () => '/fixture-home',
62
- VERSION: '0.2.101',
62
+ VERSION: '0.2.102',
63
63
  enableRelayAutostart: async () => { await record('autostart'); return { state: 'enabled', backend: 'systemd-user' }; },
64
64
  verifyAgentFabricSkillInstallation: async () => ({ ready: true }),
65
65
  resolve, dirname,
@@ -181,7 +181,7 @@ async function runActualRelay(f, cycles, diagnostic, holdSourceScan = false) {
181
181
  };
182
182
  const result = await new Script(`${declaration}\nrelayStart(flags);`, { filename: 'synthetic-relay-staging-fixture.js' }).runInNewContext({
183
183
  flags, process: processFixture, performance: { now: () => elapsedMs }, Date, Map, Promise, Number, Error,
184
- VERSION: '0.2.101',
184
+ VERSION: '0.2.102',
185
185
  resolve, mkdir: (path, options) => mkdir(checkedPath(path), options),
186
186
  writeFile: (path, bytes, options) => writeFile(checkedPath(path), bytes, options),
187
187
  rm: (path, options) => rm(checkedPath(path), options),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dharma-ai-labs/agent-fabric",
3
- "version": "0.2.101",
3
+ "version": "0.2.103",
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",