@scp-dev/cli 0.1.0 → 0.1.3
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/README.md +10 -6
- package/dist/{chunk-DA3EB2YF.js → chunk-3PGDKPRN.js} +4 -59
- package/dist/{chunk-6UFMKYPH.js → chunk-5UWLTO2Y.js} +4 -4
- package/dist/{spawn-7P4EMSVB.js → chunk-ABP5AKFH.js} +119 -54
- package/dist/{chunk-RO7CUOOH.js → chunk-ABR5UABL.js} +16 -7
- package/dist/{chunk-4QYUPPGV.js → chunk-BUC5G5PY.js} +3 -3
- package/dist/{chunk-O4J5G2X7.js → chunk-IH2RJRIW.js} +6 -5
- package/dist/{chunk-IE5VI25P.js → chunk-KN7WEIE4.js} +1 -1
- package/dist/chunk-M2DCR2J4.js +63 -0
- package/dist/{chunk-WSLKRAB7.js → chunk-QQZF5TQD.js} +4 -4
- package/dist/{chunk-7KP6TAJW.js → chunk-URSBFDR6.js} +9 -5
- package/dist/claude-5WTICOYS.js +88 -0
- package/dist/cli.js +1 -1
- package/dist/daemon-SUTLTY5U.js +52 -0
- package/dist/{hooks-MBKU56HG.js → hooks-4YVIPZKE.js} +3 -2
- package/dist/install-4KQQWGGB.js +15 -0
- package/dist/{login-JTRUWG6Q.js → login-5Y3HPSVC.js} +5 -4
- package/dist/{main-QP32TYTL.js → main-PZQAJGHQ.js} +124 -31
- package/dist/{mcp-EQCSCD3X.js → mcp-GI5OMTUT.js} +35 -5
- package/dist/{peek-YCOWBEPD.js → peek-X4SEGEUB.js} +3 -2
- package/dist/{relay-VVJPYVXE.js → relay-W2NFUE2U.js} +4 -3
- package/dist/{remote-3BWFISXJ.js → remote-GC4XN44U.js} +5 -4
- package/dist/{setup-T4ZZKV7K.js → setup-UF4AA6RO.js} +8 -5
- package/dist/spawn-KT5235WX.js +75 -0
- package/dist/{up-Z4RSJMED.js → up-VA54QWA6.js} +8 -7
- package/package.json +5 -5
- package/dist/install-4HATFIFI.js +0 -14
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
agyRules,
|
|
5
5
|
agySettingsFile,
|
|
6
6
|
detectHarnesses,
|
|
7
|
+
entryArgv,
|
|
7
8
|
manifestFile,
|
|
8
9
|
mcpFile,
|
|
9
10
|
mountArgv,
|
|
@@ -14,18 +15,20 @@ import {
|
|
|
14
15
|
verifyMount,
|
|
15
16
|
verifyMusePlugin,
|
|
16
17
|
whichOnPath
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-IH2RJRIW.js";
|
|
19
|
+
import "./chunk-QQZF5TQD.js";
|
|
20
|
+
import "./chunk-URSBFDR6.js";
|
|
21
|
+
import "./chunk-ABR5UABL.js";
|
|
21
22
|
import "./chunk-YYSLYVNZ.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-3PGDKPRN.js";
|
|
24
|
+
import "./chunk-M2DCR2J4.js";
|
|
23
25
|
export {
|
|
24
26
|
SETUP_HARNESSES,
|
|
25
27
|
SETUP_HELP,
|
|
26
28
|
agyRules,
|
|
27
29
|
agySettingsFile,
|
|
28
30
|
detectHarnesses,
|
|
31
|
+
entryArgv,
|
|
29
32
|
manifestFile,
|
|
30
33
|
mcpFile,
|
|
31
34
|
mountArgv,
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MESSAGING,
|
|
3
|
+
SPAWN_RUNNER,
|
|
4
|
+
STDIN_WAIT_MS,
|
|
5
|
+
agentShell,
|
|
6
|
+
agyNote,
|
|
7
|
+
claudeTranscripts,
|
|
8
|
+
closedStdin,
|
|
9
|
+
codexMount,
|
|
10
|
+
codexOverrideAt,
|
|
11
|
+
codexOverrides,
|
|
12
|
+
codexSkipsGitCheck,
|
|
13
|
+
contributorRefusal,
|
|
14
|
+
harnessArgv,
|
|
15
|
+
harnessOutput,
|
|
16
|
+
harnessStdin,
|
|
17
|
+
programAt,
|
|
18
|
+
repliesOutput,
|
|
19
|
+
resumeArgv,
|
|
20
|
+
runHarness,
|
|
21
|
+
spawnCommand,
|
|
22
|
+
spawnDefaults,
|
|
23
|
+
spawnDetached,
|
|
24
|
+
spawnEnvironment,
|
|
25
|
+
spawnPrompt,
|
|
26
|
+
spawnTitle,
|
|
27
|
+
splitSpawn,
|
|
28
|
+
stderrOutput,
|
|
29
|
+
steerArgv,
|
|
30
|
+
transcriptReplies,
|
|
31
|
+
workerName
|
|
32
|
+
} from "./chunk-ABP5AKFH.js";
|
|
33
|
+
import {
|
|
34
|
+
SPAWN_HELP
|
|
35
|
+
} from "./chunk-KN7WEIE4.js";
|
|
36
|
+
import "./chunk-IH2RJRIW.js";
|
|
37
|
+
import "./chunk-QQZF5TQD.js";
|
|
38
|
+
import "./chunk-URSBFDR6.js";
|
|
39
|
+
import "./chunk-ABR5UABL.js";
|
|
40
|
+
import "./chunk-YYSLYVNZ.js";
|
|
41
|
+
import "./chunk-3PGDKPRN.js";
|
|
42
|
+
import "./chunk-M2DCR2J4.js";
|
|
43
|
+
export {
|
|
44
|
+
MESSAGING,
|
|
45
|
+
SPAWN_HELP,
|
|
46
|
+
SPAWN_RUNNER,
|
|
47
|
+
STDIN_WAIT_MS,
|
|
48
|
+
agentShell,
|
|
49
|
+
agyNote,
|
|
50
|
+
claudeTranscripts,
|
|
51
|
+
closedStdin,
|
|
52
|
+
codexMount,
|
|
53
|
+
codexOverrideAt,
|
|
54
|
+
codexOverrides,
|
|
55
|
+
codexSkipsGitCheck,
|
|
56
|
+
contributorRefusal,
|
|
57
|
+
harnessArgv,
|
|
58
|
+
harnessOutput,
|
|
59
|
+
harnessStdin,
|
|
60
|
+
programAt,
|
|
61
|
+
repliesOutput,
|
|
62
|
+
resumeArgv,
|
|
63
|
+
runHarness,
|
|
64
|
+
spawnCommand,
|
|
65
|
+
spawnDefaults,
|
|
66
|
+
spawnDetached,
|
|
67
|
+
spawnEnvironment,
|
|
68
|
+
spawnPrompt,
|
|
69
|
+
spawnTitle,
|
|
70
|
+
splitSpawn,
|
|
71
|
+
stderrOutput,
|
|
72
|
+
steerArgv,
|
|
73
|
+
transcriptReplies,
|
|
74
|
+
workerName
|
|
75
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
activeRelay,
|
|
3
3
|
relayCredential
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BUC5G5PY.js";
|
|
5
5
|
import {
|
|
6
6
|
RelayUsage
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-URSBFDR6.js";
|
|
8
|
+
import "./chunk-3PGDKPRN.js";
|
|
9
|
+
import "./chunk-M2DCR2J4.js";
|
|
9
10
|
|
|
10
11
|
// src/up.ts
|
|
11
12
|
import { CLI_NAME } from "@scp-dev/core";
|
|
@@ -16,19 +17,19 @@ async function up(positionals, values, cwd, brokerStatus) {
|
|
|
16
17
|
const { url } = activeRelay(process.env);
|
|
17
18
|
const headless = values.token !== void 0 || Boolean(process.env.SCP_TOKEN?.trim());
|
|
18
19
|
if (headless || !relayCredential(process.env, url).token) {
|
|
19
|
-
const code = await (await import("./login-
|
|
20
|
+
const code = await (await import("./login-5Y3HPSVC.js")).login({
|
|
20
21
|
...values.token !== void 0 ? { token: values.token } : {},
|
|
21
22
|
...values.label !== void 0 ? { label: values.label } : {},
|
|
22
23
|
...values["no-browser"] ? { "no-browser": true } : {}
|
|
23
24
|
});
|
|
24
25
|
if (code !== 0) return code;
|
|
25
26
|
} else out(`already logged in to ${url}`);
|
|
26
|
-
const enabled = await (await import("./remote-
|
|
27
|
+
const enabled = await (await import("./remote-GC4XN44U.js")).cloudMain(["enable"], values.machine !== void 0 ? { machine: values.machine } : {}, brokerStatus);
|
|
27
28
|
if (enabled !== 0) return enabled;
|
|
28
|
-
const setup = (await import("./setup-
|
|
29
|
+
const setup = (await import("./setup-UF4AA6RO.js")).relaySetupCommand(["--write"], cwd, out);
|
|
29
30
|
if (setup !== 0) return setup;
|
|
30
31
|
const broker = await brokerStatus();
|
|
31
|
-
if (!broker.enabled) out(`the broker
|
|
32
|
+
if (!broker.enabled) out(`the broker is still local-only; run \`${CLI_NAME} daemon restart\` to link it to ${url}`);
|
|
32
33
|
else out(`broker linked to ${broker.url ?? url}${broker.connected ? "" : " (connecting)"}`);
|
|
33
34
|
return 0;
|
|
34
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scp-dev/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "The swarm command line tool.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://scp.dev",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"typecheck": "tsc -p ."
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@scp-dev/core": "0.1.
|
|
28
|
-
"@scp-dev/broker": "0.1.
|
|
29
|
-
"@scp-dev/hub": "0.1.
|
|
30
|
-
"@scp-dev/mcp": "0.1.
|
|
27
|
+
"@scp-dev/core": "0.1.1",
|
|
28
|
+
"@scp-dev/broker": "0.1.2",
|
|
29
|
+
"@scp-dev/hub": "0.1.1",
|
|
30
|
+
"@scp-dev/mcp": "0.1.2",
|
|
31
31
|
"smol-toml": "^1.9.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
package/dist/install-4HATFIFI.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
hooksTarget,
|
|
3
|
-
installHooks,
|
|
4
|
-
mcpInstall
|
|
5
|
-
} from "./chunk-WSLKRAB7.js";
|
|
6
|
-
import "./chunk-7KP6TAJW.js";
|
|
7
|
-
import "./chunk-RO7CUOOH.js";
|
|
8
|
-
import "./chunk-YYSLYVNZ.js";
|
|
9
|
-
import "./chunk-DA3EB2YF.js";
|
|
10
|
-
export {
|
|
11
|
-
hooksTarget,
|
|
12
|
-
installHooks,
|
|
13
|
-
mcpInstall
|
|
14
|
-
};
|