@outerlayer/cli 0.40.0-next.20261116163636 → 0.40.0-next.20261116174349
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-WO2OJYRM.js → agent-setup-C4SP76RQ.js} +7 -7
- package/dist/{agent-subcommand-627NTYCT.js → agent-subcommand-RIHIZDJL.js} +1 -1
- package/dist/{bridge-ND2CAJZ5.js → bridge-LUFXLKB3.js} +2 -2
- package/dist/{build-F6YPIWXX.js → build-IOMZSFXX.js} +7 -7
- package/dist/{build-disk-NUB2IQLK.js → build-disk-GDBXPKVU.js} +5 -5
- package/dist/build-info.json +1 -1
- package/dist/{builder-2SO7EBSA.js → builder-FZCJZRB5.js} +4 -4
- package/dist/{caller-FFGBVIU7.js → caller-BYIS3VLG.js} +7 -7
- package/dist/{check-XDVWBT5T.js → check-YD3ILIWA.js} +39 -39
- package/dist/{chunk-DQ77PKPL.js → chunk-2NMP6JTW.js} +3 -3
- package/dist/{chunk-4BPYPPWG.js → chunk-2TOYDBQE.js} +1 -1
- package/dist/{chunk-S2FSJ7H2.js → chunk-3DUYDFZS.js} +5 -5
- package/dist/{chunk-Q7AUTP6Z.js → chunk-3VORJPTM.js} +6 -6
- package/dist/{chunk-J74SL6JI.js → chunk-46D7LPS3.js} +3 -2
- package/dist/{chunk-PZAI36UE.js → chunk-4OLHKE6K.js} +2 -2
- package/dist/{chunk-FR3CCEE2.js → chunk-5BNP3YPA.js} +2 -2
- package/dist/{chunk-Z7OGU6UD.js → chunk-5IDATPRL.js} +1 -1
- package/dist/{chunk-JWIH23KZ.js → chunk-5MSUF63A.js} +3 -3
- package/dist/{chunk-EHGWEJJP.js → chunk-65IH42O5.js} +6 -6
- package/dist/{chunk-XAATEDXK.js → chunk-6UFFSMQG.js} +2 -2
- package/dist/{chunk-RZRR2IUL.js → chunk-7DM2GBSI.js} +1 -1
- package/dist/{chunk-7MVTX74D.js → chunk-7VW73CPS.js} +1 -1
- package/dist/{chunk-QZ3QG4FE.js → chunk-AEGLAS4Y.js} +1 -1
- package/dist/{chunk-OTB63HQF.js → chunk-AFSJ4GHZ.js} +1 -1
- package/dist/{chunk-5XAV7LGB.js → chunk-ALJMNIHW.js} +1 -1
- package/dist/{chunk-QZBZQVZK.js → chunk-BKN5HQCX.js} +3 -3
- package/dist/{chunk-L7MCKDRU.js → chunk-BQUUKECC.js} +5 -5
- package/dist/{chunk-7TZ6N25K.js → chunk-BXDQFZAO.js} +1 -1
- package/dist/{chunk-LAMPJU6V.js → chunk-C2ZGJRMQ.js} +1 -1
- package/dist/{chunk-EOTRNAXM.js → chunk-CNFP7ZXP.js} +2 -2
- package/dist/{chunk-DW4N7KNX.js → chunk-CSSBYLSW.js} +7 -7
- package/dist/{chunk-ZX6NQ4TE.js → chunk-DIF5NMRF.js} +1 -1
- package/dist/{chunk-SBEUAS2P.js → chunk-DXFE3GY5.js} +2 -2
- package/dist/{chunk-HHMFCT5K.js → chunk-EHF2UWZC.js} +1 -1
- package/dist/{chunk-ETXP6DPT.js → chunk-F5DIRRMG.js} +1 -1
- package/dist/{chunk-XJTA4GJE.js → chunk-FNPCVOB5.js} +5 -5
- package/dist/{chunk-T3YVHCKG.js → chunk-FVTNWJPF.js} +3 -3
- package/dist/{chunk-JFHPOJ7T.js → chunk-IW4J7WUW.js} +2 -2
- package/dist/{chunk-KCSVX7ML.js → chunk-J6HSOUU6.js} +7 -7
- package/dist/{chunk-C5TJZMYS.js → chunk-KJCEJOJI.js} +1 -1
- package/dist/{chunk-GDARDBX4.js → chunk-KXFHHQ2L.js} +3 -3
- package/dist/{chunk-U77FUTNH.js → chunk-LFGVSVZD.js} +3 -3
- package/dist/{chunk-MGNDNMTO.js → chunk-LYDFDNJH.js} +9 -9
- package/dist/{chunk-XEV7LRU3.js → chunk-MDWAL6FD.js} +1 -1
- package/dist/{chunk-PKIXRFB2.js → chunk-MP4PWSAP.js} +2 -2
- package/dist/{chunk-U7CJ6EPP.js → chunk-NFFFLKX4.js} +3 -3
- package/dist/{chunk-G4TG7RBM.js → chunk-NIHE7WJ6.js} +1 -1
- package/dist/{chunk-EJNRRK26.js → chunk-OW6YWM4F.js} +3 -3
- package/dist/{chunk-RG2Z7XIR.js → chunk-OWIG6HOF.js} +2 -2
- package/dist/{chunk-JR347MV3.js → chunk-PGF36SYX.js} +2 -2
- package/dist/{chunk-2MNKGEEU.js → chunk-QMQH5MAW.js} +4 -4
- package/dist/{chunk-UZPRXITI.js → chunk-RZ3SBLIQ.js} +25 -25
- package/dist/{chunk-SQMXHLMF.js → chunk-SCG7JYAQ.js} +3 -3
- package/dist/{chunk-JXZ3LIHN.js → chunk-SR5UDIQO.js} +1 -1
- package/dist/{chunk-SVJKVEUF.js → chunk-T26E7YR6.js} +2 -2
- package/dist/{chunk-C4KTCBOR.js → chunk-TQN2NY2A.js} +1 -1
- package/dist/{chunk-V3Y2LSIQ.js → chunk-TVSEBOHW.js} +2 -2
- package/dist/{chunk-NKABIKPX.js → chunk-UAFFHGF7.js} +76 -38
- package/dist/{chunk-YDZV2E5U.js → chunk-UTZWCNFV.js} +11 -2
- package/dist/{chunk-43GWGP2Z.js → chunk-VEA3VSYK.js} +1 -1
- package/dist/{chunk-NLBGDF55.js → chunk-W3GCD7EY.js} +3 -3
- package/dist/{chunk-65VG7TV5.js → chunk-WTX57JCA.js} +2 -2
- package/dist/{chunk-H32FCHB5.js → chunk-XYJHIH4N.js} +1 -1
- package/dist/{chunk-EZ4DZGES.js → chunk-ZOUXFTGZ.js} +2 -2
- package/dist/{claude-launcher-JUGEXMO7.js → claude-launcher-6JBILMIB.js} +1 -1
- package/dist/{cli-6HHEJHUB.js → cli-VDQALG6T.js} +136 -136
- package/dist/{command-BHQCP5E3.js → command-2DK6WUWO.js} +35 -35
- package/dist/{config-T34TYP32.js → config-OKFK2D2R.js} +6 -6
- package/dist/{connect-cmd-SVTZFSRL.js → connect-cmd-DLQVEKAR.js} +5 -5
- package/dist/{container-start-RAOTI3SI.js → container-start-AIOV74N2.js} +32 -32
- package/dist/{context-show-cmd-G2DK7GH3.js → context-show-cmd-WHX2TVDI.js} +6 -6
- package/dist/{control-plane-launch-BWUJZAO2.js → control-plane-launch-FC2CG2WV.js} +5 -5
- package/dist/{demo-record-cmd-DASYPH54.js → demo-record-cmd-TAX3IVEZ.js} +2 -2
- package/dist/{demo-voice-cmd-42WXU6GF.js → demo-voice-cmd-UZ5REOVQ.js} +11 -11
- package/dist/{docker-5IU4WLT5.js → docker-K3AROT4N.js} +4 -4
- package/dist/{doctor-6BDO7QKS.js → doctor-VUK7NCG5.js} +34 -34
- package/dist/{emit-artifact-cmd-SVSLY7HB.js → emit-artifact-cmd-QKOYWMHX.js} +10 -10
- package/dist/{emit-criteria-cmd-AOQHGCV3.js → emit-criteria-cmd-UOCPNUZ2.js} +7 -7
- package/dist/{emit-demo-cmd-AIK3WB2Z.js → emit-demo-cmd-7ZP44OBX.js} +11 -11
- package/dist/{emit-finding-cmd-6I4F4UWJ.js → emit-finding-cmd-YNET3JQC.js} +7 -7
- package/dist/{emit-result-cmd-4QS4GPH2.js → emit-result-cmd-YN4UVIR7.js} +9 -9
- package/dist/{emit-step-cmd-3GFMIVRY.js → emit-step-cmd-O67GTOGF.js} +7 -7
- package/dist/{exec-client-ZZQSNFIT.js → exec-client-NCY4LVTP.js} +3 -3
- package/dist/{find-unit-EZ2XURDB.js → find-unit-6FDRYJ4Q.js} +8 -8
- package/dist/{findings-cmd-CECQLYVP.js → findings-cmd-RVZTJ7F4.js} +7 -7
- package/dist/{fleet-readiness-EQLBI2IT.js → fleet-readiness-XACYKJYF.js} +5 -5
- package/dist/{governing-source-ZZTOBIRP.js → governing-source-GQ3CVSHE.js} +9 -9
- package/dist/{guest-init-K5475ZQO.js → guest-init-VATBVGYG.js} +4 -4
- package/dist/{hook-fast-TBCK3I4E.js → hook-fast-IBQM3XCM.js} +1 -1
- package/dist/{host-checks-I2LZOUET.js → host-checks-TOXPLGQR.js} +30 -30
- package/dist/{pending-I5AP7IJ6.js → host-key-DLFYQJXS.js} +3 -3
- package/dist/{image-tag-DTTH4Z6T.js → image-tag-ZQDFHNOV.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-L5MJ2P3L.js → init-BCZJQYL7.js} +30 -30
- package/dist/{init-SRI7RIGW.js → init-ZJOC4YOQ.js} +30 -30
- package/dist/{init-agent-BLT7QWKX.js → init-agent-KPONR3NZ.js} +30 -30
- package/dist/{init-cmd-TALNXEW7.js → init-cmd-CFWVSHRX.js} +11 -11
- package/dist/{init-update-NYCGYG6A.js → init-update-Q35POT3A.js} +8 -8
- package/dist/{install-cmd-DKLCUHBU.js → install-cmd-BMRV5AGB.js} +9 -9
- package/dist/{launch-agent-WUIHZ74D.js → launch-agent-7PKKCS3Y.js} +9 -9
- package/dist/{logs-I4VXXTV5.js → logs-IDRVZ6GR.js} +2 -2
- package/dist/{loop-4A2CJDP2.js → loop-UDAOJKOM.js} +38 -38
- package/dist/{machine-Z3FN3EPB.js → machine-2H7GRC7U.js} +30 -30
- package/dist/{mcp-serve-cmd-5AMUEGSA.js → mcp-serve-cmd-CTLLRVD7.js} +4 -4
- package/dist/{paths-OYHBXFV4.js → paths-JQDBTC6Z.js} +2 -2
- package/dist/{host-key-ZXRIIWZC.js → pending-75AP4OWO.js} +3 -3
- package/dist/{pidfile-PN5VYXTM.js → pidfile-4KKLC5XX.js} +3 -3
- package/dist/{record-H5TSGSHS.js → record-OG5XJVNK.js} +3 -3
- package/dist/{run-cmd-ZWHGXBEN.js → run-cmd-NY7CLM47.js} +7 -7
- package/dist/{runner-env-WVEXFFFD.js → runner-env-J4VFHBTX.js} +8 -8
- package/dist/{runner-identity-WSL54Z2Q.js → runner-identity-MUO7ZRHD.js} +4 -4
- package/dist/{runner-key-LBLXRBG7.js → runner-key-JVYVQFK7.js} +30 -30
- package/dist/{session-sender-UML25ESX.js → session-sender-YJ7PMFFN.js} +10 -10
- package/dist/{setup-cmd-YE6FV6GI.js → setup-cmd-O4ECRHWY.js} +6 -6
- package/dist/{setup-wiring-6XQZN6IM.js → setup-wiring-6VJJUERY.js} +34 -34
- package/dist/{spec-cmd-IKHLMKLA.js → spec-cmd-ZMB3QZOY.js} +8 -8
- package/dist/{state-ZG4F7Q6L.js → state-HEF6DI57.js} +3 -3
- package/dist/{status-XWUFP5R4.js → status-NHDZIWBE.js} +30 -30
- package/dist/{sync-cmd-WJCLQ7JV.js → sync-cmd-UR5TLWPA.js} +9 -9
- package/dist/{update-steps-ENYN7X5S.js → update-steps-RBOIFI7J.js} +31 -31
- package/dist/{watch-BHICLNXC.js → watch-7AEKFGS5.js} +9 -9
- package/dist/{work-claim-cmd-EQGS4H4Q.js → work-claim-cmd-6VC43BOW.js} +13 -13
- package/dist/{work-cmd-ISLS6N6K.js → work-cmd-IYLWLPZJ.js} +7 -7
- package/dist/{work-comment-cmd-2B646ZAR.js → work-comment-cmd-H5RZ4KDR.js} +9 -9
- package/dist/{work-demo-cmd-GF57UCBF.js → work-demo-cmd-JFHZVTFE.js} +7 -7
- package/dist/{work-logs-cmd-YQYCC3UG.js → work-logs-cmd-EEQKE7ES.js} +7 -7
- package/dist/{work-mock-cmd-BLEOHNZZ.js → work-mock-cmd-B6XM6Z4K.js} +7 -7
- package/dist/{work-needs-attention-cmd-E645DC2W.js → work-needs-attention-cmd-NE57YDJ3.js} +7 -7
- package/dist/{work-no-change-cmd-GABW5JNM.js → work-no-change-cmd-S5OLIU64.js} +7 -7
- package/dist/{work-open-pr-cmd-WBVUB7PW.js → work-open-pr-cmd-FXWO45AI.js} +8 -8
- package/dist/{work-pr-cmd-SSYN6MZO.js → work-pr-cmd-4RQHDMGM.js} +7 -7
- package/dist/{work-proofs-cmd-WKIVE2CA.js → work-proofs-cmd-2G2WR7HO.js} +9 -9
- package/dist/{work-proofs-record-AHT6YSZA.js → work-proofs-record-PT7HXMGR.js} +15 -15
- package/dist/{work-stop-cmd-75IPCSPF.js → work-stop-cmd-NMECBYHT.js} +7 -7
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-review/SKILL.md +8 -5
|
@@ -1,36 +1,36 @@
|
|
|
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-7VW73CPS.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-CSSBYLSW.js';
|
|
6
|
+
import { renderUpdateSteps } from './chunk-OW6YWM4F.js';
|
|
7
7
|
import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
|
|
8
|
-
import { writeFleetState } from './chunk-
|
|
9
|
-
import { writePendingUpdate } from './chunk-
|
|
10
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
11
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
12
|
-
import { leaseTimeLeftMs, createContainerRuntime, 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, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, 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-
|
|
13
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
14
|
-
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-
|
|
15
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
16
|
-
import { RepoFilter } from './chunk-
|
|
8
|
+
import { writeFleetState } from './chunk-ALJMNIHW.js';
|
|
9
|
+
import { writePendingUpdate } from './chunk-XYJHIH4N.js';
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-J6HSOUU6.js';
|
|
11
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-F5DIRRMG.js';
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, 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, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, 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-RZ3SBLIQ.js';
|
|
13
|
+
import { RUNNER_PROTOCOL } from './chunk-SR5UDIQO.js';
|
|
14
|
+
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-46D7LPS3.js';
|
|
15
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-LFGVSVZD.js';
|
|
16
|
+
import { RepoFilter } from './chunk-3DUYDFZS.js';
|
|
17
17
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
18
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
18
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-DIF5NMRF.js';
|
|
19
19
|
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-
|
|
20
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-OWIG6HOF.js';
|
|
21
|
+
import { fetchCommit, readBranchHead, diffBetween } from './chunk-BQUUKECC.js';
|
|
22
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-C2ZGJRMQ.js';
|
|
23
23
|
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 { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
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 { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-
|
|
31
|
-
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-
|
|
24
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-3VORJPTM.js';
|
|
25
|
+
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-FNPCVOB5.js';
|
|
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-5MSUF63A.js';
|
|
27
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-WTX57JCA.js';
|
|
28
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-BKN5HQCX.js';
|
|
29
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-AFSJ4GHZ.js';
|
|
30
|
+
import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-AEGLAS4Y.js';
|
|
31
|
+
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-UTZWCNFV.js';
|
|
32
32
|
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-5XEO7FJW.js';
|
|
33
|
-
import { cleanAttachmentName } from './chunk-
|
|
33
|
+
import { cleanAttachmentName } from './chunk-VEA3VSYK.js';
|
|
34
34
|
import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-MHXUQI67.js';
|
|
35
35
|
import { defaultAgents, resolvePackRoot } from './chunk-MB6OS6TU.js';
|
|
36
36
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
@@ -221,6 +221,8 @@ async function callFleetRoute(ports, memory, room, images, disks) {
|
|
|
221
221
|
free: room.free,
|
|
222
222
|
images,
|
|
223
223
|
disks,
|
|
224
|
+
// The gateway gives back a lease of this machine that the list does not name: a claim whose answer never arrived.
|
|
225
|
+
claims: ports.claims(),
|
|
224
226
|
cliVersion: ports.cliVersion,
|
|
225
227
|
runnerProtocol: RUNNER_PROTOCOL,
|
|
226
228
|
// The first accepted call binds the machine to this host's key; the calls after it are signed and need not repeat it.
|
|
@@ -1248,14 +1250,14 @@ var PROVISION_RETRY_WAIT_MS = 3e5;
|
|
|
1248
1250
|
function retryKeyOf(job) {
|
|
1249
1251
|
return `${job.appId ?? ""}:${job.workItemId ?? String(job.item)}`;
|
|
1250
1252
|
}
|
|
1251
|
-
function noteProvisionRetry(counts, key, reason, nowMs) {
|
|
1253
|
+
function noteProvisionRetry(counts, key, reason, nowMs, askedWaitMs = 0) {
|
|
1252
1254
|
const failures = (counts.get(key) ?? 0) + 1;
|
|
1253
1255
|
if (failures >= PROVISION_RETRY_LIMIT) {
|
|
1254
1256
|
counts.delete(key);
|
|
1255
1257
|
return { kind: "give_up", failures, reason: `${reason} (provision failed this way ${failures} times in a row)` };
|
|
1256
1258
|
}
|
|
1257
1259
|
counts.set(key, failures);
|
|
1258
|
-
const waitMs = PROVISION_RETRY_WAIT_MS * 2 ** (failures - 1);
|
|
1260
|
+
const waitMs = Math.max(PROVISION_RETRY_WAIT_MS * 2 ** (failures - 1), askedWaitMs);
|
|
1259
1261
|
return { kind: "retry", failures, waitMs, hold: { untilMs: nowMs + waitMs, reason } };
|
|
1260
1262
|
}
|
|
1261
1263
|
function provisionRetryHoldActive(hold, nowMs) {
|
|
@@ -1413,7 +1415,7 @@ function mergeAnswers(answers) {
|
|
|
1413
1415
|
const earlier = /* @__PURE__ */ new Set();
|
|
1414
1416
|
const keyOf = (entry) => {
|
|
1415
1417
|
const place = entry.refs?.[0];
|
|
1416
|
-
return [entry.id, entry.result, place?.path ?? ""
|
|
1418
|
+
return [entry.id, entry.result, place?.path ?? ""].join("\0");
|
|
1417
1419
|
};
|
|
1418
1420
|
for (const answer of answers) {
|
|
1419
1421
|
const kept = answer.items.filter((entry) => !earlier.has(keyOf(entry)));
|
|
@@ -1424,14 +1426,39 @@ function mergeAnswers(answers) {
|
|
|
1424
1426
|
const reviewed = lists.length === 0 ? void 0 : [...new Set(lists.flat())];
|
|
1425
1427
|
const verdicts = /* @__PURE__ */ new Map();
|
|
1426
1428
|
for (const answer of answers) {
|
|
1427
|
-
for (const { id, verdict } of answer.previous ?? [])
|
|
1429
|
+
for (const { id, verdict, line } of answer.previous ?? []) {
|
|
1430
|
+
const held = verdicts.get(id);
|
|
1431
|
+
if (held?.verdict !== "open") verdicts.set(id, verdict === "open" && line !== void 0 ? { verdict, line } : { verdict });
|
|
1432
|
+
else if (verdict === "open" && held.line === void 0 && line !== void 0) held.line = line;
|
|
1433
|
+
}
|
|
1428
1434
|
}
|
|
1429
|
-
const previous = answers.some((answer) => answer.previous !== void 0) ? [...verdicts].map(([id,
|
|
1435
|
+
const previous = answers.some((answer) => answer.previous !== void 0) ? [...verdicts].map(([id, said2]) => ({ id, ...said2 })) : void 0;
|
|
1430
1436
|
const failed2 = answers.some((answer) => answer.result === "fail") || items.some((entry) => entry.result === "fail");
|
|
1431
1437
|
const said = answers.filter((answer) => answer.result !== void 0);
|
|
1432
1438
|
const result = failed2 ? "fail" : said.length > 0 && said.every((answer) => answer.result === "pass") ? "pass" : void 0;
|
|
1433
1439
|
return { ...result === void 0 ? {} : { result }, items, ...reviewed === void 0 ? {} : { reviewed }, ...previous === void 0 ? {} : { previous } };
|
|
1434
1440
|
}
|
|
1441
|
+
function carryProblems(merged, stored) {
|
|
1442
|
+
const verdicts = new Map((merged.previous ?? []).map((entry) => [entry.id, entry]));
|
|
1443
|
+
const kept = [];
|
|
1444
|
+
const decided = /* @__PURE__ */ new Set();
|
|
1445
|
+
for (const problem of stored) {
|
|
1446
|
+
if (problem.status === "fixed" || decided.has(problem.id)) continue;
|
|
1447
|
+
decided.add(problem.id);
|
|
1448
|
+
const said = verdicts.get(problem.id);
|
|
1449
|
+
if (problem.status === "not_a_problem" || said?.verdict === "fixed") continue;
|
|
1450
|
+
const line = said?.line ?? problem.line ?? void 0;
|
|
1451
|
+
kept.push({
|
|
1452
|
+
id: problem.id,
|
|
1453
|
+
result: "fail",
|
|
1454
|
+
kind: problem.kind,
|
|
1455
|
+
...problem.title === "" ? {} : { title: problem.title },
|
|
1456
|
+
...problem.reason === "" ? {} : { reason: problem.reason },
|
|
1457
|
+
...problem.path === "" ? {} : { refs: [{ path: problem.path, ...line === void 0 ? {} : { line } }] }
|
|
1458
|
+
});
|
|
1459
|
+
}
|
|
1460
|
+
return { ...merged, items: [...kept, ...merged.items.filter((entry) => !decided.has(entry.id))] };
|
|
1461
|
+
}
|
|
1435
1462
|
function unreviewedFiles(changed, reviewed) {
|
|
1436
1463
|
if (reviewed === void 0) return void 0;
|
|
1437
1464
|
const read = [...new Set(reviewed.map((path) => path.replace(/^\/+/, "").replace(/^outerlayer\/judge\/tree\//, "")))];
|
|
@@ -1501,7 +1528,8 @@ function reviewRecord(input) {
|
|
|
1501
1528
|
reviewers: input.runs.map((run) => ({ name: run.name, turns: run.turns ?? null, seconds: Math.round(run.seconds * 10) / 10, costUsd: run.costUsd ?? null, answered: run.answered })),
|
|
1502
1529
|
files: { read: (files?.read ?? []).slice(0, FILES_MAX), notRead: (files?.missed ?? []).slice(0, FILES_MAX) },
|
|
1503
1530
|
problems,
|
|
1504
|
-
|
|
1531
|
+
// The gateway takes a verdict's id and word. The line a verdict names is the host's, for the problem it keeps.
|
|
1532
|
+
verdicts: (input.merged.previous ?? []).slice(0, CODE_REVIEW_PROBLEMS_MAX).map(({ id, verdict }) => ({ id, verdict }))
|
|
1505
1533
|
};
|
|
1506
1534
|
}
|
|
1507
1535
|
|
|
@@ -1537,6 +1565,7 @@ function readStoredProblems(data) {
|
|
|
1537
1565
|
{
|
|
1538
1566
|
id: row.id,
|
|
1539
1567
|
status: row.status,
|
|
1568
|
+
kind: problemKind(row.kind),
|
|
1540
1569
|
title: typeof row.title === "string" ? row.title : "",
|
|
1541
1570
|
reason: typeof row.reason === "string" ? row.reason : "",
|
|
1542
1571
|
path: typeof row.path === "string" ? row.path : "",
|
|
@@ -1603,7 +1632,7 @@ function reviewAnswerProtocol(brief, answer) {
|
|
|
1603
1632
|
|
|
1604
1633
|
This section comes from the factory host and overrides any other answer format above. \`${JUDGE_DIR}/files.md\` lists the changed files, \`${JUDGE_DIR}/diff.patch\` holds the change and \`${JUDGE_TREE}/\` the files of the commit under review.
|
|
1605
1634
|
|
|
1606
|
-
Write your answer as JSON to \`${answer}\`: \`{"reviewed":["<changed file path>"],"previous":[{"id":"<id in previous.json>","verdict":"fixed"|"open"}],"problems":[{"id":"<a short name>","kind":"bug"|"security"|"data"|"test"|"docs"|"comment","title":"<a short name>","reason":"<one to three sentences>","refs":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line in the commit>}]}]}\`. Each problem is unique by its id in the answer, and names in \`refs\` the file and line it is about. \`reviewed\` lists each changed file you read in full, by its path in the repository. \`previous\` gives a verdict on each defect in \`previous.json\`, when the file exists. \`kind\` is what the problem is about, and \`bug\` when none fits. A reason quotes the decisive line or names what is missing. An answer with no problems lists none.
|
|
1635
|
+
Write your answer as JSON to \`${answer}\`: \`{"reviewed":["<changed file path>"],"previous":[{"id":"<id in previous.json>","verdict":"fixed"|"open","line":<its line in the commit, when open>}],"problems":[{"id":"<a short name>","kind":"bug"|"security"|"data"|"test"|"docs"|"comment","title":"<a short name>","reason":"<one to three sentences>","refs":[{"path":"<path relative to ${JUDGE_TREE}/>","line":<the line in the commit>}]}]}\`. Each problem is unique by its id in the answer, and names in \`refs\` the file and line it is about. \`reviewed\` lists each changed file you read in full, by its path in the repository. \`previous\` gives a verdict on each defect in \`previous.json\`, when the file exists. Never list a defect of \`previous.json\` in \`problems\`: the host keeps each one that is still open. \`kind\` is what the problem is about, and \`bug\` when none fits. A reason quotes the decisive line or names what is missing. An answer with no problems lists none.
|
|
1607
1636
|
`;
|
|
1608
1637
|
}
|
|
1609
1638
|
function parseReviewAnswer(text) {
|
|
@@ -1714,7 +1743,7 @@ async function runReviewJob(input) {
|
|
|
1714
1743
|
const first = reviewed.runs[0];
|
|
1715
1744
|
return await notRun(first.answer?.ok === false ? first.answer.reason : first.end.finished ? "the review wrote no answer file" : first.end.reason);
|
|
1716
1745
|
}
|
|
1717
|
-
const merged = mergeAnswers(answers);
|
|
1746
|
+
const merged = carryProblems(mergeAnswers(answers), stored ?? []);
|
|
1718
1747
|
const finder = await loadCitationFinder();
|
|
1719
1748
|
let ownTree = false;
|
|
1720
1749
|
try {
|
|
@@ -2826,7 +2855,12 @@ async function fleetHeld(state) {
|
|
|
2826
2855
|
}
|
|
2827
2856
|
const jailer = state.config.managed === true && state.deps.blocked?.jailer === void 0 ? await jailerState(state) : void 0;
|
|
2828
2857
|
if (holdWhenBlocked(state, jailer)) return true;
|
|
2829
|
-
|
|
2858
|
+
if (await holdOffForDisk(state)) return true;
|
|
2859
|
+
return holdAfterProvisionRetry(state);
|
|
2860
|
+
}
|
|
2861
|
+
var CLAIM_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
2862
|
+
function fleetClaimIds(ids) {
|
|
2863
|
+
return ids.filter((id) => CLAIM_ID.test(id));
|
|
2830
2864
|
}
|
|
2831
2865
|
function fleetFactsOf(state) {
|
|
2832
2866
|
const probes = {
|
|
@@ -2859,6 +2893,7 @@ function fleetPortsOf(state) {
|
|
|
2859
2893
|
held: () => fleetHeld(state),
|
|
2860
2894
|
draining: () => state.draining === true,
|
|
2861
2895
|
jobs: () => [...state.jobs.values()].map((active) => active.job.size === void 0 ? {} : { size: active.job.size }),
|
|
2896
|
+
claims: () => fleetClaimIds([...state.jobs.values()].map((active) => active.job.claimId)),
|
|
2862
2897
|
facts: () => fleetFactsOf(state),
|
|
2863
2898
|
images: () => heldImages(state.config.configPath),
|
|
2864
2899
|
disks: () => heldItemDisks(state.config.configPath),
|
|
@@ -3199,7 +3234,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
3199
3234
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
3200
3235
|
);
|
|
3201
3236
|
async function tryClaimAndStart(state, item, queue) {
|
|
3202
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
3237
|
+
const { postJson: postJson2 } = await import('./work-cmd-IYLWLPZJ.js');
|
|
3203
3238
|
const log = logOf(state);
|
|
3204
3239
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
3205
3240
|
const claim = await retrySend(
|
|
@@ -4071,6 +4106,9 @@ async function endOnTokenRefusal(state, active, err, repository) {
|
|
|
4071
4106
|
await endJob(state, active, "failed", { stage: "provision", reason });
|
|
4072
4107
|
}
|
|
4073
4108
|
}
|
|
4109
|
+
function waitText(waitMs) {
|
|
4110
|
+
return `${Math.round(waitMs / 6e3) / 10} minutes`;
|
|
4111
|
+
}
|
|
4074
4112
|
async function endOnProvisionFailure(state, active, tokens, took, failure) {
|
|
4075
4113
|
const { reason } = failure;
|
|
4076
4114
|
const log = logOf(state);
|
|
@@ -4087,7 +4125,7 @@ async function endOnProvisionFailure(state, active, tokens, took, failure) {
|
|
|
4087
4125
|
await endJob(state, active, "failed", { stage: "provision", reason });
|
|
4088
4126
|
return;
|
|
4089
4127
|
}
|
|
4090
|
-
const decision = noteProvisionRetry(state.provisionRetries ??= /* @__PURE__ */ new Map(), key, reason, nowOf(state).getTime());
|
|
4128
|
+
const decision = noteProvisionRetry(state.provisionRetries ??= /* @__PURE__ */ new Map(), key, reason, nowOf(state).getTime(), failure.retryAfterMs);
|
|
4091
4129
|
if (decision.kind === "give_up") {
|
|
4092
4130
|
log.error(`${tag} provision failed (${took}): ${reason} \xB7 it failed this way ${decision.failures} times in a row \xB7 ending job as failed`);
|
|
4093
4131
|
await endJob(state, active, "failed", { stage: "provision", reason: decision.reason });
|
|
@@ -4095,7 +4133,7 @@ async function endOnProvisionFailure(state, active, tokens, took, failure) {
|
|
|
4095
4133
|
}
|
|
4096
4134
|
state.provisionRetryHold = decision.hold;
|
|
4097
4135
|
log.error(
|
|
4098
|
-
`${tag} provision failed (${took}): ${reason} \xB7 this can clear by itself, so the runner releases the claim and takes no work for ${decision.waitMs
|
|
4136
|
+
`${tag} provision failed (${took}): ${reason} \xB7 this can clear by itself, so the runner releases the claim and takes no work for ${waitText(decision.waitMs)} (try ${decision.failures} of ${PROVISION_RETRY_LIMIT})`
|
|
4099
4137
|
);
|
|
4100
4138
|
await endJob(state, active, void 0);
|
|
4101
4139
|
}
|
|
@@ -4827,7 +4865,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4827
4865
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4828
4866
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4829
4867
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4830
|
-
return (await import('./check-
|
|
4868
|
+
return (await import('./check-YD3ILIWA.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4831
4869
|
},
|
|
4832
4870
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4833
4871
|
log
|
|
@@ -27,11 +27,12 @@ var CALL_TIMEOUT_MS = 3e4;
|
|
|
27
27
|
var CREATE_ATTEMPTS = 2;
|
|
28
28
|
var LIST_PAGES = 50;
|
|
29
29
|
var SandboxError = class extends Error {
|
|
30
|
-
constructor(message, status, code, reason) {
|
|
30
|
+
constructor(message, status, code, reason, retryAfterMs) {
|
|
31
31
|
super(message);
|
|
32
32
|
this.status = status;
|
|
33
33
|
this.code = code;
|
|
34
34
|
this.reason = reason;
|
|
35
|
+
this.retryAfterMs = retryAfterMs;
|
|
35
36
|
this.name = "SandboxError";
|
|
36
37
|
}
|
|
37
38
|
};
|
|
@@ -43,6 +44,14 @@ function providerMayAnswerLater(err) {
|
|
|
43
44
|
if (err.code === "sandbox_provider_refused") return false;
|
|
44
45
|
return err.status === 0 || err.status === 429 || err.status >= 500;
|
|
45
46
|
}
|
|
47
|
+
var MAX_RETRY_AFTER_MS = 36e5;
|
|
48
|
+
function retryAfterMsOf(header, nowMs) {
|
|
49
|
+
const text = header?.trim() ?? "";
|
|
50
|
+
if (text === "") return void 0;
|
|
51
|
+
const ms = /^\d+$/.test(text) ? Number(text) * 1e3 : Date.parse(text) - nowMs;
|
|
52
|
+
if (!Number.isFinite(ms) || ms <= 0) return void 0;
|
|
53
|
+
return Math.min(ms, MAX_RETRY_AFTER_MS);
|
|
54
|
+
}
|
|
46
55
|
var PAUSE_TIMEOUT_MS = 5 * 6e4;
|
|
47
56
|
function sandboxOf(raw) {
|
|
48
57
|
if (typeof raw.id !== "string" || typeof raw.dataPlaneUrl !== "string") throw new SandboxError("the answer names no sandbox id or data plane", 0);
|
|
@@ -75,7 +84,7 @@ function sandboxCallOf(fetchImpl) {
|
|
|
75
84
|
else if (typeof body.detail === "string") message = body.detail;
|
|
76
85
|
} catch {
|
|
77
86
|
}
|
|
78
|
-
throw new SandboxError(message, response.status, code);
|
|
87
|
+
throw new SandboxError(message, response.status, code, void 0, retryAfterMsOf(response.headers.get("retry-after"), Date.now()));
|
|
79
88
|
};
|
|
80
89
|
}
|
|
81
90
|
function dataPlaneOf(call, headerOf) {
|
|
@@ -882,7 +882,7 @@ async function missingControlPlane(cwd, sessionId, home, env) {
|
|
|
882
882
|
cleanupEarlierCopies(dirs);
|
|
883
883
|
}
|
|
884
884
|
if (!contextPossiblyGoverned(cwd, home)) return void 0;
|
|
885
|
-
const { governanceOf } = await import('./control-plane-launch-
|
|
885
|
+
const { governanceOf } = await import('./control-plane-launch-FC2CG2WV.js');
|
|
886
886
|
if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
|
|
887
887
|
recordMissingContext(dirs, sessionId, home);
|
|
888
888
|
const launcher = `${cliInvocation()} ${LEGACY.legacy.subcommand}`;
|
|
@@ -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-RZ3SBLIQ.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-LFGVSVZD.js';
|
|
5
|
+
import { runnerDir } from './chunk-AEGLAS4Y.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-BKN5HQCX.js';
|
|
4
|
+
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-AEGLAS4Y.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-AEGLAS4Y.js';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -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-A7M4QXVX.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-4OLHKE6K.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-NIHE7WJ6.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';
|
|
@@ -342,7 +342,7 @@ async function runAgentLauncher(agentId, args, deps = {}) {
|
|
|
342
342
|
return 1;
|
|
343
343
|
}
|
|
344
344
|
} else {
|
|
345
|
-
const { resolveLaunchPlane } = await import('./control-plane-launch-
|
|
345
|
+
const { resolveLaunchPlane } = await import('./control-plane-launch-FC2CG2WV.js');
|
|
346
346
|
const plane = env[GOVERNANCE_VARIABLE] === "self" ? { kind: "none" } : await resolveLaunchPlane({ cwd, env, home, fetchImpl: deps.fetchImpl, stderr });
|
|
347
347
|
if (plane.kind === "none") {
|
|
348
348
|
const own2 = ownSkillsDirFor(prefix, cwd, home, /* @__PURE__ */ new Set(), stderr);
|