@pushary/agent-hooks 1.9.25 → 1.9.27
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 +17 -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/bin/pushary-bell-hook.js +25 -25
- package/dist/bin/pushary-bell.js +9 -9
- package/dist/bin/pushary-claude.js +24 -24
- package/dist/bin/pushary-clean.js +29 -29
- package/dist/bin/pushary-codex-bridge.js +17 -17
- package/dist/bin/pushary-codex-hook.js +32 -32
- 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 +36 -32
- package/dist/bin/pushary-disconnect.js +24 -24
- package/dist/bin/pushary-doctor.js +35 -35
- 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 +29 -29
- package/dist/bin/pushary-hook.js +29 -29
- package/dist/bin/pushary-login.js +12 -12
- package/dist/bin/pushary-logout.js +24 -24
- 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 +35 -35
- 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-TLUSUDRU.js → chunk-2NQHGDK5.js} +1 -1
- package/dist/{chunk-GC5HJE3T.js → chunk-4LIOV4YP.js} +3 -3
- package/dist/{chunk-PM2WJSUH.js → chunk-4LO6OQZ4.js} +1 -1
- package/dist/{chunk-FLC4TVXH.js → chunk-5LLH2TBR.js} +1 -1
- package/dist/{chunk-FJKV64M7.js → chunk-5SKHXKIF.js} +5 -5
- package/dist/{chunk-2J2WFX7X.js → chunk-5ZR7XFTB.js} +4 -4
- package/dist/{chunk-LDNKGG5G.js → chunk-6CBKIF3S.js} +3 -3
- package/dist/{chunk-NFH2H7PD.js → chunk-AT4URLSU.js} +5 -5
- package/dist/{chunk-KZLOVLA6.js → chunk-BZYYTJ65.js} +4 -4
- package/dist/{chunk-A3QQWXIE.js → chunk-CSXWXXFJ.js} +1 -1
- package/dist/{chunk-N3ACK3YA.js → chunk-DY6AKR4W.js} +32 -22
- package/dist/{chunk-BHRMHDOO.js → chunk-E4NITECV.js} +2 -2
- package/dist/{chunk-VN5Q4KOD.js → chunk-GORB726L.js} +2 -2
- package/dist/{chunk-3UYMOWX6.js → chunk-H2ZHGK4F.js} +2 -2
- package/dist/{chunk-WKEP4JAW.js → chunk-HFGTWPAD.js} +2 -2
- package/dist/{chunk-WEKXYS2F.js → chunk-IOTR2VQN.js} +4 -4
- package/dist/{chunk-EJJNZYDS.js → chunk-JK42X2VL.js} +2 -2
- package/dist/{chunk-KP4BIZLP.js → chunk-JXOCD4MG.js} +2 -2
- package/dist/{chunk-KM7AEGKF.js → chunk-KN5ULH4O.js} +3 -3
- package/dist/{chunk-SGGR5MN2.js → chunk-LOVDPKUU.js} +1 -1
- package/dist/{chunk-2CUE3XXS.js → chunk-LUJAURFP.js} +1 -1
- package/dist/{chunk-FCXYDR62.js → chunk-LY3KHTHS.js} +1 -1
- package/dist/{chunk-HEJMZVJI.js → chunk-M463H5LN.js} +2 -2
- package/dist/{chunk-BGJDOHNF.js → chunk-MDAJO2MP.js} +5 -5
- package/dist/{chunk-4KZP4YMV.js → chunk-MRMIGVUI.js} +1 -1
- package/dist/{chunk-VEGS4NYF.js → chunk-MSKJRRHY.js} +3 -3
- package/dist/{chunk-ZNT4ZZXJ.js → chunk-MTODICDT.js} +1 -1
- package/dist/{chunk-OWOSNGEQ.js → chunk-NK2URK5A.js} +2 -2
- package/dist/{chunk-RSENVGBQ.js → chunk-O2SMA3JN.js} +4 -4
- package/dist/{chunk-UUOC7A7M.js → chunk-OPSLFAKF.js} +7 -7
- package/dist/{chunk-Q37XFSPO.js → chunk-OXOT3CGW.js} +4 -4
- package/dist/{chunk-PSNF27BC.js → chunk-PQAA37YV.js} +8 -7
- package/dist/{chunk-7UZD2F4Y.js → chunk-QMMOVPUP.js} +8 -8
- package/dist/{chunk-UJB6HHP4.js → chunk-RZNJGCPR.js} +5 -5
- package/dist/{chunk-2XHBYMVN.js → chunk-SLW45RGY.js} +11 -11
- package/dist/{chunk-5WTEKIAS.js → chunk-TQE5VIDJ.js} +4 -4
- package/dist/{chunk-ZLY7BHN4.js → chunk-TWCWRHNK.js} +5 -5
- package/dist/{chunk-PAMW5M53.js → chunk-TYPQUHIS.js} +5 -5
- package/dist/{chunk-ZLGCNHJG.js → chunk-U4Q3AKLU.js} +1 -1
- package/dist/{chunk-UK7OY3EJ.js → chunk-UQTQVH5X.js} +1 -1
- package/dist/{chunk-EJMXZH5E.js → chunk-UWEDDQHU.js} +2 -2
- package/dist/{chunk-OFHSTCXK.js → chunk-V6HQFOBS.js} +3 -3
- package/dist/{chunk-AXB4ABUD.js → chunk-VGVMBY4V.js} +8 -8
- package/dist/{chunk-YD3DIFIU.js → chunk-VWTCGKMU.js} +1 -1
- package/dist/{chunk-5ETE7F45.js → chunk-W4DFSUZG.js} +2 -2
- package/dist/{chunk-ZV3262AA.js → chunk-W4LNR7LP.js} +3 -3
- package/dist/{chunk-VFF7ZBIS.js → chunk-WGTD4NZV.js} +32 -4
- package/dist/{chunk-PPGLIWOR.js → chunk-XESMYZLU.js} +1 -1
- package/dist/{chunk-5Q2QJ2AL.js → chunk-XTTMUQ4Z.js} +1 -1
- package/dist/{chunk-2VQZC6DW.js → chunk-YTTPPJZW.js} +4 -4
- package/dist/{chunk-G446AVR5.js → chunk-YZ7D3P3M.js} +2 -2
- package/dist/{chunk-OOKIWOMK.js → chunk-Z5AAPX3O.js} +1 -1
- package/dist/{chunk-KGSN2SOL.js → chunk-ZQZRBPTP.js} +356 -33
- package/dist/{chunk-7V6PJFDF.js → chunk-ZWDXBLEZ.js} +3 -3
- package/dist/{global-upgrade-4M4TJKQR.js → global-upgrade-FKQPJL5P.js} +6 -6
- package/dist/{paths-6JY6J56N.js → paths-TU47TCRS.js} +2 -2
- package/dist/{reapply-LFEQ5GF6.js → reapply-CTJZBUJY.js} +20 -20
- package/dist/src/index.js +19 -19
- package/dist/{upgrade-lock-CZRCHYVU.js → upgrade-lock-2SQCRMDL.js} +3 -3
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YTTPPJZW.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -13,8 +13,9 @@ import {
|
|
|
13
13
|
POSIX_GLOBAL_ROOT_SEGMENTS,
|
|
14
14
|
cliPackagePathSegments,
|
|
15
15
|
globalUpgradeEntry,
|
|
16
|
+
isAutoUpdateResult,
|
|
16
17
|
ownPackageRoot
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZQZRBPTP.js";
|
|
18
19
|
|
|
19
20
|
// src/auto-update.ts
|
|
20
21
|
import { spawn } from "child_process";
|
|
@@ -25,9 +26,7 @@ var PENDING_FINISH_RETRY_DELAYS_MS = [5 * 60 * 1e3, 60 * 60 * 1e3];
|
|
|
25
26
|
var FIRST_FINISH_ATTEMPT = 1;
|
|
26
27
|
var AUTO_UPDATE_FLAG = "--auto";
|
|
27
28
|
var NON_GLOBAL_INSTALL_SEGMENTS = ["/_npx/", "/.volta/"];
|
|
28
|
-
var AUTO_UPDATE_RESULTS = ["updated", "current", "needs_manual", "failed", "finish_pending", "finish_blocked"];
|
|
29
29
|
var isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
30
|
-
var isAutoUpdateResult = (value) => typeof value === "string" && AUTO_UPDATE_RESULTS.some((result) => result === value);
|
|
31
30
|
var stringField = (record, key) => {
|
|
32
31
|
const value = record[key];
|
|
33
32
|
return typeof value === "string" ? value : void 0;
|
|
@@ -101,6 +100,34 @@ var autoUpdateDecision = (input) => {
|
|
|
101
100
|
if (checkedWithinInterval(input.state.lastCheckAt, input.now, autoUpdateCheckInterval(input.state))) return { kind: "skip", reason: "checked_recently" };
|
|
102
101
|
return { kind: "check", ...location };
|
|
103
102
|
};
|
|
103
|
+
var autoUpdateReportState = (decision) => {
|
|
104
|
+
if (decision.kind === "check") return "on";
|
|
105
|
+
switch (decision.reason) {
|
|
106
|
+
case "subagent_start":
|
|
107
|
+
case "checked_recently":
|
|
108
|
+
return "on";
|
|
109
|
+
default:
|
|
110
|
+
return decision.reason;
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
var autoUpdateReport = (input) => ({
|
|
114
|
+
state: autoUpdateReportState(autoUpdateDecision({ ...input, isSubagentStart: false })),
|
|
115
|
+
lastResult: input.state.lastResult ?? null,
|
|
116
|
+
lastCheckAt: input.state.lastCheckAt ?? null
|
|
117
|
+
});
|
|
118
|
+
var readLocalAutoUpdateReport = () => {
|
|
119
|
+
try {
|
|
120
|
+
return autoUpdateReport({
|
|
121
|
+
env: process.env,
|
|
122
|
+
state: readAutoUpdateState(autoUpdateState()),
|
|
123
|
+
now: Date.now(),
|
|
124
|
+
platform: process.platform,
|
|
125
|
+
packageRoot: ownPackageRoot()
|
|
126
|
+
});
|
|
127
|
+
} catch {
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
};
|
|
104
131
|
var parseAutoUpdateFlag = (args) => {
|
|
105
132
|
const token = args.find((arg) => arg === AUTO_UPDATE_FLAG || arg.startsWith(`${AUTO_UPDATE_FLAG}=`));
|
|
106
133
|
if (token === void 0) return { kind: "absent" };
|
|
@@ -184,6 +211,7 @@ export {
|
|
|
184
211
|
globalInstallLocation,
|
|
185
212
|
upgradeEntryFor,
|
|
186
213
|
nextFinishAttempt,
|
|
214
|
+
readLocalAutoUpdateReport,
|
|
187
215
|
parseAutoUpdateFlag,
|
|
188
216
|
describeAutoUpdateCheck,
|
|
189
217
|
isUnfinishedAutoUpdate,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
isReleaseVersion,
|
|
14
14
|
ownPackageName,
|
|
15
15
|
withHookHoldBudget
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZQZRBPTP.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/paths.ts
|
|
19
19
|
import { homedir as homedir2 } from "os";
|
|
@@ -395,9 +395,9 @@ var installGlobally = (options) => {
|
|
|
395
395
|
}
|
|
396
396
|
const started = (async () => {
|
|
397
397
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
398
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
399
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
400
|
-
const { autoUpdateLock: autoUpdateLock2 } = await import("./paths-
|
|
398
|
+
const { withUpgradeLock } = await import("./global-upgrade-FKQPJL5P.js");
|
|
399
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-2SQCRMDL.js");
|
|
400
|
+
const { autoUpdateLock: autoUpdateLock2 } = await import("./paths-TU47TCRS.js");
|
|
401
401
|
let result = "skipped";
|
|
402
402
|
const install = async () => {
|
|
403
403
|
const platform = process.platform;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YTTPPJZW.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe,
|
|
6
6
|
writeFileAtomic
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
serializeDeclinedAgents,
|
|
14
14
|
withDeclinedAgent,
|
|
15
15
|
withoutDeclinedAgent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZQZRBPTP.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|