@cloop/runner 0.3.7 → 0.3.9
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/{box-IWMUX74G.js → box-V3DFX5TB.js} +77 -45
- package/dist/{chunk-VYM5NYS6.js → chunk-3SIF2NNR.js} +3 -3
- package/dist/{chunk-EQTFHMUJ.js → chunk-5SUC54R3.js} +11 -10
- package/dist/{chunk-5FZAHWPX.js → chunk-6QXNXJ7C.js} +1 -1
- package/dist/{chunk-QP6ZNGU3.js → chunk-AA2SZUIY.js} +366 -233
- package/dist/{chunk-IKCGVBHA.js → chunk-D5UZW42X.js} +1 -0
- package/dist/{chunk-NYGELUTR.js → chunk-ES5BRAKJ.js} +1 -1
- package/dist/{chunk-E5CKL2Q3.js → chunk-EVIVOEJY.js} +1 -1
- package/dist/{chunk-3IP5XIPV.js → chunk-FNJ74LO3.js} +4 -4
- package/dist/{chunk-5L76PKXT.js → chunk-GPQ2MSET.js} +1 -1
- package/dist/{chunk-NUU4GXGV.js → chunk-NTXQLEMQ.js} +1 -1
- package/dist/{chunk-3WD7S6VI.js → chunk-S3AB7HKD.js} +129 -71
- package/dist/{chunk-3TDL6X5T.js → chunk-TEEFTSXG.js} +1 -1
- package/dist/{chunk-PSUEFPEA.js → chunk-XQZO3UE6.js} +3 -3
- package/dist/{connect-QKQAJECG.js → connect-3IS2XXSU.js} +14 -10
- package/dist/disconnect-IMVUEDIP.js +30 -0
- package/dist/existing-runner-DYL2ZND4.js +20 -0
- package/dist/{hook-activity-I7TV7YG7.js → hook-activity-GAJ5NABA.js} +4 -4
- package/dist/{hook-session-start-MFX6HR3W.js → hook-session-start-DJ6W2NCO.js} +3 -3
- package/dist/index.js +32 -21
- package/dist/{install-EMEZBBK7.js → install-WXKWNTAO.js} +1 -1
- package/dist/{login-3IJKY6EZ.js → login-67UJOSXI.js} +4 -4
- package/dist/{mcp-server-H2DF37BP.js → mcp-server-BQIXVJYD.js} +12 -12
- package/dist/runner-2O56SWXN.js +13 -0
- package/dist/{runs-RZL34AFT.js → runs-CMRLRCTD.js} +3 -3
- package/dist/{statusline-I3MT77CR.js → statusline-G6SQFIVR.js} +3 -3
- package/dist/{takeover-V2IHVUAB.js → takeover-HFQOQTLP.js} +7 -7
- package/dist/{use-PB7RVN6H.js → use-XTJPDK4Y.js} +15 -16
- package/package.json +1 -1
- package/dist/disconnect-5FEZUWJP.js +0 -28
- package/dist/runner-5G4CLAXF.js +0 -13
package/dist/index.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-UBXT5IDU.js";
|
|
5
5
|
import {
|
|
6
6
|
VERSION
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GPQ2MSET.js";
|
|
8
8
|
import {
|
|
9
9
|
applyEnvironmentFlag
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-D5UZW42X.js";
|
|
11
11
|
|
|
12
12
|
// src/index.ts
|
|
13
13
|
var oldNode = nodeTooOld();
|
|
@@ -30,11 +30,12 @@ Usage:
|
|
|
30
30
|
cloop hook session-start Claude Code SessionStart hook (reads JSON on stdin)
|
|
31
31
|
cloop hook activity Lifecycle hook: records what this session is doing
|
|
32
32
|
cloop connect [--repo <path>]... [--driver t3|claude-code|codex] [--fallback-model <list>]
|
|
33
|
-
[--no-service] [--no-start] [--ask-everything] [--t3-pair <link>]
|
|
33
|
+
[--no-service] [--no-start] [--ask] [--ask-everything] [--t3-pair <link>]
|
|
34
34
|
[--hide-other-threads | --show-other-threads]
|
|
35
35
|
Make this machine a Cloop runner: T3 Code, else
|
|
36
36
|
Claude Code or Codex in the folders you name,
|
|
37
|
-
else ~/Cloop. No repository is needed.
|
|
37
|
+
else ~/Cloop. No repository is needed. --ask
|
|
38
|
+
lists your recent checkouts to pick from.
|
|
38
39
|
When T3 Code will not pair by itself, paste a
|
|
39
40
|
link from T3 Code (Settings, Connections,
|
|
40
41
|
Create pairing link) at the question, or pass
|
|
@@ -42,8 +43,8 @@ Usage:
|
|
|
42
43
|
started yourself; --hide-other-threads hides them
|
|
43
44
|
cloop use t3|claude-code|codex Run Cloop work here with that harness. It reconnects
|
|
44
45
|
this machine, swaps its service, and keeps the choice
|
|
45
|
-
cloop disconnect [--yes] Stop being a Cloop runner
|
|
46
|
-
Cloop, remove its service and runner files
|
|
46
|
+
cloop disconnect [--yes] Stop being a Cloop runner in one environment: revoke
|
|
47
|
+
this computer on Cloop, remove its service and runner files
|
|
47
48
|
cloop box connect cloop connect with T3 Code forced
|
|
48
49
|
cloop box run Answer the Cloop Agent's runner calls (daemon)
|
|
49
50
|
cloop runs List this machine's runs: open ones, and the last 24 hours
|
|
@@ -61,72 +62,82 @@ Usage:
|
|
|
61
62
|
cloop --help Show this help
|
|
62
63
|
|
|
63
64
|
Add --staging to any command to use Cloop staging instead of production.
|
|
65
|
+
A production runner and a staging runner can run side by side on one machine.
|
|
64
66
|
`;
|
|
67
|
+
async function pinExistingRunner() {
|
|
68
|
+
const { pinExistingRunner: pin } = await import("./existing-runner-DYL2ZND4.js");
|
|
69
|
+
const { note } = pin();
|
|
70
|
+
if (note) console.error(note);
|
|
71
|
+
}
|
|
65
72
|
async function main() {
|
|
66
73
|
switch (command) {
|
|
67
74
|
case "login":
|
|
68
75
|
case "auth": {
|
|
69
|
-
const { loginCommand } = await import("./login-
|
|
76
|
+
const { loginCommand } = await import("./login-67UJOSXI.js");
|
|
70
77
|
await loginCommand(argv);
|
|
71
78
|
break;
|
|
72
79
|
}
|
|
73
80
|
case "install": {
|
|
74
|
-
const { installCommand } = await import("./install-
|
|
81
|
+
const { installCommand } = await import("./install-WXKWNTAO.js");
|
|
75
82
|
installCommand(argv);
|
|
76
83
|
break;
|
|
77
84
|
}
|
|
78
85
|
case "serve": {
|
|
79
|
-
const { startMcpServer } = await import("./mcp-server-
|
|
86
|
+
const { startMcpServer } = await import("./mcp-server-BQIXVJYD.js");
|
|
80
87
|
await startMcpServer();
|
|
81
88
|
break;
|
|
82
89
|
}
|
|
83
90
|
case "statusline": {
|
|
84
|
-
const { statuslineCommand } = await import("./statusline-
|
|
91
|
+
const { statuslineCommand } = await import("./statusline-G6SQFIVR.js");
|
|
85
92
|
statuslineCommand();
|
|
86
93
|
break;
|
|
87
94
|
}
|
|
88
95
|
case "connect": {
|
|
89
|
-
const { connectCommand } = await import("./connect-
|
|
96
|
+
const { connectCommand } = await import("./connect-3IS2XXSU.js");
|
|
90
97
|
await connectCommand(argv.slice(1));
|
|
91
98
|
break;
|
|
92
99
|
}
|
|
93
100
|
case "use": {
|
|
94
|
-
const { useCommand } = await import("./use-
|
|
101
|
+
const { useCommand } = await import("./use-XTJPDK4Y.js");
|
|
95
102
|
process.exitCode = await useCommand(argv.slice(1));
|
|
96
103
|
break;
|
|
97
104
|
}
|
|
98
105
|
case "disconnect": {
|
|
99
|
-
const { disconnectCommand } = await import("./disconnect-
|
|
106
|
+
const { disconnectCommand } = await import("./disconnect-IMVUEDIP.js");
|
|
100
107
|
await disconnectCommand(argv.slice(1));
|
|
101
108
|
break;
|
|
102
109
|
}
|
|
103
110
|
case "box": {
|
|
104
|
-
const { boxCommand } = await import("./box-
|
|
111
|
+
const { boxCommand } = await import("./box-V3DFX5TB.js");
|
|
105
112
|
await boxCommand(argv.slice(1));
|
|
106
113
|
break;
|
|
107
114
|
}
|
|
108
115
|
case "runs": {
|
|
109
|
-
|
|
116
|
+
await pinExistingRunner();
|
|
117
|
+
const { runsCommand } = await import("./runs-CMRLRCTD.js");
|
|
110
118
|
process.exitCode = runsCommand();
|
|
111
119
|
break;
|
|
112
120
|
}
|
|
113
121
|
case "watch": {
|
|
114
|
-
|
|
122
|
+
await pinExistingRunner();
|
|
123
|
+
const { watchCommand } = await import("./runs-CMRLRCTD.js");
|
|
115
124
|
process.exitCode = await watchCommand(argv.slice(1));
|
|
116
125
|
break;
|
|
117
126
|
}
|
|
118
127
|
case "takeover": {
|
|
119
|
-
|
|
128
|
+
await pinExistingRunner();
|
|
129
|
+
const { takeoverCommand } = await import("./takeover-HFQOQTLP.js");
|
|
120
130
|
process.exitCode = await takeoverCommand(argv.slice(1));
|
|
121
131
|
break;
|
|
122
132
|
}
|
|
123
133
|
case "resume": {
|
|
124
|
-
|
|
134
|
+
await pinExistingRunner();
|
|
135
|
+
const { resumeCommand } = await import("./runs-CMRLRCTD.js");
|
|
125
136
|
process.exitCode = await resumeCommand(argv.slice(1));
|
|
126
137
|
break;
|
|
127
138
|
}
|
|
128
139
|
case "runner": {
|
|
129
|
-
const { runnerCommand } = await import("./runner-
|
|
140
|
+
const { runnerCommand } = await import("./runner-2O56SWXN.js");
|
|
130
141
|
await runnerCommand(argv.slice(1));
|
|
131
142
|
break;
|
|
132
143
|
}
|
|
@@ -135,10 +146,10 @@ async function main() {
|
|
|
135
146
|
const { runnerPermissionHook } = await import("./read-permissions-SPOKGVLO.js");
|
|
136
147
|
await runnerPermissionHook();
|
|
137
148
|
} else if (argv[1] === "session-start") {
|
|
138
|
-
const { hookSessionStart } = await import("./hook-session-start-
|
|
149
|
+
const { hookSessionStart } = await import("./hook-session-start-DJ6W2NCO.js");
|
|
139
150
|
await hookSessionStart();
|
|
140
151
|
} else if (argv[1] === "activity") {
|
|
141
|
-
const { hookActivity } = await import("./hook-activity-
|
|
152
|
+
const { hookActivity } = await import("./hook-activity-GAJ5NABA.js");
|
|
142
153
|
await hookActivity();
|
|
143
154
|
} else {
|
|
144
155
|
console.error(`Unknown hook: ${argv[1] ?? "(none)"}`);
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
deviceLogin,
|
|
4
4
|
loginCommand,
|
|
5
5
|
refusalSentence
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-XQZO3UE6.js";
|
|
7
|
+
import "./chunk-ES5BRAKJ.js";
|
|
8
|
+
import "./chunk-GPQ2MSET.js";
|
|
9
|
+
import "./chunk-D5UZW42X.js";
|
|
10
10
|
export {
|
|
11
11
|
deviceLogin,
|
|
12
12
|
loginCommand,
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
appendInbox,
|
|
4
|
+
drainInbox,
|
|
5
|
+
readInbox,
|
|
6
|
+
syncInboxPending,
|
|
7
|
+
writeState
|
|
8
|
+
} from "./chunk-6QXNXJ7C.js";
|
|
2
9
|
import {
|
|
3
10
|
MeshSocket,
|
|
4
11
|
defaultSocketFactory
|
|
@@ -7,14 +14,7 @@ import {
|
|
|
7
14
|
readSessionState,
|
|
8
15
|
toolPhrase,
|
|
9
16
|
writeSessionState
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
appendInbox,
|
|
13
|
-
drainInbox,
|
|
14
|
-
readInbox,
|
|
15
|
-
syncInboxPending,
|
|
16
|
-
writeState
|
|
17
|
-
} from "./chunk-5FZAHWPX.js";
|
|
17
|
+
} from "./chunk-EVIVOEJY.js";
|
|
18
18
|
import {
|
|
19
19
|
HeartbeatClient,
|
|
20
20
|
detectPlatform,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
getName,
|
|
23
23
|
getSurface,
|
|
24
24
|
newSessionKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NTXQLEMQ.js";
|
|
26
26
|
import {
|
|
27
27
|
sanitizeLabel,
|
|
28
28
|
sanitizeUntrusted
|
|
@@ -30,14 +30,14 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
ReauthError,
|
|
32
32
|
api
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ES5BRAKJ.js";
|
|
34
34
|
import {
|
|
35
35
|
VERSION
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GPQ2MSET.js";
|
|
37
37
|
import {
|
|
38
38
|
getMeshUrl,
|
|
39
39
|
getToken
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-D5UZW42X.js";
|
|
41
41
|
|
|
42
42
|
// src/mcp-server.ts
|
|
43
43
|
import { Server } from "@modelcontextprotocol/server";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
connectWebhook,
|
|
4
|
+
runnerCommand
|
|
5
|
+
} from "./chunk-3SIF2NNR.js";
|
|
6
|
+
import "./chunk-XQZO3UE6.js";
|
|
7
|
+
import "./chunk-ES5BRAKJ.js";
|
|
8
|
+
import "./chunk-GPQ2MSET.js";
|
|
9
|
+
import "./chunk-D5UZW42X.js";
|
|
10
|
+
export {
|
|
11
|
+
connectWebhook,
|
|
12
|
+
runnerCommand
|
|
13
|
+
};
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
runsCommand,
|
|
9
9
|
sessionFolder,
|
|
10
10
|
watchCommand
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-TEEFTSXG.js";
|
|
12
|
+
import "./chunk-S3AB7HKD.js";
|
|
13
13
|
import "./chunk-VK6GV757.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-D5UZW42X.js";
|
|
15
15
|
export {
|
|
16
16
|
findRun,
|
|
17
17
|
lastLines,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readState
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6QXNXJ7C.js";
|
|
5
5
|
import {
|
|
6
6
|
sanitizeLabel
|
|
7
7
|
} from "./chunk-VK6GV757.js";
|
|
8
8
|
import {
|
|
9
9
|
VERSION
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GPQ2MSET.js";
|
|
11
11
|
import {
|
|
12
12
|
getToken
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D5UZW42X.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/statusline.ts
|
|
16
16
|
var FRESH_MS = 2 * 60 * 1e3;
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
takeoverDir,
|
|
10
10
|
writeTakeoverReply,
|
|
11
11
|
writeTakeoverRequest
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-FNJ74LO3.js";
|
|
13
|
+
import "./chunk-TEEFTSXG.js";
|
|
14
|
+
import "./chunk-5SUC54R3.js";
|
|
15
|
+
import "./chunk-S3AB7HKD.js";
|
|
16
|
+
import "./chunk-NTXQLEMQ.js";
|
|
17
17
|
import "./chunk-VK6GV757.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-ES5BRAKJ.js";
|
|
19
|
+
import "./chunk-D5UZW42X.js";
|
|
20
20
|
export {
|
|
21
21
|
endInFile,
|
|
22
22
|
replyPath,
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
DRIVER_NAME,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
pinExistingRunner,
|
|
5
|
+
runConnect
|
|
6
|
+
} from "./chunk-AA2SZUIY.js";
|
|
7
|
+
import "./chunk-5SUC54R3.js";
|
|
8
8
|
import {
|
|
9
9
|
isLocal,
|
|
10
10
|
readRunnerConfig
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-NUU4GXGV.js";
|
|
11
|
+
} from "./chunk-S3AB7HKD.js";
|
|
12
|
+
import "./chunk-NTXQLEMQ.js";
|
|
14
13
|
import "./chunk-VK6GV757.js";
|
|
14
|
+
import "./chunk-UBXT5IDU.js";
|
|
15
15
|
import "./chunk-R3CLO2FB.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import
|
|
21
|
-
pinRunnerEnvironment
|
|
22
|
-
} from "./chunk-IKCGVBHA.js";
|
|
16
|
+
import "./chunk-3SIF2NNR.js";
|
|
17
|
+
import "./chunk-XQZO3UE6.js";
|
|
18
|
+
import "./chunk-ES5BRAKJ.js";
|
|
19
|
+
import "./chunk-GPQ2MSET.js";
|
|
20
|
+
import "./chunk-D5UZW42X.js";
|
|
23
21
|
|
|
24
22
|
// src/commands/use.ts
|
|
25
23
|
var DRIVERS = ["t3", "claude-code", "codex"];
|
|
@@ -39,14 +37,15 @@ async function useCommand(argv, deps = {}) {
|
|
|
39
37
|
out("Usage: cloop use t3|claude-code|codex");
|
|
40
38
|
return 1;
|
|
41
39
|
}
|
|
40
|
+
const { environment, note } = pinExistingRunner();
|
|
41
|
+
if (note) out(note);
|
|
42
42
|
const before = readRunnerConfig();
|
|
43
43
|
const from = before ? before.driver ?? "t3" : "none";
|
|
44
|
-
pinRunnerEnvironment(runnerOrigin());
|
|
45
44
|
const error = await (deps.connect ?? runConnect)(useArgs(driver, argv.slice(1)), deps);
|
|
46
45
|
log(`[runner:use] from=${from} to=${driver} outcome=${error ? `failed error=${error}` : "ok"}`);
|
|
47
46
|
if (error) return 1;
|
|
48
47
|
out(
|
|
49
|
-
`${machineNoun(deps.platform ?? process.platform)} now runs Cloop work in ${DRIVER_NAME[driver]}.`
|
|
48
|
+
`${machineNoun(deps.platform ?? process.platform)}'s ${environment} runner now runs Cloop work in ${DRIVER_NAME[driver]}.`
|
|
50
49
|
);
|
|
51
50
|
return 0;
|
|
52
51
|
}
|
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
DONE_LINE,
|
|
4
|
-
disconnect,
|
|
5
|
-
disconnectCommand,
|
|
6
|
-
disconnectPlan,
|
|
7
|
-
runnerOrigin,
|
|
8
|
-
unitOrigin
|
|
9
|
-
} from "./chunk-QP6ZNGU3.js";
|
|
10
|
-
import "./chunk-EQTFHMUJ.js";
|
|
11
|
-
import "./chunk-3WD7S6VI.js";
|
|
12
|
-
import "./chunk-UBXT5IDU.js";
|
|
13
|
-
import "./chunk-NUU4GXGV.js";
|
|
14
|
-
import "./chunk-VK6GV757.js";
|
|
15
|
-
import "./chunk-R3CLO2FB.js";
|
|
16
|
-
import "./chunk-VYM5NYS6.js";
|
|
17
|
-
import "./chunk-PSUEFPEA.js";
|
|
18
|
-
import "./chunk-NYGELUTR.js";
|
|
19
|
-
import "./chunk-5L76PKXT.js";
|
|
20
|
-
import "./chunk-IKCGVBHA.js";
|
|
21
|
-
export {
|
|
22
|
-
DONE_LINE,
|
|
23
|
-
disconnect,
|
|
24
|
-
disconnectCommand,
|
|
25
|
-
disconnectPlan,
|
|
26
|
-
runnerOrigin,
|
|
27
|
-
unitOrigin
|
|
28
|
-
};
|
package/dist/runner-5G4CLAXF.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
connectWebhook,
|
|
4
|
-
runnerCommand
|
|
5
|
-
} from "./chunk-VYM5NYS6.js";
|
|
6
|
-
import "./chunk-PSUEFPEA.js";
|
|
7
|
-
import "./chunk-NYGELUTR.js";
|
|
8
|
-
import "./chunk-5L76PKXT.js";
|
|
9
|
-
import "./chunk-IKCGVBHA.js";
|
|
10
|
-
export {
|
|
11
|
-
connectWebhook,
|
|
12
|
-
runnerCommand
|
|
13
|
-
};
|