@pushary/agent-hooks 0.4.2 → 0.4.3
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.
|
@@ -224,8 +224,9 @@ var setupCodex = async (_apiKey) => {
|
|
|
224
224
|
});
|
|
225
225
|
const codexConfig = join(homedir(), ".codex", "config.toml");
|
|
226
226
|
await spinner("Adding notify handler for Codex events", async () => {
|
|
227
|
-
const
|
|
228
|
-
|
|
227
|
+
const globalPrefix = execSync("npm prefix -g", { encoding: "utf-8" }).trim();
|
|
228
|
+
const pusharyCodexPath = join(globalPrefix, "bin", "pushary-codex");
|
|
229
|
+
if (!existsSync(pusharyCodexPath)) throw new Error("pushary-codex not found at " + pusharyCodexPath);
|
|
229
230
|
let config = "";
|
|
230
231
|
try {
|
|
231
232
|
config = readFileSync(codexConfig, "utf-8");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushary/agent-hooks",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Permission hooks for AI coding agents: route tool approvals through Pushary push notifications",
|
|
5
5
|
"author": "Pushary <business@pushary.com>",
|
|
6
6
|
"homepage": "https://pushary.com",
|