@pushary/agent-hooks 1.9.150 → 1.9.152
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 +13 -0
- package/data/openclaw-plugin/README.md +39 -2
- package/data/openclaw-plugin/dist/approval-hook.js +8 -4
- package/data/openclaw-plugin/dist/approval-question.js +100 -33
- package/data/openclaw-plugin/dist/command-preview.js +65 -0
- package/data/openclaw-plugin/dist/file-change-preview.js +109 -0
- package/data/openclaw-plugin/dist/gate-result.js +11 -4
- package/data/openclaw-plugin/dist/parameter-redaction.js +28 -0
- package/data/openclaw-plugin/dist/protected-writes.js +18 -4
- package/data/openclaw-plugin/dist/settings.js +7 -1
- package/data/openclaw-plugin/dist/visible-text.js +5 -0
- package/data/openclaw-plugin/openclaw.plugin.json +1 -1
- package/data/openclaw-plugin/package.json +1 -1
- package/dist/{api-GHPLREAU.js → api-IQMAAMIS.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 +10 -10
- package/dist/bin/pushary-claude.js +29 -28
- package/dist/bin/pushary-clean.js +36 -36
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +39 -39
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +32 -32
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +44 -44
- package/dist/bin/pushary-disconnect.js +28 -28
- package/dist/bin/pushary-display-hook.js +10 -5
- package/dist/bin/pushary-doctor.js +44 -44
- 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 +35 -35
- package/dist/bin/pushary-login.js +21 -21
- package/dist/bin/pushary-logout.js +27 -27
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-hook.js +31 -31
- package/dist/bin/pushary-permission-denied-hook.js +35 -35
- 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 +37 -37
- package/dist/bin/pushary-setup.js +52 -52
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +33 -33
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +15 -15
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +42 -42
- package/dist/bin/pushary-wait.js +15 -15
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-C2JMTH45.js → chunk-2NEN7KVF.js} +2 -2
- package/dist/{chunk-7XFEV7ML.js → chunk-2PCWFDLS.js} +5 -5
- package/dist/{chunk-ACC4YXJS.js → chunk-2PWQQ5S4.js} +1 -1
- package/dist/{chunk-5D57GAKF.js → chunk-3N5RC7KI.js} +3 -3
- package/dist/{chunk-E75OHUWM.js → chunk-43TBZRPG.js} +1 -1
- package/dist/{chunk-A3EV4C34.js → chunk-43XJ7U63.js} +2 -2
- package/dist/{chunk-KACTUGKV.js → chunk-4BUSJQJH.js} +5 -5
- package/dist/{chunk-4ZH2PXDA.js → chunk-4LVISHV6.js} +1 -1
- package/dist/{chunk-XU45NUAV.js → chunk-4NZORVWS.js} +10 -10
- package/dist/{chunk-DHP6SWVH.js → chunk-4P4G4AGP.js} +3 -3
- package/dist/{chunk-DYUK6HYH.js → chunk-4RFLYU65.js} +1 -1
- package/dist/{chunk-TRDJICC7.js → chunk-672GQ3QP.js} +3 -3
- package/dist/{chunk-CVQTLCVS.js → chunk-6B5OLJFA.js} +1 -1
- package/dist/{chunk-OZD5FIFS.js → chunk-6FIQQLB4.js} +3 -3
- package/dist/{chunk-AWC7MXLX.js → chunk-6U4HTJDH.js} +6 -6
- package/dist/{chunk-XJLCZ24Y.js → chunk-7T75RUZJ.js} +1 -1
- package/dist/{chunk-I3CN7BGN.js → chunk-7THR5LFY.js} +2 -2
- package/dist/{chunk-KAZ37TWD.js → chunk-ADZQYXHK.js} +5 -5
- package/dist/{chunk-NRMMXX62.js → chunk-AHAVUAFN.js} +2 -2
- package/dist/{chunk-46IYOPZH.js → chunk-AVB5ZJRA.js} +1 -1
- package/dist/{chunk-K3ORQ3KY.js → chunk-BEGXHUFW.js} +13 -7
- package/dist/{chunk-NP6QILOY.js → chunk-BKXMMYEJ.js} +5 -5
- package/dist/{chunk-6RMBTFDF.js → chunk-BVI7NBGK.js} +3 -3
- package/dist/{chunk-7L6IP3JA.js → chunk-DJCTVJR4.js} +2 -2
- package/dist/{chunk-PS3O6LS2.js → chunk-E2ZX6DAP.js} +6 -6
- package/dist/{chunk-JGYQ72A7.js → chunk-ED6YWQEU.js} +4 -4
- package/dist/{chunk-3XIHKIDX.js → chunk-ESHJ67UO.js} +4 -4
- package/dist/{chunk-BPSQLKTG.js → chunk-F5KUZBN7.js} +6 -6
- package/dist/{chunk-USN3OOHD.js → chunk-FT4V3IJ2.js} +16 -16
- package/dist/{chunk-BANZ4GGS.js → chunk-G7UI7IQN.js} +2 -2
- package/dist/{chunk-NQUE54GA.js → chunk-GBVNCGF5.js} +1 -1
- package/dist/{chunk-7357Q746.js → chunk-GRKS5KRJ.js} +1 -1
- package/dist/{chunk-OBIUHAXG.js → chunk-H3PD7NM6.js} +2 -2
- package/dist/{chunk-FHPLLUAZ.js → chunk-H3W3GRV6.js} +1 -1
- package/dist/{chunk-WQVRDVMJ.js → chunk-HDG5E3KL.js} +3 -3
- package/dist/{chunk-H4MHGLEB.js → chunk-HYKV5VFO.js} +3 -3
- package/dist/{chunk-NPNBR4FS.js → chunk-HZUVLAWB.js} +5 -5
- package/dist/{chunk-53URUFUJ.js → chunk-IQ6ZOIJW.js} +11 -11
- package/dist/{chunk-E5YEKJOM.js → chunk-ISF5ESY4.js} +1 -1
- package/dist/{chunk-P3E26UO5.js → chunk-ITQPLAJU.js} +6 -6
- package/dist/{chunk-BAH4LZL3.js → chunk-IZIUWALV.js} +5 -5
- package/dist/{chunk-7FPKT5QJ.js → chunk-J7ZT4QIS.js} +5 -5
- package/dist/{chunk-ZUN37EG2.js → chunk-JHYXXSXE.js} +6 -6
- package/dist/{chunk-AYFOZBTD.js → chunk-JKP27CWR.js} +1 -1
- package/dist/{chunk-3MXI37MS.js → chunk-K3RITWPY.js} +4 -4
- package/dist/{chunk-AIKQFV6C.js → chunk-K73XYVAI.js} +4 -4
- package/dist/{chunk-WY4CM6TO.js → chunk-KSQOSFWU.js} +3 -3
- package/dist/{chunk-ZBZ7CRGD.js → chunk-LFMW5JU5.js} +1 -1
- package/dist/{chunk-J6LZ4G5G.js → chunk-MIVJN6UX.js} +2 -2
- package/dist/{chunk-PYH3KFLI.js → chunk-NLEUWI4M.js} +12 -12
- package/dist/{chunk-YYEYPA3S.js → chunk-NPRN6U2N.js} +4 -4
- package/dist/{chunk-ZMEI3EG4.js → chunk-NWRILLTQ.js} +3 -3
- package/dist/{chunk-HQ3RFANL.js → chunk-OOIX6OGT.js} +2 -2
- package/dist/{chunk-5TMW2X5I.js → chunk-P474YA7K.js} +1 -1
- package/dist/{chunk-TQXKJX7X.js → chunk-PDALRESB.js} +8 -8
- package/dist/{chunk-53Y4QQNF.js → chunk-QXD25T2R.js} +5 -5
- package/dist/{chunk-ZSX4XN6C.js → chunk-RPGXFONU.js} +5 -5
- package/dist/{chunk-P6GCPJDQ.js → chunk-SI4WLQRD.js} +3 -3
- package/dist/{chunk-4UDGVO6A.js → chunk-SY75XL7K.js} +1 -1
- package/dist/{chunk-JJKPQSEE.js → chunk-UBOZHYDV.js} +2 -2
- package/dist/{chunk-ODYF7VZZ.js → chunk-USJEAJBM.js} +1 -1
- package/dist/{chunk-P3RRAH6J.js → chunk-UYWRWMVG.js} +3 -3
- package/dist/{chunk-BRXPFM3U.js → chunk-VAXPBUY7.js} +2 -2
- package/dist/{chunk-ILEO4YWM.js → chunk-VJCNWZWT.js} +1 -1
- package/dist/{chunk-DQKT5KK5.js → chunk-VMGVFV4F.js} +4 -4
- package/dist/{chunk-3TUSMGHE.js → chunk-W26FWH7E.js} +1 -1
- package/dist/{chunk-I6DLNMUM.js → chunk-WF4GAVIZ.js} +4 -4
- package/dist/{chunk-ZLHPTXWU.js → chunk-WUFOQ3BO.js} +5 -5
- package/dist/{chunk-LRK2F63A.js → chunk-X5ECZTDF.js} +8 -8
- package/dist/{chunk-S263JK6K.js → chunk-XNZT3Y3Y.js} +2 -2
- package/dist/{chunk-R2VVMSGM.js → chunk-XTIUW3CE.js} +5 -5
- package/dist/{chunk-YUYBMCKF.js → chunk-XVIPSHT3.js} +3 -3
- package/dist/{chunk-TR35RG7D.js → chunk-YELJYFSC.js} +18 -7
- package/dist/{chunk-IPRQFNPG.js → chunk-YGC22HOG.js} +1 -1
- package/dist/{chunk-HY4GEW3T.js → chunk-YKCACY4F.js} +2 -2
- package/dist/{chunk-XWMVKK54.js → chunk-ZUS334Z2.js} +1 -1
- package/dist/{chunk-BDF74W2U.js → chunk-ZYES37XJ.js} +4 -4
- package/dist/{codex-app-cards-switch-U77ZM22P.js → codex-app-cards-switch-ZC2QNMYV.js} +11 -11
- package/dist/{codex-card-routing-3L4XXUCK.js → codex-card-routing-7S6SQSCN.js} +2 -2
- package/dist/{codex-desktop-launch-KRLBST55.js → codex-desktop-launch-7A7YFJEW.js} +1 -1
- package/dist/{codex-session-launch-6LMMSNLA.js → codex-session-launch-6TN6U52H.js} +20 -20
- package/dist/{config-5YEZFF26.js → config-GC6NPWRS.js} +3 -3
- package/dist/{global-upgrade-EWBY6BD5.js → global-upgrade-2QO2GEFD.js} +9 -9
- package/dist/{identity-D3SYIS5Z.js → identity-7K2E5ZRO.js} +4 -4
- package/dist/{live-capabilities-QUNHPUFR.js → live-capabilities-6WMTLNQN.js} +4 -4
- package/dist/{paths-VI5KNBOY.js → paths-BJUKHDVE.js} +3 -3
- package/dist/{reapply-UKREFK55.js → reapply-ODUBZT4P.js} +30 -30
- package/dist/src/index.js +34 -34
- package/dist/{upgrade-lock-COPTGES4.js → upgrade-lock-N6FDN5Z7.js} +4 -4
- package/dist/{usage-4367CHW4.js → usage-4PYAM3IB.js} +3 -3
- package/package.json +1 -1
- package/data/cursor-plugin/scripts/pushary-gate.test.mjs +0 -150
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XNZT3Y3Y.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-SI4WLQRD.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-BEGXHUFW.js";
|
|
27
27
|
|
|
28
28
|
// src/live-capabilities.ts
|
|
29
29
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -536,8 +536,8 @@ var loadedOnce = (load) => {
|
|
|
536
536
|
};
|
|
537
537
|
|
|
538
538
|
// src/codex-desktop-proxy.ts
|
|
539
|
-
var loadThePhone = () => import("./api-
|
|
540
|
-
var loadTheCardRouting = () => import("./codex-card-routing-
|
|
539
|
+
var loadThePhone = () => import("./api-IQMAAMIS.js");
|
|
540
|
+
var loadTheCardRouting = () => import("./codex-card-routing-7S6SQSCN.js");
|
|
541
541
|
var theFirstCardLoadsAgain = () => {
|
|
542
542
|
};
|
|
543
543
|
var ASKS_WITHOUT_ROUTING = {};
|
|
@@ -1097,7 +1097,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1097
1097
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1098
1098
|
}
|
|
1099
1099
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1100
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1100
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-ZC2QNMYV.js");
|
|
1101
1101
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1102
1102
|
}
|
|
1103
1103
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPROVAL_RULES_PATH,
|
|
3
3
|
canChangeApprovalSettings
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MIVJN6UX.js";
|
|
5
5
|
import {
|
|
6
6
|
callMcpTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WUFOQ3BO.js";
|
|
8
8
|
import {
|
|
9
9
|
absoluteUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UYWRWMVG.js";
|
|
11
11
|
import {
|
|
12
12
|
getBaseUrl
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LFMW5JU5.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZUS334Z2.js";
|
|
17
17
|
import {
|
|
18
18
|
AGENT_STOP_DEFAULT_SECONDS,
|
|
19
19
|
APPROVAL_MODE_META,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
classifyConfirmResponse,
|
|
22
22
|
isAnswerSource,
|
|
23
23
|
roundTripAsk
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-BEGXHUFW.js";
|
|
25
25
|
|
|
26
26
|
// src/reach.ts
|
|
27
27
|
var PUSHARY_APP_DOWNLOAD_URL = "https://pushary.com/download";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
codexHome,
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YKCACY4F.js";
|
|
11
11
|
import {
|
|
12
12
|
resolvePathBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SI4WLQRD.js";
|
|
14
14
|
import {
|
|
15
15
|
getPackageVersion
|
|
16
16
|
} from "./chunk-WIIMW5YO.js";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openClawLauncherCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3N5RC7KI.js";
|
|
4
4
|
import {
|
|
5
5
|
openCodeConfigDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QXD25T2R.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-RPGXFONU.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-YKCACY4F.js";
|
|
20
20
|
import {
|
|
21
21
|
HOOK_COMPATIBLE_PROFILES
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BEGXHUFW.js";
|
|
23
23
|
|
|
24
24
|
// src/vscode-config.ts
|
|
25
25
|
import { homedir } from "os";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
claudeConfigDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YKCACY4F.js";
|
|
4
4
|
import {
|
|
5
5
|
claudePermissionRulesFromSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BEGXHUFW.js";
|
|
7
7
|
|
|
8
8
|
// src/claude-permission-rules.ts
|
|
9
9
|
import { readFileSync, statSync } from "fs";
|
|
@@ -237,12 +237,17 @@ var CLAUDE_DIRECTORY_URL = "https://claude.ai/directory/pushary";
|
|
|
237
237
|
var CLAUDE_CONNECTOR_URL = "https://pushary.com/api/mcp/mcp";
|
|
238
238
|
var CLAUDE_CONNECTOR_GUIDE = "https://pushary.com/docs/agents/guides/claude-desktop";
|
|
239
239
|
var COWORK_CONNECTOR_LIMIT = "Pushary\u2019s Cowork connector is cooperative: Claude chooses when to ask. It does not intercept Claude\u2019s native permission prompts or start new Cowork tasks.";
|
|
240
|
+
var CLAUDE_TOOL_PERMISSIONS_PATH = "Customize > Connectors > Pushary > Tool permissions";
|
|
241
|
+
var CLAUDE_TOOL_PERMISSION_GROUPS = ["Read-only tools", "Write/delete tools"];
|
|
242
|
+
var CLAUDE_ALWAYS_ALLOW = "Always allow";
|
|
243
|
+
var CLAUDE_TOOL_PERMISSIONS_STEP = `In Claude, open ${CLAUDE_TOOL_PERMISSIONS_PATH}. Set ${CLAUDE_TOOL_PERMISSION_GROUPS.join(" and ")} to ${CLAUDE_ALWAYS_ALLOW}.`;
|
|
244
|
+
var CLAUDE_TOOL_PERMISSIONS_WHY = "While they say Needs approval, Claude stops in the chat before every Pushary call, so a question never reaches your phone while you are away.";
|
|
240
245
|
var CLAUDE_CONNECTOR_STEPS = [
|
|
241
246
|
`Open ${CLAUDE_DIRECTORY_URL} and choose Connect.`,
|
|
242
247
|
"Sign in with the same Pushary account used by your phone and Mac app.",
|
|
243
|
-
|
|
244
|
-
"
|
|
245
|
-
"
|
|
248
|
+
`${CLAUDE_TOOL_PERMISSIONS_STEP} ${CLAUDE_TOOL_PERMISSIONS_WHY}`,
|
|
249
|
+
"In Chat, paste the Chat instructions into Settings > Your Claude > Instructions. In Cowork, install the Pushary Cowork plugin or skill, or paste the Cowork instructions into Settings > Cowork.",
|
|
250
|
+
"Enable Pushary in a Chat or Cowork conversation, send the test question below, answer it from Pushary, and confirm Claude receives your answer."
|
|
246
251
|
];
|
|
247
252
|
var CONNECTOR_SETUP_QUESTION = "Did this setup question reach you?";
|
|
248
253
|
var CLAUDE_CONNECTOR_TEST = `Use Pushary ask_user to ask \u201C${CONNECTOR_SETUP_QUESTION}\u201D with type \u201Cconfirm\u201D. Use agentName \u201CClaude Cowork - Setup check\u201D in Cowork or \u201CClaude Chat - Setup check\u201D in Chat. Wait for my answer and tell me which answer you received. Do not run a command or change any files.`;
|
|
@@ -373,7 +378,7 @@ var AGENTS = {
|
|
|
373
378
|
enforcement: "enforced",
|
|
374
379
|
connectVia: "Plugin installed by the CLI + before_tool_call hook",
|
|
375
380
|
setupCommand: PUSHARY_SETUP_COMMAND,
|
|
376
|
-
enforcementDetail: "exec calls, the process actions that type into a session, automations and terminal actions that schedule, run or type, the plugins, gateway and openclaw actions that install, disable, reconfigure or restart OpenClaw, file writes into OpenClaw's own state and service files, and any tool named in the plugin's gatedTools setting, through OpenClaw's before_tool_call hook. A gated call runs only after a yes in Pushary; a no, no answer, a cancelled call or an unreachable server blocks it.",
|
|
381
|
+
enforcementDetail: "exec calls, the process actions that type into a session, automations and terminal actions that schedule, run or type, nodes actions that run commands, pair or capture on a paired machine, ACP session starts, the plugins, gateway and openclaw actions that install, disable, reconfigure or restart OpenClaw, file writes into OpenClaw's own state and service files and the workspace hooks and .openclaw folders, and any tool named in the plugin's gatedTools setting, through OpenClaw's before_tool_call hook. A gated call runs only after a yes in Pushary; a no, no answer, a cancelled call or an unreachable server blocks it.",
|
|
377
382
|
capabilityNote: "Setup writes the Pushary plugin it carries to ~/.pushary/openclaw-plugin and installs it with openclaw plugins install; it is not a macOS bridge HookSource. Pushary's tool rules are not evaluated on the machine, so every gated call asks. Phone calls are held until a live call test passes. CLI disconnect and managed-provider controls are not implemented for OpenClaw."
|
|
378
383
|
},
|
|
379
384
|
cursor: {
|
|
@@ -9184,14 +9189,15 @@ var GATE_ALLOW_SOURCE = {
|
|
|
9184
9189
|
policy: "policy"
|
|
9185
9190
|
};
|
|
9186
9191
|
var PUSHARY_TOOL_PREFIX = "mcp__pushary__";
|
|
9187
|
-
var isPusharyOwnTool = (toolName) => toolName.startsWith(PUSHARY_TOOL_PREFIX);
|
|
9188
9192
|
var PUSHARY_CONNECTOR_TOOL_PREFIXES = ["mcp__claude_ai_Pushary__", "mcp__plugin_pushary_pushary__"];
|
|
9189
9193
|
var SERVER_AND_TOOL_SEPARATOR = "__";
|
|
9194
|
+
var SERVER_NAME_REPLACEMENT_CHARACTER = "_";
|
|
9190
9195
|
var namesOneToolAfterPrefix = (toolName, prefix) => {
|
|
9191
9196
|
if (!toolName.startsWith(prefix)) return false;
|
|
9192
9197
|
const tool = toolName.slice(prefix.length);
|
|
9193
|
-
return tool.length > 0 && !tool.includes(SERVER_AND_TOOL_SEPARATOR);
|
|
9198
|
+
return tool.length > 0 && !tool.startsWith(SERVER_NAME_REPLACEMENT_CHARACTER) && !tool.includes(SERVER_AND_TOOL_SEPARATOR);
|
|
9194
9199
|
};
|
|
9200
|
+
var isPusharyOwnTool = (toolName) => namesOneToolAfterPrefix(toolName, PUSHARY_TOOL_PREFIX);
|
|
9195
9201
|
var isPusharyConnectorTool = (toolName) => PUSHARY_CONNECTOR_TOOL_PREFIXES.some((prefix) => namesOneToolAfterPrefix(toolName, prefix));
|
|
9196
9202
|
var strictestScopeVerdict = (scope, paths2) => {
|
|
9197
9203
|
if (paths2.length === 0) return evaluateScope(scope, void 0);
|
|
@@ -10321,8 +10327,8 @@ export {
|
|
|
10321
10327
|
resolvePolicy,
|
|
10322
10328
|
KILL_REASON,
|
|
10323
10329
|
PUSHARY_TOOL_PREFIX,
|
|
10324
|
-
isPusharyOwnTool,
|
|
10325
10330
|
PUSHARY_CONNECTOR_TOOL_PREFIXES,
|
|
10331
|
+
isPusharyOwnTool,
|
|
10326
10332
|
isPusharyConnectorTool,
|
|
10327
10333
|
shouldDeferToNativeMode,
|
|
10328
10334
|
AGENT_QUESTION_TOOL,
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
expectedLaunchCapabilities,
|
|
4
4
|
hasSpawnProvider,
|
|
5
5
|
resolveControlPolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-672GQ3QP.js";
|
|
7
7
|
import {
|
|
8
8
|
daemonHasRemoteProof,
|
|
9
9
|
daemonServiceManagerAvailable,
|
|
10
10
|
hasDaemonServiceDefinition,
|
|
11
11
|
readDaemonNeedsLogin,
|
|
12
12
|
readDaemonStatus
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ITQPLAJU.js";
|
|
14
14
|
import {
|
|
15
15
|
getMachineId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ISF5ESY4.js";
|
|
17
17
|
import {
|
|
18
18
|
readControlMode,
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KSQOSFWU.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-LFMW5JU5.js";
|
|
24
24
|
import {
|
|
25
25
|
getPackageVersion
|
|
26
26
|
} from "./chunk-WIIMW5YO.js";
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
claimThrottle,
|
|
5
5
|
releaseThrottle,
|
|
6
6
|
reportEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NLEUWI4M.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveToolTarget,
|
|
10
10
|
permissionDeniedAction
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JKP27CWR.js";
|
|
12
12
|
import {
|
|
13
13
|
machineDecisionFor,
|
|
14
14
|
wireVerdictFor
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BEGXHUFW.js";
|
|
16
16
|
|
|
17
17
|
// src/machine-decision-audit.ts
|
|
18
18
|
import { basename } from "path";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YKCACY4F.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
npmExitedBeforeInstalling,
|
|
8
8
|
npmExitedOnPermissionDenied
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SI4WLQRD.js";
|
|
10
10
|
import {
|
|
11
11
|
writeJsonAtomic
|
|
12
12
|
} from "./chunk-TODDEIYG.js";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2NEN7KVF.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MIVJN6UX.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "./chunk-YM2T76UM.js";
|
|
@@ -14,19 +14,19 @@ import {
|
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UYWRWMVG.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KSQOSFWU.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-LFMW5JU5.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-BEGXHUFW.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UNNAMED_ACTION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JKP27CWR.js";
|
|
4
4
|
import {
|
|
5
5
|
askUser,
|
|
6
6
|
isAwayPaused,
|
|
7
7
|
isLocalQuestionHandoff,
|
|
8
8
|
unavailableQuestionUnlessRefused,
|
|
9
9
|
waitForQuestion
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F5KUZBN7.js";
|
|
11
11
|
import {
|
|
12
12
|
getMachineId
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ISF5ESY4.js";
|
|
14
14
|
import {
|
|
15
15
|
hookWaitClamped,
|
|
16
16
|
hookWaitDeadline,
|
|
17
17
|
scopeBreachReasonOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BEGXHUFW.js";
|
|
19
19
|
|
|
20
20
|
// src/pushed-question.ts
|
|
21
21
|
var scopeQuestionOf = (verdict) => {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QXD25T2R.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KSQOSFWU.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YKCACY4F.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-BEGXHUFW.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;
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WUFOQ3BO.js";
|
|
12
12
|
import {
|
|
13
13
|
installNetworkDefaults,
|
|
14
14
|
isNetworkFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HDG5E3KL.js";
|
|
16
16
|
import {
|
|
17
17
|
fetchAsCredential
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AVB5ZJRA.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YKCACY4F.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-LFMW5JU5.js";
|
|
26
26
|
import {
|
|
27
27
|
ASK_AGENT_NAME_MAX,
|
|
28
28
|
CLIENT_REPORT_PATH,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
degradedLine,
|
|
33
33
|
isDecisionStoppedReply,
|
|
34
34
|
truncateLine
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-BEGXHUFW.js";
|
|
36
36
|
|
|
37
37
|
// src/api.ts
|
|
38
38
|
import { randomUUID } from "crypto";
|
|
@@ -2,37 +2,37 @@ import {
|
|
|
2
2
|
forgetPhoneApproval,
|
|
3
3
|
rememberPhoneApproval,
|
|
4
4
|
takePhoneApproval
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UBOZHYDV.js";
|
|
6
6
|
import {
|
|
7
7
|
claudeSettingsLocationFor,
|
|
8
8
|
readClaudePermissionRules
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AHAVUAFN.js";
|
|
10
10
|
import {
|
|
11
11
|
askAgentQuestions,
|
|
12
12
|
defersToNativeMode,
|
|
13
13
|
outcomeOfFailedAsk,
|
|
14
14
|
storedWaitDeadline
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-J7ZT4QIS.js";
|
|
16
16
|
import {
|
|
17
17
|
reportMachineDenial
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BVI7NBGK.js";
|
|
19
19
|
import {
|
|
20
20
|
isGatingMoment,
|
|
21
21
|
recordKeylessMoment
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-H3W3GRV6.js";
|
|
23
23
|
import {
|
|
24
24
|
isAdmitted,
|
|
25
25
|
readAdmissionRules
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IZIUWALV.js";
|
|
27
27
|
import {
|
|
28
28
|
isDeferAnswer,
|
|
29
29
|
oncePerSession
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-SY75XL7K.js";
|
|
31
31
|
import {
|
|
32
32
|
activeHookSource,
|
|
33
33
|
activeIdentity,
|
|
34
34
|
namedSource
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RPGXFONU.js";
|
|
36
36
|
import {
|
|
37
37
|
DEFAULT_SESSION,
|
|
38
38
|
approvalAwaitingRetry,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
settleQuestionsForToolUse,
|
|
54
54
|
sweepFilesOlderThan,
|
|
55
55
|
userScope
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-NLEUWI4M.js";
|
|
57
57
|
import {
|
|
58
58
|
UNNAMED_ACTION,
|
|
59
59
|
deriveAction,
|
|
@@ -64,12 +64,12 @@ import {
|
|
|
64
64
|
patchDeletesFiles,
|
|
65
65
|
permissionDeniedAction,
|
|
66
66
|
scopePathFor
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-JKP27CWR.js";
|
|
68
68
|
import {
|
|
69
69
|
branchFor,
|
|
70
70
|
repoKeyFor,
|
|
71
71
|
repositoryScopeFor
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-W26FWH7E.js";
|
|
73
73
|
import {
|
|
74
74
|
askUser,
|
|
75
75
|
cancelQuestion,
|
|
@@ -86,20 +86,20 @@ import {
|
|
|
86
86
|
waitForQuestion,
|
|
87
87
|
waitsForThePhone,
|
|
88
88
|
withdrawQuestion
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-F5KUZBN7.js";
|
|
90
90
|
import {
|
|
91
91
|
getMachineId
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-ISF5ESY4.js";
|
|
93
93
|
import {
|
|
94
94
|
getApiKey,
|
|
95
95
|
getBaseUrl
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-LFMW5JU5.js";
|
|
97
97
|
import {
|
|
98
98
|
writeFileAtomic
|
|
99
99
|
} from "./chunk-TODDEIYG.js";
|
|
100
100
|
import {
|
|
101
101
|
NPX_LATEST_COMMAND
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-ZUS334Z2.js";
|
|
103
103
|
import {
|
|
104
104
|
AGENT_QUESTION_STRATEGY,
|
|
105
105
|
AGENT_QUESTION_TOOL,
|
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
timeoutActionWithoutLocalPrompt,
|
|
170
170
|
unansweredRefusalReason,
|
|
171
171
|
unapprovedScopeReason
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-BEGXHUFW.js";
|
|
173
173
|
|
|
174
174
|
// src/terminal-answer-watch.ts
|
|
175
175
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6FIQQLB4.js";
|
|
13
13
|
import {
|
|
14
14
|
writeHuman
|
|
15
15
|
} from "./chunk-QCGNGEGE.js";
|
|
16
16
|
import {
|
|
17
17
|
xml
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ITQPLAJU.js";
|
|
19
19
|
import {
|
|
20
20
|
writeFileAtomic
|
|
21
21
|
} from "./chunk-TODDEIYG.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readExistingMachineId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ISF5ESY4.js";
|
|
4
4
|
import {
|
|
5
5
|
NetworkError
|
|
6
6
|
} from "./chunk-YU2EUD7O.js";
|
|
7
7
|
import {
|
|
8
8
|
getBaseUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LFMW5JU5.js";
|
|
10
10
|
import {
|
|
11
11
|
getPackageVersion
|
|
12
12
|
} from "./chunk-WIIMW5YO.js";
|
|
13
13
|
import {
|
|
14
14
|
clientContextHeaders,
|
|
15
15
|
redactSecretsFromContent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BEGXHUFW.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/net.ts
|
|
19
19
|
import { createRequire } from "module";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7T75RUZJ.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-ZUS334Z2.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-BEGXHUFW.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6U4HTJDH.js";
|
|
18
18
|
import {
|
|
19
19
|
describeRevokeAttempt,
|
|
20
20
|
keyNoLongerAccepted,
|
|
@@ -32,17 +32,17 @@ import {
|
|
|
32
32
|
} from "./chunk-YM2T76UM.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-UYWRWMVG.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-H3PD7NM6.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ZUS334Z2.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-BEGXHUFW.js";
|
|
46
46
|
|
|
47
47
|
// src/onboarding.ts
|
|
48
48
|
import qrcodeTerminal from "qrcode-terminal";
|