@outerlayer/cli 0.36.0-next.20261102135508 → 0.36.0-next.20261102211600
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-OYOTPYAR.js +39 -0
- package/dist/{agent-subcommand-Z6SOLWZW.js → agent-subcommand-3VJ6PKAT.js} +6 -5
- package/dist/{artifact-link-cmd-ZCMQIT5Y.js → artifact-link-cmd-ZPQXVG5O.js} +2 -2
- package/dist/{bridge-4KPODDN7.js → bridge-RECR25EL.js} +8 -7
- package/dist/{build-KYXFZQ33.js → build-NIKF353A.js} +14 -14
- package/dist/{build-disk-W6AL5WHI.js → build-disk-GKLJQNYQ.js} +12 -12
- package/dist/build-info.json +1 -1
- package/dist/{builder-IMNOEYV7.js → builder-THQ62YNF.js} +11 -11
- package/dist/caller-6EKJ6C43.js +22 -0
- package/dist/{check-WWX32IGY.js → check-WODTIKPR.js} +59 -59
- package/dist/{chunk-GFZ7PELR.js → chunk-2ICED253.js} +5 -5
- package/dist/{chunk-DTCTXDJP.js → chunk-2QXA7T6F.js} +5 -2
- package/dist/{chunk-6JLYU322.js → chunk-32GBZ7HD.js} +3 -3
- package/dist/{chunk-YJQ7YA7J.js → chunk-3FZVQRTC.js} +4 -4
- package/dist/{chunk-URHS76GV.js → chunk-3PDRASIP.js} +9 -9
- package/dist/{chunk-TKY3SDXH.js → chunk-44B523ZQ.js} +28 -20
- package/dist/{chunk-KRCU66AM.js → chunk-4K3VEJEE.js} +8 -8
- package/dist/{chunk-TJIFYV2Z.js → chunk-4UADHJ6P.js} +7 -7
- package/dist/{chunk-DTQPDMHG.js → chunk-5QMSZFA2.js} +2 -2
- package/dist/{chunk-B5SWBFVE.js → chunk-66UG5SL4.js} +3 -3
- package/dist/{chunk-ENMX3VQ7.js → chunk-6IDMWODX.js} +6 -6
- package/dist/{chunk-ULBYRPAP.js → chunk-77MUGWQT.js} +1 -1
- package/dist/{chunk-B2P72DAE.js → chunk-7AVQ67PS.js} +1 -1
- package/dist/{chunk-ZSRMJOAK.js → chunk-BF7P3J2H.js} +3 -3
- package/dist/{chunk-FRMAQ3C4.js → chunk-D2SEASHI.js} +6 -6
- package/dist/{chunk-K2G3VB7W.js → chunk-DLHOKPNF.js} +1 -1
- package/dist/{chunk-QKOJ22OV.js → chunk-DUGZCKCF.js} +18 -18
- package/dist/{chunk-VUH7KKVD.js → chunk-FB7HGLRK.js} +3 -3
- package/dist/{chunk-WVAXJOWG.js → chunk-FCMEWS3G.js} +5 -5
- package/dist/{chunk-PMA67TIN.js → chunk-FH4CX3CS.js} +3 -3
- package/dist/{chunk-LSLK4RS4.js → chunk-G3BUOMCF.js} +1 -0
- package/dist/{chunk-3YEPLVNW.js → chunk-GQ4GMFHO.js} +8 -8
- package/dist/{chunk-ATKCHMFD.js → chunk-H5QZSOBB.js} +1 -1
- package/dist/{chunk-BUYXEU7J.js → chunk-HHD5P4TU.js} +8 -8
- package/dist/{chunk-PIZA7OG2.js → chunk-HKJCNBUB.js} +1 -1
- package/dist/{chunk-2YC3TXWX.js → chunk-HOHY6ORJ.js} +1 -1
- package/dist/{chunk-VAYVTUU4.js → chunk-HYDNEYVD.js} +5 -5
- package/dist/{chunk-IKFAJTLZ.js → chunk-I6GHP6U7.js} +1 -1
- package/dist/{chunk-J2OMKFYB.js → chunk-IBFBBUBJ.js} +3 -3
- package/dist/{chunk-BSPJI5T7.js → chunk-IEFSDAVW.js} +1 -1
- package/dist/{chunk-CSBW4LGL.js → chunk-IJC4JL6B.js} +5 -5
- package/dist/{chunk-YYQ5NOT5.js → chunk-JFPDRFAR.js} +3 -3
- package/dist/{chunk-T5QBWM6M.js → chunk-KG5BQFSO.js} +1 -1
- package/dist/{chunk-B36NSEUM.js → chunk-KIY2AUHY.js} +1 -1
- package/dist/{chunk-4DLJ343I.js → chunk-KTL7GFQ3.js} +1 -1
- package/dist/{chunk-FTP7SE6Y.js → chunk-L6GYPZEV.js} +3 -3
- package/dist/{chunk-RF4JHGGB.js → chunk-L6OJH3E5.js} +7 -7
- package/dist/{chunk-O3MJAHLI.js → chunk-LJNFUD3U.js} +6 -6
- package/dist/{chunk-I4DM7SNX.js → chunk-LTAMZ36E.js} +1 -1
- package/dist/{chunk-6KH3NMIT.js → chunk-M7AIU22N.js} +124 -1099
- package/dist/{chunk-SJJXDU2J.js → chunk-MDP3QN7U.js} +7 -7
- package/dist/{chunk-DG3M5DZU.js → chunk-MFLIYXNY.js} +1 -1
- package/dist/{chunk-6HDXRDC5.js → chunk-MSEDA6A2.js} +2 -2
- package/dist/{chunk-ENBOAE2W.js → chunk-MZQAYZY4.js} +66 -25
- package/dist/{chunk-NXQK2I3G.js → chunk-NAQWMYQ2.js} +1 -1
- package/dist/{chunk-WACPWYMH.js → chunk-NJMJHUJL.js} +22 -7
- package/dist/{chunk-D5I5SSPU.js → chunk-OATJFN2P.js} +7 -7
- package/dist/{chunk-PBGNX3PS.js → chunk-OQZ2B5AN.js} +1 -1
- package/dist/{chunk-CXJC3JLN.js → chunk-P7W7SXX7.js} +3 -3
- package/dist/{chunk-YMVRCSKD.js → chunk-PJ3KUE3L.js} +7 -5
- package/dist/{chunk-E3TP4QTM.js → chunk-PLB2IBJV.js} +1 -1
- package/dist/{chunk-L2BA2HXM.js → chunk-PN4LWT5F.js} +1 -1
- package/dist/{chunk-AQE6E54X.js → chunk-QU4FBCRH.js} +9 -9
- package/dist/{chunk-LO4CK734.js → chunk-REXQKAY7.js} +1 -1
- package/dist/{chunk-K7N6LAPC.js → chunk-S3GZ74UE.js} +4 -4
- package/dist/{chunk-4XXBV37R.js → chunk-SFPDEBBO.js} +6 -6
- package/dist/{chunk-CSVJGW3I.js → chunk-STNWA5ZZ.js} +2 -2
- package/dist/{chunk-HTRDL42C.js → chunk-TI32Q3VB.js} +1 -1
- package/dist/{chunk-I6U6QPN6.js → chunk-TOP4K2T6.js} +1138 -80
- package/dist/{chunk-XIDDJSQU.js → chunk-U37FB7ER.js} +2 -2
- package/dist/{chunk-6B3V6EGQ.js → chunk-UJD3DINB.js} +8 -8
- package/dist/{chunk-BZSJ77MO.js → chunk-UKQCIZ3R.js} +1 -1
- package/dist/{chunk-LHHDX7FB.js → chunk-UQ2YFDGP.js} +5 -5
- package/dist/{chunk-FWSVWPMS.js → chunk-V6V3NN5G.js} +1 -1
- package/dist/{chunk-HRHWA6TZ.js → chunk-V7ZAPEVS.js} +1 -1
- package/dist/{chunk-D4VGJQY7.js → chunk-VK4MMRYC.js} +1 -1
- package/dist/{chunk-LSZUTI6O.js → chunk-VNXITMKE.js} +1 -1
- package/dist/{chunk-FOSYM7TQ.js → chunk-X4QHDRXT.js} +2 -2
- package/dist/{chunk-XEWG4AB2.js → chunk-XCXBR74S.js} +739 -253
- package/dist/{chunk-Y4E7IS7H.js → chunk-YPVJ46Y3.js} +2 -2
- package/dist/{chunk-MVPOYQQY.js → chunk-Z4ASKZKN.js} +1 -1
- package/dist/{chunk-H2NJG3TE.js → chunk-ZFDUXKTM.js} +4 -4
- package/dist/{chunk-D6EXW4EB.js → chunk-ZM2SKQJD.js} +2 -2
- package/dist/{chunk-CDG475ZP.js → chunk-ZPFBNCXW.js} +10 -9
- package/dist/{chunk-3UFX6KH2.js → chunk-ZSHBICCL.js} +34 -37
- package/dist/{claude-launcher-LGKJZH33.js → claude-launcher-Z6WBFSRK.js} +10 -9
- package/dist/{cli-Q5L64EEG.js → cli-KBXHOMUN.js} +148 -148
- package/dist/{command-CGEFJZNC.js → command-FPLHTT7R.js} +53 -53
- package/dist/config-RKV7FRY5.js +21 -0
- package/dist/{connect-cmd-RUBP466E.js → connect-cmd-ZG7BPIXQ.js} +14 -14
- package/dist/{container-start-JRF3SBUA.js → container-start-3NWIL4A3.js} +51 -51
- package/dist/{context-cleanup-3K2AOECJ.js → context-cleanup-ZKAL6X5I.js} +6 -5
- package/dist/{context-show-cmd-4UXO5WQJ.js → context-show-cmd-AM46ZKCT.js} +15 -15
- package/dist/{control-plane-launch-AAH4YH56.js → control-plane-launch-HW2Y53YI.js} +16 -15
- package/dist/{demo-record-cmd-2OKCGST7.js → demo-record-cmd-T4227FWF.js} +9 -8
- package/dist/{demo-voice-cmd-GEPX7GIG.js → demo-voice-cmd-YSESUTE5.js} +23 -23
- package/dist/dist-64LM4JF4.js +7 -0
- package/dist/{docker-5VWK335X.js → docker-JC6S6KH3.js} +11 -11
- package/dist/{doctor-EQM3JRZI.js → doctor-U3MU6GP5.js} +53 -53
- package/dist/emit-artifact-cmd-J643XZ46.js +43 -0
- package/dist/{emit-cmd-RO4L4PFZ.js → emit-cmd-PTOSSDQK.js} +9 -8
- package/dist/emit-criteria-cmd-BARZ3MBZ.js +34 -0
- package/dist/{emit-demo-cmd-Y2Y6LEL7.js → emit-demo-cmd-OAC6RTSK.js} +23 -23
- package/dist/{emit-finding-cmd-VECM64UR.js → emit-finding-cmd-BUTFI2GD.js} +17 -17
- package/dist/{emit-result-cmd-2ERWFDUN.js → emit-result-cmd-4E4KX3QZ.js} +21 -21
- package/dist/{emit-step-cmd-V2ET66N4.js → emit-step-cmd-7CAJHMEQ.js} +17 -17
- package/dist/{exec-client-54XKNPTI.js → exec-client-G6B7G3IN.js} +9 -8
- package/dist/find-unit-MX6XITYC.js +23 -0
- package/dist/{findings-cmd-QJPPF6BY.js → findings-cmd-N66FJR3J.js} +17 -17
- package/dist/{fleet-readiness-DKAPHAZN.js → fleet-readiness-KFTMEUAI.js} +16 -15
- package/dist/governing-source-TO6RRWYS.js +40 -0
- package/dist/{guest-init-5QZRGP62.js → guest-init-J3TELWJG.js} +10 -9
- package/dist/{hook-fast-VXROB4KF.js → hook-fast-Y4LO3YE7.js} +4 -4
- package/dist/{hook-install-GDNRMML4.js → hook-install-DOEXRPO5.js} +6 -5
- package/dist/{hook-wrap-fast-LWWKKPGK.js → hook-wrap-fast-L5PCBVNI.js} +3 -3
- package/dist/host-checks-AGWZAK4R.js +78 -0
- package/dist/{host-key-HLLV37NV.js → host-key-EOTN4362.js} +9 -8
- package/dist/{image-tag-PBWQBATH.js → image-tag-VHP22FMX.js} +9 -8
- package/dist/index.js +6 -6
- package/dist/{init-Y2URPVVY.js → init-B575TM3R.js} +49 -49
- package/dist/init-LADDJ3MR.js +78 -0
- package/dist/{init-cmd-XNANUDIW.js → init-cmd-5Q2ICZBK.js} +31 -31
- package/dist/{init-update-EFCTKF6D.js → init-update-AJF4YJ6I.js} +26 -26
- package/dist/{install-cmd-RHFUZFV4.js → install-cmd-GO3D5F6X.js} +11 -10
- package/dist/{layout-7XMC7S6K.js → layout-KSD373US.js} +6 -5
- package/dist/{login-browser-QH4KYG3F.js → login-browser-NUQQYH5J.js} +2 -2
- package/dist/{logs-E7MGQINH.js → logs-QV3LNNUJ.js} +8 -7
- package/dist/loop-5CEZVTIU.js +89 -0
- package/dist/machine-CSH5K23R.js +78 -0
- package/dist/{machine-skills-HR4RNRNR.js → machine-skills-IMGN27M7.js} +6 -5
- package/dist/{mcp-install-cmd-SMPLT43Q.js → mcp-install-cmd-25PA5RAI.js} +6 -5
- package/dist/{mcp-serve-cmd-XXERT673.js → mcp-serve-cmd-7USDWMS4.js} +10 -9
- package/dist/{paths-F2ZR2EKC.js → paths-L3SEA2QQ.js} +8 -7
- package/dist/pending-3EMMPNC7.js +17 -0
- package/dist/{pidfile-7M7O2M7T.js → pidfile-ROXIFSGN.js} +9 -8
- package/dist/{record-YCJ6DZOY.js → record-7OMLXGTG.js} +9 -8
- package/dist/{relay-I2T43PPB.js → relay-663SG53Q.js} +6 -5
- package/dist/{relay-protocol-GI2GC2AM.js → relay-protocol-4V3F6HSZ.js} +6 -5
- package/dist/runner-env-YMBCAQXO.js +23 -0
- package/dist/{runner-identity-Y5ZFCC7V.js → runner-identity-QBFVMEXN.js} +11 -11
- package/dist/{runner-key-R47C6374.js → runner-key-SUZKSV54.js} +49 -49
- package/dist/{session-sender-UPACLRGG.js → session-sender-RI5VITPP.js} +22 -22
- package/dist/{shell-function-GYD2ZQQG.js → shell-function-D2T55XFG.js} +2 -2
- package/dist/{spec-cmd-7QRE2SZK.js → spec-cmd-IPFZNBCZ.js} +18 -18
- package/dist/{starter-pack-IMKIUA56.js → starter-pack-OLH6O4YX.js} +7 -6
- package/dist/state-ZWCWEDKQ.js +17 -0
- package/dist/{status-BQEYEG2V.js → status-KSO5RNWL.js} +49 -49
- package/dist/{statusline-fast-NUVHCNRX.js → statusline-fast-36U3TOCL.js} +3 -3
- package/dist/{sync-cmd-NBLYEPQG.js → sync-cmd-DML4SI6Y.js} +21 -21
- package/dist/update-steps-OVKM7RAH.js +79 -0
- package/dist/{watch-IHV4V3HZ.js → watch-X3AKYTTF.js} +29 -26
- package/dist/{work-claim-cmd-WGTSU5IT.js → work-claim-cmd-SIHUKNW4.js} +24 -24
- package/dist/{work-cmd-HKOJU5FJ.js → work-cmd-Z2JX53KE.js} +17 -17
- package/dist/work-comment-cmd-D2OQTFBW.js +37 -0
- package/dist/{work-demo-cmd-J4AZAIVP.js → work-demo-cmd-Z2PRJSY3.js} +17 -17
- package/dist/{work-logs-cmd-UOO4JVLG.js → work-logs-cmd-4UICP6PY.js} +17 -17
- package/dist/{work-open-pr-cmd-QFRDDBAM.js → work-open-pr-cmd-BZOYVVM6.js} +18 -18
- package/dist/{work-pr-cmd-3Q2D5RQT.js → work-pr-cmd-6PQLQD66.js} +17 -17
- package/dist/{work-proofs-cmd-7Y3HGT7C.js → work-proofs-cmd-SWESTSKA.js} +19 -19
- package/dist/{work-proofs-record-QPUM6DY4.js → work-proofs-record-55B24QNH.js} +27 -27
- package/dist/{work-stop-cmd-SD2ZRMSY.js → work-stop-cmd-6JXCQ277.js} +17 -17
- package/package.json +3 -3
- package/dist/agent-setup-Q3HDN23U.js +0 -39
- package/dist/caller-NLRE272L.js +0 -22
- package/dist/config-T22KVOOT.js +0 -21
- package/dist/dist-VVZIGSAF.js +0 -7
- package/dist/emit-artifact-cmd-TA3MPHLU.js +0 -43
- package/dist/emit-criteria-cmd-NMTUV2KM.js +0 -34
- package/dist/find-unit-CNAPU7XQ.js +0 -23
- package/dist/governing-source-7PZ6DAJU.js +0 -40
- package/dist/host-checks-WAPO5X7X.js +0 -78
- package/dist/init-EK3PUU6W.js +0 -78
- package/dist/loop-L6TX6OR4.js +0 -89
- package/dist/machine-VJKAY2GX.js +0 -78
- package/dist/pending-VOFQRXP4.js +0 -16
- package/dist/runner-env-YW55JVU7.js +0 -23
- package/dist/state-VAHBIMS5.js +0 -16
- package/dist/update-steps-VGKNGWTZ.js +0 -79
- package/dist/work-comment-cmd-H3JCWQ2J.js +0 -37
- package/dist/{chunk-TPMLB3VZ.js → chunk-A6RI6KTI.js} +1 -1
- package/dist/{chunk-P6PHY33P.js → chunk-F3T5QJ24.js} +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { isAgentsMdLayout } from './chunk-
|
|
5
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
6
|
-
import { versionAtLeast } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-ZM2SKQJD.js';
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-NAQWMYQ2.js';
|
|
6
|
+
import { versionAtLeast } from './chunk-IEFSDAVW.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
|
-
import { machineSkillsState, staleAgentSkills } from './chunk-
|
|
8
|
+
import { machineSkillsState, staleAgentSkills } from './chunk-VNXITMKE.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
|
-
import { hasSymlinkComponent } from './chunk-
|
|
11
|
-
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-
|
|
10
|
+
import { hasSymlinkComponent } from './chunk-OQZ2B5AN.js';
|
|
11
|
+
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-TOP4K2T6.js';
|
|
12
12
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
13
13
|
import { execFileSync } from 'child_process';
|
|
14
14
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-2QXA7T6F.js';
|
|
4
4
|
import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
|
|
5
5
|
import { join, basename, sep, resolve } from 'path';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { inspectService, realInspectProbes } from './chunk-
|
|
3
|
+
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-IJC4JL6B.js';
|
|
4
|
+
import { inspectService, realInspectProbes } from './chunk-5QMSZFA2.js';
|
|
5
5
|
import { realpathSync, readFileSync, readdirSync } from 'fs';
|
|
6
6
|
import { resolve, dirname, join } from 'path';
|
|
7
7
|
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { writePendingUpdate } from './chunk-
|
|
4
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
3
|
+
import { writePendingUpdate } from './chunk-PLB2IBJV.js';
|
|
4
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-DLHOKPNF.js';
|
|
5
5
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
6
6
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
7
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
8
|
-
import { renderUpdateSteps } from './chunk-
|
|
9
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
10
|
-
import { writeFleetState } from './chunk-
|
|
11
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
12
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
13
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-
|
|
14
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
15
|
-
import { RepoFilter } from './chunk-
|
|
7
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-OATJFN2P.js';
|
|
8
|
+
import { renderUpdateSteps } from './chunk-JFPDRFAR.js';
|
|
9
|
+
import { RUNNER_PROTOCOL } from './chunk-PN4LWT5F.js';
|
|
10
|
+
import { writeFleetState } from './chunk-H5QZSOBB.js';
|
|
11
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-HHD5P4TU.js';
|
|
12
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-MFLIYXNY.js';
|
|
13
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-XCXBR74S.js';
|
|
14
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-IJC4JL6B.js';
|
|
15
|
+
import { RepoFilter } from './chunk-ZSHBICCL.js';
|
|
16
16
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
17
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
17
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-77MUGWQT.js';
|
|
18
18
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
19
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-
|
|
20
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
19
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-STNWA5ZZ.js';
|
|
20
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-VK4MMRYC.js';
|
|
21
21
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
22
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
23
|
-
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
24
|
-
import { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
25
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-
|
|
26
|
-
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
27
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
28
|
-
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-
|
|
29
|
-
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT } from './chunk-
|
|
30
|
-
import { COMMAND_LOST_REASON, takeAgentCredentials, runnerAgents, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-
|
|
22
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-GQ4GMFHO.js';
|
|
23
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-NJMJHUJL.js';
|
|
24
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-YPVJ46Y3.js';
|
|
25
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-ZPFBNCXW.js';
|
|
26
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-QU4FBCRH.js';
|
|
27
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-I6GHP6U7.js';
|
|
28
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-2QXA7T6F.js';
|
|
29
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT } from './chunk-P7W7SXX7.js';
|
|
30
|
+
import { COMMAND_LOST_REASON, takeAgentCredentials, runnerAgents, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-5QMSZFA2.js';
|
|
31
31
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
32
32
|
import { mkdirSync, existsSync, chmodSync, writeFileSync, renameSync, statSync, readdirSync, readFileSync, rmSync, closeSync } from 'fs';
|
|
33
33
|
import { join, dirname } from 'path';
|
|
@@ -1581,6 +1581,33 @@ function holdWithoutRoomForLarge(state) {
|
|
|
1581
1581
|
}
|
|
1582
1582
|
return false;
|
|
1583
1583
|
}
|
|
1584
|
+
async function housekeepingDockerOf(state) {
|
|
1585
|
+
const injected = state.deps.housekeeping ?? {};
|
|
1586
|
+
const names2 = { run: injected.run, runnerId: runnerLabelValue(state.config.configPath), builder: builderName(state.config.configPath) };
|
|
1587
|
+
const hostBuilder = keepsHostBuilder(state.config, state.deps.blocked?.builderDiskPinned);
|
|
1588
|
+
return injected.docker ?? (hostBuilder ? createHousekeepingDocker(names2) : await housekeepingDockerIfReachable(names2));
|
|
1589
|
+
}
|
|
1590
|
+
async function freeDiskFromItemDisks(state, readFree) {
|
|
1591
|
+
const minimum = state.config.housekeeping?.minFreeDisk ?? 0;
|
|
1592
|
+
const log = logOf(state);
|
|
1593
|
+
try {
|
|
1594
|
+
let docker;
|
|
1595
|
+
await freeItemDisksUntil({
|
|
1596
|
+
configPath: state.config.configPath,
|
|
1597
|
+
// Docker is asked for only when a kept disk is a volume.
|
|
1598
|
+
removeVolume: async (name) => {
|
|
1599
|
+
docker ??= await housekeepingDockerOf(state);
|
|
1600
|
+
if (docker === void 0) throw new Error("Docker is not available");
|
|
1601
|
+
await docker.removeVolume(name);
|
|
1602
|
+
},
|
|
1603
|
+
enough: () => readFree() >= minimum,
|
|
1604
|
+
log: (line) => log.line(`freeing disk: ${line}`)
|
|
1605
|
+
});
|
|
1606
|
+
} catch (err) {
|
|
1607
|
+
log.error(`kept disks could not be removed to free disk: ${describeCallFailure(err)}`);
|
|
1608
|
+
}
|
|
1609
|
+
return readFree();
|
|
1610
|
+
}
|
|
1584
1611
|
async function freeDiskFromSavedStates(state, root, readFree) {
|
|
1585
1612
|
const dir = savedStatesDir(root);
|
|
1586
1613
|
const records = readRecords(dir).filter((record2) => record2.complete);
|
|
@@ -2041,6 +2068,7 @@ async function holdOffForDisk(state) {
|
|
|
2041
2068
|
const readFree = () => minimum === 0 ? Number.POSITIVE_INFINITY : (state.deps.freeBytes ?? freeBytes)(root) ?? Number.POSITIVE_INFINITY;
|
|
2042
2069
|
let free = readFree();
|
|
2043
2070
|
const log = logOf(state);
|
|
2071
|
+
if (free < minimum) free = await freeDiskFromItemDisks(state, readFree);
|
|
2044
2072
|
if (free < minimum) free = await freeDiskFromSavedStates(state, root, readFree);
|
|
2045
2073
|
if (free < minimum) {
|
|
2046
2074
|
if (state.lowDisk === void 0) {
|
|
@@ -2084,6 +2112,9 @@ async function housekeepingPass(state) {
|
|
|
2084
2112
|
keepDays: config.jobsKeepDays,
|
|
2085
2113
|
buildCacheMax: config.buildCacheMax,
|
|
2086
2114
|
savedStateMax: config.savedStateMax ?? DEFAULT_SAVED_STATE_MAX_BYTES,
|
|
2115
|
+
workspaceMax: config.workspaceMax,
|
|
2116
|
+
workspaceOrgMax: config.workspaceOrgMax,
|
|
2117
|
+
workspaceKeepDays: config.workspaceKeepDays,
|
|
2087
2118
|
removeHostBuilder: !hostBuilder,
|
|
2088
2119
|
docker,
|
|
2089
2120
|
now: state.deps.now ?? (() => /* @__PURE__ */ new Date()),
|
|
@@ -2173,7 +2204,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
2173
2204
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
2174
2205
|
);
|
|
2175
2206
|
async function tryClaimAndStart(state, item, queue) {
|
|
2176
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
2207
|
+
const { postJson: postJson2 } = await import('./work-cmd-Z2JX53KE.js');
|
|
2177
2208
|
const log = logOf(state);
|
|
2178
2209
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
2179
2210
|
const claim = await retrySend(
|
|
@@ -2342,6 +2373,10 @@ async function prepareSession(state, active, item, queue, tag) {
|
|
|
2342
2373
|
const job = active.job;
|
|
2343
2374
|
const builtin = job.microvm !== void 0 || job.container !== void 0;
|
|
2344
2375
|
const log = logOf(state);
|
|
2376
|
+
if (queue === "amend" && !builtin) {
|
|
2377
|
+
job.disk = { restored: false, reason: "build_type_cannot_restore" };
|
|
2378
|
+
writeJobFile(join(active.dirPath, "job.json"), job);
|
|
2379
|
+
}
|
|
2345
2380
|
try {
|
|
2346
2381
|
const prepared = await prepareResume({
|
|
2347
2382
|
configPath: state.config.configPath,
|
|
@@ -2481,6 +2516,8 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2481
2516
|
config: claimCalls(state.config, active.job),
|
|
2482
2517
|
...active.job.organizationId === void 0 ? {} : { organizationId: active.job.organizationId, claimId: active.job.claimId },
|
|
2483
2518
|
runtime: runtimeOf(state),
|
|
2519
|
+
queue,
|
|
2520
|
+
workItemId: item.id,
|
|
2484
2521
|
item,
|
|
2485
2522
|
itemKey,
|
|
2486
2523
|
tokens,
|
|
@@ -2511,6 +2548,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2511
2548
|
workdir = provisioned.workdir;
|
|
2512
2549
|
active.job.container = provisioned.state;
|
|
2513
2550
|
active.job.environment = provisioned.environment;
|
|
2551
|
+
active.job.disk = provisioned.disk;
|
|
2514
2552
|
installCommitHooks(active.job, log, tag);
|
|
2515
2553
|
const hooksDelivered = await deliverContainerHooks(runtimeOf(state), provisioned.state, dirPath);
|
|
2516
2554
|
if (!hooksDelivered.ok) {
|
|
@@ -2522,6 +2560,8 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2522
2560
|
config: claimCalls(state.config, active.job),
|
|
2523
2561
|
...active.job.organizationId === void 0 ? {} : { organizationId: active.job.organizationId, claimId: active.job.claimId },
|
|
2524
2562
|
runtime: runtimeOf(state),
|
|
2563
|
+
queue,
|
|
2564
|
+
workItemId: item.id,
|
|
2525
2565
|
item,
|
|
2526
2566
|
itemKey,
|
|
2527
2567
|
tokens,
|
|
@@ -2552,6 +2592,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2552
2592
|
workdir = provisioned.workdir;
|
|
2553
2593
|
active.job.microvm = provisioned.state;
|
|
2554
2594
|
active.job.environment = provisioned.environment;
|
|
2595
|
+
active.job.disk = provisioned.disk;
|
|
2555
2596
|
installCommitHooks(active.job, log, tag);
|
|
2556
2597
|
const identity2 = active.job.commitIdentity;
|
|
2557
2598
|
if (identity2?.hooksPath !== void 0) {
|
|
@@ -3545,7 +3586,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3545
3586
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3546
3587
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
3547
3588
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
3548
|
-
return (await import('./check-
|
|
3589
|
+
return (await import('./check-WODTIKPR.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3549
3590
|
},
|
|
3550
3591
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3551
3592
|
log
|
|
@@ -1,7 +1,7 @@
|
|
|
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-I6GHP6U7.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
6
|
import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-NFZMENCY.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
5
|
-
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-
|
|
6
|
-
import { builderDiskPinned } from './chunk-
|
|
3
|
+
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-YPVJ46Y3.js';
|
|
4
|
+
import { parseSize } from './chunk-ZPFBNCXW.js';
|
|
5
|
+
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-P7W7SXX7.js';
|
|
6
|
+
import { builderDiskPinned } from './chunk-5QMSZFA2.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
|
|
9
9
|
import { hostname } from 'os';
|
|
@@ -144,10 +144,13 @@ function keepsHostBuilder(config, builderDiskIsPinned) {
|
|
|
144
144
|
}
|
|
145
145
|
var BUILD_KEYS = ["memory", "cpus", "pids", "disk", "setupMinutes", "cacheDisk", "variables", "destinations", "allowHosts", "imageBuild", "egress"];
|
|
146
146
|
var EGRESS_KEYS = ["connectionsPerSecond", "connectionBurst", "openConnections", "sendBytesPerSecond", "flagHosts"];
|
|
147
|
-
var HOUSEKEEPING_KEYS = ["jobsKeepDays", "buildCacheMax", "minFreeDisk", "savedStateMax"];
|
|
147
|
+
var HOUSEKEEPING_KEYS = ["jobsKeepDays", "buildCacheMax", "minFreeDisk", "savedStateMax", "workspaceMax", "workspaceOrgMax", "workspaceKeepDays"];
|
|
148
148
|
var DEFAULT_JOBS_KEEP_DAYS = 30;
|
|
149
149
|
var DEFAULT_BUILD_CACHE_MAX = "20g";
|
|
150
150
|
var DEFAULT_SAVED_STATE_MAX = "20g";
|
|
151
|
+
var DEFAULT_WORKSPACE_MAX = "40g";
|
|
152
|
+
var DEFAULT_WORKSPACE_ORG_MAX = "20g";
|
|
153
|
+
var DEFAULT_WORKSPACE_KEEP_DAYS = 7;
|
|
151
154
|
var DEFAULT_SAVED_STATE_MAX_BYTES = 20 * 1024 ** 3;
|
|
152
155
|
var VARIABLE_NAME = /^[A-Za-z_][A-Za-z0-9_]{0,254}$/;
|
|
153
156
|
var MAX_VARIABLES = 100;
|
|
@@ -460,10 +463,22 @@ function resolveHousekeeping(configPath, block, buildDisk) {
|
|
|
460
463
|
if (bytes === void 0) fail(configPath, "runner.housekeeping.savedStateMax", 'must be a size such as "20g", or "off"');
|
|
461
464
|
savedStateMax = bytes;
|
|
462
465
|
}
|
|
466
|
+
const sizeKey = (key, fallback) => {
|
|
467
|
+
const text = keys[key] ?? fallback;
|
|
468
|
+
const bytes = typeof text === "string" ? wholeBytes(parseSize(text)) : void 0;
|
|
469
|
+
if (bytes === void 0) fail(configPath, `runner.housekeeping.${key}`, `must be a size such as "${fallback}"`);
|
|
470
|
+
return bytes;
|
|
471
|
+
};
|
|
472
|
+
const workspaceMax = sizeKey("workspaceMax", DEFAULT_WORKSPACE_MAX);
|
|
473
|
+
const workspaceOrgMax = sizeKey("workspaceOrgMax", DEFAULT_WORKSPACE_ORG_MAX);
|
|
474
|
+
if (keys.workspaceKeepDays !== void 0 && (!Number.isInteger(keys.workspaceKeepDays) || keys.workspaceKeepDays < 1)) {
|
|
475
|
+
fail(configPath, "runner.housekeeping.workspaceKeepDays", "must be a whole number of at least 1");
|
|
476
|
+
}
|
|
477
|
+
const workspaceKeepDays = keys.workspaceKeepDays ?? DEFAULT_WORKSPACE_KEEP_DAYS;
|
|
463
478
|
const minText = keys.minFreeDisk ?? buildDisk;
|
|
464
479
|
const minFreeDisk = typeof minText === "string" ? wholeBytes(parseSize(minText)) : void 0;
|
|
465
480
|
if (minFreeDisk === void 0) fail(configPath, "runner.housekeeping.minFreeDisk", 'must be a size such as "40g"');
|
|
466
|
-
return { jobsKeepDays: keys.jobsKeepDays ?? DEFAULT_JOBS_KEEP_DAYS, buildCacheMax, minFreeDisk, savedStateMax };
|
|
481
|
+
return { jobsKeepDays: keys.jobsKeepDays ?? DEFAULT_JOBS_KEEP_DAYS, buildCacheMax, minFreeDisk, savedStateMax, workspaceMax, workspaceOrgMax, workspaceKeepDays };
|
|
467
482
|
}
|
|
468
483
|
function resolveChecks(configPath, block) {
|
|
469
484
|
const given = block ?? {};
|
|
@@ -593,4 +608,4 @@ function egressLimitsOf(config) {
|
|
|
593
608
|
return resolveEgress(config.build?.egress, config.managed === true);
|
|
594
609
|
}
|
|
595
610
|
|
|
596
|
-
export { DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_SETUP_MINUTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, EGRESS_SWITCHABLE_KEYS, MAX_ALLOW_HOSTS, RunnerConfigError, allowHostProblem, builtinKind, checkHooks, defaultRunnerConfigPath, egressSummary, emptyEgressCounts, hasRunnerBlock, hostAllowed, imageBuildOf, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, keepsHostBuilder, keyRunnerFactory, loadRunnerConfig, optionalEgress, resolveBuild, resolveHousekeeping, runnerCredentialProblem, runnerDeliversComments, runnerVmOf, systemClock };
|
|
611
|
+
export { DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_SETUP_MINUTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, DEFAULT_WORKSPACE_KEEP_DAYS, EGRESS_SWITCHABLE_KEYS, MAX_ALLOW_HOSTS, RunnerConfigError, allowHostProblem, builtinKind, checkHooks, defaultRunnerConfigPath, egressSummary, emptyEgressCounts, hasRunnerBlock, hostAllowed, imageBuildOf, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, keepsHostBuilder, keyRunnerFactory, loadRunnerConfig, optionalEgress, resolveBuild, resolveHousekeeping, runnerCredentialProblem, runnerDeliversComments, runnerVmOf, systemClock };
|
|
@@ -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-XCXBR74S.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-IJC4JL6B.js';
|
|
5
|
+
import { RunnerAlreadyRunningError, readPidFile } from './chunk-VK4MMRYC.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
7
|
-
import { keyRunnerFactory } from './chunk-
|
|
8
|
-
import { isSignatureRefusal, postJson } from './chunk-
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
-
import { pidFilePath } from './chunk-
|
|
7
|
+
import { keyRunnerFactory } from './chunk-NJMJHUJL.js';
|
|
8
|
+
import { isSignatureRefusal, postJson } from './chunk-QU4FBCRH.js';
|
|
9
|
+
import { signerFor } from './chunk-I6GHP6U7.js';
|
|
10
|
+
import { pidFilePath } from './chunk-2QXA7T6F.js';
|
|
11
11
|
import { readFileSync } from 'fs';
|
|
12
12
|
|
|
13
13
|
createRequire(import.meta.url);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
|
|
4
4
|
import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
|
|
5
|
-
import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-
|
|
5
|
+
import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-TOP4K2T6.js';
|
|
6
6
|
import { execFileSync } from 'child_process';
|
|
7
7
|
import { lstatSync, existsSync, unlinkSync, readdirSync, rmdirSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
8
8
|
import { join, dirname, isAbsolute } from 'path';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, strippedVariables, builtInEnvironment, managedAgentCredential, agentCredential, destinationPort } from './chunk-
|
|
4
|
-
import { defaultAgents } from './chunk-
|
|
5
|
-
import { PROVIDERS } from './chunk-
|
|
3
|
+
import { builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, strippedVariables, builtInEnvironment, managedAgentCredential, agentCredential, destinationPort } from './chunk-5QMSZFA2.js';
|
|
4
|
+
import { defaultAgents } from './chunk-TOP4K2T6.js';
|
|
5
|
+
import { PROVIDERS } from './chunk-G3BUOMCF.js';
|
|
6
6
|
import { existsSync, unlinkSync, chmodSync } from 'fs';
|
|
7
7
|
import { request as request$1, createServer } from 'http';
|
|
8
8
|
import { request } from 'https';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import { spoolDir } from './chunk-O3MJAHLI.js';
|
|
3
|
+
import { LiveUploader } from './chunk-ZSHBICCL.js';
|
|
4
|
+
import { spoolDir } from './chunk-LJNFUD3U.js';
|
|
6
5
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
6
|
+
import { sessionFolderIn, legacyAgent } from './chunk-TOP4K2T6.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
|
+
import { CaptureDaemon } from './chunk-M7AIU22N.js';
|
|
8
9
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
9
10
|
import { join } from 'path';
|
|
10
11
|
|
|
@@ -31,14 +32,15 @@ async function startSessionSender(opts = {}) {
|
|
|
31
32
|
debounceMs: opts.debounceMs,
|
|
32
33
|
stderr,
|
|
33
34
|
build: { item: parsed.number, jobDir },
|
|
34
|
-
onUnauthorized: opts.onFatal
|
|
35
|
+
onUnauthorized: opts.onFatal,
|
|
36
|
+
agents: opts.agents
|
|
35
37
|
});
|
|
36
38
|
const onLog = (event) => {
|
|
37
39
|
if (event.type === "changed" && event.file !== void 0) uploader.notify(event.file);
|
|
38
40
|
if (event.type === "error") stderr(`error ${event.file}: ${event.detail}
|
|
39
41
|
`);
|
|
40
42
|
};
|
|
41
|
-
const daemon = new CaptureDaemon({
|
|
43
|
+
const daemon = new CaptureDaemon({ root: opts.root ?? sessionFolderIn(home, legacyAgent(opts.agents).descriptor), watchOnly: true, rescanMs: RESCAN_MS, onLog });
|
|
42
44
|
const pidfile = senderPidfile(home, parsed.number);
|
|
43
45
|
try {
|
|
44
46
|
mkdirSync(spoolDir(home), { recursive: true });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-2QXA7T6F.js';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession } from './chunk-
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
5
|
-
import { workPageUrl } from './chunk-
|
|
6
|
-
import { sanitizeTerminal } from './chunk-
|
|
7
|
-
import { resolveRepoIdentity } from './chunk-6KH3NMIT.js';
|
|
3
|
+
import { detectActiveSession } from './chunk-V6V3NN5G.js';
|
|
4
|
+
import { autoConnect } from './chunk-FB7HGLRK.js';
|
|
5
|
+
import { workPageUrl } from './chunk-D2SEASHI.js';
|
|
6
|
+
import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
|
|
8
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-
|
|
10
|
-
import { signRunnerRequest } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-NAQWMYQ2.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-I6GHP6U7.js';
|
|
11
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
12
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
13
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
12
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-G3BUOMCF.js';
|
|
14
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
+
import { resolveRepoIdentity } from './chunk-M7AIU22N.js';
|
|
15
15
|
|
|
16
16
|
createRequire(import.meta.url);
|
|
17
17
|
|
|
@@ -475,7 +475,7 @@ async function runWorkLinkSession(opts) {
|
|
|
475
475
|
return await linkSession(opts);
|
|
476
476
|
} catch (err) {
|
|
477
477
|
if (opts.logFailures) {
|
|
478
|
-
const { logHookError } = await import('./hook-fast-
|
|
478
|
+
const { logHookError } = await import('./hook-fast-Y4LO3YE7.js');
|
|
479
479
|
const reason = err instanceof Error ? err.message : String(err);
|
|
480
480
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
481
481
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { decodeWrappedCommand } from './chunk-ZHQC43NH.js';
|
|
4
|
-
import { hookCodec } from './chunk-
|
|
4
|
+
import { hookCodec } from './chunk-KG5BQFSO.js';
|
|
5
5
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
6
6
|
import { readFileSync, mkdirSync, appendFileSync, writeFileSync } from 'fs';
|
|
7
7
|
import { spawn } from 'child_process';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { RUNNER_FILE_MODE } from './chunk-
|
|
5
|
-
import { runnerAgents, credentialAgent, credentialForms, orList, credentialShapes, credentialEnvPath, withoutCredentialLines, parseRunnerEnv, forwardedVariables } from './chunk-
|
|
6
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-IJC4JL6B.js';
|
|
4
|
+
import { RUNNER_FILE_MODE } from './chunk-2QXA7T6F.js';
|
|
5
|
+
import { runnerAgents, credentialAgent, credentialForms, orList, credentialShapes, credentialEnvPath, withoutCredentialLines, parseRunnerEnv, forwardedVariables } from './chunk-5QMSZFA2.js';
|
|
6
|
+
import { defaultAgents } from './chunk-TOP4K2T6.js';
|
|
7
7
|
import { existsSync, readFileSync, writeFileSync, renameSync, rmSync } from 'fs';
|
|
8
8
|
import { join, dirname } from 'path';
|
|
9
9
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postJson, getJson } from './chunk-
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { sanitizeTerminal } from './chunk-
|
|
6
|
-
import { resolveRepoIdentity } from './chunk-6KH3NMIT.js';
|
|
3
|
+
import { resolveCredentials, postJson, getJson } from './chunk-QU4FBCRH.js';
|
|
4
|
+
import { detectActiveSession } from './chunk-V6V3NN5G.js';
|
|
5
|
+
import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
|
|
7
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { defaultFetch } from './chunk-
|
|
9
|
-
import { logHookError } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-NAQWMYQ2.js';
|
|
8
|
+
import { logHookError } from './chunk-LJNFUD3U.js';
|
|
10
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
11
|
+
import { resolveRepoIdentity } from './chunk-M7AIU22N.js';
|
|
12
12
|
import { randomUUID } from 'crypto';
|
|
13
13
|
|
|
14
14
|
createRequire(import.meta.url);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { keyRunnerFactory, RunnerConfigError } from './chunk-
|
|
4
|
-
import { orgHomeDir } from './chunk-
|
|
3
|
+
import { keyRunnerFactory, RunnerConfigError } from './chunk-NJMJHUJL.js';
|
|
4
|
+
import { orgHomeDir } from './chunk-2QXA7T6F.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readSettingsText, SettingsParseError, cliForInstall } from './chunk-ZHQC43NH.js';
|
|
4
|
-
import { legacyAgent, defaultAgents, HookTextError } from './chunk-
|
|
4
|
+
import { legacyAgent, defaultAgents, HookTextError } from './chunk-TOP4K2T6.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|