@outerlayer/cli 0.40.0-next.20261115013314 → 0.40.0-next.20261115113313
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-YXBIEJLS.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-BPXM64SW.js} +55 -55
- package/dist/{chunk-DF2ATCBQ.js → chunk-2HE3W4OM.js} +1 -1
- package/dist/{chunk-G6WWNIAY.js → chunk-36E4TC2U.js} +58 -17
- package/dist/{chunk-NBNZFLKJ.js → chunk-3FJGWAYD.js} +6 -6
- package/dist/{chunk-JOZ7SU5V.js → chunk-3T6DZAZX.js} +4 -4
- package/dist/{chunk-4XN2LKSK.js → chunk-47BLFHNK.js} +4 -4
- package/dist/{chunk-GQAGAMY7.js → chunk-4FMN3U57.js} +6 -6
- package/dist/{chunk-S4XEMYAP.js → chunk-4QVIBBKJ.js} +1 -1
- package/dist/{chunk-ND6JA3K5.js → chunk-4TVL4E53.js} +1 -1
- package/dist/{chunk-WNFQV5SL.js → chunk-4YJPE23H.js} +1 -1
- 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-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-WYJSHRD6.js → chunk-BHX4FW7O.js} +10 -10
- package/dist/{chunk-D5YKPIHV.js → chunk-BU7PN6MB.js} +1 -1
- package/dist/{chunk-NOCOZB2Z.js → chunk-BXMYXZAB.js} +3 -3
- package/dist/{chunk-OHJUCEPI.js → chunk-CEVYSNA4.js} +1 -1
- package/dist/{chunk-OVV6F6TV.js → chunk-CR7DKNRM.js} +5 -34
- package/dist/{chunk-UDFHJ4KG.js → chunk-CX5SISHJ.js} +9 -9
- 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-AUJPQVNR.js → chunk-E7WZCKYT.js} +3 -3
- package/dist/{chunk-MP6INWPC.js → chunk-EA2GVFAF.js} +4 -4
- package/dist/{chunk-4ATFANLO.js → chunk-FOT3WJNH.js} +2 -2
- package/dist/{chunk-DFWIJH6P.js → chunk-FSYB5QAV.js} +3 -3
- package/dist/{chunk-QWTN72TN.js → chunk-G6S2EKAF.js} +1 -1
- package/dist/{chunk-5D3XOHGK.js → chunk-GNX75MQI.js} +40 -12
- package/dist/{chunk-T3X3FZIR.js → chunk-GWT2XAGQ.js} +1 -1
- package/dist/{chunk-IUJS6LR7.js → chunk-GZVMAEHO.js} +7 -7
- package/dist/{chunk-624IRDBJ.js → chunk-H6J7CQSV.js} +21 -11
- 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-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-PWDLJKEI.js → chunk-O5MO3RWQ.js} +30 -30
- 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-ND5SOLPS.js → chunk-R7OBHPWQ.js} +68 -54
- 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-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-RLNTFA2C.js → chunk-UC2JHW7P.js} +1 -1
- package/dist/{chunk-HNOFOZKP.js → chunk-UFHXL6PT.js} +7 -7
- 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-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-W3UPD3D6.js → chunk-Z34SKGVB.js} +10 -10
- package/dist/{chunk-PNZMJFVP.js → chunk-Z5LGWR5H.js} +6 -6
- 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-RKATG6XY.js → cli-645WJ5EQ.js} +165 -165
- package/dist/{command-YD3EHTZQ.js → command-RJ2ASVL7.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-BCIJQO5U.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-U3DJQGCO.js → doctor-3UWBBRMX.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-GPRZHSLC.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-AOWHQL3V.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-4T5EC67K.js +82 -0
- package/dist/{init-VPKR33RD.js → init-OOYKPYJM.js} +46 -46
- package/dist/{init-agent-L5O3TUUM.js → init-agent-GPEDGDHA.js} +46 -46
- package/dist/{init-cmd-3PNKJZRH.js → init-cmd-GIAREDPB.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-USCXKLCB.js +92 -0
- package/dist/machine-RJ6QMO3N.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-65YREGHO.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-LYLDFK3T.js} +46 -46
- package/dist/{session-sender-4DSE6XWZ.js → session-sender-JIJQNDF4.js} +19 -19
- package/dist/{spec-cmd-7ISTYBBZ.js → spec-cmd-NJLCH63H.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-GPSPNHZ3.js → status-IYUTS2RN.js} +46 -46
- package/dist/{sync-cmd-KXVGXVPP.js → sync-cmd-QBFJN77X.js} +18 -18
- package/dist/update-steps-4I6LRYM7.js +83 -0
- package/dist/{watch-BQRPLHO4.js → watch-XNH2BXGJ.js} +18 -18
- package/dist/{work-claim-cmd-GT3QV7C7.js → work-claim-cmd-UZAV6F5V.js} +22 -22
- package/dist/{work-cmd-3Y45NSG6.js → work-cmd-HL6ZYYFT.js} +16 -16
- package/dist/{work-comment-cmd-ZAFDFRLJ.js → work-comment-cmd-WO4OP4CW.js} +18 -18
- package/dist/{work-demo-cmd-V3EO3VD3.js → work-demo-cmd-FSSCNRKZ.js} +16 -16
- package/dist/{work-logs-cmd-RH3N2Y6D.js → work-logs-cmd-R4DZGKR2.js} +16 -16
- package/dist/{work-mock-cmd-4HQRK3JR.js → work-mock-cmd-J3E53N3Y.js} +16 -16
- package/dist/{work-needs-attention-cmd-3VBHUC5T.js → work-needs-attention-cmd-PSLU7AC5.js} +16 -16
- package/dist/{work-no-change-cmd-HAJTDQOS.js → work-no-change-cmd-FTMU7IOE.js} +16 -16
- package/dist/{work-open-pr-cmd-W4V46HYM.js → work-open-pr-cmd-KFX3F6MB.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-3NHA732I.js} +18 -18
- package/dist/{work-proofs-record-NBVX7AHX.js → work-proofs-record-IJRJLWOX.js} +24 -24
- package/dist/{work-stop-cmd-E7G52CQN.js → work-stop-cmd-EJ7Y7I4F.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-5WRSO54T.js +0 -26
- package/dist/launch-agent-2PRVA5EX.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,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { newTokenRetry } from './chunk-FJGYU2EK.js';
|
|
4
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
5
|
-
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-
|
|
6
|
-
import { buildRefusalReason } from './chunk-
|
|
7
|
-
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-
|
|
8
|
-
import { signingFetchFor } from './chunk-
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-
|
|
4
|
+
import { WorkCommandError, postJson } from './chunk-CX5SISHJ.js';
|
|
5
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-ZIPXFVRF.js';
|
|
6
|
+
import { buildRefusalReason } from './chunk-CEVYSNA4.js';
|
|
7
|
+
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-SQFSYAPO.js';
|
|
8
|
+
import { signingFetchFor } from './chunk-YH7RGFKK.js';
|
|
9
|
+
import { signerFor } from './chunk-BU7PN6MB.js';
|
|
10
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-TPC6MXKS.js';
|
|
11
11
|
import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-SF2TBJBP.js';
|
|
12
12
|
import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
13
13
|
import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
|
|
@@ -74,15 +74,22 @@ function describeCallFailure(err) {
|
|
|
74
74
|
var RETRY_WINDOW_MS = 12e4;
|
|
75
75
|
var FIRST_BACKOFF_MS = 1e3;
|
|
76
76
|
var MAX_BACKOFF_MS = 15e3;
|
|
77
|
+
var STALE_SIGNATURE = "runner_key_signature_stale";
|
|
78
|
+
var CLOCK_JUMP_MS = 3e4;
|
|
79
|
+
var PAUSED_NOTE = ". The host's clock jumped while this was retried, so the host was paused or asleep";
|
|
77
80
|
function isRetryable(err) {
|
|
78
|
-
if (err instanceof WorkCommandError) return err.retryable;
|
|
81
|
+
if (err instanceof WorkCommandError) return err.retryable || err.code === STALE_SIGNATURE;
|
|
79
82
|
return true;
|
|
80
83
|
}
|
|
81
84
|
async function retrySend(send, deps = {}) {
|
|
82
85
|
const now = deps.now ?? (() => /* @__PURE__ */ new Date());
|
|
83
86
|
const sleep = deps.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
|
|
84
87
|
const windowMs = deps.windowMs ?? RETRY_WINDOW_MS;
|
|
85
|
-
const
|
|
88
|
+
const sample = () => {
|
|
89
|
+
const wallMs = now().getTime();
|
|
90
|
+
return { wallMs, monoMs: deps.monotonic?.() ?? (deps.now === void 0 ? performance.now() : wallMs) };
|
|
91
|
+
};
|
|
92
|
+
const started = sample();
|
|
86
93
|
let attempts = 0;
|
|
87
94
|
let backoffMs = FIRST_BACKOFF_MS;
|
|
88
95
|
for (; ; ) {
|
|
@@ -90,13 +97,16 @@ async function retrySend(send, deps = {}) {
|
|
|
90
97
|
try {
|
|
91
98
|
return { ok: true, value: await send(), attempts };
|
|
92
99
|
} catch (err) {
|
|
93
|
-
const
|
|
100
|
+
const at = sample();
|
|
101
|
+
const wallElapsedMs = at.wallMs - started.wallMs;
|
|
102
|
+
const elapsedMs = at.monoMs - started.monoMs;
|
|
103
|
+
const paused = Math.abs(wallElapsedMs - elapsedMs) > CLOCK_JUMP_MS;
|
|
104
|
+
const reason = describeCallFailure(err) + (paused ? PAUSED_NOTE : "");
|
|
94
105
|
const code = err instanceof WorkCommandError ? err.code : void 0;
|
|
95
106
|
const status = err instanceof WorkCommandError ? err.status : void 0;
|
|
96
107
|
const message = err instanceof WorkCommandError ? err.message : void 0;
|
|
97
108
|
const lowestVersion = err instanceof WorkCommandError ? err.lowestVersion : void 0;
|
|
98
109
|
if (!isRetryable(err)) return { ok: false, attempts, reason, retryable: false, code, status, message, lowestVersion };
|
|
99
|
-
const elapsedMs = now().getTime() - startedMs;
|
|
100
110
|
if (elapsedMs + backoffMs >= windowMs) return { ok: false, attempts, reason, retryable: true, code, status, message, lowestVersion };
|
|
101
111
|
await sleep(backoffMs);
|
|
102
112
|
backoffMs = Math.min(backoffMs * 2, MAX_BACKOFF_MS);
|
|
@@ -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
|
|
|
@@ -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,40 +1,40 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
4
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
4
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-GZVMAEHO.js';
|
|
5
5
|
import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
|
|
6
|
-
import { writeFleetState } from './chunk-
|
|
7
|
-
import { writePendingUpdate } from './chunk-
|
|
8
|
-
import { renderUpdateSteps } from './chunk-
|
|
9
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
10
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
11
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
12
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-
|
|
13
|
-
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-
|
|
6
|
+
import { writeFleetState } from './chunk-X5SZ3MB6.js';
|
|
7
|
+
import { writePendingUpdate } from './chunk-PJZ7RTXX.js';
|
|
8
|
+
import { renderUpdateSteps } from './chunk-BXMYXZAB.js';
|
|
9
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-GWT2XAGQ.js';
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-BHX4FW7O.js';
|
|
11
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-7RSR6ESV.js';
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-R7OBHPWQ.js';
|
|
13
|
+
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-6R5JI7LV.js';
|
|
14
14
|
import { RUNNER_PROTOCOL } from './chunk-2UBMDLUF.js';
|
|
15
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
16
|
-
import { RepoFilter } from './chunk-
|
|
15
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-Z5LGWR5H.js';
|
|
16
|
+
import { RepoFilter } from './chunk-PWJKROIT.js';
|
|
17
17
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
18
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
18
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-7YVZIUOX.js';
|
|
19
19
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
20
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-
|
|
21
|
-
import { fetchCommit, readBranchHead, diffBetween } from './chunk-
|
|
22
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
20
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-7DCFL2MK.js';
|
|
21
|
+
import { fetchCommit, readBranchHead, diffBetween } from './chunk-GNX75MQI.js';
|
|
22
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-LPTLGM24.js';
|
|
23
23
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
24
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
25
|
-
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-
|
|
26
|
-
import { keyRunnerFactory, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-
|
|
27
|
-
import { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
28
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-
|
|
29
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
30
|
-
import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-
|
|
31
|
-
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-
|
|
32
|
-
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-
|
|
33
|
-
import { cleanAttachmentName } from './chunk-
|
|
34
|
-
import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-
|
|
35
|
-
import { defaultAgents, resolvePackRoot } from './chunk-
|
|
24
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-H6J7CQSV.js';
|
|
25
|
+
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-CX5SISHJ.js';
|
|
26
|
+
import { keyRunnerFactory, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-EA2GVFAF.js';
|
|
27
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-MT5NUKSC.js';
|
|
28
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-WGYAMFBU.js';
|
|
29
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-BU7PN6MB.js';
|
|
30
|
+
import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-TPC6MXKS.js';
|
|
31
|
+
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-ULL2MHZU.js';
|
|
32
|
+
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-B6LZQ5GU.js';
|
|
33
|
+
import { cleanAttachmentName } from './chunk-ZV77MALL.js';
|
|
34
|
+
import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-T2OAXE5H.js';
|
|
35
|
+
import { defaultAgents, resolvePackRoot } from './chunk-NXOTVGPL.js';
|
|
36
36
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
37
|
-
import { CheckItemsSchema, CODE_REVIEW_NAME, CHECK_ITEM_HREF_MAX_LENGTH, CHECK_ITEM_REASON_MAX_LENGTH, UNREVIEWED_FILES_ITEM_ID, problemKind, CODE_REVIEW_PROBLEMS_MAX, REVIEWED_COMMIT_ITEM_ID } from './chunk-
|
|
37
|
+
import { CheckItemsSchema, CODE_REVIEW_NAME, CHECK_ITEM_HREF_MAX_LENGTH, CHECK_ITEM_REASON_MAX_LENGTH, UNREVIEWED_FILES_ITEM_ID, problemKind, CODE_REVIEW_PROBLEMS_MAX, REVIEWED_COMMIT_ITEM_ID } from './chunk-MCUI6RHU.js';
|
|
38
38
|
import { mkdirSync, existsSync, writeFileSync, chmodSync, renameSync, statSync, readdirSync, rmSync, readFileSync, lstatSync, closeSync } from 'fs';
|
|
39
39
|
import { join, dirname } from 'path';
|
|
40
40
|
import { randomBytes, createHash } from 'crypto';
|
|
@@ -3176,7 +3176,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
3176
3176
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
3177
3177
|
);
|
|
3178
3178
|
async function tryClaimAndStart(state, item, queue) {
|
|
3179
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
3179
|
+
const { postJson: postJson2 } = await import('./work-cmd-HL6ZYYFT.js');
|
|
3180
3180
|
const log = logOf(state);
|
|
3181
3181
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
3182
3182
|
const claim = await retrySend(
|
|
@@ -4803,7 +4803,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4803
4803
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4804
4804
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4805
4805
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4806
|
-
return (await import('./check-
|
|
4806
|
+
return (await import('./check-BPXM64SW.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4807
4807
|
},
|
|
4808
4808
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4809
4809
|
log
|
|
@@ -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
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { uploadSpooledSteps } from './chunk-
|
|
3
|
+
import { uploadSpooledSteps } from './chunk-E2FIHWJX.js';
|
|
4
4
|
import { LaunchFilter } from './chunk-C2PZOLN7.js';
|
|
5
|
-
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-
|
|
5
|
+
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-DV44KCM6.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YH7RGFKK.js';
|
|
8
8
|
import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-HWVMRETT.js';
|
|
9
|
-
import { signerFor, signRunnerRequest } from './chunk-
|
|
10
|
-
import { SCRUB_ENV_VARIABLE } from './chunk-
|
|
11
|
-
import { writeSyncStatus, logHookError, spoolDir } from './chunk-
|
|
9
|
+
import { signerFor, signRunnerRequest } from './chunk-BU7PN6MB.js';
|
|
10
|
+
import { SCRUB_ENV_VARIABLE } from './chunk-ULL2MHZU.js';
|
|
11
|
+
import { writeSyncStatus, logHookError, spoolDir } from './chunk-ZV77MALL.js';
|
|
12
12
|
import { readLatestProvenanceForSession, readContextProvenance } from './chunk-545P7JY7.js';
|
|
13
13
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
14
14
|
import { hookExecSpoolPath } from './chunk-RNCCRUT5.js';
|
|
@@ -16,11 +16,11 @@ import { applyReportedCost } from './chunk-BKO6JEZI.js';
|
|
|
16
16
|
import { readLaunchSpoolState, launchStatusIsDecisive, parseRunEnv, launchedItemsBySession, launchesPath } from './chunk-LGJ56FCM.js';
|
|
17
17
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
18
18
|
import { removeJournalHooks } from './chunk-CJPTUU2E.js';
|
|
19
|
-
import { legacyAgent, captureAgents, captureAdapters } from './chunk-
|
|
19
|
+
import { legacyAgent, captureAgents, captureAdapters } from './chunk-NXOTVGPL.js';
|
|
20
20
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
21
21
|
import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
|
|
22
|
-
import { setCustomScrubbers, setLocalIdentity, forkFor, readForkRecord, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, scrubDeep } from './chunk-
|
|
23
|
-
import { CAPTURE_TIERS, inferArtifactKind, bannedPathsForTier, downconvertSession, isHumanUserTurn, turnCountBound, EVENT_TYPES } from './chunk-
|
|
22
|
+
import { setCustomScrubbers, setLocalIdentity, forkFor, readForkRecord, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, scrubDeep } from './chunk-Y55ARAPE.js';
|
|
23
|
+
import { CAPTURE_TIERS, inferArtifactKind, bannedPathsForTier, downconvertSession, isHumanUserTurn, turnCountBound, EVENT_TYPES } from './chunk-MCUI6RHU.js';
|
|
24
24
|
import { dirname, basename, join, sep } from 'path';
|
|
25
25
|
import { statSync, readFileSync, readdirSync, mkdirSync, writeFileSync, renameSync, existsSync, rmSync } from 'fs';
|
|
26
26
|
import { execFileSync } from 'child_process';
|