@outerlayer/cli 0.34.0-next.20261027121359 → 0.34.0-next.20261027162612
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-UPRMGVB7.js → agent-setup-THDNZ5ME.js} +6 -6
- package/dist/{bridge-GVZUP3NU.js → bridge-MLB57JP6.js} +2 -2
- package/dist/build-25GDCEZ7.js +18 -0
- package/dist/{build-disk-WMIRA4RD.js → build-disk-NFMQCZM3.js} +8 -8
- package/dist/build-info.json +1 -1
- package/dist/{builder-XTAHDFV5.js → builder-OWDGC3VQ.js} +7 -7
- package/dist/{check-FAG4QKIX.js → check-QGM2SECF.js} +39 -39
- package/dist/{chunk-Q3ATWA2U.js → chunk-2YPOSVC7.js} +3 -3
- package/dist/{chunk-M6YTST7G.js → chunk-36M4KVBT.js} +2 -2
- package/dist/{chunk-W5EKMK37.js → chunk-3FTIUB7I.js} +1 -1
- package/dist/{chunk-L4DCIEVT.js → chunk-3RRYEZAC.js} +4 -4
- package/dist/{chunk-I2GHZ2VA.js → chunk-3VJYDWFV.js} +1 -1
- package/dist/{chunk-CHDWAWQA.js → chunk-4QQJTJUN.js} +1 -1
- package/dist/{chunk-6SJ3DJDH.js → chunk-5ARXP3BP.js} +3 -3
- package/dist/{chunk-SGT7YU3X.js → chunk-5FHBVV25.js} +104 -59
- package/dist/{chunk-T375XV3H.js → chunk-62URQYCB.js} +1 -1
- package/dist/{chunk-NGZBVN6F.js → chunk-6IMQXBTZ.js} +6 -6
- package/dist/{chunk-66TKWWTX.js → chunk-7Q7GQELE.js} +5 -5
- package/dist/{chunk-B7LPFCIN.js → chunk-7SJNVGVC.js} +6 -6
- package/dist/{chunk-JKOONI3H.js → chunk-7TLGRE5F.js} +2 -2
- package/dist/{chunk-OOD5NDQA.js → chunk-A6PJSNP6.js} +349 -94
- package/dist/{chunk-LUYTNCMS.js → chunk-ANFNZCXZ.js} +5 -5
- package/dist/{chunk-LHUZVM3L.js → chunk-AV5T7HV3.js} +1 -1
- package/dist/{chunk-SJY6A6EH.js → chunk-BCIBSJZH.js} +35 -22
- package/dist/{chunk-RMJSYOSV.js → chunk-BS3OYFAD.js} +1 -1
- package/dist/{chunk-PBZODW5X.js → chunk-BS4CZMT6.js} +1 -1
- package/dist/{chunk-HO4XRLAZ.js → chunk-CFJOONWM.js} +1 -1
- package/dist/{chunk-LTMFHECB.js → chunk-CKVJSOY3.js} +20 -20
- package/dist/{chunk-UC4OSOQS.js → chunk-CMMEJJTL.js} +10 -35
- package/dist/{chunk-YIBHQR3B.js → chunk-EYJRVHBN.js} +3 -3
- package/dist/{chunk-UYWGR35C.js → chunk-FLHBUQ2W.js} +7 -6
- package/dist/{chunk-N752ZNZ5.js → chunk-FVVHQIZR.js} +1 -1
- package/dist/{chunk-Z7THNFUU.js → chunk-GMKDAF37.js} +25 -6
- package/dist/{chunk-XZGURZHF.js → chunk-GPO7F757.js} +1 -1
- package/dist/{chunk-KFXPH7SJ.js → chunk-HJCNWEQK.js} +3 -3
- package/dist/{chunk-ARPPH7VS.js → chunk-J3Q3QCOF.js} +243 -79
- package/dist/{chunk-3NMDGGZS.js → chunk-JO4SAEHH.js} +3 -3
- package/dist/{chunk-ZV6GOXYA.js → chunk-JVNQNKHV.js} +1 -1
- package/dist/{chunk-RO2NZJHZ.js → chunk-JWMJMQRF.js} +4 -4
- package/dist/{chunk-4IB5WUY2.js → chunk-KVGK2JL3.js} +6 -6
- package/dist/{chunk-TS2YACAQ.js → chunk-LYX2RRSF.js} +2 -2
- package/dist/{chunk-W774NREK.js → chunk-MGF346ND.js} +3 -3
- package/dist/{chunk-UDRBQI5J.js → chunk-N33OOF3K.js} +10 -10
- package/dist/{chunk-WS5E73JO.js → chunk-NEBMTP7T.js} +6 -6
- package/dist/{chunk-L7RPNSAA.js → chunk-NO6E72RM.js} +2 -2
- package/dist/{chunk-UXGWAAGQ.js → chunk-OHTMTMFX.js} +4 -4
- package/dist/{chunk-XSUM3E67.js → chunk-OP2L7OXA.js} +3 -3
- package/dist/{chunk-YGX72FUQ.js → chunk-QRIE4JZE.js} +3 -3
- package/dist/{chunk-XEJ5USHY.js → chunk-QWSAZGH6.js} +6 -6
- package/dist/{chunk-QBBZGVZJ.js → chunk-RCAMBC3H.js} +3 -3
- package/dist/{chunk-KDSKFXPE.js → chunk-RJZZFAXS.js} +1 -1
- package/dist/{chunk-QTAADTIO.js → chunk-T6ALNN3H.js} +1 -1
- package/dist/{chunk-DUG3JXAT.js → chunk-UZIAZXXO.js} +1 -1
- package/dist/{chunk-LXOBWRVC.js → chunk-W246VXU4.js} +3 -3
- package/dist/{chunk-J2X5CTYY.js → chunk-WR2GRWK3.js} +1 -1
- package/dist/{chunk-QUOITPN7.js → chunk-WX2HW2G2.js} +8 -1
- package/dist/{chunk-HDLON3RJ.js → chunk-X7M73LKT.js} +9 -2
- package/dist/{chunk-FRETDGET.js → chunk-Z4LFCJT6.js} +3 -3
- package/dist/{claude-launcher-SGZSOGKZ.js → claude-launcher-LYGS66AC.js} +1 -1
- package/dist/{cli-6QN7TH6U.js → cli-HVBFWC3J.js} +114 -113
- package/dist/{command-6T6RI5XY.js → command-J3CDQLWC.js} +27 -27
- package/dist/{config-CWYMIXTV.js → config-5NWSCHIO.js} +9 -9
- package/dist/{connect-cmd-MY6SR4OK.js → connect-cmd-HB3K3AHE.js} +6 -6
- package/dist/{container-start-FDXR4QND.js → container-start-YLKDT2JG.js} +33 -33
- package/dist/{context-show-cmd-WRTV3ACH.js → context-show-cmd-RJIQS2KF.js} +7 -7
- package/dist/{control-plane-launch-UM4IHOJQ.js → control-plane-launch-TS4DFJF4.js} +5 -5
- package/dist/{demo-record-cmd-XBWTORVM.js → demo-record-cmd-VVZGUCWB.js} +4 -4
- package/dist/{demo-voice-cmd-FLU4GDKS.js → demo-voice-cmd-3ADGIWK6.js} +13 -13
- package/dist/{dist-ADKRGE7I.js → dist-BUSLJNSZ.js} +1 -1
- package/dist/{docker-IUPWQ2RK.js → docker-5VGCFZV2.js} +7 -7
- package/dist/{doctor-5VNZ2BLY.js → doctor-AG73VZNG.js} +28 -28
- package/dist/{emit-artifact-cmd-RDXIWRFU.js → emit-artifact-cmd-WJT7AXTZ.js} +11 -11
- package/dist/{emit-criteria-cmd-EDJOWGKL.js → emit-criteria-cmd-45IYB535.js} +8 -8
- package/dist/{emit-demo-cmd-W3BXFFU3.js → emit-demo-cmd-AIIQNPXS.js} +13 -13
- package/dist/{emit-finding-cmd-TMZIOQIP.js → emit-finding-cmd-6YTJK2NA.js} +8 -8
- package/dist/{emit-result-cmd-P55JBD2W.js → emit-result-cmd-TZGFY743.js} +10 -10
- package/dist/{emit-step-cmd-Y7LKI7L3.js → emit-step-cmd-LGBTIAXC.js} +8 -8
- package/dist/{exec-client-FB3OBHOJ.js → exec-client-LR67CA24.js} +3 -3
- package/dist/find-unit-YGDFVHVU.js +19 -0
- package/dist/{findings-cmd-D64BYS7Z.js → findings-cmd-ETJXUDQI.js} +8 -8
- package/dist/{fleet-readiness-75KQEZ6E.js → fleet-readiness-MYIMDBF7.js} +5 -5
- package/dist/{governing-source-YYEU46PP.js → governing-source-GBJTVMK2.js} +10 -10
- package/dist/{guest-init-SGF6ZVZN.js → guest-init-GXPOW53F.js} +4 -4
- package/dist/{hook-fast-XX5HZOCR.js → hook-fast-5WOGLR7V.js} +1 -1
- package/dist/{host-checks-VKBAGGWH.js → host-checks-6G2F2HTK.js} +31 -31
- package/dist/{pending-GEDI4K7P.js → host-key-GAZM4EOH.js} +3 -3
- package/dist/{image-tag-MRWNQGXA.js → image-tag-OYHGRHVV.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/{init-B5S5LMIL.js → init-7VWIU5TG.js} +24 -24
- package/dist/{init-BB2TLXVB.js → init-Y2OJSOAA.js} +24 -24
- package/dist/{init-cmd-I2Z4VZSG.js → init-cmd-77XKBRUF.js} +11 -11
- package/dist/{init-update-TIZILQXL.js → init-update-TXQHBY3H.js} +9 -9
- package/dist/{install-cmd-X4OHS36T.js → install-cmd-VZGXSS73.js} +5 -5
- package/dist/{logs-BPEOYWRW.js → logs-42QPBCMC.js} +2 -2
- package/dist/{loop-XULUT5HL.js → loop-FRT5NSFG.js} +38 -38
- package/dist/{machine-UYFUUSEQ.js → machine-TEG554M5.js} +24 -24
- package/dist/{mcp-serve-cmd-NCPWJJDZ.js → mcp-serve-cmd-LYJQO6U4.js} +4 -4
- package/dist/{paths-WXGOFVCF.js → paths-QLFRPIKS.js} +2 -2
- package/dist/{host-key-CNCHVNDC.js → pending-6DDSCXUD.js} +3 -3
- package/dist/{pidfile-MYLBUG2I.js → pidfile-WLZ427QQ.js} +3 -3
- package/dist/{record-Y2JIOP56.js → record-WGCMQLQS.js} +3 -3
- package/dist/{runner-env-Y2PBG7TR.js → runner-env-6FSJOSWS.js} +11 -11
- package/dist/{runner-identity-PL442M57.js → runner-identity-XODZ7YBP.js} +7 -7
- package/dist/{runner-key-L6LXC4QA.js → runner-key-T3V7N7CL.js} +24 -24
- package/dist/{session-sender-AXROAZSC.js → session-sender-U54EQJNR.js} +11 -11
- package/dist/{spec-cmd-JG4QLGGJ.js → spec-cmd-EM24GTAM.js} +9 -9
- package/dist/{status-VOGNQ3NG.js → status-4YO4TUEH.js} +31 -31
- package/dist/{sync-cmd-B3KQZJZO.js → sync-cmd-Y5RKWVF7.js} +10 -10
- package/dist/{update-steps-RSYFLNTL.js → update-steps-KNN4Y2ZU.js} +32 -32
- package/dist/{watch-IHZRBUYV.js → watch-X5VYY4LH.js} +10 -10
- package/dist/{work-claim-cmd-YEMHNW3H.js → work-claim-cmd-IU3YJQKR.js} +15 -15
- package/dist/{work-cmd-OWZS3ZXL.js → work-cmd-LUKJHAMH.js} +8 -8
- package/dist/{work-comment-cmd-ESBYAE4K.js → work-comment-cmd-BDNFAVKL.js} +9 -9
- package/dist/{work-demo-cmd-FT3FQWM7.js → work-demo-cmd-GPDJHU6F.js} +8 -8
- package/dist/{work-logs-cmd-K6NTURGR.js → work-logs-cmd-B6EX4RPE.js} +8 -8
- package/dist/{work-open-pr-cmd-NGD4Z2TO.js → work-open-pr-cmd-TRXDCMSG.js} +9 -9
- package/dist/{work-pr-cmd-274YUPQB.js → work-pr-cmd-5GUR5SIU.js} +8 -8
- package/dist/{work-proofs-cmd-JLSQHVKO.js → work-proofs-cmd-PBY7WNYI.js} +9 -9
- package/dist/{work-proofs-record-AYUWUFBE.js → work-proofs-record-AVKJFZOD.js} +16 -16
- package/dist/{work-stop-cmd-VQLLLJ3H.js → work-stop-cmd-J47GZB2N.js} +8 -8
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +15 -0
- package/dist/build-ZDYL7ZGP.js +0 -18
- package/dist/find-unit-R4I5GJCH.js +0 -19
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
4
|
-
import { runEmitArtifact } from './chunk-
|
|
4
|
+
import { runEmitArtifact } from './chunk-3RRYEZAC.js';
|
|
5
5
|
import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
|
|
6
|
-
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-
|
|
6
|
+
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-WX2HW2G2.js';
|
|
7
7
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
8
|
-
import { autoConnect } from './chunk-
|
|
8
|
+
import { autoConnect } from './chunk-EYJRVHBN.js';
|
|
9
9
|
import { C } from './chunk-ANPNT6PM.js';
|
|
10
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
11
|
-
import { resolveRepoIdentity } from './chunk-
|
|
10
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-62URQYCB.js';
|
|
11
|
+
import { resolveRepoIdentity } from './chunk-A6PJSNP6.js';
|
|
12
12
|
import { launchedItemForSession } from './chunk-T2Q7ISPE.js';
|
|
13
13
|
import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-DINRXUQA.js';
|
|
14
14
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { currentLink } from './chunk-
|
|
3
|
+
import { currentLink } from './chunk-WR2GRWK3.js';
|
|
4
4
|
import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
|
|
5
5
|
import { randomBytes } from 'crypto';
|
|
6
6
|
import { join, dirname, delimiter, resolve } from 'path';
|
|
@@ -2,35 +2,35 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, criterionInputs, planCriteria, parseJudgeAnswer, inCriteriaOrder, oneLineReason, judgedItems } from './chunk-6CK2OC4Q.js';
|
|
4
4
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
5
|
-
import { DOCKERD_LOG, HELPER_PATH, HELPER_RECORD } from './chunk-
|
|
5
|
+
import { DOCKERD_LOG, HELPER_PATH, HELPER_RECORD } from './chunk-5ARXP3BP.js';
|
|
6
6
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
7
|
-
import { senderPidfile } from './chunk-
|
|
8
|
-
import { installScrubContext } from './chunk-
|
|
9
|
-
import { writeDockerClientConfig } from './chunk-
|
|
7
|
+
import { senderPidfile } from './chunk-QRIE4JZE.js';
|
|
8
|
+
import { installScrubContext } from './chunk-7SJNVGVC.js';
|
|
9
|
+
import { writeDockerClientConfig } from './chunk-GPO7F757.js';
|
|
10
10
|
import { upgradedStarterText } from './chunk-TZMDRHWB.js';
|
|
11
|
-
import { ADDED_USER, shellQuote, GH_CONFIG_YML, ghHostsYml, hasClaudeCredential, AssetError, obtainImage, ensureRootfs, makeBuildsDirPrivate, gitRemoteFor, startServicesFor, createLeaseChannel, createBuildDisk, machineConfig, startJailedInto, resolveAgentUser, AgentUserError, runBuildSteps, createContainerRuntime, containerSenderCommand, hostCommandEnvironment, execArgv, signalInContainer, startHostServices, LEASE_SECONDS, managedBuildSettingsFor, stopContainer, cleanupContainer, outOfMemoryReason, closeHostBuild, dropManagedClaudeKey, dropManagedBuildSettings, startCheckContainer, lifecycleSteps, lifecycleFailureReason, writeEvalInput, DeliveryFailure, EVAL_INPUT_NAME, syncInContainer, copyTranscriptsFromContainer, MANAGED_UNJAILED_REASON, senderAliveScript, managedMachineLimits, withFactoryHosts, helperFirecrackerNote, managedClaudeKeyValues, managedBuildSettingValues, stopJailed, deleteBuildDisk, managedClaudeKeyFor, ROOT_DISK_ID_PREFIX, copyTranscripts, containerJudgeEnvironment, senderSignalScript, copyJudgeTree } from './chunk-
|
|
12
|
-
import { fetchCommit, readBranchHead, diffBetween } from './chunk-
|
|
13
|
-
import { waitForAgent, vmExecArgs } from './chunk-
|
|
14
|
-
import { socketPathProblem, vsockLinks, LEASE_LINK, linkVsockSockets } from './chunk-
|
|
15
|
-
import { describeCallFailure, resolveGoverningSource, prefetchGovernedContext, refusalCode, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, logStamp, createRunnerLog, removeKeptContext, formatDuration, retrySend, formatClock, keptContextTree, WORKFLOW_PERMISSION_REASON } from './chunk-
|
|
16
|
-
import { imageBuildOf, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, egressSummary, DEFAULT_CHECK_TIME_LIMIT_MINUTES, optionalEgress } from './chunk-
|
|
17
|
-
import { formatBytes, DEFAULT_CACHE_DISK, allocatedBytes } from './chunk-
|
|
18
|
-
import { HASH_ARGV, parseProgramHash, JUDGE_PROGRAM, writeJobFile, readJobFile, parseSize, childEnvironment, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, JUDGE_MAX_TURNS, JUDGE_DIR, COMMAND_DIR, MAX_ITEMS_BYTES } from './chunk-
|
|
19
|
-
import { CLAUDE_CODE_VERSION, FIRECRACKER_VERSION } from './chunk-
|
|
11
|
+
import { ADDED_USER, shellQuote, GH_CONFIG_YML, ghHostsYml, hasClaudeCredential, AssetError, obtainImage, ensureRootfs, makeBuildsDirPrivate, gitRemoteFor, startServicesFor, createLeaseChannel, createBuildDisk, machineConfig, startJailedInto, resolveAgentUser, AgentUserError, runBuildSteps, runtimeStepInput, keepUnpinnedRuntimes, createContainerRuntime, containerSenderCommand, hostCommandEnvironment, execArgv, signalInContainer, startHostServices, LEASE_SECONDS, managedBuildSettingsFor, stopContainer, cleanupContainer, outOfMemoryReason, closeHostBuild, dropManagedClaudeKey, dropManagedBuildSettings, startCheckContainer, lifecycleSteps, lifecycleFailureReason, writeEvalInput, DeliveryFailure, EVAL_INPUT_NAME, syncInContainer, copyTranscriptsFromContainer, MANAGED_UNJAILED_REASON, senderAliveScript, managedMachineLimits, withFactoryHosts, helperFirecrackerNote, managedClaudeKeyValues, managedBuildSettingValues, stopJailed, deleteBuildDisk, managedClaudeKeyFor, ROOT_DISK_ID_PREFIX, copyTranscripts, containerJudgeEnvironment, senderSignalScript, copyJudgeTree } from './chunk-J3Q3QCOF.js';
|
|
12
|
+
import { fetchCommit, readBranchHead, diffBetween } from './chunk-5FHBVV25.js';
|
|
13
|
+
import { waitForAgent, vmExecArgs } from './chunk-JVNQNKHV.js';
|
|
14
|
+
import { socketPathProblem, vsockLinks, LEASE_LINK, linkVsockSockets } from './chunk-BS3OYFAD.js';
|
|
15
|
+
import { describeCallFailure, resolveGoverningSource, prefetchGovernedContext, refusalCode, removeStagedContext, stageGovernedContext, pinnedSourceOf, commandWithShim, logStamp, createRunnerLog, removeKeptContext, formatDuration, retrySend, formatClock, keptContextTree, WORKFLOW_PERMISSION_REASON } from './chunk-7Q7GQELE.js';
|
|
16
|
+
import { imageBuildOf, isBuiltinContainer, isBuiltinProcess, isBuiltinVm, egressSummary, DEFAULT_CHECK_TIME_LIMIT_MINUTES, optionalEgress } from './chunk-JWMJMQRF.js';
|
|
17
|
+
import { formatBytes, DEFAULT_CACHE_DISK, allocatedBytes } from './chunk-LYX2RRSF.js';
|
|
18
|
+
import { HASH_ARGV, parseProgramHash, JUDGE_PROGRAM, writeJobFile, readJobFile, parseSize, childEnvironment, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, JUDGE_MAX_TURNS, JUDGE_DIR, COMMAND_DIR, MAX_ITEMS_BYTES } from './chunk-FLHBUQ2W.js';
|
|
19
|
+
import { CLAUDE_CODE_VERSION, FIRECRACKER_VERSION } from './chunk-WX2HW2G2.js';
|
|
20
20
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
21
|
-
import { WorkCommandError, postJson, isSignatureRefusal, getJson } from './chunk-
|
|
21
|
+
import { WorkCommandError, postJson, isSignatureRefusal, getJson } from './chunk-6IMQXBTZ.js';
|
|
22
22
|
import { planArtifactUpload } from './chunk-IXPH4EXK.js';
|
|
23
23
|
import { readCloudConfig } from './chunk-PJDQPF5N.js';
|
|
24
|
-
import { signerFor } from './chunk-
|
|
24
|
+
import { signerFor } from './chunk-RJZZFAXS.js';
|
|
25
25
|
import { AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, resolvePackRoot } from './chunk-OVNF4LLC.js';
|
|
26
|
-
import { scrubText } from './chunk-
|
|
26
|
+
import { scrubText } from './chunk-A6PJSNP6.js';
|
|
27
27
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
28
28
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
29
29
|
import { parsePolicy } from './chunk-XFJ7YOPD.js';
|
|
30
30
|
import { CheckItemsSchema } from './chunk-DINRXUQA.js';
|
|
31
31
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
32
|
-
import { RUNNER_FILE_MODE, runnerDir, buildDir, vsockPath, jobConsolePath } from './chunk-
|
|
33
|
-
import { JOB_MOUNT, repositoriesOf, primaryOf, buildEnvironment, CHECKOUT_DIR, claudeCredential, AGENT_CREDENTIAL_MISSING, sharedUserEnvironment, headerVariables, authorEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, fdName, buildMavenSettingsXml, CLAUDE_CREDENTIAL_VARIABLES, currentClaudeCredential, removedClaudeCredentialValues, managedClaudeCredential, checkEnvironment, MAVEN_SETTINGS_FILE, EVAL_INPUT_DIR } from './chunk-
|
|
32
|
+
import { RUNNER_FILE_MODE, runnerDir, buildDir, vsockPath, jobConsolePath } from './chunk-3VJYDWFV.js';
|
|
33
|
+
import { JOB_MOUNT, repositoriesOf, primaryOf, buildEnvironment, CHECKOUT_DIR, claudeCredential, AGENT_CREDENTIAL_MISSING, sharedUserEnvironment, headerVariables, authorEnvironment, withTunnelRecord, commitIdentityRecord, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, fdName, buildMavenSettingsXml, CLAUDE_CREDENTIAL_VARIABLES, currentClaudeCredential, removedClaudeCredentialValues, managedClaudeCredential, checkEnvironment, MAVEN_SETTINGS_FILE, EVAL_INPUT_DIR } from './chunk-GMKDAF37.js';
|
|
34
34
|
import { RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON } from './chunk-MESOOLF4.js';
|
|
35
35
|
import { randomBytes, createHash } from 'crypto';
|
|
36
36
|
import { rmSync, existsSync, statSync, appendFileSync, mkdirSync, chmodSync, writeFileSync, openSync, closeSync, readFileSync, readdirSync, lstatSync, realpathSync, fstatSync, readSync } from 'fs';
|
|
@@ -610,9 +610,10 @@ async function provisionMicroVm(input) {
|
|
|
610
610
|
} catch (err) {
|
|
611
611
|
return bail(`the build's Maven settings could not be delivered: ${describeCallFailure(err)}`);
|
|
612
612
|
}
|
|
613
|
-
|
|
613
|
+
let execEnv = buildEnvironment({ ...envInput, imageEnv: state.imageEnv });
|
|
614
614
|
for (const notice of execEnv.notices) log.line(`${tag} ${notice}`);
|
|
615
|
-
const
|
|
615
|
+
const plainEnv = buildEnvironment({ ...envInput, imageEnv: state.imageEnv, proxyWarning: false });
|
|
616
|
+
const request = (argv, workdir, plain = false) => ({ argv, user: agentUser, cwd: workdir, env: execEnvironment(state.imageEnv, plain ? plainEnv : execEnv) });
|
|
616
617
|
const steps = await runBuildSteps({
|
|
617
618
|
repository,
|
|
618
619
|
branch: primary.branch,
|
|
@@ -621,7 +622,7 @@ async function provisionMicroVm(input) {
|
|
|
621
622
|
agentVersion,
|
|
622
623
|
lifecycle: report.apply.lifecycle,
|
|
623
624
|
exec: async (argv, workdir, opts) => {
|
|
624
|
-
const ran = await vm.exec(state.vsockPath, request(argv, workdir));
|
|
625
|
+
const ran = await vm.exec(state.vsockPath, request(argv, workdir, opts?.withoutProxyWarning === true));
|
|
625
626
|
if (opts?.quiet !== true) appendFileSync(logPath, ran.stdout + ran.stderr);
|
|
626
627
|
return ran;
|
|
627
628
|
},
|
|
@@ -651,10 +652,16 @@ async function provisionMicroVm(input) {
|
|
|
651
652
|
},
|
|
652
653
|
removeStagedContext: () => removeStagedContext(buildDir2),
|
|
653
654
|
keepIn: jobDir,
|
|
654
|
-
...input.requireBuildSkill === true ? { requireBuildSkill: true } : {}
|
|
655
|
+
...input.requireBuildSkill === true ? { requireBuildSkill: true } : {},
|
|
656
|
+
// A repository with no devcontainer file builds on the universal image, whose runtimes the build chooses and installs.
|
|
657
|
+
...runtimeStepInput(report, services, () => {
|
|
658
|
+
state.proxyWarningDropped = true;
|
|
659
|
+
execEnv = plainEnv;
|
|
660
|
+
})
|
|
655
661
|
});
|
|
656
662
|
if (!steps.ok) return bail(steps.reason, steps.aborted === true);
|
|
657
663
|
state.startCommit = steps.startCommit;
|
|
664
|
+
keepUnpinnedRuntimes(state, steps);
|
|
658
665
|
if (steps.controlPlane !== void 0) environment.controlPlane = steps.controlPlane;
|
|
659
666
|
return { ok: true, workdir: CHECKOUT_DIR, state, environment };
|
|
660
667
|
}
|
|
@@ -699,9 +706,11 @@ function vmExecFor(input, argv) {
|
|
|
699
706
|
repositories: input.job.repositories,
|
|
700
707
|
hostEnv: input.runtime.hostEnv,
|
|
701
708
|
containerEnv: state.containerEnv ?? {},
|
|
709
|
+
unpinnedRuntimes: state.unpinnedRuntimes,
|
|
702
710
|
builtIns: state.builtIns === true,
|
|
703
711
|
identity: input.job.commitIdentity,
|
|
704
712
|
imageEnv: state.imageEnv,
|
|
713
|
+
proxyWarning: state.proxyWarningDropped !== true,
|
|
705
714
|
factoryVariables: factoryVariablesOf(input.config, input.jobDir)
|
|
706
715
|
});
|
|
707
716
|
const options = {
|
|
@@ -729,9 +738,11 @@ async function startMicroVmCommand(input) {
|
|
|
729
738
|
repositories: input.job.repositories,
|
|
730
739
|
hostEnv: input.runtime.hostEnv,
|
|
731
740
|
containerEnv: state.containerEnv ?? {},
|
|
741
|
+
unpinnedRuntimes: state.unpinnedRuntimes,
|
|
732
742
|
builtIns: state.builtIns === true,
|
|
733
743
|
identity: input.job.commitIdentity,
|
|
734
744
|
imageEnv: state.imageEnv,
|
|
745
|
+
proxyWarning: state.proxyWarningDropped !== true,
|
|
735
746
|
factoryVariables: factoryVariablesOf(input.config, input.jobDir)
|
|
736
747
|
});
|
|
737
748
|
const started = await input.runtime.vm.exec(state.vsockPath, {
|
|
@@ -772,9 +783,11 @@ async function syncInMicroVm(input) {
|
|
|
772
783
|
repositories: job.repositories,
|
|
773
784
|
hostEnv: runtime.hostEnv,
|
|
774
785
|
containerEnv: state.containerEnv ?? {},
|
|
786
|
+
unpinnedRuntimes: state.unpinnedRuntimes,
|
|
775
787
|
builtIns: state.builtIns === true,
|
|
776
788
|
identity: job.commitIdentity,
|
|
777
789
|
imageEnv: state.imageEnv,
|
|
790
|
+
proxyWarning: state.proxyWarningDropped !== true,
|
|
778
791
|
factoryVariables: factoryVariablesOf(input.config, input.jobDir)
|
|
779
792
|
});
|
|
780
793
|
const result = await runtime.vm.exec(state.vsockPath, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, GATEWAY_SOCKET, GATEWAY_PORT, CLAUDE_SOCKET, CLAUDE_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
3
|
+
import { RELAY_PORT, GATEWAY_SOCKET, GATEWAY_PORT, CLAUDE_SOCKET, CLAUDE_PORT, DESTINATION_BASE_PORT } from './chunk-GMKDAF37.js';
|
|
4
4
|
import { symlinkSync, unlinkSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -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-3VJYDWFV.js';
|
|
4
4
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -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-3VJYDWFV.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
4
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
4
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-KVGK2JL3.js';
|
|
5
5
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
6
6
|
import { RUNNER_PROTOCOL } from './chunk-MH6QLXUO.js';
|
|
7
|
-
import { writePendingUpdate } from './chunk-
|
|
8
|
-
import { renderUpdateSteps } from './chunk-
|
|
9
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
10
|
-
import { releaseLease, isUnfinished, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, readProvisionOut, workdirProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, startSender, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-
|
|
7
|
+
import { writePendingUpdate } from './chunk-UZIAZXXO.js';
|
|
8
|
+
import { renderUpdateSteps } from './chunk-MGF346ND.js';
|
|
9
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-BS4CZMT6.js';
|
|
10
|
+
import { releaseLease, isUnfinished, setStage, jobEnv, runHook, describeHookEnd, provisionMicroVm, deliverCommitHooks, provisionProcess, readProvisionOut, workdirProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, startSender, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, stopOrphanedMicroVms, unfinishedJobs, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, listTrackedJobs, restartSender, serveLease, vmAlive, writeGuestGhConfig, ALREADY_RELEASED, inTeardown } from './chunk-BCIBSJZH.js';
|
|
11
11
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
12
|
-
import { realBlockedProbes, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, sliceMemoryOf } from './chunk-
|
|
13
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
12
|
+
import { realBlockedProbes, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, sliceMemoryOf } from './chunk-QWSAZGH6.js';
|
|
13
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-WR2GRWK3.js';
|
|
14
14
|
import { RepoFilter } from './chunk-TBT347UY.js';
|
|
15
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionEnvironment, resolveHostBuild, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, containerCommandExec, execCommandLine, startHostServices, setUpRunnerCgroup, sweepImageBuilders, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel } from './chunk-
|
|
16
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
17
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
15
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, LEASE_SECONDS, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionEnvironment, resolveHostBuild, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, containerCommandExec, execCommandLine, startHostServices, setUpRunnerCgroup, sweepImageBuilders, measureDisk, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel } from './chunk-J3Q3QCOF.js';
|
|
16
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-7Q7GQELE.js';
|
|
17
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-CFJOONWM.js';
|
|
18
18
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
19
|
-
import { isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
20
|
-
import { freeBytes, formatBytes, allocatedBytes, volumeBytes } from './chunk-
|
|
21
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, RUNNER_LABEL, BUILD_LABEL, readJobFileChecked } from './chunk-
|
|
22
|
-
import { claimPidFile, writePidFile, readPidFile, releasePidFile } from './chunk-
|
|
19
|
+
import { isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-JWMJMQRF.js';
|
|
20
|
+
import { freeBytes, formatBytes, allocatedBytes, volumeBytes } from './chunk-LYX2RRSF.js';
|
|
21
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, RUNNER_LABEL, BUILD_LABEL, readJobFileChecked } from './chunk-FLHBUQ2W.js';
|
|
22
|
+
import { claimPidFile, writePidFile, readPidFile, releasePidFile } from './chunk-3FTIUB7I.js';
|
|
23
23
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
24
|
-
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
25
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
24
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-6IMQXBTZ.js';
|
|
25
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-RJZZFAXS.js';
|
|
26
26
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
27
|
-
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, spoolDir, imagesDir, rootfsDir, builderCacheDiskPath } from './chunk-
|
|
28
|
-
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT, takeClaudeCredential, heldClaudeCredential, currentClaudeCredential, fdName } from './chunk-
|
|
27
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, spoolDir, imagesDir, rootfsDir, builderCacheDiskPath } from './chunk-3VJYDWFV.js';
|
|
28
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT, takeClaudeCredential, heldClaudeCredential, currentClaudeCredential, fdName } from './chunk-GMKDAF37.js';
|
|
29
29
|
import { COMMAND_LOST_REASON, CONTAINER_STOPPED_REASON } from './chunk-MESOOLF4.js';
|
|
30
30
|
import { randomBytes } from 'crypto';
|
|
31
31
|
import { mkdirSync, existsSync, chmodSync, writeFileSync, renameSync, statSync, readdirSync, readFileSync, closeSync, rmSync, lstatSync } from 'fs';
|
|
@@ -1961,7 +1961,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
1961
1961
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
1962
1962
|
);
|
|
1963
1963
|
async function tryClaimAndStart(state, item, queue) {
|
|
1964
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
1964
|
+
const { postJson: postJson2 } = await import('./work-cmd-LUKJHAMH.js');
|
|
1965
1965
|
const log = logOf(state);
|
|
1966
1966
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
1967
1967
|
const claim = await retrySend(
|
|
@@ -3279,7 +3279,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3279
3279
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3280
3280
|
const held = heldClaudeCredential();
|
|
3281
3281
|
const env = held === void 0 ? process.env : { ...process.env, [held.variable]: held.value };
|
|
3282
|
-
return (await import('./check-
|
|
3282
|
+
return (await import('./check-QGM2SECF.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3283
3283
|
},
|
|
3284
3284
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3285
3285
|
log
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { 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-
|
|
4
|
-
import { PROXY_WARNING_FLAG } from './chunk-
|
|
3
|
+
import { 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-WX2HW2G2.js';
|
|
4
|
+
import { PROXY_WARNING_FLAG } from './chunk-GMKDAF37.js';
|
|
5
5
|
import { RELAY_ID, RELAY_USER } from './chunk-MESOOLF4.js';
|
|
6
6
|
|
|
7
7
|
createRequire(import.meta.url);
|
|
8
8
|
|
|
9
|
+
// src/runner/image/claude-wrapper.ts
|
|
10
|
+
function claudeWrapperScript(opts) {
|
|
11
|
+
const path = opts.universal ? 'PATH="$PATH:/opt/outerlayer/bin"' : "PATH=/opt/outerlayer/bin:$PATH";
|
|
12
|
+
return ["#!/bin/sh", path, "export PATH", 'exec /opt/outerlayer/claude/bin/claude "$@"', ""].join("\n");
|
|
13
|
+
}
|
|
14
|
+
|
|
9
15
|
// src/runner/image/dockerfiles.ts
|
|
10
16
|
var FETCHED_DIR = "fetched";
|
|
11
17
|
var FETCHED_VOICE_DIR = "voice";
|
|
@@ -30,37 +36,6 @@ function plain(name, value, allowed) {
|
|
|
30
36
|
if (!allowed.test(value)) throw new Error(`${name} holds a character a Dockerfile line cannot carry safely: ${JSON.stringify(value)}`);
|
|
31
37
|
return value;
|
|
32
38
|
}
|
|
33
|
-
var DEFAULT_PACKAGES = ["git", "ca-certificates", "curl", "build-essential", "python3", "python3-pip", "python3-venv", "unzip", "jq"];
|
|
34
|
-
function defaultDockerfile(baseImage, nodeImage) {
|
|
35
|
-
return [
|
|
36
|
-
ubuntuWithNode(baseImage, nodeImage, DEFAULT_PACKAGES),
|
|
37
|
-
// The browsers live in one shared folder so any user finds them. A build container's root filesystem is
|
|
38
|
-
// read-only, so the build user cannot add to this folder: a repository that needs another Playwright version
|
|
39
|
-
// installs that version's Chromium into a writable folder by setting PLAYWRIGHT_BROWSERS_PATH.
|
|
40
|
-
// `install --with-deps` runs apt-get as root and works on amd64 and arm64.
|
|
41
|
-
"ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright",
|
|
42
|
-
"RUN mkdir -p /ms-playwright \\",
|
|
43
|
-
` && npx -y playwright@${plain("the Playwright version", PLAYWRIGHT_VERSION, /^[0-9.]+$/)} install --with-deps chromium \\`,
|
|
44
|
-
" && chmod -R a+rX /ms-playwright \\",
|
|
45
|
-
" && rm -rf /var/lib/apt/lists/* /root/.npm",
|
|
46
|
-
""
|
|
47
|
-
].join("\n");
|
|
48
|
-
}
|
|
49
|
-
function ubuntuWithNode(baseImage, nodeImage, packages) {
|
|
50
|
-
return [
|
|
51
|
-
`FROM ${baseImage}`,
|
|
52
|
-
"ENV DEBIAN_FRONTEND=noninteractive",
|
|
53
|
-
"RUN apt-get update \\",
|
|
54
|
-
` && apt-get install -y --no-install-recommends ${packages.join(" ")} \\`,
|
|
55
|
-
" && rm -rf /var/lib/apt/lists/*",
|
|
56
|
-
`COPY --from=${nodeImage} /usr/local/bin/node /usr/local/bin/node`,
|
|
57
|
-
`COPY --from=${nodeImage} /usr/local/lib/node_modules /usr/local/lib/node_modules`,
|
|
58
|
-
"RUN ln -s ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \\",
|
|
59
|
-
" && ln -s ../lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx \\",
|
|
60
|
-
" && ln -s ../lib/node_modules/corepack/dist/corepack.js /usr/local/bin/corepack",
|
|
61
|
-
""
|
|
62
|
-
].join("\n");
|
|
63
|
-
}
|
|
64
39
|
function toolsDockerfile(parts) {
|
|
65
40
|
const recipeImage = plain("the recipe image", parts.recipeImage, /^[A-Za-z0-9_.:@/-]+$/);
|
|
66
41
|
const nodeImage = plain("the Node image", parts.nodeImage, /^[A-Za-z0-9_.:@/-]+$/);
|
|
@@ -131,7 +106,7 @@ function toolsDockerfile(parts) {
|
|
|
131
106
|
"RUN mkdir -p /out/opt/outerlayer/bin /out/usr/local/bin /out/etc/claude-code /out/build \\",
|
|
132
107
|
" && cp /usr/local/bin/node /out/opt/outerlayer/bin/node \\",
|
|
133
108
|
` && printf '%s\\n' '#!/bin/sh' 'exec /opt/outerlayer/bin/node /opt/outerlayer/cli/dist/index.js "$@"' > /out/usr/local/bin/outerlayer \\`,
|
|
134
|
-
` && printf '%s\\n'
|
|
109
|
+
` && printf '%s\\n' ${claudeWrapperScript({ universal: parts.universal === true }).trimEnd().split("\n").map((line) => `'${line}'`).join(" ")} > /out/usr/local/bin/claude \\`,
|
|
135
110
|
` && printf '%s\\n' '${tools}' > /out/opt/outerlayer/tools.json \\`,
|
|
136
111
|
` && printf '%s\\n' '${managedSettings}' > /out/etc/claude-code/managed-settings.json \\`,
|
|
137
112
|
" && chmod 0755 /out/usr/local/bin/outerlayer /out/usr/local/bin/claude \\",
|
|
@@ -298,4 +273,4 @@ function browserStage(parts) {
|
|
|
298
273
|
];
|
|
299
274
|
}
|
|
300
275
|
|
|
301
|
-
export { FETCHED_DIR, FETCHED_FFMPEG, FETCHED_GH, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_TINI, FETCHED_VOICE_DIR, IMAGE_BROWSER,
|
|
276
|
+
export { FETCHED_DIR, FETCHED_FFMPEG, FETCHED_GH, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_TINI, FETCHED_VOICE_DIR, IMAGE_BROWSER, toolsDockerfile };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-
|
|
4
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-NO6E72RM.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-62URQYCB.js';
|
|
5
5
|
import { readCloudConfig } from './chunk-PJDQPF5N.js';
|
|
6
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
|
-
import { resolveRepoIdentity } from './chunk-
|
|
7
|
+
import { resolveRepoIdentity } from './chunk-A6PJSNP6.js';
|
|
8
8
|
import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
10
10
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveDevcontainerCli, devcontainerBuildInvocation, RecipeError } from './chunk-
|
|
4
|
-
import { BUILDKIT_IMAGE } from './chunk-
|
|
5
|
-
import { ensureHostKey } from './chunk-
|
|
6
|
-
import { compareVersions } from './chunk-
|
|
7
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-
|
|
8
|
-
import { CLAUDE_PORT, JOB_MOUNT, GATEWAY_PORT, GATEWAY_SOCKET, CLAUDE_SOCKET, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
3
|
+
import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-X7M73LKT.js';
|
|
4
|
+
import { universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-WX2HW2G2.js';
|
|
5
|
+
import { ensureHostKey } from './chunk-RJZZFAXS.js';
|
|
6
|
+
import { compareVersions } from './chunk-A6PJSNP6.js';
|
|
7
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-3VJYDWFV.js';
|
|
8
|
+
import { CLAUDE_PORT, JOB_MOUNT, GATEWAY_PORT, GATEWAY_SOCKET, CLAUDE_SOCKET, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-GMKDAF37.js';
|
|
9
9
|
import { JOIN_DIR, RELAY_ID, JOIN_SOCKET, TARGET_GATEWAY, TARGET_CLAUDE, destinationTarget, RELAY_USER } from './chunk-MESOOLF4.js';
|
|
10
10
|
import { createHash } from 'crypto';
|
|
11
11
|
import { mkdirSync, createWriteStream, rmSync, existsSync, readFileSync, chmodSync, writeFileSync, realpathSync, readdirSync, renameSync } from 'fs';
|
|
@@ -207,6 +207,7 @@ function createDockerHost(deps = {}) {
|
|
|
207
207
|
},
|
|
208
208
|
async buildDockerfile(req) {
|
|
209
209
|
const builder = builderFor();
|
|
210
|
+
if (!universalImagePinned() && req.dockerfile.includes(UNIVERSAL_IMAGE)) throw universalImagePending();
|
|
210
211
|
if (req.layoutOut !== void 0) {
|
|
211
212
|
rmSync(req.layoutOut, { recursive: true, force: true });
|
|
212
213
|
}
|
|
@@ -5,7 +5,7 @@ import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME
|
|
|
5
5
|
import { installStarterPack } from './chunk-J7EJMIDR.js';
|
|
6
6
|
import { C } from './chunk-ANPNT6PM.js';
|
|
7
7
|
import { AGENTS_MD_LAYOUT, declareAgentsMdLayout, linkClaudeSkills, SKILLS_LINK_PATH, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-LYCJQOO2.js';
|
|
8
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
8
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-36M4KVBT.js';
|
|
9
9
|
import { loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE } from './chunk-OVNF4LLC.js';
|
|
10
10
|
import { cliInvocation } from './chunk-CRB3POP4.js';
|
|
11
11
|
import { linkedAgentsPath } from './chunk-UPA5KOOX.js';
|
|
@@ -887,7 +887,19 @@ function withProxyWarningHidden(options) {
|
|
|
887
887
|
if (given.split(/\s+/).includes(PROXY_WARNING_FLAG)) return given;
|
|
888
888
|
return given === "" ? PROXY_WARNING_FLAG : `${given} ${PROXY_WARNING_FLAG}`;
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function withoutProxyWarningFlag(options) {
|
|
891
|
+
return options.split(/\s+/).filter((option) => option !== "" && option !== PROXY_WARNING_FLAG).join(" ");
|
|
892
|
+
}
|
|
893
|
+
function nodeAcceptsProxyWarningFlag(version) {
|
|
894
|
+
const match = /^v?(\d+)\.(\d+)/.exec(version.trim());
|
|
895
|
+
if (match === null) return true;
|
|
896
|
+
const major = Number(match[1]);
|
|
897
|
+
const minor = Number(match[2]);
|
|
898
|
+
if (major === 20) return minor >= 11;
|
|
899
|
+
if (major === 21) return minor >= 3;
|
|
900
|
+
return major >= 22;
|
|
901
|
+
}
|
|
902
|
+
function runnerLiterals(repository, repositories = [], unpinnedRuntimes) {
|
|
891
903
|
return {
|
|
892
904
|
OUTERLAYER_JOB_DIR: JOB_MOUNT,
|
|
893
905
|
HOME: BUILD_HOME,
|
|
@@ -902,7 +914,9 @@ function runnerLiterals(repository, repositories = []) {
|
|
|
902
914
|
OUTERLAYER_REPOSITORIES: JSON.stringify(
|
|
903
915
|
repositories.map((entry) => ({ repository: entry.repository, path: checkoutPath(entry), branch: entry.branch, primary: entry.primary }))
|
|
904
916
|
)
|
|
905
|
-
}
|
|
917
|
+
},
|
|
918
|
+
// What the build's command reads to find the runtimes each repository uses but does not pin, on the universal image.
|
|
919
|
+
...unpinnedRuntimes === void 0 ? {} : { OUTERLAYER_UNPINNED_RUNTIMES: JSON.stringify(unpinnedRuntimes) }
|
|
906
920
|
};
|
|
907
921
|
}
|
|
908
922
|
function containerBuiltInAddress(name) {
|
|
@@ -962,8 +976,13 @@ function buildEnvironment(input) {
|
|
|
962
976
|
}
|
|
963
977
|
const nodeOptions = {};
|
|
964
978
|
if (input.imageEnv !== void 0) {
|
|
965
|
-
|
|
966
|
-
|
|
979
|
+
const hide = input.proxyWarning !== false;
|
|
980
|
+
const apply = (value) => hide ? withProxyWarningHidden(value) : value === void 0 ? void 0 : withoutProxyWarningFlag(value);
|
|
981
|
+
if (passed.NODE_OPTIONS !== void 0) passed.NODE_OPTIONS = apply(passed.NODE_OPTIONS);
|
|
982
|
+
else {
|
|
983
|
+
const value = apply(recipe.NODE_OPTIONS ?? input.imageEnv.NODE_OPTIONS);
|
|
984
|
+
if (value !== void 0) nodeOptions.NODE_OPTIONS = value;
|
|
985
|
+
}
|
|
967
986
|
}
|
|
968
987
|
const mavenLiterals = {};
|
|
969
988
|
const notices = [];
|
|
@@ -993,7 +1012,7 @@ function buildEnvironment(input) {
|
|
|
993
1012
|
...nodeOptions,
|
|
994
1013
|
...mavenLiterals,
|
|
995
1014
|
...destinations,
|
|
996
|
-
...runnerLiterals(input.repository, repositoriesOf({ repositories: input.repositories, repository: input.repository, branch: input.branch })),
|
|
1015
|
+
...runnerLiterals(input.repository, repositoriesOf({ repositories: input.repositories, repository: input.repository, branch: input.branch }), input.unpinnedRuntimes),
|
|
997
1016
|
...builtInLiterals,
|
|
998
1017
|
...authored,
|
|
999
1018
|
...hooks
|
|
@@ -1066,4 +1085,4 @@ function routesOf(counts) {
|
|
|
1066
1085
|
return routes.length === 0 ? {} : { routes };
|
|
1067
1086
|
}
|
|
1068
1087
|
|
|
1069
|
-
export { AGENT_CREDENTIAL_MISSING, BUILD_HOME, BUILD_SLICE_MEMORY_ENV, BUILT_IN_NAMES, CHECKOUT_DIR, CHECK_ITEMS_FILE, CLAUDE_CREDENTIAL_ID, CLAUDE_CREDENTIAL_VARIABLES, CLAUDE_ENV_FILE, CLAUDE_PORT, CLAUDE_SOCKET, DESTINATION_BASE_PORT, EVAL_INPUT_DIR, FD_SLOTS_PER_BUILD, FD_STORE_ENV, FORWARDED_CLAUDE_CREDENTIAL_VARIABLES, GATEWAY_PORT, GATEWAY_SOCKET, JOB_MOUNT, MAVEN_NO_PROXY_NOTE, MAVEN_SETTINGS_FILE, MAVEN_SPACE_NOTE, MIN_SYSTEMD, PROXY_WARNING_FLAG, RELAY_PORT, SCRUB_ENV_VARIABLE, authorEnvironment, buildEnvironment, buildMavenSettingsXml, builtInEnvironment, checkEnvironment, checkoutPath, claudeCredential, claudeCredentialVariablesSet, claudeEnvPath, commitIdentityRecord, containerLocalAddress, credentialLineIn, currentClaudeCredential, destinationEnvironment, fdName, headerVariables, heldClaudeCredential, inspectService, isRefusedInConfig, isReservedVariable, lifecycleWorkdir, managedClaudeCredential, mavenArgs, mavenSettingsXml, namesGlobalSettings, parseClaimIdentity, parseClaimedRepositories, parseIsolation, parseRunnerEnv, parseUnreachable, primaryOf, proxyEnvironment, readClaudeCredential, realFdStorePort, realInspectProbes, removedClaudeCredentialValues, repositoriesOf, repositoryPath, resolveDestinations, sharedUserEnvironment, startBuildServices, takeClaudeCredential, tokenHeader, withGitConfig, withHooksPath, withProxyWarningHidden, withTokenHeader, withTunnelRecord, withoutCredentialLines, writeBuildMavenSettings, writeMavenSettings };
|
|
1088
|
+
export { AGENT_CREDENTIAL_MISSING, BUILD_HOME, BUILD_SLICE_MEMORY_ENV, BUILT_IN_NAMES, CHECKOUT_DIR, CHECK_ITEMS_FILE, CLAUDE_CREDENTIAL_ID, CLAUDE_CREDENTIAL_VARIABLES, CLAUDE_ENV_FILE, CLAUDE_PORT, CLAUDE_SOCKET, DESTINATION_BASE_PORT, EVAL_INPUT_DIR, FD_SLOTS_PER_BUILD, FD_STORE_ENV, FORWARDED_CLAUDE_CREDENTIAL_VARIABLES, GATEWAY_PORT, GATEWAY_SOCKET, JOB_MOUNT, MAVEN_NO_PROXY_NOTE, MAVEN_SETTINGS_FILE, MAVEN_SPACE_NOTE, MIN_SYSTEMD, PROXY_WARNING_FLAG, RELAY_PORT, SCRUB_ENV_VARIABLE, authorEnvironment, buildEnvironment, buildMavenSettingsXml, builtInEnvironment, checkEnvironment, checkoutPath, claudeCredential, claudeCredentialVariablesSet, claudeEnvPath, commitIdentityRecord, containerLocalAddress, credentialLineIn, currentClaudeCredential, destinationEnvironment, fdName, headerVariables, heldClaudeCredential, inspectService, isRefusedInConfig, isReservedVariable, lifecycleWorkdir, managedClaudeCredential, mavenArgs, mavenSettingsXml, namesGlobalSettings, nodeAcceptsProxyWarningFlag, parseClaimIdentity, parseClaimedRepositories, parseIsolation, parseRunnerEnv, parseUnreachable, primaryOf, proxyEnvironment, readClaudeCredential, realFdStorePort, realInspectProbes, removedClaudeCredentialValues, repositoriesOf, repositoryPath, resolveDestinations, sharedUserEnvironment, startBuildServices, takeClaudeCredential, tokenHeader, withGitConfig, withHooksPath, withProxyWarningHidden, withTokenHeader, withTunnelRecord, withoutCredentialLines, writeBuildMavenSettings, writeMavenSettings };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, BUILD_HOME } from './chunk-
|
|
3
|
+
import { RELAY_PORT, BUILD_HOME } from './chunk-GMKDAF37.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postJson, getJson } from './chunk-
|
|
3
|
+
import { resolveCredentials, postJson, getJson } from './chunk-6IMQXBTZ.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
5
|
import { C } from './chunk-ANPNT6PM.js';
|
|
6
6
|
import { sanitizeTerminal } from './chunk-IXPH4EXK.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
8
|
-
import { resolveRepoIdentity } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-62URQYCB.js';
|
|
8
|
+
import { resolveRepoIdentity } from './chunk-A6PJSNP6.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-VNVZDWO3.js';
|
|
11
11
|
import { randomUUID } from 'crypto';
|