@outerlayer/cli 0.36.0-next.20261102124202 → 0.36.0-next.20261102195652
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-5UWZZMZM.js +39 -0
- package/dist/agent-subcommand-4TEUJJNL.js +25 -0
- package/dist/{bridge-DFG2GTXQ.js → bridge-4KPODDN7.js} +6 -4
- package/dist/{build-THAD3B4Q.js → build-3CEFKWGY.js} +13 -11
- package/dist/{build-disk-HO2VPIBJ.js → build-disk-DLW3WKC5.js} +11 -9
- package/dist/build-info.json +1 -1
- package/dist/{builder-AXJNIF4S.js → builder-ALMQ5AWP.js} +10 -8
- package/dist/caller-XNBGW4SP.js +22 -0
- package/dist/{check-SF2OVZXB.js → check-AEDFTYH6.js} +61 -59
- package/dist/{chunk-772ILTCK.js → chunk-2XN34EKQ.js} +3 -3
- package/dist/{chunk-KN4VIK53.js → chunk-2YC3TXWX.js} +1 -1
- package/dist/{chunk-6JJITHBI.js → chunk-42DBDDHP.js} +1 -1
- package/dist/chunk-4DLJ343I.js +38 -0
- package/dist/{chunk-5WYT3PPE.js → chunk-4OD45RBP.js} +4 -1
- package/dist/{chunk-PTPF36Q7.js → chunk-4UUKUOS7.js} +3 -3
- package/dist/{chunk-RK4JQRVT.js → chunk-5XX75FJ6.js} +9 -9
- package/dist/{chunk-TWYHSMHM.js → chunk-6JLYU322.js} +3 -2
- package/dist/{chunk-5GHJFETA.js → chunk-6KH3NMIT.js} +3010 -1196
- package/dist/{chunk-GSXGA6KF.js → chunk-6QSIK5VA.js} +1 -1
- package/dist/{chunk-5FIOUQGC.js → chunk-6Z7R24XA.js} +8 -8
- package/dist/{chunk-LVXR37OG.js → chunk-73E33ZA2.js} +9 -8
- package/dist/{chunk-4TNUQLXH.js → chunk-7UGMB5VS.js} +12 -11
- package/dist/{chunk-J7TCTARR.js → chunk-7XTLS5PG.js} +5 -5
- package/dist/{chunk-K3X3L5YW.js → chunk-A24PDRNU.js} +6 -6
- package/dist/{chunk-GDZTL6BI.js → chunk-A2U7T4ZH.js} +123 -277
- package/dist/{chunk-GZ75FRLB.js → chunk-B36NSEUM.js} +1 -1
- package/dist/{chunk-XHFSBSIA.js → chunk-B5SWBFVE.js} +3 -2
- package/dist/{chunk-NTMRMBLM.js → chunk-BACWWK3E.js} +22 -7
- package/dist/{chunk-RSRZDF3K.js → chunk-BN5U4RJU.js} +11 -9
- package/dist/{chunk-NC3QAHOS.js → chunk-BSPJI5T7.js} +4 -2
- package/dist/{chunk-A5Y2HBVU.js → chunk-BZSJ77MO.js} +1 -1
- package/dist/{chunk-L3JXQDVH.js → chunk-CA4OE2QT.js} +4 -4
- package/dist/{chunk-ESSJPSJ2.js → chunk-CI5LFLKH.js} +2 -2
- package/dist/{chunk-M2NIHHQI.js → chunk-CXJC3JLN.js} +3 -2
- package/dist/{chunk-WDQPBAFV.js → chunk-D6EXW4EB.js} +2 -1
- package/dist/{chunk-PQDFW422.js → chunk-D74RGORK.js} +1 -1
- package/dist/{chunk-NWBB2SQ4.js → chunk-DL2RYNXQ.js} +66 -25
- package/dist/{chunk-J7Y3PCO2.js → chunk-DTQPDMHG.js} +2 -1
- package/dist/{chunk-6LO62EQ5.js → chunk-F36EKGMP.js} +712 -249
- package/dist/{chunk-HIN4BMRW.js → chunk-FIUUESD4.js} +5 -5
- package/dist/{chunk-XLOM2BNL.js → chunk-FOSYM7TQ.js} +1 -1
- package/dist/{chunk-LCOQN6NR.js → chunk-FWKQHKCR.js} +4 -4
- package/dist/{chunk-IP7BIBXJ.js → chunk-FWSVWPMS.js} +16 -7
- package/dist/{chunk-GD6KIHOS.js → chunk-G35Y4LN5.js} +5 -2
- package/dist/{chunk-LSXHTBAM.js → chunk-GBGJGYEE.js} +7 -7
- package/dist/{chunk-Q42K6XZ6.js → chunk-H23JP73I.js} +1 -1
- package/dist/{chunk-WLMAGMTU.js → chunk-H2NJG3TE.js} +4 -3
- package/dist/{chunk-4CTVN3C5.js → chunk-HRBSEXYC.js} +5 -5
- package/dist/{chunk-T5Z22NA6.js → chunk-HRHWA6TZ.js} +1 -1
- package/dist/chunk-HTRDL42C.js +45 -0
- package/dist/{chunk-WNYH42PF.js → chunk-HZVS4MGL.js} +7 -7
- package/dist/{chunk-YBAVN6WS.js → chunk-I4DM7SNX.js} +7 -7
- package/dist/{chunk-CKPQOQFC.js → chunk-I6U6QPN6.js} +769 -101
- package/dist/{chunk-QJDX6VJS.js → chunk-IX6CFXSW.js} +10 -9
- package/dist/{chunk-FIO6PIZ6.js → chunk-J2OMKFYB.js} +3 -3
- package/dist/{chunk-C3JWWPLC.js → chunk-J6HWRVN2.js} +10 -8
- package/dist/{chunk-PT34C6SU.js → chunk-J6VC3JCG.js} +1 -1
- package/dist/{chunk-I6FRCBMU.js → chunk-JBPVEXHQ.js} +8 -8
- package/dist/{chunk-EBIYRRJW.js → chunk-JVHWWJ2J.js} +80 -94
- package/dist/{chunk-LYFLUNWK.js → chunk-KN3TDNF7.js} +7 -7
- package/dist/{chunk-RPZIHELI.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-I626B72C.js → chunk-LSZUTI6O.js} +1 -1
- package/dist/{chunk-JVCQZDQ6.js → chunk-LZS5EYZ6.js} +1 -1
- package/dist/{chunk-OYKAOHX5.js → chunk-M4HH2F64.js} +6 -6
- package/dist/{chunk-CVGQ3BNF.js → chunk-ML5YKV3B.js} +1 -1
- package/dist/{chunk-H2FFONRY.js → chunk-MVPOYQQY.js} +1 -1
- package/dist/{chunk-JXXHLQQR.js → chunk-NMBXA3AT.js} +3 -3
- package/dist/{chunk-VRQM4A64.js → chunk-PBGNX3PS.js} +1 -1
- package/dist/{chunk-CJJDJ7AT.js → chunk-PIZA7OG2.js} +5 -3
- package/dist/{chunk-L2BA2HXM.js → chunk-PN4LWT5F.js} +1 -1
- package/dist/{chunk-TYCZVJTB.js → chunk-PSQEGJPN.js} +5 -5
- package/dist/{chunk-EUDG754F.js → chunk-SBZ545DH.js} +2 -2
- package/dist/{chunk-5FND4PIU.js → chunk-T2KBHW6P.js} +3 -3
- package/dist/chunk-T5QBWM6M.js +113 -0
- package/dist/{chunk-XABJMU5A.js → chunk-UCMIS74X.js} +2 -2
- package/dist/{chunk-564Q2STF.js → chunk-VKKKVYA4.js} +1 -1
- package/dist/{chunk-AAGU5FJF.js → chunk-WGC7UFRM.js} +1 -1
- package/dist/{chunk-XAOIHYPS.js → chunk-WVAXJOWG.js} +5 -4
- package/dist/{chunk-AYLYAOHH.js → chunk-XIDDJSQU.js} +3 -2
- package/dist/{chunk-OZOATEK3.js → chunk-Y2P3HWUG.js} +6 -6
- package/dist/{chunk-PKO5IDW4.js → chunk-Y5S2G2EZ.js} +7 -7
- package/dist/{chunk-WQB3XOEP.js → chunk-Z3MB7SV7.js} +6 -6
- package/dist/{chunk-XE3DIJJT.js → chunk-Z66CKWOM.js} +1 -1
- package/dist/chunk-ZHQC43NH.js +130 -0
- package/dist/{chunk-3FSKTGM6.js → chunk-ZSRMJOAK.js} +3 -3
- package/dist/{claude-launcher-LXZPTDNC.js → claude-launcher-NJGZUB3P.js} +82 -108
- package/dist/{cli-QFUT3UQS.js → cli-POIDBCZA.js} +323 -293
- package/dist/{command-45RZT4CK.js → command-ZLBFX553.js} +55 -53
- package/dist/config-GKSSGMXD.js +21 -0
- package/dist/{connect-cmd-LUCQ7FSV.js → connect-cmd-6YKNFJJR.js} +12 -10
- package/dist/{container-start-T776VI3M.js → container-start-55QELXPJ.js} +53 -51
- package/dist/{context-cleanup-QE2MIO2Q.js → context-cleanup-3K2AOECJ.js} +4 -2
- package/dist/{context-show-cmd-7QEHUOEL.js → context-show-cmd-FGMRJ7IG.js} +13 -11
- package/dist/{control-plane-launch-THUH6YU5.js → control-plane-launch-DGPA3ONU.js} +25 -21
- package/dist/{demo-record-cmd-SBERRQNW.js → demo-record-cmd-2OKCGST7.js} +7 -5
- package/dist/{demo-voice-cmd-VM3FITZU.js → demo-voice-cmd-BPTSL7JA.js} +24 -22
- package/dist/{dist-6KGTCWKR.js → dist-VVZIGSAF.js} +1 -1
- package/dist/{docker-MQNLK4OO.js → docker-GFEEV42Z.js} +10 -8
- package/dist/{doctor-NQOSPJGS.js → doctor-ZOQSI3HL.js} +55 -53
- package/dist/emit-artifact-cmd-3LDJ4VRW.js +43 -0
- package/dist/{emit-cmd-ZPFCPVSR.js → emit-cmd-RO4L4PFZ.js} +7 -5
- package/dist/emit-criteria-cmd-V3ERJXHB.js +34 -0
- package/dist/{emit-demo-cmd-PMQGNNVX.js → emit-demo-cmd-5KL64L74.js} +24 -22
- package/dist/{emit-finding-cmd-MYWQN5WW.js → emit-finding-cmd-R4OEWQQR.js} +17 -15
- package/dist/{emit-result-cmd-GXK3KMAP.js → emit-result-cmd-5YNQDTYG.js} +22 -20
- package/dist/{emit-step-cmd-ZV2XTUVT.js → emit-step-cmd-Z5WC7UEQ.js} +17 -15
- package/dist/{exec-client-P7RFRUCK.js → exec-client-54XKNPTI.js} +7 -5
- package/dist/find-unit-OI56YEX5.js +23 -0
- package/dist/{findings-cmd-OGMBVVSM.js → findings-cmd-J5ZCY2AT.js} +17 -15
- package/dist/{fleet-readiness-4RBKLXBQ.js → fleet-readiness-DKCFOUYP.js} +13 -11
- package/dist/{governing-source-XJMXFSAR.js → governing-source-7PD4ISRN.js} +21 -19
- package/dist/{guest-init-XZHRPIMG.js → guest-init-5QZRGP62.js} +8 -6
- package/dist/{hook-fast-ZOWGWCPO.js → hook-fast-ICT2PRQX.js} +4 -2
- package/dist/{pending-YU2GE2UV.js → hook-install-GDNRMML4.js} +5 -5
- package/dist/{hook-wrap-fast-545QJSBJ.js → hook-wrap-fast-LWWKKPGK.js} +4 -2
- package/dist/host-checks-GADKYJFN.js +78 -0
- package/dist/host-key-FI6KWMJC.js +16 -0
- package/dist/{image-tag-E4JK2APF.js → image-tag-RX4WTHJH.js} +7 -5
- package/dist/index.js +8 -9
- package/dist/{init-LO6U7YTW.js → init-BZXVQO22.js} +51 -49
- package/dist/init-EKF4ILHF.js +78 -0
- package/dist/{init-cmd-2JANO5EN.js → init-cmd-3LWFEKHD.js} +35 -29
- package/dist/{init-update-D6PRTGNE.js → init-update-THEHC25C.js} +24 -22
- package/dist/{install-cmd-SJMBNQEH.js → install-cmd-WBVTTE5Z.js} +9 -7
- package/dist/{layout-AQHIMJMO.js → layout-7XMC7S6K.js} +4 -2
- package/dist/{logs-NE55HOET.js → logs-7YIXBO2K.js} +6 -4
- package/dist/loop-RUQQ4L5A.js +89 -0
- package/dist/machine-IGHZW3IO.js +78 -0
- package/dist/{machine-skills-KK2HXYMR.js → machine-skills-HR4RNRNR.js} +4 -2
- package/dist/{mcp-install-cmd-2QAS3AQZ.js → mcp-install-cmd-SMPLT43Q.js} +4 -2
- package/dist/{mcp-serve-cmd-U6USKHYR.js → mcp-serve-cmd-HLS24XCG.js} +8 -6
- package/dist/{paths-O7LCWY33.js → paths-2YTU4QIO.js} +6 -4
- package/dist/pending-S2SKIBCB.js +16 -0
- package/dist/{pidfile-5GDCQ5HA.js → pidfile-SPBTMTCJ.js} +7 -5
- package/dist/{record-NETSDAO6.js → record-3KXRFK5C.js} +7 -5
- package/dist/{relay-VZ733BVJ.js → relay-I2T43PPB.js} +4 -2
- package/dist/{relay-protocol-24GEUGCO.js → relay-protocol-GI2GC2AM.js} +4 -2
- package/dist/runner-env-HOWRS6I6.js +23 -0
- package/dist/{runner-identity-PSCZBILD.js → runner-identity-32MTGA2F.js} +10 -8
- package/dist/{runner-key-VM2LYVRK.js → runner-key-FXYWHMMO.js} +51 -49
- package/dist/{session-sender-P2RHDM6U.js → session-sender-B6INUY7G.js} +23 -21
- package/dist/{shell-function-NRD4KVUK.js → shell-function-GYD2ZQQG.js} +2 -1
- package/dist/{spec-cmd-LGKP6MT7.js → spec-cmd-ZEZFMC4A.js} +18 -16
- package/dist/{starter-pack-SMK6UPRL.js → starter-pack-IMKIUA56.js} +5 -3
- package/dist/state-DVKFUWB3.js +16 -0
- package/dist/{status-HEHCNIDS.js → status-VPFIIHOZ.js} +51 -49
- package/dist/{statusline-fast-E7RWVREA.js → statusline-fast-NUVHCNRX.js} +4 -2
- package/dist/{sync-cmd-HKN45HXL.js → sync-cmd-W756BQWX.js} +22 -20
- package/dist/update-steps-D6L6AG6E.js +79 -0
- package/dist/{watch-RGZCUCR3.js → watch-6EDRJZMG.js} +22 -20
- package/dist/{work-claim-cmd-6DSPGCZE.js → work-claim-cmd-7HR4AVCT.js} +22 -20
- package/dist/{work-cmd-GPLYLWY7.js → work-cmd-ZP4UIHBT.js} +15 -13
- package/dist/{work-comment-cmd-V5WM7LAW.js → work-comment-cmd-CYDOEMW3.js} +18 -16
- package/dist/{work-demo-cmd-SWWI6AGD.js → work-demo-cmd-3A7Z3VVS.js} +15 -13
- package/dist/{work-launch-TTGSHLY4.js → work-launch-LWDQXLGI.js} +1 -1
- package/dist/{work-logs-cmd-CTFBOPCI.js → work-logs-cmd-NDPSRSCM.js} +15 -13
- package/dist/{work-open-pr-cmd-HX2U3YBR.js → work-open-pr-cmd-Z5B3ERAU.js} +17 -15
- package/dist/{work-pr-cmd-EI2R4FQG.js → work-pr-cmd-ZVPGCDWD.js} +16 -14
- package/dist/{work-proofs-cmd-QXNPHLYC.js → work-proofs-cmd-VAXJ5UBF.js} +18 -16
- package/dist/{work-proofs-record-72OKWEES.js → work-proofs-record-K467JH24.js} +28 -26
- package/dist/{work-stop-cmd-7M7ZYUN2.js → work-stop-cmd-J45Q2QT7.js} +15 -13
- package/package.json +3 -3
- package/dist/agent-setup-AOB76EDJ.js +0 -37
- package/dist/caller-GOY2X6QT.js +0 -20
- package/dist/chunk-KYDEBGJG.js +0 -402
- package/dist/config-WYQPXLOP.js +0 -19
- package/dist/emit-artifact-cmd-6E365VBQ.js +0 -41
- package/dist/emit-criteria-cmd-HWQOYZZ4.js +0 -32
- package/dist/find-unit-63SXQ7IM.js +0 -21
- package/dist/host-checks-WHW24PJR.js +0 -76
- package/dist/host-key-MWLXB5U5.js +0 -14
- package/dist/init-EZIAHBMH.js +0 -76
- package/dist/loop-2E34CGCX.js +0 -87
- package/dist/machine-6ALGG4IO.js +0 -76
- package/dist/runner-env-KHCONH2R.js +0 -21
- package/dist/settings-XB2HYBKO.js +0 -7
- package/dist/state-RJR4PMMX.js +0 -14
- package/dist/update-steps-7E4RD47J.js +0 -77
|
@@ -1,11 +1,11 @@
|
|
|
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-FWSVWPMS.js';
|
|
4
|
+
import { autoConnect } from './chunk-T2KBHW6P.js';
|
|
5
|
+
import { resolveRepoIdentity } from './chunk-6KH3NMIT.js';
|
|
5
6
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
6
|
-
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-
|
|
7
|
-
import {
|
|
8
|
-
import { parseWorkItemEnv } from './chunk-5WYT3PPE.js';
|
|
7
|
+
import { defaultFetch, unauthorizedMessage, resolveGatewayCredentials } from './chunk-LZS5EYZ6.js';
|
|
8
|
+
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
9
9
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
10
10
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { sanitizeTerminal } from './chunk-P6PHY33P.js';
|
|
4
|
-
import { resolvePackRoot, parseProofsConfig } from './chunk-
|
|
4
|
+
import { resolvePackRoot, parseProofsConfig } from './chunk-I6U6QPN6.js';
|
|
5
5
|
import { CHECK_ITEM_REASON_MAX_LENGTH, CheckItemsSchema } from './chunk-WUKLQWGY.js';
|
|
6
6
|
import { createHash } from 'crypto';
|
|
7
7
|
import { join } from 'path';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { LiveUploader } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { parseWorkItemEnv } from './chunk-
|
|
3
|
+
import { LiveUploader } from './chunk-7UGMB5VS.js';
|
|
4
|
+
import { CaptureDaemon } from './chunk-6KH3NMIT.js';
|
|
5
|
+
import { spoolDir } from './chunk-JVHWWJ2J.js';
|
|
6
|
+
import { parseWorkItemEnv } from './chunk-4OD45RBP.js';
|
|
7
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
8
8
|
import { mkdirSync, writeFileSync, rmSync } from 'fs';
|
|
9
9
|
import { join } from 'path';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
+
import { defaultAgents } from './chunk-I6U6QPN6.js';
|
|
3
4
|
import { openSync, fstatSync, readSync, closeSync } from 'fs';
|
|
4
5
|
import { join } from 'path';
|
|
5
6
|
|
|
@@ -22,8 +23,20 @@ var readTail = (path, maxBytes) => {
|
|
|
22
23
|
return void 0;
|
|
23
24
|
}
|
|
24
25
|
};
|
|
26
|
+
function endedEventNames(env, agents) {
|
|
27
|
+
const names = /* @__PURE__ */ new Set();
|
|
28
|
+
for (const agent of agents) {
|
|
29
|
+
const lifecycle = agent.adapter.lifecycle;
|
|
30
|
+
if (lifecycle === void 0 || !lifecycle.detectInSession(env) || lifecycle.source.kind !== "hook-process") continue;
|
|
31
|
+
const { codec } = lifecycle.source;
|
|
32
|
+
for (const name of codec.events) if (codec.decode(name, "").kind === "session-ended") names.add(name);
|
|
33
|
+
}
|
|
34
|
+
return names;
|
|
35
|
+
}
|
|
25
36
|
function detectActiveSession(opts) {
|
|
26
|
-
|
|
37
|
+
const agents = opts.agents ?? defaultAgents();
|
|
38
|
+
if (!agents.some((agent) => agent.adapter.lifecycle?.detectInSession(opts.env) === true)) return void 0;
|
|
39
|
+
const endNames = endedEventNames(opts.env, agents);
|
|
27
40
|
const read = opts.readTailImpl ?? readTail;
|
|
28
41
|
const tail = read(join(opts.home, ".outerlayer", "spool", "events.jsonl"), SESSION_DETECT_TAIL_BYTES);
|
|
29
42
|
if (!tail || tail.data.length === 0) return void 0;
|
|
@@ -40,15 +53,11 @@ function detectActiveSession(opts) {
|
|
|
40
53
|
}
|
|
41
54
|
}
|
|
42
55
|
const ended = /* @__PURE__ */ new Set();
|
|
43
|
-
for (const record of records)
|
|
44
|
-
if (record.event === "SessionEnd" && typeof record.sessionId === "string" && record.sessionId !== "") {
|
|
45
|
-
ended.add(record.sessionId);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
56
|
+
for (const record of records) if (endNames.has(record.event)) ended.add(record.sessionId);
|
|
48
57
|
let newest;
|
|
49
58
|
for (const record of records) {
|
|
50
59
|
if (typeof record.sessionId !== "string" || record.sessionId === "") continue;
|
|
51
|
-
if (
|
|
60
|
+
if (ended.has(record.sessionId)) continue;
|
|
52
61
|
if (typeof record.cwd !== "string" || !opts.cwds.includes(record.cwd)) continue;
|
|
53
62
|
if (typeof record.t !== "string") continue;
|
|
54
63
|
const tMs = Date.parse(record.t);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { BUILD_HOME } from './chunk-
|
|
3
|
+
import { BUILD_HOME } from './chunk-CXJC3JLN.js';
|
|
4
4
|
import { readdirSync } from 'fs';
|
|
5
5
|
import { join, dirname } from 'path';
|
|
6
6
|
|
|
@@ -50,6 +50,9 @@ function storeScopes(configPath) {
|
|
|
50
50
|
function sessionsDir(configPath, organizationId) {
|
|
51
51
|
return join(orgStore(configPath, organizationId), "sessions");
|
|
52
52
|
}
|
|
53
|
+
function workspacesDir(configPath, organizationId) {
|
|
54
|
+
return join(orgStore(configPath, organizationId), "workspaces");
|
|
55
|
+
}
|
|
53
56
|
function imagesDir(configPath, organizationId) {
|
|
54
57
|
return join(orgStore(configPath, organizationId), "images");
|
|
55
58
|
}
|
|
@@ -124,4 +127,4 @@ function imageBuildLogsDir(configPath, owner, name, organizationId) {
|
|
|
124
127
|
return join(imagesDir(configPath, organizationId), owner, name, "builds");
|
|
125
128
|
}
|
|
126
129
|
|
|
127
|
-
export { RUNNER_DIR_MODE, RUNNER_FILE_MODE, SHIM_DIR, attemptStamp, buildDir, builderCacheDiskPath, builderConsolePath, buildsDir, contextHomeDir, deliveryDir, diskTemplatesDir, ghConfigDir, hostKeyPath, imageBuildLogsDir, imagesDir, jobConsolePath, jobDir, jobsDir, keptContextDir, mirrorDir, orgHomeDir, orgStore, orgStoreIn, pidFilePath, repoCacheDir, rootfsDir, rootfsPathFor, runnerDir, runnerDirOfBuild, sessionsDir, spoolDir, stagedContextDir, storeScopes, vmAssetsDir, vsockPath };
|
|
130
|
+
export { RUNNER_DIR_MODE, RUNNER_FILE_MODE, SHIM_DIR, attemptStamp, buildDir, builderCacheDiskPath, builderConsolePath, buildsDir, contextHomeDir, deliveryDir, diskTemplatesDir, ghConfigDir, hostKeyPath, imageBuildLogsDir, imagesDir, jobConsolePath, jobDir, jobsDir, keptContextDir, mirrorDir, orgHomeDir, orgStore, orgStoreIn, pidFilePath, repoCacheDir, rootfsDir, rootfsPathFor, runnerDir, runnerDirOfBuild, sessionsDir, spoolDir, stagedContextDir, storeScopes, vmAssetsDir, vsockPath, workspacesDir };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { launchRefusalForSession } from './chunk-
|
|
4
|
-
import { detectActiveSession } from './chunk-
|
|
5
|
-
import { autoConnect } from './chunk-
|
|
6
|
-
import { C } from './chunk-2AM6Z5BP.js';
|
|
3
|
+
import { launchRefusalForSession } from './chunk-WGC7UFRM.js';
|
|
4
|
+
import { detectActiveSession } from './chunk-FWSVWPMS.js';
|
|
5
|
+
import { autoConnect } from './chunk-T2KBHW6P.js';
|
|
7
6
|
import { acquireSpoolLockAt } from './chunk-P6PHY33P.js';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { resolveRepoIdentity } from './chunk-6KH3NMIT.js';
|
|
8
|
+
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
+
import { resolveGatewayCredentials, defaultFetch, unauthorizedMessage } from './chunk-LZS5EYZ6.js';
|
|
10
|
+
import { launchedItemForSession } from './chunk-4OD45RBP.js';
|
|
11
11
|
import { parseTrackerNumber, trackerNumberError } from './chunk-WZBHBH3J.js';
|
|
12
12
|
import { StepNameSchema, StepBodySchema } from './chunk-WUKLQWGY.js';
|
|
13
13
|
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 { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-
|
|
3
|
+
import { RUNNER_DIR_MODE, RUNNER_FILE_MODE } from './chunk-G35Y4LN5.js';
|
|
4
4
|
import { readFileSync, mkdirSync, writeFileSync, renameSync } from 'fs';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-
|
|
4
|
-
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-
|
|
5
|
-
import {
|
|
3
|
+
import { RELAY_PORT, DESTINATION_BASE_PORT } from './chunk-CXJC3JLN.js';
|
|
4
|
+
import { GATEWAY_SOCKET, GATEWAY_PORT, providerDestinations } from './chunk-DTQPDMHG.js';
|
|
5
|
+
import { defaultAgents } from './chunk-I6U6QPN6.js';
|
|
6
|
+
import { PROVIDERS } from './chunk-LSLK4RS4.js';
|
|
6
7
|
import { symlinkSync, unlinkSync } from 'fs';
|
|
7
8
|
import { join } from 'path';
|
|
8
9
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
|
-
import { DEFAULT_DASHBOARD } from './chunk-TPMLB3VZ.js';
|
|
4
3
|
import { sanitizeTerminal } from './chunk-P6PHY33P.js';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { remoteLookupFailed } from './chunk-6KH3NMIT.js';
|
|
5
|
+
import { mcpFiles, skillLinkFolders, isAgentsMdLayout } from './chunk-D6EXW4EB.js';
|
|
6
|
+
import { DEFAULT_DASHBOARD } from './chunk-TPMLB3VZ.js';
|
|
7
|
+
import { cliFetch, resolveGatewayCredentials } from './chunk-LZS5EYZ6.js';
|
|
7
8
|
import { readCloudConfig } from './chunk-HWVMRETT.js';
|
|
8
9
|
import { findGitDirs, writeRepoConnection, readRepoConnection } from './chunk-BJ3KTMDH.js';
|
|
9
|
-
import { remoteLookupFailed } from './chunk-5GHJFETA.js';
|
|
10
10
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
11
|
-
import { defaultAgents } from './chunk-
|
|
11
|
+
import { defaultAgents } from './chunk-I6U6QPN6.js';
|
|
12
12
|
import { execFileSync } from 'child_process';
|
|
13
13
|
import { lstatSync } from 'fs';
|
|
14
14
|
import { join, relative } from 'path';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from 'node:module';
|
|
3
|
+
import { readSettingsText, SettingsParseError, cliForInstall } from './chunk-ZHQC43NH.js';
|
|
4
|
+
import { legacyAgent, defaultAgents, HookTextError } from './chunk-I6U6QPN6.js';
|
|
5
|
+
|
|
6
|
+
createRequire(import.meta.url);
|
|
7
|
+
|
|
8
|
+
// src/hook-install.ts
|
|
9
|
+
function installAgents(agents = defaultAgents()) {
|
|
10
|
+
const found = agents.flatMap((entry) => {
|
|
11
|
+
const lifecycle = entry.adapter.lifecycle;
|
|
12
|
+
if (lifecycle?.install === void 0) return [];
|
|
13
|
+
return [{ entry, install: lifecycle.install, events: lifecycle.source.kind === "hook-process" ? lifecycle.source.codec.events : [] }];
|
|
14
|
+
});
|
|
15
|
+
const legacyId = legacyAgent(agents).descriptor.id;
|
|
16
|
+
return [...found.filter((agent) => agent.entry.descriptor.id === legacyId), ...found.filter((agent) => agent.entry.descriptor.id !== legacyId)];
|
|
17
|
+
}
|
|
18
|
+
function settingsFileOf(agent, scope, where) {
|
|
19
|
+
return agent.install.settingsFile(scope, where);
|
|
20
|
+
}
|
|
21
|
+
function withSettingsText(path, change) {
|
|
22
|
+
const text = readSettingsText(path);
|
|
23
|
+
try {
|
|
24
|
+
return change(text);
|
|
25
|
+
} catch (err) {
|
|
26
|
+
if (err instanceof HookTextError) throw new SettingsParseError(path, err.cause);
|
|
27
|
+
throw err;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function hookRegistered(event, where, agents = defaultAgents()) {
|
|
31
|
+
const agent = installAgents(agents).find((candidate) => candidate.entry.descriptor.id === legacyAgent(agents).descriptor.id);
|
|
32
|
+
if (agent === void 0) return void 0;
|
|
33
|
+
const cli = cliForInstall();
|
|
34
|
+
let found = false;
|
|
35
|
+
let registered = false;
|
|
36
|
+
for (const scope of ["user", "project"]) {
|
|
37
|
+
const text = readSettingsText(agent.install.settingsFile(scope, where));
|
|
38
|
+
if (text === void 0) continue;
|
|
39
|
+
found = true;
|
|
40
|
+
if (agent.install.installed(text, cli).events.includes(event)) registered = true;
|
|
41
|
+
}
|
|
42
|
+
return found ? registered : void 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { hookRegistered, installAgents, settingsFileOf, withSettingsText };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { readNewestDemo } from './chunk-ER6KQCVJ.js';
|
|
4
|
-
import { runEmitArtifact } from './chunk-
|
|
4
|
+
import { runEmitArtifact } from './chunk-BN5U4RJU.js';
|
|
5
5
|
import { VoiceDownloadError, downloadPinned, sha256OfFile } from './chunk-2PGI6RDE.js';
|
|
6
|
-
import { detectActiveSession } from './chunk-
|
|
7
|
-
import { autoConnect } from './chunk-
|
|
6
|
+
import { detectActiveSession } from './chunk-FWSVWPMS.js';
|
|
7
|
+
import { autoConnect } from './chunk-T2KBHW6P.js';
|
|
8
|
+
import { resolveRepoIdentity } from './chunk-6KH3NMIT.js';
|
|
8
9
|
import { C } from './chunk-2AM6Z5BP.js';
|
|
9
|
-
import { defaultFetch, resolveGatewayCredentials } from './chunk-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-J7Y3PCO2.js';
|
|
10
|
+
import { defaultFetch, resolveGatewayCredentials } from './chunk-LZS5EYZ6.js';
|
|
11
|
+
import { launchedItemForSession } from './chunk-4OD45RBP.js';
|
|
12
|
+
import { VOICE_PACK_FILES, VOICE_PACK_VERSION } from './chunk-DTQPDMHG.js';
|
|
13
13
|
import { ARTIFACT_MAX_BYTES, ARTIFACT_MAX_CAPTION_LENGTH, DEMO_RECORD_MEDIA_TYPE, ARTIFACT_MAX_REPLACES_TARGETS, DEMO_MANIFEST_LATEST_VERSION, DemoManifestSchema, ARTIFACT_KINDS } from './chunk-WUKLQWGY.js';
|
|
14
14
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
15
15
|
import { __commonJS, __require, __toESM } from './chunk-Z5GEFMRW.js';
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { createRequire } from 'node:module';
|
|
3
3
|
import { recordReportedCost } from './chunk-BKO6JEZI.js';
|
|
4
4
|
import { cliInvocation } from './chunk-FZKNTIOJ.js';
|
|
5
|
-
import { decodeWrappedCommand } from './chunk-
|
|
5
|
+
import { decodeWrappedCommand } from './chunk-ZHQC43NH.js';
|
|
6
|
+
import { hookCodec } from './chunk-T5QBWM6M.js';
|
|
6
7
|
import { homeFromEnv } from './chunk-352DHUTP.js';
|
|
7
8
|
import { readFileSync } from 'fs';
|
|
8
9
|
import { spawn } from 'child_process';
|
|
@@ -28,10 +29,9 @@ function fmtUsd(n) {
|
|
|
28
29
|
if (n >= 100) return `$${Math.round(n).toLocaleString("en-US")}`;
|
|
29
30
|
return `$${n.toFixed(2)}`;
|
|
30
31
|
}
|
|
31
|
-
function parseStatuslineStdin(text) {
|
|
32
|
+
function parseStatuslineStdin(text, codec = hookCodec()) {
|
|
32
33
|
try {
|
|
33
|
-
|
|
34
|
-
return parsed && typeof parsed === "object" ? parsed : {};
|
|
34
|
+
return codec.statusLine?.(text) ?? {};
|
|
35
35
|
} catch {
|
|
36
36
|
return {};
|
|
37
37
|
}
|
|
@@ -52,7 +52,7 @@ function stateFresh(state, now) {
|
|
|
52
52
|
}
|
|
53
53
|
function renderStatusline(stdin, state, now) {
|
|
54
54
|
const segments = [];
|
|
55
|
-
const sessionCost = stdin.
|
|
55
|
+
const sessionCost = stdin.costUsd;
|
|
56
56
|
if (Number.isFinite(sessionCost)) {
|
|
57
57
|
segments.push(`${fmtUsd(sessionCost)} session`);
|
|
58
58
|
}
|
|
@@ -134,8 +134,8 @@ async function runStatuslineFast(args, opts = {}) {
|
|
|
134
134
|
const home = opts.home ?? homeFromEnv();
|
|
135
135
|
const now = (opts.now ?? Date.now)();
|
|
136
136
|
const stdinText = (opts.read ?? readStdin)();
|
|
137
|
-
const stdin = parseStatuslineStdin(stdinText);
|
|
138
|
-
recordReportedCost(home, stdin.
|
|
137
|
+
const stdin = parseStatuslineStdin(stdinText, opts.codec);
|
|
138
|
+
recordReportedCost(home, stdin.sessionId, stdin.costUsd);
|
|
139
139
|
const state = readStatuslineState(home);
|
|
140
140
|
const ourLine = renderStatusline(stdin, state, now);
|
|
141
141
|
const { wrapId } = parseStatuslineArgs(args);
|