@pushary/agent-hooks 1.9.166 → 1.9.168
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 +12 -0
- package/dist/{api-D4SZ2E5J.js → api-2NP643KP.js} +15 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +11 -11
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +27 -27
- package/dist/bin/pushary-clean.js +38 -38
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +36 -36
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +34 -34
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +45 -45
- package/dist/bin/pushary-disconnect.js +29 -29
- package/dist/bin/pushary-display-hook.js +10 -4
- package/dist/bin/pushary-doctor.js +46 -46
- package/dist/bin/pushary-elicitation-hook.js +28 -28
- package/dist/bin/pushary-gemini-bridge.js +17 -17
- package/dist/bin/pushary-gemini-hook.js +32 -32
- package/dist/bin/pushary-hook.js +36 -36
- package/dist/bin/pushary-login.js +22 -22
- package/dist/bin/pushary-logout.js +29 -29
- 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-hook.js +135 -40
- package/dist/bin/pushary-permission-denied-hook.js +36 -36
- package/dist/bin/pushary-permission-hook.js +36 -36
- 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 +38 -38
- package/dist/bin/pushary-setup.js +54 -54
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +35 -35
- 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 +25 -25
- package/dist/bin/pushary-upgrade.js +43 -43
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-L2NGVERQ.js → chunk-2SMEEXDR.js} +1 -1
- package/dist/{chunk-C2PGBMTH.js → chunk-2TRYSF64.js} +1 -1
- package/dist/{chunk-NYCN3CCK.js → chunk-3M4ZOSR3.js} +1 -1
- package/dist/{chunk-OPN6FWMG.js → chunk-4HLSCBES.js} +1 -1
- package/dist/{chunk-LFS3PX7S.js → chunk-5N7MRVM3.js} +4 -4
- package/dist/{chunk-ILGAR7DW.js → chunk-5Q2UDUR6.js} +2 -2
- package/dist/{chunk-IEENAYGT.js → chunk-66VZIS6R.js} +1 -1
- package/dist/{chunk-JLGZGITL.js → chunk-6B2YKVX3.js} +2 -2
- package/dist/{chunk-X7IIWYAG.js → chunk-6IZVL42W.js} +1 -1
- package/dist/{chunk-ILBNQX44.js → chunk-6PDBRLIH.js} +5 -5
- package/dist/{chunk-U6NNLBWJ.js → chunk-752NWYBD.js} +5 -5
- package/dist/{chunk-7YUKURRZ.js → chunk-7AENNOGX.js} +1 -1
- package/dist/{chunk-2KZZZ4JK.js → chunk-7DEAVAAS.js} +3 -3
- package/dist/{chunk-LDEZYH7Y.js → chunk-7GMTA5NR.js} +10 -10
- package/dist/{chunk-NUHIGW7H.js → chunk-AIUFZQAA.js} +1 -1
- package/dist/{chunk-2J3IIFS3.js → chunk-AO4CKFQA.js} +2 -2
- package/dist/{chunk-7WHUMPWM.js → chunk-AVIQZSCU.js} +1 -1
- package/dist/{chunk-A4IK6JTC.js → chunk-BIEJHRZG.js} +6 -5
- package/dist/{chunk-R23ZNBJU.js → chunk-CCQZGWSR.js} +6 -6
- package/dist/{chunk-X6YYQZW7.js → chunk-CFZUESTS.js} +8 -4
- package/dist/{chunk-ANMVHKNK.js → chunk-CRTNHB6F.js} +3 -3
- package/dist/{chunk-7HXO72HS.js → chunk-DXUPOVJP.js} +1 -1
- package/dist/{chunk-KYBVLSMT.js → chunk-DYZ26IPH.js} +3 -3
- package/dist/{chunk-LJSRMA5C.js → chunk-EDCDODWA.js} +5 -5
- package/dist/{chunk-ZB5O3LKY.js → chunk-EGPOBJZG.js} +1 -1
- package/dist/{chunk-VDNKX5OF.js → chunk-F7N6LYGG.js} +5 -5
- package/dist/{chunk-I4BIOADS.js → chunk-FAORXDJ4.js} +4 -4
- package/dist/{chunk-SIZBYHXW.js → chunk-FUK2DC53.js} +4 -4
- package/dist/{chunk-635I27L4.js → chunk-GV3ZGKMK.js} +3 -3
- package/dist/{chunk-UM4RAZPH.js → chunk-GVIKF73A.js} +1 -1
- package/dist/{chunk-6OBGKICP.js → chunk-HFI6SU27.js} +3 -3
- package/dist/{chunk-OJRX6UVD.js → chunk-HV7KTGWF.js} +7 -7
- package/dist/{chunk-YQ67XWMM.js → chunk-IWWKO4MP.js} +4 -4
- package/dist/{chunk-MTB52RSH.js → chunk-K24RAOIO.js} +2 -2
- package/dist/{chunk-L54D5IIR.js → chunk-KEC67NZF.js} +5 -5
- package/dist/{chunk-67CGCPI4.js → chunk-KX4Q4CKZ.js} +2 -2
- package/dist/{chunk-ZEPOIQ4H.js → chunk-L77OIGRB.js} +22 -6
- package/dist/{chunk-YLR6QHCH.js → chunk-LDUK7D2I.js} +6 -6
- package/dist/{chunk-BFMILGSX.js → chunk-LEDGOYZV.js} +3 -3
- package/dist/{chunk-NEGPZ3DO.js → chunk-LGQUJFVZ.js} +2 -2
- package/dist/{chunk-WIVLMIJ6.js → chunk-LL4TMEDG.js} +4 -4
- package/dist/{chunk-WTUQEQ54.js → chunk-LOUSA3NO.js} +6 -6
- package/dist/{chunk-Y3QV3VYX.js → chunk-LVF5IBS6.js} +1 -1
- package/dist/{chunk-2FLJZICI.js → chunk-LZU7ZDY7.js} +2 -2
- package/dist/{chunk-EANTIGY7.js → chunk-MK7T7MNB.js} +1 -1
- package/dist/{chunk-IGBKHRCZ.js → chunk-MOQUKAVU.js} +1 -1
- package/dist/{chunk-RN4Z5BQJ.js → chunk-MRTJ54MC.js} +3 -3
- package/dist/{chunk-ZPFENH7C.js → chunk-NOHOCNY6.js} +4 -4
- package/dist/{chunk-I2FH4E6H.js → chunk-NRXFFCNG.js} +2 -2
- package/dist/{chunk-D3KD7K3N.js → chunk-OBUKF3WP.js} +4 -4
- package/dist/{chunk-JAE5ULC6.js → chunk-OI5OOFUY.js} +5 -5
- package/dist/{chunk-MYN6FNBS.js → chunk-ORTEANZH.js} +3 -3
- package/dist/{chunk-7PMCRTPW.js → chunk-OU7PO32D.js} +3 -3
- package/dist/{chunk-QV5HMBT4.js → chunk-PG5N3FL5.js} +12 -12
- package/dist/{chunk-DFGHHYS5.js → chunk-QCQADUHN.js} +4 -4
- package/dist/{chunk-YORHQJ5M.js → chunk-QMVUDNQR.js} +4 -4
- package/dist/{chunk-6ZGXNEBA.js → chunk-RY5EPLCY.js} +5 -5
- package/dist/{chunk-L4HJSUP7.js → chunk-SD5K34T2.js} +1 -1
- package/dist/{chunk-YENSTBQI.js → chunk-SSKNRWWS.js} +1 -1
- package/dist/{chunk-3CLLJJJ2.js → chunk-TGIWLQOV.js} +5 -5
- package/dist/{chunk-7TQXWAOZ.js → chunk-TTTMOX73.js} +1 -1
- package/dist/{chunk-3I5IFXHF.js → chunk-UCND4JHN.js} +101 -23
- package/dist/{chunk-6QLOTNO2.js → chunk-UCW24KPU.js} +2 -2
- package/dist/{chunk-TBDSTEO3.js → chunk-UN36O6U6.js} +3 -3
- package/dist/{chunk-RZRBXDGN.js → chunk-VWVYDYCV.js} +25 -9
- package/dist/{chunk-NN2RZ2UB.js → chunk-VY22KT5X.js} +3 -3
- package/dist/{chunk-TVXGBUOL.js → chunk-W4NCWOVL.js} +1 -1
- package/dist/{chunk-BOJWXETW.js → chunk-WDLBF3PM.js} +1 -1
- package/dist/{chunk-X4YQCI5T.js → chunk-WI2WYKSE.js} +1 -1
- package/dist/{chunk-JARCCL3M.js → chunk-WIOC6L6Y.js} +2 -2
- package/dist/{chunk-7JO3NNIQ.js → chunk-WK6TE6U7.js} +2 -2
- package/dist/{chunk-XRAUQWLP.js → chunk-WTUURSCO.js} +6 -6
- package/dist/{chunk-MN2FFBYE.js → chunk-X7RPRBZE.js} +2 -2
- package/dist/{chunk-5I34FSSW.js → chunk-X7RR2ZQH.js} +6 -6
- package/dist/{chunk-GNCFKXQS.js → chunk-XGNOM3XC.js} +2 -2
- package/dist/{chunk-NCZ7MLNW.js → chunk-XWLSZNXW.js} +9 -9
- package/dist/{chunk-NXTAXFQS.js → chunk-ZKMXHG5G.js} +8 -8
- package/dist/{chunk-ITGM5QW4.js → chunk-ZXRBGLTI.js} +6 -6
- package/dist/{chunk-3GWMSKFY.js → chunk-ZXZEETHT.js} +23 -20
- package/dist/{chunk-7X7ZTLIN.js → chunk-ZYH4KTY5.js} +15 -13
- package/dist/{codex-app-cards-switch-BOIE5IZL.js → codex-app-cards-switch-C6OKN3RA.js} +11 -11
- package/dist/{codex-card-routing-B2ZI4WRI.js → codex-card-routing-QGOX4RNI.js} +2 -2
- package/dist/{codex-desktop-launch-LBL2LPS7.js → codex-desktop-launch-5ISZYYGG.js} +1 -1
- package/dist/{codex-session-launch-7WVCWASC.js → codex-session-launch-JWT76ONU.js} +20 -20
- package/dist/{config-S53I5YNR.js → config-PWEPWMNF.js} +3 -3
- package/dist/{global-upgrade-ND726NHJ.js → global-upgrade-ZAPGSH66.js} +9 -9
- package/dist/{identity-3G66JTAR.js → identity-O57FDCPL.js} +4 -4
- package/dist/{live-capabilities-76C2DKTY.js → live-capabilities-FVRWXQAC.js} +4 -4
- package/dist/{paths-O3CZR2BV.js → paths-LCARWI3S.js} +3 -3
- package/dist/{reapply-TEATBGFG.js → reapply-T5JXYBH2.js} +31 -31
- package/dist/src/index.js +35 -35
- package/dist/{upgrade-lock-PDCUHFRW.js → upgrade-lock-3P3VK6KQ.js} +4 -4
- package/dist/{usage-DFCL7TQU.js → usage-BKT5P2P3.js} +3 -3
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyHookExecutable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OBUKF3WP.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-X7RPRBZE.js";
|
|
11
11
|
import {
|
|
12
12
|
atLeast,
|
|
13
13
|
parseVersion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NOHOCNY6.js";
|
|
15
15
|
import {
|
|
16
16
|
CURSOR_GATE_COVERAGE,
|
|
17
17
|
CURSOR_GATE_SCRIPT,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
isCursorHookPayload,
|
|
22
22
|
isRecord,
|
|
23
23
|
toolsCoveredByGateEntry
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-L77OIGRB.js";
|
|
25
25
|
|
|
26
26
|
// src/cursor-gate-registration.ts
|
|
27
27
|
import { dirname, isAbsolute, join, resolve } from "path";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
announceSubscriptionRequired,
|
|
3
3
|
isDeferAnswer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-66VZIS6R.js";
|
|
5
5
|
import {
|
|
6
6
|
askUser,
|
|
7
7
|
isDecisionStopped,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
isThePersonsStop,
|
|
10
10
|
waitForOpenQuestion,
|
|
11
11
|
waitForQuestion
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VWVYDYCV.js";
|
|
13
13
|
import {
|
|
14
14
|
SubscriptionRequiredError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6PDBRLIH.js";
|
|
16
16
|
import {
|
|
17
17
|
getMachineId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MOQUKAVU.js";
|
|
19
19
|
import {
|
|
20
20
|
ASK_CONTEXT_MAX,
|
|
21
21
|
agentQuestionContext,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
parseAgentQuestionAnswers,
|
|
27
27
|
plainAskOf,
|
|
28
28
|
questionsShownAsASet
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-L77OIGRB.js";
|
|
30
30
|
|
|
31
31
|
// src/agent-question-ask.ts
|
|
32
32
|
var ONLY_QUESTION = { index: 0, total: 1 };
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UN36O6U6.js";
|
|
13
13
|
import {
|
|
14
14
|
CODEX_APP_LAUNCH_AT_LOGIN_VERB,
|
|
15
15
|
CODEX_APP_LAUNCH_VARIABLE
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-QCGNGEGE.js";
|
|
20
20
|
import {
|
|
21
21
|
xml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LDUK7D2I.js";
|
|
23
23
|
import {
|
|
24
24
|
writeFileAtomic
|
|
25
25
|
} from "./chunk-TODDEIYG.js";
|
|
@@ -532,7 +532,7 @@ var AGENTS = {
|
|
|
532
532
|
connectVia: "Native hooks + MCP",
|
|
533
533
|
setupCommand: PUSHARY_SETUP_COMMAND,
|
|
534
534
|
enforcementDetail: "Shell, edits and MCP calls through native PreToolUse hooks. Grok's own permission checks still apply after a phone approval.",
|
|
535
|
-
capabilityNote: "Grok fails open if it kills a hook or cannot run it. Setup leaves Grok's permission mode unchanged. Native question and plan dialogs stay in Grok; proactive phone questions use Pushary MCP."
|
|
535
|
+
capabilityNote: "Grok's read-only tools (`grep`, `list_dir`, `glob`, `read_file`, `todo_write`, `search_tool`) are never asked about, as Claude Code's reads are not; a rule that denies one still blocks it. Grok fails open if it kills a hook or cannot run it. Setup leaves Grok's permission mode unchanged. Native question and plan dialogs stay in Grok; proactive phone questions use Pushary MCP."
|
|
536
536
|
},
|
|
537
537
|
grok_bot: {
|
|
538
538
|
...defaults,
|
|
@@ -699,11 +699,14 @@ var pathsNamedIn = (record5, keys3) => keys3.flatMap((key) => {
|
|
|
699
699
|
var namesOneFile = (paths2, resolvePath) => new Set(paths2.map(resolvePath)).size === 1;
|
|
700
700
|
var filePathKeysOf = (profile) => [...profile.pathInputKeys, ...CANONICAL_PATH_KEYS];
|
|
701
701
|
var namesAFilePath = (profile, toolInput) => pathsNamedIn(toolInput, filePathKeysOf(profile)).length > 0;
|
|
702
|
+
var namesTwoValuesForOneKey = (profile, toolInput) => Object.entries(profile.inputKeyAliases).some(([agentKey, canonicalKey]) => toolInput[agentKey] !== void 0 && toolInput[canonicalKey] !== void 0 && toolInput[agentKey] !== toolInput[canonicalKey]);
|
|
702
703
|
var withCanonicalInputKeys = (profile, toolInput) => {
|
|
703
704
|
const renamed = Object.entries(profile.inputKeyAliases).flatMap(([agentKey, canonicalKey]) => toolInput[agentKey] === void 0 || toolInput[canonicalKey] !== void 0 ? [] : [[canonicalKey, toolInput[agentKey]]]);
|
|
704
705
|
return renamed.length === 0 ? toolInput : { ...toolInput, ...Object.fromEntries(renamed) };
|
|
705
706
|
};
|
|
706
707
|
var canonicalToolName = (profile, toolName) => profile.toolAliases[toolName] ?? toolName;
|
|
708
|
+
var CATCH_ALL_MATCHER = ".*";
|
|
709
|
+
var sendsEveryToolCall = (profile) => profile.extraMatchers.includes(CATCH_ALL_MATCHER);
|
|
707
710
|
var TASK_OUTPUT_TOOL = "BashOutput";
|
|
708
711
|
var TASK_STOP_TOOL = "KillShell";
|
|
709
712
|
var BLANK_TASK_INPUT_TOOL = "TaskInput";
|
|
@@ -748,7 +751,7 @@ var toToolLookup = (profile, toolName, toolInput, resolvePath = (path) => path)
|
|
|
748
751
|
if (!command) return { tool, input: toolInput, unreadable: true };
|
|
749
752
|
return { tool, input: { command, ...shellContextOf(profile, toolInput) }, unreadable: false };
|
|
750
753
|
}
|
|
751
|
-
if (!PATH_TOOLS.has(tool)) return { tool, input: toolInput, unreadable:
|
|
754
|
+
if (!PATH_TOOLS.has(tool)) return { tool, input: withCanonicalInputKeys(profile, toolInput), unreadable: namesTwoValuesForOneKey(profile, toolInput) };
|
|
752
755
|
const paths2 = pathsNamedIn(toolInput, filePathKeysOf(profile));
|
|
753
756
|
const [filePath] = paths2;
|
|
754
757
|
if (!filePath || !namesOneFile(paths2, resolvePath)) return { tool, input: toolInput, unreadable: true };
|
|
@@ -1085,15 +1088,20 @@ var GROK = {
|
|
|
1085
1088
|
search_replace: "Edit",
|
|
1086
1089
|
apply_patch: "Edit",
|
|
1087
1090
|
read_file: "Read",
|
|
1091
|
+
grep: "Grep",
|
|
1092
|
+
glob: "Glob",
|
|
1093
|
+
list_dir: "LS",
|
|
1094
|
+
todo_write: "TodoWrite",
|
|
1095
|
+
search_tool: "ToolSearch",
|
|
1088
1096
|
web_search: "WebSearch",
|
|
1089
1097
|
web_fetch: "WebFetch",
|
|
1090
1098
|
spawn_subagent: "Task",
|
|
1091
1099
|
task_output: "BashOutput",
|
|
1092
1100
|
kill_task: "KillShell"
|
|
1093
1101
|
},
|
|
1094
|
-
inputKeyAliases: {},
|
|
1102
|
+
inputKeyAliases: { target_directory: "path" },
|
|
1095
1103
|
extraMatchers: [".*"],
|
|
1096
|
-
pathInputKeys: [],
|
|
1104
|
+
pathInputKeys: ["target_file"],
|
|
1097
1105
|
shellCommandKeys: [],
|
|
1098
1106
|
shellContextKeys: ["cwd"],
|
|
1099
1107
|
events: ["PreToolUse", "PostToolUse", "PostToolUseFailure", "Stop", "StopCancelled", "StopFailure", "UserPromptSubmit", "Notification", "SessionStart", "SessionEnd", "SubagentStart", "SubagentStop", "PreCompact", "PostCompact"],
|
|
@@ -9095,12 +9103,14 @@ var evaluateScope = (contract, path) => {
|
|
|
9095
9103
|
};
|
|
9096
9104
|
var scopeRequiresHuman = (verdict) => verdict.outcome === "out_of_scope" || verdict.outcome === "off_limits";
|
|
9097
9105
|
var widenablePath = (path) => path.length > 0 && path.length <= SCOPE_PATH_MAX_LENGTH ? path : void 0;
|
|
9106
|
+
var OUT_OF_SCOPE_REASON_START = "Outside the scope you approved: ";
|
|
9107
|
+
var OFF_LIMITS_REASON_START = "You marked this off limits: ";
|
|
9098
9108
|
var scopeChangeReason = (verdict) => {
|
|
9099
9109
|
if (verdict.outcome === "out_of_scope") {
|
|
9100
|
-
return
|
|
9110
|
+
return `${OUT_OF_SCOPE_REASON_START}${verdict.path}`;
|
|
9101
9111
|
}
|
|
9102
9112
|
if (verdict.outcome === "off_limits") {
|
|
9103
|
-
return
|
|
9113
|
+
return `${OFF_LIMITS_REASON_START}${verdict.path} (${verdict.rule})`;
|
|
9104
9114
|
}
|
|
9105
9115
|
return void 0;
|
|
9106
9116
|
};
|
|
@@ -9430,6 +9440,11 @@ var CLAUDE_SUBAGENT_TOOL_ALIASES = { Task: "Agent", Agent: "Task" };
|
|
|
9430
9440
|
var claudeSubagentToolAliasOf = (toolName) => Object.hasOwn(CLAUDE_SUBAGENT_TOOL_ALIASES, toolName) ? CLAUDE_SUBAGENT_TOOL_ALIASES[toolName] : void 0;
|
|
9431
9441
|
var isPusharyOwnOrConnectorTool = (toolName) => isPusharyOwnTool(toolName) || isPusharyConnectorTool(toolName);
|
|
9432
9442
|
var isClaudeRefusalsOnlyTool = (toolName) => toolName.startsWith(MCP_TOOL_PREFIX) || CLAUDE_REFUSALS_ONLY_TOOLS.includes(toolName);
|
|
9443
|
+
var TOOLS_NEVER_ASKED_OF_A_CATCH_ALL_AGENT = /* @__PURE__ */ new Set([...CAPABILITY_PATTERNS.read, "TodoWrite", "ToolSearch"]);
|
|
9444
|
+
var isNeverAskedToolOfACatchAllAgent = (source, toolName) => {
|
|
9445
|
+
const profile = hookCompatibleProfileBySource(source);
|
|
9446
|
+
return profile !== void 0 && sendsEveryToolCall(profile) && TOOLS_NEVER_ASKED_OF_A_CATCH_ALL_AGENT.has(canonicalToolName(profile, toolName));
|
|
9447
|
+
};
|
|
9433
9448
|
var standingDenyOfSubagentAlias = (toolName, verdictFor) => {
|
|
9434
9449
|
const alias = claudeSubagentToolAliasOf(toolName);
|
|
9435
9450
|
if (alias === void 0) return void 0;
|
|
@@ -10496,6 +10511,7 @@ export {
|
|
|
10496
10511
|
CLAUDE_REFUSALS_ONLY_PRETOOLUSE_MATCHER,
|
|
10497
10512
|
isPusharyOwnOrConnectorTool,
|
|
10498
10513
|
isClaudeRefusalsOnlyTool,
|
|
10514
|
+
isNeverAskedToolOfACatchAllAgent,
|
|
10499
10515
|
standingDenyOfSubagentAlias,
|
|
10500
10516
|
permissionsOffLineAppliesTo,
|
|
10501
10517
|
permissionsOffAskReason,
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
} from "./chunk-Y6ILCLKE.js";
|
|
5
5
|
import {
|
|
6
6
|
getMachineId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MOQUKAVU.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DYZ26IPH.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-X7RPRBZE.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveGlobalBinary
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NOHOCNY6.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LVF5IBS6.js";
|
|
20
20
|
import {
|
|
21
21
|
readJsonSafe,
|
|
22
22
|
writeFileAtomic,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-UQTQ6HPO.js";
|
|
33
33
|
import {
|
|
34
34
|
isRecord
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-L77OIGRB.js";
|
|
36
36
|
|
|
37
37
|
// src/daemon-entry-guard.ts
|
|
38
38
|
import { mkdirSync, readFileSync } from "fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LGQUJFVZ.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
6
|
} from "./chunk-CYTPQDQY.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolvePackageVersionFromBinary,
|
|
13
13
|
resolvePathBinary,
|
|
14
14
|
resolvePathBinaryAsync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NOHOCNY6.js";
|
|
16
16
|
import {
|
|
17
17
|
CLAUDE_BRIDGE_CAPABILITY,
|
|
18
18
|
CLAUDE_RESUME_CAPABILITY,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
MANAGED_PROVIDERS,
|
|
24
24
|
SPAWN_CAPABILITY,
|
|
25
25
|
sessionProvidersAdvertisedBy
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-L77OIGRB.js";
|
|
27
27
|
|
|
28
28
|
// src/live-capabilities.ts
|
|
29
29
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-CYTPQDQY.js";
|
|
4
4
|
import {
|
|
5
5
|
parseVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NOHOCNY6.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L77OIGRB.js";
|
|
10
10
|
|
|
11
11
|
// src/setup/agent-probe.ts
|
|
12
12
|
import { execSync } from "child_process";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZXRBGLTI.js";
|
|
4
4
|
import {
|
|
5
5
|
matchMacAccountStep,
|
|
6
6
|
retryAgentCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HFI6SU27.js";
|
|
8
8
|
import {
|
|
9
9
|
canChangeApprovalSettings
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AO4CKFQA.js";
|
|
11
11
|
import {
|
|
12
12
|
EXIT
|
|
13
13
|
} from "./chunk-BG4HHB7E.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND,
|
|
16
16
|
npmExecSetupCommandFor
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WDLBF3PM.js";
|
|
18
18
|
import {
|
|
19
19
|
LATEST_DIST_TAG
|
|
20
20
|
} from "./chunk-UQTQ6HPO.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5Q2UDUR6.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LEDGOYZV.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-LZU7ZDY7.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-X7RPRBZE.js";
|
|
27
27
|
import {
|
|
28
28
|
execNpm,
|
|
29
29
|
fetchLatestPublishedVersion,
|
|
@@ -32,13 +32,13 @@ import {
|
|
|
32
32
|
previewGlobalInstall,
|
|
33
33
|
readGlobalCliInstallAt,
|
|
34
34
|
readGlobalPrefix
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-NOHOCNY6.js";
|
|
36
36
|
import {
|
|
37
37
|
EXIT
|
|
38
38
|
} from "./chunk-BG4HHB7E.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-WDLBF3PM.js";
|
|
42
42
|
import {
|
|
43
43
|
LATEST_DIST_TAG,
|
|
44
44
|
commandsPackage,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X7RPRBZE.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-UQTQ6HPO.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-L77OIGRB.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
claimThrottle,
|
|
5
5
|
releaseThrottle,
|
|
6
6
|
reportEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PG5N3FL5.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveToolTarget,
|
|
10
10
|
permissionDeniedAction
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CFZUESTS.js";
|
|
12
12
|
import {
|
|
13
13
|
machineDecisionFor,
|
|
14
14
|
wireVerdictFor
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-L77OIGRB.js";
|
|
16
16
|
|
|
17
17
|
// src/machine-decision-audit.ts
|
|
18
18
|
import { basename } from "path";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-UQTQ6HPO.js";
|
|
15
15
|
import {
|
|
16
16
|
redactSecretsFromContent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-L77OIGRB.js";
|
|
18
18
|
|
|
19
19
|
// src/shell-quote.ts
|
|
20
20
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -484,9 +484,9 @@ var installGlobally = (options) => {
|
|
|
484
484
|
}
|
|
485
485
|
const started = (async () => {
|
|
486
486
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
487
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
488
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
489
|
-
const { autoUpdateLock } = await import("./paths-
|
|
487
|
+
const { withUpgradeLock } = await import("./global-upgrade-ZAPGSH66.js");
|
|
488
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-3P3VK6KQ.js");
|
|
489
|
+
const { autoUpdateLock } = await import("./paths-LCARWI3S.js");
|
|
490
490
|
let result = "skipped";
|
|
491
491
|
const install = async () => {
|
|
492
492
|
const platform = process.platform;
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
codexHome,
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-X7RPRBZE.js";
|
|
11
11
|
import {
|
|
12
12
|
resolvePathBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NOHOCNY6.js";
|
|
14
14
|
import {
|
|
15
15
|
getPackageVersion
|
|
16
16
|
} from "./chunk-UQTQ6HPO.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_CHOICES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AIUFZQAA.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AVIQZSCU.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-X7RPRBZE.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-L77OIGRB.js";
|
|
26
26
|
|
|
27
27
|
// src/gemini-config.ts
|
|
28
28
|
var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openClawLauncherCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CRTNHB6F.js";
|
|
4
4
|
import {
|
|
5
5
|
openCodeConfigDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X7RR2ZQH.js";
|
|
7
7
|
import {
|
|
8
8
|
nativeClaudeInstallPath
|
|
9
9
|
} from "./chunk-CYTPQDQY.js";
|
|
10
10
|
import {
|
|
11
11
|
grokHome
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WTUURSCO.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-X7RPRBZE.js";
|
|
20
20
|
import {
|
|
21
21
|
HOOK_COMPATIBLE_PROFILES
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-L77OIGRB.js";
|
|
23
23
|
|
|
24
24
|
// src/vscode-config.ts
|
|
25
25
|
import { homedir } from "os";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AIUFZQAA.js";
|
|
4
4
|
import {
|
|
5
5
|
parseFlags
|
|
6
6
|
} from "./chunk-YPY4YCIZ.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-YU2EUD7O.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WDLBF3PM.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-L77OIGRB.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSseMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6PDBRLIH.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SSKNRWWS.js";
|
|
7
7
|
import {
|
|
8
8
|
NPX_LATEST_COMMAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WDLBF3PM.js";
|
|
10
10
|
|
|
11
11
|
// src/mcp-stdio-bridge.ts
|
|
12
12
|
var MCP_BRIDGE_BINARY = "pushary-mcp";
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
toolResultErrorText,
|
|
28
28
|
transcriptTokensIn,
|
|
29
29
|
transcriptUsageRequest
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-CFZUESTS.js";
|
|
31
31
|
import {
|
|
32
32
|
branchFor,
|
|
33
33
|
repoKeyFor
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2TRYSF64.js";
|
|
35
35
|
import {
|
|
36
36
|
cancelQuestion,
|
|
37
37
|
clientErrorKindOf,
|
|
@@ -39,39 +39,39 @@ import {
|
|
|
39
39
|
reportClientError,
|
|
40
40
|
sendNotification,
|
|
41
41
|
waitForAnswer
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-VWVYDYCV.js";
|
|
43
43
|
import {
|
|
44
44
|
RETRY_ACK,
|
|
45
45
|
readCommandAck,
|
|
46
46
|
refusedReceiptMessage
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-GVIKF73A.js";
|
|
48
48
|
import {
|
|
49
49
|
isRetryable,
|
|
50
50
|
withRetry
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-6PDBRLIH.js";
|
|
52
52
|
import {
|
|
53
53
|
fetchAsCredential
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-SSKNRWWS.js";
|
|
55
55
|
import {
|
|
56
56
|
getMachineId
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-MOQUKAVU.js";
|
|
58
58
|
import {
|
|
59
59
|
reportedInstallSource
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-K24RAOIO.js";
|
|
61
61
|
import {
|
|
62
62
|
IDLE_PROMPT_NOTIFICATION,
|
|
63
63
|
NOTIFICATION_PUSH_TYPES,
|
|
64
64
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
65
65
|
claudeConfigDir
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-X7RPRBZE.js";
|
|
67
67
|
import {
|
|
68
68
|
compareVersion,
|
|
69
69
|
parseVersion
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-NOHOCNY6.js";
|
|
71
71
|
import {
|
|
72
72
|
getApiKey,
|
|
73
73
|
getBaseUrl
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-LVF5IBS6.js";
|
|
75
75
|
import {
|
|
76
76
|
writeFileAtomic,
|
|
77
77
|
writeJsonAtomicDurable
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
resolveAutoResolveOrigin,
|
|
103
103
|
resolvePolicy,
|
|
104
104
|
unansweredRefusalReason
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-L77OIGRB.js";
|
|
106
106
|
|
|
107
107
|
// src/pending.ts
|
|
108
108
|
import { join } from "path";
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
} from "./chunk-WHB622LP.js";
|
|
14
14
|
import {
|
|
15
15
|
keyPrefix
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DYZ26IPH.js";
|
|
17
17
|
import {
|
|
18
18
|
getBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LVF5IBS6.js";
|
|
20
20
|
import {
|
|
21
21
|
NPX_LATEST_COMMAND
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WDLBF3PM.js";
|
|
23
23
|
import {
|
|
24
24
|
isValidApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-L77OIGRB.js";
|
|
26
26
|
|
|
27
27
|
// src/cli/login-ui.ts
|
|
28
28
|
import { hostname } from "os";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X7RR2ZQH.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DYZ26IPH.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X7RPRBZE.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
12
|
} from "./chunk-TODDEIYG.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-L77OIGRB.js";
|
|
17
17
|
|
|
18
18
|
// src/shared-mcp-key.ts
|
|
19
19
|
var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|