pushary 1.9.178 → 1.9.179
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 +8 -0
- package/dist/{api-Y4XA3RLD.js → api-YH7WN4FA.js} +21 -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 +38 -38
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +108 -54
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +34 -34
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +45 -45
- package/dist/bin/pushary-disconnect.js +29 -29
- package/dist/bin/pushary-doctor.js +46 -46
- 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 +29 -29
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +27 -27
- package/dist/bin/pushary-opencode-bridge.js +19 -19
- package/dist/bin/pushary-opencode-hook.js +33 -33
- package/dist/bin/pushary-permission-denied-hook.js +36 -36
- package/dist/bin/pushary-permission-hook.js +36 -36
- package/dist/bin/pushary-post-hook.js +28 -28
- package/dist/bin/pushary-prompt-hook.js +27 -27
- package/dist/bin/pushary-session-end-hook.js +27 -27
- package/dist/bin/pushary-session-start-hook.js +38 -38
- package/dist/bin/pushary-sessions.js +14 -14
- package/dist/bin/pushary-setup.js +54 -54
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +35 -35
- package/dist/bin/pushary-stop-hook.js +27 -27
- package/dist/bin/pushary-stopfailure-hook.js +27 -27
- package/dist/bin/pushary-suggestions.js +16 -16
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +25 -25
- package/dist/bin/pushary-upgrade.js +43 -43
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-2VQNNQCL.js → chunk-2HMDWEER.js} +1 -1
- package/dist/{chunk-3GE7GJMQ.js → chunk-2JSTCD7L.js} +2 -2
- package/dist/{chunk-2O5VF2QP.js → chunk-32YARQJC.js} +5 -5
- package/dist/{chunk-7EH5V64U.js → chunk-3BZ7IGGW.js} +5 -5
- package/dist/{chunk-Q356XS2F.js → chunk-3JXSIPLF.js} +1 -1
- package/dist/{chunk-7C2YDR2P.js → chunk-3NTAU6DN.js} +2 -2
- package/dist/{chunk-5XUN2ATK.js → chunk-65CSOPQW.js} +8 -8
- package/dist/{chunk-XXUNYVUE.js → chunk-6BIC2SHE.js} +2 -2
- package/dist/{chunk-GSOMT5RJ.js → chunk-6KF26UUL.js} +3 -3
- package/dist/{chunk-52U74DDW.js → chunk-6W7Q6VB6.js} +2 -2
- package/dist/{chunk-3F6SGTZP.js → chunk-7VNTZY7V.js} +90 -21
- package/dist/{chunk-O2FHVZCR.js → chunk-A7G6CFZU.js} +4 -4
- package/dist/{chunk-OI4JRC3E.js → chunk-AXPZZFBW.js} +2 -2
- package/dist/{chunk-5ATP6NKJ.js → chunk-AYMFOYOZ.js} +9 -9
- package/dist/{chunk-JWZZO6T5.js → chunk-AYP4GE3X.js} +11 -0
- package/dist/{chunk-FA4MQUX3.js → chunk-BKZZSXEQ.js} +4 -4
- package/dist/{chunk-IMVJ3H2C.js → chunk-BNZYEIBB.js} +18 -18
- package/dist/{chunk-3CLTRY7V.js → chunk-CTJRWP6Y.js} +3 -3
- package/dist/{chunk-6KHVI5GM.js → chunk-D7GUUTOT.js} +4 -4
- package/dist/{chunk-OMHNCIKL.js → chunk-E25IZ5S3.js} +4 -4
- package/dist/{chunk-ASMMRKHJ.js → chunk-EEHTVBKI.js} +6 -6
- package/dist/{chunk-MTZOVCWL.js → chunk-FHVGZ6AN.js} +1 -1
- package/dist/{chunk-PDIPCZRU.js → chunk-FWUF33U6.js} +2 -2
- package/dist/{chunk-WBSJ2GNP.js → chunk-HGP2DDW3.js} +1 -1
- package/dist/{chunk-5I7OXXV6.js → chunk-HNQ2FIBA.js} +2 -2
- package/dist/{chunk-4DMRIGY5.js → chunk-HOVBZBAJ.js} +4 -4
- package/dist/{chunk-6CIKM5GN.js → chunk-I4XCADTT.js} +1 -1
- package/dist/{chunk-HZ5N2WGD.js → chunk-I6AMLYXS.js} +4 -4
- package/dist/{chunk-NA3GEZG4.js → chunk-INUW2CXK.js} +6 -6
- package/dist/{chunk-L7OCJAEF.js → chunk-IV4ZY2DS.js} +5 -5
- package/dist/{chunk-T6PQ47XZ.js → chunk-J5PTUQMF.js} +3 -3
- package/dist/{chunk-WP52TPG6.js → chunk-JDNQC5IG.js} +5 -5
- package/dist/{chunk-IWOP6BX2.js → chunk-JMPC7HL6.js} +6 -6
- package/dist/{chunk-E2JUP323.js → chunk-JSSCR6M2.js} +2 -2
- package/dist/{chunk-FIFFXOEQ.js → chunk-KFLHGN4D.js} +3 -3
- package/dist/{chunk-L2WALXZE.js → chunk-KUB4OGLG.js} +5 -5
- package/dist/{chunk-2CKP2FXL.js → chunk-M2P5KFP5.js} +3 -3
- package/dist/{chunk-247ADQBU.js → chunk-MIJ2P4FZ.js} +7 -7
- package/dist/{chunk-7PSU6TXK.js → chunk-MKKRQBQF.js} +3 -3
- package/dist/{chunk-RCXQPIRI.js → chunk-MM5QO2ZY.js} +1 -1
- package/dist/{chunk-DITKCHAY.js → chunk-MWKKUBHQ.js} +1 -1
- package/dist/{chunk-W4LIY2RO.js → chunk-N24MKYZ2.js} +1 -1
- package/dist/{chunk-WYNYVOJ2.js → chunk-N2L7E5NE.js} +5 -5
- package/dist/{chunk-DGWLGPR3.js → chunk-NEAJLLIG.js} +5 -5
- package/dist/{chunk-AQEJRCRK.js → chunk-NX33EVEP.js} +1 -1
- package/dist/{chunk-DKZJDNTJ.js → chunk-OD6JNTGZ.js} +2 -2
- package/dist/{chunk-SUVMKXJM.js → chunk-OIFWZESQ.js} +11 -11
- package/dist/{chunk-A767YPE5.js → chunk-P3MYHWF5.js} +5 -5
- package/dist/{chunk-RKWA5PRV.js → chunk-PFH7XMHE.js} +1 -1
- package/dist/{chunk-IMZ2O6I7.js → chunk-PJHYFHP4.js} +1 -1
- package/dist/{chunk-C3MRJDTL.js → chunk-POESL3CD.js} +1 -1
- package/dist/{chunk-AIBJGDBE.js → chunk-QMV7WS7D.js} +2 -2
- package/dist/{chunk-WBPHMW55.js → chunk-QYGO5EKA.js} +2 -2
- package/dist/{chunk-55LUC2XS.js → chunk-RM3F4V6A.js} +64 -15
- package/dist/{chunk-B4R55F4P.js → chunk-RM3YENVK.js} +3 -3
- package/dist/{chunk-3VM7CX4Z.js → chunk-RVIYAQC7.js} +2 -2
- package/dist/{chunk-FEFIMTBN.js → chunk-S7X3PENP.js} +4 -4
- package/dist/{chunk-I3RQS5F6.js → chunk-SV6AMA7J.js} +10 -10
- package/dist/{chunk-CSY7A6UE.js → chunk-SYIAWMBA.js} +6 -6
- package/dist/{chunk-NBMWRS3J.js → chunk-TVBND3VL.js} +2 -2
- package/dist/{chunk-4KSQRCH5.js → chunk-UJUXZCQS.js} +6 -6
- package/dist/{chunk-426PTJL4.js → chunk-VOWNWXVE.js} +38 -10
- package/dist/{chunk-PO6UUHBD.js → chunk-W27VNI6G.js} +1 -1
- package/dist/{chunk-25PD2NWC.js → chunk-WDPIZXCZ.js} +3 -3
- package/dist/{chunk-2GFMA5F6.js → chunk-WII73NRE.js} +1 -1
- package/dist/{chunk-D4RE37P7.js → chunk-WIKPDEOR.js} +1 -1
- package/dist/{chunk-OB3KVRKZ.js → chunk-WMHXZDUT.js} +2 -2
- package/dist/{chunk-NNVIWYDZ.js → chunk-XJG7YRF7.js} +3 -3
- package/dist/{chunk-NCXJE3LY.js → chunk-XOVAERD7.js} +1 -1
- package/dist/{chunk-IK442FLD.js → chunk-XQGU77H7.js} +4 -4
- package/dist/{chunk-3WK3ZOMA.js → chunk-XWWD2KTY.js} +1 -1
- package/dist/{chunk-OAK44Y4T.js → chunk-Y5BRXPL6.js} +1 -1
- package/dist/{chunk-LPUBT3LM.js → chunk-YRGDHBS5.js} +4 -4
- package/dist/{chunk-ESCQRNNN.js → chunk-YXLJTIGG.js} +4 -4
- package/dist/{chunk-JE42QYDU.js → chunk-Z2DAWG5U.js} +1 -1
- package/dist/{chunk-CN7AHMS3.js → chunk-ZMJKA7CF.js} +5 -5
- package/dist/{chunk-JLR4IGC2.js → chunk-ZMSQQVVY.js} +1 -1
- package/dist/{chunk-S4RR2SW2.js → chunk-ZNCRZNLJ.js} +1 -1
- package/dist/{chunk-KQRATFYV.js → chunk-ZPHPNTGW.js} +1 -1
- package/dist/{chunk-GWYSHO6R.js → chunk-ZTNGM6NU.js} +3 -3
- package/dist/{codex-app-cards-switch-IRV5H4QX.js → codex-app-cards-switch-RDVTCDVO.js} +11 -11
- package/dist/{codex-card-routing-GLYARSKQ.js → codex-card-routing-XUYIRUB7.js} +2 -2
- package/dist/{codex-desktop-launch-3QB4LAYW.js → codex-desktop-launch-EX3E3T3Q.js} +1 -1
- package/dist/{codex-session-launch-ISLV5J36.js → codex-session-launch-TDEWJ3G6.js} +20 -20
- package/dist/{config-V7FP5LRI.js → config-XDZZTOHU.js} +3 -3
- package/dist/{global-upgrade-L3D27Z2N.js → global-upgrade-QVFP4F7D.js} +9 -9
- package/dist/{identity-IFUX72BS.js → identity-Q5HWBCJY.js} +4 -4
- package/dist/{live-capabilities-XWR6FVYJ.js → live-capabilities-G5FB5VBL.js} +4 -4
- package/dist/{paths-NQ4U74JJ.js → paths-IVCUVJM6.js} +3 -3
- package/dist/{reapply-PPKLBFB7.js → reapply-MQTAPBPH.js} +31 -31
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +35 -35
- package/dist/{upgrade-lock-PSOXTS7H.js → upgrade-lock-Y56NERM5.js} +4 -4
- package/dist/{usage-RFWDFYXH.js → usage-J7O2QQEQ.js} +3 -3
- package/package.json +1 -1
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OD6JNTGZ.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RVIYAQC7.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-W27VNI6G.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WDPIZXCZ.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZTNGM6NU.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZPHPNTGW.js";
|
|
24
24
|
import {
|
|
25
25
|
EXIT
|
|
26
26
|
} from "./chunk-BG4HHB7E.js";
|
|
27
27
|
import {
|
|
28
28
|
KEY_SCOPE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-AYP4GE3X.js";
|
|
30
30
|
|
|
31
31
|
// src/cli/report-key.ts
|
|
32
32
|
var { dim, yellow } = createIo();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2JSTCD7L.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-BKZZSXEQ.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-AYP4GE3X.js";
|
|
29
29
|
|
|
30
30
|
// src/live-capabilities.ts
|
|
31
31
|
import { execFileSync } from "child_process";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addGeminiMcpServer,
|
|
3
3
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YRGDHBS5.js";
|
|
5
5
|
import {
|
|
6
6
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7VNTZY7V.js";
|
|
8
8
|
import {
|
|
9
9
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Z2DAWG5U.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-3NTAU6DN.js";
|
|
23
23
|
import {
|
|
24
24
|
HOOK_COMPATIBLE_PROFILES,
|
|
25
25
|
PHONE_ANSWERED_TOOLS,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
pusharyMissingReason,
|
|
31
31
|
refusalOutput,
|
|
32
32
|
withHookHoldBudget
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-AYP4GE3X.js";
|
|
34
34
|
|
|
35
35
|
// src/config-document.ts
|
|
36
36
|
import { parse, stringify } from "smol-toml";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E25IZ5S3.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RVIYAQC7.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WDPIZXCZ.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-ZTNGM6NU.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AYP4GE3X.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-ZTNGM6NU.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MWKKUBHQ.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureCodexTrustsPusharyHooks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QMV7WS7D.js";
|
|
4
4
|
import {
|
|
5
5
|
hermesReceiptPaths,
|
|
6
6
|
hermesSetupPredatesThePluginFolder,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
refreshHermesPluginFiles,
|
|
10
10
|
refreshOpenClawPlugin,
|
|
11
11
|
shippedHermesPlugin
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-D7GUUTOT.js";
|
|
13
13
|
import {
|
|
14
14
|
fxIgnoresInstructionsFile,
|
|
15
15
|
fxInstructionsBody,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
macAppFxBridge,
|
|
19
19
|
refreshClineKey,
|
|
20
20
|
switchFxHttpEntryToBridge
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-P3MYHWF5.js";
|
|
22
22
|
import {
|
|
23
23
|
OPENCODE_HOOK_BINARY,
|
|
24
24
|
agentHookOwner,
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
openCodePluginDir,
|
|
32
32
|
openCodeWired,
|
|
33
33
|
withOpenCodeAskRules
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-SYIAWMBA.js";
|
|
35
35
|
import {
|
|
36
36
|
detectClaudeVersion
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-2JSTCD7L.js";
|
|
38
38
|
import {
|
|
39
39
|
addCompatibleHooks,
|
|
40
40
|
compatibleConfigFile,
|
|
41
41
|
compatibleInstructionsFile,
|
|
42
42
|
hasCompatibleHooks
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-N2L7E5NE.js";
|
|
44
44
|
import {
|
|
45
45
|
GEMINI_HOOK_BINARY,
|
|
46
46
|
addGeminiHooks,
|
|
@@ -52,10 +52,10 @@ import {
|
|
|
52
52
|
geminiWired,
|
|
53
53
|
hasGeminiHooks,
|
|
54
54
|
planHooks
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-YRGDHBS5.js";
|
|
56
56
|
import {
|
|
57
57
|
KEY_FILE_MODE
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-ZTNGM6NU.js";
|
|
59
59
|
import {
|
|
60
60
|
CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
|
|
61
61
|
CLAUDE_HOOK_BINARY,
|
|
@@ -102,13 +102,13 @@ import {
|
|
|
102
102
|
renderAgentInstructions,
|
|
103
103
|
supportedClaudeEvents,
|
|
104
104
|
vscodePluginMcp
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-3NTAU6DN.js";
|
|
106
106
|
import {
|
|
107
107
|
formatVersion,
|
|
108
108
|
hookCommandsUseBareNames,
|
|
109
109
|
resolveGlobalBinDir,
|
|
110
110
|
resolveGlobalBinary
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-BKZZSXEQ.js";
|
|
112
112
|
import {
|
|
113
113
|
readJsonSafe,
|
|
114
114
|
writeFileAtomic,
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
HOOK_COMPATIBLE_PROFILES,
|
|
119
119
|
isCompatibleAgentType,
|
|
120
120
|
isRecord
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-AYP4GE3X.js";
|
|
122
122
|
|
|
123
123
|
// src/reapply.ts
|
|
124
124
|
import { dirname, join } from "path";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CTJRWP6Y.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RM3YENVK.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZTNGM6NU.js";
|
|
14
14
|
import {
|
|
15
15
|
CLINE_SERVER_NAME_TAKEN,
|
|
16
16
|
CLINE_SETTINGS_REFUSALS,
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
withClinePusharyServer,
|
|
33
33
|
withRefreshedClineKey,
|
|
34
34
|
withoutClinePusharyServer
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-3NTAU6DN.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveGlobalBinary
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-BKZZSXEQ.js";
|
|
39
39
|
import {
|
|
40
40
|
readJsonSafe,
|
|
41
41
|
writeFileAtomic,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
codexHome,
|
|
8
8
|
codexHooksJsonIn,
|
|
9
9
|
isPusharyCodexCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3NTAU6DN.js";
|
|
11
11
|
import {
|
|
12
12
|
resolvePathBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BKZZSXEQ.js";
|
|
14
14
|
import {
|
|
15
15
|
getPackageVersion
|
|
16
16
|
} from "./chunk-UQTQ6HPO.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3NTAU6DN.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BKZZSXEQ.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -8,31 +8,36 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-32YARQJC.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PJHYFHP4.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XJG7YRF7.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3NTAU6DN.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZPHPNTGW.js";
|
|
26
26
|
import {
|
|
27
27
|
ASK_AGENT_NAME_MAX,
|
|
28
28
|
CLIENT_REPORT_PATH,
|
|
29
29
|
DECISION_LINE_MAX,
|
|
30
30
|
GATE_PERMISSION_MODE_MAX_LENGTH,
|
|
31
31
|
TOOL_FAILURE_CODES,
|
|
32
|
+
WAIT_END_CLOSED,
|
|
33
|
+
WAIT_END_OPEN,
|
|
34
|
+
WAIT_END_PATH,
|
|
32
35
|
degradedLine,
|
|
33
36
|
isDecisionStoppedReply,
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
isRecord,
|
|
38
|
+
truncateLine,
|
|
39
|
+
waitEndAnswered
|
|
40
|
+
} from "./chunk-AYP4GE3X.js";
|
|
36
41
|
|
|
37
42
|
// src/api.ts
|
|
38
43
|
import { randomUUID } from "crypto";
|
|
@@ -319,7 +324,44 @@ var sleepUnlessAborted = (ms, signal) => new Promise((resolve) => {
|
|
|
319
324
|
signal?.addEventListener("abort", wake, { once: true });
|
|
320
325
|
});
|
|
321
326
|
var boundedBy = (timeoutMs, signal) => signal ? AbortSignal.any([AbortSignal.timeout(timeoutMs), signal]) : AbortSignal.timeout(timeoutMs);
|
|
322
|
-
var
|
|
327
|
+
var WITHDRAW_AT_THE_DEADLINE = { kind: "withdraw" };
|
|
328
|
+
var LEFT_OPEN = { answered: false, status: "left_open" };
|
|
329
|
+
var isLeftOpen = (answer) => answer.status === LEFT_OPEN.status;
|
|
330
|
+
var WAIT_END_TIMEOUT_MS = 2e3;
|
|
331
|
+
var isAnswerValue = (value) => typeof value === "string" && value.length > 0;
|
|
332
|
+
var isAbsentOrNote = (note) => note === void 0 || typeof note === "string";
|
|
333
|
+
var answeredWaitEndOf = (body) => isAnswerValue(body.value) && isAbsentOrNote(body.note) ? waitEndAnswered(body.value, body.note ?? null) : WAIT_END_CLOSED;
|
|
334
|
+
var readWaitEndReply = (body) => {
|
|
335
|
+
if (!isRecord(body)) return WAIT_END_CLOSED;
|
|
336
|
+
switch (body.kind) {
|
|
337
|
+
case "answered":
|
|
338
|
+
return answeredWaitEndOf(body);
|
|
339
|
+
case "open":
|
|
340
|
+
return WAIT_END_OPEN;
|
|
341
|
+
default:
|
|
342
|
+
return WAIT_END_CLOSED;
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
var endWait = async (apiKey, request, signal) => {
|
|
346
|
+
try {
|
|
347
|
+
return readWaitEndReply(await postAgentRequest(apiKey, WAIT_END_PATH, request, WAIT_END_TIMEOUT_MS, signal));
|
|
348
|
+
} catch (error) {
|
|
349
|
+
if (!signal?.aborted) void reportClientError({ kind: clientErrorKindOf(error), code: "wait_end_failed" });
|
|
350
|
+
return WAIT_END_CLOSED;
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
var answerOfAnEndedWait = (reply) => reply.note === void 0 ? { answered: true, value: reply.value } : { answered: true, value: reply.value, note: reply.note };
|
|
354
|
+
var settleAnEndedWait = (reply, withdraw, signal) => {
|
|
355
|
+
if (reply.kind === "answered") return Promise.resolve(answerOfAnEndedWait(reply));
|
|
356
|
+
if (signal?.aborted) return Promise.resolve(ABANDONED_WAIT);
|
|
357
|
+
return reply.kind === "open" ? Promise.resolve(LEFT_OPEN) : withdraw();
|
|
358
|
+
};
|
|
359
|
+
var settleAtTheDeadline = async (apiKey, correlationId, atDeadline, withdraw, signal) => {
|
|
360
|
+
if (atDeadline.kind === "withdraw") return withdraw();
|
|
361
|
+
const reply = await endWait(apiKey, { correlationId, toolUseId: atDeadline.toolUseId, machineId: atDeadline.machineId }, signal);
|
|
362
|
+
return settleAnEndedWait(reply, withdraw, signal);
|
|
363
|
+
};
|
|
364
|
+
var pollForAnswer = async (apiKey, correlationId, deadlineMs, pollInterval = 2e3, signal, atDeadline = WITHDRAW_AT_THE_DEADLINE) => {
|
|
323
365
|
let failures = 0;
|
|
324
366
|
let waitedThroughAnOutage = false;
|
|
325
367
|
while (Date.now() < deadlineMs) {
|
|
@@ -346,28 +388,30 @@ var pollForAnswer = async (apiKey, correlationId, deadlineMs, pollInterval = 2e3
|
|
|
346
388
|
await sleepUnlessAborted(Math.min(pollInterval, Math.max(0, deadlineMs - Date.now())), signal);
|
|
347
389
|
}
|
|
348
390
|
if (signal?.aborted) return ABANDONED_WAIT;
|
|
349
|
-
|
|
391
|
+
const withdraw = () => waitedThroughAnOutage ? withdrawAfterAFailedPoll(apiKey, correlationId) : withdrawQuestion(apiKey, correlationId);
|
|
392
|
+
return settleAtTheDeadline(apiKey, correlationId, atDeadline, withdraw, signal);
|
|
350
393
|
};
|
|
351
394
|
var CANCEL_QUESTION_TIMEOUT_MS = 4e3;
|
|
352
395
|
var cancelQuestion = async (apiKey, correlationId, signal, baseUrl) => {
|
|
353
396
|
return callMcpTool(apiKey, "cancel_question", { correlationId }, { signal, timeoutMs: CANCEL_QUESTION_TIMEOUT_MS, maxRetries: 1, baseUrl });
|
|
354
397
|
};
|
|
398
|
+
var WITHDRAW_READ_TIMEOUT_MS = 2e3;
|
|
355
399
|
var withdrawQuestion = async (apiKey, correlationId, transport = { cancelQuestion, waitForAnswer }) => {
|
|
356
400
|
try {
|
|
357
|
-
const cancelled = await transport.cancelQuestion(apiKey, correlationId, AbortSignal.timeout(
|
|
401
|
+
const cancelled = await transport.cancelQuestion(apiKey, correlationId, AbortSignal.timeout(CANCEL_QUESTION_TIMEOUT_MS));
|
|
358
402
|
if (!cancelled || isDecisionStopped(cancelled)) return STOPPED;
|
|
359
403
|
if (cancelled.cancelled === true) return { answered: false, status: "withdrawn" };
|
|
360
|
-
const late = await transport.waitForAnswer(apiKey, correlationId, 1e3, AbortSignal.timeout(
|
|
404
|
+
const late = await transport.waitForAnswer(apiKey, correlationId, 1e3, AbortSignal.timeout(WITHDRAW_READ_TIMEOUT_MS));
|
|
361
405
|
if (late.answered || isDecisionStopped(late)) return late;
|
|
362
406
|
return late.status === "expired" ? { answered: false, status: "withdrawn" } : STOPPED;
|
|
363
407
|
} catch {
|
|
364
408
|
return STOPPED;
|
|
365
409
|
}
|
|
366
410
|
};
|
|
367
|
-
var waitForQuestion = async (apiKey, question, deadlineMs, pollInterval = 2e3, signal) => {
|
|
411
|
+
var waitForQuestion = async (apiKey, question, deadlineMs, pollInterval = 2e3, signal, atDeadline = WITHDRAW_AT_THE_DEADLINE) => {
|
|
368
412
|
if (isDecisionStopped(question) || question.answered) return { ...question, answered: !!question.answered };
|
|
369
413
|
if (question.status === "expired") return STOPPED;
|
|
370
|
-
return isAwayPaused(question) || isLocalQuestionHandoff(question) ? withdrawQuestion(apiKey, question.correlationId) : pollForAnswer(apiKey, question.correlationId, deadlineMs, pollInterval, signal);
|
|
414
|
+
return isAwayPaused(question) || isLocalQuestionHandoff(question) ? withdrawQuestion(apiKey, question.correlationId) : pollForAnswer(apiKey, question.correlationId, deadlineMs, pollInterval, signal, atDeadline);
|
|
371
415
|
};
|
|
372
416
|
var OPEN_QUESTION_CLOSED = { answered: false, status: "withdrawn" };
|
|
373
417
|
var OPEN_QUESTION_LATE_ANSWER_HOLD_MS = 1e3;
|
|
@@ -420,12 +464,12 @@ var sendNotification = async (apiKey, params, timeoutMs = 15e3, signal) => {
|
|
|
420
464
|
};
|
|
421
465
|
var GATE_PATH = "/api/agent/gate";
|
|
422
466
|
var BLOCKED_ACTION_CLAIM_PATH = "/api/agent/blocked-action/claim";
|
|
423
|
-
var postAgentRequest = async (apiKey, path, body, timeoutMs) => {
|
|
467
|
+
var postAgentRequest = async (apiKey, path, body, timeoutMs, signal) => {
|
|
424
468
|
const response = await fetchAsCredential(apiKey, `${getBaseUrl()}${path}`, {
|
|
425
469
|
method: "POST",
|
|
426
470
|
headers: { "Content-Type": "application/json", Authorization: `Bearer ${apiKey}` },
|
|
427
471
|
body: JSON.stringify(body),
|
|
428
|
-
signal:
|
|
472
|
+
signal: boundedBy(timeoutMs, signal)
|
|
429
473
|
});
|
|
430
474
|
if (!response.ok) throw new Error(`${path} rejected (${response.status})`);
|
|
431
475
|
return response.json();
|
|
@@ -474,9 +518,14 @@ export {
|
|
|
474
518
|
isTransientWaitFailure,
|
|
475
519
|
waitRetryPauseMs,
|
|
476
520
|
sleepUnlessAborted,
|
|
521
|
+
WITHDRAW_AT_THE_DEADLINE,
|
|
522
|
+
LEFT_OPEN,
|
|
523
|
+
isLeftOpen,
|
|
524
|
+
WAIT_END_TIMEOUT_MS,
|
|
477
525
|
pollForAnswer,
|
|
478
526
|
CANCEL_QUESTION_TIMEOUT_MS,
|
|
479
527
|
cancelQuestion,
|
|
528
|
+
WITHDRAW_READ_TIMEOUT_MS,
|
|
480
529
|
withdrawQuestion,
|
|
481
530
|
waitForQuestion,
|
|
482
531
|
reportFailedQuestionWithdrawal,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSseMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-32YARQJC.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PJHYFHP4.js";
|
|
7
7
|
import {
|
|
8
8
|
NPX_LATEST_COMMAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MWKKUBHQ.js";
|
|
10
10
|
|
|
11
11
|
// src/mcp-stdio-bridge.ts
|
|
12
12
|
var MCP_BRIDGE_BINARY = "pushary-mcp";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WDPIZXCZ.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AYP4GE3X.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
notificationAnswerStep
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-INUW2CXK.js";
|
|
4
4
|
import {
|
|
5
5
|
matchMacAccountStep,
|
|
6
6
|
retryAgentCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CTJRWP6Y.js";
|
|
8
8
|
import {
|
|
9
9
|
canChangeApprovalSettings
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RVIYAQC7.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-MWKKUBHQ.js";
|
|
18
18
|
import {
|
|
19
19
|
LATEST_DIST_TAG
|
|
20
20
|
} from "./chunk-UQTQ6HPO.js";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-WHB622LP.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureDaemonRunning
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EEHTVBKI.js";
|
|
7
7
|
import {
|
|
8
8
|
hookOwnerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YRGDHBS5.js";
|
|
10
10
|
import {
|
|
11
11
|
hookMeaning
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Z2DAWG5U.js";
|
|
13
13
|
import {
|
|
14
14
|
buildTranscriptRecords,
|
|
15
15
|
changedRecipientsMessage,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
uploadTranscriptRecords,
|
|
25
25
|
verifyAnchoredRecipients,
|
|
26
26
|
wrapSessionKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-M2P5KFP5.js";
|
|
28
28
|
import {
|
|
29
29
|
external_exports,
|
|
30
30
|
ownedOnlyByThisUser,
|
|
@@ -33,22 +33,22 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
transcriptEnvironmentPreference,
|
|
35
35
|
transcriptsEnabled
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3JXSIPLF.js";
|
|
37
37
|
import {
|
|
38
38
|
fetchAsCredential
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PJHYFHP4.js";
|
|
40
40
|
import {
|
|
41
41
|
readTranscriptPreference
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-ZTNGM6NU.js";
|
|
43
43
|
import {
|
|
44
44
|
claudeConfigDir,
|
|
45
45
|
codexHome,
|
|
46
46
|
pusharyDir
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-3NTAU6DN.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiKey,
|
|
50
50
|
getBaseUrl
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ZPHPNTGW.js";
|
|
52
52
|
import {
|
|
53
53
|
writeJsonAtomic,
|
|
54
54
|
writeJsonAtomicDurable
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
isHookSource,
|
|
61
61
|
isRecord,
|
|
62
62
|
redactSecretsFromContent
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-AYP4GE3X.js";
|
|
64
64
|
|
|
65
65
|
// src/transcript-registration.ts
|
|
66
66
|
import { createHash as createHash4 } from "crypto";
|
|
@@ -10,17 +10,17 @@ import {
|
|
|
10
10
|
openCodePluginArgv,
|
|
11
11
|
openCodePluginModule,
|
|
12
12
|
renderOpenCodePlugin
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WIKPDEOR.js";
|
|
14
14
|
import {
|
|
15
15
|
compatibleConfigFile
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-N2L7E5NE.js";
|
|
17
17
|
import {
|
|
18
18
|
hookOwnerOf,
|
|
19
19
|
hookOwnerOfCommands
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YRGDHBS5.js";
|
|
21
21
|
import {
|
|
22
22
|
AGENT_CHOICES
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-I4XCADTT.js";
|
|
24
24
|
import {
|
|
25
25
|
OPENCODE_INSTRUCTIONS_LABEL,
|
|
26
26
|
bridgeStub,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
resolveBridgeStub,
|
|
35
35
|
vscodePluginDir,
|
|
36
36
|
windowsNodeLauncherFor
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-3NTAU6DN.js";
|
|
38
38
|
import {
|
|
39
39
|
readJsonSafe
|
|
40
40
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
OPENCODE_APPROVAL_EVENT,
|
|
45
45
|
hookCompatibleProfile,
|
|
46
46
|
isRecord
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-AYP4GE3X.js";
|
|
48
48
|
|
|
49
49
|
// src/opencode-config.ts
|
|
50
50
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|