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.
- package/dist/cli.mjs +8 -8
- package/dist/{commands-CEDpieWm.mjs → commands-BybhJ1PM.mjs} +1 -1
- package/dist/commands-epDnYXvm.mjs +485 -0
- package/dist/index.mjs +1 -1
- package/dist/{package-6u7ghPWS.mjs → package-2nbNnmtP.mjs} +1 -1
- package/dist/package-Do-qvYKJ.mjs +57 -0
- package/dist/run-B2Qt1inb.mjs +3636 -0
- package/dist/{run-DSM8v9Sq.mjs → run-CXI-NE1f.mjs} +3 -1
- package/package.json +1 -1
|
@@ -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();
|