@pushary/agent-hooks 1.9.50 → 1.9.52
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 +22 -0
- package/README.md +9 -1
- package/dist/api-K6ZROHYB.js +55 -0
- package/dist/bin/pushary-bell-hook.js +28 -25
- package/dist/bin/pushary-bell.js +13 -11
- package/dist/bin/pushary-claude.js +37 -33
- package/dist/bin/pushary-clean.js +68 -42
- package/dist/bin/pushary-codex-bridge.js +23 -20
- package/dist/bin/pushary-codex-hook.js +36 -32
- package/dist/bin/pushary-codex-session.js +17 -616
- package/dist/bin/pushary-codex.js +15 -12
- package/dist/bin/pushary-connect.js +31 -28
- package/dist/bin/pushary-cowork.js +7 -6
- package/dist/bin/pushary-daemon.js +57 -52
- package/dist/bin/pushary-disconnect.js +29 -26
- package/dist/bin/pushary-doctor.js +58 -53
- package/dist/bin/pushary-elicitation-hook.js +29 -26
- package/dist/bin/pushary-gemini-bridge.js +17 -15
- package/dist/bin/pushary-gemini-hook.js +33 -29
- package/dist/bin/pushary-hook.js +34 -31
- package/dist/bin/pushary-login.js +19 -16
- package/dist/bin/pushary-logout.js +30 -27
- package/dist/bin/pushary-mcp.js +16 -9
- package/dist/bin/pushary-mode.js +16 -14
- package/dist/bin/pushary-notification-hook.js +27 -24
- package/dist/bin/pushary-opencode-hook.js +32 -28
- package/dist/bin/pushary-permission-denied-hook.js +32 -29
- package/dist/bin/pushary-permission-hook.js +31 -28
- package/dist/bin/pushary-post-hook.js +27 -24
- package/dist/bin/pushary-prompt-hook.js +27 -24
- package/dist/bin/pushary-session-end-hook.js +27 -24
- package/dist/bin/pushary-session-start-hook.js +34 -29
- package/dist/bin/pushary-setup.js +195 -138
- package/dist/bin/pushary-stats.js +8 -7
- package/dist/bin/pushary-status.js +35 -32
- package/dist/bin/pushary-stop-hook.js +27 -24
- package/dist/bin/pushary-stopfailure-hook.js +27 -24
- package/dist/bin/pushary-suggestions.js +16 -14
- package/dist/bin/pushary-transcript-register.js +19 -17
- package/dist/bin/pushary-transcripts.js +10 -9
- package/dist/bin/pushary-upgrade.js +76 -46
- package/dist/bin/pushary-wait.js +16 -14
- package/dist/bin/pushary.js +10 -8
- package/dist/{chunk-GBKSCDEK.js → chunk-2LEH5IGX.js} +17 -4
- package/dist/chunk-36NGFHE4.js +72 -0
- package/dist/{chunk-B7LV6W7U.js → chunk-3RPN7AAT.js} +1 -1
- package/dist/{chunk-GDDXGBTM.js → chunk-46TC24ET.js} +2 -2
- package/dist/{chunk-KEAIIVW3.js → chunk-4QQEUJL4.js} +2 -2
- package/dist/{chunk-XNZB274I.js → chunk-5463UUO2.js} +1 -1
- package/dist/{chunk-FPKQGWAF.js → chunk-56ZTIY6D.js} +2 -2
- package/dist/{chunk-34AQAQKW.js → chunk-63IQRYVP.js} +4 -4
- package/dist/{chunk-25SYEAW4.js → chunk-6C4S3QYD.js} +3 -3
- package/dist/{chunk-4PCJ6DYK.js → chunk-6SWMKF5E.js} +2 -2
- package/dist/{chunk-Y7WD72J7.js → chunk-7CLLWDCP.js} +1 -1
- package/dist/{chunk-WLT6J3SB.js → chunk-ALZZVC3E.js} +2 -2
- package/dist/{chunk-ZMYLVFXC.js → chunk-BL3WAGIK.js} +14 -9
- package/dist/{chunk-PA54A437.js → chunk-BUXDR6US.js} +1 -1
- package/dist/{chunk-VUS6QGND.js → chunk-CQ5JGRML.js} +5 -1
- package/dist/{chunk-IF2UPWD2.js → chunk-DHJSBK63.js} +1 -1
- package/dist/chunk-DMJFW4KL.js +729 -0
- package/dist/{chunk-ABMEBN2R.js → chunk-EK7SZJ4K.js} +6 -4
- package/dist/{chunk-VCZN7NAB.js → chunk-EPOD7QHT.js} +7 -5
- package/dist/{chunk-KIO2MZQC.js → chunk-FCMWUYIE.js} +5 -3
- package/dist/{chunk-YTYXFA5M.js → chunk-FI73DGNB.js} +1 -1
- package/dist/{chunk-JGNYCRB2.js → chunk-FV34HT35.js} +1 -1
- package/dist/{chunk-KK2DIUVV.js → chunk-GCN73COS.js} +1 -1
- package/dist/{chunk-KBGKWB5T.js → chunk-H57DXSHR.js} +4 -2
- package/dist/{chunk-SALUTWPX.js → chunk-IHUFRAHB.js} +4 -4
- package/dist/chunk-JBT3ZSJS.js +92 -0
- package/dist/{chunk-5Q2FRMPC.js → chunk-JOWF4Y4P.js} +4 -4
- package/dist/{chunk-EP6S6VY3.js → chunk-JPABKXK6.js} +6 -6
- package/dist/{chunk-LLRYP5TR.js → chunk-K23WMLPY.js} +5 -5
- package/dist/{chunk-34RXPM5U.js → chunk-L5YTS2BP.js} +3 -3
- package/dist/{chunk-SE4JFMLW.js → chunk-LD4MWJMD.js} +8 -6
- package/dist/{chunk-OR5F63C2.js → chunk-LF3TLC7B.js} +2 -168
- package/dist/{chunk-XTVEW2NG.js → chunk-LIESRXK5.js} +1 -1
- package/dist/{chunk-ZOKMGBPR.js → chunk-MC4VY5LK.js} +16 -5
- package/dist/{chunk-K73CBZKW.js → chunk-MHQB62K5.js} +4 -4
- package/dist/{chunk-DH4BWFU7.js → chunk-MTKV4RUQ.js} +82 -16
- package/dist/{chunk-Y74IJ2IO.js → chunk-N77BH7H2.js} +10 -4
- package/dist/{chunk-ZTTCYHOM.js → chunk-NECZKPJN.js} +31 -6
- package/dist/{chunk-TGCIFEDE.js → chunk-NELH25J7.js} +13 -11
- package/dist/{chunk-HXRH7ZCK.js → chunk-NHVEQLQC.js} +2 -2
- package/dist/{chunk-OW4DNSQ6.js → chunk-NSY2V7XU.js} +1 -1
- package/dist/chunk-OHSHDQZF.js +271 -0
- package/dist/{chunk-ZYYQJSIO.js → chunk-OML4YFBN.js} +44 -462
- package/dist/{chunk-X3RCIOIH.js → chunk-ONCWYACA.js} +1 -1
- package/dist/{chunk-LZYJMSOY.js → chunk-P2546BBI.js} +3 -3
- package/dist/{chunk-WEY5ZHDB.js → chunk-Q7OXI6VS.js} +5 -5
- package/dist/{chunk-APASKZ2I.js → chunk-QKU46TK5.js} +5 -3
- package/dist/chunk-QTOLNRET.js +169 -0
- package/dist/{chunk-TYTIDEBW.js → chunk-RH6KR6EH.js} +5 -5
- package/dist/{chunk-7RMSB4A2.js → chunk-RL7EOD6I.js} +87 -24
- package/dist/{chunk-BOVSUH4N.js → chunk-S6RNS4UL.js} +2 -2
- package/dist/{chunk-LY3OJFBW.js → chunk-T6RIKJUO.js} +2 -1
- package/dist/{chunk-YVO4HIHX.js → chunk-U2L42GVI.js} +12 -10
- package/dist/{chunk-BXK6ZJVJ.js → chunk-UVT6B6XN.js} +2 -2
- package/dist/{chunk-UCF3EZZL.js → chunk-VQPSWD3A.js} +13 -13
- package/dist/{chunk-XH3F66VD.js → chunk-VYBH6D4X.js} +3 -3
- package/dist/chunk-XCEN33UP.js +7 -0
- package/dist/{chunk-GTGXQ7FJ.js → chunk-XDCXTDHH.js} +11 -11
- package/dist/{chunk-OZLGTMIY.js → chunk-XSUJ2PQY.js} +2 -2
- package/dist/chunk-XUW2DRAQ.js +427 -0
- package/dist/{chunk-UHVD7BSV.js → chunk-XZRLFBEA.js} +6 -6
- package/dist/{chunk-AWMMABVB.js → chunk-ZMPR436Z.js} +52 -138
- package/dist/{chunk-PXUNPXOX.js → chunk-ZOP3I2GQ.js} +3 -3
- package/dist/codex-app-cards-switch-OUQ3DUWF.js +52 -0
- package/dist/codex-desktop-launch-EIFLPLB7.js +27 -0
- package/dist/codex-session-launch-KLH2FSSJ.js +331 -0
- package/dist/config-HX6ZNOIL.js +14 -0
- package/dist/{global-upgrade-AIUSS2YH.js → global-upgrade-AZN3BPI3.js} +8 -6
- package/dist/identity-AQIMUWYN.js +15 -0
- package/dist/live-capabilities-4IIFAMHU.js +53 -0
- package/dist/{paths-RO34TYNM.js → paths-X4IPV2WJ.js} +4 -2
- package/dist/{reapply-KTNPP4XE.js → reapply-CXODG53B.js} +27 -21
- package/dist/src/index.d.ts +3 -3
- package/dist/src/index.js +22 -19
- package/dist/{upgrade-lock-5UAGXIW7.js → upgrade-lock-AHISGKER.js} +5 -3
- package/dist/usage-ZC6BKIE3.js +10 -0
- package/package.json +1 -1
package/dist/bin/pushary-wait.js
CHANGED
|
@@ -4,36 +4,38 @@ import {
|
|
|
4
4
|
} from "../chunk-CVWG2N3Y.js";
|
|
5
5
|
import {
|
|
6
6
|
exitOnFailedSettingsRequest
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-JOWF4Y4P.js";
|
|
8
|
+
import "../chunk-6SWMKF5E.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "../chunk-FO3MDD26.js";
|
|
12
|
+
import {
|
|
13
|
+
exitOnHelpFlag
|
|
14
|
+
} from "../chunk-S6RNS4UL.js";
|
|
12
15
|
import {
|
|
13
16
|
rejectUnknownFlags
|
|
14
17
|
} from "../chunk-GMXKITVA.js";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import "../chunk-KEAIIVW3.js";
|
|
20
|
-
import "../chunk-34RXPM5U.js";
|
|
21
|
-
import "../chunk-ABMEBN2R.js";
|
|
22
|
-
import "../chunk-LY3OJFBW.js";
|
|
18
|
+
import "../chunk-VYBH6D4X.js";
|
|
19
|
+
import "../chunk-L5YTS2BP.js";
|
|
20
|
+
import "../chunk-EK7SZJ4K.js";
|
|
21
|
+
import "../chunk-T6RIKJUO.js";
|
|
23
22
|
import {
|
|
24
23
|
UsageError
|
|
25
24
|
} from "../chunk-7QLSKOSU.js";
|
|
26
25
|
import {
|
|
27
26
|
EXIT
|
|
28
27
|
} from "../chunk-KZERVKTD.js";
|
|
29
|
-
import "../chunk-
|
|
28
|
+
import "../chunk-4QQEUJL4.js";
|
|
29
|
+
import "../chunk-OML4YFBN.js";
|
|
30
|
+
import "../chunk-XUW2DRAQ.js";
|
|
30
31
|
import "../chunk-AQFEP65J.js";
|
|
31
32
|
import {
|
|
32
33
|
getApiKey,
|
|
33
34
|
getBaseUrl
|
|
34
|
-
} from "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
35
|
+
} from "../chunk-CQ5JGRML.js";
|
|
36
|
+
import "../chunk-MC4VY5LK.js";
|
|
37
|
+
import "../chunk-QTOLNRET.js";
|
|
38
|
+
import "../chunk-LF3TLC7B.js";
|
|
37
39
|
|
|
38
40
|
// bin/pushary-wait.ts
|
|
39
41
|
exitOnHelpFlag("wait");
|
package/dist/bin/pushary.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
installNetworkDefaults
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-EK7SZJ4K.js";
|
|
5
|
+
import "../chunk-T6RIKJUO.js";
|
|
6
6
|
import "../chunk-7QLSKOSU.js";
|
|
7
7
|
import {
|
|
8
8
|
EXIT
|
|
9
9
|
} from "../chunk-KZERVKTD.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-OML4YFBN.js";
|
|
11
|
+
import "../chunk-XUW2DRAQ.js";
|
|
11
12
|
import "../chunk-AQFEP65J.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-CQ5JGRML.js";
|
|
13
14
|
import {
|
|
14
|
-
|
|
15
|
+
LISTED_COMMANDS,
|
|
15
16
|
renderHelp,
|
|
16
17
|
resolveCommandName
|
|
17
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-MC4VY5LK.js";
|
|
18
19
|
import {
|
|
19
20
|
getPackageVersion
|
|
20
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-QTOLNRET.js";
|
|
22
|
+
import "../chunk-LF3TLC7B.js";
|
|
21
23
|
|
|
22
24
|
// src/cli/runtime.ts
|
|
23
25
|
var supportsRuntime = (version) => {
|
|
@@ -72,7 +74,7 @@ if (wants("--version", "-v") && resolved === null) {
|
|
|
72
74
|
if (resolved === null) {
|
|
73
75
|
process.stderr.write(`Unknown command: ${command}
|
|
74
76
|
`);
|
|
75
|
-
process.stderr.write(`Run \`pushary --help\`. Available: ${
|
|
77
|
+
process.stderr.write(`Run \`pushary --help\`. Available: ${LISTED_COMMANDS.map((c) => c.name).join(", ")}
|
|
76
78
|
`);
|
|
77
79
|
process.exit(EXIT.USAGE);
|
|
78
80
|
}
|
|
@@ -10,10 +10,14 @@ import {
|
|
|
10
10
|
resolvePackageVersionFromBinary,
|
|
11
11
|
resolvePathBinary,
|
|
12
12
|
resolvePathBinaryAsync
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XUW2DRAQ.js";
|
|
14
14
|
import {
|
|
15
15
|
MANAGED_PROVIDERS
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LF3TLC7B.js";
|
|
17
|
+
|
|
18
|
+
// src/setup/codex-install-probe.ts
|
|
19
|
+
import { existsSync, readdirSync, statSync } from "fs";
|
|
20
|
+
import { dirname, join } from "path";
|
|
17
21
|
|
|
18
22
|
// src/setup/codex-install.ts
|
|
19
23
|
var NATIVE_BINARY_MIN_BYTES = 20 * 1024 * 1024;
|
|
@@ -51,8 +55,6 @@ var checkCodexInstall = (probe) => {
|
|
|
51
55
|
};
|
|
52
56
|
|
|
53
57
|
// src/setup/codex-install-probe.ts
|
|
54
|
-
import { existsSync, readdirSync, statSync } from "fs";
|
|
55
|
-
import { dirname, join } from "path";
|
|
56
58
|
var listDir = (path) => {
|
|
57
59
|
try {
|
|
58
60
|
return readdirSync(path);
|
|
@@ -192,6 +194,14 @@ var trackProviderInventory = async (providers, onChange) => {
|
|
|
192
194
|
export {
|
|
193
195
|
checkCodexInstall,
|
|
194
196
|
nodeCodexInstallProbe,
|
|
197
|
+
CLAUDE_BRIDGE_CAPABILITY,
|
|
198
|
+
CLAUDE_RESUME_CAPABILITY,
|
|
199
|
+
CODEX_BRIDGE_CAPABILITY,
|
|
200
|
+
CODEX_RESUME_CAPABILITY,
|
|
201
|
+
GEMINI_BRIDGE_CAPABILITY,
|
|
202
|
+
GEMINI_RESUME_CAPABILITY,
|
|
203
|
+
geminiLiveCapabilities,
|
|
204
|
+
providerLiveCapabilities,
|
|
195
205
|
launchableProviders,
|
|
196
206
|
hasSpawnProvider,
|
|
197
207
|
resolveControlPolicy,
|
|
@@ -200,7 +210,10 @@ export {
|
|
|
200
210
|
resolveProviderBinary,
|
|
201
211
|
codexBinaryIsBroken,
|
|
202
212
|
detectProviderLiveCapabilities,
|
|
213
|
+
detectLaunchableProviderCapabilities,
|
|
214
|
+
SPAWN_CAPABILITY,
|
|
203
215
|
launchAdvertisement,
|
|
204
216
|
expectedLaunchCapabilities,
|
|
217
|
+
discoverProviderInventory,
|
|
205
218
|
trackProviderInventory
|
|
206
219
|
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// src/codex-engine-fallback.ts
|
|
2
|
+
import { spawn } from "child_process";
|
|
3
|
+
import { rmSync } from "fs";
|
|
4
|
+
import { join } from "path";
|
|
5
|
+
var CODEX_APP_LAUNCH_VARIABLE = "CODEX_CLI_PATH";
|
|
6
|
+
var CODEX_ENGINE_PENDING_VARIABLE = "PUSHARY_CODEX_ENGINE_PENDING";
|
|
7
|
+
var CODEX_ENGINE_DIRECTORY = "Contents/Resources/codex-cli";
|
|
8
|
+
var CODEX_ENGINE_ENTRYPOINT = "bin/codex";
|
|
9
|
+
var CODEX_ENGINE_MANIFEST = "codex-package.json";
|
|
10
|
+
var FORWARDED_SIGNALS = ["SIGINT", "SIGTERM", "SIGHUP"];
|
|
11
|
+
var COULD_NOT_RUN = 1;
|
|
12
|
+
var LEFT_TO_THE_LAUNCHER = 1;
|
|
13
|
+
var RUNS_WITHOUT_PUSHARY = "[pushary] Pushary could not start, so Codex runs without it.\n";
|
|
14
|
+
var NO_SUCH_PROCESS = "ESRCH";
|
|
15
|
+
var ADOPTED_BY_THE_SYSTEM = 1;
|
|
16
|
+
var codexEngineInside = (app) => join(app, CODEX_ENGINE_DIRECTORY, CODEX_ENGINE_ENTRYPOINT);
|
|
17
|
+
var codexEngineEnvironment = (engine) => {
|
|
18
|
+
const { [CODEX_ENGINE_PENDING_VARIABLE]: _pending, ...inherited } = process.env;
|
|
19
|
+
return { ...inherited, [CODEX_APP_LAUNCH_VARIABLE]: engine };
|
|
20
|
+
};
|
|
21
|
+
var launcherWaitingOnThisProcess = () => process.env[CODEX_ENGINE_PENDING_VARIABLE] ? process.ppid : null;
|
|
22
|
+
var launcherIsGone = (launcher) => {
|
|
23
|
+
if (launcher === ADOPTED_BY_THE_SYSTEM) return true;
|
|
24
|
+
try {
|
|
25
|
+
process.kill(launcher, 0);
|
|
26
|
+
return false;
|
|
27
|
+
} catch (error) {
|
|
28
|
+
return error instanceof Error && "code" in error && error.code === NO_SUCH_PROCESS;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
var tellTheLauncherTheEngineStarted = () => {
|
|
32
|
+
const pending = process.env[CODEX_ENGINE_PENDING_VARIABLE];
|
|
33
|
+
if (!pending) return;
|
|
34
|
+
try {
|
|
35
|
+
rmSync(pending, { force: true });
|
|
36
|
+
} catch {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var runTheEngineWithoutPushary = (app, engineArgs) => new Promise((resolve) => {
|
|
41
|
+
const engine = codexEngineInside(app);
|
|
42
|
+
const child = spawn(engine, [...engineArgs], { stdio: "inherit", env: codexEngineEnvironment(engine) });
|
|
43
|
+
const forward = (signal) => {
|
|
44
|
+
child.kill(signal);
|
|
45
|
+
};
|
|
46
|
+
const finish = (code) => {
|
|
47
|
+
for (const signal of FORWARDED_SIGNALS) process.off(signal, forward);
|
|
48
|
+
resolve(code);
|
|
49
|
+
};
|
|
50
|
+
for (const signal of FORWARDED_SIGNALS) process.on(signal, forward);
|
|
51
|
+
child.once("error", () => finish(COULD_NOT_RUN));
|
|
52
|
+
child.once("close", (code) => finish(code ?? COULD_NOT_RUN));
|
|
53
|
+
});
|
|
54
|
+
var letCodexRunWithoutPushary = (app, engineArgs) => {
|
|
55
|
+
if (launcherWaitingOnThisProcess() !== null) return Promise.resolve(LEFT_TO_THE_LAUNCHER);
|
|
56
|
+
process.stderr.write(RUNS_WITHOUT_PUSHARY);
|
|
57
|
+
return runTheEngineWithoutPushary(app, engineArgs);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
CODEX_APP_LAUNCH_VARIABLE,
|
|
62
|
+
CODEX_ENGINE_PENDING_VARIABLE,
|
|
63
|
+
CODEX_ENGINE_DIRECTORY,
|
|
64
|
+
CODEX_ENGINE_ENTRYPOINT,
|
|
65
|
+
CODEX_ENGINE_MANIFEST,
|
|
66
|
+
codexEngineInside,
|
|
67
|
+
codexEngineEnvironment,
|
|
68
|
+
launcherWaitingOnThisProcess,
|
|
69
|
+
launcherIsGone,
|
|
70
|
+
tellTheLauncherTheEngineStarted,
|
|
71
|
+
letCodexRunWithoutPushary
|
|
72
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OML4YFBN.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe
|
|
6
6
|
} from "./chunk-AQFEP65J.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LF3TLC7B.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-N77BH7H2.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Q7OXI6VS.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OML4YFBN.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LF3TLC7B.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
NOTIFICATION_MATCHED_TYPES,
|
|
7
7
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3RPN7AAT.js";
|
|
9
9
|
import {
|
|
10
10
|
isProtectedByScope,
|
|
11
11
|
registerHookEntry
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OML4YFBN.js";
|
|
13
13
|
import {
|
|
14
14
|
CLAUDE_PRETOOLUSE_MATCHER,
|
|
15
15
|
HOOK_BUDGETS,
|
|
16
16
|
HOOK_LOCATOR_BINARY
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LF3TLC7B.js";
|
|
18
18
|
|
|
19
19
|
// src/gemini-config.ts
|
|
20
20
|
var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VYBH6D4X.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MC4VY5LK.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OML4YFBN.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe,
|
|
6
6
|
writeFileAtomic
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
serializeDeclinedAgents,
|
|
14
14
|
withDeclinedAgent,
|
|
15
15
|
withoutDeclinedAgent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LF3TLC7B.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
readControlMode
|
|
3
|
-
} from "./chunk-XH3F66VD.js";
|
|
4
1
|
import {
|
|
5
2
|
needsShell,
|
|
6
3
|
spawnClaude
|
|
7
4
|
} from "./chunk-XHKBHWLX.js";
|
|
5
|
+
import {
|
|
6
|
+
readControlMode
|
|
7
|
+
} from "./chunk-VYBH6D4X.js";
|
|
8
8
|
import {
|
|
9
9
|
getMachineId
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-T6RIKJUO.js";
|
|
11
|
+
import {
|
|
12
|
+
pusharyDir
|
|
13
|
+
} from "./chunk-OML4YFBN.js";
|
|
11
14
|
import {
|
|
12
|
-
pusharyDir,
|
|
13
15
|
resolveGlobalBinary
|
|
14
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XUW2DRAQ.js";
|
|
15
17
|
import {
|
|
16
18
|
readJsonSafe,
|
|
17
19
|
writeFileAtomic,
|
|
@@ -20,15 +22,17 @@ import {
|
|
|
20
22
|
} from "./chunk-AQFEP65J.js";
|
|
21
23
|
import {
|
|
22
24
|
getApiKey
|
|
23
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CQ5JGRML.js";
|
|
24
26
|
import {
|
|
25
27
|
CLI_PACKAGE_NAMES,
|
|
26
28
|
cmdShimTarget,
|
|
27
29
|
getPackageVersion,
|
|
28
30
|
globalPackageFolder,
|
|
29
|
-
globalRootFor
|
|
31
|
+
globalRootFor
|
|
32
|
+
} from "./chunk-QTOLNRET.js";
|
|
33
|
+
import {
|
|
30
34
|
isRecord
|
|
31
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-LF3TLC7B.js";
|
|
32
36
|
|
|
33
37
|
// src/daemon-lifecycle.ts
|
|
34
38
|
import { dirname, join, win32 as win32Path } from "path";
|
|
@@ -1121,6 +1125,7 @@ export {
|
|
|
1121
1125
|
daemonHasRemoteProof,
|
|
1122
1126
|
daemonServiceManagerAvailable,
|
|
1123
1127
|
DAEMON_LEASE_RENEW_INTERVAL_MS,
|
|
1128
|
+
xml,
|
|
1124
1129
|
parseDaemonAction,
|
|
1125
1130
|
manageDaemonService,
|
|
1126
1131
|
hasDaemonServiceDefinition,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NPX_LATEST_COMMAND
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MC4VY5LK.js";
|
|
4
4
|
|
|
5
5
|
// src/config.ts
|
|
6
6
|
import { readFileSync } from "fs";
|
|
@@ -28,6 +28,9 @@ var warnOnKeyDrift = (envKey) => {
|
|
|
28
28
|
`
|
|
29
29
|
);
|
|
30
30
|
};
|
|
31
|
+
var resetKeyDriftWarning = () => {
|
|
32
|
+
driftChecked = false;
|
|
33
|
+
};
|
|
31
34
|
var getApiKey = () => {
|
|
32
35
|
const envKey = process.env.PUSHARY_API_KEY?.trim();
|
|
33
36
|
if (envKey) {
|
|
@@ -44,6 +47,7 @@ var getBaseUrl = () => process.env.PUSHARY_BASE_URL?.trim() || process.env.PUSHA
|
|
|
44
47
|
|
|
45
48
|
export {
|
|
46
49
|
configFilePath,
|
|
50
|
+
resetKeyDriftWarning,
|
|
47
51
|
getApiKey,
|
|
48
52
|
getBaseUrl
|
|
49
53
|
};
|