pushary 1.9.252 → 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 +5 -0
- package/dist/{api-B3CCB7XF.js → api-HDETVYCD.js} +7 -7
- package/dist/bin/pushary-bell-hook.js +15 -15
- package/dist/bin/pushary-bell.js +3 -3
- package/dist/bin/pushary-calls.js +7 -7
- package/dist/bin/pushary-claude.js +13 -13
- package/dist/bin/pushary-clean.js +25 -25
- package/dist/bin/pushary-codex-bridge.js +10 -10
- package/dist/bin/pushary-codex-hook.js +19 -19
- package/dist/bin/pushary-codex-session.js +6 -6
- package/dist/bin/pushary-codex.js +8 -8
- package/dist/bin/pushary-connect.js +19 -19
- package/dist/bin/pushary-daemon.js +29 -29
- package/dist/bin/pushary-disconnect.js +19 -18
- package/dist/bin/pushary-doctor.js +29 -29
- package/dist/bin/pushary-elicitation-hook.js +15 -15
- package/dist/bin/pushary-gemini-bridge.js +5 -5
- package/dist/bin/pushary-gemini-hook.js +18 -18
- package/dist/bin/pushary-hook.js +19 -19
- package/dist/bin/pushary-login.js +11 -11
- package/dist/bin/pushary-logout.js +15 -15
- package/dist/bin/pushary-mcp.js +8 -8
- package/dist/bin/pushary-mode.js +7 -7
- package/dist/bin/pushary-notification-hook.js +15 -15
- package/dist/bin/pushary-opencode-bridge.js +8 -8
- package/dist/bin/pushary-opencode-hook.js +17 -17
- package/dist/bin/pushary-permission-denied-hook.js +19 -19
- package/dist/bin/pushary-permission-hook.js +19 -19
- package/dist/bin/pushary-post-hook.js +16 -16
- package/dist/bin/pushary-prompt-hook.js +15 -15
- package/dist/bin/pushary-session-end-hook.js +15 -15
- package/dist/bin/pushary-session-start-hook.js +24 -24
- package/dist/bin/pushary-sessions.js +6 -6
- package/dist/bin/pushary-setup.js +38 -38
- package/dist/bin/pushary-status.js +19 -19
- package/dist/bin/pushary-stop-hook.js +15 -15
- package/dist/bin/pushary-stopfailure-hook.js +15 -15
- package/dist/bin/pushary-suggestions.js +7 -7
- package/dist/bin/pushary-transcript-register.js +7 -7
- package/dist/bin/pushary-transcripts.js +14 -14
- package/dist/bin/pushary-upgrade.js +31 -31
- package/dist/bin/pushary-wait.js +7 -7
- package/dist/bin/pushary.js +4 -4
- package/dist/{chunk-2XVTJAYB.js → chunk-23WMHZ3S.js} +3 -3
- package/dist/{chunk-3REBHADE.js → chunk-3P5KVOFE.js} +3 -3
- package/dist/{chunk-P2CXRTW4.js → chunk-3XSQBXNQ.js} +3 -3
- package/dist/{chunk-EQDLUHZJ.js → chunk-3YUQ7NDR.js} +2 -2
- package/dist/{chunk-DYTDYNKC.js → chunk-44GOUZCE.js} +3 -3
- package/dist/{chunk-XU4SUZX3.js → chunk-4DOUCVU6.js} +3 -3
- package/dist/{chunk-ZA4AJIOD.js → chunk-4IT57V3A.js} +1 -1
- package/dist/{chunk-E5CTDUSW.js → chunk-5QFLGM7U.js} +2 -2
- package/dist/{chunk-2U735XOK.js → chunk-5VC3BZEW.js} +2 -2
- package/dist/{chunk-5KYAO2GI.js → chunk-5Y4DOTXC.js} +5 -5
- package/dist/{chunk-7OF777EU.js → chunk-6CQT3VM3.js} +17 -6
- package/dist/{chunk-MWYQVXAS.js → chunk-6I3NVT36.js} +3 -3
- package/dist/{chunk-GK2EYDF2.js → chunk-6OFIPAJD.js} +2 -2
- package/dist/{chunk-GFFNJ3DO.js → chunk-6WHXLA4Y.js} +1 -1
- package/dist/{chunk-6HGAY3R6.js → chunk-76OCRCIM.js} +3 -3
- package/dist/{chunk-DD5EW5IL.js → chunk-7LRR6GEH.js} +2 -2
- package/dist/{chunk-6OSGECAY.js → chunk-APPAY2PH.js} +3 -3
- package/dist/{chunk-5IHGO436.js → chunk-CMSBS2K4.js} +3 -3
- package/dist/{chunk-NXKCIKW6.js → chunk-D7TUN2MX.js} +9 -9
- package/dist/{chunk-XKF5SCK3.js → chunk-EVG4SHZR.js} +3 -3
- package/dist/{chunk-Q3YKGLZ6.js → chunk-GAX2UUKP.js} +1 -1
- package/dist/{chunk-WSROHGWN.js → chunk-GK7DZPLY.js} +8 -8
- package/dist/{chunk-G5DP6O5R.js → chunk-GNMEBYBT.js} +4 -4
- package/dist/{chunk-SJ2UBLL7.js → chunk-HPL432EE.js} +1 -1
- package/dist/{chunk-ERYXHBTE.js → chunk-ICWPQWXJ.js} +4 -4
- package/dist/{chunk-SZXRQXXN.js → chunk-IRWWJ6GZ.js} +2 -2
- package/dist/{chunk-3HGWR547.js → chunk-JDTDZMIQ.js} +3 -3
- package/dist/{chunk-L4ANPJUH.js → chunk-LQRYXA4E.js} +1 -1
- package/dist/{chunk-XY24PHAC.js → chunk-LUWFNQEB.js} +2 -2
- package/dist/{chunk-EIZXYIOM.js → chunk-MERKWOJA.js} +2 -2
- package/dist/{chunk-6LB7PZLK.js → chunk-MMEUYJTO.js} +1 -1
- package/dist/{chunk-XCGE5N3Z.js → chunk-N7HFPPDR.js} +24 -9
- package/dist/{chunk-JPHYKF6V.js → chunk-O4VX3PYZ.js} +3 -3
- package/dist/{chunk-V2FIT7FQ.js → chunk-PXGN373Y.js} +3 -3
- package/dist/{chunk-VAAODK2Q.js → chunk-RJOS3AEP.js} +3 -3
- package/dist/{chunk-C75GX2HY.js → chunk-SQMYR6SW.js} +4 -4
- package/dist/{chunk-VMUXNGA7.js → chunk-SUCVVSV6.js} +4 -4
- package/dist/{chunk-LI7OGANI.js → chunk-TKJIBVHJ.js} +1 -1
- package/dist/{chunk-6DQOFD25.js → chunk-TXRII4O4.js} +1 -1
- package/dist/{chunk-AOPSJHTB.js → chunk-UIUN2AIM.js} +1 -1
- package/dist/{chunk-2ODXKLNT.js → chunk-UTP7PN5S.js} +2 -2
- package/dist/{chunk-AKHCR2EY.js → chunk-UUDXTZND.js} +1 -1
- package/dist/{chunk-76NDZYJU.js → chunk-UWD3IGPJ.js} +7 -7
- package/dist/{chunk-RDRUCPFL.js → chunk-VKBZEIFU.js} +2 -2
- package/dist/{chunk-5SRTZJ2A.js → chunk-WEHPMIAG.js} +3 -3
- package/dist/{chunk-MNUJYXAH.js → chunk-WL3WLBDO.js} +1 -1
- package/dist/{chunk-K3VUIJLP.js → chunk-XEEUUUFY.js} +1 -1
- package/dist/{chunk-EQ6VOXZU.js → chunk-XIZWKMF2.js} +3 -3
- package/dist/{chunk-BWDQ4WOH.js → chunk-XOXSCTXN.js} +1 -1
- package/dist/{chunk-GKT2SRRG.js → chunk-YUV6X65O.js} +3 -3
- package/dist/{codex-app-cards-switch-FBXQXZ4I.js → codex-app-cards-switch-NN625ND3.js} +6 -6
- package/dist/{codex-desktop-launch-AYVX5Y6L.js → codex-desktop-launch-ZKAL5O2T.js} +2 -2
- package/dist/{codex-session-launch-UM3D3IX4.js → codex-session-launch-4OFEQV4L.js} +10 -10
- package/dist/{global-upgrade-26NPVCAL.js → global-upgrade-TLFBH3Z7.js} +6 -6
- package/dist/{identity-5A6DVNBA.js → identity-HYFFEFTV.js} +3 -3
- package/dist/{live-capabilities-3MRTSUZ4.js → live-capabilities-DUDIPA3U.js} +2 -2
- package/dist/{paths-ZLR4ZVF4.js → paths-3UYWAUJ4.js} +2 -2
- package/dist/{reapply-T37X6H55.js → reapply-4ECHOBPO.js} +20 -20
- package/dist/src/index.js +19 -19
- package/dist/{upgrade-lock-27EWUBDP.js → upgrade-lock-3733DY3A.js} +3 -3
- package/package.json +1 -1
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-QZESFXVG.js";
|
|
4
4
|
import {
|
|
5
5
|
notificationAnswerStep
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-APPAY2PH.js";
|
|
7
7
|
import {
|
|
8
8
|
matchMacAccountStep,
|
|
9
9
|
retryAgentCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MMEUYJTO.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND,
|
|
13
13
|
npmExecSetupCommandFor
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-M773UCGU.js";
|
|
4
4
|
import {
|
|
5
5
|
keyCheckFromResponse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4IT57V3A.js";
|
|
7
7
|
import {
|
|
8
8
|
installNetworkDefaults
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UUDXTZND.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
12
|
} from "./chunk-5UXIPTWM.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MERKWOJA.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LQRYXA4E.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GAX2UUKP.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-N7HFPPDR.js";
|
|
27
27
|
import {
|
|
28
28
|
describeReleaseNpmHolds,
|
|
29
29
|
execNpm,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
npmExitedOnReleaseAge,
|
|
34
34
|
readGlobalCliInstallAt,
|
|
35
35
|
readGlobalPrefix
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6I3NVT36.js";
|
|
37
37
|
import {
|
|
38
38
|
NPX_LATEST_COMMAND
|
|
39
39
|
} from "./chunk-VA573E2C.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YUV6X65O.js";
|
|
13
13
|
import {
|
|
14
14
|
CODEX_APP_LAUNCH_AT_LOGIN_VERB,
|
|
15
15
|
CODEX_APP_LAUNCH_VARIABLE,
|
|
@@ -23,11 +23,12 @@ import {
|
|
|
23
23
|
} from "./chunk-5LK3UY46.js";
|
|
24
24
|
import {
|
|
25
25
|
xml
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-44GOUZCE.js";
|
|
27
27
|
import {
|
|
28
28
|
codexHomeFrom
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-N7HFPPDR.js";
|
|
30
30
|
import {
|
|
31
|
+
readRegularTextFile,
|
|
31
32
|
writeFileAtomic
|
|
32
33
|
} from "./chunk-PM2NRK6Y.js";
|
|
33
34
|
import {
|
|
@@ -36,10 +37,10 @@ import {
|
|
|
36
37
|
|
|
37
38
|
// src/codex-app-cards-switch.ts
|
|
38
39
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
39
|
-
import { existsSync as existsSync2, mkdirSync, readFileSync, rmSync } from "fs";
|
|
40
|
+
import { existsSync as existsSync2, lstatSync, mkdirSync, readFileSync, rmSync, statSync } from "fs";
|
|
40
41
|
import { isDeepStrictEqual } from "util";
|
|
41
42
|
import { homedir as homedir2 } from "os";
|
|
42
|
-
import { isAbsolute as isAbsolute2, join as join2 } from "path";
|
|
43
|
+
import { dirname, isAbsolute as isAbsolute2, join as join2 } from "path";
|
|
43
44
|
|
|
44
45
|
// src/cli/mac-leftovers.ts
|
|
45
46
|
import { execSync, execFileSync } from "child_process";
|
|
@@ -433,7 +434,7 @@ var enginesToLaunchInstead = (paths, machine) => {
|
|
|
433
434
|
var engineToLaunchInstead = (paths, machine) => enginesToLaunchInstead(paths, machine).find((engine) => engine !== null && machine.exists(engine)) ?? null;
|
|
434
435
|
var pointCodexBackAtItsEngine = (request, paths, machine) => {
|
|
435
436
|
const codexConfig = join2(codexHomeFrom(request.homeDir), CODEX_CONFIG_FILE);
|
|
436
|
-
const config = machine.
|
|
437
|
+
const config = machine.readCodexConfig(codexConfig);
|
|
437
438
|
if (config === null) return;
|
|
438
439
|
const engine = engineToLaunchInstead(paths, machine);
|
|
439
440
|
if (engine === null) {
|
|
@@ -512,9 +513,19 @@ var fileContents = (path) => {
|
|
|
512
513
|
return null;
|
|
513
514
|
}
|
|
514
515
|
};
|
|
516
|
+
var readEffectiveCodexConfig = (path) => {
|
|
517
|
+
const config = readRegularTextFile(path, Number.MAX_SAFE_INTEGER);
|
|
518
|
+
if (config.kind === "ok") return config.value;
|
|
519
|
+
if (config.kind !== "missing") throw config.error;
|
|
520
|
+
let ancestor = path;
|
|
521
|
+
while (!lstatSync(ancestor, { throwIfNoEntry: false })) ancestor = dirname(ancestor);
|
|
522
|
+
if (ancestor === path || !statSync(ancestor).isDirectory()) throw new Error(`Could not read the Codex config at ${path}`);
|
|
523
|
+
return null;
|
|
524
|
+
};
|
|
515
525
|
var codexAppCardsFileAccessOnThisMac = {
|
|
516
526
|
exists: existsSync2,
|
|
517
527
|
readFile: fileContents,
|
|
528
|
+
readCodexConfig: readEffectiveCodexConfig,
|
|
518
529
|
makeDirectory: (path, mode) => {
|
|
519
530
|
mkdirSync(path, { recursive: true, mode });
|
|
520
531
|
},
|
|
@@ -610,9 +610,9 @@ var installGlobally = (options) => {
|
|
|
610
610
|
}
|
|
611
611
|
const started = (async () => {
|
|
612
612
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
613
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
614
|
-
const { canonicalLockPath, installWithUpgradeLock, leftAnUnfinishedInstallHere, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
615
|
-
const { autoUpdateLock } = await import("./paths-
|
|
613
|
+
const { withUpgradeLock } = await import("./global-upgrade-TLFBH3Z7.js");
|
|
614
|
+
const { canonicalLockPath, installWithUpgradeLock, leftAnUnfinishedInstallHere, ownsUpgradeLock } = await import("./upgrade-lock-3733DY3A.js");
|
|
615
|
+
const { autoUpdateLock } = await import("./paths-3UYWAUJ4.js");
|
|
616
616
|
const lockPath = options.lockPath ?? autoUpdateLock();
|
|
617
617
|
const lockFile = canonicalLockPath(lockPath);
|
|
618
618
|
const unfinishedHere = failuresThisProcessLeftUnfinished.get(lockFile);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3XSQBXNQ.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
6
|
} from "./chunk-6S6ASGR3.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-N7HFPPDR.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
12
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
addGeminiMcpServer,
|
|
6
6
|
removeGeminiMcpServer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UTP7PN5S.js";
|
|
8
8
|
import {
|
|
9
9
|
CLAUDE_CODE_AGENT
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SUCVVSV6.js";
|
|
11
11
|
import {
|
|
12
12
|
compatibleToolLookup
|
|
13
13
|
} from "./chunk-IXLXPPSD.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
isPusharyHook,
|
|
23
23
|
registerHookEntry,
|
|
24
24
|
removeClaudeMcpServers
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-N7HFPPDR.js";
|
|
26
26
|
import {
|
|
27
27
|
AGENT_ENFORCEMENT,
|
|
28
28
|
HOOK_COMPATIBLE_PROFILES,
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
OPENCLAW_ENVIRONMENT_KEYS,
|
|
6
6
|
openClawEnvironmentOf,
|
|
7
7
|
openClawPathsFrom
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-N7HFPPDR.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6I3NVT36.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
14
|
} from "./chunk-SZMGZ3C5.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPROVAL_RULES_PATH,
|
|
3
3
|
canChangeApprovalSettings
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HPL432EE.js";
|
|
5
5
|
import {
|
|
6
6
|
callMcpTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5VC3BZEW.js";
|
|
8
8
|
import {
|
|
9
9
|
absoluteUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4IT57V3A.js";
|
|
11
11
|
import {
|
|
12
12
|
getBaseUrl
|
|
13
13
|
} from "./chunk-5UXIPTWM.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CODEX_HOOK_STATUS,
|
|
3
3
|
HERMES_HISTORY_HELPER_COMMAND
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EVG4SHZR.js";
|
|
5
5
|
import {
|
|
6
6
|
HERMES_ALWAYS_ALLOWED_SHELL_RULE,
|
|
7
7
|
HERMES_COMMAND_ALLOWLIST_KEY,
|
|
8
8
|
HERMES_GATE_TOOLS_KEY,
|
|
9
9
|
HERMES_SHELL_TOOL
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JDTDZMIQ.js";
|
|
11
11
|
import {
|
|
12
12
|
retryAgentCommand
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MMEUYJTO.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
16
|
} from "./chunk-VA573E2C.js";
|
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
phoneApprovalSourceFor,
|
|
5
5
|
rememberPhoneApproval,
|
|
6
6
|
takePhoneApproval
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3YUQ7NDR.js";
|
|
8
8
|
import {
|
|
9
9
|
claudeSettingsLocationFor,
|
|
10
10
|
readClaudePermissionRules
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6WHXLA4Y.js";
|
|
12
12
|
import {
|
|
13
13
|
defersToNativeMode
|
|
14
14
|
} from "./chunk-GQLHV36Q.js";
|
|
15
15
|
import {
|
|
16
16
|
reportMachineDenial
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XEEUUUFY.js";
|
|
18
18
|
import {
|
|
19
19
|
isGatingMoment,
|
|
20
20
|
recordKeylessMoment
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
isAdmitted,
|
|
24
24
|
readAdmissionRules
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SQMYR6SW.js";
|
|
26
26
|
import {
|
|
27
27
|
activeHookSource,
|
|
28
28
|
activeIdentity,
|
|
29
29
|
namedSource
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-76OCRCIM.js";
|
|
31
31
|
import {
|
|
32
32
|
DEFAULT_SESSION,
|
|
33
33
|
allow,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
storedWaitDeadline,
|
|
69
69
|
sweepFilesOlderThan,
|
|
70
70
|
userScope
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-SUCVVSV6.js";
|
|
72
72
|
import {
|
|
73
73
|
UNNAMED_ACTION,
|
|
74
74
|
deriveAction,
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
sendNotification,
|
|
94
94
|
waitForQuestion,
|
|
95
95
|
withdrawQuestion
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-3P5KVOFE.js";
|
|
97
97
|
import {
|
|
98
98
|
branchFor,
|
|
99
99
|
projectNameFor,
|
|
@@ -102,10 +102,10 @@ import {
|
|
|
102
102
|
} from "./chunk-R4JAJBHJ.js";
|
|
103
103
|
import {
|
|
104
104
|
getMachineId
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-WL3WLBDO.js";
|
|
106
106
|
import {
|
|
107
107
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-N7HFPPDR.js";
|
|
109
109
|
import {
|
|
110
110
|
getApiKey,
|
|
111
111
|
getBaseUrl,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serviceNodeFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-44GOUZCE.js";
|
|
4
4
|
import {
|
|
5
5
|
OWNER_ONLY_FILE_MODE,
|
|
6
6
|
readOwnerOnlyJson
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
codexHome,
|
|
15
15
|
codexHooksJsonIn,
|
|
16
16
|
isPusharyCodexCommand
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-N7HFPPDR.js";
|
|
18
18
|
import {
|
|
19
19
|
DEFAULT_WINDOWS_PATHEXT,
|
|
20
20
|
DIRECTLY_STARTABLE_EXTENSIONS,
|
|
21
21
|
plannedGlobalPackage,
|
|
22
22
|
readGlobalPrefix,
|
|
23
23
|
resolvePathBinary
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6I3NVT36.js";
|
|
25
25
|
import {
|
|
26
26
|
getPackageVersion,
|
|
27
27
|
globalTranscriptRegisterEntry
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ensureCodexTrustsPusharyHooks,
|
|
6
6
|
hermesHistoryNeedsTheCliHelper,
|
|
7
7
|
recordInstalledHermesHistoryHelper
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EVG4SHZR.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-JDTDZMIQ.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-ICWPQWXJ.js";
|
|
27
27
|
import {
|
|
28
28
|
OPENCODE_HOOK_BINARY,
|
|
29
29
|
agentHookOwner,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
openCodePluginDir,
|
|
37
37
|
openCodeWired,
|
|
38
38
|
withOpenCodeAskRules
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-3XSQBXNQ.js";
|
|
40
40
|
import {
|
|
41
41
|
detectClaudeVersion
|
|
42
42
|
} from "./chunk-24MGJAU6.js";
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
compatibleConfigFile,
|
|
46
46
|
compatibleInstructionsFile,
|
|
47
47
|
hasCompatibleHooks
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-76OCRCIM.js";
|
|
49
49
|
import {
|
|
50
50
|
GEMINI_HOOK_BINARY,
|
|
51
51
|
addGeminiHooks,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
geminiWired,
|
|
58
58
|
hasGeminiHooks,
|
|
59
59
|
planHooks
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-UTP7PN5S.js";
|
|
61
61
|
import {
|
|
62
62
|
transcriptsEnabled
|
|
63
63
|
} from "./chunk-CZ4EG35M.js";
|
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
renderAgentInstructions,
|
|
111
111
|
supportedClaudeEvents,
|
|
112
112
|
vscodePluginMcp
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-N7HFPPDR.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-6I3NVT36.js";
|
|
122
122
|
import {
|
|
123
123
|
readJsonSafe,
|
|
124
124
|
writeFileAtomic,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openClawLauncherCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7LRR6GEH.js";
|
|
4
4
|
import {
|
|
5
5
|
openCodeConfigDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3XSQBXNQ.js";
|
|
7
7
|
import {
|
|
8
8
|
nativeClaudeInstallPath
|
|
9
9
|
} from "./chunk-TCE3J44Z.js";
|
|
10
10
|
import {
|
|
11
11
|
grokHome
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-76OCRCIM.js";
|
|
13
13
|
import {
|
|
14
14
|
claudeConfigDir,
|
|
15
15
|
clineDataDirectory,
|
|
16
16
|
codexHomeFrom,
|
|
17
17
|
openClawEnvironmentOf,
|
|
18
18
|
openClawPathsFrom
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-N7HFPPDR.js";
|
|
20
20
|
import {
|
|
21
21
|
HOOK_COMPATIBLE_PROFILES
|
|
22
22
|
} from "./chunk-SZMGZ3C5.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MMEUYJTO.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UIUN2AIM.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
13
|
} from "./chunk-6S6ASGR3.js";
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
withClinePusharyServer,
|
|
33
33
|
withRefreshedClineKey,
|
|
34
34
|
withoutClinePusharyServer
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-N7HFPPDR.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveGlobalBinary
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-6I3NVT36.js";
|
|
39
39
|
import {
|
|
40
40
|
readJsonSafe,
|
|
41
41
|
writeFileAtomic,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyHookExecutable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UTP7PN5S.js";
|
|
4
4
|
import {
|
|
5
5
|
bridgeResolvesToApp,
|
|
6
6
|
cursorUserHooks,
|
|
7
7
|
executableFileName,
|
|
8
8
|
isBridgeLocator,
|
|
9
9
|
liveBridgeProbe
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-N7HFPPDR.js";
|
|
11
11
|
import {
|
|
12
12
|
atLeast,
|
|
13
13
|
parseVersion
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
uninstallOpenClawPlugin,
|
|
17
17
|
unsetOpenClawEntry,
|
|
18
18
|
writeOpenClawEntry
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7LRR6GEH.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-N7HFPPDR.js";
|
|
32
32
|
import {
|
|
33
33
|
resolvePathBinary
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-6I3NVT36.js";
|
|
35
35
|
import {
|
|
36
36
|
readJsonSafe,
|
|
37
37
|
writeJsonAtomic
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-APPAY2PH.js";
|
|
18
18
|
import {
|
|
19
19
|
describeRevokeAttempt,
|
|
20
20
|
keyNoLongerAccepted,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-M4ZP7SGR.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-4IT57V3A.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
38
|
} from "./chunk-6JVSKDBD.js";
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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,
|