@outerlayer/cli 0.36.0-next.20261101174803 → 0.36.0-next.20261102135508
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-setup-Q3HDN23U.js +39 -0
- package/dist/agent-subcommand-Z6SOLWZW.js +25 -0
- package/dist/bridge-4KPODDN7.js +15 -0
- package/dist/build-KYXFZQ33.js +23 -0
- package/dist/build-disk-W6AL5WHI.js +20 -0
- package/dist/build-info.json +1 -1
- package/dist/builder-IMNOEYV7.js +19 -0
- package/dist/caller-NLRE272L.js +22 -0
- package/dist/{check-K4RVAP4L.js → check-WWX32IGY.js} +78 -74
- package/dist/{chunk-MKSZHT6S.js → chunk-2YC3TXWX.js} +1 -1
- package/dist/{chunk-QIOTIQWD.js → chunk-3UFX6KH2.js} +12 -11
- package/dist/{chunk-F2LPX2HS.js → chunk-3YEPLVNW.js} +8 -8
- package/dist/chunk-4DLJ343I.js +38 -0
- package/dist/{chunk-5WYT3PPE.js → chunk-4OD45RBP.js} +4 -1
- package/dist/{chunk-H7SKHAUE.js → chunk-4XXBV37R.js} +6 -6
- package/dist/{chunk-XNBUZGRO.js → chunk-6B3V6EGQ.js} +11 -9
- package/dist/{chunk-O36YAH2G.js → chunk-6HDXRDC5.js} +4 -4
- package/dist/chunk-6JLYU322.js +68 -0
- package/dist/{chunk-5GHJFETA.js → chunk-6KH3NMIT.js} +3010 -1196
- package/dist/{chunk-SPXVFFQV.js → chunk-AQE6E54X.js} +10 -9
- package/dist/{chunk-LGV5N5DG.js → chunk-ATKCHMFD.js} +1 -1
- package/dist/{chunk-7J7HRYZ3.js → chunk-B2P72DAE.js} +1 -1
- package/dist/{chunk-LEHBDEUG.js → chunk-B36NSEUM.js} +4 -5
- package/dist/{chunk-B62TYDP2.js → chunk-B5SWBFVE.js} +5 -4
- package/dist/chunk-BSPJI5T7.js +28 -0
- package/dist/{chunk-VJYSPH2J.js → chunk-BUYXEU7J.js} +26 -21
- package/dist/{chunk-CIUD3436.js → chunk-BZSJ77MO.js} +1 -1
- package/dist/{chunk-OEBFKPHK.js → chunk-CDG475ZP.js} +11 -11
- package/dist/{chunk-AGKQEOFS.js → chunk-CSBW4LGL.js} +54 -31
- package/dist/{chunk-D2OTBS47.js → chunk-CSVJGW3I.js} +2 -2
- package/dist/{chunk-GANAOCHR.js → chunk-CXJC3JLN.js} +25 -374
- package/dist/{chunk-WAZJPDR2.js → chunk-D4VGJQY7.js} +1 -1
- package/dist/{chunk-BRUDBWLO.js → chunk-D5I5SSPU.js} +7 -7
- package/dist/{chunk-KFUDKFEH.js → chunk-D6EXW4EB.js} +45 -19
- package/dist/{chunk-AF6DQJ5W.js → chunk-DG3M5DZU.js} +1 -1
- package/dist/{chunk-WT7J2627.js → chunk-DTCTXDJP.js} +1 -1
- package/dist/chunk-DTQPDMHG.js +654 -0
- package/dist/{chunk-EZRAR5YG.js → chunk-E3TP4QTM.js} +1 -1
- package/dist/{chunk-NFZJ5XHP.js → chunk-ENBOAE2W.js} +33 -32
- package/dist/{chunk-R3252UTU.js → chunk-ENMX3VQ7.js} +7 -7
- package/dist/{chunk-AH6634HC.js → chunk-FOSYM7TQ.js} +1 -2
- package/dist/{chunk-HL7UNTXO.js → chunk-FRMAQ3C4.js} +17 -10
- package/dist/{chunk-HAWPG7QW.js → chunk-FTP7SE6Y.js} +3 -3
- package/dist/{chunk-IP7BIBXJ.js → chunk-FWSVWPMS.js} +16 -7
- package/dist/{chunk-GLUQVET2.js → chunk-GFZ7PELR.js} +6 -6
- package/dist/{chunk-UZGQT6OF.js → chunk-H2NJG3TE.js} +6 -3
- package/dist/{chunk-46OBCATR.js → chunk-HRHWA6TZ.js} +1 -1
- package/dist/chunk-HTRDL42C.js +45 -0
- package/dist/{chunk-YBAVN6WS.js → chunk-I4DM7SNX.js} +7 -7
- package/dist/{chunk-24FEVLX7.js → chunk-I6U6QPN6.js} +1311 -73
- package/dist/{chunk-4DJZSNVT.js → chunk-IKFAJTLZ.js} +1 -1
- package/dist/{chunk-55PYF6S2.js → chunk-J2OMKFYB.js} +3 -3
- package/dist/{chunk-7Y5VW4JG.js → chunk-K2G3VB7W.js} +1 -1
- package/dist/chunk-K7N6LAPC.js +78 -0
- package/dist/{chunk-ULBVE7MP.js → chunk-KRCU66AM.js} +9 -9
- package/dist/{chunk-JU3VU42K.js → chunk-LHHDX7FB.js} +5 -5
- package/dist/{chunk-FUJUFLDC.js → chunk-LO4CK734.js} +8 -14
- package/dist/chunk-LSLK4RS4.js +82 -0
- package/dist/{chunk-ABAVN4RT.js → chunk-LSZUTI6O.js} +29 -26
- package/dist/chunk-MVPOYQQY.js +136 -0
- package/dist/{chunk-YQHEJ5SV.js → chunk-NXQK2I3G.js} +3 -3
- package/dist/{chunk-DJMR4YPG.js → chunk-O3MJAHLI.js} +82 -96
- package/dist/{chunk-B7PYT2BY.js → chunk-PBGNX3PS.js} +6 -3
- package/dist/{chunk-CJJDJ7AT.js → chunk-PIZA7OG2.js} +5 -3
- package/dist/{chunk-RIHB3HA2.js → chunk-PMA67TIN.js} +3 -3
- package/dist/{chunk-DJDTL6AY.js → chunk-QKOJ22OV.js} +148 -293
- package/dist/{chunk-RDWKRG4K.js → chunk-RF4JHGGB.js} +7 -7
- package/dist/{chunk-MOOZJRKM.js → chunk-SJJXDU2J.js} +27 -30
- package/dist/chunk-T5QBWM6M.js +113 -0
- package/dist/{chunk-W7I65BKE.js → chunk-TJIFYV2Z.js} +12 -12
- package/dist/{chunk-EBOQU6QC.js → chunk-TKY3SDXH.js} +6 -6
- package/dist/{chunk-ALEUIS35.js → chunk-ULBYRPAP.js} +1 -1
- package/dist/{chunk-ZP7F3OHV.js → chunk-URHS76GV.js} +48 -38
- package/dist/{chunk-X2XTCGUS.js → chunk-VAYVTUU4.js} +11 -12
- package/dist/{chunk-TSYHUUAT.js → chunk-VUH7KKVD.js} +3 -3
- package/dist/{chunk-RIIPBJK6.js → chunk-WACPWYMH.js} +4 -4
- package/dist/{chunk-AAGU5FJF.js → chunk-WGC7UFRM.js} +1 -1
- package/dist/{chunk-2SRQSGPR.js → chunk-WVAXJOWG.js} +30 -24
- package/dist/{chunk-KLXECBIE.js → chunk-XEWG4AB2.js} +151 -108
- package/dist/{chunk-KDK6AF7B.js → chunk-XIDDJSQU.js} +7 -6
- package/dist/{chunk-MXIFRYLA.js → chunk-Y4E7IS7H.js} +2 -2
- package/dist/{chunk-DHFNBNC3.js → chunk-YJQ7YA7J.js} +5 -5
- package/dist/{chunk-6A2GEFN3.js → chunk-YMVRCSKD.js} +4 -4
- package/dist/{chunk-JW5BENE6.js → chunk-YYQ5NOT5.js} +3 -3
- package/dist/chunk-ZHQC43NH.js +130 -0
- package/dist/{chunk-KB5B6ZT5.js → chunk-ZSRMJOAK.js} +20 -20
- package/dist/{claude-launcher-L77BKZOC.js → claude-launcher-LGKJZH33.js} +99 -120
- package/dist/{cli-QQY5UECM.js → cli-Q5L64EEG.js} +327 -298
- package/dist/{cli-update-notice-T3CXRWNB.js → cli-update-notice-AWYJ4A7R.js} +2 -2
- package/dist/{command-QLHQZ32L.js → command-CGEFJZNC.js} +65 -64
- package/dist/{config-5GY7FL35.js → config-T22KVOOT.js} +14 -10
- package/dist/connect-cmd-RUBP466E.js +28 -0
- package/dist/{container-start-OCJODSMB.js → container-start-JRF3SBUA.js} +65 -62
- package/dist/{context-cleanup-A7KBEBIO.js → context-cleanup-3K2AOECJ.js} +6 -2
- package/dist/{context-show-cmd-MZ74ZIVO.js → context-show-cmd-4UXO5WQJ.js} +18 -16
- package/dist/{control-plane-launch-3TZFOSCX.js → control-plane-launch-AAH4YH56.js} +31 -27
- package/dist/{demo-record-cmd-Y57UWBCX.js → demo-record-cmd-2OKCGST7.js} +10 -5
- package/dist/{demo-voice-cmd-4INIOVTC.js → demo-voice-cmd-GEPX7GIG.js} +27 -27
- package/dist/{dist-6KGTCWKR.js → dist-VVZIGSAF.js} +1 -1
- package/dist/docker-5VWK335X.js +19 -0
- package/dist/{doctor-DB2AJUAO.js → doctor-EQM3JRZI.js} +81 -76
- package/dist/emit-artifact-cmd-TA3MPHLU.js +43 -0
- package/dist/{emit-cmd-IOWTTZSA.js → emit-cmd-RO4L4PFZ.js} +9 -8
- package/dist/emit-criteria-cmd-NMTUV2KM.js +34 -0
- package/dist/emit-demo-cmd-Y2Y6LEL7.js +46 -0
- package/dist/{emit-finding-cmd-KQIGM5IF.js → emit-finding-cmd-VECM64UR.js} +20 -19
- package/dist/{emit-result-cmd-6Q7OU2NY.js → emit-result-cmd-2ERWFDUN.js} +25 -24
- package/dist/{emit-step-cmd-GZU5O2FR.js → emit-step-cmd-V2ET66N4.js} +20 -19
- package/dist/exec-client-54XKNPTI.js +16 -0
- package/dist/find-unit-CNAPU7XQ.js +23 -0
- package/dist/{findings-cmd-T7PQAVJG.js → findings-cmd-QJPPF6BY.js} +20 -19
- package/dist/{fleet-readiness-PTMOEX6L.js → fleet-readiness-DKAPHAZN.js} +16 -15
- package/dist/governing-source-7PZ6DAJU.js +40 -0
- package/dist/guest-init-5QZRGP62.js +18 -0
- package/dist/{hook-fast-RW7RU3O6.js → hook-fast-VXROB4KF.js} +7 -5
- package/dist/hook-install-GDNRMML4.js +14 -0
- package/dist/{hook-wrap-fast-545QJSBJ.js → hook-wrap-fast-LWWKKPGK.js} +4 -2
- package/dist/host-checks-WAPO5X7X.js +78 -0
- package/dist/host-key-HLLV37NV.js +16 -0
- package/dist/image-tag-PBWQBATH.js +17 -0
- package/dist/index.js +8 -9
- package/dist/init-EK3PUU6W.js +78 -0
- package/dist/{init-HUQLVUPO.js → init-Y2URPVVY.js} +62 -59
- package/dist/{init-cmd-6NQGBVAJ.js → init-cmd-XNANUDIW.js} +38 -33
- package/dist/{init-update-MA6QKX46.js → init-update-EFCTKF6D.js} +55 -46
- package/dist/install-cmd-RHFUZFV4.js +19 -0
- package/dist/layout-7XMC7S6K.js +13 -0
- package/dist/{logs-FEITSC2V.js → logs-E7MGQINH.js} +10 -3
- package/dist/loop-L6TX6OR4.js +89 -0
- package/dist/machine-VJKAY2GX.js +78 -0
- package/dist/{machine-skills-237PQFRC.js → machine-skills-HR4RNRNR.js} +5 -4
- package/dist/{mcp-install-cmd-23ZY4IBK.js → mcp-install-cmd-SMPLT43Q.js} +7 -1
- package/dist/{mcp-serve-cmd-ZINYSLY6.js → mcp-serve-cmd-XXERT673.js} +11 -7
- package/dist/{paths-XEYE7OZ2.js → paths-F2ZR2EKC.js} +10 -3
- package/dist/pending-VOFQRXP4.js +16 -0
- package/dist/pidfile-7M7O2M7T.js +17 -0
- package/dist/record-YCJ6DZOY.js +16 -0
- package/dist/{relay-IEYNSKAZ.js → relay-I2T43PPB.js} +8 -1
- package/dist/relay-protocol-GI2GC2AM.js +13 -0
- package/dist/runner-env-YW55JVU7.js +23 -0
- package/dist/runner-identity-Y5ZFCC7V.js +19 -0
- package/dist/{runner-key-CFZ47PR3.js → runner-key-R47C6374.js} +54 -54
- package/dist/session-sender-UPACLRGG.js +43 -0
- package/dist/{shell-function-NRD4KVUK.js → shell-function-GYD2ZQQG.js} +2 -1
- package/dist/{spec-cmd-CNASSB6L.js → spec-cmd-7QRE2SZK.js} +21 -20
- package/dist/{starter-pack-CCVIEY72.js → starter-pack-IMKIUA56.js} +7 -6
- package/dist/state-VAHBIMS5.js +16 -0
- package/dist/{status-VNHIHQ57.js → status-BQEYEG2V.js} +54 -54
- package/dist/{statusline-fast-E7RWVREA.js → statusline-fast-NUVHCNRX.js} +4 -2
- package/dist/{sync-cmd-5JLJBODH.js → sync-cmd-NBLYEPQG.js} +25 -24
- package/dist/update-steps-VGKNGWTZ.js +79 -0
- package/dist/{watch-AEWWTUEK.js → watch-IHV4V3HZ.js} +25 -24
- package/dist/{work-claim-cmd-GUYOJYH7.js → work-claim-cmd-WGTSU5IT.js} +24 -24
- package/dist/{work-cmd-YRPYMGII.js → work-cmd-HKOJU5FJ.js} +18 -17
- package/dist/{work-comment-cmd-U5Z6FKEU.js → work-comment-cmd-H3JCWQ2J.js} +21 -20
- package/dist/{work-demo-cmd-OLCWTVWM.js → work-demo-cmd-J4AZAIVP.js} +18 -17
- package/dist/{work-launch-TTGSHLY4.js → work-launch-LWDQXLGI.js} +1 -1
- package/dist/{work-logs-cmd-2OA7ENDU.js → work-logs-cmd-UOO4JVLG.js} +18 -17
- package/dist/{work-open-pr-cmd-6GUCDYVM.js → work-open-pr-cmd-QFRDDBAM.js} +20 -19
- package/dist/{work-pr-cmd-KK3VQUQI.js → work-pr-cmd-3Q2D5RQT.js} +19 -18
- package/dist/{work-proofs-cmd-BUOS5OJC.js → work-proofs-cmd-7Y3HGT7C.js} +21 -20
- package/dist/{work-proofs-record-6WLMOK53.js → work-proofs-record-QPUM6DY4.js} +31 -31
- package/dist/{work-stop-cmd-VZJX5X4L.js → work-stop-cmd-SD2ZRMSY.js} +18 -17
- package/package.json +1 -1
- package/dist/agent-setup-DJRQFPDU.js +0 -33
- package/dist/bridge-XM4QLKIX.js +0 -8
- package/dist/build-ZE5IG3V6.js +0 -18
- package/dist/build-disk-GMXDIZU4.js +0 -15
- package/dist/builder-LJ3FSB36.js +0 -14
- package/dist/caller-YLNJJPFU.js +0 -18
- package/dist/chunk-CXFJOX2C.js +0 -144
- package/dist/chunk-FGF52V4V.js +0 -137
- package/dist/chunk-HCVLP7XA.js +0 -53
- package/dist/chunk-KYDEBGJG.js +0 -402
- package/dist/chunk-MESOOLF4.js +0 -45
- package/dist/chunk-OHQMGLJP.js +0 -113
- package/dist/chunk-OUPQTA7N.js +0 -145
- package/dist/chunk-VRMXYQWR.js +0 -74
- package/dist/connect-cmd-THV7XBVP.js +0 -27
- package/dist/docker-5YVUZ3J2.js +0 -14
- package/dist/emit-artifact-cmd-H27MFSKH.js +0 -42
- package/dist/emit-criteria-cmd-IOUVMB2Q.js +0 -33
- package/dist/emit-demo-cmd-WJSS7KU2.js +0 -46
- package/dist/exec-client-FGGPQSYQ.js +0 -9
- package/dist/find-unit-PRZIFBIK.js +0 -19
- package/dist/governing-source-CND5ZZC3.js +0 -39
- package/dist/guest-init-WPUS45IN.js +0 -11
- package/dist/host-checks-S3B7Z4SY.js +0 -78
- package/dist/host-key-O4DFMOSV.js +0 -9
- package/dist/image-tag-WBD57QBN.js +0 -10
- package/dist/init-ILTX4V56.js +0 -78
- package/dist/install-cmd-JKPXIOEY.js +0 -12
- package/dist/layout-2ZMCT2D3.js +0 -11
- package/dist/loop-KDWDOSMQ.js +0 -89
- package/dist/machine-Z6K5XXI6.js +0 -78
- package/dist/pending-D2NNV54J.js +0 -9
- package/dist/pidfile-FLFVRKVW.js +0 -10
- package/dist/record-JMZOXD4R.js +0 -9
- package/dist/relay-protocol-5LSWUJCW.js +0 -6
- package/dist/runner-env-W2UMHY7P.js +0 -19
- package/dist/runner-identity-IIY5UJL3.js +0 -14
- package/dist/session-sender-NO4F2IQ5.js +0 -42
- package/dist/settings-XB2HYBKO.js +0 -7
- package/dist/state-UWIM42JH.js +0 -9
- package/dist/update-steps-XGOXDCOS.js +0 -79
- package/dist/{chunk-OLM2TIOW.js → chunk-NFZMENCY.js} +1 -1
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { parseOwnerRepo, lookupGoverningSource, defaultGitRunner, materializeContext } from './chunk-
|
|
4
|
-
import { launchRefusal, removedTargetErrorIn } from './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import { resolveGatewayCredentials, defaultFetch } from './chunk-
|
|
3
|
+
import { parseOwnerRepo, lookupGoverningSource, defaultGitRunner, materializeContext } from './chunk-VAYVTUU4.js';
|
|
4
|
+
import { launchRefusal, removedTargetErrorIn } from './chunk-XIDDJSQU.js';
|
|
5
|
+
import './chunk-B36NSEUM.js';
|
|
6
|
+
import { resolveGatewayCredentials, defaultFetch } from './chunk-NXQK2I3G.js';
|
|
7
7
|
import './chunk-HWVMRETT.js';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-IKFAJTLZ.js';
|
|
9
9
|
import './chunk-545P7JY7.js';
|
|
10
|
-
import { layoutRefusalMessage, unsupportedLayout, sharedSkillNames, skillConflictMessage, composeDelivery } from './chunk-
|
|
11
|
-
import './chunk-
|
|
10
|
+
import { layoutRefusalMessage, unsupportedLayout, sharedSkillNames, skillConflictMessage, composeDelivery } from './chunk-6JLYU322.js';
|
|
11
|
+
import './chunk-BSPJI5T7.js';
|
|
12
12
|
import { findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-OLM2TIOW.js';
|
|
15
|
-
import './chunk-CDDED64E.js';
|
|
16
|
-
import './chunk-RA3O54FC.js';
|
|
13
|
+
import './chunk-NFZMENCY.js';
|
|
17
14
|
import './chunk-FZKNTIOJ.js';
|
|
18
|
-
import { cleanupEarlierCopies } from './chunk-
|
|
15
|
+
import { cleanupEarlierCopies } from './chunk-PBGNX3PS.js';
|
|
19
16
|
import { readSourceCache, readDeliveryRecord, isSourceCacheFresh, writeDeliveryRecord, writeSourceCache, SOURCE_CACHE_TTL_SUCCESS_MS, clearDegraded, removeLauncherDeliveryRecord } from './chunk-YQR6E6OV.js';
|
|
20
17
|
import './chunk-CJPTUU2E.js';
|
|
21
|
-
import './chunk-
|
|
18
|
+
import './chunk-DTCTXDJP.js';
|
|
19
|
+
import './chunk-CXJC3JLN.js';
|
|
20
|
+
import './chunk-DTQPDMHG.js';
|
|
21
|
+
import { contextAgents, defaultAgents, agentRootFolders, AGENTS_SKILLS_BASE } from './chunk-I6U6QPN6.js';
|
|
22
22
|
import './chunk-WUKLQWGY.js';
|
|
23
|
+
import './chunk-T5QBWM6M.js';
|
|
24
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-LSLK4RS4.js';
|
|
25
|
+
import './chunk-CDDED64E.js';
|
|
26
|
+
import './chunk-RA3O54FC.js';
|
|
23
27
|
import './chunk-352DHUTP.js';
|
|
24
|
-
import './chunk-WT7J2627.js';
|
|
25
|
-
import './chunk-GANAOCHR.js';
|
|
26
|
-
import './chunk-MESOOLF4.js';
|
|
27
28
|
import './chunk-Z5GEFMRW.js';
|
|
28
29
|
import { execFileSync } from 'child_process';
|
|
29
30
|
import { existsSync, readFileSync, mkdirSync, mkdtempSync, cpSync, renameSync, writeFileSync, rmSync, readdirSync } from 'fs';
|
|
30
31
|
import { join } from 'path';
|
|
31
32
|
|
|
32
33
|
createRequire(import.meta.url);
|
|
34
|
+
var AGENT = NATIVE_AGENTS[LEGACY_AGENT];
|
|
35
|
+
var PREFIX = `outerlayer ${AGENT.legacy.subcommand}:`;
|
|
33
36
|
var GOVERNANCE_LOOKUP = { timeoutMs: 5e3, attempts: 1 };
|
|
34
37
|
function laptopDeliveryDir(home, repository, sha) {
|
|
35
38
|
if (!/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(repository) || repository.split("/").some((part) => part === "." || part === "..") || !/^[0-9a-f]{7,64}$/.test(sha)) {
|
|
@@ -63,7 +66,7 @@ function committedSkillNamesIn(repoRoot, folder) {
|
|
|
63
66
|
}
|
|
64
67
|
function committedSkills(repoRoot) {
|
|
65
68
|
const skills = /* @__PURE__ */ new Map();
|
|
66
|
-
for (const folder of [
|
|
69
|
+
for (const folder of [AGENTS_SKILLS_BASE, ...contextAgents(defaultAgents()).flatMap((agent) => agent.descriptor.context.repoSkillFolders)]) {
|
|
67
70
|
for (const name of committedSkillNamesIn(repoRoot, folder)) skills.set(name, folder);
|
|
68
71
|
}
|
|
69
72
|
return skills;
|
|
@@ -101,7 +104,8 @@ async function storeCopy(input) {
|
|
|
101
104
|
composeDelivery({ tree, dir: input.dir });
|
|
102
105
|
const composed = join(work, "composed");
|
|
103
106
|
mkdirSync(composed);
|
|
104
|
-
|
|
107
|
+
const instructionFiles = contextAgents(defaultAgents()).flatMap((agent) => agent.descriptor.context.instructionFiles);
|
|
108
|
+
for (const entry of ["AGENTS.md", ...instructionFiles, "settings.json", ...agentRootFolders(defaultAgents()), ".outerlayer", ".agents"]) {
|
|
105
109
|
if (existsSync(join(tree, entry))) cpSync(join(tree, entry), join(composed, entry), { recursive: true });
|
|
106
110
|
}
|
|
107
111
|
mkdirSync(join(input.dir, ".."), { recursive: true });
|
|
@@ -177,7 +181,7 @@ async function resolveLaunchPlane(deps) {
|
|
|
177
181
|
const governance = await askGovernance({ gitCommonDir, credentials, ownName, fetchImpl, lookup: GOVERNANCE_LOOKUP, now });
|
|
178
182
|
if (governance.kind === "self") {
|
|
179
183
|
if (existsSync(join(repoRoot, ".outerlayer-pin.json"))) {
|
|
180
|
-
deps.stderr(
|
|
184
|
+
deps.stderr(`${PREFIX} no control plane governs ${ownName} any more; starting ${AGENT.label} without one. The committed .outerlayer-pin.json is no longer used and can be deleted
|
|
181
185
|
`);
|
|
182
186
|
}
|
|
183
187
|
return { kind: "none" };
|
|
@@ -189,15 +193,15 @@ async function resolveLaunchPlane(deps) {
|
|
|
189
193
|
const lastCopy = last !== void 0 && existsSync(last.dir) ? last : void 0;
|
|
190
194
|
const knownGoverned = cache?.status === "governed" || last !== void 0;
|
|
191
195
|
if (!knownGoverned) {
|
|
192
|
-
deps.stderr(
|
|
196
|
+
deps.stderr(`${PREFIX} ${whyNoAnswer}, so whether a control plane governs this repository is unknown; starting ${AGENT.label} without one
|
|
193
197
|
`);
|
|
194
198
|
return { kind: "none" };
|
|
195
199
|
}
|
|
196
200
|
if (lastCopy === void 0) {
|
|
197
|
-
return { kind: "refused", message:
|
|
201
|
+
return { kind: "refused", message: `${PREFIX} the control plane could not be fetched: ${whyNoAnswer}, and no copy of it is stored on this machine
|
|
198
202
|
` };
|
|
199
203
|
}
|
|
200
|
-
deps.stderr(
|
|
204
|
+
deps.stderr(`${PREFIX} ${whyNoAnswer}; starting with the control plane copy from ${lastCopy.sha.slice(0, 7)}, which may be out of date
|
|
201
205
|
`);
|
|
202
206
|
return finish(lastCopy, repoRoot, gitCommonDir, ownName);
|
|
203
207
|
}
|
|
@@ -205,7 +209,7 @@ async function resolveLaunchPlane(deps) {
|
|
|
205
209
|
try {
|
|
206
210
|
dir = laptopDeliveryDir(deps.home, source.repository, source.sha);
|
|
207
211
|
} catch (err) {
|
|
208
|
-
return { kind: "refused", message:
|
|
212
|
+
return { kind: "refused", message: `${PREFIX} the control plane could not be fetched: ${err instanceof Error ? err.message : String(err)}
|
|
209
213
|
` };
|
|
210
214
|
}
|
|
211
215
|
const stored = existsSync(join(dir, "settings.json"));
|
|
@@ -216,14 +220,14 @@ async function resolveLaunchPlane(deps) {
|
|
|
216
220
|
if (result.kind === "failed") {
|
|
217
221
|
const { problem } = result;
|
|
218
222
|
if (stored) {
|
|
219
|
-
deps.stderr(
|
|
223
|
+
deps.stderr(`${PREFIX} the control plane could not be fetched (${problem}); starting with the copy stored for ${source.sha.slice(0, 7)}, which an earlier CLI composed
|
|
220
224
|
`);
|
|
221
225
|
} else if (last !== void 0 && existsSync(last.dir)) {
|
|
222
|
-
deps.stderr(
|
|
226
|
+
deps.stderr(`${PREFIX} the control plane could not be fetched (${problem}); starting with the copy from ${last.sha.slice(0, 7)}, which may be out of date
|
|
223
227
|
`);
|
|
224
228
|
return finish(last, repoRoot, gitCommonDir, ownName);
|
|
225
229
|
} else {
|
|
226
|
-
return { kind: "refused", message:
|
|
230
|
+
return { kind: "refused", message: `${PREFIX} the control plane could not be fetched: ${problem}
|
|
227
231
|
` };
|
|
228
232
|
}
|
|
229
233
|
}
|
|
@@ -245,7 +249,7 @@ function finish(record, repoRoot, gitCommonDir, ownName) {
|
|
|
245
249
|
if (clash !== void 0) {
|
|
246
250
|
return {
|
|
247
251
|
kind: "refused",
|
|
248
|
-
message:
|
|
252
|
+
message: `${PREFIX} ${skillConflictMessage({ skill: clash, folder: own.get(clash), repository: ownName, controlPlane: record.repository })}, and would replace it in this session; rename or remove it from the repository
|
|
249
253
|
`
|
|
250
254
|
};
|
|
251
255
|
}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { IMAGE_BROWSER } from './chunk-
|
|
4
|
-
import { buildRootFromDist } from './chunk-
|
|
5
|
-
import './chunk-OUPQTA7N.js';
|
|
3
|
+
import { IMAGE_BROWSER } from './chunk-ZSRMJOAK.js';
|
|
4
|
+
import { buildRootFromDist } from './chunk-BZSJ77MO.js';
|
|
6
5
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
7
6
|
import './chunk-FZKNTIOJ.js';
|
|
7
|
+
import './chunk-CXJC3JLN.js';
|
|
8
|
+
import './chunk-DTQPDMHG.js';
|
|
9
|
+
import './chunk-I6U6QPN6.js';
|
|
10
|
+
import './chunk-WUKLQWGY.js';
|
|
11
|
+
import './chunk-T5QBWM6M.js';
|
|
12
|
+
import './chunk-LSLK4RS4.js';
|
|
13
|
+
import './chunk-CDDED64E.js';
|
|
14
|
+
import './chunk-RA3O54FC.js';
|
|
8
15
|
import './chunk-352DHUTP.js';
|
|
9
|
-
import './chunk-GANAOCHR.js';
|
|
10
|
-
import './chunk-MESOOLF4.js';
|
|
11
16
|
import './chunk-Z5GEFMRW.js';
|
|
12
17
|
import { spawn } from 'child_process';
|
|
13
18
|
import { randomBytes } from 'crypto';
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { realSpeaker } from './chunk-
|
|
3
|
+
import { realSpeaker } from './chunk-RF4JHGGB.js';
|
|
4
4
|
import './chunk-ER6KQCVJ.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-6B3V6EGQ.js';
|
|
6
6
|
import './chunk-2PGI6RDE.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
7
|
+
import './chunk-3UFX6KH2.js';
|
|
8
|
+
import './chunk-ENMX3VQ7.js';
|
|
9
|
+
import './chunk-WGC7UFRM.js';
|
|
10
|
+
import './chunk-FWSVWPMS.js';
|
|
11
|
+
import './chunk-VUH7KKVD.js';
|
|
12
|
+
import './chunk-FRMAQ3C4.js';
|
|
13
|
+
import './chunk-P6PHY33P.js';
|
|
14
|
+
import './chunk-6KH3NMIT.js';
|
|
15
|
+
import './chunk-D6EXW4EB.js';
|
|
14
16
|
import './chunk-TPMLB3VZ.js';
|
|
15
17
|
import './chunk-A2LHHKTT.js';
|
|
16
18
|
import './chunk-2AM6Z5BP.js';
|
|
17
|
-
import './chunk-
|
|
18
|
-
import './chunk-KFUDKFEH.js';
|
|
19
|
-
import './chunk-YQHEJ5SV.js';
|
|
19
|
+
import './chunk-NXQK2I3G.js';
|
|
20
20
|
import './chunk-HWVMRETT.js';
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
21
|
+
import './chunk-IKFAJTLZ.js';
|
|
22
|
+
import './chunk-O3MJAHLI.js';
|
|
23
23
|
import './chunk-545P7JY7.js';
|
|
24
|
-
import './chunk-
|
|
24
|
+
import './chunk-LO4CK734.js';
|
|
25
25
|
import './chunk-BKO6JEZI.js';
|
|
26
|
-
import './chunk-
|
|
26
|
+
import './chunk-BSPJI5T7.js';
|
|
27
27
|
import './chunk-BJ3KTMDH.js';
|
|
28
|
-
import './chunk-
|
|
29
|
-
import './chunk-
|
|
30
|
-
import './chunk-OLM2TIOW.js';
|
|
31
|
-
import './chunk-CDDED64E.js';
|
|
32
|
-
import './chunk-RA3O54FC.js';
|
|
33
|
-
import './chunk-5WYT3PPE.js';
|
|
28
|
+
import './chunk-NFZMENCY.js';
|
|
29
|
+
import './chunk-4OD45RBP.js';
|
|
34
30
|
import './chunk-WZBHBH3J.js';
|
|
35
31
|
import './chunk-FZKNTIOJ.js';
|
|
36
|
-
import './chunk-
|
|
32
|
+
import './chunk-ZHQC43NH.js';
|
|
37
33
|
import './chunk-CJPTUU2E.js';
|
|
38
|
-
import './chunk-
|
|
34
|
+
import './chunk-DTCTXDJP.js';
|
|
35
|
+
import './chunk-CXJC3JLN.js';
|
|
36
|
+
import './chunk-DTQPDMHG.js';
|
|
37
|
+
import './chunk-I6U6QPN6.js';
|
|
39
38
|
import './chunk-WUKLQWGY.js';
|
|
39
|
+
import './chunk-T5QBWM6M.js';
|
|
40
|
+
import './chunk-LSLK4RS4.js';
|
|
41
|
+
import './chunk-CDDED64E.js';
|
|
42
|
+
import './chunk-RA3O54FC.js';
|
|
40
43
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
41
|
-
import './chunk-WT7J2627.js';
|
|
42
|
-
import './chunk-GANAOCHR.js';
|
|
43
|
-
import './chunk-MESOOLF4.js';
|
|
44
44
|
import './chunk-Z5GEFMRW.js';
|
|
45
45
|
import { mkdtempSync, mkdirSync, copyFileSync, rmSync } from 'fs';
|
|
46
46
|
import { tmpdir } from 'os';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export { CaptureDaemon, MIN_SCRUBBED_LITERAL, PRICE_TABLE_SOURCE, SECRET_PATTERNS, SOURCE_ADAPTERS, SUPPORTED_VERSIONS, StatuslineAggregator, WARNING_CODES, claudeCodeAdapter, compareVersions, completePrefix, computeStatuslineState, costOfUsage, defaultProjectsDir, defaultRawDir, enrichSessionRepo, findTranscripts, forkFor, isNewerThanSupported, isPriceKnown, normalizeErrorSignature, normalizeRemote, parseTranscript, readForkRecord, readStatuslineState, readSyncWatermarkMs, remoteLookupFailed, resolvePrice, resolveRepoIdentity, scanAll, scrubDeep, scrubText, sessionIdFromPath, setCustomScrubbers, setLocalIdentity, setRepoRoot, statuslineStatePath, tailTranscript, writeStatuslineState } from './chunk-
|
|
3
|
+
export { CaptureDaemon, MIN_SCRUBBED_LITERAL, PRICE_TABLE_SOURCE, SECRET_PATTERNS, SOURCE_ADAPTERS, SUPPORTED_VERSIONS, StatuslineAggregator, WARNING_CODES, claudeCodeAdapter, compareVersions, completePrefix, computeStatuslineState, costOfUsage, defaultProjectsDir, defaultRawDir, enrichSessionRepo, findTranscripts, forkFor, isNewerThanSupported, isPriceKnown, normalizeErrorSignature, normalizeRemote, parseTranscript, readForkRecord, readStatuslineState, readSyncWatermarkMs, remoteLookupFailed, resolvePrice, resolveRepoIdentity, scanAll, scrubDeep, scrubText, sessionIdFromPath, setCustomScrubbers, setLocalIdentity, setRepoRoot, statuslineStatePath, tailTranscript, writeStatuslineState } from './chunk-6KH3NMIT.js';
|
|
4
4
|
import './chunk-WUKLQWGY.js';
|
|
5
5
|
import './chunk-Z5GEFMRW.js';
|
|
6
6
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
export { childEnvironment, createDockerHost, spawnRun } from './chunk-CDG475ZP.js';
|
|
4
|
+
import './chunk-BZSJ77MO.js';
|
|
5
|
+
import './chunk-6KH3NMIT.js';
|
|
6
|
+
import './chunk-IKFAJTLZ.js';
|
|
7
|
+
import './chunk-DTCTXDJP.js';
|
|
8
|
+
import './chunk-CXJC3JLN.js';
|
|
9
|
+
import './chunk-DTQPDMHG.js';
|
|
10
|
+
import './chunk-I6U6QPN6.js';
|
|
11
|
+
import './chunk-WUKLQWGY.js';
|
|
12
|
+
import './chunk-T5QBWM6M.js';
|
|
13
|
+
import './chunk-LSLK4RS4.js';
|
|
14
|
+
import './chunk-CDDED64E.js';
|
|
15
|
+
import './chunk-RA3O54FC.js';
|
|
16
|
+
import './chunk-352DHUTP.js';
|
|
17
|
+
import './chunk-Z5GEFMRW.js';
|
|
18
|
+
|
|
19
|
+
createRequire(import.meta.url);
|
|
@@ -1,82 +1,82 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { launcherCheck } from './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import {
|
|
8
|
-
import './chunk-
|
|
3
|
+
import { helperBinaryFor } from './chunk-FTP7SE6Y.js';
|
|
4
|
+
import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-BUYXEU7J.js';
|
|
5
|
+
import { launcherCheck } from './chunk-B2P72DAE.js';
|
|
6
|
+
import './chunk-DG3M5DZU.js';
|
|
7
|
+
import { needsAgentCredential, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, firstLine, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-XEWG4AB2.js';
|
|
8
|
+
import './chunk-FOSYM7TQ.js';
|
|
9
9
|
import './chunk-I3LTIAOR.js';
|
|
10
10
|
import './chunk-2PGI6RDE.js';
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
11
|
+
import './chunk-K7N6LAPC.js';
|
|
12
|
+
import './chunk-CSBW4LGL.js';
|
|
13
|
+
import './chunk-LHHDX7FB.js';
|
|
14
|
+
import './chunk-J2OMKFYB.js';
|
|
15
|
+
import './chunk-YMVRCSKD.js';
|
|
16
|
+
import { RepoFilter } from './chunk-3UFX6KH2.js';
|
|
17
|
+
import './chunk-ENMX3VQ7.js';
|
|
18
|
+
import './chunk-WGC7UFRM.js';
|
|
16
19
|
import './chunk-ZVB57WI6.js';
|
|
17
|
-
import { runnerImageVersion, imageAdvice, readUpdateStatus, imageTag, pullInstruction } from './chunk-
|
|
20
|
+
import { runnerImageVersion, imageAdvice, readUpdateStatus, imageTag, pullInstruction } from './chunk-ULBYRPAP.js';
|
|
18
21
|
import './chunk-TQMI335S.js';
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-AGKQEOFS.js';
|
|
22
|
+
import './chunk-CSVJGW3I.js';
|
|
21
23
|
import './chunk-NN33FYXG.js';
|
|
22
|
-
import './chunk-
|
|
23
|
-
import './chunk-
|
|
24
|
-
import './chunk-
|
|
25
|
-
import './chunk-OGFGZQA3.js';
|
|
26
|
-
import './chunk-46OBCATR.js';
|
|
27
|
-
import './chunk-F2LPX2HS.js';
|
|
28
|
-
import './chunk-55PYF6S2.js';
|
|
24
|
+
import './chunk-TJIFYV2Z.js';
|
|
25
|
+
import './chunk-ZSRMJOAK.js';
|
|
26
|
+
import './chunk-D4VGJQY7.js';
|
|
29
27
|
import './chunk-JBJTC3UU.js';
|
|
30
|
-
import './chunk-
|
|
31
|
-
import './chunk-
|
|
32
|
-
import './chunk-
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import './chunk-
|
|
39
|
-
import './chunk-
|
|
40
|
-
import
|
|
41
|
-
import './chunk-
|
|
42
|
-
import './chunk-
|
|
43
|
-
import './chunk-
|
|
28
|
+
import './chunk-OGFGZQA3.js';
|
|
29
|
+
import './chunk-HRHWA6TZ.js';
|
|
30
|
+
import './chunk-H2NJG3TE.js';
|
|
31
|
+
import './chunk-3YEPLVNW.js';
|
|
32
|
+
import './chunk-2YC3TXWX.js';
|
|
33
|
+
import { builtinKind, keepsHostBuilder, allowHostProblem, MAX_ALLOW_HOSTS } from './chunk-WACPWYMH.js';
|
|
34
|
+
import { realBuildDiskProbe, DEFAULT_BUILD_DISK, freeBytes, checkDiskFit, formatBytes } from './chunk-Y4E7IS7H.js';
|
|
35
|
+
import { buildxState, spawnRun, parseSize, RUNNER_LABEL, runnerLabelValue } from './chunk-CDG475ZP.js';
|
|
36
|
+
import { resolveDevcontainerCli, locateRecipe, assertBuildable, readRecipe, RecipeError } from './chunk-BZSJ77MO.js';
|
|
37
|
+
import './chunk-MVPOYQQY.js';
|
|
38
|
+
import './chunk-B5SWBFVE.js';
|
|
39
|
+
import { getJson, WorkCommandError, signatureRefusalMessage } from './chunk-AQE6E54X.js';
|
|
40
|
+
import './chunk-FWSVWPMS.js';
|
|
41
|
+
import './chunk-VUH7KKVD.js';
|
|
42
|
+
import './chunk-FRMAQ3C4.js';
|
|
43
|
+
import './chunk-P6PHY33P.js';
|
|
44
|
+
import { compareVersions } from './chunk-6KH3NMIT.js';
|
|
45
|
+
import './chunk-D6EXW4EB.js';
|
|
44
46
|
import './chunk-TPMLB3VZ.js';
|
|
45
47
|
import './chunk-A2LHHKTT.js';
|
|
46
48
|
import './chunk-2AM6Z5BP.js';
|
|
47
|
-
import './chunk-
|
|
48
|
-
import './chunk-
|
|
49
|
-
import
|
|
50
|
-
import './chunk-
|
|
51
|
-
import './chunk-LEHBDEUG.js';
|
|
52
|
-
import { defaultFetch } from './chunk-YQHEJ5SV.js';
|
|
49
|
+
import { defaultGitRunner } from './chunk-VAYVTUU4.js';
|
|
50
|
+
import './chunk-XIDDJSQU.js';
|
|
51
|
+
import './chunk-B36NSEUM.js';
|
|
52
|
+
import { defaultFetch } from './chunk-NXQK2I3G.js';
|
|
53
53
|
import './chunk-HWVMRETT.js';
|
|
54
|
-
import { loadHostKey } from './chunk-
|
|
55
|
-
import './chunk-
|
|
54
|
+
import { loadHostKey } from './chunk-IKFAJTLZ.js';
|
|
55
|
+
import './chunk-O3MJAHLI.js';
|
|
56
56
|
import './chunk-545P7JY7.js';
|
|
57
|
-
import './chunk-
|
|
57
|
+
import './chunk-LO4CK734.js';
|
|
58
58
|
import './chunk-BKO6JEZI.js';
|
|
59
|
-
import './chunk-
|
|
60
|
-
import './chunk-
|
|
59
|
+
import './chunk-6JLYU322.js';
|
|
60
|
+
import './chunk-BSPJI5T7.js';
|
|
61
61
|
import './chunk-BJ3KTMDH.js';
|
|
62
|
-
import './chunk-
|
|
63
|
-
import
|
|
64
|
-
import './chunk-OLM2TIOW.js';
|
|
65
|
-
import './chunk-CDDED64E.js';
|
|
66
|
-
import './chunk-RA3O54FC.js';
|
|
67
|
-
import './chunk-5WYT3PPE.js';
|
|
62
|
+
import './chunk-NFZMENCY.js';
|
|
63
|
+
import './chunk-4OD45RBP.js';
|
|
68
64
|
import './chunk-WZBHBH3J.js';
|
|
69
65
|
import './chunk-FZKNTIOJ.js';
|
|
70
|
-
import './chunk-
|
|
71
|
-
import './chunk-
|
|
66
|
+
import './chunk-ZHQC43NH.js';
|
|
67
|
+
import './chunk-PBGNX3PS.js';
|
|
72
68
|
import './chunk-YQR6E6OV.js';
|
|
73
69
|
import './chunk-CJPTUU2E.js';
|
|
74
|
-
import './chunk-
|
|
70
|
+
import { runnerDir, buildsDir, hostKeyPath, jobsDir } from './chunk-DTCTXDJP.js';
|
|
71
|
+
import './chunk-CXJC3JLN.js';
|
|
72
|
+
import { HOST_HELPER_ASSETS_VERSION, FIRECRACKER_VERSION, MIN_SYSTEMD, credentialAgent, credentialForms, HOST_HELPER_SHA256, builderDiskPinned, agentCredentialVariablesSet, buildAgent, AGENT_PINS } from './chunk-DTQPDMHG.js';
|
|
73
|
+
import { defaultAgents } from './chunk-I6U6QPN6.js';
|
|
75
74
|
import './chunk-WUKLQWGY.js';
|
|
75
|
+
import './chunk-T5QBWM6M.js';
|
|
76
|
+
import './chunk-LSLK4RS4.js';
|
|
77
|
+
import './chunk-CDDED64E.js';
|
|
78
|
+
import './chunk-RA3O54FC.js';
|
|
76
79
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
77
|
-
import { runnerDir, buildsDir, hostKeyPath, jobsDir } from './chunk-WT7J2627.js';
|
|
78
|
-
import { MIN_SYSTEMD, claudeCredentialVariablesSet } from './chunk-GANAOCHR.js';
|
|
79
|
-
import './chunk-MESOOLF4.js';
|
|
80
80
|
import './chunk-Z5GEFMRW.js';
|
|
81
81
|
import { spawnSync } from 'child_process';
|
|
82
82
|
import { createHash } from 'crypto';
|
|
@@ -431,7 +431,7 @@ function delegationCheck(service) {
|
|
|
431
431
|
};
|
|
432
432
|
}
|
|
433
433
|
var REINSTALL = "run `outerlayer runner install --service --replace` to install the root helper that starts each microVM build under Firecracker's jailer";
|
|
434
|
-
function helperCheck(facts) {
|
|
434
|
+
function helperCheck(facts, agents = defaultAgents()) {
|
|
435
435
|
const name = "MicroVM jailer";
|
|
436
436
|
if (facts.present && facts.writableBuildsDir !== void 0) {
|
|
437
437
|
return {
|
|
@@ -483,7 +483,8 @@ function helperCheck(facts) {
|
|
|
483
483
|
detail: `each microVM build runs under Firecracker's jailer (Firecracker ${facts.firecracker}), as a user of its own with no credentials, no shared group and no network, so a build that escaped its microVM would reach none of the runner's credentials`
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
|
-
const
|
|
486
|
+
const owner = credentialAgent(agents);
|
|
487
|
+
const reaches = `a build that escaped its microVM would run as the runner's account and reach what that account holds: the ${owner === void 0 ? "agent" : credentialForms(owner.descriptor).label} credential, the runner key, the host key, the host's \`gh\` login and its membership of the \`docker\` group`;
|
|
487
488
|
if (facts.reason === "unpinned") {
|
|
488
489
|
return { name, status: "warn", detail: `this release of the CLI pins no root helper, so Firecracker runs as the runner's account: ${reaches}. microVM builds will not survive a restart of the runner: a build ends with its runner` };
|
|
489
490
|
}
|
|
@@ -496,7 +497,6 @@ function helperCheck(facts) {
|
|
|
496
497
|
}
|
|
497
498
|
|
|
498
499
|
// src/runner/image/doctor.ts
|
|
499
|
-
var LATEST_URL = "https://registry.npmjs.org/@anthropic-ai/claude-code/latest";
|
|
500
500
|
var REGISTRY_TIMEOUT_MS = 5e3;
|
|
501
501
|
var directories = (dir) => readdirSync(dir).sort().filter((entry) => statSync(join(dir, entry)).isDirectory());
|
|
502
502
|
function devcontainerCliRunnable(resolveCli = resolveDevcontainerCli) {
|
|
@@ -543,17 +543,21 @@ function recipeCheck(reposDir, owner, name) {
|
|
|
543
543
|
return { name: label, status: "warn", detail: `the recipe cannot be built: ${reason}`, fix: "fix .devcontainer/devcontainer.json on the default branch" };
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
async function pinCheck(fetchImpl) {
|
|
547
|
-
const
|
|
546
|
+
async function pinCheck(fetchImpl, agents) {
|
|
547
|
+
const agent = buildAgent(agents);
|
|
548
|
+
const image = agent?.adapter.image;
|
|
549
|
+
if (agent === void 0 || image === void 0) return void 0;
|
|
550
|
+
const pin = AGENT_PINS[agent.descriptor.id];
|
|
551
|
+
const name = `${agent.descriptor.label} pin`;
|
|
548
552
|
const unknown = (why) => ({
|
|
549
553
|
name,
|
|
550
554
|
status: "warn",
|
|
551
555
|
detail: `could not read the latest release: ${why}`,
|
|
552
|
-
fix:
|
|
556
|
+
fix: `check the host's network access to ${new URL(image.latestUrl).host}`
|
|
553
557
|
});
|
|
554
558
|
let latest;
|
|
555
559
|
try {
|
|
556
|
-
const response = await fetchImpl(
|
|
560
|
+
const response = await fetchImpl(image.latestUrl, {
|
|
557
561
|
headers: { accept: "application/json" },
|
|
558
562
|
signal: AbortSignal.timeout(REGISTRY_TIMEOUT_MS)
|
|
559
563
|
});
|
|
@@ -563,15 +567,15 @@ async function pinCheck(fetchImpl) {
|
|
|
563
567
|
return unknown(err instanceof Error ? err.message : String(err));
|
|
564
568
|
}
|
|
565
569
|
if (typeof latest !== "string") return unknown("the registry's answer named no version");
|
|
566
|
-
if (compareVersions(latest,
|
|
570
|
+
if (compareVersions(latest, pin) > 0) {
|
|
567
571
|
return {
|
|
568
572
|
name,
|
|
569
573
|
status: "warn",
|
|
570
|
-
detail: `images pin
|
|
574
|
+
detail: `images pin ${agent.descriptor.label} ${pin}, behind the latest release ${latest}`,
|
|
571
575
|
fix: "update the outerlayer CLI; the pin moves with each release"
|
|
572
576
|
};
|
|
573
577
|
}
|
|
574
|
-
return { name, status: "pass", detail: `images pin
|
|
578
|
+
return { name, status: "pass", detail: `images pin ${agent.descriptor.label} ${pin}; latest is ${latest}` };
|
|
575
579
|
}
|
|
576
580
|
var RUNNER_IMAGE_GUIDE = "https://docs.outerlayer.ai/run-the-runner-in-a-container";
|
|
577
581
|
function isolationCheck(machine, hooks, imageBuild) {
|
|
@@ -933,23 +937,23 @@ async function helperFactsOf(env, machine) {
|
|
|
933
937
|
...env.service?.systemdVersion === void 0 ? {} : { systemdVersion: env.service.systemdVersion }
|
|
934
938
|
};
|
|
935
939
|
}
|
|
936
|
-
async function managedChecks(env, runner) {
|
|
940
|
+
async function managedChecks(env, runner, agents) {
|
|
937
941
|
const probe = await (env.helper ?? (() => probeHelper(env.service === void 0 ? void 0 : helperSocketPath(env.service.unit))))();
|
|
938
942
|
const shell = env.env ?? process.env;
|
|
939
943
|
const facts = {
|
|
940
944
|
provision: env.hooks?.provision ?? "(none)",
|
|
941
945
|
jailer: probe.ok ? "usable" : { problem: probe.detail },
|
|
942
|
-
credentials: new Set(env.service === void 0 ?
|
|
946
|
+
credentials: new Set(env.service === void 0 ? agentCredentialVariablesSet(shell, { ignoreHeld: true }, agents) : env.service.credentialVariables),
|
|
943
947
|
allowHosts: runner.allowHosts,
|
|
944
948
|
egress: runner.egress,
|
|
945
949
|
imageBuild: runner.imageBuild ?? "vm",
|
|
946
950
|
builderDiskPinned: builderDiskPinned()
|
|
947
951
|
};
|
|
948
|
-
const unmet = managedProblems(facts);
|
|
952
|
+
const unmet = managedProblems(facts, agents);
|
|
949
953
|
const names = { jailer: "Managed runner jailer", credential: "Managed runner credential", allowHosts: "Managed runner build hosts", egress: "Managed runner egress limits", imageBuild: "Managed runner image builds" };
|
|
950
954
|
const passes = {
|
|
951
955
|
jailer: "builds run under the jailer",
|
|
952
|
-
credential:
|
|
956
|
+
credential: `the host holds no ${credentialAgent(agents) === void 0 ? "agent" : credentialForms(credentialAgent(agents).descriptor).label} credential`,
|
|
953
957
|
allowHosts: "runner.build.allowHosts is set",
|
|
954
958
|
egress: "no egress limit is turned off",
|
|
955
959
|
imageBuild: "images build in a builder microVM"
|
|
@@ -991,6 +995,7 @@ async function fleetDoctorCheck(env, fetchImpl) {
|
|
|
991
995
|
return { name, status: "warn", detail: machine.message, fix: "check that this host reaches the gateway" };
|
|
992
996
|
}
|
|
993
997
|
async function runnerHostChecks(env) {
|
|
998
|
+
const agents = env.agents ?? defaultAgents();
|
|
994
999
|
const dockerAvailable = env.dockerAvailable ?? (() => spawnSync("docker", ["info"], { stdio: "ignore" }).status === 0);
|
|
995
1000
|
const devcontainerRunnable = env.devcontainerRunnable ?? (() => devcontainerCliRunnable());
|
|
996
1001
|
const pathCheck = launcherCheckOf(env);
|
|
@@ -1009,7 +1014,7 @@ async function runnerHostChecks(env) {
|
|
|
1009
1014
|
...env.hooks !== void 0 && builtinKind(env.hooks.provision) === "vm" ? [
|
|
1010
1015
|
kvmCheck(machine(), env.service),
|
|
1011
1016
|
...env.service === void 0 ? [] : [delegationCheck(env.service)],
|
|
1012
|
-
helperCheck(await helperFactsOf(env, machine())),
|
|
1017
|
+
helperCheck(await helperFactsOf(env, machine()), agents),
|
|
1013
1018
|
nestedVirtualizationCheck(env),
|
|
1014
1019
|
vmscapeCheck(env),
|
|
1015
1020
|
diskSharingCheck({ ...env, buildsDir: buildsDir(env.configPath) }),
|
|
@@ -1018,7 +1023,7 @@ async function runnerHostChecks(env) {
|
|
|
1018
1023
|
...env.hooks !== void 0 && builtinKind(env.hooks.provision) === "container" ? [runcCheck(env), tunDeviceCheck(env.tunProbe ?? realTunProbe(env.configPath, env.env))] : [],
|
|
1019
1024
|
...env.hooks !== void 0 && ["container", "vm"].includes(builtinKind(env.hooks.provision)) && keepsHostBuilder({ hooks: env.hooks, build: { imageBuild: env.runner?.imageBuild } }) ? [imageBuildLimitCheck(await (env.buildx ?? (() => buildxState(spawnRun)))(), env.runner?.buildMemory)] : [],
|
|
1020
1025
|
...env.runner !== void 0 && env.hooks !== void 0 && ["container", "vm"].includes(builtinKind(env.hooks.provision)) ? [allowHostsCheck(env.configPath, env.runner.allowHosts)] : [],
|
|
1021
|
-
...env.runner?.managed === true ? await managedChecks(env, env.runner) : [],
|
|
1026
|
+
...env.runner?.managed === true ? await managedChecks(env, env.runner, agents) : [],
|
|
1022
1027
|
...env.runner !== void 0 && env.hooks !== void 0 && ["container", "vm"].includes(builtinKind(env.hooks.provision)) ? [
|
|
1023
1028
|
diskFitCheck(
|
|
1024
1029
|
env.configPath,
|
|
@@ -1028,7 +1033,7 @@ async function runnerHostChecks(env) {
|
|
|
1028
1033
|
)
|
|
1029
1034
|
] : [],
|
|
1030
1035
|
...env.runner?.minFreeDisk === void 0 ? [] : [freeDiskCheck(env.configPath, env.runner.minFreeDisk, env.freeBytes ?? freeBytes)],
|
|
1031
|
-
...env.hooks !== void 0 && env.runner?.managed !== true &&
|
|
1036
|
+
...env.hooks !== void 0 && env.runner?.managed !== true && needsAgentCredential(env.hooks) ? [agentCredentialCheck(env.env ?? process.env, env.service === void 0 ? { shell: true } : { service: { unit: env.service.unit, variables: env.service.credentialVariables } }, agents)] : [],
|
|
1032
1037
|
...env.gateway?.fleet === true ? [await fleetDoctorCheck({ ...env, gateway: env.gateway }, env.fetchImpl ?? defaultFetch)] : [],
|
|
1033
1038
|
...env.gateway === void 0 || env.gateway.fleet === true ? [] : [await hostKeyBindingCheck(env.configPath, env.gateway, env.fetchImpl ?? defaultFetch)],
|
|
1034
1039
|
...env.gateway === void 0 || env.gateway.fleet === true || env.hooks === void 0 || !["container", "vm"].includes(builtinKind(env.hooks.provision)) ? [] : [await controlPlaneAccessCheck({ ...env, gateway: env.gateway }, env.fetchImpl ?? defaultFetch)],
|
|
@@ -1040,7 +1045,7 @@ async function runnerHostChecks(env) {
|
|
|
1040
1045
|
fix: "run yarn install in the checkout this CLI was built from"
|
|
1041
1046
|
},
|
|
1042
1047
|
...recipes,
|
|
1043
|
-
await pinCheck(env.fetchImpl ?? defaultFetch)
|
|
1048
|
+
...[await pinCheck(env.fetchImpl ?? defaultFetch, agents)].filter((check) => check !== void 0)
|
|
1044
1049
|
];
|
|
1045
1050
|
}
|
|
1046
1051
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
export { EmitArtifactError, runEmitArtifact } from './chunk-6B3V6EGQ.js';
|
|
4
|
+
import './chunk-3UFX6KH2.js';
|
|
5
|
+
import './chunk-ENMX3VQ7.js';
|
|
6
|
+
import './chunk-WGC7UFRM.js';
|
|
7
|
+
import './chunk-FWSVWPMS.js';
|
|
8
|
+
import './chunk-VUH7KKVD.js';
|
|
9
|
+
import './chunk-FRMAQ3C4.js';
|
|
10
|
+
import './chunk-P6PHY33P.js';
|
|
11
|
+
import './chunk-6KH3NMIT.js';
|
|
12
|
+
import './chunk-D6EXW4EB.js';
|
|
13
|
+
import './chunk-TPMLB3VZ.js';
|
|
14
|
+
import './chunk-A2LHHKTT.js';
|
|
15
|
+
import './chunk-2AM6Z5BP.js';
|
|
16
|
+
import './chunk-NXQK2I3G.js';
|
|
17
|
+
import './chunk-HWVMRETT.js';
|
|
18
|
+
import './chunk-IKFAJTLZ.js';
|
|
19
|
+
import './chunk-O3MJAHLI.js';
|
|
20
|
+
import './chunk-545P7JY7.js';
|
|
21
|
+
import './chunk-LO4CK734.js';
|
|
22
|
+
import './chunk-BKO6JEZI.js';
|
|
23
|
+
import './chunk-BSPJI5T7.js';
|
|
24
|
+
import './chunk-BJ3KTMDH.js';
|
|
25
|
+
import './chunk-NFZMENCY.js';
|
|
26
|
+
import './chunk-4OD45RBP.js';
|
|
27
|
+
import './chunk-WZBHBH3J.js';
|
|
28
|
+
import './chunk-FZKNTIOJ.js';
|
|
29
|
+
import './chunk-ZHQC43NH.js';
|
|
30
|
+
import './chunk-CJPTUU2E.js';
|
|
31
|
+
import './chunk-DTCTXDJP.js';
|
|
32
|
+
import './chunk-CXJC3JLN.js';
|
|
33
|
+
import './chunk-DTQPDMHG.js';
|
|
34
|
+
import './chunk-I6U6QPN6.js';
|
|
35
|
+
import './chunk-WUKLQWGY.js';
|
|
36
|
+
import './chunk-T5QBWM6M.js';
|
|
37
|
+
import './chunk-LSLK4RS4.js';
|
|
38
|
+
import './chunk-CDDED64E.js';
|
|
39
|
+
import './chunk-RA3O54FC.js';
|
|
40
|
+
import './chunk-352DHUTP.js';
|
|
41
|
+
import './chunk-Z5GEFMRW.js';
|
|
42
|
+
|
|
43
|
+
createRequire(import.meta.url);
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
export {
|
|
3
|
+
export { EmitError, inspectReplacedOutputs, runEmit } from './chunk-WVAXJOWG.js';
|
|
4
|
+
import './chunk-D6EXW4EB.js';
|
|
4
5
|
import './chunk-2AM6Z5BP.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-LEHBDEUG.js';
|
|
8
|
-
import './chunk-CXFJOX2C.js';
|
|
9
|
-
import './chunk-CDDED64E.js';
|
|
10
|
-
import './chunk-RA3O54FC.js';
|
|
6
|
+
import './chunk-XIDDJSQU.js';
|
|
7
|
+
import './chunk-B36NSEUM.js';
|
|
11
8
|
import './chunk-FZKNTIOJ.js';
|
|
12
|
-
import './chunk-
|
|
9
|
+
import './chunk-I6U6QPN6.js';
|
|
13
10
|
import './chunk-WUKLQWGY.js';
|
|
11
|
+
import './chunk-T5QBWM6M.js';
|
|
12
|
+
import './chunk-LSLK4RS4.js';
|
|
13
|
+
import './chunk-CDDED64E.js';
|
|
14
|
+
import './chunk-RA3O54FC.js';
|
|
14
15
|
import './chunk-352DHUTP.js';
|
|
15
16
|
import './chunk-Z5GEFMRW.js';
|
|
16
17
|
|