pushary 1.9.244 → 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 +13 -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 +69 -80
- 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-NSRARU4G.js → chunk-47FNCTRG.js} +4 -4
- package/dist/{chunk-AXBIUN5S.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-QZQHAFSP.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-6TJOEVKA.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-RL6SYK6P.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-S2TIA67T.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-PHJS5IAO.js → chunk-HX7H3SCP.js} +10 -10
- package/dist/{chunk-5LAKBLOK.js → chunk-IB7RICIP.js} +6 -6
- package/dist/{chunk-ZICVRFNH.js → chunk-IQ5YFQY6.js} +1 -1
- package/dist/{chunk-NEKEDV5H.js → chunk-JUEVORTN.js} +2 -2
- package/dist/{chunk-B2UMHA24.js → chunk-KJWNXL6M.js} +5 -5
- package/dist/{chunk-LWAMSBU5.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-7T5IXYCJ.js → chunk-LFNIBQHE.js} +6 -14
- 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-ZB25WE2K.js → chunk-M64BUY66.js} +15 -13
- package/dist/{chunk-KVMPB3X4.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-UYCL6GGF.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-CIS77AVL.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-PCCNXWVD.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-ZGDTT3LR.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-GHZ6CTB3.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-OAY3SRY5.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
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-WHB622LP.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureDaemonRunning
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CTXXTEFA.js";
|
|
7
7
|
import {
|
|
8
8
|
hookOwnerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LFNIBQHE.js";
|
|
10
10
|
import {
|
|
11
11
|
hookMeaning
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XDRXEBEC.js";
|
|
13
13
|
import {
|
|
14
14
|
buildTranscriptRecords,
|
|
15
15
|
changedRecipientsMessage,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
uploadTranscriptRecords,
|
|
25
25
|
verifyAnchoredRecipients,
|
|
26
26
|
wrapSessionKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WQQHFYJA.js";
|
|
28
28
|
import {
|
|
29
29
|
transcriptEnvironmentPreference,
|
|
30
30
|
transcriptsEnabled
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XCYZTFVX.js";
|
|
32
32
|
import {
|
|
33
33
|
external_exports,
|
|
34
34
|
ownedOnlyByThisUser,
|
|
@@ -36,19 +36,19 @@ import {
|
|
|
36
36
|
} from "./chunk-P6DUWKAO.js";
|
|
37
37
|
import {
|
|
38
38
|
fetchAsCredential
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-RRL7CNHL.js";
|
|
40
40
|
import {
|
|
41
41
|
readTranscriptPreference
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-NNG74VEC.js";
|
|
43
43
|
import {
|
|
44
44
|
claudeConfigDir,
|
|
45
45
|
codexHome,
|
|
46
46
|
pusharyDir
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-YN34CTII.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiKey,
|
|
50
50
|
getBaseUrl
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-CV6NQKHB.js";
|
|
52
52
|
import {
|
|
53
53
|
writeJsonAtomic,
|
|
54
54
|
writeJsonAtomicDurable
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
isHookSource,
|
|
62
62
|
isRecord,
|
|
63
63
|
redactSecretsFromContent
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
65
65
|
|
|
66
66
|
// src/transcript-registration.ts
|
|
67
67
|
import { createHash as createHash4 } from "crypto";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UNSET_IGNORED_SHELL_VALUE_STEP
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YFO7NG2J.js";
|
|
4
4
|
import {
|
|
5
5
|
notificationAnswerStep
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-75F4L2W2.js";
|
|
7
7
|
import {
|
|
8
8
|
matchMacAccountStep,
|
|
9
9
|
retryAgentCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-M64BUY66.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND,
|
|
13
13
|
npmExecSetupCommandFor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KY2NAAX7.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-ZJRMS7X2.js";
|
|
25
25
|
|
|
26
26
|
// src/setup/closing.ts
|
|
27
27
|
var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
|
|
@@ -295,7 +295,7 @@ var nextStepFor = (failure, releaseAgeRefusedAgents, recovery) => {
|
|
|
295
295
|
case "close-node-programs":
|
|
296
296
|
return { kind: "close-node-programs", instruction: NPM_FILE_IN_USE_STEP };
|
|
297
297
|
case "match-mac-account":
|
|
298
|
-
return { kind: "match-mac-account", instruction: matchMacAccountStep(failure.agent,
|
|
298
|
+
return { kind: "match-mac-account", instruction: matchMacAccountStep(failure.agent, recovery.setupAccount) };
|
|
299
299
|
case "retry-agent":
|
|
300
300
|
return { kind: "retry-agent", command: retryAgentCommand(failure.agent) };
|
|
301
301
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YN34CTII.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UFFEQEVI.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XMI2NTQV.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HX7H3SCP.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MVMPHFB4.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LZV3SN2U.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZJRMS7X2.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"];
|
|
@@ -4,30 +4,30 @@ import {
|
|
|
4
4
|
phoneApprovalSourceFor,
|
|
5
5
|
rememberPhoneApproval,
|
|
6
6
|
takePhoneApproval
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W66JA2VL.js";
|
|
8
8
|
import {
|
|
9
9
|
claudeSettingsLocationFor,
|
|
10
10
|
readClaudePermissionRules
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2DPOXTSE.js";
|
|
12
12
|
import {
|
|
13
13
|
defersToNativeMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EUXMTG2Z.js";
|
|
15
15
|
import {
|
|
16
16
|
reportMachineDenial
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-F7S7BZXK.js";
|
|
18
18
|
import {
|
|
19
19
|
isGatingMoment,
|
|
20
20
|
recordKeylessMoment
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FV5TLWQS.js";
|
|
22
22
|
import {
|
|
23
23
|
isAdmitted,
|
|
24
24
|
readAdmissionRules
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KJWNXL6M.js";
|
|
26
26
|
import {
|
|
27
27
|
activeHookSource,
|
|
28
28
|
activeIdentity,
|
|
29
29
|
namedSource
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-MVMPHFB4.js";
|
|
31
31
|
import {
|
|
32
32
|
DEFAULT_SESSION,
|
|
33
33
|
allow,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
storedWaitDeadline,
|
|
69
69
|
sweepFilesOlderThan,
|
|
70
70
|
userScope
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-LIA6KTRT.js";
|
|
72
72
|
import {
|
|
73
73
|
UNNAMED_ACTION,
|
|
74
74
|
deriveAction,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
patchDeletesFiles,
|
|
80
80
|
permissionDeniedAction,
|
|
81
81
|
scopePathFor
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-XDRXEBEC.js";
|
|
83
83
|
import {
|
|
84
84
|
askUser,
|
|
85
85
|
cancelQuestion,
|
|
@@ -93,30 +93,30 @@ import {
|
|
|
93
93
|
sendNotification,
|
|
94
94
|
waitForQuestion,
|
|
95
95
|
withdrawQuestion
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-LZV3SN2U.js";
|
|
97
97
|
import {
|
|
98
98
|
branchFor,
|
|
99
99
|
projectNameFor,
|
|
100
100
|
repoKeyFor,
|
|
101
101
|
repositoryScopeFor
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-O57ADP6V.js";
|
|
103
103
|
import {
|
|
104
104
|
getMachineId
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-RF4RU7HT.js";
|
|
106
106
|
import {
|
|
107
107
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-YN34CTII.js";
|
|
109
109
|
import {
|
|
110
110
|
getApiKey,
|
|
111
111
|
getBaseUrl,
|
|
112
112
|
isMalformedApiKeyError
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-CV6NQKHB.js";
|
|
114
114
|
import {
|
|
115
115
|
writeFileAtomic
|
|
116
116
|
} from "./chunk-PM2NRK6Y.js";
|
|
117
117
|
import {
|
|
118
118
|
NPX_LATEST_COMMAND
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-KY2NAAX7.js";
|
|
120
120
|
import {
|
|
121
121
|
AGENT_QUESTION_STRATEGY,
|
|
122
122
|
AGENT_QUESTION_TOOL,
|
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
terminalStaysLiveForTheCall,
|
|
186
186
|
timeoutActionWithoutLocalPrompt,
|
|
187
187
|
unapprovedScopeReason
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
189
189
|
|
|
190
190
|
// src/terminal-answer-watch.ts
|
|
191
191
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -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-DPKVOWMU.js";
|
|
10
10
|
|
|
11
11
|
// src/opencode-runtime-bundle.ts
|
|
12
12
|
var openCodeRuntimeSource = `import { spawn } from 'child_process';
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
uninstallOpenClawPlugin,
|
|
16
16
|
unsetOpenClawEntry,
|
|
17
17
|
writeOpenClawEntry
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VQHI6O7A.js";
|
|
19
19
|
import {
|
|
20
20
|
needsShell
|
|
21
21
|
} from "./chunk-3PSNUHC5.js";
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
openClawDirectoriesToLookIn,
|
|
28
28
|
openClawPluginFolder,
|
|
29
29
|
openClawSetupReceiptDirectory
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YN34CTII.js";
|
|
31
31
|
import {
|
|
32
32
|
resolvePathBinary
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-UFFEQEVI.js";
|
|
34
34
|
import {
|
|
35
35
|
readJsonSafe,
|
|
36
36
|
writeJsonAtomic
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-CXQWDQCJ.js";
|
|
42
42
|
import {
|
|
43
43
|
isRecord
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
45
45
|
|
|
46
46
|
// src/hermes/plugin-payload.ts
|
|
47
47
|
import { createHash } from "crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AGENT_CHOICES
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BC5BDWY3.js";
|
|
4
4
|
import {
|
|
5
5
|
BELL_HOOK_BINARY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QAWEMILZ.js";
|
|
7
7
|
import {
|
|
8
8
|
CLAUDE_HOOK_EVENTS,
|
|
9
9
|
CODEX_HOOK_EVENTS,
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
isBridgeLocator,
|
|
17
17
|
isProtectedByScope,
|
|
18
18
|
registerHookEntry
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YN34CTII.js";
|
|
20
20
|
import {
|
|
21
21
|
CURSOR_GATE_EVENTS,
|
|
22
22
|
HOOK_BUDGETS,
|
|
23
23
|
HOOK_LOCATOR_BINARY,
|
|
24
24
|
hookCommandHoldBudget
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZJRMS7X2.js";
|
|
26
26
|
|
|
27
27
|
// src/gemini-config.ts
|
|
28
28
|
var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
|
|
@@ -331,13 +331,7 @@ var planHooks = (context) => {
|
|
|
331
331
|
if (context.takeOverHooks) return "install";
|
|
332
332
|
return "keep";
|
|
333
333
|
};
|
|
334
|
-
var describeAppOwnership = (agentName) =>
|
|
335
|
-
var KEEP_HINT = "Kept on the app's account. Pass --take-over-hooks to have this setup handle them instead.";
|
|
336
|
-
var namesInWords = (names) => names.length <= 1 ? names.join("") : `${names.slice(0, -1).join(", ")} and ${names.at(-1)}`;
|
|
337
|
-
var describeHookOwnership = (entries, names) => {
|
|
338
|
-
const handledByMac = entries.filter((entry) => entry.owner === "app").map((entry) => names[entry.agent]);
|
|
339
|
-
return handledByMac.length === 0 ? null : `Pushary for Mac handles approvals for ${namesInWords(handledByMac)}.`;
|
|
340
|
-
};
|
|
334
|
+
var describeAppOwnership = (agentName) => `${agentName} (handled by Pushary for Mac)`;
|
|
341
335
|
|
|
342
336
|
export {
|
|
343
337
|
GEMINI_HOOK_BINARY,
|
|
@@ -373,7 +367,5 @@ export {
|
|
|
373
367
|
hookOwnerOf,
|
|
374
368
|
hookOwnerOfCommands,
|
|
375
369
|
planHooks,
|
|
376
|
-
describeAppOwnership
|
|
377
|
-
KEEP_HINT,
|
|
378
|
-
describeHookOwnership
|
|
370
|
+
describeAppOwnership
|
|
379
371
|
};
|
|
@@ -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 {
|
|
@@ -44,19 +44,17 @@ var AgentConfigError = class extends Error {
|
|
|
44
44
|
};
|
|
45
45
|
var configFailureKind = (readFailure) => readFailure === "unparseable" ? "config-unparseable" : "config-unreadable";
|
|
46
46
|
var AGENT_FAILURE_DETAILS = {
|
|
47
|
-
"not-wired": "reported success but its config is not there."
|
|
48
|
-
"app-account-mismatch": "Pushary for Mac set it up with an account that does not match this setup, so it was left as it is."
|
|
47
|
+
"not-wired": "reported success but its config is not there."
|
|
49
48
|
};
|
|
50
49
|
var DESCRIBED_FAILURE_REMEDIES = {
|
|
51
|
-
"not-wired": "retry-agent"
|
|
52
|
-
"app-account-mismatch": "match-mac-account"
|
|
50
|
+
"not-wired": "retry-agent"
|
|
53
51
|
};
|
|
54
52
|
var describedAgentFailure = (agent, kind) => ({
|
|
55
53
|
agent,
|
|
56
54
|
kind,
|
|
57
55
|
detail: AGENT_FAILURE_DETAILS[kind],
|
|
58
56
|
remedy: DESCRIBED_FAILURE_REMEDIES[kind],
|
|
59
|
-
stage:
|
|
57
|
+
stage: "hook-validation"
|
|
60
58
|
});
|
|
61
59
|
var NPM_PERMISSION_REMEDIES = {
|
|
62
60
|
"global-prefix": "fix-npm-prefix",
|
|
@@ -90,10 +88,14 @@ var retryAgentCommand = (agent) => `${NPX_LATEST_COMMAND} setup --agents ${agent
|
|
|
90
88
|
var takeOverHooksCommand = (agent) => `${retryAgentCommand(agent)} --take-over-hooks`;
|
|
91
89
|
var matchMacAccountStep = (agent, setupAccount) => `Sign Pushary for Mac into ${setupAccount ?? "this setup's account"}, or run ${takeOverHooksCommand(agent)}`;
|
|
92
90
|
var UNCHECKED_ACCOUNT = "an account that could not be checked";
|
|
93
|
-
var describeMacAccountMismatch = (mismatch) =>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
var describeMacAccountMismatch = (mismatch) => `Pushary for Mac uses ${mismatch.macAccount ?? UNCHECKED_ACCOUNT}. This setup uses ${mismatch.setupAccount ?? UNCHECKED_ACCOUNT}.`;
|
|
92
|
+
var macAccountMismatchFailure = (agent, mismatch) => ({
|
|
93
|
+
agent,
|
|
94
|
+
kind: "app-account-mismatch",
|
|
95
|
+
detail: describeMacAccountMismatch(mismatch),
|
|
96
|
+
remedy: "match-mac-account",
|
|
97
|
+
stage: "account-check"
|
|
98
|
+
});
|
|
97
99
|
var REMAINING_AGENTS_CONTINUE = "Other agents will continue. Re-run setup to retry.";
|
|
98
100
|
var afterAgentFailureNote = (agentsStillToSetUp) => agentsStillToSetUp > 0 ? REMAINING_AGENTS_CONTINUE : null;
|
|
99
101
|
var failedAgentsContext = (configuredAgentNames) => configuredAgentNames.length > 0 ? `(configured: ${configuredAgentNames.join(", ")})` : null;
|
|
@@ -109,7 +111,7 @@ export {
|
|
|
109
111
|
agentFailureFromError,
|
|
110
112
|
retryAgentCommand,
|
|
111
113
|
matchMacAccountStep,
|
|
112
|
-
|
|
114
|
+
macAccountMismatchFailure,
|
|
113
115
|
afterAgentFailureNote,
|
|
114
116
|
failedAgentsContext,
|
|
115
117
|
agentFailureWire
|
|
@@ -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";
|