@pushary/agent-hooks 0.62.1 → 0.62.2
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 +34 -0
- package/dist/bin/pushary-claude.js +5 -2
- package/dist/bin/pushary-clean.js +3 -2
- package/dist/bin/pushary-codex-hook.js +5 -2
- package/dist/bin/pushary-codex.js +5 -2
- package/dist/bin/pushary-connect.js +14 -12
- package/dist/bin/pushary-daemon.js +5 -4
- package/dist/bin/pushary-doctor.js +18 -13
- package/dist/bin/pushary-gemini-hook.js +5 -2
- package/dist/bin/pushary-hook.js +8 -5
- package/dist/bin/pushary-login.js +13 -10
- package/dist/bin/pushary-logout.js +9 -8
- package/dist/bin/pushary-mode.js +29 -6
- package/dist/bin/pushary-notification-hook.js +5 -2
- package/dist/bin/pushary-permission-denied-hook.js +6 -3
- package/dist/bin/pushary-permission-hook.js +6 -3
- package/dist/bin/pushary-post-hook.js +5 -2
- package/dist/bin/pushary-prompt-hook.js +5 -2
- package/dist/bin/pushary-session-end-hook.js +5 -2
- package/dist/bin/pushary-session-start-hook.js +5 -2
- package/dist/bin/pushary-setup.js +15 -12
- package/dist/bin/pushary-stats.js +3 -2
- package/dist/bin/pushary-status.js +20 -7
- package/dist/bin/pushary-stop-hook.js +5 -2
- package/dist/bin/pushary-stopfailure-hook.js +5 -2
- package/dist/bin/pushary-suggestions.js +27 -2
- package/dist/bin/pushary-upgrade.js +3 -2
- package/dist/bin/pushary-wait.js +29 -6
- package/dist/bin/pushary.js +9 -2
- package/dist/{chunk-HIIBSYFJ.js → chunk-5ZDYDU2Q.js} +5 -1
- package/dist/{chunk-SP7OZXCQ.js → chunk-7OXIC7E3.js} +1 -15
- package/dist/{chunk-HNTKTK5B.js → chunk-BSZYIAZL.js} +4 -0
- package/dist/{chunk-YJ7YZRVV.js → chunk-G4TARJAY.js} +8 -54
- package/dist/{chunk-N4DA4CJB.js → chunk-GMXKITVA.js} +13 -0
- package/dist/chunk-KZERVKTD.js +16 -0
- package/dist/{chunk-3O27ZSRE.js → chunk-NGZMVCXN.js} +1 -1
- package/dist/chunk-SAF6HGAA.js +57 -0
- package/dist/{chunk-5SO3CEGJ.js → chunk-SDXF5I46.js} +1 -1
- package/dist/{chunk-ONVEYEVR.js → chunk-SR52774M.js} +2 -2
- package/dist/{chunk-IIZZYUWK.js → chunk-WXFEK7KD.js} +4 -2
- package/dist/{chunk-QHOVJXOT.js → chunk-Z3Z4VK5F.js} +2 -1
- package/dist/src/index.js +6 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.62.2
|
|
4
|
+
|
|
5
|
+
### An ignored `--dry-run` made real changes
|
|
6
|
+
|
|
7
|
+
`mode`, `wait`, `suggestions` and `status` read their arguments positionally and
|
|
8
|
+
silently discarded any flag they did not recognise. So `pushary mode push_only
|
|
9
|
+
--dry-run` dropped the flag and changed the mode for real. Those four now reject
|
|
10
|
+
an unknown flag and exit `2`, and they do it before looking for your API key, so
|
|
11
|
+
a typo is reported as a typo rather than as a missing key.
|
|
12
|
+
|
|
13
|
+
### The proxy support was never switched on
|
|
14
|
+
|
|
15
|
+
`HTTP_PROXY` and `HTTPS_PROXY` handling was written but never called from
|
|
16
|
+
anywhere, and Node's fetch ignores both without it. Behind a corporate proxy,
|
|
17
|
+
setup verified your key through the one code path that used it, reported
|
|
18
|
+
everything healthy, and every approval afterwards failed. It is now installed by
|
|
19
|
+
the shared HTTP layer, the MCP transport and the command dispatcher.
|
|
20
|
+
|
|
21
|
+
### `doctor --json` woke your phone on every run
|
|
22
|
+
|
|
23
|
+
The test push was skipped only for `--no-push`. Running `pushary doctor --json`
|
|
24
|
+
on a schedule sent a real notification each time. It is now opt-out for a person
|
|
25
|
+
at a terminal and off by default for `--json` or a non-TTY. Pass `--roundtrip` to
|
|
26
|
+
send one deliberately.
|
|
27
|
+
|
|
28
|
+
### Browser login could stall on the plan step
|
|
29
|
+
|
|
30
|
+
Choosing a plan navigated the same tab away from the authorize page, and that
|
|
31
|
+
page was the only thing that could finish the login once the plan activated, so
|
|
32
|
+
the terminal waited on a promise nothing was going to keep. Checkout now opens in
|
|
33
|
+
a new tab and the page completes the login by itself. The CLI no longer claims it
|
|
34
|
+
finishes on its own without saying the tab has to stay open.
|
|
35
|
+
|
|
36
|
+
|
|
3
37
|
## 0.62.1
|
|
4
38
|
|
|
5
39
|
### `pushary clean --dry-run` was not a dry run
|
|
@@ -17,8 +17,10 @@ import {
|
|
|
17
17
|
reportEvent,
|
|
18
18
|
resolvePolicy,
|
|
19
19
|
waitForAnswer
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-5ZDYDU2Q.js";
|
|
21
|
+
import "../chunk-BSZYIAZL.js";
|
|
22
|
+
import "../chunk-SAF6HGAA.js";
|
|
23
|
+
import "../chunk-7QLSKOSU.js";
|
|
22
24
|
import {
|
|
23
25
|
redactSecrets
|
|
24
26
|
} from "../chunk-DQAN3JQP.js";
|
|
@@ -29,6 +31,7 @@ import {
|
|
|
29
31
|
getApiKey,
|
|
30
32
|
getBaseUrl
|
|
31
33
|
} from "../chunk-2UMNXADU.js";
|
|
34
|
+
import "../chunk-KZERVKTD.js";
|
|
32
35
|
|
|
33
36
|
// src/wrapper/claudeBinary.ts
|
|
34
37
|
import { statSync } from "fs";
|
|
@@ -24,9 +24,10 @@ import {
|
|
|
24
24
|
} from "../chunk-MUEW424A.js";
|
|
25
25
|
import {
|
|
26
26
|
exitOnHelpFlag
|
|
27
|
-
} from "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
} from "../chunk-WXFEK7KD.js";
|
|
28
|
+
import "../chunk-7OXIC7E3.js";
|
|
29
29
|
import "../chunk-DQAN3JQP.js";
|
|
30
|
+
import "../chunk-KZERVKTD.js";
|
|
30
31
|
|
|
31
32
|
// bin/pushary-clean.ts
|
|
32
33
|
import { existsSync, readFileSync, writeFileSync, copyFileSync, rmSync, readdirSync } from "fs";
|
|
@@ -31,12 +31,14 @@ import {
|
|
|
31
31
|
toCodexWire,
|
|
32
32
|
toPolicyLookup,
|
|
33
33
|
waitForAnswer
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-5ZDYDU2Q.js";
|
|
35
35
|
import {
|
|
36
36
|
isGatingMoment,
|
|
37
37
|
recordKeylessMoment
|
|
38
38
|
} from "../chunk-WLGEY4UX.js";
|
|
39
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-BSZYIAZL.js";
|
|
40
|
+
import "../chunk-SAF6HGAA.js";
|
|
41
|
+
import "../chunk-7QLSKOSU.js";
|
|
40
42
|
import {
|
|
41
43
|
DECISION_LINE_MAX,
|
|
42
44
|
effectiveWaitSeconds,
|
|
@@ -49,6 +51,7 @@ import {
|
|
|
49
51
|
import {
|
|
50
52
|
getApiKey
|
|
51
53
|
} from "../chunk-2UMNXADU.js";
|
|
54
|
+
import "../chunk-KZERVKTD.js";
|
|
52
55
|
|
|
53
56
|
// bin/pushary-codex-hook.ts
|
|
54
57
|
import { basename, join } from "path";
|
|
@@ -3,8 +3,10 @@ import {
|
|
|
3
3
|
askUser,
|
|
4
4
|
reportEvent,
|
|
5
5
|
waitForAnswer
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-5ZDYDU2Q.js";
|
|
7
|
+
import "../chunk-BSZYIAZL.js";
|
|
8
|
+
import "../chunk-SAF6HGAA.js";
|
|
9
|
+
import "../chunk-7QLSKOSU.js";
|
|
8
10
|
import "../chunk-DQAN3JQP.js";
|
|
9
11
|
import {
|
|
10
12
|
getMachineId
|
|
@@ -12,6 +14,7 @@ import {
|
|
|
12
14
|
import {
|
|
13
15
|
getApiKey
|
|
14
16
|
} from "../chunk-2UMNXADU.js";
|
|
17
|
+
import "../chunk-KZERVKTD.js";
|
|
15
18
|
|
|
16
19
|
// bin/pushary-codex.ts
|
|
17
20
|
import { basename } from "path";
|
|
@@ -1,39 +1,41 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
printKeyCheck
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-SR52774M.js";
|
|
5
5
|
import {
|
|
6
6
|
confirmAppConnection,
|
|
7
7
|
connectDevice,
|
|
8
8
|
printConnectInstructions
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-NGZMVCXN.js";
|
|
10
10
|
import "../chunk-3EGEA4KH.js";
|
|
11
|
-
import {
|
|
12
|
-
parseFlags
|
|
13
|
-
} from "../chunk-N4DA4CJB.js";
|
|
14
11
|
import {
|
|
15
12
|
readKeySource
|
|
16
13
|
} from "../chunk-COC6NPWG.js";
|
|
17
14
|
import "../chunk-6MTNS63X.js";
|
|
18
15
|
import {
|
|
19
16
|
checkApiKey
|
|
20
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-G4TARJAY.js";
|
|
21
18
|
import {
|
|
22
19
|
createIo
|
|
23
20
|
} from "../chunk-TX7KBKT7.js";
|
|
24
21
|
import {
|
|
25
|
-
|
|
26
|
-
} from "../chunk-
|
|
22
|
+
parseFlags
|
|
23
|
+
} from "../chunk-GMXKITVA.js";
|
|
27
24
|
import "../chunk-BC3VCZ3E.js";
|
|
28
25
|
import {
|
|
29
26
|
exitOnHelpFlag
|
|
30
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-WXFEK7KD.js";
|
|
28
|
+
import "../chunk-7OXIC7E3.js";
|
|
29
|
+
import "../chunk-BSZYIAZL.js";
|
|
30
|
+
import "../chunk-SAF6HGAA.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "../chunk-
|
|
34
|
-
import "../chunk-HNTKTK5B.js";
|
|
32
|
+
UsageError
|
|
33
|
+
} from "../chunk-7QLSKOSU.js";
|
|
35
34
|
import "../chunk-DQAN3JQP.js";
|
|
36
35
|
import "../chunk-2UMNXADU.js";
|
|
36
|
+
import {
|
|
37
|
+
EXIT
|
|
38
|
+
} from "../chunk-KZERVKTD.js";
|
|
37
39
|
|
|
38
40
|
// bin/pushary-connect.ts
|
|
39
41
|
exitOnHelpFlag("connect");
|
|
@@ -7,10 +7,8 @@ import {
|
|
|
7
7
|
} from "../chunk-MUEW424A.js";
|
|
8
8
|
import {
|
|
9
9
|
exitOnHelpFlag
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import
|
|
12
|
-
EXIT
|
|
13
|
-
} from "../chunk-SP7OZXCQ.js";
|
|
10
|
+
} from "../chunk-WXFEK7KD.js";
|
|
11
|
+
import "../chunk-7OXIC7E3.js";
|
|
14
12
|
import {
|
|
15
13
|
getMachineId
|
|
16
14
|
} from "../chunk-RN3NOEJF.js";
|
|
@@ -18,6 +16,9 @@ import {
|
|
|
18
16
|
getApiKey,
|
|
19
17
|
getBaseUrl
|
|
20
18
|
} from "../chunk-2UMNXADU.js";
|
|
19
|
+
import {
|
|
20
|
+
EXIT
|
|
21
|
+
} from "../chunk-KZERVKTD.js";
|
|
21
22
|
|
|
22
23
|
// src/spawn-daemon.ts
|
|
23
24
|
import { spawn } from "child_process";
|
|
@@ -27,11 +27,8 @@ import {
|
|
|
27
27
|
describeReach,
|
|
28
28
|
fetchChannels,
|
|
29
29
|
reachVerdict
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-NGZMVCXN.js";
|
|
31
31
|
import "../chunk-3EGEA4KH.js";
|
|
32
|
-
import {
|
|
33
|
-
parseFlags
|
|
34
|
-
} from "../chunk-N4DA4CJB.js";
|
|
35
32
|
import {
|
|
36
33
|
keyPrefix,
|
|
37
34
|
readKeySource
|
|
@@ -40,31 +37,34 @@ import "../chunk-6MTNS63X.js";
|
|
|
40
37
|
import {
|
|
41
38
|
checkApiKey,
|
|
42
39
|
describeKeyCheck
|
|
43
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-G4TARJAY.js";
|
|
44
41
|
import {
|
|
45
42
|
createIo
|
|
46
43
|
} from "../chunk-TX7KBKT7.js";
|
|
47
44
|
import {
|
|
48
|
-
|
|
49
|
-
} from "../chunk-
|
|
45
|
+
parseFlags
|
|
46
|
+
} from "../chunk-GMXKITVA.js";
|
|
50
47
|
import "../chunk-BC3VCZ3E.js";
|
|
51
48
|
import {
|
|
52
49
|
execNpm
|
|
53
50
|
} from "../chunk-MUEW424A.js";
|
|
54
51
|
import {
|
|
55
52
|
exitOnHelpFlag
|
|
56
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-WXFEK7KD.js";
|
|
57
54
|
import {
|
|
58
|
-
EXIT,
|
|
59
55
|
getPackageVersion
|
|
60
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-7OXIC7E3.js";
|
|
61
57
|
import {
|
|
62
58
|
readLedgerSummary
|
|
63
59
|
} from "../chunk-WLGEY4UX.js";
|
|
64
60
|
import {
|
|
65
61
|
callMcpTool,
|
|
66
62
|
sendMcpRequest
|
|
67
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-BSZYIAZL.js";
|
|
64
|
+
import "../chunk-SAF6HGAA.js";
|
|
65
|
+
import {
|
|
66
|
+
UsageError
|
|
67
|
+
} from "../chunk-7QLSKOSU.js";
|
|
68
68
|
import "../chunk-DQAN3JQP.js";
|
|
69
69
|
import {
|
|
70
70
|
getMachineId
|
|
@@ -72,6 +72,9 @@ import {
|
|
|
72
72
|
import {
|
|
73
73
|
getBaseUrl
|
|
74
74
|
} from "../chunk-2UMNXADU.js";
|
|
75
|
+
import {
|
|
76
|
+
EXIT
|
|
77
|
+
} from "../chunk-KZERVKTD.js";
|
|
75
78
|
|
|
76
79
|
// bin/pushary-doctor.ts
|
|
77
80
|
import { existsSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -573,8 +576,10 @@ var main = async () => {
|
|
|
573
576
|
const verdict = reachVerdict(channels);
|
|
574
577
|
check(verdict.kind === "yours", "Phone reachable", verdict.kind === "yours" ? describeReach(channels) : verdict.kind === "nobody" ? "nothing connected, run pushary connect or get the app at https://pushary.com/download" : `${describeReach(channels)}; run pushary connect to add your own`);
|
|
575
578
|
}
|
|
576
|
-
|
|
577
|
-
|
|
579
|
+
const pushSuppressed = !options.roundtrip && (options.noPush || options.json || !process.stdout.isTTY);
|
|
580
|
+
if (pushSuppressed) {
|
|
581
|
+
const why = options.noPush ? "--no-push" : options.json ? "--json" : "not a terminal";
|
|
582
|
+
console.log(` ${dim("\u2013")} Test push skipped ${dim(`(${why}; pass --roundtrip to send one)`)}`);
|
|
578
583
|
} else try {
|
|
579
584
|
const result = await callMcpTool(apiKey, "send_notification", {
|
|
580
585
|
title: "Pushary Doctor",
|
|
@@ -23,12 +23,14 @@ import {
|
|
|
23
23
|
savePendingQuestion,
|
|
24
24
|
sendNotification,
|
|
25
25
|
waitForAnswer
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-5ZDYDU2Q.js";
|
|
27
27
|
import {
|
|
28
28
|
isGatingMoment,
|
|
29
29
|
recordKeylessMoment
|
|
30
30
|
} from "../chunk-WLGEY4UX.js";
|
|
31
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-BSZYIAZL.js";
|
|
32
|
+
import "../chunk-SAF6HGAA.js";
|
|
33
|
+
import "../chunk-7QLSKOSU.js";
|
|
32
34
|
import {
|
|
33
35
|
DECISION_LINE_MAX,
|
|
34
36
|
effectiveWaitSeconds,
|
|
@@ -41,6 +43,7 @@ import {
|
|
|
41
43
|
import {
|
|
42
44
|
getApiKey
|
|
43
45
|
} from "../chunk-2UMNXADU.js";
|
|
46
|
+
import "../chunk-KZERVKTD.js";
|
|
44
47
|
|
|
45
48
|
// bin/pushary-gemini-hook.ts
|
|
46
49
|
import { basename } from "path";
|
package/dist/bin/pushary-hook.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handlePreToolUse
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-SDXF5I46.js";
|
|
5
5
|
import "../chunk-CAJZAFVS.js";
|
|
6
6
|
import {
|
|
7
7
|
exitOnHelpFlag
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-WXFEK7KD.js";
|
|
9
|
+
import "../chunk-7OXIC7E3.js";
|
|
10
10
|
import "../chunk-YHG74UFF.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-5ZDYDU2Q.js";
|
|
12
12
|
import "../chunk-WLGEY4UX.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-BSZYIAZL.js";
|
|
14
|
+
import "../chunk-SAF6HGAA.js";
|
|
15
|
+
import "../chunk-7QLSKOSU.js";
|
|
14
16
|
import "../chunk-DQAN3JQP.js";
|
|
15
17
|
import "../chunk-RN3NOEJF.js";
|
|
16
18
|
import "../chunk-2UMNXADU.js";
|
|
19
|
+
import "../chunk-KZERVKTD.js";
|
|
17
20
|
|
|
18
21
|
// bin/pushary-hook.ts
|
|
19
22
|
exitOnHelpFlag("hook");
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runBrowserLogin
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-Z3Z4VK5F.js";
|
|
5
5
|
import "../chunk-3EGEA4KH.js";
|
|
6
|
-
import {
|
|
7
|
-
parseFlags
|
|
8
|
-
} from "../chunk-N4DA4CJB.js";
|
|
9
6
|
import {
|
|
10
7
|
readKeySource,
|
|
11
8
|
writeKey
|
|
@@ -14,25 +11,31 @@ import "../chunk-6MTNS63X.js";
|
|
|
14
11
|
import {
|
|
15
12
|
checkApiKey,
|
|
16
13
|
describeKeyCheck
|
|
17
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-G4TARJAY.js";
|
|
18
15
|
import {
|
|
19
16
|
createIo
|
|
20
17
|
} from "../chunk-TX7KBKT7.js";
|
|
21
18
|
import {
|
|
22
|
-
|
|
23
|
-
} from "../chunk-
|
|
19
|
+
parseFlags
|
|
20
|
+
} from "../chunk-GMXKITVA.js";
|
|
24
21
|
import "../chunk-BC3VCZ3E.js";
|
|
25
22
|
import {
|
|
26
23
|
exitOnHelpFlag
|
|
27
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-WXFEK7KD.js";
|
|
28
25
|
import {
|
|
29
|
-
EXIT,
|
|
30
26
|
getPackageVersion
|
|
31
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-7OXIC7E3.js";
|
|
28
|
+
import "../chunk-SAF6HGAA.js";
|
|
29
|
+
import {
|
|
30
|
+
UsageError
|
|
31
|
+
} from "../chunk-7QLSKOSU.js";
|
|
32
32
|
import {
|
|
33
33
|
isValidApiKey
|
|
34
34
|
} from "../chunk-DQAN3JQP.js";
|
|
35
35
|
import "../chunk-2UMNXADU.js";
|
|
36
|
+
import {
|
|
37
|
+
EXIT
|
|
38
|
+
} from "../chunk-KZERVKTD.js";
|
|
36
39
|
|
|
37
40
|
// bin/pushary-login.ts
|
|
38
41
|
exitOnHelpFlag("login");
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
import {
|
|
3
3
|
codexConfigToml
|
|
4
4
|
} from "../chunk-ER657KRJ.js";
|
|
5
|
-
import {
|
|
6
|
-
parseFlags
|
|
7
|
-
} from "../chunk-N4DA4CJB.js";
|
|
8
5
|
import {
|
|
9
6
|
clearKey,
|
|
10
7
|
readKeySource
|
|
@@ -14,19 +11,23 @@ import {
|
|
|
14
11
|
createIo
|
|
15
12
|
} from "../chunk-TX7KBKT7.js";
|
|
16
13
|
import {
|
|
17
|
-
|
|
18
|
-
} from "../chunk-
|
|
14
|
+
parseFlags
|
|
15
|
+
} from "../chunk-GMXKITVA.js";
|
|
19
16
|
import "../chunk-BC3VCZ3E.js";
|
|
20
17
|
import {
|
|
21
18
|
exitOnHelpFlag
|
|
22
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-WXFEK7KD.js";
|
|
20
|
+
import "../chunk-7OXIC7E3.js";
|
|
23
21
|
import {
|
|
24
|
-
|
|
25
|
-
} from "../chunk-
|
|
22
|
+
UsageError
|
|
23
|
+
} from "../chunk-7QLSKOSU.js";
|
|
26
24
|
import "../chunk-DQAN3JQP.js";
|
|
27
25
|
import {
|
|
28
26
|
getBaseUrl
|
|
29
27
|
} from "../chunk-2UMNXADU.js";
|
|
28
|
+
import {
|
|
29
|
+
EXIT
|
|
30
|
+
} from "../chunk-KZERVKTD.js";
|
|
30
31
|
|
|
31
32
|
// bin/pushary-logout.ts
|
|
32
33
|
import { existsSync } from "fs";
|
package/dist/bin/pushary-mode.js
CHANGED
|
@@ -1,23 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
exitOnFailedResponse
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-SR52774M.js";
|
|
5
|
+
import "../chunk-G4TARJAY.js";
|
|
6
6
|
import {
|
|
7
7
|
createIo
|
|
8
8
|
} from "../chunk-TX7KBKT7.js";
|
|
9
|
-
import
|
|
9
|
+
import {
|
|
10
|
+
rejectUnknownFlags
|
|
11
|
+
} from "../chunk-GMXKITVA.js";
|
|
10
12
|
import {
|
|
11
13
|
exitOnHelpFlag
|
|
12
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-WXFEK7KD.js";
|
|
15
|
+
import "../chunk-7OXIC7E3.js";
|
|
16
|
+
import "../chunk-SAF6HGAA.js";
|
|
13
17
|
import {
|
|
14
|
-
|
|
15
|
-
} from "../chunk-
|
|
18
|
+
UsageError
|
|
19
|
+
} from "../chunk-7QLSKOSU.js";
|
|
16
20
|
import "../chunk-DQAN3JQP.js";
|
|
17
21
|
import {
|
|
18
22
|
getApiKey,
|
|
19
23
|
getBaseUrl
|
|
20
24
|
} from "../chunk-2UMNXADU.js";
|
|
25
|
+
import {
|
|
26
|
+
EXIT
|
|
27
|
+
} from "../chunk-KZERVKTD.js";
|
|
21
28
|
|
|
22
29
|
// bin/pushary-mode.ts
|
|
23
30
|
exitOnHelpFlag("mode");
|
|
@@ -29,6 +36,17 @@ var parseDuration = (value) => {
|
|
|
29
36
|
const num = Number(match[1]);
|
|
30
37
|
return match[2] === "h" ? num * 3600 : num * 60;
|
|
31
38
|
};
|
|
39
|
+
{
|
|
40
|
+
const raw = process.argv.slice(2);
|
|
41
|
+
const positional = raw[0] === "mode" ? raw.slice(1) : raw;
|
|
42
|
+
try {
|
|
43
|
+
rejectUnknownFlags(positional, ["--for"]);
|
|
44
|
+
} catch (err) {
|
|
45
|
+
process.stderr.write(` ! ${err instanceof Error ? err.message : String(err)}
|
|
46
|
+
`);
|
|
47
|
+
process.exit(EXIT.USAGE);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
32
50
|
var main = async () => {
|
|
33
51
|
const apiKey = getApiKey();
|
|
34
52
|
const baseUrl = getBaseUrl();
|
|
@@ -92,6 +110,11 @@ var main = async () => {
|
|
|
92
110
|
}
|
|
93
111
|
};
|
|
94
112
|
main().catch((err) => {
|
|
113
|
+
if (err instanceof UsageError) {
|
|
114
|
+
process.stderr.write(` ! ${err.message}
|
|
115
|
+
`);
|
|
116
|
+
process.exit(EXIT.USAGE);
|
|
117
|
+
}
|
|
95
118
|
console.error(` ${yellow("!")} ${err instanceof Error ? err.message : err}`);
|
|
96
119
|
process.exit(1);
|
|
97
120
|
});
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handleNotification
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-5ZDYDU2Q.js";
|
|
5
|
+
import "../chunk-BSZYIAZL.js";
|
|
6
|
+
import "../chunk-SAF6HGAA.js";
|
|
7
|
+
import "../chunk-7QLSKOSU.js";
|
|
6
8
|
import "../chunk-DQAN3JQP.js";
|
|
7
9
|
import "../chunk-RN3NOEJF.js";
|
|
8
10
|
import "../chunk-2UMNXADU.js";
|
|
11
|
+
import "../chunk-KZERVKTD.js";
|
|
9
12
|
|
|
10
13
|
// bin/pushary-notification-hook.ts
|
|
11
14
|
var main = async () => {
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handlePermissionDenied
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-SDXF5I46.js";
|
|
5
5
|
import "../chunk-CAJZAFVS.js";
|
|
6
6
|
import "../chunk-YHG74UFF.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-5ZDYDU2Q.js";
|
|
8
8
|
import "../chunk-WLGEY4UX.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-BSZYIAZL.js";
|
|
10
|
+
import "../chunk-SAF6HGAA.js";
|
|
11
|
+
import "../chunk-7QLSKOSU.js";
|
|
10
12
|
import "../chunk-DQAN3JQP.js";
|
|
11
13
|
import "../chunk-RN3NOEJF.js";
|
|
12
14
|
import "../chunk-2UMNXADU.js";
|
|
15
|
+
import "../chunk-KZERVKTD.js";
|
|
13
16
|
|
|
14
17
|
// bin/pushary-permission-denied-hook.ts
|
|
15
18
|
var main = async () => {
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handlePermissionRequest
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-SDXF5I46.js";
|
|
5
5
|
import "../chunk-CAJZAFVS.js";
|
|
6
6
|
import "../chunk-YHG74UFF.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-5ZDYDU2Q.js";
|
|
8
8
|
import "../chunk-WLGEY4UX.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-BSZYIAZL.js";
|
|
10
|
+
import "../chunk-SAF6HGAA.js";
|
|
11
|
+
import "../chunk-7QLSKOSU.js";
|
|
10
12
|
import "../chunk-DQAN3JQP.js";
|
|
11
13
|
import "../chunk-RN3NOEJF.js";
|
|
12
14
|
import "../chunk-2UMNXADU.js";
|
|
15
|
+
import "../chunk-KZERVKTD.js";
|
|
13
16
|
|
|
14
17
|
// bin/pushary-permission-hook.ts
|
|
15
18
|
var main = async () => {
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handlePostToolUse
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-5ZDYDU2Q.js";
|
|
5
|
+
import "../chunk-BSZYIAZL.js";
|
|
6
|
+
import "../chunk-SAF6HGAA.js";
|
|
7
|
+
import "../chunk-7QLSKOSU.js";
|
|
6
8
|
import "../chunk-DQAN3JQP.js";
|
|
7
9
|
import "../chunk-RN3NOEJF.js";
|
|
8
10
|
import "../chunk-2UMNXADU.js";
|
|
11
|
+
import "../chunk-KZERVKTD.js";
|
|
9
12
|
|
|
10
13
|
// bin/pushary-post-hook.ts
|
|
11
14
|
var main = async () => {
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handleUserPrompt
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-5ZDYDU2Q.js";
|
|
5
|
+
import "../chunk-BSZYIAZL.js";
|
|
6
|
+
import "../chunk-SAF6HGAA.js";
|
|
7
|
+
import "../chunk-7QLSKOSU.js";
|
|
6
8
|
import "../chunk-DQAN3JQP.js";
|
|
7
9
|
import "../chunk-RN3NOEJF.js";
|
|
8
10
|
import "../chunk-2UMNXADU.js";
|
|
11
|
+
import "../chunk-KZERVKTD.js";
|
|
9
12
|
|
|
10
13
|
// bin/pushary-prompt-hook.ts
|
|
11
14
|
var main = async () => {
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handleSessionEnd
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-5ZDYDU2Q.js";
|
|
5
|
+
import "../chunk-BSZYIAZL.js";
|
|
6
|
+
import "../chunk-SAF6HGAA.js";
|
|
7
|
+
import "../chunk-7QLSKOSU.js";
|
|
6
8
|
import "../chunk-DQAN3JQP.js";
|
|
7
9
|
import "../chunk-RN3NOEJF.js";
|
|
8
10
|
import "../chunk-2UMNXADU.js";
|
|
11
|
+
import "../chunk-KZERVKTD.js";
|
|
9
12
|
|
|
10
13
|
// bin/pushary-session-end-hook.ts
|
|
11
14
|
var main = async () => {
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
handleSessionStart
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-5ZDYDU2Q.js";
|
|
5
|
+
import "../chunk-BSZYIAZL.js";
|
|
6
|
+
import "../chunk-SAF6HGAA.js";
|
|
7
|
+
import "../chunk-7QLSKOSU.js";
|
|
6
8
|
import "../chunk-DQAN3JQP.js";
|
|
7
9
|
import "../chunk-RN3NOEJF.js";
|
|
8
10
|
import "../chunk-2UMNXADU.js";
|
|
11
|
+
import "../chunk-KZERVKTD.js";
|
|
9
12
|
|
|
10
13
|
// bin/pushary-session-start-hook.ts
|
|
11
14
|
var main = async () => {
|