@outerlayer/cli 0.34.0-next.20261028164329 → 0.34.0-next.20261029014930
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/agent-setup-J2WZHYN5.js +32 -0
- package/dist/{artifact-link-cmd-CSVFEM5O.js → artifact-link-cmd-6LFCTDBD.js} +5 -5
- package/dist/{build-SEJJWGTO.js → build-2JBISOVR.js} +8 -8
- package/dist/{build-disk-EYRR3PBT.js → build-disk-ECEVCK35.js} +6 -6
- package/dist/build-info.json +1 -1
- package/dist/{builder-T7B46P7T.js → builder-OMDEUDO3.js} +5 -5
- package/dist/caller-P5ZHKVD5.js +18 -0
- package/dist/{check-SPMUN5C4.js → check-6ZGMF7VF.js} +84 -66
- package/dist/{chunk-ANPNT6PM.js → chunk-2AM6Z5BP.js} +1 -1
- package/dist/{chunk-UE2C4STC.js → chunk-2B6EKUBD.js} +88 -6
- package/dist/{chunk-GG5OE6MY.js → chunk-2RTGZ6AE.js} +1 -1
- package/dist/{chunk-QGEGLZSY.js → chunk-32QKEHC7.js} +46 -6
- package/dist/{chunk-VNVZDWO3.js → chunk-352DHUTP.js} +4 -1
- package/dist/{chunk-IPWKT5J7.js → chunk-3MKCUCG7.js} +225 -121
- package/dist/{chunk-ZJSNLVCE.js → chunk-545P7JY7.js} +1 -1
- package/dist/{chunk-2EEW6FJN.js → chunk-5FWBAM6O.js} +1 -1
- package/dist/{chunk-MCPCOKHN.js → chunk-5VGVYEFT.js} +9 -9
- package/dist/{chunk-T2Q7ISPE.js → chunk-5WYT3PPE.js} +1 -1
- package/dist/{chunk-ARL6X6Y4.js → chunk-62TMOXQN.js} +2 -2
- package/dist/{chunk-RRXS4CWE.js → chunk-6JDEP42Z.js} +9 -7
- package/dist/{chunk-YIK5SGEN.js → chunk-6OAOOAJO.js} +69 -27
- package/dist/{chunk-FUOKDHRB.js → chunk-76VJKVM5.js} +8 -7
- package/dist/{chunk-4YD7N6V3.js → chunk-7B6CKPNZ.js} +3 -3
- package/dist/{chunk-I2MFIT6X.js → chunk-7T5MUKW6.js} +28 -27
- package/dist/{chunk-2EHDLYSL.js → chunk-7TIFAOUG.js} +30 -22
- package/dist/{chunk-G2JWZDFA.js → chunk-A2LHHKTT.js} +3 -3
- package/dist/{chunk-ESVW4MJY.js → chunk-AAGU5FJF.js} +1 -1
- package/dist/{chunk-WA3HIJVK.js → chunk-B7ZC2HKE.js} +3 -3
- package/dist/{chunk-YF7W7B7Y.js → chunk-BWJRNMZZ.js} +37 -10
- package/dist/{chunk-TUSYOL2O.js → chunk-CJPTUU2E.js} +1 -1
- package/dist/{chunk-MEIDQLXQ.js → chunk-D7BEGG7T.js} +1 -1
- package/dist/{chunk-V2S2WRGD.js → chunk-DG25T7AY.js} +11 -11
- package/dist/chunk-DUV33KMD.js +31 -0
- package/dist/{chunk-NCOL5RYI.js → chunk-E4R3M6XJ.js} +1 -1
- package/dist/{chunk-DCBFUUDL.js → chunk-EFZM7UOP.js} +7 -7
- package/dist/{chunk-KH4774QT.js → chunk-F57NE5AO.js} +1 -1
- package/dist/{chunk-MH6QLXUO.js → chunk-FJ7KTNMD.js} +1 -1
- package/dist/{chunk-3KGXXTMN.js → chunk-FNS2RJ5T.js} +5 -5
- package/dist/{chunk-2O5KA67H.js → chunk-FUJUFLDC.js} +2 -2
- package/dist/{chunk-CRB3POP4.js → chunk-FZKNTIOJ.js} +1 -1
- package/dist/{chunk-KPEMNHVF.js → chunk-G7OVITGQ.js} +2 -2
- package/dist/{chunk-7JSWRF5O.js → chunk-GD4AXYK3.js} +10 -10
- package/dist/{chunk-SAAVZ2BX.js → chunk-GOSOKVBF.js} +1 -1
- package/dist/{chunk-ZTOJIRJH.js → chunk-HFHRTVXN.js} +8 -8
- package/dist/{chunk-S6UM3N4R.js → chunk-HSE2LOWO.js} +36 -11
- package/dist/{chunk-XDAMLX2L.js → chunk-HUS3GYCX.js} +9 -9
- package/dist/{chunk-PJDQPF5N.js → chunk-HWVMRETT.js} +1 -1
- package/dist/{chunk-WH3FPBPO.js → chunk-I35CNSPC.js} +60 -29
- package/dist/{chunk-ZCA34T7R.js → chunk-JEOBBOZY.js} +8 -8
- package/dist/{chunk-RQ3GCCHH.js → chunk-JXXMOAJG.js} +2 -2
- package/dist/{chunk-EA2PQRCU.js → chunk-K6LLZONM.js} +6 -6
- package/dist/{chunk-QI7JB2GU.js → chunk-KWFJF4CX.js} +646 -210
- package/dist/{chunk-URIZRCRY.js → chunk-KYDEBGJG.js} +1 -1
- package/dist/{chunk-P2PNBDUT.js → chunk-LLQGVGFO.js} +3 -3
- package/dist/{chunk-HFOZTCTN.js → chunk-N2OG4RN6.js} +7 -7
- package/dist/{chunk-KT4CN6OU.js → chunk-OHQMGLJP.js} +3 -3
- package/dist/{chunk-5BHIBJDA.js → chunk-OLM2TIOW.js} +1 -1
- package/dist/{chunk-VEVNGDTP.js → chunk-PDK35AR4.js} +2 -2
- package/dist/{chunk-UZEIBWTP.js → chunk-PGJY7XTY.js} +7 -7
- package/dist/{chunk-TDCHUEKY.js → chunk-PNAVR5OD.js} +5 -5
- package/dist/{chunk-RPST2GNG.js → chunk-PQ5YDDDE.js} +3 -3
- package/dist/{chunk-OKJXZXYH.js → chunk-PUSCE544.js} +6 -6
- package/dist/{chunk-ZEFNJCN3.js → chunk-QM3HMXMU.js} +2 -2
- package/dist/{chunk-CUAB7FAZ.js → chunk-QNISFH47.js} +8 -8
- package/dist/{chunk-5TXQFZHY.js → chunk-QOVUDIUI.js} +1 -1
- package/dist/{chunk-OYQVLQP3.js → chunk-QTNWAV23.js} +14 -12
- package/dist/{chunk-ZCZY3Q55.js → chunk-RZ22SWMA.js} +1 -1
- package/dist/{chunk-KQDK4Q6A.js → chunk-SMYOFJHK.js} +10 -10
- package/dist/{chunk-GH2HEEOH.js → chunk-TV2OQUWE.js} +1 -1
- package/dist/{chunk-HH3BQG65.js → chunk-UPRZREBO.js} +1 -1
- package/dist/{chunk-W7E6IMEW.js → chunk-UTIRCHI5.js} +22 -21
- package/dist/{chunk-H7MGR2GN.js → chunk-UZDWCSLS.js} +6 -6
- package/dist/{chunk-IAVT7R6O.js → chunk-WJTIU2A5.js} +6 -6
- package/dist/{chunk-QGDGGLSD.js → chunk-X4PYXWBY.js} +3 -3
- package/dist/{chunk-54LIUIZL.js → chunk-XGSJNXH2.js} +4 -4
- package/dist/chunk-XKV6HXKD.js +39 -0
- package/dist/{chunk-I7RZHMXW.js → chunk-YBAVN6WS.js} +3 -3
- package/dist/{chunk-IXRUVR25.js → chunk-YTTESG7K.js} +46 -7
- package/dist/{chunk-MRLJK4GZ.js → chunk-YZSE7EYM.js} +6 -6
- package/dist/{chunk-CKDSPW35.js → chunk-ZI2E4YMY.js} +6 -6
- package/dist/{chunk-UXC3RQLF.js → chunk-ZQQNWDPE.js} +1 -1
- package/dist/{claude-launcher-7IC6QWR5.js → claude-launcher-GACOES7Z.js} +6 -6
- package/dist/{cli-GKROH23V.js → cli-A3IUMZHY.js} +162 -152
- package/dist/{cli-update-notice-4DLZ3655.js → cli-update-notice-T3CXRWNB.js} +3 -3
- package/dist/{command-XA6DOFL4.js → command-XPDD3473.js} +39 -38
- package/dist/{config-RSOCVUKC.js → config-7DT7UVUI.js} +8 -8
- package/dist/connect-cmd-TWSO7YKC.js +27 -0
- package/dist/{container-start-ZDSVXSAL.js → container-start-2AQWC275.js} +53 -52
- package/dist/{context-cleanup-CEZSKNVL.js → context-cleanup-PASDUBGW.js} +5 -5
- package/dist/{context-show-cmd-XWLTP6R4.js → context-show-cmd-6MEUB3HU.js} +18 -18
- package/dist/{control-plane-launch-3MBWPYWZ.js → control-plane-launch-6NN5ZSP3.js} +15 -15
- package/dist/{demo-record-cmd-SIKNTSGI.js → demo-record-cmd-2FY7VCIL.js} +3 -3
- package/dist/{demo-voice-cmd-SAB3QU4F.js → demo-voice-cmd-GJNJNEAI.js} +29 -29
- package/dist/{dist-VPXROEZO.js → dist-Z6WP743R.js} +2 -2
- package/dist/{docker-YMRPMDOW.js → docker-DLJTPUC5.js} +5 -5
- package/dist/{doctor-NVHAE4LS.js → doctor-HYDAFWR2.js} +49 -38
- package/dist/emit-artifact-cmd-TTLDSPP3.js +43 -0
- package/dist/emit-cmd-UOPHEUW5.js +16 -0
- package/dist/emit-criteria-cmd-MZSFNXTL.js +33 -0
- package/dist/emit-demo-cmd-CPC6OR6A.js +47 -0
- package/dist/emit-finding-cmd-6ABNXD5P.js +34 -0
- package/dist/{emit-result-cmd-VCKNZ4RZ.js → emit-result-cmd-7STD6BH3.js} +27 -27
- package/dist/emit-step-cmd-A35LWNWB.js +33 -0
- package/dist/find-unit-ZMUTRE46.js +19 -0
- package/dist/{findings-cmd-PLHBAQW4.js → findings-cmd-JNLW5T2Q.js} +22 -22
- package/dist/fleet-readiness-7WASGVPR.js +28 -0
- package/dist/governing-source-SQE47DKU.js +38 -0
- package/dist/{guest-init-MI4SEME4.js → guest-init-73ZCYECM.js} +2 -2
- package/dist/{hook-fast-GOH4T6SN.js → hook-fast-AELCXUNA.js} +6 -6
- package/dist/{hook-wrap-fast-7VYYAAH4.js → hook-wrap-fast-545QJSBJ.js} +3 -3
- package/dist/host-checks-EM7CVCO6.js +78 -0
- package/dist/{host-key-OMLDWLNG.js → host-key-ZRXO2BXZ.js} +2 -2
- package/dist/{image-tag-YJJONB64.js → image-tag-6KN2SKDZ.js} +2 -2
- package/dist/index.js +6 -6
- package/dist/init-4U2IAN5U.js +57 -0
- package/dist/{init-W3ATJYLX.js → init-NEOWYRSR.js} +35 -34
- package/dist/{init-cmd-XJOEU2PB.js → init-cmd-WRNXDUM7.js} +32 -32
- package/dist/{init-update-KX3FFQ5H.js → init-update-ATXYAAAD.js} +29 -29
- package/dist/{install-cmd-QTIIMO6B.js → install-cmd-WF2N2SKL.js} +4 -4
- package/dist/{layout-7UOBWNYO.js → layout-ZE6F2Z7W.js} +4 -4
- package/dist/login-browser-YB7AMKHR.js +13 -0
- package/dist/{logout-cmd-5WE2N5B5.js → logout-cmd-Z2PYV5LF.js} +5 -5
- package/dist/{logs-YVXVAYTD.js → logs-WEJHWBLM.js} +22 -2
- package/dist/loop-IHQ4UMRY.js +89 -0
- package/dist/machine-VNDSSHQA.js +57 -0
- package/dist/{machine-skills-KYN7XJEJ.js → machine-skills-DMHU7OLO.js} +5 -5
- package/dist/{mcp-install-cmd-LD7KYAOP.js → mcp-install-cmd-23ZY4IBK.js} +5 -5
- package/dist/{mcp-serve-cmd-ECTAPDB3.js → mcp-serve-cmd-YT63QC7W.js} +8 -8
- package/dist/{paths-M66LPPUF.js → paths-IGFAJFPN.js} +1 -1
- package/dist/{pending-7LC6XDRO.js → pending-GBIXDPY7.js} +2 -2
- package/dist/{pidfile-DSQOOAZV.js → pidfile-BDQMJPLA.js} +2 -2
- package/dist/{record-3KKIJ3XL.js → record-KLNLIQVR.js} +2 -2
- package/dist/{runner-env-EX7YUIUH.js → runner-env-PBTT2CNL.js} +10 -10
- package/dist/{runner-identity-LJWBXNM5.js → runner-identity-JVG53E73.js} +5 -5
- package/dist/{runner-key-CAUO4RKG.js → runner-key-YKHIRBO4.js} +34 -33
- package/dist/session-sender-SNBEWETV.js +43 -0
- package/dist/{settings-3DBYKYQD.js → settings-XB2HYBKO.js} +2 -2
- package/dist/{spec-cmd-SAWQYHKM.js → spec-cmd-VPP66GMQ.js} +22 -22
- package/dist/{starter-pack-KB3YH4KX.js → starter-pack-WUNNS6G7.js} +9 -9
- package/dist/state-VIWYAWVB.js +9 -0
- package/dist/{status-IPIMYTG5.js → status-HY5FJPJV.js} +74 -52
- package/dist/{statusline-fast-YVHG6ZLX.js → statusline-fast-E7RWVREA.js} +4 -4
- package/dist/sync-cmd-7BG47GNA.js +42 -0
- package/dist/update-steps-NI25AAQM.js +79 -0
- package/dist/{watch-6NRBX6VE.js → watch-QMKKCF2B.js} +27 -27
- package/dist/{work-claim-cmd-SLVX2N4L.js → work-claim-cmd-UUMDPIZG.js} +25 -25
- package/dist/work-cmd-5QGKKDFY.js +31 -0
- package/dist/work-comment-cmd-YJ3JTQ5B.js +32 -0
- package/dist/{work-demo-cmd-SZJIKB5J.js → work-demo-cmd-AQ4JVDCK.js} +19 -19
- package/dist/{work-launch-LEQ2MPM3.js → work-launch-TTGSHLY4.js} +3 -3
- package/dist/{work-logs-cmd-MRFSBMJM.js → work-logs-cmd-TQTA7KQK.js} +19 -19
- package/dist/{work-open-pr-cmd-N7GK7FUQ.js → work-open-pr-cmd-2NFF3RYJ.js} +21 -21
- package/dist/work-pr-cmd-R5VRWQJD.js +32 -0
- package/dist/work-proofs-cmd-UYGYDIYY.js +35 -0
- package/dist/{work-proofs-record-CJAFFWXG.js → work-proofs-record-U3KQOM5Z.js} +33 -33
- package/dist/{work-stop-cmd-M6RIGF7S.js → work-stop-cmd-SIAX4XAA.js} +19 -19
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +2 -1
- package/skill-pack/maintained/outerlayer-build/references/evidence.md +2 -1
- package/skill-pack/maintained/outerlayer-build/scripts/criterion-citations.mjs +65 -8
- package/dist/agent-setup-IVXRBFVV.js +0 -32
- package/dist/connect-cmd-JFGDHFLA.js +0 -27
- package/dist/emit-artifact-cmd-TZTVQCFT.js +0 -43
- package/dist/emit-cmd-4G3443OJ.js +0 -16
- package/dist/emit-criteria-cmd-WH7JB4RQ.js +0 -33
- package/dist/emit-demo-cmd-DNUVG5N7.js +0 -47
- package/dist/emit-finding-cmd-X5CBH4ZA.js +0 -34
- package/dist/emit-step-cmd-IUXZZYKO.js +0 -33
- package/dist/find-unit-QYD2FMCP.js +0 -19
- package/dist/fleet-readiness-F65CKZY5.js +0 -28
- package/dist/governing-source-JFCTQXYK.js +0 -38
- package/dist/host-checks-LEVAIIN4.js +0 -77
- package/dist/init-JVKJTJNM.js +0 -56
- package/dist/login-browser-Q25ZNSQ3.js +0 -13
- package/dist/loop-NNJN2XOW.js +0 -87
- package/dist/machine-OQOHEMJB.js +0 -56
- package/dist/session-sender-U2CTD7EX.js +0 -43
- package/dist/sync-cmd-EBJQ5LMH.js +0 -42
- package/dist/update-steps-E2PP5DPR.js +0 -78
- package/dist/work-cmd-VSHZCXHQ.js +0 -31
- package/dist/work-comment-cmd-3DCL7VHN.js +0 -32
- package/dist/work-pr-cmd-HD5OIHUU.js +0 -32
- package/dist/work-proofs-cmd-H2GGE5HK.js +0 -35
- package/dist/{chunk-POND2SMT.js → chunk-RC2WZQK6.js} +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { homeFromEnv } from './chunk-
|
|
3
|
+
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
4
4
|
import { mkdirSync, statSync, renameSync, appendFileSync, readFileSync } from 'fs';
|
|
5
5
|
import { dirname, join } from 'path';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RESERVED_EMIT_NAMES, ARTIFACT_KINDS, ArtifactCriterionIdSchema } from './chunk-
|
|
3
|
+
import { RESERVED_EMIT_NAMES, ARTIFACT_KINDS, ArtifactCriterionIdSchema } from './chunk-YTTESG7K.js';
|
|
4
4
|
import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launchRefusalForSession } from './chunk-
|
|
3
|
+
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
6
|
-
import { C } from './chunk-
|
|
7
|
-
import { acquireSpoolLockAt } from './chunk-
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
-
import { resolveRepoIdentity } from './chunk-
|
|
10
|
-
import { launchedItemForSession } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-YZSE7EYM.js';
|
|
6
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
+
import { acquireSpoolLockAt } from './chunk-PDK35AR4.js';
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-FNS2RJ5T.js';
|
|
9
|
+
import { resolveRepoIdentity } from './chunk-TV2OQUWE.js';
|
|
10
|
+
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
|
-
import { StepNameSchema, StepBodySchema } from './chunk-
|
|
13
|
-
import { homeFromEnv } from './chunk-
|
|
12
|
+
import { StepNameSchema, StepBodySchema } from './chunk-YTTESG7K.js';
|
|
13
|
+
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
14
|
import { randomUUID } from 'crypto';
|
|
15
15
|
import { readFileSync, existsSync, mkdirSync, writeFileSync, renameSync, appendFileSync } from 'fs';
|
|
16
16
|
import { join, dirname } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { parseTrackerNumber } from './chunk-WZBHBH3J.js';
|
|
4
|
-
import { cliInvocation } from './chunk-
|
|
4
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
5
|
import { mkdirSync, appendFileSync, readFileSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE } from './chunk-
|
|
4
|
-
import { normalizePath, CONTEXT_PIN_FILENAME } from './chunk-
|
|
3
|
+
import { AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE } from './chunk-UPRZREBO.js';
|
|
4
|
+
import { normalizePath, CONTEXT_PIN_FILENAME } from './chunk-5FWBAM6O.js';
|
|
5
5
|
import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
|
|
6
6
|
import { relative, sep, join } from 'path';
|
|
7
7
|
|
|
@@ -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, rootfsDir, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-
|
|
3
|
+
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-LLQGVGFO.js';
|
|
4
|
+
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-HSE2LOWO.js';
|
|
5
5
|
import { spawnSync } from 'child_process';
|
|
6
6
|
import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
|
|
7
7
|
import { dirname, join } from 'path';
|
|
@@ -79,8 +79,9 @@ function isBuilderDir(dir) {
|
|
|
79
79
|
}
|
|
80
80
|
function cacheDiskBytes(configPath, builds, buildEntries) {
|
|
81
81
|
const cache = [];
|
|
82
|
-
const
|
|
83
|
-
|
|
82
|
+
for (const scope of storeScopes(configPath)) {
|
|
83
|
+
const images = imagesDir(configPath, scope);
|
|
84
|
+
if (!existsSync(images)) continue;
|
|
84
85
|
const owners = listDir(images);
|
|
85
86
|
if (owners === void 0) {
|
|
86
87
|
logUnreadable(images);
|
|
@@ -90,7 +91,7 @@ function cacheDiskBytes(configPath, builds, buildEntries) {
|
|
|
90
91
|
const names = listDir(join(images, owner));
|
|
91
92
|
if (names === void 0) logUnreadable(join(images, owner));
|
|
92
93
|
for (const name of names ?? []) {
|
|
93
|
-
const path = builderCacheDiskPath(configPath, owner, name);
|
|
94
|
+
const path = builderCacheDiskPath(configPath, owner, name, scope);
|
|
94
95
|
if (existsSync(path)) cache.push(allocatedBytes(path));
|
|
95
96
|
}
|
|
96
97
|
}
|
|
@@ -117,8 +118,9 @@ function microVmFacts(configPath) {
|
|
|
117
118
|
const cacheBytes = cacheDiskBytes(configPath, builds, entries);
|
|
118
119
|
if (cacheBytes === void 0) return void 0;
|
|
119
120
|
let root = 0;
|
|
120
|
-
const
|
|
121
|
-
|
|
121
|
+
for (const scope of storeScopes(configPath)) {
|
|
122
|
+
const roots = rootfsDir(orgStoreIn(runnerDir(configPath), scope));
|
|
123
|
+
if (!existsSync(roots)) continue;
|
|
122
124
|
const rootEntries = listDir(roots);
|
|
123
125
|
if (rootEntries === void 0) return void 0;
|
|
124
126
|
for (const entry of rootEntries) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { criteriaOf, loadCitationFinder, hostItemsOf,
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
5
|
-
import { C } from './chunk-
|
|
6
|
-
import { sanitizeTerminal } from './chunk-
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
8
|
-
import { resolveRepoIdentity } from './chunk-
|
|
9
|
-
import { parseWorkItemEnv } from './chunk-
|
|
3
|
+
import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-2B6EKUBD.js';
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-HUS3GYCX.js';
|
|
5
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
+
import { sanitizeTerminal } from './chunk-PDK35AR4.js';
|
|
7
|
+
import { defaultFetch } from './chunk-FNS2RJ5T.js';
|
|
8
|
+
import { resolveRepoIdentity } from './chunk-TV2OQUWE.js';
|
|
9
|
+
import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
12
|
-
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH } from './chunk-
|
|
12
|
+
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH } from './chunk-YTTESG7K.js';
|
|
13
13
|
import { createHash } from 'crypto';
|
|
14
14
|
import { spawnSync } from 'child_process';
|
|
15
15
|
import { existsSync, statSync, readFileSync } from 'fs';
|
|
@@ -70,7 +70,8 @@ function unprovenCriteria(input) {
|
|
|
70
70
|
for (const item of input.items) {
|
|
71
71
|
const criterion = criteria.find((c) => c.id === item.id);
|
|
72
72
|
if (criterion === void 0 || item.result !== "fail" || item.inputs === void 0) continue;
|
|
73
|
-
if (item.reason === NO_CITING_TEST_REASON || item.reason === NO_VERDICT_REASON) continue;
|
|
73
|
+
if (item.reason === NO_CITING_TEST_REASON || item.reason === NO_TEST_FILES_REASON || item.reason === NO_VERDICT_REASON) continue;
|
|
74
|
+
if (item.refs === void 0 && isFoundInReason(item.reason, item.id)) continue;
|
|
74
75
|
const commit = item.refs === void 0 ? void 0 : commitOf(item.refs);
|
|
75
76
|
if (commit === void 0) {
|
|
76
77
|
notes.push(`the links of ${item.id} name no commit`);
|
|
@@ -87,14 +88,21 @@ function unprovenCriteria(input) {
|
|
|
87
88
|
commits.set(item.id, commit);
|
|
88
89
|
previous.set(item.id, { ...item, inputs: criterionInputs({ brief: NO_BRIEF, criterion, citations: judgedCitations, testFiles: judged }) });
|
|
89
90
|
}
|
|
91
|
+
const uncited = uncitedIds(criteria, citations);
|
|
92
|
+
const foundIn = uncited.length === 0 ? void 0 : input.foundOutsideTestsAt?.(uncited);
|
|
93
|
+
if (uncited.length > 0 && input.foundOutsideTestsAt !== void 0 && foundIn === void 0) {
|
|
94
|
+
notes.push("the files that could hold the id of a criterion no test cites cannot be read, so its row names none");
|
|
95
|
+
}
|
|
90
96
|
const plan = planCriteria({ criteria, citations, inputs, previous: [...previous.values()], noTestFiles: input.headFiles.length === 0 });
|
|
91
97
|
const settled = new Map(plan.settled.map((item) => [item.id, item]));
|
|
92
98
|
const entries = [];
|
|
93
99
|
for (const criterion of criteria) {
|
|
94
100
|
const item = settled.get(criterion.id);
|
|
95
101
|
if (item === void 0 || item.result !== "fail") continue;
|
|
96
|
-
if (item.refs === void 0)
|
|
97
|
-
|
|
102
|
+
if (item.refs === void 0) {
|
|
103
|
+
const where = foundIn?.get(criterion.id);
|
|
104
|
+
entries.push({ id: criterion.id, proof: null, state: "uncited", ...where !== void 0 ? { foundIn: where } : item.reason === NO_TEST_FILES_REASON ? { noTestFiles: true } : {} });
|
|
105
|
+
} else entries.push({ id: criterion.id, proof: null, state: "failed", commit: commits.get(criterion.id) ?? "", reason: item.reason ?? "no reason recorded" });
|
|
98
106
|
}
|
|
99
107
|
return { entries, notes };
|
|
100
108
|
}
|
|
@@ -103,6 +111,15 @@ function git(cwd, args, input) {
|
|
|
103
111
|
if (run.status !== 0) throw new Error(`git ${args[0]} failed`);
|
|
104
112
|
return run.stdout;
|
|
105
113
|
}
|
|
114
|
+
function treeAt(cwd, head) {
|
|
115
|
+
const listing = git(cwd, ["ls-tree", "-r", "-l", "-z", "--full-tree", head]);
|
|
116
|
+
const entries = [];
|
|
117
|
+
for (const entry of listing.toString("utf8").split("\0")) {
|
|
118
|
+
const match = /^(\d+) blob ([0-9a-f]+)\s+(\d+)\t(.*)$/s.exec(entry);
|
|
119
|
+
if (match !== null && match[1].startsWith("100")) entries.push({ path: match[4], oid: match[2], size: Number(match[3]) });
|
|
120
|
+
}
|
|
121
|
+
return entries;
|
|
122
|
+
}
|
|
106
123
|
function readObjects(cwd, specs) {
|
|
107
124
|
const out = git(cwd, ["cat-file", "--batch"], `${specs.join("\n")}
|
|
108
125
|
`);
|
|
@@ -123,19 +140,39 @@ function readObjects(cwd, specs) {
|
|
|
123
140
|
}
|
|
124
141
|
return texts;
|
|
125
142
|
}
|
|
143
|
+
function readTexts(cwd, entries, visit) {
|
|
144
|
+
for (const [start, end] of groupBySize(entries.map((entry) => entry.size))) {
|
|
145
|
+
for (const [n, text] of readObjects(cwd, entries.slice(start, end).map((entry) => entry.oid)).entries()) {
|
|
146
|
+
if (text !== void 0 && visit(start + n, text) === false) return;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
126
150
|
function testFilesAt(cwd, head, isTest) {
|
|
127
151
|
try {
|
|
128
|
-
const
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if (picked.size >= MAX_TEST_FILES) break;
|
|
134
|
-
picked.set(match[4], match[2]);
|
|
152
|
+
const picked = [];
|
|
153
|
+
for (const entry of treeAt(cwd, head)) {
|
|
154
|
+
if (entry.size > MAX_TEST_FILE_BYTES || !isTest(entry.path)) continue;
|
|
155
|
+
if (picked.length >= MAX_TEST_FILES) break;
|
|
156
|
+
picked.push(entry);
|
|
135
157
|
}
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
|
|
158
|
+
const files = [];
|
|
159
|
+
readTexts(cwd, picked, (n, text) => {
|
|
160
|
+
files.push({ path: picked[n].path, contents: text });
|
|
161
|
+
});
|
|
162
|
+
return files;
|
|
163
|
+
} catch {
|
|
164
|
+
return void 0;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
function findIdsOutsideTestsAt(cwd, head, input, limits) {
|
|
168
|
+
try {
|
|
169
|
+
const picked = pickSearchable(treeAt(cwd, head), input, limits);
|
|
170
|
+
const scan = new IdScan(input.finder, input.ids);
|
|
171
|
+
readTexts(cwd, picked, (n, text) => {
|
|
172
|
+
scan.offer(picked[n].path, text);
|
|
173
|
+
return !scan.complete;
|
|
174
|
+
});
|
|
175
|
+
return scan.result();
|
|
139
176
|
} catch {
|
|
140
177
|
return void 0;
|
|
141
178
|
}
|
|
@@ -147,8 +184,11 @@ function proofsFileAt(cwd, commit) {
|
|
|
147
184
|
return void 0;
|
|
148
185
|
}
|
|
149
186
|
}
|
|
187
|
+
function matcherAt(cwd, commit, finder) {
|
|
188
|
+
return testFileMatcher(finder, proofsFileAt(cwd, commit));
|
|
189
|
+
}
|
|
150
190
|
function testFilesOf(cwd, commit, finder) {
|
|
151
|
-
return testFilesAt(cwd, commit,
|
|
191
|
+
return testFilesAt(cwd, commit, matcherAt(cwd, commit, finder));
|
|
152
192
|
}
|
|
153
193
|
function checkoutPlaces(cwd) {
|
|
154
194
|
for (let dir = resolve(cwd); ; dir = dirname(dir)) {
|
|
@@ -177,14 +217,14 @@ function governingDir(cwd) {
|
|
|
177
217
|
async function testProofMode(cwd) {
|
|
178
218
|
const dir = governingDir(cwd);
|
|
179
219
|
if (dir === void 0) return "any";
|
|
180
|
-
const { testProofIn } = await import('./host-checks-
|
|
220
|
+
const { testProofIn } = await import('./host-checks-EM7CVCO6.js');
|
|
181
221
|
return testProofIn(dir);
|
|
182
222
|
}
|
|
183
223
|
async function judgeCheckName(cwd) {
|
|
184
224
|
const dir = governingDir(cwd);
|
|
185
225
|
if (dir === void 0) return {};
|
|
186
226
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
187
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
227
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-EM7CVCO6.js');
|
|
188
228
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
189
229
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
190
230
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -204,7 +244,8 @@ async function findUnproven(input) {
|
|
|
204
244
|
finder,
|
|
205
245
|
headFiles,
|
|
206
246
|
items,
|
|
207
|
-
testFilesAt: (commit) => testFilesOf(input.cwd, commit, finder)
|
|
247
|
+
testFilesAt: (commit) => testFilesOf(input.cwd, commit, finder),
|
|
248
|
+
foundOutsideTestsAt: (ids) => findIdsOutsideTestsAt(input.cwd, input.head, { isTest: matcherAt(input.cwd, input.head, finder), isSearchable: finder.isSearchableFile, finder, ids })
|
|
208
249
|
});
|
|
209
250
|
const check = Object(input.item).checks?.find((c) => Object(c).name === found.name);
|
|
210
251
|
if (check?.source === "host" && check.result === "fail" && items.length === 0) result.notes.unshift("the gateway returned no check items for the judge's result");
|
|
@@ -258,8 +299,9 @@ var STATE_LABEL = { current: "current", "out-of-date": "out of date", missing: "
|
|
|
258
299
|
function renderEntry(e) {
|
|
259
300
|
const id = sanitizeTerminal(e.id);
|
|
260
301
|
if (e.state === "uncited") {
|
|
302
|
+
if (e.foundIn !== void 0) return `${id} none uncited ${sanitizeTerminal(foundInReason(e.id, e.foundIn))}`;
|
|
261
303
|
if (e.noTestFiles === true) {
|
|
262
|
-
return `${id} none uncited
|
|
304
|
+
return `${id} none uncited ${NO_TEST_FILES_REASON}`;
|
|
263
305
|
}
|
|
264
306
|
return `${id} none uncited No test at HEAD cites it. Put ${id} in a test's title or in a comment above the test, as in // proves ${id}`;
|
|
265
307
|
}
|
|
@@ -327,7 +369,7 @@ async function runWorkProofs(opts) {
|
|
|
327
369
|
async function runWorkProofsCommand(opts) {
|
|
328
370
|
try {
|
|
329
371
|
if (opts.record) {
|
|
330
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
372
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-U3KQOM5Z.js');
|
|
331
373
|
const result2 = await runWorkProofsRecord(opts);
|
|
332
374
|
process.exitCode = result2.exitCode;
|
|
333
375
|
return;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import { RunnerAlreadyRunningError, readPidFile } from './chunk-SAAVZ2BX.js';
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-3MKCUCG7.js';
|
|
4
|
+
import { RunnerAlreadyRunningError, readPidFile } from './chunk-GOSOKVBF.js';
|
|
6
5
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-7B6CKPNZ.js';
|
|
7
|
+
import { keyRunnerFactory } from './chunk-BWJRNMZZ.js';
|
|
8
|
+
import { isSignatureRefusal, postJson } from './chunk-HUS3GYCX.js';
|
|
9
|
+
import { signerFor } from './chunk-QOVUDIUI.js';
|
|
10
|
+
import { pidFilePath } from './chunk-HSE2LOWO.js';
|
|
10
11
|
import { readFileSync } from 'fs';
|
|
11
12
|
|
|
12
13
|
createRequire(import.meta.url);
|
|
@@ -70,7 +71,7 @@ async function sendStartupReport(failed, fetchImpl, deps) {
|
|
|
70
71
|
config.url,
|
|
71
72
|
"/v1/hosts/startup-report",
|
|
72
73
|
config.apiKey,
|
|
73
|
-
config
|
|
74
|
+
keyRunnerFactory(config),
|
|
74
75
|
{ host: config.host, cliVersion: failed.cliVersion, check: failed.check, message },
|
|
75
76
|
fetchImpl,
|
|
76
77
|
left,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtinKind, keepsHostBuilder } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-BWJRNMZZ.js';
|
|
4
|
+
import { parseSize } from './chunk-LLQGVGFO.js';
|
|
5
|
+
import { runnerDir } from './chunk-HSE2LOWO.js';
|
|
6
6
|
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, CLAUDE_CREDENTIAL_ID, CLAUDE_ENV_FILE, credentialLineIn, withoutCredentialLines } from './chunk-YLPJOUVF.js';
|
|
7
7
|
import { existsSync, readFileSync, writeFileSync, chmodSync, renameSync } from 'fs';
|
|
8
8
|
import { dirname, join } from 'path';
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { uploadSpooledSteps } from './chunk-
|
|
4
|
-
import { LaunchFilter } from './chunk-
|
|
3
|
+
import { uploadSpooledSteps } from './chunk-5VGVYEFT.js';
|
|
4
|
+
import { LaunchFilter } from './chunk-AAGU5FJF.js';
|
|
5
5
|
import { RepoFilter } from './chunk-TBT347UY.js';
|
|
6
|
-
import { C } from './chunk-
|
|
7
|
-
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-
|
|
8
|
-
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
-
import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-
|
|
10
|
-
import { signerFor, signRunnerRequest } from './chunk-
|
|
11
|
-
import { writeSyncStatus, spoolDir } from './chunk-
|
|
12
|
-
import { readLatestProvenanceForSession, readContextProvenance } from './chunk-
|
|
13
|
-
import { hookExecSpoolPath } from './chunk-
|
|
6
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
+
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-PDK35AR4.js';
|
|
8
|
+
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-FNS2RJ5T.js';
|
|
9
|
+
import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-HWVMRETT.js';
|
|
10
|
+
import { signerFor, signRunnerRequest } from './chunk-QOVUDIUI.js';
|
|
11
|
+
import { writeSyncStatus, spoolDir } from './chunk-DG25T7AY.js';
|
|
12
|
+
import { readLatestProvenanceForSession, readContextProvenance } from './chunk-545P7JY7.js';
|
|
13
|
+
import { hookExecSpoolPath } from './chunk-FUJUFLDC.js';
|
|
14
14
|
import { applyReportedCost } from './chunk-BKO6JEZI.js';
|
|
15
15
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
16
|
-
import { setCustomScrubbers, setLocalIdentity, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, sessionIdFromPath, scrubDeep, SOURCE_ADAPTERS } from './chunk-
|
|
17
|
-
import { readLaunchSpoolState, launchStatusIsDecisive, launchedItemsBySession, launchesPath } from './chunk-
|
|
18
|
-
import { cliInvocation } from './chunk-
|
|
19
|
-
import { removeJournalHooks } from './chunk-
|
|
20
|
-
import { CAPTURE_TIERS, inferArtifactKind, bannedPathsForTier, downconvertSession, isHumanUserTurn, turnCountBound, EVENT_TYPES } from './chunk-
|
|
21
|
-
import { homeFromEnv } from './chunk-
|
|
16
|
+
import { setCustomScrubbers, setLocalIdentity, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, sessionIdFromPath, scrubDeep, SOURCE_ADAPTERS } from './chunk-TV2OQUWE.js';
|
|
17
|
+
import { readLaunchSpoolState, launchStatusIsDecisive, launchedItemsBySession, launchesPath } from './chunk-5WYT3PPE.js';
|
|
18
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
19
|
+
import { removeJournalHooks } from './chunk-CJPTUU2E.js';
|
|
20
|
+
import { CAPTURE_TIERS, inferArtifactKind, bannedPathsForTier, downconvertSession, isHumanUserTurn, turnCountBound, EVENT_TYPES } from './chunk-YTTESG7K.js';
|
|
21
|
+
import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
|
|
22
22
|
import { SCRUB_ENV_VARIABLE } from './chunk-YLPJOUVF.js';
|
|
23
23
|
import { dirname, basename, join, sep } from 'path';
|
|
24
24
|
import { statSync, readFileSync, readdirSync, mkdirSync, writeFileSync, renameSync, existsSync, rmSync } from 'fs';
|
|
@@ -1111,6 +1111,7 @@ function parseWorkItemNumber(raw) {
|
|
|
1111
1111
|
async function runSyncInner(opts, stats) {
|
|
1112
1112
|
const envVars = opts.env ?? process.env;
|
|
1113
1113
|
const home = opts.home ?? homeFromEnv(envVars);
|
|
1114
|
+
const artifactHome = opts.home ?? spoolHomeFromEnv(envVars, home);
|
|
1114
1115
|
const fileConfig = readCloudConfig(home);
|
|
1115
1116
|
const resolved = resolveGatewayCredentials({ ...opts, home, env: envVars });
|
|
1116
1117
|
stats.url = resolved.url;
|
|
@@ -1177,12 +1178,12 @@ async function runSyncInner(opts, stats) {
|
|
|
1177
1178
|
`
|
|
1178
1179
|
);
|
|
1179
1180
|
}
|
|
1180
|
-
if (!dryRun) migrateLegacyArtifactSidecars(
|
|
1181
|
-
const artifactPlan = planArtifactUpload({ home });
|
|
1181
|
+
if (!dryRun) migrateLegacyArtifactSidecars(artifactHome);
|
|
1182
|
+
const artifactPlan = planArtifactUpload({ home: artifactHome });
|
|
1182
1183
|
if (!opts.quiet) {
|
|
1183
1184
|
if (artifactPlan.corrupt) {
|
|
1184
1185
|
process.stderr.write(
|
|
1185
|
-
`${C.yellow}!${C.reset} artifact spool state at ${artifactsStatePath(
|
|
1186
|
+
`${C.yellow}!${C.reset} artifact spool state at ${artifactsStatePath(artifactHome)} is corrupt \u2014 treating it as empty; a record's saved disposition may be forgotten (a safe, if wasteful, re-upload for anything already synced)
|
|
1186
1187
|
`
|
|
1187
1188
|
);
|
|
1188
1189
|
}
|
|
@@ -1621,7 +1622,7 @@ ${C.yellow}!${C.reset} batch ${shippedBatches + 1}/${batches.length} accounting
|
|
|
1621
1622
|
let artifactsUploaded;
|
|
1622
1623
|
let artifactsHeld;
|
|
1623
1624
|
let uploadedArtifacts;
|
|
1624
|
-
const artifactLock = combinedRecords.length > 0 || artifactPlan.held.length > 0 ? await acquireArtifactSpoolLock(
|
|
1625
|
+
const artifactLock = combinedRecords.length > 0 || artifactPlan.held.length > 0 ? await acquireArtifactSpoolLock(artifactHome, { waitMs: opts.artifactLockWaitMs }) : void 0;
|
|
1625
1626
|
if (artifactLock !== void 0 && !artifactLock.ok) {
|
|
1626
1627
|
artifactsUploaded = 0;
|
|
1627
1628
|
artifactsHeld = combinedRecords.length + artifactPlan.held.length;
|
|
@@ -1635,7 +1636,7 @@ ${C.yellow}!${C.reset} batch ${shippedBatches + 1}/${batches.length} accounting
|
|
|
1635
1636
|
}
|
|
1636
1637
|
const releaseArtifactLock = artifactLock?.ok === true ? artifactLock.release : () => {
|
|
1637
1638
|
};
|
|
1638
|
-
const livePlan = artifactLock?.ok === true ? planArtifactUpload({ home }) : void 0;
|
|
1639
|
+
const livePlan = artifactLock?.ok === true ? planArtifactUpload({ home: artifactHome }) : void 0;
|
|
1639
1640
|
if (livePlan !== void 0) {
|
|
1640
1641
|
const artifactEndpoint = new URL("/v1/artifacts", url).toString();
|
|
1641
1642
|
const nowMs = Date.now();
|
|
@@ -1671,7 +1672,7 @@ ${C.yellow}!${C.reset} batch ${shippedBatches + 1}/${batches.length} accounting
|
|
|
1671
1672
|
}
|
|
1672
1673
|
let blobData;
|
|
1673
1674
|
try {
|
|
1674
|
-
blobData = readFileSync(join(artifactBlobsDir(
|
|
1675
|
+
blobData = readFileSync(join(artifactBlobsDir(artifactHome), record.sha256));
|
|
1675
1676
|
} catch {
|
|
1676
1677
|
state.set(record.artifactId, {
|
|
1677
1678
|
state: "dropped",
|
|
@@ -1682,7 +1683,7 @@ ${C.yellow}!${C.reset} batch ${shippedBatches + 1}/${batches.length} accounting
|
|
|
1682
1683
|
});
|
|
1683
1684
|
failedOrDroppedThisRun.add(record.artifactId);
|
|
1684
1685
|
warn(
|
|
1685
|
-
`artifact ${name} (${record.artifactId}): blob missing from the spool \u2014 ${join(artifactBlobsDir(
|
|
1686
|
+
`artifact ${name} (${record.artifactId}): blob missing from the spool \u2014 ${join(artifactBlobsDir(artifactHome), record.sha256)} does not exist; dropping the record`
|
|
1686
1687
|
);
|
|
1687
1688
|
droppedCount += 1;
|
|
1688
1689
|
continue;
|
|
@@ -1692,7 +1693,7 @@ ${C.yellow}!${C.reset} batch ${shippedBatches + 1}/${batches.length} accounting
|
|
|
1692
1693
|
let replaces = record.replaces;
|
|
1693
1694
|
if (record.replacesTargets === void 0 && replaces !== void 0) {
|
|
1694
1695
|
const targetKnownUploaded = state.get(replaces)?.state === "uploaded";
|
|
1695
|
-
const targetTombstonedUnconfirmed = !targetKnownUploaded && isArtifactTombstoned(replaces,
|
|
1696
|
+
const targetTombstonedUnconfirmed = !targetKnownUploaded && isArtifactTombstoned(replaces, artifactHome);
|
|
1696
1697
|
if (targetTombstonedUnconfirmed || failedOrDroppedThisRun.has(replaces)) replaces = void 0;
|
|
1697
1698
|
}
|
|
1698
1699
|
const request = {
|
|
@@ -1840,14 +1841,14 @@ ${C.yellow}!${C.reset} batch ${shippedBatches + 1}/${batches.length} accounting
|
|
|
1840
1841
|
}
|
|
1841
1842
|
}
|
|
1842
1843
|
}
|
|
1843
|
-
const persisted = writeArtifactSpoolState(state,
|
|
1844
|
+
const persisted = writeArtifactSpoolState(state, artifactHome);
|
|
1844
1845
|
if (!persisted && !opts.quiet) {
|
|
1845
1846
|
process.stderr.write(
|
|
1846
|
-
`${C.yellow}!${C.reset} failed to persist ${artifactsStatePath(
|
|
1847
|
+
`${C.yellow}!${C.reset} failed to persist ${artifactsStatePath(artifactHome)} \u2014 this run's artifact progress may be re-attempted next sync (safe: uploads are idempotent on the client artifact id)
|
|
1847
1848
|
`
|
|
1848
1849
|
);
|
|
1849
1850
|
}
|
|
1850
|
-
reclaimUnneededArtifactBlobs(
|
|
1851
|
+
reclaimUnneededArtifactBlobs(artifactHome, neededArtifactShas(artifactHome, state));
|
|
1851
1852
|
releaseArtifactLock();
|
|
1852
1853
|
if (unauthorized) {
|
|
1853
1854
|
failureContext();
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { checkStarterFiles, contextIsGoverned } from './chunk-
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
5
|
-
import { isLinkedRepository } from './chunk-
|
|
6
|
-
import { C } from './chunk-
|
|
7
|
-
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-
|
|
8
|
-
import { sanitizeTerminal } from './chunk-
|
|
9
|
-
import { checkFormerSkillNames } from './chunk-
|
|
10
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
11
|
-
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-
|
|
12
|
-
import { readStatuslineState, STATE_FRESH_MS } from './chunk-
|
|
3
|
+
import { checkStarterFiles, contextIsGoverned } from './chunk-WJTIU2A5.js';
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-HUS3GYCX.js';
|
|
5
|
+
import { isLinkedRepository } from './chunk-N2OG4RN6.js';
|
|
6
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
+
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-QNISFH47.js';
|
|
8
|
+
import { sanitizeTerminal } from './chunk-PDK35AR4.js';
|
|
9
|
+
import { checkFormerSkillNames } from './chunk-PQ5YDDDE.js';
|
|
10
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-FNS2RJ5T.js';
|
|
11
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-DG25T7AY.js';
|
|
12
|
+
import { readStatuslineState, STATE_FRESH_MS } from './chunk-YBAVN6WS.js';
|
|
13
13
|
import { hookCommandEscapesControlPlane, CONTROL_PLANE_DIR_VARIABLE } from './chunk-HCVLP7XA.js';
|
|
14
14
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
15
|
-
import { resolveRepoIdentity, compareVersions, SUPPORTED_VERSIONS } from './chunk-
|
|
16
|
-
import { cliInvocation } from './chunk-
|
|
17
|
-
import { readSettings, settingsPath, isOurStatuslineSlot, statuslineWrappedOriginal, REGISTERED_EVENTS, isOurHookCommand, ourCommandBins, cliBinResolvable, ourDirectScriptBins, wrappedOriginalCommand } from './chunk-
|
|
15
|
+
import { resolveRepoIdentity, compareVersions, SUPPORTED_VERSIONS } from './chunk-TV2OQUWE.js';
|
|
16
|
+
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
17
|
+
import { readSettings, settingsPath, isOurStatuslineSlot, statuslineWrappedOriginal, REGISTERED_EVENTS, isOurHookCommand, ourCommandBins, cliBinResolvable, ourDirectScriptBins, wrappedOriginalCommand } from './chunk-KYDEBGJG.js';
|
|
18
18
|
import { readDeliveryRecord, readDegraded, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
19
|
-
import { deadHooksState, preparePackageManagerCommand } from './chunk-
|
|
20
|
-
import { homeFromEnv } from './chunk-
|
|
19
|
+
import { deadHooksState, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
|
|
20
|
+
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
21
21
|
import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync, readdirSync, realpathSync } from 'fs';
|
|
22
22
|
import { join, dirname, resolve, delimiter } from 'path';
|
|
23
23
|
import { execFileSync } from 'child_process';
|
|
@@ -1195,8 +1195,8 @@ function doctorExitCode(checks) {
|
|
|
1195
1195
|
|
|
1196
1196
|
// src/doctor-report.ts
|
|
1197
1197
|
async function gatherDoctorChecks() {
|
|
1198
|
-
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-
|
|
1199
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1198
|
+
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-ECEVCK35.js');
|
|
1199
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-7DT7UVUI.js');
|
|
1200
1200
|
const configPath = defaultRunnerConfigPath();
|
|
1201
1201
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1202
1202
|
const hooks = (() => {
|
|
@@ -1207,7 +1207,14 @@ async function gatherDoctorChecks() {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
})();
|
|
1209
1209
|
const checks = runDoctor({ runnerHost, ...hooks === void 0 ? {} : { runnerHooks: hooks.provision } });
|
|
1210
|
-
const
|
|
1210
|
+
const fleetRunner = runnerHost && (() => {
|
|
1211
|
+
try {
|
|
1212
|
+
return loadRunnerConfig(configPath).fleet === true;
|
|
1213
|
+
} catch {
|
|
1214
|
+
return false;
|
|
1215
|
+
}
|
|
1216
|
+
})();
|
|
1217
|
+
const credential = fleetRunner ? [] : await credentialChecks({ runnerHost });
|
|
1211
1218
|
checks.push(...credential);
|
|
1212
1219
|
if (credential[0]?.status === "pass") checks.push(...await githubAppChecks(), ...await governanceChecks());
|
|
1213
1220
|
if (credential[0]?.status === "pass") checks.push(...await fleetCheck());
|
|
@@ -1217,11 +1224,12 @@ async function gatherDoctorChecks() {
|
|
|
1217
1224
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1218
1225
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1219
1226
|
} else if (hasRunnerBlock(configPath)) {
|
|
1220
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1227
|
+
const { runnerHostChecks } = await import('./doctor-HYDAFWR2.js');
|
|
1221
1228
|
const gateway = (() => {
|
|
1222
1229
|
try {
|
|
1223
|
-
const
|
|
1224
|
-
|
|
1230
|
+
const loaded = loadRunnerConfig(configPath);
|
|
1231
|
+
const { url, apiKey } = loaded;
|
|
1232
|
+
return loaded.fleet === true ? { url, apiKey, fleet: true, ...loaded.appId === void 0 ? {} : { appId: loaded.appId } } : { url, apiKey, appId: keyRunnerFactory(loaded) };
|
|
1225
1233
|
} catch {
|
|
1226
1234
|
return void 0;
|
|
1227
1235
|
}
|
|
@@ -1244,7 +1252,7 @@ async function gatherDoctorChecks() {
|
|
|
1244
1252
|
const service = await (async () => {
|
|
1245
1253
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1246
1254
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1247
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1255
|
+
const { inspectRunnerService } = await import('./find-unit-ZMUTRE46.js');
|
|
1248
1256
|
return inspectRunnerService(configPath);
|
|
1249
1257
|
})();
|
|
1250
1258
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { C } from './chunk-
|
|
4
|
-
import { readCloudConfigStrict, removeCloudConfigKeys } from './chunk-
|
|
5
|
-
import { homeFromEnv } from './chunk-
|
|
3
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
|
+
import { readCloudConfigStrict, removeCloudConfigKeys } from './chunk-HWVMRETT.js';
|
|
5
|
+
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
6
6
|
|
|
7
7
|
createRequire(import.meta.url);
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
4
|
-
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-3MKCUCG7.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-ZQQNWDPE.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
7
7
|
createRequire(import.meta.url);
|
|
@@ -55,7 +55,7 @@ function envNamesOf(row, imageEnv) {
|
|
|
55
55
|
return [...new Set(names)].sort();
|
|
56
56
|
}
|
|
57
57
|
async function readOwnContainer(deps = {}) {
|
|
58
|
-
const run = deps.run ?? (await import('./docker-
|
|
58
|
+
const run = deps.run ?? (await import('./docker-DLJTPUC5.js')).spawnRun;
|
|
59
59
|
const ids = candidateIds(deps.env ?? process.env, deps.readFile ?? ((path) => readFileSync(path, "utf8")));
|
|
60
60
|
if (ids.length === 0) return { ok: false, reason: "the runner cannot tell which container it runs in: HOSTNAME is empty and /proc/self/mountinfo names none" };
|
|
61
61
|
let problem = "";
|