@pushary/agent-hooks 1.9.144 → 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 +24 -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-ZV7TT25P.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 +103 -44
- package/dist/bin/pushary-doctor.js +139 -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 +209 -89
- 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-LUVSHGLH.js → chunk-2EETRVCZ.js} +1 -1
- package/dist/{chunk-YESBU4VQ.js → chunk-2G54YLN3.js} +3 -3
- package/dist/{chunk-WGOTBZ23.js → chunk-2I6A34GJ.js} +15 -5
- package/dist/{chunk-WGT5LCIB.js → chunk-2QY2BD4T.js} +5 -5
- package/dist/{chunk-HGIW56MU.js → chunk-2RAIG6NF.js} +2 -2
- package/dist/{chunk-QLGLUUOP.js → chunk-2YNAQ5TX.js} +1 -1
- package/dist/{chunk-44WPMZGQ.js → chunk-37ZBJB2Q.js} +5 -5
- package/dist/{chunk-4EBJ4PTZ.js → chunk-3NMX4725.js} +1 -1
- package/dist/{chunk-E32SRYTE.js → chunk-3TTXOU6G.js} +3 -3
- package/dist/{chunk-GV3FDGQH.js → chunk-4P3ML7HP.js} +200 -59
- package/dist/{chunk-22CXL7YI.js → chunk-526XSNMS.js} +3 -3
- package/dist/{chunk-B4VIT5N3.js → chunk-57GVGSOQ.js} +1 -1
- package/dist/{chunk-6LALK6GI.js → chunk-5II3USXS.js} +2 -2
- package/dist/{chunk-WWCM6UL7.js → chunk-5K65H6OO.js} +1 -1
- package/dist/{chunk-56HFENZK.js → chunk-6C5QRJIH.js} +5 -5
- package/dist/{chunk-EOKUIOMT.js → chunk-6EPTMB7L.js} +4 -4
- package/dist/{chunk-C5LIS3XM.js → chunk-6JBX55K4.js} +38 -8
- package/dist/{chunk-23CGCD5L.js → chunk-6YVGY2ZX.js} +7 -7
- package/dist/{chunk-WC25Z4XS.js → chunk-72S6PF2I.js} +2 -2
- package/dist/{chunk-YY5YVMBA.js → chunk-7P32YU2M.js} +10 -74
- package/dist/{chunk-WTBFPSTR.js → chunk-7TVSWGAV.js} +8 -6
- package/dist/{chunk-S7WVJ6AR.js → chunk-7WDEJTNX.js} +4 -4
- package/dist/{chunk-AJQ4TTPJ.js → chunk-7XIJD7NL.js} +3 -3
- package/dist/{chunk-PYT4WXXR.js → chunk-A5MSVNFS.js} +10 -10
- package/dist/{chunk-FC2ENROR.js → chunk-ANLR5G2W.js} +4 -4
- package/dist/{chunk-7VMVMC4H.js → chunk-BEDAQAEN.js} +1 -1
- package/dist/{chunk-4JTZZXB3.js → chunk-BHGSNYG5.js} +3 -3
- package/dist/{chunk-5I3UQEAX.js → chunk-BU2J4P7P.js} +3 -3
- package/dist/{chunk-EMODTMHE.js → chunk-BYVLAPCF.js} +1 -1
- package/dist/{chunk-5BTAIFVV.js → chunk-CSNG5NQR.js} +1 -1
- package/dist/{chunk-7QWH257P.js → chunk-D7ZWJYXB.js} +1 -1
- package/dist/{chunk-AGUL2JDK.js → chunk-ELRZO6A7.js} +3 -3
- package/dist/{chunk-Z2WQD2W6.js → chunk-EV54ZQ5J.js} +4 -4
- package/dist/{chunk-5TZYAMGW.js → chunk-FHBJJOMF.js} +1 -1
- package/dist/{chunk-74QCFZKV.js → chunk-FKGWP4MF.js} +8 -7
- package/dist/{chunk-MCI6KYN7.js → chunk-FMAIUTVU.js} +3 -3
- package/dist/{chunk-WTULK73V.js → chunk-FWCECQTY.js} +2 -2
- package/dist/{chunk-ZVJIJPQY.js → chunk-GGCUXNZN.js} +1 -1
- package/dist/{chunk-VP4T5352.js → chunk-GIWI5IHB.js} +6 -6
- package/dist/{chunk-RPXSGCRG.js → chunk-GJV5RVUU.js} +98 -47
- package/dist/chunk-GPAMD5JG.js +157 -0
- package/dist/{chunk-ZGYGKKXF.js → chunk-I72UU75H.js} +16 -16
- package/dist/{chunk-CV4EIXPV.js → chunk-ISM6XF3V.js} +494 -15
- package/dist/{chunk-HNFYZPNJ.js → chunk-ISOP4ENY.js} +17 -5
- package/dist/{chunk-R7FSMUHG.js → chunk-JDIKCM2N.js} +6 -5
- package/dist/{chunk-BHNX7XNO.js → chunk-KDJIDRJS.js} +3 -3
- package/dist/{chunk-DDJHPMBJ.js → chunk-KFL7OWLI.js} +1 -1
- package/dist/{chunk-5AXDNDUJ.js → chunk-KH27X5CW.js} +2 -2
- package/dist/{chunk-BHKODM4L.js → chunk-KXMIDDUN.js} +2 -2
- package/dist/{chunk-3KRGT5AZ.js → chunk-L2M6D2N4.js} +67 -4
- package/dist/{chunk-KEBI7NYU.js → chunk-L6BTSIKF.js} +4 -4
- package/dist/{chunk-YFK3MJGZ.js → chunk-LO52V6WG.js} +2 -2
- package/dist/{chunk-LVOHE66T.js → chunk-MI7GHNTO.js} +5 -5
- package/dist/{chunk-4524ZR2U.js → chunk-MYJJNLT2.js} +2 -2
- package/dist/{chunk-CZOMD2IW.js → chunk-NAGF5ZJ2.js} +8 -8
- package/dist/{chunk-53KLGXFL.js → chunk-NMUEUDTT.js} +4 -3
- package/dist/{chunk-C6SKS6IU.js → chunk-OSYULPJO.js} +23 -12
- package/dist/{chunk-F37YD4YE.js → chunk-OXDKZYBO.js} +1 -1
- package/dist/chunk-OYIN77HO.js +72 -0
- package/dist/{chunk-XLMJEEW3.js → chunk-P6W2V2AP.js} +2 -2
- package/dist/{chunk-ZKKZEVNI.js → chunk-Q3JW44JV.js} +2 -2
- package/dist/{chunk-EY5CVFDL.js → chunk-Q6POCQOV.js} +12 -12
- package/dist/{chunk-P5QXH5QI.js → chunk-Q767Y4LY.js} +1 -1
- package/dist/{chunk-UK5DKLZY.js → chunk-QGKFDSEO.js} +8 -8
- package/dist/{chunk-YD376BLV.js → chunk-RZGR4G5G.js} +5 -5
- package/dist/{chunk-OZG6CGYW.js → chunk-RZJHCHEA.js} +6 -6
- package/dist/{chunk-H33CFJOF.js → chunk-T274HRSR.js} +4 -4
- package/dist/chunk-T2CR5REM.js +176 -0
- package/dist/{chunk-QESEICW4.js → chunk-T3TVMMXJ.js} +1 -1
- package/dist/{chunk-44BLJJPH.js → chunk-TZ7CBPCD.js} +2 -2
- package/dist/{chunk-YCU7Y77H.js → chunk-UGPNLU4O.js} +1 -1
- package/dist/{chunk-BE5LO5VW.js → chunk-UR55VBLY.js} +2 -2
- package/dist/{chunk-EC7VHNHE.js → chunk-WLKW2TF7.js} +19 -12
- package/dist/{chunk-CWWO3JTD.js → chunk-WNV3X2VU.js} +3 -3
- package/dist/{chunk-HIIXYZYV.js → chunk-XQOBM3E6.js} +3 -3
- package/dist/{chunk-JK7DTAQH.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-LS6BU5RM.js → chunk-ZKAQWXGO.js} +1 -1
- package/dist/{codex-app-cards-switch-5PWB62W3.js → codex-app-cards-switch-GN65VEKM.js} +11 -11
- package/dist/{codex-card-routing-I6YOJBTT.js → codex-card-routing-JTS75442.js} +2 -2
- package/dist/{codex-desktop-launch-BCPUKOCV.js → codex-desktop-launch-AQ2HSOQJ.js} +1 -1
- package/dist/{codex-session-launch-4ZUBROFZ.js → codex-session-launch-QYZZGVSQ.js} +20 -20
- package/dist/{config-2CHOLFNB.js → config-5ATI6KPI.js} +3 -3
- package/dist/{global-upgrade-4IKWJHLE.js → global-upgrade-K4HWVUMI.js} +9 -9
- package/dist/{identity-I2VWLZAQ.js → identity-V2GZCPJV.js} +4 -4
- package/dist/{live-capabilities-4CLCROSP.js → live-capabilities-PD62FO4K.js} +4 -4
- package/dist/{paths-YMHQKLFX.js → paths-WPJEIHUE.js} +7 -3
- package/dist/{reapply-FBQ7VR6L.js → reapply-ZEWMGDXT.js} +30 -29
- package/dist/src/index.js +34 -34
- package/dist/{upgrade-lock-7ONNXM6V.js → upgrade-lock-7OR6V323.js} +4 -4
- package/dist/{usage-GWUTCS5A.js → usage-GWZ3UGZG.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-I6HXZIER.js +0 -31
|
@@ -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,
|
|
@@ -519,6 +529,13 @@ var AGENTS = {
|
|
|
519
529
|
setupGuide: "[Grok Bot setup](/docs/agents/guides/grok-bot)",
|
|
520
530
|
capabilityNote: "Grok Bot keeps its own approval cards, and Pushary cannot stop a Bot in the middle of a task. A question nobody answers expires after about ten minutes and is never treated as a yes."
|
|
521
531
|
},
|
|
532
|
+
muse: {
|
|
533
|
+
...defaults,
|
|
534
|
+
label: "Muse",
|
|
535
|
+
connectVia: "Muse custom connector (remote MCP)",
|
|
536
|
+
documented: false,
|
|
537
|
+
capabilityNote: "Muse keeps its own confirmations, and Pushary cannot stop Muse in the middle of a task. Muse decides when to ask through Pushary. A question nobody answers expires after about ten minutes and is never treated as a yes."
|
|
538
|
+
},
|
|
522
539
|
windsurf: {
|
|
523
540
|
...defaults,
|
|
524
541
|
label: "Windsurf",
|
|
@@ -1065,6 +1082,12 @@ var compatibleTargetFiles = (profile) => {
|
|
|
1065
1082
|
return [...seen.values()];
|
|
1066
1083
|
};
|
|
1067
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
|
+
|
|
1068
1091
|
// ../contracts/src/cursor.ts
|
|
1069
1092
|
var CURSOR_GATE_EVENTS = ["beforeShellExecution", "beforeMCPExecution", "preToolUse"];
|
|
1070
1093
|
var CURSOR_GATE_SCRIPT = "pushary-gate.mjs";
|
|
@@ -1099,6 +1122,12 @@ var toolsCoveredByGateEntry = (coverage, matcher) => {
|
|
|
1099
1122
|
var toolMatches = (match, toolName) => match.kind === "named" ? match.tools.includes(toolName) : toolName.startsWith(match.prefix);
|
|
1100
1123
|
var cursorGateOwnsToolCall = (registration, toolName) => typeof toolName === "string" && registration.some((match) => toolMatches(match, toolName));
|
|
1101
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
|
+
|
|
1102
1131
|
// ../contracts/src/audit-chain.ts
|
|
1103
1132
|
var AUDIT_CHAIN_FORMAT = "pushary-audit-chain-v1";
|
|
1104
1133
|
var AUDIT_CHAIN_GENESIS_HASH = "0".repeat(64);
|
|
@@ -3556,6 +3585,9 @@ var degradedPayload = (subsystem, report) => ({
|
|
|
3556
3585
|
});
|
|
3557
3586
|
var degradedLine = (subsystem, report) => `${DEGRADED_PREFIX} ${JSON.stringify(degradedPayload(subsystem, report))}`;
|
|
3558
3587
|
|
|
3588
|
+
// ../contracts/src/pushary-hosts.ts
|
|
3589
|
+
var PUSHARY_HOSTS = ["pushary.com", "www.pushary.com"];
|
|
3590
|
+
|
|
3559
3591
|
// ../contracts/src/key-scope.ts
|
|
3560
3592
|
var KEY_SCOPES = ["full_access", "agent", "connector", "bound"];
|
|
3561
3593
|
var KEY_SCOPE = {
|
|
@@ -3676,6 +3708,7 @@ var SETUP_AGENT_CHOICES = [
|
|
|
3676
3708
|
"codex",
|
|
3677
3709
|
"gemini_cli",
|
|
3678
3710
|
"hermes",
|
|
3711
|
+
"openclaw",
|
|
3679
3712
|
"cursor",
|
|
3680
3713
|
"vscode",
|
|
3681
3714
|
"opencode",
|
|
@@ -8498,10 +8531,6 @@ var textNeedsAPersonFor = (toolNamesADatabase) => (field, text3) => textNamesAWe
|
|
|
8498
8531
|
var mcpToolInputOnlyReads = (toolName, toolInput) => !toolInputTooLargeToRead(toolInput) && !anyToolInputText(toolInput, UNNAMED_TOOL_INPUT_FIELD, 0, textNeedsAPersonFor(mcpToolNamesADatabase(toolName)));
|
|
8499
8532
|
var allowsSessionToolGrant = (toolName) => SESSION_TOOL_GRANT_TOOLS.has(toolName) || mcpToolOnlyReads(toolName);
|
|
8500
8533
|
var isSessionToolGrant = (policy) => Boolean(policy.sessionId) && allowsSessionToolGrant(policy.tool) && isAutoApprove(policy);
|
|
8501
|
-
var API_KEY_PREFIX_SHAPE = "pk_[a-f0-9]+";
|
|
8502
|
-
var API_KEY_PREFIX_PATTERN = new RegExp(`^${API_KEY_PREFIX_SHAPE}$`);
|
|
8503
|
-
var API_KEY_PATTERN = new RegExp(`^${API_KEY_PREFIX_SHAPE}\\.[a-f0-9]+$`);
|
|
8504
|
-
var isValidApiKey = (value) => API_KEY_PATTERN.test(value);
|
|
8505
8534
|
var ACTION_BODY_MAX = 4e3;
|
|
8506
8535
|
var DECISION_LINE_MAX = 500;
|
|
8507
8536
|
var ASK_QUESTION_MAX = 8e3;
|
|
@@ -8723,7 +8752,6 @@ var SETTLED_OUTCOME = {
|
|
|
8723
8752
|
deny: "deny"
|
|
8724
8753
|
};
|
|
8725
8754
|
var isSettledOutcome = (value) => typeof value === "string" && SETTLED_OUTCOMES.includes(value);
|
|
8726
|
-
var APPROVE_ANSWER = "yes";
|
|
8727
8755
|
var DENY_ANSWER = "no";
|
|
8728
8756
|
var DEFER_ANSWER = "defer";
|
|
8729
8757
|
var PHONE_DENIAL_PREFIX = "Denied from your phone: ";
|
|
@@ -10155,6 +10183,7 @@ export {
|
|
|
10155
10183
|
hookCompatibleProfile,
|
|
10156
10184
|
hookCompatibleProfileBySource,
|
|
10157
10185
|
compatibleTargetFiles,
|
|
10186
|
+
isDecisionStoppedReply,
|
|
10158
10187
|
CURSOR_GATE_EVENTS,
|
|
10159
10188
|
CURSOR_GATE_SCRIPT,
|
|
10160
10189
|
CURSOR_GATE_COVERAGE,
|
|
@@ -10167,6 +10196,9 @@ export {
|
|
|
10167
10196
|
PENDING_COMMAND_PREFIX,
|
|
10168
10197
|
pendingCommandInstruction,
|
|
10169
10198
|
degradedLine,
|
|
10199
|
+
API_KEY_PREFIX_PATTERN,
|
|
10200
|
+
isValidApiKey,
|
|
10201
|
+
PUSHARY_HOSTS,
|
|
10170
10202
|
KEY_SCOPE,
|
|
10171
10203
|
normalizeKeyScope,
|
|
10172
10204
|
hookWritePath,
|
|
@@ -10267,8 +10299,6 @@ export {
|
|
|
10267
10299
|
FILE_TARGET_TOOLS,
|
|
10268
10300
|
MCP_TOOL_PREFIX,
|
|
10269
10301
|
parseMcpToolName,
|
|
10270
|
-
API_KEY_PREFIX_PATTERN,
|
|
10271
|
-
isValidApiKey,
|
|
10272
10302
|
ACTION_BODY_MAX,
|
|
10273
10303
|
DECISION_LINE_MAX,
|
|
10274
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);
|