@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.
@@ -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-2ZVYM4JU.js";
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-OKF4BDBH.js";
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) : codexDialect(bin),
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,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/version.ts
4
- var VERSION = true ? "0.2.1" : "0.0.0-dev";
4
+ var VERSION = true ? "0.2.2" : "0.0.0-dev";
5
5
 
6
6
  export {
7
7
  VERSION