pushary 1.9.260 → 1.9.261
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 +4 -0
- package/dist/{api-IT47BCBQ.js → api-LAG3VCHN.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +29 -29
- package/dist/bin/pushary-bell.js +12 -12
- package/dist/bin/pushary-calls.js +15 -15
- package/dist/bin/pushary-claude.js +26 -26
- package/dist/bin/pushary-clean.js +40 -40
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +36 -36
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +36 -36
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +47 -47
- package/dist/bin/pushary-disconnect.js +31 -31
- package/dist/bin/pushary-doctor.js +48 -48
- 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 +23 -23
- package/dist/bin/pushary-logout.js +32 -32
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +28 -28
- package/dist/bin/pushary-opencode-bridge.js +22 -22
- package/dist/bin/pushary-opencode-hook.js +33 -33
- package/dist/bin/pushary-permission-denied-hook.js +35 -35
- package/dist/bin/pushary-permission-hook.js +36 -36
- package/dist/bin/pushary-post-hook.js +31 -31
- package/dist/bin/pushary-prompt-hook.js +28 -28
- package/dist/bin/pushary-session-end-hook.js +28 -28
- package/dist/bin/pushary-session-start-hook.js +40 -40
- 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 +37 -37
- package/dist/bin/pushary-stop-hook.js +28 -28
- package/dist/bin/pushary-stopfailure-hook.js +28 -28
- package/dist/bin/pushary-suggestions.js +16 -16
- package/dist/bin/pushary-transcript-register.js +17 -17
- package/dist/bin/pushary-transcripts.js +26 -26
- package/dist/bin/pushary-upgrade.js +48 -48
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-GFDMYQGZ.js → chunk-2VTIVLLK.js} +3 -3
- package/dist/{chunk-7BJQM5GI.js → chunk-3DW5OCS2.js} +1 -1
- package/dist/{chunk-JWBRJTPT.js → chunk-3PAM7BQJ.js} +5 -5
- package/dist/{chunk-R5AX37KI.js → chunk-4ARB3SYI.js} +1 -1
- package/dist/{chunk-6JTLZZ32.js → chunk-4SKEGBFV.js} +3 -3
- package/dist/{chunk-XYSD5VPQ.js → chunk-53LLER7E.js} +1 -1
- package/dist/{chunk-DDRT2WJA.js → chunk-5AL5W2HQ.js} +3 -3
- package/dist/{chunk-BJ3PEW5V.js → chunk-5G55TWT5.js} +5 -5
- package/dist/{chunk-2MRIJ7TX.js → chunk-5UHGILNO.js} +1 -1
- package/dist/{chunk-LO6EAFRS.js → chunk-65MRCZGE.js} +5 -5
- package/dist/{chunk-277GOA5S.js → chunk-6LJVKWV7.js} +5 -5
- package/dist/{chunk-KQVVDMUD.js → chunk-6RD6RNJY.js} +4 -4
- package/dist/{chunk-XGF3JB3R.js → chunk-AKGNLKZP.js} +2 -2
- package/dist/{chunk-PFGQS4QA.js → chunk-ATHP6SIZ.js} +2 -2
- package/dist/{chunk-63R6OZXQ.js → chunk-B4MK2ZX2.js} +3 -3
- package/dist/{chunk-CTG3F2D5.js → chunk-BBE7UITT.js} +6 -6
- package/dist/{chunk-S5GQCO2I.js → chunk-BLSGQHGW.js} +3 -3
- package/dist/{chunk-IJUHRBKA.js → chunk-CHKSE6TO.js} +1 -1
- package/dist/{chunk-DLJ4ZGPG.js → chunk-DN7PXEXE.js} +6 -6
- package/dist/{chunk-ZO65DKXG.js → chunk-EYQZC5IV.js} +2 -2
- package/dist/{chunk-6CI7KSDE.js → chunk-FJMZDIKP.js} +2 -2
- package/dist/{chunk-WAT7A5DW.js → chunk-FUXTIM33.js} +5 -5
- package/dist/{chunk-HUMF6AIT.js → chunk-GAKYGHUR.js} +1 -1
- package/dist/{chunk-E7XXDMHV.js → chunk-GAO33I7L.js} +4 -4
- package/dist/{chunk-QHF3SYTV.js → chunk-GC75Q5P2.js} +5 -5
- package/dist/chunk-GETSAD5F.js +129 -0
- package/dist/{chunk-EZI67YOT.js → chunk-GIK5P25V.js} +5 -5
- package/dist/{chunk-HUK6GLBG.js → chunk-GQHIUZRG.js} +12 -12
- package/dist/{chunk-5J5JO5UQ.js → chunk-H4O3CV5W.js} +4 -4
- package/dist/{chunk-C3EE5L6V.js → chunk-H6FDFP6W.js} +83 -28
- package/dist/{chunk-U7VDCUWD.js → chunk-HAOO2MNV.js} +10 -10
- package/dist/{chunk-CXSLZIBE.js → chunk-HJOXLNYN.js} +3 -3
- package/dist/{chunk-LDXGL2QH.js → chunk-I2DSQVSB.js} +1 -1
- package/dist/{chunk-ITRSDEVH.js → chunk-IC6ARAAT.js} +5 -5
- package/dist/{chunk-B3MTDMWH.js → chunk-IXXH6ZDQ.js} +2 -2
- package/dist/{chunk-3N2FP6BB.js → chunk-JC2E7D2W.js} +1 -1
- package/dist/{chunk-6FEJR64W.js → chunk-JOABO2PX.js} +5 -5
- package/dist/{chunk-HITBECZ4.js → chunk-K4PJXC32.js} +1 -1
- package/dist/{chunk-2D5MYSTO.js → chunk-KMADAVW6.js} +1 -1
- package/dist/{chunk-AWRQHXQK.js → chunk-KUVXFNHY.js} +10 -10
- package/dist/{chunk-7B27SJIZ.js → chunk-L6IKTYMZ.js} +6 -6
- package/dist/{chunk-2WLNEOT7.js → chunk-LH7NQSUC.js} +1 -1
- package/dist/{chunk-LG47IOFN.js → chunk-LIZZSMUD.js} +8 -8
- package/dist/{chunk-X27JRAYF.js → chunk-LRF4XS6M.js} +3 -3
- package/dist/{chunk-DC32YKE2.js → chunk-MGGN37IW.js} +3 -2
- package/dist/{chunk-JHBGO2PF.js → chunk-N2IP7IDG.js} +1 -1
- package/dist/{chunk-S3R4CZT3.js → chunk-NBEFOUMK.js} +3 -3
- package/dist/{chunk-QYQMIAYH.js → chunk-NKSOSZZU.js} +2 -2
- package/dist/{chunk-I7TBQ7S5.js → chunk-NLG5BY2M.js} +1 -1
- package/dist/{chunk-JBXHNML3.js → chunk-NTTHRLDQ.js} +1 -1
- package/dist/{chunk-JHPL4VBE.js → chunk-NVYEQLD5.js} +2 -2
- package/dist/{chunk-DRCBTY5T.js → chunk-PX2MOPB2.js} +1 -1
- package/dist/{chunk-GNY6Z2U2.js → chunk-Q3JHO3EJ.js} +1 -1
- package/dist/{chunk-OOWMON6B.js → chunk-QAS67ZJH.js} +1 -1
- package/dist/{chunk-V3YAXCQU.js → chunk-QQ4U4NST.js} +7 -7
- package/dist/{chunk-SBY4JFPZ.js → chunk-QRPHWWHI.js} +2 -2
- package/dist/{chunk-MR3JQ3LS.js → chunk-QWIWACGD.js} +1 -1
- package/dist/{chunk-BX2A6VVT.js → chunk-RSV25NAF.js} +1 -1
- package/dist/{chunk-64KRDJ46.js → chunk-RXGEWDA2.js} +38 -26
- package/dist/{chunk-SFXNXZA5.js → chunk-SFZWZHZB.js} +2 -2
- package/dist/{chunk-W6FZOPF4.js → chunk-SO5DEUCS.js} +7 -7
- package/dist/{chunk-ATGFCOLG.js → chunk-SSW4SERP.js} +1 -1
- package/dist/{chunk-2G3DG3NV.js → chunk-T6ZGTBHT.js} +4 -4
- package/dist/{chunk-PGP4AQ6G.js → chunk-TDYAVCJ3.js} +4 -4
- package/dist/{chunk-GIHIYB3Q.js → chunk-TMJRKWWK.js} +5 -5
- package/dist/{chunk-YAUW3PBG.js → chunk-TUBI75B7.js} +1 -1
- package/dist/{chunk-DTSWVMTP.js → chunk-TW6BQOPH.js} +6 -6
- package/dist/{chunk-6WBHZHZS.js → chunk-TX3IJUL7.js} +6 -6
- package/dist/{chunk-HD3ECNDC.js → chunk-VVDJCJ3P.js} +2 -2
- package/dist/{chunk-DP3AS752.js → chunk-VWJ5KDMM.js} +4 -4
- package/dist/{chunk-QXI7SYVB.js → chunk-WCSSU6QW.js} +4 -4
- package/dist/{chunk-Z43TNC27.js → chunk-WFE4RAWD.js} +1 -1
- package/dist/{chunk-3VYL4GCX.js → chunk-WUZM74HI.js} +4 -4
- package/dist/{chunk-HQ6RWSWN.js → chunk-X7BHVGGH.js} +1 -1
- package/dist/{chunk-RLTFMU3B.js → chunk-YBVDF4NV.js} +4 -4
- package/dist/{chunk-Y2OJGMJX.js → chunk-YHA5L6D3.js} +3 -3
- package/dist/{chunk-ELXKZ6XS.js → chunk-YHHQICQD.js} +3 -3
- package/dist/{chunk-DLCLDR6K.js → chunk-YINXG75Q.js} +4 -4
- package/dist/{chunk-4EGBDV3T.js → chunk-ZGPUVZZ6.js} +2 -2
- package/dist/{chunk-3W5AT2Y4.js → chunk-ZNDLGXKO.js} +6 -6
- package/dist/{chunk-6EE4F4PG.js → chunk-ZSJDCRBA.js} +1 -1
- package/dist/{chunk-FUNDDXWK.js → chunk-ZVIF4O6V.js} +2 -2
- package/dist/{codex-app-cards-switch-WVE7EY3Q.js → codex-app-cards-switch-325EWQUA.js} +12 -12
- package/dist/{codex-card-routing-TW5PGTDQ.js → codex-card-routing-NXI4P7PB.js} +2 -2
- package/dist/{codex-desktop-launch-HCWAIOUD.js → codex-desktop-launch-3OAHHDWE.js} +3 -3
- package/dist/{codex-session-launch-QE7ET6HE.js → codex-session-launch-YB4LGTG2.js} +20 -20
- package/dist/{config-G3A5OUOA.js → config-4FJ7KK75.js} +3 -3
- package/dist/{global-upgrade-RMVGM26D.js → global-upgrade-E4UKP2KG.js} +9 -9
- package/dist/{identity-5YOIBGSM.js → identity-VQNJSXZO.js} +4 -4
- package/dist/{live-capabilities-DXRASGGQ.js → live-capabilities-YJW4CU7J.js} +4 -4
- package/dist/{paths-JZZB2B5C.js → paths-FOJGTYX4.js} +3 -3
- package/dist/reapply-Q2MIQ4A7.js +76 -0
- package/dist/src/index.js +34 -34
- package/dist/{upgrade-lock-RPTYWUWT.js → upgrade-lock-MGX4PJQZ.js} +4 -4
- package/dist/{usage-LFHZHCB5.js → usage-24DU5SWS.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-KQXWREMT.js +0 -69
- package/dist/reapply-55YYSVPF.js +0 -76
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
expectedLaunchCapabilities,
|
|
4
4
|
hasSpawnProvider,
|
|
5
5
|
resolveControlPolicy
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-B4MK2ZX2.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-ZNDLGXKO.js";
|
|
14
14
|
import {
|
|
15
15
|
getMachineId
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LH7NQSUC.js";
|
|
17
17
|
import {
|
|
18
18
|
readControlMode,
|
|
19
19
|
readKeyInForce
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BLSGQHGW.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-AKGNLKZP.js";
|
|
24
24
|
import {
|
|
25
25
|
getPackageVersion
|
|
26
26
|
} from "./chunk-CXQWDQCJ.js";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VWJ5KDMM.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZVIF4O6V.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HJOXLNYN.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-BLSGQHGW.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MGGN37IW.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openClawLauncherCandidates
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LRF4XS6M.js";
|
|
4
4
|
import {
|
|
5
5
|
openCodeConfigDirFrom
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SO5DEUCS.js";
|
|
7
7
|
import {
|
|
8
8
|
nativeClaudeInstallPath
|
|
9
9
|
} from "./chunk-TCE3J44Z.js";
|
|
10
10
|
import {
|
|
11
11
|
grokHome
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DN7PXEXE.js";
|
|
13
13
|
import {
|
|
14
14
|
claudeConfigDir,
|
|
15
15
|
clineDataDirectory,
|
|
16
16
|
codexHomeFrom,
|
|
17
17
|
openClawEnvironmentOf,
|
|
18
18
|
openClawPathsFrom
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZGPUVZZ6.js";
|
|
20
20
|
import {
|
|
21
21
|
HOOK_COMPATIBLE_PROFILES
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MGGN37IW.js";
|
|
23
23
|
|
|
24
24
|
// src/vscode-config.ts
|
|
25
25
|
import { homedir } from "os";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "./chunk-WHB622LP.js";
|
|
5
5
|
import {
|
|
6
6
|
keyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BLSGQHGW.js";
|
|
8
8
|
import {
|
|
9
9
|
keyPrefixToShow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AKGNLKZP.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3DW5OCS2.js";
|
|
14
14
|
import {
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MGGN37IW.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/key-account.ts
|
|
19
19
|
var isKeyHeldByMacApp = (key, holder) => holder.macAppInstalled && holder.macAppKey === key;
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BLSGQHGW.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3DW5OCS2.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
|
realpath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K4PJXC32.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-GAO33I7L.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-MGGN37IW.js";
|
|
29
29
|
|
|
30
30
|
// src/live-capabilities.ts
|
|
31
31
|
import { execFileSync } from "child_process";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPROVAL_RULES_PATH,
|
|
3
3
|
canChangeApprovalSettings
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZVIF4O6V.js";
|
|
5
5
|
import {
|
|
6
6
|
callMcpTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3PAM7BQJ.js";
|
|
8
8
|
import {
|
|
9
9
|
absoluteUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HJOXLNYN.js";
|
|
11
11
|
import {
|
|
12
12
|
getBaseUrl
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AKGNLKZP.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3DW5OCS2.js";
|
|
17
17
|
import {
|
|
18
18
|
AGENT_STOP_DEFAULT_SECONDS,
|
|
19
19
|
APPROVAL_MODE_META,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
classifyConfirmResponse,
|
|
22
22
|
isAnswerSource,
|
|
23
23
|
roundTripAsk
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MGGN37IW.js";
|
|
25
25
|
|
|
26
26
|
// src/reach.ts
|
|
27
27
|
var PUSHARY_APP_DOWNLOAD_URL = "https://pushary.com/download";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveInstallSourceFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VVDJCJ3P.js";
|
|
4
4
|
import {
|
|
5
5
|
apiKeyInForce,
|
|
6
6
|
configFilePath,
|
|
7
7
|
keyPrefixToShow
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AKGNLKZP.js";
|
|
9
9
|
import {
|
|
10
10
|
backupFile,
|
|
11
11
|
backupFileInto,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
API_KEY_PREFIX_PATTERN,
|
|
18
18
|
isRecord,
|
|
19
19
|
isValidApiKey
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MGGN37IW.js";
|
|
21
21
|
|
|
22
22
|
// src/shell-alias.ts
|
|
23
23
|
import { homedir } from "os";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseConfigDocument
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WFE4RAWD.js";
|
|
4
4
|
import {
|
|
5
5
|
addGeminiMcpServer,
|
|
6
6
|
removeGeminiMcpServer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-T6ZGTBHT.js";
|
|
8
8
|
import {
|
|
9
9
|
CLAUDE_CODE_AGENT
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-H6FDFP6W.js";
|
|
11
11
|
import {
|
|
12
12
|
compatibleToolLookup
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-N2IP7IDG.js";
|
|
14
14
|
import {
|
|
15
15
|
CLAUDE_HOOK_EVENTS,
|
|
16
16
|
PUSHARY_MCP_URL,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
isPusharyHook,
|
|
23
23
|
registerHookEntry,
|
|
24
24
|
removeClaudeMcpServers
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZGPUVZZ6.js";
|
|
26
26
|
import {
|
|
27
27
|
AGENT_ENFORCEMENT,
|
|
28
28
|
HOOK_COMPATIBLE_PROFILES,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
pusharyMissingReason,
|
|
37
37
|
refusalOutput,
|
|
38
38
|
withHookHoldBudget
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-MGGN37IW.js";
|
|
40
40
|
|
|
41
41
|
// src/compatible-config.ts
|
|
42
42
|
import { homedir } from "os";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZGPUVZZ6.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-MGGN37IW.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-3EGEA4KH.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AKGNLKZP.js";
|
|
13
13
|
import {
|
|
14
14
|
CLI_LOCAL_BIND_PATH,
|
|
15
15
|
LOCAL_CONFIRM_HOST,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
isLocalConfirmToken,
|
|
21
21
|
isPhonePass,
|
|
22
22
|
localTerminalEntryUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MGGN37IW.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/login-ui.ts
|
|
26
26
|
import { hostname } from "os";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4SKEGBFV.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YINXG75Q.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BLSGQHGW.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-ZGPUVZZ6.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveGlobalBinary
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-GAO33I7L.js";
|
|
39
39
|
import {
|
|
40
40
|
readJsonSafe,
|
|
41
41
|
writeFileAtomic,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MGGN37IW.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-E4UKP2KG.js");
|
|
614
|
+
const { canonicalLockPath, installWithUpgradeLock, leftAnUnfinishedInstallHere, ownsUpgradeLock } = await import("./upgrade-lock-MGX4PJQZ.js");
|
|
615
|
+
const { autoUpdateLock } = await import("./paths-FOJGTYX4.js");
|
|
616
616
|
const lockPath = options.lockPath ?? autoUpdateLock();
|
|
617
617
|
const lockFile = canonicalLockPath(lockPath);
|
|
618
618
|
const unfinishedHere = failuresThisProcessLeftUnfinished.get(lockFile);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UNSET_IGNORED_SHELL_VALUE_STEP
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6RD6RNJY.js";
|
|
4
4
|
import {
|
|
5
5
|
notificationAnswerStep
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BBE7UITT.js";
|
|
7
7
|
import {
|
|
8
8
|
matchMacAccountStep,
|
|
9
9
|
retryAgentCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4SKEGBFV.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND,
|
|
13
13
|
npmExecSetupCommandFor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3DW5OCS2.js";
|
|
15
15
|
import {
|
|
16
16
|
EXIT
|
|
17
17
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
compatibleProfileFor,
|
|
23
23
|
isCompatibleAgentType
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MGGN37IW.js";
|
|
25
25
|
|
|
26
26
|
// src/setup/closing.ts
|
|
27
27
|
var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import {
|
|
2
|
+
callDecisionStore
|
|
3
|
+
} from "./chunk-H6FDFP6W.js";
|
|
4
|
+
import {
|
|
5
|
+
claudePromptMayFollowPreToolUseAllow,
|
|
6
|
+
promptedCallIdentityText
|
|
7
|
+
} from "./chunk-N2IP7IDG.js";
|
|
8
|
+
|
|
9
|
+
// src/phone-approval.ts
|
|
10
|
+
import { createHash as createHash2 } from "crypto";
|
|
11
|
+
|
|
12
|
+
// ../hook-mapping/src/prompted-call-key.ts
|
|
13
|
+
import { createHash } from "crypto";
|
|
14
|
+
var PROMPTED_CALL_KEY_LENGTH = 32;
|
|
15
|
+
var promptedCallKey = (source, call) => {
|
|
16
|
+
const identity = promptedCallIdentityText(source, call);
|
|
17
|
+
return identity === null ? null : createHash("sha256").update(identity, "utf-8").digest("hex").slice(0, PROMPTED_CALL_KEY_LENGTH);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// src/phone-approval.ts
|
|
21
|
+
var PHONE_APPROVAL_TTL_MS = 60 * 60 * 1e3;
|
|
22
|
+
var CLAUDE_SOURCE = "claude";
|
|
23
|
+
var phoneApprovalSourceFor = (source, profile, permissionMode) => {
|
|
24
|
+
if (profile?.promptFollowsPreToolUseAllow) return profile.source;
|
|
25
|
+
return claudePromptMayFollowPreToolUseAllow(source, permissionMode) ? source : null;
|
|
26
|
+
};
|
|
27
|
+
var PHONE_APPROVAL_SWEEP_EVERY_MS = 60 * 1e3;
|
|
28
|
+
var phoneApprovals = callDecisionStore("phone-approval", PHONE_APPROVAL_TTL_MS, { sweepAtMostEveryMs: PHONE_APPROVAL_SWEEP_EVERY_MS });
|
|
29
|
+
var SLOT_SEPARATOR = "-";
|
|
30
|
+
var SLOT_LENGTH = 16;
|
|
31
|
+
var keepsOneRecordPerCall = (source) => source === CLAUDE_SOURCE;
|
|
32
|
+
var slotOfTheCall = (toolUseId) => createHash2("sha256").update(toolUseId, "utf-8").digest("hex").slice(0, SLOT_LENGTH);
|
|
33
|
+
var slotKeyOf = (key, toolUseId) => key === null || !toolUseId ? null : `${key}${SLOT_SEPARATOR}${slotOfTheCall(toolUseId)}`;
|
|
34
|
+
var recordsOfTheCall = (key) => key === null ? [] : [...phoneApprovals.keysStartingWith(`${key}${SLOT_SEPARATOR}`), key];
|
|
35
|
+
var recordKeyOf = (source, call) => {
|
|
36
|
+
const key = promptedCallKey(source, call);
|
|
37
|
+
return keepsOneRecordPerCall(source) ? slotKeyOf(key, call.tool_use_id) : key;
|
|
38
|
+
};
|
|
39
|
+
var HANDLED = { kind: "handled" };
|
|
40
|
+
var SETTLED = { kind: "settled" };
|
|
41
|
+
var SET_ASIDE = { kind: "set_aside" };
|
|
42
|
+
var STEP_SETTLED_SUFFIX = "settled";
|
|
43
|
+
var STEP_SET_ASIDE_SUFFIX = "aside";
|
|
44
|
+
var stepMarkerKeyOf = (key, suffix) => key === null ? null : `${key}${SLOT_SEPARATOR}${suffix}`;
|
|
45
|
+
var stepSettledKeyOf = (key) => stepMarkerKeyOf(key, STEP_SETTLED_SUFFIX);
|
|
46
|
+
var stepSetAsideKeyOf = (key) => stepMarkerKeyOf(key, STEP_SET_ASIDE_SUFFIX);
|
|
47
|
+
var isAStepMarker = (recordKey, key) => recordKey === stepSettledKeyOf(key) || recordKey === stepSetAsideKeyOf(key);
|
|
48
|
+
var yesRecordsOfTheCall = (key) => key === null ? [] : recordsOfTheCall(key).filter((recordKey) => !isAStepMarker(recordKey, key));
|
|
49
|
+
var aHookHeldYesesOfTheStep = (key) => {
|
|
50
|
+
const setAsideKey = stepSetAsideKeyOf(key);
|
|
51
|
+
return setAsideKey !== null && phoneApprovals.peek(setAsideKey) !== null;
|
|
52
|
+
};
|
|
53
|
+
var forgetPhoneApproval = (source, call) => {
|
|
54
|
+
phoneApprovals.forget(recordKeyOf(source, call));
|
|
55
|
+
if (keepsOneRecordPerCall(source)) phoneApprovals.forget(promptedCallKey(source, call));
|
|
56
|
+
};
|
|
57
|
+
var markPhoneApprovalCallRan = (source, call) => {
|
|
58
|
+
forgetPhoneApproval(source, call);
|
|
59
|
+
if (keepsOneRecordPerCall(source) && aHookHeldYesesOfTheStep(promptedCallKey(source, call))) {
|
|
60
|
+
phoneApprovals.record(recordKeyOf(source, call), HANDLED);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
var markStepSettledWithoutAYes = (source, call) => {
|
|
64
|
+
const key = promptedCallKey(source, call);
|
|
65
|
+
if (!keepsOneRecordPerCall(source) || !aHookHeldYesesOfTheStep(key)) return false;
|
|
66
|
+
phoneApprovals.record(stepSettledKeyOf(key), SETTLED);
|
|
67
|
+
return true;
|
|
68
|
+
};
|
|
69
|
+
var forgetEveryPhoneApproval = (source, call) => {
|
|
70
|
+
const markedBeforeTheForget = markStepSettledWithoutAYes(source, call);
|
|
71
|
+
for (const key of yesRecordsOfTheCall(promptedCallKey(source, call))) phoneApprovals.forget(key);
|
|
72
|
+
if (!markedBeforeTheForget) markStepSettledWithoutAYes(source, call);
|
|
73
|
+
};
|
|
74
|
+
var isAnApproval = (key) => phoneApprovals.peek(key)?.kind === "approved";
|
|
75
|
+
var setAsideIfAnApproval = (key) => {
|
|
76
|
+
if (!isAnApproval(key)) return null;
|
|
77
|
+
const recorded = phoneApprovals.consumeRecorded(key);
|
|
78
|
+
return recorded?.decision.kind === "approved" ? { key, recorded } : null;
|
|
79
|
+
};
|
|
80
|
+
var isHeld = (held) => held !== null;
|
|
81
|
+
var NO_YES_HELD = [];
|
|
82
|
+
var heldYesesOf = (key) => {
|
|
83
|
+
const yeses = yesRecordsOfTheCall(key).filter(isAnApproval);
|
|
84
|
+
if (yeses.length === 0) return NO_YES_HELD;
|
|
85
|
+
phoneApprovals.record(stepSetAsideKeyOf(key), SET_ASIDE);
|
|
86
|
+
return yeses.map(setAsideIfAnApproval).filter(isHeld);
|
|
87
|
+
};
|
|
88
|
+
var setAsidePhoneApprovalsOfOtherCalls = (source, call) => {
|
|
89
|
+
const key = promptedCallKey(source, call);
|
|
90
|
+
const setAsideAtMs = Date.now();
|
|
91
|
+
return { stepSettledKey: stepSettledKeyOf(key), setAsideAtMs, held: heldYesesOf(key) };
|
|
92
|
+
};
|
|
93
|
+
var CLOCK_MARGIN_MS = 2e3;
|
|
94
|
+
var stepSettledSince = (stepSettledKey, sinceMs) => {
|
|
95
|
+
if (stepSettledKey === null) return true;
|
|
96
|
+
const settledAtMs = phoneApprovals.recordedAtMs(stepSettledKey);
|
|
97
|
+
return settledAtMs !== null && settledAtMs >= sinceMs - CLOCK_MARGIN_MS;
|
|
98
|
+
};
|
|
99
|
+
var restorePhoneApprovals = ({ stepSettledKey, setAsideAtMs, held }) => {
|
|
100
|
+
if (held.length === 0 || stepSettledSince(stepSettledKey, setAsideAtMs)) return;
|
|
101
|
+
for (const { key, recorded } of held) phoneApprovals.recordUnlessPresent(key, recorded);
|
|
102
|
+
};
|
|
103
|
+
var rememberPhoneApproval = (source, call) => {
|
|
104
|
+
if (call.tool_use_id) phoneApprovals.record(recordKeyOf(source, call), { kind: "approved", toolUseId: call.tool_use_id });
|
|
105
|
+
};
|
|
106
|
+
var firstApprovalTakenFrom = (keys) => {
|
|
107
|
+
for (const key of keys) {
|
|
108
|
+
if (!isAnApproval(key)) continue;
|
|
109
|
+
const recorded = phoneApprovals.consume(key);
|
|
110
|
+
if (recorded?.kind === "approved") return recorded.toolUseId;
|
|
111
|
+
}
|
|
112
|
+
return void 0;
|
|
113
|
+
};
|
|
114
|
+
var takePhoneApproval = (source, call) => {
|
|
115
|
+
const toolUseId = firstApprovalTakenFrom(yesRecordsOfTheCall(promptedCallKey(source, call)));
|
|
116
|
+
return toolUseId === void 0 ? void 0 : { ...call, tool_use_id: toolUseId };
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export {
|
|
120
|
+
phoneApprovalSourceFor,
|
|
121
|
+
forgetPhoneApproval,
|
|
122
|
+
markPhoneApprovalCallRan,
|
|
123
|
+
markStepSettledWithoutAYes,
|
|
124
|
+
forgetEveryPhoneApproval,
|
|
125
|
+
setAsidePhoneApprovalsOfOtherCalls,
|
|
126
|
+
restorePhoneApprovals,
|
|
127
|
+
rememberPhoneApproval,
|
|
128
|
+
takePhoneApproval
|
|
129
|
+
};
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-H4O3CV5W.js";
|
|
13
13
|
import {
|
|
14
14
|
CODEX_APP_LAUNCH_AT_LOGIN_VERB,
|
|
15
15
|
CODEX_APP_LAUNCH_VARIABLE,
|
|
@@ -20,20 +20,20 @@ import {
|
|
|
20
20
|
} from "./chunk-QCGNGEGE.js";
|
|
21
21
|
import {
|
|
22
22
|
parseConfigDocument
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WFE4RAWD.js";
|
|
24
24
|
import {
|
|
25
25
|
xml
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZNDLGXKO.js";
|
|
27
27
|
import {
|
|
28
28
|
codexHomeFrom
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ZGPUVZZ6.js";
|
|
30
30
|
import {
|
|
31
31
|
readRegularTextFile,
|
|
32
32
|
writeFileAtomic
|
|
33
33
|
} from "./chunk-PM2NRK6Y.js";
|
|
34
34
|
import {
|
|
35
35
|
isRecord
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-MGGN37IW.js";
|
|
37
37
|
|
|
38
38
|
// src/codex-app-cards-switch.ts
|
|
39
39
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ensureCodexTrustsPusharyHooks,
|
|
6
6
|
hermesHistoryNeedsTheCliHelper,
|
|
7
7
|
recordInstalledHermesHistoryHelper
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YHA5L6D3.js";
|
|
9
9
|
import {
|
|
10
10
|
hermesReceiptPaths,
|
|
11
11
|
hermesSetupPredatesThePluginFolder,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
refreshHermesPluginFiles,
|
|
15
15
|
refreshOpenClawPlugin,
|
|
16
16
|
shippedHermesPlugin
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YBVDF4NV.js";
|
|
18
18
|
import {
|
|
19
19
|
fxIgnoresInstructionsFile,
|
|
20
20
|
fxInstructionsBody,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
macAppFxBridge,
|
|
24
24
|
refreshClineKey,
|
|
25
25
|
switchFxHttpEntryToBridge
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FUXTIM33.js";
|
|
27
27
|
import {
|
|
28
28
|
OPENCODE_HOOK_BINARY,
|
|
29
29
|
agentHookOwner,
|
|
@@ -36,16 +36,16 @@ import {
|
|
|
36
36
|
openCodePluginDir,
|
|
37
37
|
openCodeWired,
|
|
38
38
|
withOpenCodeAskRules
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-SO5DEUCS.js";
|
|
40
40
|
import {
|
|
41
41
|
detectClaudeVersion
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-K4PJXC32.js";
|
|
43
43
|
import {
|
|
44
44
|
addCompatibleHooks,
|
|
45
45
|
compatibleConfigFile,
|
|
46
46
|
compatibleInstructionsFile,
|
|
47
47
|
hasCompatibleHooks
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-DN7PXEXE.js";
|
|
49
49
|
import {
|
|
50
50
|
GEMINI_HOOK_BINARY,
|
|
51
51
|
addGeminiHooks,
|
|
@@ -57,13 +57,13 @@ import {
|
|
|
57
57
|
geminiWired,
|
|
58
58
|
hasGeminiHooks,
|
|
59
59
|
planHooks
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-T6ZGTBHT.js";
|
|
61
61
|
import {
|
|
62
62
|
transcriptsEnabled
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-ZSJDCRBA.js";
|
|
64
64
|
import {
|
|
65
65
|
KEY_FILE_MODE
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-BLSGQHGW.js";
|
|
67
67
|
import {
|
|
68
68
|
CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
|
|
69
69
|
CLAUDE_HOOK_BINARY,
|
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
renderAgentInstructions,
|
|
111
111
|
supportedClaudeEvents,
|
|
112
112
|
vscodePluginMcp
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-ZGPUVZZ6.js";
|
|
114
114
|
import {
|
|
115
115
|
formatVersion
|
|
116
116
|
} from "./chunk-6ICPEJY5.js";
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
hookCommandsUseBareNames,
|
|
119
119
|
resolveGlobalBinDir,
|
|
120
120
|
resolveGlobalBinary
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-GAO33I7L.js";
|
|
122
122
|
import {
|
|
123
123
|
readJsonSafe,
|
|
124
124
|
writeFileAtomic,
|
|
@@ -128,7 +128,7 @@ import {
|
|
|
128
128
|
HOOK_COMPATIBLE_PROFILES,
|
|
129
129
|
isCompatibleAgentType,
|
|
130
130
|
isRecord
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-MGGN37IW.js";
|
|
132
132
|
|
|
133
133
|
// src/reapply.ts
|
|
134
134
|
import { dirname, join } from "path";
|