@outerlayer/cli 0.38.0-next.20261110212358 → 0.38.0-next.20261111024231

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 (177) hide show
  1. package/README.md +8 -0
  2. package/dist/agent-setup-T2VITZUY.js +40 -0
  3. package/dist/{agent-subcommand-5PNHUNZZ.js → agent-subcommand-KV3JO5YD.js} +4 -4
  4. package/dist/{artifact-link-cmd-XOFZP7U5.js → artifact-link-cmd-L4BXSQQP.js} +2 -2
  5. package/dist/{bridge-RNM7OWRW.js → bridge-7MCKZXCR.js} +7 -7
  6. package/dist/{build-VKO7IVOQ.js → build-N2MRLYFW.js} +13 -13
  7. package/dist/{build-disk-M2JYJF6R.js → build-disk-IJZYZ2K5.js} +11 -11
  8. package/dist/build-info.json +1 -1
  9. package/dist/{builder-HMHJ6U7C.js → builder-ATKIRCDJ.js} +10 -10
  10. package/dist/caller-OWXJDYPI.js +23 -0
  11. package/dist/{check-3XHEVEXS.js → check-F7RN65GG.js} +55 -55
  12. package/dist/{chunk-2TXYQANG.js → chunk-2FUJ5PSV.js} +1 -1
  13. package/dist/{chunk-SBPMDO47.js → chunk-2HLMGVK6.js} +1 -1
  14. package/dist/{chunk-TW2V2IQ4.js → chunk-2KUFDLLY.js} +1 -1
  15. package/dist/{chunk-L32O52SH.js → chunk-2PRDLE4L.js} +1 -1
  16. package/dist/{chunk-DKDBMMX7.js → chunk-3VEPVZV4.js} +6 -6
  17. package/dist/{chunk-5QFFQCSY.js → chunk-4HUYH65P.js} +1 -1
  18. package/dist/{chunk-NE7EG3SN.js → chunk-4YAFIOIV.js} +19 -4
  19. package/dist/{chunk-3HJK7WTM.js → chunk-5NJ367OD.js} +137 -14
  20. package/dist/{chunk-2WNJ2MHD.js → chunk-64ROJ5LD.js} +1 -1
  21. package/dist/{chunk-C574RHGN.js → chunk-6T2X2JI6.js} +3 -3
  22. package/dist/{chunk-OI4ZV7MJ.js → chunk-6U3UTAWQ.js} +1 -1
  23. package/dist/{chunk-67BVM7JK.js → chunk-7G2HRTSG.js} +3 -3
  24. package/dist/{chunk-IGO766M6.js → chunk-7GYY7RHR.js} +4 -4
  25. package/dist/{chunk-XCTE5S2C.js → chunk-7HYXJVU6.js} +1 -1
  26. package/dist/{chunk-UUSSRXUJ.js → chunk-7LWASV77.js} +3 -3
  27. package/dist/{chunk-WH2QUYXH.js → chunk-7U43B2UB.js} +2 -2
  28. package/dist/{chunk-QFQ2UNZU.js → chunk-AB4GMYIH.js} +6 -6
  29. package/dist/{chunk-S56J4BMQ.js → chunk-ASCXEXYJ.js} +10 -10
  30. package/dist/{chunk-6XROZIV6.js → chunk-BY2YRJSC.js} +6 -6
  31. package/dist/{chunk-ITOIM3WV.js → chunk-CSFMIUYS.js} +1 -1
  32. package/dist/{chunk-MBPBYMHU.js → chunk-E5G6K7C4.js} +1 -1
  33. package/dist/{chunk-XFU37HIM.js → chunk-ECMQNH2H.js} +3 -3
  34. package/dist/{chunk-3GTAPQBG.js → chunk-EWGHEMEO.js} +2 -2
  35. package/dist/{chunk-VNHDMOZW.js → chunk-FB2UT5XA.js} +57 -32
  36. package/dist/{chunk-KGHYNTF6.js → chunk-FT5NDSSG.js} +7 -7
  37. package/dist/{chunk-MT4XF5OL.js → chunk-G2CRPYFO.js} +2 -2
  38. package/dist/{chunk-RBLXGO5K.js → chunk-GGKXYHT5.js} +2 -2
  39. package/dist/{chunk-YOAJLD2D.js → chunk-GPP5EZV7.js} +7 -7
  40. package/dist/{chunk-TUSIYONR.js → chunk-HWXBOHEA.js} +1 -1
  41. package/dist/{chunk-HMDEF3UT.js → chunk-I5C667TJ.js} +16 -16
  42. package/dist/{chunk-OEWSICWM.js → chunk-IB2UHXZ7.js} +8 -8
  43. package/dist/{chunk-F2ADK2KB.js → chunk-ICW75TS5.js} +5 -5
  44. package/dist/{chunk-UCUBQWJC.js → chunk-IEX5FXEU.js} +3 -3
  45. package/dist/{chunk-47JRSV6Y.js → chunk-J4DTF5MN.js} +1 -1
  46. package/dist/{chunk-MSARYPFD.js → chunk-JPAO6HRN.js} +2 -2
  47. package/dist/{chunk-PA6FKP5B.js → chunk-K6KUWUUT.js} +6 -6
  48. package/dist/{chunk-I64CTY4U.js → chunk-KGJAYD7F.js} +829 -640
  49. package/dist/{chunk-ENHD5PNW.js → chunk-KM2IMFAG.js} +1 -1
  50. package/dist/{chunk-ALCZ2SEW.js → chunk-LXREVZX7.js} +5 -5
  51. package/dist/{chunk-VU5PPWIQ.js → chunk-M5DYOU5G.js} +7 -7
  52. package/dist/{chunk-HDEYRLWK.js → chunk-MPF7CVQM.js} +1 -1
  53. package/dist/{chunk-L6CZTRNW.js → chunk-MRSN67FY.js} +1 -1
  54. package/dist/{chunk-OK4RSIB2.js → chunk-N3KGXHV4.js} +1 -1
  55. package/dist/{chunk-7E55P2NR.js → chunk-NAKFPE2V.js} +1 -1
  56. package/dist/{chunk-VQQF6MDT.js → chunk-NC6HUEMI.js} +10 -10
  57. package/dist/{chunk-FXVHF6RX.js → chunk-NEXKR5RR.js} +64 -13
  58. package/dist/{chunk-FGBBGUM4.js → chunk-NWSKP5VI.js} +4 -4
  59. package/dist/{chunk-5QDHJT73.js → chunk-O53PVAUY.js} +6 -5
  60. package/dist/{chunk-QGUCHNSQ.js → chunk-OBSWWJJ3.js} +3 -3
  61. package/dist/{chunk-3DY4DQOC.js → chunk-OBXRHBOM.js} +4 -4
  62. package/dist/{chunk-BTH6HTE5.js → chunk-OUKSF3LK.js} +5 -5
  63. package/dist/{chunk-6RQP5GP5.js → chunk-OVJSVC5U.js} +2 -2
  64. package/dist/{chunk-YO2NPS66.js → chunk-PG33WPRF.js} +1 -1
  65. package/dist/{chunk-E27XMQKR.js → chunk-PP7MPUX7.js} +3 -3
  66. package/dist/{chunk-B5Z4VA4Q.js → chunk-QHYCF36K.js} +1 -1
  67. package/dist/{chunk-EHPKACA7.js → chunk-QM3M7QN3.js} +1 -1
  68. package/dist/{chunk-IVB6A3I7.js → chunk-R35KRBTS.js} +7 -7
  69. package/dist/{chunk-VRWZNI6U.js → chunk-R7BS36HP.js} +1 -1
  70. package/dist/{chunk-I2N427GS.js → chunk-REZNW2YV.js} +8 -8
  71. package/dist/{chunk-735C5J6Q.js → chunk-RPIYENP2.js} +5 -5
  72. package/dist/{chunk-GJMLLXZJ.js → chunk-RWXLTF3K.js} +1 -1
  73. package/dist/{chunk-AC6DM3S3.js → chunk-T5CN56UE.js} +1 -1
  74. package/dist/{chunk-CXXQQST7.js → chunk-U5YHNSSI.js} +9 -9
  75. package/dist/{chunk-72LXVD4O.js → chunk-W2H6JURI.js} +4 -4
  76. package/dist/{chunk-BCQFMAGM.js → chunk-WPGGRTF4.js} +3 -3
  77. package/dist/{chunk-YZQYTOCR.js → chunk-XMIL73Y2.js} +1 -1
  78. package/dist/{chunk-25G5KXBE.js → chunk-XSVZFWZ4.js} +7 -7
  79. package/dist/{chunk-OWEJP5HJ.js → chunk-YB3M2TM3.js} +1 -1
  80. package/dist/{chunk-B4U5XI4F.js → chunk-YFMVZBLO.js} +8 -8
  81. package/dist/{chunk-XAR2CJFV.js → chunk-YFQIK6LZ.js} +7 -7
  82. package/dist/{chunk-ATQHPT3B.js → chunk-YI2XPK7A.js} +1 -1
  83. package/dist/{chunk-TD6DN5LU.js → chunk-ZGCIFD5Y.js} +3 -3
  84. package/dist/{claude-launcher-WMIUTAXY.js → claude-launcher-ZC664P33.js} +7 -7
  85. package/dist/{cli-PS6GSOAE.js → cli-XWXX6PJD.js} +157 -157
  86. package/dist/{command-XQPL75PX.js → command-D656K4AE.js} +50 -50
  87. package/dist/{config-ZRGYLVDX.js → config-U2OR7MQW.js} +12 -12
  88. package/dist/{connect-cmd-MZXTWM4R.js → connect-cmd-73BBTTU5.js} +13 -13
  89. package/dist/{container-start-M7SFF62T.js → container-start-JFJYC4GQ.js} +48 -48
  90. package/dist/{context-cleanup-Z3HZZZXW.js → context-cleanup-JPPSK7DE.js} +4 -4
  91. package/dist/{context-show-cmd-SCOVPVDM.js → context-show-cmd-ETWKBHXZ.js} +14 -14
  92. package/dist/{control-plane-launch-MWZHJ4G5.js → control-plane-launch-JOH7FS5U.js} +14 -14
  93. package/dist/{demo-record-cmd-4RVSWVMK.js → demo-record-cmd-GBHPIYJA.js} +8 -8
  94. package/dist/{demo-voice-cmd-TQP3PZE2.js → demo-voice-cmd-GUYFA2NG.js} +20 -20
  95. package/dist/{dist-XEPPXF4M.js → dist-5VKIP767.js} +2 -2
  96. package/dist/{docker-25F2KOBJ.js → docker-RC4CFNKI.js} +10 -10
  97. package/dist/{doctor-Z3U3ICVR.js → doctor-TW6VREAT.js} +50 -50
  98. package/dist/{emit-artifact-cmd-Z4SHPKFT.js → emit-artifact-cmd-CQLCPM4R.js} +19 -19
  99. package/dist/{emit-cmd-NHMZ4M5S.js → emit-cmd-AIAY4WTW.js} +7 -7
  100. package/dist/{emit-criteria-cmd-HCN3DOJM.js → emit-criteria-cmd-VM7AO3E3.js} +16 -16
  101. package/dist/{emit-demo-cmd-R3TIGMFX.js → emit-demo-cmd-3NSODQTO.js} +20 -20
  102. package/dist/{emit-finding-cmd-YXR3ZVCJ.js → emit-finding-cmd-4CRLSMOK.js} +16 -16
  103. package/dist/{emit-result-cmd-Z7MBE37R.js → emit-result-cmd-GM43QMCM.js} +18 -18
  104. package/dist/{emit-step-cmd-JOSYDSEO.js → emit-step-cmd-J7KS2QXL.js} +16 -16
  105. package/dist/{exec-client-SZRXXKJ5.js → exec-client-DY7673SD.js} +8 -8
  106. package/dist/find-unit-ZVHHFTL2.js +24 -0
  107. package/dist/{findings-cmd-NGFY25WZ.js → findings-cmd-25F44AB4.js} +16 -16
  108. package/dist/{fleet-readiness-NWIVQQ4P.js → fleet-readiness-Z4C6W7XN.js} +14 -14
  109. package/dist/governing-source-IURJZXUR.js +41 -0
  110. package/dist/{guest-init-T7QJW2AJ.js → guest-init-4B5MMXIQ.js} +9 -9
  111. package/dist/{hook-fast-ECQBMESE.js → hook-fast-LB3VTEIW.js} +1 -1
  112. package/dist/{hook-install-MBMG3G6B.js → hook-install-QQXREIMI.js} +4 -4
  113. package/dist/host-checks-AQTZ7IKK.js +80 -0
  114. package/dist/host-key-ZWMN7VIH.js +18 -0
  115. package/dist/{image-tag-OCVY4W5D.js → image-tag-4DKLSTO6.js} +8 -8
  116. package/dist/index.js +4 -4
  117. package/dist/init-P2PDGLTU.js +80 -0
  118. package/dist/{init-NRN2DQC3.js → init-XYFDIEOA.js} +46 -46
  119. package/dist/{init-agent-GDOZHPQH.js → init-agent-EGNFBPM5.js} +46 -46
  120. package/dist/{init-cmd-QJYX47LS.js → init-cmd-C2I22ZJA.js} +27 -27
  121. package/dist/{init-update-EUJ4264S.js → init-update-H4LSR7H4.js} +24 -24
  122. package/dist/{install-cmd-HWG6LJX5.js → install-cmd-BI4C3MGF.js} +10 -10
  123. package/dist/{layout-CGE4KWGO.js → layout-CE6QLPNH.js} +4 -4
  124. package/dist/{login-browser-G7WNR74C.js → login-browser-COSWHZEC.js} +2 -2
  125. package/dist/{logs-TKWJ4S4W.js → logs-7DD6J3M6.js} +7 -7
  126. package/dist/loop-KEGBBAV4.js +90 -0
  127. package/dist/machine-JK27TGT6.js +80 -0
  128. package/dist/{machine-skills-CXA57QHE.js → machine-skills-YJLPUAYZ.js} +4 -4
  129. package/dist/{mcp-install-cmd-6IGK65DV.js → mcp-install-cmd-VSWX5BSZ.js} +4 -4
  130. package/dist/{mcp-serve-cmd-DVE5XP2U.js → mcp-serve-cmd-HK2ODMHU.js} +9 -9
  131. package/dist/{paths-VOWYUJLZ.js → paths-EHWU5QWB.js} +7 -7
  132. package/dist/pending-K4A23JIC.js +18 -0
  133. package/dist/{pidfile-MFP6B2KV.js → pidfile-PG3L2CVV.js} +8 -8
  134. package/dist/{record-AWCJ3LTG.js → record-PXCRTDQU.js} +8 -8
  135. package/dist/{relay-YVZM5M6B.js → relay-2MJY25BV.js} +5 -5
  136. package/dist/{relay-protocol-MNWITORT.js → relay-protocol-VBCRA347.js} +5 -5
  137. package/dist/{run-cmd-MBH5Z2UL.js → run-cmd-F7ANZPSX.js} +16 -16
  138. package/dist/{runner-agents-L3PLYFWJ.js → runner-agents-HZ5FIFPU.js} +4 -4
  139. package/dist/runner-env-5AM2XYEN.js +24 -0
  140. package/dist/{runner-identity-E2XKIJNB.js → runner-identity-CL2KMFGC.js} +10 -10
  141. package/dist/{runner-key-W5M6AYY5.js → runner-key-CJ66VZE3.js} +46 -46
  142. package/dist/{session-sender-IS6S7PBC.js → session-sender-RSAHCLL6.js} +19 -19
  143. package/dist/{spec-cmd-ZLDYL4N5.js → spec-cmd-ED6DKB54.js} +17 -17
  144. package/dist/{starter-pack-XINCCMDN.js → starter-pack-IT2KYFWU.js} +5 -5
  145. package/dist/state-MV53BATE.js +18 -0
  146. package/dist/{status-L7R6FKWD.js → status-CZTCYZLU.js} +46 -46
  147. package/dist/{sync-cmd-3YZ4IB3T.js → sync-cmd-PQZD77PE.js} +18 -18
  148. package/dist/update-steps-DCFEKNW2.js +81 -0
  149. package/dist/{watch-LIIODJ5U.js → watch-FAQXAAUA.js} +18 -18
  150. package/dist/{work-claim-cmd-GWBWIZ43.js → work-claim-cmd-XPXHRV74.js} +22 -22
  151. package/dist/{work-cmd-CJWTGOU5.js → work-cmd-ME7DWBI6.js} +16 -16
  152. package/dist/{work-comment-cmd-RFVCNEET.js → work-comment-cmd-ZT4O56QR.js} +18 -18
  153. package/dist/{work-demo-cmd-Q2GKJCVL.js → work-demo-cmd-YV22MZXG.js} +16 -16
  154. package/dist/{work-logs-cmd-KZQBPU2J.js → work-logs-cmd-LUK7THB2.js} +16 -16
  155. package/dist/{work-needs-attention-cmd-L3DOYAMK.js → work-needs-attention-cmd-KTLWMBJV.js} +16 -16
  156. package/dist/{work-no-change-cmd-SHP25CJB.js → work-no-change-cmd-TWGW5ZOO.js} +16 -16
  157. package/dist/{work-open-pr-cmd-VATPLVSL.js → work-open-pr-cmd-VEM5MEUS.js} +17 -17
  158. package/dist/{work-pr-cmd-XBLNONT3.js → work-pr-cmd-M4G35ZIV.js} +16 -16
  159. package/dist/{work-proofs-cmd-7HSLB52S.js → work-proofs-cmd-7EZ4QZUR.js} +18 -18
  160. package/dist/{work-proofs-record-BE6UMZPH.js → work-proofs-record-AY72YKNC.js} +24 -24
  161. package/dist/{work-stop-cmd-BLOSL24H.js → work-stop-cmd-FX5QTUYJ.js} +16 -16
  162. package/package.json +1 -1
  163. package/skill-pack/maintained/outerlayer-findings/SKILL.md +46 -41
  164. package/skill-pack/maintained/outerlayer-findings/references/examples.md +23 -0
  165. package/dist/agent-setup-GZBGCV3K.js +0 -40
  166. package/dist/caller-U26SATTV.js +0 -23
  167. package/dist/find-unit-3RHC4375.js +0 -24
  168. package/dist/governing-source-DNWVPRXP.js +0 -41
  169. package/dist/host-checks-QLGWXKOC.js +0 -80
  170. package/dist/host-key-6SMJUTJ2.js +0 -18
  171. package/dist/init-JY3XYZI6.js +0 -80
  172. package/dist/loop-HWYHQ374.js +0 -90
  173. package/dist/machine-NVXRV4BO.js +0 -80
  174. package/dist/pending-35ML3JE5.js +0 -18
  175. package/dist/runner-env-IHWYZ3B6.js +0 -24
  176. package/dist/state-NIA6XT7D.js +0 -18
  177. package/dist/update-steps-6SPAPBAB.js +0 -81
@@ -1,21 +1,22 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
4
- import { detectActiveSession, transcriptPathForSession } from './chunk-SBPMDO47.js';
5
- import { autoConnect } from './chunk-XFU37HIM.js';
4
+ import { detectActiveSession, transcriptPathForSession } from './chunk-2HLMGVK6.js';
5
+ import { autoConnect } from './chunk-ECMQNH2H.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-VRWZNI6U.js';
7
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-R7BS36HP.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';
11
11
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
12
- import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-MT4XF5OL.js';
12
+ import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-G2CRPYFO.js';
13
13
  import { homeFromEnv } from './chunk-352DHUTP.js';
14
- import { resolveRepoIdentity, scrubText } from './chunk-MBPBYMHU.js';
15
- import { FindingBatchSchema, FindingsResponseSchema, SAME_PROBLEM_RULES } from './chunk-FXVHF6RX.js';
14
+ import { resolveRepoIdentity, scrubText } from './chunk-E5G6K7C4.js';
15
+ import { FindingBatchSchema, findingGaps, FindingsResponseSchema, FINDING_CODE_EXCERPT_MAX_LENGTH, SAME_PROBLEM_RULES, FINDING_TRANSCRIPT_EXCERPT_MAX_LENGTH } from './chunk-NEXKR5RR.js';
16
16
  import { readFileSync, existsSync } from 'fs';
17
17
  import { homedir } from 'os';
18
- import { join, dirname } from 'path';
18
+ import { resolve, relative, isAbsolute, join, dirname } from 'path';
19
+ import { execFileSync } from 'child_process';
19
20
 
20
21
  createRequire(import.meta.url);
21
22
  var RECENT_EVENT_COUNT = 30;
@@ -50,10 +51,9 @@ function blockText(block) {
50
51
  function contentOf(message) {
51
52
  return message?.content;
52
53
  }
53
- function flatText(message) {
54
+ function bodyText(message) {
54
55
  const content = contentOf(message);
55
- const text = Array.isArray(content) ? content.map(blockText).join(" ") : blockText(content);
56
- return text.replace(/\s+/g, " ").trim();
56
+ return (Array.isArray(content) ? content.map(blockText).join("\n") : blockText(content)).trim();
57
57
  }
58
58
  function summarize(type, flat, agent) {
59
59
  const scrubbed = scrubText(flat);
@@ -83,12 +83,14 @@ function readSessionEvents(transcriptPath, agent) {
83
83
  }
84
84
  if (record.type !== "user" && record.type !== "assistant" || typeof record.timestamp !== "string") return;
85
85
  if (!Number.isFinite(Date.parse(record.timestamp))) return;
86
- const text2 = flatText(record.message);
86
+ const body = bodyText(record.message);
87
+ const text2 = body.replace(/\s+/g, " ");
87
88
  events.push({
88
89
  id: agent !== void 0 ? `${agent}:e${index + 1}` : `e${index + 1}`,
89
90
  at: record.timestamp,
90
91
  summary: summarize(record.type, text2, agent),
91
92
  text: text2,
93
+ body,
92
94
  isResult: isToolResult(record.message)
93
95
  });
94
96
  });
@@ -230,6 +232,108 @@ function rerunBatch(file) {
230
232
  const target = file === "-" ? "the batch" : file;
231
233
  return `In ${target}, give each finding listed above "problems": [<id>, ...] with "linkReason": "<why>", or "new": true if none of these is the same problem. Then run emit findings again: the findings already stored are updated in place.`;
232
234
  }
235
+ var CODE_EXCERPT_CONTEXT_LINES = 3;
236
+ function checkoutHeadSha(cwd) {
237
+ try {
238
+ const out = execFileSync("git", ["rev-parse", "HEAD"], { cwd, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"], timeout: 1e4 });
239
+ const sha = out.trim();
240
+ return /^[0-9a-f]{40,64}$/.test(sha) ? sha : void 0;
241
+ } catch {
242
+ return void 0;
243
+ }
244
+ }
245
+ function codeExcerptFor(repoRoot, path, line, sha) {
246
+ const absolute = resolve(repoRoot, path);
247
+ const inside = relative(repoRoot, absolute);
248
+ if (inside.startsWith("..") || isAbsolute(inside)) return void 0;
249
+ let text;
250
+ try {
251
+ text = readFileSync(absolute, "utf8");
252
+ } catch {
253
+ return void 0;
254
+ }
255
+ const lines = text.split("\n");
256
+ if (lines[lines.length - 1] === "") lines.pop();
257
+ if (line > lines.length) return void 0;
258
+ let startLine = Math.max(1, line - CODE_EXCERPT_CONTEXT_LINES);
259
+ const kept = lines.slice(startLine - 1, line + CODE_EXCERPT_CONTEXT_LINES);
260
+ let excerpt = scrubText(kept.join("\n"));
261
+ while (excerpt.length > FINDING_CODE_EXCERPT_MAX_LENGTH && kept.length > 1) {
262
+ if (startLine + kept.length - 1 > line) kept.pop();
263
+ else {
264
+ kept.shift();
265
+ startLine += 1;
266
+ }
267
+ excerpt = scrubText(kept.join("\n"));
268
+ }
269
+ if (excerpt.length > FINDING_CODE_EXCERPT_MAX_LENGTH) excerpt = `${excerpt.slice(0, FINDING_CODE_EXCERPT_MAX_LENGTH - 1)}\u2026`;
270
+ if (excerpt.trim() === "") return void 0;
271
+ return { path, startLine, text: excerpt, ...sha !== void 0 ? { sha } : {} };
272
+ }
273
+ var ELISION = "\n\u2026\n";
274
+ function fit(text, max) {
275
+ if (text.length <= max) return text;
276
+ const head = Math.floor((max - ELISION.length) / 3);
277
+ const tail = max - ELISION.length - head;
278
+ return `${text.slice(0, head)}${ELISION}${text.slice(text.length - tail)}`;
279
+ }
280
+ function transcriptExcerptFor(events, startId) {
281
+ if (events === void 0) return void 0;
282
+ const index = events.findIndex((event) => event.id === startId);
283
+ if (index === -1) return void 0;
284
+ const start = events[index];
285
+ const prefix = start.id.includes(":") ? start.id.slice(0, start.id.indexOf(":")) : void 0;
286
+ const call = start.isResult ? events.slice(0, index).reverse().find((event) => (event.id.includes(":") ? event.id.slice(0, event.id.indexOf(":")) : void 0) === prefix) : void 0;
287
+ const parts = [call !== void 0 && !call.isResult ? call.body : void 0, start.body].filter(
288
+ (part) => part !== void 0 && part.trim() !== ""
289
+ );
290
+ if (parts.length === 0) return void 0;
291
+ return fit(scrubText(parts.join("\n\n")), FINDING_TRANSCRIPT_EXCERPT_MAX_LENGTH);
292
+ }
293
+ function positiveInt(value) {
294
+ return Number.isSafeInteger(value) && value >= 1 ? value : void 0;
295
+ }
296
+ function withCapturedContext(finding, opts) {
297
+ const out = { ...finding };
298
+ if (out.codeExcerpt === void 0 && opts.repoRoot !== void 0) {
299
+ const rule = typeof out.rule === "object" && out.rule !== null ? out.rule : {};
300
+ const fileLine = positiveInt(out.line);
301
+ const ruleLine = positiveInt(rule.line);
302
+ const target = typeof out.file === "string" && fileLine !== void 0 ? { path: out.file, line: fileLine } : typeof rule.path === "string" && ruleLine !== void 0 ? { path: rule.path, line: ruleLine } : void 0;
303
+ const excerpt = target !== void 0 ? codeExcerptFor(opts.repoRoot, target.path, target.line, opts.sha) : void 0;
304
+ if (excerpt !== void 0) out.codeExcerpt = excerpt;
305
+ }
306
+ const started = out.startedAt;
307
+ if (out.transcriptExcerpt === void 0 && typeof started?.id === "string") {
308
+ const excerpt = transcriptExcerptFor(opts.events, started.id);
309
+ if (excerpt !== void 0) out.transcriptExcerpt = excerpt;
310
+ }
311
+ return out;
312
+ }
313
+ var FLAG_OF = {
314
+ detail: "--detail",
315
+ cause: "--cause",
316
+ command: "--command",
317
+ error: "--error",
318
+ test: "--test",
319
+ symbol: "--symbol",
320
+ line: "--line",
321
+ "rule.line": "--rule-line"
322
+ };
323
+ function incompleteFindingsMessage(findings, opts) {
324
+ const lines = [];
325
+ findings.forEach((finding, index) => {
326
+ for (const gap of findingGaps(finding)) {
327
+ const name = opts.flags ? FLAG_OF[gap.field] : `findings.${index}.${gap.field}`;
328
+ lines.push(` ${name}: ${gap.reason}`);
329
+ }
330
+ });
331
+ if (lines.length === 0) return void 0;
332
+ const subject = opts.flags ? "this finding" : "the batch";
333
+ return `nothing was stored: ${subject} needs more context for a reader who was not in this session.
334
+ ${lines.join("\n")}
335
+ Add each field and run the same command again.`;
336
+ }
233
337
 
234
338
  // src/emit-finding-cmd.ts
235
339
  var EmitFindingError = class extends Error {
@@ -483,16 +587,24 @@ async function runEmitFinding(opts) {
483
587
  if (timed.needsStart !== void 0) {
484
588
  throw new EmitFindingError(formatNeedsStart({ recent: newestEvents(timed.needsStart), errorGiven: opts.error !== void 0 }));
485
589
  }
590
+ const headSha = opts.headSha ?? checkoutHeadSha(cwd);
591
+ const captured = withCapturedContext(timed.finding, {
592
+ repoRoot: resolveRepoIdentity(cwd).repoRoot ?? cwd,
593
+ sha: headSha,
594
+ events: sessionId !== void 0 ? loadEvents(sessionId) : void 0
595
+ });
486
596
  const rawBatch = {
487
597
  schemaVersion: 3,
488
- ...opts.headSha !== void 0 ? { headSha: opts.headSha } : {},
598
+ headSha,
489
599
  ...contextSourceSha !== void 0 ? { contextSourceSha } : {},
490
- findings: [timed.finding]
600
+ findings: [captured]
491
601
  };
492
602
  const parsed = FindingBatchSchema.safeParse(rawBatch);
493
603
  if (!parsed.success) {
494
604
  throw new EmitFindingError(`invalid finding \u2014 ${firstIssueMessage(parsed)}`);
495
605
  }
606
+ const incomplete = incompleteFindingsMessage(parsed.data.findings, { flags: true });
607
+ if (incomplete !== void 0) throw new EmitFindingError(incomplete);
496
608
  const target = resolveUploadTarget({ item: opts.item, sessionId, home });
497
609
  return upload(parsed.data, target, {
498
610
  json: opts.json,
@@ -539,6 +651,8 @@ async function runEmitFindings(opts) {
539
651
  let timed = [];
540
652
  if (Array.isArray(raw?.findings)) {
541
653
  const batch = raw;
654
+ const headSha = typeof batch.headSha === "string" ? batch.headSha : checkoutHeadSha(cwd);
655
+ const repoRoot = resolveRepoIdentity(cwd).repoRoot ?? cwd;
542
656
  const loadEvents = eventLoader(home);
543
657
  const flags = { startFlag: "startedAt", endFlag: "endedAt", untimedFlag: '"untimed"' };
544
658
  const entries = batch.findings.map(
@@ -549,12 +663,21 @@ async function runEmitFindings(opts) {
549
663
  if (missing.length > 0) {
550
664
  throw new EmitFindingError(formatBatchNeedsStart(missing.map((t) => String(t.finding.id)), newestEvents(missing[0].needsStart)));
551
665
  }
552
- raw = { ...batch, findings: entries.map((entry) => timed.includes(entry) ? entry.finding : entry) };
666
+ const events = sessionId !== void 0 ? loadEvents(sessionId) : void 0;
667
+ raw = {
668
+ ...batch,
669
+ ...headSha !== void 0 ? { headSha } : {},
670
+ findings: entries.map(
671
+ (entry) => timed.includes(entry) ? withCapturedContext(entry.finding, { repoRoot, sha: headSha, events }) : entry
672
+ )
673
+ };
553
674
  }
554
675
  const parsed = FindingBatchSchema.safeParse(raw);
555
676
  if (!parsed.success) {
556
677
  throw new EmitFindingError(`invalid finding batch \u2014 ${firstIssueMessage(parsed)}`);
557
678
  }
679
+ const incomplete = incompleteFindingsMessage(parsed.data.findings, { flags: false });
680
+ if (incomplete !== void 0) throw new EmitFindingError(incomplete);
558
681
  const target = resolveUploadTarget({ item: opts.item, sessionId, home });
559
682
  return upload(parsed.data, target, {
560
683
  json: opts.json,
@@ -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-AC6DM3S3.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-T5CN56UE.js';
5
5
  import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
6
6
  import { join } from 'path';
7
7
 
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-ATQHPT3B.js';
4
- import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-5QFFQCSY.js';
3
+ import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-YI2XPK7A.js';
4
+ import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-4HUYH65P.js';
5
5
  import { compareVersions } from './chunk-TQMI335S.js';
6
- import { runnerDir, RUNNER_DIR_MODE } from './chunk-AC6DM3S3.js';
6
+ import { runnerDir, RUNNER_DIR_MODE } from './chunk-T5CN56UE.js';
7
7
  import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
8
8
  import { dirname, sep, join } from 'path';
9
9
  import { spawnSync } from 'child_process';
@@ -1,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-AC6DM3S3.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-T5CN56UE.js';
5
5
  import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
6
6
  import { dirname } from 'path';
7
7
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { stripTerminalControls } from './chunk-I64CTY4U.js';
4
- import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-2WNJ2MHD.js';
3
+ import { stripTerminalControls } from './chunk-KGJAYD7F.js';
4
+ import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-64ROJ5LD.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-25F2KOBJ.js')).spawnRun;
58
+ const run = deps.run ?? (await import('./docker-RC4CFNKI.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,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-YO2NPS66.js';
3
+ import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-PG33WPRF.js';
4
4
  import { C } from './chunk-2AM6Z5BP.js';
5
- import { invalidConfigMessage } from './chunk-OWEJP5HJ.js';
6
- import { retiredSkillPaths, removeRetiredSkills } from './chunk-TW2V2IQ4.js';
5
+ import { invalidConfigMessage } from './chunk-YB3M2TM3.js';
6
+ import { retiredSkillPaths, removeRetiredSkills } from './chunk-2KUFDLLY.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
8
- import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-MT4XF5OL.js';
8
+ import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-G2CRPYFO.js';
9
9
  import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
10
10
  import { existsSync, readFileSync, mkdirSync, writeFileSync, copyFileSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
11
11
  import { join, dirname } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { EXEC_PORT } from './chunk-TD6DN5LU.js';
3
+ import { EXEC_PORT } from './chunk-ZGCIFD5Y.js';
4
4
  import { createConnection } from 'net';
5
5
 
6
6
  createRequire(import.meta.url);
@@ -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-L32O52SH.js';
3
+ import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-2PRDLE4L.js';
4
4
  import { startTimeOf } from './chunk-JBJTC3UU.js';
5
- import { EXEC_PORT } from './chunk-TD6DN5LU.js';
6
- import { RELAY_PORT } from './chunk-NE7EG3SN.js';
5
+ import { EXEC_PORT } from './chunk-ZGCIFD5Y.js';
6
+ import { RELAY_PORT } from './chunk-4YAFIOIV.js';
7
7
  import { spawn, spawnSync } from 'child_process';
8
8
  import { symlinkSync, lstatSync, writeFileSync, chmodSync, mkdirSync, existsSync } from 'fs';
9
9
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-UCUBQWJC.js';
4
- import { defaultAgents } from './chunk-MT4XF5OL.js';
3
+ import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-IEX5FXEU.js';
4
+ import { defaultAgents } from './chunk-G2CRPYFO.js';
5
5
  import { PROVIDERS } from './chunk-7PZDPISM.js';
6
6
  import { statSync, readFileSync } from 'fs';
7
7
  import { join } from 'path';
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { sanitizeTerminal } from './chunk-B5Z4VA4Q.js';
4
- import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-YO2NPS66.js';
5
- import { DEFAULT_DASHBOARD } from './chunk-OK4RSIB2.js';
6
- import { cliFetch, resolveGatewayCredentials } from './chunk-VRWZNI6U.js';
3
+ import { sanitizeTerminal } from './chunk-QHYCF36K.js';
4
+ import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-PG33WPRF.js';
5
+ import { DEFAULT_DASHBOARD } from './chunk-N3KGXHV4.js';
6
+ import { cliFetch, resolveGatewayCredentials } from './chunk-R7BS36HP.js';
7
7
  import { readCloudConfig } from './chunk-HWVMRETT.js';
8
8
  import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
9
9
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
10
- import { defaultAgents } from './chunk-MT4XF5OL.js';
11
- import { remoteLookupFailed } from './chunk-MBPBYMHU.js';
10
+ import { defaultAgents } from './chunk-G2CRPYFO.js';
11
+ import { remoteLookupFailed } from './chunk-E5G6K7C4.js';
12
12
  import { execFileSync } from 'child_process';
13
13
  import { lstatSync } from 'fs';
14
14
  import { join, relative } from 'path';
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-BCQFMAGM.js';
4
- import { WorkCommandError, resolveCredentials, getJson } from './chunk-B4U5XI4F.js';
5
- import { sanitizeTerminal } from './chunk-B5Z4VA4Q.js';
3
+ import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-WPGGRTF4.js';
4
+ import { WorkCommandError, resolveCredentials, getJson } from './chunk-YFMVZBLO.js';
5
+ import { sanitizeTerminal } from './chunk-QHYCF36K.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { defaultFetch } from './chunk-VRWZNI6U.js';
7
+ import { defaultFetch } from './chunk-R7BS36HP.js';
8
8
  import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
9
9
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
10
10
  import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
11
- import { parseProofsConfig } from './chunk-MT4XF5OL.js';
12
- import { resolveRepoIdentity } from './chunk-MBPBYMHU.js';
13
- import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, parseJunit, isTestSourcePath } from './chunk-FXVHF6RX.js';
11
+ import { parseProofsConfig } from './chunk-G2CRPYFO.js';
12
+ import { resolveRepoIdentity } from './chunk-E5G6K7C4.js';
13
+ import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, parseJunit, isTestSourcePath } from './chunk-NEXKR5RR.js';
14
14
  import { spawnSync } from 'child_process';
15
15
  import { createHash } from 'crypto';
16
16
  import { readFileSync, readdirSync, lstatSync, statSync, existsSync } from 'fs';
@@ -129,14 +129,14 @@ function governingDir(cwd) {
129
129
  async function testProofMode(cwd) {
130
130
  const dir = governingDir(cwd);
131
131
  if (dir === void 0) return "any";
132
- const { testProofIn } = await import('./host-checks-QLGWXKOC.js');
132
+ const { testProofIn } = await import('./host-checks-AQTZ7IKK.js');
133
133
  return testProofIn(dir);
134
134
  }
135
135
  async function judgeCheckName(cwd) {
136
136
  const dir = governingDir(cwd);
137
137
  if (dir === void 0) return {};
138
138
  if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
139
- const { checksIn, isJudgeCheck } = await import('./host-checks-QLGWXKOC.js');
139
+ const { checksIn, isJudgeCheck } = await import('./host-checks-AQTZ7IKK.js');
140
140
  const quiet = { line: () => void 0, error: () => void 0 };
141
141
  const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
142
142
  return check === void 0 ? {} : { name: check.name };
@@ -372,7 +372,7 @@ async function runWorkProofs(opts) {
372
372
  async function runWorkProofsCommand(opts) {
373
373
  try {
374
374
  if (opts.record || opts.check) {
375
- const { runWorkProofsRecord } = await import('./work-proofs-record-BE6UMZPH.js');
375
+ const { runWorkProofsRecord } = await import('./work-proofs-record-AY72YKNC.js');
376
376
  const result2 = await runWorkProofsRecord(opts);
377
377
  process.exitCode = result2.exitCode;
378
378
  return;
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
4
- import { detectActiveSession } from './chunk-SBPMDO47.js';
5
- import { autoConnect } from './chunk-XFU37HIM.js';
6
- import { acquireSpoolLockAt } from './chunk-B5Z4VA4Q.js';
4
+ import { detectActiveSession } from './chunk-2HLMGVK6.js';
5
+ import { autoConnect } from './chunk-ECMQNH2H.js';
6
+ import { acquireSpoolLockAt } from './chunk-QHYCF36K.js';
7
7
  import { C } from './chunk-2AM6Z5BP.js';
8
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-VRWZNI6U.js';
8
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-R7BS36HP.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';
12
- import { resolveRepoIdentity } from './chunk-MBPBYMHU.js';
13
- import { StepNameSchema, StepBodySchema } from './chunk-FXVHF6RX.js';
12
+ import { resolveRepoIdentity } from './chunk-E5G6K7C4.js';
13
+ import { StepNameSchema, StepBodySchema } from './chunk-NEXKR5RR.js';
14
14
  import { randomUUID } from 'crypto';
15
15
  import { readFileSync, existsSync, mkdirSync, writeFileSync, renameSync, appendFileSync } from 'fs';
16
16
  import { join, dirname } from 'path';
@@ -2,7 +2,7 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
4
4
  import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
5
- import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-MT4XF5OL.js';
5
+ import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-G2CRPYFO.js';
6
6
  import { execFileSync } from 'child_process';
7
7
  import { lstatSync, existsSync, unlinkSync, readdirSync, rmdirSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
8
8
  import { join, dirname, isAbsolute } from 'path';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-FXVHF6RX.js';
3
+ import { inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-NEXKR5RR.js';
4
4
  import { readFileSync, mkdirSync, statSync, copyFileSync, renameSync, unlinkSync, writeFileSync, readdirSync, realpathSync, watch as watch$1 } from 'fs';
5
5
  import * as sp5 from 'path';
6
6
  import { join, relative, dirname, resolve, sep } from 'path';
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-QFQ2UNZU.js';
4
- import { resolveGatewayCredentials } from './chunk-VRWZNI6U.js';
3
+ import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-AB4GMYIH.js';
4
+ import { resolveGatewayCredentials } from './chunk-R7BS36HP.js';
5
5
  import { readCloudConfig } from './chunk-HWVMRETT.js';
6
6
  import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
8
8
  import { homeFromEnv } from './chunk-352DHUTP.js';
9
- import { resolveRepoIdentity } from './chunk-MBPBYMHU.js';
9
+ import { resolveRepoIdentity } from './chunk-E5G6K7C4.js';
10
10
 
11
11
  createRequire(import.meta.url);
12
12
 
@@ -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-DKDBMMX7.js';
4
- import { inspectService, realInspectProbes } from './chunk-WH2QUYXH.js';
3
+ import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-3VEPVZV4.js';
4
+ import { inspectService, realInspectProbes } from './chunk-7U43B2UB.js';
5
5
  import { realpathSync, readFileSync, readdirSync } from 'fs';
6
6
  import { resolve, dirname, join } from 'path';
7
7