@outerlayer/cli 0.40.0-next.20261117022943 → 0.40.0-next.20261117031847
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-5UMGRTAY.js → agent-setup-E3NJKG6H.js} +7 -7
- package/dist/{agent-subcommand-JGANAEB4.js → agent-subcommand-SNGOSV4D.js} +1 -1
- package/dist/{bridge-YHCQBKZC.js → bridge-C5FNHUYF.js} +2 -2
- package/dist/{build-SSIBPHPA.js → build-YFKCYJR6.js} +7 -7
- package/dist/{build-disk-KI2JOKAK.js → build-disk-ZRWIYYVO.js} +5 -5
- package/dist/build-info.json +1 -1
- package/dist/{builder-I562HT2D.js → builder-334EUQCE.js} +4 -4
- package/dist/{caller-VTVQPOGC.js → caller-6PMFDU4O.js} +7 -7
- package/dist/{check-YDBHBTOS.js → check-LGB3BWZ7.js} +39 -42
- package/dist/{chunk-DMWGWD26.js → chunk-2F3RZT5L.js} +3 -3
- package/dist/{chunk-C6EPHJIV.js → chunk-2MSLNM5V.js} +1 -1
- package/dist/{chunk-DQV2XTBD.js → chunk-2VVSAKM3.js} +54 -172
- package/dist/{chunk-JE23PLDE.js → chunk-3IHZYNZW.js} +1 -1
- package/dist/{chunk-6367NG5G.js → chunk-3TQVQKQ2.js} +5 -5
- package/dist/{chunk-BB73O6OW.js → chunk-4WRECUUH.js} +3 -3
- package/dist/{chunk-UMFSHU72.js → chunk-5LDYQLE3.js} +2 -2
- package/dist/{chunk-XAOZFBXK.js → chunk-5SAJ23BY.js} +1 -1
- package/dist/{chunk-JSN2DMPB.js → chunk-62EOPMMA.js} +1 -1
- package/dist/{chunk-XDWJOYC4.js → chunk-6JRDP6O4.js} +2 -2
- package/dist/{chunk-DLYCHCKQ.js → chunk-6MF44FPF.js} +1 -1
- package/dist/{chunk-PWHKJ24U.js → chunk-A72OH6K3.js} +7 -7
- package/dist/{chunk-DUQIP32K.js → chunk-AAOM7S3Z.js} +2 -2
- package/dist/{chunk-P2I6YVJV.js → chunk-CGYKQEPN.js} +4 -4
- package/dist/{chunk-AL6CJD2X.js → chunk-CJCGE7TW.js} +6 -6
- package/dist/{chunk-YI2HDVUL.js → chunk-CVSREZEZ.js} +2 -2
- package/dist/{chunk-IOUBTUS2.js → chunk-DOJGTDZU.js} +5 -5
- package/dist/{chunk-3WMULGB4.js → chunk-DQQID2EX.js} +2 -2
- package/dist/{chunk-QI6YUQWR.js → chunk-DRF45IQZ.js} +1 -1
- package/dist/{chunk-D5JM2VPO.js → chunk-EO7KUUKZ.js} +2 -2
- package/dist/{chunk-UELSHBQH.js → chunk-ERFVB3TJ.js} +2 -2
- package/dist/{chunk-3YMOSZRN.js → chunk-F2I2GQMF.js} +1 -1
- package/dist/{chunk-7H5JQFWQ.js → chunk-F7EYCXY4.js} +2 -2
- package/dist/{chunk-732WJDYG.js → chunk-FPUFOQEH.js} +5 -5
- package/dist/{chunk-6DO34552.js → chunk-GZLNKW2J.js} +1 -1
- package/dist/{chunk-Q6MCI3BQ.js → chunk-IQTMXXKU.js} +5 -5
- package/dist/{chunk-IEDCYMPH.js → chunk-IWPU2TDY.js} +2 -2
- package/dist/{chunk-DG7525WL.js → chunk-J6WQ6POX.js} +1 -1
- package/dist/{chunk-77JLN6GC.js → chunk-JDAH6YHU.js} +2 -3
- package/dist/{chunk-2EJED3QQ.js → chunk-JGSIVQVE.js} +2 -2
- package/dist/{chunk-4FUTEM37.js → chunk-KDKMVWHJ.js} +1 -1
- package/dist/{chunk-PEN7Y4PB.js → chunk-M7RI6IMR.js} +3 -3
- package/dist/{chunk-MCJRTOAL.js → chunk-NLOUOUZV.js} +1 -1
- package/dist/{chunk-BCBZHDMW.js → chunk-NO3JPGJW.js} +1 -1
- package/dist/{chunk-TL5HRSMD.js → chunk-NWYQ7PKS.js} +18 -76
- package/dist/{chunk-NE5PE3Q7.js → chunk-OCXVMUXA.js} +3 -3
- package/dist/{chunk-UQWBHNTZ.js → chunk-OIAWDKSR.js} +2 -2
- package/dist/{chunk-PC2FA62W.js → chunk-OUVDFJ3T.js} +3 -3
- package/dist/{chunk-BBJC4R6E.js → chunk-OVF475U5.js} +1 -1
- package/dist/{chunk-JBGASRRE.js → chunk-PIJWOPSG.js} +3 -3
- package/dist/{chunk-VJCILU3C.js → chunk-QAZOUTEM.js} +1 -1
- package/dist/{chunk-UAOLY4EP.js → chunk-QIO2NIX2.js} +1 -1
- package/dist/{chunk-J4F4V3G2.js → chunk-QVQWIKDP.js} +1 -1
- package/dist/{chunk-YSHMGQRD.js → chunk-R4IC7BKJ.js} +3 -3
- package/dist/{chunk-FKC5D6CA.js → chunk-ROMZCAG7.js} +1 -1
- package/dist/{chunk-DSUD4K5N.js → chunk-T3NBGNP5.js} +41 -94
- package/dist/{chunk-UXAB2OEM.js → chunk-WNQMNFJG.js} +2 -2
- package/dist/{chunk-CFIYOLCT.js → chunk-WT74ZSRC.js} +3 -3
- package/dist/{chunk-TWUEZPWP.js → chunk-WYD6XWET.js} +2 -2
- package/dist/{chunk-SCI6U7CV.js → chunk-WZRXXOWB.js} +11 -11
- package/dist/{chunk-NB2BDENG.js → chunk-Z3IDEUCC.js} +3 -3
- package/dist/{chunk-45JV3EMA.js → chunk-ZTZFWQBG.js} +5 -7
- package/dist/{claude-launcher-TWKHBR6F.js → claude-launcher-3H5XSXVA.js} +1 -1
- package/dist/{cli-SSHQSIPV.js → cli-FRR5Q3IX.js} +136 -136
- package/dist/{command-W6BEIPAJ.js → command-Y5FG3FWC.js} +33 -33
- package/dist/{config-HYSU7MD3.js → config-V6VQOSHM.js} +6 -6
- package/dist/{connect-cmd-O4ATJTQV.js → connect-cmd-AU2IGAYG.js} +5 -5
- package/dist/{container-start-4KRTW3QU.js → container-start-Z6OCZPUC.js} +30 -30
- package/dist/{context-show-cmd-D3GXL65K.js → context-show-cmd-Z6YW2XPG.js} +6 -6
- package/dist/{control-plane-launch-KVROM6BY.js → control-plane-launch-CNGKWYLK.js} +5 -5
- package/dist/{demo-record-cmd-UMHWHDZ4.js → demo-record-cmd-VEMSRUVR.js} +2 -2
- package/dist/{demo-voice-cmd-GBI52Y73.js → demo-voice-cmd-ABNZ6H7V.js} +11 -11
- package/dist/{docker-B76MDGCW.js → docker-UHQ4LAJE.js} +4 -4
- package/dist/{doctor-QV3BJKRZ.js → doctor-B7XTBO53.js} +42 -47
- package/dist/{emit-artifact-cmd-X4AKVBS2.js → emit-artifact-cmd-WLBQOFGX.js} +10 -10
- package/dist/{emit-criteria-cmd-UKZBMIK6.js → emit-criteria-cmd-S533NEY4.js} +7 -7
- package/dist/{emit-demo-cmd-QC56Y6P2.js → emit-demo-cmd-K4JY5PDP.js} +11 -11
- package/dist/{emit-finding-cmd-DL2Y7BEV.js → emit-finding-cmd-C7RZGGVJ.js} +7 -7
- package/dist/{emit-result-cmd-VPWAJBN6.js → emit-result-cmd-5NLUDBXM.js} +9 -9
- package/dist/{emit-step-cmd-REP4IS3F.js → emit-step-cmd-Q7VIXGYQ.js} +7 -7
- package/dist/{exec-client-KBOKVUU5.js → exec-client-RR6F42IB.js} +3 -3
- package/dist/{chunk-6TF4QU7M.js → find-unit-WRHK3H5X.js} +18 -1
- package/dist/{findings-cmd-BXAXOQB6.js → findings-cmd-74MN2Q7K.js} +7 -7
- package/dist/{fleet-readiness-EDJDDAEB.js → fleet-readiness-R6B3PYU7.js} +5 -5
- package/dist/{governing-source-AG7KDIIG.js → governing-source-M2HYH7ZN.js} +9 -9
- package/dist/{guest-init-DUOJUQFY.js → guest-init-QEWU2H7W.js} +4 -4
- package/dist/{hook-fast-ZVZWP7OQ.js → hook-fast-GPW7D4MD.js} +1 -1
- package/dist/{host-checks-AS2C5HR2.js → host-checks-PKOVCAGU.js} +28 -28
- package/dist/{pending-Y62PXWTU.js → host-key-HICYSAZ5.js} +3 -3
- package/dist/{image-tag-BTK5342G.js → image-tag-LKOD5GRQ.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-H2GOMKCC.js → init-DFC5GUE5.js} +28 -28
- package/dist/{init-OZ4JNNOI.js → init-UO4SOY57.js} +28 -28
- package/dist/{init-agent-GNX5OIZX.js → init-agent-JVMIDIXN.js} +28 -28
- package/dist/{init-cmd-CM7UKGRG.js → init-cmd-WTJ7KOQ5.js} +11 -11
- package/dist/{init-update-ZJSTM46T.js → init-update-BRUFAWCA.js} +8 -8
- package/dist/{install-cmd-U4PP4YQE.js → install-cmd-2H4QK5O7.js} +9 -9
- package/dist/{launch-agent-BIAPDAVB.js → launch-agent-HPWRSGXZ.js} +9 -9
- package/dist/{logs-L5GX5BWF.js → logs-WNZZNFA3.js} +2 -2
- package/dist/{loop-3F3PNYOH.js → loop-WO37TJ5C.js} +36 -36
- package/dist/{machine-CCB2PQIM.js → machine-ZXCUPCDS.js} +28 -28
- package/dist/{mcp-serve-cmd-3B3KWYHN.js → mcp-serve-cmd-4D4P6IA7.js} +4 -4
- package/dist/{paths-26SZBIOA.js → paths-I7LDWR3Q.js} +2 -2
- package/dist/{host-key-MNYYPKBU.js → pending-L65HTOAV.js} +3 -3
- package/dist/{pidfile-22HCQHLJ.js → pidfile-SNTRLZ2Z.js} +3 -3
- package/dist/{record-HFUJLNOV.js → record-QJPGOWYX.js} +3 -3
- package/dist/{run-cmd-G4LA2YZR.js → run-cmd-YY34QRDU.js} +7 -7
- package/dist/{runner-env-RQ3SKLKL.js → runner-env-ACRSRRBW.js} +8 -8
- package/dist/{runner-identity-V4IUTSCJ.js → runner-identity-2374JAQF.js} +4 -4
- package/dist/{runner-key-FQDBMYII.js → runner-key-JRZ5N4IM.js} +28 -28
- package/dist/{session-sender-AAQXJLNE.js → session-sender-CUM4SRT7.js} +10 -10
- package/dist/{setup-cmd-4CKPSEJD.js → setup-cmd-5ICCOGTJ.js} +6 -6
- package/dist/{setup-wiring-INA66DBJ.js → setup-wiring-CEGNPVS5.js} +32 -32
- package/dist/{spec-cmd-V2FPAZJ7.js → spec-cmd-6ACWBET6.js} +8 -8
- package/dist/{state-PSFO26DS.js → state-TUO74X72.js} +3 -3
- package/dist/{status-MC2SJQ57.js → status-H677WBLM.js} +28 -28
- package/dist/{sync-cmd-2TLRGEXR.js → sync-cmd-5UMBZRKI.js} +9 -9
- package/dist/{update-steps-JZE3OGKB.js → update-steps-XCDL66FA.js} +29 -29
- package/dist/{watch-GQAIYCFW.js → watch-34LOYMEQ.js} +9 -9
- package/dist/{work-claim-cmd-SI3UTDLB.js → work-claim-cmd-NRHTDJC3.js} +12 -12
- package/dist/{work-cmd-LA5ZBMBQ.js → work-cmd-NBYW3LBP.js} +7 -7
- package/dist/{work-comment-cmd-NP6USSKX.js → work-comment-cmd-J4CG33NA.js} +9 -9
- package/dist/{work-demo-cmd-KZDTXCYM.js → work-demo-cmd-APJDOTHV.js} +7 -7
- package/dist/{work-logs-cmd-3BX5MK2E.js → work-logs-cmd-FL7DOHUU.js} +7 -7
- package/dist/{work-mock-cmd-IT3IKALB.js → work-mock-cmd-4MAYOAQS.js} +7 -7
- package/dist/{work-needs-attention-cmd-BDIFC7I4.js → work-needs-attention-cmd-LG5MFGPW.js} +7 -7
- package/dist/{work-no-change-cmd-A65QOBQ2.js → work-no-change-cmd-QATDFQ46.js} +7 -7
- package/dist/{work-open-pr-cmd-CGSCDYHI.js → work-open-pr-cmd-FV43THW5.js} +8 -8
- package/dist/{work-pr-cmd-DZKJLYLF.js → work-pr-cmd-53VAE7HD.js} +7 -7
- package/dist/{work-proofs-cmd-OJXWHUMP.js → work-proofs-cmd-4SF7WZC3.js} +8 -8
- package/dist/{work-proofs-record-J6WOOW3R.js → work-proofs-record-IGKVQOLA.js} +14 -14
- package/dist/{work-stop-cmd-RJESQDZN.js → work-stop-cmd-V5SPVTY4.js} +7 -7
- package/package.json +1 -1
- package/dist/find-unit-5PUEPP5J.js +0 -24
|
@@ -1,73 +1,52 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
3
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-ROMZCAG7.js';
|
|
4
4
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
5
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
6
|
-
import { renderUpdateSteps } from './chunk-
|
|
5
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-A72OH6K3.js';
|
|
6
|
+
import { renderUpdateSteps } from './chunk-Z3IDEUCC.js';
|
|
7
7
|
import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
|
|
8
|
-
import { writeFleetState } from './chunk-
|
|
9
|
-
import { writePendingUpdate } from './chunk-
|
|
10
|
-
import { fleetConfigProblem, realBlockedProbes,
|
|
11
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
12
|
-
import { leaseTimeLeftMs, createContainerRuntime, heldSandboxClaimsOf, unfinishedJobs, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks,
|
|
8
|
+
import { writeFleetState } from './chunk-NO3JPGJW.js';
|
|
9
|
+
import { writePendingUpdate } from './chunk-5SAJ23BY.js';
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, checkBlockedWithSlots, askFleetMachine } from './chunk-NWYQ7PKS.js';
|
|
11
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-QIO2NIX2.js';
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, heldSandboxClaimsOf, unfinishedJobs, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, withJobTimeLimit, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, SandboxContainerStoppedError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, jobTimeLimitMinutes, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-T3NBGNP5.js';
|
|
13
13
|
import { RUNNER_PROTOCOL } from './chunk-HQPB4ZMS.js';
|
|
14
14
|
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-MJGBRYDH.js';
|
|
15
|
-
import {
|
|
16
|
-
import { RepoFilter } from './chunk-732WJDYG.js';
|
|
15
|
+
import { RepoFilter } from './chunk-FPUFOQEH.js';
|
|
17
16
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
18
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
17
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-6MF44FPF.js';
|
|
19
18
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
20
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-
|
|
21
|
-
import { fetchCommit, readBranchHead, diffBetween } from './chunk-
|
|
22
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
19
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-WYD6XWET.js';
|
|
20
|
+
import { fetchCommit, readBranchHead, diffBetween } from './chunk-3TQVQKQ2.js';
|
|
21
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-QAZOUTEM.js';
|
|
23
22
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
24
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
25
|
-
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-
|
|
26
|
-
import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-
|
|
27
|
-
import {
|
|
28
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-
|
|
29
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
30
|
-
import { jobsDir, RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, pidFilePath, storeScopes
|
|
31
|
-
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-
|
|
23
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-CJCGE7TW.js';
|
|
24
|
+
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-DOJGTDZU.js';
|
|
25
|
+
import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-ZTZFWQBG.js';
|
|
26
|
+
import { formatBytes, freeBytes } from './chunk-5LDYQLE3.js';
|
|
27
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-R4IC7BKJ.js';
|
|
28
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-NLOUOUZV.js';
|
|
29
|
+
import { jobsDir, RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, pidFilePath, storeScopes } from './chunk-3IHZYNZW.js';
|
|
30
|
+
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-JDAH6YHU.js';
|
|
32
31
|
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-QVTGSGQ5.js';
|
|
33
|
-
import { cleanAttachmentName } from './chunk-
|
|
32
|
+
import { cleanAttachmentName } from './chunk-DRF45IQZ.js';
|
|
34
33
|
import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-OF6XMZHO.js';
|
|
35
34
|
import { defaultAgents, resolvePackRoot } from './chunk-CEHT2FCU.js';
|
|
36
35
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
37
36
|
import { CheckItemsSchema, CODE_REVIEW_NAME, CHECK_ITEM_HREF_MAX_LENGTH, CHECK_ITEM_REASON_MAX_LENGTH, UNREVIEWED_FILES_ITEM_ID, problemKind, CODE_REVIEW_PROBLEMS_MAX, REVIEWED_COMMIT_ITEM_ID } from './chunk-MCUI6RHU.js';
|
|
38
|
-
import { mkdirSync, existsSync, writeFileSync, chmodSync, renameSync, statSync, readdirSync, rmSync, readFileSync, lstatSync, closeSync } from 'fs';
|
|
39
|
-
import { join, dirname } from 'path';
|
|
40
37
|
import { randomBytes, createHash } from 'crypto';
|
|
38
|
+
import { mkdirSync, existsSync, writeFileSync, chmodSync, renameSync, statSync, readdirSync, rmSync, readFileSync, lstatSync, closeSync } from 'fs';
|
|
41
39
|
import { totalmem, userInfo, constants } from 'os';
|
|
40
|
+
import { join, dirname } from 'path';
|
|
42
41
|
|
|
43
42
|
createRequire(import.meta.url);
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
|
|
44
|
+
// src/runner/fleet/report.ts
|
|
46
45
|
var BUILD_SIZES = {
|
|
47
46
|
small: { memoryGiB: 16, vcpus: 4, diskGB: 20 },
|
|
48
47
|
large: { memoryGiB: 32, vcpus: 8, diskGB: 30 }
|
|
49
48
|
};
|
|
50
|
-
var UNLIMITED_DISK_GB = 1e9;
|
|
51
49
|
var NONE = { memoryGiB: 0, vcpus: 0, diskGB: 0 };
|
|
52
|
-
function fleetRoom(facts, jobs, held, draining) {
|
|
53
|
-
if (draining || held) return { total: { ...NONE }, free: { ...NONE } };
|
|
54
|
-
const availableBytes = facts.sliceBytes ?? Math.max(0, facts.totalMemoryBytes - RUNNER_RESERVE_BYTES);
|
|
55
|
-
const total = {
|
|
56
|
-
memoryGiB: Math.floor(availableBytes / GIB),
|
|
57
|
-
vcpus: facts.cpus,
|
|
58
|
-
diskGB: facts.freeDiskBytes === void 0 ? UNLIMITED_DISK_GB : Math.floor((facts.freeDiskBytes + facts.heldDiskBytes) / GB)
|
|
59
|
-
};
|
|
60
|
-
const sizes = jobs.map((job) => BUILD_SIZES[job.size ?? "large"]);
|
|
61
|
-
const sum = (key) => sizes.reduce((all, size) => all + size[key], 0);
|
|
62
|
-
return {
|
|
63
|
-
total,
|
|
64
|
-
free: {
|
|
65
|
-
memoryGiB: Math.max(0, total.memoryGiB - sum("memoryGiB")),
|
|
66
|
-
vcpus: Math.max(0, total.vcpus - sum("vcpus")),
|
|
67
|
-
diskGB: Math.max(0, total.diskGB - sum("diskGB"))
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
50
|
function sandboxFleetRoom(concurrency, jobs, held, draining) {
|
|
72
51
|
if (draining || held) return { total: { ...NONE }, free: { ...NONE } };
|
|
73
52
|
const large = BUILD_SIZES.large;
|
|
@@ -80,29 +59,6 @@ function sandboxFleetRoom(concurrency, jobs, held, draining) {
|
|
|
80
59
|
free: { memoryGiB: total.memoryGiB - sum("memoryGiB"), vcpus: total.vcpus - sum("vcpus"), diskGB: total.diskGB - sum("diskGB") }
|
|
81
60
|
};
|
|
82
61
|
}
|
|
83
|
-
var MAX_IMAGES = 500;
|
|
84
|
-
function names(path) {
|
|
85
|
-
try {
|
|
86
|
-
return readdirSync(path);
|
|
87
|
-
} catch {
|
|
88
|
-
return [];
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
function heldImages(configPath) {
|
|
92
|
-
const held = /* @__PURE__ */ new Set();
|
|
93
|
-
for (const scope of storeScopes(configPath)) {
|
|
94
|
-
if (scope === void 0) continue;
|
|
95
|
-
const root = imagesDir(configPath, scope);
|
|
96
|
-
for (const owner of names(root)) {
|
|
97
|
-
if (owner.startsWith("_")) continue;
|
|
98
|
-
for (const name of names(join(root, owner))) {
|
|
99
|
-
const hasRecord = names(join(root, owner, name)).some((entry) => existsSync(join(root, owner, name, entry, "image.json")));
|
|
100
|
-
if (hasRecord) held.add(`${scope}/${owner}/${name}`.toLowerCase());
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
return [...held].sort().slice(0, MAX_IMAGES);
|
|
105
|
-
}
|
|
106
62
|
var MAX_DISKS = 500;
|
|
107
63
|
var WORK_ITEM_UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
108
64
|
function heldItemDisks(configPath) {
|
|
@@ -141,13 +97,9 @@ function record(ports, memory) {
|
|
|
141
97
|
}
|
|
142
98
|
}
|
|
143
99
|
function roomOf(ports, held) {
|
|
144
|
-
|
|
145
|
-
if (isBuiltinSandbox(config.hooks.provision)) return sandboxFleetRoom(config.concurrency, ports.jobs(), held, ports.draining());
|
|
146
|
-
return fleetRoom(ports.facts(), ports.jobs(), held, ports.draining());
|
|
147
|
-
}
|
|
148
|
-
function imagesOf(ports) {
|
|
149
|
-
return isBuiltinSandbox(ports.config().hooks.provision) ? [] : ports.images();
|
|
100
|
+
return sandboxFleetRoom(ports.config().concurrency, ports.jobs(), held, ports.draining());
|
|
150
101
|
}
|
|
102
|
+
var NO_IMAGES = [];
|
|
151
103
|
async function checkFleet(ports, memory) {
|
|
152
104
|
const config = ports.config();
|
|
153
105
|
const at = ports.now().toISOString();
|
|
@@ -266,7 +218,7 @@ async function runFleetTick(ports, memory) {
|
|
|
266
218
|
if (!await checkFleet(ports, memory)) return;
|
|
267
219
|
const held = await ports.held();
|
|
268
220
|
memory.held = held;
|
|
269
|
-
const images =
|
|
221
|
+
const images = [...NO_IMAGES];
|
|
270
222
|
const disks = ports.disks();
|
|
271
223
|
for (let called = 0; called < MAX_CLAIMS_PER_POLL; called++) {
|
|
272
224
|
const room = roomOf(ports, held);
|
|
@@ -307,7 +259,7 @@ async function runFleetKeepalive(ports, memory, minGapMs) {
|
|
|
307
259
|
if (memory.lastAnsweredMs !== void 0 && ports.now().getTime() - memory.lastAnsweredMs < minGapMs) return;
|
|
308
260
|
if (memory.keyDoubted || fleetConfigProblem(ports.config()) !== void 0) return;
|
|
309
261
|
const room = roomOf(ports, memory.held);
|
|
310
|
-
const answer = await callFleetRoute(ports, memory, { total: room.total, free: NO_ROOM },
|
|
262
|
+
const answer = await callFleetRoute(ports, memory, { total: room.total, free: NO_ROOM }, [...NO_IMAGES], ports.disks());
|
|
311
263
|
if (answer === void 0) return;
|
|
312
264
|
memory.last = {
|
|
313
265
|
calledAt: ports.now().toISOString(),
|
|
@@ -1284,8 +1236,8 @@ async function judgeMicroVmAdoption(input) {
|
|
|
1284
1236
|
return probe.unreachable === true ? "unasked" : "unservable";
|
|
1285
1237
|
}
|
|
1286
1238
|
const inherited = runtime.vm.fdStore.inherited();
|
|
1287
|
-
const
|
|
1288
|
-
return
|
|
1239
|
+
const names = state.fdStore ?? [];
|
|
1240
|
+
return names.length > 0 && names.every((name) => inherited.has(name)) ? "adopt" : "unservable";
|
|
1289
1241
|
}
|
|
1290
1242
|
|
|
1291
1243
|
// src/runner/revise-job.ts
|
|
@@ -1368,12 +1320,12 @@ function territories(changed, briefs) {
|
|
|
1368
1320
|
const generalist = { name: "generalist", text: "Review the full change with no restriction, and favor the seams no other reviewer names as its own." };
|
|
1369
1321
|
const full = lines > LARGE_CHANGE_LINES || changed.some((file) => FLOOR.test(file.path));
|
|
1370
1322
|
if (!full && lines < SMALL_CHANGE_LINES) return [generalist];
|
|
1371
|
-
const
|
|
1323
|
+
const names = [
|
|
1372
1324
|
["contracts", "Contracts reviewer"],
|
|
1373
1325
|
["test-strength", "Test-strength reviewer"]
|
|
1374
1326
|
];
|
|
1375
|
-
if (full)
|
|
1376
|
-
const focused =
|
|
1327
|
+
if (full) names.push(["security", "Security reviewer"], ["failure-path", "Failure-path reviewer"]);
|
|
1328
|
+
const focused = names.flatMap(([name, heading]) => {
|
|
1377
1329
|
const text = briefs === void 0 ? void 0 : markdownSection(briefs, heading);
|
|
1378
1330
|
return text === void 0 ? [] : [{ name, text }];
|
|
1379
1331
|
});
|
|
@@ -1915,7 +1867,7 @@ function startWaiting(ports) {
|
|
|
1915
1867
|
return { stop: () => controller.abort() };
|
|
1916
1868
|
}
|
|
1917
1869
|
function linuxSignalName(number) {
|
|
1918
|
-
const
|
|
1870
|
+
const names = {
|
|
1919
1871
|
1: "SIGHUP",
|
|
1920
1872
|
2: "SIGINT",
|
|
1921
1873
|
3: "SIGQUIT",
|
|
@@ -1948,7 +1900,7 @@ function linuxSignalName(number) {
|
|
|
1948
1900
|
30: "SIGPWR",
|
|
1949
1901
|
31: "SIGSYS"
|
|
1950
1902
|
};
|
|
1951
|
-
return
|
|
1903
|
+
return names[number];
|
|
1952
1904
|
}
|
|
1953
1905
|
function hostSignalName(number) {
|
|
1954
1906
|
return Object.entries(constants.signals).find(([, value]) => value === number)?.[0];
|
|
@@ -2186,12 +2138,12 @@ async function sendTickHeartbeat(state, workRequest, wake2 = false) {
|
|
|
2186
2138
|
workRequest: next,
|
|
2187
2139
|
lastUpdate: readLastUpdate(state.config.configPath),
|
|
2188
2140
|
lowDisk: state.lowDisk,
|
|
2189
|
-
blocked: state.blocked
|
|
2141
|
+
blocked: state.blocked,
|
|
2190
2142
|
state: hostState({
|
|
2191
2143
|
draining: state.draining === true,
|
|
2192
2144
|
restarting: state.restarting === true,
|
|
2193
2145
|
holdingForUpdate: state.holdingForUpdate === true,
|
|
2194
|
-
blocked:
|
|
2146
|
+
blocked: state.blocked !== void 0,
|
|
2195
2147
|
lowDisk: state.lowDisk !== void 0
|
|
2196
2148
|
}),
|
|
2197
2149
|
// Left out unless a draining runner has builds to wait on, so the gateway stores null.
|
|
@@ -2453,50 +2405,11 @@ function holdAfterProvisionRetry(state) {
|
|
|
2453
2405
|
logOf(state).line("taking work again: the wait after a provision failure that can clear by itself is over");
|
|
2454
2406
|
return false;
|
|
2455
2407
|
}
|
|
2456
|
-
function holdWithoutRoomForLarge(state) {
|
|
2457
|
-
if (state.config.managed !== true) return false;
|
|
2458
|
-
if (isBuiltinSandbox(state.config.hooks.provision)) return false;
|
|
2459
|
-
const probes = {
|
|
2460
|
-
...realBlockedProbes(),
|
|
2461
|
-
...state.deps.container?.hostEnv === void 0 ? {} : { env: state.deps.container.hostEnv },
|
|
2462
|
-
...state.deps.blocked
|
|
2463
|
-
};
|
|
2464
|
-
let runningMemoryBytes = 0;
|
|
2465
|
-
let runningDiskBytes = 0;
|
|
2466
|
-
let heldDiskBytes = 0;
|
|
2467
|
-
for (const active of state.jobs.values()) {
|
|
2468
|
-
const microvm = active.job?.microvm;
|
|
2469
|
-
runningMemoryBytes += microvm?.limits?.memoryBytes ?? largeBuildMemoryBytes();
|
|
2470
|
-
runningDiskBytes += microvm?.limits?.diskBytes ?? LARGE_BUILD_DISK_BYTES;
|
|
2471
|
-
if (microvm?.buildDisk !== void 0) heldDiskBytes += (state.deps.allocatedBytes ?? allocatedBytes)(microvm.buildDisk);
|
|
2472
|
-
}
|
|
2473
|
-
const room = checkManagedRoom({
|
|
2474
|
-
runningMemoryBytes,
|
|
2475
|
-
totalMemoryBytes: probes.totalMemoryBytes(),
|
|
2476
|
-
sliceBytes: sliceMemoryOf(probes.env),
|
|
2477
|
-
freeDiskBytes: (state.deps.freeBytes ?? freeBytes)(runnerDir(state.config.configPath)),
|
|
2478
|
-
heldDiskBytes,
|
|
2479
|
-
runningDiskBytes
|
|
2480
|
-
});
|
|
2481
|
-
const log = logOf(state);
|
|
2482
|
-
if (!room.fits) {
|
|
2483
|
-
if (state.noRoom !== room.resource) log.line(`holding off new work: ${room.reason} \xB7 claiming again once a build ends`);
|
|
2484
|
-
state.noRoom = room.resource;
|
|
2485
|
-
state.noRoomEmpty = state.jobs.size === 0 ? { reason: `no room for one Large build: ${room.reason}` } : void 0;
|
|
2486
|
-
return true;
|
|
2487
|
-
}
|
|
2488
|
-
state.noRoomEmpty = void 0;
|
|
2489
|
-
if (state.noRoom !== void 0) {
|
|
2490
|
-
state.noRoom = void 0;
|
|
2491
|
-
log.line("a Large build fits again \xB7 taking work");
|
|
2492
|
-
}
|
|
2493
|
-
return false;
|
|
2494
|
-
}
|
|
2495
2408
|
async function housekeepingDockerOf(state) {
|
|
2496
2409
|
const injected = state.deps.housekeeping ?? {};
|
|
2497
|
-
const
|
|
2410
|
+
const names = { run: injected.run, runnerId: runnerLabelValue(state.config.configPath), builder: builderName(state.config.configPath) };
|
|
2498
2411
|
const hostBuilder = keepsHostBuilder(state.config, state.deps.blocked?.builderDiskPinned);
|
|
2499
|
-
return injected.docker ?? (hostBuilder ? createHousekeepingDocker(
|
|
2412
|
+
return injected.docker ?? (hostBuilder ? createHousekeepingDocker(names) : await housekeepingDockerIfReachable(names));
|
|
2500
2413
|
}
|
|
2501
2414
|
async function freeDiskFromItemDisks(state, readFree) {
|
|
2502
2415
|
const minimum = state.config.housekeeping?.minFreeDisk ?? 0;
|
|
@@ -2527,9 +2440,9 @@ async function freeDiskFromSavedStates(state, root, readFree) {
|
|
|
2527
2440
|
const minimum = state.config.housekeeping?.minFreeDisk ?? 0;
|
|
2528
2441
|
try {
|
|
2529
2442
|
state.deps.housekeeping ??= {};
|
|
2530
|
-
const
|
|
2443
|
+
const names = { run: state.deps.housekeeping.run, runnerId: runnerLabelValue(state.config.configPath), builder: builderName(state.config.configPath) };
|
|
2531
2444
|
const hostBuilder = keepsHostBuilder(state.config, state.deps.blocked?.builderDiskPinned);
|
|
2532
|
-
const docker = state.deps.housekeeping.docker ?? (hostBuilder ? createHousekeepingDocker(
|
|
2445
|
+
const docker = state.deps.housekeeping.docker ?? (hostBuilder ? createHousekeepingDocker(names) : await housekeepingDockerIfReachable(names));
|
|
2533
2446
|
await removeOldestUntil({
|
|
2534
2447
|
records,
|
|
2535
2448
|
deps: {
|
|
@@ -2857,8 +2770,7 @@ async function fleetHeld(state) {
|
|
|
2857
2770
|
state.holdingForUpdate = true;
|
|
2858
2771
|
return true;
|
|
2859
2772
|
}
|
|
2860
|
-
|
|
2861
|
-
if (holdWhenBlocked(state, jailer)) return true;
|
|
2773
|
+
if (holdWhenBlocked(state)) return true;
|
|
2862
2774
|
if (await holdOffForDisk(state)) return true;
|
|
2863
2775
|
return holdAfterProvisionRetry(state);
|
|
2864
2776
|
}
|
|
@@ -2866,26 +2778,6 @@ var CLAIM_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i
|
|
|
2866
2778
|
function fleetClaimIds(ids) {
|
|
2867
2779
|
return ids.filter((id) => CLAIM_ID.test(id));
|
|
2868
2780
|
}
|
|
2869
|
-
function fleetFactsOf(state) {
|
|
2870
|
-
const probes = {
|
|
2871
|
-
...realBlockedProbes(),
|
|
2872
|
-
...state.deps.container?.hostEnv === void 0 ? {} : { env: state.deps.container.hostEnv },
|
|
2873
|
-
...state.deps.blocked
|
|
2874
|
-
};
|
|
2875
|
-
let heldDiskBytes = 0;
|
|
2876
|
-
for (const active of state.jobs.values()) {
|
|
2877
|
-
const buildDisk = active.job?.microvm?.buildDisk;
|
|
2878
|
-
if (buildDisk !== void 0) heldDiskBytes += (state.deps.allocatedBytes ?? allocatedBytes)(buildDisk);
|
|
2879
|
-
}
|
|
2880
|
-
const sliceBytes = sliceMemoryOf(probes.env);
|
|
2881
|
-
return {
|
|
2882
|
-
totalMemoryBytes: probes.totalMemoryBytes(),
|
|
2883
|
-
...sliceBytes === void 0 ? {} : { sliceBytes },
|
|
2884
|
-
cpus: (state.deps.fleet?.cpus ?? (() => usableCpus().length))(),
|
|
2885
|
-
freeDiskBytes: (state.deps.freeBytes ?? freeBytes)(runnerDir(state.config.configPath)),
|
|
2886
|
-
heldDiskBytes
|
|
2887
|
-
};
|
|
2888
|
-
}
|
|
2889
2781
|
function fleetPortsOf(state) {
|
|
2890
2782
|
return {
|
|
2891
2783
|
config: () => state.config,
|
|
@@ -2898,8 +2790,6 @@ function fleetPortsOf(state) {
|
|
|
2898
2790
|
draining: () => state.draining === true,
|
|
2899
2791
|
jobs: () => [...state.jobs.values()].map((active) => active.job.size === void 0 ? {} : { size: active.job.size }),
|
|
2900
2792
|
claims: () => fleetClaimIds([...state.jobs.values()].map((active) => active.job.claimId)),
|
|
2901
|
-
facts: () => fleetFactsOf(state),
|
|
2902
|
-
images: () => heldImages(state.config.configPath),
|
|
2903
2793
|
disks: () => heldItemDisks(state.config.configPath),
|
|
2904
2794
|
applyStops: (stops) => applyStops(state, stops),
|
|
2905
2795
|
considerVersion: (named) => considerNamedVersion(state, named),
|
|
@@ -2953,16 +2843,11 @@ function imageBuilderState(state) {
|
|
|
2953
2843
|
if (result === void 0) return "unknown";
|
|
2954
2844
|
return result.ok ? "usable" : { problem: result.problem };
|
|
2955
2845
|
}
|
|
2956
|
-
|
|
2957
|
-
const probe = await runtimeOf(state).vm.helper.probe();
|
|
2958
|
-
return probe.ok ? "usable" : { problem: probe.detail };
|
|
2959
|
-
}
|
|
2960
|
-
function holdWhenBlocked(state, jailer) {
|
|
2846
|
+
function holdWhenBlocked(state) {
|
|
2961
2847
|
const probes = {
|
|
2962
2848
|
...realBlockedProbes(),
|
|
2963
2849
|
...state.deps.container?.hostEnv === void 0 ? {} : { env: state.deps.container.hostEnv },
|
|
2964
2850
|
...state.deps.blocked?.imageBuilder === void 0 ? { imageBuilder: imageBuilderState(state) } : {},
|
|
2965
|
-
...jailer === void 0 ? {} : { jailer },
|
|
2966
2851
|
inImage: state.deps.image !== void 0,
|
|
2967
2852
|
...state.deps.blocked
|
|
2968
2853
|
};
|
|
@@ -3045,9 +2930,9 @@ async function housekeepingPass(state) {
|
|
|
3045
2930
|
try {
|
|
3046
2931
|
state.deps.housekeeping ??= {};
|
|
3047
2932
|
const hostBuilder = keepsHostBuilder(state.config, state.deps.blocked?.builderDiskPinned);
|
|
3048
|
-
const
|
|
2933
|
+
const names = { run: state.deps.housekeeping.run, runnerId: runnerLabelValue(state.config.configPath), builder: builderName(state.config.configPath) };
|
|
3049
2934
|
const own = isBuiltinSandbox(state.config.hooks.provision);
|
|
3050
|
-
const docker = own ? void 0 : state.deps.housekeeping.docker ?? (hostBuilder ? createHousekeepingDocker(
|
|
2935
|
+
const docker = own ? void 0 : state.deps.housekeeping.docker ?? (hostBuilder ? createHousekeepingDocker(names) : await housekeepingDockerIfReachable(names));
|
|
3051
2936
|
if (hostBuilder && docker !== void 0) state.deps.housekeeping.docker ??= docker;
|
|
3052
2937
|
const result = await runHousekeeping({
|
|
3053
2938
|
configPath: state.config.configPath,
|
|
@@ -3086,10 +2971,8 @@ async function runTick(state) {
|
|
|
3086
2971
|
state.holdingForUpdate = true;
|
|
3087
2972
|
return;
|
|
3088
2973
|
}
|
|
3089
|
-
|
|
3090
|
-
if (holdWhenBlocked(state, jailer)) return;
|
|
2974
|
+
if (holdWhenBlocked(state)) return;
|
|
3091
2975
|
if (await holdOffForDisk(state)) return;
|
|
3092
|
-
if (holdWithoutRoomForLarge(state)) return;
|
|
3093
2976
|
if (holdAfterSandboxRefusal(state)) return;
|
|
3094
2977
|
if (holdAfterProvisionRetry(state)) return;
|
|
3095
2978
|
const log = logOf(state);
|
|
@@ -3131,7 +3014,6 @@ async function runTick(state) {
|
|
|
3131
3014
|
filtered++;
|
|
3132
3015
|
continue;
|
|
3133
3016
|
}
|
|
3134
|
-
if (holdWithoutRoomForLarge(state)) return;
|
|
3135
3017
|
if (holdAfterSandboxRefusal(state)) return;
|
|
3136
3018
|
if (holdAfterProvisionRetry(state)) return;
|
|
3137
3019
|
const attempt = await tryClaimAndStart(state, item, queue);
|
|
@@ -3238,7 +3120,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
3238
3120
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
3239
3121
|
);
|
|
3240
3122
|
async function tryClaimAndStart(state, item, queue) {
|
|
3241
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
3123
|
+
const { postJson: postJson2 } = await import('./work-cmd-NBYW3LBP.js');
|
|
3242
3124
|
const log = logOf(state);
|
|
3243
3125
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
3244
3126
|
const claim = await retrySend(
|
|
@@ -3453,7 +3335,7 @@ async function prepareSession(state, active, item, queue, tag) {
|
|
|
3453
3335
|
continueSession: job.continueSession === true,
|
|
3454
3336
|
builtin,
|
|
3455
3337
|
job,
|
|
3456
|
-
requireScrubNote: state.config.
|
|
3338
|
+
requireScrubNote: state.config.fleet === true,
|
|
3457
3339
|
restore: async ({ dir, meta }) => {
|
|
3458
3340
|
if (job.microvm !== void 0) await restoreSessionIntoMicroVm(runtimeOf(state), job.microvm, dir, meta, job);
|
|
3459
3341
|
else if (job.container !== void 0) await restoreSessionIntoContainer(runtimeOf(state), job.container, dir, meta, job);
|
|
@@ -3557,13 +3439,13 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
3557
3439
|
return;
|
|
3558
3440
|
}
|
|
3559
3441
|
if (active.ending) return;
|
|
3560
|
-
const credentialProblem = state.config.
|
|
3442
|
+
const credentialProblem = state.config.fleet === true ? void 0 : jobCredentialProblem(jobAgent(active.job, state.deps.agents), process.env, state.deps.agents);
|
|
3561
3443
|
if (credentialProblem !== void 0) {
|
|
3562
3444
|
log.error(`${tag} ${credentialProblem} \xB7 ending job as failed`);
|
|
3563
3445
|
await endJob(state, active, "failed", { stage: "provision", reason: credentialProblem });
|
|
3564
3446
|
return;
|
|
3565
3447
|
}
|
|
3566
|
-
if (state.config.
|
|
3448
|
+
if (state.config.fleet === true) {
|
|
3567
3449
|
const fetched = await fetchManagedClaudeKey(claimCalls(state.config, active.job), claimItem(state.config, active.job), { fetchImpl: state.deps.fetchImpl, now: state.deps.now, sleep: state.deps.sleep });
|
|
3568
3450
|
if (active.ending) return;
|
|
3569
3451
|
if (!fetched.ok) {
|
|
@@ -4554,7 +4436,7 @@ async function adoptTrackedBuilds(state, jobsDirPath) {
|
|
|
4554
4436
|
async function holdManagedAgain(state, dirPath, job, tag) {
|
|
4555
4437
|
const config = state.config;
|
|
4556
4438
|
const log = logOf(state);
|
|
4557
|
-
if (config.
|
|
4439
|
+
if (config.fleet !== true) return void 0;
|
|
4558
4440
|
const fetched = await fetchManagedClaudeKey(claimCalls(config, job), claimItem(config, job), {
|
|
4559
4441
|
fetchImpl: state.deps.fetchImpl,
|
|
4560
4442
|
now: state.deps.now,
|
|
@@ -4869,7 +4751,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4869
4751
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4870
4752
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4871
4753
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4872
|
-
return (await import('./check-
|
|
4754
|
+
return (await import('./check-LGB3BWZ7.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4873
4755
|
},
|
|
4874
4756
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4875
4757
|
log
|
|
@@ -1,14 +1,14 @@
|
|
|
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-OVF475U5.js';
|
|
4
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-QAZOUTEM.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-
|
|
7
|
+
import { runnerLabelValue } from './chunk-R4IC7BKJ.js';
|
|
8
8
|
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-ONDONSBT.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-
|
|
10
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-3IHZYNZW.js';
|
|
11
|
+
import { withGitConfig, tokenHeader } from './chunk-JDAH6YHU.js';
|
|
12
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-OF6XMZHO.js';
|
|
13
13
|
import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
14
14
|
import { tmpdir } from 'os';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-T3NBGNP5.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-WT74ZSRC.js';
|
|
5
|
+
import { runnerDir } from './chunk-3IHZYNZW.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-
|
|
4
|
-
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-
|
|
3
|
+
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-R4IC7BKJ.js';
|
|
4
|
+
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-3IHZYNZW.js';
|
|
5
5
|
import { spawnSync } from 'child_process';
|
|
6
6
|
import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
|
|
7
7
|
import { dirname, join } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-3IHZYNZW.js';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, BUILD_HOME } from './chunk-
|
|
3
|
+
import { RELAY_PORT, BUILD_HOME } from './chunk-JDAH6YHU.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
3
|
+
import { DEFAULT_UNIT_NAME } from './chunk-WT74ZSRC.js';
|
|
4
|
+
import { RUNNER_FILE_MODE } from './chunk-3IHZYNZW.js';
|
|
5
5
|
import { parseRunnerEnv, withoutCredentialLines } from './chunk-QVTGSGQ5.js';
|
|
6
6
|
import { headlessNames, runnerAgentNamed, credentialAgent, orList, credentialShapes, runnerAgents, credentialForms, credentialEnvPath, forwardedVariables } from './chunk-OF6XMZHO.js';
|
|
7
7
|
import { defaultAgents } from './chunk-CEHT2FCU.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isVersion, compareVersions } from './chunk-TQMI335S.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-3IHZYNZW.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -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-T3NBGNP5.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-WT74ZSRC.js';
|
|
5
|
+
import { RunnerAlreadyRunningError, readPidFile } from './chunk-QAZOUTEM.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-DOJGTDZU.js';
|
|
8
|
+
import { keyRunnerFactory } from './chunk-ZTZFWQBG.js';
|
|
9
|
+
import { signerFor } from './chunk-NLOUOUZV.js';
|
|
10
|
+
import { pidFilePath } from './chunk-3IHZYNZW.js';
|
|
11
11
|
import { readFileSync } from 'fs';
|
|
12
12
|
|
|
13
13
|
createRequire(import.meta.url);
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-CWJ26A6W.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-OIAWDKSR.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-J6WQ6POX.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,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-2MSLNM5V.js';
|
|
4
|
+
import { currentVersion, entryIn, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-QIO2NIX2.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-ZTZFWQBG.js';
|
|
7
|
+
import { runnerDir, RUNNER_DIR_MODE } from './chunk-3IHZYNZW.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
3
|
import { newTokenRetry } from './chunk-FJGYU2EK.js';
|
|
4
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
5
|
-
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-
|
|
4
|
+
import { WorkCommandError, postJson } from './chunk-DOJGTDZU.js';
|
|
5
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-WNQMNFJG.js';
|
|
6
6
|
import { buildRefusalReason } from './chunk-6RJBLCPV.js';
|
|
7
7
|
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-RO5YUUN2.js';
|
|
8
|
-
import { signingFetchFor } from './chunk-
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-
|
|
11
|
-
import { SandboxError, describeSandboxError } from './chunk-
|
|
8
|
+
import { signingFetchFor } from './chunk-J6WQ6POX.js';
|
|
9
|
+
import { signerFor } from './chunk-NLOUOUZV.js';
|
|
10
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-3IHZYNZW.js';
|
|
11
|
+
import { SandboxError, describeSandboxError } from './chunk-JDAH6YHU.js';
|
|
12
12
|
import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-F3J4UKBF.js';
|
|
13
13
|
import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
14
14
|
import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { detectActiveSession } from './chunk-CWJ26A6W.js';
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { autoConnect } from './chunk-OIAWDKSR.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-J6WQ6POX.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';
|