pushary 1.9.251 → 1.9.252
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 +6 -0
- package/data/cursor-plugin/.cursor-plugin/plugin.json +1 -1
- package/data/cursor-plugin/CHANGELOG.md +4 -0
- package/data/cursor-plugin/scripts/pushary-gate.mjs +1 -1
- package/data/vscode-plugin/.claude-plugin/plugin.json +1 -1
- package/data/vscode-plugin/CHANGELOG.md +4 -0
- package/data/vscode-plugin/scripts/pushary-gate.mjs +1 -5
- package/dist/{api-7YLGBPT6.js → api-B3CCB7XF.js} +11 -11
- package/dist/bin/pushary-audit.js +3 -3
- package/dist/bin/pushary-bell-hook.js +29 -28
- 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 +43 -41
- package/dist/bin/pushary-codex-bridge.js +23 -23
- package/dist/bin/pushary-codex-hook.js +35 -34
- package/dist/bin/pushary-codex-session.js +8 -8
- package/dist/bin/pushary-codex.js +16 -16
- package/dist/bin/pushary-connect.js +36 -35
- package/dist/bin/pushary-cowork.js +5 -5
- package/dist/bin/pushary-daemon.js +47 -46
- package/dist/bin/pushary-disconnect.js +31 -30
- package/dist/bin/pushary-display-hook.js +5 -1
- package/dist/bin/pushary-doctor.js +48 -47
- package/dist/bin/pushary-elicitation-hook.js +28 -27
- package/dist/bin/pushary-gemini-bridge.js +18 -18
- package/dist/bin/pushary-gemini-hook.js +32 -31
- package/dist/bin/pushary-hook.js +36 -35
- package/dist/bin/pushary-login.js +23 -23
- package/dist/bin/pushary-logout.js +32 -31
- package/dist/bin/pushary-mcp.js +12 -12
- package/dist/bin/pushary-mode.js +16 -16
- package/dist/bin/pushary-notification-hook.js +28 -27
- package/dist/bin/pushary-opencode-bridge.js +22 -22
- package/dist/bin/pushary-opencode-hook.js +33 -32
- package/dist/bin/pushary-permission-denied-hook.js +35 -34
- package/dist/bin/pushary-permission-hook.js +36 -35
- package/dist/bin/pushary-post-hook.js +29 -28
- package/dist/bin/pushary-prompt-hook.js +28 -27
- package/dist/bin/pushary-session-end-hook.js +28 -27
- package/dist/bin/pushary-session-start-hook.js +40 -39
- package/dist/bin/pushary-sessions.js +12 -12
- package/dist/bin/pushary-setup.js +93 -71
- package/dist/bin/pushary-stats.js +5 -5
- package/dist/bin/pushary-status.js +37 -36
- package/dist/bin/pushary-stop-hook.js +28 -27
- package/dist/bin/pushary-stopfailure-hook.js +28 -27
- 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 -47
- package/dist/bin/pushary-wait.js +16 -16
- package/dist/bin/pushary.js +7 -7
- package/dist/{chunk-QG35IQTV.js → chunk-24MGJAU6.js} +1 -1
- package/dist/{chunk-UGUEVRCL.js → chunk-2ODXKLNT.js} +4 -4
- package/dist/{chunk-MTUDWLDC.js → chunk-2U735XOK.js} +5 -5
- package/dist/{chunk-RC77CCJG.js → chunk-2XVTJAYB.js} +5 -5
- package/dist/{chunk-CQIM7TDK.js → chunk-3HGWR547.js} +12 -5
- package/dist/{chunk-K26EFQLD.js → chunk-3REBHADE.js} +6 -6
- package/dist/{chunk-Z77XTRVT.js → chunk-4LTASS5P.js} +1 -1
- package/dist/{chunk-PHTMOEG6.js → chunk-5IHGO436.js} +4 -4
- package/dist/{chunk-G26FRSLD.js → chunk-5KYAO2GI.js} +6 -6
- package/dist/chunk-5LK3UY46.js +30 -0
- package/dist/{chunk-VXOZ4Q4J.js → chunk-5SRTZJ2A.js} +8 -8
- package/dist/{chunk-DQK6NXJH.js → chunk-5UXIPTWM.js} +2 -2
- package/dist/{chunk-6E5MBUJ6.js → chunk-6DQOFD25.js} +1 -1
- package/dist/{chunk-KK7JK2F3.js → chunk-6HGAY3R6.js} +8 -29
- package/dist/{chunk-557J45VJ.js → chunk-6JVSKDBD.js} +2 -2
- package/dist/{chunk-N6TD76US.js → chunk-6LB7PZLK.js} +3 -3
- package/dist/{chunk-AUU5RTTF.js → chunk-6OSGECAY.js} +6 -6
- package/dist/{chunk-T2CWUMXR.js → chunk-6S6ASGR3.js} +3 -3
- package/dist/{chunk-H3HURS3J.js → chunk-76NDZYJU.js} +12 -10
- package/dist/{chunk-ZVPI5BQR.js → chunk-7D25WOPT.js} +1 -1
- package/dist/{chunk-YXIJVUEU.js → chunk-7OF777EU.js} +42 -7
- package/dist/{chunk-FQOM4U2Q.js → chunk-AKHCR2EY.js} +3 -3
- package/dist/{chunk-3PWJ27G2.js → chunk-AOPSJHTB.js} +4 -4
- package/dist/{chunk-2RJOCEWT.js → chunk-AYVW4G3V.js} +1 -1
- package/dist/{chunk-JCVHTX6Q.js → chunk-BWDQ4WOH.js} +2 -2
- package/dist/{chunk-AGJA7LW6.js → chunk-C75GX2HY.js} +5 -5
- package/dist/{chunk-M6QOKJUL.js → chunk-CIJG74KZ.js} +1 -1
- package/dist/{chunk-M4H5OBXD.js → chunk-CVVHT4KY.js} +3 -3
- package/dist/{chunk-VNNXZXHM.js → chunk-CZ4EG35M.js} +1 -1
- package/dist/{chunk-UZXTAN6S.js → chunk-DD5EW5IL.js} +7 -4
- package/dist/{chunk-E5CQGHVW.js → chunk-DYTDYNKC.js} +6 -6
- package/dist/{chunk-VEFEHJLI.js → chunk-E5CTDUSW.js} +5 -5
- package/dist/{chunk-P7LH7M6N.js → chunk-ECXLAR6D.js} +2 -2
- package/dist/{chunk-4LBBSUF7.js → chunk-EIZXYIOM.js} +2 -2
- package/dist/{chunk-B4N3VLXT.js → chunk-EQ6VOXZU.js} +5 -5
- package/dist/{chunk-AAXFWQ7I.js → chunk-EQDLUHZJ.js} +3 -3
- package/dist/{chunk-DPUL5NO5.js → chunk-ERYXHBTE.js} +5 -5
- package/dist/{chunk-EEFE64MW.js → chunk-FM4ULVPT.js} +1 -1
- package/dist/{chunk-IEOTIQDF.js → chunk-G5DP6O5R.js} +5 -5
- package/dist/{chunk-7A6YK73O.js → chunk-GFFNJ3DO.js} +2 -2
- package/dist/{chunk-F6WOVDJY.js → chunk-GK2EYDF2.js} +4 -4
- package/dist/{chunk-JI6TV7FH.js → chunk-GKT2SRRG.js} +4 -4
- package/dist/{chunk-OM7ZE2KW.js → chunk-GM4CMN4A.js} +1 -1
- package/dist/{chunk-7E7FXU2S.js → chunk-GQLHV36Q.js} +1 -1
- package/dist/{chunk-PRQJDPAO.js → chunk-IFQROMKD.js} +2 -2
- package/dist/{chunk-JY2GFDHW.js → chunk-IXLXPPSD.js} +1 -1
- package/dist/{chunk-XEVRUUDW.js → chunk-JIZNXYN5.js} +2 -2
- package/dist/{chunk-D72OYETQ.js → chunk-JPHYKF6V.js} +5 -5
- package/dist/{chunk-54EXI2EP.js → chunk-K3VUIJLP.js} +4 -4
- package/dist/{chunk-JVBRHL7X.js → chunk-L4ANPJUH.js} +3 -3
- package/dist/{chunk-2S52I655.js → chunk-LI7OGANI.js} +2 -2
- package/dist/{chunk-VGKU4AFE.js → chunk-LM7GN5SQ.js} +1 -1
- package/dist/{chunk-VVKCEDTZ.js → chunk-M4ZP7SGR.js} +1 -1
- package/dist/{chunk-UGGISSH4.js → chunk-M773UCGU.js} +1 -1
- package/dist/{chunk-YITMIDDV.js → chunk-MNUJYXAH.js} +1 -1
- package/dist/{chunk-FBHV5HIP.js → chunk-MWYQVXAS.js} +4 -4
- package/dist/{chunk-TDEAHWEX.js → chunk-N7RKXLJR.js} +1 -1
- package/dist/{chunk-Z4L3R6UU.js → chunk-NMADZVTC.js} +1 -1
- package/dist/{chunk-PRU3HRGX.js → chunk-NXKCIKW6.js} +16 -16
- package/dist/{chunk-IWU3QQXI.js → chunk-O5BD64JZ.js} +1 -1
- package/dist/{chunk-LRCPKBFY.js → chunk-P2CXRTW4.js} +7 -7
- package/dist/{chunk-K36ZA3KL.js → chunk-Q3YKGLZ6.js} +2 -2
- package/dist/{chunk-GZMWTWC5.js → chunk-QZESFXVG.js} +4 -4
- package/dist/{chunk-4PQK2E6F.js → chunk-R4JAJBHJ.js} +1 -1
- package/dist/{chunk-QQVCYJ3I.js → chunk-RDRUCPFL.js} +7 -7
- package/dist/{chunk-STOOLWMG.js → chunk-SJ2UBLL7.js} +2 -2
- package/dist/{chunk-63PDFOKG.js → chunk-SJWGQ5LF.js} +3 -3
- package/dist/{chunk-GIX4TVRM.js → chunk-SZMGZ3C5.js} +21 -4
- package/dist/{chunk-UJR2DFED.js → chunk-SZXRQXXN.js} +3 -3
- package/dist/{chunk-XAEMSYXQ.js → chunk-UKQ5MEOA.js} +1 -1
- package/dist/{chunk-TFTPNS6R.js → chunk-V2FIT7FQ.js} +5 -5
- package/dist/{chunk-ZAAYMC7X.js → chunk-VA573E2C.js} +1 -1
- package/dist/{chunk-YZIESS3R.js → chunk-VAAODK2Q.js} +4 -4
- package/dist/{chunk-YGDRJZDL.js → chunk-VFZEUKWI.js} +1 -1
- package/dist/{chunk-LVHTTUGF.js → chunk-VMUXNGA7.js} +11 -11
- package/dist/{chunk-FBJFTOCJ.js → chunk-WSROHGWN.js} +12 -12
- package/dist/{chunk-6GF2JWI6.js → chunk-XB4GIETP.js} +1 -1
- package/dist/{chunk-YUO2WNDQ.js → chunk-XCGE5N3Z.js} +2 -2
- package/dist/{chunk-K7MEMCFJ.js → chunk-XKF5SCK3.js} +3 -3
- package/dist/{chunk-44WHETMS.js → chunk-XU4SUZX3.js} +10 -10
- package/dist/{chunk-WYAGS2L6.js → chunk-XY24PHAC.js} +6 -6
- package/dist/{chunk-UIMKOA23.js → chunk-ZA4AJIOD.js} +3 -3
- package/dist/{codex-app-cards-switch-EPNSIXTL.js → codex-app-cards-switch-FBXQXZ4I.js} +12 -11
- package/dist/{codex-card-routing-D32RHFLK.js → codex-card-routing-5CT7DOHG.js} +2 -2
- package/dist/{codex-desktop-launch-6RNIMOUV.js → codex-desktop-launch-AYVX5Y6L.js} +3 -3
- package/dist/{codex-session-launch-U2FWWVEH.js → codex-session-launch-UM3D3IX4.js} +20 -20
- package/dist/{config-5K6TBO3D.js → config-SZ2H3UZ3.js} +3 -3
- package/dist/{global-upgrade-A5ZCPOES.js → global-upgrade-26NPVCAL.js} +9 -9
- package/dist/{identity-GOG4UBHM.js → identity-5A6DVNBA.js} +4 -4
- package/dist/{live-capabilities-KLUTEUZX.js → live-capabilities-3MRTSUZ4.js} +4 -4
- package/dist/{paths-UUHG2JRC.js → paths-ZLR4ZVF4.js} +3 -3
- package/dist/reapply-T37X6H55.js +76 -0
- package/dist/src/index.js +34 -33
- package/dist/{upgrade-lock-SWYNQVNQ.js → upgrade-lock-27EWUBDP.js} +4 -4
- package/dist/{usage-JIV4LAHK.js → usage-ZZMBG3QZ.js} +3 -3
- package/package.json +2 -1
- package/dist/reapply-7AJEDJGK.js +0 -75
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-OYIN77HO.js";
|
|
6
6
|
import {
|
|
7
7
|
readMacAppAgentKey
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GK2EYDF2.js";
|
|
9
9
|
import {
|
|
10
10
|
API_KEYS_PATH
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SJ2UBLL7.js";
|
|
12
12
|
import {
|
|
13
13
|
absoluteUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZA4AJIOD.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-6S6ASGR3.js";
|
|
25
25
|
import {
|
|
26
26
|
isValidApiKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
28
28
|
|
|
29
29
|
// src/cli/held-key-revocation.ts
|
|
30
30
|
var readCliHeldKeys = (profiles) => {
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
uninstallOpenClawPlugin,
|
|
17
17
|
unsetOpenClawEntry,
|
|
18
18
|
writeOpenClawEntry
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DD5EW5IL.js";
|
|
20
20
|
import {
|
|
21
21
|
needsShell
|
|
22
22
|
} from "./chunk-3PSNUHC5.js";
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
openClawDirectoriesToLookIn,
|
|
29
29
|
openClawPluginFolder,
|
|
30
30
|
openClawSetupReceiptDirectory
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XCGE5N3Z.js";
|
|
32
32
|
import {
|
|
33
33
|
resolvePathBinary
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-MWYQVXAS.js";
|
|
35
35
|
import {
|
|
36
36
|
readJsonSafe,
|
|
37
37
|
writeJsonAtomic
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
} from "./chunk-CXQWDQCJ.js";
|
|
43
43
|
import {
|
|
44
44
|
isRecord
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
46
46
|
|
|
47
47
|
// src/hermes/plugin-payload.ts
|
|
48
48
|
import { createHash } from "crypto";
|
|
@@ -3712,6 +3712,7 @@ var removeHermesWiring = async (request) => {
|
|
|
3712
3712
|
};
|
|
3713
3713
|
|
|
3714
3714
|
// src/openclaw/install.ts
|
|
3715
|
+
import JSON5 from "json5";
|
|
3715
3716
|
import { createHash as createHash3 } from "crypto";
|
|
3716
3717
|
import { existsSync as existsSync4, readdirSync as readdirSync2, rmSync as rmSync4 } from "fs";
|
|
3717
3718
|
import { join as join3 } from "path";
|
|
@@ -3972,7 +3973,13 @@ var pusharyPluginOnDisk = (environment) => {
|
|
|
3972
3973
|
if (existsSync4(join3(where.stateDirectory, OPENCLAW_EXTENSIONS_FOLDER, OPENCLAW_PLUGIN_ID))) return "present";
|
|
3973
3974
|
const config = readJsonSafe(where.configFile);
|
|
3974
3975
|
if (config.kind === "missing") return "absent";
|
|
3975
|
-
|
|
3976
|
+
if (config.kind === "ok") return pusharyPluginInOpenClawConfig(config.value);
|
|
3977
|
+
if (config.kind !== "unparseable") return "unreadable";
|
|
3978
|
+
try {
|
|
3979
|
+
return pusharyPluginInOpenClawConfig(JSON5.parse(config.raw));
|
|
3980
|
+
} catch {
|
|
3981
|
+
return "unreadable";
|
|
3982
|
+
}
|
|
3976
3983
|
};
|
|
3977
3984
|
var neverSetUpHere = (receipt, environment) => receipt.kind === "missing" && pusharyPluginOnDisk(environment) === "absent";
|
|
3978
3985
|
var removeFromOneOpenClaw = async (target, request) => {
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
SubscriptionRequiredError,
|
|
9
9
|
callMcpTool,
|
|
10
10
|
isRetryable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2U735XOK.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchAsCredential
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-M773UCGU.js";
|
|
15
15
|
import {
|
|
16
16
|
installNetworkDefaults,
|
|
17
17
|
isNetworkFailure
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AKHCR2EY.js";
|
|
19
19
|
import {
|
|
20
20
|
clientReportClaims
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XCGE5N3Z.js";
|
|
22
22
|
import {
|
|
23
23
|
getApiKey,
|
|
24
24
|
getBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5UXIPTWM.js";
|
|
26
26
|
import {
|
|
27
27
|
ASK_AGENT_NAME_MAX,
|
|
28
28
|
CLIENT_REPORT_PATH,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
isRecord,
|
|
41
41
|
truncateLine,
|
|
42
42
|
waitEndAnswered
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
44
44
|
|
|
45
45
|
// src/api.ts
|
|
46
46
|
import { randomUUID } from "crypto";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CODEX_HOOK_STATUS,
|
|
3
3
|
HERMES_HISTORY_HELPER_COMMAND
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XKF5SCK3.js";
|
|
5
5
|
import {
|
|
6
6
|
HERMES_ALWAYS_ALLOWED_SHELL_RULE,
|
|
7
7
|
HERMES_COMMAND_ALLOWLIST_KEY,
|
|
8
8
|
HERMES_GATE_TOOLS_KEY,
|
|
9
9
|
HERMES_SHELL_TOOL
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3HGWR547.js";
|
|
11
11
|
import {
|
|
12
12
|
retryAgentCommand
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6LB7PZLK.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VA573E2C.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/codex-trust.ts
|
|
19
19
|
var CODEX_TRUST_TELEMETRY = {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EIZXYIOM.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L4ANPJUH.js";
|
|
10
10
|
import {
|
|
11
11
|
describeAutoUpdateCheck,
|
|
12
12
|
globalInstallLocation,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
readAutoUpdateState,
|
|
19
19
|
updateAutoUpdateState,
|
|
20
20
|
upgradeEntryFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-Q3YKGLZ6.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XCGE5N3Z.js";
|
|
27
27
|
import {
|
|
28
28
|
describeReleaseNpmHolds,
|
|
29
29
|
execNpm,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
npmExitedOnReleaseAge,
|
|
34
34
|
readGlobalCliInstallAt,
|
|
35
35
|
readGlobalPrefix
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-MWYQVXAS.js";
|
|
37
37
|
import {
|
|
38
38
|
NPX_LATEST_COMMAND
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-VA573E2C.js";
|
|
40
40
|
import {
|
|
41
41
|
EXIT
|
|
42
42
|
} from "./chunk-BG4HHB7E.js";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isRecord
|
|
3
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
4
|
+
|
|
5
|
+
// src/config-document.ts
|
|
6
|
+
import { parse, stringify } from "smol-toml";
|
|
7
|
+
var parseConfigDocument = (text, format) => {
|
|
8
|
+
if (text === null) return { kind: "missing" };
|
|
9
|
+
try {
|
|
10
|
+
const value = format === "toml" ? parse(text) : JSON.parse(text);
|
|
11
|
+
return isRecord(value) ? { kind: "parsed", value } : { kind: "unreadable" };
|
|
12
|
+
} catch {
|
|
13
|
+
return { kind: "unreadable" };
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
var readConfigDocument = (path, format, files) => {
|
|
17
|
+
try {
|
|
18
|
+
return parseConfigDocument(files.read(path), format);
|
|
19
|
+
} catch {
|
|
20
|
+
return { kind: "unreadable" };
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var serializeConfigDocument = (value, format) => format === "toml" ? stringify(value) : `${JSON.stringify(value, null, 2)}
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
parseConfigDocument,
|
|
28
|
+
readConfigDocument,
|
|
29
|
+
serializeConfigDocument
|
|
30
|
+
};
|
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
postLiveSession,
|
|
7
7
|
postLiveSessionUntilAccepted,
|
|
8
8
|
startLiveSessionHeartbeat
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7D25WOPT.js";
|
|
10
10
|
import {
|
|
11
11
|
CommandReceipts,
|
|
12
12
|
controllerCommandSchema
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VFZEUKWI.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-LI7OGANI.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-3REBHADE.js";
|
|
29
29
|
import {
|
|
30
30
|
readCommandAck
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XB4GIETP.js";
|
|
32
32
|
import {
|
|
33
33
|
callMcpTool,
|
|
34
34
|
isRetryable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2U735XOK.js";
|
|
36
36
|
import {
|
|
37
37
|
projectNameFor,
|
|
38
38
|
repositoryScopeFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-R4JAJBHJ.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-SZMGZ3C5.js";
|
|
62
62
|
|
|
63
63
|
// src/codex-question-owner.ts
|
|
64
64
|
import { createHash } from "crypto";
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
parseConfigDocument
|
|
3
|
+
} from "./chunk-5LK3UY46.js";
|
|
1
4
|
import {
|
|
2
5
|
addGeminiMcpServer,
|
|
3
6
|
removeGeminiMcpServer
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2ODXKLNT.js";
|
|
5
8
|
import {
|
|
6
9
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VMUXNGA7.js";
|
|
8
11
|
import {
|
|
9
12
|
compatibleToolLookup
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IXLXPPSD.js";
|
|
11
14
|
import {
|
|
12
15
|
CLAUDE_HOOK_EVENTS,
|
|
13
16
|
PUSHARY_MCP_URL,
|
|
@@ -19,7 +22,7 @@ import {
|
|
|
19
22
|
isPusharyHook,
|
|
20
23
|
registerHookEntry,
|
|
21
24
|
removeClaudeMcpServers
|
|
22
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XCGE5N3Z.js";
|
|
23
26
|
import {
|
|
24
27
|
AGENT_ENFORCEMENT,
|
|
25
28
|
HOOK_COMPATIBLE_PROFILES,
|
|
@@ -33,28 +36,7 @@ import {
|
|
|
33
36
|
pusharyMissingReason,
|
|
34
37
|
refusalOutput,
|
|
35
38
|
withHookHoldBudget
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
|
|
38
|
-
// src/config-document.ts
|
|
39
|
-
import { parse, stringify } from "smol-toml";
|
|
40
|
-
var parseConfigDocument = (text, format) => {
|
|
41
|
-
if (text === null) return { kind: "missing" };
|
|
42
|
-
try {
|
|
43
|
-
const value = format === "toml" ? parse(text) : JSON.parse(text);
|
|
44
|
-
return isRecord(value) ? { kind: "parsed", value } : { kind: "unreadable" };
|
|
45
|
-
} catch {
|
|
46
|
-
return { kind: "unreadable" };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var readConfigDocument = (path, format, files) => {
|
|
50
|
-
try {
|
|
51
|
-
return parseConfigDocument(files.read(path), format);
|
|
52
|
-
} catch {
|
|
53
|
-
return { kind: "unreadable" };
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
var serializeConfigDocument = (value, format) => format === "toml" ? stringify(value) : `${JSON.stringify(value, null, 2)}
|
|
57
|
-
`;
|
|
39
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
58
40
|
|
|
59
41
|
// src/compatible-config.ts
|
|
60
42
|
import { homedir } from "os";
|
|
@@ -372,9 +354,6 @@ var removeCompatibleMcpServer = (config, profile) => {
|
|
|
372
354
|
};
|
|
373
355
|
|
|
374
356
|
export {
|
|
375
|
-
parseConfigDocument,
|
|
376
|
-
readConfigDocument,
|
|
377
|
-
serializeConfigDocument,
|
|
378
357
|
hasCompatibleMcpServer,
|
|
379
358
|
profileFromArgv,
|
|
380
359
|
activeIdentity,
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
NpmMissingError,
|
|
5
5
|
NpmPermissionError,
|
|
6
6
|
NpmReleaseAgeError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MWYQVXAS.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-VA573E2C.js";
|
|
14
14
|
import {
|
|
15
15
|
readSetupAgentFailures
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
17
17
|
|
|
18
18
|
// src/setup/config-write.ts
|
|
19
19
|
var AgentConfigWriteError = class extends Error {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APPROVAL_RULES_PATH,
|
|
3
3
|
canChangeApprovalSettings
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SJ2UBLL7.js";
|
|
5
5
|
import {
|
|
6
6
|
callMcpTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2U735XOK.js";
|
|
8
8
|
import {
|
|
9
9
|
absoluteUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZA4AJIOD.js";
|
|
11
11
|
import {
|
|
12
12
|
getBaseUrl
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5UXIPTWM.js";
|
|
14
14
|
import {
|
|
15
15
|
NPX_LATEST_COMMAND
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VA573E2C.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-SZMGZ3C5.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-6JVSKDBD.js";
|
|
4
4
|
import {
|
|
5
5
|
apiKeyInForce,
|
|
6
6
|
configFilePath,
|
|
7
7
|
keyPrefixToShow
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5UXIPTWM.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-SZMGZ3C5.js";
|
|
21
21
|
|
|
22
22
|
// src/shell-alias.ts
|
|
23
23
|
import { homedir } from "os";
|
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GFFNJ3DO.js";
|
|
4
4
|
import {
|
|
5
5
|
declinedAgentsFile,
|
|
6
6
|
readDeclinedAgents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BWDQ4WOH.js";
|
|
8
8
|
import {
|
|
9
9
|
OPENCODE_HOOK_BINARY,
|
|
10
10
|
openCodeConfigDir,
|
|
11
11
|
openCodePluginFile
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-P2CXRTW4.js";
|
|
13
13
|
import {
|
|
14
14
|
openCodePluginArgv
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CIJG74KZ.js";
|
|
16
16
|
import {
|
|
17
17
|
liveCursorGateCoverage
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SZXRQXXN.js";
|
|
19
19
|
import {
|
|
20
20
|
compatibleConfigFile,
|
|
21
21
|
compatibleHookEvents,
|
|
22
|
-
grokHome
|
|
22
|
+
grokHome
|
|
23
|
+
} from "./chunk-6HGAY3R6.js";
|
|
24
|
+
import {
|
|
23
25
|
parseConfigDocument
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-5LK3UY46.js";
|
|
25
27
|
import {
|
|
26
28
|
DEFAULT_HOOKS_KEY_PATH,
|
|
27
29
|
GEMINI_HOOK_BINARY,
|
|
28
30
|
GEMINI_HOOK_EVENTS,
|
|
29
31
|
hooksAt
|
|
30
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2ODXKLNT.js";
|
|
31
33
|
import {
|
|
32
34
|
CODEX_EARLIER_APPROVAL_MATCHERS,
|
|
33
35
|
CODEX_HOOK_BINARY,
|
|
@@ -55,7 +57,7 @@ import {
|
|
|
55
57
|
parseHookArgv,
|
|
56
58
|
parseHookCommand,
|
|
57
59
|
supportedClaudeEvents
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-XCGE5N3Z.js";
|
|
59
61
|
import {
|
|
60
62
|
readRegularJsonFile,
|
|
61
63
|
readRegularTextFile
|
|
@@ -69,7 +71,7 @@ import {
|
|
|
69
71
|
OPENCODE_APPROVAL_EVENT,
|
|
70
72
|
isRecord,
|
|
71
73
|
matcherMatchesEveryCall
|
|
72
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
73
75
|
|
|
74
76
|
// src/hook-wiring.ts
|
|
75
77
|
import { createHash } from "crypto";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
uploadTranscriptRecords,
|
|
11
11
|
verifyAnchoredRecipients,
|
|
12
12
|
wrapSessionKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CVVHT4KY.js";
|
|
14
14
|
|
|
15
15
|
// src/live-session.ts
|
|
16
16
|
var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GKT2SRRG.js";
|
|
13
13
|
import {
|
|
14
14
|
CODEX_APP_LAUNCH_AT_LOGIN_VERB,
|
|
15
15
|
CODEX_APP_LAUNCH_VARIABLE,
|
|
@@ -18,19 +18,26 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
writeHuman
|
|
20
20
|
} from "./chunk-QCGNGEGE.js";
|
|
21
|
+
import {
|
|
22
|
+
parseConfigDocument
|
|
23
|
+
} from "./chunk-5LK3UY46.js";
|
|
21
24
|
import {
|
|
22
25
|
xml
|
|
23
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DYTDYNKC.js";
|
|
24
27
|
import {
|
|
25
28
|
codexHomeFrom
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XCGE5N3Z.js";
|
|
27
30
|
import {
|
|
28
31
|
writeFileAtomic
|
|
29
32
|
} from "./chunk-PM2NRK6Y.js";
|
|
33
|
+
import {
|
|
34
|
+
isRecord
|
|
35
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
30
36
|
|
|
31
37
|
// src/codex-app-cards-switch.ts
|
|
32
38
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
33
39
|
import { existsSync as existsSync2, mkdirSync, readFileSync, rmSync } from "fs";
|
|
40
|
+
import { isDeepStrictEqual } from "util";
|
|
34
41
|
import { homedir as homedir2 } from "os";
|
|
35
42
|
import { isAbsolute as isAbsolute2, join as join2 } from "path";
|
|
36
43
|
|
|
@@ -383,14 +390,36 @@ var codexAppCardsReport = (paths, machine) => {
|
|
|
383
390
|
var isKeptOnForTheMacApp = (request, paths, machine) => request.keepWhatTheMacAppTurnedOn && turnedOnByTheMacApp(codexAppCardsReceiptFrom(machine.readFile(paths.receiptPath))) && codexAppCardsStatus(paths, machine).kind !== "off";
|
|
384
391
|
var isKeptOffForTheMacApp = (request, paths, machine) => request.keepWhatTheMacAppTurnedOn && machine.exists(paths.turnedOffPath);
|
|
385
392
|
var CODEX_CONFIG_FILE = "config.toml";
|
|
386
|
-
var CODEX_LAUNCH_SETTING = new RegExp(`^(\\s*${CODEX_APP_LAUNCH_VARIABLE}\\s*=\\s*)(["'])(
|
|
393
|
+
var CODEX_LAUNCH_SETTING = new RegExp(`^(\\s*${CODEX_APP_LAUNCH_VARIABLE}\\s*=\\s*)(["'])(.*?)\\2(\\s*(?:#.*)?\\r?)$`);
|
|
394
|
+
var replaceLaunchSettings = (value, launcher, engine) => {
|
|
395
|
+
if (!isRecord(value) && !Array.isArray(value)) return false;
|
|
396
|
+
let changed = false;
|
|
397
|
+
for (const [name, entry] of Object.entries(value)) {
|
|
398
|
+
if (isRecord(value) && name === CODEX_APP_LAUNCH_VARIABLE && entry === launcher) {
|
|
399
|
+
value[name] = engine;
|
|
400
|
+
changed = true;
|
|
401
|
+
} else if (replaceLaunchSettings(entry, launcher, engine)) changed = true;
|
|
402
|
+
}
|
|
403
|
+
return changed;
|
|
404
|
+
};
|
|
387
405
|
var codexConfigLaunchingTheEngine = (config, launcher, engine) => {
|
|
406
|
+
const expected = parseConfigDocument(config, "toml");
|
|
407
|
+
if (expected.kind !== "parsed") {
|
|
408
|
+
if (config.includes(launcher)) throw new Error("Could not check the launcher settings in Codex config.toml.");
|
|
409
|
+
return null;
|
|
410
|
+
}
|
|
411
|
+
if (!replaceLaunchSettings(expected.value, launcher, engine)) return null;
|
|
388
412
|
const lines = config.split("\n");
|
|
389
413
|
const repointed = lines.map((line) => {
|
|
390
414
|
const setting = CODEX_LAUNCH_SETTING.exec(line);
|
|
391
415
|
return setting !== null && setting[3] === launcher ? `${setting[1]}${JSON.stringify(engine)}${setting[4]}` : line;
|
|
392
416
|
});
|
|
393
|
-
|
|
417
|
+
const rewritten = repointed.join("\n");
|
|
418
|
+
const checked = parseConfigDocument(rewritten, "toml");
|
|
419
|
+
if (checked.kind !== "parsed" || !isDeepStrictEqual(checked.value, expected.value)) {
|
|
420
|
+
throw new Error("Codex config.toml still needs its launcher setting updated.");
|
|
421
|
+
}
|
|
422
|
+
return rewritten;
|
|
394
423
|
};
|
|
395
424
|
var enginesToLaunchInstead = (paths, machine) => {
|
|
396
425
|
const launcher = machine.readFile(paths.launcherPath);
|
|
@@ -403,11 +432,17 @@ var enginesToLaunchInstead = (paths, machine) => {
|
|
|
403
432
|
};
|
|
404
433
|
var engineToLaunchInstead = (paths, machine) => enginesToLaunchInstead(paths, machine).find((engine) => engine !== null && machine.exists(engine)) ?? null;
|
|
405
434
|
var pointCodexBackAtItsEngine = (request, paths, machine) => {
|
|
406
|
-
const engine = engineToLaunchInstead(paths, machine);
|
|
407
|
-
if (engine === null) return;
|
|
408
435
|
const codexConfig = join2(codexHomeFrom(request.homeDir), CODEX_CONFIG_FILE);
|
|
409
436
|
const config = machine.readFile(codexConfig);
|
|
410
437
|
if (config === null) return;
|
|
438
|
+
const engine = engineToLaunchInstead(paths, machine);
|
|
439
|
+
if (engine === null) {
|
|
440
|
+
const parsed = parseConfigDocument(config, "toml");
|
|
441
|
+
if (parsed.kind === "parsed" ? replaceLaunchSettings(parsed.value, paths.launcherPath, "") : config.includes(paths.launcherPath)) {
|
|
442
|
+
throw new Error("Could not find the Codex engine to replace the launcher in config.toml.");
|
|
443
|
+
}
|
|
444
|
+
return;
|
|
445
|
+
}
|
|
411
446
|
const repointed = codexConfigLaunchingTheEngine(config, paths.launcherPath, engine);
|
|
412
447
|
if (repointed !== null) machine.writeFile(codexConfig, repointed, PRIVATE_FILE_MODE);
|
|
413
448
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readExistingMachineId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MNUJYXAH.js";
|
|
4
4
|
import {
|
|
5
5
|
getBaseUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5UXIPTWM.js";
|
|
7
7
|
import {
|
|
8
8
|
NetworkError
|
|
9
9
|
} from "./chunk-CINBAX5G.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
clientContextHeaders,
|
|
15
15
|
redactSecretsFromContent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
17
17
|
|
|
18
18
|
// src/cli/net.ts
|
|
19
19
|
import { createRequire } from "module";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseSseMessages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2U735XOK.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchAsCredential
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M773UCGU.js";
|
|
7
7
|
import {
|
|
8
8
|
malformedApiKeyMessage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5UXIPTWM.js";
|
|
10
10
|
import {
|
|
11
11
|
NPX_LATEST_COMMAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VA573E2C.js";
|
|
13
13
|
|
|
14
14
|
// src/mcp-stdio-bridge.ts
|
|
15
15
|
var MCP_BRIDGE_BINARY = "pushary-mcp";
|