pushary 1.9.282 → 1.9.283
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-WBSDPSHN.js → api-OJRU3MYI.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 +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 +30 -30
- package/dist/bin/pushary-display-hook.js +2 -3
- package/dist/bin/pushary-doctor.js +61 -68
- 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 +31 -31
- 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 +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 +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 +67 -30
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-7WCBGOXC.js → chunk-26RKJL2X.js} +2 -2
- package/dist/{chunk-4EJ6BFQ6.js → chunk-2JWCBGFX.js} +3 -3
- package/dist/{chunk-SCR7JFIZ.js → chunk-3B3UE65E.js} +12 -12
- package/dist/{chunk-LE2GNKVF.js → chunk-4RPG3SFC.js} +3 -3
- package/dist/{chunk-DI7VQ4PL.js → chunk-4ZWNL3CK.js} +1 -1
- package/dist/{chunk-URYZAUMK.js → chunk-5RSXB22M.js} +4 -4
- package/dist/{chunk-PATTVCJS.js → chunk-5YSFXK2C.js} +2 -2
- package/dist/{chunk-JKMX5HMU.js → chunk-6GCGRTR7.js} +1 -1
- package/dist/{chunk-GBMURSB4.js → chunk-6MUWWEYX.js} +7 -7
- package/dist/{chunk-7FUEG6WT.js → chunk-6RAIYGKT.js} +1 -1
- package/dist/{chunk-GS6XPW45.js → chunk-6VK43QVL.js} +7 -7
- package/dist/{chunk-5WZAL3IG.js → chunk-73SEBA5G.js} +4 -4
- package/dist/{chunk-YQNGHX3P.js → chunk-7OOQJD33.js} +3 -3
- package/dist/{chunk-7DZ7UZQE.js → chunk-7PRPLYOT.js} +31 -6
- package/dist/{chunk-L25W4SZ2.js → chunk-7VL6QZ3C.js} +3 -3
- package/dist/{chunk-GOMIXT5C.js → chunk-7Y3NHQSD.js} +5 -5
- package/dist/{chunk-IJOGKO3Z.js → chunk-AIBGURF2.js} +1 -1
- package/dist/{chunk-67D6KDPJ.js → chunk-AKUQLREQ.js} +4 -4
- package/dist/{chunk-YM3TSHT2.js → chunk-AOLCAXRB.js} +1 -1
- package/dist/{chunk-ZL46IS5W.js → chunk-ATWYNEN4.js} +1 -1
- package/dist/{chunk-ODSUVMII.js → chunk-B7SK3EXB.js} +5 -5
- package/dist/{chunk-6SJ3YYPS.js → chunk-CA7VX4KS.js} +2 -2
- package/dist/{chunk-NQCIACTR.js → chunk-CBA4AVFT.js} +4 -4
- package/dist/{chunk-XV54WWNB.js → chunk-CPNPPYQL.js} +3 -3
- package/dist/{chunk-DGIMLJ7N.js → chunk-CWQU75DS.js} +3 -3
- package/dist/{chunk-DPTI6ZTZ.js → chunk-DTYSJP6K.js} +2 -2
- package/dist/{chunk-M4B3D76U.js → chunk-E4WNMH33.js} +1 -1
- package/dist/{chunk-3I6Z6YKA.js → chunk-EANJH5FQ.js} +5 -5
- package/dist/{chunk-I5RNSFXB.js → chunk-EDVQWYSU.js} +4 -4
- package/dist/{chunk-PUDKDFOZ.js → chunk-EGZUBQL6.js} +1 -1
- package/dist/{chunk-TCQ3SHEC.js → chunk-EUO5U5V7.js} +6 -6
- package/dist/{chunk-XKTBFWO2.js → chunk-FIAXP3LF.js} +1 -1
- package/dist/{chunk-VSF3OSWI.js → chunk-FNENGMPK.js} +1 -1
- package/dist/{chunk-JP545GB4.js → chunk-FQWIGDXG.js} +1 -1
- package/dist/{chunk-AGBCUPRE.js → chunk-GS4D3NTI.js} +5 -5
- package/dist/{chunk-KKPI7MVG.js → chunk-HKXFHEB4.js} +4 -4
- package/dist/{chunk-QGQA4VUR.js → chunk-HX3RPHIH.js} +8 -8
- package/dist/{chunk-VY7Q5MEQ.js → chunk-I67ZGYEY.js} +5 -5
- package/dist/{chunk-LKL7VIWF.js → chunk-IASJJRQV.js} +3 -3
- package/dist/{chunk-Q5MYEDCP.js → chunk-IP6BVZZL.js} +6 -6
- package/dist/{chunk-DWL2XZNZ.js → chunk-IPJRN56U.js} +5 -5
- package/dist/{chunk-YEQF4H76.js → chunk-IX2DKVF2.js} +4 -4
- package/dist/{chunk-O6LVUSRY.js → chunk-J2UDVVCB.js} +6 -6
- package/dist/{chunk-DLRZZHXC.js → chunk-JHYVJYGR.js} +6 -6
- package/dist/{chunk-2562EGWD.js → chunk-JP7RRADP.js} +1 -1
- package/dist/{chunk-I2OOSUJN.js → chunk-JPSCKMYH.js} +1 -1
- package/dist/{chunk-MYXHCXD3.js → chunk-JSYYVEVW.js} +4 -4
- package/dist/{chunk-2SE3TSWT.js → chunk-JWMDRKAO.js} +10 -10
- package/dist/{chunk-JUZC524C.js → chunk-K4YUNJDY.js} +5 -5
- package/dist/{chunk-OVUJLLPD.js → chunk-KMMO3K2C.js} +27 -22
- package/dist/{chunk-NL4NVNSD.js → chunk-L2BJVSVI.js} +2 -2
- package/dist/{chunk-R5P25UN2.js → chunk-M3MD5Y2O.js} +5 -5
- package/dist/{chunk-ENTFHIJ5.js → chunk-M6T24IVX.js} +1 -1
- package/dist/{chunk-KV65OAIF.js → chunk-N6RX3ZWB.js} +1 -1
- package/dist/{chunk-JXVZO2TC.js → chunk-NWFO2WGB.js} +2 -2
- package/dist/{chunk-DEGZHZLH.js → chunk-OOSOLBO2.js} +1 -1
- package/dist/{chunk-OPWXKDXN.js → chunk-OQVYOMNI.js} +4 -4
- package/dist/{chunk-FYGOACNH.js → chunk-OTIXTZA6.js} +2 -2
- package/dist/{chunk-RI6C7WBQ.js → chunk-OYRQZWXW.js} +2 -2
- package/dist/{chunk-Z7F7SITX.js → chunk-PUNIACRA.js} +4 -4
- package/dist/{chunk-QG742PJG.js → chunk-QSPYUDHD.js} +1 -1
- package/dist/{chunk-USRBNJJX.js → chunk-QU2NSBXD.js} +1 -1
- package/dist/{chunk-36CZVHOH.js → chunk-RJ5HUNEE.js} +1 -1
- package/dist/{chunk-7CIMT2QH.js → chunk-SAFK3BQB.js} +1 -1
- package/dist/{chunk-3FCGMTG2.js → chunk-SIP2BFVS.js} +6 -6
- package/dist/{chunk-HJ25OOZL.js → chunk-SL6ZTQA2.js} +1 -1
- package/dist/{chunk-G6EN7DLG.js → chunk-SWGR226D.js} +10 -10
- package/dist/{chunk-6TC6Y5FE.js → chunk-T5D3F6ME.js} +5 -5
- package/dist/{chunk-SIZMK3SF.js → chunk-TBCHTCA2.js} +1 -1
- package/dist/{chunk-RECYGQIM.js → chunk-TVQWBXV2.js} +16 -16
- package/dist/{chunk-7OV4MW6B.js → chunk-UIOTVHQB.js} +2 -2
- package/dist/{chunk-3AKD2IMA.js → chunk-UOABAWQ4.js} +6 -6
- package/dist/{chunk-T2JHF3E4.js → chunk-VO22G4MS.js} +7 -7
- package/dist/{chunk-MZPWMXPX.js → chunk-VYLJWG3B.js} +2 -10
- package/dist/{chunk-HPYVOBVO.js → chunk-XC2O4MA3.js} +1 -1
- package/dist/chunk-XGWKMWKM.js +42 -0
- package/dist/{chunk-KSHM2X7A.js → chunk-XKSIMUZM.js} +2 -2
- package/dist/{chunk-D35MHKUM.js → chunk-XOZZ7LFC.js} +2 -2
- package/dist/{chunk-VYMBV6M5.js → chunk-Y5INUJ2S.js} +3 -3
- package/dist/{chunk-7CCJLPFF.js → chunk-YARDFZND.js} +2 -2
- package/dist/{chunk-H5BATWAL.js → chunk-YG5TIW73.js} +3 -3
- package/dist/{chunk-QXPI7LOZ.js → chunk-YSR7QVMN.js} +3 -3
- package/dist/{chunk-2NNCVW26.js → chunk-ZUHELFIM.js} +3 -3
- package/dist/{codex-app-cards-switch-DGTEKXMX.js → codex-app-cards-switch-2ZVORWWV.js} +11 -11
- package/dist/{codex-card-routing-ESKPXKXS.js → codex-card-routing-PLD74MXM.js} +2 -2
- package/dist/{codex-desktop-launch-HCEBT2IM.js → codex-desktop-launch-BDR7I3AT.js} +3 -3
- package/dist/{codex-session-launch-PXWW7EDP.js → codex-session-launch-HZJWXLWT.js} +21 -21
- package/dist/{config-PFH6OQ6M.js → config-DY2KBMHL.js} +3 -3
- package/dist/{global-upgrade-UU3H3EFW.js → global-upgrade-H4CHC3PX.js} +9 -9
- package/dist/{identity-JHCLWMLI.js → identity-BEGPK37L.js} +4 -4
- package/dist/{live-capabilities-3K6DM4A3.js → live-capabilities-W4YZO6AH.js} +4 -4
- package/dist/{paths-TMTWXB5B.js → paths-J7L3IDOW.js} +3 -3
- package/dist/{reapply-RT4T77RQ.js → reapply-3ECJVIWC.js} +34 -34
- package/dist/src/index.js +33 -33
- package/dist/{upgrade-lock-NGYIAYBZ.js → upgrade-lock-UPLYK4CW.js} +4 -4
- package/dist/{usage-LGGUWLJM.js → usage-ZDDF7U5L.js} +3 -3
- package/package.json +1 -1
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
} from "./chunk-3PSNUHC5.js";
|
|
5
5
|
import {
|
|
6
6
|
getMachineId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JPSCKMYH.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DTYSJP6K.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XKSIMUZM.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveGlobalBinary,
|
|
16
16
|
withoutNpmInstallConsent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HKXFHEB4.js";
|
|
18
18
|
import {
|
|
19
19
|
getApiKey
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XOZZ7LFC.js";
|
|
21
21
|
import {
|
|
22
22
|
readJsonSafe,
|
|
23
23
|
writeFileAtomic,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "./chunk-CXQWDQCJ.js";
|
|
34
34
|
import {
|
|
35
35
|
isRecord
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-4RPG3SFC.js";
|
|
37
37
|
|
|
38
38
|
// src/daemon-entry-guard.ts
|
|
39
39
|
import { mkdirSync, readFileSync } from "fs";
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CA7VX4KS.js";
|
|
4
4
|
import {
|
|
5
5
|
declinedAgentsFile,
|
|
6
6
|
readDeclinedAgents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UIOTVHQB.js";
|
|
8
8
|
import {
|
|
9
9
|
liveCursorGateCoverage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YG5TIW73.js";
|
|
11
11
|
import {
|
|
12
12
|
OPENCODE_HOOK_BINARY,
|
|
13
13
|
openCodeConfigDir,
|
|
14
14
|
openCodePluginFile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6MUWWEYX.js";
|
|
16
16
|
import {
|
|
17
17
|
openCodePluginArgv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QSPYUDHD.js";
|
|
19
19
|
import {
|
|
20
20
|
compatibleConfigFile,
|
|
21
21
|
compatibleHookEvents,
|
|
22
22
|
grokHome
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IP6BVZZL.js";
|
|
24
24
|
import {
|
|
25
25
|
parseConfigDocument
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-SL6ZTQA2.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_HOOKS_KEY_PATH,
|
|
29
29
|
GEMINI_HOOK_BINARY,
|
|
30
30
|
GEMINI_HOOK_EVENTS,
|
|
31
31
|
hooksAt
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-IX2DKVF2.js";
|
|
33
33
|
import {
|
|
34
34
|
CODEX_EARLIER_APPROVAL_MATCHERS,
|
|
35
35
|
CODEX_HOOK_BINARY,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
parseHookArgv,
|
|
58
58
|
parseHookCommand,
|
|
59
59
|
supportedClaudeEvents
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-XKSIMUZM.js";
|
|
61
61
|
import {
|
|
62
62
|
readRegularJsonFile,
|
|
63
63
|
readRegularTextFile
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
OPENCODE_APPROVAL_EVENT,
|
|
72
72
|
isRecord,
|
|
73
73
|
matcherMatchesEveryCall
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-4RPG3SFC.js";
|
|
75
75
|
|
|
76
76
|
// src/hook-wiring.ts
|
|
77
77
|
import { createHash } from "crypto";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-73SEBA5G.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YARDFZND.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YSR7QVMN.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-DTYSJP6K.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4RPG3SFC.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -7,30 +7,30 @@ import {
|
|
|
7
7
|
restorePhoneApprovals,
|
|
8
8
|
setAsidePhoneApprovalsOfOtherCalls,
|
|
9
9
|
takePhoneApproval
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OTIXTZA6.js";
|
|
11
11
|
import {
|
|
12
12
|
defersToNativeMode
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AIBGURF2.js";
|
|
14
14
|
import {
|
|
15
15
|
reportMachineDenial
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EDVQWYSU.js";
|
|
17
17
|
import {
|
|
18
18
|
claudeSettingsLocationFor,
|
|
19
19
|
readClaudePermissionRules
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CA7VX4KS.js";
|
|
21
21
|
import {
|
|
22
22
|
isGatingMoment,
|
|
23
23
|
recordKeylessMoment
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XC2O4MA3.js";
|
|
25
25
|
import {
|
|
26
26
|
isAdmitted,
|
|
27
27
|
readAdmissionRules
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-IPJRN56U.js";
|
|
29
29
|
import {
|
|
30
30
|
activeHookSource,
|
|
31
31
|
activeIdentity,
|
|
32
32
|
namedSource
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-IP6BVZZL.js";
|
|
34
34
|
import {
|
|
35
35
|
DEFAULT_SESSION,
|
|
36
36
|
allow,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
storedWaitDeadline,
|
|
72
72
|
sweepFilesOlderThan,
|
|
73
73
|
userScope
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-KMMO3K2C.js";
|
|
75
75
|
import {
|
|
76
76
|
UNNAMED_ACTION,
|
|
77
77
|
deriveAction,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
patchDeletesFiles,
|
|
83
83
|
permissionDeniedAction,
|
|
84
84
|
scopePathFor
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-JP7RRADP.js";
|
|
86
86
|
import {
|
|
87
87
|
isDeferAnswer
|
|
88
88
|
} from "./chunk-Z25VDYAL.js";
|
|
@@ -99,30 +99,30 @@ import {
|
|
|
99
99
|
sendNotification,
|
|
100
100
|
waitForQuestion,
|
|
101
101
|
withdrawQuestion
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-VO22G4MS.js";
|
|
103
103
|
import {
|
|
104
104
|
branchFor,
|
|
105
105
|
projectNameFor,
|
|
106
106
|
repoKeyFor,
|
|
107
107
|
repositoryScopeFor
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-AOLCAXRB.js";
|
|
109
109
|
import {
|
|
110
110
|
getMachineId
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-JPSCKMYH.js";
|
|
112
112
|
import {
|
|
113
113
|
POSTTOOLUSE_MIRRORED_TOOLS
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-XKSIMUZM.js";
|
|
115
115
|
import {
|
|
116
116
|
getApiKey,
|
|
117
117
|
getBaseUrl,
|
|
118
118
|
isMalformedApiKeyError
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-XOZZ7LFC.js";
|
|
120
120
|
import {
|
|
121
121
|
writeFileAtomic
|
|
122
122
|
} from "./chunk-PM2NRK6Y.js";
|
|
123
123
|
import {
|
|
124
124
|
NPX_LATEST_COMMAND
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-QU2NSBXD.js";
|
|
126
126
|
import {
|
|
127
127
|
AGENT_QUESTION_STRATEGY,
|
|
128
128
|
AGENT_QUESTION_TOOL,
|
|
@@ -194,7 +194,7 @@ import {
|
|
|
194
194
|
terminalStaysLiveForTheCall,
|
|
195
195
|
timeoutActionWithoutLocalPrompt,
|
|
196
196
|
unapprovedScopeReason
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-4RPG3SFC.js";
|
|
198
198
|
|
|
199
199
|
// src/terminal-answer-watch.ts
|
|
200
200
|
import { closeSync, openSync, readSync, statSync } from "fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XKSIMUZM.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-4RPG3SFC.js";
|
|
17
17
|
|
|
18
18
|
// src/declined-agents-file.ts
|
|
19
19
|
import { join } from "path";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAsCredential
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FIAXP3LF.js";
|
|
4
4
|
import {
|
|
5
5
|
keyCheckFromResponse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YSR7QVMN.js";
|
|
7
7
|
import {
|
|
8
8
|
installNetworkDefaults
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7OOQJD33.js";
|
|
10
10
|
import {
|
|
11
11
|
MacAppUnreachableError,
|
|
12
12
|
macAppReplyError,
|
|
13
13
|
requestThroughMacApp
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XKSIMUZM.js";
|
|
15
15
|
import {
|
|
16
16
|
getBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XOZZ7LFC.js";
|
|
18
18
|
import {
|
|
19
19
|
isRecord,
|
|
20
20
|
isToolErrorResult,
|
|
21
21
|
toolFailureCodeOfResult
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4RPG3SFC.js";
|
|
23
23
|
|
|
24
24
|
// src/retry.ts
|
|
25
25
|
var isRetryable = (err) => {
|
|
@@ -8,26 +8,26 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UOABAWQ4.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FIAXP3LF.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7OOQJD33.js";
|
|
19
19
|
import {
|
|
20
20
|
keyPrefix
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DTYSJP6K.js";
|
|
22
22
|
import {
|
|
23
23
|
MacAppRefusedError,
|
|
24
24
|
MacAppUnreachableError,
|
|
25
25
|
clientReportClaims
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XKSIMUZM.js";
|
|
27
27
|
import {
|
|
28
28
|
getApiKey,
|
|
29
29
|
getBaseUrl
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-XOZZ7LFC.js";
|
|
31
31
|
import {
|
|
32
32
|
getPackageVersion
|
|
33
33
|
} from "./chunk-CXQWDQCJ.js";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
responseRejectsCredential,
|
|
58
58
|
truncateLine,
|
|
59
59
|
waitEndAnswered
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-4RPG3SFC.js";
|
|
61
61
|
|
|
62
62
|
// src/api.ts
|
|
63
63
|
import { randomUUID } from "crypto";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isApprovalMode,
|
|
3
|
-
isRecord
|
|
4
|
-
|
|
5
|
-
} from "./chunk-LE2GNKVF.js";
|
|
3
|
+
isRecord
|
|
4
|
+
} from "./chunk-4RPG3SFC.js";
|
|
6
5
|
|
|
7
6
|
// src/cli/settings-response.ts
|
|
8
7
|
var isFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value);
|
|
@@ -12,16 +11,10 @@ var modeResponse = (value) => {
|
|
|
12
11
|
if (!isRecord(value) || value.override !== null && !isModeOverride(value.override) || value.permanent !== void 0 && typeof value.permanent !== "boolean") throw new Error("Invalid mode response");
|
|
13
12
|
return { override: value.override, ...typeof value.permanent === "boolean" ? { permanent: value.permanent } : {} };
|
|
14
13
|
};
|
|
15
|
-
var isWaitPolicy = (value) => isRecord(value) && typeof value.tool === "string" && isApprovalMode(value.mode) && isTimeoutAction(value.timeoutAction) && isWaitSeconds(value.timeoutSeconds) && isWaitSeconds(value.pushFirstSeconds);
|
|
16
14
|
var waitWindowResponse = (value) => {
|
|
17
15
|
if (!isRecord(value) || !isWaitSeconds(value.defaultPushFirstSeconds)) throw new Error("Invalid wait response");
|
|
18
16
|
return value.defaultPushFirstSeconds;
|
|
19
17
|
};
|
|
20
|
-
var waitResponse = (value) => {
|
|
21
|
-
const defaultPushFirstSeconds = waitWindowResponse(value);
|
|
22
|
-
if (!isRecord(value) || !Array.isArray(value.policies) || !value.policies.every(isWaitPolicy) || value.modeOverride !== null && !isApprovalMode(value.modeOverride)) throw new Error("Invalid wait response");
|
|
23
|
-
return { policies: value.policies, defaultPushFirstSeconds, modeOverride: value.modeOverride };
|
|
24
|
-
};
|
|
25
18
|
var isSuggestion = (value) => isRecord(value) && typeof value.id === "string" && typeof value.toolPattern === "string" && (value.kind === "auto_approve" || value.kind === "always_deny") && isFiniteNumber(value.evidenceApproved) && isFiniteNumber(value.evidenceDenied) && isFiniteNumber(value.windowDays);
|
|
26
19
|
var suggestionsResponse = (value) => {
|
|
27
20
|
if (!isRecord(value) || !Array.isArray(value.suggestions) || !value.suggestions.every(isSuggestion)) throw new Error("Invalid suggestions response");
|
|
@@ -31,6 +24,5 @@ var suggestionsResponse = (value) => {
|
|
|
31
24
|
export {
|
|
32
25
|
modeResponse,
|
|
33
26
|
waitWindowResponse,
|
|
34
|
-
waitResponse,
|
|
35
27
|
suggestionsResponse
|
|
36
28
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
STOPPED_FROM_PUSHARY_LADDER,
|
|
3
|
+
UNREAD_MODE_LADDER
|
|
4
|
+
} from "./chunk-7PRPLYOT.js";
|
|
5
|
+
import {
|
|
6
|
+
createIo
|
|
7
|
+
} from "./chunk-N6RX3ZWB.js";
|
|
8
|
+
import {
|
|
9
|
+
CLAUDE_CODE_AGENT,
|
|
10
|
+
fetchModeState,
|
|
11
|
+
getPolicy
|
|
12
|
+
} from "./chunk-KMMO3K2C.js";
|
|
13
|
+
|
|
14
|
+
// src/cli/hook-wait-ladder.ts
|
|
15
|
+
var readClaudeCodeHookWaitState = async (apiKey) => {
|
|
16
|
+
const modeState = await fetchModeState(apiKey);
|
|
17
|
+
const config = await getPolicy(apiKey, modeState, CLAUDE_CODE_AGENT.type, true);
|
|
18
|
+
return { modeState, config };
|
|
19
|
+
};
|
|
20
|
+
var MODE_STATUS_COMMAND = "pushary mode status";
|
|
21
|
+
var printWaitLadderNotice = (notice) => {
|
|
22
|
+
const { dim, yellow, cyan } = createIo();
|
|
23
|
+
const warn = yellow("!");
|
|
24
|
+
switch (notice.kind) {
|
|
25
|
+
case "stopped":
|
|
26
|
+
console.log(` ${warn} ${STOPPED_FROM_PUSHARY_LADDER} ${dim(`(${MODE_STATUS_COMMAND})`)}`);
|
|
27
|
+
return;
|
|
28
|
+
case "mode_unread":
|
|
29
|
+
console.log(` ${warn} ${UNREAD_MODE_LADDER} ${dim(`(${MODE_STATUS_COMMAND})`)}`);
|
|
30
|
+
return;
|
|
31
|
+
case "override_applied":
|
|
32
|
+
console.log(` ${warn} mode override active: ${cyan(notice.mode)}, applied below ${dim(`(your own mode; one session can still differ \xB7 ${MODE_STATUS_COMMAND})`)}`);
|
|
33
|
+
return;
|
|
34
|
+
case "own_rules":
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
readClaudeCodeHookWaitState,
|
|
41
|
+
printWaitLadderNotice
|
|
42
|
+
};
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
quoteIfNeeded,
|
|
7
7
|
shellDoubleQuoted
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HKXFHEB4.js";
|
|
9
9
|
import {
|
|
10
10
|
writeFileAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
PUSHARY_TOOL_PREFIX,
|
|
26
26
|
isRecord,
|
|
27
27
|
withHookHoldBudget
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-4RPG3SFC.js";
|
|
29
29
|
|
|
30
30
|
// src/setup/paths.ts
|
|
31
31
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-P6DUWKAO.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchAsCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FIAXP3LF.js";
|
|
8
8
|
import {
|
|
9
9
|
getBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XOZZ7LFC.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-4RPG3SFC.js";
|
|
19
19
|
|
|
20
20
|
// src/transcript-recipient-pin.ts
|
|
21
21
|
import { createHash } from "crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YSR7QVMN.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4RPG3SFC.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyHookExecutable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IX2DKVF2.js";
|
|
4
4
|
import {
|
|
5
5
|
bridgeResolvesToApp,
|
|
6
6
|
cursorUserHooks,
|
|
7
7
|
executableFileName,
|
|
8
8
|
isBridgeLocator,
|
|
9
9
|
liveBridgeProbe
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XKSIMUZM.js";
|
|
11
11
|
import {
|
|
12
12
|
atLeast,
|
|
13
13
|
parseVersion
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
isCursorHookPayload,
|
|
22
22
|
isRecord,
|
|
23
23
|
toolsCoveredByGateEntry
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4RPG3SFC.js";
|
|
25
25
|
|
|
26
26
|
// src/cursor-gate-registration.ts
|
|
27
27
|
import { dirname, isAbsolute, join, resolve } from "path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7OOQJD33.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XOZZ7LFC.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-4RPG3SFC.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
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6RAIYGKT.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-HKXFHEB4.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-4RPG3SFC.js";
|
|
29
29
|
|
|
30
30
|
// src/live-capabilities.ts
|
|
31
31
|
import { execFileSync } from "child_process";
|
|
@@ -24,25 +24,25 @@ import {
|
|
|
24
24
|
turnCodexAppCardsOff,
|
|
25
25
|
turnCodexAppCardsOn,
|
|
26
26
|
whyLaunchctlFailed
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-7Y3NHQSD.js";
|
|
28
|
+
import "./chunk-OQVYOMNI.js";
|
|
29
29
|
import "./chunk-XCEN33UP.js";
|
|
30
30
|
import "./chunk-QCGNGEGE.js";
|
|
31
31
|
import "./chunk-U4P4NDVB.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-SL6ZTQA2.js";
|
|
33
|
+
import "./chunk-SIP2BFVS.js";
|
|
34
34
|
import "./chunk-3PSNUHC5.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-JPSCKMYH.js";
|
|
36
|
+
import "./chunk-DTYSJP6K.js";
|
|
37
|
+
import "./chunk-XKSIMUZM.js";
|
|
38
38
|
import "./chunk-6ICPEJY5.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-HKXFHEB4.js";
|
|
40
|
+
import "./chunk-XOZZ7LFC.js";
|
|
41
41
|
import "./chunk-PM2NRK6Y.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-QU2NSBXD.js";
|
|
43
43
|
import "./chunk-BG4HHB7E.js";
|
|
44
44
|
import "./chunk-CXQWDQCJ.js";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-4RPG3SFC.js";
|
|
46
46
|
import "./chunk-MLKGABMK.js";
|
|
47
47
|
export {
|
|
48
48
|
CODEX_APP_CARDS_DIRECTORY,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deriveToolTarget
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JP7RRADP.js";
|
|
4
4
|
import {
|
|
5
5
|
TOOL_NAME_MAX_LENGTH,
|
|
6
6
|
codexElicitationToolName
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4RPG3SFC.js";
|
|
8
8
|
import "./chunk-MLKGABMK.js";
|
|
9
9
|
|
|
10
10
|
// src/codex-card-routing.ts
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
installedCodexApp,
|
|
13
13
|
shellQuoted,
|
|
14
14
|
writeDesktopProxy
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OQVYOMNI.js";
|
|
16
16
|
import "./chunk-XCEN33UP.js";
|
|
17
17
|
import {
|
|
18
18
|
CODEX_APP_LAUNCH_VARIABLE
|
|
19
19
|
} from "./chunk-U4P4NDVB.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-HKXFHEB4.js";
|
|
21
21
|
import "./chunk-BG4HHB7E.js";
|
|
22
22
|
import "./chunk-CXQWDQCJ.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-4RPG3SFC.js";
|
|
24
24
|
import "./chunk-MLKGABMK.js";
|
|
25
25
|
export {
|
|
26
26
|
CODEX_APP_LAUNCH_VARIABLE,
|