pushary 1.9.257 → 1.9.260
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 +15 -0
- package/dist/{api-KZ4IO7ON.js → api-IT47BCBQ.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 +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 +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 +126 -2
- package/dist/bin/pushary-doctor.js +48 -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 +23 -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 +85 -64
- 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-PCH4QQTT.js → chunk-277GOA5S.js} +5 -5
- package/dist/{chunk-VQFOA64S.js → chunk-2D5MYSTO.js} +1 -1
- package/dist/{chunk-EPPG7UYT.js → chunk-2G3DG3NV.js} +4 -4
- package/dist/{chunk-DOCQOW3H.js → chunk-2MRIJ7TX.js} +1 -1
- package/dist/{chunk-NZZI77JY.js → chunk-2WLNEOT7.js} +1 -1
- package/dist/{chunk-KVJC5ZWY.js → chunk-3N2FP6BB.js} +1 -1
- package/dist/{chunk-TZMCP46W.js → chunk-3VYL4GCX.js} +4 -4
- package/dist/{chunk-PDYGEI4J.js → chunk-3W5AT2Y4.js} +6 -6
- package/dist/{chunk-PXBMEKOX.js → chunk-4EGBDV3T.js} +2 -2
- package/dist/{chunk-W5IXKH5A.js → chunk-5J5JO5UQ.js} +4 -4
- package/dist/{chunk-VT2INEAF.js → chunk-63R6OZXQ.js} +3 -3
- package/dist/{chunk-R2BSMSHF.js → chunk-64KRDJ46.js} +16 -16
- package/dist/{chunk-LGXPSL5B.js → chunk-6CI7KSDE.js} +2 -2
- package/dist/{chunk-QD5ZJA5S.js → chunk-6EE4F4PG.js} +1 -1
- package/dist/{chunk-O7TXZAXL.js → chunk-6FEJR64W.js} +5 -5
- package/dist/{chunk-FVELY3OX.js → chunk-6JTLZZ32.js} +3 -3
- package/dist/{chunk-EWFY4X2R.js → chunk-6WBHZHZS.js} +6 -6
- package/dist/{chunk-Z3O63BK6.js → chunk-7B27SJIZ.js} +6 -6
- package/dist/{chunk-NBGWQ2ZM.js → chunk-7BJQM5GI.js} +1 -1
- package/dist/{chunk-I6NA76CJ.js → chunk-ATGFCOLG.js} +1 -1
- package/dist/{chunk-GU4JGTHQ.js → chunk-AWRQHXQK.js} +10 -10
- package/dist/{chunk-CPMJBRKT.js → chunk-B3MTDMWH.js} +2 -2
- package/dist/{chunk-K3I636LG.js → chunk-BJ3PEW5V.js} +5 -5
- package/dist/{chunk-HIGRCM4Q.js → chunk-BX2A6VVT.js} +1 -1
- package/dist/{chunk-WS6MIZLO.js → chunk-C3EE5L6V.js} +11 -22
- package/dist/{chunk-4OVUK56V.js → chunk-CTG3F2D5.js} +6 -6
- package/dist/{chunk-4XF3KIK7.js → chunk-CXSLZIBE.js} +3 -3
- package/dist/{chunk-NVRNS263.js → chunk-DC32YKE2.js} +263 -17
- package/dist/{chunk-LLFO2T37.js → chunk-DDRT2WJA.js} +3 -3
- package/dist/{chunk-TXOQQ3MV.js → chunk-DLCLDR6K.js} +4 -4
- package/dist/{chunk-5JCNEQXV.js → chunk-DLJ4ZGPG.js} +6 -6
- package/dist/{chunk-JBCQB2WR.js → chunk-DP3AS752.js} +4 -4
- package/dist/{chunk-PAI2T23S.js → chunk-DRCBTY5T.js} +1 -1
- package/dist/{chunk-WOVJVQ7C.js → chunk-DTSWVMTP.js} +6 -6
- package/dist/{chunk-X6RQS3B4.js → chunk-E7XXDMHV.js} +4 -4
- package/dist/{chunk-QAQBKLO3.js → chunk-ELXKZ6XS.js} +3 -3
- package/dist/{chunk-MWTQJEIX.js → chunk-EZI67YOT.js} +5 -5
- package/dist/{chunk-7IP5CIP4.js → chunk-FUNDDXWK.js} +2 -2
- package/dist/{chunk-SM4LDZXZ.js → chunk-GFDMYQGZ.js} +3 -3
- package/dist/{chunk-PMQVI4OL.js → chunk-GIHIYB3Q.js} +5 -5
- package/dist/{chunk-R5NFIWEU.js → chunk-GNY6Z2U2.js} +1 -1
- package/dist/{chunk-SZYC2YXC.js → chunk-HD3ECNDC.js} +2 -2
- package/dist/{chunk-C5H5V5LW.js → chunk-HITBECZ4.js} +1 -1
- package/dist/{chunk-LQGWJN7G.js → chunk-HQ6RWSWN.js} +1 -1
- package/dist/{chunk-CV4CYHU4.js → chunk-HUK6GLBG.js} +12 -12
- package/dist/{chunk-TJXUS7V2.js → chunk-HUMF6AIT.js} +1 -1
- package/dist/{chunk-A276HQFV.js → chunk-I7TBQ7S5.js} +1 -1
- package/dist/{chunk-XOREUXPV.js → chunk-IJUHRBKA.js} +1 -1
- package/dist/{chunk-M4RUM6EH.js → chunk-ITRSDEVH.js} +5 -5
- package/dist/{chunk-YVQWGCWS.js → chunk-JBXHNML3.js} +1 -1
- package/dist/{chunk-M2GQA24G.js → chunk-JHBGO2PF.js} +27 -2
- package/dist/{chunk-2P22GQEF.js → chunk-JHPL4VBE.js} +2 -2
- package/dist/{chunk-6XLFC43B.js → chunk-JWBRJTPT.js} +5 -5
- package/dist/{chunk-A3ECMJW7.js → chunk-KQVVDMUD.js} +4 -4
- package/dist/{chunk-OLIKCPM7.js → chunk-KQXWREMT.js} +16 -20
- package/dist/{chunk-XF7FUP3A.js → chunk-LDXGL2QH.js} +1 -1
- package/dist/{chunk-WBV7IRV5.js → chunk-LG47IOFN.js} +8 -8
- package/dist/{chunk-D2NH6N66.js → chunk-LO6EAFRS.js} +5 -5
- package/dist/{chunk-Q2YSVTMH.js → chunk-MR3JQ3LS.js} +1 -1
- package/dist/{chunk-3MFQZIFR.js → chunk-OOWMON6B.js} +1 -1
- package/dist/{chunk-OVUXENQ3.js → chunk-PFGQS4QA.js} +2 -2
- package/dist/{chunk-BZS3DN6S.js → chunk-PGP4AQ6G.js} +4 -4
- package/dist/{chunk-RCBJ4GCY.js → chunk-QHF3SYTV.js} +5 -5
- package/dist/{chunk-PPNB6IED.js → chunk-QXI7SYVB.js} +4 -4
- package/dist/{chunk-BYMM5NWM.js → chunk-QYQMIAYH.js} +2 -2
- package/dist/{chunk-NMVHN3HC.js → chunk-R5AX37KI.js} +1 -1
- package/dist/{chunk-QYUKN27D.js → chunk-RLTFMU3B.js} +4 -4
- package/dist/{chunk-AWKKAGLD.js → chunk-S3R4CZT3.js} +3 -3
- package/dist/{chunk-IZ3WAW32.js → chunk-S5GQCO2I.js} +3 -3
- package/dist/{chunk-MQ7D3BUL.js → chunk-SBY4JFPZ.js} +2 -2
- package/dist/{chunk-2DYBA2II.js → chunk-SFXNXZA5.js} +2 -2
- package/dist/{chunk-ZKXZPWXQ.js → chunk-U7VDCUWD.js} +10 -10
- package/dist/{chunk-RLAZPTYE.js → chunk-V3YAXCQU.js} +7 -7
- package/dist/{chunk-FCORDYNZ.js → chunk-W6FZOPF4.js} +7 -7
- package/dist/{chunk-2GHNWRWN.js → chunk-WAT7A5DW.js} +5 -5
- package/dist/{chunk-QWF6SPFG.js → chunk-X27JRAYF.js} +3 -3
- package/dist/{chunk-S6RAM5NS.js → chunk-XGF3JB3R.js} +2 -2
- package/dist/{chunk-ADRV4PAY.js → chunk-XYSD5VPQ.js} +1 -1
- package/dist/{chunk-TBUVYP3M.js → chunk-Y2OJGMJX.js} +3 -3
- package/dist/{chunk-7ALRPLO5.js → chunk-YAUW3PBG.js} +1 -1
- package/dist/{chunk-UGARTFYN.js → chunk-Z43TNC27.js} +1 -1
- package/dist/{chunk-LRRQRF6V.js → chunk-ZO65DKXG.js} +2 -2
- package/dist/{codex-app-cards-switch-TX4WZRM5.js → codex-app-cards-switch-WVE7EY3Q.js} +12 -12
- package/dist/{codex-card-routing-FKQ4CBFV.js → codex-card-routing-TW5PGTDQ.js} +2 -2
- package/dist/{codex-desktop-launch-4SHZGPRP.js → codex-desktop-launch-HCWAIOUD.js} +3 -3
- package/dist/{codex-session-launch-G2YTBANF.js → codex-session-launch-QE7ET6HE.js} +20 -20
- package/dist/{config-YM55MYXX.js → config-G3A5OUOA.js} +3 -3
- package/dist/{global-upgrade-AKKW3YEJ.js → global-upgrade-RMVGM26D.js} +9 -9
- package/dist/{identity-4NX35LHS.js → identity-5YOIBGSM.js} +4 -4
- package/dist/{live-capabilities-5ATYDLAL.js → live-capabilities-DXRASGGQ.js} +4 -4
- package/dist/{paths-J4VN4755.js → paths-JZZB2B5C.js} +3 -3
- package/dist/reapply-55YYSVPF.js +76 -0
- package/dist/src/index.js +34 -34
- package/dist/{upgrade-lock-4PXBDTIV.js → upgrade-lock-RPTYWUWT.js} +4 -4
- package/dist/{usage-ZLVHS47G.js → usage-LFHZHCB5.js} +3 -3
- package/package.json +1 -1
- package/dist/reapply-F66DXD36.js +0 -76
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5J5JO5UQ.js";
|
|
13
13
|
import {
|
|
14
14
|
CODEX_APP_LAUNCH_AT_LOGIN_VERB,
|
|
15
15
|
CODEX_APP_LAUNCH_VARIABLE,
|
|
@@ -20,20 +20,20 @@ import {
|
|
|
20
20
|
} from "./chunk-QCGNGEGE.js";
|
|
21
21
|
import {
|
|
22
22
|
parseConfigDocument
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-Z43TNC27.js";
|
|
24
24
|
import {
|
|
25
25
|
xml
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3W5AT2Y4.js";
|
|
27
27
|
import {
|
|
28
28
|
codexHomeFrom
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-4EGBDV3T.js";
|
|
30
30
|
import {
|
|
31
31
|
readRegularTextFile,
|
|
32
32
|
writeFileAtomic
|
|
33
33
|
} from "./chunk-PM2NRK6Y.js";
|
|
34
34
|
import {
|
|
35
35
|
isRecord
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-DC32YKE2.js";
|
|
37
37
|
|
|
38
38
|
// src/codex-app-cards-switch.ts
|
|
39
39
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CXSLZIBE.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DC32YKE2.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-P6DUWKAO.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchAsCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3N2FP6BB.js";
|
|
8
8
|
import {
|
|
9
9
|
getBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XGF3JB3R.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-DC32YKE2.js";
|
|
19
19
|
|
|
20
20
|
// src/transcript-recipient-pin.ts
|
|
21
21
|
import { createHash } from "crypto";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DDRT2WJA.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AWRQHXQK.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DLJ4ZGPG.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6WBHZHZS.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DC32YKE2.js";
|
|
20
20
|
|
|
21
21
|
// src/tool-hook-input.ts
|
|
22
22
|
var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode", "cursor_version"];
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ensureCodexTrustsPusharyHooks,
|
|
6
6
|
hermesHistoryNeedsTheCliHelper,
|
|
7
7
|
recordInstalledHermesHistoryHelper
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Y2OJGMJX.js";
|
|
9
9
|
import {
|
|
10
10
|
hermesReceiptPaths,
|
|
11
11
|
hermesSetupPredatesThePluginFolder,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
refreshHermesPluginFiles,
|
|
15
15
|
refreshOpenClawPlugin,
|
|
16
16
|
shippedHermesPlugin
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RLTFMU3B.js";
|
|
18
18
|
import {
|
|
19
19
|
fxIgnoresInstructionsFile,
|
|
20
20
|
fxInstructionsBody,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
macAppFxBridge,
|
|
24
24
|
refreshClineKey,
|
|
25
25
|
switchFxHttpEntryToBridge
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WAT7A5DW.js";
|
|
27
27
|
import {
|
|
28
28
|
OPENCODE_HOOK_BINARY,
|
|
29
29
|
agentHookOwner,
|
|
@@ -36,16 +36,16 @@ import {
|
|
|
36
36
|
openCodePluginDir,
|
|
37
37
|
openCodeWired,
|
|
38
38
|
withOpenCodeAskRules
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-W6FZOPF4.js";
|
|
40
40
|
import {
|
|
41
41
|
detectClaudeVersion
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-HITBECZ4.js";
|
|
43
43
|
import {
|
|
44
44
|
addCompatibleHooks,
|
|
45
45
|
compatibleConfigFile,
|
|
46
46
|
compatibleInstructionsFile,
|
|
47
47
|
hasCompatibleHooks
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-DLJ4ZGPG.js";
|
|
49
49
|
import {
|
|
50
50
|
GEMINI_HOOK_BINARY,
|
|
51
51
|
addGeminiHooks,
|
|
@@ -57,13 +57,13 @@ import {
|
|
|
57
57
|
geminiWired,
|
|
58
58
|
hasGeminiHooks,
|
|
59
59
|
planHooks
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-2G3DG3NV.js";
|
|
61
61
|
import {
|
|
62
62
|
transcriptsEnabled
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-6EE4F4PG.js";
|
|
64
64
|
import {
|
|
65
65
|
KEY_FILE_MODE
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-S5GQCO2I.js";
|
|
67
67
|
import {
|
|
68
68
|
CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
|
|
69
69
|
CLAUDE_HOOK_BINARY,
|
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
renderAgentInstructions,
|
|
111
111
|
supportedClaudeEvents,
|
|
112
112
|
vscodePluginMcp
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-4EGBDV3T.js";
|
|
114
114
|
import {
|
|
115
115
|
formatVersion
|
|
116
116
|
} from "./chunk-6ICPEJY5.js";
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
hookCommandsUseBareNames,
|
|
119
119
|
resolveGlobalBinDir,
|
|
120
120
|
resolveGlobalBinary
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-E7XXDMHV.js";
|
|
122
122
|
import {
|
|
123
123
|
readJsonSafe,
|
|
124
124
|
writeFileAtomic,
|
|
@@ -128,7 +128,7 @@ import {
|
|
|
128
128
|
HOOK_COMPATIBLE_PROFILES,
|
|
129
129
|
isCompatibleAgentType,
|
|
130
130
|
isRecord
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-DC32YKE2.js";
|
|
132
132
|
|
|
133
133
|
// src/reapply.ts
|
|
134
134
|
import { dirname, join } from "path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
questionWindowOf
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C3EE5L6V.js";
|
|
4
4
|
import {
|
|
5
5
|
UNNAMED_ACTION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JHBGO2PF.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-6WBHZHZS.js";
|
|
15
15
|
import {
|
|
16
16
|
getMachineId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2WLNEOT7.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-DC32YKE2.js";
|
|
28
28
|
|
|
29
29
|
// src/pushed-question.ts
|
|
30
30
|
var scopeQuestionOf = (verdict) => {
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
AGENTS,
|
|
4
4
|
AGENT_LABELS_BY_TYPE,
|
|
5
5
|
BLANK_TASK_INPUT_TOOL,
|
|
6
|
+
BYPASS_PERMISSION_MODE,
|
|
6
7
|
CODEX_SHELL_COMMAND_FLAGS,
|
|
7
8
|
DECISION_LINE_MAX,
|
|
8
9
|
FILE_TARGET_TOOLS,
|
|
@@ -11,6 +12,7 @@ import {
|
|
|
11
12
|
RECEIPT_TARGET_MAX_LENGTH,
|
|
12
13
|
TASK_OUTPUT_TOOL,
|
|
13
14
|
TASK_STOP_TOOL,
|
|
15
|
+
canonicalJsonText,
|
|
14
16
|
canonicalToolName,
|
|
15
17
|
classifyDecisionRisk,
|
|
16
18
|
conversationText,
|
|
@@ -27,7 +29,7 @@ import {
|
|
|
27
29
|
reportableSessionId,
|
|
28
30
|
toToolLookup,
|
|
29
31
|
truncateLine
|
|
30
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-DC32YKE2.js";
|
|
31
33
|
|
|
32
34
|
// ../hook-mapping/src/commit-receipt.ts
|
|
33
35
|
var COMMIT_OUTPUT_MAX_LENGTH = 65536;
|
|
@@ -881,6 +883,26 @@ var transcriptUsageRequest = (hook) => {
|
|
|
881
883
|
return transcriptPath && sessionId ? { transcriptPath, sessionId } : null;
|
|
882
884
|
};
|
|
883
885
|
|
|
886
|
+
// ../hook-mapping/src/prompted-call.ts
|
|
887
|
+
var CLAUDE_SOURCE = "claude";
|
|
888
|
+
var PRESENTATION_ONLY_INPUT_KEYS = ["description"];
|
|
889
|
+
var identifyingToolInput = (toolInput) => {
|
|
890
|
+
if (!toolInput) return {};
|
|
891
|
+
const identifying = {};
|
|
892
|
+
for (const [key, value] of Object.entries(toolInput)) {
|
|
893
|
+
if (PRESENTATION_ONLY_INPUT_KEYS.includes(key)) continue;
|
|
894
|
+
identifying[key] = value;
|
|
895
|
+
}
|
|
896
|
+
return identifying;
|
|
897
|
+
};
|
|
898
|
+
var claudePromptMayFollowPreToolUseAllow = (source, permissionMode) => source === CLAUDE_SOURCE && permissionMode === BYPASS_PERMISSION_MODE;
|
|
899
|
+
var promptOfClaudeCall = (call) => typeof call.prompt_id === "string" ? call.prompt_id : "";
|
|
900
|
+
var promptedCallMaterial = (source, call) => {
|
|
901
|
+
const identity = [source, call.session_id, call.cwd ?? "", call.tool_name, identifyingToolInput(call.tool_input)];
|
|
902
|
+
return source === CLAUDE_SOURCE ? [...identity, promptOfClaudeCall(call)] : identity;
|
|
903
|
+
};
|
|
904
|
+
var promptedCallIdentityText = (source, call) => call.session_id && call.tool_name ? canonicalJsonText(promptedCallMaterial(source, call)) : null;
|
|
905
|
+
|
|
884
906
|
export {
|
|
885
907
|
HOOK_FALLBACK_MAX,
|
|
886
908
|
UNNAMED_ACTION,
|
|
@@ -926,5 +948,8 @@ export {
|
|
|
926
948
|
transcriptTokensIn,
|
|
927
949
|
readTranscriptMessageUsage,
|
|
928
950
|
rememberTranscriptMessage,
|
|
929
|
-
transcriptUsageRequest
|
|
951
|
+
transcriptUsageRequest,
|
|
952
|
+
identifyingToolInput,
|
|
953
|
+
claudePromptMayFollowPreToolUseAllow,
|
|
954
|
+
promptedCallIdentityText
|
|
930
955
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4EGBDV3T.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-DC32YKE2.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAsCredential
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3N2FP6BB.js";
|
|
4
4
|
import {
|
|
5
5
|
keyCheckFromResponse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CXSLZIBE.js";
|
|
7
7
|
import {
|
|
8
8
|
installNetworkDefaults
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ELXKZ6XS.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XGF3JB3R.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isToolErrorResult,
|
|
16
16
|
toolFailureCodeOfResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DC32YKE2.js";
|
|
18
18
|
|
|
19
19
|
// src/retry.ts
|
|
20
20
|
var isRetryable = (err) => {
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "./chunk-WHB622LP.js";
|
|
5
5
|
import {
|
|
6
6
|
keyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-S5GQCO2I.js";
|
|
8
8
|
import {
|
|
9
9
|
keyPrefixToShow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XGF3JB3R.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7BJQM5GI.js";
|
|
14
14
|
import {
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DC32YKE2.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/key-account.ts
|
|
19
19
|
var isKeyHeldByMacApp = (key, holder) => holder.macAppInstalled && holder.macAppKey === key;
|
|
@@ -1,38 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
-
callDecisionStore
|
|
3
|
-
|
|
4
|
-
} from "./chunk-WS6MIZLO.js";
|
|
2
|
+
callDecisionStore
|
|
3
|
+
} from "./chunk-C3EE5L6V.js";
|
|
5
4
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
BYPASS_PERMISSION_MODE
|
|
10
|
-
} from "./chunk-NVRNS263.js";
|
|
5
|
+
claudePromptMayFollowPreToolUseAllow,
|
|
6
|
+
promptedCallIdentityText
|
|
7
|
+
} from "./chunk-JHBGO2PF.js";
|
|
11
8
|
|
|
12
9
|
// src/phone-approval.ts
|
|
10
|
+
import { createHash as createHash2 } from "crypto";
|
|
11
|
+
|
|
12
|
+
// ../hook-mapping/src/prompted-call-key.ts
|
|
13
13
|
import { createHash } from "crypto";
|
|
14
|
+
var PROMPTED_CALL_KEY_LENGTH = 32;
|
|
15
|
+
var promptedCallKey = (source, call) => {
|
|
16
|
+
const identity = promptedCallIdentityText(source, call);
|
|
17
|
+
return identity === null ? null : createHash("sha256").update(identity, "utf-8").digest("hex").slice(0, PROMPTED_CALL_KEY_LENGTH);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// src/phone-approval.ts
|
|
14
21
|
var PHONE_APPROVAL_TTL_MS = 60 * 60 * 1e3;
|
|
15
22
|
var CLAUDE_SOURCE = "claude";
|
|
16
|
-
var claudePromptMayFollowPreToolUseAllow = (source, permissionMode) => source === CLAUDE_SOURCE && permissionMode === BYPASS_PERMISSION_MODE;
|
|
17
23
|
var phoneApprovalSourceFor = (source, profile, permissionMode) => {
|
|
18
24
|
if (profile?.promptFollowsPreToolUseAllow) return profile.source;
|
|
19
25
|
return claudePromptMayFollowPreToolUseAllow(source, permissionMode) ? source : null;
|
|
20
26
|
};
|
|
21
|
-
var promptOfClaudeCall = (call) => typeof call.prompt_id === "string" ? call.prompt_id : "";
|
|
22
|
-
var promptedCallMaterial = (source, call) => {
|
|
23
|
-
const identity = [source, call.session_id, call.cwd ?? "", call.tool_name, identifyingToolInput(call.tool_input)];
|
|
24
|
-
return source === CLAUDE_SOURCE ? [...identity, promptOfClaudeCall(call)] : identity;
|
|
25
|
-
};
|
|
26
|
-
var promptedCallKey = (source, call) => {
|
|
27
|
-
if (!call.session_id || !call.tool_name) return null;
|
|
28
|
-
const material = canonicalJson(promptedCallMaterial(source, call));
|
|
29
|
-
return createHash("sha256").update(material, "utf-8").digest("hex").slice(0, 32);
|
|
30
|
-
};
|
|
31
27
|
var phoneApprovals = callDecisionStore("phone-approval", PHONE_APPROVAL_TTL_MS);
|
|
32
28
|
var SLOT_SEPARATOR = "-";
|
|
33
29
|
var SLOT_LENGTH = 16;
|
|
34
30
|
var keepsOneRecordPerCall = (source) => source === CLAUDE_SOURCE;
|
|
35
|
-
var slotOfTheCall = (toolUseId) =>
|
|
31
|
+
var slotOfTheCall = (toolUseId) => createHash2("sha256").update(toolUseId, "utf-8").digest("hex").slice(0, SLOT_LENGTH);
|
|
36
32
|
var slotKeyOf = (key, toolUseId) => key === null || !toolUseId ? null : `${key}${SLOT_SEPARATOR}${slotOfTheCall(toolUseId)}`;
|
|
37
33
|
var recordsOfTheCall = (key) => key === null ? [] : [...phoneApprovals.keysStartingWith(`${key}${SLOT_SEPARATOR}`), key];
|
|
38
34
|
var recordKeyOf = (source, call) => {
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
postLiveSession,
|
|
7
7
|
postLiveSessionUntilAccepted,
|
|
8
8
|
startLiveSessionHeartbeat
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BX2A6VVT.js";
|
|
10
10
|
import {
|
|
11
11
|
CommandReceipts,
|
|
12
12
|
controllerCommandSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GNY6Z2U2.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-JHPL4VBE.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-6WBHZHZS.js";
|
|
29
29
|
import {
|
|
30
30
|
readCommandAck
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-HUMF6AIT.js";
|
|
32
32
|
import {
|
|
33
33
|
callMcpTool,
|
|
34
34
|
isRetryable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-JWBRJTPT.js";
|
|
36
36
|
import {
|
|
37
37
|
projectNameFor,
|
|
38
38
|
repositoryScopeFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-LDXGL2QH.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-DC32YKE2.js";
|
|
62
62
|
|
|
63
63
|
// src/codex-question-owner.ts
|
|
64
64
|
import { createHash } from "crypto";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DP3AS752.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FUNDDXWK.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CXSLZIBE.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-S5GQCO2I.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-DC32YKE2.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-S5GQCO2I.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7BJQM5GI.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CODEX_HOOK_STATUS,
|
|
3
3
|
HERMES_HISTORY_HELPER_COMMAND
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Y2OJGMJX.js";
|
|
5
5
|
import {
|
|
6
6
|
HERMES_ALWAYS_ALLOWED_SHELL_RULE,
|
|
7
7
|
HERMES_COMMAND_ALLOWLIST_KEY,
|
|
8
8
|
HERMES_GATE_TOOLS_KEY,
|
|
9
9
|
HERMES_SHELL_TOOL
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RLTFMU3B.js";
|
|
11
11
|
import {
|
|
12
12
|
retryAgentCommand
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6JTLZZ32.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7BJQM5GI.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/codex-trust.ts
|
|
19
19
|
var CODEX_TRUST_TELEMETRY = {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UNSET_IGNORED_SHELL_VALUE_STEP
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KQVVDMUD.js";
|
|
4
4
|
import {
|
|
5
5
|
notificationAnswerStep
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CTG3F2D5.js";
|
|
7
7
|
import {
|
|
8
8
|
matchMacAccountStep,
|
|
9
9
|
retryAgentCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6JTLZZ32.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND,
|
|
13
13
|
npmExecSetupCommandFor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7BJQM5GI.js";
|
|
15
15
|
import {
|
|
16
16
|
EXIT
|
|
17
17
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
compatibleProfileFor,
|
|
23
23
|
isCompatibleAgentType
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DC32YKE2.js";
|
|
25
25
|
|
|
26
26
|
// src/setup/closing.ts
|
|
27
27
|
var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
|