@pushary/agent-hooks 1.9.155 → 1.9.156
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/bin/pushary-bell-hook.js +3 -3
- package/dist/bin/pushary-claude.js +2 -2
- package/dist/bin/pushary-clean.js +4 -4
- package/dist/bin/pushary-codex-hook.js +4 -4
- package/dist/bin/pushary-connect.js +3 -3
- package/dist/bin/pushary-daemon.js +5 -5
- package/dist/bin/pushary-disconnect.js +1 -1
- package/dist/bin/pushary-display-hook.js +1 -1
- package/dist/bin/pushary-doctor.js +3 -3
- package/dist/bin/pushary-elicitation-hook.js +3 -3
- package/dist/bin/pushary-gemini-hook.js +3 -3
- package/dist/bin/pushary-hook.js +4 -4
- package/dist/bin/pushary-login.js +2 -2
- package/dist/bin/pushary-logout.js +3 -3
- package/dist/bin/pushary-notification-hook.js +3 -3
- package/dist/bin/pushary-opencode-hook.js +3 -3
- package/dist/bin/pushary-permission-denied-hook.js +4 -4
- package/dist/bin/pushary-permission-hook.js +4 -4
- package/dist/bin/pushary-post-hook.js +3 -3
- package/dist/bin/pushary-prompt-hook.js +3 -3
- package/dist/bin/pushary-session-end-hook.js +3 -3
- package/dist/bin/pushary-session-start-hook.js +5 -5
- package/dist/bin/pushary-setup.js +8 -8
- package/dist/bin/pushary-status.js +2 -2
- package/dist/bin/pushary-stop-hook.js +3 -3
- package/dist/bin/pushary-stopfailure-hook.js +3 -3
- package/dist/bin/pushary-transcript-register.js +2 -2
- package/dist/bin/pushary-transcripts.js +2 -2
- package/dist/bin/pushary-upgrade.js +3 -3
- package/dist/{chunk-XZ7AZOUT.js → chunk-4IOT26IC.js} +3 -3
- package/dist/{chunk-RALCZD2Z.js → chunk-FIBJOHFC.js} +1 -1
- package/dist/{chunk-HNESCLUJ.js → chunk-HKID4EAA.js} +1 -1
- package/dist/{chunk-PBKYOLKX.js → chunk-JQ3X62Q7.js} +1 -1
- package/dist/{chunk-FLY6YDPE.js → chunk-KHKN7Q7Z.js} +1 -1
- package/dist/{chunk-QEKKOZS3.js → chunk-KUUMJRFS.js} +1 -1
- package/dist/{chunk-5C7TFCQH.js → chunk-TIGOIQFK.js} +1 -1
- package/dist/{chunk-XOZ2IFFU.js → chunk-UGJ25K2F.js} +1 -1
- package/dist/{chunk-P2OC7VZZ.js → chunk-W2GOSAFI.js} +1 -1
- package/dist/{chunk-G66WIAST.js → chunk-WHB622LP.js} +1 -1
- package/dist/{chunk-5Y5ZB5GG.js → chunk-Z3W42VTS.js} +8 -0
- package/dist/{reapply-L7QUIQXK.js → reapply-HUOMCZ2U.js} +2 -2
- package/dist/src/index.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.9.156
|
|
4
|
+
|
|
5
|
+
- OpenCode: questions reach your phone. OpenCode asked its own questions, such as "ask me a multiple choice question", with its built-in `question` tool, which shows only in the terminal. Pushary forwards OpenCode's permission prompts, but no plugin API can answer that tool, so nothing reached the phone or the Mac notch. The instructions setup writes to OpenCode's `AGENTS.md` now tell it to ask every question through Pushary's `ask_user`, one at a time, even while you are at the terminal, as fx already does. They name both forms OpenCode offers: `tools.pushary.ask_user(...)` inside `execute` when OpenCode 2 lists Pushary under Code Mode, and the direct `pushary_ask_user` otherwise. So a question now reaches your phone and the Mac notch while you are at your desk too, and you can answer it there. In Terminal mode Pushary hands it straight back to OpenCode's prompt. A handoff that asks in the terminal, or an `ask_user` that fails, still falls back to OpenCode's own prompt. Setup and `pushary upgrade` write the new block; an existing CLI connection gets it on the next upgrade, and a Mac app connection after the Mac app update and a reconnect.
|
|
6
|
+
|
|
3
7
|
## 1.9.155
|
|
4
8
|
|
|
5
9
|
- Antigravity CLI: `run_workflow` now goes to your Pushary policy before it runs. agy 1.5.9 added the tool for everyone. The agent writes a Python script, agy runs it in its own Python, and the script can run commands and write files with no further hook call. Setup sets `toolPermission` to `always-proceed` so that Pushary is agy's only gate, yet the hook matcher left `run_workflow` out and the hook had no rule for it, so a workflow script ran with nobody asked. The script is now judged as `python3 -c '<script>'` under your `Bash` rules, and your phone shows it in that form. It gets the answer the same code would get from `run_command`: under the default rules your phone is asked. A `Bash` rule whose pattern covers `python3 -c`, such as `Bash`, `Bash(python3:*)`, `Bash(python:*)` or `Bash(python3 -c:*)`, or a preset that lets shell commands run, lets it run unasked. The shell read-only check and rules for other commands, such as `Bash(git:*)`, never clear it. A call with a missing or blank script is blocked. A finished workflow is not recorded in Activity: `PostToolUse` does not match `run_workflow`, as for `manage_task`. Setup, `pushary upgrade` and the Mac app's spec write the new matcher. An existing CLI connection gets it on the next upgrade, and a Mac app connection after the Mac app update and a reconnect.
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "../chunk-WCVANKUD.js";
|
|
5
5
|
import {
|
|
6
6
|
readHookInput
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-KHKN7Q7Z.js";
|
|
8
8
|
import "../chunk-3EF7G5EV.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-UGJ25K2F.js";
|
|
10
|
+
import "../chunk-WHB622LP.js";
|
|
11
11
|
import "../chunk-OGB4QCB3.js";
|
|
12
12
|
import "../chunk-5TCLBCUO.js";
|
|
13
13
|
import "../chunk-BMR66K6T.js";
|
|
@@ -24,8 +24,8 @@ import {
|
|
|
24
24
|
registerTranscript,
|
|
25
25
|
registeredTranscriptEnabled,
|
|
26
26
|
startDraftPublisher
|
|
27
|
-
} from "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
} from "../chunk-UGJ25K2F.js";
|
|
28
|
+
import "../chunk-WHB622LP.js";
|
|
29
29
|
import {
|
|
30
30
|
ensureDaemonRunning
|
|
31
31
|
} from "../chunk-5TCLBCUO.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
planCliKeyRevocations,
|
|
29
29
|
readCliHeldKeys,
|
|
30
30
|
revokeCliKeys
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-JQ3X62Q7.js";
|
|
32
32
|
import {
|
|
33
33
|
isCursorPluginLeftover,
|
|
34
34
|
releaseSoleGate,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
shortenHome,
|
|
39
39
|
unregisterPluginLocation,
|
|
40
40
|
vscodeSettingsTargets
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-TIGOIQFK.js";
|
|
42
42
|
import "../chunk-OYIN77HO.js";
|
|
43
43
|
import {
|
|
44
44
|
configFileHoldsMacAppKey,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
pusharyKey,
|
|
48
48
|
readMacAppAgentKey,
|
|
49
49
|
setupReceiptKey
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-HKID4EAA.js";
|
|
51
51
|
import "../chunk-EQF6SSQL.js";
|
|
52
52
|
import {
|
|
53
53
|
HERMES_CONFIG_FILE,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
openCodePluginDir,
|
|
83
83
|
openCodePluginFile,
|
|
84
84
|
removeOpenCodeMcpServer
|
|
85
|
-
} from "../chunk-
|
|
85
|
+
} from "../chunk-Z3W42VTS.js";
|
|
86
86
|
import {
|
|
87
87
|
ansiPainter,
|
|
88
88
|
useColor
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
} from "../chunk-RF7HGOBC.js";
|
|
24
24
|
import {
|
|
25
25
|
readHookInput
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-KHKN7Q7Z.js";
|
|
27
27
|
import "../chunk-3EF7G5EV.js";
|
|
28
28
|
import {
|
|
29
29
|
announceSubscriptionRequired,
|
|
30
30
|
isDeferAnswer
|
|
31
31
|
} from "../chunk-M2WLCRMX.js";
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-UGJ25K2F.js";
|
|
33
|
+
import "../chunk-WHB622LP.js";
|
|
34
34
|
import "../chunk-OGB4QCB3.js";
|
|
35
35
|
import "../chunk-5TCLBCUO.js";
|
|
36
36
|
import "../chunk-BMR66K6T.js";
|
|
@@ -822,7 +822,7 @@ var decidePreToolUse = async (input) => {
|
|
|
822
822
|
};
|
|
823
823
|
var repairCodexHoldsQuietly = async () => {
|
|
824
824
|
try {
|
|
825
|
-
const { repairCodexHolds } = await import("../reapply-
|
|
825
|
+
const { repairCodexHolds } = await import("../reapply-HUOMCZ2U.js");
|
|
826
826
|
repairCodexHolds();
|
|
827
827
|
} catch {
|
|
828
828
|
return;
|
|
@@ -21,17 +21,17 @@ import "../chunk-CAZ5FMWP.js";
|
|
|
21
21
|
import "../chunk-RF35YTIF.js";
|
|
22
22
|
import {
|
|
23
23
|
detectedAgentChoices
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-TIGOIQFK.js";
|
|
25
25
|
import "../chunk-OYIN77HO.js";
|
|
26
26
|
import {
|
|
27
27
|
CONNECTED_THROUGH_MAC_APP,
|
|
28
28
|
PAIR_FROM_MAC_APP,
|
|
29
29
|
readMacAppConnection
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-HKID4EAA.js";
|
|
31
31
|
import "../chunk-EQF6SSQL.js";
|
|
32
32
|
import "../chunk-QCGNGEGE.js";
|
|
33
33
|
import "../chunk-HXX4EFK3.js";
|
|
34
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-Z3W42VTS.js";
|
|
35
35
|
import {
|
|
36
36
|
ciMarker,
|
|
37
37
|
createIo,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
inspectConfiguredManagedProviders
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-4IOT26IC.js";
|
|
5
5
|
import {
|
|
6
6
|
readHookWiring,
|
|
7
7
|
readHookWiringSafely
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-FIBJOHFC.js";
|
|
9
9
|
import "../chunk-WSPDIT2B.js";
|
|
10
10
|
import "../chunk-WDCS3RGI.js";
|
|
11
11
|
import {
|
|
@@ -32,7 +32,7 @@ import "../chunk-HXX4EFK3.js";
|
|
|
32
32
|
import "../chunk-S6DJAYQW.js";
|
|
33
33
|
import "../chunk-2N23JFER.js";
|
|
34
34
|
import "../chunk-DDSMTD4W.js";
|
|
35
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-Z3W42VTS.js";
|
|
36
36
|
import {
|
|
37
37
|
exitOnHelpFlag
|
|
38
38
|
} from "../chunk-MGT2V2AB.js";
|
|
@@ -61,8 +61,8 @@ import {
|
|
|
61
61
|
import "../chunk-3EF7G5EV.js";
|
|
62
62
|
import {
|
|
63
63
|
startRegisteredTranscripts
|
|
64
|
-
} from "../chunk-
|
|
65
|
-
import "../chunk-
|
|
64
|
+
} from "../chunk-UGJ25K2F.js";
|
|
65
|
+
import "../chunk-WHB622LP.js";
|
|
66
66
|
import "../chunk-OGB4QCB3.js";
|
|
67
67
|
import {
|
|
68
68
|
DAEMON_LEASE_RENEW_INTERVAL_MS,
|
|
@@ -61,13 +61,13 @@ import {
|
|
|
61
61
|
isPluginRegistered,
|
|
62
62
|
shortenHome,
|
|
63
63
|
vscodeSettingsTargets
|
|
64
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-TIGOIQFK.js";
|
|
65
65
|
import "../chunk-OYIN77HO.js";
|
|
66
66
|
import {
|
|
67
67
|
CONNECTED_THROUGH_MAC_APP,
|
|
68
68
|
keyWrittenByMacApp,
|
|
69
69
|
readMacAppConnectionWhenKeyless
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-HKID4EAA.js";
|
|
71
71
|
import {
|
|
72
72
|
keyScopeOf,
|
|
73
73
|
pushWindowChangeStep
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
openCodePluginDir,
|
|
116
116
|
openCodePluginFile,
|
|
117
117
|
openCodeWired
|
|
118
|
-
} from "../chunk-
|
|
118
|
+
} from "../chunk-Z3W42VTS.js";
|
|
119
119
|
import {
|
|
120
120
|
createIo
|
|
121
121
|
} from "../chunk-UOVTXOSS.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KHKN7Q7Z.js";
|
|
5
5
|
import "../chunk-3EF7G5EV.js";
|
|
6
6
|
import {
|
|
7
7
|
announceSubscriptionRequired,
|
|
8
8
|
isDeferAnswer
|
|
9
9
|
} from "../chunk-M2WLCRMX.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-UGJ25K2F.js";
|
|
11
|
+
import "../chunk-WHB622LP.js";
|
|
12
12
|
import "../chunk-OGB4QCB3.js";
|
|
13
13
|
import "../chunk-5TCLBCUO.js";
|
|
14
14
|
import "../chunk-BMR66K6T.js";
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
} from "../chunk-RF7HGOBC.js";
|
|
17
17
|
import {
|
|
18
18
|
readHookInput
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-KHKN7Q7Z.js";
|
|
20
20
|
import "../chunk-3EF7G5EV.js";
|
|
21
21
|
import {
|
|
22
22
|
announceSubscriptionRequired,
|
|
23
23
|
isDeferAnswer
|
|
24
24
|
} from "../chunk-M2WLCRMX.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-UGJ25K2F.js";
|
|
26
|
+
import "../chunk-WHB622LP.js";
|
|
27
27
|
import "../chunk-OGB4QCB3.js";
|
|
28
28
|
import "../chunk-5TCLBCUO.js";
|
|
29
29
|
import "../chunk-BMR66K6T.js";
|
package/dist/bin/pushary-hook.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handlePreToolUse
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KUUMJRFS.js";
|
|
5
5
|
import "../chunk-DMWKPUAI.js";
|
|
6
6
|
import "../chunk-WSPDIT2B.js";
|
|
7
7
|
import {
|
|
@@ -12,11 +12,11 @@ import "../chunk-EPYNFHCW.js";
|
|
|
12
12
|
import "../chunk-C3HYWUZE.js";
|
|
13
13
|
import {
|
|
14
14
|
readToolHookCall
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-KHKN7Q7Z.js";
|
|
16
16
|
import "../chunk-3EF7G5EV.js";
|
|
17
17
|
import "../chunk-M2WLCRMX.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-UGJ25K2F.js";
|
|
19
|
+
import "../chunk-WHB622LP.js";
|
|
20
20
|
import {
|
|
21
21
|
activeHookSource,
|
|
22
22
|
normalizeToolCall,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
describeKeyAccount,
|
|
4
4
|
describeShellKeyShadow,
|
|
5
5
|
runBrowserLogin
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-W2GOSAFI.js";
|
|
7
7
|
import {
|
|
8
8
|
TRANSCRIPT_SYNC_NOTICE
|
|
9
9
|
} from "../chunk-G6SQOGSD.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
exitOnHelpFlag
|
|
24
24
|
} from "../chunk-MGT2V2AB.js";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-WHB622LP.js";
|
|
26
26
|
import {
|
|
27
27
|
recoverDaemonAfterLogin
|
|
28
28
|
} from "../chunk-5TCLBCUO.js";
|
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
planCliKeyRevocations,
|
|
9
9
|
readCliHeldKeys,
|
|
10
10
|
sparedKeys
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-JQ3X62Q7.js";
|
|
12
12
|
import {
|
|
13
13
|
keyNoLongerAccepted,
|
|
14
14
|
keyValidityOf,
|
|
15
15
|
revokeOwnKey
|
|
16
16
|
} from "../chunk-OYIN77HO.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-HKID4EAA.js";
|
|
18
18
|
import {
|
|
19
19
|
API_KEYS_PATH
|
|
20
20
|
} from "../chunk-EQF6SSQL.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-Z3W42VTS.js";
|
|
22
22
|
import {
|
|
23
23
|
createIo
|
|
24
24
|
} from "../chunk-UOVTXOSS.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KHKN7Q7Z.js";
|
|
5
5
|
import "../chunk-3EF7G5EV.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-UGJ25K2F.js";
|
|
7
|
+
import "../chunk-WHB622LP.js";
|
|
8
8
|
import {
|
|
9
9
|
activeHookSource,
|
|
10
10
|
activeIdentity
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
} from "../chunk-C3HYWUZE.js";
|
|
14
14
|
import {
|
|
15
15
|
readHookInput
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-KHKN7Q7Z.js";
|
|
17
17
|
import "../chunk-3EF7G5EV.js";
|
|
18
18
|
import {
|
|
19
19
|
announceSubscriptionRequired,
|
|
20
20
|
isDeferAnswer
|
|
21
21
|
} from "../chunk-M2WLCRMX.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-UGJ25K2F.js";
|
|
23
|
+
import "../chunk-WHB622LP.js";
|
|
24
24
|
import "../chunk-OGB4QCB3.js";
|
|
25
25
|
import "../chunk-5TCLBCUO.js";
|
|
26
26
|
import "../chunk-BMR66K6T.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handlePermissionDenied
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KUUMJRFS.js";
|
|
5
5
|
import "../chunk-DMWKPUAI.js";
|
|
6
6
|
import "../chunk-WSPDIT2B.js";
|
|
7
7
|
import {
|
|
@@ -12,11 +12,11 @@ import "../chunk-EPYNFHCW.js";
|
|
|
12
12
|
import "../chunk-C3HYWUZE.js";
|
|
13
13
|
import {
|
|
14
14
|
readHookInput
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-KHKN7Q7Z.js";
|
|
16
16
|
import "../chunk-3EF7G5EV.js";
|
|
17
17
|
import "../chunk-M2WLCRMX.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-UGJ25K2F.js";
|
|
19
|
+
import "../chunk-WHB622LP.js";
|
|
20
20
|
import "../chunk-OGB4QCB3.js";
|
|
21
21
|
import "../chunk-5TCLBCUO.js";
|
|
22
22
|
import "../chunk-BMR66K6T.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handlePermissionRequest
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KUUMJRFS.js";
|
|
5
5
|
import "../chunk-DMWKPUAI.js";
|
|
6
6
|
import "../chunk-WSPDIT2B.js";
|
|
7
7
|
import {
|
|
@@ -12,11 +12,11 @@ import "../chunk-EPYNFHCW.js";
|
|
|
12
12
|
import "../chunk-C3HYWUZE.js";
|
|
13
13
|
import {
|
|
14
14
|
readToolHookInput
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-KHKN7Q7Z.js";
|
|
16
16
|
import "../chunk-3EF7G5EV.js";
|
|
17
17
|
import "../chunk-M2WLCRMX.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-UGJ25K2F.js";
|
|
19
|
+
import "../chunk-WHB622LP.js";
|
|
20
20
|
import {
|
|
21
21
|
activeHookSource,
|
|
22
22
|
normalizeToolCall,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "../chunk-DMWKPUAI.js";
|
|
5
5
|
import {
|
|
6
6
|
readHookInput
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-KHKN7Q7Z.js";
|
|
8
8
|
import "../chunk-3EF7G5EV.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-UGJ25K2F.js";
|
|
10
|
+
import "../chunk-WHB622LP.js";
|
|
11
11
|
import {
|
|
12
12
|
activeHookSource,
|
|
13
13
|
activeIdentity,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KHKN7Q7Z.js";
|
|
5
5
|
import "../chunk-3EF7G5EV.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-UGJ25K2F.js";
|
|
7
|
+
import "../chunk-WHB622LP.js";
|
|
8
8
|
import {
|
|
9
9
|
activeHookSource,
|
|
10
10
|
activeIdentity
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
import "../chunk-CYTPQDQY.js";
|
|
6
6
|
import {
|
|
7
7
|
readHookInput
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-KHKN7Q7Z.js";
|
|
9
9
|
import "../chunk-3EF7G5EV.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-UGJ25K2F.js";
|
|
11
|
+
import "../chunk-WHB622LP.js";
|
|
12
12
|
import {
|
|
13
13
|
activeHookSource,
|
|
14
14
|
activeIdentity
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
reapplyClaudeForVersion
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-4IOT26IC.js";
|
|
5
5
|
import "../chunk-T3LSBTWU.js";
|
|
6
6
|
import "../chunk-UAYNQ2IG.js";
|
|
7
7
|
import "../chunk-HXX4EFK3.js";
|
|
8
8
|
import "../chunk-S6DJAYQW.js";
|
|
9
9
|
import "../chunk-2N23JFER.js";
|
|
10
10
|
import "../chunk-DDSMTD4W.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-Z3W42VTS.js";
|
|
12
12
|
import "../chunk-MEUAK5BK.js";
|
|
13
13
|
import "../chunk-CYTPQDQY.js";
|
|
14
14
|
import {
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
} from "../chunk-RF7HGOBC.js";
|
|
17
17
|
import {
|
|
18
18
|
readHookInput
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-KHKN7Q7Z.js";
|
|
20
20
|
import "../chunk-3EF7G5EV.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-UGJ25K2F.js";
|
|
22
|
+
import "../chunk-WHB622LP.js";
|
|
23
23
|
import {
|
|
24
24
|
activeHookSource,
|
|
25
25
|
activeIdentity
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
runBrowserLogin,
|
|
23
23
|
switchBackToTheShellKeyLine,
|
|
24
24
|
wrongAccountHintPlacement
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-W2GOSAFI.js";
|
|
26
26
|
import {
|
|
27
27
|
INSTALL_NODE_STEP,
|
|
28
28
|
NPM_FILE_IN_USE_STEP,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
import "../chunk-PUZZELE6.js";
|
|
50
50
|
import {
|
|
51
51
|
readCodexHooksOnDisk
|
|
52
|
-
} from "../chunk-
|
|
52
|
+
} from "../chunk-FIBJOHFC.js";
|
|
53
53
|
import "../chunk-WSPDIT2B.js";
|
|
54
54
|
import {
|
|
55
55
|
clearDeclinedAgent,
|
|
@@ -143,12 +143,12 @@ import {
|
|
|
143
143
|
registerPluginLocation,
|
|
144
144
|
shortenHome,
|
|
145
145
|
vscodeSettingsTargets
|
|
146
|
-
} from "../chunk-
|
|
146
|
+
} from "../chunk-TIGOIQFK.js";
|
|
147
147
|
import "../chunk-OYIN77HO.js";
|
|
148
148
|
import {
|
|
149
149
|
mcpServerBearer,
|
|
150
150
|
readMacAppAgentKey
|
|
151
|
-
} from "../chunk-
|
|
151
|
+
} from "../chunk-HKID4EAA.js";
|
|
152
152
|
import {
|
|
153
153
|
keyScopeOf
|
|
154
154
|
} from "../chunk-EQF6SSQL.js";
|
|
@@ -223,13 +223,14 @@ import {
|
|
|
223
223
|
openCodeConfigDir,
|
|
224
224
|
openCodeConfigFile,
|
|
225
225
|
openCodeHookArgv,
|
|
226
|
+
openCodeInstructionsBody,
|
|
226
227
|
openCodeInstructionsFile,
|
|
227
228
|
openCodePermissionsLeftOpen,
|
|
228
229
|
openCodePluginDir,
|
|
229
230
|
openCodePluginFile,
|
|
230
231
|
openCodeWired,
|
|
231
232
|
withOpenCodeAskRules
|
|
232
|
-
} from "../chunk-
|
|
233
|
+
} from "../chunk-Z3W42VTS.js";
|
|
233
234
|
import {
|
|
234
235
|
ansiPainter,
|
|
235
236
|
ciMarker,
|
|
@@ -259,7 +260,7 @@ import {
|
|
|
259
260
|
takeAutoUpdateAnnouncement
|
|
260
261
|
} from "../chunk-RF7HGOBC.js";
|
|
261
262
|
import "../chunk-3EF7G5EV.js";
|
|
262
|
-
import "../chunk-
|
|
263
|
+
import "../chunk-WHB622LP.js";
|
|
263
264
|
import {
|
|
264
265
|
addCompatibleHooks,
|
|
265
266
|
addCompatibleMcpServer,
|
|
@@ -367,7 +368,6 @@ import {
|
|
|
367
368
|
CODEX_INSTRUCTIONS_LABEL,
|
|
368
369
|
CODEX_RESTART_AFTER_TRANSPORT_CHANGE,
|
|
369
370
|
GEMINI_INSTRUCTIONS_LABEL,
|
|
370
|
-
OPENCODE_INSTRUCTIONS_LABEL,
|
|
371
371
|
SHARED_AGENTS_MD_LABEL,
|
|
372
372
|
addClaudeMcpServer,
|
|
373
373
|
addCodexHookTrust,
|
|
@@ -1880,7 +1880,7 @@ var setupOpenCode = async (apiKey) => {
|
|
|
1880
1880
|
writeSetupConfigJson(openCodeConfigFile(), withRules.config, KEY_FILE_MODE);
|
|
1881
1881
|
});
|
|
1882
1882
|
await spinner("Teaching OpenCode to ask via push", async () => {
|
|
1883
|
-
writeInstructionBlock(OPENCODE_INSTRUCTIONS(),
|
|
1883
|
+
writeInstructionBlock(OPENCODE_INSTRUCTIONS(), openCodeInstructionsBody());
|
|
1884
1884
|
});
|
|
1885
1885
|
console.log();
|
|
1886
1886
|
console.log(` ${dim("What this configured:")}`);
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
CONNECTED_THROUGH_MAC_APP,
|
|
27
27
|
keyWrittenByMacApp,
|
|
28
28
|
readMacAppConnectionWhenKeyless
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-HKID4EAA.js";
|
|
30
30
|
import "../chunk-EQF6SSQL.js";
|
|
31
31
|
import "../chunk-QCGNGEGE.js";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-Z3W42VTS.js";
|
|
33
33
|
import {
|
|
34
34
|
createIo
|
|
35
35
|
} from "../chunk-UOVTXOSS.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KHKN7Q7Z.js";
|
|
5
5
|
import "../chunk-3EF7G5EV.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-UGJ25K2F.js";
|
|
7
|
+
import "../chunk-WHB622LP.js";
|
|
8
8
|
import {
|
|
9
9
|
activeHookSource,
|
|
10
10
|
activeIdentity
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
readHookInput
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-KHKN7Q7Z.js";
|
|
5
5
|
import "../chunk-3EF7G5EV.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-UGJ25K2F.js";
|
|
7
|
+
import "../chunk-WHB622LP.js";
|
|
8
8
|
import {
|
|
9
9
|
activeHookSource,
|
|
10
10
|
activeIdentity
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
} from "../chunk-OJUW7QW2.js";
|
|
6
6
|
import {
|
|
7
7
|
registerTranscript
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-UGJ25K2F.js";
|
|
9
|
+
import "../chunk-WHB622LP.js";
|
|
10
10
|
import "../chunk-5TCLBCUO.js";
|
|
11
11
|
import "../chunk-BMR66K6T.js";
|
|
12
12
|
import "../chunk-JIH55UHZ.js";
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
clearSnapshotRecipientPins,
|
|
16
16
|
snapshotRecipientPinFile
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-UGJ25K2F.js";
|
|
18
|
+
import "../chunk-WHB622LP.js";
|
|
19
19
|
import "../chunk-5TCLBCUO.js";
|
|
20
20
|
import "../chunk-BMR66K6T.js";
|
|
21
21
|
import "../chunk-JIH55UHZ.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
ensureCodexTrustAfterReapply,
|
|
30
30
|
reapplyAllAgents
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-4IOT26IC.js";
|
|
32
32
|
import {
|
|
33
33
|
HERMES_RESTART_COMMAND,
|
|
34
34
|
describeCodexTrustConfirmation
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
import "../chunk-T3LSBTWU.js";
|
|
45
45
|
import {
|
|
46
46
|
readMacAppAgentKey
|
|
47
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-HKID4EAA.js";
|
|
48
48
|
import "../chunk-EQF6SSQL.js";
|
|
49
49
|
import "../chunk-UAYNQ2IG.js";
|
|
50
50
|
import "../chunk-HXX4EFK3.js";
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
retryAgentCommand
|
|
61
61
|
} from "../chunk-2N23JFER.js";
|
|
62
62
|
import "../chunk-DDSMTD4W.js";
|
|
63
|
-
import "../chunk-
|
|
63
|
+
import "../chunk-Z3W42VTS.js";
|
|
64
64
|
import {
|
|
65
65
|
exitOnHelpFlag
|
|
66
66
|
} from "../chunk-MGT2V2AB.js";
|
|
@@ -26,11 +26,12 @@ import {
|
|
|
26
26
|
macAppBridgeAvailable,
|
|
27
27
|
openCodeConfigFile,
|
|
28
28
|
openCodeHookArgv,
|
|
29
|
+
openCodeInstructionsBody,
|
|
29
30
|
openCodeInstructionsFile,
|
|
30
31
|
openCodePluginDir,
|
|
31
32
|
openCodeWired,
|
|
32
33
|
withOpenCodeAskRules
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-Z3W42VTS.js";
|
|
34
35
|
import {
|
|
35
36
|
detectClaudeVersion
|
|
36
37
|
} from "./chunk-MEUAK5BK.js";
|
|
@@ -63,7 +64,6 @@ import {
|
|
|
63
64
|
CODEX_HOOK_BINARY,
|
|
64
65
|
CODEX_INSTRUCTIONS_LABEL,
|
|
65
66
|
GEMINI_INSTRUCTIONS_LABEL,
|
|
66
|
-
OPENCODE_INSTRUCTIONS_LABEL,
|
|
67
67
|
addClaudeMcpServer,
|
|
68
68
|
addCodexHookTrust,
|
|
69
69
|
addCodexHooks,
|
|
@@ -532,7 +532,7 @@ var reapplyAllAgents = async (apiKey, options = {}) => {
|
|
|
532
532
|
id: "opencode",
|
|
533
533
|
label: "OpenCode",
|
|
534
534
|
run: () => reapplyOpenCodePlugin(),
|
|
535
|
-
instructions: () => ({ file: openCodeInstructionsFile(), body:
|
|
535
|
+
instructions: () => ({ file: openCodeInstructionsFile(), body: openCodeInstructionsBody() })
|
|
536
536
|
},
|
|
537
537
|
{ id: "fx", label: "fx", run: () => reapplyFxWiring(apiKey), instructions: fxInstructionTarget },
|
|
538
538
|
{ id: "cline", label: CLINE_LABEL, run: () => reapplyClineSettings(apiKey), instructions: clineInstructionTarget },
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
AGENT_CHOICES
|
|
10
10
|
} from "./chunk-6UGVZTRA.js";
|
|
11
11
|
import {
|
|
12
|
+
OPENCODE_INSTRUCTIONS_LABEL,
|
|
12
13
|
bridgeStub,
|
|
13
14
|
claudeSettings,
|
|
14
15
|
codexHooksJson,
|
|
@@ -16,6 +17,7 @@ import {
|
|
|
16
17
|
geminiSettings,
|
|
17
18
|
guardedArgv,
|
|
18
19
|
liveBridgeProbe,
|
|
20
|
+
renderAgentInstructions,
|
|
19
21
|
resolveBridgeStub,
|
|
20
22
|
vscodePluginDir,
|
|
21
23
|
windowsNodeLauncherFor
|
|
@@ -445,6 +447,11 @@ var OPENCODE_CONFIG_FILE = "opencode.json";
|
|
|
445
447
|
var openCodeConfigFile = () => join(openCodeConfigDir(), OPENCODE_CONFIG_FILE);
|
|
446
448
|
var OPENCODE_INSTRUCTIONS_FILE = "AGENTS.md";
|
|
447
449
|
var openCodeInstructionsFile = () => join(openCodeConfigDir(), OPENCODE_INSTRUCTIONS_FILE);
|
|
450
|
+
var OPENCODE_QUESTION_TOOL = "question";
|
|
451
|
+
var OPENCODE_QUESTION_NOTE = `In OpenCode, this replaces the guidance above to ask in the terminal while the user is there: ask every question through the Pushary \`ask_user\` tool, even while the user is at this terminal, and not through OpenCode's own \`${OPENCODE_QUESTION_TOOL}\` tool. When Pushary's tools are listed under Code Mode, call them inside \`execute\`, for example \`await tools.pushary.ask_user({ ... })\` and \`await tools.pushary.wait_for_answer({ ... })\`. Otherwise OpenCode lists them as direct tools such as \`pushary_ask_user\`. That includes a question the user asks you to put to them, such as "ask me a multiple choice question": use \`ask_user\` with type "select". Ask one question at a time and wait for its answer before asking the next. OpenCode's question prompt cannot reach the phone or the Mac notch, so a question asked there waits unseen once the user steps away. Ask in your reply or with the \`${OPENCODE_QUESTION_TOOL}\` tool instead only when a Pushary handoffAction tells you to ask here, or when Pushary's tools are listed under neither name or \`ask_user\` fails without a handoffAction.`;
|
|
452
|
+
var openCodeInstructionsBody = () => `${renderAgentInstructions(OPENCODE_INSTRUCTIONS_LABEL)}
|
|
453
|
+
|
|
454
|
+
${OPENCODE_QUESTION_NOTE}`;
|
|
448
455
|
var asRecord = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
449
456
|
var addOpenCodeMcpServer = (config, apiKey) => {
|
|
450
457
|
const servers = asRecord(config.mcp) ?? {};
|
|
@@ -571,6 +578,7 @@ export {
|
|
|
571
578
|
openCodeWired,
|
|
572
579
|
openCodeConfigFile,
|
|
573
580
|
openCodeInstructionsFile,
|
|
581
|
+
openCodeInstructionsBody,
|
|
574
582
|
addOpenCodeMcpServer,
|
|
575
583
|
OPENCODE_ASKED_PERMISSIONS,
|
|
576
584
|
withOpenCodeAskRules,
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
reapplyOpenCodePlugin,
|
|
13
13
|
reapplyVsCodePlugin,
|
|
14
14
|
repairCodexHolds
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4IOT26IC.js";
|
|
16
16
|
import "./chunk-T3LSBTWU.js";
|
|
17
17
|
import "./chunk-UAYNQ2IG.js";
|
|
18
18
|
import "./chunk-HXX4EFK3.js";
|
|
19
19
|
import "./chunk-S6DJAYQW.js";
|
|
20
20
|
import "./chunk-2N23JFER.js";
|
|
21
21
|
import "./chunk-DDSMTD4W.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-Z3W42VTS.js";
|
|
23
23
|
import "./chunk-MEUAK5BK.js";
|
|
24
24
|
import "./chunk-CYTPQDQY.js";
|
|
25
25
|
import "./chunk-OGB4QCB3.js";
|
package/dist/src/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handlePreToolUse
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-KUUMJRFS.js";
|
|
4
4
|
import "../chunk-DMWKPUAI.js";
|
|
5
5
|
import "../chunk-WSPDIT2B.js";
|
|
6
6
|
import "../chunk-B2SZN2C7.js";
|
|
7
7
|
import "../chunk-EPYNFHCW.js";
|
|
8
8
|
import "../chunk-C3HYWUZE.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-KHKN7Q7Z.js";
|
|
10
10
|
import "../chunk-3EF7G5EV.js";
|
|
11
11
|
import "../chunk-M2WLCRMX.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-UGJ25K2F.js";
|
|
13
|
+
import "../chunk-WHB622LP.js";
|
|
14
14
|
import "../chunk-OGB4QCB3.js";
|
|
15
15
|
import "../chunk-5TCLBCUO.js";
|
|
16
16
|
import "../chunk-BMR66K6T.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushary/agent-hooks",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.156",
|
|
4
4
|
"description": "Human-in-the-loop (HITL) for AI agents: ask a person for approvals or answers by push notification. One command connects Claude Code, Codex, Cursor, Gemini CLI and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pushary",
|