@outerlayer/cli 0.36.0 → 0.36.1-next.20261104133805

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.
Files changed (160) hide show
  1. package/dist/{agent-setup-X7AYIYU2.js → agent-setup-PBHLFTH5.js} +18 -18
  2. package/dist/{agent-subcommand-54OWGFVV.js → agent-subcommand-ASYEDGY2.js} +3 -3
  3. package/dist/{bridge-QJNA3KV6.js → bridge-JYWNVBZW.js} +6 -6
  4. package/dist/{build-4R4PUGPT.js → build-G25G35OY.js} +12 -12
  5. package/dist/{build-disk-LYHGWH4G.js → build-disk-LCBVNYLL.js} +10 -10
  6. package/dist/build-info.json +1 -1
  7. package/dist/{builder-ER6LUZBQ.js → builder-VV5Q3IOR.js} +9 -9
  8. package/dist/caller-GSOX6OEA.js +23 -0
  9. package/dist/{check-27MDV3T5.js → check-3DBOM5UT.js} +52 -52
  10. package/dist/{chunk-H6T73OLF.js → chunk-2A5LRRGL.js} +1 -1
  11. package/dist/{chunk-DE64NSOH.js → chunk-2BUZUDSH.js} +7 -7
  12. package/dist/{chunk-PUEIXGZ4.js → chunk-2CSXFU4A.js} +1 -1
  13. package/dist/{chunk-SRNHGJAV.js → chunk-3GHHGCNU.js} +4 -4
  14. package/dist/{chunk-4KYPJE3D.js → chunk-3NWBJVIL.js} +3 -3
  15. package/dist/{chunk-COPXXXNB.js → chunk-3TEZYUG6.js} +4 -4
  16. package/dist/{chunk-WVZ6EKJ3.js → chunk-3Z5KIYBR.js} +3 -3
  17. package/dist/{chunk-6HMA3FIE.js → chunk-4LA7E3HT.js} +5 -5
  18. package/dist/{chunk-BQUI64BU.js → chunk-4PGTFUTY.js} +1 -1
  19. package/dist/{chunk-X7PK7QRY.js → chunk-5Y7ZBX4U.js} +4 -4
  20. package/dist/{chunk-4YLF777T.js → chunk-6C6WH6KL.js} +1 -1
  21. package/dist/{chunk-I5EZW66W.js → chunk-A72Q4LSP.js} +1 -1
  22. package/dist/{chunk-BOUW2CV6.js → chunk-ALPMGHDV.js} +2 -2
  23. package/dist/{chunk-DSZKDLFU.js → chunk-BCQDEM2N.js} +1 -1
  24. package/dist/{chunk-5MN6VZZH.js → chunk-C47K5UDL.js} +4 -4
  25. package/dist/{chunk-INT54Z2T.js → chunk-CQWXQDAZ.js} +1 -1
  26. package/dist/{chunk-K3GWZRRK.js → chunk-DOSM5H4B.js} +7 -7
  27. package/dist/{chunk-OM3XGJBY.js → chunk-DU2QDWHB.js} +5 -5
  28. package/dist/{chunk-K3GCT2HL.js → chunk-EJ4MVQYZ.js} +4 -4
  29. package/dist/{chunk-DDOD4YOQ.js → chunk-EKPSKSEJ.js} +2 -2
  30. package/dist/{chunk-H5CWIV56.js → chunk-FFJHFOFD.js} +7 -7
  31. package/dist/{chunk-WZOWXDDM.js → chunk-FGA3EXGJ.js} +173 -26
  32. package/dist/{chunk-OHOATH4S.js → chunk-FHKZZHM3.js} +5 -5
  33. package/dist/{chunk-QBDQ64QF.js → chunk-G3JG75DP.js} +2 -2
  34. package/dist/{chunk-LIJMW36Q.js → chunk-GBTHXD74.js} +28 -28
  35. package/dist/{chunk-KRTIYEJI.js → chunk-GPVZFUTD.js} +5 -5
  36. package/dist/{chunk-2I654QYW.js → chunk-GXZTSNVW.js} +3 -3
  37. package/dist/{chunk-2BTDFRRQ.js → chunk-HNKGBQFA.js} +62 -14
  38. package/dist/{chunk-6LPBK4XU.js → chunk-IHW5KZN7.js} +7 -7
  39. package/dist/{chunk-R2DEJ5Q6.js → chunk-IZKRPQIU.js} +5 -5
  40. package/dist/{chunk-PJ5GYGC6.js → chunk-JXHN4E4Q.js} +3 -3
  41. package/dist/{chunk-GAPNTRA5.js → chunk-K72IBKLA.js} +1 -1
  42. package/dist/{chunk-7V4ZEB2R.js → chunk-KNGCCNVO.js} +4 -4
  43. package/dist/{chunk-E6ESLX5E.js → chunk-KQSRABR6.js} +1 -1
  44. package/dist/{chunk-PYPHE6FZ.js → chunk-KWOQTSSZ.js} +1 -1
  45. package/dist/{chunk-IM4VUDKW.js → chunk-KYFMMW65.js} +1 -1
  46. package/dist/{chunk-W3ZKWZ6G.js → chunk-L2J7B7V6.js} +1 -1
  47. package/dist/{chunk-NE2A2ZIY.js → chunk-MA4ZUS4A.js} +1 -1
  48. package/dist/{chunk-S7YLAN2P.js → chunk-MFVANFEJ.js} +2 -2
  49. package/dist/{chunk-W72X24TZ.js → chunk-NKQL3LHK.js} +1 -1
  50. package/dist/{chunk-KJ424QKG.js → chunk-PCIWQUBH.js} +6 -6
  51. package/dist/{chunk-7TZP5JBS.js → chunk-PDBYH3V5.js} +2 -2
  52. package/dist/{chunk-D7TMGSZN.js → chunk-Q7CXOTVR.js} +3 -3
  53. package/dist/{chunk-WRNDC7H7.js → chunk-QQVX4HUP.js} +4 -4
  54. package/dist/{chunk-4HMOBW7H.js → chunk-R6CQLTRC.js} +7 -7
  55. package/dist/{chunk-RYSGOWHG.js → chunk-R6G7OGS6.js} +1 -1
  56. package/dist/{chunk-7HRNYPL3.js → chunk-R6SOMMDQ.js} +1 -1
  57. package/dist/{chunk-B5BLIHJZ.js → chunk-RFNETJEH.js} +3 -3
  58. package/dist/{chunk-45AYMLMT.js → chunk-RJTFSUZI.js} +4 -4
  59. package/dist/{chunk-KQDTORGF.js → chunk-RTPGEOBA.js} +1 -1
  60. package/dist/{chunk-T3MVV6LG.js → chunk-S6AZPAUS.js} +1 -1
  61. package/dist/{chunk-UYXX33HA.js → chunk-SMT2K2AR.js} +3 -3
  62. package/dist/{chunk-MLO33RMW.js → chunk-TADKX7OA.js} +15 -15
  63. package/dist/{chunk-QGUOCNQA.js → chunk-TLVRBSOX.js} +8 -8
  64. package/dist/{chunk-AZXFZGHQ.js → chunk-TYLXRXDY.js} +1 -1
  65. package/dist/{chunk-EKDQDOSS.js → chunk-UDX4B237.js} +1 -1
  66. package/dist/{chunk-GNLAORSW.js → chunk-ULFMR5UJ.js} +3 -3
  67. package/dist/{chunk-7HDI5CGG.js → chunk-ULIDETYK.js} +5 -5
  68. package/dist/{chunk-NDIV6GDC.js → chunk-UN6X7TYJ.js} +1 -1
  69. package/dist/{chunk-T4J5VR7B.js → chunk-UYCK4L43.js} +1 -1
  70. package/dist/{chunk-2HOSCIV6.js → chunk-V6VMFAKC.js} +1 -1
  71. package/dist/{chunk-FDRQZALU.js → chunk-VB6ODZL2.js} +1 -1
  72. package/dist/{chunk-XLCAYPLV.js → chunk-XGGXKR4M.js} +1 -1
  73. package/dist/{chunk-IADJEW5P.js → chunk-YATN35MN.js} +6 -6
  74. package/dist/{chunk-C4OYAXLQ.js → chunk-YMYYRYKE.js} +7 -7
  75. package/dist/{chunk-JJ63MLE5.js → chunk-ZDFZWQUF.js} +1 -1
  76. package/dist/{chunk-ENWGIREE.js → chunk-ZEM4IRBH.js} +5 -5
  77. package/dist/{chunk-Z27IIHHE.js → chunk-ZOT3CD34.js} +25 -25
  78. package/dist/{chunk-PCWNDYQO.js → chunk-ZV5QX3GK.js} +9 -9
  79. package/dist/{claude-launcher-WJ5CVLJR.js → claude-launcher-WZPO6HPI.js} +6 -6
  80. package/dist/{cli-RCLYJFIL.js → cli-5IYZ4KPF.js} +139 -139
  81. package/dist/{command-XGIJADGX.js → command-FJIGATGO.js} +47 -47
  82. package/dist/{config-VHJI645L.js → config-2APX7UB2.js} +11 -11
  83. package/dist/{connect-cmd-CQNECBHI.js → connect-cmd-NA6MMPXY.js} +10 -10
  84. package/dist/{container-start-S5EL4HIH.js → container-start-SUDA7O4K.js} +45 -45
  85. package/dist/{context-cleanup-2SPOGEZR.js → context-cleanup-2PECPCE4.js} +3 -3
  86. package/dist/{context-show-cmd-XODQYX7H.js → context-show-cmd-PCKELSP2.js} +11 -11
  87. package/dist/{control-plane-launch-KIJABWN4.js → control-plane-launch-T33K3464.js} +13 -13
  88. package/dist/{demo-record-cmd-QVK4YUIV.js → demo-record-cmd-6TY4YHDY.js} +7 -7
  89. package/dist/{demo-voice-cmd-4BOI7UDQ.js → demo-voice-cmd-LAYGJR4O.js} +17 -17
  90. package/dist/{dist-LOBYZWOU.js → dist-P4VFDPWT.js} +1 -1
  91. package/dist/{docker-BP7AD65K.js → docker-PS5OVPIF.js} +9 -9
  92. package/dist/{doctor-TZIHEPIW.js → doctor-D6IRPOAQ.js} +47 -47
  93. package/dist/{emit-artifact-cmd-EGFKK4KF.js → emit-artifact-cmd-PQZZORYH.js} +16 -16
  94. package/dist/{emit-cmd-S64A2LJ2.js → emit-cmd-7JNFV35K.js} +6 -6
  95. package/dist/{emit-criteria-cmd-L2YRIRCQ.js → emit-criteria-cmd-HXP5RCRU.js} +13 -13
  96. package/dist/{emit-demo-cmd-QHKUH4Y3.js → emit-demo-cmd-7SGOM2YU.js} +17 -17
  97. package/dist/{emit-finding-cmd-DCEGWYY4.js → emit-finding-cmd-2LEHV4FK.js} +13 -13
  98. package/dist/{emit-result-cmd-WGBZUASN.js → emit-result-cmd-P4NAJ2CH.js} +15 -15
  99. package/dist/{emit-step-cmd-TFKMQZHD.js → emit-step-cmd-K6HYSFGW.js} +13 -13
  100. package/dist/{exec-client-GW5ZI74B.js → exec-client-GEN7MH5Q.js} +7 -7
  101. package/dist/find-unit-UCWO22YS.js +24 -0
  102. package/dist/{findings-cmd-QO7OMGM6.js → findings-cmd-KCDAXNUH.js} +13 -13
  103. package/dist/{fleet-readiness-ZF4UUANH.js → fleet-readiness-OBHMDNEQ.js} +12 -12
  104. package/dist/{governing-source-JYK3VK23.js → governing-source-4PJ6W6RY.js} +18 -18
  105. package/dist/{guest-init-FPRVOOK5.js → guest-init-XN7ZOOK5.js} +8 -8
  106. package/dist/{hook-fast-WLRNPF5S.js → hook-fast-J26JZG67.js} +1 -1
  107. package/dist/{hook-install-TZZNJB4P.js → hook-install-SVEA6RYI.js} +3 -3
  108. package/dist/host-checks-OLB3DXCU.js +79 -0
  109. package/dist/{host-key-WG4KPVLI.js → host-key-V6D7QGRX.js} +7 -7
  110. package/dist/{image-tag-GZW7HJBN.js → image-tag-MAWC5FC5.js} +7 -7
  111. package/dist/index.js +4 -4
  112. package/dist/init-5LCIMEBR.js +79 -0
  113. package/dist/{init-RSKNY7WL.js → init-RTJUSLNZ.js} +43 -43
  114. package/dist/{init-cmd-UD6QSHH2.js → init-cmd-QCLXU6F3.js} +24 -24
  115. package/dist/{init-update-N3WBXLGD.js → init-update-4MNOI44P.js} +21 -21
  116. package/dist/{install-cmd-GJNKXZN2.js → install-cmd-LTIF23I4.js} +9 -9
  117. package/dist/{layout-YSNLYG6U.js → layout-J7NA2HJ3.js} +3 -3
  118. package/dist/{logs-IMTZ733E.js → logs-44SEY5AH.js} +6 -6
  119. package/dist/loop-7T33PKFZ.js +90 -0
  120. package/dist/machine-D7P4L63X.js +79 -0
  121. package/dist/{machine-skills-WOAIOXAQ.js → machine-skills-UOF5X7OU.js} +3 -3
  122. package/dist/{mcp-install-cmd-NFMA6PSL.js → mcp-install-cmd-6CP7ODB4.js} +3 -3
  123. package/dist/{mcp-serve-cmd-27QGBQGR.js → mcp-serve-cmd-QOPRMVCR.js} +8 -8
  124. package/dist/{paths-HV5GP5OV.js → paths-IMTP2VFJ.js} +6 -6
  125. package/dist/pending-6LTQDPDQ.js +18 -0
  126. package/dist/{pidfile-P4DJ2C7S.js → pidfile-2FKC65BM.js} +7 -7
  127. package/dist/{record-UOVUKWPV.js → record-KD3622E7.js} +7 -7
  128. package/dist/{relay-JMCC6IJ4.js → relay-3RRPUZKH.js} +4 -4
  129. package/dist/{relay-protocol-RR5JOWOO.js → relay-protocol-ZFQ3QL76.js} +4 -4
  130. package/dist/{runner-agents-RO4TU5N4.js → runner-agents-3A2SJEZ7.js} +3 -3
  131. package/dist/{runner-env-XX2NZOEJ.js → runner-env-CDNYK5XI.js} +13 -13
  132. package/dist/{runner-identity-HHW4UKYE.js → runner-identity-6UUYHJVJ.js} +9 -9
  133. package/dist/{runner-key-FNNAF36Q.js → runner-key-R5HMAPIW.js} +43 -43
  134. package/dist/{session-sender-4FS2GKAY.js → session-sender-SOYN2W4Z.js} +16 -16
  135. package/dist/{spec-cmd-AAVXNWTV.js → spec-cmd-HVQQ73ST.js} +14 -14
  136. package/dist/{starter-pack-NAR72DKB.js → starter-pack-RI3RMOOM.js} +4 -4
  137. package/dist/{state-IASJSAJV.js → state-LBWBA36C.js} +7 -7
  138. package/dist/{status-FQ5AIDWL.js → status-AGLJZQF2.js} +43 -43
  139. package/dist/{sync-cmd-K3V4D54W.js → sync-cmd-LGYH6DQH.js} +15 -15
  140. package/dist/update-steps-HN2DF4QW.js +80 -0
  141. package/dist/{watch-SAMIKKQC.js → watch-CHUOAXUM.js} +15 -15
  142. package/dist/{work-claim-cmd-PBW4QDJH.js → work-claim-cmd-2LDQQYWT.js} +19 -19
  143. package/dist/{work-cmd-L23VUS4H.js → work-cmd-ALCIHXMP.js} +13 -13
  144. package/dist/{work-comment-cmd-DRBGJAUD.js → work-comment-cmd-OSC5UISU.js} +15 -15
  145. package/dist/{work-demo-cmd-HT72ZB6K.js → work-demo-cmd-EUQ733UV.js} +13 -13
  146. package/dist/{work-logs-cmd-VSWZHEUJ.js → work-logs-cmd-ILW6PUQT.js} +13 -13
  147. package/dist/{work-open-pr-cmd-DOMZJJC3.js → work-open-pr-cmd-6IZNKXUC.js} +14 -14
  148. package/dist/{work-pr-cmd-FC3AJ67Y.js → work-pr-cmd-NC3L2W73.js} +13 -13
  149. package/dist/{work-proofs-cmd-NINHCBZW.js → work-proofs-cmd-24BTANI3.js} +15 -15
  150. package/dist/{work-proofs-record-7XH374TO.js → work-proofs-record-KGB7FN5R.js} +21 -21
  151. package/dist/{work-stop-cmd-J5DXU4BV.js → work-stop-cmd-C6TTKZW3.js} +13 -13
  152. package/package.json +1 -1
  153. package/dist/caller-PCOQRDGJ.js +0 -23
  154. package/dist/find-unit-L2JIUL4D.js +0 -24
  155. package/dist/host-checks-FEYDTZKZ.js +0 -79
  156. package/dist/init-6FLEEVZY.js +0 -79
  157. package/dist/loop-VCH4UOQ4.js +0 -90
  158. package/dist/machine-ZU7XA2IC.js +0 -79
  159. package/dist/pending-4PZIZNR5.js +0 -18
  160. package/dist/update-steps-TR2A4Z6Q.js +0 -80
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-XLCAYPLV.js';
4
- import { ensureHostKey } from './chunk-EKDQDOSS.js';
5
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-PYPHE6FZ.js';
6
- import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-B5BLIHJZ.js';
7
- import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-DDOD4YOQ.js';
8
- import { jobAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-NDIV6GDC.js';
9
- import { defaultAgents } from './chunk-E6ESLX5E.js';
3
+ import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-XGGXKR4M.js';
4
+ import { ensureHostKey } from './chunk-UDX4B237.js';
5
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-KWOQTSSZ.js';
6
+ import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-RFNETJEH.js';
7
+ import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-EKPSKSEJ.js';
8
+ import { jobAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-UN6X7TYJ.js';
9
+ import { defaultAgents } from './chunk-KQSRABR6.js';
10
10
  import { PROVIDERS } from './chunk-QJKW4MKH.js';
11
- import { compareVersions } from './chunk-WZOWXDDM.js';
11
+ import { compareVersions } from './chunk-FGA3EXGJ.js';
12
12
  import { createHash } from 'crypto';
13
13
  import { mkdirSync, createWriteStream, rmSync, existsSync, readFileSync, chmodSync, writeFileSync, realpathSync, readdirSync, renameSync } from 'fs';
14
14
  import { dirname, join, posix, resolve } from 'path';
@@ -149,6 +149,18 @@ function layoutDigest(layout) {
149
149
  if (digest === void 0) throw new Error(`${join(layout, "index.json")} lists no image`);
150
150
  return digest;
151
151
  }
152
+ function outOfDisk(logPath) {
153
+ return new RecipeError(
154
+ "image_build_out_of_disk",
155
+ `the image build ran out of disk: Docker's storage on this host has no space left. Free space with docker system df and docker image prune, or give Docker more disk; the build log is at ${logPath}`,
156
+ logPath
157
+ );
158
+ }
159
+ function buildFailure(builder, output, logPath) {
160
+ if (isOutOfDisk(output)) return outOfDisk(logPath);
161
+ if (isOutOfMemory(output)) return outOfMemory(builder, logPath);
162
+ return void 0;
163
+ }
152
164
  function outOfMemory(builder, logPath) {
153
165
  return new RecipeError(
154
166
  "image_build_out_of_memory",
@@ -230,8 +242,9 @@ function createDockerHost(deps = {}) {
230
242
  req.context
231
243
  ];
232
244
  const result = await trackImageBuild(() => run("docker", args, { logPath: req.logPath, input: req.dockerfile }));
233
- if (result.status !== 0 && isOutOfMemory(`${result.stdout}
234
- ${result.stderr}`)) throw outOfMemory(builder, req.logPath);
245
+ const failure = result.status === 0 ? void 0 : buildFailure(builder, `${result.stdout}
246
+ ${result.stderr}`, req.logPath);
247
+ if (failure !== void 0) throw failure;
235
248
  return result.status;
236
249
  },
237
250
  async devcontainerBuild(req) {
@@ -241,8 +254,9 @@ ${result.stderr}`)) throw outOfMemory(builder, req.logPath);
241
254
  rmSync(req.layoutOut, { recursive: true, force: true });
242
255
  }
243
256
  const result = await trackImageBuild(() => run(command, args, { logPath: req.logPath, env: { BUILDX_BUILDER: builder.name } }));
244
- if (result.status !== 0 && isOutOfMemory(`${result.stdout}
245
- ${result.stderr}`)) throw outOfMemory(builder, req.logPath);
257
+ const failure = result.status === 0 ? void 0 : buildFailure(builder, `${result.stdout}
258
+ ${result.stderr}`, req.logPath);
259
+ if (failure !== void 0) throw failure;
246
260
  return result.status;
247
261
  },
248
262
  async remove(id) {
@@ -503,6 +517,7 @@ function parseIdentity(stdout) {
503
517
  function homeCopyScript() {
504
518
  return [
505
519
  'const fs = require("fs");',
520
+ 'const { join } = require("path");',
506
521
  "const [from, to] = process.argv.slice(1);",
507
522
  "if (!fs.existsSync(from)) process.exit(0);",
508
523
  "let skipped = 0;",
@@ -516,7 +531,36 @@ function homeCopyScript() {
516
531
  " return false;",
517
532
  " }",
518
533
  "};",
519
- "fs.cpSync(from, to, { recursive: true, force: false, errorOnExist: false, preserveTimestamps: true, verbatimSymlinks: true, filter: (path) => readable(path) || (skipped++, false) });",
534
+ "const present = (path) => {",
535
+ " try {",
536
+ " return fs.lstatSync(path);",
537
+ " } catch {",
538
+ " return undefined;",
539
+ " }",
540
+ "};",
541
+ "const copyInto = (source, dest) => {",
542
+ " for (const name of fs.readdirSync(source)) copy(join(source, name), join(dest, name));",
543
+ "};",
544
+ "const copy = (source, dest) => {",
545
+ " if (!readable(source)) return void skipped++;",
546
+ " const stat = fs.lstatSync(source);",
547
+ " const there = present(dest);",
548
+ " if (stat.isDirectory()) {",
549
+ " if (there === undefined) {",
550
+ " fs.mkdirSync(dest);",
551
+ " copyInto(source, dest);",
552
+ " fs.chmodSync(dest, stat.mode & 0o7777);",
553
+ " } else if (there.isDirectory()) copyInto(source, dest);",
554
+ " } else if (there !== undefined) return;",
555
+ " else if (stat.isSymbolicLink()) fs.symlinkSync(fs.readlinkSync(source), dest);",
556
+ " else {",
557
+ " fs.copyFileSync(source, dest);",
558
+ " fs.utimesSync(dest, stat.atime, stat.mtime);",
559
+ " }",
560
+ "};",
561
+ "fs.mkdirSync(to, { recursive: true });",
562
+ "if (readable(from)) copyInto(from, to);",
563
+ "else skipped++;",
520
564
  "if (skipped > 0) process.stderr.write(`left out ${skipped} entries the build user cannot read\\n`);"
521
565
  ].join("\n");
522
566
  }
@@ -769,7 +813,11 @@ async function buildxState(run) {
769
813
  }
770
814
  return "usable";
771
815
  }
816
+ function isOutOfDisk(output) {
817
+ return /no space left on device/i.test(output);
818
+ }
772
819
  function isOutOfMemory(output) {
820
+ if (isOutOfDisk(output)) return false;
773
821
  if (/cannot allocate memory/i.test(output)) return true;
774
822
  if (/did not complete successfully: (exit code: 137|signal: killed)/i.test(output)) return true;
775
823
  return /ResourceExhausted/i.test(output) && !/larger than max|message size|too large/i.test(output);
@@ -873,4 +921,4 @@ function ensureBuilder(rawRun, spec, options = {}) {
873
921
  );
874
922
  }
875
923
 
876
- export { BUILD_LABEL, COMMAND_DIR, JUDGE_DIR, JUDGE_ITEMS, JUDGE_MAX_TURNS, JUDGE_REPORT, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, MIN_BUILDX_VERSION, NETWORK_HELPER_MEMORY, NETWORK_READY_FILE, RUNNER_LABEL, SAVED_STATE_LABEL, WORKSPACE_LABEL, builderName, builderNameFor, builderSpec, buildxState, childEnvironment, containerExecArgs, containerRunArgs, createDockerHost, dockerIdentity, ensureBuilder, ensureFailureCount, ensureRunnerIdentity, exceedsDisk, firstLine, hashJudgeProgram, homeCopyArgs, homeCopyRunArgs, homeCopyScript, identityArgs, identityDockerFor, identityRunArgs, identityScript, isOutOfMemory, judgeCommand, judgeProgramRecord, mountableHome, networkHelperName, networkHelperRunArgs, parseIdentity, parseSize, pathLabelValue, prepareRunArgs, proxyEnvironment, readDu, readJobFile, readJobFileChecked, readRunnerIdentity, runnerLabelValue, said, spawnRun, trackImageBuild, withAnswerProtocol, writeJobFile };
924
+ export { BUILD_LABEL, COMMAND_DIR, JUDGE_DIR, JUDGE_ITEMS, JUDGE_MAX_TURNS, JUDGE_REPORT, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, MIN_BUILDX_VERSION, NETWORK_HELPER_MEMORY, NETWORK_READY_FILE, RUNNER_LABEL, SAVED_STATE_LABEL, WORKSPACE_LABEL, builderName, builderNameFor, builderSpec, buildxState, childEnvironment, containerExecArgs, containerRunArgs, createDockerHost, dockerIdentity, ensureBuilder, ensureFailureCount, ensureRunnerIdentity, exceedsDisk, firstLine, hashJudgeProgram, homeCopyArgs, homeCopyRunArgs, homeCopyScript, identityArgs, identityDockerFor, identityRunArgs, identityScript, isOutOfDisk, isOutOfMemory, judgeCommand, judgeProgramRecord, mountableHome, networkHelperName, networkHelperRunArgs, parseIdentity, parseSize, pathLabelValue, prepareRunArgs, proxyEnvironment, readDu, readJobFile, readJobFileChecked, readRunnerIdentity, runnerLabelValue, said, spawnRun, trackImageBuild, withAnswerProtocol, writeJobFile };
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-JJ63MLE5.js';
4
- import { WorkCommandError, resolveCredentials, getJson } from './chunk-DE64NSOH.js';
3
+ import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-ZDFZWQUF.js';
4
+ import { WorkCommandError, resolveCredentials, getJson } from './chunk-2BUZUDSH.js';
5
5
  import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { defaultFetch } from './chunk-4YLF777T.js';
7
+ import { defaultFetch } from './chunk-6C6WH6KL.js';
8
8
  import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
9
9
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
10
10
  import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
11
- import { resolveRepoIdentity } from './chunk-WZOWXDDM.js';
11
+ import { resolveRepoIdentity } from './chunk-FGA3EXGJ.js';
12
12
  import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH } from './chunk-WUKLQWGY.js';
13
13
  import { createHash } from 'crypto';
14
14
  import { spawnSync } from 'child_process';
@@ -217,14 +217,14 @@ function governingDir(cwd) {
217
217
  async function testProofMode(cwd) {
218
218
  const dir = governingDir(cwd);
219
219
  if (dir === void 0) return "any";
220
- const { testProofIn } = await import('./host-checks-FEYDTZKZ.js');
220
+ const { testProofIn } = await import('./host-checks-OLB3DXCU.js');
221
221
  return testProofIn(dir);
222
222
  }
223
223
  async function judgeCheckName(cwd) {
224
224
  const dir = governingDir(cwd);
225
225
  if (dir === void 0) return {};
226
226
  if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
227
- const { checksIn, isJudgeCheck } = await import('./host-checks-FEYDTZKZ.js');
227
+ const { checksIn, isJudgeCheck } = await import('./host-checks-OLB3DXCU.js');
228
228
  const quiet = { line: () => void 0, error: () => void 0 };
229
229
  const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
230
230
  return check === void 0 ? {} : { name: check.name };
@@ -369,7 +369,7 @@ async function runWorkProofs(opts) {
369
369
  async function runWorkProofsCommand(opts) {
370
370
  try {
371
371
  if (opts.record) {
372
- const { runWorkProofsRecord } = await import('./work-proofs-record-7XH374TO.js');
372
+ const { runWorkProofsRecord } = await import('./work-proofs-record-KGB7FN5R.js');
373
373
  const result2 = await runWorkProofsRecord(opts);
374
374
  process.exitCode = result2.exitCode;
375
375
  return;
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-4HMOBW7H.js';
3
+ import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-R6CQLTRC.js';
4
4
  import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
5
- import { detectActiveSession } from './chunk-NE2A2ZIY.js';
6
- import { autoConnect } from './chunk-WVZ6EKJ3.js';
5
+ import { detectActiveSession } from './chunk-MA4ZUS4A.js';
6
+ import { autoConnect } from './chunk-3Z5KIYBR.js';
7
7
  import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-F3T5QJ24.js';
8
8
  import { C } from './chunk-2AM6Z5BP.js';
9
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-4YLF777T.js';
9
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-6C6WH6KL.js';
10
10
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
11
11
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
12
12
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-QJKW4MKH.js';
13
13
  import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
14
- import { resolveRepoIdentity } from './chunk-WZOWXDDM.js';
14
+ import { resolveRepoIdentity } from './chunk-FGA3EXGJ.js';
15
15
  import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-WUKLQWGY.js';
16
16
  import { createHash, randomUUID } from 'crypto';
17
17
  import { statSync, readFileSync, mkdirSync, existsSync, writeFileSync, renameSync, unlinkSync } from 'fs';
@@ -609,7 +609,7 @@ async function missingRenewalHookContext(home, cwd, codec) {
609
609
  try {
610
610
  const event = codec.events.find((name) => kindOf(codec, name) === "tool-used");
611
611
  if (event === void 0) return void 0;
612
- const { hookRegistered } = await import('./hook-install-TZZNJB4P.js');
612
+ const { hookRegistered } = await import('./hook-install-SVEA6RYI.js');
613
613
  const registered = hookRegistered(event, { home, cwd });
614
614
  if (registered !== false) return void 0;
615
615
  return `This install has no ${event} hook, so this session's work-item lease will never be renewed while it works and may be lost to another worker mid-session. Run \`${cliInvocation()} init\` to register it.`;
@@ -809,11 +809,11 @@ async function missingControlPlane(cwd, sessionId, home, env) {
809
809
  const dirs = findGitDirs(cwd);
810
810
  if (dirs === void 0) return void 0;
811
811
  if (existsSync(join(dirs.gitCommonDir, "outerlayer", "materialized.json")) || hasExcludeBlock(dirs.gitCommonDir)) {
812
- const { cleanupEarlierCopies } = await import('./context-cleanup-2SPOGEZR.js');
812
+ const { cleanupEarlierCopies } = await import('./context-cleanup-2PECPCE4.js');
813
813
  cleanupEarlierCopies(dirs);
814
814
  }
815
815
  if (!contextPossiblyGoverned(cwd, home)) return void 0;
816
- const { governanceOf } = await import('./control-plane-launch-KIJABWN4.js');
816
+ const { governanceOf } = await import('./control-plane-launch-T33K3464.js');
817
817
  if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
818
818
  recordMissingContext(dirs, sessionId, home);
819
819
  const launcher = `${cliInvocation()} ${LEGACY.legacy.subcommand}`;
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-PYPHE6FZ.js';
3
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-KWOQTSSZ.js';
4
4
  import { mkdirSync, writeFileSync, renameSync, existsSync, readFileSync } from 'fs';
5
5
  import { dirname, join } from 'path';
6
6
 
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-BOUW2CV6.js';
4
- import { parseSize } from './chunk-2BTDFRRQ.js';
5
- import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-B5BLIHJZ.js';
6
- import { builderDiskPinned } from './chunk-NDIV6GDC.js';
3
+ import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-ALPMGHDV.js';
4
+ import { parseSize } from './chunk-HNKGBQFA.js';
5
+ import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-RFNETJEH.js';
6
+ import { builderDiskPinned } from './chunk-UN6X7TYJ.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
8
8
  import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
9
9
  import { hostname } from 'os';
@@ -5,7 +5,7 @@ import { CLAUDE_CODE, NATIVE_AGENTS, LEGACY_AGENT, homeRelative } from './chunk-
5
5
  import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
6
6
  import { resolvePackageVersion } from './chunk-RA3O54FC.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
8
- import { forkFor, RAW_MIRROR_SEGMENTS, WarningCollector, WARNING_CODES, isNewerThanSupported, bucketsFromTurns, costOfUsage } from './chunk-WZOWXDDM.js';
8
+ import { forkFor, RAW_MIRROR_SEGMENTS, WarningCollector, WARNING_CODES, isNewerThanSupported, bucketsFromTurns, costOfUsage } from './chunk-FGA3EXGJ.js';
9
9
  import { RESERVED_EMIT_NAMES, EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, ARTIFACT_KINDS, ArtifactCriterionIdSchema, SPEED_MAX_LENGTH } from './chunk-WUKLQWGY.js';
10
10
  import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
11
11
  import { existsSync, readFileSync, mkdirSync, writeFileSync, readdirSync, rmSync, renameSync, realpathSync, readlinkSync, symlinkSync, copyFileSync, statSync, accessSync, constants, lstatSync } from 'fs';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { BUILD_HOME } from './chunk-B5BLIHJZ.js';
3
+ import { BUILD_HOME } from './chunk-RFNETJEH.js';
4
4
  import { readdirSync } from 'fs';
5
5
  import { join, dirname } from 'path';
6
6
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
4
- import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-E6ESLX5E.js';
4
+ import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-KQSRABR6.js';
5
5
  import { readFileSync, existsSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
6
6
  import { join, dirname, relative, sep } from 'path';
7
7
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-PYPHE6FZ.js';
3
+ import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-KWOQTSSZ.js';
4
4
  import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
5
5
  import { join, basename, sep, resolve } from 'path';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { defaultAgents } from './chunk-E6ESLX5E.js';
3
+ import { defaultAgents } from './chunk-KQSRABR6.js';
4
4
  import { openSync, fstatSync, readSync, closeSync } from 'fs';
5
5
  import { join } from 'path';
6
6
 
@@ -2,8 +2,8 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { C } from './chunk-2AM6Z5BP.js';
4
4
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
5
- import { linkedAgentsPath } from './chunk-W72X24TZ.js';
6
- import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-E6ESLX5E.js';
5
+ import { linkedAgentsPath } from './chunk-NKQL3LHK.js';
6
+ import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-KQSRABR6.js';
7
7
  import { LEGACY_AGENT } from './chunk-QJKW4MKH.js';
8
8
  import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
9
9
  import { resolvePackageVersion } from './chunk-RA3O54FC.js';
@@ -2,7 +2,7 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
4
4
  import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
5
- import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-E6ESLX5E.js';
5
+ import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-KQSRABR6.js';
6
6
  import { execFileSync } from 'child_process';
7
7
  import { lstatSync, existsSync, unlinkSync, readdirSync, rmdirSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
8
8
  import { join, dirname, isAbsolute } from 'path';
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { builtinKind, keepsHostBuilder } from './chunk-7V4ZEB2R.js';
4
- import { parseSize } from './chunk-2BTDFRRQ.js';
5
- import { runnerDir } from './chunk-PYPHE6FZ.js';
6
- import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-DDOD4YOQ.js';
7
- import { credentialAgent, credentialNames, credentialForms } from './chunk-NDIV6GDC.js';
8
- import { defaultAgents } from './chunk-E6ESLX5E.js';
3
+ import { builtinKind, keepsHostBuilder } from './chunk-KNGCCNVO.js';
4
+ import { parseSize } from './chunk-HNKGBQFA.js';
5
+ import { runnerDir } from './chunk-KWOQTSSZ.js';
6
+ import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-EKPSKSEJ.js';
7
+ import { credentialAgent, credentialNames, credentialForms } from './chunk-UN6X7TYJ.js';
8
+ import { defaultAgents } from './chunk-KQSRABR6.js';
9
9
  import { existsSync, readFileSync, writeFileSync, chmodSync, renameSync } from 'fs';
10
10
  import { dirname, join } from 'path';
11
11
  import { spawnSync } from 'child_process';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { keyRunnerFactory, RunnerConfigError } from './chunk-7V4ZEB2R.js';
4
- import { orgHomeDir } from './chunk-PYPHE6FZ.js';
3
+ import { keyRunnerFactory, RunnerConfigError } from './chunk-KNGCCNVO.js';
4
+ import { orgHomeDir } from './chunk-KWOQTSSZ.js';
5
5
 
6
6
  createRequire(import.meta.url);
7
7
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { stripTerminalControls } from './chunk-LIJMW36Q.js';
4
- import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-T4J5VR7B.js';
3
+ import { stripTerminalControls } from './chunk-GBTHXD74.js';
4
+ import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-UYCK4L43.js';
5
5
  import { readFileSync } from 'fs';
6
6
 
7
7
  createRequire(import.meta.url);
@@ -55,7 +55,7 @@ function envNamesOf(row, imageEnv) {
55
55
  return [...new Set(names)].sort();
56
56
  }
57
57
  async function readOwnContainer(deps = {}) {
58
- const run = deps.run ?? (await import('./docker-BP7AD65K.js')).spawnRun;
58
+ const run = deps.run ?? (await import('./docker-PS5OVPIF.js')).spawnRun;
59
59
  const ids = candidateIds(deps.env ?? process.env, deps.readFile ?? ((path) => readFileSync(path, "utf8")));
60
60
  if (ids.length === 0) return { ok: false, reason: "the runner cannot tell which container it runs in: HOSTNAME is empty and /proc/self/mountinfo names none" };
61
61
  let problem = "";
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
4
- import { detectActiveSession } from './chunk-NE2A2ZIY.js';
5
- import { autoConnect } from './chunk-WVZ6EKJ3.js';
4
+ import { detectActiveSession } from './chunk-MA4ZUS4A.js';
5
+ import { autoConnect } from './chunk-3Z5KIYBR.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-4YLF777T.js';
7
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-6C6WH6KL.js';
8
8
  import { launchedItemForSession } from './chunk-4OD45RBP.js';
9
9
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
10
10
  import { homeFromEnv } from './chunk-352DHUTP.js';
11
- import { resolveRepoIdentity } from './chunk-WZOWXDDM.js';
11
+ import { resolveRepoIdentity } from './chunk-FGA3EXGJ.js';
12
12
  import { CriteriaListSchema } from './chunk-WUKLQWGY.js';
13
13
  import { readFileSync } from 'fs';
14
14
 
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { uploadSpooledSteps } from './chunk-SRNHGJAV.js';
3
+ import { uploadSpooledSteps } from './chunk-3GHHGCNU.js';
4
4
  import { LaunchFilter } from './chunk-WGC7UFRM.js';
5
5
  import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-F3T5QJ24.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-4YLF777T.js';
7
+ import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-6C6WH6KL.js';
8
8
  import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-HWVMRETT.js';
9
- import { signerFor, signRunnerRequest } from './chunk-EKDQDOSS.js';
10
- import { SCRUB_ENV_VARIABLE } from './chunk-B5BLIHJZ.js';
11
- import { writeSyncStatus, spoolDir } from './chunk-PJ5GYGC6.js';
9
+ import { signerFor, signRunnerRequest } from './chunk-UDX4B237.js';
10
+ import { SCRUB_ENV_VARIABLE } from './chunk-RFNETJEH.js';
11
+ import { writeSyncStatus, spoolDir } from './chunk-JXHN4E4Q.js';
12
12
  import { readLatestProvenanceForSession, readContextProvenance } from './chunk-545P7JY7.js';
13
13
  import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
14
14
  import { hookExecSpoolPath } from './chunk-AWY7ORQ2.js';
@@ -16,10 +16,10 @@ import { applyReportedCost } from './chunk-BKO6JEZI.js';
16
16
  import { readLaunchSpoolState, launchStatusIsDecisive, launchedItemsBySession, launchesPath } from './chunk-4OD45RBP.js';
17
17
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
18
18
  import { removeJournalHooks } from './chunk-CJPTUU2E.js';
19
- import { legacyAgent, captureAdapters } from './chunk-E6ESLX5E.js';
19
+ import { legacyAgent, captureAdapters } from './chunk-KQSRABR6.js';
20
20
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-QJKW4MKH.js';
21
21
  import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
22
- import { setCustomScrubbers, setLocalIdentity, forkFor, readForkRecord, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, scrubDeep } from './chunk-WZOWXDDM.js';
22
+ import { setCustomScrubbers, setLocalIdentity, forkFor, readForkRecord, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, scrubDeep } from './chunk-FGA3EXGJ.js';
23
23
  import { CAPTURE_TIERS, inferArtifactKind, bannedPathsForTier, downconvertSession, isHumanUserTurn, turnCountBound, EVENT_TYPES } from './chunk-WUKLQWGY.js';
24
24
  import { dirname, basename, join, sep } from 'path';
25
25
  import { statSync, readFileSync, readdirSync, mkdirSync, writeFileSync, renameSync, existsSync, rmSync } from 'fs';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-E6ESLX5E.js';
3
+ import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-KQSRABR6.js';
4
4
  import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-CDDED64E.js';
5
5
  import { resolvePackageVersion } from './chunk-RA3O54FC.js';
6
6
  import { homeFromEnv } from './chunk-352DHUTP.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-E6ESLX5E.js';
3
+ import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-KQSRABR6.js';
4
4
  import { LEGACY_AGENT } from './chunk-QJKW4MKH.js';
5
5
  import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
6
6
  import { relative, sep, join, posix } from 'path';
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, builtInEnvironment, managedAgentCredential, agentCredential, destinationPort } from './chunk-DDOD4YOQ.js';
4
- import { strippedVariables } from './chunk-NDIV6GDC.js';
5
- import { defaultAgents } from './chunk-E6ESLX5E.js';
3
+ import { builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, builtInEnvironment, managedAgentCredential, agentCredential, destinationPort } from './chunk-EKPSKSEJ.js';
4
+ import { strippedVariables } from './chunk-UN6X7TYJ.js';
5
+ import { defaultAgents } from './chunk-KQSRABR6.js';
6
6
  import { PROVIDERS } from './chunk-QJKW4MKH.js';
7
7
  import { existsSync, unlinkSync, chmodSync } from 'fs';
8
8
  import { request as request$1, createServer } from 'http';
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
4
- import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-7HRNYPL3.js';
4
+ import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-R6SOMMDQ.js';
5
5
  import { DEFAULT_DASHBOARD } from './chunk-A6RI6KTI.js';
6
- import { cliFetch, resolveGatewayCredentials } from './chunk-4YLF777T.js';
6
+ import { cliFetch, resolveGatewayCredentials } from './chunk-6C6WH6KL.js';
7
7
  import { readCloudConfig } from './chunk-HWVMRETT.js';
8
8
  import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
9
9
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
10
- import { defaultAgents } from './chunk-E6ESLX5E.js';
11
- import { remoteLookupFailed } from './chunk-WZOWXDDM.js';
10
+ import { defaultAgents } from './chunk-KQSRABR6.js';
11
+ import { remoteLookupFailed } from './chunk-FGA3EXGJ.js';
12
12
  import { execFileSync } from 'child_process';
13
13
  import { lstatSync } from 'fs';
14
14
  import { join, relative } from 'path';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { isSameProcess } from './chunk-JBJTC3UU.js';
4
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-PYPHE6FZ.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-KWOQTSSZ.js';
5
5
  import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
6
6
  import { dirname } from 'path';
7
7
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-E6ESLX5E.js';
3
+ import { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-KQSRABR6.js';
4
4
 
5
5
  createRequire(import.meta.url);
6
6
 
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-DSZKDLFU.js';
4
- import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-W3ZKWZ6G.js';
3
+ import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-BCQDEM2N.js';
4
+ import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-L2J7B7V6.js';
5
5
  import { compareVersions } from './chunk-TQMI335S.js';
6
- import { runnerDir, RUNNER_DIR_MODE } from './chunk-PYPHE6FZ.js';
6
+ import { runnerDir, RUNNER_DIR_MODE } from './chunk-KWOQTSSZ.js';
7
7
  import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
8
8
  import { dirname, sep, join } from 'path';
9
9
  import { spawnSync } from 'child_process';
@@ -1,26 +1,26 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { checkStarterFiles, contextIsGoverned } from './chunk-OM3XGJBY.js';
4
- import { resolveCredentials, getJson, WorkCommandError } from './chunk-DE64NSOH.js';
5
- import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-KRTIYEJI.js';
6
- import { withInjectedPrograms } from './chunk-T3MVV6LG.js';
7
- import { isLinkedRepository } from './chunk-45AYMLMT.js';
3
+ import { checkStarterFiles, contextIsGoverned } from './chunk-DU2QDWHB.js';
4
+ import { resolveCredentials, getJson, WorkCommandError } from './chunk-2BUZUDSH.js';
5
+ import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-GPVZFUTD.js';
6
+ import { withInjectedPrograms } from './chunk-S6AZPAUS.js';
7
+ import { isLinkedRepository } from './chunk-RJTFSUZI.js';
8
8
  import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
9
9
  import { C } from './chunk-2AM6Z5BP.js';
10
- import { checkFormerSkillNames } from './chunk-IM4VUDKW.js';
11
- import { resolveGatewayCredentials, defaultFetch } from './chunk-4YLF777T.js';
12
- import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-PJ5GYGC6.js';
10
+ import { checkFormerSkillNames } from './chunk-KYFMMW65.js';
11
+ import { resolveGatewayCredentials, defaultFetch } from './chunk-6C6WH6KL.js';
12
+ import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-JXHN4E4Q.js';
13
13
  import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-OV4XTV5M.js';
14
14
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
15
15
  import { readStatuslineState, STATE_FRESH_MS } from './chunk-7TPLWWFN.js';
16
16
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
17
- import { installAgents, withSettingsText } from './chunk-INT54Z2T.js';
17
+ import { installAgents, withSettingsText } from './chunk-CQWXQDAZ.js';
18
18
  import { cliForInstall, cliBinResolvable } from './chunk-ZHQC43NH.js';
19
19
  import { readDeliveryRecord, readDegraded, readSourceCache } from './chunk-YQR6E6OV.js';
20
20
  import { deadHooksState, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
21
- import { defaultAgents, legacyAgent, contextAgents } from './chunk-E6ESLX5E.js';
21
+ import { defaultAgents, legacyAgent, contextAgents } from './chunk-KQSRABR6.js';
22
22
  import { homeFromEnv } from './chunk-352DHUTP.js';
23
- import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-WZOWXDDM.js';
23
+ import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-FGA3EXGJ.js';
24
24
  import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync } from 'fs';
25
25
  import { sep, join, dirname, resolve, delimiter } from 'path';
26
26
  import { execFileSync } from 'child_process';
@@ -1050,8 +1050,8 @@ function doctorExitCode(checks) {
1050
1050
 
1051
1051
  // src/doctor-report.ts
1052
1052
  async function gatherDoctorChecks() {
1053
- const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-LYHGWH4G.js');
1054
- const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-VHJI645L.js');
1053
+ const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-LCBVNYLL.js');
1054
+ const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-2APX7UB2.js');
1055
1055
  const configPath = defaultRunnerConfigPath();
1056
1056
  const runnerHost = hasRunnerBlock(configPath);
1057
1057
  const hooks = (() => {
@@ -1079,7 +1079,7 @@ async function gatherDoctorChecks() {
1079
1079
  const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
1080
1080
  checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
1081
1081
  } else if (hasRunnerBlock(configPath)) {
1082
- const { runnerHostChecks } = await import('./doctor-TZIHEPIW.js');
1082
+ const { runnerHostChecks } = await import('./doctor-D6IRPOAQ.js');
1083
1083
  const gateway = (() => {
1084
1084
  try {
1085
1085
  const loaded = loadRunnerConfig(configPath);
@@ -1107,7 +1107,7 @@ async function gatherDoctorChecks() {
1107
1107
  const service = await (async () => {
1108
1108
  const { existsSync: existsSync3 } = await import('fs');
1109
1109
  if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
1110
- const { inspectRunnerService } = await import('./find-unit-L2JIUL4D.js');
1110
+ const { inspectRunnerService } = await import('./find-unit-UCWO22YS.js');
1111
1111
  return inspectRunnerService(configPath);
1112
1112
  })();
1113
1113
  checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { runEmit } from './chunk-K3GCT2HL.js';
4
- import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-I5EZW66W.js';
5
- import { installStarterPack } from './chunk-S7YLAN2P.js';
6
- import { listWithAnd } from './chunk-45AYMLMT.js';
7
- import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-7HRNYPL3.js';
3
+ import { runEmit } from './chunk-EJ4MVQYZ.js';
4
+ import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-A72Q4LSP.js';
5
+ import { installStarterPack } from './chunk-MFVANFEJ.js';
6
+ import { listWithAnd } from './chunk-RJTFSUZI.js';
7
+ import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-R6SOMMDQ.js';
8
8
  import { C } from './chunk-2AM6Z5BP.js';
9
- import { resolveGitCommonDir, defaultGitRunner } from './chunk-7HDI5CGG.js';
9
+ import { resolveGitCommonDir, defaultGitRunner } from './chunk-ULIDETYK.js';
10
10
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
11
- import { linkedAgentsPath } from './chunk-W72X24TZ.js';
11
+ import { linkedAgentsPath } from './chunk-NKQL3LHK.js';
12
12
  import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
13
- import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-E6ESLX5E.js';
13
+ import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-KQSRABR6.js';
14
14
  import { LEGACY_AGENT } from './chunk-QJKW4MKH.js';
15
15
  import { execFileSync } from 'child_process';
16
16
  import { existsSync, mkdirSync, writeFileSync } from 'fs';