pushary 1.9.262 → 1.9.266
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 +16 -0
- package/dist/{api-TGVE6ZKD.js → api-6HVKVLYN.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +29 -29
- 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 +40 -40
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +35 -35
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +36 -36
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +47 -47
- package/dist/bin/pushary-disconnect.js +31 -31
- package/dist/bin/pushary-display-hook.js +461 -2
- package/dist/bin/pushary-doctor.js +52 -51
- package/dist/bin/pushary-elicitation-hook.js +28 -28
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +32 -32
- package/dist/bin/pushary-hook.js +36 -36
- package/dist/bin/pushary-login.js +23 -23
- package/dist/bin/pushary-logout.js +32 -32
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +28 -28
- package/dist/bin/pushary-opencode-bridge.js +22 -22
- package/dist/bin/pushary-opencode-hook.js +33 -33
- package/dist/bin/pushary-permission-denied-hook.js +35 -35
- package/dist/bin/pushary-permission-hook.js +36 -36
- package/dist/bin/pushary-post-hook.js +29 -29
- package/dist/bin/pushary-prompt-hook.js +28 -28
- package/dist/bin/pushary-session-end-hook.js +28 -28
- package/dist/bin/pushary-session-start-hook.js +40 -40
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +61 -61
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +37 -37
- package/dist/bin/pushary-stop-hook.js +28 -28
- package/dist/bin/pushary-stopfailure-hook.js +28 -28
- 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 +48 -48
- package/dist/bin/pushary-wait.js +21 -20
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-67UJTXRZ.js → chunk-2SWQRNPR.js} +1 -1
- package/dist/{chunk-DIHUVYT2.js → chunk-3G4HNQA6.js} +13 -12
- package/dist/{chunk-WV7OME3F.js → chunk-3JYLC2WN.js} +2 -2
- package/dist/{chunk-JOQAW5BM.js → chunk-3WNCR4KH.js} +12 -12
- package/dist/{chunk-JVZCCUN4.js → chunk-4DI66ZHF.js} +5 -5
- package/dist/{chunk-HB3S3KDX.js → chunk-4MUKWLYS.js} +1 -1
- package/dist/{chunk-SG4IFPJP.js → chunk-4SRBFGPG.js} +1 -1
- package/dist/{chunk-LE6VFEJU.js → chunk-5A65MMYW.js} +1 -1
- package/dist/{chunk-T4EVAVKF.js → chunk-5LJHKXLN.js} +5 -5
- package/dist/{chunk-CC6BYFNM.js → chunk-5UDPKOWF.js} +6 -6
- package/dist/{chunk-EVJ5DPRU.js → chunk-5Z63DAD6.js} +1 -1
- package/dist/{chunk-CXGRUUUM.js → chunk-6IG4XWEM.js} +10 -10
- package/dist/{chunk-CAOMKUSR.js → chunk-6LDMEN7P.js} +4 -4
- package/dist/{chunk-WYYHSHBO.js → chunk-6Q77W6D7.js} +2 -2
- package/dist/{chunk-LZRXFGEP.js → chunk-6V7WJK5B.js} +11 -7
- package/dist/{chunk-CVWG2N3Y.js → chunk-77QY3M7Z.js} +12 -0
- package/dist/{chunk-APTFA4KF.js → chunk-AMV2AVTB.js} +1 -1
- package/dist/{chunk-NHLCREFU.js → chunk-ARJH7TUY.js} +1 -1
- package/dist/{chunk-IK4MIPI2.js → chunk-BZ6E2ZJ3.js} +3 -3
- package/dist/{chunk-QWSXLYTX.js → chunk-CKKCIMJM.js} +3 -3
- package/dist/{chunk-H4DPB3LK.js → chunk-CMODL5RR.js} +8 -8
- package/dist/{chunk-5K5MT22J.js → chunk-CV63IDIE.js} +4 -4
- package/dist/{chunk-CTTIW2A3.js → chunk-CYK2K3SB.js} +2 -2
- package/dist/{chunk-W7QW3XFQ.js → chunk-DGE5W756.js} +4 -4
- package/dist/{chunk-JG4JGAI2.js → chunk-DIESQCCP.js} +4 -4
- package/dist/{chunk-VL4AJPCE.js → chunk-E2ODJUS6.js} +4 -4
- package/dist/{chunk-QGYVOSDC.js → chunk-EUFKPNZF.js} +1 -1
- package/dist/{chunk-KEC73KH6.js → chunk-FTWC3YL5.js} +1 -1
- package/dist/{chunk-23ELMB2F.js → chunk-G4PVFXAT.js} +2 -2
- package/dist/{chunk-WCOI5PQU.js → chunk-GHPBR545.js} +1 -1
- package/dist/{chunk-73ROMTIN.js → chunk-GLPZVUDH.js} +6 -6
- package/dist/{chunk-2DYJTOOU.js → chunk-HVEOTPRU.js} +3 -3
- package/dist/{chunk-V6MQUYE2.js → chunk-I4GD3T6R.js} +7 -7
- package/dist/{chunk-OAE54AV7.js → chunk-IHLT622L.js} +1 -1
- package/dist/{chunk-AURPPDRZ.js → chunk-IPBJJCEC.js} +2 -2
- package/dist/{chunk-VSW5ZMPX.js → chunk-ISVO2KSM.js} +3 -3
- package/dist/{chunk-VDPUBIL2.js → chunk-KRJHE353.js} +2 -2
- package/dist/{chunk-5SVZXCAJ.js → chunk-KW32GJSQ.js} +1 -1
- package/dist/{chunk-I4D4XEIJ.js → chunk-LEUXJOX6.js} +5 -5
- package/dist/{chunk-C4D6R27P.js → chunk-MJNRULIV.js} +5 -5
- package/dist/{chunk-WFUVBCKK.js → chunk-MKHTIXOB.js} +4 -4
- package/dist/{chunk-EHH4PQG7.js → chunk-NSMO7QPG.js} +4 -4
- package/dist/{chunk-R33I7ZNR.js → chunk-O6UNU4NB.js} +5 -5
- package/dist/{chunk-K5ZEJCJO.js → chunk-OCQ6Y7NI.js} +3 -3
- package/dist/{chunk-JUCN4TV4.js → chunk-OOFSQMMB.js} +5 -5
- package/dist/{chunk-WOEMRT24.js → chunk-OYUCP6IN.js} +3 -3
- package/dist/{chunk-SCXUTDQM.js → chunk-PDBABOA2.js} +3 -3
- package/dist/{chunk-D2666AVW.js → chunk-PKA7UXDK.js} +6 -6
- package/dist/{chunk-NLW2YDL5.js → chunk-Q3TS5VKY.js} +5 -5
- package/dist/{chunk-Q54QQO5E.js → chunk-QIXZJA4Z.js} +5 -5
- package/dist/{chunk-DU5MLJQL.js → chunk-QX2WZ6NB.js} +1 -1
- package/dist/{chunk-HZ76NLD2.js → chunk-QXSMS7IR.js} +6 -6
- package/dist/{chunk-BTSJ2W7I.js → chunk-R5BKLVFA.js} +1 -1
- package/dist/{chunk-J7V5ZFZC.js → chunk-RBIDBSHI.js} +6 -6
- package/dist/{chunk-RX75OG6S.js → chunk-RBM5PLKI.js} +6 -6
- package/dist/{chunk-HSVVH7K2.js → chunk-RCMMMQSJ.js} +1 -1
- package/dist/{chunk-YEIHJAE6.js → chunk-RFZXAPIN.js} +3 -3
- package/dist/{chunk-FKYZEIH7.js → chunk-RIKMC6JA.js} +10 -10
- package/dist/{chunk-F6LNIS2Y.js → chunk-RTHHTOSN.js} +1 -1
- package/dist/{chunk-IS5WMKN2.js → chunk-SAS22USY.js} +3 -3
- package/dist/{chunk-43DXK6WE.js → chunk-SUEN6I24.js} +1 -1
- package/dist/{chunk-HMN4XEJE.js → chunk-SVU7OCV4.js} +4 -4
- package/dist/{chunk-SLD22IUB.js → chunk-SWHJRTCT.js} +4 -4
- package/dist/{chunk-WTFR2OK4.js → chunk-T672PUVP.js} +38 -27
- package/dist/{chunk-MJW6P7A6.js → chunk-TAP2MUPA.js} +2 -2
- package/dist/{chunk-HVY3YUJU.js → chunk-TXVWUYJC.js} +1 -1
- package/dist/{chunk-BZ2V2ES3.js → chunk-UMQCCVEI.js} +5 -5
- package/dist/{chunk-IMSFJFN6.js → chunk-VDHRFPX2.js} +1 -1
- package/dist/{chunk-FURJQUDT.js → chunk-VDTJEVMG.js} +2 -2
- package/dist/{chunk-H4XEEC4I.js → chunk-VM3BJUKF.js} +2 -2
- package/dist/{chunk-QIOPWRBQ.js → chunk-VZKJU6TX.js} +1 -1
- package/dist/{chunk-2Q3ZTT57.js → chunk-WMV4MDYA.js} +7 -7
- package/dist/{chunk-SOJPAKCB.js → chunk-WOSJT4NA.js} +1 -1
- package/dist/{chunk-VZVKJP3Q.js → chunk-WQDX276X.js} +752 -30
- package/dist/{chunk-RA4RSVVJ.js → chunk-WT2XF4CO.js} +1 -1
- package/dist/{chunk-EPT6MZBG.js → chunk-WXWZ5LBE.js} +5 -5
- package/dist/{chunk-YQTU6V4X.js → chunk-XWWBOTJX.js} +2 -2
- package/dist/{chunk-DS3C4SRR.js → chunk-Y6X73WXC.js} +2 -2
- package/dist/{chunk-IHH3HGQQ.js → chunk-YIP2LG47.js} +3 -3
- package/dist/{chunk-DU2YTOTA.js → chunk-YVXQXWP4.js} +1 -1
- package/dist/{chunk-FNDKQEJP.js → chunk-Z2UGEG75.js} +4 -4
- package/dist/{chunk-DOMSM62I.js → chunk-ZEPZMXJH.js} +2 -2
- package/dist/{chunk-ZPM6H6GM.js → chunk-ZJOVWZJ4.js} +1 -1
- package/dist/{codex-app-cards-switch-CQZL4XI6.js → codex-app-cards-switch-QTAMDVPU.js} +12 -12
- package/dist/{codex-card-routing-VV2HQAGX.js → codex-card-routing-MDIJ7WTX.js} +2 -2
- package/dist/{codex-desktop-launch-FYXOQGBR.js → codex-desktop-launch-4AC7JUSA.js} +3 -3
- package/dist/{codex-session-launch-A4LDZ4GU.js → codex-session-launch-4ZLEBUHB.js} +20 -20
- package/dist/{config-EHAN6BUF.js → config-SDTBVASN.js} +3 -3
- package/dist/{global-upgrade-EJZ2EX7R.js → global-upgrade-EBANNXIB.js} +9 -9
- package/dist/{identity-L7SFKUOG.js → identity-AJ7EIESJ.js} +4 -4
- package/dist/{live-capabilities-QAVKVTKD.js → live-capabilities-G662M2ZR.js} +4 -4
- package/dist/{paths-BD7XIUNJ.js → paths-G53BK3IS.js} +3 -3
- package/dist/reapply-6U2BGHTD.js +76 -0
- package/dist/src/index.js +34 -34
- package/dist/{upgrade-lock-Y35PJNJT.js → upgrade-lock-7ATRPVWH.js} +4 -4
- package/dist/{usage-E5Z3XUTZ.js → usage-EYJ5KBHE.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-QFSUMRID.js +0 -76
|
@@ -7,30 +7,30 @@ import {
|
|
|
7
7
|
restorePhoneApprovals,
|
|
8
8
|
setAsidePhoneApprovalsOfOtherCalls,
|
|
9
9
|
takePhoneApproval
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TAP2MUPA.js";
|
|
11
11
|
import {
|
|
12
12
|
claudeSettingsLocationFor,
|
|
13
13
|
readClaudePermissionRules
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-G4PVFXAT.js";
|
|
15
15
|
import {
|
|
16
16
|
defersToNativeMode
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GHPBR545.js";
|
|
18
18
|
import {
|
|
19
19
|
reportMachineDenial
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SVU7OCV4.js";
|
|
21
21
|
import {
|
|
22
22
|
isGatingMoment,
|
|
23
23
|
recordKeylessMoment
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QX2WZ6NB.js";
|
|
25
25
|
import {
|
|
26
26
|
isAdmitted,
|
|
27
27
|
readAdmissionRules
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-O6UNU4NB.js";
|
|
29
29
|
import {
|
|
30
30
|
activeHookSource,
|
|
31
31
|
activeIdentity,
|
|
32
32
|
namedSource
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-QXSMS7IR.js";
|
|
34
34
|
import {
|
|
35
35
|
DEFAULT_SESSION,
|
|
36
36
|
allow,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
storedWaitDeadline,
|
|
73
73
|
sweepFilesOlderThan,
|
|
74
74
|
userScope
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-3G4HNQA6.js";
|
|
76
76
|
import {
|
|
77
77
|
UNNAMED_ACTION,
|
|
78
78
|
deriveAction,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
patchDeletesFiles,
|
|
84
84
|
permissionDeniedAction,
|
|
85
85
|
scopePathFor
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-TXVWUYJC.js";
|
|
87
87
|
import {
|
|
88
88
|
askUser,
|
|
89
89
|
cancelQuestion,
|
|
@@ -97,30 +97,30 @@ import {
|
|
|
97
97
|
sendNotification,
|
|
98
98
|
waitForQuestion,
|
|
99
99
|
withdrawQuestion
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-RBM5PLKI.js";
|
|
101
101
|
import {
|
|
102
102
|
branchFor,
|
|
103
103
|
projectNameFor,
|
|
104
104
|
repoKeyFor,
|
|
105
105
|
repositoryScopeFor
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-5Z63DAD6.js";
|
|
107
107
|
import {
|
|
108
108
|
getMachineId
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-RCMMMQSJ.js";
|
|
110
110
|
import {
|
|
111
111
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-IPBJJCEC.js";
|
|
113
113
|
import {
|
|
114
114
|
getApiKey,
|
|
115
115
|
getBaseUrl,
|
|
116
116
|
isMalformedApiKeyError
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-3JYLC2WN.js";
|
|
118
118
|
import {
|
|
119
119
|
writeFileAtomic
|
|
120
120
|
} from "./chunk-PM2NRK6Y.js";
|
|
121
121
|
import {
|
|
122
122
|
NPX_LATEST_COMMAND
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-AMV2AVTB.js";
|
|
124
124
|
import {
|
|
125
125
|
AGENT_QUESTION_STRATEGY,
|
|
126
126
|
AGENT_QUESTION_TOOL,
|
|
@@ -176,6 +176,9 @@ import {
|
|
|
176
176
|
isRecord,
|
|
177
177
|
matchedRouteOf,
|
|
178
178
|
mcpCallCouldBeHeldForSomeoneElse,
|
|
179
|
+
mcpSendRuleHoldsTheCall,
|
|
180
|
+
mcpSendRuleMayHoldTheCall,
|
|
181
|
+
mcpToolSendsSomethingOut,
|
|
179
182
|
missedAnswerHandBack,
|
|
180
183
|
namedRouteWaitsForSomeoneElse,
|
|
181
184
|
parseAgentQuestions,
|
|
@@ -189,7 +192,7 @@ import {
|
|
|
189
192
|
terminalStaysLiveForTheCall,
|
|
190
193
|
timeoutActionWithoutLocalPrompt,
|
|
191
194
|
unapprovedScopeReason
|
|
192
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-WQDX276X.js";
|
|
193
196
|
|
|
194
197
|
// src/terminal-answer-watch.ts
|
|
195
198
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -773,15 +776,22 @@ var remindedOfApprovedRetry = (input) => {
|
|
|
773
776
|
return true;
|
|
774
777
|
};
|
|
775
778
|
var isMcpCallInClaudeCode = (input) => ACTIVE_SOURCE === "claude" && input.tool_name.startsWith(MCP_TOOL_PREFIX);
|
|
776
|
-
var
|
|
777
|
-
if (!mcpCallCouldBeHeldForSomeoneElse(input.tool_name, input.permission_mode)) return false;
|
|
778
|
-
let apiKey;
|
|
779
|
+
var cachedPolicyForAnMcpHold = () => {
|
|
779
780
|
try {
|
|
780
|
-
|
|
781
|
+
return readCachedPolicy(getApiKey(), ACTIVE_AGENT.type, true);
|
|
781
782
|
} catch {
|
|
782
|
-
return
|
|
783
|
+
return null;
|
|
783
784
|
}
|
|
784
|
-
|
|
785
|
+
};
|
|
786
|
+
var mcpCallMayBeHeldByItsSendRule = (input) => {
|
|
787
|
+
if (shouldDeferToNativeMode(input.permission_mode, input.tool_name) || !mcpToolSendsSomethingOut(input.tool_name)) return false;
|
|
788
|
+
const config = cachedPolicyForAnMcpHold();
|
|
789
|
+
return config !== null && mcpSendRuleMayHoldTheCall(config, input.tool_name);
|
|
790
|
+
};
|
|
791
|
+
var mcpSendRuleHoldsTheCallInClaudeCode = (input, verdict) => isMcpCallInClaudeCode(input) && !shouldDeferToNativeMode(input.permission_mode, input.tool_name) && mcpSendRuleHoldsTheCall(verdict);
|
|
792
|
+
var mcpCallWaitsForSomeoneElse = (input) => {
|
|
793
|
+
if (!mcpCallCouldBeHeldForSomeoneElse(input.tool_name, input.permission_mode)) return false;
|
|
794
|
+
const config = cachedPolicyForAnMcpHold();
|
|
785
795
|
return config !== null && namedRouteWaitsForSomeoneElse({
|
|
786
796
|
config,
|
|
787
797
|
toolName: input.tool_name,
|
|
@@ -794,8 +804,8 @@ var reportHookFailure = async (code, error) => {
|
|
|
794
804
|
console.error(`[Pushary] ${code}: could not complete the approval check; keeping the agent's existing fallback.`);
|
|
795
805
|
await reportClientError({ kind: clientErrorKindOf(error), code });
|
|
796
806
|
};
|
|
797
|
-
var rememberHandbackToThePrompt = (input,
|
|
798
|
-
if (
|
|
807
|
+
var rememberHandbackToThePrompt = (input, heldForMcp, result) => {
|
|
808
|
+
if (heldForMcp && result?.hookSpecificOutput?.permissionDecision === "ask") recordMcpHoldHandback(blockedActionFingerprintFor(input));
|
|
799
809
|
return result;
|
|
800
810
|
};
|
|
801
811
|
var isRefusalsOnlyCallInClaudeCode = (input) => ACTIVE_SOURCE === "claude" && isClaudeRefusalsOnlyTool(input.tool_name);
|
|
@@ -839,7 +849,7 @@ var decidePreToolUse = async (input, canonical) => {
|
|
|
839
849
|
const phoneApprovalSource = phoneApprovalSourceOf(input);
|
|
840
850
|
if (isPusharyOwnTool(input.tool_name)) return settledAs("mcp_tool", void 0);
|
|
841
851
|
if (canonical !== null && isNeverAskedToolInThisAgent(input)) return standingRefusalOf(input, canonical);
|
|
842
|
-
if (isRefusalsOnlyCallInClaudeCode(input) && !mcpCallWaitsForSomeoneElse(input)) {
|
|
852
|
+
if (isRefusalsOnlyCallInClaudeCode(input) && !mcpCallWaitsForSomeoneElse(input) && !mcpCallMayBeHeldByItsSendRule(input)) {
|
|
843
853
|
return isPusharyConnectorTool(input.tool_name) ? settledAs("mcp_tool", void 0) : standingRefusalOf(input);
|
|
844
854
|
}
|
|
845
855
|
let apiKey;
|
|
@@ -874,7 +884,8 @@ var decidePreToolUse = async (input, canonical) => {
|
|
|
874
884
|
return settledAs("asked", await handleExitPlanMode(apiKey, input));
|
|
875
885
|
}
|
|
876
886
|
const heldForMcpRoute = approvalRouteHoldsMcpCall(gateInput, verdict, input.permission_mode);
|
|
877
|
-
|
|
887
|
+
const heldForMcp = heldForMcpRoute || mcpSendRuleHoldsTheCallInClaudeCode(input, verdict);
|
|
888
|
+
if (isMcpCallInClaudeCode(input) && !heldForMcp) return settledAs("mcp_tool", void 0);
|
|
878
889
|
if (await claimedBlockedActionRetry(apiKey, input)) return settledAs("asked", allow(BLOCKED_ACTION_ALLOW_REASON));
|
|
879
890
|
if (remindedOfApprovedRetry(input)) return settledAs("denied", deny(BLOCKED_ACTION_CHANGED_RETRY_REASON));
|
|
880
891
|
if (!(verdict.kind === "gate" && verdict.scopeReason) && !approvalRouteOutranksAutoMode(gateInput, verdict, input.permission_mode) && !heldForMcpRoute && shouldDeferToNativeMode(input.permission_mode, input.tool_name)) {
|
|
@@ -897,7 +908,7 @@ var decidePreToolUse = async (input, canonical) => {
|
|
|
897
908
|
const decided = await dispatchModeDecision(apiKey, input, "PreToolUse", verdict.policy, getMachineId(), modeState.trainingConsent, verdict.scopeReason, verdict.scopePath, void 0, permissionsOffAskReason(gateInput, verdict), matchedRouteOf(gateInput));
|
|
898
909
|
const phoneSaidYes = phoneApprovalSource !== null && isPhoneApproval(decided);
|
|
899
910
|
if (phoneSaidYes) rememberPhoneApproval(phoneApprovalSource, input);
|
|
900
|
-
return settledByThePhone(outcomeOfDispatch(decided), rememberHandbackToThePrompt(input,
|
|
911
|
+
return settledByThePhone(outcomeOfDispatch(decided), rememberHandbackToThePrompt(input, heldForMcp, decided.result), phoneSaidYes);
|
|
901
912
|
}
|
|
902
913
|
}
|
|
903
914
|
} catch (error) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callDecisionStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3G4HNQA6.js";
|
|
4
4
|
import {
|
|
5
5
|
claudePromptMayFollowPreToolUseAllow,
|
|
6
6
|
promptedCallIdentityText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TXVWUYJC.js";
|
|
8
8
|
|
|
9
9
|
// src/phone-approval.ts
|
|
10
10
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MKHTIXOB.js";
|
|
13
13
|
import {
|
|
14
14
|
CODEX_APP_LAUNCH_AT_LOGIN_VERB,
|
|
15
15
|
CODEX_APP_LAUNCH_VARIABLE,
|
|
@@ -20,20 +20,20 @@ import {
|
|
|
20
20
|
} from "./chunk-QCGNGEGE.js";
|
|
21
21
|
import {
|
|
22
22
|
parseConfigDocument
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WT2XF4CO.js";
|
|
24
24
|
import {
|
|
25
25
|
xml
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RBIDBSHI.js";
|
|
27
27
|
import {
|
|
28
28
|
codexHomeFrom
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-IPBJJCEC.js";
|
|
30
30
|
import {
|
|
31
31
|
readRegularTextFile,
|
|
32
32
|
writeFileAtomic
|
|
33
33
|
} from "./chunk-PM2NRK6Y.js";
|
|
34
34
|
import {
|
|
35
35
|
isRecord
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-WQDX276X.js";
|
|
37
37
|
|
|
38
38
|
// src/codex-app-cards-switch.ts
|
|
39
39
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
@@ -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-VZKJU6TX.js";
|
|
10
10
|
|
|
11
11
|
// src/opencode-runtime-bundle.ts
|
|
12
12
|
var openCodeRuntimeSource = `import { spawn } from 'child_process';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectNameFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5Z63DAD6.js";
|
|
4
4
|
import {
|
|
5
5
|
readConfigFileKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OCQ6Y7NI.js";
|
|
7
7
|
|
|
8
8
|
// src/bell/fleet.ts
|
|
9
9
|
import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IPBJJCEC.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-CXQWDQCJ.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WQDX276X.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XWWBOTJX.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZEPZMXJH.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FTWC3YL5.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RFZXAPIN.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OCQ6Y7NI.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3JYLC2WN.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-WQDX276X.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|