@pushary/agent-hooks 1.9.149 → 1.9.151
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 +16 -0
- package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
- package/data/cursor-plugin/CHANGELOG.md +7 -0
- package/data/cursor-plugin/scripts/redaction.mjs +6 -1
- package/data/openclaw-plugin/README.md +39 -2
- package/data/openclaw-plugin/dist/approval-hook.js +8 -4
- package/data/openclaw-plugin/dist/approval-question.js +100 -33
- package/data/openclaw-plugin/dist/command-preview.js +65 -0
- package/data/openclaw-plugin/dist/file-change-preview.js +109 -0
- package/data/openclaw-plugin/dist/gate-result.js +11 -4
- package/data/openclaw-plugin/dist/parameter-redaction.js +28 -0
- package/data/openclaw-plugin/dist/protected-writes.js +18 -4
- package/data/openclaw-plugin/dist/redaction.js +6 -1
- package/data/openclaw-plugin/dist/settings.js +7 -1
- package/data/openclaw-plugin/dist/visible-text.js +5 -0
- package/data/openclaw-plugin/openclaw.plugin.json +1 -1
- package/data/openclaw-plugin/package.json +1 -1
- package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
- package/data/vscode-plugin/CHANGELOG.md +9 -0
- package/data/vscode-plugin/scripts/redaction.mjs +6 -1
- package/dist/{api-H7H75ARS.js → api-GHPLREAU.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 +10 -10
- package/dist/bin/pushary-claude.js +27 -27
- package/dist/bin/pushary-clean.js +36 -36
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +35 -35
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +32 -32
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +44 -44
- package/dist/bin/pushary-disconnect.js +28 -28
- package/dist/bin/pushary-display-hook.js +33 -21
- package/dist/bin/pushary-doctor.js +44 -44
- package/dist/bin/pushary-elicitation-hook.js +28 -28
- package/dist/bin/pushary-gemini-bridge.js +17 -17
- package/dist/bin/pushary-gemini-hook.js +32 -32
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +21 -21
- package/dist/bin/pushary-logout.js +27 -27
- 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-hook.js +31 -31
- package/dist/bin/pushary-permission-denied-hook.js +35 -35
- 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 +37 -37
- package/dist/bin/pushary-setup.js +54 -53
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +33 -33
- 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 +17 -17
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +42 -42
- package/dist/bin/pushary-wait.js +15 -15
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-D3QT4S7U.js → chunk-3MXI37MS.js} +4 -4
- package/dist/{chunk-FQLS37AX.js → chunk-3TUSMGHE.js} +1 -1
- package/dist/{chunk-5IG3VPHT.js → chunk-3XIHKIDX.js} +4 -4
- package/dist/{chunk-4L2IYNLC.js → chunk-46IYOPZH.js} +1 -1
- package/dist/{chunk-NLED3JGR.js → chunk-4UDGVO6A.js} +1 -1
- package/dist/{chunk-F6ESGEWU.js → chunk-4ZH2PXDA.js} +1 -1
- package/dist/{chunk-3AAQJ75F.js → chunk-53Y4QQNF.js} +5 -5
- package/dist/{chunk-RYDDLS62.js → chunk-5D57GAKF.js} +3 -3
- package/dist/{chunk-RMBY7JGO.js → chunk-5TMW2X5I.js} +1 -1
- package/dist/{chunk-X4OEGFOG.js → chunk-6RMBTFDF.js} +3 -3
- package/dist/{chunk-T3CMGGNW.js → chunk-7357Q746.js} +1 -1
- package/dist/{chunk-UJUGFLVF.js → chunk-7FPKT5QJ.js} +5 -5
- package/dist/{chunk-KXNAB76Z.js → chunk-7L6IP3JA.js} +2 -2
- package/dist/{chunk-3OPXQK4D.js → chunk-7XFEV7ML.js} +5 -5
- package/dist/{chunk-3WD3BEPB.js → chunk-A3EV4C34.js} +2 -2
- package/dist/{chunk-6HO36P3A.js → chunk-ACC4YXJS.js} +1 -1
- package/dist/{chunk-PH3MVQCQ.js → chunk-AIKQFV6C.js} +4 -4
- package/dist/{chunk-6YX3VB5P.js → chunk-AWC7MXLX.js} +6 -6
- package/dist/{chunk-WQJ5NJ35.js → chunk-AYFOZBTD.js} +1 -1
- package/dist/{chunk-ZIPPDZ5B.js → chunk-BAH4LZL3.js} +5 -5
- package/dist/{chunk-JUEQUYAT.js → chunk-BANZ4GGS.js} +2 -2
- package/dist/{chunk-DHCJDYBT.js → chunk-BPSQLKTG.js} +6 -6
- package/dist/{chunk-RWTH5RYA.js → chunk-BRXPFM3U.js} +2 -2
- package/dist/{chunk-WQEJCDMR.js → chunk-C2JMTH45.js} +2 -2
- package/dist/{chunk-R2JRRCZK.js → chunk-CVQTLCVS.js} +1 -1
- package/dist/{chunk-M7HJZ7HO.js → chunk-DHP6SWVH.js} +3 -3
- package/dist/{chunk-KWJJYZ3T.js → chunk-DNK4E5CE.js} +4 -4
- package/dist/{chunk-QTQRQZIU.js → chunk-DQKT5KK5.js} +4 -4
- package/dist/{chunk-YWSIN7IH.js → chunk-DYUK6HYH.js} +1 -1
- package/dist/{chunk-ABTQG6XU.js → chunk-E5YEKJOM.js} +1 -1
- package/dist/{chunk-LC53HRZ6.js → chunk-E75OHUWM.js} +1 -1
- package/dist/{chunk-Q7GZKNMH.js → chunk-FHPLLUAZ.js} +1 -1
- package/dist/{chunk-JSZ6LKX5.js → chunk-FSEOIGZX.js} +13 -12
- package/dist/{chunk-HEOBF5H6.js → chunk-H4MHGLEB.js} +3 -3
- package/dist/{chunk-ZCB5SCYM.js → chunk-HQ3RFANL.js} +2 -2
- package/dist/{chunk-AQ7L2E2U.js → chunk-HY4GEW3T.js} +28 -21
- package/dist/{chunk-3T7RA7WJ.js → chunk-I3CN7BGN.js} +2 -2
- package/dist/{chunk-ENRL4WFD.js → chunk-I6DLNMUM.js} +4 -4
- package/dist/{chunk-NHZV2H63.js → chunk-ILEO4YWM.js} +1 -1
- package/dist/{chunk-A3URJPYH.js → chunk-IPRQFNPG.js} +1 -1
- package/dist/{chunk-UAHBSOO4.js → chunk-J6LZ4G5G.js} +2 -2
- package/dist/{chunk-ZOATPL53.js → chunk-JGYQ72A7.js} +4 -4
- package/dist/{chunk-QSZYHL7Z.js → chunk-JJKPQSEE.js} +2 -2
- package/dist/{chunk-O5ARO3JM.js → chunk-K3ORQ3KY.js} +13 -4
- package/dist/{chunk-S3MEI2D2.js → chunk-KAZ37TWD.js} +5 -5
- package/dist/{chunk-2CVRVHUQ.js → chunk-LRK2F63A.js} +8 -8
- package/dist/{chunk-X4OQ5UMH.js → chunk-NP6QILOY.js} +5 -5
- package/dist/{chunk-6RYJ3XCD.js → chunk-NPNBR4FS.js} +5 -5
- package/dist/{chunk-T4PX3DRF.js → chunk-NQUE54GA.js} +1 -1
- package/dist/{chunk-CMTDMZPV.js → chunk-NRMMXX62.js} +2 -2
- package/dist/{chunk-XSBW6TUH.js → chunk-OBIUHAXG.js} +2 -2
- package/dist/{chunk-35IODIBL.js → chunk-ODYF7VZZ.js} +1 -1
- package/dist/{chunk-YTD7RV6F.js → chunk-OZD5FIFS.js} +3 -3
- package/dist/{chunk-XZGQZDFP.js → chunk-P3E26UO5.js} +6 -6
- package/dist/{chunk-CABBLJD5.js → chunk-P3RRAH6J.js} +3 -3
- package/dist/{chunk-43NHQUCY.js → chunk-P6GCPJDQ.js} +3 -3
- package/dist/{chunk-H6FFNTSR.js → chunk-PS3O6LS2.js} +6 -6
- package/dist/{chunk-BP5HLKR6.js → chunk-PYH3KFLI.js} +12 -12
- package/dist/{chunk-MT4GBXLM.js → chunk-R2VVMSGM.js} +5 -5
- package/dist/{chunk-CIRTRWHM.js → chunk-RJAQ2447.js} +18 -7
- package/dist/{chunk-NRPQUU3D.js → chunk-S263JK6K.js} +2 -2
- package/dist/{chunk-KP6ERYOA.js → chunk-TQXKJX7X.js} +8 -8
- package/dist/{chunk-ZX2O66NS.js → chunk-TRDJICC7.js} +3 -3
- package/dist/{chunk-26TXJ35O.js → chunk-USN3OOHD.js} +19 -18
- package/dist/{chunk-CBIS7IYQ.js → chunk-WQ66RQRF.js} +5 -5
- package/dist/{chunk-CDQOARIF.js → chunk-WQVRDVMJ.js} +3 -3
- package/dist/{chunk-CU5SYUMK.js → chunk-WY4CM6TO.js} +3 -3
- package/dist/{chunk-CAHULQIO.js → chunk-XJLCZ24Y.js} +1 -1
- package/dist/{chunk-5HAA7C4X.js → chunk-XU45NUAV.js} +10 -10
- package/dist/{chunk-TXXAQRX4.js → chunk-XWMVKK54.js} +1 -1
- package/dist/{chunk-MUTMXSQZ.js → chunk-YUYBMCKF.js} +3 -3
- package/dist/{chunk-2VPRLAKF.js → chunk-YYEYPA3S.js} +4 -4
- package/dist/{chunk-VPADWVYD.js → chunk-ZBZ7CRGD.js} +1 -1
- package/dist/{chunk-MUSINFEU.js → chunk-ZLHPTXWU.js} +5 -5
- package/dist/{chunk-PUTX5BBE.js → chunk-ZMEI3EG4.js} +3 -3
- package/dist/{chunk-PVBDITRS.js → chunk-ZSX4XN6C.js} +5 -5
- package/dist/{chunk-DLPI45DF.js → chunk-ZUN37EG2.js} +6 -6
- package/dist/{codex-app-cards-switch-BCM547E6.js → codex-app-cards-switch-U77ZM22P.js} +11 -11
- package/dist/{codex-card-routing-222EKZJR.js → codex-card-routing-3L4XXUCK.js} +2 -2
- package/dist/{codex-desktop-launch-6AFOLMZ7.js → codex-desktop-launch-KRLBST55.js} +1 -1
- package/dist/{codex-session-launch-73EQE6IL.js → codex-session-launch-6LMMSNLA.js} +20 -20
- package/dist/{config-GWNPGS47.js → config-5YEZFF26.js} +3 -3
- package/dist/{global-upgrade-VRF6OSSU.js → global-upgrade-EWBY6BD5.js} +9 -9
- package/dist/{identity-PQIM7R2N.js → identity-D3SYIS5Z.js} +4 -4
- package/dist/{live-capabilities-G3LMKZUB.js → live-capabilities-QUNHPUFR.js} +4 -4
- package/dist/{paths-TFGIP5PU.js → paths-VI5KNBOY.js} +3 -3
- package/dist/{reapply-3IRAI6JF.js → reapply-AFG7K4KS.js} +30 -30
- package/dist/src/index.js +34 -34
- package/dist/{upgrade-lock-2G7ANYYO.js → upgrade-lock-COPTGES4.js} +4 -4
- package/dist/{usage-K3EGYCSU.js → usage-4367CHW4.js} +3 -3
- package/package.json +1 -1
- package/data/cursor-plugin/scripts/pushary-gate.test.mjs +0 -150
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatVersion,
|
|
4
4
|
quoteIfNeeded,
|
|
5
5
|
shellDoubleQuoted
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-P6GCPJDQ.js";
|
|
7
7
|
import {
|
|
8
8
|
writeFileAtomic
|
|
9
9
|
} from "./chunk-TODDEIYG.js";
|
|
@@ -18,10 +18,11 @@ import {
|
|
|
18
18
|
HOOK_BUDGETS,
|
|
19
19
|
HOOK_LOCATOR_BINARY,
|
|
20
20
|
PRETOOLUSE_GATED_TOOLS,
|
|
21
|
+
PUSHARY_CONNECTOR_TOOL_PREFIXES,
|
|
21
22
|
PUSHARY_HOSTS,
|
|
22
23
|
PUSHARY_TOOL_PREFIX,
|
|
23
24
|
withHookHoldBudget
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
25
26
|
|
|
26
27
|
// src/setup/paths.ts
|
|
27
28
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -714,25 +715,27 @@ var MIRRORED_TOOLS = POSTTOOLUSE_MIRRORED_TOOLS.join("|");
|
|
|
714
715
|
var ESTABLISHED = [1, 0, 0];
|
|
715
716
|
var OBSERVED = [2, 0, 0];
|
|
716
717
|
var CLAUDE_HOOK_BINARY = "pushary-hook";
|
|
718
|
+
var NON_HOLDING_HOOK_TIMEOUT_SECONDS = 10;
|
|
719
|
+
var REFUSALS_ONLY_HOOK_TIMEOUT_SECONDS = 30;
|
|
717
720
|
var CLAUDE_HOOK_EVENTS = [
|
|
718
721
|
{ event: "MessageDisplay", binary: "pushary-display-hook", timeout: 1, delivery: "telemetry", delaysDisplay: true, since: [2, 1, 308] },
|
|
719
722
|
{ event: "PreToolUse", binary: CLAUDE_HOOK_BINARY, matcher: CLAUDE_PRETOOLUSE_MATCHER, timeout: HOOK_BUDGETS.claude.budgetSeconds, delivery: "approval", since: ESTABLISHED },
|
|
720
|
-
{ event: "PostToolUse", binary: "pushary-post-hook", matcher: MIRRORED_TOOLS, timeout:
|
|
721
|
-
{ event: "Stop", binary: "pushary-stop-hook", timeout:
|
|
722
|
-
{ event: "UserPromptSubmit", binary: "pushary-prompt-hook", timeout:
|
|
723
|
-
{ event: "Notification", binary: "pushary-notification-hook", matcher: NOTIFICATION_MATCHED_TYPES.join("|"), timeout:
|
|
724
|
-
{ event: "SessionStart", binary: "pushary-session-start-hook", matcher: "startup|resume|clear", timeout:
|
|
725
|
-
{ event: "SessionEnd", binary: "pushary-session-end-hook", timeout:
|
|
726
|
-
{ event: "StopFailure", binary: "pushary-stopfailure-hook", timeout:
|
|
723
|
+
{ event: "PostToolUse", binary: "pushary-post-hook", matcher: MIRRORED_TOOLS, timeout: NON_HOLDING_HOOK_TIMEOUT_SECONDS, delivery: "telemetry", since: ESTABLISHED },
|
|
724
|
+
{ event: "Stop", binary: "pushary-stop-hook", timeout: NON_HOLDING_HOOK_TIMEOUT_SECONDS, delivery: "telemetry", since: ESTABLISHED },
|
|
725
|
+
{ event: "UserPromptSubmit", binary: "pushary-prompt-hook", timeout: NON_HOLDING_HOOK_TIMEOUT_SECONDS, delivery: "telemetry", since: ESTABLISHED },
|
|
726
|
+
{ event: "Notification", binary: "pushary-notification-hook", matcher: NOTIFICATION_MATCHED_TYPES.join("|"), timeout: NON_HOLDING_HOOK_TIMEOUT_SECONDS, delivery: "telemetry", since: ESTABLISHED },
|
|
727
|
+
{ event: "SessionStart", binary: "pushary-session-start-hook", matcher: "startup|resume|clear", timeout: NON_HOLDING_HOOK_TIMEOUT_SECONDS, delivery: "telemetry", since: ESTABLISHED },
|
|
728
|
+
{ event: "SessionEnd", binary: "pushary-session-end-hook", timeout: NON_HOLDING_HOOK_TIMEOUT_SECONDS, delivery: "telemetry", since: ESTABLISHED },
|
|
729
|
+
{ event: "StopFailure", binary: "pushary-stopfailure-hook", timeout: NON_HOLDING_HOOK_TIMEOUT_SECONDS, delivery: "telemetry", since: ESTABLISHED },
|
|
727
730
|
{ event: "PermissionRequest", binary: "pushary-permission-hook", timeout: HOOK_BUDGETS.claude.budgetSeconds, delivery: "approval", holds: true, since: ESTABLISHED },
|
|
728
731
|
{ event: "PermissionDenied", binary: "pushary-permission-denied-hook", timeout: HOOK_BUDGETS.claude.budgetSeconds, delivery: "approval", holds: true, since: ESTABLISHED },
|
|
729
732
|
// Observability only. Each carries session shape the island cannot get any other
|
|
730
733
|
// way, and none of them decides anything.
|
|
731
|
-
{ event: "SubagentStart", binary: "pushary-session-start-hook", timeout:
|
|
732
|
-
{ event: "SubagentStop", binary: "pushary-stop-hook", timeout:
|
|
733
|
-
{ event: "PreCompact", binary: "pushary-post-hook", matcher: "manual|auto", timeout:
|
|
734
|
-
{ event: "PostCompact", binary: "pushary-post-hook", matcher: "manual|auto", timeout:
|
|
735
|
-
{ event: "TeammateIdle", binary: "pushary-notification-hook", timeout:
|
|
734
|
+
{ event: "SubagentStart", binary: "pushary-session-start-hook", timeout: NON_HOLDING_HOOK_TIMEOUT_SECONDS, delivery: "telemetry", since: OBSERVED },
|
|
735
|
+
{ event: "SubagentStop", binary: "pushary-stop-hook", timeout: NON_HOLDING_HOOK_TIMEOUT_SECONDS, delivery: "telemetry", since: OBSERVED },
|
|
736
|
+
{ event: "PreCompact", binary: "pushary-post-hook", matcher: "manual|auto", timeout: NON_HOLDING_HOOK_TIMEOUT_SECONDS, delivery: "telemetry", since: OBSERVED },
|
|
737
|
+
{ event: "PostCompact", binary: "pushary-post-hook", matcher: "manual|auto", timeout: NON_HOLDING_HOOK_TIMEOUT_SECONDS, delivery: "telemetry", since: OBSERVED },
|
|
738
|
+
{ event: "TeammateIdle", binary: "pushary-notification-hook", timeout: NON_HOLDING_HOOK_TIMEOUT_SECONDS, delivery: "telemetry", since: OBSERVED },
|
|
736
739
|
// An MCP server asking the person for a value, answered from the phone rather
|
|
737
740
|
// than the terminal. No matcher: Claude Code matches this event on the MCP
|
|
738
741
|
// server's name, and we have no business preferring one server over another.
|
|
@@ -748,9 +751,11 @@ var CLAUDE_MCP_ROUTE_HOLD_HOOK = {
|
|
|
748
751
|
};
|
|
749
752
|
var CLAUDE_REFUSALS_ONLY_HOOK = {
|
|
750
753
|
...CLAUDE_MCP_ROUTE_HOLD_HOOK,
|
|
751
|
-
matcher: CLAUDE_REFUSALS_ONLY_PRETOOLUSE_MATCHER
|
|
754
|
+
matcher: CLAUDE_REFUSALS_ONLY_PRETOOLUSE_MATCHER,
|
|
755
|
+
timeout: REFUSALS_ONLY_HOOK_TIMEOUT_SECONDS
|
|
752
756
|
};
|
|
753
757
|
var CLAUDE_EXTRA_PRETOOLUSE_HOOKS = [CLAUDE_MCP_ROUTE_HOLD_HOOK, CLAUDE_REFUSALS_ONLY_HOOK];
|
|
758
|
+
var claudeExtraHooksFor = (events) => CLAUDE_EXTRA_PRETOOLUSE_HOOKS.filter((extra) => events.some((hook) => hook.event === extra.event));
|
|
754
759
|
var supportedClaudeEvents = (version) => CLAUDE_HOOK_EVENTS.filter((hook) => version ? atLeast(version, hook.since) : hook.since === ESTABLISHED);
|
|
755
760
|
var registrationSignatures = (events, version) => Object.fromEntries(
|
|
756
761
|
events.map((hook) => [hook.event, `registered|${version ? formatVersion(version) : "unknown"}`])
|
|
@@ -767,6 +772,8 @@ var needsReregistration = (stored, version) => {
|
|
|
767
772
|
import { isDeepStrictEqual } from "util";
|
|
768
773
|
var PUSHARY_MCP_URL = "https://pushary.com/api/mcp/mcp";
|
|
769
774
|
var PUSHARY_PERMISSION_RULE = `${PUSHARY_TOOL_PREFIX}*`;
|
|
775
|
+
var PUSHARY_CONNECTOR_PERMISSION_RULES = PUSHARY_CONNECTOR_TOOL_PREFIXES.map((prefix) => `${prefix}*`);
|
|
776
|
+
var CLAUDE_CODE_PUSHARY_PERMISSION_RULES = [PUSHARY_PERMISSION_RULE, ...PUSHARY_CONNECTOR_PERMISSION_RULES];
|
|
770
777
|
var asRecord3 = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
771
778
|
var ensureRecord2 = (target, key) => {
|
|
772
779
|
const existing = asRecord3(target[key]);
|
|
@@ -777,7 +784,7 @@ var ensureRecord2 = (target, key) => {
|
|
|
777
784
|
};
|
|
778
785
|
var PUSHARY_SERVER_PERMISSION_RULE = "mcp__pushary";
|
|
779
786
|
var PUSHARY_TOOL_PERMISSION_PREFIXES = [PUSHARY_TOOL_PREFIX, "MCP(pushary:"];
|
|
780
|
-
var allowsPusharyTools = (rule) => typeof rule === "string" && (rule === PUSHARY_SERVER_PERMISSION_RULE || PUSHARY_TOOL_PERMISSION_PREFIXES.some((prefix) => rule.startsWith(prefix)));
|
|
787
|
+
var allowsPusharyTools = (rule) => typeof rule === "string" && (rule === PUSHARY_SERVER_PERMISSION_RULE || PUSHARY_TOOL_PERMISSION_PREFIXES.some((prefix) => rule.startsWith(prefix)) || PUSHARY_CONNECTOR_PERMISSION_RULES.includes(rule));
|
|
781
788
|
var HOOK_BINARIES = /* @__PURE__ */ new Set([
|
|
782
789
|
...CLAUDE_HOOK_EVENTS.map((hook) => hook.binary),
|
|
783
790
|
HOOK_LOCATOR_BINARY
|
|
@@ -874,12 +881,12 @@ var removePusharyToolPermissions = (settings) => {
|
|
|
874
881
|
if (Object.keys(permissions).length === 0) delete settings.permissions;
|
|
875
882
|
return true;
|
|
876
883
|
};
|
|
877
|
-
var addPusharyToolPermissions = (settings) => {
|
|
884
|
+
var addPusharyToolPermissions = (settings, rules = [PUSHARY_PERMISSION_RULE]) => {
|
|
878
885
|
const permissions = ensureRecord2(settings, "permissions");
|
|
879
886
|
const allow = Array.isArray(permissions.allow) ? permissions.allow : [];
|
|
880
887
|
const filtered = allow.filter((rule) => !allowsPusharyTools(rule));
|
|
881
|
-
|
|
882
|
-
filtered.push(
|
|
888
|
+
for (const rule of rules) {
|
|
889
|
+
if (!filtered.includes(rule)) filtered.push(rule);
|
|
883
890
|
}
|
|
884
891
|
permissions.allow = filtered;
|
|
885
892
|
};
|
|
@@ -902,8 +909,7 @@ var addPusharyHooks = (settings, binDir, version = null) => {
|
|
|
902
909
|
delete hooks[known.event];
|
|
903
910
|
}
|
|
904
911
|
}
|
|
905
|
-
for (const extra of
|
|
906
|
-
if (!supported.has(extra.event)) continue;
|
|
912
|
+
for (const extra of claudeExtraHooksFor([...supported.values()])) {
|
|
907
913
|
const current = Array.isArray(hooks[extra.event]) ? hooks[extra.event] : [];
|
|
908
914
|
hooks[extra.event] = [...current, entry(extra, resolve3)];
|
|
909
915
|
}
|
|
@@ -1390,6 +1396,7 @@ export {
|
|
|
1390
1396
|
registrationSignatures,
|
|
1391
1397
|
needsReregistration,
|
|
1392
1398
|
PUSHARY_MCP_URL,
|
|
1399
|
+
CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
|
|
1393
1400
|
allowsPusharyTools,
|
|
1394
1401
|
isPusharyHook,
|
|
1395
1402
|
addClaudeMcpServer,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
codexHome,
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HY4GEW3T.js";
|
|
11
11
|
import {
|
|
12
12
|
resolvePathBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-P6GCPJDQ.js";
|
|
14
14
|
import {
|
|
15
15
|
getPackageVersion
|
|
16
16
|
} from "./chunk-WIIMW5YO.js";
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
} from "./chunk-G66WIAST.js";
|
|
14
14
|
import {
|
|
15
15
|
keyPrefix
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WY4CM6TO.js";
|
|
17
17
|
import {
|
|
18
18
|
getBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZBZ7CRGD.js";
|
|
20
20
|
import {
|
|
21
21
|
NPX_LATEST_COMMAND
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XWMVKK54.js";
|
|
23
23
|
import {
|
|
24
24
|
isValidApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
26
26
|
|
|
27
27
|
// src/cli/login-ui.ts
|
|
28
28
|
import { hostname } from "os";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-P3RRAH6J.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UNNAMED_ACTION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AYFOZBTD.js";
|
|
4
4
|
import {
|
|
5
5
|
askUser,
|
|
6
6
|
isAwayPaused,
|
|
7
7
|
isLocalQuestionHandoff,
|
|
8
8
|
unavailableQuestionUnlessRefused,
|
|
9
9
|
waitForQuestion
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BPSQLKTG.js";
|
|
11
11
|
import {
|
|
12
12
|
getMachineId
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-E5YEKJOM.js";
|
|
14
14
|
import {
|
|
15
15
|
hookWaitClamped,
|
|
16
16
|
hookWaitDeadline,
|
|
17
17
|
scopeBreachReasonOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
19
19
|
|
|
20
20
|
// src/pushed-question.ts
|
|
21
21
|
var scopeQuestionOf = (verdict) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callDecisionStore,
|
|
3
3
|
identifyingToolInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PYH3KFLI.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalJson
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HY4GEW3T.js";
|
|
8
8
|
|
|
9
9
|
// src/phone-approval.ts
|
|
10
10
|
import { createHash } from "crypto";
|
|
@@ -35,7 +35,7 @@ var CUT_OFF_SECRET_SHAPES = {
|
|
|
35
35
|
String.raw`\S+`
|
|
36
36
|
)
|
|
37
37
|
};
|
|
38
|
-
var
|
|
38
|
+
var credentialTokenRules = (shapes) => [
|
|
39
39
|
{ pattern: /\bpk_[A-Za-z0-9_]+\.[A-Za-z0-9_]+/g, replacement: "[redacted]" },
|
|
40
40
|
{ pattern: new RegExp(String.raw`-----BEGIN[A-Z0-9 ]*PRIVATE KEY-----${shapes.privateKeyBody}-----END[A-Z0-9 ]*PRIVATE KEY-----`, "g"), replacement: "[redacted key]" },
|
|
41
41
|
{ pattern: /\bsk-[A-Za-z0-9_-]{16,}\b/g, replacement: "[redacted]" },
|
|
@@ -50,12 +50,16 @@ var secretRedactionRules = (shapes) => [
|
|
|
50
50
|
{ pattern: /\bnpm_[A-Za-z0-9]{36}\b/g, replacement: "[redacted]" },
|
|
51
51
|
{ pattern: /\bxai-[A-Za-z0-9]{16,}\b/g, replacement: "[redacted]" },
|
|
52
52
|
{ pattern: /\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\b/g, replacement: "[redacted]" },
|
|
53
|
-
{ pattern: new RegExp(String.raw`\b([a-z][a-z0-9+.-]*:\/\/[^\s:/@]+:)${shapes.urlPassword}@`, "gi"), replacement: "$1[redacted]@" }
|
|
53
|
+
{ pattern: new RegExp(String.raw`\b([a-z][a-z0-9+.-]*:\/\/[^\s:/@]+:)${shapes.urlPassword}@`, "gi"), replacement: "$1[redacted]@" }
|
|
54
|
+
];
|
|
55
|
+
var secretRedactionRules = (shapes) => [
|
|
56
|
+
...credentialTokenRules(shapes),
|
|
54
57
|
{ pattern: new RegExp(String.raw`\bbearer${shapes.separator}+[A-Za-z0-9._~+/=-]+`, "gi"), replacement: "bearer [redacted]" },
|
|
55
58
|
{ pattern: new RegExp(String.raw`\bauthorization:${shapes.separator}*(?:${AUTHORIZATION_SCHEME}${shapes.separator}+)?${shapes.authorizationValue}`, "gi"), replacement: "authorization: [redacted]" },
|
|
56
59
|
shapes.credentialAssignment
|
|
57
60
|
];
|
|
58
61
|
var SECRET_REDACTION_RULES = secretRedactionRules(DISPLAYED_SECRET_SHAPES);
|
|
62
|
+
var CREDENTIAL_TOKEN_RULES = credentialTokenRules(DISPLAYED_SECRET_SHAPES);
|
|
59
63
|
var CUT_OFF_TEXT_REDACTION_RULES = secretRedactionRules(CUT_OFF_SECRET_SHAPES);
|
|
60
64
|
var HIGH_ENTROPY_RULE = { pattern: /[A-Za-z0-9+/]{40,}={0,2}/g, replacement: "[redacted]" };
|
|
61
65
|
var applyRedactionRules = (rules, text3) => rules.reduce((acc, rule) => acc.replace(rule.pattern, rule.replacement), text3);
|
|
@@ -3649,7 +3653,9 @@ var AUTH_REJECTION_REASONS = [
|
|
|
3649
3653
|
var CREDENTIAL_REJECTION_HEADER = "x-pushary-credential";
|
|
3650
3654
|
var CREDENTIAL_REJECTED = "rejected";
|
|
3651
3655
|
var CREDENTIAL_REJECTION_STATUS = 401;
|
|
3652
|
-
var
|
|
3656
|
+
var MCP_INVALID_TOKEN_ERROR = "invalid_token";
|
|
3657
|
+
var MCP_INVALID_CREDENTIAL_DESCRIPTION = "The access token is invalid or expired";
|
|
3658
|
+
var MCP_CREDENTIAL_REJECTION_BODY = JSON.stringify({ error: MCP_INVALID_TOKEN_ERROR, error_description: MCP_INVALID_CREDENTIAL_DESCRIPTION });
|
|
3653
3659
|
var responseRejectsCredential = (status, headers) => status === CREDENTIAL_REJECTION_STATUS && headers.get(CREDENTIAL_REJECTION_HEADER)?.trim() === CREDENTIAL_REJECTED;
|
|
3654
3660
|
var TOOL_FAILURE_META_KEY = "pushary/failure";
|
|
3655
3661
|
var TOOL_FAILURE_CODES = {
|
|
@@ -9301,6 +9307,7 @@ var CLAUDE_REFUSALS_ONLY_TOOLS = ["WebFetch", "Task", "Agent"];
|
|
|
9301
9307
|
var CLAUDE_REFUSALS_ONLY_PRETOOLUSE_MATCHER = `^(${CLAUDE_REFUSALS_ONLY_TOOLS.join("|")})$`;
|
|
9302
9308
|
var CLAUDE_SUBAGENT_TOOL_ALIASES = { Task: "Agent", Agent: "Task" };
|
|
9303
9309
|
var claudeSubagentToolAliasOf = (toolName) => Object.hasOwn(CLAUDE_SUBAGENT_TOOL_ALIASES, toolName) ? CLAUDE_SUBAGENT_TOOL_ALIASES[toolName] : void 0;
|
|
9310
|
+
var isPusharyOwnOrConnectorTool = (toolName) => isPusharyOwnTool(toolName) || isPusharyConnectorTool(toolName);
|
|
9304
9311
|
var isClaudeRefusalsOnlyTool = (toolName) => toolName.startsWith(MCP_TOOL_PREFIX) || CLAUDE_REFUSALS_ONLY_TOOLS.includes(toolName);
|
|
9305
9312
|
var standingDenyOfSubagentAlias = (toolName, verdictFor) => {
|
|
9306
9313
|
const alias = claudeSubagentToolAliasOf(toolName);
|
|
@@ -9754,7 +9761,7 @@ var matchedRouteOf = (input) => {
|
|
|
9754
9761
|
};
|
|
9755
9762
|
var verdictCanHoldTheCall = (verdict) => verdict.kind === "gate" && !approvalWaitsAtTheAgentsPrompt(verdict.policy.mode) && !approvesWhenUnanswered(verdict.policy);
|
|
9756
9763
|
var approvalRouteOutranksAutoMode = (input, verdict, permissionMode) => permissionMode === AUTO_PERMISSION_MODE && PRETOOLUSE_HANDLED_TOOLS.has(input.toolName) && verdictCanHoldTheCall(verdict) && callWaitsForSomeoneElse(input);
|
|
9757
|
-
var mcpCallCouldBeHeldForSomeoneElse = (toolName, permissionMode) => permissionMode === AUTO_PERMISSION_MODE && parseMcpToolName(toolName) !== void 0 && !
|
|
9764
|
+
var mcpCallCouldBeHeldForSomeoneElse = (toolName, permissionMode) => permissionMode === AUTO_PERMISSION_MODE && parseMcpToolName(toolName) !== void 0 && !isPusharyOwnOrConnectorTool(toolName);
|
|
9758
9765
|
var approvalRouteHoldsMcpCall = (input, verdict, permissionMode) => mcpCallCouldBeHeldForSomeoneElse(input.toolName, permissionMode) && verdictCanHoldTheCall(verdict) && namedRouteWaitsForSomeoneElse(input);
|
|
9759
9766
|
var claudeAllowlistOwnsCall = (input, verdict, permissionMode, rules) => rules !== null && verdict.kind === "gate" && !verdict.scopeReason && !aChosenRuleGoverns(input) && !isAskedInEveryMode(input.toolName) && claudeConsultsItsAllowlist(permissionMode) && agentRulesAllowEveryInput(rules, input.toolName, input.toolInputs, input.cwd);
|
|
9760
9767
|
var claudePromptTakesTheCall = (facts, input, verdict) => verdict.kind === "gate" && !verdict.scopeReason && terminalStaysLiveForTheCall(facts) && noModeOverrideIsActive(input) && !aChosenRuleGoverns(input) && !editGoesToTheAgentsPrompt({ source: facts.source, event: "PreToolUse", permissionMode: facts.permissionMode }, input, verdict);
|
|
@@ -10315,6 +10322,7 @@ export {
|
|
|
10315
10322
|
KILL_REASON,
|
|
10316
10323
|
PUSHARY_TOOL_PREFIX,
|
|
10317
10324
|
isPusharyOwnTool,
|
|
10325
|
+
PUSHARY_CONNECTOR_TOOL_PREFIXES,
|
|
10318
10326
|
isPusharyConnectorTool,
|
|
10319
10327
|
shouldDeferToNativeMode,
|
|
10320
10328
|
AGENT_QUESTION_TOOL,
|
|
@@ -10337,6 +10345,7 @@ export {
|
|
|
10337
10345
|
CLAUDE_PRETOOLUSE_MATCHER,
|
|
10338
10346
|
CLAUDE_MCP_PRETOOLUSE_MATCHER,
|
|
10339
10347
|
CLAUDE_REFUSALS_ONLY_PRETOOLUSE_MATCHER,
|
|
10348
|
+
isPusharyOwnOrConnectorTool,
|
|
10340
10349
|
isClaudeRefusalsOnlyTool,
|
|
10341
10350
|
standingDenyOfSubagentAlias,
|
|
10342
10351
|
permissionsOffLineAppliesTo,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openClawLauncherCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5D57GAKF.js";
|
|
4
4
|
import {
|
|
5
5
|
openCodeConfigDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-53Y4QQNF.js";
|
|
7
7
|
import {
|
|
8
8
|
nativeClaudeInstallPath
|
|
9
9
|
} from "./chunk-CYTPQDQY.js";
|
|
10
10
|
import {
|
|
11
11
|
grokHome
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZSX4XN6C.js";
|
|
13
13
|
import {
|
|
14
14
|
claudeConfigDir,
|
|
15
15
|
clineDataDirectory,
|
|
16
16
|
codexHomeFrom,
|
|
17
17
|
openClawEnvironmentOf,
|
|
18
18
|
openClawPathsFrom
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HY4GEW3T.js";
|
|
20
20
|
import {
|
|
21
21
|
HOOK_COMPATIBLE_PROFILES
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
23
23
|
|
|
24
24
|
// src/vscode-config.ts
|
|
25
25
|
import { homedir } from "os";
|
|
@@ -4,37 +4,37 @@ import {
|
|
|
4
4
|
postLiveSession,
|
|
5
5
|
postLiveSessionUntilAccepted,
|
|
6
6
|
startLiveSessionHeartbeat
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ODYF7VZZ.js";
|
|
8
8
|
import {
|
|
9
9
|
CommandReceipts,
|
|
10
10
|
controllerCommandSchema
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4ZH2PXDA.js";
|
|
12
12
|
import {
|
|
13
13
|
SESSION_IDLE_TIMEOUT_MS,
|
|
14
14
|
describeIdleWindow,
|
|
15
15
|
idleDeadlinePassed,
|
|
16
16
|
startProcessOwnership
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-A3EV4C34.js";
|
|
18
18
|
import {
|
|
19
19
|
repositoryScopeFor
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3TUSMGHE.js";
|
|
21
21
|
import {
|
|
22
22
|
isAskUserResponse,
|
|
23
23
|
isDecisionStopped,
|
|
24
24
|
isWaitForAnswerResponse,
|
|
25
25
|
withdrawQuestion,
|
|
26
26
|
writeDegraded
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-BPSQLKTG.js";
|
|
28
28
|
import {
|
|
29
29
|
callMcpTool,
|
|
30
30
|
isRetryable
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ZLHPTXWU.js";
|
|
32
32
|
import {
|
|
33
33
|
spawnClaude
|
|
34
34
|
} from "./chunk-H6CL3T2S.js";
|
|
35
35
|
import {
|
|
36
36
|
readCommandAck
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-IPRQFNPG.js";
|
|
38
38
|
import {
|
|
39
39
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
40
40
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
parseCodexQuestions,
|
|
56
56
|
planElicitationAsk,
|
|
57
57
|
readElicitationFields
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
59
59
|
|
|
60
60
|
// src/codex-question-owner.ts
|
|
61
61
|
import { createHash } from "crypto";
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
expectedLaunchCapabilities,
|
|
4
4
|
hasSpawnProvider,
|
|
5
5
|
resolveControlPolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TRDJICC7.js";
|
|
7
7
|
import {
|
|
8
8
|
daemonHasRemoteProof,
|
|
9
9
|
daemonServiceManagerAvailable,
|
|
10
10
|
hasDaemonServiceDefinition,
|
|
11
11
|
readDaemonNeedsLogin,
|
|
12
12
|
readDaemonStatus
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-P3E26UO5.js";
|
|
14
14
|
import {
|
|
15
15
|
getMachineId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-E5YEKJOM.js";
|
|
17
17
|
import {
|
|
18
18
|
readControlMode,
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WY4CM6TO.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZBZ7CRGD.js";
|
|
24
24
|
import {
|
|
25
25
|
getPackageVersion
|
|
26
26
|
} from "./chunk-WIIMW5YO.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AWC7MXLX.js";
|
|
18
18
|
import {
|
|
19
19
|
describeRevokeAttempt,
|
|
20
20
|
keyNoLongerAccepted,
|
|
@@ -32,17 +32,17 @@ import {
|
|
|
32
32
|
} from "./chunk-YM2T76UM.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-P3RRAH6J.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-OBIUHAXG.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-XWMVKK54.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
46
46
|
|
|
47
47
|
// src/onboarding.ts
|
|
48
48
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
claudeConfigDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HY4GEW3T.js";
|
|
4
4
|
import {
|
|
5
5
|
claudePermissionRulesFromSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
7
7
|
|
|
8
8
|
// src/claude-permission-rules.ts
|
|
9
9
|
import { readFileSync, statSync } from "fs";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
verifyAnchoredRecipients,
|
|
12
12
|
wrapSessionKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YUYBMCKF.js";
|
|
14
14
|
|
|
15
15
|
// src/live-session.ts
|
|
16
16
|
var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
|
|
@@ -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-GHPLREAU.js");
|
|
540
|
+
var loadTheCardRouting = () => import("./codex-card-routing-3L4XXUCK.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-U77ZM22P.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]");
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
} from "./chunk-H6CL3T2S.js";
|
|
5
5
|
import {
|
|
6
6
|
getMachineId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-E5YEKJOM.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WY4CM6TO.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HY4GEW3T.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveGlobalBinary
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-P6GCPJDQ.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZBZ7CRGD.js";
|
|
20
20
|
import {
|
|
21
21
|
readJsonSafe,
|
|
22
22
|
writeFileAtomic,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-WIIMW5YO.js";
|
|
33
33
|
import {
|
|
34
34
|
isRecord
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
36
36
|
|
|
37
37
|
// src/daemon-entry-guard.ts
|
|
38
38
|
import { mkdirSync, readFileSync } from "fs";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WQVRDVMJ.js";
|
|
4
4
|
import {
|
|
5
5
|
NetworkError
|
|
6
6
|
} from "./chunk-YU2EUD7O.js";
|
|
7
7
|
import {
|
|
8
8
|
getBaseUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZBZ7CRGD.js";
|
|
10
10
|
import {
|
|
11
11
|
EXIT
|
|
12
12
|
} from "./chunk-BG4HHB7E.js";
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
17
17
|
|
|
18
18
|
// src/session.ts
|
|
19
19
|
var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;
|
|
@@ -426,9 +426,9 @@ var installGlobally = (options) => {
|
|
|
426
426
|
}
|
|
427
427
|
const started = (async () => {
|
|
428
428
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
429
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
430
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
431
|
-
const { autoUpdateLock } = await import("./paths-
|
|
429
|
+
const { withUpgradeLock } = await import("./global-upgrade-EWBY6BD5.js");
|
|
430
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-COPTGES4.js");
|
|
431
|
+
const { autoUpdateLock } = await import("./paths-VI5KNBOY.js");
|
|
432
432
|
let result = "skipped";
|
|
433
433
|
const install = async () => {
|
|
434
434
|
const platform = process.platform;
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C2JMTH45.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-J6LZ4G5G.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
11
|
} from "./chunk-YM2T76UM.js";
|
|
@@ -14,19 +14,19 @@ import {
|
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-P3RRAH6J.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WY4CM6TO.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZBZ7CRGD.js";
|
|
24
24
|
import {
|
|
25
25
|
EXIT
|
|
26
26
|
} from "./chunk-BG4HHB7E.js";
|
|
27
27
|
import {
|
|
28
28
|
KEY_SCOPE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-K3ORQ3KY.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|