svamp-cli 0.1.9 → 0.1.11

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.
@@ -2516,6 +2516,7 @@ async function startDaemon() {
2516
2516
  }
2517
2517
  const hyphaToken = process.env.HYPHA_TOKEN;
2518
2518
  const hyphaWorkspace = process.env.HYPHA_WORKSPACE;
2519
+ const hyphaClientId = process.env.HYPHA_CLIENT_ID;
2519
2520
  if (!hyphaToken) {
2520
2521
  logger.log('Warning: No HYPHA_TOKEN set. Run "svamp login" to authenticate.');
2521
2522
  logger.log("Connecting anonymously...");
@@ -2544,7 +2545,8 @@ async function startDaemon() {
2544
2545
  server = await connectToHypha({
2545
2546
  serverUrl: hyphaServerUrl,
2546
2547
  token: hyphaToken,
2547
- name: `svamp-machine-${machineId}`
2548
+ name: `svamp-machine-${machineId}`,
2549
+ ...hyphaClientId ? { clientId: hyphaClientId } : {}
2548
2550
  });
2549
2551
  logger.log(`Connected to Hypha (workspace: ${server.config.workspace})`);
2550
2552
  const pidToTrackedSession = /* @__PURE__ */ new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svamp-cli",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Svamp CLI — AI workspace daemon on Hypha Cloud",
5
5
  "author": "Amun AI AB",
6
6
  "license": "SEE LICENSE IN LICENSE",