@outerlayer/cli 0.36.0-next.20261102211600 → 0.36.0-next.20261102223926
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -13
- package/dist/agent-setup-WNS62XAG.js +39 -0
- package/dist/{agent-subcommand-3VJ6PKAT.js → agent-subcommand-SG5KMT5Y.js} +5 -5
- package/dist/{bridge-RECR25EL.js → bridge-MBQ7MYJ2.js} +7 -7
- package/dist/{build-NIKF353A.js → build-ISO6RWQE.js} +13 -13
- package/dist/{build-disk-GKLJQNYQ.js → build-disk-N3G3OA6N.js} +11 -11
- package/dist/build-info.json +1 -1
- package/dist/{builder-THQ62YNF.js → builder-2DKMYCQ2.js} +10 -10
- package/dist/caller-62I4EDQG.js +22 -0
- package/dist/{check-WODTIKPR.js → check-QQORDMW6.js} +55 -55
- package/dist/{chunk-MDP3QN7U.js → chunk-22WUYT5N.js} +6 -6
- package/dist/{chunk-UQ2YFDGP.js → chunk-2KQCJ4ZX.js} +5 -5
- package/dist/{chunk-MSEDA6A2.js → chunk-344VHG5Q.js} +2 -2
- package/dist/{chunk-4UADHJ6P.js → chunk-3JCXQEMI.js} +10 -21
- package/dist/{chunk-GQ4GMFHO.js → chunk-3LWOXRC4.js} +8 -8
- package/dist/{chunk-D2SEASHI.js → chunk-3YHFHC4O.js} +4 -4
- package/dist/{chunk-NAQWMYQ2.js → chunk-43BQAGBO.js} +1 -1
- package/dist/{chunk-SFPDEBBO.js → chunk-4UUUUIDG.js} +5 -5
- package/dist/{chunk-ZSHBICCL.js → chunk-56GSMSEY.js} +9 -9
- package/dist/{chunk-HHD5P4TU.js → chunk-5BRB4L7T.js} +8 -8
- package/dist/{chunk-G3BUOMCF.js → chunk-5CWUKWYF.js} +1 -1
- package/dist/{chunk-7AVQ67PS.js → chunk-5EFNRORU.js} +1 -1
- package/dist/{chunk-QU4FBCRH.js → chunk-5T3RSWK4.js} +8 -8
- package/dist/{chunk-KG5BQFSO.js → chunk-7EMXDWOU.js} +1 -1
- package/dist/{chunk-66UG5SL4.js → chunk-A27QJ6WP.js} +3 -3
- package/dist/{chunk-DLHOKPNF.js → chunk-ABA75YR7.js} +1 -1
- package/dist/{chunk-OQZ2B5AN.js → chunk-B26FXORG.js} +1 -1
- package/dist/{chunk-V7ZAPEVS.js → chunk-BAVQLJQO.js} +1 -1
- package/dist/{chunk-U37FB7ER.js → chunk-BNNCWOZL.js} +2 -2
- package/dist/{chunk-S3GZ74UE.js → chunk-C2KAQ7HD.js} +4 -4
- package/dist/{chunk-32GBZ7HD.js → chunk-CKGF47B3.js} +3 -3
- package/dist/{chunk-3FZVQRTC.js → chunk-DDYBRCPN.js} +4 -4
- package/dist/{chunk-LTAMZ36E.js → chunk-DYWCQCVK.js} +1 -1
- package/dist/{chunk-6IDMWODX.js → chunk-E5CXH5JX.js} +4 -4
- package/dist/{chunk-Z4ASKZKN.js → chunk-EDSUB2EJ.js} +1 -1
- package/dist/{chunk-HOHY6ORJ.js → chunk-F677QPWA.js} +1 -1
- package/dist/{chunk-M7AIU22N.js → chunk-FINJC6BS.js} +1 -1
- package/dist/{chunk-VNXITMKE.js → chunk-FIXHPPBW.js} +1 -1
- package/dist/{chunk-VK4MMRYC.js → chunk-FWF3NUSQ.js} +1 -1
- package/dist/{chunk-P7W7SXX7.js → chunk-GABBBYMY.js} +5 -12
- package/dist/{chunk-2QXA7T6F.js → chunk-GKLUGOTT.js} +1 -1
- package/dist/{chunk-L6GYPZEV.js → chunk-GKZCKNFA.js} +3 -3
- package/dist/{chunk-REXQKAY7.js → chunk-GNJS2LJK.js} +1 -1
- package/dist/{chunk-ZPFBNCXW.js → chunk-GRAZZMKU.js} +8 -8
- package/dist/{chunk-LJNFUD3U.js → chunk-GUMNDY3O.js} +6 -6
- package/dist/{chunk-FB7HGLRK.js → chunk-GVJJOWMM.js} +3 -3
- package/dist/{chunk-JFPDRFAR.js → chunk-H6SIRL2K.js} +3 -3
- package/dist/{chunk-KTL7GFQ3.js → chunk-HFGG3HOB.js} +1 -1
- package/dist/{chunk-MZQAYZY4.js → chunk-HUL4RATO.js} +28 -60
- package/dist/{chunk-YPVJ46Y3.js → chunk-IBWQE36F.js} +2 -2
- package/dist/{chunk-UKQCIZ3R.js → chunk-ITVAB4OR.js} +1 -1
- package/dist/{chunk-I6GHP6U7.js → chunk-IW2UMW4Y.js} +1 -1
- package/dist/{chunk-FH4CX3CS.js → chunk-J7FM4QZ5.js} +3 -3
- package/dist/{chunk-2ICED253.js → chunk-JH7UBGIJ.js} +4 -4
- package/dist/{chunk-4K3VEJEE.js → chunk-KGK4C22H.js} +7 -7
- package/dist/{chunk-HKJCNBUB.js → chunk-KKX2VW4B.js} +1 -1
- package/dist/{chunk-TOP4K2T6.js → chunk-KWXWZ7JQ.js} +9 -4
- package/dist/{chunk-NJMJHUJL.js → chunk-L6B2SMPU.js} +15 -15
- package/dist/{chunk-BF7P3J2H.js → chunk-LBMQKDUC.js} +3 -3
- package/dist/{chunk-PLB2IBJV.js → chunk-LYVS6JEX.js} +1 -1
- package/dist/{chunk-L6OJH3E5.js → chunk-M25TPKKB.js} +6 -6
- package/dist/{chunk-UJD3DINB.js → chunk-MFN4Z2N3.js} +6 -6
- package/dist/{chunk-STNWA5ZZ.js → chunk-MLLPG72T.js} +2 -2
- package/dist/{chunk-IEFSDAVW.js → chunk-MWSJVJHL.js} +1 -1
- package/dist/{chunk-OATJFN2P.js → chunk-NPJAFEK4.js} +7 -7
- package/dist/{chunk-DUGZCKCF.js → chunk-OUDR4BEV.js} +17 -17
- package/dist/{chunk-V6V3NN5G.js → chunk-QAO6P5NP.js} +1 -1
- package/dist/{chunk-5QMSZFA2.js → chunk-S2ZFRY23.js} +4 -4
- package/dist/{chunk-XCXBR74S.js → chunk-SDH744XP.js} +47 -154
- package/dist/{chunk-IBFBBUBJ.js → chunk-SDOEB5QE.js} +3 -3
- package/dist/{chunk-44B523ZQ.js → chunk-THMQU4CA.js} +5 -5
- package/dist/{chunk-HYDNEYVD.js → chunk-TYXVPSPB.js} +5 -5
- package/dist/{chunk-77MUGWQT.js → chunk-UQMI3XZI.js} +1 -1
- package/dist/{chunk-TI32Q3VB.js → chunk-V5KFO6SC.js} +1 -1
- package/dist/{chunk-X4QHDRXT.js → chunk-VRJ2FXSJ.js} +1 -1
- package/dist/{chunk-MFLIYXNY.js → chunk-W5B54UAB.js} +1 -1
- package/dist/{chunk-IJC4JL6B.js → chunk-WANAUPPY.js} +5 -5
- package/dist/{chunk-ZFDUXKTM.js → chunk-XBEVX744.js} +4 -4
- package/dist/{chunk-PJ3KUE3L.js → chunk-XRSEFPY7.js} +4 -4
- package/dist/{chunk-H5QZSOBB.js → chunk-Y3DTF2J5.js} +1 -1
- package/dist/{chunk-KIY2AUHY.js → chunk-YIMI43YP.js} +1 -1
- package/dist/{chunk-FCMEWS3G.js → chunk-YMSKRXMG.js} +5 -5
- package/dist/{chunk-ZM2SKQJD.js → chunk-Z35X73J2.js} +2 -2
- package/dist/{chunk-3PDRASIP.js → chunk-ZPUXJ7GV.js} +9 -9
- package/dist/{claude-launcher-Z6WBFSRK.js → claude-launcher-S45KAQGQ.js} +9 -9
- package/dist/{cli-KBXHOMUN.js → cli-SMBLKJA4.js} +147 -159
- package/dist/{command-FPLHTT7R.js → command-V5IM36IU.js} +50 -50
- package/dist/config-VSZZEUXH.js +21 -0
- package/dist/{connect-cmd-ZG7BPIXQ.js → connect-cmd-DQE5L2LD.js} +11 -11
- package/dist/{container-start-3NWIL4A3.js → container-start-DTXIK2AP.js} +48 -48
- package/dist/{context-cleanup-ZKAL6X5I.js → context-cleanup-N7NAZQOA.js} +5 -5
- package/dist/{context-show-cmd-AM46ZKCT.js → context-show-cmd-RCLG72YM.js} +12 -12
- package/dist/{control-plane-launch-HW2Y53YI.js → control-plane-launch-ZFSKDTUQ.js} +15 -15
- package/dist/{demo-record-cmd-T4227FWF.js → demo-record-cmd-BTXIKP35.js} +8 -8
- package/dist/{demo-voice-cmd-YSESUTE5.js → demo-voice-cmd-ELJYTI3R.js} +20 -20
- package/dist/{dist-64LM4JF4.js → dist-AIMCXBLZ.js} +1 -1
- package/dist/{docker-JC6S6KH3.js → docker-TFAUOK56.js} +10 -10
- package/dist/{doctor-U3MU6GP5.js → doctor-3NCMD4WE.js} +51 -77
- package/dist/{emit-artifact-cmd-J643XZ46.js → emit-artifact-cmd-XH4BYFDF.js} +19 -19
- package/dist/{emit-cmd-PTOSSDQK.js → emit-cmd-BXGAW6U5.js} +8 -8
- package/dist/{emit-criteria-cmd-BARZ3MBZ.js → emit-criteria-cmd-ULLSSOJX.js} +14 -14
- package/dist/{emit-demo-cmd-OAC6RTSK.js → emit-demo-cmd-AUHTLXDO.js} +20 -20
- package/dist/{emit-finding-cmd-BUTFI2GD.js → emit-finding-cmd-PBCVV25I.js} +14 -14
- package/dist/{emit-result-cmd-4E4KX3QZ.js → emit-result-cmd-VEOIKPSY.js} +18 -18
- package/dist/{emit-step-cmd-7CAJHMEQ.js → emit-step-cmd-QEKPM4NG.js} +14 -14
- package/dist/{exec-client-G6B7G3IN.js → exec-client-MKD7HYWY.js} +8 -8
- package/dist/find-unit-TQZWEQEM.js +23 -0
- package/dist/{findings-cmd-N66FJR3J.js → findings-cmd-VIMAQEDQ.js} +14 -14
- package/dist/{fleet-readiness-KFTMEUAI.js → fleet-readiness-AJJSZUSF.js} +14 -14
- package/dist/{governing-source-TO6RRWYS.js → governing-source-PHENIFHB.js} +20 -20
- package/dist/{guest-init-J3TELWJG.js → guest-init-JVYQITF4.js} +9 -9
- package/dist/{hook-fast-Y4LO3YE7.js → hook-fast-XA4VOM65.js} +4 -4
- package/dist/{hook-install-DOEXRPO5.js → hook-install-X7CLPCXE.js} +5 -5
- package/dist/{hook-wrap-fast-L5PCBVNI.js → hook-wrap-fast-DHAKXDLA.js} +3 -3
- package/dist/host-checks-6TNHLTDH.js +78 -0
- package/dist/{host-key-EOTN4362.js → host-key-C4X3NG6S.js} +8 -8
- package/dist/{image-tag-VHP22FMX.js → image-tag-RRCWKD3C.js} +8 -8
- package/dist/index.js +6 -6
- package/dist/init-6ZK7BHCV.js +78 -0
- package/dist/{init-B575TM3R.js → init-PVAH4Q5X.js} +46 -47
- package/dist/{init-cmd-5Q2ICZBK.js → init-cmd-N6NZ4ODA.js} +28 -28
- package/dist/{init-update-AJF4YJ6I.js → init-update-BJBC7IJZ.js} +23 -23
- package/dist/{install-cmd-GO3D5F6X.js → install-cmd-65X2KS64.js} +10 -10
- package/dist/{layout-KSD373US.js → layout-ZAPTYCYJ.js} +5 -5
- package/dist/{logs-QV3LNNUJ.js → logs-L4HMHZT6.js} +7 -7
- package/dist/loop-V4UQ5NNI.js +89 -0
- package/dist/machine-VLNJK2DW.js +78 -0
- package/dist/{machine-skills-IMGN27M7.js → machine-skills-U3S3BBRK.js} +5 -5
- package/dist/{mcp-install-cmd-25PA5RAI.js → mcp-install-cmd-X7VITHEI.js} +5 -5
- package/dist/{mcp-serve-cmd-7USDWMS4.js → mcp-serve-cmd-4GBD2OZC.js} +9 -9
- package/dist/{paths-L3SEA2QQ.js → paths-UDFO5EFD.js} +7 -7
- package/dist/pending-LNM7KSZM.js +17 -0
- package/dist/{pidfile-ROXIFSGN.js → pidfile-WYSNC64S.js} +8 -8
- package/dist/{record-7OMLXGTG.js → record-VG2ABYEC.js} +8 -8
- package/dist/{relay-663SG53Q.js → relay-2BMPGHLH.js} +5 -5
- package/dist/{relay-protocol-4V3F6HSZ.js → relay-protocol-WGS2EQ6I.js} +5 -5
- package/dist/runner-env-PYVXH7U5.js +23 -0
- package/dist/{runner-identity-QBFVMEXN.js → runner-identity-NWIUB2A2.js} +10 -10
- package/dist/{runner-key-SUZKSV54.js → runner-key-3ICZFYUM.js} +46 -46
- package/dist/{session-sender-RI5VITPP.js → session-sender-RDE25PUH.js} +19 -19
- package/dist/{shell-function-D2T55XFG.js → shell-function-ISCWP65F.js} +2 -2
- package/dist/{spec-cmd-IPFZNBCZ.js → spec-cmd-DTET4YTT.js} +15 -15
- package/dist/{starter-pack-OLH6O4YX.js → starter-pack-YFMSDTPX.js} +6 -6
- package/dist/state-E4G3GCQ7.js +17 -0
- package/dist/{status-KSO5RNWL.js → status-6ZHICKFP.js} +46 -46
- package/dist/{statusline-fast-36U3TOCL.js → statusline-fast-SHKBTYUX.js} +3 -3
- package/dist/{sync-cmd-DML4SI6Y.js → sync-cmd-OBJBXQWX.js} +18 -18
- package/dist/update-steps-CD4MEF6H.js +79 -0
- package/dist/{watch-X3AKYTTF.js → watch-WU3ITNFP.js} +18 -18
- package/dist/{work-claim-cmd-SIHUKNW4.js → work-claim-cmd-RZBD2TF5.js} +20 -20
- package/dist/{work-cmd-Z2JX53KE.js → work-cmd-IEG6HIZD.js} +14 -14
- package/dist/{work-comment-cmd-D2OQTFBW.js → work-comment-cmd-G2USKDQG.js} +17 -17
- package/dist/{work-demo-cmd-Z2PRJSY3.js → work-demo-cmd-EJ2EGBFB.js} +14 -14
- package/dist/{work-logs-cmd-4UICP6PY.js → work-logs-cmd-C2GMH5OD.js} +14 -14
- package/dist/{work-open-pr-cmd-BZOYVVM6.js → work-open-pr-cmd-OHF6JTW2.js} +15 -15
- package/dist/{work-pr-cmd-6PQLQD66.js → work-pr-cmd-VNTWQBMV.js} +14 -14
- package/dist/{work-proofs-cmd-SWESTSKA.js → work-proofs-cmd-YOJ3CSW2.js} +16 -16
- package/dist/{work-proofs-record-55B24QNH.js → work-proofs-record-FR44SMQS.js} +24 -24
- package/dist/{work-stop-cmd-6JXCQ277.js → work-stop-cmd-M44MBUK7.js} +14 -14
- package/package.json +1 -1
- package/dist/agent-setup-OYOTPYAR.js +0 -39
- package/dist/caller-6EKJ6C43.js +0 -22
- package/dist/config-RKV7FRY5.js +0 -21
- package/dist/find-unit-MX6XITYC.js +0 -23
- package/dist/host-checks-AGWZAK4R.js +0 -78
- package/dist/init-LADDJ3MR.js +0 -78
- package/dist/loop-5CEZVTIU.js +0 -89
- package/dist/machine-CSH5K23R.js +0 -78
- package/dist/pending-3EMMPNC7.js +0 -17
- package/dist/runner-env-YMBCAQXO.js +0 -23
- package/dist/state-ZWCWEDKQ.js +0 -17
- package/dist/update-steps-OVKM7RAH.js +0 -79
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, criterionInputs, uncitedIds, planCriteria, parseJudgeAnswer, inCriteriaOrder, oneLineReason, judgedItems, IdScan, firstInPathOrder, isSearchCandidate } from './chunk-
|
|
3
|
+
import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, MAX_TEST_FILE_BYTES, MAX_TEST_FILES, criterionInputs, uncitedIds, planCriteria, parseJudgeAnswer, inCriteriaOrder, oneLineReason, judgedItems, IdScan, firstInPathOrder, isSearchCandidate } from './chunk-VRJ2FXSJ.js';
|
|
4
4
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
5
5
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
6
|
-
import { hasStoredCredential, AGENT_COMMANDS, storeAgentCredential, credentialFromStdin, isAgentName } from './chunk-
|
|
7
|
-
import { upgradedStarterText } from './chunk-
|
|
8
|
-
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-
|
|
9
|
-
import { senderPidfile } from './chunk-
|
|
10
|
-
import { installScrubContext } from './chunk-
|
|
6
|
+
import { hasStoredCredential, AGENT_COMMANDS, storeAgentCredential, credentialFromStdin, isAgentName } from './chunk-C2KAQ7HD.js';
|
|
7
|
+
import { upgradedStarterText } from './chunk-2KQCJ4ZX.js';
|
|
8
|
+
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-SDOEB5QE.js';
|
|
9
|
+
import { senderPidfile } from './chunk-XRSEFPY7.js';
|
|
10
|
+
import { installScrubContext } from './chunk-56GSMSEY.js';
|
|
11
11
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
12
|
-
import { runnerImageVersion } from './chunk-
|
|
13
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-
|
|
12
|
+
import { runnerImageVersion } from './chunk-UQMI3XZI.js';
|
|
13
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-MLLPG72T.js';
|
|
14
14
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
15
|
-
import { readDefaultBranchFiles, readDefaultBranchHead,
|
|
16
|
-
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-
|
|
15
|
+
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-3JCXQEMI.js';
|
|
16
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-LBMQKDUC.js';
|
|
17
17
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
18
18
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
19
|
-
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-
|
|
20
|
-
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-
|
|
21
|
-
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-
|
|
22
|
-
import { writeDockerClientConfig } from './chunk-
|
|
23
|
-
import { runnerCredentialProblem, builtinKind, keyRunnerFactory, optionalEgress, isBuiltinContainer,
|
|
24
|
-
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-
|
|
25
|
-
import { writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, containerExecArgs, childEnvironment, readDu, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, parseSize, runnerLabelValue, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, prepareRunArgs, containerRunArgs, JUDGE_MAX_TURNS, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_DIR, HASH_ARGV, parseProgramHash, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, JUDGE_PROGRAM, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-
|
|
26
|
-
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-
|
|
27
|
-
import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-
|
|
19
|
+
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-BAVQLJQO.js';
|
|
20
|
+
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-XBEVX744.js';
|
|
21
|
+
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-3LWOXRC4.js';
|
|
22
|
+
import { writeDockerClientConfig } from './chunk-F677QPWA.js';
|
|
23
|
+
import { runnerCredentialProblem, builtinKind, keyRunnerFactory, optionalEgress, isBuiltinContainer, isBuiltinVm, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-L6B2SMPU.js';
|
|
24
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-IBWQE36F.js';
|
|
25
|
+
import { writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, containerExecArgs, childEnvironment, readDu, withAnswerProtocol, judgeCommand, MAX_REPORT_BYTES, parseSize, runnerLabelValue, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, prepareRunArgs, containerRunArgs, JUDGE_MAX_TURNS, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_DIR, HASH_ARGV, parseProgramHash, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, JUDGE_PROGRAM, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-GRAZZMKU.js';
|
|
26
|
+
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-ITVAB4OR.js';
|
|
27
|
+
import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-5T3RSWK4.js';
|
|
28
28
|
import { sanitizeTerminal, planArtifactUpload } from './chunk-F3T5QJ24.js';
|
|
29
29
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
30
|
-
import { signerFor } from './chunk-
|
|
31
|
-
import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir,
|
|
32
|
-
import { CHECKOUT_DIR, JOB_MOUNT, buildEnvironment, parseIsolation,
|
|
33
|
-
import { sharedSkillNames, skillConflictMessage } from './chunk-
|
|
34
|
-
import { versionAtLeast, MINIMUM_CLAUDE_VERSION } from './chunk-
|
|
35
|
-
import { firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, credentialAgent, agentCredential,
|
|
36
|
-
import { defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, resolvePackRoot, legacyAgent, orderSessions, extractFacts, sessionsToTimeline } from './chunk-
|
|
30
|
+
import { signerFor } from './chunk-IW2UMW4Y.js';
|
|
31
|
+
import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, sessionsDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, workspacesDir, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-GKLUGOTT.js';
|
|
32
|
+
import { CHECKOUT_DIR, JOB_MOUNT, buildEnvironment, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, repositoriesOf, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, proxyEnvironment, checkEnvironment, withMiseVariables, checkoutPath, EVAL_INPUT_DIR, isMiseVariableAllowed, BUILD_HOME, primaryOf } from './chunk-GABBBYMY.js';
|
|
33
|
+
import { sharedSkillNames, skillConflictMessage } from './chunk-CKGF47B3.js';
|
|
34
|
+
import { versionAtLeast, MINIMUM_CLAUDE_VERSION } from './chunk-MWSJVJHL.js';
|
|
35
|
+
import { firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, credentialAgent, agentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, GUEST_HELPER_SHA256, GUEST_ASSETS_BASE_URL, GUEST_KERNEL_SHA256, JAILER_BINARY_SHA256, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, GUEST_ASSETS_VERSION, BUILDER_DISK_VERSION, credentialHandOffKey, strippedVariables, runnerAgents, currentAgentCredential, removedAgentCredentialValues, managedAgentCredential, RELAY_USER, realFdStorePort, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, builtInNames, UNIVERSAL_IMAGE, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, GH_VERSION, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, VOICE_PACK_FILES, BUILDER_DISK_SHA256, BUILDER_DISK_BASE_URL, DEFAULT_BASE_IMAGE, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, agentVersionOf, AGENT_CREDENTIAL_MISSING, buildAgent, fdName, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-S2ZFRY23.js';
|
|
36
|
+
import { defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, resolvePackRoot, legacyAgent, orderSessions, extractFacts, sessionsToTimeline } from './chunk-KWXWZ7JQ.js';
|
|
37
37
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
38
38
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
39
39
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
40
|
-
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-
|
|
40
|
+
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-FINJC6BS.js';
|
|
41
41
|
import { CheckItemsSchema, downconvertSession } from './chunk-WUKLQWGY.js';
|
|
42
42
|
import { randomUUID, randomBytes, createHash } from 'crypto';
|
|
43
|
-
import { rmSync, mkdirSync, existsSync, readFileSync, mkdtempSync, statSync, appendFileSync, writeFileSync, readdirSync, accessSync, constants, openSync, closeSync,
|
|
43
|
+
import { rmSync, mkdirSync, existsSync, readFileSync, mkdtempSync, statSync, appendFileSync, writeFileSync, readdirSync, accessSync, constants, openSync, closeSync, renameSync, rmdirSync, createReadStream, lstatSync, unlinkSync, chmodSync, realpathSync, writeSync, truncateSync, cpSync, fstatSync, readSync, createWriteStream, copyFileSync, linkSync } from 'fs';
|
|
44
44
|
import { join, dirname, isAbsolute, delimiter, sep, basename, relative, resolve } from 'path';
|
|
45
45
|
import { Readable, Transform, Duplex, PassThrough } from 'stream';
|
|
46
46
|
import { spawn, spawnSync } from 'child_process';
|
|
@@ -1707,18 +1707,10 @@ var RunnerInitError = class extends Error {
|
|
|
1707
1707
|
var UNMARKED_PLACEHOLDER_COMMAND = "echo 'edit runner.commands in this config file: it must start your agent on item $OUTERLAYER_WORK' >&2; exit 1";
|
|
1708
1708
|
var PLACEHOLDER_MARKER = "outerlayer-placeholder";
|
|
1709
1709
|
var PLACEHOLDER_COMMAND = `${UNMARKED_PLACEHOLDER_COMMAND} # ${PLACEHOLDER_MARKER}`;
|
|
1710
|
-
function
|
|
1711
|
-
const has = describeMachineDocker(machine);
|
|
1710
|
+
function isolationRefusal(machine) {
|
|
1712
1711
|
const reach = reachDockerStep(machine);
|
|
1713
|
-
const needs = reach !== void 0 ? `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later: ${reach}, then
|
|
1714
|
-
return `This machine has ${
|
|
1715
|
-
}
|
|
1716
|
-
function processRefusal(machine, agents) {
|
|
1717
|
-
const agent = credentialAgent(agents);
|
|
1718
|
-
const credential = agent === void 0 ? "credential" : `${credentialForms(agent.descriptor).label} credential`;
|
|
1719
|
-
const reach = reachDockerStep(machine);
|
|
1720
|
-
const needs = machine.platform === "darwin" ? "Isolated builds on a Mac run in the runner image on Docker Desktop (https://docs.outerlayer.ai/run-the-runner-in-a-container) or in a Linux VM: run this again with --vm." : reach !== void 0 ? `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later: ${reach}, then run this again.` : machine.platform === "windows" ? `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later inside WSL2: install it there, then run this again from a WSL2 shell.` : `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later on Linux or WSL2: install it, then run this again.`;
|
|
1721
|
-
return `This machine has ${describeMachineDocker(machine)}, so it cannot isolate a build. ${needs} To run builds as processes under this user instead, where a build can read this user's files and the runner's ${credential}, run this again with --allow-process-builds.`;
|
|
1712
|
+
const needs = machine.platform === "darwin" ? "Isolated builds on a Mac run in the runner image on Docker Desktop (https://docs.outerlayer.ai/run-the-runner-in-a-container) or in a Linux VM: run this again with --vm." : reach !== void 0 ? `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later: ${reach}, then run this again.` : machine.platform === "windows" ? `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later inside WSL2: install it there, then run this again from a WSL2 shell. Or run the runner image on Docker Desktop (https://docs.outerlayer.ai/run-the-runner-in-a-container).` : `Isolated builds need Docker Engine ${MIN_ENGINE_MAJOR} or later on Linux or WSL2: install it, then run this again.`;
|
|
1713
|
+
return `This machine has ${describeMachineDocker(machine)}, so it cannot isolate a build. ${needs}`;
|
|
1722
1714
|
}
|
|
1723
1715
|
function isPlaceholderCommand(command) {
|
|
1724
1716
|
return command === UNMARKED_PLACEHOLDER_COMMAND || command.includes(PLACEHOLDER_MARKER);
|
|
@@ -1798,8 +1790,8 @@ function prepareRunnerInit(configPath, opts = {}) {
|
|
|
1798
1790
|
const fix = reachDockerStep(machine) ?? `install Docker Engine ${MIN_ENGINE_MAJOR} or later in the VM`;
|
|
1799
1791
|
throw new RunnerInitError(`the VM has ${describeMachineDocker(machine)}, but the runner in it needs container builds: ${fix}, then run this again.`);
|
|
1800
1792
|
}
|
|
1801
|
-
const hooks = opts.requireContainer !== true && supportsMicroVmBuilds(machine) ? "builtin:vm" : supportsContainerBuilds(machine) ? "builtin:container" :
|
|
1802
|
-
if (hooks ===
|
|
1793
|
+
const hooks = opts.requireContainer !== true && supportsMicroVmBuilds(machine) ? "builtin:vm" : supportsContainerBuilds(machine) ? "builtin:container" : void 0;
|
|
1794
|
+
if (hooks === void 0) throw new RunnerInitError(isolationRefusal(machine));
|
|
1803
1795
|
const named = agent === void 0 ? void 0 : runnerAgentNamed(agent, agents);
|
|
1804
1796
|
if (named !== void 0 && credential === void 0 && opts.credentialInEnvironment !== true && !hasStoredCredential(configPath, agents)) {
|
|
1805
1797
|
const forms = credentialForms(named.descriptor);
|
|
@@ -1810,7 +1802,7 @@ function prepareRunnerInit(configPath, opts = {}) {
|
|
|
1810
1802
|
return { configPath, config, carried, credential, agent, agents, machine, hooks, needsKey, host: opts.host };
|
|
1811
1803
|
}
|
|
1812
1804
|
function writeRunnerInit(prepared, runnerKey) {
|
|
1813
|
-
const { configPath, config, carried, credential, agent, agents,
|
|
1805
|
+
const { configPath, config, carried, credential, agent, agents, hooks, host } = prepared;
|
|
1814
1806
|
if (prepared.needsKey && runnerKey === void 0) {
|
|
1815
1807
|
throw new RunnerInitError(`${configPath}: apiKey is missing, and no runner key was pasted.`);
|
|
1816
1808
|
}
|
|
@@ -1840,7 +1832,7 @@ function writeRunnerInit(prepared, runnerKey) {
|
|
|
1840
1832
|
const stored = credential === void 0 ? void 0 : { variable: credential.variable, path: storeAgentCredential(configPath, credential, agents) };
|
|
1841
1833
|
writeFileSync(configPath, `${JSON.stringify(config, null, 2)}
|
|
1842
1834
|
`, { mode: RUNNER_FILE_MODE });
|
|
1843
|
-
return { configPath, hooks,
|
|
1835
|
+
return { configPath, hooks, credential: stored };
|
|
1844
1836
|
}
|
|
1845
1837
|
|
|
1846
1838
|
// src/runner/host-setup.ts
|
|
@@ -5442,10 +5434,9 @@ ${body}`);
|
|
|
5442
5434
|
})
|
|
5443
5435
|
};
|
|
5444
5436
|
}
|
|
5445
|
-
|
|
5446
|
-
|
|
5437
|
+
|
|
5438
|
+
// src/runner/maven-proxy.ts
|
|
5447
5439
|
var MAVEN_NO_PROXY_NOTE = "MAVEN_ARGS names its own global settings file, so the build's Maven gets no proxy from the runner";
|
|
5448
|
-
var MAVEN_SPACE_NOTE = "the build's directory has whitespace in its path, which Maven cannot read from MAVEN_ARGS, so its Maven gets no proxy from the runner";
|
|
5449
5440
|
function namesGlobalSettings(args) {
|
|
5450
5441
|
return args.split(/\s+/).some((token) => token === "--global-settings" || token.startsWith("--global-settings=") || token === "-gs" || token.startsWith("-gs="));
|
|
5451
5442
|
}
|
|
@@ -5477,13 +5468,6 @@ function mavenSettingsXml(proxyUrl, noProxy) {
|
|
|
5477
5468
|
""
|
|
5478
5469
|
].join("\n");
|
|
5479
5470
|
}
|
|
5480
|
-
function writeMavenSettings(buildDir2, proxyUrl, noProxy) {
|
|
5481
|
-
const dir = join(buildDir2, MAVEN_DIR);
|
|
5482
|
-
mkdirSync(dir, { recursive: true });
|
|
5483
|
-
const file = join(dir, MAVEN_SETTINGS_FILE);
|
|
5484
|
-
writeFileSync(file, mavenSettingsXml(proxyUrl, noProxy));
|
|
5485
|
-
return file;
|
|
5486
|
-
}
|
|
5487
5471
|
function mavenArgs(settingsFile, team) {
|
|
5488
5472
|
const own = team?.trim() ?? "";
|
|
5489
5473
|
if (own !== "" && namesGlobalSettings(own)) return { value: team, skipped: true };
|
|
@@ -5594,19 +5578,6 @@ function withMavenArgs(env, settingsFile, note) {
|
|
|
5594
5578
|
}
|
|
5595
5579
|
if (settingsFile !== void 0) env.MAVEN_ARGS = mavenArgs(settingsFile, team).value;
|
|
5596
5580
|
}
|
|
5597
|
-
function hostMavenSettings(env, buildDir2, note) {
|
|
5598
|
-
if (/\s/.test(buildDir2)) {
|
|
5599
|
-
note?.(MAVEN_SPACE_NOTE);
|
|
5600
|
-
return void 0;
|
|
5601
|
-
}
|
|
5602
|
-
if (!existsSync(buildDir2)) return void 0;
|
|
5603
|
-
try {
|
|
5604
|
-
return writeMavenSettings(buildDir2, env.HTTPS_PROXY, env.NO_PROXY);
|
|
5605
|
-
} catch (err) {
|
|
5606
|
-
note?.(`the build's Maven settings could not be written, so its Maven gets no proxy from the runner: ${describeCallFailure(err)}`);
|
|
5607
|
-
return void 0;
|
|
5608
|
-
}
|
|
5609
|
-
}
|
|
5610
5581
|
function execProxyEnvironment(build) {
|
|
5611
5582
|
const brokerHost = build.broker === void 0 ? void 0 : build.broker.slice(0, build.broker.lastIndexOf(":")).replace(/^\[|\]$/g, "");
|
|
5612
5583
|
return proxyEnvironment(proxyUrlFor(build), brokerHost);
|
|
@@ -5677,15 +5648,11 @@ function onceNote(write) {
|
|
|
5677
5648
|
function attemptNote(log, tag) {
|
|
5678
5649
|
return onceNote((line2) => log.line(`${tag} ${line2}`));
|
|
5679
5650
|
}
|
|
5680
|
-
function hostCommandEnvironment(base, build, config, hooksPath, note
|
|
5651
|
+
function hostCommandEnvironment(base, build, config, hooksPath, note) {
|
|
5681
5652
|
let env = { ...base };
|
|
5682
5653
|
if (build.exec !== void 0) {
|
|
5683
5654
|
Object.assign(env, execProxyEnvironment(build));
|
|
5684
5655
|
withMavenArgs(env, build.mavenSettings, note);
|
|
5685
|
-
} else if (build.proxyPort !== void 0) {
|
|
5686
|
-
Object.assign(env, proxyEnvironment(`http://127.0.0.1:${build.proxyPort}`));
|
|
5687
|
-
env.NODE_OPTIONS = withProxyWarningHidden(env.NODE_OPTIONS);
|
|
5688
|
-
withMavenArgs(env, hostMavenSettings(env, build.buildDir, note), note);
|
|
5689
5656
|
}
|
|
5690
5657
|
const ports = build.destinations ?? [];
|
|
5691
5658
|
const portOf = (name) => ports.find((entry) => entry.name === name)?.port;
|
|
@@ -5694,18 +5661,12 @@ function hostCommandEnvironment(base, build, config, hooksPath, note, agents = d
|
|
|
5694
5661
|
const address = build.exec !== void 0 ? containerLocalAddress(index) : port === void 0 ? void 0 : `http://127.0.0.1:${port}/`;
|
|
5695
5662
|
if (address !== void 0) Object.assign(env, destinationEnvironment([destination], () => address));
|
|
5696
5663
|
});
|
|
5697
|
-
if (build.builtIns === true) {
|
|
5698
|
-
const credential = agentCredential(base, {}, agents);
|
|
5699
|
-
for (const name of strippedVariables(agents)) delete env[name];
|
|
5700
|
-
Object.assign(env, builtInEnvironment((name) => `http://127.0.0.1:${portOf(name) ?? 0}`, credential, agents));
|
|
5701
|
-
}
|
|
5702
5664
|
if (build.exec === void 0 && hooksPath !== void 0) env = withHooksPath(env, hooksPath);
|
|
5703
5665
|
return env;
|
|
5704
5666
|
}
|
|
5705
5667
|
async function startHostServices(input) {
|
|
5706
5668
|
const { runtime, config, build } = input;
|
|
5707
5669
|
const destinations = config.build?.destinations ?? [];
|
|
5708
|
-
const builtIns = builtInNames(runtime.agents);
|
|
5709
5670
|
const services = await startBuildServices({
|
|
5710
5671
|
startTunnel: runtime.startTunnel,
|
|
5711
5672
|
tunnelOptions: runtime.tunnelOptions,
|
|
@@ -5714,24 +5675,13 @@ async function startHostServices(input) {
|
|
|
5714
5675
|
destinations,
|
|
5715
5676
|
allowHosts: config.build?.allowHosts,
|
|
5716
5677
|
...optionalEgress(config),
|
|
5717
|
-
serve:
|
|
5718
|
-
|
|
5719
|
-
...input.process ? { builtIns: { gatewayUrl: config.url, itemKey: input.itemKey, upstreams: runtime.upstreams, agents: runtime.agents } } : {},
|
|
5720
|
-
ports: {
|
|
5721
|
-
proxy: build.proxyPort,
|
|
5722
|
-
destinations: build.destinations?.filter((d) => !builtIns.includes(d.name)).map((d) => d.port),
|
|
5723
|
-
builtIns: Object.fromEntries((build.destinations ?? []).filter((d) => builtIns.includes(d.name)).map((d) => [d.name, d.port]))
|
|
5724
|
-
},
|
|
5678
|
+
serve: "both",
|
|
5679
|
+
ports: { destinations: build.destinations?.map((d) => d.port) },
|
|
5725
5680
|
hostEnv: runtime.hostEnv,
|
|
5726
5681
|
destinationOptions: runtime.destinationOptions,
|
|
5727
5682
|
...input.routeLog === void 0 ? {} : { log: input.routeLog }
|
|
5728
5683
|
});
|
|
5729
|
-
build.
|
|
5730
|
-
build.destinations = [
|
|
5731
|
-
...destinations.map((destination, index) => ({ name: destination.name, port: services.destinationPorts[index] })),
|
|
5732
|
-
...Object.entries(services.builtInPorts).map(([name, port]) => ({ name, port }))
|
|
5733
|
-
];
|
|
5734
|
-
if (input.process) build.builtIns = true;
|
|
5684
|
+
build.destinations = destinations.map((destination, index) => ({ name: destination.name, port: services.destinationPorts[index] }));
|
|
5735
5685
|
runtime.tunnels.set(build.buildId, services);
|
|
5736
5686
|
if (build.broker !== void 0) await listenOnBroker(services, build.broker);
|
|
5737
5687
|
return services;
|
|
@@ -5748,7 +5698,6 @@ async function closeHostBuild(runtime, build) {
|
|
|
5748
5698
|
await tunnel.close();
|
|
5749
5699
|
}
|
|
5750
5700
|
rmSync(build.buildDir, { recursive: true, force: true });
|
|
5751
|
-
if (build.workDir !== void 0) rmSync(build.workDir, { recursive: true, force: true });
|
|
5752
5701
|
}
|
|
5753
5702
|
|
|
5754
5703
|
// src/runner/sender.ts
|
|
@@ -6031,47 +5980,6 @@ function buildReleaseLog(jobDirPath, endStage, scrub) {
|
|
|
6031
5980
|
if (parts.length === 0) return void 0;
|
|
6032
5981
|
return capRunnerLog(scrub(parts.join("\n")) + "\n");
|
|
6033
5982
|
}
|
|
6034
|
-
var ENDED = "ended before provision finished";
|
|
6035
|
-
async function provisionProcess(input) {
|
|
6036
|
-
const { config, runtime, item, repository, jobDir } = input;
|
|
6037
|
-
if (buildAgent(runtime.agents)?.adapter.credentials !== void 0 && agentCredential(runtime.hostEnv, {}, runtime.agents) === void 0) return { ok: false, reason: AGENT_CREDENTIAL_MISSING };
|
|
6038
|
-
if (repository === void 0 || repository === null || repository === "") {
|
|
6039
|
-
return { ok: false, reason: "the work item names no repository to clone" };
|
|
6040
|
-
}
|
|
6041
|
-
const buildId = randomBytes(6).toString("hex");
|
|
6042
|
-
const buildDir2 = buildDir(config.configPath, buildId);
|
|
6043
|
-
const workDir = join(jobDir, "work");
|
|
6044
|
-
const state = { buildId, buildDir: buildDir2, workDir };
|
|
6045
|
-
const environment = sharedUserEnvironment(input.cliVersion);
|
|
6046
|
-
input.save(state, environment);
|
|
6047
|
-
const bail = async (reason) => {
|
|
6048
|
-
try {
|
|
6049
|
-
await cleanupProcess(runtime, state);
|
|
6050
|
-
} catch (err) {
|
|
6051
|
-
input.log.error(`#${item.number} cleanup failed: ${describeCallFailure(err)}`);
|
|
6052
|
-
}
|
|
6053
|
-
return { ok: false, reason };
|
|
6054
|
-
};
|
|
6055
|
-
if (input.aborted()) return bail(ENDED);
|
|
6056
|
-
mkdirSync(buildDir2, { recursive: true });
|
|
6057
|
-
chmodSync(buildDir2, 493);
|
|
6058
|
-
try {
|
|
6059
|
-
await startHostServices({ runtime, config, build: state, jobDir, itemKey: input.itemKey, process: true, routeLog: (line2) => input.log.line(`#${item.number} ${line2}`) });
|
|
6060
|
-
} catch (err) {
|
|
6061
|
-
return bail(`the tunnel could not start: ${describeCallFailure(err)}`);
|
|
6062
|
-
}
|
|
6063
|
-
input.save(state, environment);
|
|
6064
|
-
if (input.aborted()) return bail(ENDED);
|
|
6065
|
-
const checkout = join(workDir, "checkout");
|
|
6066
|
-
const remote = runtime.remoteFor?.(repository) ?? `https://github.com/${repository}.git`;
|
|
6067
|
-
const cloned = await runtime.clone({ remote, dest: checkout });
|
|
6068
|
-
if (!cloned.ok) return bail(cloned.reason);
|
|
6069
|
-
if (input.aborted()) return bail(ENDED);
|
|
6070
|
-
return { ok: true, workdir: checkout, state, environment };
|
|
6071
|
-
}
|
|
6072
|
-
function cleanupProcess(runtime, state) {
|
|
6073
|
-
return closeHostBuild(runtime, state);
|
|
6074
|
-
}
|
|
6075
5983
|
var SAVED_FOLDERS = ["home", "work"];
|
|
6076
5984
|
function stopProcessesScript() {
|
|
6077
5985
|
return [
|
|
@@ -7618,7 +7526,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
|
|
|
7618
7526
|
}
|
|
7619
7527
|
log.line(`${tag} cleanup started`);
|
|
7620
7528
|
const cleanupStartedMs = now().getTime();
|
|
7621
|
-
const hostMade = job.build !== void 0
|
|
7529
|
+
const hostMade = job.build !== void 0;
|
|
7622
7530
|
if (vmBuild !== void 0) {
|
|
7623
7531
|
let cleanedUp = true;
|
|
7624
7532
|
tunnelRecord = vmBuild.runtime.tunnels.get(vmBuild.state.buildId)?.record();
|
|
@@ -7653,21 +7561,8 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
|
|
|
7653
7561
|
}
|
|
7654
7562
|
}
|
|
7655
7563
|
if (cleanedUp) log.line(`${tag} cleanup ok (${formatDuration(now().getTime() - cleanupStartedMs)})`);
|
|
7656
|
-
} else if (!hostMade && (job.build !== void 0 || isBuiltinProcess(config.hooks.cleanup))) {
|
|
7657
|
-
let cleanedUp = true;
|
|
7658
|
-
if (job.build !== void 0) {
|
|
7659
|
-
const runtime = deps.container ?? createContainerRuntime();
|
|
7660
|
-
tunnelRecord = runtime.tunnels.get(job.build.buildId)?.record();
|
|
7661
|
-
try {
|
|
7662
|
-
await cleanupProcess(runtime, job.build);
|
|
7663
|
-
} catch (err) {
|
|
7664
|
-
cleanedUp = false;
|
|
7665
|
-
log.error(`${tag} cleanup failed: ${describeCallFailure(err)} \xB7 continuing`);
|
|
7666
|
-
}
|
|
7667
|
-
}
|
|
7668
|
-
if (cleanedUp) log.line(`${tag} cleanup ok (${formatDuration(now().getTime() - cleanupStartedMs)})`);
|
|
7669
7564
|
} else {
|
|
7670
|
-
if (!isBuiltinContainer(config.hooks.cleanup) && !
|
|
7565
|
+
if (!isBuiltinContainer(config.hooks.cleanup) && !isBuiltinVm(config.hooks.cleanup)) {
|
|
7671
7566
|
const cleanupEnv = {
|
|
7672
7567
|
...jobEnv(claimCalls(config, job), job.item, job.itemKey, jobDirPath, process.env, job.branch, job.commitIdentity?.author, spoolHomeFor(config, job)),
|
|
7673
7568
|
...job.build === void 0 ? {} : { OUTERLAYER_BUILD_DIR: job.build.buildDir },
|
|
@@ -10248,7 +10143,6 @@ function createContainerRuntime(opts = {}) {
|
|
|
10248
10143
|
remoteFor,
|
|
10249
10144
|
readHead: opts.readHead ?? readDefaultBranchHead,
|
|
10250
10145
|
readKeyFiles: opts.readKeyFiles ?? readDefaultBranchFiles,
|
|
10251
|
-
clone: opts.clone ?? ((input) => cloneRepository(input.remote, input.dest)),
|
|
10252
10146
|
destinationOptions: opts.destinationOptions,
|
|
10253
10147
|
upstreams: opts.upstreams,
|
|
10254
10148
|
agents: opts.agents,
|
|
@@ -11438,9 +11332,8 @@ function timeoutAfter(ms, sleep) {
|
|
|
11438
11332
|
});
|
|
11439
11333
|
return { done, cancel: () => clearTimeout(timer) };
|
|
11440
11334
|
}
|
|
11441
|
-
function noCleanEnvironment(
|
|
11442
|
-
|
|
11443
|
-
return `the host has no clean environment for checks: this build ran under ${ran}, and checks run only in a new container or microVM from a build's image`;
|
|
11335
|
+
function noCleanEnvironment() {
|
|
11336
|
+
return "the host has no clean environment for checks: this build ran under a provision hook of the host's own, and checks run only in a new container or microVM from a build's image";
|
|
11444
11337
|
}
|
|
11445
11338
|
function makeRecorder(input) {
|
|
11446
11339
|
const { config, job, deps, jobDir } = input;
|
|
@@ -11519,7 +11412,7 @@ async function runHostChecks(input) {
|
|
|
11519
11412
|
for (const check of checks) await record(check, "fail", reason, keyTail);
|
|
11520
11413
|
};
|
|
11521
11414
|
try {
|
|
11522
|
-
if (job.container === void 0 && job.microvm === void 0) return await failAll(noCleanEnvironment(
|
|
11415
|
+
if (job.container === void 0 && job.microvm === void 0) return await failAll(noCleanEnvironment());
|
|
11523
11416
|
if (tokens === void 0) return await failAll("the build's repository tokens are no longer held, so the branch cannot be fetched");
|
|
11524
11417
|
if (job.branch === void 0) return await failAll("the build pushed no branch: the claim names none");
|
|
11525
11418
|
const claimed = repositoriesOf({ repositories: job.repositories, repository, branch: job.branch });
|
|
@@ -11768,4 +11661,4 @@ async function runHostChecks(input) {
|
|
|
11768
11661
|
}
|
|
11769
11662
|
}
|
|
11770
11663
|
|
|
11771
|
-
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, agentCredentialCheck, appendCommandLog, attemptNote, checksIn, claimPermissionProblem, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, firstLine3 as firstLine, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inTeardown, isContainerTracked, isGroupAlive, isIdle, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, judgeProbe, keepGhConfigCurrent, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, provisionContainer, provisionEnvironment, provisionMicroVm,
|
|
11664
|
+
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, EXIT_CODE_FILE, GUEST_USAGE_INTERVAL_MS, HELPER_ENV, KIND_LABEL, LEASE_SECONDS, MAX_CHECK_ITEMS_BYTES, MICROVM_COMMAND_DIR, MIN_ENGINE_MAJOR, PLACEHOLDER_MARKER, RENEW_INTERVAL_SECONDS, RunnerInitError, agentCredentialCheck, appendCommandLog, attemptNote, checksIn, claimPermissionProblem, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, describeHookEnd, describeMachineDocker, detectMachine, ensureFirecrackerAndJailer, ensureNetworkReady, ensureTunnel, execArgv, execCommandLine, fetchManagedBuildSettings, fetchManagedClaudeKey, filesAreCopied, finishJob, firstLine3 as firstLine, foldSample, formerSkillProblem, formerSkillQueues, freeItemDisksUntil, gitRemoteFor, helperFirecrackerNote, helperSocketPath, holdManagedBuildSettings, holdManagedClaudeKey, hookLimitsFor, hostCommandEnvironment, hostEnvironment, housekeepingDockerIfReachable, inTeardown, isContainerTracked, isGroupAlive, isIdle, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, judgeProbe, keepGhConfigCurrent, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listTrackedJobs, listUnreadableJobs, listenOnBroker, makeRecorder, managedBuildSettingsFor, measureDisk, microVmArchSupported, microVmAssetsPinned, microVmCommandLine, microVmOomKills, missingPermissionFix, missingPermissionOf, needsAgentCredential, needsBuildSkill, needsRenew, outcomeFromExitCode, parseCpuList, permissionModeProblem, permissionModeProblems, placeholderProblem, placeholderQueues, prepareBranch, prepareResume, prepareRunnerInit, probeCommand, probeHelper, probeMicroVmCommand, provisionContainer, provisionEnvironment, provisionMicroVm, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, recoverLostJobs, releaseLease, removeOldestUntil, renewLease, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, retryFailedReleases, runCommand, runHook, runHostChecks, runHousekeeping, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, testProofIn, timeoutAfter, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
4
|
-
import { EXEC_PORT } from './chunk-
|
|
5
|
-
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-
|
|
6
|
-
import { RELAY_PORT } from './chunk-
|
|
4
|
+
import { EXEC_PORT } from './chunk-XBEVX744.js';
|
|
5
|
+
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-F677QPWA.js';
|
|
6
|
+
import { RELAY_PORT } from './chunk-GABBBYMY.js';
|
|
7
7
|
import { spawn, spawnSync } from 'child_process';
|
|
8
8
|
import { symlinkSync, lstatSync, writeFileSync, chmodSync, mkdirSync, existsSync } from 'fs';
|
|
9
9
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
4
|
-
import { detectActiveSession, transcriptPathForSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession, transcriptPathForSession } from './chunk-QAO6P5NP.js';
|
|
5
|
+
import { autoConnect } from './chunk-GVJJOWMM.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-43BQAGBO.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-4OD45RBP.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
|
-
import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-
|
|
12
|
+
import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-KWXWZ7JQ.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import { resolveRepoIdentity, scrubText } from './chunk-
|
|
14
|
+
import { resolveRepoIdentity, scrubText } from './chunk-FINJC6BS.js';
|
|
15
15
|
import { FindingBatchSchema, FindingsResponseSchema, SAME_PROBLEM_RULES } from './chunk-WUKLQWGY.js';
|
|
16
16
|
import { readFileSync, existsSync } from 'fs';
|
|
17
17
|
import { homedir } from 'os';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RemovedTargetError, removedTargetError } from './chunk-
|
|
4
|
-
import { removeRetiredSkills } from './chunk-
|
|
5
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
6
|
-
import { withTokenHeader } from './chunk-
|
|
3
|
+
import { RemovedTargetError, removedTargetError } from './chunk-BNNCWOZL.js';
|
|
4
|
+
import { removeRetiredSkills } from './chunk-YIMI43YP.js';
|
|
5
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-43BQAGBO.js';
|
|
6
|
+
import { withTokenHeader } from './chunk-GABBBYMY.js';
|
|
7
7
|
import { appendContextProvenance } from './chunk-545P7JY7.js';
|
|
8
8
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
9
9
|
import { writeDegraded, writeSourceCache, SOURCE_CACHE_TTL_RETRY_MS, writeContextManifest, SOURCE_CACHE_TTL_SUCCESS_MS, readSourceCache, isSourceCacheFresh, clearDegraded } from './chunk-YQR6E6OV.js';
|
|
10
|
-
import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-
|
|
10
|
+
import { normalizeRepoName, loadMaintainedFiles, writeMaintainedFiles, parseOuterlayerConfig, targetIds, classifyTree, emitTree, emitBuilders, defaultAgents, agentRootFolders } from './chunk-KWXWZ7JQ.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { existsSync, mkdirSync, writeFileSync, chmodSync, lstatSync, readFileSync, copyFileSync } from 'fs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { isVersion, compareVersions } from './chunk-TQMI335S.js';
|
|
4
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
4
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-GKLUGOTT.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readSettingsText, SettingsParseError, cliForInstall } from './chunk-ZHQC43NH.js';
|
|
4
|
-
import { legacyAgent, defaultAgents, HookTextError } from './chunk-
|
|
4
|
+
import { legacyAgent, defaultAgents, HookTextError } from './chunk-KWXWZ7JQ.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
|
|
4
|
-
import { resolvePackRoot, parseProofsConfig } from './chunk-
|
|
4
|
+
import { resolvePackRoot, parseProofsConfig } from './chunk-KWXWZ7JQ.js';
|
|
5
5
|
import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema } from './chunk-WUKLQWGY.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-GKLUGOTT.js';
|
|
4
4
|
import { readlinkSync, realpathSync, mkdirSync, unlinkSync, symlinkSync, renameSync, readFileSync, writeFileSync, rmSync, existsSync, readdirSync } from 'fs';
|
|
5
5
|
import { join, basename, sep, resolve } from 'path';
|
|
6
6
|
|
|
@@ -1,10 +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, runnerAgents, credentialNames, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialAgent, credentialForms, credentialLineIn, withoutCredentialLines } from './chunk-
|
|
7
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-L6B2SMPU.js';
|
|
4
|
+
import { parseSize } from './chunk-GRAZZMKU.js';
|
|
5
|
+
import { runnerDir } from './chunk-GKLUGOTT.js';
|
|
6
|
+
import { FD_SLOTS_PER_BUILD, runnerAgents, credentialNames, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialAgent, credentialForms, credentialLineIn, withoutCredentialLines } from './chunk-S2ZFRY23.js';
|
|
7
|
+
import { defaultAgents } from './chunk-KWXWZ7JQ.js';
|
|
8
8
|
import { existsSync, readFileSync, writeFileSync, chmodSync, renameSync } from 'fs';
|
|
9
9
|
import { dirname, join } from 'path';
|
|
10
10
|
import { spawnSync } from 'child_process';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
4
|
-
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-
|
|
5
|
-
import { defaultAgents } from './chunk-
|
|
6
|
-
import { PROVIDERS } from './chunk-
|
|
3
|
+
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-GABBBYMY.js';
|
|
4
|
+
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-S2ZFRY23.js';
|
|
5
|
+
import { defaultAgents } from './chunk-KWXWZ7JQ.js';
|
|
6
|
+
import { PROVIDERS } from './chunk-5CWUKWYF.js';
|
|
7
7
|
import { symlinkSync, unlinkSync } from 'fs';
|
|
8
8
|
import { join } from 'path';
|
|
9
9
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import { spoolDir } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-56GSMSEY.js';
|
|
4
|
+
import { spoolDir } from './chunk-GUMNDY3O.js';
|
|
5
5
|
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
6
|
-
import { sessionFolderIn, legacyAgent } from './chunk-
|
|
6
|
+
import { sessionFolderIn, legacyAgent } from './chunk-KWXWZ7JQ.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
|
-
import { CaptureDaemon } from './chunk-
|
|
8
|
+
import { CaptureDaemon } from './chunk-FINJC6BS.js';
|
|
9
9
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
10
10
|
import { join } from 'path';
|
|
11
11
|
|
|
@@ -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, runnerDir } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-GKLUGOTT.js';
|
|
4
4
|
import { mkdirSync, writeFileSync, renameSync, existsSync, readFileSync } from 'fs';
|
|
5
5
|
import { dirname, join } from 'path';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
4
|
-
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-
|
|
4
|
+
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-KWXWZ7JQ.js';
|
|
5
5
|
import { readFileSync, existsSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
6
6
|
import { join, dirname, relative, sep } from 'path';
|
|
7
7
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-
|
|
3
|
+
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-Z35X73J2.js';
|
|
4
4
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
5
|
-
import { invalidConfigMessage } from './chunk-
|
|
6
|
-
import { retiredSkillPaths, removeRetiredSkills } from './chunk-
|
|
5
|
+
import { invalidConfigMessage } from './chunk-BNNCWOZL.js';
|
|
6
|
+
import { retiredSkillPaths, removeRetiredSkills } from './chunk-YIMI43YP.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-
|
|
9
|
-
import { LEGACY_AGENT } from './chunk-
|
|
8
|
+
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-KWXWZ7JQ.js';
|
|
9
|
+
import { LEGACY_AGENT } from './chunk-5CWUKWYF.js';
|
|
10
10
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, copyFileSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
11
11
|
import { join, dirname } from 'path';
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { normalizePath, CONTEXT_PIN_FILENAME, contextAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, legacyAgent, legacySubcommand } from './chunk-
|
|
4
|
-
import { LEGACY_AGENT } from './chunk-
|
|
3
|
+
import { normalizePath, CONTEXT_PIN_FILENAME, contextAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, legacyAgent, legacySubcommand } from './chunk-KWXWZ7JQ.js';
|
|
4
|
+
import { LEGACY_AGENT } from './chunk-5CWUKWYF.js';
|
|
5
5
|
import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
|
|
6
6
|
import { relative, sep, join, posix } from 'path';
|
|
7
7
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runEmit } from './chunk-
|
|
4
|
-
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-
|
|
5
|
-
import { installStarterPack } from './chunk-
|
|
6
|
-
import { listWithAnd } from './chunk-
|
|
7
|
-
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-
|
|
3
|
+
import { runEmit } from './chunk-YMSKRXMG.js';
|
|
4
|
+
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-EDSUB2EJ.js';
|
|
5
|
+
import { installStarterPack } from './chunk-A27QJ6WP.js';
|
|
6
|
+
import { listWithAnd } from './chunk-3YHFHC4O.js';
|
|
7
|
+
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-Z35X73J2.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
9
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-TYXVPSPB.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
|
-
import { linkedAgentsPath } from './chunk-
|
|
11
|
+
import { linkedAgentsPath } from './chunk-B26FXORG.js';
|
|
12
12
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
13
|
-
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, contextAgents } from './chunk-
|
|
14
|
-
import { LEGACY_AGENT } from './chunk-
|
|
13
|
+
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, contextAgents } from './chunk-KWXWZ7JQ.js';
|
|
14
|
+
import { LEGACY_AGENT } from './chunk-5CWUKWYF.js';
|
|
15
15
|
import { execFileSync } from 'child_process';
|
|
16
16
|
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
17
17
|
import { join, dirname } from 'path';
|