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

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 (170) hide show
  1. package/README.md +5 -5
  2. package/dist/{agent-credential-6LB2PVY4.js → agent-credential-FI5HHMC7.js} +3 -3
  3. package/dist/{agent-setup-5PUSFLM4.js → agent-setup-JK3AB23R.js} +18 -18
  4. package/dist/{agent-subcommand-R5WLS6HM.js → agent-subcommand-KNIUK5XB.js} +2 -2
  5. package/dist/{bridge-C6TEOTHM.js → bridge-3F7637DO.js} +6 -6
  6. package/dist/{build-5HZQZ4E7.js → build-IBK6OWMD.js} +13 -13
  7. package/dist/{build-disk-5JU4JJJA.js → build-disk-UTRYIN6P.js} +10 -10
  8. package/dist/build-info.json +1 -1
  9. package/dist/{builder-OFGNOCPX.js → builder-FVZCFCSU.js} +9 -9
  10. package/dist/{caller-BORJDGNS.js → caller-HSFIM2H5.js} +12 -12
  11. package/dist/{check-P23F6WZY.js → check-OSCHNNLI.js} +49 -53
  12. package/dist/{chunk-5ARFZE2G.js → chunk-2ASWEY7Y.js} +8 -8
  13. package/dist/{chunk-Z4RFAK2H.js → chunk-2F4XVJUN.js} +1 -1
  14. package/dist/{chunk-N3BYRIUK.js → chunk-47X3DZS6.js} +3 -3
  15. package/dist/{chunk-PTBEQA3N.js → chunk-4TD3JKQG.js} +1 -1
  16. package/dist/{chunk-CGUXNCLQ.js → chunk-56YSHV4R.js} +4 -4
  17. package/dist/{chunk-CX3CFZFU.js → chunk-5KDPYRBL.js} +10 -10
  18. package/dist/{chunk-VBFAMLTB.js → chunk-5WDRNYGB.js} +1 -1
  19. package/dist/{chunk-ROQQR3GU.js → chunk-6A4XHKAD.js} +3 -3
  20. package/dist/{chunk-RQ2R4AER.js → chunk-6FDFZ5UO.js} +1 -1
  21. package/dist/{chunk-5ODRMXXT.js → chunk-AA2K5FC6.js} +2 -2
  22. package/dist/{chunk-MJQPWEV3.js → chunk-B22MYHFC.js} +3 -3
  23. package/dist/{chunk-D3RGE3HV.js → chunk-CMMTWO6K.js} +1 -1
  24. package/dist/{chunk-QYDBYCSO.js → chunk-DC4NUJ72.js} +6 -6
  25. package/dist/{chunk-6UGP7HU3.js → chunk-DG3VREJE.js} +6 -6
  26. package/dist/{chunk-SYH4PJXP.js → chunk-E7Z3PFV7.js} +3 -3
  27. package/dist/{chunk-LVGMC65A.js → chunk-EIYTP2AC.js} +4 -4
  28. package/dist/{chunk-PLUBKVJB.js → chunk-FHH5DQ7X.js} +5 -5
  29. package/dist/{chunk-YJB3SFHT.js → chunk-FRVUXVMX.js} +4 -4
  30. package/dist/{chunk-X5PALYND.js → chunk-FSKUJX43.js} +5 -5
  31. package/dist/{chunk-SCA5GQKS.js → chunk-H2IVCCVU.js} +1 -1
  32. package/dist/{chunk-IBQZUWTL.js → chunk-H6GROJCC.js} +1 -1
  33. package/dist/{chunk-AU77QN2U.js → chunk-HTV3VRCB.js} +3 -3
  34. package/dist/{chunk-B34IOYGJ.js → chunk-I2FA3MCH.js} +3 -3
  35. package/dist/{chunk-SKBISHLG.js → chunk-I32JMDTQ.js} +2 -2
  36. package/dist/{chunk-NXJJTGRJ.js → chunk-I3E5D2CQ.js} +1 -1
  37. package/dist/{chunk-JQV6TO4U.js → chunk-J3DZUXHL.js} +5 -5
  38. package/dist/{chunk-7Y5JCEG7.js → chunk-JFLGHA3C.js} +30 -30
  39. package/dist/{chunk-X5QQYAQN.js → chunk-JIFIPELY.js} +1 -1
  40. package/dist/{chunk-ATXH2352.js → chunk-JMM74T6A.js} +3 -3
  41. package/dist/{chunk-MZVZ2DVG.js → chunk-JY3W3AHK.js} +8 -13
  42. package/dist/{chunk-CDDEIMOJ.js → chunk-K2QAUWV4.js} +2 -2
  43. package/dist/{chunk-OZNR42RD.js → chunk-KUWZ7FB4.js} +7 -7
  44. package/dist/{chunk-XNKPRBCH.js → chunk-KXRFE6WZ.js} +4 -4
  45. package/dist/{chunk-MYK6AI42.js → chunk-LAZ35DAO.js} +32 -71
  46. package/dist/{chunk-BYP3WBEK.js → chunk-LDCVGTUS.js} +9 -15
  47. package/dist/{chunk-2MI2A3RS.js → chunk-LM34XIUW.js} +1 -1
  48. package/dist/{chunk-F6CFIUBC.js → chunk-LYPTSVAU.js} +1 -1
  49. package/dist/{chunk-WEDN75TI.js → chunk-MCE7JACC.js} +1 -1
  50. package/dist/{chunk-ZL2JW7WO.js → chunk-NA3IKIDG.js} +3 -3
  51. package/dist/{chunk-RLFTRWFC.js → chunk-NAH7LEMX.js} +6 -6
  52. package/dist/{chunk-ETE2OZTJ.js → chunk-NAPAXLIB.js} +2 -2
  53. package/dist/{chunk-MNZWJUSM.js → chunk-NYVDMD32.js} +3 -3
  54. package/dist/{chunk-CS7DIQMJ.js → chunk-OADERJBS.js} +7 -7
  55. package/dist/{chunk-3SGM2N7J.js → chunk-OJZ4TIKW.js} +1 -1
  56. package/dist/{chunk-NU4IZ33U.js → chunk-OU7GQC44.js} +1 -1
  57. package/dist/{chunk-UMUZ4GQ2.js → chunk-PCBZGSPX.js} +4 -4
  58. package/dist/{chunk-HFOQUCL2.js → chunk-PMYP5VMV.js} +3 -3
  59. package/dist/{chunk-W34A7KQG.js → chunk-PPWT33XU.js} +1 -1
  60. package/dist/{chunk-QZPY2RXY.js → chunk-PUO2BKUZ.js} +3 -3
  61. package/dist/{chunk-NOHWR7UT.js → chunk-Q4IUKGIS.js} +1 -1
  62. package/dist/{chunk-RW5M7JY2.js → chunk-RG4PHZ67.js} +1 -1
  63. package/dist/{chunk-MTDJSXND.js → chunk-RURRQTYH.js} +1 -1
  64. package/dist/{chunk-LKXQH4XD.js → chunk-RXUGNP3O.js} +1 -1
  65. package/dist/{chunk-E75O4U2I.js → chunk-SDBSHT6L.js} +3 -124
  66. package/dist/{chunk-KPFVA2SI.js → chunk-SGQPKEKW.js} +4 -16
  67. package/dist/{chunk-3ZNQIPRH.js → chunk-SLU5UQQS.js} +3 -3
  68. package/dist/{chunk-OOIY2XVC.js → chunk-SV3MQQSD.js} +5 -5
  69. package/dist/{chunk-TX2YKTQO.js → chunk-THZABUJL.js} +1 -1
  70. package/dist/{chunk-AMHFFBLI.js → chunk-TM2WCOMA.js} +1 -1
  71. package/dist/{chunk-7RSV5EHL.js → chunk-TQBQFD7K.js} +3 -3
  72. package/dist/{chunk-POADOTEW.js → chunk-UBFXWFC4.js} +1 -1
  73. package/dist/{chunk-FYFCGONI.js → chunk-UJ6ZPUJL.js} +15 -15
  74. package/dist/{chunk-WKSZI4YX.js → chunk-V3LLYTKR.js} +9 -9
  75. package/dist/{chunk-IDTAWA7V.js → chunk-VCYSB2LV.js} +1 -1
  76. package/dist/{chunk-CJDVDTA7.js → chunk-VT3G2KIY.js} +4 -4
  77. package/dist/{chunk-FWDXZBVV.js → chunk-W4XQUODP.js} +8 -8
  78. package/dist/{chunk-RATMFIJV.js → chunk-WAWHCBN7.js} +4 -4
  79. package/dist/{chunk-6I3MSNFZ.js → chunk-WQUEWYUC.js} +4 -4
  80. package/dist/{chunk-J5H6WR2A.js → chunk-YAJOMB4D.js} +1 -1
  81. package/dist/{chunk-XC4FEPLQ.js → chunk-YPIR4MGL.js} +8 -25
  82. package/dist/{chunk-EY4JXIF3.js → chunk-ZOS55UTZ.js} +1 -1
  83. package/dist/{claude-launcher-BF6EZD3J.js → claude-launcher-HQIBJDR5.js} +5 -5
  84. package/dist/{cli-TDXQHCF2.js → cli-DT7WP7S3.js} +166 -168
  85. package/dist/{command-YDTUAZUZ.js → command-HV32TX64.js} +47 -51
  86. package/dist/{config-HVJJFKV7.js → config-HMI672LY.js} +11 -11
  87. package/dist/{connect-cmd-PNPKCNOT.js → connect-cmd-UHR3P5RD.js} +10 -10
  88. package/dist/{container-start-M6A347Y5.js → container-start-2JKT434B.js} +43 -47
  89. package/dist/{context-cleanup-OZXSR3DS.js → context-cleanup-BLWTPDRE.js} +2 -2
  90. package/dist/{context-show-cmd-G7A2UHEM.js → context-show-cmd-3RU3YJ3Z.js} +11 -11
  91. package/dist/{control-plane-launch-JLQNFYYQ.js → control-plane-launch-GIZPALCW.js} +13 -13
  92. package/dist/{demo-record-cmd-JSLTJWZV.js → demo-record-cmd-PMWB2SPV.js} +7 -7
  93. package/dist/{demo-voice-cmd-UGUSIJWV.js → demo-voice-cmd-VGFHMBY2.js} +17 -17
  94. package/dist/{docker-QTNF3YGO.js → docker-RT6VSGFO.js} +9 -9
  95. package/dist/{doctor-ZPXVE46E.js → doctor-ANCGRL4E.js} +45 -49
  96. package/dist/{emit-artifact-cmd-BK6B64L7.js → emit-artifact-cmd-VA5WKCBE.js} +16 -16
  97. package/dist/{emit-cmd-ZTICDJW3.js → emit-cmd-G3HZHZYK.js} +5 -5
  98. package/dist/{emit-criteria-cmd-2CNVXEWX.js → emit-criteria-cmd-AWRTNA7U.js} +13 -13
  99. package/dist/{emit-demo-cmd-4XJAXL2E.js → emit-demo-cmd-TEAUWE5X.js} +17 -17
  100. package/dist/{emit-finding-cmd-2AZRE7UI.js → emit-finding-cmd-JLCPC6PO.js} +13 -13
  101. package/dist/{emit-step-cmd-54Z7FKNL.js → emit-step-cmd-Z5KGLT7I.js} +13 -13
  102. package/dist/{exec-client-EOUGSX2G.js → exec-client-5TKSDT4K.js} +7 -7
  103. package/dist/{find-unit-TFQHEPEJ.js → find-unit-SI6DIT7C.js} +12 -12
  104. package/dist/{findings-cmd-XEBPAELT.js → findings-cmd-ALFKVD4R.js} +13 -13
  105. package/dist/{fleet-readiness-LZ2DHKTV.js → fleet-readiness-P5UJOLUD.js} +12 -12
  106. package/dist/{governing-source-J2JBGYEL.js → governing-source-YSRMSXE4.js} +18 -18
  107. package/dist/{guest-init-TXNMQKI4.js → guest-init-SC6CEVBU.js} +8 -8
  108. package/dist/{hook-fast-OMRT3KDA.js → hook-fast-ICZZMG3H.js} +1 -1
  109. package/dist/{hook-install-FRK3VKWV.js → hook-install-AGUGR7XA.js} +2 -2
  110. package/dist/host-checks-EZ5EPRNX.js +79 -0
  111. package/dist/{pending-DORA7JYQ.js → host-key-2D6FFQUO.js} +7 -7
  112. package/dist/{image-tag-QIR5NFE6.js → image-tag-RPBPCOYI.js} +7 -7
  113. package/dist/index.js +4 -4
  114. package/dist/{init-I2AWF66M.js → init-4OKT7AIJ.js} +41 -45
  115. package/dist/{init-J4S65OAZ.js → init-IL2R4D7M.js} +41 -45
  116. package/dist/{init-agent-AVG5KJ5S.js → init-agent-GO46DL6K.js} +41 -45
  117. package/dist/{init-cmd-32J3RTIV.js → init-cmd-VBMZHQOV.js} +24 -25
  118. package/dist/{init-update-6MORKWIX.js → init-update-6VSWW6GU.js} +22 -22
  119. package/dist/{install-cmd-ZTOXZUYZ.js → install-cmd-2RQU2UWB.js} +14 -14
  120. package/dist/{launch-agent-6SOYTFN3.js → launch-agent-K6C24LDE.js} +14 -14
  121. package/dist/{layout-KXYCAXFE.js → layout-TGUCFL3Q.js} +2 -2
  122. package/dist/{logs-BAGVRH6O.js → logs-CUZL3AFN.js} +6 -6
  123. package/dist/loop-SU4GKRL6.js +89 -0
  124. package/dist/machine-GOQTHEDK.js +79 -0
  125. package/dist/{machine-skills-P4E7ZHHE.js → machine-skills-RFPVAKMP.js} +2 -2
  126. package/dist/{mcp-install-cmd-B2PYJST7.js → mcp-install-cmd-OPVS3ZQC.js} +2 -2
  127. package/dist/{mcp-serve-cmd-NODAY6N7.js → mcp-serve-cmd-UAO43IUU.js} +8 -8
  128. package/dist/{paths-E7MMZLIR.js → paths-5KIREBMX.js} +6 -6
  129. package/dist/{host-key-XGECHBJU.js → pending-H6UQEK2S.js} +7 -7
  130. package/dist/{pidfile-OTTUMCR5.js → pidfile-VEGMVMOM.js} +7 -7
  131. package/dist/{record-FQ5Y4QXN.js → record-L5Y6HKCD.js} +7 -7
  132. package/dist/{relay-X5KHTSMC.js → relay-ONQZR54R.js} +4 -4
  133. package/dist/{relay-protocol-WRHSJK7X.js → relay-protocol-42IKFMUY.js} +4 -4
  134. package/dist/{run-cmd-FQTEMGGF.js → run-cmd-ME3OAOUZ.js} +13 -13
  135. package/dist/{runner-agents-YA6Z3WAU.js → runner-agents-TJTD5U4S.js} +2 -2
  136. package/dist/{runner-env-YFKTTX6Z.js → runner-env-KR5SKMXP.js} +13 -13
  137. package/dist/{runner-identity-34YUL365.js → runner-identity-J7G2KHY3.js} +9 -9
  138. package/dist/{runner-key-DZFIC5TA.js → runner-key-3HGGWA73.js} +41 -45
  139. package/dist/{session-sender-UMDVOJYH.js → session-sender-Y2GJXX7H.js} +16 -16
  140. package/dist/{setup-cmd-2LYTDAO4.js → setup-cmd-IXBV77NY.js} +12 -12
  141. package/dist/{setup-wiring-WOG3GVJV.js → setup-wiring-E3P5LDAJ.js} +51 -52
  142. package/dist/{spec-cmd-QTTLZHHK.js → spec-cmd-GDIG3JPV.js} +14 -14
  143. package/dist/{starter-pack-YBK7UTHI.js → starter-pack-PRGAFNA4.js} +3 -3
  144. package/dist/{state-ITAPHJA5.js → state-5BT3FXM3.js} +7 -7
  145. package/dist/{status-RR57VBDY.js → status-37XD27H5.js} +41 -45
  146. package/dist/{sync-cmd-HSCMD5VV.js → sync-cmd-3BPR3UXM.js} +15 -15
  147. package/dist/update-steps-W7H6S7ZY.js +80 -0
  148. package/dist/{watch-VMHSVFQD.js → watch-EO7TD7O4.js} +15 -15
  149. package/dist/{work-claim-cmd-IVP3X776.js → work-claim-cmd-E66SANC5.js} +19 -19
  150. package/dist/{work-cmd-JSYWV6EZ.js → work-cmd-SO5CMIJX.js} +13 -13
  151. package/dist/{work-comment-cmd-NZH7KHPA.js → work-comment-cmd-PZWIE2SZ.js} +15 -15
  152. package/dist/{work-demo-cmd-IY32FWJJ.js → work-demo-cmd-SV5WYN4W.js} +13 -13
  153. package/dist/{work-logs-cmd-4S4SNOGM.js → work-logs-cmd-SNZ5QEVC.js} +13 -13
  154. package/dist/{work-mock-cmd-ZJLS23OP.js → work-mock-cmd-CSOJKS2Q.js} +13 -13
  155. package/dist/{work-needs-attention-cmd-FYWFQBPP.js → work-needs-attention-cmd-HADJ56RT.js} +13 -13
  156. package/dist/{work-no-change-cmd-JMO4NWMJ.js → work-no-change-cmd-M4BB2P3J.js} +13 -13
  157. package/dist/{work-open-pr-cmd-FDMFZCWQ.js → work-open-pr-cmd-XE2IJHGF.js} +14 -14
  158. package/dist/{work-pr-cmd-YWFH2IXD.js → work-pr-cmd-IY2BMU4X.js} +13 -13
  159. package/dist/{work-proofs-cmd-IYQIT77X.js → work-proofs-cmd-EAQJ3RT3.js} +15 -15
  160. package/dist/{work-proofs-record-4VPFC6R6.js → work-proofs-record-AQIHZQXG.js} +22 -22
  161. package/dist/{work-stop-cmd-JX63CEGC.js → work-stop-cmd-VHNBWARI.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/loop-7222NF5Z.js +0 -93
  169. package/dist/machine-ENBKFB2P.js +0 -83
  170. package/dist/update-steps-524DMSWB.js +0 -84
@@ -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/);
@@ -7983,31 +7878,15 @@ 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 };
8011
7890
  }
8012
7891
  var FILES_PLACEHOLDER = "{files}";
8013
7892
  function isRecord2(value) {
@@ -12587,4 +12466,4 @@ function knownTargetsLine(agents = defaultAgents()) {
12587
12466
  return `Known targets: ${targetIds(agents).join(", ")}.`;
12588
12467
  }
12589
12468
 
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 };
12469
+ 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, sessionFolderIn, skillBases, skillDir, splitRawFile, targetIds, userSkillFolderIn, writeMaintainedFiles };
@@ -2,8 +2,8 @@
2
2
  import { createRequire } from 'node:module';
3
3
  import { C } from './chunk-2AM6Z5BP.js';
4
4
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
5
- import { linkedAgentsPath } from './chunk-SCA5GQKS.js';
6
- import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-E75O4U2I.js';
5
+ import { linkedAgentsPath } from './chunk-H2IVCCVU.js';
6
+ import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-SDBSHT6L.js';
7
7
  import { LEGACY_AGENT } from './chunk-7FAKHR6W.js';
8
8
  import { MAINTAINED_SKILLS } from './chunk-VSBG7MMU.js';
9
9
  import { resolvePackageVersion } from './chunk-RA3O54FC.js';
@@ -12,8 +12,6 @@ import { join, dirname } from 'path';
12
12
 
13
13
  createRequire(import.meta.url);
14
14
  var DEFAULT_TEMPLATE = "default";
15
- var POLICY_PATH = ".outerlayer/policy.yaml";
16
- var POLICY_CONTENT = "review: required\n";
17
15
  var StarterPackError = class extends Error {
18
16
  };
19
17
  function assertKnownTemplate(name) {
@@ -44,19 +42,11 @@ function installStarterPack(opts) {
44
42
  copied.push(skill);
45
43
  }
46
44
  const written = writeMaintainedFiles(opts.repoRoot, maintainedFiles);
47
- let policy = "kept";
48
- const policyAbs = join(opts.repoRoot, POLICY_PATH);
49
- if (!existsSync(policyAbs)) {
50
- mkdirSync(dirname(policyAbs), { recursive: true });
51
- writeFileSync(policyAbs, POLICY_CONTENT);
52
- policy = "written";
53
- }
54
45
  return {
55
46
  base,
56
47
  copied,
57
48
  kept,
58
- maintained: [...written.created, ...written.rewritten],
59
- policy
49
+ maintained: [...written.created, ...written.rewritten]
60
50
  };
61
51
  }
62
52
  var skillFile = (skill, base) => `${skillDir(skill, base)}/SKILL.md`;
@@ -78,8 +68,6 @@ function formatStarterPackOutput(result) {
78
68
  for (const skill of MAINTAINED_SKILLS) lines.push(` ${skillFile(skill, MACHINE_SKILL_PATH)}`);
79
69
  }
80
70
  lines.push(
81
- "",
82
- result.policy === "written" ? `${C.green}\u2713${C.reset} Wrote ${POLICY_PATH} (review required)` : `${C.dim}${POLICY_PATH} already exists \u2014 left as it is${C.reset}`,
83
71
  "",
84
72
  ...base === OUTERLAYER_SKILLS_BASE ? [
85
73
  `Next: create .outerlayer/config.json naming your agent tools, for example {"targets": ["${LEGACY_AGENT}"]},`,
@@ -89,4 +77,4 @@ function formatStarterPackOutput(result) {
89
77
  return lines.join("\n") + "\n";
90
78
  }
91
79
 
92
- export { POLICY_CONTENT, POLICY_PATH, StarterPackError, assertKnownTemplate, formatStarterPackOutput, installStarterPack };
80
+ export { StarterPackError, assertKnownTemplate, formatStarterPackOutput, installStarterPack };
@@ -1,11 +1,11 @@
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-3SGM2N7J.js';
5
- import { autoConnect } from './chunk-5ODRMXXT.js';
4
+ import { detectActiveSession } from './chunk-OJZ4TIKW.js';
5
+ import { autoConnect } from './chunk-AA2K5FC6.js';
6
6
  import { acquireSpoolLockAt } from './chunk-V3NMSDOC.js';
7
7
  import { C } from './chunk-2AM6Z5BP.js';
8
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-EY4JXIF3.js';
8
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-ZOS55UTZ.js';
9
9
  import { launchedItemForSession } from './chunk-LGJ56FCM.js';
10
10
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
11
11
  import { homeFromEnv } from './chunk-352DHUTP.js';
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RemovedTargetError, removedTargetError } from './chunk-POADOTEW.js';
4
- import { removeRetiredSkills } from './chunk-NU4IZ33U.js';
3
+ import { RemovedTargetError, removedTargetError } from './chunk-UBFXWFC4.js';
4
+ import { removeRetiredSkills } from './chunk-OU7GQC44.js';
5
5
  import { removeLeftoverGitLocks } from './chunk-A2WPWZJA.js';
6
- import { defaultFetch, resolveGatewayCredentials } from './chunk-EY4JXIF3.js';
7
- import { withTokenHeader } from './chunk-7RSV5EHL.js';
6
+ import { defaultFetch, resolveGatewayCredentials } from './chunk-ZOS55UTZ.js';
7
+ import { withTokenHeader } from './chunk-TQBQFD7K.js';
8
8
  import { appendContextProvenance } from './chunk-545P7JY7.js';
9
9
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
10
10
  import { writeDegraded, writeSourceCache, SOURCE_CACHE_TTL_RETRY_MS, writeContextManifest, SOURCE_CACHE_TTL_SUCCESS_MS, readSourceCache, isSourceCacheFresh, clearDegraded } from './chunk-YQR6E6OV.js';
11
- import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-E75O4U2I.js';
11
+ import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-SDBSHT6L.js';
12
12
  import { homeFromEnv } from './chunk-352DHUTP.js';
13
13
  import { execFileSync } from 'child_process';
14
14
  import { existsSync, mkdirSync, writeFileSync, chmodSync, lstatSync, readFileSync, copyFileSync } from 'fs';
@@ -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-LIPSGE6C.js';
4
- import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-E75O4U2I.js';
4
+ import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-SDBSHT6L.js';
5
5
  import { LEGACY_AGENT } from './chunk-7FAKHR6W.js';
6
6
  import { MAINTAINED_SKILLS } from './chunk-VSBG7MMU.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
3
  import { STALL_EXIT } from './chunk-MQ6SKVLA.js';
4
- import { defaultAgents, agentById } from './chunk-E75O4U2I.js';
4
+ import { defaultAgents, agentById } from './chunk-SDBSHT6L.js';
5
5
  import { PROVIDERS, LEGACY_AGENT, isModelId } from './chunk-7FAKHR6W.js';
6
6
  import { join, dirname } from 'path';
7
7
 
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-AU77QN2U.js';
4
- import { strippedVariables, jobAgent, judgeAgent, agentsToHold, runnerAgents } from './chunk-AMHFFBLI.js';
5
- import { defaultAgents } from './chunk-E75O4U2I.js';
3
+ import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-HTV3VRCB.js';
4
+ import { strippedVariables, jobAgent, judgeAgent, agentsToHold, runnerAgents } from './chunk-TM2WCOMA.js';
5
+ import { defaultAgents } from './chunk-SDBSHT6L.js';
6
6
  import { PROVIDERS } from './chunk-7FAKHR6W.js';
7
7
  import { MIN_SCRUBBED_LITERAL, costOfUsage } from './chunk-2IDR4YTQ.js';
8
8
  import { mkdirSync, writeFileSync, existsSync, unlinkSync, chmodSync } from 'fs';
@@ -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-SDBSHT6L.js';
4
4
  import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7FAKHR6W.js';
5
5
  import { readFileSync } from 'fs';
6
6
  import { join } 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-XC4FEPLQ.js';
4
- import { resolveCredentials, getJson, WorkCommandError } from './chunk-RLFTRWFC.js';
5
- import { isLinkedRepository } from './chunk-WKSZI4YX.js';
6
- import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-PLUBKVJB.js';
3
+ import { checkStarterFiles, contextIsGoverned } from './chunk-YPIR4MGL.js';
4
+ import { resolveCredentials, getJson, WorkCommandError } from './chunk-NAH7LEMX.js';
5
+ import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-FHH5DQ7X.js';
6
+ import { withInjectedPrograms } from './chunk-MCE7JACC.js';
7
+ import { isLinkedRepository } from './chunk-V3LLYTKR.js';
7
8
  import { sanitizeTerminal } from './chunk-V3NMSDOC.js';
8
- import { withInjectedPrograms } from './chunk-WEDN75TI.js';
9
9
  import { C } from './chunk-2AM6Z5BP.js';
10
- import { checkFormerSkillNames } from './chunk-NU4IZ33U.js';
11
- import { resolveGatewayCredentials, defaultFetch } from './chunk-EY4JXIF3.js';
12
- import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-MNZWJUSM.js';
10
+ import { checkFormerSkillNames } from './chunk-OU7GQC44.js';
11
+ import { resolveGatewayCredentials, defaultFetch } from './chunk-ZOS55UTZ.js';
12
+ import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-NYVDMD32.js';
13
13
  import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-LIPSGE6C.js';
14
14
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
15
15
  import { readStatuslineState, STATE_FRESH_MS } from './chunk-YWLRN4XV.js';
16
16
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
17
- import { installAgents, withSettingsText } from './chunk-VBFAMLTB.js';
17
+ import { installAgents, withSettingsText } from './chunk-5WDRNYGB.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-E75O4U2I.js';
21
+ import { defaultAgents, legacyAgent, contextAgents } from './chunk-SDBSHT6L.js';
22
22
  import { homeFromEnv } from './chunk-352DHUTP.js';
23
23
  import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-2IDR4YTQ.js';
24
24
  import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync } from 'fs';
@@ -1053,9 +1053,9 @@ function doctorExitCode(checks) {
1053
1053
 
1054
1054
  // src/doctor-report.ts
1055
1055
  async function gatherDoctorChecks(options = {}) {
1056
- const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-5JU4JJJA.js');
1057
- const { listedAgents } = await import('./runner-agents-YA6Z3WAU.js');
1058
- const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-HVJJFKV7.js');
1056
+ const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-UTRYIN6P.js');
1057
+ const { listedAgents } = await import('./runner-agents-TJTD5U4S.js');
1058
+ const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-HMI672LY.js');
1059
1059
  const configPath = options.configPath ?? defaultRunnerConfigPath();
1060
1060
  const runnerHost = hasRunnerBlock(configPath);
1061
1061
  const hooks = (() => {
@@ -1083,7 +1083,7 @@ async function gatherDoctorChecks(options = {}) {
1083
1083
  const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
1084
1084
  checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
1085
1085
  } else if (hasRunnerBlock(configPath)) {
1086
- const { runnerHostChecks } = await import('./doctor-ZPXVE46E.js');
1086
+ const { runnerHostChecks } = await import('./doctor-ANCGRL4E.js');
1087
1087
  const gateway = (() => {
1088
1088
  try {
1089
1089
  const loaded = loadRunnerConfig(configPath);
@@ -1112,7 +1112,7 @@ async function gatherDoctorChecks(options = {}) {
1112
1112
  const service = await (async () => {
1113
1113
  const { existsSync: existsSync3 } = await import('fs');
1114
1114
  if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
1115
- const { inspectRunnerService } = await import('./find-unit-TFQHEPEJ.js');
1115
+ const { inspectRunnerService } = await import('./find-unit-SI6DIT7C.js');
1116
1116
  return inspectRunnerService(configPath);
1117
1117
  })();
1118
1118
  checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { sanitizeTerminal } from './chunk-V3NMSDOC.js';
4
- import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-J5H6WR2A.js';
4
+ import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-YAJOMB4D.js';
5
5
  import { DEFAULT_DASHBOARD } from './chunk-GQADCHPA.js';
6
- import { cliFetch, resolveGatewayCredentials } from './chunk-EY4JXIF3.js';
6
+ import { cliFetch, resolveGatewayCredentials } from './chunk-ZOS55UTZ.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-E75O4U2I.js';
10
+ import { defaultAgents } from './chunk-SDBSHT6L.js';
11
11
  import { remoteLookupFailed } from './chunk-2IDR4YTQ.js';
12
12
  import { execFileSync } from 'child_process';
13
13
  import { lstatSync } from 'fs';
@@ -82,13 +82,13 @@ Then run \`${cliInvocation()} connect\` again.
82
82
 
83
83
  // src/connect-cmd.ts
84
84
  var REQUEST_TIMEOUT_MS = 15e3;
85
- var COMMIT_LINE = "Commit and push .outerlayer/ so the factory reads your policy and skills. No judge runs on a pull request until the policy is on the branch it targets.";
85
+ var COMMIT_LINE = "Commit and push .outerlayer/ so the factory reads your judges and skills. No judge runs on a pull request until the setup is on the branch it targets.";
86
86
  function listWithAnd(items) {
87
87
  return items.length < 2 ? items.join("") : `${items.slice(0, -1).join(", ")} and ${items.at(-1)}`;
88
88
  }
89
89
  function agentsLayoutCommitLine(agents = defaultAgents()) {
90
90
  const items = [".outerlayer/", "AGENTS.md", ".agents/", ...mcpFiles(agents), ...skillLinkFolders(agents)];
91
- return `Commit and push ${listWithAnd(items)} so the factory reads your policy and skills. No judge runs on a pull request until the policy is on the branch it targets.`;
91
+ return `Commit and push ${listWithAnd(items)} so the factory reads your judges and skills. No judge runs on a pull request until the setup is on the branch it targets.`;
92
92
  }
93
93
  var COMMIT_PATHS = [":/.outerlayer"];
94
94
  var agentsLayoutCommitPaths = (agents) => [":/.outerlayer", ":/AGENTS.md", ":/.agents", ...mcpFiles(agents).map((file) => `:/${file}`), ...skillLinkFolders(agents).map((folder) => `:/${folder}`)];
@@ -152,14 +152,14 @@ function commitCommandsFor(cwd) {
152
152
  lines.push(...omitted);
153
153
  if (add.length === 0) return lines.join("\n");
154
154
  lines.push(
155
- "Commit and push the setup so the factory reads your policy and skills. No judge runs on a pull request until the policy is on the branch it targets.",
155
+ "Commit and push the setup so the factory reads your judges and skills. No judge runs on a pull request until the setup is on the branch it targets.",
156
156
  ` git add ${add.join(" ")}`,
157
157
  ' git commit -m "Add OuterLayer setup"',
158
158
  " git push"
159
159
  );
160
160
  return lines.join("\n");
161
161
  }
162
- function hasUncommittedPolicy(cwd) {
162
+ function hasUncommittedSetup(cwd) {
163
163
  const paths = inAgentsMdLayout(cwd) ? agentsLayoutCommitPaths(defaultAgents()) : COMMIT_PATHS;
164
164
  try {
165
165
  const status = execFileSync("git", ["status", "--porcelain", "--untracked-files=all", "--", ...paths], {
@@ -424,7 +424,7 @@ function connectDocument(r) {
424
424
  }
425
425
  async function runConnectCommand(flags, deps, out) {
426
426
  const base = await runConnect(flags, deps);
427
- const r = base.outcome === "done" && hasUncommittedPolicy(deps.cwd) ? { ...base, text: `${base.text}
427
+ const r = base.outcome === "done" && hasUncommittedSetup(deps.cwd) ? { ...base, text: `${base.text}
428
428
  ${commitLineFor(deps.cwd)}
429
429
  ` } : base;
430
430
  if (flags.json) {
@@ -437,4 +437,4 @@ ${commitLineFor(deps.cwd)}
437
437
  return r.code;
438
438
  }
439
439
 
440
- export { COMMIT_LINE, agentsLayoutCommitLine, autoConnectedLine, commitCommandsFor, commitLineFor, dashboardBase, fetchFactories, findNamedFactory, hasUncommittedPolicy, isLinkedRepository, linkedBranches, listText, listWithAnd, ownerAndName, promptOnTerminal, realConnectDeps, runConnect, runConnectCommand, saveFactoryConnection, selectFactory, setupCommitPaths, slug, workPageUrl };
440
+ export { COMMIT_LINE, agentsLayoutCommitLine, autoConnectedLine, commitCommandsFor, commitLineFor, dashboardBase, fetchFactories, findNamedFactory, hasUncommittedSetup, isLinkedRepository, linkedBranches, listText, listWithAnd, ownerAndName, promptOnTerminal, realConnectDeps, runConnect, runConnectCommand, saveFactoryConnection, selectFactory, setupCommitPaths, slug, workPageUrl };
@@ -3,7 +3,7 @@ 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 { legacyAgent, laptopAgents, defaultAgents, McpFileError } from './chunk-E75O4U2I.js';
6
+ import { legacyAgent, laptopAgents, defaultAgents, McpFileError } from './chunk-SDBSHT6L.js';
7
7
  import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
8
8
  import { join, dirname } from 'path';
9
9
 
@@ -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-H6GROJCC.js';
4
+ import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-RURRQTYH.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-WQUEWYUC.js';
7
+ import { runnerDir, RUNNER_DIR_MODE } from './chunk-2F4XVJUN.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,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-NAH7LEMX.js';
5
+ import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-SV3MQQSD.js';
6
+ import { buildRefusalReason } from './chunk-UBFXWFC4.js';
7
+ import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-THZABUJL.js';
8
+ import { signingFetchFor } from './chunk-ZOS55UTZ.js';
9
+ import { signerFor } from './chunk-RXUGNP3O.js';
10
+ import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-2F4XVJUN.js';
11
+ import { SandboxError, describeSandboxError } from './chunk-TQBQFD7K.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,10 +1,10 @@
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-3SGM2N7J.js';
5
- import { autoConnect } from './chunk-5ODRMXXT.js';
4
+ import { detectActiveSession } from './chunk-OJZ4TIKW.js';
5
+ import { autoConnect } from './chunk-AA2K5FC6.js';
6
6
  import { C } from './chunk-2AM6Z5BP.js';
7
- import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-EY4JXIF3.js';
7
+ import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-ZOS55UTZ.js';
8
8
  import { launchedItemForSession } from './chunk-LGJ56FCM.js';
9
9
  import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
10
10
  import { homeFromEnv } from './chunk-352DHUTP.js';
@@ -42,7 +42,7 @@ function criteriaFromAcceptanceFile(markdown) {
42
42
  // src/emit-criteria-cmd.ts
43
43
  var EmitCriteriaError = class extends Error {
44
44
  };
45
- var REPLACE_REFUSED_MESSAGE = "this item already has a recorded list, and a person must replace it. Run the command yourself, outside the session, with your own login. A repository's .outerlayer/policy.yaml can let sessions replace it with `criteria: { replace: anyone }`.";
45
+ var REPLACE_REFUSED_MESSAGE = "this item already has a recorded list, and a person must replace it. Run the command yourself, outside the session, with your own login.";
46
46
  async function readAllStdin() {
47
47
  const chunks = [];
48
48
  for await (const chunk of process.stdin) chunks.push(Buffer.from(chunk));
@@ -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-I32JMDTQ.js';
4
+ import { parseSize } from './chunk-OADERJBS.js';
5
+ import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-TQBQFD7K.js';
6
+ import { builderDiskPinned, agentIdOfCommand, defaultCommandFor, headlessAgentIds } from './chunk-TM2WCOMA.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 { 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-SDBSHT6L.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,27 +1,25 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-IDTAWA7V.js';
4
- import { skillsBaseFor } from './chunk-J5H6WR2A.js';
5
- import { POLICY_PATH, POLICY_CONTENT } from './chunk-KPFVA2SI.js';
3
+ import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-VCYSB2LV.js';
4
+ import { skillsBaseFor } from './chunk-YAJOMB4D.js';
6
5
  import { findGitDirs } from './chunk-BJ3KTMDH.js';
7
6
  import { cliInvocation } from './chunk-FZKNTIOJ.js';
8
- import { hasSymlinkComponent } from './chunk-SCA5GQKS.js';
7
+ import { hasSymlinkComponent } from './chunk-H2IVCCVU.js';
9
8
  import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
10
- import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-E75O4U2I.js';
9
+ import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, skillDir, loadTemplateFiles, restoreSkillPaths, TEMPLATE_SKILLS } from './chunk-SDBSHT6L.js';
11
10
  import { createHash } from 'crypto';
12
11
  import { existsSync, readFileSync } from 'fs';
13
12
  import { join } from 'path';
14
13
 
15
14
  createRequire(import.meta.url);
16
15
  var SHIPPED_MANIFEST = "shipped.json";
17
- function currentStarterFiles(packRoot = resolvePackRoot(), policy = POLICY_CONTENT, base = OUTERLAYER_SKILLS_BASE) {
18
- const templates = loadTemplateFiles(packRoot, void 0, base).map((f) => ({
16
+ function currentStarterFiles(packRoot = resolvePackRoot(), base = OUTERLAYER_SKILLS_BASE) {
17
+ return loadTemplateFiles(packRoot, void 0, base).map((f) => ({
19
18
  path: f.path,
20
19
  content: f.content,
21
20
  skill: f.skill,
22
21
  source: join(packRoot, "template", f.skill, f.path.slice(skillDir(f.skill, base).length + 1))
23
22
  }));
24
- return [...templates, { path: POLICY_PATH, content: policy }];
25
23
  }
26
24
  var TEMPLATE_VERSION = /(Copied once from the default template by outerlayer init) [^\s;]+(; never overwritten\.)/;
27
25
  function contentHash(content) {
@@ -47,21 +45,6 @@ function readShippedManifest(packRoot = resolvePackRoot()) {
47
45
  return { ok: false, problem: "unreadable" };
48
46
  }
49
47
  }
50
- function upgradedStarterText(path, content, opts = {}) {
51
- const packRoot = opts.packRoot ?? resolvePackRoot();
52
- const manifest = opts.manifest ?? readShippedManifest(packRoot);
53
- const shipped = manifest.ok ? manifest.files.get(path) : void 0;
54
- if (shipped === void 0) return void 0;
55
- if (path !== POLICY_PATH) return void 0;
56
- const current = POLICY_CONTENT;
57
- const bases = opts.base === AGENTS_SKILLS_BASE ? [AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE] : [OUTERLAYER_SKILLS_BASE, AGENTS_SKILLS_BASE];
58
- for (const base of bases) {
59
- const hash = contentHash(restoreSkillPaths(content, base));
60
- if (hash === contentHash(current)) return void 0;
61
- if (shipped.has(hash)) return rewriteSkillPaths(current, base);
62
- }
63
- return void 0;
64
- }
65
48
  function mcpItemsInit() {
66
49
  return [
67
50
  // Through 0.12.0 `init` wrote a command that needs a global install on every teammate's machine.
@@ -135,7 +118,7 @@ function inspectStarterFiles(root, opts = {}) {
135
118
  const packRoot = opts.packRoot ?? resolvePackRoot();
136
119
  const base = opts.base ?? skillsBaseFor(root);
137
120
  const manifest = readShippedManifest(packRoot);
138
- const shipped = currentStarterFiles(packRoot, void 0, base);
121
+ const shipped = currentStarterFiles(packRoot, base);
139
122
  const files = shipped.map((file) => ({ kind: "file", path: file.path, state: fileState(root, file, manifest, base), file }));
140
123
  const buildEdited = files.some((f) => f.path === `${skillDir("build", base)}/SKILL.md` && f.state === "edited");
141
124
  const buildPrefix = `${skillDir("build", base)}/`;
@@ -200,4 +183,4 @@ function checkStarterFiles(cwd, opts = {}) {
200
183
  return { checks: [{ name: NAME, status: "warn", detail: parts.join("; "), fix }], mcpOutdated };
201
184
  }
202
185
 
203
- export { canonical, checkStarterFiles, contentHash, contextIsGoverned, inspectStarterFiles, readShippedManifest, upgradedStarterText };
186
+ export { canonical, checkStarterFiles, contentHash, contextIsGoverned, inspectStarterFiles, readShippedManifest };
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { readCloudConfigStrict, readCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
4
- import { signRunnerRequest, signerFor } from './chunk-LKXQH4XD.js';
4
+ import { signRunnerRequest, signerFor } from './chunk-RXUGNP3O.js';
5
5
  import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
6
6
  import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-Z7J7JWGF.js';
7
7
  import { cliInvocation } from './chunk-FZKNTIOJ.js';