@outerlayer/cli 0.40.0-next.20261115113313 → 0.40.0-next.20261115191619
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-HFMI2FCO.js → agent-setup-URENTDUL.js} +19 -19
- package/dist/{agent-subcommand-TGMUYMIV.js → agent-subcommand-BIZMU7EZ.js} +3 -3
- package/dist/{bridge-6EVOZBWB.js → bridge-6IBWOFEJ.js} +6 -6
- package/dist/{build-YXBIEJLS.js → build-EORAZMYD.js} +12 -12
- package/dist/{build-disk-RODL3IQ2.js → build-disk-KN7OJLKB.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-T4DS6F4V.js → builder-DOJUSWGH.js} +9 -9
- package/dist/caller-FJUWGSNN.js +23 -0
- package/dist/{check-BPXM64SW.js → check-BEXALLQK.js} +54 -54
- package/dist/{chunk-LIVBFF3D.js → chunk-2PRLSABK.js} +3 -3
- package/dist/{chunk-E7WZCKYT.js → chunk-3M2CYL3D.js} +3 -3
- package/dist/{chunk-BXMYXZAB.js → chunk-4KCQHUUH.js} +3 -3
- package/dist/{chunk-Z5LGWR5H.js → chunk-4L3WCEOI.js} +6 -6
- package/dist/{chunk-4YJPE23H.js → chunk-55GT5FLR.js} +1 -1
- package/dist/{chunk-DOIXXWA5.js → chunk-5EQ2B6UE.js} +2 -2
- package/dist/{chunk-Z34SKGVB.js → chunk-5EU2V6W2.js} +7 -7
- package/dist/{chunk-UC2JHW7P.js → chunk-5SKYWQ64.js} +1 -1
- package/dist/{chunk-V64FGZNM.js → chunk-6FHMWJHK.js} +1 -1
- package/dist/{chunk-KTN4XDPJ.js → chunk-7GJGSADZ.js} +1 -1
- package/dist/{chunk-G6S2EKAF.js → chunk-7PFRNOSF.js} +1 -1
- package/dist/{chunk-TDEVXYWR.js → chunk-AEAKGO6N.js} +5 -5
- package/dist/{chunk-GZVMAEHO.js → chunk-AFMLQMC3.js} +7 -7
- package/dist/{chunk-BHX4FW7O.js → chunk-AHDX5KXH.js} +10 -10
- package/dist/{chunk-OBADCUZF.js → chunk-ASHPKDV4.js} +8 -8
- package/dist/{chunk-O5MO3RWQ.js → chunk-B3GYDE4G.js} +73 -52
- package/dist/{chunk-PWJKROIT.js → chunk-BAE5M4N3.js} +6 -6
- package/dist/{chunk-RWI7Z2G6.js → chunk-BD254PYH.js} +1 -1
- package/dist/{chunk-T2OAXE5H.js → chunk-BFKSIA3V.js} +1 -1
- package/dist/{chunk-7GX7NXJW.js → chunk-BFZDVD7T.js} +4 -4
- package/dist/{chunk-4QVIBBKJ.js → chunk-BMMSIGV4.js} +1 -1
- package/dist/{chunk-TPC6MXKS.js → chunk-DYV2OC4S.js} +1 -1
- package/dist/{chunk-ZV77MALL.js → chunk-E5PWV6H2.js} +4 -4
- package/dist/{chunk-7DCFL2MK.js → chunk-F4HSDGFO.js} +2 -2
- package/dist/{chunk-CX5SISHJ.js → chunk-F7AOOV5N.js} +6 -6
- package/dist/{chunk-FOT3WJNH.js → chunk-HEJ4UYSX.js} +2 -2
- package/dist/{chunk-36E4TC2U.js → chunk-HJFTCOU5.js} +14 -14
- package/dist/{chunk-7UXZOTF2.js → chunk-IGVOCKAC.js} +3 -3
- package/dist/{chunk-SQFSYAPO.js → chunk-IIYDYHS5.js} +2 -2
- package/dist/{chunk-MUCWOHFZ.js → chunk-IKGAVS5X.js} +1 -1
- package/dist/{chunk-GNX75MQI.js → chunk-IKJEN5R4.js} +7 -7
- package/dist/{chunk-3T6DZAZX.js → chunk-IQRYAAOG.js} +4 -4
- package/dist/{chunk-ZIPXFVRF.js → chunk-ISRMDI2H.js} +5 -5
- package/dist/{chunk-47BLFHNK.js → chunk-IXZG7OJ6.js} +3 -3
- package/dist/{chunk-2UBMDLUF.js → chunk-JXZ3LIHN.js} +1 -1
- package/dist/{chunk-YDK6CONG.js → chunk-L6B4O4UB.js} +3 -3
- package/dist/{chunk-KXJDFBJH.js → chunk-LHL666SD.js} +28 -9
- package/dist/{chunk-NXOTVGPL.js → chunk-LPQJ5LXP.js} +1 -1
- package/dist/{chunk-LPTLGM24.js → chunk-MGN525G6.js} +1 -1
- package/dist/{chunk-YH7RGFKK.js → chunk-N7PG5JAD.js} +2 -2
- package/dist/{chunk-BU7PN6MB.js → chunk-NDDXBJMX.js} +1 -1
- package/dist/{chunk-R7OBHPWQ.js → chunk-NFD6N7YJ.js} +75 -63
- package/dist/{chunk-MT5NUKSC.js → chunk-OC3BSNNE.js} +2 -2
- package/dist/{chunk-B2EEVHR7.js → chunk-OUL5E5UC.js} +3 -3
- package/dist/{chunk-6R5JI7LV.js → chunk-PG4UW6QW.js} +1 -1
- package/dist/{chunk-7RSR6ESV.js → chunk-PT3DOY6P.js} +1 -1
- package/dist/{chunk-UFHXL6PT.js → chunk-QW7T7OMV.js} +4 -4
- package/dist/{chunk-O2T4LDT7.js → chunk-R34OLRY7.js} +3 -3
- package/dist/{chunk-VBAXFWTK.js → chunk-R3RALX7H.js} +5 -5
- package/dist/{chunk-7YVZIUOX.js → chunk-RIITHK4F.js} +1 -1
- package/dist/{chunk-TLLAFQMP.js → chunk-T5MBLAIO.js} +2 -2
- package/dist/{chunk-WGYAMFBU.js → chunk-TCPWJBH5.js} +7 -7
- package/dist/{chunk-CR7DKNRM.js → chunk-TQPFWWND.js} +3 -3
- package/dist/{chunk-J4LUKUXC.js → chunk-TZZU6IAM.js} +1 -1
- package/dist/{chunk-4FMN3U57.js → chunk-UOP4OSVB.js} +4 -4
- package/dist/{chunk-GWT2XAGQ.js → chunk-UTSBE4MP.js} +1 -1
- package/dist/{chunk-EA2GVFAF.js → chunk-V2O6KLTQ.js} +9 -6
- package/dist/{chunk-H6J7CQSV.js → chunk-VL3IS7S2.js} +9 -7
- package/dist/{chunk-E2FIHWJX.js → chunk-VQ57S72O.js} +3 -3
- package/dist/{chunk-FSYB5QAV.js → chunk-VQLOZLLC.js} +3 -3
- package/dist/{chunk-TGVNEQSQ.js → chunk-VSBG7MMU.js} +1 -1
- package/dist/{chunk-ULL2MHZU.js → chunk-VXU5IAEQ.js} +3 -3
- package/dist/{chunk-76GFXRC7.js → chunk-XDBHRWPQ.js} +1 -1
- package/dist/{chunk-B6LZQ5GU.js → chunk-XOJRFV3U.js} +2 -2
- package/dist/{chunk-PJZ7RTXX.js → chunk-XOKGCNSG.js} +1 -1
- package/dist/{chunk-OID5XOPL.js → chunk-XTUTQVBU.js} +4 -4
- package/dist/{chunk-X5SZ3MB6.js → chunk-Y6FI3HCQ.js} +1 -1
- package/dist/{chunk-RIURJ7G6.js → chunk-YN6EKURT.js} +4 -4
- package/dist/{chunk-VNLHKIKR.js → chunk-Z7J7JWGF.js} +1 -1
- package/dist/{chunk-2HE3W4OM.js → chunk-ZBD2YOGH.js} +1 -1
- package/dist/{chunk-CEVYSNA4.js → chunk-ZCOIE7ZJ.js} +1 -1
- package/dist/{chunk-3FJGWAYD.js → chunk-ZDXEZPRM.js} +6 -6
- package/dist/{claude-launcher-6ZSKTRY5.js → claude-launcher-ZSCQOG3G.js} +6 -6
- package/dist/{cli-645WJ5EQ.js → cli-JOQ7XODJ.js} +162 -162
- package/dist/{cli-update-notice-BQ6FM472.js → cli-update-notice-ODKQQUO7.js} +2 -2
- package/dist/{command-RJ2ASVL7.js → command-V5DNIID2.js} +50 -50
- package/dist/{config-TYASXT5C.js → config-ME2W5VIX.js} +11 -11
- package/dist/{connect-cmd-EX67GWJF.js → connect-cmd-QX7WJ65U.js} +11 -11
- package/dist/{container-start-BCIJQO5U.js → container-start-OF6XTAQZ.js} +47 -47
- package/dist/{context-cleanup-ENT7CYJC.js → context-cleanup-VYUESYGU.js} +3 -3
- package/dist/{context-show-cmd-IMVD75NE.js → context-show-cmd-2ABJ5B66.js} +12 -12
- package/dist/{control-plane-launch-SPSKDMIE.js → control-plane-launch-HQPMYL7O.js} +14 -14
- package/dist/{demo-record-cmd-T4DP3XE5.js → demo-record-cmd-UBYX2VAE.js} +7 -7
- package/dist/{demo-voice-cmd-2W34DIXY.js → demo-voice-cmd-ZGT6ZKH4.js} +18 -18
- package/dist/{docker-BBIDJR46.js → docker-E35HTSGN.js} +9 -9
- package/dist/{doctor-3UWBBRMX.js → doctor-7I2OAX3E.js} +49 -49
- package/dist/{emit-artifact-cmd-VB2YPJXK.js → emit-artifact-cmd-2KQYKVRF.js} +17 -17
- package/dist/{emit-cmd-YNJYHGS3.js → emit-cmd-CBCODUWX.js} +6 -6
- package/dist/{emit-criteria-cmd-R3RBHQNJ.js → emit-criteria-cmd-JOYI5L6K.js} +14 -14
- package/dist/{emit-demo-cmd-CIVHU33R.js → emit-demo-cmd-J4N2P7MS.js} +18 -18
- package/dist/{emit-finding-cmd-YRCHPJEI.js → emit-finding-cmd-QPSTTD7U.js} +14 -14
- package/dist/{emit-result-cmd-DMWCSZ53.js → emit-result-cmd-KPAS6BS4.js} +16 -16
- package/dist/{emit-step-cmd-PCPLHBTG.js → emit-step-cmd-GQDRQ6JS.js} +14 -14
- package/dist/{exec-client-AAXCCEVU.js → exec-client-QDEZML3U.js} +7 -7
- package/dist/find-unit-AFBSWEOE.js +24 -0
- package/dist/{findings-cmd-XXDHIZAC.js → findings-cmd-57E6BXM2.js} +14 -14
- package/dist/{fleet-readiness-WRXR4ILW.js → fleet-readiness-VSPHFYWE.js} +13 -13
- package/dist/{governing-source-GPRZHSLC.js → governing-source-O6VIHNZG.js} +19 -19
- package/dist/{guest-init-A5CCQEEK.js → guest-init-QYJVWDCD.js} +8 -8
- package/dist/{hook-fast-M6FWJHZL.js → hook-fast-E2JV656K.js} +3 -3
- package/dist/{hook-install-5HFZDBIC.js → hook-install-ZZV5WVDH.js} +3 -3
- package/dist/host-checks-TYNZW3BL.js +82 -0
- package/dist/{host-key-R3ZJKBQ3.js → host-key-4RD4MTJ2.js} +7 -7
- package/dist/{image-tag-K32BVEIL.js → image-tag-SNXCNAGF.js} +7 -7
- package/dist/index.js +4 -4
- package/dist/init-DZ6FIJ76.js +82 -0
- package/dist/{init-OOYKPYJM.js → init-IJB3AHGA.js} +45 -45
- package/dist/{init-agent-GPEDGDHA.js → init-agent-OMJ24Z6I.js} +45 -45
- package/dist/{init-cmd-GIAREDPB.js → init-cmd-CKX3IZWR.js} +25 -25
- package/dist/{init-update-SO7V6L6K.js → init-update-W3CNPIEJ.js} +22 -22
- package/dist/install-cmd-2BZYH77S.js +26 -0
- package/dist/launch-agent-S5ZCDOJR.js +26 -0
- package/dist/{layout-A7YL63UE.js → layout-QU4DUYQQ.js} +3 -3
- package/dist/{logs-6VEF36N6.js → logs-N7TOXQWL.js} +6 -6
- package/dist/loop-G3OTFQXF.js +92 -0
- package/dist/machine-SNJTMFTB.js +82 -0
- package/dist/{machine-skills-RTHSWGSU.js → machine-skills-DLDDT4BE.js} +3 -3
- package/dist/{mcp-install-cmd-UQBQOGZ4.js → mcp-install-cmd-TFKCJSAH.js} +3 -3
- package/dist/{mcp-serve-cmd-MOKXNZ2A.js → mcp-serve-cmd-YWBSSEYK.js} +9 -9
- package/dist/{paths-44NEENDO.js → paths-GUVGFCBQ.js} +6 -6
- package/dist/pending-PXRZ7SIJ.js +18 -0
- package/dist/{pidfile-XWUX735M.js → pidfile-AOQMDBSW.js} +7 -7
- package/dist/{record-6P5TK6K7.js → record-2RQWFYJ4.js} +7 -7
- package/dist/recorder.cjs +152 -23
- package/dist/{relay-CLQW7IR5.js → relay-VZEEKIKG.js} +4 -4
- package/dist/{relay-protocol-Y4L6Q72I.js → relay-protocol-DF7PZPX2.js} +4 -4
- package/dist/{run-cmd-65YREGHO.js → run-cmd-NEZVPFFG.js} +14 -14
- package/dist/{runner-agents-2KPYIXN2.js → runner-agents-O7G6HTWI.js} +3 -3
- package/dist/{runner-env-2YODIR2Z.js → runner-env-RYMF4YVJ.js} +13 -13
- package/dist/{runner-identity-G57VDLXN.js → runner-identity-MU7HDFGF.js} +9 -9
- package/dist/{runner-key-LYLDFK3T.js → runner-key-QOHUYHY3.js} +45 -45
- package/dist/{session-sender-JIJQNDF4.js → session-sender-6HKSOFQ2.js} +17 -17
- package/dist/{spec-cmd-NJLCH63H.js → spec-cmd-53UFNXNH.js} +15 -15
- package/dist/{starter-pack-M7YNHN7G.js → starter-pack-3HB74L6Q.js} +4 -4
- package/dist/{state-3QZYSC4V.js → state-YHPOHZ4I.js} +7 -7
- package/dist/{status-IYUTS2RN.js → status-WBMU7ZGL.js} +45 -45
- package/dist/{sync-cmd-QBFJN77X.js → sync-cmd-5FAB4CAX.js} +16 -16
- package/dist/update-steps-UZWYIHPS.js +83 -0
- package/dist/{watch-XNH2BXGJ.js → watch-GKQOIY7F.js} +16 -16
- package/dist/{work-claim-cmd-UZAV6F5V.js → work-claim-cmd-PZFPD3NS.js} +21 -21
- package/dist/{work-cmd-HL6ZYYFT.js → work-cmd-JANDUCNE.js} +14 -14
- package/dist/{work-comment-cmd-WO4OP4CW.js → work-comment-cmd-ZIDXYWNH.js} +16 -16
- package/dist/{work-demo-cmd-FSSCNRKZ.js → work-demo-cmd-7OKBQG37.js} +14 -14
- package/dist/{work-logs-cmd-R4DZGKR2.js → work-logs-cmd-2XDRIBM2.js} +14 -14
- package/dist/{work-mock-cmd-J3E53N3Y.js → work-mock-cmd-RFBGDQST.js} +14 -14
- package/dist/{work-needs-attention-cmd-PSLU7AC5.js → work-needs-attention-cmd-EY5FLR35.js} +14 -14
- package/dist/{work-no-change-cmd-FTMU7IOE.js → work-no-change-cmd-UOLGPCI2.js} +14 -14
- package/dist/{work-open-pr-cmd-KFX3F6MB.js → work-open-pr-cmd-WBWODWGY.js} +15 -15
- package/dist/{work-pr-cmd-OYOUNRB7.js → work-pr-cmd-6733KSPR.js} +14 -14
- package/dist/{work-proofs-cmd-3NHA732I.js → work-proofs-cmd-6SAG6KV5.js} +16 -16
- package/dist/{work-proofs-record-IJRJLWOX.js → work-proofs-record-TGTMNKBG.js} +22 -22
- package/dist/{work-stop-cmd-EJ7Y7I4F.js → work-stop-cmd-A32J3PL7.js} +14 -14
- package/package.json +1 -1
- package/skill-pack/maintained/outerlayer-build/SKILL.md +6 -71
- package/skill-pack/maintained/outerlayer-build/references/criteria.md +75 -0
- package/skill-pack/maintained/outerlayer-build/scripts/record-criteria.mjs +15 -5
- package/skill-pack/maintained/outerlayer-criteria/SKILL.md +60 -0
- package/skill-pack/maintained/outerlayer-evidence/SKILL.md +4 -4
- package/skill-pack/maintained/outerlayer-evidence/references/demo.md +19 -10
- package/dist/caller-GVPCWQVM.js +0 -23
- package/dist/find-unit-3K3NXINH.js +0 -24
- package/dist/host-checks-AOWHQL3V.js +0 -82
- package/dist/init-4T5EC67K.js +0 -82
- package/dist/install-cmd-6RKBV54Z.js +0 -26
- package/dist/launch-agent-Q6H3IT4D.js +0 -26
- package/dist/loop-USCXKLCB.js +0 -92
- package/dist/machine-RJ6QMO3N.js +0 -82
- package/dist/pending-43OCDSZO.js +0 -18
- package/dist/update-steps-4I6LRYM7.js +0 -83
|
@@ -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-BFZDVD7T.js';
|
|
4
|
+
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-7PFRNOSF.js';
|
|
5
|
+
import { installStarterPack } from './chunk-TQPFWWND.js';
|
|
6
|
+
import { listWithAnd } from './chunk-IGVOCKAC.js';
|
|
7
|
+
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-XDBHRWPQ.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
9
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-ISRMDI2H.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
|
-
import { linkedAgentsPath } from './chunk-
|
|
11
|
+
import { linkedAgentsPath } from './chunk-TZZU6IAM.js';
|
|
12
12
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
13
|
-
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-
|
|
13
|
+
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-LPQJ5LXP.js';
|
|
14
14
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
15
15
|
import { execFileSync } from 'child_process';
|
|
16
16
|
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
|
|
4
|
-
import { reportFailedStart, fitImageBuildMemory } from './chunk-
|
|
4
|
+
import { reportFailedStart, fitImageBuildMemory } from './chunk-AFMLQMC3.js';
|
|
5
5
|
import { decideInstalledSwitch } from './chunk-TXKHD4Q6.js';
|
|
6
|
-
import { writeFleetState } from './chunk-
|
|
7
|
-
import { writePendingUpdate } from './chunk-
|
|
8
|
-
import { renderUpdateSteps } from './chunk-
|
|
9
|
-
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-
|
|
10
|
-
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-
|
|
11
|
-
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-
|
|
12
|
-
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-
|
|
13
|
-
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-
|
|
14
|
-
import { RUNNER_PROTOCOL } from './chunk-
|
|
15
|
-
import { RUNNER_RESERVE_BYTES } from './chunk-
|
|
16
|
-
import { RepoFilter } from './chunk-
|
|
6
|
+
import { writeFleetState } from './chunk-Y6FI3HCQ.js';
|
|
7
|
+
import { writePendingUpdate } from './chunk-XOKGCNSG.js';
|
|
8
|
+
import { renderUpdateSteps } from './chunk-4KCQHUUH.js';
|
|
9
|
+
import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-UTSBE4MP.js';
|
|
10
|
+
import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-AHDX5KXH.js';
|
|
11
|
+
import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-PT3DOY6P.js';
|
|
12
|
+
import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, itemTag, releaseLease, runDecision, claimRun, LEASE_SECONDS, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, restoreSessionIntoSandbox, restoreWork, keptSessionDir, workRestoredEnv, sessionGuestOfMicroVm, sessionGuestOfContainer, sessionGuestOfSandbox, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, vmAlive, filesAreCopied, inSandbox, listItemDisks, usableCpus, hookLimitsFor, runCommandOf, AttemptLogBook, environmentFor, builtOf, judgeCredential, readWorkItem, makeRecorder, microVmOomKills, needsRenew, renewRun, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, keptSandboxIds, parseCpuList, ensureTunnel, keepGhConfigCurrent, restartSender, rejoinSandboxBuild, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, shellQuote, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, treeFileText, timeoutAfter, scrubReason, ensureNetworkReady, ADOPTED_FETCH_RETRY_WINDOW_MS, managedBuildSettingsFor, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, writeGuestGhConfig, deliverJobFiles, inTeardown } from './chunk-NFD6N7YJ.js';
|
|
13
|
+
import { criteriaOf, loadCitationFinder, wholeItems, itemsSentence, oneLineReason, wholeEntries, parseJudgeAnswer } from './chunk-PG4UW6QW.js';
|
|
14
|
+
import { RUNNER_PROTOCOL } from './chunk-JXZ3LIHN.js';
|
|
15
|
+
import { RUNNER_RESERVE_BYTES } from './chunk-4L3WCEOI.js';
|
|
16
|
+
import { RepoFilter } from './chunk-BAE5M4N3.js';
|
|
17
17
|
import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-B4XB5QFD.js';
|
|
18
|
-
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-
|
|
18
|
+
import { imageTag, writeUpdateStatus, pullInstruction, tagToPull } from './chunk-RIITHK4F.js';
|
|
19
19
|
import { isVersion, compareVersions, satisfiesRange } from './chunk-TQMI335S.js';
|
|
20
|
-
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-
|
|
21
|
-
import { fetchCommit, readBranchHead, diffBetween } from './chunk-
|
|
22
|
-
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-
|
|
20
|
+
import { claimCalls, claimItem, spoolHomeFor, leftByRunnerKey, runnerCalls, itemCalls, configForJob } from './chunk-F4HSDGFO.js';
|
|
21
|
+
import { fetchCommit, readBranchHead, diffBetween } from './chunk-IKJEN5R4.js';
|
|
22
|
+
import { claimPidFile, releasePidFile, writePidFile, readPidFile } from './chunk-MGN525G6.js';
|
|
23
23
|
import { startTimeOf, isSameProcess } from './chunk-JBJTC3UU.js';
|
|
24
|
-
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-
|
|
25
|
-
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-
|
|
26
|
-
import { keyRunnerFactory, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-
|
|
27
|
-
import { allocatedBytes, freeBytes, formatBytes } from './chunk-
|
|
28
|
-
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-
|
|
29
|
-
import { loadHostKey, ensureHostKey, signerFor } from './chunk-
|
|
30
|
-
import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-
|
|
31
|
-
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-
|
|
32
|
-
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-
|
|
33
|
-
import { cleanAttachmentName } from './chunk-
|
|
34
|
-
import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-
|
|
35
|
-
import { defaultAgents, resolvePackRoot } from './chunk-
|
|
24
|
+
import { describeCallFailure, retrySend, shortClaim, relativeToRunner, formatDuration, resolveGoverningSource, BuildTokens, classifyRefusal, refusalCode, createRunnerLog, formatClock } from './chunk-VL3IS7S2.js';
|
|
25
|
+
import { WorkCommandError, isSignatureRefusal, getJson, postJson, getBytes } from './chunk-F7AOOV5N.js';
|
|
26
|
+
import { keyRunnerFactory, readsOnly, isBuiltinSandbox, isBuiltinContainer, isBuiltinVm, loadRunnerConfig, checkHooks, builtinKind, keepsHostBuilder, runnerDeliversComments, DEFAULT_CHECK_TIME_LIMIT_MINUTES, readOnlyRemoteOf, DEFAULT_SAVED_STATE_MAX_BYTES, DEFAULT_UPDATE_MAX_WAIT_HOURS, readOnlyOption } from './chunk-V2O6KLTQ.js';
|
|
27
|
+
import { allocatedBytes, freeBytes, formatBytes } from './chunk-OC3BSNNE.js';
|
|
28
|
+
import { writeJobFile, ensureRunnerIdentity, identityDockerFor, readJobFile, JUDGE_TREE, exceedsDisk, runnerLabelValue, builderName, ensureFailureCount, builderSpec, ensureBuilder, spawnRun, judgeCommand, JUDGE_DIR, JUDGE_MAX_TURNS } from './chunk-TCPWJBH5.js';
|
|
29
|
+
import { loadHostKey, ensureHostKey, signerFor } from './chunk-NDDXBJMX.js';
|
|
30
|
+
import { RUNNER_DIR_MODE, runnerDir, RUNNER_FILE_MODE, buildDir, attemptStamp, jobDir, jobsDir, pidFilePath, storeScopes, imagesDir } from './chunk-DYV2OC4S.js';
|
|
31
|
+
import { parseClaimIdentity, parseBranchlessRepositories, parseClaimedRepositories, parseUnreachable, repositoriesOf, primaryOf, JOB_MOUNT, WORK_DIR } from './chunk-VXU5IAEQ.js';
|
|
32
|
+
import { jobCredentialProblem, COMMAND_LOST_REASON, takeAgentCredentials, heldAgentCredential, CONTAINER_STOPPED_REASON, currentAgentCredential, fdName } from './chunk-XOJRFV3U.js';
|
|
33
|
+
import { cleanAttachmentName } from './chunk-E5PWV6H2.js';
|
|
34
|
+
import { jobAgent, jobCommandEnv, runnerAgents, judgeAgent } from './chunk-BFKSIA3V.js';
|
|
35
|
+
import { defaultAgents, resolvePackRoot } from './chunk-LPQJ5LXP.js';
|
|
36
36
|
import { resolveVersion } from './chunk-RA3O54FC.js';
|
|
37
37
|
import { CheckItemsSchema, CODE_REVIEW_NAME, CHECK_ITEM_HREF_MAX_LENGTH, CHECK_ITEM_REASON_MAX_LENGTH, UNREVIEWED_FILES_ITEM_ID, problemKind, CODE_REVIEW_PROBLEMS_MAX, REVIEWED_COMMIT_ITEM_ID } from './chunk-MCUI6RHU.js';
|
|
38
38
|
import { mkdirSync, existsSync, writeFileSync, chmodSync, renameSync, statSync, readdirSync, rmSync, readFileSync, lstatSync, closeSync } from 'fs';
|
|
@@ -183,7 +183,7 @@ function parseClaim(value) {
|
|
|
183
183
|
if (typeof value !== "object" || Array.isArray(value)) return { malformed: true };
|
|
184
184
|
const data = value;
|
|
185
185
|
const { id, kind, workItemId, number, appId, organizationId, size } = data;
|
|
186
|
-
if (typeof id !== "string" || id === "" || kind !== "implement" && kind !== "amend" && kind !== "revise" && kind !== "review" || typeof workItemId !== "string" || workItemId === "" || typeof number !== "number" || !Number.isInteger(number) || typeof appId !== "string" || appId === "" || typeof organizationId !== "string" || organizationId === "" || size !== "small" && size !== "large") {
|
|
186
|
+
if (typeof id !== "string" || id === "" || kind !== "implement" && kind !== "amend" && kind !== "revise" && kind !== "review" && kind !== "criteria" || typeof workItemId !== "string" || workItemId === "" || typeof number !== "number" || !Number.isInteger(number) || typeof appId !== "string" || appId === "" || typeof organizationId !== "string" || organizationId === "" || size !== "small" && size !== "large") {
|
|
187
187
|
return {
|
|
188
188
|
malformed: true,
|
|
189
189
|
...typeof workItemId === "string" && workItemId !== "" ? { workItemId } : {},
|
|
@@ -1305,6 +1305,18 @@ function takesRevise(config, agents = defaultAgents()) {
|
|
|
1305
1305
|
return reviseCommandOf(config, agents) !== void 0;
|
|
1306
1306
|
}
|
|
1307
1307
|
|
|
1308
|
+
// src/runner/criteria-job.ts
|
|
1309
|
+
var CRITERIA_PROMPT = "/outerlayer-criteria";
|
|
1310
|
+
function criteriaCommandOf(config, agents = defaultAgents()) {
|
|
1311
|
+
const command = config.commands.implement ?? config.commands.amend;
|
|
1312
|
+
if (command === void 0) return void 0;
|
|
1313
|
+
return jobAgent({ command }, agents)?.adapter.headless?.commandLine(CRITERIA_PROMPT, "revise");
|
|
1314
|
+
}
|
|
1315
|
+
var criteriaIsolation = reviseIsolation;
|
|
1316
|
+
function takesCriteria(config, agents = defaultAgents()) {
|
|
1317
|
+
return takesRevise(config, agents) && criteriaCommandOf(config, agents) !== void 0;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1308
1320
|
// src/runner/code-review-plan.ts
|
|
1309
1321
|
var SMALL_CHANGE_LINES = 40;
|
|
1310
1322
|
var LARGE_CHANGE_LINES = 800;
|
|
@@ -1961,21 +1973,31 @@ function releaseHelper(socketPath, self, options = {}) {
|
|
|
1961
1973
|
}
|
|
1962
1974
|
|
|
1963
1975
|
// src/runner/loop.ts
|
|
1964
|
-
var QUEUE_ORDER = ["revise", "amend", "review", "implement"];
|
|
1976
|
+
var QUEUE_ORDER = ["revise", "criteria", "amend", "review", "implement"];
|
|
1965
1977
|
var REVISE_LIST_RETRY_MS = 10 * 6e4;
|
|
1966
1978
|
function takesQueue(state, queue) {
|
|
1967
1979
|
if (queue === "revise") return takesRevise(state.config, state.deps.agents);
|
|
1968
1980
|
if (queue === "review") return takesReview(state.config, state.deps.agents);
|
|
1981
|
+
if (queue === "criteria") return takesCriteria(state.config, state.deps.agents);
|
|
1969
1982
|
return state.config.queues.includes(queue);
|
|
1970
1983
|
}
|
|
1984
|
+
function agentJobIsolation(config, queue) {
|
|
1985
|
+
return queue === "criteria" ? criteriaIsolation(config) : queue === "review" ? reviewIsolation(config) : reviseIsolation(config);
|
|
1986
|
+
}
|
|
1971
1987
|
function queueCommand(state, queue) {
|
|
1972
1988
|
if (queue === "run") return runCommandOf(state.config, state.deps.agents);
|
|
1973
1989
|
if (queue === "revise") return reviseCommandOf(state.config, state.deps.agents);
|
|
1990
|
+
if (queue === "criteria") return criteriaCommandOf(state.config, state.deps.agents);
|
|
1974
1991
|
if (queue === "review") return state.config.commands.implement ?? state.config.commands.amend;
|
|
1975
1992
|
return state.config.commands[queue];
|
|
1976
1993
|
}
|
|
1977
1994
|
function takenQueues(state) {
|
|
1978
|
-
return [
|
|
1995
|
+
return [
|
|
1996
|
+
...state.config.queues,
|
|
1997
|
+
...takesRevise(state.config, state.deps.agents) ? ["revise"] : [],
|
|
1998
|
+
...takesReview(state.config, state.deps.agents) ? ["review"] : [],
|
|
1999
|
+
...takesCriteria(state.config, state.deps.agents) ? ["criteria"] : []
|
|
2000
|
+
];
|
|
1979
2001
|
}
|
|
1980
2002
|
var TRACKER_REPOSITORY_HOSTS = {
|
|
1981
2003
|
github: "github.com"
|
|
@@ -2048,8 +2070,8 @@ function deriveRepo(item) {
|
|
|
2048
2070
|
return repoPart === "" ? void 0 : `${host}/${repoPart}`;
|
|
2049
2071
|
}
|
|
2050
2072
|
async function listStartable(config, queue, fetchImpl, cursor = null) {
|
|
2051
|
-
const isolation = queue
|
|
2052
|
-
const query = queue === "amend" ? "needs=amend&startable=true" : queue === "revise" ? `needs=revise&startable=true${isolation === void 0 ? "" : `&isolation=${isolation}`}` : queue === "review" ? `needs
|
|
2073
|
+
const isolation = readsOnly(queue) ? agentJobIsolation(config, queue) : void 0;
|
|
2074
|
+
const query = queue === "amend" ? "needs=amend&startable=true" : queue === "revise" ? `needs=revise&startable=true${isolation === void 0 ? "" : `&isolation=${isolation}`}` : queue === "review" || queue === "criteria" ? `needs=${queue}&startable=true&runnerProtocol=${RUNNER_PROTOCOL}${isolation === void 0 ? "" : `&isolation=${isolation}`}` : "startable=true";
|
|
2053
2075
|
const page = await getJson(
|
|
2054
2076
|
config.url,
|
|
2055
2077
|
`/v1/work-items?${query}${cursor === null ? "" : `&cursor=${encodeURIComponent(cursor)}`}`,
|
|
@@ -2085,7 +2107,7 @@ function reloadConfig(state) {
|
|
|
2085
2107
|
return;
|
|
2086
2108
|
}
|
|
2087
2109
|
state.config = fitForImage(state.deps, reloaded).config;
|
|
2088
|
-
delete state.
|
|
2110
|
+
delete state.listRefusedAtMs;
|
|
2089
2111
|
const timerNote = state.pollTimerSeconds !== void 0 && state.pollTimerSeconds !== reloaded.pollSeconds ? ` \xB7 still polling every ${state.pollTimerSeconds}s until the runner restarts` : "";
|
|
2090
2112
|
logOf(state).line(`config re-read \xB7 ${describeConfig(reloaded)}${timerNote}`);
|
|
2091
2113
|
} catch (err) {
|
|
@@ -2180,7 +2202,7 @@ function applyStops(state, stops) {
|
|
|
2180
2202
|
}
|
|
2181
2203
|
const who = `stopped by ${stop.requestedByName === "" ? "someone" : stop.requestedByName} through OuterLayer`;
|
|
2182
2204
|
const reason = stop.note === null ? who : `${who}: ${stop.note}`;
|
|
2183
|
-
logOf(state).line(`${itemTag(active.job)} ${reason} \xB7 ending the ${active.job.queue
|
|
2205
|
+
logOf(state).line(`${itemTag(active.job)} ${reason} \xB7 ending the ${readsOnly(active.job.queue) ? "job" : "build"}`);
|
|
2184
2206
|
void endJob(state, active, "stopped", { reason }).catch((err) => {
|
|
2185
2207
|
logOf(state).error(`${itemTag(active.job)} could not be stopped: ${describeCallFailure(err)}`);
|
|
2186
2208
|
});
|
|
@@ -3041,9 +3063,10 @@ async function runTick(state) {
|
|
|
3041
3063
|
let claimed = false;
|
|
3042
3064
|
for (const queue of QUEUE_ORDER) {
|
|
3043
3065
|
if (!takesQueue(state, queue)) continue;
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3066
|
+
const refusedAtMs = queue === "revise" || queue === "criteria" ? state.listRefusedAtMs?.[queue] : void 0;
|
|
3067
|
+
if (refusedAtMs !== void 0 && (queue === "revise" || queue === "criteria")) {
|
|
3068
|
+
if (nowOf(state).getTime() - refusedAtMs < REVISE_LIST_RETRY_MS) continue;
|
|
3069
|
+
delete state.listRefusedAtMs[queue];
|
|
3047
3070
|
}
|
|
3048
3071
|
let cursor = null;
|
|
3049
3072
|
do {
|
|
@@ -3053,9 +3076,9 @@ async function runTick(state) {
|
|
|
3053
3076
|
reportRepeating(state, "the work item list", void 0);
|
|
3054
3077
|
state.lastWorkRequest = { ok: true };
|
|
3055
3078
|
} catch (err) {
|
|
3056
|
-
if (queue === "revise" && cursor === null && err instanceof WorkCommandError && err.status === 400) {
|
|
3057
|
-
state.
|
|
3058
|
-
log.line("the gateway does not list drafts to revise; asking again in 10 minutes");
|
|
3079
|
+
if ((queue === "revise" || queue === "criteria") && cursor === null && err instanceof WorkCommandError && err.status === 400) {
|
|
3080
|
+
state.listRefusedAtMs = { ...state.listRefusedAtMs, [queue]: nowOf(state).getTime() };
|
|
3081
|
+
log.line(queue === "revise" ? "the gateway does not list drafts to revise; asking again in 10 minutes" : "the gateway does not list criteria jobs; asking again in 10 minutes");
|
|
3059
3082
|
break;
|
|
3060
3083
|
}
|
|
3061
3084
|
state.lastWorkRequest = workRequestFromFailure(err);
|
|
@@ -3176,7 +3199,7 @@ var CLAIM_REFUSAL_CODES = new Set(
|
|
|
3176
3199
|
"pull_request_from_fork pull_request_on_default_branch pull_request_ambiguous pull_request_repository_not_connected repository_not_reachable branch_claimed_elsewhere".split(" ")
|
|
3177
3200
|
);
|
|
3178
3201
|
async function tryClaimAndStart(state, item, queue) {
|
|
3179
|
-
const { postJson: postJson2 } = await import('./work-cmd-
|
|
3202
|
+
const { postJson: postJson2 } = await import('./work-cmd-JANDUCNE.js');
|
|
3180
3203
|
const log = logOf(state);
|
|
3181
3204
|
const hostKey = await loadHostKey(state.config.configPath);
|
|
3182
3205
|
const claim = await retrySend(
|
|
@@ -3191,8 +3214,7 @@ async function tryClaimAndStart(state, item, queue) {
|
|
|
3191
3214
|
seconds: LEASE_SECONDS,
|
|
3192
3215
|
runnerProtocol: RUNNER_PROTOCOL,
|
|
3193
3216
|
cliVersion: state.deps.cliVersion ?? resolveVersion(),
|
|
3194
|
-
...queue
|
|
3195
|
-
...queue === "review" && reviewIsolation(state.config) !== void 0 ? { isolation: reviewIsolation(state.config) } : {},
|
|
3217
|
+
...readsOnly(queue) && agentJobIsolation(state.config, queue) !== void 0 ? { isolation: agentJobIsolation(state.config, queue) } : {},
|
|
3196
3218
|
...hostKey === void 0 ? {} : { hostKey: hostKey.hostKey }
|
|
3197
3219
|
},
|
|
3198
3220
|
state.deps.fetchImpl,
|
|
@@ -3290,7 +3312,7 @@ async function startClaimedBuild(state, item, queue, data, fleet) {
|
|
|
3290
3312
|
}
|
|
3291
3313
|
reportRepeating(state, "the item key", void 0);
|
|
3292
3314
|
const branch = typeof data.branch === "string" && data.branch !== "" ? data.branch : void 0;
|
|
3293
|
-
if (branch === void 0 && queue
|
|
3315
|
+
if (branch === void 0 && !readsOnly(queue)) {
|
|
3294
3316
|
const released = await releaseUntried(state, item, fleet);
|
|
3295
3317
|
reportRepeating(
|
|
3296
3318
|
state,
|
|
@@ -3301,9 +3323,8 @@ async function startClaimedBuild(state, item, queue, data, fleet) {
|
|
|
3301
3323
|
}
|
|
3302
3324
|
reportRepeating(state, "the branch", void 0);
|
|
3303
3325
|
const identity = parseClaimIdentity(data);
|
|
3304
|
-
const
|
|
3305
|
-
|
|
3306
|
-
if (repositories === null || branchless && repositories === void 0) {
|
|
3326
|
+
const repositories = readsOnly(queue) ? parseBranchlessRepositories(data.repositories) : parseClaimedRepositories(data.repositories);
|
|
3327
|
+
if (repositories === null || readsOnly(queue) && repositories === void 0) {
|
|
3307
3328
|
const released = await releaseUntried(state, item, fleet);
|
|
3308
3329
|
reportRepeating(
|
|
3309
3330
|
state,
|
|
@@ -3553,7 +3574,7 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
3553
3574
|
setStage(job, dirPath, "provision");
|
|
3554
3575
|
log.line(`${tag} provision started`);
|
|
3555
3576
|
const provisionStartedMs = nowOf(state).getTime();
|
|
3556
|
-
const requireBuildSkill = needsBuildSkill(queue, queue === "review" ? void 0 : state.config.commands[queue], state.deps.agents);
|
|
3577
|
+
const requireBuildSkill = needsBuildSkill(queue, queue === "criteria" || queue === "review" ? void 0 : state.config.commands[queue], state.deps.agents);
|
|
3557
3578
|
const cliVersion = state.deps.cliVersion ?? resolveVersion();
|
|
3558
3579
|
let workdir;
|
|
3559
3580
|
let cgroup;
|
|
@@ -3708,8 +3729,8 @@ async function startJob(state, item, queue, claimId, itemKey, branch, identity,
|
|
|
3708
3729
|
}
|
|
3709
3730
|
}
|
|
3710
3731
|
} else {
|
|
3711
|
-
if (queue === "run" || queue
|
|
3712
|
-
const what = queue === "run" ? "a run" : queue === "
|
|
3732
|
+
if (queue === "run" || readsOnly(queue)) {
|
|
3733
|
+
const what = queue === "run" ? "a run" : queue === "criteria" ? "a criteria job" : queue === "review" ? "a code review" : "a revision";
|
|
3713
3734
|
log.error(`${tag} the runner's hooks no longer name a container, microVM or sandbox build, and ${what} takes none other \xB7 ending job as failed`);
|
|
3714
3735
|
await endJob(state, active, "failed", { stage: "provision", reason: `${what} goes only to a build in a container or a microVM` });
|
|
3715
3736
|
return;
|
|
@@ -4803,7 +4824,7 @@ async function startRunner(configPath, deps, startup) {
|
|
|
4803
4824
|
check: update.check ? () => update.check(configPath) : async () => {
|
|
4804
4825
|
const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
|
|
4805
4826
|
const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
|
|
4806
|
-
return (await import('./check-
|
|
4827
|
+
return (await import('./check-BEXALLQK.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
|
|
4807
4828
|
},
|
|
4808
4829
|
now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
|
|
4809
4830
|
log
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { uploadSpooledSteps } from './chunk-
|
|
3
|
+
import { uploadSpooledSteps } from './chunk-VQ57S72O.js';
|
|
4
4
|
import { LaunchFilter } from './chunk-C2PZOLN7.js';
|
|
5
5
|
import { migrateLegacyArtifactSidecars, planArtifactUpload, artifactsStatePath, sanitizeTerminal, acquireArtifactSpoolLock, artifactBlobsDir, resolveArtifactTurnIndex, isArtifactTombstoned, ARTIFACT_RETRY_MAX_AGE_MS, writeArtifactSpoolState, reclaimUnneededArtifactBlobs, neededArtifactShas } from './chunk-DV44KCM6.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { cliFetch, resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-N7PG5JAD.js';
|
|
8
8
|
import { readCloudConfig, cloudConfigPath, writeCloudConfig } from './chunk-HWVMRETT.js';
|
|
9
|
-
import { signerFor, signRunnerRequest } from './chunk-
|
|
10
|
-
import { SCRUB_ENV_VARIABLE } from './chunk-
|
|
11
|
-
import { writeSyncStatus, logHookError, spoolDir } from './chunk-
|
|
9
|
+
import { signerFor, signRunnerRequest } from './chunk-NDDXBJMX.js';
|
|
10
|
+
import { SCRUB_ENV_VARIABLE } from './chunk-VXU5IAEQ.js';
|
|
11
|
+
import { writeSyncStatus, logHookError, spoolDir } from './chunk-E5PWV6H2.js';
|
|
12
12
|
import { readLatestProvenanceForSession, readContextProvenance } from './chunk-545P7JY7.js';
|
|
13
13
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
14
14
|
import { hookExecSpoolPath } from './chunk-RNCCRUT5.js';
|
|
@@ -16,7 +16,7 @@ import { applyReportedCost } from './chunk-BKO6JEZI.js';
|
|
|
16
16
|
import { readLaunchSpoolState, launchStatusIsDecisive, parseRunEnv, launchedItemsBySession, launchesPath } from './chunk-LGJ56FCM.js';
|
|
17
17
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
18
18
|
import { removeJournalHooks } from './chunk-CJPTUU2E.js';
|
|
19
|
-
import { legacyAgent, captureAgents, captureAdapters } from './chunk-
|
|
19
|
+
import { legacyAgent, captureAgents, captureAdapters } from './chunk-LPQJ5LXP.js';
|
|
20
20
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
21
21
|
import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
|
|
22
22
|
import { setCustomScrubbers, setLocalIdentity, forkFor, readForkRecord, tailTranscript, enrichSessionRepo, scanAll, setRepoRoot, resolveRepoIdentity, scrubDeep } from './chunk-Y55ARAPE.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readSettingsText, SettingsParseError, cliForInstall } from './chunk-ZHQC43NH.js';
|
|
4
|
-
import { legacyAgent, defaultAgents, HookTextError } from './chunk-
|
|
4
|
+
import { legacyAgent, defaultAgents, HookTextError } from './chunk-LPQJ5LXP.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 { defaultAgents, agentById } from './chunk-
|
|
3
|
+
import { defaultAgents, agentById } from './chunk-LPQJ5LXP.js';
|
|
4
4
|
import { PROVIDERS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
5
5
|
import { join, dirname } from 'path';
|
|
6
6
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-
|
|
3
|
+
import { isAgentsMdLayout, discoverOuterlayerPaths, isForeignTree, toRepoRelative } from './chunk-XDBHRWPQ.js';
|
|
4
4
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
5
|
-
import { invalidConfigMessage } from './chunk-
|
|
6
|
-
import { retiredSkillPaths, removeRetiredSkills } from './chunk-
|
|
5
|
+
import { invalidConfigMessage } from './chunk-ZCOIE7ZJ.js';
|
|
6
|
+
import { retiredSkillPaths, removeRetiredSkills } from './chunk-7GJGSADZ.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-
|
|
8
|
+
import { maintainedFilesForExistingSkills, loadMaintainedFiles, emitTree, emitBuilders, defaultAgents, targetIds, generatedHeaderSource, parseOuterlayerConfig, classifyTree, writeMaintainedFiles, agentById } from './chunk-LPQJ5LXP.js';
|
|
9
9
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
10
10
|
import { existsSync, readFileSync, mkdirSync, writeFileSync, copyFileSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
11
11
|
import { join, dirname } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { currentLink } from './chunk-
|
|
3
|
+
import { currentLink } from './chunk-PT3DOY6P.js';
|
|
4
4
|
import { readFileSync, statSync, chmodSync, mkdirSync, writeFileSync, renameSync, rmSync, existsSync, lstatSync, accessSync, constants, realpathSync } from 'fs';
|
|
5
5
|
import { randomBytes } from 'crypto';
|
|
6
6
|
import { join, dirname, delimiter, resolve } from 'path';
|
|
@@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
|
|
3
3
|
import { appendContextProvenance } from './chunk-545P7JY7.js';
|
|
4
4
|
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-SF2TBJBP.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
|
-
import { updateNoticeContext, staleMachineCopiesContext } from './chunk-
|
|
6
|
+
import { updateNoticeContext, staleMachineCopiesContext } from './chunk-Z7J7JWGF.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
8
|
import { deadHooksState, huskyPrepareScript, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
|
|
9
9
|
import { hookCodec } from './chunk-PLVHIQJN.js';
|
|
@@ -678,7 +678,7 @@ async function missingRenewalHookContext(home, cwd, codec) {
|
|
|
678
678
|
try {
|
|
679
679
|
const event = codec.events.find((name) => kindOf(codec, name) === "tool-used");
|
|
680
680
|
if (event === void 0) return void 0;
|
|
681
|
-
const { hookRegistered } = await import('./hook-install-
|
|
681
|
+
const { hookRegistered } = await import('./hook-install-ZZV5WVDH.js');
|
|
682
682
|
const registered = hookRegistered(event, { home, cwd });
|
|
683
683
|
if (registered !== false) return void 0;
|
|
684
684
|
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.`;
|
|
@@ -878,11 +878,11 @@ async function missingControlPlane(cwd, sessionId, home, env) {
|
|
|
878
878
|
const dirs = findGitDirs(cwd);
|
|
879
879
|
if (dirs === void 0) return void 0;
|
|
880
880
|
if (existsSync(join(dirs.gitCommonDir, "outerlayer", "materialized.json")) || hasExcludeBlock(dirs.gitCommonDir)) {
|
|
881
|
-
const { cleanupEarlierCopies } = await import('./context-cleanup-
|
|
881
|
+
const { cleanupEarlierCopies } = await import('./context-cleanup-VYUESYGU.js');
|
|
882
882
|
cleanupEarlierCopies(dirs);
|
|
883
883
|
}
|
|
884
884
|
if (!contextPossiblyGoverned(cwd, home)) return void 0;
|
|
885
|
-
const { governanceOf } = await import('./control-plane-launch-
|
|
885
|
+
const { governanceOf } = await import('./control-plane-launch-HQPMYL7O.js');
|
|
886
886
|
if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
|
|
887
887
|
recordMissingContext(dirs, sessionId, home);
|
|
888
888
|
const launcher = `${cliInvocation()} ${LEGACY.legacy.subcommand}`;
|
|
@@ -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-V2O6KLTQ.js';
|
|
4
|
+
import { orgHomeDir } from './chunk-DYV2OC4S.js';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
7
7
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession } from './chunk-
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
5
|
-
import { workPageUrl } from './chunk-
|
|
3
|
+
import { detectActiveSession } from './chunk-IKGAVS5X.js';
|
|
4
|
+
import { autoConnect } from './chunk-5EQ2B6UE.js';
|
|
5
|
+
import { workPageUrl } from './chunk-IGVOCKAC.js';
|
|
6
6
|
import { sanitizeTerminal } from './chunk-DV44KCM6.js';
|
|
7
7
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
8
|
-
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-
|
|
9
|
-
import { signRunnerRequest } from './chunk-
|
|
8
|
+
import { resolveGatewayCredentials, unauthorizedMessage, defaultFetch } from './chunk-N7PG5JAD.js';
|
|
9
|
+
import { signRunnerRequest } from './chunk-NDDXBJMX.js';
|
|
10
10
|
import { readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
@@ -563,7 +563,7 @@ async function runWorkLinkSession(opts) {
|
|
|
563
563
|
return await linkSession(opts);
|
|
564
564
|
} catch (err) {
|
|
565
565
|
if (opts.logFailures) {
|
|
566
|
-
const { logHookError } = await import('./hook-fast-
|
|
566
|
+
const { logHookError } = await import('./hook-fast-E2JV656K.js');
|
|
567
567
|
const reason = err instanceof Error ? err.message : String(err);
|
|
568
568
|
logHookError(opts.home ?? homeFromEnv(opts.env ?? process.env), new Error(`work link-session #${opts.number} failed: ${reason}`));
|
|
569
569
|
}
|
|
@@ -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-4L3WCEOI.js';
|
|
4
|
+
import { inspectService, realInspectProbes } from './chunk-XOJRFV3U.js';
|
|
5
5
|
import { realpathSync, readFileSync, readdirSync } from 'fs';
|
|
6
6
|
import { resolve, dirname, join } from 'path';
|
|
7
7
|
|
|
@@ -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, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-
|
|
6
|
-
import { withInjectedPrograms } from './chunk-
|
|
7
|
-
import { isLinkedRepository } from './chunk-
|
|
3
|
+
import { checkStarterFiles, contextIsGoverned } from './chunk-R3RALX7H.js';
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-F7AOOV5N.js';
|
|
5
|
+
import { fleetCheck, checkBuildSkill, checkSpecSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-ZDXEZPRM.js';
|
|
6
|
+
import { withInjectedPrograms } from './chunk-5SKYWQ64.js';
|
|
7
|
+
import { isLinkedRepository } from './chunk-IGVOCKAC.js';
|
|
8
8
|
import { sanitizeTerminal } from './chunk-DV44KCM6.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-7GJGSADZ.js';
|
|
11
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-N7PG5JAD.js';
|
|
12
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-E5PWV6H2.js';
|
|
13
13
|
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-SF2TBJBP.js';
|
|
14
14
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
15
15
|
import { readStatuslineState, STATE_FRESH_MS } from './chunk-M53UNEO6.js';
|
|
16
16
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
17
|
-
import { installAgents, withSettingsText } from './chunk-
|
|
17
|
+
import { installAgents, withSettingsText } from './chunk-BD254PYH.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-LPQJ5LXP.js';
|
|
22
22
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
23
23
|
import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-Y55ARAPE.js';
|
|
24
24
|
import { CRITERIA_JUDGE_NAME } from './chunk-MCUI6RHU.js';
|
|
@@ -1093,8 +1093,8 @@ function doctorExitCode(checks) {
|
|
|
1093
1093
|
|
|
1094
1094
|
// src/doctor-report.ts
|
|
1095
1095
|
async function gatherDoctorChecks(options = {}) {
|
|
1096
|
-
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-
|
|
1097
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1096
|
+
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-KN7OJLKB.js');
|
|
1097
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-ME2W5VIX.js');
|
|
1098
1098
|
const configPath = options.configPath ?? defaultRunnerConfigPath();
|
|
1099
1099
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1100
1100
|
const hooks = (() => {
|
|
@@ -1122,7 +1122,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1122
1122
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1123
1123
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1124
1124
|
} else if (hasRunnerBlock(configPath)) {
|
|
1125
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1125
|
+
const { runnerHostChecks } = await import('./doctor-7I2OAX3E.js');
|
|
1126
1126
|
const gateway = (() => {
|
|
1127
1127
|
try {
|
|
1128
1128
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1150,7 +1150,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1150
1150
|
const service = await (async () => {
|
|
1151
1151
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1152
1152
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1153
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1153
|
+
const { inspectRunnerService } = await import('./find-unit-AFBSWEOE.js');
|
|
1154
1154
|
return inspectRunnerService(configPath);
|
|
1155
1155
|
})();
|
|
1156
1156
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-DV44KCM6.js';
|
|
4
|
-
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-
|
|
4
|
+
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-XDBHRWPQ.js';
|
|
5
5
|
import { DEFAULT_DASHBOARD } from './chunk-4TVL4E53.js';
|
|
6
|
-
import { cliFetch, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-N7PG5JAD.js';
|
|
7
7
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
8
8
|
import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
9
9
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
10
|
-
import { defaultAgents } from './chunk-
|
|
10
|
+
import { defaultAgents } from './chunk-LPQJ5LXP.js';
|
|
11
11
|
import { remoteLookupFailed } from './chunk-Y55ARAPE.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { lstatSync } from 'fs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { CONTROL_PLANE_DIR_VARIABLE, SUPPORTED_CONTROL_PLANE_LAYOUT } from './chunk-SF2TBJBP.js';
|
|
4
|
-
import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-
|
|
4
|
+
import { legacyAgent, agentById, defaultAgents, legacySubcommand } from './chunk-LPQJ5LXP.js';
|
|
5
5
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
6
|
-
import { MAINTAINED_SKILLS } from './chunk-
|
|
6
|
+
import { MAINTAINED_SKILLS } from './chunk-VSBG7MMU.js';
|
|
7
7
|
import { lstatSync, readFileSync } from 'fs';
|
|
8
8
|
import { join } from 'path';
|
|
9
9
|
|
|
@@ -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-LPQJ5LXP.js';
|
|
4
4
|
import { openSync, fstatSync, readSync, closeSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,15 +1,15 @@
|
|
|
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-YN6EKURT.js';
|
|
4
|
+
import { claimPidFile, RunnerAlreadyRunningError, releasePidFile } from './chunk-MGN525G6.js';
|
|
5
5
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
6
6
|
import { withNewTokenRetry, REFUSED_BY_REMOTE } from './chunk-FJGYU2EK.js';
|
|
7
|
-
import { runnerLabelValue } from './chunk-
|
|
8
|
-
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-
|
|
7
|
+
import { runnerLabelValue } from './chunk-TCPWJBH5.js';
|
|
8
|
+
import { RecipeError, locateRecipe, readRecipe, assertBuildable, writeSanitizedRecipe, classifyProperties, SANITIZED_NAME } from './chunk-ZBD2YOGH.js';
|
|
9
9
|
import { removeLeftoverGitLocks } from './chunk-A2WPWZJA.js';
|
|
10
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-
|
|
11
|
-
import { withGitConfig, tokenHeader } from './chunk-
|
|
12
|
-
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-
|
|
10
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, repoCacheDir, imagesDir, imageBuildLogsDir, attemptStamp, orgStore, rootfsPathFor } from './chunk-DYV2OC4S.js';
|
|
11
|
+
import { withGitConfig, tokenHeader } from './chunk-VXU5IAEQ.js';
|
|
12
|
+
import { UNIVERSAL_IMAGE_DIGEST, UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_SOURCE, buildAgentPin, NODE_IMAGE, UNIVERSAL_IMAGE, MEDIA_PINS, TINI_VERSION, GH_VERSION, imageAgentPins } from './chunk-BFKSIA3V.js';
|
|
13
13
|
import { mkdirSync, writeFileSync, existsSync, mkdtempSync, rmSync, cpSync, readFileSync, readdirSync, lstatSync, readlinkSync } from 'fs';
|
|
14
14
|
import { tmpdir } from 'os';
|
|
15
15
|
import { join, dirname } from 'path';
|