pushary 1.9.251 → 1.9.253
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 +11 -0
- package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
- package/data/cursor-plugin/CHANGELOG.md +4 -0
- package/data/cursor-plugin/scripts/pushary-gate.mjs +1 -1
- package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
- package/data/vscode-plugin/CHANGELOG.md +4 -0
- package/data/vscode-plugin/scripts/pushary-gate.mjs +1 -5
- package/dist/{api-7YLGBPT6.js → api-HDETVYCD.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +29 -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 +43 -41
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +35 -34
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +36 -35
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +47 -46
- package/dist/bin/pushary-disconnect.js +33 -31
- package/dist/bin/pushary-display-hook.js +5 -1
- package/dist/bin/pushary-doctor.js +48 -47
- package/dist/bin/pushary-elicitation-hook.js +28 -27
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +32 -31
- package/dist/bin/pushary-hook.js +36 -35
- package/dist/bin/pushary-login.js +23 -23
- package/dist/bin/pushary-logout.js +32 -31
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +28 -27
- package/dist/bin/pushary-opencode-bridge.js +22 -22
- package/dist/bin/pushary-opencode-hook.js +33 -32
- package/dist/bin/pushary-permission-denied-hook.js +35 -34
- package/dist/bin/pushary-permission-hook.js +36 -35
- package/dist/bin/pushary-post-hook.js +29 -28
- package/dist/bin/pushary-prompt-hook.js +28 -27
- package/dist/bin/pushary-session-end-hook.js +28 -27
- package/dist/bin/pushary-session-start-hook.js +40 -39
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +93 -71
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +37 -36
- package/dist/bin/pushary-stop-hook.js +28 -27
- package/dist/bin/pushary-stopfailure-hook.js +28 -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 +48 -47
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-RC77CCJG.js → chunk-23WMHZ3S.js} +5 -5
- package/dist/{chunk-QG35IQTV.js → chunk-24MGJAU6.js} +1 -1
- package/dist/{chunk-K26EFQLD.js → chunk-3P5KVOFE.js} +6 -6
- package/dist/{chunk-LRCPKBFY.js → chunk-3XSQBXNQ.js} +7 -7
- package/dist/{chunk-AAXFWQ7I.js → chunk-3YUQ7NDR.js} +3 -3
- package/dist/{chunk-E5CQGHVW.js → chunk-44GOUZCE.js} +6 -6
- package/dist/{chunk-44WHETMS.js → chunk-4DOUCVU6.js} +10 -10
- package/dist/{chunk-UIMKOA23.js → chunk-4IT57V3A.js} +3 -3
- package/dist/{chunk-Z77XTRVT.js → chunk-4LTASS5P.js} +1 -1
- package/dist/chunk-5LK3UY46.js +30 -0
- package/dist/{chunk-VEFEHJLI.js → chunk-5QFLGM7U.js} +5 -5
- package/dist/{chunk-DQK6NXJH.js → chunk-5UXIPTWM.js} +2 -2
- package/dist/{chunk-MTUDWLDC.js → chunk-5VC3BZEW.js} +5 -5
- package/dist/{chunk-G26FRSLD.js → chunk-5Y4DOTXC.js} +6 -6
- package/dist/{chunk-YXIJVUEU.js → chunk-6CQT3VM3.js} +56 -10
- package/dist/{chunk-FBHV5HIP.js → chunk-6I3NVT36.js} +4 -4
- package/dist/{chunk-557J45VJ.js → chunk-6JVSKDBD.js} +2 -2
- package/dist/{chunk-F6WOVDJY.js → chunk-6OFIPAJD.js} +4 -4
- package/dist/{chunk-T2CWUMXR.js → chunk-6S6ASGR3.js} +3 -3
- package/dist/{chunk-7A6YK73O.js → chunk-6WHXLA4Y.js} +2 -2
- package/dist/{chunk-KK7JK2F3.js → chunk-76OCRCIM.js} +8 -29
- package/dist/{chunk-ZVPI5BQR.js → chunk-7D25WOPT.js} +1 -1
- package/dist/{chunk-UZXTAN6S.js → chunk-7LRR6GEH.js} +7 -4
- package/dist/{chunk-AUU5RTTF.js → chunk-APPAY2PH.js} +6 -6
- package/dist/{chunk-2RJOCEWT.js → chunk-AYVW4G3V.js} +1 -1
- package/dist/{chunk-M6QOKJUL.js → chunk-CIJG74KZ.js} +1 -1
- package/dist/{chunk-PHTMOEG6.js → chunk-CMSBS2K4.js} +4 -4
- package/dist/{chunk-M4H5OBXD.js → chunk-CVVHT4KY.js} +3 -3
- package/dist/{chunk-VNNXZXHM.js → chunk-CZ4EG35M.js} +1 -1
- package/dist/{chunk-PRU3HRGX.js → chunk-D7TUN2MX.js} +16 -16
- package/dist/{chunk-P7LH7M6N.js → chunk-ECXLAR6D.js} +2 -2
- package/dist/{chunk-K7MEMCFJ.js → chunk-EVG4SHZR.js} +3 -3
- package/dist/{chunk-EEFE64MW.js → chunk-FM4ULVPT.js} +1 -1
- package/dist/{chunk-K36ZA3KL.js → chunk-GAX2UUKP.js} +2 -2
- package/dist/{chunk-FBJFTOCJ.js → chunk-GK7DZPLY.js} +12 -12
- package/dist/{chunk-OM7ZE2KW.js → chunk-GM4CMN4A.js} +1 -1
- package/dist/{chunk-IEOTIQDF.js → chunk-GNMEBYBT.js} +5 -5
- package/dist/{chunk-7E7FXU2S.js → chunk-GQLHV36Q.js} +1 -1
- package/dist/{chunk-STOOLWMG.js → chunk-HPL432EE.js} +2 -2
- package/dist/{chunk-DPUL5NO5.js → chunk-ICWPQWXJ.js} +5 -5
- package/dist/{chunk-PRQJDPAO.js → chunk-IFQROMKD.js} +2 -2
- package/dist/{chunk-UJR2DFED.js → chunk-IRWWJ6GZ.js} +3 -3
- package/dist/{chunk-JY2GFDHW.js → chunk-IXLXPPSD.js} +1 -1
- package/dist/{chunk-CQIM7TDK.js → chunk-JDTDZMIQ.js} +12 -5
- package/dist/{chunk-XEVRUUDW.js → chunk-JIZNXYN5.js} +2 -2
- package/dist/{chunk-VGKU4AFE.js → chunk-LM7GN5SQ.js} +1 -1
- package/dist/{chunk-JVBRHL7X.js → chunk-LQRYXA4E.js} +3 -3
- package/dist/{chunk-WYAGS2L6.js → chunk-LUWFNQEB.js} +6 -6
- package/dist/{chunk-VVKCEDTZ.js → chunk-M4ZP7SGR.js} +1 -1
- package/dist/{chunk-UGGISSH4.js → chunk-M773UCGU.js} +1 -1
- package/dist/{chunk-4LBBSUF7.js → chunk-MERKWOJA.js} +2 -2
- package/dist/{chunk-N6TD76US.js → chunk-MMEUYJTO.js} +3 -3
- package/dist/{chunk-YUO2WNDQ.js → chunk-N7HFPPDR.js} +25 -10
- package/dist/{chunk-TDEAHWEX.js → chunk-N7RKXLJR.js} +1 -1
- package/dist/{chunk-Z4L3R6UU.js → chunk-NMADZVTC.js} +1 -1
- package/dist/{chunk-D72OYETQ.js → chunk-O4VX3PYZ.js} +5 -5
- package/dist/{chunk-IWU3QQXI.js → chunk-O5BD64JZ.js} +1 -1
- package/dist/{chunk-TFTPNS6R.js → chunk-PXGN373Y.js} +5 -5
- package/dist/{chunk-GZMWTWC5.js → chunk-QZESFXVG.js} +4 -4
- package/dist/{chunk-4PQK2E6F.js → chunk-R4JAJBHJ.js} +1 -1
- package/dist/{chunk-YZIESS3R.js → chunk-RJOS3AEP.js} +4 -4
- package/dist/{chunk-63PDFOKG.js → chunk-SJWGQ5LF.js} +3 -3
- package/dist/{chunk-AGJA7LW6.js → chunk-SQMYR6SW.js} +5 -5
- package/dist/{chunk-LVHTTUGF.js → chunk-SUCVVSV6.js} +11 -11
- package/dist/{chunk-GIX4TVRM.js → chunk-SZMGZ3C5.js} +21 -4
- package/dist/{chunk-2S52I655.js → chunk-TKJIBVHJ.js} +2 -2
- package/dist/{chunk-6E5MBUJ6.js → chunk-TXRII4O4.js} +1 -1
- package/dist/{chunk-3PWJ27G2.js → chunk-UIUN2AIM.js} +4 -4
- package/dist/{chunk-XAEMSYXQ.js → chunk-UKQ5MEOA.js} +1 -1
- package/dist/{chunk-UGUEVRCL.js → chunk-UTP7PN5S.js} +4 -4
- package/dist/{chunk-FQOM4U2Q.js → chunk-UUDXTZND.js} +3 -3
- package/dist/{chunk-H3HURS3J.js → chunk-UWD3IGPJ.js} +12 -10
- package/dist/{chunk-ZAAYMC7X.js → chunk-VA573E2C.js} +1 -1
- package/dist/{chunk-YGDRJZDL.js → chunk-VFZEUKWI.js} +1 -1
- package/dist/{chunk-QQVCYJ3I.js → chunk-VKBZEIFU.js} +7 -7
- package/dist/{chunk-VXOZ4Q4J.js → chunk-WEHPMIAG.js} +8 -8
- package/dist/{chunk-YITMIDDV.js → chunk-WL3WLBDO.js} +1 -1
- package/dist/{chunk-6GF2JWI6.js → chunk-XB4GIETP.js} +1 -1
- package/dist/{chunk-54EXI2EP.js → chunk-XEEUUUFY.js} +4 -4
- package/dist/{chunk-B4N3VLXT.js → chunk-XIZWKMF2.js} +5 -5
- package/dist/{chunk-JCVHTX6Q.js → chunk-XOXSCTXN.js} +2 -2
- package/dist/{chunk-JI6TV7FH.js → chunk-YUV6X65O.js} +4 -4
- package/dist/{codex-app-cards-switch-EPNSIXTL.js → codex-app-cards-switch-NN625ND3.js} +12 -11
- package/dist/{codex-card-routing-D32RHFLK.js → codex-card-routing-5CT7DOHG.js} +2 -2
- package/dist/{codex-desktop-launch-6RNIMOUV.js → codex-desktop-launch-ZKAL5O2T.js} +3 -3
- package/dist/{codex-session-launch-U2FWWVEH.js → codex-session-launch-4OFEQV4L.js} +20 -20
- package/dist/{config-5K6TBO3D.js → config-SZ2H3UZ3.js} +3 -3
- package/dist/{global-upgrade-A5ZCPOES.js → global-upgrade-TLFBH3Z7.js} +9 -9
- package/dist/{identity-GOG4UBHM.js → identity-HYFFEFTV.js} +4 -4
- package/dist/{live-capabilities-KLUTEUZX.js → live-capabilities-DUDIPA3U.js} +4 -4
- package/dist/{paths-UUHG2JRC.js → paths-3UYWAUJ4.js} +3 -3
- package/dist/reapply-4ECHOBPO.js +76 -0
- package/dist/src/index.js +34 -33
- package/dist/{upgrade-lock-SWYNQVNQ.js → upgrade-lock-3733DY3A.js} +4 -4
- package/dist/{usage-JIV4LAHK.js → usage-ZZMBG3QZ.js} +3 -3
- package/package.json +2 -1
- package/dist/reapply-7AJEDJGK.js +0 -75
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N7HFPPDR.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6I3NVT36.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
NpmMissingError,
|
|
5
5
|
NpmPermissionError,
|
|
6
6
|
NpmReleaseAgeError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6I3NVT36.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-VA573E2C.js";
|
|
14
14
|
import {
|
|
15
15
|
readSetupAgentFailures
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/config-write.ts
|
|
19
19
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
quoteIfNeeded,
|
|
7
7
|
shellDoubleQuoted
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6I3NVT36.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-SZMGZ3C5.js";
|
|
28
28
|
|
|
29
29
|
// src/setup/paths.ts
|
|
30
30
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -680,7 +680,7 @@ var liveBridgeProbe = () => ({
|
|
|
680
680
|
import { join as join5 } from "path";
|
|
681
681
|
|
|
682
682
|
// src/claude-config.ts
|
|
683
|
-
import { join as join4 } from "path";
|
|
683
|
+
import { join as join4, win32 as win322 } from "path";
|
|
684
684
|
|
|
685
685
|
// src/claude-tools.ts
|
|
686
686
|
var POSTTOOLUSE_MIRROR_ONLY_TOOLS = ["TodoWrite", "Task", "WebFetch", "WebSearch"];
|
|
@@ -853,7 +853,22 @@ var updateClaudeMcpSnapshot = (snapshot, apiKey) => ({
|
|
|
853
853
|
...snapshot,
|
|
854
854
|
installedPushary: pusharyMcpServer(apiKey)
|
|
855
855
|
});
|
|
856
|
-
var
|
|
856
|
+
var MCP_REMOTE_BRIDGE = "mcp-remote";
|
|
857
|
+
var bridgesToPushary = (entry2) => {
|
|
858
|
+
if (typeof entry2.command !== "string" || !Array.isArray(entry2.args)) return false;
|
|
859
|
+
const command = win322.basename(entry2.command).replace(/\.cmd$/i, "");
|
|
860
|
+
if (command === MCP_REMOTE_BRIDGE) return isPusharyMcpUrl(entry2.args[0]);
|
|
861
|
+
if (command !== "npx") return false;
|
|
862
|
+
const packageIndex = entry2.args[0] === "-y" || entry2.args[0] === "--yes" ? 1 : 0;
|
|
863
|
+
const bridge = entry2.args[packageIndex];
|
|
864
|
+
if (typeof bridge !== "string") return false;
|
|
865
|
+
const [packageName, version, ...extra] = bridge.split("@");
|
|
866
|
+
return packageName === MCP_REMOTE_BRIDGE && extra.length === 0 && (version === void 0 || /^[a-z0-9][a-z0-9.-]*$/i.test(version)) && isPusharyMcpUrl(entry2.args[packageIndex + 1]);
|
|
867
|
+
};
|
|
868
|
+
var isPusharyMcpServer = (entry2) => {
|
|
869
|
+
const server = asRecord3(entry2);
|
|
870
|
+
return server !== void 0 && (isPusharyMcpUrl(server.url) || bridgesToPushary(server));
|
|
871
|
+
};
|
|
857
872
|
var restoreClaudeMcpServer = (config, snapshot) => {
|
|
858
873
|
const mcpServers = asRecord3(config.mcpServers);
|
|
859
874
|
const current = asRecord3(mcpServers?.pushary);
|
|
@@ -897,25 +912,24 @@ var removeMcpServersNamedPushary = (config, isOurs) => {
|
|
|
897
912
|
return changed;
|
|
898
913
|
};
|
|
899
914
|
var removeClaudeMcpServers = (config) => removeMcpServersNamedPushary(config, () => true);
|
|
915
|
+
var removeOwnedClaudeMcpServers = (config) => removeMcpServersNamedPushary(config, isPusharyMcpServer);
|
|
900
916
|
var claudeMcpRemovalChanged = (outcome) => outcome === "removed" || outcome === "restored";
|
|
901
917
|
var theirOwnEntryBeforeSetup = (receipt) => receipt.hadPushary && !isPusharyMcpServer(receipt.pushary) ? receipt.pushary : void 0;
|
|
902
918
|
var putTheirOwnEntryBack = (config, theirs) => {
|
|
903
919
|
ensureRecord2(config, "mcpServers").pushary = structuredClone(theirs);
|
|
904
920
|
};
|
|
905
|
-
var isOursBesides = (theirs) => (entry2) => theirs === void 0 || isPusharyMcpServer(entry2) && !isDeepStrictEqual(entry2, theirs);
|
|
906
921
|
var removeEveryEntryOfOurs = (config, receipt) => {
|
|
907
922
|
const restored = restoreClaudeMcpServer(config, receipt);
|
|
908
923
|
const theirs = theirOwnEntryBeforeSetup(receipt);
|
|
909
|
-
const isOurs = isOursBesides(theirs);
|
|
910
924
|
const rootEntry = asRecord3(config.mcpServers)?.pushary;
|
|
911
|
-
const ourEntryTookTheirPlace = theirs !== void 0 &&
|
|
912
|
-
const removed =
|
|
925
|
+
const ourEntryTookTheirPlace = theirs !== void 0 && isPusharyMcpServer(rootEntry);
|
|
926
|
+
const removed = removeOwnedClaudeMcpServers(config);
|
|
913
927
|
if (ourEntryTookTheirPlace) putTheirOwnEntryBack(config, theirs);
|
|
914
928
|
if (theirs !== void 0 && (restored || ourEntryTookTheirPlace)) return "restored";
|
|
915
929
|
return removed || restored ? "removed" : "none";
|
|
916
930
|
};
|
|
917
931
|
var claudeMcpRemoval = (receipt, everything) => (config) => {
|
|
918
|
-
if (receipt === null) return
|
|
932
|
+
if (receipt === null) return removeOwnedClaudeMcpServers(config) ? "removed" : "none";
|
|
919
933
|
if (everything) return removeEveryEntryOfOurs(config, receipt);
|
|
920
934
|
return restoreClaudeMcpServer(config, receipt) ? "restored" : "kept_changed_after_setup";
|
|
921
935
|
};
|
|
@@ -971,7 +985,7 @@ var entry = (definition, resolve3) => ({
|
|
|
971
985
|
}]
|
|
972
986
|
});
|
|
973
987
|
var removePusharySettings = (settings, scope) => {
|
|
974
|
-
let changed = scope?.keepMcpServer === true ? false :
|
|
988
|
+
let changed = scope?.keepMcpServer === true ? false : removeOwnedClaudeMcpServers(settings);
|
|
975
989
|
if (scope?.keepMcpServer !== true && removePusharyToolPermissions(settings)) changed = true;
|
|
976
990
|
const hooks = asRecord3(settings.hooks);
|
|
977
991
|
if (hooks) {
|
|
@@ -1430,6 +1444,7 @@ export {
|
|
|
1430
1444
|
updateClaudeMcpSnapshot,
|
|
1431
1445
|
restoreClaudeMcpServer,
|
|
1432
1446
|
removeClaudeMcpServers,
|
|
1447
|
+
removeOwnedClaudeMcpServers,
|
|
1433
1448
|
claudeMcpRemovalChanged,
|
|
1434
1449
|
claudeMcpRemoval,
|
|
1435
1450
|
removePusharyToolPermissions,
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
settingSnapshot,
|
|
19
19
|
writeHermesSetting,
|
|
20
20
|
writeSetupReceipt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JDTDZMIQ.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-7LRR6GEH.js";
|
|
27
27
|
import {
|
|
28
28
|
retryAgentCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MMEUYJTO.js";
|
|
30
30
|
import {
|
|
31
31
|
configFilePath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-5UXIPTWM.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-SZMGZ3C5.js";
|
|
41
41
|
|
|
42
42
|
// src/hermes/shell-gate.ts
|
|
43
43
|
var readHermesShellGate = async (launcher) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computerOsOfPlatform,
|
|
3
3
|
isComputerAgent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
5
5
|
|
|
6
6
|
// src/setup/phone-check.ts
|
|
7
7
|
var NO_AGENT_CONNECTED_LINE = "Skipping the phone step: no agent was connected, so nothing could ask you anything on your phone yet.";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
questionWindowOf
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SUCVVSV6.js";
|
|
4
4
|
import {
|
|
5
5
|
UNNAMED_ACTION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IXLXPPSD.js";
|
|
7
7
|
import {
|
|
8
8
|
ASK_USER_TIMEOUT_MS,
|
|
9
9
|
WAIT_END_TIMEOUT_MS,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
askUser,
|
|
12
12
|
unavailableQuestionUnlessRefused,
|
|
13
13
|
waitForQuestion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3P5KVOFE.js";
|
|
15
15
|
import {
|
|
16
16
|
getMachineId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WL3WLBDO.js";
|
|
18
18
|
import {
|
|
19
19
|
hookMaxWaitSeconds,
|
|
20
20
|
hookWaitClamped,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
refusesWhenUnanswered,
|
|
25
25
|
ruleApprovesAfterItsFullWindow,
|
|
26
26
|
scopeBreachReasonOf
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
28
28
|
|
|
29
29
|
// src/pushed-question.ts
|
|
30
30
|
var scopeQuestionOf = (verdict) => {
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "./chunk-WHB622LP.js";
|
|
5
5
|
import {
|
|
6
6
|
keyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6S6ASGR3.js";
|
|
8
8
|
import {
|
|
9
9
|
keyPrefixToShow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5UXIPTWM.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VA573E2C.js";
|
|
14
14
|
import {
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/key-account.ts
|
|
19
19
|
var isKeyHeldByMacApp = (key, holder) => holder.macAppInstalled && holder.macAppKey === key;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-76OCRCIM.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UTP7PN5S.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-N7HFPPDR.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FM4ULVPT.js";
|
|
4
4
|
import {
|
|
5
5
|
parseFlags
|
|
6
6
|
} from "./chunk-BZIBNSQE.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VA573E2C.js";
|
|
13
13
|
import {
|
|
14
14
|
CLAUDE_CONNECTOR_GUIDE,
|
|
15
15
|
CLAUDE_CONNECTOR_STEPS,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
CLAUDE_CONNECTOR_URL,
|
|
18
18
|
COWORK_CONNECTOR_LIMIT,
|
|
19
19
|
COWORK_STANDING_INSTRUCTIONS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IRWWJ6GZ.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4DOUCVU6.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-76OCRCIM.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3P5KVOFE.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SZMGZ3C5.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"];
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
toolResultErrorText,
|
|
30
30
|
transcriptTokensIn,
|
|
31
31
|
transcriptUsageRequest
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-IXLXPPSD.js";
|
|
33
33
|
import {
|
|
34
34
|
askUser,
|
|
35
35
|
cancelQuestion,
|
|
@@ -45,37 +45,37 @@ import {
|
|
|
45
45
|
waitForOpenQuestion,
|
|
46
46
|
waitForQuestion,
|
|
47
47
|
writeDegraded
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-3P5KVOFE.js";
|
|
49
49
|
import {
|
|
50
50
|
RETRY_ACK,
|
|
51
51
|
readCommandAck,
|
|
52
52
|
refusedReceiptMessage
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-XB4GIETP.js";
|
|
54
54
|
import {
|
|
55
55
|
SubscriptionRequiredError,
|
|
56
56
|
isRetryable,
|
|
57
57
|
withRetry
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-5VC3BZEW.js";
|
|
59
59
|
import {
|
|
60
60
|
fetchAsCredential
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-M773UCGU.js";
|
|
62
62
|
import {
|
|
63
63
|
branchFor,
|
|
64
64
|
projectNameFor,
|
|
65
65
|
repoKeyFor
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-R4JAJBHJ.js";
|
|
67
67
|
import {
|
|
68
68
|
getMachineId
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-WL3WLBDO.js";
|
|
70
70
|
import {
|
|
71
71
|
reportedInstallSource
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-6JVSKDBD.js";
|
|
73
73
|
import {
|
|
74
74
|
IDLE_PROMPT_NOTIFICATION,
|
|
75
75
|
NOTIFICATION_PUSH_TYPES,
|
|
76
76
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
77
77
|
claudeConfigDir
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-N7HFPPDR.js";
|
|
79
79
|
import {
|
|
80
80
|
compareVersion,
|
|
81
81
|
parseVersion
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
getApiKey,
|
|
85
85
|
getBaseUrl,
|
|
86
86
|
isMalformedApiKeyError
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-5UXIPTWM.js";
|
|
88
88
|
import {
|
|
89
89
|
writeFileAtomic,
|
|
90
90
|
writeJsonAtomicDurable
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
resolvePolicy,
|
|
152
152
|
unansweredRefusalReason,
|
|
153
153
|
waitsForThePhone
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
155
155
|
|
|
156
156
|
// src/pending.ts
|
|
157
157
|
import { join } from "path";
|
|
@@ -8170,7 +8170,11 @@ var WRAPPER_SYNTAX = /* @__PURE__ */ new Map([
|
|
|
8170
8170
|
"-t",
|
|
8171
8171
|
"--type",
|
|
8172
8172
|
"-D",
|
|
8173
|
-
"--chdir"
|
|
8173
|
+
"--chdir",
|
|
8174
|
+
"-R",
|
|
8175
|
+
"--chroot",
|
|
8176
|
+
"-T",
|
|
8177
|
+
"--command-timeout"
|
|
8174
8178
|
])],
|
|
8175
8179
|
["doas", wrapperSyntax(["-u", "-C"])],
|
|
8176
8180
|
["time", wrapperSyntax(["-f", "--format", "-o", "--output"])],
|
|
@@ -8199,12 +8203,25 @@ var wrapperOptionConsumesNextWord = (text3, options) => {
|
|
|
8199
8203
|
const position = shortValueOptionPosition(text3, options);
|
|
8200
8204
|
return position !== -1 && position === text3.length - 1;
|
|
8201
8205
|
};
|
|
8202
|
-
var
|
|
8206
|
+
var knownWrapperOption = (text3, syntax, flags) => {
|
|
8207
|
+
if (text3.startsWith("--")) {
|
|
8208
|
+
const [name] = text3.split("=", 1);
|
|
8209
|
+
return name !== void 0 && (syntax.optionsWithAValue.has(name) || flags.includes(name));
|
|
8210
|
+
}
|
|
8211
|
+
for (const letter of text3.slice(1)) {
|
|
8212
|
+
const option = `-${letter}`;
|
|
8213
|
+
if (syntax.optionsWithAValue.has(option)) return true;
|
|
8214
|
+
if (!flags.includes(option)) return false;
|
|
8215
|
+
}
|
|
8216
|
+
return true;
|
|
8217
|
+
};
|
|
8218
|
+
var commandStartAfterWrapper = (words, syntax, knownFlags) => {
|
|
8203
8219
|
let index = 0;
|
|
8204
8220
|
while (index < words.length) {
|
|
8205
8221
|
const text3 = words[index]?.text ?? "";
|
|
8206
8222
|
if (text3 === END_OF_OPTIONS4) return index + 1 + syntax.operandsBeforeTheCommand;
|
|
8207
8223
|
if (!SHELL_ENV_ASSIGNMENT.test(text3) && (!FLAG.test(text3) || text3 === STANDARD_INPUT_ARGUMENT)) break;
|
|
8224
|
+
if (knownFlags && FLAG.test(text3) && !knownWrapperOption(text3, syntax, knownFlags)) return -1;
|
|
8208
8225
|
index += wrapperOptionConsumesNextWord(text3, syntax.optionsWithAValue) ? 2 : 1;
|
|
8209
8226
|
}
|
|
8210
8227
|
return index + syntax.operandsBeforeTheCommand;
|
|
@@ -8215,14 +8232,14 @@ var envWrappedInvocation = (args) => {
|
|
|
8215
8232
|
const command = args[reading.start];
|
|
8216
8233
|
return command === void 0 ? null : { program: command, args: args.slice(reading.start + 1) };
|
|
8217
8234
|
};
|
|
8218
|
-
var wrappedInvocation = ({ program, args }) => {
|
|
8235
|
+
var wrappedInvocation = ({ program, args }, knownFlags) => {
|
|
8219
8236
|
if (program === void 0) return null;
|
|
8220
8237
|
if (basenameOf(program.text) === ENV) return envWrappedInvocation(args);
|
|
8221
8238
|
const assigns = SHELL_ENV_ASSIGNMENT.test(program.text);
|
|
8222
8239
|
const syntax = assigns ? ENVIRONMENT_ASSIGNMENTS : WRAPPER_SYNTAX.get(basenameOf(program.text));
|
|
8223
8240
|
if (syntax === void 0) return null;
|
|
8224
8241
|
const words = assigns ? [program, ...args] : args;
|
|
8225
|
-
const start = commandStartAfterWrapper(words, syntax);
|
|
8242
|
+
const start = commandStartAfterWrapper(words, syntax, knownFlags);
|
|
8226
8243
|
const command = words[start];
|
|
8227
8244
|
return command === void 0 ? null : { program: command, args: words.slice(start + 1) };
|
|
8228
8245
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N7HFPPDR.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe
|
|
6
6
|
} from "./chunk-PM2NRK6Y.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSseMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5VC3BZEW.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M773UCGU.js";
|
|
7
7
|
import {
|
|
8
8
|
malformedApiKeyMessage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5UXIPTWM.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VA573E2C.js";
|
|
13
13
|
|
|
14
14
|
// src/mcp-stdio-bridge.ts
|
|
15
15
|
var MCP_BRIDGE_BINARY = "pushary-mcp";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_CHOICES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FM4ULVPT.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TXRII4O4.js";
|
|
7
7
|
import {
|
|
8
8
|
CLAUDE_HOOK_EVENTS,
|
|
9
9
|
CODEX_HOOK_EVENTS,
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
isBridgeLocator,
|
|
17
17
|
isProtectedByScope,
|
|
18
18
|
registerHookEntry
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-N7HFPPDR.js";
|
|
20
20
|
import {
|
|
21
21
|
CURSOR_GATE_EVENTS,
|
|
22
22
|
HOOK_BUDGETS,
|
|
23
23
|
HOOK_LOCATOR_BINARY,
|
|
24
24
|
hookCommandHoldBudget
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
26
26
|
|
|
27
27
|
// src/gemini-config.ts
|
|
28
28
|
var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readExistingMachineId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WL3WLBDO.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5UXIPTWM.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
clientContextHeaders,
|
|
15
15
|
redactSecretsFromContent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/net.ts
|
|
19
19
|
import { createRequire } from "module";
|
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6WHXLA4Y.js";
|
|
4
4
|
import {
|
|
5
5
|
declinedAgentsFile,
|
|
6
6
|
readDeclinedAgents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XOXSCTXN.js";
|
|
8
8
|
import {
|
|
9
9
|
OPENCODE_HOOK_BINARY,
|
|
10
10
|
openCodeConfigDir,
|
|
11
11
|
openCodePluginFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3XSQBXNQ.js";
|
|
13
13
|
import {
|
|
14
14
|
openCodePluginArgv
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CIJG74KZ.js";
|
|
16
16
|
import {
|
|
17
17
|
liveCursorGateCoverage
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IRWWJ6GZ.js";
|
|
19
19
|
import {
|
|
20
20
|
compatibleConfigFile,
|
|
21
21
|
compatibleHookEvents,
|
|
22
|
-
grokHome
|
|
22
|
+
grokHome
|
|
23
|
+
} from "./chunk-76OCRCIM.js";
|
|
24
|
+
import {
|
|
23
25
|
parseConfigDocument
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-5LK3UY46.js";
|
|
25
27
|
import {
|
|
26
28
|
DEFAULT_HOOKS_KEY_PATH,
|
|
27
29
|
GEMINI_HOOK_BINARY,
|
|
28
30
|
GEMINI_HOOK_EVENTS,
|
|
29
31
|
hooksAt
|
|
30
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UTP7PN5S.js";
|
|
31
33
|
import {
|
|
32
34
|
CODEX_EARLIER_APPROVAL_MATCHERS,
|
|
33
35
|
CODEX_HOOK_BINARY,
|
|
@@ -55,7 +57,7 @@ import {
|
|
|
55
57
|
parseHookArgv,
|
|
56
58
|
parseHookCommand,
|
|
57
59
|
supportedClaudeEvents
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-N7HFPPDR.js";
|
|
59
61
|
import {
|
|
60
62
|
readRegularJsonFile,
|
|
61
63
|
readRegularTextFile
|
|
@@ -69,7 +71,7 @@ import {
|
|
|
69
71
|
OPENCODE_APPROVAL_EVENT,
|
|
70
72
|
isRecord,
|
|
71
73
|
matcherMatchesEveryCall
|
|
72
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
73
75
|
|
|
74
76
|
// src/hook-wiring.ts
|
|
75
77
|
import { createHash } from "crypto";
|