@pushary/agent-hooks 1.9.77 → 1.9.79
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 +24 -0
- package/dist/{api-IGMCPM35.js → api-T6DRYZOD.js} +10 -10
- package/dist/bin/pushary-bell-hook.js +25 -25
- package/dist/bin/pushary-bell.js +10 -10
- package/dist/bin/pushary-claude.js +26 -26
- package/dist/bin/pushary-clean.js +34 -34
- package/dist/bin/pushary-codex-bridge.js +21 -21
- package/dist/bin/pushary-codex-hook.js +30 -30
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +13 -13
- package/dist/bin/pushary-connect.js +26 -26
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +45 -42
- package/dist/bin/pushary-disconnect.js +25 -25
- package/dist/bin/pushary-display-hook.js +16 -16
- package/dist/bin/pushary-doctor.js +42 -42
- package/dist/bin/pushary-elicitation-hook.js +25 -25
- package/dist/bin/pushary-gemini-bridge.js +15 -15
- package/dist/bin/pushary-gemini-hook.js +27 -27
- package/dist/bin/pushary-hook.js +29 -29
- package/dist/bin/pushary-login.js +20 -20
- package/dist/bin/pushary-logout.js +24 -24
- package/dist/bin/pushary-mcp.js +11 -11
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +24 -24
- package/dist/bin/pushary-opencode-hook.js +26 -26
- package/dist/bin/pushary-permission-denied-hook.js +29 -29
- package/dist/bin/pushary-permission-hook.js +29 -29
- package/dist/bin/pushary-post-hook.js +24 -24
- package/dist/bin/pushary-prompt-hook.js +24 -24
- package/dist/bin/pushary-session-end-hook.js +26 -26
- package/dist/bin/pushary-session-start-hook.js +34 -34
- package/dist/bin/pushary-setup.js +57 -54
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +31 -31
- package/dist/bin/pushary-stop-hook.js +24 -24
- package/dist/bin/pushary-stopfailure-hook.js +24 -24
- package/dist/bin/pushary-suggestions.js +15 -15
- package/dist/bin/pushary-transcript-register.js +16 -16
- package/dist/bin/pushary-transcripts.js +18 -18
- package/dist/bin/pushary-upgrade.js +40 -40
- package/dist/bin/pushary-wait.js +15 -15
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-NHIEDRZR.js → chunk-236NGCTH.js} +27 -7
- package/dist/{chunk-2OWG667E.js → chunk-35M6YE6T.js} +1 -1
- package/dist/{chunk-QBCV27CM.js → chunk-3D3L4ULT.js} +3 -3
- package/dist/{chunk-KUI2KGRZ.js → chunk-3K67QTMR.js} +29 -20
- package/dist/{chunk-MRTGCXG4.js → chunk-4DSCZINL.js} +6 -6
- package/dist/{chunk-S2UHLCF5.js → chunk-4NRT3CEF.js} +3 -3
- package/dist/{chunk-LIEPMKTX.js → chunk-5HA42EV4.js} +1 -1
- package/dist/{chunk-GI3PX2JU.js → chunk-5HMSHKZT.js} +1 -1
- package/dist/{chunk-EFHCTIFT.js → chunk-5MKPJ3WR.js} +1 -1
- package/dist/{chunk-CS5PJXL7.js → chunk-5NWAWDRM.js} +6 -6
- package/dist/{chunk-PZWC3JXW.js → chunk-63JW566T.js} +5 -5
- package/dist/{chunk-6XOEYBWJ.js → chunk-7BALOMAV.js} +5 -3
- package/dist/{chunk-BUBC4R5J.js → chunk-7OSGGPBR.js} +2 -2
- package/dist/{chunk-XYNQA6YC.js → chunk-7R5ZKOQ4.js} +1 -1
- package/dist/{chunk-PGZFXNRJ.js → chunk-A2OAJ7CS.js} +1 -1
- package/dist/{chunk-IHT33GZN.js → chunk-AFCKBLEG.js} +1 -1
- package/dist/{chunk-CKUFXQUJ.js → chunk-AFNLCEHM.js} +3 -3
- package/dist/{chunk-OJ4EEE2B.js → chunk-ANNRW6VU.js} +6 -6
- package/dist/{chunk-CIMFZIGP.js → chunk-AVCPF3VS.js} +1 -1
- package/dist/{chunk-ESHMWZXX.js → chunk-BH7XLF5R.js} +5 -5
- package/dist/{chunk-EV47UGDK.js → chunk-BLG7OEX4.js} +1 -1
- package/dist/{chunk-TK3XMPG2.js → chunk-C7BK5C6K.js} +4 -4
- package/dist/{chunk-OXA2P5NJ.js → chunk-CB2Y4GEH.js} +14 -14
- package/dist/{chunk-4ZXFOT44.js → chunk-CH3CCVH4.js} +2 -2
- package/dist/{chunk-ABAWD6QM.js → chunk-CLE7EVOW.js} +3 -3
- package/dist/{chunk-NNV2XS3Y.js → chunk-CSJD7NN6.js} +6 -6
- package/dist/{chunk-QVP6F6BX.js → chunk-CX6EIW3N.js} +7 -7
- package/dist/{chunk-7HYNAA6B.js → chunk-DLPFYJ7G.js} +1 -1
- package/dist/{chunk-GV7FB5L3.js → chunk-EKVW5Y23.js} +4 -4
- package/dist/{chunk-PKHNZTHY.js → chunk-ERC6QW27.js} +3 -3
- package/dist/{chunk-K2MW33DG.js → chunk-GXW43S4A.js} +2 -2
- package/dist/{chunk-INBG473K.js → chunk-HGCUZQUL.js} +6 -3
- package/dist/{chunk-P7CGVHH5.js → chunk-IEJOZQ7N.js} +5 -5
- package/dist/{chunk-CU65AFT4.js → chunk-IPIJY4TI.js} +1 -1
- package/dist/{chunk-UUX6Q3CB.js → chunk-IYKY3ZAV.js} +2 -2
- package/dist/{chunk-LD5LSJ2B.js → chunk-J3QUMD2E.js} +2 -2
- package/dist/{chunk-RYDT6Y32.js → chunk-KLE2ZMSJ.js} +4 -4
- package/dist/{chunk-QS2IKPQW.js → chunk-L7FBI7N7.js} +4 -4
- package/dist/{chunk-GL34UITI.js → chunk-LTQJ2IMO.js} +3 -3
- package/dist/{chunk-FXQCSU4L.js → chunk-LXV53WHO.js} +3 -3
- package/dist/{chunk-PZXQUV3P.js → chunk-MVAP3NRX.js} +3 -3
- package/dist/{chunk-H4GOJIOK.js → chunk-NFRBLMM2.js} +4 -4
- package/dist/{chunk-FBLVK2WR.js → chunk-O7WSNZIR.js} +13 -13
- package/dist/{chunk-JLYVYHD2.js → chunk-OJS32QPK.js} +1 -1
- package/dist/{chunk-P4IFREOO.js → chunk-P2PPAW5E.js} +1 -1
- package/dist/{chunk-PAPUUZOP.js → chunk-PZ3OFAZ7.js} +14 -11
- package/dist/{chunk-JJPBWBAF.js → chunk-Q5J33E43.js} +6 -6
- package/dist/{chunk-7AQEWD2J.js → chunk-Q7J77QL2.js} +3 -3
- package/dist/{chunk-GOJO2OLP.js → chunk-QATBJHE6.js} +4 -4
- package/dist/{chunk-UU2CQFSJ.js → chunk-QZ5KIX6U.js} +2 -2
- package/dist/{chunk-D5NLXF72.js → chunk-RDXNJSXM.js} +3 -3
- package/dist/{chunk-SNHAXVCJ.js → chunk-RQOJ23I4.js} +1 -1
- package/dist/{chunk-UBQ3TG3B.js → chunk-SNQ5HQHE.js} +1 -1
- package/dist/{chunk-A3BF7SGM.js → chunk-TDW5LI6P.js} +3 -3
- package/dist/{chunk-SUOW4HJB.js → chunk-TRVJ6MS5.js} +5 -5
- package/dist/{chunk-DYDA77FS.js → chunk-UGP4FYMV.js} +4 -4
- package/dist/{chunk-J2NPFRDI.js → chunk-V3EN7LWU.js} +6 -6
- package/dist/{chunk-MQBQRXTN.js → chunk-VER45SAA.js} +5 -5
- package/dist/{chunk-HGVUTO67.js → chunk-WA4S6YAT.js} +3 -3
- package/dist/{chunk-2IOQHB3C.js → chunk-WB5PC4TL.js} +5 -5
- package/dist/{chunk-Y5YJLBML.js → chunk-WBC2ZXU7.js} +4 -4
- package/dist/{chunk-2YRNRYZW.js → chunk-WJVQOAZY.js} +1 -1
- package/dist/{chunk-QGOY3HNV.js → chunk-X7JGHARV.js} +6 -6
- package/dist/{chunk-7CU7OGWP.js → chunk-XKJYTP3G.js} +218 -159
- package/dist/{chunk-WFSE7NRM.js → chunk-XU2FL4B6.js} +2 -2
- package/dist/{chunk-3UYMJZXV.js → chunk-Z7AIEIM5.js} +2 -2
- package/dist/{chunk-PUF3BL6C.js → chunk-ZJGIJDWP.js} +1 -1
- package/dist/{chunk-ZZFYV26G.js → chunk-ZU7XS6PN.js} +2 -2
- package/dist/{codex-app-cards-switch-LTZCEFYB.js → codex-app-cards-switch-OWLU462R.js} +11 -11
- package/dist/{codex-desktop-launch-DBJBV66U.js → codex-desktop-launch-G37GNF4B.js} +1 -1
- package/dist/{codex-session-launch-6RTU73OP.js → codex-session-launch-AV2AL64X.js} +18 -18
- package/dist/{config-YREUMA6Z.js → config-PXISW4O5.js} +3 -3
- package/dist/{global-upgrade-EYLSJXXN.js → global-upgrade-JWI5XIZP.js} +10 -10
- package/dist/{identity-WIM6NVLP.js → identity-JAXJ3FOD.js} +4 -4
- package/dist/{live-capabilities-SU3BEP2Z.js → live-capabilities-7PPQ2HPU.js} +5 -5
- package/dist/{paths-XV3FXWOM.js → paths-YV3ZK5LT.js} +3 -3
- package/dist/{reapply-Q7QC3MWL.js → reapply-YHJHUTFY.js} +27 -27
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +28 -28
- package/dist/{upgrade-lock-A2ALHHUG.js → upgrade-lock-I4JPC4WG.js} +4 -4
- package/dist/{usage-UNEATRXG.js → usage-FZTPRQRP.js} +3 -3
- package/package.json +1 -1
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
McpToolError,
|
|
7
7
|
SubscriptionRequiredError,
|
|
8
8
|
callMcpTool
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EKVW5Y23.js";
|
|
10
10
|
import {
|
|
11
11
|
installNetworkDefaults,
|
|
12
12
|
isNetworkFailure
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Q7J77QL2.js";
|
|
14
14
|
import {
|
|
15
15
|
clientReportClaims
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MVAP3NRX.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey,
|
|
19
19
|
getBaseUrl
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AFCKBLEG.js";
|
|
21
21
|
import {
|
|
22
22
|
ASK_AGENT_NAME_MAX,
|
|
23
23
|
CLIENT_REPORT_PATH,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
TOOL_FAILURE_CODES,
|
|
27
27
|
degradedLine,
|
|
28
28
|
truncateLine
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HGCUZQUL.js";
|
|
30
30
|
|
|
31
31
|
// src/api.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_CHOICES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZJGIJDWP.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5MKPJ3WR.js";
|
|
7
7
|
import {
|
|
8
8
|
CLAUDE_HOOK_EVENTS,
|
|
9
9
|
CODEX_HOOK_EVENTS,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
holdBudgetOf,
|
|
13
13
|
isProtectedByScope,
|
|
14
14
|
registerHookEntry
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MVAP3NRX.js";
|
|
16
16
|
import {
|
|
17
17
|
CURSOR_GATE_EVENTS,
|
|
18
18
|
HOOK_BUDGETS,
|
|
19
19
|
HOOK_LOCATOR_BINARY,
|
|
20
20
|
hookCommandHoldBudget
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HGCUZQUL.js";
|
|
22
22
|
|
|
23
23
|
// src/diagnostics/bridge.ts
|
|
24
24
|
import { execFileSync } from "child_process";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureCodexTrustsPusharyHooks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QZ5KIX6U.js";
|
|
4
4
|
import {
|
|
5
5
|
hermesReceiptPaths,
|
|
6
6
|
hermesSetupPredatesThePluginFolder,
|
|
7
7
|
installHermesPlugin,
|
|
8
8
|
refreshHermesPluginFiles,
|
|
9
9
|
shippedHermesPlugin
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XKJYTP3G.js";
|
|
11
11
|
import {
|
|
12
12
|
fxIgnoresInstructionsFile,
|
|
13
13
|
fxInstructionsBody,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
macAppFxBridge,
|
|
17
17
|
refreshClineKey,
|
|
18
18
|
switchFxHttpEntryToBridge
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IEJOZQ7N.js";
|
|
20
20
|
import {
|
|
21
21
|
OPENCODE_HOOK_BINARY,
|
|
22
22
|
agentHookOwner,
|
|
@@ -28,16 +28,16 @@ import {
|
|
|
28
28
|
openCodePluginDir,
|
|
29
29
|
openCodeWired,
|
|
30
30
|
withOpenCodeAskRules
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-V3EN7LWU.js";
|
|
32
32
|
import {
|
|
33
33
|
detectClaudeVersion
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-WA4S6YAT.js";
|
|
35
35
|
import {
|
|
36
36
|
addCompatibleHooks,
|
|
37
37
|
compatibleConfigFile,
|
|
38
38
|
compatibleInstructionsFile,
|
|
39
39
|
hasCompatibleHooks
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-NFRBLMM2.js";
|
|
41
41
|
import {
|
|
42
42
|
GEMINI_HOOK_BINARY,
|
|
43
43
|
addGeminiHooks,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
geminiWired,
|
|
50
50
|
hasGeminiHooks,
|
|
51
51
|
planHooks
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-C7BK5C6K.js";
|
|
53
53
|
import {
|
|
54
54
|
CLAUDE_HOOK_BINARY,
|
|
55
55
|
CLAUDE_HOOK_EVENTS,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
renderAgentInstructions,
|
|
95
95
|
supportedClaudeEvents,
|
|
96
96
|
vscodePluginMcp
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-MVAP3NRX.js";
|
|
98
98
|
import {
|
|
99
99
|
formatVersion,
|
|
100
100
|
readJsonSafe,
|
|
@@ -102,12 +102,12 @@ import {
|
|
|
102
102
|
resolveGlobalBinary,
|
|
103
103
|
writeFileAtomic,
|
|
104
104
|
writeJsonAtomic
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-CLE7EVOW.js";
|
|
106
106
|
import {
|
|
107
107
|
HOOK_COMPATIBLE_PROFILES,
|
|
108
108
|
isCompatibleAgentType,
|
|
109
109
|
isRecord
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-HGCUZQUL.js";
|
|
111
111
|
|
|
112
112
|
// src/reapply.ts
|
|
113
113
|
import { dirname, join } from "path";
|
|
@@ -477,15 +477,15 @@ var HERMES_MIGRATION_RESULTS = {
|
|
|
477
477
|
no_launcher: { configured: false, reapplied: false, hooks: false, mcp: false },
|
|
478
478
|
failed: FAILED_REAPPLY
|
|
479
479
|
};
|
|
480
|
-
var reapplyHermesPlugin = () => {
|
|
480
|
+
var reapplyHermesPlugin = async () => {
|
|
481
481
|
const plugin = shippedHermesPlugin();
|
|
482
482
|
if (hermesSetupPredatesThePluginFolder()) {
|
|
483
|
-
return HERMES_MIGRATION_RESULTS[installHermesPlugin({ installedBy: "cli", plugin, receipts: hermesReceiptPaths() }).kind];
|
|
483
|
+
return HERMES_MIGRATION_RESULTS[(await installHermesPlugin({ installedBy: "cli", plugin, receipts: hermesReceiptPaths() })).kind];
|
|
484
484
|
}
|
|
485
485
|
return HERMES_REFRESH_RESULTS[refreshHermesPluginFiles("cli", plugin)];
|
|
486
486
|
};
|
|
487
487
|
var noInstructionBlock = () => null;
|
|
488
|
-
var reapplyAllAgents = (apiKey, options = {}) => {
|
|
488
|
+
var reapplyAllAgents = async (apiKey, options = {}) => {
|
|
489
489
|
const appAvailable = (options.appAvailable ?? macAppBridgeAvailable)();
|
|
490
490
|
const runners = [
|
|
491
491
|
{ id: "claude", label: "Claude Code", run: () => reapplyClaudeSettings(apiKey), instructions: noInstructionBlock },
|
|
@@ -526,7 +526,7 @@ var reapplyAllAgents = (apiKey, options = {}) => {
|
|
|
526
526
|
done.push({ id: runner.id, label: runner.label, heldBy: "app", result: KEPT_FOR_APP, instructions: null });
|
|
527
527
|
continue;
|
|
528
528
|
}
|
|
529
|
-
const result = runner.run();
|
|
529
|
+
const result = await runner.run();
|
|
530
530
|
if (result.configured) {
|
|
531
531
|
done.push({ id: runner.id, label: runner.label, heldBy: "cli", result, instructions: refreshAgentInstructions(runner.instructions) });
|
|
532
532
|
}
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UGP4FYMV.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-35M6YE6T.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -443,9 +443,9 @@ var installGlobally = (options) => {
|
|
|
443
443
|
}
|
|
444
444
|
const started = (async () => {
|
|
445
445
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
446
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
447
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
448
|
-
const { autoUpdateLock } = await import("./paths-
|
|
446
|
+
const { withUpgradeLock } = await import("./global-upgrade-JWI5XIZP.js");
|
|
447
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-I4JPC4WG.js");
|
|
448
|
+
const { autoUpdateLock } = await import("./paths-YV3ZK5LT.js");
|
|
449
449
|
let result = "skipped";
|
|
450
450
|
const install = async () => {
|
|
451
451
|
const platform = process.platform;
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7OSGGPBR.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WBC2ZXU7.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,25 +18,25 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RDXNJSXM.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MVAP3NRX.js";
|
|
27
27
|
import {
|
|
28
28
|
execNpm,
|
|
29
29
|
fetchLatestPublishedVersion,
|
|
30
30
|
npmErrorMessage,
|
|
31
31
|
readGlobalCliInstallAt,
|
|
32
32
|
readGlobalPrefix
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-CLE7EVOW.js";
|
|
34
34
|
import {
|
|
35
35
|
EXIT
|
|
36
36
|
} from "./chunk-KZERVKTD.js";
|
|
37
37
|
import {
|
|
38
38
|
NPX_LATEST_COMMAND
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-35M6YE6T.js";
|
|
40
40
|
import {
|
|
41
41
|
commandsPackage,
|
|
42
42
|
globalUpgradeEntry,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerTranscript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PZ3OFAZ7.js";
|
|
4
4
|
import {
|
|
5
5
|
namedEvent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NFRBLMM2.js";
|
|
7
7
|
import {
|
|
8
8
|
isBridgeLocator,
|
|
9
9
|
liveBridgeProbe,
|
|
10
10
|
pusharyHookExecutable,
|
|
11
11
|
resolveBridgeStub
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-C7BK5C6K.js";
|
|
13
13
|
import {
|
|
14
14
|
writeDegraded
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BH7XLF5R.js";
|
|
16
16
|
import {
|
|
17
17
|
cursorUserHooks
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MVAP3NRX.js";
|
|
19
19
|
import {
|
|
20
20
|
atLeast,
|
|
21
21
|
parseVersion
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CLE7EVOW.js";
|
|
23
23
|
import {
|
|
24
24
|
CURSOR_GATE_COVERAGE,
|
|
25
25
|
CURSOR_GATE_SCRIPT,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
isGrokSessionEndStop,
|
|
34
34
|
isRecord,
|
|
35
35
|
toolsCoveredByGateEntry
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-HGCUZQUL.js";
|
|
37
37
|
|
|
38
38
|
// src/tool-hook-input.ts
|
|
39
39
|
var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode", "cursor_version"];
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
keyCheckFromResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AFNLCEHM.js";
|
|
4
4
|
import {
|
|
5
5
|
installNetworkDefaults
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Q7J77QL2.js";
|
|
7
7
|
import {
|
|
8
8
|
getBaseUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AFCKBLEG.js";
|
|
10
10
|
import {
|
|
11
11
|
isRecord,
|
|
12
12
|
isToolErrorResult,
|
|
13
13
|
toolFailureCodeOfResult
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HGCUZQUL.js";
|
|
15
15
|
|
|
16
16
|
// src/retry.ts
|
|
17
17
|
var isRetryable = (err) => {
|
|
@@ -9,20 +9,20 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-236NGCTH.js";
|
|
13
13
|
import {
|
|
14
14
|
writeHuman
|
|
15
15
|
} from "./chunk-QCGNGEGE.js";
|
|
16
16
|
import {
|
|
17
17
|
xml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Q5J33E43.js";
|
|
19
19
|
import {
|
|
20
20
|
CODEX_APP_LAUNCH_AT_LOGIN_VERB,
|
|
21
21
|
CODEX_APP_LAUNCH_VARIABLE
|
|
22
22
|
} from "./chunk-E46NE7FB.js";
|
|
23
23
|
import {
|
|
24
24
|
writeFileAtomic
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CLE7EVOW.js";
|
|
26
26
|
|
|
27
27
|
// src/codex-app-cards-switch.ts
|
|
28
28
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
@@ -128,18 +128,19 @@ var codexQuestionAnswerReason = (answers) => {
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
// ../contracts/src/claude-connector.ts
|
|
131
|
+
var CLAUDE_DIRECTORY_URL = "https://claude.ai/directory/pushary";
|
|
131
132
|
var CLAUDE_CONNECTOR_URL = "https://pushary.com/api/mcp/mcp";
|
|
132
133
|
var CLAUDE_CONNECTOR_GUIDE = "https://pushary.com/docs/agents/guides/claude-desktop";
|
|
133
134
|
var COWORK_CONNECTOR_LIMIT = "Pushary\u2019s Cowork connector is cooperative: Claude chooses when to ask. It does not intercept Claude\u2019s native permission prompts or start new Cowork tasks.";
|
|
134
135
|
var CLAUDE_CONNECTOR_STEPS = [
|
|
135
|
-
|
|
136
|
-
"
|
|
136
|
+
`Open ${CLAUDE_DIRECTORY_URL} and choose Connect.`,
|
|
137
|
+
"Sign in with the same Pushary account used by your phone and Mac app.",
|
|
137
138
|
"Enable Pushary in the Chat or Cowork conversation. Approve access to its tools if Claude asks.",
|
|
138
139
|
"For proactive Cowork use, install the Pushary Cowork plugin/skill or paste the standing instructions into Settings > Cowork.",
|
|
139
140
|
"Ask Claude to send the test question below, answer it from Pushary, and confirm Claude receives your answer."
|
|
140
141
|
];
|
|
141
142
|
var CLAUDE_CONNECTOR_TEST = "Use Pushary ask_user to ask \u201CDid this setup question reach you?\u201D with type \u201Cconfirm\u201D. Use agentName \u201CClaude Cowork - Setup check\u201D in Cowork or \u201CClaude Chat - Setup check\u201D in Chat. Wait for my answer and tell me which answer you received. Do not run a command or change any files.";
|
|
142
|
-
var COWORK_STANDING_INSTRUCTIONS = `Pushary is connected as a
|
|
143
|
+
var COWORK_STANDING_INSTRUCTIONS = `Pushary is connected as a connector. Use it proactively to reach me on my phone or Mac notch.
|
|
143
144
|
|
|
144
145
|
- When you need a decision or clarifying answer, call ask_user. Use type "confirm", "select", or "input" as appropriate. Ask once on one channel.
|
|
145
146
|
- Before a risky or irreversible action outside my existing authorization, call ask_user with type "confirm" and wait for approval. Silence is never consent.
|
|
@@ -1188,6 +1189,7 @@ var CLAUDE_WAKE = {
|
|
|
1188
1189
|
retainedAttempts: 128,
|
|
1189
1190
|
directory: "run/claude-wake"
|
|
1190
1191
|
};
|
|
1192
|
+
var isClaudeWakePrompt = (prompt) => typeof prompt === "string" && prompt.trim() === CLAUDE_WAKE.message;
|
|
1191
1193
|
var versionAtLeast = (version, floor) => {
|
|
1192
1194
|
if (!version || !/^\d+\.\d+\.\d+$/.test(version)) return false;
|
|
1193
1195
|
const parts = version.split(".").map(Number);
|
|
@@ -7125,6 +7127,7 @@ export {
|
|
|
7125
7127
|
COMMAND_RECOVERY,
|
|
7126
7128
|
isCommandAcknowledgementReceipt,
|
|
7127
7129
|
CLAUDE_WAKE,
|
|
7130
|
+
isClaudeWakePrompt,
|
|
7128
7131
|
claudeWakeDecision,
|
|
7129
7132
|
CLAUDE_WAKE_API,
|
|
7130
7133
|
claudeWakeWaitingOn,
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3D3L4ULT.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Z7AIEIM5.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UGP4FYMV.js";
|
|
14
14
|
import {
|
|
15
15
|
CLINE_SERVER_NAME_TAKEN,
|
|
16
16
|
CLINE_SETTINGS_REFUSALS,
|
|
@@ -32,13 +32,13 @@ import {
|
|
|
32
32
|
withClinePusharyServer,
|
|
33
33
|
withRefreshedClineKey,
|
|
34
34
|
withoutClinePusharyServer
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-MVAP3NRX.js";
|
|
36
36
|
import {
|
|
37
37
|
readJsonSafe,
|
|
38
38
|
resolveGlobalBinary,
|
|
39
39
|
writeFileAtomic,
|
|
40
40
|
writeJsonAtomic
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-CLE7EVOW.js";
|
|
42
42
|
|
|
43
43
|
// src/fx-config.ts
|
|
44
44
|
var FX_SERVER_NAME = "pushary";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
reachVerdict,
|
|
13
13
|
reachesYou,
|
|
14
14
|
verifyDelivery
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-X7JGHARV.js";
|
|
16
16
|
import {
|
|
17
17
|
humanIsTty,
|
|
18
18
|
writeHuman
|
|
@@ -24,14 +24,14 @@ import {
|
|
|
24
24
|
} from "./chunk-FO3MDD26.js";
|
|
25
25
|
import {
|
|
26
26
|
reportedInstallSource
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-GXW43S4A.js";
|
|
28
28
|
import {
|
|
29
29
|
NPX_LATEST_COMMAND
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-35M6YE6T.js";
|
|
31
31
|
import {
|
|
32
32
|
NO_PAIRING_COMPUTER,
|
|
33
33
|
PAIR_TTL_SECONDS
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-HGCUZQUL.js";
|
|
35
35
|
|
|
36
36
|
// src/onboarding.ts
|
|
37
37
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X7JGHARV.js";
|
|
4
4
|
import {
|
|
5
5
|
canChangeApprovalSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZU7XS6PN.js";
|
|
7
7
|
import {
|
|
8
8
|
matchMacAccountStep,
|
|
9
9
|
retryAgentCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3D3L4ULT.js";
|
|
11
11
|
import {
|
|
12
12
|
EXIT
|
|
13
13
|
} from "./chunk-KZERVKTD.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-35M6YE6T.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/closing.ts
|
|
19
19
|
var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MVAP3NRX.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe,
|
|
6
6
|
writeFileAtomic
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CLE7EVOW.js";
|
|
8
8
|
import {
|
|
9
9
|
DECLINED_AGENTS_FILE,
|
|
10
10
|
DISCONNECT_AGENT_IDS,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
serializeDeclinedAgents,
|
|
14
14
|
withDeclinedAgent,
|
|
15
15
|
withoutDeclinedAgent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HGCUZQUL.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MVAP3NRX.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CLE7EVOW.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HGCUZQUL.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
quoteIfNeeded,
|
|
5
5
|
shellDoubleQuoted,
|
|
6
6
|
writeFileAtomic
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CLE7EVOW.js";
|
|
8
8
|
import {
|
|
9
9
|
CLAUDE_PRETOOLUSE_MATCHER,
|
|
10
10
|
CODEX_QUESTION_TOOLS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
HOOK_LOCATOR_BINARY,
|
|
13
13
|
PRETOOLUSE_GATED_TOOLS,
|
|
14
14
|
withHookHoldBudget
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HGCUZQUL.js";
|
|
16
16
|
|
|
17
17
|
// src/setup/paths.ts
|
|
18
18
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -542,7 +542,7 @@ var ESTABLISHED = [1, 0, 0];
|
|
|
542
542
|
var OBSERVED = [2, 0, 0];
|
|
543
543
|
var CLAUDE_HOOK_BINARY = "pushary-hook";
|
|
544
544
|
var CLAUDE_HOOK_EVENTS = [
|
|
545
|
-
{ event: "MessageDisplay", binary: "pushary-display-hook", timeout: 1, delivery: "telemetry", since: [2, 1, 308] },
|
|
545
|
+
{ event: "MessageDisplay", binary: "pushary-display-hook", timeout: 1, delivery: "telemetry", delaysDisplay: true, since: [2, 1, 308] },
|
|
546
546
|
{ event: "PreToolUse", binary: CLAUDE_HOOK_BINARY, matcher: CLAUDE_PRETOOLUSE_MATCHER, timeout: HOOK_BUDGETS.claude.budgetSeconds, delivery: "approval", since: ESTABLISHED },
|
|
547
547
|
{ event: "PostToolUse", binary: "pushary-post-hook", matcher: MIRRORED_TOOLS, timeout: 10, delivery: "telemetry", since: ESTABLISHED },
|
|
548
548
|
{ event: "Stop", binary: "pushary-stop-hook", timeout: 10, delivery: "telemetry", since: ESTABLISHED },
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-C7BK5C6K.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT,
|
|
7
7
|
compatibleToolLookup
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3K67QTMR.js";
|
|
9
9
|
import {
|
|
10
10
|
CLAUDE_HOOK_EVENTS,
|
|
11
11
|
PUSHARY_MCP_URL,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
isPusharyHook,
|
|
18
18
|
registerHookEntry,
|
|
19
19
|
removeClaudeMcpServers
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MVAP3NRX.js";
|
|
21
21
|
import {
|
|
22
22
|
HOOK_COMPATIBLE_PROFILES,
|
|
23
23
|
PHONE_ANSWERED_TOOLS,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
pusharyMissingReason,
|
|
29
29
|
refusalOutput,
|
|
30
30
|
withHookHoldBudget
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-HGCUZQUL.js";
|
|
32
32
|
|
|
33
33
|
// src/config-document.ts
|
|
34
34
|
import { parse, stringify } from "smol-toml";
|