@outerlayer/cli 0.41.0-next.20261118130049 → 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.
- package/README.md +5 -5
- package/dist/{agent-credential-A3NYNRQZ.js → agent-credential-FI5HHMC7.js} +3 -3
- package/dist/{agent-setup-7LD2SPXX.js → agent-setup-JK3AB23R.js} +18 -18
- package/dist/{agent-subcommand-JBWCF6DW.js → agent-subcommand-KNIUK5XB.js} +2 -2
- package/dist/{bridge-4UMTIJEF.js → bridge-3F7637DO.js} +6 -6
- package/dist/{build-5OOYQ3X6.js → build-IBK6OWMD.js} +13 -13
- package/dist/{build-disk-K3A5TSZL.js → build-disk-UTRYIN6P.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-XQVN4S2C.js → builder-FVZCFCSU.js} +9 -9
- package/dist/{caller-HIDRWXGV.js → caller-HSFIM2H5.js} +12 -12
- package/dist/{check-75PJJJEF.js → check-OSCHNNLI.js} +49 -53
- package/dist/{chunk-LWOMQZNJ.js → chunk-2ASWEY7Y.js} +8 -8
- package/dist/{chunk-ZKL4BQAP.js → chunk-2F4XVJUN.js} +1 -1
- package/dist/{chunk-QTH3ZPB7.js → chunk-47X3DZS6.js} +3 -3
- package/dist/{chunk-YNPPXB57.js → chunk-4TD3JKQG.js} +1 -1
- package/dist/{chunk-J6ZWZDL4.js → chunk-56YSHV4R.js} +4 -4
- package/dist/{chunk-IJCG3R2B.js → chunk-5KDPYRBL.js} +10 -10
- package/dist/{chunk-MV4VDZH5.js → chunk-5WDRNYGB.js} +1 -1
- package/dist/{chunk-RCDTKXXI.js → chunk-6A4XHKAD.js} +3 -3
- package/dist/{chunk-GCT2J4Y7.js → chunk-6FDFZ5UO.js} +1 -1
- package/dist/{chunk-NB52SVJ4.js → chunk-AA2K5FC6.js} +2 -2
- package/dist/{chunk-Z63PASAI.js → chunk-B22MYHFC.js} +3 -3
- package/dist/{chunk-YNK4J3E5.js → chunk-CMMTWO6K.js} +1 -1
- package/dist/{chunk-H2U3YTON.js → chunk-DC4NUJ72.js} +6 -6
- package/dist/{chunk-CRFMJVYJ.js → chunk-DG3VREJE.js} +6 -6
- package/dist/{chunk-4GLGLMDX.js → chunk-E7Z3PFV7.js} +3 -3
- package/dist/{chunk-MLMHMLJU.js → chunk-EIYTP2AC.js} +4 -4
- package/dist/{chunk-JB6WBOTZ.js → chunk-FHH5DQ7X.js} +5 -5
- package/dist/{chunk-FJPKQVTX.js → chunk-FRVUXVMX.js} +4 -4
- package/dist/{chunk-I3NK6WNF.js → chunk-FSKUJX43.js} +5 -5
- package/dist/{chunk-QYLY3Z6R.js → chunk-H2IVCCVU.js} +1 -1
- package/dist/{chunk-6NPBCLAT.js → chunk-H6GROJCC.js} +1 -1
- package/dist/{chunk-4DTWHAXO.js → chunk-HTV3VRCB.js} +3 -3
- package/dist/{chunk-A5YNDECV.js → chunk-I2FA3MCH.js} +3 -3
- package/dist/{chunk-6LJ6HOMB.js → chunk-I32JMDTQ.js} +2 -2
- package/dist/{chunk-C3OJZODB.js → chunk-I3E5D2CQ.js} +1 -1
- package/dist/{chunk-VYET47NT.js → chunk-J3DZUXHL.js} +5 -5
- package/dist/{chunk-EACOTFE4.js → chunk-JFLGHA3C.js} +30 -30
- package/dist/{chunk-TZHVJ5WH.js → chunk-JIFIPELY.js} +1 -1
- package/dist/{chunk-SPWA3JVM.js → chunk-JMM74T6A.js} +3 -3
- package/dist/{chunk-C73EUOPF.js → chunk-JY3W3AHK.js} +8 -13
- package/dist/{chunk-ATGEXIO3.js → chunk-K2QAUWV4.js} +2 -2
- package/dist/{chunk-DDWQGIHZ.js → chunk-KUWZ7FB4.js} +7 -7
- package/dist/{chunk-JMWZJ34F.js → chunk-KXRFE6WZ.js} +4 -4
- package/dist/{chunk-2S3Q4MKT.js → chunk-LAZ35DAO.js} +32 -71
- package/dist/{chunk-3WDQFXSS.js → chunk-LDCVGTUS.js} +9 -15
- package/dist/{chunk-3WCVUS2Z.js → chunk-LM34XIUW.js} +1 -1
- package/dist/{chunk-GRMD6ODN.js → chunk-LYPTSVAU.js} +1 -1
- package/dist/{chunk-UQHML2OB.js → chunk-MCE7JACC.js} +1 -1
- package/dist/{chunk-OKYZSH7K.js → chunk-NA3IKIDG.js} +3 -3
- package/dist/{chunk-JVKBRZFL.js → chunk-NAH7LEMX.js} +6 -6
- package/dist/{chunk-DRC76AT6.js → chunk-NAPAXLIB.js} +2 -2
- package/dist/{chunk-SUOL5WGL.js → chunk-NYVDMD32.js} +3 -3
- package/dist/{chunk-3XPNEYTJ.js → chunk-OADERJBS.js} +7 -7
- package/dist/{chunk-AEIG6IIV.js → chunk-OJZ4TIKW.js} +1 -1
- package/dist/{chunk-QLOJITTG.js → chunk-OU7GQC44.js} +1 -1
- package/dist/{chunk-VPPCTN32.js → chunk-PCBZGSPX.js} +4 -4
- package/dist/{chunk-PQA5L35J.js → chunk-PMYP5VMV.js} +3 -3
- package/dist/{chunk-UFCGX2Y5.js → chunk-PPWT33XU.js} +1 -1
- package/dist/{chunk-QA3CINFO.js → chunk-PUO2BKUZ.js} +3 -3
- package/dist/{chunk-JSJRXFAF.js → chunk-Q4IUKGIS.js} +1 -1
- package/dist/{chunk-EK2WT3GB.js → chunk-RG4PHZ67.js} +1 -1
- package/dist/{chunk-MLLR4T7L.js → chunk-RURRQTYH.js} +1 -1
- package/dist/{chunk-F4EWIL7N.js → chunk-RXUGNP3O.js} +1 -1
- package/dist/{chunk-22UMHY5K.js → chunk-SDBSHT6L.js} +3 -128
- package/dist/{chunk-NB34A4QI.js → chunk-SGQPKEKW.js} +4 -16
- package/dist/{chunk-DUXSUYCU.js → chunk-SLU5UQQS.js} +3 -3
- package/dist/{chunk-3UBNHWYC.js → chunk-SV3MQQSD.js} +5 -5
- package/dist/{chunk-P5IFJ6LR.js → chunk-THZABUJL.js} +1 -1
- package/dist/{chunk-2BLKGA6O.js → chunk-TM2WCOMA.js} +1 -1
- package/dist/{chunk-XJ5MAYUA.js → chunk-TQBQFD7K.js} +3 -3
- package/dist/{chunk-UVEF3NPK.js → chunk-UBFXWFC4.js} +1 -1
- package/dist/{chunk-KLDWF2YG.js → chunk-UJ6ZPUJL.js} +15 -15
- package/dist/{chunk-MQQDEBRD.js → chunk-V3LLYTKR.js} +9 -9
- package/dist/{chunk-BXJBS7DU.js → chunk-VCYSB2LV.js} +1 -1
- package/dist/{chunk-AUONCCF6.js → chunk-VT3G2KIY.js} +4 -4
- package/dist/{chunk-3HWIA4F7.js → chunk-W4XQUODP.js} +8 -8
- package/dist/{chunk-VDEC6G2D.js → chunk-WAWHCBN7.js} +4 -4
- package/dist/{chunk-BYYJOL4H.js → chunk-WQUEWYUC.js} +4 -4
- package/dist/{chunk-EHBF3L3N.js → chunk-YAJOMB4D.js} +1 -1
- package/dist/{chunk-CXCUBYZB.js → chunk-YPIR4MGL.js} +8 -25
- package/dist/{chunk-KMUKDHAY.js → chunk-ZOS55UTZ.js} +1 -1
- package/dist/{claude-launcher-O6LAYM6F.js → claude-launcher-HQIBJDR5.js} +5 -5
- package/dist/{cli-GPY5WHYF.js → cli-DT7WP7S3.js} +166 -168
- package/dist/{command-PQIDL34C.js → command-HV32TX64.js} +47 -51
- package/dist/{config-2ODEMRET.js → config-HMI672LY.js} +11 -11
- package/dist/{connect-cmd-3PCES6JG.js → connect-cmd-UHR3P5RD.js} +10 -10
- package/dist/{container-start-F75ZOLOI.js → container-start-2JKT434B.js} +43 -47
- package/dist/{context-cleanup-HMJJVD3R.js → context-cleanup-BLWTPDRE.js} +2 -2
- package/dist/{context-show-cmd-EFEVWXG3.js → context-show-cmd-3RU3YJ3Z.js} +11 -11
- package/dist/{control-plane-launch-JSV336S6.js → control-plane-launch-GIZPALCW.js} +13 -13
- package/dist/{demo-record-cmd-T3MRNY4F.js → demo-record-cmd-PMWB2SPV.js} +7 -7
- package/dist/{demo-voice-cmd-QN3F6IVB.js → demo-voice-cmd-VGFHMBY2.js} +17 -17
- package/dist/{docker-U6TIZF6L.js → docker-RT6VSGFO.js} +9 -9
- package/dist/{doctor-RRGWO4OB.js → doctor-ANCGRL4E.js} +45 -49
- package/dist/{emit-artifact-cmd-DMCQEDPP.js → emit-artifact-cmd-VA5WKCBE.js} +16 -16
- package/dist/{emit-cmd-KOG752D3.js → emit-cmd-G3HZHZYK.js} +5 -5
- package/dist/{emit-criteria-cmd-6MBR43QB.js → emit-criteria-cmd-AWRTNA7U.js} +13 -13
- package/dist/{emit-demo-cmd-R7K4R7H3.js → emit-demo-cmd-TEAUWE5X.js} +17 -17
- package/dist/{emit-finding-cmd-U5YXGUP5.js → emit-finding-cmd-JLCPC6PO.js} +13 -13
- package/dist/{emit-step-cmd-SRUU33RB.js → emit-step-cmd-Z5KGLT7I.js} +13 -13
- package/dist/{exec-client-Y6AAFVTZ.js → exec-client-5TKSDT4K.js} +7 -7
- package/dist/{find-unit-7DECI3VM.js → find-unit-SI6DIT7C.js} +12 -12
- package/dist/{findings-cmd-T2TOB6KO.js → findings-cmd-ALFKVD4R.js} +13 -13
- package/dist/{fleet-readiness-KQ5V6IG3.js → fleet-readiness-P5UJOLUD.js} +12 -12
- package/dist/{governing-source-TM2PTQ3U.js → governing-source-YSRMSXE4.js} +18 -18
- package/dist/{guest-init-WU4ZAAV5.js → guest-init-SC6CEVBU.js} +8 -8
- package/dist/{hook-fast-2HV5SDMH.js → hook-fast-ICZZMG3H.js} +1 -1
- package/dist/{hook-install-J6O7OY65.js → hook-install-AGUGR7XA.js} +2 -2
- package/dist/host-checks-EZ5EPRNX.js +79 -0
- package/dist/{pending-IPTBJ23E.js → host-key-2D6FFQUO.js} +7 -7
- package/dist/{image-tag-CNURVQ6A.js → image-tag-RPBPCOYI.js} +7 -7
- package/dist/index.js +4 -4
- package/dist/{init-FIB75BJT.js → init-4OKT7AIJ.js} +41 -45
- package/dist/{init-DUDTTY3W.js → init-IL2R4D7M.js} +41 -45
- package/dist/{init-agent-A63WZ3UR.js → init-agent-GO46DL6K.js} +41 -45
- package/dist/{init-cmd-VM2K5K33.js → init-cmd-VBMZHQOV.js} +24 -25
- package/dist/{init-update-CWP654DO.js → init-update-6VSWW6GU.js} +22 -22
- package/dist/{install-cmd-KNSCKS5G.js → install-cmd-2RQU2UWB.js} +14 -14
- package/dist/{launch-agent-G23B3AZY.js → launch-agent-K6C24LDE.js} +14 -14
- package/dist/{layout-EASZTHPX.js → layout-TGUCFL3Q.js} +2 -2
- package/dist/{logs-FYUUZGVY.js → logs-CUZL3AFN.js} +6 -6
- package/dist/loop-SU4GKRL6.js +89 -0
- package/dist/machine-GOQTHEDK.js +79 -0
- package/dist/{machine-skills-YJTIV4CG.js → machine-skills-RFPVAKMP.js} +2 -2
- package/dist/{mcp-install-cmd-FMIWTXSN.js → mcp-install-cmd-OPVS3ZQC.js} +2 -2
- package/dist/{mcp-serve-cmd-XSC6JKPN.js → mcp-serve-cmd-UAO43IUU.js} +8 -8
- package/dist/{paths-2NKGJEOH.js → paths-5KIREBMX.js} +6 -6
- package/dist/{host-key-7FQTMPTR.js → pending-H6UQEK2S.js} +7 -7
- package/dist/{pidfile-JYF2IO24.js → pidfile-VEGMVMOM.js} +7 -7
- package/dist/{record-6CSKET4N.js → record-L5Y6HKCD.js} +7 -7
- package/dist/{relay-DURC5GWY.js → relay-ONQZR54R.js} +4 -4
- package/dist/{relay-protocol-Y35SJFEB.js → relay-protocol-42IKFMUY.js} +4 -4
- package/dist/{run-cmd-T7GT6KM7.js → run-cmd-ME3OAOUZ.js} +13 -13
- package/dist/{runner-agents-JFQQ7IB4.js → runner-agents-TJTD5U4S.js} +2 -2
- package/dist/{runner-env-AODHERZK.js → runner-env-KR5SKMXP.js} +13 -13
- package/dist/{runner-identity-ZHHB66RZ.js → runner-identity-J7G2KHY3.js} +9 -9
- package/dist/{runner-key-TN5JBLEJ.js → runner-key-3HGGWA73.js} +41 -45
- package/dist/{session-sender-SAS3TI3A.js → session-sender-Y2GJXX7H.js} +16 -16
- package/dist/{setup-cmd-WBFRSOMO.js → setup-cmd-IXBV77NY.js} +12 -12
- package/dist/{setup-wiring-FFAB5KTV.js → setup-wiring-E3P5LDAJ.js} +51 -52
- package/dist/{spec-cmd-PBGFGAXJ.js → spec-cmd-GDIG3JPV.js} +14 -14
- package/dist/{starter-pack-DQV55I24.js → starter-pack-PRGAFNA4.js} +3 -3
- package/dist/{state-LU4QEDY2.js → state-5BT3FXM3.js} +7 -7
- package/dist/{status-2NQ4ECP3.js → status-37XD27H5.js} +41 -45
- package/dist/{sync-cmd-4JT3G5OV.js → sync-cmd-3BPR3UXM.js} +15 -15
- package/dist/update-steps-W7H6S7ZY.js +80 -0
- package/dist/{watch-QHYJED4N.js → watch-EO7TD7O4.js} +15 -15
- package/dist/{work-claim-cmd-DX5GOTQH.js → work-claim-cmd-E66SANC5.js} +19 -19
- package/dist/{work-cmd-EU4NBOLZ.js → work-cmd-SO5CMIJX.js} +13 -13
- package/dist/{work-comment-cmd-T755RNST.js → work-comment-cmd-PZWIE2SZ.js} +15 -15
- package/dist/{work-demo-cmd-T5GOAB6O.js → work-demo-cmd-SV5WYN4W.js} +13 -13
- package/dist/{work-logs-cmd-T63RWLKG.js → work-logs-cmd-SNZ5QEVC.js} +13 -13
- package/dist/{work-mock-cmd-KSN7PZGO.js → work-mock-cmd-CSOJKS2Q.js} +13 -13
- package/dist/{work-needs-attention-cmd-NGKNSYT2.js → work-needs-attention-cmd-HADJ56RT.js} +13 -13
- package/dist/{work-no-change-cmd-74TGMQHY.js → work-no-change-cmd-M4BB2P3J.js} +13 -13
- package/dist/{work-open-pr-cmd-D2EBUVDO.js → work-open-pr-cmd-XE2IJHGF.js} +14 -14
- package/dist/{work-pr-cmd-2NZUROBY.js → work-pr-cmd-IY2BMU4X.js} +13 -13
- package/dist/{work-proofs-cmd-M56HY7FO.js → work-proofs-cmd-EAQJ3RT3.js} +15 -15
- package/dist/{work-proofs-record-LRZ4KDWU.js → work-proofs-record-AQIHZQXG.js} +22 -22
- package/dist/{work-stop-cmd-IZPPBGGN.js → work-stop-cmd-VHNBWARI.js} +13 -13
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +3 -3
- package/skill-pack/maintained/outerlayer-build/references/agent-briefs.md +1 -2
- package/skill-pack/maintained/outerlayer-build/references/evidence.md +3 -3
- package/skill-pack/maintained/outerlayer-build/references/release.md +2 -2
- package/skill-pack/shipped.json +0 -4
- package/dist/host-checks-NAGX2VDD.js +0 -83
- package/dist/loop-JVCXNJII.js +0 -93
- package/dist/machine-4TGRLFX6.js +0 -83
- package/dist/update-steps-HF7QE6DP.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,114 +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
|
-
const workflows = build["workflows"];
|
|
7780
|
-
if (workflows !== void 0 && workflows !== "allow" && workflows !== "deny") {
|
|
7781
|
-
return fail(`build.workflows has value "${inlineText(String(workflows))}" \u2014 use allow or deny`);
|
|
7782
|
-
}
|
|
7783
|
-
}
|
|
7784
|
-
let testProof = null;
|
|
7785
|
-
let criteriaMissing = null;
|
|
7786
|
-
let criteriaJudge = null;
|
|
7787
|
-
let criteriaJudgeBrief = null;
|
|
7788
|
-
if (root["criteria"] !== void 0) {
|
|
7789
|
-
const criteria = root["criteria"];
|
|
7790
|
-
if (!isRecord(criteria)) return fail("criteria must be a mapping");
|
|
7791
|
-
for (const key of Object.keys(criteria)) {
|
|
7792
|
-
if (key !== "replace" && key !== "test_proof" && key !== "missing" && key !== "judge" && key !== "judge_brief") {
|
|
7793
|
-
return fail(`unknown key "criteria.${inlineText(key)}"`);
|
|
7794
|
-
}
|
|
7795
|
-
}
|
|
7796
|
-
const rawTestProof = criteria["test_proof"];
|
|
7797
|
-
if (rawTestProof !== void 0) {
|
|
7798
|
-
if (rawTestProof !== "any" && rawTestProof !== "ci") {
|
|
7799
|
-
return fail(`criteria.test_proof has value "${inlineText(String(rawTestProof))}" \u2014 use any or ci`);
|
|
7800
|
-
}
|
|
7801
|
-
testProof = rawTestProof;
|
|
7802
|
-
}
|
|
7803
|
-
const rawMissing = criteria["missing"];
|
|
7804
|
-
if (rawMissing !== void 0) {
|
|
7805
|
-
const level = parseLevel(rawMissing);
|
|
7806
|
-
if (level === null) {
|
|
7807
|
-
return fail(`criteria.missing has value "${inlineText(String(rawMissing))}" \u2014 use warn, info, or off`);
|
|
7808
|
-
}
|
|
7809
|
-
criteriaMissing = level;
|
|
7810
|
-
}
|
|
7811
|
-
const rawJudge = criteria["judge"];
|
|
7812
|
-
if (rawJudge !== void 0) {
|
|
7813
|
-
const level = parseLevel(rawJudge);
|
|
7814
|
-
if (level === null) {
|
|
7815
|
-
return fail(`criteria.judge has value "${inlineText(String(rawJudge))}" \u2014 use warn, info, or off`);
|
|
7816
|
-
}
|
|
7817
|
-
criteriaJudge = level;
|
|
7818
|
-
}
|
|
7819
|
-
const rawBrief = criteria["judge_brief"];
|
|
7820
|
-
if (rawBrief !== void 0) {
|
|
7821
|
-
if (!isRepositoryPath(rawBrief)) {
|
|
7822
|
-
return fail(`criteria.judge_brief has value "${inlineText(String(rawBrief))}" \u2014 use a file path from the repository root`);
|
|
7823
|
-
}
|
|
7824
|
-
criteriaJudgeBrief = rawBrief;
|
|
7825
|
-
}
|
|
7826
|
-
const replace = criteria["replace"];
|
|
7827
|
-
if (replace !== void 0 && replace !== "people" && replace !== "anyone") {
|
|
7828
|
-
return fail(`criteria.replace has value "${inlineText(String(replace))}" \u2014 use people or anyone`);
|
|
7829
|
-
}
|
|
7830
|
-
}
|
|
7831
|
-
let mergeGate = null;
|
|
7832
|
-
if (root["merge_gate"] !== void 0) {
|
|
7833
|
-
mergeGate = parseMergeGate(root["merge_gate"]);
|
|
7834
|
-
if (mergeGate === null) {
|
|
7835
|
-
return fail(
|
|
7836
|
-
`merge_gate has value "${inlineText(String(root["merge_gate"]))}" \u2014 use none or on-flag`
|
|
7837
|
-
);
|
|
7838
|
-
}
|
|
7839
|
-
}
|
|
7840
|
-
let review = null;
|
|
7841
|
-
if (root["review"] !== void 0) {
|
|
7842
|
-
review = parseReview(root["review"]);
|
|
7843
|
-
if (review === null) {
|
|
7844
|
-
return fail(`review has value "${inlineText(String(root["review"]))}" \u2014 use required or optional`);
|
|
7845
|
-
}
|
|
7846
|
-
}
|
|
7847
|
-
return { mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief, problems };
|
|
7848
|
-
}
|
|
7849
7740
|
function splitJudgeFile(content) {
|
|
7850
7741
|
const text = content.replace(/^\uFEFF/, "");
|
|
7851
7742
|
const lines = text.split(/\r?\n/);
|
|
@@ -7987,31 +7878,15 @@ function parseJudgeFile(file, problems) {
|
|
|
7987
7878
|
judge: { instructions, subjects: forEach === "criterion" ? "criteria" : "none" }
|
|
7988
7879
|
};
|
|
7989
7880
|
}
|
|
7990
|
-
function parsePolicy(
|
|
7991
|
-
var _a, _b, _c, _d, _e;
|
|
7881
|
+
function parsePolicy(judgeFiles) {
|
|
7992
7882
|
const problems = [];
|
|
7993
|
-
const policy = policyFile ? parsePolicyFile(policyFile) : {
|
|
7994
|
-
mergeGate: null,
|
|
7995
|
-
review: null,
|
|
7996
|
-
testProof: null,
|
|
7997
|
-
criteriaMissing: null,
|
|
7998
|
-
criteriaJudge: null,
|
|
7999
|
-
criteriaJudgeBrief: null,
|
|
8000
|
-
problems: []
|
|
8001
|
-
};
|
|
8002
|
-
problems.push(...policy.problems);
|
|
8003
|
-
const mergeGate = (_a = policy.mergeGate) != null ? _a : "none";
|
|
8004
|
-
const review = (_b = policy.review) != null ? _b : "required";
|
|
8005
|
-
const testProof = (_c = policy.testProof) != null ? _c : "any";
|
|
8006
|
-
const criteriaMissing = (_d = policy.criteriaMissing) != null ? _d : policyFile !== null ? "warn" : "off";
|
|
8007
|
-
const criteriaJudge = (_e = policy.criteriaJudge) != null ? _e : "warn";
|
|
8008
7883
|
const customs = [];
|
|
8009
7884
|
for (const file of [...judgeFiles].sort((a, b) => a.path < b.path ? -1 : 1)) {
|
|
8010
7885
|
const def = parseJudgeFile(file, problems);
|
|
8011
7886
|
if (def !== null) customs.push(def);
|
|
8012
7887
|
}
|
|
8013
7888
|
customs.sort((a, b) => a.id < b.id ? -1 : 1);
|
|
8014
|
-
return { customs,
|
|
7889
|
+
return { customs, problems };
|
|
8015
7890
|
}
|
|
8016
7891
|
var FILES_PLACEHOLDER = "{files}";
|
|
8017
7892
|
function isRecord2(value) {
|
|
@@ -12591,4 +12466,4 @@ function knownTargetsLine(agents = defaultAgents()) {
|
|
|
12591
12466
|
return `Known targets: ${targetIds(agents).join(", ")}.`;
|
|
12592
12467
|
}
|
|
12593
12468
|
|
|
12594
|
-
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,
|
|
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-
|
|
6
|
-
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-
|
|
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 {
|
|
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-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
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-
|
|
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-
|
|
4
|
-
import { removeRetiredSkills } from './chunk-
|
|
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-
|
|
7
|
-
import { withTokenHeader } from './chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
4
|
-
import { strippedVariables, jobAgent, judgeAgent, agentsToHold, runnerAgents } from './chunk-
|
|
5
|
-
import { defaultAgents } from './chunk-
|
|
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-
|
|
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-
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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-UQHML2OB.js';
|
|
9
9
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
10
|
-
import { checkFormerSkillNames } from './chunk-
|
|
11
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
12
|
-
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
1057
|
-
const { listedAgents } = await import('./runner-agents-
|
|
1058
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
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-
|
|
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-
|
|
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-
|
|
4
|
+
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-YAJOMB4D.js';
|
|
5
5
|
import { DEFAULT_DASHBOARD } from './chunk-GQADCHPA.js';
|
|
6
|
-
import { cliFetch, resolveGatewayCredentials } from './chunk-
|
|
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-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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" &&
|
|
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,
|
|
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-
|
|
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-
|
|
4
|
-
import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-
|
|
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-
|
|
7
|
-
import { runnerDir, RUNNER_DIR_MODE } from './chunk-
|
|
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-
|
|
5
|
-
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-
|
|
6
|
-
import { buildRefusalReason } from './chunk-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-
|
|
11
|
-
import { SandboxError, describeSandboxError } from './chunk-
|
|
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-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
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-
|
|
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.
|
|
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-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
5
|
-
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-
|
|
6
|
-
import { builderDiskPinned, agentIdOfCommand, defaultCommandFor, headlessAgentIds } from './chunk-
|
|
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-
|
|
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-
|
|
4
|
-
import { skillsBaseFor } from './chunk-
|
|
5
|
-
import { POLICY_PATH, POLICY_CONTENT } from './chunk-NB34A4QI.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-
|
|
7
|
+
import { hasSymlinkComponent } from './chunk-H2IVCCVU.js';
|
|
9
8
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
10
|
-
import { resolvePackRoot,
|
|
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(),
|
|
18
|
-
|
|
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,
|
|
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
|
|
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-
|
|
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';
|