pushary 1.9.65 → 1.9.67
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 +18 -0
- package/data/SKILL.md +1 -1
- package/data/cursor-plugin/skills/pushary/SKILL.md +1 -1
- package/data/vscode-plugin/skills/pushary/SKILL.md +1 -1
- package/dist/{api-32B3XLJR.js → api-3WIPD5GC.js} +12 -10
- package/dist/bin/pushary-bell-hook.js +25 -27
- package/dist/bin/pushary-bell.js +10 -10
- package/dist/bin/pushary-claude.js +26 -28
- package/dist/bin/pushary-clean.js +74 -77
- package/dist/bin/pushary-codex-bridge.js +21 -22
- package/dist/bin/pushary-codex-hook.js +30 -32
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +13 -13
- package/dist/bin/pushary-connect.js +28 -28
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +40 -41
- package/dist/bin/pushary-disconnect.js +25 -26
- package/dist/bin/pushary-doctor.js +118 -76
- package/dist/bin/pushary-elicitation-hook.js +25 -27
- package/dist/bin/pushary-gemini-bridge.js +15 -16
- package/dist/bin/pushary-gemini-hook.js +27 -29
- package/dist/bin/pushary-hook.js +29 -31
- package/dist/bin/pushary-login.js +20 -19
- package/dist/bin/pushary-logout.js +26 -28
- package/dist/bin/pushary-mcp.js +11 -11
- package/dist/bin/pushary-mode.js +16 -15
- package/dist/bin/pushary-notification-hook.js +24 -26
- package/dist/bin/pushary-opencode-hook.js +26 -28
- package/dist/bin/pushary-permission-denied-hook.js +29 -31
- package/dist/bin/pushary-permission-hook.js +32 -31
- package/dist/bin/pushary-post-hook.js +24 -26
- package/dist/bin/pushary-prompt-hook.js +24 -26
- package/dist/bin/pushary-session-end-hook.js +26 -28
- package/dist/bin/pushary-session-start-hook.js +34 -35
- package/dist/bin/pushary-setup.js +111 -99
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +37 -36
- package/dist/bin/pushary-stop-hook.js +24 -26
- package/dist/bin/pushary-stopfailure-hook.js +24 -26
- package/dist/bin/pushary-suggestions.js +15 -14
- package/dist/bin/pushary-transcript-register.js +16 -18
- package/dist/bin/pushary-transcripts.js +18 -17
- package/dist/bin/pushary-upgrade.js +45 -39
- package/dist/bin/pushary-wait.js +26 -20
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-Y64JGYTB.js → chunk-32OSSYGZ.js} +1 -1
- package/dist/{chunk-UHS5MMAI.js → chunk-3THDNNVL.js} +3 -3
- package/dist/{chunk-OA6EADFT.js → chunk-564IPPBL.js} +3 -3
- package/dist/chunk-5MOJCOCF.js +25 -0
- package/dist/{chunk-RRHHWYPX.js → chunk-6H4E5UBA.js} +6 -6
- package/dist/{chunk-UM2X7HL6.js → chunk-6LXXKMV6.js} +42 -16
- package/dist/chunk-76SWHCAR.js +299 -0
- package/dist/{chunk-AN7C3CHH.js → chunk-77L2TNJW.js} +1 -1
- package/dist/{chunk-XJIIU36L.js → chunk-7YJSDXLM.js} +1 -1
- package/dist/{chunk-XZCJC3QO.js → chunk-B3V2WOJX.js} +285 -50
- package/dist/{chunk-RABLE5R6.js → chunk-BBFGDYYI.js} +1 -1
- package/dist/{chunk-GTBWWCCM.js → chunk-BFF3ABFV.js} +115 -9
- package/dist/{chunk-NOH3EJFH.js → chunk-C4EDAHXI.js} +1 -1
- package/dist/{chunk-ITYKN2K3.js → chunk-CHYBOTQN.js} +2 -2
- package/dist/{chunk-FFSIYBBU.js → chunk-CJZLIAJF.js} +27 -10
- package/dist/{chunk-UMTMFDL2.js → chunk-CPLQ5OHX.js} +1 -1
- package/dist/{chunk-DTVHZDYM.js → chunk-D3U6CN7T.js} +26 -12
- package/dist/{chunk-ICFHMJTW.js → chunk-D7Z4USSB.js} +27 -8
- package/dist/{chunk-DXMUJTYF.js → chunk-DP6LU6BB.js} +2 -2
- package/dist/{chunk-GA257T2E.js → chunk-DXCHIKAN.js} +8 -8
- package/dist/{chunk-PP7FC3Y7.js → chunk-EQR6JSFE.js} +9 -7
- package/dist/{chunk-Z3M627TQ.js → chunk-FONWVVDD.js} +1 -1
- package/dist/{chunk-3KXBRSL3.js → chunk-GMHQYX3D.js} +1 -1
- package/dist/{chunk-WY6YAMZW.js → chunk-ICQCQAUO.js} +5 -4
- package/dist/{chunk-CZ65D6Q5.js → chunk-IPG3RS23.js} +2 -2
- package/dist/{chunk-JCWHOB36.js → chunk-IRV2MNMA.js} +53 -3
- package/dist/{chunk-HIYLAC3C.js → chunk-IVB5O6NY.js} +3 -3
- package/dist/{chunk-DM24VZOI.js → chunk-IXTVUINH.js} +3 -3
- package/dist/{chunk-BEQ3MEE3.js → chunk-JBRMIADM.js} +2 -2
- package/dist/{chunk-CU2PXLZ6.js → chunk-JHB5SR5B.js} +4 -4
- package/dist/{chunk-ED2SWTPC.js → chunk-JOBSKQ2Z.js} +4 -4
- package/dist/{chunk-W5L2ZLHE.js → chunk-JOD2325S.js} +3 -3
- package/dist/{chunk-CSKABVSH.js → chunk-JSPCGPSH.js} +3 -3
- package/dist/{chunk-R4FL5JHK.js → chunk-KE4TSJUD.js} +4 -4
- package/dist/{chunk-3LF7T3NW.js → chunk-KIXRHNCW.js} +6 -6
- package/dist/{chunk-BKCI53W6.js → chunk-KNUYUQBP.js} +4 -4
- package/dist/{chunk-4LUWNBGD.js → chunk-KTLE7NIK.js} +23 -8
- package/dist/{chunk-ADXHPGBZ.js → chunk-LJHDUKBB.js} +6 -6
- package/dist/{chunk-U2P2LQ5B.js → chunk-LS42NV6E.js} +15 -6
- package/dist/{chunk-QNZ6G3LY.js → chunk-LYTWK5TF.js} +5 -5
- package/dist/{chunk-2VADJ6JH.js → chunk-METUT7V4.js} +2 -2
- package/dist/{chunk-P5HZEGT7.js → chunk-NSS2AIGI.js} +6 -6
- package/dist/{chunk-QSW3HAKI.js → chunk-NWN6GGJL.js} +61 -2
- package/dist/{chunk-7ILQX47W.js → chunk-P4RXSZDT.js} +3 -3
- package/dist/{chunk-FWS2KLV2.js → chunk-PIBWX3EF.js} +2 -2
- package/dist/{chunk-F56GTJFG.js → chunk-PO2P3XDC.js} +5 -5
- package/dist/{chunk-EEVE7H5Z.js → chunk-R2BZH2NK.js} +4 -4
- package/dist/{chunk-I2UBF2SS.js → chunk-RO2B4YBF.js} +1 -1
- package/dist/{chunk-MNKIR2ZB.js → chunk-RQOT6QL3.js} +67 -6
- package/dist/{chunk-Q2BD4IBX.js → chunk-SB6TYV4M.js} +11 -13
- package/dist/{chunk-ATPJGHUP.js → chunk-TI4JYPGQ.js} +7 -3
- package/dist/{chunk-LMC5UPL7.js → chunk-UC2J5RR4.js} +1 -1
- package/dist/{chunk-IZVEBBDH.js → chunk-UQIPWXBL.js} +3 -3
- package/dist/{chunk-VHKK3US3.js → chunk-UXN73YAE.js} +3 -3
- package/dist/{chunk-WOHP7EL6.js → chunk-VEYFXRZ6.js} +7 -6
- package/dist/{chunk-2Z7I7DHT.js → chunk-VHMZPN3N.js} +1 -1
- package/dist/{chunk-HVOQUPSO.js → chunk-VKZ3RJ5U.js} +1 -1
- package/dist/chunk-VVIQWGS7.js +2298 -0
- package/dist/{chunk-SCMEVDAR.js → chunk-WJLHZ6E6.js} +3 -3
- package/dist/{chunk-BAGBCSXA.js → chunk-X2MTVD4W.js} +1 -1
- package/dist/{chunk-3UNAPXED.js → chunk-XFDWLDHG.js} +9 -9
- package/dist/{chunk-6CZX6YOE.js → chunk-XNUWKKGS.js} +3 -3
- package/dist/{chunk-NUEPJ5W6.js → chunk-XZKSUJ55.js} +3 -5
- package/dist/{chunk-HDGB6SQ4.js → chunk-Y4MRHAE5.js} +2 -2
- package/dist/{chunk-SZBMTOUZ.js → chunk-Y6ZN454E.js} +1 -1
- package/dist/{chunk-TK4JU2F7.js → chunk-YSD4SMHE.js} +1 -1
- package/dist/{chunk-SROWUG5W.js → chunk-ZK5WYAMI.js} +1 -1
- package/dist/{chunk-JFKMPLNF.js → chunk-ZPIYJLQ3.js} +2 -2
- package/dist/{codex-app-cards-switch-HK4RMOBI.js → codex-app-cards-switch-25TDTMUZ.js} +11 -11
- package/dist/{codex-desktop-launch-OCO6N7SA.js → codex-desktop-launch-JDKUCD2Y.js} +1 -1
- package/dist/{codex-session-launch-ETZQTVFS.js → codex-session-launch-6N35AAEO.js} +18 -19
- package/dist/{config-YY54G3CC.js → config-OBGYURFX.js} +3 -3
- package/dist/{global-upgrade-5DN5G3ZQ.js → global-upgrade-2QNQD5OM.js} +10 -10
- package/dist/{identity-EGL6HAWG.js → identity-CUPX2U7Q.js} +4 -4
- package/dist/{live-capabilities-WU3FYJJG.js → live-capabilities-CUEIWMSM.js} +5 -5
- package/dist/{paths-ZG6KDM6Y.js → paths-BHLBZ6FY.js} +7 -3
- package/dist/{reapply-AQLNCCTE.js → reapply-4GXLWZ5M.js} +27 -27
- package/dist/src/index.js +30 -20
- package/dist/{upgrade-lock-BIRXIKHJ.js → upgrade-lock-RDKTAHWR.js} +4 -4
- package/dist/{usage-43C2DHDU.js → usage-KX2HN47E.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-ANP3DIST.js +0 -118
- package/dist/chunk-ONBL2GCU.js +0 -615
- package/dist/chunk-TJUJAK5L.js +0 -62
package/dist/chunk-ANP3DIST.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isProtectedByScope,
|
|
3
|
-
registerHookEntry
|
|
4
|
-
} from "./chunk-ATPJGHUP.js";
|
|
5
|
-
import {
|
|
6
|
-
HOOK_BUDGETS,
|
|
7
|
-
HOOK_LOCATOR_BINARY
|
|
8
|
-
} from "./chunk-MNKIR2ZB.js";
|
|
9
|
-
|
|
10
|
-
// src/gemini-config.ts
|
|
11
|
-
var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
|
|
12
|
-
var GEMINI_MCP_URL = "https://pushary.com/api/mcp/mcp";
|
|
13
|
-
var GEMINI_HOOK_EVENTS = [
|
|
14
|
-
{ event: "BeforeTool", matcher: "run_shell_command|write_file|replace|mcp_.*", delivery: "approval", timeoutMs: HOOK_BUDGETS.gemini.budgetSeconds * 1e3 },
|
|
15
|
-
{ event: "AfterTool", matcher: "run_shell_command|write_file|replace|mcp_.*", delivery: "telemetry", timeoutMs: 1e4 },
|
|
16
|
-
{ event: "BeforeAgent", delivery: "telemetry", timeoutMs: 1e4 },
|
|
17
|
-
{ event: "AfterAgent", delivery: "telemetry", timeoutMs: 1e4 },
|
|
18
|
-
{ event: "SessionStart", delivery: "telemetry", timeoutMs: 1e4 },
|
|
19
|
-
{ event: "SessionEnd", delivery: "telemetry", timeoutMs: 1e4 }
|
|
20
|
-
];
|
|
21
|
-
var asRecord = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
22
|
-
var ensureRecord = (target, key) => {
|
|
23
|
-
const existing = asRecord(target[key]);
|
|
24
|
-
if (existing) return existing;
|
|
25
|
-
const created = {};
|
|
26
|
-
target[key] = created;
|
|
27
|
-
return created;
|
|
28
|
-
};
|
|
29
|
-
var isPusharyGeminiHook = (entry, scope) => {
|
|
30
|
-
const hooks = asRecord(entry)?.hooks;
|
|
31
|
-
if (!Array.isArray(hooks)) return false;
|
|
32
|
-
return hooks.some((hook) => {
|
|
33
|
-
const command = String(asRecord(hook)?.command ?? "");
|
|
34
|
-
if (isProtectedByScope(command, scope)) return false;
|
|
35
|
-
return command.includes(GEMINI_HOOK_BINARY) || command.includes(HOOK_LOCATOR_BINARY);
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
var addGeminiMcpServer = (settings, apiKey) => {
|
|
39
|
-
const mcpServers = ensureRecord(settings, "mcpServers");
|
|
40
|
-
mcpServers.pushary = {
|
|
41
|
-
httpUrl: GEMINI_MCP_URL,
|
|
42
|
-
headers: { Authorization: `Bearer ${apiKey}` },
|
|
43
|
-
trust: true
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
var addGeminiHooks = (settings, command) => {
|
|
47
|
-
const hooks = ensureRecord(settings, "hooks");
|
|
48
|
-
for (const definition of GEMINI_HOOK_EVENTS) {
|
|
49
|
-
const existing = Array.isArray(hooks[definition.event]) ? hooks[definition.event] : [];
|
|
50
|
-
hooks[definition.event] = registerHookEntry(existing, isPusharyGeminiHook, {
|
|
51
|
-
...definition.matcher ? { matcher: definition.matcher } : {},
|
|
52
|
-
hooks: [{
|
|
53
|
-
name: "pushary",
|
|
54
|
-
type: "command",
|
|
55
|
-
command,
|
|
56
|
-
timeout: definition.timeoutMs
|
|
57
|
-
}]
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
var removeGeminiHooks = (settings, scope) => {
|
|
62
|
-
const hooks = asRecord(settings.hooks);
|
|
63
|
-
if (!hooks) return false;
|
|
64
|
-
let changed = false;
|
|
65
|
-
for (const definition of GEMINI_HOOK_EVENTS) {
|
|
66
|
-
const entries = hooks[definition.event];
|
|
67
|
-
if (!Array.isArray(entries)) continue;
|
|
68
|
-
const filtered = entries.filter((entry) => !isPusharyGeminiHook(entry, scope));
|
|
69
|
-
if (filtered.length !== entries.length) {
|
|
70
|
-
if (filtered.length === 0) {
|
|
71
|
-
delete hooks[definition.event];
|
|
72
|
-
} else {
|
|
73
|
-
hooks[definition.event] = filtered;
|
|
74
|
-
}
|
|
75
|
-
changed = true;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
if (Object.keys(hooks).length === 0) delete settings.hooks;
|
|
79
|
-
return changed;
|
|
80
|
-
};
|
|
81
|
-
var removeGeminiMcpServer = (settings) => {
|
|
82
|
-
const mcpServers = asRecord(settings.mcpServers);
|
|
83
|
-
if (!mcpServers?.pushary) return false;
|
|
84
|
-
delete mcpServers.pushary;
|
|
85
|
-
if (Object.keys(mcpServers).length === 0) delete settings.mcpServers;
|
|
86
|
-
return true;
|
|
87
|
-
};
|
|
88
|
-
var removeGeminiSettings = (settings, scope) => {
|
|
89
|
-
const mcpRemoved = scope?.keepMcpServer === true ? false : removeGeminiMcpServer(settings);
|
|
90
|
-
const hooksRemoved = removeGeminiHooks(settings, scope);
|
|
91
|
-
return mcpRemoved || hooksRemoved;
|
|
92
|
-
};
|
|
93
|
-
var hasGeminiHooks = (settings) => {
|
|
94
|
-
const hooks = asRecord(settings.hooks);
|
|
95
|
-
if (!hooks) return false;
|
|
96
|
-
return GEMINI_HOOK_EVENTS.some((definition) => {
|
|
97
|
-
const entries = hooks[definition.event];
|
|
98
|
-
return Array.isArray(entries) && entries.some((entry) => isPusharyGeminiHook(entry));
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
var missingGeminiHookEvents = (settings) => {
|
|
102
|
-
const hooks = asRecord(settings.hooks);
|
|
103
|
-
return GEMINI_HOOK_EVENTS.filter((definition) => {
|
|
104
|
-
const entries = hooks?.[definition.event];
|
|
105
|
-
return !Array.isArray(entries) || !entries.some((entry) => isPusharyGeminiHook(entry));
|
|
106
|
-
}).map((definition) => definition.event);
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export {
|
|
110
|
-
GEMINI_HOOK_BINARY,
|
|
111
|
-
GEMINI_HOOK_EVENTS,
|
|
112
|
-
addGeminiMcpServer,
|
|
113
|
-
addGeminiHooks,
|
|
114
|
-
removeGeminiMcpServer,
|
|
115
|
-
removeGeminiSettings,
|
|
116
|
-
hasGeminiHooks,
|
|
117
|
-
missingGeminiHookEvents
|
|
118
|
-
};
|