@pushary/agent-hooks 0.68.0 → 0.69.0
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 +89 -0
- package/data/cursor-plugin/scripts/pushary-gate.mjs +36 -10
- package/data/vscode-plugin/scripts/pushary-gate.mjs +32 -9
- package/dist/bin/pushary-claude.js +21 -11
- package/dist/bin/pushary-clean.js +58 -20
- package/dist/bin/pushary-codex-hook.js +38 -23
- package/dist/bin/pushary-codex.js +1 -1
- package/dist/bin/pushary-connect.js +1 -1
- package/dist/bin/pushary-doctor.js +139 -26
- package/dist/bin/pushary-gemini-hook.js +32 -16
- package/dist/bin/pushary-hook.js +3 -3
- package/dist/bin/pushary-notification-hook.js +1 -1
- package/dist/bin/pushary-permission-denied-hook.js +3 -3
- package/dist/bin/pushary-permission-hook.js +3 -3
- package/dist/bin/pushary-post-hook.js +1 -1
- package/dist/bin/pushary-prompt-hook.js +1 -1
- package/dist/bin/pushary-session-end-hook.js +1 -1
- package/dist/bin/pushary-session-start-hook.js +1 -1
- package/dist/bin/pushary-setup.js +16 -6
- package/dist/bin/pushary-status.js +1 -1
- package/dist/bin/pushary-stop-hook.js +1 -1
- package/dist/bin/pushary-stopfailure-hook.js +1 -1
- package/dist/chunk-3USMXNVB.js +64 -0
- package/dist/{chunk-SONXGCZY.js → chunk-C5I2RAMT.js} +45 -27
- package/dist/{chunk-XOUYM27W.js → chunk-H46LSQRT.js} +182 -103
- package/dist/{chunk-KB4ODLGB.js → chunk-I4BYZIX4.js} +2 -0
- package/dist/{chunk-YMFZUXL5.js → chunk-P7VBAYQO.js} +25 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-YHG74UFF.js +0 -12
package/dist/src/index.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ interface ModeState {
|
|
|
36
36
|
readonly relayUrl: string | null;
|
|
37
37
|
readonly trainingConsent?: boolean;
|
|
38
38
|
readonly scope?: ScopeContract | null;
|
|
39
|
+
readonly degraded?: boolean;
|
|
39
40
|
}
|
|
40
41
|
declare const fetchModeState: (apiKey: string, sessionId?: string) => Promise<ModeState>;
|
|
41
42
|
declare const fetchModeOverride: (apiKey: string) => Promise<ApprovalMode | null>;
|
package/dist/src/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handlePreToolUse
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-C5I2RAMT.js";
|
|
4
4
|
import "../chunk-CAJZAFVS.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-3USMXNVB.js";
|
|
6
6
|
import {
|
|
7
7
|
askUser,
|
|
8
8
|
cancelQuestion,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
reportEvent,
|
|
16
16
|
resolvePolicy,
|
|
17
17
|
waitForAnswer
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-H46LSQRT.js";
|
|
19
19
|
import "../chunk-WLGEY4UX.js";
|
|
20
20
|
import "../chunk-BSZYIAZL.js";
|
|
21
21
|
import "../chunk-SAF6HGAA.js";
|
package/package.json
CHANGED
package/dist/chunk-YHG74UFF.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// src/answer.ts
|
|
2
|
-
var denyReasonFrom = (value, note) => {
|
|
3
|
-
const trimmed = note?.trim();
|
|
4
|
-
if (trimmed) return `Denied from your phone: ${trimmed}`;
|
|
5
|
-
return value && value !== "no" && value !== "yes" ? `Denied from your phone: ${value}` : "Denied via push notification";
|
|
6
|
-
};
|
|
7
|
-
var isDeferAnswer = (value) => value === "defer";
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
denyReasonFrom,
|
|
11
|
-
isDeferAnswer
|
|
12
|
-
};
|