pushary 1.9.199 → 1.9.204
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 +30 -32
- 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 +197 -92
- 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-LEUQ37WR.js → chunk-2Y7MJQCN.js} +2 -2
- package/dist/{chunk-LGV3U2KK.js → chunk-322DR4ZT.js} +1 -1
- package/dist/{chunk-WHDNAGFI.js → chunk-33GWNNFN.js} +5 -5
- 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-AVFPHV4N.js +10 -0
- 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-2BVH7JC7.js → chunk-CQP7P52T.js} +13 -13
- 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-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-NE6LKCGR.js} +4 -4
- package/dist/{chunk-PHFQV5MO.js → chunk-OXGT7OTC.js} +63 -24
- 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-HN6ABA2B.js → chunk-QKKNYXIU.js} +4 -4
- 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-DQGTFUXX.js → chunk-X2ITLLIV.js} +5 -5
- package/dist/{chunk-SYO4XLTG.js → chunk-XCULMPQO.js} +2 -2
- 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-RGEME3JA.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 +4 -1
- package/dist/reapply-JTMPSOEG.js +0 -75
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZQ4YBCVO.js";
|
|
4
4
|
import {
|
|
5
5
|
findNativeClaudeInstall
|
|
6
6
|
} from "./chunk-TCE3J44Z.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolvePackageVersionFromBinary,
|
|
13
13
|
resolvePathBinary,
|
|
14
14
|
resolvePathBinaryAsync
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MP3IANXU.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENTS,
|
|
18
18
|
CLAUDE_BRIDGE_CAPABILITY,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
OPENCODE_BRIDGE_CAPABILITY,
|
|
26
26
|
SPAWN_CAPABILITY,
|
|
27
27
|
sessionProvidersAdvertisedBy
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HTMMJASM.js";
|
|
29
29
|
|
|
30
30
|
// src/live-capabilities.ts
|
|
31
31
|
import { execFileSync } from "child_process";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hermesHistoryNeedsTheCliHelper,
|
|
3
3
|
recordInstalledHermesHistoryHelper
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XCULMPQO.js";
|
|
5
5
|
import {
|
|
6
6
|
macAppHistoryDecision
|
|
7
7
|
} from "./chunk-TWWOQKXK.js";
|
|
8
8
|
import {
|
|
9
9
|
ensureCodexTrustsPusharyHooks
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3W5OVQ66.js";
|
|
11
11
|
import {
|
|
12
12
|
hermesReceiptPaths,
|
|
13
13
|
hermesSetupPredatesThePluginFolder,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
refreshHermesPluginFiles,
|
|
17
17
|
refreshOpenClawPlugin,
|
|
18
18
|
shippedHermesPlugin
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NE6LKCGR.js";
|
|
20
20
|
import {
|
|
21
21
|
fxIgnoresInstructionsFile,
|
|
22
22
|
fxInstructionsBody,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
macAppFxBridge,
|
|
26
26
|
refreshClineKey,
|
|
27
27
|
switchFxHttpEntryToBridge
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2RJQKHS2.js";
|
|
29
29
|
import {
|
|
30
30
|
OPENCODE_HOOK_BINARY,
|
|
31
31
|
agentHookOwner,
|
|
@@ -38,16 +38,16 @@ import {
|
|
|
38
38
|
openCodePluginDir,
|
|
39
39
|
openCodeWired,
|
|
40
40
|
withOpenCodeAskRules
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-SHYBUXSP.js";
|
|
42
42
|
import {
|
|
43
43
|
detectClaudeVersion
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-ZQ4YBCVO.js";
|
|
45
45
|
import {
|
|
46
46
|
addCompatibleHooks,
|
|
47
47
|
compatibleConfigFile,
|
|
48
48
|
compatibleInstructionsFile,
|
|
49
49
|
hasCompatibleHooks
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-MGAEFOGL.js";
|
|
51
51
|
import {
|
|
52
52
|
GEMINI_HOOK_BINARY,
|
|
53
53
|
addGeminiHooks,
|
|
@@ -59,13 +59,13 @@ import {
|
|
|
59
59
|
geminiWired,
|
|
60
60
|
hasGeminiHooks,
|
|
61
61
|
planHooks
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-RBKBFQ3D.js";
|
|
63
63
|
import {
|
|
64
64
|
transcriptsEnabled
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-KNCMUCKG.js";
|
|
66
66
|
import {
|
|
67
67
|
KEY_FILE_MODE
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-RYT23NAI.js";
|
|
69
69
|
import {
|
|
70
70
|
CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
|
|
71
71
|
CLAUDE_HOOK_BINARY,
|
|
@@ -112,13 +112,13 @@ import {
|
|
|
112
112
|
renderAgentInstructions,
|
|
113
113
|
supportedClaudeEvents,
|
|
114
114
|
vscodePluginMcp
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-HXLCATVW.js";
|
|
116
116
|
import {
|
|
117
117
|
formatVersion,
|
|
118
118
|
hookCommandsUseBareNames,
|
|
119
119
|
resolveGlobalBinDir,
|
|
120
120
|
resolveGlobalBinary
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-MP3IANXU.js";
|
|
122
122
|
import {
|
|
123
123
|
readJsonSafe,
|
|
124
124
|
writeFileAtomic,
|
|
@@ -128,7 +128,7 @@ import {
|
|
|
128
128
|
HOOK_COMPATIBLE_PROFILES,
|
|
129
129
|
isCompatibleAgentType,
|
|
130
130
|
isRecord
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-HTMMJASM.js";
|
|
132
132
|
|
|
133
133
|
// src/reapply.ts
|
|
134
134
|
import { dirname, join } from "path";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
announceSubscriptionRequired,
|
|
3
3
|
isDeferAnswer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YUQAIO4Z.js";
|
|
5
5
|
import {
|
|
6
6
|
askUser,
|
|
7
7
|
isDecisionStopped,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
isThePersonsStop,
|
|
10
10
|
waitForOpenQuestion,
|
|
11
11
|
waitForQuestion
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IKUJZYFH.js";
|
|
13
13
|
import {
|
|
14
14
|
SubscriptionRequiredError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-X2ITLLIV.js";
|
|
16
16
|
import {
|
|
17
17
|
getMachineId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6LQEDP2W.js";
|
|
19
19
|
import {
|
|
20
20
|
ASK_CONTEXT_MAX,
|
|
21
21
|
agentQuestionContext,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
parseAgentQuestionAnswers,
|
|
27
27
|
plainAskOf,
|
|
28
28
|
questionsShownAsASet
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HTMMJASM.js";
|
|
30
30
|
|
|
31
31
|
// src/agent-question-ask.ts
|
|
32
32
|
var ONLY_QUESTION = { index: 0, total: 1 };
|
|
@@ -69,8 +69,8 @@ var questionContext = (question, index, total, project) => {
|
|
|
69
69
|
};
|
|
70
70
|
var legacyAnswerMap = (question, value) => JSON.stringify({ [question.question]: question.multiSelect ? JSON.stringify([value]) : value });
|
|
71
71
|
var answerInTheEarlierForm = (question, value) => isTypedAnswerQuestion(question) ? null : parseAgentQuestionAnswers([question], legacyAnswerMap(question, value));
|
|
72
|
-
var answersOnOneCard = (question, value) => answersToQuestionsAsAsked([question], value) ?? answerInTheEarlierForm(question, value);
|
|
73
|
-
var answersToTheCard = (question, value) => richCardOf(question) ? answersToQuestionsAsAsked([question], value) : answersOnOneCard(question, value);
|
|
72
|
+
var answersOnOneCard = (question, value, typedAnswer = false) => answersToQuestionsAsAsked([question], value, typedAnswer) ?? answerInTheEarlierForm(question, value);
|
|
73
|
+
var answersToTheCard = (question, value, typedAnswer = false) => richCardOf(question) ? answersToQuestionsAsAsked([question], value, typedAnswer) : answersOnOneCard(question, value, typedAnswer);
|
|
74
74
|
var oneCardAsk = (call, only, position = ONLY_QUESTION) => ({
|
|
75
75
|
question: only.question,
|
|
76
76
|
...cardOf(only),
|
|
@@ -82,8 +82,8 @@ var oneCardAsk = (call, only, position = ONLY_QUESTION) => ({
|
|
|
82
82
|
toolUseId: positionedToolUseId(call.toolUseId, position)
|
|
83
83
|
});
|
|
84
84
|
var outcomeOfOneCardAnswer = (only, answer) => {
|
|
85
|
-
const values = answer.answered && answer.value ? answersToTheCard(only, answer.value) : null;
|
|
86
|
-
if (!values || isDeferAnswer(answer.value)) {
|
|
85
|
+
const values = answer.answered && answer.value ? answersToTheCard(only, answer.value, answer.typedAnswer) : null;
|
|
86
|
+
if (!values || !answer.typedAnswer && isDeferAnswer(answer.value)) {
|
|
87
87
|
return UNANSWERED;
|
|
88
88
|
}
|
|
89
89
|
return answeredWith(values);
|
|
@@ -139,9 +139,9 @@ var askQuestionByQuestion = async (apiKey, call, questions) => {
|
|
|
139
139
|
const answer = await waitForQuestion(apiKey, result, storedWaitDeadline(result, call.deadline), void 0, call.signal);
|
|
140
140
|
if (isDecisionStopped(answer)) return STOPPED;
|
|
141
141
|
const legacyValue = answer.answered ? answer.value?.trim() : void 0;
|
|
142
|
-
const values = legacyValue ? answersOnOneCard(question, legacyValue) : null;
|
|
142
|
+
const values = legacyValue ? answersOnOneCard(question, legacyValue, answer.typedAnswer) : null;
|
|
143
143
|
const value = values?.[question.question];
|
|
144
|
-
if (!value || isDeferAnswer(answer.value)) {
|
|
144
|
+
if (!value || !answer.typedAnswer && isDeferAnswer(answer.value)) {
|
|
145
145
|
return UNANSWERED;
|
|
146
146
|
}
|
|
147
147
|
answers[question.question] = value;
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
} from "./chunk-3PSNUHC5.js";
|
|
5
5
|
import {
|
|
6
6
|
getMachineId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6LQEDP2W.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RYT23NAI.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HXLCATVW.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveGlobalBinary
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MP3IANXU.js";
|
|
17
17
|
import {
|
|
18
18
|
getApiKey
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RG3REA2Y.js";
|
|
20
20
|
import {
|
|
21
21
|
readJsonSafe,
|
|
22
22
|
writeFileAtomic,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-CXQWDQCJ.js";
|
|
33
33
|
import {
|
|
34
34
|
isRecord
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-HTMMJASM.js";
|
|
36
36
|
|
|
37
37
|
// src/daemon-entry-guard.ts
|
|
38
38
|
import { mkdirSync, readFileSync } from "fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callDecisionStore,
|
|
3
3
|
identifyingToolInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OXGT7OTC.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalJson
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HXLCATVW.js";
|
|
8
8
|
|
|
9
9
|
// src/phone-approval.ts
|
|
10
10
|
import { createHash } from "crypto";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-WHB622LP.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureDaemonRunning
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-D7LVY2XF.js";
|
|
7
7
|
import {
|
|
8
8
|
hookOwnerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RBKBFQ3D.js";
|
|
10
10
|
import {
|
|
11
11
|
hookMeaning
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HS4RZZRG.js";
|
|
13
13
|
import {
|
|
14
14
|
buildTranscriptRecords,
|
|
15
15
|
changedRecipientsMessage,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
uploadTranscriptRecords,
|
|
25
25
|
verifyAnchoredRecipients,
|
|
26
26
|
wrapSessionKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MX6HK3UN.js";
|
|
28
28
|
import {
|
|
29
29
|
external_exports,
|
|
30
30
|
ownedOnlyByThisUser,
|
|
@@ -33,22 +33,22 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
transcriptEnvironmentPreference,
|
|
35
35
|
transcriptsEnabled
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-KNCMUCKG.js";
|
|
37
37
|
import {
|
|
38
38
|
fetchAsCredential
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-322DR4ZT.js";
|
|
40
40
|
import {
|
|
41
41
|
readTranscriptPreference
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-RYT23NAI.js";
|
|
43
43
|
import {
|
|
44
44
|
claudeConfigDir,
|
|
45
45
|
codexHome,
|
|
46
46
|
pusharyDir
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-HXLCATVW.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiKey,
|
|
50
50
|
getBaseUrl
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-RG3REA2Y.js";
|
|
52
52
|
import {
|
|
53
53
|
writeJsonAtomic,
|
|
54
54
|
writeJsonAtomicDurable
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
isHookSource,
|
|
61
61
|
isRecord,
|
|
62
62
|
redactSecretsFromContent
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-HTMMJASM.js";
|
|
64
64
|
|
|
65
65
|
// src/transcript-registration.ts
|
|
66
66
|
import { createHash as createHash4 } from "crypto";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openClawLauncherCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N62TAZJE.js";
|
|
4
4
|
import {
|
|
5
5
|
openCodeConfigDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SHYBUXSP.js";
|
|
7
7
|
import {
|
|
8
8
|
nativeClaudeInstallPath
|
|
9
9
|
} from "./chunk-TCE3J44Z.js";
|
|
10
10
|
import {
|
|
11
11
|
grokHome
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MGAEFOGL.js";
|
|
13
13
|
import {
|
|
14
14
|
claudeConfigDir,
|
|
15
15
|
clineDataDirectory,
|
|
16
16
|
codexHomeFrom,
|
|
17
17
|
openClawEnvironmentOf,
|
|
18
18
|
openClawPathsFrom
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HXLCATVW.js";
|
|
20
20
|
import {
|
|
21
21
|
HOOK_COMPATIBLE_PROFILES
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HTMMJASM.js";
|
|
23
23
|
|
|
24
24
|
// src/vscode-config.ts
|
|
25
25
|
import { homedir } from "os";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readExistingMachineId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6LQEDP2W.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RG3REA2Y.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-HTMMJASM.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/net.ts
|
|
19
19
|
import { createRequire } from "module";
|
|
@@ -4721,7 +4721,12 @@ var CLAUDE_INBOX_SETTLEMENTS = {
|
|
|
4721
4721
|
var WAIT_END_PATH = "/api/agent/decision/wait-ended";
|
|
4722
4722
|
var WAIT_END_CLOSED = { kind: "closed" };
|
|
4723
4723
|
var WAIT_END_OPEN = { kind: "open" };
|
|
4724
|
-
var waitEndAnswered = (value, note
|
|
4724
|
+
var waitEndAnswered = (value, note, typedAnswer = false) => ({
|
|
4725
|
+
kind: "answered",
|
|
4726
|
+
value,
|
|
4727
|
+
...note === null ? {} : { note },
|
|
4728
|
+
...typedAnswer ? { typedAnswer: true } : {}
|
|
4729
|
+
});
|
|
4725
4730
|
|
|
4726
4731
|
// ../contracts/src/index.ts
|
|
4727
4732
|
var APPROVAL_MODES = ["push_only", "terminal_only", "push_first", "notify_only"];
|
|
@@ -4789,17 +4794,17 @@ var roundTripAsk = (agentName) => ({ question: ROUND_TRIP_QUESTION, type: "confi
|
|
|
4789
4794
|
var AGENT_STOP_DEFAULT_SECONDS = 3600;
|
|
4790
4795
|
var TIMEOUT_ACTIONS = ["approve", "deny", "escalate", "wait"];
|
|
4791
4796
|
var isTimeoutAction = (value) => typeof value === "string" && TIMEOUT_ACTIONS.includes(value);
|
|
4792
|
-
var typedTextAsAnswers = (questions, text3) => {
|
|
4797
|
+
var typedTextAsAnswers = (questions, text3, typedAnswer = false) => {
|
|
4793
4798
|
const [only, ...others] = questions;
|
|
4794
4799
|
if (!only || others.length > 0 || !isTypedAnswerQuestion(only)) return null;
|
|
4795
|
-
if (text3.trim().length === 0 || isHandBackAnswer(text3)) return null;
|
|
4800
|
+
if (text3.trim().length === 0 || !typedAnswer && isHandBackAnswer(text3)) return null;
|
|
4796
4801
|
return { [only.question]: text3 };
|
|
4797
4802
|
};
|
|
4798
4803
|
var plainAskOf = (question) => isTypedAnswerQuestion(question) ? { type: "input" } : { type: "select", options: question.options.map((option) => option.label) };
|
|
4799
4804
|
var isLoneTypedAnswerQuestion = (questions) => questions.length === 1 && questions.every(isTypedAnswerQuestion);
|
|
4800
4805
|
var questionsShownAsASet = (questions) => isLoneTypedAnswerQuestion(questions) ? void 0 : questions;
|
|
4801
4806
|
var agentQuestionContext = (header, project) => header ? `${header}: your agent is asking in ${project}` : `Your agent is asking in ${project}`;
|
|
4802
|
-
var answersToQuestionsAsAsked = (questions, answer) => questionsShownAsASet(questions) ? parseAgentQuestionAnswers(questions, answer) : typedTextAsAnswers(questions, answer);
|
|
4807
|
+
var answersToQuestionsAsAsked = (questions, answer, typedAnswer = false) => typedAnswer && questions.length === 1 && questions[0] && answer.trim() ? { [questions[0].question]: answer } : questionsShownAsASet(questions) ? parseAgentQuestionAnswers(questions, answer) : typedTextAsAnswers(questions, answer, typedAnswer);
|
|
4803
4808
|
var INSTALL_SOURCES = [
|
|
4804
4809
|
/** `npx pushary@latest ...`, the documented one-liner. */
|
|
4805
4810
|
"npx",
|
|
@@ -4863,6 +4868,7 @@ var SUPPORT_EMAIL = "business@pushary.com";
|
|
|
4863
4868
|
var SUPPORT_DISCORD = "https://discord.gg/9v3VvUByrr";
|
|
4864
4869
|
var HOOK_VERSION_PATTERN = /^\d+\.\d+\.\d+$/;
|
|
4865
4870
|
var HOOK_LOCATOR_BINARY = "pushary-bridge";
|
|
4871
|
+
var HOOK_CWD_MAX_LENGTH = 4096;
|
|
4866
4872
|
var isTokenCount = (value) => typeof value === "number" && Number.isInteger(value) && value >= 0;
|
|
4867
4873
|
var reportableSessionId = (value) => typeof value === "string" && value.length > 0 && value.length <= SESSION_ID_MAX_LENGTH ? value : null;
|
|
4868
4874
|
var HOOK_BATCH_MAX_BYTES = 4 * 1024 * 1024;
|
|
@@ -9391,6 +9397,13 @@ var FILE_EDIT_TOOLS = /* @__PURE__ */ new Set([
|
|
|
9391
9397
|
"MultiEdit",
|
|
9392
9398
|
"NotebookEdit"
|
|
9393
9399
|
]);
|
|
9400
|
+
var TOOL_PATH_MAX_LENGTH = 4096;
|
|
9401
|
+
var isAskableToolPath = (path) => path.startsWith("/") && path.length <= TOOL_PATH_MAX_LENGTH;
|
|
9402
|
+
var askableToolPathOf = (toolName, toolInput) => {
|
|
9403
|
+
if (!FILE_EDIT_TOOLS.has(toolName)) return void 0;
|
|
9404
|
+
const path = extractPolicyArg(toolName, toolInput);
|
|
9405
|
+
return path !== void 0 && isAskableToolPath(path) ? path : void 0;
|
|
9406
|
+
};
|
|
9394
9407
|
var shouldDeferToNativeMode = (permissionMode, toolName, options = {}) => {
|
|
9395
9408
|
if (options.respectPermissionMode === false) return false;
|
|
9396
9409
|
if (typeof permissionMode !== "string") return false;
|
|
@@ -9647,6 +9660,17 @@ var resolveGate = (rawInput) => {
|
|
|
9647
9660
|
const verdict = underEachArrowReading(() => gateVerdictUnderOneArrowReading(rawInput)).reduce(strictestGateVerdictOf);
|
|
9648
9661
|
return verdict.kind === "gate" ? { ...verdict, policy: withApprovalRouteWait(rawInput, verdict.policy) } : verdict;
|
|
9649
9662
|
};
|
|
9663
|
+
var resolvedToolInputsOf = (input) => input.toolInputs.map((toolInput) => ({
|
|
9664
|
+
toolInput,
|
|
9665
|
+
policy: resolvePolicy(input.config, input.toolName, input.modeState.mode, toolInput, input.cwd, input.sharedRepoKey ?? input.repoKey, input.sessionId)
|
|
9666
|
+
}));
|
|
9667
|
+
var policyOfResolvedToolInput = (resolved) => resolved.policy;
|
|
9668
|
+
var governingToolInputOf = (input) => {
|
|
9669
|
+
const resolved = resolvedToolInputsOf(input);
|
|
9670
|
+
if (resolved.length === 0) return void 0;
|
|
9671
|
+
const strictest = resolved.map(policyOfResolvedToolInput).reduce(strictestPolicy);
|
|
9672
|
+
return resolved.find((candidate) => candidate.policy === strictest)?.toolInput;
|
|
9673
|
+
};
|
|
9650
9674
|
var noModeOverrideIsActive = (input) => (input.modeState.mode ?? input.config.modeOverride ?? null) === null;
|
|
9651
9675
|
var editAsksAtTheAgentsPrompt = (input, verdict) => verdict.kind === "gate" && !verdict.scopeReason && noModeOverrideIsActive(input) && !aChosenRuleGoverns(input) && verdict.policy.mode === "push_first" && FILE_EDIT_TOOLS.has(input.toolName);
|
|
9652
9676
|
var claudePromptsBeforeAnEdit = (permissionMode) => permissionMode === "default";
|
|
@@ -9664,7 +9688,7 @@ var codexRaisesItsOwnPrompts = (permissionMode) => !isBypassPermissionMode(permi
|
|
|
9664
9688
|
var codexHasNoPromptOfItsOwn = (scopeReason, permissionMode) => scopeReason !== void 0 || !codexRaisesItsOwnPrompts(permissionMode);
|
|
9665
9689
|
var CODEX_ASK_PASSES = { kind: "pass" };
|
|
9666
9690
|
var codexAskUnanswered = (ask) => ({ kind: "deny", reason: unansweredRefusalReason(ask.paused) });
|
|
9667
|
-
var ruleApprovesAfterItsFullWindow = (ask) => ask.mode === "push_only" && ask.fullWindowServed && ask.timeoutAction === "approve";
|
|
9691
|
+
var ruleApprovesAfterItsFullWindow = (ask) => ask.mode === "push_only" && ask.fullWindowServed && !ask.paused && ask.timeoutAction === "approve";
|
|
9668
9692
|
var codexUnansweredPreToolUse = (ask) => ruleApprovesAfterItsFullWindow(ask) ? CODEX_ASK_PASSES : codexAskUnanswered(ask);
|
|
9669
9693
|
var HANDED_BACK_REASON = "Handling on your machine";
|
|
9670
9694
|
var HAND_BACK_TO_THE_AGENTS_PROMPT = { kind: "agent_prompt" };
|
|
@@ -10284,7 +10308,7 @@ var elicitationContentFromAnswers = (ask, answers) => {
|
|
|
10284
10308
|
var isHandBackAnswer = (answer) => classifyConfirmResponse(answer) === "defer";
|
|
10285
10309
|
|
|
10286
10310
|
// ../contracts/src/hook-activation.ts
|
|
10287
|
-
var hookWritePath = (toolName, input) => toolName === "Write"
|
|
10311
|
+
var hookWritePath = (toolName, input) => toolName === "Write" ? askableToolPathOf(toolName, input) : void 0;
|
|
10288
10312
|
var HOOK_ACTIVATION_RESULTS = ["unverified", "approved_executed", "denied_observed", "unexpected_execution", "tool_failed"];
|
|
10289
10313
|
var MAX_HOOK_ACTIVATION_EVIDENCE_ROWS = 20;
|
|
10290
10314
|
var isHookActivationReport = (value) => {
|
|
@@ -10520,6 +10544,7 @@ export {
|
|
|
10520
10544
|
SUPPORT_DISCORD,
|
|
10521
10545
|
HOOK_VERSION_PATTERN,
|
|
10522
10546
|
HOOK_LOCATOR_BINARY,
|
|
10547
|
+
HOOK_CWD_MAX_LENGTH,
|
|
10523
10548
|
isTokenCount,
|
|
10524
10549
|
reportableSessionId,
|
|
10525
10550
|
TOOL_NAME_MAX_LENGTH,
|
|
@@ -10548,6 +10573,7 @@ export {
|
|
|
10548
10573
|
PUSHARY_CONNECTOR_TOOL_PREFIXES,
|
|
10549
10574
|
isPusharyOwnTool,
|
|
10550
10575
|
isPusharyConnectorTool,
|
|
10576
|
+
askableToolPathOf,
|
|
10551
10577
|
shouldDeferToNativeMode,
|
|
10552
10578
|
AGENT_QUESTION_TOOL,
|
|
10553
10579
|
AGENT_QUESTION_STRATEGY,
|
|
@@ -10578,6 +10604,7 @@ export {
|
|
|
10578
10604
|
permissionsOffLineAppliesTo,
|
|
10579
10605
|
permissionsOffAskReason,
|
|
10580
10606
|
resolveGate,
|
|
10607
|
+
governingToolInputOf,
|
|
10581
10608
|
editGoesToTheAgentsPrompt,
|
|
10582
10609
|
SCOPE_BATCH_REASON,
|
|
10583
10610
|
UNREADABLE_CALL_REASON,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatVersion,
|
|
4
4
|
quoteIfNeeded,
|
|
5
5
|
shellDoubleQuoted
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MP3IANXU.js";
|
|
7
7
|
import {
|
|
8
8
|
writeFileAtomic
|
|
9
9
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
PUSHARY_HOSTS,
|
|
23
23
|
PUSHARY_TOOL_PREFIX,
|
|
24
24
|
withHookHoldBudget
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-HTMMJASM.js";
|
|
26
26
|
|
|
27
27
|
// src/setup/paths.ts
|
|
28
28
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -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();
|