pushary 1.9.267 → 1.9.269
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 +13 -0
- package/dist/{api-L2Z47RNK.js → api-ILQDGJL4.js} +12 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -29
- package/dist/bin/pushary-bell.js +11 -12
- package/dist/bin/pushary-calls.js +14 -15
- package/dist/bin/pushary-claude.js +25 -26
- package/dist/bin/pushary-clean.js +39 -40
- package/dist/bin/pushary-codex-bridge.js +22 -23
- package/dist/bin/pushary-codex-hook.js +34 -35
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +35 -36
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +46 -47
- package/dist/bin/pushary-disconnect.js +30 -31
- package/dist/bin/pushary-display-hook.js +20 -0
- package/dist/bin/pushary-doctor.js +50 -51
- package/dist/bin/pushary-elicitation-hook.js +27 -28
- package/dist/bin/pushary-gemini-bridge.js +17 -18
- package/dist/bin/pushary-gemini-hook.js +31 -32
- package/dist/bin/pushary-hook.js +35 -36
- package/dist/bin/pushary-login.js +101 -25
- package/dist/bin/pushary-logout.js +31 -32
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +15 -16
- package/dist/bin/pushary-notification-hook.js +27 -28
- package/dist/bin/pushary-opencode-bridge.js +21 -22
- package/dist/bin/pushary-opencode-hook.js +32 -33
- package/dist/bin/pushary-permission-denied-hook.js +34 -35
- package/dist/bin/pushary-permission-hook.js +35 -36
- package/dist/bin/pushary-post-hook.js +28 -29
- package/dist/bin/pushary-prompt-hook.js +27 -28
- package/dist/bin/pushary-session-end-hook.js +27 -28
- package/dist/bin/pushary-session-start-hook.js +39 -40
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +101 -77
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +36 -37
- package/dist/bin/pushary-stop-hook.js +27 -28
- package/dist/bin/pushary-stopfailure-hook.js +27 -28
- package/dist/bin/pushary-suggestions.js +15 -16
- package/dist/bin/pushary-transcript-register.js +16 -17
- package/dist/bin/pushary-transcripts.js +25 -26
- package/dist/bin/pushary-upgrade.js +47 -48
- package/dist/bin/pushary-wait.js +16 -17
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-XHKGTKM6.js → chunk-3D6EDVCE.js} +86 -79
- package/dist/{chunk-QW7LM6BG.js → chunk-3K2HA65U.js} +4 -4
- package/dist/{chunk-OOSDN4AF.js → chunk-3QOTNFNM.js} +3 -3
- package/dist/{chunk-NDOHMHU7.js → chunk-3YU4M3H6.js} +10 -10
- package/dist/{chunk-YFJ4ANFO.js → chunk-43EYM5PY.js} +6 -6
- package/dist/{chunk-WAVZTVYL.js → chunk-4JO5JG2P.js} +5 -5
- package/dist/{chunk-WH5M67RN.js → chunk-4NBFRTVM.js} +6 -6
- package/dist/{chunk-UX7YU7EM.js → chunk-4R2BZ7ZV.js} +1 -1
- package/dist/{chunk-XUN2NSYF.js → chunk-4VUQPSEP.js} +1 -1
- package/dist/{chunk-DW7YF5GB.js → chunk-5EQYWIQ2.js} +4 -4
- package/dist/{chunk-KPQ7QKS4.js → chunk-66EWTFIK.js} +1 -1
- package/dist/{chunk-V6673KO7.js → chunk-6LRUCUBE.js} +5 -5
- package/dist/{chunk-TXPDNOKT.js → chunk-7CBU5D6G.js} +1 -1
- package/dist/{chunk-S44D2HDB.js → chunk-7GFQHVKY.js} +16 -16
- package/dist/{chunk-2C7L3B3T.js → chunk-7O2OZQ6L.js} +4 -4
- package/dist/{chunk-UVRUK52J.js → chunk-AHYV7ZQE.js} +1 -1
- package/dist/{chunk-LOSHKUR2.js → chunk-ALWSX6SA.js} +3 -3
- package/dist/{chunk-7KAMTVC2.js → chunk-ARWKVVKB.js} +1 -1
- package/dist/{chunk-HWIXP7UY.js → chunk-AVST42GD.js} +1 -1
- package/dist/{chunk-4YOLB6H7.js → chunk-AY37CFHF.js} +26 -0
- package/dist/{chunk-WUKZEENF.js → chunk-CNNEMTRD.js} +4 -4
- package/dist/{chunk-BWPDGMKS.js → chunk-D57LIC6X.js} +23 -3
- package/dist/{chunk-WNMTWBV4.js → chunk-D6OF2TD3.js} +5 -5
- package/dist/{chunk-XPLUSOU5.js → chunk-DBYHLVQ2.js} +1 -1
- package/dist/{chunk-FV2YDUH5.js → chunk-DLMR45RP.js} +1 -1
- package/dist/{chunk-ZJLVASQZ.js → chunk-E274RVGY.js} +4 -4
- package/dist/{chunk-CSI5V5NO.js → chunk-EPQDQGVZ.js} +1 -1
- package/dist/{chunk-AXIIY75S.js → chunk-ESH2IFRQ.js} +3 -3
- package/dist/{chunk-EVX63B2G.js → chunk-ESMAFA2J.js} +5 -5
- package/dist/{chunk-KQ5S2ZUP.js → chunk-EY4XHT6G.js} +2 -2
- package/dist/{chunk-6QFYQYLV.js → chunk-FM73BOSO.js} +2 -2
- package/dist/{chunk-KK57NC2O.js → chunk-GCWAQMHF.js} +5 -5
- package/dist/{chunk-WX6YWZFM.js → chunk-GFX5AAWT.js} +7 -7
- package/dist/{chunk-LB474DMC.js → chunk-HV2DBLA2.js} +5 -5
- package/dist/{chunk-I2EZVCOY.js → chunk-J2PCHNZO.js} +5 -5
- package/dist/{chunk-7YCRU3HC.js → chunk-JGMEZV2Q.js} +3 -3
- package/dist/{chunk-3DY5G7JW.js → chunk-JYUIHUMK.js} +1 -1
- package/dist/{chunk-OEKXK3YR.js → chunk-KARQYZR3.js} +1 -1
- package/dist/{chunk-FSTX5SRV.js → chunk-KGZSVBUD.js} +3 -3
- package/dist/{chunk-FF7JYSH5.js → chunk-KYCPYOKD.js} +2 -2
- package/dist/{chunk-5K6MB557.js → chunk-L7GL5TJY.js} +2 -2
- package/dist/{chunk-JYKM47DL.js → chunk-LKKOKKUX.js} +2 -2
- package/dist/{chunk-573LGFOV.js → chunk-M3VS3PEK.js} +2 -2
- package/dist/{chunk-RB4QNUFM.js → chunk-MFQNYRKP.js} +4 -4
- package/dist/{chunk-YJ2T5AKE.js → chunk-MPXY3I3M.js} +6 -6
- package/dist/{chunk-A2YOC25E.js → chunk-NCHOWL5Y.js} +2 -2
- package/dist/{chunk-4TRRDGM5.js → chunk-O54TEHYJ.js} +25 -2
- package/dist/{chunk-MY3ZY6B2.js → chunk-P2OVSHIW.js} +3 -3
- package/dist/{chunk-J26QBILB.js → chunk-P3DV5JOE.js} +7 -7
- package/dist/{chunk-KBQBO3KA.js → chunk-PAKMLOFV.js} +3 -3
- package/dist/{chunk-TFI7UZ4N.js → chunk-PWP6NIWM.js} +2 -2
- package/dist/{chunk-MQO4F37H.js → chunk-Q7VXJ634.js} +4 -4
- package/dist/{chunk-275RFVSO.js → chunk-QFOMZSIU.js} +1 -1
- package/dist/{chunk-QTWLOFBV.js → chunk-QICIMORB.js} +2 -2
- package/dist/{chunk-4R7RMJIP.js → chunk-RBZCLXTE.js} +1 -1
- package/dist/{chunk-GF75PDAQ.js → chunk-RQCVHU7Q.js} +1 -1
- package/dist/{chunk-MGFCPJHQ.js → chunk-TDV2RONN.js} +15 -7
- package/dist/{chunk-JSPW2FFO.js → chunk-THDJL37Z.js} +1 -1
- package/dist/{chunk-KPH6GX74.js → chunk-TOHXHAFM.js} +8 -8
- package/dist/{chunk-SLWLFMMB.js → chunk-TZ32ZFFG.js} +65 -6
- package/dist/{chunk-KCQP7ZDP.js → chunk-U7WPURWA.js} +2 -2
- package/dist/{chunk-7SSL355C.js → chunk-ULOJDRKP.js} +2 -1
- package/dist/{chunk-HZG7IUDL.js → chunk-UT7O4WQ6.js} +4 -4
- package/dist/{chunk-TDDX5PAP.js → chunk-UVWYN2UR.js} +4 -4
- package/dist/{chunk-RQ5DKUF4.js → chunk-UXRP56HU.js} +1 -1
- package/dist/{chunk-OF7LT6JD.js → chunk-VIMAUIPP.js} +6 -6
- package/dist/{chunk-IV7POIBI.js → chunk-WAZZ2JJ3.js} +59 -13
- package/dist/{chunk-GXHOOPOY.js → chunk-WQVKU4BI.js} +3 -3
- package/dist/{chunk-EVT7LZ7E.js → chunk-WT2RG7RS.js} +1 -1
- package/dist/{chunk-BO5TJWAN.js → chunk-WUUVZEKA.js} +3 -3
- package/dist/{chunk-MDG6IDIJ.js → chunk-XIWZX5YY.js} +5 -5
- package/dist/{chunk-2IXNXTLA.js → chunk-XLJTD3PP.js} +6 -6
- package/dist/{chunk-SSQWDL6Q.js → chunk-XNYZBQCJ.js} +1 -1
- package/dist/{chunk-NBU7Y6JX.js → chunk-Y2DBHR2N.js} +1 -1
- package/dist/{chunk-PDANBIJA.js → chunk-Z26E6HSF.js} +5 -5
- package/dist/{chunk-OTCNXBIY.js → chunk-Z32D32PL.js} +4 -4
- package/dist/{chunk-IRS2FE32.js → chunk-Z4XTXCRP.js} +1 -1
- package/dist/{chunk-XF3R4ZPV.js → chunk-Z7ZBH7RU.js} +10 -10
- package/dist/{chunk-U6X2XWRP.js → chunk-ZG6QJH5C.js} +1 -1
- package/dist/{chunk-Y2CO2RMJ.js → chunk-ZNQ5YZ2L.js} +45 -13
- package/dist/{chunk-VSOUII7B.js → chunk-ZTQS2ZVJ.js} +1 -1
- package/dist/{chunk-LXH5JLD7.js → chunk-ZVSSHI6H.js} +5 -5
- package/dist/{codex-app-cards-switch-MZBLPDC5.js → codex-app-cards-switch-ROGUHXKQ.js} +11 -12
- package/dist/{codex-card-routing-QMXQ3RRX.js → codex-card-routing-CQX3C552.js} +2 -2
- package/dist/{codex-desktop-launch-7H4COE7H.js → codex-desktop-launch-U6XMY4AD.js} +3 -3
- package/dist/{codex-session-launch-ZSY7FTS3.js → codex-session-launch-FFF7HWWT.js} +21 -20
- package/dist/{config-PPMFPV2E.js → config-J6IB5GWC.js} +3 -3
- package/dist/{global-upgrade-RFXS76KH.js → global-upgrade-W6O44GGK.js} +9 -9
- package/dist/{identity-SLRS7XIR.js → identity-6W3NU4R3.js} +4 -4
- package/dist/{live-capabilities-4G46QNGE.js → live-capabilities-XGYRPZB3.js} +4 -4
- package/dist/{paths-55IJMRJW.js → paths-BK42XGTR.js} +3 -3
- package/dist/reapply-WEEWFQOE.js +81 -0
- package/dist/src/index.js +33 -34
- package/dist/{upgrade-lock-UGPXSPSU.js → upgrade-lock-AOHJCJIT.js} +4 -4
- package/dist/{usage-YC6BB7BX.js → usage-AG2GXZV6.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-B3FN4XL2.js +0 -44
- package/dist/reapply-HA6RLYRS.js +0 -76
package/dist/bin/pushary.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
installNetworkDefaults
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-3QOTNFNM.js";
|
|
5
|
+
import "../chunk-UXRP56HU.js";
|
|
6
|
+
import "../chunk-O54TEHYJ.js";
|
|
7
7
|
import "../chunk-6ICPEJY5.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-3K2HA65U.js";
|
|
9
|
+
import "../chunk-U7WPURWA.js";
|
|
10
10
|
import "../chunk-CINBAX5G.js";
|
|
11
11
|
import "../chunk-PM2NRK6Y.js";
|
|
12
12
|
import {
|
|
13
13
|
LISTED_COMMANDS,
|
|
14
14
|
renderHelp,
|
|
15
15
|
resolveCommandName
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-ULOJDRKP.js";
|
|
17
17
|
import {
|
|
18
18
|
EXIT
|
|
19
19
|
} from "../chunk-BG4HHB7E.js";
|
|
20
20
|
import {
|
|
21
21
|
getPackageVersion
|
|
22
22
|
} from "../chunk-CXQWDQCJ.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-AY37CFHF.js";
|
|
24
24
|
import "../chunk-MLKGABMK.js";
|
|
25
25
|
|
|
26
26
|
// src/cli/runtime.ts
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
toolResultErrorText,
|
|
30
30
|
transcriptTokensIn,
|
|
31
31
|
transcriptUsageRequest
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-DLMR45RP.js";
|
|
33
33
|
import {
|
|
34
34
|
askUser,
|
|
35
35
|
cancelQuestionSettledAtComputer,
|
|
@@ -41,41 +41,42 @@ import {
|
|
|
41
41
|
isThePersonsStop,
|
|
42
42
|
reportClientError,
|
|
43
43
|
sendNotification,
|
|
44
|
+
telemetryOptedOut,
|
|
44
45
|
waitForAnswer,
|
|
45
46
|
waitForOpenQuestion,
|
|
46
47
|
waitForQuestion,
|
|
47
48
|
writeDegraded
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-TZ32ZFFG.js";
|
|
49
50
|
import {
|
|
50
51
|
RETRY_ACK,
|
|
51
52
|
readCommandAck,
|
|
52
53
|
refusedReceiptMessage
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-JYUIHUMK.js";
|
|
54
55
|
import {
|
|
55
56
|
SubscriptionRequiredError,
|
|
56
57
|
isRetryable,
|
|
57
58
|
withRetry
|
|
58
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-HV2DBLA2.js";
|
|
59
60
|
import {
|
|
60
61
|
fetchAsCredential
|
|
61
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-AVST42GD.js";
|
|
62
63
|
import {
|
|
63
64
|
branchFor,
|
|
64
65
|
projectNameFor,
|
|
65
66
|
repoKeyFor
|
|
66
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-Y2DBHR2N.js";
|
|
67
68
|
import {
|
|
68
69
|
getMachineId
|
|
69
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-UXRP56HU.js";
|
|
70
71
|
import {
|
|
71
72
|
reportedInstallSource
|
|
72
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-ZNQ5YZ2L.js";
|
|
73
74
|
import {
|
|
74
75
|
IDLE_PROMPT_NOTIFICATION,
|
|
75
76
|
NOTIFICATION_PUSH_TYPES,
|
|
76
77
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
77
78
|
claudeConfigDir
|
|
78
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-O54TEHYJ.js";
|
|
79
80
|
import {
|
|
80
81
|
compareVersion,
|
|
81
82
|
parseVersion
|
|
@@ -84,7 +85,7 @@ import {
|
|
|
84
85
|
getApiKey,
|
|
85
86
|
getBaseUrl,
|
|
86
87
|
isMalformedApiKeyError
|
|
87
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-U7WPURWA.js";
|
|
88
89
|
import {
|
|
89
90
|
writeFileAtomic,
|
|
90
91
|
writeJsonAtomicDurable
|
|
@@ -151,9 +152,10 @@ import {
|
|
|
151
152
|
refusesWhenUnanswered,
|
|
152
153
|
resolveAutoResolveOrigin,
|
|
153
154
|
resolvePolicy,
|
|
155
|
+
responseRejectsCredential,
|
|
154
156
|
unansweredRefusalReason,
|
|
155
157
|
waitsForThePhone
|
|
156
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-AY37CFHF.js";
|
|
157
159
|
|
|
158
160
|
// src/pending.ts
|
|
159
161
|
import { join } from "path";
|
|
@@ -459,17 +461,61 @@ var emitHookOutput = async (render, write = writeOutput) => {
|
|
|
459
461
|
}
|
|
460
462
|
};
|
|
461
463
|
|
|
462
|
-
// src/
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
var
|
|
464
|
+
// src/session-notice.ts
|
|
465
|
+
import { existsSync as existsSync2, writeFileSync as writeFileSync2 } from "fs";
|
|
466
|
+
import { tmpdir as tmpdir2 } from "os";
|
|
467
|
+
import { join as join2 } from "path";
|
|
468
|
+
var SUBSCRIPTION_REQUIRED_NOTICE_KIND = "subscription-required";
|
|
469
|
+
var MALFORMED_API_KEY_NOTICE_KIND = "malformed-key";
|
|
470
|
+
var REJECTED_API_KEY_NOTICE_KIND = "rejected-key";
|
|
471
|
+
var REJECTED_API_KEY_NOTICE = "[pushary] Pushary rejected this key. Approvals are off until you run `npx pushary login`.";
|
|
472
|
+
var oncePerSession = (kind, sessionId) => {
|
|
473
|
+
try {
|
|
474
|
+
const key = (sessionId || DEFAULT_SESSION).replace(/[^a-zA-Z0-9_-]/g, "");
|
|
475
|
+
const marker = join2(tmpdir2(), `pushary-${kind}-${key}`);
|
|
476
|
+
if (existsSync2(marker)) return false;
|
|
477
|
+
writeFileSync2(marker, "1", "utf-8");
|
|
478
|
+
return true;
|
|
479
|
+
} catch {
|
|
480
|
+
return false;
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
var subscriptionRequiredNotice = (upgradeUrl) => `[pushary] Your Pushary workspace has no active subscription, so approvals stay with your agent. Subscribe: ${upgradeUrl}`;
|
|
484
|
+
var announceSubscriptionRequired = (upgradeUrl, sessionId) => {
|
|
485
|
+
try {
|
|
486
|
+
if (!oncePerSession(SUBSCRIPTION_REQUIRED_NOTICE_KIND, sessionId)) return;
|
|
487
|
+
process.stderr.write(`${subscriptionRequiredNotice(upgradeUrl)}
|
|
488
|
+
`);
|
|
489
|
+
} catch {
|
|
490
|
+
return;
|
|
491
|
+
}
|
|
492
|
+
};
|
|
493
|
+
var malformedApiKeyNotice = (message) => `[pushary] Not connected, so your agent runs untouched. ${message}`;
|
|
494
|
+
var announceMalformedApiKey = (keyError, sessionId) => {
|
|
495
|
+
if (!isMalformedApiKeyError(keyError)) return;
|
|
496
|
+
try {
|
|
497
|
+
if (!oncePerSession(MALFORMED_API_KEY_NOTICE_KIND, sessionId)) return;
|
|
498
|
+
process.stderr.write(`${malformedApiKeyNotice(keyError.message)}
|
|
499
|
+
`);
|
|
500
|
+
} catch {
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
var announceRejectedApiKey = (sessionId) => {
|
|
505
|
+
try {
|
|
506
|
+
if (!oncePerSession(REJECTED_API_KEY_NOTICE_KIND, sessionId)) return;
|
|
507
|
+
process.stderr.write(`${REJECTED_API_KEY_NOTICE}
|
|
508
|
+
`);
|
|
509
|
+
} catch {
|
|
510
|
+
return;
|
|
511
|
+
}
|
|
512
|
+
};
|
|
467
513
|
|
|
468
514
|
// src/policy.ts
|
|
469
515
|
import { createHash as createHash2 } from "crypto";
|
|
470
|
-
import { existsSync as
|
|
471
|
-
import { join as
|
|
472
|
-
import { tmpdir as
|
|
516
|
+
import { existsSync as existsSync3, lstatSync as lstatSync2, readFileSync as readFileSync2, readdirSync as readdirSync2, unlinkSync as unlinkSync2, utimesSync, writeFileSync as writeFileSync3 } from "fs";
|
|
517
|
+
import { join as join3 } from "path";
|
|
518
|
+
import { tmpdir as tmpdir3 } from "os";
|
|
473
519
|
var MS_PER_SECOND = 1e3;
|
|
474
520
|
var CACHE_TTL_MS = POLICY_CACHE_TTL_SECONDS * MS_PER_SECOND;
|
|
475
521
|
var STALE_CACHE_MAX_MS = 12 * 60 * 60 * 1e3;
|
|
@@ -482,7 +528,7 @@ var POLICY_CACHE_PREFIX = `pushary-policy-${POLICY_CACHE_FORMAT}-`;
|
|
|
482
528
|
var policyCacheFile = (apiKey, agent, repoAware = false, sessionId) => {
|
|
483
529
|
const parts = [apiKey, agent, repoAware ? "repoAware" : void 0, "sessionToolAware", sessionId ? `session:${sessionId}` : void 0].filter(Boolean);
|
|
484
530
|
const hash = createHash2("sha256").update(parts.join(":")).digest("hex").slice(0, 12);
|
|
485
|
-
return
|
|
531
|
+
return join3(tmpdir3(), `${POLICY_CACHE_PREFIX}${hash}.json`);
|
|
486
532
|
};
|
|
487
533
|
var modePolicyStampOf = (stampOrVersion) => typeof stampOrVersion === "string" ? { policyVersion: stampOrVersion } : stampOrVersion ?? null;
|
|
488
534
|
var isPolicyReuseKey = (value) => typeof value === "string" && value.length > 0;
|
|
@@ -507,7 +553,7 @@ var isInsideItsReuseWindow = (cached, now) => {
|
|
|
507
553
|
};
|
|
508
554
|
var isReusableWhileItsKeyHolds = (cached, check) => theModeNamesTheKeyOf(cached, check.stamp) && wasCachedByThisClient(cached, check.clientVersion) && isInsideItsReuseWindow(cached, check.now) && wasCachedForSession(cached, check.sessionId) && wasCachedAtVersion(cached, check.stamp?.policyVersion);
|
|
509
555
|
var isPolicyCacheName = (name) => name.startsWith(POLICY_CACHE_PREFIX) && name.endsWith(".json");
|
|
510
|
-
var policyCachePruneStamp = () =>
|
|
556
|
+
var policyCachePruneStamp = () => join3(tmpdir3(), `pushary-policy-prune-${POLICY_CACHE_FORMAT}-${process.getuid?.() ?? "user"}.stamp`);
|
|
511
557
|
var POLICY_CACHE_PRUNE_INTERVAL_MS = 60 * 60 * 1e3;
|
|
512
558
|
var prunedWithinTheInterval = (stampedAtMs, now) => {
|
|
513
559
|
const elapsed = now - stampedAtMs;
|
|
@@ -522,7 +568,7 @@ var claimPolicyCachePrune = (now) => {
|
|
|
522
568
|
return true;
|
|
523
569
|
} catch {
|
|
524
570
|
try {
|
|
525
|
-
|
|
571
|
+
writeFileSync3(stamp, "", { flag: "wx", mode: 384 });
|
|
526
572
|
return true;
|
|
527
573
|
} catch {
|
|
528
574
|
return false;
|
|
@@ -532,9 +578,9 @@ var claimPolicyCachePrune = (now) => {
|
|
|
532
578
|
var removePolicyCachesTooOldToServe = (now) => {
|
|
533
579
|
if (!claimPolicyCachePrune(now)) return;
|
|
534
580
|
try {
|
|
535
|
-
for (const name of readdirSync2(
|
|
581
|
+
for (const name of readdirSync2(tmpdir3())) {
|
|
536
582
|
if (!isPolicyCacheName(name)) continue;
|
|
537
|
-
const path =
|
|
583
|
+
const path = join3(tmpdir3(), name);
|
|
538
584
|
try {
|
|
539
585
|
if (now - lstatSync2(path).mtimeMs >= STALE_CACHE_MAX_MS) unlinkSync2(path);
|
|
540
586
|
} catch {
|
|
@@ -545,7 +591,7 @@ var removePolicyCachesTooOldToServe = (now) => {
|
|
|
545
591
|
};
|
|
546
592
|
var writePolicyCache = (path, entry) => {
|
|
547
593
|
try {
|
|
548
|
-
|
|
594
|
+
writeFileSync3(path, JSON.stringify(entry), { encoding: "utf-8", mode: 384 });
|
|
549
595
|
} catch {
|
|
550
596
|
}
|
|
551
597
|
};
|
|
@@ -581,10 +627,10 @@ var readPolicy = async (apiKey, modeStamp, agent, repoAware = false, sessionId,
|
|
|
581
627
|
const clientVersion = getPackageVersion();
|
|
582
628
|
const path = policyCacheFile(apiKey, agent, repoAware, sessionId);
|
|
583
629
|
const sharedPath = policyCacheFile(apiKey, agent, repoAware);
|
|
584
|
-
const firstForThisSession = path !== sharedPath && !
|
|
630
|
+
const firstForThisSession = path !== sharedPath && !existsSync3(path);
|
|
585
631
|
const readPath = firstForThisSession ? sharedPath : path;
|
|
586
632
|
let staleCache = null;
|
|
587
|
-
if (
|
|
633
|
+
if (existsSync3(readPath)) {
|
|
588
634
|
try {
|
|
589
635
|
const cached = JSON.parse(readFileSync2(readPath, "utf-8"));
|
|
590
636
|
if (!isCachedPolicyRead(cached)) throw new Error("Corrupted cache");
|
|
@@ -680,13 +726,13 @@ var readCachedPolicy = (apiKey, agent, repoAware = false) => readCachedPolicyCop
|
|
|
680
726
|
var MODE_GRACE_MS = 60 * 1e3;
|
|
681
727
|
var modeStateCacheFile = (apiKey) => {
|
|
682
728
|
const hash = createHash2("sha256").update(`mode:${apiKey}`).digest("hex").slice(0, 12);
|
|
683
|
-
return
|
|
729
|
+
return join3(tmpdir3(), `pushary-mode-${hash}.json`);
|
|
684
730
|
};
|
|
685
731
|
var wasFetchedForSession = (cached, sessionId) => (cached.sessionId ?? null) === (sessionId ?? null);
|
|
686
732
|
var readLastGoodMode = (apiKey) => {
|
|
687
733
|
try {
|
|
688
734
|
const path = modeStateCacheFile(apiKey);
|
|
689
|
-
if (!
|
|
735
|
+
if (!existsSync3(path)) return null;
|
|
690
736
|
const parsed = JSON.parse(readFileSync2(path, "utf-8"));
|
|
691
737
|
if (!parsed || typeof parsed.at !== "number" || !parsed.state) return null;
|
|
692
738
|
return parsed;
|
|
@@ -697,7 +743,7 @@ var readLastGoodMode = (apiKey) => {
|
|
|
697
743
|
var writeLastGoodMode = (apiKey, state, sessionId) => {
|
|
698
744
|
try {
|
|
699
745
|
const cached = { state, at: Date.now(), ...sessionId ? { sessionId } : {} };
|
|
700
|
-
|
|
746
|
+
writeFileSync3(modeStateCacheFile(apiKey), JSON.stringify(cached), { encoding: "utf-8", mode: 384 });
|
|
701
747
|
} catch {
|
|
702
748
|
}
|
|
703
749
|
};
|
|
@@ -746,6 +792,7 @@ var readModeState = async (apiKey, sessionId, reuseWithinMs, signal) => {
|
|
|
746
792
|
});
|
|
747
793
|
if (!response.ok) {
|
|
748
794
|
void reportClientError({ kind: "http_status", code: `mode_http_${response.status}` });
|
|
795
|
+
if (responseRejectsCredential(response.status, response.headers)) announceRejectedApiKey(sessionId);
|
|
749
796
|
return unansweredModeRead(degradedFallback(apiKey, sessionId, response.status === 401 || response.status === 403));
|
|
750
797
|
}
|
|
751
798
|
const body = await response.json();
|
|
@@ -766,10 +813,10 @@ var fetchLiveModeState = (apiKey, sessionId, signal) => readModeState(apiKey, se
|
|
|
766
813
|
var fetchModeOverride = async (apiKey) => (await fetchModeState(apiKey)).mode;
|
|
767
814
|
|
|
768
815
|
// src/usage.ts
|
|
769
|
-
import { closeSync as closeSync2, mkdirSync as mkdirSync2, openSync as openSync2, readFileSync as readFileSync3, readSync, statSync as statSync2, writeFileSync as
|
|
816
|
+
import { closeSync as closeSync2, mkdirSync as mkdirSync2, openSync as openSync2, readFileSync as readFileSync3, readSync, statSync as statSync2, writeFileSync as writeFileSync4 } from "fs";
|
|
770
817
|
import { createHash as createHash3 } from "crypto";
|
|
771
|
-
import { join as
|
|
772
|
-
import { tmpdir as
|
|
818
|
+
import { join as join4 } from "path";
|
|
819
|
+
import { tmpdir as tmpdir4 } from "os";
|
|
773
820
|
var READ_CHUNK_BYTES = 1024 * 1024;
|
|
774
821
|
var priceTable = () => {
|
|
775
822
|
const raw = process.env.PUSHARY_MODEL_PRICING?.trim();
|
|
@@ -782,8 +829,8 @@ var priceTable = () => {
|
|
|
782
829
|
return DEFAULT_MODEL_PRICES;
|
|
783
830
|
};
|
|
784
831
|
var estimateCostUsd = (usage, model) => estimateMessageCostUsd(usage, model, priceTable());
|
|
785
|
-
var stateDir = () => process.env.PUSHARY_USAGE_DIR?.trim() ||
|
|
786
|
-
var stateFile = (sessionId) =>
|
|
832
|
+
var stateDir = () => process.env.PUSHARY_USAGE_DIR?.trim() || join4(tmpdir4(), "pushary-usage");
|
|
833
|
+
var stateFile = (sessionId) => join4(stateDir(), sessionId.replace(/[^a-zA-Z0-9_-]/g, "_"));
|
|
787
834
|
var emptyState = () => ({ offset: 0, tokensIn: 0, tokensOut: 0, costUsd: 0, recentIds: [] });
|
|
788
835
|
var readState = (path) => {
|
|
789
836
|
try {
|
|
@@ -885,7 +932,7 @@ var readNewUsage = (transcriptPath, sessionId) => {
|
|
|
885
932
|
}
|
|
886
933
|
}
|
|
887
934
|
mkdirSync2(stateDir(), { recursive: true });
|
|
888
|
-
|
|
935
|
+
writeFileSync4(path, JSON.stringify(state), "utf-8");
|
|
889
936
|
if (state.tokensIn === 0 && state.tokensOut === 0) return null;
|
|
890
937
|
return {
|
|
891
938
|
// Identical cursor-range reports share an identity across transport retries.
|
|
@@ -913,45 +960,6 @@ var readNewUsage = (transcriptPath, sessionId) => {
|
|
|
913
960
|
// src/answer.ts
|
|
914
961
|
var isDeferAnswer = (value) => value === "defer";
|
|
915
962
|
|
|
916
|
-
// src/session-notice.ts
|
|
917
|
-
import { existsSync as existsSync3, writeFileSync as writeFileSync4 } from "fs";
|
|
918
|
-
import { tmpdir as tmpdir4 } from "os";
|
|
919
|
-
import { join as join4 } from "path";
|
|
920
|
-
var SUBSCRIPTION_REQUIRED_NOTICE_KIND = "subscription-required";
|
|
921
|
-
var MALFORMED_API_KEY_NOTICE_KIND = "malformed-key";
|
|
922
|
-
var oncePerSession = (kind, sessionId) => {
|
|
923
|
-
try {
|
|
924
|
-
const key = (sessionId || DEFAULT_SESSION).replace(/[^a-zA-Z0-9_-]/g, "");
|
|
925
|
-
const marker = join4(tmpdir4(), `pushary-${kind}-${key}`);
|
|
926
|
-
if (existsSync3(marker)) return false;
|
|
927
|
-
writeFileSync4(marker, "1", "utf-8");
|
|
928
|
-
return true;
|
|
929
|
-
} catch {
|
|
930
|
-
return false;
|
|
931
|
-
}
|
|
932
|
-
};
|
|
933
|
-
var subscriptionRequiredNotice = (upgradeUrl) => `[pushary] Your Pushary workspace has no active subscription, so approvals stay with your agent. Subscribe: ${upgradeUrl}`;
|
|
934
|
-
var announceSubscriptionRequired = (upgradeUrl, sessionId) => {
|
|
935
|
-
try {
|
|
936
|
-
if (!oncePerSession(SUBSCRIPTION_REQUIRED_NOTICE_KIND, sessionId)) return;
|
|
937
|
-
process.stderr.write(`${subscriptionRequiredNotice(upgradeUrl)}
|
|
938
|
-
`);
|
|
939
|
-
} catch {
|
|
940
|
-
return;
|
|
941
|
-
}
|
|
942
|
-
};
|
|
943
|
-
var malformedApiKeyNotice = (message) => `[pushary] Not connected, so your agent runs untouched. ${message}`;
|
|
944
|
-
var announceMalformedApiKey = (keyError, sessionId) => {
|
|
945
|
-
if (!isMalformedApiKeyError(keyError)) return;
|
|
946
|
-
try {
|
|
947
|
-
if (!oncePerSession(MALFORMED_API_KEY_NOTICE_KIND, sessionId)) return;
|
|
948
|
-
process.stderr.write(`${malformedApiKeyNotice(keyError.message)}
|
|
949
|
-
`);
|
|
950
|
-
} catch {
|
|
951
|
-
return;
|
|
952
|
-
}
|
|
953
|
-
};
|
|
954
|
-
|
|
955
963
|
// src/agent-question-ask.ts
|
|
956
964
|
var ONLY_QUESTION = { index: 0, total: 1 };
|
|
957
965
|
var STOPPED = { kind: "stopped" };
|
|
@@ -2559,7 +2567,9 @@ export {
|
|
|
2559
2567
|
phoneDrivenEnv,
|
|
2560
2568
|
claimThrottle,
|
|
2561
2569
|
releaseThrottle,
|
|
2562
|
-
|
|
2570
|
+
oncePerSession,
|
|
2571
|
+
announceSubscriptionRequired,
|
|
2572
|
+
announceMalformedApiKey,
|
|
2563
2573
|
policyRequestFor,
|
|
2564
2574
|
getPolicy,
|
|
2565
2575
|
getPolicyForStandingDenies,
|
|
@@ -2570,9 +2580,6 @@ export {
|
|
|
2570
2580
|
fetchModeOverride,
|
|
2571
2581
|
readLastUserPrompt,
|
|
2572
2582
|
isDeferAnswer,
|
|
2573
|
-
oncePerSession,
|
|
2574
|
-
announceSubscriptionRequired,
|
|
2575
|
-
announceMalformedApiKey,
|
|
2576
2583
|
outcomeOfFailedAsk,
|
|
2577
2584
|
storedWaitDeadline,
|
|
2578
2585
|
askAgentQuestionWhileOpen,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AY37CFHF.js";
|
|
23
23
|
|
|
24
24
|
// src/shell-quote.ts
|
|
25
25
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -610,9 +610,9 @@ var installGlobally = (options) => {
|
|
|
610
610
|
}
|
|
611
611
|
const started = (async () => {
|
|
612
612
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
613
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
614
|
-
const { canonicalLockPath, installWithUpgradeLock, leftAnUnfinishedInstallHere, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
615
|
-
const { autoUpdateLock } = await import("./paths-
|
|
613
|
+
const { withUpgradeLock } = await import("./global-upgrade-W6O44GGK.js");
|
|
614
|
+
const { canonicalLockPath, installWithUpgradeLock, leftAnUnfinishedInstallHere, ownsUpgradeLock } = await import("./upgrade-lock-AOHJCJIT.js");
|
|
615
|
+
const { autoUpdateLock } = await import("./paths-BK42XGTR.js");
|
|
616
616
|
const lockPath = options.lockPath ?? autoUpdateLock();
|
|
617
617
|
const lockFile = canonicalLockPath(lockPath);
|
|
618
618
|
const unfinishedHere = failuresThisProcessLeftUnfinished.get(lockFile);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readExistingMachineId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UXRP56HU.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U7WPURWA.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
clientContextHeaders,
|
|
15
15
|
redactSecretsFromContent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AY37CFHF.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/net.ts
|
|
19
19
|
import { createRequire } from "module";
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QICIMORB.js";
|
|
4
4
|
import {
|
|
5
5
|
declinedAgentsFile,
|
|
6
6
|
readDeclinedAgents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EY4XHT6G.js";
|
|
8
8
|
import {
|
|
9
9
|
OPENCODE_HOOK_BINARY,
|
|
10
10
|
openCodeConfigDir,
|
|
11
11
|
openCodePluginFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GFX5AAWT.js";
|
|
13
13
|
import {
|
|
14
14
|
openCodePluginArgv
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DBYHLVQ2.js";
|
|
16
16
|
import {
|
|
17
17
|
liveCursorGateCoverage
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WUUVZEKA.js";
|
|
19
19
|
import {
|
|
20
20
|
compatibleConfigFile,
|
|
21
21
|
compatibleHookEvents,
|
|
22
22
|
grokHome
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-43EYM5PY.js";
|
|
24
24
|
import {
|
|
25
25
|
parseConfigDocument
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AHYV7ZQE.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_HOOKS_KEY_PATH,
|
|
29
29
|
GEMINI_HOOK_BINARY,
|
|
30
30
|
GEMINI_HOOK_EVENTS,
|
|
31
31
|
hooksAt
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-Z32D32PL.js";
|
|
33
33
|
import {
|
|
34
34
|
CODEX_EARLIER_APPROVAL_MATCHERS,
|
|
35
35
|
CODEX_HOOK_BINARY,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
parseHookArgv,
|
|
58
58
|
parseHookCommand,
|
|
59
59
|
supportedClaudeEvents
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-O54TEHYJ.js";
|
|
61
61
|
import {
|
|
62
62
|
readRegularJsonFile,
|
|
63
63
|
readRegularTextFile
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
OPENCODE_APPROVAL_EVENT,
|
|
72
72
|
isRecord,
|
|
73
73
|
matcherMatchesEveryCall
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-AY37CFHF.js";
|
|
75
75
|
|
|
76
76
|
// src/hook-wiring.ts
|
|
77
77
|
import { createHash } from "crypto";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseConfigDocument
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AHYV7ZQE.js";
|
|
4
4
|
import {
|
|
5
5
|
addGeminiMcpServer,
|
|
6
6
|
removeGeminiMcpServer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z32D32PL.js";
|
|
8
8
|
import {
|
|
9
9
|
CLAUDE_CODE_AGENT
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3D6EDVCE.js";
|
|
11
11
|
import {
|
|
12
12
|
compatibleToolLookup
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DLMR45RP.js";
|
|
14
14
|
import {
|
|
15
15
|
CLAUDE_HOOK_EVENTS,
|
|
16
16
|
PUSHARY_MCP_URL,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
isPusharyHook,
|
|
23
23
|
registerHookEntry,
|
|
24
24
|
removeClaudeMcpServers
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-O54TEHYJ.js";
|
|
26
26
|
import {
|
|
27
27
|
AGENT_ENFORCEMENT,
|
|
28
28
|
HOOK_COMPATIBLE_PROFILES,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
pusharyMissingReason,
|
|
37
37
|
refusalOutput,
|
|
38
38
|
withHookHoldBudget
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-AY37CFHF.js";
|
|
40
40
|
|
|
41
41
|
// src/compatible-config.ts
|
|
42
42
|
import { homedir } from "os";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CNNEMTRD.js";
|
|
13
13
|
import {
|
|
14
14
|
CODEX_APP_LAUNCH_AT_LOGIN_VERB,
|
|
15
15
|
CODEX_APP_LAUNCH_VARIABLE,
|
|
@@ -20,20 +20,20 @@ import {
|
|
|
20
20
|
} from "./chunk-QCGNGEGE.js";
|
|
21
21
|
import {
|
|
22
22
|
parseConfigDocument
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-AHYV7ZQE.js";
|
|
24
24
|
import {
|
|
25
25
|
xml
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MPXY3I3M.js";
|
|
27
27
|
import {
|
|
28
28
|
codexHomeFrom
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-O54TEHYJ.js";
|
|
30
30
|
import {
|
|
31
31
|
readRegularTextFile,
|
|
32
32
|
writeFileAtomic
|
|
33
33
|
} from "./chunk-PM2NRK6Y.js";
|
|
34
34
|
import {
|
|
35
35
|
isRecord
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-AY37CFHF.js";
|
|
37
37
|
|
|
38
38
|
// src/codex-app-cards-switch.ts
|
|
39
39
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M3VS3PEK.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PAKMLOFV.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NCHOWL5Y.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-O54TEHYJ.js";
|
|
27
27
|
import {
|
|
28
28
|
describeReleaseNpmHolds,
|
|
29
29
|
execNpm,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
npmExitedOnReleaseAge,
|
|
34
34
|
readGlobalCliInstallAt,
|
|
35
35
|
readGlobalPrefix
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3K2HA65U.js";
|
|
37
37
|
import {
|
|
38
38
|
NPX_LATEST_COMMAND
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-ULOJDRKP.js";
|
|
40
40
|
import {
|
|
41
41
|
EXIT
|
|
42
42
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computerOsOfPlatform,
|
|
3
3
|
isComputerAgent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AY37CFHF.js";
|
|
5
5
|
|
|
6
6
|
// src/setup/phone-check.ts
|
|
7
7
|
var NO_AGENT_CONNECTED_LINE = "Skipping the phone step: no agent was connected, so nothing could ask you anything on your phone yet.";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GFX5AAWT.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZNQ5YZ2L.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O54TEHYJ.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
12
|
} from "./chunk-PM2NRK6Y.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AY37CFHF.js";
|
|
17
17
|
|
|
18
18
|
// src/shared-mcp-key.ts
|
|
19
19
|
var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|