@outerlayer/cli 0.38.0-next.20261109235338 → 0.38.0-next.20261110133110
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 +9 -2
- package/dist/agent-setup-GZBGCV3K.js +40 -0
- package/dist/{agent-subcommand-JC5JXZ3X.js → agent-subcommand-5PNHUNZZ.js} +4 -4
- package/dist/{artifact-link-cmd-RUGAK5EX.js → artifact-link-cmd-XOFZP7U5.js} +2 -2
- package/dist/{bridge-TYO2YB2X.js → bridge-RNM7OWRW.js} +7 -7
- package/dist/{build-QUCL3HFM.js → build-VKO7IVOQ.js} +13 -13
- package/dist/{build-disk-3JUHPJEQ.js → build-disk-M2JYJF6R.js} +11 -11
- package/dist/build-info.json +1 -1
- package/dist/{builder-PADLK3VJ.js → builder-HMHJ6U7C.js} +10 -10
- package/dist/caller-U26SATTV.js +23 -0
- package/dist/{check-DBYJIP44.js → check-3XHEVEXS.js} +56 -56
- package/dist/{chunk-6L55K352.js → chunk-25G5KXBE.js} +7 -7
- package/dist/{chunk-Y2M2NZX4.js → chunk-2KGYMIVS.js} +10 -10
- package/dist/{chunk-IXC5EISR.js → chunk-2TXYQANG.js} +1 -1
- package/dist/{chunk-HT4OKJDB.js → chunk-2WNJ2MHD.js} +1 -1
- package/dist/{chunk-4NRIC2G5.js → chunk-3DY4DQOC.js} +4 -4
- package/dist/{chunk-553QW3PJ.js → chunk-3GTAPQBG.js} +2 -2
- package/dist/{chunk-F3NW5TBW.js → chunk-3HJK7WTM.js} +6 -6
- package/dist/{chunk-X3CGWGAG.js → chunk-47JRSV6Y.js} +1 -1
- package/dist/{chunk-WISVAUTD.js → chunk-5QDHJT73.js} +4 -4
- package/dist/{chunk-DPBFNZ6H.js → chunk-5QFFQCSY.js} +1 -1
- package/dist/{chunk-KGHVJI7V.js → chunk-67BVM7JK.js} +3 -3
- package/dist/{chunk-P43BSQGV.js → chunk-6RQP5GP5.js} +2 -2
- package/dist/{chunk-RN5VLKZ2.js → chunk-6XMC6R4W.js} +1 -1
- package/dist/{chunk-Y67NEZMW.js → chunk-6XROZIV6.js} +6 -6
- package/dist/{chunk-LJPYKCIP.js → chunk-72LXVD4O.js} +4 -4
- package/dist/{chunk-4A4TMFGV.js → chunk-735C5J6Q.js} +5 -5
- package/dist/{chunk-PCY626FL.js → chunk-7E55P2NR.js} +1 -1
- package/dist/{chunk-O7IJBJ6Z.js → chunk-AC6DM3S3.js} +1 -1
- package/dist/{chunk-2TA2Z5IJ.js → chunk-ALCZ2SEW.js} +5 -5
- package/dist/{chunk-OQHHPJNK.js → chunk-ATQHPT3B.js} +1 -1
- package/dist/{chunk-QZP3O6IM.js → chunk-B4U5XI4F.js} +69 -9
- package/dist/{chunk-2DVQHK37.js → chunk-B5Z4VA4Q.js} +1 -1
- package/dist/{chunk-XMVASSUZ.js → chunk-BCQFMAGM.js} +3 -3
- package/dist/{chunk-EYFIWJFI.js → chunk-BTH6HTE5.js} +5 -5
- package/dist/{chunk-HWHJDQLC.js → chunk-C574RHGN.js} +3 -3
- package/dist/{chunk-KHC7ICRR.js → chunk-CXXQQST7.js} +9 -9
- package/dist/{chunk-52IVBUIU.js → chunk-DKDBMMX7.js} +6 -6
- package/dist/{chunk-SKKKPLOC.js → chunk-E27XMQKR.js} +3 -3
- package/dist/{chunk-XLUQC2PE.js → chunk-EHPKACA7.js} +1 -1
- package/dist/{chunk-JLCEQXQF.js → chunk-ENHD5PNW.js} +1 -1
- package/dist/{chunk-5J4WME44.js → chunk-F2ADK2KB.js} +5 -5
- package/dist/{chunk-AZRZBG45.js → chunk-FGBBGUM4.js} +4 -4
- package/dist/{chunk-HE53NIRE.js → chunk-FXVHF6RX.js} +54 -4
- package/dist/{chunk-W37QA6WG.js → chunk-GJMLLXZJ.js} +1 -1
- package/dist/{chunk-IJWQT2Y7.js → chunk-HDEYRLWK.js} +1 -1
- package/dist/{chunk-A237UPRS.js → chunk-HMDEF3UT.js} +16 -16
- package/dist/{chunk-G2J574LS.js → chunk-I2N427GS.js} +8 -8
- package/dist/{chunk-2YOFSE7U.js → chunk-I64CTY4U.js} +52 -34
- package/dist/{chunk-GH5Y3R5R.js → chunk-IGO766M6.js} +4 -4
- package/dist/{chunk-XPXJWIOJ.js → chunk-ITOIM3WV.js} +1 -1
- package/dist/{chunk-MGOEHY72.js → chunk-IVB6A3I7.js} +7 -7
- package/dist/{chunk-7HN6T4MY.js → chunk-L32O52SH.js} +1 -1
- package/dist/{chunk-DE5QLWJK.js → chunk-L6CZTRNW.js} +1 -1
- package/dist/{chunk-N2QYP3NQ.js → chunk-MBPBYMHU.js} +565 -16
- package/dist/{chunk-TYLZR7HX.js → chunk-MSARYPFD.js} +2 -2
- package/dist/{chunk-3Q2SEOT3.js → chunk-MT4XF5OL.js} +2 -2
- package/dist/{chunk-UU6FN6PZ.js → chunk-NE7EG3SN.js} +4 -4
- package/dist/{chunk-PE5J46EE.js → chunk-OEWSICWM.js} +8 -8
- package/dist/{chunk-26NMJGEY.js → chunk-OI4ZV7MJ.js} +1 -1
- package/dist/{chunk-IJ4DF5QS.js → chunk-OK4RSIB2.js} +1 -1
- package/dist/{chunk-ZZ4AX25R.js → chunk-OWEJP5HJ.js} +1 -1
- package/dist/{chunk-NL2MMRJI.js → chunk-PA6FKP5B.js} +6 -6
- package/dist/{chunk-ZRTGX4GN.js → chunk-QFQ2UNZU.js} +6 -6
- package/dist/{chunk-SOLQ3JA6.js → chunk-QGUCHNSQ.js} +66 -11
- package/dist/{chunk-NAU7U44X.js → chunk-QNHBJU74.js} +7 -7
- package/dist/{chunk-7NP5G2FV.js → chunk-RBLXGO5K.js} +2 -2
- package/dist/{chunk-F4XMG7EO.js → chunk-SBPMDO47.js} +1 -1
- package/dist/{chunk-5AU2GQGH.js → chunk-TD6DN5LU.js} +3 -3
- package/dist/{chunk-FLIRUHVT.js → chunk-TUSIYONR.js} +1 -1
- package/dist/{chunk-HITUWIB7.js → chunk-TW2V2IQ4.js} +1 -1
- package/dist/{chunk-ZUIHEOSC.js → chunk-UCUBQWJC.js} +1 -1
- package/dist/{chunk-DQLHVV62.js → chunk-UUSSRXUJ.js} +3 -3
- package/dist/{chunk-QA3U3MJZ.js → chunk-VNHDMOZW.js} +155 -36
- package/dist/{chunk-BAWOWJ3G.js → chunk-VQQF6MDT.js} +10 -10
- package/dist/{chunk-6ZMFEZ2K.js → chunk-VRWZNI6U.js} +1 -1
- package/dist/{chunk-ZIOMM4LL.js → chunk-VU5PPWIQ.js} +7 -7
- package/dist/{chunk-2BMH3373.js → chunk-WH2QUYXH.js} +2 -2
- package/dist/{chunk-WE4CWGNR.js → chunk-XAR2CJFV.js} +7 -7
- package/dist/{chunk-XDHMRHMC.js → chunk-XCTE5S2C.js} +1 -1
- package/dist/{chunk-IPB5UOHH.js → chunk-XFU37HIM.js} +3 -3
- package/dist/{chunk-C7YFAPMY.js → chunk-YO2NPS66.js} +1 -1
- package/dist/chunk-YOAJLD2D.js +270 -0
- package/dist/{chunk-3QTC4UWC.js → chunk-YZQYTOCR.js} +1 -1
- package/dist/{claude-launcher-UYCMHZOU.js → claude-launcher-WMIUTAXY.js} +7 -7
- package/dist/{cli-KEVUJ6PY.js → cli-VQNE6M77.js} +186 -156
- package/dist/{command-DNGERCQW.js → command-XQPL75PX.js} +51 -51
- package/dist/{config-M66C2AGN.js → config-ZRGYLVDX.js} +12 -12
- package/dist/{connect-cmd-JBM5ODV3.js → connect-cmd-MZXTWM4R.js} +13 -13
- package/dist/{container-start-4NKXX3MA.js → container-start-M7SFF62T.js} +49 -49
- package/dist/{context-cleanup-UE5HQRHP.js → context-cleanup-Z3HZZZXW.js} +4 -4
- package/dist/{context-show-cmd-HX5LND6O.js → context-show-cmd-SCOVPVDM.js} +14 -14
- package/dist/{control-plane-launch-XEMMZ7VZ.js → control-plane-launch-MWZHJ4G5.js} +14 -14
- package/dist/{demo-record-cmd-PI4PFFEO.js → demo-record-cmd-4RVSWVMK.js} +8 -8
- package/dist/{demo-voice-cmd-3GASMSCU.js → demo-voice-cmd-PGM5JPCQ.js} +20 -20
- package/dist/{dist-OMJJT636.js → dist-XEPPXF4M.js} +2 -2
- package/dist/{docker-KWHEDC6K.js → docker-25F2KOBJ.js} +10 -10
- package/dist/{doctor-GPATU5TY.js → doctor-Z3U3ICVR.js} +51 -51
- package/dist/{emit-artifact-cmd-OH7PNHZF.js → emit-artifact-cmd-Z4SHPKFT.js} +19 -19
- package/dist/{emit-cmd-RPICQ5H2.js → emit-cmd-NHMZ4M5S.js} +7 -7
- package/dist/{emit-criteria-cmd-JW2GS2SO.js → emit-criteria-cmd-HCN3DOJM.js} +16 -16
- package/dist/{emit-demo-cmd-5W6H6AI4.js → emit-demo-cmd-NOSQTOES.js} +20 -20
- package/dist/{emit-finding-cmd-PSCJFCBZ.js → emit-finding-cmd-YXR3ZVCJ.js} +16 -16
- package/dist/{emit-result-cmd-VJZDDWD3.js → emit-result-cmd-Z7MBE37R.js} +18 -18
- package/dist/{emit-step-cmd-ER65MOU6.js → emit-step-cmd-JOSYDSEO.js} +16 -16
- package/dist/{exec-client-PHJ4YGYG.js → exec-client-SZRXXKJ5.js} +8 -8
- package/dist/find-unit-3RHC4375.js +24 -0
- package/dist/{findings-cmd-BN6LO7LI.js → findings-cmd-NGFY25WZ.js} +16 -16
- package/dist/{fleet-readiness-FHVT7ZXE.js → fleet-readiness-NWIVQQ4P.js} +14 -14
- package/dist/governing-source-DNWVPRXP.js +41 -0
- package/dist/{guest-init-IREU7IIE.js → guest-init-T7QJW2AJ.js} +9 -9
- package/dist/{hook-fast-OFCB6O5N.js → hook-fast-ECQBMESE.js} +1 -1
- package/dist/{hook-install-3SSLJYA3.js → hook-install-MBMG3G6B.js} +4 -4
- package/dist/host-checks-QLGWXKOC.js +80 -0
- package/dist/host-key-6SMJUTJ2.js +18 -0
- package/dist/{image-tag-MYCA26HL.js → image-tag-OCVY4W5D.js} +8 -8
- package/dist/index.js +4 -4
- package/dist/init-JY3XYZI6.js +80 -0
- package/dist/{init-RUY6NPTN.js → init-NRN2DQC3.js} +47 -47
- package/dist/{init-agent-Z6PF22UT.js → init-agent-GDOZHPQH.js} +47 -47
- package/dist/{init-cmd-3M4QENFU.js → init-cmd-QJYX47LS.js} +27 -27
- package/dist/{init-update-V4AWGCUH.js → init-update-EUJ4264S.js} +24 -24
- package/dist/{install-cmd-UJO2EMXF.js → install-cmd-HWG6LJX5.js} +10 -10
- package/dist/{layout-VZ3MERWV.js → layout-CGE4KWGO.js} +4 -4
- package/dist/{login-browser-ZEOXKIQ2.js → login-browser-G7WNR74C.js} +2 -2
- package/dist/{logs-SQJ5BKAP.js → logs-TKWJ4S4W.js} +7 -7
- package/dist/loop-HWYHQ374.js +90 -0
- package/dist/machine-NVXRV4BO.js +80 -0
- package/dist/{machine-skills-SAD5OWIH.js → machine-skills-CXA57QHE.js} +4 -4
- package/dist/{mcp-install-cmd-7KKOGEFA.js → mcp-install-cmd-6IGK65DV.js} +4 -4
- package/dist/{mcp-serve-cmd-EKANKY4W.js → mcp-serve-cmd-DVE5XP2U.js} +9 -9
- package/dist/{paths-LYF7UNWL.js → paths-VOWYUJLZ.js} +7 -7
- package/dist/pending-35ML3JE5.js +18 -0
- package/dist/{pidfile-EYAULWL2.js → pidfile-MFP6B2KV.js} +8 -8
- package/dist/{record-CHYO34BN.js → record-AWCJ3LTG.js} +8 -8
- package/dist/{relay-J3OROVNN.js → relay-YVZM5M6B.js} +5 -5
- package/dist/{relay-protocol-UI7QUDOZ.js → relay-protocol-MNWITORT.js} +5 -5
- package/dist/{run-cmd-PIMQNBAX.js → run-cmd-MBH5Z2UL.js} +16 -16
- package/dist/{runner-agents-KSP3MLAH.js → runner-agents-L3PLYFWJ.js} +4 -4
- package/dist/runner-env-IHWYZ3B6.js +24 -0
- package/dist/{runner-identity-WZAKGBRX.js → runner-identity-E2XKIJNB.js} +10 -10
- package/dist/{runner-key-HGHQYJJX.js → runner-key-W5M6AYY5.js} +47 -47
- package/dist/{session-sender-W6MTYKLE.js → session-sender-IS6S7PBC.js} +19 -19
- package/dist/{spec-cmd-RJVMWOOX.js → spec-cmd-ZLDYL4N5.js} +17 -17
- package/dist/{starter-pack-52PX6IPU.js → starter-pack-XINCCMDN.js} +5 -5
- package/dist/state-NIA6XT7D.js +18 -0
- package/dist/{status-YQ25OCUL.js → status-L7R6FKWD.js} +47 -47
- package/dist/{sync-cmd-2NBSELL7.js → sync-cmd-3YZ4IB3T.js} +18 -18
- package/dist/update-steps-6SPAPBAB.js +81 -0
- package/dist/{watch-WQGK2SQB.js → watch-LIIODJ5U.js} +18 -18
- package/dist/{work-claim-cmd-CQ3DSJBR.js → work-claim-cmd-GWBWIZ43.js} +23 -23
- package/dist/work-cmd-CJWTGOU5.js +33 -0
- package/dist/work-comment-cmd-RFVCNEET.js +39 -0
- package/dist/{work-demo-cmd-BOKSQSA5.js → work-demo-cmd-Q2GKJCVL.js} +16 -16
- package/dist/{work-logs-cmd-TZXDF3UI.js → work-logs-cmd-KZQBPU2J.js} +16 -16
- package/dist/{work-needs-attention-cmd-WR5GR3B6.js → work-needs-attention-cmd-L3DOYAMK.js} +16 -16
- package/dist/{work-no-change-cmd-TKC3V64O.js → work-no-change-cmd-SHP25CJB.js} +16 -16
- package/dist/{work-open-pr-cmd-T2IFI7OR.js → work-open-pr-cmd-VATPLVSL.js} +17 -17
- package/dist/{work-pr-cmd-WM6PGSGK.js → work-pr-cmd-XBLNONT3.js} +16 -16
- package/dist/{work-proofs-cmd-E4VJP55B.js → work-proofs-cmd-27IPS3EY.js} +18 -18
- package/dist/{work-proofs-record-MIVUWECF.js → work-proofs-record-2RDDJ6CK.js} +24 -24
- package/dist/{work-stop-cmd-52WGVYF5.js → work-stop-cmd-BLOSL24H.js} +16 -16
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +1 -0
- package/skill-pack/maintained/outerlayer-amend/references/attachments.md +23 -0
- package/skill-pack/maintained/outerlayer-build/SKILL.md +5 -0
- package/skill-pack/maintained/outerlayer-cli/SKILL.md +9 -0
- package/dist/agent-setup-F4KAKOQE.js +0 -40
- package/dist/caller-LYH64TZB.js +0 -23
- package/dist/chunk-SWXAP4GM.js +0 -128
- package/dist/find-unit-D7MX5YW7.js +0 -24
- package/dist/governing-source-6WWMRJEI.js +0 -41
- package/dist/host-checks-KYLKXG2A.js +0 -80
- package/dist/host-key-4764FB4U.js +0 -18
- package/dist/init-EPBASJNK.js +0 -80
- package/dist/loop-VUNIGNXU.js +0 -90
- package/dist/machine-2KFSAU27.js +0 -80
- package/dist/pending-3FQ3GG6T.js +0 -18
- package/dist/runner-env-AMGOE3UI.js +0 -24
- package/dist/state-UIV37NXY.js +0 -18
- package/dist/update-steps-FH7UXI5N.js +0 -81
- package/dist/work-cmd-B32BDBV2.js +0 -33
- package/dist/work-comment-cmd-L5FTPUGE.js +0 -38
|
@@ -1,34 +1,35 @@
|
|
|
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-25G5KXBE.js';
|
|
5
5
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
6
|
-
import { writeFleetState } from './chunk-
|
|
7
|
-
import { writePendingUpdate } from './chunk-
|
|
8
|
-
import { renderUpdateSteps } from './chunk-
|
|
9
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
10
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
11
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
12
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, runIsolation, runCommandOf, claimRun,
|
|
13
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
14
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
15
|
-
import { RepoFilter } from './chunk-
|
|
6
|
+
import { writeFleetState } from './chunk-EHPKACA7.js';
|
|
7
|
+
import { writePendingUpdate } from './chunk-HDEYRLWK.js';
|
|
8
|
+
import { renderUpdateSteps } from './chunk-67BVM7JK.js';
|
|
9
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-YZQYTOCR.js';
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-VQQF6MDT.js';
|
|
11
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-5QFFQCSY.js';
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runIsolation, runCommandOf, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, listItemDisks, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, deliverJobFiles, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, inTeardown } from './chunk-I64CTY4U.js';
|
|
13
|
+
import { RUNNER_PROTOCOL } from './chunk-6XMC6R4W.js';
|
|
14
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-DKDBMMX7.js';
|
|
15
|
+
import { RepoFilter } from './chunk-CXXQQST7.js';
|
|
16
16
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
17
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
17
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-2WNJ2MHD.js';
|
|
18
18
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
19
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, configForJob } from './chunk-
|
|
20
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
19
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, configForJob } from './chunk-MSARYPFD.js';
|
|
20
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-OI4ZV7MJ.js';
|
|
21
21
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
22
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
23
|
-
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
24
|
-
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
25
|
-
import { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
26
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-
|
|
27
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
28
|
-
import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-
|
|
29
|
-
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-
|
|
30
|
-
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-
|
|
31
|
-
import {
|
|
22
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-IVB6A3I7.js';
|
|
23
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson, getBytes } from './chunk-B4U5XI4F.js';
|
|
24
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-5QDHJT73.js';
|
|
25
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-RBLXGO5K.js';
|
|
26
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-I2N427GS.js';
|
|
27
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-ENHD5PNW.js';
|
|
28
|
+
import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-AC6DM3S3.js';
|
|
29
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-NE7EG3SN.js';
|
|
30
|
+
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-WH2QUYXH.js';
|
|
31
|
+
import { cleanAttachmentName } from './chunk-QGUCHNSQ.js';
|
|
32
|
+
import { jobAgent, jobCommandEnv, runnerAgents } from './chunk-UCUBQWJC.js';
|
|
32
33
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
33
34
|
import { mkdirSync, existsSync, writeFileSync, chmodSync, renameSync, statSync, readdirSync, readFileSync, rmSync, closeSync } from 'fs';
|
|
34
35
|
import { join, dirname } from 'path';
|
|
@@ -395,6 +396,18 @@ function stopsOf(data) {
|
|
|
395
396
|
}
|
|
396
397
|
return stops;
|
|
397
398
|
}
|
|
399
|
+
function attachmentsOf(raw) {
|
|
400
|
+
if (!Array.isArray(raw)) return [];
|
|
401
|
+
const out = [];
|
|
402
|
+
for (const entry of raw) {
|
|
403
|
+
const a = entry;
|
|
404
|
+
if (a === null || typeof a !== "object") continue;
|
|
405
|
+
const { id, filename, mediaType, sizeBytes } = a;
|
|
406
|
+
if (typeof id !== "string" || id === "" || typeof filename !== "string" || typeof mediaType !== "string" || typeof sizeBytes !== "number") continue;
|
|
407
|
+
out.push({ id, filename, mediaType, sizeBytes });
|
|
408
|
+
}
|
|
409
|
+
return out;
|
|
410
|
+
}
|
|
398
411
|
function commentsOf(data) {
|
|
399
412
|
const raw = data?.comments;
|
|
400
413
|
if (!Array.isArray(raw)) return [];
|
|
@@ -405,7 +418,8 @@ function commentsOf(data) {
|
|
|
405
418
|
const { claimId, workItemId, commentId, thread, authorName, text, summary, at } = comment;
|
|
406
419
|
if (typeof claimId !== "string" || typeof workItemId !== "string" || typeof commentId !== "string" || commentId === "") continue;
|
|
407
420
|
if (typeof thread !== "string" || typeof authorName !== "string" || typeof text !== "string" || typeof at !== "string") continue;
|
|
408
|
-
|
|
421
|
+
const attachments = attachmentsOf(comment.attachments);
|
|
422
|
+
comments.push({ claimId, workItemId, commentId, thread, authorName, text, summary: typeof summary === "string" ? summary : null, at, ...attachments.length === 0 ? {} : { attachments } });
|
|
409
423
|
}
|
|
410
424
|
return comments;
|
|
411
425
|
}
|
|
@@ -481,6 +495,18 @@ async function sendHeartbeat(args, fetchImpl) {
|
|
|
481
495
|
return { ok: false, reason: describeCallFailure(err) };
|
|
482
496
|
}
|
|
483
497
|
}
|
|
498
|
+
async function deliverInboxAttachments(runtime, state, files, secrets) {
|
|
499
|
+
try {
|
|
500
|
+
for (const file of files) {
|
|
501
|
+
const target = join(state.buildDir, INBOX_FOLDER, file.path);
|
|
502
|
+
mkdirSync(dirname(target), { recursive: true, mode: 493 });
|
|
503
|
+
writeFileSync(target, file.bytes, { mode: 420 });
|
|
504
|
+
}
|
|
505
|
+
} catch (err) {
|
|
506
|
+
return { ok: false, reason: `the attachments for the agent could not be written on the host: ${err instanceof Error ? err.message : String(err)}` };
|
|
507
|
+
}
|
|
508
|
+
return deliverJobFiles(runtime, state, ["inbox"], secrets);
|
|
509
|
+
}
|
|
484
510
|
async function deliverInboxFile(runtime, state, file, secrets) {
|
|
485
511
|
const folder = join(state.buildDir, INBOX_FOLDER);
|
|
486
512
|
try {
|
|
@@ -494,6 +520,24 @@ async function deliverInboxFile(runtime, state, file, secrets) {
|
|
|
494
520
|
|
|
495
521
|
// src/runner/microvm/inbox.ts
|
|
496
522
|
var ROOT_PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin";
|
|
523
|
+
async function writeGuestInboxAttachment(runtime, state, relativePath, bytes) {
|
|
524
|
+
const target = `${JOB_MOUNT}/${INBOX_FOLDER}/${relativePath}`;
|
|
525
|
+
const folder = target.slice(0, target.lastIndexOf("/"));
|
|
526
|
+
const partial = `${folder}/.${target.slice(folder.length + 1)}.partial`;
|
|
527
|
+
const script2 = [
|
|
528
|
+
"set -e",
|
|
529
|
+
"umask 022",
|
|
530
|
+
`mkdir -p ${shellQuote(folder)}`,
|
|
531
|
+
`base64 -d > ${shellQuote(partial)}`,
|
|
532
|
+
`chmod 0644 ${shellQuote(partial)}`,
|
|
533
|
+
`mv ${shellQuote(partial)} ${shellQuote(target)}`
|
|
534
|
+
].join("\n");
|
|
535
|
+
const result = await runtime.vm.exec(state.vsockPath, { argv: ["/bin/sh", "-c", script2], user: "root", cwd: "/", env: { PATH: ROOT_PATH } }, { stdin: Buffer.from(bytes).toString("base64") });
|
|
536
|
+
if (result.status !== 0) {
|
|
537
|
+
const line = result.stderr.trim().split("\n")[0] ?? "";
|
|
538
|
+
throw new Error(`writing an attachment into the guest's inbox failed (exit ${result.status})${line === "" ? "" : `: ${line}`}`);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
497
541
|
async function writeGuestInboxFile(runtime, state, file) {
|
|
498
542
|
const folder = `${JOB_MOUNT}/${INBOX_FOLDER}`;
|
|
499
543
|
const partial = shellQuote(`${folder}/.${file.id}.partial`);
|
|
@@ -525,22 +569,84 @@ function inboxFileOf(comment, job) {
|
|
|
525
569
|
authorName: comment.authorName,
|
|
526
570
|
text: comment.text,
|
|
527
571
|
summary: comment.summary,
|
|
528
|
-
at: comment.at
|
|
572
|
+
at: comment.at,
|
|
573
|
+
...comment.attachments === void 0 || comment.attachments.length === 0 ? {} : {
|
|
574
|
+
attachments: comment.attachments.map((attachment, position) => {
|
|
575
|
+
const filename = cleanAttachmentName(attachment.filename);
|
|
576
|
+
return {
|
|
577
|
+
id: attachment.id,
|
|
578
|
+
path: `attachments/${comment.commentId}/${position}-${filename}`,
|
|
579
|
+
filename,
|
|
580
|
+
mediaType: attachment.mediaType,
|
|
581
|
+
sizeBytes: attachment.sizeBytes,
|
|
582
|
+
missing: false
|
|
583
|
+
};
|
|
584
|
+
})
|
|
585
|
+
}
|
|
529
586
|
};
|
|
530
587
|
}
|
|
531
|
-
async function deliverComment(runtime, job, file, secrets) {
|
|
588
|
+
async function deliverComment(runtime, job, file, secrets, fetchAttachment) {
|
|
532
589
|
if (job.microvm !== void 0) {
|
|
533
|
-
|
|
590
|
+
const state = job.microvm;
|
|
591
|
+
if (!vmAlive(runtime, state)) return { ok: false, reason: "the build's microVM is not running" };
|
|
534
592
|
try {
|
|
535
|
-
await
|
|
593
|
+
const placed = await placeAttachments(file, fetchAttachment, (attachment, bytes) => writeGuestInboxAttachment(runtime, state, attachment.path, bytes));
|
|
594
|
+
await writeGuestInboxFile(runtime, state, placed);
|
|
536
595
|
return { ok: true };
|
|
537
596
|
} catch (err) {
|
|
538
597
|
return { ok: false, reason: err instanceof Error ? err.message : String(err) };
|
|
539
598
|
}
|
|
540
599
|
}
|
|
541
|
-
if (job.container !== void 0 && filesAreCopied(job.container))
|
|
600
|
+
if (job.container !== void 0 && filesAreCopied(job.container)) {
|
|
601
|
+
const pending = [];
|
|
602
|
+
const placed = await placeAttachments(file, fetchAttachment, async (attachment, bytes) => {
|
|
603
|
+
pending.push({ path: attachment.path, bytes });
|
|
604
|
+
});
|
|
605
|
+
if (pending.length > 0) {
|
|
606
|
+
const copied = await deliverInboxAttachments(runtime, job.container, pending, secrets);
|
|
607
|
+
if (!copied.ok) return copied;
|
|
608
|
+
}
|
|
609
|
+
return deliverInboxFile(runtime, job.container, placed, secrets);
|
|
610
|
+
}
|
|
542
611
|
return { ok: true, skipped: true };
|
|
543
612
|
}
|
|
613
|
+
async function placeAttachments(file, fetchAttachment, write) {
|
|
614
|
+
if (file.attachments === void 0) return file;
|
|
615
|
+
const attachments = [];
|
|
616
|
+
for (const attachment of file.attachments) {
|
|
617
|
+
const bytes = fetchAttachment === void 0 ? void 0 : await fetchAttachment(attachment).catch(() => void 0);
|
|
618
|
+
if (bytes === void 0) {
|
|
619
|
+
attachments.push({ ...attachment, missing: true });
|
|
620
|
+
continue;
|
|
621
|
+
}
|
|
622
|
+
try {
|
|
623
|
+
await write(attachment, bytes);
|
|
624
|
+
} catch {
|
|
625
|
+
attachments.push({ ...attachment, missing: true });
|
|
626
|
+
continue;
|
|
627
|
+
}
|
|
628
|
+
attachments.push({ ...attachment, missing: false });
|
|
629
|
+
}
|
|
630
|
+
return { ...file, attachments };
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
// src/runner/attachments.ts
|
|
634
|
+
var ATTACHMENT_DOWNLOAD_TRIES = 3;
|
|
635
|
+
var RETRY_DELAY_MS = 500;
|
|
636
|
+
var DOWNLOAD_TIMEOUT_MS = 6e4;
|
|
637
|
+
async function downloadAttachment(calls, attachment, fetchImpl, sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))) {
|
|
638
|
+
const path = `/v1/work-items/${encodeURIComponent(String(calls.item))}/attachments/${encodeURIComponent(attachment.id)}`;
|
|
639
|
+
for (let attempt = 1; attempt <= ATTACHMENT_DOWNLOAD_TRIES; attempt++) {
|
|
640
|
+
try {
|
|
641
|
+
const signer = await signerFor(calls.configPath);
|
|
642
|
+
const got = await getBytes(calls.url, path, calls.apiKey, calls.appId, fetchImpl, signer, { timeoutMs: DOWNLOAD_TIMEOUT_MS });
|
|
643
|
+
return got.bytes;
|
|
644
|
+
} catch {
|
|
645
|
+
if (attempt < ATTACHMENT_DOWNLOAD_TRIES) await sleep(RETRY_DELAY_MS);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
return void 0;
|
|
649
|
+
}
|
|
544
650
|
|
|
545
651
|
// src/runner/host-state.ts
|
|
546
652
|
function hostState(flags) {
|
|
@@ -1491,7 +1597,19 @@ function applyComments(state, comments) {
|
|
|
1491
1597
|
delivering.add(comment.commentId);
|
|
1492
1598
|
const key = `comment ${comment.commentId} for the agent`;
|
|
1493
1599
|
const runtime = runtimeOf(state);
|
|
1494
|
-
|
|
1600
|
+
const fetchAttachment = (attachment) => {
|
|
1601
|
+
try {
|
|
1602
|
+
const calls = claimCalls(state.config, active.job);
|
|
1603
|
+
return downloadAttachment(
|
|
1604
|
+
{ url: calls.url, apiKey: calls.apiKey, appId: calls.appId, configPath: calls.configPath, item: claimItem(state.config, active.job) },
|
|
1605
|
+
attachment,
|
|
1606
|
+
state.deps.fetchImpl
|
|
1607
|
+
);
|
|
1608
|
+
} catch {
|
|
1609
|
+
return Promise.resolve(void 0);
|
|
1610
|
+
}
|
|
1611
|
+
};
|
|
1612
|
+
void deliverComment(runtime, active.job, file, () => runtime.credentials.get(active.dirPath)?.issuedTokens() ?? [], fetchAttachment).then((result) => {
|
|
1495
1613
|
if (result.ok) delivered.add(comment.commentId);
|
|
1496
1614
|
reportRepeating(state, key, result.ok ? void 0 : `${itemTag(active.job)} the ${key} could not be written into the build: ${result.reason}`);
|
|
1497
1615
|
}).catch((err) => reportRepeating(state, key, `${itemTag(active.job)} the ${key} could not be written into the build: ${describeCallFailure(err)}`)).finally(() => delivering.delete(comment.commentId));
|
|
@@ -2397,7 +2515,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
2397
2515
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
2398
2516
|
);
|
|
2399
2517
|
async function tryClaimAndStart(state, item, queue) {
|
|
2400
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
2518
|
+
const { postJson: postJson2 } = await import('./work-cmd-CJWTGOU5.js');
|
|
2401
2519
|
const log = logOf(state);
|
|
2402
2520
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
2403
2521
|
const claim = await retrySend(
|
|
@@ -3859,7 +3977,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3859
3977
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3860
3978
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
3861
3979
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
3862
|
-
return (await import('./check-
|
|
3980
|
+
return (await import('./check-3XHEVEXS.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3863
3981
|
},
|
|
3864
3982
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3865
3983
|
log
|
|
@@ -3984,13 +4102,14 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3984
4102
|
}
|
|
3985
4103
|
await adoptTrackedBuilds(state, jobsDir(configPath));
|
|
3986
4104
|
await adoptTrackedMicroVms(state, microVmPlan);
|
|
3987
|
-
for (const
|
|
4105
|
+
for (const retried of await retryFailedReleases(jobsDir(configPath), config, {
|
|
3988
4106
|
fetchImpl: deps.fetchImpl,
|
|
3989
4107
|
now: deps.now,
|
|
3990
4108
|
log
|
|
3991
4109
|
})) {
|
|
4110
|
+
const { job } = retried;
|
|
3992
4111
|
log.line(
|
|
3993
|
-
released ? `released the lease on ${itemTag(job)} that an earlier attempt could not \xB7 outcome ${job.outcome ?? "none"}` : `the lease on ${itemTag(job)}
|
|
4112
|
+
retried.released ? `released the lease on ${itemTag(job)} that an earlier attempt could not \xB7 outcome ${job.outcome ?? "none"}` : retried.final ? `the lease on ${itemTag(job)} that an earlier attempt could not release is not released: ${retried.reason} \xB7 not retried again` : `the lease on ${itemTag(job)} still cannot be released: ${retried.reason}`
|
|
3994
4113
|
);
|
|
3995
4114
|
}
|
|
3996
4115
|
for (const recovered of await recoverLostJobs(jobsDir(configPath), config, finishDepsOf(state))) {
|
|
@@ -4243,4 +4362,4 @@ function runnerProcessState(configPath) {
|
|
|
4243
4362
|
return isSameProcess(entry.pid, entry.start) ? { state: "running", pid: entry.pid } : { state: "stale", pid: entry.pid };
|
|
4244
4363
|
}
|
|
4245
4364
|
|
|
4246
|
-
export { LAPSED_REASON, RunnerStartError, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick };
|
|
4365
|
+
export { LAPSED_REASON, RunnerStartError, applyComments, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
7
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
8
|
-
import { ensureHostKey } from './chunk-
|
|
9
|
-
import { sandboxSettingsFrom } from './chunk-
|
|
10
|
-
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-
|
|
11
|
-
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-
|
|
12
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-I64CTY4U.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-DKDBMMX7.js';
|
|
5
|
+
import { getJson, WorkCommandError } from './chunk-B4U5XI4F.js';
|
|
6
|
+
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-5QDHJT73.js';
|
|
7
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-RBLXGO5K.js';
|
|
8
|
+
import { ensureHostKey } from './chunk-ENHD5PNW.js';
|
|
9
|
+
import { sandboxSettingsFrom } from './chunk-NE7EG3SN.js';
|
|
10
|
+
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-WH2QUYXH.js';
|
|
11
|
+
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-UCUBQWJC.js';
|
|
12
|
+
import { defaultAgents } from './chunk-MT4XF5OL.js';
|
|
13
13
|
import { closeSync, openSync, constants, readFileSync } from 'fs';
|
|
14
14
|
import { join, dirname } from 'path';
|
|
15
15
|
import { totalmem } from 'os';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readCloudConfigStrict, readCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
|
|
4
|
-
import { signRunnerRequest, signerFor } from './chunk-
|
|
4
|
+
import { signRunnerRequest, signerFor } from './chunk-ENHD5PNW.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
6
|
import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-I45HTSSA.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
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-CXXQQST7.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
5
|
-
import { detectActiveSession } from './chunk-
|
|
6
|
-
import { autoConnect } from './chunk-
|
|
7
|
-
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-
|
|
5
|
+
import { detectActiveSession } from './chunk-SBPMDO47.js';
|
|
6
|
+
import { autoConnect } from './chunk-XFU37HIM.js';
|
|
7
|
+
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-B5Z4VA4Q.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-VRWZNI6U.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
12
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
13
13
|
import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import { resolveRepoIdentity } from './chunk-
|
|
15
|
-
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-
|
|
14
|
+
import { resolveRepoIdentity } from './chunk-MBPBYMHU.js';
|
|
15
|
+
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-FXVHF6RX.js';
|
|
16
16
|
import { createHash, randomUUID } from 'crypto';
|
|
17
17
|
import { statSync, readFileSync, mkdirSync, existsSync, writeFileSync, renameSync, unlinkSync } from 'fs';
|
|
18
18
|
import { resolve, basename, join } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-
|
|
4
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { providersOf, credentialEnvPath, credentialNames, credentialForms, runnerAgents, credentialAgent, orList, credentialShapes, strippedVariables, jobAgent, forwardedVariables, MANAGED_KIND } from './chunk-UCUBQWJC.js';
|
|
4
|
+
import { defaultAgents } from './chunk-MT4XF5OL.js';
|
|
5
5
|
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
6
6
|
import { statSync, readFileSync } from 'fs';
|
|
7
7
|
import { join } from 'path';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { toolsDockerfile } from './chunk-
|
|
4
|
-
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-
|
|
3
|
+
import { toolsDockerfile } from './chunk-72LXVD4O.js';
|
|
4
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-OI4ZV7MJ.js';
|
|
5
5
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
6
|
-
import { runnerLabelValue } from './chunk-
|
|
7
|
-
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-
|
|
8
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-
|
|
9
|
-
import { withGitConfig, tokenHeader } from './chunk-
|
|
10
|
-
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-
|
|
6
|
+
import { runnerLabelValue } from './chunk-I2N427GS.js';
|
|
7
|
+
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-2TXYQANG.js';
|
|
8
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-AC6DM3S3.js';
|
|
9
|
+
import { withGitConfig, tokenHeader } from './chunk-NE7EG3SN.js';
|
|
10
|
+
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-UCUBQWJC.js';
|
|
11
11
|
import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
12
12
|
import { tmpdir } from 'os';
|
|
13
13
|
import { join } from 'path';
|
|
@@ -1,12 +1,12 @@
|
|
|
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-QFQ2UNZU.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-VRWZNI6U.js';
|
|
5
5
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
9
|
-
import { resolveRepoIdentity } from './chunk-
|
|
9
|
+
import { resolveRepoIdentity } from './chunk-MBPBYMHU.js';
|
|
10
10
|
|
|
11
11
|
createRequire(import.meta.url);
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-
|
|
3
|
+
import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-MT4XF5OL.js';
|
|
4
4
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
5
5
|
import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
|
|
6
6
|
import { relative, sep, join, posix } from 'path';
|