svamp-cli 0.1.9 → 0.1.10
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-
|
|
1
|
+
import { s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-CXI-NE1f.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -79,7 +79,7 @@ async function main() {
|
|
|
79
79
|
} else if (subcommand === "--help" || subcommand === "-h" || !subcommand) {
|
|
80
80
|
printHelp();
|
|
81
81
|
} else if (subcommand === "--version" || subcommand === "-v") {
|
|
82
|
-
const pkg = await import('./package-
|
|
82
|
+
const pkg = await import('./package-2nbNnmtP.mjs').catch(() => ({ default: { version: "unknown" } }));
|
|
83
83
|
console.log(`svamp version: ${pkg.default.version}`);
|
|
84
84
|
} else {
|
|
85
85
|
console.error(`Unknown command: ${subcommand}`);
|
|
@@ -94,7 +94,7 @@ async function handleAgentCommand() {
|
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
96
|
if (agentArgs[0] === "list") {
|
|
97
|
-
const { KNOWN_ACP_AGENTS } = await import('./run-
|
|
97
|
+
const { KNOWN_ACP_AGENTS } = await import('./run-CXI-NE1f.mjs').then(function (n) { return n.f; });
|
|
98
98
|
console.log("Known ACP agents:");
|
|
99
99
|
for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
|
|
100
100
|
console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")}`);
|
|
@@ -103,10 +103,10 @@ async function handleAgentCommand() {
|
|
|
103
103
|
console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
|
-
const { resolveAcpAgentConfig } = await import('./run-
|
|
107
|
-
const { AcpBackend } = await import('./run-
|
|
108
|
-
const { GeminiTransport } = await import('./run-
|
|
109
|
-
const { DefaultTransport } = await import('./run-
|
|
106
|
+
const { resolveAcpAgentConfig } = await import('./run-CXI-NE1f.mjs').then(function (n) { return n.f; });
|
|
107
|
+
const { AcpBackend } = await import('./run-CXI-NE1f.mjs').then(function (n) { return n.e; });
|
|
108
|
+
const { GeminiTransport } = await import('./run-CXI-NE1f.mjs').then(function (n) { return n.G; });
|
|
109
|
+
const { DefaultTransport } = await import('./run-CXI-NE1f.mjs').then(function (n) { return n.D; });
|
|
110
110
|
let cwd = process.cwd();
|
|
111
111
|
const filteredArgs = [];
|
|
112
112
|
for (let i = 0; i < agentArgs.length; i++) {
|
|
@@ -235,7 +235,7 @@ async function handleSessionCommand() {
|
|
|
235
235
|
printSessionHelp();
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
|
-
const { sessionList, sessionSpawn, sessionStop, sessionInfo, sessionMessages, sessionAttach } = await import('./commands-
|
|
238
|
+
const { sessionList, sessionSpawn, sessionStop, sessionInfo, sessionMessages, sessionAttach } = await import('./commands-BybhJ1PM.mjs');
|
|
239
239
|
if (sessionSubcommand === "list" || sessionSubcommand === "ls") {
|
|
240
240
|
await sessionList();
|
|
241
241
|
} else if (sessionSubcommand === "spawn") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
import os from 'node:os';
|
|
4
|
-
import { c as connectToHypha } from './run-
|
|
4
|
+
import { c as connectToHypha } from './run-CXI-NE1f.mjs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'fs/promises';
|
|
7
7
|
import 'fs';
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as connectToHypha, d as daemonStatus, g as getHyphaServerUrl, r as registerMachineService, a as registerSessionService, s as startDaemon, b as stopDaemon } from './run-
|
|
1
|
+
export { c as connectToHypha, d as daemonStatus, g as getHyphaServerUrl, r as registerMachineService, a as registerSessionService, s as startDaemon, b as stopDaemon } from './run-CXI-NE1f.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -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();
|