@outerlayer/cli 0.41.0-next.20261118043303 → 0.41.0-next.20261118130049
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-HRNW646E.js → agent-credential-A3NYNRQZ.js} +7 -7
- package/dist/agent-setup-7LD2SPXX.js +43 -0
- package/dist/{agent-subcommand-ZILR4JWP.js → agent-subcommand-JBWCF6DW.js} +6 -6
- package/dist/{artifact-link-cmd-B6QPCFUL.js → artifact-link-cmd-BCGCPV4E.js} +2 -2
- package/dist/{bridge-HQDMB2OV.js → bridge-4UMTIJEF.js} +10 -10
- package/dist/build-5OOYQ3X6.js +28 -0
- package/dist/build-disk-K3A5TSZL.js +23 -0
- package/dist/build-info.json +1 -1
- package/dist/builder-XQVN4S2C.js +22 -0
- package/dist/caller-HIDRWXGV.js +25 -0
- package/dist/{check-UP3YYRBH.js → check-75PJJJEF.js} +59 -59
- package/dist/{chunk-HQYVI5T3.js → chunk-22UMHY5K.js} +100 -188
- package/dist/{chunk-EEPVNSQ7.js → chunk-2BLKGA6O.js} +2 -2
- package/dist/{chunk-UG4AUZCR.js → chunk-2IDR4YTQ.js} +950 -10
- package/dist/{chunk-OOW3QG7F.js → chunk-2S3Q4MKT.js} +48 -49
- package/dist/{chunk-4SHMBQWH.js → chunk-3HWIA4F7.js} +9 -9
- package/dist/{chunk-Q7S5EVU7.js → chunk-3UBNHWYC.js} +5 -5
- package/dist/{chunk-OOM4TEG5.js → chunk-3WCVUS2Z.js} +1 -1
- package/dist/{chunk-NILMZJ6I.js → chunk-3WDQFXSS.js} +11 -11
- package/dist/{chunk-GBP3QSDO.js → chunk-3XPNEYTJ.js} +9 -9
- package/dist/{chunk-QW43URTD.js → chunk-4DTWHAXO.js} +4 -4
- package/dist/{chunk-VNVX7KRW.js → chunk-4GLGLMDX.js} +4 -4
- package/dist/{chunk-TLCTOEU5.js → chunk-6ARIDREF.js} +1 -1
- package/dist/{chunk-INTR7TML.js → chunk-6LJ6HOMB.js} +2 -2
- package/dist/{chunk-NBXNBAAG.js → chunk-6NPBCLAT.js} +1 -1
- package/dist/{chunk-Q7Z6ELTL.js → chunk-7FAKHR6W.js} +9 -1
- package/dist/{chunk-HUX4NILD.js → chunk-A5YNDECV.js} +3 -3
- package/dist/{chunk-Y2HG7SGT.js → chunk-AEIG6IIV.js} +1 -1
- package/dist/{chunk-6LKTKDMY.js → chunk-ATGEXIO3.js} +2 -2
- package/dist/{chunk-TN3NJYI6.js → chunk-AUONCCF6.js} +4 -4
- package/dist/{chunk-WGR5CYGQ.js → chunk-BXJBS7DU.js} +1 -1
- package/dist/{chunk-WSHHRIGI.js → chunk-BYYJOL4H.js} +4 -4
- package/dist/{chunk-L2D3VD2K.js → chunk-C3OJZODB.js} +1 -1
- package/dist/{chunk-HK6555J6.js → chunk-C73EUOPF.js} +9 -9
- package/dist/{chunk-NFGW3C2L.js → chunk-CRFMJVYJ.js} +11 -11
- package/dist/{chunk-NJKM5XGH.js → chunk-CXCUBYZB.js} +5 -5
- package/dist/{chunk-WLWVMXM4.js → chunk-DDWQGIHZ.js} +7 -7
- package/dist/{chunk-B3MRE2XC.js → chunk-DRC76AT6.js} +2 -2
- package/dist/{chunk-4U3SWN5G.js → chunk-DUXSUYCU.js} +6 -6
- package/dist/{chunk-B6W2LW7E.js → chunk-DYKRQC4O.js} +1 -1
- package/dist/{chunk-IMWZXJ7S.js → chunk-EACOTFE4.js} +31 -31
- package/dist/{chunk-ZH6AN3UH.js → chunk-EHBF3L3N.js} +2 -2
- package/dist/{chunk-BQQ7AXXW.js → chunk-EK2WT3GB.js} +1 -1
- package/dist/{chunk-FGVKSK2P.js → chunk-F4EWIL7N.js} +1 -1
- package/dist/{chunk-ZBQDEROG.js → chunk-FJPKQVTX.js} +5 -5
- package/dist/{chunk-PDFCYYCC.js → chunk-GBQRVYYE.js} +3 -3
- package/dist/{chunk-7SLZKQBB.js → chunk-GCT2J4Y7.js} +3 -3
- package/dist/{chunk-XEETBQKD.js → chunk-GQADCHPA.js} +1 -1
- package/dist/{chunk-IL7GVNVQ.js → chunk-GRMD6ODN.js} +1 -1
- package/dist/{chunk-XX7LTNEB.js → chunk-H2U3YTON.js} +6 -6
- package/dist/{chunk-VYFML7GX.js → chunk-I3NK6WNF.js} +5 -5
- package/dist/{chunk-ZJL6MDF7.js → chunk-IJCG3R2B.js} +10 -10
- package/dist/{chunk-ZGQQ2WPG.js → chunk-J6ZWZDL4.js} +6 -6
- package/dist/{chunk-Z7BIDBWN.js → chunk-JB6WBOTZ.js} +7 -7
- package/dist/{chunk-GJC42QWN.js → chunk-JMWZJ34F.js} +8 -8
- package/dist/{chunk-HG3GUG5G.js → chunk-JSJRXFAF.js} +1 -1
- package/dist/{chunk-IL3IZXH4.js → chunk-JVKBRZFL.js} +11 -11
- package/dist/{chunk-PQWTPA6Z.js → chunk-KLDWF2YG.js} +20 -61
- package/dist/{chunk-SO7JMTVX.js → chunk-KMUKDHAY.js} +1 -1
- package/dist/{chunk-DJK3IK6K.js → chunk-LIPSGE6C.js} +1 -1
- package/dist/{chunk-QXC5QWPU.js → chunk-LWOMQZNJ.js} +7 -7
- package/dist/{chunk-U2AAZY5W.js → chunk-MLLR4T7L.js} +1 -1
- package/dist/{chunk-AXDQ3OD6.js → chunk-MLMHMLJU.js} +8 -8
- package/dist/{chunk-BUSPSV2F.js → chunk-MQQDEBRD.js} +9 -9
- package/dist/{chunk-IQTWJYFV.js → chunk-MV4VDZH5.js} +1 -1
- package/dist/{chunk-LI4NF5TS.js → chunk-NB34A4QI.js} +3 -3
- package/dist/{chunk-QYNH6MBI.js → chunk-NB52SVJ4.js} +3 -3
- package/dist/{chunk-36QFNTJY.js → chunk-OKYZSH7K.js} +3 -3
- package/dist/{chunk-OCDZ7MBX.js → chunk-P5IFJ6LR.js} +3 -3
- package/dist/{chunk-7FD3UTHI.js → chunk-PQA5L35J.js} +3 -3
- package/dist/{chunk-NH4GSJZN.js → chunk-QA3CINFO.js} +3 -3
- package/dist/{chunk-ILHFH56O.js → chunk-QLOJITTG.js} +1 -1
- package/dist/{chunk-NWQYWF6N.js → chunk-QTH3ZPB7.js} +4 -4
- package/dist/{chunk-X24VL3Q6.js → chunk-QYLY3Z6R.js} +1 -1
- package/dist/{chunk-K6LFU64M.js → chunk-RCDTKXXI.js} +4 -4
- package/dist/{chunk-YTEK3QUQ.js → chunk-SPWA3JVM.js} +4 -4
- package/dist/{chunk-QEJKRR2Q.js → chunk-SUOL5WGL.js} +6 -6
- package/dist/{chunk-XLZY7V3X.js → chunk-TZHVJ5WH.js} +1 -1
- package/dist/{chunk-IEPYESAY.js → chunk-UFCGX2Y5.js} +1 -1
- package/dist/{chunk-EKBY375P.js → chunk-UQHML2OB.js} +1 -1
- package/dist/{chunk-EMDZUXJX.js → chunk-UVEF3NPK.js} +2 -2
- package/dist/{chunk-23YVVYQC.js → chunk-UWRXRSCE.js} +1 -1
- package/dist/{chunk-QW6TKDBL.js → chunk-V3NMSDOC.js} +1 -1
- package/dist/{chunk-KSSIFZDR.js → chunk-VDEC6G2D.js} +5 -5
- package/dist/{chunk-ZMYVA3YA.js → chunk-VPPCTN32.js} +4 -4
- package/dist/{chunk-3HL5DUKO.js → chunk-VYET47NT.js} +7 -7
- package/dist/{chunk-ZDK4XRBT.js → chunk-XJ5MAYUA.js} +5 -5
- package/dist/{chunk-2DJBYNDC.js → chunk-YNK4J3E5.js} +1 -1
- package/dist/{chunk-KKIANRHM.js → chunk-YNPPXB57.js} +1 -1
- package/dist/{chunk-B3ZKYFBI.js → chunk-YWLRN4XV.js} +1 -1
- package/dist/{chunk-TXAXSZ7A.js → chunk-Z63PASAI.js} +3 -3
- package/dist/{chunk-TMUHUTA2.js → chunk-ZKL4BQAP.js} +1 -1
- package/dist/{claude-launcher-JTXL22XE.js → claude-launcher-O6LAYM6F.js} +10 -10
- package/dist/{cli-KVL7IJMJ.js → cli-GPY5WHYF.js} +176 -176
- package/dist/{command-ATRHODTN.js → command-PQIDL34C.js} +56 -56
- package/dist/{config-EFPTYQ4N.js → config-2ODEMRET.js} +15 -15
- package/dist/{connect-cmd-VL7KFY66.js → connect-cmd-3PCES6JG.js} +16 -16
- package/dist/{container-start-ST5I64MY.js → container-start-F75ZOLOI.js} +53 -53
- package/dist/{context-cleanup-AQQC4EZ6.js → context-cleanup-HMJJVD3R.js} +6 -6
- package/dist/{context-show-cmd-YODJEXKE.js → context-show-cmd-EFEVWXG3.js} +17 -17
- package/dist/{control-plane-launch-LUSKGM3T.js → control-plane-launch-JSV336S6.js} +18 -18
- package/dist/{demo-record-cmd-OT5X5QRX.js → demo-record-cmd-T3MRNY4F.js} +11 -11
- package/dist/{demo-voice-cmd-GXV57LO3.js → demo-voice-cmd-QN3F6IVB.js} +25 -25
- package/dist/{dist-ITIDOS3E.js → dist-WEDCUAFS.js} +2 -2
- package/dist/docker-U6TIZF6L.js +22 -0
- package/dist/{doctor-SYESAA2Y.js → doctor-RRGWO4OB.js} +55 -55
- package/dist/emit-artifact-cmd-DMCQEDPP.js +46 -0
- package/dist/{emit-cmd-IPPDMPP6.js → emit-cmd-KOG752D3.js} +9 -9
- package/dist/emit-criteria-cmd-6MBR43QB.js +37 -0
- package/dist/{emit-demo-cmd-S2RPE5TI.js → emit-demo-cmd-R7K4R7H3.js} +25 -25
- package/dist/{emit-finding-cmd-I3UZ6A26.js → emit-finding-cmd-U5YXGUP5.js} +19 -19
- package/dist/{emit-step-cmd-WRWIKVHO.js → emit-step-cmd-SRUU33RB.js} +19 -19
- package/dist/{exec-client-L32MBS5M.js → exec-client-Y6AAFVTZ.js} +11 -11
- package/dist/{find-unit-4OYP7R3I.js → find-unit-7DECI3VM.js} +16 -16
- package/dist/{findings-cmd-BI3PMYEP.js → findings-cmd-T2TOB6KO.js} +19 -19
- package/dist/fleet-readiness-KQ5V6IG3.js +33 -0
- package/dist/governing-source-TM2PTQ3U.js +45 -0
- package/dist/guest-init-WU4ZAAV5.js +22 -0
- package/dist/{hook-fast-LJQP5DE3.js → hook-fast-2HV5SDMH.js} +4 -4
- package/dist/{hook-install-33FYUDIE.js → hook-install-J6O7OY65.js} +6 -6
- package/dist/{hook-wrap-fast-7E5LAYEU.js → hook-wrap-fast-PILF2WIO.js} +3 -3
- package/dist/host-checks-NAGX2VDD.js +83 -0
- package/dist/host-key-7FQTMPTR.js +20 -0
- package/dist/{image-tag-BI6C4CKO.js → image-tag-CNURVQ6A.js} +11 -11
- package/dist/index.js +6 -6
- package/dist/{init-MB2POSL3.js → init-DUDTTY3W.js} +51 -51
- package/dist/init-FIB75BJT.js +83 -0
- package/dist/{init-agent-7EIXAFDY.js → init-agent-A63WZ3UR.js} +51 -51
- package/dist/init-cmd-VM2K5K33.js +55 -0
- package/dist/{init-update-EC4G5Q26.js → init-update-CWP654DO.js} +29 -29
- package/dist/install-cmd-KNSCKS5G.js +28 -0
- package/dist/launch-agent-G23B3AZY.js +28 -0
- package/dist/{layout-JQCHHAB7.js → layout-EASZTHPX.js} +6 -6
- package/dist/{login-browser-J5BFWBCZ.js → login-browser-FGB3SPPL.js} +2 -2
- package/dist/{logs-S2E32DDI.js → logs-FYUUZGVY.js} +10 -10
- package/dist/loop-JVCXNJII.js +93 -0
- package/dist/machine-4TGRLFX6.js +83 -0
- package/dist/{machine-skills-XOZYRCQU.js → machine-skills-YJTIV4CG.js} +6 -6
- package/dist/{mcp-install-cmd-2OYL5QG2.js → mcp-install-cmd-FMIWTXSN.js} +6 -6
- package/dist/{mcp-serve-cmd-BGUFN5HD.js → mcp-serve-cmd-XSC6JKPN.js} +12 -12
- package/dist/{paths-7GRBF4FR.js → paths-2NKGJEOH.js} +10 -10
- package/dist/pending-IPTBJ23E.js +20 -0
- package/dist/pidfile-JYF2IO24.js +21 -0
- package/dist/record-6CSKET4N.js +20 -0
- package/dist/{relay-LPJV7OVV.js → relay-DURC5GWY.js} +8 -8
- package/dist/{relay-protocol-3BVU2NN5.js → relay-protocol-Y35SJFEB.js} +8 -8
- package/dist/{run-cmd-VX3W4XRS.js → run-cmd-T7GT6KM7.js} +19 -19
- package/dist/{runner-agents-VTEO2GEK.js → runner-agents-JFQQ7IB4.js} +6 -6
- package/dist/runner-env-AODHERZK.js +26 -0
- package/dist/runner-identity-ZHHB66RZ.js +22 -0
- package/dist/{runner-key-4E3N523Z.js → runner-key-TN5JBLEJ.js} +51 -51
- package/dist/session-sender-SAS3TI3A.js +46 -0
- package/dist/{setup-cmd-YYICF6KV.js → setup-cmd-WBFRSOMO.js} +38 -22
- package/dist/{setup-wiring-MBAPYPIM.js → setup-wiring-FFAB5KTV.js} +100 -66
- package/dist/{shell-function-6ZFAVOSM.js → shell-function-JWLJSRIM.js} +2 -2
- package/dist/{spec-cmd-IOOIZLHA.js → spec-cmd-PBGFGAXJ.js} +20 -20
- package/dist/{starter-pack-VJ6M5POI.js → starter-pack-DQV55I24.js} +7 -7
- package/dist/state-LU4QEDY2.js +20 -0
- package/dist/{status-JMMO2LES.js → status-2NQ4ECP3.js} +51 -51
- package/dist/{statusline-fast-VVJF5W7X.js → statusline-fast-WRBKP3AS.js} +3 -3
- package/dist/{sync-cmd-MIY3CSOE.js → sync-cmd-4JT3G5OV.js} +23 -23
- package/dist/update-steps-HF7QE6DP.js +84 -0
- package/dist/{watch-3V2OVFAZ.js → watch-QHYJED4N.js} +23 -23
- package/dist/{work-claim-cmd-7PYXYZZJ.js → work-claim-cmd-DX5GOTQH.js} +25 -25
- package/dist/{work-cmd-2I7L7227.js → work-cmd-EU4NBOLZ.js} +19 -19
- package/dist/work-comment-cmd-T755RNST.js +41 -0
- package/dist/{work-demo-cmd-2I6VOWH5.js → work-demo-cmd-T5GOAB6O.js} +19 -19
- package/dist/{work-logs-cmd-AQBA46OJ.js → work-logs-cmd-T63RWLKG.js} +19 -19
- package/dist/{work-mock-cmd-AQPCQ4KI.js → work-mock-cmd-KSN7PZGO.js} +19 -19
- package/dist/{work-needs-attention-cmd-LW7VQFA6.js → work-needs-attention-cmd-NGKNSYT2.js} +19 -19
- package/dist/{work-no-change-cmd-ECYFFJFN.js → work-no-change-cmd-74TGMQHY.js} +19 -19
- package/dist/{work-open-pr-cmd-O4OVHG27.js → work-open-pr-cmd-D2EBUVDO.js} +20 -20
- package/dist/work-pr-cmd-2NZUROBY.js +36 -0
- package/dist/{work-proofs-cmd-C3C634CO.js → work-proofs-cmd-M56HY7FO.js} +21 -21
- package/dist/{work-proofs-record-S7SF4425.js → work-proofs-record-LRZ4KDWU.js} +29 -29
- package/dist/{work-stop-cmd-IQYI7NCK.js → work-stop-cmd-IZPPBGGN.js} +19 -19
- 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 +2 -2
- 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-K5FWHJWR.js +0 -43
- package/dist/build-3HTOQKNF.js +0 -28
- package/dist/build-disk-SK2UT2DT.js +0 -23
- package/dist/builder-WCXNOGKF.js +0 -22
- package/dist/caller-VUQN24KZ.js +0 -25
- package/dist/docker-2EAXH2W2.js +0 -22
- package/dist/emit-artifact-cmd-FMYIDU4K.js +0 -46
- package/dist/emit-criteria-cmd-QXBQAOPQ.js +0 -37
- package/dist/fleet-readiness-7IXZYEIJ.js +0 -33
- package/dist/governing-source-FAXSIJ4Q.js +0 -45
- package/dist/guest-init-7JHRMG5K.js +0 -22
- package/dist/host-checks-US7MSJVQ.js +0 -83
- package/dist/host-key-BOUX75EI.js +0 -20
- package/dist/init-W46LLTR3.js +0 -83
- package/dist/init-cmd-VTNMWE6X.js +0 -55
- package/dist/install-cmd-WTKSXRM7.js +0 -28
- package/dist/launch-agent-JXPYZ3BW.js +0 -28
- package/dist/loop-HQREFLQ2.js +0 -93
- package/dist/machine-4K3EUQNF.js +0 -83
- package/dist/pending-4LIHL6P7.js +0 -20
- package/dist/pidfile-WYTFOPLR.js +0 -21
- package/dist/record-VCLLNGFQ.js +0 -20
- package/dist/runner-env-XHPLX7Q2.js +0 -26
- package/dist/runner-identity-WYXCLNP5.js +0 -22
- package/dist/session-sender-I4L22CLF.js +0 -46
- package/dist/state-TPL7K4S3.js +0 -20
- package/dist/update-steps-WXP7ANHM.js +0 -84
- package/dist/work-comment-cmd-UOT7NIQP.js +0 -41
- package/dist/work-pr-cmd-YKDXW5RP.js +0 -36
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { CLAUDE_CODE_HOOKS, CODEX_CODEC, OPENCODE_CODEC } from './chunk-
|
|
4
|
-
import { CLAUDE_CODE, CODEX, OPENCODE, NATIVE_AGENTS, LEGACY_AGENT, homeRelative } from './chunk-
|
|
3
|
+
import { CLAUDE_CODE_HOOKS, CODEX_CODEC, OPENCODE_CODEC } from './chunk-DYKRQC4O.js';
|
|
4
|
+
import { CLAUDE_CODE, CODEX, OPENCODE, NATIVE_AGENTS, LEGACY_AGENT, homeRelative } from './chunk-7FAKHR6W.js';
|
|
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
|
}
|
|
@@ -7853,70 +7844,74 @@ function parsePolicyFile(file) {
|
|
|
7853
7844
|
return fail(`review has value "${inlineText(String(root["review"]))}" \u2014 use required or optional`);
|
|
7854
7845
|
}
|
|
7855
7846
|
}
|
|
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 };
|
|
7847
|
+
return { mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief, problems };
|
|
7848
|
+
}
|
|
7849
|
+
function splitJudgeFile(content) {
|
|
7850
|
+
const text = content.replace(/^\uFEFF/, "");
|
|
7851
|
+
const lines = text.split(/\r?\n/);
|
|
7852
|
+
if (lines[0].trimEnd() !== "---") return { frontmatter: null, body: text };
|
|
7853
|
+
const end = lines.findIndex((line, index) => index > 0 && line.trimEnd() === "---");
|
|
7854
|
+
if (end === -1) return null;
|
|
7855
|
+
return { frontmatter: lines.slice(1, end).join("\n"), body: lines.slice(end + 1).join("\n") };
|
|
7869
7856
|
}
|
|
7870
|
-
var
|
|
7871
|
-
|
|
7872
|
-
|
|
7857
|
+
var JUDGE_KEYS = /* @__PURE__ */ new Set(["name", "description", "when", "counts", "for_each"]);
|
|
7858
|
+
var JUDGE_FILE_NAME = /([^/]*)\.md$/;
|
|
7859
|
+
function parseJudgeFile(file, problems) {
|
|
7860
|
+
var _a, _b, _c;
|
|
7873
7861
|
const fail = (problem) => {
|
|
7874
7862
|
problems.push({ file: file.path, problem });
|
|
7875
7863
|
return null;
|
|
7876
7864
|
};
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
} catch (error) {
|
|
7881
|
-
return fail(`not valid YAML \u2014 ${error instanceof Error ? error.message : String(error)}`);
|
|
7882
|
-
}
|
|
7883
|
-
if (!isRecord(root)) return fail("must be a YAML mapping");
|
|
7884
|
-
if (root["id"] === CODE_REVIEW_NAME) return null;
|
|
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
|
+
const id = (_b = (_a = JUDGE_FILE_NAME.exec(file.path)) == null ? void 0 : _a[1]) != null ? _b : "";
|
|
7866
|
+
if (!SLUG_PATTERN2.test(id)) {
|
|
7867
|
+
return fail(`the file name must be a lowercase id and end in .md (got ${inlineText(JSON.stringify(file.path.split("/").pop()))})`);
|
|
7888
7868
|
}
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
return fail(`"id" must be lowercase id characters (got ${inlineText(JSON.stringify(root["id"]))})`);
|
|
7869
|
+
if (id === CODE_REVIEW_NAME || id === CRITERIA_JUDGE_NAME) {
|
|
7870
|
+
return fail(`"${id}" is the name of a built-in step \u2014 rename the file`);
|
|
7892
7871
|
}
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
return fail(`"${id}" has kind "${inlineText(String(kind))}" \u2014 use validation`);
|
|
7872
|
+
if (RESERVED_EMIT_NAMES.includes(id)) {
|
|
7873
|
+
return fail(`"${id}" is a reserved name \u2014 rename the file`);
|
|
7896
7874
|
}
|
|
7897
|
-
const
|
|
7898
|
-
if (
|
|
7899
|
-
|
|
7875
|
+
const parts = splitJudgeFile(file.content);
|
|
7876
|
+
if (parts === null) return fail(`"${id}" frontmatter has no closing "---" line`);
|
|
7877
|
+
let root = {};
|
|
7878
|
+
if (parts.frontmatter !== null) {
|
|
7879
|
+
try {
|
|
7880
|
+
root = (0, import_yaml.parse)(parts.frontmatter);
|
|
7881
|
+
} catch (error) {
|
|
7882
|
+
return fail(`"${id}" frontmatter is not valid YAML \u2014 ${error instanceof Error ? error.message : String(error)}`);
|
|
7883
|
+
}
|
|
7884
|
+
if (root === null) root = {};
|
|
7900
7885
|
}
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
return fail(`"${id}"
|
|
7886
|
+
if (!isRecord(root)) return fail(`"${id}" frontmatter must be a YAML mapping`);
|
|
7887
|
+
for (const key of Object.keys(root)) {
|
|
7888
|
+
if (!JUDGE_KEYS.has(key)) return fail(`"${id}" has unknown key "${inlineText(key)}"`);
|
|
7904
7889
|
}
|
|
7905
7890
|
const rawName = root["name"];
|
|
7906
7891
|
let name = null;
|
|
7907
7892
|
if (rawName !== void 0) {
|
|
7908
|
-
|
|
7909
|
-
return fail(`"${id}" name must be one short line`);
|
|
7910
|
-
}
|
|
7911
|
-
const trimmedName = rawName.trim();
|
|
7893
|
+
const trimmedName = typeof rawName === "string" ? rawName.trim() : "";
|
|
7912
7894
|
if (trimmedName === "" || CONTROL_CHARS.test(trimmedName) || trimmedName.length > MAX_NAME_LENGTH) {
|
|
7913
|
-
return fail(`"${id}" name must be one
|
|
7895
|
+
return fail(`"${id}" name must be one line of at most ${MAX_NAME_LENGTH} characters`);
|
|
7914
7896
|
}
|
|
7915
7897
|
name = trimmedName;
|
|
7916
7898
|
}
|
|
7917
|
-
const
|
|
7918
|
-
|
|
7919
|
-
|
|
7899
|
+
const rawDescription = root["description"];
|
|
7900
|
+
let description = null;
|
|
7901
|
+
if (rawDescription !== void 0) {
|
|
7902
|
+
const trimmedDescription = typeof rawDescription === "string" ? rawDescription.trim() : "";
|
|
7903
|
+
if (trimmedDescription === "" || CONTROL_CHARS.test(trimmedDescription) || trimmedDescription.length > MAX_DESCRIPTION_LENGTH) {
|
|
7904
|
+
return fail(`"${id}" description must be one line of at most ${MAX_DESCRIPTION_LENGTH} characters`);
|
|
7905
|
+
}
|
|
7906
|
+
description = trimmedDescription;
|
|
7907
|
+
}
|
|
7908
|
+
const counts = (_c = root["counts"]) != null ? _c : false;
|
|
7909
|
+
if (typeof counts !== "boolean") {
|
|
7910
|
+
return fail(`"${id}" has counts "${inlineText(String(counts))}" \u2014 use true or false`);
|
|
7911
|
+
}
|
|
7912
|
+
const forEach = root["for_each"];
|
|
7913
|
+
if (forEach !== void 0 && forEach !== "criterion") {
|
|
7914
|
+
return fail(`"${id}" has for_each "${inlineText(String(forEach))}" \u2014 use criterion, or leave the key out`);
|
|
7920
7915
|
}
|
|
7921
7916
|
let whenPaths = null;
|
|
7922
7917
|
let whenIssueType = null;
|
|
@@ -7924,12 +7919,8 @@ function parseCustomFile(file, problems) {
|
|
|
7924
7919
|
let whenRepositories;
|
|
7925
7920
|
if (root["when"] !== void 0) {
|
|
7926
7921
|
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
|
-
);
|
|
7922
|
+
if (!isRecord(when) || Object.keys(when).some((key) => key !== "paths" && key !== "repositories" && key !== "issue") || Object.keys(when).length === 0) {
|
|
7923
|
+
return fail(`"${id}" when: only "paths", "repositories" and "issue" scoping is supported`);
|
|
7933
7924
|
}
|
|
7934
7925
|
const paths = when["paths"];
|
|
7935
7926
|
if (paths !== void 0) {
|
|
@@ -7959,75 +7950,47 @@ function parseCustomFile(file, problems) {
|
|
|
7959
7950
|
}
|
|
7960
7951
|
whenRepositories = repositories.map((name2) => name2.trim());
|
|
7961
7952
|
}
|
|
7962
|
-
const
|
|
7963
|
-
if (
|
|
7964
|
-
if (
|
|
7965
|
-
return fail(`"${id}" when.issue
|
|
7953
|
+
const issue = when["issue"];
|
|
7954
|
+
if (issue !== void 0) {
|
|
7955
|
+
if (!isRecord(issue) || Object.keys(issue).some((key) => key !== "type" && key !== "labels") || Object.keys(issue).length === 0) {
|
|
7956
|
+
return fail(`"${id}" when.issue: only "type" and "labels" scoping is supported`);
|
|
7966
7957
|
}
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7958
|
+
const issueType = issue["type"];
|
|
7959
|
+
if (issueType !== void 0) {
|
|
7960
|
+
if (typeof issueType !== "string" || issueType.trim() === "") {
|
|
7961
|
+
return fail(`"${id}" when.issue.type must be a non-empty string`);
|
|
7962
|
+
}
|
|
7963
|
+
whenIssueType = issueType.trim();
|
|
7964
|
+
}
|
|
7965
|
+
const issueLabels = issue["labels"];
|
|
7966
|
+
if (issueLabels !== void 0) {
|
|
7967
|
+
if (!Array.isArray(issueLabels) || issueLabels.length === 0 || issueLabels.some((label) => typeof label !== "string" || label.trim() === "")) {
|
|
7968
|
+
return fail(`"${id}" when.issue.labels must be a non-empty list of label names`);
|
|
7969
|
+
}
|
|
7970
|
+
whenIssueLabels = issueLabels.map((label) => label.trim());
|
|
7973
7971
|
}
|
|
7974
|
-
whenIssueLabels = issueLabels.map((label) => label.trim());
|
|
7975
7972
|
}
|
|
7976
7973
|
}
|
|
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
|
-
);
|
|
7974
|
+
const instructions = parts.body.trim();
|
|
7975
|
+
if (instructions === "") {
|
|
7976
|
+
return fail(`"${id}" has no instructions \u2014 write what the judge decides below the frontmatter`);
|
|
8009
7977
|
}
|
|
8010
7978
|
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
|
|
7979
|
+
id,
|
|
7980
|
+
name,
|
|
7981
|
+
description,
|
|
7982
|
+
level: counts ? "warn" : "info",
|
|
7983
|
+
whenPaths,
|
|
7984
|
+
whenIssueType,
|
|
7985
|
+
whenIssueLabels,
|
|
7986
|
+
...whenRepositories === void 0 ? {} : { whenRepositories, whenRepositoriesFile: file.path },
|
|
7987
|
+
judge: { instructions, subjects: forEach === "criterion" ? "criteria" : "none" }
|
|
8024
7988
|
};
|
|
8025
7989
|
}
|
|
8026
|
-
function parsePolicy(policyFile,
|
|
8027
|
-
var _a, _b, _c, _d, _e
|
|
7990
|
+
function parsePolicy(policyFile, judgeFiles) {
|
|
7991
|
+
var _a, _b, _c, _d, _e;
|
|
8028
7992
|
const problems = [];
|
|
8029
7993
|
const policy = policyFile ? parsePolicyFile(policyFile) : {
|
|
8030
|
-
overrides: {},
|
|
8031
7994
|
mergeGate: null,
|
|
8032
7995
|
review: null,
|
|
8033
7996
|
testProof: null,
|
|
@@ -8042,55 +8005,13 @@ function parsePolicy(policyFile, validatorFiles) {
|
|
|
8042
8005
|
const testProof = (_c = policy.testProof) != null ? _c : "any";
|
|
8043
8006
|
const criteriaMissing = (_d = policy.criteriaMissing) != null ? _d : policyFile !== null ? "warn" : "off";
|
|
8044
8007
|
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);
|
|
8061
|
-
}
|
|
8062
|
-
const emitOwners = /* @__PURE__ */ new Map();
|
|
8063
|
-
const deduped = parsed.filter((p) => {
|
|
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;
|
|
8008
|
+
const customs = [];
|
|
8009
|
+
for (const file of [...judgeFiles].sort((a, b) => a.path < b.path ? -1 : 1)) {
|
|
8010
|
+
const def = parseJudgeFile(file, problems);
|
|
8011
|
+
if (def !== null) customs.push(def);
|
|
8089
8012
|
}
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
);
|
|
8093
|
-
return { levels, customs, mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief: policy.criteriaJudgeBrief, problems };
|
|
8013
|
+
customs.sort((a, b) => a.id < b.id ? -1 : 1);
|
|
8014
|
+
return { customs, mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief: policy.criteriaJudgeBrief, problems };
|
|
8094
8015
|
}
|
|
8095
8016
|
var FILES_PLACEHOLDER = "{files}";
|
|
8096
8017
|
function isRecord2(value) {
|
|
@@ -12487,17 +12408,8 @@ function namesCore(text) {
|
|
|
12487
12408
|
}
|
|
12488
12409
|
function requiredByBuild(repoRoot, skill, base) {
|
|
12489
12410
|
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
12411
|
try {
|
|
12500
|
-
return
|
|
12412
|
+
return readFileSync(join$1(repoRoot, skillDir("build", base), "SKILL.md"), "utf8").includes(RELATIVE_CORE);
|
|
12501
12413
|
} catch {
|
|
12502
12414
|
return false;
|
|
12503
12415
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
5
|
-
import { PROVIDERS, LEGACY_AGENT, isModelId } from './chunk-
|
|
4
|
+
import { defaultAgents, agentById } from './chunk-22UMHY5K.js';
|
|
5
|
+
import { PROVIDERS, LEGACY_AGENT, isModelId } from './chunk-7FAKHR6W.js';
|
|
6
6
|
import { join, dirname } from 'path';
|
|
7
7
|
|
|
8
8
|
createRequire(import.meta.url);
|