@outerlayer/cli 0.38.0-next.20261109143949 → 0.38.0-next.20261109235338
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 +11 -1
- package/dist/{agent-setup-MLSWF7RF.js → agent-setup-F4KAKOQE.js} +19 -19
- package/dist/{agent-subcommand-DCOPM2NX.js → agent-subcommand-JC5JXZ3X.js} +3 -3
- package/dist/{bridge-HZRJYECQ.js → bridge-TYO2YB2X.js} +6 -6
- package/dist/{build-3LXKCCJF.js → build-QUCL3HFM.js} +12 -12
- package/dist/{build-disk-TYX6DU5R.js → build-disk-3JUHPJEQ.js} +10 -10
- package/dist/build-info.json +1 -1
- package/dist/{builder-VYKWHAUQ.js → builder-PADLK3VJ.js} +9 -9
- package/dist/caller-LYH64TZB.js +23 -0
- package/dist/{check-YUKNUSAS.js → check-DBYJIP44.js} +56 -56
- package/dist/{chunk-DEWD22FA.js → chunk-26NMJGEY.js} +1 -1
- package/dist/{chunk-LA5UO6LI.js → chunk-2BMH3373.js} +5 -4
- package/dist/{chunk-JAURZKSE.js → chunk-2TA2Z5IJ.js} +5 -5
- package/dist/{chunk-HW7QPCOP.js → chunk-2YOFSE7U.js} +145 -50
- package/dist/{chunk-OKELGJNN.js → chunk-3Q2SEOT3.js} +1 -1
- package/dist/{chunk-MMSFADKC.js → chunk-3QTC4UWC.js} +1 -1
- package/dist/{chunk-C3K54KRU.js → chunk-4A4TMFGV.js} +5 -5
- package/dist/{chunk-F3MEL6B6.js → chunk-4NRIC2G5.js} +4 -4
- package/dist/{chunk-4K2EMRJP.js → chunk-52IVBUIU.js} +6 -6
- package/dist/{chunk-LYWLBZ37.js → chunk-553QW3PJ.js} +2 -2
- package/dist/{chunk-NHT7RHAI.js → chunk-5AU2GQGH.js} +3 -3
- package/dist/{chunk-EGKYININ.js → chunk-5J4WME44.js} +5 -5
- package/dist/{chunk-NR3FDUWS.js → chunk-6L55K352.js} +7 -7
- package/dist/{chunk-OPGF3FUY.js → chunk-6ZMFEZ2K.js} +2 -2
- package/dist/{chunk-SLR6QAOE.js → chunk-7HN6T4MY.js} +1 -1
- package/dist/{chunk-LOG4LBUY.js → chunk-7NP5G2FV.js} +2 -2
- package/dist/{chunk-G7HNRAXN.js → chunk-A237UPRS.js} +14 -14
- package/dist/{chunk-CDDED64E.js → chunk-ATEMEVFF.js} +1 -1
- package/dist/{chunk-GVK7AKFX.js → chunk-AZRZBG45.js} +9 -7
- package/dist/{chunk-TFR6S7ZB.js → chunk-BAWOWJ3G.js} +10 -10
- package/dist/{chunk-WGC7UFRM.js → chunk-C2PZOLN7.js} +3 -2
- package/dist/{chunk-Q6ANHBJK.js → chunk-C7YFAPMY.js} +1 -1
- package/dist/{chunk-TTG6Y7G7.js → chunk-DE5QLWJK.js} +2 -2
- package/dist/{chunk-X45WDWSV.js → chunk-DPBFNZ6H.js} +1 -1
- package/dist/{chunk-EI6JYZ42.js → chunk-DQLHVV62.js} +3 -3
- package/dist/{chunk-LIMJRKIU.js → chunk-EYFIWJFI.js} +5 -5
- package/dist/{chunk-U463IFDK.js → chunk-F3NW5TBW.js} +6 -6
- package/dist/{chunk-KIYP5TML.js → chunk-F4XMG7EO.js} +1 -1
- package/dist/{chunk-ZWWU7COR.js → chunk-FLIRUHVT.js} +1 -1
- package/dist/{chunk-2J3X2Z4F.js → chunk-G2J574LS.js} +7 -7
- package/dist/{chunk-2XEQCSCQ.js → chunk-GH5Y3R5R.js} +4 -4
- package/dist/{chunk-UCDCPQXU.js → chunk-HITUWIB7.js} +1 -1
- package/dist/{chunk-6EN72I2O.js → chunk-HT4OKJDB.js} +1 -1
- package/dist/{chunk-IG5ZZG7R.js → chunk-HWHJDQLC.js} +3 -3
- package/dist/{chunk-NFZMENCY.js → chunk-I45HTSSA.js} +1 -1
- package/dist/{chunk-4EQQS3VJ.js → chunk-IJWQT2Y7.js} +1 -1
- package/dist/{chunk-BDTFO5S7.js → chunk-IPB5UOHH.js} +2 -2
- package/dist/{chunk-5OBQBINA.js → chunk-IXC5EISR.js} +1 -1
- package/dist/{chunk-RVYMYTXX.js → chunk-JLCEQXQF.js} +1 -1
- package/dist/{chunk-O4Q7GPKU.js → chunk-KGHVJI7V.js} +3 -3
- package/dist/{chunk-4LUHKCDO.js → chunk-KHC7ICRR.js} +23 -12
- package/dist/{chunk-4OD45RBP.js → chunk-LGJ56FCM.js} +11 -2
- package/dist/{chunk-GECHL3NC.js → chunk-LJPYKCIP.js} +4 -4
- package/dist/{chunk-CCEP5WBI.js → chunk-MGOEHY72.js} +13 -11
- package/dist/{chunk-OYBBYENC.js → chunk-NAU7U44X.js} +6 -6
- package/dist/{chunk-Z4R73UUH.js → chunk-NL2MMRJI.js} +6 -6
- package/dist/{chunk-LO3PSFNT.js → chunk-O7IJBJ6Z.js} +1 -1
- package/dist/{chunk-RMXRQ3OC.js → chunk-OQHHPJNK.js} +1 -1
- package/dist/{chunk-HGWDBTQ3.js → chunk-P43BSQGV.js} +3 -3
- package/dist/{chunk-JMWCPEKP.js → chunk-PCY626FL.js} +2 -2
- package/dist/{chunk-JKRVSEK7.js → chunk-PE5J46EE.js} +8 -8
- package/dist/{chunk-RVDXHF2M.js → chunk-QA3U3MJZ.js} +129 -42
- package/dist/{chunk-7TM2E4RI.js → chunk-QZP3O6IM.js} +6 -6
- package/dist/{chunk-5TZCV6JB.js → chunk-RN5VLKZ2.js} +1 -1
- package/dist/{chunk-HUP2CGX4.js → chunk-SKKKPLOC.js} +3 -3
- package/dist/{chunk-D7KYG37D.js → chunk-SOLQ3JA6.js} +19 -8
- package/dist/{chunk-UNA4YIHE.js → chunk-SWXAP4GM.js} +4 -4
- package/dist/{chunk-X56UUEHE.js → chunk-TYLZR7HX.js} +12 -3
- package/dist/{chunk-QP6SPQU5.js → chunk-UU6FN6PZ.js} +5 -5
- package/dist/{chunk-H3YHAO7L.js → chunk-W37QA6WG.js} +1 -1
- package/dist/{chunk-LLVBDIQJ.js → chunk-WE4CWGNR.js} +7 -7
- package/dist/{chunk-KX4JKW4Z.js → chunk-WISVAUTD.js} +7 -4
- package/dist/{chunk-22QIA7SH.js → chunk-X3CGWGAG.js} +1 -1
- package/dist/{chunk-BFWZGLUU.js → chunk-XDHMRHMC.js} +1 -1
- package/dist/{chunk-DX27B42J.js → chunk-XLUQC2PE.js} +1 -1
- package/dist/{chunk-LIH6CIVB.js → chunk-XMVASSUZ.js} +1 -1
- package/dist/{chunk-TNAUQADA.js → chunk-XPXJWIOJ.js} +1 -1
- package/dist/{chunk-6JW2L7UV.js → chunk-Y2M2NZX4.js} +8 -8
- package/dist/{chunk-T63WTVGY.js → chunk-Y67NEZMW.js} +5 -5
- package/dist/{chunk-B3ILHK4Q.js → chunk-ZIOMM4LL.js} +5 -5
- package/dist/{chunk-KFHF3GBH.js → chunk-ZRTGX4GN.js} +3 -3
- package/dist/{chunk-GTKR2YEZ.js → chunk-ZUIHEOSC.js} +1 -1
- package/dist/{chunk-PM4YDVAX.js → chunk-ZZ4AX25R.js} +1 -1
- package/dist/{claude-launcher-YDSG5XIN.js → claude-launcher-UYCMHZOU.js} +6 -6
- package/dist/{cli-7VKJRQWW.js → cli-KEVUJ6PY.js} +193 -146
- package/dist/{cli-update-notice-AWYJ4A7R.js → cli-update-notice-OC4SOSZE.js} +2 -2
- package/dist/{command-3WAJBJWX.js → command-DNGERCQW.js} +51 -50
- package/dist/{config-O2LJAZJZ.js → config-M66C2AGN.js} +11 -11
- package/dist/{connect-cmd-3DBWVCUL.js → connect-cmd-JBM5ODV3.js} +11 -11
- package/dist/{container-start-T4GH4WLX.js → container-start-4NKXX3MA.js} +49 -48
- package/dist/{context-cleanup-Z23RX7JT.js → context-cleanup-UE5HQRHP.js} +3 -3
- package/dist/{context-show-cmd-OGRCR5OT.js → context-show-cmd-HX5LND6O.js} +12 -12
- package/dist/{control-plane-launch-JZPULKCL.js → control-plane-launch-XEMMZ7VZ.js} +14 -14
- package/dist/{demo-record-cmd-YPWPHDAN.js → demo-record-cmd-PI4PFFEO.js} +7 -7
- package/dist/{demo-voice-cmd-TNZ2G5CJ.js → demo-voice-cmd-3GASMSCU.js} +20 -20
- package/dist/{docker-MOESJVCB.js → docker-KWHEDC6K.js} +9 -9
- package/dist/{doctor-KHAB6YWH.js → doctor-GPATU5TY.js} +51 -50
- package/dist/{emit-artifact-cmd-W7YBXLA7.js → emit-artifact-cmd-OH7PNHZF.js} +19 -19
- package/dist/{emit-cmd-3YOUQCID.js → emit-cmd-RPICQ5H2.js} +6 -6
- package/dist/{emit-criteria-cmd-KZW275Q2.js → emit-criteria-cmd-JW2GS2SO.js} +16 -16
- package/dist/{emit-demo-cmd-3UBPYRAM.js → emit-demo-cmd-5W6H6AI4.js} +20 -20
- package/dist/{emit-finding-cmd-NL6H2PBJ.js → emit-finding-cmd-PSCJFCBZ.js} +16 -16
- package/dist/{emit-result-cmd-KRUV7V74.js → emit-result-cmd-VJZDDWD3.js} +18 -18
- package/dist/{emit-step-cmd-SHBIO2JI.js → emit-step-cmd-ER65MOU6.js} +16 -16
- package/dist/{exec-client-WJLO2KWS.js → exec-client-PHJ4YGYG.js} +7 -7
- package/dist/find-unit-D7MX5YW7.js +24 -0
- package/dist/{findings-cmd-3JP4GYD3.js → findings-cmd-BN6LO7LI.js} +16 -16
- package/dist/{fleet-readiness-U4IZZV52.js → fleet-readiness-FHVT7ZXE.js} +13 -13
- package/dist/governing-source-6WWMRJEI.js +41 -0
- package/dist/{guest-init-HIKD3MHJ.js → guest-init-IREU7IIE.js} +8 -8
- package/dist/{hook-fast-2ENS5AKU.js → hook-fast-OFCB6O5N.js} +3 -3
- package/dist/{hook-install-JTYPE5ZQ.js → hook-install-3SSLJYA3.js} +3 -3
- package/dist/host-checks-KYLKXG2A.js +80 -0
- package/dist/{host-key-V2VVCBGR.js → host-key-4764FB4U.js} +7 -7
- package/dist/{image-tag-EX2R462S.js → image-tag-MYCA26HL.js} +7 -7
- package/dist/index.js +4 -4
- package/dist/init-EPBASJNK.js +80 -0
- package/dist/{init-7F2KP6XU.js → init-RUY6NPTN.js} +47 -46
- package/dist/{init-agent-RJSMNEWD.js → init-agent-Z6PF22UT.js} +47 -46
- package/dist/{init-cmd-F72BWVFC.js → init-cmd-3M4QENFU.js} +25 -25
- package/dist/{init-update-ZWSICDTJ.js → init-update-V4AWGCUH.js} +22 -22
- package/dist/{install-cmd-LX76Y7NB.js → install-cmd-UJO2EMXF.js} +9 -9
- package/dist/{layout-4FLIBRPO.js → layout-VZ3MERWV.js} +3 -3
- package/dist/{logs-BWGJ2BVT.js → logs-SQJ5BKAP.js} +6 -6
- package/dist/loop-VUNIGNXU.js +90 -0
- package/dist/machine-2KFSAU27.js +80 -0
- package/dist/{machine-skills-UEQA3AUX.js → machine-skills-SAD5OWIH.js} +3 -3
- package/dist/{mcp-install-cmd-DBKKGLHW.js → mcp-install-cmd-7KKOGEFA.js} +3 -3
- package/dist/{mcp-serve-cmd-LFXU5UGJ.js → mcp-serve-cmd-EKANKY4W.js} +9 -9
- package/dist/{paths-CSZZQK3X.js → paths-LYF7UNWL.js} +6 -6
- package/dist/pending-3FQ3GG6T.js +18 -0
- package/dist/{pidfile-TTIUEDXW.js → pidfile-EYAULWL2.js} +7 -7
- package/dist/{record-U7DU6IVT.js → record-CHYO34BN.js} +7 -7
- package/dist/{relay-KZTGUSFJ.js → relay-J3OROVNN.js} +4 -4
- package/dist/{relay-protocol-LG4J5K63.js → relay-protocol-UI7QUDOZ.js} +4 -4
- package/dist/run-cmd-PIMQNBAX.js +114 -0
- package/dist/{runner-agents-32J743FJ.js → runner-agents-KSP3MLAH.js} +3 -3
- package/dist/{runner-env-RGYTHURZ.js → runner-env-AMGOE3UI.js} +13 -13
- package/dist/{runner-identity-VQCIKNBK.js → runner-identity-WZAKGBRX.js} +9 -9
- package/dist/{runner-key-TFFPQCGE.js → runner-key-HGHQYJJX.js} +47 -46
- package/dist/{session-sender-3VFTMIM3.js → session-sender-W6MTYKLE.js} +19 -19
- package/dist/{spec-cmd-RQFIJ75J.js → spec-cmd-RJVMWOOX.js} +17 -17
- package/dist/{starter-pack-LO3D6CPP.js → starter-pack-52PX6IPU.js} +4 -4
- package/dist/{state-IH6JOEJZ.js → state-UIV37NXY.js} +7 -7
- package/dist/{status-KGZWBU26.js → status-YQ25OCUL.js} +47 -46
- package/dist/{sync-cmd-4RSCWFAF.js → sync-cmd-2NBSELL7.js} +18 -18
- package/dist/update-steps-FH7UXI5N.js +81 -0
- package/dist/{watch-NH5QZJLE.js → watch-WQGK2SQB.js} +18 -18
- package/dist/{work-claim-cmd-FNE2ZMVG.js → work-claim-cmd-CQ3DSJBR.js} +21 -21
- package/dist/{work-cmd-32J5UQJO.js → work-cmd-B32BDBV2.js} +14 -14
- package/dist/{work-comment-cmd-ZUZEAIIH.js → work-comment-cmd-L5FTPUGE.js} +16 -16
- package/dist/{work-demo-cmd-56C6JQD3.js → work-demo-cmd-BOKSQSA5.js} +14 -14
- package/dist/{work-launch-LWDQXLGI.js → work-launch-ODTGCNJC.js} +1 -1
- package/dist/{work-logs-cmd-XKVZ2UY6.js → work-logs-cmd-TZXDF3UI.js} +14 -14
- package/dist/{work-needs-attention-cmd-DYD3AIRU.js → work-needs-attention-cmd-WR5GR3B6.js} +14 -14
- package/dist/{work-no-change-cmd-QVD67UG5.js → work-no-change-cmd-TKC3V64O.js} +14 -14
- package/dist/{work-open-pr-cmd-3SSJPKHW.js → work-open-pr-cmd-T2IFI7OR.js} +16 -16
- package/dist/{work-pr-cmd-DF6Q5XHU.js → work-pr-cmd-WM6PGSGK.js} +15 -15
- package/dist/{work-proofs-cmd-2XWS5N2R.js → work-proofs-cmd-E4VJP55B.js} +17 -17
- package/dist/{work-proofs-record-KEZ6Z4QH.js → work-proofs-record-MIVUWECF.js} +24 -24
- package/dist/{work-stop-cmd-4KNMURDC.js → work-stop-cmd-52WGVYF5.js} +14 -14
- package/package.json +2 -2
- package/skill-pack/maintained/outerlayer-run/SKILL.md +49 -0
- package/skill-pack/shipped.json +2 -0
- package/skill-pack/template/spec/SKILL.md +10 -11
- package/skill-pack/template/writing-specs/SKILL.md +18 -22
- package/dist/caller-VU7QBFHQ.js +0 -23
- package/dist/find-unit-YNIILXQK.js +0 -24
- package/dist/governing-source-VZFU65KP.js +0 -41
- package/dist/host-checks-HZLHQ6WH.js +0 -79
- package/dist/init-XTTWPX6J.js +0 -79
- package/dist/loop-O5JBFZXP.js +0 -90
- package/dist/machine-LGJSYGQS.js +0 -79
- package/dist/pending-BHRSEFXV.js +0 -18
- package/dist/update-steps-3LU3NZQL.js +0 -80
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, BUILD_HOME } from './chunk-
|
|
3
|
+
import { RELAY_PORT, BUILD_HOME } from './chunk-UU6FN6PZ.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-
|
|
4
|
-
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-
|
|
3
|
+
import { parseSize, BUILD_LABEL, RUNNER_LABEL, runnerLabelValue } from './chunk-G2J574LS.js';
|
|
4
|
+
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-O7IJBJ6Z.js';
|
|
5
5
|
import { spawnSync } from 'child_process';
|
|
6
6
|
import { statfsSync, statSync, existsSync, readdirSync } from 'fs';
|
|
7
7
|
import { dirname, join } from 'path';
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { checkStarterFiles, contextIsGoverned } from './chunk-
|
|
4
|
-
import { resolveCredentials, getJson, WorkCommandError } from './chunk-
|
|
5
|
-
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-
|
|
6
|
-
import { withInjectedPrograms } from './chunk-
|
|
7
|
-
import { isLinkedRepository } from './chunk-
|
|
3
|
+
import { checkStarterFiles, contextIsGoverned } from './chunk-EYFIWJFI.js';
|
|
4
|
+
import { resolveCredentials, getJson, WorkCommandError } from './chunk-QZP3O6IM.js';
|
|
5
|
+
import { fleetCheck, checkBuildSkill, checkMachineSkills, checkCommittedMaintainedSkills, checkMaintainedReferences, checkIgnoredSkillFolders } from './chunk-NL2MMRJI.js';
|
|
6
|
+
import { withInjectedPrograms } from './chunk-X3CGWGAG.js';
|
|
7
|
+
import { isLinkedRepository } from './chunk-ZRTGX4GN.js';
|
|
8
8
|
import { sanitizeTerminal } from './chunk-2DVQHK37.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-HITUWIB7.js';
|
|
11
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-6ZMFEZ2K.js';
|
|
12
|
+
import { sanitizeForContext, spoolDir, assessSyncHealth, readSyncStatus, SYNC_STALE_AFTER_MS, formatAgo, checkInstalledCliStaleness, workspaceRootOf, hookFiredMarkerPath, refreshCommand } from './chunk-SOLQ3JA6.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-W37QA6WG.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-3Q2SEOT3.js';
|
|
22
22
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
23
23
|
import { SUPPORTED_VERSIONS, resolveRepoIdentity } from './chunk-N2QYP3NQ.js';
|
|
24
24
|
import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, accessSync, constants, statSync } from 'fs';
|
|
@@ -1051,8 +1051,8 @@ function doctorExitCode(checks) {
|
|
|
1051
1051
|
|
|
1052
1052
|
// src/doctor-report.ts
|
|
1053
1053
|
async function gatherDoctorChecks(options = {}) {
|
|
1054
|
-
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-
|
|
1055
|
-
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-
|
|
1054
|
+
const { DEFAULT_BUILD_DISK, DEFAULT_CACHE_DISK } = await import('./build-disk-3JUHPJEQ.js');
|
|
1055
|
+
const { defaultRunnerConfigPath, hasRunnerBlock, keyRunnerFactory, loadRunnerConfig, runnerVmOf } = await import('./config-M66C2AGN.js');
|
|
1056
1056
|
const configPath = options.configPath ?? defaultRunnerConfigPath();
|
|
1057
1057
|
const runnerHost = hasRunnerBlock(configPath);
|
|
1058
1058
|
const hooks = (() => {
|
|
@@ -1080,7 +1080,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1080
1080
|
const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
|
|
1081
1081
|
checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
|
|
1082
1082
|
} else if (hasRunnerBlock(configPath)) {
|
|
1083
|
-
const { runnerHostChecks } = await import('./doctor-
|
|
1083
|
+
const { runnerHostChecks } = await import('./doctor-GPATU5TY.js');
|
|
1084
1084
|
const gateway = (() => {
|
|
1085
1085
|
try {
|
|
1086
1086
|
const loaded = loadRunnerConfig(configPath);
|
|
@@ -1108,7 +1108,7 @@ async function gatherDoctorChecks(options = {}) {
|
|
|
1108
1108
|
const service = await (async () => {
|
|
1109
1109
|
const { existsSync: existsSync3 } = await import('fs');
|
|
1110
1110
|
if (process.platform !== "linux" || !existsSync3("/run/systemd/system")) return void 0;
|
|
1111
|
-
const { inspectRunnerService } = await import('./find-unit-
|
|
1111
|
+
const { inspectRunnerService } = await import('./find-unit-D7MX5YW7.js');
|
|
1112
1112
|
return inspectRunnerService(configPath);
|
|
1113
1113
|
})();
|
|
1114
1114
|
checks.push(...await runnerHostChecks({ configPath, hooks, gateway, repos, runner, service }));
|
|
@@ -4,7 +4,7 @@ import { createRequire } from 'node:module';
|
|
|
4
4
|
createRequire(import.meta.url);
|
|
5
5
|
|
|
6
6
|
// src/maintained-line.ts
|
|
7
|
-
var MAINTAINED_SKILLS = ["outerlayer-evidence", "outerlayer-amend", "outerlayer-findings", "outerlayer-cli", "outerlayer-build"];
|
|
7
|
+
var MAINTAINED_SKILLS = ["outerlayer-evidence", "outerlayer-amend", "outerlayer-findings", "outerlayer-cli", "outerlayer-build", "outerlayer-run"];
|
|
8
8
|
var MAINTAINED_LINE_VERSION = /^<!-- maintained by OuterLayer (\S+?)\. /m;
|
|
9
9
|
function maintainedLineVersion(text) {
|
|
10
10
|
return MAINTAINED_LINE_VERSION.exec(text)?.[1];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import { spoolDir } from './chunk-
|
|
5
|
-
import { parseWorkItemEnv } from './chunk-
|
|
6
|
-
import { sessionFolderIn, legacyAgent } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-KHC7ICRR.js';
|
|
4
|
+
import { spoolDir } from './chunk-SOLQ3JA6.js';
|
|
5
|
+
import { parseRunEnv, parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
6
|
+
import { sessionFolderIn, legacyAgent } from './chunk-3Q2SEOT3.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { CaptureDaemon } from './chunk-N2QYP3NQ.js';
|
|
9
9
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
@@ -18,11 +18,13 @@ function senderPidfile(home, item) {
|
|
|
18
18
|
async function startSessionSender(opts = {}) {
|
|
19
19
|
const env = opts.env ?? process.env;
|
|
20
20
|
const stderr = opts.stderr ?? ((s) => void process.stderr.write(s));
|
|
21
|
-
const
|
|
21
|
+
const run = env.OUTERLAYER_WORK === void 0 ? parseRunEnv(env.OUTERLAYER_RUN) : void 0;
|
|
22
|
+
const parsed = run ?? parseWorkItemEnv(env.OUTERLAYER_WORK);
|
|
22
23
|
const jobDir = env.OUTERLAYER_JOB_DIR;
|
|
23
24
|
if ("reason" in parsed || !jobDir) {
|
|
24
25
|
throw new Error("a session sender runs inside a runner job: OUTERLAYER_WORK must name the item and OUTERLAYER_JOB_DIR the job");
|
|
25
26
|
}
|
|
27
|
+
const scope = "run" in parsed ? { run: parsed.run, jobDir } : { item: parsed.number, jobDir };
|
|
26
28
|
const home = opts.home ?? homeFromEnv(env);
|
|
27
29
|
const uploader = new LiveUploader({
|
|
28
30
|
home,
|
|
@@ -31,7 +33,7 @@ async function startSessionSender(opts = {}) {
|
|
|
31
33
|
sleepImpl: opts.sleepImpl,
|
|
32
34
|
debounceMs: opts.debounceMs,
|
|
33
35
|
stderr,
|
|
34
|
-
build:
|
|
36
|
+
build: scope,
|
|
35
37
|
onUnauthorized: opts.onFatal,
|
|
36
38
|
agents: opts.agents
|
|
37
39
|
});
|
|
@@ -41,7 +43,7 @@ async function startSessionSender(opts = {}) {
|
|
|
41
43
|
`);
|
|
42
44
|
};
|
|
43
45
|
const daemon = new CaptureDaemon({ root: opts.root ?? sessionFolderIn(home, legacyAgent(opts.agents).descriptor), watchOnly: true, rescanMs: RESCAN_MS, onLog });
|
|
44
|
-
const pidfile = senderPidfile(home, parsed.number);
|
|
46
|
+
const pidfile = senderPidfile(home, "run" in parsed ? parsed.run : parsed.number);
|
|
45
47
|
try {
|
|
46
48
|
mkdirSync(spoolDir(home), { recursive: true });
|
|
47
49
|
writeFileSync(pidfile, String(process.pid));
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { placeholderQueues, placeholderProblem } from './chunk-
|
|
4
|
-
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-
|
|
5
|
-
import { getJson, WorkCommandError } from './chunk-
|
|
6
|
-
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-
|
|
7
|
-
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-
|
|
8
|
-
import { ensureHostKey } from './chunk-
|
|
9
|
-
import { sandboxSettingsFrom } from './chunk-
|
|
10
|
-
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-
|
|
11
|
-
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-
|
|
12
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { placeholderQueues, placeholderProblem } from './chunk-2YOFSE7U.js';
|
|
4
|
+
import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-52IVBUIU.js';
|
|
5
|
+
import { getJson, WorkCommandError } from './chunk-QZP3O6IM.js';
|
|
6
|
+
import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-WISVAUTD.js';
|
|
7
|
+
import { realBuildDiskProbe, checkDiskFit, DEFAULT_CACHE_DISK, DEFAULT_BUILD_DISK } from './chunk-7NP5G2FV.js';
|
|
8
|
+
import { ensureHostKey } from './chunk-JLCEQXQF.js';
|
|
9
|
+
import { sandboxSettingsFrom } from './chunk-UU6FN6PZ.js';
|
|
10
|
+
import { BUILD_SLICE_MEMORY_ENV, agentCredentialVariablesSet, agentCredential, parseRunnerEnv } from './chunk-2BMH3373.js';
|
|
11
|
+
import { forwardedVariables, credentialAgent, credentialForms, managedKeyName, builderDiskPinned, storeVariables, credentialEnvPath } from './chunk-ZUIHEOSC.js';
|
|
12
|
+
import { defaultAgents } from './chunk-3Q2SEOT3.js';
|
|
13
13
|
import { closeSync, openSync, constants, readFileSync } from 'fs';
|
|
14
14
|
import { join, dirname } from 'path';
|
|
15
15
|
import { totalmem } from 'os';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { readLaunchSpoolState, launchesPath } from './chunk-
|
|
3
|
+
import { readLaunchSpoolState, launchesPath } from './chunk-LGJ56FCM.js';
|
|
4
4
|
|
|
5
5
|
createRequire(import.meta.url);
|
|
6
6
|
|
|
@@ -40,7 +40,8 @@ var LaunchFilter = class {
|
|
|
40
40
|
}
|
|
41
41
|
inScope(facts) {
|
|
42
42
|
if (this.build !== void 0) {
|
|
43
|
-
|
|
43
|
+
if (facts === void 0 || facts.job !== void 0 && facts.job !== this.build.jobDir) return false;
|
|
44
|
+
return this.build.run === void 0 ? facts.run === void 0 && facts.item === this.build.item : facts.run === this.build.run;
|
|
44
45
|
}
|
|
45
46
|
return facts?.job === void 0;
|
|
46
47
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-
|
|
3
|
+
import { normalizePath, CONTEXT_PIN_FILENAME, laptopAgents, defaultAgents, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, contextAgents, legacyAgent, legacySubcommand } from './chunk-3Q2SEOT3.js';
|
|
4
4
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
5
5
|
import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, lstatSync, readlinkSync, symlinkSync, rmdirSync } from 'fs';
|
|
6
6
|
import { relative, sep, join, posix } from 'path';
|
|
@@ -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-3Q2SEOT3.js';
|
|
5
5
|
import { LEGACY_AGENT } from './chunk-7PZDPISM.js';
|
|
6
|
-
import { MAINTAINED_SKILLS } from './chunk-
|
|
6
|
+
import { MAINTAINED_SKILLS } from './chunk-ATEMEVFF.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 { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-O7IJBJ6Z.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,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-
|
|
3
|
+
import { TUNNEL_PORT, BRIDGE_ADDRESS, BRIDGE_CIDR } from './chunk-7HN6T4MY.js';
|
|
4
4
|
import { startTimeOf } from './chunk-JBJTC3UU.js';
|
|
5
|
-
import { EXEC_PORT } from './chunk-
|
|
6
|
-
import { RELAY_PORT } from './chunk-
|
|
5
|
+
import { EXEC_PORT } from './chunk-5AU2GQGH.js';
|
|
6
|
+
import { RELAY_PORT } from './chunk-UU6FN6PZ.js';
|
|
7
7
|
import { spawn, spawnSync } from 'child_process';
|
|
8
8
|
import { symlinkSync, lstatSync, writeFileSync, chmodSync, mkdirSync, existsSync } from 'fs';
|
|
9
9
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-
|
|
4
|
-
import { VALIDATOR_FILES, VALIDATORS_DIR, POLICY_PATH, POLICY_CONTENT } from './chunk-
|
|
5
|
-
import { skillsBaseFor } from './chunk-
|
|
3
|
+
import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-FLIRUHVT.js';
|
|
4
|
+
import { VALIDATOR_FILES, VALIDATORS_DIR, POLICY_PATH, POLICY_CONTENT } from './chunk-P43BSQGV.js';
|
|
5
|
+
import { skillsBaseFor } from './chunk-C7YFAPMY.js';
|
|
6
6
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
8
|
-
import { hasSymlinkComponent } from './chunk-
|
|
8
|
+
import { hasSymlinkComponent } from './chunk-XPXJWIOJ.js';
|
|
9
9
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
10
|
-
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-
|
|
10
|
+
import { resolvePackRoot, AGENTS_SKILLS_BASE, OUTERLAYER_SKILLS_BASE, restoreSkillPaths, rewriteSkillPaths, skillDir, loadTemplateFiles, TEMPLATE_SKILLS } from './chunk-3Q2SEOT3.js';
|
|
11
11
|
import { createHash } from 'crypto';
|
|
12
12
|
import { existsSync, readFileSync } from 'fs';
|
|
13
13
|
import { join } from 'path';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launchRefusalForSession } from './chunk-
|
|
4
|
-
import { detectActiveSession, transcriptPathForSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
3
|
+
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
4
|
+
import { detectActiveSession, transcriptPathForSession } from './chunk-F4XMG7EO.js';
|
|
5
|
+
import { autoConnect } from './chunk-IPB5UOHH.js';
|
|
6
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
7
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-6ZMFEZ2K.js';
|
|
8
8
|
import { readLatestProvenanceForSession } from './chunk-545P7JY7.js';
|
|
9
|
-
import { launchedItemForSession } from './chunk-
|
|
9
|
+
import { launchedItemForSession } from './chunk-LGJ56FCM.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
|
-
import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-
|
|
12
|
+
import { legacyAgent, captureAgents, sessionFolderIn } from './chunk-3Q2SEOT3.js';
|
|
13
13
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
14
14
|
import { resolveRepoIdentity, scrubText } from './chunk-N2QYP3NQ.js';
|
|
15
15
|
import { FindingBatchSchema, FindingsResponseSchema, SAME_PROBLEM_RULES } from './chunk-HE53NIRE.js';
|
|
@@ -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-3Q2SEOT3.js';
|
|
4
4
|
import { openSync, fstatSync, readSync, closeSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -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-3Q2SEOT3.js';
|
|
7
7
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
8
8
|
import { join, dirname } from 'path';
|
|
9
9
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-
|
|
4
|
-
import { ensureHostKey } from './chunk-
|
|
5
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-
|
|
6
|
-
import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
7
|
-
import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-
|
|
8
|
-
import { judgeAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-
|
|
9
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { resolveDevcontainerCli, devcontainerBuildInvocation, universalImagePending, RecipeError } from './chunk-IXC5EISR.js';
|
|
4
|
+
import { ensureHostKey } from './chunk-JLCEQXQF.js';
|
|
5
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir, jobsDir } from './chunk-O7IJBJ6Z.js';
|
|
6
|
+
import { BUILD_HOME, JOB_MOUNT, RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-UU6FN6PZ.js';
|
|
7
|
+
import { primaryDestination, JOIN_DIR, RELAY_ID, JOIN_SOCKET, GATEWAY_PORT, TARGET_GATEWAY, GATEWAY_SOCKET, destinationTarget, providerDestinations, RELAY_USER } from './chunk-2BMH3373.js';
|
|
8
|
+
import { judgeAgent, universalImagePinned, UNIVERSAL_IMAGE, BUILDKIT_IMAGE } from './chunk-ZUIHEOSC.js';
|
|
9
|
+
import { defaultAgents } from './chunk-3Q2SEOT3.js';
|
|
10
10
|
import { PROVIDERS } from './chunk-7PZDPISM.js';
|
|
11
11
|
import { compareVersions } from './chunk-N2QYP3NQ.js';
|
|
12
12
|
import { createHash } from 'crypto';
|
|
@@ -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-C7YFAPMY.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-ZZ4AX25R.js';
|
|
6
|
+
import { retiredSkillPaths, removeRetiredSkills } from './chunk-HITUWIB7.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-3Q2SEOT3.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,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
4
|
-
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-
|
|
4
|
+
import { skillDir, emitTree, targetIds, classifyTree, emitBuilders, defaultAgents, FORMER_MAINTAINED_NAMES, isMaintainedCopy } from './chunk-3Q2SEOT3.js';
|
|
5
5
|
import { readFileSync, existsSync, unlinkSync, rmdirSync, readdirSync } from 'fs';
|
|
6
6
|
import { join, dirname, relative, sep } from 'path';
|
|
7
7
|
|
|
@@ -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-O7IJBJ6Z.js';
|
|
5
5
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-
|
|
4
|
-
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-
|
|
3
|
+
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-OQHHPJNK.js';
|
|
4
|
+
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-DPBFNZ6H.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { runnerDir, RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { runnerDir, RUNNER_DIR_MODE } from './chunk-O7IJBJ6Z.js';
|
|
7
7
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
8
8
|
import { dirname, sep, join } from 'path';
|
|
9
9
|
import { spawnSync } from 'child_process';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
4
|
-
import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-
|
|
4
|
+
import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-ATEMEVFF.js';
|
|
5
5
|
import { mkdirSync, writeFileSync, renameSync, rmSync, readFileSync } from 'fs';
|
|
6
6
|
import { dirname, join } from 'path';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-O7IJBJ6Z.js';
|
|
4
4
|
import { readFileSync, existsSync, rmSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-
|
|
4
|
-
import { resolveGatewayCredentials } from './chunk-
|
|
3
|
+
import { fetchFactories, selectFactory, saveFactoryConnection, autoConnectedLine } from './chunk-ZRTGX4GN.js';
|
|
4
|
+
import { resolveGatewayCredentials } from './chunk-6ZMFEZ2K.js';
|
|
5
5
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
6
6
|
import { findGitDirs, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_DIGEST } from './chunk-
|
|
3
|
+
import { UNIVERSAL_IMAGE_REPOSITORY, UNIVERSAL_IMAGE_DIGEST } from './chunk-ZUIHEOSC.js';
|
|
4
4
|
import { existsSync, readdirSync, readFileSync, lstatSync, realpathSync, writeFileSync } from 'fs';
|
|
5
5
|
import { join, resolve, relative, dirname, sep, basename } from 'path';
|
|
6
6
|
import { createRequire as createRequire$1 } from 'module';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { hostKeyPath, runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-O7IJBJ6Z.js';
|
|
4
4
|
import { generateKeyPairSync, createPrivateKey, createPublicKey, sign } from 'crypto';
|
|
5
5
|
import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs';
|
|
6
6
|
|
|
@@ -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-2YOFSE7U.js';
|
|
4
|
+
import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-HT4OKJDB.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-KWHEDC6K.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 = "";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { uploadSpooledSteps } from './chunk-
|
|
4
|
-
import { LaunchFilter } from './chunk-
|
|
3
|
+
import { uploadSpooledSteps } from './chunk-Y67NEZMW.js';
|
|
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-2DVQHK37.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-6ZMFEZ2K.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-JLCEQXQF.js';
|
|
10
|
+
import { SCRUB_ENV_VARIABLE } from './chunk-UU6FN6PZ.js';
|
|
11
|
+
import { writeSyncStatus, logHookError, spoolDir } from './chunk-SOLQ3JA6.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';
|
|
15
15
|
import { applyReportedCost } from './chunk-BKO6JEZI.js';
|
|
16
|
-
import { readLaunchSpoolState, launchStatusIsDecisive, launchedItemsBySession, launchesPath } from './chunk-
|
|
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-3Q2SEOT3.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-N2QYP3NQ.js';
|
|
@@ -935,8 +935,9 @@ function mightStillShip(verdict) {
|
|
|
935
935
|
|
|
936
936
|
// src/sync-cmd.ts
|
|
937
937
|
var ITEM_KEY_PREFIX = "olitem_";
|
|
938
|
+
var RUN_KEY_PREFIX = "olrun_";
|
|
938
939
|
function isItemKey(token) {
|
|
939
|
-
return token.startsWith(ITEM_KEY_PREFIX);
|
|
940
|
+
return token.startsWith(ITEM_KEY_PREFIX) || token.startsWith(RUN_KEY_PREFIX);
|
|
940
941
|
}
|
|
941
942
|
function isLoopbackUrl(url) {
|
|
942
943
|
try {
|
|
@@ -1156,8 +1157,18 @@ async function runSyncInner(opts, stats) {
|
|
|
1156
1157
|
const launchSpool = readLaunchSpoolState(home);
|
|
1157
1158
|
const launchedSessionIds = launchSpool.ids;
|
|
1158
1159
|
const launchFilter = new LaunchFilter(launchedSessionIds);
|
|
1159
|
-
const
|
|
1160
|
-
const
|
|
1160
|
+
const runScoped = resolved.credential !== void 0 && isItemKey(resolved.credential) && (resolved.credential.startsWith(RUN_KEY_PREFIX) || envVars.OUTERLAYER_WORK === void 0);
|
|
1161
|
+
const parsedRun = runScoped ? parseRunEnv(envVars.OUTERLAYER_RUN) : void 0;
|
|
1162
|
+
const itemScope = resolved.credential !== void 0 && isItemKey(resolved.credential) ? {
|
|
1163
|
+
item: runScoped ? void 0 : parseWorkItemNumber(envVars.OUTERLAYER_WORK),
|
|
1164
|
+
run: parsedRun !== void 0 && "run" in parsedRun ? parsedRun.run : void 0,
|
|
1165
|
+
sessionItems: launchedItemsBySession(home)
|
|
1166
|
+
} : void 0;
|
|
1167
|
+
const inItemScope = (sessionId) => {
|
|
1168
|
+
if (itemScope === void 0) return true;
|
|
1169
|
+
if (runScoped) return itemScope.run !== void 0 && launchSpool.records.get(sessionId)?.run === itemScope.run;
|
|
1170
|
+
return itemScope.item !== void 0 && itemScope.sessionItems.get(sessionId) === itemScope.item;
|
|
1171
|
+
};
|
|
1161
1172
|
const connectionScoped = resolved.kind === "login" && opts.appId === void 0 && !envVars.OUTERLAYER_APP_ID;
|
|
1162
1173
|
const runNowMs = Date.now();
|
|
1163
1174
|
const launchSkipVerdict = (mtimeMs) => unlaunchedVerdict({ launchStatusDecisive: launchStatusIsDecisive(launchSpool), idleMs: runNowMs - mtimeMs });
|
|
@@ -1900,7 +1911,7 @@ ${C.yellow}!${C.reset} batch ${shippedBatches + 1}/${batches.length} accounting
|
|
|
1900
1911
|
}
|
|
1901
1912
|
}
|
|
1902
1913
|
releaseArtifactLock();
|
|
1903
|
-
const stepPass = await uploadSpooledSteps({
|
|
1914
|
+
const stepPass = runScoped ? void 0 : await uploadSpooledSteps({
|
|
1904
1915
|
home,
|
|
1905
1916
|
url,
|
|
1906
1917
|
apiKey,
|
|
@@ -9,6 +9,13 @@ createRequire(import.meta.url);
|
|
|
9
9
|
function linkSessionArgs(item, sessionId, flags) {
|
|
10
10
|
return ["work", "link-session", String(item), "--session-id", sessionId, ...flags];
|
|
11
11
|
}
|
|
12
|
+
var RUN_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
13
|
+
function parseRunEnv(raw) {
|
|
14
|
+
if (raw === void 0) return { reason: "OUTERLAYER_RUN is not set" };
|
|
15
|
+
const value = raw.trim();
|
|
16
|
+
if (!RUN_ID.test(value)) return { reason: `OUTERLAYER_RUN="${value}" does not name a run \u2014 it must be the run's id, which the runner sets` };
|
|
17
|
+
return { run: value.toLowerCase() };
|
|
18
|
+
}
|
|
12
19
|
var HOW_TO_CREATE_AN_ITEM = `${cliInvocation()} work build --local`;
|
|
13
20
|
function parseWorkItemEnv(raw) {
|
|
14
21
|
if (raw === void 0) return { reason: "OUTERLAYER_WORK is not set" };
|
|
@@ -33,7 +40,8 @@ function appendLaunchRecord(input, home) {
|
|
|
33
40
|
mkdirSync(join(home, ".outerlayer", "spool"), { recursive: true });
|
|
34
41
|
const record = {
|
|
35
42
|
sessionId: input.sessionId,
|
|
36
|
-
item: input.item,
|
|
43
|
+
...input.item === void 0 ? {} : { item: input.item },
|
|
44
|
+
...input.run === void 0 ? {} : { run: input.run },
|
|
37
45
|
...input.job === void 0 ? {} : { job: input.job },
|
|
38
46
|
t: input.t ?? (/* @__PURE__ */ new Date()).toISOString()
|
|
39
47
|
};
|
|
@@ -98,6 +106,7 @@ function readLaunchSpoolState(home, readImpl = readLaunchSpool) {
|
|
|
98
106
|
ids.add(record.sessionId);
|
|
99
107
|
records.set(record.sessionId, {
|
|
100
108
|
...typeof record.item === "number" ? { item: record.item } : {},
|
|
109
|
+
...typeof record.run === "string" ? { run: record.run } : {},
|
|
101
110
|
...typeof record.job === "string" ? { job: record.job } : {}
|
|
102
111
|
});
|
|
103
112
|
} else malformedLines += 1;
|
|
@@ -108,4 +117,4 @@ function readLaunchSpoolState(home, readImpl = readLaunchSpool) {
|
|
|
108
117
|
return { ids, records, ...malformedLines > 0 ? { malformedLines } : {} };
|
|
109
118
|
}
|
|
110
119
|
|
|
111
|
-
export { appendLaunchRecord, launchStatusIsDecisive, launchedItemForSession, launchedItemsBySession, launchesPath, linkSessionArgs, parseWorkItemEnv, readLaunchSpoolState };
|
|
120
|
+
export { appendLaunchRecord, launchStatusIsDecisive, launchedItemForSession, launchedItemsBySession, launchesPath, linkSessionArgs, parseRunEnv, parseWorkItemEnv, readLaunchSpoolState };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { PROXY_WARNING_FLAG } from './chunk-
|
|
4
|
-
import { RELAY_ID, RELAY_USER } from './chunk-
|
|
5
|
-
import { imageInstalls, GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL_REVISION, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, HEADLESS_SHELL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_VERSION } from './chunk-
|
|
6
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { PROXY_WARNING_FLAG } from './chunk-UU6FN6PZ.js';
|
|
4
|
+
import { RELAY_ID, RELAY_USER } from './chunk-2BMH3373.js';
|
|
5
|
+
import { imageInstalls, GH_VERSION, VOICE_PACK_FILES, VOICE_PACK_VERSION, FFMPEG_STATIC, FFMPEG_BUILD_TAG, GH_SHA256, TINI_SHA256, TINI_VERSION, HEADLESS_SHELL_REVISION, HEADLESS_SHELL_BASE_URL, PLAYWRIGHT_FFMPEG_BASE_URL, PLAYWRIGHT_FFMPEG_REVISION, HEADLESS_SHELL, PLAYWRIGHT_FFMPEG, PLAYWRIGHT_VERSION } from './chunk-ZUIHEOSC.js';
|
|
6
|
+
import { defaultAgents } from './chunk-3Q2SEOT3.js';
|
|
7
7
|
|
|
8
8
|
createRequire(import.meta.url);
|
|
9
9
|
|