pushary 1.9.261 → 1.9.262
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 +9 -0
- package/README.md +6 -0
- package/dist/{api-LAG3VCHN.js → api-TGVE6ZKD.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +29 -29
- package/dist/bin/pushary-bell.js +12 -12
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +26 -26
- package/dist/bin/pushary-clean.js +40 -40
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +35 -35
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +36 -36
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +47 -47
- package/dist/bin/pushary-disconnect.js +31 -31
- package/dist/bin/pushary-display-hook.js +60 -2
- package/dist/bin/pushary-doctor.js +143 -48
- package/dist/bin/pushary-elicitation-hook.js +28 -28
- 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 +41 -23
- package/dist/bin/pushary-logout.js +32 -32
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +28 -28
- package/dist/bin/pushary-opencode-bridge.js +22 -22
- package/dist/bin/pushary-opencode-hook.js +33 -33
- package/dist/bin/pushary-permission-denied-hook.js +35 -35
- package/dist/bin/pushary-permission-hook.js +36 -36
- package/dist/bin/pushary-post-hook.js +29 -29
- package/dist/bin/pushary-prompt-hook.js +28 -28
- package/dist/bin/pushary-session-end-hook.js +28 -28
- package/dist/bin/pushary-session-start-hook.js +40 -40
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +174 -82
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +37 -37
- package/dist/bin/pushary-stop-hook.js +28 -28
- package/dist/bin/pushary-stopfailure-hook.js +28 -28
- package/dist/bin/pushary-suggestions.js +16 -16
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +26 -26
- package/dist/bin/pushary-upgrade.js +48 -48
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-NKSOSZZU.js → chunk-23ELMB2F.js} +2 -2
- package/dist/{chunk-YHA5L6D3.js → chunk-2DYJTOOU.js} +3 -3
- package/dist/{chunk-QQ4U4NST.js → chunk-2Q3ZTT57.js} +7 -7
- package/dist/{chunk-NLG5BY2M.js → chunk-43DXK6WE.js} +1 -1
- package/dist/{chunk-T6ZGTBHT.js → chunk-5K5MT22J.js} +4 -4
- package/dist/{chunk-53LLER7E.js → chunk-5SVZXCAJ.js} +1 -1
- package/dist/{chunk-TUBI75B7.js → chunk-67UJTXRZ.js} +1 -1
- package/dist/{chunk-L6IKTYMZ.js → chunk-73ROMTIN.js} +6 -6
- package/dist/{chunk-3DW5OCS2.js → chunk-APTFA4KF.js} +1 -1
- package/dist/{chunk-ZGPUVZZ6.js → chunk-AURPPDRZ.js} +2 -2
- package/dist/{chunk-NTTHRLDQ.js → chunk-BTSJ2W7I.js} +1 -1
- package/dist/{chunk-GIK5P25V.js → chunk-BZ2V2ES3.js} +5 -5
- package/dist/{chunk-3PAM7BQJ.js → chunk-C4D6R27P.js} +5 -5
- package/dist/{chunk-YBVDF4NV.js → chunk-CAOMKUSR.js} +4 -4
- package/dist/{chunk-TW6BQOPH.js → chunk-CC6BYFNM.js} +6 -6
- package/dist/{chunk-VVDJCJ3P.js → chunk-CTTIW2A3.js} +2 -2
- package/dist/{chunk-KUVXFNHY.js → chunk-CXGRUUUM.js} +10 -10
- package/dist/{chunk-BBE7UITT.js → chunk-D2666AVW.js} +6 -6
- package/dist/{chunk-H6FDFP6W.js → chunk-DIHUVYT2.js} +81 -29
- package/dist/{chunk-ZVIF4O6V.js → chunk-DOMSM62I.js} +2 -2
- package/dist/{chunk-SFZWZHZB.js → chunk-DS3C4SRR.js} +2 -2
- package/dist/{chunk-ZSJDCRBA.js → chunk-DU2YTOTA.js} +1 -1
- package/dist/{chunk-X7BHVGGH.js → chunk-DU5MLJQL.js} +1 -1
- package/dist/{chunk-WUZM74HI.js → chunk-EHH4PQG7.js} +4 -4
- package/dist/{chunk-6LJVKWV7.js → chunk-EPT6MZBG.js} +5 -5
- package/dist/{chunk-I2DSQVSB.js → chunk-EVJ5DPRU.js} +1 -1
- package/dist/{chunk-GAKYGHUR.js → chunk-F6LNIS2Y.js} +1 -1
- package/dist/{chunk-HAOO2MNV.js → chunk-FKYZEIH7.js} +10 -10
- package/dist/{chunk-6RD6RNJY.js → chunk-FNDKQEJP.js} +4 -4
- package/dist/{chunk-IXXH6ZDQ.js → chunk-FURJQUDT.js} +2 -2
- package/dist/{chunk-LIZZSMUD.js → chunk-H4DPB3LK.js} +8 -8
- package/dist/{chunk-EYQZC5IV.js → chunk-H4XEEC4I.js} +2 -2
- package/dist/{chunk-RSV25NAF.js → chunk-HB3S3KDX.js} +1 -1
- package/dist/{chunk-WCSSU6QW.js → chunk-HMN4XEJE.js} +4 -4
- package/dist/{chunk-LH7NQSUC.js → chunk-HSVVH7K2.js} +1 -1
- package/dist/{chunk-N2IP7IDG.js → chunk-HVY3YUJU.js} +1 -1
- package/dist/{chunk-DN7PXEXE.js → chunk-HZ76NLD2.js} +6 -6
- package/dist/{chunk-FUXTIM33.js → chunk-I4D4XEIJ.js} +5 -5
- package/dist/{chunk-4SKEGBFV.js → chunk-IHH3HGQQ.js} +3 -3
- package/dist/{chunk-YHHQICQD.js → chunk-IK4MIPI2.js} +3 -3
- package/dist/{chunk-SSW4SERP.js → chunk-IMSFJFN6.js} +1 -1
- package/dist/{chunk-LRF4XS6M.js → chunk-IS5WMKN2.js} +3 -3
- package/dist/{chunk-ZNDLGXKO.js → chunk-J7V5ZFZC.js} +6 -6
- package/dist/{chunk-TDYAVCJ3.js → chunk-JG4JGAI2.js} +4 -4
- package/dist/{chunk-GQHIUZRG.js → chunk-JOQAW5BM.js} +12 -12
- package/dist/{chunk-5G55TWT5.js → chunk-JUCN4TV4.js} +5 -5
- package/dist/{chunk-GC75Q5P2.js → chunk-JVZCCUN4.js} +5 -5
- package/dist/{chunk-BLSGQHGW.js → chunk-K5ZEJCJO.js} +3 -3
- package/dist/{chunk-PX2MOPB2.js → chunk-KEC73KH6.js} +1 -1
- package/dist/{chunk-JC2E7D2W.js → chunk-LE6VFEJU.js} +1 -1
- package/dist/{chunk-FJMZDIKP.js → chunk-LZRXFGEP.js} +49 -3
- package/dist/{chunk-GETSAD5F.js → chunk-MJW6P7A6.js} +2 -2
- package/dist/{chunk-KMADAVW6.js → chunk-NHLCREFU.js} +1 -1
- package/dist/{chunk-IC6ARAAT.js → chunk-NLW2YDL5.js} +5 -5
- package/dist/{chunk-QAS67ZJH.js → chunk-OAE54AV7.js} +1 -1
- package/dist/{chunk-65MRCZGE.js → chunk-Q54QQO5E.js} +5 -5
- package/dist/{chunk-4ARB3SYI.js → chunk-QGYVOSDC.js} +1 -1
- package/dist/{chunk-CHKSE6TO.js → chunk-QIOPWRBQ.js} +1 -1
- package/dist/{chunk-5AL5W2HQ.js → chunk-QWSXLYTX.js} +3 -3
- package/dist/{chunk-TMJRKWWK.js → chunk-R33I7ZNR.js} +5 -5
- package/dist/{chunk-WFE4RAWD.js → chunk-RA4RSVVJ.js} +1 -1
- package/dist/{chunk-TX3IJUL7.js → chunk-RX75OG6S.js} +6 -6
- package/dist/{chunk-NBEFOUMK.js → chunk-SCXUTDQM.js} +3 -3
- package/dist/{chunk-Q3JHO3EJ.js → chunk-SG4IFPJP.js} +1 -1
- package/dist/{chunk-GAO33I7L.js → chunk-SLD22IUB.js} +4 -4
- package/dist/{chunk-QWIWACGD.js → chunk-SOJPAKCB.js} +1 -1
- package/dist/{chunk-JOABO2PX.js → chunk-T4EVAVKF.js} +5 -5
- package/dist/{chunk-SO5DEUCS.js → chunk-V6MQUYE2.js} +7 -7
- package/dist/{chunk-NVYEQLD5.js → chunk-VDPUBIL2.js} +2 -2
- package/dist/{chunk-VWJ5KDMM.js → chunk-VL4AJPCE.js} +4 -4
- package/dist/{chunk-B4MK2ZX2.js → chunk-VSW5ZMPX.js} +3 -3
- package/dist/{chunk-MGGN37IW.js → chunk-VZVKJP3Q.js} +72 -1
- package/dist/{chunk-YINXG75Q.js → chunk-W7QW3XFQ.js} +4 -4
- package/dist/{chunk-5UHGILNO.js → chunk-WCOI5PQU.js} +1 -1
- package/dist/{chunk-H4O3CV5W.js → chunk-WFUVBCKK.js} +4 -4
- package/dist/{chunk-2VTIVLLK.js → chunk-WOEMRT24.js} +3 -3
- package/dist/{chunk-RXGEWDA2.js → chunk-WTFR2OK4.js} +16 -16
- package/dist/{chunk-AKGNLKZP.js → chunk-WV7OME3F.js} +2 -2
- package/dist/{chunk-QRPHWWHI.js → chunk-WYYHSHBO.js} +2 -2
- package/dist/{chunk-HJOXLNYN.js → chunk-YEIHJAE6.js} +3 -3
- package/dist/{chunk-ATHP6SIZ.js → chunk-YQTU6V4X.js} +2 -2
- package/dist/{chunk-K4PJXC32.js → chunk-ZPM6H6GM.js} +1 -1
- package/dist/{codex-app-cards-switch-325EWQUA.js → codex-app-cards-switch-CQZL4XI6.js} +12 -12
- package/dist/{codex-card-routing-NXI4P7PB.js → codex-card-routing-VV2HQAGX.js} +2 -2
- package/dist/{codex-desktop-launch-3OAHHDWE.js → codex-desktop-launch-FYXOQGBR.js} +3 -3
- package/dist/{codex-session-launch-YB4LGTG2.js → codex-session-launch-A4LDZ4GU.js} +20 -20
- package/dist/{config-4FJ7KK75.js → config-EHAN6BUF.js} +3 -3
- package/dist/{global-upgrade-E4UKP2KG.js → global-upgrade-EJZ2EX7R.js} +9 -9
- package/dist/{identity-VQNJSXZO.js → identity-L7SFKUOG.js} +4 -4
- package/dist/{live-capabilities-YJW4CU7J.js → live-capabilities-QAVKVTKD.js} +4 -4
- package/dist/{paths-FOJGTYX4.js → paths-BD7XIUNJ.js} +3 -3
- package/dist/reapply-QFSUMRID.js +76 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +34 -34
- package/dist/{upgrade-lock-MGX4PJQZ.js → upgrade-lock-Y35PJNJT.js} +4 -4
- package/dist/{usage-24DU5SWS.js → usage-E5Z3XUTZ.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-Q2MIQ4A7.js +0 -76
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
declinedAgentsFile,
|
|
4
4
|
recordDeclinedAgent
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-WYYHSHBO.js";
|
|
6
6
|
import {
|
|
7
7
|
isCursorPluginLeftover,
|
|
8
8
|
isPusharyCursorPluginManifest,
|
|
9
9
|
releaseSoleGate
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-EHH4PQG7.js";
|
|
11
11
|
import {
|
|
12
12
|
planFxRemoval,
|
|
13
13
|
removeClineServer
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-I4D4XEIJ.js";
|
|
15
|
+
import "../chunk-IHH3HGQQ.js";
|
|
16
|
+
import "../chunk-W7QW3XFQ.js";
|
|
17
17
|
import {
|
|
18
18
|
hasForeignPlugins,
|
|
19
19
|
macAppBridgeAvailable,
|
|
@@ -22,17 +22,17 @@ import {
|
|
|
22
22
|
openCodePluginDir,
|
|
23
23
|
openCodePluginFile,
|
|
24
24
|
removeOpenCodeMcpServer
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-V6MQUYE2.js";
|
|
26
26
|
import {
|
|
27
27
|
isOpenCodePluginOurs
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-IMSFJFN6.js";
|
|
29
29
|
import {
|
|
30
30
|
OPENCODE_PLUGIN_SIBLING,
|
|
31
31
|
OPENCODE_PLUGIN_SIBLING_CONTENTS
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-QIOPWRBQ.js";
|
|
33
33
|
import {
|
|
34
34
|
exitOnHelpFlag
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-5SVZXCAJ.js";
|
|
36
36
|
import {
|
|
37
37
|
compatibleConfigFile,
|
|
38
38
|
compatibleDocuments,
|
|
@@ -42,29 +42,29 @@ import {
|
|
|
42
42
|
isEmptiedPusharyOwnedDocument,
|
|
43
43
|
removeCompatibleHooks,
|
|
44
44
|
removeCompatibleMcpServer
|
|
45
|
-
} from "../chunk-
|
|
46
|
-
import "../chunk-
|
|
45
|
+
} from "../chunk-HZ76NLD2.js";
|
|
46
|
+
import "../chunk-RA4RSVVJ.js";
|
|
47
47
|
import {
|
|
48
48
|
removeGeminiSettings
|
|
49
|
-
} from "../chunk-
|
|
50
|
-
import "../chunk-
|
|
51
|
-
import "../chunk-
|
|
52
|
-
import "../chunk-
|
|
53
|
-
import "../chunk-
|
|
49
|
+
} from "../chunk-5K5MT22J.js";
|
|
50
|
+
import "../chunk-DIHUVYT2.js";
|
|
51
|
+
import "../chunk-HVY3YUJU.js";
|
|
52
|
+
import "../chunk-NHLCREFU.js";
|
|
53
|
+
import "../chunk-43DXK6WE.js";
|
|
54
54
|
import {
|
|
55
55
|
parseFlags
|
|
56
56
|
} from "../chunk-BZIBNSQE.js";
|
|
57
|
-
import "../chunk-
|
|
58
|
-
import "../chunk-
|
|
57
|
+
import "../chunk-RX75OG6S.js";
|
|
58
|
+
import "../chunk-F6LNIS2Y.js";
|
|
59
59
|
import "../chunk-POFBE6ZY.js";
|
|
60
|
-
import "../chunk-
|
|
61
|
-
import "../chunk-
|
|
62
|
-
import "../chunk-
|
|
63
|
-
import "../chunk-
|
|
64
|
-
import "../chunk-
|
|
65
|
-
import "../chunk-
|
|
66
|
-
import "../chunk-
|
|
67
|
-
import "../chunk-
|
|
60
|
+
import "../chunk-C4D6R27P.js";
|
|
61
|
+
import "../chunk-LE6VFEJU.js";
|
|
62
|
+
import "../chunk-EVJ5DPRU.js";
|
|
63
|
+
import "../chunk-YEIHJAE6.js";
|
|
64
|
+
import "../chunk-IK4MIPI2.js";
|
|
65
|
+
import "../chunk-HSVVH7K2.js";
|
|
66
|
+
import "../chunk-K5ZEJCJO.js";
|
|
67
|
+
import "../chunk-CTTIW2A3.js";
|
|
68
68
|
import {
|
|
69
69
|
claudeJson,
|
|
70
70
|
claudeMcpReceipt,
|
|
@@ -95,10 +95,10 @@ import {
|
|
|
95
95
|
removePusharySettings,
|
|
96
96
|
removePusharyToolPermissions,
|
|
97
97
|
restoreClaudeMcpServer
|
|
98
|
-
} from "../chunk-
|
|
98
|
+
} from "../chunk-AURPPDRZ.js";
|
|
99
99
|
import "../chunk-6ICPEJY5.js";
|
|
100
|
-
import "../chunk-
|
|
101
|
-
import "../chunk-
|
|
100
|
+
import "../chunk-SLD22IUB.js";
|
|
101
|
+
import "../chunk-WV7OME3F.js";
|
|
102
102
|
import {
|
|
103
103
|
UsageError
|
|
104
104
|
} from "../chunk-CINBAX5G.js";
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
} from "../chunk-PM2NRK6Y.js";
|
|
108
108
|
import {
|
|
109
109
|
isInvocationOf
|
|
110
|
-
} from "../chunk-
|
|
110
|
+
} from "../chunk-APTFA4KF.js";
|
|
111
111
|
import {
|
|
112
112
|
EXIT
|
|
113
113
|
} from "../chunk-BG4HHB7E.js";
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
DISCONNECT_AGENT_IDS,
|
|
118
118
|
hookCompatibleProfileBySource,
|
|
119
119
|
normalizeAgentId
|
|
120
|
-
} from "../chunk-
|
|
120
|
+
} from "../chunk-VZVKJP3Q.js";
|
|
121
121
|
import "../chunk-MLKGABMK.js";
|
|
122
122
|
|
|
123
123
|
// bin/pushary-disconnect.ts
|
|
@@ -1663,7 +1663,7 @@ var init_hook_activation = __esm({
|
|
|
1663
1663
|
});
|
|
1664
1664
|
|
|
1665
1665
|
// ../contracts/src/observability.ts
|
|
1666
|
-
var AGENT_SITE_REJECTION_REASONS, AUTH_REJECTION_REASONS, MCP_INVALID_TOKEN_ERROR, MCP_INVALID_CREDENTIAL_DESCRIPTION, MCP_CREDENTIAL_REJECTION_BODY, TOOL_FAILURE_CODES, TOOL_FAILURE_CODE_VALUES;
|
|
1666
|
+
var AGENT_SITE_REJECTION_REASONS, AUTH_REJECTION_REASONS, MCP_INVALID_TOKEN_ERROR, MCP_INVALID_CREDENTIAL_DESCRIPTION, MCP_CREDENTIAL_REJECTION_BODY, TOOL_FAILURE_CODES, TOOL_FAILURE_CODE_VALUES, CLIENT_ERROR_MESSAGE_MAX_LENGTH, REDACTION_INPUT_MAX_LENGTH;
|
|
1667
1667
|
var init_observability = __esm({
|
|
1668
1668
|
"../contracts/src/observability.ts"() {
|
|
1669
1669
|
"use strict";
|
|
@@ -1699,11 +1699,13 @@ var init_observability = __esm({
|
|
|
1699
1699
|
invalidRequest: "invalid_request"
|
|
1700
1700
|
};
|
|
1701
1701
|
TOOL_FAILURE_CODE_VALUES = Object.values(TOOL_FAILURE_CODES);
|
|
1702
|
+
CLIENT_ERROR_MESSAGE_MAX_LENGTH = 300;
|
|
1703
|
+
REDACTION_INPUT_MAX_LENGTH = 4 * CLIENT_ERROR_MESSAGE_MAX_LENGTH;
|
|
1702
1704
|
}
|
|
1703
1705
|
});
|
|
1704
1706
|
|
|
1705
1707
|
// ../contracts/src/setup-wire.ts
|
|
1706
|
-
var SETUP_AGENT_CHOICES;
|
|
1708
|
+
var SETUP_AGENT_CHOICES, SETUP_CRASH_ERROR_CLASSES, SETUP_CRASH_ERRNO_CODES, OTHER_SETUP_CRASH_KIND, SETUP_CRASH_KINDS;
|
|
1707
1709
|
var init_setup_wire = __esm({
|
|
1708
1710
|
"../contracts/src/setup-wire.ts"() {
|
|
1709
1711
|
"use strict";
|
|
@@ -1724,6 +1726,52 @@ var init_setup_wire = __esm({
|
|
|
1724
1726
|
...COMPATIBLE_AGENT_TYPES,
|
|
1725
1727
|
"custom"
|
|
1726
1728
|
];
|
|
1729
|
+
SETUP_CRASH_ERROR_CLASSES = [
|
|
1730
|
+
"Error",
|
|
1731
|
+
"TypeError",
|
|
1732
|
+
"RangeError",
|
|
1733
|
+
"ReferenceError",
|
|
1734
|
+
"SyntaxError",
|
|
1735
|
+
"AbortError",
|
|
1736
|
+
"TimeoutError"
|
|
1737
|
+
];
|
|
1738
|
+
SETUP_CRASH_ERRNO_CODES = [
|
|
1739
|
+
"ENOENT",
|
|
1740
|
+
"EACCES",
|
|
1741
|
+
"EPERM",
|
|
1742
|
+
"ENOSPC",
|
|
1743
|
+
"EEXIST",
|
|
1744
|
+
"EISDIR",
|
|
1745
|
+
"ENOTDIR",
|
|
1746
|
+
"EBUSY",
|
|
1747
|
+
"EMFILE",
|
|
1748
|
+
"EROFS",
|
|
1749
|
+
"EPIPE",
|
|
1750
|
+
"ECONNREFUSED",
|
|
1751
|
+
"ECONNRESET",
|
|
1752
|
+
"ENOTFOUND",
|
|
1753
|
+
"ETIMEDOUT",
|
|
1754
|
+
"EAI_AGAIN"
|
|
1755
|
+
];
|
|
1756
|
+
OTHER_SETUP_CRASH_KIND = "other";
|
|
1757
|
+
SETUP_CRASH_KINDS = [...SETUP_CRASH_ERRNO_CODES, ...SETUP_CRASH_ERROR_CLASSES, OTHER_SETUP_CRASH_KIND];
|
|
1758
|
+
}
|
|
1759
|
+
});
|
|
1760
|
+
|
|
1761
|
+
// ../contracts/src/agent-event-wire.ts
|
|
1762
|
+
var init_agent_event_wire = __esm({
|
|
1763
|
+
"../contracts/src/agent-event-wire.ts"() {
|
|
1764
|
+
"use strict";
|
|
1765
|
+
init_json_record();
|
|
1766
|
+
}
|
|
1767
|
+
});
|
|
1768
|
+
|
|
1769
|
+
// ../contracts/src/doctor-wire.ts
|
|
1770
|
+
var init_doctor_wire = __esm({
|
|
1771
|
+
"../contracts/src/doctor-wire.ts"() {
|
|
1772
|
+
"use strict";
|
|
1773
|
+
init_json_record();
|
|
1774
|
+
init_setup_wire();
|
|
1727
1775
|
}
|
|
1728
1776
|
});
|
|
1729
1777
|
|
|
@@ -1741,6 +1789,13 @@ var init_terminal_phone_sign_in = __esm({
|
|
|
1741
1789
|
}
|
|
1742
1790
|
});
|
|
1743
1791
|
|
|
1792
|
+
// ../contracts/src/client-error-codes.ts
|
|
1793
|
+
var init_client_error_codes = __esm({
|
|
1794
|
+
"../contracts/src/client-error-codes.ts"() {
|
|
1795
|
+
"use strict";
|
|
1796
|
+
}
|
|
1797
|
+
});
|
|
1798
|
+
|
|
1744
1799
|
// ../contracts/src/policy-capabilities.ts
|
|
1745
1800
|
var POLICY_REQUEST_CAPABILITY, KNOWN_POLICY_REQUEST_CAPABILITIES, CLI_POLICY_REQUEST_CAPABILITIES;
|
|
1746
1801
|
var init_policy_capabilities = __esm({
|
|
@@ -2061,9 +2116,12 @@ var init_src = __esm({
|
|
|
2061
2116
|
init_key_scope();
|
|
2062
2117
|
init_hook_activation();
|
|
2063
2118
|
init_setup_wire();
|
|
2119
|
+
init_agent_event_wire();
|
|
2120
|
+
init_doctor_wire();
|
|
2064
2121
|
init_cli_local_confirm();
|
|
2065
2122
|
init_terminal_phone_sign_in();
|
|
2066
2123
|
init_observability();
|
|
2124
|
+
init_client_error_codes();
|
|
2067
2125
|
init_policy_capabilities();
|
|
2068
2126
|
init_policy_reuse();
|
|
2069
2127
|
init_declined_agents();
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
openClawRepairStep,
|
|
5
5
|
readHermesShellGate,
|
|
6
6
|
readSetupFailure
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-T4EVAVKF.js";
|
|
8
8
|
import {
|
|
9
9
|
CODEX_HOOK_REMEDY,
|
|
10
10
|
HERMES_RESTART_COMMAND,
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
describeHermesShellGate,
|
|
13
13
|
describeHermesState,
|
|
14
14
|
hermesRepairStep
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-JG4JGAI2.js";
|
|
16
16
|
import {
|
|
17
17
|
describeWaitLadder
|
|
18
18
|
} from "../chunk-CVWG2N3Y.js";
|
|
19
19
|
import {
|
|
20
20
|
writeJsonError,
|
|
21
21
|
writeStdoutFully
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-QGYVOSDC.js";
|
|
23
23
|
import {
|
|
24
24
|
fetchChannels
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-CC6BYFNM.js";
|
|
26
26
|
import "../chunk-3EGEA4KH.js";
|
|
27
27
|
import {
|
|
28
28
|
GET_THE_APP_STEP,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
reachVerdict,
|
|
34
34
|
roundTripEvidence,
|
|
35
35
|
verifyRoundTrip
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-D2666AVW.js";
|
|
37
37
|
import {
|
|
38
38
|
daemonStopsAtLogout,
|
|
39
39
|
lingerDoctorDetail,
|
|
@@ -42,17 +42,17 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
readMachineReadiness,
|
|
44
44
|
readManagedControlEvidence
|
|
45
|
-
} from "../chunk-
|
|
45
|
+
} from "../chunk-JUCN4TV4.js";
|
|
46
46
|
import {
|
|
47
47
|
assessCodexHookTrust,
|
|
48
48
|
readCodexTrustForPusharyHooks
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-2DYJTOOU.js";
|
|
50
50
|
import {
|
|
51
51
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
52
52
|
activeKeyVerdictOf,
|
|
53
53
|
describeSignedOutKey,
|
|
54
54
|
readSignedOutDiagnosis
|
|
55
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-YQTU6V4X.js";
|
|
56
56
|
import {
|
|
57
57
|
agentProbes,
|
|
58
58
|
detectAgent,
|
|
@@ -61,13 +61,13 @@ import {
|
|
|
61
61
|
isPluginRegistered,
|
|
62
62
|
shortenHome,
|
|
63
63
|
vscodeSettingsTargets
|
|
64
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-EPT6MZBG.js";
|
|
65
65
|
import "../chunk-OYIN77HO.js";
|
|
66
66
|
import {
|
|
67
67
|
CONNECTED_THROUGH_MAC_APP,
|
|
68
68
|
keyWrittenByMacApp,
|
|
69
69
|
readMacAppConnectionWhenKeyless
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-VL4AJPCE.js";
|
|
71
71
|
import {
|
|
72
72
|
findHermesLauncher,
|
|
73
73
|
hasUpdateFrom,
|
|
@@ -81,13 +81,13 @@ import {
|
|
|
81
81
|
routesHermesQuestions,
|
|
82
82
|
runsAnOlderPlugin,
|
|
83
83
|
shippedHermesPlugin
|
|
84
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-CAOMKUSR.js";
|
|
85
85
|
import "../chunk-QCGNGEGE.js";
|
|
86
86
|
import {
|
|
87
87
|
findOpenClawLauncher,
|
|
88
88
|
isOpenClawWired,
|
|
89
89
|
openClawPathsNow
|
|
90
|
-
} from "../chunk-
|
|
90
|
+
} from "../chunk-IS5WMKN2.js";
|
|
91
91
|
import {
|
|
92
92
|
FX_PROFILE_REFUSALS,
|
|
93
93
|
FX_PUSHARY_TOOLS_RULE,
|
|
@@ -97,11 +97,11 @@ import {
|
|
|
97
97
|
inspectClineInstallation,
|
|
98
98
|
inspectFxInstallation,
|
|
99
99
|
inspectFxPusharyHttpWiring
|
|
100
|
-
} from "../chunk-
|
|
100
|
+
} from "../chunk-I4D4XEIJ.js";
|
|
101
101
|
import {
|
|
102
102
|
retryAgentCommand
|
|
103
|
-
} from "../chunk-
|
|
104
|
-
import "../chunk-
|
|
103
|
+
} from "../chunk-IHH3HGQQ.js";
|
|
104
|
+
import "../chunk-W7QW3XFQ.js";
|
|
105
105
|
import {
|
|
106
106
|
cliOwnsAnyAgentHooks,
|
|
107
107
|
macAppBridgeAvailable,
|
|
@@ -110,21 +110,21 @@ import {
|
|
|
110
110
|
openCodePluginDir,
|
|
111
111
|
openCodePluginFile,
|
|
112
112
|
openCodeWired
|
|
113
|
-
} from "../chunk-
|
|
114
|
-
import "../chunk-
|
|
113
|
+
} from "../chunk-V6MQUYE2.js";
|
|
114
|
+
import "../chunk-IMSFJFN6.js";
|
|
115
115
|
import {
|
|
116
116
|
OPENCODE_PLUGIN_PLACEHOLDER
|
|
117
|
-
} from "../chunk-
|
|
117
|
+
} from "../chunk-QIOPWRBQ.js";
|
|
118
118
|
import {
|
|
119
119
|
keyScopeOf,
|
|
120
120
|
pushWindowChangeStep
|
|
121
|
-
} from "../chunk-
|
|
121
|
+
} from "../chunk-DOMSM62I.js";
|
|
122
122
|
import {
|
|
123
123
|
createIo
|
|
124
|
-
} from "../chunk-
|
|
124
|
+
} from "../chunk-KEC73KH6.js";
|
|
125
125
|
import {
|
|
126
126
|
exitOnHelpFlag
|
|
127
|
-
} from "../chunk-
|
|
127
|
+
} from "../chunk-5SVZXCAJ.js";
|
|
128
128
|
import {
|
|
129
129
|
describeMissingControlPrerequisite,
|
|
130
130
|
describeOpenCodeLaunchReadiness,
|
|
@@ -135,12 +135,12 @@ import {
|
|
|
135
135
|
readOpenCodeVersion,
|
|
136
136
|
resolveControlPolicy,
|
|
137
137
|
resolveProviderBinary
|
|
138
|
-
} from "../chunk-
|
|
139
|
-
import "../chunk-
|
|
138
|
+
} from "../chunk-VSW5ZMPX.js";
|
|
139
|
+
import "../chunk-ZPM6H6GM.js";
|
|
140
140
|
import "../chunk-TCE3J44Z.js";
|
|
141
141
|
import {
|
|
142
142
|
readLedgerSummary
|
|
143
|
-
} from "../chunk-
|
|
143
|
+
} from "../chunk-DU5MLJQL.js";
|
|
144
144
|
import {
|
|
145
145
|
AUTO_UPDATE_DISABLE_ENV,
|
|
146
146
|
autoUpdateOffReason,
|
|
@@ -148,7 +148,7 @@ import {
|
|
|
148
148
|
describeAutoUpdateCheck,
|
|
149
149
|
readAutoUpdateState,
|
|
150
150
|
takeAutoUpdateAnnouncement
|
|
151
|
-
} from "../chunk-
|
|
151
|
+
} from "../chunk-H4XEEC4I.js";
|
|
152
152
|
import {
|
|
153
153
|
compatibleConfigFile,
|
|
154
154
|
compatibleInstructionsFile,
|
|
@@ -156,8 +156,8 @@ import {
|
|
|
156
156
|
hasCompatibleHooks,
|
|
157
157
|
hasCompatibleMcpServer,
|
|
158
158
|
missingCompatibleHookEvents
|
|
159
|
-
} from "../chunk-
|
|
160
|
-
import "../chunk-
|
|
159
|
+
} from "../chunk-HZ76NLD2.js";
|
|
160
|
+
import "../chunk-RA4RSVVJ.js";
|
|
161
161
|
import {
|
|
162
162
|
daemonHasRemoteProof,
|
|
163
163
|
daemonServiceManagerAvailable,
|
|
@@ -170,7 +170,7 @@ import {
|
|
|
170
170
|
readServiceExecPath,
|
|
171
171
|
serviceStartFileChecks,
|
|
172
172
|
versionManagerOf
|
|
173
|
-
} from "../chunk-
|
|
173
|
+
} from "../chunk-J7V5ZFZC.js";
|
|
174
174
|
import {
|
|
175
175
|
GEMINI_HOOK_BINARY,
|
|
176
176
|
claudeOtherHolders,
|
|
@@ -190,41 +190,45 @@ import {
|
|
|
190
190
|
holdsLong,
|
|
191
191
|
missingGeminiHookEvents,
|
|
192
192
|
pusharyHookExecutable
|
|
193
|
-
} from "../chunk-
|
|
194
|
-
import
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
import "../chunk-
|
|
193
|
+
} from "../chunk-5K5MT22J.js";
|
|
194
|
+
import {
|
|
195
|
+
telemetryOptedOut
|
|
196
|
+
} from "../chunk-DIHUVYT2.js";
|
|
197
|
+
import "../chunk-HVY3YUJU.js";
|
|
198
|
+
import "../chunk-NHLCREFU.js";
|
|
199
|
+
import "../chunk-43DXK6WE.js";
|
|
198
200
|
import {
|
|
199
201
|
parseFlags
|
|
200
202
|
} from "../chunk-BZIBNSQE.js";
|
|
201
203
|
import "../chunk-P6DUWKAO.js";
|
|
202
204
|
import "../chunk-3PSNUHC5.js";
|
|
203
|
-
import "../chunk-
|
|
204
|
-
import "../chunk-
|
|
205
|
+
import "../chunk-RX75OG6S.js";
|
|
206
|
+
import "../chunk-F6LNIS2Y.js";
|
|
205
207
|
import "../chunk-POFBE6ZY.js";
|
|
206
208
|
import {
|
|
207
209
|
callMcpTool,
|
|
208
210
|
sendMcpRequest
|
|
209
|
-
} from "../chunk-
|
|
210
|
-
import
|
|
211
|
-
|
|
211
|
+
} from "../chunk-C4D6R27P.js";
|
|
212
|
+
import {
|
|
213
|
+
fetchAsCredential
|
|
214
|
+
} from "../chunk-LE6VFEJU.js";
|
|
215
|
+
import "../chunk-EVJ5DPRU.js";
|
|
212
216
|
import {
|
|
213
217
|
checkApiKey,
|
|
214
218
|
describeKeyCheck
|
|
215
|
-
} from "../chunk-
|
|
216
|
-
import "../chunk-
|
|
219
|
+
} from "../chunk-YEIHJAE6.js";
|
|
220
|
+
import "../chunk-IK4MIPI2.js";
|
|
217
221
|
import {
|
|
218
222
|
getMachineId
|
|
219
|
-
} from "../chunk-
|
|
223
|
+
} from "../chunk-HSVVH7K2.js";
|
|
220
224
|
import {
|
|
221
225
|
keyEnvFilePath,
|
|
222
226
|
readConfigFileKey,
|
|
223
227
|
readControlMode,
|
|
224
228
|
readKeyInForce,
|
|
225
229
|
readKeySource
|
|
226
|
-
} from "../chunk-
|
|
227
|
-
import "../chunk-
|
|
230
|
+
} from "../chunk-K5ZEJCJO.js";
|
|
231
|
+
import "../chunk-CTTIW2A3.js";
|
|
228
232
|
import {
|
|
229
233
|
CLINE_AUTO_APPROVE_STEP,
|
|
230
234
|
CLINE_LABEL,
|
|
@@ -262,7 +266,7 @@ import {
|
|
|
262
266
|
readCodexMcpAuth,
|
|
263
267
|
resolveBridgeStub,
|
|
264
268
|
vscodePluginDir
|
|
265
|
-
} from "../chunk-
|
|
269
|
+
} from "../chunk-AURPPDRZ.js";
|
|
266
270
|
import "../chunk-6ICPEJY5.js";
|
|
267
271
|
import {
|
|
268
272
|
chosenRelease,
|
|
@@ -272,11 +276,11 @@ import {
|
|
|
272
276
|
npmRunnerWithin,
|
|
273
277
|
readGlobalCliInstall,
|
|
274
278
|
resolvePathBinary
|
|
275
|
-
} from "../chunk-
|
|
279
|
+
} from "../chunk-SLD22IUB.js";
|
|
276
280
|
import {
|
|
277
281
|
getBaseUrl,
|
|
278
282
|
keyPrefixToShow
|
|
279
|
-
} from "../chunk-
|
|
283
|
+
} from "../chunk-WV7OME3F.js";
|
|
280
284
|
import {
|
|
281
285
|
UsageError
|
|
282
286
|
} from "../chunk-CINBAX5G.js";
|
|
@@ -285,7 +289,7 @@ import {
|
|
|
285
289
|
} from "../chunk-PM2NRK6Y.js";
|
|
286
290
|
import {
|
|
287
291
|
NPX_LATEST_COMMAND
|
|
288
|
-
} from "../chunk-
|
|
292
|
+
} from "../chunk-APTFA4KF.js";
|
|
289
293
|
import {
|
|
290
294
|
EXIT
|
|
291
295
|
} from "../chunk-BG4HHB7E.js";
|
|
@@ -298,6 +302,8 @@ import {
|
|
|
298
302
|
AGENTS,
|
|
299
303
|
CURSOR_GATE_EVENTS,
|
|
300
304
|
CURSOR_GATE_SCRIPT,
|
|
305
|
+
DOCTOR_CHECK_AREAS,
|
|
306
|
+
DOCTOR_RAN_EVENT,
|
|
301
307
|
DOCTOR_VERIFICATION_SENDER,
|
|
302
308
|
HOOK_COMPATIBLE_PROFILES,
|
|
303
309
|
HOOK_LOCATOR_BINARY,
|
|
@@ -305,12 +311,13 @@ import {
|
|
|
305
311
|
MAX_HOOK_ACTIVATION_EVIDENCE_ROWS,
|
|
306
312
|
SUPPORT_DISCORD,
|
|
307
313
|
SUPPORT_EMAIL,
|
|
314
|
+
computerOsOfPlatform,
|
|
308
315
|
hookActivationResult,
|
|
309
316
|
hookCompatibleProfile,
|
|
310
317
|
isHookActivationReport,
|
|
311
318
|
isValidApiKey,
|
|
312
319
|
redactSecretsFromContent
|
|
313
|
-
} from "../chunk-
|
|
320
|
+
} from "../chunk-VZVKJP3Q.js";
|
|
314
321
|
import "../chunk-MLKGABMK.js";
|
|
315
322
|
|
|
316
323
|
// bin/pushary-doctor.ts
|
|
@@ -483,6 +490,85 @@ var resolveDoctorExit = ({ keyExit, failures }) => {
|
|
|
483
490
|
return EXIT.PROBLEMS_FOUND;
|
|
484
491
|
};
|
|
485
492
|
|
|
493
|
+
// src/diagnostics/doctor-run-report.ts
|
|
494
|
+
var DOCTOR_AGENT_TYPE = "doctor";
|
|
495
|
+
var DOCTOR_RUN_REPORT_TIMEOUT_MS = 1500;
|
|
496
|
+
var LABEL_PREFIX_AREAS = [
|
|
497
|
+
["Claude Code", "claude_code"],
|
|
498
|
+
["claude alias", "claude_code"],
|
|
499
|
+
["Codex", "codex"],
|
|
500
|
+
["Gemini CLI", "gemini_cli"],
|
|
501
|
+
["Cursor", "cursor"],
|
|
502
|
+
["VS Code", "vscode"],
|
|
503
|
+
["Cline", "cline"],
|
|
504
|
+
["Hermes", "hermes"],
|
|
505
|
+
["OpenClaw", "openclaw"],
|
|
506
|
+
["OpenCode", "opencode"],
|
|
507
|
+
["fx:", "fx"]
|
|
508
|
+
];
|
|
509
|
+
var LABEL_KEYWORD_AREAS = [
|
|
510
|
+
["MCP", "mcp"],
|
|
511
|
+
["API key", "api-key"],
|
|
512
|
+
["PUSHARY_API_KEY", "api-key"],
|
|
513
|
+
["Key ", "api-key"],
|
|
514
|
+
["Plan active", "api-key"],
|
|
515
|
+
["Push notification", "phone"],
|
|
516
|
+
["Phone", "phone"],
|
|
517
|
+
["answer", "phone"],
|
|
518
|
+
["pproval", "phone"],
|
|
519
|
+
["Global package", "package"],
|
|
520
|
+
["Remote-control", "control"],
|
|
521
|
+
["Mac app", "control"],
|
|
522
|
+
["Skill", "skill"]
|
|
523
|
+
];
|
|
524
|
+
var doctorCheckAreaOf = (label) => {
|
|
525
|
+
if (label === CONNECTED_THROUGH_MAC_APP) return "api-key";
|
|
526
|
+
const byPrefix = LABEL_PREFIX_AREAS.find(([prefix]) => label.startsWith(prefix));
|
|
527
|
+
if (byPrefix) return byPrefix[1];
|
|
528
|
+
const byKeyword = LABEL_KEYWORD_AREAS.find(([keyword]) => label.includes(keyword));
|
|
529
|
+
return byKeyword ? byKeyword[1] : "other";
|
|
530
|
+
};
|
|
531
|
+
var areasOf = (checks) => {
|
|
532
|
+
const named = new Set(checks.map((check2) => doctorCheckAreaOf(check2.label)));
|
|
533
|
+
return DOCTOR_CHECK_AREAS.filter((area) => named.has(area));
|
|
534
|
+
};
|
|
535
|
+
var doctorRunBeaconOf = (facts) => ({
|
|
536
|
+
checks: areasOf(facts.checks),
|
|
537
|
+
failed: areasOf(facts.checks.filter((check2) => !check2.passed)),
|
|
538
|
+
exitCode: facts.exitCode,
|
|
539
|
+
cliVersion: facts.cliVersion,
|
|
540
|
+
os: facts.os
|
|
541
|
+
});
|
|
542
|
+
var doctorRunBodyOf = (beacon, machineId) => ({
|
|
543
|
+
event: DOCTOR_RAN_EVENT,
|
|
544
|
+
agentType: DOCTOR_AGENT_TYPE,
|
|
545
|
+
checks: beacon.checks,
|
|
546
|
+
failed: beacon.failed,
|
|
547
|
+
exitCode: beacon.exitCode,
|
|
548
|
+
cliVersion: beacon.cliVersion,
|
|
549
|
+
os: beacon.os,
|
|
550
|
+
machineId
|
|
551
|
+
});
|
|
552
|
+
var postDoctorRun = async (post) => {
|
|
553
|
+
const response = await fetchAsCredential(post.apiKey, `${post.baseUrl}/api/agent/event`, {
|
|
554
|
+
method: "POST",
|
|
555
|
+
headers: { "Content-Type": "application/json", Authorization: `Bearer ${post.apiKey}` },
|
|
556
|
+
body: JSON.stringify(post.body),
|
|
557
|
+
signal: AbortSignal.timeout(DOCTOR_RUN_REPORT_TIMEOUT_MS)
|
|
558
|
+
}, post.fetchImpl);
|
|
559
|
+
if (!response.ok) throw new Error(`/api/agent/event rejected (${response.status})`);
|
|
560
|
+
};
|
|
561
|
+
var reportDoctorRun = async (apiKey, beacon, deps) => {
|
|
562
|
+
if (apiKey === null) return "no-key";
|
|
563
|
+
if (deps.optedOut()) return "opted-out";
|
|
564
|
+
try {
|
|
565
|
+
await deps.send(apiKey, beacon);
|
|
566
|
+
return "sent";
|
|
567
|
+
} catch {
|
|
568
|
+
return "failed";
|
|
569
|
+
}
|
|
570
|
+
};
|
|
571
|
+
|
|
486
572
|
// src/diagnostics/config-rewriters.ts
|
|
487
573
|
var CONFIG_REWRITERS = Object.freeze([
|
|
488
574
|
{
|
|
@@ -1770,6 +1856,14 @@ var main = async () => {
|
|
|
1770
1856
|
console.log();
|
|
1771
1857
|
const keyExit = keyVerdict && (keyVerdict.kind === "rejected" || keyVerdict.kind === "locked" || keyVerdict.kind === "malformed") ? describeKeyCheck(keyVerdict).exitCode : null;
|
|
1772
1858
|
const exitCode = resolveDoctorExit({ keyExit, failures: failed });
|
|
1859
|
+
const doctorRunReported = reportDoctorRun(
|
|
1860
|
+
keyVerdict?.kind === "ok" && apiKey ? apiKey : null,
|
|
1861
|
+
doctorRunBeaconOf({ checks: results, exitCode, cliVersion: getPackageVersion(), os: computerOsOfPlatform(process.platform) }),
|
|
1862
|
+
{
|
|
1863
|
+
send: (key, beacon) => postDoctorRun({ apiKey: key, baseUrl: getBaseUrl(), body: doctorRunBodyOf(beacon, getMachineId()), fetchImpl: fetch }),
|
|
1864
|
+
optedOut: () => telemetryOptedOut(process.env)
|
|
1865
|
+
}
|
|
1866
|
+
);
|
|
1773
1867
|
if (options.bundle) {
|
|
1774
1868
|
try {
|
|
1775
1869
|
const bundle = redact(
|
|
@@ -1809,6 +1903,7 @@ var main = async () => {
|
|
|
1809
1903
|
}, null, 2)}
|
|
1810
1904
|
`);
|
|
1811
1905
|
}
|
|
1906
|
+
await doctorRunReported;
|
|
1812
1907
|
process.exit(exitCode);
|
|
1813
1908
|
};
|
|
1814
1909
|
main().catch(async (err) => {
|