@outerlayer/cli 0.38.0-next.20261111220050 → 0.38.0-next.20261111231234
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 -0
- package/dist/{agent-setup-P77VERNT.js → agent-setup-3GY4FFSC.js} +19 -19
- package/dist/{agent-subcommand-MLVQVTVU.js → agent-subcommand-VDN4AFAJ.js} +3 -3
- package/dist/{bridge-CVHBKOFU.js → bridge-QUQYCBQN.js} +6 -6
- package/dist/{build-KVJM6PMC.js → build-SD44TP2B.js} +12 -12
- package/dist/{build-disk-H6ZN32KR.js → build-disk-4PCVGMAT.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-3LUEEVSN.js → builder-JG2DHKSN.js} +9 -9
- package/dist/caller-A2K7SLSL.js +23 -0
- package/dist/{check-V2TITR5P.js → check-JNQVYVHI.js} +54 -54
- package/dist/{chunk-E532PUGI.js → chunk-2UCTMANO.js} +1 -1
- package/dist/{chunk-DULA3AYN.js → chunk-2VJVPP5Y.js} +1 -1
- package/dist/{chunk-3V5B7M5Q.js → chunk-3C23ZPWR.js} +2 -2
- package/dist/{chunk-WJMA4BRG.js → chunk-3T7PXUHN.js} +6 -6
- package/dist/{chunk-B4HUGT3L.js → chunk-3VWX5BYV.js} +15 -14
- package/dist/{chunk-33HBGNKZ.js → chunk-43R7JHQI.js} +5 -5
- package/dist/{chunk-Q3QA4DTV.js → chunk-4FHDVWKO.js} +3 -3
- package/dist/{chunk-F4Q4Y7ZE.js → chunk-4T2NBVC4.js} +5 -5
- package/dist/{chunk-KUNRGSPX.js → chunk-5NK2KKG6.js} +3 -3
- package/dist/{chunk-CT7X6XGR.js → chunk-5OSY3LK3.js} +22 -8
- package/dist/{chunk-MXEZN6SV.js → chunk-5TMM2K23.js} +4 -4
- package/dist/{chunk-AR3SCE7R.js → chunk-5UFAWMET.js} +2 -2
- package/dist/{chunk-LF4BHMEG.js → chunk-6FB7NTJK.js} +1 -1
- package/dist/{chunk-TYXZTMZK.js → chunk-6X2BSMRM.js} +1 -1
- package/dist/{chunk-DPMUZ2QT.js → chunk-722KABMV.js} +1 -1
- package/dist/{chunk-KGDFBO3G.js → chunk-7DIYEB3X.js} +4 -4
- package/dist/{chunk-5FTUUXBK.js → chunk-A4NWDCWS.js} +5 -5
- package/dist/{chunk-FBLO2U6D.js → chunk-B2SHUO6J.js} +1 -1
- package/dist/{chunk-TNUJXYK6.js → chunk-BBRXFXBB.js} +1 -1
- package/dist/{chunk-VZ3T5MPT.js → chunk-BJIJYPGC.js} +3 -3
- package/dist/{chunk-3XZ66FRV.js → chunk-C4R6LMPQ.js} +10 -10
- package/dist/{chunk-WR53L7RZ.js → chunk-DLUBSTLW.js} +8 -8
- package/dist/{chunk-CAL6L5DK.js → chunk-DZFIRKDZ.js} +3 -3
- package/dist/{chunk-YRJI2ZKT.js → chunk-ECNWHXIO.js} +3 -3
- package/dist/{chunk-6AORV65Z.js → chunk-EJ7ZXBXS.js} +2 -2
- package/dist/{chunk-AW3N24L5.js → chunk-ELPP5OHC.js} +1 -1
- package/dist/{chunk-CJEWYQ46.js → chunk-ERG3WCEC.js} +7 -7
- package/dist/{chunk-V6FY4BRV.js → chunk-EUHUIIGT.js} +4 -4
- package/dist/{chunk-AUBLZPCA.js → chunk-FUZEOWF4.js} +1 -1
- package/dist/{chunk-CPXQLO4X.js → chunk-I5U6CFH4.js} +1 -1
- package/dist/{chunk-6VHBQBHL.js → chunk-I62FX622.js} +2 -2
- package/dist/{chunk-MOBYKKTR.js → chunk-IGBPPM7F.js} +5 -5
- package/dist/{chunk-SBZX6XP6.js → chunk-J6KKJGR7.js} +1 -1
- package/dist/{chunk-WVTBZX4K.js → chunk-JIANCWJ3.js} +1 -1
- package/dist/{chunk-C6OQ45AS.js → chunk-KVWFAAAQ.js} +1 -1
- package/dist/{chunk-RIYSVN6V.js → chunk-KZU5WQK5.js} +3 -3
- package/dist/{chunk-A3NJSQPK.js → chunk-LVELQ635.js} +1 -1
- package/dist/{chunk-3FN6JADD.js → chunk-MVERFCX4.js} +1 -1
- package/dist/{chunk-EVME7MT6.js → chunk-N6BNN6ZD.js} +1 -1
- package/dist/{chunk-UIS6E64L.js → chunk-NDQC2WUJ.js} +1 -1
- package/dist/{chunk-TFAAVSYJ.js → chunk-NO4N4D32.js} +4 -4
- package/dist/{chunk-UOCYI5SA.js → chunk-NRDFBOKE.js} +3 -3
- package/dist/{chunk-34VR5LPD.js → chunk-OAPWDSBW.js} +2 -2
- package/dist/{chunk-3LOW5W6T.js → chunk-OTWTUHWY.js} +93 -42
- package/dist/{chunk-BU4O4T7X.js → chunk-OYRAQXRQ.js} +4 -4
- package/dist/{chunk-QPSLXP6A.js → chunk-PCGU6T7J.js} +2 -2
- package/dist/{chunk-EWKNMUPI.js → chunk-POBH5YCG.js} +1 -1
- package/dist/{chunk-LEIO5LD3.js → chunk-Q7J4T2VP.js} +7 -7
- package/dist/{chunk-ZN4444RL.js → chunk-QYLBGMTA.js} +1 -1
- package/dist/{chunk-COTJ2FIL.js → chunk-RCK2MJRG.js} +2 -2
- package/dist/{chunk-QR6XP6BJ.js → chunk-RUX4M4AX.js} +1 -1
- package/dist/{chunk-3RAAAAPL.js → chunk-SFSE6YDX.js} +55 -15
- package/dist/{chunk-MRZMJPYA.js → chunk-SLORYOL4.js} +1 -1
- package/dist/{chunk-PFSUX4MQ.js → chunk-T4FSZ7LA.js} +7 -7
- package/dist/{chunk-KUM6RRPC.js → chunk-UXARYJQ4.js} +1 -1
- package/dist/{chunk-BKAUXDXK.js → chunk-VBSKVGWP.js} +7 -7
- package/dist/{chunk-FYIISGXR.js → chunk-VRDHLSR2.js} +7 -7
- package/dist/{chunk-UPIXYW7Y.js → chunk-VV445Q2R.js} +3 -3
- package/dist/{chunk-NHYV24WJ.js → chunk-W7BF2RXV.js} +4 -4
- package/dist/{chunk-N63KZWYP.js → chunk-WFYKTAXZ.js} +1 -1
- package/dist/{chunk-FM4OXL5V.js → chunk-WG5OBUIZ.js} +6 -6
- package/dist/{chunk-GRNA7FHI.js → chunk-Y25ONBS6.js} +3 -3
- package/dist/{chunk-GXYVZZO7.js → chunk-Y5S6EUGK.js} +3 -3
- package/dist/{chunk-AS3DUHKZ.js → chunk-YZVNZWKD.js} +4 -4
- package/dist/{chunk-LOXR7Q77.js → chunk-Z42UKOZ6.js} +3 -3
- package/dist/{chunk-NTPBHL6U.js → chunk-Z7XFVFW2.js} +1 -1
- package/dist/{chunk-U5NUHRGX.js → chunk-ZCX43KZ5.js} +1 -1
- package/dist/{chunk-T34WBDIO.js → chunk-ZH5YLKO6.js} +1 -1
- package/dist/{chunk-O4BVDRKJ.js → chunk-ZJHWXRT4.js} +2 -2
- package/dist/{chunk-6LYKHTC2.js → chunk-ZU6LNR3G.js} +3 -3
- package/dist/{chunk-544OP3E4.js → chunk-ZUUA6ZGD.js} +35 -32
- package/dist/{claude-launcher-XHIHOO4U.js → claude-launcher-5ALZD5WD.js} +6 -6
- package/dist/{cli-VZUDY3VM.js → cli-OUL7NQWX.js} +155 -154
- package/dist/{cli-update-notice-PCJN5ZKP.js → cli-update-notice-XZ7I7OWP.js} +2 -2
- package/dist/{command-TWK2QQ5J.js → command-ASXZLHXU.js} +49 -49
- package/dist/{config-JMTO5H4U.js → config-5KMNGNK5.js} +11 -11
- package/dist/{connect-cmd-JPHOQZBW.js → connect-cmd-XR7XPGQ6.js} +11 -11
- package/dist/{container-start-IWW2OVWT.js → container-start-6FHPPHMU.js} +47 -47
- package/dist/{context-cleanup-CTKOHNCW.js → context-cleanup-HHMQV7KH.js} +3 -3
- package/dist/{context-show-cmd-WO6B7UUZ.js → context-show-cmd-4EKSCIF4.js} +12 -12
- package/dist/{control-plane-launch-OZLAMALE.js → control-plane-launch-AJPCKLBL.js} +14 -14
- package/dist/{demo-record-cmd-47RXW75H.js → demo-record-cmd-LVZOYPR7.js} +7 -7
- package/dist/{demo-voice-cmd-ENFCUFP6.js → demo-voice-cmd-DT6VFD2U.js} +18 -18
- package/dist/{docker-KC5ZFIK5.js → docker-T7A6GZDD.js} +9 -9
- package/dist/{doctor-3XXCQPUZ.js → doctor-FATFZWEA.js} +49 -49
- package/dist/{emit-artifact-cmd-5YXDBVXP.js → emit-artifact-cmd-B5ZYJKFM.js} +17 -17
- package/dist/{emit-cmd-VETPASRD.js → emit-cmd-P2XWWVFP.js} +6 -6
- package/dist/{emit-criteria-cmd-5GBTQL3J.js → emit-criteria-cmd-RHFJYNSU.js} +14 -14
- package/dist/{emit-demo-cmd-2YTSDKEN.js → emit-demo-cmd-WELKVLD4.js} +18 -18
- package/dist/{emit-finding-cmd-RXR5O2RB.js → emit-finding-cmd-KRNEWZQP.js} +14 -14
- package/dist/{emit-result-cmd-ND72YSHC.js → emit-result-cmd-NQ6LAE4Z.js} +16 -16
- package/dist/{emit-step-cmd-NXRZAW3R.js → emit-step-cmd-HKOYFSYL.js} +14 -14
- package/dist/{exec-client-RQ2WBQYI.js → exec-client-2JSXFMEW.js} +7 -7
- package/dist/find-unit-3QYPTK6A.js +24 -0
- package/dist/{findings-cmd-OHZRCVPV.js → findings-cmd-EF4QXYRT.js} +14 -14
- package/dist/{fleet-readiness-QTBZ322P.js → fleet-readiness-NBYN45IT.js} +13 -13
- package/dist/{governing-source-LOIIVNWG.js → governing-source-C7MY7KB2.js} +19 -19
- package/dist/{guest-init-R3Z35NG7.js → guest-init-FX2NUAW6.js} +8 -8
- package/dist/{hook-fast-BEFGAPAW.js → hook-fast-JZKCKSXB.js} +3 -3
- package/dist/{hook-install-Y6ZL3OT2.js → hook-install-R66RP7ME.js} +3 -3
- package/dist/host-checks-CZGNR4VC.js +80 -0
- package/dist/{host-key-JDLHIUNO.js → host-key-ACYKDZ4X.js} +7 -7
- package/dist/{image-tag-BAA6APVR.js → image-tag-H5CZTC42.js} +7 -7
- package/dist/index.js +4 -4
- package/dist/{init-IE5IGNVE.js → init-5S6A2SYN.js} +45 -45
- package/dist/init-WDYDTJW2.js +80 -0
- package/dist/{init-agent-YBLFXWPL.js → init-agent-PJFH7OFD.js} +45 -45
- package/dist/{init-cmd-VKCXBALQ.js → init-cmd-5SCU7AVL.js} +25 -25
- package/dist/{init-update-EJS5G2XZ.js → init-update-NXDPWHK6.js} +22 -22
- package/dist/{install-cmd-7LUZQZMJ.js → install-cmd-TMUNQF7U.js} +9 -9
- package/dist/{layout-IZ6XCHGG.js → layout-LTYJDJ5J.js} +3 -3
- package/dist/{logs-WVO5SCTN.js → logs-ZEXFSBVF.js} +6 -6
- package/dist/loop-Q76PDO7L.js +90 -0
- package/dist/machine-GI6SZMEK.js +80 -0
- package/dist/{machine-skills-SDIQFRIX.js → machine-skills-CYCZGBAM.js} +3 -3
- package/dist/{mcp-install-cmd-GF2QAYQE.js → mcp-install-cmd-TVIOPOIO.js} +3 -3
- package/dist/{mcp-serve-cmd-RB3NBRP7.js → mcp-serve-cmd-OCQLRUAK.js} +9 -9
- package/dist/{paths-W2U4BYFR.js → paths-IB5XFML7.js} +6 -6
- package/dist/pending-TX4VIF6P.js +18 -0
- package/dist/{pidfile-ZIDS3G5J.js → pidfile-VET4I455.js} +7 -7
- package/dist/{record-I6XI5YWE.js → record-3V3HQRGY.js} +7 -7
- package/dist/{relay-MUBJFLEI.js → relay-V7LX2WR6.js} +4 -4
- package/dist/{relay-protocol-UK2KZKGH.js → relay-protocol-QGEWESBF.js} +4 -4
- package/dist/{run-cmd-KPAN5DTB.js → run-cmd-M5THCWDD.js} +14 -14
- package/dist/{runner-agents-3ZKMPZ2D.js → runner-agents-OTYZ73WU.js} +3 -3
- package/dist/{runner-env-IKUFXCUV.js → runner-env-3QPJQ2H2.js} +13 -13
- package/dist/{runner-identity-UMODOKXV.js → runner-identity-GTWFQEIN.js} +9 -9
- package/dist/{runner-key-4VZCSL73.js → runner-key-ZXNXWBSP.js} +45 -45
- package/dist/{session-sender-CCXS5LKC.js → session-sender-AEUNLU5R.js} +17 -17
- package/dist/{spec-cmd-UX6VYKE6.js → spec-cmd-4EB45ELL.js} +15 -15
- package/dist/{starter-pack-EQL24NLF.js → starter-pack-HMJWEIVX.js} +4 -4
- package/dist/{state-MD27KY5N.js → state-O3A3CIDQ.js} +7 -7
- package/dist/{status-IRQ5N2CN.js → status-R4JD34DO.js} +45 -45
- package/dist/{sync-cmd-OCHEVJDU.js → sync-cmd-2HOFZYI6.js} +16 -16
- package/dist/update-steps-CGWJJ2IA.js +81 -0
- package/dist/{watch-DDSNYG5M.js → watch-ZY62C5WB.js} +16 -16
- package/dist/{work-claim-cmd-2YYRYOPS.js → work-claim-cmd-4KQYRNRC.js} +21 -21
- package/dist/{work-cmd-PRMB5ETL.js → work-cmd-GNYWSA2O.js} +14 -14
- package/dist/{work-comment-cmd-7SOO2JXW.js → work-comment-cmd-7D3DHQ3O.js} +16 -16
- package/dist/{work-demo-cmd-P7AXOVMK.js → work-demo-cmd-PDILNMRF.js} +14 -14
- package/dist/{work-logs-cmd-PUE23KB5.js → work-logs-cmd-ER3AYV62.js} +14 -14
- package/dist/{work-needs-attention-cmd-SJ6P2V3S.js → work-needs-attention-cmd-MAFPEANV.js} +14 -14
- package/dist/{work-no-change-cmd-6FLPOK7M.js → work-no-change-cmd-GDN5EE6N.js} +14 -14
- package/dist/{work-open-pr-cmd-FTZSIWOM.js → work-open-pr-cmd-56TRIE5I.js} +15 -15
- package/dist/{work-pr-cmd-ZOCB54YC.js → work-pr-cmd-W3T6ELML.js} +14 -14
- package/dist/{work-proofs-cmd-7HOVHHCL.js → work-proofs-cmd-Y2OMM37N.js} +16 -16
- package/dist/{work-proofs-record-YWUBA3IS.js → work-proofs-record-I2VLOMRD.js} +22 -22
- package/dist/{work-stop-cmd-LKDWZL24.js → work-stop-cmd-PREZOSNY.js} +14 -14
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +8 -0
- package/skill-pack/maintained/outerlayer-spec/SKILL.md +149 -0
- package/skill-pack/maintained/outerlayer-spec/references/revise-an-issue.md +14 -0
- package/skill-pack/shipped.json +1 -0
- package/skill-pack/template/spec/SKILL.md +5 -120
- package/dist/caller-IMM277FA.js +0 -23
- package/dist/find-unit-6YALHLSE.js +0 -24
- package/dist/host-checks-3OKNIXBF.js +0 -80
- package/dist/init-LGMYM54E.js +0 -80
- package/dist/loop-ZMIBNWIP.js +0 -90
- package/dist/machine-WILRS4XJ.js +0 -80
- package/dist/pending-ZYVVCMCB.js +0 -18
- package/dist/update-steps-PCZORLEO.js +0 -81
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, openPullRequests, MAX_TEST_FILE_BYTES, wholeEntries } from './chunk-
|
|
4
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
3
|
+
import { itemsSentence, criteriaOf, hostItemsOf, loadCitationFinder, testFileMatcher, planCriteria, wholeItems, judgeGroups, failedItems, inCriteriaOrder, testsByCriterion, oneLineReason, criterionInputs, parseJudgeAnswer, judgedItems, openPullRequests, MAX_TEST_FILE_BYTES, wholeEntries } from './chunk-722KABMV.js';
|
|
4
|
+
import { RUNNER_PROTOCOL } from './chunk-KVWFAAAQ.js';
|
|
5
5
|
import { sha256OfFile, downloadPinned, VoiceDownloadError } from './chunk-2PGI6RDE.js';
|
|
6
6
|
import { zodProblem } from './chunk-I3LTIAOR.js';
|
|
7
|
-
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-
|
|
8
|
-
import { upgradedStarterText } from './chunk-
|
|
9
|
-
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-
|
|
10
|
-
import { writeDockerClientConfig } from './chunk-
|
|
11
|
-
import { senderPidfile } from './chunk-
|
|
12
|
-
import { installScrubContext } from './chunk-
|
|
7
|
+
import { hasStoredCredential, storedCredentialVariables, storeAgentCredential, isAgentName, credentialFromStdin } from './chunk-A4NWDCWS.js';
|
|
8
|
+
import { upgradedStarterText } from './chunk-4T2NBVC4.js';
|
|
9
|
+
import { HELPER_PATH, HELPER_RECORD, DOCKERD_LOG } from './chunk-DZFIRKDZ.js';
|
|
10
|
+
import { writeDockerClientConfig } from './chunk-N6BNN6ZD.js';
|
|
11
|
+
import { senderPidfile } from './chunk-ECNWHXIO.js';
|
|
12
|
+
import { installScrubContext } from './chunk-3T7PXUHN.js';
|
|
13
13
|
import { readsJobState, READ_JOB_STATE_FORMATS, jobStateFormatOf } from './chunk-ZVB57WI6.js';
|
|
14
|
-
import { runnerImageVersion } from './chunk-
|
|
15
|
-
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-
|
|
14
|
+
import { runnerImageVersion } from './chunk-UXARYJQ4.js';
|
|
15
|
+
import { claimCalls, spoolHomeFor, itemCalls, claimItem, leftByRunnerKey, configForJob } from './chunk-RCK2MJRG.js';
|
|
16
16
|
import { receiveFiles } from './chunk-NN33FYXG.js';
|
|
17
|
-
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-
|
|
18
|
-
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-
|
|
17
|
+
import { readDefaultBranchFiles, readDefaultBranchHead, buildRepositoryImage, fetchCommit, readBranchHead, diffBetween, prepareImageBuild, KEY_PREFIX, TAG_HOST, SHARED_OWNER, SHARED_NAME, universalBase, metadataFromLabels, writeRecord } from './chunk-Q7J4T2VP.js';
|
|
18
|
+
import { FETCHED_DIR, toolsDockerfile, FETCHED_FFMPEG, FETCHED_GH, FETCHED_TINI, FETCHED_HEADLESS_SHELL, FETCHED_PLAYWRIGHT_FFMPEG, FETCHED_VOICE_DIR } from './chunk-NO4N4D32.js';
|
|
19
19
|
import { isSameProcess, startTimeOf } from './chunk-JBJTC3UU.js';
|
|
20
20
|
import { currentCliBuild } from './chunk-OGFGZQA3.js';
|
|
21
|
-
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-
|
|
22
|
-
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-
|
|
23
|
-
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-
|
|
24
|
-
import { postJson, WorkCommandError, isSignatureRefusal, getJson } from './chunk-
|
|
25
|
-
import { isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, keyRunnerFactory, runnerCredentialProblem, builtinKind, optionalEgress, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxSizeOf, readOnlyOption, sandboxTimeLimitMinutes, networkOf, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-
|
|
26
|
-
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-
|
|
27
|
-
import { firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, withAnswerProtocol, JUDGE_TREE, MAX_REPORT_BYTES, runnerLabelValue, parseSize, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, JUDGE_DIR, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, JUDGE_ITEMS, answerFileName, hashJudgeProgram, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-
|
|
28
|
-
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-
|
|
21
|
+
import { vmExecArgs, runExec, execCapture, waitForAgent } from './chunk-BBRXFXBB.js';
|
|
22
|
+
import { socketPathProblem, vsockLinks, linkVsockSockets, GUEST_CID, LEASE_LINK } from './chunk-NRDFBOKE.js';
|
|
23
|
+
import { describeCallFailure, shortClaim, retrySend, commandWithShim, logStamp, createRunnerLog, formatDuration, removeKeptContext, formatClock, stageGovernedContext, keptContextTree, removeStagedContext, WORKFLOW_PERMISSION_REASON, refusalCode, SELF_GOVERNED, resolveGoverningSource, prefetchGovernedContext, controlPlaneTokenFailure, keepStagedContext, pinnedSourceOf, shimScript } from './chunk-VBSKVGWP.js';
|
|
24
|
+
import { postJson, WorkCommandError, isSignatureRefusal, getJson } from './chunk-5OSY3LK3.js';
|
|
25
|
+
import { isBuiltinContainer, isBuiltinVm, isBuiltinSandbox, keyRunnerFactory, runnerCredentialProblem, builtinKind, optionalEgress, egressSummary, DEFAULT_WORKSPACE_KEEP_DAYS, readOnlyRemoteOf, DEFAULT_CHECK_TIME_LIMIT_MINUTES, DEFAULT_SETUP_MINUTES, allowHostProblem, systemClock, emptyEgressCounts, hostAllowed, sandboxSizeOf, readOnlyOption, sandboxTimeLimitMinutes, networkOf, imageBuildOf, DEFAULT_SAVED_STATE_MAX_BYTES } from './chunk-EUHUIIGT.js';
|
|
26
|
+
import { formatBytes, volumeBytes, allocatedBytes, DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK, freeBytes } from './chunk-3C23ZPWR.js';
|
|
27
|
+
import { firstLine, writeJobFile, readJobFile, spawnRun, RUNNER_LABEL, BUILD_LABEL, said, NETWORK_HELPER_MEMORY, createDockerHost, builderSpec, childEnvironment, containerExecArgs, readDu, withAnswerProtocol, JUDGE_TREE, MAX_REPORT_BYTES, runnerLabelValue, parseSize, readJobFileChecked, NETWORK_READY_FILE, networkHelperName, prepareRunArgs, containerRunArgs, judgeCommand, JUDGE_DIR, WORKSPACE_LABEL, homeCopyRunArgs, networkHelperRunArgs, JUDGE_MAX_TURNS, JUDGE_ITEMS, answerFileName, hashJudgeProgram, identityScript, identityArgs, parseIdentity, mountableHome, homeCopyScript, homeCopyArgs, COMMAND_DIR, judgeProgramRecord, MAX_ITEMS_BYTES, JUDGE_REPORT, identityRunArgs, SAVED_STATE_LABEL } from './chunk-ERG3WCEC.js';
|
|
28
|
+
import { universalImagePending, RecipeError, writeSanitizedRecipe, classifyProperties, DOCKER_FEATURE } from './chunk-FUZEOWF4.js';
|
|
29
29
|
import { sanitizeTerminal, planArtifactUpload } from './chunk-26BFN6DH.js';
|
|
30
|
-
import { sharedSkillNames, skillConflictMessage } from './chunk-
|
|
30
|
+
import { sharedSkillNames, skillConflictMessage } from './chunk-I62FX622.js';
|
|
31
31
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
32
|
-
import { signerFor } from './chunk-
|
|
33
|
-
import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, sessionsDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-
|
|
34
|
-
import { BUILD_HOME, SandboxError, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, repositoriesOf, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, checkoutPath, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, toolProxyEnvironment } from './chunk-
|
|
35
|
-
import { agentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, currentAgentCredential, removedAgentCredentialValues, managedAgentCredential, 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-
|
|
32
|
+
import { signerFor } from './chunk-I5U6CFH4.js';
|
|
33
|
+
import { vmAssetsDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, workspacesDir, jobsDir, storeScopes, spoolDir, orgStoreIn, rootfsDir, imagesDir, sessionsDir, builderCacheDiskPath, buildsDir, buildDir, ghConfigDir, runnerDirOfBuild, mirrorDir, orgHomeDir, jobConsolePath, vsockPath, builderConsolePath, rootfsPathFor, diskTemplatesDir, deliveryDir, SHIM_DIR } from './chunk-JIANCWJ3.js';
|
|
34
|
+
import { BUILD_HOME, SandboxError, JOB_MOUNT, heldBuildAuthority, IMAGE_BUNDLES, writeTrustFiles, buildEnvironment, trustEnvironment, CHECKOUT_DIR, parseIsolation, containerLocalAddress, destinationEnvironment, withHooksPath, startBuildServices, headerVariables, authorEnvironment, sharedUserEnvironment, withTunnelRecord, commitIdentityRecord, repositoriesOf, RELAY_PORT, repositoryPath, lifecycleWorkdir, CHECK_ITEMS_FILE, parseProxied, readBundleScript, applyTrust, STAND_IN, proxyEnvironment, describeSandboxError, dropBuildAuthority, sandboxSettingsFrom, createSandboxClient, hostKeyOf, buildAuthorityFor, checkEnvironment, withMiseVariables, checkoutPath, primaryOf, variablesFor, carried6to4, classifyAddress, EVAL_INPUT_DIR, isMiseVariableAllowed, variableForPath, droppedRequestHeaders, hasDotDotSegment, routeNameOf, toolProxyEnvironment } from './chunk-4FHDVWKO.js';
|
|
35
|
+
import { agentCredential, RUNNER_WORDED_REASONS, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, RELAY_USER, currentAgentCredential, removedAgentCredentialValues, managedAgentCredential, 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-EJ7ZXBXS.js';
|
|
36
36
|
import { versionAtLeast } from './chunk-SF2TBJBP.js';
|
|
37
|
-
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, judgeAgent, 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-
|
|
38
|
-
import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-
|
|
39
|
-
import { MAINTAINED_SKILLS } from './chunk-
|
|
37
|
+
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, judgeAgent, 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-J6KKJGR7.js';
|
|
38
|
+
import { sessionFolderIn, legacyAgent, defaultAgents, parsePolicy, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, orderSessions, extractFacts, sessionsToTimeline, resolvePackRoot } from './chunk-QYLBGMTA.js';
|
|
39
|
+
import { MAINTAINED_SKILLS } from './chunk-ELPP5OHC.js';
|
|
40
40
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
41
41
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
42
42
|
import { scrubText, MIN_SCRUBBED_LITERAL, setCustomScrubbers, setLocalIdentity, setRepoRoot, forkFor, scrubDeep } from './chunk-7GJEQXOH.js';
|
|
@@ -73,6 +73,7 @@ var RESUME_DIR = "/build/home/.outerlayer/resume";
|
|
|
73
73
|
var META_FILE = "meta.json";
|
|
74
74
|
var SESSION_ID_VARIABLE = "OUTERLAYER_SESSION_ID";
|
|
75
75
|
var RESUME_SESSION_VARIABLE = "OUTERLAYER_RESUME_SESSION";
|
|
76
|
+
var CONTINUE_VARIABLE = "OUTERLAYER_CONTINUE";
|
|
76
77
|
var WORK_ITEM_ID = /^[A-Za-z0-9_-]{1,64}$/;
|
|
77
78
|
var SESSION_ID = /^[A-Za-z0-9-]{1,64}$/;
|
|
78
79
|
var REASON_TEXT = {
|
|
@@ -225,7 +226,7 @@ function packKeptSession(dir, meta, agents = defaultAgents(), job) {
|
|
|
225
226
|
return Readable.from(pack());
|
|
226
227
|
}
|
|
227
228
|
function resumeDecision(input, agents = defaultAgents()) {
|
|
228
|
-
if (input.queue !== "amend") return void 0;
|
|
229
|
+
if (input.queue !== "amend" && input.continueSession !== true) return void 0;
|
|
229
230
|
if (!input.builtin || jobAgent(input.job, agents)?.adapter.launch?.session === void 0) return { resumed: false, reason: "build_type_cannot_resume" };
|
|
230
231
|
if (input.kept === void 0) return { resumed: false, reason: "no_saved_session" };
|
|
231
232
|
return { resumed: true, fromSessionId: input.kept.sessionId, fromClaimId: input.kept.claimId };
|
|
@@ -233,7 +234,9 @@ function resumeDecision(input, agents = defaultAgents()) {
|
|
|
233
234
|
async function prepareResume(input, agents = defaultAgents()) {
|
|
234
235
|
const sessionId = (input.newSessionId ?? randomUUID)();
|
|
235
236
|
const fresh = (resume) => ({ sessionId, resume, env: { [SESSION_ID_VARIABLE]: sessionId } });
|
|
236
|
-
if (input.queue !== "amend") return fresh(void 0);
|
|
237
|
+
if (input.queue !== "amend" && input.continueSession !== true) return fresh(void 0);
|
|
238
|
+
const build = input.queue !== "amend";
|
|
239
|
+
const what = build ? "build" : "agent job";
|
|
237
240
|
const dir = keptSessionDir(input.configPath, input.organizationId, input.workItemId);
|
|
238
241
|
let kept = readKeptSession(dir, agents, input.job);
|
|
239
242
|
if (kept !== void 0 && input.requireScrubNote === true && kept.meta.scrubbed !== true) {
|
|
@@ -241,20 +244,20 @@ async function prepareResume(input, agents = defaultAgents()) {
|
|
|
241
244
|
input.log("the saved session was kept before the runner scrubbed sessions, so it is removed");
|
|
242
245
|
kept = void 0;
|
|
243
246
|
}
|
|
244
|
-
const decision = resumeDecision({ queue: input.queue, builtin: input.builtin, kept: kept?.meta, job: input.job }, agents);
|
|
247
|
+
const decision = resumeDecision({ queue: input.queue, continueSession: input.continueSession, builtin: input.builtin, kept: kept?.meta, job: input.job }, agents);
|
|
245
248
|
if (!decision.resumed) {
|
|
246
|
-
input.log(
|
|
249
|
+
input.log(`${what} starts fresh because ${REASON_TEXT[decision.reason]}`);
|
|
247
250
|
return fresh(decision);
|
|
248
251
|
}
|
|
249
252
|
const meta = kept.meta;
|
|
250
253
|
try {
|
|
251
254
|
await input.restore({ dir, meta });
|
|
252
255
|
} catch (err) {
|
|
253
|
-
input.log(
|
|
256
|
+
input.log(`${what} starts fresh because ${REASON_TEXT.session_not_loaded}: ${describeCallFailure(err)}`);
|
|
254
257
|
return fresh({ resumed: false, reason: "session_not_loaded" });
|
|
255
258
|
}
|
|
256
|
-
input.log(
|
|
257
|
-
return { sessionId, resume: decision, env: { [SESSION_ID_VARIABLE]: sessionId, [RESUME_SESSION_VARIABLE]: `${RESUME_DIR}/${sessionFilesOf(meta.sessionId, agents, input.job).entries[0]}
|
|
259
|
+
input.log(`${what} continues session ${meta.sessionId.slice(0, 8)} of claim ${shortClaim(meta.claimId)}`);
|
|
260
|
+
return { sessionId, resume: decision, env: { [SESSION_ID_VARIABLE]: sessionId, [RESUME_SESSION_VARIABLE]: `${RESUME_DIR}/${sessionFilesOf(meta.sessionId, agents, input.job).entries[0]}`, ...build ? { [CONTINUE_VARIABLE]: "1" } : {} } };
|
|
258
261
|
}
|
|
259
262
|
var COPY_OUT_SCRIPT = 'cd "$1" 2>/dev/null && [ -f "$2" ] || exit 3; shift; for entry in "$@"; do if [ -e "$entry" ]; then set -- "$@" "$entry"; fi; shift; done; exec tar -cf - "$@"';
|
|
260
263
|
var SESSION_COPY_MS = 15 * 6e4;
|
|
@@ -4733,6 +4736,50 @@ async function endSandboxCommand(runtime, state, jobDir, warn) {
|
|
|
4733
4736
|
warn(`ending the build's command in its sandbox failed: ${describeCallFailure(err)} \xB7 continuing`);
|
|
4734
4737
|
}
|
|
4735
4738
|
}
|
|
4739
|
+
var SESSION_BYTES_LIMIT = 67108864;
|
|
4740
|
+
var SESSION_MOVE_MS = 9e5;
|
|
4741
|
+
var BASE64_OUTPUT_SCRIPT = 'f="$(mktemp)" || exit 70; "$@" > "$f"; code=$?; base64 "$f" | tr -d "\\n"; rm -f "$f"; exit "$code"';
|
|
4742
|
+
async function bytesOf(source, limit) {
|
|
4743
|
+
if (typeof source === "string" || Buffer.isBuffer(source)) return Buffer.from(source);
|
|
4744
|
+
const parts = [];
|
|
4745
|
+
let size = 0;
|
|
4746
|
+
for await (const part of source) {
|
|
4747
|
+
const bytes = Buffer.from(part);
|
|
4748
|
+
size += bytes.length;
|
|
4749
|
+
if (size > limit) throw new Error(`the session holds more than ${limit} bytes`);
|
|
4750
|
+
parts.push(bytes);
|
|
4751
|
+
}
|
|
4752
|
+
return Buffer.concat(parts);
|
|
4753
|
+
}
|
|
4754
|
+
function sessionGuestOfSandbox(runtime, own) {
|
|
4755
|
+
const state = own.container;
|
|
4756
|
+
const exec = (argv) => ({ container: state.container, user: state.agentUser ?? ADDED_USER, env: NO_ENV, argv });
|
|
4757
|
+
const host = async () => (await inSandbox(runtime, own)).host;
|
|
4758
|
+
return {
|
|
4759
|
+
run: async (argv) => (await host()).exec(exec(argv)),
|
|
4760
|
+
stream: async (argv, io) => {
|
|
4761
|
+
if (io.signal?.aborted === true) throw new Error("the copy was stopped before it started");
|
|
4762
|
+
const result = io.stdin === void 0 ? await (await host()).exec(exec(["/bin/sh", "-c", BASE64_OUTPUT_SCRIPT, "sh", ...argv]), { timeoutMs: SESSION_MOVE_MS }) : await (await host()).exec({ ...exec(argv), stdin: await bytesOf(io.stdin, SESSION_BYTES_LIMIT) }, { timeoutMs: SESSION_MOVE_MS });
|
|
4763
|
+
if (io.stdin === void 0 && result.stdout !== "") io.onStdout?.(Buffer.from(result.stdout, "base64"));
|
|
4764
|
+
if (result.stderr !== "") io.onStderr?.(Buffer.from(result.stderr));
|
|
4765
|
+
return { status: result.status };
|
|
4766
|
+
}
|
|
4767
|
+
};
|
|
4768
|
+
}
|
|
4769
|
+
async function restoreSessionIntoSandbox(runtime, own, keptDir, meta, job) {
|
|
4770
|
+
const restored = await restoreSession({ guest: sessionGuestOfSandbox(runtime, own), tar: packKeptSession(keptDir, meta, runtime.agents, job) });
|
|
4771
|
+
if (!restored.ok) throw new Error(restored.reason);
|
|
4772
|
+
}
|
|
4773
|
+
async function ensureSandboxContainerRunning(runtime, own) {
|
|
4774
|
+
try {
|
|
4775
|
+
const sandboxed = await inSandbox(runtime, own);
|
|
4776
|
+
if (own.container.stopped !== true) return void 0;
|
|
4777
|
+
const started = await sandboxed.host.start(own.container.container);
|
|
4778
|
+
return started.status === 0 ? void 0 : `the build's container could not be started again (exit ${started.status})`;
|
|
4779
|
+
} catch (err) {
|
|
4780
|
+
return describeCallFailure(err);
|
|
4781
|
+
}
|
|
4782
|
+
}
|
|
4736
4783
|
var HOOK_ERRORS_IN_CONTAINER = "/build/home/.outerlayer/spool/hook-errors.log";
|
|
4737
4784
|
async function copySandboxHookErrors(runtime, state, jobDir) {
|
|
4738
4785
|
try {
|
|
@@ -8041,13 +8088,17 @@ async function guestOf(job, runtime) {
|
|
|
8041
8088
|
const why = await ensureContainerRunning(runtime, job.container);
|
|
8042
8089
|
return why === void 0 ? { guest: sessionGuestOfContainer(runtime, job.container) } : { reason: why };
|
|
8043
8090
|
}
|
|
8044
|
-
|
|
8091
|
+
if (job.sandbox !== void 0) {
|
|
8092
|
+
const why = await ensureSandboxContainerRunning(runtime, job.sandbox);
|
|
8093
|
+
return why === void 0 ? { guest: sessionGuestOfSandbox(runtime, job.sandbox) } : { reason: why };
|
|
8094
|
+
}
|
|
8095
|
+
return { reason: "the build is not a container, microVM or sandbox build" };
|
|
8045
8096
|
}
|
|
8046
8097
|
async function keepEndedSession(input) {
|
|
8047
8098
|
const { job, log, tag } = input;
|
|
8048
8099
|
if (job.sessionId === void 0 || job.workItemId === void 0 || job.sessionKept === true) return false;
|
|
8049
8100
|
if (job.queue === "revise") return false;
|
|
8050
|
-
if (job.microvm === void 0 && job.container === void 0) return false;
|
|
8101
|
+
if (job.microvm === void 0 && job.container === void 0 && job.sandbox === void 0) return false;
|
|
8051
8102
|
if (jobAgent(job, input.runtime.agents)?.adapter.launch?.session === void 0) return false;
|
|
8052
8103
|
const found = await guestOf(job, input.runtime);
|
|
8053
8104
|
if ("reason" in found) {
|
|
@@ -9590,7 +9641,7 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
|
|
|
9590
9641
|
if (job.pid !== void 0 && isGroupAlive(job.pid)) {
|
|
9591
9642
|
await stopProcessGroup(job.pid);
|
|
9592
9643
|
}
|
|
9593
|
-
const sessionRuntime = (build ?? vmBuild)?.runtime;
|
|
9644
|
+
const sessionRuntime = (build ?? vmBuild ?? sandboxBuild)?.runtime;
|
|
9594
9645
|
if (sessionRuntime !== void 0) {
|
|
9595
9646
|
if (!valuesNotHeld) {
|
|
9596
9647
|
if (await keepEndedSession({ job, jobDirPath, runtime: sessionRuntime, configPath: config.configPath, log, tag, now, scrub: keptSessionScrub(config, job, jobDirPath) })) writeJobFile(jobFilePath, job);
|
|
@@ -10297,7 +10348,7 @@ var STAGING_GRACE_MS = 36e5;
|
|
|
10297
10348
|
var MAX_STATE_IDS = 1e3;
|
|
10298
10349
|
var keptAtOf = (entry) => Date.parse(entry.kept.record.keptAt);
|
|
10299
10350
|
var oldestFirst2 = (entries) => [...entries].sort((a, b) => keptAtOf(a) - keptAtOf(b));
|
|
10300
|
-
var
|
|
10351
|
+
var bytesOf2 = (entries) => entries.reduce((sum, entry) => sum + entry.kept.record.bytes, 0);
|
|
10301
10352
|
function allEntries(configPath) {
|
|
10302
10353
|
return storeScopes(configPath).flatMap((scope) => listItemDisks(configPath, scope).map((kept) => ({ scope, kept })));
|
|
10303
10354
|
}
|
|
@@ -10380,7 +10431,7 @@ async function removeItemDisks(input) {
|
|
|
10380
10431
|
for (const scope of new Set(entries.map((entry) => entry.scope))) {
|
|
10381
10432
|
if (scope === void 0) continue;
|
|
10382
10433
|
const mine = oldestFirst2(entries.filter((entry) => entry.scope === scope && !gone.has(entry)));
|
|
10383
|
-
let total2 =
|
|
10434
|
+
let total2 = bytesOf2(mine);
|
|
10384
10435
|
for (const entry of mine.slice(0, -1)) {
|
|
10385
10436
|
if (total2 <= limits2.orgMax) break;
|
|
10386
10437
|
const before = gone.size;
|
|
@@ -10388,7 +10439,7 @@ async function removeItemDisks(input) {
|
|
|
10388
10439
|
if (gone.size > before) total2 -= entry.kept.record.bytes;
|
|
10389
10440
|
}
|
|
10390
10441
|
}
|
|
10391
|
-
let total =
|
|
10442
|
+
let total = bytesOf2(entries.filter((entry) => !gone.has(entry)));
|
|
10392
10443
|
for (const entry of oldestFirst2(entries.filter((candidate) => !gone.has(candidate)))) {
|
|
10393
10444
|
if (total <= limits2.max) break;
|
|
10394
10445
|
const before = gone.size;
|
|
@@ -13662,4 +13713,4 @@ async function runHostChecks(input) {
|
|
|
13662
13713
|
}
|
|
13663
13714
|
}
|
|
13664
13715
|
|
|
13665
|
-
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, CRITERIA_CHECK, 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, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, builtOf, checksIn, claimPermissionProblem, claimRun, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, 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, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, 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, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, recordsProofsOnly, recoverLostJobs, releaseLease, removeOldestUntil, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, retryFailedReleases, runCommand, runCommandOf, runHook, runHostChecks, runHousekeeping, runIsolation, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|
|
13716
|
+
export { ADOPTED_FETCH_RETRY_WINDOW_MS, ALREADY_RELEASED, AttemptLogBook, CRITERIA_CHECK, 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, SandboxGoneError, agentCredentialCheck, appendCommandLog, attemptNote, builtOf, checksIn, claimPermissionProblem, claimRun, commandItems, commandLogOffset, containerCommandExec, createContainerRuntime, createHousekeepingDocker, createLeaseChannel, currentSkillCommand, decideHostBuildSkill, deliverCommitHooks, deliverContainerHooks, deliverExecMaven, deliverJobFiles, deliverSandboxHooks, 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, inSandbox, inTeardown, installTrust, isContainerTracked, isGroupAlive, isIdle, isIsolatedJob, isJudgeCheck, isMicroVmTracked, isPlaceholderCommand, isReadable, isSandboxTracked, isTimedOut, isTracked, isUnfinished, itemScope, itemTag, jobEnv, jobRecordsClaim, judgeProbe, keepGhConfigCurrent, keptCommitsLine, keptSandboxIds, leaseExpiresAtMs, leaseTimeLeftMs, lifecycleFailureReason, lifecycleSteps, listAdoptableJobs, listItemDisks, 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, probeSandboxCommand, provisionContainer, provisionEnvironment, provisionMicroVm, provisionSandbox, reachDockerStep, readConfigObject, readCpuUsec, readDefinitions, readProvisionOut, readRecords, recordsProofsOnly, recoverLostJobs, releaseLease, removeOldestUntil, renewLease, renewRun, resolveHostBuild, restartSender, restoreSessionIntoContainer, restoreSessionIntoMicroVm, restoreSessionIntoSandbox, retryFailedReleases, runCommand, runCommandOf, runHook, runHostChecks, runHousekeeping, runIsolation, runRunnerInit, runWithSpawn, sampleGuest, savedStatesDir, scrubReason, serveLease, setStage, setUpRunnerCgroup, shellQuote, startHostServices, startMicroVmCommand, startSandboxCommand, startSender, startServicesFor, stopOrphanedMicroVms, stoppedHelperReason, stripTerminalControls, supportsContainerBuilds, supportsMicroVmBuilds, sweepImageBuilders, sweepSandboxes, testProofIn, timeoutAfter, unfinishedJobs, usableCpus, vmAlive, withTunnelLog, workdirProblem, writeGuestGhConfig, writeRunnerInit };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveCredentials, postBytes, RateLimitedError, postJson, getJson, getBytes } from './chunk-
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
3
|
+
import { resolveCredentials, postBytes, RateLimitedError, postJson, getJson, getBytes } from './chunk-5OSY3LK3.js';
|
|
4
|
+
import { detectActiveSession } from './chunk-2VJVPP5Y.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-26BFN6DH.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
8
|
-
import { logHookError } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-PCGU6T7J.js';
|
|
8
|
+
import { logHookError } from './chunk-W7BF2RXV.js';
|
|
9
9
|
import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readCloudConfigStrict, readCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
|
|
4
|
-
import { signRunnerRequest, signerFor } from './chunk-
|
|
4
|
+
import { signRunnerRequest, signerFor } from './chunk-I5U6CFH4.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
|
-
import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-
|
|
6
|
+
import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-LVELQ635.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
9
9
|
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 { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-JIANCWJ3.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,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { toolsDockerfile } from './chunk-
|
|
4
|
-
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-
|
|
3
|
+
import { toolsDockerfile } from './chunk-NO4N4D32.js';
|
|
4
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-NDQC2WUJ.js';
|
|
5
5
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
6
|
-
import { runnerLabelValue } from './chunk-
|
|
7
|
-
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-
|
|
8
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-
|
|
9
|
-
import { withGitConfig, tokenHeader } from './chunk-
|
|
10
|
-
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-
|
|
6
|
+
import { runnerLabelValue } from './chunk-ERG3WCEC.js';
|
|
7
|
+
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-FUZEOWF4.js';
|
|
8
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-JIANCWJ3.js';
|
|
9
|
+
import { withGitConfig, tokenHeader } from './chunk-4FHDVWKO.js';
|
|
10
|
+
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-J6KKJGR7.js';
|
|
11
11
|
import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
12
12
|
import { tmpdir } from 'os';
|
|
13
13
|
import { join } from 'path';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { CLAUDE_CODE_HOOKS, OPENCODE_CODEC } from './chunk-PLVHIQJN.js';
|
|
4
4
|
import { CLAUDE_CODE, OPENCODE, NATIVE_AGENTS, LEGACY_AGENT, homeRelative } from './chunk-7PZDPISM.js';
|
|
5
|
-
import { MAINTAINED_SKILLS } from './chunk-
|
|
5
|
+
import { MAINTAINED_SKILLS } from './chunk-ELPP5OHC.js';
|
|
6
6
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { forkFor, RAW_MIRROR_SEGMENTS, WarningCollector, WARNING_CODES, isNewerThanSupported, bucketsFromTurns, costOfUsage } from './chunk-7GJEQXOH.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { keyRunnerFactory, RunnerConfigError } from './chunk-
|
|
4
|
-
import { orgHomeDir } from './chunk-
|
|
3
|
+
import { keyRunnerFactory, RunnerConfigError } from './chunk-EUHUIIGT.js';
|
|
4
|
+
import { orgHomeDir } from './chunk-JIANCWJ3.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|
|
@@ -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-QYLBGMTA.js';
|
|
4
4
|
|
|
5
5
|
createRequire(import.meta.url);
|
|
6
6
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-26BFN6DH.js';
|
|
4
|
-
import { isAgentsMdLayout } from './chunk-
|
|
5
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
4
|
+
import { isAgentsMdLayout } from './chunk-ZCX43KZ5.js';
|
|
5
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-PCGU6T7J.js';
|
|
6
6
|
import { versionAtLeast } from './chunk-SF2TBJBP.js';
|
|
7
7
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
8
|
-
import { machineSkillsState, staleAgentSkills } from './chunk-
|
|
8
|
+
import { machineSkillsState, staleAgentSkills } from './chunk-ZJHWXRT4.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
|
-
import { hasSymlinkComponent } from './chunk-
|
|
11
|
-
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-
|
|
12
|
-
import { MAINTAINED_SKILLS } from './chunk-
|
|
10
|
+
import { hasSymlinkComponent } from './chunk-B2SHUO6J.js';
|
|
11
|
+
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, AGENTS_SKILLS_BASE, defaultAgents, namesCore, MACHINE_SKILL_PATH, skillBases, isMaintainedCopy, contextAgents, loadTemplateFiles, splitRawFile } from './chunk-QYLBGMTA.js';
|
|
12
|
+
import { MAINTAINED_SKILLS } from './chunk-ELPP5OHC.js';
|
|
13
13
|
import { execFileSync } from 'child_process';
|
|
14
14
|
import { existsSync, readFileSync, writeFileSync, realpathSync, readdirSync } from 'fs';
|
|
15
15
|
import { join, dirname, posix, basename, isAbsolute, relative } from 'path';
|
|
@@ -74,7 +74,9 @@ function applyReferenceRewrites(root, rewrites) {
|
|
|
74
74
|
|
|
75
75
|
// src/build-skill.ts
|
|
76
76
|
var BUILD_PHASES = ["Intake", "Criteria", "Implement", "Pull request", "Evidence"];
|
|
77
|
+
var SPEC_STEPS = ["Scope", "Draft", "Verdict", "Size", "Reader pass", "Checkpoint", "File", "Build"];
|
|
77
78
|
var MACHINE_CORE = `${MACHINE_SKILL_PATH}/outerlayer-build/SKILL.md`;
|
|
79
|
+
var MACHINE_SPEC_CORE = `${MACHINE_SKILL_PATH}/outerlayer-spec/SKILL.md`;
|
|
78
80
|
var CHANGES_HEADING = "## Changes for this repository";
|
|
79
81
|
var NAME = "Build skill";
|
|
80
82
|
function changeHeadings(text) {
|
|
@@ -99,8 +101,8 @@ function skillsFolders(agents = defaultAgents()) {
|
|
|
99
101
|
}, emitBuilders(agents));
|
|
100
102
|
return [.../* @__PURE__ */ new Set([AGENTS_SKILLS_BASE, ...compiled.files.map((file) => dirname(dirname(file.path)))])];
|
|
101
103
|
}
|
|
102
|
-
function
|
|
103
|
-
const file = loadTemplateFiles().find((f) => f.path === `${skillDir(
|
|
104
|
+
function shortSkill(skill) {
|
|
105
|
+
const file = loadTemplateFiles().find((f) => f.path === `${skillDir(skill)}/SKILL.md`);
|
|
104
106
|
if (file === void 0) return "";
|
|
105
107
|
return splitRawFile(file.content).body.split("\n").filter((line) => !line.startsWith("<!--")).join("\n").trim();
|
|
106
108
|
}
|
|
@@ -111,13 +113,13 @@ var read = (abs) => {
|
|
|
111
113
|
return void 0;
|
|
112
114
|
}
|
|
113
115
|
};
|
|
114
|
-
function
|
|
115
|
-
const source = `${folders[0]}/
|
|
116
|
-
return (existsSync(join(repoRoot, source)) ? [source] : folders.slice(1).map((f) => `${f}/
|
|
116
|
+
function copiesOf(repoRoot, folders, skill) {
|
|
117
|
+
const source = `${folders[0]}/${skill}/SKILL.md`;
|
|
118
|
+
return (existsSync(join(repoRoot, source)) ? [source] : folders.slice(1).map((f) => `${f}/${skill}/SKILL.md`)).map((path) => ({ path, text: read(join(repoRoot, path)) })).filter((b) => b.text !== void 0);
|
|
117
119
|
}
|
|
118
120
|
function checkBuildSkill(repoRoot) {
|
|
119
121
|
const folders = [".outerlayer/skills", ...skillsFolders()];
|
|
120
|
-
const builds =
|
|
122
|
+
const builds = copiesOf(repoRoot, folders, "build");
|
|
121
123
|
const checks = [];
|
|
122
124
|
const detached = builds.filter((b) => !namesCore(b.text));
|
|
123
125
|
if (detached.length > 0) {
|
|
@@ -127,7 +129,7 @@ function checkBuildSkill(repoRoot) {
|
|
|
127
129
|
detail: `${detached.map((b) => b.path).join(", ")} does not name outerlayer-build, so it gets no updates from the core`,
|
|
128
130
|
fix: `Move to the short build, and put your own changes under the name of the phase each applies to:
|
|
129
131
|
|
|
130
|
-
${
|
|
132
|
+
${shortSkill("build")}`
|
|
131
133
|
});
|
|
132
134
|
}
|
|
133
135
|
for (const build of builds.filter((b) => namesCore(b.text))) {
|
|
@@ -164,6 +166,43 @@ ${shortBuild()}`
|
|
|
164
166
|
}
|
|
165
167
|
return checks;
|
|
166
168
|
}
|
|
169
|
+
var SPEC_NAME = "Spec skill";
|
|
170
|
+
function checkSpecSkill(repoRoot) {
|
|
171
|
+
const seen = /* @__PURE__ */ new Set();
|
|
172
|
+
const specs = copiesOf(repoRoot, [".outerlayer/skills", ...skillsFolders()], "spec").filter((spec) => {
|
|
173
|
+
let key = spec.path;
|
|
174
|
+
try {
|
|
175
|
+
key = realpathSync(join(repoRoot, spec.path));
|
|
176
|
+
} catch {
|
|
177
|
+
}
|
|
178
|
+
if (seen.has(key)) return false;
|
|
179
|
+
seen.add(key);
|
|
180
|
+
return true;
|
|
181
|
+
});
|
|
182
|
+
const checks = [];
|
|
183
|
+
const detached = specs.filter((spec) => !spec.text.includes("outerlayer-spec"));
|
|
184
|
+
if (detached.length > 0) {
|
|
185
|
+
checks.push({
|
|
186
|
+
name: SPEC_NAME,
|
|
187
|
+
status: "warn",
|
|
188
|
+
detail: `${detached.map((spec) => spec.path).join(", ")} does not name outerlayer-spec, so it gets no updates from the core`,
|
|
189
|
+
fix: `Move to the short spec, and put your own changes under the name of the step each applies to:
|
|
190
|
+
|
|
191
|
+
${shortSkill("spec")}`
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
for (const spec of specs.filter((s) => s.text.includes("outerlayer-spec"))) {
|
|
195
|
+
const unknown = changeHeadings(spec.text).filter((heading) => !SPEC_STEPS.includes(heading));
|
|
196
|
+
if (unknown.length === 0) continue;
|
|
197
|
+
checks.push({
|
|
198
|
+
name: SPEC_NAME,
|
|
199
|
+
status: "warn",
|
|
200
|
+
detail: `${spec.path} has ${unknown.map((h) => `"${h}"`).join(", ")} under "Changes for this repository", which matches no step`,
|
|
201
|
+
fix: `Rename each heading to a step: ${SPEC_STEPS.join(", ")}.`
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
return checks;
|
|
205
|
+
}
|
|
167
206
|
function committedMaintainedFolders(repoRoot, agents = defaultAgents()) {
|
|
168
207
|
const found = [];
|
|
169
208
|
for (const base of skillBases(agents)) {
|
|
@@ -201,7 +240,8 @@ function checkMaintainedReferences(repoRoot) {
|
|
|
201
240
|
];
|
|
202
241
|
}
|
|
203
242
|
function checkMachineSkills(opts) {
|
|
204
|
-
const
|
|
243
|
+
const folders = [".outerlayer/skills", ...skillsFolders(opts.agents)];
|
|
244
|
+
const build = copiesOf(opts.repoRoot, folders, "build").find((b) => b.text.includes(MACHINE_CORE)) ?? copiesOf(opts.repoRoot, folders, "spec").find((s) => s.text.includes(MACHINE_SPEC_CORE));
|
|
205
245
|
if (build === void 0) return [];
|
|
206
246
|
const problems = machineSkillsState(opts.home, opts.version).filter((s) => s.state !== "current");
|
|
207
247
|
const agentStale = staleAgentSkills(opts.home, opts.version, opts.agents);
|
|
@@ -352,4 +392,4 @@ async function fleetCheck(opts = {}) {
|
|
|
352
392
|
return [{ name: CHECK_NAME, status: "pass", detail }];
|
|
353
393
|
}
|
|
354
394
|
|
|
355
|
-
export { applyReferenceRewrites, checkBuildSkill, checkCommittedMaintainedSkills, checkIgnoredSkillFolders, checkMachineSkills, checkMaintainedReferences, committedMaintainedFolders, describeFleet, fleetCheck, fleetReadiness, maintainedReferenceRewrites, skillsFolders };
|
|
395
|
+
export { applyReferenceRewrites, checkBuildSkill, checkCommittedMaintainedSkills, checkIgnoredSkillFolders, checkMachineSkills, checkMaintainedReferences, checkSpecSkill, committedMaintainedFolders, describeFleet, fleetCheck, fleetReadiness, maintainedReferenceRewrites, skillsFolders };
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
4
4
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
5
5
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
6
|
-
import { legacyAgent, laptopAgents, defaultAgents, McpFileError } from './chunk-
|
|
6
|
+
import { legacyAgent, laptopAgents, defaultAgents, McpFileError } from './chunk-QYLBGMTA.js';
|
|
7
7
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
8
8
|
import { join, dirname } from 'path';
|
|
9
9
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { scrubReason, stripTerminalControls } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { RunnerAlreadyRunningError, readPidFile } from './chunk-
|
|
3
|
+
import { scrubReason, stripTerminalControls } from './chunk-OTWTUHWY.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-WG5OBUIZ.js';
|
|
5
|
+
import { RunnerAlreadyRunningError, readPidFile } from './chunk-NDQC2WUJ.js';
|
|
6
6
|
import { isSameProcess } from './chunk-JBJTC3UU.js';
|
|
7
|
-
import { isSignatureRefusal, postJson } from './chunk-
|
|
8
|
-
import { keyRunnerFactory } from './chunk-
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
-
import { pidFilePath } from './chunk-
|
|
7
|
+
import { isSignatureRefusal, postJson } from './chunk-5OSY3LK3.js';
|
|
8
|
+
import { keyRunnerFactory } from './chunk-EUHUIIGT.js';
|
|
9
|
+
import { signerFor } from './chunk-I5U6CFH4.js';
|
|
10
|
+
import { pidFilePath } from './chunk-JIANCWJ3.js';
|
|
11
11
|
import { readFileSync } from 'fs';
|
|
12
12
|
|
|
13
13
|
createRequire(import.meta.url);
|
|
@@ -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-JIANCWJ3.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
4
|
-
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-
|
|
5
|
-
import { buildRefusalReason } from './chunk-
|
|
6
|
-
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-
|
|
7
|
-
import { signingFetchFor } from './chunk-
|
|
8
|
-
import { signerFor } from './chunk-
|
|
9
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-
|
|
3
|
+
import { WorkCommandError, postJson } from './chunk-5OSY3LK3.js';
|
|
4
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-43R7JHQI.js';
|
|
5
|
+
import { buildRefusalReason } from './chunk-MVERFCX4.js';
|
|
6
|
+
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-I62FX622.js';
|
|
7
|
+
import { signingFetchFor } from './chunk-PCGU6T7J.js';
|
|
8
|
+
import { signerFor } from './chunk-I5U6CFH4.js';
|
|
9
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-JIANCWJ3.js';
|
|
10
10
|
import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-SF2TBJBP.js';
|
|
11
11
|
import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
12
12
|
import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-
|
|
4
|
-
import { WorkCommandError, resolveCredentials, getJson } from './chunk-
|
|
3
|
+
import { criteriaOf, loadCitationFinder, testFileMatcher, hostItemsOf, runnerMatcher, NO_VERDICT_REASON } from './chunk-722KABMV.js';
|
|
4
|
+
import { WorkCommandError, resolveCredentials, getJson } from './chunk-5OSY3LK3.js';
|
|
5
5
|
import { sanitizeTerminal } from './chunk-26BFN6DH.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { defaultFetch } from './chunk-
|
|
7
|
+
import { defaultFetch } from './chunk-PCGU6T7J.js';
|
|
8
8
|
import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { readDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
11
|
-
import { parseProofsConfig } from './chunk-
|
|
11
|
+
import { parseProofsConfig } from './chunk-QYLBGMTA.js';
|
|
12
12
|
import { resolveRepoIdentity } from './chunk-7GJEQXOH.js';
|
|
13
13
|
import { inferArtifactKind, mediaTypeForArtifactPath, WORK_ITEM_COMMENT_MAX_BODY_LENGTH, parseJunit, isTestSourcePath } from './chunk-5NVF5TAL.js';
|
|
14
14
|
import { spawnSync } from 'child_process';
|
|
@@ -129,14 +129,14 @@ function governingDir(cwd) {
|
|
|
129
129
|
async function testProofMode(cwd) {
|
|
130
130
|
const dir = governingDir(cwd);
|
|
131
131
|
if (dir === void 0) return "any";
|
|
132
|
-
const { testProofIn } = await import('./host-checks-
|
|
132
|
+
const { testProofIn } = await import('./host-checks-CZGNR4VC.js');
|
|
133
133
|
return testProofIn(dir);
|
|
134
134
|
}
|
|
135
135
|
async function judgeCheckName(cwd) {
|
|
136
136
|
const dir = governingDir(cwd);
|
|
137
137
|
if (dir === void 0) return {};
|
|
138
138
|
if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
|
|
139
|
-
const { checksIn, isJudgeCheck } = await import('./host-checks-
|
|
139
|
+
const { checksIn, isJudgeCheck } = await import('./host-checks-CZGNR4VC.js');
|
|
140
140
|
const quiet = { line: () => void 0, error: () => void 0 };
|
|
141
141
|
const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
|
|
142
142
|
return check === void 0 ? {} : { name: check.name };
|
|
@@ -372,7 +372,7 @@ async function runWorkProofs(opts) {
|
|
|
372
372
|
async function runWorkProofsCommand(opts) {
|
|
373
373
|
try {
|
|
374
374
|
if (opts.record || opts.check) {
|
|
375
|
-
const { runWorkProofsRecord } = await import('./work-proofs-record-
|
|
375
|
+
const { runWorkProofsRecord } = await import('./work-proofs-record-I2VLOMRD.js');
|
|
376
376
|
const result2 = await runWorkProofsRecord(opts);
|
|
377
377
|
process.exitCode = result2.exitCode;
|
|
378
378
|
return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { stripTerminalControls } from './chunk-
|
|
4
|
-
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-
|
|
3
|
+
import { stripTerminalControls } from './chunk-OTWTUHWY.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-UXARYJQ4.js';
|
|
5
5
|
import { readFileSync } from 'fs';
|
|
6
6
|
|
|
7
7
|
createRequire(import.meta.url);
|
|
@@ -55,7 +55,7 @@ function envNamesOf(row, imageEnv) {
|
|
|
55
55
|
return [...new Set(names)].sort();
|
|
56
56
|
}
|
|
57
57
|
async function readOwnContainer(deps = {}) {
|
|
58
|
-
const run = deps.run ?? (await import('./docker-
|
|
58
|
+
const run = deps.run ?? (await import('./docker-T7A6GZDD.js')).spawnRun;
|
|
59
59
|
const ids = candidateIds(deps.env ?? process.env, deps.readFile ?? ((path) => readFileSync(path, "utf8")));
|
|
60
60
|
if (ids.length === 0) return { ok: false, reason: "the runner cannot tell which container it runs in: HOSTNAME is empty and /proc/self/mountinfo names none" };
|
|
61
61
|
let problem = "";
|