@pushary/agent-hooks 1.9.161 → 1.9.163
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 +10 -0
- package/dist/{api-WHTSBK74.js → api-3W4XWXCZ.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 +11 -11
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +27 -27
- package/dist/bin/pushary-clean.js +38 -38
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +187 -52
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +34 -34
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +45 -45
- package/dist/bin/pushary-disconnect.js +29 -29
- package/dist/bin/pushary-doctor.js +46 -46
- package/dist/bin/pushary-elicitation-hook.js +28 -28
- package/dist/bin/pushary-gemini-bridge.js +17 -17
- 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 +29 -29
- 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-hook.js +124 -75
- 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 +38 -38
- package/dist/bin/pushary-setup.js +54 -54
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +35 -35
- 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 +43 -43
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-KKDKPWGM.js → chunk-2P3E6CXY.js} +1 -1
- package/dist/{chunk-J36DDPJV.js → chunk-3HDZQKAK.js} +1 -1
- package/dist/{chunk-2ABUBECK.js → chunk-3HUPWSLJ.js} +4 -4
- package/dist/{chunk-YEB7YWW7.js → chunk-3J6NPY5E.js} +8 -8
- package/dist/{chunk-DWMQZM52.js → chunk-3SGXZHV5.js} +1 -1
- package/dist/{chunk-Y553AEQU.js → chunk-3TN7WHEF.js} +3 -3
- package/dist/{chunk-WCXVPYSD.js → chunk-3WW4TQT2.js} +1 -1
- package/dist/{chunk-AT5ZLKMQ.js → chunk-3ZJLASF2.js} +5 -5
- package/dist/{chunk-2PY5DJTC.js → chunk-4ZV734EY.js} +1 -1
- package/dist/{chunk-UZTGEACF.js → chunk-5HSPZGN6.js} +5 -5
- package/dist/{chunk-AVGYUZVK.js → chunk-5TQERWVE.js} +6 -6
- package/dist/{chunk-OOODAKCC.js → chunk-5ZL7QBVM.js} +6 -6
- package/dist/{chunk-IHYKSPWH.js → chunk-6XKJVF2A.js} +8 -6
- package/dist/{chunk-UJT32RSQ.js → chunk-7DHVYOOP.js} +6 -6
- package/dist/{chunk-UH7GJHOO.js → chunk-7FMXDLNO.js} +3 -3
- package/dist/{chunk-OSCZ4MNE.js → chunk-7RGPAEEL.js} +5 -5
- package/dist/{chunk-R7NAG65X.js → chunk-7U3GZ5ZV.js} +2 -2
- package/dist/{chunk-L2ADRR62.js → chunk-7WBIMPZQ.js} +5 -5
- package/dist/{chunk-55AHQF63.js → chunk-AYQNGBZC.js} +7 -0
- package/dist/{chunk-W6FCSBTM.js → chunk-AZ7X2FBB.js} +2 -2
- package/dist/{chunk-4ZNZS6FM.js → chunk-B6SP4ZLB.js} +5 -5
- package/dist/{chunk-5UBV26GO.js → chunk-BS5YSLXS.js} +3 -3
- package/dist/{chunk-AVRRD6AY.js → chunk-COFH3FQT.js} +1 -1
- package/dist/{chunk-I5HXAELM.js → chunk-DJOAYJYR.js} +3 -3
- package/dist/{chunk-26GVUJMR.js → chunk-EXVUFDLL.js} +1 -1
- package/dist/{chunk-XWCLKWKP.js → chunk-F2EPFT5W.js} +1 -1
- package/dist/{chunk-F5NJUDGA.js → chunk-FIQFGSXB.js} +18 -18
- package/dist/{chunk-5S66DHJS.js → chunk-FRT6CTUK.js} +3 -3
- package/dist/{chunk-WAFJGQSE.js → chunk-FXV6MD35.js} +4 -4
- package/dist/{chunk-GJA3KQ3T.js → chunk-G3YVXFRI.js} +5 -5
- package/dist/{chunk-HKCJZGAJ.js → chunk-GVPOVNRT.js} +3 -3
- package/dist/{chunk-KDHLOPSO.js → chunk-GY3BDYVF.js} +1 -1
- package/dist/{chunk-VYNC7EYV.js → chunk-IHZ7MUYB.js} +2 -2
- package/dist/{chunk-DLZ6RK2P.js → chunk-ILPCJRLG.js} +3 -3
- package/dist/{chunk-LRTRIDOC.js → chunk-IZFVQLKO.js} +1 -1
- package/dist/{chunk-DHUWAUVL.js → chunk-JDY2FFC3.js} +1 -1
- package/dist/{chunk-MPYQW4IV.js → chunk-JQ2KBN4B.js} +2 -2
- package/dist/{chunk-OXZ75E2Y.js → chunk-K2QDEWH3.js} +4 -4
- package/dist/{chunk-OQAIMSHQ.js → chunk-KG5UNSTJ.js} +1 -1
- package/dist/{chunk-U36COV3Z.js → chunk-KJY4KNSE.js} +11 -11
- package/dist/{chunk-7AQTKVA6.js → chunk-KU55VZ2I.js} +4 -4
- package/dist/{chunk-EGEZKJHX.js → chunk-KU7DUO5E.js} +5 -5
- package/dist/{chunk-HHNC6FWO.js → chunk-LEWUIP5P.js} +1 -1
- package/dist/{chunk-TYB2QGJD.js → chunk-LKF2C5SP.js} +5 -5
- package/dist/{chunk-6OSE2IRG.js → chunk-LNZQBK3Z.js} +2 -2
- package/dist/{chunk-WNIDBPT2.js → chunk-LS6MIVVS.js} +6 -6
- package/dist/{chunk-E7K6YCWY.js → chunk-LYPTFNMM.js} +2 -2
- package/dist/{chunk-YGHHDDIM.js → chunk-MBAWDULS.js} +4 -4
- package/dist/{chunk-OZK75SFS.js → chunk-MLOOPTC7.js} +9 -9
- package/dist/{chunk-MGOBIHXH.js → chunk-MUGQUNPY.js} +10 -10
- package/dist/{chunk-RZBCXPOV.js → chunk-N7VOAIFG.js} +1 -1
- package/dist/{chunk-3F6HE5AK.js → chunk-NE23W6RX.js} +2 -2
- package/dist/{chunk-ATI5XO3E.js → chunk-OQSSPA5U.js} +3 -3
- package/dist/{chunk-U3FVVMB3.js → chunk-P6D5R2GR.js} +1 -1
- package/dist/{chunk-ZIKSHD5M.js → chunk-Q5CWVFV2.js} +2 -2
- package/dist/{chunk-GNHXDRO6.js → chunk-QCTLGNMD.js} +1 -1
- package/dist/{chunk-DHX5JZSH.js → chunk-QLBY4O7Q.js} +4 -4
- package/dist/{chunk-7VXHWU7A.js → chunk-QNHUMOCQ.js} +4 -4
- package/dist/{chunk-YD45WNVQ.js → chunk-QOKW2NVQ.js} +1 -1
- package/dist/{chunk-N4OKAE65.js → chunk-QRPW7KDH.js} +15 -13
- package/dist/{chunk-R7RN3Z2T.js → chunk-RQWKMBDO.js} +2 -2
- package/dist/{chunk-ANYLSZN3.js → chunk-RXEBODH6.js} +6 -6
- package/dist/{chunk-G44FOBHN.js → chunk-SKUDNFAZ.js} +4 -4
- package/dist/{chunk-6NWESDKK.js → chunk-SYAAPPNF.js} +4 -4
- package/dist/{chunk-FZCEPG6J.js → chunk-TAD24RFF.js} +2 -2
- package/dist/{chunk-7WLKE7QN.js → chunk-TF46WWVU.js} +2 -2
- package/dist/{chunk-ONMAG5BF.js → chunk-TG252BD4.js} +2 -2
- package/dist/{chunk-BGU56XCS.js → chunk-U2XD5U2Z.js} +1 -1
- package/dist/{chunk-Z5DOTAFI.js → chunk-UFTT6RO6.js} +3 -3
- package/dist/{chunk-PXLWR4TG.js → chunk-VXSAB3ZE.js} +2 -2
- package/dist/{chunk-VIS3EVRH.js → chunk-W2EOPCHG.js} +1 -1
- package/dist/{chunk-LVGRSC44.js → chunk-WHRLUSI3.js} +5 -5
- package/dist/{chunk-QLEFFGCN.js → chunk-WOAHDWWF.js} +1 -1
- package/dist/{chunk-HKI4RMZF.js → chunk-XO62UOR7.js} +7 -7
- package/dist/{chunk-7IHVTLHK.js → chunk-XOTBVRIH.js} +1 -1
- package/dist/{chunk-IGSSDODQ.js → chunk-YKR52UPQ.js} +1 -1
- package/dist/{chunk-Y23YO46U.js → chunk-YLV5J6QF.js} +3 -3
- package/dist/{chunk-BTYHDCAP.js → chunk-YQJX2SJ3.js} +3 -3
- package/dist/{chunk-WTWBHE2Y.js → chunk-ZLWAN47L.js} +24 -14
- package/dist/{chunk-S6ARXVVZ.js → chunk-ZZ44PWXB.js} +1 -1
- package/dist/{codex-app-cards-switch-DPCGWQSX.js → codex-app-cards-switch-TXT3ZJIA.js} +11 -11
- package/dist/{codex-card-routing-NFIEH66Q.js → codex-card-routing-LHZ4GOC5.js} +2 -2
- package/dist/{codex-desktop-launch-MARNBY23.js → codex-desktop-launch-7GSAOUBA.js} +1 -1
- package/dist/{codex-session-launch-LSNU7CUV.js → codex-session-launch-NPEFPDVM.js} +20 -20
- package/dist/{config-5D34OAYM.js → config-JEWWH3CO.js} +3 -3
- package/dist/{global-upgrade-5XBO6FYU.js → global-upgrade-SJVITKA6.js} +9 -9
- package/dist/{identity-6QEFK7PW.js → identity-JX2NVJQ3.js} +4 -4
- package/dist/{live-capabilities-6KOGY6KM.js → live-capabilities-YYINM2NK.js} +4 -4
- package/dist/{paths-7M6V62NO.js → paths-2QDA4DUP.js} +3 -3
- package/dist/{reapply-ZECM5JRX.js → reapply-23723QEC.js} +31 -31
- package/dist/src/index.js +35 -35
- package/dist/{upgrade-lock-DI4JY2CU.js → upgrade-lock-6AHHM2WU.js} +4 -4
- package/dist/{usage-X4BIHYR5.js → usage-ESU3WTVK.js} +3 -3
- package/package.json +1 -1
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
toolResultErrorText,
|
|
28
28
|
transcriptTokensIn,
|
|
29
29
|
transcriptUsageRequest
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-EXVUFDLL.js";
|
|
31
31
|
import {
|
|
32
32
|
branchFor,
|
|
33
33
|
repoKeyFor
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-WOAHDWWF.js";
|
|
35
35
|
import {
|
|
36
36
|
cancelQuestion,
|
|
37
37
|
clientErrorKindOf,
|
|
@@ -39,39 +39,39 @@ import {
|
|
|
39
39
|
reportClientError,
|
|
40
40
|
sendNotification,
|
|
41
41
|
waitForAnswer
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-6XKJVF2A.js";
|
|
43
43
|
import {
|
|
44
44
|
RETRY_ACK,
|
|
45
45
|
readCommandAck,
|
|
46
46
|
refusedReceiptMessage
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-GY3BDYVF.js";
|
|
48
48
|
import {
|
|
49
49
|
isRetryable,
|
|
50
50
|
withRetry
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-7RGPAEEL.js";
|
|
52
52
|
import {
|
|
53
53
|
fetchAsCredential
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-3SGXZHV5.js";
|
|
55
55
|
import {
|
|
56
56
|
getMachineId
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-W2EOPCHG.js";
|
|
58
58
|
import {
|
|
59
59
|
reportedInstallSource
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-TAD24RFF.js";
|
|
61
61
|
import {
|
|
62
62
|
IDLE_PROMPT_NOTIFICATION,
|
|
63
63
|
NOTIFICATION_PUSH_TYPES,
|
|
64
64
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
65
65
|
claudeConfigDir
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-TF46WWVU.js";
|
|
67
67
|
import {
|
|
68
68
|
compareVersion,
|
|
69
69
|
parseVersion
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-FXV6MD35.js";
|
|
71
71
|
import {
|
|
72
72
|
getApiKey,
|
|
73
73
|
getBaseUrl
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-XOTBVRIH.js";
|
|
75
75
|
import {
|
|
76
76
|
writeFileAtomic,
|
|
77
77
|
writeJsonAtomicDurable
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
resolveAutoResolveOrigin,
|
|
103
103
|
resolvePolicy,
|
|
104
104
|
unansweredRefusalReason
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-AYQNGBZC.js";
|
|
106
106
|
|
|
107
107
|
// src/pending.ts
|
|
108
108
|
import { join } from "path";
|
|
@@ -560,6 +560,8 @@ var readReusableMode = (apiKey, sessionId, maxAgeMs) => {
|
|
|
560
560
|
return { ...last.state, degraded: false };
|
|
561
561
|
};
|
|
562
562
|
var unansweredModeRead = (state) => ({ state, answeredLive: false });
|
|
563
|
+
var isTimeoutReason = (reason) => reason instanceof Error && reason.name === "TimeoutError";
|
|
564
|
+
var wasCancelledByTheCaller = (signal) => signal?.aborted === true && !isTimeoutReason(signal.reason);
|
|
563
565
|
var readModeState = async (apiKey, sessionId, reuseWithinMs, signal) => {
|
|
564
566
|
if (reuseWithinMs > 0) {
|
|
565
567
|
const reusable = readReusableMode(apiKey, sessionId, reuseWithinMs);
|
|
@@ -585,7 +587,7 @@ var readModeState = async (apiKey, sessionId, reuseWithinMs, signal) => {
|
|
|
585
587
|
writeLastGoodMode(apiKey, state, sessionId);
|
|
586
588
|
return { state, answeredLive: true };
|
|
587
589
|
} catch (error) {
|
|
588
|
-
void reportClientError({ kind: clientErrorKindOf(error), code: "mode_fetch_failed" });
|
|
590
|
+
if (!wasCancelledByTheCaller(signal)) void reportClientError({ kind: clientErrorKindOf(error), code: "mode_fetch_failed" });
|
|
589
591
|
return unansweredModeRead(degradedFallback(apiKey, sessionId));
|
|
590
592
|
}
|
|
591
593
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TF46WWVU.js";
|
|
4
4
|
import {
|
|
5
5
|
readRegularJsonFile,
|
|
6
6
|
writeFileAtomic
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
serializeDeclinedAgents,
|
|
14
14
|
withDeclinedAgent,
|
|
15
15
|
withoutDeclinedAgent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AYQNGBZC.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Q5CWVFV2.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7FMXDLNO.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NE23W6RX.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TF46WWVU.js";
|
|
27
27
|
import {
|
|
28
28
|
execNpm,
|
|
29
29
|
fetchLatestPublishedVersion,
|
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
previewGlobalInstall,
|
|
32
32
|
readGlobalCliInstallAt,
|
|
33
33
|
readGlobalPrefix
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FXV6MD35.js";
|
|
35
35
|
import {
|
|
36
36
|
EXIT
|
|
37
37
|
} from "./chunk-BG4HHB7E.js";
|
|
38
38
|
import {
|
|
39
39
|
NPX_LATEST_COMMAND
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-N7VOAIFG.js";
|
|
41
41
|
import {
|
|
42
42
|
LATEST_DIST_TAG,
|
|
43
43
|
commandsPackage,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WHRLUSI3.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MBAWDULS.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TF46WWVU.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AYQNGBZC.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CODEX_HOOK_STATUS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7U3GZ5ZV.js";
|
|
4
4
|
import {
|
|
5
5
|
HERMES_ALWAYS_ALLOWED_SHELL_RULE,
|
|
6
6
|
HERMES_COMMAND_ALLOWLIST_KEY,
|
|
7
7
|
HERMES_GATE_TOOLS_KEY,
|
|
8
8
|
HERMES_SHELL_TOOL
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3HUPWSLJ.js";
|
|
10
10
|
import {
|
|
11
11
|
retryAgentCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3TN7WHEF.js";
|
|
13
13
|
import {
|
|
14
14
|
NPX_LATEST_COMMAND
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-N7VOAIFG.js";
|
|
16
16
|
|
|
17
17
|
// src/setup/codex-trust.ts
|
|
18
18
|
var CODEX_TRUST_TELEMETRY = {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatVersion,
|
|
4
4
|
quoteIfNeeded,
|
|
5
5
|
shellDoubleQuoted
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FXV6MD35.js";
|
|
7
7
|
import {
|
|
8
8
|
writeFileAtomic
|
|
9
9
|
} from "./chunk-TODDEIYG.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
PUSHARY_HOSTS,
|
|
23
23
|
PUSHARY_TOOL_PREFIX,
|
|
24
24
|
withHookHoldBudget
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-AYQNGBZC.js";
|
|
26
26
|
|
|
27
27
|
// src/setup/paths.ts
|
|
28
28
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DJOAYJYR.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AYQNGBZC.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -536,8 +536,8 @@ var loadedOnce = (load) => {
|
|
|
536
536
|
};
|
|
537
537
|
|
|
538
538
|
// src/codex-desktop-proxy.ts
|
|
539
|
-
var loadThePhone = () => import("./api-
|
|
540
|
-
var loadTheCardRouting = () => import("./codex-card-routing-
|
|
539
|
+
var loadThePhone = () => import("./api-3W4XWXCZ.js");
|
|
540
|
+
var loadTheCardRouting = () => import("./codex-card-routing-LHZ4GOC5.js");
|
|
541
541
|
var theFirstCardLoadsAgain = () => {
|
|
542
542
|
};
|
|
543
543
|
var ASKS_WITHOUT_ROUTING = {};
|
|
@@ -1097,7 +1097,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
|
|
|
1097
1097
|
return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
|
|
1098
1098
|
}
|
|
1099
1099
|
if (args[0] === APP_CARDS_FLAG) {
|
|
1100
|
-
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-
|
|
1100
|
+
const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-TXT3ZJIA.js");
|
|
1101
1101
|
return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
|
|
1102
1102
|
}
|
|
1103
1103
|
if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
claudeConfigDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TF46WWVU.js";
|
|
4
4
|
import {
|
|
5
5
|
claudePermissionRulesFromSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AYQNGBZC.js";
|
|
7
7
|
|
|
8
8
|
// src/claude-permission-rules.ts
|
|
9
9
|
import { readFileSync, statSync } from "fs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MBAWDULS.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QRPW7KDH.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EXVUFDLL.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-TF46WWVU.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-AYQNGBZC.js";
|
|
34
34
|
|
|
35
35
|
// src/config-document.ts
|
|
36
36
|
import { parse, stringify } from "smol-toml";
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LNZQBK3Z.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TG252BD4.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-F2EPFT5W.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DJOAYJYR.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YLV5J6QF.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XOTBVRIH.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-AYQNGBZC.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveInstallSourceFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TAD24RFF.js";
|
|
4
4
|
import {
|
|
5
5
|
configFilePath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XOTBVRIH.js";
|
|
7
7
|
import {
|
|
8
8
|
backupFile,
|
|
9
9
|
readJsonSafe,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
API_KEY_PREFIX_PATTERN,
|
|
15
15
|
isRecord,
|
|
16
16
|
isValidApiKey
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AYQNGBZC.js";
|
|
18
18
|
|
|
19
19
|
// src/shell-alias.ts
|
|
20
20
|
import { homedir } from "os";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSseMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7RGPAEEL.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3SGXZHV5.js";
|
|
7
7
|
import {
|
|
8
8
|
NPX_LATEST_COMMAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-N7VOAIFG.js";
|
|
10
10
|
|
|
11
11
|
// src/mcp-stdio-bridge.ts
|
|
12
12
|
var MCP_BRIDGE_BINARY = "pushary-mcp";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
announceSubscriptionRequired,
|
|
3
3
|
isDeferAnswer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JDY2FFC3.js";
|
|
5
5
|
import {
|
|
6
6
|
askUser,
|
|
7
7
|
isDecisionStopped,
|
|
@@ -9,38 +9,47 @@ import {
|
|
|
9
9
|
isThePersonsStop,
|
|
10
10
|
waitForOpenQuestion,
|
|
11
11
|
waitForQuestion
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6XKJVF2A.js";
|
|
13
13
|
import {
|
|
14
14
|
SubscriptionRequiredError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7RGPAEEL.js";
|
|
16
16
|
import {
|
|
17
17
|
getMachineId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-W2EOPCHG.js";
|
|
19
19
|
import {
|
|
20
20
|
ASK_CONTEXT_MAX,
|
|
21
21
|
agentQuestionContext,
|
|
22
22
|
answersToQuestionsAsAsked,
|
|
23
|
+
fitsAPlainSelect,
|
|
24
|
+
isAgentQuestionSet,
|
|
23
25
|
isTypedAnswerQuestion,
|
|
24
26
|
parseAgentQuestionAnswers,
|
|
25
27
|
plainAskOf,
|
|
26
28
|
questionsShownAsASet
|
|
27
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-AYQNGBZC.js";
|
|
28
30
|
|
|
29
31
|
// src/agent-question-ask.ts
|
|
32
|
+
var ONLY_QUESTION = { index: 0, total: 1 };
|
|
30
33
|
var STOPPED = { kind: "stopped" };
|
|
31
34
|
var UNAVAILABLE = { kind: "unavailable" };
|
|
32
35
|
var UNANSWERED = { kind: "unanswered" };
|
|
33
36
|
var answeredWith = (answers) => ({ kind: "answered", answers });
|
|
34
37
|
var failedAskOutcome = (error, sessionId) => outcomeOfFailedAsk(error, sessionId, UNAVAILABLE) ?? UNANSWERED;
|
|
38
|
+
var richCardOf = (question) => {
|
|
39
|
+
const shownAsASet = questionsShownAsASet([question]);
|
|
40
|
+
if (!shownAsASet) return void 0;
|
|
41
|
+
return isAgentQuestionSet(shownAsASet) || !fitsAPlainSelect(question) ? shownAsASet : void 0;
|
|
42
|
+
};
|
|
35
43
|
var cardOf = (question) => {
|
|
36
44
|
const ask = plainAskOf(question);
|
|
37
|
-
const
|
|
45
|
+
const richCard = richCardOf(question);
|
|
38
46
|
return {
|
|
39
47
|
type: ask.type,
|
|
40
48
|
...ask.type === "select" ? { options: [...ask.options] } : {},
|
|
41
|
-
...
|
|
49
|
+
...richCard ? { questions: [...richCard] } : {}
|
|
42
50
|
};
|
|
43
51
|
};
|
|
52
|
+
var positionedToolUseId = (toolUseId, position) => toolUseId && position.total > 1 ? `${toolUseId}#q${position.index}` : toolUseId;
|
|
44
53
|
var outcomeOfFailedAsk = (error, sessionId, failure) => {
|
|
45
54
|
if (isQuestionLimitRefusal(error)) return void 0;
|
|
46
55
|
if (!(error instanceof SubscriptionRequiredError)) return failure;
|
|
@@ -59,18 +68,19 @@ var questionContext = (question, index, total, project) => {
|
|
|
59
68
|
var legacyAnswerMap = (question, value) => JSON.stringify({ [question.question]: question.multiSelect ? JSON.stringify([value]) : value });
|
|
60
69
|
var answerInTheEarlierForm = (question, value) => isTypedAnswerQuestion(question) ? null : parseAgentQuestionAnswers([question], legacyAnswerMap(question, value));
|
|
61
70
|
var answersOnOneCard = (question, value) => answersToQuestionsAsAsked([question], value) ?? answerInTheEarlierForm(question, value);
|
|
62
|
-
var
|
|
71
|
+
var answersToTheCard = (question, value) => richCardOf(question) ? answersToQuestionsAsAsked([question], value) : answersOnOneCard(question, value);
|
|
72
|
+
var oneCardAsk = (call, only, position = ONLY_QUESTION) => ({
|
|
63
73
|
question: only.question,
|
|
64
74
|
...cardOf(only),
|
|
65
|
-
context: questionContext(only,
|
|
75
|
+
context: questionContext(only, position.index, position.total, call.projectName),
|
|
66
76
|
agentName: call.agentName,
|
|
67
77
|
sessionId: call.sessionId,
|
|
68
78
|
machineId: getMachineId(),
|
|
69
79
|
toolName: call.toolName,
|
|
70
|
-
toolUseId: call.toolUseId
|
|
80
|
+
toolUseId: positionedToolUseId(call.toolUseId, position)
|
|
71
81
|
});
|
|
72
82
|
var outcomeOfOneCardAnswer = (only, answer) => {
|
|
73
|
-
const values = answer.answered && answer.value ?
|
|
83
|
+
const values = answer.answered && answer.value ? answersToTheCard(only, answer.value) : null;
|
|
74
84
|
if (!values || isDeferAnswer(answer.value)) {
|
|
75
85
|
return UNANSWERED;
|
|
76
86
|
}
|
|
@@ -89,10 +99,10 @@ var askAsOneCard = async (apiKey, call, only) => {
|
|
|
89
99
|
if (isDecisionStopped(answer)) return STOPPED;
|
|
90
100
|
return outcomeOfOneCardAnswer(only, answer);
|
|
91
101
|
};
|
|
92
|
-
var askAgentQuestionWhileOpen = async (apiKey, call, only, askerStillWaits) => {
|
|
102
|
+
var askAgentQuestionWhileOpen = async (apiKey, call, only, askerStillWaits, position = ONLY_QUESTION) => {
|
|
93
103
|
let result;
|
|
94
104
|
try {
|
|
95
|
-
result = await askUser(apiKey, oneCardAsk(call, only));
|
|
105
|
+
result = await askUser(apiKey, oneCardAsk(call, only, position));
|
|
96
106
|
} catch (error) {
|
|
97
107
|
return failedAskOutcome(error, call.sessionId);
|
|
98
108
|
}
|
|
@@ -115,7 +125,7 @@ var askQuestionByQuestion = async (apiKey, call, questions) => {
|
|
|
115
125
|
sessionId: call.sessionId,
|
|
116
126
|
machineId: getMachineId(),
|
|
117
127
|
toolName: call.toolName,
|
|
118
|
-
toolUseId: call.toolUseId
|
|
128
|
+
toolUseId: positionedToolUseId(call.toolUseId, { index, total: questions.length }),
|
|
119
129
|
waitEndsAt: new Date(call.deadline).toISOString()
|
|
120
130
|
});
|
|
121
131
|
} catch (error) {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
verifyAnchoredRecipients,
|
|
12
12
|
wrapSessionKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BS5YSLXS.js";
|
|
14
14
|
|
|
15
15
|
// src/live-session.ts
|
|
16
16
|
var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
|
|
@@ -22,23 +22,23 @@ import {
|
|
|
22
22
|
turnCodexAppCardsOff,
|
|
23
23
|
turnCodexAppCardsOn,
|
|
24
24
|
whyLaunchctlFailed
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-LYPTFNMM.js";
|
|
26
|
+
import "./chunk-UFTT6RO6.js";
|
|
27
27
|
import "./chunk-XCEN33UP.js";
|
|
28
28
|
import "./chunk-U4P4NDVB.js";
|
|
29
29
|
import "./chunk-QCGNGEGE.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-LS6MIVVS.js";
|
|
31
31
|
import "./chunk-Y6ILCLKE.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-W2EOPCHG.js";
|
|
33
|
+
import "./chunk-YLV5J6QF.js";
|
|
34
|
+
import "./chunk-TAD24RFF.js";
|
|
35
|
+
import "./chunk-TF46WWVU.js";
|
|
36
|
+
import "./chunk-FXV6MD35.js";
|
|
37
|
+
import "./chunk-XOTBVRIH.js";
|
|
38
38
|
import "./chunk-TODDEIYG.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-N7VOAIFG.js";
|
|
40
40
|
import "./chunk-UQTQ6HPO.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-AYQNGBZC.js";
|
|
42
42
|
import "./chunk-MLKGABMK.js";
|
|
43
43
|
export {
|
|
44
44
|
CODEX_APP_CARDS_DIRECTORY,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deriveToolTarget
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EXVUFDLL.js";
|
|
4
4
|
import {
|
|
5
5
|
TOOL_NAME_MAX_LENGTH,
|
|
6
6
|
codexElicitationToolName
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AYQNGBZC.js";
|
|
8
8
|
import "./chunk-MLKGABMK.js";
|
|
9
9
|
|
|
10
10
|
// src/codex-card-routing.ts
|