pushary 1.9.186 → 1.9.192
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 +43 -0
- package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
- package/data/cursor-plugin/CHANGELOG.md +4 -0
- package/data/cursor-plugin/scripts/pushary-gate.mjs +34 -6
- package/data/openclaw-plugin/README.md +2 -2
- package/data/openclaw-plugin/dist/protected-writes.js +3 -2
- package/data/openclaw-plugin/package.json +1 -1
- package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
- package/data/vscode-plugin/CHANGELOG.md +4 -0
- package/data/vscode-plugin/scripts/pushary-gate.mjs +34 -6
- package/dist/{api-JW7AA573.js → api-XPS2NPJH.js} +13 -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 +27 -27
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +91 -64
- 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-display-hook.js +8 -0
- package/dist/bin/pushary-doctor.js +75 -53
- 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 +22 -22
- package/dist/bin/pushary-logout.js +30 -30
- 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 +61 -24
- package/dist/bin/pushary-opencode-hook.js +45 -40
- package/dist/bin/pushary-permission-denied-hook.js +36 -36
- package/dist/bin/pushary-permission-hook.js +36 -36
- 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 +14 -14
- package/dist/bin/pushary-setup.js +55 -55
- 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 +25 -25
- package/dist/bin/pushary-upgrade.js +44 -44
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-P5EVSOB6.js → chunk-23WKGMTI.js} +4 -2
- package/dist/{chunk-6TVDGTWR.js → chunk-2HOKEC2I.js} +2 -2
- package/dist/{chunk-FVQASC2C.js → chunk-3APYAOZF.js} +3 -3
- package/dist/{chunk-EMGKV2QC.js → chunk-3ULFLONL.js} +1 -1
- package/dist/{chunk-G6V3D64U.js → chunk-4FVKGWWZ.js} +2 -2
- package/dist/{chunk-W522XWAT.js → chunk-4TIZJD3Q.js} +5 -5
- package/dist/{chunk-KKUUJQ7D.js → chunk-5IPXL33D.js} +1 -1
- package/dist/{chunk-DGG75PIW.js → chunk-5QP7DVQF.js} +1 -1
- package/dist/{chunk-R3ECFKO3.js → chunk-5WC6N3HA.js} +5 -5
- package/dist/{chunk-IPVW4IUW.js → chunk-5WT6DLL2.js} +5 -5
- package/dist/{chunk-26LAHVWI.js → chunk-6C7DT36Z.js} +18 -18
- package/dist/{chunk-CEWERXV4.js → chunk-6CJSVFAD.js} +2 -2
- package/dist/{chunk-K4WBFMAT.js → chunk-6EZY7IXB.js} +1 -1
- package/dist/{chunk-LRLAIP75.js → chunk-6TNKY3DC.js} +2 -2
- package/dist/{chunk-SQA3ZPM4.js → chunk-7K5AYNDY.js} +5 -5
- package/dist/chunk-7QUPTDT2.js +92 -0
- package/dist/{chunk-JKF5I32P.js → chunk-A4QFVUEY.js} +2 -2
- package/dist/{chunk-SRCQFOVZ.js → chunk-AD7R7TNQ.js} +4 -4
- package/dist/{chunk-OY5W64TR.js → chunk-AQLIBG2P.js} +1 -1
- package/dist/{chunk-4WJDKZEJ.js → chunk-C2B4LPJU.js} +2 -2
- package/dist/{chunk-CBE5G6UP.js → chunk-CDEJHIYQ.js} +4 -4
- package/dist/{chunk-DUZ6V74X.js → chunk-CDXD6W4N.js} +1 -1
- package/dist/{chunk-STWKEQRM.js → chunk-DAHGMBRE.js} +3 -3
- package/dist/{chunk-CL7QR6FW.js → chunk-DHD54IIT.js} +7 -7
- package/dist/{chunk-RS7CW5W7.js → chunk-DP6YHOKF.js} +2 -2
- package/dist/{chunk-EQGQPDCH.js → chunk-DQI4647T.js} +4 -4
- package/dist/{chunk-NZTPGQT7.js → chunk-E65O7RMA.js} +4 -4
- package/dist/{chunk-I7GUIT7E.js → chunk-EBIPQ3ZE.js} +20 -4
- package/dist/{chunk-GP377Y34.js → chunk-EJ56NJQ4.js} +7 -7
- package/dist/{chunk-NITOSXEV.js → chunk-EJJBM4OB.js} +1 -1
- package/dist/{chunk-6PBNSFQG.js → chunk-EPNYDS4H.js} +1 -1
- package/dist/{chunk-ZIEZJXQY.js → chunk-ETT24EIH.js} +3 -3
- package/dist/{chunk-H6NPQ336.js → chunk-F326QJEJ.js} +8 -8
- package/dist/{chunk-S67UAFW2.js → chunk-FY7WHRDJ.js} +3 -3
- package/dist/{chunk-6WLQ7WOD.js → chunk-FZWUUGC2.js} +4 -4
- package/dist/{chunk-GL4EIL5Q.js → chunk-GAAPUS5J.js} +1 -1
- package/dist/{chunk-YXKQXKGV.js → chunk-GGKGVCUN.js} +6 -5
- package/dist/{chunk-DDNFI2GA.js → chunk-GR46QR45.js} +6 -6
- package/dist/{chunk-5SN2IITE.js → chunk-GUBY4KIU.js} +8 -6
- package/dist/{chunk-H4ZHVSKE.js → chunk-GUZLBFER.js} +5 -5
- package/dist/{chunk-ZXAWHBFW.js → chunk-H6CBRJKT.js} +7 -6
- package/dist/{chunk-X55NVFKJ.js → chunk-HMMVGDL3.js} +11 -4
- package/dist/{chunk-LWWUA5DF.js → chunk-ITPAUHJ4.js} +1 -1
- package/dist/{chunk-ECBECMRW.js → chunk-IYOA3NWO.js} +1 -1
- package/dist/{chunk-7Z2N3SVV.js → chunk-JJBM5FYH.js} +2 -2
- package/dist/{chunk-MSUOS64O.js → chunk-JXZQ4XFL.js} +2 -2
- package/dist/{chunk-2DNN7O7B.js → chunk-KERLAXHG.js} +3 -3
- package/dist/{chunk-G2IFBGTY.js → chunk-LWUDOZHE.js} +4 -4
- package/dist/{chunk-RNN2XAF7.js → chunk-NCN7ANYA.js} +6 -6
- package/dist/{chunk-O67OY3RA.js → chunk-NFK2QF74.js} +5 -5
- package/dist/{chunk-ZK4E2VID.js → chunk-O7ZCWGYA.js} +2 -2
- package/dist/{chunk-A4CQJZ3K.js → chunk-OTJEIINV.js} +10 -8
- package/dist/{chunk-GXR3JSXP.js → chunk-OYZUPSD7.js} +6 -6
- package/dist/{chunk-AWYR3KPA.js → chunk-P4JYK7WB.js} +3 -3
- package/dist/{chunk-EEFNFZNQ.js → chunk-P6NACIBR.js} +4 -4
- package/dist/{chunk-V25PSICC.js → chunk-PUVD22DY.js} +12 -12
- package/dist/{chunk-HFDBV3ZJ.js → chunk-R2NYUOTC.js} +9 -9
- package/dist/{chunk-5FDIOHNH.js → chunk-RNPEOAPC.js} +2 -2
- package/dist/{chunk-NGDDNKOV.js → chunk-SHAHZQTQ.js} +4 -4
- package/dist/{chunk-KTKM7HS5.js → chunk-T4GV5MOC.js} +3 -3
- package/dist/{chunk-BLLDCO5A.js → chunk-TP47JHGJ.js} +1 -1
- package/dist/{chunk-4CPKJI4N.js → chunk-UF6RZBTL.js} +3 -3
- package/dist/{chunk-N5YRPYPC.js → chunk-URVW3D2J.js} +11 -11
- package/dist/{chunk-NDHS2ULF.js → chunk-UV5ROHY2.js} +1 -1
- package/dist/{chunk-W2WM5IXQ.js → chunk-UVNH4UGJ.js} +1 -1
- package/dist/{chunk-OBTUMS5L.js → chunk-UXQVXB7Q.js} +1 -1
- package/dist/{chunk-STJYAFMW.js → chunk-VDJMYP54.js} +3 -3
- package/dist/{chunk-TXVRUVBB.js → chunk-VEE2MRUN.js} +1 -1
- package/dist/{chunk-7OQZ5GL7.js → chunk-VH5DPURH.js} +1 -1
- package/dist/{chunk-XL2PSZIU.js → chunk-VNCN3Z4T.js} +2 -2
- package/dist/{chunk-7KLNBFFD.js → chunk-WB5DD232.js} +3 -3
- package/dist/{chunk-63HIRFYV.js → chunk-WNCTMTMG.js} +1 -1
- package/dist/{chunk-OLED2XSM.js → chunk-X4ENTDFT.js} +2 -2
- package/dist/{chunk-Q4FXPTPH.js → chunk-X7FIYMHC.js} +2 -2
- package/dist/{chunk-EBSFVPHH.js → chunk-XMNETXQ4.js} +6 -6
- package/dist/{chunk-NK3V3E6P.js → chunk-XONHTLMX.js} +10 -10
- package/dist/{chunk-5JRRWACR.js → chunk-XSJON4TV.js} +1 -1
- package/dist/{chunk-3MKRWTLZ.js → chunk-Y2H5TF7T.js} +1 -1
- package/dist/{chunk-WMXQFOTJ.js → chunk-YLZRG4U5.js} +1 -1
- package/dist/{chunk-ERI4ISGN.js → chunk-YMULPOSH.js} +5 -5
- package/dist/{chunk-PZBVUHRD.js → chunk-ZCR5VTOC.js} +5 -5
- package/dist/{codex-app-cards-switch-J4QYBE4B.js → codex-app-cards-switch-UEN23QFT.js} +11 -11
- package/dist/{codex-card-routing-TLQSULL6.js → codex-card-routing-CJZT26VA.js} +2 -2
- package/dist/{codex-desktop-launch-QS7RJIWL.js → codex-desktop-launch-DKOOCOTD.js} +1 -1
- package/dist/{codex-session-launch-IOALOU37.js → codex-session-launch-UHNV5Z3D.js} +20 -20
- package/dist/{config-WHD32JOQ.js → config-EVDZ6OAI.js} +3 -3
- package/dist/{global-upgrade-SILVY22G.js → global-upgrade-KZQWNABB.js} +9 -9
- package/dist/{identity-ZFMKTDMM.js → identity-A2BK7P2A.js} +4 -4
- package/dist/{live-capabilities-A5NUXYA3.js → live-capabilities-43YRGYAR.js} +4 -4
- package/dist/{paths-2Q5EPYCM.js → paths-67D2435E.js} +3 -3
- package/dist/reapply-APVASEGC.js +70 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.js +35 -35
- package/dist/{upgrade-lock-YNBGIRDF.js → upgrade-lock-TG4UOPN7.js} +4 -4
- package/dist/{usage-K74RCKF7.js → usage-FVDJIMCB.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-ZVGPDR37.js +0 -62
- package/dist/reapply-TXX2GU6T.js +0 -70
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
expectedLaunchCapabilities,
|
|
4
4
|
hasSpawnProvider,
|
|
5
5
|
resolveControlPolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UF6RZBTL.js";
|
|
7
7
|
import {
|
|
8
8
|
daemonHasRemoteProof,
|
|
9
9
|
daemonServiceManagerAvailable,
|
|
10
10
|
hasDaemonServiceDefinition,
|
|
11
11
|
readDaemonNeedsLogin,
|
|
12
12
|
readDaemonStatus
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OYZUPSD7.js";
|
|
14
14
|
import {
|
|
15
15
|
getMachineId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XSJON4TV.js";
|
|
17
17
|
import {
|
|
18
18
|
readControlMode,
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FY7WHRDJ.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-Y2H5TF7T.js";
|
|
24
24
|
import {
|
|
25
25
|
getPackageVersion
|
|
26
26
|
} from "./chunk-UQTQ6HPO.js";
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
settingSnapshot,
|
|
19
19
|
writeHermesSetting,
|
|
20
20
|
writeSetupReceipt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CDEJHIYQ.js";
|
|
22
22
|
import {
|
|
23
23
|
OPENCLAW_MIN_VERSION,
|
|
24
24
|
OPENCLAW_PLUGIN_ID,
|
|
25
25
|
OPENCLAW_PLUGIN_PACKAGE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KERLAXHG.js";
|
|
27
27
|
import {
|
|
28
28
|
retryAgentCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-P4JYK7WB.js";
|
|
30
30
|
import {
|
|
31
31
|
configFilePath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-Y2H5TF7T.js";
|
|
33
33
|
import {
|
|
34
34
|
readJsonSafe,
|
|
35
35
|
writeJsonAtomic
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
readSetupOutcomeProperties,
|
|
39
39
|
redactSecretsFromContent
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-HMMVGDL3.js";
|
|
41
41
|
|
|
42
42
|
// src/hermes/shell-gate.ts
|
|
43
43
|
var readHermesShellGate = async (launcher) => {
|
|
@@ -2,39 +2,39 @@ import {
|
|
|
2
2
|
forgetPhoneApproval,
|
|
3
3
|
rememberPhoneApproval,
|
|
4
4
|
takePhoneApproval
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JXZQ4XFL.js";
|
|
6
6
|
import {
|
|
7
7
|
claudeSettingsLocationFor,
|
|
8
8
|
readClaudePermissionRules
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VNCN3Z4T.js";
|
|
10
10
|
import {
|
|
11
11
|
defersToNativeMode
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UXQVXB7Q.js";
|
|
13
13
|
import {
|
|
14
14
|
askAgentQuestions,
|
|
15
15
|
outcomeOfFailedAsk,
|
|
16
16
|
storedWaitDeadline
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GUBY4KIU.js";
|
|
18
18
|
import {
|
|
19
19
|
reportMachineDenial
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7QUPTDT2.js";
|
|
21
21
|
import {
|
|
22
22
|
isGatingMoment,
|
|
23
23
|
recordKeylessMoment
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-IYOA3NWO.js";
|
|
25
25
|
import {
|
|
26
26
|
isAdmitted,
|
|
27
27
|
readAdmissionRules
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-7K5AYNDY.js";
|
|
29
29
|
import {
|
|
30
30
|
isDeferAnswer,
|
|
31
31
|
oncePerSession
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UV5ROHY2.js";
|
|
33
33
|
import {
|
|
34
34
|
activeHookSource,
|
|
35
35
|
activeIdentity,
|
|
36
36
|
namedSource
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ZCR5VTOC.js";
|
|
38
38
|
import {
|
|
39
39
|
DEFAULT_SESSION,
|
|
40
40
|
approvalAwaitingRetry,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
settleQuestionsForToolUse,
|
|
58
58
|
sweepFilesOlderThan,
|
|
59
59
|
userScope
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-PUVD22DY.js";
|
|
61
61
|
import {
|
|
62
62
|
UNNAMED_ACTION,
|
|
63
63
|
deriveAction,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
patchDeletesFiles,
|
|
69
69
|
permissionDeniedAction,
|
|
70
70
|
scopePathFor
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-3ULFLONL.js";
|
|
72
72
|
import {
|
|
73
73
|
askUser,
|
|
74
74
|
cancelQuestion,
|
|
@@ -85,29 +85,29 @@ import {
|
|
|
85
85
|
waitForQuestion,
|
|
86
86
|
waitsForThePhone,
|
|
87
87
|
withdrawQuestion
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-OTJEIINV.js";
|
|
89
89
|
import {
|
|
90
90
|
branchFor,
|
|
91
91
|
projectNameFor,
|
|
92
92
|
repoKeyFor,
|
|
93
93
|
repositoryScopeFor
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-VH5DPURH.js";
|
|
95
95
|
import {
|
|
96
96
|
getMachineId
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-XSJON4TV.js";
|
|
98
98
|
import {
|
|
99
99
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-2HOKEC2I.js";
|
|
101
101
|
import {
|
|
102
102
|
getApiKey,
|
|
103
103
|
getBaseUrl
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-Y2H5TF7T.js";
|
|
105
105
|
import {
|
|
106
106
|
writeFileAtomic
|
|
107
107
|
} from "./chunk-PM2NRK6Y.js";
|
|
108
108
|
import {
|
|
109
109
|
NPX_LATEST_COMMAND
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-GAAPUS5J.js";
|
|
111
111
|
import {
|
|
112
112
|
AGENT_QUESTION_STRATEGY,
|
|
113
113
|
AGENT_QUESTION_TOOL,
|
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
timeoutActionWithoutLocalPrompt,
|
|
182
182
|
unansweredRefusalReason,
|
|
183
183
|
unapprovedScopeReason
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-HMMVGDL3.js";
|
|
185
185
|
|
|
186
186
|
// src/terminal-answer-watch.ts
|
|
187
187
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3APYAOZF.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HMMVGDL3.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
codexHome,
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2HOKEC2I.js";
|
|
11
11
|
import {
|
|
12
12
|
resolvePathBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EBIPQ3ZE.js";
|
|
14
14
|
import {
|
|
15
15
|
getPackageVersion
|
|
16
16
|
} from "./chunk-UQTQ6HPO.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LWUDOZHE.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XONHTLMX.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZCR5VTOC.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OTJEIINV.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HMMVGDL3.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"];
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AUTO_DECISION_WINDOW_MS,
|
|
3
|
+
DEFAULT_SESSION,
|
|
4
|
+
claimThrottle,
|
|
5
|
+
releaseThrottle,
|
|
6
|
+
reportEvent
|
|
7
|
+
} from "./chunk-PUVD22DY.js";
|
|
8
|
+
import {
|
|
9
|
+
deriveToolTarget,
|
|
10
|
+
permissionDeniedAction
|
|
11
|
+
} from "./chunk-3ULFLONL.js";
|
|
12
|
+
import {
|
|
13
|
+
projectNameFor
|
|
14
|
+
} from "./chunk-VH5DPURH.js";
|
|
15
|
+
import {
|
|
16
|
+
PERMISSION_ALLOWED_EVENT,
|
|
17
|
+
PERMISSION_DENIED_EVENT,
|
|
18
|
+
machineApprovalFor,
|
|
19
|
+
machineDecisionFor,
|
|
20
|
+
wireVerdictFor
|
|
21
|
+
} from "./chunk-HMMVGDL3.js";
|
|
22
|
+
|
|
23
|
+
// src/machine-decision-audit.ts
|
|
24
|
+
var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
|
|
25
|
+
var machineDecisionReportTimeoutMs = (deadlineMs, nowMs) => Math.min(MACHINE_DECISION_REPORT_TIMEOUT_MS, deadlineMs - nowMs);
|
|
26
|
+
var DEFAULT_RULE_COVERED_RUN_DEPS = { reportEvent, now: Date.now };
|
|
27
|
+
var deliverMachineDecision = async (input, agent, report, send) => {
|
|
28
|
+
const response = await send({
|
|
29
|
+
event: report.event,
|
|
30
|
+
occurredAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
31
|
+
toolUseId: input.tool_use_id,
|
|
32
|
+
agentType: agent.type,
|
|
33
|
+
agentName: `${agent.label} - ${projectNameFor(input.cwd)}`,
|
|
34
|
+
...report.action === void 0 ? {} : { action: report.action },
|
|
35
|
+
sessionId: input.session_id,
|
|
36
|
+
decisionSource: "policy_auto",
|
|
37
|
+
decisionOrigin: report.decision.origin,
|
|
38
|
+
decisionOutcome: report.decision.outcome,
|
|
39
|
+
toolName: input.tool_name,
|
|
40
|
+
toolTarget: report.toolTarget
|
|
41
|
+
}, { maxAttempts: 1, timeoutMs: report.timeoutMs, requireOk: true, skipDrain: true });
|
|
42
|
+
if (response?.ok !== true) throw new Error("Audit delivery was not acknowledged");
|
|
43
|
+
};
|
|
44
|
+
var reportMachineDenial = async (input, verdict, agent) => {
|
|
45
|
+
const decision = machineDecisionFor(wireVerdictFor(verdict, 0));
|
|
46
|
+
if (!decision) return;
|
|
47
|
+
const sessionKey = input.session_id || DEFAULT_SESSION;
|
|
48
|
+
const toolTarget = deriveToolTarget(input.tool_name, input.tool_input);
|
|
49
|
+
const throttleKey = `machinedecision:${agent.type}:${sessionKey}:${input.tool_name}:${decision.origin}:${toolTarget ?? ""}`;
|
|
50
|
+
const throttle = claimThrottle(throttleKey, AUTO_DECISION_WINDOW_MS);
|
|
51
|
+
if (throttle === "throttled") return;
|
|
52
|
+
if (throttle === "unavailable") {
|
|
53
|
+
console.error("[Pushary] Could not access the audit throttle; reporting this denial without deduplication.");
|
|
54
|
+
}
|
|
55
|
+
try {
|
|
56
|
+
await deliverMachineDecision(input, agent, {
|
|
57
|
+
event: PERMISSION_DENIED_EVENT,
|
|
58
|
+
action: permissionDeniedAction(input.tool_name),
|
|
59
|
+
decision,
|
|
60
|
+
toolTarget,
|
|
61
|
+
timeoutMs: MACHINE_DECISION_REPORT_TIMEOUT_MS
|
|
62
|
+
}, reportEvent);
|
|
63
|
+
} catch {
|
|
64
|
+
console.error("[Pushary] Could not record the machine denial. The action remains blocked; its audit delivery will be retried on the next matching denial.");
|
|
65
|
+
if (throttle === "passed") {
|
|
66
|
+
try {
|
|
67
|
+
releaseThrottle(throttleKey);
|
|
68
|
+
} catch {
|
|
69
|
+
console.error("[Pushary] Could not reset the failed audit throttle.");
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var reportRuleCoveredRun = async (input, verdict, agent, deadlineMs, deps = DEFAULT_RULE_COVERED_RUN_DEPS) => {
|
|
75
|
+
const timeoutMs = machineDecisionReportTimeoutMs(deadlineMs, deps.now());
|
|
76
|
+
if (timeoutMs <= 0) return;
|
|
77
|
+
try {
|
|
78
|
+
await deliverMachineDecision(input, agent, {
|
|
79
|
+
event: PERMISSION_ALLOWED_EVENT,
|
|
80
|
+
decision: machineApprovalFor(verdict.source),
|
|
81
|
+
toolTarget: deriveToolTarget(input.tool_name, input.tool_input),
|
|
82
|
+
timeoutMs
|
|
83
|
+
}, deps.reportEvent);
|
|
84
|
+
} catch {
|
|
85
|
+
console.error("[Pushary] Could not record that your rule let this call run. The call still runs.");
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export {
|
|
90
|
+
reportMachineDenial,
|
|
91
|
+
reportRuleCoveredRun
|
|
92
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2HOKEC2I.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EBIPQ3ZE.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GR46QR45.js";
|
|
4
4
|
import {
|
|
5
5
|
matchMacAccountStep,
|
|
6
6
|
retryAgentCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P4JYK7WB.js";
|
|
8
8
|
import {
|
|
9
9
|
canChangeApprovalSettings
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6CJSVFAD.js";
|
|
11
11
|
import {
|
|
12
12
|
EXIT
|
|
13
13
|
} from "./chunk-BG4HHB7E.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND,
|
|
16
16
|
npmExecSetupCommandFor
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GAAPUS5J.js";
|
|
18
18
|
import {
|
|
19
19
|
LATEST_DIST_TAG
|
|
20
20
|
} from "./chunk-UQTQ6HPO.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FY7WHRDJ.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GAAPUS5J.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
uninstallOpenClawPlugin,
|
|
14
14
|
unsetOpenClawEntry,
|
|
15
15
|
writeOpenClawEntry
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KERLAXHG.js";
|
|
17
17
|
import {
|
|
18
18
|
needsShell
|
|
19
19
|
} from "./chunk-VRNGMRJA.js";
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
openClawDirectoriesToLookIn,
|
|
26
26
|
openClawPluginFolder,
|
|
27
27
|
openClawSetupReceiptDirectory
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2HOKEC2I.js";
|
|
29
29
|
import {
|
|
30
30
|
resolvePathBinary
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-EBIPQ3ZE.js";
|
|
32
32
|
import {
|
|
33
33
|
readJsonSafe,
|
|
34
34
|
writeJsonAtomic
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./chunk-UQTQ6HPO.js";
|
|
40
40
|
import {
|
|
41
41
|
isRecord
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-HMMVGDL3.js";
|
|
43
43
|
|
|
44
44
|
// src/hermes/plugin-payload.ts
|
|
45
45
|
import { createHash } from "crypto";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSseMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H6CBRJKT.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VEE2MRUN.js";
|
|
7
7
|
import {
|
|
8
8
|
NPX_LATEST_COMMAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GAAPUS5J.js";
|
|
10
10
|
|
|
11
11
|
// src/mcp-stdio-bridge.ts
|
|
12
12
|
var MCP_BRIDGE_BINARY = "pushary-mcp";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
openCodePluginArgv,
|
|
4
4
|
openCodePluginModule,
|
|
5
5
|
renderOpenCodePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4TIZJD3Q.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-WNCTMTMG.js";
|
|
16
16
|
import {
|
|
17
17
|
compatibleConfigFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZCR5VTOC.js";
|
|
19
19
|
import {
|
|
20
20
|
hookOwnerOf,
|
|
21
21
|
hookOwnerOfCommands
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DQI4647T.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_CHOICES
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-EJJBM4OB.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-2HOKEC2I.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-HMMVGDL3.js";
|
|
50
50
|
|
|
51
51
|
// src/opencode-config.ts
|
|
52
52
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_CHOICES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EJJBM4OB.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ITPAUHJ4.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-2HOKEC2I.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-HMMVGDL3.js";
|
|
26
26
|
|
|
27
27
|
// src/gemini-config.ts
|
|
28
28
|
var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZCR5VTOC.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DQI4647T.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2HOKEC2I.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HMMVGDL3.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-UQTQ6HPO.js";
|
|
16
16
|
import {
|
|
17
17
|
redactSecretsFromContent
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HMMVGDL3.js";
|
|
19
19
|
|
|
20
20
|
// src/shell-quote.ts
|
|
21
21
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -397,6 +397,20 @@ var fetchLatestPublishedVersion = async (request) => {
|
|
|
397
397
|
return void 0;
|
|
398
398
|
}
|
|
399
399
|
};
|
|
400
|
+
var NpmBudgetSpentError = class extends Error {
|
|
401
|
+
constructor() {
|
|
402
|
+
super("npm took longer than this command allows");
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
var remainingTimeoutMs = (requested, remainingMs) => typeof requested === "number" && requested > 0 ? Math.min(requested, remainingMs) : remainingMs;
|
|
406
|
+
var npmRunnerWithin = (budgetMs, runNpm = execNpm, now = Date.now) => {
|
|
407
|
+
const deadline = now() + budgetMs;
|
|
408
|
+
return (args, options) => {
|
|
409
|
+
const remainingMs = deadline - now();
|
|
410
|
+
if (remainingMs <= 0) throw new NpmBudgetSpentError();
|
|
411
|
+
return runNpm(args, { ...options, timeout: remainingTimeoutMs(options.timeout, remainingMs) });
|
|
412
|
+
};
|
|
413
|
+
};
|
|
400
414
|
var POSIX_SHELL_WORD = /^[\w@%+=:,./-]+$/;
|
|
401
415
|
var quoteForPosixShell = (value) => POSIX_SHELL_WORD.test(value) ? value : `'${value.replaceAll("'", `'\\''`)}'`;
|
|
402
416
|
var prefixFlagOf = (request) => request.prefix === void 0 ? "" : ` --prefix ${quoteForPosixShell(request.prefix)}`;
|
|
@@ -502,9 +516,9 @@ var installGlobally = (options) => {
|
|
|
502
516
|
}
|
|
503
517
|
const started = (async () => {
|
|
504
518
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
505
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
506
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
507
|
-
const { autoUpdateLock } = await import("./paths-
|
|
519
|
+
const { withUpgradeLock } = await import("./global-upgrade-KZQWNABB.js");
|
|
520
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-TG4UOPN7.js");
|
|
521
|
+
const { autoUpdateLock } = await import("./paths-67D2435E.js");
|
|
508
522
|
let result = "skipped";
|
|
509
523
|
const install = async () => {
|
|
510
524
|
const platform = process.platform;
|
|
@@ -585,8 +599,10 @@ export {
|
|
|
585
599
|
resolveGlobalBinDir,
|
|
586
600
|
quoteIfNeeded,
|
|
587
601
|
fetchLatestPublishedVersion,
|
|
602
|
+
npmRunnerWithin,
|
|
588
603
|
installPackageGlobally,
|
|
589
604
|
throwIfNpmRefusesInstall,
|
|
605
|
+
chosenRelease,
|
|
590
606
|
newestReleaseNpmAllows,
|
|
591
607
|
describeReleaseNpmHolds,
|
|
592
608
|
plannedGlobalPackage,
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C2B4LPJU.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6CJSVFAD.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5QP7DVQF.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3APYAOZF.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FY7WHRDJ.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-Y2H5TF7T.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-HMMVGDL3.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|