pushary 1.9.267 → 1.9.269
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 +13 -0
- package/dist/{api-L2Z47RNK.js → api-ILQDGJL4.js} +12 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +28 -29
- package/dist/bin/pushary-bell.js +11 -12
- package/dist/bin/pushary-calls.js +14 -15
- package/dist/bin/pushary-claude.js +25 -26
- package/dist/bin/pushary-clean.js +39 -40
- package/dist/bin/pushary-codex-bridge.js +22 -23
- package/dist/bin/pushary-codex-hook.js +34 -35
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +35 -36
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +46 -47
- package/dist/bin/pushary-disconnect.js +30 -31
- package/dist/bin/pushary-display-hook.js +20 -0
- package/dist/bin/pushary-doctor.js +50 -51
- package/dist/bin/pushary-elicitation-hook.js +27 -28
- package/dist/bin/pushary-gemini-bridge.js +17 -18
- package/dist/bin/pushary-gemini-hook.js +31 -32
- package/dist/bin/pushary-hook.js +35 -36
- package/dist/bin/pushary-login.js +101 -25
- package/dist/bin/pushary-logout.js +31 -32
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +15 -16
- package/dist/bin/pushary-notification-hook.js +27 -28
- package/dist/bin/pushary-opencode-bridge.js +21 -22
- package/dist/bin/pushary-opencode-hook.js +32 -33
- package/dist/bin/pushary-permission-denied-hook.js +34 -35
- package/dist/bin/pushary-permission-hook.js +35 -36
- package/dist/bin/pushary-post-hook.js +28 -29
- package/dist/bin/pushary-prompt-hook.js +27 -28
- package/dist/bin/pushary-session-end-hook.js +27 -28
- package/dist/bin/pushary-session-start-hook.js +39 -40
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +101 -77
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +36 -37
- package/dist/bin/pushary-stop-hook.js +27 -28
- package/dist/bin/pushary-stopfailure-hook.js +27 -28
- package/dist/bin/pushary-suggestions.js +15 -16
- package/dist/bin/pushary-transcript-register.js +16 -17
- package/dist/bin/pushary-transcripts.js +25 -26
- package/dist/bin/pushary-upgrade.js +47 -48
- package/dist/bin/pushary-wait.js +16 -17
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-XHKGTKM6.js → chunk-3D6EDVCE.js} +86 -79
- package/dist/{chunk-QW7LM6BG.js → chunk-3K2HA65U.js} +4 -4
- package/dist/{chunk-OOSDN4AF.js → chunk-3QOTNFNM.js} +3 -3
- package/dist/{chunk-NDOHMHU7.js → chunk-3YU4M3H6.js} +10 -10
- package/dist/{chunk-YFJ4ANFO.js → chunk-43EYM5PY.js} +6 -6
- package/dist/{chunk-WAVZTVYL.js → chunk-4JO5JG2P.js} +5 -5
- package/dist/{chunk-WH5M67RN.js → chunk-4NBFRTVM.js} +6 -6
- package/dist/{chunk-UX7YU7EM.js → chunk-4R2BZ7ZV.js} +1 -1
- package/dist/{chunk-XUN2NSYF.js → chunk-4VUQPSEP.js} +1 -1
- package/dist/{chunk-DW7YF5GB.js → chunk-5EQYWIQ2.js} +4 -4
- package/dist/{chunk-KPQ7QKS4.js → chunk-66EWTFIK.js} +1 -1
- package/dist/{chunk-V6673KO7.js → chunk-6LRUCUBE.js} +5 -5
- package/dist/{chunk-TXPDNOKT.js → chunk-7CBU5D6G.js} +1 -1
- package/dist/{chunk-S44D2HDB.js → chunk-7GFQHVKY.js} +16 -16
- package/dist/{chunk-2C7L3B3T.js → chunk-7O2OZQ6L.js} +4 -4
- package/dist/{chunk-UVRUK52J.js → chunk-AHYV7ZQE.js} +1 -1
- package/dist/{chunk-LOSHKUR2.js → chunk-ALWSX6SA.js} +3 -3
- package/dist/{chunk-7KAMTVC2.js → chunk-ARWKVVKB.js} +1 -1
- package/dist/{chunk-HWIXP7UY.js → chunk-AVST42GD.js} +1 -1
- package/dist/{chunk-4YOLB6H7.js → chunk-AY37CFHF.js} +26 -0
- package/dist/{chunk-WUKZEENF.js → chunk-CNNEMTRD.js} +4 -4
- package/dist/{chunk-BWPDGMKS.js → chunk-D57LIC6X.js} +23 -3
- package/dist/{chunk-WNMTWBV4.js → chunk-D6OF2TD3.js} +5 -5
- package/dist/{chunk-XPLUSOU5.js → chunk-DBYHLVQ2.js} +1 -1
- package/dist/{chunk-FV2YDUH5.js → chunk-DLMR45RP.js} +1 -1
- package/dist/{chunk-ZJLVASQZ.js → chunk-E274RVGY.js} +4 -4
- package/dist/{chunk-CSI5V5NO.js → chunk-EPQDQGVZ.js} +1 -1
- package/dist/{chunk-AXIIY75S.js → chunk-ESH2IFRQ.js} +3 -3
- package/dist/{chunk-EVX63B2G.js → chunk-ESMAFA2J.js} +5 -5
- package/dist/{chunk-KQ5S2ZUP.js → chunk-EY4XHT6G.js} +2 -2
- package/dist/{chunk-6QFYQYLV.js → chunk-FM73BOSO.js} +2 -2
- package/dist/{chunk-KK57NC2O.js → chunk-GCWAQMHF.js} +5 -5
- package/dist/{chunk-WX6YWZFM.js → chunk-GFX5AAWT.js} +7 -7
- package/dist/{chunk-LB474DMC.js → chunk-HV2DBLA2.js} +5 -5
- package/dist/{chunk-I2EZVCOY.js → chunk-J2PCHNZO.js} +5 -5
- package/dist/{chunk-7YCRU3HC.js → chunk-JGMEZV2Q.js} +3 -3
- package/dist/{chunk-3DY5G7JW.js → chunk-JYUIHUMK.js} +1 -1
- package/dist/{chunk-OEKXK3YR.js → chunk-KARQYZR3.js} +1 -1
- package/dist/{chunk-FSTX5SRV.js → chunk-KGZSVBUD.js} +3 -3
- package/dist/{chunk-FF7JYSH5.js → chunk-KYCPYOKD.js} +2 -2
- package/dist/{chunk-5K6MB557.js → chunk-L7GL5TJY.js} +2 -2
- package/dist/{chunk-JYKM47DL.js → chunk-LKKOKKUX.js} +2 -2
- package/dist/{chunk-573LGFOV.js → chunk-M3VS3PEK.js} +2 -2
- package/dist/{chunk-RB4QNUFM.js → chunk-MFQNYRKP.js} +4 -4
- package/dist/{chunk-YJ2T5AKE.js → chunk-MPXY3I3M.js} +6 -6
- package/dist/{chunk-A2YOC25E.js → chunk-NCHOWL5Y.js} +2 -2
- package/dist/{chunk-4TRRDGM5.js → chunk-O54TEHYJ.js} +25 -2
- package/dist/{chunk-MY3ZY6B2.js → chunk-P2OVSHIW.js} +3 -3
- package/dist/{chunk-J26QBILB.js → chunk-P3DV5JOE.js} +7 -7
- package/dist/{chunk-KBQBO3KA.js → chunk-PAKMLOFV.js} +3 -3
- package/dist/{chunk-TFI7UZ4N.js → chunk-PWP6NIWM.js} +2 -2
- package/dist/{chunk-MQO4F37H.js → chunk-Q7VXJ634.js} +4 -4
- package/dist/{chunk-275RFVSO.js → chunk-QFOMZSIU.js} +1 -1
- package/dist/{chunk-QTWLOFBV.js → chunk-QICIMORB.js} +2 -2
- package/dist/{chunk-4R7RMJIP.js → chunk-RBZCLXTE.js} +1 -1
- package/dist/{chunk-GF75PDAQ.js → chunk-RQCVHU7Q.js} +1 -1
- package/dist/{chunk-MGFCPJHQ.js → chunk-TDV2RONN.js} +15 -7
- package/dist/{chunk-JSPW2FFO.js → chunk-THDJL37Z.js} +1 -1
- package/dist/{chunk-KPH6GX74.js → chunk-TOHXHAFM.js} +8 -8
- package/dist/{chunk-SLWLFMMB.js → chunk-TZ32ZFFG.js} +65 -6
- package/dist/{chunk-KCQP7ZDP.js → chunk-U7WPURWA.js} +2 -2
- package/dist/{chunk-7SSL355C.js → chunk-ULOJDRKP.js} +2 -1
- package/dist/{chunk-HZG7IUDL.js → chunk-UT7O4WQ6.js} +4 -4
- package/dist/{chunk-TDDX5PAP.js → chunk-UVWYN2UR.js} +4 -4
- package/dist/{chunk-RQ5DKUF4.js → chunk-UXRP56HU.js} +1 -1
- package/dist/{chunk-OF7LT6JD.js → chunk-VIMAUIPP.js} +6 -6
- package/dist/{chunk-IV7POIBI.js → chunk-WAZZ2JJ3.js} +59 -13
- package/dist/{chunk-GXHOOPOY.js → chunk-WQVKU4BI.js} +3 -3
- package/dist/{chunk-EVT7LZ7E.js → chunk-WT2RG7RS.js} +1 -1
- package/dist/{chunk-BO5TJWAN.js → chunk-WUUVZEKA.js} +3 -3
- package/dist/{chunk-MDG6IDIJ.js → chunk-XIWZX5YY.js} +5 -5
- package/dist/{chunk-2IXNXTLA.js → chunk-XLJTD3PP.js} +6 -6
- package/dist/{chunk-SSQWDL6Q.js → chunk-XNYZBQCJ.js} +1 -1
- package/dist/{chunk-NBU7Y6JX.js → chunk-Y2DBHR2N.js} +1 -1
- package/dist/{chunk-PDANBIJA.js → chunk-Z26E6HSF.js} +5 -5
- package/dist/{chunk-OTCNXBIY.js → chunk-Z32D32PL.js} +4 -4
- package/dist/{chunk-IRS2FE32.js → chunk-Z4XTXCRP.js} +1 -1
- package/dist/{chunk-XF3R4ZPV.js → chunk-Z7ZBH7RU.js} +10 -10
- package/dist/{chunk-U6X2XWRP.js → chunk-ZG6QJH5C.js} +1 -1
- package/dist/{chunk-Y2CO2RMJ.js → chunk-ZNQ5YZ2L.js} +45 -13
- package/dist/{chunk-VSOUII7B.js → chunk-ZTQS2ZVJ.js} +1 -1
- package/dist/{chunk-LXH5JLD7.js → chunk-ZVSSHI6H.js} +5 -5
- package/dist/{codex-app-cards-switch-MZBLPDC5.js → codex-app-cards-switch-ROGUHXKQ.js} +11 -12
- package/dist/{codex-card-routing-QMXQ3RRX.js → codex-card-routing-CQX3C552.js} +2 -2
- package/dist/{codex-desktop-launch-7H4COE7H.js → codex-desktop-launch-U6XMY4AD.js} +3 -3
- package/dist/{codex-session-launch-ZSY7FTS3.js → codex-session-launch-FFF7HWWT.js} +21 -20
- package/dist/{config-PPMFPV2E.js → config-J6IB5GWC.js} +3 -3
- package/dist/{global-upgrade-RFXS76KH.js → global-upgrade-W6O44GGK.js} +9 -9
- package/dist/{identity-SLRS7XIR.js → identity-6W3NU4R3.js} +4 -4
- package/dist/{live-capabilities-4G46QNGE.js → live-capabilities-XGYRPZB3.js} +4 -4
- package/dist/{paths-55IJMRJW.js → paths-BK42XGTR.js} +3 -3
- package/dist/reapply-WEEWFQOE.js +81 -0
- package/dist/src/index.js +33 -34
- package/dist/{upgrade-lock-UGPXSPSU.js → upgrade-lock-AOHJCJIT.js} +4 -4
- package/dist/{usage-YC6BB7BX.js → usage-AG2GXZV6.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-B3FN4XL2.js +0 -44
- package/dist/reapply-HA6RLYRS.js +0 -76
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAsCredential
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AVST42GD.js";
|
|
4
4
|
import {
|
|
5
5
|
keyCheckFromResponse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ESH2IFRQ.js";
|
|
7
7
|
import {
|
|
8
8
|
installNetworkDefaults
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3QOTNFNM.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-U7WPURWA.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isToolErrorResult,
|
|
16
16
|
toolFailureCodeOfResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AY37CFHF.js";
|
|
18
18
|
|
|
19
19
|
// src/retry.ts
|
|
20
20
|
var isRetryable = (err) => {
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
configFailureKind,
|
|
5
5
|
retryAgentCommand,
|
|
6
6
|
writeSetupConfigFile
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KGZSVBUD.js";
|
|
8
8
|
import {
|
|
9
9
|
MCP_BRIDGE_BINARY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MFQNYRKP.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_FILE_MODE
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZNQ5YZ2L.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-O54TEHYJ.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveGlobalBinary
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-3K2HA65U.js";
|
|
39
39
|
import {
|
|
40
40
|
readJsonSafe,
|
|
41
41
|
writeFileAtomic,
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
OPENCLAW_ENVIRONMENT_KEYS,
|
|
6
6
|
openClawEnvironmentOf,
|
|
7
7
|
openClawPathsFrom
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-O54TEHYJ.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3K2HA65U.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AY37CFHF.js";
|
|
15
15
|
|
|
16
16
|
// src/openclaw/wiring-state.ts
|
|
17
17
|
var OPENCLAW_PLUGIN_ID = "pushary";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
NpmMissingError,
|
|
5
5
|
NpmPermissionError,
|
|
6
6
|
NpmReleaseAgeError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3K2HA65U.js";
|
|
8
8
|
import {
|
|
9
9
|
writeFileAtomic
|
|
10
10
|
} from "./chunk-PM2NRK6Y.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ULOJDRKP.js";
|
|
14
14
|
import {
|
|
15
15
|
readSetupAgentFailures
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AY37CFHF.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/config-write.ts
|
|
19
19
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ESH2IFRQ.js";
|
|
4
4
|
import {
|
|
5
5
|
KEY_SCOPE
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AY37CFHF.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/approval-settings-pages.ts
|
|
9
9
|
var API_KEYS_PATH = "/dashboard/agent/settings";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
keyPrefix,
|
|
5
5
|
readConfigFileKey,
|
|
6
6
|
readMacAppKeyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZNQ5YZ2L.js";
|
|
8
8
|
import {
|
|
9
9
|
NPX_LATEST_COMMAND
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ULOJDRKP.js";
|
|
11
11
|
|
|
12
12
|
// src/key-signed-out.ts
|
|
13
13
|
var VERDICT_BY_CHECK = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O54TEHYJ.js";
|
|
4
4
|
import {
|
|
5
5
|
readJsonSafe
|
|
6
6
|
} from "./chunk-PM2NRK6Y.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AY37CFHF.js";
|
|
10
10
|
|
|
11
11
|
// src/process-ownership.ts
|
|
12
12
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoUpdateLock
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O54TEHYJ.js";
|
|
4
4
|
import {
|
|
5
5
|
installPackageGlobally,
|
|
6
6
|
npmErrorMessage,
|
|
7
7
|
throwIfNpmRefusesInstall
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3K2HA65U.js";
|
|
9
9
|
import {
|
|
10
10
|
writeJsonAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSseMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HV2DBLA2.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AVST42GD.js";
|
|
7
7
|
import {
|
|
8
8
|
malformedApiKeyMessage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-U7WPURWA.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ULOJDRKP.js";
|
|
13
13
|
|
|
14
14
|
// src/mcp-stdio-bridge.ts
|
|
15
15
|
var MCP_BRIDGE_BINARY = "pushary-mcp";
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
} from "./chunk-3PSNUHC5.js";
|
|
5
5
|
import {
|
|
6
6
|
getMachineId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UXRP56HU.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZNQ5YZ2L.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-O54TEHYJ.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveGlobalBinary,
|
|
16
16
|
withoutNpmInstallConsent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3K2HA65U.js";
|
|
18
18
|
import {
|
|
19
19
|
getApiKey
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-U7WPURWA.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-AY37CFHF.js";
|
|
37
37
|
|
|
38
38
|
// src/daemon-entry-guard.ts
|
|
39
39
|
import { mkdirSync, readFileSync } from "fs";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-POFBE6ZY.js";
|
|
4
4
|
import {
|
|
5
5
|
autoUpdateState
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O54TEHYJ.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-AY37CFHF.js";
|
|
21
21
|
|
|
22
22
|
// src/auto-update.ts
|
|
23
23
|
import { spawn } from "child_process";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
quoteIfNeeded,
|
|
7
7
|
shellDoubleQuoted
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3K2HA65U.js";
|
|
9
9
|
import {
|
|
10
10
|
writeFileAtomic
|
|
11
11
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
PUSHARY_HOSTS,
|
|
25
25
|
PUSHARY_TOOL_PREFIX,
|
|
26
26
|
withHookHoldBudget
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AY37CFHF.js";
|
|
28
28
|
|
|
29
29
|
// src/setup/paths.ts
|
|
30
30
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -226,6 +226,12 @@ var canonicalJson = (value) => {
|
|
|
226
226
|
return "{" + Object.keys(record).sort().map((key) => JSON.stringify(key) + ":" + canonicalJson(record[key])).join(",") + "}";
|
|
227
227
|
};
|
|
228
228
|
|
|
229
|
+
// src/embedded-mcp-key.ts
|
|
230
|
+
var NO_EMBEDDED_MCP_KEY = { kind: "none" };
|
|
231
|
+
var CUSTOM_EMBEDDED_MCP_KEY = { kind: "custom" };
|
|
232
|
+
var BEARER_PREFIX = "Bearer ";
|
|
233
|
+
var bearerKeyOf = (authorization) => typeof authorization === "string" && authorization.startsWith(BEARER_PREFIX) ? authorization.slice(BEARER_PREFIX.length).trim() : void 0;
|
|
234
|
+
|
|
229
235
|
// src/codex-config.ts
|
|
230
236
|
var CODEX_HOOK_BINARY = "pushary-codex-hook";
|
|
231
237
|
var codexHookCommand = (resolvedBinary, platform = process.platform) => guardBinary(resolvedBinary ?? CODEX_HOOK_BINARY, platform, windowsNodeLauncherFor(platform));
|
|
@@ -352,6 +358,14 @@ var readCodexMcpAuth = (config) => {
|
|
|
352
358
|
if (typeof pushary.bearer_token === "string") return { method: "legacy-bearer" };
|
|
353
359
|
return void 0;
|
|
354
360
|
};
|
|
361
|
+
var embeddedCodexMcpKey = (config) => {
|
|
362
|
+
const auth = readCodexMcpAuth(config);
|
|
363
|
+
if (auth?.method !== "embedded") return NO_EMBEDDED_MCP_KEY;
|
|
364
|
+
return asRecord2(asRecord2(config.mcp_servers)?.pushary)?.url === CODEX_MCP_URL ? { kind: "ours", key: auth.key } : CUSTOM_EMBEDDED_MCP_KEY;
|
|
365
|
+
};
|
|
366
|
+
var replaceCodexMcpEmbeddedKey = (config, apiKey) => {
|
|
367
|
+
ensureRecord(ensureRecord(ensureRecord(config, "mcp_servers"), "pushary"), "http_headers").Authorization = `Bearer ${apiKey}`;
|
|
368
|
+
};
|
|
355
369
|
var isPusharyCodexCommand = (command) => command.includes(CODEX_HOOK_BINARY) || command.includes(HOOK_LOCATOR_BINARY);
|
|
356
370
|
var isPusharyCommand = (hook, scope) => {
|
|
357
371
|
const command = String(asRecord2(hook)?.command ?? "");
|
|
@@ -832,6 +846,12 @@ var addClaudeMcpServer = (config, apiKey) => {
|
|
|
832
846
|
const mcpServers = ensureRecord2(config, "mcpServers");
|
|
833
847
|
mcpServers.pushary = pusharyMcpServer(apiKey);
|
|
834
848
|
};
|
|
849
|
+
var embeddedClaudeMcpKey = (config) => {
|
|
850
|
+
const entry2 = asRecord3(asRecord3(config.mcpServers)?.pushary);
|
|
851
|
+
const key = bearerKeyOf(asRecord3(entry2?.headers)?.Authorization);
|
|
852
|
+
if (key === void 0) return NO_EMBEDDED_MCP_KEY;
|
|
853
|
+
return isDeepStrictEqual(entry2, pusharyMcpServer(key)) ? { kind: "ours", key } : CUSTOM_EMBEDDED_MCP_KEY;
|
|
854
|
+
};
|
|
835
855
|
var isClaudeMcpSnapshot = (value) => {
|
|
836
856
|
if (!value || typeof value !== "object" || Array.isArray(value)) return false;
|
|
837
857
|
const snapshot = value;
|
|
@@ -1400,6 +1420,8 @@ export {
|
|
|
1400
1420
|
codexMcpStartsCommand,
|
|
1401
1421
|
addCodexMcpServer,
|
|
1402
1422
|
readCodexMcpAuth,
|
|
1423
|
+
embeddedCodexMcpKey,
|
|
1424
|
+
replaceCodexMcpEmbeddedKey,
|
|
1403
1425
|
isPusharyCodexCommand,
|
|
1404
1426
|
codexRegistrationHolder,
|
|
1405
1427
|
addCodexHooks,
|
|
@@ -1439,6 +1461,7 @@ export {
|
|
|
1439
1461
|
allowsPusharyTools,
|
|
1440
1462
|
isPusharyHook,
|
|
1441
1463
|
addClaudeMcpServer,
|
|
1464
|
+
embeddedClaudeMcpKey,
|
|
1442
1465
|
isClaudeMcpSnapshot,
|
|
1443
1466
|
captureClaudeMcpServer,
|
|
1444
1467
|
updateClaudeMcpSnapshot,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SETUP_FLAGS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D57LIC6X.js";
|
|
4
4
|
import {
|
|
5
5
|
parseFlags
|
|
6
6
|
} from "./chunk-BZIBNSQE.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ULOJDRKP.js";
|
|
13
13
|
import {
|
|
14
14
|
CLAUDE_CONNECTOR_GUIDE,
|
|
15
15
|
CLAUDE_CONNECTOR_STEPS,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
CLAUDE_CONNECTOR_URL,
|
|
18
18
|
COWORK_CONNECTOR_LIMIT,
|
|
19
19
|
COWORK_STANDING_INSTRUCTIONS
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AY37CFHF.js";
|
|
21
21
|
|
|
22
22
|
// src/cli/cowork.ts
|
|
23
23
|
import { readFileSync } from "fs";
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
SIGNED_OUT_ON_MAC_MESSAGE,
|
|
3
3
|
describeSignedOutKey,
|
|
4
4
|
readSignedOutDiagnosis
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L7GL5TJY.js";
|
|
6
6
|
import {
|
|
7
7
|
APPROVAL_RULES_PATH
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KYCPYOKD.js";
|
|
9
9
|
import {
|
|
10
10
|
createIo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XNYZBQCJ.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl,
|
|
14
14
|
checkApiKey,
|
|
15
15
|
describeKeyCheck,
|
|
16
16
|
keyCheckFromResponse
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ESH2IFRQ.js";
|
|
18
18
|
import {
|
|
19
19
|
readKeySource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZNQ5YZ2L.js";
|
|
21
21
|
import {
|
|
22
22
|
getBaseUrl
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-U7WPURWA.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-AY37CFHF.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-ARWKVVKB.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-3K2HA65U.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-AY37CFHF.js";
|
|
29
29
|
|
|
30
30
|
// src/live-capabilities.ts
|
|
31
31
|
import { execFileSync } from "child_process";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectNameFor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y2DBHR2N.js";
|
|
4
4
|
import {
|
|
5
5
|
readConfigFileKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZNQ5YZ2L.js";
|
|
7
7
|
|
|
8
8
|
// src/bell/fleet.ts
|
|
9
9
|
import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "./chunk-WHB622LP.js";
|
|
5
5
|
import {
|
|
6
6
|
keyPrefix
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZNQ5YZ2L.js";
|
|
8
8
|
import {
|
|
9
9
|
keyPrefixToShow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-U7WPURWA.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ULOJDRKP.js";
|
|
14
14
|
import {
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AY37CFHF.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/key-account.ts
|
|
19
19
|
var isKeyHeldByMacApp = (key, holder) => holder.macAppInstalled && holder.macAppKey === key;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
claudeConfigDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O54TEHYJ.js";
|
|
4
4
|
import {
|
|
5
5
|
claudePermissionRulesFromSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AY37CFHF.js";
|
|
7
7
|
|
|
8
8
|
// src/claude-permission-rules.ts
|
|
9
9
|
import { readFileSync, statSync } from "fs";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
verifyAnchoredRecipients,
|
|
12
12
|
wrapSessionKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WQVKU4BI.js";
|
|
14
14
|
|
|
15
15
|
// src/live-session.ts
|
|
16
16
|
var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
|
|
@@ -7,9 +7,12 @@ import {
|
|
|
7
7
|
openSealedKey,
|
|
8
8
|
publicKeyFingerprint
|
|
9
9
|
} from "./chunk-3EGEA4KH.js";
|
|
10
|
+
import {
|
|
11
|
+
testTrafficHeaders
|
|
12
|
+
} from "./chunk-TZ32ZFFG.js";
|
|
10
13
|
import {
|
|
11
14
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-U7WPURWA.js";
|
|
13
16
|
import {
|
|
14
17
|
CLI_LOCAL_BIND_PATH,
|
|
15
18
|
LOCAL_CONFIRM_HOST,
|
|
@@ -20,7 +23,7 @@ import {
|
|
|
20
23
|
isLocalConfirmToken,
|
|
21
24
|
isPhonePass,
|
|
22
25
|
localTerminalEntryUrl
|
|
23
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AY37CFHF.js";
|
|
24
27
|
|
|
25
28
|
// src/cli/login-ui.ts
|
|
26
29
|
import { hostname } from "os";
|
|
@@ -99,11 +102,12 @@ var listenForLocalConfirm = (options) => new Promise((resolve) => {
|
|
|
99
102
|
// src/cli/login.ts
|
|
100
103
|
var START_PATH = "/api/cli/auth/start";
|
|
101
104
|
var CLAIM_PATH = "/api/cli/auth/claim";
|
|
105
|
+
var setupLinkBindingOf = (value) => value === "bound" || value === "expired" ? value : void 0;
|
|
102
106
|
var LOGIN_COMMAND_REQUEST = { command: "login" };
|
|
103
107
|
var DEFAULT_TIMEOUT_MS = 1e4;
|
|
104
108
|
var post = async (url, body, fetchImpl) => fetchImpl(url, {
|
|
105
109
|
method: "POST",
|
|
106
|
-
headers: { "Content-Type": "application/json" },
|
|
110
|
+
headers: { "Content-Type": "application/json", ...testTrafficHeaders() },
|
|
107
111
|
body: JSON.stringify(body),
|
|
108
112
|
signal: AbortSignal.timeout(DEFAULT_TIMEOUT_MS)
|
|
109
113
|
});
|
|
@@ -122,7 +126,8 @@ var startLogin = async (machineLabel, cliVersion, deps = {}, request = LOGIN_COM
|
|
|
122
126
|
machineLabel,
|
|
123
127
|
cliVersion,
|
|
124
128
|
command: request.command,
|
|
125
|
-
...request.localConfirmStateHash === void 0 ? {} : { localConfirmStateHash: request.localConfirmStateHash }
|
|
129
|
+
...request.localConfirmStateHash === void 0 ? {} : { localConfirmStateHash: request.localConfirmStateHash },
|
|
130
|
+
...request.setupCode ? { setupCode: request.setupCode } : {}
|
|
126
131
|
},
|
|
127
132
|
fetchImpl
|
|
128
133
|
);
|
|
@@ -153,10 +158,12 @@ var startLogin = async (machineLabel, cliVersion, deps = {}, request = LOGIN_COM
|
|
|
153
158
|
expiresInSeconds: Math.max(1, asNumber(body.expiresInSeconds, 900)),
|
|
154
159
|
fingerprint: asString(body.fingerprint) ?? publicKeyFingerprint(keypair.publicKeyB64),
|
|
155
160
|
keypair,
|
|
156
|
-
localConfirm: request.localConfirmStateHash !== void 0 && body.localConfirm === true
|
|
161
|
+
localConfirm: request.localConfirmStateHash !== void 0 && body.localConfirm === true,
|
|
162
|
+
...withSetupLink(setupLinkBindingOf(body.setupLink))
|
|
157
163
|
}
|
|
158
164
|
};
|
|
159
165
|
};
|
|
166
|
+
var withSetupLink = (binding) => binding === void 0 ? {} : { setupLink: binding };
|
|
160
167
|
var phonePassFrom = (sealed, keypair) => {
|
|
161
168
|
if (typeof sealed !== "string" || sealed === "") return null;
|
|
162
169
|
try {
|
|
@@ -271,7 +278,7 @@ var cancelLogin = async (start, deps = {}) => {
|
|
|
271
278
|
try {
|
|
272
279
|
await fetchImpl(`${baseUrl}${START_PATH}`, {
|
|
273
280
|
method: "DELETE",
|
|
274
|
-
headers: { "Content-Type": "application/json" },
|
|
281
|
+
headers: { "Content-Type": "application/json", ...testTrafficHeaders() },
|
|
275
282
|
body: JSON.stringify({ loginId: start.loginId, cliPublicKey: start.keypair.publicKeyB64 }),
|
|
276
283
|
signal: AbortSignal.timeout(5e3)
|
|
277
284
|
});
|
|
@@ -310,6 +317,7 @@ var runBrowserLogin = async (ui, options, deps = {}) => {
|
|
|
310
317
|
const localState = newLocalConfirmState();
|
|
311
318
|
const started = await startLogin(hostname(), options.cliVersion, deps, {
|
|
312
319
|
command: options.command ?? "login",
|
|
320
|
+
setupCode: options.setupCode ?? null,
|
|
313
321
|
...mayOpenBrowser ? { localConfirmStateHash: localConfirmStateHash(localState) } : {}
|
|
314
322
|
});
|
|
315
323
|
if (started.kind === "rate-limited") {
|
|
@@ -358,7 +366,7 @@ var runBrowserLogin = async (ui, options, deps = {}) => {
|
|
|
358
366
|
};
|
|
359
367
|
}
|
|
360
368
|
if (state.kind === "rejected") return { kind: "rejected" };
|
|
361
|
-
return { kind: "expired" };
|
|
369
|
+
return { kind: "expired", loginId: start.loginId };
|
|
362
370
|
} finally {
|
|
363
371
|
listener?.close();
|
|
364
372
|
process.off("SIGINT", onSignal);
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
postLiveSession,
|
|
7
7
|
postLiveSessionUntilAccepted,
|
|
8
8
|
startLiveSessionHeartbeat
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RBZCLXTE.js";
|
|
10
10
|
import {
|
|
11
11
|
CommandReceipts,
|
|
12
12
|
controllerCommandSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7CBU5D6G.js";
|
|
14
14
|
import {
|
|
15
15
|
SESSION_IDLE_TIMEOUT_MS,
|
|
16
16
|
describeIdleWindow,
|
|
17
17
|
idleDeadlinePassed,
|
|
18
18
|
startProcessOwnership
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LKKOKKUX.js";
|
|
20
20
|
import {
|
|
21
21
|
spawnClaude
|
|
22
22
|
} from "./chunk-3PSNUHC5.js";
|
|
@@ -25,18 +25,18 @@ import {
|
|
|
25
25
|
isWaitForAnswerResponse,
|
|
26
26
|
withdrawQuestion,
|
|
27
27
|
writeDegraded
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-TZ32ZFFG.js";
|
|
29
29
|
import {
|
|
30
30
|
readCommandAck
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JYUIHUMK.js";
|
|
32
32
|
import {
|
|
33
33
|
callMcpTool,
|
|
34
34
|
isRetryable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-HV2DBLA2.js";
|
|
36
36
|
import {
|
|
37
37
|
projectNameFor,
|
|
38
38
|
repositoryScopeFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-Y2DBHR2N.js";
|
|
40
40
|
import {
|
|
41
41
|
AGENT_QUESTION_DESCRIPTION_MAX,
|
|
42
42
|
AGENT_QUESTION_HEADER_MAX,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
parseCodexQuestions,
|
|
59
59
|
planElicitationAsk,
|
|
60
60
|
readElicitationFields
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-AY37CFHF.js";
|
|
62
62
|
|
|
63
63
|
// src/codex-question-owner.ts
|
|
64
64
|
import { createHash } from "crypto";
|