@outerlayer/cli 0.38.0-next.20261106012958 → 0.38.0-next.20261106190200

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 (163) hide show
  1. package/README.md +16 -0
  2. package/dist/{agent-setup-CBEPGNFY.js → agent-setup-RO2DJUF3.js} +18 -18
  3. package/dist/{agent-subcommand-UNSXJUHA.js → agent-subcommand-PSI3BAXM.js} +3 -3
  4. package/dist/{bridge-JI4IO7JN.js → bridge-3WAVT5SX.js} +6 -6
  5. package/dist/{build-2L3L2OJO.js → build-4KG7H2XK.js} +12 -12
  6. package/dist/{build-disk-CKBEEF4N.js → build-disk-GGGJ237B.js} +10 -10
  7. package/dist/build-info.json +1 -1
  8. package/dist/{builder-PKDA7X2H.js → builder-HV7PUSZZ.js} +9 -9
  9. package/dist/caller-3P3AEY7W.js +23 -0
  10. package/dist/{check-FG32SYJF.js → check-LENGOFUF.js} +68 -52
  11. package/dist/{chunk-DXBYNJRM.js → chunk-27P5FSZT.js} +5 -5
  12. package/dist/{chunk-T524XQKI.js → chunk-2MA2KWHN.js} +1 -1
  13. package/dist/{chunk-FGVVBYCT.js → chunk-2VN36ZPA.js} +1 -1
  14. package/dist/{chunk-ZCEM4GJ5.js → chunk-3E65OLJ4.js} +3 -3
  15. package/dist/{chunk-EXIZ3G6I.js → chunk-3KVYSJAL.js} +4 -4
  16. package/dist/{chunk-EHJYXABQ.js → chunk-4PH3KXDP.js} +1 -1
  17. package/dist/{chunk-WF2NXBOM.js → chunk-5BDYRHZZ.js} +7 -7
  18. package/dist/{chunk-ZTJTAKVW.js → chunk-5MWE5IOO.js} +1 -1
  19. package/dist/{chunk-ERQLHUWU.js → chunk-5QBTW367.js} +5 -5
  20. package/dist/{chunk-4MSEUIMK.js → chunk-6744TXEY.js} +5 -5
  21. package/dist/{chunk-MDKLSY43.js → chunk-677TCNML.js} +1 -1
  22. package/dist/{chunk-3FAJMXBA.js → chunk-6BPCEGJL.js} +8 -8
  23. package/dist/{chunk-S7CE7QCF.js → chunk-6ZSUJ3ES.js} +3 -3
  24. package/dist/{chunk-TAEDH2SU.js → chunk-76Y35TWH.js} +1 -1
  25. package/dist/{chunk-HG2ZG6ZU.js → chunk-7ATHSAAT.js} +1 -1
  26. package/dist/{chunk-KLQLQQGG.js → chunk-7B4A6PBC.js} +3 -3
  27. package/dist/{chunk-PARDL7HH.js → chunk-7KF36CVC.js} +1 -1
  28. package/dist/{chunk-ZO3RUMUR.js → chunk-A24MNKYN.js} +4 -4
  29. package/dist/{chunk-O4Z2YVC3.js → chunk-ANFGBAWY.js} +4 -4
  30. package/dist/{chunk-L4ACBB5R.js → chunk-BEKYNGLH.js} +1 -1
  31. package/dist/{chunk-YWWW47OY.js → chunk-CFTSVW7W.js} +1 -1
  32. package/dist/{chunk-RSRNZB4T.js → chunk-DF6ZHOIA.js} +6 -6
  33. package/dist/{chunk-U5EE7PGC.js → chunk-E2ZWGLNZ.js} +3 -3
  34. package/dist/{chunk-K6JOU4CT.js → chunk-F2PTLH3J.js} +152 -48
  35. package/dist/{chunk-ZLJXMXZP.js → chunk-FBBI6K7D.js} +2 -2
  36. package/dist/{chunk-OUHM6U6Z.js → chunk-FCU7WSCV.js} +144 -5
  37. package/dist/{chunk-MPE4NOKD.js → chunk-G2EWER4K.js} +2 -2
  38. package/dist/{chunk-ONOINHY4.js → chunk-G2ITKUX4.js} +1 -1
  39. package/dist/{chunk-QWDGHEQL.js → chunk-GM3H4ZHG.js} +1 -1
  40. package/dist/{chunk-AVEF3T6Y.js → chunk-GM4TY5H2.js} +1 -1
  41. package/dist/{chunk-DL5N6V3D.js → chunk-GQEVQIS6.js} +1 -1
  42. package/dist/{chunk-5R5FEPLH.js → chunk-H2L5NB5U.js} +98 -17
  43. package/dist/{chunk-CGXYPLK3.js → chunk-HTQFAHXD.js} +2 -2
  44. package/dist/{chunk-QONY6C2B.js → chunk-IOURL3LH.js} +15 -9
  45. package/dist/{chunk-XE2PXGZT.js → chunk-JKQAOSSX.js} +3 -3
  46. package/dist/{chunk-3XWZKL2P.js → chunk-JKYCEXZX.js} +7 -7
  47. package/dist/{chunk-45TFVWNT.js → chunk-JW25JVK4.js} +5 -5
  48. package/dist/{chunk-VWNQRD4I.js → chunk-KMUERD5F.js} +4 -4
  49. package/dist/{chunk-AJC5Q2NY.js → chunk-LFBQL4AP.js} +5 -5
  50. package/dist/{chunk-3DVCPRKE.js → chunk-LRE4QIMD.js} +7 -7
  51. package/dist/{chunk-GMRVWRHD.js → chunk-M4JFGNG7.js} +2 -2
  52. package/dist/{chunk-X2DX3A7H.js → chunk-MCLSXTLY.js} +1 -1
  53. package/dist/{chunk-BO3NOGKE.js → chunk-ML3O3A3Q.js} +1 -1
  54. package/dist/{chunk-ABN4UBR5.js → chunk-NMCRJ7NZ.js} +2 -2
  55. package/dist/{chunk-CCMKLF7K.js → chunk-NTRXOTO7.js} +4 -4
  56. package/dist/{chunk-256R6O56.js → chunk-OMCDOJO2.js} +8 -5
  57. package/dist/{chunk-OGQW7A4G.js → chunk-QHOC32DP.js} +8 -8
  58. package/dist/{chunk-SMFWLPXC.js → chunk-RDPLNQFI.js} +18 -17
  59. package/dist/{chunk-JTDMSQMI.js → chunk-RFBJKK2L.js} +7 -7
  60. package/dist/{chunk-BL6CCU26.js → chunk-SUMXGPSG.js} +5 -5
  61. package/dist/{chunk-XDRZ3BNA.js → chunk-T7KETYNW.js} +1 -1
  62. package/dist/{chunk-PMJ6IEUM.js → chunk-TDBP62O2.js} +7 -7
  63. package/dist/{chunk-RZ6WJTUP.js → chunk-TDUBZ4FR.js} +1 -1
  64. package/dist/{chunk-AMG5ICDO.js → chunk-TFBNHDPT.js} +4 -4
  65. package/dist/{chunk-DVFGCVTV.js → chunk-TMYBADTM.js} +5 -5
  66. package/dist/{chunk-EFAOERZH.js → chunk-TOVSIUEJ.js} +1 -1
  67. package/dist/{chunk-EERD7VI3.js → chunk-U4ZHNHCF.js} +1 -1
  68. package/dist/{chunk-VNT2IRLM.js → chunk-UF3YTRGU.js} +70 -11
  69. package/dist/{chunk-U7L4GBGS.js → chunk-USJVENIV.js} +1 -1
  70. package/dist/{chunk-2MQQASWB.js → chunk-VOSC32UF.js} +6 -6
  71. package/dist/{chunk-FOUG2R4Q.js → chunk-VRSUCU2N.js} +1 -1
  72. package/dist/{chunk-YZRDJOOR.js → chunk-XDVLF6OT.js} +3 -3
  73. package/dist/{chunk-DK5YFDYI.js → chunk-YL6GWLK5.js} +8 -8
  74. package/dist/{chunk-YKWOVYVN.js → chunk-YSIVKYLW.js} +9 -6
  75. package/dist/{chunk-5VAXNAOD.js → chunk-YZ5M7S7U.js} +1 -1
  76. package/dist/{chunk-RUJR3SDB.js → chunk-ZGN3NOVS.js} +1 -1
  77. package/dist/{chunk-OFWNBTLU.js → chunk-ZOWUJUSF.js} +1 -1
  78. package/dist/{chunk-FER7JJ3S.js → chunk-ZPCUXCQX.js} +1 -1
  79. package/dist/{chunk-Z4R36YDJ.js → chunk-ZYQT6Q5R.js} +1379 -628
  80. package/dist/{claude-launcher-FHQTSQOM.js → claude-launcher-G73I5AGW.js} +6 -6
  81. package/dist/{cli-GNC4MFMP.js → cli-5SILU2LX.js} +154 -147
  82. package/dist/{command-47EYM2FJ.js → command-DBBEP7VM.js} +56 -49
  83. package/dist/{config-EA6WVKAS.js → config-KOSTQZXG.js} +11 -11
  84. package/dist/{connect-cmd-4JO2LBUT.js → connect-cmd-UNBJYFYM.js} +10 -10
  85. package/dist/{container-start-XR7KANS6.js → container-start-AAOLPVAH.js} +45 -45
  86. package/dist/{context-cleanup-6CTKLEUT.js → context-cleanup-MKVMFRNR.js} +3 -3
  87. package/dist/{context-show-cmd-Z7NQAKNE.js → context-show-cmd-P3LBILMP.js} +11 -11
  88. package/dist/{control-plane-launch-4PLBJKBS.js → control-plane-launch-2GOJKA53.js} +13 -13
  89. package/dist/{demo-record-cmd-3B2ME2ZI.js → demo-record-cmd-BPINCNYS.js} +7 -7
  90. package/dist/{demo-voice-cmd-LIXAA3OS.js → demo-voice-cmd-HBK3TWM5.js} +17 -17
  91. package/dist/{dist-3TV6G4YF.js → dist-MUOHO52Q.js} +1 -1
  92. package/dist/{docker-FPEQS6HK.js → docker-NUPVSMVQ.js} +9 -9
  93. package/dist/{doctor-AFH6UUX6.js → doctor-GHRSOZLB.js} +53 -47
  94. package/dist/{emit-artifact-cmd-5XIEUWFX.js → emit-artifact-cmd-CULA5AM4.js} +16 -16
  95. package/dist/{emit-cmd-IKYF27IK.js → emit-cmd-746N7PYR.js} +6 -6
  96. package/dist/{emit-criteria-cmd-YS5ZSLCN.js → emit-criteria-cmd-NY4RPUPD.js} +13 -13
  97. package/dist/{emit-demo-cmd-IDC2JC46.js → emit-demo-cmd-MYXTGMJI.js} +17 -17
  98. package/dist/{emit-finding-cmd-C4NRTIZO.js → emit-finding-cmd-ZGGMPQFT.js} +13 -13
  99. package/dist/{emit-result-cmd-GC2I7JQU.js → emit-result-cmd-GNEQHIIZ.js} +15 -15
  100. package/dist/{emit-step-cmd-TTH4FYFW.js → emit-step-cmd-NYCJ3XFQ.js} +13 -13
  101. package/dist/{exec-client-DT5EWVQL.js → exec-client-QHB62OZ6.js} +7 -7
  102. package/dist/find-unit-UVS2FM7E.js +24 -0
  103. package/dist/{findings-cmd-MSV52ODM.js → findings-cmd-ZINCPCAB.js} +13 -13
  104. package/dist/{fleet-readiness-O76CSI7M.js → fleet-readiness-FZCSJ7FY.js} +12 -12
  105. package/dist/{governing-source-QEFYVBQF.js → governing-source-CQML5N2D.js} +18 -18
  106. package/dist/{guest-init-X7M5AIOI.js → guest-init-C6FWJVAQ.js} +8 -8
  107. package/dist/{hook-fast-T6FOTZHA.js → hook-fast-6IOLZ45F.js} +1 -1
  108. package/dist/{hook-install-OUSUHQ6C.js → hook-install-VL4CEO4S.js} +3 -3
  109. package/dist/host-checks-HPCMZ7XT.js +79 -0
  110. package/dist/{host-key-UFUIBFBF.js → host-key-5APXLMY2.js} +7 -7
  111. package/dist/{image-tag-AE6EKDPV.js → image-tag-IBAYH5XH.js} +7 -7
  112. package/dist/index.js +4 -4
  113. package/dist/{init-PUN3PKOT.js → init-EIQFBAZI.js} +43 -43
  114. package/dist/init-YD4MNH5U.js +79 -0
  115. package/dist/{init-agent-D3KK24QX.js → init-agent-7UQZFG5E.js} +43 -43
  116. package/dist/{init-cmd-LGRN3U7K.js → init-cmd-TNJXWFQU.js} +24 -24
  117. package/dist/{init-update-ZL2J7EQI.js → init-update-KJWMEKR3.js} +21 -21
  118. package/dist/{install-cmd-4ID4VBH2.js → install-cmd-UXH2LGVA.js} +9 -9
  119. package/dist/{layout-G6K72TXK.js → layout-YVTZDKVU.js} +3 -3
  120. package/dist/{logs-DIA3NWC2.js → logs-22Y7QG42.js} +6 -6
  121. package/dist/loop-SVE6TL6G.js +90 -0
  122. package/dist/machine-RQIO5VRG.js +79 -0
  123. package/dist/{machine-skills-JLJJDXBS.js → machine-skills-6PJOJU5J.js} +3 -3
  124. package/dist/{mcp-install-cmd-OTAX7QP2.js → mcp-install-cmd-LJ7AYDDT.js} +3 -3
  125. package/dist/{mcp-serve-cmd-63KQEQYS.js → mcp-serve-cmd-34LDKQSR.js} +8 -8
  126. package/dist/{paths-KVMMJQ7T.js → paths-2KOZGV5U.js} +6 -6
  127. package/dist/{pending-2IE3VBAN.js → pending-RYWBDJCE.js} +7 -7
  128. package/dist/{pidfile-NCBBWZNH.js → pidfile-FQBXIHX7.js} +7 -7
  129. package/dist/{record-PQDJVKYV.js → record-7ENQ7Y5M.js} +7 -7
  130. package/dist/relay-JLU7RTFS.js +474 -0
  131. package/dist/{relay-protocol-PJ2HOP6B.js → relay-protocol-AEIZCA3K.js} +4 -4
  132. package/dist/{runner-agents-CEW4Z3FR.js → runner-agents-I5YLJY7G.js} +3 -3
  133. package/dist/{runner-env-23OLQBQZ.js → runner-env-GXY2VMNH.js} +13 -13
  134. package/dist/{runner-identity-IJKE4SRJ.js → runner-identity-MW53HCYG.js} +9 -9
  135. package/dist/{runner-key-4J4MHN3S.js → runner-key-GERK5EV3.js} +43 -43
  136. package/dist/{session-sender-HKNACIH5.js → session-sender-65X5PR7Q.js} +16 -16
  137. package/dist/{spec-cmd-4R7AYTBU.js → spec-cmd-3TNVJBN7.js} +14 -14
  138. package/dist/{starter-pack-6C7HPT4O.js → starter-pack-PLSMFXBU.js} +4 -4
  139. package/dist/{state-DPEWDXQN.js → state-EKXXOPA5.js} +7 -7
  140. package/dist/{status-GMVC666R.js → status-KGSQF55G.js} +43 -43
  141. package/dist/{sync-cmd-UMAENSGZ.js → sync-cmd-FNATZ5VL.js} +15 -15
  142. package/dist/update-steps-3LOJ377U.js +80 -0
  143. package/dist/{watch-RAUF223H.js → watch-FEBBRV22.js} +15 -15
  144. package/dist/{work-claim-cmd-A3ISXUFA.js → work-claim-cmd-2EPUH3KT.js} +19 -19
  145. package/dist/{work-cmd-U7YLMDZ7.js → work-cmd-V5A3MDXV.js} +13 -13
  146. package/dist/{work-comment-cmd-CMWMOWVG.js → work-comment-cmd-PUE47SUV.js} +15 -15
  147. package/dist/{work-demo-cmd-EKTJHIVM.js → work-demo-cmd-7Q3KW2OO.js} +13 -13
  148. package/dist/{work-logs-cmd-Z3QOFYTJ.js → work-logs-cmd-SQBJX6MC.js} +13 -13
  149. package/dist/{work-open-pr-cmd-NJXIX3QZ.js → work-open-pr-cmd-PNDF2CR5.js} +14 -14
  150. package/dist/{work-pr-cmd-JUV3SN7I.js → work-pr-cmd-U7WL7KYE.js} +13 -13
  151. package/dist/{work-proofs-cmd-MIDPIFTH.js → work-proofs-cmd-YHOM2NIH.js} +15 -15
  152. package/dist/{work-proofs-record-6FTMJDQG.js → work-proofs-record-CYIZ2RDH.js} +21 -21
  153. package/dist/{work-stop-cmd-Z7MYNR7R.js → work-stop-cmd-ENRSBWFT.js} +13 -13
  154. package/package.json +1 -1
  155. package/skill-pack/maintained/outerlayer-build/SKILL.md +3 -1
  156. package/dist/caller-XETCC46J.js +0 -23
  157. package/dist/find-unit-337Y4QAC.js +0 -24
  158. package/dist/host-checks-OXB5J3KR.js +0 -79
  159. package/dist/init-V7X3KA7B.js +0 -79
  160. package/dist/loop-AWBFKDV7.js +0 -90
  161. package/dist/machine-BZPKYURG.js +0 -79
  162. package/dist/relay-QDB526DJ.js +0 -223
  163. package/dist/update-steps-GTXNCG3Z.js +0 -80
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-CGXYPLK3.js';
4
- import { strippedVariables } from './chunk-RZ6WJTUP.js';
5
- import { defaultAgents } from './chunk-AVEF3T6Y.js';
3
+ import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-HTQFAHXD.js';
4
+ import { strippedVariables } from './chunk-TDUBZ4FR.js';
5
+ import { defaultAgents } from './chunk-GM4TY5H2.js';
6
6
  import { PROVIDERS } from './chunk-7PZDPISM.js';
7
- import { MIN_SCRUBBED_LITERAL } from './chunk-5R5FEPLH.js';
7
+ import { MIN_SCRUBBED_LITERAL } from './chunk-H2L5NB5U.js';
8
8
  import { mkdirSync, writeFileSync, existsSync, unlinkSync, chmodSync } from 'fs';
9
9
  import { request as request$1, createServer } from 'http';
10
10
  import { request } from 'https';
@@ -15,6 +15,139 @@ import { rootCertificates } from 'tls';
15
15
 
16
16
  createRequire(import.meta.url);
17
17
 
18
+ // src/runner/sandbox/client.ts
19
+ var SANDBOX_KEY_VARIABLE = "SANDBOX_API_KEY";
20
+ var SANDBOX_VARIABLES = [SANDBOX_KEY_VARIABLE, "SANDBOX_API_URL", "SANDBOX_TOKEN_HEADER"];
21
+ function sandboxSettingsFrom(env) {
22
+ const missing = SANDBOX_VARIABLES.filter((name2) => (env[name2] ?? "").trim() === "");
23
+ if (missing.length > 0) return { ok: false, missing };
24
+ return { ok: true, settings: { apiKey: env[SANDBOX_KEY_VARIABLE], apiUrl: env["SANDBOX_API_URL"].trim(), tokenHeader: env["SANDBOX_TOKEN_HEADER"].trim() } };
25
+ }
26
+ var CALL_TIMEOUT_MS = 3e4;
27
+ var CREATE_ATTEMPTS = 2;
28
+ var LIST_PAGES = 50;
29
+ var SandboxError = class extends Error {
30
+ constructor(message, status, code) {
31
+ super(message);
32
+ this.status = status;
33
+ this.code = code;
34
+ this.name = "SandboxError";
35
+ }
36
+ };
37
+ function describeSandboxError(err) {
38
+ const detail = err.message === "" ? "" : `: ${err.message}`;
39
+ return err.code === void 0 ? `The provider answered HTTP ${err.status}${detail}` : `${err.code}${detail}`;
40
+ }
41
+ function sandboxOf(raw) {
42
+ if (typeof raw.id !== "string" || typeof raw.dataPlaneUrl !== "string") throw new SandboxError("the answer names no sandbox id or data plane", 0);
43
+ return {
44
+ id: raw.id,
45
+ name: typeof raw.name === "string" ? raw.name : "",
46
+ state: typeof raw.state === "string" ? raw.state : "",
47
+ dataPlaneUrl: raw.dataPlaneUrl.replace(/\/+$/, ""),
48
+ secret: typeof raw.secret === "string" ? raw.secret : "",
49
+ urlToken: typeof raw.urlToken === "string" ? raw.urlToken : "",
50
+ metadata: typeof raw.metadata === "object" && raw.metadata !== null ? raw.metadata : {},
51
+ ...typeof raw.endedReason === "string" ? { endedReason: raw.endedReason } : {}
52
+ };
53
+ }
54
+ function createSandboxClient(opts) {
55
+ const fetchImpl = opts.fetchImpl ?? fetch;
56
+ const base = opts.apiUrl.replace(/\/+$/, "");
57
+ const authorization = `Bearer ${opts.apiKey}`;
58
+ async function call(url, init) {
59
+ let response;
60
+ try {
61
+ response = await fetchImpl(url, { ...init, signal: AbortSignal.timeout(init.timeoutMs ?? CALL_TIMEOUT_MS) });
62
+ } catch (err) {
63
+ throw new SandboxError(`no answer from the provider: ${err instanceof Error ? err.message : String(err)}`, 0);
64
+ }
65
+ if (response.ok) return response;
66
+ let code;
67
+ let message = "";
68
+ try {
69
+ const body = await response.json();
70
+ if (typeof body.code === "string") code = body.code;
71
+ if (typeof body.message === "string") message = body.message;
72
+ else if (typeof body.detail === "string") message = body.detail;
73
+ } catch {
74
+ }
75
+ throw new SandboxError(message, response.status, code);
76
+ }
77
+ const control = (path, init = {}) => call(`${base}${path}`, { ...init, headers: { Authorization: authorization, "Content-Type": "application/json", ...init.headers } });
78
+ return {
79
+ async create(input) {
80
+ for (let attempt = 1; ; attempt++) {
81
+ try {
82
+ const response = await control("/api/sandboxes/ephemeral", { method: "POST", body: JSON.stringify(input) });
83
+ return sandboxOf(await response.json());
84
+ } catch (err) {
85
+ const retry = err instanceof SandboxError && err.status >= 500 && attempt < CREATE_ATTEMPTS;
86
+ if (!retry) throw err;
87
+ }
88
+ }
89
+ },
90
+ async get(id) {
91
+ const response = await control(`/v1/sandboxes/${encodeURIComponent(id)}`);
92
+ return sandboxOf(await response.json());
93
+ },
94
+ async list() {
95
+ const found = [];
96
+ let cursor;
97
+ for (let page = 0; page < LIST_PAGES; page++) {
98
+ const response = await control(`/api/sandboxes/ephemeral${cursor === void 0 ? "" : `?cursor=${encodeURIComponent(cursor)}`}`);
99
+ const body = await response.json();
100
+ for (const raw of body.sandboxes ?? []) found.push(sandboxOf(raw));
101
+ if (typeof body.nextCursor !== "string" || body.nextCursor === "") {
102
+ cursor = void 0;
103
+ break;
104
+ }
105
+ cursor = body.nextCursor;
106
+ }
107
+ if (cursor !== void 0) throw new SandboxError(`the list of sandboxes has more than ${LIST_PAGES} pages`, 0);
108
+ return found;
109
+ },
110
+ async end(id) {
111
+ try {
112
+ await control(`/api/sandboxes/ephemeral/${encodeURIComponent(id)}`, { method: "DELETE" });
113
+ } catch (err) {
114
+ if (err instanceof SandboxError && err.status === 404) return;
115
+ throw err;
116
+ }
117
+ },
118
+ async portUrl(sandbox, port) {
119
+ const response = await control(`/v1/sandboxes/${encodeURIComponent(sandbox.id)}/urls`, { method: "POST", body: JSON.stringify({ port }) });
120
+ const body = await response.json();
121
+ if (typeof body.url !== "string") throw new SandboxError("the answer holds no port URL", 0);
122
+ return body.url;
123
+ },
124
+ async command(sandbox, cmd, options = {}) {
125
+ const response = await call(`${sandbox.dataPlaneUrl}/commands`, {
126
+ method: "POST",
127
+ headers: { [opts.tokenHeader]: sandbox.secret, "Content-Type": "application/json" },
128
+ body: JSON.stringify({ cmd, ...options.background === true ? { background: true } : {} }),
129
+ ...options.timeoutMs === void 0 ? {} : { timeoutMs: options.timeoutMs }
130
+ });
131
+ const body = await response.json();
132
+ return {
133
+ state: typeof body.state === "string" ? body.state : "",
134
+ exitCode: typeof body.exitCode === "number" ? body.exitCode : null,
135
+ stdout: typeof body.stdout === "string" ? body.stdout : "",
136
+ stderr: typeof body.stderr === "string" ? body.stderr : "",
137
+ truncated: body.truncated === true
138
+ };
139
+ },
140
+ async upload(sandbox, path, bytes) {
141
+ await call(`${sandbox.dataPlaneUrl}/files?path=${encodeURIComponent(path)}`, {
142
+ method: "PUT",
143
+ headers: { [opts.tokenHeader]: sandbox.secret, "Content-Type": "application/octet-stream" },
144
+ body: new Uint8Array(bytes),
145
+ timeoutMs: 5 * 6e4
146
+ });
147
+ }
148
+ };
149
+ }
150
+
18
151
  // src/scrub-env.ts
19
152
  var SCRUB_ENV_VARIABLE = "OUTERLAYER_SCRUB_ENV";
20
153
 
@@ -439,6 +572,10 @@ function proxyEnvironment(proxyUrl, alsoNoProxy) {
439
572
  YARN_HTTP_PROXY: proxyUrl
440
573
  };
441
574
  }
575
+ function toolProxyEnvironment() {
576
+ const all = proxyEnvironment(PROXY_URL);
577
+ return Object.fromEntries(toolProxyVariables().map((name2) => [name2, all[name2]]));
578
+ }
442
579
  var PROXY_WARNING_FLAG = "--disable-warning=UNDICI-EHPA";
443
580
  function runnerLiterals(repository, repositories = [], unpinnedRuntimes, missingSetupScripts) {
444
581
  return {
@@ -470,6 +607,8 @@ function reservedNames() {
470
607
  ...Object.keys(runnerLiterals("owner/name")),
471
608
  ...Object.keys(builtInEnvironment(containerBuiltInAddress, void 0)),
472
609
  "PATH",
610
+ // The key controls every sandbox its account holds, so a build may never read it.
611
+ SANDBOX_KEY_VARIABLE,
473
612
  ...tokenVariables(),
474
613
  ...toolProxyVariables()
475
614
  ]);
@@ -1169,4 +1308,4 @@ async function startBuildServices(input) {
1169
1308
  }
1170
1309
  }
1171
1310
 
1172
- export { BUILD_HOME, CHECKOUT_DIR, CHECK_ITEMS_FILE, DESTINATION_BASE_PORT, EVAL_INPUT_DIR, IMAGE_BUNDLES, JOB_MOUNT, PROXY_WARNING_FLAG, RELAY_PORT, SCRUB_ENV_VARIABLE, STAND_IN, applyTrust, authorEnvironment, buildAuthorityFor, buildEnvironment, carried6to4, checkEnvironment, checkoutPath, classifyAddress, commitIdentityRecord, containerLocalAddress, destinationEnvironment, dropBuildAuthority, droppedRequestHeaders, hasDotDotSegment, headerVariables, heldBuildAuthority, hostKeyOf, isMiseVariableAllowed, isRefusedInConfig, isReservedVariable, lifecycleWorkdir, parseClaimIdentity, parseClaimedRepositories, parseIsolation, parseProxied, parseUnreachable, primaryOf, proxyEnvironment, readBundleScript, repositoriesOf, repositoryPath, resolveDestinations, routeNameOf, sharedUserEnvironment, startBuildServices, tokenHeader, trustEnvironment, variableForPath, variablesFor, withGitConfig, withHooksPath, withMiseVariables, withTokenHeader, withTunnelRecord, writeTrustFiles };
1311
+ export { BUILD_HOME, CHECKOUT_DIR, CHECK_ITEMS_FILE, DESTINATION_BASE_PORT, EVAL_INPUT_DIR, IMAGE_BUNDLES, JOB_MOUNT, PROXY_WARNING_FLAG, RELAY_PORT, SANDBOX_VARIABLES, SCRUB_ENV_VARIABLE, STAND_IN, SandboxError, applyTrust, authorEnvironment, buildAuthorityFor, buildEnvironment, carried6to4, checkEnvironment, checkoutPath, classifyAddress, commitIdentityRecord, containerLocalAddress, createSandboxClient, describeSandboxError, destinationEnvironment, dropBuildAuthority, droppedRequestHeaders, hasDotDotSegment, headerVariables, heldBuildAuthority, hostKeyOf, isMiseVariableAllowed, isRefusedInConfig, isReservedVariable, lifecycleWorkdir, parseClaimIdentity, parseClaimedRepositories, parseIsolation, parseProxied, parseUnreachable, primaryOf, proxyEnvironment, readBundleScript, repositoriesOf, repositoryPath, resolveDestinations, routeNameOf, sandboxSettingsFrom, sharedUserEnvironment, startBuildServices, tokenHeader, toolProxyEnvironment, trustEnvironment, variableForPath, variablesFor, withGitConfig, withHooksPath, withMiseVariables, withTokenHeader, withTunnelRecord, writeTrustFiles };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-3FAJMXBA.js';
4
- import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-5VAXNAOD.js';
3
+ import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-6BPCEGJL.js';
4
+ import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-YZ5M7S7U.js';
5
5
  import { spawnSync } from 'child_process';
6
6
  import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
7
7
  import { dirname, join } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RELAY_PORT, BUILD_HOME } from './chunk-OUHM6U6Z.js';
3
+ import { RELAY_PORT, BUILD_HOME } from './chunk-FCU7WSCV.js';
4
4
  import { createServer, connect } from 'net';
5
5
 
6
6
  createRequire(import.meta.url);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-SF2TBJBP.js';
4
- import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-AVEF3T6Y.js';
4
+ import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-GM4TY5H2.js';
5
5
  import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
6
6
  import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
7
7
  import { lstatSync, readFileSync } from 'fs';
@@ -5,7 +5,7 @@ import { CLAUDE_CODE, OPENCODE, NATIVE_AGENTS, LEGACY_AGENT, homeRelative } from
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-5R5FEPLH.js';
8
+ import { forkFor, RAW_MIRROR_SEGMENTS, WarningCollector, WARNING_CODES, isNewerThanSupported, bucketsFromTurns, costOfUsage } from './chunk-H2L5NB5U.js';
9
9
  import { RESERVED_EMIT_NAMES, EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, ARTIFACT_KINDS, ArtifactCriterionIdSchema, SPEED_MAX_LENGTH } from './chunk-YXXJBHHF.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 { defaultAgents } from './chunk-AVEF3T6Y.js';
3
+ import { defaultAgents } from './chunk-GM4TY5H2.js';
4
4
  import { openSync, fstatSync, readSync, closeSync } from 'fs';
5
5
  import { join } from 'path';
6
6
 
@@ -23815,15 +23815,15 @@ var ModelRegistryImpl = class {
23815
23815
  };
23816
23816
  var models_default = {
23817
23817
  version: "1.0.0",
23818
- generatedAt: "2026-11-05T05:51:59.179Z",
23818
+ generatedAt: "2026-11-06T05:47:55.370Z",
23819
23819
  sources: {
23820
23820
  litellm: {
23821
- fetchedAt: "2026-11-05T05:51:59.179Z",
23822
- modelCount: 2006
23821
+ fetchedAt: "2026-11-06T05:47:55.370Z",
23822
+ modelCount: 2009
23823
23823
  },
23824
23824
  openrouter: {
23825
- fetchedAt: "2026-11-05T05:51:59.179Z",
23826
- modelCount: 195
23825
+ fetchedAt: "2026-11-06T05:47:55.370Z",
23826
+ modelCount: 197
23827
23827
  }
23828
23828
  },
23829
23829
  models: {
@@ -30328,8 +30328,7 @@ var models_default = {
30328
30328
  functionCalling: true,
30329
30329
  structuredOutput: true,
30330
30330
  pdfInput: true
30331
- },
30332
- deprecationDate: null
30331
+ }
30333
30332
  },
30334
30333
  "us-gov-east-1/anthropic.claude-3-haiku-20240307-v1:0": {
30335
30334
  provider: "bedrock",
@@ -30550,8 +30549,7 @@ var models_default = {
30550
30549
  promptCaching: true,
30551
30550
  reasoning: true,
30552
30551
  pdfInput: true
30553
- },
30554
- deprecationDate: null
30552
+ }
30555
30553
  },
30556
30554
  "us-gov-west-1/anthropic.claude-3-5-sonnet-20240620-v1:0": {
30557
30555
  provider: "bedrock",
@@ -30571,8 +30569,7 @@ var models_default = {
30571
30569
  functionCalling: true,
30572
30570
  structuredOutput: true,
30573
30571
  pdfInput: true
30574
- },
30575
- deprecationDate: null
30572
+ }
30576
30573
  },
30577
30574
  "us-gov-west-1/anthropic.claude-3-haiku-20240307-v1:0": {
30578
30575
  provider: "bedrock",
@@ -50362,7 +50359,8 @@ var models_default = {
50362
50359
  provider: "azure",
50363
50360
  displayName: "Mistral Document Ai 2512",
50364
50361
  mode: "chat",
50365
- source: "litellm"
50362
+ source: "litellm",
50363
+ deprecationDate: "2027-02-15"
50366
50364
  },
50367
50365
  "doc-intelligence/prebuilt-read": {
50368
50366
  provider: "azure",
@@ -59203,7 +59201,7 @@ var models_default = {
59203
59201
  },
59204
59202
  "gemini-omni-1.1-flash": {
59205
59203
  provider: "google",
59206
- displayName: "Gemini Omni 1.1 Flash",
59204
+ displayName: "Google: Gemini Omni 1.1 Flash",
59207
59205
  mode: "chat",
59208
59206
  source: "litellm",
59209
59207
  pricing: {
@@ -59211,14 +59209,20 @@ var models_default = {
59211
59209
  outputCostPerToken: 9e-6
59212
59210
  },
59213
59211
  context: {
59214
- maxInputTokens: 1048576,
59212
+ maxInputTokens: 131072,
59215
59213
  maxOutputTokens: 65536
59216
59214
  },
59217
59215
  capabilities: {
59218
59216
  vision: true,
59219
59217
  reasoning: true,
59220
59218
  audioInput: true
59221
- }
59219
+ },
59220
+ deprecationDate: "2026-12-03",
59221
+ supportedParameters: [
59222
+ "max_tokens",
59223
+ "temperature",
59224
+ "top_p"
59225
+ ]
59222
59226
  },
59223
59227
  "grok-4.20": {
59224
59228
  provider: "xai",
@@ -69472,7 +69476,8 @@ var models_default = {
69472
69476
  },
69473
69477
  capabilities: {
69474
69478
  reasoning: true
69475
- }
69479
+ },
69480
+ deprecationDate: "2027-02-01"
69476
69481
  },
69477
69482
  "grok-voice-3.0": {
69478
69483
  provider: "xai",
@@ -69599,7 +69604,7 @@ var models_default = {
69599
69604
  reasoning: true,
69600
69605
  pdfInput: true
69601
69606
  },
69602
- deprecationDate: "2027-10-01"
69607
+ deprecationDate: "2027-01-15"
69603
69608
  },
69604
69609
  "reflection/Beam-1.0-501B-A23B": {
69605
69610
  provider: "together_ai",
@@ -70945,6 +70950,7 @@ var models_default = {
70945
70950
  maxOutputTokens: 131072
70946
70951
  },
70947
70952
  capabilities: {
70953
+ vision: true,
70948
70954
  functionCalling: true,
70949
70955
  structuredOutput: true,
70950
70956
  promptCaching: true,
@@ -71483,6 +71489,81 @@ var models_default = {
71483
71489
  capabilities: {
71484
71490
  promptCaching: true
71485
71491
  }
71492
+ },
71493
+ "us-gov.xai.grok-4.7": {
71494
+ provider: "bedrock",
71495
+ displayName: "Us Gov.xai.grok 4.7",
71496
+ mode: "chat",
71497
+ source: "litellm",
71498
+ pricing: {
71499
+ inputCostPerToken: 264e-8,
71500
+ outputCostPerToken: 792e-8,
71501
+ cacheReadCostPerToken: 66e-8
71502
+ },
71503
+ context: {
71504
+ maxInputTokens: 524288,
71505
+ maxOutputTokens: 524288
71506
+ },
71507
+ capabilities: {
71508
+ vision: true,
71509
+ functionCalling: true,
71510
+ promptCaching: false,
71511
+ reasoning: true
71512
+ }
71513
+ },
71514
+ "gpt-6-cyber": {
71515
+ provider: "openai",
71516
+ displayName: "Gpt 6 Cyber",
71517
+ mode: "chat",
71518
+ source: "litellm",
71519
+ pricing: {
71520
+ inputCostPerToken: 2e-5,
71521
+ outputCostPerToken: 1e-4,
71522
+ cacheCreationCostPerToken: 25e-6,
71523
+ cacheReadCostPerToken: 2e-6
71524
+ },
71525
+ context: {
71526
+ maxInputTokens: 922e3,
71527
+ maxOutputTokens: 128e3
71528
+ },
71529
+ capabilities: {
71530
+ vision: true,
71531
+ functionCalling: true,
71532
+ structuredOutput: true,
71533
+ promptCaching: true,
71534
+ reasoning: true,
71535
+ pdfInput: true,
71536
+ webSearch: true
71537
+ }
71538
+ },
71539
+ "gemini-omni-1.2-flash": {
71540
+ provider: "google",
71541
+ displayName: "Google: Gemini Omni 1.2 Flash",
71542
+ mode: "chat",
71543
+ source: "litellm",
71544
+ pricing: {
71545
+ inputCostPerToken: 15e-7,
71546
+ outputCostPerToken: 9e-6
71547
+ },
71548
+ context: {
71549
+ maxInputTokens: 131072,
71550
+ maxOutputTokens: 131072
71551
+ },
71552
+ capabilities: {
71553
+ vision: true,
71554
+ functionCalling: false,
71555
+ structuredOutput: false,
71556
+ promptCaching: false,
71557
+ reasoning: true,
71558
+ audioInput: false,
71559
+ audioOutput: false,
71560
+ webSearch: false
71561
+ },
71562
+ supportedParameters: [
71563
+ "max_tokens",
71564
+ "temperature",
71565
+ "top_p"
71566
+ ]
71486
71567
  }
71487
71568
  }
71488
71569
  };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-RZ6WJTUP.js';
4
- import { defaultAgents } from './chunk-AVEF3T6Y.js';
3
+ import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-TDUBZ4FR.js';
4
+ import { defaultAgents } from './chunk-GM4TY5H2.js';
5
5
  import { PROVIDERS } from './chunk-7PZDPISM.js';
6
6
  import { statSync, readFileSync } from 'fs';
7
7
  import { join } from 'path';
@@ -1,14 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { placeholderQueues, placeholderProblem } from './chunk-Z4R36YDJ.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-2MQQASWB.js';
5
- import { getJson, WorkCommandError } from './chunk-JTDMSQMI.js';
6
- import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-VNT2IRLM.js';
7
- import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-MPE4NOKD.js';
8
- import { ensureHostKey } from './chunk-EFAOERZH.js';
9
- import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-CGXYPLK3.js';
10
- import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-RZ6WJTUP.js';
11
- import { defaultAgents } from './chunk-AVEF3T6Y.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-ZYQT6Q5R.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-VOSC32UF.js';
5
+ import { getJson, WorkCommandError } from './chunk-RFBJKK2L.js';
6
+ import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-UF3YTRGU.js';
7
+ import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-G2EWER4K.js';
8
+ import { ensureHostKey } from './chunk-TOVSIUEJ.js';
9
+ import { sandboxSettingsFrom } from './chunk-FCU7WSCV.js';
10
+ import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-HTQFAHXD.js';
11
+ import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-TDUBZ4FR.js';
12
+ import { defaultAgents } from './chunk-GM4TY5H2.js';
12
13
  import { closeSync, openSync, constants, readFileSync } from 'fs';
13
14
  import { join, dirname } from 'path';
14
15
  import { totalmem } from 'os';
@@ -179,6 +180,11 @@ function checkBlockedWithSlots(config, probes, agents = defaultAgents()) {
179
180
  }
180
181
  }
181
182
  }
183
+ const sandboxSettings = kind === "sandbox" ? sandboxSettingsFrom(probes.env) : void 0;
184
+ if (sandboxSettings !== void 0 && !sandboxSettings.ok) {
185
+ const names = sandboxSettings.missing.join(", ");
186
+ return { blocked: { reason: `${names} ${sandboxSettings.missing.length === 1 ? "is" : "are"} not set in the runner's environment, so builtin:sandbox cannot create a sandbox. Set ${sandboxSettings.missing.length === 1 ? "it" : "them"} in runner.env and restart the runner` }, slots };
187
+ }
182
188
  const kvm = kind === "vm" ? probes.kvm() : "usable";
183
189
  if (kvm === "absent") {
184
190
  return { blocked: { reason: "/dev/kvm does not exist on this machine, so builtin:vm cannot start a microVM. Use a host with KVM enabled, or builtin:container hooks" }, slots };
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-EXIZ3G6I.js';
4
- import { resolveGatewayCredentials } from './chunk-XDRZ3BNA.js';
3
+ import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-3KVYSJAL.js';
4
+ import { resolveGatewayCredentials } from './chunk-T7KETYNW.js';
5
5
  import { readCloudConfig } from './chunk-HWVMRETT.js';
6
6
  import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
8
8
  import { homeFromEnv } from './chunk-352DHUTP.js';
9
- import { resolveRepoIdentity } from './chunk-5R5FEPLH.js';
9
+ import { resolveRepoIdentity } from './chunk-H2L5NB5U.js';
10
10
 
11
11
  createRequire(import.meta.url);
12
12
 
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { WorkCommandError, postJson } from './chunk-JTDMSQMI.js';
4
- import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-DVFGCVTV.js';
5
- import { buildRefusalReason } from './chunk-X2DX3A7H.js';
6
- import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-QWDGHEQL.js';
7
- import { signingFetchFor } from './chunk-XDRZ3BNA.js';
8
- import { signerFor } from './chunk-EFAOERZH.js';
9
- import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-5VAXNAOD.js';
3
+ import { WorkCommandError, postJson } from './chunk-RFBJKK2L.js';
4
+ import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-TMYBADTM.js';
5
+ import { buildRefusalReason } from './chunk-MCLSXTLY.js';
6
+ import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-GM3H4ZHG.js';
7
+ import { signingFetchFor } from './chunk-T7KETYNW.js';
8
+ import { signerFor } from './chunk-TOVSIUEJ.js';
9
+ import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-YZ5M7S7U.js';
10
10
  import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-SF2TBJBP.js';
11
11
  import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
12
12
  import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
4
- import { detectActiveSession, transcriptPathForSession } from './chunk-DL5N6V3D.js';
5
- import { autoConnect } from './chunk-XE2PXGZT.js';
4
+ import { detectActiveSession, transcriptPathForSession } from './chunk-GQEVQIS6.js';
5
+ import { autoConnect } from './chunk-JKQAOSSX.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-XDRZ3BNA.js';
7
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-T7KETYNW.js';
8
8
  import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
9
9
  import { launchedItemForSession } from './chunk-4OD45RBP.js';
10
10
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
11
11
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
12
- import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-AVEF3T6Y.js';
12
+ import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-GM4TY5H2.js';
13
13
  import { homeFromEnv } from './chunk-352DHUTP.js';
14
- import { resolveRepoIdentity, scrubText } from './chunk-5R5FEPLH.js';
14
+ import { resolveRepoIdentity, scrubText } from './chunk-H2L5NB5U.js';
15
15
  import { FindingBatchSchema, FindingsResponseSchema, SAME_PROBLEM_RULES } from './chunk-YXXJBHHF.js';
16
16
  import { readFileSync, existsSync } from 'fs';
17
17
  import { homedir } from 'os';
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { LiveUploader } from './chunk-3DVCPRKE.js';
4
- import { spoolDir } from './chunk-256R6O56.js';
3
+ import { LiveUploader } from './chunk-LRE4QIMD.js';
4
+ import { spoolDir } from './chunk-OMCDOJO2.js';
5
5
  import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
6
- import { sessionFolderIn, legacyAgent } from './chunk-AVEF3T6Y.js';
6
+ import { sessionFolderIn, legacyAgent } from './chunk-GM4TY5H2.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
8
- import { CaptureDaemon } from './chunk-5R5FEPLH.js';
8
+ import { CaptureDaemon } from './chunk-H2L5NB5U.js';
9
9
  import { mkdirSync, writeFileSync, rmSync } from 'fs';
10
10
  import { join } from 'path';
11
11
 
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { DEFAULT_UNIT_NAME } from './chunk-2MQQASWB.js';
4
- import { RUNNER_FILE_MODE } from './chunk-5VAXNAOD.js';
5
- import { parseRunnerEnv, withoutCredentialLines } from './chunk-CGXYPLK3.js';
6
- import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-RZ6WJTUP.js';
7
- import { defaultAgents } from './chunk-AVEF3T6Y.js';
3
+ import { DEFAULT_UNIT_NAME } from './chunk-VOSC32UF.js';
4
+ import { RUNNER_FILE_MODE } from './chunk-YZ5M7S7U.js';
5
+ import { parseRunnerEnv, withoutCredentialLines } from './chunk-HTQFAHXD.js';
6
+ import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-TDUBZ4FR.js';
7
+ import { defaultAgents } from './chunk-GM4TY5H2.js';
8
8
  import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
9
9
  import { join, dirname } from 'path';
10
10
 
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { uploadSpooledSteps } from './chunk-CCMKLF7K.js';
3
+ import { uploadSpooledSteps } from './chunk-NTRXOTO7.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-IXB2IIEW.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-XDRZ3BNA.js';
7
+ import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-T7KETYNW.js';
8
8
  import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-HWVMRETT.js';
9
- import { signerFor, signRunnerRequest } from './chunk-EFAOERZH.js';
10
- import { SCRUB_ENV_VARIABLE } from './chunk-OUHM6U6Z.js';
11
- import { writeSyncStatus, logHookError, spoolDir } from './chunk-256R6O56.js';
9
+ import { signerFor, signRunnerRequest } from './chunk-TOVSIUEJ.js';
10
+ import { SCRUB_ENV_VARIABLE } from './chunk-FCU7WSCV.js';
11
+ import { writeSyncStatus, logHookError, spoolDir } from './chunk-OMCDOJO2.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-RNCCRUT5.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, captureAgents, captureAdapters } from './chunk-AVEF3T6Y.js';
19
+ import { legacyAgent, captureAgents, captureAdapters } from './chunk-GM4TY5H2.js';
20
20
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
21
21
  import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
22
- import { setCustomScrubbers, setLocalIdentity, forkFor, readForkRecord, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, scrubDeep } from './chunk-5R5FEPLH.js';
22
+ import { setCustomScrubbers, setLocalIdentity, forkFor, readForkRecord, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, scrubDeep } from './chunk-H2L5NB5U.js';
23
23
  import { CAPTURE_TIERS, inferArtifactKind, bannedPathsForTier, downconvertSession, isHumanUserTurn, turnCountBound, EVENT_TYPES } from './chunk-YXXJBHHF.js';
24
24
  import { dirname, basename, join, sep } from 'path';
25
25
  import { statSync, readFileSync, readdirSync, mkdirSync, writeFileSync, renameSync, existsSync, rmSync } from 'fs';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-2MQQASWB.js';
4
- import { inspectService, realInspectProbes } from './chunk-CGXYPLK3.js';
3
+ import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-VOSC32UF.js';
4
+ import { inspectService, realInspectProbes } from './chunk-HTQFAHXD.js';
5
5
  import { realpathSync, readFileSync, readdirSync } from 'fs';
6
6
  import { resolve, dirname, join } from 'path';
7
7
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-AVEF3T6Y.js';
3
+ import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-GM4TY5H2.js';
4
4
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
5
5
  import { readFileSync } from 'fs';
6
6
  import { join } from 'path';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { sanitizeTerminal } from './chunk-IXB2IIEW.js';
4
- import { resolvePackRoot, parseProofsConfig } from './chunk-AVEF3T6Y.js';
4
+ import { resolvePackRoot, parseProofsConfig } from './chunk-GM4TY5H2.js';
5
5
  import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema, CHECK_ITEM_REFS_MAX, CHECK_ITEM_REF_PATH_MAX_LENGTH } from './chunk-YXXJBHHF.js';
6
6
  import { createHash } from 'crypto';
7
7
  import { join } from 'path';