pushary 1.9.200 → 1.9.205
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 +28 -0
- package/dist/{api-OUFAFWVY.js → api-PO372R5F.js} +13 -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 +27 -27
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +51 -52
- 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 +47 -47
- package/dist/bin/pushary-disconnect.js +30 -30
- package/dist/bin/pushary-doctor.js +47 -47
- package/dist/bin/pushary-elicitation-hook.js +29 -29
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +32 -32
- package/dist/bin/pushary-hook.js +36 -36
- package/dist/bin/pushary-login.js +22 -22
- package/dist/bin/pushary-logout.js +30 -30
- 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 +34 -34
- package/dist/bin/pushary-permission-denied-hook.js +36 -36
- package/dist/bin/pushary-permission-hook.js +36 -36
- 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 +40 -40
- package/dist/bin/pushary-sessions.js +14 -14
- 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 +16 -16
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +47 -47
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-LECDW27E.js → chunk-2KNKPMWO.js} +1 -1
- package/dist/{chunk-TZD42VJP.js → chunk-2RJQKHS2.js} +5 -5
- package/dist/{chunk-HN6ABA2B.js → chunk-2WHNR3ER.js} +6 -4
- package/dist/{chunk-LEUQ37WR.js → chunk-2Y7MJQCN.js} +2 -2
- package/dist/{chunk-LGV3U2KK.js → chunk-322DR4ZT.js} +1 -1
- package/dist/{chunk-WRZFEG6A.js → chunk-34YI42UX.js} +3 -3
- package/dist/{chunk-UQOEZQ6G.js → chunk-3DGWT6EY.js} +2 -2
- package/dist/{chunk-3XSDSKAX.js → chunk-3NGBANTY.js} +1 -1
- package/dist/{chunk-HQUYQOWZ.js → chunk-3W5OVQ66.js} +2 -2
- package/dist/{chunk-7SCBP4U7.js → chunk-3WPXWHEM.js} +9 -9
- package/dist/{chunk-RXNQ3GJM.js → chunk-52OHO3HH.js} +1 -1
- package/dist/{chunk-MRG7AEJA.js → chunk-5JRBOJYW.js} +1 -1
- package/dist/{chunk-DGZYM676.js → chunk-6LQEDP2W.js} +1 -1
- package/dist/{chunk-I4EHOHYH.js → chunk-75MSER3U.js} +1 -1
- package/dist/{chunk-RMWPSYJG.js → chunk-7SNBOQDD.js} +2 -2
- package/dist/{chunk-WFE2YHWQ.js → chunk-7YB4UGGI.js} +2 -2
- package/dist/{chunk-HIPEE6RH.js → chunk-AISKZTFX.js} +4 -4
- package/dist/{chunk-FUY7TPTQ.js → chunk-AORWV5JK.js} +1 -1
- package/dist/{chunk-UUMBN6AU.js → chunk-B4J3OPKE.js} +2 -2
- package/dist/{chunk-QOV5MVKT.js → chunk-BDVSELVT.js} +4 -4
- package/dist/{chunk-OPBYHXZP.js → chunk-CBBRVY77.js} +1 -1
- package/dist/{chunk-MOCDN7B3.js → chunk-CFPJRYNK.js} +1 -1
- package/dist/{chunk-247LVLEC.js → chunk-CQJ7567M.js} +3 -3
- package/dist/{chunk-AQB2LUX5.js → chunk-CRCC65FU.js} +11 -11
- package/dist/{chunk-JFUTFHB6.js → chunk-D7LVY2XF.js} +6 -6
- package/dist/{chunk-UJERPPET.js → chunk-DGNQLVYO.js} +2 -2
- package/dist/{chunk-FR7XIHSN.js → chunk-DNCH65TL.js} +10 -10
- package/dist/{chunk-XQNSJWFD.js → chunk-E3VDRPOZ.js} +5 -5
- package/dist/{chunk-Q7W4TEWC.js → chunk-ETPJJ6Y6.js} +3 -3
- package/dist/{chunk-PWJ2YNLB.js → chunk-HNSTXU6Y.js} +1 -1
- package/dist/{chunk-4DTKZQKO.js → chunk-HS4RZZRG.js} +1 -1
- package/dist/{chunk-F75727GN.js → chunk-HTMMJASM.js} +33 -6
- package/dist/{chunk-A6TVXDTE.js → chunk-HXLCATVW.js} +2 -2
- package/dist/{chunk-LS2VJJFJ.js → chunk-IKUJZYFH.js} +19 -12
- package/dist/{chunk-4SHFFJTL.js → chunk-JWXEPWQ6.js} +7 -7
- package/dist/{chunk-JKD642VE.js → chunk-JZOXTGTD.js} +3 -3
- package/dist/{chunk-SYO4XLTG.js → chunk-KH3U44ZK.js} +7 -3
- package/dist/{chunk-SUUATETY.js → chunk-KNCMUCKG.js} +1 -1
- package/dist/{chunk-I3ZOD5I4.js → chunk-LWWFQHJR.js} +3 -3
- package/dist/{chunk-5STI67CK.js → chunk-MGAEFOGL.js} +5 -5
- package/dist/{chunk-B3STTU5D.js → chunk-MP3IANXU.js} +22 -6
- package/dist/{chunk-X3TBNXPX.js → chunk-MX6HK3UN.js} +3 -3
- package/dist/{chunk-XTFN2YTA.js → chunk-N4QFPPSM.js} +3 -3
- package/dist/{chunk-6ZYUYRR2.js → chunk-N62TAZJE.js} +3 -3
- package/dist/{chunk-RHQ5FDU4.js → chunk-OOE354IG.js} +29 -11
- package/dist/{chunk-PHFQV5MO.js → chunk-OXGT7OTC.js} +63 -24
- package/dist/{chunk-WHDNAGFI.js → chunk-P4RSWFWB.js} +5 -5
- package/dist/{chunk-JTZMPMXH.js → chunk-PGGYS32J.js} +1 -1
- package/dist/{chunk-YGRPTTER.js → chunk-POVKTTKE.js} +2 -2
- package/dist/{chunk-KCSTT6KQ.js → chunk-PTHC2H7E.js} +1 -1
- package/dist/{chunk-72EKTJ2U.js → chunk-PW7WIT6J.js} +5 -5
- package/dist/{chunk-23W7FAZL.js → chunk-QKCWDUQQ.js} +5 -5
- package/dist/{chunk-BYYU5QS3.js → chunk-QSVIT62Y.js} +1 -1
- package/dist/{chunk-TQDTYV27.js → chunk-QZZU4VHH.js} +1 -1
- package/dist/{chunk-M2S6BBSR.js → chunk-R6XDTP7G.js} +6 -6
- package/dist/{chunk-2SHEWMGU.js → chunk-R7ZVCOXR.js} +2 -2
- package/dist/{chunk-ZEVNSFFV.js → chunk-RBKBFQ3D.js} +4 -4
- package/dist/{chunk-AXJCUWLD.js → chunk-RDFQOEPF.js} +6 -6
- package/dist/{chunk-YB64X4IQ.js → chunk-RG3REA2Y.js} +1 -1
- package/dist/{chunk-WGGEF3XC.js → chunk-RGPYEMW5.js} +5 -5
- package/dist/{chunk-O4E4ISTO.js → chunk-RILOBL2B.js} +2 -2
- package/dist/{chunk-SJUE6CFP.js → chunk-RJTCIOHI.js} +6 -4
- package/dist/{chunk-VEOVR6Z2.js → chunk-RMNOELSS.js} +1 -1
- package/dist/{chunk-LXWHMYOS.js → chunk-RYT23NAI.js} +3 -3
- package/dist/{chunk-RDECWGBJ.js → chunk-SCZELAXA.js} +1 -1
- package/dist/{chunk-P4VF3DZW.js → chunk-SH2WBJ5M.js} +1 -1
- package/dist/{chunk-3RUQKPHU.js → chunk-SHYBUXSP.js} +7 -7
- package/dist/{chunk-XKFL7XBP.js → chunk-SXMJ7NAN.js} +1 -1
- package/dist/{chunk-CDWR23BU.js → chunk-T5RPPEUL.js} +10 -10
- package/dist/{chunk-VCTMCQCU.js → chunk-TTE7QIW5.js} +2 -2
- package/dist/{chunk-CFWOZBUQ.js → chunk-UQQE37KU.js} +6 -6
- package/dist/{chunk-OMJ6ISJW.js → chunk-VLSSUMFC.js} +2 -2
- package/dist/{chunk-6KMMY7DI.js → chunk-W6KQY5RJ.js} +5 -5
- package/dist/{chunk-VU7LK6KI.js → chunk-WFUWF4QY.js} +24 -19
- package/dist/{chunk-2BVH7JC7.js → chunk-WIN65UQX.js} +13 -13
- package/dist/{chunk-DQGTFUXX.js → chunk-X2ITLLIV.js} +5 -5
- package/dist/{chunk-DFA42X45.js → chunk-XEFPE5MQ.js} +4 -4
- package/dist/{chunk-QM3YURHW.js → chunk-YC3MEGKX.js} +3 -3
- package/dist/{chunk-ECG372D5.js → chunk-YUQAIO4Z.js} +1 -1
- package/dist/{chunk-57E7NOZO.js → chunk-ZERUCHT6.js} +4 -4
- package/dist/{chunk-FWPN4AHK.js → chunk-ZEXFK5YS.js} +4 -4
- package/dist/{chunk-OK3GVZNU.js → chunk-ZQ4YBCVO.js} +2 -2
- package/dist/{codex-app-cards-switch-WV7RKIVN.js → codex-app-cards-switch-MO5LT4NK.js} +11 -11
- package/dist/{codex-card-routing-HQRJF2NY.js → codex-card-routing-7NYNHVLU.js} +2 -2
- package/dist/{codex-desktop-launch-LDA7CWEX.js → codex-desktop-launch-JBQBWPED.js} +1 -1
- package/dist/{codex-session-launch-LS75CYUV.js → codex-session-launch-N7PFVCBO.js} +20 -20
- package/dist/{config-WFIMGEI5.js → config-NJ6EGXZF.js} +3 -3
- package/dist/{global-upgrade-XMQVRK7X.js → global-upgrade-XTTSGSGC.js} +9 -9
- package/dist/{identity-J5O4WLQQ.js → identity-6BMMEYWU.js} +4 -4
- package/dist/{live-capabilities-JMVAIHR3.js → live-capabilities-4TXTJ7R2.js} +4 -4
- package/dist/{paths-OFQDG25M.js → paths-IIV4U3NA.js} +3 -3
- package/dist/reapply-EPHMTGFP.js +75 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +35 -35
- package/dist/{upgrade-lock-77W22ICV.js → upgrade-lock-HZ66QJKL.js} +4 -4
- package/dist/{usage-MQWUFNYJ.js → usage-NEZ2357Z.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-JTMPSOEG.js +0 -75
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-X2ITLLIV.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-322DR4ZT.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ETPJJ6Y6.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HXLCATVW.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RG3REA2Y.js";
|
|
26
26
|
import {
|
|
27
27
|
ASK_AGENT_NAME_MAX,
|
|
28
28
|
CLIENT_REPORT_PATH,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
isRecord,
|
|
38
38
|
truncateLine,
|
|
39
39
|
waitEndAnswered
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-HTMMJASM.js";
|
|
41
41
|
|
|
42
42
|
// src/api.ts
|
|
43
43
|
import { randomUUID } from "crypto";
|
|
@@ -51,12 +51,12 @@ var isPolicyConfig = (data) => {
|
|
|
51
51
|
var isAskUserResponse = (data) => {
|
|
52
52
|
if (!data || typeof data !== "object") return false;
|
|
53
53
|
const d = data;
|
|
54
|
-
return typeof d.correlationId === "string" && typeof d.status === "string" && (d.answered === void 0 || typeof d.answered === "boolean") && (d.value === void 0 || typeof d.value === "string") && (d.note === void 0 || typeof d.note === "string") && (d.waitEndsAt === void 0 || typeof d.waitEndsAt === "string");
|
|
54
|
+
return typeof d.correlationId === "string" && typeof d.status === "string" && (d.typedAnswer === void 0 || d.typedAnswer === true) && (d.answered === void 0 || typeof d.answered === "boolean") && (d.value === void 0 || typeof d.value === "string") && (d.note === void 0 || typeof d.note === "string") && (d.waitEndsAt === void 0 || typeof d.waitEndsAt === "string");
|
|
55
55
|
};
|
|
56
56
|
var isWaitForAnswerResponse = (data) => {
|
|
57
57
|
if (!data || typeof data !== "object") return false;
|
|
58
58
|
const d = data;
|
|
59
|
-
return typeof d.answered === "boolean";
|
|
59
|
+
return typeof d.answered === "boolean" && (d.typedAnswer === void 0 || d.typedAnswer === true);
|
|
60
60
|
};
|
|
61
61
|
var GATE_REPLY_KINDS = ["kill", "allow", "deny", "ask", "no_opinion"];
|
|
62
62
|
var isSettlementOutputs = (value) => {
|
|
@@ -237,16 +237,17 @@ var exitAfterClientReports = async (code) => {
|
|
|
237
237
|
};
|
|
238
238
|
var causeOf = (error) => error instanceof Error ? error.cause : void 0;
|
|
239
239
|
var clientErrorKindOf = (error) => isNetworkFailure(error) || isNetworkFailure(causeOf(error)) ? "network" : "unexpected";
|
|
240
|
-
var writeDegraded = (subsystem, report) => {
|
|
240
|
+
var writeDegraded = (subsystem, report, message) => {
|
|
241
241
|
process.stderr.write(`${degradedLine(subsystem, report)}
|
|
242
242
|
`);
|
|
243
|
-
void reportClientError({ kind: "degraded", code: `${subsystem}:${report.reason}
|
|
243
|
+
void reportClientError({ kind: "degraded", code: `${subsystem}:${report.reason}`, ...message === void 0 ? {} : { message } });
|
|
244
244
|
};
|
|
245
245
|
|
|
246
246
|
// src/api.ts
|
|
247
247
|
installNetworkDefaults();
|
|
248
248
|
var isDecisionStopped = (result) => isDecisionStoppedReply(result);
|
|
249
249
|
var isAwayPaused = (result) => result.paused === true;
|
|
250
|
+
var isStoredPastThePushCap = (result) => result.overflow === true;
|
|
250
251
|
var isLocalQuestionHandoff = (result) => !isAwayPaused(result) && (result.suppressed === true || result.noDevices === true || result.status === "terminal" || result.status === "notified");
|
|
251
252
|
var waitsForThePhone = (result) => result.answered !== true && !isAwayPaused(result) && !isLocalQuestionHandoff(result);
|
|
252
253
|
var STOPPED = { answered: false, handoffAction: "stop" };
|
|
@@ -332,7 +333,7 @@ var isLeftOpen = (answer) => answer.status === LEFT_OPEN.status;
|
|
|
332
333
|
var WAIT_END_TIMEOUT_MS = 2e3;
|
|
333
334
|
var isAnswerValue = (value) => typeof value === "string" && value.length > 0;
|
|
334
335
|
var isAbsentOrNote = (note) => note === void 0 || typeof note === "string";
|
|
335
|
-
var answeredWaitEndOf = (body) => isAnswerValue(body.value) && isAbsentOrNote(body.note) ? waitEndAnswered(body.value, body.note ?? null) : WAIT_END_CLOSED;
|
|
336
|
+
var answeredWaitEndOf = (body) => isAnswerValue(body.value) && isAbsentOrNote(body.note) ? waitEndAnswered(body.value, body.note ?? null, body.typedAnswer === true) : WAIT_END_CLOSED;
|
|
336
337
|
var readWaitEndReply = (body) => {
|
|
337
338
|
if (!isRecord(body)) return WAIT_END_CLOSED;
|
|
338
339
|
switch (body.kind) {
|
|
@@ -352,7 +353,12 @@ var endWait = async (apiKey, request, signal) => {
|
|
|
352
353
|
return WAIT_END_CLOSED;
|
|
353
354
|
}
|
|
354
355
|
};
|
|
355
|
-
var answerOfAnEndedWait = (reply) =>
|
|
356
|
+
var answerOfAnEndedWait = (reply) => ({
|
|
357
|
+
answered: true,
|
|
358
|
+
value: reply.value,
|
|
359
|
+
...reply.note === void 0 ? {} : { note: reply.note },
|
|
360
|
+
...reply.typedAnswer ? { typedAnswer: true } : {}
|
|
361
|
+
});
|
|
356
362
|
var settleAnEndedWait = (reply, withdraw, signal) => {
|
|
357
363
|
if (reply.kind === "answered") return Promise.resolve(answerOfAnEndedWait(reply));
|
|
358
364
|
if (signal?.aborted) return Promise.resolve(ABANDONED_WAIT);
|
|
@@ -508,6 +514,7 @@ export {
|
|
|
508
514
|
askingProcessWaits,
|
|
509
515
|
isDecisionStopped,
|
|
510
516
|
isAwayPaused,
|
|
517
|
+
isStoredPastThePushCap,
|
|
511
518
|
isLocalQuestionHandoff,
|
|
512
519
|
waitsForThePhone,
|
|
513
520
|
isQuestionLimitRefusal,
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7SNBOQDD.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7YB4UGGI.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PTHC2H7E.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YC3MEGKX.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-RYT23NAI.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RG3REA2Y.js";
|
|
24
24
|
import {
|
|
25
25
|
EXIT
|
|
26
26
|
} from "./chunk-BG4HHB7E.js";
|
|
27
27
|
import {
|
|
28
28
|
KEY_SCOPE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HTMMJASM.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AORWV5JK.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-SCZELAXA.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-HTMMJASM.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
serviceNodeFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D7LVY2XF.js";
|
|
4
4
|
import {
|
|
5
5
|
OWNER_ONLY_FILE_MODE,
|
|
6
6
|
readOwnerOnlyJson
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
plannedGlobalPackage,
|
|
10
10
|
readGlobalPrefix
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MP3IANXU.js";
|
|
12
12
|
import {
|
|
13
13
|
globalTranscriptRegisterEntry
|
|
14
14
|
} from "./chunk-CXQWDQCJ.js";
|
|
@@ -64,7 +64,11 @@ var installedHermesHistoryHelper = (execPath) => {
|
|
|
64
64
|
const entry = globalTranscriptRegisterEntry(prefix, plannedGlobalPackage(), process.platform);
|
|
65
65
|
return hermesHistoryHelperRecordFor(serviceNodeFor(execPath, existsSync), entry);
|
|
66
66
|
};
|
|
67
|
-
var recordInstalledHermesHistoryHelper = (pusharyDirectory, execPath = process.execPath) =>
|
|
67
|
+
var recordInstalledHermesHistoryHelper = (pusharyDirectory, execPath = process.execPath, platform = process.platform) => {
|
|
68
|
+
const record = installedHermesHistoryHelper(execPath);
|
|
69
|
+
if (platform === "win32") return record?.command.every((part) => existsSync(part)) ? { kind: "on_path" } : { kind: "helper_not_installed" };
|
|
70
|
+
return writeHermesHistoryHelperRecord(record, hermesHistoryHelperRecordPath(pusharyDirectory));
|
|
71
|
+
};
|
|
68
72
|
|
|
69
73
|
export {
|
|
70
74
|
hermesHistoryNeedsTheCliHelper,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSseMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X2ITLLIV.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-322DR4ZT.js";
|
|
7
7
|
import {
|
|
8
8
|
NPX_LATEST_COMMAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SCZELAXA.js";
|
|
10
10
|
|
|
11
11
|
// src/mcp-stdio-bridge.ts
|
|
12
12
|
var MCP_BRIDGE_BINARY = "pushary-mcp";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RBKBFQ3D.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OXGT7OTC.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HS4RZZRG.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-HXLCATVW.js";
|
|
23
23
|
import {
|
|
24
24
|
HOOK_COMPATIBLE_PROFILES,
|
|
25
25
|
PHONE_ANSWERED_TOOLS,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
pusharyMissingReason,
|
|
31
31
|
refusalOutput,
|
|
32
32
|
withHookHoldBudget
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-HTMMJASM.js";
|
|
34
34
|
|
|
35
35
|
// src/config-document.ts
|
|
36
36
|
import { parse, stringify } from "smol-toml";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HTMMJASM.js";
|
|
23
23
|
|
|
24
24
|
// src/shell-quote.ts
|
|
25
25
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -530,7 +530,22 @@ var npmHoldsReleasesBack = (rule) => rule.kind === "min_release_age" || rule.kin
|
|
|
530
530
|
var NPM_NOT_STARTED = { kind: "not_started" };
|
|
531
531
|
var SIGNALLED_EXIT_BASE = 128;
|
|
532
532
|
var exitCodeOfNpm = (code, signal) => code ?? (signal === null ? EXIT.FAILED : SIGNALLED_EXIT_BASE + osConstants.signals[signal]);
|
|
533
|
-
var npmLaunchFor = (args, platform
|
|
533
|
+
var npmLaunchFor = (args, platform, locate = (name) => resolvePathBinary(name, platform), exists = existsSync, globalPrefix = readGlobalPrefix) => {
|
|
534
|
+
if (platform !== "win32") return { command: "npm", args };
|
|
535
|
+
const npm = locate("npm");
|
|
536
|
+
if (!npm) return void 0;
|
|
537
|
+
if (win32.extname(npm).toLowerCase() === ".exe") return { command: npm, args };
|
|
538
|
+
const cliUnder = (prefix2) => win32.join(prefix2, "node_modules", "npm", "bin", "npm-cli.js");
|
|
539
|
+
const bundled = cliUnder(win32.dirname(npm));
|
|
540
|
+
const prefix = globalPrefix();
|
|
541
|
+
const upgraded = prefix && win32.isAbsolute(prefix) ? cliUnder(prefix) : void 0;
|
|
542
|
+
const cli = [upgraded, bundled].find((file) => file !== void 0 && exists(file));
|
|
543
|
+
if (!cli) return void 0;
|
|
544
|
+
const siblingNode = win32.join(win32.dirname(npm), "node.exe");
|
|
545
|
+
const node = exists(siblingNode) ? siblingNode : locate("node");
|
|
546
|
+
if (!node || win32.extname(node).toLowerCase() !== ".exe") return void 0;
|
|
547
|
+
return { command: node, args: [cli, ...args] };
|
|
548
|
+
};
|
|
534
549
|
var spellingOf = (name) => name.toLowerCase();
|
|
535
550
|
var npmTerminalEnvironment = (inherited, overrides) => {
|
|
536
551
|
const overridden = new Set(Object.keys(overrides).map(spellingOf));
|
|
@@ -539,10 +554,11 @@ var npmTerminalEnvironment = (inherited, overrides) => {
|
|
|
539
554
|
};
|
|
540
555
|
var runNpmInTerminal = (command) => new Promise((resolve2) => {
|
|
541
556
|
const launch = npmLaunchFor(command.args, process.platform);
|
|
557
|
+
if (!launch) return resolve2(NPM_NOT_STARTED);
|
|
542
558
|
const child = spawn(launch.command, [...launch.args], {
|
|
543
559
|
stdio: "inherit",
|
|
544
560
|
env: npmTerminalEnvironment(cleanNpmEnv(), command.env),
|
|
545
|
-
shell:
|
|
561
|
+
shell: false,
|
|
546
562
|
windowsHide: true
|
|
547
563
|
});
|
|
548
564
|
child.once("error", () => resolve2(NPM_NOT_STARTED));
|
|
@@ -582,9 +598,9 @@ var installGlobally = (options) => {
|
|
|
582
598
|
}
|
|
583
599
|
const started = (async () => {
|
|
584
600
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
585
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
586
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
587
|
-
const { autoUpdateLock } = await import("./paths-
|
|
601
|
+
const { withUpgradeLock } = await import("./global-upgrade-XTTSGSGC.js");
|
|
602
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-HZ66QJKL.js");
|
|
603
|
+
const { autoUpdateLock } = await import("./paths-IIV4U3NA.js");
|
|
588
604
|
let result = "skipped";
|
|
589
605
|
const install = async () => {
|
|
590
606
|
const planned = readPlannedSetupInstall(process.platform);
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-P6DUWKAO.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchAsCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-322DR4ZT.js";
|
|
8
8
|
import {
|
|
9
9
|
getBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RG3REA2Y.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-HTMMJASM.js";
|
|
19
19
|
|
|
20
20
|
// src/transcript-recipient-pin.ts
|
|
21
21
|
import { createHash } from "crypto";
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
NpmMissingError,
|
|
4
4
|
NpmPermissionError,
|
|
5
5
|
NpmReleaseAgeError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MP3IANXU.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-SCZELAXA.js";
|
|
13
13
|
import {
|
|
14
14
|
readSetupAgentFailures
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HTMMJASM.js";
|
|
16
16
|
|
|
17
17
|
// src/setup/config-write.ts
|
|
18
18
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
OPENCLAW_ENVIRONMENT_KEYS,
|
|
6
6
|
openClawEnvironmentOf,
|
|
7
7
|
openClawPathsFrom
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HXLCATVW.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MP3IANXU.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HTMMJASM.js";
|
|
15
15
|
|
|
16
16
|
// src/openclaw/wiring-state.ts
|
|
17
17
|
var OPENCLAW_PLUGIN_ID = "pushary";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
uninstallOpenClawPlugin,
|
|
14
14
|
unsetOpenClawEntry,
|
|
15
15
|
writeOpenClawEntry
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-N62TAZJE.js";
|
|
17
17
|
import {
|
|
18
18
|
needsShell
|
|
19
19
|
} from "./chunk-3PSNUHC5.js";
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
openClawDirectoriesToLookIn,
|
|
26
26
|
openClawPluginFolder,
|
|
27
27
|
openClawSetupReceiptDirectory
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HXLCATVW.js";
|
|
29
29
|
import {
|
|
30
30
|
resolvePathBinary
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MP3IANXU.js";
|
|
32
32
|
import {
|
|
33
33
|
readJsonSafe,
|
|
34
34
|
writeJsonAtomic
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./chunk-CXQWDQCJ.js";
|
|
40
40
|
import {
|
|
41
41
|
isRecord
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-HTMMJASM.js";
|
|
43
43
|
|
|
44
44
|
// src/hermes/plugin-payload.ts
|
|
45
45
|
import { createHash } from "crypto";
|
|
@@ -1341,7 +1341,7 @@ def _await_decision(request, created, correlation_id: str, offered, uses_select:
|
|
|
1341
1341
|
return _decided(request, correlation_id, "deny", None)
|
|
1342
1342
|
` },
|
|
1343
1343
|
{ path: "cancellation.py", contents: 'from __future__ import annotations\n\nfrom typing import Literal, Mapping, Tuple\n\nCancellation = Literal[\n "withdrawn_by_this_call",\n "cancelled_unproven",\n "already_cancelled",\n "not_pending",\n "unreachable",\n]\n\nWITHDRAWN_BY_THIS_CALL: Cancellation = "withdrawn_by_this_call"\nCANCELLED_UNPROVEN: Cancellation = "cancelled_unproven"\nALREADY_CANCELLED: Cancellation = "already_cancelled"\nNOT_PENDING: Cancellation = "not_pending"\nUNREACHABLE: Cancellation = "unreachable"\nCANCELLATIONS: Tuple[Cancellation, ...] = (\n WITHDRAWN_BY_THIS_CALL,\n CANCELLED_UNPROVEN,\n ALREADY_CANCELLED,\n NOT_PENDING,\n UNREACHABLE,\n)\n\nUNAVAILABLE_STATUS = "unavailable"\nSTOP_HANDOFF = "stop"\n\n\ndef classify_cancellation(response: object) -> Cancellation:\n if not isinstance(response, Mapping):\n return UNREACHABLE\n fields: Mapping[object, object] = response\n cancelled = fields.get("cancelled")\n by_this_call = fields.get("cancelledByThisCall")\n if (\n not isinstance(cancelled, bool)\n or fields.get("status") == UNAVAILABLE_STATUS\n or fields.get("handoffAction") == STOP_HANDOFF\n or (by_this_call is not None and not isinstance(by_this_call, bool))\n or (by_this_call is True and not cancelled)\n ):\n return UNREACHABLE\n if not cancelled:\n return NOT_PENDING\n if by_this_call is None:\n return CANCELLED_UNPROVEN\n return WITHDRAWN_BY_THIS_CALL if by_this_call else ALREADY_CANCELLED\n' },
|
|
1344
|
-
{ path: "dashboard/manifest.json", contents: '{\n "name": "pushary",\n "label": "Pushary",\n "description": "Approvals Pushary is carrying to your phone, answerable from Hermes Desktop",\n "version": "1.0.
|
|
1344
|
+
{ path: "dashboard/manifest.json", contents: '{\n "name": "pushary",\n "label": "Pushary",\n "description": "Approvals Pushary is carrying to your phone, answerable from Hermes Desktop",\n "version": "1.0.6",\n "tab": { "hidden": true },\n "entry": "web.js",\n "api": "plugin_api.py"\n}\n' },
|
|
1345
1345
|
{ path: "dashboard/plugin_api.py", contents: `import importlib
|
|
1346
1346
|
import sys
|
|
1347
1347
|
import time
|
|
@@ -1605,7 +1605,7 @@ import tempfile
|
|
|
1605
1605
|
import threading
|
|
1606
1606
|
import time
|
|
1607
1607
|
from datetime import datetime, timezone
|
|
1608
|
-
from pathlib import Path
|
|
1608
|
+
from pathlib import Path, PureWindowsPath
|
|
1609
1609
|
from typing import NamedTuple
|
|
1610
1610
|
|
|
1611
1611
|
from . import api
|
|
@@ -1793,7 +1793,7 @@ def _native_helper(root: Path) -> Path | None:
|
|
|
1793
1793
|
def _is_owner_only_file(info: os.stat_result) -> bool:
|
|
1794
1794
|
if not stat.S_ISREG(info.st_mode):
|
|
1795
1795
|
return False
|
|
1796
|
-
return
|
|
1796
|
+
return info.st_mode & 0o077 == 0 and info.st_uid == os.getuid()
|
|
1797
1797
|
|
|
1798
1798
|
|
|
1799
1799
|
def _owner_only_record_text(path: Path) -> str | None:
|
|
@@ -1821,6 +1821,8 @@ def _runnable_recorded_command(command: list[str]) -> list[str] | None:
|
|
|
1821
1821
|
|
|
1822
1822
|
|
|
1823
1823
|
def _recorded_cli_helper(root: Path) -> list[str] | None:
|
|
1824
|
+
if os.name == "nt":
|
|
1825
|
+
return None
|
|
1824
1826
|
try:
|
|
1825
1827
|
text = _owner_only_record_text(root / CLI_HELPER_RECORD)
|
|
1826
1828
|
value = None if text is None else json.loads(text)
|
|
@@ -1829,11 +1831,27 @@ def _recorded_cli_helper(root: Path) -> list[str] | None:
|
|
|
1829
1831
|
return _runnable_recorded_command(value["command"]) if _is_recorded_command(value) else None
|
|
1830
1832
|
|
|
1831
1833
|
|
|
1834
|
+
def _helper_on_path() -> str | None:
|
|
1835
|
+
if os.name != "nt":
|
|
1836
|
+
return shutil.which(CLI_HELPER_NAME)
|
|
1837
|
+
extensions = os.environ.get("PATHEXT", ".COM;.EXE;.BAT;.CMD").split(";")
|
|
1838
|
+
for directory in map(PureWindowsPath, os.get_exec_path()):
|
|
1839
|
+
if not directory.is_absolute():
|
|
1840
|
+
continue
|
|
1841
|
+
for extension in extensions:
|
|
1842
|
+
if extension.upper() not in {".EXE", ".COM", ".CMD", ".BAT"}:
|
|
1843
|
+
continue
|
|
1844
|
+
candidate = str(directory / (CLI_HELPER_NAME + extension))
|
|
1845
|
+
if os.path.isfile(candidate):
|
|
1846
|
+
return candidate
|
|
1847
|
+
return None
|
|
1848
|
+
|
|
1849
|
+
|
|
1832
1850
|
def _cli_helper(root: Path) -> list[str] | None:
|
|
1833
1851
|
recorded = _recorded_cli_helper(root)
|
|
1834
1852
|
if recorded is not None:
|
|
1835
1853
|
return recorded
|
|
1836
|
-
on_path =
|
|
1854
|
+
on_path = _helper_on_path()
|
|
1837
1855
|
return [on_path] if on_path else None
|
|
1838
1856
|
|
|
1839
1857
|
|
|
@@ -1876,10 +1894,10 @@ def _file_state(path: Path | None) -> tuple[int, ...] | None:
|
|
|
1876
1894
|
|
|
1877
1895
|
def _authorization_inputs(key: str) -> tuple[object, ...]:
|
|
1878
1896
|
root = Path.home() / ".pushary"
|
|
1879
|
-
helper =
|
|
1897
|
+
helper = _helper_on_path()
|
|
1880
1898
|
sources = (root / "native-transcript-consent.json", root / "bridge-auth", root / "bridge-auth" / "agent-key.json",
|
|
1881
1899
|
root / "machine-id", root / "bin" / "pushary-bridge", api.pushary_config_path(),
|
|
1882
|
-
Path(helper) if helper else None, root / CLI_HELPER_RECORD)
|
|
1900
|
+
Path(helper) if helper else None, root / CLI_HELPER_RECORD if os.name != "nt" else None)
|
|
1883
1901
|
return (key, api.BASE_URL, os.environ.get("PUSHARY_TRANSCRIPTS"), helper, *(_file_state(source) for source in sources))
|
|
1884
1902
|
|
|
1885
1903
|
|
|
@@ -2208,7 +2226,7 @@ def record_plugin_load(approval_transport_registered, home=None, pid=None, now=N
|
|
|
2208
2226
|
logger.debug("[pushary] could not record the plugin load: %s", exc)
|
|
2209
2227
|
return None
|
|
2210
2228
|
` },
|
|
2211
|
-
{ path: "plugin.yaml", contents: 'name: pushary\nversion: 1.0.
|
|
2229
|
+
{ path: "plugin.yaml", contents: 'name: pushary\nversion: 1.0.6\ndescription: Push notifications and human-in-the-loop for Hermes Agent via Pushary\nauthor: RalphNex OU\nrequires_env:\n - name: PUSHARY_API_KEY\n description: Your Pushary API key\n url: https://pushary.com/sign-up?from=hermes\n secret: true\nconfig_schema:\n api_key:\n type: secret\n env: PUSHARY_API_KEY\n label: Pushary API key\n description: "Get one at pushary.com/sign-up?from=hermes"\n required: true\nprovides_tools:\n - pushary_remind\n - pushary_notify\n - pushary_ask\n - pushary_wait\n - pushary_cancel\n - pushary_propose_scope\n - pushary_enroll\n - pushary_ask_end_user\nprovides_hooks:\n - pre_llm_call\n - pre_tool_call\n - post_tool_call\n - on_session_start\n - on_session_end\n - on_session_finalize\n - post_approval_response\nprovides_approval_transports:\n - pushary\n' },
|
|
2212
2230
|
{ path: "README.md", contents: "# Pushary for Hermes\n\nAsk a question in Hermes and answer it on your phone. Try it with your own device before routing command approvals there.\n\n## Connect your phone\n\n1. [Set up your Pushary Agent account](https://pushary.com/sign-up?from=ai-coding&utm_source=hermes-plugin&utm_medium=quickstart&utm_campaign=first-question). Pair your phone with that account and get its API key from Agent settings.\n2. In your terminal, install the catalog plugin:\n\n ```sh\n hermes plugins install pushary\n ```\n\n3. Enter `PUSHARY_API_KEY` when Hermes prompts for it. If you missed the prompt, save the key in the plugin\u2019s settings in Hermes Desktop. Keep it out of chat. Start a new Hermes session (for a running gateway, use `hermes gateway restart`).\n\n## Try one question\n\nTell Hermes: **Use `pushary_ask` to ask me \u201CDid this test reach your phone?\u201D Report my answer and do nothing else.** Open the question on your paired phone and tap **Yes** or **No**. Hermes should report the answer you tapped.\n\nIf nothing arrives, check the account and notification permissions on your phone. A pending question is still live: wait for the same question rather than sending another. If Pushary hands it back to Hermes, answer the local prompt instead. No answer is not approval.\n\nCommand approvals are separate from this test. To route them to your phone, set `security.approval.transport` to `pushary`. Set `security.approval.transport_fallback` to `builtin` if you want Hermes\u2019s local prompt after a safe handoff; an unconfirmed withdrawal does not authorize the command. See the [plugin guide](https://github.com/Pushary/hermes-plugin-pushary#readme) for approval routing and what the plugin reads and sends.\n" },
|
|
2213
2231
|
{ path: "schemas.py", contents: `PUSHARY_REMIND = {
|
|
2214
2232
|
"name": "pushary_remind",
|