@pushary/agent-hooks 1.9.149 → 1.9.150
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 +7 -0
- package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
- package/data/cursor-plugin/CHANGELOG.md +7 -0
- package/data/cursor-plugin/scripts/redaction.mjs +6 -1
- package/data/openclaw-plugin/dist/redaction.js +6 -1
- package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
- package/data/vscode-plugin/CHANGELOG.md +9 -0
- package/data/vscode-plugin/scripts/redaction.mjs +6 -1
- package/dist/{api-H7H75ARS.js → api-GHPLREAU.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +10 -10
- package/dist/bin/pushary-claude.js +27 -27
- package/dist/bin/pushary-clean.js +36 -36
- 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 +32 -32
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +44 -44
- package/dist/bin/pushary-disconnect.js +28 -28
- package/dist/bin/pushary-display-hook.js +33 -21
- package/dist/bin/pushary-doctor.js +44 -44
- package/dist/bin/pushary-elicitation-hook.js +28 -28
- package/dist/bin/pushary-gemini-bridge.js +17 -17
- package/dist/bin/pushary-gemini-hook.js +32 -32
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +21 -21
- package/dist/bin/pushary-logout.js +27 -27
- 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-hook.js +31 -31
- package/dist/bin/pushary-permission-denied-hook.js +35 -35
- 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 +37 -37
- package/dist/bin/pushary-setup.js +54 -53
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +33 -33
- 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 +17 -17
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +42 -42
- package/dist/bin/pushary-wait.js +15 -15
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-D3QT4S7U.js → chunk-3MXI37MS.js} +4 -4
- package/dist/{chunk-FQLS37AX.js → chunk-3TUSMGHE.js} +1 -1
- package/dist/{chunk-5IG3VPHT.js → chunk-3XIHKIDX.js} +4 -4
- package/dist/{chunk-4L2IYNLC.js → chunk-46IYOPZH.js} +1 -1
- package/dist/{chunk-NLED3JGR.js → chunk-4UDGVO6A.js} +1 -1
- package/dist/{chunk-F6ESGEWU.js → chunk-4ZH2PXDA.js} +1 -1
- package/dist/{chunk-JSZ6LKX5.js → chunk-53URUFUJ.js} +13 -12
- package/dist/{chunk-3AAQJ75F.js → chunk-53Y4QQNF.js} +5 -5
- package/dist/{chunk-RYDDLS62.js → chunk-5D57GAKF.js} +3 -3
- package/dist/{chunk-RMBY7JGO.js → chunk-5TMW2X5I.js} +1 -1
- package/dist/{chunk-X4OEGFOG.js → chunk-6RMBTFDF.js} +3 -3
- package/dist/{chunk-T3CMGGNW.js → chunk-7357Q746.js} +1 -1
- package/dist/{chunk-UJUGFLVF.js → chunk-7FPKT5QJ.js} +5 -5
- package/dist/{chunk-KXNAB76Z.js → chunk-7L6IP3JA.js} +2 -2
- package/dist/{chunk-3OPXQK4D.js → chunk-7XFEV7ML.js} +5 -5
- package/dist/{chunk-3WD3BEPB.js → chunk-A3EV4C34.js} +2 -2
- package/dist/{chunk-6HO36P3A.js → chunk-ACC4YXJS.js} +1 -1
- package/dist/{chunk-PH3MVQCQ.js → chunk-AIKQFV6C.js} +4 -4
- package/dist/{chunk-6YX3VB5P.js → chunk-AWC7MXLX.js} +6 -6
- package/dist/{chunk-WQJ5NJ35.js → chunk-AYFOZBTD.js} +1 -1
- package/dist/{chunk-ZIPPDZ5B.js → chunk-BAH4LZL3.js} +5 -5
- package/dist/{chunk-JUEQUYAT.js → chunk-BANZ4GGS.js} +2 -2
- package/dist/{chunk-KWJJYZ3T.js → chunk-BDF74W2U.js} +4 -4
- package/dist/{chunk-DHCJDYBT.js → chunk-BPSQLKTG.js} +6 -6
- package/dist/{chunk-RWTH5RYA.js → chunk-BRXPFM3U.js} +2 -2
- package/dist/{chunk-WQEJCDMR.js → chunk-C2JMTH45.js} +2 -2
- package/dist/{chunk-R2JRRCZK.js → chunk-CVQTLCVS.js} +1 -1
- package/dist/{chunk-M7HJZ7HO.js → chunk-DHP6SWVH.js} +3 -3
- package/dist/{chunk-QTQRQZIU.js → chunk-DQKT5KK5.js} +4 -4
- package/dist/{chunk-YWSIN7IH.js → chunk-DYUK6HYH.js} +1 -1
- package/dist/{chunk-ABTQG6XU.js → chunk-E5YEKJOM.js} +1 -1
- package/dist/{chunk-LC53HRZ6.js → chunk-E75OHUWM.js} +1 -1
- package/dist/{chunk-Q7GZKNMH.js → chunk-FHPLLUAZ.js} +1 -1
- package/dist/{chunk-HEOBF5H6.js → chunk-H4MHGLEB.js} +3 -3
- package/dist/{chunk-ZCB5SCYM.js → chunk-HQ3RFANL.js} +2 -2
- package/dist/{chunk-AQ7L2E2U.js → chunk-HY4GEW3T.js} +28 -21
- package/dist/{chunk-3T7RA7WJ.js → chunk-I3CN7BGN.js} +2 -2
- package/dist/{chunk-ENRL4WFD.js → chunk-I6DLNMUM.js} +4 -4
- package/dist/{chunk-NHZV2H63.js → chunk-ILEO4YWM.js} +1 -1
- package/dist/{chunk-A3URJPYH.js → chunk-IPRQFNPG.js} +1 -1
- package/dist/{chunk-UAHBSOO4.js → chunk-J6LZ4G5G.js} +2 -2
- package/dist/{chunk-ZOATPL53.js → chunk-JGYQ72A7.js} +4 -4
- package/dist/{chunk-QSZYHL7Z.js → chunk-JJKPQSEE.js} +2 -2
- package/dist/{chunk-O5ARO3JM.js → chunk-K3ORQ3KY.js} +13 -4
- package/dist/{chunk-CBIS7IYQ.js → chunk-KACTUGKV.js} +5 -5
- package/dist/{chunk-S3MEI2D2.js → chunk-KAZ37TWD.js} +5 -5
- package/dist/{chunk-2CVRVHUQ.js → chunk-LRK2F63A.js} +8 -8
- package/dist/{chunk-X4OQ5UMH.js → chunk-NP6QILOY.js} +5 -5
- package/dist/{chunk-6RYJ3XCD.js → chunk-NPNBR4FS.js} +5 -5
- package/dist/{chunk-T4PX3DRF.js → chunk-NQUE54GA.js} +1 -1
- package/dist/{chunk-CMTDMZPV.js → chunk-NRMMXX62.js} +2 -2
- package/dist/{chunk-XSBW6TUH.js → chunk-OBIUHAXG.js} +2 -2
- package/dist/{chunk-35IODIBL.js → chunk-ODYF7VZZ.js} +1 -1
- package/dist/{chunk-YTD7RV6F.js → chunk-OZD5FIFS.js} +3 -3
- package/dist/{chunk-XZGQZDFP.js → chunk-P3E26UO5.js} +6 -6
- package/dist/{chunk-CABBLJD5.js → chunk-P3RRAH6J.js} +3 -3
- package/dist/{chunk-43NHQUCY.js → chunk-P6GCPJDQ.js} +3 -3
- package/dist/{chunk-H6FFNTSR.js → chunk-PS3O6LS2.js} +6 -6
- package/dist/{chunk-BP5HLKR6.js → chunk-PYH3KFLI.js} +12 -12
- package/dist/{chunk-MT4GBXLM.js → chunk-R2VVMSGM.js} +5 -5
- package/dist/{chunk-NRPQUU3D.js → chunk-S263JK6K.js} +2 -2
- package/dist/{chunk-KP6ERYOA.js → chunk-TQXKJX7X.js} +8 -8
- package/dist/{chunk-CIRTRWHM.js → chunk-TR35RG7D.js} +4 -4
- package/dist/{chunk-ZX2O66NS.js → chunk-TRDJICC7.js} +3 -3
- package/dist/{chunk-26TXJ35O.js → chunk-USN3OOHD.js} +19 -18
- package/dist/{chunk-CDQOARIF.js → chunk-WQVRDVMJ.js} +3 -3
- package/dist/{chunk-CU5SYUMK.js → chunk-WY4CM6TO.js} +3 -3
- package/dist/{chunk-CAHULQIO.js → chunk-XJLCZ24Y.js} +1 -1
- package/dist/{chunk-5HAA7C4X.js → chunk-XU45NUAV.js} +10 -10
- package/dist/{chunk-TXXAQRX4.js → chunk-XWMVKK54.js} +1 -1
- package/dist/{chunk-MUTMXSQZ.js → chunk-YUYBMCKF.js} +3 -3
- package/dist/{chunk-2VPRLAKF.js → chunk-YYEYPA3S.js} +4 -4
- package/dist/{chunk-VPADWVYD.js → chunk-ZBZ7CRGD.js} +1 -1
- package/dist/{chunk-MUSINFEU.js → chunk-ZLHPTXWU.js} +5 -5
- package/dist/{chunk-PUTX5BBE.js → chunk-ZMEI3EG4.js} +3 -3
- package/dist/{chunk-PVBDITRS.js → chunk-ZSX4XN6C.js} +5 -5
- package/dist/{chunk-DLPI45DF.js → chunk-ZUN37EG2.js} +6 -6
- package/dist/{codex-app-cards-switch-BCM547E6.js → codex-app-cards-switch-U77ZM22P.js} +11 -11
- package/dist/{codex-card-routing-222EKZJR.js → codex-card-routing-3L4XXUCK.js} +2 -2
- package/dist/{codex-desktop-launch-6AFOLMZ7.js → codex-desktop-launch-KRLBST55.js} +1 -1
- package/dist/{codex-session-launch-73EQE6IL.js → codex-session-launch-6LMMSNLA.js} +20 -20
- package/dist/{config-GWNPGS47.js → config-5YEZFF26.js} +3 -3
- package/dist/{global-upgrade-VRF6OSSU.js → global-upgrade-EWBY6BD5.js} +9 -9
- package/dist/{identity-PQIM7R2N.js → identity-D3SYIS5Z.js} +4 -4
- package/dist/{live-capabilities-G3LMKZUB.js → live-capabilities-QUNHPUFR.js} +4 -4
- package/dist/{paths-TFGIP5PU.js → paths-VI5KNBOY.js} +3 -3
- package/dist/{reapply-3IRAI6JF.js → reapply-UKREFK55.js} +30 -30
- package/dist/src/index.js +34 -34
- package/dist/{upgrade-lock-2G7ANYYO.js → upgrade-lock-COPTGES4.js} +4 -4
- package/dist/{usage-K3EGYCSU.js → usage-4367CHW4.js} +3 -3
- package/package.json +1 -1
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C2JMTH45.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-J6LZ4G5G.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "./chunk-YM2T76UM.js";
|
|
@@ -14,19 +14,19 @@ import {
|
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-P3RRAH6J.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WY4CM6TO.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZBZ7CRGD.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-K3ORQ3KY.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
toolResultErrorText,
|
|
28
28
|
transcriptTokensIn,
|
|
29
29
|
transcriptUsageRequest
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-AYFOZBTD.js";
|
|
31
31
|
import {
|
|
32
32
|
branchFor,
|
|
33
33
|
repoKeyFor
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-3TUSMGHE.js";
|
|
35
35
|
import {
|
|
36
36
|
cancelQuestion,
|
|
37
37
|
clientErrorKindOf,
|
|
@@ -39,39 +39,39 @@ import {
|
|
|
39
39
|
reportClientError,
|
|
40
40
|
sendNotification,
|
|
41
41
|
waitForAnswer
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-BPSQLKTG.js";
|
|
43
43
|
import {
|
|
44
44
|
isRetryable,
|
|
45
45
|
withRetry
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ZLHPTXWU.js";
|
|
47
47
|
import {
|
|
48
48
|
RETRY_ACK,
|
|
49
49
|
readCommandAck,
|
|
50
50
|
refusedReceiptMessage
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-IPRQFNPG.js";
|
|
52
52
|
import {
|
|
53
53
|
fetchAsCredential
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-46IYOPZH.js";
|
|
55
55
|
import {
|
|
56
56
|
getMachineId
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-E5YEKJOM.js";
|
|
58
58
|
import {
|
|
59
59
|
reportedInstallSource
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-OBIUHAXG.js";
|
|
61
61
|
import {
|
|
62
62
|
IDLE_PROMPT_NOTIFICATION,
|
|
63
63
|
NOTIFICATION_PUSH_TYPES,
|
|
64
64
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
65
65
|
claudeConfigDir
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-HY4GEW3T.js";
|
|
67
67
|
import {
|
|
68
68
|
compareVersion,
|
|
69
69
|
parseVersion
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-P6GCPJDQ.js";
|
|
71
71
|
import {
|
|
72
72
|
getApiKey,
|
|
73
73
|
getBaseUrl
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-ZBZ7CRGD.js";
|
|
75
75
|
import {
|
|
76
76
|
writeFileAtomic,
|
|
77
77
|
writeJsonAtomicDurable
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
resolveAutoResolveOrigin,
|
|
101
101
|
resolvePolicy,
|
|
102
102
|
unansweredRefusalReason
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
104
104
|
|
|
105
105
|
// src/pending.ts
|
|
106
106
|
import { join } from "path";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3XIHKIDX.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-J6LZ4G5G.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-P3RRAH6J.js";
|
|
15
15
|
import {
|
|
16
16
|
findExportedKeyLines,
|
|
17
17
|
isAdoptedMacAppKey,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
readConfigFileKey,
|
|
22
22
|
readKeySource,
|
|
23
23
|
readMacAppKeyPrefix
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WY4CM6TO.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-CYTPQDQY.js";
|
|
4
4
|
import {
|
|
5
5
|
parseVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-P6GCPJDQ.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
10
10
|
|
|
11
11
|
// src/setup/agent-probe.ts
|
|
12
12
|
import { execSync } from "child_process";
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NRMMXX62.js";
|
|
4
4
|
import {
|
|
5
5
|
declinedAgentsFile,
|
|
6
6
|
readDeclinedAgents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BRXPFM3U.js";
|
|
8
8
|
import {
|
|
9
9
|
OPENCODE_HOOK_BINARY,
|
|
10
10
|
openCodeConfigDir,
|
|
11
11
|
openCodePluginArgv,
|
|
12
12
|
openCodePluginFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-53Y4QQNF.js";
|
|
14
14
|
import {
|
|
15
15
|
liveCursorGateCoverage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3MXI37MS.js";
|
|
17
17
|
import {
|
|
18
18
|
compatibleConfigFile,
|
|
19
19
|
compatibleHookEvents,
|
|
20
20
|
grokHome,
|
|
21
21
|
parseConfigDocument
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZSX4XN6C.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_HOOKS_KEY_PATH,
|
|
25
25
|
GEMINI_HOOK_BINARY,
|
|
26
26
|
GEMINI_HOOK_EVENTS,
|
|
27
27
|
hooksAt
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-DQKT5KK5.js";
|
|
29
29
|
import {
|
|
30
30
|
CODEX_EARLIER_APPROVAL_MATCHERS,
|
|
31
31
|
CODEX_HOOK_BINARY,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
parseHookArgv,
|
|
54
54
|
parseHookCommand,
|
|
55
55
|
supportedClaudeEvents
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-HY4GEW3T.js";
|
|
57
57
|
import {
|
|
58
58
|
readRegularJsonFile,
|
|
59
59
|
readRegularTextFile
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
OPENCODE_APPROVAL_EVENT,
|
|
68
68
|
isRecord,
|
|
69
69
|
matcherMatchesEveryCall
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
71
71
|
|
|
72
72
|
// src/hook-wiring.ts
|
|
73
73
|
import { createHash } from "crypto";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
uninstallOpenClawPlugin,
|
|
14
14
|
unsetOpenClawEntry,
|
|
15
15
|
writeOpenClawEntry
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5D57GAKF.js";
|
|
17
17
|
import {
|
|
18
18
|
needsShell
|
|
19
19
|
} from "./chunk-H6CL3T2S.js";
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
openClawDirectoriesToLookIn,
|
|
26
26
|
openClawPluginFolder,
|
|
27
27
|
openClawSetupReceiptDirectory
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HY4GEW3T.js";
|
|
29
29
|
import {
|
|
30
30
|
resolvePathBinary
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-P6GCPJDQ.js";
|
|
32
32
|
import {
|
|
33
33
|
readJsonSafe,
|
|
34
34
|
writeJsonAtomic
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./chunk-WIIMW5YO.js";
|
|
40
40
|
import {
|
|
41
41
|
isRecord
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
43
43
|
|
|
44
44
|
// src/hermes/plugin-payload.ts
|
|
45
45
|
import { createHash } from "crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-S263JK6K.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
6
|
} from "./chunk-CYTPQDQY.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolvePackageVersionFromBinary,
|
|
13
13
|
resolvePathBinary,
|
|
14
14
|
resolvePathBinaryAsync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-P6GCPJDQ.js";
|
|
16
16
|
import {
|
|
17
17
|
CLAUDE_BRIDGE_CAPABILITY,
|
|
18
18
|
CLAUDE_RESUME_CAPABILITY,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
MANAGED_PROVIDERS,
|
|
24
24
|
SPAWN_CAPABILITY,
|
|
25
25
|
sessionProvidersAdvertisedBy
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
27
27
|
|
|
28
28
|
// src/live-capabilities.ts
|
|
29
29
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -2,37 +2,37 @@ import {
|
|
|
2
2
|
forgetPhoneApproval,
|
|
3
3
|
rememberPhoneApproval,
|
|
4
4
|
takePhoneApproval
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JJKPQSEE.js";
|
|
6
6
|
import {
|
|
7
7
|
claudeSettingsLocationFor,
|
|
8
8
|
readClaudePermissionRules
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NRMMXX62.js";
|
|
10
10
|
import {
|
|
11
11
|
askAgentQuestions,
|
|
12
12
|
defersToNativeMode,
|
|
13
13
|
outcomeOfFailedAsk,
|
|
14
14
|
storedWaitDeadline
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7FPKT5QJ.js";
|
|
16
16
|
import {
|
|
17
17
|
reportMachineDenial
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6RMBTFDF.js";
|
|
19
19
|
import {
|
|
20
20
|
isGatingMoment,
|
|
21
21
|
recordKeylessMoment
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FHPLLUAZ.js";
|
|
23
23
|
import {
|
|
24
24
|
isAdmitted,
|
|
25
25
|
readAdmissionRules
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BAH4LZL3.js";
|
|
27
27
|
import {
|
|
28
28
|
isDeferAnswer,
|
|
29
29
|
oncePerSession
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4UDGVO6A.js";
|
|
31
31
|
import {
|
|
32
32
|
activeHookSource,
|
|
33
33
|
activeIdentity,
|
|
34
34
|
namedSource
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ZSX4XN6C.js";
|
|
36
36
|
import {
|
|
37
37
|
DEFAULT_SESSION,
|
|
38
38
|
approvalAwaitingRetry,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
settleQuestionsForToolUse,
|
|
54
54
|
sweepFilesOlderThan,
|
|
55
55
|
userScope
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-PYH3KFLI.js";
|
|
57
57
|
import {
|
|
58
58
|
UNNAMED_ACTION,
|
|
59
59
|
deriveAction,
|
|
@@ -64,12 +64,12 @@ import {
|
|
|
64
64
|
patchDeletesFiles,
|
|
65
65
|
permissionDeniedAction,
|
|
66
66
|
scopePathFor
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-AYFOZBTD.js";
|
|
68
68
|
import {
|
|
69
69
|
branchFor,
|
|
70
70
|
repoKeyFor,
|
|
71
71
|
repositoryScopeFor
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-3TUSMGHE.js";
|
|
73
73
|
import {
|
|
74
74
|
askUser,
|
|
75
75
|
cancelQuestion,
|
|
@@ -86,20 +86,20 @@ import {
|
|
|
86
86
|
waitForQuestion,
|
|
87
87
|
waitsForThePhone,
|
|
88
88
|
withdrawQuestion
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-BPSQLKTG.js";
|
|
90
90
|
import {
|
|
91
91
|
getMachineId
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-E5YEKJOM.js";
|
|
93
93
|
import {
|
|
94
94
|
getApiKey,
|
|
95
95
|
getBaseUrl
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-ZBZ7CRGD.js";
|
|
97
97
|
import {
|
|
98
98
|
writeFileAtomic
|
|
99
99
|
} from "./chunk-TODDEIYG.js";
|
|
100
100
|
import {
|
|
101
101
|
NPX_LATEST_COMMAND
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-XWMVKK54.js";
|
|
103
103
|
import {
|
|
104
104
|
AGENT_QUESTION_STRATEGY,
|
|
105
105
|
AGENT_QUESTION_TOOL,
|
|
@@ -150,6 +150,7 @@ import {
|
|
|
150
150
|
isCursorHookPayload,
|
|
151
151
|
isPermissionRequestOwnedByPreToolUse,
|
|
152
152
|
isPusharyConnectorTool,
|
|
153
|
+
isPusharyOwnOrConnectorTool,
|
|
153
154
|
isPusharyOwnTool,
|
|
154
155
|
isRecord,
|
|
155
156
|
matchedRouteOf,
|
|
@@ -168,7 +169,7 @@ import {
|
|
|
168
169
|
timeoutActionWithoutLocalPrompt,
|
|
169
170
|
unansweredRefusalReason,
|
|
170
171
|
unapprovedScopeReason
|
|
171
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
172
173
|
|
|
173
174
|
// src/terminal-answer-watch.ts
|
|
174
175
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -951,9 +952,9 @@ var toPermissionRequestOutput = (hookOutput) => {
|
|
|
951
952
|
};
|
|
952
953
|
var answerOfTheReplay = (replayed) => replayed.humanDecision ? toPermissionRequestOutput(replayed.result) : void 0;
|
|
953
954
|
var handlePermissionRequest = async (input, canonical, holdBudgetSeconds) => {
|
|
955
|
+
if (isPusharyOwnOrConnectorTool(input.tool_name)) return permReqAllow();
|
|
954
956
|
const claudeRules = claudePermissionRulesFor(input);
|
|
955
957
|
if (canonical === void 0 && !claudeRulesMayCover(input, claudeRules) && isPermissionRequestOwnedByPreToolUse(input.tool_name, input.permission_mode, shouldDeferToNativeMode) && !terminalStaysLiveForTheCall(terminalLiveFactsOf(input))) return void 0;
|
|
956
|
-
if (isPusharyOwnTool(input.tool_name)) return void 0;
|
|
957
958
|
let apiKey;
|
|
958
959
|
try {
|
|
959
960
|
apiKey = getApiKey();
|
|
@@ -1063,7 +1064,7 @@ var askAboutBlockedAction = async (apiKey, input, fingerprint, holdEndsAt) => {
|
|
|
1063
1064
|
};
|
|
1064
1065
|
var handlePermissionDenied = async (input, holdBudgetSeconds) => {
|
|
1065
1066
|
await reportPermissionDenied(input);
|
|
1066
|
-
if (
|
|
1067
|
+
if (isPusharyOwnOrConnectorTool(input.tool_name)) return void 0;
|
|
1067
1068
|
let apiKey;
|
|
1068
1069
|
try {
|
|
1069
1070
|
apiKey = getApiKey();
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readExistingMachineId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-E5YEKJOM.js";
|
|
4
4
|
import {
|
|
5
5
|
NetworkError
|
|
6
6
|
} from "./chunk-YU2EUD7O.js";
|
|
7
7
|
import {
|
|
8
8
|
getBaseUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZBZ7CRGD.js";
|
|
10
10
|
import {
|
|
11
11
|
getPackageVersion
|
|
12
12
|
} from "./chunk-WIIMW5YO.js";
|
|
13
13
|
import {
|
|
14
14
|
clientContextHeaders,
|
|
15
15
|
redactSecretsFromContent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/net.ts
|
|
19
19
|
import { createRequire } from "module";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveInstallSourceFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OBIUHAXG.js";
|
|
4
4
|
import {
|
|
5
5
|
configFilePath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZBZ7CRGD.js";
|
|
7
7
|
import {
|
|
8
8
|
backupFile,
|
|
9
9
|
readJsonSafe,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
API_KEY_PREFIX_PATTERN,
|
|
15
15
|
isRecord,
|
|
16
16
|
isValidApiKey
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
18
18
|
|
|
19
19
|
// src/shell-alias.ts
|
|
20
20
|
import { homedir } from "os";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-G66WIAST.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureDaemonRunning
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-P3E26UO5.js";
|
|
7
7
|
import {
|
|
8
8
|
hookOwnerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DQKT5KK5.js";
|
|
10
10
|
import {
|
|
11
11
|
hookMeaning
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AYFOZBTD.js";
|
|
13
13
|
import {
|
|
14
14
|
buildTranscriptRecords,
|
|
15
15
|
changedRecipientsMessage,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
uploadTranscriptRecords,
|
|
25
25
|
verifyAnchoredRecipients,
|
|
26
26
|
wrapSessionKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-YUYBMCKF.js";
|
|
28
28
|
import {
|
|
29
29
|
external_exports,
|
|
30
30
|
ownedOnlyByThisUser,
|
|
@@ -33,22 +33,22 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
transcriptEnvironmentPreference,
|
|
35
35
|
transcriptsEnabled
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-7357Q746.js";
|
|
37
37
|
import {
|
|
38
38
|
fetchAsCredential
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-46IYOPZH.js";
|
|
40
40
|
import {
|
|
41
41
|
readTranscriptPreference
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-WY4CM6TO.js";
|
|
43
43
|
import {
|
|
44
44
|
claudeConfigDir,
|
|
45
45
|
codexHome,
|
|
46
46
|
pusharyDir
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-HY4GEW3T.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiKey,
|
|
50
50
|
getBaseUrl
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ZBZ7CRGD.js";
|
|
52
52
|
import {
|
|
53
53
|
writeJsonAtomic,
|
|
54
54
|
writeJsonAtomicDurable
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
isHookSource,
|
|
61
61
|
isRecord,
|
|
62
62
|
redactSecretsFromContent
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
64
64
|
|
|
65
65
|
// src/transcript-registration.ts
|
|
66
66
|
import { createHash as createHash4 } from "crypto";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-352FIVVH.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchAsCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-46IYOPZH.js";
|
|
8
8
|
import {
|
|
9
9
|
getBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZBZ7CRGD.js";
|
|
11
11
|
import {
|
|
12
12
|
writeJsonAtomicDurable
|
|
13
13
|
} from "./chunk-TODDEIYG.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
compressTranscriptRecord,
|
|
16
16
|
redactSecretsFromContent,
|
|
17
17
|
transcriptRecordPlaintext
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
19
19
|
|
|
20
20
|
// src/transcript-recipient-pin.ts
|
|
21
21
|
import { createHash } from "crypto";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZSX4XN6C.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DQKT5KK5.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HY4GEW3T.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
keyCheckFromResponse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-P3RRAH6J.js";
|
|
4
4
|
import {
|
|
5
5
|
installNetworkDefaults
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WQVRDVMJ.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchAsCredential
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-46IYOPZH.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZBZ7CRGD.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isToolErrorResult,
|
|
16
16
|
toolFailureCodeOfResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
18
18
|
|
|
19
19
|
// src/retry.ts
|
|
20
20
|
var isRetryable = (err) => {
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
NpmMissingError,
|
|
4
4
|
NpmPermissionError,
|
|
5
5
|
NpmReleaseAgeError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-P6GCPJDQ.js";
|
|
7
7
|
import {
|
|
8
8
|
writeFileAtomic
|
|
9
9
|
} from "./chunk-TODDEIYG.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XWMVKK54.js";
|
|
13
13
|
import {
|
|
14
14
|
readSetupAgentFailures
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
16
16
|
|
|
17
17
|
// src/setup/config-write.ts
|
|
18
18
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DQKT5KK5.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PYH3KFLI.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AYFOZBTD.js";
|
|
11
11
|
import {
|
|
12
12
|
CLAUDE_HOOK_EVENTS,
|
|
13
13
|
PUSHARY_MCP_URL,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
isPusharyHook,
|
|
20
20
|
registerHookEntry,
|
|
21
21
|
removeClaudeMcpServers
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HY4GEW3T.js";
|
|
23
23
|
import {
|
|
24
24
|
HOOK_COMPATIBLE_PROFILES,
|
|
25
25
|
PHONE_ANSWERED_TOOLS,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
pusharyMissingReason,
|
|
31
31
|
refusalOutput,
|
|
32
32
|
withHookHoldBudget
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
34
34
|
|
|
35
35
|
// src/config-document.ts
|
|
36
36
|
import { parse, stringify } from "smol-toml";
|