@outerlayer/cli 0.36.0-next.20261101174803 → 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/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-K4RVAP4L.js → check-SF2OVZXB.js} +68 -66
- package/dist/{chunk-KB5B6ZT5.js → chunk-3FSKTGM6.js} +20 -20
- package/dist/{chunk-HL7UNTXO.js → chunk-4CTVN3C5.js} +15 -8
- package/dist/{chunk-QIOTIQWD.js → chunk-4TNUQLXH.js} +5 -5
- package/dist/{chunk-LGV5N5DG.js → chunk-564Q2STF.js} +1 -1
- package/dist/{chunk-F2LPX2HS.js → chunk-5FIOUQGC.js} +8 -8
- package/dist/{chunk-TSYHUUAT.js → chunk-5FND4PIU.js} +2 -2
- package/dist/{chunk-4DJZSNVT.js → chunk-6JJITHBI.js} +1 -1
- package/dist/{chunk-KLXECBIE.js → chunk-6LO62EQ5.js} +149 -106
- package/dist/{chunk-RIHB3HA2.js → chunk-772ILTCK.js} +3 -3
- package/dist/{chunk-CIUD3436.js → chunk-A5Y2HBVU.js} +1 -1
- package/dist/{chunk-KDK6AF7B.js → chunk-AYLYAOHH.js} +5 -5
- package/dist/{chunk-OEBFKPHK.js → chunk-C3JWWPLC.js} +9 -10
- package/dist/{chunk-24FEVLX7.js → chunk-CKPQOQFC.js} +643 -73
- package/dist/{chunk-ALEUIS35.js → chunk-CVGQ3BNF.js} +1 -1
- package/dist/{chunk-DJMR4YPG.js → chunk-EBIYRRJW.js} +5 -5
- package/dist/{chunk-MXIFRYLA.js → chunk-ESSJPSJ2.js} +2 -2
- package/dist/{chunk-D2OTBS47.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-DJDTL6AY.js → chunk-GDZTL6BI.js} +40 -31
- package/dist/{chunk-AF6DQJ5W.js → chunk-GSXGA6KF.js} +1 -1
- package/dist/{chunk-LEHBDEUG.js → chunk-GZ75FRLB.js} +4 -5
- package/dist/chunk-H2FFONRY.js +136 -0
- package/dist/{chunk-DHFNBNC3.js → chunk-HIN4BMRW.js} +2 -2
- package/dist/{chunk-ABAVN4RT.js → chunk-I626B72C.js} +29 -26
- package/dist/{chunk-VJYSPH2J.js → chunk-I6FRCBMU.js} +26 -21
- package/dist/{chunk-X2XTCGUS.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-JW5BENE6.js → chunk-JXXHLQQR.js} +3 -3
- package/dist/{chunk-GLUQVET2.js → chunk-K3X3L5YW.js} +2 -2
- package/dist/{chunk-MKSZHT6S.js → chunk-KN4VIK53.js} +1 -1
- package/dist/chunk-L3JXQDVH.js +78 -0
- package/dist/{chunk-6A2GEFN3.js → chunk-LCOQN6NR.js} +2 -2
- package/dist/{chunk-R3252UTU.js → chunk-LSXHTBAM.js} +2 -2
- package/dist/{chunk-ZP7F3OHV.js → chunk-LVXR37OG.js} +47 -38
- package/dist/{chunk-W7I65BKE.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-RIIPBJK6.js → chunk-NTMRMBLM.js} +4 -4
- package/dist/{chunk-NFZJ5XHP.js → chunk-NWBB2SQ4.js} +33 -32
- package/dist/{chunk-H7SKHAUE.js → chunk-OYKAOHX5.js} +3 -3
- package/dist/{chunk-EBOQU6QC.js → chunk-OZOATEK3.js} +2 -2
- package/dist/{chunk-BRUDBWLO.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-HAWPG7QW.js → chunk-PTPF36Q7.js} +3 -3
- package/dist/{chunk-7Y5VW4JG.js → chunk-Q42K6XZ6.js} +1 -1
- package/dist/{chunk-SPXVFFQV.js → chunk-QJDX6VJS.js} +5 -5
- package/dist/{chunk-ULBVE7MP.js → chunk-RK4JQRVT.js} +6 -6
- package/dist/{chunk-JU3VU42K.js → chunk-RPZIHELI.js} +5 -5
- package/dist/{chunk-XNBUZGRO.js → chunk-RSRZDF3K.js} +3 -3
- package/dist/{chunk-46OBCATR.js → chunk-T5Z22NA6.js} +1 -1
- package/dist/chunk-TWYHSMHM.js +67 -0
- package/dist/{chunk-AGKQEOFS.js → chunk-TYCZVJTB.js} +54 -31
- package/dist/{chunk-B7PYT2BY.js → chunk-VRQM4A64.js} +6 -3
- package/dist/{chunk-KFUDKFEH.js → chunk-WDQPBAFV.js} +44 -19
- package/dist/{chunk-UZGQT6OF.js → chunk-WLMAGMTU.js} +5 -3
- package/dist/{chunk-RDWKRG4K.js → chunk-WNYH42PF.js} +4 -4
- package/dist/{chunk-MOOZJRKM.js → chunk-WQB3XOEP.js} +27 -30
- package/dist/{chunk-O36YAH2G.js → chunk-XABJMU5A.js} +4 -4
- package/dist/{chunk-2SRQSGPR.js → chunk-XAOIHYPS.js} +29 -24
- package/dist/{chunk-WAZJPDR2.js → chunk-XE3DIJJT.js} +1 -1
- package/dist/{chunk-B62TYDP2.js → chunk-XHFSBSIA.js} +4 -4
- package/dist/{chunk-AH6634HC.js → chunk-XLOM2BNL.js} +1 -2
- package/dist/{claude-launcher-L77BKZOC.js → claude-launcher-LXZPTDNC.js} +23 -18
- package/dist/{cli-QQY5UECM.js → cli-QFUT3UQS.js} +137 -138
- package/dist/{cli-update-notice-T3CXRWNB.js → cli-update-notice-AWYJ4A7R.js} +2 -2
- package/dist/{command-QLHQZ32L.js → command-45RZT4CK.js} +55 -56
- package/dist/{config-5GY7FL35.js → config-WYQPXLOP.js} +11 -9
- package/dist/connect-cmd-LUCQ7FSV.js +26 -0
- package/dist/{container-start-OCJODSMB.js → container-start-T776VI3M.js} +55 -54
- package/dist/{context-cleanup-A7KBEBIO.js → context-cleanup-QE2MIO2Q.js} +4 -2
- package/dist/{context-show-cmd-MZ74ZIVO.js → context-show-cmd-7QEHUOEL.js} +14 -14
- package/dist/{control-plane-launch-3TZFOSCX.js → control-plane-launch-THUH6YU5.js} +18 -18
- package/dist/{demo-record-cmd-Y57UWBCX.js → demo-record-cmd-SBERRQNW.js} +8 -5
- package/dist/{demo-voice-cmd-4INIOVTC.js → demo-voice-cmd-VM3FITZU.js} +18 -20
- package/dist/docker-MQNLK4OO.js +17 -0
- package/dist/{doctor-DB2AJUAO.js → doctor-NQOSPJGS.js} +71 -68
- package/dist/{emit-artifact-cmd-H27MFSKH.js → emit-artifact-cmd-6E365VBQ.js} +17 -18
- package/dist/{emit-cmd-IOWTTZSA.js → emit-cmd-ZPFCPVSR.js} +7 -8
- package/dist/{emit-criteria-cmd-IOUVMB2Q.js → emit-criteria-cmd-HWQOYZZ4.js} +13 -14
- package/dist/{emit-demo-cmd-WJSS7KU2.js → emit-demo-cmd-PMQGNNVX.js} +18 -20
- package/dist/{emit-finding-cmd-KQIGM5IF.js → emit-finding-cmd-MYWQN5WW.js} +13 -14
- package/dist/{emit-result-cmd-6Q7OU2NY.js → emit-result-cmd-GXK3KMAP.js} +16 -17
- package/dist/{emit-step-cmd-GZU5O2FR.js → emit-step-cmd-ZV2XTUVT.js} +13 -14
- package/dist/exec-client-P7RFRUCK.js +14 -0
- package/dist/find-unit-63SXQ7IM.js +21 -0
- package/dist/{findings-cmd-T7PQAVJG.js → findings-cmd-OGMBVVSM.js} +13 -14
- package/dist/{fleet-readiness-PTMOEX6L.js → fleet-readiness-4RBKLXBQ.js} +14 -15
- package/dist/{governing-source-CND5ZZC3.js → governing-source-XJMXFSAR.js} +19 -20
- package/dist/guest-init-XZHRPIMG.js +16 -0
- package/dist/{hook-fast-RW7RU3O6.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-HUQLVUPO.js → init-LO6U7YTW.js} +52 -51
- package/dist/{init-cmd-6NQGBVAJ.js → init-cmd-2JANO5EN.js} +23 -24
- package/dist/{init-update-MA6QKX46.js → init-update-D6PRTGNE.js} +51 -44
- package/dist/install-cmd-SJMBNQEH.js +17 -0
- package/dist/{layout-2ZMCT2D3.js → layout-AQHIMJMO.js} +4 -4
- 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-237PQFRC.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-IIY5UJL3.js → runner-identity-PSCZBILD.js} +10 -7
- package/dist/{runner-key-CFZ47PR3.js → runner-key-VM2LYVRK.js} +44 -46
- package/dist/{session-sender-NO4F2IQ5.js → session-sender-P2RHDM6U.js} +17 -18
- package/dist/{spec-cmd-CNASSB6L.js → spec-cmd-LGKP6MT7.js} +14 -15
- package/dist/{starter-pack-CCVIEY72.js → starter-pack-SMK6UPRL.js} +5 -6
- package/dist/state-RJR4PMMX.js +14 -0
- package/dist/{status-VNHIHQ57.js → status-HEHCNIDS.js} +44 -46
- package/dist/{sync-cmd-5JLJBODH.js → sync-cmd-HKN45HXL.js} +16 -17
- package/dist/update-steps-7E4RD47J.js +77 -0
- package/dist/{watch-AEWWTUEK.js → watch-RGZCUCR3.js} +16 -17
- package/dist/{work-claim-cmd-GUYOJYH7.js → work-claim-cmd-6DSPGCZE.js} +19 -21
- package/dist/{work-cmd-YRPYMGII.js → work-cmd-GPLYLWY7.js} +13 -14
- package/dist/{work-comment-cmd-U5Z6FKEU.js → work-comment-cmd-V5WM7LAW.js} +16 -17
- package/dist/{work-demo-cmd-OLCWTVWM.js → work-demo-cmd-SWWI6AGD.js} +13 -14
- package/dist/{work-logs-cmd-2OA7ENDU.js → work-logs-cmd-CTFBOPCI.js} +13 -14
- package/dist/{work-open-pr-cmd-6GUCDYVM.js → work-open-pr-cmd-HX2U3YBR.js} +14 -15
- package/dist/{work-pr-cmd-KK3VQUQI.js → work-pr-cmd-EI2R4FQG.js} +13 -14
- package/dist/{work-proofs-cmd-BUOS5OJC.js → work-proofs-cmd-QXNPHLYC.js} +15 -16
- package/dist/{work-proofs-record-6WLMOK53.js → work-proofs-record-72OKWEES.js} +22 -24
- package/dist/{work-stop-cmd-VZJX5X4L.js → work-stop-cmd-7M7ZYUN2.js} +13 -14
- package/package.json +1 -1
- package/dist/agent-setup-DJRQFPDU.js +0 -33
- package/dist/bridge-XM4QLKIX.js +0 -8
- package/dist/build-ZE5IG3V6.js +0 -18
- package/dist/build-disk-GMXDIZU4.js +0 -15
- package/dist/builder-LJ3FSB36.js +0 -14
- package/dist/caller-YLNJJPFU.js +0 -18
- package/dist/chunk-CXFJOX2C.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/chunk-VRMXYQWR.js +0 -74
- package/dist/connect-cmd-THV7XBVP.js +0 -27
- package/dist/docker-5YVUZ3J2.js +0 -14
- package/dist/exec-client-FGGPQSYQ.js +0 -9
- package/dist/find-unit-PRZIFBIK.js +0 -19
- package/dist/guest-init-WPUS45IN.js +0 -11
- package/dist/host-checks-S3B7Z4SY.js +0 -78
- package/dist/host-key-O4DFMOSV.js +0 -9
- package/dist/init-ILTX4V56.js +0 -78
- package/dist/install-cmd-JKPXIOEY.js +0 -12
- package/dist/loop-KDWDOSMQ.js +0 -89
- package/dist/machine-Z6K5XXI6.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-W2UMHY7P.js +0 -19
- package/dist/state-UWIM42JH.js +0 -9
- package/dist/update-steps-XGOXDCOS.js +0 -79
- 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-
|
|
6
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-PKO5IDW4.js';
|
|
7
|
+
import { renderUpdateSteps } from './chunk-JXXHLQQR.js';
|
|
8
8
|
import { RUNNER_PROTOCOL } from './chunk-L2BA2HXM.js';
|
|
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-
|
|
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, runnerDeliversComments, 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';
|
|
@@ -808,8 +808,8 @@ async function prepareUpdate(args) {
|
|
|
808
808
|
return finish(args, retryFailure(version, err));
|
|
809
809
|
}
|
|
810
810
|
if (!verified.ok) return finish(args, { outcome: verified.outcome, reason: verified.reason });
|
|
811
|
-
const held =
|
|
812
|
-
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])) };
|
|
813
813
|
const staged = await deps.runNode([entryIn(verified.dir), "runner", "check", "--config", configPath], verified.dir, stagedEnv);
|
|
814
814
|
if (staged.status !== 0) {
|
|
815
815
|
removeStaging(verified.dir);
|
|
@@ -1197,7 +1197,7 @@ function leaseTimeLeftFor(state, active) {
|
|
|
1197
1197
|
return () => (state.deps.leaseTimeLeftMs ?? leaseTimeLeftMs)(active.job, nowOf(state).getTime());
|
|
1198
1198
|
}
|
|
1199
1199
|
function runtimeOf(state) {
|
|
1200
|
-
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)) });
|
|
1201
1201
|
return state.containerRuntime;
|
|
1202
1202
|
}
|
|
1203
1203
|
function finishDepsOf(state) {
|
|
@@ -2173,7 +2173,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
2173
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(" ")
|
|
2174
2174
|
);
|
|
2175
2175
|
async function tryClaimAndStart(state, item, queue) {
|
|
2176
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
2176
|
+
const { postJson: postJson2 } = await import('./work-cmd-GPLYLWY7.js');
|
|
2177
2177
|
const log = logOf(state);
|
|
2178
2178
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
2179
2179
|
const claim = await retrySend(
|
|
@@ -2349,6 +2349,7 @@ async function prepareSession(state, active, item, queue, tag) {
|
|
|
2349
2349
|
workItemId: item.id,
|
|
2350
2350
|
queue,
|
|
2351
2351
|
builtin,
|
|
2352
|
+
requireScrubNote: state.config.managed === true,
|
|
2352
2353
|
restore: async ({ dir, meta }) => {
|
|
2353
2354
|
if (job.microvm !== void 0) await restoreSessionIntoMicroVm(runtimeOf(state), job.microvm, dir, meta);
|
|
2354
2355
|
else if (job.container !== void 0) await restoreSessionIntoContainer(runtimeOf(state), job.container, dir, meta);
|
|
@@ -2691,7 +2692,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2691
2692
|
if (active.ending) return;
|
|
2692
2693
|
writeJobFile(jobFilePath, active.job);
|
|
2693
2694
|
if (named.exec !== void 0 && named.recipe !== void 0) {
|
|
2694
|
-
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);
|
|
2695
2696
|
for (const step of lifecycleSteps(named.recipe.apply.lifecycle)) {
|
|
2696
2697
|
if (active.ending) return;
|
|
2697
2698
|
log.line(`${tag} lifecycle ${step.name} (${step.source})`);
|
|
@@ -2789,7 +2790,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
2789
2790
|
}
|
|
2790
2791
|
} else {
|
|
2791
2792
|
const build = job.build;
|
|
2792
|
-
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);
|
|
2793
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);
|
|
2794
2795
|
}
|
|
2795
2796
|
} catch (err) {
|
|
@@ -3535,16 +3536,16 @@ async function start(configPath, deps = { fetchImpl: fetch }) {
|
|
|
3535
3536
|
}
|
|
3536
3537
|
async function startRunner(configPath, deps, startup) {
|
|
3537
3538
|
const log = deps.log ??= createRunnerLog(deps.now ?? (() => /* @__PURE__ */ new Date()));
|
|
3538
|
-
|
|
3539
|
+
takeAgentCredentials(process.env, hooksOf(configPath), deps.agents);
|
|
3539
3540
|
const update = deps.update;
|
|
3540
3541
|
if (update !== void 0) {
|
|
3541
3542
|
const outcome = await onStartUnderMarker({
|
|
3542
3543
|
configPath,
|
|
3543
3544
|
own: ownVersionOf(deps),
|
|
3544
3545
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
3545
|
-
const held =
|
|
3546
|
-
const env =
|
|
3547
|
-
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 });
|
|
3548
3549
|
},
|
|
3549
3550
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
3550
3551
|
log
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postJson, getJson } from './chunk-
|
|
3
|
+
import { resolveCredentials, postJson, getJson } from './chunk-QJDX6VJS.js';
|
|
4
4
|
import { detectActiveSession } from './chunk-IP7BIBXJ.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
6
|
import { sanitizeTerminal } from './chunk-P6PHY33P.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
8
|
-
import { logHookError } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-JVCQZDQ6.js';
|
|
8
|
+
import { logHookError } from './chunk-EBIYRRJW.js';
|
|
9
9
|
import { resolveRepoIdentity } from './chunk-5GHJFETA.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -2,9 +2,9 @@
|
|
|
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
9
|
import { resolveRepoIdentity, defaultProjectsDir, findTranscripts, sessionIdFromPath, scrubText } from './chunk-5GHJFETA.js';
|
|
10
10
|
import { launchedItemForSession } from './chunk-5WYT3PPE.js';
|
|
@@ -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,12 +1,12 @@
|
|
|
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
7
|
import { sanitizeTerminal } from './chunk-P6PHY33P.js';
|
|
8
|
-
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-
|
|
9
|
-
import { signRunnerRequest } from './chunk-
|
|
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
11
|
import { resolveRepoIdentity } from './chunk-5GHJFETA.js';
|
|
12
12
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
@@ -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,10 +1,10 @@
|
|
|
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
6
|
import { sanitizeTerminal } from './chunk-P6PHY33P.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-JVCQZDQ6.js';
|
|
8
8
|
import { resolveRepoIdentity } from './chunk-5GHJFETA.js';
|
|
9
9
|
import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
@@ -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-CXFJOX2C.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,12 +1,12 @@
|
|
|
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
8
|
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-P6PHY33P.js';
|
|
9
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-JVCQZDQ6.js';
|
|
10
10
|
import { resolveRepoIdentity } from './chunk-5GHJFETA.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -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 };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtinKind, keepsHostBuilder } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
6
|
-
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV,
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-NTMRMBLM.js';
|
|
4
|
+
import { parseSize } from './chunk-C3JWWPLC.js';
|
|
5
|
+
import { runnerDir } from './chunk-GD6KIHOS.js';
|
|
6
|
+
import { FD_SLOTS_PER_BUILD, runnerAgents, credentialNames, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialAgent, credentialForms, credentialLineIn, withoutCredentialLines } from './chunk-J7Y3PCO2.js';
|
|
7
|
+
import { defaultAgents } from './chunk-CKPQOQFC.js';
|
|
7
8
|
import { existsSync, readFileSync, writeFileSync, chmodSync, renameSync } from 'fs';
|
|
8
9
|
import { dirname, join } from 'path';
|
|
9
10
|
import { spawnSync } from 'child_process';
|
|
@@ -20,7 +21,11 @@ function escapeUnitPath(path) {
|
|
|
20
21
|
function credentialPath(path) {
|
|
21
22
|
return path.replace(/%/g, "%%");
|
|
22
23
|
}
|
|
23
|
-
function runnerUnit(unit) {
|
|
24
|
+
function runnerUnit(unit, agents = defaultAgents()) {
|
|
25
|
+
const credentialLines = runnerAgents(agents).map((agent) => {
|
|
26
|
+
const { envFile, credentialId } = credentialNames(agent.descriptor);
|
|
27
|
+
return unit.credential === "load" ? `LoadCredential=${credentialId}:${credentialPath(`${unit.configDir}/${envFile}`)}` : `EnvironmentFile=-${escapeUnitPath(`${unit.configDir}/${envFile}`)}`;
|
|
28
|
+
});
|
|
24
29
|
const helperService = unit.helper === void 0 ? void 0 : `${unit.helper.unit}.service`;
|
|
25
30
|
return `${UNIT_MARKER}
|
|
26
31
|
[Unit]
|
|
@@ -36,8 +41,8 @@ ${unit.helper === void 0 ? "" : `Environment=OUTERLAYER_HELPER_SOCKET=${unit.hel
|
|
|
36
41
|
`}${unit.fdStore === void 0 ? "" : `Environment=${FD_STORE_ENV}=${unit.fdStore}
|
|
37
42
|
`}${unit.sliceMemoryBytes === void 0 ? "" : `Environment=${BUILD_SLICE_MEMORY_ENV}=${unit.sliceMemoryBytes}
|
|
38
43
|
`}EnvironmentFile=-${escapeUnitPath(`${unit.configDir}/runner.env`)}
|
|
39
|
-
${
|
|
40
|
-
Restart=on-failure
|
|
44
|
+
${credentialLines.map((line) => `${line}
|
|
45
|
+
`).join("")}Restart=on-failure
|
|
41
46
|
RestartForceExitStatus=75
|
|
42
47
|
RestartSec=30
|
|
43
48
|
KillSignal=SIGTERM
|
|
@@ -188,36 +193,53 @@ function unitNameProblem(name) {
|
|
|
188
193
|
}
|
|
189
194
|
var LOAD_CREDENTIAL_SINCE = 247;
|
|
190
195
|
var CREDENTIAL_FILE_MODE = 384;
|
|
191
|
-
function
|
|
192
|
-
const
|
|
196
|
+
function credentialFileOf(configDir, agent) {
|
|
197
|
+
const { envFile, label } = credentialForms(agent.descriptor);
|
|
198
|
+
return { path: join(configDir, envFile), label, envFile };
|
|
199
|
+
}
|
|
200
|
+
function credentialFileIn(configDir, agents) {
|
|
201
|
+
const agent = credentialAgent(agents);
|
|
202
|
+
return agent === void 0 ? void 0 : credentialFileOf(configDir, agent);
|
|
203
|
+
}
|
|
204
|
+
function prepareCredentialFile(configDir, lines, agents) {
|
|
205
|
+
return runnerAgents(agents).every((agent) => prepareAgentCredentialFile(configDir, lines, agent));
|
|
206
|
+
}
|
|
207
|
+
function prepareAgentCredentialFile(configDir, lines, agent) {
|
|
208
|
+
const file = credentialFileOf(configDir, agent);
|
|
209
|
+
const agents = [{ descriptor: agent.descriptor, adapter: agent.adapter }];
|
|
193
210
|
const runnerPath = join(configDir, "runner.env");
|
|
194
211
|
try {
|
|
195
|
-
const stored = existsSync(
|
|
196
|
-
if (stored !== void 0 && credentialLineIn(stored) !== void 0) return true;
|
|
197
|
-
const moved = existsSync(runnerPath) ? credentialLineIn(readFileSync(runnerPath, "utf8")) : void 0;
|
|
212
|
+
const stored = existsSync(file.path) ? readFileSync(file.path, "utf8") : void 0;
|
|
213
|
+
if (stored !== void 0 && credentialLineIn(stored, agents) !== void 0) return true;
|
|
214
|
+
const moved = existsSync(runnerPath) ? credentialLineIn(readFileSync(runnerPath, "utf8"), agents) : void 0;
|
|
198
215
|
if (stored !== void 0 && moved === void 0) return true;
|
|
199
216
|
const kept = stored === void 0 || stored === "" ? "" : stored.endsWith("\n") ? stored : `${stored}
|
|
200
217
|
`;
|
|
201
|
-
const temporary = `${
|
|
218
|
+
const temporary = `${file.path}.${process.pid}.tmp`;
|
|
202
219
|
writeFileSync(temporary, moved === void 0 ? kept : `${kept}${moved}
|
|
203
220
|
`, { mode: CREDENTIAL_FILE_MODE });
|
|
204
221
|
chmodSync(temporary, CREDENTIAL_FILE_MODE);
|
|
205
|
-
renameSync(temporary,
|
|
222
|
+
renameSync(temporary, file.path);
|
|
206
223
|
return true;
|
|
207
224
|
} catch (err) {
|
|
208
|
-
lines.push(`${
|
|
225
|
+
lines.push(`${file.path} could not be written (${err instanceof Error ? err.message : String(err)}), so nothing was changed`);
|
|
209
226
|
return false;
|
|
210
227
|
}
|
|
211
228
|
}
|
|
212
|
-
function finishCredentialMove(configDir, lines, reload) {
|
|
229
|
+
function finishCredentialMove(configDir, lines, agents, reload) {
|
|
230
|
+
for (const agent of runnerAgents(agents)) finishAgentCredentialMove(configDir, lines, agent, reload);
|
|
231
|
+
}
|
|
232
|
+
function finishAgentCredentialMove(configDir, lines, agent, reload) {
|
|
233
|
+
const file = credentialFileOf(configDir, agent);
|
|
234
|
+
const agents = [{ descriptor: agent.descriptor, adapter: agent.adapter }];
|
|
213
235
|
const runnerPath = join(configDir, "runner.env");
|
|
214
236
|
try {
|
|
215
237
|
if (!existsSync(runnerPath)) return;
|
|
216
|
-
if (credentialLineIn(readFileSync(
|
|
217
|
-
const text = withoutCredentialLines(readFileSync(runnerPath, "utf8"));
|
|
238
|
+
if (credentialLineIn(readFileSync(file.path, "utf8"), agents) === void 0) return;
|
|
239
|
+
const text = withoutCredentialLines(readFileSync(runnerPath, "utf8"), agents);
|
|
218
240
|
if (text === void 0) return;
|
|
219
241
|
if (reload !== void 0 && !reload()) {
|
|
220
|
-
lines.push(`the
|
|
242
|
+
lines.push(`the ${file.label} credential is in ${file.path} and is also still in ${runnerPath}, because systemd may still hold the old unit: run \`sudo systemctl daemon-reload\`, then this command again`);
|
|
221
243
|
return;
|
|
222
244
|
}
|
|
223
245
|
const temporary = `${runnerPath}.${process.pid}.tmp`;
|
|
@@ -225,7 +247,7 @@ function finishCredentialMove(configDir, lines, reload) {
|
|
|
225
247
|
chmodSync(temporary, CREDENTIAL_FILE_MODE);
|
|
226
248
|
renameSync(temporary, runnerPath);
|
|
227
249
|
} catch (err) {
|
|
228
|
-
lines.push(`the
|
|
250
|
+
lines.push(`the ${file.label} credential is in ${file.path} and is also still in ${runnerPath}, which could not be changed (${err instanceof Error ? err.message : String(err)}): remove its line by hand`);
|
|
229
251
|
}
|
|
230
252
|
}
|
|
231
253
|
function unitPathFor(unitName = DEFAULT_UNIT_NAME) {
|
|
@@ -254,7 +276,7 @@ function needsHostDocker(request) {
|
|
|
254
276
|
if (cleanup === "vm" && !keepsHostBuilder({ hooks: request.hooks, build: { imageBuild: request.imageBuild } }, request.builderDiskPinned)) return false;
|
|
255
277
|
return provision === "container" || provision === "vm" || cleanup === "container" || cleanup === "vm";
|
|
256
278
|
}
|
|
257
|
-
function installService(request, deps) {
|
|
279
|
+
function installService(request, deps, agents = defaultAgents()) {
|
|
258
280
|
const unitName = request.unitName ?? DEFAULT_UNIT_NAME;
|
|
259
281
|
const unitPath = unitPathFor(unitName);
|
|
260
282
|
const lines = [];
|
|
@@ -275,7 +297,8 @@ function installService(request, deps) {
|
|
|
275
297
|
// A microVM build under the helper keeps its sockets in the descriptor store, so the runner can restart and the build goes on.
|
|
276
298
|
...kind === "vm" && request.helperSocket !== void 0 && request.helperUnit !== void 0 ? { fdStore: Math.max(1, request.concurrency) * FD_SLOTS_PER_BUILD } : {},
|
|
277
299
|
sliceMemoryBytes: request.buildSliceMemoryBytes
|
|
278
|
-
});
|
|
300
|
+
}, agents);
|
|
301
|
+
const envFile = credentialFileIn(configDir, agents)?.envFile ?? "the credential file";
|
|
279
302
|
if (request.print === true) return outcome(true, "printed", [], unit);
|
|
280
303
|
if (own) return outcome(false, "refused", [OWN_HOOKS]);
|
|
281
304
|
if (deps.platform === "darwin" || deps.platform === "windows") {
|
|
@@ -308,7 +331,7 @@ function installService(request, deps) {
|
|
|
308
331
|
const fallbackNote = () => {
|
|
309
332
|
if (credential === "load") return;
|
|
310
333
|
lines.push(
|
|
311
|
-
`the
|
|
334
|
+
`the ${credentialFileIn(configDir, agents)?.label ?? "agent"} credential stays in the service's environment: ${version === void 0 ? "the systemd version could not be read" : `systemd ${version} is older than ${LOAD_CREDENTIAL_SINCE}`}, and LoadCredential= needs ${LOAD_CREDENTIAL_SINCE} or later, so the unit loads ${envFile} with EnvironmentFile=`
|
|
312
335
|
);
|
|
313
336
|
};
|
|
314
337
|
const write = () => {
|
|
@@ -322,20 +345,20 @@ function installService(request, deps) {
|
|
|
322
345
|
return ensureWindowsAccessOff(deps, unitName, say, lines);
|
|
323
346
|
};
|
|
324
347
|
if (existing === unit) {
|
|
325
|
-
if (!prepareCredentialFile(configDir, lines)) return outcome(false, "refused", lines);
|
|
348
|
+
if (!prepareCredentialFile(configDir, lines, agents)) return outcome(false, "refused", lines);
|
|
326
349
|
const wasRunning = running();
|
|
327
350
|
if (!wasRunning && !asRoot(deps, lines, say, ["enable", "--now", unitName])) return outcome(false, "refused", lines);
|
|
328
|
-
finishCredentialMove(configDir, lines, () => asRoot(deps, lines, say, ["daemon-reload"]));
|
|
351
|
+
finishCredentialMove(configDir, lines, agents, () => asRoot(deps, lines, say, ["daemon-reload"]));
|
|
329
352
|
if (wasRunning && request.restart === true) {
|
|
330
353
|
const windowsOk2 = windowsSteps();
|
|
331
354
|
const finish2 = (state) => windowsOk2 ? outcome(true, state, lines) : outcome(false, "refused", lines);
|
|
332
355
|
if (deps.buildsRunning(runnerDir(request.configPath))) {
|
|
333
|
-
lines.push(`the service ${unitName} is current; a build is running, so it was not restarted and reads
|
|
356
|
+
lines.push(`the service ${unitName} is current; a build is running, so it was not restarted and reads ${envFile} and runner.env at its next restart`);
|
|
334
357
|
fallbackNote();
|
|
335
358
|
return finish2("pending-restart");
|
|
336
359
|
}
|
|
337
360
|
if (!asRoot(deps, lines, say, ["restart", unitName])) return outcome(false, "refused", lines);
|
|
338
|
-
lines.push(`restarted the service ${unitName}, so it reads
|
|
361
|
+
lines.push(`restarted the service ${unitName}, so it reads ${envFile} and runner.env`);
|
|
339
362
|
fallbackNote();
|
|
340
363
|
return finish2("updated");
|
|
341
364
|
}
|
|
@@ -345,14 +368,14 @@ function installService(request, deps) {
|
|
|
345
368
|
return outcome(true, "current", lines);
|
|
346
369
|
}
|
|
347
370
|
if (existing === void 0) {
|
|
348
|
-
if (!prepareCredentialFile(configDir, lines)) return outcome(false, "refused", lines);
|
|
371
|
+
if (!prepareCredentialFile(configDir, lines, agents)) return outcome(false, "refused", lines);
|
|
349
372
|
if (!write()) return outcome(false, "refused", lines);
|
|
350
373
|
if (!asRoot(deps, lines, say, ["daemon-reload"]) || !asRoot(deps, lines, say, ["enable", "--now", unitName])) {
|
|
351
374
|
say(`sudo rm ${unitPath}`);
|
|
352
375
|
if (attempt(lines, () => deps.systemd.remove(unitPath))) deps.systemd.systemctl(["daemon-reload"], { sudo: true });
|
|
353
376
|
return outcome(false, "refused", lines);
|
|
354
377
|
}
|
|
355
|
-
finishCredentialMove(configDir, lines);
|
|
378
|
+
finishCredentialMove(configDir, lines, agents);
|
|
356
379
|
lines.push(`installed and started the service ${unitName}: the runner starts at boot and after a crash`);
|
|
357
380
|
fallbackNote();
|
|
358
381
|
if (!windowsSteps()) return outcome(false, "refused", lines);
|
|
@@ -362,11 +385,11 @@ function installService(request, deps) {
|
|
|
362
385
|
lines.push(`${unitPath} differs from what this command writes, and it was not written by it, so it was left alone. Pass --replace to replace it, or \`--print\` to compare`);
|
|
363
386
|
return outcome(false, "differs", lines);
|
|
364
387
|
}
|
|
365
|
-
if (!prepareCredentialFile(configDir, lines)) return outcome(false, "refused", lines);
|
|
388
|
+
if (!prepareCredentialFile(configDir, lines, agents)) return outcome(false, "refused", lines);
|
|
366
389
|
if (!write()) return outcome(false, "refused", lines);
|
|
367
390
|
if (!asRoot(deps, lines, say, ["daemon-reload"])) return outcome(false, "refused", lines);
|
|
368
391
|
if ((!existing.startsWith(UNIT_MARKER) || !running()) && !asRoot(deps, lines, say, ["enable", "--now", unitName])) return outcome(false, "refused", lines);
|
|
369
|
-
finishCredentialMove(configDir, lines);
|
|
392
|
+
finishCredentialMove(configDir, lines, agents);
|
|
370
393
|
fallbackNote();
|
|
371
394
|
const windowsOk = windowsSteps();
|
|
372
395
|
const finish = (state) => windowsOk ? outcome(true, state, lines) : outcome(false, "refused", lines);
|