@outerlayer/cli 0.36.0-next.20261102195652 → 0.36.0-next.20261102213701
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 +4 -13
- package/dist/agent-setup-2WL54CA2.js +39 -0
- package/dist/{agent-subcommand-4TEUJJNL.js → agent-subcommand-Z4UDDCLB.js} +6 -5
- package/dist/{artifact-link-cmd-ZCMQIT5Y.js → artifact-link-cmd-ZPQXVG5O.js} +2 -2
- package/dist/{bridge-4KPODDN7.js → bridge-LVTX4DVM.js} +8 -7
- package/dist/{build-3CEFKWGY.js → build-W5LRG2AO.js} +14 -14
- package/dist/{build-disk-DLW3WKC5.js → build-disk-3KTQZ6N5.js} +12 -12
- package/dist/build-info.json +1 -1
- package/dist/{builder-ALMQ5AWP.js → builder-UMCVSMDY.js} +11 -11
- package/dist/caller-DYXZCUF2.js +22 -0
- package/dist/{check-AEDFTYH6.js → check-NFLR5CGS.js} +58 -58
- package/dist/{chunk-DTQPDMHG.js → chunk-23SNF2LN.js} +4 -4
- package/dist/{chunk-DL2RYNXQ.js → chunk-2E2WWMRX.js} +28 -60
- package/dist/{chunk-6JLYU322.js → chunk-32GBZ7HD.js} +3 -3
- package/dist/{chunk-LZS5EYZ6.js → chunk-35OBGZYO.js} +1 -1
- package/dist/{chunk-BACWWK3E.js → chunk-36ML3NIO.js} +15 -15
- package/dist/{chunk-73E33ZA2.js → chunk-3EEUQZQU.js} +9 -9
- package/dist/{chunk-BZSJ77MO.js → chunk-46FKHE74.js} +1 -1
- package/dist/{chunk-HRBSEXYC.js → chunk-4Y7IEPQH.js} +6 -6
- package/dist/{chunk-Y5S2G2EZ.js → chunk-4YGPLC5Y.js} +7 -7
- package/dist/{chunk-2YC3TXWX.js → chunk-52RRBTZ5.js} +1 -1
- package/dist/{chunk-B5SWBFVE.js → chunk-66UG5SL4.js} +3 -3
- package/dist/{chunk-Z3MB7SV7.js → chunk-72EOJJVT.js} +7 -7
- package/dist/{chunk-FWKQHKCR.js → chunk-AACYODIT.js} +7 -5
- package/dist/{chunk-7XTLS5PG.js → chunk-AZTTOBJ5.js} +5 -5
- package/dist/{chunk-6QSIK5VA.js → chunk-B5GDCCOZ.js} +1 -1
- package/dist/{chunk-42DBDDHP.js → chunk-CBMEWHAR.js} +1 -1
- package/dist/{chunk-G35Y4LN5.js → chunk-CXMXXRNS.js} +1 -1
- package/dist/{chunk-J6VC3JCG.js → chunk-DCOQWKLK.js} +1 -1
- package/dist/{chunk-A24PDRNU.js → chunk-E2U7BBAT.js} +5 -5
- package/dist/{chunk-IX6CFXSW.js → chunk-EM4QCRI6.js} +9 -9
- package/dist/{chunk-J2OMKFYB.js → chunk-F7ODYKBA.js} +3 -3
- package/dist/{chunk-WVAXJOWG.js → chunk-FCMEWS3G.js} +5 -5
- package/dist/{chunk-7UGMB5VS.js → chunk-FVIDZ3GK.js} +34 -37
- package/dist/{chunk-LSLK4RS4.js → chunk-G3BUOMCF.js} +1 -0
- package/dist/{chunk-CA4OE2QT.js → chunk-GFSS3FRE.js} +4 -4
- package/dist/{chunk-KN3TDNF7.js → chunk-HGOJ67KV.js} +10 -21
- package/dist/{chunk-J6HWRVN2.js → chunk-HHKVXKQI.js} +8 -8
- package/dist/{chunk-PIZA7OG2.js → chunk-HKJCNBUB.js} +1 -1
- package/dist/{chunk-D74RGORK.js → chunk-HXSU4JLV.js} +1 -1
- package/dist/{chunk-BSPJI5T7.js → chunk-IEFSDAVW.js} +1 -1
- package/dist/{chunk-4UUKUOS7.js → chunk-IFLD3WEB.js} +3 -3
- package/dist/{chunk-M4HH2F64.js → chunk-ILP4ABFG.js} +6 -6
- package/dist/{chunk-HRHWA6TZ.js → chunk-IOFEDCTL.js} +1 -1
- package/dist/{chunk-H2NJG3TE.js → chunk-JU5SQNFB.js} +4 -4
- package/dist/{chunk-2XN34EKQ.js → chunk-JUQ52FZI.js} +3 -3
- package/dist/{chunk-JBPVEXHQ.js → chunk-JZBFR6JB.js} +8 -8
- package/dist/{chunk-T5QBWM6M.js → chunk-KG5BQFSO.js} +1 -1
- package/dist/{chunk-B36NSEUM.js → chunk-KIY2AUHY.js} +1 -1
- package/dist/{chunk-JVHWWJ2J.js → chunk-KKI3POPP.js} +6 -6
- package/dist/{chunk-4DLJ343I.js → chunk-KTL7GFQ3.js} +1 -1
- package/dist/{chunk-I4DM7SNX.js → chunk-LTAMZ36E.js} +1 -1
- package/dist/{chunk-6KH3NMIT.js → chunk-M7AIU22N.js} +124 -1099
- package/dist/{chunk-BN5U4RJU.js → chunk-MKGJ7TTH.js} +8 -8
- package/dist/{chunk-HZVS4MGL.js → chunk-NTK7RUVE.js} +7 -7
- package/dist/{chunk-UCMIS74X.js → chunk-OPUJGPPT.js} +2 -2
- package/dist/{chunk-PBGNX3PS.js → chunk-OQZ2B5AN.js} +1 -1
- package/dist/{chunk-PSQEGJPN.js → chunk-OROFFYEM.js} +5 -5
- package/dist/{chunk-Z66CKWOM.js → chunk-PMXVWQ4T.js} +1 -1
- package/dist/{chunk-ZSRMJOAK.js → chunk-QE7L5PJV.js} +3 -3
- package/dist/{chunk-6Z7R24XA.js → chunk-QJHXX2HG.js} +8 -8
- package/dist/{chunk-LO4CK734.js → chunk-REXQKAY7.js} +1 -1
- package/dist/{chunk-NMBXA3AT.js → chunk-RSPTOS4S.js} +3 -3
- package/dist/{chunk-HTRDL42C.js → chunk-TI32Q3VB.js} +1 -1
- package/dist/{chunk-I6U6QPN6.js → chunk-TOP4K2T6.js} +1138 -80
- package/dist/{chunk-XIDDJSQU.js → chunk-U37FB7ER.js} +2 -2
- package/dist/{chunk-F36EKGMP.js → chunk-UASEIXDB.js} +75 -159
- package/dist/{chunk-ML5YKV3B.js → chunk-UKDKM6Y6.js} +1 -1
- package/dist/{chunk-LHHDX7FB.js → chunk-UQ2YFDGP.js} +5 -5
- package/dist/{chunk-CXJC3JLN.js → chunk-V5S6CVGP.js} +5 -12
- package/dist/{chunk-FWSVWPMS.js → chunk-V6V3NN5G.js} +1 -1
- package/dist/{chunk-VKKKVYA4.js → chunk-VHX2C7DU.js} +1 -1
- package/dist/{chunk-LSZUTI6O.js → chunk-VNXITMKE.js} +1 -1
- package/dist/{chunk-T2KBHW6P.js → chunk-VUINLLWP.js} +3 -3
- package/dist/{chunk-5XX75FJ6.js → chunk-VWMQA7FN.js} +8 -8
- package/dist/{chunk-GBGJGYEE.js → chunk-W3CY6H56.js} +6 -6
- package/dist/{chunk-H23JP73I.js → chunk-WGZOLJPP.js} +1 -1
- package/dist/{chunk-A2U7T4ZH.js → chunk-X2M2G376.js} +18 -18
- package/dist/{chunk-FOSYM7TQ.js → chunk-X4QHDRXT.js} +2 -2
- package/dist/{chunk-SBZ545DH.js → chunk-XILGXRHT.js} +2 -2
- package/dist/{chunk-FIUUESD4.js → chunk-YIDWZYDY.js} +4 -4
- package/dist/{chunk-CI5LFLKH.js → chunk-YJQBL6SD.js} +2 -2
- package/dist/{chunk-Y2P3HWUG.js → chunk-YQGYZB6Y.js} +28 -20
- package/dist/{chunk-MVPOYQQY.js → chunk-Z4ASKZKN.js} +1 -1
- package/dist/{chunk-D6EXW4EB.js → chunk-ZM2SKQJD.js} +2 -2
- package/dist/{claude-launcher-NJGZUB3P.js → claude-launcher-LXCRQNU3.js} +10 -9
- package/dist/{cli-POIDBCZA.js → cli-WGFTREIM.js} +153 -165
- package/dist/{command-ZLBFX553.js → command-BZDNRIFI.js} +53 -53
- package/dist/config-VV4J2DMW.js +21 -0
- package/dist/{connect-cmd-6YKNFJJR.js → connect-cmd-UDYTPV2S.js} +14 -14
- package/dist/{container-start-55QELXPJ.js → container-start-BQD6IAKZ.js} +51 -51
- package/dist/{context-cleanup-3K2AOECJ.js → context-cleanup-ZKAL6X5I.js} +6 -5
- package/dist/{context-show-cmd-FGMRJ7IG.js → context-show-cmd-FXIYFC6Q.js} +15 -15
- package/dist/{control-plane-launch-DGPA3ONU.js → control-plane-launch-6HIHBOHF.js} +16 -15
- package/dist/{demo-record-cmd-2OKCGST7.js → demo-record-cmd-JTIK5WI3.js} +9 -8
- package/dist/{demo-voice-cmd-BPTSL7JA.js → demo-voice-cmd-5HV4AHY4.js} +23 -23
- package/dist/dist-64LM4JF4.js +7 -0
- package/dist/{docker-GFEEV42Z.js → docker-RB7YFA52.js} +11 -11
- package/dist/{doctor-ZOQSI3HL.js → doctor-BNL5J2NG.js} +54 -80
- package/dist/emit-artifact-cmd-VF6PO7NJ.js +43 -0
- package/dist/{emit-cmd-RO4L4PFZ.js → emit-cmd-PTOSSDQK.js} +9 -8
- package/dist/emit-criteria-cmd-QGCS6RCB.js +34 -0
- package/dist/{emit-demo-cmd-5KL64L74.js → emit-demo-cmd-O7YLI4ZL.js} +23 -23
- package/dist/{emit-finding-cmd-R4OEWQQR.js → emit-finding-cmd-GO2C5QCS.js} +17 -17
- package/dist/{emit-result-cmd-5YNQDTYG.js → emit-result-cmd-LQ4EW7ML.js} +21 -21
- package/dist/{emit-step-cmd-Z5WC7UEQ.js → emit-step-cmd-JWUNEZ4N.js} +17 -17
- package/dist/{exec-client-54XKNPTI.js → exec-client-725NVWZ5.js} +9 -8
- package/dist/find-unit-U5U52ASA.js +23 -0
- package/dist/{findings-cmd-J5ZCY2AT.js → findings-cmd-JN67G7EG.js} +17 -17
- package/dist/{fleet-readiness-DKCFOUYP.js → fleet-readiness-7P5NN3RT.js} +16 -15
- package/dist/governing-source-NC7N3PKM.js +40 -0
- package/dist/{guest-init-5QZRGP62.js → guest-init-N65WE3XP.js} +10 -9
- package/dist/{hook-fast-ICT2PRQX.js → hook-fast-VZDS3U7L.js} +4 -4
- package/dist/{hook-install-GDNRMML4.js → hook-install-DOEXRPO5.js} +6 -5
- package/dist/{hook-wrap-fast-LWWKKPGK.js → hook-wrap-fast-L5PCBVNI.js} +3 -3
- package/dist/host-checks-5HVG67AR.js +78 -0
- package/dist/host-key-KPUIJK4Q.js +17 -0
- package/dist/{image-tag-RX4WTHJH.js → image-tag-RAVG4ZXU.js} +9 -8
- package/dist/index.js +6 -6
- package/dist/{init-BZXVQO22.js → init-J5XW2VNL.js} +49 -50
- package/dist/init-MN4R6USQ.js +78 -0
- package/dist/{init-cmd-3LWFEKHD.js → init-cmd-INPWUFWW.js} +31 -31
- package/dist/{init-update-THEHC25C.js → init-update-7BA2HEZD.js} +26 -26
- package/dist/{install-cmd-WBVTTE5Z.js → install-cmd-UUEJWTHG.js} +11 -10
- package/dist/{layout-7XMC7S6K.js → layout-KSD373US.js} +6 -5
- package/dist/{login-browser-QH4KYG3F.js → login-browser-NUQQYH5J.js} +2 -2
- package/dist/{logs-7YIXBO2K.js → logs-2NBI76N2.js} +8 -7
- package/dist/loop-G7HCDVIP.js +89 -0
- package/dist/machine-WQCCGKOP.js +78 -0
- package/dist/{machine-skills-HR4RNRNR.js → machine-skills-IMGN27M7.js} +6 -5
- package/dist/{mcp-install-cmd-SMPLT43Q.js → mcp-install-cmd-25PA5RAI.js} +6 -5
- package/dist/{mcp-serve-cmd-HLS24XCG.js → mcp-serve-cmd-JVND6WYT.js} +10 -9
- package/dist/{paths-2YTU4QIO.js → paths-S6KJMQSQ.js} +8 -7
- package/dist/pending-BBPET4YL.js +17 -0
- package/dist/{pidfile-SPBTMTCJ.js → pidfile-QDFTWZP4.js} +9 -8
- package/dist/{record-3KXRFK5C.js → record-AJSJBMOG.js} +9 -8
- package/dist/{relay-I2T43PPB.js → relay-X7EBGNZW.js} +6 -5
- package/dist/{relay-protocol-GI2GC2AM.js → relay-protocol-TAXUFBSM.js} +6 -5
- package/dist/runner-env-XKUW67Y4.js +23 -0
- package/dist/{runner-identity-32MTGA2F.js → runner-identity-7RYI6PS4.js} +11 -11
- package/dist/{runner-key-FXYWHMMO.js → runner-key-R4QPZDDR.js} +49 -49
- package/dist/{session-sender-B6INUY7G.js → session-sender-FQARNO3V.js} +22 -22
- package/dist/{shell-function-GYD2ZQQG.js → shell-function-D2T55XFG.js} +2 -2
- package/dist/{spec-cmd-ZEZFMC4A.js → spec-cmd-WOSYBAKL.js} +18 -18
- package/dist/{starter-pack-IMKIUA56.js → starter-pack-OLH6O4YX.js} +7 -6
- package/dist/state-IGLONCPS.js +17 -0
- package/dist/{status-VPFIIHOZ.js → status-BUHMAGRI.js} +49 -49
- package/dist/{statusline-fast-NUVHCNRX.js → statusline-fast-36U3TOCL.js} +3 -3
- package/dist/{sync-cmd-W756BQWX.js → sync-cmd-2DR7HOVJ.js} +21 -21
- package/dist/update-steps-GDNIKWWH.js +79 -0
- package/dist/{watch-6EDRJZMG.js → watch-3I4ZN52F.js} +29 -26
- package/dist/{work-claim-cmd-7HR4AVCT.js → work-claim-cmd-M6ACVTNM.js} +23 -23
- package/dist/{work-cmd-ZP4UIHBT.js → work-cmd-HLNFJWQQ.js} +17 -17
- package/dist/work-comment-cmd-JTCAB3DG.js +37 -0
- package/dist/{work-demo-cmd-3A7Z3VVS.js → work-demo-cmd-XLNJYGCL.js} +17 -17
- package/dist/{work-logs-cmd-NDPSRSCM.js → work-logs-cmd-Q3UUIOQI.js} +17 -17
- package/dist/{work-open-pr-cmd-Z5B3ERAU.js → work-open-pr-cmd-H74M4ZXC.js} +18 -18
- package/dist/{work-pr-cmd-ZVPGCDWD.js → work-pr-cmd-M3X2D5MC.js} +17 -17
- package/dist/{work-proofs-cmd-VAXJ5UBF.js → work-proofs-cmd-ZRPPBFDL.js} +19 -19
- package/dist/{work-proofs-record-K467JH24.js → work-proofs-record-PF2JRTWE.js} +27 -27
- package/dist/{work-stop-cmd-J45Q2QT7.js → work-stop-cmd-2NO2F2BD.js} +17 -17
- package/package.json +1 -1
- package/dist/agent-setup-5UWZZMZM.js +0 -39
- package/dist/caller-XNBGW4SP.js +0 -22
- package/dist/config-GKSSGMXD.js +0 -21
- package/dist/dist-VVZIGSAF.js +0 -7
- package/dist/emit-artifact-cmd-3LDJ4VRW.js +0 -43
- package/dist/emit-criteria-cmd-V3ERJXHB.js +0 -34
- package/dist/find-unit-OI56YEX5.js +0 -23
- package/dist/governing-source-7PD4ISRN.js +0 -40
- package/dist/host-checks-GADKYJFN.js +0 -78
- package/dist/host-key-FI6KWMJC.js +0 -16
- package/dist/init-EKF4ILHF.js +0 -78
- package/dist/loop-RUQQ4L5A.js +0 -89
- package/dist/machine-IGHZW3IO.js +0 -78
- package/dist/pending-S2SKIBCB.js +0 -16
- package/dist/runner-env-HOWRS6I6.js +0 -23
- package/dist/state-DVKFUWB3.js +0 -16
- package/dist/update-steps-D6L6AG6E.js +0 -79
- package/dist/work-comment-cmd-CYDOEMW3.js +0 -37
- package/dist/{chunk-TPMLB3VZ.js → chunk-A6RI6KTI.js} +1 -1
- package/dist/{chunk-P6PHY33P.js → chunk-F3T5QJ24.js} +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { writePendingUpdate } from './chunk-
|
|
4
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
3
|
+
import { writePendingUpdate } from './chunk-DCOQWKLK.js';
|
|
4
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-WGZOLJPP.js';
|
|
5
5
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
6
6
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
7
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
8
|
-
import { renderUpdateSteps } from './chunk-
|
|
7
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-4YGPLC5Y.js';
|
|
8
|
+
import { renderUpdateSteps } from './chunk-RSPTOS4S.js';
|
|
9
9
|
import { RUNNER_PROTOCOL } from './chunk-PN4LWT5F.js';
|
|
10
|
-
import { writeFleetState } from './chunk-
|
|
11
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
12
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
13
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks,
|
|
14
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
15
|
-
import { RepoFilter } from './chunk-
|
|
10
|
+
import { writeFleetState } from './chunk-VHX2C7DU.js';
|
|
11
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-JZBFR6JB.js';
|
|
12
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-B5GDCCOZ.js';
|
|
13
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, currentSkillCommand, formerSkillProblem, MICROVM_COMMAND_DIR, commandLogOffset, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isContainerTracked, isMicroVmTracked, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-UASEIXDB.js';
|
|
14
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-OROFFYEM.js';
|
|
15
|
+
import { RepoFilter } from './chunk-FVIDZ3GK.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-UKDKM6Y6.js';
|
|
18
18
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
19
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-
|
|
20
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
19
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-XILGXRHT.js';
|
|
20
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-PMXVWQ4T.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 { keyRunnerFactory, isBuiltinContainer, isBuiltinVm,
|
|
24
|
-
import { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
25
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-
|
|
26
|
-
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-
|
|
27
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
28
|
-
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-
|
|
29
|
-
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf,
|
|
30
|
-
import { COMMAND_LOST_REASON, takeAgentCredentials, runnerAgents, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-
|
|
22
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-QJHXX2HG.js';
|
|
23
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-36ML3NIO.js';
|
|
24
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-YJQBL6SD.js';
|
|
25
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-HHKVXKQI.js';
|
|
26
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-EM4QCRI6.js';
|
|
27
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-CBMEWHAR.js';
|
|
28
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-CXMXXRNS.js';
|
|
29
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT } from './chunk-V5S6CVGP.js';
|
|
30
|
+
import { COMMAND_LOST_REASON, takeAgentCredentials, runnerAgents, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-23SNF2LN.js';
|
|
31
31
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
32
32
|
import { mkdirSync, existsSync, chmodSync, writeFileSync, renameSync, statSync, readdirSync, readFileSync, rmSync, closeSync } from 'fs';
|
|
33
33
|
import { join, dirname } from 'path';
|
|
@@ -2204,7 +2204,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
2204
2204
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
2205
2205
|
);
|
|
2206
2206
|
async function tryClaimAndStart(state, item, queue) {
|
|
2207
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
2207
|
+
const { postJson: postJson2 } = await import('./work-cmd-HLNFJWQQ.js');
|
|
2208
2208
|
const log = logOf(state);
|
|
2209
2209
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
2210
2210
|
const claim = await retrySend(
|
|
@@ -2506,7 +2506,6 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2506
2506
|
setStage(job, dirPath, "provision");
|
|
2507
2507
|
log.line(`${tag} provision started`);
|
|
2508
2508
|
const provisionStartedMs = nowOf(state).getTime();
|
|
2509
|
-
const processMode = isBuiltinProcess(state.config.hooks.provision);
|
|
2510
2509
|
const requireBuildSkill = needsBuildSkill(queue, state.config.commands[queue]);
|
|
2511
2510
|
const cliVersion = state.deps.cliVersion ?? resolveVersion();
|
|
2512
2511
|
let workdir;
|
|
@@ -2603,37 +2602,6 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2603
2602
|
log.error(`${tag} could not write the commit hooks into the microVM: ${describeCallFailure(err)} \xB7 continuing without a co-author line`);
|
|
2604
2603
|
}
|
|
2605
2604
|
}
|
|
2606
|
-
} else if (processMode) {
|
|
2607
|
-
active.job.environment = sharedUserEnvironment(cliVersion);
|
|
2608
|
-
writeJobFile(jobFilePath, active.job);
|
|
2609
|
-
const provisioned = await provisionProcess({
|
|
2610
|
-
config: state.config,
|
|
2611
|
-
runtime: runtimeOf(state),
|
|
2612
|
-
item,
|
|
2613
|
-
repository: primary?.repository,
|
|
2614
|
-
itemKey,
|
|
2615
|
-
jobDir: dirPath,
|
|
2616
|
-
cliVersion,
|
|
2617
|
-
log,
|
|
2618
|
-
save: (build, environment) => {
|
|
2619
|
-
active.job.build = build;
|
|
2620
|
-
active.job.environment = environment;
|
|
2621
|
-
writeJobFile(jobFilePath, active.job);
|
|
2622
|
-
},
|
|
2623
|
-
aborted: () => active.ending
|
|
2624
|
-
}).catch((err) => ({ ok: false, reason: `provision failed: ${describeCallFailure(err)}` }));
|
|
2625
|
-
const provisionTook = formatDuration(nowOf(state).getTime() - provisionStartedMs);
|
|
2626
|
-
if (active.ending) return;
|
|
2627
|
-
if (!provisioned.ok) {
|
|
2628
|
-
log.error(`${tag} provision failed (${provisionTook}): ${provisioned.reason} \xB7 ending job as failed`);
|
|
2629
|
-
await endJob(state, active, "failed", { stage: "provision", reason: provisioned.reason });
|
|
2630
|
-
return;
|
|
2631
|
-
}
|
|
2632
|
-
log.line(`${tag} provision ok (${provisionTook}) \xB7 workdir ${relativeToRunner(runnerRoot, provisioned.workdir)}`);
|
|
2633
|
-
workdir = provisioned.workdir;
|
|
2634
|
-
active.job.build = provisioned.state;
|
|
2635
|
-
active.job.environment = provisioned.environment;
|
|
2636
|
-
installCommitHooks(active.job, log, tag);
|
|
2637
2605
|
} else {
|
|
2638
2606
|
const runtime = runtimeOf(state);
|
|
2639
2607
|
const build = await startHostBuild(state, active, primary?.repository);
|
|
@@ -2733,7 +2701,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2733
2701
|
if (active.ending) return;
|
|
2734
2702
|
writeJobFile(jobFilePath, active.job);
|
|
2735
2703
|
if (named.exec !== void 0 && named.recipe !== void 0) {
|
|
2736
|
-
const lifecycleEnv = hostCommandEnvironment(jobEnv(claimCalls(state.config, active.job), item.number, itemKey, dirPath, process.env, branch, identity?.author, spoolHomeFor(state.config, active.job)), build.state, state.config, void 0, noteOnce
|
|
2704
|
+
const lifecycleEnv = hostCommandEnvironment(jobEnv(claimCalls(state.config, active.job), item.number, itemKey, dirPath, process.env, branch, identity?.author, spoolHomeFor(state.config, active.job)), build.state, state.config, void 0, noteOnce);
|
|
2737
2705
|
for (const step of lifecycleSteps(named.recipe.apply.lifecycle)) {
|
|
2738
2706
|
if (active.ending) return;
|
|
2739
2707
|
log.line(`${tag} lifecycle ${step.name} (${step.source})`);
|
|
@@ -2831,7 +2799,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2831
2799
|
}
|
|
2832
2800
|
} else {
|
|
2833
2801
|
const build = job.build;
|
|
2834
|
-
const commandEnv = hostCommandEnvironment(jobEnv(claimCalls(state.config, active.job), item.number, itemKey, dirPath, process.env, branch, identity?.author, spoolHomeFor(state.config, active.job)), build, state.config, identity?.hooksPath, noteOnce
|
|
2802
|
+
const commandEnv = hostCommandEnvironment(jobEnv(claimCalls(state.config, active.job), item.number, itemKey, dirPath, process.env, branch, identity?.author, spoolHomeFor(state.config, active.job)), build, state.config, identity?.hooksPath, noteOnce);
|
|
2835
2803
|
running = build.exec === void 0 ? runCommand(cmdline, commandEnv, workdir, join(dirPath, "command.log"), state.deps.spawnFn) : runCommand(execCommandLine(build.exec, workdir, cmdline), commandEnv, dirPath, join(dirPath, "command.log"), state.deps.spawnFn);
|
|
2836
2804
|
}
|
|
2837
2805
|
} catch (err) {
|
|
@@ -2971,7 +2939,7 @@ async function startHostBuild(state, active, repository) {
|
|
|
2971
2939
|
const runtime = runtimeOf(state);
|
|
2972
2940
|
let failed2;
|
|
2973
2941
|
try {
|
|
2974
|
-
await startHostServices({ runtime, config: state.config, build, jobDir: active.dirPath,
|
|
2942
|
+
await startHostServices({ runtime, config: state.config, build, jobDir: active.dirPath, routeLog: (line) => logOf(state).line(`${itemTag(active.job)} ${line}`) });
|
|
2975
2943
|
} catch (err) {
|
|
2976
2944
|
failed2 = describeCallFailure(err);
|
|
2977
2945
|
logOf(state).error(`${itemTag(active.job)} the tunnel and destination servers could not start: ${failed2} \xB7 continuing`);
|
|
@@ -3586,7 +3554,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3586
3554
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3587
3555
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
3588
3556
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
3589
|
-
return (await import('./check-
|
|
3557
|
+
return (await import('./check-NFLR5CGS.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3590
3558
|
},
|
|
3591
3559
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3592
3560
|
log
|
|
@@ -3699,7 +3667,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
3699
3667
|
attemptLogs.open(job.item, dirPath, itemScope(job));
|
|
3700
3668
|
if (job.container !== void 0) await rejoinContainerBuild(state, adopted);
|
|
3701
3669
|
if (job.build !== void 0 && !runtimeOf(state).tunnels.has(job.build.buildId)) {
|
|
3702
|
-
await startHostServices({ runtime: runtimeOf(state), config, build: job.build, jobDir: dirPath
|
|
3670
|
+
await startHostServices({ runtime: runtimeOf(state), config, build: job.build, jobDir: dirPath }).catch((err) => {
|
|
3703
3671
|
logOf(state).error(`the tunnel of ${itemTag(job)} could not start again: ${describeCallFailure(err)}`);
|
|
3704
3672
|
});
|
|
3705
3673
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-
|
|
4
|
-
import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-
|
|
5
|
-
import { LEGACY_AGENT } from './chunk-
|
|
3
|
+
import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-IEFSDAVW.js';
|
|
4
|
+
import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-TOP4K2T6.js';
|
|
5
|
+
import { LEGACY_AGENT } from './chunk-G3BUOMCF.js';
|
|
6
6
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
7
7
|
import { lstatSync, readFileSync } from 'fs';
|
|
8
8
|
import { join } from 'path';
|
|
@@ -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-CBMEWHAR.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
6
|
import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-NFZMENCY.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
5
|
-
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-
|
|
6
|
-
import { builderDiskPinned } from './chunk-
|
|
3
|
+
import { DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-YJQBL6SD.js';
|
|
4
|
+
import { parseSize } from './chunk-HHKVXKQI.js';
|
|
5
|
+
import { isRefusedInConfig, resolveDestinations, isReservedVariable } from './chunk-V5S6CVGP.js';
|
|
6
|
+
import { builderDiskPinned } from './chunk-23SNF2LN.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { existsSync, statSync, accessSync, constants, readFileSync } from 'fs';
|
|
9
9
|
import { hostname } from 'os';
|
|
@@ -98,19 +98,16 @@ function hostAllowed(host, allowHosts) {
|
|
|
98
98
|
|
|
99
99
|
// src/runner/config.ts
|
|
100
100
|
var BUILTIN_CONTAINER = "builtin:container";
|
|
101
|
-
var
|
|
101
|
+
var PROCESS_HOOK = "builtin:process";
|
|
102
102
|
var BUILTIN_VM = "builtin:vm";
|
|
103
103
|
function isBuiltinContainer(hook) {
|
|
104
104
|
return hook === BUILTIN_CONTAINER;
|
|
105
105
|
}
|
|
106
|
-
function isBuiltinProcess(hook) {
|
|
107
|
-
return hook === BUILTIN_PROCESS;
|
|
108
|
-
}
|
|
109
106
|
function isBuiltinVm(hook) {
|
|
110
107
|
return hook === BUILTIN_VM;
|
|
111
108
|
}
|
|
112
109
|
function builtinKind(hook) {
|
|
113
|
-
return isBuiltinContainer(hook) ? "container" :
|
|
110
|
+
return isBuiltinContainer(hook) ? "container" : isBuiltinVm(hook) ? "vm" : "own";
|
|
114
111
|
}
|
|
115
112
|
function runnerDeliversComments(config) {
|
|
116
113
|
if (config.deliverComments === false) return false;
|
|
@@ -276,7 +273,7 @@ function checkHooks(config, env = process.env) {
|
|
|
276
273
|
];
|
|
277
274
|
for (const [key, path] of named) {
|
|
278
275
|
if (path === void 0) continue;
|
|
279
|
-
if (isBuiltinContainer(path) ||
|
|
276
|
+
if (isBuiltinContainer(path) || isBuiltinVm(path)) continue;
|
|
280
277
|
if (path.includes("$") || path.startsWith("~")) {
|
|
281
278
|
return `${key}: ${path} \u2014 hooks are executable paths, not shell lines; $HOME and ~ are not expanded`;
|
|
282
279
|
}
|
|
@@ -423,14 +420,17 @@ function checkBuiltinHooks(configPath, hooks) {
|
|
|
423
420
|
const value = hooks[key];
|
|
424
421
|
if (value === void 0 || !value.startsWith("builtin:")) continue;
|
|
425
422
|
if (key === "report") fail(configPath, "runner.hooks.report", `cannot be ${value}: the report hook stays an executable`);
|
|
426
|
-
if (
|
|
427
|
-
fail(configPath, `runner.hooks.${key}`, `
|
|
423
|
+
if (value === PROCESS_HOOK) {
|
|
424
|
+
fail(configPath, `runner.hooks.${key}`, `is ${PROCESS_HOOK}, which is not supported: builds run isolated. Set both hooks to ${BUILTIN_CONTAINER} or ${BUILTIN_VM}, or remove the runner block and run \`outerlayer runner init\` again`);
|
|
425
|
+
}
|
|
426
|
+
if (!isBuiltinContainer(value) && !isBuiltinVm(value)) {
|
|
427
|
+
fail(configPath, `runner.hooks.${key}`, `names an unknown built-in hook "${value}"; the ones that exist are ${BUILTIN_CONTAINER} and ${BUILTIN_VM}`);
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
const provision = hooks.provision;
|
|
431
431
|
const cleanup = hooks.cleanup;
|
|
432
|
-
if (isBuiltinContainer(provision) !== isBuiltinContainer(cleanup) ||
|
|
433
|
-
fail(configPath, "runner.hooks", `provision and cleanup must both be ${BUILTIN_CONTAINER}, both be ${
|
|
432
|
+
if (isBuiltinContainer(provision) !== isBuiltinContainer(cleanup) || isBuiltinVm(provision) !== isBuiltinVm(cleanup)) {
|
|
433
|
+
fail(configPath, "runner.hooks", `provision and cleanup must both be ${BUILTIN_CONTAINER}, both be ${BUILTIN_VM}, or neither`);
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
function resolveHousekeeping(configPath, block, buildDisk) {
|
|
@@ -608,4 +608,4 @@ function egressLimitsOf(config) {
|
|
|
608
608
|
return resolveEgress(config.build?.egress, config.managed === true);
|
|
609
609
|
}
|
|
610
610
|
|
|
611
|
-
export { DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_SETUP_MINUTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, DEFAULT_WORKSPACE_KEEP_DAYS, EGRESS_SWITCHABLE_KEYS, MAX_ALLOW_HOSTS, RunnerConfigError, allowHostProblem, builtinKind, checkHooks, defaultRunnerConfigPath, egressSummary, emptyEgressCounts, hasRunnerBlock, hostAllowed, imageBuildOf, isBuiltinContainer,
|
|
611
|
+
export { DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_SETUP_MINUTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, DEFAULT_WORKSPACE_KEEP_DAYS, EGRESS_SWITCHABLE_KEYS, MAX_ALLOW_HOSTS, RunnerConfigError, allowHostProblem, builtinKind, checkHooks, defaultRunnerConfigPath, egressSummary, emptyEgressCounts, hasRunnerBlock, hostAllowed, imageBuildOf, isBuiltinContainer, isBuiltinVm, keepsHostBuilder, keyRunnerFactory, loadRunnerConfig, optionalEgress, resolveBuild, resolveHousekeeping, runnerCredentialProblem, runnerDeliversComments, runnerVmOf, systemClock };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runEmit } from './chunk-
|
|
4
|
-
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-
|
|
5
|
-
import { installStarterPack } from './chunk-
|
|
6
|
-
import { listWithAnd } from './chunk-
|
|
7
|
-
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-
|
|
3
|
+
import { runEmit } from './chunk-FCMEWS3G.js';
|
|
4
|
+
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-Z4ASKZKN.js';
|
|
5
|
+
import { installStarterPack } from './chunk-66UG5SL4.js';
|
|
6
|
+
import { listWithAnd } from './chunk-4Y7IEPQH.js';
|
|
7
|
+
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-ZM2SKQJD.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
9
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-AZTTOBJ5.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
|
-
import { linkedAgentsPath } from './chunk-
|
|
11
|
+
import { linkedAgentsPath } from './chunk-OQZ2B5AN.js';
|
|
12
12
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
13
|
-
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, contextAgents } from './chunk-
|
|
14
|
-
import { LEGACY_AGENT } from './chunk-
|
|
13
|
+
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, contextAgents } from './chunk-TOP4K2T6.js';
|
|
14
|
+
import { LEGACY_AGENT } from './chunk-G3BUOMCF.js';
|
|
15
15
|
import { execFileSync } from 'child_process';
|
|
16
16
|
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
17
17
|
import { join, dirname } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_DIGEST } from './chunk-
|
|
3
|
+
import { UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_DIGEST } from './chunk-23SNF2LN.js';
|
|
4
4
|
import { existsSync, readdirSync, readFileSync, lstatSync, realpathSync, writeFileSync } from 'fs';
|
|
5
5
|
import { join, resolve, relative, dirname, sep, basename } from 'path';
|
|
6
6
|
import { createRequire as createRequire$1 } from 'module';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { cliFetch, resolveGatewayCredentials } from './chunk-LZS5EYZ6.js';
|
|
3
|
+
import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
|
|
4
|
+
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-ZM2SKQJD.js';
|
|
5
|
+
import { DEFAULT_DASHBOARD } from './chunk-A6RI6KTI.js';
|
|
6
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-35OBGZYO.js';
|
|
8
7
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
9
8
|
import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
10
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
|
-
import { defaultAgents } from './chunk-
|
|
10
|
+
import { defaultAgents } from './chunk-TOP4K2T6.js';
|
|
11
|
+
import { remoteLookupFailed } from './chunk-M7AIU22N.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { lstatSync } from 'fs';
|
|
14
14
|
import { join, relative } from 'path';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { RunnerAlreadyRunningError, readPidFile } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-UASEIXDB.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-OROFFYEM.js';
|
|
5
|
+
import { RunnerAlreadyRunningError, readPidFile } from './chunk-PMXVWQ4T.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
7
|
-
import { keyRunnerFactory } from './chunk-
|
|
8
|
-
import { isSignatureRefusal, postJson } from './chunk-
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
-
import { pidFilePath } from './chunk-
|
|
7
|
+
import { keyRunnerFactory } from './chunk-36ML3NIO.js';
|
|
8
|
+
import { isSignatureRefusal, postJson } from './chunk-EM4QCRI6.js';
|
|
9
|
+
import { signerFor } from './chunk-CBMEWHAR.js';
|
|
10
|
+
import { pidFilePath } from './chunk-CXMXXRNS.js';
|
|
11
11
|
import { readFileSync } from 'fs';
|
|
12
12
|
|
|
13
13
|
createRequire(import.meta.url);
|
|
@@ -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-V5S6CVGP.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
4
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
|
-
import { linkedAgentsPath } from './chunk-
|
|
6
|
-
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-
|
|
7
|
-
import { LEGACY_AGENT } from './chunk-
|
|
5
|
+
import { linkedAgentsPath } from './chunk-OQZ2B5AN.js';
|
|
6
|
+
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-TOP4K2T6.js';
|
|
7
|
+
import { LEGACY_AGENT } from './chunk-G3BUOMCF.js';
|
|
8
8
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
9
9
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
10
10
|
import { readFileSync, existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { sanitizeTerminal } from './chunk-
|
|
4
|
-
import { isAgentsMdLayout } from './chunk-
|
|
5
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
6
|
-
import { versionAtLeast } from './chunk-
|
|
3
|
+
import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-ZM2SKQJD.js';
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-35OBGZYO.js';
|
|
6
|
+
import { versionAtLeast } from './chunk-IEFSDAVW.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
|
-
import { machineSkillsState, staleAgentSkills } from './chunk-
|
|
8
|
+
import { machineSkillsState, staleAgentSkills } from './chunk-VNXITMKE.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
|
-
import { hasSymlinkComponent } from './chunk-
|
|
11
|
-
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-
|
|
10
|
+
import { hasSymlinkComponent } from './chunk-OQZ2B5AN.js';
|
|
11
|
+
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-TOP4K2T6.js';
|
|
12
12
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
13
13
|
import { execFileSync } from 'child_process';
|
|
14
14
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import { spoolDir } from './chunk-JVHWWJ2J.js';
|
|
3
|
+
import { LiveUploader } from './chunk-FVIDZ3GK.js';
|
|
4
|
+
import { spoolDir } from './chunk-KKI3POPP.js';
|
|
6
5
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
6
|
+
import { sessionFolderIn, legacyAgent } from './chunk-TOP4K2T6.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
|
+
import { CaptureDaemon } from './chunk-M7AIU22N.js';
|
|
8
9
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
9
10
|
import { join } from 'path';
|
|
10
11
|
|
|
@@ -31,14 +32,15 @@ async function startSessionSender(opts = {}) {
|
|
|
31
32
|
debounceMs: opts.debounceMs,
|
|
32
33
|
stderr,
|
|
33
34
|
build: { item: parsed.number, jobDir },
|
|
34
|
-
onUnauthorized: opts.onFatal
|
|
35
|
+
onUnauthorized: opts.onFatal,
|
|
36
|
+
agents: opts.agents
|
|
35
37
|
});
|
|
36
38
|
const onLog = (event) => {
|
|
37
39
|
if (event.type === "changed" && event.file !== void 0) uploader.notify(event.file);
|
|
38
40
|
if (event.type === "error") stderr(`error ${event.file}: ${event.detail}
|
|
39
41
|
`);
|
|
40
42
|
};
|
|
41
|
-
const daemon = new CaptureDaemon({
|
|
43
|
+
const daemon = new CaptureDaemon({ root: opts.root ?? sessionFolderIn(home, legacyAgent(opts.agents).descriptor), watchOnly: true, rescanMs: RESCAN_MS, onLog });
|
|
42
44
|
const pidfile = senderPidfile(home, parsed.number);
|
|
43
45
|
try {
|
|
44
46
|
mkdirSync(spoolDir(home), { recursive: true });
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RemovedTargetError, removedTargetError } from './chunk-
|
|
4
|
-
import { removeRetiredSkills } from './chunk-
|
|
5
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { RemovedTargetError, removedTargetError } from './chunk-U37FB7ER.js';
|
|
4
|
+
import { removeRetiredSkills } from './chunk-KIY2AUHY.js';
|
|
5
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-35OBGZYO.js';
|
|
6
|
+
import { withTokenHeader } from './chunk-V5S6CVGP.js';
|
|
6
7
|
import { appendContextProvenance } from './chunk-545P7JY7.js';
|
|
7
8
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
9
|
import { writeDegraded, writeSourceCache, SOURCE_CACHE_TTL_RETRY_MS, writeContextManifest, SOURCE_CACHE_TTL_SUCCESS_MS, readSourceCache, isSourceCacheFresh, clearDegraded } from './chunk-YQR6E6OV.js';
|
|
9
|
-
import {
|
|
10
|
-
import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-I6U6QPN6.js';
|
|
10
|
+
import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-TOP4K2T6.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { existsSync, mkdirSync, writeFileSync, chmodSync, lstatSync, readFileSync, copyFileSync } from 'fs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-CXMXXRNS.js';
|
|
4
4
|
import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
|
|
5
5
|
import { join, basename, sep, resolve } from 'path';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-CXMXXRNS.js';
|
|
4
4
|
import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
|
|
5
5
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
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-CXMXXRNS.js';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
6
|
-
import { resolveRepoIdentity } from './chunk-6KH3NMIT.js';
|
|
4
|
+
import { detectActiveSession } from './chunk-V6V3NN5G.js';
|
|
5
|
+
import { autoConnect } from './chunk-VUINLLWP.js';
|
|
7
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-35OBGZYO.js';
|
|
9
8
|
import { launchedItemForSession } from './chunk-4OD45RBP.js';
|
|
10
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
|
-
import { CriteriaListSchema } from './chunk-WUKLQWGY.js';
|
|
12
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
11
|
+
import { resolveRepoIdentity } from './chunk-M7AIU22N.js';
|
|
12
|
+
import { CriteriaListSchema } from './chunk-WUKLQWGY.js';
|
|
13
13
|
import { readFileSync } from 'fs';
|
|
14
14
|
|
|
15
15
|
createRequire(import.meta.url);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession } from './chunk-
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
5
|
-
import { workPageUrl } from './chunk-
|
|
6
|
-
import { sanitizeTerminal } from './chunk-
|
|
7
|
-
import { resolveRepoIdentity } from './chunk-6KH3NMIT.js';
|
|
3
|
+
import { detectActiveSession } from './chunk-V6V3NN5G.js';
|
|
4
|
+
import { autoConnect } from './chunk-VUINLLWP.js';
|
|
5
|
+
import { workPageUrl } from './chunk-4Y7IEPQH.js';
|
|
6
|
+
import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
|
|
8
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-
|
|
10
|
-
import { signRunnerRequest } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-35OBGZYO.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-CBMEWHAR.js';
|
|
11
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
12
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
13
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
12
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-G3BUOMCF.js';
|
|
14
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
+
import { resolveRepoIdentity } from './chunk-M7AIU22N.js';
|
|
15
15
|
|
|
16
16
|
createRequire(import.meta.url);
|
|
17
17
|
|
|
@@ -475,7 +475,7 @@ async function runWorkLinkSession(opts) {
|
|
|
475
475
|
return await linkSession(opts);
|
|
476
476
|
} catch (err) {
|
|
477
477
|
if (opts.logFailures) {
|
|
478
|
-
const { logHookError } = await import('./hook-fast-
|
|
478
|
+
const { logHookError } = await import('./hook-fast-VZDS3U7L.js');
|
|
479
479
|
const reason = err instanceof Error ? err.message : String(err);
|
|
480
480
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
481
481
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
4
|
-
import { EXEC_PORT } from './chunk-
|
|
5
|
-
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-
|
|
6
|
-
import { RELAY_PORT } from './chunk-
|
|
4
|
+
import { EXEC_PORT } from './chunk-JU5SQNFB.js';
|
|
5
|
+
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-52RRBTZ5.js';
|
|
6
|
+
import { RELAY_PORT } from './chunk-V5S6CVGP.js';
|
|
7
7
|
import { spawn, spawnSync } from 'child_process';
|
|
8
8
|
import { symlinkSync, lstatSync, writeFileSync, chmodSync, mkdirSync, existsSync } from 'fs';
|
|
9
9
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-
|
|
3
|
+
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-ZM2SKQJD.js';
|
|
4
4
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
5
|
-
import { invalidConfigMessage } from './chunk-
|
|
6
|
-
import { retiredSkillPaths, removeRetiredSkills } from './chunk-
|
|
5
|
+
import { invalidConfigMessage } from './chunk-U37FB7ER.js';
|
|
6
|
+
import { retiredSkillPaths, removeRetiredSkills } from './chunk-KIY2AUHY.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-
|
|
9
|
-
import { LEGACY_AGENT } from './chunk-
|
|
8
|
+
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-TOP4K2T6.js';
|
|
9
|
+
import { LEGACY_AGENT } from './chunk-G3BUOMCF.js';
|
|
10
10
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, copyFileSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
11
11
|
import { join, dirname } from 'path';
|
|
12
12
|
|