@outerlayer/cli 0.36.0-next.20261103103134 → 0.36.0-next.20261103191900
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-DZZZH3SE.js → agent-setup-X7AYIYU2.js} +18 -18
- package/dist/{agent-subcommand-WRHH6SRD.js → agent-subcommand-54OWGFVV.js} +3 -3
- package/dist/{bridge-GZSZQGLI.js → bridge-QJNA3KV6.js} +6 -6
- package/dist/{build-UKZ5RPRR.js → build-4R4PUGPT.js} +12 -12
- package/dist/{build-disk-3HOXULLP.js → build-disk-LYHGWH4G.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-QEK4GIRY.js → builder-ER6LUZBQ.js} +9 -9
- package/dist/caller-PCOQRDGJ.js +23 -0
- package/dist/{check-D6NMQ6LP.js → check-27MDV3T5.js} +56 -54
- package/dist/{chunk-6UI4ELNA.js → chunk-2BTDFRRQ.js} +7 -7
- package/dist/{chunk-FLQL6ZIG.js → chunk-2HOSCIV6.js} +1 -1
- package/dist/{chunk-MPVTZLOM.js → chunk-2I654QYW.js} +3 -3
- package/dist/{chunk-PDRWRFB2.js → chunk-45AYMLMT.js} +3 -3
- package/dist/{chunk-K26KMWU4.js → chunk-4HMOBW7H.js} +7 -7
- package/dist/{chunk-R63T46P7.js → chunk-4KYPJE3D.js} +3 -3
- package/dist/{chunk-HR4PJLOO.js → chunk-4YLF777T.js} +1 -1
- package/dist/{chunk-OGG5ELXF.js → chunk-5MN6VZZH.js} +4 -4
- package/dist/{chunk-JMM3L5RG.js → chunk-6HMA3FIE.js} +4 -4
- package/dist/{chunk-NH4EZRBM.js → chunk-6LPBK4XU.js} +6 -6
- package/dist/{chunk-J4NJWTNO.js → chunk-7HDI5CGG.js} +5 -5
- package/dist/{chunk-QVOU2QUR.js → chunk-7HRNYPL3.js} +3 -3
- package/dist/{chunk-2JWLK2TU.js → chunk-7TPLWWFN.js} +1 -1
- package/dist/{chunk-VMPVQE4D.js → chunk-7TZP5JBS.js} +2 -2
- package/dist/{chunk-6J3QWXTA.js → chunk-7V4ZEB2R.js} +4 -4
- package/dist/{chunk-DWYQKLCL.js → chunk-AWY7ORQ2.js} +1 -1
- package/dist/{chunk-WAGHPZP2.js → chunk-AZXFZGHQ.js} +1 -1
- package/dist/{chunk-LDKF6B2R.js → chunk-B5BLIHJZ.js} +3 -3
- package/dist/{chunk-IEVARJ6G.js → chunk-BOUW2CV6.js} +2 -2
- package/dist/{chunk-3XEYA3QF.js → chunk-BQUI64BU.js} +1 -1
- package/dist/{chunk-GWJUEJR4.js → chunk-C4OYAXLQ.js} +7 -7
- package/dist/{chunk-EHS3HEB6.js → chunk-COPXXXNB.js} +3 -3
- package/dist/{chunk-NDCN3R5C.js → chunk-D7TMGSZN.js} +3 -3
- package/dist/{chunk-7UYXSF62.js → chunk-DDOD4YOQ.js} +6 -7
- package/dist/{chunk-KVO4MJWS.js → chunk-DE64NSOH.js} +6 -6
- package/dist/{chunk-ZE2JJQPC.js → chunk-DSZKDLFU.js} +1 -1
- package/dist/{chunk-54ERDQ3O.js → chunk-E6ESLX5E.js} +32 -8
- package/dist/{chunk-KHJPRTOW.js → chunk-EKDQDOSS.js} +1 -1
- package/dist/{chunk-LV4IDDD3.js → chunk-ENWGIREE.js} +5 -5
- package/dist/{chunk-2W5C47AE.js → chunk-FDRQZALU.js} +1 -1
- package/dist/{chunk-K373UCEV.js → chunk-GAPNTRA5.js} +1 -1
- package/dist/{chunk-TWGSXBZM.js → chunk-GNLAORSW.js} +3 -3
- package/dist/{chunk-LISVY7JZ.js → chunk-H5CWIV56.js} +7 -7
- package/dist/{chunk-YEZGNCSK.js → chunk-H6T73OLF.js} +1 -1
- package/dist/{chunk-JD5EVW6Y.js → chunk-I5EZW66W.js} +4 -4
- package/dist/{chunk-U7MLC45I.js → chunk-IADJEW5P.js} +5 -5
- package/dist/{chunk-NQYTUVZR.js → chunk-IM4VUDKW.js} +1 -1
- package/dist/{chunk-BZQ3S24G.js → chunk-INT54Z2T.js} +1 -1
- package/dist/{chunk-GPBTTHK3.js → chunk-JJ63MLE5.js} +1 -1
- package/dist/{chunk-HQBKKYYQ.js → chunk-K3GCT2HL.js} +4 -4
- package/dist/{chunk-4MN4BBKZ.js → chunk-K3GWZRRK.js} +7 -7
- package/dist/{chunk-ZZ4WIQRF.js → chunk-KJ424QKG.js} +12 -9
- package/dist/{chunk-HO4DPX5N.js → chunk-KQDTORGF.js} +1 -1
- package/dist/{chunk-PYK6GCCU.js → chunk-KRTIYEJI.js} +5 -5
- package/dist/{chunk-52Z7AOZ2.js → chunk-LIJMW36Q.js} +43 -27
- package/dist/{chunk-XW2KXLZB.js → chunk-MLO33RMW.js} +18 -18
- package/dist/{chunk-IEDO26G4.js → chunk-NDIV6GDC.js} +12 -3
- package/dist/{chunk-T5I2H7TJ.js → chunk-NE2A2ZIY.js} +1 -1
- package/dist/{chunk-B5UBTIIP.js → chunk-OHOATH4S.js} +4 -4
- package/dist/{chunk-4MLH5MDB.js → chunk-OM3XGJBY.js} +5 -5
- package/dist/{chunk-XAMTNTOH.js → chunk-PCWNDYQO.js} +9 -9
- package/dist/{chunk-SYKEQT63.js → chunk-PJ5GYGC6.js} +17 -5
- package/dist/{chunk-B5VKRKLJ.js → chunk-PUEIXGZ4.js} +1 -1
- package/dist/{chunk-L3SHPR2M.js → chunk-PYPHE6FZ.js} +1 -1
- package/dist/{chunk-CDTBXABP.js → chunk-QBDQ64QF.js} +2 -2
- package/dist/{chunk-VST3BWL4.js → chunk-QGUOCNQA.js} +11 -10
- package/dist/{chunk-NMMGRG5V.js → chunk-R2DEJ5Q6.js} +4 -4
- package/dist/{chunk-U6EACUUG.js → chunk-RYSGOWHG.js} +16 -3
- package/dist/{chunk-54PQNYA7.js → chunk-S7YLAN2P.js} +2 -2
- package/dist/{chunk-LXXP5HRJ.js → chunk-SRNHGJAV.js} +3 -3
- package/dist/{chunk-2SBNZ4EC.js → chunk-T3MVV6LG.js} +1 -1
- package/dist/{chunk-EUWTGCK5.js → chunk-T4J5VR7B.js} +1 -1
- package/dist/{chunk-OPEZVPF7.js → chunk-UYXX33HA.js} +3 -3
- package/dist/{chunk-P4Q6M6PI.js → chunk-W3ZKWZ6G.js} +1 -1
- package/dist/{chunk-DEZSNJSE.js → chunk-W72X24TZ.js} +1 -1
- package/dist/{chunk-BEJJJZXF.js → chunk-WRNDC7H7.js} +3 -3
- package/dist/{chunk-UZSMDU4U.js → chunk-WVZ6EKJ3.js} +2 -2
- package/dist/{chunk-NOLS2G2W.js → chunk-WWTZLRPH.js} +8 -0
- package/dist/{chunk-42X6CTBI.js → chunk-X7PK7QRY.js} +3 -3
- package/dist/{chunk-YCBVYTFI.js → chunk-XLCAYPLV.js} +1 -1
- package/dist/{chunk-S7YU25AF.js → chunk-Z27IIHHE.js} +32 -31
- package/dist/{claude-launcher-CPSCSL6U.js → claude-launcher-WJ5CVLJR.js} +6 -6
- package/dist/{cli-TZW5XJRE.js → cli-RCLYJFIL.js} +159 -143
- package/dist/{command-5VOKN4HI.js → command-XGIJADGX.js} +48 -48
- package/dist/{config-23EBIGW4.js → config-VHJI645L.js} +11 -11
- package/dist/{connect-cmd-GEBIOBQQ.js → connect-cmd-CQNECBHI.js} +10 -10
- package/dist/{container-start-NJGGT4E3.js → container-start-S5EL4HIH.js} +46 -46
- package/dist/{context-cleanup-I7FLIV5A.js → context-cleanup-2SPOGEZR.js} +3 -3
- package/dist/{context-show-cmd-CSPMSRHX.js → context-show-cmd-XODQYX7H.js} +11 -11
- package/dist/{control-plane-launch-KC7NUNYQ.js → control-plane-launch-KIJABWN4.js} +13 -13
- package/dist/{demo-record-cmd-ZW6U2LAV.js → demo-record-cmd-QVK4YUIV.js} +7 -7
- package/dist/{demo-voice-cmd-IDW3QX3E.js → demo-voice-cmd-4BOI7UDQ.js} +18 -18
- package/dist/{docker-2VHMWLNK.js → docker-BP7AD65K.js} +9 -9
- package/dist/{doctor-ZAB6SDWF.js → doctor-TZIHEPIW.js} +48 -48
- package/dist/{emit-artifact-cmd-2ZHPNLPG.js → emit-artifact-cmd-EGFKK4KF.js} +17 -17
- package/dist/{emit-cmd-UN7HGZC5.js → emit-cmd-S64A2LJ2.js} +6 -6
- package/dist/{emit-criteria-cmd-TUXGD7CW.js → emit-criteria-cmd-L2YRIRCQ.js} +13 -13
- package/dist/{emit-demo-cmd-4YMYB556.js → emit-demo-cmd-QHKUH4Y3.js} +18 -18
- package/dist/{emit-finding-cmd-O2NN22XF.js → emit-finding-cmd-DCEGWYY4.js} +13 -13
- package/dist/{emit-result-cmd-VRITADX2.js → emit-result-cmd-WGBZUASN.js} +16 -16
- package/dist/{emit-step-cmd-LGNBZTWJ.js → emit-step-cmd-TFKMQZHD.js} +13 -13
- package/dist/{exec-client-NXTXAVHI.js → exec-client-GW5ZI74B.js} +7 -7
- package/dist/find-unit-L2JIUL4D.js +24 -0
- package/dist/{findings-cmd-RJD7KTSW.js → findings-cmd-QO7OMGM6.js} +13 -13
- package/dist/{fleet-readiness-RIO2SWC7.js → fleet-readiness-ZF4UUANH.js} +12 -12
- package/dist/{governing-source-CZSYE7QE.js → governing-source-JYK3VK23.js} +18 -18
- package/dist/{guest-init-FLSL5RI7.js → guest-init-FPRVOOK5.js} +8 -8
- package/dist/{hook-fast-HYRZAY5K.js → hook-fast-WLRNPF5S.js} +2 -2
- package/dist/{hook-install-CSHKOLWT.js → hook-install-TZZNJB4P.js} +3 -3
- package/dist/{hook-wrap-fast-ITUBSHEF.js → hook-wrap-fast-HNY3OGLN.js} +2 -2
- package/dist/host-checks-FEYDTZKZ.js +79 -0
- package/dist/{host-key-CPAEQSNU.js → host-key-WG4KPVLI.js} +7 -7
- package/dist/{image-tag-MAMFM4SO.js → image-tag-GZW7HJBN.js} +7 -7
- package/dist/index.js +6 -6
- package/dist/init-6FLEEVZY.js +79 -0
- package/dist/{init-G7D7ABKV.js → init-RSKNY7WL.js} +44 -44
- package/dist/{init-cmd-5GHIMFSS.js → init-cmd-UD6QSHH2.js} +26 -26
- package/dist/{init-update-TQH2Q7IZ.js → init-update-N3WBXLGD.js} +21 -21
- package/dist/{install-cmd-PVQ5M5NM.js → install-cmd-GJNKXZN2.js} +9 -9
- package/dist/{layout-2DF7ON2F.js → layout-YSNLYG6U.js} +3 -3
- package/dist/{logs-BM644OOJ.js → logs-IMTZ733E.js} +6 -6
- package/dist/loop-VCH4UOQ4.js +90 -0
- package/dist/machine-ZU7XA2IC.js +79 -0
- package/dist/{machine-skills-O7XAZYLN.js → machine-skills-WOAIOXAQ.js} +3 -3
- package/dist/{mcp-install-cmd-METCXTTR.js → mcp-install-cmd-NFMA6PSL.js} +3 -3
- package/dist/{mcp-serve-cmd-CTKBLSM6.js → mcp-serve-cmd-27QGBQGR.js} +8 -8
- package/dist/{paths-VIBBLJ2W.js → paths-HV5GP5OV.js} +6 -6
- package/dist/pending-4PZIZNR5.js +18 -0
- package/dist/{pidfile-PAX5XHQJ.js → pidfile-P4DJ2C7S.js} +7 -7
- package/dist/{record-QPXOUL6F.js → record-UOVUKWPV.js} +7 -7
- package/dist/{relay-KASDMV3R.js → relay-JMCC6IJ4.js} +4 -4
- package/dist/{relay-protocol-7HSCZC5H.js → relay-protocol-RR5JOWOO.js} +4 -4
- package/dist/{runner-agents-WUMCXVS2.js → runner-agents-RO4TU5N4.js} +3 -3
- package/dist/{runner-env-R2C5LYCX.js → runner-env-XX2NZOEJ.js} +13 -13
- package/dist/{runner-identity-UDPLWT7I.js → runner-identity-HHW4UKYE.js} +9 -9
- package/dist/{runner-key-JGIDJTHH.js → runner-key-FNNAF36Q.js} +44 -44
- package/dist/{session-sender-4QKSVX5Z.js → session-sender-4FS2GKAY.js} +17 -17
- package/dist/{spec-cmd-QAOTQPI6.js → spec-cmd-AAVXNWTV.js} +14 -14
- package/dist/{starter-pack-LAPDUG6E.js → starter-pack-NAR72DKB.js} +4 -4
- package/dist/{state-OTWJW4O7.js → state-IASJSAJV.js} +7 -7
- package/dist/{status-OKZHXEYB.js → status-FQ5AIDWL.js} +44 -44
- package/dist/{statusline-fast-7V7U4SI4.js → statusline-fast-5G2CTPSX.js} +2 -2
- package/dist/{sync-cmd-FLNYVXAE.js → sync-cmd-K3V4D54W.js} +16 -16
- package/dist/update-steps-TR2A4Z6Q.js +80 -0
- package/dist/{watch-4V7FZI5R.js → watch-SAMIKKQC.js} +16 -16
- package/dist/{work-claim-cmd-E2D4YHCS.js → work-claim-cmd-PBW4QDJH.js} +19 -19
- package/dist/{work-cmd-VD362634.js → work-cmd-L23VUS4H.js} +13 -13
- package/dist/{work-comment-cmd-EUI5IOQI.js → work-comment-cmd-DRBGJAUD.js} +15 -15
- package/dist/{work-demo-cmd-MGL3U6ZF.js → work-demo-cmd-HT72ZB6K.js} +13 -13
- package/dist/{work-logs-cmd-QAJG75DG.js → work-logs-cmd-VSWZHEUJ.js} +13 -13
- package/dist/{work-open-pr-cmd-SXVSMG44.js → work-open-pr-cmd-DOMZJJC3.js} +14 -14
- package/dist/{work-pr-cmd-WUIMC7XB.js → work-pr-cmd-FC3AJ67Y.js} +13 -13
- package/dist/{work-proofs-cmd-AAHTMSCF.js → work-proofs-cmd-NINHCBZW.js} +15 -15
- package/dist/{work-proofs-record-LLUEXW7I.js → work-proofs-record-7XH374TO.js} +22 -22
- package/dist/{work-stop-cmd-RZLGWQJ5.js → work-stop-cmd-J5DXU4BV.js} +13 -13
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-amend/SKILL.md +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +2 -1
- package/dist/caller-WSMJJSFL.js +0 -23
- package/dist/find-unit-RYYTX2O5.js +0 -24
- package/dist/host-checks-KLMATCMD.js +0 -79
- package/dist/init-BB2LERCZ.js +0 -79
- package/dist/loop-7MAMONQJ.js +0 -90
- package/dist/machine-HDHSI7WF.js +0 -79
- package/dist/pending-RXJKH4AC.js +0 -18
- package/dist/update-steps-W56ITCKQ.js +0 -80
|
@@ -1,40 +1,40 @@
|
|
|
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-JJ63MLE5.js';
|
|
4
4
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
5
5
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
6
|
-
import { hasStoredCredential, storeAgentCredential, credentialFromStdin, isAgentName } from './chunk-
|
|
7
|
-
import { upgradedStarterText } from './chunk-
|
|
8
|
-
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-
|
|
9
|
-
import { writeDockerClientConfig } from './chunk-
|
|
10
|
-
import { senderPidfile } from './chunk-
|
|
11
|
-
import { installScrubContext } from './chunk-
|
|
6
|
+
import { hasStoredCredential, storeAgentCredential, credentialFromStdin, isAgentName } from './chunk-ENWGIREE.js';
|
|
7
|
+
import { upgradedStarterText } from './chunk-OM3XGJBY.js';
|
|
8
|
+
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-GNLAORSW.js';
|
|
9
|
+
import { writeDockerClientConfig } from './chunk-2HOSCIV6.js';
|
|
10
|
+
import { senderPidfile } from './chunk-COPXXXNB.js';
|
|
11
|
+
import { installScrubContext } from './chunk-4HMOBW7H.js';
|
|
12
12
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
13
|
-
import { runnerImageVersion } from './chunk-
|
|
14
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-
|
|
13
|
+
import { runnerImageVersion } from './chunk-T4J5VR7B.js';
|
|
14
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey } from './chunk-7TZP5JBS.js';
|
|
15
15
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
16
|
-
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-
|
|
17
|
-
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-
|
|
16
|
+
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-K3GWZRRK.js';
|
|
17
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-5MN6VZZH.js';
|
|
18
18
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
19
19
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
20
|
-
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-
|
|
21
|
-
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-
|
|
22
|
-
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-
|
|
23
|
-
import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-
|
|
24
|
-
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-
|
|
25
|
-
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-
|
|
26
|
-
import { firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, said, 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, hashJudgeProgram, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-
|
|
27
|
-
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-
|
|
20
|
+
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-AZXFZGHQ.js';
|
|
21
|
+
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-2I654QYW.js';
|
|
22
|
+
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-H5CWIV56.js';
|
|
23
|
+
import { postJson, WorkCommandError, getJson, isSignatureRefusal } from './chunk-DE64NSOH.js';
|
|
24
|
+
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-7V4ZEB2R.js';
|
|
25
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-BOUW2CV6.js';
|
|
26
|
+
import { firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, said, 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, hashJudgeProgram, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_ITEMS, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-2BTDFRRQ.js';
|
|
27
|
+
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-XLCAYPLV.js';
|
|
28
28
|
import { sanitizeTerminal, planArtifactUpload } from './chunk-F3T5QJ24.js';
|
|
29
|
-
import { sharedSkillNames, skillConflictMessage } from './chunk-
|
|
29
|
+
import { sharedSkillNames, skillConflictMessage } from './chunk-BQUI64BU.js';
|
|
30
30
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
31
|
-
import { signerFor } from './chunk-
|
|
32
|
-
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-
|
|
33
|
-
import { BUILD_HOME, JOB_MOUNT, buildEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, repositoriesOf, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, proxyEnvironment, checkEnvironment, withMiseVariables, checkoutPath, maxDestinations, resolveDestinations, isReservedVariable, classifyAddress, primaryOf, carried6to4, EVAL_INPUT_DIR, isMiseVariableAllowed } from './chunk-
|
|
34
|
-
import { agentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, currentAgentCredential, removedAgentCredentialValues, managedAgentCredential, RELAY_USER, realFdStorePort, builtInNames, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, fdName, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-
|
|
31
|
+
import { signerFor } from './chunk-EKDQDOSS.js';
|
|
32
|
+
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-PYPHE6FZ.js';
|
|
33
|
+
import { BUILD_HOME, JOB_MOUNT, buildEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, repositoriesOf, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, proxyEnvironment, checkEnvironment, withMiseVariables, checkoutPath, maxDestinations, resolveDestinations, isReservedVariable, classifyAddress, primaryOf, carried6to4, EVAL_INPUT_DIR, isMiseVariableAllowed } from './chunk-B5BLIHJZ.js';
|
|
34
|
+
import { agentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, currentAgentCredential, removedAgentCredentialValues, managedAgentCredential, RELAY_USER, realFdStorePort, builtInNames, MAX_MALFORMED_SESSIONS, MALFORMED_REASON, JOIN_WAIT_MS, MAX_OPEN_STREAMS, STREAM_RESET_RATE, STREAM_RESET_BURST, STREAM_WINDOW, SESSION_WINDOW, targetOfPath, AGENT_CREDENTIAL_MISSING, fdName, RELAY_ID, DOCKER_DESKTOP_REASON } from './chunk-DDOD4YOQ.js';
|
|
35
35
|
import { versionAtLeast } from './chunk-OV4XTV5M.js';
|
|
36
|
-
import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, credentialAgent, 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, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, UNIVERSAL_IMAGE, 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, agentVersionOf } from './chunk-
|
|
37
|
-
import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, resolvePackRoot, orderSessions, extractFacts, sessionsToTimeline } from './chunk-
|
|
36
|
+
import { jobAgent, firecrackerArch, MICROVM_ARCHES, FIRECRACKER_VERSION, hostHelperPinned, builderDiskPinned, guestAssetsPinned, runnerAgentNamed, credentialForms, orList, credentialShapes, agentCommands, defaultCommandLine, credentialAgent, 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, networkHelperPinned, NETWORK_HELPER_SHA256, universalImagePinned, UNIVERSAL_IMAGE, 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, agentVersionOf } from './chunk-NDIV6GDC.js';
|
|
37
|
+
import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, resolvePackRoot, orderSessions, extractFacts, sessionsToTimeline } from './chunk-E6ESLX5E.js';
|
|
38
38
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
39
39
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
40
40
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -2001,6 +2001,22 @@ function formerSkillProblem(queues) {
|
|
|
2001
2001
|
const keys = queues.map((queue) => `runner.commands.${queue}`).join(", ");
|
|
2002
2002
|
return `${keys} ${queues.length === 1 ? "starts" : "start"} /amend, which is now /outerlayer-amend. The runner runs /outerlayer-amend in its place; edit the config to say so`;
|
|
2003
2003
|
}
|
|
2004
|
+
function modellessQueues(config, agents = defaultAgents()) {
|
|
2005
|
+
const agent = jobAgent(void 0, agents);
|
|
2006
|
+
if (agent?.adapter.headless?.modelFlag === void 0) return [];
|
|
2007
|
+
const program = programPattern(agent.descriptor.program);
|
|
2008
|
+
const named = new RegExp(`(?:^|\\s)${escapeForPattern(agent.adapter.headless.modelFlag)}(?:=|\\s)`);
|
|
2009
|
+
return config.queues.filter((queue) => {
|
|
2010
|
+
const command = String(config.commands[queue]);
|
|
2011
|
+
return program.test(command) && !named.test(command);
|
|
2012
|
+
});
|
|
2013
|
+
}
|
|
2014
|
+
function modellessProblem(queues, agents = defaultAgents()) {
|
|
2015
|
+
return queues.map((queue) => {
|
|
2016
|
+
const line2 = defaultCommandLine(queue, agents);
|
|
2017
|
+
return `runner.commands.${queue} names no model, so its builds run on the agent's default model${line2 === void 0 ? "" : `. \`runner init\` writes \`${line2}\``}`;
|
|
2018
|
+
}).join(". ");
|
|
2019
|
+
}
|
|
2004
2020
|
function needsAgentCredential(hooks) {
|
|
2005
2021
|
return builtinKind(hooks.provision) !== "own";
|
|
2006
2022
|
}
|
|
@@ -11707,4 +11723,4 @@ async function runHostChecks(input) {
|
|
|
11707
11723
|
}
|
|
11708
11724
|
}
|
|
11709
11725
|
|
|
11710
|
-
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, 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 };
|
|
11726
|
+
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, 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, modellessProblem, modellessQueues, 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,24 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { checkStarterFiles, contextIsGoverned } from './chunk-
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
5
|
-
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-
|
|
6
|
-
import { withInjectedPrograms } from './chunk-
|
|
7
|
-
import { isLinkedRepository } from './chunk-
|
|
3
|
+
import { checkStarterFiles, contextIsGoverned } from './chunk-OM3XGJBY.js';
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-DE64NSOH.js';
|
|
5
|
+
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-KRTIYEJI.js';
|
|
6
|
+
import { withInjectedPrograms } from './chunk-T3MVV6LG.js';
|
|
7
|
+
import { isLinkedRepository } from './chunk-45AYMLMT.js';
|
|
8
8
|
import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
|
|
9
9
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
10
|
-
import { checkFormerSkillNames } from './chunk-
|
|
11
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
12
|
-
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-
|
|
10
|
+
import { checkFormerSkillNames } from './chunk-IM4VUDKW.js';
|
|
11
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-4YLF777T.js';
|
|
12
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-PJ5GYGC6.js';
|
|
13
13
|
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-OV4XTV5M.js';
|
|
14
14
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
15
|
-
import { readStatuslineState, STATE_FRESH_MS } from './chunk-
|
|
15
|
+
import { readStatuslineState, STATE_FRESH_MS } from './chunk-7TPLWWFN.js';
|
|
16
16
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
17
|
-
import { installAgents, withSettingsText } from './chunk-
|
|
17
|
+
import { installAgents, withSettingsText } from './chunk-INT54Z2T.js';
|
|
18
18
|
import { cliForInstall, cliBinResolvable } from './chunk-ZHQC43NH.js';
|
|
19
19
|
import { readDeliveryRecord, readDegraded, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
20
20
|
import { deadHooksState, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
|
|
21
|
-
import { defaultAgents, legacyAgent, contextAgents } from './chunk-
|
|
21
|
+
import { defaultAgents, legacyAgent, contextAgents } from './chunk-E6ESLX5E.js';
|
|
22
22
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
23
23
|
import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-WZOWXDDM.js';
|
|
24
24
|
import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync } from 'fs';
|
|
@@ -213,7 +213,7 @@ function runDoctor(env = {}) {
|
|
|
213
213
|
...starter?.checks ?? [],
|
|
214
214
|
...laptop ? checkRenamedSkills(env.cwd) : [],
|
|
215
215
|
...checkBuildSkillState(env.cwd, home),
|
|
216
|
-
...checkIgnoredSkills(env.cwd),
|
|
216
|
+
...checkIgnoredSkills(env.cwd, agents),
|
|
217
217
|
...starter !== void 0 && !starter.mcpOutdated ? checkMcpCommand(env.cwd, env.processEnv) : [],
|
|
218
218
|
...checkContextSource(env.cwd, legacy),
|
|
219
219
|
...checkGovernsList(env.cwd),
|
|
@@ -226,9 +226,9 @@ function checkRenamedSkills(cwd) {
|
|
|
226
226
|
if (dirs === void 0 || contextIsGoverned(dirs.gitCommonDir)) return [];
|
|
227
227
|
return checkFormerSkillNames(dirs.repoRoot);
|
|
228
228
|
}
|
|
229
|
-
function checkIgnoredSkills(cwd) {
|
|
229
|
+
function checkIgnoredSkills(cwd, agents) {
|
|
230
230
|
const dirs = findGitDirs(cwd ?? process.cwd());
|
|
231
|
-
return dirs === void 0 ? [] : checkIgnoredSkillFolders(dirs.repoRoot);
|
|
231
|
+
return dirs === void 0 ? [] : checkIgnoredSkillFolders(dirs.repoRoot, agents);
|
|
232
232
|
}
|
|
233
233
|
function checkBuildSkillState(cwd, home) {
|
|
234
234
|
const dirs = findGitDirs(cwd ?? process.cwd());
|
|
@@ -1050,8 +1050,8 @@ function doctorExitCode(checks) {
|
|
|
1050
1050
|
|
|
1051
1051
|
// src/doctor-report.ts
|
|
1052
1052
|
async function gatherDoctorChecks() {
|
|
1053
|
-
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-
|
|
1054
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1053
|
+
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-LYHGWH4G.js');
|
|
1054
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-VHJI645L.js');
|
|
1055
1055
|
const configPath = defaultRunnerConfigPath();
|
|
1056
1056
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1057
1057
|
const hooks = (() => {
|
|
@@ -1079,7 +1079,7 @@ async function gatherDoctorChecks() {
|
|
|
1079
1079
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1080
1080
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1081
1081
|
} else if (hasRunnerBlock(configPath)) {
|
|
1082
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1082
|
+
const { runnerHostChecks } = await import('./doctor-TZIHEPIW.js');
|
|
1083
1083
|
const gateway = (() => {
|
|
1084
1084
|
try {
|
|
1085
1085
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1107,7 +1107,7 @@ async function gatherDoctorChecks() {
|
|
|
1107
1107
|
const service = await (async () => {
|
|
1108
1108
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1109
1109
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1110
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1110
|
+
const { inspectRunnerService } = await import('./find-unit-L2JIUL4D.js');
|
|
1111
1111
|
return inspectRunnerService(configPath);
|
|
1112
1112
|
})();
|
|
1113
1113
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { defaultAgents, agentById } from './chunk-
|
|
3
|
+
import { defaultAgents, agentById } from './chunk-E6ESLX5E.js';
|
|
4
4
|
import { LEGACY_AGENT, PROVIDERS } from './chunk-QJKW4MKH.js';
|
|
5
5
|
import { join, dirname } from 'path';
|
|
6
6
|
|
|
@@ -166,9 +166,18 @@ function headlessAgents(agents = defaultAgents()) {
|
|
|
166
166
|
function headlessNames(agents = defaultAgents()) {
|
|
167
167
|
return headlessAgents(agents).map((agent) => runnerNameOf(agent.descriptor));
|
|
168
168
|
}
|
|
169
|
+
function queuePrompt(queue) {
|
|
170
|
+
return queue === "implement" ? "/build" : "/outerlayer-amend";
|
|
171
|
+
}
|
|
169
172
|
function agentCommands(name, agents = defaultAgents()) {
|
|
170
173
|
const found = headlessAgents(agents).find((agent) => runnerNameOf(agent.descriptor) === name);
|
|
171
|
-
return found === void 0 ? void 0 : { implement: found.headless.commandLine("
|
|
174
|
+
return found === void 0 ? void 0 : { implement: found.headless.commandLine(queuePrompt("implement"), "implement"), amend: found.headless.commandLine(queuePrompt("amend"), "amend") };
|
|
175
|
+
}
|
|
176
|
+
function defaultCommandLine(queue, agents = defaultAgents()) {
|
|
177
|
+
return jobAgent(void 0, agents)?.adapter.headless?.commandLine(queuePrompt(queue), queue);
|
|
178
|
+
}
|
|
179
|
+
function jobCommandEnv(sessionEnv, agents = defaultAgents()) {
|
|
180
|
+
return { ...jobAgent(void 0, agents)?.adapter.headless?.jobEnv, OUTERLAYER_UNATTENDED: "1", ...sessionEnv };
|
|
172
181
|
}
|
|
173
182
|
function runnerNameOf(descriptor) {
|
|
174
183
|
return descriptor.legacy?.runnerName ?? descriptor.id;
|
|
@@ -240,4 +249,4 @@ function agentVersionOf(toolsJson, agents = defaultAgents()) {
|
|
|
240
249
|
return buildAgentPin(agents);
|
|
241
250
|
}
|
|
242
251
|
|
|
243
|
-
export { AGENT_PINS, BUILDER_DISK_BASE_URL, BUILDER_DISK_SHA256, BUILDER_DISK_VERSION, BUILDKIT_IMAGE, DEFAULT_BASE_IMAGE, FFMPEG_BUILD_TAG, FFMPEG_STATIC, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, FIRECRACKER_VERSION, GH_SHA256, GH_VERSION, GUEST_ASSETS_BASE_URL, GUEST_ASSETS_VERSION, GUEST_HELPER_SHA256, GUEST_KERNEL_SHA256, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, HEADLESS_SHELL_REVISION, HOST_HELPER_ASSETS_VERSION, HOST_HELPER_BASE_URL, HOST_HELPER_SHA256, HOST_HELPER_SLICE_SINCE, JAILER_BINARY_SHA256, JOB_AGENT_ID, MANAGED_KIND, MEDIA_PINS, MICROVM_ARCHES, NETWORK_HELPER_SHA256, NODE_IMAGE, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, PLAYWRIGHT_VERSION, TINI_SHA256, TINI_VERSION, UNIVERSAL_IMAGE, UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, VOICE_PACK_FILES, VOICE_PACK_VERSION, agentCommands, agentVersionOf, buildAgent, buildAgentPin, builderDiskPinned, credentialAgent, credentialEnvPath, credentialForms, credentialHandOffKey, credentialNames, credentialShapes, firecrackerArch, forwardedVariables, guestAssetsPinned, headlessNames, hostHelperPinned, hostHelperSupportsSlice, jobAgent, managedKeyName, networkHelperPinned, orList, providersOf, runnerAgentNamed, runnerAgents, storeVariables, strippedVariables, universalImagePinned };
|
|
252
|
+
export { AGENT_PINS, BUILDER_DISK_BASE_URL, BUILDER_DISK_SHA256, BUILDER_DISK_VERSION, BUILDKIT_IMAGE, DEFAULT_BASE_IMAGE, FFMPEG_BUILD_TAG, FFMPEG_STATIC, FIRECRACKER_BINARY_SHA256, FIRECRACKER_SHA256, FIRECRACKER_VERSION, GH_SHA256, GH_VERSION, GUEST_ASSETS_BASE_URL, GUEST_ASSETS_VERSION, GUEST_HELPER_SHA256, GUEST_KERNEL_SHA256, HEADLESS_SHELL, HEADLESS_SHELL_BASE_URL, HEADLESS_SHELL_REVISION, HOST_HELPER_ASSETS_VERSION, HOST_HELPER_BASE_URL, HOST_HELPER_SHA256, HOST_HELPER_SLICE_SINCE, JAILER_BINARY_SHA256, JOB_AGENT_ID, MANAGED_KIND, MEDIA_PINS, MICROVM_ARCHES, NETWORK_HELPER_SHA256, NODE_IMAGE, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, PLAYWRIGHT_VERSION, TINI_SHA256, TINI_VERSION, UNIVERSAL_IMAGE, UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, VOICE_PACK_FILES, VOICE_PACK_VERSION, agentCommands, agentVersionOf, buildAgent, buildAgentPin, builderDiskPinned, credentialAgent, credentialEnvPath, credentialForms, credentialHandOffKey, credentialNames, credentialShapes, defaultCommandLine, firecrackerArch, forwardedVariables, guestAssetsPinned, headlessNames, hostHelperPinned, hostHelperSupportsSlice, jobAgent, jobCommandEnv, managedKeyName, networkHelperPinned, orList, providersOf, runnerAgentNamed, runnerAgents, storeVariables, strippedVariables, universalImagePinned };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { defaultAgents } from './chunk-E6ESLX5E.js';
|
|
4
4
|
import { openSync, fstatSync, readSync, closeSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postJson, getJson } from './chunk-
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
3
|
+
import { resolveCredentials, postJson, getJson } from './chunk-DE64NSOH.js';
|
|
4
|
+
import { detectActiveSession } from './chunk-NE2A2ZIY.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-F3T5QJ24.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
8
|
-
import { logHookError } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-4YLF777T.js';
|
|
8
|
+
import { logHookError } from './chunk-PJ5GYGC6.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
11
11
|
import { resolveRepoIdentity } from './chunk-WZOWXDDM.js';
|
|
@@ -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-I5EZW66W.js';
|
|
4
|
+
import { VALIDATOR_FILES, VALIDATORS_DIR, POLICY_PATH, POLICY_CONTENT } from './chunk-S7YLAN2P.js';
|
|
5
|
+
import { skillsBaseFor } from './chunk-7HRNYPL3.js';
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { hasSymlinkComponent } from './chunk-
|
|
8
|
+
import { hasSymlinkComponent } from './chunk-W72X24TZ.js';
|
|
9
9
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
10
|
-
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-
|
|
10
|
+
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-E6ESLX5E.js';
|
|
11
11
|
import { createHash } from 'crypto';
|
|
12
12
|
import { existsSync, readFileSync } from 'fs';
|
|
13
13
|
import { join } from 'path';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
7
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
8
|
-
import { ensureHostKey } from './chunk-
|
|
9
|
-
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-
|
|
10
|
-
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-
|
|
11
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-LIJMW36Q.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-KJ424QKG.js';
|
|
5
|
+
import { getJson, WorkCommandError } from './chunk-DE64NSOH.js';
|
|
6
|
+
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-7V4ZEB2R.js';
|
|
7
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-BOUW2CV6.js';
|
|
8
|
+
import { ensureHostKey } from './chunk-EKDQDOSS.js';
|
|
9
|
+
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-DDOD4YOQ.js';
|
|
10
|
+
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-NDIV6GDC.js';
|
|
11
|
+
import { defaultAgents } from './chunk-E6ESLX5E.js';
|
|
12
12
|
import { closeSync, openSync, constants, readFileSync } from 'fs';
|
|
13
13
|
import { join, dirname } from 'path';
|
|
14
14
|
import { totalmem } from 'os';
|
|
@@ -6,7 +6,7 @@ import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
|
6
6
|
import { updateNoticeContext, staleMachineCopiesContext } from './chunk-NFZMENCY.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { deadHooksState, huskyPrepareScript, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
|
|
9
|
-
import { hookCodec } from './chunk-
|
|
9
|
+
import { hookCodec } from './chunk-WWTZLRPH.js';
|
|
10
10
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-QJKW4MKH.js';
|
|
11
11
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -16,6 +16,16 @@ import { createHash } from 'crypto';
|
|
|
16
16
|
import { join, dirname, resolve } from 'path';
|
|
17
17
|
|
|
18
18
|
createRequire(import.meta.url);
|
|
19
|
+
|
|
20
|
+
// src/hook-background.ts
|
|
21
|
+
var UNATTENDED_VARIABLE = "OUTERLAYER_UNATTENDED";
|
|
22
|
+
function backgroundHold(decoded, env) {
|
|
23
|
+
if (decoded.kind !== "turn-ended" || decoded.fromSubagent) return void 0;
|
|
24
|
+
if (env[UNATTENDED_VARIABLE] !== "1") return void 0;
|
|
25
|
+
const work = decoded.backgroundWork ?? [];
|
|
26
|
+
if (work.length === 0) return void 0;
|
|
27
|
+
return `Work you started is still running in the background: ${work.join("; ")}. No person is present in this run, and the run ends when you stop, which stops that work and loses its result. Wait for it in the foreground and read its result, then finish.`;
|
|
28
|
+
}
|
|
19
29
|
var DELIVERY_CAP = 8e3;
|
|
20
30
|
var MAX_IDS_PER_CALL = 50;
|
|
21
31
|
var INTRO = "A member handed work to you while you build. Read each comment below. Change the work to meet it in this run, then answer on the comment's thread with the command shown, before you finish.";
|
|
@@ -599,7 +609,7 @@ async function missingRenewalHookContext(home, cwd, codec) {
|
|
|
599
609
|
try {
|
|
600
610
|
const event = codec.events.find((name) => kindOf(codec, name) === "tool-used");
|
|
601
611
|
if (event === void 0) return void 0;
|
|
602
|
-
const { hookRegistered } = await import('./hook-install-
|
|
612
|
+
const { hookRegistered } = await import('./hook-install-TZZNJB4P.js');
|
|
603
613
|
const registered = hookRegistered(event, { home, cwd });
|
|
604
614
|
if (registered !== false) return void 0;
|
|
605
615
|
return `This install has no ${event} hook, so this session's work-item lease will never be renewed while it works and may be lost to another worker mid-session. Run \`${cliInvocation()} init\` to register it.`;
|
|
@@ -799,11 +809,11 @@ async function missingControlPlane(cwd, sessionId, home, env) {
|
|
|
799
809
|
const dirs = findGitDirs(cwd);
|
|
800
810
|
if (dirs === void 0) return void 0;
|
|
801
811
|
if (existsSync(join(dirs.gitCommonDir, "outerlayer", "materialized.json")) || hasExcludeBlock(dirs.gitCommonDir)) {
|
|
802
|
-
const { cleanupEarlierCopies } = await import('./context-cleanup-
|
|
812
|
+
const { cleanupEarlierCopies } = await import('./context-cleanup-2SPOGEZR.js');
|
|
803
813
|
cleanupEarlierCopies(dirs);
|
|
804
814
|
}
|
|
805
815
|
if (!contextPossiblyGoverned(cwd, home)) return void 0;
|
|
806
|
-
const { governanceOf } = await import('./control-plane-launch-
|
|
816
|
+
const { governanceOf } = await import('./control-plane-launch-KIJABWN4.js');
|
|
807
817
|
if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
|
|
808
818
|
recordMissingContext(dirs, sessionId, home);
|
|
809
819
|
const launcher = `${cliInvocation()} ${LEGACY.legacy.subcommand}`;
|
|
@@ -844,7 +854,9 @@ async function runHookFast(event, home = homeFromEnv(), read = readStdin, env =
|
|
|
844
854
|
const stdin = read();
|
|
845
855
|
const decoded = codec.decode(event, stdin);
|
|
846
856
|
const resolvedEvent = decoded.nativeName;
|
|
847
|
-
|
|
857
|
+
const hold = backgroundHold(decoded, env);
|
|
858
|
+
if (hold !== void 0) write(codec.reply({ kind: "turn-ended", continueWith: hold }));
|
|
859
|
+
else deliverInbox(decoded, home, env, spawnImpl, write, codec);
|
|
848
860
|
if (decoded.kind === "tool-used" && (env.OUTERLAYER_WORK === void 0 || env.OUTERLAYER_JOB_DIR !== void 0)) {
|
|
849
861
|
return;
|
|
850
862
|
}
|
|
@@ -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-PYPHE6FZ.js';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-
|
|
4
|
-
import { inspectService, realInspectProbes } from './chunk-
|
|
3
|
+
import { escapeUnitPath, UNIT_MARKER, DEFAULT_UNIT_NAME } from './chunk-KJ424QKG.js';
|
|
4
|
+
import { inspectService, realInspectProbes } from './chunk-DDOD4YOQ.js';
|
|
5
5
|
import { realpathSync, readFileSync, readdirSync } from 'fs';
|
|
6
6
|
import { resolve, dirname, join } from 'path';
|
|
7
7
|
|
|
@@ -1,16 +1,16 @@
|
|
|
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-K3GCT2HL.js';
|
|
4
|
+
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-I5EZW66W.js';
|
|
5
|
+
import { installStarterPack } from './chunk-S7YLAN2P.js';
|
|
6
|
+
import { listWithAnd } from './chunk-45AYMLMT.js';
|
|
7
|
+
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-7HRNYPL3.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
9
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-7HDI5CGG.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
|
-
import { linkedAgentsPath } from './chunk-
|
|
11
|
+
import { linkedAgentsPath } from './chunk-W72X24TZ.js';
|
|
12
12
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
13
|
-
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent,
|
|
13
|
+
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-E6ESLX5E.js';
|
|
14
14
|
import { LEGACY_AGENT } from './chunk-QJKW4MKH.js';
|
|
15
15
|
import { execFileSync } from 'child_process';
|
|
16
16
|
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
@@ -29,7 +29,7 @@ Write here what an agent needs to work in this repository: how to build and test
|
|
|
29
29
|
|
|
30
30
|
${legacyAgent(agents).descriptor.label} and Codex read this file as it is. Skills are in \`.agents/skills/\`.
|
|
31
31
|
`;
|
|
32
|
-
var agentLabels = (agents) =>
|
|
32
|
+
var agentLabels = (agents) => laptopAgents(agents).map((agent) => agent.descriptor.label);
|
|
33
33
|
function inTodaysLayout(repoRoot) {
|
|
34
34
|
if (isAgentsMdLayout(repoRoot)) return false;
|
|
35
35
|
return existsSync(join(repoRoot, CONFIG_PATH)) || holdsTodaysLayoutSources(discoverOuterlayerPaths(repoRoot));
|
|
@@ -273,7 +273,8 @@ function renderDone(paths, kept, mcpKept, agents) {
|
|
|
273
273
|
return `${C.green}\u2713${C.reset} Agent setup: already in place, nothing changed
|
|
274
274
|
${renderPaths(paths, kept)}${mcpNote}`;
|
|
275
275
|
}
|
|
276
|
-
|
|
276
|
+
const labels = agentLabels(agents);
|
|
277
|
+
return `${C.green}\u2713${C.reset} Agent setup: ${labels.join(" and ")} ${labels.length > 1 ? "have" : "has"} ${what}
|
|
277
278
|
` + renderPaths(paths, kept) + mcpNote + ` ${C.dim}\`context emit\` compiled every source under .outerlayer/ for the targets in ${CONFIG_PATH}, not only the skills.${C.reset}
|
|
278
279
|
`;
|
|
279
280
|
}
|
|
@@ -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-4HMOBW7H.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
5
|
-
import { detectActiveSession } from './chunk-
|
|
6
|
-
import { autoConnect } from './chunk-
|
|
5
|
+
import { detectActiveSession } from './chunk-NE2A2ZIY.js';
|
|
6
|
+
import { autoConnect } from './chunk-WVZ6EKJ3.js';
|
|
7
7
|
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-F3T5QJ24.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-4YLF777T.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
12
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-QJKW4MKH.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import {
|
|
3
|
+
import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-E6ESLX5E.js';
|
|
4
4
|
import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-CDDED64E.js';
|
|
5
5
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
6
6
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
7
7
|
import { randomBytes } from 'crypto';
|
|
8
|
-
import { existsSync, symlinkSync, realpathSync, lstatSync, readFileSync, mkdirSync, rmSync, renameSync, writeFileSync, cpSync } from 'fs';
|
|
8
|
+
import { existsSync, symlinkSync, realpathSync, statSync, lstatSync, readFileSync, mkdirSync, rmSync, renameSync, writeFileSync, cpSync } from 'fs';
|
|
9
9
|
import { join, resolve, dirname, relative } from 'path';
|
|
10
10
|
|
|
11
11
|
createRequire(import.meta.url);
|
|
@@ -37,6 +37,13 @@ function folderExists(path) {
|
|
|
37
37
|
return false;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
+
function folderReachable(path) {
|
|
41
|
+
try {
|
|
42
|
+
return statSync(path).isDirectory();
|
|
43
|
+
} catch {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
40
47
|
function tempName(base, label) {
|
|
41
48
|
return join(base, `.${label}-${process.pid}-${randomBytes(4).toString("hex")}`);
|
|
42
49
|
}
|
|
@@ -114,7 +121,13 @@ function installMachineSkills(opts) {
|
|
|
114
121
|
const version = opts.version ?? resolvePackageVersion();
|
|
115
122
|
const base = machineSkillsBase(opts.home);
|
|
116
123
|
const link = opts.link ?? defaultLink;
|
|
117
|
-
const
|
|
124
|
+
const agents = opts.agents ?? defaultAgents();
|
|
125
|
+
const installed = laptopAgents(agents).map((agent) => agent.descriptor.id);
|
|
126
|
+
const agentFolders = [
|
|
127
|
+
...new Set(
|
|
128
|
+
contextAgents(agents).map((agent) => ({ agent, folder: userSkillFolderIn(opts.home, agent.descriptor) })).filter(({ agent, folder }) => installed.includes(agent.descriptor.id) || folderReachable(folder)).map(({ folder }) => folder)
|
|
129
|
+
)
|
|
130
|
+
];
|
|
118
131
|
let files;
|
|
119
132
|
const filesOf = (name) => {
|
|
120
133
|
files ??= loadMachineSkillFiles(opts.packRoot ?? resolvePackRoot(), version);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
4
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
|
-
import { linkedAgentsPath } from './chunk-
|
|
6
|
-
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-
|
|
5
|
+
import { linkedAgentsPath } from './chunk-W72X24TZ.js';
|
|
6
|
+
import { resolvePackRoot, OUTERLAYER_SKILLS_BASE, loadTemplateFiles, AGENTS_SKILLS_BASE, loadMaintainedFiles, rewriteSkillPaths, TEMPLATE_SKILLS, skillDir, writeMaintainedFiles, MACHINE_SKILL_PATH } from './chunk-E6ESLX5E.js';
|
|
7
7
|
import { LEGACY_AGENT } from './chunk-QJKW4MKH.js';
|
|
8
8
|
import { MAINTAINED_SKILLS } from './chunk-CDDED64E.js';
|
|
9
9
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
4
|
+
import { detectActiveSession } from './chunk-NE2A2ZIY.js';
|
|
5
|
+
import { autoConnect } from './chunk-WVZ6EKJ3.js';
|
|
6
6
|
import { acquireSpoolLockAt } from './chunk-F3T5QJ24.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-4YLF777T.js';
|
|
9
9
|
import { launchedItemForSession } from './chunk-4OD45RBP.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-
|
|
3
|
+
import { legacyAgent, createNodeAgentIO, ADAPTER_FACTORIES } from './chunk-E6ESLX5E.js';
|
|
4
4
|
|
|
5
5
|
createRequire(import.meta.url);
|
|
6
6
|
|
|
@@ -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-PYPHE6FZ.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-
|
|
4
|
-
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-
|
|
3
|
+
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-DSZKDLFU.js';
|
|
4
|
+
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-W3ZKWZ6G.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { runnerDir, RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { runnerDir, RUNNER_DIR_MODE } from './chunk-PYPHE6FZ.js';
|
|
7
7
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
8
8
|
import { dirname, sep, join } from 'path';
|
|
9
9
|
import { spawnSync } from 'child_process';
|
|
@@ -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-PYPHE6FZ.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
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
|
|
4
4
|
import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
|
|
5
|
-
import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-
|
|
5
|
+
import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-E6ESLX5E.js';
|
|
6
6
|
import { execFileSync } from 'child_process';
|
|
7
7
|
import { lstatSync, existsSync, unlinkSync, readdirSync, rmdirSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
8
8
|
import { join, dirname, isAbsolute } from 'path';
|