@pushary/agent-hooks 1.9.166 → 1.9.168
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 +12 -0
- package/dist/{api-D4SZ2E5J.js → api-2NP643KP.js} +15 -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 +36 -36
- 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-display-hook.js +10 -4
- 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 +135 -40
- 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-L2NGVERQ.js → chunk-2SMEEXDR.js} +1 -1
- package/dist/{chunk-C2PGBMTH.js → chunk-2TRYSF64.js} +1 -1
- package/dist/{chunk-NYCN3CCK.js → chunk-3M4ZOSR3.js} +1 -1
- package/dist/{chunk-OPN6FWMG.js → chunk-4HLSCBES.js} +1 -1
- package/dist/{chunk-LFS3PX7S.js → chunk-5N7MRVM3.js} +4 -4
- package/dist/{chunk-ILGAR7DW.js → chunk-5Q2UDUR6.js} +2 -2
- package/dist/{chunk-IEENAYGT.js → chunk-66VZIS6R.js} +1 -1
- package/dist/{chunk-JLGZGITL.js → chunk-6B2YKVX3.js} +2 -2
- package/dist/{chunk-X7IIWYAG.js → chunk-6IZVL42W.js} +1 -1
- package/dist/{chunk-ILBNQX44.js → chunk-6PDBRLIH.js} +5 -5
- package/dist/{chunk-U6NNLBWJ.js → chunk-752NWYBD.js} +5 -5
- package/dist/{chunk-7YUKURRZ.js → chunk-7AENNOGX.js} +1 -1
- package/dist/{chunk-2KZZZ4JK.js → chunk-7DEAVAAS.js} +3 -3
- package/dist/{chunk-LDEZYH7Y.js → chunk-7GMTA5NR.js} +10 -10
- package/dist/{chunk-NUHIGW7H.js → chunk-AIUFZQAA.js} +1 -1
- package/dist/{chunk-2J3IIFS3.js → chunk-AO4CKFQA.js} +2 -2
- package/dist/{chunk-7WHUMPWM.js → chunk-AVIQZSCU.js} +1 -1
- package/dist/{chunk-A4IK6JTC.js → chunk-BIEJHRZG.js} +6 -5
- package/dist/{chunk-R23ZNBJU.js → chunk-CCQZGWSR.js} +6 -6
- package/dist/{chunk-X6YYQZW7.js → chunk-CFZUESTS.js} +8 -4
- package/dist/{chunk-ANMVHKNK.js → chunk-CRTNHB6F.js} +3 -3
- package/dist/{chunk-7HXO72HS.js → chunk-DXUPOVJP.js} +1 -1
- package/dist/{chunk-KYBVLSMT.js → chunk-DYZ26IPH.js} +3 -3
- package/dist/{chunk-LJSRMA5C.js → chunk-EDCDODWA.js} +5 -5
- package/dist/{chunk-ZB5O3LKY.js → chunk-EGPOBJZG.js} +1 -1
- package/dist/{chunk-VDNKX5OF.js → chunk-F7N6LYGG.js} +5 -5
- package/dist/{chunk-I4BIOADS.js → chunk-FAORXDJ4.js} +4 -4
- package/dist/{chunk-SIZBYHXW.js → chunk-FUK2DC53.js} +4 -4
- package/dist/{chunk-635I27L4.js → chunk-GV3ZGKMK.js} +3 -3
- package/dist/{chunk-UM4RAZPH.js → chunk-GVIKF73A.js} +1 -1
- package/dist/{chunk-6OBGKICP.js → chunk-HFI6SU27.js} +3 -3
- package/dist/{chunk-OJRX6UVD.js → chunk-HV7KTGWF.js} +7 -7
- package/dist/{chunk-YQ67XWMM.js → chunk-IWWKO4MP.js} +4 -4
- package/dist/{chunk-MTB52RSH.js → chunk-K24RAOIO.js} +2 -2
- package/dist/{chunk-L54D5IIR.js → chunk-KEC67NZF.js} +5 -5
- package/dist/{chunk-67CGCPI4.js → chunk-KX4Q4CKZ.js} +2 -2
- package/dist/{chunk-ZEPOIQ4H.js → chunk-L77OIGRB.js} +22 -6
- package/dist/{chunk-YLR6QHCH.js → chunk-LDUK7D2I.js} +6 -6
- package/dist/{chunk-BFMILGSX.js → chunk-LEDGOYZV.js} +3 -3
- package/dist/{chunk-NEGPZ3DO.js → chunk-LGQUJFVZ.js} +2 -2
- package/dist/{chunk-WIVLMIJ6.js → chunk-LL4TMEDG.js} +4 -4
- package/dist/{chunk-WTUQEQ54.js → chunk-LOUSA3NO.js} +6 -6
- package/dist/{chunk-Y3QV3VYX.js → chunk-LVF5IBS6.js} +1 -1
- package/dist/{chunk-2FLJZICI.js → chunk-LZU7ZDY7.js} +2 -2
- package/dist/{chunk-EANTIGY7.js → chunk-MK7T7MNB.js} +1 -1
- package/dist/{chunk-IGBKHRCZ.js → chunk-MOQUKAVU.js} +1 -1
- package/dist/{chunk-RN4Z5BQJ.js → chunk-MRTJ54MC.js} +3 -3
- package/dist/{chunk-ZPFENH7C.js → chunk-NOHOCNY6.js} +4 -4
- package/dist/{chunk-I2FH4E6H.js → chunk-NRXFFCNG.js} +2 -2
- package/dist/{chunk-D3KD7K3N.js → chunk-OBUKF3WP.js} +4 -4
- package/dist/{chunk-JAE5ULC6.js → chunk-OI5OOFUY.js} +5 -5
- package/dist/{chunk-MYN6FNBS.js → chunk-ORTEANZH.js} +3 -3
- package/dist/{chunk-7PMCRTPW.js → chunk-OU7PO32D.js} +3 -3
- package/dist/{chunk-QV5HMBT4.js → chunk-PG5N3FL5.js} +12 -12
- package/dist/{chunk-DFGHHYS5.js → chunk-QCQADUHN.js} +4 -4
- package/dist/{chunk-YORHQJ5M.js → chunk-QMVUDNQR.js} +4 -4
- package/dist/{chunk-6ZGXNEBA.js → chunk-RY5EPLCY.js} +5 -5
- package/dist/{chunk-L4HJSUP7.js → chunk-SD5K34T2.js} +1 -1
- package/dist/{chunk-YENSTBQI.js → chunk-SSKNRWWS.js} +1 -1
- package/dist/{chunk-3CLLJJJ2.js → chunk-TGIWLQOV.js} +5 -5
- package/dist/{chunk-7TQXWAOZ.js → chunk-TTTMOX73.js} +1 -1
- package/dist/{chunk-3I5IFXHF.js → chunk-UCND4JHN.js} +101 -23
- package/dist/{chunk-6QLOTNO2.js → chunk-UCW24KPU.js} +2 -2
- package/dist/{chunk-TBDSTEO3.js → chunk-UN36O6U6.js} +3 -3
- package/dist/{chunk-RZRBXDGN.js → chunk-VWVYDYCV.js} +25 -9
- package/dist/{chunk-NN2RZ2UB.js → chunk-VY22KT5X.js} +3 -3
- package/dist/{chunk-TVXGBUOL.js → chunk-W4NCWOVL.js} +1 -1
- package/dist/{chunk-BOJWXETW.js → chunk-WDLBF3PM.js} +1 -1
- package/dist/{chunk-X4YQCI5T.js → chunk-WI2WYKSE.js} +1 -1
- package/dist/{chunk-JARCCL3M.js → chunk-WIOC6L6Y.js} +2 -2
- package/dist/{chunk-7JO3NNIQ.js → chunk-WK6TE6U7.js} +2 -2
- package/dist/{chunk-XRAUQWLP.js → chunk-WTUURSCO.js} +6 -6
- package/dist/{chunk-MN2FFBYE.js → chunk-X7RPRBZE.js} +2 -2
- package/dist/{chunk-5I34FSSW.js → chunk-X7RR2ZQH.js} +6 -6
- package/dist/{chunk-GNCFKXQS.js → chunk-XGNOM3XC.js} +2 -2
- package/dist/{chunk-NCZ7MLNW.js → chunk-XWLSZNXW.js} +9 -9
- package/dist/{chunk-NXTAXFQS.js → chunk-ZKMXHG5G.js} +8 -8
- package/dist/{chunk-ITGM5QW4.js → chunk-ZXRBGLTI.js} +6 -6
- package/dist/{chunk-3GWMSKFY.js → chunk-ZXZEETHT.js} +23 -20
- package/dist/{chunk-7X7ZTLIN.js → chunk-ZYH4KTY5.js} +15 -13
- package/dist/{codex-app-cards-switch-BOIE5IZL.js → codex-app-cards-switch-C6OKN3RA.js} +11 -11
- package/dist/{codex-card-routing-B2ZI4WRI.js → codex-card-routing-QGOX4RNI.js} +2 -2
- package/dist/{codex-desktop-launch-LBL2LPS7.js → codex-desktop-launch-5ISZYYGG.js} +1 -1
- package/dist/{codex-session-launch-7WVCWASC.js → codex-session-launch-JWT76ONU.js} +20 -20
- package/dist/{config-S53I5YNR.js → config-PWEPWMNF.js} +3 -3
- package/dist/{global-upgrade-ND726NHJ.js → global-upgrade-ZAPGSH66.js} +9 -9
- package/dist/{identity-3G66JTAR.js → identity-O57FDCPL.js} +4 -4
- package/dist/{live-capabilities-76C2DKTY.js → live-capabilities-FVRWXQAC.js} +4 -4
- package/dist/{paths-O3CZR2BV.js → paths-LCARWI3S.js} +3 -3
- package/dist/{reapply-TEATBGFG.js → reapply-T5JXYBH2.js} +31 -31
- package/dist/src/index.js +35 -35
- package/dist/{upgrade-lock-PDCUHFRW.js → upgrade-lock-3P3VK6KQ.js} +4 -4
- package/dist/{usage-DFCL7TQU.js → usage-BKT5P2P3.js} +3 -3
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CODEX_HOOK_STATUS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NRXFFCNG.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-FAORXDJ4.js";
|
|
10
10
|
import {
|
|
11
11
|
retryAgentCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HFI6SU27.js";
|
|
13
13
|
import {
|
|
14
14
|
NPX_LATEST_COMMAND
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WDLBF3PM.js";
|
|
16
16
|
|
|
17
17
|
// src/setup/codex-trust.ts
|
|
18
18
|
var CODEX_TRUST_TELEMETRY = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X7RPRBZE.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NOHOCNY6.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-TODDEIYG.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callDecisionStore,
|
|
3
3
|
identifyingToolInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PG5N3FL5.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalJson
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-X7RPRBZE.js";
|
|
8
8
|
|
|
9
9
|
// src/phone-approval.ts
|
|
10
10
|
import { createHash } from "crypto";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAsCredential
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SSKNRWWS.js";
|
|
4
4
|
import {
|
|
5
5
|
keyCheckFromResponse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GV3ZGKMK.js";
|
|
7
7
|
import {
|
|
8
8
|
installNetworkDefaults
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VY22KT5X.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LVF5IBS6.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isToolErrorResult,
|
|
16
16
|
toolFailureCodeOfResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-L77OIGRB.js";
|
|
18
18
|
|
|
19
19
|
// src/retry.ts
|
|
20
20
|
var isRetryable = (err) => {
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
settingSnapshot,
|
|
19
19
|
writeHermesSetting,
|
|
20
20
|
writeSetupReceipt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FAORXDJ4.js";
|
|
22
22
|
import {
|
|
23
23
|
OPENCLAW_MIN_VERSION,
|
|
24
24
|
OPENCLAW_PLUGIN_ID,
|
|
25
25
|
OPENCLAW_PLUGIN_PACKAGE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CRTNHB6F.js";
|
|
27
27
|
import {
|
|
28
28
|
retryAgentCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HFI6SU27.js";
|
|
30
30
|
import {
|
|
31
31
|
configFilePath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-LVF5IBS6.js";
|
|
33
33
|
import {
|
|
34
34
|
readJsonSafe,
|
|
35
35
|
writeJsonAtomic
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
readSetupOutcomeProperties,
|
|
39
39
|
redactSecretsFromContent
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-L77OIGRB.js";
|
|
41
41
|
|
|
42
42
|
// src/hermes/shell-gate.ts
|
|
43
43
|
var readHermesShellGate = async (launcher) => {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-352FIVVH.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchAsCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SSKNRWWS.js";
|
|
8
8
|
import {
|
|
9
9
|
getBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LVF5IBS6.js";
|
|
11
11
|
import {
|
|
12
12
|
writeJsonAtomicDurable
|
|
13
13
|
} from "./chunk-TODDEIYG.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
compressTranscriptRecord,
|
|
16
16
|
redactSecretsFromContent,
|
|
17
17
|
transcriptRecordPlaintext
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-L77OIGRB.js";
|
|
19
19
|
|
|
20
20
|
// src/transcript-recipient-pin.ts
|
|
21
21
|
import { createHash } from "crypto";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-WHB622LP.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureDaemonRunning
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LDUK7D2I.js";
|
|
7
7
|
import {
|
|
8
8
|
hookOwnerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OBUKF3WP.js";
|
|
10
10
|
import {
|
|
11
11
|
hookMeaning
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CFZUESTS.js";
|
|
13
13
|
import {
|
|
14
14
|
buildTranscriptRecords,
|
|
15
15
|
changedRecipientsMessage,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
uploadTranscriptRecords,
|
|
25
25
|
verifyAnchoredRecipients,
|
|
26
26
|
wrapSessionKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-7DEAVAAS.js";
|
|
28
28
|
import {
|
|
29
29
|
external_exports,
|
|
30
30
|
ownedOnlyByThisUser,
|
|
@@ -33,22 +33,22 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
transcriptEnvironmentPreference,
|
|
35
35
|
transcriptsEnabled
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3M4ZOSR3.js";
|
|
37
37
|
import {
|
|
38
38
|
fetchAsCredential
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-SSKNRWWS.js";
|
|
40
40
|
import {
|
|
41
41
|
readTranscriptPreference
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-DYZ26IPH.js";
|
|
43
43
|
import {
|
|
44
44
|
claudeConfigDir,
|
|
45
45
|
codexHome,
|
|
46
46
|
pusharyDir
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-X7RPRBZE.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiKey,
|
|
50
50
|
getBaseUrl
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-LVF5IBS6.js";
|
|
52
52
|
import {
|
|
53
53
|
writeJsonAtomic,
|
|
54
54
|
writeJsonAtomicDurable
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
isHookSource,
|
|
61
61
|
isRecord,
|
|
62
62
|
redactSecretsFromContent
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-L77OIGRB.js";
|
|
64
64
|
|
|
65
65
|
// src/transcript-registration.ts
|
|
66
66
|
import { createHash as createHash4 } from "crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GV3ZGKMK.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-L77OIGRB.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UNNAMED_ACTION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CFZUESTS.js";
|
|
4
4
|
import {
|
|
5
5
|
askUser,
|
|
6
6
|
isAwayPaused,
|
|
7
7
|
isLocalQuestionHandoff,
|
|
8
8
|
unavailableQuestionUnlessRefused,
|
|
9
9
|
waitForQuestion
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VWVYDYCV.js";
|
|
11
11
|
import {
|
|
12
12
|
getMachineId
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MOQUKAVU.js";
|
|
14
14
|
import {
|
|
15
15
|
hookWaitClamped,
|
|
16
16
|
hookWaitDeadline,
|
|
17
17
|
scopeBreachReasonOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-L77OIGRB.js";
|
|
19
19
|
|
|
20
20
|
// src/pushed-question.ts
|
|
21
21
|
var scopeQuestionOf = (verdict) => {
|
|
@@ -98,6 +98,7 @@ var FIELDS_THE_GATE_DECIDES_FROM = ["hook_event_name", "tool_name", "session_id"
|
|
|
98
98
|
var withoutUnreadableLabels = (record, textFields) => Object.fromEntries(Object.entries(record).filter(([field, value]) => FIELDS_THE_GATE_DECIDES_FROM.includes(field) || !textFields.includes(field) || typeof value === "string"));
|
|
99
99
|
var isTextWhereSent = (record, fields) => fields.every((field) => record[field] === void 0 || typeof record[field] === "string");
|
|
100
100
|
var isRecordWhereSent = (value) => value === void 0 || isInputRecord(value);
|
|
101
|
+
var isBooleanWhereSent = (value) => value === void 0 || typeof value === "boolean";
|
|
101
102
|
var withReadableMcpContext = ({ mcp_context: context, ...record }) => {
|
|
102
103
|
if (!isInputRecord(context)) return record;
|
|
103
104
|
const present = withoutNullFields(context);
|
|
@@ -105,7 +106,7 @@ var withReadableMcpContext = ({ mcp_context: context, ...record }) => {
|
|
|
105
106
|
};
|
|
106
107
|
var isCodexHookInput = (value) => isTextWhereSent(value, CODEX_TEXT_FIELDS) && isRecordWhereSent(value.tool_input);
|
|
107
108
|
var isGeminiHookInput = (value) => isTextWhereSent(value, GEMINI_TEXT_FIELDS) && isRecordWhereSent(value.tool_input);
|
|
108
|
-
var isOpenCodeHookInput = (value) => isTextWhereSent(value, OPENCODE_TEXT_FIELDS) && isRecordWhereSent(value.tool_input);
|
|
109
|
+
var isOpenCodeHookInput = (value) => isTextWhereSent(value, OPENCODE_TEXT_FIELDS) && isRecordWhereSent(value.tool_input) && isBooleanWhereSent(value.withdraw_on_stdin_end);
|
|
109
110
|
var hookInputParser = (textFields, isHookInput, withReadableParts = (record) => record) => (value) => {
|
|
110
111
|
if (!isInputRecord(value)) return null;
|
|
111
112
|
const readable = withReadableParts(withoutUnreadableLabels(withoutNullFields(value), textFields));
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
reachVerdict,
|
|
15
15
|
reachesYou,
|
|
16
16
|
verifyDelivery
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZXRBGLTI.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-DXUPOVJP.js";
|
|
33
33
|
import {
|
|
34
34
|
checkApiKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-GV3ZGKMK.js";
|
|
36
36
|
import {
|
|
37
37
|
reportedInstallSource
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-K24RAOIO.js";
|
|
39
39
|
import {
|
|
40
40
|
NPX_LATEST_COMMAND
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-WDLBF3PM.js";
|
|
42
42
|
import {
|
|
43
43
|
NO_PAIRING_COMPUTER,
|
|
44
44
|
PAIR_TTL_SECONDS
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-L77OIGRB.js";
|
|
46
46
|
|
|
47
47
|
// src/onboarding.ts
|
|
48
48
|
import qrcodeTerminal from "qrcode-terminal";
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
conversationText,
|
|
17
17
|
hookCompatibleProfileBySource,
|
|
18
18
|
isClaudeWakePrompt,
|
|
19
|
+
isRecord,
|
|
19
20
|
isTokenCount,
|
|
20
21
|
namesAFilePath,
|
|
21
22
|
parseCommitId,
|
|
@@ -25,7 +26,7 @@ import {
|
|
|
25
26
|
reportableSessionId,
|
|
26
27
|
toToolLookup,
|
|
27
28
|
truncateLine
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-L77OIGRB.js";
|
|
29
30
|
|
|
30
31
|
// ../hook-mapping/src/commit-receipt.ts
|
|
31
32
|
var COMMIT_OUTPUT_MAX_LENGTH = 65536;
|
|
@@ -77,11 +78,14 @@ var hookPrefixes = {
|
|
|
77
78
|
[BLANK_TASK_INPUT_TOOL]: (input) => `send blank input, such as Enter, to background task ${firstString(input.task_id) ?? "(unnamed)"}`
|
|
78
79
|
};
|
|
79
80
|
var describeTaskCall = (input) => firstString(input.description) ?? firstString(input.subagent_type) ?? "(unnamed)";
|
|
81
|
+
var PLAN_UPDATED = "updated the plan";
|
|
82
|
+
var namesItsTask = (todo) => isRecord(todo) && [todo.content, todo.activeForm].some((label) => typeof label === "string" && label.trim().length > 0);
|
|
83
|
+
var sendsOnlyChangedTodos = (input) => input.merge === true || input.merge !== false && Array.isArray(input.todos) && input.todos.some((todo) => !namesItsTask(todo));
|
|
80
84
|
var describeTodoProgress = (todos) => {
|
|
81
|
-
if (!Array.isArray(todos)) return
|
|
85
|
+
if (!Array.isArray(todos)) return PLAN_UPDATED;
|
|
82
86
|
const items = todos.filter((t) => !!t && typeof t === "object");
|
|
83
87
|
const total = items.length;
|
|
84
|
-
if (total === 0) return
|
|
88
|
+
if (total === 0) return PLAN_UPDATED;
|
|
85
89
|
const done = items.filter((t) => t.status === "completed").length;
|
|
86
90
|
const current = items.find((t) => t.status === "in_progress");
|
|
87
91
|
const label = current ? [current.activeForm, current.content].find((v) => typeof v === "string" && v.trim().length > 0) : void 0;
|
|
@@ -102,7 +106,7 @@ var eventPrefixes = {
|
|
|
102
106
|
Edit: (input) => `edited: ${editTarget(input) ?? "unknown"}`,
|
|
103
107
|
MultiEdit: (input) => `edited: ${editTarget(input) ?? "unknown"}`,
|
|
104
108
|
Read: (input) => `read: ${input.file_path ?? "unknown"}`,
|
|
105
|
-
TodoWrite: (input) => describeTodoProgress(input.todos),
|
|
109
|
+
TodoWrite: (input) => sendsOnlyChangedTodos(input) ? PLAN_UPDATED : describeTodoProgress(input.todos),
|
|
106
110
|
Task: (input) => `ran subagent: ${describeTaskCall(input)}`,
|
|
107
111
|
WebSearch: (input) => `searched: ${firstString(input.query) ?? "the web"}`
|
|
108
112
|
};
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
OPENCLAW_ENVIRONMENT_KEYS,
|
|
6
6
|
openClawEnvironmentOf,
|
|
7
7
|
openClawPathsFrom
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-X7RPRBZE.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NOHOCNY6.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-L77OIGRB.js";
|
|
15
15
|
|
|
16
16
|
// src/openclaw/wiring-state.ts
|
|
17
17
|
var OPENCLAW_PLUGIN_ID = "pushary";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveInstallSourceFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K24RAOIO.js";
|
|
4
4
|
import {
|
|
5
5
|
configFilePath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LVF5IBS6.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-L77OIGRB.js";
|
|
18
18
|
|
|
19
19
|
// src/shell-alias.ts
|
|
20
20
|
import { homedir } from "os";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QMVUDNQR.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AO4CKFQA.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GV3ZGKMK.js";
|
|
15
15
|
import {
|
|
16
16
|
findExportedKeyLines,
|
|
17
17
|
isAdoptedMacAppKey,
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
readConfigFileKey,
|
|
22
22
|
readKeySource,
|
|
23
23
|
readMacAppKeyPrefix
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DYZ26IPH.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-L77OIGRB.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HFI6SU27.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OU7PO32D.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DYZ26IPH.js";
|
|
14
14
|
import {
|
|
15
15
|
CLINE_SERVER_NAME_TAKEN,
|
|
16
16
|
CLINE_SETTINGS_REFUSALS,
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
withClinePusharyServer,
|
|
33
33
|
withRefreshedClineKey,
|
|
34
34
|
withoutClinePusharyServer
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-X7RPRBZE.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveGlobalBinary
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-NOHOCNY6.js";
|
|
39
39
|
import {
|
|
40
40
|
readJsonSafe,
|
|
41
41
|
writeFileAtomic,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
uninstallOpenClawPlugin,
|
|
14
14
|
unsetOpenClawEntry,
|
|
15
15
|
writeOpenClawEntry
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CRTNHB6F.js";
|
|
17
17
|
import {
|
|
18
18
|
needsShell
|
|
19
19
|
} from "./chunk-Y6ILCLKE.js";
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
openClawDirectoriesToLookIn,
|
|
26
26
|
openClawPluginFolder,
|
|
27
27
|
openClawSetupReceiptDirectory
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-X7RPRBZE.js";
|
|
29
29
|
import {
|
|
30
30
|
resolvePathBinary
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NOHOCNY6.js";
|
|
32
32
|
import {
|
|
33
33
|
readJsonSafe,
|
|
34
34
|
writeJsonAtomic
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./chunk-UQTQ6HPO.js";
|
|
40
40
|
import {
|
|
41
41
|
isRecord
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-L77OIGRB.js";
|
|
43
43
|
|
|
44
44
|
// src/hermes/plugin-payload.ts
|
|
45
45
|
import { createHash } from "crypto";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compatibleConfigFile,
|
|
3
3
|
hasCompatibleHooks
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WTUURSCO.js";
|
|
5
5
|
import {
|
|
6
6
|
pusharyHookExecutable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OBUKF3WP.js";
|
|
8
8
|
import {
|
|
9
9
|
isProtectedByScope,
|
|
10
10
|
registerHookEntry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-X7RPRBZE.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-L77OIGRB.js";
|
|
15
15
|
|
|
16
16
|
// src/cursor-config.ts
|
|
17
17
|
var hookCommandOf = (entry) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VY22KT5X.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LVF5IBS6.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-YU2EUD7O.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-L77OIGRB.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;
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
NpmMissingError,
|
|
4
4
|
NpmPermissionError,
|
|
5
5
|
NpmReleaseAgeError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NOHOCNY6.js";
|
|
7
7
|
import {
|
|
8
8
|
writeFileAtomic
|
|
9
9
|
} from "./chunk-TODDEIYG.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WDLBF3PM.js";
|
|
13
13
|
import {
|
|
14
14
|
readSetupAgentFailures
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-L77OIGRB.js";
|
|
16
16
|
|
|
17
17
|
// src/setup/config-write.ts
|
|
18
18
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WK6TE6U7.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AO4CKFQA.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DXUPOVJP.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GV3ZGKMK.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DYZ26IPH.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-LVF5IBS6.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-L77OIGRB.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|