@pushary/agent-hooks 0.95.0 → 0.95.1
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/data/SKILL.md +31 -24
- package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
- package/data/cursor-plugin/skills/pushary/SKILL.md +30 -23
- package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
- package/data/vscode-plugin/skills/pushary/SKILL.md +30 -23
- package/dist/bin/pushary-bell-hook.js +16 -16
- package/dist/bin/pushary-bell.js +5 -5
- package/dist/bin/pushary-claude.js +17 -17
- package/dist/bin/pushary-clean.js +13 -13
- package/dist/bin/pushary-codex-bridge.js +9 -9
- package/dist/bin/pushary-codex-hook.js +19 -19
- package/dist/bin/pushary-codex.js +7 -7
- package/dist/bin/pushary-connect.js +6 -6
- package/dist/bin/pushary-daemon.js +19 -19
- package/dist/bin/pushary-disconnect.js +6 -6
- package/dist/bin/pushary-doctor.js +18 -18
- package/dist/bin/pushary-elicitation-hook.js +15 -15
- package/dist/bin/pushary-gemini-bridge.js +9 -9
- package/dist/bin/pushary-gemini-hook.js +18 -18
- package/dist/bin/pushary-hook.js +20 -20
- package/dist/bin/pushary-login.js +7 -7
- package/dist/bin/pushary-logout.js +4 -4
- package/dist/bin/pushary-mode.js +3 -3
- package/dist/bin/pushary-notification-hook.js +17 -17
- package/dist/bin/pushary-opencode-hook.js +18 -18
- package/dist/bin/pushary-permission-denied-hook.js +20 -20
- package/dist/bin/pushary-permission-hook.js +20 -20
- package/dist/bin/pushary-post-hook.js +17 -17
- package/dist/bin/pushary-prompt-hook.js +17 -17
- package/dist/bin/pushary-session-end-hook.js +17 -17
- package/dist/bin/pushary-session-start-hook.js +20 -20
- package/dist/bin/pushary-setup.js +21 -21
- package/dist/bin/pushary-stats.js +2 -2
- package/dist/bin/pushary-status.js +8 -8
- package/dist/bin/pushary-stop-hook.js +17 -17
- package/dist/bin/pushary-stopfailure-hook.js +17 -17
- package/dist/bin/pushary-transcript-register.js +14 -14
- package/dist/bin/pushary-transcripts.js +4 -4
- package/dist/bin/pushary-upgrade.js +13 -13
- package/dist/bin/pushary-wait.js +3 -3
- package/dist/{chunk-Y6XXFXVB.js → chunk-3F4VV5TS.js} +1 -1
- package/dist/{chunk-GHCGSEPE.js → chunk-77U3ZVV6.js} +1 -1
- package/dist/{chunk-RH3TM7TO.js → chunk-7MGF5Q7G.js} +1 -1
- package/dist/{chunk-WY4ALDYN.js → chunk-AQ5OAYOH.js} +1 -1
- package/dist/{chunk-BMOFXRGS.js → chunk-BWNU4MX4.js} +3 -3
- package/dist/{chunk-OYNPLEXP.js → chunk-C2MV4G4A.js} +1 -1
- package/dist/{chunk-YGZXYEVY.js → chunk-CC625NRG.js} +6 -6
- package/dist/{chunk-ZTJF6ANY.js → chunk-CU5KI425.js} +2 -2
- package/dist/{chunk-5SJ54JJO.js → chunk-IFCS6LXB.js} +3 -3
- package/dist/{chunk-SFCGKE6U.js → chunk-IP63LMZM.js} +6 -6
- package/dist/{chunk-BSEAOCCQ.js → chunk-IZRI4M3C.js} +1 -1
- package/dist/{chunk-OXTRFRMD.js → chunk-J55K6YS4.js} +5 -5
- package/dist/{chunk-6BIMJIRG.js → chunk-JSASMV3H.js} +1 -1
- package/dist/{chunk-XY4GSZ3K.js → chunk-K7ZZGI2Y.js} +1 -1
- package/dist/{chunk-TDUTNYAQ.js → chunk-M64I4T7J.js} +1 -1
- package/dist/{chunk-LSXJH2HB.js → chunk-MF64S7WO.js} +1 -1
- package/dist/{chunk-UZFVNEEU.js → chunk-PDFVIRPB.js} +1 -1
- package/dist/{chunk-ROHFVGXM.js → chunk-R7NPGCSD.js} +1 -1
- package/dist/{chunk-QGA2ZB4I.js → chunk-RNH2AE52.js} +1 -1
- package/dist/{chunk-NVPYRDCT.js → chunk-SSQ5X6SA.js} +1 -1
- package/dist/{chunk-AYJ7NH5S.js → chunk-T23EGPRI.js} +1 -1
- package/dist/{chunk-ODL52O5V.js → chunk-T5B3LRYF.js} +1 -1
- package/dist/{chunk-Y3UGCQQC.js → chunk-TTO76NZJ.js} +1 -1
- package/dist/{chunk-Q5UFC2QK.js → chunk-UFGDCMUD.js} +1 -1
- package/dist/{chunk-2ORRI66J.js → chunk-UQSKCQBO.js} +1 -1
- package/dist/{chunk-4PE2SQVM.js → chunk-VLKEAYJ4.js} +1 -1
- package/dist/{chunk-FH3YLP5Z.js → chunk-WJZUTMMU.js} +3 -3
- package/dist/{chunk-6LQAGVG2.js → chunk-Y24D5ZWS.js} +7 -7
- package/dist/{chunk-MDQOBG5J.js → chunk-YPYPI6BG.js} +7 -6
- package/dist/{chunk-2WVDQVI5.js → chunk-ZOR5OJZJ.js} +1 -1
- package/dist/{chunk-GI5UQSG7.js → chunk-ZW3KAWTM.js} +3 -3
- package/dist/src/index.js +10 -10
- package/package.json +1 -1
- /package/dist/{chunk-Z6CP5ZZD.js → chunk-VOWZ5VOO.js} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
reapplyAllAgents
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-IP63LMZM.js";
|
|
5
|
+
import "../chunk-MF64S7WO.js";
|
|
6
6
|
import {
|
|
7
7
|
waitForMachineReadiness
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-RNH2AE52.js";
|
|
9
|
+
import "../chunk-WJZUTMMU.js";
|
|
10
10
|
import {
|
|
11
11
|
detectProviderLiveCapabilities,
|
|
12
12
|
hasSpawnProvider,
|
|
13
13
|
resolveControlPolicy
|
|
14
14
|
} from "../chunk-3OXHYPZG.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-IFCS6LXB.js";
|
|
16
16
|
import {
|
|
17
17
|
daemonHasRemoteProof,
|
|
18
18
|
daemonServiceManagerAvailable,
|
|
@@ -23,8 +23,8 @@ import {
|
|
|
23
23
|
replaceDaemonService,
|
|
24
24
|
stopDaemonService,
|
|
25
25
|
waitForDaemonRemoteProof
|
|
26
|
-
} from "../chunk-
|
|
27
|
-
import "../chunk-
|
|
26
|
+
} from "../chunk-CU5KI425.js";
|
|
27
|
+
import "../chunk-BWNU4MX4.js";
|
|
28
28
|
import "../chunk-EZIEXHYM.js";
|
|
29
29
|
import {
|
|
30
30
|
needsShell
|
|
@@ -34,15 +34,15 @@ import {
|
|
|
34
34
|
npmErrorMessage,
|
|
35
35
|
resolveGlobalBinary
|
|
36
36
|
} from "../chunk-L4ZCFMWW.js";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-TTO76NZJ.js";
|
|
38
|
+
import "../chunk-SSQ5X6SA.js";
|
|
39
39
|
import {
|
|
40
40
|
claudeJson,
|
|
41
41
|
codexConfigToml,
|
|
42
42
|
cursorPluginDir,
|
|
43
43
|
geminiSettings,
|
|
44
44
|
vscodePluginDir
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-3F4VV5TS.js";
|
|
46
46
|
import {
|
|
47
47
|
exitOnHelpFlag
|
|
48
48
|
} from "../chunk-BVBEURWJ.js";
|
|
@@ -52,15 +52,15 @@ import {
|
|
|
52
52
|
} from "../chunk-DINDL2CF.js";
|
|
53
53
|
import {
|
|
54
54
|
readControlMode
|
|
55
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-JSASMV3H.js";
|
|
56
56
|
import "../chunk-BC3VCZ3E.js";
|
|
57
57
|
import "../chunk-KZERVKTD.js";
|
|
58
|
-
import "../chunk-
|
|
58
|
+
import "../chunk-T5B3LRYF.js";
|
|
59
59
|
import "../chunk-4LL6LG5X.js";
|
|
60
60
|
import {
|
|
61
61
|
getApiKey
|
|
62
62
|
} from "../chunk-2UMNXADU.js";
|
|
63
|
-
import "../chunk-
|
|
63
|
+
import "../chunk-VOWZ5VOO.js";
|
|
64
64
|
|
|
65
65
|
// bin/pushary-upgrade.ts
|
|
66
66
|
import { existsSync } from "fs";
|
package/dist/bin/pushary-wait.js
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
} from "../chunk-IIENZE2J.js";
|
|
5
5
|
import {
|
|
6
6
|
exitOnFailedResponse
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-AQ5OAYOH.js";
|
|
8
|
+
import "../chunk-PDFVIRPB.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "../chunk-5RUIFDTP.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
getApiKey,
|
|
29
29
|
getBaseUrl
|
|
30
30
|
} from "../chunk-2UMNXADU.js";
|
|
31
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-VOWZ5VOO.js";
|
|
32
32
|
|
|
33
33
|
// bin/pushary-wait.ts
|
|
34
34
|
exitOnHelpFlag("wait");
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
POSTTOOLUSE_MIRRORED_TOOLS,
|
|
4
4
|
PRETOOLUSE_GATED_TOOLS,
|
|
5
5
|
PRETOOLUSE_PHONE_ANSWERED_TOOLS
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TTO76NZJ.js";
|
|
7
7
|
import {
|
|
8
8
|
isProtectedByScope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3F4VV5TS.js";
|
|
10
10
|
import {
|
|
11
11
|
HOOK_BUDGETS,
|
|
12
12
|
HOOK_LOCATOR_BINARY
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VOWZ5VOO.js";
|
|
14
14
|
|
|
15
15
|
// src/gemini-config.ts
|
|
16
16
|
var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
} from "./chunk-YKLCWWEI.js";
|
|
7
7
|
import {
|
|
8
8
|
hookOwnerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZW3KAWTM.js";
|
|
10
10
|
import {
|
|
11
11
|
ensureDaemonRunning
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CU5KI425.js";
|
|
13
13
|
import {
|
|
14
14
|
buildTranscriptRecords,
|
|
15
15
|
decodePublicKey,
|
|
16
16
|
generateSessionKey,
|
|
17
17
|
wrapSessionKey
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UFGDCMUD.js";
|
|
19
19
|
import {
|
|
20
20
|
fetchTranscriptRecipients,
|
|
21
21
|
uploadTranscriptRecords
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
transcriptEnvironmentPreference,
|
|
25
25
|
transcriptsEnabled
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZOR5OJZJ.js";
|
|
27
27
|
import {
|
|
28
28
|
codexHome,
|
|
29
29
|
pusharyDir
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-3F4VV5TS.js";
|
|
31
31
|
import {
|
|
32
32
|
readTranscriptPreference
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-JSASMV3H.js";
|
|
34
34
|
import {
|
|
35
35
|
writeJsonAtomic
|
|
36
36
|
} from "./chunk-4LL6LG5X.js";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./chunk-L4ZCFMWW.js";
|
|
8
8
|
import {
|
|
9
9
|
getMachineId
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SSQ5X6SA.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3F4VV5TS.js";
|
|
14
14
|
import {
|
|
15
15
|
getPackageVersion
|
|
16
16
|
} from "./chunk-DINDL2CF.js";
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
CLAUDE_HOOK_EVENTS,
|
|
3
3
|
GEMINI_HOOK_EVENTS,
|
|
4
4
|
hasGeminiHooks
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BWNU4MX4.js";
|
|
6
6
|
import {
|
|
7
7
|
CODEX_HOOK_EVENTS,
|
|
8
8
|
hasCodexHooks
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3F4VV5TS.js";
|
|
10
10
|
import {
|
|
11
11
|
CURSOR_GATE_EVENTS,
|
|
12
12
|
HOOK_LOCATOR_BINARY
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VOWZ5VOO.js";
|
|
14
14
|
|
|
15
15
|
// src/diagnostics/wiring.ts
|
|
16
16
|
var record = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
detectClaudeVersion
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MF64S7WO.js";
|
|
4
4
|
import {
|
|
5
5
|
addClaudeMcpServer,
|
|
6
6
|
addPusharyHooks,
|
|
7
7
|
addPusharyToolPermissions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WJZUTMMU.js";
|
|
9
9
|
import {
|
|
10
10
|
claudeWired,
|
|
11
11
|
codexWired,
|
|
12
12
|
geminiWired
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IFCS6LXB.js";
|
|
14
14
|
import {
|
|
15
15
|
CLAUDE_HOOK_EVENTS,
|
|
16
16
|
GEMINI_HOOK_BINARY,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
needsReregistration,
|
|
22
22
|
registrationSignatures,
|
|
23
23
|
supportedClaudeEvents
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-BWNU4MX4.js";
|
|
25
25
|
import {
|
|
26
26
|
guardBinary
|
|
27
27
|
} from "./chunk-EZIEXHYM.js";
|
|
@@ -40,14 +40,14 @@ import {
|
|
|
40
40
|
codexHooksJson,
|
|
41
41
|
hasCodexHooks,
|
|
42
42
|
vscodePluginMcp
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-3F4VV5TS.js";
|
|
44
44
|
import {
|
|
45
45
|
readJsonSafe,
|
|
46
46
|
writeJsonAtomic
|
|
47
47
|
} from "./chunk-4LL6LG5X.js";
|
|
48
48
|
import {
|
|
49
49
|
HOOK_LOCATOR_BINARY
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-VOWZ5VOO.js";
|
|
51
51
|
|
|
52
52
|
// src/reapply.ts
|
|
53
53
|
import { join } from "path";
|
|
@@ -34,20 +34,20 @@ import {
|
|
|
34
34
|
summarizeStop,
|
|
35
35
|
taskTitleFrom,
|
|
36
36
|
toolResultErrorText
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-VLKEAYJ4.js";
|
|
38
38
|
import {
|
|
39
39
|
NOTIFICATION_PUSH_TYPES,
|
|
40
40
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-TTO76NZJ.js";
|
|
42
42
|
import {
|
|
43
43
|
getMachineId
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-SSQ5X6SA.js";
|
|
45
45
|
import {
|
|
46
46
|
withRetry
|
|
47
47
|
} from "./chunk-EYRGBYZG.js";
|
|
48
48
|
import {
|
|
49
49
|
reportedInstallSource
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-T5B3LRYF.js";
|
|
51
51
|
import {
|
|
52
52
|
getApiKey,
|
|
53
53
|
getBaseUrl
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
pendingCommandEvents,
|
|
64
64
|
resolveAutoResolveOrigin,
|
|
65
65
|
resolvePolicy
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-VOWZ5VOO.js";
|
|
67
67
|
|
|
68
68
|
// src/policy.ts
|
|
69
69
|
import { createHash } from "crypto";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VOWZ5VOO.js";
|
|
17
17
|
|
|
18
18
|
// src/session.ts
|
|
19
19
|
var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CLAUDE_HOOK_EVENTS,
|
|
3
3
|
supportedClaudeEvents
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BWNU4MX4.js";
|
|
5
5
|
import {
|
|
6
6
|
guardBinary
|
|
7
7
|
} from "./chunk-EZIEXHYM.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3F4VV5TS.js";
|
|
11
11
|
import {
|
|
12
12
|
HOOK_LOCATOR_BINARY
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VOWZ5VOO.js";
|
|
14
14
|
|
|
15
15
|
// src/claude-config.ts
|
|
16
16
|
import { join } from "path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defersToNativeMode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C2MV4G4A.js";
|
|
4
4
|
import {
|
|
5
5
|
isGatingMoment,
|
|
6
6
|
recordKeylessMoment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UQSKCQBO.js";
|
|
8
8
|
import {
|
|
9
9
|
denyReasonFrom,
|
|
10
10
|
isDeferAnswer
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
reportEvent,
|
|
20
20
|
settleQuestionsForToolUse,
|
|
21
21
|
throttlePass
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-J55K6YS4.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_SESSION,
|
|
25
25
|
askUser,
|
|
@@ -37,14 +37,14 @@ import {
|
|
|
37
37
|
describeToolCall,
|
|
38
38
|
permissionDeniedAction,
|
|
39
39
|
scopePathFor
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-VLKEAYJ4.js";
|
|
41
41
|
import {
|
|
42
42
|
PRETOOLUSE_HANDLED_TOOLS,
|
|
43
43
|
PRETOOLUSE_PHONE_ANSWERED_TOOLS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-TTO76NZJ.js";
|
|
45
45
|
import {
|
|
46
46
|
getMachineId
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-SSQ5X6SA.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiKey,
|
|
50
50
|
getBaseUrl
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
parseAgentQuestions,
|
|
62
62
|
resolveGate,
|
|
63
63
|
stoppedOutput
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-VOWZ5VOO.js";
|
|
65
65
|
|
|
66
66
|
// src/decision-episode.ts
|
|
67
67
|
var EPISODE_PATH = "/api/agent/decision-episode";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openCodeConfigDirFrom
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IZRI4M3C.js";
|
|
4
4
|
import {
|
|
5
5
|
codexHomeFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3F4VV5TS.js";
|
|
7
7
|
|
|
8
8
|
// src/vscode-config.ts
|
|
9
9
|
import { homedir } from "os";
|
|
@@ -262,12 +262,13 @@ var instructionBody = (label) => `## Pushary notifications and approvals
|
|
|
262
262
|
|
|
263
263
|
You have Pushary MCP tools that reach the user on their phone. Use them proactively. Do not wait for the user to ask.
|
|
264
264
|
|
|
265
|
-
- When you need the user to make a decision or answer a clarifying question, call \`ask_user\` instead of guessing or stalling. Use type "confirm" for yes/no, "select" for a fixed set of options, and "input" for free text. \`
|
|
265
|
+
- When you need the user to make a decision or answer a clarifying question, call \`ask_user\` instead of guessing or stalling. Use type "confirm" for yes/no, "select" for a fixed set of options, and "input" for free text. Read \`answered\`, \`status\` and the returned handoff instead of assuming the tool blocked. Silence is not consent; choice/text answers do not authorize a separate action.
|
|
266
266
|
- Ask once, on one channel. If you also have a built-in way to prompt the user, use that or \`ask_user\` for a given question, never both. \`ask_user\` is the one that reaches the user when they are away from this machine, so prefer it. Raising both strands the user in whichever prompt you are not waiting on.
|
|
267
|
-
-
|
|
268
|
-
-
|
|
267
|
+
- Honor authorization already granted in this session. Ask before a risky or irreversible action outside that authorization, or when an enforced host policy requires it. Do not ask again for an already authorized step, and never bypass an enforced gate.
|
|
268
|
+
- Call \`propose_scope\` only for an unresolved or requested file boundary. A ratified scope narrows what may proceed; it does not bypass other approval rules. Do not add a plan approval merely because work spans several files, and do not propose a new scope mid-run just to widen it. Let the installed gate request any scope expansion before the edit executes.
|
|
269
269
|
- When you are blocked, stuck, or hit an error you cannot resolve on your own, call \`send_notification\` so the user knows, and call \`ask_user\` if you need a decision to continue.
|
|
270
|
-
- When
|
|
270
|
+
- When meaningful work finishes while the user is away, or they requested an alert, call \`send_notification\` so the user knows it is done. Skip trivial completions and duplicate reports to someone already reading. Always pass \`context\` with a \`type\` of "task_complete", "error" or "info": it is what tells Pushary this is a task update, so the user's own setting for where updates land can route it.
|
|
271
|
+
- Confirm notifications can offer lock-screen actions; arbitrary choices and text open the app. The Mac notch handles personal account questions, not Partner customer enrollment.
|
|
271
272
|
- Use \`cancel_question\` to retract a pending question once it is no longer needed.
|
|
272
273
|
- Respect the user's Pushary delivery mode: it decides where an approval is surfaced (phone, terminal, or awareness only), not whether it is required. In Terminal mode do not expect a phone answer; the approval waits in the terminal. If the Pushary hook already gated an action, a single approval is enough, do not ask again.
|
|
273
274
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isBridgeLocator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-77U3ZVV6.js";
|
|
4
4
|
import {
|
|
5
5
|
pusharyHookExecutable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IFCS6LXB.js";
|
|
7
7
|
import {
|
|
8
8
|
BELL_HOOK_BINARY
|
|
9
9
|
} from "./chunk-DSTLA2TC.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-7QLSKOSU.js";
|
|
16
16
|
import {
|
|
17
17
|
isValidApiKey
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VOWZ5VOO.js";
|
|
19
19
|
|
|
20
20
|
// src/setup/options.ts
|
|
21
21
|
var AGENT_CHOICES = ["claude_code", "codex", "gemini_cli", "hermes", "cursor", "vscode", "opencode", "custom"];
|
package/dist/src/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handlePreToolUse
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-Y24D5ZWS.js";
|
|
4
|
+
import "../chunk-C2MV4G4A.js";
|
|
5
|
+
import "../chunk-UQSKCQBO.js";
|
|
6
6
|
import "../chunk-YHG74UFF.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchAccountPublicKey
|
|
@@ -15,21 +15,21 @@ import {
|
|
|
15
15
|
handlePostToolUse,
|
|
16
16
|
handleStop,
|
|
17
17
|
reportEvent
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-J55K6YS4.js";
|
|
19
19
|
import {
|
|
20
20
|
askUser,
|
|
21
21
|
cancelQuestion,
|
|
22
22
|
waitForAnswer
|
|
23
23
|
} from "../chunk-RER3FRTD.js";
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-VLKEAYJ4.js";
|
|
25
|
+
import "../chunk-TTO76NZJ.js";
|
|
26
|
+
import "../chunk-SSQ5X6SA.js";
|
|
27
|
+
import "../chunk-3F4VV5TS.js";
|
|
28
28
|
import "../chunk-EYRGBYZG.js";
|
|
29
29
|
import "../chunk-SAF6HGAA.js";
|
|
30
30
|
import "../chunk-7QLSKOSU.js";
|
|
31
31
|
import "../chunk-KZERVKTD.js";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-T5B3LRYF.js";
|
|
33
33
|
import "../chunk-4LL6LG5X.js";
|
|
34
34
|
import {
|
|
35
35
|
getApiKey,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
} from "../chunk-2UMNXADU.js";
|
|
38
38
|
import {
|
|
39
39
|
resolvePolicy
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-VOWZ5VOO.js";
|
|
41
41
|
export {
|
|
42
42
|
askUser,
|
|
43
43
|
cancelQuestion,
|
package/package.json
CHANGED
|
File without changes
|