pushary 1.9.248 → 1.9.249
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 +6 -0
- package/dist/{api-JNDTCRDI.js → api-NCCKFLNT.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 +15 -15
- package/dist/bin/pushary-claude.js +26 -26
- package/dist/bin/pushary-clean.js +60 -50
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +34 -34
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +35 -35
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +46 -46
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +11 -10
- package/dist/bin/pushary-doctor.js +47 -47
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +23 -23
- package/dist/bin/pushary-logout.js +31 -31
- 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-bridge.js +22 -22
- package/dist/bin/pushary-opencode-hook.js +32 -32
- package/dist/bin/pushary-permission-denied-hook.js +34 -34
- package/dist/bin/pushary-permission-hook.js +35 -35
- 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 +27 -27
- package/dist/bin/pushary-session-start-hook.js +39 -39
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +58 -58
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +36 -36
- 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 +17 -17
- package/dist/bin/pushary-transcripts.js +26 -26
- package/dist/bin/pushary-upgrade.js +47 -47
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-OQKHIPBP.js → chunk-2E23LSLT.js} +1 -1
- package/dist/{chunk-HZKJDYMC.js → chunk-2R2LXG6H.js} +11 -11
- package/dist/{chunk-YCTVFTIJ.js → chunk-33IFGELL.js} +1 -1
- package/dist/{chunk-BHNE3B4N.js → chunk-3BFJF63Q.js} +5 -5
- package/dist/{chunk-CFYIPK3Q.js → chunk-3DGOI6YH.js} +5 -5
- package/dist/{chunk-ODJIPVPE.js → chunk-3PWAFQCI.js} +1 -1
- package/dist/{chunk-EOH37KY4.js → chunk-3S4OKDZR.js} +1 -1
- package/dist/{chunk-7MJFRGZI.js → chunk-4E3KK4PH.js} +3 -3
- package/dist/{chunk-SFA5AJXE.js → chunk-4QTDUXS5.js} +1 -1
- package/dist/{chunk-55AWCAXX.js → chunk-5L7YJPS2.js} +1 -1
- package/dist/{chunk-NL7VOLFF.js → chunk-5Y7CYSQO.js} +2 -2
- package/dist/{chunk-R2GFJBJ7.js → chunk-7SIC6DRK.js} +6 -6
- package/dist/{chunk-M5MNTSKF.js → chunk-ACG4HJ27.js} +1 -1
- package/dist/{chunk-ZGH4BBEE.js → chunk-AKGJQEGR.js} +1 -1
- package/dist/{chunk-Y324OMEM.js → chunk-AKT3UR6S.js} +2 -2
- package/dist/{chunk-PB2RDTNL.js → chunk-AV5QS5FQ.js} +4 -4
- package/dist/{chunk-7KMY56VX.js → chunk-BMVNMKVL.js} +3 -3
- package/dist/{chunk-I5QHOUQD.js → chunk-BZJ22MT6.js} +1 -1
- package/dist/{chunk-PB5AFG7I.js → chunk-DIGV5AQW.js} +4 -4
- package/dist/{chunk-6VV7JF4X.js → chunk-DRLY2ELW.js} +2 -2
- package/dist/{chunk-HJ4PGNOZ.js → chunk-DT6NJLC3.js} +1 -1
- package/dist/{chunk-6A7ZGVAH.js → chunk-FJBU6OWM.js} +2 -2
- package/dist/{chunk-7TU2EARB.js → chunk-FM7FNY5J.js} +1 -1
- package/dist/{chunk-CHNTMPMN.js → chunk-FS4VJTFC.js} +1 -1
- package/dist/{chunk-IS5OFQX5.js → chunk-FZBLNBFS.js} +6 -6
- package/dist/{chunk-UNC7ZVPO.js → chunk-G76IPLDX.js} +1 -1
- package/dist/{chunk-3HXCWQEB.js → chunk-GFGSIDHQ.js} +5 -5
- package/dist/{chunk-VN7LLOHS.js → chunk-GISC7J7K.js} +1 -1
- package/dist/{chunk-GII3NDC7.js → chunk-GPGUGAO7.js} +1 -1
- package/dist/{chunk-RS3YAAF5.js → chunk-IA44JTLJ.js} +2 -2
- package/dist/{chunk-5W2N7FUP.js → chunk-IR6ZNTDK.js} +10 -10
- package/dist/{chunk-TZGG7TZ7.js → chunk-JZCSXMWF.js} +4 -4
- package/dist/{chunk-QW2IE42A.js → chunk-K63QVFSB.js} +4 -4
- package/dist/{chunk-OVLD5E3C.js → chunk-KFRYGJS5.js} +4 -4
- package/dist/{chunk-FQK4JJIG.js → chunk-KIYUQ2XZ.js} +3 -3
- package/dist/{chunk-G5SDTTPE.js → chunk-KT7COQH2.js} +3 -3
- package/dist/{chunk-Y2U4BK6A.js → chunk-LRCWZNYY.js} +5 -5
- package/dist/{chunk-5ZZYSCCK.js → chunk-MAXV4AZR.js} +2 -2
- package/dist/{chunk-7CBNOB4W.js → chunk-MGKF5FLQ.js} +3 -3
- package/dist/{chunk-RRKV5NXA.js → chunk-MQGFUEYG.js} +1 -1
- package/dist/{chunk-V2QH2IF4.js → chunk-NC24UL7K.js} +1 -1
- package/dist/{chunk-XDKAZ4ML.js → chunk-NFYD5TJK.js} +2 -2
- package/dist/{chunk-VMTOLJ7H.js → chunk-NLAT5MMY.js} +4 -4
- package/dist/{chunk-P5G56ZPF.js → chunk-NLHVEM3C.js} +7 -7
- package/dist/{chunk-RD26R7OG.js → chunk-NQ6KV722.js} +53 -25
- package/dist/{chunk-SIVR6FMH.js → chunk-OD2I3DD6.js} +3 -3
- package/dist/{chunk-QPKHM2JR.js → chunk-PFN76FSF.js} +1 -1
- package/dist/{chunk-SD62A5GO.js → chunk-PNZPLFKE.js} +3 -3
- package/dist/{chunk-YJDVXM6B.js → chunk-QLHSLYOR.js} +5 -5
- package/dist/{chunk-PQLJX5V5.js → chunk-QLKUYP7Z.js} +1 -1
- package/dist/{chunk-CB53NUPZ.js → chunk-QR2OSVGC.js} +2 -2
- package/dist/{chunk-YCTWIV3O.js → chunk-QTXUETWK.js} +9 -9
- package/dist/{chunk-JIGSYU3I.js → chunk-RRUZZQ74.js} +5 -5
- package/dist/{chunk-MC7X7Y72.js → chunk-S5VZAJZC.js} +2 -2
- package/dist/{chunk-B37LVP55.js → chunk-S7CJ2L7L.js} +12 -12
- package/dist/{chunk-FFJK7AQN.js → chunk-SVHLXOER.js} +4 -4
- package/dist/{chunk-ZE4EMKVF.js → chunk-SYYPELYT.js} +2 -2
- package/dist/{chunk-KTBSM5BZ.js → chunk-TM3WECNP.js} +5 -5
- package/dist/{chunk-ZLLPXMRS.js → chunk-TTUKVQTQ.js} +3 -3
- package/dist/{chunk-FVU5QX5O.js → chunk-UE5QZNZO.js} +7 -7
- package/dist/{chunk-GKHR5XBN.js → chunk-UNATZHHI.js} +5 -5
- package/dist/{chunk-7IA3IHIP.js → chunk-USMEX5WO.js} +1 -1
- package/dist/{chunk-D4UAI6HC.js → chunk-UWVA7YWR.js} +5 -5
- package/dist/{chunk-ZCEJGVLU.js → chunk-UXXYHW6B.js} +2 -2
- package/dist/{chunk-NLCVVRBM.js → chunk-V4DMA2GT.js} +1 -1
- package/dist/{chunk-5AKAVITV.js → chunk-VSPTVHE2.js} +8 -8
- package/dist/{chunk-FDF2SVKY.js → chunk-VUDAFOQU.js} +16 -16
- package/dist/{chunk-3TRLRZPQ.js → chunk-WE7TYQVB.js} +3 -3
- package/dist/{chunk-JQXI7BTB.js → chunk-WGZFBSXM.js} +3 -3
- package/dist/{chunk-C2Q2RKMW.js → chunk-WILH4LFK.js} +6 -6
- package/dist/{chunk-HQVX72I5.js → chunk-WYIJA2GH.js} +4 -4
- package/dist/{chunk-PIQEHAE6.js → chunk-X37REV7T.js} +1 -1
- package/dist/{chunk-W4FTSTVX.js → chunk-XJR2JCWQ.js} +6 -6
- package/dist/{chunk-OGWNLLSP.js → chunk-Y4R3NQQG.js} +4 -4
- package/dist/{chunk-F3IEGX22.js → chunk-YONUK2EY.js} +1 -1
- package/dist/{chunk-QSUZ6VFZ.js → chunk-YRIECI5K.js} +4 -4
- package/dist/{chunk-7ZII3ML4.js → chunk-ZCRO6HW2.js} +3 -3
- package/dist/{chunk-UBF33S4N.js → chunk-ZGA2LFVD.js} +3 -3
- package/dist/{chunk-CNVLEV5C.js → chunk-ZPSLQQ4F.js} +6 -6
- package/dist/{chunk-GJ4DA7T6.js → chunk-ZQYYPDFT.js} +5 -5
- package/dist/{codex-app-cards-switch-PRV6KOP7.js → codex-app-cards-switch-J3AR3LN3.js} +11 -11
- package/dist/{codex-card-routing-XS3PVOLV.js → codex-card-routing-K6LLM4TA.js} +2 -2
- package/dist/{codex-desktop-launch-VDIJSCRI.js → codex-desktop-launch-FK53DJ36.js} +3 -3
- package/dist/{codex-session-launch-73HH73PM.js → codex-session-launch-PY52DUMW.js} +20 -20
- package/dist/{config-VKRXIGVG.js → config-2NISBOJX.js} +3 -3
- package/dist/{global-upgrade-PNQ3HSAM.js → global-upgrade-2CK75GFZ.js} +9 -9
- package/dist/{identity-BWM7VQDE.js → identity-T2EYYWQJ.js} +4 -4
- package/dist/{live-capabilities-YD2DTK4Q.js → live-capabilities-V4LJIPMB.js} +4 -4
- package/dist/{paths-3KEGCYO4.js → paths-XULGFNML.js} +3 -3
- package/dist/{reapply-FVXAYQ5N.js → reapply-KAEIPK36.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-DM4E4ZKY.js → upgrade-lock-TPOCYNQ3.js} +4 -4
- package/dist/{usage-5TIJL7T2.js → usage-SMB3WYHN.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-XKFSN65O.js → chunk-BDMNQBP4.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
claudeConfigDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NQ6KV722.js";
|
|
4
4
|
import {
|
|
5
5
|
claudePermissionRulesFromSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BDMNQBP4.js";
|
|
7
7
|
|
|
8
8
|
// src/claude-permission-rules.ts
|
|
9
9
|
import { readFileSync, statSync } from "fs";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
uninstallOpenClawPlugin,
|
|
17
17
|
unsetOpenClawEntry,
|
|
18
18
|
writeOpenClawEntry
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MGKF5FLQ.js";
|
|
20
20
|
import {
|
|
21
21
|
needsShell
|
|
22
22
|
} from "./chunk-3PSNUHC5.js";
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
openClawDirectoriesToLookIn,
|
|
29
29
|
openClawPluginFolder,
|
|
30
30
|
openClawSetupReceiptDirectory
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NQ6KV722.js";
|
|
32
32
|
import {
|
|
33
33
|
resolvePathBinary
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-K63QVFSB.js";
|
|
35
35
|
import {
|
|
36
36
|
readJsonSafe,
|
|
37
37
|
writeJsonAtomic
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
} from "./chunk-CXQWDQCJ.js";
|
|
43
43
|
import {
|
|
44
44
|
isRecord
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-BDMNQBP4.js";
|
|
46
46
|
|
|
47
47
|
// src/hermes/plugin-payload.ts
|
|
48
48
|
import { createHash } from "crypto";
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DRLY2ELW.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UXXYHW6B.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GISC7J7K.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WGZFBSXM.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KIYUQ2XZ.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IA44JTLJ.js";
|
|
24
24
|
import {
|
|
25
25
|
EXIT
|
|
26
26
|
} from "./chunk-BG4HHB7E.js";
|
|
27
27
|
import {
|
|
28
28
|
KEY_SCOPE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-BDMNQBP4.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
quoteIfNeeded,
|
|
7
7
|
shellDoubleQuoted
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-K63QVFSB.js";
|
|
9
9
|
import {
|
|
10
10
|
writeFileAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
PUSHARY_HOSTS,
|
|
25
25
|
PUSHARY_TOOL_PREFIX,
|
|
26
26
|
withHookHoldBudget
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-BDMNQBP4.js";
|
|
28
28
|
|
|
29
29
|
// src/setup/paths.ts
|
|
30
30
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -772,6 +772,28 @@ var needsReregistration = (stored, version) => {
|
|
|
772
772
|
|
|
773
773
|
// src/claude-config.ts
|
|
774
774
|
import { isDeepStrictEqual } from "util";
|
|
775
|
+
|
|
776
|
+
// src/pushary-mcp-url.ts
|
|
777
|
+
var PUSHARY_MCP_HOSTS = new Set(PUSHARY_HOSTS);
|
|
778
|
+
var PUSHARY_MCP_PATH_PREFIX = "/api/mcp";
|
|
779
|
+
var isPusharyMcpPath = (pathname) => pathname === PUSHARY_MCP_PATH_PREFIX || pathname.startsWith(`${PUSHARY_MCP_PATH_PREFIX}/`);
|
|
780
|
+
var PUSHARY_FULL_ACCESS_MCP_PATHS = /* @__PURE__ */ new Set(["/api/mcp/mcp", "/api/mcp/sse"]);
|
|
781
|
+
var pusharyMcpPathOf = (value) => {
|
|
782
|
+
if (typeof value !== "string") return void 0;
|
|
783
|
+
try {
|
|
784
|
+
const url = new URL(value);
|
|
785
|
+
return PUSHARY_MCP_HOSTS.has(url.hostname) && isPusharyMcpPath(url.pathname) ? url.pathname : void 0;
|
|
786
|
+
} catch {
|
|
787
|
+
return void 0;
|
|
788
|
+
}
|
|
789
|
+
};
|
|
790
|
+
var isPusharyMcpUrl = (value) => pusharyMcpPathOf(value) !== void 0;
|
|
791
|
+
var isPusharyFullAccessMcpUrl = (value) => {
|
|
792
|
+
const path = pusharyMcpPathOf(value);
|
|
793
|
+
return path !== void 0 && PUSHARY_FULL_ACCESS_MCP_PATHS.has(path.replace(/\/$/, ""));
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
// src/claude-config.ts
|
|
775
797
|
var PUSHARY_MCP_URL = "https://pushary.com/api/mcp/mcp";
|
|
776
798
|
var PUSHARY_PERMISSION_RULE = `${PUSHARY_TOOL_PREFIX}*`;
|
|
777
799
|
var PUSHARY_CONNECTOR_PERMISSION_RULES = PUSHARY_CONNECTOR_TOOL_PREFIXES.map((prefix) => `${prefix}*`);
|
|
@@ -831,6 +853,7 @@ var updateClaudeMcpSnapshot = (snapshot, apiKey) => ({
|
|
|
831
853
|
...snapshot,
|
|
832
854
|
installedPushary: pusharyMcpServer(apiKey)
|
|
833
855
|
});
|
|
856
|
+
var isPusharyMcpServer = (entry2) => isPusharyMcpUrl(asRecord3(entry2)?.url);
|
|
834
857
|
var restoreClaudeMcpServer = (config, snapshot) => {
|
|
835
858
|
const mcpServers = asRecord3(config.mcpServers);
|
|
836
859
|
const current = asRecord3(mcpServers?.pushary);
|
|
@@ -854,11 +877,11 @@ var restoreClaudeMcpServer = (config, snapshot) => {
|
|
|
854
877
|
}
|
|
855
878
|
return true;
|
|
856
879
|
};
|
|
857
|
-
var
|
|
880
|
+
var removeMcpServersNamedPushary = (config, isOurs) => {
|
|
858
881
|
let changed = false;
|
|
859
882
|
const removeFrom = (target) => {
|
|
860
883
|
const mcpServers = asRecord3(target.mcpServers);
|
|
861
|
-
if (!mcpServers?.pushary) return;
|
|
884
|
+
if (!mcpServers?.pushary || !isOurs(mcpServers.pushary)) return;
|
|
862
885
|
delete mcpServers.pushary;
|
|
863
886
|
if (Object.keys(mcpServers).length === 0) delete target.mcpServers;
|
|
864
887
|
changed = true;
|
|
@@ -873,6 +896,29 @@ var removeClaudeMcpServers = (config) => {
|
|
|
873
896
|
}
|
|
874
897
|
return changed;
|
|
875
898
|
};
|
|
899
|
+
var removeClaudeMcpServers = (config) => removeMcpServersNamedPushary(config, () => true);
|
|
900
|
+
var claudeMcpRemovalChanged = (outcome) => outcome === "removed" || outcome === "restored";
|
|
901
|
+
var theirOwnEntryBeforeSetup = (receipt) => receipt.hadPushary && !isPusharyMcpServer(receipt.pushary) ? receipt.pushary : void 0;
|
|
902
|
+
var putTheirOwnEntryBack = (config, theirs) => {
|
|
903
|
+
ensureRecord2(config, "mcpServers").pushary = structuredClone(theirs);
|
|
904
|
+
};
|
|
905
|
+
var isOursBesides = (theirs) => (entry2) => theirs === void 0 || isPusharyMcpServer(entry2) && !isDeepStrictEqual(entry2, theirs);
|
|
906
|
+
var removeEveryEntryOfOurs = (config, receipt) => {
|
|
907
|
+
const restored = restoreClaudeMcpServer(config, receipt);
|
|
908
|
+
const theirs = theirOwnEntryBeforeSetup(receipt);
|
|
909
|
+
const isOurs = isOursBesides(theirs);
|
|
910
|
+
const rootEntry = asRecord3(config.mcpServers)?.pushary;
|
|
911
|
+
const ourEntryTookTheirPlace = theirs !== void 0 && rootEntry !== void 0 && isOurs(rootEntry);
|
|
912
|
+
const removed = removeMcpServersNamedPushary(config, isOurs);
|
|
913
|
+
if (ourEntryTookTheirPlace) putTheirOwnEntryBack(config, theirs);
|
|
914
|
+
if (theirs !== void 0 && (restored || ourEntryTookTheirPlace)) return "restored";
|
|
915
|
+
return removed || restored ? "removed" : "none";
|
|
916
|
+
};
|
|
917
|
+
var claudeMcpRemoval = (receipt, everything) => (config) => {
|
|
918
|
+
if (receipt === null) return removeClaudeMcpServers(config) ? "removed" : "none";
|
|
919
|
+
if (everything) return removeEveryEntryOfOurs(config, receipt);
|
|
920
|
+
return restoreClaudeMcpServer(config, receipt) ? "restored" : "kept_changed_after_setup";
|
|
921
|
+
};
|
|
876
922
|
var removePusharyToolPermissions = (settings) => {
|
|
877
923
|
const permissions = asRecord3(settings.permissions);
|
|
878
924
|
if (!permissions || !Array.isArray(permissions.allow)) return false;
|
|
@@ -1072,26 +1118,6 @@ var hasInstructionBlock = (filePath) => {
|
|
|
1072
1118
|
}
|
|
1073
1119
|
};
|
|
1074
1120
|
|
|
1075
|
-
// src/pushary-mcp-url.ts
|
|
1076
|
-
var PUSHARY_MCP_HOSTS = new Set(PUSHARY_HOSTS);
|
|
1077
|
-
var PUSHARY_MCP_PATH_PREFIX = "/api/mcp";
|
|
1078
|
-
var isPusharyMcpPath = (pathname) => pathname === PUSHARY_MCP_PATH_PREFIX || pathname.startsWith(`${PUSHARY_MCP_PATH_PREFIX}/`);
|
|
1079
|
-
var PUSHARY_FULL_ACCESS_MCP_PATHS = /* @__PURE__ */ new Set(["/api/mcp/mcp", "/api/mcp/sse"]);
|
|
1080
|
-
var pusharyMcpPathOf = (value) => {
|
|
1081
|
-
if (typeof value !== "string") return void 0;
|
|
1082
|
-
try {
|
|
1083
|
-
const url = new URL(value);
|
|
1084
|
-
return PUSHARY_MCP_HOSTS.has(url.hostname) && isPusharyMcpPath(url.pathname) ? url.pathname : void 0;
|
|
1085
|
-
} catch {
|
|
1086
|
-
return void 0;
|
|
1087
|
-
}
|
|
1088
|
-
};
|
|
1089
|
-
var isPusharyMcpUrl = (value) => pusharyMcpPathOf(value) !== void 0;
|
|
1090
|
-
var isPusharyFullAccessMcpUrl = (value) => {
|
|
1091
|
-
const path = pusharyMcpPathOf(value);
|
|
1092
|
-
return path !== void 0 && PUSHARY_FULL_ACCESS_MCP_PATHS.has(path.replace(/\/$/, ""));
|
|
1093
|
-
};
|
|
1094
|
-
|
|
1095
1121
|
// src/cline-config.ts
|
|
1096
1122
|
var CLINE_LABEL = "Cline";
|
|
1097
1123
|
var CLINE_SERVER_NAME = "pushary";
|
|
@@ -1393,6 +1419,7 @@ export {
|
|
|
1393
1419
|
supportedClaudeEvents,
|
|
1394
1420
|
registrationSignatures,
|
|
1395
1421
|
needsReregistration,
|
|
1422
|
+
isPusharyFullAccessMcpUrl,
|
|
1396
1423
|
PUSHARY_MCP_URL,
|
|
1397
1424
|
CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
|
|
1398
1425
|
allowsPusharyTools,
|
|
@@ -1403,6 +1430,8 @@ export {
|
|
|
1403
1430
|
updateClaudeMcpSnapshot,
|
|
1404
1431
|
restoreClaudeMcpServer,
|
|
1405
1432
|
removeClaudeMcpServers,
|
|
1433
|
+
claudeMcpRemovalChanged,
|
|
1434
|
+
claudeMcpRemoval,
|
|
1406
1435
|
removePusharyToolPermissions,
|
|
1407
1436
|
addPusharyToolPermissions,
|
|
1408
1437
|
addPusharyHooks,
|
|
@@ -1415,7 +1444,6 @@ export {
|
|
|
1415
1444
|
refreshInstructionBlock,
|
|
1416
1445
|
removeInstructionBlock,
|
|
1417
1446
|
hasInstructionBlock,
|
|
1418
|
-
isPusharyFullAccessMcpUrl,
|
|
1419
1447
|
CLINE_LABEL,
|
|
1420
1448
|
CLINE_AUTO_APPROVE_STEP,
|
|
1421
1449
|
CLINE_RELOAD_STEP,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callDecisionStore,
|
|
3
3
|
identifyingToolInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2R2LXG6H.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalJson
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NQ6KV722.js";
|
|
8
8
|
import {
|
|
9
9
|
BYPASS_PERMISSION_MODE
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BDMNQBP4.js";
|
|
11
11
|
|
|
12
12
|
// src/phone-approval.ts
|
|
13
13
|
import { createHash } from "crypto";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KFRYGJS5.js";
|
|
13
13
|
import {
|
|
14
14
|
CODEX_APP_LAUNCH_AT_LOGIN_VERB,
|
|
15
15
|
CODEX_APP_LAUNCH_VARIABLE,
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
} from "./chunk-QCGNGEGE.js";
|
|
21
21
|
import {
|
|
22
22
|
xml
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WILH4LFK.js";
|
|
24
24
|
import {
|
|
25
25
|
codexHomeFrom
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NQ6KV722.js";
|
|
27
27
|
import {
|
|
28
28
|
writeFileAtomic
|
|
29
29
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KT7COQH2.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IR6ZNTDK.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GFGSIDHQ.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XJR2JCWQ.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BDMNQBP4.js";
|
|
20
20
|
|
|
21
21
|
// src/tool-hook-input.ts
|
|
22
22
|
var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode", "cursor_version"];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NQ6KV722.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-K63QVFSB.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NFYD5TJK.js";
|
|
4
4
|
import {
|
|
5
5
|
declinedAgentsFile,
|
|
6
6
|
readDeclinedAgents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FJBU6OWM.js";
|
|
8
8
|
import {
|
|
9
9
|
OPENCODE_HOOK_BINARY,
|
|
10
10
|
openCodeConfigDir,
|
|
11
11
|
openCodePluginFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UE5QZNZO.js";
|
|
13
13
|
import {
|
|
14
14
|
openCodePluginArgv
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-33IFGELL.js";
|
|
16
16
|
import {
|
|
17
17
|
liveCursorGateCoverage
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KT7COQH2.js";
|
|
19
19
|
import {
|
|
20
20
|
compatibleConfigFile,
|
|
21
21
|
compatibleHookEvents,
|
|
22
22
|
grokHome,
|
|
23
23
|
parseConfigDocument
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GFGSIDHQ.js";
|
|
25
25
|
import {
|
|
26
26
|
DEFAULT_HOOKS_KEY_PATH,
|
|
27
27
|
GEMINI_HOOK_BINARY,
|
|
28
28
|
GEMINI_HOOK_EVENTS,
|
|
29
29
|
hooksAt
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-WYIJA2GH.js";
|
|
31
31
|
import {
|
|
32
32
|
CODEX_EARLIER_APPROVAL_MATCHERS,
|
|
33
33
|
CODEX_HOOK_BINARY,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
parseHookArgv,
|
|
56
56
|
parseHookCommand,
|
|
57
57
|
supportedClaudeEvents
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-NQ6KV722.js";
|
|
59
59
|
import {
|
|
60
60
|
readRegularJsonFile,
|
|
61
61
|
readRegularTextFile
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
OPENCODE_APPROVAL_EVENT,
|
|
70
70
|
isRecord,
|
|
71
71
|
matcherMatchesEveryCall
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-BDMNQBP4.js";
|
|
73
73
|
|
|
74
74
|
// src/hook-wiring.ts
|
|
75
75
|
import { createHash } from "crypto";
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
settingSnapshot,
|
|
19
19
|
writeHermesSetting,
|
|
20
20
|
writeSetupReceipt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NLAT5MMY.js";
|
|
22
22
|
import {
|
|
23
23
|
OPENCLAW_MIN_VERSION,
|
|
24
24
|
OPENCLAW_PLUGIN_ID,
|
|
25
25
|
OPENCLAW_PLUGIN_PACKAGE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MGKF5FLQ.js";
|
|
27
27
|
import {
|
|
28
28
|
retryAgentCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-TTUKVQTQ.js";
|
|
30
30
|
import {
|
|
31
31
|
configFilePath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-IA44JTLJ.js";
|
|
33
33
|
import {
|
|
34
34
|
readJsonSafe,
|
|
35
35
|
writeJsonAtomic
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
readSetupOutcomeProperties,
|
|
39
39
|
redactSecretsFromContent
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-BDMNQBP4.js";
|
|
41
41
|
|
|
42
42
|
// src/hermes/shell-gate.ts
|
|
43
43
|
var readHermesShellGate = async (launcher) => {
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-3EGEA4KH.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IA44JTLJ.js";
|
|
13
13
|
import {
|
|
14
14
|
CLI_LOCAL_BIND_PATH,
|
|
15
15
|
LOCAL_CONFIRM_HOST,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
isLocalConfirmToken,
|
|
21
21
|
isPhonePass,
|
|
22
22
|
localTerminalEntryUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BDMNQBP4.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/login-ui.ts
|
|
26
26
|
import { hostname } from "os";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ensureCodexTrustsPusharyHooks,
|
|
6
6
|
hermesHistoryNeedsTheCliHelper,
|
|
7
7
|
recordInstalledHermesHistoryHelper
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZGA2LFVD.js";
|
|
9
9
|
import {
|
|
10
10
|
hermesReceiptPaths,
|
|
11
11
|
hermesSetupPredatesThePluginFolder,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
refreshHermesPluginFiles,
|
|
15
15
|
refreshOpenClawPlugin,
|
|
16
16
|
shippedHermesPlugin
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NLAT5MMY.js";
|
|
18
18
|
import {
|
|
19
19
|
fxIgnoresInstructionsFile,
|
|
20
20
|
fxInstructionsBody,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
macAppFxBridge,
|
|
24
24
|
refreshClineKey,
|
|
25
25
|
switchFxHttpEntryToBridge
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZQYYPDFT.js";
|
|
27
27
|
import {
|
|
28
28
|
OPENCODE_HOOK_BINARY,
|
|
29
29
|
agentHookOwner,
|
|
@@ -36,16 +36,16 @@ import {
|
|
|
36
36
|
openCodePluginDir,
|
|
37
37
|
openCodeWired,
|
|
38
38
|
withOpenCodeAskRules
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-UE5QZNZO.js";
|
|
40
40
|
import {
|
|
41
41
|
detectClaudeVersion
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-QLKUYP7Z.js";
|
|
43
43
|
import {
|
|
44
44
|
addCompatibleHooks,
|
|
45
45
|
compatibleConfigFile,
|
|
46
46
|
compatibleInstructionsFile,
|
|
47
47
|
hasCompatibleHooks
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-GFGSIDHQ.js";
|
|
49
49
|
import {
|
|
50
50
|
GEMINI_HOOK_BINARY,
|
|
51
51
|
addGeminiHooks,
|
|
@@ -57,13 +57,13 @@ import {
|
|
|
57
57
|
geminiWired,
|
|
58
58
|
hasGeminiHooks,
|
|
59
59
|
planHooks
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-WYIJA2GH.js";
|
|
61
61
|
import {
|
|
62
62
|
transcriptsEnabled
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-4QTDUXS5.js";
|
|
64
64
|
import {
|
|
65
65
|
KEY_FILE_MODE
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-KIYUQ2XZ.js";
|
|
67
67
|
import {
|
|
68
68
|
CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
|
|
69
69
|
CLAUDE_HOOK_BINARY,
|
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
renderAgentInstructions,
|
|
111
111
|
supportedClaudeEvents,
|
|
112
112
|
vscodePluginMcp
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-NQ6KV722.js";
|
|
114
114
|
import {
|
|
115
115
|
formatVersion
|
|
116
116
|
} from "./chunk-6ICPEJY5.js";
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
hookCommandsUseBareNames,
|
|
119
119
|
resolveGlobalBinDir,
|
|
120
120
|
resolveGlobalBinary
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-K63QVFSB.js";
|
|
122
122
|
import {
|
|
123
123
|
readJsonSafe,
|
|
124
124
|
writeFileAtomic,
|
|
@@ -128,7 +128,7 @@ import {
|
|
|
128
128
|
HOOK_COMPATIBLE_PROFILES,
|
|
129
129
|
isCompatibleAgentType,
|
|
130
130
|
isRecord
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-BDMNQBP4.js";
|
|
132
132
|
|
|
133
133
|
// src/reapply.ts
|
|
134
134
|
import { dirname, join } from "path";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "./chunk-WHB622LP.js";
|
|
5
5
|
import {
|
|
6
6
|
keyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KIYUQ2XZ.js";
|
|
8
8
|
import {
|
|
9
9
|
keyPrefixToShow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IA44JTLJ.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NC24UL7K.js";
|
|
14
14
|
import {
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BDMNQBP4.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/key-account.ts
|
|
19
19
|
var isKeyHeldByMacApp = (key, holder) => holder.macAppInstalled && holder.macAppKey === key;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NQ6KV722.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-CXQWDQCJ.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BDMNQBP4.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AV5QS5FQ.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UXXYHW6B.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WGZFBSXM.js";
|
|
15
15
|
import {
|
|
16
16
|
findExportedKeyLines,
|
|
17
17
|
isAdoptedMacAppKey,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
readConfigFileKey,
|
|
22
22
|
readKeySource,
|
|
23
23
|
readMacAppKeyPrefix
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KIYUQ2XZ.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-BDMNQBP4.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
NpmMissingError,
|
|
5
5
|
NpmPermissionError,
|
|
6
6
|
NpmReleaseAgeError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K63QVFSB.js";
|
|
8
8
|
import {
|
|
9
9
|
writeFileAtomic
|
|
10
10
|
} from "./chunk-PM2NRK6Y.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NC24UL7K.js";
|
|
14
14
|
import {
|
|
15
15
|
readSetupAgentFailures
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BDMNQBP4.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/config-write.ts
|
|
19
19
|
var AgentConfigWriteError = class extends Error {
|