@pushary/agent-hooks 1.9.169 → 1.9.171
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/CHANGELOG.md +12 -0
- package/README.md +15 -0
- package/dist/{api-2NP643KP.js → api-WOLCBFMV.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +12 -12
- package/dist/bin/pushary-calls.js +16 -16
- package/dist/bin/pushary-claude.js +29 -29
- package/dist/bin/pushary-clean.js +44 -42
- package/dist/bin/pushary-codex-bridge.js +24 -24
- package/dist/bin/pushary-codex-hook.js +33 -33
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +13 -13
- package/dist/bin/pushary-connect.js +31 -31
- package/dist/bin/pushary-cowork.js +6 -6
- package/dist/bin/pushary-daemon.js +47 -47
- package/dist/bin/pushary-disconnect.js +26 -26
- package/dist/bin/pushary-display-hook.js +32 -26
- package/dist/bin/pushary-doctor.js +51 -50
- package/dist/bin/pushary-elicitation-hook.js +28 -28
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +34 -34
- package/dist/bin/pushary-login.js +31 -25
- package/dist/bin/pushary-logout.js +36 -28
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-hook.js +31 -31
- package/dist/bin/pushary-permission-denied-hook.js +33 -33
- package/dist/bin/pushary-permission-hook.js +33 -33
- package/dist/bin/pushary-post-hook.js +28 -28
- package/dist/bin/pushary-prompt-hook.js +27 -27
- package/dist/bin/pushary-session-end-hook.js +29 -29
- package/dist/bin/pushary-session-start-hook.js +38 -38
- package/dist/bin/pushary-sessions.d.ts +1 -0
- package/dist/bin/pushary-sessions.js +81 -0
- package/dist/bin/pushary-setup.js +69 -60
- package/dist/bin/pushary-stats.js +3 -3
- package/dist/bin/pushary-status.js +33 -33
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +16 -16
- package/dist/bin/pushary-transcript-register.js +20 -20
- package/dist/bin/pushary-transcripts.js +28 -28
- package/dist/bin/pushary-upgrade.js +42 -42
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +9 -8
- package/dist/{chunk-QMVUDNQR.js → chunk-2RN7D6VI.js} +4 -4
- package/dist/{chunk-OI5OOFUY.js → chunk-2XEZJK7G.js} +5 -5
- package/dist/{chunk-6B2YKVX3.js → chunk-3GIVPZIS.js} +2 -2
- package/dist/{chunk-K24RAOIO.js → chunk-3I3RUJRD.js} +1 -1
- package/dist/{chunk-XWLSZNXW.js → chunk-3PQWVDW5.js} +8 -8
- package/dist/{chunk-352FIVVH.js → chunk-55L4JSPA.js} +1 -1
- package/dist/{chunk-OBUKF3WP.js → chunk-5EU7V5CT.js} +3 -3
- package/dist/{chunk-5N7MRVM3.js → chunk-5GUZJIEL.js} +4 -4
- package/dist/{chunk-TGIWLQOV.js → chunk-5HT352IV.js} +4 -4
- package/dist/{chunk-752NWYBD.js → chunk-7L3MVK44.js} +5 -5
- package/dist/{chunk-LGQUJFVZ.js → chunk-7ODDR6FA.js} +2 -2
- package/dist/{chunk-DYZ26IPH.js → chunk-7XSZK4DH.js} +223 -74
- package/dist/{chunk-LVF5IBS6.js → chunk-A2DVMIX4.js} +1 -1
- package/dist/{chunk-TGYM6UQJ.js → chunk-A3JTWB74.js} +2 -2
- package/dist/{chunk-7GMTA5NR.js → chunk-AUF4BMGA.js} +9 -9
- package/dist/{chunk-6IZVL42W.js → chunk-AVN4A4A6.js} +1 -1
- package/dist/{chunk-KEC67NZF.js → chunk-BKVQKWLY.js} +4 -4
- package/dist/{chunk-YPY4YCIZ.js → chunk-BZIBNSQE.js} +1 -1
- package/dist/{chunk-YU2EUD7O.js → chunk-CINBAX5G.js} +2 -0
- package/dist/{chunk-CCQZGWSR.js → chunk-CJODSIXH.js} +4 -4
- package/dist/{chunk-AIUFZQAA.js → chunk-CLT4J5N5.js} +2 -2
- package/dist/{chunk-66VZIS6R.js → chunk-CUWHBFBB.js} +1 -1
- package/dist/{chunk-NOHOCNY6.js → chunk-D3TNLVVL.js} +3 -3
- package/dist/{chunk-AO4CKFQA.js → chunk-D6OCHPLT.js} +1 -1
- package/dist/{chunk-NRXFFCNG.js → chunk-DCYRV2BJ.js} +3 -3
- package/dist/{chunk-X7RPRBZE.js → chunk-DRRFOQGF.js} +2 -2
- package/dist/{chunk-LEDGOYZV.js → chunk-E7ATFUXV.js} +3 -3
- package/dist/{chunk-6PDBRLIH.js → chunk-EGDFXMFK.js} +3 -3
- package/dist/{chunk-ZKMXHG5G.js → chunk-EQQOEDQZ.js} +6 -6
- package/dist/{chunk-OJUW7QW2.js → chunk-FAMKGTCF.js} +1 -1
- package/dist/{chunk-UN36O6U6.js → chunk-FCNYCY6G.js} +2 -2
- package/dist/{chunk-TTTMOX73.js → chunk-FFJX6YOQ.js} +1 -1
- package/dist/{chunk-PG5N3FL5.js → chunk-FIJPDZIR.js} +8 -8
- package/dist/{chunk-HFI6SU27.js → chunk-FJF2D32S.js} +3 -3
- package/dist/{chunk-ZYH4KTY5.js → chunk-FP4W2EI6.js} +11 -11
- package/dist/{chunk-AVIQZSCU.js → chunk-G7U5TFPY.js} +1 -1
- package/dist/{chunk-LOUSA3NO.js → chunk-GTB4MBMU.js} +6 -6
- package/dist/{chunk-4HLSCBES.js → chunk-GZZ7XGL5.js} +12 -2
- package/dist/{chunk-LZU7ZDY7.js → chunk-HBJLJHZF.js} +2 -2
- package/dist/{chunk-7DEAVAAS.js → chunk-HRUKMGRH.js} +3 -3
- package/dist/{chunk-IWWKO4MP.js → chunk-I72TVBOG.js} +3 -3
- package/dist/{chunk-ORTEANZH.js → chunk-IHNII3GT.js} +4 -4
- package/dist/{chunk-WDLBF3PM.js → chunk-IV7WDCKS.js} +6 -0
- package/dist/{chunk-GV3ZGKMK.js → chunk-IYTTLDB5.js} +3 -3
- package/dist/{chunk-KX4Q4CKZ.js → chunk-J2CRP5GN.js} +3 -3
- package/dist/{chunk-MRTJ54MC.js → chunk-JE6NVEOE.js} +1 -1
- package/dist/{chunk-FUK2DC53.js → chunk-JNVUOEKM.js} +3 -3
- package/dist/{chunk-LDUK7D2I.js → chunk-JUE347Z7.js} +7 -7
- package/dist/{chunk-SD5K34T2.js → chunk-KMKU2INV.js} +1 -1
- package/dist/{chunk-VY22KT5X.js → chunk-KNFZORNH.js} +4 -3
- package/dist/{chunk-X7RR2ZQH.js → chunk-KQXKDF4N.js} +5 -5
- package/dist/{chunk-EDCDODWA.js → chunk-LABBFTYJ.js} +4 -4
- package/dist/{chunk-WK6TE6U7.js → chunk-LEAACRFN.js} +2 -2
- package/dist/{chunk-MOQUKAVU.js → chunk-MJMRJ5ZF.js} +2 -2
- package/dist/{chunk-CRTNHB6F.js → chunk-MV7NJYJX.js} +3 -3
- package/dist/{chunk-UCW24KPU.js → chunk-NJNK3ZUC.js} +2 -2
- package/dist/{chunk-XGNOM3XC.js → chunk-NWHMER6L.js} +1 -1
- package/dist/{chunk-TODDEIYG.js → chunk-PM2NRK6Y.js} +12 -2
- package/dist/{chunk-VWVYDYCV.js → chunk-PQEX64YL.js} +4 -4
- package/dist/{chunk-QCQADUHN.js → chunk-RPMVO2RJ.js} +3 -3
- package/dist/{chunk-F7N6LYGG.js → chunk-SJDYK47V.js} +6 -6
- package/dist/{chunk-ZXRBGLTI.js → chunk-SM65Z6CM.js} +5 -5
- package/dist/{chunk-FAORXDJ4.js → chunk-SQCW64C2.js} +5 -5
- package/dist/{chunk-CYTPQDQY.js → chunk-TCE3J44Z.js} +1 -1
- package/dist/{chunk-RY5EPLCY.js → chunk-U2XCKXBH.js} +5 -5
- package/dist/{chunk-3M4ZOSR3.js → chunk-UB5G7ZZN.js} +1 -1
- package/dist/{chunk-ZXZEETHT.js → chunk-UHKYKZQ5.js} +14 -14
- package/dist/{chunk-XR27HPYC.js → chunk-UOPOVQ2P.js} +2 -1
- package/dist/{chunk-MK7T7MNB.js → chunk-V762IZHX.js} +1 -1
- package/dist/{chunk-Y6ILCLKE.js → chunk-VRNGMRJA.js} +1 -1
- package/dist/{chunk-WTUURSCO.js → chunk-W46HI6T3.js} +3 -3
- package/dist/{chunk-BIEJHRZG.js → chunk-WKRKTQLA.js} +2 -2
- package/dist/{chunk-OU7PO32D.js → chunk-XHUR62AQ.js} +2 -2
- package/dist/{chunk-WIOC6L6Y.js → chunk-Y54VMOE5.js} +2 -2
- package/dist/{chunk-HV7KTGWF.js → chunk-YG3KWXGC.js} +5 -5
- package/dist/{chunk-LL4TMEDG.js → chunk-ZHO263F6.js} +4 -4
- package/dist/{chunk-5Q2UDUR6.js → chunk-ZLMWP6X4.js} +3 -3
- package/dist/{codex-app-cards-switch-C6OKN3RA.js → codex-app-cards-switch-TRZKDOVK.js} +12 -12
- package/dist/{codex-desktop-launch-5ISZYYGG.js → codex-desktop-launch-AI5J526F.js} +1 -1
- package/dist/{codex-session-launch-JWT76ONU.js → codex-session-launch-UWD7U2LW.js} +21 -21
- package/dist/{config-PWEPWMNF.js → config-QIHLQCEV.js} +2 -2
- package/dist/{global-upgrade-ZAPGSH66.js → global-upgrade-4K5SGI7Q.js} +10 -10
- package/dist/{identity-O57FDCPL.js → identity-MRXHTKAC.js} +4 -4
- package/dist/{live-capabilities-FVRWXQAC.js → live-capabilities-PO5JOGZJ.js} +5 -5
- package/dist/{paths-LCARWI3S.js → paths-AXIBD5XG.js} +3 -3
- package/dist/{reapply-T5JXYBH2.js → reapply-7FJNSGUM.js} +30 -30
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-3P3VK6KQ.js → upgrade-lock-G3RQPHYM.js} +4 -4
- package/dist/{usage-BKT5P2P3.js → usage-GDUDYZSV.js} +2 -2
- package/package.json +2 -1
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
declinedAgentsFile,
|
|
4
4
|
recordDeclinedAgent
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-Y54VMOE5.js";
|
|
6
6
|
import {
|
|
7
7
|
isCursorPluginLeftover,
|
|
8
8
|
isPusharyCursorPluginManifest,
|
|
9
9
|
releaseSoleGate
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-JNVUOEKM.js";
|
|
11
11
|
import {
|
|
12
12
|
planFxRemoval,
|
|
13
13
|
removeClineServer
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-SJDYK47V.js";
|
|
15
|
+
import "../chunk-FJF2D32S.js";
|
|
16
|
+
import "../chunk-XHUR62AQ.js";
|
|
17
17
|
import {
|
|
18
18
|
hasForeignPlugins,
|
|
19
19
|
macAppBridgeAvailable,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
openCodePluginDir,
|
|
23
23
|
openCodePluginFile,
|
|
24
24
|
removeOpenCodeMcpServer
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-KQXKDF4N.js";
|
|
26
26
|
import {
|
|
27
27
|
OPENCODE_PLUGIN_SIBLING,
|
|
28
28
|
OPENCODE_PLUGIN_SIBLING_CONTENTS,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
} from "../chunk-UCND4JHN.js";
|
|
31
31
|
import {
|
|
32
32
|
exitOnHelpFlag
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-AVN4A4A6.js";
|
|
34
34
|
import {
|
|
35
35
|
compatibleConfigFile,
|
|
36
36
|
compatibleDocuments,
|
|
@@ -40,28 +40,28 @@ import {
|
|
|
40
40
|
isEmptiedPusharyOwnedDocument,
|
|
41
41
|
removeCompatibleHooks,
|
|
42
42
|
removeCompatibleMcpServer
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-W46HI6T3.js";
|
|
44
44
|
import {
|
|
45
45
|
removeGeminiSettings
|
|
46
|
-
} from "../chunk-
|
|
47
|
-
import "../chunk-
|
|
46
|
+
} from "../chunk-5EU7V5CT.js";
|
|
47
|
+
import "../chunk-FIJPDZIR.js";
|
|
48
48
|
import "../chunk-CFZUESTS.js";
|
|
49
|
-
import "../chunk-
|
|
50
|
-
import "../chunk-
|
|
49
|
+
import "../chunk-CLT4J5N5.js";
|
|
50
|
+
import "../chunk-G7U5TFPY.js";
|
|
51
51
|
import {
|
|
52
52
|
parseFlags
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-BZIBNSQE.js";
|
|
54
54
|
import "../chunk-2TRYSF64.js";
|
|
55
|
-
import "../chunk-
|
|
55
|
+
import "../chunk-PQEX64YL.js";
|
|
56
56
|
import "../chunk-GVIKF73A.js";
|
|
57
57
|
import "../chunk-POFBE6ZY.js";
|
|
58
|
-
import "../chunk-
|
|
58
|
+
import "../chunk-EGDFXMFK.js";
|
|
59
59
|
import "../chunk-SSKNRWWS.js";
|
|
60
|
-
import "../chunk-
|
|
61
|
-
import "../chunk-
|
|
62
|
-
import "../chunk-
|
|
63
|
-
import "../chunk-
|
|
64
|
-
import "../chunk-
|
|
60
|
+
import "../chunk-IYTTLDB5.js";
|
|
61
|
+
import "../chunk-KNFZORNH.js";
|
|
62
|
+
import "../chunk-MJMRJ5ZF.js";
|
|
63
|
+
import "../chunk-7XSZK4DH.js";
|
|
64
|
+
import "../chunk-3I3RUJRD.js";
|
|
65
65
|
import {
|
|
66
66
|
claudeJson,
|
|
67
67
|
claudeMcpReceipt,
|
|
@@ -91,21 +91,21 @@ import {
|
|
|
91
91
|
removePusharySettings,
|
|
92
92
|
removePusharyToolPermissions,
|
|
93
93
|
restoreClaudeMcpServer
|
|
94
|
-
} from "../chunk-
|
|
95
|
-
import "../chunk-
|
|
96
|
-
import "../chunk-
|
|
94
|
+
} from "../chunk-DRRFOQGF.js";
|
|
95
|
+
import "../chunk-D3TNLVVL.js";
|
|
96
|
+
import "../chunk-A2DVMIX4.js";
|
|
97
97
|
import {
|
|
98
98
|
UsageError
|
|
99
|
-
} from "../chunk-
|
|
99
|
+
} from "../chunk-CINBAX5G.js";
|
|
100
100
|
import {
|
|
101
101
|
readFileOrMissing
|
|
102
|
-
} from "../chunk-
|
|
102
|
+
} from "../chunk-PM2NRK6Y.js";
|
|
103
103
|
import {
|
|
104
104
|
EXIT
|
|
105
105
|
} from "../chunk-BG4HHB7E.js";
|
|
106
106
|
import {
|
|
107
107
|
isInvocationOf
|
|
108
|
-
} from "../chunk-
|
|
108
|
+
} from "../chunk-IV7WDCKS.js";
|
|
109
109
|
import "../chunk-UQTQ6HPO.js";
|
|
110
110
|
import {
|
|
111
111
|
DISCONNECTABLE_AGENTS,
|
|
@@ -2467,6 +2467,11 @@ var init_commands = __esm({
|
|
|
2467
2467
|
module: "pushary-status",
|
|
2468
2468
|
summary: "One screen: which key is in force, whether the server accepts it, what can receive an approval"
|
|
2469
2469
|
},
|
|
2470
|
+
{
|
|
2471
|
+
name: "sessions",
|
|
2472
|
+
module: "pushary-sessions",
|
|
2473
|
+
summary: "List agent sessions, their locations, and pending decisions as JSON"
|
|
2474
|
+
},
|
|
2470
2475
|
{
|
|
2471
2476
|
name: "login",
|
|
2472
2477
|
module: "pushary-login",
|
|
@@ -2583,6 +2588,7 @@ var init_commands = __esm({
|
|
|
2583
2588
|
["--json", "Emit the whole report as one object instead of the screen"],
|
|
2584
2589
|
["--devices", "Also list the machines registered to this site"]
|
|
2585
2590
|
],
|
|
2591
|
+
sessions: [["--json", "Emit the session fleet and pending decisions as one JSON object (default)"]],
|
|
2586
2592
|
"sign-out": [
|
|
2587
2593
|
["--revoke", "Also revoke the key server-side if this CLI created it; any other key is only removed"],
|
|
2588
2594
|
["--json", "Emit the result as one object instead of the screen"]
|
|
@@ -2643,8 +2649,8 @@ var init_claude_config_paths = __esm({
|
|
|
2643
2649
|
});
|
|
2644
2650
|
|
|
2645
2651
|
// src/cli/fsx.ts
|
|
2646
|
-
import { constants as fsConstants, copyFileSync, fstatSync, lstatSync, realpathSync, existsSync, fchmodSync, fsyncSync, mkdirSync, openSync, closeSync, readFileSync as readFileSync4, renameSync as renameSync2, statSync, unlinkSync as unlinkSync2, writeFileSync as writeFileSync2 } from "fs";
|
|
2647
|
-
import { dirname as dirname2, join as join5 } from "path";
|
|
2652
|
+
import { constants as fsConstants, chmodSync, copyFileSync, fstatSync, lstatSync, realpathSync, existsSync, fchmodSync, fsyncSync, mkdirSync, openSync, closeSync, readFileSync as readFileSync4, renameSync as renameSync2, statSync, unlinkSync as unlinkSync2, writeFileSync as writeFileSync2 } from "fs";
|
|
2653
|
+
import { basename, dirname as dirname2, join as join5 } from "path";
|
|
2648
2654
|
var readJsonSafe, READ_WITHOUT_WAITING, stamp, replaceThroughTempFile, jsonFileContents, writeJsonAtomicWithoutFsync;
|
|
2649
2655
|
var init_fsx = __esm({
|
|
2650
2656
|
"src/cli/fsx.ts"() {
|
|
@@ -3122,8 +3128,8 @@ import { join as join4 } from "path";
|
|
|
3122
3128
|
init_fsx();
|
|
3123
3129
|
init_paths();
|
|
3124
3130
|
import { createHash as createHash10 } from "crypto";
|
|
3125
|
-
import { lstatSync as
|
|
3126
|
-
import { basename as
|
|
3131
|
+
import { lstatSync as lstatSync6, readFileSync as readFileSync19, readdirSync as readdirSync3, realpathSync as realpathSync4, statSync as statSync6, unlinkSync as unlinkSync5 } from "fs";
|
|
3132
|
+
import { basename as basename5, dirname as dirname10, isAbsolute as isAbsolute2, join as join22, relative as relative2, resolve as resolve4, sep } from "path";
|
|
3127
3133
|
|
|
3128
3134
|
// src/transcript-phone-trust.ts
|
|
3129
3135
|
import { createHash as createHash5 } from "crypto";
|
|
@@ -7400,9 +7406,9 @@ init_claude_config_paths();
|
|
|
7400
7406
|
// src/keystore.ts
|
|
7401
7407
|
init_src();
|
|
7402
7408
|
init_fsx();
|
|
7403
|
-
import { chmodSync, existsSync as existsSync5, readFileSync as readFileSync11, realpathSync as realpathSync2, writeFileSync as writeFileSync3 } from "fs";
|
|
7409
|
+
import { chmodSync as chmodSync2, constants as fsConstants2, copyFileSync as copyFileSync2, existsSync as existsSync5, lstatSync as lstatSync4, mkdirSync as mkdirSync4, readdirSync as readdirSync2, readFileSync as readFileSync11, realpathSync as realpathSync2, rmSync as rmSync2, statSync as statSync3, writeFileSync as writeFileSync3 } from "fs";
|
|
7404
7410
|
import { homedir as homedir7 } from "os";
|
|
7405
|
-
import { join as join14 } from "path";
|
|
7411
|
+
import { basename as basename2, dirname as dirname5, isAbsolute, join as join14, relative } from "path";
|
|
7406
7412
|
|
|
7407
7413
|
// src/install-source.ts
|
|
7408
7414
|
init_src();
|
|
@@ -7421,7 +7427,7 @@ var readTranscriptPreference = () => {
|
|
|
7421
7427
|
// src/transcript-reader.ts
|
|
7422
7428
|
import { createHash as createHash8 } from "crypto";
|
|
7423
7429
|
import { join as join15 } from "path";
|
|
7424
|
-
import { closeSync as closeSync4, fstatSync as fstatSync4, openSync as openSync4, readFileSync as readFileSync14, readSync as readSync2, statSync as
|
|
7430
|
+
import { closeSync as closeSync4, fstatSync as fstatSync4, openSync as openSync4, readFileSync as readFileSync14, readSync as readSync2, statSync as statSync4 } from "fs";
|
|
7425
7431
|
|
|
7426
7432
|
// src/transcript-source.ts
|
|
7427
7433
|
init_src();
|
|
@@ -7468,8 +7474,8 @@ var hermesSnapshot = external_exports.object({
|
|
|
7468
7474
|
|
|
7469
7475
|
// src/transcript-snapshot-journal.ts
|
|
7470
7476
|
init_src();
|
|
7471
|
-
import { lstatSync as
|
|
7472
|
-
import { dirname as
|
|
7477
|
+
import { lstatSync as lstatSync5, mkdirSync as mkdirSync5, readFileSync as readFileSync13 } from "fs";
|
|
7478
|
+
import { dirname as dirname6 } from "path";
|
|
7473
7479
|
init_fsx();
|
|
7474
7480
|
|
|
7475
7481
|
// src/transcript-projection.ts
|
|
@@ -7834,8 +7840,8 @@ var hookOwnerOfCommands = (commands, appAvailable = true) => {
|
|
|
7834
7840
|
|
|
7835
7841
|
// src/daemon-lifecycle.ts
|
|
7836
7842
|
init_src();
|
|
7837
|
-
import { dirname as
|
|
7838
|
-
import { existsSync as existsSync6, mkdirSync as
|
|
7843
|
+
import { dirname as dirname9, join as join21, win32 as win32Path } from "path";
|
|
7844
|
+
import { existsSync as existsSync6, mkdirSync as mkdirSync8, readFileSync as readFileSync18, realpathSync as realpathSync3, renameSync as renameSync3, statSync as statSync5, unlinkSync as unlinkSync4, writeFileSync as writeFileSync5 } from "fs";
|
|
7839
7845
|
import { createHash as createHash9, randomUUID as randomUUID3 } from "crypto";
|
|
7840
7846
|
import { homedir as homedir8, uptime, userInfo } from "os";
|
|
7841
7847
|
|
|
@@ -7843,8 +7849,8 @@ import { homedir as homedir8, uptime, userInfo } from "os";
|
|
|
7843
7849
|
init_fsx();
|
|
7844
7850
|
init_paths();
|
|
7845
7851
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
7846
|
-
import { linkSync, mkdirSync as
|
|
7847
|
-
import { dirname as
|
|
7852
|
+
import { linkSync, mkdirSync as mkdirSync6, readFileSync as readFileSync15, rmSync as rmSync3, writeFileSync as writeFileSync4 } from "fs";
|
|
7853
|
+
import { dirname as dirname7, join as join18 } from "path";
|
|
7848
7854
|
|
|
7849
7855
|
// src/daemon-lifecycle.ts
|
|
7850
7856
|
init_version();
|
|
@@ -7864,8 +7870,8 @@ import { execFileSync as execFileSync3 } from "child_process";
|
|
|
7864
7870
|
|
|
7865
7871
|
// src/daemon-entry-guard.ts
|
|
7866
7872
|
init_fsx();
|
|
7867
|
-
import { mkdirSync as
|
|
7868
|
-
import { basename, dirname as
|
|
7873
|
+
import { mkdirSync as mkdirSync7, readFileSync as readFileSync17 } from "fs";
|
|
7874
|
+
import { basename as basename3, dirname as dirname8, join as join19 } from "path";
|
|
7869
7875
|
var DAEMON_ENTRY_GUARD_SOURCE = [
|
|
7870
7876
|
"const { existsSync } = require('node:fs')",
|
|
7871
7877
|
"if (process.argv[1] && !existsSync(process.argv[1])) process.exit(0)",
|
|
@@ -7933,7 +7939,7 @@ var firstString = (...values) => values.find((v) => typeof v === "string" && v.l
|
|
|
7933
7939
|
// ../hook-mapping/src/map.ts
|
|
7934
7940
|
init_src();
|
|
7935
7941
|
init_src();
|
|
7936
|
-
import { basename as
|
|
7942
|
+
import { basename as basename4 } from "path";
|
|
7937
7943
|
var AGENT_IDENTITIES = {
|
|
7938
7944
|
claude: { type: "claude_code", label: AGENT_LABELS_BY_TYPE.claude_code },
|
|
7939
7945
|
codex: { type: "codex", label: AGENT_LABELS_BY_TYPE.codex },
|
|
@@ -8063,7 +8069,7 @@ var cliRegistry = (apiKey = getApiKey()) => ({ apiKey, baseUrl: getBaseUrl(), di
|
|
|
8063
8069
|
var accountFor = (registry) => createHash10("sha256").update(`${registry.baseUrl}\0${registry.apiKey}`).digest("hex");
|
|
8064
8070
|
var TTL = 48 * 60 * 60 * 1e3;
|
|
8065
8071
|
var read = (path) => {
|
|
8066
|
-
if (
|
|
8072
|
+
if (statSync6(path).size > 16384) throw new Error("History registration exceeds its size limit");
|
|
8067
8073
|
return storedRegistrationSchema.parse(JSON.parse(readFileSync19(path, "utf8")));
|
|
8068
8074
|
};
|
|
8069
8075
|
var consent = (record) => record.consentOverride ?? readTranscriptPreference() ?? true;
|
|
@@ -8099,15 +8105,15 @@ var transcriptRoots = (source) => {
|
|
|
8099
8105
|
const configured = process.env.CLAUDE_CONFIG_DIR;
|
|
8100
8106
|
return [join22(configured || join22(home, ".claude"), TRANSCRIPT_ROOT_NAME.claude), join22(home, ".claude", TRANSCRIPT_ROOT_NAME.claude)];
|
|
8101
8107
|
};
|
|
8102
|
-
var isAgentTranscriptRoot = (root, source) =>
|
|
8108
|
+
var isAgentTranscriptRoot = (root, source) => isAbsolute2(root) && resolve4(root) === root && basename5(root) === TRANSCRIPT_ROOT_NAME[source];
|
|
8103
8109
|
var acceptedTranscriptRoots = (source, registeredRoot) => typeof registeredRoot === "string" && isAgentTranscriptRoot(registeredRoot, source) ? [...transcriptRoots(source), registeredRoot] : transcriptRoots(source);
|
|
8104
8110
|
var resolvedSourcePath = (path) => {
|
|
8105
8111
|
const absolute = resolve4(path);
|
|
8106
8112
|
try {
|
|
8107
8113
|
return realpathSync4(absolute);
|
|
8108
8114
|
} catch {
|
|
8109
|
-
const parent =
|
|
8110
|
-
return parent === absolute ? absolute : join22(resolvedSourcePath(parent),
|
|
8115
|
+
const parent = dirname10(absolute);
|
|
8116
|
+
return parent === absolute ? absolute : join22(resolvedSourcePath(parent), basename5(absolute));
|
|
8111
8117
|
}
|
|
8112
8118
|
};
|
|
8113
8119
|
var transcriptRootContaining = (candidate, roots) => {
|
|
@@ -8119,15 +8125,15 @@ var captureRegistration = (source, value, registeredRoot) => {
|
|
|
8119
8125
|
if (source !== "claude" && source !== "codex" && source !== "gemini" && source !== "cursor" && source !== "hermes") return null;
|
|
8120
8126
|
const sessionId = input.session_id ?? input.conversation_id;
|
|
8121
8127
|
if (input.agent_id || typeof sessionId !== "string" || !/^[\w-]{1,128}$/.test(sessionId)) return null;
|
|
8122
|
-
if (typeof input.cwd !== "string" || !
|
|
8128
|
+
if (typeof input.cwd !== "string" || !isAbsolute2(input.cwd)) return null;
|
|
8123
8129
|
const path = input.transcript_path ?? input.agent_transcript_path ?? (source === "claude" ? claudeTranscriptPath(input.cwd, sessionId) : null);
|
|
8124
|
-
if (typeof path !== "string" || !
|
|
8130
|
+
if (typeof path !== "string" || !isAbsolute2(path) || !(path.endsWith(".jsonl") || (source === "gemini" || source === "hermes") && path.endsWith(".json"))) return null;
|
|
8125
8131
|
const root = transcriptRootContaining(path, acceptedTranscriptRoots(source, registeredRoot));
|
|
8126
8132
|
if (root === null) return null;
|
|
8127
|
-
const segments =
|
|
8128
|
-
if (source === "hermes" && (segments.length !== 2 || !/^[a-f0-9]{64}$/.test(segments[0] ?? "") ||
|
|
8129
|
-
if (source === "gemini" && (segments.length !== 3 || segments[1] !== "chats" || !
|
|
8130
|
-
if (source === "cursor" && (segments[1] !== "agent-transcripts" ||
|
|
8133
|
+
const segments = relative2(root, path).split(sep);
|
|
8134
|
+
if (source === "hermes" && (segments.length !== 2 || !/^[a-f0-9]{64}$/.test(segments[0] ?? "") || basename5(path) !== `${sessionId}.json`)) return null;
|
|
8135
|
+
if (source === "gemini" && (segments.length !== 3 || segments[1] !== "chats" || !basename5(path).startsWith("session-"))) return null;
|
|
8136
|
+
if (source === "cursor" && (segments[1] !== "agent-transcripts" || basename5(path) !== `${sessionId}.jsonl` || !(segments.length === 3 || segments.length === 4 && basename5(dirname10(path)) === sessionId))) return null;
|
|
8131
8137
|
return { sessionId, cwd: input.cwd, path, source, root };
|
|
8132
8138
|
};
|
|
8133
8139
|
|
|
@@ -4,10 +4,7 @@ import {
|
|
|
4
4
|
openClawRepairStep,
|
|
5
5
|
readHermesShellGate,
|
|
6
6
|
readSetupFailure
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import {
|
|
9
|
-
describeWaitLadder
|
|
10
|
-
} from "../chunk-CVWG2N3Y.js";
|
|
7
|
+
} from "../chunk-7L3MVK44.js";
|
|
11
8
|
import {
|
|
12
9
|
CODEX_HOOK_REMEDY,
|
|
13
10
|
HERMES_RESTART_COMMAND,
|
|
@@ -15,14 +12,17 @@ import {
|
|
|
15
12
|
describeHermesShellGate,
|
|
16
13
|
describeHermesState,
|
|
17
14
|
hermesRepairStep
|
|
18
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-5GUZJIEL.js";
|
|
16
|
+
import {
|
|
17
|
+
describeWaitLadder
|
|
18
|
+
} from "../chunk-CVWG2N3Y.js";
|
|
19
19
|
import {
|
|
20
20
|
writeJsonError,
|
|
21
21
|
writeStdoutFully
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-GZZ7XGL5.js";
|
|
23
23
|
import {
|
|
24
24
|
fetchChannels
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-CJODSIXH.js";
|
|
26
26
|
import "../chunk-3EGEA4KH.js";
|
|
27
27
|
import {
|
|
28
28
|
GET_THE_APP_STEP,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
reachVerdict,
|
|
34
34
|
roundTripEvidence,
|
|
35
35
|
verifyRoundTrip
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-SM65Z6CM.js";
|
|
37
37
|
import {
|
|
38
38
|
daemonStopsAtLogout,
|
|
39
39
|
lingerDoctorDetail,
|
|
@@ -42,17 +42,17 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
readMachineReadiness,
|
|
44
44
|
readManagedControlEvidence
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-U2XCKXBH.js";
|
|
46
46
|
import {
|
|
47
47
|
assessCodexHookTrust,
|
|
48
48
|
readCodexTrustForPusharyHooks
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-DCYRV2BJ.js";
|
|
50
50
|
import {
|
|
51
51
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
52
52
|
activeKeyVerdictOf,
|
|
53
53
|
describeSignedOutKey,
|
|
54
54
|
readSignedOutDiagnosis
|
|
55
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-LEAACRFN.js";
|
|
56
56
|
import {
|
|
57
57
|
agentProbes,
|
|
58
58
|
detectAgent,
|
|
@@ -61,13 +61,13 @@ import {
|
|
|
61
61
|
isPluginRegistered,
|
|
62
62
|
shortenHome,
|
|
63
63
|
vscodeSettingsTargets
|
|
64
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-2XEZJK7G.js";
|
|
65
65
|
import "../chunk-OYIN77HO.js";
|
|
66
66
|
import {
|
|
67
67
|
CONNECTED_THROUGH_MAC_APP,
|
|
68
68
|
keyWrittenByMacApp,
|
|
69
69
|
readMacAppConnectionWhenKeyless
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-2RN7D6VI.js";
|
|
71
71
|
import {
|
|
72
72
|
findHermesLauncher,
|
|
73
73
|
hasUpdateFrom,
|
|
@@ -81,13 +81,13 @@ import {
|
|
|
81
81
|
routesHermesQuestions,
|
|
82
82
|
runsAnOlderPlugin,
|
|
83
83
|
shippedHermesPlugin
|
|
84
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-SQCW64C2.js";
|
|
85
85
|
import "../chunk-QCGNGEGE.js";
|
|
86
86
|
import {
|
|
87
87
|
findOpenClawLauncher,
|
|
88
88
|
isOpenClawWired,
|
|
89
89
|
openClawPathsNow
|
|
90
|
-
} from "../chunk-
|
|
90
|
+
} from "../chunk-MV7NJYJX.js";
|
|
91
91
|
import {
|
|
92
92
|
FX_PROFILE_REFUSALS,
|
|
93
93
|
FX_PUSHARY_TOOLS_RULE,
|
|
@@ -97,11 +97,11 @@ import {
|
|
|
97
97
|
inspectClineInstallation,
|
|
98
98
|
inspectFxInstallation,
|
|
99
99
|
inspectFxPusharyHttpWiring
|
|
100
|
-
} from "../chunk-
|
|
100
|
+
} from "../chunk-SJDYK47V.js";
|
|
101
101
|
import {
|
|
102
102
|
retryAgentCommand
|
|
103
|
-
} from "../chunk-
|
|
104
|
-
import "../chunk-
|
|
103
|
+
} from "../chunk-FJF2D32S.js";
|
|
104
|
+
import "../chunk-XHUR62AQ.js";
|
|
105
105
|
import {
|
|
106
106
|
cliOwnsAnyAgentHooks,
|
|
107
107
|
macAppBridgeAvailable,
|
|
@@ -110,29 +110,29 @@ import {
|
|
|
110
110
|
openCodePluginDir,
|
|
111
111
|
openCodePluginFile,
|
|
112
112
|
openCodeWired
|
|
113
|
-
} from "../chunk-
|
|
113
|
+
} from "../chunk-KQXKDF4N.js";
|
|
114
114
|
import {
|
|
115
115
|
OPENCODE_PLUGIN_PLACEHOLDER
|
|
116
116
|
} from "../chunk-UCND4JHN.js";
|
|
117
117
|
import {
|
|
118
118
|
keyScopeOf,
|
|
119
119
|
pushWindowChangeStep
|
|
120
|
-
} from "../chunk-
|
|
120
|
+
} from "../chunk-D6OCHPLT.js";
|
|
121
121
|
import {
|
|
122
122
|
createIo
|
|
123
123
|
} from "../chunk-DXUPOVJP.js";
|
|
124
124
|
import {
|
|
125
125
|
exitOnHelpFlag
|
|
126
|
-
} from "../chunk-
|
|
126
|
+
} from "../chunk-AVN4A4A6.js";
|
|
127
127
|
import {
|
|
128
128
|
describeMissingControlPrerequisite,
|
|
129
129
|
detectProviderLiveCapabilities,
|
|
130
130
|
expectedLaunchCapabilities,
|
|
131
131
|
hasSpawnProvider,
|
|
132
132
|
resolveControlPolicy
|
|
133
|
-
} from "../chunk-
|
|
134
|
-
import "../chunk-
|
|
135
|
-
import "../chunk-
|
|
133
|
+
} from "../chunk-E7ATFUXV.js";
|
|
134
|
+
import "../chunk-7ODDR6FA.js";
|
|
135
|
+
import "../chunk-TCE3J44Z.js";
|
|
136
136
|
import {
|
|
137
137
|
readLedgerSummary
|
|
138
138
|
} from "../chunk-2SMEEXDR.js";
|
|
@@ -143,7 +143,7 @@ import {
|
|
|
143
143
|
describeAutoUpdateCheck,
|
|
144
144
|
readAutoUpdateState,
|
|
145
145
|
takeAutoUpdateAnnouncement
|
|
146
|
-
} from "../chunk-
|
|
146
|
+
} from "../chunk-HBJLJHZF.js";
|
|
147
147
|
import {
|
|
148
148
|
compatibleConfigFile,
|
|
149
149
|
compatibleInstructionsFile,
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
hasCompatibleHooks,
|
|
152
152
|
hasCompatibleMcpServer,
|
|
153
153
|
missingCompatibleHookEvents
|
|
154
|
-
} from "../chunk-
|
|
154
|
+
} from "../chunk-W46HI6T3.js";
|
|
155
155
|
import {
|
|
156
156
|
daemonHasRemoteProof,
|
|
157
157
|
daemonServiceManagerAvailable,
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
readServiceExecPath,
|
|
165
165
|
serviceStartFileChecks,
|
|
166
166
|
versionManagerOf
|
|
167
|
-
} from "../chunk-
|
|
167
|
+
} from "../chunk-JUE347Z7.js";
|
|
168
168
|
import {
|
|
169
169
|
GEMINI_HOOK_BINARY,
|
|
170
170
|
claudeOtherHolders,
|
|
@@ -184,39 +184,40 @@ import {
|
|
|
184
184
|
holdsLong,
|
|
185
185
|
missingGeminiHookEvents,
|
|
186
186
|
pusharyHookExecutable
|
|
187
|
-
} from "../chunk-
|
|
188
|
-
import "../chunk-
|
|
187
|
+
} from "../chunk-5EU7V5CT.js";
|
|
188
|
+
import "../chunk-FIJPDZIR.js";
|
|
189
189
|
import "../chunk-CFZUESTS.js";
|
|
190
|
-
import "../chunk-
|
|
191
|
-
import "../chunk-
|
|
190
|
+
import "../chunk-CLT4J5N5.js";
|
|
191
|
+
import "../chunk-G7U5TFPY.js";
|
|
192
192
|
import {
|
|
193
193
|
parseFlags
|
|
194
|
-
} from "../chunk-
|
|
195
|
-
import "../chunk-
|
|
194
|
+
} from "../chunk-BZIBNSQE.js";
|
|
195
|
+
import "../chunk-VRNGMRJA.js";
|
|
196
196
|
import "../chunk-2TRYSF64.js";
|
|
197
|
-
import "../chunk-
|
|
197
|
+
import "../chunk-PQEX64YL.js";
|
|
198
198
|
import "../chunk-GVIKF73A.js";
|
|
199
199
|
import "../chunk-POFBE6ZY.js";
|
|
200
200
|
import {
|
|
201
201
|
callMcpTool,
|
|
202
202
|
sendMcpRequest
|
|
203
|
-
} from "../chunk-
|
|
203
|
+
} from "../chunk-EGDFXMFK.js";
|
|
204
204
|
import "../chunk-SSKNRWWS.js";
|
|
205
205
|
import {
|
|
206
206
|
checkApiKey,
|
|
207
207
|
describeKeyCheck
|
|
208
|
-
} from "../chunk-
|
|
209
|
-
import "../chunk-
|
|
208
|
+
} from "../chunk-IYTTLDB5.js";
|
|
209
|
+
import "../chunk-KNFZORNH.js";
|
|
210
210
|
import {
|
|
211
211
|
getMachineId
|
|
212
|
-
} from "../chunk-
|
|
212
|
+
} from "../chunk-MJMRJ5ZF.js";
|
|
213
213
|
import {
|
|
214
|
+
keyEnvFilePath,
|
|
214
215
|
keyPrefix,
|
|
215
216
|
readConfigFileKey,
|
|
216
217
|
readControlMode,
|
|
217
218
|
readKeySource
|
|
218
|
-
} from "../chunk-
|
|
219
|
-
import "../chunk-
|
|
219
|
+
} from "../chunk-7XSZK4DH.js";
|
|
220
|
+
import "../chunk-3I3RUJRD.js";
|
|
220
221
|
import {
|
|
221
222
|
CLINE_AUTO_APPROVE_STEP,
|
|
222
223
|
CLINE_LABEL,
|
|
@@ -254,27 +255,27 @@ import {
|
|
|
254
255
|
readCodexMcpAuth,
|
|
255
256
|
resolveBridgeStub,
|
|
256
257
|
vscodePluginDir
|
|
257
|
-
} from "../chunk-
|
|
258
|
+
} from "../chunk-DRRFOQGF.js";
|
|
258
259
|
import {
|
|
259
260
|
fetchLatestPublishedVersion,
|
|
260
261
|
readGlobalCliInstall,
|
|
261
262
|
resolvePathBinary
|
|
262
|
-
} from "../chunk-
|
|
263
|
+
} from "../chunk-D3TNLVVL.js";
|
|
263
264
|
import {
|
|
264
265
|
getBaseUrl
|
|
265
|
-
} from "../chunk-
|
|
266
|
+
} from "../chunk-A2DVMIX4.js";
|
|
266
267
|
import {
|
|
267
268
|
UsageError
|
|
268
|
-
} from "../chunk-
|
|
269
|
+
} from "../chunk-CINBAX5G.js";
|
|
269
270
|
import {
|
|
270
271
|
readJsonSafe
|
|
271
|
-
} from "../chunk-
|
|
272
|
+
} from "../chunk-PM2NRK6Y.js";
|
|
272
273
|
import {
|
|
273
274
|
EXIT
|
|
274
275
|
} from "../chunk-BG4HHB7E.js";
|
|
275
276
|
import {
|
|
276
277
|
NPX_LATEST_COMMAND
|
|
277
|
-
} from "../chunk-
|
|
278
|
+
} from "../chunk-IV7WDCKS.js";
|
|
278
279
|
import {
|
|
279
280
|
commandsPackage,
|
|
280
281
|
getPackageVersion,
|
|
@@ -896,7 +897,7 @@ var main = async () => {
|
|
|
896
897
|
let apiKey = source.key ?? void 0;
|
|
897
898
|
let keySource = source.kind === "env" ? "env" : source.kind === "config" ? "config-file" : null;
|
|
898
899
|
if (!apiKey) {
|
|
899
|
-
for (const f of SHELL_FILES) {
|
|
900
|
+
for (const f of [keyEnvFilePath(), ...SHELL_FILES]) {
|
|
900
901
|
try {
|
|
901
902
|
const content = readFileSync2(f, "utf-8");
|
|
902
903
|
const match = content.match(/export\s+PUSHARY_API_KEY=['"](pk_[a-f0-9]+\.[a-f0-9]+)['"]/);
|
|
@@ -917,7 +918,7 @@ var main = async () => {
|
|
|
917
918
|
check(
|
|
918
919
|
false,
|
|
919
920
|
"API key readable by hooks",
|
|
920
|
-
`found only in a shell profile (${maskKey(apiKey)}), which hooks do not read \u2014 re-run setup, or open a new terminal`
|
|
921
|
+
`found only in a shell profile or ${keyEnvFilePath()} (${maskKey(apiKey)}), which hooks do not read \u2014 re-run setup, or open a new terminal`
|
|
921
922
|
);
|
|
922
923
|
console.log(` ${dim("Hooks read $PUSHARY_API_KEY, then")} ${dim(pusharyConfigFile())}`);
|
|
923
924
|
} else if (macApp.kind === "connected") {
|
|
@@ -1070,14 +1071,14 @@ var main = async () => {
|
|
|
1070
1071
|
check(keyMatches, "Codex: MCP key embedded (config.toml)", keyMatches ? "no shell export needed" : "differs from your active key \u2014 re-run setup");
|
|
1071
1072
|
} else if (codexAuth?.method === "env") {
|
|
1072
1073
|
const envValue = process.env[codexAuth.envVar]?.trim();
|
|
1073
|
-
const exportedInProfile = SHELL_FILES.some((f) => {
|
|
1074
|
+
const exportedInProfile = [keyEnvFilePath(), ...SHELL_FILES].some((f) => {
|
|
1074
1075
|
try {
|
|
1075
1076
|
return readFileSync2(f, "utf-8").includes(`export ${codexAuth.envVar}=`);
|
|
1076
1077
|
} catch {
|
|
1077
1078
|
return false;
|
|
1078
1079
|
}
|
|
1079
1080
|
});
|
|
1080
|
-
check(!!envValue, `Codex: MCP key available in shell ($${codexAuth.envVar})`, envValue ? "set \u2014 re-run setup to embed the key and drop the shell dependency" : exportedInProfile ?
|
|
1081
|
+
check(!!envValue, `Codex: MCP key available in shell ($${codexAuth.envVar})`, envValue ? "set \u2014 re-run setup to embed the key and drop the shell dependency" : exportedInProfile ? `exported in your profile or ${keyEnvFilePath()} but not in this shell \u2014 restart the terminal, or re-run setup to embed the key in config.toml` : "not set \u2014 Codex reads its key from your shell; re-run setup to embed the key in config.toml");
|
|
1081
1082
|
if (envValue && apiKey && envValue !== apiKey) {
|
|
1082
1083
|
console.log(` ${warn} Codex: $${codexAuth.envVar} differs from your active key ${dim("(rotate or re-run setup so hooks and MCP match)")}`);
|
|
1083
1084
|
}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-5HT352IV.js";
|
|
5
|
+
import "../chunk-I72TVBOG.js";
|
|
6
6
|
import {
|
|
7
7
|
announceSubscriptionRequired,
|
|
8
8
|
isDeferAnswer
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-CUWHBFBB.js";
|
|
10
|
+
import "../chunk-AUF4BMGA.js";
|
|
11
11
|
import "../chunk-WHB622LP.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-W46HI6T3.js";
|
|
13
|
+
import "../chunk-JUE347Z7.js";
|
|
14
|
+
import "../chunk-5EU7V5CT.js";
|
|
15
|
+
import "../chunk-FIJPDZIR.js";
|
|
16
16
|
import "../chunk-CFZUESTS.js";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-CLT4J5N5.js";
|
|
18
|
+
import "../chunk-G7U5TFPY.js";
|
|
19
|
+
import "../chunk-BZIBNSQE.js";
|
|
20
|
+
import "../chunk-HRUKMGRH.js";
|
|
21
|
+
import "../chunk-55L4JSPA.js";
|
|
22
|
+
import "../chunk-UB5G7ZZN.js";
|
|
23
|
+
import "../chunk-VRNGMRJA.js";
|
|
24
24
|
import "../chunk-2TRYSF64.js";
|
|
25
25
|
import {
|
|
26
26
|
askUser,
|
|
27
27
|
isDecisionStopped,
|
|
28
28
|
isQuestionLimitRefusal,
|
|
29
29
|
waitForQuestion
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-PQEX64YL.js";
|
|
31
31
|
import "../chunk-GVIKF73A.js";
|
|
32
32
|
import "../chunk-POFBE6ZY.js";
|
|
33
33
|
import {
|
|
34
34
|
SubscriptionRequiredError
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-EGDFXMFK.js";
|
|
36
36
|
import "../chunk-SSKNRWWS.js";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-IYTTLDB5.js";
|
|
38
|
+
import "../chunk-KNFZORNH.js";
|
|
39
39
|
import {
|
|
40
40
|
getMachineId
|
|
41
|
-
} from "../chunk-
|
|
42
|
-
import "../chunk-
|
|
43
|
-
import "../chunk-
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-
|
|
41
|
+
} from "../chunk-MJMRJ5ZF.js";
|
|
42
|
+
import "../chunk-7XSZK4DH.js";
|
|
43
|
+
import "../chunk-3I3RUJRD.js";
|
|
44
|
+
import "../chunk-DRRFOQGF.js";
|
|
45
|
+
import "../chunk-D3TNLVVL.js";
|
|
46
46
|
import {
|
|
47
47
|
getApiKey
|
|
48
|
-
} from "../chunk-
|
|
49
|
-
import "../chunk-
|
|
50
|
-
import "../chunk-
|
|
48
|
+
} from "../chunk-A2DVMIX4.js";
|
|
49
|
+
import "../chunk-CINBAX5G.js";
|
|
50
|
+
import "../chunk-PM2NRK6Y.js";
|
|
51
51
|
import "../chunk-BG4HHB7E.js";
|
|
52
|
-
import "../chunk-
|
|
52
|
+
import "../chunk-IV7WDCKS.js";
|
|
53
53
|
import "../chunk-UQTQ6HPO.js";
|
|
54
54
|
import {
|
|
55
55
|
ELICITATION_ANSWERABLE_MODE,
|