pushary 1.9.260 → 1.9.261
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 +4 -0
- package/dist/{api-IT47BCBQ.js → api-LAG3VCHN.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +29 -29
- package/dist/bin/pushary-bell.js +12 -12
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +26 -26
- package/dist/bin/pushary-clean.js +40 -40
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +36 -36
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +36 -36
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +47 -47
- package/dist/bin/pushary-disconnect.js +31 -31
- package/dist/bin/pushary-doctor.js +48 -48
- package/dist/bin/pushary-elicitation-hook.js +28 -28
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +32 -32
- package/dist/bin/pushary-hook.js +36 -36
- package/dist/bin/pushary-login.js +23 -23
- package/dist/bin/pushary-logout.js +32 -32
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +28 -28
- package/dist/bin/pushary-opencode-bridge.js +22 -22
- package/dist/bin/pushary-opencode-hook.js +33 -33
- package/dist/bin/pushary-permission-denied-hook.js +35 -35
- package/dist/bin/pushary-permission-hook.js +36 -36
- package/dist/bin/pushary-post-hook.js +31 -31
- package/dist/bin/pushary-prompt-hook.js +28 -28
- package/dist/bin/pushary-session-end-hook.js +28 -28
- package/dist/bin/pushary-session-start-hook.js +40 -40
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +59 -59
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +37 -37
- package/dist/bin/pushary-stop-hook.js +28 -28
- package/dist/bin/pushary-stopfailure-hook.js +28 -28
- package/dist/bin/pushary-suggestions.js +16 -16
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +26 -26
- package/dist/bin/pushary-upgrade.js +48 -48
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-GFDMYQGZ.js → chunk-2VTIVLLK.js} +3 -3
- package/dist/{chunk-7BJQM5GI.js → chunk-3DW5OCS2.js} +1 -1
- package/dist/{chunk-JWBRJTPT.js → chunk-3PAM7BQJ.js} +5 -5
- package/dist/{chunk-R5AX37KI.js → chunk-4ARB3SYI.js} +1 -1
- package/dist/{chunk-6JTLZZ32.js → chunk-4SKEGBFV.js} +3 -3
- package/dist/{chunk-XYSD5VPQ.js → chunk-53LLER7E.js} +1 -1
- package/dist/{chunk-DDRT2WJA.js → chunk-5AL5W2HQ.js} +3 -3
- package/dist/{chunk-BJ3PEW5V.js → chunk-5G55TWT5.js} +5 -5
- package/dist/{chunk-2MRIJ7TX.js → chunk-5UHGILNO.js} +1 -1
- package/dist/{chunk-LO6EAFRS.js → chunk-65MRCZGE.js} +5 -5
- package/dist/{chunk-277GOA5S.js → chunk-6LJVKWV7.js} +5 -5
- package/dist/{chunk-KQVVDMUD.js → chunk-6RD6RNJY.js} +4 -4
- package/dist/{chunk-XGF3JB3R.js → chunk-AKGNLKZP.js} +2 -2
- package/dist/{chunk-PFGQS4QA.js → chunk-ATHP6SIZ.js} +2 -2
- package/dist/{chunk-63R6OZXQ.js → chunk-B4MK2ZX2.js} +3 -3
- package/dist/{chunk-CTG3F2D5.js → chunk-BBE7UITT.js} +6 -6
- package/dist/{chunk-S5GQCO2I.js → chunk-BLSGQHGW.js} +3 -3
- package/dist/{chunk-IJUHRBKA.js → chunk-CHKSE6TO.js} +1 -1
- package/dist/{chunk-DLJ4ZGPG.js → chunk-DN7PXEXE.js} +6 -6
- package/dist/{chunk-ZO65DKXG.js → chunk-EYQZC5IV.js} +2 -2
- package/dist/{chunk-6CI7KSDE.js → chunk-FJMZDIKP.js} +2 -2
- package/dist/{chunk-WAT7A5DW.js → chunk-FUXTIM33.js} +5 -5
- package/dist/{chunk-HUMF6AIT.js → chunk-GAKYGHUR.js} +1 -1
- package/dist/{chunk-E7XXDMHV.js → chunk-GAO33I7L.js} +4 -4
- package/dist/{chunk-QHF3SYTV.js → chunk-GC75Q5P2.js} +5 -5
- package/dist/chunk-GETSAD5F.js +129 -0
- package/dist/{chunk-EZI67YOT.js → chunk-GIK5P25V.js} +5 -5
- package/dist/{chunk-HUK6GLBG.js → chunk-GQHIUZRG.js} +12 -12
- package/dist/{chunk-5J5JO5UQ.js → chunk-H4O3CV5W.js} +4 -4
- package/dist/{chunk-C3EE5L6V.js → chunk-H6FDFP6W.js} +83 -28
- package/dist/{chunk-U7VDCUWD.js → chunk-HAOO2MNV.js} +10 -10
- package/dist/{chunk-CXSLZIBE.js → chunk-HJOXLNYN.js} +3 -3
- package/dist/{chunk-LDXGL2QH.js → chunk-I2DSQVSB.js} +1 -1
- package/dist/{chunk-ITRSDEVH.js → chunk-IC6ARAAT.js} +5 -5
- package/dist/{chunk-B3MTDMWH.js → chunk-IXXH6ZDQ.js} +2 -2
- package/dist/{chunk-3N2FP6BB.js → chunk-JC2E7D2W.js} +1 -1
- package/dist/{chunk-6FEJR64W.js → chunk-JOABO2PX.js} +5 -5
- package/dist/{chunk-HITBECZ4.js → chunk-K4PJXC32.js} +1 -1
- package/dist/{chunk-2D5MYSTO.js → chunk-KMADAVW6.js} +1 -1
- package/dist/{chunk-AWRQHXQK.js → chunk-KUVXFNHY.js} +10 -10
- package/dist/{chunk-7B27SJIZ.js → chunk-L6IKTYMZ.js} +6 -6
- package/dist/{chunk-2WLNEOT7.js → chunk-LH7NQSUC.js} +1 -1
- package/dist/{chunk-LG47IOFN.js → chunk-LIZZSMUD.js} +8 -8
- package/dist/{chunk-X27JRAYF.js → chunk-LRF4XS6M.js} +3 -3
- package/dist/{chunk-DC32YKE2.js → chunk-MGGN37IW.js} +3 -2
- package/dist/{chunk-JHBGO2PF.js → chunk-N2IP7IDG.js} +1 -1
- package/dist/{chunk-S3R4CZT3.js → chunk-NBEFOUMK.js} +3 -3
- package/dist/{chunk-QYQMIAYH.js → chunk-NKSOSZZU.js} +2 -2
- package/dist/{chunk-I7TBQ7S5.js → chunk-NLG5BY2M.js} +1 -1
- package/dist/{chunk-JBXHNML3.js → chunk-NTTHRLDQ.js} +1 -1
- package/dist/{chunk-JHPL4VBE.js → chunk-NVYEQLD5.js} +2 -2
- package/dist/{chunk-DRCBTY5T.js → chunk-PX2MOPB2.js} +1 -1
- package/dist/{chunk-GNY6Z2U2.js → chunk-Q3JHO3EJ.js} +1 -1
- package/dist/{chunk-OOWMON6B.js → chunk-QAS67ZJH.js} +1 -1
- package/dist/{chunk-V3YAXCQU.js → chunk-QQ4U4NST.js} +7 -7
- package/dist/{chunk-SBY4JFPZ.js → chunk-QRPHWWHI.js} +2 -2
- package/dist/{chunk-MR3JQ3LS.js → chunk-QWIWACGD.js} +1 -1
- package/dist/{chunk-BX2A6VVT.js → chunk-RSV25NAF.js} +1 -1
- package/dist/{chunk-64KRDJ46.js → chunk-RXGEWDA2.js} +38 -26
- package/dist/{chunk-SFXNXZA5.js → chunk-SFZWZHZB.js} +2 -2
- package/dist/{chunk-W6FZOPF4.js → chunk-SO5DEUCS.js} +7 -7
- package/dist/{chunk-ATGFCOLG.js → chunk-SSW4SERP.js} +1 -1
- package/dist/{chunk-2G3DG3NV.js → chunk-T6ZGTBHT.js} +4 -4
- package/dist/{chunk-PGP4AQ6G.js → chunk-TDYAVCJ3.js} +4 -4
- package/dist/{chunk-GIHIYB3Q.js → chunk-TMJRKWWK.js} +5 -5
- package/dist/{chunk-YAUW3PBG.js → chunk-TUBI75B7.js} +1 -1
- package/dist/{chunk-DTSWVMTP.js → chunk-TW6BQOPH.js} +6 -6
- package/dist/{chunk-6WBHZHZS.js → chunk-TX3IJUL7.js} +6 -6
- package/dist/{chunk-HD3ECNDC.js → chunk-VVDJCJ3P.js} +2 -2
- package/dist/{chunk-DP3AS752.js → chunk-VWJ5KDMM.js} +4 -4
- package/dist/{chunk-QXI7SYVB.js → chunk-WCSSU6QW.js} +4 -4
- package/dist/{chunk-Z43TNC27.js → chunk-WFE4RAWD.js} +1 -1
- package/dist/{chunk-3VYL4GCX.js → chunk-WUZM74HI.js} +4 -4
- package/dist/{chunk-HQ6RWSWN.js → chunk-X7BHVGGH.js} +1 -1
- package/dist/{chunk-RLTFMU3B.js → chunk-YBVDF4NV.js} +4 -4
- package/dist/{chunk-Y2OJGMJX.js → chunk-YHA5L6D3.js} +3 -3
- package/dist/{chunk-ELXKZ6XS.js → chunk-YHHQICQD.js} +3 -3
- package/dist/{chunk-DLCLDR6K.js → chunk-YINXG75Q.js} +4 -4
- package/dist/{chunk-4EGBDV3T.js → chunk-ZGPUVZZ6.js} +2 -2
- package/dist/{chunk-3W5AT2Y4.js → chunk-ZNDLGXKO.js} +6 -6
- package/dist/{chunk-6EE4F4PG.js → chunk-ZSJDCRBA.js} +1 -1
- package/dist/{chunk-FUNDDXWK.js → chunk-ZVIF4O6V.js} +2 -2
- package/dist/{codex-app-cards-switch-WVE7EY3Q.js → codex-app-cards-switch-325EWQUA.js} +12 -12
- package/dist/{codex-card-routing-TW5PGTDQ.js → codex-card-routing-NXI4P7PB.js} +2 -2
- package/dist/{codex-desktop-launch-HCWAIOUD.js → codex-desktop-launch-3OAHHDWE.js} +3 -3
- package/dist/{codex-session-launch-QE7ET6HE.js → codex-session-launch-YB4LGTG2.js} +20 -20
- package/dist/{config-G3A5OUOA.js → config-4FJ7KK75.js} +3 -3
- package/dist/{global-upgrade-RMVGM26D.js → global-upgrade-E4UKP2KG.js} +9 -9
- package/dist/{identity-5YOIBGSM.js → identity-VQNJSXZO.js} +4 -4
- package/dist/{live-capabilities-DXRASGGQ.js → live-capabilities-YJW4CU7J.js} +4 -4
- package/dist/{paths-JZZB2B5C.js → paths-FOJGTYX4.js} +3 -3
- package/dist/reapply-Q2MIQ4A7.js +76 -0
- package/dist/src/index.js +34 -34
- package/dist/{upgrade-lock-RPTYWUWT.js → upgrade-lock-MGX4PJQZ.js} +4 -4
- package/dist/{usage-LFHZHCB5.js → usage-24DU5SWS.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-KQXWREMT.js +0 -69
- package/dist/reapply-55YYSVPF.js +0 -76
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exitOnHelpFlag
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-53LLER7E.js";
|
|
4
|
+
import "./chunk-3DW5OCS2.js";
|
|
5
5
|
import "./chunk-BG4HHB7E.js";
|
|
6
6
|
import "./chunk-CXQWDQCJ.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-MGGN37IW.js";
|
|
8
8
|
import "./chunk-MLKGABMK.js";
|
|
9
9
|
export {
|
|
10
10
|
exitOnHelpFlag
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pushary",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.261",
|
|
4
4
|
"description": "Human-in-the-loop (HITL) for AI agents: ask a person for approvals or answers by push notification. One command connects Claude Code, Codex, Cursor, Gemini CLI and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pushary",
|
package/dist/chunk-KQXWREMT.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
callDecisionStore
|
|
3
|
-
} from "./chunk-C3EE5L6V.js";
|
|
4
|
-
import {
|
|
5
|
-
claudePromptMayFollowPreToolUseAllow,
|
|
6
|
-
promptedCallIdentityText
|
|
7
|
-
} from "./chunk-JHBGO2PF.js";
|
|
8
|
-
|
|
9
|
-
// src/phone-approval.ts
|
|
10
|
-
import { createHash as createHash2 } from "crypto";
|
|
11
|
-
|
|
12
|
-
// ../hook-mapping/src/prompted-call-key.ts
|
|
13
|
-
import { createHash } from "crypto";
|
|
14
|
-
var PROMPTED_CALL_KEY_LENGTH = 32;
|
|
15
|
-
var promptedCallKey = (source, call) => {
|
|
16
|
-
const identity = promptedCallIdentityText(source, call);
|
|
17
|
-
return identity === null ? null : createHash("sha256").update(identity, "utf-8").digest("hex").slice(0, PROMPTED_CALL_KEY_LENGTH);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
// src/phone-approval.ts
|
|
21
|
-
var PHONE_APPROVAL_TTL_MS = 60 * 60 * 1e3;
|
|
22
|
-
var CLAUDE_SOURCE = "claude";
|
|
23
|
-
var phoneApprovalSourceFor = (source, profile, permissionMode) => {
|
|
24
|
-
if (profile?.promptFollowsPreToolUseAllow) return profile.source;
|
|
25
|
-
return claudePromptMayFollowPreToolUseAllow(source, permissionMode) ? source : null;
|
|
26
|
-
};
|
|
27
|
-
var phoneApprovals = callDecisionStore("phone-approval", PHONE_APPROVAL_TTL_MS);
|
|
28
|
-
var SLOT_SEPARATOR = "-";
|
|
29
|
-
var SLOT_LENGTH = 16;
|
|
30
|
-
var keepsOneRecordPerCall = (source) => source === CLAUDE_SOURCE;
|
|
31
|
-
var slotOfTheCall = (toolUseId) => createHash2("sha256").update(toolUseId, "utf-8").digest("hex").slice(0, SLOT_LENGTH);
|
|
32
|
-
var slotKeyOf = (key, toolUseId) => key === null || !toolUseId ? null : `${key}${SLOT_SEPARATOR}${slotOfTheCall(toolUseId)}`;
|
|
33
|
-
var recordsOfTheCall = (key) => key === null ? [] : [...phoneApprovals.keysStartingWith(`${key}${SLOT_SEPARATOR}`), key];
|
|
34
|
-
var recordKeyOf = (source, call) => {
|
|
35
|
-
const key = promptedCallKey(source, call);
|
|
36
|
-
return keepsOneRecordPerCall(source) ? slotKeyOf(key, call.tool_use_id) : key;
|
|
37
|
-
};
|
|
38
|
-
var forgetPhoneApproval = (source, call) => {
|
|
39
|
-
phoneApprovals.forget(recordKeyOf(source, call));
|
|
40
|
-
if (keepsOneRecordPerCall(source)) phoneApprovals.forget(promptedCallKey(source, call));
|
|
41
|
-
};
|
|
42
|
-
var forgetEveryPhoneApproval = (source, call) => {
|
|
43
|
-
for (const key of recordsOfTheCall(promptedCallKey(source, call))) phoneApprovals.forget(key);
|
|
44
|
-
};
|
|
45
|
-
var rememberPhoneApproval = (source, call) => {
|
|
46
|
-
if (call.tool_use_id) phoneApprovals.record(recordKeyOf(source, call), { kind: "approved", toolUseId: call.tool_use_id });
|
|
47
|
-
};
|
|
48
|
-
var isAnApproval = (key) => phoneApprovals.peek(key)?.kind === "approved";
|
|
49
|
-
var holdsPhoneApproval = (source, call) => recordsOfTheCall(promptedCallKey(source, call)).some(isAnApproval);
|
|
50
|
-
var firstApprovalTakenFrom = (keys) => {
|
|
51
|
-
for (const key of keys) {
|
|
52
|
-
const recorded = phoneApprovals.consume(key);
|
|
53
|
-
if (recorded?.kind === "approved") return recorded.toolUseId;
|
|
54
|
-
}
|
|
55
|
-
return void 0;
|
|
56
|
-
};
|
|
57
|
-
var takePhoneApproval = (source, call) => {
|
|
58
|
-
const toolUseId = firstApprovalTakenFrom(recordsOfTheCall(promptedCallKey(source, call)));
|
|
59
|
-
return toolUseId === void 0 ? void 0 : { ...call, tool_use_id: toolUseId };
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export {
|
|
63
|
-
phoneApprovalSourceFor,
|
|
64
|
-
forgetPhoneApproval,
|
|
65
|
-
forgetEveryPhoneApproval,
|
|
66
|
-
rememberPhoneApproval,
|
|
67
|
-
holdsPhoneApproval,
|
|
68
|
-
takePhoneApproval
|
|
69
|
-
};
|
package/dist/reapply-55YYSVPF.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ensureCodexTrustAfterReapply,
|
|
3
|
-
inspectConfiguredManagedProviders,
|
|
4
|
-
reapplyAllAgents,
|
|
5
|
-
reapplyClaudeForVersion,
|
|
6
|
-
reapplyClaudeSettings,
|
|
7
|
-
reapplyClineSettings,
|
|
8
|
-
reapplyCodexSettings,
|
|
9
|
-
reapplyCompatibleHooks,
|
|
10
|
-
reapplyCursorPlugin,
|
|
11
|
-
reapplyGeminiSettings,
|
|
12
|
-
reapplyOpenCodePlugin,
|
|
13
|
-
reapplyVsCodePlugin,
|
|
14
|
-
repairCodexHolds
|
|
15
|
-
} from "./chunk-HUK6GLBG.js";
|
|
16
|
-
import "./chunk-TWWOQKXK.js";
|
|
17
|
-
import "./chunk-Y2OJGMJX.js";
|
|
18
|
-
import "./chunk-RLTFMU3B.js";
|
|
19
|
-
import "./chunk-X27JRAYF.js";
|
|
20
|
-
import "./chunk-WAT7A5DW.js";
|
|
21
|
-
import "./chunk-6JTLZZ32.js";
|
|
22
|
-
import "./chunk-DLCLDR6K.js";
|
|
23
|
-
import "./chunk-W6FZOPF4.js";
|
|
24
|
-
import "./chunk-ATGFCOLG.js";
|
|
25
|
-
import "./chunk-IJUHRBKA.js";
|
|
26
|
-
import "./chunk-HITBECZ4.js";
|
|
27
|
-
import "./chunk-TCE3J44Z.js";
|
|
28
|
-
import "./chunk-DLJ4ZGPG.js";
|
|
29
|
-
import "./chunk-Z43TNC27.js";
|
|
30
|
-
import "./chunk-3W5AT2Y4.js";
|
|
31
|
-
import "./chunk-2G3DG3NV.js";
|
|
32
|
-
import "./chunk-C3EE5L6V.js";
|
|
33
|
-
import "./chunk-JHBGO2PF.js";
|
|
34
|
-
import "./chunk-2D5MYSTO.js";
|
|
35
|
-
import "./chunk-I7TBQ7S5.js";
|
|
36
|
-
import "./chunk-BZIBNSQE.js";
|
|
37
|
-
import "./chunk-6EE4F4PG.js";
|
|
38
|
-
import "./chunk-P6DUWKAO.js";
|
|
39
|
-
import "./chunk-3PSNUHC5.js";
|
|
40
|
-
import "./chunk-6WBHZHZS.js";
|
|
41
|
-
import "./chunk-HUMF6AIT.js";
|
|
42
|
-
import "./chunk-POFBE6ZY.js";
|
|
43
|
-
import "./chunk-JWBRJTPT.js";
|
|
44
|
-
import "./chunk-3N2FP6BB.js";
|
|
45
|
-
import "./chunk-LDXGL2QH.js";
|
|
46
|
-
import "./chunk-CXSLZIBE.js";
|
|
47
|
-
import "./chunk-ELXKZ6XS.js";
|
|
48
|
-
import "./chunk-2WLNEOT7.js";
|
|
49
|
-
import "./chunk-S5GQCO2I.js";
|
|
50
|
-
import "./chunk-HD3ECNDC.js";
|
|
51
|
-
import "./chunk-4EGBDV3T.js";
|
|
52
|
-
import "./chunk-6ICPEJY5.js";
|
|
53
|
-
import "./chunk-E7XXDMHV.js";
|
|
54
|
-
import "./chunk-XGF3JB3R.js";
|
|
55
|
-
import "./chunk-CINBAX5G.js";
|
|
56
|
-
import "./chunk-PM2NRK6Y.js";
|
|
57
|
-
import "./chunk-7BJQM5GI.js";
|
|
58
|
-
import "./chunk-BG4HHB7E.js";
|
|
59
|
-
import "./chunk-CXQWDQCJ.js";
|
|
60
|
-
import "./chunk-DC32YKE2.js";
|
|
61
|
-
import "./chunk-MLKGABMK.js";
|
|
62
|
-
export {
|
|
63
|
-
ensureCodexTrustAfterReapply,
|
|
64
|
-
inspectConfiguredManagedProviders,
|
|
65
|
-
reapplyAllAgents,
|
|
66
|
-
reapplyClaudeForVersion,
|
|
67
|
-
reapplyClaudeSettings,
|
|
68
|
-
reapplyClineSettings,
|
|
69
|
-
reapplyCodexSettings,
|
|
70
|
-
reapplyCompatibleHooks,
|
|
71
|
-
reapplyCursorPlugin,
|
|
72
|
-
reapplyGeminiSettings,
|
|
73
|
-
reapplyOpenCodePlugin,
|
|
74
|
-
reapplyVsCodePlugin,
|
|
75
|
-
repairCodexHolds
|
|
76
|
-
};
|