@pushary/agent-hooks 1.9.12 → 1.9.13
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 +12 -0
- package/data/cursor-plugin/scripts/pushary-gate.mjs +7 -2
- package/dist/bin/pushary-bell-hook.js +25 -25
- package/dist/bin/pushary-bell.js +9 -9
- package/dist/bin/pushary-claude.js +26 -25
- package/dist/bin/pushary-clean.js +52 -30
- package/dist/bin/pushary-codex-bridge.js +17 -17
- package/dist/bin/pushary-codex-hook.js +30 -30
- package/dist/bin/pushary-codex.js +12 -12
- package/dist/bin/pushary-connect.js +24 -24
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +31 -31
- package/dist/bin/pushary-disconnect.js +39 -25
- package/dist/bin/pushary-doctor.js +33 -33
- package/dist/bin/pushary-elicitation-hook.js +25 -25
- package/dist/bin/pushary-gemini-bridge.js +13 -13
- package/dist/bin/pushary-gemini-hook.js +27 -27
- package/dist/bin/pushary-hook.js +29 -29
- package/dist/bin/pushary-login.js +12 -12
- package/dist/bin/pushary-logout.js +10 -10
- package/dist/bin/pushary-mcp.js +9 -9
- package/dist/bin/pushary-mode.js +12 -12
- package/dist/bin/pushary-notification-hook.js +24 -24
- package/dist/bin/pushary-opencode-hook.js +26 -26
- package/dist/bin/pushary-permission-denied-hook.js +29 -29
- package/dist/bin/pushary-permission-hook.js +28 -28
- package/dist/bin/pushary-post-hook.js +24 -24
- package/dist/bin/pushary-prompt-hook.js +24 -24
- package/dist/bin/pushary-session-end-hook.js +24 -24
- package/dist/bin/pushary-session-start-hook.js +28 -28
- package/dist/bin/pushary-setup.js +69 -41
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +26 -26
- package/dist/bin/pushary-stop-hook.js +24 -24
- package/dist/bin/pushary-stopfailure-hook.js +24 -24
- package/dist/bin/pushary-suggestions.js +12 -12
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +7 -7
- package/dist/bin/pushary-upgrade.js +30 -30
- package/dist/bin/pushary-wait.js +12 -12
- package/dist/bin/pushary.js +6 -6
- package/dist/{chunk-SJ7M37RL.js → chunk-226PID65.js} +5 -5
- package/dist/{chunk-ZHF4JDVE.js → chunk-3EOXZYUE.js} +1 -1
- package/dist/{chunk-FSCWOYK6.js → chunk-3LSJ7YVM.js} +3 -3
- package/dist/{chunk-BOHDM4T7.js → chunk-3VSMTCXV.js} +10 -5
- package/dist/{chunk-2QJ6K2SR.js → chunk-43IDNI4X.js} +5 -5
- package/dist/{chunk-2NKTEA42.js → chunk-43ORAXAL.js} +1 -1
- package/dist/{chunk-RYBAJXV4.js → chunk-4ATFPZ6X.js} +1 -1
- package/dist/{chunk-KXCWWHYO.js → chunk-4EAILOOQ.js} +3 -3
- package/dist/{chunk-2GBUL4NP.js → chunk-4ZSWBLVM.js} +6 -6
- package/dist/{chunk-5HPC3RNE.js → chunk-5QTQI3HL.js} +1 -1
- package/dist/{chunk-BX2R7SIY.js → chunk-6CM3B4PJ.js} +6 -6
- package/dist/{chunk-NDZKDJQU.js → chunk-6MGD24SH.js} +1 -1
- package/dist/{chunk-7U26QSMF.js → chunk-6NL3LYUM.js} +8 -8
- package/dist/{chunk-Z6VYZSVA.js → chunk-6QPQG3Q5.js} +5 -5
- package/dist/{chunk-ZC6EVOX6.js → chunk-7JM6TCMA.js} +1 -1
- package/dist/{chunk-5VUB6VVO.js → chunk-7VWIBIDK.js} +4 -4
- package/dist/{chunk-JNDELCH5.js → chunk-FWAXBC3P.js} +1 -1
- package/dist/{chunk-M2P3HQA3.js → chunk-G54VGPRX.js} +1 -1
- package/dist/{chunk-A2DW2RNT.js → chunk-G5K656XW.js} +2 -2
- package/dist/{chunk-CKUACXAX.js → chunk-GFAVGG3X.js} +5 -5
- package/dist/{chunk-CPUEZAE2.js → chunk-GYR4G4WO.js} +1 -1
- package/dist/{chunk-EYLQVCME.js → chunk-HHMMY6TB.js} +2 -2
- package/dist/{chunk-FLPXTN3Q.js → chunk-J2VNQSS6.js} +1 -1
- package/dist/{chunk-JKGTASA2.js → chunk-JRKUJOZL.js} +1 -1
- package/dist/{chunk-DWHCF4RH.js → chunk-JVUK5YFM.js} +5 -5
- package/dist/{chunk-RBBMGCSZ.js → chunk-LBNIISXH.js} +1 -1
- package/dist/{chunk-CXKY5FGY.js → chunk-LHLUKFJV.js} +8 -8
- package/dist/{chunk-WBSL4FBX.js → chunk-LUYAXSUS.js} +3 -3
- package/dist/{chunk-CATIBZQH.js → chunk-LYDO2SS6.js} +3 -3
- package/dist/{chunk-J5XCHLP4.js → chunk-MPDJJNGA.js} +2 -2
- package/dist/{chunk-GTM7C36Y.js → chunk-MWP65CZ3.js} +2 -2
- package/dist/{chunk-OBGZUD73.js → chunk-N6XFGVNW.js} +3 -3
- package/dist/{chunk-WKP2KRTU.js → chunk-NPRFA7YM.js} +2 -2
- package/dist/chunk-OOKRWBCG.js +111 -0
- package/dist/{chunk-MEHDBT5H.js → chunk-OOZ5RSEF.js} +2 -2
- package/dist/{chunk-BNQKHPEC.js → chunk-QIPDIZC5.js} +4 -4
- package/dist/{chunk-PKQ435Z2.js → chunk-RI5E5JQS.js} +1 -1
- package/dist/{chunk-YZWUTWDG.js → chunk-RJAPOB34.js} +2 -2
- package/dist/{chunk-UEQWLVJB.js → chunk-RYKU62ZI.js} +1 -1
- package/dist/{chunk-3VPS7JPH.js → chunk-S2LDTUHS.js} +2 -2
- package/dist/{chunk-VDPU4YQN.js → chunk-TCVFNLMM.js} +20 -14
- package/dist/{chunk-GP44LTXN.js → chunk-TDSLVFG6.js} +1 -1
- package/dist/{chunk-QOBOIFGG.js → chunk-TVDI7SX2.js} +26 -7
- package/dist/{chunk-DYQ5QIDN.js → chunk-U5SXTKZV.js} +2 -2
- package/dist/{chunk-CMZ4CW5J.js → chunk-U6QEHPEF.js} +3 -3
- package/dist/{chunk-SQJUXVLW.js → chunk-UUBEEKT6.js} +2 -2
- package/dist/{chunk-TSGQYARU.js → chunk-VUHT6NYV.js} +4 -4
- package/dist/{chunk-E2FGVADR.js → chunk-WIRM7ZLI.js} +2 -2
- package/dist/{chunk-LBDMCNQY.js → chunk-WL4PVINO.js} +2 -2
- package/dist/{chunk-AWD2SLNA.js → chunk-WP57USIT.js} +13 -4
- package/dist/{chunk-PNBJAYSL.js → chunk-Y25RH4VF.js} +1 -1
- package/dist/{chunk-TZCHW6KR.js → chunk-YI37QERZ.js} +4 -4
- package/dist/{chunk-4DWQNP52.js → chunk-ZAH3CCEV.js} +4 -4
- package/dist/{global-upgrade-OCZWEF3A.js → global-upgrade-NIFOQFV4.js} +6 -6
- package/dist/{paths-SOGZJICO.js → paths-QPBLO5Q2.js} +2 -2
- package/dist/{reapply-DFG5IE6N.js → reapply-TVMBJWJB.js} +20 -20
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +19 -19
- package/dist/{upgrade-lock-XLE5GVWS.js → upgrade-lock-Z3LYROGK.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-PMUOEEUE.js +0 -50
package/dist/chunk-PMUOEEUE.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
pusharyHookExecutable
|
|
3
|
-
} from "./chunk-SJ7M37RL.js";
|
|
4
|
-
import {
|
|
5
|
-
isProtectedByScope,
|
|
6
|
-
registerHookEntry
|
|
7
|
-
} from "./chunk-AWD2SLNA.js";
|
|
8
|
-
|
|
9
|
-
// src/cursor-config.ts
|
|
10
|
-
var hookCommandOf = (entry) => {
|
|
11
|
-
const command = entry && typeof entry === "object" && !Array.isArray(entry) ? entry.command : void 0;
|
|
12
|
-
return typeof command === "string" ? command : "";
|
|
13
|
-
};
|
|
14
|
-
var isPusharyCursorEntry = (entry) => pusharyHookExecutable(hookCommandOf(entry)) !== null;
|
|
15
|
-
var registerCursorGate = (existing, entry) => registerHookEntry(existing, isPusharyCursorEntry, entry);
|
|
16
|
-
var withoutPusharyCursorHooks = (hooks, scope) => {
|
|
17
|
-
let removed = 0;
|
|
18
|
-
const kept = {};
|
|
19
|
-
for (const [event, entries] of Object.entries(hooks)) {
|
|
20
|
-
if (!Array.isArray(entries)) {
|
|
21
|
-
kept[event] = entries;
|
|
22
|
-
continue;
|
|
23
|
-
}
|
|
24
|
-
const others = entries.filter((entry) => !isPusharyCursorEntry(entry) || isProtectedByScope(hookCommandOf(entry), scope));
|
|
25
|
-
removed += entries.length - others.length;
|
|
26
|
-
if (others.length > 0 || entries.length === 0) kept[event] = others;
|
|
27
|
-
}
|
|
28
|
-
return { hooks: kept, removed };
|
|
29
|
-
};
|
|
30
|
-
var CURSOR_PLUGIN_NAME = "pushary";
|
|
31
|
-
var CURSOR_PLUGIN_STAGING_PREFIX = ".pushary-staging-";
|
|
32
|
-
var CURSOR_PLUGIN_BACKUP_INFIX = ".pushary-backup-";
|
|
33
|
-
var isCursorPluginLeftover = (name) => name.startsWith(`${CURSOR_PLUGIN_NAME}${CURSOR_PLUGIN_BACKUP_INFIX}`) || name.startsWith(CURSOR_PLUGIN_STAGING_PREFIX);
|
|
34
|
-
var isPusharyCursorPluginManifest = (contents) => {
|
|
35
|
-
try {
|
|
36
|
-
const manifest = JSON.parse(contents);
|
|
37
|
-
return typeof manifest === "object" && manifest !== null && !Array.isArray(manifest) && manifest.name === CURSOR_PLUGIN_NAME;
|
|
38
|
-
} catch {
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export {
|
|
44
|
-
registerCursorGate,
|
|
45
|
-
withoutPusharyCursorHooks,
|
|
46
|
-
CURSOR_PLUGIN_STAGING_PREFIX,
|
|
47
|
-
CURSOR_PLUGIN_BACKUP_INFIX,
|
|
48
|
-
isCursorPluginLeftover,
|
|
49
|
-
isPusharyCursorPluginManifest
|
|
50
|
-
};
|