@outerlayer/cli 0.40.0-next.20261114175703 → 0.40.0-next.20261115004954
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-RAPMR5E7.js → agent-setup-O4SZOHRU.js} +8 -8
- package/dist/{agent-subcommand-FFRNWF6T.js → agent-subcommand-PVTVR4VJ.js} +1 -1
- package/dist/{bridge-2LB6UHW7.js → bridge-7Z6MLB2B.js} +3 -3
- package/dist/{build-N6WNVWOP.js → build-A2WX5O3I.js} +8 -8
- package/dist/{build-disk-RIQDTOML.js → build-disk-ASKLEF5R.js} +6 -6
- package/dist/build-info.json +1 -1
- package/dist/{builder-C2BEDG75.js → builder-ANFJHFZQ.js} +5 -5
- package/dist/{caller-P3HA4LAX.js → caller-KCSJDOWD.js} +8 -8
- package/dist/{check-ARWWJ2ED.js → check-T27N6LQM.js} +40 -40
- package/dist/{chunk-I6MLYOGL.js → chunk-2OSEUHWY.js} +1 -1
- package/dist/{chunk-QAOEOSSE.js → chunk-2UBMDLUF.js} +1 -1
- package/dist/chunk-3FCYURWW.js +41 -0
- package/dist/{chunk-6O5LXVFE.js → chunk-3FWY4H6N.js} +7 -7
- package/dist/{chunk-6AFTYWAB.js → chunk-3WYPBALP.js} +4 -4
- package/dist/{chunk-I2BO2QBH.js → chunk-4ATFANLO.js} +2 -2
- package/dist/{chunk-SWKFTYZI.js → chunk-5D3XOHGK.js} +5 -5
- package/dist/{chunk-QNHHD75P.js → chunk-5I4PLRFO.js} +3 -3
- package/dist/{chunk-PEFV5YIJ.js → chunk-6SOATTHF.js} +3 -3
- package/dist/{chunk-4PH73UWD.js → chunk-6WBI37BR.js} +2 -2
- package/dist/{chunk-IYDHMOTC.js → chunk-AEKBDXWH.js} +3 -3
- package/dist/{chunk-CG44IGEF.js → chunk-ANBDFUHT.js} +1 -1
- package/dist/{chunk-X26S7Y2N.js → chunk-AQEVNB6C.js} +2 -2
- package/dist/{chunk-3GBUF5VG.js → chunk-BXWZCLJ3.js} +1 -1
- package/dist/{chunk-U65ALAP5.js → chunk-C2W453KR.js} +2 -2
- package/dist/{chunk-SHCD5V7G.js → chunk-D5YKPIHV.js} +1 -1
- package/dist/{chunk-ZI5MT4TT.js → chunk-DMAAKDGD.js} +1 -1
- package/dist/{chunk-3ZUW6SKU.js → chunk-FDENE6LM.js} +2 -2
- package/dist/{chunk-RM6UGUWJ.js → chunk-FMYWIBBW.js} +2 -2
- package/dist/{chunk-BN6NRJ66.js → chunk-FZXC3WER.js} +54 -33
- package/dist/chunk-HMVOTDEQ.js +129 -0
- package/dist/{chunk-E74YOVYI.js → chunk-IB4SVQNB.js} +1 -1
- package/dist/{chunk-PZNWC2RV.js → chunk-IMMWZV57.js} +2 -2
- package/dist/{chunk-EANGK4AM.js → chunk-IT7RFVWR.js} +5 -5
- package/dist/{chunk-Q2SX6RZJ.js → chunk-J4WAHOXM.js} +1 -1
- package/dist/{chunk-VLI43TVN.js → chunk-KJNI2WWR.js} +2 -2
- package/dist/{chunk-PQOIDBWE.js → chunk-KTHGBFIH.js} +2 -2
- package/dist/{chunk-V6QH7AIR.js → chunk-MHFVGML3.js} +2 -2
- package/dist/{chunk-T7HMGQH2.js → chunk-MP6INWPC.js} +3 -3
- package/dist/{chunk-7QDAAW2N.js → chunk-N6DWNOEF.js} +1 -1
- package/dist/{chunk-IRWP4HF7.js → chunk-NBNZFLKJ.js} +1 -1
- package/dist/{chunk-PIXRISH7.js → chunk-NSO6IY24.js} +34 -29
- package/dist/{chunk-7HCMWGCV.js → chunk-PIBJDYIC.js} +5 -5
- package/dist/{chunk-ZKZD4CGD.js → chunk-PNZMJFVP.js} +4 -4
- package/dist/{chunk-FTV63SCQ.js → chunk-PUUQKA3W.js} +17 -6
- package/dist/{chunk-3ZYSB2V7.js → chunk-R7VMDX33.js} +3 -3
- package/dist/{chunk-3LORQC4Z.js → chunk-RSW5AXPT.js} +1 -1
- package/dist/{chunk-34IH7AVH.js → chunk-ST5S3P2C.js} +2 -2
- package/dist/{chunk-CYZQDC6N.js → chunk-T3X3FZIR.js} +1 -1
- package/dist/{chunk-RIZCV7GX.js → chunk-TG3O6CAF.js} +5 -5
- package/dist/{chunk-LJRO53R4.js → chunk-TQDXHGUF.js} +2 -2
- package/dist/{chunk-6G6FOCJW.js → chunk-TTHF4LOS.js} +3 -3
- package/dist/{chunk-3JVYMD4G.js → chunk-TXKHD4Q6.js} +3 -2
- package/dist/{chunk-RC5ENCHK.js → chunk-ULENFLVA.js} +3 -3
- package/dist/{chunk-JEW6WDGJ.js → chunk-VGV3J5CX.js} +1 -1
- package/dist/{chunk-K4N6Z4A2.js → chunk-VY2MH6VX.js} +5 -5
- package/dist/{chunk-4J5KDIHZ.js → chunk-W3K7TKYW.js} +3 -3
- package/dist/{chunk-WW6LIFKM.js → chunk-WFBHEF4N.js} +15 -10
- package/dist/{chunk-IE75TT5E.js → chunk-WNFQV5SL.js} +1 -1
- package/dist/{chunk-ZM7AL7UV.js → chunk-WR2TR6BC.js} +6 -3
- package/dist/{chunk-DZCELAHC.js → chunk-X5WH346T.js} +2 -2
- package/dist/{chunk-SWYBUMUL.js → chunk-Y2US5RDK.js} +1 -1
- package/dist/{chunk-FF5TPCQ7.js → chunk-Y6FNWOKT.js} +10 -10
- package/dist/{chunk-GD2LIK6W.js → chunk-YRH4DL4O.js} +3 -3
- package/dist/{chunk-7LZYS7BO.js → chunk-YY64D4FA.js} +1 -1
- package/dist/{claude-launcher-DQQX7ZEE.js → claude-launcher-FOPWME6I.js} +1 -1
- package/dist/{cli-VPYCEJZT.js → cli-UBD53T43.js} +149 -141
- package/dist/{command-EQ4LIIPO.js → command-FL2WIRXN.js} +58 -34
- package/dist/{config-334GXURH.js → config-PFQRCT5B.js} +7 -7
- package/dist/{connect-cmd-XPSZXYXO.js → connect-cmd-IK3Z2YH2.js} +6 -6
- package/dist/{container-start-ZX2HJUEQ.js → container-start-CFNWJMHZ.js} +32 -32
- package/dist/{context-show-cmd-SZMHOFFV.js → context-show-cmd-DJZC5TRN.js} +7 -7
- package/dist/{control-plane-launch-YQOT2EQL.js → control-plane-launch-P2E55QZ4.js} +6 -6
- package/dist/{demo-record-cmd-JB5VCPRW.js → demo-record-cmd-VBWYXYOF.js} +3 -3
- package/dist/{demo-voice-cmd-BFNOUEP3.js → demo-voice-cmd-W6FHJTMH.js} +12 -12
- package/dist/{docker-UZYTRFEQ.js → docker-WMGXGZFP.js} +5 -5
- package/dist/{doctor-J4DD52YY.js → doctor-HDHZV4DG.js} +36 -36
- package/dist/{emit-artifact-cmd-XSPHZU4L.js → emit-artifact-cmd-MT4M3ILS.js} +11 -11
- package/dist/{emit-criteria-cmd-TE4WI4NC.js → emit-criteria-cmd-M5QRMNGB.js} +8 -8
- package/dist/{emit-demo-cmd-D6Q4CHLY.js → emit-demo-cmd-VKD2CSQH.js} +12 -12
- package/dist/{emit-finding-cmd-OR6SJPFW.js → emit-finding-cmd-UYGLPQJE.js} +8 -8
- package/dist/{emit-result-cmd-AXFTHFH5.js → emit-result-cmd-GH4KOPNC.js} +10 -10
- package/dist/{emit-step-cmd-DXXTCZON.js → emit-step-cmd-EMCVWILY.js} +8 -8
- package/dist/{exec-client-XQCKLD5N.js → exec-client-BJ4FHM2I.js} +4 -4
- package/dist/{find-unit-5G5DI5KK.js → find-unit-VUV76BIL.js} +9 -9
- package/dist/{findings-cmd-Q47Z5SOI.js → findings-cmd-3P7EWNHA.js} +8 -8
- package/dist/{fleet-readiness-E7GE6OEY.js → fleet-readiness-3JMW2XNT.js} +6 -6
- package/dist/{governing-source-PZHH5KQO.js → governing-source-6HS6QVTK.js} +10 -10
- package/dist/{guest-init-4E2JSHZI.js → guest-init-ZZ3QGRFT.js} +5 -5
- package/dist/{hook-fast-CKQWLT6W.js → hook-fast-A5LADBOU.js} +1 -1
- package/dist/{host-checks-3PYYUHVK.js → host-checks-6BJKUV4I.js} +30 -30
- package/dist/{pending-35UMAGND.js → host-key-J24PEPIK.js} +4 -4
- package/dist/{image-tag-CPEVAJDD.js → image-tag-7PALJT67.js} +4 -4
- package/dist/index.js +4 -4
- package/dist/{init-4J5U5KA7.js → init-KKOUW5M7.js} +30 -30
- package/dist/{init-OBLM3BDH.js → init-KRJU32VG.js} +30 -30
- package/dist/{init-agent-ZYT24CNV.js → init-agent-KTD5YU6D.js} +30 -30
- package/dist/{init-cmd-4U45BP3X.js → init-cmd-UDWRDVBE.js} +11 -11
- package/dist/{init-update-X4W5KWHZ.js → init-update-QDEM6MO5.js} +9 -9
- package/dist/{install-cmd-AKZE7R2E.js → install-cmd-WQ2KFKHI.js} +6 -6
- package/dist/launch-agent-NC7OZQGZ.js +26 -0
- package/dist/launch-agent-host-VVMPSX3S.js +6 -0
- package/dist/{logs-BQC5UDSI.js → logs-6DZKJJ22.js} +3 -3
- package/dist/{loop-7GZBLOZ6.js → loop-ZYC5NTQG.js} +39 -39
- package/dist/{machine-DP32IH24.js → machine-M5UU7HWR.js} +30 -30
- package/dist/{mcp-serve-cmd-4DDHV5LT.js → mcp-serve-cmd-2KAWL7JK.js} +5 -5
- package/dist/{paths-B5GNVTVC.js → paths-BZKRN5J3.js} +3 -3
- package/dist/{host-key-Q3OKQTJF.js → pending-5Y4PJTOZ.js} +4 -4
- package/dist/{pidfile-ERHOAFUE.js → pidfile-4C23LXPN.js} +4 -4
- package/dist/{real-deps-QX5YH7FG.js → real-deps-B7NMEDXM.js} +1 -1
- package/dist/{record-GI6LXXNB.js → record-ABSHWHSO.js} +4 -4
- package/dist/{relay-4XYITTBN.js → relay-NZWG6R4J.js} +1 -1
- package/dist/{relay-protocol-6Y7GDQVE.js → relay-protocol-7ZN7CVXP.js} +1 -1
- package/dist/{run-cmd-WEZLK3FS.js → run-cmd-C35Z5ULW.js} +8 -8
- package/dist/{runner-env-4PF5MNVO.js → runner-env-AJWM62J2.js} +9 -9
- package/dist/{runner-identity-EM4EP5QK.js → runner-identity-PIEZDCFI.js} +5 -5
- package/dist/{runner-key-VAQXB2WA.js → runner-key-JAMOE6OP.js} +30 -30
- package/dist/{session-sender-KAZJBZMV.js → session-sender-UHBTHRJP.js} +11 -11
- package/dist/{spec-cmd-OIIYOA66.js → spec-cmd-BLQBWO7J.js} +9 -9
- package/dist/{state-Z3LM7LLU.js → state-RZ2GSI4R.js} +4 -4
- package/dist/{status-AAEAC2GN.js → status-QKRBAWZX.js} +33 -32
- package/dist/{sync-cmd-MPVBCSMA.js → sync-cmd-LTNVLBSE.js} +10 -10
- package/dist/{update-steps-AVUMGWFH.js → update-steps-LCKPYIWI.js} +31 -31
- package/dist/{watch-PNFCUWXE.js → watch-RLXCOXF2.js} +10 -10
- package/dist/{work-claim-cmd-E6I6VZNS.js → work-claim-cmd-D7JLO57W.js} +14 -14
- package/dist/{work-cmd-KTDBSYL6.js → work-cmd-LPNNXYDQ.js} +8 -8
- package/dist/{work-comment-cmd-AXS7R6JB.js → work-comment-cmd-3HJLN4QH.js} +10 -10
- package/dist/{work-demo-cmd-L57K47U2.js → work-demo-cmd-YALQVN2X.js} +8 -8
- package/dist/{work-logs-cmd-K5EEZ5XP.js → work-logs-cmd-2HG4RAQI.js} +8 -8
- package/dist/{work-mock-cmd-KQWXIC72.js → work-mock-cmd-JVGAS2SE.js} +8 -8
- package/dist/{work-needs-attention-cmd-2ISFSCF3.js → work-needs-attention-cmd-VKGSHNKR.js} +8 -8
- package/dist/{work-no-change-cmd-PBVT7YPY.js → work-no-change-cmd-HQAHGBQK.js} +8 -8
- package/dist/{work-open-pr-cmd-Q4JLBNFW.js → work-open-pr-cmd-TZE4UMHK.js} +9 -9
- package/dist/{work-pr-cmd-MSZGMFKN.js → work-pr-cmd-XLJCLQ6X.js} +8 -8
- package/dist/{work-proofs-cmd-CVTO6MPT.js → work-proofs-cmd-P5NOMUJQ.js} +9 -9
- package/dist/{work-proofs-record-RCQCMMKT.js → work-proofs-record-MPBQ3FHV.js} +15 -15
- package/dist/{work-stop-cmd-NGRBDCJF.js → work-stop-cmd-CDWNUCMO.js} +8 -8
- package/package.json +1 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
4
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-6O5LXVFE.js';
|
|
5
3
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
4
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-3FWY4H6N.js';
|
|
5
|
+
import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
|
|
6
|
+
import { writeFleetState } from './chunk-YY64D4FA.js';
|
|
7
|
+
import { writePendingUpdate } from './chunk-RSW5AXPT.js';
|
|
8
|
+
import { renderUpdateSteps } from './chunk-AEKBDXWH.js';
|
|
9
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-T3X3FZIR.js';
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-WFBHEF4N.js';
|
|
11
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-WR2TR6BC.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, 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, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, 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-NSO6IY24.js';
|
|
13
13
|
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-BY4SXNUL.js';
|
|
14
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
15
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
16
|
-
import { RepoFilter } from './chunk-
|
|
14
|
+
import { RUNNER_PROTOCOL } from './chunk-2UBMDLUF.js';
|
|
15
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-PNZMJFVP.js';
|
|
16
|
+
import { RepoFilter } from './chunk-IT7RFVWR.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-N6DWNOEF.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-FMYWIBBW.js';
|
|
21
|
+
import { fetchCommit, readBranchHead, diffBetween } from './chunk-5D3XOHGK.js';
|
|
22
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-DMAAKDGD.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, 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-
|
|
32
|
-
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-
|
|
33
|
-
import { cleanAttachmentName } from './chunk-
|
|
24
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-VY2MH6VX.js';
|
|
25
|
+
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-TG3O6CAF.js';
|
|
26
|
+
import { keyRunnerFactory, 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-MP6INWPC.js';
|
|
27
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-ST5S3P2C.js';
|
|
28
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-3WYPBALP.js';
|
|
29
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-D5YKPIHV.js';
|
|
30
|
+
import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-2OSEUHWY.js';
|
|
31
|
+
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-IB4SVQNB.js';
|
|
32
|
+
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-PUUQKA3W.js';
|
|
33
|
+
import { cleanAttachmentName } from './chunk-ANBDFUHT.js';
|
|
34
34
|
import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-R2XWZSLR.js';
|
|
35
35
|
import { defaultAgents, resolvePackRoot } from './chunk-OZG4BNC6.js';
|
|
36
36
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
@@ -68,6 +68,18 @@ function fleetRoom(facts, jobs, held, draining) {
|
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
+
function sandboxFleetRoom(concurrency, jobs, held, draining) {
|
|
72
|
+
if (draining || held) return { total: { ...NONE }, free: { ...NONE } };
|
|
73
|
+
const large = BUILD_SIZES.large;
|
|
74
|
+
const total = { memoryGiB: concurrency * large.memoryGiB, vcpus: concurrency * large.vcpus, diskGB: concurrency * large.diskGB };
|
|
75
|
+
if (jobs.length >= concurrency) return { total, free: { ...NONE } };
|
|
76
|
+
const sizes = jobs.map((job) => BUILD_SIZES[job.size ?? "large"]);
|
|
77
|
+
const sum = (key) => sizes.reduce((all, size) => all + size[key], 0);
|
|
78
|
+
return {
|
|
79
|
+
total,
|
|
80
|
+
free: { memoryGiB: total.memoryGiB - sum("memoryGiB"), vcpus: total.vcpus - sum("vcpus"), diskGB: total.diskGB - sum("diskGB") }
|
|
81
|
+
};
|
|
82
|
+
}
|
|
71
83
|
var MAX_IMAGES = 500;
|
|
72
84
|
function names(path) {
|
|
73
85
|
try {
|
|
@@ -128,6 +140,14 @@ function record(ports, memory) {
|
|
|
128
140
|
} catch {
|
|
129
141
|
}
|
|
130
142
|
}
|
|
143
|
+
function roomOf(ports, held) {
|
|
144
|
+
const config = ports.config();
|
|
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();
|
|
150
|
+
}
|
|
131
151
|
async function checkFleet(ports, memory) {
|
|
132
152
|
const config = ports.config();
|
|
133
153
|
const at = ports.now().toISOString();
|
|
@@ -244,10 +264,10 @@ async function runFleetTick(ports, memory) {
|
|
|
244
264
|
if (!await checkFleet(ports, memory)) return;
|
|
245
265
|
const held = await ports.held();
|
|
246
266
|
memory.held = held;
|
|
247
|
-
const images = ports
|
|
267
|
+
const images = imagesOf(ports);
|
|
248
268
|
const disks = ports.disks();
|
|
249
269
|
for (let called = 0; called < MAX_CLAIMS_PER_POLL; called++) {
|
|
250
|
-
const room =
|
|
270
|
+
const room = roomOf(ports, held);
|
|
251
271
|
const answer = await callFleetRoute(ports, memory, room, images, disks);
|
|
252
272
|
if (answer === void 0) return;
|
|
253
273
|
memory.last = {
|
|
@@ -284,8 +304,8 @@ async function runFleetKeepalive(ports, memory, minGapMs) {
|
|
|
284
304
|
if (memory.calling) return;
|
|
285
305
|
if (memory.lastAnsweredMs !== void 0 && ports.now().getTime() - memory.lastAnsweredMs < minGapMs) return;
|
|
286
306
|
if (memory.keyDoubted || fleetConfigProblem(ports.config()) !== void 0) return;
|
|
287
|
-
const room =
|
|
288
|
-
const answer = await callFleetRoute(ports, memory, { total: room.total, free: NO_ROOM }, ports
|
|
307
|
+
const room = roomOf(ports, memory.held);
|
|
308
|
+
const answer = await callFleetRoute(ports, memory, { total: room.total, free: NO_ROOM }, imagesOf(ports), ports.disks());
|
|
289
309
|
if (answer === void 0) return;
|
|
290
310
|
memory.last = {
|
|
291
311
|
calledAt: ports.now().toISOString(),
|
|
@@ -3156,7 +3176,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
3156
3176
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
3157
3177
|
);
|
|
3158
3178
|
async function tryClaimAndStart(state, item, queue) {
|
|
3159
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
3179
|
+
const { postJson: postJson2 } = await import('./work-cmd-LPNNXYDQ.js');
|
|
3160
3180
|
const log = logOf(state);
|
|
3161
3181
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
3162
3182
|
const claim = await retrySend(
|
|
@@ -4525,6 +4545,7 @@ async function adoptTrackedSandboxes(state, jobsDirPath) {
|
|
|
4525
4545
|
found = await rejoinSandboxBuild({
|
|
4526
4546
|
runtime,
|
|
4527
4547
|
config: configForJob(state.config, job),
|
|
4548
|
+
organizationId: job.organizationId,
|
|
4528
4549
|
own,
|
|
4529
4550
|
jobDir: dirPath,
|
|
4530
4551
|
itemKey: job.itemKey,
|
|
@@ -4773,7 +4794,7 @@ async function start(configPath, deps = { fetchImpl: fetch }) {
|
|
|
4773
4794
|
}
|
|
4774
4795
|
async function startRunner(configPath, deps, startup) {
|
|
4775
4796
|
const log = deps.log ??= createRunnerLog(deps.now ?? (() => /* @__PURE__ */ new Date()));
|
|
4776
|
-
takeAgentCredentials(process.env, hooksOf(configPath), deps.agents);
|
|
4797
|
+
takeAgentCredentials(process.env, hooksOf(configPath), deps.agents, dirname(configPath));
|
|
4777
4798
|
const update = deps.update;
|
|
4778
4799
|
if (update !== void 0) {
|
|
4779
4800
|
const outcome = await onStartUnderMarker({
|
|
@@ -4782,7 +4803,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4782
4803
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4783
4804
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4784
4805
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4785
|
-
return (await import('./check-
|
|
4806
|
+
return (await import('./check-T27N6LQM.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4786
4807
|
},
|
|
4787
4808
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4788
4809
|
log
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
import { LAUNCH_AGENT_ENV } from './chunk-TXKHD4Q6.js';
|
|
4
|
+
import { execStartArgv } from './chunk-WR2TR6BC.js';
|
|
5
|
+
import { DEFAULT_UNIT_NAME } from './chunk-PNZMJFVP.js';
|
|
6
|
+
import { runnerDir } from './chunk-2OSEUHWY.js';
|
|
7
|
+
import { join, dirname } from 'path';
|
|
8
|
+
|
|
9
|
+
createRequire(import.meta.url);
|
|
10
|
+
var LABEL_PREFIX = "ai.outerlayer.sandbox-runner";
|
|
11
|
+
var STOP_MARGIN_MINUTES = 10;
|
|
12
|
+
function sandboxAgentLabel(unitName = DEFAULT_UNIT_NAME) {
|
|
13
|
+
return `${LABEL_PREFIX}.${unitName}`;
|
|
14
|
+
}
|
|
15
|
+
function agentsDir(home) {
|
|
16
|
+
return join(home, "Library", "LaunchAgents");
|
|
17
|
+
}
|
|
18
|
+
function sandboxAgentPath(home, unitName = DEFAULT_UNIT_NAME) {
|
|
19
|
+
return join(agentsDir(home), `${sandboxAgentLabel(unitName)}.plist`);
|
|
20
|
+
}
|
|
21
|
+
var escapeXml = (text) => text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
22
|
+
function pathOf(nodePath, host) {
|
|
23
|
+
const git = host.which("git");
|
|
24
|
+
const dirs = [dirname(nodePath), ...git === void 0 ? [] : [dirname(git)], "/usr/bin", "/bin", "/usr/sbin", "/sbin"];
|
|
25
|
+
return [...new Set(dirs)].join(":");
|
|
26
|
+
}
|
|
27
|
+
function plistText(request, host) {
|
|
28
|
+
const log = join(runnerDir(request.configPath), "runner.log");
|
|
29
|
+
const args = execStartArgv(request.configPath, request.nodePath).map((word) => ` <string>${escapeXml(word)}</string>
|
|
30
|
+
`).join("");
|
|
31
|
+
return `<?xml version="1.0" encoding="UTF-8"?>
|
|
32
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
33
|
+
<plist version="1.0">
|
|
34
|
+
<dict>
|
|
35
|
+
<key>Label</key>
|
|
36
|
+
<string>${escapeXml(sandboxAgentLabel(request.unitName))}</string>
|
|
37
|
+
<key>ProgramArguments</key>
|
|
38
|
+
<array>
|
|
39
|
+
${args} </array>
|
|
40
|
+
<key>EnvironmentVariables</key>
|
|
41
|
+
<dict>
|
|
42
|
+
<key>PATH</key>
|
|
43
|
+
<string>${escapeXml(pathOf(request.nodePath, host))}</string>
|
|
44
|
+
<key>${LAUNCH_AGENT_ENV}</key>
|
|
45
|
+
<string>1</string>
|
|
46
|
+
</dict>
|
|
47
|
+
<key>RunAtLoad</key>
|
|
48
|
+
<true/>
|
|
49
|
+
<key>KeepAlive</key>
|
|
50
|
+
<dict>
|
|
51
|
+
<key>SuccessfulExit</key>
|
|
52
|
+
<false/>
|
|
53
|
+
</dict>
|
|
54
|
+
<key>ThrottleInterval</key>
|
|
55
|
+
<integer>30</integer>
|
|
56
|
+
<key>ExitTimeOut</key>
|
|
57
|
+
<integer>${(request.timeLimitMinutes + STOP_MARGIN_MINUTES) * 60}</integer>
|
|
58
|
+
<key>StandardOutPath</key>
|
|
59
|
+
<string>${escapeXml(log)}</string>
|
|
60
|
+
<key>StandardErrorPath</key>
|
|
61
|
+
<string>${escapeXml(log)}</string>
|
|
62
|
+
</dict>
|
|
63
|
+
</plist>
|
|
64
|
+
`;
|
|
65
|
+
}
|
|
66
|
+
var outcome = (ok, state, lines, unit) => ({ ok, state, lines, ...unit === void 0 ? {} : { unit } });
|
|
67
|
+
var isLoaded = (host, label) => host.launchctl(["print", `gui/${host.uid()}/${label}`]).status === 0;
|
|
68
|
+
function installSandboxAgent(request, host) {
|
|
69
|
+
const unitName = request.unitName ?? DEFAULT_UNIT_NAME;
|
|
70
|
+
const label = sandboxAgentLabel(unitName);
|
|
71
|
+
const path = sandboxAgentPath(request.home, unitName);
|
|
72
|
+
const text = plistText(request, host);
|
|
73
|
+
if (request.print === true) return outcome(true, "printed", [], text);
|
|
74
|
+
const domain = `gui/${host.uid()}`;
|
|
75
|
+
const existing = host.read(path);
|
|
76
|
+
const loaded = isLoaded(host, label);
|
|
77
|
+
if (existing === text && loaded && request.restart === true) {
|
|
78
|
+
if (request.buildsRunning) return outcome(true, "pending-restart", [`the launch agent ${label} is current; a build is running, so it was not restarted and reads the credential files at its next restart`]);
|
|
79
|
+
if (host.launchctl(["kickstart", "-k", `${domain}/${label}`]).status !== 0) return outcome(false, "refused", [`the launch agent ${label} could not be restarted: run \`launchctl kickstart -k ${domain}/${label}\``]);
|
|
80
|
+
return outcome(true, "updated", [`restarted the launch agent ${label}, so the runner reads the credential files`]);
|
|
81
|
+
}
|
|
82
|
+
if (existing === text && loaded) return outcome(true, "current", [`the launch agent ${label} is current and loaded: the file already matches the config, so nothing was changed`]);
|
|
83
|
+
try {
|
|
84
|
+
host.write(path, text);
|
|
85
|
+
} catch (err) {
|
|
86
|
+
return outcome(false, "refused", [`${path} could not be written (${err instanceof Error ? err.message : String(err)}), so no launch agent is set up`]);
|
|
87
|
+
}
|
|
88
|
+
if (loaded && request.buildsRunning) {
|
|
89
|
+
return outcome(true, "pending-restart", [`rewrote ${path}; a build is running, so the agent was not loaded again and the new file applies at the next login`]);
|
|
90
|
+
}
|
|
91
|
+
if (loaded) host.launchctl(["bootout", `${domain}/${label}`]);
|
|
92
|
+
const booted = host.launchctl(["bootstrap", domain, path]);
|
|
93
|
+
if (booted.status !== 0) {
|
|
94
|
+
const reason = booted.stderr.trim() === "" ? `exit status ${booted.status}` : booted.stderr.trim();
|
|
95
|
+
return outcome(false, "refused", [
|
|
96
|
+
`the launch agent ${label} is not loaded: \`launchctl bootstrap ${domain} ${path}\` failed (${reason}). The file is in place, and the runner starts at your next login. To load it now, run \`outerlayer runner install --service\` from a session at the Mac's screen, because launchd refuses a load over SSH with no session at the screen`
|
|
97
|
+
]);
|
|
98
|
+
}
|
|
99
|
+
return outcome(true, loaded ? "updated" : "installed", [`installed and loaded the launch agent ${label}: the runner starts at login and after a crash`]);
|
|
100
|
+
}
|
|
101
|
+
function uninstallSandboxAgent(request, host) {
|
|
102
|
+
const unitName = request.unitName ?? DEFAULT_UNIT_NAME;
|
|
103
|
+
const label = sandboxAgentLabel(unitName);
|
|
104
|
+
const path = sandboxAgentPath(request.home, unitName);
|
|
105
|
+
const loaded = isLoaded(host, label);
|
|
106
|
+
if (!loaded && host.read(path) === void 0) return outcome(true, "absent", [`no launch agent ${label} is installed, so there is nothing to remove`]);
|
|
107
|
+
if (loaded && host.launchctl(["bootout", `gui/${host.uid()}/${label}`]).status !== 0) {
|
|
108
|
+
return outcome(false, "refused", [`the launch agent ${label} could not be unloaded, so it was not removed: run \`launchctl bootout gui/${host.uid()}/${label}\`, then this command again`]);
|
|
109
|
+
}
|
|
110
|
+
try {
|
|
111
|
+
host.remove(path);
|
|
112
|
+
} catch (err) {
|
|
113
|
+
return outcome(false, "refused", [`${path} could not be removed (${err instanceof Error ? err.message : String(err)})`]);
|
|
114
|
+
}
|
|
115
|
+
return outcome(true, "removed", [`removed the launch agent ${label}`]);
|
|
116
|
+
}
|
|
117
|
+
function sandboxAgentStatus(configPath, home, host) {
|
|
118
|
+
const directory = agentsDir(home);
|
|
119
|
+
for (const name of host.list(directory)) {
|
|
120
|
+
if (!name.startsWith(`${LABEL_PREFIX}.`) || !name.endsWith(".plist")) continue;
|
|
121
|
+
const text = host.read(join(directory, name));
|
|
122
|
+
if (text?.includes(`<string>${escapeXml(configPath)}</string>`) !== true) continue;
|
|
123
|
+
const label = name.slice(0, -".plist".length);
|
|
124
|
+
return { label, loaded: isLoaded(host, label) };
|
|
125
|
+
}
|
|
126
|
+
return void 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export { installSandboxAgent, sandboxAgentStatus, uninstallSandboxAgent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-
|
|
3
|
+
import { builtInEnvironment, managedAgentCredential, agentCredential, builtInNames, TARGET_TUNNEL, TARGET_LEASE, destinationTarget, builtInDestinations, destinationPort } from './chunk-PUUQKA3W.js';
|
|
4
4
|
import { strippedVariables } from './chunk-R2XWZSLR.js';
|
|
5
5
|
import { defaultAgents } from './chunk-OZG4BNC6.js';
|
|
6
6
|
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { PROXY_WARNING_FLAG } from './chunk-
|
|
4
|
-
import { RELAY_ID, RELAY_USER } from './chunk-
|
|
3
|
+
import { PROXY_WARNING_FLAG } from './chunk-IB4SVQNB.js';
|
|
4
|
+
import { RELAY_ID, RELAY_USER } from './chunk-PUUQKA3W.js';
|
|
5
5
|
import { imageInstalls, GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL_REVISION, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, HEADLESS_SHELL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_VERSION } from './chunk-R2XWZSLR.js';
|
|
6
6
|
import { defaultAgents } from './chunk-OZG4BNC6.js';
|
|
7
7
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { uploadSpooledSteps } from './chunk-
|
|
3
|
+
import { uploadSpooledSteps } from './chunk-KJNI2WWR.js';
|
|
4
4
|
import { LaunchFilter } from './chunk-C2PZOLN7.js';
|
|
5
5
|
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-TDTWNGCO.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-BXWZCLJ3.js';
|
|
8
8
|
import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-HWVMRETT.js';
|
|
9
|
-
import { signerFor, signRunnerRequest } from './chunk-
|
|
10
|
-
import { SCRUB_ENV_VARIABLE } from './chunk-
|
|
11
|
-
import { writeSyncStatus, logHookError, spoolDir } from './chunk-
|
|
9
|
+
import { signerFor, signRunnerRequest } from './chunk-D5YKPIHV.js';
|
|
10
|
+
import { SCRUB_ENV_VARIABLE } from './chunk-IB4SVQNB.js';
|
|
11
|
+
import { writeSyncStatus, logHookError, spoolDir } from './chunk-ANBDFUHT.js';
|
|
12
12
|
import { readLatestProvenanceForSession, readContextProvenance } from './chunk-545P7JY7.js';
|
|
13
13
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
14
14
|
import { hookExecSpoolPath } from './chunk-RNCCRUT5.js';
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { sanitizeTerminal } from './chunk-TDTWNGCO.js';
|
|
4
4
|
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-TQZHYLX5.js';
|
|
5
5
|
import { DEFAULT_DASHBOARD } from './chunk-ND6JA3K5.js';
|
|
6
|
-
import { cliFetch, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-BXWZCLJ3.js';
|
|
7
7
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
8
8
|
import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-7RDHN455.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-AQEVNB6C.js';
|
|
6
6
|
import { acquireSpoolLockAt } from './chunk-TDTWNGCO.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-BXWZCLJ3.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
4
|
-
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-
|
|
3
|
+
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-IB4SVQNB.js';
|
|
4
|
+
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-PUUQKA3W.js';
|
|
5
5
|
import { defaultAgents } from './chunk-OZG4BNC6.js';
|
|
6
6
|
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
7
7
|
import { symlinkSync, unlinkSync } from 'fs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import { spoolDir } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-IT7RFVWR.js';
|
|
4
|
+
import { spoolDir } from './chunk-ANBDFUHT.js';
|
|
5
5
|
import { parseRunEnv, parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
6
6
|
import { sessionFolderIn, legacyAgent } from './chunk-OZG4BNC6.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
5
|
-
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-
|
|
3
|
+
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-ST5S3P2C.js';
|
|
4
|
+
import { parseSize } from './chunk-3WYPBALP.js';
|
|
5
|
+
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-IB4SVQNB.js';
|
|
6
6
|
import { builderDiskPinned } from './chunk-R2XWZSLR.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
|
|
@@ -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-2OSEUHWY.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-TDTWNGCO.js';
|
|
4
4
|
import { isAgentsMdLayout } from './chunk-TQZHYLX5.js';
|
|
5
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-BXWZCLJ3.js';
|
|
6
6
|
import { versionAtLeast } from './chunk-SF2TBJBP.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
8
|
import { machineSkillsState, staleAgentSkills } from './chunk-ULDQ7IM5.js';
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { MAX_TEST_FILE_BYTES, itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems } from './chunk-BY4SXNUL.js';
|
|
4
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
4
|
+
import { RUNNER_PROTOCOL } from './chunk-2UBMDLUF.js';
|
|
5
5
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
7
|
-
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-
|
|
7
|
+
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-ULENFLVA.js';
|
|
8
8
|
import { upgradedStarterText } from './chunk-ADXJXXGU.js';
|
|
9
|
-
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-
|
|
10
|
-
import { writeDockerClientConfig } from './chunk-
|
|
11
|
-
import { senderPidfile } from './chunk-
|
|
12
|
-
import { installScrubContext } from './chunk-
|
|
9
|
+
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-6SOATTHF.js';
|
|
10
|
+
import { writeDockerClientConfig } from './chunk-WNFQV5SL.js';
|
|
11
|
+
import { senderPidfile } from './chunk-MHFVGML3.js';
|
|
12
|
+
import { installScrubContext } from './chunk-IT7RFVWR.js';
|
|
13
13
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
14
|
-
import { runnerImageVersion } from './chunk-
|
|
15
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-
|
|
14
|
+
import { runnerImageVersion } from './chunk-N6DWNOEF.js';
|
|
15
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-FMYWIBBW.js';
|
|
16
16
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
17
|
-
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-
|
|
18
|
-
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-
|
|
17
|
+
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, readRepositoryRecipe, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-5D3XOHGK.js';
|
|
18
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-IMMWZV57.js';
|
|
19
19
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
20
20
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
21
|
-
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-
|
|
22
|
-
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-
|
|
23
|
-
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-
|
|
24
|
-
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-
|
|
25
|
-
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-
|
|
26
|
-
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-
|
|
27
|
-
import { said, NETWORK_HELPER_MEMORY, firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, identityRunArgs, SAVED_STATE_LABEL } from './chunk-
|
|
21
|
+
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-VGV3J5CX.js';
|
|
22
|
+
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-KTHGBFIH.js';
|
|
23
|
+
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-VY2MH6VX.js';
|
|
24
|
+
import { postJson, getJson, WorkCommandError, isSignatureRefusal } from './chunk-TG3O6CAF.js';
|
|
25
|
+
import { keyRunnerFactory, runnerCredentialProblem, builtinKind, readOnlyOption, optionalEgress, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxTimeLimitMinutes, networkOf, imageBuildOf, machineSizeOf, sandboxSizeOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-MP6INWPC.js';
|
|
26
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-ST5S3P2C.js';
|
|
27
|
+
import { said, NETWORK_HELPER_MEMORY, firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, JUDGE_DIR, JUDGE_ITEMS, answerFileName, hashJudgeProgram, NETWORK_READY_FILE, MAX_ITEMS_BYTES, MAX_REPORT_BYTES, JUDGE_REPORT, withAnswerProtocol, JUDGE_TREE, runnerLabelValue, parseSize, readJobFileChecked, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, identityRunArgs, SAVED_STATE_LABEL } from './chunk-3WYPBALP.js';
|
|
28
28
|
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-DF2ATCBQ.js';
|
|
29
29
|
import { sanitizeTerminal, planArtifactUpload } from './chunk-TDTWNGCO.js';
|
|
30
30
|
import { sharedSkillNames, skillConflictMessage } from './chunk-A3SSJ7WS.js';
|
|
31
31
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
32
|
-
import { signerFor } from './chunk-
|
|
33
|
-
import { sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-
|
|
34
|
-
import { BUILD_HOME, dataPlaneOf, sandboxCallOf, SandboxError, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, checkoutPath, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, providerMayAnswerLater, toolProxyEnvironment } from './chunk-
|
|
35
|
-
import { agentCredential, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, builtInNames, currentAgentCredential, removedAgentCredentialValues, realFdStorePort, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, fdName, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-
|
|
32
|
+
import { signerFor } from './chunk-D5YKPIHV.js';
|
|
33
|
+
import { sessionsDir, vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-2OSEUHWY.js';
|
|
34
|
+
import { BUILD_HOME, dataPlaneOf, sandboxCallOf, SandboxError, repositoriesOf, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, checkoutPath, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, providerMayAnswerLater, toolProxyEnvironment } from './chunk-IB4SVQNB.js';
|
|
35
|
+
import { agentCredential, managedAgentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, builtInNames, currentAgentCredential, removedAgentCredentialValues, realFdStorePort, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, fdName, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-PUUQKA3W.js';
|
|
36
36
|
import { versionAtLeast } from './chunk-SF2TBJBP.js';
|
|
37
37
|
import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, defaultCommandLine, credentialAgent, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, strippedVariables, runnerAgents, judgeAgent, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, UNIVERSAL_IMAGE, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, agentVersionOf } from './chunk-R2XWZSLR.js';
|
|
38
38
|
import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-OZG4BNC6.js';
|
|
@@ -2220,10 +2220,9 @@ var UNMARKED_PLACEHOLDER_COMMAND = "echo 'edit runner.commands in this config fi
|
|
|
2220
2220
|
var PLACEHOLDER_MARKER = "outerlayer-placeholder";
|
|
2221
2221
|
var PLACEHOLDER_COMMAND = `${UNMARKED_PLACEHOLDER_COMMAND} # ${PLACEHOLDER_MARKER}`;
|
|
2222
2222
|
var SANDBOX_MACHINES = ["small", "large"];
|
|
2223
|
-
function
|
|
2224
|
-
if (machine.platform
|
|
2225
|
-
|
|
2226
|
-
return `--sandbox is for Linux and WSL2: the runner's service does not install on ${where}, so a runner set up with --sandbox would have nothing to keep it running.${machine.platform === "windows" ? " Run this again from a WSL2 shell." : ""}`;
|
|
2223
|
+
function nativeWindowsSandboxRefusal(machine) {
|
|
2224
|
+
if (machine.platform !== "windows") return void 0;
|
|
2225
|
+
return "--sandbox is for Linux, WSL2 and macOS: the runner's service does not install on native Windows, so a runner set up with --sandbox would have nothing to keep it running. Run this again from a WSL2 shell.";
|
|
2227
2226
|
}
|
|
2228
2227
|
function isolationRefusal(machine) {
|
|
2229
2228
|
const reach = reachDockerStep(machine);
|
|
@@ -2300,6 +2299,9 @@ function prepareRunnerInit(configPath, opts = {}) {
|
|
|
2300
2299
|
if (config.runner !== void 0) {
|
|
2301
2300
|
throw new RunnerInitError(`${configPath}: a runner block is already here. Edit it, or remove it and run this again.`);
|
|
2302
2301
|
}
|
|
2302
|
+
if (opts.sandbox !== void 0 && config.runnerVm !== void 0) {
|
|
2303
|
+
throw new RunnerInitError(`${configPath}: this file sets up a runner in a Linux VM, and --sandbox sets up another kind. Name another file with --config, then run this again.`);
|
|
2304
|
+
}
|
|
2303
2305
|
needsKey = opts.keyFromLogin === true && config.apiKey === void 0;
|
|
2304
2306
|
const problem = needsKey ? void 0 : runnerCredentialProblem(config);
|
|
2305
2307
|
if (problem !== void 0) throw new RunnerInitError(`${configPath}: ${problem.field} ${problem.reason}.`);
|
|
@@ -2311,7 +2313,7 @@ function prepareRunnerInit(configPath, opts = {}) {
|
|
|
2311
2313
|
}
|
|
2312
2314
|
const machine = opts.machine ?? detectMachine();
|
|
2313
2315
|
if (opts.sandbox !== void 0) {
|
|
2314
|
-
const refusal =
|
|
2316
|
+
const refusal = nativeWindowsSandboxRefusal(machine);
|
|
2315
2317
|
if (refusal !== void 0) throw new RunnerInitError(refusal);
|
|
2316
2318
|
}
|
|
2317
2319
|
if (opts.requireContainer === true && !supportsContainerBuilds(machine)) {
|
|
@@ -4787,6 +4789,8 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
4787
4789
|
if (governingSource.kind === "governed") {
|
|
4788
4790
|
const unfetched = await prefetchGovernedContext({
|
|
4789
4791
|
configPath: config.configPath,
|
|
4792
|
+
// A fleet runner keeps each organization's control-plane cache in that organization's folder.
|
|
4793
|
+
...input.organizationId === void 0 ? {} : { organizationId: input.organizationId },
|
|
4790
4794
|
repository,
|
|
4791
4795
|
source: governingSource,
|
|
4792
4796
|
controlPlaneUrl,
|
|
@@ -4892,7 +4896,7 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
4892
4896
|
environment.credentials = tokens.used();
|
|
4893
4897
|
let services;
|
|
4894
4898
|
try {
|
|
4895
|
-
const gitRemote = gitRemoteFor(runtime, { repositories, tokens, buildDir: buildDir2, log: (line2) => log.line(`${tag} ${line2}`), ...readOnlyOption(input.queue) });
|
|
4899
|
+
const gitRemote = gitRemoteFor(runtime, { repositories, tokens, buildDir: buildDir2, organizationId: input.organizationId, log: (line2) => log.line(`${tag} ${line2}`), ...readOnlyOption(input.queue) });
|
|
4896
4900
|
services = await startServicesFor(runtime, config, buildDir2, jobDir, itemKey, true, gitRemote, "stream", input.leaseExpiryMs === void 0 ? void 0 : leaseFor(runtime, buildId, input.leaseExpiryMs), void 0, (line2) => log.line(`${tag} ${line2}`));
|
|
4897
4901
|
runtime.tunnels.set(buildId, services);
|
|
4898
4902
|
} catch (err) {
|
|
@@ -5085,6 +5089,7 @@ async function provisionSandboxOnce(input, itemDiskFailed) {
|
|
|
5085
5089
|
aborted: input.aborted,
|
|
5086
5090
|
stageContext: () => stageGovernedContext({
|
|
5087
5091
|
config,
|
|
5092
|
+
...input.organizationId === void 0 ? {} : { organizationId: input.organizationId },
|
|
5088
5093
|
repository,
|
|
5089
5094
|
source: pinnedSourceOf(governingSource),
|
|
5090
5095
|
buildId,
|
|
@@ -5132,7 +5137,7 @@ async function rejoinSandboxBuild(input) {
|
|
|
5132
5137
|
const joinSecret = Buffer.from(read.stdout, "base64");
|
|
5133
5138
|
if (read.exitCode !== 0 || joinSecret.length === 0) throw new Error(`the build's join secret could not be read from its sandbox (exit ${read.exitCode ?? "none"})${said(read.stderr)}`);
|
|
5134
5139
|
const repositories = repositoriesOf({ repositories: input.repositories, repository: state.repository, branch: input.branch });
|
|
5135
|
-
const gitRemote = gitRemoteFor(runtime, { repositories, tokens: input.tokens, buildDir: state.buildDir, log, ...readOnlyOption(input.queue) });
|
|
5140
|
+
const gitRemote = gitRemoteFor(runtime, { repositories, tokens: input.tokens, buildDir: state.buildDir, organizationId: input.organizationId, log, ...readOnlyOption(input.queue) });
|
|
5136
5141
|
const lease = leaseFor(runtime, state.buildId, input.leaseExpiryMs);
|
|
5137
5142
|
const services = await startServicesFor(runtime, input.config, state.buildDir, input.jobDir, input.itemKey, true, gitRemote, "stream", lease, void 0, log);
|
|
5138
5143
|
runtime.tunnels.set(state.buildId, services);
|
|
@@ -14047,4 +14052,4 @@ async function runHostChecks(input) {
|
|
|
14047
14052
|
}
|
|
14048
14053
|
}
|
|
14049
14054
|
|
|
14050
|
-
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, CRITERIA_CHECK, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, SANDBOX_MACHINES, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, builtOf, checksIn, claimPermissionProblem, claimRun, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createGatewaySandboxClient, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, environmentFor, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gatewayRefusalReason, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, judgeCredential, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, keptSessionDir, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, readWorkItem, recordsProofsOnly, recoverLostJobs, rejoinSandboxBuild, releaseLease, removeOldestUntil, removeRunnerBlock, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, restoreSessionIntoSandbox, restoreWork, retryFailedReleases, runCommand, runCommandOf, runDecision, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest,
|
|
14055
|
+
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, CRITERIA_CHECK, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, SANDBOX_MACHINES, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, builtOf, checksIn, claimPermissionProblem, claimRun, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createGatewaySandboxClient, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, environmentFor, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gatewayRefusalReason, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, judgeCredential, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, keptSessionDir, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, modellessProblem, modellessQueues, nativeWindowsSandboxRefusal, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, readWorkItem, recordsProofsOnly, recoverLostJobs, rejoinSandboxBuild, releaseLease, removeOldestUntil, removeRunnerBlock, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, restoreSessionIntoSandbox, restoreWork, retryFailedReleases, runCommand, runCommandOf, runDecision, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, sessionGuestOfContainer, sessionGuestOfMicroVm, sessionGuestOfSandbox, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, treeFileText, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workRestoredEnv, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|