pushary 1.9.283 → 1.9.286
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 +20 -0
- package/README.md +3 -1
- package/dist/{api-OJRU3MYI.js → api-TOVNW7WX.js} +12 -12
- package/dist/bin/pushary-ask.js +14 -14
- 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 +14 -14
- package/dist/bin/pushary-claude.js +25 -25
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +22 -22
- package/dist/bin/pushary-codex-hook.js +38 -36
- 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 +115 -52
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +16 -1
- package/dist/bin/pushary-doctor.js +60 -54
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +17 -17
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +46 -43
- package/dist/bin/pushary-logout.js +31 -31
- 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-bridge.js +21 -21
- 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 +65 -61
- 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 +15 -15
- package/dist/bin/pushary-transcript-register.js +16 -16
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +54 -50
- package/dist/bin/pushary-wait.js +24 -24
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-K4YUNJDY.js → chunk-2HA6AGLM.js} +8 -7
- package/dist/{chunk-6VK43QVL.js → chunk-2MQUKVMW.js} +7 -7
- package/dist/{chunk-JSYYVEVW.js → chunk-2NUVES3K.js} +4 -4
- package/dist/{chunk-RJ5HUNEE.js → chunk-2SW5J3J2.js} +1 -1
- package/dist/{chunk-JHYVJYGR.js → chunk-3LZPJBH7.js} +6 -6
- package/dist/{chunk-TBCHTCA2.js → chunk-44RAWLI3.js} +1 -1
- package/dist/{chunk-AKUQLREQ.js → chunk-4KPUTQPG.js} +4 -4
- package/dist/{chunk-5YSFXK2C.js → chunk-4TOJHGPX.js} +2 -2
- package/dist/{chunk-7OOQJD33.js → chunk-4Y7RNQO5.js} +3 -3
- package/dist/{chunk-SIP2BFVS.js → chunk-5DF6YZPG.js} +63 -7
- package/dist/{chunk-EGZUBQL6.js → chunk-5FZ2K4UV.js} +1 -1
- package/dist/{chunk-EANJH5FQ.js → chunk-64PJ5AVE.js} +5 -5
- package/dist/{chunk-I67ZGYEY.js → chunk-6VN46PV6.js} +5 -5
- package/dist/{chunk-XKSIMUZM.js → chunk-6YVIWLL2.js} +2 -2
- package/dist/{chunk-EUO5U5V7.js → chunk-6ZNQDNFS.js} +11 -7
- package/dist/{chunk-UIOTVHQB.js → chunk-6ZRSO6PM.js} +2 -2
- package/dist/{chunk-EDVQWYSU.js → chunk-76UDPJET.js} +4 -4
- package/dist/{chunk-CPNPPYQL.js → chunk-77F7TPQE.js} +3 -3
- package/dist/{chunk-XGWKMWKM.js → chunk-7GSBA2C2.js} +3 -3
- package/dist/{chunk-26RKJL2X.js → chunk-7O4XAG63.js} +2 -2
- package/dist/{chunk-HX3RPHIH.js → chunk-7Y7YEKUY.js} +8 -8
- package/dist/{chunk-XC2O4MA3.js → chunk-7ZCIUEBP.js} +1 -1
- package/dist/{chunk-CBA4AVFT.js → chunk-A4KQYTUZ.js} +4 -4
- package/dist/{chunk-YSR7QVMN.js → chunk-A533F6TF.js} +3 -3
- package/dist/{chunk-AIBGURF2.js → chunk-ACAMCU2Y.js} +1 -1
- package/dist/{chunk-7VL6QZ3C.js → chunk-BCYXPGOQ.js} +3 -3
- package/dist/{chunk-QU2NSBXD.js → chunk-BETDBGC7.js} +2 -2
- package/dist/{chunk-UOABAWQ4.js → chunk-CCDQM7RZ.js} +6 -6
- package/dist/{chunk-E4WNMH33.js → chunk-CDOFQJ2Z.js} +1 -1
- package/dist/{chunk-N6RX3ZWB.js → chunk-DBBLMMBL.js} +1 -1
- package/dist/{chunk-JWMDRKAO.js → chunk-DFRYI4YG.js} +10 -10
- package/dist/{chunk-ATWYNEN4.js → chunk-DYIU6SSG.js} +1 -1
- package/dist/{chunk-JP7RRADP.js → chunk-ESTQIKTS.js} +1 -1
- package/dist/{chunk-YARDFZND.js → chunk-EZBNWOZM.js} +2 -2
- package/dist/{chunk-TVQWBXV2.js → chunk-FDCGIK7G.js} +33 -28
- package/dist/{chunk-5RSXB22M.js → chunk-GITZUSEJ.js} +4 -4
- package/dist/{chunk-M3MD5Y2O.js → chunk-H7PRRSXU.js} +5 -5
- package/dist/{chunk-KMMO3K2C.js → chunk-HGWAPTBM.js} +21 -14
- package/dist/{chunk-FIAXP3LF.js → chunk-IBOJQEH3.js} +6 -4
- package/dist/{chunk-L2BJVSVI.js → chunk-IGDC2GMU.js} +2 -2
- package/dist/{chunk-VYLJWG3B.js → chunk-JBK7WRPB.js} +1 -1
- package/dist/{chunk-XOZZ7LFC.js → chunk-JPCVW3BA.js} +2 -2
- package/dist/{chunk-GS4D3NTI.js → chunk-KLYYXDR6.js} +5 -5
- package/dist/{chunk-J2UDVVCB.js → chunk-KM4W3CFD.js} +6 -6
- package/dist/{chunk-SWGR226D.js → chunk-KU5MWQNB.js} +10 -10
- package/dist/{chunk-CA7VX4KS.js → chunk-L4PIOZIP.js} +2 -2
- package/dist/{chunk-2JWCBGFX.js → chunk-LF2BFP3F.js} +3 -3
- package/dist/{chunk-SL6ZTQA2.js → chunk-LP2VGPHZ.js} +1 -1
- package/dist/{chunk-OOSOLBO2.js → chunk-MBUENM7S.js} +1 -1
- package/dist/{chunk-QSPYUDHD.js → chunk-MTSTB2GL.js} +1 -1
- package/dist/{chunk-4RPG3SFC.js → chunk-NAD2JOKF.js} +16 -6
- package/dist/{chunk-B7SK3EXB.js → chunk-NYVJXU6Q.js} +5 -5
- package/dist/{chunk-Y5INUJ2S.js → chunk-OPRYDCR4.js} +3 -3
- package/dist/{chunk-OYRQZWXW.js → chunk-P47NDCPH.js} +2 -2
- package/dist/{chunk-CWQU75DS.js → chunk-P4FD4WGC.js} +3 -3
- package/dist/{chunk-FQWIGDXG.js → chunk-PAY473GK.js} +1 -1
- package/dist/{chunk-IPJRN56U.js → chunk-PSYSXBML.js} +5 -5
- package/dist/{chunk-IP6BVZZL.js → chunk-PUNGQGSR.js} +6 -6
- package/dist/{chunk-SAFK3BQB.js → chunk-QQDGYEWB.js} +1 -1
- package/dist/{chunk-7PRPLYOT.js → chunk-QTNBPBYN.js} +1 -1
- package/dist/{chunk-M6T24IVX.js → chunk-RT4KU4JT.js} +1 -1
- package/dist/{chunk-73SEBA5G.js → chunk-S3IF6XHT.js} +4 -4
- package/dist/{chunk-HKXFHEB4.js → chunk-SNR7BUWT.js} +4 -4
- package/dist/{chunk-JPSCKMYH.js → chunk-SRGKENVI.js} +1 -1
- package/dist/{chunk-VO22G4MS.js → chunk-TQ2KJLRJ.js} +14 -12
- package/dist/{chunk-6MUWWEYX.js → chunk-U3K6SCMH.js} +7 -7
- package/dist/{chunk-T5D3F6ME.js → chunk-UGMQTJKX.js} +5 -5
- package/dist/{chunk-IX2DKVF2.js → chunk-V5LIBKOQ.js} +4 -4
- package/dist/{chunk-FNENGMPK.js → chunk-V77JIYBK.js} +1 -1
- package/dist/{chunk-4ZWNL3CK.js → chunk-VFPXC2HE.js} +1 -1
- package/dist/{chunk-DTYSJP6K.js → chunk-VVXWDBZK.js} +2 -2
- package/dist/{chunk-PUNIACRA.js → chunk-VZXBPQIX.js} +4 -4
- package/dist/{chunk-IASJJRQV.js → chunk-W3CDMHZZ.js} +3 -3
- package/dist/{chunk-3B3UE65E.js → chunk-WDYTF6K7.js} +12 -12
- package/dist/{chunk-NWFO2WGB.js → chunk-WUDKVYSQ.js} +2 -2
- package/dist/{chunk-YG5TIW73.js → chunk-XCPZ64EV.js} +3 -3
- package/dist/{chunk-ZUHELFIM.js → chunk-XNWLSADP.js} +5 -4
- package/dist/{chunk-OQVYOMNI.js → chunk-Y3PDFOIE.js} +4 -4
- package/dist/{chunk-AOLCAXRB.js → chunk-YQVGPAZV.js} +1 -1
- package/dist/{chunk-6RAIYGKT.js → chunk-YV7BK4UO.js} +1 -1
- package/dist/{chunk-OTIXTZA6.js → chunk-YXKUZSPA.js} +2 -2
- package/dist/{chunk-7Y3NHQSD.js → chunk-ZAMK4GF4.js} +5 -5
- package/dist/{chunk-6GCGRTR7.js → chunk-ZROT5ZDA.js} +1 -1
- package/dist/{codex-app-cards-switch-2ZVORWWV.js → codex-app-cards-switch-TZHVNF3N.js} +11 -11
- package/dist/{codex-card-routing-PLD74MXM.js → codex-card-routing-BDAI3C5X.js} +2 -2
- package/dist/{codex-desktop-launch-BDR7I3AT.js → codex-desktop-launch-BQ4XMGMF.js} +3 -3
- package/dist/{codex-session-launch-HZJWXLWT.js → codex-session-launch-RGPJ6DBA.js} +21 -21
- package/dist/{config-DY2KBMHL.js → config-L57XINHY.js} +3 -3
- package/dist/{global-upgrade-H4CHC3PX.js → global-upgrade-ZD6PXYIH.js} +9 -9
- package/dist/{identity-BEGPK37L.js → identity-ZTXVU75K.js} +4 -4
- package/dist/{live-capabilities-W4YZO6AH.js → live-capabilities-TFAUA6FN.js} +4 -4
- package/dist/{paths-J7L3IDOW.js → paths-3VDI3LAG.js} +3 -3
- package/dist/{reapply-3ECJVIWC.js → reapply-YJL4U5EY.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-UPLYK4CW.js → upgrade-lock-KNVJBN5G.js} +4 -4
- package/dist/{usage-ZDDF7U5L.js → usage-YDADZALP.js} +3 -3
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A533F6TF.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NAD2JOKF.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -7,30 +7,30 @@ import {
|
|
|
7
7
|
restorePhoneApprovals,
|
|
8
8
|
setAsidePhoneApprovalsOfOtherCalls,
|
|
9
9
|
takePhoneApproval
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YXKUZSPA.js";
|
|
11
11
|
import {
|
|
12
12
|
defersToNativeMode
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ACAMCU2Y.js";
|
|
14
14
|
import {
|
|
15
15
|
reportMachineDenial
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-76UDPJET.js";
|
|
17
17
|
import {
|
|
18
18
|
claudeSettingsLocationFor,
|
|
19
19
|
readClaudePermissionRules
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-L4PIOZIP.js";
|
|
21
21
|
import {
|
|
22
22
|
isGatingMoment,
|
|
23
23
|
recordKeylessMoment
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7ZCIUEBP.js";
|
|
25
25
|
import {
|
|
26
26
|
isAdmitted,
|
|
27
27
|
readAdmissionRules
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PSYSXBML.js";
|
|
29
29
|
import {
|
|
30
30
|
activeHookSource,
|
|
31
31
|
activeIdentity,
|
|
32
32
|
namedSource
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-PUNGQGSR.js";
|
|
34
34
|
import {
|
|
35
35
|
DEFAULT_SESSION,
|
|
36
36
|
allow,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
storedWaitDeadline,
|
|
72
72
|
sweepFilesOlderThan,
|
|
73
73
|
userScope
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-HGWAPTBM.js";
|
|
75
75
|
import {
|
|
76
76
|
UNNAMED_ACTION,
|
|
77
77
|
deriveAction,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
patchDeletesFiles,
|
|
83
83
|
permissionDeniedAction,
|
|
84
84
|
scopePathFor
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-ESTQIKTS.js";
|
|
86
86
|
import {
|
|
87
87
|
isDeferAnswer
|
|
88
88
|
} from "./chunk-Z25VDYAL.js";
|
|
@@ -99,30 +99,30 @@ import {
|
|
|
99
99
|
sendNotification,
|
|
100
100
|
waitForQuestion,
|
|
101
101
|
withdrawQuestion
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-TQ2KJLRJ.js";
|
|
103
103
|
import {
|
|
104
104
|
branchFor,
|
|
105
105
|
projectNameFor,
|
|
106
106
|
repoKeyFor,
|
|
107
107
|
repositoryScopeFor
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-YQVGPAZV.js";
|
|
109
109
|
import {
|
|
110
110
|
getMachineId
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-SRGKENVI.js";
|
|
112
112
|
import {
|
|
113
113
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-6YVIWLL2.js";
|
|
115
115
|
import {
|
|
116
116
|
getApiKey,
|
|
117
117
|
getBaseUrl,
|
|
118
118
|
isMalformedApiKeyError
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-JPCVW3BA.js";
|
|
120
120
|
import {
|
|
121
121
|
writeFileAtomic
|
|
122
122
|
} from "./chunk-PM2NRK6Y.js";
|
|
123
123
|
import {
|
|
124
124
|
NPX_LATEST_COMMAND
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-BETDBGC7.js";
|
|
126
126
|
import {
|
|
127
127
|
AGENT_QUESTION_STRATEGY,
|
|
128
128
|
AGENT_QUESTION_TOOL,
|
|
@@ -160,6 +160,7 @@ import {
|
|
|
160
160
|
denyReasonFrom,
|
|
161
161
|
editGoesToTheAgentsPrompt,
|
|
162
162
|
effectiveWaitSeconds,
|
|
163
|
+
gateOutranksTheNativeMode,
|
|
163
164
|
hasNativeApprovalPrompt,
|
|
164
165
|
hookCompatibleProfileBySource,
|
|
165
166
|
hookHoldWindowMs,
|
|
@@ -183,6 +184,7 @@ import {
|
|
|
183
184
|
mcpToolSendsSomethingOut,
|
|
184
185
|
missedAnswerHandBack,
|
|
185
186
|
namedRouteWaitsForSomeoneElse,
|
|
187
|
+
onlyAnExplicitAnswerRunsTheCall,
|
|
186
188
|
parseAgentQuestions,
|
|
187
189
|
permissionsOffAskReason,
|
|
188
190
|
permissionsOffLineAppliesTo,
|
|
@@ -194,7 +196,7 @@ import {
|
|
|
194
196
|
terminalStaysLiveForTheCall,
|
|
195
197
|
timeoutActionWithoutLocalPrompt,
|
|
196
198
|
unapprovedScopeReason
|
|
197
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-NAD2JOKF.js";
|
|
198
200
|
|
|
199
201
|
// src/terminal-answer-watch.ts
|
|
200
202
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -890,7 +892,7 @@ var decidePreToolUse = async (input, canonical) => {
|
|
|
890
892
|
if (isMcpCallInClaudeCode(input) && !heldForMcp) return settledAs("mcp_tool", void 0);
|
|
891
893
|
if (await claimedBlockedActionRetry(apiKey, input)) return settledAs("asked", allow(BLOCKED_ACTION_ALLOW_REASON));
|
|
892
894
|
if (remindedOfApprovedRetry(input)) return settledAs("denied", deny(BLOCKED_ACTION_CHANGED_RETRY_REASON));
|
|
893
|
-
if (!(verdict
|
|
895
|
+
if (!gateOutranksTheNativeMode(verdict) && !approvalRouteOutranksAutoMode(gateInput, verdict, input.permission_mode) && !heldForMcpRoute && shouldDeferToNativeMode(input.permission_mode, input.tool_name)) {
|
|
894
896
|
return settledAs("native_mode", void 0);
|
|
895
897
|
}
|
|
896
898
|
if (claudeAllowlistOwnsCall(gateInput, verdict, input.permission_mode, claudePermissionRulesFor(input))) return settledAs("claude_allowlist", void 0);
|
|
@@ -996,17 +998,20 @@ var askClaudeQuestionBesideTheDialog = async (apiKey, input, modeState, holdBudg
|
|
|
996
998
|
if (!questions) return void 0;
|
|
997
999
|
const stop = new AbortController();
|
|
998
1000
|
const asked = [];
|
|
999
|
-
const
|
|
1000
|
-
const
|
|
1001
|
-
|
|
1002
|
-
deadline: questionDeadlineBesideTheDialog(holdBudgetSeconds),
|
|
1003
|
-
signal: stop.signal,
|
|
1004
|
-
onQuestionCreated: (correlationId) => {
|
|
1005
|
-
asked.push(correlationId);
|
|
1006
|
-
}
|
|
1007
|
-
}, questions);
|
|
1008
|
-
const stopWatchingTheDialog = withdrawWhenTheDialogCloses(apiKey, stop, () => phone.then(() => asked.at(-1), () => asked.at(-1)));
|
|
1001
|
+
const phoneAsks = [];
|
|
1002
|
+
const lastPhoneQuestionOnceAsked = () => Promise.allSettled(phoneAsks).then(() => asked.at(-1));
|
|
1003
|
+
const stopWatchingTheDialog = withdrawWhenTheDialogCloses(apiKey, stop, lastPhoneQuestionOnceAsked);
|
|
1009
1004
|
try {
|
|
1005
|
+
const terminal = terminalAnswered(input, stop.signal);
|
|
1006
|
+
const phone = askAgentQuestions(apiKey, {
|
|
1007
|
+
...claudeQuestionAskOf(input),
|
|
1008
|
+
deadline: questionDeadlineBesideTheDialog(holdBudgetSeconds),
|
|
1009
|
+
signal: stop.signal,
|
|
1010
|
+
onQuestionCreated: (correlationId) => {
|
|
1011
|
+
asked.push(correlationId);
|
|
1012
|
+
}
|
|
1013
|
+
}, questions);
|
|
1014
|
+
phoneAsks.push(phone);
|
|
1010
1015
|
const first = await Promise.race([phone, terminal]).finally(() => stop.abort());
|
|
1011
1016
|
if (first !== TERMINAL_ANSWERED) return dialogAnswerFromThePhone(input, questions, first);
|
|
1012
1017
|
await phone;
|
|
@@ -1055,7 +1060,7 @@ var handlePermissionRequest = async (input, canonical, holdBudgetSeconds) => {
|
|
|
1055
1060
|
const scopeQuestion = verdict.kind === "gate" && Boolean(verdict.scopeReason);
|
|
1056
1061
|
const preToolUseRanForTheCall = PRETOOLUSE_HANDLED_TOOLS.has(input.tool_name) && isAdmitted(readAdmissionRules(), "claude", "PreToolUse");
|
|
1057
1062
|
const preToolUseAskedTheScopeQuestion = scopeQuestion && terminalLive && preToolUseRanForTheCall;
|
|
1058
|
-
const preToolUseOwnsTheCall = !scopeQuestion && !preToolUseAllowLeftThePrompt && !claudeAllowlistOwnsCall(gateInput, verdict, input.permission_mode, claudeRules) && (isPermissionRequestOwnedByPreToolUse(ACTIVE_SOURCE, input.tool_name, input.permission_mode, shouldDeferToNativeMode) || preToolUseRanForTheCall && approvalRouteOutranksAutoMode(gateInput, verdict, input.permission_mode));
|
|
1063
|
+
const preToolUseOwnsTheCall = !scopeQuestion && !preToolUseAllowLeftThePrompt && !claudeAllowlistOwnsCall(gateInput, verdict, input.permission_mode, claudeRules) && (isPermissionRequestOwnedByPreToolUse(ACTIVE_SOURCE, input.tool_name, input.permission_mode, shouldDeferToNativeMode) || preToolUseRanForTheCall && (approvalRouteOutranksAutoMode(gateInput, verdict, input.permission_mode) || onlyAnExplicitAnswerRunsTheCall(verdict)));
|
|
1059
1064
|
if (!handedOff && (preToolUseAskedTheScopeQuestion || preToolUseOwnsTheCall)) return void 0;
|
|
1060
1065
|
const terminalLiveDispatch = handedOff ? { holdBudgetSeconds } : void 0;
|
|
1061
1066
|
const replayTheYes = async (call) => answerOfTheReplay(
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PUNGQGSR.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V5LIBKOQ.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6YVIWLL2.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NAD2JOKF.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UNSET_IGNORED_SHELL_VALUE_STEP
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VZXBPQIX.js";
|
|
4
4
|
import {
|
|
5
5
|
notificationAnswerStep
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KM4W3CFD.js";
|
|
7
7
|
import {
|
|
8
8
|
matchMacAccountStep,
|
|
9
9
|
retryAgentCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LF2BFP3F.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND,
|
|
13
13
|
npmExecSetupCommandFor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BETDBGC7.js";
|
|
15
15
|
import {
|
|
16
16
|
EXIT
|
|
17
17
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
compatibleProfileFor,
|
|
23
23
|
isCompatibleAgentType
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NAD2JOKF.js";
|
|
25
25
|
|
|
26
26
|
// src/setup/closing.ts
|
|
27
27
|
var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
transcriptTokensIn,
|
|
33
33
|
transcriptUsageRequest,
|
|
34
34
|
usageLimitStopOf
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ESTQIKTS.js";
|
|
36
36
|
import {
|
|
37
37
|
isDeferAnswer
|
|
38
38
|
} from "./chunk-Z25VDYAL.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
RETRY_ACK,
|
|
41
41
|
readCommandAck,
|
|
42
42
|
refusedReceiptMessage
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-CDOFQJ2Z.js";
|
|
44
44
|
import {
|
|
45
45
|
askUser,
|
|
46
46
|
cancelQuestionSettledAtComputer,
|
|
@@ -57,32 +57,32 @@ import {
|
|
|
57
57
|
waitForOpenQuestion,
|
|
58
58
|
waitForQuestion,
|
|
59
59
|
writeDegraded
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-TQ2KJLRJ.js";
|
|
61
61
|
import {
|
|
62
62
|
SubscriptionRequiredError,
|
|
63
63
|
isRetryable,
|
|
64
64
|
withRetry
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-CCDQM7RZ.js";
|
|
66
66
|
import {
|
|
67
67
|
fetchAsCredential
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-IBOJQEH3.js";
|
|
69
69
|
import {
|
|
70
70
|
branchFor,
|
|
71
71
|
projectNameFor,
|
|
72
72
|
repoKeyFor
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-YQVGPAZV.js";
|
|
74
74
|
import {
|
|
75
75
|
getMachineId
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-SRGKENVI.js";
|
|
77
77
|
import {
|
|
78
78
|
reportedInstallSource
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-VVXWDBZK.js";
|
|
80
80
|
import {
|
|
81
81
|
IDLE_PROMPT_NOTIFICATION,
|
|
82
82
|
NOTIFICATION_PUSH_TYPES,
|
|
83
83
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
84
84
|
claudeConfigDir
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-6YVIWLL2.js";
|
|
86
86
|
import {
|
|
87
87
|
compareVersion,
|
|
88
88
|
parseVersion
|
|
@@ -91,14 +91,14 @@ import {
|
|
|
91
91
|
getApiKey,
|
|
92
92
|
getBaseUrl,
|
|
93
93
|
isMalformedApiKeyError
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-JPCVW3BA.js";
|
|
95
95
|
import {
|
|
96
96
|
writeFileAtomic,
|
|
97
97
|
writeJsonAtomicDurable
|
|
98
98
|
} from "./chunk-PM2NRK6Y.js";
|
|
99
99
|
import {
|
|
100
100
|
NPX_LATEST_COMMAND
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-BETDBGC7.js";
|
|
102
102
|
import {
|
|
103
103
|
getPackageVersion,
|
|
104
104
|
isKnownReleaseVersion
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
responseRejectsCredential,
|
|
165
165
|
unansweredRefusalReason,
|
|
166
166
|
waitsForThePhone
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-NAD2JOKF.js";
|
|
168
168
|
|
|
169
169
|
// src/pending.ts
|
|
170
170
|
import { join } from "path";
|
|
@@ -2572,11 +2572,18 @@ var usageLimitNoticeHoldMs = (stop) => {
|
|
|
2572
2572
|
if (resetNamesADate(stop)) return DATED_RESET_NOTICE_HOLD_MS;
|
|
2573
2573
|
return stop.window === "five_hour" ? FIVE_HOUR_RESET_NOTICE_HOLD_MS : UNDATED_RESET_NOTICE_HOLD_MS;
|
|
2574
2574
|
};
|
|
2575
|
-
var
|
|
2575
|
+
var calendarDayOf = (moment) => `${moment.getFullYear()}-${String(moment.getMonth() + 1).padStart(2, "0")}-${String(moment.getDate()).padStart(2, "0")}`;
|
|
2576
|
+
var DATED_RESET_HIT = "dated-reset";
|
|
2577
|
+
var FIVE_HOUR_HIT = "five-hour-hold";
|
|
2578
|
+
var usageLimitHitOn = (stop, raisedAt) => {
|
|
2579
|
+
if (resetNamesADate(stop)) return DATED_RESET_HIT;
|
|
2580
|
+
return stop.window === "five_hour" ? FIVE_HOUR_HIT : calendarDayOf(raisedAt);
|
|
2581
|
+
};
|
|
2582
|
+
var usageLimitNoticeKey = (sessionId, stop, raisedAt) => `usage-limit:${sessionId ?? "no-session"}:${stop.window}:${stop.limitName}:${stop.resetsAt ?? "no-reset"}:${usageLimitHitOn(stop, raisedAt)}`;
|
|
2576
2583
|
var usageLimitNoticeTitle = (agent, stop) => `${agent.label} stopped at your ${stop.limitName}`;
|
|
2577
2584
|
var usageLimitNoticeBody = (stop) => stop.resetsAt ? `It resets ${stop.resetsAt}. Send a message after that to continue.` : "Open Claude Code on your computer to see how to continue.";
|
|
2578
2585
|
var sendUsageLimitNotice = async (apiKey, stop, target) => {
|
|
2579
|
-
const key = usageLimitNoticeKey(target.sessionId, stop);
|
|
2586
|
+
const key = usageLimitNoticeKey(target.sessionId, stop, new Date(Date.now()));
|
|
2580
2587
|
if (claimThrottle(key, usageLimitNoticeHoldMs(stop)) === "throttled") return;
|
|
2581
2588
|
const title = usageLimitNoticeTitle(target.agent, stop);
|
|
2582
2589
|
const body = usageLimitNoticeBody(stop);
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
MCP_CREDENTIAL_REJECTION_BODY,
|
|
6
6
|
isRecord,
|
|
7
7
|
responseRejectsCredential
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NAD2JOKF.js";
|
|
9
9
|
|
|
10
10
|
// src/credential-rejection.ts
|
|
11
11
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -33,12 +33,13 @@ var readRememberedRejection = (credential, url) => {
|
|
|
33
33
|
return null;
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
var
|
|
36
|
+
var credentialRejectedAt = (credential, url, now) => {
|
|
37
37
|
const remembered = readRememberedRejection(credential, url);
|
|
38
|
-
if (!remembered || remembered.fingerprint !== credentialFingerprint(credential, url)) return
|
|
38
|
+
if (!remembered || remembered.fingerprint !== credentialFingerprint(credential, url)) return null;
|
|
39
39
|
const age = (now ?? Date.now()) - remembered.rejectedAt;
|
|
40
|
-
return age >= 0 && age < CREDENTIAL_REJECTION_TTL_MS;
|
|
40
|
+
return age >= 0 && age < CREDENTIAL_REJECTION_TTL_MS ? remembered.rejectedAt : null;
|
|
41
41
|
};
|
|
42
|
+
var credentialRecentlyRejected = (credential, url, now) => credentialRejectedAt(credential, url, now) !== null;
|
|
42
43
|
var discardStagedRejection = (staged) => {
|
|
43
44
|
try {
|
|
44
45
|
unlinkSync(staged);
|
|
@@ -77,5 +78,6 @@ var fetchAsCredential = async (credential, url, init, fetchImpl = fetch) => {
|
|
|
77
78
|
};
|
|
78
79
|
|
|
79
80
|
export {
|
|
81
|
+
credentialRejectedAt,
|
|
80
82
|
fetchAsCredential
|
|
81
83
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6YVIWLL2.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SNR7BUWT.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
questionWindowOf
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HGWAPTBM.js";
|
|
4
4
|
import {
|
|
5
5
|
UNNAMED_ACTION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ESTQIKTS.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-TQ2KJLRJ.js";
|
|
15
15
|
import {
|
|
16
16
|
getMachineId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SRGKENVI.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-NAD2JOKF.js";
|
|
28
28
|
|
|
29
29
|
// src/pushed-question.ts
|
|
30
30
|
var scopeQuestionOf = (verdict) => {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPROVAL_RULES_PATH,
|
|
3
3
|
canChangeApprovalSettings
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EZBNWOZM.js";
|
|
5
5
|
import {
|
|
6
6
|
callMcpTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CCDQM7RZ.js";
|
|
8
8
|
import {
|
|
9
9
|
absoluteUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-A533F6TF.js";
|
|
11
11
|
import {
|
|
12
12
|
getBaseUrl
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JPCVW3BA.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BETDBGC7.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-NAD2JOKF.js";
|
|
25
25
|
|
|
26
26
|
// src/reach.ts
|
|
27
27
|
var PUSHARY_APP_DOWNLOAD_URL = "https://pushary.com/download";
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L4PIOZIP.js";
|
|
4
4
|
import {
|
|
5
5
|
declinedAgentsFile,
|
|
6
6
|
readDeclinedAgents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6ZRSO6PM.js";
|
|
8
8
|
import {
|
|
9
9
|
liveCursorGateCoverage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XCPZ64EV.js";
|
|
11
11
|
import {
|
|
12
12
|
OPENCODE_HOOK_BINARY,
|
|
13
13
|
openCodeConfigDir,
|
|
14
14
|
openCodePluginFile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-U3K6SCMH.js";
|
|
16
16
|
import {
|
|
17
17
|
openCodePluginArgv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MTSTB2GL.js";
|
|
19
19
|
import {
|
|
20
20
|
compatibleConfigFile,
|
|
21
21
|
compatibleHookEvents,
|
|
22
22
|
grokHome
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PUNGQGSR.js";
|
|
24
24
|
import {
|
|
25
25
|
parseConfigDocument
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LP2VGPHZ.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_HOOKS_KEY_PATH,
|
|
29
29
|
GEMINI_HOOK_BINARY,
|
|
30
30
|
GEMINI_HOOK_EVENTS,
|
|
31
31
|
hooksAt
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-V5LIBKOQ.js";
|
|
33
33
|
import {
|
|
34
34
|
CODEX_EARLIER_APPROVAL_MATCHERS,
|
|
35
35
|
CODEX_HOOK_BINARY,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
parseHookArgv,
|
|
58
58
|
parseHookCommand,
|
|
59
59
|
supportedClaudeEvents
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-6YVIWLL2.js";
|
|
61
61
|
import {
|
|
62
62
|
readRegularJsonFile,
|
|
63
63
|
readRegularTextFile
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
OPENCODE_APPROVAL_EVENT,
|
|
72
72
|
isRecord,
|
|
73
73
|
matcherMatchesEveryCall
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-NAD2JOKF.js";
|
|
75
75
|
|
|
76
76
|
// src/hook-wiring.ts
|
|
77
77
|
import { createHash } from "crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
claudeConfigDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6YVIWLL2.js";
|
|
4
4
|
import {
|
|
5
5
|
claudePermissionRulesFromSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NAD2JOKF.js";
|
|
7
7
|
|
|
8
8
|
// src/claude-permission-rules.ts
|
|
9
9
|
import { readFileSync, statSync } from "fs";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
NpmMissingError,
|
|
5
5
|
NpmPermissionError,
|
|
6
6
|
NpmReleaseAgeError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SNR7BUWT.js";
|
|
8
8
|
import {
|
|
9
9
|
writeFileAtomic
|
|
10
10
|
} from "./chunk-PM2NRK6Y.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BETDBGC7.js";
|
|
14
14
|
import {
|
|
15
15
|
readSetupAgentFailures
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NAD2JOKF.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/config-write.ts
|
|
19
19
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -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-DYIU6SSG.js";
|
|
10
10
|
|
|
11
11
|
// src/opencode-runtime-bundle.ts
|
|
12
12
|
var openCodeRuntimeSource = `import { spawn } from 'child_process';
|