@cloop/runner 0.3.23 → 0.3.27
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 +2 -2
- package/dist/box-TENZ3P6J.js +2708 -0
- package/dist/{chunk-YEO27QQP.js → chunk-365HFCQQ.js} +1 -1
- package/dist/{chunk-Z7WF67JW.js → chunk-3OF5FEMG.js} +8 -3
- package/dist/{chunk-RKR55PPC.js → chunk-C6EAR65U.js} +1 -1
- package/dist/{chunk-IITOGOV7.js → chunk-CC2S6H4W.js} +206 -56
- package/dist/{chunk-OZN4V4GC.js → chunk-KDO735VV.js} +5 -5
- package/dist/{chunk-IJH4O27H.js → chunk-KYGYU5G2.js} +65 -2
- package/dist/{chunk-A5SHBJHU.js → chunk-MRP3S5DT.js} +1 -1
- package/dist/{chunk-R3CLO2FB.js → chunk-PKIEWBR7.js} +2 -0
- package/dist/{chunk-TNNAPOD5.js → chunk-PUKYUGWD.js} +121 -81
- package/dist/{chunk-BKPSZTPK.js → chunk-U57DZQSE.js} +1 -1
- package/dist/{chunk-H4WR3GSK.js → chunk-ZYU7Y2SE.js} +6 -6
- package/dist/{connect-5AYRHDDA.js → connect-YAFC76SG.js} +9 -8
- package/dist/{disconnect-UEH44J7T.js → disconnect-AJBQUDE3.js} +9 -8
- package/dist/existing-runner-FWDDD3L2.js +21 -0
- package/dist/{hook-session-start-DJ6W2NCO.js → hook-session-start-5JYNMGX4.js} +5 -1
- package/dist/index.js +24 -24
- package/dist/{login-ECXACUOZ.js → login-TALFCKAD.js} +2 -2
- package/dist/{mcp-server-FMYWDRGP.js → mcp-server-RUK3JL4O.js} +5 -5
- package/dist/{read-permissions-SPOKGVLO.js → read-permissions-EGSGI4HL.js} +1 -1
- package/dist/{runner-PV2WK3ZE.js → runner-GOT6CIJW.js} +3 -3
- package/dist/{runs-JCDJL7WU.js → runs-SUZJHP7M.js} +2 -2
- package/dist/{statusline-TBZIUD3P.js → statusline-XHSO6GCX.js} +1 -1
- package/dist/{takeover-2HUC4IOI.js → takeover-B63GSUZW.js} +4 -4
- package/dist/{use-W45QOQUI.js → use-L4CIPDJZ.js} +10 -9
- package/package.json +2 -2
- package/dist/box-EUWQ7RT5.js +0 -1121
- package/dist/existing-runner-CO7FNUAW.js +0 -20
|
@@ -7,17 +7,18 @@ import {
|
|
|
7
7
|
runnerOrigin,
|
|
8
8
|
stopService,
|
|
9
9
|
unitOrigin
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-CC2S6H4W.js";
|
|
11
|
+
import "./chunk-KYGYU5G2.js";
|
|
12
|
+
import "./chunk-3OF5FEMG.js";
|
|
13
|
+
import "./chunk-PUKYUGWD.js";
|
|
13
14
|
import "./chunk-NTXQLEMQ.js";
|
|
14
15
|
import "./chunk-VK6GV757.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-365HFCQQ.js";
|
|
17
|
+
import "./chunk-PKIEWBR7.js";
|
|
18
|
+
import "./chunk-KDO735VV.js";
|
|
19
|
+
import "./chunk-C6EAR65U.js";
|
|
19
20
|
import "./chunk-ES5BRAKJ.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-U57DZQSE.js";
|
|
21
22
|
import "./chunk-D5UZW42X.js";
|
|
22
23
|
export {
|
|
23
24
|
disconnect,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
existingRunnerEnvironment,
|
|
4
|
+
pinExistingRunner
|
|
5
|
+
} from "./chunk-CC2S6H4W.js";
|
|
6
|
+
import "./chunk-KYGYU5G2.js";
|
|
7
|
+
import "./chunk-3OF5FEMG.js";
|
|
8
|
+
import "./chunk-PUKYUGWD.js";
|
|
9
|
+
import "./chunk-NTXQLEMQ.js";
|
|
10
|
+
import "./chunk-VK6GV757.js";
|
|
11
|
+
import "./chunk-365HFCQQ.js";
|
|
12
|
+
import "./chunk-PKIEWBR7.js";
|
|
13
|
+
import "./chunk-KDO735VV.js";
|
|
14
|
+
import "./chunk-C6EAR65U.js";
|
|
15
|
+
import "./chunk-ES5BRAKJ.js";
|
|
16
|
+
import "./chunk-U57DZQSE.js";
|
|
17
|
+
import "./chunk-D5UZW42X.js";
|
|
18
|
+
export {
|
|
19
|
+
existingRunnerEnvironment,
|
|
20
|
+
pinExistingRunner
|
|
21
|
+
};
|
|
@@ -68,7 +68,11 @@ function buildDigest(tasks, cloops, surface, now = /* @__PURE__ */ new Date()) {
|
|
|
68
68
|
for (const c of cloops) if (c.id && c.label) labelById.set(c.id, c.label);
|
|
69
69
|
const repo = repoCloop(cloops, surface);
|
|
70
70
|
const repoLabel = repo?.label ? sanitizeLabel(repo.label, 40) : "";
|
|
71
|
-
const header =
|
|
71
|
+
const header = [
|
|
72
|
+
`Cloop \u2014 ${tasks.length} open task${tasks.length === 1 ? "" : "s"}`,
|
|
73
|
+
cloops.length ? ` across ${cloops.length} cloops.` : ".",
|
|
74
|
+
repoLabel ? ` This repo maps to cloop "${repoLabel}" (${repo?.open_loops ?? 0} open).` : ""
|
|
75
|
+
].join("");
|
|
72
76
|
const ranked = tasks.map((task, i) => ({ task, i, s: score(task, repo?.id, now) })).sort((a, b) => b.s - a.s || a.i - b.i).slice(0, MAX_ITEMS).map(({ task }) => taskLine(task, labelById, now));
|
|
73
77
|
const assemble = () => [header, TASKS_OPEN, ...ranked, TASKS_CLOSE, UNTRUSTED_NOTE, STANDING_INSTRUCTION].join("\n");
|
|
74
78
|
while (ranked.length > 0 && assemble().length > CHAR_BUDGET) ranked.pop();
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
nodeTooOld
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-365HFCQQ.js";
|
|
5
5
|
import {
|
|
6
6
|
VERSION
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-U57DZQSE.js";
|
|
8
8
|
import {
|
|
9
9
|
applyEnvironmentFlag
|
|
10
10
|
} from "./chunk-D5UZW42X.js";
|
|
@@ -32,7 +32,7 @@ Usage:
|
|
|
32
32
|
cloop connect [--repo <path>]... [--driver t3|claude-code|codex] [--fallback-model <list>]
|
|
33
33
|
[--no-service] [--no-start] [--ask] [--ask-everything] [--t3-pair <link>]
|
|
34
34
|
[--hide-other-threads | --show-other-threads]
|
|
35
|
-
Make this
|
|
35
|
+
Make this computer a Cloop machine: T3 Code, else
|
|
36
36
|
Claude Code or Codex in the folders you name,
|
|
37
37
|
else ~/Cloop. No repository is needed. --ask
|
|
38
38
|
lists your recent checkouts to pick from.
|
|
@@ -43,10 +43,10 @@ Usage:
|
|
|
43
43
|
started yourself; --hide-other-threads hides them
|
|
44
44
|
cloop use t3|claude-code|codex Run Cloop work here with that harness. It reconnects
|
|
45
45
|
this machine, swaps its service, and keeps the choice
|
|
46
|
-
cloop disconnect [--yes] Stop being a Cloop
|
|
47
|
-
this computer on Cloop, remove its service and
|
|
46
|
+
cloop disconnect [--yes] Stop being a Cloop machine in one environment: revoke
|
|
47
|
+
this computer on Cloop, remove its service and machine files
|
|
48
48
|
cloop box connect cloop connect with T3 Code forced
|
|
49
|
-
cloop box run Answer the Cloop Agent's
|
|
49
|
+
cloop box run Answer the Cloop Agent's machine calls (daemon)
|
|
50
50
|
cloop runs List this machine's runs: open ones, and the last 24 hours
|
|
51
51
|
cloop watch [id] Follow a run as it works. No id: the newest open run.
|
|
52
52
|
Stop it from Threads.
|
|
@@ -54,18 +54,18 @@ Usage:
|
|
|
54
54
|
in this terminal. No id: the newest open run.
|
|
55
55
|
cloop resume <id> Open a finished run in Claude Code, in its repository
|
|
56
56
|
cloop runner register --webhook <url> --label <name> [--reactivate] [--rotate-secret]
|
|
57
|
-
Register a cloud
|
|
57
|
+
Register a cloud agent endpoint
|
|
58
58
|
cloop runner verify --label <name>
|
|
59
59
|
Send a fresh verification request
|
|
60
60
|
cloop runner revoke --label <name>
|
|
61
|
-
Revoke a cloud
|
|
61
|
+
Revoke a cloud agent and delete its local secret
|
|
62
62
|
cloop --help Show this help
|
|
63
63
|
|
|
64
64
|
Add --staging to any command to use Cloop staging instead of production.
|
|
65
|
-
A production
|
|
65
|
+
A production machine and a staging machine can run side by side on one computer.
|
|
66
66
|
`;
|
|
67
67
|
async function pinExistingRunner() {
|
|
68
|
-
const { pinExistingRunner: pin } = await import("./existing-runner-
|
|
68
|
+
const { pinExistingRunner: pin } = await import("./existing-runner-FWDDD3L2.js");
|
|
69
69
|
const { note } = pin();
|
|
70
70
|
if (note) console.error(note);
|
|
71
71
|
}
|
|
@@ -73,7 +73,7 @@ async function main() {
|
|
|
73
73
|
switch (command) {
|
|
74
74
|
case "login":
|
|
75
75
|
case "auth": {
|
|
76
|
-
const { loginCommand } = await import("./login-
|
|
76
|
+
const { loginCommand } = await import("./login-TALFCKAD.js");
|
|
77
77
|
await loginCommand(argv);
|
|
78
78
|
break;
|
|
79
79
|
}
|
|
@@ -83,70 +83,70 @@ async function main() {
|
|
|
83
83
|
break;
|
|
84
84
|
}
|
|
85
85
|
case "serve": {
|
|
86
|
-
const { startMcpServer } = await import("./mcp-server-
|
|
86
|
+
const { startMcpServer } = await import("./mcp-server-RUK3JL4O.js");
|
|
87
87
|
await startMcpServer();
|
|
88
88
|
break;
|
|
89
89
|
}
|
|
90
90
|
case "statusline": {
|
|
91
|
-
const { statuslineCommand } = await import("./statusline-
|
|
91
|
+
const { statuslineCommand } = await import("./statusline-XHSO6GCX.js");
|
|
92
92
|
statuslineCommand();
|
|
93
93
|
break;
|
|
94
94
|
}
|
|
95
95
|
case "connect": {
|
|
96
|
-
const { connectCommand } = await import("./connect-
|
|
96
|
+
const { connectCommand } = await import("./connect-YAFC76SG.js");
|
|
97
97
|
await connectCommand(argv.slice(1));
|
|
98
98
|
break;
|
|
99
99
|
}
|
|
100
100
|
case "use": {
|
|
101
|
-
const { useCommand } = await import("./use-
|
|
101
|
+
const { useCommand } = await import("./use-L4CIPDJZ.js");
|
|
102
102
|
process.exitCode = await useCommand(argv.slice(1));
|
|
103
103
|
break;
|
|
104
104
|
}
|
|
105
105
|
case "disconnect": {
|
|
106
|
-
const { disconnectCommand } = await import("./disconnect-
|
|
106
|
+
const { disconnectCommand } = await import("./disconnect-AJBQUDE3.js");
|
|
107
107
|
await disconnectCommand(argv.slice(1));
|
|
108
108
|
break;
|
|
109
109
|
}
|
|
110
110
|
case "box": {
|
|
111
|
-
const { boxCommand } = await import("./box-
|
|
111
|
+
const { boxCommand } = await import("./box-TENZ3P6J.js");
|
|
112
112
|
await boxCommand(argv.slice(1));
|
|
113
113
|
break;
|
|
114
114
|
}
|
|
115
115
|
case "runs": {
|
|
116
116
|
await pinExistingRunner();
|
|
117
|
-
const { runsCommand } = await import("./runs-
|
|
117
|
+
const { runsCommand } = await import("./runs-SUZJHP7M.js");
|
|
118
118
|
process.exitCode = runsCommand();
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
121
121
|
case "watch": {
|
|
122
122
|
await pinExistingRunner();
|
|
123
|
-
const { watchCommand } = await import("./runs-
|
|
123
|
+
const { watchCommand } = await import("./runs-SUZJHP7M.js");
|
|
124
124
|
process.exitCode = await watchCommand(argv.slice(1));
|
|
125
125
|
break;
|
|
126
126
|
}
|
|
127
127
|
case "takeover": {
|
|
128
128
|
await pinExistingRunner();
|
|
129
|
-
const { takeoverCommand } = await import("./takeover-
|
|
129
|
+
const { takeoverCommand } = await import("./takeover-B63GSUZW.js");
|
|
130
130
|
process.exitCode = await takeoverCommand(argv.slice(1));
|
|
131
131
|
break;
|
|
132
132
|
}
|
|
133
133
|
case "resume": {
|
|
134
134
|
await pinExistingRunner();
|
|
135
|
-
const { resumeCommand } = await import("./runs-
|
|
135
|
+
const { resumeCommand } = await import("./runs-SUZJHP7M.js");
|
|
136
136
|
process.exitCode = await resumeCommand(argv.slice(1));
|
|
137
137
|
break;
|
|
138
138
|
}
|
|
139
139
|
case "runner": {
|
|
140
|
-
const { runnerCommand } = await import("./runner-
|
|
140
|
+
const { runnerCommand } = await import("./runner-GOT6CIJW.js");
|
|
141
141
|
await runnerCommand(argv.slice(1));
|
|
142
142
|
break;
|
|
143
143
|
}
|
|
144
144
|
case "hook": {
|
|
145
145
|
if (argv[1] === "runner-permission") {
|
|
146
|
-
const { runnerPermissionHook } = await import("./read-permissions-
|
|
146
|
+
const { runnerPermissionHook } = await import("./read-permissions-EGSGI4HL.js");
|
|
147
147
|
await runnerPermissionHook();
|
|
148
148
|
} else if (argv[1] === "session-start") {
|
|
149
|
-
const { hookSessionStart } = await import("./hook-session-start-
|
|
149
|
+
const { hookSessionStart } = await import("./hook-session-start-5JYNMGX4.js");
|
|
150
150
|
await hookSessionStart();
|
|
151
151
|
} else if (argv[1] === "activity") {
|
|
152
152
|
const { hookActivity } = await import("./hook-activity-GAJ5NABA.js");
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
deviceLogin,
|
|
4
4
|
loginCommand,
|
|
5
5
|
refusalSentence
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-C6EAR65U.js";
|
|
7
7
|
import "./chunk-ES5BRAKJ.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-U57DZQSE.js";
|
|
9
9
|
import "./chunk-D5UZW42X.js";
|
|
10
10
|
export {
|
|
11
11
|
deviceLogin,
|
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
syncInboxPending,
|
|
7
7
|
writeState
|
|
8
8
|
} from "./chunk-6QXNXJ7C.js";
|
|
9
|
-
import {
|
|
10
|
-
MeshSocket,
|
|
11
|
-
defaultSocketFactory
|
|
12
|
-
} from "./chunk-IJH4O27H.js";
|
|
13
9
|
import {
|
|
14
10
|
readSessionState,
|
|
15
11
|
toolPhrase,
|
|
16
12
|
writeSessionState
|
|
17
13
|
} from "./chunk-EVIVOEJY.js";
|
|
14
|
+
import {
|
|
15
|
+
MeshSocket,
|
|
16
|
+
defaultSocketFactory
|
|
17
|
+
} from "./chunk-KYGYU5G2.js";
|
|
18
18
|
import {
|
|
19
19
|
HeartbeatClient,
|
|
20
20
|
detectPlatform,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "./chunk-ES5BRAKJ.js";
|
|
34
34
|
import {
|
|
35
35
|
VERSION
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-U57DZQSE.js";
|
|
37
37
|
import {
|
|
38
38
|
getMeshUrl,
|
|
39
39
|
getToken
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
connectWebhook,
|
|
4
4
|
runnerCommand
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-KDO735VV.js";
|
|
6
|
+
import "./chunk-C6EAR65U.js";
|
|
7
7
|
import "./chunk-ES5BRAKJ.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-U57DZQSE.js";
|
|
9
9
|
import "./chunk-D5UZW42X.js";
|
|
10
10
|
export {
|
|
11
11
|
connectWebhook,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
runsCommand,
|
|
10
10
|
sessionFolder,
|
|
11
11
|
watchCommand
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-MRP3S5DT.js";
|
|
13
|
+
import "./chunk-PUKYUGWD.js";
|
|
14
14
|
import "./chunk-VK6GV757.js";
|
|
15
15
|
import "./chunk-D5UZW42X.js";
|
|
16
16
|
export {
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
takeoverDir,
|
|
10
10
|
writeTakeoverReply,
|
|
11
11
|
writeTakeoverRequest
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-ZYU7Y2SE.js";
|
|
13
|
+
import "./chunk-MRP3S5DT.js";
|
|
14
|
+
import "./chunk-3OF5FEMG.js";
|
|
15
|
+
import "./chunk-PUKYUGWD.js";
|
|
16
16
|
import "./chunk-NTXQLEMQ.js";
|
|
17
17
|
import "./chunk-VK6GV757.js";
|
|
18
18
|
import "./chunk-ES5BRAKJ.js";
|
|
@@ -3,20 +3,21 @@ import {
|
|
|
3
3
|
DRIVER_NAME,
|
|
4
4
|
pinExistingRunner,
|
|
5
5
|
runConnect
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-CC2S6H4W.js";
|
|
7
|
+
import "./chunk-KYGYU5G2.js";
|
|
8
|
+
import "./chunk-3OF5FEMG.js";
|
|
8
9
|
import {
|
|
9
10
|
isLocal,
|
|
10
11
|
readRunnerConfig
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PUKYUGWD.js";
|
|
12
13
|
import "./chunk-NTXQLEMQ.js";
|
|
13
14
|
import "./chunk-VK6GV757.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-365HFCQQ.js";
|
|
16
|
+
import "./chunk-PKIEWBR7.js";
|
|
17
|
+
import "./chunk-KDO735VV.js";
|
|
18
|
+
import "./chunk-C6EAR65U.js";
|
|
18
19
|
import "./chunk-ES5BRAKJ.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-U57DZQSE.js";
|
|
20
21
|
import "./chunk-D5UZW42X.js";
|
|
21
22
|
|
|
22
23
|
// src/commands/use.ts
|
|
@@ -45,7 +46,7 @@ async function useCommand(argv, deps = {}) {
|
|
|
45
46
|
log(`[runner:use] from=${from} to=${driver} outcome=${error ? `failed error=${error}` : "ok"}`);
|
|
46
47
|
if (error) return 1;
|
|
47
48
|
out(
|
|
48
|
-
`${machineNoun(deps.platform ?? process.platform)}'s ${environment}
|
|
49
|
+
`${machineNoun(deps.platform ?? process.platform)}'s ${environment} machine now runs Cloop work in ${DRIVER_NAME[driver]}.`
|
|
49
50
|
);
|
|
50
51
|
return 0;
|
|
51
52
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloop/runner",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.27",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"description": "Make your
|
|
6
|
+
"description": "Make your computer and your agents Cloop machines: device login, the machine daemon, the Cloop MCP server, and Claude Code hooks.",
|
|
7
7
|
"homepage": "https://mycloop.com",
|
|
8
8
|
"bugs": {
|
|
9
9
|
"url": "https://github.com/ClosedLoopTechnologies/clo0p/issues"
|