@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,12 +1,14 @@
|
|
|
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-BSPJI5T7.js';
|
|
5
5
|
import { readRepoConnection, findGitDirs } from './chunk-BJ3KTMDH.js';
|
|
6
|
-
import { updateNoticeContext, staleMachineCopiesContext } from './chunk-
|
|
7
|
-
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
6
|
+
import { updateNoticeContext, staleMachineCopiesContext } from './chunk-NFZMENCY.js';
|
|
8
7
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
9
8
|
import { deadHooksState, huskyPrepareScript, preparePackageManagerCommand } from './chunk-CJPTUU2E.js';
|
|
9
|
+
import { hookCodec } from './chunk-T5QBWM6M.js';
|
|
10
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-LSLK4RS4.js';
|
|
11
|
+
import { resolvePackageVersion } from './chunk-RA3O54FC.js';
|
|
10
12
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
11
13
|
import { readFileSync, mkdirSync, writeFileSync, renameSync, existsSync, readdirSync, unlinkSync, statSync, appendFileSync, opendirSync } from 'fs';
|
|
12
14
|
import { spawn, execFileSync } from 'child_process';
|
|
@@ -120,22 +122,19 @@ function logFailure(home, err) {
|
|
|
120
122
|
} catch {
|
|
121
123
|
}
|
|
122
124
|
}
|
|
123
|
-
function deliverInbox(
|
|
125
|
+
function deliverInbox(decoded, home, env, spawnImpl, write, codec) {
|
|
124
126
|
try {
|
|
125
|
-
|
|
127
|
+
const kind = decoded.kind;
|
|
128
|
+
if (kind !== "tool-used" && kind !== "turn-ended") return;
|
|
126
129
|
const jobDir = env.OUTERLAYER_JOB_DIR;
|
|
127
130
|
if (jobDir === void 0 || jobDir === "") return;
|
|
128
|
-
if (
|
|
131
|
+
if (kind === "tool-used" && decoded.fromSubagent) return;
|
|
129
132
|
const inbox = listInbox(jobDir);
|
|
130
133
|
if (inbox.length === 0) return;
|
|
131
134
|
const delivered = readDelivered(home);
|
|
132
135
|
const chosen = selectForDelivery(inbox.filter((comment) => !delivered.has(comment.id)));
|
|
133
136
|
if (chosen === void 0) return;
|
|
134
|
-
write(
|
|
135
|
-
JSON.stringify(
|
|
136
|
-
event === "Stop" ? { decision: "block", reason: chosen.text } : { hookSpecificOutput: { hookEventName: "PostToolUse", additionalContext: chosen.text } }
|
|
137
|
-
)
|
|
138
|
-
);
|
|
137
|
+
write(codec.reply(kind === "turn-ended" ? { kind, continueWith: chosen.text } : { kind, context: chosen.text }));
|
|
139
138
|
markDelivered(home, chosen.ids);
|
|
140
139
|
spawnImpl(process.execPath, [process.argv[1], "work", "comments-read", "--item", chosen.item, ...chosen.ids]);
|
|
141
140
|
} catch (err) {
|
|
@@ -438,6 +437,11 @@ function refreshCommand(workspaceDistDir, trusted) {
|
|
|
438
437
|
function spoolDir(home = homeFromEnv()) {
|
|
439
438
|
return join(home, ".outerlayer", "spool");
|
|
440
439
|
}
|
|
440
|
+
var LEGACY = NATIVE_AGENTS[LEGACY_AGENT];
|
|
441
|
+
var defaultCodec = () => hookCodec();
|
|
442
|
+
function kindOf(codec, name) {
|
|
443
|
+
return codec.decode(name, "").kind;
|
|
444
|
+
}
|
|
441
445
|
var DUPLICATE_RUN_WINDOW_MS = 2e3;
|
|
442
446
|
var DUPLICATE_RUN_CLAIM_TTL_MS = 6e4;
|
|
443
447
|
function isDuplicateRun(dir, event, input, now = Date.now(), claim = claimRun) {
|
|
@@ -527,9 +531,10 @@ var spawnDetached = (command, args, cwd) => {
|
|
|
527
531
|
});
|
|
528
532
|
child.unref();
|
|
529
533
|
};
|
|
530
|
-
function maybeAutoSync(event, home = homeFromEnv(), spawnImpl = spawnDetached, now = Date.now(), cwd = process.cwd()) {
|
|
534
|
+
function maybeAutoSync(event, home = homeFromEnv(), spawnImpl = spawnDetached, now = Date.now(), cwd = process.cwd(), codec = defaultCodec()) {
|
|
531
535
|
try {
|
|
532
|
-
|
|
536
|
+
const kind = kindOf(codec, event);
|
|
537
|
+
if (kind !== "session-ended" && kind !== "turn-ended") return;
|
|
533
538
|
const marker = join(spoolDir(home), "last-auto-sync");
|
|
534
539
|
try {
|
|
535
540
|
if (now - statSync(marker).mtimeMs < AUTO_SYNC_DEBOUNCE_MS) return;
|
|
@@ -557,7 +562,7 @@ function hookErrorsContext(home, writtenBytes, seenBytes) {
|
|
|
557
562
|
}
|
|
558
563
|
async function handleWorkLaunch(sessionId, home, env, spawnImpl = spawnDetached, cwd = process.cwd()) {
|
|
559
564
|
if (!sessionId || env.OUTERLAYER_WORK === void 0) return void 0;
|
|
560
|
-
const { parseWorkItemEnv, appendLaunchRecord } = await import('./work-launch-
|
|
565
|
+
const { parseWorkItemEnv, appendLaunchRecord, linkSessionArgs } = await import('./work-launch-LWDQXLGI.js');
|
|
561
566
|
const parsed = parseWorkItemEnv(env.OUTERLAYER_WORK);
|
|
562
567
|
if ("reason" in parsed) {
|
|
563
568
|
logHookError(home, new Error(`OUTERLAYER_WORK ignored: ${parsed.reason}`));
|
|
@@ -566,21 +571,18 @@ async function handleWorkLaunch(sessionId, home, env, spawnImpl = spawnDetached,
|
|
|
566
571
|
appendLaunchRecord({ sessionId, item: parsed.number, ...env.OUTERLAYER_JOB_DIR === void 0 ? {} : { job: env.OUTERLAYER_JOB_DIR } }, home);
|
|
567
572
|
const args = [
|
|
568
573
|
process.argv[1],
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
"--retry",
|
|
582
|
-
String(WORK_LINK_RETRIES),
|
|
583
|
-
LOG_FAILURES_FLAG
|
|
574
|
+
...linkSessionArgs(parsed.number, sessionId, [
|
|
575
|
+
// The ordinary failure is a gateway that is briefly unreachable — a
|
|
576
|
+
// laptop that has not joined the network yet, a restart. Nothing else
|
|
577
|
+
// ever retries this link: the launch record is already written, so
|
|
578
|
+
// the session uploads whether or not Work ever hears about the
|
|
579
|
+
// link. Retrying costs nothing here (this process is detached; the
|
|
580
|
+
// hook has already returned) and cannot double-link, because the
|
|
581
|
+
// link is keyed by the session id passed above.
|
|
582
|
+
"--retry",
|
|
583
|
+
String(WORK_LINK_RETRIES),
|
|
584
|
+
LOG_FAILURES_FLAG
|
|
585
|
+
])
|
|
584
586
|
];
|
|
585
587
|
if (env.OUTERLAYER_JOB_DIR !== void 0) args.push("--no-lease");
|
|
586
588
|
spawnImpl(
|
|
@@ -593,16 +595,14 @@ async function handleWorkLaunch(sessionId, home, env, spawnImpl = spawnDetached,
|
|
|
593
595
|
);
|
|
594
596
|
return void 0;
|
|
595
597
|
}
|
|
596
|
-
async function missingRenewalHookContext(home, cwd) {
|
|
598
|
+
async function missingRenewalHookContext(home, cwd, codec) {
|
|
597
599
|
try {
|
|
598
|
-
const
|
|
599
|
-
|
|
600
|
-
const
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
if (registered) return void 0;
|
|
605
|
-
return `This install has no PostToolUse 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.`;
|
|
600
|
+
const event = codec.events.find((name) => kindOf(codec, name) === "tool-used");
|
|
601
|
+
if (event === void 0) return void 0;
|
|
602
|
+
const { hookRegistered } = await import('./hook-install-GDNRMML4.js');
|
|
603
|
+
const registered = hookRegistered(event, { home, cwd });
|
|
604
|
+
if (registered !== false) return void 0;
|
|
605
|
+
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.`;
|
|
606
606
|
} catch {
|
|
607
607
|
return void 0;
|
|
608
608
|
}
|
|
@@ -614,39 +614,31 @@ function markWorkLeaseRenewed(sessionId, home = homeFromEnv(), now = Date.now())
|
|
|
614
614
|
} catch {
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
async function maybeRenewWorkLease(event, sessionId, home = homeFromEnv(), env = process.env, spawnImpl = spawnDetached, now = Date.now(), cwd = process.cwd()) {
|
|
617
|
+
async function maybeRenewWorkLease(event, sessionId, home = homeFromEnv(), env = process.env, spawnImpl = spawnDetached, now = Date.now(), cwd = process.cwd(), codec = defaultCodec()) {
|
|
618
618
|
try {
|
|
619
|
-
if (event !== "
|
|
619
|
+
if (kindOf(codec, event) !== "tool-used") return;
|
|
620
620
|
if (!sessionId || env.OUTERLAYER_WORK === void 0 || env.OUTERLAYER_JOB_DIR !== void 0) return;
|
|
621
621
|
const marker = join(spoolDir(home), `work-lease-renew-${sessionId}`);
|
|
622
622
|
try {
|
|
623
623
|
if (now - statSync(marker).mtimeMs < WORK_LEASE_RENEW_DEBOUNCE_MS) return;
|
|
624
624
|
} catch {
|
|
625
625
|
}
|
|
626
|
-
const { parseWorkItemEnv } = await import('./work-launch-
|
|
626
|
+
const { parseWorkItemEnv, linkSessionArgs } = await import('./work-launch-LWDQXLGI.js');
|
|
627
627
|
const parsed = parseWorkItemEnv(env.OUTERLAYER_WORK);
|
|
628
628
|
if ("reason" in parsed) return;
|
|
629
629
|
writeFileSync(marker, String(now));
|
|
630
|
-
spawnImpl(
|
|
631
|
-
process.execPath,
|
|
632
|
-
[process.argv[1], "work", "link-session", String(parsed.number), "--session-id", sessionId, LOG_FAILURES_FLAG],
|
|
633
|
-
cwd
|
|
634
|
-
);
|
|
630
|
+
spawnImpl(process.execPath, [process.argv[1], ...linkSessionArgs(parsed.number, sessionId, [LOG_FAILURES_FLAG])], cwd);
|
|
635
631
|
} catch {
|
|
636
632
|
}
|
|
637
633
|
}
|
|
638
|
-
async function
|
|
634
|
+
async function releaseWorkLeaseOnEnd(event, sessionId, _home = homeFromEnv(), env = process.env, spawnImpl = spawnDetached, cwd = process.cwd(), codec = defaultCodec()) {
|
|
639
635
|
try {
|
|
640
|
-
if (event !== "
|
|
636
|
+
if (kindOf(codec, event) !== "session-ended") return;
|
|
641
637
|
if (!sessionId || env.OUTERLAYER_WORK === void 0) return;
|
|
642
|
-
const { parseWorkItemEnv } = await import('./work-launch-
|
|
638
|
+
const { parseWorkItemEnv, linkSessionArgs } = await import('./work-launch-LWDQXLGI.js');
|
|
643
639
|
const parsed = parseWorkItemEnv(env.OUTERLAYER_WORK);
|
|
644
640
|
if ("reason" in parsed) return;
|
|
645
|
-
spawnImpl(
|
|
646
|
-
process.execPath,
|
|
647
|
-
[process.argv[1], "work", "link-session", String(parsed.number), "--session-id", sessionId, "--ended", LOG_FAILURES_FLAG],
|
|
648
|
-
cwd
|
|
649
|
-
);
|
|
641
|
+
spawnImpl(process.execPath, [process.argv[1], ...linkSessionArgs(parsed.number, sessionId, ["--ended", LOG_FAILURES_FLAG])], cwd);
|
|
650
642
|
} catch {
|
|
651
643
|
}
|
|
652
644
|
}
|
|
@@ -668,24 +660,23 @@ function installedCliStalenessContext(home, cwd) {
|
|
|
668
660
|
return `The installed OuterLayer CLI (~/.outerlayer/cli) is behind the workspace build: installed ${installedLabel}, workspace ${workspaceLabel}.
|
|
669
661
|
${howToRefresh}`;
|
|
670
662
|
}
|
|
671
|
-
function
|
|
663
|
+
function writeStartContext(codec, kind, home, cwd, write, systemMessage, extraParts = []) {
|
|
672
664
|
try {
|
|
673
|
-
if (
|
|
665
|
+
if (kind !== "session-start") return;
|
|
674
666
|
const parts = [syncHealthContext(home), installedCliStalenessContext(home, cwd), ...extraParts].filter(
|
|
675
667
|
(s) => s !== null
|
|
676
668
|
);
|
|
677
669
|
if (parts.length === 0 && systemMessage === void 0) return;
|
|
678
|
-
write(
|
|
679
|
-
JSON.stringify({
|
|
680
|
-
...systemMessage === void 0 ? {} : { systemMessage },
|
|
681
|
-
hookSpecificOutput: { hookEventName: "SessionStart", additionalContext: parts.join("\n\n") }
|
|
682
|
-
})
|
|
683
|
-
);
|
|
670
|
+
write(codec.reply({ kind: "session-start", context: parts.join("\n\n"), ...systemMessage === void 0 ? {} : { notice: systemMessage } }));
|
|
684
671
|
} catch {
|
|
685
672
|
}
|
|
686
673
|
}
|
|
687
674
|
var MACHINE_CORE = "~/.agents/skills/outerlayer-build/SKILL.md";
|
|
688
|
-
var BUILD_SKILL_FILES = [
|
|
675
|
+
var BUILD_SKILL_FILES = [
|
|
676
|
+
".agents/skills/build/SKILL.md",
|
|
677
|
+
".outerlayer/skills/build/SKILL.md",
|
|
678
|
+
...Object.values(NATIVE_AGENTS).flatMap((agent) => agent.context.repoSkillFolders.map((folder) => `${folder}/build/SKILL.md`))
|
|
679
|
+
];
|
|
689
680
|
function machineSkillsContext(home, cwd) {
|
|
690
681
|
for (let dir = cwd; ; dir = join(dir, "..")) {
|
|
691
682
|
for (const file of BUILD_SKILL_FILES) {
|
|
@@ -808,17 +799,17 @@ async function missingControlPlane(cwd, sessionId, home, env) {
|
|
|
808
799
|
const dirs = findGitDirs(cwd);
|
|
809
800
|
if (dirs === void 0) return void 0;
|
|
810
801
|
if (existsSync(join(dirs.gitCommonDir, "outerlayer", "materialized.json")) || hasExcludeBlock(dirs.gitCommonDir)) {
|
|
811
|
-
const { cleanupEarlierCopies } = await import('./context-cleanup-
|
|
802
|
+
const { cleanupEarlierCopies } = await import('./context-cleanup-3K2AOECJ.js');
|
|
812
803
|
cleanupEarlierCopies(dirs);
|
|
813
804
|
}
|
|
814
805
|
if (!contextPossiblyGoverned(cwd, home)) return void 0;
|
|
815
|
-
const { governanceOf } = await import('./control-plane-launch-
|
|
806
|
+
const { governanceOf } = await import('./control-plane-launch-AAH4YH56.js');
|
|
816
807
|
if (await governanceOf({ cwd, env, home }) !== "governed") return void 0;
|
|
817
808
|
recordMissingContext(dirs, sessionId, home);
|
|
818
|
-
const launcher = `${cliInvocation()}
|
|
809
|
+
const launcher = `${cliInvocation()} ${LEGACY.legacy.subcommand}`;
|
|
819
810
|
return {
|
|
820
|
-
person: `This repository's shared instructions and skills are missing from this session, because it did not start through \`${launcher}\`. Start
|
|
821
|
-
agent: `This repository is governed by a control plane, and this session did not start through \`${launcher}\`, so the control plane's shared instructions and skills are not loaded. Tell the person to start
|
|
811
|
+
person: `This repository's shared instructions and skills are missing from this session, because it did not start through \`${launcher}\`. Start ${LEGACY.label} with \`${launcher}\`, or run \`${cliInvocation()} init\` once to make plain \`${LEGACY.program}\` do the same.`,
|
|
812
|
+
agent: `This repository is governed by a control plane, and this session did not start through \`${launcher}\`, so the control plane's shared instructions and skills are not loaded. Tell the person to start ${LEGACY.label} with \`${launcher}\`.`
|
|
822
813
|
};
|
|
823
814
|
}
|
|
824
815
|
function recordMissingContext(dirs, sessionId, home) {
|
|
@@ -848,18 +839,13 @@ function hasExcludeBlock(gitCommonDir) {
|
|
|
848
839
|
return false;
|
|
849
840
|
}
|
|
850
841
|
}
|
|
851
|
-
async function runHookFast(event, home = homeFromEnv(), read = readStdin, env = process.env, spawnImpl = spawnDetached, write = (out) => void process.stdout.write(out)) {
|
|
842
|
+
async function runHookFast(event, home = homeFromEnv(), read = readStdin, env = process.env, spawnImpl = spawnDetached, write = (out) => void process.stdout.write(out), codec = defaultCodec()) {
|
|
852
843
|
try {
|
|
853
844
|
const stdin = read();
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
payload = {};
|
|
859
|
-
}
|
|
860
|
-
const resolvedEvent = String(event ?? payload.hook_event_name ?? "unknown");
|
|
861
|
-
deliverInbox(resolvedEvent, payload, home, env, spawnImpl, write);
|
|
862
|
-
if (resolvedEvent === "PostToolUse" && (env.OUTERLAYER_WORK === void 0 || env.OUTERLAYER_JOB_DIR !== void 0)) {
|
|
845
|
+
const decoded = codec.decode(event, stdin);
|
|
846
|
+
const resolvedEvent = decoded.nativeName;
|
|
847
|
+
deliverInbox(decoded, home, env, spawnImpl, write, codec);
|
|
848
|
+
if (decoded.kind === "tool-used" && (env.OUTERLAYER_WORK === void 0 || env.OUTERLAYER_JOB_DIR !== void 0)) {
|
|
863
849
|
return;
|
|
864
850
|
}
|
|
865
851
|
const dir = spoolDir(home);
|
|
@@ -868,17 +854,17 @@ async function runHookFast(event, home = homeFromEnv(), read = readStdin, env =
|
|
|
868
854
|
const record = {
|
|
869
855
|
t: (/* @__PURE__ */ new Date()).toISOString(),
|
|
870
856
|
event: resolvedEvent,
|
|
871
|
-
sessionId:
|
|
872
|
-
transcriptPath:
|
|
873
|
-
cwd:
|
|
857
|
+
sessionId: decoded.spool.sessionId,
|
|
858
|
+
transcriptPath: decoded.spool.transcriptPath,
|
|
859
|
+
cwd: decoded.spool.cwd
|
|
874
860
|
};
|
|
875
861
|
appendFileSync(join(dir, "events.jsonl"), JSON.stringify(record) + "\n");
|
|
876
862
|
markHookFired(resolvedEvent, home);
|
|
877
|
-
const sessionCwd = typeof
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
await maybeRenewWorkLease(resolvedEvent, hookSessionId, home, env, spawnImpl, Date.now(), sessionCwd);
|
|
881
|
-
await
|
|
863
|
+
const sessionCwd = typeof decoded.spool.cwd === "string" ? decoded.spool.cwd : process.cwd();
|
|
864
|
+
const hookSessionId = typeof decoded.spool.sessionId === "string" ? decoded.spool.sessionId : void 0;
|
|
865
|
+
maybeAutoSync(resolvedEvent, home, spawnImpl, Date.now(), sessionCwd, codec);
|
|
866
|
+
await maybeRenewWorkLease(resolvedEvent, hookSessionId, home, env, spawnImpl, Date.now(), sessionCwd, codec);
|
|
867
|
+
await releaseWorkLeaseOnEnd(resolvedEvent, hookSessionId, home, env, spawnImpl, sessionCwd, codec);
|
|
882
868
|
let missingPlane;
|
|
883
869
|
let deadHooksMessage;
|
|
884
870
|
let workLaunchMessage;
|
|
@@ -887,19 +873,19 @@ async function runHookFast(event, home = homeFromEnv(), read = readStdin, env =
|
|
|
887
873
|
let machineSkillsMessage;
|
|
888
874
|
let updateNoticeMessage;
|
|
889
875
|
let staleCopiesMessage;
|
|
890
|
-
if (
|
|
876
|
+
if (decoded.kind === "session-start") {
|
|
891
877
|
const hookErrorsBytes = fileSizeBytes(join(dir, "hook-errors.log"));
|
|
892
878
|
const hookErrorsSeen = hookErrorsSeenBytes(home);
|
|
893
879
|
recordHookErrorsSeen(home, hookErrorsBytes);
|
|
894
880
|
if (env[CONTROL_PLANE_DIR_VARIABLE] !== void 0) {
|
|
895
881
|
try {
|
|
896
|
-
recordDeliveredContext(sessionCwd,
|
|
882
|
+
recordDeliveredContext(sessionCwd, hookSessionId ?? "unknown", home);
|
|
897
883
|
} catch (err) {
|
|
898
884
|
logHookError(home, err);
|
|
899
885
|
}
|
|
900
886
|
} else {
|
|
901
887
|
try {
|
|
902
|
-
missingPlane = await missingControlPlane(sessionCwd,
|
|
888
|
+
missingPlane = await missingControlPlane(sessionCwd, hookSessionId ?? "unknown", home, env);
|
|
903
889
|
} catch (err) {
|
|
904
890
|
logHookError(home, err);
|
|
905
891
|
}
|
|
@@ -927,8 +913,7 @@ async function runHookFast(event, home = homeFromEnv(), read = readStdin, env =
|
|
|
927
913
|
logHookError(home, err);
|
|
928
914
|
}
|
|
929
915
|
try {
|
|
930
|
-
|
|
931
|
-
workLaunchMessage = await handleWorkLaunch(sessionId, home, env, spawnImpl, sessionCwd);
|
|
916
|
+
workLaunchMessage = await handleWorkLaunch(hookSessionId, home, env, spawnImpl, sessionCwd);
|
|
932
917
|
} catch (err) {
|
|
933
918
|
logHookError(home, err);
|
|
934
919
|
}
|
|
@@ -936,14 +921,15 @@ async function runHookFast(event, home = homeFromEnv(), read = readStdin, env =
|
|
|
936
921
|
hookErrorsMessage = hookErrorsContext(home, hookErrorsBytes, hookErrorsSeen) ?? void 0;
|
|
937
922
|
}
|
|
938
923
|
if (env.OUTERLAYER_WORK !== void 0 && env.OUTERLAYER_JOB_DIR === void 0 && workLaunchMessage === void 0) {
|
|
939
|
-
renewalHookMessage = await missingRenewalHookContext(home, sessionCwd);
|
|
924
|
+
renewalHookMessage = await missingRenewalHookContext(home, sessionCwd, codec);
|
|
940
925
|
}
|
|
941
926
|
}
|
|
942
|
-
|
|
943
|
-
|
|
927
|
+
writeStartContext(
|
|
928
|
+
codec,
|
|
929
|
+
decoded.kind,
|
|
944
930
|
home,
|
|
945
931
|
sessionCwd,
|
|
946
|
-
|
|
932
|
+
write,
|
|
947
933
|
missingPlane?.person,
|
|
948
934
|
[missingPlane?.agent, machineSkillsMessage, staleCopiesMessage, updateNoticeMessage, deadHooksMessage, workLaunchMessage, hookErrorsMessage, renewalHookMessage].filter(
|
|
949
935
|
(s) => s !== void 0
|
|
@@ -979,4 +965,4 @@ function recordLinkExitFailure(argv, home = homeFromEnv(), target = process) {
|
|
|
979
965
|
});
|
|
980
966
|
}
|
|
981
967
|
|
|
982
|
-
export { AUTO_SYNC_DEBOUNCE_MS, DUPLICATE_RUN_WINDOW_MS, SYNC_STALE_AFTER_MS, WORK_LEASE_RENEW_DEBOUNCE_MS, WORK_LINK_RETRIES, assessSyncHealth, checkInstalledCliStaleness, contextPossiblyGoverned, formatAgo, handleWorkLaunch,
|
|
968
|
+
export { AUTO_SYNC_DEBOUNCE_MS, DUPLICATE_RUN_WINDOW_MS, SYNC_STALE_AFTER_MS, WORK_LEASE_RENEW_DEBOUNCE_MS, WORK_LINK_RETRIES, assessSyncHealth, checkInstalledCliStaleness, contextPossiblyGoverned, formatAgo, handleWorkLaunch, hookFiredMarkerPath, installedCliDistDir, isDuplicateRun, logHookError, machineSkillsContext, markWorkLeaseRenewed, maybeAutoSync, maybeRenewWorkLease, readSyncStatus, recordLinkExitFailure, refreshCommand, releaseWorkLeaseOnEnd, runHookFast, sanitizeForContext, spoolDir, workspaceRootOf, writeSyncStatus };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readContextManifest, removeContextManifest } from './chunk-YQR6E6OV.js';
|
|
4
4
|
import { removePreCommitGuardHook } from './chunk-CJPTUU2E.js';
|
|
5
|
-
import { CONTEXT_PIN_FILENAME } from './chunk-
|
|
5
|
+
import { CONTEXT_PIN_FILENAME, agentRootFolders } from './chunk-I6U6QPN6.js';
|
|
6
6
|
import { execFileSync } from 'child_process';
|
|
7
7
|
import { lstatSync, existsSync, unlinkSync, readdirSync, rmdirSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
8
8
|
import { join, dirname, isAbsolute } from 'path';
|
|
@@ -64,9 +64,12 @@ function contextExcludesPresent(gitCommonDir) {
|
|
|
64
64
|
function hasEarlierCopies(gitCommonDir) {
|
|
65
65
|
return readContextManifest(gitCommonDir) !== void 0 || contextExcludesPresent(gitCommonDir);
|
|
66
66
|
}
|
|
67
|
+
function copiedRoots() {
|
|
68
|
+
return ["AGENTS.md", ...agentRootFolders(), ".outerlayer"];
|
|
69
|
+
}
|
|
67
70
|
function isCopiedPath(rel) {
|
|
68
71
|
if (isAbsolute(rel) || rel.split("/").includes("..")) return false;
|
|
69
|
-
return
|
|
72
|
+
return copiedRoots().some((root) => root === "AGENTS.md" ? rel === root : rel.startsWith(`${root}/`));
|
|
70
73
|
}
|
|
71
74
|
function hasSymlinkComponent(root, rel) {
|
|
72
75
|
let current = root;
|
|
@@ -85,7 +88,7 @@ function linkedAgentsPath(root) {
|
|
|
85
88
|
}
|
|
86
89
|
function trackedPaths(repoRoot) {
|
|
87
90
|
try {
|
|
88
|
-
const out = execFileSync("git", ["ls-files", "-z", "--",
|
|
91
|
+
const out = execFileSync("git", ["ls-files", "-z", "--", ...copiedRoots()], {
|
|
89
92
|
cwd: repoRoot,
|
|
90
93
|
encoding: "utf8",
|
|
91
94
|
stdio: ["ignore", "pipe", "ignore"],
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
+
import { NATIVE_AGENTS, LEGACY_AGENT } from './chunk-LSLK4RS4.js';
|
|
3
4
|
import { existsSync, readFileSync, writeFileSync } from 'fs';
|
|
4
5
|
import { join, basename } from 'path';
|
|
5
6
|
|
|
6
7
|
createRequire(import.meta.url);
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var AGENT = NATIVE_AGENTS[LEGACY_AGENT];
|
|
9
|
+
var BEGIN = `# BEGIN outerlayer ${AGENT.legacy.subcommand}`;
|
|
10
|
+
var END = `# END outerlayer ${AGENT.legacy.subcommand}`;
|
|
11
|
+
var SHELL_FUNCTION_LINE = `${AGENT.program}() { outerlayer ${AGENT.legacy.subcommand} "$@"; }`;
|
|
10
12
|
var STARTUP_FILES = { zsh: ".zshrc", bash: ".bashrc" };
|
|
11
13
|
function startupFileFor(home, shellPath) {
|
|
12
14
|
const name = STARTUP_FILES[basename(shellPath ?? "")];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-
|
|
4
|
-
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-
|
|
3
|
+
import { launcherPath, pathNotes, writeLauncher, LauncherWriteError } from './chunk-B2P72DAE.js';
|
|
4
|
+
import { currentVersion, currentLink, versionDir, execStartLine, isInLayout, packageRootIn, switchCurrent } from './chunk-DG3M5DZU.js';
|
|
5
5
|
import { compareVersions } from './chunk-TQMI335S.js';
|
|
6
|
-
import { runnerDir, RUNNER_DIR_MODE } from './chunk-
|
|
6
|
+
import { runnerDir, RUNNER_DIR_MODE } from './chunk-DTCTXDJP.js';
|
|
7
7
|
import { lchownSync, lstatSync, realpathSync, readFileSync, mkdirSync, rmSync, cpSync, existsSync, readdirSync } from 'fs';
|
|
8
8
|
import { dirname, sep, join } from 'path';
|
|
9
9
|
import { spawnSync } from 'child_process';
|