@outerlayer/cli 0.36.0-next.20261101131017 → 0.36.0-next.20261102124202
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-setup-AOB76EDJ.js +37 -0
- package/dist/{artifact-link-cmd-W7LRR76D.js → artifact-link-cmd-ZCMQIT5Y.js} +2 -2
- package/dist/bridge-DFG2GTXQ.js +13 -0
- package/dist/build-THAD3B4Q.js +21 -0
- package/dist/build-disk-HO2VPIBJ.js +18 -0
- package/dist/build-info.json +1 -1
- package/dist/builder-AXJNIF4S.js +17 -0
- package/dist/caller-GOY2X6QT.js +20 -0
- package/dist/{check-G4TVQKN3.js → check-SF2OVZXB.js} +73 -71
- package/dist/{chunk-KB5B6ZT5.js → chunk-3FSKTGM6.js} +20 -20
- package/dist/{chunk-CONA2WNE.js → chunk-4CTVN3C5.js} +18 -11
- package/dist/{chunk-2QW2PLWT.js → chunk-4TNUQLXH.js} +8 -8
- package/dist/{chunk-LGV5N5DG.js → chunk-564Q2STF.js} +1 -1
- package/dist/{chunk-2ANBJ7DB.js → chunk-5FIOUQGC.js} +8 -8
- package/dist/{chunk-4W7CPTKY.js → chunk-5FND4PIU.js} +3 -3
- package/dist/{chunk-SQ6HDN7A.js → chunk-5GHJFETA.js} +1 -1
- package/dist/{chunk-4DJZSNVT.js → chunk-6JJITHBI.js} +1 -1
- package/dist/{chunk-6CYNPWZT.js → chunk-6LO62EQ5.js} +151 -108
- package/dist/{chunk-RIHB3HA2.js → chunk-772ILTCK.js} +3 -3
- package/dist/{chunk-CIUD3436.js → chunk-A5Y2HBVU.js} +1 -1
- package/dist/{chunk-F3ZMVUAS.js → chunk-AYLYAOHH.js} +5 -5
- package/dist/{chunk-DZDTSDHQ.js → chunk-C3JWWPLC.js} +10 -11
- package/dist/{chunk-JFMSFHER.js → chunk-CKPQOQFC.js} +644 -74
- package/dist/{chunk-ALEUIS35.js → chunk-CVGQ3BNF.js} +1 -1
- package/dist/{chunk-GDMAN42R.js → chunk-EBIYRRJW.js} +5 -5
- package/dist/{chunk-UIKUH2UQ.js → chunk-ESSJPSJ2.js} +2 -2
- package/dist/{chunk-A67A5SWG.js → chunk-EUDG754F.js} +2 -2
- package/dist/{chunk-55PYF6S2.js → chunk-FIO6PIZ6.js} +3 -3
- package/dist/{chunk-WT7J2627.js → chunk-GD6KIHOS.js} +1 -1
- package/dist/{chunk-SRENPED2.js → chunk-GDZTL6BI.js} +42 -33
- package/dist/{chunk-AF6DQJ5W.js → chunk-GSXGA6KF.js} +1 -1
- package/dist/{chunk-T3AJOPUR.js → chunk-GZ75FRLB.js} +4 -5
- package/dist/chunk-H2FFONRY.js +136 -0
- package/dist/{chunk-IM2DECLP.js → chunk-HIN4BMRW.js} +3 -3
- package/dist/{chunk-OLENS2DD.js → chunk-I626B72C.js} +29 -26
- package/dist/{chunk-YCUUZGFF.js → chunk-I6FRCBMU.js} +26 -21
- package/dist/{chunk-PN6TNCQI.js → chunk-J7TCTARR.js} +11 -12
- package/dist/chunk-J7Y3PCO2.js +653 -0
- package/dist/{chunk-YQHEJ5SV.js → chunk-JVCQZDQ6.js} +3 -3
- package/dist/{chunk-5DYL6FJA.js → chunk-JXXHLQQR.js} +3 -3
- package/dist/{chunk-VI6Z4EJZ.js → chunk-K3X3L5YW.js} +4 -4
- package/dist/{chunk-MKSZHT6S.js → chunk-KN4VIK53.js} +1 -1
- package/dist/{chunk-3LCXSD26.js → chunk-L2BA2HXM.js} +1 -1
- package/dist/chunk-L3JXQDVH.js +78 -0
- package/dist/{chunk-3ONYQMGD.js → chunk-LCOQN6NR.js} +3 -3
- package/dist/{chunk-6KHQGLNT.js → chunk-LSXHTBAM.js} +5 -5
- package/dist/{chunk-RGH5GYU2.js → chunk-LVXR37OG.js} +47 -38
- package/dist/{chunk-HGGR7Y3V.js → chunk-LYFLUNWK.js} +12 -12
- package/dist/{chunk-GANAOCHR.js → chunk-M2NIHHQI.js} +24 -374
- package/dist/chunk-NC3QAHOS.js +26 -0
- package/dist/{chunk-UFRRRF64.js → chunk-NTMRMBLM.js} +10 -5
- package/dist/{chunk-RGU6LHPI.js → chunk-NWBB2SQ4.js} +38 -35
- package/dist/{chunk-A7D5BMII.js → chunk-OYKAOHX5.js} +5 -5
- package/dist/{chunk-46YRS7QS.js → chunk-OZOATEK3.js} +4 -4
- package/dist/{chunk-3PQTOKML.js → chunk-P6PHY33P.js} +1 -1
- package/dist/{chunk-GQ7VVBUA.js → chunk-PKO5IDW4.js} +7 -7
- package/dist/{chunk-7J7HRYZ3.js → chunk-PQDFW422.js} +1 -1
- package/dist/{chunk-EZRAR5YG.js → chunk-PT34C6SU.js} +1 -1
- package/dist/{chunk-K66FIV2S.js → chunk-PTPF36Q7.js} +3 -3
- package/dist/{chunk-7Y5VW4JG.js → chunk-Q42K6XZ6.js} +1 -1
- package/dist/{chunk-VIJWXQMT.js → chunk-QJDX6VJS.js} +7 -7
- package/dist/{chunk-W46566FP.js → chunk-RK4JQRVT.js} +9 -9
- package/dist/{chunk-U553JKMO.js → chunk-RPZIHELI.js} +5 -5
- package/dist/{chunk-CIEX2ZKQ.js → chunk-RSRZDF3K.js} +6 -6
- package/dist/{chunk-46OBCATR.js → chunk-T5Z22NA6.js} +1 -1
- package/dist/{chunk-5H57X7YC.js → chunk-TPMLB3VZ.js} +1 -1
- package/dist/chunk-TWYHSMHM.js +67 -0
- package/dist/{chunk-6GA5BJTH.js → chunk-TYCZVJTB.js} +54 -31
- package/dist/{chunk-4SFHEARD.js → chunk-VRQM4A64.js} +6 -3
- package/dist/{chunk-LRCGXRQI.js → chunk-WDQPBAFV.js} +44 -19
- package/dist/{chunk-UZGQT6OF.js → chunk-WLMAGMTU.js} +5 -3
- package/dist/{chunk-KCUX5I5W.js → chunk-WNYH42PF.js} +6 -6
- package/dist/{chunk-C4YULCXX.js → chunk-WQB3XOEP.js} +28 -31
- package/dist/{chunk-VUG4IZ7H.js → chunk-WUKLQWGY.js} +1 -1
- package/dist/{chunk-MDFOS4OM.js → chunk-XABJMU5A.js} +4 -4
- package/dist/{chunk-MMXPNEEQ.js → chunk-XAOIHYPS.js} +29 -24
- package/dist/{chunk-WAZJPDR2.js → chunk-XE3DIJJT.js} +1 -1
- package/dist/{chunk-3SQZ5LIK.js → chunk-XHFSBSIA.js} +4 -4
- package/dist/{chunk-GDIVOYDA.js → chunk-XLOM2BNL.js} +3 -4
- package/dist/{claude-launcher-YV3TDXBU.js → claude-launcher-LXZPTDNC.js} +23 -18
- package/dist/{cli-EMQEIYSR.js → cli-QFUT3UQS.js} +145 -146
- package/dist/{cli-update-notice-T3CXRWNB.js → cli-update-notice-AWYJ4A7R.js} +2 -2
- package/dist/{command-GKVKI74I.js → command-45RZT4CK.js} +59 -60
- package/dist/{config-4HXUXX3M.js → config-WYQPXLOP.js} +13 -11
- package/dist/connect-cmd-LUCQ7FSV.js +26 -0
- package/dist/{container-start-OMF3ZUIB.js → container-start-T776VI3M.js} +59 -58
- package/dist/{context-cleanup-TPHCVVFV.js → context-cleanup-QE2MIO2Q.js} +5 -3
- package/dist/{context-show-cmd-MKQAAR7R.js → context-show-cmd-7QEHUOEL.js} +17 -17
- package/dist/{control-plane-launch-UWFQWMWB.js → control-plane-launch-THUH6YU5.js} +19 -19
- package/dist/{demo-record-cmd-Y57UWBCX.js → demo-record-cmd-SBERRQNW.js} +8 -5
- package/dist/{demo-voice-cmd-H4PCO2PT.js → demo-voice-cmd-VM3FITZU.js} +22 -24
- package/dist/{dist-Y3WSK7OZ.js → dist-6KGTCWKR.js} +2 -2
- package/dist/docker-MQNLK4OO.js +17 -0
- package/dist/{doctor-FEBZ3DZB.js → doctor-NQOSPJGS.js} +75 -72
- package/dist/emit-artifact-cmd-6E365VBQ.js +41 -0
- package/dist/emit-cmd-ZPFCPVSR.js +16 -0
- package/dist/emit-criteria-cmd-HWQOYZZ4.js +32 -0
- package/dist/{emit-demo-cmd-VKGN74NW.js → emit-demo-cmd-PMQGNNVX.js} +22 -24
- package/dist/{emit-finding-cmd-DNFJEYQS.js → emit-finding-cmd-MYWQN5WW.js} +17 -18
- package/dist/{emit-result-cmd-OR5WTW4P.js → emit-result-cmd-GXK3KMAP.js} +20 -21
- package/dist/{emit-step-cmd-AAEBYW3L.js → emit-step-cmd-ZV2XTUVT.js} +17 -18
- package/dist/exec-client-P7RFRUCK.js +14 -0
- package/dist/find-unit-63SXQ7IM.js +21 -0
- package/dist/{findings-cmd-LTM62M3K.js → findings-cmd-OGMBVVSM.js} +17 -18
- package/dist/fleet-readiness-4RBKLXBQ.js +27 -0
- package/dist/governing-source-XJMXFSAR.js +38 -0
- package/dist/guest-init-XZHRPIMG.js +16 -0
- package/dist/{hook-fast-3HPWMSFB.js → hook-fast-ZOWGWCPO.js} +5 -5
- package/dist/host-checks-WHW24PJR.js +76 -0
- package/dist/host-key-MWLXB5U5.js +14 -0
- package/dist/{image-tag-WBD57QBN.js → image-tag-E4JK2APF.js} +9 -4
- package/dist/index.js +4 -4
- package/dist/init-EZIAHBMH.js +76 -0
- package/dist/{init-O5H4TWA7.js → init-LO6U7YTW.js} +56 -55
- package/dist/{init-cmd-HWAXEEOD.js → init-cmd-2JANO5EN.js} +27 -28
- package/dist/{init-update-3W2TOJQV.js → init-update-D6PRTGNE.js} +55 -48
- package/dist/install-cmd-SJMBNQEH.js +17 -0
- package/dist/layout-AQHIMJMO.js +11 -0
- package/dist/{login-browser-ODTJEGDN.js → login-browser-QH4KYG3F.js} +2 -2
- package/dist/{logs-FEITSC2V.js → logs-NE55HOET.js} +8 -3
- package/dist/loop-2E34CGCX.js +87 -0
- package/dist/machine-6ALGG4IO.js +76 -0
- package/dist/{machine-skills-VRUJVBQV.js → machine-skills-KK2HXYMR.js} +3 -4
- package/dist/{mcp-install-cmd-23ZY4IBK.js → mcp-install-cmd-2QAS3AQZ.js} +5 -1
- package/dist/{mcp-serve-cmd-ZINYSLY6.js → mcp-serve-cmd-U6USKHYR.js} +9 -7
- package/dist/{paths-XEYE7OZ2.js → paths-O7LCWY33.js} +8 -3
- package/dist/pending-YU2GE2UV.js +14 -0
- package/dist/pidfile-5GDCQ5HA.js +15 -0
- package/dist/record-NETSDAO6.js +14 -0
- package/dist/{relay-IEYNSKAZ.js → relay-VZ733BVJ.js} +6 -1
- package/dist/{relay-protocol-5LSWUJCW.js → relay-protocol-24GEUGCO.js} +6 -1
- package/dist/runner-env-KHCONH2R.js +21 -0
- package/dist/runner-identity-PSCZBILD.js +17 -0
- package/dist/{runner-key-HUOW7X7B.js → runner-key-VM2LYVRK.js} +48 -50
- package/dist/{session-sender-32UAV25N.js → session-sender-P2RHDM6U.js} +21 -22
- package/dist/{spec-cmd-TPRHZ3EV.js → spec-cmd-LGKP6MT7.js} +18 -19
- package/dist/{starter-pack-7QNUT74O.js → starter-pack-SMK6UPRL.js} +6 -7
- package/dist/state-RJR4PMMX.js +14 -0
- package/dist/{status-HDJ2V5UD.js → status-HEHCNIDS.js} +48 -50
- package/dist/{sync-cmd-AHXCXMVP.js → sync-cmd-HKN45HXL.js} +20 -21
- package/dist/update-steps-7E4RD47J.js +77 -0
- package/dist/{watch-4EDI4CTS.js → watch-RGZCUCR3.js} +20 -21
- package/dist/{work-claim-cmd-GFRZBX2V.js → work-claim-cmd-6DSPGCZE.js} +24 -26
- package/dist/{work-cmd-FLKJQWGQ.js → work-cmd-GPLYLWY7.js} +17 -18
- package/dist/work-comment-cmd-V5WM7LAW.js +35 -0
- package/dist/{work-demo-cmd-FDPDTXG6.js → work-demo-cmd-SWWI6AGD.js} +17 -18
- package/dist/{work-logs-cmd-PSB44DT5.js → work-logs-cmd-CTFBOPCI.js} +17 -18
- package/dist/{work-open-pr-cmd-QJW5PNT2.js → work-open-pr-cmd-HX2U3YBR.js} +18 -19
- package/dist/{work-pr-cmd-HMGBUHGL.js → work-pr-cmd-EI2R4FQG.js} +17 -18
- package/dist/{work-proofs-cmd-3GPGH4RL.js → work-proofs-cmd-QXNPHLYC.js} +19 -20
- package/dist/{work-proofs-record-AC4GYMQA.js → work-proofs-record-72OKWEES.js} +26 -28
- package/dist/{work-stop-cmd-YO7SBPNF.js → work-stop-cmd-7M7ZYUN2.js} +17 -18
- package/package.json +2 -1
- package/dist/agent-setup-UYTS2PHZ.js +0 -33
- package/dist/bridge-XM4QLKIX.js +0 -8
- package/dist/build-IENNKWWC.js +0 -18
- package/dist/build-disk-M33Q6L22.js +0 -15
- package/dist/builder-YNMSYR75.js +0 -14
- package/dist/caller-2GU5V52U.js +0 -18
- package/dist/chunk-3DMCCCVM.js +0 -74
- package/dist/chunk-7O7LJWQO.js +0 -144
- package/dist/chunk-FGF52V4V.js +0 -137
- package/dist/chunk-HCVLP7XA.js +0 -53
- package/dist/chunk-MESOOLF4.js +0 -45
- package/dist/chunk-OHQMGLJP.js +0 -113
- package/dist/chunk-OUPQTA7N.js +0 -145
- package/dist/connect-cmd-GLB2X7YA.js +0 -27
- package/dist/docker-AFJABU7U.js +0 -14
- package/dist/emit-artifact-cmd-DGFH4MUK.js +0 -42
- package/dist/emit-cmd-HNXRGC5Z.js +0 -17
- package/dist/emit-criteria-cmd-B23VYUF6.js +0 -33
- package/dist/exec-client-FGGPQSYQ.js +0 -9
- package/dist/find-unit-4XKMNIE7.js +0 -19
- package/dist/fleet-readiness-FAKMWCJV.js +0 -28
- package/dist/governing-source-75MBT2IE.js +0 -39
- package/dist/guest-init-WPUS45IN.js +0 -11
- package/dist/host-checks-PUI32LIA.js +0 -78
- package/dist/host-key-O4DFMOSV.js +0 -9
- package/dist/init-Y672J4BW.js +0 -78
- package/dist/install-cmd-JKPXIOEY.js +0 -12
- package/dist/layout-TLUOMM6F.js +0 -11
- package/dist/loop-QJGPNIT4.js +0 -89
- package/dist/machine-YKQSW22W.js +0 -78
- package/dist/pending-D2NNV54J.js +0 -9
- package/dist/pidfile-FLFVRKVW.js +0 -10
- package/dist/record-JMZOXD4R.js +0 -9
- package/dist/runner-env-FK3SUT3Q.js +0 -19
- package/dist/runner-identity-WYAGV6UQ.js +0 -14
- package/dist/state-UWIM42JH.js +0 -9
- package/dist/update-steps-F37GQWLJ.js +0 -79
- package/dist/work-comment-cmd-3HUIIEQD.js +0 -36
- package/dist/{chunk-OLM2TIOW.js → chunk-NFZMENCY.js} +1 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
3
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-Q42K6XZ6.js';
|
|
4
4
|
import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
|
|
5
5
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
6
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
7
|
-
import { renderUpdateSteps } from './chunk-
|
|
8
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
9
|
-
import { writeFleetState } from './chunk-
|
|
10
|
-
import { writePendingUpdate } 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, provisionProcess, 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, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-
|
|
14
|
-
import { RepoFilter } from './chunk-
|
|
6
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-PKO5IDW4.js';
|
|
7
|
+
import { renderUpdateSteps } from './chunk-JXXHLQQR.js';
|
|
8
|
+
import { RUNNER_PROTOCOL } from './chunk-L2BA2HXM.js';
|
|
9
|
+
import { writeFleetState } from './chunk-564Q2STF.js';
|
|
10
|
+
import { writePendingUpdate } from './chunk-PT34C6SU.js';
|
|
11
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-I6FRCBMU.js';
|
|
12
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-GSXGA6KF.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, provisionProcess, 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, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-6LO62EQ5.js';
|
|
14
|
+
import { RepoFilter } from './chunk-4TNUQLXH.js';
|
|
15
15
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
16
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
16
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-CVGQ3BNF.js';
|
|
17
17
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
18
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
19
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
20
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
18
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-TYCZVJTB.js';
|
|
19
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-XE3DIJJT.js';
|
|
20
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-5FIOUQGC.js';
|
|
21
21
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
22
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-
|
|
23
|
-
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-
|
|
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-
|
|
22
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls } from './chunk-EUDG754F.js';
|
|
23
|
+
import { keyRunnerFactory, isBuiltinContainer, isBuiltinVm, isBuiltinProcess, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS } from './chunk-NTMRMBLM.js';
|
|
24
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-ESSJPSJ2.js';
|
|
25
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, exceedsDisk, builderName, runnerLabelValue, ensureFailureCount, builderSpec, ensureBuilder, spawnRun } from './chunk-C3JWWPLC.js';
|
|
26
|
+
import { isSignatureRefusal, WorkCommandError, getJson, postJson } from './chunk-QJDX6VJS.js';
|
|
27
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-6JJITHBI.js';
|
|
28
|
+
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-GD6KIHOS.js';
|
|
29
|
+
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT } from './chunk-M2NIHHQI.js';
|
|
30
|
+
import { COMMAND_LOST_REASON, takeAgentCredentials, runnerAgents, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-J7Y3PCO2.js';
|
|
28
31
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
29
|
-
import { RUNNER_DIR_MODE, runnerDir, buildDir, attemptStamp, jobDir, RUNNER_FILE_MODE, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-WT7J2627.js';
|
|
30
|
-
import { parseClaimIdentity, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, sharedUserEnvironment, JOB_MOUNT, takeClaudeCredential, heldClaudeCredential, currentClaudeCredential, fdName } from './chunk-GANAOCHR.js';
|
|
31
|
-
import { COMMAND_LOST_REASON, CONTAINER_STOPPED_REASON } from './chunk-MESOOLF4.js';
|
|
32
32
|
import { mkdirSync, existsSync, chmodSync, writeFileSync, renameSync, statSync, readdirSync, readFileSync, rmSync, closeSync } from 'fs';
|
|
33
33
|
import { join, dirname } from 'path';
|
|
34
34
|
import { randomBytes, createHash } from 'crypto';
|
|
@@ -431,7 +431,8 @@ async function sendHeartbeat(args, fetchImpl) {
|
|
|
431
431
|
state: args.state,
|
|
432
432
|
waitingItems: args.waitingItems === void 0 ? void 0 : args.waitingItems.slice(0, WAITING_ITEMS_MAX),
|
|
433
433
|
takes: args.takes === void 0 ? void 0 : takesBody(args.takes),
|
|
434
|
-
selfUpdate: args.selfUpdate
|
|
434
|
+
selfUpdate: args.selfUpdate,
|
|
435
|
+
deliversComments: args.deliversComments
|
|
435
436
|
};
|
|
436
437
|
try {
|
|
437
438
|
const response = await postJson(
|
|
@@ -807,8 +808,8 @@ async function prepareUpdate(args) {
|
|
|
807
808
|
return finish(args, retryFailure(version, err));
|
|
808
809
|
}
|
|
809
810
|
if (!verified.ok) return finish(args, { outcome: verified.outcome, reason: verified.reason });
|
|
810
|
-
const held =
|
|
811
|
-
const stagedEnv = held ===
|
|
811
|
+
const held = runnerAgents().flatMap((agent) => currentAgentCredential(process.env, agent.descriptor.id) ?? []);
|
|
812
|
+
const stagedEnv = held.length === 0 ? void 0 : { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
812
813
|
const staged = await deps.runNode([entryIn(verified.dir), "runner", "check", "--config", configPath], verified.dir, stagedEnv);
|
|
813
814
|
if (staged.status !== 0) {
|
|
814
815
|
removeStaging(verified.dir);
|
|
@@ -1196,7 +1197,7 @@ function leaseTimeLeftFor(state, active) {
|
|
|
1196
1197
|
return () => (state.deps.leaseTimeLeftMs ?? leaseTimeLeftMs)(active.job, nowOf(state).getTime());
|
|
1197
1198
|
}
|
|
1198
1199
|
function runtimeOf(state) {
|
|
1199
|
-
state.containerRuntime ??= createContainerRuntime(withTunnelLog(state.deps.container, (line) => logOf(state).line(line)));
|
|
1200
|
+
state.containerRuntime ??= createContainerRuntime({ agents: state.deps.agents, ...withTunnelLog(state.deps.container, (line) => logOf(state).line(line)) });
|
|
1200
1201
|
return state.containerRuntime;
|
|
1201
1202
|
}
|
|
1202
1203
|
function finishDepsOf(state) {
|
|
@@ -1334,7 +1335,8 @@ async function sendTickHeartbeat(state, workRequest, wake2 = false) {
|
|
|
1334
1335
|
// Left out unless a draining runner has builds to wait on, so the gateway stores null.
|
|
1335
1336
|
waitingItems: waitingItems.length > 0 ? waitingItems : void 0,
|
|
1336
1337
|
takes: { queues: state.config.queues, repos: { include: state.config.repos?.include, exclude: state.config.repos?.exclude } },
|
|
1337
|
-
selfUpdate: selfUpdateReport(state)
|
|
1338
|
+
selfUpdate: selfUpdateReport(state),
|
|
1339
|
+
deliversComments: runnerDeliversComments(state.config)
|
|
1338
1340
|
},
|
|
1339
1341
|
state.deps.fetchImpl
|
|
1340
1342
|
);
|
|
@@ -2171,7 +2173,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
2171
2173
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
2172
2174
|
);
|
|
2173
2175
|
async function tryClaimAndStart(state, item, queue) {
|
|
2174
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
2176
|
+
const { postJson: postJson2 } = await import('./work-cmd-GPLYLWY7.js');
|
|
2175
2177
|
const log = logOf(state);
|
|
2176
2178
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
2177
2179
|
const claim = await retrySend(
|
|
@@ -2347,6 +2349,7 @@ async function prepareSession(state, active, item, queue, tag) {
|
|
|
2347
2349
|
workItemId: item.id,
|
|
2348
2350
|
queue,
|
|
2349
2351
|
builtin,
|
|
2352
|
+
requireScrubNote: state.config.managed === true,
|
|
2350
2353
|
restore: async ({ dir, meta }) => {
|
|
2351
2354
|
if (job.microvm !== void 0) await restoreSessionIntoMicroVm(runtimeOf(state), job.microvm, dir, meta);
|
|
2352
2355
|
else if (job.container !== void 0) await restoreSessionIntoContainer(runtimeOf(state), job.container, dir, meta);
|
|
@@ -2689,7 +2692,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2689
2692
|
if (active.ending) return;
|
|
2690
2693
|
writeJobFile(jobFilePath, active.job);
|
|
2691
2694
|
if (named.exec !== void 0 && named.recipe !== void 0) {
|
|
2692
|
-
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);
|
|
2695
|
+
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, state.deps.agents);
|
|
2693
2696
|
for (const step of lifecycleSteps(named.recipe.apply.lifecycle)) {
|
|
2694
2697
|
if (active.ending) return;
|
|
2695
2698
|
log.line(`${tag} lifecycle ${step.name} (${step.source})`);
|
|
@@ -2787,7 +2790,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2787
2790
|
}
|
|
2788
2791
|
} else {
|
|
2789
2792
|
const build = job.build;
|
|
2790
|
-
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);
|
|
2793
|
+
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, state.deps.agents);
|
|
2791
2794
|
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);
|
|
2792
2795
|
}
|
|
2793
2796
|
} catch (err) {
|
|
@@ -3533,16 +3536,16 @@ async function start(configPath, deps = { fetchImpl: fetch }) {
|
|
|
3533
3536
|
}
|
|
3534
3537
|
async function startRunner(configPath, deps, startup) {
|
|
3535
3538
|
const log = deps.log ??= createRunnerLog(deps.now ?? (() => /* @__PURE__ */ new Date()));
|
|
3536
|
-
|
|
3539
|
+
takeAgentCredentials(process.env, hooksOf(configPath), deps.agents);
|
|
3537
3540
|
const update = deps.update;
|
|
3538
3541
|
if (update !== void 0) {
|
|
3539
3542
|
const outcome = await onStartUnderMarker({
|
|
3540
3543
|
configPath,
|
|
3541
3544
|
own: ownVersionOf(deps),
|
|
3542
3545
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3543
|
-
const held =
|
|
3544
|
-
const env =
|
|
3545
|
-
return (await import('./check-
|
|
3546
|
+
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
3547
|
+
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
3548
|
+
return (await import('./check-SF2OVZXB.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
3546
3549
|
},
|
|
3547
3550
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3548
3551
|
log
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postJson, getJson } from './chunk-
|
|
3
|
+
import { resolveCredentials, postJson, getJson } from './chunk-QJDX6VJS.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { sanitizeTerminal } from './chunk-
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
8
|
-
import { logHookError } from './chunk-
|
|
9
|
-
import { resolveRepoIdentity } from './chunk-
|
|
6
|
+
import { sanitizeTerminal } from './chunk-P6PHY33P.js';
|
|
7
|
+
import { defaultFetch } from './chunk-JVCQZDQ6.js';
|
|
8
|
+
import { logHookError } from './chunk-EBIYRRJW.js';
|
|
9
|
+
import { resolveRepoIdentity } from './chunk-5GHJFETA.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
12
12
|
import { randomUUID } from 'crypto';
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
4
4
|
import { detectActiveSession, transcriptPathForSession } from './chunk-IP7BIBXJ.js';
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { autoConnect } from './chunk-5FND4PIU.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-JVCQZDQ6.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
|
|
9
|
-
import { resolveRepoIdentity, defaultProjectsDir, findTranscripts, sessionIdFromPath, scrubText } from './chunk-
|
|
9
|
+
import { resolveRepoIdentity, defaultProjectsDir, findTranscripts, sessionIdFromPath, scrubText } from './chunk-5GHJFETA.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
13
|
-
import { FindingBatchSchema, FindingsResponseSchema, SAME_PROBLEM_RULES } from './chunk-
|
|
13
|
+
import { FindingBatchSchema, FindingsResponseSchema, SAME_PROBLEM_RULES } from './chunk-WUKLQWGY.js';
|
|
14
14
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
15
15
|
import { readFileSync, existsSync } from 'fs';
|
|
16
16
|
import { join, dirname, basename } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-
|
|
3
|
+
import { ArtifactTombstoneRecordSchema, ArtifactSpoolRecordSchema } from './chunk-WUKLQWGY.js';
|
|
4
4
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
5
5
|
import { mkdirSync, appendFileSync, writeFileSync, renameSync, unlinkSync, existsSync, readdirSync, readFileSync, statSync } from 'fs';
|
|
6
6
|
import { join, dirname } 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-6LO62EQ5.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-TYCZVJTB.js';
|
|
5
|
+
import { RunnerAlreadyRunningError, readPidFile } from './chunk-XE3DIJJT.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-NTMRMBLM.js';
|
|
8
|
+
import { isSignatureRefusal, postJson } from './chunk-QJDX6VJS.js';
|
|
9
|
+
import { signerFor } from './chunk-6JJITHBI.js';
|
|
10
|
+
import { pidFilePath } from './chunk-GD6KIHOS.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 { currentLink } from './chunk-
|
|
3
|
+
import { currentLink } from './chunk-GSXGA6KF.js';
|
|
4
4
|
import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
|
|
5
5
|
import { randomBytes } from 'crypto';
|
|
6
6
|
import { join, dirname, delimiter, resolve } from 'path';
|
|
@@ -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-GD6KIHOS.js';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { helperSocketPath } from './chunk-
|
|
4
|
-
import { UNIT_MARKER } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
3
|
+
import { helperSocketPath } from './chunk-6LO62EQ5.js';
|
|
4
|
+
import { UNIT_MARKER } from './chunk-TYCZVJTB.js';
|
|
5
|
+
import { runnerDir } from './chunk-GD6KIHOS.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
8
8
|
|
|
@@ -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-GD6KIHOS.js';
|
|
4
4
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
5
|
-
import { workPageUrl } from './chunk-
|
|
4
|
+
import { autoConnect } from './chunk-5FND4PIU.js';
|
|
5
|
+
import { workPageUrl } from './chunk-4CTVN3C5.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { sanitizeTerminal } from './chunk-
|
|
8
|
-
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-
|
|
9
|
-
import { signRunnerRequest } from './chunk-
|
|
7
|
+
import { sanitizeTerminal } from './chunk-P6PHY33P.js';
|
|
8
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-JVCQZDQ6.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-6JJITHBI.js';
|
|
10
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
11
|
-
import { resolveRepoIdentity } from './chunk-
|
|
11
|
+
import { resolveRepoIdentity } from './chunk-5GHJFETA.js';
|
|
12
12
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
14
|
|
|
@@ -474,7 +474,7 @@ async function runWorkLinkSession(opts) {
|
|
|
474
474
|
return await linkSession(opts);
|
|
475
475
|
} catch (err) {
|
|
476
476
|
if (opts.logFailures) {
|
|
477
|
-
const { logHookError } = await import('./hook-fast-
|
|
477
|
+
const { logHookError } = await import('./hook-fast-ZOWGWCPO.js');
|
|
478
478
|
const reason = err instanceof Error ? err.message : String(err);
|
|
479
479
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
480
480
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
3
|
+
import { criteriaOf, loadCitationFinder, hostItemsOf, criterionInputs, NO_CITING_TEST_REASON, NO_TEST_FILES_REASON, NO_VERDICT_REASON, isFoundInReason, uncitedIds, planCriteria, pickSearchable, IdScan, testFileMatcher, foundInReason, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, groupBySize } from './chunk-XLOM2BNL.js';
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-QJDX6VJS.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { sanitizeTerminal } from './chunk-
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
8
|
-
import { resolveRepoIdentity } from './chunk-
|
|
6
|
+
import { sanitizeTerminal } from './chunk-P6PHY33P.js';
|
|
7
|
+
import { defaultFetch } from './chunk-JVCQZDQ6.js';
|
|
8
|
+
import { resolveRepoIdentity } from './chunk-5GHJFETA.js';
|
|
9
9
|
import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
12
|
-
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH } from './chunk-
|
|
12
|
+
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH } from './chunk-WUKLQWGY.js';
|
|
13
13
|
import { createHash } from 'crypto';
|
|
14
14
|
import { spawnSync } from 'child_process';
|
|
15
15
|
import { existsSync, statSync, readFileSync } from 'fs';
|
|
@@ -217,14 +217,14 @@ function governingDir(cwd) {
|
|
|
217
217
|
async function testProofMode(cwd) {
|
|
218
218
|
const dir = governingDir(cwd);
|
|
219
219
|
if (dir === void 0) return "any";
|
|
220
|
-
const { testProofIn } = await import('./host-checks-
|
|
220
|
+
const { testProofIn } = await import('./host-checks-WHW24PJR.js');
|
|
221
221
|
return testProofIn(dir);
|
|
222
222
|
}
|
|
223
223
|
async function judgeCheckName(cwd) {
|
|
224
224
|
const dir = governingDir(cwd);
|
|
225
225
|
if (dir === void 0) return {};
|
|
226
226
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
227
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
227
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-WHW24PJR.js');
|
|
228
228
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
229
229
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
230
230
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -369,7 +369,7 @@ async function runWorkProofs(opts) {
|
|
|
369
369
|
async function runWorkProofsCommand(opts) {
|
|
370
370
|
try {
|
|
371
371
|
if (opts.record) {
|
|
372
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
372
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-72OKWEES.js');
|
|
373
373
|
const result2 = await runWorkProofsRecord(opts);
|
|
374
374
|
process.exitCode = result2.exitCode;
|
|
375
375
|
return;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-
|
|
4
|
-
import { VALIDATOR_FILES, VALIDATORS_DIR, POLICY_PATH, POLICY_CONTENT } from './chunk-
|
|
5
|
-
import { skillsBaseFor } from './chunk-
|
|
3
|
+
import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-H2FFONRY.js';
|
|
4
|
+
import { VALIDATOR_FILES, VALIDATORS_DIR, POLICY_PATH, POLICY_CONTENT } from './chunk-XHFSBSIA.js';
|
|
5
|
+
import { skillsBaseFor } from './chunk-WDQPBAFV.js';
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
|
-
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-7O7LJWQO.js';
|
|
8
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
9
|
-
import { hasSymlinkComponent } from './chunk-
|
|
8
|
+
import { hasSymlinkComponent } from './chunk-VRQM4A64.js';
|
|
10
9
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
10
|
+
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-CKPQOQFC.js';
|
|
11
11
|
import { createHash } from 'crypto';
|
|
12
12
|
import { existsSync, readFileSync } from 'fs';
|
|
13
13
|
import { join } from 'path';
|
|
@@ -1,16 +1,16 @@
|
|
|
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-4TNUQLXH.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-AAGU5FJF.js';
|
|
5
5
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
6
|
-
import { autoConnect } from './chunk-
|
|
6
|
+
import { autoConnect } from './chunk-5FND4PIU.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-
|
|
9
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
10
|
-
import { resolveRepoIdentity } from './chunk-
|
|
8
|
+
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-P6PHY33P.js';
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-JVCQZDQ6.js';
|
|
10
|
+
import { resolveRepoIdentity } from './chunk-5GHJFETA.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
13
|
-
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-
|
|
13
|
+
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-WUKLQWGY.js';
|
|
14
14
|
import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
|
|
15
15
|
import { createHash, randomUUID } from 'crypto';
|
|
16
16
|
import { statSync, readFileSync, mkdirSync, existsSync, writeFileSync, renameSync, unlinkSync } from 'fs';
|
|
@@ -5,7 +5,7 @@ import { C } from './chunk-2AM6Z5BP.js';
|
|
|
5
5
|
import { readCloudConfigStrict, CloudConfigError, readCloudConfig, writeCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { CLI_LOGIN_MACHINE_NAME_MAX, CliLoginPollResponseSchema, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema } from './chunk-
|
|
8
|
+
import { CLI_LOGIN_MACHINE_NAME_MAX, CliLoginPollResponseSchema, CLI_LOGIN_KIND, CliLoginRefusalSchema, CliLoginStartedSchema } from './chunk-WUKLQWGY.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
10
10
|
import { generateKeyPairSync, privateDecrypt, constants, createPrivateKey } from 'crypto';
|
|
11
11
|
import { spawn } from 'child_process';
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-NC3QAHOS.js';
|
|
4
|
+
import { legacyAgent, agentById, LEGACY_AGENT, defaultAgents, legacySubcommand } from './chunk-CKPQOQFC.js';
|
|
5
|
+
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
6
|
+
import { lstatSync, readFileSync } from 'fs';
|
|
7
|
+
import { join } from 'path';
|
|
8
|
+
|
|
9
|
+
createRequire(import.meta.url);
|
|
10
|
+
function readText(path) {
|
|
11
|
+
try {
|
|
12
|
+
if (!lstatSync(path).isFile()) return void 0;
|
|
13
|
+
} catch {
|
|
14
|
+
return void 0;
|
|
15
|
+
}
|
|
16
|
+
const content = readFileSync(path);
|
|
17
|
+
return content.includes(0) ? void 0 : content.toString("utf8");
|
|
18
|
+
}
|
|
19
|
+
function composeDelivery(input, agents = defaultAgents()) {
|
|
20
|
+
const entry = input.agent === void 0 ? legacyAgent(agents) : agentById(input.agent, agents);
|
|
21
|
+
const context = entry?.adapter.context;
|
|
22
|
+
if (context === void 0) throw new Error(`${input.agent ?? LEGACY_AGENT} has no context part, so it cannot compose a control plane`);
|
|
23
|
+
return context.compose({ tree: input.tree, dir: input.dir, maintainedSkills: MAINTAINED_SKILLS, controlPlaneVariable: CONTROL_PLANE_DIR_VARIABLE });
|
|
24
|
+
}
|
|
25
|
+
function sharedSkillNames(tree, agents = defaultAgents()) {
|
|
26
|
+
return legacyAgent(agents).adapter.context?.deliveredSkills(tree) ?? [];
|
|
27
|
+
}
|
|
28
|
+
function skillConflictMessage(input) {
|
|
29
|
+
return `${input.folder}/${input.skill} in ${input.repository} has the same name as the shared skill ${input.skill} from ${input.controlPlane}`;
|
|
30
|
+
}
|
|
31
|
+
var UNPARSABLE_CONFIG = "unparsable";
|
|
32
|
+
function isNewerLayout(declared) {
|
|
33
|
+
return /^[1-9][0-9]*$/.test(declared) && Number(declared) > SUPPORTED_CONTROL_PLANE_LAYOUT;
|
|
34
|
+
}
|
|
35
|
+
function layoutProblem(repository, declared, upgrade) {
|
|
36
|
+
if (declared === UNPARSABLE_CONFIG) {
|
|
37
|
+
return { what: `the control plane ${repository} has an .outerlayer/config.json that is not valid JSON`, advice: "fix the file" };
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
what: `the control plane ${repository} declares layout ${declared}`,
|
|
41
|
+
advice: isNewerLayout(declared) ? `${upgrade} to a version that reads layout ${declared}` : `set "layout" in .outerlayer/config.json to 1 or ${SUPPORTED_CONTROL_PLANE_LAYOUT}`
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function unsupportedLayout(root) {
|
|
45
|
+
const text = readText(join(root, ".outerlayer/config.json"));
|
|
46
|
+
if (text === void 0) return void 0;
|
|
47
|
+
let declared;
|
|
48
|
+
try {
|
|
49
|
+
declared = JSON.parse(text)?.layout;
|
|
50
|
+
} catch {
|
|
51
|
+
return UNPARSABLE_CONFIG;
|
|
52
|
+
}
|
|
53
|
+
if (declared === void 0) return void 0;
|
|
54
|
+
if (typeof declared === "number" && Number.isInteger(declared) && declared >= 1 && declared <= SUPPORTED_CONTROL_PLANE_LAYOUT) return void 0;
|
|
55
|
+
return JSON.stringify(declared);
|
|
56
|
+
}
|
|
57
|
+
function layoutRefusalMessage(repository, declared) {
|
|
58
|
+
const { what, advice } = layoutProblem(repository, declared, "upgrade the CLI");
|
|
59
|
+
return `outerlayer ${legacySubcommand()}: ${what}, and this CLI reads layouts 1 and ${SUPPORTED_CONTROL_PLANE_LAYOUT}; ${advice}
|
|
60
|
+
`;
|
|
61
|
+
}
|
|
62
|
+
function layoutRefusalReason(repository, declared) {
|
|
63
|
+
const { what, advice } = layoutProblem(repository, declared, "upgrade the CLI on the runner host");
|
|
64
|
+
return `context_layout_unsupported: ${what}, and this runner's CLI reads layouts 1 and ${SUPPORTED_CONTROL_PLANE_LAYOUT}; ${advice}`;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export { composeDelivery, layoutRefusalMessage, layoutRefusalReason, sharedSkillNames, skillConflictMessage, unsupportedLayout };
|