@pushary/agent-hooks 1.9.145 → 1.9.147
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 +17 -0
- package/README.md +5 -4
- package/data/SKILL.md +3 -3
- package/data/cursor-plugin/scripts/redaction.mjs +2 -1
- package/data/cursor-plugin/skills/pushary/SKILL.md +2 -2
- package/data/openclaw-plugin/LICENSE +21 -0
- package/data/openclaw-plugin/README.md +113 -0
- package/data/openclaw-plugin/dist/api-key-shape.js +5 -0
- package/data/openclaw-plugin/dist/approval-hook.js +88 -0
- package/data/openclaw-plugin/dist/approval-question.js +66 -0
- package/data/openclaw-plugin/dist/connection.js +101 -0
- package/data/openclaw-plugin/dist/decision-reply.js +6 -0
- package/data/openclaw-plugin/dist/gate-result.js +58 -0
- package/data/openclaw-plugin/dist/gate.js +173 -0
- package/data/openclaw-plugin/dist/hook-budget.js +19 -0
- package/data/openclaw-plugin/dist/host-api.js +1 -0
- package/data/openclaw-plugin/dist/host-version.js +25 -0
- package/data/openclaw-plugin/dist/index.js +32 -0
- package/data/openclaw-plugin/dist/openclaw-paths.js +43 -0
- package/data/openclaw-plugin/dist/openclaw-write-guard.js +93 -0
- package/data/openclaw-plugin/dist/protected-writes.js +217 -0
- package/data/openclaw-plugin/dist/pushary-client.js +103 -0
- package/data/openclaw-plugin/dist/pushary-hosts.js +3 -0
- package/data/openclaw-plugin/dist/redaction.js +53 -0
- package/data/openclaw-plugin/dist/replies.js +65 -0
- package/data/openclaw-plugin/dist/settings.js +103 -0
- package/data/openclaw-plugin/openclaw.plugin.json +32 -0
- package/data/openclaw-plugin/package.json +70 -0
- package/data/vscode-plugin/scripts/redaction.mjs +2 -1
- package/data/vscode-plugin/skills/pushary/SKILL.md +2 -2
- package/dist/{api-KWJQMO6G.js → api-2KDVLXHT.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 +11 -11
- package/dist/bin/pushary-claude.js +27 -27
- package/dist/bin/pushary-clean.js +76 -39
- 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 +78 -36
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +44 -43
- package/dist/bin/pushary-disconnect.js +28 -28
- package/dist/bin/pushary-display-hook.js +96 -44
- package/dist/bin/pushary-doctor.js +124 -55
- 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 +22 -22
- package/dist/bin/pushary-logout.js +33 -31
- 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-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 -36
- package/dist/bin/pushary-setup.js +140 -87
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +38 -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 +17 -17
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +42 -41
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-4KDRT3OA.js → chunk-2EETRVCZ.js} +1 -1
- package/dist/{chunk-LJRPWUST.js → chunk-2G54YLN3.js} +3 -3
- package/dist/{chunk-R34RWVN2.js → chunk-2I6A34GJ.js} +14 -5
- package/dist/{chunk-WPBWJMBZ.js → chunk-2QY2BD4T.js} +5 -5
- package/dist/{chunk-RO6EVL5C.js → chunk-2RAIG6NF.js} +2 -2
- package/dist/{chunk-LD4R2P6N.js → chunk-2YNAQ5TX.js} +1 -1
- package/dist/{chunk-TRV3ETGY.js → chunk-37ZBJB2Q.js} +5 -5
- package/dist/{chunk-BWREST4F.js → chunk-3NMX4725.js} +1 -1
- package/dist/{chunk-YRJZF5RG.js → chunk-3TTXOU6G.js} +3 -3
- package/dist/{chunk-FCSPMSDC.js → chunk-4P3ML7HP.js} +200 -59
- package/dist/{chunk-IRPIMQ7U.js → chunk-526XSNMS.js} +3 -3
- package/dist/{chunk-4L5WPDTB.js → chunk-57GVGSOQ.js} +1 -1
- package/dist/{chunk-ZORBUQFG.js → chunk-5II3USXS.js} +2 -2
- package/dist/{chunk-USFZJAB4.js → chunk-5K65H6OO.js} +1 -1
- package/dist/{chunk-5TWW7ZUL.js → chunk-6C5QRJIH.js} +5 -5
- package/dist/{chunk-KFALRZIN.js → chunk-6EPTMB7L.js} +4 -4
- package/dist/{chunk-LQXUWXQP.js → chunk-6JBX55K4.js} +31 -8
- package/dist/{chunk-B4JQIH5M.js → chunk-6YVGY2ZX.js} +7 -7
- package/dist/{chunk-7LTP2GHO.js → chunk-72S6PF2I.js} +2 -2
- package/dist/{chunk-WMBWKPKJ.js → chunk-7P32YU2M.js} +10 -74
- package/dist/{chunk-TJXJGMSP.js → chunk-7TVSWGAV.js} +8 -6
- package/dist/{chunk-L4OGTRVW.js → chunk-7WDEJTNX.js} +4 -4
- package/dist/{chunk-KGFB2LEB.js → chunk-7XIJD7NL.js} +3 -3
- package/dist/{chunk-S3A4PCRR.js → chunk-A5MSVNFS.js} +10 -10
- package/dist/{chunk-OONMKLUF.js → chunk-ANLR5G2W.js} +4 -4
- package/dist/{chunk-HOQH5CLZ.js → chunk-BEDAQAEN.js} +1 -1
- package/dist/{chunk-JKWUF776.js → chunk-BHGSNYG5.js} +3 -3
- package/dist/{chunk-VTJ4WZOC.js → chunk-BU2J4P7P.js} +3 -3
- package/dist/{chunk-6UK4K5RS.js → chunk-BYVLAPCF.js} +1 -1
- package/dist/{chunk-KS3PNTRT.js → chunk-CSNG5NQR.js} +1 -1
- package/dist/{chunk-JZT2LPRM.js → chunk-D7ZWJYXB.js} +1 -1
- package/dist/{chunk-Y7INHH5G.js → chunk-ELRZO6A7.js} +3 -3
- package/dist/{chunk-6IWOMXUF.js → chunk-EV54ZQ5J.js} +4 -4
- package/dist/{chunk-33BYPZ52.js → chunk-FHBJJOMF.js} +1 -1
- package/dist/{chunk-YU5XE6VC.js → chunk-FKGWP4MF.js} +8 -7
- package/dist/{chunk-2ELNRGNX.js → chunk-FMAIUTVU.js} +3 -3
- package/dist/{chunk-EPWOARGR.js → chunk-FWCECQTY.js} +2 -2
- package/dist/{chunk-BYKRAYGD.js → chunk-GGCUXNZN.js} +1 -1
- package/dist/{chunk-WH4ODOCE.js → chunk-GIWI5IHB.js} +6 -6
- package/dist/{chunk-72LP4RPC.js → chunk-GJV5RVUU.js} +98 -47
- package/dist/chunk-GPAMD5JG.js +157 -0
- package/dist/{chunk-FNAH3YJC.js → chunk-I72UU75H.js} +16 -16
- package/dist/{chunk-ZSOCJHL7.js → chunk-ISM6XF3V.js} +309 -5
- package/dist/{chunk-Q6P7G4NY.js → chunk-ISOP4ENY.js} +17 -5
- package/dist/{chunk-6LZ7MXHD.js → chunk-JDIKCM2N.js} +5 -5
- package/dist/{chunk-52UXNCZG.js → chunk-KDJIDRJS.js} +3 -3
- package/dist/{chunk-LMU6NG2G.js → chunk-KFL7OWLI.js} +1 -1
- package/dist/{chunk-PXZTCR4M.js → chunk-KH27X5CW.js} +2 -2
- package/dist/{chunk-MOC2DN42.js → chunk-KXMIDDUN.js} +2 -2
- package/dist/{chunk-QKTF7WS6.js → chunk-L2M6D2N4.js} +4 -4
- package/dist/{chunk-CUR2DCZN.js → chunk-L6BTSIKF.js} +4 -4
- package/dist/{chunk-YZA3YBHX.js → chunk-LO52V6WG.js} +2 -2
- package/dist/{chunk-GK5X2ZTN.js → chunk-MI7GHNTO.js} +5 -5
- package/dist/{chunk-MKHVLDMN.js → chunk-MYJJNLT2.js} +2 -2
- package/dist/{chunk-WUT3PO33.js → chunk-NAGF5ZJ2.js} +8 -8
- package/dist/{chunk-ZBMVOMFG.js → chunk-NMUEUDTT.js} +1 -1
- package/dist/{chunk-MNU5N3CQ.js → chunk-OSYULPJO.js} +23 -12
- package/dist/{chunk-SQL5YXUH.js → chunk-OXDKZYBO.js} +1 -1
- package/dist/chunk-OYIN77HO.js +72 -0
- package/dist/{chunk-KKPT7ROP.js → chunk-P6W2V2AP.js} +2 -2
- package/dist/{chunk-G3VSMI7K.js → chunk-Q3JW44JV.js} +2 -2
- package/dist/{chunk-K2SKUBYY.js → chunk-Q6POCQOV.js} +12 -12
- package/dist/{chunk-IIN26HL7.js → chunk-Q767Y4LY.js} +1 -1
- package/dist/{chunk-GURIOZE7.js → chunk-QGKFDSEO.js} +8 -8
- package/dist/{chunk-YNCVSKUW.js → chunk-RZGR4G5G.js} +5 -5
- package/dist/{chunk-2LGDEPVL.js → chunk-RZJHCHEA.js} +6 -6
- package/dist/{chunk-ZJZNT2G5.js → chunk-T274HRSR.js} +4 -4
- package/dist/chunk-T2CR5REM.js +176 -0
- package/dist/{chunk-A2H256WR.js → chunk-T3TVMMXJ.js} +1 -1
- package/dist/{chunk-NTMKJRQ3.js → chunk-TZ7CBPCD.js} +2 -2
- package/dist/{chunk-S7HGPKCL.js → chunk-UGPNLU4O.js} +1 -1
- package/dist/{chunk-DZIZ3XFL.js → chunk-UR55VBLY.js} +2 -2
- package/dist/{chunk-PY6CM4NK.js → chunk-WLKW2TF7.js} +19 -12
- package/dist/{chunk-63WX5KZN.js → chunk-WNV3X2VU.js} +3 -3
- package/dist/{chunk-WOSO4YFQ.js → chunk-XQOBM3E6.js} +3 -3
- package/dist/{chunk-RWLNTZK5.js → chunk-YICO6HEW.js} +5 -5
- package/dist/{chunk-FO3MDD26.js → chunk-YM2T76UM.js} +27 -0
- package/dist/chunk-YOVJOHM5.js +36 -0
- package/dist/{chunk-IDLOJIIS.js → chunk-ZKAQWXGO.js} +1 -1
- package/dist/{codex-app-cards-switch-F7WQ7Y3I.js → codex-app-cards-switch-GN65VEKM.js} +11 -11
- package/dist/{codex-card-routing-EVL5L36G.js → codex-card-routing-JTS75442.js} +2 -2
- package/dist/{codex-desktop-launch-PL6Z2ELZ.js → codex-desktop-launch-AQ2HSOQJ.js} +1 -1
- package/dist/{codex-session-launch-7NQEAUDU.js → codex-session-launch-QYZZGVSQ.js} +20 -20
- package/dist/{config-KFFD4VWH.js → config-5ATI6KPI.js} +3 -3
- package/dist/{global-upgrade-L3CY6EFF.js → global-upgrade-K4HWVUMI.js} +9 -9
- package/dist/{identity-DPYYIMHL.js → identity-V2GZCPJV.js} +4 -4
- package/dist/{live-capabilities-QJEXK6GH.js → live-capabilities-PD62FO4K.js} +4 -4
- package/dist/{paths-PEF6C64P.js → paths-WPJEIHUE.js} +7 -3
- package/dist/{reapply-7APCQRRK.js → reapply-ZEWMGDXT.js} +30 -29
- package/dist/src/index.js +34 -34
- package/dist/{upgrade-lock-A7OKXMRW.js → upgrade-lock-7OR6V323.js} +4 -4
- package/dist/{usage-HSS33762.js → usage-GWZ3UGZG.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-D3UFDCTQ.js +0 -87
|
@@ -5,6 +5,7 @@ var DISPLAYED_CREDENTIAL_KEY = String.raw`${CREDENTIAL_NAME}(?:[ \t]*:[ \t]*|[ \
|
|
|
5
5
|
var SHELL_INERT_UNIT = String.raw`(?:[A-Za-z0-9_\-./+=:@%^!#]|\\[^\s'"])`;
|
|
6
6
|
var SHELL_INERT_SINGLE_QUOTED_UNIT = String.raw`[A-Za-z0-9_\-./+=:@%^!#\\]`;
|
|
7
7
|
var SHELL_INERT_URL_PASSWORD_UNIT = String.raw`(?:[A-Za-z0-9_\-.+=:%^!#]|\\[^\s'"@/])`;
|
|
8
|
+
var AUTHORIZATION_SCHEME = String.raw`(?:basic|digest|token|negotiate|ntlm)`;
|
|
8
9
|
var PEM_LINE_BREAK = String.raw`(?:\r?\n|(?:\\r)?\\n)`;
|
|
9
10
|
var credentialAssignmentRule = (key, doubleQuoted, singleQuoted, bare) => ({
|
|
10
11
|
pattern: new RegExp(String.raw`(${key})(?:(")${doubleQuoted}|(')${singleQuoted}|(["']?)${bare})`, "gi"),
|
|
@@ -51,7 +52,7 @@ var secretRedactionRules = (shapes) => [
|
|
|
51
52
|
{ pattern: /\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\b/g, replacement: "[redacted]" },
|
|
52
53
|
{ pattern: new RegExp(String.raw`\b([a-z][a-z0-9+.-]*:\/\/[^\s:/@]+:)${shapes.urlPassword}@`, "gi"), replacement: "$1[redacted]@" },
|
|
53
54
|
{ pattern: new RegExp(String.raw`\bbearer${shapes.separator}+[A-Za-z0-9._~+/=-]+`, "gi"), replacement: "bearer [redacted]" },
|
|
54
|
-
{ pattern: new RegExp(String.raw`\bauthorization:${shapes.separator}
|
|
55
|
+
{ pattern: new RegExp(String.raw`\bauthorization:${shapes.separator}*(?:${AUTHORIZATION_SCHEME}${shapes.separator}+)?${shapes.authorizationValue}`, "gi"), replacement: "authorization: [redacted]" },
|
|
55
56
|
shapes.credentialAssignment
|
|
56
57
|
];
|
|
57
58
|
var SECRET_REDACTION_RULES = secretRedactionRules(DISPLAYED_SECRET_SHAPES);
|
|
@@ -362,6 +363,15 @@ var AGENTS = {
|
|
|
362
363
|
enforcementDetail: "Hermes dangerous-command approvals when the Pushary transport is selected; optional PUSHARY_GATE_TOOLS gates named tools.",
|
|
363
364
|
capabilityNote: "Uses the Pushary plugin in ~/.hermes/plugins/pushary, not a macOS bridge HookSource. CLI disconnect and managed-provider controls are not implemented for Hermes."
|
|
364
365
|
},
|
|
366
|
+
openclaw: {
|
|
367
|
+
...defaults,
|
|
368
|
+
label: "OpenClaw",
|
|
369
|
+
enforcement: "enforced",
|
|
370
|
+
connectVia: "Plugin installed by the CLI + before_tool_call hook",
|
|
371
|
+
setupCommand: PUSHARY_SETUP_COMMAND,
|
|
372
|
+
enforcementDetail: "exec calls, the process actions that type into a session, automations and terminal actions that schedule, run or type, the plugins, gateway and openclaw actions that install, disable, reconfigure or restart OpenClaw, file writes into OpenClaw's own state and service files, and any tool named in the plugin's gatedTools setting, through OpenClaw's before_tool_call hook. A gated call runs only after a yes in Pushary; a no, no answer, a cancelled call or an unreachable server blocks it.",
|
|
373
|
+
capabilityNote: "Setup writes the Pushary plugin it carries to ~/.pushary/openclaw-plugin and installs it with openclaw plugins install; it is not a macOS bridge HookSource. Pushary's tool rules are not evaluated on the machine, so every gated call asks. Phone calls are held until a live call test passes. CLI disconnect and managed-provider controls are not implemented for OpenClaw."
|
|
374
|
+
},
|
|
365
375
|
cursor: {
|
|
366
376
|
...defaults,
|
|
367
377
|
keepsSessionHistory: true,
|
|
@@ -1072,6 +1082,12 @@ var compatibleTargetFiles = (profile) => {
|
|
|
1072
1082
|
return [...seen.values()];
|
|
1073
1083
|
};
|
|
1074
1084
|
|
|
1085
|
+
// ../contracts/src/decision-reply.ts
|
|
1086
|
+
var APPROVE_ANSWER = "yes";
|
|
1087
|
+
var STOP_HANDOFF_ACTION = "stop";
|
|
1088
|
+
var DECISION_STOP_STATUSES = ["cancelled", "unavailable", "stopped", "missing"];
|
|
1089
|
+
var isDecisionStoppedReply = (reply) => reply.handoffAction === STOP_HANDOFF_ACTION || typeof reply.status === "string" && DECISION_STOP_STATUSES.includes(reply.status);
|
|
1090
|
+
|
|
1075
1091
|
// ../contracts/src/cursor.ts
|
|
1076
1092
|
var CURSOR_GATE_EVENTS = ["beforeShellExecution", "beforeMCPExecution", "preToolUse"];
|
|
1077
1093
|
var CURSOR_GATE_SCRIPT = "pushary-gate.mjs";
|
|
@@ -1106,6 +1122,12 @@ var toolsCoveredByGateEntry = (coverage, matcher) => {
|
|
|
1106
1122
|
var toolMatches = (match, toolName) => match.kind === "named" ? match.tools.includes(toolName) : toolName.startsWith(match.prefix);
|
|
1107
1123
|
var cursorGateOwnsToolCall = (registration, toolName) => typeof toolName === "string" && registration.some((match) => toolMatches(match, toolName));
|
|
1108
1124
|
|
|
1125
|
+
// ../contracts/src/api-key-shape.ts
|
|
1126
|
+
var API_KEY_PREFIX_SHAPE = "pk_[a-f0-9]+";
|
|
1127
|
+
var API_KEY_PREFIX_PATTERN = new RegExp(`^${API_KEY_PREFIX_SHAPE}$`);
|
|
1128
|
+
var API_KEY_PATTERN = new RegExp(`^${API_KEY_PREFIX_SHAPE}\\.[a-f0-9]+$`);
|
|
1129
|
+
var isValidApiKey = (value) => API_KEY_PATTERN.test(value);
|
|
1130
|
+
|
|
1109
1131
|
// ../contracts/src/audit-chain.ts
|
|
1110
1132
|
var AUDIT_CHAIN_FORMAT = "pushary-audit-chain-v1";
|
|
1111
1133
|
var AUDIT_CHAIN_GENESIS_HASH = "0".repeat(64);
|
|
@@ -3563,6 +3585,9 @@ var degradedPayload = (subsystem, report) => ({
|
|
|
3563
3585
|
});
|
|
3564
3586
|
var degradedLine = (subsystem, report) => `${DEGRADED_PREFIX} ${JSON.stringify(degradedPayload(subsystem, report))}`;
|
|
3565
3587
|
|
|
3588
|
+
// ../contracts/src/pushary-hosts.ts
|
|
3589
|
+
var PUSHARY_HOSTS = ["pushary.com", "www.pushary.com"];
|
|
3590
|
+
|
|
3566
3591
|
// ../contracts/src/key-scope.ts
|
|
3567
3592
|
var KEY_SCOPES = ["full_access", "agent", "connector", "bound"];
|
|
3568
3593
|
var KEY_SCOPE = {
|
|
@@ -3683,6 +3708,7 @@ var SETUP_AGENT_CHOICES = [
|
|
|
3683
3708
|
"codex",
|
|
3684
3709
|
"gemini_cli",
|
|
3685
3710
|
"hermes",
|
|
3711
|
+
"openclaw",
|
|
3686
3712
|
"cursor",
|
|
3687
3713
|
"vscode",
|
|
3688
3714
|
"opencode",
|
|
@@ -8505,10 +8531,6 @@ var textNeedsAPersonFor = (toolNamesADatabase) => (field, text3) => textNamesAWe
|
|
|
8505
8531
|
var mcpToolInputOnlyReads = (toolName, toolInput) => !toolInputTooLargeToRead(toolInput) && !anyToolInputText(toolInput, UNNAMED_TOOL_INPUT_FIELD, 0, textNeedsAPersonFor(mcpToolNamesADatabase(toolName)));
|
|
8506
8532
|
var allowsSessionToolGrant = (toolName) => SESSION_TOOL_GRANT_TOOLS.has(toolName) || mcpToolOnlyReads(toolName);
|
|
8507
8533
|
var isSessionToolGrant = (policy) => Boolean(policy.sessionId) && allowsSessionToolGrant(policy.tool) && isAutoApprove(policy);
|
|
8508
|
-
var API_KEY_PREFIX_SHAPE = "pk_[a-f0-9]+";
|
|
8509
|
-
var API_KEY_PREFIX_PATTERN = new RegExp(`^${API_KEY_PREFIX_SHAPE}$`);
|
|
8510
|
-
var API_KEY_PATTERN = new RegExp(`^${API_KEY_PREFIX_SHAPE}\\.[a-f0-9]+$`);
|
|
8511
|
-
var isValidApiKey = (value) => API_KEY_PATTERN.test(value);
|
|
8512
8534
|
var ACTION_BODY_MAX = 4e3;
|
|
8513
8535
|
var DECISION_LINE_MAX = 500;
|
|
8514
8536
|
var ASK_QUESTION_MAX = 8e3;
|
|
@@ -8730,7 +8752,6 @@ var SETTLED_OUTCOME = {
|
|
|
8730
8752
|
deny: "deny"
|
|
8731
8753
|
};
|
|
8732
8754
|
var isSettledOutcome = (value) => typeof value === "string" && SETTLED_OUTCOMES.includes(value);
|
|
8733
|
-
var APPROVE_ANSWER = "yes";
|
|
8734
8755
|
var DENY_ANSWER = "no";
|
|
8735
8756
|
var DEFER_ANSWER = "defer";
|
|
8736
8757
|
var PHONE_DENIAL_PREFIX = "Denied from your phone: ";
|
|
@@ -10162,6 +10183,7 @@ export {
|
|
|
10162
10183
|
hookCompatibleProfile,
|
|
10163
10184
|
hookCompatibleProfileBySource,
|
|
10164
10185
|
compatibleTargetFiles,
|
|
10186
|
+
isDecisionStoppedReply,
|
|
10165
10187
|
CURSOR_GATE_EVENTS,
|
|
10166
10188
|
CURSOR_GATE_SCRIPT,
|
|
10167
10189
|
CURSOR_GATE_COVERAGE,
|
|
@@ -10174,6 +10196,9 @@ export {
|
|
|
10174
10196
|
PENDING_COMMAND_PREFIX,
|
|
10175
10197
|
pendingCommandInstruction,
|
|
10176
10198
|
degradedLine,
|
|
10199
|
+
API_KEY_PREFIX_PATTERN,
|
|
10200
|
+
isValidApiKey,
|
|
10201
|
+
PUSHARY_HOSTS,
|
|
10177
10202
|
KEY_SCOPE,
|
|
10178
10203
|
normalizeKeyScope,
|
|
10179
10204
|
hookWritePath,
|
|
@@ -10274,8 +10299,6 @@ export {
|
|
|
10274
10299
|
FILE_TARGET_TOOLS,
|
|
10275
10300
|
MCP_TOOL_PREFIX,
|
|
10276
10301
|
parseMcpToolName,
|
|
10277
|
-
API_KEY_PREFIX_PATTERN,
|
|
10278
|
-
isValidApiKey,
|
|
10279
10302
|
ACTION_BODY_MAX,
|
|
10280
10303
|
DECISION_LINE_MAX,
|
|
10281
10304
|
ASK_QUESTION_MAX,
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Q3JW44JV.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LO52V6WG.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YM2T76UM.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3TTXOU6G.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XQOBM3E6.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3NMX4725.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-6JBX55K4.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callDecisionStore,
|
|
3
3
|
identifyingToolInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q6POCQOV.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalJson
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GJV5RVUU.js";
|
|
8
8
|
|
|
9
9
|
// src/phone-approval.ts
|
|
10
10
|
import { createHash } from "crypto";
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
describeRevokeAttempt,
|
|
3
|
+
keyNoLongerAccepted,
|
|
4
|
+
revokeOwnKey
|
|
5
|
+
} from "./chunk-OYIN77HO.js";
|
|
1
6
|
import {
|
|
2
7
|
readMacAppAgentKey
|
|
3
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6EPTMB7L.js";
|
|
4
9
|
import {
|
|
5
10
|
API_KEYS_PATH
|
|
6
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LO52V6WG.js";
|
|
7
12
|
import {
|
|
8
13
|
absoluteUrl
|
|
9
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3TTXOU6G.js";
|
|
10
15
|
import {
|
|
11
16
|
findExportedKeyLines,
|
|
12
17
|
isAdoptedMacAppKey,
|
|
@@ -16,76 +21,10 @@ import {
|
|
|
16
21
|
readConfigFileKey,
|
|
17
22
|
readKeySource,
|
|
18
23
|
readMacAppKeyPrefix
|
|
19
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XQOBM3E6.js";
|
|
20
25
|
import {
|
|
21
26
|
isValidApiKey
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
|
|
24
|
-
// src/key-revocation.ts
|
|
25
|
-
var SELF_REVOKE_PATH = "/api/v1/server/keys/self/revoke";
|
|
26
|
-
var DEVICE_KEY_PATH = "/api/agent/device-key";
|
|
27
|
-
var FULL_ACCESS_ONLY_STATUS = 403;
|
|
28
|
-
var REVOKE_TIMEOUT_MS = 1e4;
|
|
29
|
-
var readRevokedCount = async (response) => {
|
|
30
|
-
try {
|
|
31
|
-
const body = await response.json();
|
|
32
|
-
const revoked = typeof body === "object" && body !== null && "revoked" in body ? body.revoked : void 0;
|
|
33
|
-
return typeof revoked === "number" && Number.isInteger(revoked) && revoked >= 0 ? revoked : null;
|
|
34
|
-
} catch {
|
|
35
|
-
return null;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var revokeAgentKey = async (apiKey, baseUrl, fetchImpl) => {
|
|
39
|
-
const response = await fetchImpl(`${baseUrl}${DEVICE_KEY_PATH}`, {
|
|
40
|
-
method: "DELETE",
|
|
41
|
-
headers: { Authorization: `Bearer ${apiKey}` },
|
|
42
|
-
signal: AbortSignal.timeout(REVOKE_TIMEOUT_MS)
|
|
43
|
-
});
|
|
44
|
-
if (!response.ok) return { kind: "refused", status: response.status };
|
|
45
|
-
const revoked = await readRevokedCount(response);
|
|
46
|
-
if (revoked === null) return { kind: "unconfirmed", status: response.status };
|
|
47
|
-
return revoked > 0 ? { kind: "revoked" } : { kind: "not_accepted" };
|
|
48
|
-
};
|
|
49
|
-
var revokeOwnKey = async (apiKey, baseUrl, fetchImpl = fetch) => {
|
|
50
|
-
try {
|
|
51
|
-
const response = await fetchImpl(`${baseUrl}${SELF_REVOKE_PATH}`, {
|
|
52
|
-
method: "POST",
|
|
53
|
-
headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
|
|
54
|
-
signal: AbortSignal.timeout(REVOKE_TIMEOUT_MS)
|
|
55
|
-
});
|
|
56
|
-
if (response.status === 401) return { kind: "not_accepted" };
|
|
57
|
-
if (response.status === FULL_ACCESS_ONLY_STATUS) return await revokeAgentKey(apiKey, baseUrl, fetchImpl);
|
|
58
|
-
if (!response.ok) return { kind: "refused", status: response.status };
|
|
59
|
-
return { kind: "revoked" };
|
|
60
|
-
} catch (err) {
|
|
61
|
-
return { kind: "unreachable", detail: err instanceof Error ? err.message : "network error" };
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
var REVOKE_DETAIL = {
|
|
65
|
-
revoked: "Revoked the key on pushary.com.",
|
|
66
|
-
not_accepted: "pushary.com had already stopped accepting the key.",
|
|
67
|
-
refused: "pushary.com refused to revoke the key",
|
|
68
|
-
unconfirmed: "pushary.com did not confirm the key was revoked",
|
|
69
|
-
unreachable: "Could not reach pushary.com to revoke the key"
|
|
70
|
-
};
|
|
71
|
-
var describeRevokeAttempt = (attempt) => {
|
|
72
|
-
if (attempt.kind === "refused" || attempt.kind === "unconfirmed") return `${REVOKE_DETAIL[attempt.kind]} (HTTP ${attempt.status}).`;
|
|
73
|
-
if (attempt.kind === "unreachable") return `${REVOKE_DETAIL.unreachable}: ${attempt.detail}`;
|
|
74
|
-
return REVOKE_DETAIL[attempt.kind];
|
|
75
|
-
};
|
|
76
|
-
var keyNoLongerAccepted = (attempt) => attempt.kind === "revoked" || attempt.kind === "not_accepted";
|
|
77
|
-
var keyValidityOf = (check) => {
|
|
78
|
-
switch (check.kind) {
|
|
79
|
-
case "ok":
|
|
80
|
-
case "locked":
|
|
81
|
-
return "valid";
|
|
82
|
-
case "rejected":
|
|
83
|
-
case "malformed":
|
|
84
|
-
return "invalid";
|
|
85
|
-
case "unreachable":
|
|
86
|
-
return "unknown";
|
|
87
|
-
}
|
|
88
|
-
};
|
|
27
|
+
} from "./chunk-6JBX55K4.js";
|
|
89
28
|
|
|
90
29
|
// src/cli/held-key-revocation.ts
|
|
91
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -154,9 +93,6 @@ var describeCliKeyRevocation = (outcome, run) => {
|
|
|
154
93
|
};
|
|
155
94
|
|
|
156
95
|
export {
|
|
157
|
-
revokeOwnKey,
|
|
158
|
-
keyNoLongerAccepted,
|
|
159
|
-
keyValidityOf,
|
|
160
96
|
readCliHeldKeys,
|
|
161
97
|
planCliKeyRevocations,
|
|
162
98
|
keysToRevoke,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WLKW2TF7.js";
|
|
4
4
|
import {
|
|
5
5
|
canChangeApprovalSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LO52V6WG.js";
|
|
7
7
|
import {
|
|
8
8
|
matchMacAccountStep,
|
|
9
9
|
retryAgentCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FMAIUTVU.js";
|
|
11
11
|
import {
|
|
12
12
|
EXIT
|
|
13
13
|
} from "./chunk-BG4HHB7E.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JDIKCM2N.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/closing.ts
|
|
19
19
|
var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
|
|
@@ -24,7 +24,9 @@ var sendAnotherTestLines = (appPlatforms) => {
|
|
|
24
24
|
return step === null ? [CHECK_THE_NOTIFICATION_OPENED, SEND_ANOTHER_TEST] : [SEND_ANOTHER_TEST, step];
|
|
25
25
|
};
|
|
26
26
|
var TRANSCRIPT_SYNC_NOTICE = `Transcripts sync redacted and encrypted. Your phone can decrypt them; authorized Pushary compliance admins can recover them for documented legal obligations. Turn off: ${NPX_LATEST_COMMAND} transcripts off`;
|
|
27
|
-
var PAIR_PHONE_APP_HINT = `${NPX_LATEST_COMMAND}
|
|
27
|
+
var PAIR_PHONE_APP_HINT = `${NPX_LATEST_COMMAND} pair pair the Pushary app on your phone`;
|
|
28
|
+
var ALLOW_NOTIFICATIONS_HINT = `${NPX_LATEST_COMMAND} doctor --roundtrip after you allow notifications in the Pushary app`;
|
|
29
|
+
var unreachedPhoneHint = (facts) => facts.phoneAwaitsNotifications === true ? ALLOW_NOTIFICATIONS_HINT : PAIR_PHONE_APP_HINT;
|
|
28
30
|
var RESTART_AGENTS_LINE = "Restart any open agent sessions so they pick up Pushary.";
|
|
29
31
|
var TEAM_OFFER_URL = "https://pushary.com/teams?utm_source=cli&utm_medium=setup&utm_campaign=teams";
|
|
30
32
|
var PLANS_THAT_CAN_MOVE_UP_TO_TEAM = ["agent", "agent_pro"];
|
|
@@ -146,7 +148,7 @@ var nextSteps = (facts, reachable) => {
|
|
|
146
148
|
lines.push("pushary claude launch a managed Claude Code session");
|
|
147
149
|
}
|
|
148
150
|
if (!reachable) {
|
|
149
|
-
lines.push(
|
|
151
|
+
lines.push(unreachedPhoneHint(facts));
|
|
150
152
|
}
|
|
151
153
|
lines.push("pushary doctor re-check everything");
|
|
152
154
|
return lines;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyHookExecutable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L6BTSIKF.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-GJV5RVUU.js";
|
|
11
11
|
import {
|
|
12
12
|
atLeast,
|
|
13
13
|
parseVersion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BU2J4P7P.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-6JBX55K4.js";
|
|
25
25
|
|
|
26
26
|
// src/cursor-gate-registration.ts
|
|
27
27
|
import { dirname, isAbsolute, join, resolve } from "path";
|
|
@@ -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-2KDVLXHT.js");
|
|
540
|
+
var loadTheCardRouting = () => import("./codex-card-routing-JTS75442.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-GN65VEKM.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]");
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from "./chunk-G66WIAST.js";
|
|
9
9
|
import {
|
|
10
10
|
ensureDaemonRunning
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GIWI5IHB.js";
|
|
12
12
|
import {
|
|
13
13
|
hookOwnerOf
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-L6BTSIKF.js";
|
|
15
15
|
import {
|
|
16
16
|
hookMeaning
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-D7ZWJYXB.js";
|
|
18
18
|
import {
|
|
19
19
|
buildTranscriptRecords,
|
|
20
20
|
decodePublicKey,
|
|
@@ -25,29 +25,29 @@ import {
|
|
|
25
25
|
recordSealerFor,
|
|
26
26
|
uploadTranscriptRecords,
|
|
27
27
|
wrapSessionKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-526XSNMS.js";
|
|
29
29
|
import {
|
|
30
30
|
external_exports
|
|
31
31
|
} from "./chunk-XMSDA5WA.js";
|
|
32
32
|
import {
|
|
33
33
|
transcriptEnvironmentPreference,
|
|
34
34
|
transcriptsEnabled
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-BEDAQAEN.js";
|
|
36
36
|
import {
|
|
37
37
|
fetchAsCredential
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-UGPNLU4O.js";
|
|
39
39
|
import {
|
|
40
40
|
readTranscriptPreference
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-XQOBM3E6.js";
|
|
42
42
|
import {
|
|
43
43
|
claudeConfigDir,
|
|
44
44
|
codexHome,
|
|
45
45
|
pusharyDir
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-GJV5RVUU.js";
|
|
47
47
|
import {
|
|
48
48
|
getApiKey,
|
|
49
49
|
getBaseUrl
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-3NMX4725.js";
|
|
51
51
|
import {
|
|
52
52
|
writeJsonAtomic,
|
|
53
53
|
writeJsonAtomicDurable
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
isHookSource,
|
|
60
60
|
isRecord,
|
|
61
61
|
redactSecretsFromContent
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-6JBX55K4.js";
|
|
63
63
|
|
|
64
64
|
// src/transcript-recipient-pin.ts
|
|
65
65
|
import { createHash } from "crypto";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UNNAMED_ACTION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D7ZWJYXB.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-FKGWP4MF.js";
|
|
11
11
|
import {
|
|
12
12
|
getMachineId
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CSNG5NQR.js";
|
|
14
14
|
import {
|
|
15
15
|
hookWaitClamped,
|
|
16
16
|
hookWaitDeadline,
|
|
17
17
|
scopeBreachReasonOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6JBX55K4.js";
|
|
19
19
|
|
|
20
20
|
// src/pushed-question.ts
|
|
21
21
|
var scopeQuestionOf = (verdict) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NMUEUDTT.js";
|
|
4
4
|
import {
|
|
5
5
|
parseFlags
|
|
6
6
|
} from "./chunk-YPY4YCIZ.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-YU2EUD7O.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JDIKCM2N.js";
|
|
13
13
|
import {
|
|
14
14
|
CLAUDE_CONNECTOR_GUIDE,
|
|
15
15
|
CLAUDE_CONNECTOR_STEPS,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
CLAUDE_CONNECTOR_URL,
|
|
18
18
|
COWORK_CONNECTOR_LIMIT,
|
|
19
19
|
COWORK_STANDING_INSTRUCTIONS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6JBX55K4.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -407,9 +407,9 @@ var installGlobally = (options) => {
|
|
|
407
407
|
}
|
|
408
408
|
const started = (async () => {
|
|
409
409
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
410
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
411
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
412
|
-
const { autoUpdateLock } = await import("./paths-
|
|
410
|
+
const { withUpgradeLock } = await import("./global-upgrade-K4HWVUMI.js");
|
|
411
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-7OR6V323.js");
|
|
412
|
+
const { autoUpdateLock } = await import("./paths-WPJEIHUE.js");
|
|
413
413
|
let result = "skipped";
|
|
414
414
|
const install = async () => {
|
|
415
415
|
const platform = process.platform;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UR55VBLY.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
6
|
} from "./chunk-CYTPQDQY.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolvePackageVersionFromBinary,
|
|
13
13
|
resolvePathBinary,
|
|
14
14
|
resolvePathBinaryAsync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BU2J4P7P.js";
|
|
16
16
|
import {
|
|
17
17
|
CLAUDE_BRIDGE_CAPABILITY,
|
|
18
18
|
CLAUDE_RESUME_CAPABILITY,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
MANAGED_PROVIDERS,
|
|
24
24
|
SPAWN_CAPABILITY,
|
|
25
25
|
sessionProvidersAdvertisedBy
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6JBX55K4.js";
|
|
27
27
|
|
|
28
28
|
// src/live-capabilities.ts
|
|
29
29
|
import { accessSync, constants, statSync as statSync2 } from "fs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2I6A34GJ.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-L6BTSIKF.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GJV5RVUU.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6JBX55K4.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2QY2BD4T.js";
|
|
12
12
|
import {
|
|
13
13
|
installNetworkDefaults,
|
|
14
14
|
isNetworkFailure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2G54YLN3.js";
|
|
16
16
|
import {
|
|
17
17
|
fetchAsCredential
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UGPNLU4O.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GJV5RVUU.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-3NMX4725.js";
|
|
26
26
|
import {
|
|
27
27
|
ASK_AGENT_NAME_MAX,
|
|
28
28
|
CLIENT_REPORT_PATH,
|
|
@@ -30,8 +30,9 @@ import {
|
|
|
30
30
|
GATE_PERMISSION_MODE_MAX_LENGTH,
|
|
31
31
|
TOOL_FAILURE_CODES,
|
|
32
32
|
degradedLine,
|
|
33
|
+
isDecisionStoppedReply,
|
|
33
34
|
truncateLine
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6JBX55K4.js";
|
|
35
36
|
|
|
36
37
|
// src/api.ts
|
|
37
38
|
import { randomUUID } from "crypto";
|
|
@@ -197,7 +198,7 @@ var writeDegraded = (subsystem, report) => {
|
|
|
197
198
|
|
|
198
199
|
// src/api.ts
|
|
199
200
|
installNetworkDefaults();
|
|
200
|
-
var isDecisionStopped = (result) =>
|
|
201
|
+
var isDecisionStopped = (result) => isDecisionStoppedReply(result);
|
|
201
202
|
var isAwayPaused = (result) => result.paused === true;
|
|
202
203
|
var isLocalQuestionHandoff = (result) => !isAwayPaused(result) && (result.suppressed === true || result.noDevices === true || result.status === "terminal" || result.status === "notified");
|
|
203
204
|
var waitsForThePhone = (result) => result.answered !== true && !isAwayPaused(result) && !isLocalQuestionHandoff(result);
|