pushary 1.9.287 → 1.9.289
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 +10 -0
- package/data/openclaw-plugin/README.md +10 -2
- package/data/openclaw-plugin/package.json +1 -1
- package/dist/{api-CT6IBO52.js → api-BUZPY4QR.js} +12 -12
- package/dist/bin/pushary-ask.js +14 -14
- 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 +14 -14
- package/dist/bin/pushary-claude.js +25 -25
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +22 -22
- package/dist/bin/pushary-codex-hook.js +38 -35
- 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 +12 -4
- package/dist/bin/pushary-doctor.js +49 -49
- package/dist/bin/pushary-elicitation-hook.js +27 -27
- package/dist/bin/pushary-gemini-bridge.js +17 -17
- package/dist/bin/pushary-gemini-hook.js +58 -48
- package/dist/bin/pushary-hook.js +35 -35
- package/dist/bin/pushary-login.js +42 -42
- package/dist/bin/pushary-logout.js +31 -31
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +15 -15
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +21 -21
- package/dist/bin/pushary-opencode-hook.js +36 -33
- 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 +59 -59
- 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 +15 -15
- package/dist/bin/pushary-transcript-register.js +16 -16
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +47 -47
- package/dist/bin/pushary-wait.js +24 -24
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-LUBSO2VM.js → chunk-2TTEEY2T.js} +3 -3
- package/dist/{chunk-JO7CKMEZ.js → chunk-32IXC5BW.js} +1 -1
- package/dist/{chunk-K7H7QOHB.js → chunk-3PQB4275.js} +4 -4
- package/dist/{chunk-Q5CSZPBJ.js → chunk-4LOEBKTN.js} +2 -2
- package/dist/{chunk-PK24TQTN.js → chunk-4WRE5OBU.js} +7 -7
- package/dist/{chunk-4JHW4D4N.js → chunk-5BQXSXPO.js} +5 -5
- package/dist/{chunk-63HYM3BN.js → chunk-5JIHDTRQ.js} +2 -2
- package/dist/{chunk-CFBJJS7L.js → chunk-5K5IDURC.js} +12 -12
- package/dist/{chunk-S4JZRP3T.js → chunk-5NHY3NF2.js} +1 -1
- package/dist/{chunk-FO2HOIYA.js → chunk-6GEMETKN.js} +4 -4
- package/dist/{chunk-IGABHU5O.js → chunk-6VS46VHK.js} +6 -6
- package/dist/{chunk-GRLZVTBE.js → chunk-7K4AAGFJ.js} +5 -5
- package/dist/{chunk-G3W7GSV6.js → chunk-7VWLOLS3.js} +2 -2
- package/dist/{chunk-SU6M73OQ.js → chunk-A6IQKZKH.js} +2 -2
- package/dist/{chunk-IGM6MUL3.js → chunk-AAFKFRSV.js} +1 -1
- package/dist/{chunk-NH5MKJDI.js → chunk-B5JNWVUC.js} +5 -5
- package/dist/{chunk-MG65IOEE.js → chunk-BI6UCLYP.js} +6 -6
- package/dist/{chunk-FH6HNJF2.js → chunk-BN6OKTFA.js} +5 -5
- package/dist/{chunk-4GMY6BP5.js → chunk-BQLJPD7O.js} +3 -3
- package/dist/{chunk-I3QPRZX3.js → chunk-BXTXBRWB.js} +4 -4
- package/dist/{chunk-LCOYQP5Q.js → chunk-C5PI2JYP.js} +2 -2
- package/dist/{chunk-FHTK7OCG.js → chunk-CDWBDQDK.js} +7 -7
- package/dist/{chunk-EXILQZWQ.js → chunk-CFZIO5F6.js} +3 -3
- package/dist/{chunk-M342TA6T.js → chunk-CS7PGMJS.js} +4 -4
- package/dist/{chunk-5GACFNWL.js → chunk-DBYBCSNP.js} +1 -1
- package/dist/{chunk-YCJN6LZ6.js → chunk-DYIEZRT7.js} +1 -1
- package/dist/{chunk-UIDLO74Z.js → chunk-EQPFDOS4.js} +1 -1
- package/dist/{chunk-XCHF5GNH.js → chunk-F7EXRZIN.js} +1 -1
- package/dist/{chunk-REENDIUN.js → chunk-FA6HRGIW.js} +1 -1
- package/dist/{chunk-SXDRZVS6.js → chunk-FDJ5QZCT.js} +6 -6
- package/dist/{chunk-WAIYYGY4.js → chunk-FE2LKX5K.js} +1 -1
- package/dist/{chunk-C2JFC6HZ.js → chunk-FNEG6ULH.js} +28 -5
- package/dist/{chunk-CRIIKSYA.js → chunk-FOS6WB26.js} +1 -1
- package/dist/{chunk-Y3ITUD3Q.js → chunk-FUXVJPZB.js} +3 -3
- package/dist/{chunk-RKPHCAJZ.js → chunk-FVDBRCTQ.js} +1 -1
- package/dist/{chunk-YLOW6PDN.js → chunk-GULSIIDL.js} +1 -1
- package/dist/{chunk-HSHZJ5Z5.js → chunk-GUQWMR7D.js} +3 -3
- package/dist/{chunk-RPLLLNH3.js → chunk-HBF32DIY.js} +21 -25
- package/dist/{chunk-5VLFANI5.js → chunk-HD4JOAHL.js} +2 -2
- package/dist/{chunk-YWAWRTRL.js → chunk-HECTDQ5F.js} +5 -5
- package/dist/{chunk-H2FNFOSC.js → chunk-HIUBFOET.js} +2 -2
- package/dist/{chunk-JLVTNLZX.js → chunk-HMYHLIXA.js} +8 -8
- package/dist/{chunk-SVJ2WDNJ.js → chunk-HOU37D6Z.js} +1 -1
- package/dist/{chunk-NFFVLIYJ.js → chunk-HPZZJKBS.js} +1 -1
- package/dist/{chunk-QCUAD2NL.js → chunk-HZDEWSUC.js} +2 -2
- package/dist/{chunk-NYUSDIQJ.js → chunk-IB5B47FH.js} +4 -4
- package/dist/{chunk-VCHZCTQB.js → chunk-INJL64PE.js} +1 -1
- package/dist/{chunk-SO4274QJ.js → chunk-J67MFNK4.js} +3 -3
- package/dist/{chunk-P7PXAD2O.js → chunk-JQRBEIL6.js} +3 -3
- package/dist/{chunk-2NDMTOIT.js → chunk-KAZDRIWI.js} +7 -7
- package/dist/{chunk-ZUD3ILJI.js → chunk-L2MGAFMF.js} +3 -3
- package/dist/{chunk-DG3B7GSK.js → chunk-LMGVUOHB.js} +1 -1
- package/dist/{chunk-CWLAYD2J.js → chunk-MNP2N4VS.js} +5 -5
- package/dist/{chunk-ELNLPO5R.js → chunk-MXDJMXLF.js} +1 -1
- package/dist/{chunk-J2EHHRY2.js → chunk-N7HUW3UM.js} +6 -6
- package/dist/{chunk-OSI26PGT.js → chunk-NVMHXGKS.js} +1 -1
- package/dist/{chunk-IAB2LINZ.js → chunk-OAKUURVX.js} +1 -1
- package/dist/{chunk-TX6YNKDS.js → chunk-OCYNCIFJ.js} +1 -1
- package/dist/{chunk-TJ5YE7SG.js → chunk-OZYX6IEK.js} +7 -7
- package/dist/{chunk-2KFYMPMJ.js → chunk-PGPRNNOL.js} +6 -6
- package/dist/{chunk-EK4DULO4.js → chunk-PX7ANZ3Q.js} +3 -3
- package/dist/{chunk-AT5BTTQS.js → chunk-QCCNXYQU.js} +2 -2
- package/dist/{chunk-IU4JSMWS.js → chunk-QXDNHUEK.js} +1 -1
- package/dist/{chunk-BFEH2J6N.js → chunk-R3KH7BGP.js} +10 -10
- package/dist/{chunk-OJ5O6VRE.js → chunk-RBNPKIBH.js} +12 -12
- package/dist/{chunk-PGVLDCAC.js → chunk-RBZZFAM4.js} +10 -10
- package/dist/{chunk-3D5RKTFN.js → chunk-RKFQGHQP.js} +2 -2
- package/dist/{chunk-QHI4OPBT.js → chunk-RRRVMTF2.js} +2 -2
- package/dist/{chunk-OGFITATL.js → chunk-S6VF67Q6.js} +5 -5
- package/dist/{chunk-UXZLFBSG.js → chunk-SFVZ5OWK.js} +1 -1
- package/dist/{chunk-Q3NFM2TB.js → chunk-SHGECMM4.js} +1 -1
- package/dist/{chunk-6W4MKKWS.js → chunk-SLH3QVKU.js} +4 -4
- package/dist/{chunk-JYXGWEIA.js → chunk-TMVVAYAU.js} +3 -3
- package/dist/{chunk-A3OU6RZ5.js → chunk-U57UHGTO.js} +1 -1
- package/dist/{chunk-3NIZLXDB.js → chunk-UP335GR4.js} +3 -3
- package/dist/{chunk-U4A5EEDI.js → chunk-UVCIC3LV.js} +6 -6
- package/dist/{chunk-KLIKQFV6.js → chunk-UYROAPQQ.js} +1 -1
- package/dist/{chunk-GJMN4CWA.js → chunk-UZ2CLFC5.js} +4 -4
- package/dist/{chunk-T4G54LCL.js → chunk-V2CIVXPF.js} +4 -4
- package/dist/{chunk-ARR5SMCD.js → chunk-VTQU4WWS.js} +5 -5
- package/dist/{chunk-W7P5GTFI.js → chunk-WZZ5VP3M.js} +10 -2
- package/dist/{chunk-RHHUEIN6.js → chunk-YODOOCSR.js} +5 -5
- package/dist/{chunk-MDBETUXJ.js → chunk-ZQEZMAP5.js} +2 -2
- package/dist/{codex-app-cards-switch-4LKL7RGN.js → codex-app-cards-switch-5SC5PHEP.js} +11 -11
- package/dist/{codex-card-routing-36DOF7SM.js → codex-card-routing-2EC2UV5T.js} +2 -2
- package/dist/{codex-desktop-launch-W3OAG7VT.js → codex-desktop-launch-VUFNDZNC.js} +3 -3
- package/dist/{codex-session-launch-BUJS2QIH.js → codex-session-launch-Y3OJNQDF.js} +21 -21
- package/dist/{config-VBRURSF7.js → config-NQ2ZXWNZ.js} +3 -3
- package/dist/{global-upgrade-I7EA6TPR.js → global-upgrade-5DFJWXLK.js} +9 -9
- package/dist/{identity-MIO6FDAF.js → identity-VL7BA3XD.js} +4 -4
- package/dist/{live-capabilities-MHABDVR6.js → live-capabilities-KVNCNF7D.js} +4 -4
- package/dist/{paths-SIINCXTF.js → paths-L4MGYJOS.js} +3 -3
- package/dist/{reapply-7HT5PW5T.js → reapply-GUX7GGIG.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-PIJW5W2P.js → upgrade-lock-7A35YFRD.js} +4 -4
- package/dist/{usage-A6QKFMIV.js → usage-KDNOCRRN.js} +3 -3
- package/package.json +1 -1
|
@@ -4,21 +4,25 @@ import {
|
|
|
4
4
|
claimThrottle,
|
|
5
5
|
releaseThrottle,
|
|
6
6
|
reportEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RBNPKIBH.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveToolTarget,
|
|
10
10
|
permissionDeniedAction
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NVMHXGKS.js";
|
|
12
|
+
import {
|
|
13
|
+
clientErrorKindOf,
|
|
14
|
+
reportClientError
|
|
15
|
+
} from "./chunk-4WRE5OBU.js";
|
|
12
16
|
import {
|
|
13
17
|
projectNameFor
|
|
14
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SHGECMM4.js";
|
|
15
19
|
import {
|
|
16
20
|
PERMISSION_ALLOWED_EVENT,
|
|
17
21
|
PERMISSION_DENIED_EVENT,
|
|
18
22
|
machineApprovalFor,
|
|
19
23
|
machineDecisionFor,
|
|
20
24
|
wireVerdictFor
|
|
21
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WZZ5VP3M.js";
|
|
22
26
|
|
|
23
27
|
// src/machine-decision-audit.ts
|
|
24
28
|
var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
|
|
@@ -86,7 +90,26 @@ var reportRuleCoveredRun = async (input, verdict, agent, deadlineMs, deps = DEFA
|
|
|
86
90
|
}
|
|
87
91
|
};
|
|
88
92
|
|
|
93
|
+
// src/hook-failure-report.ts
|
|
94
|
+
var HOOK_FAILURE_CODES = {
|
|
95
|
+
claudePreToolUse: "pre_tool_use_failed",
|
|
96
|
+
claudePermissionRequest: "permission_request_failed",
|
|
97
|
+
geminiBeforeTool: "gemini_before_tool_failed",
|
|
98
|
+
codexPreToolUse: "codex_pre_tool_use_failed",
|
|
99
|
+
openCodePermission: "opencode_permission_failed"
|
|
100
|
+
};
|
|
101
|
+
var reportHookFailure = async (code, error) => {
|
|
102
|
+
try {
|
|
103
|
+
console.error(`[Pushary] ${code}: could not complete the approval check; keeping the agent's existing fallback.`);
|
|
104
|
+
await reportClientError({ kind: clientErrorKindOf(error), code });
|
|
105
|
+
} catch {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
89
110
|
export {
|
|
90
111
|
reportMachineDenial,
|
|
91
|
-
reportRuleCoveredRun
|
|
112
|
+
reportRuleCoveredRun,
|
|
113
|
+
HOOK_FAILURE_CODES,
|
|
114
|
+
reportHookFailure
|
|
92
115
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HOU37D6Z.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-IB5B47FH.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-WZZ5VP3M.js";
|
|
29
29
|
|
|
30
30
|
// src/live-capabilities.ts
|
|
31
31
|
import { execFileSync } from "child_process";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
NpmMissingError,
|
|
5
5
|
NpmPermissionError,
|
|
6
6
|
NpmReleaseAgeError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IB5B47FH.js";
|
|
8
8
|
import {
|
|
9
9
|
writeFileAtomic
|
|
10
10
|
} from "./chunk-PM2NRK6Y.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AAFKFRSV.js";
|
|
14
14
|
import {
|
|
15
15
|
readSetupAgentFailures
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WZZ5VP3M.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/config-write.ts
|
|
19
19
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -7,30 +7,32 @@ import {
|
|
|
7
7
|
restorePhoneApprovals,
|
|
8
8
|
setAsidePhoneApprovalsOfOtherCalls,
|
|
9
9
|
takePhoneApproval
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZQEZMAP5.js";
|
|
11
11
|
import {
|
|
12
12
|
defersToNativeMode
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FOS6WB26.js";
|
|
14
14
|
import {
|
|
15
|
+
HOOK_FAILURE_CODES,
|
|
16
|
+
reportHookFailure,
|
|
15
17
|
reportMachineDenial
|
|
16
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FNEG6ULH.js";
|
|
17
19
|
import {
|
|
18
20
|
claudeSettingsLocationFor,
|
|
19
21
|
readClaudePermissionRules
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-5JIHDTRQ.js";
|
|
21
23
|
import {
|
|
22
24
|
isGatingMoment,
|
|
23
25
|
recordKeylessMoment
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QXDNHUEK.js";
|
|
25
27
|
import {
|
|
26
28
|
isAdmitted,
|
|
27
29
|
readAdmissionRules
|
|
28
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-S6VF67Q6.js";
|
|
29
31
|
import {
|
|
30
32
|
activeHookSource,
|
|
31
33
|
activeIdentity,
|
|
32
34
|
namedSource
|
|
33
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6VS46VHK.js";
|
|
34
36
|
import {
|
|
35
37
|
DEFAULT_SESSION,
|
|
36
38
|
allow,
|
|
@@ -71,7 +73,7 @@ import {
|
|
|
71
73
|
storedWaitDeadline,
|
|
72
74
|
sweepFilesOlderThan,
|
|
73
75
|
userScope
|
|
74
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-RBNPKIBH.js";
|
|
75
77
|
import {
|
|
76
78
|
UNNAMED_ACTION,
|
|
77
79
|
deriveAction,
|
|
@@ -82,7 +84,7 @@ import {
|
|
|
82
84
|
patchDeletesFiles,
|
|
83
85
|
permissionDeniedAction,
|
|
84
86
|
scopePathFor
|
|
85
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-NVMHXGKS.js";
|
|
86
88
|
import {
|
|
87
89
|
isDeferAnswer
|
|
88
90
|
} from "./chunk-Z25VDYAL.js";
|
|
@@ -90,40 +92,38 @@ import {
|
|
|
90
92
|
askUser,
|
|
91
93
|
cancelQuestion,
|
|
92
94
|
claimBlockedAction,
|
|
93
|
-
clientErrorKindOf,
|
|
94
95
|
closeClaudeDialog,
|
|
95
96
|
isDecisionStopped,
|
|
96
97
|
isQuestionLimitRefusal,
|
|
97
98
|
pollForAnswer,
|
|
98
|
-
reportClientError,
|
|
99
99
|
requestGate,
|
|
100
100
|
sendNotification,
|
|
101
101
|
waitForQuestion,
|
|
102
102
|
withdrawQuestion
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-4WRE5OBU.js";
|
|
104
104
|
import {
|
|
105
105
|
branchFor,
|
|
106
106
|
projectNameFor,
|
|
107
107
|
repoKeyFor,
|
|
108
108
|
repositoryScopeFor
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-SHGECMM4.js";
|
|
110
110
|
import {
|
|
111
111
|
getMachineId
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-UYROAPQQ.js";
|
|
113
113
|
import {
|
|
114
114
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-A6IQKZKH.js";
|
|
116
116
|
import {
|
|
117
117
|
getApiKey,
|
|
118
118
|
getBaseUrl,
|
|
119
119
|
isMalformedApiKeyError
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-RRRVMTF2.js";
|
|
121
121
|
import {
|
|
122
122
|
writeFileAtomic
|
|
123
123
|
} from "./chunk-PM2NRK6Y.js";
|
|
124
124
|
import {
|
|
125
125
|
NPX_LATEST_COMMAND
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-AAFKFRSV.js";
|
|
127
127
|
import {
|
|
128
128
|
AGENT_QUESTION_STRATEGY,
|
|
129
129
|
AGENT_QUESTION_TOOL,
|
|
@@ -197,7 +197,7 @@ import {
|
|
|
197
197
|
terminalStaysLiveForTheCall,
|
|
198
198
|
timeoutActionWithoutLocalPrompt,
|
|
199
199
|
unapprovedScopeReason
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-WZZ5VP3M.js";
|
|
201
201
|
|
|
202
202
|
// src/hook.ts
|
|
203
203
|
import { randomUUID } from "crypto";
|
|
@@ -808,10 +808,6 @@ var mcpCallWaitsForSomeoneElse = (input) => {
|
|
|
808
808
|
...repositoryScopeFor(input.cwd)
|
|
809
809
|
});
|
|
810
810
|
};
|
|
811
|
-
var reportHookFailure = async (code, error) => {
|
|
812
|
-
console.error(`[Pushary] ${code}: could not complete the approval check; keeping the agent's existing fallback.`);
|
|
813
|
-
await reportClientError({ kind: clientErrorKindOf(error), code });
|
|
814
|
-
};
|
|
815
811
|
var rememberHandbackToThePrompt = (input, heldForMcp, result) => {
|
|
816
812
|
if (heldForMcp && result?.hookSpecificOutput?.permissionDecision === "ask") recordMcpHoldHandback(blockedActionFingerprintFor(input));
|
|
817
813
|
return result;
|
|
@@ -849,7 +845,7 @@ var standingRefusalOf = async (input, canonical) => {
|
|
|
849
845
|
await reportMachineDenial(input, denied, ACTIVE_AGENT);
|
|
850
846
|
return settledAs("denied", deny(denied.reason));
|
|
851
847
|
} catch (error) {
|
|
852
|
-
await reportHookFailure(
|
|
848
|
+
await reportHookFailure(HOOK_FAILURE_CODES.claudePreToolUse, error);
|
|
853
849
|
return settledAs("undecided", void 0);
|
|
854
850
|
}
|
|
855
851
|
};
|
|
@@ -920,7 +916,7 @@ var decidePreToolUse = async (input, canonical) => {
|
|
|
920
916
|
}
|
|
921
917
|
}
|
|
922
918
|
} catch (error) {
|
|
923
|
-
await reportHookFailure(
|
|
919
|
+
await reportHookFailure(HOOK_FAILURE_CODES.claudePreToolUse, error);
|
|
924
920
|
return settledAs("undecided", undecidedCall(SOLE_GATE_UNDECIDED_REASON));
|
|
925
921
|
}
|
|
926
922
|
};
|
|
@@ -1085,7 +1081,7 @@ var handlePermissionRequest = async (input, canonical, holdBudgetSeconds) => {
|
|
|
1085
1081
|
);
|
|
1086
1082
|
}
|
|
1087
1083
|
} catch (error) {
|
|
1088
|
-
await reportHookFailure(
|
|
1084
|
+
await reportHookFailure(HOOK_FAILURE_CODES.claudePermissionRequest, error);
|
|
1089
1085
|
return void 0;
|
|
1090
1086
|
}
|
|
1091
1087
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A6IQKZKH.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-WZZ5VP3M.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
settingSnapshot,
|
|
19
19
|
writeHermesSetting,
|
|
20
20
|
writeSetupReceipt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KAZDRIWI.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-CFZIO5F6.js";
|
|
27
27
|
import {
|
|
28
28
|
retryAgentCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GUQWMR7D.js";
|
|
30
30
|
import {
|
|
31
31
|
configFilePath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-RRRVMTF2.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-WZZ5VP3M.js";
|
|
41
41
|
|
|
42
42
|
// src/hermes/shell-gate.ts
|
|
43
43
|
var readHermesShellGate = async (launcher, pluginVersion = null) => {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-A6IQKZKH.js";
|
|
7
7
|
import {
|
|
8
8
|
readJsonSafe,
|
|
9
9
|
writeJsonAtomic
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-CXQWDQCJ.js";
|
|
18
18
|
import {
|
|
19
19
|
isAutoUpdateResult
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WZZ5VP3M.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -6,37 +6,37 @@ import {
|
|
|
6
6
|
postLiveSession,
|
|
7
7
|
postLiveSessionUntilAccepted,
|
|
8
8
|
startLiveSessionHeartbeat
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FE2LKX5K.js";
|
|
10
10
|
import {
|
|
11
11
|
CommandReceipts,
|
|
12
12
|
controllerCommandSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FA6HRGIW.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-HD4JOAHL.js";
|
|
20
20
|
import {
|
|
21
21
|
spawnClaude
|
|
22
22
|
} from "./chunk-3PSNUHC5.js";
|
|
23
23
|
import {
|
|
24
24
|
readCommandAck
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-LMGVUOHB.js";
|
|
26
26
|
import {
|
|
27
27
|
isDecisionStopped,
|
|
28
28
|
isWaitForAnswerResponse,
|
|
29
29
|
withdrawQuestion,
|
|
30
30
|
writeDegraded
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4WRE5OBU.js";
|
|
32
32
|
import {
|
|
33
33
|
callMcpTool,
|
|
34
34
|
isRetryable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-UVCIC3LV.js";
|
|
36
36
|
import {
|
|
37
37
|
projectNameFor,
|
|
38
38
|
repositoryScopeFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-SHGECMM4.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-WZZ5VP3M.js";
|
|
62
62
|
|
|
63
63
|
// src/codex-question-owner.ts
|
|
64
64
|
import { createHash } from "crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TMVVAYAU.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WZZ5VP3M.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WZZ5VP3M.js";
|
|
23
23
|
|
|
24
24
|
// src/shell-quote.ts
|
|
25
25
|
var shellDoubleQuoted = (text) => `"${text.replace(/(["\\$`])/g, "\\$1")}"`;
|
|
@@ -610,9 +610,9 @@ var installGlobally = (options) => {
|
|
|
610
610
|
}
|
|
611
611
|
const started = (async () => {
|
|
612
612
|
if (!npmIsOnPath()) throw new NpmMissingError();
|
|
613
|
-
const { withUpgradeLock } = await import("./global-upgrade-
|
|
614
|
-
const { canonicalLockPath, installWithUpgradeLock, leftAnUnfinishedInstallHere, ownsUpgradeLock } = await import("./upgrade-lock-
|
|
615
|
-
const { autoUpdateLock } = await import("./paths-
|
|
613
|
+
const { withUpgradeLock } = await import("./global-upgrade-5DFJWXLK.js");
|
|
614
|
+
const { canonicalLockPath, installWithUpgradeLock, leftAnUnfinishedInstallHere, ownsUpgradeLock } = await import("./upgrade-lock-7A35YFRD.js");
|
|
615
|
+
const { autoUpdateLock } = await import("./paths-L4MGYJOS.js");
|
|
616
616
|
const lockPath = options.lockPath ?? autoUpdateLock();
|
|
617
617
|
const lockFile = canonicalLockPath(lockPath);
|
|
618
618
|
const unfinishedHere = failuresThisProcessLeftUnfinished.get(lockFile);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OAKUURVX.js";
|
|
4
4
|
import {
|
|
5
5
|
parseFlags
|
|
6
6
|
} from "./chunk-BZIBNSQE.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AAFKFRSV.js";
|
|
13
13
|
import {
|
|
14
14
|
CLAUDE_CONNECTOR_GUIDE,
|
|
15
15
|
CLAUDE_CONNECTOR_STEPS,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
CLAUDE_CONNECTOR_URL,
|
|
18
18
|
COWORK_CONNECTOR_LIMIT,
|
|
19
19
|
COWORK_STANDING_INSTRUCTIONS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WZZ5VP3M.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-P6DUWKAO.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchAsCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GULSIIDL.js";
|
|
8
8
|
import {
|
|
9
9
|
getBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RRRVMTF2.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-WZZ5VP3M.js";
|
|
19
19
|
|
|
20
20
|
// src/transcript-recipient-pin.ts
|
|
21
21
|
import { createHash } from "crypto";
|