@cloop/runner 0.2.1 → 0.2.2
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-HBQ4ZM2Y.js → box-BS6BSQUO.js} +15 -7
- package/dist/{chunk-OKF4BDBH.js → chunk-7BREDPJD.js} +1 -1
- package/dist/{chunk-2ZVYM4JU.js → chunk-7PUGLQL2.js} +933 -1432
- package/dist/{chunk-AQGBNKUG.js → chunk-F36GGCXC.js} +1 -1
- package/dist/chunk-M6MHMCV6.js +336 -0
- package/dist/chunk-R3CLO2FB.js +301 -0
- package/dist/chunk-TFZSCXSS.js +569 -0
- package/dist/{connect-LRQ4C3KK.js → connect-WRQN37SU.js} +5 -3
- package/dist/{disconnect-FQ6ODTTE.js → disconnect-KTII7TXC.js} +8 -4
- package/dist/index.js +17 -11
- package/dist/{login-4GUYT5MR.js → login-CUQR2MBW.js} +2 -2
- package/dist/{mcp-server-TV7MHVHZ.js → mcp-server-YDRR6DYJ.js} +5 -5
- package/dist/read-permissions-SPOKGVLO.js +17 -0
- package/dist/runner-WW5OU2YU.js +13 -0
- package/dist/{statusline-6JMHIL54.js → statusline-SLP4CAFB.js} +1 -1
- package/package.json +1 -1
- package/dist/runner-5H7ECAZ6.js +0 -147
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
LocalDriver
|
|
4
|
+
} from "./chunk-TFZSCXSS.js";
|
|
2
5
|
import {
|
|
3
6
|
MeshSocket,
|
|
4
7
|
defaultSocketFactory
|
|
@@ -6,7 +9,6 @@ import {
|
|
|
6
9
|
import {
|
|
7
10
|
BoxWatch,
|
|
8
11
|
DEFAULT_FALLBACK_MODEL,
|
|
9
|
-
LocalDriver,
|
|
10
12
|
T3Client,
|
|
11
13
|
T3Driver,
|
|
12
14
|
claudeDialect,
|
|
@@ -16,19 +18,22 @@ import {
|
|
|
16
18
|
lockThreadsFile,
|
|
17
19
|
mintSession,
|
|
18
20
|
probeClaude,
|
|
21
|
+
probeClaudePermissions,
|
|
19
22
|
probeCodex,
|
|
20
23
|
readRunnerConfig,
|
|
21
24
|
runBoxTool,
|
|
22
25
|
threadsFilePath,
|
|
23
26
|
writeBoxConfig,
|
|
24
27
|
writeRunnerState
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-AQGBNKUG.js";
|
|
28
|
+
} from "./chunk-7PUGLQL2.js";
|
|
27
29
|
import {
|
|
28
30
|
getMachine
|
|
29
31
|
} from "./chunk-JX6VG5FE.js";
|
|
32
|
+
import "./chunk-R3CLO2FB.js";
|
|
33
|
+
import "./chunk-M6MHMCV6.js";
|
|
34
|
+
import "./chunk-F36GGCXC.js";
|
|
30
35
|
import "./chunk-AG6SI6I2.js";
|
|
31
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-7BREDPJD.js";
|
|
32
37
|
import {
|
|
33
38
|
getMeshUrl,
|
|
34
39
|
getToken,
|
|
@@ -59,10 +64,13 @@ async function machineHarnesses(cfg) {
|
|
|
59
64
|
]);
|
|
60
65
|
return [claude, codex].filter((h) => h !== null);
|
|
61
66
|
}
|
|
62
|
-
function localDriver(cfg, name) {
|
|
67
|
+
async function localDriver(cfg, name) {
|
|
63
68
|
const bin = cfg.driver === name ? cfg.bin : void 0;
|
|
64
69
|
return new LocalDriver({
|
|
65
|
-
dialect: name === "claude-code" ? claudeDialect(bin, cfg.fallbackModels ?? DEFAULT_FALLBACK_MODEL
|
|
70
|
+
dialect: name === "claude-code" ? claudeDialect(bin, cfg.fallbackModels ?? DEFAULT_FALLBACK_MODEL, cfg.askEverything, {
|
|
71
|
+
...await probeClaudePermissions(bin),
|
|
72
|
+
fullAccess: cfg.fullAccess
|
|
73
|
+
}) : codexDialect(bin, cfg.fullAccess),
|
|
66
74
|
repos: cfg.repos,
|
|
67
75
|
label: cfg.label,
|
|
68
76
|
harnesses: () => machineHarnesses(cfg),
|
|
@@ -103,7 +111,7 @@ async function run() {
|
|
|
103
111
|
out(`${red("\u2717")} Another \`cloop box run\` is running (pid ${lock.heldBy}). Stop it first.`);
|
|
104
112
|
process.exit(1);
|
|
105
113
|
}
|
|
106
|
-
const driver = local && name !== "t3" ? localDriver(local, name) : new T3Driver({
|
|
114
|
+
const driver = local && name !== "t3" ? await localDriver(local, name) : new T3Driver({
|
|
107
115
|
client: () => t3.client,
|
|
108
116
|
t3Bin: isLocal(cfg) ? null : cfg.t3Bin,
|
|
109
117
|
scope: () => cfg && !isLocal(cfg) ? cfg.scope : void 0,
|