pushary 1.9.36 → 1.9.37
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 +5 -0
- 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 +65 -41
- 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 +32 -32
- package/dist/bin/pushary-disconnect.js +24 -24
- 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 +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-2DZBIELP.js → chunk-235LKHLW.js} +166 -67
- package/dist/{chunk-RYXSY3RH.js → chunk-2WZJHJAB.js} +5 -5
- package/dist/{chunk-GTEF64CJ.js → chunk-3Y73MQPF.js} +1 -1
- package/dist/{chunk-JAA7YJJZ.js → chunk-4OQHT5IJ.js} +4 -4
- package/dist/{chunk-ULDOQF4Q.js → chunk-6SYU5LVK.js} +3 -3
- package/dist/{chunk-DC6KHRVH.js → chunk-6VUVVVVN.js} +1 -1
- package/dist/{chunk-PRKH662J.js → chunk-AZXPJLKC.js} +1 -1
- package/dist/{chunk-CHNSFTD5.js → chunk-B7SE22M7.js} +2 -2
- package/dist/{chunk-ML42WKI7.js → chunk-DG5QHKJA.js} +3 -3
- package/dist/{chunk-GNESC5EF.js → chunk-DYALNCS6.js} +3 -3
- package/dist/{chunk-4E4PZQFE.js → chunk-EK6PRPCY.js} +4 -4
- package/dist/{chunk-Y5FCB66K.js → chunk-F3J6JFR2.js} +5 -5
- package/dist/{chunk-MBBPLF5T.js → chunk-FFRH7KZP.js} +2 -2
- package/dist/{chunk-TRNSODJ6.js → chunk-GKTVIN4F.js} +1 -1
- package/dist/{chunk-YRAPCLOB.js → chunk-GQSJVYKN.js} +6 -6
- package/dist/{chunk-VRALPR4B.js → chunk-GSP7CC52.js} +4 -4
- package/dist/{chunk-5S2P2CK6.js → chunk-GUHM2UQO.js} +2 -2
- package/dist/{chunk-FBKGGIFB.js → chunk-HA22GGDG.js} +5 -5
- package/dist/{chunk-CHWJ7ZXI.js → chunk-HJF57K2U.js} +5 -5
- package/dist/{chunk-J36W6ARB.js → chunk-HK2RPWAD.js} +1 -1
- package/dist/{chunk-QPUTCMAK.js → chunk-HQR6DYVG.js} +1 -1
- package/dist/{chunk-55XIK7YS.js → chunk-ISNGKZG4.js} +1 -1
- package/dist/{chunk-ETGGQWBR.js → chunk-JLQV3XLV.js} +4 -4
- package/dist/{chunk-EH635XAR.js → chunk-JMLJHKJN.js} +2 -2
- package/dist/{chunk-SHLLDMPM.js → chunk-KHLYOIPY.js} +4 -4
- package/dist/{chunk-RNRCOOQZ.js → chunk-KZ3XE3JG.js} +34 -109
- package/dist/{chunk-H3MOTS2C.js → chunk-MAGB6VW6.js} +1 -1
- package/dist/{chunk-42FTY5II.js → chunk-N5WEEYV6.js} +3 -3
- package/dist/{chunk-7GQILLZD.js → chunk-NDQXKLGE.js} +5 -5
- package/dist/{chunk-NE5OPCD5.js → chunk-NPE44CX4.js} +4 -4
- package/dist/{chunk-CRZ4CP7C.js → chunk-NWSWP3KY.js} +3 -3
- package/dist/{chunk-UDHT3W7I.js → chunk-OSLC7G3D.js} +2 -2
- package/dist/{chunk-HCKBZYBW.js → chunk-PDDJKGIW.js} +2 -2
- package/dist/chunk-PDRKQSC6.js +184 -0
- package/dist/{chunk-X4BPD5RD.js → chunk-PYWLW7PC.js} +1 -1
- package/dist/{chunk-4NMDFPK7.js → chunk-Q3TCLMYC.js} +5 -5
- package/dist/{chunk-EQXMVKKD.js → chunk-Q52PBCN7.js} +1 -1
- package/dist/{chunk-U2PUHT4W.js → chunk-QUKATQ66.js} +1 -1
- package/dist/{chunk-K5X25GUV.js → chunk-RFIHLLRH.js} +9 -6
- package/dist/{chunk-5ML6E3L7.js → chunk-SNI4FGOV.js} +1 -1
- package/dist/{chunk-556JCOMK.js → chunk-SNUNAIKK.js} +4 -4
- package/dist/{chunk-CRZKFEEO.js → chunk-T2NKNQPM.js} +2 -2
- package/dist/{chunk-F5W7B7YT.js → chunk-UEIL72RN.js} +1 -1
- package/dist/{chunk-KCUTE3EB.js → chunk-UK3WY3LE.js} +2 -2
- package/dist/{chunk-QHL3Y6D2.js → chunk-UKCGR5T2.js} +2 -2
- package/dist/{chunk-L25KSDIB.js → chunk-V7Q7DQXL.js} +8 -8
- package/dist/{chunk-EGTVN6YV.js → chunk-VA36Q6BD.js} +1 -1
- package/dist/{chunk-JWURAYXK.js → chunk-VMIDUNOT.js} +2 -2
- package/dist/{chunk-6LKIK7V2.js → chunk-W73URGML.js} +8 -8
- package/dist/{chunk-LL256PHP.js → chunk-WXA3CFZR.js} +1 -1
- package/dist/{chunk-26AEFJSK.js → chunk-YNJ372JU.js} +2 -2
- package/dist/{chunk-BS64ZHTB.js → chunk-Z5ORWTY3.js} +3 -3
- package/dist/{chunk-7MOFAAZ3.js → chunk-ZMR3DSMH.js} +4 -4
- package/dist/{chunk-IPYCRJGM.js → chunk-ZQD6GVS7.js} +7 -7
- package/dist/{global-upgrade-EF6RZBPU.js → global-upgrade-R57HCUTC.js} +6 -6
- package/dist/{paths-F645XTFZ.js → paths-G2AYNZCD.js} +2 -2
- package/dist/{reapply-HJOTWJAN.js → reapply-FHCOPXEN.js} +20 -20
- package/dist/src/index.js +19 -19
- package/dist/{upgrade-lock-APUN7YKQ.js → upgrade-lock-3I7AF7E3.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-MNXHKEXB.js +0 -71
|
@@ -11,34 +11,34 @@ import {
|
|
|
11
11
|
reapplyOpenCodePlugin,
|
|
12
12
|
reapplyVsCodePlugin,
|
|
13
13
|
repairCodexHolds
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-ZQD6GVS7.js";
|
|
15
|
+
import "./chunk-B7SE22M7.js";
|
|
16
16
|
import "./chunk-RIVNNBEK.js";
|
|
17
17
|
import "./chunk-XHKBHWLX.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-HJF57K2U.js";
|
|
19
|
+
import "./chunk-KHLYOIPY.js";
|
|
20
|
+
import "./chunk-Q3TCLMYC.js";
|
|
21
|
+
import "./chunk-6SYU5LVK.js";
|
|
22
|
+
import "./chunk-Q52PBCN7.js";
|
|
23
|
+
import "./chunk-SNI4FGOV.js";
|
|
24
24
|
import "./chunk-GMXKITVA.js";
|
|
25
25
|
import "./chunk-6ICPEJY5.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-W73URGML.js";
|
|
27
|
+
import "./chunk-QUKATQ66.js";
|
|
28
|
+
import "./chunk-HA22GGDG.js";
|
|
29
29
|
import "./chunk-POFBE6ZY.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-Z5ORWTY3.js";
|
|
31
|
+
import "./chunk-DYALNCS6.js";
|
|
32
|
+
import "./chunk-NWSWP3KY.js";
|
|
33
|
+
import "./chunk-VA36Q6BD.js";
|
|
34
34
|
import "./chunk-7QLSKOSU.js";
|
|
35
35
|
import "./chunk-KZERVKTD.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-GUHM2UQO.js";
|
|
37
|
+
import "./chunk-RFIHLLRH.js";
|
|
38
38
|
import "./chunk-AQFEP65J.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-AZXPJLKC.js";
|
|
40
|
+
import "./chunk-WXA3CFZR.js";
|
|
41
|
+
import "./chunk-235LKHLW.js";
|
|
42
42
|
export {
|
|
43
43
|
ensureCodexTrustAfterReapply,
|
|
44
44
|
inspectConfiguredManagedProviders,
|
package/dist/src/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handlePreToolUse
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-KZ3XE3JG.js";
|
|
4
|
+
import "../chunk-PDRKQSC6.js";
|
|
5
|
+
import "../chunk-HK2RPWAD.js";
|
|
6
|
+
import "../chunk-6VUVVVVN.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchAccountPublicKey
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-PYWLW7PC.js";
|
|
10
|
+
import "../chunk-KHLYOIPY.js";
|
|
11
|
+
import "../chunk-6SYU5LVK.js";
|
|
12
12
|
import "../chunk-6ICPEJY5.js";
|
|
13
13
|
import {
|
|
14
14
|
fetchModeOverride,
|
|
@@ -18,31 +18,31 @@ import {
|
|
|
18
18
|
handlePostToolUse,
|
|
19
19
|
handleStop,
|
|
20
20
|
reportEvent
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-W73URGML.js";
|
|
22
|
+
import "../chunk-QUKATQ66.js";
|
|
23
23
|
import {
|
|
24
24
|
askUser,
|
|
25
25
|
cancelQuestion,
|
|
26
26
|
waitForAnswer
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-HA22GGDG.js";
|
|
28
28
|
import "../chunk-POFBE6ZY.js";
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-Z5ORWTY3.js";
|
|
30
|
+
import "../chunk-DYALNCS6.js";
|
|
31
|
+
import "../chunk-NWSWP3KY.js";
|
|
32
|
+
import "../chunk-VA36Q6BD.js";
|
|
33
33
|
import "../chunk-7QLSKOSU.js";
|
|
34
34
|
import "../chunk-KZERVKTD.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-GUHM2UQO.js";
|
|
36
|
+
import "../chunk-RFIHLLRH.js";
|
|
37
37
|
import "../chunk-AQFEP65J.js";
|
|
38
38
|
import {
|
|
39
39
|
getApiKey,
|
|
40
40
|
getBaseUrl
|
|
41
|
-
} from "../chunk-
|
|
42
|
-
import "../chunk-
|
|
41
|
+
} from "../chunk-AZXPJLKC.js";
|
|
42
|
+
import "../chunk-WXA3CFZR.js";
|
|
43
43
|
import {
|
|
44
44
|
resolvePolicy
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-235LKHLW.js";
|
|
46
46
|
export {
|
|
47
47
|
askUser,
|
|
48
48
|
cancelQuestion,
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
installWithUpgradeLock,
|
|
6
6
|
ownsUpgradeLock,
|
|
7
7
|
releaseAutoUpdateLock
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-ISNGKZG4.js";
|
|
9
|
+
import "./chunk-RFIHLLRH.js";
|
|
10
10
|
import "./chunk-AQFEP65J.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-235LKHLW.js";
|
|
12
12
|
export {
|
|
13
13
|
claimUpgradeLock,
|
|
14
14
|
finishWithUpgradeLock,
|
package/package.json
CHANGED
package/dist/chunk-MNXHKEXB.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AUTO_DECISION_WINDOW_MS,
|
|
3
|
-
DEFAULT_SESSION,
|
|
4
|
-
claimThrottle,
|
|
5
|
-
deriveToolTarget,
|
|
6
|
-
permissionDeniedAction,
|
|
7
|
-
releaseThrottle,
|
|
8
|
-
reportEvent
|
|
9
|
-
} from "./chunk-6LKIK7V2.js";
|
|
10
|
-
import {
|
|
11
|
-
machineDecisionFor,
|
|
12
|
-
shouldDeferToNativeMode,
|
|
13
|
-
wireVerdictFor
|
|
14
|
-
} from "./chunk-2DZBIELP.js";
|
|
15
|
-
|
|
16
|
-
// src/machine-decision-audit.ts
|
|
17
|
-
import { basename } from "path";
|
|
18
|
-
var reportMachineDenial = async (input, verdict, agent) => {
|
|
19
|
-
const decision = machineDecisionFor(wireVerdictFor(verdict, 0));
|
|
20
|
-
if (!decision) return;
|
|
21
|
-
const sessionKey = input.session_id || DEFAULT_SESSION;
|
|
22
|
-
const toolTarget = deriveToolTarget(input.tool_name, input.tool_input);
|
|
23
|
-
const throttleKey = `machinedecision:${agent.type}:${sessionKey}:${input.tool_name}:${decision.origin}:${toolTarget ?? ""}`;
|
|
24
|
-
const throttle = claimThrottle(throttleKey, AUTO_DECISION_WINDOW_MS);
|
|
25
|
-
if (throttle === "throttled") return;
|
|
26
|
-
if (throttle === "unavailable") {
|
|
27
|
-
console.error("[Pushary] Could not access the audit throttle; reporting this denial without deduplication.");
|
|
28
|
-
}
|
|
29
|
-
try {
|
|
30
|
-
const response = await reportEvent({
|
|
31
|
-
event: "permission_denied",
|
|
32
|
-
occurredAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
33
|
-
toolUseId: input.tool_use_id,
|
|
34
|
-
agentType: agent.type,
|
|
35
|
-
agentName: `${agent.label} - ${basename(input.cwd ?? process.cwd())}`,
|
|
36
|
-
action: permissionDeniedAction(input.tool_name),
|
|
37
|
-
sessionId: input.session_id,
|
|
38
|
-
decisionSource: "policy_auto",
|
|
39
|
-
decisionOrigin: decision.origin,
|
|
40
|
-
decisionOutcome: decision.outcome,
|
|
41
|
-
toolName: input.tool_name,
|
|
42
|
-
toolTarget
|
|
43
|
-
}, { maxAttempts: 1, timeoutMs: 800, requireOk: true, skipDrain: true });
|
|
44
|
-
if (response?.ok !== true) throw new Error("Audit delivery was not acknowledged");
|
|
45
|
-
} catch {
|
|
46
|
-
console.error("[Pushary] Could not record the machine denial. The action remains blocked; its audit delivery will be retried on the next matching denial.");
|
|
47
|
-
if (throttle === "passed") {
|
|
48
|
-
try {
|
|
49
|
-
releaseThrottle(throttleKey);
|
|
50
|
-
} catch {
|
|
51
|
-
console.error("[Pushary] Could not reset the failed audit throttle.");
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
// src/native-defer.ts
|
|
58
|
-
var nativeDeferOptions = () => {
|
|
59
|
-
const respect = process.env.PUSHARY_RESPECT_PERMISSION_MODE;
|
|
60
|
-
const bypass = process.env.PUSHARY_DEFER_BYPASS;
|
|
61
|
-
return {
|
|
62
|
-
respectPermissionMode: !(respect === "0" || respect === "false"),
|
|
63
|
-
deferBypass: bypass === "1" || bypass === "true"
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
var defersToNativeMode = (permissionMode, toolName) => shouldDeferToNativeMode(permissionMode, toolName, nativeDeferOptions());
|
|
67
|
-
|
|
68
|
-
export {
|
|
69
|
-
reportMachineDenial,
|
|
70
|
-
defersToNativeMode
|
|
71
|
-
};
|