@outerlayer/cli 0.36.0-next.20261102135508 → 0.36.0-next.20261102195652
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-Q3HDN23U.js → agent-setup-5UWZZMZM.js} +6 -6
- package/dist/{agent-subcommand-Z6SOLWZW.js → agent-subcommand-4TEUJJNL.js} +1 -1
- package/dist/{build-KYXFZQ33.js → build-3CEFKWGY.js} +5 -5
- package/dist/{build-disk-W6AL5WHI.js → build-disk-DLW3WKC5.js} +4 -4
- package/dist/build-info.json +1 -1
- package/dist/{builder-IMNOEYV7.js → builder-ALMQ5AWP.js} +3 -3
- package/dist/{caller-NLRE272L.js → caller-XNBGW4SP.js} +6 -6
- package/dist/{check-WWX32IGY.js → check-AEDFTYH6.js} +32 -32
- package/dist/{chunk-PMA67TIN.js → chunk-2XN34EKQ.js} +3 -3
- package/dist/{chunk-IKFAJTLZ.js → chunk-42DBDDHP.js} +1 -1
- package/dist/{chunk-FTP7SE6Y.js → chunk-4UUKUOS7.js} +3 -3
- package/dist/{chunk-KRCU66AM.js → chunk-5XX75FJ6.js} +5 -5
- package/dist/{chunk-DG3M5DZU.js → chunk-6QSIK5VA.js} +1 -1
- package/dist/{chunk-3YEPLVNW.js → chunk-6Z7R24XA.js} +5 -5
- package/dist/{chunk-URHS76GV.js → chunk-73E33ZA2.js} +2 -2
- package/dist/{chunk-3UFX6KH2.js → chunk-7UGMB5VS.js} +4 -4
- package/dist/{chunk-VAYVTUU4.js → chunk-7XTLS5PG.js} +1 -1
- package/dist/{chunk-GFZ7PELR.js → chunk-A24PDRNU.js} +2 -2
- package/dist/{chunk-QKOJ22OV.js → chunk-A2U7T4ZH.js} +9 -9
- package/dist/{chunk-WACPWYMH.js → chunk-BACWWK3E.js} +20 -5
- package/dist/{chunk-6B3V6EGQ.js → chunk-BN5U4RJU.js} +3 -3
- package/dist/{chunk-K7N6LAPC.js → chunk-CA4OE2QT.js} +2 -2
- package/dist/{chunk-Y4E7IS7H.js → chunk-CI5LFLKH.js} +2 -2
- package/dist/{chunk-B2P72DAE.js → chunk-D74RGORK.js} +1 -1
- package/dist/{chunk-ENBOAE2W.js → chunk-DL2RYNXQ.js} +64 -23
- package/dist/{chunk-XEWG4AB2.js → chunk-F36EKGMP.js} +697 -234
- package/dist/{chunk-YJQ7YA7J.js → chunk-FIUUESD4.js} +2 -2
- package/dist/{chunk-YMVRCSKD.js → chunk-FWKQHKCR.js} +2 -2
- package/dist/{chunk-DTCTXDJP.js → chunk-G35Y4LN5.js} +4 -1
- package/dist/{chunk-ENMX3VQ7.js → chunk-GBGJGYEE.js} +2 -2
- package/dist/{chunk-K2G3VB7W.js → chunk-H23JP73I.js} +1 -1
- package/dist/{chunk-FRMAQ3C4.js → chunk-HRBSEXYC.js} +1 -1
- package/dist/{chunk-RF4JHGGB.js → chunk-HZVS4MGL.js} +3 -3
- package/dist/{chunk-AQE6E54X.js → chunk-IX6CFXSW.js} +5 -5
- package/dist/{chunk-CDG475ZP.js → chunk-J6HWRVN2.js} +4 -3
- package/dist/{chunk-E3TP4QTM.js → chunk-J6VC3JCG.js} +1 -1
- package/dist/{chunk-BUYXEU7J.js → chunk-JBPVEXHQ.js} +6 -6
- package/dist/{chunk-O3MJAHLI.js → chunk-JVHWWJ2J.js} +1 -1
- package/dist/{chunk-TJIFYV2Z.js → chunk-KN3TDNF7.js} +3 -3
- package/dist/{chunk-NXQK2I3G.js → chunk-LZS5EYZ6.js} +1 -1
- package/dist/{chunk-4XXBV37R.js → chunk-M4HH2F64.js} +3 -3
- package/dist/{chunk-ULBYRPAP.js → chunk-ML5YKV3B.js} +1 -1
- package/dist/{chunk-YYQ5NOT5.js → chunk-NMBXA3AT.js} +3 -3
- package/dist/{chunk-L2BA2HXM.js → chunk-PN4LWT5F.js} +1 -1
- package/dist/{chunk-CSBW4LGL.js → chunk-PSQEGJPN.js} +3 -3
- package/dist/{chunk-CSVJGW3I.js → chunk-SBZ545DH.js} +2 -2
- package/dist/{chunk-VUH7KKVD.js → chunk-T2KBHW6P.js} +2 -2
- package/dist/{chunk-6HDXRDC5.js → chunk-UCMIS74X.js} +1 -1
- package/dist/{chunk-ATKCHMFD.js → chunk-VKKKVYA4.js} +1 -1
- package/dist/{chunk-TKY3SDXH.js → chunk-Y2P3HWUG.js} +2 -2
- package/dist/{chunk-D5I5SSPU.js → chunk-Y5S2G2EZ.js} +7 -7
- package/dist/{chunk-SJJXDU2J.js → chunk-Z3MB7SV7.js} +1 -1
- package/dist/{chunk-D4VGJQY7.js → chunk-Z66CKWOM.js} +1 -1
- package/dist/{claude-launcher-LGKJZH33.js → claude-launcher-NJGZUB3P.js} +1 -1
- package/dist/{cli-Q5L64EEG.js → cli-POIDBCZA.js} +108 -108
- package/dist/{command-CGEFJZNC.js → command-ZLBFX553.js} +26 -26
- package/dist/{config-T22KVOOT.js → config-GKSSGMXD.js} +5 -5
- package/dist/{connect-cmd-RUBP466E.js → connect-cmd-6YKNFJJR.js} +4 -4
- package/dist/{container-start-JRF3SBUA.js → container-start-55QELXPJ.js} +24 -24
- package/dist/{context-show-cmd-4UXO5WQJ.js → context-show-cmd-FGMRJ7IG.js} +5 -5
- package/dist/{control-plane-launch-AAH4YH56.js → control-plane-launch-DGPA3ONU.js} +4 -4
- package/dist/{demo-voice-cmd-GEPX7GIG.js → demo-voice-cmd-BPTSL7JA.js} +10 -10
- package/dist/{docker-5VWK335X.js → docker-GFEEV42Z.js} +3 -3
- package/dist/{doctor-EQM3JRZI.js → doctor-ZOQSI3HL.js} +26 -26
- package/dist/{emit-artifact-cmd-TA3MPHLU.js → emit-artifact-cmd-3LDJ4VRW.js} +9 -9
- package/dist/{emit-criteria-cmd-NMTUV2KM.js → emit-criteria-cmd-V3ERJXHB.js} +6 -6
- package/dist/{emit-demo-cmd-Y2Y6LEL7.js → emit-demo-cmd-5KL64L74.js} +10 -10
- package/dist/{emit-finding-cmd-VECM64UR.js → emit-finding-cmd-R4OEWQQR.js} +6 -6
- package/dist/{emit-result-cmd-2ERWFDUN.js → emit-result-cmd-5YNQDTYG.js} +8 -8
- package/dist/{emit-step-cmd-V2ET66N4.js → emit-step-cmd-Z5WC7UEQ.js} +6 -6
- package/dist/{find-unit-CNAPU7XQ.js → find-unit-OI56YEX5.js} +7 -7
- package/dist/{findings-cmd-QJPPF6BY.js → findings-cmd-J5ZCY2AT.js} +6 -6
- package/dist/{fleet-readiness-DKAPHAZN.js → fleet-readiness-DKCFOUYP.js} +4 -4
- package/dist/{governing-source-7PZ6DAJU.js → governing-source-7PD4ISRN.js} +8 -8
- package/dist/{hook-fast-VXROB4KF.js → hook-fast-ICT2PRQX.js} +1 -1
- package/dist/{host-checks-WAPO5X7X.js → host-checks-GADKYJFN.js} +22 -22
- package/dist/{pending-VOFQRXP4.js → host-key-FI6KWMJC.js} +2 -2
- package/dist/{image-tag-PBWQBATH.js → image-tag-RX4WTHJH.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/{init-Y2URPVVY.js → init-BZXVQO22.js} +22 -22
- package/dist/{init-EK3PUU6W.js → init-EKF4ILHF.js} +22 -22
- package/dist/{init-cmd-XNANUDIW.js → init-cmd-3LWFEKHD.js} +9 -9
- package/dist/{init-update-EFCTKF6D.js → init-update-THEHC25C.js} +7 -7
- package/dist/{install-cmd-RHFUZFV4.js → install-cmd-WBVTTE5Z.js} +4 -4
- package/dist/{logs-E7MGQINH.js → logs-7YIXBO2K.js} +1 -1
- package/dist/{loop-L6TX6OR4.js → loop-RUQQ4L5A.js} +31 -31
- package/dist/{machine-VJKAY2GX.js → machine-IGHZW3IO.js} +22 -22
- package/dist/{mcp-serve-cmd-XXERT673.js → mcp-serve-cmd-HLS24XCG.js} +3 -3
- package/dist/{paths-F2ZR2EKC.js → paths-2YTU4QIO.js} +1 -1
- package/dist/{host-key-HLLV37NV.js → pending-S2SKIBCB.js} +2 -2
- package/dist/{pidfile-7M7O2M7T.js → pidfile-SPBTMTCJ.js} +2 -2
- package/dist/{record-YCJ6DZOY.js → record-3KXRFK5C.js} +2 -2
- package/dist/{runner-env-YW55JVU7.js → runner-env-HOWRS6I6.js} +7 -7
- package/dist/{runner-identity-Y5ZFCC7V.js → runner-identity-32MTGA2F.js} +3 -3
- package/dist/{runner-key-R47C6374.js → runner-key-FXYWHMMO.js} +22 -22
- package/dist/{session-sender-UPACLRGG.js → session-sender-B6INUY7G.js} +9 -9
- package/dist/{spec-cmd-7QRE2SZK.js → spec-cmd-ZEZFMC4A.js} +7 -7
- package/dist/{state-VAHBIMS5.js → state-DVKFUWB3.js} +2 -2
- package/dist/{status-BQEYEG2V.js → status-VPFIIHOZ.js} +22 -22
- package/dist/{sync-cmd-NBLYEPQG.js → sync-cmd-W756BQWX.js} +8 -8
- package/dist/{update-steps-VGKNGWTZ.js → update-steps-D6L6AG6E.js} +23 -23
- package/dist/{watch-IHV4V3HZ.js → watch-6EDRJZMG.js} +8 -8
- package/dist/{work-claim-cmd-WGTSU5IT.js → work-claim-cmd-7HR4AVCT.js} +12 -12
- package/dist/{work-cmd-HKOJU5FJ.js → work-cmd-ZP4UIHBT.js} +6 -6
- package/dist/{work-comment-cmd-H3JCWQ2J.js → work-comment-cmd-CYDOEMW3.js} +8 -8
- package/dist/{work-demo-cmd-J4AZAIVP.js → work-demo-cmd-3A7Z3VVS.js} +6 -6
- package/dist/{work-logs-cmd-UOO4JVLG.js → work-logs-cmd-NDPSRSCM.js} +6 -6
- package/dist/{work-open-pr-cmd-QFRDDBAM.js → work-open-pr-cmd-Z5B3ERAU.js} +7 -7
- package/dist/{work-pr-cmd-3Q2D5RQT.js → work-pr-cmd-ZVPGCDWD.js} +6 -6
- package/dist/{work-proofs-cmd-7Y3HGT7C.js → work-proofs-cmd-VAXJ5UBF.js} +7 -7
- package/dist/{work-proofs-record-QPUM6DY4.js → work-proofs-record-K467JH24.js} +13 -13
- package/dist/{work-stop-cmd-SD2ZRMSY.js → work-stop-cmd-J45Q2QT7.js} +6 -6
- package/package.json +3 -3
|
@@ -1,31 +1,31 @@
|
|
|
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-J6VC3JCG.js';
|
|
4
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-H23JP73I.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-Y5S2G2EZ.js';
|
|
8
|
+
import { renderUpdateSteps } from './chunk-NMBXA3AT.js';
|
|
9
|
+
import { RUNNER_PROTOCOL } from './chunk-PN4LWT5F.js';
|
|
10
|
+
import { writeFleetState } from './chunk-VKKKVYA4.js';
|
|
11
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-JBPVEXHQ.js';
|
|
12
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-6QSIK5VA.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-F36EKGMP.js';
|
|
14
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-PSQEGJPN.js';
|
|
15
|
+
import { RepoFilter } from './chunk-7UGMB5VS.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-ML5YKV3B.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-SBZ545DH.js';
|
|
20
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-Z66CKWOM.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-
|
|
22
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-6Z7R24XA.js';
|
|
23
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-BACWWK3E.js';
|
|
24
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-CI5LFLKH.js';
|
|
25
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-J6HWRVN2.js';
|
|
26
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-IX6CFXSW.js';
|
|
27
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-42DBDDHP.js';
|
|
28
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-G35Y4LN5.js';
|
|
29
29
|
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT } from './chunk-CXJC3JLN.js';
|
|
30
30
|
import { COMMAND_LOST_REASON, takeAgentCredentials, runnerAgents, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-DTQPDMHG.js';
|
|
31
31
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
@@ -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-ZP4UIHBT.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-AEDFTYH6.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3549
3590
|
},
|
|
3550
3591
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3551
3592
|
log
|