pushary 1.9.246 → 1.9.247
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 +8 -0
- package/dist/{api-HA57S6PN.js → api-AP7ZKAC4.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +12 -12
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +26 -26
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +34 -34
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +35 -35
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +46 -46
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-doctor.js +47 -47
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +23 -23
- package/dist/bin/pushary-logout.js +31 -31
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +22 -22
- package/dist/bin/pushary-opencode-hook.js +32 -32
- package/dist/bin/pushary-permission-denied-hook.js +34 -34
- package/dist/bin/pushary-permission-hook.js +35 -35
- package/dist/bin/pushary-post-hook.js +28 -28
- package/dist/bin/pushary-prompt-hook.js +27 -27
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +39 -39
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +58 -58
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +36 -36
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +16 -16
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +26 -26
- package/dist/bin/pushary-upgrade.js +47 -47
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-MVMPHFB4.js → chunk-23J7UISJ.js} +5 -5
- package/dist/{chunk-UFFEQEVI.js → chunk-2BZECJVP.js} +4 -4
- package/dist/{chunk-LHARTJ7Y.js → chunk-2MHP66YE.js} +1 -1
- package/dist/{chunk-KJWNXL6M.js → chunk-33D2NTVD.js} +5 -5
- package/dist/{chunk-BJ73ZDMN.js → chunk-3WVNDX5O.js} +4 -4
- package/dist/{chunk-RRL7CNHL.js → chunk-44K7GQQF.js} +1 -1
- package/dist/{chunk-KSIDZDZP.js → chunk-46IJNC36.js} +1 -1
- package/dist/{chunk-75F4L2W2.js → chunk-4CU2JKVB.js} +6 -6
- package/dist/{chunk-PN2KZ4GT.js → chunk-4HYHQYHX.js} +5 -5
- package/dist/{chunk-LFNIBQHE.js → chunk-4JT2BY7S.js} +4 -4
- package/dist/{chunk-E6HGFGDF.js → chunk-534LSPWP.js} +2 -2
- package/dist/{chunk-XIK6UKVW.js → chunk-5JLTTZ4A.js} +1 -1
- package/dist/{chunk-W66JA2VL.js → chunk-5ZV4OJLQ.js} +3 -3
- package/dist/{chunk-WRJ4VUXO.js → chunk-64QB6LAZ.js} +1 -1
- package/dist/{chunk-JUEVORTN.js → chunk-6L7SVCL7.js} +2 -2
- package/dist/{chunk-ZJRMS7X2.js → chunk-6LNSHFHD.js} +121 -1
- package/dist/{chunk-H5OVGHDY.js → chunk-7KQL5NR6.js} +1 -1
- package/dist/{chunk-Z36DLCV3.js → chunk-7MZQVWYF.js} +5 -5
- package/dist/{chunk-KXN3XO67.js → chunk-A7OIGKCQ.js} +4 -4
- package/dist/{chunk-XCYZTFVX.js → chunk-AABRXBIY.js} +1 -1
- package/dist/{chunk-FNUBR5NL.js → chunk-AAM62GRJ.js} +1 -1
- package/dist/{chunk-IQ5YFQY6.js → chunk-ABEAPF3L.js} +1 -1
- package/dist/{chunk-S2FFK25V.js → chunk-AXCLC72D.js} +8 -8
- package/dist/{chunk-M64BUY66.js → chunk-B236OY5Z.js} +3 -3
- package/dist/{chunk-GWWVEBLW.js → chunk-BXY5XZEI.js} +2 -2
- package/dist/{chunk-FV5TLWQS.js → chunk-C22UGPRX.js} +1 -1
- package/dist/{chunk-5ANGJL2J.js → chunk-CN7P65IZ.js} +2 -2
- package/dist/{chunk-XMI2NTQV.js → chunk-D5PK3FCS.js} +3 -3
- package/dist/{chunk-HC67BBDW.js → chunk-DIVCBKJX.js} +2 -2
- package/dist/{chunk-ZPLSKFWN.js → chunk-DVM22JGJ.js} +5 -5
- package/dist/{chunk-LZV3SN2U.js → chunk-F5F7S2JJ.js} +6 -6
- package/dist/{chunk-CTXXTEFA.js → chunk-FFFNHVN6.js} +6 -6
- package/dist/{chunk-4EM6W75L.js → chunk-FGDWDPRQ.js} +7 -7
- package/dist/{chunk-QNKWX26I.js → chunk-GA6CXG7J.js} +1 -1
- package/dist/{chunk-ZQEGK23B.js → chunk-GRF3ROE7.js} +5 -5
- package/dist/{chunk-RY6WEXPX.js → chunk-GRI3QUPX.js} +3 -3
- package/dist/{chunk-NNG74VEC.js → chunk-GVGLZBOG.js} +3 -3
- package/dist/{chunk-VYXBYJPZ.js → chunk-GZBAWH5W.js} +4 -4
- package/dist/{chunk-2TTBUGSV.js → chunk-HGWBXD3A.js} +2 -2
- package/dist/{chunk-47FNCTRG.js → chunk-I5EO46FK.js} +4 -4
- package/dist/{chunk-VQHI6O7A.js → chunk-JJTKHAVD.js} +3 -3
- package/dist/{chunk-XJMH75YS.js → chunk-JS3LOMRQ.js} +3 -3
- package/dist/{chunk-ZYM6WR3X.js → chunk-K3KHHIKW.js} +4 -4
- package/dist/{chunk-CTZIFG53.js → chunk-KO3VP7KV.js} +4 -4
- package/dist/{chunk-BC5BDWY3.js → chunk-L5YCMEOV.js} +1 -1
- package/dist/{chunk-HX7H3SCP.js → chunk-LHKIMBJO.js} +10 -10
- package/dist/{chunk-EIVPCAFX.js → chunk-MJI2OVQQ.js} +12 -12
- package/dist/{chunk-QAWEMILZ.js → chunk-MNYCJISM.js} +1 -1
- package/dist/{chunk-5XGF64U5.js → chunk-MOOSK3D3.js} +5 -5
- package/dist/{chunk-SO63LVC3.js → chunk-MZAW27UT.js} +3 -3
- package/dist/{chunk-DNP3YB3F.js → chunk-NFCYFGGB.js} +5 -5
- package/dist/{chunk-DQ4BN64G.js → chunk-NMBUEXCN.js} +7 -7
- package/dist/{chunk-LIA6KTRT.js → chunk-O5OPPV2S.js} +11 -11
- package/dist/{chunk-SLU2SBAL.js → chunk-OQ4MBJEK.js} +2 -2
- package/dist/{chunk-F7S7BZXK.js → chunk-OXKDOZH5.js} +4 -4
- package/dist/{chunk-WQQHFYJA.js → chunk-PCSUSVPL.js} +3 -3
- package/dist/{chunk-RF4RU7HT.js → chunk-QCYZY7SM.js} +1 -1
- package/dist/{chunk-O57ADP6V.js → chunk-R7ZFEHXE.js} +1 -1
- package/dist/{chunk-AIWP5HX6.js → chunk-RGY5D5KQ.js} +2 -2
- package/dist/{chunk-CV6NQKHB.js → chunk-RJKX4FJJ.js} +2 -2
- package/dist/{chunk-DPKVOWMU.js → chunk-S4N5VZRJ.js} +1 -1
- package/dist/{chunk-DJGQ3Z22.js → chunk-SI642PQX.js} +1 -1
- package/dist/{chunk-KRFL2TTE.js → chunk-SNO4Q74P.js} +16 -16
- package/dist/{chunk-WDMIWOGT.js → chunk-TIGMJWTH.js} +3 -3
- package/dist/{chunk-UERY25QK.js → chunk-TIT3JTG2.js} +2 -2
- package/dist/{chunk-IB7RICIP.js → chunk-U4SM4755.js} +5 -5
- package/dist/{chunk-5TZKOUQR.js → chunk-UP4JGKLJ.js} +1 -1
- package/dist/{chunk-VR6GDL6U.js → chunk-URI4M2Y7.js} +1 -1
- package/dist/{chunk-XDRXEBEC.js → chunk-UTOND6JN.js} +1 -1
- package/dist/{chunk-YFO7NG2J.js → chunk-UYI7GNRI.js} +4 -4
- package/dist/{chunk-KY2NAAX7.js → chunk-VX54TD6Y.js} +1 -1
- package/dist/{chunk-WYZH35RZ.js → chunk-VYGQZDXZ.js} +1 -1
- package/dist/{chunk-EUXMTG2Z.js → chunk-WDW4F5RB.js} +1 -1
- package/dist/{chunk-EWLN4HBC.js → chunk-WSNBD56T.js} +2 -2
- package/dist/{chunk-RGGOB2KA.js → chunk-XF6LGULK.js} +6 -6
- package/dist/{chunk-Z7EYIVEE.js → chunk-XRKK7REL.js} +9 -9
- package/dist/{chunk-YN34CTII.js → chunk-Y7I5JUKB.js} +2 -2
- package/dist/{chunk-2DPOXTSE.js → chunk-YTGHV5F3.js} +2 -2
- package/dist/{chunk-XSKZLSDU.js → chunk-ZEYB3PCY.js} +5 -5
- package/dist/{chunk-AEAH6FCM.js → chunk-ZHQ5GDGT.js} +6 -6
- package/dist/{chunk-SDE3MQZD.js → chunk-ZPXFKXHV.js} +3 -3
- package/dist/{codex-app-cards-switch-QXZWLSWG.js → codex-app-cards-switch-LSUHIBWH.js} +11 -11
- package/dist/{codex-card-routing-4RGETOB7.js → codex-card-routing-UALNWUT7.js} +2 -2
- package/dist/{codex-desktop-launch-46NG7HNC.js → codex-desktop-launch-NJJP3LOL.js} +3 -3
- package/dist/{codex-session-launch-ZIH4MWQH.js → codex-session-launch-SV3UAIQN.js} +20 -20
- package/dist/{config-XUMBVT44.js → config-DIUV6RBG.js} +3 -3
- package/dist/{global-upgrade-QG2USMDX.js → global-upgrade-432FL35T.js} +9 -9
- package/dist/{identity-WT3MS5KR.js → identity-Y4TV3HOR.js} +4 -4
- package/dist/{live-capabilities-LPQAHE3K.js → live-capabilities-TF5OI6MP.js} +4 -4
- package/dist/{paths-QHT5KEQU.js → paths-PUHJCRSZ.js} +3 -3
- package/dist/{reapply-3YU6SKMB.js → reapply-YF6ZPMSG.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-BOMZVT63.js → upgrade-lock-KGXKS5S3.js} +4 -4
- package/dist/{usage-ZE4CQY6C.js → usage-D7HCNUXP.js} +3 -3
- package/package.json +1 -1
package/dist/bin/pushary.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
installNetworkDefaults
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-GRI3QUPX.js";
|
|
5
|
+
import "../chunk-QCYZY7SM.js";
|
|
6
|
+
import "../chunk-Y7I5JUKB.js";
|
|
7
7
|
import "../chunk-6ICPEJY5.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-2BZECJVP.js";
|
|
9
|
+
import "../chunk-RJKX4FJJ.js";
|
|
10
10
|
import "../chunk-CINBAX5G.js";
|
|
11
11
|
import "../chunk-PM2NRK6Y.js";
|
|
12
12
|
import {
|
|
13
13
|
LISTED_COMMANDS,
|
|
14
14
|
renderHelp,
|
|
15
15
|
resolveCommandName
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-VX54TD6Y.js";
|
|
17
17
|
import {
|
|
18
18
|
EXIT
|
|
19
19
|
} from "../chunk-BG4HHB7E.js";
|
|
20
20
|
import {
|
|
21
21
|
getPackageVersion
|
|
22
22
|
} from "../chunk-CXQWDQCJ.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-6LNSHFHD.js";
|
|
24
24
|
import "../chunk-MLKGABMK.js";
|
|
25
25
|
|
|
26
26
|
// src/cli/runtime.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4JT2BY7S.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-O5OPPV2S.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UTOND6JN.js";
|
|
11
11
|
import {
|
|
12
12
|
CLAUDE_HOOK_EVENTS,
|
|
13
13
|
PUSHARY_MCP_URL,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
isPusharyHook,
|
|
20
20
|
registerHookEntry,
|
|
21
21
|
removeClaudeMcpServers
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Y7I5JUKB.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_ENFORCEMENT,
|
|
25
25
|
HOOK_COMPATIBLE_PROFILES,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
pusharyMissingReason,
|
|
33
33
|
refusalOutput,
|
|
34
34
|
withHookHoldBudget
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6LNSHFHD.js";
|
|
36
36
|
|
|
37
37
|
// src/config-document.ts
|
|
38
38
|
import { parse, stringify } from "smol-toml";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6LNSHFHD.js";
|
|
23
23
|
|
|
24
24
|
// src/shell-quote.ts
|
|
25
25
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -599,9 +599,9 @@ var installGlobally = (options) => {
|
|
|
599
599
|
}
|
|
600
600
|
const started = (async () => {
|
|
601
601
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
602
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
603
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
604
|
-
const { autoUpdateLock } = await import("./paths-
|
|
602
|
+
const { withUpgradeLock } = await import("./global-upgrade-432FL35T.js");
|
|
603
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-KGXKS5S3.js");
|
|
604
|
+
const { autoUpdateLock } = await import("./paths-PUHJCRSZ.js");
|
|
605
605
|
let result = "skipped";
|
|
606
606
|
const install = async () => {
|
|
607
607
|
const planned = readPlannedSetupInstall(process.platform);
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-D5PK3FCS.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LHKIMBJO.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-23J7UISJ.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-F5F7S2JJ.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6LNSHFHD.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"];
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-U4P4NDVB.js";
|
|
17
17
|
import {
|
|
18
18
|
withoutNpmInstallConsent
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2BZECJVP.js";
|
|
20
20
|
|
|
21
21
|
// src/codex-desktop-launch.ts
|
|
22
22
|
import { spawn as spawn2, execFileSync as execFileSync2 } from "child_process";
|
|
@@ -539,8 +539,8 @@ var loadedOnce = (load) => {
|
|
|
539
539
|
};
|
|
540
540
|
|
|
541
541
|
// src/codex-desktop-proxy.ts
|
|
542
|
-
var loadThePhone = () => import("./api-
|
|
543
|
-
var loadTheCardRouting = () => import("./codex-card-routing-
|
|
542
|
+
var loadThePhone = () => import("./api-AP7ZKAC4.js");
|
|
543
|
+
var loadTheCardRouting = () => import("./codex-card-routing-UALNWUT7.js");
|
|
544
544
|
var theFirstCardLoadsAgain = () => {
|
|
545
545
|
};
|
|
546
546
|
var ASKS_WITHOUT_ROUTING = {};
|
|
@@ -1101,7 +1101,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1101
1101
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1102
1102
|
}
|
|
1103
1103
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1104
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1104
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-LSUHIBWH.js");
|
|
1105
1105
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1106
1106
|
}
|
|
1107
1107
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
OPENCODE_PLUGIN_PLACEHOLDER,
|
|
7
7
|
OPENCODE_PLUGIN_SIBLING,
|
|
8
8
|
OPENCODE_PLUGIN_SIBLING_CONTENTS
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-S4N5VZRJ.js";
|
|
10
10
|
|
|
11
11
|
// src/opencode-runtime-bundle.ts
|
|
12
12
|
var openCodeRuntimeSource = `import { spawn } from 'child_process';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPROVAL_RULES_PATH,
|
|
3
3
|
canChangeApprovalSettings
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WSNBD56T.js";
|
|
5
5
|
import {
|
|
6
6
|
callMcpTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZEYB3PCY.js";
|
|
8
8
|
import {
|
|
9
9
|
absoluteUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZPXFKXHV.js";
|
|
11
11
|
import {
|
|
12
12
|
getBaseUrl
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RJKX4FJJ.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VX54TD6Y.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-6LNSHFHD.js";
|
|
25
25
|
|
|
26
26
|
// src/reach.ts
|
|
27
27
|
var PUSHARY_APP_DOWNLOAD_URL = "https://pushary.com/download";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openClawLauncherCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JJTKHAVD.js";
|
|
4
4
|
import {
|
|
5
5
|
openCodeConfigDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FGDWDPRQ.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-23J7UISJ.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-Y7I5JUKB.js";
|
|
20
20
|
import {
|
|
21
21
|
HOOK_COMPATIBLE_PROFILES
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6LNSHFHD.js";
|
|
23
23
|
|
|
24
24
|
// src/vscode-config.ts
|
|
25
25
|
import { homedir } from "os";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_CHOICES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L5YCMEOV.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MNYCJISM.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-Y7I5JUKB.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-6LNSHFHD.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
|
projectNameFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R7ZFEHXE.js";
|
|
4
4
|
import {
|
|
5
5
|
readConfigFileKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GVGLZBOG.js";
|
|
7
7
|
|
|
8
8
|
// src/bell/fleet.ts
|
|
9
9
|
import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
verifyAnchoredRecipients,
|
|
12
12
|
wrapSessionKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PCSUSVPL.js";
|
|
14
14
|
|
|
15
15
|
// src/live-session.ts
|
|
16
16
|
var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callDecisionStore,
|
|
3
3
|
identifyingToolInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-O5OPPV2S.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalJson
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Y7I5JUKB.js";
|
|
8
8
|
import {
|
|
9
9
|
BYPASS_PERMISSION_MODE
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6LNSHFHD.js";
|
|
11
11
|
|
|
12
12
|
// src/phone-approval.ts
|
|
13
13
|
import { createHash } from "crypto";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y7I5JUKB.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2BZECJVP.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -10883,8 +10883,128 @@ var gateVerdictUnderOneArrowReading = (rawInput) => {
|
|
|
10883
10883
|
scopePath: scopeReason && "path" in scopeVerdict ? widenablePath(scopeVerdict.path) : void 0
|
|
10884
10884
|
};
|
|
10885
10885
|
};
|
|
10886
|
+
var gateVerdictOfTheCall = (input) => underEachArrowReading(() => gateVerdictUnderOneArrowReading(input)).reduce(strictestGateVerdictOf);
|
|
10887
|
+
var MOST_STEPS_JUDGED_ALONE_IN_A_CALL = 64;
|
|
10888
|
+
var STEP_TEXT_READ_PER_CHARACTER_OF_THE_CALL = 8;
|
|
10889
|
+
var LEAST_STEP_TEXT_READ_IN_A_CALL = 65536;
|
|
10890
|
+
var lengthOfTheCommandIn = (toolName) => (toolInput) => extractPolicyArg(toolName, toolInput)?.length ?? 0;
|
|
10891
|
+
var stepBudgetFor = (input) => {
|
|
10892
|
+
const length = input.toolInputs.map(lengthOfTheCommandIn(input.toolName)).reduce((total, each) => total + each, 0);
|
|
10893
|
+
return {
|
|
10894
|
+
verdicts: /* @__PURE__ */ new Map(),
|
|
10895
|
+
destructive: /* @__PURE__ */ new Map(),
|
|
10896
|
+
charactersLeft: Math.max(LEAST_STEP_TEXT_READ_IN_A_CALL, length * STEP_TEXT_READ_PER_CHARACTER_OF_THE_CALL),
|
|
10897
|
+
judgementsLeft: MOST_STEPS_JUDGED_ALONE_IN_A_CALL
|
|
10898
|
+
};
|
|
10899
|
+
};
|
|
10900
|
+
var isSpent = (budget) => budget.charactersLeft < 0 || budget.judgementsLeft < 0;
|
|
10901
|
+
var readsWithin = (budget, characters) => {
|
|
10902
|
+
budget.charactersLeft -= characters;
|
|
10903
|
+
return !isSpent(budget);
|
|
10904
|
+
};
|
|
10905
|
+
var judgesWithin = (budget) => {
|
|
10906
|
+
budget.judgementsLeft -= 1;
|
|
10907
|
+
return !isSpent(budget);
|
|
10908
|
+
};
|
|
10909
|
+
var totalLengthOf = (texts) => texts.reduce((total, text3) => total + text3.length, 0);
|
|
10910
|
+
var scriptsReadIn = (scripts) => scripts.kind === "readable" ? scripts.scripts : [];
|
|
10911
|
+
var scriptsASegmentHandsToAShell = (segment) => {
|
|
10912
|
+
const innermost = innermostInvocation(segment.invocation);
|
|
10913
|
+
return [...scriptsReadIn(inlineScriptsOf(innermost, segment.heredocs)), ...scriptsReadIn(commandStringsARunnerRuns(innermost))];
|
|
10914
|
+
};
|
|
10915
|
+
var SEVERAL_COMMANDS = 2;
|
|
10916
|
+
var commandsOfAFindThatRunsSeveral = (segment) => {
|
|
10917
|
+
const commands = commandsRunByFind(innermostInvocation(segment.invocation)).map(verbatimInvocationText);
|
|
10918
|
+
return commands.length >= SEVERAL_COMMANDS ? commands : [];
|
|
10919
|
+
};
|
|
10920
|
+
var runsMoreThanOneCommand = (form) => readingWithEachSubstitutionPrintingOneWord(form) !== null || spelledSegmentsOf(form).length >= SEVERAL_COMMANDS;
|
|
10921
|
+
var isAnotherCommandThan = (command) => (step) => step !== command && trimShellWhitespace(step).length > 0;
|
|
10922
|
+
var TOO_MANY_FUNCTIONS_TO_READ_THE_STEPS = { kind: "too_many_functions" };
|
|
10923
|
+
var stepsOf = (command, spellings) => {
|
|
10924
|
+
const functions = bodiesOfFunctionsCalledIn(command, spelledSegmentsOf(command));
|
|
10925
|
+
if (functions.kind === "too_many") return TOO_MANY_FUNCTIONS_TO_READ_THE_STEPS;
|
|
10926
|
+
const substitutions = commandSubstitutionsReadIn(command);
|
|
10927
|
+
const bodies = substitutions.kind === "read" ? substitutions.bodies : [];
|
|
10928
|
+
const segments = spelledSegmentsOf(readingWithEachSubstitutionPrintingOneWord(command) ?? command);
|
|
10929
|
+
const steps = [
|
|
10930
|
+
...segments.map((segment) => segment.text),
|
|
10931
|
+
...bodies,
|
|
10932
|
+
...functions.bodies,
|
|
10933
|
+
...segments.flatMap(scriptsASegmentHandsToAShell),
|
|
10934
|
+
...segments.flatMap(commandsOfAFindThatRunsSeveral),
|
|
10935
|
+
...spellings.forms.filter(runsMoreThanOneCommand)
|
|
10936
|
+
];
|
|
10937
|
+
return { kind: "read", steps: [...new Set(steps)].filter(isAnotherCommandThan(command)) };
|
|
10938
|
+
};
|
|
10939
|
+
var JUDGED_AS_A_WHOLE = { kind: "the_whole_call" };
|
|
10940
|
+
var NO_STEP_TO_JUDGE = { kind: "each_step", commands: [] };
|
|
10941
|
+
var stepIsDestructive = (toolName, budget) => (step) => {
|
|
10942
|
+
const known = budget.destructive.get(step);
|
|
10943
|
+
if (known !== void 0) return known;
|
|
10944
|
+
const destructive = commandIsDestructive(toolName, step);
|
|
10945
|
+
budget.destructive.set(step, destructive);
|
|
10946
|
+
return destructive;
|
|
10947
|
+
};
|
|
10948
|
+
var hidesWhatItRunsFrom = (toolName, spellings) => !spellingsAreComplete(spellings) || POSIX_SHELL_TOOLS.has(toolName) && spellings.hidesWhatItRuns;
|
|
10949
|
+
var destructiveStepsOf = (toolName, command, budget) => {
|
|
10950
|
+
try {
|
|
10951
|
+
if (!readsWithin(budget, command.length)) return JUDGED_AS_A_WHOLE;
|
|
10952
|
+
const spellings = commandSpellings(command, SPELLS_COMMAND_RUNNERS_TOO);
|
|
10953
|
+
if (hidesWhatItRunsFrom(toolName, spellings)) return JUDGED_AS_A_WHOLE;
|
|
10954
|
+
if (!stepIsDestructive(toolName, budget)(command)) return NO_STEP_TO_JUDGE;
|
|
10955
|
+
if (!readsWithin(budget, totalLengthOf(spellings.forms))) return JUDGED_AS_A_WHOLE;
|
|
10956
|
+
const read = stepsOf(command, spellings);
|
|
10957
|
+
if (read.kind === "too_many_functions" || !readsWithin(budget, totalLengthOf(read.steps))) return JUDGED_AS_A_WHOLE;
|
|
10958
|
+
const destructive = read.steps.filter(stepIsDestructive(toolName, budget));
|
|
10959
|
+
return read.steps.length > 0 && destructive.length === 0 ? JUDGED_AS_A_WHOLE : { kind: "each_step", commands: destructive };
|
|
10960
|
+
} catch {
|
|
10961
|
+
return JUDGED_AS_A_WHOLE;
|
|
10962
|
+
}
|
|
10963
|
+
};
|
|
10964
|
+
var callOfAStep = (input, toolInput) => (command) => ({ command, call: { ...input, toolInputs: [{ ...toolInput, command }] } });
|
|
10965
|
+
var callsOfEachDestructiveStep = (input, depth, budget) => {
|
|
10966
|
+
if (depth >= MAX_SPELLING_DEPTH) return JUDGED_AS_A_WHOLE;
|
|
10967
|
+
const steps = [];
|
|
10968
|
+
for (const toolInput of withExtraReadings(input).toolInputs) {
|
|
10969
|
+
const command = extractPolicyArg(input.toolName, toolInput);
|
|
10970
|
+
if (command === void 0) continue;
|
|
10971
|
+
const destructive = destructiveStepsOf(input.toolName, command, budget);
|
|
10972
|
+
if (destructive.kind === "the_whole_call") return JUDGED_AS_A_WHOLE;
|
|
10973
|
+
steps.push(...destructive.commands.map(callOfAStep(input, toolInput)));
|
|
10974
|
+
}
|
|
10975
|
+
return { kind: "each_step", steps };
|
|
10976
|
+
};
|
|
10977
|
+
var gateMayApproveWithoutAnAnswer = (verdict) => verdict.kind === "gate" && approvesWithoutAnAnswer(verdict.policy);
|
|
10978
|
+
var askThatMayApproveWithoutAnAnswer = (policy) => restricts(policy) && approvesWithoutAnAnswer(policy);
|
|
10979
|
+
var withoutAsksThatMayApproveWithoutAnAnswer = (config) => ({
|
|
10980
|
+
...config,
|
|
10981
|
+
policies: config.policies.filter((policy) => !askThatMayApproveWithoutAnAnswer(policy))
|
|
10982
|
+
});
|
|
10983
|
+
var verdictsOfEachStep = (steps, depth, budget) => {
|
|
10984
|
+
const verdicts = [];
|
|
10985
|
+
for (const { command, call } of steps) {
|
|
10986
|
+
const known = budget.verdicts.get(command);
|
|
10987
|
+
if (known !== void 0) {
|
|
10988
|
+
verdicts.push(known);
|
|
10989
|
+
continue;
|
|
10990
|
+
}
|
|
10991
|
+
if (!judgesWithin(budget)) return verdicts;
|
|
10992
|
+
const verdict = gateVerdictNoWeakerThanItsSteps(call, depth + 1, budget);
|
|
10993
|
+
budget.verdicts.set(command, verdict);
|
|
10994
|
+
verdicts.push(verdict);
|
|
10995
|
+
}
|
|
10996
|
+
return verdicts;
|
|
10997
|
+
};
|
|
10998
|
+
var gateVerdictNoWeakerThanItsSteps = (input, depth, budget) => {
|
|
10999
|
+
const verdict = gateVerdictOfTheCall(input);
|
|
11000
|
+
if (!gateMayApproveWithoutAnAnswer(verdict) || !SHELL_DIALECT_BY_TOOL.has(input.toolName)) return verdict;
|
|
11001
|
+
const steps = callsOfEachDestructiveStep(input, depth, budget);
|
|
11002
|
+
const verdictsOfTheSteps = steps.kind === "each_step" ? verdictsOfEachStep(steps.steps, depth, budget) : [];
|
|
11003
|
+
const judgedAsAWhole = steps.kind === "the_whole_call" || isSpent(budget) ? [gateVerdictOfTheCall({ ...input, config: withoutAsksThatMayApproveWithoutAnAnswer(input.config) })] : [];
|
|
11004
|
+
return [...verdictsOfTheSteps, ...judgedAsAWhole].reduce(strictestGateVerdictOf, verdict);
|
|
11005
|
+
};
|
|
10886
11006
|
var resolveGate = (rawInput) => {
|
|
10887
|
-
const verdict =
|
|
11007
|
+
const verdict = gateVerdictNoWeakerThanItsSteps(rawInput, 0, stepBudgetFor(rawInput));
|
|
10888
11008
|
return verdict.kind === "gate" ? { ...verdict, policy: withApprovalRouteWait(rawInput, verdict.policy) } : verdict;
|
|
10889
11009
|
};
|
|
10890
11010
|
var resolvedToolInputsOf = (input) => input.toolInputs.map((toolInput) => ({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
questionWindowOf
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O5OPPV2S.js";
|
|
4
4
|
import {
|
|
5
5
|
UNNAMED_ACTION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UTOND6JN.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-F5F7S2JJ.js";
|
|
15
15
|
import {
|
|
16
16
|
getMachineId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QCYZY7SM.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-6LNSHFHD.js";
|
|
28
28
|
|
|
29
29
|
// src/pushed-question.ts
|
|
30
30
|
var scopeQuestionOf = (verdict) => {
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
uninstallOpenClawPlugin,
|
|
16
16
|
unsetOpenClawEntry,
|
|
17
17
|
writeOpenClawEntry
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JJTKHAVD.js";
|
|
19
19
|
import {
|
|
20
20
|
needsShell
|
|
21
21
|
} from "./chunk-3PSNUHC5.js";
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
openClawDirectoriesToLookIn,
|
|
28
28
|
openClawPluginFolder,
|
|
29
29
|
openClawSetupReceiptDirectory
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Y7I5JUKB.js";
|
|
31
31
|
import {
|
|
32
32
|
resolvePathBinary
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-2BZECJVP.js";
|
|
34
34
|
import {
|
|
35
35
|
readJsonSafe,
|
|
36
36
|
writeJsonAtomic
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-CXQWDQCJ.js";
|
|
42
42
|
import {
|
|
43
43
|
isRecord
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-6LNSHFHD.js";
|
|
45
45
|
|
|
46
46
|
// src/hermes/plugin-payload.ts
|
|
47
47
|
import { createHash } from "crypto";
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
postLiveSession,
|
|
7
7
|
postLiveSessionUntilAccepted,
|
|
8
8
|
startLiveSessionHeartbeat
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5JLTTZ4A.js";
|
|
10
10
|
import {
|
|
11
11
|
CommandReceipts,
|
|
12
12
|
controllerCommandSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VYGQZDXZ.js";
|
|
14
14
|
import {
|
|
15
15
|
SESSION_IDLE_TIMEOUT_MS,
|
|
16
16
|
describeIdleWindow,
|
|
17
17
|
idleDeadlinePassed,
|
|
18
18
|
startProcessOwnership
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HGWBXD3A.js";
|
|
20
20
|
import {
|
|
21
21
|
spawnClaude
|
|
22
22
|
} from "./chunk-3PSNUHC5.js";
|
|
@@ -25,18 +25,18 @@ import {
|
|
|
25
25
|
isWaitForAnswerResponse,
|
|
26
26
|
withdrawQuestion,
|
|
27
27
|
writeDegraded
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-F5F7S2JJ.js";
|
|
29
29
|
import {
|
|
30
30
|
readCommandAck
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ABEAPF3L.js";
|
|
32
32
|
import {
|
|
33
33
|
callMcpTool,
|
|
34
34
|
isRetryable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ZEYB3PCY.js";
|
|
36
36
|
import {
|
|
37
37
|
projectNameFor,
|
|
38
38
|
repositoryScopeFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-R7ZFEHXE.js";
|
|
40
40
|
import {
|
|
41
41
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
42
42
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
parseCodexQuestions,
|
|
59
59
|
planElicitationAsk,
|
|
60
60
|
readElicitationFields
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-6LNSHFHD.js";
|
|
62
62
|
|
|
63
63
|
// src/codex-question-owner.ts
|
|
64
64
|
import { createHash } from "crypto";
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
NpmMissingError,
|
|
4
4
|
NpmPermissionError,
|
|
5
5
|
NpmReleaseAgeError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2BZECJVP.js";
|
|
7
7
|
import {
|
|
8
8
|
writeFileAtomic
|
|
9
9
|
} from "./chunk-PM2NRK6Y.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VX54TD6Y.js";
|
|
13
13
|
import {
|
|
14
14
|
readSetupAgentFailures
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6LNSHFHD.js";
|
|
16
16
|
|
|
17
17
|
// src/setup/config-write.ts
|
|
18
18
|
var AgentConfigWriteError = class extends Error {
|