pushary 1.9.247 → 1.9.249
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 +14 -0
- package/data/openclaw-plugin/dist/json-record.js +1 -0
- package/dist/{api-AP7ZKAC4.js → api-NCCKFLNT.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 +67 -57
- 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 +30 -30
- package/dist/bin/pushary-display-hook.js +21 -10
- 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 +69 -60
- 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-7KQL5NR6.js → chunk-2E23LSLT.js} +1 -1
- package/dist/{chunk-O5OPPV2S.js → chunk-2R2LXG6H.js} +11 -11
- package/dist/{chunk-46IJNC36.js → chunk-33IFGELL.js} +1 -1
- package/dist/{chunk-4HYHQYHX.js → chunk-3BFJF63Q.js} +5 -5
- package/dist/{chunk-7MZQVWYF.js → chunk-3DGOI6YH.js} +5 -5
- package/dist/{chunk-AAM62GRJ.js → chunk-3PWAFQCI.js} +1 -1
- package/dist/{chunk-QCYZY7SM.js → chunk-3S4OKDZR.js} +1 -1
- package/dist/{chunk-TIGMJWTH.js → chunk-4E3KK4PH.js} +3 -3
- package/dist/{chunk-AABRXBIY.js → chunk-4QTDUXS5.js} +1 -1
- package/dist/{chunk-S4N5VZRJ.js → chunk-5L7YJPS2.js} +1 -1
- package/dist/{chunk-HGWBXD3A.js → chunk-5Y7CYSQO.js} +2 -2
- package/dist/{chunk-XF6LGULK.js → chunk-7SIC6DRK.js} +6 -6
- package/dist/{chunk-L5YCMEOV.js → chunk-ACG4HJ27.js} +1 -1
- package/dist/{chunk-2MHP66YE.js → chunk-AKGJQEGR.js} +1 -1
- package/dist/{chunk-534LSPWP.js → chunk-AKT3UR6S.js} +2 -2
- package/dist/{chunk-KO3VP7KV.js → chunk-AV5QS5FQ.js} +4 -4
- package/dist/{chunk-6LNSHFHD.js → chunk-BDMNQBP4.js} +22 -22
- package/dist/{chunk-PCSUSVPL.js → chunk-BMVNMKVL.js} +3 -3
- package/dist/{chunk-5JLTTZ4A.js → chunk-BZJ22MT6.js} +1 -1
- package/dist/{chunk-GZBAWH5W.js → chunk-DIGV5AQW.js} +4 -4
- package/dist/{chunk-TIT3JTG2.js → chunk-DRLY2ELW.js} +2 -2
- package/dist/{chunk-C22UGPRX.js → chunk-DT6NJLC3.js} +1 -1
- package/dist/{chunk-BXY5XZEI.js → chunk-FJBU6OWM.js} +2 -2
- package/dist/{chunk-GA6CXG7J.js → chunk-FM7FNY5J.js} +4 -1
- package/dist/{chunk-R7ZFEHXE.js → chunk-FS4VJTFC.js} +1 -1
- package/dist/{chunk-ZHQ5GDGT.js → chunk-FZBLNBFS.js} +6 -6
- package/dist/{chunk-UP4JGKLJ.js → chunk-G76IPLDX.js} +1 -1
- package/dist/{chunk-23J7UISJ.js → chunk-GFGSIDHQ.js} +41 -35
- package/dist/{chunk-64QB6LAZ.js → chunk-GISC7J7K.js} +1 -1
- package/dist/{chunk-SI642PQX.js → chunk-GPGUGAO7.js} +1 -1
- package/dist/{chunk-RJKX4FJJ.js → chunk-IA44JTLJ.js} +2 -2
- package/dist/{chunk-LHKIMBJO.js → chunk-IR6ZNTDK.js} +10 -10
- package/dist/{chunk-OXKDOZH5.js → chunk-JZCSXMWF.js} +4 -4
- package/dist/{chunk-2BZECJVP.js → chunk-K63QVFSB.js} +27 -6
- package/dist/{chunk-3WVNDX5O.js → chunk-KFRYGJS5.js} +4 -4
- package/dist/{chunk-GVGLZBOG.js → chunk-KIYUQ2XZ.js} +3 -3
- package/dist/{chunk-D5PK3FCS.js → chunk-KT7COQH2.js} +3 -3
- package/dist/{chunk-DVM22JGJ.js → chunk-LRCWZNYY.js} +5 -5
- package/dist/{chunk-OQ4MBJEK.js → chunk-MAXV4AZR.js} +2 -2
- package/dist/{chunk-JJTKHAVD.js → chunk-MGKF5FLQ.js} +13 -3
- package/dist/{chunk-UTOND6JN.js → chunk-MQGFUEYG.js} +1 -1
- package/dist/{chunk-VX54TD6Y.js → chunk-NC24UL7K.js} +1 -1
- package/dist/{chunk-YTGHV5F3.js → chunk-NFYD5TJK.js} +2 -2
- package/dist/{chunk-A7OIGKCQ.js → chunk-NLAT5MMY.js} +15 -5
- package/dist/{chunk-NMBUEXCN.js → chunk-NLHVEM3C.js} +7 -7
- package/dist/{chunk-Y7I5JUKB.js → chunk-NQ6KV722.js} +53 -25
- package/dist/{chunk-5ZV4OJLQ.js → chunk-OD2I3DD6.js} +3 -3
- package/dist/{chunk-VYGQZDXZ.js → chunk-PFN76FSF.js} +1 -1
- package/dist/{chunk-CN7P65IZ.js → chunk-PNZPLFKE.js} +41 -5
- package/dist/{chunk-33D2NTVD.js → chunk-QLHSLYOR.js} +5 -5
- package/dist/{chunk-URI4M2Y7.js → chunk-QLKUYP7Z.js} +1 -1
- package/dist/{chunk-6L7SVCL7.js → chunk-QR2OSVGC.js} +12 -2
- package/dist/{chunk-XRKK7REL.js → chunk-QTXUETWK.js} +9 -9
- package/dist/{chunk-MOOSK3D3.js → chunk-RRUZZQ74.js} +5 -5
- package/dist/{chunk-DIVCBKJX.js → chunk-S5VZAJZC.js} +2 -2
- package/dist/{chunk-MJI2OVQQ.js → chunk-S7CJ2L7L.js} +12 -12
- package/dist/{chunk-UYI7GNRI.js → chunk-SVHLXOER.js} +4 -4
- package/dist/{chunk-RGY5D5KQ.js → chunk-SYYPELYT.js} +2 -2
- package/dist/{chunk-GRF3ROE7.js → chunk-TM3WECNP.js} +5 -5
- package/dist/{chunk-B236OY5Z.js → chunk-TTUKVQTQ.js} +6 -3
- package/dist/{chunk-FGDWDPRQ.js → chunk-UE5QZNZO.js} +7 -7
- package/dist/{chunk-ZEYB3PCY.js → chunk-UNATZHHI.js} +5 -5
- package/dist/{chunk-MNYCJISM.js → chunk-USMEX5WO.js} +1 -1
- package/dist/{chunk-U4SM4755.js → chunk-UWVA7YWR.js} +10 -5
- package/dist/{chunk-WSNBD56T.js → chunk-UXXYHW6B.js} +2 -2
- package/dist/{chunk-44K7GQQF.js → chunk-V4DMA2GT.js} +1 -1
- package/dist/{chunk-AXCLC72D.js → chunk-VSPTVHE2.js} +8 -8
- package/dist/{chunk-SNO4Q74P.js → chunk-VUDAFOQU.js} +16 -16
- package/dist/{chunk-GRI3QUPX.js → chunk-WE7TYQVB.js} +3 -3
- package/dist/{chunk-ZPXFKXHV.js → chunk-WGZFBSXM.js} +3 -3
- package/dist/{chunk-FFFNHVN6.js → chunk-WILH4LFK.js} +6 -6
- package/dist/{chunk-4JT2BY7S.js → chunk-WYIJA2GH.js} +4 -4
- package/dist/{chunk-ABEAPF3L.js → chunk-X37REV7T.js} +1 -1
- package/dist/{chunk-F5F7S2JJ.js → chunk-XJR2JCWQ.js} +6 -6
- package/dist/{chunk-K3KHHIKW.js → chunk-Y4R3NQQG.js} +4 -4
- package/dist/{chunk-WDW4F5RB.js → chunk-YONUK2EY.js} +1 -1
- package/dist/{chunk-I5EO46FK.js → chunk-YRIECI5K.js} +4 -4
- package/dist/{chunk-MZAW27UT.js → chunk-ZCRO6HW2.js} +3 -3
- package/dist/{chunk-JS3LOMRQ.js → chunk-ZGA2LFVD.js} +3 -3
- package/dist/{chunk-4CU2JKVB.js → chunk-ZPSLQQ4F.js} +6 -6
- package/dist/{chunk-NFCYFGGB.js → chunk-ZQYYPDFT.js} +5 -5
- package/dist/{codex-app-cards-switch-LSUHIBWH.js → codex-app-cards-switch-J3AR3LN3.js} +13 -11
- package/dist/{codex-card-routing-UALNWUT7.js → codex-card-routing-K6LLM4TA.js} +2 -2
- package/dist/{codex-desktop-launch-NJJP3LOL.js → codex-desktop-launch-FK53DJ36.js} +3 -3
- package/dist/{codex-session-launch-SV3UAIQN.js → codex-session-launch-PY52DUMW.js} +20 -20
- package/dist/{config-DIUV6RBG.js → config-2NISBOJX.js} +3 -3
- package/dist/{global-upgrade-432FL35T.js → global-upgrade-2CK75GFZ.js} +9 -9
- package/dist/{identity-Y4TV3HOR.js → identity-T2EYYWQJ.js} +4 -4
- package/dist/{live-capabilities-TF5OI6MP.js → live-capabilities-V4LJIPMB.js} +4 -4
- package/dist/{paths-PUHJCRSZ.js → paths-XULGFNML.js} +3 -3
- package/dist/{reapply-YF6ZPMSG.js → reapply-KAEIPK36.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-KGXKS5S3.js → upgrade-lock-TPOCYNQ3.js} +8 -4
- package/dist/{usage-D7HCNUXP.js → usage-SMB3WYHN.js} +3 -3
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
OPENCODE_PLUGIN_PLACEHOLDER,
|
|
7
7
|
OPENCODE_PLUGIN_SIBLING,
|
|
8
8
|
OPENCODE_PLUGIN_SIBLING_CONTENTS
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5L7YJPS2.js";
|
|
10
10
|
|
|
11
11
|
// src/opencode-runtime-bundle.ts
|
|
12
12
|
var openCodeRuntimeSource = `import { spawn } from 'child_process';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openClawLauncherCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MGKF5FLQ.js";
|
|
4
4
|
import {
|
|
5
5
|
openCodeConfigDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UE5QZNZO.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-GFGSIDHQ.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-NQ6KV722.js";
|
|
20
20
|
import {
|
|
21
21
|
HOOK_COMPATIBLE_PROFILES
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BDMNQBP4.js";
|
|
23
23
|
|
|
24
24
|
// src/vscode-config.ts
|
|
25
25
|
import { homedir } from "os";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
questionWindowOf
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2R2LXG6H.js";
|
|
4
4
|
import {
|
|
5
5
|
UNNAMED_ACTION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MQGFUEYG.js";
|
|
7
7
|
import {
|
|
8
8
|
ASK_USER_TIMEOUT_MS,
|
|
9
9
|
WAIT_END_TIMEOUT_MS,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
askUser,
|
|
12
12
|
unavailableQuestionUnlessRefused,
|
|
13
13
|
waitForQuestion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XJR2JCWQ.js";
|
|
15
15
|
import {
|
|
16
16
|
getMachineId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3S4OKDZR.js";
|
|
18
18
|
import {
|
|
19
19
|
hookMaxWaitSeconds,
|
|
20
20
|
hookWaitClamped,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
refusesWhenUnanswered,
|
|
25
25
|
ruleApprovesAfterItsFullWindow,
|
|
26
26
|
scopeBreachReasonOf
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-BDMNQBP4.js";
|
|
28
28
|
|
|
29
29
|
// src/pushed-question.ts
|
|
30
30
|
var scopeQuestionOf = (verdict) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QLKUYP7Z.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-K63QVFSB.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-BDMNQBP4.js";
|
|
29
29
|
|
|
30
30
|
// src/live-capabilities.ts
|
|
31
31
|
import { execFileSync } from "child_process";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NQ6KV722.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe
|
|
6
6
|
} from "./chunk-PM2NRK6Y.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BDMNQBP4.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QR2OSVGC.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4E3KK4PH.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-SYYPELYT.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NQ6KV722.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-K63QVFSB.js";
|
|
37
37
|
import {
|
|
38
38
|
NPX_LATEST_COMMAND
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-NC24UL7K.js";
|
|
40
40
|
import {
|
|
41
41
|
EXIT
|
|
42
42
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectNameFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FS4VJTFC.js";
|
|
4
4
|
import {
|
|
5
5
|
readConfigFileKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KIYUQ2XZ.js";
|
|
7
7
|
|
|
8
8
|
// src/bell/fleet.ts
|
|
9
9
|
import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UE5QZNZO.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KIYUQ2XZ.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NQ6KV722.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
12
|
} from "./chunk-PM2NRK6Y.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BDMNQBP4.js";
|
|
17
17
|
|
|
18
18
|
// src/shared-mcp-key.ts
|
|
19
19
|
var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
@@ -100,6 +100,7 @@ var redactSecretsFromContent = (text3) => applyRedactionRules(CUT_OFF_TEXT_REDAC
|
|
|
100
100
|
var redactSecretsDeep = (text3) => redactSecrets(text3).replace(HIGH_ENTROPY_RULE.pattern, HIGH_ENTROPY_RULE.replacement);
|
|
101
101
|
|
|
102
102
|
// ../contracts/src/json-record.ts
|
|
103
|
+
var nonEmptyString = (value) => typeof value === "string" && value.length > 0 ? value : void 0;
|
|
103
104
|
var isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
104
105
|
|
|
105
106
|
// ../contracts/src/agent-questions.ts
|
|
@@ -687,6 +688,9 @@ var normalizeAgentId = (value, accepted) => {
|
|
|
687
688
|
return accepted.find((candidate) => names.includes(candidate)) ?? null;
|
|
688
689
|
};
|
|
689
690
|
|
|
691
|
+
// ../contracts/src/command-exit.ts
|
|
692
|
+
var commandExitFailure = (exitCode) => typeof exitCode === "number" && exitCode !== 0 ? `Command exited with code ${exitCode}.` : void 0;
|
|
693
|
+
|
|
690
694
|
// ../contracts/src/grok.ts
|
|
691
695
|
var GROK_FIELD_ALIASES = {
|
|
692
696
|
sessionId: "session_id",
|
|
@@ -709,9 +713,8 @@ var grokToolResult = (value) => {
|
|
|
709
713
|
if (!isRecord(value)) return value;
|
|
710
714
|
const { is_error, ...result } = value;
|
|
711
715
|
if (is_error === true) return { ...result, error: "Grok reported an MCP tool error." };
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
}
|
|
716
|
+
const exitFailure = value.type === "Bash" ? commandExitFailure(value.exit_code) : void 0;
|
|
717
|
+
if (exitFailure) return { ...result, error: exitFailure };
|
|
715
718
|
if (value.type === "SearchReplace" && value.EditsApplied === void 0) return { ...result, error: "Grok could not apply the edit." };
|
|
716
719
|
if (value.type === "ApplyPatch" && value.Success === void 0) return { ...result, error: "Grok could not apply the patch." };
|
|
717
720
|
return is_error === false ? result : value;
|
|
@@ -749,37 +752,35 @@ var OPENHANDS_EDITOR_TOOL_BY_COMMAND = {
|
|
|
749
752
|
};
|
|
750
753
|
var OPENHANDS_EDITOR_FALLBACK_TOOL = "Edit";
|
|
751
754
|
var PROMPT_EVENT = "UserPromptSubmit";
|
|
752
|
-
var nonEmptyString = (value) => typeof value === "string" && value.length > 0 ? value : void 0;
|
|
753
755
|
var isSetActionField = ([key, value]) => key !== OPENHANDS_ACTION_KIND_KEY && value !== null;
|
|
754
|
-
var
|
|
756
|
+
var setActionFieldsOf = (toolInput) => isRecord(toolInput) ? Object.fromEntries(Object.entries(toolInput).filter(isSetActionField)) : void 0;
|
|
755
757
|
var OPENHANDS_EVENT_FIELDS = /* @__PURE__ */ new Set(["tool_name", "tool_input", "tool_response", "message"]);
|
|
756
758
|
var isSetEventField = ([key, value]) => value !== null || !OPENHANDS_EVENT_FIELDS.has(key);
|
|
757
759
|
var withoutUnsetEventFields = (payload) => Object.fromEntries(Object.entries(payload).filter(isSetEventField));
|
|
758
760
|
var OPENHANDS_TOOL_ERROR = "OpenHands reported a tool error.";
|
|
759
|
-
var openHandsExitFailure = (exitCode) => typeof exitCode === "number" && exitCode !== 0 ? `Command exited with code ${exitCode}.` : void 0;
|
|
760
761
|
var openHandsToolResult = (value) => {
|
|
761
762
|
if (!isRecord(value) || !("is_error" in value)) return value;
|
|
762
763
|
const { is_error, ...result } = value;
|
|
763
|
-
const failure = is_error === true ? OPENHANDS_TOOL_ERROR :
|
|
764
|
+
const failure = is_error === true ? OPENHANDS_TOOL_ERROR : commandExitFailure(value.exit_code);
|
|
764
765
|
return failure ? { ...result, error: failure } : result;
|
|
765
766
|
};
|
|
766
767
|
var openHandsEditorTool = (toolInput) => {
|
|
767
|
-
const command =
|
|
768
|
+
const command = toolInput?.command;
|
|
768
769
|
return typeof command === "string" ? OPENHANDS_EDITOR_TOOL_BY_COMMAND[command] ?? OPENHANDS_EDITOR_FALLBACK_TOOL : OPENHANDS_EDITOR_FALLBACK_TOOL;
|
|
769
770
|
};
|
|
770
|
-
var openHandsToolName = (toolName, toolInput) =>
|
|
771
|
+
var openHandsToolName = (toolName, toolInput) => OPENHANDS_FILE_EDITOR_TOOLS.has(toolName) ? openHandsEditorTool(toolInput) : toolName;
|
|
771
772
|
var openHandsHookInput = (event, payload) => {
|
|
772
773
|
const name = nonEmptyString(payload.event_type) ?? nonEmptyString(payload.hook_event_name) ?? event;
|
|
773
774
|
const cwd = nonEmptyString(payload.working_dir) ?? nonEmptyString(payload.cwd);
|
|
774
775
|
const prompt = name === PROMPT_EVENT ? nonEmptyString(payload.message) : void 0;
|
|
775
|
-
const toolInput =
|
|
776
|
+
const toolInput = setActionFieldsOf(payload.tool_input);
|
|
776
777
|
return {
|
|
777
778
|
...withoutUnsetEventFields(payload),
|
|
778
779
|
...name ? { hook_event_name: name } : {},
|
|
779
780
|
...cwd ? { cwd } : {},
|
|
780
781
|
...prompt ? { prompt } : {},
|
|
781
782
|
...typeof payload.tool_name === "string" ? { tool_name: openHandsToolName(payload.tool_name, toolInput) } : {},
|
|
782
|
-
...
|
|
783
|
+
...toolInput ? { tool_input: toolInput } : {},
|
|
783
784
|
...isRecord(payload.tool_response) ? { tool_response: openHandsToolResult(payload.tool_response) } : {}
|
|
784
785
|
};
|
|
785
786
|
};
|
|
@@ -925,28 +926,27 @@ var refusalOutput = (profile, reason) => JSON.stringify(renderPreToolUseVerdict(
|
|
|
925
926
|
}));
|
|
926
927
|
var ANTIGRAVITY_MCP_TOOL = "call_mcp_tool";
|
|
927
928
|
var isPayloadRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
|
|
928
|
-
var nonEmptyString2 = (value) => typeof value === "string" && value.length > 0 ? value : void 0;
|
|
929
929
|
var mcpToolCall = (args) => {
|
|
930
|
-
const server =
|
|
931
|
-
const tool =
|
|
930
|
+
const server = nonEmptyString(args.ServerName);
|
|
931
|
+
const tool = nonEmptyString(args.ToolName);
|
|
932
932
|
if (!server || !tool) return void 0;
|
|
933
933
|
return { tool_name: `mcp__${server}__${tool}`, tool_input: isPayloadRecord(args.Arguments) ? args.Arguments : {} };
|
|
934
934
|
};
|
|
935
935
|
var antigravityToolCall = (toolCall) => {
|
|
936
936
|
if (!isPayloadRecord(toolCall)) return void 0;
|
|
937
|
-
const name =
|
|
937
|
+
const name = nonEmptyString(toolCall.name);
|
|
938
938
|
if (!name) return void 0;
|
|
939
939
|
const args = isPayloadRecord(toolCall.args) ? toolCall.args : {};
|
|
940
940
|
return (name === ANTIGRAVITY_MCP_TOOL ? mcpToolCall(args) : void 0) ?? { tool_name: name, tool_input: args };
|
|
941
941
|
};
|
|
942
|
-
var firstWorkspace = (payload) => Array.isArray(payload.workspacePaths) ? payload.workspacePaths.map(
|
|
942
|
+
var firstWorkspace = (payload) => Array.isArray(payload.workspacePaths) ? payload.workspacePaths.map(nonEmptyString).find(Boolean) : void 0;
|
|
943
943
|
var fromAntigravity = (event, payload) => {
|
|
944
944
|
const { toolCall, ...rest } = payload;
|
|
945
945
|
const call = antigravityToolCall(toolCall);
|
|
946
|
-
const cwd = firstWorkspace(payload) ??
|
|
947
|
-
const sessionId =
|
|
948
|
-
const transcriptPath =
|
|
949
|
-
const error = event === "PostToolUse" ?
|
|
946
|
+
const cwd = firstWorkspace(payload) ?? nonEmptyString(call?.tool_input.Cwd);
|
|
947
|
+
const sessionId = nonEmptyString(payload.conversationId);
|
|
948
|
+
const transcriptPath = nonEmptyString(payload.transcriptPath);
|
|
949
|
+
const error = event === "PostToolUse" ? nonEmptyString(payload.error) : void 0;
|
|
950
950
|
return {
|
|
951
951
|
...rest,
|
|
952
952
|
...event ? { hook_event_name: event } : {},
|
|
@@ -4739,10 +4739,10 @@ var SETUP_AGENT_FAILURE_KINDS = [
|
|
|
4739
4739
|
"app-account-mismatch"
|
|
4740
4740
|
];
|
|
4741
4741
|
var isSetupAgentFailureKind = (value) => typeof value === "string" && SETUP_AGENT_FAILURE_KINDS.includes(value);
|
|
4742
|
-
var SETUP_AGENT_FAILURE_CODES = ["npm-missing", "npm-global-prefix-denied", "npm-file-in-use", "npm-release-age", "npm-install-failed", "config-write-failed"];
|
|
4742
|
+
var SETUP_AGENT_FAILURE_CODES = ["npm-missing", "npm-global-prefix-denied", "npm-file-in-use", "npm-release-age", "npm-disk-full", "npm-install-failed", "config-write-failed"];
|
|
4743
4743
|
var SETUP_AGENT_FAILURE_STAGES = ["runtime-install", "config-read", "config-write", "hook-validation", "account-check", "unknown"];
|
|
4744
4744
|
var isSetupAgentFailureStage = (value) => typeof value === "string" && SETUP_AGENT_FAILURE_STAGES.includes(value);
|
|
4745
|
-
var SETUP_AGENT_FAILURE_REMEDIES = ["retry-agent", "install-node", "fix-npm-prefix", "close-node-programs", "use-npm-policy", "match-mac-account"];
|
|
4745
|
+
var SETUP_AGENT_FAILURE_REMEDIES = ["retry-agent", "install-node", "fix-npm-prefix", "close-node-programs", "use-npm-policy", "free-disk-space", "match-mac-account"];
|
|
4746
4746
|
var isSetupAgentFailureCode = (value) => typeof value === "string" && SETUP_AGENT_FAILURE_CODES.includes(value);
|
|
4747
4747
|
var isSetupAgentFailureRemedy = (value) => typeof value === "string" && SETUP_AGENT_FAILURE_REMEDIES.includes(value);
|
|
4748
4748
|
var isSetupAgentFailure = (value) => {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-P6DUWKAO.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchAsCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V4DMA2GT.js";
|
|
8
8
|
import {
|
|
9
9
|
getBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IA44JTLJ.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-BDMNQBP4.js";
|
|
19
19
|
|
|
20
20
|
// src/transcript-recipient-pin.ts
|
|
21
21
|
import { createHash } from "crypto";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
verifyAnchoredRecipients,
|
|
12
12
|
wrapSessionKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BMVNMKVL.js";
|
|
14
14
|
|
|
15
15
|
// src/live-session.ts
|
|
16
16
|
var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GFGSIDHQ.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WYIJA2GH.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NQ6KV722.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BDMNQBP4.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KIYUQ2XZ.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NC24UL7K.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NQ6KV722.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-BDMNQBP4.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computerOsOfPlatform,
|
|
3
3
|
isComputerAgent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BDMNQBP4.js";
|
|
5
5
|
|
|
6
6
|
// src/setup/phone-check.ts
|
|
7
|
+
var NO_AGENT_CONNECTED_LINE = "Skipping the phone step: no agent was connected, so nothing could ask you anything on your phone yet.";
|
|
7
8
|
var planPhoneCheck = (context) => {
|
|
8
9
|
if (context.locked) return "locked";
|
|
10
|
+
if (context.noAgentConnected) return "no-agent-connected";
|
|
9
11
|
if (context.skipPhone) return "skip-phone";
|
|
10
12
|
if (context.verify === "none") return "verify-none";
|
|
11
13
|
if (context.paired) return "confirm-pairing";
|
|
@@ -29,6 +31,7 @@ var pairingComputerOf = (host, platform, detectedAgents) => ({
|
|
|
29
31
|
});
|
|
30
32
|
|
|
31
33
|
export {
|
|
34
|
+
NO_AGENT_CONNECTED_LINE,
|
|
32
35
|
planPhoneCheck,
|
|
33
36
|
instructionsChannelFor,
|
|
34
37
|
planPairCommand,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZPSLQQ4F.js";
|
|
18
18
|
import {
|
|
19
19
|
describeRevokeAttempt,
|
|
20
20
|
keyNoLongerAccepted,
|
|
@@ -29,20 +29,20 @@ import {
|
|
|
29
29
|
isCI,
|
|
30
30
|
terminalColumns,
|
|
31
31
|
useColor
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-GISC7J7K.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-WGZFBSXM.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-MAXV4AZR.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-NC24UL7K.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-BDMNQBP4.js";
|
|
46
46
|
|
|
47
47
|
// src/onboarding.ts
|
|
48
48
|
import qrcodeTerminal from "qrcode-terminal";
|