pushary 1.9.260 → 1.9.261
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 +4 -0
- package/dist/{api-IT47BCBQ.js → api-LAG3VCHN.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 +36 -36
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +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-doctor.js +48 -48
- 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 +31 -31
- 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 +59 -59
- 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 +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-GFDMYQGZ.js → chunk-2VTIVLLK.js} +3 -3
- package/dist/{chunk-7BJQM5GI.js → chunk-3DW5OCS2.js} +1 -1
- package/dist/{chunk-JWBRJTPT.js → chunk-3PAM7BQJ.js} +5 -5
- package/dist/{chunk-R5AX37KI.js → chunk-4ARB3SYI.js} +1 -1
- package/dist/{chunk-6JTLZZ32.js → chunk-4SKEGBFV.js} +3 -3
- package/dist/{chunk-XYSD5VPQ.js → chunk-53LLER7E.js} +1 -1
- package/dist/{chunk-DDRT2WJA.js → chunk-5AL5W2HQ.js} +3 -3
- package/dist/{chunk-BJ3PEW5V.js → chunk-5G55TWT5.js} +5 -5
- package/dist/{chunk-2MRIJ7TX.js → chunk-5UHGILNO.js} +1 -1
- package/dist/{chunk-LO6EAFRS.js → chunk-65MRCZGE.js} +5 -5
- package/dist/{chunk-277GOA5S.js → chunk-6LJVKWV7.js} +5 -5
- package/dist/{chunk-KQVVDMUD.js → chunk-6RD6RNJY.js} +4 -4
- package/dist/{chunk-XGF3JB3R.js → chunk-AKGNLKZP.js} +2 -2
- package/dist/{chunk-PFGQS4QA.js → chunk-ATHP6SIZ.js} +2 -2
- package/dist/{chunk-63R6OZXQ.js → chunk-B4MK2ZX2.js} +3 -3
- package/dist/{chunk-CTG3F2D5.js → chunk-BBE7UITT.js} +6 -6
- package/dist/{chunk-S5GQCO2I.js → chunk-BLSGQHGW.js} +3 -3
- package/dist/{chunk-IJUHRBKA.js → chunk-CHKSE6TO.js} +1 -1
- package/dist/{chunk-DLJ4ZGPG.js → chunk-DN7PXEXE.js} +6 -6
- package/dist/{chunk-ZO65DKXG.js → chunk-EYQZC5IV.js} +2 -2
- package/dist/{chunk-6CI7KSDE.js → chunk-FJMZDIKP.js} +2 -2
- package/dist/{chunk-WAT7A5DW.js → chunk-FUXTIM33.js} +5 -5
- package/dist/{chunk-HUMF6AIT.js → chunk-GAKYGHUR.js} +1 -1
- package/dist/{chunk-E7XXDMHV.js → chunk-GAO33I7L.js} +4 -4
- package/dist/{chunk-QHF3SYTV.js → chunk-GC75Q5P2.js} +5 -5
- package/dist/chunk-GETSAD5F.js +129 -0
- package/dist/{chunk-EZI67YOT.js → chunk-GIK5P25V.js} +5 -5
- package/dist/{chunk-HUK6GLBG.js → chunk-GQHIUZRG.js} +12 -12
- package/dist/{chunk-5J5JO5UQ.js → chunk-H4O3CV5W.js} +4 -4
- package/dist/{chunk-C3EE5L6V.js → chunk-H6FDFP6W.js} +83 -28
- package/dist/{chunk-U7VDCUWD.js → chunk-HAOO2MNV.js} +10 -10
- package/dist/{chunk-CXSLZIBE.js → chunk-HJOXLNYN.js} +3 -3
- package/dist/{chunk-LDXGL2QH.js → chunk-I2DSQVSB.js} +1 -1
- package/dist/{chunk-ITRSDEVH.js → chunk-IC6ARAAT.js} +5 -5
- package/dist/{chunk-B3MTDMWH.js → chunk-IXXH6ZDQ.js} +2 -2
- package/dist/{chunk-3N2FP6BB.js → chunk-JC2E7D2W.js} +1 -1
- package/dist/{chunk-6FEJR64W.js → chunk-JOABO2PX.js} +5 -5
- package/dist/{chunk-HITBECZ4.js → chunk-K4PJXC32.js} +1 -1
- package/dist/{chunk-2D5MYSTO.js → chunk-KMADAVW6.js} +1 -1
- package/dist/{chunk-AWRQHXQK.js → chunk-KUVXFNHY.js} +10 -10
- package/dist/{chunk-7B27SJIZ.js → chunk-L6IKTYMZ.js} +6 -6
- package/dist/{chunk-2WLNEOT7.js → chunk-LH7NQSUC.js} +1 -1
- package/dist/{chunk-LG47IOFN.js → chunk-LIZZSMUD.js} +8 -8
- package/dist/{chunk-X27JRAYF.js → chunk-LRF4XS6M.js} +3 -3
- package/dist/{chunk-DC32YKE2.js → chunk-MGGN37IW.js} +3 -2
- package/dist/{chunk-JHBGO2PF.js → chunk-N2IP7IDG.js} +1 -1
- package/dist/{chunk-S3R4CZT3.js → chunk-NBEFOUMK.js} +3 -3
- package/dist/{chunk-QYQMIAYH.js → chunk-NKSOSZZU.js} +2 -2
- package/dist/{chunk-I7TBQ7S5.js → chunk-NLG5BY2M.js} +1 -1
- package/dist/{chunk-JBXHNML3.js → chunk-NTTHRLDQ.js} +1 -1
- package/dist/{chunk-JHPL4VBE.js → chunk-NVYEQLD5.js} +2 -2
- package/dist/{chunk-DRCBTY5T.js → chunk-PX2MOPB2.js} +1 -1
- package/dist/{chunk-GNY6Z2U2.js → chunk-Q3JHO3EJ.js} +1 -1
- package/dist/{chunk-OOWMON6B.js → chunk-QAS67ZJH.js} +1 -1
- package/dist/{chunk-V3YAXCQU.js → chunk-QQ4U4NST.js} +7 -7
- package/dist/{chunk-SBY4JFPZ.js → chunk-QRPHWWHI.js} +2 -2
- package/dist/{chunk-MR3JQ3LS.js → chunk-QWIWACGD.js} +1 -1
- package/dist/{chunk-BX2A6VVT.js → chunk-RSV25NAF.js} +1 -1
- package/dist/{chunk-64KRDJ46.js → chunk-RXGEWDA2.js} +38 -26
- package/dist/{chunk-SFXNXZA5.js → chunk-SFZWZHZB.js} +2 -2
- package/dist/{chunk-W6FZOPF4.js → chunk-SO5DEUCS.js} +7 -7
- package/dist/{chunk-ATGFCOLG.js → chunk-SSW4SERP.js} +1 -1
- package/dist/{chunk-2G3DG3NV.js → chunk-T6ZGTBHT.js} +4 -4
- package/dist/{chunk-PGP4AQ6G.js → chunk-TDYAVCJ3.js} +4 -4
- package/dist/{chunk-GIHIYB3Q.js → chunk-TMJRKWWK.js} +5 -5
- package/dist/{chunk-YAUW3PBG.js → chunk-TUBI75B7.js} +1 -1
- package/dist/{chunk-DTSWVMTP.js → chunk-TW6BQOPH.js} +6 -6
- package/dist/{chunk-6WBHZHZS.js → chunk-TX3IJUL7.js} +6 -6
- package/dist/{chunk-HD3ECNDC.js → chunk-VVDJCJ3P.js} +2 -2
- package/dist/{chunk-DP3AS752.js → chunk-VWJ5KDMM.js} +4 -4
- package/dist/{chunk-QXI7SYVB.js → chunk-WCSSU6QW.js} +4 -4
- package/dist/{chunk-Z43TNC27.js → chunk-WFE4RAWD.js} +1 -1
- package/dist/{chunk-3VYL4GCX.js → chunk-WUZM74HI.js} +4 -4
- package/dist/{chunk-HQ6RWSWN.js → chunk-X7BHVGGH.js} +1 -1
- package/dist/{chunk-RLTFMU3B.js → chunk-YBVDF4NV.js} +4 -4
- package/dist/{chunk-Y2OJGMJX.js → chunk-YHA5L6D3.js} +3 -3
- package/dist/{chunk-ELXKZ6XS.js → chunk-YHHQICQD.js} +3 -3
- package/dist/{chunk-DLCLDR6K.js → chunk-YINXG75Q.js} +4 -4
- package/dist/{chunk-4EGBDV3T.js → chunk-ZGPUVZZ6.js} +2 -2
- package/dist/{chunk-3W5AT2Y4.js → chunk-ZNDLGXKO.js} +6 -6
- package/dist/{chunk-6EE4F4PG.js → chunk-ZSJDCRBA.js} +1 -1
- package/dist/{chunk-FUNDDXWK.js → chunk-ZVIF4O6V.js} +2 -2
- package/dist/{codex-app-cards-switch-WVE7EY3Q.js → codex-app-cards-switch-325EWQUA.js} +12 -12
- package/dist/{codex-card-routing-TW5PGTDQ.js → codex-card-routing-NXI4P7PB.js} +2 -2
- package/dist/{codex-desktop-launch-HCWAIOUD.js → codex-desktop-launch-3OAHHDWE.js} +3 -3
- package/dist/{codex-session-launch-QE7ET6HE.js → codex-session-launch-YB4LGTG2.js} +20 -20
- package/dist/{config-G3A5OUOA.js → config-4FJ7KK75.js} +3 -3
- package/dist/{global-upgrade-RMVGM26D.js → global-upgrade-E4UKP2KG.js} +9 -9
- package/dist/{identity-5YOIBGSM.js → identity-VQNJSXZO.js} +4 -4
- package/dist/{live-capabilities-DXRASGGQ.js → live-capabilities-YJW4CU7J.js} +4 -4
- package/dist/{paths-JZZB2B5C.js → paths-FOJGTYX4.js} +3 -3
- package/dist/reapply-Q2MIQ4A7.js +76 -0
- package/dist/src/index.js +34 -34
- package/dist/{upgrade-lock-RPTYWUWT.js → upgrade-lock-MGX4PJQZ.js} +4 -4
- package/dist/{usage-LFHZHCB5.js → usage-24DU5SWS.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-KQXWREMT.js +0 -69
- package/dist/reapply-55YYSVPF.js +0 -76
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KMADAVW6.js";
|
|
4
4
|
import {
|
|
5
5
|
parseFlags
|
|
6
6
|
} from "./chunk-BZIBNSQE.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3DW5OCS2.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-MGGN37IW.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
claudeConfigDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZGPUVZZ6.js";
|
|
4
4
|
import {
|
|
5
5
|
claudePermissionRulesFromSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MGGN37IW.js";
|
|
7
7
|
|
|
8
8
|
// src/claude-permission-rules.ts
|
|
9
9
|
import { readFileSync, statSync } from "fs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZGPUVZZ6.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe
|
|
6
6
|
} from "./chunk-PM2NRK6Y.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MGGN37IW.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ATHP6SIZ.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZVIF4O6V.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PX2MOPB2.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HJOXLNYN.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BLSGQHGW.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-AKGNLKZP.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-MGGN37IW.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZGPUVZZ6.js";
|
|
4
4
|
import {
|
|
5
5
|
readRegularJsonFile,
|
|
6
6
|
writeFileAtomic
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
serializeDeclinedAgents,
|
|
14
14
|
withDeclinedAgent,
|
|
15
15
|
withoutDeclinedAgent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MGGN37IW.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
verifyAnchoredRecipients,
|
|
12
12
|
wrapSessionKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2VTIVLLK.js";
|
|
14
14
|
|
|
15
15
|
// src/live-session.ts
|
|
16
16
|
var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
|
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
forgetEveryPhoneApproval,
|
|
3
3
|
forgetPhoneApproval,
|
|
4
|
-
|
|
4
|
+
markStepSettledWithoutAYes,
|
|
5
5
|
phoneApprovalSourceFor,
|
|
6
6
|
rememberPhoneApproval,
|
|
7
|
+
restorePhoneApprovals,
|
|
8
|
+
setAsidePhoneApprovalsOfOtherCalls,
|
|
7
9
|
takePhoneApproval
|
|
8
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GETSAD5F.js";
|
|
9
11
|
import {
|
|
10
12
|
claudeSettingsLocationFor,
|
|
11
13
|
readClaudePermissionRules
|
|
12
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NKSOSZZU.js";
|
|
13
15
|
import {
|
|
14
16
|
defersToNativeMode
|
|
15
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5UHGILNO.js";
|
|
16
18
|
import {
|
|
17
19
|
reportMachineDenial
|
|
18
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WCSSU6QW.js";
|
|
19
21
|
import {
|
|
20
22
|
isGatingMoment,
|
|
21
23
|
recordKeylessMoment
|
|
22
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-X7BHVGGH.js";
|
|
23
25
|
import {
|
|
24
26
|
isAdmitted,
|
|
25
27
|
readAdmissionRules
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-TMJRKWWK.js";
|
|
27
29
|
import {
|
|
28
30
|
activeHookSource,
|
|
29
31
|
activeIdentity,
|
|
30
32
|
namedSource
|
|
31
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-DN7PXEXE.js";
|
|
32
34
|
import {
|
|
33
35
|
DEFAULT_SESSION,
|
|
34
36
|
allow,
|
|
@@ -70,7 +72,7 @@ import {
|
|
|
70
72
|
storedWaitDeadline,
|
|
71
73
|
sweepFilesOlderThan,
|
|
72
74
|
userScope
|
|
73
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-H6FDFP6W.js";
|
|
74
76
|
import {
|
|
75
77
|
UNNAMED_ACTION,
|
|
76
78
|
deriveAction,
|
|
@@ -81,7 +83,7 @@ import {
|
|
|
81
83
|
patchDeletesFiles,
|
|
82
84
|
permissionDeniedAction,
|
|
83
85
|
scopePathFor
|
|
84
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-N2IP7IDG.js";
|
|
85
87
|
import {
|
|
86
88
|
askUser,
|
|
87
89
|
cancelQuestion,
|
|
@@ -95,30 +97,30 @@ import {
|
|
|
95
97
|
sendNotification,
|
|
96
98
|
waitForQuestion,
|
|
97
99
|
withdrawQuestion
|
|
98
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-TX3IJUL7.js";
|
|
99
101
|
import {
|
|
100
102
|
branchFor,
|
|
101
103
|
projectNameFor,
|
|
102
104
|
repoKeyFor,
|
|
103
105
|
repositoryScopeFor
|
|
104
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-I2DSQVSB.js";
|
|
105
107
|
import {
|
|
106
108
|
getMachineId
|
|
107
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-LH7NQSUC.js";
|
|
108
110
|
import {
|
|
109
111
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
110
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-ZGPUVZZ6.js";
|
|
111
113
|
import {
|
|
112
114
|
getApiKey,
|
|
113
115
|
getBaseUrl,
|
|
114
116
|
isMalformedApiKeyError
|
|
115
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-AKGNLKZP.js";
|
|
116
118
|
import {
|
|
117
119
|
writeFileAtomic
|
|
118
120
|
} from "./chunk-PM2NRK6Y.js";
|
|
119
121
|
import {
|
|
120
122
|
NPX_LATEST_COMMAND
|
|
121
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-3DW5OCS2.js";
|
|
122
124
|
import {
|
|
123
125
|
AGENT_QUESTION_STRATEGY,
|
|
124
126
|
AGENT_QUESTION_TOOL,
|
|
@@ -187,7 +189,7 @@ import {
|
|
|
187
189
|
terminalStaysLiveForTheCall,
|
|
188
190
|
timeoutActionWithoutLocalPrompt,
|
|
189
191
|
unapprovedScopeReason
|
|
190
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-MGGN37IW.js";
|
|
191
193
|
|
|
192
194
|
// src/terminal-answer-watch.ts
|
|
193
195
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -362,9 +364,12 @@ var ACTIVE_PROFILE = ACTIVE_SOURCE === null ? void 0 : hookCompatibleProfileBySo
|
|
|
362
364
|
var PUSHARY_IS_SOLE_GATE = ACTIVE_PROFILE?.soleGate != null;
|
|
363
365
|
var PROMPT_FOLLOWS_EVERY_PRETOOLUSE_ALLOW = ACTIVE_PROFILE?.promptFollowsPreToolUseAllow === true;
|
|
364
366
|
var phoneApprovalSourceOf = (input) => phoneApprovalSourceFor(ACTIVE_SOURCE, ACTIVE_PROFILE, input.permission_mode);
|
|
365
|
-
var
|
|
367
|
+
var takeThePhoneYesFor = (input) => {
|
|
366
368
|
const source = phoneApprovalSourceOf(input);
|
|
367
|
-
|
|
369
|
+
if (source === null) return void 0;
|
|
370
|
+
const approvedCall = takePhoneApproval(source, input);
|
|
371
|
+
if (approvedCall === void 0) markStepSettledWithoutAYes(source, input);
|
|
372
|
+
return approvedCall;
|
|
368
373
|
};
|
|
369
374
|
var agentNameIn = (projectName) => `${ACTIVE_AGENT.label} - ${projectName}`;
|
|
370
375
|
var allowWithInput = (updatedInput) => claudePreToolUseOutput("allow", void 0, updatedInput);
|
|
@@ -832,7 +837,6 @@ var standingRefusalOf = async (input, canonical) => {
|
|
|
832
837
|
};
|
|
833
838
|
var decidePreToolUse = async (input, canonical) => {
|
|
834
839
|
const phoneApprovalSource = phoneApprovalSourceOf(input);
|
|
835
|
-
if (phoneApprovalSource) forgetPhoneApproval(phoneApprovalSource, input);
|
|
836
840
|
if (isPusharyOwnTool(input.tool_name)) return settledAs("mcp_tool", void 0);
|
|
837
841
|
if (canonical !== null && isNeverAskedToolInThisAgent(input)) return standingRefusalOf(input, canonical);
|
|
838
842
|
if (isRefusalsOnlyCallInClaudeCode(input) && !mcpCallWaitsForSomeoneElse(input)) {
|
|
@@ -901,13 +905,22 @@ var decidePreToolUse = async (input, canonical) => {
|
|
|
901
905
|
return settledAs("undecided", undecidedCall(SOLE_GATE_UNDECIDED_REASON));
|
|
902
906
|
}
|
|
903
907
|
};
|
|
904
|
-
var
|
|
908
|
+
var forgetOwnYesAndSetAsideOthers = (input) => {
|
|
905
909
|
const source = phoneApprovalSourceOf(input);
|
|
906
|
-
if (source
|
|
910
|
+
if (source === null) return null;
|
|
911
|
+
forgetPhoneApproval(source, input);
|
|
912
|
+
return setAsidePhoneApprovalsOfOtherCalls(source, input);
|
|
913
|
+
};
|
|
914
|
+
var restoreOthersIfThePhoneSaidYesElseForgetEvery = (input, decision, setAside) => {
|
|
915
|
+
const source = phoneApprovalSourceOf(input);
|
|
916
|
+
if (source === null) return;
|
|
917
|
+
if (!decision.phoneSaidYes) forgetEveryPhoneApproval(source, input);
|
|
918
|
+
else if (setAside !== null) restorePhoneApprovals(setAside);
|
|
907
919
|
};
|
|
908
920
|
var handlePreToolUse = async (input, canonical) => {
|
|
921
|
+
const setAside = forgetOwnYesAndSetAsideOthers(input);
|
|
909
922
|
const decision = await decidePreToolUse(input, canonical);
|
|
910
|
-
|
|
923
|
+
restoreOthersIfThePhoneSaidYesElseForgetEvery(input, decision, setAside);
|
|
911
924
|
rememberGateOutcome(input, decision.outcome);
|
|
912
925
|
return decision.output;
|
|
913
926
|
};
|
|
@@ -996,7 +1009,8 @@ var handlePermissionRequest = async (input, canonical, holdBudgetSeconds) => {
|
|
|
996
1009
|
const claudeRules = claudePermissionRulesFor(input);
|
|
997
1010
|
const callFacts = terminalLiveFactsOf(input);
|
|
998
1011
|
const questionBesideTheDialog = claudeQuestionAskedInBothPlaces(callFacts);
|
|
999
|
-
|
|
1012
|
+
const approvedCall = takeThePhoneYesFor(input);
|
|
1013
|
+
if (canonical === void 0 && !claudeRulesMayCover(input, claudeRules) && isPermissionRequestOwnedByPreToolUse(ACTIVE_SOURCE, input.tool_name, input.permission_mode, shouldDeferToNativeMode) && !terminalStaysLiveForTheCall(callFacts) && !questionBesideTheDialog && approvedCall === void 0) return void 0;
|
|
1000
1014
|
let apiKey;
|
|
1001
1015
|
try {
|
|
1002
1016
|
apiKey = getApiKey();
|
|
@@ -1022,8 +1036,6 @@ var handlePermissionRequest = async (input, canonical, holdBudgetSeconds) => {
|
|
|
1022
1036
|
if (agentQuestionStrategy(ACTIVE_SOURCE, "PermissionRequest", input.tool_name) === AGENT_QUESTION_STRATEGY.native) return void 0;
|
|
1023
1037
|
if (isApprovedOnlyAtPermissionRequest(ACTIVE_SOURCE, input.tool_name)) return await answerThePlanBesideTheDialog(apiKey, input);
|
|
1024
1038
|
if (verdict.kind === "gate" && verdict.scopeReason && (canonical?.toolInputs.length ?? 0) > 1) return permReqDeny(SCOPE_BATCH_REASON);
|
|
1025
|
-
const phoneApprovalSource = phoneApprovalSourceOf(input);
|
|
1026
|
-
const approvedCall = phoneApprovalSource ? takePhoneApproval(phoneApprovalSource, input) : void 0;
|
|
1027
1039
|
const preToolUseAllowLeftThePrompt = approvedCall !== void 0 || PROMPT_FOLLOWS_EVERY_PRETOOLUSE_ALLOW && verdict.kind === "allow";
|
|
1028
1040
|
const handedOff = preToolUseHandsOff(input, gateInput, verdict);
|
|
1029
1041
|
const terminalLive = terminalStaysLiveForTheCall(callFacts);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZGPUVZZ6.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GAO33I7L.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
openCodePluginArgv,
|
|
4
4
|
openCodePluginModule,
|
|
5
5
|
renderOpenCodePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SSW4SERP.js";
|
|
7
7
|
import {
|
|
8
8
|
OPENCODE_FAILED_EVENT,
|
|
9
9
|
OPENCODE_IDLE_EVENT,
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
OPENCODE_PLUGIN_SIBLING,
|
|
13
13
|
OPENCODE_PLUGIN_SIBLING_CONTENTS,
|
|
14
14
|
OPENCODE_SUBAGENT_IDLE_EVENT
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CHKSE6TO.js";
|
|
16
16
|
import {
|
|
17
17
|
compatibleConfigFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DN7PXEXE.js";
|
|
19
19
|
import {
|
|
20
20
|
hookOwnerOf,
|
|
21
21
|
hookOwnerOfCommands
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-T6ZGTBHT.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_CHOICES
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KMADAVW6.js";
|
|
26
26
|
import {
|
|
27
27
|
OPENCODE_INSTRUCTIONS_LABEL,
|
|
28
28
|
bridgeStub,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
resolveBridgeStub,
|
|
37
37
|
vscodePluginDir,
|
|
38
38
|
windowsNodeLauncherFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-ZGPUVZZ6.js";
|
|
40
40
|
import {
|
|
41
41
|
readJsonSafe
|
|
42
42
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
OPENCODE_APPROVAL_EVENT,
|
|
47
47
|
hookCompatibleProfile,
|
|
48
48
|
isRecord
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-MGGN37IW.js";
|
|
50
50
|
|
|
51
51
|
// src/opencode-config.ts
|
|
52
52
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
@@ -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-CHKSE6TO.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
|
AGENT_CHOICES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KMADAVW6.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NLG5BY2M.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-ZGPUVZZ6.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-MGGN37IW.js";
|
|
26
26
|
|
|
27
27
|
// src/gemini-config.ts
|
|
28
28
|
var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CODEX_HOOK_STATUS,
|
|
3
3
|
HERMES_HISTORY_HELPER_COMMAND
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YHA5L6D3.js";
|
|
5
5
|
import {
|
|
6
6
|
HERMES_ALWAYS_ALLOWED_SHELL_RULE,
|
|
7
7
|
HERMES_COMMAND_ALLOWLIST_KEY,
|
|
8
8
|
HERMES_GATE_TOOLS_KEY,
|
|
9
9
|
HERMES_SHELL_TOOL
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YBVDF4NV.js";
|
|
11
11
|
import {
|
|
12
12
|
retryAgentCommand
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4SKEGBFV.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3DW5OCS2.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/codex-trust.ts
|
|
19
19
|
var CODEX_TRUST_TELEMETRY = {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5AL5W2HQ.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KUVXFNHY.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DN7PXEXE.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TX3IJUL7.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MGGN37IW.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"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computerOsOfPlatform,
|
|
3
3
|
isComputerAgent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MGGN37IW.js";
|
|
5
5
|
|
|
6
6
|
// src/setup/phone-check.ts
|
|
7
7
|
var NO_AGENT_CONNECTED_LINE = "Skipping the phone step: no agent was connected, so nothing could ask you anything on your phone yet.";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BBE7UITT.js";
|
|
18
18
|
import {
|
|
19
19
|
describeRevokeAttempt,
|
|
20
20
|
keyNoLongerAccepted,
|
|
@@ -29,20 +29,20 @@ import {
|
|
|
29
29
|
isCI,
|
|
30
30
|
terminalColumns,
|
|
31
31
|
useColor
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-PX2MOPB2.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-HJOXLNYN.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-VVDJCJ3P.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-3DW5OCS2.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MGGN37IW.js";
|
|
46
46
|
|
|
47
47
|
// src/onboarding.ts
|
|
48
48
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3PAM7BQJ.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JC2E7D2W.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YHHQICQD.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZGPUVZZ6.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-AKGNLKZP.js";
|
|
26
26
|
import {
|
|
27
27
|
ASK_AGENT_NAME_MAX,
|
|
28
28
|
CLIENT_REPORT_PATH,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
isRecord,
|
|
41
41
|
truncateLine,
|
|
42
42
|
waitEndAnswered
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-MGGN37IW.js";
|
|
44
44
|
|
|
45
45
|
// src/api.ts
|
|
46
46
|
import { randomUUID } from "crypto";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SO5DEUCS.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BLSGQHGW.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZGPUVZZ6.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
12
|
} from "./chunk-PM2NRK6Y.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MGGN37IW.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;
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
claimThrottle,
|
|
5
5
|
releaseThrottle,
|
|
6
6
|
reportEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-H6FDFP6W.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveToolTarget,
|
|
10
10
|
permissionDeniedAction
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-N2IP7IDG.js";
|
|
12
12
|
import {
|
|
13
13
|
projectNameFor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-I2DSQVSB.js";
|
|
15
15
|
import {
|
|
16
16
|
PERMISSION_ALLOWED_EVENT,
|
|
17
17
|
PERMISSION_DENIED_EVENT,
|
|
18
18
|
machineApprovalFor,
|
|
19
19
|
machineDecisionFor,
|
|
20
20
|
wireVerdictFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MGGN37IW.js";
|
|
22
22
|
|
|
23
23
|
// src/machine-decision-audit.ts
|
|
24
24
|
var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
|