pushary 1.9.232 → 1.9.234
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 +12 -0
- package/README.md +29 -3
- package/data/cursor-plugin/README.md +30 -3
- package/data/openclaw-plugin/README.md +26 -0
- package/data/openclaw-plugin/package.json +1 -1
- package/data/vscode-plugin/README.md +30 -3
- package/dist/{api-OGSNXX5I.js → api-M67GCEPF.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -28
- package/dist/bin/pushary-bell.js +12 -12
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +26 -26
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +34 -34
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +35 -35
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +46 -46
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-display-hook.js +7 -5
- package/dist/bin/pushary-doctor.js +47 -47
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +26 -24
- package/dist/bin/pushary-logout.js +45 -32
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +22 -22
- package/dist/bin/pushary-opencode-hook.js +32 -32
- package/dist/bin/pushary-permission-denied-hook.js +34 -34
- package/dist/bin/pushary-permission-hook.js +35 -35
- package/dist/bin/pushary-post-hook.js +28 -28
- package/dist/bin/pushary-prompt-hook.js +27 -27
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +39 -39
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +79 -73
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +36 -36
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +16 -16
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +26 -25
- package/dist/bin/pushary-upgrade.js +48 -46
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-KHL6NLZN.js → chunk-256X3DP6.js} +2 -2
- package/dist/{chunk-2SHF7DI5.js → chunk-2BSSRM5U.js} +1 -1
- package/dist/{chunk-W6N2MU2G.js → chunk-2JM3H72Y.js} +1 -1
- package/dist/{chunk-HU5IFHHG.js → chunk-2X7O2QE3.js} +3 -3
- package/dist/{chunk-ETIAYTAI.js → chunk-3ABPJTSC.js} +1 -1
- package/dist/{chunk-CIT3XX7B.js → chunk-3FW2QYX2.js} +11 -11
- package/dist/{chunk-DOC3PQTD.js → chunk-3JIMXIO5.js} +1 -1
- package/dist/{chunk-GKWFLK7K.js → chunk-4JJDUPF5.js} +7 -7
- package/dist/{chunk-MHGXV2UI.js → chunk-5ZTBYRTQ.js} +1 -1
- package/dist/{chunk-MBYHALGD.js → chunk-6MKKNXW6.js} +1 -1
- package/dist/{chunk-546OR2Y5.js → chunk-6RMGY4KP.js} +4 -4
- package/dist/{chunk-WHMZT7EG.js → chunk-6XKHPCFW.js} +2 -2
- package/dist/{chunk-KABI55PA.js → chunk-746XV434.js} +3 -3
- package/dist/{chunk-E6XGP76X.js → chunk-7KIEBY2I.js} +1 -1
- package/dist/{chunk-HCKJEXJJ.js → chunk-7O766ACL.js} +1 -1
- package/dist/{chunk-UKBHJNN4.js → chunk-A3V2JCN3.js} +5 -5
- package/dist/{chunk-TJYY2ZNV.js → chunk-A4QB2DOJ.js} +2 -2
- package/dist/{chunk-RXLKOYN3.js → chunk-ADMVVNW2.js} +1 -1
- package/dist/{chunk-2R5HU7EL.js → chunk-AJCFOXEE.js} +9 -9
- package/dist/{chunk-JGEIHCPR.js → chunk-AS326WXH.js} +6 -6
- package/dist/{chunk-Q473YQNT.js → chunk-BBPSHOSK.js} +4 -4
- package/dist/{chunk-4PWUPWPY.js → chunk-BEEJ3QJP.js} +2 -2
- package/dist/{chunk-PKENJCUM.js → chunk-BM4WXLS6.js} +2 -2
- package/dist/{chunk-QHR2T5EW.js → chunk-BWGJWF7M.js} +10 -10
- package/dist/{chunk-OC5SCORI.js → chunk-DECR2ASU.js} +5 -5
- package/dist/{chunk-WNSBSSTB.js → chunk-DXB3WZQH.js} +1 -1
- package/dist/{chunk-JZZ62IV5.js → chunk-DXLNLE7C.js} +4 -4
- package/dist/{chunk-JGVXURHK.js → chunk-E43Q5IZQ.js} +12 -12
- package/dist/{chunk-KAO2GIZQ.js → chunk-E4XS75YY.js} +1 -1
- package/dist/{chunk-C4PGW3PU.js → chunk-E7QTBSY2.js} +2 -2
- package/dist/{chunk-WNZR4KFV.js → chunk-EA6DCQMW.js} +6 -6
- package/dist/{chunk-X275KIXO.js → chunk-EKCCDM3D.js} +5 -5
- package/dist/{chunk-G6ZSGVZL.js → chunk-FHMZFJJI.js} +3 -3
- package/dist/chunk-FQNL4HE7.js +122 -0
- package/dist/{chunk-HWQFHEHX.js → chunk-G6Y63AZ2.js} +2 -2
- package/dist/{chunk-2UUCN62T.js → chunk-GRWWQNKA.js} +3 -3
- package/dist/{chunk-TM5LRIUB.js → chunk-HEOH4JH3.js} +5 -5
- package/dist/{chunk-LYO34MJ4.js → chunk-HXYZSB4U.js} +3 -3
- package/dist/{chunk-KVLYD2EE.js → chunk-IAUCVHGV.js} +1 -1
- package/dist/{chunk-SOIG3VQU.js → chunk-IPVZPZBT.js} +5 -5
- package/dist/{chunk-URMAZGQN.js → chunk-IX2DIIR5.js} +2 -2
- package/dist/{chunk-32ZIGQNS.js → chunk-J3LMHXHV.js} +1 -1
- package/dist/{chunk-KJMIFUE2.js → chunk-J6CSPMZF.js} +4 -4
- package/dist/{chunk-GIF3SFYU.js → chunk-JCRH5R45.js} +4 -4
- package/dist/{chunk-R24OYTI5.js → chunk-JD67C7KL.js} +3 -111
- package/dist/{chunk-TAW3Z5NA.js → chunk-JMHS55ZS.js} +3 -3
- package/dist/{chunk-5JB4JJF5.js → chunk-JO7YECNL.js} +1 -1
- package/dist/{chunk-UDPXFSUQ.js → chunk-KAHKKD4R.js} +2 -2
- package/dist/{chunk-X5M3LLDZ.js → chunk-KKVTBTX5.js} +5 -5
- package/dist/{chunk-XT7RG6WO.js → chunk-KNM3GFV5.js} +7 -7
- package/dist/{chunk-4UKOA6F5.js → chunk-LT2X6GMR.js} +3 -3
- package/dist/{chunk-W7HK5KMH.js → chunk-MCJGCJUQ.js} +1 -1
- package/dist/{chunk-5F2FKQQ6.js → chunk-MNVPOPER.js} +2 -2
- package/dist/{chunk-RXXHQXMO.js → chunk-N5FLIE3B.js} +1 -1
- package/dist/{chunk-ML6AWSKK.js → chunk-NDPIHRLT.js} +5 -5
- package/dist/{chunk-J4X5T5DO.js → chunk-NHKJDBKZ.js} +1 -1
- package/dist/{chunk-X6GHL4KM.js → chunk-OI5PIRYC.js} +16 -16
- package/dist/{chunk-AAP2HENZ.js → chunk-OVM54QWV.js} +1 -1
- package/dist/{chunk-KBZJUOJJ.js → chunk-PIEQTKMS.js} +6 -6
- package/dist/{chunk-V6YWRP4V.js → chunk-PIEQVLWA.js} +6 -6
- package/dist/{chunk-A54UFNGF.js → chunk-Q3LFQVDS.js} +1 -1
- package/dist/{chunk-J2GQIBMK.js → chunk-QU6OSEUV.js} +4 -2
- package/dist/{chunk-FG2EF7PP.js → chunk-R3VB6IWK.js} +4 -4
- package/dist/{chunk-GA4IZMXT.js → chunk-RGJ6YCGT.js} +3 -3
- package/dist/{chunk-LFJOCVHG.js → chunk-T6KURDWS.js} +2 -2
- package/dist/{chunk-22N3UUS4.js → chunk-TZDZ3QGG.js} +3 -3
- package/dist/{chunk-XO64RMVL.js → chunk-U6HLDWKF.js} +4 -4
- package/dist/{chunk-KGMSC4Y4.js → chunk-V7DKNNN3.js} +5 -5
- package/dist/{chunk-3ZDGQGBL.js → chunk-VNEKDZRS.js} +8 -8
- package/dist/{chunk-FFMM7VZH.js → chunk-VTCM3LRD.js} +3 -3
- package/dist/{chunk-AX6S5V22.js → chunk-VWELQENE.js} +1 -1
- package/dist/{chunk-EVGZE3TK.js → chunk-WC4WLJ6L.js} +1 -1
- package/dist/{chunk-ARBMPOYR.js → chunk-WMELBTKZ.js} +3 -3
- package/dist/{chunk-3DME4GIN.js → chunk-WOH6BCX7.js} +7 -7
- package/dist/{chunk-FZMLD3MF.js → chunk-WXSWR2FG.js} +4 -4
- package/dist/{chunk-LW4AG6EP.js → chunk-XW7UUCSM.js} +6 -6
- package/dist/{chunk-O2MMXX6P.js → chunk-YUBMSPWE.js} +21 -5
- package/dist/{chunk-X2BMTMY2.js → chunk-Z6VYPLVI.js} +5 -5
- package/dist/{chunk-WNWN4U2V.js → chunk-ZATM23SV.js} +1 -1
- package/dist/{chunk-SHAZ6DT6.js → chunk-ZGQCZKNY.js} +2 -2
- package/dist/{chunk-C4SPXQAE.js → chunk-ZHPK2JGH.js} +2 -2
- package/dist/{codex-app-cards-switch-MBJFUQBT.js → codex-app-cards-switch-FCF22YK6.js} +11 -11
- package/dist/{codex-card-routing-LAM2ADY2.js → codex-card-routing-33FTWY2U.js} +2 -2
- package/dist/{codex-desktop-launch-LB4RWOSI.js → codex-desktop-launch-CMMBCQDF.js} +3 -3
- package/dist/{codex-session-launch-PRWQGIGE.js → codex-session-launch-VW4737L5.js} +20 -20
- package/dist/{config-BBTWVECF.js → config-GPO476YL.js} +3 -3
- package/dist/{global-upgrade-C6HNF5OW.js → global-upgrade-6DOQCXZJ.js} +9 -9
- package/dist/{identity-7PUBPQNU.js → identity-4OD6GQPB.js} +4 -4
- package/dist/{live-capabilities-ZAQZQQR4.js → live-capabilities-X6O5HJCK.js} +4 -4
- package/dist/{paths-ZALQKETP.js → paths-LYVFVRQM.js} +3 -3
- package/dist/{reapply-JWQ5H3RL.js → reapply-GKXG74LO.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-UWYE4CPX.js → upgrade-lock-LZIWY4Q6.js} +4 -4
- package/dist/{usage-BR4DQNAS.js → usage-RN5ED6TT.js} +3 -3
- package/package.json +1 -1
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KKVTBTX5.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Q3LFQVDS.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-746XV434.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZGQCZKNY.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-A4QB2DOJ.js";
|
|
26
26
|
import {
|
|
27
27
|
ASK_AGENT_NAME_MAX,
|
|
28
28
|
CLIENT_REPORT_PATH,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
isRecord,
|
|
39
39
|
truncateLine,
|
|
40
40
|
waitEndAnswered
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-QU6OSEUV.js";
|
|
42
42
|
|
|
43
43
|
// src/api.ts
|
|
44
44
|
import { randomUUID } from "crypto";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BBPSHOSK.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-E7QTBSY2.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LT2X6GMR.js";
|
|
15
15
|
import {
|
|
16
16
|
findExportedKeyLines,
|
|
17
17
|
isAdoptedMacAppKey,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
readConfigFileKey,
|
|
22
22
|
readKeySource,
|
|
23
23
|
readMacAppKeyPrefix
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2X7O2QE3.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QU6OSEUV.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WC4WLJ6L.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
6
|
} from "./chunk-TCE3J44Z.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolvePackageVersionFromBinary,
|
|
13
13
|
resolvePathBinary,
|
|
14
14
|
resolvePathBinaryAsync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-R3VB6IWK.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENTS,
|
|
18
18
|
CLAUDE_BRIDGE_CAPABILITY,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
OPENCODE_BRIDGE_CAPABILITY,
|
|
26
26
|
SPAWN_CAPABILITY,
|
|
27
27
|
sessionProvidersAdvertisedBy
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-QU6OSEUV.js";
|
|
29
29
|
|
|
30
30
|
// src/live-capabilities.ts
|
|
31
31
|
import { execFileSync } from "child_process";
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PLAN_CONFIGS,
|
|
3
|
+
PLAN_TYPES
|
|
4
|
+
} from "./chunk-WHB622LP.js";
|
|
5
|
+
import {
|
|
6
|
+
keyPrefix
|
|
7
|
+
} from "./chunk-2X7O2QE3.js";
|
|
8
|
+
import {
|
|
9
|
+
keyPrefixToShow
|
|
10
|
+
} from "./chunk-A4QB2DOJ.js";
|
|
11
|
+
import {
|
|
12
|
+
NPX_LATEST_COMMAND
|
|
13
|
+
} from "./chunk-HXYZSB4U.js";
|
|
14
|
+
import {
|
|
15
|
+
isValidApiKey
|
|
16
|
+
} from "./chunk-QU6OSEUV.js";
|
|
17
|
+
|
|
18
|
+
// src/setup/key-account.ts
|
|
19
|
+
var isKeyHeldByMacApp = (key, holder) => holder.macAppInstalled && holder.macAppKey === key;
|
|
20
|
+
var agentConfigKeySource = (agentConfigKey, holder) => isKeyHeldByMacApp(agentConfigKey, holder) ? "mac-app" : "agent-settings";
|
|
21
|
+
var replacedShellKeyChoice = (facts) => {
|
|
22
|
+
if (!facts.shellKeyWasReplaced || !facts.shellKeyUsable || !facts.savedKeyFound) return "shell_key_not_replaced";
|
|
23
|
+
if (!facts.recordHonoured) return "keep_saved_key";
|
|
24
|
+
return facts.canAsk ? "ask_to_keep_saved_key" : "keep_saved_key_and_say_how_to_switch";
|
|
25
|
+
};
|
|
26
|
+
var keepsTheSavedKeyOverTheReplacedShellKey = (choice, reused, reuseAccepted) => choice !== "shell_key_not_replaced" && reuseAccepted && reused?.source === "stored";
|
|
27
|
+
var pickReusableKey = (candidates) => {
|
|
28
|
+
if (candidates.storedKey !== null && candidates.storedCheck !== null) {
|
|
29
|
+
return { source: "stored", key: candidates.storedKey, check: candidates.storedCheck };
|
|
30
|
+
}
|
|
31
|
+
if (candidates.envKey && candidates.envCheck !== null) {
|
|
32
|
+
return { source: "environment", key: candidates.envKey, check: candidates.envCheck };
|
|
33
|
+
}
|
|
34
|
+
if (candidates.agentConfigKey !== null && candidates.agentConfigCheck !== null) {
|
|
35
|
+
return { source: agentConfigKeySource(candidates.agentConfigKey, candidates), key: candidates.agentConfigKey, check: candidates.agentConfigCheck };
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
};
|
|
39
|
+
var REUSED_KEY_SOURCE_LABELS = {
|
|
40
|
+
stored: "the key saved on this machine",
|
|
41
|
+
environment: "the key in PUSHARY_API_KEY",
|
|
42
|
+
"mac-app": "the key Pushary for Mac is signed in with",
|
|
43
|
+
"agent-settings": "a key found in your agent settings"
|
|
44
|
+
};
|
|
45
|
+
var maskKey = (key) => `${key.slice(0, 8)}...${key.slice(-4)}`;
|
|
46
|
+
var describeFoundKey = (reusable) => `Found ${REUSED_KEY_SOURCE_LABELS[reusable.source]}: ${maskKey(reusable.key)}`;
|
|
47
|
+
var describeUsedKey = (reusable) => `Using ${REUSED_KEY_SOURCE_LABELS[reusable.source]}: ${maskKey(reusable.key)}`;
|
|
48
|
+
var someoneIsAtTheTerminal = (context) => context.stdoutIsTty && !context.nonInteractive;
|
|
49
|
+
var canAskAtTheTerminal = (context) => someoneIsAtTheTerminal(context) && !context.dryRun;
|
|
50
|
+
var keyReuseConfirmation = (context) => canAskAtTheTerminal(context) && context.canPairWithApp ? "ask" : "announce";
|
|
51
|
+
var accountHandleOf = (identity) => identity.siteSlug ? `@${identity.siteSlug}` : identity.siteName || null;
|
|
52
|
+
var keyAccountHandle = (check) => check.kind === "ok" ? accountHandleOf(check.identity) : null;
|
|
53
|
+
var continueAsQuestion = (account) => account ? `Continue as ${account}?` : "Continue with this key?";
|
|
54
|
+
var keepSavedKeyQuestion = (savedAccount, shellAccount) => `${savedAccount ? `Continue as ${savedAccount}?` : "Continue with the saved key?"} This terminal still exports the key for ${shellAccount ?? "the workspace this computer left"}.`;
|
|
55
|
+
var switchBackToTheShellKeyLine = (shellAccount) => `Kept the saved key. To move this computer to ${shellAccount ?? "the key this terminal exports"} on purpose, run ${NPX_LATEST_COMMAND} login --force and choose it.`;
|
|
56
|
+
var WRONG_ACCOUNT_HINT = `Wrong account? Run ${NPX_LATEST_COMMAND} setup --connect app`;
|
|
57
|
+
var wrongAccountHintPlacement = (context) => {
|
|
58
|
+
if (!context.canPairWithApp) return "none";
|
|
59
|
+
if (context.planInactive && !context.dryRun) return "with-inactive-plan";
|
|
60
|
+
return context.reusedWithoutAsking ? "after-key-check" : "none";
|
|
61
|
+
};
|
|
62
|
+
var planNameOf = (plan) => {
|
|
63
|
+
const known = PLAN_TYPES.find((type) => type === plan);
|
|
64
|
+
return known ? PLAN_CONFIGS[known].name : null;
|
|
65
|
+
};
|
|
66
|
+
var withPlanName = (account, plan) => {
|
|
67
|
+
const planName = planNameOf(plan);
|
|
68
|
+
return planName ? `${account} (${planName} plan)` : account;
|
|
69
|
+
};
|
|
70
|
+
var describeSignedIn = (identity) => `Signed in to ${withPlanName(accountHandleOf(identity) ?? "your account", identity.plan)}`;
|
|
71
|
+
var describeKeyAccount = (check) => {
|
|
72
|
+
if (check.kind !== "ok") return null;
|
|
73
|
+
const account = accountHandleOf(check.identity);
|
|
74
|
+
return account ? withPlanName(account, check.identity.plan) : null;
|
|
75
|
+
};
|
|
76
|
+
var shownKeyPrefix = (key) => isValidApiKey(key) ? ` (${keyPrefix(key)})` : "";
|
|
77
|
+
var shellKeyLine = (shadow) => {
|
|
78
|
+
const held = `This terminal still has the old key in PUSHARY_API_KEY${shownKeyPrefix(shadow.shellKey)}`;
|
|
79
|
+
return shadow.shellAccount ? `${held}, for ${shadow.shellAccount}.` : `${held}.`;
|
|
80
|
+
};
|
|
81
|
+
var savedKeyLine = (shadow) => {
|
|
82
|
+
if (shadow.savedAccount === null) return shadow.newTerminalsUseSavedKey ? "New terminals use the saved key." : null;
|
|
83
|
+
const saved = `The saved key is for ${shadow.savedAccount}.`;
|
|
84
|
+
return shadow.newTerminalsUseSavedKey ? `${saved} New terminals use it.` : saved;
|
|
85
|
+
};
|
|
86
|
+
var leaveShellKeyLine = (shadow) => shadow.newTerminalsUseSavedKey ? "Open a new terminal, or run unset PUSHARY_API_KEY, before you start an agent here." : "If new terminals still get the old key, change PUSHARY_API_KEY where it is set, then open a new terminal before you start an agent.";
|
|
87
|
+
var SHELL_VALUE_IGNORED = "PUSHARY_API_KEY in this terminal is not a Pushary key, so Pushary ignores it.";
|
|
88
|
+
var UNSET_IGNORED_SHELL_VALUE_STEP = "Run unset PUSHARY_API_KEY here. If new terminals still get that value, remove it where your shell profile sets it.";
|
|
89
|
+
var SHELL_VALUE_IGNORED_FOR_SAVED_KEY = "PUSHARY_API_KEY in this terminal is not a Pushary key, so Pushary ignores it and uses the saved key.";
|
|
90
|
+
var IGNORED_SHELL_VALUE_LINES = [SHELL_VALUE_IGNORED_FOR_SAVED_KEY, UNSET_IGNORED_SHELL_VALUE_STEP];
|
|
91
|
+
var isIgnoredShellValue = (shellValue) => !isValidApiKey(shellValue);
|
|
92
|
+
var describeShadowingShellKey = (shadow) => [shellKeyLine(shadow), savedKeyLine(shadow), leaveShellKeyLine(shadow)].filter((line) => line !== null);
|
|
93
|
+
var describeShellKeyShadow = (shadow) => isIgnoredShellValue(shadow.shellKey) ? IGNORED_SHELL_VALUE_LINES : describeShadowingShellKey(shadow);
|
|
94
|
+
var isPreviousKeyLeftActive = (previousKey, newKey) => previousKey !== null && previousKey !== newKey && isValidApiKey(previousKey);
|
|
95
|
+
var describePreviousKeyLeftActive = (previousKey, newKey) => isPreviousKeyLeftActive(previousKey, newKey) ? `The key this machine used before (${keyPrefixToShow(previousKey)}) is still active.` : null;
|
|
96
|
+
var describeLockedKeyAccount = (key, account) => account ? `${account} has no active plan.` : `The key ${maskKey(key)} is on an account with no active plan.`;
|
|
97
|
+
|
|
98
|
+
export {
|
|
99
|
+
isKeyHeldByMacApp,
|
|
100
|
+
replacedShellKeyChoice,
|
|
101
|
+
keepsTheSavedKeyOverTheReplacedShellKey,
|
|
102
|
+
pickReusableKey,
|
|
103
|
+
describeFoundKey,
|
|
104
|
+
describeUsedKey,
|
|
105
|
+
someoneIsAtTheTerminal,
|
|
106
|
+
canAskAtTheTerminal,
|
|
107
|
+
keyReuseConfirmation,
|
|
108
|
+
keyAccountHandle,
|
|
109
|
+
continueAsQuestion,
|
|
110
|
+
keepSavedKeyQuestion,
|
|
111
|
+
switchBackToTheShellKeyLine,
|
|
112
|
+
WRONG_ACCOUNT_HINT,
|
|
113
|
+
wrongAccountHintPlacement,
|
|
114
|
+
describeSignedIn,
|
|
115
|
+
describeKeyAccount,
|
|
116
|
+
SHELL_VALUE_IGNORED,
|
|
117
|
+
UNSET_IGNORED_SHELL_VALUE_STEP,
|
|
118
|
+
isIgnoredShellValue,
|
|
119
|
+
describeShellKeyShadow,
|
|
120
|
+
describePreviousKeyLeftActive,
|
|
121
|
+
describeLockedKeyAccount
|
|
122
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZGQCZKNY.js";
|
|
4
4
|
import {
|
|
5
5
|
readRegularJsonFile,
|
|
6
6
|
writeFileAtomic
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
serializeDeclinedAgents,
|
|
14
14
|
withDeclinedAgent,
|
|
15
15
|
withoutDeclinedAgent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QU6OSEUV.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
NpmMissingError,
|
|
4
4
|
NpmPermissionError,
|
|
5
5
|
NpmReleaseAgeError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-R3VB6IWK.js";
|
|
7
7
|
import {
|
|
8
8
|
writeFileAtomic
|
|
9
9
|
} from "./chunk-PM2NRK6Y.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HXYZSB4U.js";
|
|
13
13
|
import {
|
|
14
14
|
readSetupAgentFailures
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QU6OSEUV.js";
|
|
16
16
|
|
|
17
17
|
// src/setup/config-write.ts
|
|
18
18
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DXLNLE7C.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3FW2QYX2.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NHKJDBKZ.js";
|
|
11
11
|
import {
|
|
12
12
|
CLAUDE_HOOK_EVENTS,
|
|
13
13
|
PUSHARY_MCP_URL,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
isPusharyHook,
|
|
20
20
|
registerHookEntry,
|
|
21
21
|
removeClaudeMcpServers
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZGQCZKNY.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_ENFORCEMENT,
|
|
25
25
|
HOOK_COMPATIBLE_PROFILES,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
pusharyMissingReason,
|
|
33
33
|
refusalOutput,
|
|
34
34
|
withHookHoldBudget
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-QU6OSEUV.js";
|
|
36
36
|
|
|
37
37
|
// src/config-document.ts
|
|
38
38
|
import { parse, stringify } from "smol-toml";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
PUSHARY_CLI_LATEST_FOR_POWERSHELL,
|
|
9
9
|
SETUP_AGENT_CHOICES,
|
|
10
10
|
isApprovalMode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QU6OSEUV.js";
|
|
12
12
|
|
|
13
13
|
// src/cli/mode-request.ts
|
|
14
14
|
var parseDuration = (value) => {
|
|
@@ -111,7 +111,7 @@ var COMMAND_LIST = [
|
|
|
111
111
|
name: "pair",
|
|
112
112
|
module: "pushary-connect",
|
|
113
113
|
aliases: ["connect"],
|
|
114
|
-
summary: "Pair a phone without re-running setup: the Pushary app, or --browser for
|
|
114
|
+
summary: "Pair a phone without re-running setup: the Pushary app, or --browser for push notifications in the browser (also: connect)"
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
name: "bell",
|
|
@@ -177,7 +177,7 @@ var COMMAND_OPTIONS = {
|
|
|
177
177
|
],
|
|
178
178
|
pair: [
|
|
179
179
|
["--app", "Pair the Pushary app (default)"],
|
|
180
|
-
["--browser", "Use
|
|
180
|
+
["--browser", "Use push notifications in the browser instead of the app"]
|
|
181
181
|
],
|
|
182
182
|
cowork: [
|
|
183
183
|
["--open", "Also open the setup guide in your browser"],
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JMHS55ZS.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BWGJWF7M.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HEOH4JH3.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EA6DCQMW.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-QU6OSEUV.js";
|
|
20
20
|
|
|
21
21
|
// src/tool-hook-input.ts
|
|
22
22
|
var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode", "cursor_version"];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZGQCZKNY.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe
|
|
6
6
|
} from "./chunk-PM2NRK6Y.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QU6OSEUV.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
claimThrottle,
|
|
5
5
|
releaseThrottle,
|
|
6
6
|
reportEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3FW2QYX2.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveToolTarget,
|
|
10
10
|
permissionDeniedAction
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NHKJDBKZ.js";
|
|
12
12
|
import {
|
|
13
13
|
projectNameFor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IAUCVHGV.js";
|
|
15
15
|
import {
|
|
16
16
|
PERMISSION_ALLOWED_EVENT,
|
|
17
17
|
PERMISSION_DENIED_EVENT,
|
|
18
18
|
machineApprovalFor,
|
|
19
19
|
machineDecisionFor,
|
|
20
20
|
wireVerdictFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QU6OSEUV.js";
|
|
22
22
|
|
|
23
23
|
// src/machine-decision-audit.ts
|
|
24
24
|
var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HEOH4JH3.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DXLNLE7C.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZGQCZKNY.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QU6OSEUV.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -8,22 +8,8 @@ import {
|
|
|
8
8
|
publicKeyFingerprint
|
|
9
9
|
} from "./chunk-3EGEA4KH.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./chunk-WHB622LP.js";
|
|
14
|
-
import {
|
|
15
|
-
keyPrefix
|
|
16
|
-
} from "./chunk-HU5IFHHG.js";
|
|
17
|
-
import {
|
|
18
|
-
getBaseUrl,
|
|
19
|
-
keyPrefixToShow
|
|
20
|
-
} from "./chunk-TJYY2ZNV.js";
|
|
21
|
-
import {
|
|
22
|
-
NPX_LATEST_COMMAND
|
|
23
|
-
} from "./chunk-LYO34MJ4.js";
|
|
24
|
-
import {
|
|
25
|
-
isValidApiKey
|
|
26
|
-
} from "./chunk-J2GQIBMK.js";
|
|
11
|
+
getBaseUrl
|
|
12
|
+
} from "./chunk-A4QB2DOJ.js";
|
|
27
13
|
|
|
28
14
|
// src/cli/login-ui.ts
|
|
29
15
|
import { hostname } from "os";
|
|
@@ -236,100 +222,6 @@ var runBrowserLogin = async (ui, options, deps = {}) => {
|
|
|
236
222
|
}
|
|
237
223
|
};
|
|
238
224
|
|
|
239
|
-
// src/setup/key-account.ts
|
|
240
|
-
var isKeyHeldByMacApp = (key, holder) => holder.macAppInstalled && holder.macAppKey === key;
|
|
241
|
-
var agentConfigKeySource = (agentConfigKey, holder) => isKeyHeldByMacApp(agentConfigKey, holder) ? "mac-app" : "agent-settings";
|
|
242
|
-
var replacedShellKeyChoice = (facts) => {
|
|
243
|
-
if (!facts.shellKeyWasReplaced || !facts.shellKeyUsable || !facts.savedKeyFound) return "shell_key_not_replaced";
|
|
244
|
-
if (!facts.recordHonoured) return "keep_saved_key";
|
|
245
|
-
return facts.canAsk ? "ask_to_keep_saved_key" : "keep_saved_key_and_say_how_to_switch";
|
|
246
|
-
};
|
|
247
|
-
var keepsTheSavedKeyOverTheReplacedShellKey = (choice, reused, reuseAccepted) => choice !== "shell_key_not_replaced" && reuseAccepted && reused?.source === "stored";
|
|
248
|
-
var pickReusableKey = (candidates) => {
|
|
249
|
-
if (candidates.storedKey !== null && candidates.storedCheck !== null) {
|
|
250
|
-
return { source: "stored", key: candidates.storedKey, check: candidates.storedCheck };
|
|
251
|
-
}
|
|
252
|
-
if (candidates.envKey && candidates.envCheck !== null) {
|
|
253
|
-
return { source: "environment", key: candidates.envKey, check: candidates.envCheck };
|
|
254
|
-
}
|
|
255
|
-
if (candidates.agentConfigKey !== null && candidates.agentConfigCheck !== null) {
|
|
256
|
-
return { source: agentConfigKeySource(candidates.agentConfigKey, candidates), key: candidates.agentConfigKey, check: candidates.agentConfigCheck };
|
|
257
|
-
}
|
|
258
|
-
return null;
|
|
259
|
-
};
|
|
260
|
-
var REUSED_KEY_SOURCE_LABELS = {
|
|
261
|
-
stored: "the key saved on this machine",
|
|
262
|
-
environment: "the key in PUSHARY_API_KEY",
|
|
263
|
-
"mac-app": "the key Pushary for Mac is signed in with",
|
|
264
|
-
"agent-settings": "a key found in your agent settings"
|
|
265
|
-
};
|
|
266
|
-
var maskKey = (key) => `${key.slice(0, 8)}...${key.slice(-4)}`;
|
|
267
|
-
var describeFoundKey = (reusable) => `Found ${REUSED_KEY_SOURCE_LABELS[reusable.source]}: ${maskKey(reusable.key)}`;
|
|
268
|
-
var describeUsedKey = (reusable) => `Using ${REUSED_KEY_SOURCE_LABELS[reusable.source]}: ${maskKey(reusable.key)}`;
|
|
269
|
-
var someoneIsAtTheTerminal = (context) => context.stdoutIsTty && !context.nonInteractive;
|
|
270
|
-
var canAskAtTheTerminal = (context) => someoneIsAtTheTerminal(context) && !context.dryRun;
|
|
271
|
-
var keyReuseConfirmation = (context) => canAskAtTheTerminal(context) && context.canPairWithApp ? "ask" : "announce";
|
|
272
|
-
var accountHandleOf = (identity) => identity.siteSlug ? `@${identity.siteSlug}` : identity.siteName || null;
|
|
273
|
-
var keyAccountHandle = (check) => check.kind === "ok" ? accountHandleOf(check.identity) : null;
|
|
274
|
-
var continueAsQuestion = (account) => account ? `Continue as ${account}?` : "Continue with this key?";
|
|
275
|
-
var keepSavedKeyQuestion = (savedAccount, shellAccount) => `${savedAccount ? `Continue as ${savedAccount}?` : "Continue with the saved key?"} This terminal still exports the key for ${shellAccount ?? "the workspace this computer left"}.`;
|
|
276
|
-
var switchBackToTheShellKeyLine = (shellAccount) => `Kept the saved key. To move this computer to ${shellAccount ?? "the key this terminal exports"} on purpose, run ${NPX_LATEST_COMMAND} login --force and choose it.`;
|
|
277
|
-
var WRONG_ACCOUNT_HINT = `Wrong account? Run ${NPX_LATEST_COMMAND} setup --connect app`;
|
|
278
|
-
var wrongAccountHintPlacement = (context) => {
|
|
279
|
-
if (!context.canPairWithApp) return "none";
|
|
280
|
-
if (context.planInactive && !context.dryRun) return "with-inactive-plan";
|
|
281
|
-
return context.reusedWithoutAsking ? "after-key-check" : "none";
|
|
282
|
-
};
|
|
283
|
-
var planNameOf = (plan) => {
|
|
284
|
-
const known = PLAN_TYPES.find((type) => type === plan);
|
|
285
|
-
return known ? PLAN_CONFIGS[known].name : null;
|
|
286
|
-
};
|
|
287
|
-
var withPlanName = (account, plan) => {
|
|
288
|
-
const planName = planNameOf(plan);
|
|
289
|
-
return planName ? `${account} (${planName} plan)` : account;
|
|
290
|
-
};
|
|
291
|
-
var describeSignedIn = (identity) => `Signed in to ${withPlanName(accountHandleOf(identity) ?? "your account", identity.plan)}`;
|
|
292
|
-
var describeKeyAccount = (check) => {
|
|
293
|
-
if (check.kind !== "ok") return null;
|
|
294
|
-
const account = accountHandleOf(check.identity);
|
|
295
|
-
return account ? withPlanName(account, check.identity.plan) : null;
|
|
296
|
-
};
|
|
297
|
-
var shownKeyPrefix = (key) => isValidApiKey(key) ? ` (${keyPrefix(key)})` : "";
|
|
298
|
-
var shellKeyLine = (shadow) => {
|
|
299
|
-
const held = `This terminal still has the old key in PUSHARY_API_KEY${shownKeyPrefix(shadow.shellKey)}`;
|
|
300
|
-
return shadow.shellAccount ? `${held}, for ${shadow.shellAccount}.` : `${held}.`;
|
|
301
|
-
};
|
|
302
|
-
var savedKeyLine = (shadow) => {
|
|
303
|
-
if (shadow.savedAccount === null) return shadow.newTerminalsUseSavedKey ? "New terminals use the saved key." : null;
|
|
304
|
-
const saved = `The saved key is for ${shadow.savedAccount}.`;
|
|
305
|
-
return shadow.newTerminalsUseSavedKey ? `${saved} New terminals use it.` : saved;
|
|
306
|
-
};
|
|
307
|
-
var leaveShellKeyLine = (shadow) => shadow.newTerminalsUseSavedKey ? "Open a new terminal, or run unset PUSHARY_API_KEY, before you start an agent here." : "If new terminals still get the old key, change PUSHARY_API_KEY where it is set, then open a new terminal before you start an agent.";
|
|
308
|
-
var describeShellKeyShadow = (shadow) => [shellKeyLine(shadow), savedKeyLine(shadow), leaveShellKeyLine(shadow)].filter((line) => line !== null);
|
|
309
|
-
var isPreviousKeyLeftActive = (previousKey, newKey) => previousKey !== null && previousKey !== newKey && isValidApiKey(previousKey);
|
|
310
|
-
var describePreviousKeyLeftActive = (previousKey, newKey) => isPreviousKeyLeftActive(previousKey, newKey) ? `The key this machine used before (${keyPrefixToShow(previousKey)}) is still active.` : null;
|
|
311
|
-
var describeLockedKeyAccount = (key, account) => account ? `${account} has no active plan.` : `The key ${maskKey(key)} is on an account with no active plan.`;
|
|
312
|
-
|
|
313
225
|
export {
|
|
314
|
-
runBrowserLogin
|
|
315
|
-
isKeyHeldByMacApp,
|
|
316
|
-
replacedShellKeyChoice,
|
|
317
|
-
keepsTheSavedKeyOverTheReplacedShellKey,
|
|
318
|
-
pickReusableKey,
|
|
319
|
-
describeFoundKey,
|
|
320
|
-
describeUsedKey,
|
|
321
|
-
someoneIsAtTheTerminal,
|
|
322
|
-
canAskAtTheTerminal,
|
|
323
|
-
keyReuseConfirmation,
|
|
324
|
-
keyAccountHandle,
|
|
325
|
-
continueAsQuestion,
|
|
326
|
-
keepSavedKeyQuestion,
|
|
327
|
-
switchBackToTheShellKeyLine,
|
|
328
|
-
WRONG_ACCOUNT_HINT,
|
|
329
|
-
wrongAccountHintPlacement,
|
|
330
|
-
describeSignedIn,
|
|
331
|
-
describeKeyAccount,
|
|
332
|
-
describeShellKeyShadow,
|
|
333
|
-
describePreviousKeyLeftActive,
|
|
334
|
-
describeLockedKeyAccount
|
|
226
|
+
runBrowserLogin
|
|
335
227
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyHookExecutable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DXLNLE7C.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-ZGQCZKNY.js";
|
|
11
11
|
import {
|
|
12
12
|
atLeast,
|
|
13
13
|
parseVersion
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
isCursorHookPayload,
|
|
22
22
|
isRecord,
|
|
23
23
|
toolsCoveredByGateEntry
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QU6OSEUV.js";
|
|
25
25
|
|
|
26
26
|
// src/cursor-gate-registration.ts
|
|
27
27
|
import { dirname, isAbsolute, join, resolve } from "path";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
verifyAnchoredRecipients,
|
|
12
12
|
wrapSessionKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VTCM3LRD.js";
|
|
14
14
|
|
|
15
15
|
// src/live-session.ts
|
|
16
16
|
var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZGQCZKNY.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-CXQWDQCJ.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QU6OSEUV.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAsCredential
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Q3LFQVDS.js";
|
|
4
4
|
import {
|
|
5
5
|
keyCheckFromResponse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LT2X6GMR.js";
|
|
7
7
|
import {
|
|
8
8
|
installNetworkDefaults
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-746XV434.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-A4QB2DOJ.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isToolErrorResult,
|
|
16
16
|
toolFailureCodeOfResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QU6OSEUV.js";
|
|
18
18
|
|
|
19
19
|
// src/retry.ts
|
|
20
20
|
var isRetryable = (err) => {
|