pushary 1.9.187 → 1.9.192
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 +23 -0
- package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
- package/data/cursor-plugin/CHANGELOG.md +4 -0
- package/data/cursor-plugin/scripts/pushary-gate.mjs +34 -6
- package/data/openclaw-plugin/README.md +2 -2
- package/data/openclaw-plugin/dist/protected-writes.js +3 -2
- package/data/openclaw-plugin/package.json +1 -1
- package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
- package/data/vscode-plugin/CHANGELOG.md +4 -0
- package/data/vscode-plugin/scripts/pushary-gate.mjs +34 -6
- package/dist/{api-6U7B4OY7.js → api-XPS2NPJH.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 +27 -27
- package/dist/bin/pushary-clean.js +39 -39
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +50 -50
- 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 +8 -0
- package/dist/bin/pushary-doctor.js +75 -53
- 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 +22 -22
- package/dist/bin/pushary-logout.js +30 -30
- 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 +61 -24
- package/dist/bin/pushary-opencode-hook.js +45 -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 +39 -39
- package/dist/bin/pushary-sessions.js +14 -14
- package/dist/bin/pushary-setup.js +55 -55
- 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 +25 -25
- package/dist/bin/pushary-upgrade.js +44 -44
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-5O4MW5YS.js → chunk-23WKGMTI.js} +4 -2
- package/dist/{chunk-BWOQACK7.js → chunk-2HOKEC2I.js} +2 -2
- package/dist/{chunk-L7BHOFTF.js → chunk-3APYAOZF.js} +3 -3
- package/dist/{chunk-3JNBZF4G.js → chunk-3ULFLONL.js} +1 -1
- package/dist/{chunk-5X7XEJTI.js → chunk-4FVKGWWZ.js} +2 -2
- package/dist/{chunk-NNHD7KVL.js → chunk-4TIZJD3Q.js} +5 -5
- package/dist/{chunk-OLU5L3VB.js → chunk-5IPXL33D.js} +1 -1
- package/dist/{chunk-RYBTDSQF.js → chunk-5QP7DVQF.js} +1 -1
- package/dist/{chunk-QNOXMVIX.js → chunk-5WC6N3HA.js} +5 -5
- package/dist/{chunk-ZL3UDLTC.js → chunk-5WT6DLL2.js} +5 -5
- package/dist/{chunk-4OSTVMM5.js → chunk-6C7DT36Z.js} +18 -18
- package/dist/{chunk-WA5RGLKV.js → chunk-6CJSVFAD.js} +2 -2
- package/dist/{chunk-PS4AKK26.js → chunk-6EZY7IXB.js} +1 -1
- package/dist/{chunk-AKAZRQLA.js → chunk-6TNKY3DC.js} +2 -2
- package/dist/{chunk-6ZSOD7VY.js → chunk-7K5AYNDY.js} +5 -5
- package/dist/chunk-7QUPTDT2.js +92 -0
- package/dist/{chunk-6OJ7XVBR.js → chunk-A4QFVUEY.js} +2 -2
- package/dist/{chunk-URZAPVR6.js → chunk-AD7R7TNQ.js} +4 -4
- package/dist/{chunk-J3JG5EKP.js → chunk-AQLIBG2P.js} +1 -1
- package/dist/{chunk-UFAIL7YE.js → chunk-C2B4LPJU.js} +2 -2
- package/dist/{chunk-Z7OTSKAT.js → chunk-CDEJHIYQ.js} +4 -4
- package/dist/{chunk-TYGNPI7L.js → chunk-CDXD6W4N.js} +1 -1
- package/dist/{chunk-I5C35DE5.js → chunk-DAHGMBRE.js} +3 -3
- package/dist/{chunk-GYIISS2S.js → chunk-DHD54IIT.js} +7 -7
- package/dist/{chunk-GBKMTVG6.js → chunk-DP6YHOKF.js} +2 -2
- package/dist/{chunk-O7N2FQBH.js → chunk-DQI4647T.js} +4 -4
- package/dist/{chunk-BW6WGBJC.js → chunk-E65O7RMA.js} +4 -4
- package/dist/{chunk-AO5BRDKS.js → chunk-EBIPQ3ZE.js} +20 -4
- package/dist/{chunk-HYZAL77U.js → chunk-EJ56NJQ4.js} +7 -7
- package/dist/{chunk-ZKZL4EFA.js → chunk-EJJBM4OB.js} +1 -1
- package/dist/{chunk-ZUU4I2RK.js → chunk-EPNYDS4H.js} +1 -1
- package/dist/{chunk-L3BX56Y4.js → chunk-ETT24EIH.js} +3 -3
- package/dist/{chunk-NXHIWGOL.js → chunk-F326QJEJ.js} +8 -8
- package/dist/{chunk-LXZ6APGN.js → chunk-FY7WHRDJ.js} +3 -3
- package/dist/{chunk-LTB54XBS.js → chunk-FZWUUGC2.js} +4 -4
- package/dist/{chunk-YUG7PCPJ.js → chunk-GAAPUS5J.js} +1 -1
- package/dist/{chunk-VECF23YI.js → chunk-GGKGVCUN.js} +4 -4
- package/dist/{chunk-QJF5I7NR.js → chunk-GR46QR45.js} +6 -6
- package/dist/{chunk-GTEL6ZIH.js → chunk-GUBY4KIU.js} +8 -6
- package/dist/{chunk-E2CY63WZ.js → chunk-GUZLBFER.js} +5 -5
- package/dist/{chunk-KOJJ2LPJ.js → chunk-H6CBRJKT.js} +5 -5
- package/dist/{chunk-3JU27SD5.js → chunk-HMMVGDL3.js} +10 -4
- package/dist/{chunk-O5IRXMPV.js → chunk-ITPAUHJ4.js} +1 -1
- package/dist/{chunk-FYBS4VRT.js → chunk-IYOA3NWO.js} +1 -1
- package/dist/{chunk-JFZPMVEC.js → chunk-JJBM5FYH.js} +2 -2
- package/dist/{chunk-YMJCE2TD.js → chunk-JXZQ4XFL.js} +2 -2
- package/dist/{chunk-IYY7KRNS.js → chunk-KERLAXHG.js} +3 -3
- package/dist/{chunk-JLVVFGYN.js → chunk-LWUDOZHE.js} +4 -4
- package/dist/{chunk-Z2RVYQON.js → chunk-NCN7ANYA.js} +6 -6
- package/dist/{chunk-XO66RJJC.js → chunk-NFK2QF74.js} +5 -5
- package/dist/{chunk-2IBCLVJK.js → chunk-O7ZCWGYA.js} +2 -2
- package/dist/{chunk-2NHK4PUR.js → chunk-OTJEIINV.js} +6 -6
- package/dist/{chunk-PDVGAU7A.js → chunk-OYZUPSD7.js} +6 -6
- package/dist/{chunk-HKL7HXFD.js → chunk-P4JYK7WB.js} +3 -3
- package/dist/{chunk-BDJNHQFA.js → chunk-P6NACIBR.js} +4 -4
- package/dist/{chunk-TBQT2TA6.js → chunk-PUVD22DY.js} +12 -12
- package/dist/{chunk-EXM3ZEUU.js → chunk-R2NYUOTC.js} +9 -9
- package/dist/{chunk-DRY5YWUK.js → chunk-RNPEOAPC.js} +2 -2
- package/dist/{chunk-OESNI7XN.js → chunk-SHAHZQTQ.js} +4 -4
- package/dist/{chunk-6NUEY2FT.js → chunk-T4GV5MOC.js} +3 -3
- package/dist/{chunk-5DSFBND4.js → chunk-TP47JHGJ.js} +1 -1
- package/dist/{chunk-LXHH33MX.js → chunk-UF6RZBTL.js} +3 -3
- package/dist/{chunk-FZQHKRQF.js → chunk-URVW3D2J.js} +11 -11
- package/dist/{chunk-2ACPOE77.js → chunk-UV5ROHY2.js} +1 -1
- package/dist/{chunk-OCHXKVIN.js → chunk-UVNH4UGJ.js} +1 -1
- package/dist/{chunk-7P7ZKS2G.js → chunk-UXQVXB7Q.js} +1 -1
- package/dist/{chunk-XF25RJEV.js → chunk-VDJMYP54.js} +3 -3
- package/dist/{chunk-6D35FDXC.js → chunk-VEE2MRUN.js} +1 -1
- package/dist/{chunk-7IG54T3H.js → chunk-VH5DPURH.js} +1 -1
- package/dist/{chunk-TKGCDWPF.js → chunk-VNCN3Z4T.js} +2 -2
- package/dist/{chunk-QUXD5OW3.js → chunk-WB5DD232.js} +3 -3
- package/dist/{chunk-FWYOB3LW.js → chunk-WNCTMTMG.js} +1 -1
- package/dist/{chunk-EU6NQQNG.js → chunk-X4ENTDFT.js} +2 -2
- package/dist/{chunk-2PQY4TMQ.js → chunk-X7FIYMHC.js} +2 -2
- package/dist/{chunk-52CIHAC2.js → chunk-XMNETXQ4.js} +6 -6
- package/dist/{chunk-SIT46O4V.js → chunk-XONHTLMX.js} +10 -10
- package/dist/{chunk-AYM7IBC5.js → chunk-XSJON4TV.js} +1 -1
- package/dist/{chunk-KZFNXNFH.js → chunk-Y2H5TF7T.js} +1 -1
- package/dist/{chunk-6UICFJRW.js → chunk-YLZRG4U5.js} +1 -1
- package/dist/{chunk-QBPBNFDI.js → chunk-YMULPOSH.js} +5 -5
- package/dist/{chunk-D35DKI3E.js → chunk-ZCR5VTOC.js} +5 -5
- package/dist/{codex-app-cards-switch-5B67TNLS.js → codex-app-cards-switch-UEN23QFT.js} +11 -11
- package/dist/{codex-card-routing-3HSUBI6U.js → codex-card-routing-CJZT26VA.js} +2 -2
- package/dist/{codex-desktop-launch-GG5K77QD.js → codex-desktop-launch-DKOOCOTD.js} +1 -1
- package/dist/{codex-session-launch-XR46HRYK.js → codex-session-launch-UHNV5Z3D.js} +20 -20
- package/dist/{config-K7JUY27J.js → config-EVDZ6OAI.js} +3 -3
- package/dist/{global-upgrade-R24VOCK7.js → global-upgrade-KZQWNABB.js} +9 -9
- package/dist/{identity-IMSNZJZL.js → identity-A2BK7P2A.js} +4 -4
- package/dist/{live-capabilities-BBUGAZJV.js → live-capabilities-43YRGYAR.js} +4 -4
- package/dist/{paths-HGLMPFAG.js → paths-67D2435E.js} +3 -3
- package/dist/reapply-APVASEGC.js +70 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +35 -35
- package/dist/{upgrade-lock-FML33CIQ.js → upgrade-lock-TG4UOPN7.js} +4 -4
- package/dist/{usage-QMQZCRF2.js → usage-FVDJIMCB.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-LV575VQE.js +0 -62
- package/dist/reapply-SYNZ2IZY.js +0 -70
package/dist/bin/pushary-wait.js
CHANGED
|
@@ -2,43 +2,43 @@
|
|
|
2
2
|
import {
|
|
3
3
|
waitResponse,
|
|
4
4
|
waitWindowResponse
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-YLZRG4U5.js";
|
|
6
6
|
import {
|
|
7
7
|
describeWaitLadder
|
|
8
8
|
} from "../chunk-CVWG2N3Y.js";
|
|
9
9
|
import {
|
|
10
10
|
exitOnFailedSettingsRequest
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-EJ56NJQ4.js";
|
|
12
|
+
import "../chunk-C2B4LPJU.js";
|
|
13
13
|
import {
|
|
14
14
|
APPROVAL_RULES_PATH,
|
|
15
15
|
PUSH_WINDOW_COMMAND,
|
|
16
16
|
PUSH_WINDOW_RESET_COMMAND
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-6CJSVFAD.js";
|
|
18
18
|
import {
|
|
19
19
|
createIo
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-5QP7DVQF.js";
|
|
21
21
|
import {
|
|
22
22
|
exitOnHelpFlag
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-AQLIBG2P.js";
|
|
24
24
|
import {
|
|
25
25
|
parseFlags
|
|
26
26
|
} from "../chunk-BZIBNSQE.js";
|
|
27
27
|
import {
|
|
28
28
|
absoluteUrl
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-3APYAOZF.js";
|
|
30
30
|
import {
|
|
31
31
|
pusharyFetch
|
|
32
|
-
} from "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import "../chunk-
|
|
32
|
+
} from "../chunk-T4GV5MOC.js";
|
|
33
|
+
import "../chunk-XSJON4TV.js";
|
|
34
|
+
import "../chunk-FY7WHRDJ.js";
|
|
35
|
+
import "../chunk-DP6YHOKF.js";
|
|
36
|
+
import "../chunk-2HOKEC2I.js";
|
|
37
|
+
import "../chunk-EBIPQ3ZE.js";
|
|
38
38
|
import {
|
|
39
39
|
getApiKey,
|
|
40
40
|
getBaseUrl
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-Y2H5TF7T.js";
|
|
42
42
|
import {
|
|
43
43
|
UsageError,
|
|
44
44
|
exitCodeFor
|
|
@@ -47,9 +47,9 @@ import "../chunk-PM2NRK6Y.js";
|
|
|
47
47
|
import {
|
|
48
48
|
EXIT
|
|
49
49
|
} from "../chunk-BG4HHB7E.js";
|
|
50
|
-
import "../chunk-
|
|
50
|
+
import "../chunk-GAAPUS5J.js";
|
|
51
51
|
import "../chunk-UQTQ6HPO.js";
|
|
52
|
-
import "../chunk-
|
|
52
|
+
import "../chunk-HMMVGDL3.js";
|
|
53
53
|
import "../chunk-MLKGABMK.js";
|
|
54
54
|
|
|
55
55
|
// bin/pushary-wait.ts
|
package/dist/bin/pushary.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
installNetworkDefaults
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-T4GV5MOC.js";
|
|
5
|
+
import "../chunk-XSJON4TV.js";
|
|
6
|
+
import "../chunk-2HOKEC2I.js";
|
|
7
|
+
import "../chunk-EBIPQ3ZE.js";
|
|
8
|
+
import "../chunk-Y2H5TF7T.js";
|
|
9
9
|
import "../chunk-CINBAX5G.js";
|
|
10
10
|
import "../chunk-PM2NRK6Y.js";
|
|
11
11
|
import {
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
LISTED_COMMANDS,
|
|
16
16
|
renderHelp,
|
|
17
17
|
resolveCommandName
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-GAAPUS5J.js";
|
|
19
19
|
import {
|
|
20
20
|
getPackageVersion
|
|
21
21
|
} from "../chunk-UQTQ6HPO.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-HMMVGDL3.js";
|
|
23
23
|
import "../chunk-MLKGABMK.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/runtime.ts
|
|
@@ -10,11 +10,12 @@ import {
|
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
verifyAnchoredRecipients,
|
|
12
12
|
wrapSessionKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WB5DD232.js";
|
|
14
14
|
|
|
15
15
|
// src/live-session.ts
|
|
16
16
|
var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
|
|
17
17
|
var LIVE_SESSION_HEARTBEAT_MS = 6e4;
|
|
18
|
+
var LIVE_SESSION_REQUEST_TIMEOUT_MS = 1e4;
|
|
18
19
|
var liveSessionSleep = (ms, signal) => new Promise((resolve) => {
|
|
19
20
|
if (signal.aborted) return resolve();
|
|
20
21
|
const timer = setTimeout(done, ms);
|
|
@@ -30,7 +31,7 @@ var postLiveSession = (options, path, body) => {
|
|
|
30
31
|
method: "POST",
|
|
31
32
|
headers: { Authorization: `Bearer ${options.apiKey}`, "Content-Type": "application/json" },
|
|
32
33
|
body: JSON.stringify(body),
|
|
33
|
-
signal: AbortSignal.any([options.signal, AbortSignal.timeout(options.requestTimeoutMs ??
|
|
34
|
+
signal: AbortSignal.any([options.signal, AbortSignal.timeout(options.requestTimeoutMs ?? LIVE_SESSION_REQUEST_TIMEOUT_MS)])
|
|
34
35
|
});
|
|
35
36
|
};
|
|
36
37
|
var postLiveSessionUntilAccepted = async (options, path, body) => {
|
|
@@ -170,6 +171,7 @@ var LiveTranscriptRelay = class {
|
|
|
170
171
|
};
|
|
171
172
|
|
|
172
173
|
export {
|
|
174
|
+
LIVE_SESSION_REQUEST_TIMEOUT_MS,
|
|
173
175
|
liveSessionSleep,
|
|
174
176
|
postLiveSession,
|
|
175
177
|
postLiveSessionUntilAccepted,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatVersion,
|
|
4
4
|
quoteIfNeeded,
|
|
5
5
|
shellDoubleQuoted
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EBIPQ3ZE.js";
|
|
7
7
|
import {
|
|
8
8
|
writeFileAtomic
|
|
9
9
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
PUSHARY_HOSTS,
|
|
23
23
|
PUSHARY_TOOL_PREFIX,
|
|
24
24
|
withHookHoldBudget
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-HMMVGDL3.js";
|
|
26
26
|
|
|
27
27
|
// src/setup/paths.ts
|
|
28
28
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T4GV5MOC.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Y2H5TF7T.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HMMVGDL3.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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2HOKEC2I.js";
|
|
4
4
|
import {
|
|
5
5
|
readRegularJsonFile,
|
|
6
6
|
writeFileAtomic
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
serializeDeclinedAgents,
|
|
14
14
|
withDeclinedAgent,
|
|
15
15
|
withoutDeclinedAgent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HMMVGDL3.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -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-WNCTMTMG.js";
|
|
10
10
|
|
|
11
11
|
// src/opencode-runtime-bundle.ts
|
|
12
12
|
var openCodeRuntimeSource = `import { spawn } from 'child_process';
|
|
@@ -524,12 +524,11 @@ var ownService = async () => {
|
|
|
524
524
|
};
|
|
525
525
|
|
|
526
526
|
// src/opencode-runtime/question-forms.ts
|
|
527
|
-
var isFormField = (value) => isRecord(value) && typeof value.key === "string";
|
|
528
527
|
var formOf = (properties) => {
|
|
529
528
|
const form = record(record(properties).form);
|
|
530
529
|
const id = text(form.id);
|
|
531
530
|
const sessionID = text(form.sessionID);
|
|
532
|
-
if (!id || !sessionID || sessionID === OPENCODE_GLOBAL_FORM_OWNER || record(form.metadata).kind !== OPENCODE_QUESTION_FORM_KIND || !Array.isArray(form.fields)
|
|
531
|
+
if (!id || !sessionID || sessionID === OPENCODE_GLOBAL_FORM_OWNER || record(form.metadata).kind !== OPENCODE_QUESTION_FORM_KIND || !Array.isArray(form.fields))
|
|
533
532
|
return null;
|
|
534
533
|
return { id, sessionID, title: text(form.title), fields: form.fields };
|
|
535
534
|
};
|
|
@@ -538,10 +537,11 @@ var v1OptionOf = (option) => {
|
|
|
538
537
|
const label = text(value.label);
|
|
539
538
|
return { value: label, label, description: text(value.description) };
|
|
540
539
|
};
|
|
540
|
+
var v1FieldKey = (index) => "q" + index;
|
|
541
541
|
var v1FieldOf = (question, index) => {
|
|
542
542
|
const asked = record(question);
|
|
543
543
|
return {
|
|
544
|
-
key:
|
|
544
|
+
key: v1FieldKey(index),
|
|
545
545
|
title: text(asked.header),
|
|
546
546
|
description: text(asked.question),
|
|
547
547
|
type: asked.multiple === true ? "multiselect" : "string",
|
|
@@ -557,7 +557,7 @@ var v1FormOf = (properties) => {
|
|
|
557
557
|
};
|
|
558
558
|
var settledQuestionID = (properties) => text(record(properties).requestID) ?? text(record(properties).id);
|
|
559
559
|
var v1AnswerOf = (value) => value === void 0 ? [] : Array.isArray(value) ? value : [String(value)];
|
|
560
|
-
var v1Answers = (form, answer) => form.fields.map((
|
|
560
|
+
var v1Answers = (form, answer) => form.fields.map((_field, index) => v1AnswerOf(answer[v1FieldKey(index)]));
|
|
561
561
|
|
|
562
562
|
// src/opencode-runtime/question-channels.ts
|
|
563
563
|
var succeeded = (response) => response?.ok === true;
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
expectedLaunchCapabilities,
|
|
4
4
|
hasSpawnProvider,
|
|
5
5
|
resolveControlPolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UF6RZBTL.js";
|
|
7
7
|
import {
|
|
8
8
|
daemonHasRemoteProof,
|
|
9
9
|
daemonServiceManagerAvailable,
|
|
10
10
|
hasDaemonServiceDefinition,
|
|
11
11
|
readDaemonNeedsLogin,
|
|
12
12
|
readDaemonStatus
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OYZUPSD7.js";
|
|
14
14
|
import {
|
|
15
15
|
getMachineId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XSJON4TV.js";
|
|
17
17
|
import {
|
|
18
18
|
readControlMode,
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FY7WHRDJ.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-Y2H5TF7T.js";
|
|
24
24
|
import {
|
|
25
25
|
getPackageVersion
|
|
26
26
|
} from "./chunk-UQTQ6HPO.js";
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
settingSnapshot,
|
|
19
19
|
writeHermesSetting,
|
|
20
20
|
writeSetupReceipt
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CDEJHIYQ.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-KERLAXHG.js";
|
|
27
27
|
import {
|
|
28
28
|
retryAgentCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-P4JYK7WB.js";
|
|
30
30
|
import {
|
|
31
31
|
configFilePath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-Y2H5TF7T.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-HMMVGDL3.js";
|
|
41
41
|
|
|
42
42
|
// src/hermes/shell-gate.ts
|
|
43
43
|
var readHermesShellGate = async (launcher) => {
|
|
@@ -2,39 +2,39 @@ import {
|
|
|
2
2
|
forgetPhoneApproval,
|
|
3
3
|
rememberPhoneApproval,
|
|
4
4
|
takePhoneApproval
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JXZQ4XFL.js";
|
|
6
6
|
import {
|
|
7
7
|
claudeSettingsLocationFor,
|
|
8
8
|
readClaudePermissionRules
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VNCN3Z4T.js";
|
|
10
10
|
import {
|
|
11
11
|
defersToNativeMode
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UXQVXB7Q.js";
|
|
13
13
|
import {
|
|
14
14
|
askAgentQuestions,
|
|
15
15
|
outcomeOfFailedAsk,
|
|
16
16
|
storedWaitDeadline
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GUBY4KIU.js";
|
|
18
18
|
import {
|
|
19
19
|
reportMachineDenial
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7QUPTDT2.js";
|
|
21
21
|
import {
|
|
22
22
|
isGatingMoment,
|
|
23
23
|
recordKeylessMoment
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-IYOA3NWO.js";
|
|
25
25
|
import {
|
|
26
26
|
isAdmitted,
|
|
27
27
|
readAdmissionRules
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-7K5AYNDY.js";
|
|
29
29
|
import {
|
|
30
30
|
isDeferAnswer,
|
|
31
31
|
oncePerSession
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UV5ROHY2.js";
|
|
33
33
|
import {
|
|
34
34
|
activeHookSource,
|
|
35
35
|
activeIdentity,
|
|
36
36
|
namedSource
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ZCR5VTOC.js";
|
|
38
38
|
import {
|
|
39
39
|
DEFAULT_SESSION,
|
|
40
40
|
approvalAwaitingRetry,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
settleQuestionsForToolUse,
|
|
58
58
|
sweepFilesOlderThan,
|
|
59
59
|
userScope
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-PUVD22DY.js";
|
|
61
61
|
import {
|
|
62
62
|
UNNAMED_ACTION,
|
|
63
63
|
deriveAction,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
patchDeletesFiles,
|
|
69
69
|
permissionDeniedAction,
|
|
70
70
|
scopePathFor
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-3ULFLONL.js";
|
|
72
72
|
import {
|
|
73
73
|
askUser,
|
|
74
74
|
cancelQuestion,
|
|
@@ -85,29 +85,29 @@ import {
|
|
|
85
85
|
waitForQuestion,
|
|
86
86
|
waitsForThePhone,
|
|
87
87
|
withdrawQuestion
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-OTJEIINV.js";
|
|
89
89
|
import {
|
|
90
90
|
branchFor,
|
|
91
91
|
projectNameFor,
|
|
92
92
|
repoKeyFor,
|
|
93
93
|
repositoryScopeFor
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-VH5DPURH.js";
|
|
95
95
|
import {
|
|
96
96
|
getMachineId
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-XSJON4TV.js";
|
|
98
98
|
import {
|
|
99
99
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-2HOKEC2I.js";
|
|
101
101
|
import {
|
|
102
102
|
getApiKey,
|
|
103
103
|
getBaseUrl
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-Y2H5TF7T.js";
|
|
105
105
|
import {
|
|
106
106
|
writeFileAtomic
|
|
107
107
|
} from "./chunk-PM2NRK6Y.js";
|
|
108
108
|
import {
|
|
109
109
|
NPX_LATEST_COMMAND
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-GAAPUS5J.js";
|
|
111
111
|
import {
|
|
112
112
|
AGENT_QUESTION_STRATEGY,
|
|
113
113
|
AGENT_QUESTION_TOOL,
|
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
timeoutActionWithoutLocalPrompt,
|
|
182
182
|
unansweredRefusalReason,
|
|
183
183
|
unapprovedScopeReason
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-HMMVGDL3.js";
|
|
185
185
|
|
|
186
186
|
// src/terminal-answer-watch.ts
|
|
187
187
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3APYAOZF.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HMMVGDL3.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
codexHome,
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2HOKEC2I.js";
|
|
11
11
|
import {
|
|
12
12
|
resolvePathBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EBIPQ3ZE.js";
|
|
14
14
|
import {
|
|
15
15
|
getPackageVersion
|
|
16
16
|
} from "./chunk-UQTQ6HPO.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cursorGateOwnsClaudeCall,
|
|
3
3
|
readCursorGateRegistration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LWUDOZHE.js";
|
|
5
5
|
import {
|
|
6
6
|
registerTranscript
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XONHTLMX.js";
|
|
8
8
|
import {
|
|
9
9
|
namedEvent
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZCR5VTOC.js";
|
|
11
11
|
import {
|
|
12
12
|
writeDegraded
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OTJEIINV.js";
|
|
14
14
|
import {
|
|
15
15
|
claudeShapedHookInput,
|
|
16
16
|
hookCompatibleProfileBySource,
|
|
17
17
|
isGrokHookPayload,
|
|
18
18
|
isGrokSessionEndStop
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HMMVGDL3.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"];
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AUTO_DECISION_WINDOW_MS,
|
|
3
|
+
DEFAULT_SESSION,
|
|
4
|
+
claimThrottle,
|
|
5
|
+
releaseThrottle,
|
|
6
|
+
reportEvent
|
|
7
|
+
} from "./chunk-PUVD22DY.js";
|
|
8
|
+
import {
|
|
9
|
+
deriveToolTarget,
|
|
10
|
+
permissionDeniedAction
|
|
11
|
+
} from "./chunk-3ULFLONL.js";
|
|
12
|
+
import {
|
|
13
|
+
projectNameFor
|
|
14
|
+
} from "./chunk-VH5DPURH.js";
|
|
15
|
+
import {
|
|
16
|
+
PERMISSION_ALLOWED_EVENT,
|
|
17
|
+
PERMISSION_DENIED_EVENT,
|
|
18
|
+
machineApprovalFor,
|
|
19
|
+
machineDecisionFor,
|
|
20
|
+
wireVerdictFor
|
|
21
|
+
} from "./chunk-HMMVGDL3.js";
|
|
22
|
+
|
|
23
|
+
// src/machine-decision-audit.ts
|
|
24
|
+
var MACHINE_DECISION_REPORT_TIMEOUT_MS = 800;
|
|
25
|
+
var machineDecisionReportTimeoutMs = (deadlineMs, nowMs) => Math.min(MACHINE_DECISION_REPORT_TIMEOUT_MS, deadlineMs - nowMs);
|
|
26
|
+
var DEFAULT_RULE_COVERED_RUN_DEPS = { reportEvent, now: Date.now };
|
|
27
|
+
var deliverMachineDecision = async (input, agent, report, send) => {
|
|
28
|
+
const response = await send({
|
|
29
|
+
event: report.event,
|
|
30
|
+
occurredAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
31
|
+
toolUseId: input.tool_use_id,
|
|
32
|
+
agentType: agent.type,
|
|
33
|
+
agentName: `${agent.label} - ${projectNameFor(input.cwd)}`,
|
|
34
|
+
...report.action === void 0 ? {} : { action: report.action },
|
|
35
|
+
sessionId: input.session_id,
|
|
36
|
+
decisionSource: "policy_auto",
|
|
37
|
+
decisionOrigin: report.decision.origin,
|
|
38
|
+
decisionOutcome: report.decision.outcome,
|
|
39
|
+
toolName: input.tool_name,
|
|
40
|
+
toolTarget: report.toolTarget
|
|
41
|
+
}, { maxAttempts: 1, timeoutMs: report.timeoutMs, requireOk: true, skipDrain: true });
|
|
42
|
+
if (response?.ok !== true) throw new Error("Audit delivery was not acknowledged");
|
|
43
|
+
};
|
|
44
|
+
var reportMachineDenial = async (input, verdict, agent) => {
|
|
45
|
+
const decision = machineDecisionFor(wireVerdictFor(verdict, 0));
|
|
46
|
+
if (!decision) return;
|
|
47
|
+
const sessionKey = input.session_id || DEFAULT_SESSION;
|
|
48
|
+
const toolTarget = deriveToolTarget(input.tool_name, input.tool_input);
|
|
49
|
+
const throttleKey = `machinedecision:${agent.type}:${sessionKey}:${input.tool_name}:${decision.origin}:${toolTarget ?? ""}`;
|
|
50
|
+
const throttle = claimThrottle(throttleKey, AUTO_DECISION_WINDOW_MS);
|
|
51
|
+
if (throttle === "throttled") return;
|
|
52
|
+
if (throttle === "unavailable") {
|
|
53
|
+
console.error("[Pushary] Could not access the audit throttle; reporting this denial without deduplication.");
|
|
54
|
+
}
|
|
55
|
+
try {
|
|
56
|
+
await deliverMachineDecision(input, agent, {
|
|
57
|
+
event: PERMISSION_DENIED_EVENT,
|
|
58
|
+
action: permissionDeniedAction(input.tool_name),
|
|
59
|
+
decision,
|
|
60
|
+
toolTarget,
|
|
61
|
+
timeoutMs: MACHINE_DECISION_REPORT_TIMEOUT_MS
|
|
62
|
+
}, reportEvent);
|
|
63
|
+
} catch {
|
|
64
|
+
console.error("[Pushary] Could not record the machine denial. The action remains blocked; its audit delivery will be retried on the next matching denial.");
|
|
65
|
+
if (throttle === "passed") {
|
|
66
|
+
try {
|
|
67
|
+
releaseThrottle(throttleKey);
|
|
68
|
+
} catch {
|
|
69
|
+
console.error("[Pushary] Could not reset the failed audit throttle.");
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var reportRuleCoveredRun = async (input, verdict, agent, deadlineMs, deps = DEFAULT_RULE_COVERED_RUN_DEPS) => {
|
|
75
|
+
const timeoutMs = machineDecisionReportTimeoutMs(deadlineMs, deps.now());
|
|
76
|
+
if (timeoutMs <= 0) return;
|
|
77
|
+
try {
|
|
78
|
+
await deliverMachineDecision(input, agent, {
|
|
79
|
+
event: PERMISSION_ALLOWED_EVENT,
|
|
80
|
+
decision: machineApprovalFor(verdict.source),
|
|
81
|
+
toolTarget: deriveToolTarget(input.tool_name, input.tool_input),
|
|
82
|
+
timeoutMs
|
|
83
|
+
}, deps.reportEvent);
|
|
84
|
+
} catch {
|
|
85
|
+
console.error("[Pushary] Could not record that your rule let this call run. The call still runs.");
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export {
|
|
90
|
+
reportMachineDenial,
|
|
91
|
+
reportRuleCoveredRun
|
|
92
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2HOKEC2I.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EBIPQ3ZE.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GR46QR45.js";
|
|
4
4
|
import {
|
|
5
5
|
matchMacAccountStep,
|
|
6
6
|
retryAgentCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P4JYK7WB.js";
|
|
8
8
|
import {
|
|
9
9
|
canChangeApprovalSettings
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6CJSVFAD.js";
|
|
11
11
|
import {
|
|
12
12
|
EXIT
|
|
13
13
|
} from "./chunk-BG4HHB7E.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND,
|
|
16
16
|
npmExecSetupCommandFor
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GAAPUS5J.js";
|
|
18
18
|
import {
|
|
19
19
|
LATEST_DIST_TAG
|
|
20
20
|
} from "./chunk-UQTQ6HPO.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FY7WHRDJ.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GAAPUS5J.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|