@outerlayer/cli 0.35.0-next.20261030105600 → 0.35.0-next.20261030155846
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-G445QZEM.js → agent-setup-346QMQY6.js} +5 -5
- package/dist/{build-MXJK46WR.js → build-HHBTSTE4.js} +6 -6
- package/dist/{build-disk-7VCUIOYV.js → build-disk-R6OH6JL5.js} +5 -5
- package/dist/build-info.json +1 -1
- package/dist/{builder-R4IJR7FU.js → builder-DL6NSVAU.js} +4 -4
- package/dist/{caller-D5IPBPRD.js → caller-Q44OIVRR.js} +7 -7
- package/dist/{check-QDYMMOSL.js → check-W4LSRCMV.js} +35 -34
- package/dist/{chunk-PPZ47OB6.js → chunk-3L7OHRDV.js} +1 -1
- package/dist/{chunk-XU5BNWX7.js → chunk-4DJZSNVT.js} +1 -1
- package/dist/{chunk-WXUG6UAF.js → chunk-4PW2DKHE.js} +315 -27
- package/dist/{chunk-VNHBDHX7.js → chunk-7J7HRYZ3.js} +1 -1
- package/dist/{chunk-7KMTCVXQ.js → chunk-7KAWBQ7V.js} +8 -4
- package/dist/{chunk-PILW3YP4.js → chunk-7TTYUY2V.js} +1 -1
- package/dist/{chunk-ZI7JENTB.js → chunk-7Y5VW4JG.js} +1 -1
- package/dist/{chunk-RO2XIOEN.js → chunk-ABGJ67PH.js} +10 -6
- package/dist/{chunk-7R655ODT.js → chunk-AF6DQJ5W.js} +1 -1
- package/dist/{chunk-SQGD4LYW.js → chunk-ALEUIS35.js} +1 -1
- package/dist/{chunk-DFGQM24P.js → chunk-AZJCSBRV.js} +87 -28
- package/dist/{chunk-QV3QP37Q.js → chunk-BNFFQC3M.js} +7 -7
- package/dist/{chunk-CANPD2V3.js → chunk-CPIYKBQ2.js} +4 -4
- package/dist/{chunk-PBAGWT2M.js → chunk-DH6BDQM4.js} +257 -95
- package/dist/{chunk-LNFQ5NOF.js → chunk-DOYLWBJJ.js} +3 -3
- package/dist/{chunk-ZH22PFZM.js → chunk-EK2FNOCD.js} +2 -2
- package/dist/{chunk-SHPCVBT3.js → chunk-EZRAR5YG.js} +1 -1
- package/dist/{chunk-PAGH2XKJ.js → chunk-FKLGX72N.js} +6 -6
- package/dist/{chunk-EDBLOBUB.js → chunk-FW3ZQKPY.js} +4 -4
- package/dist/{chunk-VAP56OP7.js → chunk-G2HRULTO.js} +2 -2
- package/dist/{chunk-LBYP6CPV.js → chunk-GGI3J7WS.js} +103 -22
- package/dist/{chunk-TYRKGKMX.js → chunk-HTQBIXE7.js} +2 -2
- package/dist/{chunk-CPWSPEP5.js → chunk-K3Z4Y6VU.js} +3 -3
- package/dist/{chunk-QI3AZT5E.js → chunk-K5EOLRGJ.js} +3 -3
- package/dist/{chunk-LW2A24IA.js → chunk-LGV5N5DG.js} +1 -1
- package/dist/{chunk-GC4U7WQV.js → chunk-LXAYOMSX.js} +6 -6
- package/dist/{chunk-EBFU4YCI.js → chunk-MCMDEEXB.js} +3 -3
- package/dist/{receive-files-T2BIUBQL.js → chunk-NN33FYXG.js} +0 -1
- package/dist/{chunk-Z7JFM5LP.js → chunk-ODX2XCL3.js} +3 -3
- package/dist/{chunk-SOBWIJDO.js → chunk-OS73XDJ7.js} +5 -5
- package/dist/{chunk-3JMDMXJO.js → chunk-P24VR4H3.js} +2 -2
- package/dist/{chunk-6IIP4KMY.js → chunk-P4PVRDVY.js} +3 -3
- package/dist/{chunk-L5GF2A43.js → chunk-P5CXB7ZT.js} +3 -3
- package/dist/{chunk-2F43WNKI.js → chunk-RIHB3HA2.js} +3 -3
- package/dist/{chunk-FTBBADQG.js → chunk-RKDOKIIK.js} +2 -2
- package/dist/{chunk-B5HTR43X.js → chunk-RLFVKOEI.js} +3 -3
- package/dist/{chunk-TMIJHMEN.js → chunk-RS2RFWIK.js} +1 -1
- package/dist/{chunk-FQVTJ4B3.js → chunk-SEY2HTZO.js} +7 -7
- package/dist/{chunk-HXCUMPPY.js → chunk-SUVWQPOG.js} +3 -3
- package/dist/{chunk-POZ65DAI.js → chunk-USR45QSV.js} +1 -1
- package/dist/{chunk-3AYPAQNQ.js → chunk-UVQ5C3UP.js} +1 -1
- package/dist/{chunk-NQ7R5AW5.js → chunk-VQCUADLI.js} +3 -3
- package/dist/{chunk-LKUDG3CH.js → chunk-VRNAM7WM.js} +10 -10
- package/dist/{chunk-AUVJMR3P.js → chunk-WAZJPDR2.js} +1 -1
- package/dist/{chunk-YQHUCOUL.js → chunk-WT7J2627.js} +4 -1
- package/dist/{chunk-EK7MQ56V.js → chunk-WYGAQVBU.js} +1 -1
- package/dist/{chunk-BITJMQJ2.js → chunk-WYJUQGCB.js} +3 -3
- package/dist/{chunk-GBMTKV5B.js → chunk-YQHEJ5SV.js} +1 -1
- package/dist/{claude-launcher-VA3OAA5V.js → claude-launcher-HREPADCN.js} +97 -9
- package/dist/{cli-IEJWJDVU.js → cli-KQUVZRRG.js} +114 -113
- package/dist/{command-HSI2RX4D.js → command-OHJUJ2WX.js} +24 -23
- package/dist/{config-ZHLG4LA4.js → config-EYFLM4WT.js} +6 -6
- package/dist/{connect-cmd-NDWWTEHW.js → connect-cmd-REJ5FEC6.js} +5 -5
- package/dist/{container-start-Z7C67PBJ.js → container-start-KG3ZLJWU.js} +27 -26
- package/dist/{context-show-cmd-HLEHQJTV.js → context-show-cmd-XT3QP5OR.js} +6 -6
- package/dist/{control-plane-launch-X2QXGPFW.js → control-plane-launch-PCGH76P5.js} +4 -4
- package/dist/{demo-voice-cmd-NZR2MAUZ.js → demo-voice-cmd-2QE7SQRC.js} +11 -11
- package/dist/{dist-RR6YVPSF.js → dist-BARPQSHD.js} +1 -1
- package/dist/{docker-GVIT4XAC.js → docker-3UKTW4GR.js} +4 -4
- package/dist/{doctor-33W5WXME.js → doctor-5HY3JA5Y.js} +24 -23
- package/dist/{emit-artifact-cmd-72V5FRE3.js → emit-artifact-cmd-26PJDTFU.js} +10 -10
- package/dist/{emit-criteria-cmd-HIE6JLCO.js → emit-criteria-cmd-6YTFXO3L.js} +7 -7
- package/dist/{emit-demo-cmd-JL4MAXVC.js → emit-demo-cmd-OQ7UDDRG.js} +11 -11
- package/dist/{emit-finding-cmd-3HZBWWP7.js → emit-finding-cmd-NO3FSRHT.js} +7 -7
- package/dist/{emit-result-cmd-YIPXXWII.js → emit-result-cmd-7MSUTXG6.js} +9 -9
- package/dist/{emit-step-cmd-QQYPX7EF.js → emit-step-cmd-7PFO7XVA.js} +7 -7
- package/dist/{find-unit-L6IH3X2U.js → find-unit-3MED6CPQ.js} +8 -8
- package/dist/{findings-cmd-CPNMM5CJ.js → findings-cmd-SWAPQUFT.js} +7 -7
- package/dist/{fleet-readiness-ZQOFJZ5B.js → fleet-readiness-5RMWZH4V.js} +4 -4
- package/dist/{governing-source-AXTXU5ZB.js → governing-source-INXQEK24.js} +9 -9
- package/dist/{hook-fast-OPHM3MRK.js → hook-fast-2KVZZRJN.js} +1 -1
- package/dist/{host-checks-PDTWZ637.js → host-checks-RCWXCCW2.js} +25 -24
- package/dist/{pending-2VIIFAP4.js → host-key-O4DFMOSV.js} +2 -2
- package/dist/{image-tag-JWATDMIZ.js → image-tag-WBD57QBN.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/{init-Y5A6PZDX.js → init-52F2M54W.js} +20 -19
- package/dist/{init-EUQHMZQX.js → init-U5XUDKE7.js} +20 -19
- package/dist/{init-cmd-HLBC4DOD.js → init-cmd-WYLANAD5.js} +10 -10
- package/dist/{init-update-GFXITSTA.js → init-update-Z2T5J3Z2.js} +9 -9
- package/dist/{install-cmd-ZEFBJH24.js → install-cmd-JKPXIOEY.js} +4 -4
- package/dist/{logs-3YRC7HRA.js → logs-FEITSC2V.js} +1 -1
- package/dist/{loop-GR24EEVA.js → loop-WJBFH6XU.js} +34 -33
- package/dist/{machine-B333YLJH.js → machine-KUUTBDAT.js} +20 -19
- package/dist/{mcp-serve-cmd-PKXIHUOX.js → mcp-serve-cmd-ZINYSLY6.js} +3 -3
- package/dist/{paths-7PC3K7C3.js → paths-XEYE7OZ2.js} +1 -1
- package/dist/{host-key-Q5DEAP3Q.js → pending-D2NNV54J.js} +2 -2
- package/dist/{pidfile-KQ2EJABZ.js → pidfile-FLFVRKVW.js} +2 -2
- package/dist/receive-files-5MBUXAE5.js +6 -0
- package/dist/{record-IHEF6C33.js → record-JMZOXD4R.js} +2 -2
- package/dist/{runner-env-KGX7NFHP.js → runner-env-2NVOHTRC.js} +8 -8
- package/dist/{runner-identity-UOKEHVQQ.js → runner-identity-T6YPTHOH.js} +4 -4
- package/dist/{runner-key-QR6OQ7YJ.js → runner-key-WPQGF2L7.js} +20 -19
- package/dist/{session-sender-5DTNDRJY.js → session-sender-ADHV7WZ6.js} +10 -10
- package/dist/{spec-cmd-PUZD5BBF.js → spec-cmd-OUEKA6X3.js} +8 -8
- package/dist/{state-FJPSFOID.js → state-UWIM42JH.js} +2 -2
- package/dist/{status-5KWZOEOI.js → status-2JRATV66.js} +25 -24
- package/dist/{sync-cmd-45QEXKDM.js → sync-cmd-IEPWMYWY.js} +9 -9
- package/dist/{update-steps-EP5LFXAG.js → update-steps-3SRL32IV.js} +26 -25
- package/dist/{watch-L5MUTCM2.js → watch-3K3IB443.js} +9 -9
- package/dist/{work-claim-cmd-GJ2LSVOI.js → work-claim-cmd-5ACB2ZWP.js} +13 -13
- package/dist/{work-cmd-DGRY7K5A.js → work-cmd-B6HZW26B.js} +7 -7
- package/dist/{work-comment-cmd-CLHJKFBW.js → work-comment-cmd-MBGBBR7V.js} +8 -8
- package/dist/{work-demo-cmd-6BM56RVQ.js → work-demo-cmd-RLOS55MP.js} +7 -7
- package/dist/{work-logs-cmd-GXCMJFFO.js → work-logs-cmd-VUICWCEO.js} +7 -7
- package/dist/{work-open-pr-cmd-IGUKSZGC.js → work-open-pr-cmd-CYXICEJE.js} +8 -8
- package/dist/{work-pr-cmd-BQBQORGW.js → work-pr-cmd-3HSFJO65.js} +7 -7
- package/dist/{work-proofs-cmd-PVNHUJPC.js → work-proofs-cmd-NJ4YYQ2V.js} +8 -8
- package/dist/{work-proofs-record-BYRHHFK2.js → work-proofs-record-NN7XB2QC.js} +14 -14
- package/dist/{work-stop-cmd-EEETWUSK.js → work-stop-cmd-QXZSZLEY.js} +7 -7
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +18 -16
- package/skill-pack/maintained/outerlayer-amend/references/check-items.md +34 -0
- package/skill-pack/maintained/outerlayer-amend/references/earlier-run.md +18 -0
|
@@ -1,33 +1,33 @@
|
|
|
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-7Y5VW4JG.js';
|
|
4
4
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
5
5
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
6
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
7
|
-
import { renderUpdateSteps } from './chunk-
|
|
8
|
-
import { releaseLease, isUnfinished, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, readProvisionOut, workdirProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, startSender, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-
|
|
9
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
10
|
-
import { writeFleetState } from './chunk-
|
|
11
|
-
import { writePendingUpdate } from './chunk-
|
|
6
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-BNFFQC3M.js';
|
|
7
|
+
import { renderUpdateSteps } from './chunk-RLFVKOEI.js';
|
|
8
|
+
import { releaseLease, isUnfinished, restoreSessionIntoMicroVm, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, readProvisionOut, workdirProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, startSender, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-GGI3J7WS.js';
|
|
9
|
+
import { RUNNER_PROTOCOL } from './chunk-RS2RFWIK.js';
|
|
10
|
+
import { writeFleetState } from './chunk-LGV5N5DG.js';
|
|
11
|
+
import { writePendingUpdate } from './chunk-EZRAR5YG.js';
|
|
12
12
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
13
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, createHousekeepingDocker, housekeepingDockerIfReachable, KIND_LABEL, RECIPE_KEY_LABEL, askFleetMachine } from './chunk-
|
|
14
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
13
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, createHousekeepingDocker, housekeepingDockerIfReachable, KIND_LABEL, RECIPE_KEY_LABEL, askFleetMachine } from './chunk-SEY2HTZO.js';
|
|
14
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-AF6DQJ5W.js';
|
|
15
15
|
import { RepoFilter } from './chunk-TBT347UY.js';
|
|
16
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, itemTag, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionEnvironment, resolveHostBuild, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, containerCommandExec, execCommandLine, startHostServices, HELPER_ENV, setUpRunnerCgroup, sweepImageBuilders, usableCpus, stoppedHelperReason, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, selectStaleIncomplete, selectExpired, selectToFit, removeSavedState } from './chunk-
|
|
17
|
-
import {
|
|
16
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, itemTag, prepareResume, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionEnvironment, resolveHostBuild, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, containerCommandExec, execCommandLine, startHostServices, HELPER_ENV, setUpRunnerCgroup, sweepImageBuilders, usableCpus, stoppedHelperReason, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, selectStaleIncomplete, selectExpired, selectToFit, removeSavedState } from './chunk-4PW2DKHE.js';
|
|
17
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-ODX2XCL3.js';
|
|
18
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-WAZJPDR2.js';
|
|
18
19
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
19
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
20
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
20
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-OS73XDJ7.js';
|
|
21
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-ALEUIS35.js';
|
|
21
22
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-XU5BNWX7.js';
|
|
23
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-P24VR4H3.js';
|
|
24
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-RKDOKIIK.js';
|
|
25
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-EK2FNOCD.js';
|
|
26
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, readJobFileChecked } from './chunk-DOYLWBJJ.js';
|
|
27
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-FKLGX72N.js';
|
|
28
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-4DJZSNVT.js';
|
|
29
29
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
30
|
-
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir, spoolDir, orgStoreIn, builderCacheDiskPath, rootfsDir } from './chunk-
|
|
30
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir, spoolDir, orgStoreIn, builderCacheDiskPath, sessionsDir, rootfsDir } from './chunk-WT7J2627.js';
|
|
31
31
|
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT, takeClaudeCredential, heldClaudeCredential, currentClaudeCredential, fdName } from './chunk-GANAOCHR.js';
|
|
32
32
|
import { COMMAND_LOST_REASON, CONTAINER_STOPPED_REASON } from './chunk-MESOOLF4.js';
|
|
33
33
|
import { mkdirSync, existsSync, chmodSync, writeFileSync, renameSync, statSync, readdirSync, readFileSync, rmSync, closeSync, lstatSync } from 'fs';
|
|
@@ -1075,6 +1075,7 @@ async function runHousekeeping(options) {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
freed += await removeSavedStates(options, nowMs, savedStatesDir(root));
|
|
1077
1077
|
freed += removeStaleBuilderCaches(options, nowMs);
|
|
1078
|
+
freed += removeStaleSessions(options, nowMs);
|
|
1078
1079
|
for (const scope of storeScopes(options.configPath)) {
|
|
1079
1080
|
const spoolPath = spoolDir(orgStoreIn(root, scope));
|
|
1080
1081
|
const spoolFiles = listDir(spoolPath).flatMap((name) => {
|
|
@@ -1154,6 +1155,35 @@ async function removeStaleRootDisksIn(root, unfinished, options, docker) {
|
|
|
1154
1155
|
}
|
|
1155
1156
|
return freed;
|
|
1156
1157
|
}
|
|
1158
|
+
function removeStaleSessions(options, nowMs) {
|
|
1159
|
+
let freed = 0;
|
|
1160
|
+
for (const scope of storeScopes(options.configPath)) {
|
|
1161
|
+
const where = sessionsDir(options.configPath, scope);
|
|
1162
|
+
for (const name of listDir(where)) {
|
|
1163
|
+
const path = join(where, name);
|
|
1164
|
+
const keptAt = Date.parse(readKeptAt(path) ?? "");
|
|
1165
|
+
const sinceMs = Number.isFinite(keptAt) ? keptAt : mtimeOf(path);
|
|
1166
|
+
if (sinceMs === void 0 || nowMs - sinceMs < options.keepDays * 864e5) continue;
|
|
1167
|
+
const size = sizeOf(path);
|
|
1168
|
+
try {
|
|
1169
|
+
rmSync(path, { recursive: true, force: true });
|
|
1170
|
+
freed += size;
|
|
1171
|
+
options.log.line(`housekeeping: removed kept session of work item ${name} (${formatBytes(size)}), kept ${formatDuration(nowMs - sinceMs)} ago`);
|
|
1172
|
+
} catch (err) {
|
|
1173
|
+
options.log.error(`housekeeping: could not remove the kept session of work item ${name}: ${describeCallFailure(err)}`);
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
return freed;
|
|
1178
|
+
}
|
|
1179
|
+
function readKeptAt(dir) {
|
|
1180
|
+
try {
|
|
1181
|
+
const parsed = JSON.parse(readFileSync(join(dir, "meta.json"), "utf8"));
|
|
1182
|
+
return typeof parsed.keptAt === "string" ? parsed.keptAt : void 0;
|
|
1183
|
+
} catch {
|
|
1184
|
+
return void 0;
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1157
1187
|
function removeStaleBuilderCaches(options, nowMs) {
|
|
1158
1188
|
let freed = 0;
|
|
1159
1189
|
for (const scope of storeScopes(options.configPath)) {
|
|
@@ -2412,7 +2442,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
2412
2442
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
2413
2443
|
);
|
|
2414
2444
|
async function tryClaimAndStart(state, item, queue) {
|
|
2415
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
2445
|
+
const { postJson: postJson2 } = await import('./work-cmd-B6HZW26B.js');
|
|
2416
2446
|
const log = logOf(state);
|
|
2417
2447
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
2418
2448
|
const claim = await retrySend(
|
|
@@ -2577,6 +2607,31 @@ function wasExtended(claim) {
|
|
|
2577
2607
|
if (!Number.isFinite(createdAtMs) || !Number.isFinite(expiresAtMs)) return false;
|
|
2578
2608
|
return expiresAtMs - createdAtMs > LEASE_SECONDS * 1e3 + 2e3;
|
|
2579
2609
|
}
|
|
2610
|
+
async function prepareSession(state, active, item, queue, tag) {
|
|
2611
|
+
const job = active.job;
|
|
2612
|
+
const builtin = job.microvm !== void 0 || job.container !== void 0;
|
|
2613
|
+
const log = logOf(state);
|
|
2614
|
+
try {
|
|
2615
|
+
const prepared = await prepareResume({
|
|
2616
|
+
configPath: state.config.configPath,
|
|
2617
|
+
organizationId: job.organizationId,
|
|
2618
|
+
workItemId: item.id,
|
|
2619
|
+
queue,
|
|
2620
|
+
builtin,
|
|
2621
|
+
restore: async ({ dir, meta }) => {
|
|
2622
|
+
if (job.microvm !== void 0) await restoreSessionIntoMicroVm(runtimeOf(state), job.microvm, dir, meta);
|
|
2623
|
+
else if (job.container !== void 0) await restoreSessionIntoContainer(runtimeOf(state), job.container, dir, meta);
|
|
2624
|
+
},
|
|
2625
|
+
log: (line) => log.line(`${tag} ${line}`)
|
|
2626
|
+
});
|
|
2627
|
+
active.job = { ...job, ...builtin ? { sessionId: prepared.sessionId } : {}, resume: prepared.resume };
|
|
2628
|
+
writeJobFile(join(active.dirPath, "job.json"), active.job);
|
|
2629
|
+
return builtin ? prepared.env : void 0;
|
|
2630
|
+
} catch (err) {
|
|
2631
|
+
log.error(`${tag} no session is set for the agent command: ${describeCallFailure(err)} \xB7 continuing`);
|
|
2632
|
+
return void 0;
|
|
2633
|
+
}
|
|
2634
|
+
}
|
|
2580
2635
|
async function startJob(state, item, queue, claimId, itemKey, branch, identity, claimed, fleet) {
|
|
2581
2636
|
const log = logOf(state);
|
|
2582
2637
|
const startedAt = nowOf(state);
|
|
@@ -2594,7 +2649,9 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2594
2649
|
itemKey,
|
|
2595
2650
|
branch,
|
|
2596
2651
|
commitIdentity: identity,
|
|
2597
|
-
|
|
2652
|
+
// The work item the kept session belongs to. A fleet claim names it too, from the same listing.
|
|
2653
|
+
workItemId: item.id,
|
|
2654
|
+
...fleet === void 0 ? {} : { appId: fleet.appId, organizationId: fleet.organizationId, size: fleet.size },
|
|
2598
2655
|
...primary === void 0 ? {} : { repository: primary.repository, repositories },
|
|
2599
2656
|
startedAt: startedAt.toISOString()
|
|
2600
2657
|
};
|
|
@@ -2972,6 +3029,8 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2972
3029
|
await endJob(state, active, "failed", { stage: "command" });
|
|
2973
3030
|
return;
|
|
2974
3031
|
}
|
|
3032
|
+
const sessionEnv = await prepareSession(state, active, item, queue, tag);
|
|
3033
|
+
job = active.job;
|
|
2975
3034
|
let running;
|
|
2976
3035
|
try {
|
|
2977
3036
|
if (job.microvm !== void 0) {
|
|
@@ -2981,14 +3040,14 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2981
3040
|
job.microvm.commandDir = MICROVM_COMMAND_DIR;
|
|
2982
3041
|
job.microvm.commandLogBase = commandLogOffset(dirPath, 0);
|
|
2983
3042
|
writeJobFile(jobFilePath, job);
|
|
2984
|
-
await startMicroVmCommand({ job, jobDir: dirPath, cmdline, runtime, config: state.config });
|
|
3043
|
+
await startMicroVmCommand({ job, jobDir: dirPath, cmdline, runtime, config: state.config, extraEnv: sessionEnv });
|
|
2985
3044
|
} else {
|
|
2986
|
-
const composed = microVmCommandLine({ job, jobDir: dirPath, cmdline, runtime, config: state.config, cli: join(runtime.cliBuild().distDir, "index.js") });
|
|
3045
|
+
const composed = microVmCommandLine({ job, jobDir: dirPath, cmdline, runtime, config: state.config, cli: join(runtime.cliBuild().distDir, "index.js"), extraEnv: sessionEnv });
|
|
2987
3046
|
running = runCommand(composed.line, { ...composed.env, OUTERLAYER_JOB_DIR: dirPath }, dirPath, join(dirPath, "command.log"), state.deps.spawnFn);
|
|
2988
3047
|
}
|
|
2989
3048
|
} else if (job.container !== void 0) {
|
|
2990
3049
|
const runtime = runtimeOf(state);
|
|
2991
|
-
const exec = containerCommandExec({ job, cmdline, runtime, config: state.config });
|
|
3050
|
+
const exec = containerCommandExec({ job, cmdline, runtime, config: state.config, extraEnv: sessionEnv });
|
|
2992
3051
|
job.container.tracking = "container";
|
|
2993
3052
|
job.container.commandLogBase = commandLogOffset(dirPath, 0);
|
|
2994
3053
|
writeJobFile(jobFilePath, job);
|
|
@@ -3754,7 +3813,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3754
3813
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3755
3814
|
const held = heldClaudeCredential();
|
|
3756
3815
|
const env = held === void 0 ? process.env : { ...process.env, [held.variable]: held.value };
|
|
3757
|
-
return (await import('./check-
|
|
3816
|
+
return (await import('./check-W4LSRCMV.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3758
3817
|
},
|
|
3759
3818
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3760
3819
|
log
|
|
@@ -4136,4 +4195,4 @@ function runnerProcessState(configPath) {
|
|
|
4136
4195
|
return isSameProcess(entry.pid, entry.start) ? { state: "running", pid: entry.pid } : { state: "stale", pid: entry.pid };
|
|
4137
4196
|
}
|
|
4138
4197
|
|
|
4139
|
-
export { RunnerStartError, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, probeBuild, probeCredentials, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick };
|
|
4198
|
+
export { RunnerStartError, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick };
|
|
@@ -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 {
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-GGI3J7WS.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-ODX2XCL3.js';
|
|
5
|
+
import { RunnerAlreadyRunningError, readPidFile } from './chunk-WAZJPDR2.js';
|
|
5
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { pidFilePath } from './chunk-YQHUCOUL.js';
|
|
7
|
+
import { keyRunnerFactory } from './chunk-RKDOKIIK.js';
|
|
8
|
+
import { isSignatureRefusal, postJson } from './chunk-FKLGX72N.js';
|
|
9
|
+
import { signerFor } from './chunk-4DJZSNVT.js';
|
|
10
|
+
import { pidFilePath } from './chunk-WT7J2627.js';
|
|
11
11
|
import { readFileSync } from 'fs';
|
|
12
12
|
|
|
13
13
|
createRequire(import.meta.url);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-
|
|
3
|
+
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-ABGJ67PH.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
5
5
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
6
|
-
import { autoConnect } from './chunk-
|
|
6
|
+
import { autoConnect } from './chunk-P5CXB7ZT.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
8
|
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-XSX42Q2H.js';
|
|
9
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
10
|
-
import { resolveRepoIdentity } from './chunk-
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-YQHEJ5SV.js';
|
|
10
|
+
import { resolveRepoIdentity } from './chunk-DH6BDQM4.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
13
13
|
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-N2XW4NYY.js';
|