pushary 1.9.283 → 1.9.286
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 +20 -0
- package/README.md +3 -1
- package/dist/{api-OJRU3MYI.js → api-TOVNW7WX.js} +12 -12
- package/dist/bin/pushary-ask.js +14 -14
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +11 -11
- package/dist/bin/pushary-calls.js +14 -14
- package/dist/bin/pushary-claude.js +25 -25
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +22 -22
- package/dist/bin/pushary-codex-hook.js +38 -36
- 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 +115 -52
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +16 -1
- package/dist/bin/pushary-doctor.js +60 -54
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +17 -17
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +46 -43
- package/dist/bin/pushary-logout.js +31 -31
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +21 -21
- package/dist/bin/pushary-opencode-hook.js +32 -32
- package/dist/bin/pushary-permission-denied-hook.js +34 -34
- package/dist/bin/pushary-permission-hook.js +35 -35
- 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 -39
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +65 -61
- 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 +15 -15
- package/dist/bin/pushary-transcript-register.js +16 -16
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +54 -50
- package/dist/bin/pushary-wait.js +24 -24
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-K4YUNJDY.js → chunk-2HA6AGLM.js} +8 -7
- package/dist/{chunk-6VK43QVL.js → chunk-2MQUKVMW.js} +7 -7
- package/dist/{chunk-JSYYVEVW.js → chunk-2NUVES3K.js} +4 -4
- package/dist/{chunk-RJ5HUNEE.js → chunk-2SW5J3J2.js} +1 -1
- package/dist/{chunk-JHYVJYGR.js → chunk-3LZPJBH7.js} +6 -6
- package/dist/{chunk-TBCHTCA2.js → chunk-44RAWLI3.js} +1 -1
- package/dist/{chunk-AKUQLREQ.js → chunk-4KPUTQPG.js} +4 -4
- package/dist/{chunk-5YSFXK2C.js → chunk-4TOJHGPX.js} +2 -2
- package/dist/{chunk-7OOQJD33.js → chunk-4Y7RNQO5.js} +3 -3
- package/dist/{chunk-SIP2BFVS.js → chunk-5DF6YZPG.js} +63 -7
- package/dist/{chunk-EGZUBQL6.js → chunk-5FZ2K4UV.js} +1 -1
- package/dist/{chunk-EANJH5FQ.js → chunk-64PJ5AVE.js} +5 -5
- package/dist/{chunk-I67ZGYEY.js → chunk-6VN46PV6.js} +5 -5
- package/dist/{chunk-XKSIMUZM.js → chunk-6YVIWLL2.js} +2 -2
- package/dist/{chunk-EUO5U5V7.js → chunk-6ZNQDNFS.js} +11 -7
- package/dist/{chunk-UIOTVHQB.js → chunk-6ZRSO6PM.js} +2 -2
- package/dist/{chunk-EDVQWYSU.js → chunk-76UDPJET.js} +4 -4
- package/dist/{chunk-CPNPPYQL.js → chunk-77F7TPQE.js} +3 -3
- package/dist/{chunk-XGWKMWKM.js → chunk-7GSBA2C2.js} +3 -3
- package/dist/{chunk-26RKJL2X.js → chunk-7O4XAG63.js} +2 -2
- package/dist/{chunk-HX3RPHIH.js → chunk-7Y7YEKUY.js} +8 -8
- package/dist/{chunk-XC2O4MA3.js → chunk-7ZCIUEBP.js} +1 -1
- package/dist/{chunk-CBA4AVFT.js → chunk-A4KQYTUZ.js} +4 -4
- package/dist/{chunk-YSR7QVMN.js → chunk-A533F6TF.js} +3 -3
- package/dist/{chunk-AIBGURF2.js → chunk-ACAMCU2Y.js} +1 -1
- package/dist/{chunk-7VL6QZ3C.js → chunk-BCYXPGOQ.js} +3 -3
- package/dist/{chunk-QU2NSBXD.js → chunk-BETDBGC7.js} +2 -2
- package/dist/{chunk-UOABAWQ4.js → chunk-CCDQM7RZ.js} +6 -6
- package/dist/{chunk-E4WNMH33.js → chunk-CDOFQJ2Z.js} +1 -1
- package/dist/{chunk-N6RX3ZWB.js → chunk-DBBLMMBL.js} +1 -1
- package/dist/{chunk-JWMDRKAO.js → chunk-DFRYI4YG.js} +10 -10
- package/dist/{chunk-ATWYNEN4.js → chunk-DYIU6SSG.js} +1 -1
- package/dist/{chunk-JP7RRADP.js → chunk-ESTQIKTS.js} +1 -1
- package/dist/{chunk-YARDFZND.js → chunk-EZBNWOZM.js} +2 -2
- package/dist/{chunk-TVQWBXV2.js → chunk-FDCGIK7G.js} +33 -28
- package/dist/{chunk-5RSXB22M.js → chunk-GITZUSEJ.js} +4 -4
- package/dist/{chunk-M3MD5Y2O.js → chunk-H7PRRSXU.js} +5 -5
- package/dist/{chunk-KMMO3K2C.js → chunk-HGWAPTBM.js} +21 -14
- package/dist/{chunk-FIAXP3LF.js → chunk-IBOJQEH3.js} +6 -4
- package/dist/{chunk-L2BJVSVI.js → chunk-IGDC2GMU.js} +2 -2
- package/dist/{chunk-VYLJWG3B.js → chunk-JBK7WRPB.js} +1 -1
- package/dist/{chunk-XOZZ7LFC.js → chunk-JPCVW3BA.js} +2 -2
- package/dist/{chunk-GS4D3NTI.js → chunk-KLYYXDR6.js} +5 -5
- package/dist/{chunk-J2UDVVCB.js → chunk-KM4W3CFD.js} +6 -6
- package/dist/{chunk-SWGR226D.js → chunk-KU5MWQNB.js} +10 -10
- package/dist/{chunk-CA7VX4KS.js → chunk-L4PIOZIP.js} +2 -2
- package/dist/{chunk-2JWCBGFX.js → chunk-LF2BFP3F.js} +3 -3
- package/dist/{chunk-SL6ZTQA2.js → chunk-LP2VGPHZ.js} +1 -1
- package/dist/{chunk-OOSOLBO2.js → chunk-MBUENM7S.js} +1 -1
- package/dist/{chunk-QSPYUDHD.js → chunk-MTSTB2GL.js} +1 -1
- package/dist/{chunk-4RPG3SFC.js → chunk-NAD2JOKF.js} +16 -6
- package/dist/{chunk-B7SK3EXB.js → chunk-NYVJXU6Q.js} +5 -5
- package/dist/{chunk-Y5INUJ2S.js → chunk-OPRYDCR4.js} +3 -3
- package/dist/{chunk-OYRQZWXW.js → chunk-P47NDCPH.js} +2 -2
- package/dist/{chunk-CWQU75DS.js → chunk-P4FD4WGC.js} +3 -3
- package/dist/{chunk-FQWIGDXG.js → chunk-PAY473GK.js} +1 -1
- package/dist/{chunk-IPJRN56U.js → chunk-PSYSXBML.js} +5 -5
- package/dist/{chunk-IP6BVZZL.js → chunk-PUNGQGSR.js} +6 -6
- package/dist/{chunk-SAFK3BQB.js → chunk-QQDGYEWB.js} +1 -1
- package/dist/{chunk-7PRPLYOT.js → chunk-QTNBPBYN.js} +1 -1
- package/dist/{chunk-M6T24IVX.js → chunk-RT4KU4JT.js} +1 -1
- package/dist/{chunk-73SEBA5G.js → chunk-S3IF6XHT.js} +4 -4
- package/dist/{chunk-HKXFHEB4.js → chunk-SNR7BUWT.js} +4 -4
- package/dist/{chunk-JPSCKMYH.js → chunk-SRGKENVI.js} +1 -1
- package/dist/{chunk-VO22G4MS.js → chunk-TQ2KJLRJ.js} +14 -12
- package/dist/{chunk-6MUWWEYX.js → chunk-U3K6SCMH.js} +7 -7
- package/dist/{chunk-T5D3F6ME.js → chunk-UGMQTJKX.js} +5 -5
- package/dist/{chunk-IX2DKVF2.js → chunk-V5LIBKOQ.js} +4 -4
- package/dist/{chunk-FNENGMPK.js → chunk-V77JIYBK.js} +1 -1
- package/dist/{chunk-4ZWNL3CK.js → chunk-VFPXC2HE.js} +1 -1
- package/dist/{chunk-DTYSJP6K.js → chunk-VVXWDBZK.js} +2 -2
- package/dist/{chunk-PUNIACRA.js → chunk-VZXBPQIX.js} +4 -4
- package/dist/{chunk-IASJJRQV.js → chunk-W3CDMHZZ.js} +3 -3
- package/dist/{chunk-3B3UE65E.js → chunk-WDYTF6K7.js} +12 -12
- package/dist/{chunk-NWFO2WGB.js → chunk-WUDKVYSQ.js} +2 -2
- package/dist/{chunk-YG5TIW73.js → chunk-XCPZ64EV.js} +3 -3
- package/dist/{chunk-ZUHELFIM.js → chunk-XNWLSADP.js} +5 -4
- package/dist/{chunk-OQVYOMNI.js → chunk-Y3PDFOIE.js} +4 -4
- package/dist/{chunk-AOLCAXRB.js → chunk-YQVGPAZV.js} +1 -1
- package/dist/{chunk-6RAIYGKT.js → chunk-YV7BK4UO.js} +1 -1
- package/dist/{chunk-OTIXTZA6.js → chunk-YXKUZSPA.js} +2 -2
- package/dist/{chunk-7Y3NHQSD.js → chunk-ZAMK4GF4.js} +5 -5
- package/dist/{chunk-6GCGRTR7.js → chunk-ZROT5ZDA.js} +1 -1
- package/dist/{codex-app-cards-switch-2ZVORWWV.js → codex-app-cards-switch-TZHVNF3N.js} +11 -11
- package/dist/{codex-card-routing-PLD74MXM.js → codex-card-routing-BDAI3C5X.js} +2 -2
- package/dist/{codex-desktop-launch-BDR7I3AT.js → codex-desktop-launch-BQ4XMGMF.js} +3 -3
- package/dist/{codex-session-launch-HZJWXLWT.js → codex-session-launch-RGPJ6DBA.js} +21 -21
- package/dist/{config-DY2KBMHL.js → config-L57XINHY.js} +3 -3
- package/dist/{global-upgrade-H4CHC3PX.js → global-upgrade-ZD6PXYIH.js} +9 -9
- package/dist/{identity-BEGPK37L.js → identity-ZTXVU75K.js} +4 -4
- package/dist/{live-capabilities-W4YZO6AH.js → live-capabilities-TFAUA6FN.js} +4 -4
- package/dist/{paths-J7L3IDOW.js → paths-3VDI3LAG.js} +3 -3
- package/dist/{reapply-3ECJVIWC.js → reapply-YJL4U5EY.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-UPLYK4CW.js → upgrade-lock-KNVJBN5G.js} +4 -4
- package/dist/{usage-ZDDF7U5L.js → usage-YDADZALP.js} +3 -3
- package/package.json +1 -1
|
@@ -4940,12 +4940,13 @@ var OUTBOX_BACKLOG_STALL_MS = 20 * MINUTE_MS;
|
|
|
4940
4940
|
var PUSHARY_HOSTS = ["pushary.com", "www.pushary.com"];
|
|
4941
4941
|
|
|
4942
4942
|
// ../contracts/src/key-scope.ts
|
|
4943
|
-
var KEY_SCOPES = ["full_access", "agent", "connector", "bound"];
|
|
4943
|
+
var KEY_SCOPES = ["full_access", "agent", "connector", "bound", "enroll"];
|
|
4944
4944
|
var KEY_SCOPE = {
|
|
4945
4945
|
full_access: "full_access",
|
|
4946
4946
|
agent: "agent",
|
|
4947
4947
|
connector: "connector",
|
|
4948
|
-
bound: "bound"
|
|
4948
|
+
bound: "bound",
|
|
4949
|
+
enroll: "enroll"
|
|
4949
4950
|
};
|
|
4950
4951
|
var normalizeKeyScope = (value) => typeof value === "string" && KEY_SCOPES.includes(value) ? value : null;
|
|
4951
4952
|
|
|
@@ -12383,6 +12384,8 @@ var GATE_ALLOW_SOURCE = {
|
|
|
12383
12384
|
allowlist: "allowlist",
|
|
12384
12385
|
policy: "policy"
|
|
12385
12386
|
};
|
|
12387
|
+
var EXPLICIT_ANSWER_ONLY = { onlyAnExplicitAnswerRunsIt: true };
|
|
12388
|
+
var onlyAnExplicitAnswerRunsTheCall = (verdict) => verdict.kind === "gate" && verdict.onlyAnExplicitAnswerRunsIt === true;
|
|
12386
12389
|
var isGateRefusal = (verdict) => verdict.kind === "kill" || verdict.kind === "deny";
|
|
12387
12390
|
var PUSHARY_TOOL_PREFIX = "mcp__pushary__";
|
|
12388
12391
|
var PUSHARY_CONNECTOR_TOOL_PREFIXES = ["mcp__claude_ai_Pushary__", "mcp__plugin_pushary_pushary__"];
|
|
@@ -12627,7 +12630,11 @@ var GATE_VERDICT_RESTRAINT = { allow: 0, defer: 1, gate: 2, deny: 3, kill: 4 };
|
|
|
12627
12630
|
var strictestGateVerdictOf = (strictest, verdict) => {
|
|
12628
12631
|
const restraint = GATE_VERDICT_RESTRAINT[verdict.kind] - GATE_VERDICT_RESTRAINT[strictest.kind];
|
|
12629
12632
|
if (restraint !== 0) return restraint > 0 ? verdict : strictest;
|
|
12630
|
-
return strictest.kind === "gate" && verdict.kind === "gate" ? {
|
|
12633
|
+
return strictest.kind === "gate" && verdict.kind === "gate" ? {
|
|
12634
|
+
...strictest,
|
|
12635
|
+
policy: strictestReadingOf(verdict.policy, strictest.policy),
|
|
12636
|
+
...onlyAnExplicitAnswerRunsTheCall(strictest) || onlyAnExplicitAnswerRunsTheCall(verdict) ? EXPLICIT_ANSWER_ONLY : {}
|
|
12637
|
+
} : strictest;
|
|
12631
12638
|
};
|
|
12632
12639
|
var policyOfReadings = (readings) => readings.policy;
|
|
12633
12640
|
var toolInputsOfReadings = (readings) => readings.toolInputs;
|
|
@@ -12916,7 +12923,7 @@ var verdictWithoutTheAsksThatMayApprove = (input, original) => {
|
|
|
12916
12923
|
const fallback = { ...input, config: withoutAsksThatMayApproveWithoutAnAnswer(input.config) };
|
|
12917
12924
|
const verdict = gateVerdictOfTheCall(fallback);
|
|
12918
12925
|
if (verdict.kind !== "deny" || namesAnArgumentOf(verdict.policy.tool, input.toolName)) return verdict;
|
|
12919
|
-
const explicitAnswer = { ...original, policy: { ...original.policy, timeoutAction: "wait" } };
|
|
12926
|
+
const explicitAnswer = { ...original, policy: { ...original.policy, timeoutAction: "wait" }, ...EXPLICIT_ANSWER_ONLY };
|
|
12920
12927
|
return strictestGateVerdictOf(explicitAnswer, gateVerdictOfTheCall(withoutStandingDeniesOfTheWholeTool(fallback)));
|
|
12921
12928
|
};
|
|
12922
12929
|
var theWholeVerdictThatDoesNotApprove = (withoutTheAsks, verdict) => withoutTheAsks.kind === "gate" && !gateMayApproveWithoutAnAnswer(withoutTheAsks) ? withoutTheAsks : strictestGateVerdictOf(verdict, withoutTheAsks);
|
|
@@ -13041,7 +13048,8 @@ var refusesWhenUnanswered = ({ mode, timeoutAction }) => mode === "push_only" &&
|
|
|
13041
13048
|
var codexDeferredPreToolUse = () => ({ kind: "deny", reason: CODEX_PRE_TOOL_USE_HAND_BACK.reason });
|
|
13042
13049
|
var isScopeReason = (scopeReason) => typeof scopeReason === "string" && scopeReason.length > 0;
|
|
13043
13050
|
var scopeBreachReasonOf = (verdict) => verdict.kind === "gate" && isScopeReason(verdict.scopeReason) ? verdict.scopeReason : void 0;
|
|
13044
|
-
var
|
|
13051
|
+
var gateOutranksTheNativeMode = (verdict) => scopeBreachReasonOf(verdict) !== void 0 || onlyAnExplicitAnswerRunsTheCall(verdict);
|
|
13052
|
+
var onlyCodexPreToolUseCanAsk = (verdict, permissionMode) => verdict.kind === "gate" && (gateOutranksTheNativeMode(verdict) || !codexRaisesItsOwnPrompts(permissionMode));
|
|
13045
13053
|
var runsACommandThatNeedsAPersonUnderOneArrowReading = ({ toolName, toolInputs }) => SHELL_DIALECT_BY_TOOL.has(toolName) && toolInputs.some((toolInput) => {
|
|
13046
13054
|
const command = extractPolicyArg(toolName, toolInput);
|
|
13047
13055
|
return command !== void 0 && (commandNeedsAPerson(toolName, command) || commandWritesThroughARemoteApi(command));
|
|
@@ -13106,7 +13114,7 @@ var refusalOfAFloorHeldEditNobodyIsAskedAbout = (policy) => ({
|
|
|
13106
13114
|
var codexPreToolUseDelivery = (input, verdict, call) => {
|
|
13107
13115
|
if (verdict.kind !== "gate" || !codexCallNeedsAPerson(input, verdict, call)) return CODEX_PRE_TOOL_USE_PASSES;
|
|
13108
13116
|
const floorHoldsAnAllow = theProtectedFileFloorHoldsAnAllow(input);
|
|
13109
|
-
const noPromptOfItsOwn = floorHoldsAnAllow || codexDestructiveCallIsDecidedOnThePhone(input, verdict.policy.mode, call) || codexHasNoPromptOfItsOwn(scopeBreachReasonOf(verdict), call.permissionMode);
|
|
13117
|
+
const noPromptOfItsOwn = floorHoldsAnAllow || codexDestructiveCallIsDecidedOnThePhone(input, verdict.policy.mode, call) || codexHasNoPromptOfItsOwn(scopeBreachReasonOf(verdict), call.permissionMode) || onlyAnExplicitAnswerRunsTheCall(verdict);
|
|
13110
13118
|
const mode = noPromptOfItsOwn ? approvalModeWithoutLocalPrompt(verdict.policy.mode) : verdict.policy.mode;
|
|
13111
13119
|
if (mode === "push_first" && !codexOwnPromptCannotTakeTheCall(input, call)) return CODEX_PRE_TOOL_USE_PASSES;
|
|
13112
13120
|
const policy = { ...verdict.policy, mode };
|
|
@@ -13997,6 +14005,7 @@ export {
|
|
|
13997
14005
|
buildDecisionEpisodeFeatures,
|
|
13998
14006
|
resolveAutoResolveOrigin,
|
|
13999
14007
|
resolvePolicy,
|
|
14008
|
+
onlyAnExplicitAnswerRunsTheCall,
|
|
14000
14009
|
isGateRefusal,
|
|
14001
14010
|
PUSHARY_TOOL_PREFIX,
|
|
14002
14011
|
PUSHARY_CONNECTOR_TOOL_PREFIXES,
|
|
@@ -14053,6 +14062,7 @@ export {
|
|
|
14053
14062
|
refusesWhenUnanswered,
|
|
14054
14063
|
codexDeferredPreToolUse,
|
|
14055
14064
|
scopeBreachReasonOf,
|
|
14065
|
+
gateOutranksTheNativeMode,
|
|
14056
14066
|
protectedFileEditRefusedAlert,
|
|
14057
14067
|
codexPreToolUseDelivery,
|
|
14058
14068
|
claudePermissionRulesFromSettings,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openClawLauncherCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-P4FD4WGC.js";
|
|
4
4
|
import {
|
|
5
5
|
openCodeConfigDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U3K6SCMH.js";
|
|
7
7
|
import {
|
|
8
8
|
grokHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PUNGQGSR.js";
|
|
10
10
|
import {
|
|
11
11
|
nativeClaudeInstallPath
|
|
12
12
|
} from "./chunk-TCE3J44Z.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
codexHomeFrom,
|
|
17
17
|
openClawEnvironmentOf,
|
|
18
18
|
openClawPathsFrom
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6YVIWLL2.js";
|
|
20
20
|
import {
|
|
21
21
|
HOOK_COMPATIBLE_PROFILES
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NAD2JOKF.js";
|
|
23
23
|
|
|
24
24
|
// src/vscode-config.ts
|
|
25
25
|
import { homedir } from "os";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-P6DUWKAO.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchAsCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IBOJQEH3.js";
|
|
8
8
|
import {
|
|
9
9
|
getBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JPCVW3BA.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-NAD2JOKF.js";
|
|
19
19
|
|
|
20
20
|
// src/transcript-recipient-pin.ts
|
|
21
21
|
import { createHash } from "crypto";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6YVIWLL2.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe
|
|
6
6
|
} from "./chunk-PM2NRK6Y.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NAD2JOKF.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
OPENCLAW_ENVIRONMENT_KEYS,
|
|
6
6
|
openClawEnvironmentOf,
|
|
7
7
|
openClawPathsFrom
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6YVIWLL2.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SNR7BUWT.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NAD2JOKF.js";
|
|
15
15
|
|
|
16
16
|
// src/openclaw/wiring-state.ts
|
|
17
17
|
var OPENCLAW_PLUGIN_ID = "pushary";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XCPZ64EV.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DFRYI4YG.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PUNGQGSR.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TQ2KJLRJ.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NAD2JOKF.js";
|
|
20
20
|
|
|
21
21
|
// src/tool-hook-input.ts
|
|
22
22
|
var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode", "cursor_version"];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseConfigDocument
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LP2VGPHZ.js";
|
|
4
4
|
import {
|
|
5
5
|
addGeminiMcpServer,
|
|
6
6
|
removeGeminiMcpServer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V5LIBKOQ.js";
|
|
8
8
|
import {
|
|
9
9
|
CLAUDE_CODE_AGENT
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HGWAPTBM.js";
|
|
11
11
|
import {
|
|
12
12
|
compatibleToolLookup
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ESTQIKTS.js";
|
|
14
14
|
import {
|
|
15
15
|
CLAUDE_HOOK_EVENTS,
|
|
16
16
|
PUSHARY_MCP_URL,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
isPusharyHook,
|
|
23
23
|
registerHookEntry,
|
|
24
24
|
removeClaudeMcpServers
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-6YVIWLL2.js";
|
|
26
26
|
import {
|
|
27
27
|
AGENT_ENFORCEMENT,
|
|
28
28
|
HOOK_COMPATIBLE_PROFILES,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
pusharyMissingReason,
|
|
37
37
|
refusalOutput,
|
|
38
38
|
withHookHoldBudget
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-NAD2JOKF.js";
|
|
40
40
|
|
|
41
41
|
// src/compatible-config.ts
|
|
42
42
|
import { homedir } from "os";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computerOsOfPlatform,
|
|
3
3
|
isComputerAgent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NAD2JOKF.js";
|
|
5
5
|
|
|
6
6
|
// src/setup/phone-check.ts
|
|
7
7
|
var NO_AGENT_CONNECTED_LINE = "Skipping the phone step: no agent was connected, so nothing could ask you anything on your phone yet.";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-U3K6SCMH.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VVXWDBZK.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6YVIWLL2.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-NAD2JOKF.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;
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NAD2JOKF.js";
|
|
23
23
|
|
|
24
24
|
// src/shell-quote.ts
|
|
25
25
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -610,9 +610,9 @@ var installGlobally = (options) => {
|
|
|
610
610
|
}
|
|
611
611
|
const started = (async () => {
|
|
612
612
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
613
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
614
|
-
const { canonicalLockPath, installWithUpgradeLock, leftAnUnfinishedInstallHere, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
615
|
-
const { autoUpdateLock } = await import("./paths-
|
|
613
|
+
const { withUpgradeLock } = await import("./global-upgrade-ZD6PXYIH.js");
|
|
614
|
+
const { canonicalLockPath, installWithUpgradeLock, leftAnUnfinishedInstallHere, ownsUpgradeLock } = await import("./upgrade-lock-KNVJBN5G.js");
|
|
615
|
+
const { autoUpdateLock } = await import("./paths-3VDI3LAG.js");
|
|
616
616
|
const lockPath = options.lockPath ?? autoUpdateLock();
|
|
617
617
|
const lockFile = canonicalLockPath(lockPath);
|
|
618
618
|
const unfinishedHere = failuresThisProcessLeftUnfinished.get(lockFile);
|
|
@@ -8,26 +8,27 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CCDQM7RZ.js";
|
|
12
12
|
import {
|
|
13
|
+
credentialRejectedAt,
|
|
13
14
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IBOJQEH3.js";
|
|
15
16
|
import {
|
|
16
17
|
installNetworkDefaults,
|
|
17
18
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4Y7RNQO5.js";
|
|
19
20
|
import {
|
|
20
21
|
keyPrefix
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VVXWDBZK.js";
|
|
22
23
|
import {
|
|
23
24
|
MacAppRefusedError,
|
|
24
25
|
MacAppUnreachableError,
|
|
25
26
|
clientReportClaims
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6YVIWLL2.js";
|
|
27
28
|
import {
|
|
28
29
|
getApiKey,
|
|
29
30
|
getBaseUrl
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JPCVW3BA.js";
|
|
31
32
|
import {
|
|
32
33
|
getPackageVersion
|
|
33
34
|
} from "./chunk-CXQWDQCJ.js";
|
|
@@ -57,7 +58,7 @@ import {
|
|
|
57
58
|
responseRejectsCredential,
|
|
58
59
|
truncateLine,
|
|
59
60
|
waitEndAnswered
|
|
60
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-NAD2JOKF.js";
|
|
61
62
|
|
|
62
63
|
// src/api.ts
|
|
63
64
|
import { randomUUID } from "crypto";
|
|
@@ -245,9 +246,9 @@ var createClientErrorReporter = (deps) => {
|
|
|
245
246
|
const claim = claimReportWindow(deps.claimsDir, key, now);
|
|
246
247
|
return claim === "unavailable" ? claimInProcess(key, now) : claim === "claimed";
|
|
247
248
|
};
|
|
248
|
-
const claimRejectedKeyBeacon = (
|
|
249
|
-
const reportRejectedKeyOnce = async (apiKey, event,
|
|
250
|
-
if (telemetryOptedOut(process.env) || signal.aborted || !claimRejectedKeyBeacon(
|
|
249
|
+
const claimRejectedKeyBeacon = (rejectedAt) => claimReportWindow(deps.claimsDir, REJECTED_KEY_CLAIM, rejectedAt) === "claimed";
|
|
250
|
+
const reportRejectedKeyOnce = async (apiKey, event, rejectedAt, signal) => {
|
|
251
|
+
if (telemetryOptedOut(process.env) || signal.aborted || !claimRejectedKeyBeacon(rejectedAt)) return;
|
|
251
252
|
try {
|
|
252
253
|
const beacon = keyRejectedBeaconOf(apiKey, event, getPackageVersion(), process.platform);
|
|
253
254
|
await postKeylessBeaconUntil(beacon, signal, { fetchImpl: deps.fetchImpl, baseUrl: deps.baseUrl, env: process.env });
|
|
@@ -262,16 +263,17 @@ var createClientErrorReporter = (deps) => {
|
|
|
262
263
|
const now = deps.now();
|
|
263
264
|
if (!apiKey || !claimReport(reportKey(event), now)) return;
|
|
264
265
|
const signal = AbortSignal.timeout(CLIENT_REPORT_TIMEOUT_MS);
|
|
266
|
+
const reportUrl = `${deps.baseUrl()}${CLIENT_REPORT_PATH}`;
|
|
265
267
|
for (let attempt = 0; attempt < CLIENT_REPORT_MAX_ATTEMPTS && !signal.aborted; attempt++) {
|
|
266
268
|
try {
|
|
267
|
-
const response = await fetchAsCredential(apiKey,
|
|
269
|
+
const response = await fetchAsCredential(apiKey, reportUrl, {
|
|
268
270
|
method: "POST",
|
|
269
271
|
headers: { "Authorization": `Bearer ${apiKey}`, "Content-Type": "application/json" },
|
|
270
272
|
body: JSON.stringify({ ...event, occurredAt: new Date(now).toISOString() }),
|
|
271
273
|
signal
|
|
272
274
|
}, deps.fetchImpl);
|
|
273
275
|
await response.body?.cancel();
|
|
274
|
-
if (responseRejectsCredential(response.status, response.headers)) return await reportRejectedKeyOnce(apiKey, event, now, signal);
|
|
276
|
+
if (responseRejectsCredential(response.status, response.headers)) return await reportRejectedKeyOnce(apiKey, event, credentialRejectedAt(apiKey, reportUrl) ?? now, signal);
|
|
275
277
|
if (response.ok || response.status < 500 && response.status !== 429) return;
|
|
276
278
|
} catch {
|
|
277
279
|
if (signal.aborted) return;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
openCodePluginArgv,
|
|
4
4
|
openCodePluginModule,
|
|
5
5
|
renderOpenCodePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MTSTB2GL.js";
|
|
7
7
|
import {
|
|
8
8
|
OPENCODE_FAILED_EVENT,
|
|
9
9
|
OPENCODE_IDLE_EVENT,
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
OPENCODE_PLUGIN_SIBLING,
|
|
13
13
|
OPENCODE_PLUGIN_SIBLING_CONTENTS,
|
|
14
14
|
OPENCODE_SUBAGENT_IDLE_EVENT
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DYIU6SSG.js";
|
|
16
16
|
import {
|
|
17
17
|
compatibleConfigFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PUNGQGSR.js";
|
|
19
19
|
import {
|
|
20
20
|
hookOwnerOf,
|
|
21
21
|
hookOwnerOfCommands
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-V5LIBKOQ.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_CHOICES
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-VFPXC2HE.js";
|
|
26
26
|
import {
|
|
27
27
|
OPENCODE_INSTRUCTIONS_LABEL,
|
|
28
28
|
bridgeStub,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
resolveBridgeStub,
|
|
37
37
|
vscodePluginDir,
|
|
38
38
|
windowsNodeLauncherFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-6YVIWLL2.js";
|
|
40
40
|
import {
|
|
41
41
|
readJsonSafe
|
|
42
42
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
OPENCODE_APPROVAL_EVENT,
|
|
47
47
|
hookCompatibleProfile,
|
|
48
48
|
isRecord
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-NAD2JOKF.js";
|
|
50
50
|
|
|
51
51
|
// src/opencode-config.ts
|
|
52
52
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-S3IF6XHT.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EZBNWOZM.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-A533F6TF.js";
|
|
15
15
|
import {
|
|
16
16
|
findExportedKeyLines,
|
|
17
17
|
isAdoptedMacAppKey,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
readConfigFileKey,
|
|
22
22
|
readKeySource,
|
|
23
23
|
readMacAppKeyPrefix
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VVXWDBZK.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-NAD2JOKF.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_CHOICES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VFPXC2HE.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5FZ2K4UV.js";
|
|
7
7
|
import {
|
|
8
8
|
CLAUDE_HOOK_EVENTS,
|
|
9
9
|
CODEX_HOOK_EVENTS,
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
isBridgeLocator,
|
|
17
17
|
isProtectedByScope,
|
|
18
18
|
registerHookEntry
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6YVIWLL2.js";
|
|
20
20
|
import {
|
|
21
21
|
CURSOR_GATE_EVENTS,
|
|
22
22
|
HOOK_BUDGETS,
|
|
23
23
|
HOOK_LOCATOR_BINARY,
|
|
24
24
|
hookCommandHoldBudget
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NAD2JOKF.js";
|
|
26
26
|
|
|
27
27
|
// src/gemini-config.ts
|
|
28
28
|
var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
apiKeyInForce,
|
|
3
3
|
configFilePath,
|
|
4
4
|
keyPrefixToShow
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JPCVW3BA.js";
|
|
6
6
|
import {
|
|
7
7
|
backupFile,
|
|
8
8
|
backupFileInto,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
isRecord,
|
|
16
16
|
isValidApiKey,
|
|
17
17
|
normalizeInstallSource
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NAD2JOKF.js";
|
|
19
19
|
|
|
20
20
|
// src/install-source.ts
|
|
21
21
|
import { readFileSync } from "fs";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "./chunk-WHB622LP.js";
|
|
5
5
|
import {
|
|
6
6
|
keyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VVXWDBZK.js";
|
|
8
8
|
import {
|
|
9
9
|
keyPrefixToShow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JPCVW3BA.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BETDBGC7.js";
|
|
14
14
|
import {
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NAD2JOKF.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/key-account.ts
|
|
19
19
|
var isKeyHeldByMacApp = (key, holder) => holder.macAppInstalled && holder.macAppKey === key;
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "./chunk-3EGEA4KH.js";
|
|
10
10
|
import {
|
|
11
11
|
testTrafficHeaders
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TQ2KJLRJ.js";
|
|
13
13
|
import {
|
|
14
14
|
getBaseUrl
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JPCVW3BA.js";
|
|
16
16
|
import {
|
|
17
17
|
CLI_LOCAL_BIND_PATH,
|
|
18
18
|
LOCAL_CONFIRM_HOST,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
isLocalConfirmToken,
|
|
24
24
|
isPhonePass,
|
|
25
25
|
localTerminalEntryUrl
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NAD2JOKF.js";
|
|
27
27
|
|
|
28
28
|
// src/cli/login-ui.ts
|
|
29
29
|
import { hostname } from "os";
|