@outerlayer/cli 0.36.0-next.20261103102716 → 0.36.0-next.20261103181718

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 (166) hide show
  1. package/dist/{agent-setup-DZZZH3SE.js → agent-setup-WV4Y2HGG.js} +18 -18
  2. package/dist/{agent-subcommand-WRHH6SRD.js → agent-subcommand-RQCLWP3A.js} +3 -3
  3. package/dist/{bridge-GZSZQGLI.js → bridge-NFSJ4IBQ.js} +6 -6
  4. package/dist/{build-UKZ5RPRR.js → build-RGO3EWJD.js} +12 -12
  5. package/dist/{build-disk-3HOXULLP.js → build-disk-NYYBJGBH.js} +10 -10
  6. package/dist/build-info.json +1 -1
  7. package/dist/{builder-QEK4GIRY.js → builder-HT3CV5ZZ.js} +9 -9
  8. package/dist/caller-D4ZZWA6I.js +23 -0
  9. package/dist/{check-QLJ2O7VO.js → check-4T4FDFLZ.js} +57 -55
  10. package/dist/{chunk-LDKF6B2R.js → chunk-22JLORO6.js} +3 -3
  11. package/dist/{chunk-K26KMWU4.js → chunk-2P532NZM.js} +7 -7
  12. package/dist/{chunk-NMMGRG5V.js → chunk-2VWYPY62.js} +4 -4
  13. package/dist/{chunk-B5VKRKLJ.js → chunk-3JYR5R57.js} +1 -1
  14. package/dist/{chunk-PDRWRFB2.js → chunk-4S564XTG.js} +3 -3
  15. package/dist/{chunk-SYKEQT63.js → chunk-5HMIMWRD.js} +17 -5
  16. package/dist/{chunk-L3SHPR2M.js → chunk-63KUYXOH.js} +1 -1
  17. package/dist/{chunk-VST3BWL4.js → chunk-63T2OTPO.js} +11 -10
  18. package/dist/{chunk-42X6CTBI.js → chunk-6BGE2CZB.js} +3 -3
  19. package/dist/{chunk-JMM3L5RG.js → chunk-7A2OPME2.js} +4 -4
  20. package/dist/{chunk-QVOU2QUR.js → chunk-7HRNYPL3.js} +3 -3
  21. package/dist/{chunk-2JWLK2TU.js → chunk-7TPLWWFN.js} +1 -1
  22. package/dist/{chunk-P4Q6M6PI.js → chunk-7WZNTLNB.js} +1 -1
  23. package/dist/{chunk-LV4IDDD3.js → chunk-AWPGPPXP.js} +5 -5
  24. package/dist/{chunk-DWYQKLCL.js → chunk-AWY7ORQ2.js} +1 -1
  25. package/dist/{chunk-3XEYA3QF.js → chunk-BQUI64BU.js} +1 -1
  26. package/dist/{chunk-CDTBXABP.js → chunk-C6LAXUC7.js} +2 -2
  27. package/dist/{chunk-IEDO26G4.js → chunk-CFHM562L.js} +10 -3
  28. package/dist/{chunk-MPVTZLOM.js → chunk-CLFP2ZTG.js} +3 -3
  29. package/dist/{chunk-ZE2JJQPC.js → chunk-CMZTCXCA.js} +1 -1
  30. package/dist/{chunk-BTGNFRRT.js → chunk-CTBQN5KQ.js} +6 -6
  31. package/dist/{chunk-KHJPRTOW.js → chunk-DIL7U77P.js} +1 -1
  32. package/dist/{chunk-54ERDQ3O.js → chunk-E6ESLX5E.js} +32 -8
  33. package/dist/{chunk-YWCK4EOT.js → chunk-EZI2BLP6.js} +3 -3
  34. package/dist/{chunk-6J3QWXTA.js → chunk-F2UM3NDF.js} +4 -4
  35. package/dist/{chunk-6UI4ELNA.js → chunk-GTJLKBN7.js} +7 -7
  36. package/dist/{chunk-HO4DPX5N.js → chunk-H4H3KK25.js} +1 -1
  37. package/dist/{chunk-YEZGNCSK.js → chunk-H6T73OLF.js} +1 -1
  38. package/dist/{chunk-7UYXSF62.js → chunk-HBYFB3LK.js} +6 -7
  39. package/dist/{chunk-JD5EVW6Y.js → chunk-I5EZW66W.js} +4 -4
  40. package/dist/{chunk-WNQGSAUE.js → chunk-IDYLPN4X.js} +1 -1
  41. package/dist/{chunk-EUWTGCK5.js → chunk-IKAGRGLY.js} +1 -1
  42. package/dist/{chunk-NQYTUVZR.js → chunk-IM4VUDKW.js} +1 -1
  43. package/dist/{chunk-BZQ3S24G.js → chunk-INT54Z2T.js} +1 -1
  44. package/dist/{chunk-U6HCTKPH.js → chunk-IRJ6EGQT.js} +7 -7
  45. package/dist/{chunk-WAGHPZP2.js → chunk-J3SICPA2.js} +1 -1
  46. package/dist/{chunk-GPBTTHK3.js → chunk-JJ63MLE5.js} +1 -1
  47. package/dist/{chunk-HQBKKYYQ.js → chunk-K3GCT2HL.js} +4 -4
  48. package/dist/{chunk-HX6B34ZF.js → chunk-K52TGQLV.js} +18 -18
  49. package/dist/{chunk-QKLCIJEU.js → chunk-KYDKOYZD.js} +56 -33
  50. package/dist/{chunk-T5I2H7TJ.js → chunk-NE2A2ZIY.js} +1 -1
  51. package/dist/{chunk-HR4PJLOO.js → chunk-NFYXRAEV.js} +1 -1
  52. package/dist/{chunk-4MLH5MDB.js → chunk-OM3XGJBY.js} +5 -5
  53. package/dist/{chunk-U7MLC45I.js → chunk-ORBQ4QR7.js} +5 -5
  54. package/dist/{chunk-VMPVQE4D.js → chunk-PL2AGLJF.js} +2 -2
  55. package/dist/{chunk-J4NJWTNO.js → chunk-POTMAJPJ.js} +5 -5
  56. package/dist/{chunk-LXXP5HRJ.js → chunk-PTHBJDWK.js} +3 -3
  57. package/dist/{chunk-OGG5ELXF.js → chunk-QLZXFKGO.js} +4 -4
  58. package/dist/{chunk-FLQL6ZIG.js → chunk-QN4ABLRK.js} +1 -1
  59. package/dist/{chunk-OPEZVPF7.js → chunk-R4LXONKC.js} +3 -3
  60. package/dist/{chunk-EHS3HEB6.js → chunk-RGSQHTO4.js} +3 -3
  61. package/dist/{chunk-H4G26OZC.js → chunk-RY5QFTXJ.js} +19 -8
  62. package/dist/{chunk-U6EACUUG.js → chunk-RYSGOWHG.js} +16 -3
  63. package/dist/{chunk-54PQNYA7.js → chunk-S7YLAN2P.js} +2 -2
  64. package/dist/{chunk-PYK6GCCU.js → chunk-SIVZITLG.js} +5 -5
  65. package/dist/{chunk-BEJJJZXF.js → chunk-SR6SXYM4.js} +3 -3
  66. package/dist/{chunk-4MN4BBKZ.js → chunk-SWUPSLNV.js} +7 -7
  67. package/dist/{chunk-2SBNZ4EC.js → chunk-T3MVV6LG.js} +1 -1
  68. package/dist/{chunk-IEVARJ6G.js → chunk-UD6I7QJJ.js} +2 -2
  69. package/dist/{chunk-RGKJ5J72.js → chunk-UT4SX57J.js} +4 -4
  70. package/dist/{chunk-N3SO5VCM.js → chunk-UVKPDGLM.js} +7 -7
  71. package/dist/{chunk-YCBVYTFI.js → chunk-V227E7UX.js} +1 -1
  72. package/dist/{chunk-DEZSNJSE.js → chunk-W72X24TZ.js} +1 -1
  73. package/dist/{chunk-2W5C47AE.js → chunk-WGLYAMVK.js} +1 -1
  74. package/dist/{chunk-K373UCEV.js → chunk-WSZZKMXF.js} +1 -1
  75. package/dist/{chunk-TWGSXBZM.js → chunk-WTKCAALP.js} +3 -3
  76. package/dist/{chunk-NOLS2G2W.js → chunk-WWTZLRPH.js} +8 -0
  77. package/dist/{chunk-ZZ4WIQRF.js → chunk-WZ5YJJMP.js} +12 -9
  78. package/dist/{chunk-UZSMDU4U.js → chunk-X2B7ILTH.js} +2 -2
  79. package/dist/{chunk-A64EXQUL.js → chunk-XKM7KCUJ.js} +37 -34
  80. package/dist/{chunk-RKV3UQCG.js → chunk-YVRJDMDL.js} +9 -9
  81. package/dist/{chunk-XSGWMQJF.js → chunk-ZKJGZQ63.js} +3 -3
  82. package/dist/{claude-launcher-CPSCSL6U.js → claude-launcher-KQHWKYRL.js} +6 -6
  83. package/dist/{cli-4M74XOWW.js → cli-BM7CAJFW.js} +161 -144
  84. package/dist/{command-RY76GIQG.js → command-ZIVI5DQK.js} +48 -48
  85. package/dist/{config-23EBIGW4.js → config-W4OY2JNP.js} +11 -11
  86. package/dist/{connect-cmd-GEBIOBQQ.js → connect-cmd-2O2GGNAY.js} +10 -10
  87. package/dist/{container-start-SUBTHQME.js → container-start-CRUUG57V.js} +46 -46
  88. package/dist/{context-cleanup-I7FLIV5A.js → context-cleanup-2SPOGEZR.js} +3 -3
  89. package/dist/{context-show-cmd-CSPMSRHX.js → context-show-cmd-LAK6CYZT.js} +11 -11
  90. package/dist/{control-plane-launch-KC7NUNYQ.js → control-plane-launch-N7FFBGPD.js} +13 -13
  91. package/dist/{demo-record-cmd-ZW6U2LAV.js → demo-record-cmd-335YZIXU.js} +7 -7
  92. package/dist/{demo-voice-cmd-IDW3QX3E.js → demo-voice-cmd-LVODULO2.js} +18 -18
  93. package/dist/{docker-2VHMWLNK.js → docker-WDMFRVOX.js} +9 -9
  94. package/dist/{doctor-GEG64FBO.js → doctor-3HKOYZTJ.js} +48 -48
  95. package/dist/{emit-artifact-cmd-2ZHPNLPG.js → emit-artifact-cmd-MLIPSYXP.js} +17 -17
  96. package/dist/{emit-cmd-UN7HGZC5.js → emit-cmd-S64A2LJ2.js} +6 -6
  97. package/dist/{emit-criteria-cmd-TUXGD7CW.js → emit-criteria-cmd-JYG5LJEQ.js} +13 -13
  98. package/dist/{emit-demo-cmd-4YMYB556.js → emit-demo-cmd-LKB4OHJD.js} +18 -18
  99. package/dist/{emit-finding-cmd-O2NN22XF.js → emit-finding-cmd-YNLZSJEC.js} +13 -13
  100. package/dist/{emit-result-cmd-VRITADX2.js → emit-result-cmd-EYEFXWVS.js} +16 -16
  101. package/dist/{emit-step-cmd-LGNBZTWJ.js → emit-step-cmd-YF5CGZ2H.js} +13 -13
  102. package/dist/{exec-client-NXTXAVHI.js → exec-client-T7XWSBJ3.js} +7 -7
  103. package/dist/find-unit-X5LYKUQX.js +24 -0
  104. package/dist/{findings-cmd-RJD7KTSW.js → findings-cmd-KBV2GQXJ.js} +13 -13
  105. package/dist/{fleet-readiness-RIO2SWC7.js → fleet-readiness-JG3YAKT7.js} +12 -12
  106. package/dist/{governing-source-IR3KUGQF.js → governing-source-VCD5NPMW.js} +18 -18
  107. package/dist/{guest-init-FLSL5RI7.js → guest-init-SG5RDE4K.js} +8 -8
  108. package/dist/{hook-fast-HYRZAY5K.js → hook-fast-QLCXXFMZ.js} +2 -2
  109. package/dist/{hook-install-CSHKOLWT.js → hook-install-TZZNJB4P.js} +3 -3
  110. package/dist/{hook-wrap-fast-ITUBSHEF.js → hook-wrap-fast-HNY3OGLN.js} +2 -2
  111. package/dist/host-checks-LQTHW3DN.js +79 -0
  112. package/dist/{host-key-CPAEQSNU.js → host-key-UEHE5JSK.js} +7 -7
  113. package/dist/{image-tag-MAMFM4SO.js → image-tag-77FWBIYC.js} +7 -7
  114. package/dist/index.js +6 -6
  115. package/dist/{init-G34M5Y4W.js → init-O33TLGUI.js} +44 -44
  116. package/dist/init-UFQQUI4Z.js +79 -0
  117. package/dist/{init-cmd-GDT27DWD.js → init-cmd-GCHZK7YQ.js} +26 -26
  118. package/dist/{init-update-TQH2Q7IZ.js → init-update-ZSTDH75N.js} +21 -21
  119. package/dist/{install-cmd-PVQ5M5NM.js → install-cmd-BRURSBEH.js} +9 -9
  120. package/dist/{layout-2DF7ON2F.js → layout-YSNLYG6U.js} +3 -3
  121. package/dist/{logs-BM644OOJ.js → logs-TRW3A55Z.js} +6 -6
  122. package/dist/loop-QHQTM25C.js +90 -0
  123. package/dist/machine-VFZAHR6N.js +79 -0
  124. package/dist/{machine-skills-O7XAZYLN.js → machine-skills-WOAIOXAQ.js} +3 -3
  125. package/dist/{mcp-install-cmd-METCXTTR.js → mcp-install-cmd-NFMA6PSL.js} +3 -3
  126. package/dist/{mcp-serve-cmd-CTKBLSM6.js → mcp-serve-cmd-JVLROUUU.js} +8 -8
  127. package/dist/{paths-VIBBLJ2W.js → paths-AOUMCMP3.js} +6 -6
  128. package/dist/pending-JOEXUNDC.js +18 -0
  129. package/dist/{pidfile-PAX5XHQJ.js → pidfile-5LPBPEGE.js} +7 -7
  130. package/dist/{record-QPXOUL6F.js → record-4RLFKQMG.js} +7 -7
  131. package/dist/{relay-KASDMV3R.js → relay-IYJ7JJLG.js} +4 -4
  132. package/dist/{relay-protocol-7HSCZC5H.js → relay-protocol-MPZHNZYJ.js} +4 -4
  133. package/dist/{runner-agents-WUMCXVS2.js → runner-agents-MWBL6LA7.js} +3 -3
  134. package/dist/{runner-env-R2C5LYCX.js → runner-env-YTX4BAXF.js} +13 -13
  135. package/dist/{runner-identity-UDPLWT7I.js → runner-identity-4LMITADJ.js} +9 -9
  136. package/dist/{runner-key-Z2IQ5TS7.js → runner-key-QTQRIW4N.js} +44 -44
  137. package/dist/{session-sender-4QKSVX5Z.js → session-sender-YAM3GNFD.js} +17 -17
  138. package/dist/{spec-cmd-TON4PYGQ.js → spec-cmd-VE4XIZ6Z.js} +14 -14
  139. package/dist/{starter-pack-LAPDUG6E.js → starter-pack-NAR72DKB.js} +4 -4
  140. package/dist/{state-OTWJW4O7.js → state-GBESQ6UB.js} +7 -7
  141. package/dist/{status-ROMTDMFO.js → status-SNQVVDRU.js} +44 -44
  142. package/dist/{statusline-fast-7V7U4SI4.js → statusline-fast-5G2CTPSX.js} +2 -2
  143. package/dist/{sync-cmd-FLNYVXAE.js → sync-cmd-BXV3EVTU.js} +16 -16
  144. package/dist/update-steps-ZR4RQB7J.js +80 -0
  145. package/dist/{watch-4V7FZI5R.js → watch-FKHHEV3X.js} +16 -16
  146. package/dist/{work-claim-cmd-5EYXVPKH.js → work-claim-cmd-IVG4A3IZ.js} +20 -20
  147. package/dist/{work-cmd-RUOTA5K7.js → work-cmd-HSMQMQDL.js} +13 -13
  148. package/dist/{work-comment-cmd-7UM3O3EL.js → work-comment-cmd-OHGGZASQ.js} +15 -15
  149. package/dist/{work-demo-cmd-K4NRR2AK.js → work-demo-cmd-TMMHK72J.js} +13 -13
  150. package/dist/{work-logs-cmd-QW7PNI6V.js → work-logs-cmd-GQCUPUKG.js} +13 -13
  151. package/dist/{work-open-pr-cmd-Y6MTWQG5.js → work-open-pr-cmd-XVXOXNIL.js} +14 -14
  152. package/dist/{work-pr-cmd-WUIMC7XB.js → work-pr-cmd-E75ZUOAD.js} +13 -13
  153. package/dist/{work-proofs-cmd-5LMTROA6.js → work-proofs-cmd-LDMQ37OH.js} +15 -15
  154. package/dist/{work-proofs-record-3JGUT2F5.js → work-proofs-record-VJG27HMI.js} +22 -22
  155. package/dist/{work-stop-cmd-R5F5VRUM.js → work-stop-cmd-JSFV7AL2.js} +13 -13
  156. package/package.json +1 -1
  157. package/skill-pack/maintained/outerlayer-amend/SKILL.md +1 -1
  158. package/skill-pack/maintained/outerlayer-build/SKILL.md +2 -1
  159. package/dist/caller-WSMJJSFL.js +0 -23
  160. package/dist/find-unit-RYYTX2O5.js +0 -24
  161. package/dist/host-checks-OB45XC67.js +0 -79
  162. package/dist/init-HHD2NNWY.js +0 -79
  163. package/dist/loop-6MSKJN52.js +0 -90
  164. package/dist/machine-LGD4UVCI.js +0 -79
  165. package/dist/pending-RXJKH4AC.js +0 -18
  166. package/dist/update-steps-A5OSPYAS.js +0 -80
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { normalizePath, CONTEXT_PIN_FILENAME, contextAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, legacyAgent, legacySubcommand } from './chunk-54ERDQ3O.js';
3
+ import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-E6ESLX5E.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';
@@ -45,10 +45,10 @@ function linkTargetFor(folder) {
45
45
  return posix.relative(posix.dirname(folder), AGENTS_SKILLS_BASE);
46
46
  }
47
47
  function mcpFiles(agents = defaultAgents()) {
48
- return [...new Set(contextAgents(agents).map((agent) => agent.context.mcp.file))];
48
+ return [...new Set(laptopAgents(agents).map((agent) => agent.context.mcp.file))];
49
49
  }
50
50
  function skillLinkFolders(agents = defaultAgents()) {
51
- return contextAgents(agents).flatMap((agent) => agent.descriptor.context.repoSkillFolders);
51
+ return [...new Set(laptopAgents(agents).flatMap((agent) => agent.descriptor.context.repoSkillFolders))];
52
52
  }
53
53
  var CONFIG_PATH = ".outerlayer/config.json";
54
54
  function readConfigObject(repoRoot) {
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
3
3
  import { recordReportedCost } from './chunk-BKO6JEZI.js';
4
4
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
5
5
  import { decodeWrappedCommand } from './chunk-ZHQC43NH.js';
6
- import { hookCodec } from './chunk-NOLS2G2W.js';
6
+ import { hookCodec } from './chunk-WWTZLRPH.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
8
8
  import { readFileSync } from 'fs';
9
9
  import { spawn } from 'child_process';
@@ -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-L3SHPR2M.js';
3
+ import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-63KUYXOH.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,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { DEFAULT_UNIT_NAME } from './chunk-ZZ4WIQRF.js';
4
- import { RUNNER_FILE_MODE } from './chunk-L3SHPR2M.js';
5
- import { withoutCredentialLines, parseRunnerEnv } from './chunk-7UYXSF62.js';
6
- import { headlessNames, runnerAgents, credentialAgent, credentialForms, orList, credentialShapes, credentialEnvPath, forwardedVariables } from './chunk-IEDO26G4.js';
7
- import { defaultAgents } from './chunk-54ERDQ3O.js';
3
+ import { DEFAULT_UNIT_NAME } from './chunk-WZ5YJJMP.js';
4
+ import { RUNNER_FILE_MODE } from './chunk-63KUYXOH.js';
5
+ import { withoutCredentialLines, parseRunnerEnv } from './chunk-HBYFB3LK.js';
6
+ import { headlessNames, runnerAgents, credentialAgent, credentialForms, orList, credentialShapes, credentialEnvPath, forwardedVariables } from './chunk-CFHM562L.js';
7
+ import { defaultAgents } from './chunk-E6ESLX5E.js';
8
8
  import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
9
9
  import { join, dirname } from 'path';
10
10
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { decodeWrappedCommand } from './chunk-ZHQC43NH.js';
4
- import { hookCodec } from './chunk-NOLS2G2W.js';
4
+ import { hookCodec } from './chunk-WWTZLRPH.js';
5
5
  import { homeFromEnv } from './chunk-352DHUTP.js';
6
6
  import { readFileSync, mkdirSync, appendFileSync, writeFileSync } from 'fs';
7
7
  import { spawn } from 'child_process';
@@ -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-OV4XTV5M.js';
4
- import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-54ERDQ3O.js';
4
+ import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-E6ESLX5E.js';
5
5
  import { LEGACY_AGENT } from './chunk-QJKW4MKH.js';
6
6
  import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
7
7
  import { lstatSync, readFileSync } 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-ZZ4WIQRF.js';
4
- import { inspectService, realInspectProbes } from './chunk-7UYXSF62.js';
3
+ import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-WZ5YJJMP.js';
4
+ import { inspectService, realInspectProbes } from './chunk-HBYFB3LK.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 { defaultAgents, agentById } from './chunk-54ERDQ3O.js';
3
+ import { defaultAgents, agentById } from './chunk-E6ESLX5E.js';
4
4
  import { LEGACY_AGENT, PROVIDERS } from './chunk-QJKW4MKH.js';
5
5
  import { join, dirname } from 'path';
6
6
 
@@ -166,9 +166,16 @@ function headlessAgents(agents = defaultAgents()) {
166
166
  function headlessNames(agents = defaultAgents()) {
167
167
  return headlessAgents(agents).map((agent) => runnerNameOf(agent.descriptor));
168
168
  }
169
+ var QUEUE_PROMPTS = { implement: "/build", amend: "/outerlayer-amend" };
169
170
  function agentCommands(name, agents = defaultAgents()) {
170
171
  const found = headlessAgents(agents).find((agent) => runnerNameOf(agent.descriptor) === name);
171
- return found === void 0 ? void 0 : { implement: found.headless.commandLine("/build"), amend: found.headless.commandLine("/outerlayer-amend") };
172
+ return found === void 0 ? void 0 : { implement: found.headless.commandLine(QUEUE_PROMPTS.implement, "implement"), amend: found.headless.commandLine(QUEUE_PROMPTS.amend, "amend") };
173
+ }
174
+ function defaultCommandLine(queue, agents = defaultAgents()) {
175
+ return jobAgent(void 0, agents)?.adapter.headless?.commandLine(QUEUE_PROMPTS[queue], queue);
176
+ }
177
+ function jobCommandEnv(sessionEnv, agents = defaultAgents()) {
178
+ return { ...jobAgent(void 0, agents)?.adapter.headless?.jobEnv, OUTERLAYER_UNATTENDED: "1", ...sessionEnv };
172
179
  }
173
180
  function runnerNameOf(descriptor) {
174
181
  return descriptor.legacy?.runnerName ?? descriptor.id;
@@ -240,4 +247,4 @@ function agentVersionOf(toolsJson, agents = defaultAgents()) {
240
247
  return buildAgentPin(agents);
241
248
  }
242
249
 
243
- export { AGENT_PINS, BUILDER_DISK_BASE_URL, BUILDER_DISK_SHA256, BUILDER_DISK_VERSION, BUILDKIT_IMAGE, DEFAULT_BASE_IMAGE, FFMPEG_BUILD_TAG, FFMPEG_STATIC, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, FIRECRACKER_VERSION, GH_SHA256, GH_VERSION, GUEST_ASSETS_BASE_URL, GUEST_ASSETS_VERSION, GUEST_HELPER_SHA256, GUEST_KERNEL_SHA256, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, HEADLESS_SHELL_REVISION, HOST_HELPER_ASSETS_VERSION, HOST_HELPER_BASE_URL, HOST_HELPER_SHA256, HOST_HELPER_SLICE_SINCE, JAILER_BINARY_SHA256, JOB_AGENT_ID, MANAGED_KIND, MEDIA_PINS, MICROVM_ARCHES, NETWORK_HELPER_SHA256, NODE_IMAGE, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, PLAYWRIGHT_VERSION, TINI_SHA256, TINI_VERSION, UNIVERSAL_IMAGE, UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, VOICE_PACK_FILES, VOICE_PACK_VERSION, agentCommands, agentVersionOf, buildAgent, buildAgentPin, builderDiskPinned, credentialAgent, credentialEnvPath, credentialForms, credentialHandOffKey, credentialNames, credentialShapes, firecrackerArch, forwardedVariables, guestAssetsPinned, headlessNames, hostHelperPinned, hostHelperSupportsSlice, jobAgent, managedKeyName, networkHelperPinned, orList, providersOf, runnerAgentNamed, runnerAgents, storeVariables, strippedVariables, universalImagePinned };
250
+ export { AGENT_PINS, BUILDER_DISK_BASE_URL, BUILDER_DISK_SHA256, BUILDER_DISK_VERSION, BUILDKIT_IMAGE, DEFAULT_BASE_IMAGE, FFMPEG_BUILD_TAG, FFMPEG_STATIC, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, FIRECRACKER_VERSION, GH_SHA256, GH_VERSION, GUEST_ASSETS_BASE_URL, GUEST_ASSETS_VERSION, GUEST_HELPER_SHA256, GUEST_KERNEL_SHA256, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, HEADLESS_SHELL_REVISION, HOST_HELPER_ASSETS_VERSION, HOST_HELPER_BASE_URL, HOST_HELPER_SHA256, HOST_HELPER_SLICE_SINCE, JAILER_BINARY_SHA256, JOB_AGENT_ID, MANAGED_KIND, MEDIA_PINS, MICROVM_ARCHES, NETWORK_HELPER_SHA256, NODE_IMAGE, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, PLAYWRIGHT_VERSION, TINI_SHA256, TINI_VERSION, UNIVERSAL_IMAGE, UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, VOICE_PACK_FILES, VOICE_PACK_VERSION, agentCommands, agentVersionOf, buildAgent, buildAgentPin, builderDiskPinned, credentialAgent, credentialEnvPath, credentialForms, credentialHandOffKey, credentialNames, credentialShapes, defaultCommandLine, firecrackerArch, forwardedVariables, guestAssetsPinned, headlessNames, hostHelperPinned, hostHelperSupportsSlice, jobAgent, jobCommandEnv, managedKeyName, networkHelperPinned, orList, providersOf, runnerAgentNamed, runnerAgents, storeVariables, strippedVariables, universalImagePinned };
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-LDKF6B2R.js';
4
- import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-7UYXSF62.js';
5
- import { defaultAgents } from './chunk-54ERDQ3O.js';
3
+ import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-22JLORO6.js';
4
+ import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-HBYFB3LK.js';
5
+ import { defaultAgents } from './chunk-E6ESLX5E.js';
6
6
  import { PROVIDERS } from './chunk-QJKW4MKH.js';
7
7
  import { symlinkSync, unlinkSync } from 'fs';
8
8
  import { join } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { currentLink } from './chunk-P4Q6M6PI.js';
3
+ import { currentLink } from './chunk-7WZNTLNB.js';
4
4
  import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
5
5
  import { randomBytes } from 'crypto';
6
6
  import { join, dirname, delimiter, resolve } from 'path';
@@ -1,10 +1,10 @@
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-GPBTTHK3.js';
4
- import { WorkCommandError, resolveCredentials, getJson } from './chunk-H4G26OZC.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-JJ63MLE5.js';
4
+ import { WorkCommandError, resolveCredentials, getJson } from './chunk-RY5QFTXJ.js';
5
5
  import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { defaultFetch } from './chunk-HR4PJLOO.js';
7
+ import { defaultFetch } from './chunk-NFYXRAEV.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';
@@ -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-OB45XC67.js');
220
+ const { testProofIn } = await import('./host-checks-LQTHW3DN.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-OB45XC67.js');
227
+ const { checksIn, isJudgeCheck } = await import('./host-checks-LQTHW3DN.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-3JGUT2F5.js');
372
+ const { runWorkProofsRecord } = await import('./work-proofs-record-VJG27HMI.js');
373
373
  const result2 = await runWorkProofsRecord(opts);
374
374
  process.exitCode = result2.exitCode;
375
375
  return;
@@ -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-L3SHPR2M.js';
3
+ import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-63KUYXOH.js';
4
4
  import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
5
5
  import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
6
6
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { CLAUDE_CODE_HOOKS } from './chunk-NOLS2G2W.js';
3
+ import { CLAUDE_CODE_HOOKS } from './chunk-WWTZLRPH.js';
4
4
  import { CLAUDE_CODE, NATIVE_AGENTS, LEGACY_AGENT, homeRelative } from './chunk-QJKW4MKH.js';
5
5
  import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
6
6
  import { resolvePackageVersion } from './chunk-RA3O54FC.js';
@@ -9,7 +9,7 @@ import { forkFor, RAW_MIRROR_SEGMENTS, WarningCollector, WARNING_CODES, isNewerT
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';
12
- import { join as join$1, dirname, sep, basename, relative } from 'path';
12
+ import { join as join$1, dirname, sep, basename, relative, delimiter } from 'path';
13
13
  import { fileURLToPath } from 'url';
14
14
  import { spawnSync } from 'child_process';
15
15
  import { createHash } from 'crypto';
@@ -10460,9 +10460,21 @@ function readJudgeOutput(stdout) {
10460
10460
  return void 0;
10461
10461
  }
10462
10462
  }
10463
+ var QUEUE_FLAGS = {
10464
+ implement: "--model opus --effort medium",
10465
+ amend: "--model sonnet --effort medium"
10466
+ };
10467
+ var JOB_ENV = {
10468
+ BASH_DEFAULT_TIMEOUT_MS: "1500000",
10469
+ BASH_MAX_TIMEOUT_MS: "1500000",
10470
+ CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS: "0",
10471
+ CLAUDE_CODE_STOP_HOOK_BLOCK_CAP: "50"
10472
+ };
10463
10473
  function createClaudeCodeHeadless() {
10464
10474
  return {
10465
- commandLine: (prompt) => `${CLAUDE_CODE.program} -p "${prompt}" --permission-mode bypassPermissions`,
10475
+ commandLine: (prompt, queue) => `${CLAUDE_CODE.program} -p "${prompt}" --permission-mode bypassPermissions${queue === void 0 ? "" : ` ${QUEUE_FLAGS[queue]}`}`,
10476
+ jobEnv: JOB_ENV,
10477
+ modelFlag: "--model",
10466
10478
  promptFlags: ["-p", "--print"],
10467
10479
  permissionMode: { flag: "--permission-mode", accepted: PERMISSION_MODES },
10468
10480
  judge,
@@ -10521,9 +10533,9 @@ function isSkipped(io, candidate) {
10521
10533
  return true;
10522
10534
  }
10523
10535
  }
10524
- function findProgram(io, path, delimiter) {
10536
+ function findProgram(io, path, delimiter2) {
10525
10537
  const list = path ?? "";
10526
- for (const entry of list.split(delimiter)) {
10538
+ for (const entry of list.split(delimiter2)) {
10527
10539
  if (entry === "") continue;
10528
10540
  const candidate = joinPath3(entry, CLAUDE_CODE.program);
10529
10541
  if (!io.fs.executable(candidate)) continue;
@@ -10547,7 +10559,7 @@ function interactive(input) {
10547
10559
  }
10548
10560
  function createLaunch(io) {
10549
10561
  return {
10550
- findProgram: (path, delimiter = ":") => findProgram(io, path, delimiter),
10562
+ findProgram: (path, delimiter2 = ":") => findProgram(io, path, delimiter2),
10551
10563
  version: (program, env) => io.runSync(program, ["--version"], { env, timeoutMs: 15e3 }).stdout,
10552
10564
  interactive,
10553
10565
  session: {
@@ -10902,6 +10914,15 @@ function legacyAgent(agents = defaultAgents()) {
10902
10914
  function contextAgents(agents = defaultAgents()) {
10903
10915
  return agents.flatMap((agent) => agent.adapter.context === void 0 ? [] : [{ descriptor: agent.descriptor, context: agent.adapter.context }]);
10904
10916
  }
10917
+ function laptopAgents(agents = defaultAgents(), io = createNodeAgentIO()) {
10918
+ const path = io.env().PATH;
10919
+ return agents.flatMap((agent) => {
10920
+ const context = agent.adapter.context;
10921
+ if (context === void 0) return [];
10922
+ if (agent.descriptor.id !== LEGACY_AGENT && agent.adapter.launch?.findProgram(path, delimiter) === void 0) return [];
10923
+ return [{ descriptor: agent.descriptor, context }];
10924
+ });
10925
+ }
10905
10926
  function captureAgents(agents = defaultAgents()) {
10906
10927
  return agents.flatMap((agent) => agent.adapter.capture === void 0 ? [] : [{ descriptor: agent.descriptor, capture: agent.adapter.capture }]);
10907
10928
  }
@@ -10927,7 +10948,10 @@ function targetIds(agents = defaultAgents()) {
10927
10948
  return contextAgents(agents).map((agent) => agent.descriptor.id);
10928
10949
  }
10929
10950
  function skillBases(agents = defaultAgents()) {
10930
- return [AGENTS_SKILLS_BASE, ...contextAgents(agents).flatMap((agent) => agent.descriptor.context.repoSkillFolders)];
10951
+ return [.../* @__PURE__ */ new Set([AGENTS_SKILLS_BASE, ...contextAgents(agents).flatMap((agent) => agent.descriptor.context.repoSkillFolders)])];
10952
+ }
10953
+ function knownTargetsLine(agents = defaultAgents()) {
10954
+ return `Known targets: ${targetIds(agents).join(", ")}.`;
10931
10955
  }
10932
10956
 
10933
- export { ADAPTER_FACTORIES, AGENTS_SKILLS_BASE, CONTEXT_PIN_FILENAME, FORMER_MAINTAINED_NAMES, HookTextError, MACHINE_SKILL_PATH, McpFileError, OUTERLAYER_SKILLS_BASE, TEMPLATE_SKILLS, agentById, agentRootFolders, captureAdapters, captureAgents, classifyTree, contextAgents, createNodeAgentIO, defaultAgents, emitBuilders, emitTree, extractFacts, generatedHeaderSource, isMaintainedCopy, legacyAgent, legacySubcommand, loadMachineSkillFiles, loadMaintainedFiles, loadTemplateFiles, maintainedFilesForExistingSkills, namesCore, normalizePath, normalizeRepoName, orderSessions, parseOuterlayerConfig, parsePolicy, parseProofsConfig, resolvePackRoot, restoreSkillPaths, rewriteSkillPaths, sessionFolderIn, sessionsToTimeline, skillBases, skillDir, splitRawFile, targetIds, userSkillFolderIn, writeMaintainedFiles };
10957
+ export { ADAPTER_FACTORIES, AGENTS_SKILLS_BASE, CONTEXT_PIN_FILENAME, FORMER_MAINTAINED_NAMES, HookTextError, MACHINE_SKILL_PATH, McpFileError, OUTERLAYER_SKILLS_BASE, TEMPLATE_SKILLS, agentById, agentRootFolders, captureAdapters, captureAgents, classifyTree, contextAgents, createNodeAgentIO, defaultAgents, emitBuilders, emitTree, extractFacts, generatedHeaderSource, isMaintainedCopy, knownTargetsLine, laptopAgents, legacyAgent, legacySubcommand, loadMachineSkillFiles, loadMaintainedFiles, loadTemplateFiles, maintainedFilesForExistingSkills, namesCore, normalizePath, normalizeRepoName, orderSessions, parseOuterlayerConfig, parsePolicy, parseProofsConfig, resolvePackRoot, restoreSkillPaths, rewriteSkillPaths, sessionFolderIn, sessionsToTimeline, skillBases, skillDir, splitRawFile, targetIds, userSkillFolderIn, writeMaintainedFiles };
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-QKLCIJEU.js';
4
- import { UNIT_MARKER } from './chunk-ZZ4WIQRF.js';
5
- import { runnerDir } from './chunk-L3SHPR2M.js';
3
+ import { helperSocketPath } from './chunk-KYDKOYZD.js';
4
+ import { UNIT_MARKER } from './chunk-WZ5YJJMP.js';
5
+ import { runnerDir } from './chunk-63KUYXOH.js';
6
6
  import { createHash } from 'crypto';
7
7
  import { join } from 'path';
8
8
 
@@ -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-IEVARJ6G.js';
4
- import { parseSize } from './chunk-6UI4ELNA.js';
5
- import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-LDKF6B2R.js';
6
- import { builderDiskPinned } from './chunk-IEDO26G4.js';
3
+ import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-UD6I7QJJ.js';
4
+ import { parseSize } from './chunk-GTJLKBN7.js';
5
+ import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-22JLORO6.js';
6
+ import { builderDiskPinned } from './chunk-CFHM562L.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';
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-YCBVYTFI.js';
4
- import { ensureHostKey } from './chunk-KHJPRTOW.js';
5
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-L3SHPR2M.js';
6
- import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-LDKF6B2R.js';
7
- import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-7UYXSF62.js';
8
- import { jobAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-IEDO26G4.js';
9
- import { defaultAgents } from './chunk-54ERDQ3O.js';
3
+ import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-V227E7UX.js';
4
+ import { ensureHostKey } from './chunk-DIL7U77P.js';
5
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-63KUYXOH.js';
6
+ import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-22JLORO6.js';
7
+ import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-HBYFB3LK.js';
8
+ import { jobAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-CFHM562L.js';
9
+ import { defaultAgents } from './chunk-E6ESLX5E.js';
10
10
  import { PROVIDERS } from './chunk-QJKW4MKH.js';
11
11
  import { compareVersions } from './chunk-WZOWXDDM.js';
12
12
  import { createHash } from 'crypto';
@@ -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-L3SHPR2M.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-63KUYXOH.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 { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-54ERDQ3O.js';
3
+ import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-E6ESLX5E.js';
4
4
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-QJKW4MKH.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
- import { providersOf, JOB_AGENT_ID, credentialEnvPath, credentialNames, credentialForms, runnerAgents, strippedVariables, credentialAgent, forwardedVariables, MANAGED_KIND } from './chunk-IEDO26G4.js';
4
- import { defaultAgents } from './chunk-54ERDQ3O.js';
3
+ import { providersOf, JOB_AGENT_ID, credentialEnvPath, credentialNames, credentialForms, runnerAgents, strippedVariables, credentialAgent, forwardedVariables, MANAGED_KIND } from './chunk-CFHM562L.js';
4
+ import { defaultAgents } from './chunk-E6ESLX5E.js';
5
5
  import { PROVIDERS } from './chunk-QJKW4MKH.js';
6
6
  import { statSync, readFileSync } from 'fs';
7
7
  import { join } from 'path';
@@ -246,17 +246,16 @@ function complain(path, label, reason) {
246
246
  var heldCopies = /* @__PURE__ */ new Map();
247
247
  var removedValues = /* @__PURE__ */ new Set();
248
248
  function holdAgentCredentials(env = process.env, agents = defaultAgents()) {
249
- for (const agent of runnerAgents(agents)) {
250
- if (heldCopies.has(agent.descriptor.id)) continue;
251
- const read = readAgentCredential(env, agent.descriptor.id, agents);
252
- if (read !== void 0) heldCopies.set(agent.descriptor.id, read);
249
+ const first = credentialAgent(agents);
250
+ if (first !== void 0 && !heldCopies.has(first.descriptor.id)) {
251
+ const read = readAgentCredential(env, first.descriptor.id, agents);
252
+ if (read !== void 0) heldCopies.set(first.descriptor.id, read);
253
253
  }
254
254
  for (const name of strippedVariables(agents)) {
255
255
  const value = env[name];
256
256
  if (value !== void 0 && value !== "") removedValues.add(value);
257
257
  delete env[name];
258
258
  }
259
- const first = runnerAgents(agents)[0];
260
259
  return first === void 0 ? void 0 : heldCopies.get(first.descriptor.id);
261
260
  }
262
261
  function takeAgentCredentials(env, hooks, agents = defaultAgents()) {
@@ -3,8 +3,8 @@ import { createRequire } from 'node:module';
3
3
  import { C } from './chunk-2AM6Z5BP.js';
4
4
  import { readCloudConfig } from './chunk-HWVMRETT.js';
5
5
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
6
- import { defaultAgents, legacyAgent, contextAgents, McpFileError } from './chunk-54ERDQ3O.js';
7
- import { mkdirSync, writeFileSync, existsSync, readFileSync } from 'fs';
6
+ import { legacyAgent, laptopAgents, defaultAgents, McpFileError } from './chunk-E6ESLX5E.js';
7
+ import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
8
8
  import { join, dirname } from 'path';
9
9
 
10
10
  createRequire(import.meta.url);
@@ -63,7 +63,7 @@ function mcpTargets(repoRoot, agents) {
63
63
  if (existsSync(join(repoRoot, ".outerlayer", "mcp.json"))) return [{ relPath: ".outerlayer/mcp.json", mcp: legacyAgent(agents).adapter.context.mcp }];
64
64
  const seen = /* @__PURE__ */ new Set();
65
65
  const targets = [];
66
- for (const { context } of contextAgents(agents)) {
66
+ for (const { context } of laptopAgents(agents)) {
67
67
  if (seen.has(context.mcp.file)) continue;
68
68
  seen.add(context.mcp.file);
69
69
  targets.push({ relPath: context.mcp.file, mcp: context.mcp });
@@ -133,4 +133,4 @@ function handleMcpInstallError(err) {
133
133
  process.exitCode = 1;
134
134
  }
135
135
 
136
- export { DEFAULT_MCP_COMMAND, DOCS_MCP_SERVER_NAME, INIT_DOCS_ENTRY, INIT_STDIO_ENTRY, McpInstallError, addDocsMcpEntryIfAbsent, addStdioMcpEntryIfAbsent, buildServerEntry, buildStdioServerEntry, defaultMcpUrl, handleMcpInstallError, mcpTargetPath, runMcpInstall, setMcpEntry };
136
+ export { DEFAULT_MCP_COMMAND, DOCS_MCP_SERVER_NAME, INIT_DOCS_ENTRY, INIT_STDIO_ENTRY, McpInstallError, addDocsMcpEntryIfAbsent, addStdioMcpEntryIfAbsent, buildServerEntry, buildStdioServerEntry, defaultMcpUrl, handleMcpInstallError, mcpTargetPath, mcpTargets, runMcpInstall, setMcpEntry };
@@ -4,6 +4,6 @@ import { createRequire } from 'node:module';
4
4
  createRequire(import.meta.url);
5
5
 
6
6
  // src/runner/protocol.ts
7
- var RUNNER_PROTOCOL = 41;
7
+ var RUNNER_PROTOCOL = 42;
8
8
 
9
9
  export { RUNNER_PROTOCOL };
@@ -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-L3SHPR2M.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-63KUYXOH.js';
5
5
  import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
6
6
  import { join } from 'path';
7
7
 
@@ -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-54ERDQ3O.js';
4
+ import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-E6ESLX5E.js';
5
5
  import { readFileSync, existsSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
6
6
  import { join, dirname, relative, sep } from 'path';
7
7
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { readSettingsText, SettingsParseError, cliForInstall } from './chunk-ZHQC43NH.js';
4
- import { legacyAgent, defaultAgents, HookTextError } from './chunk-54ERDQ3O.js';
4
+ import { legacyAgent, defaultAgents, HookTextError } from './chunk-E6ESLX5E.js';
5
5
 
6
6
  createRequire(import.meta.url);
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-QKLCIJEU.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-ZZ4WIQRF.js';
5
- import { RunnerAlreadyRunningError, readPidFile } from './chunk-HO4DPX5N.js';
3
+ import { scrubReason, stripTerminalControls } from './chunk-KYDKOYZD.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-WZ5YJJMP.js';
5
+ import { RunnerAlreadyRunningError, readPidFile } from './chunk-H4H3KK25.js';
6
6
  import { isSameProcess } from './chunk-JBJTC3UU.js';
7
- import { isSignatureRefusal, postJson } from './chunk-H4G26OZC.js';
8
- import { keyRunnerFactory } from './chunk-6J3QWXTA.js';
9
- import { signerFor } from './chunk-KHJPRTOW.js';
10
- import { pidFilePath } from './chunk-L3SHPR2M.js';
7
+ import { isSignatureRefusal, postJson } from './chunk-RY5QFTXJ.js';
8
+ import { keyRunnerFactory } from './chunk-F2UM3NDF.js';
9
+ import { signerFor } from './chunk-DIL7U77P.js';
10
+ import { pidFilePath } from './chunk-63KUYXOH.js';
11
11
  import { readFileSync } from 'fs';
12
12
 
13
13
  createRequire(import.meta.url);
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { EXEC_PORT } from './chunk-MPVTZLOM.js';
3
+ import { EXEC_PORT } from './chunk-CLFP2ZTG.js';
4
4
  import { createConnection } 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 { sanitizeTerminal } from './chunk-F3T5QJ24.js';
4
- import { resolvePackRoot, parseProofsConfig } from './chunk-54ERDQ3O.js';
4
+ import { resolvePackRoot, parseProofsConfig } from './chunk-E6ESLX5E.js';
5
5
  import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema } from './chunk-WUKLQWGY.js';
6
6
  import { createHash } from 'crypto';
7
7
  import { join } from 'path';
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-QVOU2QUR.js';
3
+ import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-7HRNYPL3.js';
4
4
  import { C } from './chunk-2AM6Z5BP.js';
5
- import { invalidConfigMessage } from './chunk-YEZGNCSK.js';
6
- import { retiredSkillPaths, removeRetiredSkills } from './chunk-NQYTUVZR.js';
5
+ import { invalidConfigMessage } from './chunk-H6T73OLF.js';
6
+ import { retiredSkillPaths, removeRetiredSkills } from './chunk-IM4VUDKW.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
8
- import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-54ERDQ3O.js';
8
+ import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-E6ESLX5E.js';
9
9
  import { LEGACY_AGENT } from './chunk-QJKW4MKH.js';
10
10
  import { existsSync, readFileSync, mkdirSync, writeFileSync, copyFileSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
11
11
  import { join, dirname } from 'path';
@@ -1,24 +1,24 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { checkStarterFiles, contextIsGoverned } from './chunk-4MLH5MDB.js';
4
- import { resolveCredentials, getJson, WorkCommandError } from './chunk-H4G26OZC.js';
5
- import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-PYK6GCCU.js';
6
- import { withInjectedPrograms } from './chunk-2SBNZ4EC.js';
7
- import { isLinkedRepository } from './chunk-PDRWRFB2.js';
3
+ import { checkStarterFiles, contextIsGoverned } from './chunk-OM3XGJBY.js';
4
+ import { resolveCredentials, getJson, WorkCommandError } from './chunk-RY5QFTXJ.js';
5
+ import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-SIVZITLG.js';
6
+ import { withInjectedPrograms } from './chunk-T3MVV6LG.js';
7
+ import { isLinkedRepository } from './chunk-4S564XTG.js';
8
8
  import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
9
9
  import { C } from './chunk-2AM6Z5BP.js';
10
- import { checkFormerSkillNames } from './chunk-NQYTUVZR.js';
11
- import { resolveGatewayCredentials, defaultFetch } from './chunk-HR4PJLOO.js';
12
- import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-SYKEQT63.js';
10
+ import { checkFormerSkillNames } from './chunk-IM4VUDKW.js';
11
+ import { resolveGatewayCredentials, defaultFetch } from './chunk-NFYXRAEV.js';
12
+ import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-5HMIMWRD.js';
13
13
  import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-OV4XTV5M.js';
14
14
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
15
- import { readStatuslineState, STATE_FRESH_MS } from './chunk-2JWLK2TU.js';
15
+ import { readStatuslineState, STATE_FRESH_MS } from './chunk-7TPLWWFN.js';
16
16
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
17
- import { installAgents, withSettingsText } from './chunk-BZQ3S24G.js';
17
+ import { installAgents, withSettingsText } from './chunk-INT54Z2T.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-54ERDQ3O.js';
21
+ import { defaultAgents, legacyAgent, contextAgents } from './chunk-E6ESLX5E.js';
22
22
  import { homeFromEnv } from './chunk-352DHUTP.js';
23
23
  import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-WZOWXDDM.js';
24
24
  import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync } from 'fs';
@@ -213,7 +213,7 @@ function runDoctor(env = {}) {
213
213
  ...starter?.checks ?? [],
214
214
  ...laptop ? checkRenamedSkills(env.cwd) : [],
215
215
  ...checkBuildSkillState(env.cwd, home),
216
- ...checkIgnoredSkills(env.cwd),
216
+ ...checkIgnoredSkills(env.cwd, agents),
217
217
  ...starter !== void 0 && !starter.mcpOutdated ? checkMcpCommand(env.cwd, env.processEnv) : [],
218
218
  ...checkContextSource(env.cwd, legacy),
219
219
  ...checkGovernsList(env.cwd),
@@ -226,9 +226,9 @@ function checkRenamedSkills(cwd) {
226
226
  if (dirs === void 0 || contextIsGoverned(dirs.gitCommonDir)) return [];
227
227
  return checkFormerSkillNames(dirs.repoRoot);
228
228
  }
229
- function checkIgnoredSkills(cwd) {
229
+ function checkIgnoredSkills(cwd, agents) {
230
230
  const dirs = findGitDirs(cwd ?? process.cwd());
231
- return dirs === void 0 ? [] : checkIgnoredSkillFolders(dirs.repoRoot);
231
+ return dirs === void 0 ? [] : checkIgnoredSkillFolders(dirs.repoRoot, agents);
232
232
  }
233
233
  function checkBuildSkillState(cwd, home) {
234
234
  const dirs = findGitDirs(cwd ?? process.cwd());
@@ -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-3HOXULLP.js');
1054
- const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-23EBIGW4.js');
1053
+ const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-NYYBJGBH.js');
1054
+ const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-W4OY2JNP.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-GEG64FBO.js');
1082
+ const { runnerHostChecks } = await import('./doctor-3HKOYZTJ.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-RYYTX2O5.js');
1110
+ const { inspectRunnerService } = await import('./find-unit-X5LYKUQX.js');
1111
1111
  return inspectRunnerService(configPath);
1112
1112
  })();
1113
1113
  checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));