@outerlayer/cli 0.40.0-next.20261115113038 → 0.40.0-next.20261115174343
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 → agent-setup-URENTDUL.js} +19 -19
- package/dist/{agent-subcommand-TGMUYMIV.js → agent-subcommand-BIZMU7EZ.js} +3 -3
- package/dist/{bridge-6EVOZBWB.js → bridge-6IBWOFEJ.js} +6 -6
- package/dist/{build-JX6ITGKI.js → build-EORAZMYD.js} +12 -12
- package/dist/{build-disk-RODL3IQ2.js → build-disk-KN7OJLKB.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-T4DS6F4V.js → builder-DOJUSWGH.js} +9 -9
- package/dist/caller-FJUWGSNN.js +23 -0
- package/dist/{check-OS4D4LN6.js → check-WC36SS7X.js} +54 -54
- package/dist/{chunk-LIVBFF3D.js → chunk-2PRLSABK.js} +3 -3
- package/dist/{chunk-3BPM4FIB.js → chunk-3GFKAZBB.js} +73 -52
- package/dist/{chunk-Z5LGWR5H.js → chunk-4L3WCEOI.js} +6 -6
- package/dist/{chunk-4YJPE23H.js → chunk-55GT5FLR.js} +1 -1
- package/dist/{chunk-DOIXXWA5.js → chunk-5EQ2B6UE.js} +2 -2
- package/dist/{chunk-UC2JHW7P.js → chunk-5SKYWQ64.js} +1 -1
- package/dist/{chunk-V64FGZNM.js → chunk-6FHMWJHK.js} +1 -1
- package/dist/{chunk-KTN4XDPJ.js → chunk-7GJGSADZ.js} +1 -1
- package/dist/{chunk-G6S2EKAF.js → chunk-7PFRNOSF.js} +1 -1
- package/dist/{chunk-TDEVXYWR.js → chunk-AEAKGO6N.js} +5 -5
- package/dist/{chunk-OBADCUZF.js → chunk-ASHPKDV4.js} +8 -8
- package/dist/{chunk-PWJKROIT.js → chunk-BAE5M4N3.js} +6 -6
- package/dist/{chunk-RWI7Z2G6.js → chunk-BD254PYH.js} +1 -1
- package/dist/{chunk-T2OAXE5H.js → chunk-BFKSIA3V.js} +1 -1
- package/dist/{chunk-7GX7NXJW.js → chunk-BFZDVD7T.js} +4 -4
- package/dist/{chunk-4QVIBBKJ.js → chunk-BMMSIGV4.js} +1 -1
- package/dist/{chunk-7NX2ROFF.js → chunk-DIHIEGP2.js} +3 -3
- package/dist/{chunk-TPC6MXKS.js → chunk-DYV2OC4S.js} +1 -1
- package/dist/{chunk-ZV77MALL.js → chunk-E5PWV6H2.js} +4 -4
- package/dist/{chunk-7DCFL2MK.js → chunk-F4HSDGFO.js} +2 -2
- package/dist/{chunk-IEU2WSC4.js → chunk-F7AOOV5N.js} +7 -7
- package/dist/{chunk-FOT3WJNH.js → chunk-HEJ4UYSX.js} +2 -2
- package/dist/{chunk-7UXZOTF2.js → chunk-IGVOCKAC.js} +3 -3
- package/dist/{chunk-SQFSYAPO.js → chunk-IIYDYHS5.js} +2 -2
- package/dist/{chunk-MUCWOHFZ.js → chunk-IKGAVS5X.js} +1 -1
- package/dist/{chunk-2YKDXSZX.js → chunk-IKJEN5R4.js} +40 -12
- package/dist/{chunk-3T6DZAZX.js → chunk-IQRYAAOG.js} +4 -4
- package/dist/{chunk-ZIPXFVRF.js → chunk-ISRMDI2H.js} +5 -5
- package/dist/{chunk-47BLFHNK.js → chunk-IXZG7OJ6.js} +3 -3
- package/dist/{chunk-TPVQLW5Q.js → chunk-JXF42QAY.js} +10 -10
- package/dist/{chunk-2UBMDLUF.js → chunk-JXZ3LIHN.js} +1 -1
- package/dist/{chunk-6B636UWA.js → chunk-KMC6A3YU.js} +21 -11
- package/dist/{chunk-YDK6CONG.js → chunk-L6B4O4UB.js} +3 -3
- package/dist/{chunk-KXJDFBJH.js → chunk-LHL666SD.js} +28 -9
- package/dist/{chunk-NXOTVGPL.js → chunk-LPQJ5LXP.js} +1 -1
- package/dist/{chunk-LSUYPZDQ.js → chunk-LXQX456I.js} +37 -33
- package/dist/{chunk-4GYGOWO5.js → chunk-MBEWEWLS.js} +7 -7
- package/dist/{chunk-LPTLGM24.js → chunk-MGN525G6.js} +1 -1
- package/dist/{chunk-YH7RGFKK.js → chunk-N7PG5JAD.js} +2 -2
- package/dist/{chunk-BU7PN6MB.js → chunk-NDDXBJMX.js} +1 -1
- package/dist/{chunk-MT5NUKSC.js → chunk-OC3BSNNE.js} +2 -2
- package/dist/{chunk-B2EEVHR7.js → chunk-OUL5E5UC.js} +3 -3
- package/dist/{chunk-6R5JI7LV.js → chunk-PG4UW6QW.js} +1 -1
- package/dist/{chunk-7RSR6ESV.js → chunk-PT3DOY6P.js} +1 -1
- package/dist/{chunk-XSNB2SKN.js → chunk-QW7T7OMV.js} +4 -4
- package/dist/{chunk-O2T4LDT7.js → chunk-R34OLRY7.js} +3 -3
- package/dist/{chunk-VBAXFWTK.js → chunk-R3RALX7H.js} +5 -5
- package/dist/{chunk-7YVZIUOX.js → chunk-RIITHK4F.js} +1 -1
- package/dist/{chunk-ZHT7IJDC.js → chunk-SGIP54ZD.js} +3 -3
- package/dist/{chunk-TLLAFQMP.js → chunk-T5MBLAIO.js} +2 -2
- package/dist/{chunk-WGYAMFBU.js → chunk-TCPWJBH5.js} +7 -7
- package/dist/{chunk-CR7DKNRM.js → chunk-TQPFWWND.js} +3 -3
- package/dist/{chunk-H4RY2T6I.js → chunk-TRRKD5MJ.js} +14 -14
- package/dist/{chunk-J4LUKUXC.js → chunk-TZZU6IAM.js} +1 -1
- package/dist/{chunk-4FMN3U57.js → chunk-UOP4OSVB.js} +4 -4
- package/dist/{chunk-GWT2XAGQ.js → chunk-UTSBE4MP.js} +1 -1
- package/dist/{chunk-EA2GVFAF.js → chunk-V2O6KLTQ.js} +9 -6
- package/dist/{chunk-E2FIHWJX.js → chunk-VQ57S72O.js} +3 -3
- package/dist/{chunk-FSYB5QAV.js → chunk-VQLOZLLC.js} +3 -3
- package/dist/{chunk-TGVNEQSQ.js → chunk-VSBG7MMU.js} +1 -1
- package/dist/{chunk-ULL2MHZU.js → chunk-VXU5IAEQ.js} +3 -3
- package/dist/{chunk-76GFXRC7.js → chunk-XDBHRWPQ.js} +1 -1
- package/dist/{chunk-B6LZQ5GU.js → chunk-XOJRFV3U.js} +2 -2
- package/dist/{chunk-PJZ7RTXX.js → chunk-XOKGCNSG.js} +1 -1
- package/dist/{chunk-OID5XOPL.js → chunk-XTUTQVBU.js} +4 -4
- package/dist/{chunk-T4D2ZDCC.js → chunk-XVHQNAV7.js} +7 -7
- package/dist/{chunk-X5SZ3MB6.js → chunk-Y6FI3HCQ.js} +1 -1
- package/dist/{chunk-RIURJ7G6.js → chunk-YN6EKURT.js} +4 -4
- package/dist/{chunk-VNLHKIKR.js → chunk-Z7J7JWGF.js} +1 -1
- package/dist/{chunk-2HE3W4OM.js → chunk-ZBD2YOGH.js} +1 -1
- package/dist/{chunk-CEVYSNA4.js → chunk-ZCOIE7ZJ.js} +1 -1
- package/dist/{chunk-3FJGWAYD.js → chunk-ZDXEZPRM.js} +6 -6
- package/dist/{claude-launcher-6ZSKTRY5.js → claude-launcher-ZSCQOG3G.js} +6 -6
- package/dist/{cli-YGHAHE6B.js → cli-WZATWBJI.js} +162 -162
- package/dist/{cli-update-notice-BQ6FM472.js → cli-update-notice-ODKQQUO7.js} +2 -2
- package/dist/{command-YFFSOJFG.js → command-LODZVHAZ.js} +50 -50
- package/dist/{config-TYASXT5C.js → config-ME2W5VIX.js} +11 -11
- package/dist/{connect-cmd-EX67GWJF.js → connect-cmd-QX7WJ65U.js} +11 -11
- package/dist/{container-start-E3BHNHAX.js → container-start-I6HZDIRR.js} +47 -47
- package/dist/{context-cleanup-ENT7CYJC.js → context-cleanup-VYUESYGU.js} +3 -3
- package/dist/{context-show-cmd-IMVD75NE.js → context-show-cmd-2ABJ5B66.js} +12 -12
- package/dist/{control-plane-launch-SPSKDMIE.js → control-plane-launch-HQPMYL7O.js} +14 -14
- package/dist/{demo-record-cmd-T4DP3XE5.js → demo-record-cmd-UBYX2VAE.js} +7 -7
- package/dist/{demo-voice-cmd-2W34DIXY.js → demo-voice-cmd-ZGT6ZKH4.js} +18 -18
- package/dist/{docker-BBIDJR46.js → docker-E35HTSGN.js} +9 -9
- package/dist/{doctor-S4B74VR6.js → doctor-HRDWS6ME.js} +49 -49
- package/dist/{emit-artifact-cmd-VB2YPJXK.js → emit-artifact-cmd-2KQYKVRF.js} +17 -17
- package/dist/{emit-cmd-YNJYHGS3.js → emit-cmd-CBCODUWX.js} +6 -6
- package/dist/{emit-criteria-cmd-R3RBHQNJ.js → emit-criteria-cmd-JOYI5L6K.js} +14 -14
- package/dist/{emit-demo-cmd-CIVHU33R.js → emit-demo-cmd-J4N2P7MS.js} +18 -18
- package/dist/{emit-finding-cmd-YRCHPJEI.js → emit-finding-cmd-QPSTTD7U.js} +14 -14
- package/dist/{emit-result-cmd-DMWCSZ53.js → emit-result-cmd-KPAS6BS4.js} +16 -16
- package/dist/{emit-step-cmd-PCPLHBTG.js → emit-step-cmd-GQDRQ6JS.js} +14 -14
- package/dist/{exec-client-AAXCCEVU.js → exec-client-QDEZML3U.js} +7 -7
- package/dist/find-unit-AFBSWEOE.js +24 -0
- package/dist/{findings-cmd-XXDHIZAC.js → findings-cmd-57E6BXM2.js} +14 -14
- package/dist/{fleet-readiness-WRXR4ILW.js → fleet-readiness-VSPHFYWE.js} +13 -13
- package/dist/{governing-source-323OKKIB.js → governing-source-M4CF3ZRN.js} +19 -19
- package/dist/{guest-init-A5CCQEEK.js → guest-init-QYJVWDCD.js} +8 -8
- package/dist/{hook-fast-M6FWJHZL.js → hook-fast-E2JV656K.js} +3 -3
- package/dist/{hook-install-5HFZDBIC.js → hook-install-ZZV5WVDH.js} +3 -3
- package/dist/host-checks-WC5VSR32.js +82 -0
- package/dist/{host-key-R3ZJKBQ3.js → host-key-4RD4MTJ2.js} +7 -7
- package/dist/{image-tag-K32BVEIL.js → image-tag-SNXCNAGF.js} +7 -7
- package/dist/index.js +4 -4
- package/dist/{init-JCNL6KIH.js → init-APPKWVP7.js} +45 -45
- package/dist/init-LUELWNJ5.js +82 -0
- package/dist/{init-agent-NAUXPN72.js → init-agent-BUEBS4HS.js} +45 -45
- package/dist/{init-cmd-QRUGFWFU.js → init-cmd-GDUBGNZN.js} +25 -25
- package/dist/{init-update-SO7V6L6K.js → init-update-W3CNPIEJ.js} +22 -22
- package/dist/install-cmd-2BZYH77S.js +26 -0
- package/dist/launch-agent-S5ZCDOJR.js +26 -0
- package/dist/{layout-A7YL63UE.js → layout-QU4DUYQQ.js} +3 -3
- package/dist/{logs-6VEF36N6.js → logs-N7TOXQWL.js} +6 -6
- package/dist/loop-FKNT7J76.js +92 -0
- package/dist/machine-N3XCLC46.js +82 -0
- package/dist/{machine-skills-RTHSWGSU.js → machine-skills-DLDDT4BE.js} +3 -3
- package/dist/{mcp-install-cmd-UQBQOGZ4.js → mcp-install-cmd-TFKCJSAH.js} +3 -3
- package/dist/{mcp-serve-cmd-MOKXNZ2A.js → mcp-serve-cmd-YWBSSEYK.js} +9 -9
- package/dist/{paths-44NEENDO.js → paths-GUVGFCBQ.js} +6 -6
- package/dist/pending-PXRZ7SIJ.js +18 -0
- package/dist/{pidfile-XWUX735M.js → pidfile-AOQMDBSW.js} +7 -7
- package/dist/{record-6P5TK6K7.js → record-2RQWFYJ4.js} +7 -7
- package/dist/recorder.cjs +152 -23
- package/dist/{relay-CLQW7IR5.js → relay-VZEEKIKG.js} +4 -4
- package/dist/{relay-protocol-Y4L6Q72I.js → relay-protocol-DF7PZPX2.js} +4 -4
- package/dist/{run-cmd-FQDKFHPW.js → run-cmd-NEZVPFFG.js} +14 -14
- package/dist/{runner-agents-2KPYIXN2.js → runner-agents-O7G6HTWI.js} +3 -3
- package/dist/{runner-env-2YODIR2Z.js → runner-env-RYMF4YVJ.js} +13 -13
- package/dist/{runner-identity-G57VDLXN.js → runner-identity-MU7HDFGF.js} +9 -9
- package/dist/{runner-key-KBTAINMI.js → runner-key-KKAYEAXB.js} +45 -45
- package/dist/{session-sender-JIJQNDF4.js → session-sender-6HKSOFQ2.js} +17 -17
- package/dist/{spec-cmd-HMWQQQTD.js → spec-cmd-53UFNXNH.js} +15 -15
- package/dist/{starter-pack-M7YNHN7G.js → starter-pack-3HB74L6Q.js} +4 -4
- package/dist/{state-3QZYSC4V.js → state-YHPOHZ4I.js} +7 -7
- package/dist/{status-XFXBD6AT.js → status-J26Z34Y3.js} +45 -45
- package/dist/{sync-cmd-QBFJN77X.js → sync-cmd-5FAB4CAX.js} +16 -16
- package/dist/update-steps-TDJNR725.js +83 -0
- package/dist/{watch-XNH2BXGJ.js → watch-GKQOIY7F.js} +16 -16
- package/dist/{work-claim-cmd-Z5HYNHUR.js → work-claim-cmd-PZFPD3NS.js} +21 -21
- package/dist/{work-cmd-DP3TL3PK.js → work-cmd-JANDUCNE.js} +14 -14
- package/dist/{work-comment-cmd-MYQU3AQR.js → work-comment-cmd-ZIDXYWNH.js} +16 -16
- package/dist/{work-demo-cmd-TFQBM4QZ.js → work-demo-cmd-7OKBQG37.js} +14 -14
- package/dist/{work-logs-cmd-AY7L52OM.js → work-logs-cmd-2XDRIBM2.js} +14 -14
- package/dist/{work-mock-cmd-PSGGXCSY.js → work-mock-cmd-RFBGDQST.js} +14 -14
- package/dist/{work-needs-attention-cmd-QF6J4QKV.js → work-needs-attention-cmd-EY5FLR35.js} +14 -14
- package/dist/{work-no-change-cmd-TJB23FY5.js → work-no-change-cmd-UOLGPCI2.js} +14 -14
- package/dist/{work-open-pr-cmd-YD5QYZPP.js → work-open-pr-cmd-WBWODWGY.js} +15 -15
- package/dist/{work-pr-cmd-OYOUNRB7.js → work-pr-cmd-6733KSPR.js} +14 -14
- package/dist/{work-proofs-cmd-BZ4QMJSB.js → work-proofs-cmd-2CRNQY3P.js} +16 -16
- package/dist/{work-proofs-record-L4T6SLPP.js → work-proofs-record-Z24C77BK.js} +22 -22
- package/dist/{work-stop-cmd-EARW2MXW.js → work-stop-cmd-A32J3PL7.js} +14 -14
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +6 -71
- package/skill-pack/maintained/outerlayer-build/references/criteria.md +75 -0
- package/skill-pack/maintained/outerlayer-build/scripts/record-criteria.mjs +15 -5
- package/skill-pack/maintained/outerlayer-criteria/SKILL.md +60 -0
- package/skill-pack/maintained/outerlayer-evidence/SKILL.md +4 -4
- package/skill-pack/maintained/outerlayer-evidence/references/demo.md +19 -10
- package/dist/caller-GVPCWQVM.js +0 -23
- package/dist/find-unit-3K3NXINH.js +0 -24
- package/dist/host-checks-O45NM3FR.js +0 -82
- package/dist/init-GY555FEJ.js +0 -82
- package/dist/install-cmd-6RKBV54Z.js +0 -26
- package/dist/launch-agent-Q6H3IT4D.js +0 -26
- package/dist/loop-VWRPT6RZ.js +0 -92
- package/dist/machine-ELMFTAMF.js +0 -82
- package/dist/pending-43OCDSZO.js +0 -18
- package/dist/update-steps-66PD5IUI.js +0 -83
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-SF2TBJBP.js';
|
|
4
|
-
import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-
|
|
4
|
+
import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-LPQJ5LXP.js';
|
|
5
5
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
6
|
-
import { MAINTAINED_SKILLS } from './chunk-
|
|
6
|
+
import { MAINTAINED_SKILLS } from './chunk-VSBG7MMU.js';
|
|
7
7
|
import { lstatSync, readFileSync } from 'fs';
|
|
8
8
|
import { join } from 'path';
|
|
9
9
|
|
|
@@ -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-LPQJ5LXP.js';
|
|
4
4
|
import { openSync, fstatSync, readSync, closeSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { toolsDockerfile } from './chunk-
|
|
4
|
-
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-
|
|
3
|
+
import { toolsDockerfile } from './chunk-YN6EKURT.js';
|
|
4
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-MGN525G6.js';
|
|
5
5
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
6
6
|
import { withNewTokenRetry, REFUSED_BY_REMOTE } from './chunk-FJGYU2EK.js';
|
|
7
|
-
import { runnerLabelValue } from './chunk-
|
|
8
|
-
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-
|
|
7
|
+
import { runnerLabelValue } from './chunk-TCPWJBH5.js';
|
|
8
|
+
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-ZBD2YOGH.js';
|
|
9
9
|
import { removeLeftoverGitLocks } from './chunk-A2WPWZJA.js';
|
|
10
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-
|
|
11
|
-
import { withGitConfig, tokenHeader } from './chunk-
|
|
12
|
-
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-
|
|
10
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-DYV2OC4S.js';
|
|
11
|
+
import { withGitConfig, tokenHeader } from './chunk-VXU5IAEQ.js';
|
|
12
|
+
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-BFKSIA3V.js';
|
|
13
13
|
import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
14
14
|
import { tmpdir } from 'os';
|
|
15
15
|
import { join, dirname } from 'path';
|
|
@@ -17,6 +17,34 @@ import { execFile } from 'child_process';
|
|
|
17
17
|
import { createHash } from 'crypto';
|
|
18
18
|
|
|
19
19
|
createRequire(import.meta.url);
|
|
20
|
+
|
|
21
|
+
// src/runner/image/transport-retry.ts
|
|
22
|
+
var TRANSPORT_FAILURE = /curl (?:7|18|28|35|52|55|56)\b|RPC failed|connection (?:reset|timed out|refused|closed)|timed out|no answer within|could not resolve host|early EOF|unexpected disconnect|remote end hung up|broken pipe|TLS|SSL_|network is unreachable|temporary failure in name resolution/i;
|
|
23
|
+
var ANSWERED = /\b(?:401|403|404)\b|authentication failed|repository not found|could not read username|terminal prompts disabled|not our ref|couldn't find remote ref|did not match any|invalid refspec/i;
|
|
24
|
+
function isTransportFailure(err) {
|
|
25
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
26
|
+
return !ANSWERED.test(message) && TRANSPORT_FAILURE.test(message);
|
|
27
|
+
}
|
|
28
|
+
var transportRetry = {
|
|
29
|
+
waitsMs: [1e3, 2e3, 4e3, 8e3, 15e3],
|
|
30
|
+
sleep: (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
|
31
|
+
};
|
|
32
|
+
async function withTransportRetry(run) {
|
|
33
|
+
for (let attempt = 0; ; attempt++) {
|
|
34
|
+
try {
|
|
35
|
+
return await run();
|
|
36
|
+
} catch (err) {
|
|
37
|
+
const wait = transportRetry.waitsMs[attempt];
|
|
38
|
+
if (wait === void 0 || !isTransportFailure(err)) throw err;
|
|
39
|
+
await transportRetry.sleep(wait);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// src/runner/image/checkout.ts
|
|
45
|
+
function withNewTokenRetry2(credential, run) {
|
|
46
|
+
return withNewTokenRetry(credential, () => withTransportRetry(run));
|
|
47
|
+
}
|
|
20
48
|
var INHERITED_REPOSITORY_VARIABLES = ["GIT_DIR", "GIT_WORK_TREE", "GIT_INDEX_FILE", "GIT_COMMON_DIR"];
|
|
21
49
|
function gitEnvironment(base) {
|
|
22
50
|
const env = { ...base, GIT_TERMINAL_PROMPT: "0" };
|
|
@@ -54,7 +82,7 @@ async function fetchDefaultBranch(opts) {
|
|
|
54
82
|
mkdirSync(opts.dir, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
55
83
|
if (opts.owned === true) removeLeftoverGitLocks(join(opts.dir, ".git"));
|
|
56
84
|
const credential = opts.token === void 0 ? void 0 : tokenSettings(opts.remote, opts.token);
|
|
57
|
-
const over = (args) =>
|
|
85
|
+
const over = (args) => withNewTokenRetry2(credential, () => git(opts.dir, args, void 0, credential));
|
|
58
86
|
try {
|
|
59
87
|
const defaultBranch = defaultBranchOf(await over(["ls-remote", "--symref", opts.remote, "HEAD"]));
|
|
60
88
|
if (defaultBranch === null) {
|
|
@@ -97,7 +125,7 @@ async function readBranchHead(input) {
|
|
|
97
125
|
mkdirSync(input.dir, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
98
126
|
let out;
|
|
99
127
|
try {
|
|
100
|
-
out = await
|
|
128
|
+
out = await withNewTokenRetry2(credential, () => git(input.dir, ["ls-remote", "--heads", input.remote, `refs/heads/${input.branch}`], HEAD_TIMEOUT_MS, credential));
|
|
101
129
|
} catch (err) {
|
|
102
130
|
return { kind: "unreadable", reason: gitFailureLine(err) };
|
|
103
131
|
}
|
|
@@ -110,7 +138,7 @@ async function fetchCommit(input) {
|
|
|
110
138
|
mkdirSync(input.dir, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
111
139
|
if (input.owned === true) removeLeftoverGitLocks(join(input.dir, ".git"));
|
|
112
140
|
await git(input.dir, ["init", "--quiet"]);
|
|
113
|
-
await
|
|
141
|
+
await withNewTokenRetry2(credential, () => git(input.dir, ["fetch", "--quiet", "--depth", "1", "--no-tags", input.remote, input.commit], CLONE_TIMEOUT_MS, credential));
|
|
114
142
|
await git(input.dir, ["checkout", "--quiet", "--detach", "--force", "FETCH_HEAD"]);
|
|
115
143
|
if (input.clean === true) await git(input.dir, ["clean", "-ffdx", "--quiet"]);
|
|
116
144
|
return { ok: true };
|
|
@@ -125,7 +153,7 @@ async function diffBetween(input) {
|
|
|
125
153
|
mkdirSync(input.dir, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
126
154
|
await git(input.dir, ["init", "--quiet"]);
|
|
127
155
|
const base = input.base === void 0 ? [] : [input.base];
|
|
128
|
-
await
|
|
156
|
+
await withNewTokenRetry2(credential, () => git(input.dir, ["fetch", "--quiet", "--no-tags", "--filter=blob:none", input.remote, ...base, input.head, `+HEAD:${DIFF_DEFAULT_REF}`], CLONE_TIMEOUT_MS, credential));
|
|
129
157
|
const from = await git(input.dir, ["merge-base", input.head, DIFF_DEFAULT_REF, ...base]);
|
|
130
158
|
await git(
|
|
131
159
|
input.dir,
|
|
@@ -143,7 +171,7 @@ var DIFF_DEFAULT_REF = "refs/outerlayer/default-branch";
|
|
|
143
171
|
var CLONE_TIMEOUT_MS = 6e5;
|
|
144
172
|
async function readDefaultBranchFiles(input) {
|
|
145
173
|
const credential = input.token === void 0 ? void 0 : tokenSettings(input.remote, input.token);
|
|
146
|
-
const over = (args, timeoutMs = CLONE_TIMEOUT_MS, raw = false) =>
|
|
174
|
+
const over = (args, timeoutMs = CLONE_TIMEOUT_MS, raw = false) => withNewTokenRetry2(credential, () => git(input.dir, args, timeoutMs, credential, raw));
|
|
147
175
|
try {
|
|
148
176
|
mkdirSync(input.dir, { recursive: true, mode: RUNNER_DIR_MODE });
|
|
149
177
|
const defaultBranch = defaultBranchOf(await over(["ls-remote", "--symref", input.remote, "HEAD"], HEAD_TIMEOUT_MS));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-
|
|
4
|
-
import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-
|
|
3
|
+
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-BMMSIGV4.js';
|
|
4
|
+
import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-PT3DOY6P.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { defaultRunnerConfigPath } from './chunk-
|
|
7
|
-
import { runnerDir, RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { defaultRunnerConfigPath } from './chunk-V2O6KLTQ.js';
|
|
7
|
+
import { runnerDir, RUNNER_DIR_MODE } from './chunk-DYV2OC4S.js';
|
|
8
8
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
9
9
|
import { dirname, sep, join, resolve } from 'path';
|
|
10
10
|
import { spawnSync } from 'child_process';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RemovedTargetError, removedTargetError } from './chunk-
|
|
4
|
-
import { removeRetiredSkills } from './chunk-
|
|
3
|
+
import { RemovedTargetError, removedTargetError } from './chunk-ZCOIE7ZJ.js';
|
|
4
|
+
import { removeRetiredSkills } from './chunk-7GJGSADZ.js';
|
|
5
5
|
import { removeLeftoverGitLocks } from './chunk-A2WPWZJA.js';
|
|
6
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
7
|
-
import { withTokenHeader } from './chunk-
|
|
6
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-N7PG5JAD.js';
|
|
7
|
+
import { withTokenHeader } from './chunk-VXU5IAEQ.js';
|
|
8
8
|
import { appendContextProvenance } from './chunk-545P7JY7.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
10
|
import { writeDegraded, writeSourceCache, SOURCE_CACHE_TTL_RETRY_MS, writeContextManifest, SOURCE_CACHE_TTL_SUCCESS_MS, readSourceCache, isSourceCacheFresh, clearDegraded } from './chunk-YQR6E6OV.js';
|
|
11
|
-
import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-
|
|
11
|
+
import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-LPQJ5LXP.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
13
13
|
import { execFileSync } from 'child_process';
|
|
14
14
|
import { existsSync, mkdirSync, writeFileSync, chmodSync, lstatSync, readFileSync, copyFileSync } from 'fs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession } from './chunk-
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
3
|
+
import { detectActiveSession } from './chunk-IKGAVS5X.js';
|
|
4
|
+
import { autoConnect } from './chunk-5EQ2B6UE.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-N7PG5JAD.js';
|
|
7
7
|
import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
8
8
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isBuiltinVm, isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
7
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
8
|
-
import { ensureHostKey } from './chunk-
|
|
9
|
-
import { sandboxSettingsFrom } from './chunk-
|
|
10
|
-
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-
|
|
11
|
-
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-
|
|
12
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-LXQX456I.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-4L3WCEOI.js';
|
|
5
|
+
import { getJson, WorkCommandError } from './chunk-F7AOOV5N.js';
|
|
6
|
+
import { isBuiltinVm, isBuiltinSandbox, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-V2O6KLTQ.js';
|
|
7
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-OC3BSNNE.js';
|
|
8
|
+
import { ensureHostKey } from './chunk-NDDXBJMX.js';
|
|
9
|
+
import { sandboxSettingsFrom } from './chunk-VXU5IAEQ.js';
|
|
10
|
+
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-XOJRFV3U.js';
|
|
11
|
+
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-BFKSIA3V.js';
|
|
12
|
+
import { defaultAgents } from './chunk-LPQJ5LXP.js';
|
|
13
13
|
import { closeSync, openSync, constants, readFileSync } from 'fs';
|
|
14
14
|
import { join, dirname } from 'path';
|
|
15
15
|
import { totalmem } from 'os';
|
|
@@ -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-F7AOOV5N.js';
|
|
5
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-ISRMDI2H.js';
|
|
6
|
+
import { buildRefusalReason } from './chunk-ZCOIE7ZJ.js';
|
|
7
|
+
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-IIYDYHS5.js';
|
|
8
|
+
import { signingFetchFor } from './chunk-N7PG5JAD.js';
|
|
9
|
+
import { signerFor } from './chunk-NDDXBJMX.js';
|
|
10
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-DYV2OC4S.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);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession } from './chunk-IKGAVS5X.js';
|
|
5
|
+
import { autoConnect } from './chunk-5EQ2B6UE.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-N7PG5JAD.js';
|
|
8
8
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
4
|
-
import { runEmitArtifact } from './chunk-
|
|
4
|
+
import { runEmitArtifact } from './chunk-XTUTQVBU.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-IKGAVS5X.js';
|
|
7
|
+
import { autoConnect } from './chunk-5EQ2B6UE.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
9
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-N7PG5JAD.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-BFKSIA3V.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
13
13
|
import { resolveRepoIdentity } from './chunk-Y55ARAPE.js';
|
|
14
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';
|
|
@@ -2443,6 +2443,9 @@ function keepParts(beat, speech, map) {
|
|
|
2443
2443
|
parts.push({ start: partStart, end: beat.end });
|
|
2444
2444
|
return parts;
|
|
2445
2445
|
}
|
|
2446
|
+
function secondsPastSpeech(parts, speech) {
|
|
2447
|
+
return parts.reduce((sum, part) => sum + Math.max(0, part.end - Math.max(part.start, speech.end)), 0);
|
|
2448
|
+
}
|
|
2446
2449
|
|
|
2447
2450
|
// src/demo/measure.ts
|
|
2448
2451
|
var DEAD_AIR_MAX_SECONDS = 2;
|
|
@@ -3160,6 +3163,7 @@ async function runEmitDemo(opts) {
|
|
|
3160
3163
|
const whole = await renderWhole({ manifest, manifestDir, videoPath, work, speakerFor, narrated, media });
|
|
3161
3164
|
const deadAir = deadAirProblems(whole.measure);
|
|
3162
3165
|
if (deadAir.length > 0) throw new EmitDemoError(deadAirRefusal(deadAir));
|
|
3166
|
+
if (whole.lateSteps.length > 0) throw new EmitDemoError(lateStepsRefusal(whole.lateSteps));
|
|
3163
3167
|
const note = speechNote(whole.measure, narrated);
|
|
3164
3168
|
if (note !== void 0) say(`${C.yellow}!${C.reset} ${note}: tell each step as a beat with demo.say()`);
|
|
3165
3169
|
const wholePlan = { output: whole.output };
|
|
@@ -3544,6 +3548,10 @@ async function speak(speakerFor, label, line) {
|
|
|
3544
3548
|
throw new EmitDemoError(`${label}: the narration could not be spoken: ${err instanceof Error ? err.message : String(err)}`);
|
|
3545
3549
|
}
|
|
3546
3550
|
}
|
|
3551
|
+
function lateStepsRefusal(problems) {
|
|
3552
|
+
return `the steps run on after their lines: ${problems.join("; ")} \u2014 split each such beat, so each line plays over the steps it names`;
|
|
3553
|
+
}
|
|
3554
|
+
var LATE_STEPS_MAX_SECONDS = 4;
|
|
3547
3555
|
function deadAirRefusal(problems) {
|
|
3548
3556
|
return `the demo holds dead air: ${problems.join("; ")} \u2014 tell each step as a beat with demo.say(), so the demo shows only narrated steps`;
|
|
3549
3557
|
}
|
|
@@ -3600,9 +3608,16 @@ async function renderWhole(params) {
|
|
|
3600
3608
|
trimmed += span.end - span.start - kept.reduce((sum, part) => sum + (part.end - part.start), 0);
|
|
3601
3609
|
return kept.map(snap);
|
|
3602
3610
|
};
|
|
3611
|
+
const lateSteps = [];
|
|
3603
3612
|
const shown = chapters.map((chapter, index) => {
|
|
3604
3613
|
const beats = beatsOf(chapter) ?? [];
|
|
3605
|
-
const parts = beats.length === 0 ? keep(chapter, spoken(chapter.start, chapterLines[index], SPEECH_LEAD_IN)) : beats.flatMap((beat, beatIndex) =>
|
|
3614
|
+
const parts = beats.length === 0 ? keep(chapter, spoken(chapter.start, chapterLines[index], SPEECH_LEAD_IN)) : beats.flatMap((beat, beatIndex) => {
|
|
3615
|
+
const speech2 = spoken(beat.start, beatLines[index][beatIndex], BEAT_LEAD_IN);
|
|
3616
|
+
const kept = keep(beat, speech2);
|
|
3617
|
+
const late = speech2 === void 0 ? 0 : Math.round(secondsPastSpeech(kept, speech2) * 10) / 10;
|
|
3618
|
+
if (late > LATE_STEPS_MAX_SECONDS) lateSteps.push(`${chapterLabel(index, chapter.title)}, beat ${beatIndex + 1}: the steps run ${late.toFixed(1)} s past the line`);
|
|
3619
|
+
return kept;
|
|
3620
|
+
});
|
|
3606
3621
|
return { ...snap(chapter), beats: parts };
|
|
3607
3622
|
});
|
|
3608
3623
|
const timeline = planTimeline(shown);
|
|
@@ -3648,7 +3663,8 @@ async function renderWhole(params) {
|
|
|
3648
3663
|
ranges: timeline.chapters.map((range) => ({ start: Number(range.start.toFixed(3)), end: Number(range.end.toFixed(3)) })),
|
|
3649
3664
|
leftOut: timeline.leftOut,
|
|
3650
3665
|
trimmed,
|
|
3651
|
-
measure
|
|
3666
|
+
measure,
|
|
3667
|
+
lateSteps
|
|
3652
3668
|
};
|
|
3653
3669
|
}
|
|
3654
3670
|
async function renderOnly(params) {
|
|
@@ -3668,6 +3684,7 @@ async function renderOnly(params) {
|
|
|
3668
3684
|
mkdirSync(dirname(output), { recursive: true });
|
|
3669
3685
|
copyFileSync(whole.output, output);
|
|
3670
3686
|
const deadAir = deadAirProblems(whole.measure);
|
|
3687
|
+
const lateSteps = whole.lateSteps;
|
|
3671
3688
|
const note = speechNote(whole.measure, narrated);
|
|
3672
3689
|
const failures = manifest.chapters.flatMap((chapter, index) => {
|
|
3673
3690
|
const failed = chapter.checks.filter((check) => !check.passed);
|
|
@@ -3686,6 +3703,7 @@ async function renderOnly(params) {
|
|
|
3686
3703
|
longestDeadAir: longest === void 0 ? 0 : Number((longest.end - longest.start).toFixed(2))
|
|
3687
3704
|
},
|
|
3688
3705
|
deadAir,
|
|
3706
|
+
lateSteps,
|
|
3689
3707
|
...note === void 0 ? {} : { note },
|
|
3690
3708
|
failures
|
|
3691
3709
|
};
|
|
@@ -3694,12 +3712,13 @@ async function renderOnly(params) {
|
|
|
3694
3712
|
const share = (part) => `${whole.duration === 0 ? 0 : Math.round(part / whole.duration * 100)}%`;
|
|
3695
3713
|
const text = opts.json ? JSON.stringify(summary) : [
|
|
3696
3714
|
...deadAir.map((line) => `${C.red}\u2717${C.reset} ${line}`),
|
|
3715
|
+
...lateSteps.map((line) => `${C.red}\u2717${C.reset} ${line}: split the beat, so each line plays over the steps it names`),
|
|
3697
3716
|
...note === void 0 ? [] : [`${C.yellow}!${C.reset} ${note}`],
|
|
3698
|
-
`${deadAir.length === 0 ? `${C.green}\u2713${C.reset}` : `${C.red}\u2717${C.reset}`} demo rendered ${C.dim}\xB7${C.reset} ${output} ${C.dim}\xB7${C.reset} ${summary.seconds} s ${C.dim}\xB7${C.reset} speech ${share(whole.measure.spoken)} ${C.dim}\xB7${C.reset} ${summary.leftOutSeconds} s of setup and dead air left out`
|
|
3717
|
+
`${deadAir.length === 0 && lateSteps.length === 0 ? `${C.green}\u2713${C.reset}` : `${C.red}\u2717${C.reset}`} demo rendered ${C.dim}\xB7${C.reset} ${output} ${C.dim}\xB7${C.reset} ${summary.seconds} s ${C.dim}\xB7${C.reset} speech ${share(whole.measure.spoken)} ${C.dim}\xB7${C.reset} ${summary.leftOutSeconds} s of setup and dead air left out`
|
|
3699
3718
|
].join("\n");
|
|
3700
3719
|
if (!opts.quiet) process.stdout.write(`${text}
|
|
3701
3720
|
`);
|
|
3702
|
-
const exitCode = deadAir.length > 0 || failures.length > 0 ? 1 : 0;
|
|
3721
|
+
const exitCode = deadAir.length > 0 || lateSteps.length > 0 || failures.length > 0 ? 1 : 0;
|
|
3703
3722
|
return { exitCode, output: text, failures, recordArtifactId: "", video: { omitted: "size", bytes: 0 }, clips: [], screenshots: [], differences: [] };
|
|
3704
3723
|
} finally {
|
|
3705
3724
|
rmSync(work, { recursive: true });
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { CLAUDE_CODE_HOOKS, OPENCODE_CODEC } from './chunk-PLVHIQJN.js';
|
|
4
4
|
import { CLAUDE_CODE, OPENCODE, NATIVE_AGENTS, LEGACY_AGENT, homeRelative } from './chunk-7PZDPISM.js';
|
|
5
|
-
import { MAINTAINED_SKILLS } from './chunk-
|
|
5
|
+
import { MAINTAINED_SKILLS } from './chunk-VSBG7MMU.js';
|
|
6
6
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { forkFor, RAW_MIRROR_SEGMENTS, WarningCollector, WARNING_CODES, isNewerThanSupported, bucketsFromTurns, costOfUsage } from './chunk-Y55ARAPE.js';
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { MAX_TEST_FILE_BYTES, itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems } from './chunk-
|
|
4
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
3
|
+
import { MAX_TEST_FILE_BYTES, itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems } from './chunk-PG4UW6QW.js';
|
|
4
|
+
import { RUNNER_PROTOCOL } from './chunk-JXZ3LIHN.js';
|
|
5
5
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
7
|
-
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-
|
|
8
|
-
import { upgradedStarterText } from './chunk-
|
|
9
|
-
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-
|
|
10
|
-
import { writeDockerClientConfig } from './chunk-
|
|
11
|
-
import { senderPidfile } from './chunk-
|
|
12
|
-
import { installScrubContext } from './chunk-
|
|
7
|
+
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-AEAKGO6N.js';
|
|
8
|
+
import { upgradedStarterText } from './chunk-R3RALX7H.js';
|
|
9
|
+
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-2PRLSABK.js';
|
|
10
|
+
import { writeDockerClientConfig } from './chunk-55GT5FLR.js';
|
|
11
|
+
import { senderPidfile } from './chunk-R34OLRY7.js';
|
|
12
|
+
import { installScrubContext } from './chunk-BAE5M4N3.js';
|
|
13
13
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
14
|
-
import { runnerImageVersion } from './chunk-
|
|
15
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-
|
|
14
|
+
import { runnerImageVersion } from './chunk-RIITHK4F.js';
|
|
15
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-F4HSDGFO.js';
|
|
16
16
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
17
|
-
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-
|
|
18
|
-
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-
|
|
17
|
+
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-IKJEN5R4.js';
|
|
18
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-YN6EKURT.js';
|
|
19
19
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
20
20
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
21
|
-
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-
|
|
22
|
-
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-
|
|
23
|
-
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-
|
|
24
|
-
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-
|
|
25
|
-
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-
|
|
26
|
-
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-
|
|
27
|
-
import { said, NETWORK_HELPER_MEMORY, firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, identityRunArgs, SAVED_STATE_LABEL } from './chunk-
|
|
28
|
-
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-
|
|
21
|
+
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-6FHMWJHK.js';
|
|
22
|
+
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-OUL5E5UC.js';
|
|
23
|
+
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-KMC6A3YU.js';
|
|
24
|
+
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-F7AOOV5N.js';
|
|
25
|
+
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, readsOnly, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-V2O6KLTQ.js';
|
|
26
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-OC3BSNNE.js';
|
|
27
|
+
import { said, NETWORK_HELPER_MEMORY, firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, identityRunArgs, SAVED_STATE_LABEL } from './chunk-TCPWJBH5.js';
|
|
28
|
+
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-ZBD2YOGH.js';
|
|
29
29
|
import { sanitizeTerminal, planArtifactUpload } from './chunk-DV44KCM6.js';
|
|
30
|
-
import { sharedSkillNames, skillConflictMessage } from './chunk-
|
|
30
|
+
import { sharedSkillNames, skillConflictMessage } from './chunk-IIYDYHS5.js';
|
|
31
31
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
32
|
-
import { signerFor } from './chunk-
|
|
33
|
-
import { sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-
|
|
34
|
-
import { BUILD_HOME, dataPlaneOf, sandboxCallOf, SandboxError, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, checkoutPath, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, providerMayAnswerLater, toolProxyEnvironment } from './chunk-
|
|
35
|
-
import { agentCredential, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, builtInNames, currentAgentCredential, removedAgentCredentialValues, realFdStorePort, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, fdName, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-
|
|
32
|
+
import { signerFor } from './chunk-NDDXBJMX.js';
|
|
33
|
+
import { sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-DYV2OC4S.js';
|
|
34
|
+
import { BUILD_HOME, dataPlaneOf, sandboxCallOf, SandboxError, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, checkoutPath, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, providerMayAnswerLater, toolProxyEnvironment } from './chunk-VXU5IAEQ.js';
|
|
35
|
+
import { agentCredential, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, builtInNames, currentAgentCredential, removedAgentCredentialValues, realFdStorePort, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, fdName, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-XOJRFV3U.js';
|
|
36
36
|
import { versionAtLeast } from './chunk-SF2TBJBP.js';
|
|
37
|
-
import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, defaultCommandLine, credentialAgent, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, strippedVariables, runnerAgents, judgeAgent, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, agentVersionOf } from './chunk-
|
|
38
|
-
import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-
|
|
39
|
-
import { MAINTAINED_SKILLS } from './chunk-
|
|
37
|
+
import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, defaultCommandLine, credentialAgent, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, strippedVariables, runnerAgents, judgeAgent, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, agentVersionOf } from './chunk-BFKSIA3V.js';
|
|
38
|
+
import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-LPQJ5LXP.js';
|
|
39
|
+
import { MAINTAINED_SKILLS } from './chunk-VSBG7MMU.js';
|
|
40
40
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
41
41
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
42
42
|
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-Y55ARAPE.js';
|
|
@@ -8541,8 +8541,8 @@ async function keepSandboxDisk2(input) {
|
|
|
8541
8541
|
function noDiskReason(job, config) {
|
|
8542
8542
|
if (job.workItemId === void 0) return "the job names no work item";
|
|
8543
8543
|
if (config.sandbox?.provider === "outerlayer") return "a sandbox that OuterLayer provides ends with its build, so the next job starts in a new one";
|
|
8544
|
-
if (job.queue === "revise") return "a revision reads each repository at its default branch and leaves nothing to continue";
|
|
8545
8544
|
if (job.queue === "review") return "a code review reads one commit and leaves nothing to continue";
|
|
8545
|
+
if (readsOnly(job.queue)) return `${job.queue === "criteria" ? "a criteria job" : "a revision"} reads each repository at its default branch and leaves nothing to continue`;
|
|
8546
8546
|
if (job.reason === "disk_limit_exceeded" || job.reason === "disk_check_failed") return "the build passed its disk limit, so a rerun would start from a full disk";
|
|
8547
8547
|
if (config.managed === true && (job.managedVariables?.length ?? 0) > 0) return "the build held a factory build variable, and the runner cannot remove a value that a command stored in an encoded form";
|
|
8548
8548
|
return void 0;
|
|
@@ -8864,7 +8864,7 @@ async function guestOf(job, runtime) {
|
|
|
8864
8864
|
async function keepEndedSession(input) {
|
|
8865
8865
|
const { job, log, tag } = input;
|
|
8866
8866
|
if (job.sessionId === void 0 || job.workItemId === void 0 || job.sessionKept === true) return false;
|
|
8867
|
-
if (job.queue
|
|
8867
|
+
if (readsOnly(job.queue)) return false;
|
|
8868
8868
|
if (job.microvm === void 0 && job.container === void 0 && job.sandbox === void 0) return false;
|
|
8869
8869
|
if (jobAgent(job, input.runtime.agents)?.adapter.launch?.session === void 0) return false;
|
|
8870
8870
|
const found = await guestOf(job, input.runtime);
|
|
@@ -10015,7 +10015,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
|
|
|
10015
10015
|
const logPath = join(jobDirPath, "command.log");
|
|
10016
10016
|
const tag = `${itemTag(job)}`;
|
|
10017
10017
|
const isRun = job.queue === "run";
|
|
10018
|
-
const noJudgement = isRun || job.queue
|
|
10018
|
+
const noJudgement = isRun || readsOnly(job.queue);
|
|
10019
10019
|
deps.attemptLogs?.open(job.item, jobDirPath, itemScope(job));
|
|
10020
10020
|
const valuesNotHeld = (job.managedVariables?.length ?? 0) > 0 && managedBuildSettingsFor(jobDirPath) === void 0;
|
|
10021
10021
|
await stopSender({ job, jobDir: jobDirPath, deps: { spawnFn, runtime: deps.container, log } });
|
|
@@ -10073,6 +10073,10 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
|
|
|
10073
10073
|
writeJobFile(jobFilePath, job);
|
|
10074
10074
|
}
|
|
10075
10075
|
const uploadSessions = async (workdir) => {
|
|
10076
|
+
if (job.queue === "review") {
|
|
10077
|
+
log.line(`${tag} sync skipped: a review job has no session to upload`);
|
|
10078
|
+
return;
|
|
10079
|
+
}
|
|
10076
10080
|
if (valuesNotHeld) {
|
|
10077
10081
|
log.error(`${tag} sync skipped: ${VALUES_NOT_HELD}`);
|
|
10078
10082
|
return;
|
|
@@ -12336,8 +12340,8 @@ function createGitRemote(options) {
|
|
|
12336
12340
|
if (bodyPath !== void 0) rmSync(bodyPath, { force: true });
|
|
12337
12341
|
}
|
|
12338
12342
|
}
|
|
12339
|
-
const readOnly = options.readOnly === true || options.readOnly === "revise" || options.readOnly === "review";
|
|
12340
|
-
const readOnlyActor = options.readOnly === "revise" ? "a spec revision" : options.readOnly === "review" ? "a code review" : "a check";
|
|
12343
|
+
const readOnly = options.readOnly === true || options.readOnly === "revise" || options.readOnly === "review" || options.readOnly === "criteria";
|
|
12344
|
+
const readOnlyActor = options.readOnly === "revise" ? "a spec revision" : options.readOnly === "review" ? "a code review" : options.readOnly === "criteria" ? "a criteria job" : "a check";
|
|
12341
12345
|
async function handle(req, res) {
|
|
12342
12346
|
const route = classifyRequest(req.method ?? "", req.url ?? "");
|
|
12343
12347
|
if (route === void 0) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { RunnerAlreadyRunningError, readPidFile } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-LXQX456I.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-4L3WCEOI.js';
|
|
5
|
+
import { RunnerAlreadyRunningError, readPidFile } from './chunk-MGN525G6.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
7
|
-
import { isSignatureRefusal, postJson } from './chunk-
|
|
8
|
-
import { keyRunnerFactory } from './chunk-
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
-
import { pidFilePath } from './chunk-
|
|
7
|
+
import { isSignatureRefusal, postJson } from './chunk-F7AOOV5N.js';
|
|
8
|
+
import { keyRunnerFactory } from './chunk-V2O6KLTQ.js';
|
|
9
|
+
import { signerFor } from './chunk-NDDXBJMX.js';
|
|
10
|
+
import { pidFilePath } from './chunk-DYV2OC4S.js';
|
|
11
11
|
import { readFileSync } from 'fs';
|
|
12
12
|
|
|
13
13
|
createRequire(import.meta.url);
|
|
@@ -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-DYV2OC4S.js';
|
|
5
5
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
6
6
|
import { dirname } from 'path';
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readCloudConfigStrict, readCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
|
|
4
|
-
import { signRunnerRequest, signerFor } from './chunk-
|
|
4
|
+
import { signRunnerRequest, signerFor } from './chunk-NDDXBJMX.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
|
-
import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-
|
|
6
|
+
import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-Z7J7JWGF.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-DYV2OC4S.js';
|
|
4
4
|
import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
|
|
5
5
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
6
6
|
|