@cloop/runner 0.3.57 → 0.3.58
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-GW7CJC47.js → box-ATCVDTJL.js} +4 -4
- package/dist/{chunk-EWCRSUJM.js → chunk-MWIILCSZ.js} +10 -7
- package/dist/{chunk-VXBAFPY4.js → chunk-QO4HCPPB.js} +1 -1
- package/dist/{chunk-6Z22QRZA.js → chunk-TDZ3P5KT.js} +1 -1
- package/dist/{chunk-SOM5GPW2.js → chunk-XCY5UCB7.js} +1 -1
- package/dist/{connect-MDK3N3SN.js → connect-6S3QLFXR.js} +4 -4
- package/dist/{disconnect-6JQ3LYUP.js → disconnect-GICPEOSK.js} +4 -4
- package/dist/{existing-runner-KTQ7QWWS.js → existing-runner-Y3SISSPG.js} +4 -4
- package/dist/index.js +10 -10
- package/dist/{login-5JW54F7H.js → login-GEWUZVTU.js} +2 -2
- package/dist/{mcp-server-NNCIR6YC.js → mcp-server-F7DJULUK.js} +1 -1
- package/dist/{runner-UTOJRU4Y.js → runner-UHVWNHA7.js} +3 -3
- package/dist/{statusline-MSNEKQKH.js → statusline-HAM6WKIK.js} +1 -1
- package/dist/{use-IGVN3B5K.js → use-4RUJG2YI.js} +4 -4
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
systemServices,
|
|
40
40
|
unitFor,
|
|
41
41
|
which
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-MWIILCSZ.js";
|
|
43
43
|
import {
|
|
44
44
|
MeshSocket,
|
|
45
45
|
WAKE_TICK_MS,
|
|
@@ -113,14 +113,14 @@ import {
|
|
|
113
113
|
olderThan
|
|
114
114
|
} from "./chunk-365HFCQQ.js";
|
|
115
115
|
import "./chunk-PKIEWBR7.js";
|
|
116
|
-
import "./chunk-
|
|
117
|
-
import "./chunk-
|
|
116
|
+
import "./chunk-TDZ3P5KT.js";
|
|
117
|
+
import "./chunk-QO4HCPPB.js";
|
|
118
118
|
import {
|
|
119
119
|
getMachine
|
|
120
120
|
} from "./chunk-SBYSVZ7J.js";
|
|
121
121
|
import {
|
|
122
122
|
VERSION
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-XCY5UCB7.js";
|
|
124
124
|
import {
|
|
125
125
|
getMeshUrl,
|
|
126
126
|
getOrigin,
|
|
@@ -64,14 +64,14 @@ import {
|
|
|
64
64
|
} from "./chunk-PKIEWBR7.js";
|
|
65
65
|
import {
|
|
66
66
|
connectWebhook
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-TDZ3P5KT.js";
|
|
68
68
|
import {
|
|
69
69
|
ConnectFailure,
|
|
70
70
|
connectReport,
|
|
71
71
|
deviceLogin,
|
|
72
72
|
newAttempt,
|
|
73
73
|
sendConnectReport
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-QO4HCPPB.js";
|
|
75
75
|
import {
|
|
76
76
|
defaultDeviceName,
|
|
77
77
|
getMachine,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-SBYSVZ7J.js";
|
|
80
80
|
import {
|
|
81
81
|
VERSION
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-XCY5UCB7.js";
|
|
83
83
|
import {
|
|
84
84
|
STAGING_ORIGIN,
|
|
85
85
|
getOrigin,
|
|
@@ -1113,6 +1113,8 @@ var BRANCH_MAX = 300;
|
|
|
1113
1113
|
var TITLE_MAX = 300;
|
|
1114
1114
|
var TASK_TOOL_MAX = 100;
|
|
1115
1115
|
var HOST_ID_MAX = 300;
|
|
1116
|
+
var OWNER_TURNS_HOSTED = 1;
|
|
1117
|
+
var OWNER_TURNS_BARE = 2;
|
|
1116
1118
|
var HOST_NOTICES = [
|
|
1117
1119
|
"Update on pull request",
|
|
1118
1120
|
"Delegated task node",
|
|
@@ -1630,7 +1632,8 @@ var ThreadCapture = class {
|
|
|
1630
1632
|
const cursor = structuredClone(known);
|
|
1631
1633
|
const host = hosts.get(file.sessionId);
|
|
1632
1634
|
if (own.has(file.sessionId)) cursor.verdict = "cloop";
|
|
1633
|
-
|
|
1635
|
+
const need = host ? OWNER_TURNS_HOSTED : OWNER_TURNS_BARE;
|
|
1636
|
+
if (cursor.verdict === "pending" && cursor.ownerTurns >= need) becomeOwner(cursor);
|
|
1634
1637
|
const idle = now - file.mtimeMs >= REPLY_IDLE_MS;
|
|
1635
1638
|
const metaOf = () => threadMeta(cursor.thread, host);
|
|
1636
1639
|
if (cursor.verdict === "cloop" || cursor.verdict === "subagent" || file.size === cursor.offset && !(cursor.open && idle) && !(cursor.verdict === "owner" && JSON.stringify(metaOf()) !== cursor.sentMeta)) {
|
|
@@ -1638,7 +1641,7 @@ var ThreadCapture = class {
|
|
|
1638
1641
|
continue;
|
|
1639
1642
|
}
|
|
1640
1643
|
const turns = [];
|
|
1641
|
-
const consumedAll = readInto(file, cursor, budget, turns);
|
|
1644
|
+
const consumedAll = readInto(file, cursor, budget, turns, need);
|
|
1642
1645
|
if (consumedAll && cursor.verdict === "owner" && cursor.open && idle) close(cursor, turns);
|
|
1643
1646
|
const meta = metaOf();
|
|
1644
1647
|
const metaKey = JSON.stringify(meta);
|
|
@@ -1788,7 +1791,7 @@ function becomeOwner(cursor) {
|
|
|
1788
1791
|
cursor.open = void 0;
|
|
1789
1792
|
cursor.live = void 0;
|
|
1790
1793
|
}
|
|
1791
|
-
function readInto(file, cursor, budget, out2) {
|
|
1794
|
+
function readInto(file, cursor, budget, out2, need) {
|
|
1792
1795
|
for (; ; ) {
|
|
1793
1796
|
let restart = false;
|
|
1794
1797
|
for (const { line: line2, end } of completeLines(file.path, cursor.offset, file.size)) {
|
|
@@ -1803,7 +1806,7 @@ function readInto(file, cursor, budget, out2) {
|
|
|
1803
1806
|
}
|
|
1804
1807
|
fold(cursor, file.logs.parse(record), out2);
|
|
1805
1808
|
if (cursor.verdict === "cloop" || cursor.verdict === "subagent") return false;
|
|
1806
|
-
if (cursor.verdict === "pending" && cursor.ownerTurns >=
|
|
1809
|
+
if (cursor.verdict === "pending" && cursor.ownerTurns >= need) {
|
|
1807
1810
|
becomeOwner(cursor);
|
|
1808
1811
|
restart = true;
|
|
1809
1812
|
break;
|
|
@@ -54,17 +54,17 @@ import {
|
|
|
54
54
|
which,
|
|
55
55
|
workFolder,
|
|
56
56
|
workFolderLine
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-MWIILCSZ.js";
|
|
58
58
|
import "./chunk-BI2Y5ZCL.js";
|
|
59
59
|
import "./chunk-TZDLUM3E.js";
|
|
60
60
|
import "./chunk-XAKDSXMW.js";
|
|
61
61
|
import "./chunk-VK6GV757.js";
|
|
62
62
|
import "./chunk-365HFCQQ.js";
|
|
63
63
|
import "./chunk-PKIEWBR7.js";
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-TDZ3P5KT.js";
|
|
65
|
+
import "./chunk-QO4HCPPB.js";
|
|
66
66
|
import "./chunk-SBYSVZ7J.js";
|
|
67
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-XCY5UCB7.js";
|
|
68
68
|
import "./chunk-D5UZW42X.js";
|
|
69
69
|
export {
|
|
70
70
|
DEFAULT_T3_URL,
|
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
runnerOrigin,
|
|
8
8
|
stopService,
|
|
9
9
|
unitOrigin
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MWIILCSZ.js";
|
|
11
11
|
import "./chunk-BI2Y5ZCL.js";
|
|
12
12
|
import "./chunk-TZDLUM3E.js";
|
|
13
13
|
import "./chunk-XAKDSXMW.js";
|
|
14
14
|
import "./chunk-VK6GV757.js";
|
|
15
15
|
import "./chunk-365HFCQQ.js";
|
|
16
16
|
import "./chunk-PKIEWBR7.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-TDZ3P5KT.js";
|
|
18
|
+
import "./chunk-QO4HCPPB.js";
|
|
19
19
|
import "./chunk-SBYSVZ7J.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-XCY5UCB7.js";
|
|
21
21
|
import "./chunk-D5UZW42X.js";
|
|
22
22
|
export {
|
|
23
23
|
disconnect,
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import {
|
|
3
3
|
existingRunnerEnvironment,
|
|
4
4
|
pinExistingRunner
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MWIILCSZ.js";
|
|
6
6
|
import "./chunk-BI2Y5ZCL.js";
|
|
7
7
|
import "./chunk-TZDLUM3E.js";
|
|
8
8
|
import "./chunk-XAKDSXMW.js";
|
|
9
9
|
import "./chunk-VK6GV757.js";
|
|
10
10
|
import "./chunk-365HFCQQ.js";
|
|
11
11
|
import "./chunk-PKIEWBR7.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-TDZ3P5KT.js";
|
|
13
|
+
import "./chunk-QO4HCPPB.js";
|
|
14
14
|
import "./chunk-SBYSVZ7J.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-XCY5UCB7.js";
|
|
16
16
|
import "./chunk-D5UZW42X.js";
|
|
17
17
|
export {
|
|
18
18
|
existingRunnerEnvironment,
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-365HFCQQ.js";
|
|
5
5
|
import {
|
|
6
6
|
VERSION
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XCY5UCB7.js";
|
|
8
8
|
import {
|
|
9
9
|
applyEnvironmentFlag
|
|
10
10
|
} from "./chunk-D5UZW42X.js";
|
|
@@ -69,7 +69,7 @@ Add --staging to any command to use Cloop staging instead of production.
|
|
|
69
69
|
A production machine and a staging machine can run side by side on one computer.
|
|
70
70
|
`;
|
|
71
71
|
async function pinExistingRunner() {
|
|
72
|
-
const { pinExistingRunner: pin } = await import("./existing-runner-
|
|
72
|
+
const { pinExistingRunner: pin } = await import("./existing-runner-Y3SISSPG.js");
|
|
73
73
|
const { note } = pin();
|
|
74
74
|
if (note) console.error(note);
|
|
75
75
|
}
|
|
@@ -77,7 +77,7 @@ async function main() {
|
|
|
77
77
|
switch (command) {
|
|
78
78
|
case "login":
|
|
79
79
|
case "auth": {
|
|
80
|
-
const { loginCommand } = await import("./login-
|
|
80
|
+
const { loginCommand } = await import("./login-GEWUZVTU.js");
|
|
81
81
|
await loginCommand(argv);
|
|
82
82
|
break;
|
|
83
83
|
}
|
|
@@ -87,32 +87,32 @@ async function main() {
|
|
|
87
87
|
break;
|
|
88
88
|
}
|
|
89
89
|
case "serve": {
|
|
90
|
-
const { startMcpServer } = await import("./mcp-server-
|
|
90
|
+
const { startMcpServer } = await import("./mcp-server-F7DJULUK.js");
|
|
91
91
|
await startMcpServer();
|
|
92
92
|
break;
|
|
93
93
|
}
|
|
94
94
|
case "statusline": {
|
|
95
|
-
const { statuslineCommand } = await import("./statusline-
|
|
95
|
+
const { statuslineCommand } = await import("./statusline-HAM6WKIK.js");
|
|
96
96
|
statuslineCommand();
|
|
97
97
|
break;
|
|
98
98
|
}
|
|
99
99
|
case "connect": {
|
|
100
|
-
const { connectCommand } = await import("./connect-
|
|
100
|
+
const { connectCommand } = await import("./connect-6S3QLFXR.js");
|
|
101
101
|
await connectCommand(argv.slice(1));
|
|
102
102
|
break;
|
|
103
103
|
}
|
|
104
104
|
case "use": {
|
|
105
|
-
const { useCommand } = await import("./use-
|
|
105
|
+
const { useCommand } = await import("./use-4RUJG2YI.js");
|
|
106
106
|
process.exitCode = await useCommand(argv.slice(1));
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
109
|
case "disconnect": {
|
|
110
|
-
const { disconnectCommand } = await import("./disconnect-
|
|
110
|
+
const { disconnectCommand } = await import("./disconnect-GICPEOSK.js");
|
|
111
111
|
await disconnectCommand(argv.slice(1));
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
case "box": {
|
|
115
|
-
const { boxCommand } = await import("./box-
|
|
115
|
+
const { boxCommand } = await import("./box-ATCVDTJL.js");
|
|
116
116
|
await boxCommand(argv.slice(1));
|
|
117
117
|
break;
|
|
118
118
|
}
|
|
@@ -141,7 +141,7 @@ async function main() {
|
|
|
141
141
|
break;
|
|
142
142
|
}
|
|
143
143
|
case "runner": {
|
|
144
|
-
const { runnerCommand } = await import("./runner-
|
|
144
|
+
const { runnerCommand } = await import("./runner-UHVWNHA7.js");
|
|
145
145
|
await runnerCommand(argv.slice(1));
|
|
146
146
|
break;
|
|
147
147
|
}
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
deviceLogin,
|
|
4
4
|
loginCommand,
|
|
5
5
|
refusalSentence
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QO4HCPPB.js";
|
|
7
7
|
import "./chunk-SBYSVZ7J.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-XCY5UCB7.js";
|
|
9
9
|
import "./chunk-D5UZW42X.js";
|
|
10
10
|
export {
|
|
11
11
|
deviceLogin,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
connectWebhook,
|
|
4
4
|
runnerCommand
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-TDZ3P5KT.js";
|
|
6
|
+
import "./chunk-QO4HCPPB.js";
|
|
7
7
|
import "./chunk-SBYSVZ7J.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-XCY5UCB7.js";
|
|
9
9
|
import "./chunk-D5UZW42X.js";
|
|
10
10
|
export {
|
|
11
11
|
connectWebhook,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
DRIVER_NAME,
|
|
4
4
|
pinExistingRunner,
|
|
5
5
|
runConnect
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MWIILCSZ.js";
|
|
7
7
|
import "./chunk-BI2Y5ZCL.js";
|
|
8
8
|
import "./chunk-TZDLUM3E.js";
|
|
9
9
|
import {
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
import "./chunk-VK6GV757.js";
|
|
14
14
|
import "./chunk-365HFCQQ.js";
|
|
15
15
|
import "./chunk-PKIEWBR7.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-TDZ3P5KT.js";
|
|
17
|
+
import "./chunk-QO4HCPPB.js";
|
|
18
18
|
import "./chunk-SBYSVZ7J.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-XCY5UCB7.js";
|
|
20
20
|
import "./chunk-D5UZW42X.js";
|
|
21
21
|
|
|
22
22
|
// src/commands/use.ts
|
package/package.json
CHANGED