@outerlayer/cli 0.33.0-next.20261021171323 → 0.33.0-next.20261021194303
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/README.md +5 -1
- package/dist/{agent-setup-NSUX64RU.js → agent-setup-P5PWEGZM.js} +5 -5
- package/dist/{build-HU24C46Z.js → build-SK5BYBER.js} +4 -4
- package/dist/build-info.json +1 -1
- package/dist/{builder-VFREWHZA.js → builder-X4PIGYS6.js} +5 -5
- package/dist/{check-3TQJDGKM.js → check-DPVNDAQQ.js} +32 -32
- package/dist/chunk-2PGI6RDE.js +90 -0
- package/dist/{chunk-ZZSQYOY5.js → chunk-3VGDZ23W.js} +1 -1
- package/dist/{chunk-7LP3F2QH.js → chunk-4OKOLFPH.js} +3 -3
- package/dist/{chunk-NJS7JJYN.js → chunk-52C3SSNF.js} +2 -2
- package/dist/{chunk-IWYS4ERC.js → chunk-533QGXGZ.js} +1 -1
- package/dist/{chunk-54GBOMDW.js → chunk-543ZX5TM.js} +3 -3
- package/dist/{chunk-OX7CHZTJ.js → chunk-5ZUT3IK3.js} +1 -1
- package/dist/{chunk-ZBN4JGTJ.js → chunk-A3H27SYX.js} +1 -1
- package/dist/{chunk-P7BEZAEU.js → chunk-ALSE7YKX.js} +11 -3
- package/dist/{chunk-G7QBSH3X.js → chunk-BBK62GXM.js} +1256 -589
- package/dist/{chunk-NYKZC6HU.js → chunk-C4N5QRQJ.js} +3 -3
- package/dist/{chunk-CI6PRMWZ.js → chunk-CG5TWQ23.js} +5 -5
- package/dist/{chunk-TZQIEUDE.js → chunk-CNRMP6EN.js} +1 -1
- package/dist/{chunk-LAS3DOTW.js → chunk-ENV3AIWQ.js} +42 -18
- package/dist/{chunk-KP6R7CV3.js → chunk-ESP5VZBD.js} +4 -1
- package/dist/{chunk-RQGHHEM7.js → chunk-HBBCQ5NE.js} +2 -2
- package/dist/{chunk-T5TBGOT6.js → chunk-IPJ6HR7E.js} +1 -1
- package/dist/{chunk-APSYTJ6I.js → chunk-JT3YO5MH.js} +1 -1
- package/dist/{chunk-ZZWWKBLL.js → chunk-KUOY5UIR.js} +4 -4
- package/dist/{chunk-X7UUIHGH.js → chunk-LH3KULPL.js} +1 -1
- package/dist/{chunk-LK2S5XZH.js → chunk-LHYO4RDP.js} +9 -1
- package/dist/{chunk-LSMF3EET.js → chunk-LPIUIRHA.js} +10 -10
- package/dist/{chunk-BXA6JLHQ.js → chunk-LTZVMKQS.js} +5 -5
- package/dist/{chunk-WHSYPR3U.js → chunk-M5ZXOQYS.js} +1 -1
- package/dist/{chunk-VXYPD33W.js → chunk-NNNUME4Y.js} +5 -5
- package/dist/{chunk-KQON2T4A.js → chunk-OVSUSOHL.js} +23 -7
- package/dist/{chunk-NHXJU7CM.js → chunk-OXSFOLWE.js} +1 -1
- package/dist/{chunk-77F7NGAZ.js → chunk-TA6TFYAN.js} +3 -3
- package/dist/{chunk-EKMMX5A5.js → chunk-TAZJDD2U.js} +4 -4
- package/dist/{chunk-TI5Y242B.js → chunk-TGXYNEI7.js} +57 -89
- package/dist/{chunk-BSHUTMXV.js → chunk-TPGHCH2H.js} +45 -19
- package/dist/{chunk-AR6UB2BP.js → chunk-UVZ43SW3.js} +3 -3
- package/dist/{chunk-HPOW2VCB.js → chunk-VFW6I4GG.js} +2 -2
- package/dist/{chunk-F3EF56LQ.js → chunk-VQ2JGZSC.js} +1 -1
- package/dist/{chunk-D73OLAYE.js → chunk-WRX2MCDV.js} +1 -1
- package/dist/{chunk-LQFDTQC2.js → chunk-XQTT3222.js} +3 -3
- package/dist/{chunk-SOTJ2V3A.js → chunk-XRZGT54P.js} +6 -6
- package/dist/{chunk-GKNF4D62.js → chunk-XT5SOJRC.js} +48 -25
- package/dist/{chunk-H6Y5D6J7.js → chunk-YZIC5JXC.js} +1 -1
- package/dist/{chunk-JKXTG3BV.js → chunk-ZPW6PUNK.js} +3 -3
- package/dist/{claude-launcher-RNMUZZ3Y.js → claude-launcher-Q7YAPLY2.js} +1 -1
- package/dist/{cli-YQ64SSV3.js → cli-OGX6JNIN.js} +98 -98
- package/dist/{command-RFVCDSJV.js → command-UIAQUHHU.js} +22 -21
- package/dist/{config-3JRFDYZL.js → config-CUJ3Q4L2.js} +1 -1
- package/dist/{connect-cmd-HVHPNVAJ.js → connect-cmd-OLESV5O3.js} +5 -5
- package/dist/{container-start-DP3N72CK.js → container-start-MGY5VFHW.js} +22 -21
- package/dist/{control-plane-launch-DHMD5WBU.js → control-plane-launch-7PXJSMVM.js} +4 -4
- package/dist/{dist-MKY2BSYN.js → dist-DY2ZNEBS.js} +1 -1
- package/dist/{docker-6G6IF4YO.js → docker-XRUAUQIG.js} +5 -5
- package/dist/{doctor-ZE4LA7EZ.js → doctor-ZMKO3F7I.js} +31 -28
- package/dist/{emit-artifact-cmd-YRRXCZAI.js → emit-artifact-cmd-RI7HA37S.js} +10 -10
- package/dist/{emit-criteria-cmd-PSQORVHS.js → emit-criteria-cmd-T5HZZ7XJ.js} +6 -6
- package/dist/{emit-demo-cmd-RJPSISCC.js → emit-demo-cmd-MWRFZHSX.js} +13 -93
- package/dist/{emit-finding-cmd-6FVW3GGK.js → emit-finding-cmd-RN7LSGJ7.js} +7 -7
- package/dist/{emit-result-cmd-PFQ6HSVN.js → emit-result-cmd-72STGWMP.js} +9 -9
- package/dist/{emit-step-cmd-U32Y4PZJ.js → emit-step-cmd-POFAEM7G.js} +7 -7
- package/dist/{findings-cmd-AMYNXO3S.js → findings-cmd-TMURLT3A.js} +7 -7
- package/dist/{fleet-readiness-7ROJ54ZF.js → fleet-readiness-N6Y3F7R6.js} +4 -4
- package/dist/{governing-source-DYJQCHKU.js → governing-source-2R7IS7LZ.js} +9 -9
- package/dist/{hook-fast-WQQYEXO5.js → hook-fast-GO7UTNN5.js} +1 -1
- package/dist/{host-key-KAYMYRO3.js → host-key-UEWE4PXB.js} +2 -2
- package/dist/{image-tag-NM2YT2J2.js → image-tag-V2LXTKK7.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/{init-QDUIHSTK.js → init-E3VWTJFQ.js} +21 -20
- package/dist/{init-CHWFDK23.js → init-YMU4QFRV.js} +21 -20
- package/dist/{init-cmd-STCU6RGY.js → init-cmd-WBPE3X7T.js} +10 -10
- package/dist/{init-update-OIFOUIAN.js → init-update-MONZSG7L.js} +8 -8
- package/dist/{install-OIRIEOS7.js → install-3DBYJITP.js} +3 -3
- package/dist/{install-cmd-IYWVR6WX.js → install-cmd-EELSKBSZ.js} +4 -4
- package/dist/{logs-C3RJ3ZTC.js → logs-ET75ZUCN.js} +1 -1
- package/dist/{loop-NUW7SSZY.js → loop-N3IUN4F3.js} +32 -32
- package/dist/{machine-BJ7TT3B7.js → machine-J7QFINBX.js} +17 -16
- package/dist/{mcp-serve-cmd-PB4UOTGL.js → mcp-serve-cmd-WYUP263T.js} +3 -3
- package/dist/paths-BN7X2YPM.js +9 -0
- package/dist/{pending-RKVRYOTF.js → pending-ROAIK5WO.js} +2 -2
- package/dist/{pidfile-BMFAUQAI.js → pidfile-52TGLGQH.js} +2 -2
- package/dist/{record-26AH6WDB.js → record-BSY4BKJ5.js} +2 -2
- package/dist/{runner-env-66RAFIDJ.js → runner-env-H6XLACTG.js} +4 -4
- package/dist/{runner-identity-FL67WQIA.js → runner-identity-MSMI2PD4.js} +5 -5
- package/dist/{runner-key-YHAJFEGN.js → runner-key-QTNYQ2I7.js} +21 -20
- package/dist/{session-sender-PHQ6PJVD.js → session-sender-USH6NOZL.js} +10 -10
- package/dist/{spec-cmd-SAMHN5FU.js → spec-cmd-ABGR2ZDH.js} +7 -7
- package/dist/{status-QWLX2CCV.js → status-FHEVPRWN.js} +22 -22
- package/dist/{sync-cmd-O6UIF4QJ.js → sync-cmd-GC2TBSUO.js} +9 -9
- package/dist/{watch-5HMOSQ4Z.js → watch-F3LCBTNO.js} +9 -9
- package/dist/{work-claim-cmd-6W7BW4O6.js → work-claim-cmd-X7KNYGU7.js} +10 -10
- package/dist/{work-cmd-3G26E3NL.js → work-cmd-AI3ZPCP7.js} +7 -7
- package/dist/{work-comment-cmd-S6EGHGHL.js → work-comment-cmd-6UXS342S.js} +7 -7
- package/dist/{work-logs-cmd-RQILRNHS.js → work-logs-cmd-TVKWMDOW.js} +7 -7
- package/dist/{work-open-pr-cmd-5CDP6KOF.js → work-open-pr-cmd-WZ7W2HZ7.js} +8 -8
- package/dist/{work-pr-cmd-D3PJJQOX.js → work-pr-cmd-KTNNR46X.js} +7 -7
- package/dist/{work-stop-cmd-AGZWXGRP.js → work-stop-cmd-2BUDSXUU.js} +7 -7
- package/package.json +1 -1
- package/dist/chunk-YYYRBYWG.js +0 -32
- package/dist/paths-OK2EZS7W.js +0 -9
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-ESVW4MJY.js';
|
|
4
|
-
import { detectActiveSession, autoConnect, transcriptPathForSession } from './chunk-
|
|
5
|
-
import { resolveRepoIdentity, defaultProjectsDir, findTranscripts, sessionIdFromPath, scrubText } from './chunk-
|
|
4
|
+
import { detectActiveSession, autoConnect, transcriptPathForSession } from './chunk-ZPW6PUNK.js';
|
|
5
|
+
import { resolveRepoIdentity, defaultProjectsDir, findTranscripts, sessionIdFromPath, scrubText } from './chunk-XT5SOJRC.js';
|
|
6
6
|
import { C } from './chunk-ANPNT6PM.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-VQ2JGZSC.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-ZJSNLVCE.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-T2Q7ISPE.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectMachine, supportsContainerBuilds, reachDockerStep, describeMachineDocker, supportsMicroVmBuilds } from './chunk-
|
|
4
|
-
import { MIN_ENGINE_MAJOR } from './chunk-
|
|
5
|
-
import { hasStoredCredential, AGENT_COMMANDS, storeClaudeCredential, credentialFromStdin, isAgentName } from './chunk-
|
|
6
|
-
import { runnerCredentialProblem } from './chunk-
|
|
7
|
-
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { detectMachine, supportsContainerBuilds, reachDockerStep, describeMachineDocker, supportsMicroVmBuilds } from './chunk-XQTT3222.js';
|
|
4
|
+
import { MIN_ENGINE_MAJOR } from './chunk-BBK62GXM.js';
|
|
5
|
+
import { hasStoredCredential, AGENT_COMMANDS, storeClaudeCredential, credentialFromStdin, isAgentName } from './chunk-52C3SSNF.js';
|
|
6
|
+
import { runnerCredentialProblem } from './chunk-ALSE7YKX.js';
|
|
7
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-ESP5VZBD.js';
|
|
8
8
|
import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
9
9
|
import { dirname } from 'path';
|
|
10
10
|
|
|
@@ -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-ESP5VZBD.js';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { releaseLease, isUnfinished, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, hostCommandEnvironment, execArgv, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-
|
|
4
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
3
|
+
import { releaseLease, isUnfinished, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, hostCommandEnvironment, execArgv, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-TGXYNEI7.js';
|
|
4
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-LH3KULPL.js';
|
|
5
5
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
6
6
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
7
|
-
import { fitImageBuildMemory } from './chunk-
|
|
7
|
+
import { fitImageBuildMemory } from './chunk-M5ZXOQYS.js';
|
|
8
8
|
import { RUNNER_PROTOCOL } from './chunk-YKYCE4HY.js';
|
|
9
|
-
import { writePendingUpdate } from './chunk-
|
|
9
|
+
import { writePendingUpdate } from './chunk-CNRMP6EN.js';
|
|
10
10
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
11
|
-
import { currentSkillCommand, formerSkillProblem, realBlockedProbes, checkBlocked } from './chunk-
|
|
12
|
-
import {
|
|
13
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, entryIn, versionDir, startedThroughCurrent, switchCurrent, isInLayout, cleanVersions, stagingDir } from './chunk-ZZSQYOY5.js';
|
|
11
|
+
import { currentSkillCommand, formerSkillProblem, realBlockedProbes, checkBlocked } from './chunk-OVSUSOHL.js';
|
|
12
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, entryIn, versionDir, startedThroughCurrent, switchCurrent, isInLayout, cleanVersions, stagingDir } from './chunk-3VGDZ23W.js';
|
|
14
13
|
import { RepoFilter } from './chunk-TBT347UY.js';
|
|
15
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, lifecycleSteps, lifecycleFailureReason, prepareBranch, containerCommandExec, setUpRunnerCgroup, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, gitRemoteFor, startServicesFor, createLeaseChannel } from './chunk-
|
|
16
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
17
|
-
import { tagToPull, pullInstruction, imageTag, writeUpdateStatus } from './chunk-
|
|
14
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, lifecycleSteps, lifecycleFailureReason, prepareBranch, containerCommandExec, setUpRunnerCgroup, sweepImageBuilders, freeBytes, formatBytes, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, gitRemoteFor, startServicesFor, createLeaseChannel } from './chunk-BBK62GXM.js';
|
|
15
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-LTZVMKQS.js';
|
|
16
|
+
import { tagToPull, pullInstruction, imageTag, writeUpdateStatus } from './chunk-533QGXGZ.js';
|
|
18
17
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
19
|
-
import { isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
20
|
-
import { claimPidFile, writePidFile, readPidFile, releasePidFile } from './chunk-
|
|
18
|
+
import { isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-ALSE7YKX.js';
|
|
19
|
+
import { claimPidFile, writePidFile, readPidFile, releasePidFile } from './chunk-IPJ6HR7E.js';
|
|
21
20
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
22
|
-
import { writeJobFile, ensureRunnerIdentity, readJobFile, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, BUILD_LABEL, RUNNER_LABEL, readJobFileChecked } from './chunk-
|
|
21
|
+
import { writeJobFile, ensureRunnerIdentity, readJobFile, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, BUILD_LABEL, RUNNER_LABEL, readJobFileChecked } from './chunk-KUOY5UIR.js';
|
|
23
22
|
import { exceedsDisk } from './chunk-YJLHUKYS.js';
|
|
24
|
-
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
25
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
26
|
-
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, spoolDir, rootfsDir } from './chunk-
|
|
23
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-XRZGT54P.js';
|
|
24
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-JT3YO5MH.js';
|
|
25
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, spoolDir, rootfsDir, imagesDir, builderCacheDiskPath } from './chunk-ESP5VZBD.js';
|
|
27
26
|
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT, takeClaudeCredential, heldClaudeCredential, currentClaudeCredential } from './chunk-HDSDUTX4.js';
|
|
28
27
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
29
28
|
import { fdName } from './chunk-XD4ZCMA4.js';
|
|
@@ -817,6 +816,7 @@ async function runHousekeeping(options) {
|
|
|
817
816
|
}
|
|
818
817
|
}
|
|
819
818
|
}
|
|
819
|
+
freed += removeStaleBuilderCaches(options, nowMs);
|
|
820
820
|
const spoolPath = spoolDir(root);
|
|
821
821
|
const spoolFiles = listDir(spoolPath).flatMap((name) => {
|
|
822
822
|
const mtimeMs = mtimeOf(join(spoolPath, name));
|
|
@@ -857,6 +857,25 @@ async function removeStaleRootDisks(root, unfinished, options) {
|
|
|
857
857
|
}
|
|
858
858
|
return freed;
|
|
859
859
|
}
|
|
860
|
+
function removeStaleBuilderCaches(options, nowMs) {
|
|
861
|
+
let freed = 0;
|
|
862
|
+
for (const owner of listDir(imagesDir(options.configPath))) {
|
|
863
|
+
for (const name of listDir(join(imagesDir(options.configPath), owner))) {
|
|
864
|
+
const path = builderCacheDiskPath(options.configPath, owner, name);
|
|
865
|
+
const mtimeMs = mtimeOf(path);
|
|
866
|
+
if (mtimeMs === void 0 || nowMs - mtimeMs < options.keepDays * 864e5) continue;
|
|
867
|
+
const size = sizeOf(path);
|
|
868
|
+
try {
|
|
869
|
+
rmSync(path, { force: true });
|
|
870
|
+
freed += size;
|
|
871
|
+
options.log.line(`housekeeping: removed the builder cache disk of ${owner}/${name} (${formatBytes(size)}), last used ${formatDuration(nowMs - mtimeMs)} ago`);
|
|
872
|
+
} catch (err) {
|
|
873
|
+
options.log.error(`housekeeping: could not remove the builder cache disk of ${owner}/${name}: ${describeCallFailure(err)}`);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
return freed;
|
|
878
|
+
}
|
|
860
879
|
var HOOKS_DIR_NAME = "git-hooks";
|
|
861
880
|
var CO_AUTHOR_FILE = "co-author";
|
|
862
881
|
var HOOKS = [
|
|
@@ -1751,7 +1770,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
1751
1770
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
1752
1771
|
);
|
|
1753
1772
|
async function tryClaimAndStart(state, item, queue) {
|
|
1754
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
1773
|
+
const { postJson: postJson2 } = await import('./work-cmd-AI3ZPCP7.js');
|
|
1755
1774
|
const log = logOf(state);
|
|
1756
1775
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
1757
1776
|
const claim = await retrySend(
|
|
@@ -2947,7 +2966,7 @@ async function start(configPath, deps = { fetchImpl: fetch }) {
|
|
|
2947
2966
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
2948
2967
|
const held = heldClaudeCredential();
|
|
2949
2968
|
const env = held === void 0 ? process.env : { ...process.env, [held.variable]: held.value };
|
|
2950
|
-
return (await import('./check-
|
|
2969
|
+
return (await import('./check-DPVNDAQQ.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
2951
2970
|
},
|
|
2952
2971
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
2953
2972
|
log
|
|
@@ -3015,6 +3034,11 @@ async function start(configPath, deps = { fetchImpl: fetch }) {
|
|
|
3015
3034
|
return [];
|
|
3016
3035
|
});
|
|
3017
3036
|
for (const buildId of runningMicroVms) log.line(`stopped microVM build ${buildId}, left running by an earlier runner`);
|
|
3037
|
+
const sweptBuilders = await sweepImageBuilders(configPath, runtimeOf(state).vm, (line) => log.error(line)).catch((err) => {
|
|
3038
|
+
log.error(`a builder microVM an earlier runner left could not be removed: ${describeCallFailure(err)}`);
|
|
3039
|
+
return [];
|
|
3040
|
+
});
|
|
3041
|
+
for (const buildId of sweptBuilders) log.line(`removed builder microVM ${buildId}, left by an earlier runner`);
|
|
3018
3042
|
const attemptLogs = attemptLogsOf(state);
|
|
3019
3043
|
for (const { job, format } of listUnreadableJobs(jobsDir(configPath))) {
|
|
3020
3044
|
log.error(`leaving job ${job.queue} #${job.item} alone: its job-state format ${format} is not one this version reads`);
|
|
@@ -31,6 +31,9 @@ function imagesDir(configPath) {
|
|
|
31
31
|
function repoCacheDir(configPath, owner, name) {
|
|
32
32
|
return join(runnerDir(configPath), "repos", owner, name);
|
|
33
33
|
}
|
|
34
|
+
function builderCacheDiskPath(configPath, owner, name) {
|
|
35
|
+
return join(imagesDir(configPath), owner, name, "builder-cache.ext4");
|
|
36
|
+
}
|
|
34
37
|
function buildsDir(configPath) {
|
|
35
38
|
return join(runnerDir(configPath), "builds");
|
|
36
39
|
}
|
|
@@ -84,4 +87,4 @@ function deliveryDir(repository, sha) {
|
|
|
84
87
|
return `${BUILD_HOME}/.outerlayer/context/${repository}/${sha}`;
|
|
85
88
|
}
|
|
86
89
|
|
|
87
|
-
export { RUNNER_DIR_MODE, RUNNER_FILE_MODE, SHIM_DIR, attemptStamp, buildDir, buildsDir, contextHomeDir, deliveryDir, diskTemplatesDir, ghConfigDir, hostKeyPath, imagesDir, jobDir, jobsDir, keptContextDir, mirrorDir, pidFilePath, repoCacheDir, rootfsDir, rootfsPathFor, runnerDir, runnerDirOfBuild, spoolDir, stagedContextDir, vmAssetsDir, vsockPath };
|
|
90
|
+
export { RUNNER_DIR_MODE, RUNNER_FILE_MODE, SHIM_DIR, attemptStamp, buildDir, builderCacheDiskPath, buildsDir, contextHomeDir, deliveryDir, diskTemplatesDir, ghConfigDir, hostKeyPath, imagesDir, jobDir, jobsDir, keptContextDir, mirrorDir, pidFilePath, repoCacheDir, rootfsDir, rootfsPathFor, runnerDir, runnerDirOfBuild, spoolDir, stagedContextDir, vmAssetsDir, vsockPath };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtinKind } from './chunk-
|
|
3
|
+
import { builtinKind } from './chunk-ALSE7YKX.js';
|
|
4
4
|
import { parseSize } from './chunk-YJLHUKYS.js';
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
5
|
+
import { runnerDir } from './chunk-ESP5VZBD.js';
|
|
6
6
|
import { CLAUDE_CREDENTIAL_ID, CLAUDE_ENV_FILE, credentialLineIn, withoutCredentialLines } from './chunk-HDSDUTX4.js';
|
|
7
7
|
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV } from './chunk-XD4ZCMA4.js';
|
|
8
8
|
import { existsSync, readFileSync, writeFileSync, chmodSync, renameSync } from 'fs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-ESP5VZBD.js';
|
|
5
5
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
6
6
|
import { dirname } from 'path';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-ESP5VZBD.js';
|
|
4
4
|
import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
|
|
5
5
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { parseSize } from './chunk-YJLHUKYS.js';
|
|
4
4
|
import { RecipeError } from './chunk-3Z3MPR55.js';
|
|
5
|
-
import { BUILDKIT_IMAGE } from './chunk-
|
|
6
|
-
import { compareVersions } from './chunk-
|
|
7
|
-
import { ensureHostKey } from './chunk-
|
|
8
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-
|
|
5
|
+
import { BUILDKIT_IMAGE } from './chunk-LHYO4RDP.js';
|
|
6
|
+
import { compareVersions } from './chunk-XT5SOJRC.js';
|
|
7
|
+
import { ensureHostKey } from './chunk-JT3YO5MH.js';
|
|
8
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-ESP5VZBD.js';
|
|
9
9
|
import { CLAUDE_PORT, JOB_MOUNT, GATEWAY_PORT, GATEWAY_SOCKET, CLAUDE_SOCKET, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-HDSDUTX4.js';
|
|
10
10
|
import { JOIN_DIR, RELAY_ID, JOIN_SOCKET, TARGET_GATEWAY, TARGET_CLAUDE, destinationTarget, RELAY_USER } from './chunk-MESOOLF4.js';
|
|
11
11
|
import { StringDecoder } from 'string_decoder';
|
|
@@ -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-ESP5VZBD.js';
|
|
4
4
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -52,6 +52,14 @@ var HOST_HELPER_SHA256 = {
|
|
|
52
52
|
function hostHelperPinned(arch = "x86_64", hashes = HOST_HELPER_SHA256) {
|
|
53
53
|
return hashes[arch] !== "0".repeat(64);
|
|
54
54
|
}
|
|
55
|
+
var BUILDER_DISK_VERSION = "1";
|
|
56
|
+
var BUILDER_DISK_BASE_URL = `https://github.com/outerlayerai/guest-assets/releases/download/builder-${BUILDER_DISK_VERSION}`;
|
|
57
|
+
var BUILDER_DISK_SHA256 = {
|
|
58
|
+
x86_64: "fb581f3cc5a7329b2f65b5d62e42be8a53cf845596a76d7ad938ba4c2598dc37"
|
|
59
|
+
};
|
|
60
|
+
function builderDiskPinned(arch = "x86_64", hashes = BUILDER_DISK_SHA256) {
|
|
61
|
+
return hashes[arch] !== "0".repeat(64);
|
|
62
|
+
}
|
|
55
63
|
var VOICE_PACK_VERSION = "kokoro-82m-v1.0-ort-1.21.0";
|
|
56
64
|
var KOKORO_REVISION = "1939ad2a8e416c0acfeecc08a694d14ef25f2231";
|
|
57
65
|
var KOKORO_BASE_URL = `https://huggingface.co/onnx-community/Kokoro-82M-v1.0-ONNX/resolve/${KOKORO_REVISION}`;
|
|
@@ -96,4 +104,4 @@ var FFMPEG_STATIC = {
|
|
|
96
104
|
};
|
|
97
105
|
var MEDIA_PINS = `${VOICE_PACK_VERSION}+${FFMPEG_BUILD_TAG}`;
|
|
98
106
|
|
|
99
|
-
export { BUILDKIT_IMAGE, CLAUDE_CODE_VERSION, DEFAULT_BASE_IMAGE, FFMPEG_BUILD_TAG, FFMPEG_STATIC, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, FIRECRACKER_VERSION, GH_SHA256, GH_VERSION, GUEST_ASSETS_BASE_URL, GUEST_ASSETS_VERSION, GUEST_HELPER_SHA256, GUEST_KERNEL_SHA256, HOST_HELPER_ASSETS_VERSION, HOST_HELPER_BASE_URL, HOST_HELPER_SHA256, JAILER_BINARY_SHA256, MEDIA_PINS, MICROVM_ARCHES, NODE_IMAGE, TINI_SHA256, TINI_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, firecrackerArch, guestAssetsPinned, hostHelperPinned };
|
|
107
|
+
export { BUILDER_DISK_BASE_URL, BUILDER_DISK_SHA256, BUILDER_DISK_VERSION, BUILDKIT_IMAGE, CLAUDE_CODE_VERSION, DEFAULT_BASE_IMAGE, FFMPEG_BUILD_TAG, FFMPEG_STATIC, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, FIRECRACKER_VERSION, GH_SHA256, GH_VERSION, GUEST_ASSETS_BASE_URL, GUEST_ASSETS_VERSION, GUEST_HELPER_SHA256, GUEST_KERNEL_SHA256, HOST_HELPER_ASSETS_VERSION, HOST_HELPER_BASE_URL, HOST_HELPER_SHA256, JAILER_BINARY_SHA256, MEDIA_PINS, MICROVM_ARCHES, NODE_IMAGE, TINI_SHA256, TINI_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, builderDiskPinned, firecrackerArch, guestAssetsPinned, hostHelperPinned };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { checkStarterFiles, contextIsGoverned } from './chunk-KURUM765.js';
|
|
4
|
-
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences } from './chunk-
|
|
5
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isLinkedRepository } from './chunk-
|
|
4
|
+
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences } from './chunk-YZIC5JXC.js';
|
|
5
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-XRZGT54P.js';
|
|
6
|
+
import { isLinkedRepository } from './chunk-VFW6I4GG.js';
|
|
7
7
|
import { sanitizeTerminal } from './chunk-3H7NZPYG.js';
|
|
8
|
-
import { resolveRepoIdentity, compareVersions, SUPPORTED_VERSIONS } from './chunk-
|
|
8
|
+
import { resolveRepoIdentity, compareVersions, SUPPORTED_VERSIONS } from './chunk-XT5SOJRC.js';
|
|
9
9
|
import { C } from './chunk-ANPNT6PM.js';
|
|
10
10
|
import { checkFormerSkillNames } from './chunk-FE3RTGJN.js';
|
|
11
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
12
|
-
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-
|
|
11
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-VQ2JGZSC.js';
|
|
12
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-OXSFOLWE.js';
|
|
13
13
|
import { readStatuslineState, STATE_FRESH_MS } from './chunk-I7RZHMXW.js';
|
|
14
14
|
import { hookCommandEscapesControlPlane, CONTROL_PLANE_DIR_VARIABLE } from './chunk-HCVLP7XA.js';
|
|
15
15
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
@@ -1190,7 +1190,7 @@ function doctorExitCode(checks) {
|
|
|
1190
1190
|
|
|
1191
1191
|
// src/doctor-report.ts
|
|
1192
1192
|
async function gatherDoctorChecks() {
|
|
1193
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1193
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, loadRunnerConfig, runnerVmOf } = await import('./config-CUJ3Q4L2.js');
|
|
1194
1194
|
const configPath = defaultRunnerConfigPath();
|
|
1195
1195
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1196
1196
|
const hooks = (() => {
|
|
@@ -1211,7 +1211,7 @@ async function gatherDoctorChecks() {
|
|
|
1211
1211
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1212
1212
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1213
1213
|
} else if (hasRunnerBlock(configPath)) {
|
|
1214
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1214
|
+
const { runnerHostChecks } = await import('./doctor-ZMKO3F7I.js');
|
|
1215
1215
|
const gateway = (() => {
|
|
1216
1216
|
try {
|
|
1217
1217
|
const { url, apiKey, appId } = loadRunnerConfig(configPath);
|
|
@@ -1230,7 +1230,7 @@ async function gatherDoctorChecks() {
|
|
|
1230
1230
|
const runner = (() => {
|
|
1231
1231
|
try {
|
|
1232
1232
|
const { concurrency, build, housekeeping, managed } = loadRunnerConfig(configPath);
|
|
1233
|
-
return { concurrency, buildMemory: build?.memory ?? "8g", minFreeDisk: housekeeping?.minFreeDisk, allowHosts: build?.allowHosts, ...managed === true ? { managed } : {} };
|
|
1233
|
+
return { concurrency, buildMemory: build?.memory ?? "8g", minFreeDisk: housekeeping?.minFreeDisk, allowHosts: build?.allowHosts, ...build?.imageBuild === void 0 ? {} : { imageBuild: build.imageBuild }, ...managed === true ? { managed } : {} };
|
|
1234
1234
|
} catch {
|
|
1235
1235
|
return void 0;
|
|
1236
1236
|
}
|
|
@@ -1239,7 +1239,7 @@ async function gatherDoctorChecks() {
|
|
|
1239
1239
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1240
1240
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1241
1241
|
const { inspectService, realInspectProbes } = await import('./inspect-L7JIBK3Y.js');
|
|
1242
|
-
const { DEFAULT_UNIT_NAME } = await import('./install-
|
|
1242
|
+
const { DEFAULT_UNIT_NAME } = await import('./install-3DBYJITP.js');
|
|
1243
1243
|
const { dirname: dirname2 } = await import('path');
|
|
1244
1244
|
return inspectService(DEFAULT_UNIT_NAME, dirname2(configPath), realInspectProbes());
|
|
1245
1245
|
})();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
4
|
-
import { defaultGitRunner, materializeContext, isStagingWriteFault, lookupGoverningSource } from './chunk-
|
|
5
|
-
import { signingFetchFor } from './chunk-
|
|
6
|
-
import { signerFor } from './chunk-
|
|
7
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-
|
|
3
|
+
import { WorkCommandError, postJson } from './chunk-XRZGT54P.js';
|
|
4
|
+
import { defaultGitRunner, materializeContext, isStagingWriteFault, lookupGoverningSource } from './chunk-WRX2MCDV.js';
|
|
5
|
+
import { signingFetchFor } from './chunk-VQ2JGZSC.js';
|
|
6
|
+
import { signerFor } from './chunk-JT3YO5MH.js';
|
|
7
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-ESP5VZBD.js';
|
|
8
8
|
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-FGF52V4V.js';
|
|
9
9
|
import { SHIM_SCRIPT, GOVERNANCE_VARIABLE } from './chunk-HCVLP7XA.js';
|
|
10
10
|
import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
3
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-HBBCQ5NE.js';
|
|
4
4
|
import { readFileSync } from 'fs';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { uploadSpooledSteps } from './chunk-
|
|
3
|
+
import { uploadSpooledSteps } from './chunk-4OKOLFPH.js';
|
|
4
4
|
import { LaunchFilter } from './chunk-ESVW4MJY.js';
|
|
5
5
|
import { RepoFilter } from './chunk-TBT347UY.js';
|
|
6
6
|
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-3H7NZPYG.js';
|
|
7
|
-
import { setCustomScrubbers, setLocalIdentity, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, sessionIdFromPath, scrubDeep, SOURCE_ADAPTERS } from './chunk-
|
|
7
|
+
import { setCustomScrubbers, setLocalIdentity, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, sessionIdFromPath, scrubDeep, SOURCE_ADAPTERS } from './chunk-XT5SOJRC.js';
|
|
8
8
|
import { C } from './chunk-ANPNT6PM.js';
|
|
9
|
-
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
+
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-VQ2JGZSC.js';
|
|
10
10
|
import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-PJDQPF5N.js';
|
|
11
|
-
import { signerFor, signRunnerRequest } from './chunk-
|
|
12
|
-
import { writeSyncStatus, spoolDir } from './chunk-
|
|
11
|
+
import { signerFor, signRunnerRequest } from './chunk-JT3YO5MH.js';
|
|
12
|
+
import { writeSyncStatus, spoolDir } from './chunk-OXSFOLWE.js';
|
|
13
13
|
import { readLatestProvenanceForSession, readContextProvenance } from './chunk-ZJSNLVCE.js';
|
|
14
14
|
import { hookExecSpoolPath } from './chunk-2O5KA67H.js';
|
|
15
15
|
import { applyReportedCost } from './chunk-BKO6JEZI.js';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isPlaceholderCommand } from './chunk-
|
|
4
|
-
import { describeCallFailure } from './chunk-
|
|
5
|
-
import { checkFit } from './chunk-
|
|
6
|
-
import { builtinKind } from './chunk-
|
|
7
|
-
import {
|
|
3
|
+
import { isPlaceholderCommand } from './chunk-CG5TWQ23.js';
|
|
4
|
+
import { describeCallFailure } from './chunk-LTZVMKQS.js';
|
|
5
|
+
import { checkFit } from './chunk-HBBCQ5NE.js';
|
|
6
|
+
import { builtinKind, imageBuildOf } from './chunk-ALSE7YKX.js';
|
|
7
|
+
import { builderDiskPinned } from './chunk-LHYO4RDP.js';
|
|
8
|
+
import { WorkCommandError, getJson } from './chunk-XRZGT54P.js';
|
|
8
9
|
import { sanitizeTerminal } from './chunk-3H7NZPYG.js';
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
+
import { signerFor } from './chunk-JT3YO5MH.js';
|
|
10
11
|
import { CLAUDE_CREDENTIAL_VARIABLES, claudeCredential, claudeCredentialVariablesSet } from './chunk-HDSDUTX4.js';
|
|
11
12
|
import { closeSync, openSync, constants } from 'fs';
|
|
12
13
|
import { totalmem } from 'os';
|
|
@@ -158,6 +159,19 @@ function managedProblems(facts) {
|
|
|
158
159
|
reason: "runner.build.allowHosts is not set, and a managed runner needs it so that a build reaches only the public hosts it lists. List the hosts your builds need; an empty list allows none"
|
|
159
160
|
});
|
|
160
161
|
}
|
|
162
|
+
if (builtinKind(facts.provision) === "vm") {
|
|
163
|
+
if (facts.imageBuild === "host") {
|
|
164
|
+
problems.push({
|
|
165
|
+
condition: "imageBuild",
|
|
166
|
+
reason: "runner.build.imageBuild is host, and a managed runner builds its images in a builder microVM, because a recipe step on the host could reach the host's own services and network. Remove runner.build.imageBuild or set it to vm"
|
|
167
|
+
});
|
|
168
|
+
} else if (!facts.builderDiskPinned) {
|
|
169
|
+
problems.push({
|
|
170
|
+
condition: "imageBuild",
|
|
171
|
+
reason: "this release of the CLI pins no builder root disk, so it cannot build images in a builder microVM, which a managed runner needs for runner.build.imageBuild. Update the CLI to a release that pins one"
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
}
|
|
161
175
|
return problems;
|
|
162
176
|
}
|
|
163
177
|
function managedFactsOf(config, probes) {
|
|
@@ -165,7 +179,9 @@ function managedFactsOf(config, probes) {
|
|
|
165
179
|
provision: config.hooks.provision,
|
|
166
180
|
jailer: probes.jailer ?? "unknown",
|
|
167
181
|
credentials: claudeCredentialVariablesSet(probes.env),
|
|
168
|
-
allowHosts: config.build?.allowHosts
|
|
182
|
+
allowHosts: config.build?.allowHosts,
|
|
183
|
+
imageBuild: imageBuildOf(config),
|
|
184
|
+
builderDiskPinned: probes.builderDiskPinned ?? builderDiskPinned()
|
|
169
185
|
};
|
|
170
186
|
}
|
|
171
187
|
function checkBlocked(config, probes) {
|
|
@@ -684,7 +684,7 @@ async function missingControlPlane(cwd, sessionId, home, env) {
|
|
|
684
684
|
cleanupEarlierCopies(dirs);
|
|
685
685
|
}
|
|
686
686
|
if (!contextPossiblyGoverned(cwd, home)) return void 0;
|
|
687
|
-
const { governanceOf } = await import('./control-plane-launch-
|
|
687
|
+
const { governanceOf } = await import('./control-plane-launch-7PXJSMVM.js');
|
|
688
688
|
if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
|
|
689
689
|
recordMissingContext(dirs, sessionId, home);
|
|
690
690
|
const launcher = `${cliInvocation()} claude`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, writeLauncher, LauncherWriteError, pathNotes } from './chunk-
|
|
4
|
-
import { currentVersion, currentLink, isInLayout, packageRootIn, versionDir, switchCurrent, execStartLine } from './chunk-
|
|
3
|
+
import { launcherPath, writeLauncher, LauncherWriteError, pathNotes } from './chunk-A3H27SYX.js';
|
|
4
|
+
import { currentVersion, currentLink, isInLayout, packageRootIn, versionDir, switchCurrent, execStartLine } from './chunk-3VGDZ23W.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { RUNNER_DIR_MODE } from './chunk-ESP5VZBD.js';
|
|
7
7
|
import { realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync } from 'fs';
|
|
8
8
|
import { dirname, sep, join } from 'path';
|
|
9
9
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-
|
|
3
|
+
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-NNNUME4Y.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-ESVW4MJY.js';
|
|
5
|
-
import { detectActiveSession, autoConnect } from './chunk-
|
|
5
|
+
import { detectActiveSession, autoConnect } from './chunk-ZPW6PUNK.js';
|
|
6
6
|
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-3H7NZPYG.js';
|
|
7
|
-
import { resolveRepoIdentity } from './chunk-
|
|
7
|
+
import { resolveRepoIdentity } from './chunk-XT5SOJRC.js';
|
|
8
8
|
import { C } from './chunk-ANPNT6PM.js';
|
|
9
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-VQ2JGZSC.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
12
12
|
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-3WW2TL7V.js';
|