pushary 1.9.278 → 1.9.280
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 -2
- package/dist/{api-JDJKIBJ2.js → api-WBSDPSHN.js} +12 -12
- package/dist/bin/pushary-ask.js +14 -14
- 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-calls.js +14 -14
- package/dist/bin/pushary-claude.js +25 -25
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +22 -22
- 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 +16 -0
- package/dist/bin/pushary-doctor.js +48 -48
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +17 -17
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +45 -43
- package/dist/bin/pushary-logout.js +31 -31
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +21 -21
- 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 +59 -59
- 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 +15 -15
- package/dist/bin/pushary-transcript-register.js +16 -16
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +47 -47
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-DIQKY76N.js → chunk-2562EGWD.js} +46 -1
- package/dist/{chunk-HMUSFFEH.js → chunk-2NNCVW26.js} +3 -3
- package/dist/{chunk-DISRB3NE.js → chunk-2SMGO6SE.js} +1 -1
- package/dist/{chunk-KKEX5FAB.js → chunk-2USACEVR.js} +5 -5
- package/dist/{chunk-22OYSTAN.js → chunk-36CZVHOH.js} +1 -1
- package/dist/{chunk-WG4Y6DJD.js → chunk-3AKD2IMA.js} +6 -6
- package/dist/{chunk-MZJIL5CA.js → chunk-3I6Z6YKA.js} +5 -5
- package/dist/{chunk-WTPNWUEQ.js → chunk-4EJ6BFQ6.js} +3 -3
- package/dist/{chunk-QHSJVHNC.js → chunk-5WZAL3IG.js} +4 -4
- package/dist/{chunk-PW6FMKMZ.js → chunk-67D6KDPJ.js} +4 -4
- package/dist/{chunk-JHJPAG6R.js → chunk-6CQ75CCI.js} +6 -6
- package/dist/{chunk-3HKTW7AH.js → chunk-6SJ3YYPS.js} +2 -2
- package/dist/{chunk-7AMWTZTL.js → chunk-6TC6Y5FE.js} +5 -5
- package/dist/{chunk-XHEF2MQZ.js → chunk-7CCJLPFF.js} +2 -2
- package/dist/{chunk-ETZUDUCB.js → chunk-7CIMT2QH.js} +1 -1
- package/dist/{chunk-MOMA4DD4.js → chunk-7FUEG6WT.js} +1 -1
- package/dist/{chunk-WFDFDUHU.js → chunk-7OV4MW6B.js} +2 -2
- package/dist/{chunk-7RLMFVUZ.js → chunk-7WCBGOXC.js} +2 -2
- package/dist/{chunk-ISPN73NA.js → chunk-AGBCUPRE.js} +5 -5
- package/dist/{chunk-6X7GXEBI.js → chunk-D35MHKUM.js} +2 -2
- package/dist/{chunk-B5565Y33.js → chunk-DEGZHZLH.js} +1 -1
- package/dist/{chunk-NLJUHVZJ.js → chunk-DGIMLJ7N.js} +3 -3
- package/dist/{chunk-MGV6KJJF.js → chunk-DI7VQ4PL.js} +1 -1
- package/dist/{chunk-I4A6CL5Q.js → chunk-DLRZZHXC.js} +6 -6
- package/dist/{chunk-5ZX57DNR.js → chunk-DPTI6ZTZ.js} +2 -2
- package/dist/{chunk-C3E5KDBH.js → chunk-EC52MD7O.js} +5 -5
- package/dist/{chunk-GUL5YSME.js → chunk-EMB2EWLG.js} +5 -5
- package/dist/{chunk-R7VMXE6A.js → chunk-ENTFHIJ5.js} +1 -1
- package/dist/{chunk-2XAZO2Q3.js → chunk-FYGOACNH.js} +2 -2
- package/dist/{chunk-DMMIXJKD.js → chunk-G6EN7DLG.js} +10 -10
- package/dist/{chunk-NDDIA2YJ.js → chunk-GBMURSB4.js} +7 -7
- package/dist/{chunk-33IU43ZR.js → chunk-GS6XPW45.js} +7 -7
- package/dist/{chunk-QRIRB7KV.js → chunk-GYELGSCS.js} +4 -4
- package/dist/{chunk-CUXMOQDW.js → chunk-H5BATWAL.js} +3 -3
- package/dist/{chunk-DFNJBEFV.js → chunk-HE5SRKH3.js} +10 -10
- package/dist/{chunk-AECDNNRM.js → chunk-HJ25OOZL.js} +1 -1
- package/dist/{chunk-A7PIULSY.js → chunk-HPYVOBVO.js} +1 -1
- package/dist/{chunk-SMI5X7BO.js → chunk-I2OOSUJN.js} +1 -1
- package/dist/{chunk-3CNXRECH.js → chunk-I5RNSFXB.js} +4 -4
- package/dist/{chunk-WY6VFXYH.js → chunk-IHF7J7ZN.js} +16 -16
- package/dist/{chunk-J2N3BNNE.js → chunk-IJOGKO3Z.js} +1 -1
- package/dist/{chunk-YPTRRRD3.js → chunk-JKMX5HMU.js} +1 -1
- package/dist/{chunk-CB2NT2J5.js → chunk-JP545GB4.js} +1 -1
- package/dist/{chunk-GJQJHWQ4.js → chunk-JXVZO2TC.js} +2 -2
- package/dist/{chunk-QNMJJMZF.js → chunk-KKPI7MVG.js} +4 -4
- package/dist/{chunk-HQSTVSDO.js → chunk-KSHM2X7A.js} +2 -2
- package/dist/{chunk-K5LHDTYS.js → chunk-KV65OAIF.js} +1 -1
- package/dist/{chunk-YBTS5ZR3.js → chunk-LE2GNKVF.js} +11 -2
- package/dist/{chunk-WCTHF35Z.js → chunk-LKL7VIWF.js} +3 -3
- package/dist/{chunk-TSKDJNC5.js → chunk-M4B3D76U.js} +1 -1
- package/dist/{chunk-KO2QJNTA.js → chunk-MZPWMXPX.js} +1 -1
- package/dist/{chunk-WXXAFKZE.js → chunk-NL4NVNSD.js} +2 -2
- package/dist/{chunk-OIRKU5GW.js → chunk-NQCIACTR.js} +4 -4
- package/dist/{chunk-5XVPGNE5.js → chunk-O6LVUSRY.js} +6 -6
- package/dist/{chunk-BAYA2H6O.js → chunk-ODSUVMII.js} +5 -5
- package/dist/{chunk-76XC2ICT.js → chunk-OVUJLLPD.js} +50 -15
- package/dist/{chunk-2BW7GNNB.js → chunk-PATTVCJS.js} +2 -2
- package/dist/{chunk-UCX7X333.js → chunk-PUDKDFOZ.js} +1 -1
- package/dist/{chunk-OMHFKENS.js → chunk-Q5MYEDCP.js} +6 -6
- package/dist/{chunk-EEC52E5K.js → chunk-QG742PJG.js} +1 -1
- package/dist/{chunk-I5I5PXQL.js → chunk-QGQA4VUR.js} +8 -8
- package/dist/{chunk-QUU74XFH.js → chunk-QXPI7LOZ.js} +3 -3
- package/dist/{chunk-FGIJ46DR.js → chunk-R5P25UN2.js} +5 -5
- package/dist/{chunk-Z5H2XKMF.js → chunk-RI6C7WBQ.js} +2 -2
- package/dist/{chunk-GQDJPX3J.js → chunk-SIZMK3SF.js} +1 -1
- package/dist/{chunk-UXB54PYF.js → chunk-T2JHF3E4.js} +7 -7
- package/dist/{chunk-K5JEB3I4.js → chunk-TCQ3SHEC.js} +6 -6
- package/dist/{chunk-GP7Q2DCX.js → chunk-URYZAUMK.js} +4 -4
- package/dist/{chunk-JNPWASVJ.js → chunk-USRBNJJX.js} +1 -1
- package/dist/{chunk-R5FAM3I6.js → chunk-VSF3OSWI.js} +1 -1
- package/dist/{chunk-TPSRKMMW.js → chunk-VY7Q5MEQ.js} +5 -5
- package/dist/{chunk-6RSP2BY4.js → chunk-VYMBV6M5.js} +3 -3
- package/dist/{chunk-7DA3YV66.js → chunk-WF6QID2G.js} +12 -12
- package/dist/{chunk-WJALXH6I.js → chunk-XKTBFWO2.js} +1 -1
- package/dist/{chunk-XUIQOGUN.js → chunk-XV54WWNB.js} +3 -3
- package/dist/{chunk-XOALU2TA.js → chunk-YEQF4H76.js} +4 -4
- package/dist/{chunk-DWM7BYVK.js → chunk-YM3TSHT2.js} +1 -1
- package/dist/{chunk-B6RL3XXW.js → chunk-YQNGHX3P.js} +3 -3
- package/dist/{chunk-YSDITWDH.js → chunk-Z3EV2HKF.js} +4 -4
- package/dist/{chunk-YAV677T2.js → chunk-Z7F7SITX.js} +4 -4
- package/dist/{chunk-4IX2PONM.js → chunk-ZL46IS5W.js} +1 -1
- package/dist/{chunk-72CPOGDP.js → chunk-ZOADLPWB.js} +3 -3
- package/dist/{codex-app-cards-switch-YN66WO7X.js → codex-app-cards-switch-PNZGL4UT.js} +11 -11
- package/dist/{codex-card-routing-QXVDJGWF.js → codex-card-routing-ESKPXKXS.js} +2 -2
- package/dist/{codex-desktop-launch-XFRDRYXQ.js → codex-desktop-launch-CGIHCZL6.js} +3 -3
- package/dist/{codex-session-launch-W3SUQJMA.js → codex-session-launch-PXWW7EDP.js} +21 -21
- package/dist/{config-EGAARNM4.js → config-PFH6OQ6M.js} +3 -3
- package/dist/{global-upgrade-KKCSLSUA.js → global-upgrade-UU3H3EFW.js} +9 -9
- package/dist/{identity-P35TDUOJ.js → identity-JHCLWMLI.js} +4 -4
- package/dist/{live-capabilities-6NS5JAL4.js → live-capabilities-3K6DM4A3.js} +4 -4
- package/dist/{paths-FCBX57O2.js → paths-TMTWXB5B.js} +3 -3
- package/dist/{reapply-LOFPNVDB.js → reapply-YLNXKKWT.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-HOMFI7KP.js → upgrade-lock-NGYIAYBZ.js} +4 -4
- package/dist/{usage-MAE6ZECN.js → usage-LGGUWLJM.js} +3 -3
- package/package.json +1 -1
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
compactionAction,
|
|
10
10
|
deriveReceiptMeta,
|
|
11
11
|
deriveToolTarget,
|
|
12
|
-
describeStopFailure,
|
|
13
12
|
describeToolCall,
|
|
13
|
+
describeUsageLimitStop,
|
|
14
14
|
estimateMessageCostUsd,
|
|
15
15
|
isModelPrice,
|
|
16
16
|
isToolResultError,
|
|
@@ -20,16 +20,19 @@ import {
|
|
|
20
20
|
parseApplyPatchOps,
|
|
21
21
|
readTranscriptMessageUsage,
|
|
22
22
|
rememberTranscriptMessage,
|
|
23
|
+
resetNamesADate,
|
|
23
24
|
sessionEndAction,
|
|
24
25
|
sessionIdentityOf,
|
|
25
26
|
sessionStartAction,
|
|
27
|
+
stopFailureReason,
|
|
26
28
|
subagentStopSummary,
|
|
27
29
|
summarizeStop,
|
|
28
30
|
taskTitleFrom,
|
|
29
31
|
toolResultErrorText,
|
|
30
32
|
transcriptTokensIn,
|
|
31
|
-
transcriptUsageRequest
|
|
32
|
-
|
|
33
|
+
transcriptUsageRequest,
|
|
34
|
+
usageLimitStopOf
|
|
35
|
+
} from "./chunk-2562EGWD.js";
|
|
33
36
|
import {
|
|
34
37
|
isDeferAnswer
|
|
35
38
|
} from "./chunk-Z25VDYAL.js";
|
|
@@ -37,7 +40,7 @@ import {
|
|
|
37
40
|
RETRY_ACK,
|
|
38
41
|
readCommandAck,
|
|
39
42
|
refusedReceiptMessage
|
|
40
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-M4B3D76U.js";
|
|
41
44
|
import {
|
|
42
45
|
askUser,
|
|
43
46
|
cancelQuestionSettledAtComputer,
|
|
@@ -54,32 +57,32 @@ import {
|
|
|
54
57
|
waitForOpenQuestion,
|
|
55
58
|
waitForQuestion,
|
|
56
59
|
writeDegraded
|
|
57
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-T2JHF3E4.js";
|
|
58
61
|
import {
|
|
59
62
|
SubscriptionRequiredError,
|
|
60
63
|
isRetryable,
|
|
61
64
|
withRetry
|
|
62
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-3AKD2IMA.js";
|
|
63
66
|
import {
|
|
64
67
|
fetchAsCredential
|
|
65
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-XKTBFWO2.js";
|
|
66
69
|
import {
|
|
67
70
|
branchFor,
|
|
68
71
|
projectNameFor,
|
|
69
72
|
repoKeyFor
|
|
70
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-YM3TSHT2.js";
|
|
71
74
|
import {
|
|
72
75
|
getMachineId
|
|
73
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-I2OOSUJN.js";
|
|
74
77
|
import {
|
|
75
78
|
reportedInstallSource
|
|
76
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-DPTI6ZTZ.js";
|
|
77
80
|
import {
|
|
78
81
|
IDLE_PROMPT_NOTIFICATION,
|
|
79
82
|
NOTIFICATION_PUSH_TYPES,
|
|
80
83
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
81
84
|
claudeConfigDir
|
|
82
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-KSHM2X7A.js";
|
|
83
86
|
import {
|
|
84
87
|
compareVersion,
|
|
85
88
|
parseVersion
|
|
@@ -88,11 +91,14 @@ import {
|
|
|
88
91
|
getApiKey,
|
|
89
92
|
getBaseUrl,
|
|
90
93
|
isMalformedApiKeyError
|
|
91
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-D35MHKUM.js";
|
|
92
95
|
import {
|
|
93
96
|
writeFileAtomic,
|
|
94
97
|
writeJsonAtomicDurable
|
|
95
98
|
} from "./chunk-PM2NRK6Y.js";
|
|
99
|
+
import {
|
|
100
|
+
NPX_LATEST_COMMAND
|
|
101
|
+
} from "./chunk-USRBNJJX.js";
|
|
96
102
|
import {
|
|
97
103
|
getPackageVersion,
|
|
98
104
|
isKnownReleaseVersion
|
|
@@ -158,7 +164,7 @@ import {
|
|
|
158
164
|
responseRejectsCredential,
|
|
159
165
|
unansweredRefusalReason,
|
|
160
166
|
waitsForThePhone
|
|
161
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-LE2GNKVF.js";
|
|
162
168
|
|
|
163
169
|
// src/pending.ts
|
|
164
170
|
import { join } from "path";
|
|
@@ -471,7 +477,7 @@ import { join as join2 } from "path";
|
|
|
471
477
|
var SUBSCRIPTION_REQUIRED_NOTICE_KIND = "subscription-required";
|
|
472
478
|
var MALFORMED_API_KEY_NOTICE_KIND = "malformed-key";
|
|
473
479
|
var REJECTED_API_KEY_NOTICE_KIND = "rejected-key";
|
|
474
|
-
var REJECTED_API_KEY_NOTICE =
|
|
480
|
+
var REJECTED_API_KEY_NOTICE = `[pushary] Pushary rejected this key. Approvals are off until you run \`${NPX_LATEST_COMMAND} login\`.`;
|
|
475
481
|
var oncePerSession = (kind, sessionId) => {
|
|
476
482
|
try {
|
|
477
483
|
const key = (sessionId || DEFAULT_SESSION).replace(/[^a-zA-Z0-9_-]/g, "");
|
|
@@ -2520,7 +2526,7 @@ var handleStopFailure = async (input, agent = CLAUDE_CODE_AGENT) => {
|
|
|
2520
2526
|
return;
|
|
2521
2527
|
}
|
|
2522
2528
|
const projectName = projectNameFor(input.cwd);
|
|
2523
|
-
const reason =
|
|
2529
|
+
const reason = stopFailureReason(input);
|
|
2524
2530
|
await reportEvent({
|
|
2525
2531
|
event: "turn_error",
|
|
2526
2532
|
agentType: agent.type,
|
|
@@ -2538,6 +2544,11 @@ var handleStopFailure = async (input, agent = CLAUDE_CODE_AGENT) => {
|
|
|
2538
2544
|
if (cancelledTurnNeedsNoPush(input)) return;
|
|
2539
2545
|
const mode = await fetchModeState(apiKey, input.session_id, MODE_REUSE_MS, signal).catch(() => null);
|
|
2540
2546
|
if (mode?.kill || mode?.mode === "terminal_only") return;
|
|
2547
|
+
const usageLimit = usageLimitStopOf(input);
|
|
2548
|
+
if (usageLimit) {
|
|
2549
|
+
await sendUsageLimitNotice(apiKey, usageLimit, { agent, projectName, sessionId: input.session_id, signal });
|
|
2550
|
+
return;
|
|
2551
|
+
}
|
|
2541
2552
|
await sendNotification(apiKey, {
|
|
2542
2553
|
title: `${agent.label} stopped on an error`,
|
|
2543
2554
|
body: reason,
|
|
@@ -2549,6 +2560,30 @@ var handleStopFailure = async (input, agent = CLAUDE_CODE_AGENT) => {
|
|
|
2549
2560
|
} catch {
|
|
2550
2561
|
}
|
|
2551
2562
|
};
|
|
2563
|
+
var HOUR_MS = 60 * 60 * 1e3;
|
|
2564
|
+
var DATED_RESET_NOTICE_HOLD_MS = 8 * 24 * HOUR_MS;
|
|
2565
|
+
var FIVE_HOUR_RESET_NOTICE_HOLD_MS = 5 * HOUR_MS;
|
|
2566
|
+
var UNDATED_RESET_NOTICE_HOLD_MS = 24 * HOUR_MS;
|
|
2567
|
+
var usageLimitNoticeHoldMs = (stop) => {
|
|
2568
|
+
if (resetNamesADate(stop)) return DATED_RESET_NOTICE_HOLD_MS;
|
|
2569
|
+
return stop.window === "five_hour" ? FIVE_HOUR_RESET_NOTICE_HOLD_MS : UNDATED_RESET_NOTICE_HOLD_MS;
|
|
2570
|
+
};
|
|
2571
|
+
var usageLimitNoticeKey = (sessionId, stop) => `usage-limit:${sessionId ?? "no-session"}:${stop.limitName}:${stop.resetsAt ?? "no-reset"}`;
|
|
2572
|
+
var usageLimitNoticeTitle = (agent, stop) => `${agent.label} stopped at your ${stop.limitName}`;
|
|
2573
|
+
var usageLimitNoticeBody = (stop) => stop.resetsAt ? `It resets ${stop.resetsAt}. Send a message after that to continue.` : "Open Claude Code on your computer to see how to continue.";
|
|
2574
|
+
var sendUsageLimitNotice = async (apiKey, stop, target) => {
|
|
2575
|
+
const key = usageLimitNoticeKey(target.sessionId, stop);
|
|
2576
|
+
if (claimThrottle(key, usageLimitNoticeHoldMs(stop)) === "throttled") return;
|
|
2577
|
+
const title = usageLimitNoticeTitle(target.agent, stop);
|
|
2578
|
+
const body = usageLimitNoticeBody(stop);
|
|
2579
|
+
await sendNotification(apiKey, {
|
|
2580
|
+
title,
|
|
2581
|
+
body,
|
|
2582
|
+
agentName: `${target.agent.label} - ${target.projectName}`,
|
|
2583
|
+
sessionId: target.sessionId,
|
|
2584
|
+
context: { type: "error", errorMessage: describeUsageLimitStop(stop), nextSteps: body }
|
|
2585
|
+
}, 4e3, target.signal).catch(() => releaseThrottle(key));
|
|
2586
|
+
};
|
|
2552
2587
|
|
|
2553
2588
|
export {
|
|
2554
2589
|
DEFAULT_SESSION,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DPTI6ZTZ.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-USRBNJJX.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseConfigDocument
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HJ25OOZL.js";
|
|
4
4
|
import {
|
|
5
5
|
addGeminiMcpServer,
|
|
6
6
|
removeGeminiMcpServer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YEQF4H76.js";
|
|
8
8
|
import {
|
|
9
9
|
CLAUDE_CODE_AGENT
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OVUJLLPD.js";
|
|
11
11
|
import {
|
|
12
12
|
compatibleToolLookup
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2562EGWD.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-KSHM2X7A.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-LE2GNKVF.js";
|
|
40
40
|
|
|
41
41
|
// src/compatible-config.ts
|
|
42
42
|
import { homedir } from "os";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
OPENCODE_PLUGIN_PLACEHOLDER,
|
|
7
7
|
OPENCODE_PLUGIN_SIBLING,
|
|
8
8
|
OPENCODE_PLUGIN_SIBLING_CONTENTS
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZL46IS5W.js";
|
|
10
10
|
|
|
11
11
|
// src/opencode-runtime-bundle.ts
|
|
12
12
|
var openCodeRuntimeSource = `import { spawn } from 'child_process';
|
|
@@ -6,37 +6,37 @@ import {
|
|
|
6
6
|
postLiveSession,
|
|
7
7
|
postLiveSessionUntilAccepted,
|
|
8
8
|
startLiveSessionHeartbeat
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JKMX5HMU.js";
|
|
10
10
|
import {
|
|
11
11
|
CommandReceipts,
|
|
12
12
|
controllerCommandSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DEGZHZLH.js";
|
|
14
14
|
import {
|
|
15
15
|
SESSION_IDLE_TIMEOUT_MS,
|
|
16
16
|
describeIdleWindow,
|
|
17
17
|
idleDeadlinePassed,
|
|
18
18
|
startProcessOwnership
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RI6C7WBQ.js";
|
|
20
20
|
import {
|
|
21
21
|
spawnClaude
|
|
22
22
|
} from "./chunk-3PSNUHC5.js";
|
|
23
23
|
import {
|
|
24
24
|
readCommandAck
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-M4B3D76U.js";
|
|
26
26
|
import {
|
|
27
27
|
isDecisionStopped,
|
|
28
28
|
isWaitForAnswerResponse,
|
|
29
29
|
withdrawQuestion,
|
|
30
30
|
writeDegraded
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-T2JHF3E4.js";
|
|
32
32
|
import {
|
|
33
33
|
callMcpTool,
|
|
34
34
|
isRetryable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-3AKD2IMA.js";
|
|
36
36
|
import {
|
|
37
37
|
projectNameFor,
|
|
38
38
|
repositoryScopeFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YM3TSHT2.js";
|
|
40
40
|
import {
|
|
41
41
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
42
42
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
parseCodexQuestions,
|
|
59
59
|
planElicitationAsk,
|
|
60
60
|
readElicitationFields
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-LE2GNKVF.js";
|
|
62
62
|
|
|
63
63
|
// src/codex-question-owner.ts
|
|
64
64
|
import { createHash } from "crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YQNGHX3P.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-D35MHKUM.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LE2GNKVF.js";
|
|
17
17
|
|
|
18
18
|
// src/session.ts
|
|
19
19
|
var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UNSET_IGNORED_SHELL_VALUE_STEP
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z7F7SITX.js";
|
|
4
4
|
import {
|
|
5
5
|
notificationAnswerStep
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O6LVUSRY.js";
|
|
7
7
|
import {
|
|
8
8
|
matchMacAccountStep,
|
|
9
9
|
retryAgentCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4EJ6BFQ6.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND,
|
|
13
13
|
npmExecSetupCommandFor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-USRBNJJX.js";
|
|
15
15
|
import {
|
|
16
16
|
EXIT
|
|
17
17
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
compatibleProfileFor,
|
|
23
23
|
isCompatibleAgentType
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-LE2GNKVF.js";
|
|
25
25
|
|
|
26
26
|
// src/setup/closing.ts
|
|
27
27
|
var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KSHM2X7A.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-LE2GNKVF.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -8,26 +8,26 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3AKD2IMA.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XKTBFWO2.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-YQNGHX3P.js";
|
|
19
19
|
import {
|
|
20
20
|
keyPrefix
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DPTI6ZTZ.js";
|
|
22
22
|
import {
|
|
23
23
|
MacAppRefusedError,
|
|
24
24
|
MacAppUnreachableError,
|
|
25
25
|
clientReportClaims
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KSHM2X7A.js";
|
|
27
27
|
import {
|
|
28
28
|
getApiKey,
|
|
29
29
|
getBaseUrl
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-D35MHKUM.js";
|
|
31
31
|
import {
|
|
32
32
|
getPackageVersion
|
|
33
33
|
} from "./chunk-CXQWDQCJ.js";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
responseRejectsCredential,
|
|
58
58
|
truncateLine,
|
|
59
59
|
waitEndAnswered
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-LE2GNKVF.js";
|
|
61
61
|
|
|
62
62
|
// src/api.ts
|
|
63
63
|
import { randomUUID } from "crypto";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NL4NVNSD.js";
|
|
7
7
|
import {
|
|
8
8
|
describeAutoUpdateCheck,
|
|
9
9
|
globalInstallLocation,
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
readAutoUpdateState,
|
|
16
16
|
updateAutoUpdateState,
|
|
17
17
|
upgradeEntryFor
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JXVZO2TC.js";
|
|
19
19
|
import {
|
|
20
20
|
phoneStartIsRequired
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2NNCVW26.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KSHM2X7A.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-KKPI7MVG.js";
|
|
37
37
|
import {
|
|
38
38
|
NPX_LATEST_COMMAND
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-USRBNJJX.js";
|
|
40
40
|
import {
|
|
41
41
|
EXIT
|
|
42
42
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q5MYEDCP.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YEQF4H76.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KSHM2X7A.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LE2GNKVF.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
settingSnapshot,
|
|
19
19
|
writeHermesSetting,
|
|
20
20
|
writeSetupReceipt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-67D6KDPJ.js";
|
|
22
22
|
import {
|
|
23
23
|
OPENCLAW_MIN_VERSION,
|
|
24
24
|
OPENCLAW_PLUGIN_ID,
|
|
25
25
|
OPENCLAW_PLUGIN_PACKAGE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DGIMLJ7N.js";
|
|
27
27
|
import {
|
|
28
28
|
retryAgentCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-4EJ6BFQ6.js";
|
|
30
30
|
import {
|
|
31
31
|
configFilePath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-D35MHKUM.js";
|
|
33
33
|
import {
|
|
34
34
|
readJsonSafe,
|
|
35
35
|
writeJsonAtomic
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
readSetupOutcomeProperties,
|
|
39
39
|
redactSecretsFromContent
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-LE2GNKVF.js";
|
|
41
41
|
|
|
42
42
|
// src/hermes/shell-gate.ts
|
|
43
43
|
var readHermesShellGate = async (launcher, pluginVersion = null) => {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-P6DUWKAO.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchAsCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XKTBFWO2.js";
|
|
8
8
|
import {
|
|
9
9
|
getBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-D35MHKUM.js";
|
|
11
11
|
import {
|
|
12
12
|
writeJsonAtomicDurable
|
|
13
13
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
compressTranscriptRecord,
|
|
16
16
|
redactSecretsFromContent,
|
|
17
17
|
transcriptRecordPlaintext
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LE2GNKVF.js";
|
|
19
19
|
|
|
20
20
|
// src/transcript-recipient-pin.ts
|
|
21
21
|
import { createHash } from "crypto";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ensureCodexTrustsPusharyHooks,
|
|
6
6
|
hermesHistoryNeedsTheCliHelper,
|
|
7
7
|
recordInstalledHermesHistoryHelper
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZOADLPWB.js";
|
|
9
9
|
import {
|
|
10
10
|
hermesReceiptPaths,
|
|
11
11
|
hermesSetupPredatesThePluginFolder,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
refreshHermesPluginFiles,
|
|
15
15
|
refreshOpenClawPlugin,
|
|
16
16
|
shippedHermesPlugin
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-67D6KDPJ.js";
|
|
18
18
|
import {
|
|
19
19
|
fxIgnoresInstructionsFile,
|
|
20
20
|
fxInstructionsBody,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
macAppFxBridge,
|
|
24
24
|
refreshClineKey,
|
|
25
25
|
switchFxHttpEntryToBridge
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3I6Z6YKA.js";
|
|
27
27
|
import {
|
|
28
28
|
OPENCODE_HOOK_BINARY,
|
|
29
29
|
agentHookOwner,
|
|
@@ -36,13 +36,13 @@ import {
|
|
|
36
36
|
openCodePluginDir,
|
|
37
37
|
openCodeWired,
|
|
38
38
|
withOpenCodeAskRules
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-GBMURSB4.js";
|
|
40
40
|
import {
|
|
41
41
|
addCompatibleHooks,
|
|
42
42
|
compatibleConfigFile,
|
|
43
43
|
compatibleInstructionsFile,
|
|
44
44
|
hasCompatibleHooks
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-Q5MYEDCP.js";
|
|
46
46
|
import {
|
|
47
47
|
GEMINI_HOOK_BINARY,
|
|
48
48
|
addGeminiHooks,
|
|
@@ -54,16 +54,16 @@ import {
|
|
|
54
54
|
geminiWired,
|
|
55
55
|
hasGeminiHooks,
|
|
56
56
|
planHooks
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-YEQF4H76.js";
|
|
58
58
|
import {
|
|
59
59
|
detectClaudeVersion
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-7FUEG6WT.js";
|
|
61
61
|
import {
|
|
62
62
|
transcriptsEnabled
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-SIZMK3SF.js";
|
|
64
64
|
import {
|
|
65
65
|
KEY_FILE_MODE
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-DPTI6ZTZ.js";
|
|
67
67
|
import {
|
|
68
68
|
CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
|
|
69
69
|
CLAUDE_HOOK_BINARY,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
replaceCodexMcpEmbeddedKey,
|
|
114
114
|
supportedClaudeEvents,
|
|
115
115
|
vscodePluginMcp
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-KSHM2X7A.js";
|
|
117
117
|
import {
|
|
118
118
|
formatVersion
|
|
119
119
|
} from "./chunk-6ICPEJY5.js";
|
|
@@ -121,7 +121,7 @@ import {
|
|
|
121
121
|
hookCommandsUseBareNames,
|
|
122
122
|
resolveGlobalBinDir,
|
|
123
123
|
resolveGlobalBinary
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-KKPI7MVG.js";
|
|
125
125
|
import {
|
|
126
126
|
readJsonSafe,
|
|
127
127
|
writeFileAtomic,
|
|
@@ -131,7 +131,7 @@ import {
|
|
|
131
131
|
HOOK_COMPATIBLE_PROFILES,
|
|
132
132
|
isCompatibleAgentType,
|
|
133
133
|
isRecord
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-LE2GNKVF.js";
|
|
135
135
|
|
|
136
136
|
// src/reapply.ts
|
|
137
137
|
import { dirname, join } from "path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DI7VQ4PL.js";
|
|
4
4
|
import {
|
|
5
5
|
parseFlags
|
|
6
6
|
} from "./chunk-BZIBNSQE.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-USRBNJJX.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-LE2GNKVF.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|