@outerlayer/cli 0.40.0-next.20261115012015 → 0.40.0-next.20261115113038
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/dist/agent-setup-HFMI2FCO.js +41 -0
- package/dist/{agent-subcommand-PVTVR4VJ.js → agent-subcommand-TGMUYMIV.js} +4 -4
- package/dist/{artifact-link-cmd-SDKPWPQK.js → artifact-link-cmd-K6VFGMIO.js} +2 -2
- package/dist/{bridge-7Z6MLB2B.js → bridge-6EVOZBWB.js} +7 -7
- package/dist/{build-A2WX5O3I.js → build-JX6ITGKI.js} +13 -13
- package/dist/{build-disk-ASKLEF5R.js → build-disk-RODL3IQ2.js} +11 -11
- package/dist/build-info.json +1 -1
- package/dist/{builder-ANFJHFZQ.js → builder-T4DS6F4V.js} +10 -10
- package/dist/caller-GVPCWQVM.js +23 -0
- package/dist/{check-WLQZ2BVT.js → check-OS4D4LN6.js} +55 -55
- package/dist/{chunk-DF2ATCBQ.js → chunk-2HE3W4OM.js} +1 -1
- package/dist/{chunk-5D3XOHGK.js → chunk-2YKDXSZX.js} +7 -7
- package/dist/{chunk-PWDLJKEI.js → chunk-3BPM4FIB.js} +30 -30
- package/dist/{chunk-NBNZFLKJ.js → chunk-3FJGWAYD.js} +6 -6
- package/dist/{chunk-TTHF4LOS.js → chunk-3T6DZAZX.js} +13 -6
- package/dist/{chunk-4XN2LKSK.js → chunk-47BLFHNK.js} +4 -4
- package/dist/{chunk-GQAGAMY7.js → chunk-4FMN3U57.js} +6 -6
- package/dist/{chunk-IUJS6LR7.js → chunk-4GYGOWO5.js} +7 -7
- package/dist/{chunk-Y2US5RDK.js → chunk-4QVIBBKJ.js} +2 -1
- package/dist/{chunk-ND6JA3K5.js → chunk-4TVL4E53.js} +1 -1
- package/dist/{chunk-WNFQV5SL.js → chunk-4YJPE23H.js} +1 -1
- package/dist/{chunk-624IRDBJ.js → chunk-6B636UWA.js} +7 -7
- package/dist/{chunk-BY4SXNUL.js → chunk-6R5JI7LV.js} +3 -3
- package/dist/{chunk-TQZHYLX5.js → chunk-76GFXRC7.js} +1 -1
- package/dist/{chunk-FMYWIBBW.js → chunk-7DCFL2MK.js} +2 -2
- package/dist/{chunk-EXRBPNSJ.js → chunk-7GX7NXJW.js} +4 -4
- package/dist/{chunk-AUJPQVNR.js → chunk-7NX2ROFF.js} +3 -3
- package/dist/{chunk-WR2TR6BC.js → chunk-7RSR6ESV.js} +1 -1
- package/dist/{chunk-NG7HVAK4.js → chunk-7UXZOTF2.js} +6 -6
- package/dist/{chunk-N6DWNOEF.js → chunk-7YVZIUOX.js} +1 -1
- package/dist/{chunk-KTHGBFIH.js → chunk-B2EEVHR7.js} +3 -3
- package/dist/{chunk-PUUQKA3W.js → chunk-B6LZQ5GU.js} +2 -2
- package/dist/{chunk-D5YKPIHV.js → chunk-BU7PN6MB.js} +1 -1
- package/dist/{chunk-OHJUCEPI.js → chunk-CEVYSNA4.js} +1 -1
- package/dist/{chunk-OVV6F6TV.js → chunk-CR7DKNRM.js} +5 -34
- package/dist/{chunk-HRDPD4MF.js → chunk-DOIXXWA5.js} +3 -3
- package/dist/{chunk-TDTWNGCO.js → chunk-DV44KCM6.js} +1 -1
- package/dist/{chunk-ROQTVOAM.js → chunk-E2FIHWJX.js} +6 -6
- package/dist/{chunk-MP6INWPC.js → chunk-EA2GVFAF.js} +4 -4
- package/dist/{chunk-4ATFANLO.js → chunk-FOT3WJNH.js} +2 -2
- package/dist/{chunk-HMVOTDEQ.js → chunk-FSYB5QAV.js} +9 -4
- package/dist/{chunk-QWTN72TN.js → chunk-G6S2EKAF.js} +1 -1
- package/dist/{chunk-T3X3FZIR.js → chunk-GWT2XAGQ.js} +1 -1
- package/dist/{chunk-5MCLOGP5.js → chunk-H4RY2T6I.js} +58 -17
- package/dist/{chunk-UDFHJ4KG.js → chunk-IEU2WSC4.js} +8 -8
- package/dist/{chunk-SXF7NWK3.js → chunk-J4LUKUXC.js} +1 -1
- package/dist/{chunk-2EON52MM.js → chunk-KTN4XDPJ.js} +1 -1
- package/dist/{chunk-O7UOBZ7J.js → chunk-KXJDFBJH.js} +7 -7
- package/dist/{chunk-6SOATTHF.js → chunk-LIVBFF3D.js} +3 -3
- package/dist/{chunk-DMAAKDGD.js → chunk-LPTLGM24.js} +1 -1
- package/dist/{chunk-ND5SOLPS.js → chunk-LSUYPZDQ.js} +64 -54
- package/dist/{chunk-ZIBM6BTL.js → chunk-MCUI6RHU.js} +2 -1
- package/dist/{chunk-ST5S3P2C.js → chunk-MT5NUKSC.js} +2 -2
- package/dist/{chunk-7RDHN455.js → chunk-MUCWOHFZ.js} +1 -1
- package/dist/{chunk-OZG4BNC6.js → chunk-NXOTVGPL.js} +35 -11
- package/dist/{chunk-HTIUY3ER.js → chunk-O2T4LDT7.js} +4 -4
- package/dist/{chunk-DUNJ67ZH.js → chunk-OBADCUZF.js} +8 -12
- package/dist/{chunk-U4LX6N6O.js → chunk-OID5XOPL.js} +7 -7
- package/dist/{chunk-RSW5AXPT.js → chunk-PJZ7RTXX.js} +1 -1
- package/dist/{chunk-XD7V5HF5.js → chunk-PWJKROIT.js} +9 -9
- package/dist/{chunk-IMMWZV57.js → chunk-RIURJ7G6.js} +4 -4
- package/dist/{chunk-4XM6NRKW.js → chunk-RWI7Z2G6.js} +1 -1
- package/dist/{chunk-A3SSJ7WS.js → chunk-SQFSYAPO.js} +1 -1
- package/dist/{chunk-R2XWZSLR.js → chunk-T2OAXE5H.js} +1 -1
- package/dist/{chunk-W3UPD3D6.js → chunk-T4D2ZDCC.js} +10 -10
- package/dist/{chunk-ULENFLVA.js → chunk-TDEVXYWR.js} +5 -5
- package/dist/{chunk-ULDQ7IM5.js → chunk-TLLAFQMP.js} +1 -1
- package/dist/{chunk-2OSEUHWY.js → chunk-TPC6MXKS.js} +1 -1
- package/dist/{chunk-WYJSHRD6.js → chunk-TPVQLW5Q.js} +10 -10
- package/dist/{chunk-RLNTFA2C.js → chunk-UC2JHW7P.js} +1 -1
- package/dist/{chunk-IB4SVQNB.js → chunk-ULL2MHZU.js} +4 -4
- package/dist/{chunk-VGV3J5CX.js → chunk-V64FGZNM.js} +1 -1
- package/dist/{chunk-ADXJXXGU.js → chunk-VBAXFWTK.js} +8 -21
- package/dist/{chunk-3WYPBALP.js → chunk-WGYAMFBU.js} +8 -8
- package/dist/{chunk-YY64D4FA.js → chunk-X5SZ3MB6.js} +1 -1
- package/dist/{chunk-HNOFOZKP.js → chunk-XSNB2SKN.js} +7 -7
- package/dist/{chunk-LGF6NNBQ.js → chunk-Y55ARAPE.js} +22 -17
- package/dist/{chunk-C533PUPH.js → chunk-YDK6CONG.js} +5 -5
- package/dist/{chunk-BXWZCLJ3.js → chunk-YH7RGFKK.js} +1 -1
- package/dist/{chunk-PNZMJFVP.js → chunk-Z5LGWR5H.js} +6 -6
- package/dist/{chunk-NOCOZB2Z.js → chunk-ZHT7IJDC.js} +3 -3
- package/dist/{chunk-X5WH346T.js → chunk-ZIPXFVRF.js} +5 -5
- package/dist/{chunk-ANBDFUHT.js → chunk-ZV77MALL.js} +3 -3
- package/dist/{claude-launcher-FOPWME6I.js → claude-launcher-6ZSKTRY5.js} +7 -7
- package/dist/{cli-WD3BPYUH.js → cli-YGHAHE6B.js} +168 -167
- package/dist/{command-IJ7NRXFE.js → command-YFFSOJFG.js} +51 -51
- package/dist/{config-PFQRCT5B.js → config-TYASXT5C.js} +12 -12
- package/dist/{connect-cmd-YQVCFXOE.js → connect-cmd-EX67GWJF.js} +13 -13
- package/dist/{container-start-2RSK36GV.js → container-start-E3BHNHAX.js} +48 -48
- package/dist/{context-cleanup-U7MHU55P.js → context-cleanup-ENT7CYJC.js} +4 -4
- package/dist/{context-show-cmd-NURTDGRD.js → context-show-cmd-IMVD75NE.js} +14 -14
- package/dist/{control-plane-launch-P2E55QZ4.js → control-plane-launch-SPSKDMIE.js} +14 -14
- package/dist/{demo-record-cmd-VBWYXYOF.js → demo-record-cmd-T4DP3XE5.js} +8 -8
- package/dist/{demo-voice-cmd-6UGAD5KN.js → demo-voice-cmd-2W34DIXY.js} +20 -20
- package/dist/{dist-VQBROFST.js → dist-DYFPNEVO.js} +2 -2
- package/dist/{docker-WMGXGZFP.js → docker-BBIDJR46.js} +10 -10
- package/dist/{doctor-6VSCTPWX.js → doctor-S4B74VR6.js} +50 -50
- package/dist/{emit-artifact-cmd-7F3BZXCQ.js → emit-artifact-cmd-VB2YPJXK.js} +19 -19
- package/dist/{emit-cmd-6KU5H7YA.js → emit-cmd-YNJYHGS3.js} +7 -7
- package/dist/{emit-criteria-cmd-VAYG4P4W.js → emit-criteria-cmd-R3RBHQNJ.js} +16 -16
- package/dist/{emit-demo-cmd-JIY6ITUC.js → emit-demo-cmd-CIVHU33R.js} +20 -20
- package/dist/{emit-finding-cmd-PBUULSSJ.js → emit-finding-cmd-YRCHPJEI.js} +16 -16
- package/dist/{emit-result-cmd-NDJBQBZS.js → emit-result-cmd-DMWCSZ53.js} +18 -18
- package/dist/{emit-step-cmd-KMVQE7GK.js → emit-step-cmd-PCPLHBTG.js} +16 -16
- package/dist/{exec-client-BJ4FHM2I.js → exec-client-AAXCCEVU.js} +8 -8
- package/dist/find-unit-3K3NXINH.js +24 -0
- package/dist/{findings-cmd-ES7ACSNZ.js → findings-cmd-XXDHIZAC.js} +16 -16
- package/dist/{fleet-readiness-3JMW2XNT.js → fleet-readiness-WRXR4ILW.js} +14 -14
- package/dist/{governing-source-LFRWLC43.js → governing-source-323OKKIB.js} +21 -21
- package/dist/{guest-init-ZZ3QGRFT.js → guest-init-A5CCQEEK.js} +9 -9
- package/dist/{hook-fast-A5LADBOU.js → hook-fast-M6FWJHZL.js} +1 -1
- package/dist/{hook-install-J426ZN4P.js → hook-install-5HFZDBIC.js} +4 -4
- package/dist/host-checks-O45NM3FR.js +82 -0
- package/dist/host-key-R3ZJKBQ3.js +18 -0
- package/dist/{image-tag-7PALJT67.js → image-tag-K32BVEIL.js} +8 -8
- package/dist/index.js +4 -4
- package/dist/init-GY555FEJ.js +82 -0
- package/dist/{init-VPKR33RD.js → init-JCNL6KIH.js} +46 -46
- package/dist/{init-agent-L5O3TUUM.js → init-agent-NAUXPN72.js} +46 -46
- package/dist/{init-cmd-UEILLR5H.js → init-cmd-QRUGFWFU.js} +27 -27
- package/dist/{init-update-WWUADCXX.js → init-update-SO7V6L6K.js} +24 -24
- package/dist/install-cmd-6RKBV54Z.js +26 -0
- package/dist/launch-agent-Q6H3IT4D.js +26 -0
- package/dist/{layout-7XSGJVYR.js → layout-A7YL63UE.js} +4 -4
- package/dist/{login-browser-NG7JWXED.js → login-browser-KJPWH65X.js} +2 -2
- package/dist/{logs-6DZKJJ22.js → logs-6VEF36N6.js} +7 -7
- package/dist/loop-VWRPT6RZ.js +92 -0
- package/dist/machine-ELMFTAMF.js +82 -0
- package/dist/{machine-skills-K2RCLA6K.js → machine-skills-RTHSWGSU.js} +4 -4
- package/dist/{mcp-install-cmd-DWD6O27B.js → mcp-install-cmd-UQBQOGZ4.js} +4 -4
- package/dist/{mcp-serve-cmd-2KAWL7JK.js → mcp-serve-cmd-MOKXNZ2A.js} +9 -9
- package/dist/{paths-BZKRN5J3.js → paths-44NEENDO.js} +7 -7
- package/dist/pending-43OCDSZO.js +18 -0
- package/dist/{pidfile-4C23LXPN.js → pidfile-XWUX735M.js} +8 -8
- package/dist/{record-ABSHWHSO.js → record-6P5TK6K7.js} +8 -8
- package/dist/{relay-NZWG6R4J.js → relay-CLQW7IR5.js} +5 -5
- package/dist/{relay-protocol-7ZN7CVXP.js → relay-protocol-Y4L6Q72I.js} +5 -5
- package/dist/{run-cmd-J57WUDCT.js → run-cmd-FQDKFHPW.js} +16 -16
- package/dist/{runner-agents-FCJR2SGQ.js → runner-agents-2KPYIXN2.js} +4 -4
- package/dist/runner-env-2YODIR2Z.js +24 -0
- package/dist/{runner-identity-PIEZDCFI.js → runner-identity-G57VDLXN.js} +10 -10
- package/dist/{runner-key-6IW6SPGG.js → runner-key-KBTAINMI.js} +46 -46
- package/dist/{session-sender-4DSE6XWZ.js → session-sender-JIJQNDF4.js} +19 -19
- package/dist/{spec-cmd-7ISTYBBZ.js → spec-cmd-HMWQQQTD.js} +17 -17
- package/dist/{starter-pack-Y4NOXPWC.js → starter-pack-M7YNHN7G.js} +5 -5
- package/dist/state-3QZYSC4V.js +18 -0
- package/dist/{status-R7MMPMJJ.js → status-XFXBD6AT.js} +47 -47
- package/dist/{sync-cmd-KXVGXVPP.js → sync-cmd-QBFJN77X.js} +18 -18
- package/dist/update-steps-66PD5IUI.js +83 -0
- package/dist/{watch-BQRPLHO4.js → watch-XNH2BXGJ.js} +18 -18
- package/dist/{work-claim-cmd-GT3QV7C7.js → work-claim-cmd-Z5HYNHUR.js} +22 -22
- package/dist/{work-cmd-3Y45NSG6.js → work-cmd-DP3TL3PK.js} +16 -16
- package/dist/{work-comment-cmd-ZAFDFRLJ.js → work-comment-cmd-MYQU3AQR.js} +18 -18
- package/dist/{work-demo-cmd-V3EO3VD3.js → work-demo-cmd-TFQBM4QZ.js} +16 -16
- package/dist/{work-logs-cmd-RH3N2Y6D.js → work-logs-cmd-AY7L52OM.js} +16 -16
- package/dist/{work-mock-cmd-4HQRK3JR.js → work-mock-cmd-PSGGXCSY.js} +16 -16
- package/dist/{work-needs-attention-cmd-3VBHUC5T.js → work-needs-attention-cmd-QF6J4QKV.js} +16 -16
- package/dist/{work-no-change-cmd-HAJTDQOS.js → work-no-change-cmd-TJB23FY5.js} +16 -16
- package/dist/{work-open-pr-cmd-W4V46HYM.js → work-open-pr-cmd-YD5QYZPP.js} +17 -17
- package/dist/{work-pr-cmd-A4DVHGWR.js → work-pr-cmd-OYOUNRB7.js} +16 -16
- package/dist/{work-proofs-cmd-2NX43SSO.js → work-proofs-cmd-BZ4QMJSB.js} +18 -18
- package/dist/{work-proofs-record-NBVX7AHX.js → work-proofs-record-L4T6SLPP.js} +24 -24
- package/dist/{work-stop-cmd-E7G52CQN.js → work-stop-cmd-EARW2MXW.js} +16 -16
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +3 -3
- package/skill-pack/maintained/outerlayer-amend/references/check-items.md +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +6 -6
- package/skill-pack/maintained/outerlayer-build/references/release.md +6 -6
- package/skill-pack/maintained/outerlayer-evidence/SKILL.md +3 -7
- package/skill-pack/shipped.json +0 -9
- package/dist/agent-setup-5ZZTNFNP.js +0 -41
- package/dist/caller-KCSJDOWD.js +0 -23
- package/dist/find-unit-VUV76BIL.js +0 -24
- package/dist/host-checks-SUOWG537.js +0 -82
- package/dist/host-key-J24PEPIK.js +0 -18
- package/dist/init-SKXGA5U7.js +0 -82
- package/dist/install-cmd-WQ2KFKHI.js +0 -21
- package/dist/launch-agent-NC7OZQGZ.js +0 -26
- package/dist/loop-K53YB3BL.js +0 -92
- package/dist/machine-KLF5DDMY.js +0 -82
- package/dist/pending-5Y4PJTOZ.js +0 -18
- package/dist/runner-env-AJWM62J2.js +0 -24
- package/dist/state-RZ2GSI4R.js +0 -18
- package/dist/update-steps-K5QPTNQQ.js +0 -83
- package/skill-pack/validators/acceptance-criteria.yaml +0 -42
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession } from './chunk-
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
5
|
-
import { workPageUrl } from './chunk-
|
|
6
|
-
import { sanitizeTerminal } from './chunk-
|
|
3
|
+
import { detectActiveSession } from './chunk-MUCWOHFZ.js';
|
|
4
|
+
import { autoConnect } from './chunk-DOIXXWA5.js';
|
|
5
|
+
import { workPageUrl } from './chunk-7UXZOTF2.js';
|
|
6
|
+
import { sanitizeTerminal } from './chunk-DV44KCM6.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-
|
|
9
|
-
import { signRunnerRequest } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-YH7RGFKK.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-BU7PN6MB.js';
|
|
10
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import { resolveRepoIdentity } from './chunk-
|
|
14
|
+
import { resolveRepoIdentity } from './chunk-Y55ARAPE.js';
|
|
15
15
|
|
|
16
16
|
createRequire(import.meta.url);
|
|
17
17
|
|
|
@@ -563,7 +563,7 @@ async function runWorkLinkSession(opts) {
|
|
|
563
563
|
return await linkSession(opts);
|
|
564
564
|
} catch (err) {
|
|
565
565
|
if (opts.logFailures) {
|
|
566
|
-
const { logHookError } = await import('./hook-fast-
|
|
566
|
+
const { logHookError } = await import('./hook-fast-M6FWJHZL.js');
|
|
567
567
|
const reason = err instanceof Error ? err.message : String(err);
|
|
568
568
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
569
569
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
|
|
4
4
|
import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
|
|
5
|
-
import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-
|
|
5
|
+
import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-NXOTVGPL.js';
|
|
6
6
|
import { execFileSync } from 'child_process';
|
|
7
7
|
import { lstatSync, existsSync, unlinkSync, readdirSync, rmdirSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
8
8
|
import { join, dirname, isAbsolute } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
4
|
-
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-
|
|
4
|
+
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-NXOTVGPL.js';
|
|
5
5
|
import { readFileSync, existsSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
6
6
|
import { join, dirname, relative, sep } from 'path';
|
|
7
7
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
4
|
-
import { runEmitArtifact } from './chunk-
|
|
4
|
+
import { runEmitArtifact } from './chunk-OID5XOPL.js';
|
|
5
5
|
import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
|
|
6
|
-
import { detectActiveSession } from './chunk-
|
|
7
|
-
import { autoConnect } from './chunk-
|
|
6
|
+
import { detectActiveSession } from './chunk-MUCWOHFZ.js';
|
|
7
|
+
import { autoConnect } from './chunk-DOIXXWA5.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
9
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-YH7RGFKK.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
11
|
-
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-
|
|
11
|
+
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-T2OAXE5H.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
13
|
-
import { resolveRepoIdentity } from './chunk-
|
|
14
|
-
import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-
|
|
13
|
+
import { resolveRepoIdentity } from './chunk-Y55ARAPE.js';
|
|
14
|
+
import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-MCUI6RHU.js';
|
|
15
15
|
import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
|
|
16
16
|
import { createHash } from 'crypto';
|
|
17
17
|
import { readFileSync, mkdtempSync, writeFileSync, statSync, rmSync, mkdirSync, existsSync, copyFileSync, accessSync, constants, realpathSync, createReadStream, createWriteStream } from 'fs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-
|
|
3
|
+
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-4YJPE23H.js';
|
|
4
4
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
5
|
-
import { EXEC_PORT } from './chunk-
|
|
6
|
-
import { RELAY_PORT } from './chunk-
|
|
5
|
+
import { EXEC_PORT } from './chunk-B2EEVHR7.js';
|
|
6
|
+
import { RELAY_PORT } from './chunk-ULL2MHZU.js';
|
|
7
7
|
import { spawn, spawnSync } from 'child_process';
|
|
8
8
|
import { symlinkSync, lstatSync, writeFileSync, chmodSync, mkdirSync, existsSync } from 'fs';
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-TPC6MXKS.js';
|
|
5
5
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
6
6
|
import { dirname } from 'path';
|
|
7
7
|
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { MAX_TEST_FILE_BYTES, itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems } from './chunk-
|
|
3
|
+
import { MAX_TEST_FILE_BYTES, itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems } from './chunk-6R5JI7LV.js';
|
|
4
4
|
import { RUNNER_PROTOCOL } from './chunk-2UBMDLUF.js';
|
|
5
5
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
7
|
-
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-
|
|
8
|
-
import { upgradedStarterText } from './chunk-
|
|
9
|
-
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-
|
|
10
|
-
import { writeDockerClientConfig } from './chunk-
|
|
11
|
-
import { senderPidfile } from './chunk-
|
|
12
|
-
import { installScrubContext } from './chunk-
|
|
7
|
+
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-TDEVXYWR.js';
|
|
8
|
+
import { upgradedStarterText } from './chunk-VBAXFWTK.js';
|
|
9
|
+
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-LIVBFF3D.js';
|
|
10
|
+
import { writeDockerClientConfig } from './chunk-4YJPE23H.js';
|
|
11
|
+
import { senderPidfile } from './chunk-O2T4LDT7.js';
|
|
12
|
+
import { installScrubContext } from './chunk-PWJKROIT.js';
|
|
13
13
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
14
|
-
import { runnerImageVersion } from './chunk-
|
|
15
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-
|
|
14
|
+
import { runnerImageVersion } from './chunk-7YVZIUOX.js';
|
|
15
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-7DCFL2MK.js';
|
|
16
16
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
17
|
-
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-
|
|
18
|
-
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-
|
|
17
|
+
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-2YKDXSZX.js';
|
|
18
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-RIURJ7G6.js';
|
|
19
19
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
20
20
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
21
|
-
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-
|
|
22
|
-
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-
|
|
23
|
-
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-
|
|
24
|
-
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-
|
|
25
|
-
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-
|
|
26
|
-
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-
|
|
27
|
-
import { said, NETWORK_HELPER_MEMORY, firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, identityRunArgs, SAVED_STATE_LABEL } from './chunk-
|
|
28
|
-
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-
|
|
29
|
-
import { sanitizeTerminal, planArtifactUpload } from './chunk-
|
|
30
|
-
import { sharedSkillNames, skillConflictMessage } from './chunk-
|
|
21
|
+
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-V64FGZNM.js';
|
|
22
|
+
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-B2EEVHR7.js';
|
|
23
|
+
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-6B636UWA.js';
|
|
24
|
+
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-IEU2WSC4.js';
|
|
25
|
+
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-EA2GVFAF.js';
|
|
26
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-MT5NUKSC.js';
|
|
27
|
+
import { said, NETWORK_HELPER_MEMORY, firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, identityRunArgs, SAVED_STATE_LABEL } from './chunk-WGYAMFBU.js';
|
|
28
|
+
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-2HE3W4OM.js';
|
|
29
|
+
import { sanitizeTerminal, planArtifactUpload } from './chunk-DV44KCM6.js';
|
|
30
|
+
import { sharedSkillNames, skillConflictMessage } from './chunk-SQFSYAPO.js';
|
|
31
31
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
32
|
-
import { signerFor } from './chunk-
|
|
33
|
-
import { sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-
|
|
34
|
-
import { BUILD_HOME, dataPlaneOf, sandboxCallOf, SandboxError, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, checkoutPath, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, providerMayAnswerLater, toolProxyEnvironment } from './chunk-
|
|
35
|
-
import { agentCredential, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, builtInNames, currentAgentCredential, removedAgentCredentialValues, realFdStorePort, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, fdName, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-
|
|
32
|
+
import { signerFor } from './chunk-BU7PN6MB.js';
|
|
33
|
+
import { sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-TPC6MXKS.js';
|
|
34
|
+
import { BUILD_HOME, dataPlaneOf, sandboxCallOf, SandboxError, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, checkoutPath, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, providerMayAnswerLater, toolProxyEnvironment } from './chunk-ULL2MHZU.js';
|
|
35
|
+
import { agentCredential, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, builtInNames, currentAgentCredential, removedAgentCredentialValues, realFdStorePort, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, fdName, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-B6LZQ5GU.js';
|
|
36
36
|
import { versionAtLeast } from './chunk-SF2TBJBP.js';
|
|
37
|
-
import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, defaultCommandLine, credentialAgent, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, strippedVariables, runnerAgents, judgeAgent, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, agentVersionOf } from './chunk-
|
|
38
|
-
import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-
|
|
37
|
+
import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, defaultCommandLine, credentialAgent, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, strippedVariables, runnerAgents, judgeAgent, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, agentVersionOf } from './chunk-T2OAXE5H.js';
|
|
38
|
+
import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-NXOTVGPL.js';
|
|
39
39
|
import { MAINTAINED_SKILLS } from './chunk-TGVNEQSQ.js';
|
|
40
40
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
41
41
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
42
|
-
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-
|
|
43
|
-
import { CheckItemsSchema, CODE_REVIEW_NAME, JUDGE_NOT_RUN_ITEM_ID, CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEM_HREF_MAX_LENGTH, downconvertSession } from './chunk-
|
|
42
|
+
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-Y55ARAPE.js';
|
|
43
|
+
import { CheckItemsSchema, CODE_REVIEW_NAME, CRITERIA_JUDGE_NAME, JUDGE_NOT_RUN_ITEM_ID, CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEM_HREF_MAX_LENGTH, downconvertSession } from './chunk-MCUI6RHU.js';
|
|
44
44
|
import { randomUUID, randomBytes, createHash } from 'crypto';
|
|
45
45
|
import { rmSync, mkdirSync, existsSync, readFileSync, mkdtempSync, statSync, appendFileSync, writeFileSync, readdirSync, accessSync, constants, openSync, closeSync, lstatSync, chmodSync, renameSync, rmdirSync, createReadStream, unlinkSync, realpathSync, writeSync, truncateSync, cpSync, copyFileSync, fstatSync, readSync, createWriteStream, linkSync } from 'fs';
|
|
46
46
|
import { join, dirname, isAbsolute, delimiter, basename, sep, relative, resolve } from 'path';
|
|
@@ -9139,9 +9139,6 @@ async function runJudge(input) {
|
|
|
9139
9139
|
}
|
|
9140
9140
|
let checks = [];
|
|
9141
9141
|
if (definitions.ok) {
|
|
9142
|
-
for (const id of definitions.unrecorded) {
|
|
9143
|
-
log.line(`${tag} judge not run for ${id}: the check is not run.where: host with a judge or a command, so this host records no result for it`);
|
|
9144
|
-
}
|
|
9145
9142
|
checks = definitions.checks.filter(isJudgeCheck);
|
|
9146
9143
|
} else {
|
|
9147
9144
|
log.line(`${tag} judge not run: the definitions could not be read: ${definitions.reason}`);
|
|
@@ -9150,7 +9147,7 @@ async function runJudge(input) {
|
|
|
9150
9147
|
if (passed.ok) {
|
|
9151
9148
|
const record2 = makeRecorder({ config, job, jobDir, deps });
|
|
9152
9149
|
const reason = `the definitions could not be read: ${definitions.reason}`;
|
|
9153
|
-
for (const name of passed.value) await record2(name, "fail", reason, { idTag: "judge-unread", ...name ===
|
|
9150
|
+
for (const name of passed.value) await record2(name, "fail", reason, { idTag: "judge-unread", ...name === CRITERIA_JUDGE_NAME ? {} : { items: notRunItems(reason) } });
|
|
9154
9151
|
} else {
|
|
9155
9152
|
log.error(`${tag} the item's host results could not be read, so none was failed: ${passed.reason}`);
|
|
9156
9153
|
}
|
|
@@ -9179,6 +9176,23 @@ async function runJudge(input) {
|
|
|
9179
9176
|
log.line(`${tag} judge done (${formatDuration(now().getTime() - startedMs)})`);
|
|
9180
9177
|
}
|
|
9181
9178
|
async function judgeOne(check) {
|
|
9179
|
+
let workItem;
|
|
9180
|
+
let criteria;
|
|
9181
|
+
let previous = [];
|
|
9182
|
+
if (check.judge.subjects === "criteria") {
|
|
9183
|
+
try {
|
|
9184
|
+
workItem = await readItem();
|
|
9185
|
+
} catch (err) {
|
|
9186
|
+
return await fail(check, `the item's criteria could not be read: ${describeCallFailure(err)}`);
|
|
9187
|
+
}
|
|
9188
|
+
criteria = criteriaOf(workItem);
|
|
9189
|
+
if (criteria === void 0) {
|
|
9190
|
+
log.line(`${tag} judge: no criteria are recorded for the item, so ${check.name} records no result`);
|
|
9191
|
+
return;
|
|
9192
|
+
}
|
|
9193
|
+
previous = hostItemsOf(workItem, check.name);
|
|
9194
|
+
}
|
|
9195
|
+
if (check.judge.text === void 0) return await fail(check, `the brief ${check.judge.brief} is not in the definitions repository`);
|
|
9182
9196
|
const agent = judgeAgent(runtime.agents);
|
|
9183
9197
|
if (agent?.adapter.headless === void 0) return await fail(check, `${agent?.descriptor.label ?? "the agent list"} has no headless part, so it cannot run the judge`);
|
|
9184
9198
|
const missing = noAgentProgram(agent.descriptor.label);
|
|
@@ -9187,7 +9201,6 @@ async function runJudge(input) {
|
|
|
9187
9201
|
const expected = builtOf(job)?.judgeProgram;
|
|
9188
9202
|
if (expected === void 0) return await fail(check, missing);
|
|
9189
9203
|
const brief = check.judge.text;
|
|
9190
|
-
if (brief === void 0) return await fail(check, `the brief ${check.judge.brief} is not in the definitions repository`);
|
|
9191
9204
|
if (tokens === void 0) return await fail(check, "the build's repository tokens are no longer held, so the branch cannot be fetched");
|
|
9192
9205
|
const credential = judgeCredential(config, jobDir, runtime);
|
|
9193
9206
|
if (credential === void 0) return await fail(check, `the host holds no ${agent.descriptor.credentials.label} credential for the judge`);
|
|
@@ -9218,19 +9231,6 @@ async function runJudge(input) {
|
|
|
9218
9231
|
return await fail(check, `no read token for ${repo}: ${describeCallFailure(err)}`);
|
|
9219
9232
|
}
|
|
9220
9233
|
}
|
|
9221
|
-
let criteria;
|
|
9222
|
-
let previous = [];
|
|
9223
|
-
if (check.judge.subjects === "criteria") {
|
|
9224
|
-
let workItem;
|
|
9225
|
-
try {
|
|
9226
|
-
workItem = await readItem();
|
|
9227
|
-
} catch (err) {
|
|
9228
|
-
return await fail(check, `the item's criteria could not be read: ${describeCallFailure(err)}`);
|
|
9229
|
-
}
|
|
9230
|
-
criteria = criteriaOf(workItem);
|
|
9231
|
-
if (criteria === void 0) return await fail(check, "no criteria are recorded for the item");
|
|
9232
|
-
previous = hostItemsOf(workItem, check.name);
|
|
9233
|
-
}
|
|
9234
9234
|
const branchDir = join(scratch, "branch");
|
|
9235
9235
|
const fetched = await (deps.fetchCommit ?? fetchCommit)({ remote, dir: branchDir, commit: head, token: subjectToken });
|
|
9236
9236
|
if (!fetched.ok) return await fail(check, `the build's tests could not be fetched: ${fetched.reason}`);
|
|
@@ -13661,7 +13661,18 @@ function validatorFilesIn(root) {
|
|
|
13661
13661
|
}
|
|
13662
13662
|
return files;
|
|
13663
13663
|
}
|
|
13664
|
-
var
|
|
13664
|
+
var SHIPPED_JUDGE_BRIEF = join("maintained", "outerlayer-build", "references", "criteria-judge.md");
|
|
13665
|
+
function shippedJudgeBrief() {
|
|
13666
|
+
try {
|
|
13667
|
+
return readFileSync(join(resolvePackRoot(), SHIPPED_JUDGE_BRIEF), "utf8");
|
|
13668
|
+
} catch {
|
|
13669
|
+
return void 0;
|
|
13670
|
+
}
|
|
13671
|
+
}
|
|
13672
|
+
function criteriaJudgeCheck(root, brief, log, tag) {
|
|
13673
|
+
if (brief !== null) return { name: CRITERIA_JUDGE_NAME, builtIn: true, judge: { brief, text: readBrief(root, brief, log, tag), subjects: "criteria" } };
|
|
13674
|
+
return { name: CRITERIA_JUDGE_NAME, builtIn: true, judge: { brief: "the criteria-judge brief this CLI ships", text: shippedJudgeBrief(), subjects: "criteria" } };
|
|
13675
|
+
}
|
|
13665
13676
|
function asHostReads(file, base, log, tag) {
|
|
13666
13677
|
const upgraded = upgradedStarterText(file.path, file.content, { base });
|
|
13667
13678
|
if (upgraded === void 0) return file;
|
|
@@ -13676,18 +13687,17 @@ function checksIn(root, log, tag) {
|
|
|
13676
13687
|
const base = existsSync(join(root, AGENTS_SKILLS_BASE)) ? AGENTS_SKILLS_BASE : OUTERLAYER_SKILLS_BASE;
|
|
13677
13688
|
const policyText = readInside(root, POLICY_FILE);
|
|
13678
13689
|
const policy = policyText === void 0 ? null : asHostReads({ path: POLICY_FILE, content: policyText }, base, log, tag);
|
|
13679
|
-
const loaded = parsePolicy(policy, validatorFilesIn(root)
|
|
13690
|
+
const loaded = parsePolicy(policy, validatorFilesIn(root));
|
|
13680
13691
|
for (const problem of loaded.problems) log.error(`${tag} ${problem.file}: ${problem.problem}`);
|
|
13681
13692
|
const hostChecks = loaded.customs.filter(
|
|
13682
|
-
(def) => def.runWhere === "host" && def.level !== "off" && def.declaresEmit !== null && def.declaresEmit !== CODE_REVIEW_NAME
|
|
13693
|
+
(def) => def.runWhere === "host" && def.level !== "off" && def.declaresEmit !== null && def.declaresEmit !== CODE_REVIEW_NAME && def.declaresEmit !== CRITERIA_JUDGE_NAME
|
|
13683
13694
|
);
|
|
13684
|
-
const checks = [];
|
|
13695
|
+
const checks = loaded.criteriaJudge === "off" ? [] : [criteriaJudgeCheck(root, loaded.criteriaJudgeBrief, log, tag)];
|
|
13685
13696
|
for (const def of hostChecks) {
|
|
13686
13697
|
if (def.judge !== void 0) checks.push({ name: def.declaresEmit, judge: { brief: def.judge.brief, text: readBrief(root, def.judge.brief, log, tag), subjects: def.judge.subjects } });
|
|
13687
13698
|
else if (def.command !== void 0) checks.push({ name: def.declaresEmit, command: def.command });
|
|
13688
13699
|
}
|
|
13689
|
-
|
|
13690
|
-
return { checks, unrecorded };
|
|
13700
|
+
return { checks };
|
|
13691
13701
|
}
|
|
13692
13702
|
function builtOf(job) {
|
|
13693
13703
|
return job.container ?? job.microvm ?? job.sandbox?.container;
|
|
@@ -14052,4 +14062,4 @@ async function runHostChecks(input) {
|
|
|
14052
14062
|
}
|
|
14053
14063
|
}
|
|
14054
14064
|
|
|
14055
|
-
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook,
|
|
14065
|
+
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, SANDBOX_MACHINES, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, builtOf, checksIn, claimPermissionProblem, claimRun, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createGatewaySandboxClient, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, environmentFor, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gatewayRefusalReason, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, judgeCredential, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, keptSessionDir, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, nativeWindowsSandboxRefusal, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, readWorkItem, recordsProofsOnly, recoverLostJobs, rejoinSandboxBuild, releaseLease, removeOldestUntil, removeRunnerBlock, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, restoreSessionIntoSandbox, restoreWork, retryFailedReleases, runCommand, runCommandOf, runDecision, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, sessionGuestOfContainer, sessionGuestOfMicroVm, sessionGuestOfSandbox, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, treeFileText, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workRestoredEnv, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|
|
@@ -22417,6 +22417,7 @@ var CHECK_ITEM_REF_PATH_MAX_LENGTH = 500;
|
|
|
22417
22417
|
var CHECK_ITEM_HREF_MAX_LENGTH = 1e3;
|
|
22418
22418
|
var JUDGE_NOT_RUN_ITEM_ID = "judge-not-run";
|
|
22419
22419
|
var CODE_REVIEW_NAME = "code-review";
|
|
22420
|
+
var CRITERIA_JUDGE_NAME = "acceptance-criteria";
|
|
22420
22421
|
var REVIEWED_COMMIT_ITEM_ID = "reviewed-commit";
|
|
22421
22422
|
var UNREVIEWED_FILES_ITEM_ID = "unreviewed-files";
|
|
22422
22423
|
var ONE_LINE = /^[^\u0000-\u001f\u007f]+$/;
|
|
@@ -23072,4 +23073,4 @@ xmlchars/xmlns/1.0/ed3.js:
|
|
|
23072
23073
|
*)
|
|
23073
23074
|
*/
|
|
23074
23075
|
|
|
23075
|
-
export { ARTIFACT_KINDS, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, ARTIFACT_MAX_FILENAME_LENGTH, ARTIFACT_MAX_REPLACES_TARGETS, ATTACHMENT_CLIENT_ID_HEADER, ATTACHMENT_FILENAME_HEADER, ATTACHMENT_SHA256_HEADER, ArtifactCriterionIdSchema, ArtifactSpoolRecordSchema, ArtifactTombstoneRecordSchema, BUCKET_MODEL_MAX_LENGTH, CAPTURE_TIERS, CHECK_ITEMS_MAX, CHECK_ITEM_HREF_MAX_LENGTH, CHECK_ITEM_ID_MAX_LENGTH, CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEM_REFS_MAX, CHECK_ITEM_REF_PATH_MAX_LENGTH, CLI_LOGIN_KIND, CLI_LOGIN_MACHINE_NAME_MAX, CODE_REVIEW_NAME, CODE_REVIEW_PROBLEMS_MAX, CheckItemsSchema, CliLoginPollResponseSchema, CliLoginRefusalSchema, CliLoginStartedSchema, CriteriaListSchema, DEMO_MANIFEST_LATEST_VERSION, DEMO_RECORD_MEDIA_TYPE, DemoManifestSchema, EMITTED_RESULTS, EMITTED_RESULT_MAX_BODY_LENGTH, EMITTED_RESULT_MAX_LINK_LENGTH, EVENT_TYPES, EmittedNameSchema, FINDING_CODE_EXCERPT_MAX_LENGTH, FINDING_TRANSCRIPT_EXCERPT_MAX_LENGTH, FindingBatchSchema, FindingsResponseSchema, INPUT_BAND_BOUNDARIES, JUDGE_NOT_RUN_ITEM_ID, RESERVED_EMIT_NAMES, REVIEWED_COMMIT_ITEM_ID, SAME_PROBLEM_RULES, SCHEMA_VERSION, SPEED_MAX_LENGTH, StepBodySchema, StepNameSchema, UNREVIEWED_FILES_ITEM_ID, WORK_ITEM_ATTACHMENTS_MAX_PER_COMMENT, WORK_ITEM_ATTACHMENTS_MAX_TOTAL_BYTES, WORK_ITEM_ATTACHMENT_MAX_BYTES, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, attachmentKind, bannedPathsForTier, bindTests, cleanAttachmentFilename, downconvertSession, findingGaps, inferArtifactKind, inputBandOf, isHumanUserTurn, isTestSourcePath, itemsAllowResult, mediaTypeForArtifactPath, parseAgentSession, parseJunit, parseTestSelector, problemKind, turnCountBound };
|
|
23076
|
+
export { ARTIFACT_KINDS, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, ARTIFACT_MAX_FILENAME_LENGTH, ARTIFACT_MAX_REPLACES_TARGETS, ATTACHMENT_CLIENT_ID_HEADER, ATTACHMENT_FILENAME_HEADER, ATTACHMENT_SHA256_HEADER, ArtifactCriterionIdSchema, ArtifactSpoolRecordSchema, ArtifactTombstoneRecordSchema, BUCKET_MODEL_MAX_LENGTH, CAPTURE_TIERS, CHECK_ITEMS_MAX, CHECK_ITEM_HREF_MAX_LENGTH, CHECK_ITEM_ID_MAX_LENGTH, CHECK_ITEM_REASON_MAX_LENGTH, CHECK_ITEM_REFS_MAX, CHECK_ITEM_REF_PATH_MAX_LENGTH, CLI_LOGIN_KIND, CLI_LOGIN_MACHINE_NAME_MAX, CODE_REVIEW_NAME, CODE_REVIEW_PROBLEMS_MAX, CRITERIA_JUDGE_NAME, CheckItemsSchema, CliLoginPollResponseSchema, CliLoginRefusalSchema, CliLoginStartedSchema, CriteriaListSchema, DEMO_MANIFEST_LATEST_VERSION, DEMO_RECORD_MEDIA_TYPE, DemoManifestSchema, EMITTED_RESULTS, EMITTED_RESULT_MAX_BODY_LENGTH, EMITTED_RESULT_MAX_LINK_LENGTH, EVENT_TYPES, EmittedNameSchema, FINDING_CODE_EXCERPT_MAX_LENGTH, FINDING_TRANSCRIPT_EXCERPT_MAX_LENGTH, FindingBatchSchema, FindingsResponseSchema, INPUT_BAND_BOUNDARIES, JUDGE_NOT_RUN_ITEM_ID, RESERVED_EMIT_NAMES, REVIEWED_COMMIT_ITEM_ID, SAME_PROBLEM_RULES, SCHEMA_VERSION, SPEED_MAX_LENGTH, StepBodySchema, StepNameSchema, UNREVIEWED_FILES_ITEM_ID, WORK_ITEM_ATTACHMENTS_MAX_PER_COMMENT, WORK_ITEM_ATTACHMENTS_MAX_TOTAL_BYTES, WORK_ITEM_ATTACHMENT_MAX_BYTES, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, attachmentKind, bannedPathsForTier, bindTests, cleanAttachmentFilename, downconvertSession, findingGaps, inferArtifactKind, inputBandOf, isHumanUserTurn, isTestSourcePath, itemsAllowResult, mediaTypeForArtifactPath, parseAgentSession, parseJunit, parseTestSelector, problemKind, turnCountBound };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-
|
|
4
|
-
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-
|
|
3
|
+
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-WGYAMFBU.js';
|
|
4
|
+
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-TPC6MXKS.js';
|
|
5
5
|
import { spawnSync } from 'child_process';
|
|
6
6
|
import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
|
|
7
7
|
import { dirname, join } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { defaultAgents } from './chunk-NXOTVGPL.js';
|
|
4
4
|
import { openSync, fstatSync, readSync, closeSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -5,8 +5,8 @@ import { CLAUDE_CODE, OPENCODE, NATIVE_AGENTS, LEGACY_AGENT, homeRelative } from
|
|
|
5
5
|
import { MAINTAINED_SKILLS } from './chunk-TGVNEQSQ.js';
|
|
6
6
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
|
-
import { forkFor, RAW_MIRROR_SEGMENTS, WarningCollector, WARNING_CODES, isNewerThanSupported, bucketsFromTurns, costOfUsage } from './chunk-
|
|
9
|
-
import { CODE_REVIEW_NAME, RESERVED_EMIT_NAMES, EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, ARTIFACT_KINDS, ArtifactCriterionIdSchema, SPEED_MAX_LENGTH } from './chunk-
|
|
8
|
+
import { forkFor, RAW_MIRROR_SEGMENTS, WarningCollector, WARNING_CODES, isNewerThanSupported, bucketsFromTurns, costOfUsage } from './chunk-Y55ARAPE.js';
|
|
9
|
+
import { CODE_REVIEW_NAME, CRITERIA_JUDGE_NAME, RESERVED_EMIT_NAMES, EVENT_TYPES, isHumanUserTurn, INPUT_BAND_BOUNDARIES, parseAgentSession, SCHEMA_VERSION, ARTIFACT_KINDS, ArtifactCriterionIdSchema, SPEED_MAX_LENGTH } from './chunk-MCUI6RHU.js';
|
|
10
10
|
import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
|
|
11
11
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, readdirSync, rmSync, renameSync, realpathSync, readlinkSync, symlinkSync, copyFileSync, statSync, accessSync, constants, lstatSync } from 'fs';
|
|
12
12
|
import { join as join$1, dirname, sep, basename, relative, delimiter } from 'path';
|
|
@@ -7724,8 +7724,8 @@ var CONTEXT_PIN_FILENAME = ".outerlayer-pin.json";
|
|
|
7724
7724
|
var JUDGE_SUBJECTS = ["criteria", "none"];
|
|
7725
7725
|
var MAX_BRIEF_LENGTH = 300;
|
|
7726
7726
|
var MAX_COMMAND_LENGTH = 2e3;
|
|
7727
|
-
var EXTENDS_PROBLEM = '"extends" is not a policy key \u2014 every check is a file in .outerlayer/validators/.
|
|
7728
|
-
var FREED_BUILTINS = /* @__PURE__ */ new Set(["ci-passed", "
|
|
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
7729
|
var RETIRED_BUILTINS = /* @__PURE__ */ new Set([
|
|
7730
7730
|
"red-then-green",
|
|
7731
7731
|
"no-test-tampering",
|
|
@@ -7756,6 +7756,9 @@ function isRecord(value) {
|
|
|
7756
7756
|
function parseLevel(value) {
|
|
7757
7757
|
return value === "warn" || value === "info" || value === "off" ? value : null;
|
|
7758
7758
|
}
|
|
7759
|
+
function isRepositoryPath(value) {
|
|
7760
|
+
return typeof value === "string" && value.length > 0 && value.length <= MAX_GLOB_LENGTH && !CONTROL_CHARS.test(value) && !value.startsWith("/") && !value.split("/").includes("..");
|
|
7761
|
+
}
|
|
7759
7762
|
function parseMergeGate(value) {
|
|
7760
7763
|
return value === "none" || value === "on-flag" ? value : null;
|
|
7761
7764
|
}
|
|
@@ -7766,7 +7769,7 @@ function parsePolicyFile(file) {
|
|
|
7766
7769
|
const problems = [];
|
|
7767
7770
|
const fail = (problem) => {
|
|
7768
7771
|
problems.push({ file: file.path, problem });
|
|
7769
|
-
return { overrides: {}, mergeGate: null, review: null, testProof: null, criteriaMissing: null, problems };
|
|
7772
|
+
return { overrides: {}, mergeGate: null, review: null, testProof: null, criteriaMissing: null, criteriaJudge: null, criteriaJudgeBrief: null, problems };
|
|
7770
7773
|
};
|
|
7771
7774
|
let root;
|
|
7772
7775
|
try {
|
|
@@ -7795,11 +7798,13 @@ function parsePolicyFile(file) {
|
|
|
7795
7798
|
}
|
|
7796
7799
|
let testProof = null;
|
|
7797
7800
|
let criteriaMissing = null;
|
|
7801
|
+
let criteriaJudge = null;
|
|
7802
|
+
let criteriaJudgeBrief = null;
|
|
7798
7803
|
if (root["criteria"] !== void 0) {
|
|
7799
7804
|
const criteria = root["criteria"];
|
|
7800
7805
|
if (!isRecord(criteria)) return fail("criteria must be a mapping");
|
|
7801
7806
|
for (const key of Object.keys(criteria)) {
|
|
7802
|
-
if (key !== "replace" && key !== "test_proof" && key !== "missing") {
|
|
7807
|
+
if (key !== "replace" && key !== "test_proof" && key !== "missing" && key !== "judge" && key !== "judge_brief") {
|
|
7803
7808
|
return fail(`unknown key "criteria.${inlineText(key)}"`);
|
|
7804
7809
|
}
|
|
7805
7810
|
}
|
|
@@ -7818,6 +7823,21 @@ function parsePolicyFile(file) {
|
|
|
7818
7823
|
}
|
|
7819
7824
|
criteriaMissing = level;
|
|
7820
7825
|
}
|
|
7826
|
+
const rawJudge = criteria["judge"];
|
|
7827
|
+
if (rawJudge !== void 0) {
|
|
7828
|
+
const level = parseLevel(rawJudge);
|
|
7829
|
+
if (level === null) {
|
|
7830
|
+
return fail(`criteria.judge has value "${inlineText(String(rawJudge))}" \u2014 use warn, info, or off`);
|
|
7831
|
+
}
|
|
7832
|
+
criteriaJudge = level;
|
|
7833
|
+
}
|
|
7834
|
+
const rawBrief = criteria["judge_brief"];
|
|
7835
|
+
if (rawBrief !== void 0) {
|
|
7836
|
+
if (!isRepositoryPath(rawBrief)) {
|
|
7837
|
+
return fail(`criteria.judge_brief has value "${inlineText(String(rawBrief))}" \u2014 use a file path from the repository root`);
|
|
7838
|
+
}
|
|
7839
|
+
criteriaJudgeBrief = rawBrief;
|
|
7840
|
+
}
|
|
7821
7841
|
const replace = criteria["replace"];
|
|
7822
7842
|
if (replace !== void 0 && replace !== "people" && replace !== "anyone") {
|
|
7823
7843
|
return fail(`criteria.replace has value "${inlineText(String(replace))}" \u2014 use people or anyone`);
|
|
@@ -7851,7 +7871,7 @@ function parsePolicyFile(file) {
|
|
|
7851
7871
|
overrides[id] = level;
|
|
7852
7872
|
}
|
|
7853
7873
|
}
|
|
7854
|
-
return { overrides, mergeGate, review, testProof, criteriaMissing, problems };
|
|
7874
|
+
return { overrides, mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief, problems };
|
|
7855
7875
|
}
|
|
7856
7876
|
function parseSessionRan(value, file, problems) {
|
|
7857
7877
|
var _a;
|
|
@@ -7989,6 +8009,7 @@ function parseCustomFile(file, problems) {
|
|
|
7989
8009
|
}
|
|
7990
8010
|
if (!isRecord(root)) return fail("must be a YAML mapping");
|
|
7991
8011
|
if (root["id"] === CODE_REVIEW_NAME) return null;
|
|
8012
|
+
if (root["id"] === CRITERIA_JUDGE_NAME) return null;
|
|
7992
8013
|
for (const key of Object.keys(root)) {
|
|
7993
8014
|
if (!CUSTOM_KEYS.has(key)) return fail(`unknown key "${inlineText(key)}"`);
|
|
7994
8015
|
}
|
|
@@ -8241,7 +8262,7 @@ function dropCycles(parsed, problems) {
|
|
|
8241
8262
|
});
|
|
8242
8263
|
}
|
|
8243
8264
|
function parsePolicy(policyFile, validatorFiles) {
|
|
8244
|
-
var _a, _b, _c, _d, _e;
|
|
8265
|
+
var _a, _b, _c, _d, _e, _f;
|
|
8245
8266
|
const problems = [];
|
|
8246
8267
|
const policy = policyFile ? parsePolicyFile(policyFile) : {
|
|
8247
8268
|
overrides: {},
|
|
@@ -8249,6 +8270,8 @@ function parsePolicy(policyFile, validatorFiles) {
|
|
|
8249
8270
|
review: null,
|
|
8250
8271
|
testProof: null,
|
|
8251
8272
|
criteriaMissing: null,
|
|
8273
|
+
criteriaJudge: null,
|
|
8274
|
+
criteriaJudgeBrief: null,
|
|
8252
8275
|
problems: []
|
|
8253
8276
|
};
|
|
8254
8277
|
problems.push(...policy.problems);
|
|
@@ -8256,6 +8279,7 @@ function parsePolicy(policyFile, validatorFiles) {
|
|
|
8256
8279
|
const review = (_b = policy.review) != null ? _b : "required";
|
|
8257
8280
|
const testProof = (_c = policy.testProof) != null ? _c : "any";
|
|
8258
8281
|
const criteriaMissing = (_d = policy.criteriaMissing) != null ? _d : policyFile !== null ? "warn" : "off";
|
|
8282
|
+
const criteriaJudge = (_e = policy.criteriaJudge) != null ? _e : "warn";
|
|
8259
8283
|
const parsed = [];
|
|
8260
8284
|
const signalIds = /* @__PURE__ */ new Set();
|
|
8261
8285
|
const seenIds = /* @__PURE__ */ new Set();
|
|
@@ -8294,11 +8318,11 @@ function parsePolicy(policyFile, validatorFiles) {
|
|
|
8294
8318
|
const levels = {};
|
|
8295
8319
|
for (const custom of sorted) levels[custom.id] = custom.level;
|
|
8296
8320
|
for (const [id, level] of Object.entries(policy.overrides)) {
|
|
8297
|
-
if (RETIRED_BUILTINS.has(id) || id === CODE_REVIEW_NAME) continue;
|
|
8321
|
+
if (RETIRED_BUILTINS.has(id) || id === CODE_REVIEW_NAME || id === CRITERIA_JUDGE_NAME) continue;
|
|
8298
8322
|
if (FREED_BUILTINS.has(id) && !(id in levels)) continue;
|
|
8299
8323
|
if (!(id in levels) && !signalIds.has(id)) {
|
|
8300
8324
|
problems.push({
|
|
8301
|
-
file: (
|
|
8325
|
+
file: (_f = policyFile == null ? void 0 : policyFile.path) != null ? _f : ".outerlayer/policy.yaml",
|
|
8302
8326
|
problem: `policy levels unknown validator "${id}"`
|
|
8303
8327
|
});
|
|
8304
8328
|
continue;
|
|
@@ -8308,7 +8332,7 @@ function parsePolicy(policyFile, validatorFiles) {
|
|
|
8308
8332
|
const customs = sorted.map(
|
|
8309
8333
|
(def) => levels[def.id] === def.level ? def : { ...def, level: levels[def.id] }
|
|
8310
8334
|
);
|
|
8311
|
-
return { levels, customs, mergeGate, review, testProof, criteriaMissing, problems };
|
|
8335
|
+
return { levels, customs, mergeGate, review, testProof, criteriaMissing, criteriaJudge, criteriaJudgeBrief: policy.criteriaJudgeBrief, problems };
|
|
8312
8336
|
}
|
|
8313
8337
|
function extractCommandText(raw) {
|
|
8314
8338
|
const text = raw.trim();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import { spoolDir } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-PWJKROIT.js';
|
|
4
|
+
import { spoolDir } from './chunk-ZV77MALL.js';
|
|
5
5
|
import { parseRunEnv, parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
6
|
-
import { sessionFolderIn, legacyAgent } from './chunk-
|
|
6
|
+
import { sessionFolderIn, legacyAgent } from './chunk-NXOTVGPL.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
|
-
import { CaptureDaemon } from './chunk-
|
|
8
|
+
import { CaptureDaemon } from './chunk-Y55ARAPE.js';
|
|
9
9
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
10
10
|
import { join } from 'path';
|
|
11
11
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runEmit } from './chunk-
|
|
4
|
-
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-
|
|
5
|
-
import { installStarterPack } from './chunk-
|
|
6
|
-
import { listWithAnd } from './chunk-
|
|
7
|
-
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-
|
|
3
|
+
import { runEmit } from './chunk-7GX7NXJW.js';
|
|
4
|
+
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-G6S2EKAF.js';
|
|
5
|
+
import { installStarterPack } from './chunk-CR7DKNRM.js';
|
|
6
|
+
import { listWithAnd } from './chunk-7UXZOTF2.js';
|
|
7
|
+
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-76GFXRC7.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
9
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-ZIPXFVRF.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
|
-
import { linkedAgentsPath } from './chunk-
|
|
11
|
+
import { linkedAgentsPath } from './chunk-J4LUKUXC.js';
|
|
12
12
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
13
|
-
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-
|
|
13
|
+
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-NXOTVGPL.js';
|
|
14
14
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
15
15
|
import { execFileSync } from 'child_process';
|
|
16
16
|
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
@@ -107,8 +107,6 @@ function runAgentSetup(opts) {
|
|
|
107
107
|
for (const skill of pack.kept) kept.push(`${skillDir(skill)}/`);
|
|
108
108
|
if (pack.policy === "written") written.add(POLICY_PATH);
|
|
109
109
|
else kept.push(POLICY_PATH);
|
|
110
|
-
for (const path of pack.validatorsWritten) written.add(path);
|
|
111
|
-
kept.push(...pack.validatorsKept);
|
|
112
110
|
if (existsSync(join(repoRoot, CONFIG_PATH))) {
|
|
113
111
|
kept.push(CONFIG_PATH);
|
|
114
112
|
} else {
|
|
@@ -174,8 +172,6 @@ function runAgentsMdSetup(repoRoot, skillsLink, agents) {
|
|
|
174
172
|
for (const skill of pack.kept) kept.push(`${skillDir(skill, AGENTS_SKILLS_BASE)}/`);
|
|
175
173
|
if (pack.policy === "written") written.add(POLICY_PATH);
|
|
176
174
|
else kept.push(POLICY_PATH);
|
|
177
|
-
for (const path of pack.validatorsWritten) written.add(path);
|
|
178
|
-
kept.push(...pack.validatorsKept);
|
|
179
175
|
if (existsSync(join(repoRoot, "AGENTS.md")) || existsSync(join(repoRoot, "CLAUDE.md"))) {
|
|
180
176
|
kept.push(existsSync(join(repoRoot, "AGENTS.md")) ? "AGENTS.md" : "CLAUDE.md");
|
|
181
177
|
} else {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-
|
|
3
|
+
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-PWJKROIT.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
5
|
-
import { detectActiveSession } from './chunk-
|
|
6
|
-
import { autoConnect } from './chunk-
|
|
7
|
-
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-
|
|
5
|
+
import { detectActiveSession } from './chunk-MUCWOHFZ.js';
|
|
6
|
+
import { autoConnect } from './chunk-DOIXXWA5.js';
|
|
7
|
+
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-DV44KCM6.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YH7RGFKK.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
12
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
13
13
|
import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import { resolveRepoIdentity } from './chunk-
|
|
15
|
-
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-
|
|
14
|
+
import { resolveRepoIdentity } from './chunk-Y55ARAPE.js';
|
|
15
|
+
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-MCUI6RHU.js';
|
|
16
16
|
import { createHash, randomUUID } from 'crypto';
|
|
17
17
|
import { statSync, readFileSync, mkdirSync, existsSync, writeFileSync, renameSync, unlinkSync } from 'fs';
|
|
18
18
|
import { resolve, basename, join } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-TPC6MXKS.js';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|