@cloop/runner 0.2.0 → 0.2.1

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.
@@ -3,11 +3,9 @@ import {
3
3
  MeshSocket,
4
4
  defaultSocketFactory
5
5
  } from "./chunk-ZILLDYL4.js";
6
- import {
7
- getMachine
8
- } from "./chunk-HS5CIDQF.js";
9
6
  import {
10
7
  BoxWatch,
8
+ DEFAULT_FALLBACK_MODEL,
11
9
  LocalDriver,
12
10
  T3Client,
13
11
  T3Driver,
@@ -20,20 +18,22 @@ import {
20
18
  probeClaude,
21
19
  probeCodex,
22
20
  readRunnerConfig,
23
- resolveT3Bin,
24
21
  runBoxTool,
25
22
  threadsFilePath,
26
23
  writeBoxConfig,
27
24
  writeRunnerState
28
- } from "./chunk-IIUHGZKX.js";
29
- import "./chunk-CMOMRXTA.js";
30
- import "./chunk-7K5W6ELQ.js";
31
- import "./chunk-4UE33DYW.js";
25
+ } from "./chunk-2ZVYM4JU.js";
26
+ import "./chunk-AQGBNKUG.js";
27
+ import {
28
+ getMachine
29
+ } from "./chunk-JX6VG5FE.js";
30
+ import "./chunk-AG6SI6I2.js";
31
+ import "./chunk-OKF4BDBH.js";
32
32
  import {
33
33
  getMeshUrl,
34
34
  getToken,
35
35
  readCredentials
36
- } from "./chunk-SQJ7ZO4G.js";
36
+ } from "./chunk-3DIGCVL4.js";
37
37
 
38
38
  // src/commands/box.ts
39
39
  var BEAT_MS = 6e4;
@@ -62,7 +62,7 @@ async function machineHarnesses(cfg) {
62
62
  function localDriver(cfg, name) {
63
63
  const bin = cfg.driver === name ? cfg.bin : void 0;
64
64
  return new LocalDriver({
65
- dialect: name === "claude-code" ? claudeDialect(bin) : codexDialect(bin),
65
+ dialect: name === "claude-code" ? claudeDialect(bin, cfg.fallbackModels ?? DEFAULT_FALLBACK_MODEL) : codexDialect(bin),
66
66
  repos: cfg.repos,
67
67
  label: cfg.label,
68
68
  harnesses: () => machineHarnesses(cfg),
@@ -175,9 +175,10 @@ async function run() {
175
175
  try {
176
176
  const disk = readRunnerConfig();
177
177
  const renewed = {
178
- ...await mintSession(cfg.t3Url, resolveT3Bin() ?? cfg.t3Bin),
178
+ ...await mintSession(cfg.t3Url, { stored: cfg.t3Bin }),
179
179
  // Read from disk: `cloop connect` may have replaced it since.
180
- deviceToken: disk?.deviceToken ?? cfg.deviceToken
180
+ deviceToken: disk?.deviceToken ?? cfg.deviceToken,
181
+ ...disk?.origin ?? cfg.origin ? { origin: disk?.origin ?? cfg.origin } : {}
181
182
  };
182
183
  cfg = renewed;
183
184
  writeBoxConfig(renewed);