@outerlayer/cli 0.40.0-next.20261114141534 → 0.40.0-next.20261114214913

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 (141) hide show
  1. package/dist/{agent-setup-RAPMR5E7.js → agent-setup-O4SZOHRU.js} +8 -8
  2. package/dist/{agent-subcommand-FFRNWF6T.js → agent-subcommand-PVTVR4VJ.js} +1 -1
  3. package/dist/{bridge-2LB6UHW7.js → bridge-7Z6MLB2B.js} +3 -3
  4. package/dist/{build-N6WNVWOP.js → build-A2WX5O3I.js} +8 -8
  5. package/dist/{build-disk-RIQDTOML.js → build-disk-ASKLEF5R.js} +6 -6
  6. package/dist/build-info.json +1 -1
  7. package/dist/{builder-C2BEDG75.js → builder-ANFJHFZQ.js} +5 -5
  8. package/dist/{caller-P3HA4LAX.js → caller-KCSJDOWD.js} +8 -8
  9. package/dist/{check-ARWWJ2ED.js → check-2MAB2XOX.js} +40 -40
  10. package/dist/{chunk-I6MLYOGL.js → chunk-2OSEUHWY.js} +1 -1
  11. package/dist/{chunk-QAOEOSSE.js → chunk-2UBMDLUF.js} +1 -1
  12. package/dist/chunk-3FCYURWW.js +41 -0
  13. package/dist/{chunk-FF5TPCQ7.js → chunk-3MCO6PFW.js} +9 -9
  14. package/dist/{chunk-PIXRISH7.js → chunk-3SOB6LWY.js} +29 -27
  15. package/dist/{chunk-6AFTYWAB.js → chunk-3WYPBALP.js} +4 -4
  16. package/dist/{chunk-I2BO2QBH.js → chunk-4ATFANLO.js} +2 -2
  17. package/dist/{chunk-SWKFTYZI.js → chunk-5D3XOHGK.js} +5 -5
  18. package/dist/{chunk-QNHHD75P.js → chunk-5I4PLRFO.js} +3 -3
  19. package/dist/{chunk-3JJ6JIYS.js → chunk-5ZVZ7MVD.js} +5 -5
  20. package/dist/{chunk-PEFV5YIJ.js → chunk-6SOATTHF.js} +3 -3
  21. package/dist/{chunk-4PH73UWD.js → chunk-6WBI37BR.js} +2 -2
  22. package/dist/{chunk-CG44IGEF.js → chunk-ANBDFUHT.js} +1 -1
  23. package/dist/{chunk-X26S7Y2N.js → chunk-AQEVNB6C.js} +2 -2
  24. package/dist/{chunk-3GBUF5VG.js → chunk-BXWZCLJ3.js} +1 -1
  25. package/dist/{chunk-U65ALAP5.js → chunk-C2W453KR.js} +2 -2
  26. package/dist/{chunk-SHCD5V7G.js → chunk-D5YKPIHV.js} +1 -1
  27. package/dist/{chunk-ZI5MT4TT.js → chunk-DMAAKDGD.js} +1 -1
  28. package/dist/{chunk-3ZUW6SKU.js → chunk-FDENE6LM.js} +2 -2
  29. package/dist/{chunk-RM6UGUWJ.js → chunk-FMYWIBBW.js} +2 -2
  30. package/dist/chunk-HMVOTDEQ.js +129 -0
  31. package/dist/{chunk-E74YOVYI.js → chunk-IB4SVQNB.js} +1 -1
  32. package/dist/{chunk-PZNWC2RV.js → chunk-IMMWZV57.js} +2 -2
  33. package/dist/{chunk-6O5LXVFE.js → chunk-IOKR7Z7Z.js} +7 -7
  34. package/dist/{chunk-EANGK4AM.js → chunk-IT7RFVWR.js} +5 -5
  35. package/dist/{chunk-Q2SX6RZJ.js → chunk-J4WAHOXM.js} +1 -1
  36. package/dist/{chunk-VLI43TVN.js → chunk-KJNI2WWR.js} +2 -2
  37. package/dist/{chunk-PQOIDBWE.js → chunk-KTHGBFIH.js} +2 -2
  38. package/dist/{chunk-V6QH7AIR.js → chunk-MHFVGML3.js} +2 -2
  39. package/dist/{chunk-T7HMGQH2.js → chunk-MP6INWPC.js} +3 -3
  40. package/dist/{chunk-7QDAAW2N.js → chunk-N6DWNOEF.js} +1 -1
  41. package/dist/{chunk-IRWP4HF7.js → chunk-NBNZFLKJ.js} +1 -1
  42. package/dist/{chunk-3ZYSB2V7.js → chunk-ODWWDOK5.js} +3 -3
  43. package/dist/{chunk-IYDHMOTC.js → chunk-OHJOC2H2.js} +3 -3
  44. package/dist/{chunk-ZKZD4CGD.js → chunk-PNZMJFVP.js} +4 -4
  45. package/dist/{chunk-FTV63SCQ.js → chunk-PUUQKA3W.js} +17 -6
  46. package/dist/{chunk-3LORQC4Z.js → chunk-RSW5AXPT.js} +1 -1
  47. package/dist/{chunk-34IH7AVH.js → chunk-ST5S3P2C.js} +2 -2
  48. package/dist/{chunk-WW6LIFKM.js → chunk-SWSPRGJL.js} +8 -8
  49. package/dist/{chunk-CYZQDC6N.js → chunk-T3X3FZIR.js} +1 -1
  50. package/dist/{chunk-RIZCV7GX.js → chunk-TG3O6CAF.js} +5 -5
  51. package/dist/{chunk-BN6NRJ66.js → chunk-TIDPEU6D.js} +29 -29
  52. package/dist/{chunk-LJRO53R4.js → chunk-TQDXHGUF.js} +2 -2
  53. package/dist/{chunk-6G6FOCJW.js → chunk-TTHF4LOS.js} +3 -3
  54. package/dist/{chunk-3JVYMD4G.js → chunk-TXKHD4Q6.js} +3 -2
  55. package/dist/{chunk-RC5ENCHK.js → chunk-ULENFLVA.js} +3 -3
  56. package/dist/{chunk-JEW6WDGJ.js → chunk-VGV3J5CX.js} +1 -1
  57. package/dist/{chunk-K4N6Z4A2.js → chunk-VY2MH6VX.js} +5 -5
  58. package/dist/{chunk-4J5KDIHZ.js → chunk-W3K7TKYW.js} +3 -3
  59. package/dist/{chunk-IE75TT5E.js → chunk-WNFQV5SL.js} +1 -1
  60. package/dist/{chunk-ZM7AL7UV.js → chunk-WR2TR6BC.js} +6 -3
  61. package/dist/{chunk-DZCELAHC.js → chunk-X5WH346T.js} +2 -2
  62. package/dist/{chunk-SWYBUMUL.js → chunk-Y2US5RDK.js} +1 -1
  63. package/dist/{chunk-GD2LIK6W.js → chunk-YRH4DL4O.js} +3 -3
  64. package/dist/{chunk-7LZYS7BO.js → chunk-YY64D4FA.js} +1 -1
  65. package/dist/{claude-launcher-DQQX7ZEE.js → claude-launcher-FOPWME6I.js} +1 -1
  66. package/dist/{cli-EZTI4WK3.js → cli-AUEXVGLP.js} +149 -141
  67. package/dist/{command-EQ4LIIPO.js → command-G3B5IT5T.js} +58 -34
  68. package/dist/{config-334GXURH.js → config-PFQRCT5B.js} +7 -7
  69. package/dist/{connect-cmd-XPSZXYXO.js → connect-cmd-IK3Z2YH2.js} +6 -6
  70. package/dist/{container-start-ZX2HJUEQ.js → container-start-JHQMAKWD.js} +32 -32
  71. package/dist/{context-show-cmd-SZMHOFFV.js → context-show-cmd-DJZC5TRN.js} +7 -7
  72. package/dist/{control-plane-launch-YQOT2EQL.js → control-plane-launch-P2E55QZ4.js} +6 -6
  73. package/dist/{demo-record-cmd-JB5VCPRW.js → demo-record-cmd-VBWYXYOF.js} +3 -3
  74. package/dist/{demo-voice-cmd-BFNOUEP3.js → demo-voice-cmd-W6FHJTMH.js} +12 -12
  75. package/dist/{docker-UZYTRFEQ.js → docker-WMGXGZFP.js} +5 -5
  76. package/dist/{doctor-J4DD52YY.js → doctor-4JZJQOGE.js} +34 -34
  77. package/dist/{emit-artifact-cmd-XSPHZU4L.js → emit-artifact-cmd-MT4M3ILS.js} +11 -11
  78. package/dist/{emit-criteria-cmd-TE4WI4NC.js → emit-criteria-cmd-M5QRMNGB.js} +8 -8
  79. package/dist/{emit-demo-cmd-D6Q4CHLY.js → emit-demo-cmd-VKD2CSQH.js} +12 -12
  80. package/dist/{emit-finding-cmd-OR6SJPFW.js → emit-finding-cmd-UYGLPQJE.js} +8 -8
  81. package/dist/{emit-result-cmd-AXFTHFH5.js → emit-result-cmd-GH4KOPNC.js} +10 -10
  82. package/dist/{emit-step-cmd-DXXTCZON.js → emit-step-cmd-EMCVWILY.js} +8 -8
  83. package/dist/{exec-client-XQCKLD5N.js → exec-client-BJ4FHM2I.js} +4 -4
  84. package/dist/{find-unit-5G5DI5KK.js → find-unit-VUV76BIL.js} +9 -9
  85. package/dist/{findings-cmd-Q47Z5SOI.js → findings-cmd-3P7EWNHA.js} +8 -8
  86. package/dist/{fleet-readiness-E7GE6OEY.js → fleet-readiness-3JMW2XNT.js} +6 -6
  87. package/dist/{governing-source-PZHH5KQO.js → governing-source-6HS6QVTK.js} +10 -10
  88. package/dist/{guest-init-4E2JSHZI.js → guest-init-ZZ3QGRFT.js} +5 -5
  89. package/dist/{hook-fast-CKQWLT6W.js → hook-fast-A5LADBOU.js} +1 -1
  90. package/dist/{host-checks-3PYYUHVK.js → host-checks-TTY663DX.js} +30 -30
  91. package/dist/{pending-35UMAGND.js → host-key-J24PEPIK.js} +4 -4
  92. package/dist/{image-tag-CPEVAJDD.js → image-tag-7PALJT67.js} +4 -4
  93. package/dist/index.js +4 -4
  94. package/dist/{init-4J5U5KA7.js → init-3D6C7GI2.js} +30 -30
  95. package/dist/{init-OBLM3BDH.js → init-GPS5KJQV.js} +30 -30
  96. package/dist/{init-agent-ZYT24CNV.js → init-agent-RXCIPMQ6.js} +30 -30
  97. package/dist/{init-cmd-4U45BP3X.js → init-cmd-5NUDQ6DV.js} +11 -11
  98. package/dist/{init-update-X4W5KWHZ.js → init-update-QDEM6MO5.js} +9 -9
  99. package/dist/{install-cmd-AKZE7R2E.js → install-cmd-WQ2KFKHI.js} +6 -6
  100. package/dist/launch-agent-NC7OZQGZ.js +26 -0
  101. package/dist/launch-agent-host-VVMPSX3S.js +6 -0
  102. package/dist/{logs-BQC5UDSI.js → logs-6DZKJJ22.js} +3 -3
  103. package/dist/{loop-7GZBLOZ6.js → loop-5VIKTHCW.js} +39 -39
  104. package/dist/{machine-DP32IH24.js → machine-MP4YXEVG.js} +30 -30
  105. package/dist/{mcp-serve-cmd-4DDHV5LT.js → mcp-serve-cmd-2KAWL7JK.js} +5 -5
  106. package/dist/{paths-B5GNVTVC.js → paths-BZKRN5J3.js} +3 -3
  107. package/dist/{host-key-Q3OKQTJF.js → pending-5Y4PJTOZ.js} +4 -4
  108. package/dist/{pidfile-ERHOAFUE.js → pidfile-4C23LXPN.js} +4 -4
  109. package/dist/{real-deps-QX5YH7FG.js → real-deps-B7NMEDXM.js} +1 -1
  110. package/dist/{record-GI6LXXNB.js → record-ABSHWHSO.js} +4 -4
  111. package/dist/{relay-4XYITTBN.js → relay-NZWG6R4J.js} +1 -1
  112. package/dist/{relay-protocol-6Y7GDQVE.js → relay-protocol-7ZN7CVXP.js} +1 -1
  113. package/dist/{run-cmd-WEZLK3FS.js → run-cmd-C35Z5ULW.js} +8 -8
  114. package/dist/{runner-env-4PF5MNVO.js → runner-env-AJWM62J2.js} +9 -9
  115. package/dist/{runner-identity-EM4EP5QK.js → runner-identity-PIEZDCFI.js} +5 -5
  116. package/dist/{runner-key-VAQXB2WA.js → runner-key-O7SMLAEA.js} +30 -30
  117. package/dist/{session-sender-KAZJBZMV.js → session-sender-UHBTHRJP.js} +11 -11
  118. package/dist/{spec-cmd-OIIYOA66.js → spec-cmd-BLQBWO7J.js} +9 -9
  119. package/dist/{state-Z3LM7LLU.js → state-RZ2GSI4R.js} +4 -4
  120. package/dist/{status-AAEAC2GN.js → status-4EU2RICM.js} +33 -32
  121. package/dist/{sync-cmd-MPVBCSMA.js → sync-cmd-LTNVLBSE.js} +10 -10
  122. package/dist/{update-steps-AVUMGWFH.js → update-steps-3YS3E7BW.js} +31 -31
  123. package/dist/{watch-PNFCUWXE.js → watch-RLXCOXF2.js} +10 -10
  124. package/dist/{work-claim-cmd-E6I6VZNS.js → work-claim-cmd-D7JLO57W.js} +14 -14
  125. package/dist/{work-cmd-KTDBSYL6.js → work-cmd-LPNNXYDQ.js} +8 -8
  126. package/dist/{work-comment-cmd-AXS7R6JB.js → work-comment-cmd-3HJLN4QH.js} +10 -10
  127. package/dist/{work-demo-cmd-L57K47U2.js → work-demo-cmd-YALQVN2X.js} +8 -8
  128. package/dist/{work-logs-cmd-K5EEZ5XP.js → work-logs-cmd-2HG4RAQI.js} +8 -8
  129. package/dist/{work-mock-cmd-KQWXIC72.js → work-mock-cmd-JVGAS2SE.js} +8 -8
  130. package/dist/{work-needs-attention-cmd-2ISFSCF3.js → work-needs-attention-cmd-VKGSHNKR.js} +8 -8
  131. package/dist/{work-no-change-cmd-PBVT7YPY.js → work-no-change-cmd-HQAHGBQK.js} +8 -8
  132. package/dist/{work-open-pr-cmd-Q4JLBNFW.js → work-open-pr-cmd-TZE4UMHK.js} +9 -9
  133. package/dist/{work-pr-cmd-MSZGMFKN.js → work-pr-cmd-XLJCLQ6X.js} +8 -8
  134. package/dist/{work-proofs-cmd-DPC5M65G.js → work-proofs-cmd-GU2BPOGW.js} +9 -9
  135. package/dist/{work-proofs-record-PFPGBKXM.js → work-proofs-record-M2T5FGC4.js} +19 -16
  136. package/dist/{work-stop-cmd-NGRBDCJF.js → work-stop-cmd-CDWNUCMO.js} +8 -8
  137. package/package.json +1 -1
  138. package/skill-pack/maintained/outerlayer-amend/SKILL.md +1 -1
  139. package/skill-pack/maintained/outerlayer-amend/references/new-proof.md +16 -0
  140. package/skill-pack/maintained/outerlayer-build/references/agent-briefs.md +6 -0
  141. package/skill-pack/maintained/outerlayer-build/references/evidence.md +2 -0
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-IE75TT5E.js';
3
+ import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-WNFQV5SL.js';
4
4
  import { startTimeOf } from './chunk-JBJTC3UU.js';
5
- import { EXEC_PORT } from './chunk-PQOIDBWE.js';
6
- import { RELAY_PORT } from './chunk-E74YOVYI.js';
5
+ import { EXEC_PORT } from './chunk-KTHGBFIH.js';
6
+ import { RELAY_PORT } from './chunk-IB4SVQNB.js';
7
7
  import { spawn, spawnSync } from 'child_process';
8
8
  import { symlinkSync, lstatSync, writeFileSync, chmodSync, mkdirSync, existsSync } from 'fs';
9
9
 
@@ -3,10 +3,10 @@ import { createRequire } from 'node:module';
3
3
  import { runEmit } from './chunk-EXRBPNSJ.js';
4
4
  import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-QWTN72TN.js';
5
5
  import { installStarterPack } from './chunk-OVV6F6TV.js';
6
- import { listWithAnd } from './chunk-Q2SX6RZJ.js';
6
+ import { listWithAnd } from './chunk-J4WAHOXM.js';
7
7
  import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-TQZHYLX5.js';
8
8
  import { C } from './chunk-2AM6Z5BP.js';
9
- import { resolveGitCommonDir, defaultGitRunner } from './chunk-DZCELAHC.js';
9
+ import { resolveGitCommonDir, defaultGitRunner } from './chunk-X5WH346T.js';
10
10
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
11
11
  import { linkedAgentsPath } from './chunk-SXF7NWK3.js';
12
12
  import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
@@ -882,7 +882,7 @@ async function missingControlPlane(cwd, sessionId, home, env) {
882
882
  cleanupEarlierCopies(dirs);
883
883
  }
884
884
  if (!contextPossiblyGoverned(cwd, home)) return void 0;
885
- const { governanceOf } = await import('./control-plane-launch-YQOT2EQL.js');
885
+ const { governanceOf } = await import('./control-plane-launch-P2E55QZ4.js');
886
886
  if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
887
887
  recordMissingContext(dirs, sessionId, home);
888
888
  const launcher = `${cliInvocation()} ${LEGACY.legacy.subcommand}`;
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-Q2SX6RZJ.js';
4
- import { resolveGatewayCredentials } from './chunk-3GBUF5VG.js';
3
+ import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-J4WAHOXM.js';
4
+ import { resolveGatewayCredentials } from './chunk-BXWZCLJ3.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';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { readCloudConfigStrict, readCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
4
- import { signRunnerRequest, signerFor } from './chunk-SHCD5V7G.js';
4
+ import { signRunnerRequest, signerFor } from './chunk-D5YKPIHV.js';
5
5
  import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
6
6
  import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-VNLHKIKR.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
@@ -2,9 +2,9 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
4
4
  import { detectActiveSession } from './chunk-7RDHN455.js';
5
- import { autoConnect } from './chunk-X26S7Y2N.js';
5
+ import { autoConnect } from './chunk-AQEVNB6C.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-3GBUF5VG.js';
7
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-BXWZCLJ3.js';
8
8
  import { launchedItemForSession } from './chunk-LGJ56FCM.js';
9
9
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
10
10
  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 { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-I6MLYOGL.js';
3
+ import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-2OSEUHWY.js';
4
4
  import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
5
5
  import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
6
6
 
@@ -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-I6MLYOGL.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-2OSEUHWY.js';
5
5
  import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
6
6
  import { dirname } from 'path';
7
7
 
@@ -2,9 +2,9 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
4
4
  import { detectActiveSession, transcriptPathForSession } from './chunk-7RDHN455.js';
5
- import { autoConnect } from './chunk-X26S7Y2N.js';
5
+ import { autoConnect } from './chunk-AQEVNB6C.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-3GBUF5VG.js';
7
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-BXWZCLJ3.js';
8
8
  import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
9
9
  import { launchedItemForSession } from './chunk-LGJ56FCM.js';
10
10
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { keyRunnerFactory, RunnerConfigError } from './chunk-T7HMGQH2.js';
4
- import { orgHomeDir } from './chunk-I6MLYOGL.js';
3
+ import { keyRunnerFactory, RunnerConfigError } from './chunk-MP6INWPC.js';
4
+ import { orgHomeDir } from './chunk-2OSEUHWY.js';
5
5
 
6
6
  createRequire(import.meta.url);
7
7
 
@@ -0,0 +1,129 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from 'node:module';
3
+ import { LAUNCH_AGENT_ENV } from './chunk-TXKHD4Q6.js';
4
+ import { execStartArgv } from './chunk-WR2TR6BC.js';
5
+ import { DEFAULT_UNIT_NAME } from './chunk-PNZMJFVP.js';
6
+ import { runnerDir } from './chunk-2OSEUHWY.js';
7
+ import { join, dirname } from 'path';
8
+
9
+ createRequire(import.meta.url);
10
+ var LABEL_PREFIX = "ai.outerlayer.sandbox-runner";
11
+ var STOP_MARGIN_MINUTES = 10;
12
+ function sandboxAgentLabel(unitName = DEFAULT_UNIT_NAME) {
13
+ return `${LABEL_PREFIX}.${unitName}`;
14
+ }
15
+ function agentsDir(home) {
16
+ return join(home, "Library", "LaunchAgents");
17
+ }
18
+ function sandboxAgentPath(home, unitName = DEFAULT_UNIT_NAME) {
19
+ return join(agentsDir(home), `${sandboxAgentLabel(unitName)}.plist`);
20
+ }
21
+ var escapeXml = (text) => text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
22
+ function pathOf(nodePath, host) {
23
+ const git = host.which("git");
24
+ const dirs = [dirname(nodePath), ...git === void 0 ? [] : [dirname(git)], "/usr/bin", "/bin", "/usr/sbin", "/sbin"];
25
+ return [...new Set(dirs)].join(":");
26
+ }
27
+ function plistText(request, host) {
28
+ const log = join(runnerDir(request.configPath), "runner.log");
29
+ const args = execStartArgv(request.configPath, request.nodePath).map((word) => ` <string>${escapeXml(word)}</string>
30
+ `).join("");
31
+ return `<?xml version="1.0" encoding="UTF-8"?>
32
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
+ <plist version="1.0">
34
+ <dict>
35
+ <key>Label</key>
36
+ <string>${escapeXml(sandboxAgentLabel(request.unitName))}</string>
37
+ <key>ProgramArguments</key>
38
+ <array>
39
+ ${args} </array>
40
+ <key>EnvironmentVariables</key>
41
+ <dict>
42
+ <key>PATH</key>
43
+ <string>${escapeXml(pathOf(request.nodePath, host))}</string>
44
+ <key>${LAUNCH_AGENT_ENV}</key>
45
+ <string>1</string>
46
+ </dict>
47
+ <key>RunAtLoad</key>
48
+ <true/>
49
+ <key>KeepAlive</key>
50
+ <dict>
51
+ <key>SuccessfulExit</key>
52
+ <false/>
53
+ </dict>
54
+ <key>ThrottleInterval</key>
55
+ <integer>30</integer>
56
+ <key>ExitTimeOut</key>
57
+ <integer>${(request.timeLimitMinutes + STOP_MARGIN_MINUTES) * 60}</integer>
58
+ <key>StandardOutPath</key>
59
+ <string>${escapeXml(log)}</string>
60
+ <key>StandardErrorPath</key>
61
+ <string>${escapeXml(log)}</string>
62
+ </dict>
63
+ </plist>
64
+ `;
65
+ }
66
+ var outcome = (ok, state, lines, unit) => ({ ok, state, lines, ...unit === void 0 ? {} : { unit } });
67
+ var isLoaded = (host, label) => host.launchctl(["print", `gui/${host.uid()}/${label}`]).status === 0;
68
+ function installSandboxAgent(request, host) {
69
+ const unitName = request.unitName ?? DEFAULT_UNIT_NAME;
70
+ const label = sandboxAgentLabel(unitName);
71
+ const path = sandboxAgentPath(request.home, unitName);
72
+ const text = plistText(request, host);
73
+ if (request.print === true) return outcome(true, "printed", [], text);
74
+ const domain = `gui/${host.uid()}`;
75
+ const existing = host.read(path);
76
+ const loaded = isLoaded(host, label);
77
+ if (existing === text && loaded && request.restart === true) {
78
+ if (request.buildsRunning) return outcome(true, "pending-restart", [`the launch agent ${label} is current; a build is running, so it was not restarted and reads the credential files at its next restart`]);
79
+ if (host.launchctl(["kickstart", "-k", `${domain}/${label}`]).status !== 0) return outcome(false, "refused", [`the launch agent ${label} could not be restarted: run \`launchctl kickstart -k ${domain}/${label}\``]);
80
+ return outcome(true, "updated", [`restarted the launch agent ${label}, so the runner reads the credential files`]);
81
+ }
82
+ if (existing === text && loaded) return outcome(true, "current", [`the launch agent ${label} is current and loaded: the file already matches the config, so nothing was changed`]);
83
+ try {
84
+ host.write(path, text);
85
+ } catch (err) {
86
+ return outcome(false, "refused", [`${path} could not be written (${err instanceof Error ? err.message : String(err)}), so no launch agent is set up`]);
87
+ }
88
+ if (loaded && request.buildsRunning) {
89
+ return outcome(true, "pending-restart", [`rewrote ${path}; a build is running, so the agent was not loaded again and the new file applies at the next login`]);
90
+ }
91
+ if (loaded) host.launchctl(["bootout", `${domain}/${label}`]);
92
+ const booted = host.launchctl(["bootstrap", domain, path]);
93
+ if (booted.status !== 0) {
94
+ const reason = booted.stderr.trim() === "" ? `exit status ${booted.status}` : booted.stderr.trim();
95
+ return outcome(false, "refused", [
96
+ `the launch agent ${label} is not loaded: \`launchctl bootstrap ${domain} ${path}\` failed (${reason}). The file is in place, and the runner starts at your next login. To load it now, run \`outerlayer runner install --service\` from a session at the Mac's screen, because launchd refuses a load over SSH with no session at the screen`
97
+ ]);
98
+ }
99
+ return outcome(true, loaded ? "updated" : "installed", [`installed and loaded the launch agent ${label}: the runner starts at login and after a crash`]);
100
+ }
101
+ function uninstallSandboxAgent(request, host) {
102
+ const unitName = request.unitName ?? DEFAULT_UNIT_NAME;
103
+ const label = sandboxAgentLabel(unitName);
104
+ const path = sandboxAgentPath(request.home, unitName);
105
+ const loaded = isLoaded(host, label);
106
+ if (!loaded && host.read(path) === void 0) return outcome(true, "absent", [`no launch agent ${label} is installed, so there is nothing to remove`]);
107
+ if (loaded && host.launchctl(["bootout", `gui/${host.uid()}/${label}`]).status !== 0) {
108
+ return outcome(false, "refused", [`the launch agent ${label} could not be unloaded, so it was not removed: run \`launchctl bootout gui/${host.uid()}/${label}\`, then this command again`]);
109
+ }
110
+ try {
111
+ host.remove(path);
112
+ } catch (err) {
113
+ return outcome(false, "refused", [`${path} could not be removed (${err instanceof Error ? err.message : String(err)})`]);
114
+ }
115
+ return outcome(true, "removed", [`removed the launch agent ${label}`]);
116
+ }
117
+ function sandboxAgentStatus(configPath, home, host) {
118
+ const directory = agentsDir(home);
119
+ for (const name of host.list(directory)) {
120
+ if (!name.startsWith(`${LABEL_PREFIX}.`) || !name.endsWith(".plist")) continue;
121
+ const text = host.read(join(directory, name));
122
+ if (text?.includes(`<string>${escapeXml(configPath)}</string>`) !== true) continue;
123
+ const label = name.slice(0, -".plist".length);
124
+ return { label, loaded: isLoaded(host, label) };
125
+ }
126
+ return void 0;
127
+ }
128
+
129
+ export { installSandboxAgent, sandboxAgentStatus, uninstallSandboxAgent };
@@ -1,6 +1,6 @@
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-FTV63SCQ.js';
3
+ import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-PUUQKA3W.js';
4
4
  import { strippedVariables } from './chunk-R2XWZSLR.js';
5
5
  import { defaultAgents } from './chunk-OZG4BNC6.js';
6
6
  import { PROVIDERS } from './chunk-7PZDPISM.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { PROXY_WARNING_FLAG } from './chunk-E74YOVYI.js';
4
- import { RELAY_ID, RELAY_USER } from './chunk-FTV63SCQ.js';
3
+ import { PROXY_WARNING_FLAG } from './chunk-IB4SVQNB.js';
4
+ import { RELAY_ID, RELAY_USER } from './chunk-PUUQKA3W.js';
5
5
  import { imageInstalls, GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL_REVISION, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, HEADLESS_SHELL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_VERSION } from './chunk-R2XWZSLR.js';
6
6
  import { defaultAgents } from './chunk-OZG4BNC6.js';
7
7
 
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { scrubReason, stripTerminalControls } from './chunk-PIXRISH7.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-ZKZD4CGD.js';
5
- import { RunnerAlreadyRunningError, readPidFile } from './chunk-ZI5MT4TT.js';
3
+ import { scrubReason, stripTerminalControls } from './chunk-3SOB6LWY.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-PNZMJFVP.js';
5
+ import { RunnerAlreadyRunningError, readPidFile } from './chunk-DMAAKDGD.js';
6
6
  import { isSameProcess } from './chunk-JBJTC3UU.js';
7
- import { isSignatureRefusal, postJson } from './chunk-RIZCV7GX.js';
8
- import { keyRunnerFactory } from './chunk-T7HMGQH2.js';
9
- import { signerFor } from './chunk-SHCD5V7G.js';
10
- import { pidFilePath } from './chunk-I6MLYOGL.js';
7
+ import { isSignatureRefusal, postJson } from './chunk-TG3O6CAF.js';
8
+ import { keyRunnerFactory } from './chunk-MP6INWPC.js';
9
+ import { signerFor } from './chunk-D5YKPIHV.js';
10
+ import { pidFilePath } from './chunk-2OSEUHWY.js';
11
11
  import { readFileSync } from 'fs';
12
12
 
13
13
  createRequire(import.meta.url);
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { uploadSpooledSteps } from './chunk-VLI43TVN.js';
3
+ import { uploadSpooledSteps } from './chunk-KJNI2WWR.js';
4
4
  import { LaunchFilter } from './chunk-C2PZOLN7.js';
5
5
  import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-TDTWNGCO.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-3GBUF5VG.js';
7
+ import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-BXWZCLJ3.js';
8
8
  import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-HWVMRETT.js';
9
- import { signerFor, signRunnerRequest } from './chunk-SHCD5V7G.js';
10
- import { SCRUB_ENV_VARIABLE } from './chunk-E74YOVYI.js';
11
- import { writeSyncStatus, logHookError, spoolDir } from './chunk-CG44IGEF.js';
9
+ import { signerFor, signRunnerRequest } from './chunk-D5YKPIHV.js';
10
+ import { SCRUB_ENV_VARIABLE } from './chunk-IB4SVQNB.js';
11
+ import { writeSyncStatus, logHookError, spoolDir } from './chunk-ANBDFUHT.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';
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
3
3
  import { sanitizeTerminal } from './chunk-TDTWNGCO.js';
4
4
  import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-TQZHYLX5.js';
5
5
  import { DEFAULT_DASHBOARD } from './chunk-ND6JA3K5.js';
6
- import { cliFetch, resolveGatewayCredentials } from './chunk-3GBUF5VG.js';
6
+ import { cliFetch, resolveGatewayCredentials } from './chunk-BXWZCLJ3.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';
@@ -2,10 +2,10 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
4
4
  import { detectActiveSession } from './chunk-7RDHN455.js';
5
- import { autoConnect } from './chunk-X26S7Y2N.js';
5
+ import { autoConnect } from './chunk-AQEVNB6C.js';
6
6
  import { acquireSpoolLockAt } from './chunk-TDTWNGCO.js';
7
7
  import { C } from './chunk-2AM6Z5BP.js';
8
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-3GBUF5VG.js';
8
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-BXWZCLJ3.js';
9
9
  import { launchedItemForSession } from './chunk-LGJ56FCM.js';
10
10
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
11
11
  import { homeFromEnv } from './chunk-352DHUTP.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-E74YOVYI.js';
4
- import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-FTV63SCQ.js';
3
+ import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-IB4SVQNB.js';
4
+ import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-PUUQKA3W.js';
5
5
  import { defaultAgents } from './chunk-OZG4BNC6.js';
6
6
  import { PROVIDERS } from './chunk-7PZDPISM.js';
7
7
  import { symlinkSync, unlinkSync } from 'fs';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { LiveUploader } from './chunk-EANGK4AM.js';
4
- import { spoolDir } from './chunk-CG44IGEF.js';
3
+ import { LiveUploader } from './chunk-IT7RFVWR.js';
4
+ import { spoolDir } from './chunk-ANBDFUHT.js';
5
5
  import { parseRunEnv, parseWorkItemEnv } from './chunk-LGJ56FCM.js';
6
6
  import { sessionFolderIn, legacyAgent } from './chunk-OZG4BNC6.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-34IH7AVH.js';
4
- import { parseSize } from './chunk-6AFTYWAB.js';
5
- import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-E74YOVYI.js';
3
+ import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-ST5S3P2C.js';
4
+ import { parseSize } from './chunk-3WYPBALP.js';
5
+ import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-IB4SVQNB.js';
6
6
  import { builderDiskPinned } from './chunk-R2XWZSLR.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
8
8
  import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { isVersion, compareVersions } from './chunk-TQMI335S.js';
4
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-I6MLYOGL.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-2OSEUHWY.js';
5
5
  import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
6
6
  import { join } from 'path';
7
7
 
@@ -2,7 +2,7 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { sanitizeTerminal } from './chunk-TDTWNGCO.js';
4
4
  import { isAgentsMdLayout } from './chunk-TQZHYLX5.js';
5
- import { resolveGatewayCredentials, defaultFetch } from './chunk-3GBUF5VG.js';
5
+ import { resolveGatewayCredentials, defaultFetch } from './chunk-BXWZCLJ3.js';
6
6
  import { versionAtLeast } from './chunk-SF2TBJBP.js';
7
7
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
8
8
  import { machineSkillsState, staleAgentSkills } from './chunk-ULDQ7IM5.js';
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-PIXRISH7.js';
4
- import { UNIT_MARKER } from './chunk-ZKZD4CGD.js';
5
- import { runnerDir } from './chunk-I6MLYOGL.js';
3
+ import { helperSocketPath } from './chunk-3SOB6LWY.js';
4
+ import { UNIT_MARKER } from './chunk-PNZMJFVP.js';
5
+ import { runnerDir } from './chunk-2OSEUHWY.js';
6
6
  import { createHash } from 'crypto';
7
7
  import { join } from 'path';
8
8
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { stripTerminalControls } from './chunk-PIXRISH7.js';
4
- import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-7QDAAW2N.js';
3
+ import { stripTerminalControls } from './chunk-3SOB6LWY.js';
4
+ import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-N6DWNOEF.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-UZYTRFEQ.js')).spawnRun;
58
+ const run = deps.run ?? (await import('./docker-WMGXGZFP.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,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { builtinKind, keepsHostBuilder } from './chunk-T7HMGQH2.js';
4
- import { parseSize } from './chunk-6AFTYWAB.js';
5
- import { runnerDir } from './chunk-I6MLYOGL.js';
6
- import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-FTV63SCQ.js';
3
+ import { builtinKind, keepsHostBuilder } from './chunk-MP6INWPC.js';
4
+ import { parseSize } from './chunk-3WYPBALP.js';
5
+ import { runnerDir } from './chunk-2OSEUHWY.js';
6
+ import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-PUUQKA3W.js';
7
7
  import { credentialAgent, credentialNames, credentialForms } from './chunk-R2XWZSLR.js';
8
8
  import { defaultAgents } from './chunk-OZG4BNC6.js';
9
9
  import { existsSync, readFileSync, writeFileSync, chmodSync, renameSync } from 'fs';
@@ -196,13 +196,24 @@ function firstOf(agent, values, source) {
196
196
  const found = agent.credentials.classify(values);
197
197
  return found === void 0 ? void 0 : { variable: found.variable, value: values[found.variable], source };
198
198
  }
199
- function readAgentCredential(env, agentId, agents = defaultAgents()) {
199
+ function readCredentialFiles(configDir, agent) {
200
+ for (const name of [credentialNames(agent.descriptor).envFile, "runner.env"]) {
201
+ const path = join(configDir, name);
202
+ try {
203
+ const found = firstOf(agent, parseRunnerEnv(readFileSync(path, "utf8")), "credential-file");
204
+ if (found !== void 0) return found;
205
+ } catch {
206
+ }
207
+ }
208
+ return void 0;
209
+ }
210
+ function readAgentCredential(env, agentId, agents = defaultAgents(), configDir) {
200
211
  const agent = agentOf(agentId, agents);
201
212
  if (agent === void 0) return void 0;
202
213
  const fromEnvironment = firstOf(agent, env, "environment");
203
214
  if (fromEnvironment !== void 0) return fromEnvironment;
204
215
  const directory = env.CREDENTIALS_DIRECTORY;
205
- if (directory === void 0 || directory === "") return void 0;
216
+ if (directory === void 0 || directory === "") return configDir === void 0 ? void 0 : readCredentialFiles(configDir, agent);
206
217
  const path = join(directory, credentialNames(agent.descriptor).credentialId);
207
218
  try {
208
219
  const text = readFileSync(path, "utf8");
@@ -249,10 +260,10 @@ function complain(path, label, reason) {
249
260
  }
250
261
  var heldCopies = /* @__PURE__ */ new Map();
251
262
  var removedValues = /* @__PURE__ */ new Set();
252
- function holdAgentCredentials(env = process.env, agents = defaultAgents()) {
263
+ function holdAgentCredentials(env = process.env, agents = defaultAgents(), configDir) {
253
264
  const first = credentialAgent(agents);
254
265
  if (first !== void 0 && !heldCopies.has(first.descriptor.id)) {
255
- const read = readAgentCredential(env, first.descriptor.id, agents);
266
+ const read = readAgentCredential(env, first.descriptor.id, agents, configDir);
256
267
  if (read !== void 0) heldCopies.set(first.descriptor.id, read);
257
268
  }
258
269
  for (const name of strippedVariables(agents)) {
@@ -262,8 +273,8 @@ function holdAgentCredentials(env = process.env, agents = defaultAgents()) {
262
273
  }
263
274
  return first === void 0 ? void 0 : heldCopies.get(first.descriptor.id);
264
275
  }
265
- function takeAgentCredentials(env, hooks, agents = defaultAgents()) {
266
- return /^builtin:(container|vm|sandbox)$/.test(hooks.provision) ? holdAgentCredentials(env, agents) : void 0;
276
+ function takeAgentCredentials(env, hooks, agents = defaultAgents(), configDir) {
277
+ return /^builtin:(container|vm|sandbox)$/.test(hooks.provision) ? holdAgentCredentials(env, agents, configDir) : void 0;
267
278
  }
268
279
  function removedAgentCredentialValues() {
269
280
  return [...removedValues];
@@ -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 } from './chunk-I6MLYOGL.js';
3
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-2OSEUHWY.js';
4
4
  import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
5
5
  import { join } from 'path';
6
6
 
@@ -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-6AFTYWAB.js';
4
- import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-I6MLYOGL.js';
3
+ import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-3WYPBALP.js';
4
+ import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-2OSEUHWY.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,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { placeholderQueues, placeholderProblem } from './chunk-PIXRISH7.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-ZKZD4CGD.js';
5
- import { getJson, WorkCommandError } from './chunk-RIZCV7GX.js';
6
- import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-T7HMGQH2.js';
7
- import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-34IH7AVH.js';
8
- import { ensureHostKey } from './chunk-SHCD5V7G.js';
9
- import { sandboxSettingsFrom } from './chunk-E74YOVYI.js';
10
- import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-FTV63SCQ.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-3SOB6LWY.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-PNZMJFVP.js';
5
+ import { getJson, WorkCommandError } from './chunk-TG3O6CAF.js';
6
+ import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-MP6INWPC.js';
7
+ import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-ST5S3P2C.js';
8
+ import { ensureHostKey } from './chunk-D5YKPIHV.js';
9
+ import { sandboxSettingsFrom } from './chunk-IB4SVQNB.js';
10
+ import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-PUUQKA3W.js';
11
11
  import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-R2XWZSLR.js';
12
12
  import { defaultAgents } from './chunk-OZG4BNC6.js';
13
13
  import { closeSync, openSync, constants, readFileSync } from 'fs';
@@ -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 } from './chunk-I6MLYOGL.js';
3
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-2OSEUHWY.js';
4
4
  import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
5
5
  import { join } from 'path';
6
6
 
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { detectActiveSession } from './chunk-7RDHN455.js';
4
- import { autoConnect } from './chunk-X26S7Y2N.js';
5
- import { workPageUrl } from './chunk-Q2SX6RZJ.js';
4
+ import { autoConnect } from './chunk-AQEVNB6C.js';
5
+ import { workPageUrl } from './chunk-J4WAHOXM.js';
6
6
  import { sanitizeTerminal } from './chunk-TDTWNGCO.js';
7
7
  import { C } from './chunk-2AM6Z5BP.js';
8
- import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-3GBUF5VG.js';
9
- import { signRunnerRequest } from './chunk-SHCD5V7G.js';
8
+ import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-BXWZCLJ3.js';
9
+ import { signRunnerRequest } from './chunk-D5YKPIHV.js';
10
10
  import { readRepoConnection } from './chunk-BJ3KTMDH.js';
11
11
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
12
12
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
@@ -563,7 +563,7 @@ async function runWorkLinkSession(opts) {
563
563
  return await linkSession(opts);
564
564
  } catch (err) {
565
565
  if (opts.logFailures) {
566
- const { logHookError } = await import('./hook-fast-CKQWLT6W.js');
566
+ const { logHookError } = await import('./hook-fast-A5LADBOU.js');
567
567
  const reason = err instanceof Error ? err.message : String(err);
568
568
  logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
569
569
  }