@outerlayer/cli 0.41.0-next.20261118123932 → 0.41.0-next.20261118133326
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 -6
- package/dist/{agent-credential-I3MYJNGM.js → agent-credential-6LB2PVY4.js} +5 -5
- package/dist/agent-setup-5PUSFLM4.js +43 -0
- package/dist/{agent-subcommand-RSH763NQ.js → agent-subcommand-R5WLS6HM.js} +4 -4
- package/dist/{artifact-link-cmd-B6QPCFUL.js → artifact-link-cmd-BCGCPV4E.js} +2 -2
- package/dist/{bridge-D5AQ2BCT.js → bridge-C6TEOTHM.js} +8 -8
- package/dist/{build-KJHCMZVH.js → build-5HZQZ4E7.js} +14 -14
- package/dist/{build-disk-VTRFNLDQ.js → build-disk-5JU4JJJA.js} +12 -12
- package/dist/build-info.json +1 -1
- package/dist/{builder-UXAX7JKB.js → builder-OFGNOCPX.js} +11 -11
- package/dist/caller-BORJDGNS.js +25 -0
- package/dist/{check-2BQ4BS5R.js → check-P23F6WZY.js} +55 -55
- package/dist/{chunk-KDBMWPDP.js → chunk-2IDR4YTQ.js} +1 -1
- package/dist/{chunk-2JO3EPBG.js → chunk-2MI2A3RS.js} +1 -1
- package/dist/{chunk-LKYVLK7V.js → chunk-3SGM2N7J.js} +1 -1
- package/dist/{chunk-JU7VPCVL.js → chunk-3ZNQIPRH.js} +6 -6
- package/dist/{chunk-QLUK7R26.js → chunk-5ARFZE2G.js} +7 -7
- package/dist/{chunk-AEZAS6MG.js → chunk-5ODRMXXT.js} +3 -3
- package/dist/{chunk-W4Q4GFDF.js → chunk-6I3MSNFZ.js} +4 -4
- package/dist/{chunk-LKGQY4GP.js → chunk-6UGP7HU3.js} +9 -9
- package/dist/{chunk-7EBDSDVC.js → chunk-7RSV5EHL.js} +4 -4
- package/dist/{chunk-BHERG5MK.js → chunk-7Y5JCEG7.js} +30 -30
- package/dist/{chunk-LFWNVVLU.js → chunk-AMHFFBLI.js} +1 -1
- package/dist/{chunk-UYP6FO27.js → chunk-ATXH2352.js} +2 -2
- package/dist/{chunk-BIFQP6OI.js → chunk-AU77QN2U.js} +3 -3
- package/dist/{chunk-C7NJN5CV.js → chunk-B34IOYGJ.js} +3 -3
- package/dist/{chunk-NL7UKJUB.js → chunk-BYP3WBEK.js} +11 -11
- package/dist/{chunk-CEIILR7M.js → chunk-CDDEIMOJ.js} +2 -2
- package/dist/{chunk-E3PYD2IM.js → chunk-CGUXNCLQ.js} +6 -6
- package/dist/{chunk-WRNZGAI5.js → chunk-CJDVDTA7.js} +4 -4
- package/dist/{chunk-LL64MSPN.js → chunk-CS7DIQMJ.js} +8 -8
- package/dist/{chunk-2RCTRQEI.js → chunk-CX3CFZFU.js} +10 -10
- package/dist/{chunk-F4N56BLV.js → chunk-D3RGE3HV.js} +1 -1
- package/dist/{chunk-N6LLARIY.js → chunk-E75O4U2I.js} +98 -190
- package/dist/{chunk-LVKUAUTK.js → chunk-ETE2OZTJ.js} +2 -2
- package/dist/{chunk-WGTK73WU.js → chunk-EY4JXIF3.js} +1 -1
- package/dist/{chunk-NEDFYNDB.js → chunk-F6CFIUBC.js} +1 -1
- package/dist/{chunk-V2F4CH7C.js → chunk-FWDXZBVV.js} +8 -8
- package/dist/{chunk-VBZN3X4F.js → chunk-FYFCGONI.js} +18 -59
- package/dist/{chunk-PDFCYYCC.js → chunk-GBQRVYYE.js} +3 -3
- package/dist/{chunk-XEETBQKD.js → chunk-GQADCHPA.js} +1 -1
- package/dist/{chunk-UUWZ6TYF.js → chunk-HFOQUCL2.js} +3 -3
- package/dist/{chunk-FJTQ43VY.js → chunk-IBQZUWTL.js} +1 -1
- package/dist/{chunk-LRD46PQW.js → chunk-IDTAWA7V.js} +1 -1
- package/dist/{chunk-FIGHNRZQ.js → chunk-J5H6WR2A.js} +1 -1
- package/dist/{chunk-LICJ4YCK.js → chunk-JQV6TO4U.js} +7 -7
- package/dist/{chunk-CKOO653G.js → chunk-KPFVA2SI.js} +2 -2
- package/dist/{chunk-6X7XFVPC.js → chunk-LKXQH4XD.js} +1 -1
- package/dist/{chunk-ZA3P7POQ.js → chunk-LVGMC65A.js} +7 -7
- package/dist/{chunk-454DLLQX.js → chunk-MJQPWEV3.js} +3 -3
- package/dist/{chunk-VAFS3OBF.js → chunk-MNZWJUSM.js} +3 -3
- package/dist/{chunk-SLBFHRVU.js → chunk-MTDJSXND.js} +1 -1
- package/dist/{chunk-GO3RR3VM.js → chunk-MYK6AI42.js} +46 -47
- package/dist/{chunk-KVVPPFOV.js → chunk-MZVZ2DVG.js} +8 -8
- package/dist/{chunk-HGFQMUJ5.js → chunk-N3BYRIUK.js} +4 -4
- package/dist/{chunk-DRSF23ZR.js → chunk-NOHWR7UT.js} +1 -1
- package/dist/{chunk-Y6U6TBWO.js → chunk-NU4IZ33U.js} +1 -1
- package/dist/{chunk-AYDWSGND.js → chunk-NXJJTGRJ.js} +1 -1
- package/dist/{chunk-NEANSJG4.js → chunk-OOIY2XVC.js} +5 -5
- package/dist/{chunk-L35X54DH.js → chunk-OZNR42RD.js} +7 -7
- package/dist/{chunk-XWFBE4IO.js → chunk-PLUBKVJB.js} +6 -6
- package/dist/{chunk-KF3O2B2C.js → chunk-POADOTEW.js} +1 -1
- package/dist/{chunk-7G5CPEG5.js → chunk-PTBEQA3N.js} +1 -1
- package/dist/{chunk-VLU2GLKR.js → chunk-QYDBYCSO.js} +6 -6
- package/dist/{chunk-PN4CHF7X.js → chunk-QZPY2RXY.js} +3 -3
- package/dist/{chunk-DRQQ25TL.js → chunk-RATMFIJV.js} +5 -5
- package/dist/{chunk-NOPBVN4D.js → chunk-RLFTRWFC.js} +10 -10
- package/dist/{chunk-5FCVKC5Z.js → chunk-ROQQR3GU.js} +4 -4
- package/dist/{chunk-HOFY6FVJ.js → chunk-RQ2R4AER.js} +3 -3
- package/dist/{chunk-C6WDT6VX.js → chunk-RW5M7JY2.js} +1 -1
- package/dist/{chunk-VDNMVUJA.js → chunk-SCA5GQKS.js} +1 -1
- package/dist/{chunk-ONNIMNZH.js → chunk-SKBISHLG.js} +2 -2
- package/dist/{chunk-7EHPZMZL.js → chunk-SYH4PJXP.js} +3 -3
- package/dist/{chunk-U2ETU6EK.js → chunk-TX2YKTQO.js} +1 -1
- package/dist/{chunk-L3VFRZHY.js → chunk-UMUZ4GQ2.js} +4 -4
- package/dist/{chunk-QW6TKDBL.js → chunk-V3NMSDOC.js} +1 -1
- package/dist/{chunk-CSVVNMXL.js → chunk-VBFAMLTB.js} +1 -1
- package/dist/{chunk-Y2M5P4X4.js → chunk-W34A7KQG.js} +1 -1
- package/dist/{chunk-RLPJMLXB.js → chunk-WEDN75TI.js} +1 -1
- package/dist/{chunk-DOSVADLO.js → chunk-WKSZI4YX.js} +9 -9
- package/dist/{chunk-DSPEJGOW.js → chunk-X5PALYND.js} +5 -5
- package/dist/{chunk-XATMBQYX.js → chunk-X5QQYAQN.js} +1 -1
- package/dist/{chunk-WOWX3FJR.js → chunk-XC4FEPLQ.js} +5 -5
- package/dist/{chunk-TPBPSQCF.js → chunk-XNKPRBCH.js} +8 -8
- package/dist/{chunk-IIPJECUQ.js → chunk-YJB3SFHT.js} +4 -4
- package/dist/{chunk-IHLN5VGD.js → chunk-Z4RFAK2H.js} +1 -1
- package/dist/{chunk-GFIL4S2L.js → chunk-ZL2JW7WO.js} +3 -3
- package/dist/{claude-launcher-O5FZYFQU.js → claude-launcher-BF6EZD3J.js} +7 -7
- package/dist/{cli-SIOIFXEN.js → cli-TDXQHCF2.js} +171 -171
- package/dist/{command-7HAHQWDR.js → command-YDTUAZUZ.js} +52 -52
- package/dist/{config-WGQATFVN.js → config-HVJJFKV7.js} +13 -13
- package/dist/{connect-cmd-654I4LV4.js → connect-cmd-PNPKCNOT.js} +14 -14
- package/dist/{container-start-2IJSVRAJ.js → container-start-M6A347Y5.js} +49 -49
- package/dist/{context-cleanup-HFSRIDRZ.js → context-cleanup-OZXSR3DS.js} +4 -4
- package/dist/{context-show-cmd-N6EA4H2R.js → context-show-cmd-G7A2UHEM.js} +15 -15
- package/dist/{control-plane-launch-XGJ5OY6T.js → control-plane-launch-JLQNFYYQ.js} +15 -15
- package/dist/{demo-record-cmd-GAURDSSR.js → demo-record-cmd-JSLTJWZV.js} +9 -9
- package/dist/{demo-voice-cmd-ZSAAAWLK.js → demo-voice-cmd-UGUSIJWV.js} +21 -21
- package/dist/{dist-PR6IJSRV.js → dist-WEDCUAFS.js} +2 -2
- package/dist/{docker-FVMJU75D.js → docker-QTNF3YGO.js} +11 -11
- package/dist/{doctor-OC3RN6MW.js → doctor-ZPXVE46E.js} +51 -51
- package/dist/{emit-artifact-cmd-LQ623M4X.js → emit-artifact-cmd-BK6B64L7.js} +20 -20
- package/dist/{emit-cmd-I4MGKLZX.js → emit-cmd-ZTICDJW3.js} +7 -7
- package/dist/{emit-criteria-cmd-KBYEOZLP.js → emit-criteria-cmd-2CNVXEWX.js} +17 -17
- package/dist/{emit-demo-cmd-EFQF7TUP.js → emit-demo-cmd-4XJAXL2E.js} +21 -21
- package/dist/{emit-finding-cmd-LVH26RPD.js → emit-finding-cmd-2AZRE7UI.js} +17 -17
- package/dist/{emit-step-cmd-Y3IGA6WM.js → emit-step-cmd-54Z7FKNL.js} +17 -17
- package/dist/{exec-client-DHNQONI2.js → exec-client-EOUGSX2G.js} +9 -9
- package/dist/{find-unit-UOIQ7AEV.js → find-unit-TFQHEPEJ.js} +14 -14
- package/dist/{findings-cmd-WFZXWYG4.js → findings-cmd-XEBPAELT.js} +17 -17
- package/dist/{fleet-readiness-62FJXOXK.js → fleet-readiness-LZ2DHKTV.js} +15 -15
- package/dist/{governing-source-Z3OXKSB5.js → governing-source-J2JBGYEL.js} +22 -22
- package/dist/{guest-init-CH6J2HKB.js → guest-init-TXNMQKI4.js} +10 -10
- package/dist/{hook-fast-4QOQCBWV.js → hook-fast-OMRT3KDA.js} +1 -1
- package/dist/{hook-install-RAETUCCH.js → hook-install-FRK3VKWV.js} +4 -4
- package/dist/host-checks-SLET5FMA.js +83 -0
- package/dist/host-key-XGECHBJU.js +20 -0
- package/dist/{image-tag-RUJ5YPTB.js → image-tag-QIR5NFE6.js} +9 -9
- package/dist/index.js +4 -4
- package/dist/init-I2AWF66M.js +83 -0
- package/dist/{init-RUD54PTF.js → init-J4S65OAZ.js} +47 -47
- package/dist/{init-agent-ISZJN3ST.js → init-agent-AVG5KJ5S.js} +47 -47
- package/dist/init-cmd-32J3RTIV.js +55 -0
- package/dist/{init-update-Y2MOPWRY.js → init-update-6MORKWIX.js} +26 -26
- package/dist/install-cmd-ZTOXZUYZ.js +28 -0
- package/dist/launch-agent-6SOYTFN3.js +28 -0
- package/dist/{layout-L52YULMN.js → layout-KXYCAXFE.js} +4 -4
- package/dist/{login-browser-J5BFWBCZ.js → login-browser-FGB3SPPL.js} +2 -2
- package/dist/{logs-FLFCAU43.js → logs-BAGVRH6O.js} +8 -8
- package/dist/loop-7222NF5Z.js +93 -0
- package/dist/machine-ENBKFB2P.js +83 -0
- package/dist/{machine-skills-VOO5C4X4.js → machine-skills-P4E7ZHHE.js} +4 -4
- package/dist/{mcp-install-cmd-MLXGDV5E.js → mcp-install-cmd-B2PYJST7.js} +4 -4
- package/dist/{mcp-serve-cmd-WXFGZDFM.js → mcp-serve-cmd-NODAY6N7.js} +10 -10
- package/dist/{paths-FP6RFQLT.js → paths-E7MMZLIR.js} +8 -8
- package/dist/pending-DORA7JYQ.js +20 -0
- package/dist/{pidfile-VZ37FTAR.js → pidfile-OTTUMCR5.js} +9 -9
- package/dist/{record-7HI6JQOT.js → record-FQ5Y4QXN.js} +9 -9
- package/dist/{relay-G54IZXQG.js → relay-X5KHTSMC.js} +6 -6
- package/dist/{relay-protocol-AZICSZVX.js → relay-protocol-WRHSJK7X.js} +6 -6
- package/dist/{run-cmd-BBD4EXH6.js → run-cmd-FQTEMGGF.js} +17 -17
- package/dist/{runner-agents-SAQYJZCD.js → runner-agents-YA6Z3WAU.js} +4 -4
- package/dist/runner-env-YFKTTX6Z.js +26 -0
- package/dist/{runner-identity-3YLJMM4D.js → runner-identity-34YUL365.js} +11 -11
- package/dist/{runner-key-WC5WBJGV.js → runner-key-DZFIC5TA.js} +47 -47
- package/dist/{session-sender-UWGXAER2.js → session-sender-UMDVOJYH.js} +20 -20
- package/dist/{setup-cmd-HAGNGFBS.js → setup-cmd-2LYTDAO4.js} +18 -18
- package/dist/{setup-wiring-D2HLYTVS.js → setup-wiring-WOG3GVJV.js} +54 -54
- package/dist/{spec-cmd-XPWQ4T54.js → spec-cmd-QTTLZHHK.js} +18 -18
- package/dist/{starter-pack-IGBCFHHQ.js → starter-pack-YBK7UTHI.js} +5 -5
- package/dist/state-ITAPHJA5.js +20 -0
- package/dist/{status-HCAHJHG6.js → status-RR57VBDY.js} +47 -47
- package/dist/{sync-cmd-TSGAPHFF.js → sync-cmd-HSCMD5VV.js} +19 -19
- package/dist/update-steps-524DMSWB.js +84 -0
- package/dist/{watch-JXAA3U7K.js → watch-VMHSVFQD.js} +19 -19
- package/dist/{work-claim-cmd-CSDADS7K.js → work-claim-cmd-IVP3X776.js} +23 -23
- package/dist/{work-cmd-66DJQMMW.js → work-cmd-JSYWV6EZ.js} +17 -17
- package/dist/{work-comment-cmd-Z4U2Y5T2.js → work-comment-cmd-NZH7KHPA.js} +19 -19
- package/dist/{work-demo-cmd-E5Q3EKV5.js → work-demo-cmd-IY32FWJJ.js} +17 -17
- package/dist/{work-logs-cmd-G7P4VCTO.js → work-logs-cmd-4S4SNOGM.js} +17 -17
- package/dist/{work-mock-cmd-5IBKSKB2.js → work-mock-cmd-ZJLS23OP.js} +17 -17
- package/dist/{work-needs-attention-cmd-ALNTMUS6.js → work-needs-attention-cmd-FYWFQBPP.js} +17 -17
- package/dist/{work-no-change-cmd-YB4VOSIG.js → work-no-change-cmd-JMO4NWMJ.js} +17 -17
- package/dist/{work-open-pr-cmd-AI7QD33K.js → work-open-pr-cmd-FDMFZCWQ.js} +18 -18
- package/dist/{work-pr-cmd-AGJ6LOUW.js → work-pr-cmd-YWFH2IXD.js} +17 -17
- package/dist/{work-proofs-cmd-TFI2PP4I.js → work-proofs-cmd-IYQIT77X.js} +19 -19
- package/dist/{work-proofs-record-ZAOXECGN.js → work-proofs-record-4VPFC6R6.js} +25 -25
- package/dist/{work-stop-cmd-JLSD4GJU.js → work-stop-cmd-JX63CEGC.js} +17 -17
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +5 -5
- package/skill-pack/maintained/outerlayer-amend/references/check-items.md +16 -16
- package/skill-pack/maintained/outerlayer-amend/references/failed-checks.md +2 -2
- package/skill-pack/maintained/outerlayer-build/SKILL.md +5 -5
- package/skill-pack/maintained/outerlayer-build/references/release.md +1 -1
- package/skill-pack/maintained/outerlayer-cli/references/find-out-why-a-build-ended.md +2 -2
- package/dist/agent-setup-7FKQGCSO.js +0 -43
- package/dist/caller-XEOO6PSB.js +0 -25
- package/dist/host-checks-37CVOUM5.js +0 -83
- package/dist/host-key-UPZOPBZP.js +0 -20
- package/dist/init-CNCJQQ7Y.js +0 -83
- package/dist/init-cmd-VH7S2GEM.js +0 -55
- package/dist/install-cmd-IOM277GD.js +0 -28
- package/dist/launch-agent-B44AUNLN.js +0 -28
- package/dist/loop-SKXGHRG2.js +0 -93
- package/dist/machine-NQUFP4XE.js +0 -83
- package/dist/pending-SJXNCRQM.js +0 -20
- package/dist/runner-env-2XVR2AKP.js +0 -26
- package/dist/state-UDM6QYQ4.js +0 -20
- package/dist/update-steps-P2X653PW.js +0 -84
|
@@ -5,10 +5,10 @@ import { CLAUDE_CODE, CODEX, OPENCODE, NATIVE_AGENTS, LEGACY_AGENT, homeRelative
|
|
|
5
5
|
import { MAINTAINED_SKILLS } from './chunk-VSBG7MMU.js';
|
|
6
6
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
|
-
import { WARNING_CODES, forkFor, RAW_MIRROR_SEGMENTS, compareVersions, WarningCollector, isNewerThanSupported, bucketsFromTurns, costOfUsage, ZSTD_UNSUPPORTED_MESSAGE } from './chunk-
|
|
9
|
-
import { CODE_REVIEW_NAME, CRITERIA_JUDGE_NAME, RESERVED_EMIT_NAMES, EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, SPEED_MAX_LENGTH } from './chunk-
|
|
8
|
+
import { WARNING_CODES, forkFor, RAW_MIRROR_SEGMENTS, compareVersions, WarningCollector, isNewerThanSupported, bucketsFromTurns, costOfUsage, ZSTD_UNSUPPORTED_MESSAGE } from './chunk-2IDR4YTQ.js';
|
|
9
|
+
import { CODE_REVIEW_NAME, CRITERIA_JUDGE_NAME, RESERVED_EMIT_NAMES, EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, SPEED_MAX_LENGTH } from './chunk-GBQRVYYE.js';
|
|
10
10
|
import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
|
|
11
|
-
import { existsSync, readFileSync, mkdirSync, writeFileSync,
|
|
11
|
+
import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync, renameSync, realpathSync, readlinkSync, symlinkSync, readdirSync, copyFileSync, statSync, accessSync, constants, lstatSync } from 'fs';
|
|
12
12
|
import { join as join$1, dirname, sep, basename, relative, delimiter } from 'path';
|
|
13
13
|
import { fileURLToPath } from 'url';
|
|
14
14
|
import { spawnSync } from 'child_process';
|
|
@@ -7722,23 +7722,14 @@ function normalizeRepoName(repo) {
|
|
|
7722
7722
|
return repo.trim().toLowerCase();
|
|
7723
7723
|
}
|
|
7724
7724
|
var CONTEXT_PIN_FILENAME = ".outerlayer-pin.json";
|
|
7725
|
-
var
|
|
7726
|
-
var MAX_BRIEF_LENGTH = 300;
|
|
7727
|
-
var EXTENDS_PROBLEM = '"extends" is not a policy key \u2014 every check is a file in .outerlayer/validators/. Delete the extends line';
|
|
7728
|
-
var FREED_BUILTINS = /* @__PURE__ */ new Set(["ci-passed", "code-review-ran"]);
|
|
7729
|
-
var RETIRED_BUILTINS = /* @__PURE__ */ new Set([
|
|
7730
|
-
"red-then-green",
|
|
7731
|
-
"no-test-tampering",
|
|
7732
|
-
"tests-after-last-edit",
|
|
7733
|
-
"commits-from-sessions"
|
|
7734
|
-
]);
|
|
7725
|
+
var EXTENDS_PROBLEM = '"extends" is not a policy key \u2014 every judge is a file in .outerlayer/judges/. Delete the extends line';
|
|
7735
7726
|
var SLUG_PATTERN2 = /^[a-z][a-z0-9._-]{0,63}$/;
|
|
7736
7727
|
var CONTROL_CHARS = /\p{Cc}/u;
|
|
7737
7728
|
function inlineText(raw, max = 80) {
|
|
7738
7729
|
const flat = raw.replace(/\p{Cc}+/gu, " ");
|
|
7739
7730
|
return flat.length > max ? `${flat.slice(0, max - 1)}\u2026` : flat;
|
|
7740
7731
|
}
|
|
7741
|
-
var
|
|
7732
|
+
var MAX_DESCRIPTION_LENGTH = 200;
|
|
7742
7733
|
var MAX_NAME_LENGTH = 40;
|
|
7743
7734
|
var MAX_GLOB_LENGTH = 200;
|
|
7744
7735
|
var MAX_WHEN_PATHS = 20;
|
|
@@ -7763,7 +7754,7 @@ function parsePolicyFile(file) {
|
|
|
7763
7754
|
const problems = [];
|
|
7764
7755
|
const fail = (problem) => {
|
|
7765
7756
|
problems.push({ file: file.path, problem });
|
|
7766
|
-
return {
|
|
7757
|
+
return { mergeGate: null, review: null, testProof: null, criteriaMissing: null, criteriaJudge: null, criteriaJudgeBrief: null, problems };
|
|
7767
7758
|
};
|
|
7768
7759
|
let root;
|
|
7769
7760
|
try {
|
|
@@ -7775,7 +7766,7 @@ function parsePolicyFile(file) {
|
|
|
7775
7766
|
if (!isRecord(root)) return fail("must be a YAML mapping");
|
|
7776
7767
|
if (root["extends"] !== void 0) return fail(EXTENDS_PROBLEM);
|
|
7777
7768
|
for (const key of Object.keys(root)) {
|
|
7778
|
-
if (key !== "
|
|
7769
|
+
if (key !== "merge_gate" && key !== "review" && key !== "build" && key !== "criteria") {
|
|
7779
7770
|
return fail(`unknown key "${inlineText(key)}"`);
|
|
7780
7771
|
}
|
|
7781
7772
|
}
|
|
@@ -7785,10 +7776,6 @@ function parsePolicyFile(file) {
|
|
|
7785
7776
|
for (const key of Object.keys(build)) {
|
|
7786
7777
|
if (key !== "workflows") return fail(`unknown key "build.${inlineText(key)}"`);
|
|
7787
7778
|
}
|
|
7788
|
-
const workflows = build["workflows"];
|
|
7789
|
-
if (workflows !== void 0 && workflows !== "allow" && workflows !== "deny") {
|
|
7790
|
-
return fail(`build.workflows has value "${inlineText(String(workflows))}" \u2014 use allow or deny`);
|
|
7791
|
-
}
|
|
7792
7779
|
}
|
|
7793
7780
|
let testProof = null;
|
|
7794
7781
|
let criteriaMissing = null;
|
|
@@ -7853,70 +7840,74 @@ function parsePolicyFile(file) {
|
|
|
7853
7840
|
return fail(`review has value "${inlineText(String(root["review"]))}" \u2014 use required or optional`);
|
|
7854
7841
|
}
|
|
7855
7842
|
}
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
overrides[id] = level;
|
|
7866
|
-
}
|
|
7867
|
-
}
|
|
7868
|
-
return { overrides, mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief, problems };
|
|
7843
|
+
return { mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief, problems };
|
|
7844
|
+
}
|
|
7845
|
+
function splitJudgeFile(content) {
|
|
7846
|
+
const text = content.replace(/^\uFEFF/, "");
|
|
7847
|
+
const lines = text.split(/\r?\n/);
|
|
7848
|
+
if (lines[0].trimEnd() !== "---") return { frontmatter: null, body: text };
|
|
7849
|
+
const end = lines.findIndex((line, index) => index > 0 && line.trimEnd() === "---");
|
|
7850
|
+
if (end === -1) return null;
|
|
7851
|
+
return { frontmatter: lines.slice(1, end).join("\n"), body: lines.slice(end + 1).join("\n") };
|
|
7869
7852
|
}
|
|
7870
|
-
var
|
|
7871
|
-
|
|
7872
|
-
|
|
7853
|
+
var JUDGE_KEYS = /* @__PURE__ */ new Set(["name", "description", "when", "counts", "for_each"]);
|
|
7854
|
+
var JUDGE_FILE_NAME = /([^/]*)\.md$/;
|
|
7855
|
+
function parseJudgeFile(file, problems) {
|
|
7856
|
+
var _a, _b, _c;
|
|
7873
7857
|
const fail = (problem) => {
|
|
7874
7858
|
problems.push({ file: file.path, problem });
|
|
7875
7859
|
return null;
|
|
7876
7860
|
};
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
} catch (error) {
|
|
7881
|
-
return fail(`not valid YAML \u2014 ${error instanceof Error ? error.message : String(error)}`);
|
|
7861
|
+
const id = (_b = (_a = JUDGE_FILE_NAME.exec(file.path)) == null ? void 0 : _a[1]) != null ? _b : "";
|
|
7862
|
+
if (!SLUG_PATTERN2.test(id)) {
|
|
7863
|
+
return fail(`the file name must be a lowercase id and end in .md (got ${inlineText(JSON.stringify(file.path.split("/").pop()))})`);
|
|
7882
7864
|
}
|
|
7883
|
-
if (
|
|
7884
|
-
|
|
7885
|
-
if (root["id"] === CRITERIA_JUDGE_NAME) return null;
|
|
7886
|
-
for (const key of Object.keys(root)) {
|
|
7887
|
-
if (!CUSTOM_KEYS.has(key)) return fail(`unknown key "${inlineText(key)}"`);
|
|
7865
|
+
if (id === CODE_REVIEW_NAME || id === CRITERIA_JUDGE_NAME) {
|
|
7866
|
+
return fail(`"${id}" is the name of a built-in step \u2014 rename the file`);
|
|
7888
7867
|
}
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
return fail(`"id" must be lowercase id characters (got ${inlineText(JSON.stringify(root["id"]))})`);
|
|
7868
|
+
if (RESERVED_EMIT_NAMES.includes(id)) {
|
|
7869
|
+
return fail(`"${id}" is a reserved name \u2014 rename the file`);
|
|
7892
7870
|
}
|
|
7893
|
-
const
|
|
7894
|
-
if (
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7871
|
+
const parts = splitJudgeFile(file.content);
|
|
7872
|
+
if (parts === null) return fail(`"${id}" frontmatter has no closing "---" line`);
|
|
7873
|
+
let root = {};
|
|
7874
|
+
if (parts.frontmatter !== null) {
|
|
7875
|
+
try {
|
|
7876
|
+
root = (0, import_yaml.parse)(parts.frontmatter);
|
|
7877
|
+
} catch (error) {
|
|
7878
|
+
return fail(`"${id}" frontmatter is not valid YAML \u2014 ${error instanceof Error ? error.message : String(error)}`);
|
|
7879
|
+
}
|
|
7880
|
+
if (root === null) root = {};
|
|
7900
7881
|
}
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
return fail(`"${id}"
|
|
7882
|
+
if (!isRecord(root)) return fail(`"${id}" frontmatter must be a YAML mapping`);
|
|
7883
|
+
for (const key of Object.keys(root)) {
|
|
7884
|
+
if (!JUDGE_KEYS.has(key)) return fail(`"${id}" has unknown key "${inlineText(key)}"`);
|
|
7904
7885
|
}
|
|
7905
7886
|
const rawName = root["name"];
|
|
7906
7887
|
let name = null;
|
|
7907
7888
|
if (rawName !== void 0) {
|
|
7908
|
-
|
|
7909
|
-
return fail(`"${id}" name must be one short line`);
|
|
7910
|
-
}
|
|
7911
|
-
const trimmedName = rawName.trim();
|
|
7889
|
+
const trimmedName = typeof rawName === "string" ? rawName.trim() : "";
|
|
7912
7890
|
if (trimmedName === "" || CONTROL_CHARS.test(trimmedName) || trimmedName.length > MAX_NAME_LENGTH) {
|
|
7913
|
-
return fail(`"${id}" name must be one
|
|
7891
|
+
return fail(`"${id}" name must be one line of at most ${MAX_NAME_LENGTH} characters`);
|
|
7914
7892
|
}
|
|
7915
7893
|
name = trimmedName;
|
|
7916
7894
|
}
|
|
7917
|
-
const
|
|
7918
|
-
|
|
7919
|
-
|
|
7895
|
+
const rawDescription = root["description"];
|
|
7896
|
+
let description = null;
|
|
7897
|
+
if (rawDescription !== void 0) {
|
|
7898
|
+
const trimmedDescription = typeof rawDescription === "string" ? rawDescription.trim() : "";
|
|
7899
|
+
if (trimmedDescription === "" || CONTROL_CHARS.test(trimmedDescription) || trimmedDescription.length > MAX_DESCRIPTION_LENGTH) {
|
|
7900
|
+
return fail(`"${id}" description must be one line of at most ${MAX_DESCRIPTION_LENGTH} characters`);
|
|
7901
|
+
}
|
|
7902
|
+
description = trimmedDescription;
|
|
7903
|
+
}
|
|
7904
|
+
const counts = (_c = root["counts"]) != null ? _c : false;
|
|
7905
|
+
if (typeof counts !== "boolean") {
|
|
7906
|
+
return fail(`"${id}" has counts "${inlineText(String(counts))}" \u2014 use true or false`);
|
|
7907
|
+
}
|
|
7908
|
+
const forEach = root["for_each"];
|
|
7909
|
+
if (forEach !== void 0 && forEach !== "criterion") {
|
|
7910
|
+
return fail(`"${id}" has for_each "${inlineText(String(forEach))}" \u2014 use criterion, or leave the key out`);
|
|
7920
7911
|
}
|
|
7921
7912
|
let whenPaths = null;
|
|
7922
7913
|
let whenIssueType = null;
|
|
@@ -7924,12 +7915,8 @@ function parseCustomFile(file, problems) {
|
|
|
7924
7915
|
let whenRepositories;
|
|
7925
7916
|
if (root["when"] !== void 0) {
|
|
7926
7917
|
const when = root["when"];
|
|
7927
|
-
if (!isRecord(when) || Object.keys(when).some(
|
|
7928
|
-
(
|
|
7929
|
-
) || Object.keys(when).length === 0) {
|
|
7930
|
-
return fail(
|
|
7931
|
-
`"${id}" when: only "paths", "repositories", "issue.type", and "issue.labels" scoping is supported`
|
|
7932
|
-
);
|
|
7918
|
+
if (!isRecord(when) || Object.keys(when).some((key) => key !== "paths" && key !== "repositories" && key !== "issue") || Object.keys(when).length === 0) {
|
|
7919
|
+
return fail(`"${id}" when: only "paths", "repositories" and "issue" scoping is supported`);
|
|
7933
7920
|
}
|
|
7934
7921
|
const paths = when["paths"];
|
|
7935
7922
|
if (paths !== void 0) {
|
|
@@ -7959,75 +7946,47 @@ function parseCustomFile(file, problems) {
|
|
|
7959
7946
|
}
|
|
7960
7947
|
whenRepositories = repositories.map((name2) => name2.trim());
|
|
7961
7948
|
}
|
|
7962
|
-
const
|
|
7963
|
-
if (
|
|
7964
|
-
if (
|
|
7965
|
-
return fail(`"${id}" when.issue
|
|
7949
|
+
const issue = when["issue"];
|
|
7950
|
+
if (issue !== void 0) {
|
|
7951
|
+
if (!isRecord(issue) || Object.keys(issue).some((key) => key !== "type" && key !== "labels") || Object.keys(issue).length === 0) {
|
|
7952
|
+
return fail(`"${id}" when.issue: only "type" and "labels" scoping is supported`);
|
|
7966
7953
|
}
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7954
|
+
const issueType = issue["type"];
|
|
7955
|
+
if (issueType !== void 0) {
|
|
7956
|
+
if (typeof issueType !== "string" || issueType.trim() === "") {
|
|
7957
|
+
return fail(`"${id}" when.issue.type must be a non-empty string`);
|
|
7958
|
+
}
|
|
7959
|
+
whenIssueType = issueType.trim();
|
|
7960
|
+
}
|
|
7961
|
+
const issueLabels = issue["labels"];
|
|
7962
|
+
if (issueLabels !== void 0) {
|
|
7963
|
+
if (!Array.isArray(issueLabels) || issueLabels.length === 0 || issueLabels.some((label) => typeof label !== "string" || label.trim() === "")) {
|
|
7964
|
+
return fail(`"${id}" when.issue.labels must be a non-empty list of label names`);
|
|
7965
|
+
}
|
|
7966
|
+
whenIssueLabels = issueLabels.map((label) => label.trim());
|
|
7973
7967
|
}
|
|
7974
|
-
whenIssueLabels = issueLabels.map((label) => label.trim());
|
|
7975
7968
|
}
|
|
7976
7969
|
}
|
|
7977
|
-
const
|
|
7978
|
-
if (
|
|
7979
|
-
return fail(`"${id}"
|
|
7980
|
-
}
|
|
7981
|
-
if (run["where"] !== "host") {
|
|
7982
|
-
return fail(`"${id}" run.where must be host \u2014 a runner runs the judge after a build`);
|
|
7983
|
-
}
|
|
7984
|
-
const emit = run["emit"];
|
|
7985
|
-
if (typeof emit !== "string" || !SLUG_PATTERN2.test(emit)) {
|
|
7986
|
-
return fail(`"${id}" run.emit must name the emit (id characters only)`);
|
|
7987
|
-
}
|
|
7988
|
-
if (RESERVED_EMIT_NAMES.includes(emit)) {
|
|
7989
|
-
return fail(
|
|
7990
|
-
`"${id}" run.emit "${emit}" is reserved \u2014 \`outerlayer emit ${emit}\` is a subcommand, so a check cannot be recorded under that name`
|
|
7991
|
-
);
|
|
7992
|
-
}
|
|
7993
|
-
const rawJudge = run["judge"];
|
|
7994
|
-
if (rawJudge === void 0) {
|
|
7995
|
-
return fail(`"${id}" run needs a "judge" \u2014 the brief a runner has an agent follow`);
|
|
7996
|
-
}
|
|
7997
|
-
if (!isRecord(rawJudge) || Object.keys(rawJudge).some((key) => key !== "brief" && key !== "subjects")) {
|
|
7998
|
-
return fail(`"${id}" run.judge must be a mapping with a "brief" and, optionally, "subjects"`);
|
|
7999
|
-
}
|
|
8000
|
-
const rawSubjects = (_a = rawJudge["subjects"]) != null ? _a : "criteria";
|
|
8001
|
-
if (typeof rawSubjects !== "string" || !JUDGE_SUBJECTS.includes(rawSubjects)) {
|
|
8002
|
-
return fail(`"${id}" run.judge.subjects must be one of ${JUDGE_SUBJECTS.map((value) => `"${value}"`).join(", ")}`);
|
|
8003
|
-
}
|
|
8004
|
-
const brief = rawJudge["brief"];
|
|
8005
|
-
if (typeof brief !== "string" || brief.trim() === "" || brief.length > MAX_BRIEF_LENGTH || brief.startsWith("/") || brief.split("/").includes("..")) {
|
|
8006
|
-
return fail(
|
|
8007
|
-
`"${id}" run.judge.brief must be a relative path inside the repository, of at most ${MAX_BRIEF_LENGTH} characters, with no ".." segment`
|
|
8008
|
-
);
|
|
7970
|
+
const instructions = parts.body.trim();
|
|
7971
|
+
if (instructions === "") {
|
|
7972
|
+
return fail(`"${id}" has no instructions \u2014 write what the judge decides below the frontmatter`);
|
|
8009
7973
|
}
|
|
8010
7974
|
return {
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
declaresEmit: emit,
|
|
8021
|
-
judge: { brief: brief.trim(), subjects: rawSubjects }
|
|
8022
|
-
},
|
|
8023
|
-
file: file.path
|
|
7975
|
+
id,
|
|
7976
|
+
name,
|
|
7977
|
+
description,
|
|
7978
|
+
level: counts ? "warn" : "info",
|
|
7979
|
+
whenPaths,
|
|
7980
|
+
whenIssueType,
|
|
7981
|
+
whenIssueLabels,
|
|
7982
|
+
...whenRepositories === void 0 ? {} : { whenRepositories, whenRepositoriesFile: file.path },
|
|
7983
|
+
judge: { instructions, subjects: forEach === "criterion" ? "criteria" : "none" }
|
|
8024
7984
|
};
|
|
8025
7985
|
}
|
|
8026
|
-
function parsePolicy(policyFile,
|
|
8027
|
-
var _a, _b, _c, _d, _e
|
|
7986
|
+
function parsePolicy(policyFile, judgeFiles) {
|
|
7987
|
+
var _a, _b, _c, _d, _e;
|
|
8028
7988
|
const problems = [];
|
|
8029
7989
|
const policy = policyFile ? parsePolicyFile(policyFile) : {
|
|
8030
|
-
overrides: {},
|
|
8031
7990
|
mergeGate: null,
|
|
8032
7991
|
review: null,
|
|
8033
7992
|
testProof: null,
|
|
@@ -8042,55 +8001,13 @@ function parsePolicy(policyFile, validatorFiles) {
|
|
|
8042
8001
|
const testProof = (_c = policy.testProof) != null ? _c : "any";
|
|
8043
8002
|
const criteriaMissing = (_d = policy.criteriaMissing) != null ? _d : policyFile !== null ? "warn" : "off";
|
|
8044
8003
|
const criteriaJudge = (_e = policy.criteriaJudge) != null ? _e : "warn";
|
|
8045
|
-
const
|
|
8046
|
-
const
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
if (result === null) continue;
|
|
8050
|
-
const id = result.def.id;
|
|
8051
|
-
const collidesWithBuiltin = RETIRED_BUILTINS.has(id);
|
|
8052
|
-
if (seenIds.has(id) || collidesWithBuiltin) {
|
|
8053
|
-
problems.push({
|
|
8054
|
-
file: file.path,
|
|
8055
|
-
problem: collidesWithBuiltin ? `"${id}" collides with a built-in validator id` : `duplicate validator id "${id}"`
|
|
8056
|
-
});
|
|
8057
|
-
continue;
|
|
8058
|
-
}
|
|
8059
|
-
seenIds.add(id);
|
|
8060
|
-
parsed.push(result);
|
|
8004
|
+
const customs = [];
|
|
8005
|
+
for (const file of [...judgeFiles].sort((a, b) => a.path < b.path ? -1 : 1)) {
|
|
8006
|
+
const def = parseJudgeFile(file, problems);
|
|
8007
|
+
if (def !== null) customs.push(def);
|
|
8061
8008
|
}
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
const owner = emitOwners.get(p.def.declaresEmit);
|
|
8065
|
-
if (owner === void 0) {
|
|
8066
|
-
emitOwners.set(p.def.declaresEmit, p.def.id);
|
|
8067
|
-
return true;
|
|
8068
|
-
}
|
|
8069
|
-
problems.push({
|
|
8070
|
-
file: p.file,
|
|
8071
|
-
problem: `"${p.def.id}" declares emit "${p.def.declaresEmit}" already declared by "${owner}"`
|
|
8072
|
-
});
|
|
8073
|
-
return false;
|
|
8074
|
-
});
|
|
8075
|
-
const sorted = deduped.map((p) => p.def).sort((a, b) => a.id < b.id ? -1 : 1);
|
|
8076
|
-
const levels = {};
|
|
8077
|
-
for (const custom of sorted) levels[custom.id] = custom.level;
|
|
8078
|
-
for (const [id, level] of Object.entries(policy.overrides)) {
|
|
8079
|
-
if (RETIRED_BUILTINS.has(id) || id === CODE_REVIEW_NAME || id === CRITERIA_JUDGE_NAME) continue;
|
|
8080
|
-
if (FREED_BUILTINS.has(id) && !(id in levels)) continue;
|
|
8081
|
-
if (!(id in levels)) {
|
|
8082
|
-
problems.push({
|
|
8083
|
-
file: (_f = policyFile == null ? void 0 : policyFile.path) != null ? _f : ".outerlayer/policy.yaml",
|
|
8084
|
-
problem: `policy levels unknown validator "${id}"`
|
|
8085
|
-
});
|
|
8086
|
-
continue;
|
|
8087
|
-
}
|
|
8088
|
-
levels[id] = level;
|
|
8089
|
-
}
|
|
8090
|
-
const customs = sorted.map(
|
|
8091
|
-
(def) => levels[def.id] === def.level ? def : { ...def, level: levels[def.id] }
|
|
8092
|
-
);
|
|
8093
|
-
return { levels, customs, mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief: policy.criteriaJudgeBrief, problems };
|
|
8009
|
+
customs.sort((a, b) => a.id < b.id ? -1 : 1);
|
|
8010
|
+
return { customs, mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief: policy.criteriaJudgeBrief, problems };
|
|
8094
8011
|
}
|
|
8095
8012
|
var FILES_PLACEHOLDER = "{files}";
|
|
8096
8013
|
function isRecord2(value) {
|
|
@@ -12487,17 +12404,8 @@ function namesCore(text) {
|
|
|
12487
12404
|
}
|
|
12488
12405
|
function requiredByBuild(repoRoot, skill, base) {
|
|
12489
12406
|
if (skill !== "outerlayer-build") return false;
|
|
12490
|
-
const named = (file, pattern = "outerlayer-build") => {
|
|
12491
|
-
try {
|
|
12492
|
-
return readFileSync(file, "utf8").includes(pattern);
|
|
12493
|
-
} catch {
|
|
12494
|
-
return false;
|
|
12495
|
-
}
|
|
12496
|
-
};
|
|
12497
|
-
if (named(join$1(repoRoot, skillDir("build", base), "SKILL.md"), RELATIVE_CORE)) return true;
|
|
12498
|
-
const dir = join$1(repoRoot, ".outerlayer", "validators");
|
|
12499
12407
|
try {
|
|
12500
|
-
return
|
|
12408
|
+
return readFileSync(join$1(repoRoot, skillDir("build", base), "SKILL.md"), "utf8").includes(RELATIVE_CORE);
|
|
12501
12409
|
} catch {
|
|
12502
12410
|
return false;
|
|
12503
12411
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { keyRunnerFactory, RunnerConfigError } from './chunk-
|
|
4
|
-
import { orgHomeDir } from './chunk-
|
|
3
|
+
import { keyRunnerFactory, RunnerConfigError } from './chunk-6I3MSNFZ.js';
|
|
4
|
+
import { orgHomeDir } from './chunk-Z4RFAK2H.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|
|
@@ -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-LKXQH4XD.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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-
|
|
3
|
+
import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-E75O4U2I.js';
|
|
4
4
|
import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-VSBG7MMU.js';
|
|
5
5
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
6
6
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -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 { signingFetchFor } from './chunk-
|
|
8
|
-
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-
|
|
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-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';
|
|
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,28 +1,27 @@
|
|
|
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 { isLinkedRepository } from './chunk-
|
|
6
|
-
import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-
|
|
7
|
-
import { sanitizeTerminal } from './chunk-
|
|
8
|
-
import { withInjectedPrograms } from './chunk-
|
|
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';
|
|
7
|
+
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-
|
|
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-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';
|
|
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-VBFAMLTB.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-E75O4U2I.js';
|
|
22
22
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
23
|
-
import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-
|
|
24
|
-
import {
|
|
25
|
-
import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync, readdirSync, lstatSync } from 'fs';
|
|
23
|
+
import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-2IDR4YTQ.js';
|
|
24
|
+
import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync } from 'fs';
|
|
26
25
|
import { sep, join, dirname, resolve, delimiter } from 'path';
|
|
27
26
|
import { execFileSync } from 'child_process';
|
|
28
27
|
|
|
@@ -177,45 +176,6 @@ function checkMcpCommand(cwd, env = process.env, platform = process.platform, ag
|
|
|
177
176
|
return [{ name: NAME, status: "pass", detail: `the "outerlayer" server runs ${sanitizeTerminal(resolved)}` }];
|
|
178
177
|
});
|
|
179
178
|
}
|
|
180
|
-
var VALIDATORS_DIR = ".outerlayer/validators";
|
|
181
|
-
var NAME2 = "Criteria judge file";
|
|
182
|
-
function declaresJudgeId(text) {
|
|
183
|
-
const match = /^id:[ \t]*["']?([^"'#\s]+)["']?[ \t]*(?:#.*)?$/m.exec(text);
|
|
184
|
-
return match?.[1] === CRITERIA_JUDGE_NAME;
|
|
185
|
-
}
|
|
186
|
-
function ignoredCriteriaFiles(repoRoot) {
|
|
187
|
-
const dir = join(repoRoot, VALIDATORS_DIR);
|
|
188
|
-
let names;
|
|
189
|
-
try {
|
|
190
|
-
names = readdirSync(dir).filter((name) => /\.ya?ml$/.test(name)).sort();
|
|
191
|
-
} catch {
|
|
192
|
-
return [];
|
|
193
|
-
}
|
|
194
|
-
const found = [];
|
|
195
|
-
for (const name of names) {
|
|
196
|
-
try {
|
|
197
|
-
const abs = join(dir, name);
|
|
198
|
-
if (!lstatSync(abs).isFile()) continue;
|
|
199
|
-
if (declaresJudgeId(readFileSync(abs, "utf8"))) found.push(`${VALIDATORS_DIR}/${name}`);
|
|
200
|
-
} catch {
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
return found;
|
|
204
|
-
}
|
|
205
|
-
function checkIgnoredCriteriaFile(cwd) {
|
|
206
|
-
const dirs = findGitDirs(cwd ?? process.cwd());
|
|
207
|
-
if (dirs === void 0 || contextIsGoverned(dirs.gitCommonDir)) return [];
|
|
208
|
-
const files = ignoredCriteriaFiles(dirs.repoRoot);
|
|
209
|
-
if (files.length === 0) return [];
|
|
210
|
-
return [
|
|
211
|
-
{
|
|
212
|
-
name: NAME2,
|
|
213
|
-
status: "warn",
|
|
214
|
-
detail: `${files.join(", ")}: OuterLayer ignores ${files.length === 1 ? "this file" : "these files"}. The criteria judge is a built-in step of a runner build, and no validator file defines it.`,
|
|
215
|
-
fix: `Delete ${files.join(", ")}. To set the judge's level or brief, or to turn it off, use criteria.judge and criteria.judge_brief in .outerlayer/policy.yaml.`
|
|
216
|
-
}
|
|
217
|
-
];
|
|
218
|
-
}
|
|
219
179
|
|
|
220
180
|
// src/doctor.ts
|
|
221
181
|
function laptopChecksNotApplicable(label) {
|
|
@@ -252,7 +212,6 @@ function runDoctor(env = {}) {
|
|
|
252
212
|
...laptop ? checkStatusline(home, now, env.cwd, agents) : [],
|
|
253
213
|
...section("installs"),
|
|
254
214
|
...starter?.checks ?? [],
|
|
255
|
-
...checkIgnoredCriteriaFile(env.cwd),
|
|
256
215
|
...laptop ? checkRenamedSkills(env.cwd) : [],
|
|
257
216
|
...checkBuildSkillState(env.cwd, home),
|
|
258
217
|
...checkIgnoredSkills(env.cwd, agents),
|
|
@@ -1094,9 +1053,9 @@ function doctorExitCode(checks) {
|
|
|
1094
1053
|
|
|
1095
1054
|
// src/doctor-report.ts
|
|
1096
1055
|
async function gatherDoctorChecks(options = {}) {
|
|
1097
|
-
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-
|
|
1098
|
-
const { listedAgents } = await import('./runner-agents-
|
|
1099
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
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');
|
|
1100
1059
|
const configPath = options.configPath ?? defaultRunnerConfigPath();
|
|
1101
1060
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1102
1061
|
const hooks = (() => {
|
|
@@ -1124,7 +1083,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1124
1083
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1125
1084
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1126
1085
|
} else if (hasRunnerBlock(configPath)) {
|
|
1127
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1086
|
+
const { runnerHostChecks } = await import('./doctor-ZPXVE46E.js');
|
|
1128
1087
|
const gateway = (() => {
|
|
1129
1088
|
try {
|
|
1130
1089
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1153,7 +1112,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1153
1112
|
const service = await (async () => {
|
|
1154
1113
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1155
1114
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1156
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1115
|
+
const { inspectRunnerService } = await import('./find-unit-TFQHEPEJ.js');
|
|
1157
1116
|
return inspectRunnerService(configPath);
|
|
1158
1117
|
})();
|
|
1159
1118
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -22445,7 +22445,7 @@ var CheckItemRefSchema = external_exports.object({
|
|
|
22445
22445
|
changed: external_exports.boolean().optional()
|
|
22446
22446
|
});
|
|
22447
22447
|
var CheckItemSchema = external_exports.object({
|
|
22448
|
-
/** What the item is about, unique within the
|
|
22448
|
+
/** What the item is about, unique within the result. */
|
|
22449
22449
|
id: external_exports.string().min(1).max(CHECK_ITEM_ID_MAX_LENGTH).regex(ONE_LINE, "must be one line"),
|
|
22450
22450
|
/** The acceptance criterion the item is about, when it is about one. */
|
|
22451
22451
|
criterion: ArtifactCriterionIdSchema.optional(),
|
|
@@ -22453,7 +22453,7 @@ var CheckItemSchema = external_exports.object({
|
|
|
22453
22453
|
/** Why, in a sentence or three. */
|
|
22454
22454
|
reason: external_exports.string().max(CHECK_ITEM_REASON_MAX_LENGTH).optional(),
|
|
22455
22455
|
refs: external_exports.array(CheckItemRefSchema).max(CHECK_ITEM_REFS_MAX).optional(),
|
|
22456
|
-
/** The sha256 of what the
|
|
22456
|
+
/** The sha256 of what the judge item was judged on. A judge that sees the same inputs again keeps its result. */
|
|
22457
22457
|
inputs: external_exports.string().regex(/^[0-9a-f]{64}$/, "must be a lowercase sha256 hex digest").optional(),
|
|
22458
22458
|
/** The commit the item was judged at, when the sender judged one commit. */
|
|
22459
22459
|
commit: external_exports.string().regex(/^[0-9a-f]{7,64}$/, "must be a lowercase hex commit id").optional(),
|
|
@@ -22474,7 +22474,7 @@ external_exports.string().regex(/^[a-z][a-z0-9._-]{0,63}$/).superRefine((name, c
|
|
|
22474
22474
|
if (RESERVED_EMIT_NAMES.includes(name)) {
|
|
22475
22475
|
ctx.addIssue({
|
|
22476
22476
|
code: "custom",
|
|
22477
|
-
message: `is reserved: \`outerlayer emit ${name}\` is a subcommand, so a
|
|
22477
|
+
message: `is reserved: \`outerlayer emit ${name}\` is a subcommand, so a result cannot be recorded under that name`
|
|
22478
22478
|
});
|
|
22479
22479
|
}
|
|
22480
22480
|
});
|
|
@@ -6,7 +6,7 @@ import { readCloudConfigStrict, CloudConfigError, readCloudConfig, writeCloudCon
|
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
9
|
-
import { CLI_LOGIN_MACHINE_NAME_MAX, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema, CliLoginPollResponseSchema } from './chunk-
|
|
9
|
+
import { CLI_LOGIN_MACHINE_NAME_MAX, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema, CliLoginPollResponseSchema } from './chunk-GBQRVYYE.js';
|
|
10
10
|
import { generateKeyPairSync, privateDecrypt, constants, createPrivateKey } from 'crypto';
|
|
11
11
|
import { spawn } from 'child_process';
|
|
12
12
|
import { fstatSync, existsSync, readdirSync, readFileSync, rmSync, mkdirSync, chmodSync, writeFileSync } from 'fs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-MYK6AI42.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-QYDBYCSO.js';
|
|
5
|
+
import { runnerDir } from './chunk-Z4RFAK2H.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
|