@outerlayer/cli 0.41.0-next.20261118133326 → 0.41.0-next.20261118180636

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 (169) hide show
  1. package/README.md +5 -5
  2. package/dist/{agent-credential-6LB2PVY4.js → agent-credential-WX2KK2NS.js} +3 -3
  3. package/dist/{agent-setup-5PUSFLM4.js → agent-setup-BJRTAU3H.js} +18 -18
  4. package/dist/{agent-subcommand-R5WLS6HM.js → agent-subcommand-EJNVXLNB.js} +2 -2
  5. package/dist/{bridge-C6TEOTHM.js → bridge-A4WAOWUJ.js} +6 -6
  6. package/dist/{build-5HZQZ4E7.js → build-P2KFEV44.js} +13 -13
  7. package/dist/{build-disk-5JU4JJJA.js → build-disk-33QIRSMR.js} +10 -10
  8. package/dist/build-info.json +1 -1
  9. package/dist/{builder-OFGNOCPX.js → builder-HZPOW7TF.js} +9 -9
  10. package/dist/{caller-BORJDGNS.js → caller-ZUQVRQMY.js} +12 -12
  11. package/dist/{check-P23F6WZY.js → check-6SQDJCAE.js} +49 -53
  12. package/dist/{chunk-OOIY2XVC.js → chunk-25SFFAJ5.js} +5 -5
  13. package/dist/{chunk-RQ2R4AER.js → chunk-2QK7L3WV.js} +1 -1
  14. package/dist/{chunk-NU4IZ33U.js → chunk-3ZE7ECW4.js} +1 -1
  15. package/dist/{chunk-ATXH2352.js → chunk-4BWB3LLN.js} +3 -3
  16. package/dist/{chunk-PLUBKVJB.js → chunk-4GXROH35.js} +5 -5
  17. package/dist/{chunk-MZVZ2DVG.js → chunk-4JVYALPL.js} +8 -13
  18. package/dist/{chunk-3ZNQIPRH.js → chunk-56KI5URJ.js} +3 -3
  19. package/dist/{chunk-B34IOYGJ.js → chunk-57F62BIL.js} +3 -3
  20. package/dist/{chunk-X5PALYND.js → chunk-57MLWALQ.js} +5 -5
  21. package/dist/{chunk-HFOQUCL2.js → chunk-5ICUDCXU.js} +3 -3
  22. package/dist/{chunk-Z4RFAK2H.js → chunk-5PRVTL54.js} +1 -1
  23. package/dist/{chunk-TX2YKTQO.js → chunk-67Z7CK3N.js} +1 -1
  24. package/dist/{chunk-X5QQYAQN.js → chunk-6YBI24YT.js} +1 -1
  25. package/dist/{chunk-7Y5JCEG7.js → chunk-77EHIHYW.js} +30 -30
  26. package/dist/{chunk-LKXQH4XD.js → chunk-7A7IAQPB.js} +1 -1
  27. package/dist/{chunk-NOHWR7UT.js → chunk-7BBQ5ZIN.js} +1 -1
  28. package/dist/{chunk-WKSZI4YX.js → chunk-7O37CF6M.js} +9 -9
  29. package/dist/{chunk-MNZWJUSM.js → chunk-A6EGNLXH.js} +3 -3
  30. package/dist/{chunk-6UGP7HU3.js → chunk-AFU6UF34.js} +6 -6
  31. package/dist/{chunk-RLFTRWFC.js → chunk-ASAIS67T.js} +6 -6
  32. package/dist/{chunk-D3RGE3HV.js → chunk-AVYR5USX.js} +1 -1
  33. package/dist/{chunk-AU77QN2U.js → chunk-B3VQVVSS.js} +3 -3
  34. package/dist/{chunk-F6CFIUBC.js → chunk-B5ENFQHF.js} +1 -1
  35. package/dist/{chunk-CX3CFZFU.js → chunk-C2N5PBE3.js} +10 -10
  36. package/dist/{chunk-XC4FEPLQ.js → chunk-CNEOUUPF.js} +8 -25
  37. package/dist/{chunk-UMUZ4GQ2.js → chunk-CQKCNDPP.js} +4 -4
  38. package/dist/{chunk-MTDJSXND.js → chunk-CYQSTT5N.js} +1 -1
  39. package/dist/{chunk-YJB3SFHT.js → chunk-DPS4OOL5.js} +4 -4
  40. package/dist/{chunk-SCA5GQKS.js → chunk-DZOOVU5A.js} +1 -1
  41. package/dist/{chunk-EY4JXIF3.js → chunk-E7HPIXAM.js} +1 -1
  42. package/dist/{chunk-5ODRMXXT.js → chunk-EKJ37Z6K.js} +2 -2
  43. package/dist/{chunk-ROQQR3GU.js → chunk-ENJG3DGI.js} +3 -3
  44. package/dist/{chunk-QYDBYCSO.js → chunk-ETBEMXPC.js} +6 -6
  45. package/dist/{chunk-CS7DIQMJ.js → chunk-EYN62KZW.js} +7 -7
  46. package/dist/{chunk-AMHFFBLI.js → chunk-FMANPQZW.js} +1 -1
  47. package/dist/{chunk-LVGMC65A.js → chunk-GEFZE3GN.js} +4 -4
  48. package/dist/{chunk-RW5M7JY2.js → chunk-GFXXAXPF.js} +1 -1
  49. package/dist/{chunk-7RSV5EHL.js → chunk-GQZWTW3J.js} +3 -3
  50. package/dist/{chunk-2MI2A3RS.js → chunk-GZRW2GPQ.js} +1 -1
  51. package/dist/{chunk-JQV6TO4U.js → chunk-IBWK2WBX.js} +5 -5
  52. package/dist/{chunk-J5H6WR2A.js → chunk-IEVG36GC.js} +1 -1
  53. package/dist/{chunk-FWDXZBVV.js → chunk-K2AHZ5CL.js} +8 -8
  54. package/dist/{chunk-VBFAMLTB.js → chunk-K5GJMMKP.js} +1 -1
  55. package/dist/{chunk-CJDVDTA7.js → chunk-KRYJAO4X.js} +4 -4
  56. package/dist/{chunk-CDDEIMOJ.js → chunk-KWGH7KQW.js} +2 -2
  57. package/dist/{chunk-MJQPWEV3.js → chunk-MI3YC7JL.js} +3 -3
  58. package/dist/{chunk-SKBISHLG.js → chunk-MYDYQUJD.js} +2 -2
  59. package/dist/{chunk-W34A7KQG.js → chunk-NRR4YLHI.js} +1 -1
  60. package/dist/{chunk-NXJJTGRJ.js → chunk-NXYTICCS.js} +1 -1
  61. package/dist/{chunk-ZL2JW7WO.js → chunk-OA6KYILO.js} +3 -3
  62. package/dist/{chunk-XNKPRBCH.js → chunk-OTZ6WU4G.js} +4 -4
  63. package/dist/{chunk-OZNR42RD.js → chunk-OWBSELTR.js} +7 -7
  64. package/dist/{chunk-PTBEQA3N.js → chunk-PIIVGKE6.js} +1 -1
  65. package/dist/{chunk-SYH4PJXP.js → chunk-POI3MX4Q.js} +3 -3
  66. package/dist/{chunk-QZPY2RXY.js → chunk-QBMBUXID.js} +3 -3
  67. package/dist/{chunk-N3BYRIUK.js → chunk-QZFQ6EWP.js} +3 -3
  68. package/dist/{chunk-IBQZUWTL.js → chunk-RFBEF4AF.js} +1 -1
  69. package/dist/{chunk-ETE2OZTJ.js → chunk-S3VUP7LF.js} +2 -2
  70. package/dist/{chunk-BYP3WBEK.js → chunk-TH7J35IU.js} +9 -15
  71. package/dist/{chunk-6I3MSNFZ.js → chunk-TRZOAT7E.js} +4 -4
  72. package/dist/{chunk-POADOTEW.js → chunk-U5JYTRVM.js} +1 -1
  73. package/dist/{chunk-E75O4U2I.js → chunk-V3ZIIURQ.js} +54 -129
  74. package/dist/{chunk-FYFCGONI.js → chunk-V4XKNPZK.js} +15 -15
  75. package/dist/{chunk-RATMFIJV.js → chunk-VKN7UJOB.js} +4 -4
  76. package/dist/{chunk-IDTAWA7V.js → chunk-WHXF2MLU.js} +1 -1
  77. package/dist/{chunk-5ARFZE2G.js → chunk-XETFYRKD.js} +19 -16
  78. package/dist/{chunk-3SGM2N7J.js → chunk-XGXGS54U.js} +1 -1
  79. package/dist/{chunk-CGUXNCLQ.js → chunk-XLQIA345.js} +4 -4
  80. package/dist/{chunk-MYK6AI42.js → chunk-YOJXGKVA.js} +143 -73
  81. package/dist/{chunk-KPFVA2SI.js → chunk-ZMXG7DQ5.js} +4 -16
  82. package/dist/{chunk-WEDN75TI.js → chunk-ZQHGY6K2.js} +1 -1
  83. package/dist/{claude-launcher-BF6EZD3J.js → claude-launcher-GYSXTCLQ.js} +5 -5
  84. package/dist/{cli-TDXQHCF2.js → cli-XLCRAUYM.js} +166 -168
  85. package/dist/{command-YDTUAZUZ.js → command-VGRXU5C5.js} +47 -51
  86. package/dist/{config-HVJJFKV7.js → config-Y4PCLHUG.js} +11 -11
  87. package/dist/{connect-cmd-PNPKCNOT.js → connect-cmd-KSYPISM4.js} +10 -10
  88. package/dist/{container-start-M6A347Y5.js → container-start-66VMEOP4.js} +43 -47
  89. package/dist/{context-cleanup-OZXSR3DS.js → context-cleanup-2ECZ2FXE.js} +2 -2
  90. package/dist/{context-show-cmd-G7A2UHEM.js → context-show-cmd-HDLZOYIT.js} +11 -11
  91. package/dist/{control-plane-launch-JLQNFYYQ.js → control-plane-launch-RPNZG5V7.js} +13 -13
  92. package/dist/{demo-record-cmd-JSLTJWZV.js → demo-record-cmd-73DCM2IU.js} +7 -7
  93. package/dist/{demo-voice-cmd-UGUSIJWV.js → demo-voice-cmd-J6IFHEXN.js} +17 -17
  94. package/dist/{docker-QTNF3YGO.js → docker-RZTRIYF7.js} +9 -9
  95. package/dist/{doctor-ZPXVE46E.js → doctor-KWSSVXVZ.js} +45 -49
  96. package/dist/{emit-artifact-cmd-BK6B64L7.js → emit-artifact-cmd-AEE47IZC.js} +16 -16
  97. package/dist/{emit-cmd-ZTICDJW3.js → emit-cmd-Z3IOKPWL.js} +5 -5
  98. package/dist/{emit-criteria-cmd-2CNVXEWX.js → emit-criteria-cmd-TOO4DNEF.js} +13 -13
  99. package/dist/{emit-demo-cmd-4XJAXL2E.js → emit-demo-cmd-7C6ARFCK.js} +17 -17
  100. package/dist/{emit-finding-cmd-2AZRE7UI.js → emit-finding-cmd-XYNID6R4.js} +13 -13
  101. package/dist/{emit-step-cmd-54Z7FKNL.js → emit-step-cmd-JAUW5Y2S.js} +13 -13
  102. package/dist/{exec-client-EOUGSX2G.js → exec-client-TNJPPDLD.js} +7 -7
  103. package/dist/{find-unit-TFQHEPEJ.js → find-unit-J7MA2PRR.js} +12 -12
  104. package/dist/{findings-cmd-XEBPAELT.js → findings-cmd-VMGISGEN.js} +13 -13
  105. package/dist/{fleet-readiness-LZ2DHKTV.js → fleet-readiness-6WFZ6DSU.js} +12 -12
  106. package/dist/{governing-source-J2JBGYEL.js → governing-source-66AXUDVZ.js} +18 -18
  107. package/dist/{guest-init-TXNMQKI4.js → guest-init-QY6VTT2A.js} +8 -8
  108. package/dist/{hook-fast-OMRT3KDA.js → hook-fast-PUFMMGLY.js} +1 -1
  109. package/dist/{hook-install-FRK3VKWV.js → hook-install-LCTLE72U.js} +2 -2
  110. package/dist/host-checks-VGC5VOC4.js +79 -0
  111. package/dist/{pending-DORA7JYQ.js → host-key-N65ZDZTS.js} +7 -7
  112. package/dist/{image-tag-QIR5NFE6.js → image-tag-UI33PH7Y.js} +7 -7
  113. package/dist/index.js +4 -4
  114. package/dist/{init-J4S65OAZ.js → init-EMZZR25C.js} +41 -45
  115. package/dist/{init-I2AWF66M.js → init-K5HU4I27.js} +41 -45
  116. package/dist/{init-agent-AVG5KJ5S.js → init-agent-YYZBWA2D.js} +41 -45
  117. package/dist/{init-cmd-32J3RTIV.js → init-cmd-RNJ2WXBW.js} +24 -25
  118. package/dist/{init-update-6MORKWIX.js → init-update-ZBCOQJEX.js} +22 -22
  119. package/dist/{install-cmd-ZTOXZUYZ.js → install-cmd-FVYEVXPY.js} +14 -14
  120. package/dist/{launch-agent-6SOYTFN3.js → launch-agent-H5XWIVIT.js} +14 -14
  121. package/dist/{layout-KXYCAXFE.js → layout-BQFWBO4C.js} +2 -2
  122. package/dist/{logs-BAGVRH6O.js → logs-EVHVINVW.js} +6 -6
  123. package/dist/{loop-7222NF5Z.js → loop-K7P5X2XL.js} +49 -53
  124. package/dist/machine-HT2XQNRV.js +79 -0
  125. package/dist/{machine-skills-P4E7ZHHE.js → machine-skills-3RLQEKKU.js} +2 -2
  126. package/dist/{mcp-install-cmd-B2PYJST7.js → mcp-install-cmd-R6X5IIE5.js} +2 -2
  127. package/dist/{mcp-serve-cmd-NODAY6N7.js → mcp-serve-cmd-MWBSZUXE.js} +8 -8
  128. package/dist/{paths-E7MMZLIR.js → paths-2NB6OM44.js} +6 -6
  129. package/dist/{host-key-XGECHBJU.js → pending-PIZMCVVK.js} +7 -7
  130. package/dist/{pidfile-OTTUMCR5.js → pidfile-J774ZYPM.js} +7 -7
  131. package/dist/{record-FQ5Y4QXN.js → record-FQ2LFBZH.js} +7 -7
  132. package/dist/{relay-X5KHTSMC.js → relay-CC2QEO3V.js} +4 -4
  133. package/dist/{relay-protocol-WRHSJK7X.js → relay-protocol-UOZ4YSAU.js} +4 -4
  134. package/dist/{run-cmd-FQTEMGGF.js → run-cmd-ALE43QBT.js} +13 -13
  135. package/dist/{runner-agents-YA6Z3WAU.js → runner-agents-YGVCO7DM.js} +2 -2
  136. package/dist/{runner-env-YFKTTX6Z.js → runner-env-UIHWITLB.js} +13 -13
  137. package/dist/{runner-identity-34YUL365.js → runner-identity-JA3ZAJIA.js} +9 -9
  138. package/dist/{runner-key-DZFIC5TA.js → runner-key-QRBQNT3X.js} +41 -45
  139. package/dist/{session-sender-UMDVOJYH.js → session-sender-4OQFHLTF.js} +16 -16
  140. package/dist/{setup-cmd-2LYTDAO4.js → setup-cmd-VFKTGD52.js} +12 -12
  141. package/dist/{setup-wiring-WOG3GVJV.js → setup-wiring-I6TKPHQB.js} +51 -52
  142. package/dist/{spec-cmd-QTTLZHHK.js → spec-cmd-B6FJM5QA.js} +14 -14
  143. package/dist/{starter-pack-YBK7UTHI.js → starter-pack-5VWYQJOQ.js} +3 -3
  144. package/dist/{state-ITAPHJA5.js → state-JUIT5A5P.js} +7 -7
  145. package/dist/{status-RR57VBDY.js → status-J3MRIS6R.js} +41 -45
  146. package/dist/{sync-cmd-HSCMD5VV.js → sync-cmd-SLYQKTQX.js} +15 -15
  147. package/dist/update-steps-2TFEINVW.js +80 -0
  148. package/dist/{watch-VMHSVFQD.js → watch-3IYP5CZS.js} +15 -15
  149. package/dist/{work-claim-cmd-IVP3X776.js → work-claim-cmd-XKFTIMQR.js} +19 -19
  150. package/dist/{work-cmd-JSYWV6EZ.js → work-cmd-VPMC4IQS.js} +13 -13
  151. package/dist/{work-comment-cmd-NZH7KHPA.js → work-comment-cmd-6WFTILMS.js} +15 -15
  152. package/dist/{work-demo-cmd-IY32FWJJ.js → work-demo-cmd-NTZOOABD.js} +13 -13
  153. package/dist/{work-logs-cmd-4S4SNOGM.js → work-logs-cmd-SE2X5ONJ.js} +13 -13
  154. package/dist/{work-mock-cmd-ZJLS23OP.js → work-mock-cmd-KLK5VW4K.js} +13 -13
  155. package/dist/{work-needs-attention-cmd-FYWFQBPP.js → work-needs-attention-cmd-E7TSQW3T.js} +13 -13
  156. package/dist/{work-no-change-cmd-JMO4NWMJ.js → work-no-change-cmd-TGVI5G4O.js} +13 -13
  157. package/dist/{work-open-pr-cmd-FDMFZCWQ.js → work-open-pr-cmd-52EOINTE.js} +14 -14
  158. package/dist/{work-pr-cmd-YWFH2IXD.js → work-pr-cmd-G7IYPYKA.js} +13 -13
  159. package/dist/{work-proofs-cmd-IYQIT77X.js → work-proofs-cmd-SMTOIG35.js} +15 -15
  160. package/dist/{work-proofs-record-4VPFC6R6.js → work-proofs-record-L5QMD4HB.js} +22 -22
  161. package/dist/{work-stop-cmd-JX63CEGC.js → work-stop-cmd-WS6XWVZ5.js} +13 -13
  162. package/package.json +1 -1
  163. package/skill-pack/maintained/outerlayer-build/references/agent-briefs.md +1 -2
  164. package/skill-pack/maintained/outerlayer-build/references/evidence.md +3 -3
  165. package/skill-pack/maintained/outerlayer-build/references/release.md +2 -2
  166. package/skill-pack/shipped.json +0 -4
  167. package/dist/host-checks-SLET5FMA.js +0 -83
  168. package/dist/machine-ENBKFB2P.js +0 -83
  169. package/dist/update-steps-524DMSWB.js +0 -84
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { readNewestDemo } from './chunk-ER6KQCVJ.js';
4
- import { runEmitArtifact } from './chunk-LVGMC65A.js';
4
+ import { runEmitArtifact } from './chunk-GEFZE3GN.js';
5
5
  import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
6
- import { detectActiveSession } from './chunk-3SGM2N7J.js';
7
- import { autoConnect } from './chunk-5ODRMXXT.js';
6
+ import { detectActiveSession } from './chunk-XGXGS54U.js';
7
+ import { autoConnect } from './chunk-EKJ37Z6K.js';
8
8
  import { C } from './chunk-2AM6Z5BP.js';
9
- import { defaultFetch, resolveGatewayCredentials } from './chunk-EY4JXIF3.js';
9
+ import { defaultFetch, resolveGatewayCredentials } from './chunk-E7HPIXAM.js';
10
10
  import { launchedItemForSession } from './chunk-LGJ56FCM.js';
11
- import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-AMHFFBLI.js';
11
+ import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-FMANPQZW.js';
12
12
  import { homeFromEnv } from './chunk-352DHUTP.js';
13
13
  import { resolveRepoIdentity } from './chunk-2IDR4YTQ.js';
14
14
  import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-GBQRVYYE.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-E75O4U2I.js';
3
+ import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-V3ZIIURQ.js';
4
4
  import { LEGACY_AGENT } from './chunk-7FAKHR6W.js';
5
5
  import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
6
6
  import { relative, sep, join, posix } from 'path';
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { newTokenRetry } from './chunk-FJGYU2EK.js';
4
- import { WorkCommandError, postJson } from './chunk-RLFTRWFC.js';
5
- import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-OOIY2XVC.js';
6
- import { buildRefusalReason } from './chunk-POADOTEW.js';
7
- import { signingFetchFor } from './chunk-EY4JXIF3.js';
8
- import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-TX2YKTQO.js';
9
- import { signerFor } from './chunk-LKXQH4XD.js';
10
- import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-Z4RFAK2H.js';
11
- import { SandboxError, describeSandboxError } from './chunk-7RSV5EHL.js';
4
+ import { WorkCommandError, postJson } from './chunk-ASAIS67T.js';
5
+ import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-25SFFAJ5.js';
6
+ import { buildRefusalReason } from './chunk-U5JYTRVM.js';
7
+ import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-67Z7CK3N.js';
8
+ import { signingFetchFor } from './chunk-E7HPIXAM.js';
9
+ import { signerFor } from './chunk-7A7IAQPB.js';
10
+ import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-5PRVTL54.js';
11
+ import { SandboxError, describeSandboxError } from './chunk-GQZWTW3J.js';
12
12
  import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-LIPSGE6C.js';
13
13
  import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
14
14
  import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
@@ -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-E75O4U2I.js';
4
+ import { legacyAgent, defaultAgents, HookTextError } from './chunk-V3ZIIURQ.js';
5
5
 
6
6
  createRequire(import.meta.url);
7
7
 
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-IBQZUWTL.js';
4
- import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-MTDJSXND.js';
3
+ import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-RFBEF4AF.js';
4
+ import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-CYQSTT5N.js';
5
5
  import { compareVersions } from './chunk-TQMI335S.js';
6
- import { defaultRunnerConfigPath } from './chunk-6I3MSNFZ.js';
7
- import { runnerDir, RUNNER_DIR_MODE } from './chunk-Z4RFAK2H.js';
6
+ import { defaultRunnerConfigPath } from './chunk-TRZOAT7E.js';
7
+ import { runnerDir, RUNNER_DIR_MODE } from './chunk-5PRVTL54.js';
8
8
  import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
9
9
  import { dirname, sep, join, resolve } from 'path';
10
10
  import { spawnSync } from 'child_process';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { credentialEnvPath, runnerAgents, credentialNames, credentialForms, credentialAgent, strippedVariables, orList, credentialShapes, managedOfferedAgents, listedAgents, agentsNeedingCredential, judgeAgent, forwardedVariables } from './chunk-AMHFFBLI.js';
4
- import { defaultAgents } from './chunk-E75O4U2I.js';
3
+ import { credentialEnvPath, runnerAgents, credentialNames, credentialForms, credentialAgent, strippedVariables, orList, credentialShapes, managedOfferedAgents, listedAgents, agentsNeedingCredential, judgeAgent, forwardedVariables } from './chunk-FMANPQZW.js';
4
+ import { defaultAgents } from './chunk-V3ZIIURQ.js';
5
5
  import { statSync, readFileSync } from 'fs';
6
6
  import { join, basename } from 'path';
7
7
  import { spawn, spawnSync } from 'child_process';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { linkedBranches, setupCommitPaths, commitCommandsFor, ownerAndName } from './chunk-WKSZI4YX.js';
4
- import { resolveGatewayCredentials } from './chunk-EY4JXIF3.js';
3
+ import { linkedBranches, setupCommitPaths, commitCommandsFor, ownerAndName } from './chunk-7O37CF6M.js';
4
+ import { resolveGatewayCredentials } from './chunk-E7HPIXAM.js';
5
5
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
6
6
  import { execFileSync } from 'child_process';
7
7
  import { existsSync, mkdirSync, writeFileSync } from 'fs';
@@ -12,7 +12,7 @@ var SETUP_BRANCH = "outerlayer-setup";
12
12
  var SETUP_MARKER = ".outerlayer/config.json";
13
13
  var GIT_TIMEOUT_MS = 6e4;
14
14
  var PR_TITLE = "Add OuterLayer setup";
15
- var PR_BODY = "Adds the OuterLayer setup that `outerlayer setup` wrote: the policy in `.outerlayer/`, the agent instructions and skills, and the MCP server entries. Judges run on a pull request only once the policy is on the branch it targets.";
15
+ var PR_BODY = "Adds the OuterLayer setup that `outerlayer setup` wrote: the config in `.outerlayer/`, the agent instructions and skills, and the MCP server entries. Judges run on a pull request only once the setup is on the branch it targets.";
16
16
  function run(command, args, cwd) {
17
17
  try {
18
18
  const stdout = execFileSync(command, args, { cwd, encoding: "utf8", stdio: ["ignore", "pipe", "pipe"], timeout: GIT_TIMEOUT_MS });
@@ -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-CS7DIQMJ.js';
4
- import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-Z4RFAK2H.js';
3
+ import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-EYN62KZW.js';
4
+ import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-5PRVTL54.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,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-Z4RFAK2H.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-5PRVTL54.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
3
  import { isVersion, compareVersions } from './chunk-TQMI335S.js';
4
- import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-Z4RFAK2H.js';
4
+ import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-5PRVTL54.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 { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-PTBEQA3N.js';
3
+ import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-PIIVGKE6.js';
4
4
  import { startTimeOf } from './chunk-JBJTC3UU.js';
5
- import { EXEC_PORT } from './chunk-SYH4PJXP.js';
6
- import { RELAY_PORT } from './chunk-7RSV5EHL.js';
5
+ import { EXEC_PORT } from './chunk-POI3MX4Q.js';
6
+ import { RELAY_PORT } from './chunk-GQZWTW3J.js';
7
7
  import { spawn, spawnSync } from 'child_process';
8
8
  import { symlinkSync, lstatSync, writeFileSync, chmodSync, mkdirSync, existsSync } from 'fs';
9
9
 
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveCredentials, postBytes, RateLimitedError, postJson, getJson, getBytes } from './chunk-RLFTRWFC.js';
4
- import { detectActiveSession } from './chunk-3SGM2N7J.js';
3
+ import { resolveCredentials, postBytes, RateLimitedError, postJson, getJson, getBytes } from './chunk-ASAIS67T.js';
4
+ import { detectActiveSession } from './chunk-XGXGS54U.js';
5
5
  import { sanitizeTerminal } from './chunk-V3NMSDOC.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { defaultFetch } from './chunk-EY4JXIF3.js';
8
- import { logHookError } from './chunk-MNZWJUSM.js';
7
+ import { defaultFetch } from './chunk-E7HPIXAM.js';
8
+ import { logHookError } from './chunk-A6EGNLXH.js';
9
9
  import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
10
10
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
11
11
  import { homeFromEnv } from './chunk-352DHUTP.js';
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { scrubReason, stripTerminalControls } from './chunk-MYK6AI42.js';
4
- import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-QYDBYCSO.js';
5
- import { RunnerAlreadyRunningError, readPidFile } from './chunk-W34A7KQG.js';
3
+ import { scrubReason, stripTerminalControls } from './chunk-YOJXGKVA.js';
4
+ import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-ETBEMXPC.js';
5
+ import { RunnerAlreadyRunningError, readPidFile } from './chunk-NRR4YLHI.js';
6
6
  import { isSameProcess } from './chunk-JBJTC3UU.js';
7
- import { isSignatureRefusal, postJson } from './chunk-RLFTRWFC.js';
8
- import { keyRunnerFactory } from './chunk-6I3MSNFZ.js';
9
- import { signerFor } from './chunk-LKXQH4XD.js';
10
- import { pidFilePath } from './chunk-Z4RFAK2H.js';
7
+ import { isSignatureRefusal, postJson } from './chunk-ASAIS67T.js';
8
+ import { keyRunnerFactory } from './chunk-TRZOAT7E.js';
9
+ import { signerFor } from './chunk-7A7IAQPB.js';
10
+ import { pidFilePath } from './chunk-5PRVTL54.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 { RELAY_PORT, BUILD_HOME } from './chunk-7RSV5EHL.js';
3
+ import { RELAY_PORT, BUILD_HOME } from './chunk-GQZWTW3J.js';
4
4
  import { createServer, connect } from 'net';
5
5
 
6
6
  createRequire(import.meta.url);
@@ -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-7RSV5EHL.js';
4
- import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-AU77QN2U.js';
5
- import { defaultAgents } from './chunk-E75O4U2I.js';
3
+ import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-GQZWTW3J.js';
4
+ import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-B3VQVVSS.js';
5
+ import { defaultAgents } from './chunk-V3ZIIURQ.js';
6
6
  import { PROVIDERS } from './chunk-7FAKHR6W.js';
7
7
  import { symlinkSync, unlinkSync } from 'fs';
8
8
  import { join } from 'path';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { stripTerminalControls } from './chunk-MYK6AI42.js';
4
- import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-NXJJTGRJ.js';
3
+ import { stripTerminalControls } from './chunk-YOJXGKVA.js';
4
+ import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-NXYTICCS.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-QTNF3YGO.js')).spawnRun;
58
+ const run = deps.run ?? (await import('./docker-RZTRIYF7.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 { LiveUploader } from './chunk-6UGP7HU3.js';
4
- import { spoolDir } from './chunk-MNZWJUSM.js';
3
+ import { LiveUploader } from './chunk-AFU6UF34.js';
4
+ import { spoolDir } from './chunk-A6EGNLXH.js';
5
5
  import { parseRunEnv, parseWorkItemEnv } from './chunk-LGJ56FCM.js';
6
- import { sessionFolderIn, legacyAgent } from './chunk-E75O4U2I.js';
6
+ import { sessionFolderIn, legacyAgent } from './chunk-V3ZIIURQ.js';
7
7
  import { homeFromEnv } from './chunk-352DHUTP.js';
8
8
  import { CaptureDaemon } from './chunk-2IDR4YTQ.js';
9
9
  import { mkdirSync, writeFileSync, rmSync } from 'fs';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { currentLink } from './chunk-MTDJSXND.js';
3
+ import { currentLink } from './chunk-CYQSTT5N.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,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { keyRunnerFactory, RunnerConfigError } from './chunk-6I3MSNFZ.js';
4
- import { orgHomeDir } from './chunk-Z4RFAK2H.js';
3
+ import { keyRunnerFactory, RunnerConfigError } from './chunk-TRZOAT7E.js';
4
+ import { orgHomeDir } from './chunk-5PRVTL54.js';
5
5
 
6
6
  createRequire(import.meta.url);
7
7
 
@@ -1,19 +1,19 @@
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-RQ2R4AER.js';
4
- import { WorkCommandError, resolveCredentials, getJson } from './chunk-RLFTRWFC.js';
3
+ import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-2QK7L3WV.js';
4
+ import { WorkCommandError, resolveCredentials, getJson } from './chunk-ASAIS67T.js';
5
5
  import { sanitizeTerminal } from './chunk-V3NMSDOC.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { defaultFetch } from './chunk-EY4JXIF3.js';
7
+ import { defaultFetch } from './chunk-E7HPIXAM.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-E75O4U2I.js';
11
+ import { parseProofsConfig } from './chunk-V3ZIIURQ.js';
12
12
  import { resolveRepoIdentity } from './chunk-2IDR4YTQ.js';
13
13
  import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, parseJunit, isTestSourcePath } from './chunk-GBQRVYYE.js';
14
14
  import { spawnSync } from 'child_process';
15
15
  import { createHash } from 'crypto';
16
- import { readFileSync, readdirSync, lstatSync, statSync, existsSync } from 'fs';
16
+ import { readFileSync, readdirSync, lstatSync, existsSync, statSync } from 'fs';
17
17
  import { relative, join, resolve, dirname } from 'path';
18
18
 
19
19
  createRequire(import.meta.url);
@@ -126,17 +126,11 @@ function governingDir(cwd) {
126
126
  if (places === void 0) return void 0;
127
127
  return readDeliveryRecord(places.common)?.dir ?? places.root;
128
128
  }
129
- async function testProofMode(cwd) {
130
- const dir = governingDir(cwd);
131
- if (dir === void 0) return "any";
132
- const { testProofIn } = await import('./host-checks-SLET5FMA.js');
133
- return testProofIn(dir);
134
- }
135
129
  async function judgeCheckName(cwd) {
136
130
  const dir = governingDir(cwd);
137
131
  if (dir === void 0) return {};
138
132
  if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
139
- const { checksIn } = await import('./host-checks-SLET5FMA.js');
133
+ const { checksIn } = await import('./host-checks-VGC5VOC4.js');
140
134
  const quiet = { line: () => void 0, error: () => void 0 };
141
135
  const check = checksIn(dir, quiet, "").checks.find((c) => c.judge.subjects === "criteria");
142
136
  return check === void 0 ? {} : { name: check.name };
@@ -350,7 +344,7 @@ async function runWorkProofs(opts) {
350
344
  throw new WorkCommandError("cannot read the checkout's HEAD. Run this inside the git checkout, or pass the head explicitly.");
351
345
  }
352
346
  const cwd = opts.cwd ?? process.cwd();
353
- const tests = body.criteria?.testProofsReported === true && await testProofMode(cwd) === "any";
347
+ const tests = body.criteria?.testProofsReported === true;
354
348
  const declared = classifyProofs(body, checkoutHead, { tests });
355
349
  const unproven = await findUnproven({ item: body, cwd, head: checkoutHead });
356
350
  const entries = [...declared, ...unproven.entries];
@@ -372,7 +366,7 @@ async function runWorkProofs(opts) {
372
366
  async function runWorkProofsCommand(opts) {
373
367
  try {
374
368
  if (opts.record || opts.check) {
375
- const { runWorkProofsRecord } = await import('./work-proofs-record-4VPFC6R6.js');
369
+ const { runWorkProofsRecord } = await import('./work-proofs-record-L5QMD4HB.js');
376
370
  const result2 = await runWorkProofsRecord(opts);
377
371
  process.exitCode = result2.exitCode;
378
372
  return;
@@ -390,4 +384,4 @@ async function runWorkProofsCommand(opts) {
390
384
  }
391
385
  }
392
386
 
393
- export { classifyProofs, classifyProofsAt, freshXmlFiles, joinResults, kindProblem, otherPullRequestHeads, ownPullRequest, proofsCommentBody, proofsCommentId, renderProofRow, resolveProofsItem, runWorkProofs, runWorkProofsCommand, testFilesOf, testProofMode, testSelectors };
387
+ export { classifyProofs, classifyProofsAt, freshXmlFiles, joinResults, kindProblem, otherPullRequestHeads, ownPullRequest, proofsCommentBody, proofsCommentId, renderProofRow, resolveProofsItem, runWorkProofs, runWorkProofsCommand, testFilesOf, testSelectors };
@@ -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-SKBISHLG.js';
4
- import { parseSize } from './chunk-CS7DIQMJ.js';
5
- import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-7RSV5EHL.js';
6
- import { builderDiskPinned, agentIdOfCommand, defaultCommandFor, headlessAgentIds } from './chunk-AMHFFBLI.js';
3
+ import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-MYDYQUJD.js';
4
+ import { parseSize } from './chunk-EYN62KZW.js';
5
+ import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-GQZWTW3J.js';
6
+ import { builderDiskPinned, agentIdOfCommand, defaultCommandFor, headlessAgentIds } from './chunk-FMANPQZW.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,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-E75O4U2I.js';
3
+ import { parseOuterlayerConfig, targetIds, defaultAgents } from './chunk-V3ZIIURQ.js';
4
4
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7FAKHR6W.js';
5
5
  import { readFileSync } from 'fs';
6
6
  import { join } from 'path';
@@ -7722,7 +7722,6 @@ function normalizeRepoName(repo) {
7722
7722
  return repo.trim().toLowerCase();
7723
7723
  }
7724
7724
  var CONTEXT_PIN_FILENAME = ".outerlayer-pin.json";
7725
- var EXTENDS_PROBLEM = '"extends" is not a policy key \u2014 every judge is a file in .outerlayer/judges/. Delete the extends line';
7726
7725
  var SLUG_PATTERN2 = /^[a-z][a-z0-9._-]{0,63}$/;
7727
7726
  var CONTROL_CHARS = /\p{Cc}/u;
7728
7727
  function inlineText(raw, max = 80) {
@@ -7738,110 +7737,6 @@ var REPOSITORY_NAME = /^[\w.-]+\/[\w.-]+$/;
7738
7737
  function isRecord(value) {
7739
7738
  return value !== null && typeof value === "object" && !Array.isArray(value);
7740
7739
  }
7741
- function parseLevel(value) {
7742
- return value === "warn" || value === "info" || value === "off" ? value : null;
7743
- }
7744
- function isRepositoryPath(value) {
7745
- return typeof value === "string" && value.length > 0 && value.length <= MAX_GLOB_LENGTH && !CONTROL_CHARS.test(value) && !value.startsWith("/") && !value.split("/").includes("..");
7746
- }
7747
- function parseMergeGate(value) {
7748
- return value === "none" || value === "on-flag" ? value : null;
7749
- }
7750
- function parseReview(value) {
7751
- return value === "required" || value === "optional" ? value : null;
7752
- }
7753
- function parsePolicyFile(file) {
7754
- const problems = [];
7755
- const fail = (problem) => {
7756
- problems.push({ file: file.path, problem });
7757
- return { mergeGate: null, review: null, testProof: null, criteriaMissing: null, criteriaJudge: null, criteriaJudgeBrief: null, problems };
7758
- };
7759
- let root;
7760
- try {
7761
- root = (0, import_yaml.parse)(file.content);
7762
- } catch (error) {
7763
- return fail(`not valid YAML \u2014 ${error instanceof Error ? error.message : String(error)}`);
7764
- }
7765
- if (root === null) root = {};
7766
- if (!isRecord(root)) return fail("must be a YAML mapping");
7767
- if (root["extends"] !== void 0) return fail(EXTENDS_PROBLEM);
7768
- for (const key of Object.keys(root)) {
7769
- if (key !== "merge_gate" && key !== "review" && key !== "build" && key !== "criteria") {
7770
- return fail(`unknown key "${inlineText(key)}"`);
7771
- }
7772
- }
7773
- if (root["build"] !== void 0) {
7774
- const build = root["build"];
7775
- if (!isRecord(build)) return fail("build must be a mapping");
7776
- for (const key of Object.keys(build)) {
7777
- if (key !== "workflows") return fail(`unknown key "build.${inlineText(key)}"`);
7778
- }
7779
- }
7780
- let testProof = null;
7781
- let criteriaMissing = null;
7782
- let criteriaJudge = null;
7783
- let criteriaJudgeBrief = null;
7784
- if (root["criteria"] !== void 0) {
7785
- const criteria = root["criteria"];
7786
- if (!isRecord(criteria)) return fail("criteria must be a mapping");
7787
- for (const key of Object.keys(criteria)) {
7788
- if (key !== "replace" && key !== "test_proof" && key !== "missing" && key !== "judge" && key !== "judge_brief") {
7789
- return fail(`unknown key "criteria.${inlineText(key)}"`);
7790
- }
7791
- }
7792
- const rawTestProof = criteria["test_proof"];
7793
- if (rawTestProof !== void 0) {
7794
- if (rawTestProof !== "any" && rawTestProof !== "ci") {
7795
- return fail(`criteria.test_proof has value "${inlineText(String(rawTestProof))}" \u2014 use any or ci`);
7796
- }
7797
- testProof = rawTestProof;
7798
- }
7799
- const rawMissing = criteria["missing"];
7800
- if (rawMissing !== void 0) {
7801
- const level = parseLevel(rawMissing);
7802
- if (level === null) {
7803
- return fail(`criteria.missing has value "${inlineText(String(rawMissing))}" \u2014 use warn, info, or off`);
7804
- }
7805
- criteriaMissing = level;
7806
- }
7807
- const rawJudge = criteria["judge"];
7808
- if (rawJudge !== void 0) {
7809
- const level = parseLevel(rawJudge);
7810
- if (level === null) {
7811
- return fail(`criteria.judge has value "${inlineText(String(rawJudge))}" \u2014 use warn, info, or off`);
7812
- }
7813
- criteriaJudge = level;
7814
- }
7815
- const rawBrief = criteria["judge_brief"];
7816
- if (rawBrief !== void 0) {
7817
- if (!isRepositoryPath(rawBrief)) {
7818
- return fail(`criteria.judge_brief has value "${inlineText(String(rawBrief))}" \u2014 use a file path from the repository root`);
7819
- }
7820
- criteriaJudgeBrief = rawBrief;
7821
- }
7822
- const replace = criteria["replace"];
7823
- if (replace !== void 0 && replace !== "people" && replace !== "anyone") {
7824
- return fail(`criteria.replace has value "${inlineText(String(replace))}" \u2014 use people or anyone`);
7825
- }
7826
- }
7827
- let mergeGate = null;
7828
- if (root["merge_gate"] !== void 0) {
7829
- mergeGate = parseMergeGate(root["merge_gate"]);
7830
- if (mergeGate === null) {
7831
- return fail(
7832
- `merge_gate has value "${inlineText(String(root["merge_gate"]))}" \u2014 use none or on-flag`
7833
- );
7834
- }
7835
- }
7836
- let review = null;
7837
- if (root["review"] !== void 0) {
7838
- review = parseReview(root["review"]);
7839
- if (review === null) {
7840
- return fail(`review has value "${inlineText(String(root["review"]))}" \u2014 use required or optional`);
7841
- }
7842
- }
7843
- return { mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief, problems };
7844
- }
7845
7740
  function splitJudgeFile(content) {
7846
7741
  const text = content.replace(/^\uFEFF/, "");
7847
7742
  const lines = text.split(/\r?\n/);
@@ -7850,7 +7745,7 @@ function splitJudgeFile(content) {
7850
7745
  if (end === -1) return null;
7851
7746
  return { frontmatter: lines.slice(1, end).join("\n"), body: lines.slice(end + 1).join("\n") };
7852
7747
  }
7853
- var JUDGE_KEYS = /* @__PURE__ */ new Set(["name", "description", "when", "counts", "for_each"]);
7748
+ var JUDGE_KEYS = /* @__PURE__ */ new Set(["name", "description", "when", "required", "for_each"]);
7854
7749
  var JUDGE_FILE_NAME = /([^/]*)\.md$/;
7855
7750
  function parseJudgeFile(file, problems) {
7856
7751
  var _a, _b, _c;
@@ -7901,9 +7796,9 @@ function parseJudgeFile(file, problems) {
7901
7796
  }
7902
7797
  description = trimmedDescription;
7903
7798
  }
7904
- const counts = (_c = root["counts"]) != null ? _c : false;
7905
- if (typeof counts !== "boolean") {
7906
- return fail(`"${id}" has counts "${inlineText(String(counts))}" \u2014 use true or false`);
7799
+ const required = (_c = root["required"]) != null ? _c : false;
7800
+ if (typeof required !== "boolean") {
7801
+ return fail(`"${id}" has required "${inlineText(String(required))}" \u2014 use true or false`);
7907
7802
  }
7908
7803
  const forEach = root["for_each"];
7909
7804
  if (forEach !== void 0 && forEach !== "criterion") {
@@ -7975,7 +7870,7 @@ function parseJudgeFile(file, problems) {
7975
7870
  id,
7976
7871
  name,
7977
7872
  description,
7978
- level: counts ? "warn" : "info",
7873
+ level: required ? "warn" : "info",
7979
7874
  whenPaths,
7980
7875
  whenIssueType,
7981
7876
  whenIssueLabels,
@@ -7983,31 +7878,61 @@ function parseJudgeFile(file, problems) {
7983
7878
  judge: { instructions, subjects: forEach === "criterion" ? "criteria" : "none" }
7984
7879
  };
7985
7880
  }
7986
- function parsePolicy(policyFile, judgeFiles) {
7987
- var _a, _b, _c, _d, _e;
7881
+ function parsePolicy(judgeFiles) {
7988
7882
  const problems = [];
7989
- const policy = policyFile ? parsePolicyFile(policyFile) : {
7990
- mergeGate: null,
7991
- review: null,
7992
- testProof: null,
7993
- criteriaMissing: null,
7994
- criteriaJudge: null,
7995
- criteriaJudgeBrief: null,
7996
- problems: []
7997
- };
7998
- problems.push(...policy.problems);
7999
- const mergeGate = (_a = policy.mergeGate) != null ? _a : "none";
8000
- const review = (_b = policy.review) != null ? _b : "required";
8001
- const testProof = (_c = policy.testProof) != null ? _c : "any";
8002
- const criteriaMissing = (_d = policy.criteriaMissing) != null ? _d : policyFile !== null ? "warn" : "off";
8003
- const criteriaJudge = (_e = policy.criteriaJudge) != null ? _e : "warn";
8004
7883
  const customs = [];
8005
7884
  for (const file of [...judgeFiles].sort((a, b) => a.path < b.path ? -1 : 1)) {
8006
7885
  const def = parseJudgeFile(file, problems);
8007
7886
  if (def !== null) customs.push(def);
8008
7887
  }
8009
7888
  customs.sort((a, b) => a.id < b.id ? -1 : 1);
8010
- return { customs, mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief: policy.criteriaJudgeBrief, problems };
7889
+ return { customs, problems };
7890
+ }
7891
+ function pathGlobToRegExp(glob) {
7892
+ let out = "^";
7893
+ for (let i = 0; i < glob.length; i += 1) {
7894
+ const char = glob[i];
7895
+ if (char === "*") {
7896
+ if (glob[i + 1] === "*") {
7897
+ out += ".*";
7898
+ i += 1;
7899
+ } else {
7900
+ out += "[^/]*";
7901
+ }
7902
+ } else if (char === "?") {
7903
+ out += "[^/]";
7904
+ } else {
7905
+ out += char.replace(/[.+^${}()|[\]\\]/g, "\\$&");
7906
+ }
7907
+ }
7908
+ return new RegExp(`${out}$`);
7909
+ }
7910
+ function anyOf(values, test) {
7911
+ return values === null ? null : values.some(test);
7912
+ }
7913
+ function whenMatches(scope, facts) {
7914
+ const matches = [];
7915
+ if (scope.whenIssueType !== null) {
7916
+ const wanted = scope.whenIssueType.toLowerCase();
7917
+ matches.push({ key: "issue.type", matches: anyOf(facts.issueTypes, (name) => name.toLowerCase() === wanted) });
7918
+ }
7919
+ if (scope.whenIssueLabels !== null) {
7920
+ const wanted = scope.whenIssueLabels;
7921
+ matches.push({ key: "issue.labels", matches: anyOf(facts.issueLabels, (label) => wanted.includes(label)) });
7922
+ }
7923
+ if (scope.whenRepositories !== void 0) {
7924
+ const listed = new Set(scope.whenRepositories.map((name) => name.toLowerCase()));
7925
+ matches.push({ key: "repositories", matches: anyOf(facts.pullRequestRepositories, (name) => listed.has(name.toLowerCase())) });
7926
+ }
7927
+ if (scope.whenPaths !== null) {
7928
+ const patterns = scope.whenPaths.map(pathGlobToRegExp);
7929
+ matches.push({ key: "paths", matches: anyOf(facts.changedPaths, (path) => patterns.some((pattern) => pattern.test(path))) });
7930
+ }
7931
+ return matches;
7932
+ }
7933
+ function keyOutOfScope(matches) {
7934
+ var _a;
7935
+ return (_a = matches.find((match) => match.matches === false)) == null ? void 0 : _a.key;
8011
7936
  }
8012
7937
  var FILES_PLACEHOLDER = "{files}";
8013
7938
  function isRecord2(value) {
@@ -12587,4 +12512,4 @@ function knownTargetsLine(agents = defaultAgents()) {
12587
12512
  return `Known targets: ${targetIds(agents).join(", ")}.`;
12588
12513
  }
12589
12514
 
12590
- 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, generatedHeaderSource, isMaintainedCopy, knownTargetsLine, laptopAgents, legacyAgent, legacySubcommand, loadMachineSkillFiles, loadMaintainedFiles, loadTemplateFiles, maintainedFilesForExistingSkills, namesCore, normalizePath, normalizeRepoName, parseOuterlayerConfig, parsePolicy, parseProofsConfig, resolvePackRoot, restoreSkillPaths, rewriteSkillPaths, sessionFolderIn, skillBases, skillDir, splitRawFile, targetIds, userSkillFolderIn, writeMaintainedFiles };
12515
+ 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, generatedHeaderSource, isMaintainedCopy, keyOutOfScope, knownTargetsLine, laptopAgents, legacyAgent, legacySubcommand, loadMachineSkillFiles, loadMaintainedFiles, loadTemplateFiles, maintainedFilesForExistingSkills, namesCore, normalizePath, normalizeRepoName, parseOuterlayerConfig, parsePolicy, parseProofsConfig, resolvePackRoot, restoreSkillPaths, sessionFolderIn, skillBases, skillDir, splitRawFile, targetIds, userSkillFolderIn, whenMatches, writeMaintainedFiles };