pushary 1.9.210 → 1.9.213
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 +22 -0
- package/dist/{api-GBK5CCGM.js → api-XXA3DBK5.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +12 -12
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +36 -35
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +24 -24
- package/dist/bin/pushary-codex-hook.js +38 -42
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +35 -35
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +46 -47
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +1 -0
- package/dist/bin/pushary-doctor.js +48 -47
- package/dist/bin/pushary-elicitation-hook.js +28 -29
- package/dist/bin/pushary-gemini-bridge.js +19 -19
- package/dist/bin/pushary-gemini-hook.js +33 -35
- package/dist/bin/pushary-hook.js +34 -36
- package/dist/bin/pushary-login.js +22 -22
- package/dist/bin/pushary-logout.js +30 -30
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +24 -24
- package/dist/bin/pushary-opencode-hook.js +35 -39
- package/dist/bin/pushary-permission-denied-hook.js +34 -36
- package/dist/bin/pushary-permission-hook.js +34 -36
- package/dist/bin/pushary-post-hook.js +28 -28
- package/dist/bin/pushary-prompt-hook.js +27 -27
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +39 -40
- package/dist/bin/pushary-sessions.js +14 -14
- package/dist/bin/pushary-setup.js +63 -65
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +36 -36
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +16 -16
- package/dist/bin/pushary-transcript-register.js +22 -20
- package/dist/bin/pushary-transcripts.js +26 -26
- package/dist/bin/pushary-upgrade.js +49 -50
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-ULDH35EQ.js → chunk-2BKMZ2CZ.js} +5 -5
- package/dist/{chunk-HFDMGCBY.js → chunk-2DNM6F7C.js} +5 -5
- package/dist/{chunk-FZDIXPVK.js → chunk-2OREQ7MI.js} +2 -2
- package/dist/{chunk-DVCYIK56.js → chunk-2WCI5BY6.js} +2 -2
- package/dist/{chunk-M2PWMMXD.js → chunk-3T7KADQO.js} +422 -71
- package/dist/{chunk-73TR7RU4.js → chunk-3USB6JEH.js} +3 -3
- package/dist/{chunk-JJB34JRR.js → chunk-47G72ONB.js} +3 -3
- package/dist/{chunk-52MSHZYI.js → chunk-4DXHNWUY.js} +6 -6
- package/dist/{chunk-672F6V2L.js → chunk-4NJBLOER.js} +2 -2
- package/dist/{chunk-JMKJHN6U.js → chunk-53PLSLF5.js} +45 -167
- package/dist/{chunk-GS4RR3LH.js → chunk-5B5PPHJH.js} +1 -1
- package/dist/{chunk-37HOIRPC.js → chunk-5ML6PZ4U.js} +15 -17
- package/dist/{chunk-7AYZRIII.js → chunk-5XBZABC5.js} +2 -2
- package/dist/{chunk-6EPBLKBZ.js → chunk-6D54GFZC.js} +5 -5
- package/dist/{chunk-XE47DXLF.js → chunk-6FLCKWIH.js} +5 -5
- package/dist/{chunk-JWPOZFT6.js → chunk-6FN7NPOE.js} +2 -2
- package/dist/{chunk-TGYDKCOB.js → chunk-6N73T3G2.js} +2 -2
- package/dist/{chunk-LSUB2RBM.js → chunk-7H6BFJU5.js} +1 -1
- package/dist/{chunk-2L6RQHDJ.js → chunk-7MPVFAYZ.js} +1 -1
- package/dist/{chunk-JFSAQQO2.js → chunk-ARTOOCLW.js} +1 -1
- package/dist/{chunk-5AY2STJB.js → chunk-BKTWGQLC.js} +30 -10
- package/dist/{chunk-FGYQI6YP.js → chunk-CJRHVIUJ.js} +1 -1
- package/dist/{chunk-GAJ5BULC.js → chunk-CR5X46JQ.js} +1 -1
- package/dist/{chunk-SWUBCXOZ.js → chunk-CXLHBAN4.js} +3 -3
- package/dist/{chunk-NQAET7YS.js → chunk-FBDVDCMC.js} +9 -6
- package/dist/{chunk-SK65JVE3.js → chunk-FCIJEVDH.js} +1 -1
- package/dist/{chunk-NQQDBWMM.js → chunk-FJJRXIZC.js} +7 -7
- package/dist/{chunk-AYITBDTL.js → chunk-FUZSKAEQ.js} +3 -3
- package/dist/{chunk-X6KWCU54.js → chunk-FYAEQIYF.js} +4 -4
- package/dist/{chunk-QMXE2YQO.js → chunk-G4UCXWJX.js} +6 -6
- package/dist/{chunk-5SGCCWNR.js → chunk-GJ5XTWNZ.js} +1 -1
- package/dist/{chunk-ERVRBZNI.js → chunk-GKMSHV5D.js} +2 -2
- package/dist/{chunk-XRURBIKQ.js → chunk-GKTQXPUM.js} +1 -1
- package/dist/{chunk-TC6DWKY5.js → chunk-HFDNWC2K.js} +1 -1
- package/dist/{chunk-RYK2DXDF.js → chunk-HT4WO7V6.js} +7 -7
- package/dist/{chunk-TFCNGH7V.js → chunk-ID7W4YBQ.js} +1 -1
- package/dist/{chunk-BV74A4Q3.js → chunk-IHG2TFXZ.js} +3 -3
- package/dist/{chunk-VM6WBORP.js → chunk-JKM7YRYV.js} +141 -7
- package/dist/{chunk-Q2NOGE3Y.js → chunk-JYDVDSBM.js} +8 -13
- package/dist/{chunk-CJAHB4QY.js → chunk-K3HFMX5R.js} +6 -6
- package/dist/{chunk-7WVGOW6O.js → chunk-K5IPDN4D.js} +5 -5
- package/dist/{chunk-VUUC2V3L.js → chunk-KJA5JZXV.js} +2 -2
- package/dist/{chunk-VIKKRYII.js → chunk-KQRWWJLF.js} +1 -1
- package/dist/{chunk-BPEYHTXU.js → chunk-LBPGPPHU.js} +2 -2
- package/dist/{chunk-TSUPVKMX.js → chunk-NTNEBBYW.js} +10 -10
- package/dist/{chunk-52CYFOP4.js → chunk-O372NWUI.js} +5 -5
- package/dist/{chunk-SA634ZQS.js → chunk-ODF2RMXP.js} +4 -4
- package/dist/{chunk-ADNPGA5K.js → chunk-OLD2IPCZ.js} +6 -6
- package/dist/{chunk-5QEFRYVG.js → chunk-OV7W5JYC.js} +9 -9
- package/dist/{chunk-YOM5NVDW.js → chunk-PKDU2BY4.js} +3 -3
- package/dist/{chunk-JF3IB3QX.js → chunk-POXHWH73.js} +14 -3
- package/dist/{chunk-JSTAZSTC.js → chunk-PSKPKVM6.js} +1 -1
- package/dist/{chunk-HUDP6NKM.js → chunk-QEMU3P55.js} +3 -3
- package/dist/{chunk-7V4ZAQNO.js → chunk-QLKIY3FD.js} +1 -1
- package/dist/{chunk-XELCQFDJ.js → chunk-QQEJDPYK.js} +1 -1
- package/dist/{chunk-3MO2JND5.js → chunk-RDWNFNDW.js} +4 -4
- package/dist/{chunk-NPYCMOFC.js → chunk-RE5KA47K.js} +3 -3
- package/dist/{chunk-E2WCYHXF.js → chunk-RN2PB5JJ.js} +5 -5
- package/dist/{chunk-TAKPXBNF.js → chunk-RZISUO3M.js} +23 -13
- package/dist/{chunk-VXXWVOKF.js → chunk-SGOP6D4K.js} +1 -1
- package/dist/{chunk-EH6ATZZU.js → chunk-SK6242SK.js} +2 -2
- package/dist/{chunk-GTNSTDUB.js → chunk-SR3FOAJE.js} +2 -2
- package/dist/{chunk-LEOHGIZ5.js → chunk-T63XZCBU.js} +5 -5
- package/dist/{chunk-GTHM6XOG.js → chunk-TBCV2U6Y.js} +1 -1
- package/dist/{chunk-GXGJYRAN.js → chunk-UPZHYN4N.js} +4 -4
- package/dist/{chunk-V3PYEJRY.js → chunk-UQQN6ST3.js} +1 -1
- package/dist/{chunk-IYGEE7XO.js → chunk-VKGJ4XY5.js} +1 -1
- package/dist/{chunk-JA6DFYFJ.js → chunk-VUCXVBDQ.js} +3 -3
- package/dist/{chunk-AJV7HEGB.js → chunk-VZD4SLJE.js} +15 -13
- package/dist/{chunk-XMZEG5QB.js → chunk-W6PL3FPJ.js} +4 -4
- package/dist/{chunk-W7EUKTEI.js → chunk-W7Z4GJZI.js} +3 -3
- package/dist/{chunk-GC64OIDA.js → chunk-WIWFIQL4.js} +2 -2
- package/dist/{chunk-VQLAGEHH.js → chunk-WXWWCODY.js} +1 -1
- package/dist/{chunk-SOMSKUI6.js → chunk-Y3OHWGZV.js} +2 -2
- package/dist/{chunk-E4AOJK33.js → chunk-YN4Q3ZXZ.js} +6 -4
- package/dist/{chunk-SW33W47V.js → chunk-Z6QGSQEN.js} +4 -4
- package/dist/{chunk-7Y4AMZG3.js → chunk-ZJYSZDFR.js} +1 -1
- package/dist/{chunk-GILLSUOE.js → chunk-ZRDDV7QK.js} +5 -5
- package/dist/{chunk-RMASRYS4.js → chunk-ZYXC6ZEQ.js} +1 -1
- package/dist/{codex-app-cards-switch-VSNLHN5H.js → codex-app-cards-switch-3A5N6T77.js} +11 -11
- package/dist/{codex-card-routing-EBLLT4JN.js → codex-card-routing-SYP6VQTQ.js} +2 -2
- package/dist/{codex-desktop-launch-XGXKINN5.js → codex-desktop-launch-XFYCWMO6.js} +1 -1
- package/dist/{codex-session-launch-YQNK4MEM.js → codex-session-launch-O4ZB2CTG.js} +20 -20
- package/dist/{config-QTON6UUP.js → config-KVGNGI6J.js} +3 -3
- package/dist/{global-upgrade-AOZNS5TM.js → global-upgrade-MRY3EP7V.js} +9 -9
- package/dist/{identity-TILIXUYO.js → identity-PSFVJNH5.js} +4 -4
- package/dist/{live-capabilities-BE7NSCFI.js → live-capabilities-VBKANCXF.js} +4 -4
- package/dist/{paths-MIWMKITN.js → paths-JPEMX4YI.js} +3 -3
- package/dist/reapply-TBGC63MP.js +74 -0
- package/dist/src/index.d.ts +2 -21
- package/dist/src/index.js +33 -35
- package/dist/{upgrade-lock-N75TGVFZ.js → upgrade-lock-RW44O57U.js} +4 -4
- package/dist/{usage-IH2QUEKB.js → usage-NCJLUCAW.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-BXFI56J5.js +0 -78
- package/dist/chunk-ELY55B2S.js +0 -162
- package/dist/chunk-SHK2PLZC.js +0 -39
- package/dist/reapply-NBOQ7UO2.js +0 -75
|
@@ -1196,6 +1196,10 @@ var APPROVE_ANSWER = "yes";
|
|
|
1196
1196
|
var STOP_HANDOFF_ACTION = "stop";
|
|
1197
1197
|
var DECISION_STOP_STATUSES = ["cancelled", "unavailable", "stopped", "missing"];
|
|
1198
1198
|
var isDecisionStoppedReply = (reply) => reply.handoffAction === STOP_HANDOFF_ACTION || typeof reply.status === "string" && DECISION_STOP_STATUSES.includes(reply.status);
|
|
1199
|
+
var isAbsentOrString = (value) => value === void 0 || typeof value === "string";
|
|
1200
|
+
var isAbsentOrBoolean = (value) => value === void 0 || typeof value === "boolean";
|
|
1201
|
+
var isAbsentOrTrue = (value) => value === void 0 || value === true;
|
|
1202
|
+
var isAskUserReply = (value) => isRecord(value) && typeof value.correlationId === "string" && typeof value.status === "string" && isAbsentOrString(value.handoffAction) && isAbsentOrTrue(value.typedAnswer) && isAbsentOrBoolean(value.answered) && isAbsentOrString(value.value) && isAbsentOrString(value.note) && isAbsentOrString(value.waitEndsAt) && isAbsentOrString(value.answerUrl) && isAbsentOrBoolean(value.suppressed) && isAbsentOrBoolean(value.noDevices) && isAbsentOrBoolean(value.paused) && isAbsentOrBoolean(value.overflow);
|
|
1199
1203
|
|
|
1200
1204
|
// ../contracts/src/cursor.ts
|
|
1201
1205
|
var CURSOR_GATE_EVENTS = ["beforeShellExecution", "beforeMCPExecution", "preToolUse"];
|
|
@@ -3877,6 +3881,7 @@ var SETUP_ABORT_REASONS = [
|
|
|
3877
3881
|
"pairing-failed",
|
|
3878
3882
|
"login-rejected",
|
|
3879
3883
|
"no-agents-detected",
|
|
3884
|
+
"no-agents-selected",
|
|
3880
3885
|
"interrupted",
|
|
3881
3886
|
"crashed"
|
|
3882
3887
|
];
|
|
@@ -4873,6 +4878,8 @@ var SUPPORT_DISCORD = "https://discord.gg/9v3VvUByrr";
|
|
|
4873
4878
|
var HOOK_VERSION_PATTERN = /^\d+\.\d+\.\d+$/;
|
|
4874
4879
|
var HOOK_LOCATOR_BINARY = "pushary-bridge";
|
|
4875
4880
|
var HOOK_CWD_MAX_LENGTH = 4096;
|
|
4881
|
+
var isBoundedHookCwd = (cwd) => cwd.length <= HOOK_CWD_MAX_LENGTH;
|
|
4882
|
+
var isAskableHookCwd = (cwd) => cwd.length > 0 && isBoundedHookCwd(cwd);
|
|
4876
4883
|
var isTokenCount = (value) => typeof value === "number" && Number.isInteger(value) && value >= 0;
|
|
4877
4884
|
var reportableSessionId = (value) => typeof value === "string" && value.length > 0 && value.length <= SESSION_ID_MAX_LENGTH ? value : null;
|
|
4878
4885
|
var HOOK_BATCH_MAX_BYTES = 4 * 1024 * 1024;
|
|
@@ -9462,6 +9469,8 @@ var terminalLiveWait = (policy, holdBudgetProof) => {
|
|
|
9462
9469
|
const holdsTheBudget = waitsForThePhone || holdBudgetProof !== void 0 && decision === void 0;
|
|
9463
9470
|
return { waitSeconds: holdsTheBudget ? ceiling : Math.min(policySeconds, ceiling), holdSeconds: ceiling, onTimeout: "leave_to_terminal" };
|
|
9464
9471
|
};
|
|
9472
|
+
var NATIVE_ASK_EVENTS = /* @__PURE__ */ new Set(["PermissionRequest"]);
|
|
9473
|
+
var isNativeAskEvent = (event) => typeof event === "string" && NATIVE_ASK_EVENTS.has(event);
|
|
9465
9474
|
var NATIVE_BLOCK_EVENTS = /* @__PURE__ */ new Set(["PermissionDenied"]);
|
|
9466
9475
|
var isNativeBlockEvent = (event) => typeof event === "string" && NATIVE_BLOCK_EVENTS.has(event);
|
|
9467
9476
|
var CODEX_RESCUE_TOOL_NAME = "Bash";
|
|
@@ -9697,6 +9706,7 @@ var codexHasNoPromptOfItsOwn = (scopeReason, permissionMode) => scopeReason !==
|
|
|
9697
9706
|
var CODEX_ASK_PASSES = { kind: "pass" };
|
|
9698
9707
|
var codexAskUnanswered = (ask) => ({ kind: "deny", reason: unansweredRefusalReason(ask.paused) });
|
|
9699
9708
|
var ruleApprovesAfterItsFullWindow = (ask) => ask.mode === "push_only" && ask.fullWindowServed && !ask.paused && ask.timeoutAction === "approve";
|
|
9709
|
+
var questionServedItsWholeWindow = (window) => !window.clampCut && !window.paused && !window.overflow;
|
|
9700
9710
|
var codexUnansweredPreToolUse = (ask) => ruleApprovesAfterItsFullWindow(ask) ? CODEX_ASK_PASSES : codexAskUnanswered(ask);
|
|
9701
9711
|
var HANDED_BACK_REASON = "Handling on your machine";
|
|
9702
9712
|
var HAND_BACK_TO_THE_AGENTS_PROMPT = { kind: "agent_prompt" };
|
|
@@ -10316,7 +10326,6 @@ var elicitationContentFromAnswers = (ask, answers) => {
|
|
|
10316
10326
|
var isHandBackAnswer = (answer) => classifyConfirmResponse(answer) === "defer";
|
|
10317
10327
|
|
|
10318
10328
|
// ../contracts/src/hook-activation.ts
|
|
10319
|
-
var hookWritePath = (toolName, input) => toolName === "Write" ? askableToolPathOf(toolName, input) : void 0;
|
|
10320
10329
|
var HOOK_ACTIVATION_RESULTS = ["unverified", "approved_executed", "denied_observed", "unexpected_execution", "tool_failed"];
|
|
10321
10330
|
var MAX_HOOK_ACTIVATION_EVIDENCE_ROWS = 20;
|
|
10322
10331
|
var isHookActivationReport = (value) => {
|
|
@@ -10440,6 +10449,7 @@ export {
|
|
|
10440
10449
|
compatibleProfileFor,
|
|
10441
10450
|
compatibleTargetFiles,
|
|
10442
10451
|
isDecisionStoppedReply,
|
|
10452
|
+
isAskUserReply,
|
|
10443
10453
|
CURSOR_GATE_EVENTS,
|
|
10444
10454
|
CURSOR_GATE_SCRIPT,
|
|
10445
10455
|
CURSOR_GATE_COVERAGE,
|
|
@@ -10461,7 +10471,6 @@ export {
|
|
|
10461
10471
|
PUSHARY_HOSTS,
|
|
10462
10472
|
KEY_SCOPE,
|
|
10463
10473
|
normalizeKeyScope,
|
|
10464
|
-
hookWritePath,
|
|
10465
10474
|
MAX_HOOK_ACTIVATION_EVIDENCE_ROWS,
|
|
10466
10475
|
isHookActivationReport,
|
|
10467
10476
|
hookActivationResult,
|
|
@@ -10553,7 +10562,7 @@ export {
|
|
|
10553
10562
|
SUPPORT_DISCORD,
|
|
10554
10563
|
HOOK_VERSION_PATTERN,
|
|
10555
10564
|
HOOK_LOCATOR_BINARY,
|
|
10556
|
-
|
|
10565
|
+
isAskableHookCwd,
|
|
10557
10566
|
isTokenCount,
|
|
10558
10567
|
reportableSessionId,
|
|
10559
10568
|
TOOL_NAME_MAX_LENGTH,
|
|
@@ -10594,6 +10603,7 @@ export {
|
|
|
10594
10603
|
terminalStaysLiveForTheCall,
|
|
10595
10604
|
claudeQuestionAskedInBothPlaces,
|
|
10596
10605
|
terminalLiveWait,
|
|
10606
|
+
isNativeAskEvent,
|
|
10597
10607
|
CODEX_RESCUE_TOOL_NAME,
|
|
10598
10608
|
CODEX_RESCUE_STOP_RESERVE_SECONDS,
|
|
10599
10609
|
isBlockedActionRequest,
|
|
@@ -10620,6 +10630,7 @@ export {
|
|
|
10620
10630
|
unapprovedScopeReason,
|
|
10621
10631
|
codexHasNoPromptOfItsOwn,
|
|
10622
10632
|
ruleApprovesAfterItsFullWindow,
|
|
10633
|
+
questionServedItsWholeWindow,
|
|
10623
10634
|
codexUnansweredPreToolUse,
|
|
10624
10635
|
HANDED_BACK_REASON,
|
|
10625
10636
|
HAND_BACK_WITHOUT_A_PROMPT,
|
|
@@ -536,8 +536,8 @@ var loadedOnce = (load) => {
|
|
|
536
536
|
};
|
|
537
537
|
|
|
538
538
|
// src/codex-desktop-proxy.ts
|
|
539
|
-
var loadThePhone = () => import("./api-
|
|
540
|
-
var loadTheCardRouting = () => import("./codex-card-routing-
|
|
539
|
+
var loadThePhone = () => import("./api-XXA3DBK5.js");
|
|
540
|
+
var loadTheCardRouting = () => import("./codex-card-routing-SYP6VQTQ.js");
|
|
541
541
|
var theFirstCardLoadsAgain = () => {
|
|
542
542
|
};
|
|
543
543
|
var ASKS_WITHOUT_ROUTING = {};
|
|
@@ -1097,7 +1097,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1097
1097
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1098
1098
|
}
|
|
1099
1099
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1100
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1100
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-3A5N6T77.js");
|
|
1101
1101
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1102
1102
|
}
|
|
1103
1103
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
OPENCODE_PLUGIN_PLACEHOLDER,
|
|
7
7
|
OPENCODE_PLUGIN_SIBLING,
|
|
8
8
|
OPENCODE_PLUGIN_SIBLING_CONTENTS
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PSKPKVM6.js";
|
|
10
10
|
|
|
11
11
|
// src/opencode-runtime-bundle.ts
|
|
12
12
|
var openCodeRuntimeSource = `import { spawn } from 'child_process';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FJJRXIZC.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PKDU2BY4.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SR3FOAJE.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
12
|
} from "./chunk-PM2NRK6Y.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-POXHWH73.js";
|
|
17
17
|
|
|
18
18
|
// src/shared-mcp-key.ts
|
|
19
19
|
var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-P6DUWKAO.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchAsCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HFDNWC2K.js";
|
|
8
8
|
import {
|
|
9
9
|
getBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZJYSZDFR.js";
|
|
11
11
|
import {
|
|
12
12
|
writeJsonAtomicDurable
|
|
13
13
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
compressTranscriptRecord,
|
|
16
16
|
redactSecretsFromContent,
|
|
17
17
|
transcriptRecordPlaintext
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-POXHWH73.js";
|
|
19
19
|
|
|
20
20
|
// src/transcript-recipient-pin.ts
|
|
21
21
|
import { createHash } from "crypto";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Z6QGSQEN.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3T7KADQO.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UQQN6ST3.js";
|
|
11
11
|
import {
|
|
12
12
|
CLAUDE_HOOK_EVENTS,
|
|
13
13
|
PUSHARY_MCP_URL,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
isPusharyHook,
|
|
20
20
|
registerHookEntry,
|
|
21
21
|
removeClaudeMcpServers
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SR3FOAJE.js";
|
|
23
23
|
import {
|
|
24
24
|
HOOK_COMPATIBLE_PROFILES,
|
|
25
25
|
PHONE_ANSWERED_TOOLS,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
pusharyMissingReason,
|
|
31
31
|
refusalOutput,
|
|
32
32
|
withHookHoldBudget
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-POXHWH73.js";
|
|
34
34
|
|
|
35
35
|
// src/config-document.ts
|
|
36
36
|
import { parse, stringify } from "smol-toml";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-WHB622LP.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureDaemonRunning
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4DXHNWUY.js";
|
|
7
7
|
import {
|
|
8
8
|
hookOwnerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Z6QGSQEN.js";
|
|
10
10
|
import {
|
|
11
11
|
hookMeaning
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UQQN6ST3.js";
|
|
13
13
|
import {
|
|
14
14
|
buildTranscriptRecords,
|
|
15
15
|
changedRecipientsMessage,
|
|
@@ -24,31 +24,31 @@ import {
|
|
|
24
24
|
uploadTranscriptRecords,
|
|
25
25
|
verifyAnchoredRecipients,
|
|
26
26
|
wrapSessionKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-RE5KA47K.js";
|
|
28
|
+
import {
|
|
29
|
+
transcriptEnvironmentPreference,
|
|
30
|
+
transcriptsEnabled
|
|
31
|
+
} from "./chunk-GJ5XTWNZ.js";
|
|
28
32
|
import {
|
|
29
33
|
external_exports,
|
|
30
34
|
ownedOnlyByThisUser,
|
|
31
35
|
savedTranscriptReadPositions
|
|
32
36
|
} from "./chunk-P6DUWKAO.js";
|
|
33
|
-
import {
|
|
34
|
-
transcriptEnvironmentPreference,
|
|
35
|
-
transcriptsEnabled
|
|
36
|
-
} from "./chunk-5SGCCWNR.js";
|
|
37
37
|
import {
|
|
38
38
|
fetchAsCredential
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-HFDNWC2K.js";
|
|
40
40
|
import {
|
|
41
41
|
readTranscriptPreference
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-PKDU2BY4.js";
|
|
43
43
|
import {
|
|
44
44
|
claudeConfigDir,
|
|
45
45
|
codexHome,
|
|
46
46
|
pusharyDir
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-SR3FOAJE.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiKey,
|
|
50
50
|
getBaseUrl
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ZJYSZDFR.js";
|
|
52
52
|
import {
|
|
53
53
|
writeJsonAtomic,
|
|
54
54
|
writeJsonAtomicDurable
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
isHookSource,
|
|
62
62
|
isRecord,
|
|
63
63
|
redactSecretsFromContent
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-POXHWH73.js";
|
|
65
65
|
|
|
66
66
|
// src/transcript-registration.ts
|
|
67
67
|
import { createHash as createHash4 } from "crypto";
|
|
@@ -1253,6 +1253,15 @@ var closesSession = (source, input) => {
|
|
|
1253
1253
|
if (typeof event !== "string") return false;
|
|
1254
1254
|
return event === SESSION_END_EVENT || isHookSource(source) && hookMeaning(source, event)?.kind === "session_closed";
|
|
1255
1255
|
};
|
|
1256
|
+
var workFromTheHomeFolderOnWindows = (platform = process.platform, home = homedir2, changeDirectory = (path) => process.chdir(path)) => {
|
|
1257
|
+
if (platform !== "win32") return false;
|
|
1258
|
+
try {
|
|
1259
|
+
changeDirectory(home());
|
|
1260
|
+
return true;
|
|
1261
|
+
} catch {
|
|
1262
|
+
return false;
|
|
1263
|
+
}
|
|
1264
|
+
};
|
|
1256
1265
|
var registerTranscript = (source, input, startDaemon = () => {
|
|
1257
1266
|
void ensureDaemonRunning({ waitTimeoutMs: 0 }).catch(() => {
|
|
1258
1267
|
});
|
|
@@ -1423,6 +1432,7 @@ export {
|
|
|
1423
1432
|
snapshotRecipientPinFile,
|
|
1424
1433
|
clearSnapshotRecipientPins,
|
|
1425
1434
|
registeredTranscriptEnabled,
|
|
1435
|
+
workFromTheHomeFolderOnWindows,
|
|
1426
1436
|
registerTranscript,
|
|
1427
1437
|
startRegisteredTranscripts
|
|
1428
1438
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callDecisionStore,
|
|
3
3
|
identifyingToolInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3T7KADQO.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalJson
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SR3FOAJE.js";
|
|
8
8
|
|
|
9
9
|
// src/phone-approval.ts
|
|
10
10
|
import { createHash } from "crypto";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatVersion,
|
|
4
4
|
quoteIfNeeded,
|
|
5
5
|
shellDoubleQuoted
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YN4Q3ZXZ.js";
|
|
7
7
|
import {
|
|
8
8
|
writeFileAtomic
|
|
9
9
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
PUSHARY_HOSTS,
|
|
23
23
|
PUSHARY_TOOL_PREFIX,
|
|
24
24
|
withHookHoldBudget
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-POXHWH73.js";
|
|
26
26
|
|
|
27
27
|
// src/setup/paths.ts
|
|
28
28
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
settingSnapshot,
|
|
19
19
|
writeHermesSetting,
|
|
20
20
|
writeSetupReceipt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BKTWGQLC.js";
|
|
22
22
|
import {
|
|
23
23
|
OPENCLAW_MIN_VERSION,
|
|
24
24
|
OPENCLAW_PLUGIN_ID,
|
|
25
25
|
OPENCLAW_PLUGIN_PACKAGE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IHG2TFXZ.js";
|
|
27
27
|
import {
|
|
28
28
|
retryAgentCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-CXLHBAN4.js";
|
|
30
30
|
import {
|
|
31
31
|
configFilePath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-ZJYSZDFR.js";
|
|
33
33
|
import {
|
|
34
34
|
readJsonSafe,
|
|
35
35
|
writeJsonAtomic
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
readSetupOutcomeProperties,
|
|
39
39
|
redactSecretsFromContent
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-POXHWH73.js";
|
|
41
41
|
|
|
42
42
|
// src/hermes/shell-gate.ts
|
|
43
43
|
var readHermesShellGate = async (launcher) => {
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
claimThrottle,
|
|
5
5
|
releaseThrottle,
|
|
6
6
|
reportEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3T7KADQO.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveToolTarget,
|
|
10
10
|
permissionDeniedAction
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UQQN6ST3.js";
|
|
12
12
|
import {
|
|
13
13
|
projectNameFor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QLKIY3FD.js";
|
|
15
15
|
import {
|
|
16
16
|
PERMISSION_ALLOWED_EVENT,
|
|
17
17
|
PERMISSION_DENIED_EVENT,
|
|
18
18
|
machineApprovalFor,
|
|
19
19
|
machineDecisionFor,
|
|
20
20
|
wireVerdictFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-POXHWH73.js";
|
|
22
22
|
|
|
23
23
|
// src/machine-decision-audit.ts
|
|
24
24
|
var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GKMSHV5D.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
6
|
} from "./chunk-TCE3J44Z.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolvePackageVersionFromBinary,
|
|
13
13
|
resolvePathBinary,
|
|
14
14
|
resolvePathBinaryAsync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YN4Q3ZXZ.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENTS,
|
|
18
18
|
CLAUDE_BRIDGE_CAPABILITY,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
OPENCODE_BRIDGE_CAPABILITY,
|
|
26
26
|
SPAWN_CAPABILITY,
|
|
27
27
|
sessionProvidersAdvertisedBy
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-POXHWH73.js";
|
|
29
29
|
|
|
30
30
|
// src/live-capabilities.ts
|
|
31
31
|
import { execFileSync } from "child_process";
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
questionWindowOf
|
|
3
|
+
} from "./chunk-3T7KADQO.js";
|
|
1
4
|
import {
|
|
2
5
|
UNNAMED_ACTION
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UQQN6ST3.js";
|
|
4
7
|
import {
|
|
5
8
|
ASK_USER_TIMEOUT_MS,
|
|
6
9
|
WAIT_END_TIMEOUT_MS,
|
|
7
10
|
WITHDRAW_AT_THE_DEADLINE,
|
|
8
11
|
askUser,
|
|
9
|
-
isAwayPaused,
|
|
10
12
|
isLocalQuestionHandoff,
|
|
11
|
-
isStoredPastThePushCap,
|
|
12
13
|
unavailableQuestionUnlessRefused,
|
|
13
14
|
waitForQuestion
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JYDVDSBM.js";
|
|
15
16
|
import {
|
|
16
17
|
getMachineId
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CJRHVIUJ.js";
|
|
18
19
|
import {
|
|
19
20
|
hookMaxWaitSeconds,
|
|
20
21
|
hookWaitClamped,
|
|
21
22
|
hookWaitDeadline,
|
|
23
|
+
questionServedItsWholeWindow,
|
|
22
24
|
refusesWhenUnanswered,
|
|
23
25
|
ruleApprovesAfterItsFullWindow,
|
|
24
26
|
scopeBreachReasonOf
|
|
25
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-POXHWH73.js";
|
|
26
28
|
|
|
27
29
|
// src/pushed-question.ts
|
|
28
30
|
var scopeQuestionOf = (verdict) => {
|
|
@@ -34,8 +36,9 @@ var openQuestionCallOf = (question, wait) => {
|
|
|
34
36
|
const toolUseId = question.decision.toolUseId;
|
|
35
37
|
return wait.rejoinable && question.sessionId && toolUseId ? { rejoinable: wait.rejoinable, toolUseId } : null;
|
|
36
38
|
};
|
|
37
|
-
var keepsTheQuestionOpen = (call,
|
|
38
|
-
var atTheDeadlineOf = (call,
|
|
39
|
+
var keepsTheQuestionOpen = (call, window) => call !== null && keepsTheQuestionOpenAtTheDeadline({ ...call.rejoinable.rule, fullWindowServed: questionServedItsWholeWindow(window), paused: window.paused });
|
|
40
|
+
var atTheDeadlineOf = (call, window, machineId) => keepsTheQuestionOpen(call, window) ? { kind: "end_wait", toolUseId: call.toolUseId, machineId } : WITHDRAW_AT_THE_DEADLINE;
|
|
41
|
+
var windowBeforeTheReply = (clampCut) => ({ clampCut, paused: false, overflow: false });
|
|
39
42
|
var waitWindowAt = (wait, nowMs) => ({
|
|
40
43
|
deadline: hookWaitDeadline(wait.startMs, wait.waitSeconds, wait.agent, nowMs),
|
|
41
44
|
clampCut: hookWaitClamped(wait.startMs, wait.waitSeconds, wait.agent, nowMs)
|
|
@@ -45,7 +48,7 @@ var endedWaitPollDeadline = (deadlineMs, wait) => Math.min(deadlineMs, wait.star
|
|
|
45
48
|
var pollDeadlineOf = (deadlineMs, atDeadline, wait) => atDeadline.kind === "end_wait" ? endedWaitPollDeadline(deadlineMs, wait) : deadlineMs;
|
|
46
49
|
var rejoinFieldsOf = (call, wait, nowMs) => {
|
|
47
50
|
const window = waitWindowAt(wait, nowMs);
|
|
48
|
-
return keepsTheQuestionOpen(call,
|
|
51
|
+
return keepsTheQuestionOpen(call, windowBeforeTheReply(window.clampCut)) ? { callFingerprint: call.rejoinable.callFingerprint, waitEndsAt: new Date(endedWaitPollDeadline(window.deadline, wait)).toISOString() } : {};
|
|
49
52
|
};
|
|
50
53
|
var pushQuestionAndWait = async (apiKey, question, wait) => {
|
|
51
54
|
const machineId = getMachineId();
|
|
@@ -66,16 +69,15 @@ var pushQuestionAndWait = async (apiKey, question, wait) => {
|
|
|
66
69
|
const created = await (wait.askFailure === "wait_as_unavailable" ? creating.catch(unavailableQuestionUnlessRefused) : creating);
|
|
67
70
|
wait.onQuestionCreated?.(created.correlationId);
|
|
68
71
|
const { deadline, clampCut } = waitWindowAt(wait, Date.now());
|
|
72
|
+
const window = questionWindowOf(created, { cutShort: clampCut });
|
|
69
73
|
const askedToStayOpen = rejoinFields.callFingerprint === void 0 ? null : openQuestionCall;
|
|
70
|
-
const atDeadline = atTheDeadlineOf(askedToStayOpen,
|
|
74
|
+
const atDeadline = atTheDeadlineOf(askedToStayOpen, window, machineId);
|
|
71
75
|
const answer = await waitForQuestion(apiKey, created, pollDeadlineOf(deadline, atDeadline, wait), wait.pollIntervalMs, wait.signal, atDeadline);
|
|
72
76
|
return {
|
|
73
77
|
correlationId: created.correlationId,
|
|
74
78
|
answer,
|
|
75
79
|
localHandoff: !answer.answered && isLocalQuestionHandoff(created),
|
|
76
|
-
|
|
77
|
-
paused: isAwayPaused(created),
|
|
78
|
-
overflow: isStoredPastThePushCap(created),
|
|
80
|
+
...window,
|
|
79
81
|
askStatus: created.status,
|
|
80
82
|
noDevices: created.noDevices === true
|
|
81
83
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyHookExecutable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z6QGSQEN.js";
|
|
4
4
|
import {
|
|
5
5
|
bridgeResolvesToApp,
|
|
6
6
|
cursorUserHooks,
|
|
7
7
|
executableFileName,
|
|
8
8
|
isBridgeLocator,
|
|
9
9
|
liveBridgeProbe
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SR3FOAJE.js";
|
|
11
11
|
import {
|
|
12
12
|
atLeast,
|
|
13
13
|
parseVersion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YN4Q3ZXZ.js";
|
|
15
15
|
import {
|
|
16
16
|
CURSOR_GATE_COVERAGE,
|
|
17
17
|
CURSOR_GATE_SCRIPT,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
isCursorHookPayload,
|
|
22
22
|
isRecord,
|
|
23
23
|
toolsCoveredByGateEntry
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-POXHWH73.js";
|
|
25
25
|
|
|
26
26
|
// src/cursor-gate-registration.ts
|
|
27
27
|
import { dirname, isAbsolute, join, resolve } from "path";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSseMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2DNM6F7C.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HFDNWC2K.js";
|
|
7
7
|
import {
|
|
8
8
|
NPX_LATEST_COMMAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KQRWWJLF.js";
|
|
10
10
|
|
|
11
11
|
// src/mcp-stdio-bridge.ts
|
|
12
12
|
var MCP_BRIDGE_BINARY = "pushary-mcp";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SR3FOAJE.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-CXQWDQCJ.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-POXHWH73.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|