pushary 1.9.245 → 1.9.246
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 +8 -0
- package/README.md +2 -2
- package/data/cursor-plugin/README.md +1 -1
- package/data/vscode-plugin/README.md +1 -1
- package/dist/{api-6L636FFI.js → api-HA57S6PN.js} +11 -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 +26 -26
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +34 -34
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +35 -35
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +46 -46
- package/dist/bin/pushary-disconnect.js +33 -31
- package/dist/bin/pushary-display-hook.js +73 -4
- package/dist/bin/pushary-doctor.js +47 -47
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +31 -31
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +23 -23
- package/dist/bin/pushary-logout.js +31 -31
- 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 +32 -32
- package/dist/bin/pushary-permission-denied-hook.js +34 -34
- package/dist/bin/pushary-permission-hook.js +35 -35
- package/dist/bin/pushary-post-hook.js +28 -28
- package/dist/bin/pushary-prompt-hook.js +27 -27
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +39 -39
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +58 -58
- 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 +26 -26
- 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-3DW6IVG5.js → chunk-2DPOXTSE.js} +2 -2
- package/dist/{chunk-M3EGOLWI.js → chunk-2TTBUGSV.js} +2 -2
- package/dist/{chunk-4OMJ2LP2.js → chunk-47FNCTRG.js} +4 -4
- package/dist/{chunk-I46M3FVO.js → chunk-4EM6W75L.js} +7 -7
- package/dist/{chunk-BNB7VOJE.js → chunk-5ANGJL2J.js} +2 -2
- package/dist/{chunk-XCR3IXKE.js → chunk-5TZKOUQR.js} +1 -1
- package/dist/{chunk-J7AUOLJD.js → chunk-5XGF64U5.js} +5 -5
- package/dist/{chunk-IR67OATS.js → chunk-75F4L2W2.js} +6 -6
- package/dist/{chunk-HHY574OJ.js → chunk-AEAH6FCM.js} +6 -6
- package/dist/{chunk-F7MIUZU5.js → chunk-AIWP5HX6.js} +2 -2
- package/dist/{chunk-XWL4ZWTC.js → chunk-BC5BDWY3.js} +1 -1
- package/dist/{chunk-R5LKQNBS.js → chunk-BJ73ZDMN.js} +4 -4
- package/dist/{chunk-2KJUGUYQ.js → chunk-CTXXTEFA.js} +6 -6
- package/dist/{chunk-5UZ6VRUA.js → chunk-CTZIFG53.js} +4 -4
- package/dist/{chunk-BK7EZIAG.js → chunk-CV6NQKHB.js} +2 -2
- package/dist/{chunk-G57SFOGM.js → chunk-DJGQ3Z22.js} +1 -1
- package/dist/{chunk-QV6SWMVL.js → chunk-DNP3YB3F.js} +5 -5
- package/dist/{chunk-THBEXOTL.js → chunk-DPKVOWMU.js} +1 -1
- package/dist/{chunk-J2FYEMDA.js → chunk-DQ4BN64G.js} +7 -7
- package/dist/{chunk-DY45DRQQ.js → chunk-E6HGFGDF.js} +2 -2
- package/dist/{chunk-IBLORC2W.js → chunk-EIVPCAFX.js} +12 -12
- package/dist/{chunk-QRUVYQM5.js → chunk-EUXMTG2Z.js} +1 -1
- package/dist/{chunk-GTSVMILT.js → chunk-EWLN4HBC.js} +2 -2
- package/dist/{chunk-JAXA5POJ.js → chunk-F7S7BZXK.js} +4 -4
- package/dist/{chunk-RAK5AKBH.js → chunk-FNUBR5NL.js} +1 -1
- package/dist/{chunk-3C3U43UY.js → chunk-FV5TLWQS.js} +1 -1
- package/dist/{chunk-G2QR2OOD.js → chunk-GWWVEBLW.js} +2 -2
- package/dist/{chunk-JXH56OQJ.js → chunk-H5OVGHDY.js} +1 -1
- package/dist/{chunk-ZELRSKRA.js → chunk-HC67BBDW.js} +2 -2
- package/dist/{chunk-VBO4B4PL.js → chunk-HX7H3SCP.js} +10 -10
- package/dist/{chunk-I3TBXGED.js → chunk-IB7RICIP.js} +5 -5
- package/dist/{chunk-ZICVRFNH.js → chunk-IQ5YFQY6.js} +1 -1
- package/dist/{chunk-NEKEDV5H.js → chunk-JUEVORTN.js} +2 -2
- package/dist/{chunk-WXLHDE5H.js → chunk-KJWNXL6M.js} +5 -5
- package/dist/{chunk-RY7SLZVY.js → chunk-KRFL2TTE.js} +16 -16
- package/dist/{chunk-BATXVYBR.js → chunk-KSIDZDZP.js} +1 -1
- package/dist/{chunk-VJGNKY3G.js → chunk-KXN3XO67.js} +4 -4
- package/dist/{chunk-JOOLRMRT.js → chunk-KY2NAAX7.js} +1 -1
- package/dist/{chunk-7MFLS3LV.js → chunk-LFNIBQHE.js} +4 -4
- package/dist/{chunk-VNUBOY2Z.js → chunk-LHARTJ7Y.js} +1 -1
- package/dist/{chunk-CA2BNB66.js → chunk-LIA6KTRT.js} +11 -11
- package/dist/{chunk-PGWUHKNZ.js → chunk-LZV3SN2U.js} +6 -6
- package/dist/{chunk-TQVA4OWU.js → chunk-M64BUY66.js} +3 -3
- package/dist/{chunk-VRDTIJQX.js → chunk-MVMPHFB4.js} +49 -6
- package/dist/{chunk-HZSTXGMB.js → chunk-NNG74VEC.js} +3 -3
- package/dist/{chunk-CKCDYRLT.js → chunk-O57ADP6V.js} +1 -1
- package/dist/{chunk-ZFLMWNUJ.js → chunk-PN2KZ4GT.js} +7 -5
- package/dist/{chunk-6KRO6DQC.js → chunk-QAWEMILZ.js} +1 -1
- package/dist/{chunk-WMDZB37J.js → chunk-QNKWX26I.js} +1 -1
- package/dist/{chunk-JEEYHFFF.js → chunk-RF4RU7HT.js} +1 -1
- package/dist/{chunk-KS4N7MUS.js → chunk-RGGOB2KA.js} +6 -6
- package/dist/{chunk-7WIYDCUB.js → chunk-RRL7CNHL.js} +1 -1
- package/dist/{chunk-PEQ3TYLP.js → chunk-RY6WEXPX.js} +3 -3
- package/dist/{chunk-INLOMDYZ.js → chunk-S2FFK25V.js} +8 -8
- package/dist/{chunk-RBQWVGEX.js → chunk-SDE3MQZD.js} +3 -3
- package/dist/{chunk-6BWATFAV.js → chunk-SLU2SBAL.js} +2 -2
- package/dist/{chunk-73I733XY.js → chunk-SO63LVC3.js} +3 -3
- package/dist/{chunk-H75XNDPU.js → chunk-UERY25QK.js} +2 -2
- package/dist/{chunk-IU5EUBFI.js → chunk-UFFEQEVI.js} +4 -4
- package/dist/{chunk-B62INGJG.js → chunk-VQHI6O7A.js} +3 -3
- package/dist/{chunk-O2HFH6CO.js → chunk-VR6GDL6U.js} +1 -1
- package/dist/{chunk-7ZIPMIC2.js → chunk-VYXBYJPZ.js} +4 -4
- package/dist/{chunk-ZQYH7EKR.js → chunk-W66JA2VL.js} +3 -3
- package/dist/{chunk-RX4VUNYO.js → chunk-WDMIWOGT.js} +3 -3
- package/dist/{chunk-RHCDB25U.js → chunk-WQQHFYJA.js} +3 -3
- package/dist/{chunk-NQU5VPJ2.js → chunk-WRJ4VUXO.js} +1 -1
- package/dist/{chunk-GFNMWJXO.js → chunk-WYZH35RZ.js} +1 -1
- package/dist/{chunk-6EIVM3CN.js → chunk-XCYZTFVX.js} +1 -1
- package/dist/{chunk-4H6DCMIK.js → chunk-XDRXEBEC.js} +4 -2
- package/dist/{chunk-WAUNJPDC.js → chunk-XIK6UKVW.js} +1 -1
- package/dist/{chunk-DZS3JN6U.js → chunk-XJMH75YS.js} +3 -3
- package/dist/{chunk-DFKAUEKJ.js → chunk-XMI2NTQV.js} +3 -3
- package/dist/{chunk-IHJ37K7X.js → chunk-XSKZLSDU.js} +5 -5
- package/dist/{chunk-JK2NYF6W.js → chunk-YFO7NG2J.js} +4 -4
- package/dist/{chunk-NGABIHSJ.js → chunk-YN34CTII.js} +2 -2
- package/dist/{chunk-CFPHF7TJ.js → chunk-Z36DLCV3.js} +5 -5
- package/dist/{chunk-YTBF2NG7.js → chunk-Z7EYIVEE.js} +9 -9
- package/dist/{chunk-CDVHWJPI.js → chunk-ZJRMS7X2.js} +132 -14
- package/dist/{chunk-GZ2EWBNW.js → chunk-ZPLSKFWN.js} +5 -5
- package/dist/{chunk-I5QXVNJ6.js → chunk-ZQEGK23B.js} +5 -5
- package/dist/{chunk-332UCKZR.js → chunk-ZYM6WR3X.js} +4 -4
- package/dist/{codex-app-cards-switch-I6WJCVY4.js → codex-app-cards-switch-QXZWLSWG.js} +11 -11
- package/dist/{codex-card-routing-L4TL5YB4.js → codex-card-routing-4RGETOB7.js} +2 -2
- package/dist/{codex-desktop-launch-Y4ODCUFU.js → codex-desktop-launch-46NG7HNC.js} +3 -3
- package/dist/{codex-session-launch-7CS4XAD3.js → codex-session-launch-ZIH4MWQH.js} +20 -20
- package/dist/{config-77UADC3N.js → config-XUMBVT44.js} +3 -3
- package/dist/{global-upgrade-Q2QSVP7H.js → global-upgrade-QG2USMDX.js} +9 -9
- package/dist/{identity-5EC2OOW7.js → identity-WT3MS5KR.js} +4 -4
- package/dist/{live-capabilities-E23EJXRF.js → live-capabilities-LPQAHE3K.js} +4 -4
- package/dist/{paths-TTYM7HYI.js → paths-QHT5KEQU.js} +3 -3
- package/dist/{reapply-77GHMCBD.js → reapply-3YU6SKMB.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-PH5LW5VB.js → upgrade-lock-BOMZVT63.js} +4 -4
- package/dist/{usage-QZ2S5AGT.js → usage-ZE4CQY6C.js} +3 -3
- package/package.json +1 -1
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
toolResultErrorText,
|
|
30
30
|
transcriptTokensIn,
|
|
31
31
|
transcriptUsageRequest
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XDRXEBEC.js";
|
|
33
33
|
import {
|
|
34
34
|
askUser,
|
|
35
35
|
cancelQuestion,
|
|
@@ -45,37 +45,37 @@ import {
|
|
|
45
45
|
waitForOpenQuestion,
|
|
46
46
|
waitForQuestion,
|
|
47
47
|
writeDegraded
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-LZV3SN2U.js";
|
|
49
49
|
import {
|
|
50
50
|
RETRY_ACK,
|
|
51
51
|
readCommandAck,
|
|
52
52
|
refusedReceiptMessage
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-IQ5YFQY6.js";
|
|
54
54
|
import {
|
|
55
55
|
SubscriptionRequiredError,
|
|
56
56
|
isRetryable,
|
|
57
57
|
withRetry
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-XSKZLSDU.js";
|
|
59
59
|
import {
|
|
60
60
|
fetchAsCredential
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-RRL7CNHL.js";
|
|
62
62
|
import {
|
|
63
63
|
branchFor,
|
|
64
64
|
projectNameFor,
|
|
65
65
|
repoKeyFor
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-O57ADP6V.js";
|
|
67
67
|
import {
|
|
68
68
|
getMachineId
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-RF4RU7HT.js";
|
|
70
70
|
import {
|
|
71
71
|
reportedInstallSource
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-SLU2SBAL.js";
|
|
73
73
|
import {
|
|
74
74
|
IDLE_PROMPT_NOTIFICATION,
|
|
75
75
|
NOTIFICATION_PUSH_TYPES,
|
|
76
76
|
POSTTOOLUSE_MIRROR_ONLY_TOOLS,
|
|
77
77
|
claudeConfigDir
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-YN34CTII.js";
|
|
79
79
|
import {
|
|
80
80
|
compareVersion,
|
|
81
81
|
parseVersion
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
getApiKey,
|
|
85
85
|
getBaseUrl,
|
|
86
86
|
isMalformedApiKeyError
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-CV6NQKHB.js";
|
|
88
88
|
import {
|
|
89
89
|
writeFileAtomic,
|
|
90
90
|
writeJsonAtomicDurable
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
resolvePolicy,
|
|
152
152
|
unansweredRefusalReason,
|
|
153
153
|
waitsForThePhone
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
155
155
|
|
|
156
156
|
// src/pending.ts
|
|
157
157
|
import { join } from "path";
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XSKZLSDU.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RRL7CNHL.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RY6WEXPX.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YN34CTII.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CV6NQKHB.js";
|
|
26
26
|
import {
|
|
27
27
|
ASK_AGENT_NAME_MAX,
|
|
28
28
|
CLIENT_REPORT_PATH,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
isRecord,
|
|
41
41
|
truncateLine,
|
|
42
42
|
waitEndAnswered
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
44
44
|
|
|
45
45
|
// src/api.ts
|
|
46
46
|
import { randomUUID } from "crypto";
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
NpmMissingError,
|
|
4
4
|
NpmPermissionError,
|
|
5
5
|
NpmReleaseAgeError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UFFEQEVI.js";
|
|
7
7
|
import {
|
|
8
8
|
writeFileAtomic
|
|
9
9
|
} from "./chunk-PM2NRK6Y.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KY2NAAX7.js";
|
|
13
13
|
import {
|
|
14
14
|
readSetupAgentFailures
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
16
16
|
|
|
17
17
|
// src/setup/config-write.ts
|
|
18
18
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LFNIBQHE.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LIA6KTRT.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XDRXEBEC.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-YN34CTII.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_ENFORCEMENT,
|
|
25
25
|
HOOK_COMPATIBLE_PROFILES,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
pusharyMissingReason,
|
|
33
33
|
refusalOutput,
|
|
34
34
|
withHookHoldBudget
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
36
36
|
|
|
37
37
|
// src/config-document.ts
|
|
38
38
|
import { parse, stringify } from "smol-toml";
|
|
@@ -58,6 +58,48 @@ var serializeConfigDocument = (value, format) => format === "toml" ? stringify(v
|
|
|
58
58
|
// src/compatible-config.ts
|
|
59
59
|
import { homedir } from "os";
|
|
60
60
|
import { join } from "path";
|
|
61
|
+
|
|
62
|
+
// src/openhands-hooks-file.ts
|
|
63
|
+
var OPENHANDS_EVENT_BY_FIELD = {
|
|
64
|
+
pre_tool_use: "PreToolUse",
|
|
65
|
+
post_tool_use: "PostToolUse",
|
|
66
|
+
user_prompt_submit: "UserPromptSubmit",
|
|
67
|
+
session_start: "SessionStart",
|
|
68
|
+
session_end: "SessionEnd",
|
|
69
|
+
stop: "Stop"
|
|
70
|
+
};
|
|
71
|
+
var OPENHANDS_EVENTS = new Set(Object.values(OPENHANDS_EVENT_BY_FIELD));
|
|
72
|
+
var OPENHANDS_HOOKS_KEY = "hooks";
|
|
73
|
+
var openHandsEventNamed = (key) => OPENHANDS_EVENT_BY_FIELD[key] ?? (OPENHANDS_EVENTS.has(key) ? key : void 0);
|
|
74
|
+
var entriesToMove = (source, keepsEventNames) => Object.entries(source).reduce((moved, [key, value]) => {
|
|
75
|
+
if (typeof moved === "string") return moved;
|
|
76
|
+
const event = openHandsEventNamed(key);
|
|
77
|
+
if (!event || keepsEventNames && key === event) return moved;
|
|
78
|
+
if (!Array.isArray(value)) return key;
|
|
79
|
+
return [...moved, { from: key, event, entries: value }];
|
|
80
|
+
}, []);
|
|
81
|
+
var prefixed = (prefix, key) => prefix ? `${prefix}.${key}` : key;
|
|
82
|
+
var foldOpenHandsHookShapes = (config) => {
|
|
83
|
+
const current = config[OPENHANDS_HOOKS_KEY];
|
|
84
|
+
if (current !== void 0 && !isRecord(current)) return void 0;
|
|
85
|
+
const wrapped = isRecord(current);
|
|
86
|
+
const source = wrapped ? current : config;
|
|
87
|
+
const moves = entriesToMove(source, wrapped);
|
|
88
|
+
if (typeof moves === "string") return prefixed(wrapped ? OPENHANDS_HOOKS_KEY : void 0, moves);
|
|
89
|
+
const target = wrapped ? current : {};
|
|
90
|
+
const clash = moves.find(({ event }) => target[event] !== void 0 && !Array.isArray(target[event]));
|
|
91
|
+
if (clash) return prefixed(OPENHANDS_HOOKS_KEY, clash.event);
|
|
92
|
+
if (moves.length === 0) return void 0;
|
|
93
|
+
for (const { from, event, entries } of moves) {
|
|
94
|
+
const existing = Array.isArray(target[event]) ? target[event] : [];
|
|
95
|
+
delete source[from];
|
|
96
|
+
target[event] = [...existing, ...entries];
|
|
97
|
+
}
|
|
98
|
+
config[OPENHANDS_HOOKS_KEY] = target;
|
|
99
|
+
return void 0;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// src/compatible-config.ts
|
|
61
103
|
var hasCompatibleMcpServer = (profile, contents) => {
|
|
62
104
|
if (!profile.mcp) return false;
|
|
63
105
|
const document = parseConfigDocument(contents, profile.mcp.file.format);
|
|
@@ -234,8 +276,9 @@ var entryFor = (profile, definition, resolve) => {
|
|
|
234
276
|
hooks: [handler]
|
|
235
277
|
};
|
|
236
278
|
};
|
|
279
|
+
var readsOpenHandsHookShapes = (profile) => profile.payload === "openhands";
|
|
237
280
|
var addCompatibleHooks = (config, profile, binDir) => {
|
|
238
|
-
const conflictAt = hooksShapeConflict(config, profile);
|
|
281
|
+
const conflictAt = (readsOpenHandsHookShapes(profile) ? foldOpenHandsHookShapes(config) : void 0) ?? hooksShapeConflict(config, profile);
|
|
239
282
|
if (conflictAt) return { ok: false, conflictAt };
|
|
240
283
|
const hooks = descend(config, profile.hooksKeyPath);
|
|
241
284
|
const supported = new Map(compatibleHookEvents(profile).map((hook) => [hook.event, hook]));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveInstallSourceFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SLU2SBAL.js";
|
|
4
4
|
import {
|
|
5
5
|
apiKeyInForce,
|
|
6
6
|
configFilePath,
|
|
7
7
|
keyPrefixToShow
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CV6NQKHB.js";
|
|
9
9
|
import {
|
|
10
10
|
backupFile,
|
|
11
11
|
backupFileInto,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
API_KEY_PREFIX_PATTERN,
|
|
18
18
|
isRecord,
|
|
19
19
|
isValidApiKey
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
21
21
|
|
|
22
22
|
// src/shell-alias.ts
|
|
23
23
|
import { homedir } from "os";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openClawLauncherCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VQHI6O7A.js";
|
|
4
4
|
import {
|
|
5
5
|
openCodeConfigDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4EM6W75L.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-MVMPHFB4.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-YN34CTII.js";
|
|
20
20
|
import {
|
|
21
21
|
HOOK_COMPATIBLE_PROFILES
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
23
23
|
|
|
24
24
|
// src/vscode-config.ts
|
|
25
25
|
import { homedir } from "os";
|
|
@@ -172,6 +172,7 @@ import { execSync } from "child_process";
|
|
|
172
172
|
import { existsSync } from "fs";
|
|
173
173
|
import { homedir as homedir2 } from "os";
|
|
174
174
|
import { dirname, join as join2 } from "path";
|
|
175
|
+
var OPENHANDS_DESKTOP_APP = "/Applications/OpenHands Agent Canvas.app";
|
|
175
176
|
var whichCommand = () => process.platform === "win32" ? "where" : "which";
|
|
176
177
|
var binaryOnPath = (binary) => {
|
|
177
178
|
try {
|
|
@@ -267,6 +268,7 @@ var agentProbes = (home = homedir2(), platform = process.platform) => ({
|
|
|
267
268
|
},
|
|
268
269
|
...compatibleProbes(),
|
|
269
270
|
grok: { binary: "grok", paths: [join2(home, ".local", "bin", "grok")], configMarkers: [grokHome(home)] },
|
|
271
|
+
openhands: { binary: "agent-canvas", paths: [OPENHANDS_DESKTOP_APP], configMarkers: [join2(home, ".openhands", "settings.json")] },
|
|
270
272
|
// "Other" is a set of printed instructions for any MCP or HTTP client. There is
|
|
271
273
|
// nothing to detect, and it must never be auto-selected.
|
|
272
274
|
custom: { binary: null, paths: [], configMarkers: [] }
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JUEVORTN.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WDMIWOGT.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-AIWP5HX6.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YN34CTII.js";
|
|
27
27
|
import {
|
|
28
28
|
describeReleaseNpmHolds,
|
|
29
29
|
execNpm,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
npmExitedOnReleaseAge,
|
|
34
34
|
readGlobalCliInstallAt,
|
|
35
35
|
readGlobalPrefix
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-UFFEQEVI.js";
|
|
37
37
|
import {
|
|
38
38
|
NPX_LATEST_COMMAND
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-KY2NAAX7.js";
|
|
40
40
|
import {
|
|
41
41
|
EXIT
|
|
42
42
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readExistingMachineId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RF4RU7HT.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CV6NQKHB.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-ZJRMS7X2.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/net.ts
|
|
19
19
|
import { createRequire } from "module";
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
postLiveSession,
|
|
7
7
|
postLiveSessionUntilAccepted,
|
|
8
8
|
startLiveSessionHeartbeat
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XIK6UKVW.js";
|
|
10
10
|
import {
|
|
11
11
|
CommandReceipts,
|
|
12
12
|
controllerCommandSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WYZH35RZ.js";
|
|
14
14
|
import {
|
|
15
15
|
SESSION_IDLE_TIMEOUT_MS,
|
|
16
16
|
describeIdleWindow,
|
|
17
17
|
idleDeadlinePassed,
|
|
18
18
|
startProcessOwnership
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2TTBUGSV.js";
|
|
20
20
|
import {
|
|
21
21
|
spawnClaude
|
|
22
22
|
} from "./chunk-3PSNUHC5.js";
|
|
@@ -25,18 +25,18 @@ import {
|
|
|
25
25
|
isWaitForAnswerResponse,
|
|
26
26
|
withdrawQuestion,
|
|
27
27
|
writeDegraded
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LZV3SN2U.js";
|
|
29
29
|
import {
|
|
30
30
|
readCommandAck
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IQ5YFQY6.js";
|
|
32
32
|
import {
|
|
33
33
|
callMcpTool,
|
|
34
34
|
isRetryable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-XSKZLSDU.js";
|
|
36
36
|
import {
|
|
37
37
|
projectNameFor,
|
|
38
38
|
repositoryScopeFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-O57ADP6V.js";
|
|
40
40
|
import {
|
|
41
41
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
42
42
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
parseCodexQuestions,
|
|
59
59
|
planElicitationAsk,
|
|
60
60
|
readElicitationFields
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
62
62
|
|
|
63
63
|
// src/codex-question-owner.ts
|
|
64
64
|
import { createHash } from "crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RY6WEXPX.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CV6NQKHB.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
17
17
|
|
|
18
18
|
// src/session.ts
|
|
19
19
|
var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BC5BDWY3.js";
|
|
4
4
|
import {
|
|
5
5
|
parseFlags
|
|
6
6
|
} from "./chunk-BZIBNSQE.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KY2NAAX7.js";
|
|
13
13
|
import {
|
|
14
14
|
CLAUDE_CONNECTOR_GUIDE,
|
|
15
15
|
CLAUDE_CONNECTOR_STEPS,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
CLAUDE_CONNECTOR_URL,
|
|
18
18
|
COWORK_CONNECTOR_LIMIT,
|
|
19
19
|
COWORK_STANDING_INSTRUCTIONS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NNG74VEC.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KY2NAAX7.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
23
23
|
|
|
24
24
|
// src/shell-quote.ts
|
|
25
25
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -599,9 +599,9 @@ var installGlobally = (options) => {
|
|
|
599
599
|
}
|
|
600
600
|
const started = (async () => {
|
|
601
601
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
602
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
603
|
-
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
604
|
-
const { autoUpdateLock } = await import("./paths-
|
|
602
|
+
const { withUpgradeLock } = await import("./global-upgrade-QG2USMDX.js");
|
|
603
|
+
const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-BOMZVT63.js");
|
|
604
|
+
const { autoUpdateLock } = await import("./paths-QHT5KEQU.js");
|
|
605
605
|
let result = "skipped";
|
|
606
606
|
const install = async () => {
|
|
607
607
|
const planned = readPlannedSetupInstall(process.platform);
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
OPENCLAW_ENVIRONMENT_KEYS,
|
|
6
6
|
openClawEnvironmentOf,
|
|
7
7
|
openClawPathsFrom
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YN34CTII.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UFFEQEVI.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
15
15
|
|
|
16
16
|
// src/openclaw/wiring-state.ts
|
|
17
17
|
var OPENCLAW_PLUGIN_ID = "pushary";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MVMPHFB4.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LFNIBQHE.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YN34CTII.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callDecisionStore,
|
|
3
3
|
identifyingToolInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LIA6KTRT.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalJson
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YN34CTII.js";
|
|
8
8
|
import {
|
|
9
9
|
BYPASS_PERMISSION_MODE
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
11
11
|
|
|
12
12
|
// src/phone-approval.ts
|
|
13
13
|
import { createHash } from "crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VR6GDL6U.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-UFFEQEVI.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-ZJRMS7X2.js";
|
|
29
29
|
|
|
30
30
|
// src/live-capabilities.ts
|
|
31
31
|
import { execFileSync } from "child_process";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-P6DUWKAO.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchAsCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RRL7CNHL.js";
|
|
8
8
|
import {
|
|
9
9
|
getBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CV6NQKHB.js";
|
|
11
11
|
import {
|
|
12
12
|
writeJsonAtomicDurable
|
|
13
13
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
compressTranscriptRecord,
|
|
16
16
|
redactSecretsFromContent,
|
|
17
17
|
transcriptRecordPlaintext
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
19
19
|
|
|
20
20
|
// src/transcript-recipient-pin.ts
|
|
21
21
|
import { createHash } from "crypto";
|