@outerlayer/cli 0.34.0-next.20261029014930 → 0.34.0-next.20261029100627
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-J2WZHYN5.js → agent-setup-UPIHHKI2.js} +6 -6
- package/dist/{bridge-4GRZFXJU.js → bridge-XM4QLKIX.js} +2 -2
- package/dist/{build-2JBISOVR.js → build-ZWUKJL5I.js} +9 -9
- package/dist/{build-disk-ECEVCK35.js → build-disk-BF56FZBB.js} +7 -7
- package/dist/build-info.json +1 -1
- package/dist/{builder-OMDEUDO3.js → builder-PDLGG4DQ.js} +6 -6
- package/dist/{caller-P5ZHKVD5.js → caller-LJDOBQTM.js} +9 -9
- package/dist/{check-6ZGMF7VF.js → check-ZGD773U7.js} +40 -40
- package/dist/{chunk-X4PYXWBY.js → chunk-2F43WNKI.js} +3 -3
- package/dist/{chunk-LLQGVGFO.js → chunk-2I6VHGJA.js} +5 -5
- package/dist/{chunk-PGJY7XTY.js → chunk-2OE4BZRF.js} +2 -2
- package/dist/{chunk-UTIRCHI5.js → chunk-3EEJGQEJ.js} +3 -3
- package/dist/{chunk-5W2YSWIW.js → chunk-4PH4DVV4.js} +1 -1
- package/dist/{chunk-76VJKVM5.js → chunk-4ZJI3IG2.js} +7 -7
- package/dist/{chunk-QTNWAV23.js → chunk-5XV27STP.js} +7 -7
- package/dist/{chunk-32QKEHC7.js → chunk-6WVUXK3M.js} +9 -9
- package/dist/{chunk-K6LLZONM.js → chunk-7CIU64OH.js} +2 -2
- package/dist/{chunk-F57NE5AO.js → chunk-7R655ODT.js} +1 -1
- package/dist/{chunk-7T5MUKW6.js → chunk-AGMR4IQE.js} +5 -5
- package/dist/{chunk-GOSOKVBF.js → chunk-AUVJMR3P.js} +1 -1
- package/dist/{chunk-N2OG4RN6.js → chunk-AVHPSB65.js} +1 -1
- package/dist/{chunk-XKV6HXKD.js → chunk-BETYII72.js} +2 -2
- package/dist/{chunk-7TIFAOUG.js → chunk-BGADM7E5.js} +9 -9
- package/dist/{chunk-SMYOFJHK.js → chunk-CDVG2LXT.js} +1 -1
- package/dist/{chunk-6OAOOAJO.js → chunk-CNN7JBVU.js} +5 -5
- package/dist/{chunk-3MKCUCG7.js → chunk-DM4TDEYF.js} +18 -18
- package/dist/{chunk-BWJRNMZZ.js → chunk-DPXJ5RJU.js} +4 -4
- package/dist/{chunk-KWFJF4CX.js → chunk-E2NZMEVD.js} +23 -23
- package/dist/{chunk-T3XPLCJG.js → chunk-F26I6GKL.js} +2 -2
- package/dist/{chunk-6JDEP42Z.js → chunk-FAA2URUR.js} +2 -2
- package/dist/{chunk-YLPJOUVF.js → chunk-GANAOCHR.js} +6 -1
- package/dist/{chunk-FNS2RJ5T.js → chunk-GBMTKV5B.js} +1 -1
- package/dist/{chunk-RC2WZQK6.js → chunk-H2GESWLW.js} +3 -3
- package/dist/{chunk-EFZM7UOP.js → chunk-HERRKKES.js} +5 -5
- package/dist/{chunk-DG25T7AY.js → chunk-HS5QEIJT.js} +1 -1
- package/dist/{chunk-UZDWCSLS.js → chunk-IUPYSGCP.js} +2 -2
- package/dist/{chunk-GD4AXYK3.js → chunk-JFALOM5G.js} +2 -2
- package/dist/{chunk-B7ZC2HKE.js → chunk-JJ7YQWYS.js} +3 -3
- package/dist/{chunk-HUS3GYCX.js → chunk-JQOET7TF.js} +5 -5
- package/dist/{chunk-7B6CKPNZ.js → chunk-LGCXRKIG.js} +4 -4
- package/dist/{chunk-DUV33KMD.js → chunk-LW2A24IA.js} +1 -1
- package/dist/{chunk-G7OVITGQ.js → chunk-MCK4XMV5.js} +3 -3
- package/dist/{chunk-BBJ6BM5U.js → chunk-MKSZHT6S.js} +1 -1
- package/dist/{chunk-CM4J53WZ.js → chunk-NGT2CCGM.js} +1 -1
- package/dist/{chunk-PNAVR5OD.js → chunk-O7CGRDRQ.js} +2 -2
- package/dist/{chunk-D3CT6XQ4.js → chunk-PZN4L2DN.js} +2 -2
- package/dist/{chunk-RZ22SWMA.js → chunk-SHPCVBT3.js} +1 -1
- package/dist/{chunk-ZQQNWDPE.js → chunk-SQGD4LYW.js} +1 -1
- package/dist/{chunk-YZSE7EYM.js → chunk-UGPJIKN4.js} +2 -2
- package/dist/{chunk-JEOBBOZY.js → chunk-URKE5WTV.js} +4 -4
- package/dist/{chunk-ROQPDCRU.js → chunk-UZGQT6OF.js} +1 -1
- package/dist/{chunk-E4R3M6XJ.js → chunk-VNHBDHX7.js} +1 -1
- package/dist/{chunk-5VGVYEFT.js → chunk-W74HQLLZ.js} +2 -2
- package/dist/{chunk-QNISFH47.js → chunk-WG3VIMD2.js} +1 -1
- package/dist/{chunk-2RTGZ6AE.js → chunk-WN45SWHR.js} +2 -2
- package/dist/{chunk-QOVUDIUI.js → chunk-XU5BNWX7.js} +1 -1
- package/dist/{chunk-HFHRTVXN.js → chunk-YBP22LDO.js} +2 -2
- package/dist/{chunk-HSE2LOWO.js → chunk-YQHUCOUL.js} +1 -1
- package/dist/{chunk-D7BEGG7T.js → chunk-ZI7JENTB.js} +1 -1
- package/dist/{chunk-I35CNSPC.js → chunk-ZO4ZOPYX.js} +67 -31
- package/dist/{claude-launcher-GACOES7Z.js → claude-launcher-MMCKOBND.js} +1 -1
- package/dist/{cli-A3IUMZHY.js → cli-TCDMN5CR.js} +112 -112
- package/dist/{command-XPDD3473.js → command-WP6ZOCWH.js} +27 -27
- package/dist/{config-7DT7UVUI.js → config-SGSBDXW2.js} +8 -8
- package/dist/{connect-cmd-TWSO7YKC.js → connect-cmd-APZN6F6N.js} +5 -5
- package/dist/{container-start-2AQWC275.js → container-start-3RUFM2G2.js} +33 -33
- package/dist/{context-show-cmd-6MEUB3HU.js → context-show-cmd-OWREGUJL.js} +6 -6
- package/dist/{control-plane-launch-6NN5ZSP3.js → control-plane-launch-FV5Q6GVJ.js} +5 -5
- package/dist/{demo-record-cmd-2FY7VCIL.js → demo-record-cmd-5QCGW3F2.js} +4 -4
- package/dist/{demo-voice-cmd-GJNJNEAI.js → demo-voice-cmd-7FHRYSCX.js} +12 -12
- package/dist/{docker-DLJTPUC5.js → docker-UYJ2BXB2.js} +6 -6
- package/dist/{doctor-HYDAFWR2.js → doctor-GS6VC336.js} +27 -27
- package/dist/{emit-artifact-cmd-TTLDSPP3.js → emit-artifact-cmd-NFAASCXW.js} +10 -10
- package/dist/{emit-criteria-cmd-MZSFNXTL.js → emit-criteria-cmd-TX4LKO5X.js} +7 -7
- package/dist/{emit-demo-cmd-CPC6OR6A.js → emit-demo-cmd-4PVJYO5S.js} +12 -12
- package/dist/{emit-finding-cmd-6ABNXD5P.js → emit-finding-cmd-LO2AKL4P.js} +7 -7
- package/dist/{emit-result-cmd-7STD6BH3.js → emit-result-cmd-7PL4HNXL.js} +9 -9
- package/dist/{emit-step-cmd-A35LWNWB.js → emit-step-cmd-RZT6VK5U.js} +7 -7
- package/dist/{exec-client-U4544U2S.js → exec-client-UHL7WPDO.js} +3 -3
- package/dist/find-unit-XGGULXYG.js +19 -0
- package/dist/{findings-cmd-JNLW5T2Q.js → findings-cmd-MEU7GDRC.js} +7 -7
- package/dist/{fleet-readiness-7WASGVPR.js → fleet-readiness-4RNICYSP.js} +5 -5
- package/dist/{governing-source-SQE47DKU.js → governing-source-6DH2NLPE.js} +9 -9
- package/dist/{guest-init-73ZCYECM.js → guest-init-2TTQKFFZ.js} +4 -4
- package/dist/{hook-fast-AELCXUNA.js → hook-fast-5PNO5HRO.js} +1 -1
- package/dist/{host-checks-EM7CVCO6.js → host-checks-5MJC6PH7.js} +31 -31
- package/dist/{pending-GBIXDPY7.js → host-key-Q5DEAP3Q.js} +3 -3
- package/dist/{image-tag-6KN2SKDZ.js → image-tag-JWATDMIZ.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-NEOWYRSR.js → init-PVDEFMUR.js} +24 -24
- package/dist/{init-4U2IAN5U.js → init-ZTQMCBGK.js} +24 -24
- package/dist/{init-cmd-WRNXDUM7.js → init-cmd-NHZUAKHE.js} +10 -10
- package/dist/{init-update-ATXYAAAD.js → init-update-5PTU5IE6.js} +8 -8
- package/dist/{install-cmd-WF2N2SKL.js → install-cmd-ZEFBJH24.js} +5 -5
- package/dist/{logs-WEJHWBLM.js → logs-3YRC7HRA.js} +2 -2
- package/dist/{loop-IHQ4UMRY.js → loop-ZN7G2TXF.js} +39 -39
- package/dist/{machine-VNDSSHQA.js → machine-AMVFNL36.js} +24 -24
- package/dist/{mcp-serve-cmd-YT63QC7W.js → mcp-serve-cmd-PKXIHUOX.js} +4 -4
- package/dist/{paths-IGFAJFPN.js → paths-7PC3K7C3.js} +2 -2
- package/dist/{host-key-ZRXO2BXZ.js → pending-2VIIFAP4.js} +3 -3
- package/dist/{pidfile-BDQMJPLA.js → pidfile-KQ2EJABZ.js} +3 -3
- package/dist/{record-KLNLIQVR.js → record-IHEF6C33.js} +3 -3
- package/dist/{runner-env-PBTT2CNL.js → runner-env-FBK4LTZZ.js} +10 -10
- package/dist/{runner-identity-JVG53E73.js → runner-identity-YBOC7QII.js} +6 -6
- package/dist/{runner-key-YKHIRBO4.js → runner-key-OLETR57F.js} +24 -24
- package/dist/{session-sender-SNBEWETV.js → session-sender-GJEVFQVN.js} +10 -10
- package/dist/{spec-cmd-VPP66GMQ.js → spec-cmd-BRTO5J2C.js} +8 -8
- package/dist/{state-VIWYAWVB.js → state-FJPSFOID.js} +3 -3
- package/dist/{status-HY5FJPJV.js → status-YKHTXJ2A.js} +31 -31
- package/dist/{sync-cmd-7BG47GNA.js → sync-cmd-EO4TP2K7.js} +9 -9
- package/dist/{update-steps-NI25AAQM.js → update-steps-DKSSL2IE.js} +32 -32
- package/dist/{watch-QMKKCF2B.js → watch-EG6MYI3O.js} +9 -9
- package/dist/{work-claim-cmd-UUMDPIZG.js → work-claim-cmd-BA57U5QT.js} +14 -14
- package/dist/{work-cmd-5QGKKDFY.js → work-cmd-PKEAVXJC.js} +7 -7
- package/dist/{work-comment-cmd-YJ3JTQ5B.js → work-comment-cmd-7IEOLOOK.js} +8 -8
- package/dist/{work-demo-cmd-AQ4JVDCK.js → work-demo-cmd-GKMBBMMM.js} +7 -7
- package/dist/{work-logs-cmd-TQTA7KQK.js → work-logs-cmd-44ZOKO5E.js} +7 -7
- package/dist/{work-open-pr-cmd-2NFF3RYJ.js → work-open-pr-cmd-YYQLQ7DN.js} +8 -8
- package/dist/{work-pr-cmd-R5VRWQJD.js → work-pr-cmd-ILCIO22W.js} +7 -7
- package/dist/{work-proofs-cmd-UYGYDIYY.js → work-proofs-cmd-AWN5CKL7.js} +8 -8
- package/dist/{work-proofs-record-U3KQOM5Z.js → work-proofs-record-Y7W4PBM2.js} +15 -15
- package/dist/{work-stop-cmd-SIAX4XAA.js → work-stop-cmd-5VPW7HOZ.js} +7 -7
- package/package.json +1 -1
- package/dist/find-unit-ZMUTRE46.js +0 -19
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
4
|
-
import { readDefaultBranchFiles, readDefaultBranchHead, cloneRepository, buildRepositoryImage, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-
|
|
5
|
-
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-
|
|
4
|
+
import { readDefaultBranchFiles, readDefaultBranchHead, cloneRepository, buildRepositoryImage, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-5XV27STP.js';
|
|
5
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-F26I6GKL.js';
|
|
6
6
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
7
7
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
8
|
-
import { runExec, execCapture, waitForAgent } from './chunk-
|
|
9
|
-
import { GUEST_CID, linkVsockSockets } from './chunk-
|
|
10
|
-
import { retrySend, describeCallFailure, formatDuration, keepStagedContext, controlPlaneTokenFailure, refusalCode, resolveGoverningSource, prefetchGovernedContext, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, shimScript, WORKFLOW_PERMISSION_REASON } from './chunk-
|
|
11
|
-
import { runnerImageVersion } from './chunk-
|
|
12
|
-
import { hasStoredCredential, AGENT_COMMANDS, storeClaudeCredential, credentialFromStdin, isAgentName } from './chunk-
|
|
13
|
-
import { claimCalls } from './chunk-
|
|
14
|
-
import { optionalEgress, runnerCredentialProblem, builtinKind, keyRunnerFactory, DEFAULT_SETUP_MINUTES, allowHostProblem, DEFAULT_SAVED_STATE_MAX_BYTES, systemClock, emptyEgressCounts, hostAllowed } from './chunk-
|
|
15
|
-
import { DEFAULT_BUILD_DISK, formatBytes, allocatedBytes } from './chunk-
|
|
16
|
-
import { parseSize, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, runnerLabelValue, RUNNER_LABEL, BUILD_LABEL, prepareRunArgs, networkHelperName, containerRunArgs, HASH_ARGV, parseProgramHash, JUDGE_PROGRAM, mountableHome, homeCopyRunArgs, containerExecArgs, childEnvironment, readDu, JUDGE_DIR, MAX_ITEMS_BYTES, JUDGE_ITEMS, MAX_REPORT_BYTES, JUDGE_REPORT, NETWORK_READY_FILE, spawnRun, identityRunArgs, parseIdentity, networkHelperRunArgs, SAVED_STATE_LABEL } from './chunk-
|
|
17
|
-
import { RecipeError, DOCKER_FEATURE, universalImagePending, writeSanitizedRecipe, classifyProperties } from './chunk-
|
|
18
|
-
import { firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, CLAUDE_CODE_VERSION, builderDiskPinned, guestAssetsPinned, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, 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 } from './chunk-
|
|
19
|
-
import { postJson, WorkCommandError, getJson } from './chunk-
|
|
8
|
+
import { runExec, execCapture, waitForAgent } from './chunk-4PH4DVV4.js';
|
|
9
|
+
import { GUEST_CID, linkVsockSockets } from './chunk-UZGQT6OF.js';
|
|
10
|
+
import { retrySend, describeCallFailure, formatDuration, keepStagedContext, controlPlaneTokenFailure, refusalCode, resolveGoverningSource, prefetchGovernedContext, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, shimScript, WORKFLOW_PERMISSION_REASON } from './chunk-HERRKKES.js';
|
|
11
|
+
import { runnerImageVersion } from './chunk-SQGD4LYW.js';
|
|
12
|
+
import { hasStoredCredential, AGENT_COMMANDS, storeClaudeCredential, credentialFromStdin, isAgentName } from './chunk-MCK4XMV5.js';
|
|
13
|
+
import { claimCalls } from './chunk-BETYII72.js';
|
|
14
|
+
import { optionalEgress, runnerCredentialProblem, builtinKind, keyRunnerFactory, DEFAULT_SETUP_MINUTES, allowHostProblem, DEFAULT_SAVED_STATE_MAX_BYTES, systemClock, emptyEgressCounts, hostAllowed } from './chunk-DPXJ5RJU.js';
|
|
15
|
+
import { DEFAULT_BUILD_DISK, formatBytes, allocatedBytes } from './chunk-FAA2URUR.js';
|
|
16
|
+
import { parseSize, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, runnerLabelValue, RUNNER_LABEL, BUILD_LABEL, prepareRunArgs, networkHelperName, containerRunArgs, HASH_ARGV, parseProgramHash, JUDGE_PROGRAM, mountableHome, homeCopyRunArgs, containerExecArgs, childEnvironment, readDu, JUDGE_DIR, MAX_ITEMS_BYTES, JUDGE_ITEMS, MAX_REPORT_BYTES, JUDGE_REPORT, NETWORK_READY_FILE, spawnRun, identityRunArgs, parseIdentity, networkHelperRunArgs, SAVED_STATE_LABEL } from './chunk-2I6VHGJA.js';
|
|
17
|
+
import { RecipeError, DOCKER_FEATURE, universalImagePending, writeSanitizedRecipe, classifyProperties } from './chunk-NGT2CCGM.js';
|
|
18
|
+
import { firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, CLAUDE_CODE_VERSION, builderDiskPinned, guestAssetsPinned, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, 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 } from './chunk-PZN4L2DN.js';
|
|
19
|
+
import { postJson, WorkCommandError, getJson } from './chunk-JQOET7TF.js';
|
|
20
20
|
import { sanitizeTerminal } from './chunk-PDK35AR4.js';
|
|
21
|
-
import { signerFor } from './chunk-
|
|
21
|
+
import { signerFor } from './chunk-XU5BNWX7.js';
|
|
22
22
|
import { sharedSkillNames, skillConflictMessage } from './chunk-FGF52V4V.js';
|
|
23
23
|
import { versionAtLeast, MINIMUM_CLAUDE_VERSION } from './chunk-HCVLP7XA.js';
|
|
24
24
|
import { MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, parseTranscript, scrubDeep, scrubText } from './chunk-TV2OQUWE.js';
|
|
25
25
|
import { orderSessions, extractFacts, sessionsToTimeline } from './chunk-5FWBAM6O.js';
|
|
26
26
|
import { downconvertSession } from './chunk-YTTESG7K.js';
|
|
27
|
-
import { vmAssetsDir, RUNNER_DIR_MODE, rootfsPathFor, diskTemplatesDir, RUNNER_FILE_MODE, buildsDir, buildDir, runnerDir, deliveryDir, ghConfigDir, orgStoreIn, runnerDirOfBuild, spoolDir, mirrorDir, SHIM_DIR, vsockPath, builderCacheDiskPath, builderConsolePath } from './chunk-
|
|
28
|
-
import { claudeCredential, parseIsolation, proxyEnvironment, withProxyWarningHidden, containerLocalAddress, destinationEnvironment, CLAUDE_CREDENTIAL_VARIABLES, builtInEnvironment, withHooksPath, startBuildServices, BUILT_IN_NAMES, checkoutPath, repositoriesOf, primaryOf, RELAY_PORT, repositoryPath, CHECKOUT_DIR, lifecycleWorkdir, buildEnvironment, checkEnvironment, withMiseVariables, isMiseVariableAllowed, JOB_MOUNT, realFdStorePort, AGENT_CREDENTIAL_MISSING } from './chunk-
|
|
27
|
+
import { vmAssetsDir, RUNNER_DIR_MODE, rootfsPathFor, diskTemplatesDir, RUNNER_FILE_MODE, buildsDir, buildDir, runnerDir, deliveryDir, ghConfigDir, orgStoreIn, runnerDirOfBuild, spoolDir, mirrorDir, SHIM_DIR, vsockPath, builderCacheDiskPath, builderConsolePath } from './chunk-YQHUCOUL.js';
|
|
28
|
+
import { claudeCredential, parseIsolation, proxyEnvironment, withProxyWarningHidden, containerLocalAddress, destinationEnvironment, CLAUDE_CREDENTIAL_VARIABLES, builtInEnvironment, withHooksPath, startBuildServices, BUILT_IN_NAMES, checkoutPath, repositoriesOf, primaryOf, RELAY_PORT, repositoryPath, CHECKOUT_DIR, lifecycleWorkdir, buildEnvironment, checkEnvironment, withMiseVariables, isMiseVariableAllowed, JOB_MOUNT, realFdStorePort, AGENT_CREDENTIAL_MISSING } from './chunk-GANAOCHR.js';
|
|
29
29
|
import { RELAY_USER, RELAY_ID, UNKNOWN_TRANSPORT_REASON, DOCKER_DESKTOP_REASON, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath } from './chunk-MESOOLF4.js';
|
|
30
30
|
import { spawn, spawnSync } from 'child_process';
|
|
31
31
|
import { mkdirSync, existsSync, readFileSync, mkdtempSync, rmSync, chmodSync, truncateSync, statSync, accessSync, constants, readdirSync, writeFileSync, renameSync, lstatSync, copyFileSync, rmdirSync, unlinkSync, linkSync, openSync, closeSync, cpSync, writeSync, appendFileSync, createWriteStream, createReadStream } from 'fs';
|
|
@@ -421,24 +421,42 @@ function createContainerHost(deps = {}) {
|
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
// src/runner/microvm/disks.ts
|
|
424
|
-
function
|
|
424
|
+
function fillRootDisk() {
|
|
425
425
|
return [
|
|
426
|
-
"set -eu",
|
|
427
|
-
`rootfs=${workDir}`,
|
|
428
|
-
'mkdir -p "$rootfs"',
|
|
429
|
-
'tar -xf - -C "$rootfs"',
|
|
430
426
|
'used_kb=$(du -sk "$rootfs" | cut -f1)',
|
|
431
427
|
'files=$(find "$rootfs" | wc -l)',
|
|
432
|
-
// The file is made roomy and sparse, so that populating it cannot run out of space, and is shrunk to the smallest size that holds the files afterwards.
|
|
433
428
|
"total_kb=$(( used_kb * 2 + 262144 ))",
|
|
434
429
|
'truncate -s "${total_kb}K" "/out/$OUT_NAME"',
|
|
435
|
-
'mke2fs -q -F -t ext4 -m 0 -N $(( files + files / 4 + 4096 )) -d "$rootfs" "/out/$OUT_NAME"'
|
|
430
|
+
'mke2fs -q -F -t ext4 -m 0 -N $(( files + files / 4 + 4096 )) -d "$rootfs" "/out/$OUT_NAME"'
|
|
431
|
+
];
|
|
432
|
+
}
|
|
433
|
+
function shrinkRootDisk() {
|
|
434
|
+
return [
|
|
436
435
|
// e2fsck exits 1 when it repaired something; resize2fs -M needs the check to have run.
|
|
437
436
|
'e2fsck -f -y "/out/$OUT_NAME" > /dev/null || [ $? -lt 4 ]',
|
|
438
437
|
'resize2fs -M "/out/$OUT_NAME" > /dev/null 2>&1',
|
|
439
|
-
'chown "$HOST_UID:$HOST_GID" "/out/$OUT_NAME"'
|
|
440
|
-
|
|
441
|
-
|
|
438
|
+
'chown "$HOST_UID:$HOST_GID" "/out/$OUT_NAME"'
|
|
439
|
+
];
|
|
440
|
+
}
|
|
441
|
+
function converterScript() {
|
|
442
|
+
return ["set -eu", "rootfs=/tmp/rootfs", 'mkdir -p "$rootfs"', 'tar -xf - -C "$rootfs"', ...fillRootDisk(), ...shrinkRootDisk()].join("\n");
|
|
443
|
+
}
|
|
444
|
+
var LAYER_MOUNT = "/run/builder/rootfs";
|
|
445
|
+
function layerConverterScript() {
|
|
446
|
+
return [
|
|
447
|
+
"set -eu",
|
|
448
|
+
`graph=$(docker container inspect --format '{{.GraphDriver.Name}} {{.GraphDriver.Data.UpperDir}}' "$1")`,
|
|
449
|
+
"driver=${graph%% *}",
|
|
450
|
+
`[ "$driver" = overlay2 ] || { echo "the builder's Docker engine stores layers with $driver, and the root disk is made only from overlay2 layers" >&2; exit 1; }`,
|
|
451
|
+
'layer=$(dirname "${graph#* }")',
|
|
452
|
+
`rootfs=${LAYER_MOUNT}`,
|
|
453
|
+
'mkdir -p "$rootfs"',
|
|
454
|
+
'( cd "$(dirname "$layer")" && mount -t overlay overlay -o "ro,lowerdir=l/$(cat "$layer/link"):$(cat "$layer/lower")" "$rootfs" )',
|
|
455
|
+
`trap 'umount "$rootfs"' EXIT`,
|
|
456
|
+
...fillRootDisk(),
|
|
457
|
+
'umount "$rootfs"',
|
|
458
|
+
"trap - EXIT",
|
|
459
|
+
...shrinkRootDisk()
|
|
442
460
|
].join("\n");
|
|
443
461
|
}
|
|
444
462
|
var ids = () => ({ uid: String(process.getuid?.() ?? 0), gid: String(process.getgid?.() ?? 0) });
|
|
@@ -2145,7 +2163,7 @@ function builderGuestScript(parts) {
|
|
|
2145
2163
|
JSON.stringify(clientConfig(), null, 2),
|
|
2146
2164
|
"OL_CLIENT_JSON",
|
|
2147
2165
|
"cat > /run/builder/convert.sh <<'OL_CONVERT'",
|
|
2148
|
-
|
|
2166
|
+
layerConverterScript(),
|
|
2149
2167
|
"OL_CONVERT",
|
|
2150
2168
|
// The forwarder binds the bridge address before the engine makes the bridge.
|
|
2151
2169
|
"echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind",
|
|
@@ -2162,12 +2180,12 @@ function builderGuestScript(parts) {
|
|
|
2162
2180
|
build,
|
|
2163
2181
|
`docker build --progress plain --tag ${buildTag} --file /work/tools/Dockerfile /work/tools`,
|
|
2164
2182
|
`docker image inspect --format '{{json .Config}}' ${buildTag} > /run/builder/config.json`,
|
|
2165
|
-
// The conversion puts the
|
|
2166
|
-
//
|
|
2183
|
+
// The conversion puts the root disk beside the layers. The inputs and Docker's copies of the build contexts are not
|
|
2184
|
+
// needed for it, and the tool files in them are large, so they go first.
|
|
2167
2185
|
"rm -rf /work/repo /work/recipe /work/tools/fetched",
|
|
2168
2186
|
"docker builder prune --force --filter type=source.local > /dev/null 2>&1 || true",
|
|
2169
2187
|
`container=$(docker create ${buildTag} none)`,
|
|
2170
|
-
'
|
|
2188
|
+
'OUT_NAME=rootfs.ext4 HOST_UID=0 HOST_GID=0 sh /run/builder/convert.sh "$container"',
|
|
2171
2189
|
'docker rm --force --volumes "$container" > /dev/null',
|
|
2172
2190
|
`printf '${RESULT_PREFIX}{"config":%s,"bytes":%s}\\n' "$(cat /run/builder/config.json)" "$(stat -c %s ${GUEST_OUTPUT})"`,
|
|
2173
2191
|
""
|
|
@@ -3121,8 +3139,26 @@ var readMiseVariables = async (context) => {
|
|
|
3121
3139
|
context.variables = Object.fromEntries(Object.entries(reported).filter(([name]) => isMiseVariableAllowed(name)));
|
|
3122
3140
|
const names = Object.keys(context.variables).sort();
|
|
3123
3141
|
if (names.length > 0) line(context, `variables ${names.join(", ")} from mise env`);
|
|
3142
|
+
const path = await pathFromMise(context);
|
|
3143
|
+
if (path !== void 0) context.variables.PATH = path;
|
|
3124
3144
|
return void 0;
|
|
3125
3145
|
};
|
|
3146
|
+
async function pathFromMise(context) {
|
|
3147
|
+
const listed = await context.input.exec(["mise", "env", "--paths"], context.path, { quiet: true });
|
|
3148
|
+
if (listed.status !== 0) {
|
|
3149
|
+
line(context, `mise env --paths failed (exit ${listed.status})${said(listed.stderr)}; the build's commands keep the image's PATH`);
|
|
3150
|
+
return void 0;
|
|
3151
|
+
}
|
|
3152
|
+
const folders = [...new Set(listed.stdout.split("\n").map((folder) => folder.trim()).filter((folder) => folder !== ""))];
|
|
3153
|
+
if (folders.length === 0) return void 0;
|
|
3154
|
+
const image = await context.input.exec(["printenv", "PATH"], context.path, { quiet: true });
|
|
3155
|
+
if (image.status !== 0) {
|
|
3156
|
+
line(context, `reading the image's PATH failed (exit ${image.status})${said(image.stderr)}; the build's commands keep the image's PATH`);
|
|
3157
|
+
return void 0;
|
|
3158
|
+
}
|
|
3159
|
+
line(context, `PATH starts with ${folders.join(":")} from mise env --paths`);
|
|
3160
|
+
return [...folders, ...image.stdout.trim().split(":").filter((folder) => folder !== "" && !folders.includes(folder))].join(":");
|
|
3161
|
+
}
|
|
3126
3162
|
function unpinnedIn(context) {
|
|
3127
3163
|
const used = new Set([...context.files].map((file) => MANIFESTS[file]));
|
|
3128
3164
|
const pinned = new Set(context.resolved.filter((r) => r.source?.startsWith(`${context.path}/`)).map((r) => r.tool));
|
|
@@ -252,7 +252,7 @@ async function runClaudeLauncher(args, deps = {}) {
|
|
|
252
252
|
return 1;
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
|
-
const { resolveLaunchPlane } = await import('./control-plane-launch-
|
|
255
|
+
const { resolveLaunchPlane } = await import('./control-plane-launch-FV5Q6GVJ.js');
|
|
256
256
|
const plane = env[GOVERNANCE_VARIABLE] === "self" ? { kind: "none" } : await resolveLaunchPlane({ cwd, env, home, fetchImpl: deps.fetchImpl, stderr });
|
|
257
257
|
if (plane.kind === "none") {
|
|
258
258
|
const own2 = ownSkillsDirFor(cwd, home, [], stderr);
|