@pushary/agent-hooks 0.43.0 → 0.48.0
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/dist/bin/pushary-claude.js +451 -174
- package/dist/bin/pushary-codex-hook.js +13 -15
- package/dist/bin/pushary-codex.js +2 -4
- package/dist/bin/pushary-gemini-hook.js +8 -10
- package/dist/bin/pushary-hook.js +2 -3
- package/dist/bin/pushary-notification-hook.js +1 -2
- package/dist/bin/pushary-permission-denied-hook.js +2 -3
- package/dist/bin/pushary-permission-hook.js +2 -3
- package/dist/bin/pushary-post-hook.js +1 -2
- package/dist/bin/pushary-prompt-hook.js +1 -2
- package/dist/bin/pushary-session-end-hook.js +1 -2
- package/dist/bin/pushary-session-start-hook.js +1 -2
- package/dist/bin/pushary-setup.js +1 -2
- package/dist/bin/pushary-stop-hook.js +1 -2
- package/dist/bin/pushary-stopfailure-hook.js +1 -2
- package/dist/bin/pushary.js +5 -3
- package/dist/{chunk-V2TSLWTV.js → chunk-E3Q3KYZF.js} +5 -7
- package/dist/{chunk-NRCQ5UUR.js → chunk-VZNP4R5I.js} +377 -49
- package/dist/src/index.js +6 -8
- package/package.json +2 -2
- package/dist/chunk-ETDXSKR5.js +0 -355
|
@@ -6,10 +6,19 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
CODEX_AGENT,
|
|
8
8
|
DEFAULT_SESSION,
|
|
9
|
+
askUser,
|
|
10
|
+
cancelQuestion,
|
|
9
11
|
codexAllow,
|
|
10
12
|
codexDeny,
|
|
11
13
|
codexPass,
|
|
14
|
+
deriveActionBody,
|
|
15
|
+
deriveBlocker,
|
|
16
|
+
deriveToolTarget,
|
|
12
17
|
describeApplyPatch,
|
|
18
|
+
describeToolCall,
|
|
19
|
+
fetchModeState,
|
|
20
|
+
getMachineId,
|
|
21
|
+
getPolicy,
|
|
13
22
|
handlePostToolUse,
|
|
14
23
|
handleStop,
|
|
15
24
|
handleUserPrompt,
|
|
@@ -17,24 +26,13 @@ import {
|
|
|
17
26
|
preToolUseTimeoutDecision,
|
|
18
27
|
readLastPrompt,
|
|
19
28
|
reportEvent,
|
|
20
|
-
savePendingQuestion,
|
|
21
|
-
toCodexWire,
|
|
22
|
-
toPolicyLookup
|
|
23
|
-
} from "../chunk-NRCQ5UUR.js";
|
|
24
|
-
import {
|
|
25
|
-
askUser,
|
|
26
|
-
cancelQuestion,
|
|
27
|
-
deriveActionBody,
|
|
28
|
-
deriveBlocker,
|
|
29
|
-
deriveToolTarget,
|
|
30
|
-
describeToolCall,
|
|
31
|
-
fetchModeState,
|
|
32
|
-
getMachineId,
|
|
33
|
-
getPolicy,
|
|
34
29
|
resolvePolicy,
|
|
30
|
+
savePendingQuestion,
|
|
35
31
|
sendNotification,
|
|
32
|
+
toCodexWire,
|
|
33
|
+
toPolicyLookup,
|
|
36
34
|
waitForAnswer
|
|
37
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-VZNP4R5I.js";
|
|
38
36
|
import {
|
|
39
37
|
isGatingMoment,
|
|
40
38
|
recordKeylessMoment
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
reportEvent
|
|
4
|
-
} from "../chunk-NRCQ5UUR.js";
|
|
5
2
|
import {
|
|
6
3
|
askUser,
|
|
7
4
|
getMachineId,
|
|
5
|
+
reportEvent,
|
|
8
6
|
waitForAnswer
|
|
9
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-VZNP4R5I.js";
|
|
10
8
|
import "../chunk-DWED7BS3.js";
|
|
11
9
|
import "../chunk-Z5PL3K7C.js";
|
|
12
10
|
import {
|
|
@@ -5,15 +5,6 @@ import {
|
|
|
5
5
|
} from "../chunk-KQYIHZ5E.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_SESSION,
|
|
8
|
-
handlePostToolUse,
|
|
9
|
-
handleStop,
|
|
10
|
-
handleUserPrompt,
|
|
11
|
-
readLastPrompt,
|
|
12
|
-
readLastUserPrompt,
|
|
13
|
-
reportEvent,
|
|
14
|
-
savePendingQuestion
|
|
15
|
-
} from "../chunk-NRCQ5UUR.js";
|
|
16
|
-
import {
|
|
17
8
|
askUser,
|
|
18
9
|
cancelQuestion,
|
|
19
10
|
deriveActionBody,
|
|
@@ -23,10 +14,17 @@ import {
|
|
|
23
14
|
fetchModeState,
|
|
24
15
|
getMachineId,
|
|
25
16
|
getPolicy,
|
|
17
|
+
handlePostToolUse,
|
|
18
|
+
handleStop,
|
|
19
|
+
handleUserPrompt,
|
|
20
|
+
readLastPrompt,
|
|
21
|
+
readLastUserPrompt,
|
|
22
|
+
reportEvent,
|
|
26
23
|
resolvePolicy,
|
|
24
|
+
savePendingQuestion,
|
|
27
25
|
sendNotification,
|
|
28
26
|
waitForAnswer
|
|
29
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-VZNP4R5I.js";
|
|
30
28
|
import {
|
|
31
29
|
isGatingMoment,
|
|
32
30
|
recordKeylessMoment
|
package/dist/bin/pushary-hook.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handlePreToolUse
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-E3Q3KYZF.js";
|
|
5
5
|
import "../chunk-7EW3USQF.js";
|
|
6
6
|
import "../chunk-KQYIHZ5E.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-ETDXSKR5.js";
|
|
7
|
+
import "../chunk-VZNP4R5I.js";
|
|
9
8
|
import "../chunk-R5AJNXZS.js";
|
|
10
9
|
import "../chunk-DWED7BS3.js";
|
|
11
10
|
import "../chunk-Z5PL3K7C.js";
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handlePermissionDenied
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-E3Q3KYZF.js";
|
|
5
5
|
import "../chunk-7EW3USQF.js";
|
|
6
6
|
import "../chunk-KQYIHZ5E.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-ETDXSKR5.js";
|
|
7
|
+
import "../chunk-VZNP4R5I.js";
|
|
9
8
|
import "../chunk-R5AJNXZS.js";
|
|
10
9
|
import "../chunk-DWED7BS3.js";
|
|
11
10
|
import "../chunk-Z5PL3K7C.js";
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handlePermissionRequest
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-E3Q3KYZF.js";
|
|
5
5
|
import "../chunk-7EW3USQF.js";
|
|
6
6
|
import "../chunk-KQYIHZ5E.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-ETDXSKR5.js";
|
|
7
|
+
import "../chunk-VZNP4R5I.js";
|
|
9
8
|
import "../chunk-R5AJNXZS.js";
|
|
10
9
|
import "../chunk-DWED7BS3.js";
|
|
11
10
|
import "../chunk-Z5PL3K7C.js";
|
package/dist/bin/pushary.js
CHANGED
|
@@ -26,8 +26,9 @@ Pushary Agent Hooks
|
|
|
26
26
|
|
|
27
27
|
Commands:
|
|
28
28
|
setup Configure Claude Code, Codex, Gemini CLI, Hermes, or Cursor with Pushary
|
|
29
|
-
claude Run Claude Code through Pushary
|
|
30
|
-
|
|
29
|
+
claude Run Claude Code through Pushary \u2014 the native terminal, and reachable from
|
|
30
|
+
your phone: send an instruction and it drives even a fully idle agent
|
|
31
|
+
(press Ctrl-] to take the terminal back). Add --remote to start headless.
|
|
31
32
|
doctor Verify your Pushary installation is working
|
|
32
33
|
clean Remove all Pushary configuration (--yes for non-interactive)
|
|
33
34
|
mode Switch approval mode (push_only, push_first, terminal_only)
|
|
@@ -48,6 +49,7 @@ Usage:
|
|
|
48
49
|
npx @pushary/agent-hooks@latest doctor
|
|
49
50
|
npx @pushary/agent-hooks@latest mode push_only --for 30m
|
|
50
51
|
npx @pushary/agent-hooks@latest wait 45
|
|
51
|
-
pushary claude
|
|
52
|
+
pushary claude # native terminal, reachable from your phone when idle
|
|
53
|
+
pushary claude --remote -p "start the refactor" # start headless, drive entirely from your phone
|
|
52
54
|
`);
|
|
53
55
|
}
|
|
@@ -7,12 +7,6 @@ import {
|
|
|
7
7
|
} from "./chunk-KQYIHZ5E.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_SESSION,
|
|
10
|
-
readLastPrompt,
|
|
11
|
-
readLastUserPrompt,
|
|
12
|
-
savePendingQuestion,
|
|
13
|
-
throttlePass
|
|
14
|
-
} from "./chunk-NRCQ5UUR.js";
|
|
15
|
-
import {
|
|
16
10
|
askUser,
|
|
17
11
|
cancelQuestion,
|
|
18
12
|
deriveAction,
|
|
@@ -23,10 +17,14 @@ import {
|
|
|
23
17
|
fetchModeState,
|
|
24
18
|
getMachineId,
|
|
25
19
|
getPolicy,
|
|
20
|
+
readLastPrompt,
|
|
21
|
+
readLastUserPrompt,
|
|
26
22
|
resolvePolicy,
|
|
23
|
+
savePendingQuestion,
|
|
27
24
|
sendNotification,
|
|
25
|
+
throttlePass,
|
|
28
26
|
waitForAnswer
|
|
29
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-VZNP4R5I.js";
|
|
30
28
|
import {
|
|
31
29
|
isGatingMoment,
|
|
32
30
|
recordKeylessMoment
|