@outerlayer/cli 0.40.0 → 0.41.0-next.20261117195646
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 +8 -5
- package/dist/agent-credential-JN5VDRUX.js +16 -0
- package/dist/agent-setup-7A66WE3X.js +43 -0
- package/dist/{agent-subcommand-U7TXKOF4.js → agent-subcommand-AE42NSHC.js} +6 -6
- package/dist/{artifact-link-cmd-HYEM4X5U.js → artifact-link-cmd-YMMRVRQD.js} +2 -2
- package/dist/bridge-PJTQ3XHE.js +19 -0
- package/dist/build-75I2U74U.js +28 -0
- package/dist/build-disk-Z5YFT47Z.js +23 -0
- package/dist/build-info.json +1 -1
- package/dist/builder-NNNVIN4P.js +22 -0
- package/dist/caller-H3KRGMJH.js +25 -0
- package/dist/{check-U5P5FFFB.js → check-KFQCKXHZ.js} +108 -90
- package/dist/{chunk-4KCWAP5L.js → chunk-23YVVYQC.js} +1 -1
- package/dist/{chunk-J3P4WLJA.js → chunk-26RXLXEX.js} +1 -1
- package/dist/{chunk-YYHSGZHO.js → chunk-2RUTYYYA.js} +1 -1
- package/dist/{chunk-6IGOHB3O.js → chunk-37WA2LQC.js} +6 -1
- package/dist/{chunk-WNX2RR5P.js → chunk-3HH2AQKF.js} +1 -1
- package/dist/{chunk-ZHRXINEW.js → chunk-3RXLDGWE.js} +7 -7
- package/dist/{chunk-ZCBKVSBK.js → chunk-4I3SN7WG.js} +3 -3
- package/dist/{chunk-TWKW3BL3.js → chunk-4RPDWURG.js} +1 -1
- package/dist/{chunk-Y34AHK7R.js → chunk-4SMKP5QI.js} +2 -2
- package/dist/{chunk-XC2ZN7UA.js → chunk-6SYVSIGA.js} +1 -1
- package/dist/{chunk-CQIJVNUB.js → chunk-A2AFTKMN.js} +7 -7
- package/dist/{chunk-PKBW4RL7.js → chunk-APVMCKLK.js} +1 -1
- package/dist/{chunk-4JUAJVOW.js → chunk-ATXTGXGK.js} +2 -2
- package/dist/{chunk-24K3CV6P.js → chunk-B2WCKRMW.js} +6 -6
- package/dist/{chunk-LA66NWUO.js → chunk-B3ZKYFBI.js} +1 -1
- package/dist/{chunk-HS45JMDJ.js → chunk-B6W2LW7E.js} +1 -1
- package/dist/{chunk-3UFBSPHM.js → chunk-BO5TMIRG.js} +4 -4
- package/dist/{chunk-5VANIC7Z.js → chunk-BPZ23EMS.js} +7 -7
- package/dist/{chunk-CDMNKUFT.js → chunk-CUMLCXFI.js} +2 -2
- package/dist/{chunk-YZQDTL3T.js → chunk-D47Z2Z7F.js} +190 -173
- package/dist/{chunk-VXL7SLO3.js → chunk-D5TZYUGZ.js} +1 -1
- package/dist/{chunk-AE6A5DVR.js → chunk-D5YKSWK3.js} +8 -8
- package/dist/{chunk-5GJWIATY.js → chunk-DJCSAWBV.js} +4 -4
- package/dist/{chunk-F3J4UKBF.js → chunk-DJK3IK6K.js} +1 -1
- package/dist/{chunk-CHIKNMWU.js → chunk-DXZ6QBUJ.js} +1 -1
- package/dist/{chunk-7N6MB6NR.js → chunk-EVAK6FAS.js} +6 -6
- package/dist/{chunk-WGWIB5JH.js → chunk-EYD5HOQ7.js} +1 -1
- package/dist/{chunk-AOAXRPXC.js → chunk-FD42O5SH.js} +13 -4
- package/dist/{chunk-FIH3QA4E.js → chunk-FMOGX7RR.js} +5 -5
- package/dist/{chunk-EOKIUWXY.js → chunk-FRLGVHJP.js} +1 -1
- package/dist/{chunk-7RIWXHSY.js → chunk-G4B473J5.js} +3 -3
- package/dist/chunk-GAHP2AI3.js +163 -0
- package/dist/{chunk-3KT24F2C.js → chunk-GVGHEQCU.js} +9 -9
- package/dist/{chunk-WNPLSKH6.js → chunk-H2NTP6OM.js} +1 -1
- package/dist/{chunk-F3P7DP7R.js → chunk-I6G5CO3K.js} +1 -1
- package/dist/{chunk-D6CU6N5S.js → chunk-IOSONR7N.js} +2 -2
- package/dist/{chunk-SKVA4VMG.js → chunk-J2ADYASG.js} +1 -1
- package/dist/{chunk-CVDB3ILT.js → chunk-JMSMNKCK.js} +1 -1
- package/dist/{chunk-TTPOEZFE.js → chunk-KTZOD7A3.js} +1 -1
- package/dist/{chunk-SGVMC66D.js → chunk-LOWZZ4QA.js} +1 -1
- package/dist/{chunk-DCY6QUS6.js → chunk-M4YTSRJI.js} +1 -1
- package/dist/chunk-MQ6SKVLA.js +9 -0
- package/dist/{chunk-ZZN2TUHE.js → chunk-MYFC3HKP.js} +9 -9
- package/dist/{chunk-Q5A5WWZI.js → chunk-NCZNYMTB.js} +23 -21
- package/dist/{chunk-R2VUU5TC.js → chunk-NEOM73RW.js} +1 -1
- package/dist/{chunk-AQNL3XHS.js → chunk-NPVIEJX6.js} +1 -1
- package/dist/{chunk-K5J7AKRL.js → chunk-P7WAAN35.js} +1 -1
- package/dist/{chunk-SQIFPWGN.js → chunk-PLVLC7SU.js} +2 -2
- package/dist/{chunk-A6DFTKQF.js → chunk-PMJGT7SQ.js} +25 -19
- package/dist/{chunk-WVEN3DDJ.js → chunk-PTZF6MC5.js} +6 -6
- package/dist/{chunk-OLWDENJZ.js → chunk-Q3QJG2P6.js} +3 -3
- package/dist/{chunk-JIMISJV2.js → chunk-Q7Z6ELTL.js} +28 -7
- package/dist/{chunk-HHOFP647.js → chunk-QDJBEQCE.js} +1 -1
- package/dist/{chunk-BV4I6IIT.js → chunk-QFGKTIPS.js} +3 -3
- package/dist/{chunk-2SS737DI.js → chunk-QHGVLLOJ.js} +1 -1
- package/dist/{chunk-EOO274OK.js → chunk-QKVOUI56.js} +3 -3
- package/dist/{chunk-MUDXPJT6.js → chunk-QPC6OKD2.js} +11 -11
- package/dist/{chunk-MRM7CQJ3.js → chunk-QS2O5G64.js} +116 -14
- package/dist/{chunk-WKO72EYV.js → chunk-R6ME6MWL.js} +3 -3
- package/dist/{chunk-H7IY5B2M.js → chunk-RVUOSR2D.js} +526 -107
- package/dist/{chunk-L6UD5LKU.js → chunk-SDCECDBS.js} +5 -5
- package/dist/{chunk-P6GTJQMA.js → chunk-SE5ZVVDJ.js} +3 -3
- package/dist/{chunk-2ZF62BAK.js → chunk-TLCTOEU5.js} +1 -1
- package/dist/{chunk-PG4KH7G6.js → chunk-TVU7AL2Z.js} +6 -6
- package/dist/{chunk-XEVGUSP6.js → chunk-UTZULAN6.js} +10 -10
- package/dist/{chunk-VIIJAM2R.js → chunk-UYIWLYLX.js} +5 -5
- package/dist/{chunk-IGYRJWB4.js → chunk-V5MR6BWR.js} +226 -143
- package/dist/{chunk-BEPP2C3U.js → chunk-VATN55FQ.js} +8 -8
- package/dist/{chunk-ZCFGRVGX.js → chunk-VYF5BILX.js} +34 -7
- package/dist/{chunk-U74YD3WB.js → chunk-W7P5QFRN.js} +7 -7
- package/dist/{chunk-QMC2MM2S.js → chunk-WNFITHNX.js} +1 -1
- package/dist/{chunk-XMUNNJMO.js → chunk-WOQOZCZZ.js} +4 -4
- package/dist/{chunk-UHGU2EAK.js → chunk-WRIQGJKT.js} +225 -17
- package/dist/{chunk-DAAZIWK2.js → chunk-X7YMKZ7A.js} +23 -21
- package/dist/{chunk-WQRFIWYB.js → chunk-XCAPYFJ3.js} +5 -5
- package/dist/{chunk-VUSPSY6N.js → chunk-XDAMSCJG.js} +1 -1
- package/dist/{chunk-LAO7LRIR.js → chunk-XMJNIIPM.js} +411 -92
- package/dist/{chunk-Q7OOS23E.js → chunk-XNB2VFZI.js} +4 -4
- package/dist/{chunk-GBCTYHZ4.js → chunk-YLDCYJRP.js} +15 -13
- package/dist/{chunk-YKVFVP4A.js → chunk-YLDHHHBJ.js} +43 -13
- package/dist/{chunk-2GAQRL4S.js → chunk-YNZVC7XT.js} +4 -4
- package/dist/{chunk-HMW3UCME.js → chunk-YXKZGVUL.js} +36 -8
- package/dist/{chunk-YVBJ74GP.js → chunk-YXUSSZAE.js} +23 -21
- package/dist/{claude-launcher-ZLZ4UMHJ.js → claude-launcher-HNE36BKE.js} +68 -18
- package/dist/{cli-EFLEZPHB.js → cli-NEZV54LS.js} +220 -179
- package/dist/{command-22NUIO7Z.js → command-H2R6EFUH.js} +68 -61
- package/dist/{config-HZEVAUDO.js → config-DIUO2GQY.js} +16 -14
- package/dist/{connect-cmd-IUDF62SX.js → connect-cmd-SXSWOHVT.js} +17 -15
- package/dist/{container-start-PQAEL5ZS.js → container-start-B7BACAFN.js} +61 -57
- package/dist/{context-cleanup-OT7BL2NG.js → context-cleanup-BUZVQNKC.js} +6 -6
- package/dist/{context-show-cmd-JDO6DBBU.js → context-show-cmd-ZWOTXOXV.js} +18 -16
- package/dist/{control-plane-launch-M545J63D.js → control-plane-launch-BPJQYN6J.js} +19 -17
- package/dist/{demo-record-cmd-DGP3CW3A.js → demo-record-cmd-4H2J2N3X.js} +12 -10
- package/dist/{demo-voice-cmd-23BV7L6V.js → demo-voice-cmd-VIOM4SF5.js} +26 -24
- package/dist/{dist-AKLRKVET.js → dist-FKOMD5MC.js} +2 -2
- package/dist/docker-QQEZWBI3.js +22 -0
- package/dist/{doctor-5VN6Q4ZU.js → doctor-Y7CIJZX5.js} +115 -64
- package/dist/emit-artifact-cmd-HUAKLOH4.js +46 -0
- package/dist/{emit-cmd-RM6FHATP.js → emit-cmd-UDTT7ENT.js} +9 -9
- package/dist/emit-criteria-cmd-7LKPQRFE.js +37 -0
- package/dist/emit-demo-cmd-7TW5Y3MN.js +49 -0
- package/dist/{emit-finding-cmd-E7WKK2A4.js → emit-finding-cmd-T3JBAGS2.js} +20 -18
- package/dist/{emit-result-cmd-5LKEMUOD.js → emit-result-cmd-ILRQ6OIL.js} +24 -22
- package/dist/emit-step-cmd-4ISFOYRC.js +37 -0
- package/dist/exec-client-UJKPJRNK.js +20 -0
- package/dist/{find-unit-XKWFS4BL.js → find-unit-OAJKRZI2.js} +17 -15
- package/dist/{findings-cmd-5BNDO3YM.js → findings-cmd-37RCXQK2.js} +20 -18
- package/dist/fleet-readiness-IVFQSHPL.js +33 -0
- package/dist/governing-source-RXJBJHN7.js +45 -0
- package/dist/guest-init-EXKSBS7A.js +22 -0
- package/dist/{hook-fast-CQ2YCZLB.js → hook-fast-BSH6IHRN.js} +4 -4
- package/dist/{hook-install-VWF5C6EL.js → hook-install-NOWMUPSI.js} +6 -6
- package/dist/{hook-wrap-fast-Y5KKK67C.js → hook-wrap-fast-7E5LAYEU.js} +3 -3
- package/dist/host-checks-GWUYRJXA.js +84 -0
- package/dist/host-key-7WPFECOD.js +20 -0
- package/dist/{image-tag-VZTFHG6T.js → image-tag-GLR3OAO3.js} +12 -10
- package/dist/index.js +6 -6
- package/dist/init-4MF5M74X.js +84 -0
- package/dist/{init-IXQBYUOM.js → init-BEMNWKES.js} +55 -53
- package/dist/{init-agent-BWLBRVNP.js → init-agent-6E3FAOEZ.js} +55 -53
- package/dist/init-cmd-R5ICA2LP.js +55 -0
- package/dist/{init-update-35IRDVWQ.js → init-update-FAFXM2YE.js} +29 -27
- package/dist/install-cmd-HI5OQW5J.js +28 -0
- package/dist/launch-agent-JLANNHFC.js +28 -0
- package/dist/{layout-F6FDPUC2.js → layout-U2ZTNGVB.js} +6 -6
- package/dist/{login-browser-G3NBTYT6.js → login-browser-QAPMBSQA.js} +2 -2
- package/dist/{logs-NWVFDJS3.js → logs-RVPQEAYN.js} +11 -9
- package/dist/loop-PP7QFT3F.js +94 -0
- package/dist/machine-JHWQCYS3.js +84 -0
- package/dist/{machine-skills-U7RNJTPH.js → machine-skills-2QFBY2II.js} +6 -6
- package/dist/{mcp-install-cmd-QDYJB3RW.js → mcp-install-cmd-KRZJVOND.js} +6 -6
- package/dist/{mcp-serve-cmd-JEYAQJPY.js → mcp-serve-cmd-UT3YCM5P.js} +13 -11
- package/dist/{paths-DWVALEBM.js → paths-72CWJPND.js} +11 -9
- package/dist/pending-ES4EF46B.js +20 -0
- package/dist/pidfile-WI6SE35U.js +21 -0
- package/dist/record-KX763L6R.js +20 -0
- package/dist/{relay-SKBUV4HQ.js → relay-ZZWAUA6P.js} +9 -7
- package/dist/{relay-protocol-YSGHT7C4.js → relay-protocol-4GCTOIT4.js} +9 -7
- package/dist/{run-cmd-S7IQ6OVY.js → run-cmd-SCXMROKB.js} +20 -18
- package/dist/runner-agents-QS3IX55G.js +15 -0
- package/dist/runner-env-FU6EWMWW.js +26 -0
- package/dist/runner-identity-PUW27LAT.js +22 -0
- package/dist/{runner-key-OM2HCEVM.js → runner-key-5G2AJD57.js} +55 -53
- package/dist/session-sender-A46R3S66.js +46 -0
- package/dist/{setup-cmd-S4ZIVRRF.js → setup-cmd-OZS4QOPI.js} +18 -16
- package/dist/{setup-wiring-FRY6CKZ7.js → setup-wiring-G2RLSBQ6.js} +64 -62
- package/dist/{shell-function-7N3ILFLG.js → shell-function-6ZFAVOSM.js} +2 -2
- package/dist/{spec-cmd-PRGEIOJ7.js → spec-cmd-C4KSLTAD.js} +21 -19
- package/dist/{starter-pack-YVBD7AKE.js → starter-pack-G5TQVPMW.js} +7 -7
- package/dist/state-TCZAKBBZ.js +20 -0
- package/dist/{status-JORNKH3T.js → status-T6WDUAI4.js} +65 -53
- package/dist/{statusline-fast-ZWMTN36K.js → statusline-fast-VVJF5W7X.js} +3 -3
- package/dist/{sync-cmd-QVSAP72U.js → sync-cmd-ZYTJMWET.js} +24 -22
- package/dist/update-steps-PU34FN7N.js +85 -0
- package/dist/{watch-F2ELGBST.js → watch-VCKWAILU.js} +24 -22
- package/dist/{work-claim-cmd-LEM7P2ME.js → work-claim-cmd-7TR6LNIY.js} +27 -25
- package/dist/{work-cmd-M2RCHHKE.js → work-cmd-7KOXRPOJ.js} +20 -18
- package/dist/work-comment-cmd-EDXP3K7B.js +41 -0
- package/dist/{work-demo-cmd-FQMFCLZ6.js → work-demo-cmd-OYZTKNCG.js} +20 -18
- package/dist/{work-logs-cmd-KLPX4TYX.js → work-logs-cmd-P3QS5AFY.js} +20 -18
- package/dist/{work-mock-cmd-XJEG6AAT.js → work-mock-cmd-3QEXWV43.js} +20 -18
- package/dist/{work-needs-attention-cmd-BOINZLEQ.js → work-needs-attention-cmd-ZTQB2DXB.js} +20 -18
- package/dist/{work-no-change-cmd-IINJFYBD.js → work-no-change-cmd-FGHOOPLY.js} +20 -18
- package/dist/{work-open-pr-cmd-S2XL6OZV.js → work-open-pr-cmd-WFIPFVQR.js} +21 -19
- package/dist/work-pr-cmd-262GWNKI.js +36 -0
- package/dist/work-proofs-cmd-PAJSCMJ2.js +39 -0
- package/dist/{work-proofs-record-34VAOVND.js → work-proofs-record-A4NZTAME.js} +30 -28
- package/dist/{work-stop-cmd-HWG6IUFS.js → work-stop-cmd-CBRWKR4Q.js} +20 -18
- package/package.json +1 -1
- package/dist/agent-setup-KJVEDAHY.js +0 -41
- package/dist/bridge-UIT7F5DZ.js +0 -17
- package/dist/build-W2Z43HX5.js +0 -26
- package/dist/build-disk-AOY6DOEK.js +0 -21
- package/dist/builder-PHD5WM6J.js +0 -20
- package/dist/caller-WJVESIHQ.js +0 -23
- package/dist/docker-S6XFE42W.js +0 -20
- package/dist/emit-artifact-cmd-H3HULADF.js +0 -44
- package/dist/emit-criteria-cmd-UM3DXOOD.js +0 -35
- package/dist/emit-demo-cmd-BMAXX7M2.js +0 -47
- package/dist/emit-step-cmd-6TX7FGWI.js +0 -35
- package/dist/exec-client-H2AOUP6U.js +0 -18
- package/dist/fleet-readiness-YDRQPUI5.js +0 -31
- package/dist/governing-source-CLLOKTZF.js +0 -43
- package/dist/guest-init-PDLZDDB4.js +0 -20
- package/dist/host-checks-43WBI5JE.js +0 -82
- package/dist/host-key-AOUOQNV5.js +0 -18
- package/dist/init-IZJENDA6.js +0 -82
- package/dist/init-cmd-AL3ODKU6.js +0 -53
- package/dist/install-cmd-DMAMD7BD.js +0 -26
- package/dist/launch-agent-XAPO3FGT.js +0 -26
- package/dist/loop-Q5CTVY7B.js +0 -92
- package/dist/machine-55WUTHG3.js +0 -82
- package/dist/pending-PA5UWRHN.js +0 -18
- package/dist/pidfile-KOM3XD4E.js +0 -19
- package/dist/record-S2WGEUIM.js +0 -18
- package/dist/runner-agents-ZVIM6XVC.js +0 -14
- package/dist/runner-env-WD6CPYTN.js +0 -24
- package/dist/runner-identity-LDFFB6YB.js +0 -20
- package/dist/session-sender-IZP4E562.js +0 -44
- package/dist/state-LAKZKWCJ.js +0 -18
- package/dist/update-steps-LM3C7MG6.js +0 -83
- package/dist/work-comment-cmd-QGAY3QUN.js +0 -39
- package/dist/work-pr-cmd-6YTJRHVC.js +0 -34
- package/dist/work-proofs-cmd-OC3O264U.js +0 -37
- package/dist/{real-deps-B7NMEDXM.js → real-deps-HNNHF3UN.js} +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-
|
|
3
|
+
import { staleBuildRefusal, staleBuildWarning, detectCi } from './chunk-QPC6OKD2.js';
|
|
4
4
|
import { launchRefusalForSession } from './chunk-C2PZOLN7.js';
|
|
5
|
-
import { detectActiveSession } from './chunk-
|
|
6
|
-
import { autoConnect } from './chunk-
|
|
7
|
-
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-
|
|
5
|
+
import { detectActiveSession } from './chunk-26RXLXEX.js';
|
|
6
|
+
import { autoConnect } from './chunk-4I3SN7WG.js';
|
|
7
|
+
import { readEffectiveArtifactSpoolState, localArtifactIds, isArtifactTombstoned, artifactBlobsDir, appendArtifactRecord, artifactsSpoolPath, findPendingArtifactRecord, sanitizeTerminal, appendArtifactTombstone } from './chunk-WNFITHNX.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-FRLGVHJP.js';
|
|
10
10
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
11
11
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
12
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
12
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-Q7Z6ELTL.js';
|
|
13
13
|
import { homeFromEnv, spoolHomeFromEnv } from './chunk-352DHUTP.js';
|
|
14
|
-
import { resolveRepoIdentity } from './chunk-
|
|
15
|
-
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-
|
|
14
|
+
import { resolveRepoIdentity } from './chunk-KTZOD7A3.js';
|
|
15
|
+
import { ARTIFACT_MAX_CAPTION_LENGTH, ArtifactCriterionIdSchema, ARTIFACT_MAX_BYTES, ARTIFACT_MAX_FILENAME_LENGTH, mediaTypeForArtifactPath, inferArtifactKind, ARTIFACT_MAX_REPLACES_TARGETS, parseTestSelector, parseJunit, bindTests } from './chunk-37WA2LQC.js';
|
|
16
16
|
import { createHash, randomUUID } from 'crypto';
|
|
17
17
|
import { statSync, readFileSync, mkdirSync, existsSync, writeFileSync, renameSync, unlinkSync } from 'fs';
|
|
18
18
|
import { resolve, basename, join } from 'path';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { detectActiveSession } from './chunk-
|
|
4
|
-
import { autoConnect } from './chunk-
|
|
3
|
+
import { detectActiveSession } from './chunk-26RXLXEX.js';
|
|
4
|
+
import { autoConnect } from './chunk-4I3SN7WG.js';
|
|
5
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-
|
|
6
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-FRLGVHJP.js';
|
|
7
7
|
import { parseWorkItemEnv } from './chunk-LGJ56FCM.js';
|
|
8
8
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
9
9
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
10
|
-
import { resolveRepoIdentity } from './chunk-
|
|
10
|
+
import { resolveRepoIdentity } from './chunk-KTZOD7A3.js';
|
|
11
11
|
|
|
12
12
|
createRequire(import.meta.url);
|
|
13
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE, runnerDir } from './chunk-D5TZYUGZ.js';
|
|
4
4
|
import { mkdirSync, writeFileSync, renameSync, existsSync, readFileSync } from 'fs';
|
|
5
5
|
import { dirname, join } from 'path';
|
|
6
6
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { appendContextProvenance } from './chunk-545P7JY7.js';
|
|
4
|
-
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-
|
|
4
|
+
import { CONTROL_PLANE_DIR_VARIABLE } from './chunk-DJK3IK6K.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
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
|
-
import { hookCodec } from './chunk-
|
|
10
|
-
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-
|
|
9
|
+
import { hookCodec } from './chunk-B6W2LW7E.js';
|
|
10
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-Q7Z6ELTL.js';
|
|
11
11
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
12
12
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
13
13
|
import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, readdirSync, unlinkSync, statSync, appendFileSync, opendirSync } from 'fs';
|
|
@@ -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-NOWMUPSI.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-BUZVQNKC.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-BPJQYN6J.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,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-QS2O5G64.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,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-WRIQGJKT.js';
|
|
4
|
+
import { RELAY_ID, RELAY_USER } from './chunk-GAHP2AI3.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-QS2O5G64.js';
|
|
6
|
+
import { defaultAgents } from './chunk-XMJNIIPM.js';
|
|
7
7
|
|
|
8
8
|
createRequire(import.meta.url);
|
|
9
9
|
|
|
@@ -171,11 +171,20 @@ function toolsDockerfile(parts, agents = defaultAgents()) {
|
|
|
171
171
|
`ENV PATH=\${PATH:-/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin}:${FALLBACK_BIN}`,
|
|
172
172
|
// espeak-ng's audio library makes a private pulse-* folder for the user who runs it, in the temp folder unless XDG_RUNTIME_DIR names another.
|
|
173
173
|
// Made here, as root, it would ship in the image where the build user cannot read it, and the runner's disk check fails on it.
|
|
174
|
+
// A check can write under /build: on the universal image, `codex` starts Node through mise, whose folders are in /build/home.
|
|
175
|
+
// Docker copies the image's /build into each new build volume, where the build user could not write what the check made, so
|
|
176
|
+
// every path the check added is removed again. This step runs as the recipe image's user, who may not be root, so it removes
|
|
177
|
+
// only those paths: what the recipe keeps under /build stays, and /build itself keeps the mode the tools layer gave it.
|
|
174
178
|
"RUN check=$(mktemp -d /tmp/ol-check.XXXXXX) \\",
|
|
179
|
+
' && { find /build 2>/dev/null || true; } > "$check/before" \\',
|
|
175
180
|
` && outerlayer --version${images.map((image) => ` && ${image.command} --version`).join("")} && gh --version && ffmpeg -version && ffprobe -version \\`,
|
|
176
181
|
' && XDG_RUNTIME_DIR="$check" espeak-ng --version \\',
|
|
177
182
|
` && git --version && ${FALLBACK_BIN}/git --version \\`,
|
|
178
183
|
` && ${IMAGE_BROWSER.playwright}/chromium_headless_shell-${HEADLESS_SHELL_REVISION}/chrome-headless-shell-linux*/chrome-headless-shell --version \\`,
|
|
184
|
+
' && { find /build 2>/dev/null || true; } > "$check/after" \\',
|
|
185
|
+
// grep exits 1 when every path was there before, and 2 on an error, which fails the step.
|
|
186
|
+
' && { grep -vxF -f "$check/before" "$check/after"; [ $? -le 1 ]; } > "$check/added" \\',
|
|
187
|
+
' && while IFS= read -r path; do rm -rf "$path" || exit 1; done < "$check/added" \\',
|
|
179
188
|
' && rm -rf "$check"',
|
|
180
189
|
""
|
|
181
190
|
].join("\n");
|
|
@@ -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 {
|
|
5
|
-
import {
|
|
3
|
+
import { mcpTargetPath, INIT_STDIO_ENTRY, INIT_DOCS_ENTRY, DOCS_MCP_SERVER_NAME } from './chunk-APVMCKLK.js';
|
|
4
|
+
import { skillsBaseFor } from './chunk-4SMKP5QI.js';
|
|
5
|
+
import { POLICY_PATH, POLICY_CONTENT } from './chunk-Q3QJG2P6.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-P7WAAN35.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-XMJNIIPM.js';
|
|
11
11
|
import { createHash } from 'crypto';
|
|
12
12
|
import { existsSync, readFileSync } from 'fs';
|
|
13
13
|
import { join } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readCloudConfigStrict, readCloudConfig, cloudConfigPath } from './chunk-HWVMRETT.js';
|
|
4
|
-
import { signRunnerRequest, signerFor } from './chunk-
|
|
4
|
+
import { signRunnerRequest, signerFor } from './chunk-I6G5CO3K.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
6
|
import { PLAIN_VERSION, recordCliVersion, removeRecordedVersion } from './chunk-Z7J7JWGF.js';
|
|
7
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { LAUNCH_AGENT_ENV } from './chunk-TXKHD4Q6.js';
|
|
4
|
-
import { execStartArgv } from './chunk-
|
|
5
|
-
import { DEFAULT_UNIT_NAME } from './chunk-
|
|
6
|
-
import { runnerDir } from './chunk-
|
|
4
|
+
import { execStartArgv } from './chunk-M4YTSRJI.js';
|
|
5
|
+
import { DEFAULT_UNIT_NAME } from './chunk-NCZNYMTB.js';
|
|
6
|
+
import { runnerDir } from './chunk-D5TZYUGZ.js';
|
|
7
7
|
import { join, dirname } from 'path';
|
|
8
8
|
|
|
9
9
|
createRequire(import.meta.url);
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
import { readAgentCredential, credentialForAgent } from './chunk-D47Z2Z7F.js';
|
|
4
|
+
import { providersOf, credentialAgent, jobAgent, runnerAgents, MANAGED_KIND, judgeAgent } from './chunk-QS2O5G64.js';
|
|
5
|
+
import { defaultAgents } from './chunk-XMJNIIPM.js';
|
|
6
|
+
import { PROVIDERS } from './chunk-Q7Z6ELTL.js';
|
|
7
|
+
|
|
8
|
+
createRequire(import.meta.url);
|
|
9
|
+
|
|
10
|
+
// src/runner/builtin-destinations.ts
|
|
11
|
+
var GATEWAY_DESTINATION = "gateway";
|
|
12
|
+
var GATEWAY_PORT = 3126;
|
|
13
|
+
var GATEWAY_SOCKET = "gateway.sock";
|
|
14
|
+
function builtInNames(agents = defaultAgents(), providers = PROVIDERS) {
|
|
15
|
+
return [GATEWAY_DESTINATION, ...providersOf(agents, providers).map((provider) => provider.destination.name)];
|
|
16
|
+
}
|
|
17
|
+
builtInNames();
|
|
18
|
+
function providerDestinations(agents = defaultAgents(), providers = PROVIDERS) {
|
|
19
|
+
return providersOf(agents, providers).map((provider) => provider.destination);
|
|
20
|
+
}
|
|
21
|
+
function destinationPort(name, agents = defaultAgents(), providers = PROVIDERS) {
|
|
22
|
+
return name === GATEWAY_DESTINATION ? GATEWAY_PORT : providerDestinations(agents, providers).find((destination) => destination.name === name)?.port ?? GATEWAY_PORT;
|
|
23
|
+
}
|
|
24
|
+
function primaryDestination(agents = defaultAgents(), providers = PROVIDERS) {
|
|
25
|
+
return providerDestinations(agents, providers)[0];
|
|
26
|
+
}
|
|
27
|
+
var AGENT_CREDENTIAL_MISSING = "agent_credential_missing";
|
|
28
|
+
var ITEM_KEY_PLACEHOLDER = "olitem_placeholder-not-a-real-key";
|
|
29
|
+
var RUN_KEY_PLACEHOLDER = "olrun_placeholder-not-a-real-key";
|
|
30
|
+
var ITEM_KEY_VARIABLE = "OUTERLAYER_ITEM_KEY";
|
|
31
|
+
function agentOfJob(agents, job) {
|
|
32
|
+
const id = job === void 0 ? void 0 : jobAgent(job, agents)?.descriptor.id;
|
|
33
|
+
return (id === void 0 ? void 0 : runnerAgents(agents).find((agent) => agent.descriptor.id === id)) ?? credentialAgent(agents);
|
|
34
|
+
}
|
|
35
|
+
function agentCredential(hostEnv, options = {}, agents = defaultAgents(), job) {
|
|
36
|
+
const agent = agentOfJob(agents, job);
|
|
37
|
+
if (agent === void 0) return void 0;
|
|
38
|
+
const id = agent.descriptor.id;
|
|
39
|
+
const credential = options.ignoreHeld === true ? readAgentCredential(hostEnv, id, agents) : credentialForAgent(hostEnv, id, agents);
|
|
40
|
+
if (credential === void 0) return void 0;
|
|
41
|
+
return { variable: credential.variable, placeholder: agent.descriptor.credentials.placeholders[credential.variable] };
|
|
42
|
+
}
|
|
43
|
+
function variableOfKind(agent, provider, kind) {
|
|
44
|
+
const { forwarded, kinds } = agent.descriptor.credentials;
|
|
45
|
+
return forwarded.find((variable) => kinds[variable]?.provider === provider.id && kinds[variable].providerKind === kind);
|
|
46
|
+
}
|
|
47
|
+
function managedAgentCredential(agents = defaultAgents(), providers = PROVIDERS, job) {
|
|
48
|
+
const agent = agentOfJob(agents, job);
|
|
49
|
+
const provider = agent === void 0 ? void 0 : providers[agent.descriptor.providers[0] ?? ""];
|
|
50
|
+
if (agent === void 0 || provider === void 0) return void 0;
|
|
51
|
+
const variable = variableOfKind(agent, provider, MANAGED_KIND);
|
|
52
|
+
const placeholder = variable === void 0 ? void 0 : agent.descriptor.credentials.placeholders[variable];
|
|
53
|
+
return variable === void 0 || placeholder === void 0 ? void 0 : { variable, placeholder };
|
|
54
|
+
}
|
|
55
|
+
function gatewayUpstream(gatewayUrl) {
|
|
56
|
+
return `${new URL(gatewayUrl).origin}/`;
|
|
57
|
+
}
|
|
58
|
+
function forwardedEnvironment(hostEnv, agent, agents) {
|
|
59
|
+
const env = {};
|
|
60
|
+
for (const name of agent.descriptor.credentials.forwarded) {
|
|
61
|
+
Object.defineProperty(env, name, {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: () => {
|
|
64
|
+
const current = credentialForAgent(hostEnv, agent.descriptor.id, agents);
|
|
65
|
+
return current !== void 0 && current.variable === name ? current.value : hostEnv[name];
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return env;
|
|
70
|
+
}
|
|
71
|
+
function destinationOwner(provider, input, agents) {
|
|
72
|
+
const jobOwner = agentOfJob(agents, input.job);
|
|
73
|
+
if (jobOwner !== void 0 && jobOwner.descriptor.providers.includes(provider.id)) return jobOwner;
|
|
74
|
+
const judgeId = judgeAgent(agents, input.job)?.descriptor.id;
|
|
75
|
+
return runnerAgents(agents).find((agent) => agent.descriptor.id === judgeId && agent.descriptor.providers.includes(provider.id));
|
|
76
|
+
}
|
|
77
|
+
function providerDestination(provider, input, managedKeys, agents) {
|
|
78
|
+
const owner = destinationOwner(provider, input, agents);
|
|
79
|
+
const shape = owner ?? runnerAgents(agents).find((agent) => agent.descriptor.providers.includes(provider.id));
|
|
80
|
+
const managedKey = managedKeys[provider.id];
|
|
81
|
+
const managed = owner !== void 0 && managedKey !== void 0 && managedKey !== "";
|
|
82
|
+
const held = owner === void 0 || managed ? void 0 : credentialForAgent(input.hostEnv, owner.descriptor.id, agents);
|
|
83
|
+
const variable = managed ? variableOfKind(owner, provider, MANAGED_KIND) : held?.variable ?? shape.descriptor.credentials.forwarded[0];
|
|
84
|
+
const kind = provider.credentialKinds.find((candidate) => candidate.id === shape.descriptor.credentials.kinds[variable].providerKind);
|
|
85
|
+
return {
|
|
86
|
+
destination: {
|
|
87
|
+
name: provider.destination.name,
|
|
88
|
+
upstream: input.upstreams?.[provider.id] ?? provider.upstream,
|
|
89
|
+
header: { name: kind.header, value: `${kind.prefix}\${${variable}}`, variables: [variable] },
|
|
90
|
+
env: {}
|
|
91
|
+
},
|
|
92
|
+
hostEnv: owner === void 0 ? {} : managed ? { [variable]: managedKey } : forwardedEnvironment(input.hostEnv, owner, agents),
|
|
93
|
+
// A build's own key in either header would sit beside the runner's, and the upstream takes one of them.
|
|
94
|
+
drop: [...provider.droppedHeaders],
|
|
95
|
+
socket: provider.destination.socket
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function builtInDestinations(input, agents = defaultAgents(), providers = PROVIDERS) {
|
|
99
|
+
const managedKeys = input.managedKeys ?? {};
|
|
100
|
+
return [
|
|
101
|
+
{
|
|
102
|
+
destination: {
|
|
103
|
+
name: GATEWAY_DESTINATION,
|
|
104
|
+
upstream: gatewayUpstream(input.gatewayUrl),
|
|
105
|
+
header: { name: "Authorization", value: `Bearer \${${ITEM_KEY_VARIABLE}}`, variables: [ITEM_KEY_VARIABLE] },
|
|
106
|
+
env: {}
|
|
107
|
+
},
|
|
108
|
+
hostEnv: input.itemKey === void 0 ? {} : { [ITEM_KEY_VARIABLE]: input.itemKey },
|
|
109
|
+
drop: [],
|
|
110
|
+
socket: GATEWAY_SOCKET
|
|
111
|
+
},
|
|
112
|
+
...providersOf(agents, providers).map((provider) => providerDestination(provider, input, managedKeys, agents))
|
|
113
|
+
];
|
|
114
|
+
}
|
|
115
|
+
function builtInEnvironment(localFor, credential, agents = defaultAgents(), providers = PROVIDERS, job, run = false) {
|
|
116
|
+
const agent = job === void 0 ? credentialAgent(agents)?.credentials : jobAgent(job, agents)?.adapter.credentials;
|
|
117
|
+
return {
|
|
118
|
+
OUTERLAYER_URL: localFor(GATEWAY_DESTINATION),
|
|
119
|
+
OUTERLAYER_API_KEY: run ? RUN_KEY_PLACEHOLDER : ITEM_KEY_PLACEHOLDER,
|
|
120
|
+
...agent === void 0 ? {} : agent.buildEnvironment({ providerUrl: (id) => localFor(providers[id].destination.name), variable: credential?.variable })
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// src/runner/container/relay-protocol.ts
|
|
125
|
+
var RELAY_USER = "ol-relay";
|
|
126
|
+
var RELAY_ID = 60100;
|
|
127
|
+
var JOIN_DIR = "/run/outerlayer-relay";
|
|
128
|
+
var JOIN_SOCKET = `${JOIN_DIR}/join.sock`;
|
|
129
|
+
var MAX_OPEN_STREAMS = 1024;
|
|
130
|
+
var JOIN_WAIT_MS = 3e4;
|
|
131
|
+
var MAX_MALFORMED_SESSIONS = 5;
|
|
132
|
+
var STREAM_WINDOW = 256 * 1024;
|
|
133
|
+
var SESSION_WINDOW = MAX_OPEN_STREAMS * STREAM_WINDOW;
|
|
134
|
+
var STREAM_RESET_BURST = 10 * MAX_OPEN_STREAMS;
|
|
135
|
+
var STREAM_RESET_RATE = 1e3;
|
|
136
|
+
var TARGET_TUNNEL = "tunnel";
|
|
137
|
+
var TARGET_GATEWAY = "gateway";
|
|
138
|
+
var TARGET_LEASE = "lease";
|
|
139
|
+
function destinationTarget(index) {
|
|
140
|
+
return `destination/${index}`;
|
|
141
|
+
}
|
|
142
|
+
function targetOfPath(path, builtIns = builtInNames()) {
|
|
143
|
+
if (path === void 0 || !path.startsWith("/")) return void 0;
|
|
144
|
+
const target = path.slice(1);
|
|
145
|
+
if ([TARGET_TUNNEL, TARGET_LEASE, ...builtIns].includes(target)) return target;
|
|
146
|
+
return /^destination\/\d{1,4}$/.test(target) ? target : void 0;
|
|
147
|
+
}
|
|
148
|
+
var MALFORMED_REASON = `the build broke its connection to the runner ${MAX_MALFORMED_SESSIONS} times`;
|
|
149
|
+
var UNKNOWN_TRANSPORT_REASON = "the runner cannot tell how this build reaches it";
|
|
150
|
+
var COMMAND_LOST_REASON = "the build's command ended without recording an exit code";
|
|
151
|
+
var CONTAINER_STOPPED_REASON = "the build's container stopped while no runner was managing it";
|
|
152
|
+
var UNKNOWN_TRACKING_REASON = "the runner cannot tell how this build is tracked";
|
|
153
|
+
var DOCKER_DESKTOP_REASON = "Docker Desktop is accepted only for a runner in the runner image, so container builds here need Docker Engine: install it (on Windows, inside WSL2), or run the runner image";
|
|
154
|
+
var RUNNER_WORDED_REASONS = /* @__PURE__ */ new Set([
|
|
155
|
+
MALFORMED_REASON,
|
|
156
|
+
UNKNOWN_TRANSPORT_REASON,
|
|
157
|
+
COMMAND_LOST_REASON,
|
|
158
|
+
CONTAINER_STOPPED_REASON,
|
|
159
|
+
UNKNOWN_TRACKING_REASON,
|
|
160
|
+
DOCKER_DESKTOP_REASON
|
|
161
|
+
]);
|
|
162
|
+
|
|
163
|
+
export { AGENT_CREDENTIAL_MISSING, COMMAND_LOST_REASON, CONTAINER_STOPPED_REASON, DOCKER_DESKTOP_REASON, GATEWAY_PORT, GATEWAY_SOCKET, JOIN_DIR, JOIN_SOCKET, JOIN_WAIT_MS, MALFORMED_REASON, MAX_MALFORMED_SESSIONS, MAX_OPEN_STREAMS, RELAY_ID, RELAY_USER, RUNNER_WORDED_REASONS, SESSION_WINDOW, STREAM_RESET_BURST, STREAM_RESET_RATE, STREAM_WINDOW, TARGET_GATEWAY, TARGET_LEASE, TARGET_TUNNEL, UNKNOWN_TRACKING_REASON, UNKNOWN_TRANSPORT_REASON, agentCredential, builtInDestinations, builtInEnvironment, builtInNames, destinationPort, destinationTarget, managedAgentCredential, primaryDestination, providerDestinations, targetOfPath };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runEmit } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { runEmit } from './chunk-SDCECDBS.js';
|
|
4
|
+
import { listWithAnd } from './chunk-B2WCKRMW.js';
|
|
5
|
+
import { addStdioMcpEntryIfAbsent, addDocsMcpEntryIfAbsent, DOCS_MCP_SERVER_NAME } from './chunk-APVMCKLK.js';
|
|
6
|
+
import { AGENTS_MD_LAYOUT, mcpFiles, declareAgentsMdLayout, linkAgentSkills, describeSkillsLink, isAgentsMdLayout, holdsTodaysLayoutSources, discoverOuterlayerPaths } from './chunk-4SMKP5QI.js';
|
|
7
|
+
import { installStarterPack } from './chunk-Q3QJG2P6.js';
|
|
8
8
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { resolveGitCommonDir, defaultGitRunner } from './chunk-
|
|
9
|
+
import { resolveGitCommonDir, defaultGitRunner } from './chunk-XCAPYFJ3.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
|
-
import { linkedAgentsPath } from './chunk-
|
|
11
|
+
import { linkedAgentsPath } from './chunk-P7WAAN35.js';
|
|
12
12
|
import { cloneIsGoverned } from './chunk-YQR6E6OV.js';
|
|
13
|
-
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-
|
|
14
|
-
import { LEGACY_AGENT } from './chunk-
|
|
13
|
+
import { generatedHeaderSource, defaultAgents, loadTemplateFiles, loadMaintainedFiles, skillDir, AGENTS_SKILLS_BASE, legacyAgent, laptopAgents } from './chunk-XMJNIIPM.js';
|
|
14
|
+
import { LEGACY_AGENT } from './chunk-Q7Z6ELTL.js';
|
|
15
15
|
import { execFileSync } from 'child_process';
|
|
16
16
|
import { existsSync, mkdirSync, writeFileSync } from 'fs';
|
|
17
17
|
import { join, dirname } from 'path';
|
|
@@ -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-WRIQGJKT.js';
|
|
4
4
|
import { createServer, connect } from 'net';
|
|
5
5
|
|
|
6
6
|
createRequire(import.meta.url);
|
|
@@ -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-D5TZYUGZ.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 { 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-YXUSSZAE.js';
|
|
4
|
+
import { buildsDir, storeScopes, rootfsDir, orgStoreIn, runnerDir, imagesDir, builderCacheDiskPath } from './chunk-D5TZYUGZ.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,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-XMJNIIPM.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 { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-D5TZYUGZ.js';
|
|
4
4
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-
|
|
3
|
+
import { inputBandOf, BUCKET_MODEL_MAX_LENGTH } from './chunk-37WA2LQC.js';
|
|
4
4
|
import { readFileSync, mkdirSync, statSync, copyFileSync, renameSync, unlinkSync, writeFileSync, readdirSync, realpathSync, watch as watch$1 } from 'fs';
|
|
5
5
|
import * as sp5 from 'path';
|
|
6
6
|
import { join, relative, dirname, resolve, sep } from 'path';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-
|
|
3
|
+
import { defaultAgents, laptopAgents, contextAgents, userSkillFolderIn, loadMachineSkillFiles, resolvePackRoot } from './chunk-XMJNIIPM.js';
|
|
4
4
|
import { MAINTAINED_SKILLS, maintainedLineVersion } from './chunk-VSBG7MMU.js';
|
|
5
5
|
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
6
6
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { runnerDir, RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-D5TZYUGZ.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,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { newTokenRetry } from './chunk-FJGYU2EK.js';
|
|
4
|
-
import { WorkCommandError, postJson } from './chunk-
|
|
5
|
-
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-
|
|
6
|
-
import { buildRefusalReason } from './chunk-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { signerFor } from './chunk-
|
|
10
|
-
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-
|
|
11
|
-
import { SandboxError, describeSandboxError } from './chunk-
|
|
12
|
-
import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-
|
|
4
|
+
import { WorkCommandError, postJson } from './chunk-YLDHHHBJ.js';
|
|
5
|
+
import { defaultGitRunner, materializeContext, fetchControlPlaneCommit, lookupGoverningSource } from './chunk-XCAPYFJ3.js';
|
|
6
|
+
import { buildRefusalReason } from './chunk-ATXTGXGK.js';
|
|
7
|
+
import { signingFetchFor } from './chunk-FRLGVHJP.js';
|
|
8
|
+
import { unsupportedLayout, layoutRefusalReason, composeDelivery } from './chunk-QKVOUI56.js';
|
|
9
|
+
import { signerFor } from './chunk-I6G5CO3K.js';
|
|
10
|
+
import { SHIM_DIR, stagedContextDir, contextHomeDir, deliveryDir, keptContextDir } from './chunk-D5TZYUGZ.js';
|
|
11
|
+
import { SandboxError, describeSandboxError } from './chunk-WRIQGJKT.js';
|
|
12
|
+
import { SHIM_SCRIPT, shimScriptFor, GOVERNANCE_VARIABLE } from './chunk-DJK3IK6K.js';
|
|
13
13
|
import { readDegraded, readContextManifest, readSourceCache } from './chunk-YQR6E6OV.js';
|
|
14
14
|
import { fstatSync, mkdirSync, writeFileSync, chmodSync, rmSync, cpSync, readFileSync, existsSync, lstatSync } from 'fs';
|
|
15
15
|
import { relative, join, dirname } from 'path';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { builtinKind, keepsHostBuilder } from './chunk-
|
|
4
|
-
import { parseSize } from './chunk-
|
|
5
|
-
import { runnerDir } from './chunk-
|
|
6
|
-
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-
|
|
7
|
-
import { credentialAgent,
|
|
8
|
-
import { defaultAgents } from './chunk-
|
|
3
|
+
import { builtinKind, keepsHostBuilder } from './chunk-VYF5BILX.js';
|
|
4
|
+
import { parseSize } from './chunk-YXUSSZAE.js';
|
|
5
|
+
import { runnerDir } from './chunk-D5TZYUGZ.js';
|
|
6
|
+
import { FD_SLOTS_PER_BUILD, FD_STORE_ENV, BUILD_SLICE_MEMORY_ENV, credentialLineIn, withoutCredentialLines } from './chunk-D47Z2Z7F.js';
|
|
7
|
+
import { credentialNames, credentialAgent, runnerAgents, credentialForms } from './chunk-QS2O5G64.js';
|
|
8
|
+
import { defaultAgents } from './chunk-XMJNIIPM.js';
|
|
9
9
|
import { existsSync, readFileSync, writeFileSync, chmodSync, renameSync } from 'fs';
|
|
10
10
|
import { dirname, join } from 'path';
|
|
11
11
|
import { spawnSync } from 'child_process';
|
|
@@ -22,9 +22,12 @@ function escapeUnitPath(path) {
|
|
|
22
22
|
function credentialPath(path) {
|
|
23
23
|
return path.replace(/%/g, "%%");
|
|
24
24
|
}
|
|
25
|
+
function credentialAgentsOf(agentIds, agents) {
|
|
26
|
+
const first = credentialAgent(agents);
|
|
27
|
+
return runnerAgents(agents).filter((agent) => agent.descriptor.id === first?.descriptor.id || agentIds?.includes(agent.descriptor.id) === true);
|
|
28
|
+
}
|
|
25
29
|
function runnerUnit(unit, agents = defaultAgents()) {
|
|
26
|
-
const credentialLines =
|
|
27
|
-
if (agent === void 0) return [];
|
|
30
|
+
const credentialLines = credentialAgentsOf(unit.agentIds, agents).flatMap((agent) => {
|
|
28
31
|
const { envFile, credentialId } = credentialNames(agent.descriptor);
|
|
29
32
|
return unit.credential === "load" ? `LoadCredential=${credentialId}:${credentialPath(`${unit.configDir}/${envFile}`)}` : `EnvironmentFile=-${escapeUnitPath(`${unit.configDir}/${envFile}`)}`;
|
|
30
33
|
});
|
|
@@ -203,9 +206,8 @@ function credentialFileIn(configDir, agents) {
|
|
|
203
206
|
const agent = credentialAgent(agents);
|
|
204
207
|
return agent === void 0 ? void 0 : credentialFileOf(configDir, agent);
|
|
205
208
|
}
|
|
206
|
-
function prepareCredentialFile(configDir, lines, agents) {
|
|
207
|
-
|
|
208
|
-
return agent === void 0 || prepareAgentCredentialFile(configDir, lines, agent);
|
|
209
|
+
function prepareCredentialFile(configDir, lines, agents, listed) {
|
|
210
|
+
return credentialAgentsOf(listed, agents).every((agent) => prepareAgentCredentialFile(configDir, lines, agent));
|
|
209
211
|
}
|
|
210
212
|
function prepareAgentCredentialFile(configDir, lines, agent) {
|
|
211
213
|
const file = credentialFileOf(configDir, agent);
|
|
@@ -229,9 +231,8 @@ function prepareAgentCredentialFile(configDir, lines, agent) {
|
|
|
229
231
|
return false;
|
|
230
232
|
}
|
|
231
233
|
}
|
|
232
|
-
function finishCredentialMove(configDir, lines, agents, reload) {
|
|
233
|
-
const agent
|
|
234
|
-
if (agent !== void 0) finishAgentCredentialMove(configDir, lines, agent, reload);
|
|
234
|
+
function finishCredentialMove(configDir, lines, agents, reload, listed) {
|
|
235
|
+
for (const agent of credentialAgentsOf(listed, agents)) finishAgentCredentialMove(configDir, lines, agent, reload);
|
|
235
236
|
}
|
|
236
237
|
function finishAgentCredentialMove(configDir, lines, agent, reload) {
|
|
237
238
|
const file = credentialFileOf(configDir, agent);
|
|
@@ -300,7 +301,8 @@ function installService(request, deps, agents = defaultAgents()) {
|
|
|
300
301
|
...request.helperSocket !== void 0 && request.helperUnit !== void 0 ? { helper: { unit: request.helperUnit, socket: request.helperSocket } } : {},
|
|
301
302
|
// A microVM build under the helper keeps its sockets in the descriptor store, so the runner can restart and the build goes on.
|
|
302
303
|
...kind === "vm" && request.helperSocket !== void 0 && request.helperUnit !== void 0 ? { fdStore: Math.max(1, request.concurrency) * FD_SLOTS_PER_BUILD } : {},
|
|
303
|
-
sliceMemoryBytes: request.buildSliceMemoryBytes
|
|
304
|
+
sliceMemoryBytes: request.buildSliceMemoryBytes,
|
|
305
|
+
...request.agents === void 0 ? {} : { agentIds: request.agents }
|
|
304
306
|
}, agents);
|
|
305
307
|
const envFile = credentialFileIn(configDir, agents)?.envFile ?? "the credential file";
|
|
306
308
|
if (request.print === true) return outcome(true, "printed", [], unit);
|
|
@@ -349,10 +351,10 @@ function installService(request, deps, agents = defaultAgents()) {
|
|
|
349
351
|
return ensureWindowsAccessOff(deps, unitName, say, lines);
|
|
350
352
|
};
|
|
351
353
|
if (existing === unit) {
|
|
352
|
-
if (!prepareCredentialFile(configDir, lines, agents)) return outcome(false, "refused", lines);
|
|
354
|
+
if (!prepareCredentialFile(configDir, lines, agents, request.agents)) return outcome(false, "refused", lines);
|
|
353
355
|
const wasRunning = running();
|
|
354
356
|
if (!wasRunning && !asRoot(deps, lines, say, ["enable", "--now", unitName])) return outcome(false, "refused", lines);
|
|
355
|
-
finishCredentialMove(configDir, lines, agents, () => asRoot(deps, lines, say, ["daemon-reload"]));
|
|
357
|
+
finishCredentialMove(configDir, lines, agents, () => asRoot(deps, lines, say, ["daemon-reload"]), request.agents);
|
|
356
358
|
if (wasRunning && request.restart === true) {
|
|
357
359
|
const windowsOk2 = windowsSteps();
|
|
358
360
|
const finish2 = (state) => windowsOk2 ? outcome(true, state, lines) : outcome(false, "refused", lines);
|
|
@@ -372,14 +374,14 @@ function installService(request, deps, agents = defaultAgents()) {
|
|
|
372
374
|
return outcome(true, "current", lines);
|
|
373
375
|
}
|
|
374
376
|
if (existing === void 0) {
|
|
375
|
-
if (!prepareCredentialFile(configDir, lines, agents)) return outcome(false, "refused", lines);
|
|
377
|
+
if (!prepareCredentialFile(configDir, lines, agents, request.agents)) return outcome(false, "refused", lines);
|
|
376
378
|
if (!write()) return outcome(false, "refused", lines);
|
|
377
379
|
if (!asRoot(deps, lines, say, ["daemon-reload"]) || !asRoot(deps, lines, say, ["enable", "--now", unitName])) {
|
|
378
380
|
say(`sudo rm ${unitPath}`);
|
|
379
381
|
if (attempt(lines, () => deps.systemd.remove(unitPath))) deps.systemd.systemctl(["daemon-reload"], { sudo: true });
|
|
380
382
|
return outcome(false, "refused", lines);
|
|
381
383
|
}
|
|
382
|
-
finishCredentialMove(configDir, lines, agents);
|
|
384
|
+
finishCredentialMove(configDir, lines, agents, void 0, request.agents);
|
|
383
385
|
lines.push(`installed and started the service ${unitName}: the runner starts at boot and after a crash`);
|
|
384
386
|
fallbackNote();
|
|
385
387
|
if (!windowsSteps()) return outcome(false, "refused", lines);
|
|
@@ -389,11 +391,11 @@ function installService(request, deps, agents = defaultAgents()) {
|
|
|
389
391
|
lines.push(`${unitPath} differs from what this command writes, and it was not written by it, so it was left alone. Pass --replace to replace it, or \`--print\` to compare`);
|
|
390
392
|
return outcome(false, "differs", lines);
|
|
391
393
|
}
|
|
392
|
-
if (!prepareCredentialFile(configDir, lines, agents)) return outcome(false, "refused", lines);
|
|
394
|
+
if (!prepareCredentialFile(configDir, lines, agents, request.agents)) return outcome(false, "refused", lines);
|
|
393
395
|
if (!write()) return outcome(false, "refused", lines);
|
|
394
396
|
if (!asRoot(deps, lines, say, ["daemon-reload"])) return outcome(false, "refused", lines);
|
|
395
397
|
if ((!existing.startsWith(UNIT_MARKER) || !running()) && !asRoot(deps, lines, say, ["enable", "--now", unitName])) return outcome(false, "refused", lines);
|
|
396
|
-
finishCredentialMove(configDir, lines, agents);
|
|
398
|
+
finishCredentialMove(configDir, lines, agents, void 0, request.agents);
|
|
397
399
|
fallbackNote();
|
|
398
400
|
const windowsOk = windowsSteps();
|
|
399
401
|
const finish = (state) => windowsOk ? outcome(true, state, lines) : outcome(false, "refused", lines);
|