pushary 1.9.251 → 1.9.253
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 +11 -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-HDETVYCD.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 +33 -31
- 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-RC77CCJG.js → chunk-23WMHZ3S.js} +5 -5
- package/dist/{chunk-QG35IQTV.js → chunk-24MGJAU6.js} +1 -1
- package/dist/{chunk-K26EFQLD.js → chunk-3P5KVOFE.js} +6 -6
- package/dist/{chunk-LRCPKBFY.js → chunk-3XSQBXNQ.js} +7 -7
- package/dist/{chunk-AAXFWQ7I.js → chunk-3YUQ7NDR.js} +3 -3
- package/dist/{chunk-E5CQGHVW.js → chunk-44GOUZCE.js} +6 -6
- package/dist/{chunk-44WHETMS.js → chunk-4DOUCVU6.js} +10 -10
- package/dist/{chunk-UIMKOA23.js → chunk-4IT57V3A.js} +3 -3
- package/dist/{chunk-Z77XTRVT.js → chunk-4LTASS5P.js} +1 -1
- package/dist/chunk-5LK3UY46.js +30 -0
- package/dist/{chunk-VEFEHJLI.js → chunk-5QFLGM7U.js} +5 -5
- package/dist/{chunk-DQK6NXJH.js → chunk-5UXIPTWM.js} +2 -2
- package/dist/{chunk-MTUDWLDC.js → chunk-5VC3BZEW.js} +5 -5
- package/dist/{chunk-G26FRSLD.js → chunk-5Y4DOTXC.js} +6 -6
- package/dist/{chunk-YXIJVUEU.js → chunk-6CQT3VM3.js} +56 -10
- package/dist/{chunk-FBHV5HIP.js → chunk-6I3NVT36.js} +4 -4
- package/dist/{chunk-557J45VJ.js → chunk-6JVSKDBD.js} +2 -2
- package/dist/{chunk-F6WOVDJY.js → chunk-6OFIPAJD.js} +4 -4
- package/dist/{chunk-T2CWUMXR.js → chunk-6S6ASGR3.js} +3 -3
- package/dist/{chunk-7A6YK73O.js → chunk-6WHXLA4Y.js} +2 -2
- package/dist/{chunk-KK7JK2F3.js → chunk-76OCRCIM.js} +8 -29
- package/dist/{chunk-ZVPI5BQR.js → chunk-7D25WOPT.js} +1 -1
- package/dist/{chunk-UZXTAN6S.js → chunk-7LRR6GEH.js} +7 -4
- package/dist/{chunk-AUU5RTTF.js → chunk-APPAY2PH.js} +6 -6
- package/dist/{chunk-2RJOCEWT.js → chunk-AYVW4G3V.js} +1 -1
- package/dist/{chunk-M6QOKJUL.js → chunk-CIJG74KZ.js} +1 -1
- package/dist/{chunk-PHTMOEG6.js → chunk-CMSBS2K4.js} +4 -4
- package/dist/{chunk-M4H5OBXD.js → chunk-CVVHT4KY.js} +3 -3
- package/dist/{chunk-VNNXZXHM.js → chunk-CZ4EG35M.js} +1 -1
- package/dist/{chunk-PRU3HRGX.js → chunk-D7TUN2MX.js} +16 -16
- package/dist/{chunk-P7LH7M6N.js → chunk-ECXLAR6D.js} +2 -2
- package/dist/{chunk-K7MEMCFJ.js → chunk-EVG4SHZR.js} +3 -3
- package/dist/{chunk-EEFE64MW.js → chunk-FM4ULVPT.js} +1 -1
- package/dist/{chunk-K36ZA3KL.js → chunk-GAX2UUKP.js} +2 -2
- package/dist/{chunk-FBJFTOCJ.js → chunk-GK7DZPLY.js} +12 -12
- package/dist/{chunk-OM7ZE2KW.js → chunk-GM4CMN4A.js} +1 -1
- package/dist/{chunk-IEOTIQDF.js → chunk-GNMEBYBT.js} +5 -5
- package/dist/{chunk-7E7FXU2S.js → chunk-GQLHV36Q.js} +1 -1
- package/dist/{chunk-STOOLWMG.js → chunk-HPL432EE.js} +2 -2
- package/dist/{chunk-DPUL5NO5.js → chunk-ICWPQWXJ.js} +5 -5
- package/dist/{chunk-PRQJDPAO.js → chunk-IFQROMKD.js} +2 -2
- package/dist/{chunk-UJR2DFED.js → chunk-IRWWJ6GZ.js} +3 -3
- package/dist/{chunk-JY2GFDHW.js → chunk-IXLXPPSD.js} +1 -1
- package/dist/{chunk-CQIM7TDK.js → chunk-JDTDZMIQ.js} +12 -5
- package/dist/{chunk-XEVRUUDW.js → chunk-JIZNXYN5.js} +2 -2
- package/dist/{chunk-VGKU4AFE.js → chunk-LM7GN5SQ.js} +1 -1
- package/dist/{chunk-JVBRHL7X.js → chunk-LQRYXA4E.js} +3 -3
- package/dist/{chunk-WYAGS2L6.js → chunk-LUWFNQEB.js} +6 -6
- package/dist/{chunk-VVKCEDTZ.js → chunk-M4ZP7SGR.js} +1 -1
- package/dist/{chunk-UGGISSH4.js → chunk-M773UCGU.js} +1 -1
- package/dist/{chunk-4LBBSUF7.js → chunk-MERKWOJA.js} +2 -2
- package/dist/{chunk-N6TD76US.js → chunk-MMEUYJTO.js} +3 -3
- package/dist/{chunk-YUO2WNDQ.js → chunk-N7HFPPDR.js} +25 -10
- package/dist/{chunk-TDEAHWEX.js → chunk-N7RKXLJR.js} +1 -1
- package/dist/{chunk-Z4L3R6UU.js → chunk-NMADZVTC.js} +1 -1
- package/dist/{chunk-D72OYETQ.js → chunk-O4VX3PYZ.js} +5 -5
- package/dist/{chunk-IWU3QQXI.js → chunk-O5BD64JZ.js} +1 -1
- package/dist/{chunk-TFTPNS6R.js → chunk-PXGN373Y.js} +5 -5
- package/dist/{chunk-GZMWTWC5.js → chunk-QZESFXVG.js} +4 -4
- package/dist/{chunk-4PQK2E6F.js → chunk-R4JAJBHJ.js} +1 -1
- package/dist/{chunk-YZIESS3R.js → chunk-RJOS3AEP.js} +4 -4
- package/dist/{chunk-63PDFOKG.js → chunk-SJWGQ5LF.js} +3 -3
- package/dist/{chunk-AGJA7LW6.js → chunk-SQMYR6SW.js} +5 -5
- package/dist/{chunk-LVHTTUGF.js → chunk-SUCVVSV6.js} +11 -11
- package/dist/{chunk-GIX4TVRM.js → chunk-SZMGZ3C5.js} +21 -4
- package/dist/{chunk-2S52I655.js → chunk-TKJIBVHJ.js} +2 -2
- package/dist/{chunk-6E5MBUJ6.js → chunk-TXRII4O4.js} +1 -1
- package/dist/{chunk-3PWJ27G2.js → chunk-UIUN2AIM.js} +4 -4
- package/dist/{chunk-XAEMSYXQ.js → chunk-UKQ5MEOA.js} +1 -1
- package/dist/{chunk-UGUEVRCL.js → chunk-UTP7PN5S.js} +4 -4
- package/dist/{chunk-FQOM4U2Q.js → chunk-UUDXTZND.js} +3 -3
- package/dist/{chunk-H3HURS3J.js → chunk-UWD3IGPJ.js} +12 -10
- package/dist/{chunk-ZAAYMC7X.js → chunk-VA573E2C.js} +1 -1
- package/dist/{chunk-YGDRJZDL.js → chunk-VFZEUKWI.js} +1 -1
- package/dist/{chunk-QQVCYJ3I.js → chunk-VKBZEIFU.js} +7 -7
- package/dist/{chunk-VXOZ4Q4J.js → chunk-WEHPMIAG.js} +8 -8
- package/dist/{chunk-YITMIDDV.js → chunk-WL3WLBDO.js} +1 -1
- package/dist/{chunk-6GF2JWI6.js → chunk-XB4GIETP.js} +1 -1
- package/dist/{chunk-54EXI2EP.js → chunk-XEEUUUFY.js} +4 -4
- package/dist/{chunk-B4N3VLXT.js → chunk-XIZWKMF2.js} +5 -5
- package/dist/{chunk-JCVHTX6Q.js → chunk-XOXSCTXN.js} +2 -2
- package/dist/{chunk-JI6TV7FH.js → chunk-YUV6X65O.js} +4 -4
- package/dist/{codex-app-cards-switch-EPNSIXTL.js → codex-app-cards-switch-NN625ND3.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-ZKAL5O2T.js} +3 -3
- package/dist/{codex-session-launch-U2FWWVEH.js → codex-session-launch-4OFEQV4L.js} +20 -20
- package/dist/{config-5K6TBO3D.js → config-SZ2H3UZ3.js} +3 -3
- package/dist/{global-upgrade-A5ZCPOES.js → global-upgrade-TLFBH3Z7.js} +9 -9
- package/dist/{identity-GOG4UBHM.js → identity-HYFFEFTV.js} +4 -4
- package/dist/{live-capabilities-KLUTEUZX.js → live-capabilities-DUDIPA3U.js} +4 -4
- package/dist/{paths-UUHG2JRC.js → paths-3UYWAUJ4.js} +3 -3
- package/dist/reapply-4ECHOBPO.js +76 -0
- package/dist/src/index.js +34 -33
- package/dist/{upgrade-lock-SWYNQVNQ.js → upgrade-lock-3733DY3A.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
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
openCodePluginArgv,
|
|
4
4
|
openCodePluginModule,
|
|
5
5
|
renderOpenCodePlugin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CIJG74KZ.js";
|
|
7
7
|
import {
|
|
8
8
|
OPENCODE_FAILED_EVENT,
|
|
9
9
|
OPENCODE_IDLE_EVENT,
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
OPENCODE_PLUGIN_SIBLING,
|
|
13
13
|
OPENCODE_PLUGIN_SIBLING_CONTENTS,
|
|
14
14
|
OPENCODE_SUBAGENT_IDLE_EVENT
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LM7GN5SQ.js";
|
|
16
16
|
import {
|
|
17
17
|
compatibleConfigFile
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-76OCRCIM.js";
|
|
19
19
|
import {
|
|
20
20
|
hookOwnerOf,
|
|
21
21
|
hookOwnerOfCommands
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UTP7PN5S.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_CHOICES
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-FM4ULVPT.js";
|
|
26
26
|
import {
|
|
27
27
|
OPENCODE_INSTRUCTIONS_LABEL,
|
|
28
28
|
bridgeStub,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
resolveBridgeStub,
|
|
37
37
|
vscodePluginDir,
|
|
38
38
|
windowsNodeLauncherFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-N7HFPPDR.js";
|
|
40
40
|
import {
|
|
41
41
|
readJsonSafe
|
|
42
42
|
} from "./chunk-PM2NRK6Y.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
OPENCODE_APPROVAL_EVENT,
|
|
47
47
|
hookCompatibleProfile,
|
|
48
48
|
isRecord
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
50
50
|
|
|
51
51
|
// src/opencode-config.ts
|
|
52
52
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callDecisionStore,
|
|
3
3
|
identifyingToolInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SUCVVSV6.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalJson
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-N7HFPPDR.js";
|
|
8
8
|
import {
|
|
9
9
|
BYPASS_PERMISSION_MODE
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
11
11
|
|
|
12
12
|
// src/phone-approval.ts
|
|
13
13
|
import { createHash } from "crypto";
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
} from "./chunk-3PSNUHC5.js";
|
|
5
5
|
import {
|
|
6
6
|
getMachineId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WL3WLBDO.js";
|
|
8
8
|
import {
|
|
9
9
|
readControlMode
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6S6ASGR3.js";
|
|
11
11
|
import {
|
|
12
12
|
pusharyDir
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-N7HFPPDR.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveGlobalBinary,
|
|
16
16
|
withoutNpmInstallConsent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6I3NVT36.js";
|
|
18
18
|
import {
|
|
19
19
|
getApiKey
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5UXIPTWM.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-SZMGZ3C5.js";
|
|
37
37
|
|
|
38
38
|
// src/daemon-entry-guard.ts
|
|
39
39
|
import { mkdirSync, readFileSync } from "fs";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-WHB622LP.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureDaemonRunning
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-44GOUZCE.js";
|
|
7
7
|
import {
|
|
8
8
|
hookOwnerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UTP7PN5S.js";
|
|
10
10
|
import {
|
|
11
11
|
hookMeaning
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IXLXPPSD.js";
|
|
13
13
|
import {
|
|
14
14
|
buildTranscriptRecords,
|
|
15
15
|
changedRecipientsMessage,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
uploadTranscriptRecords,
|
|
25
25
|
verifyAnchoredRecipients,
|
|
26
26
|
wrapSessionKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-CVVHT4KY.js";
|
|
28
28
|
import {
|
|
29
29
|
transcriptEnvironmentPreference,
|
|
30
30
|
transcriptsEnabled
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CZ4EG35M.js";
|
|
32
32
|
import {
|
|
33
33
|
external_exports,
|
|
34
34
|
ownedOnlyByThisUser,
|
|
@@ -36,19 +36,19 @@ import {
|
|
|
36
36
|
} from "./chunk-P6DUWKAO.js";
|
|
37
37
|
import {
|
|
38
38
|
fetchAsCredential
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-M773UCGU.js";
|
|
40
40
|
import {
|
|
41
41
|
readTranscriptPreference
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-6S6ASGR3.js";
|
|
43
43
|
import {
|
|
44
44
|
claudeConfigDir,
|
|
45
45
|
codexHome,
|
|
46
46
|
pusharyDir
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-N7HFPPDR.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiKey,
|
|
50
50
|
getBaseUrl
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-5UXIPTWM.js";
|
|
52
52
|
import {
|
|
53
53
|
writeJsonAtomic,
|
|
54
54
|
writeJsonAtomicDurable
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
isHookSource,
|
|
62
62
|
isRecord,
|
|
63
63
|
redactSecretsFromContent
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
65
65
|
|
|
66
66
|
// src/transcript-registration.ts
|
|
67
67
|
import { createHash as createHash4 } from "crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pusharyFetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UUDXTZND.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
|
isValidApiKey,
|
|
15
15
|
normalizeKeyScope
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
17
17
|
|
|
18
18
|
// src/session.ts
|
|
19
19
|
var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;
|
|
@@ -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
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UNSET_IGNORED_SHELL_VALUE_STEP
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QZESFXVG.js";
|
|
4
4
|
import {
|
|
5
5
|
notificationAnswerStep
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-APPAY2PH.js";
|
|
7
7
|
import {
|
|
8
8
|
matchMacAccountStep,
|
|
9
9
|
retryAgentCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MMEUYJTO.js";
|
|
11
11
|
import {
|
|
12
12
|
NPX_LATEST_COMMAND,
|
|
13
13
|
npmExecSetupCommandFor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VA573E2C.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-SZMGZ3C5.js";
|
|
25
25
|
|
|
26
26
|
// src/setup/closing.ts
|
|
27
27
|
var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchAsCredential
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M773UCGU.js";
|
|
4
4
|
import {
|
|
5
5
|
keyCheckFromResponse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4IT57V3A.js";
|
|
7
7
|
import {
|
|
8
8
|
installNetworkDefaults
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UUDXTZND.js";
|
|
10
10
|
import {
|
|
11
11
|
getBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5UXIPTWM.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isToolErrorResult,
|
|
16
16
|
toolFailureCodeOfResult
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
18
18
|
|
|
19
19
|
// src/retry.ts
|
|
20
20
|
var isRetryable = (err) => {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
forkFinishWithUpgradeLock,
|
|
4
4
|
installWithUpgradeLock,
|
|
5
5
|
releaseAutoUpdateLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MERKWOJA.js";
|
|
7
7
|
import {
|
|
8
8
|
phoneStartIsRequired
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LQRYXA4E.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-GAX2UUKP.js";
|
|
22
22
|
import {
|
|
23
23
|
autoUpdateLock,
|
|
24
24
|
autoUpdateLog,
|
|
25
25
|
autoUpdateState
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-N7HFPPDR.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-6I3NVT36.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";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installedCodexApp,
|
|
10
10
|
readCodexAppRuntime,
|
|
11
11
|
shellQuoted
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YUV6X65O.js";
|
|
13
13
|
import {
|
|
14
14
|
CODEX_APP_LAUNCH_AT_LOGIN_VERB,
|
|
15
15
|
CODEX_APP_LAUNCH_VARIABLE,
|
|
@@ -18,21 +18,29 @@ 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-44GOUZCE.js";
|
|
24
27
|
import {
|
|
25
28
|
codexHomeFrom
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-N7HFPPDR.js";
|
|
27
30
|
import {
|
|
31
|
+
readRegularTextFile,
|
|
28
32
|
writeFileAtomic
|
|
29
33
|
} from "./chunk-PM2NRK6Y.js";
|
|
34
|
+
import {
|
|
35
|
+
isRecord
|
|
36
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
30
37
|
|
|
31
38
|
// src/codex-app-cards-switch.ts
|
|
32
39
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
33
|
-
import { existsSync as existsSync2, mkdirSync, readFileSync, rmSync } from "fs";
|
|
40
|
+
import { existsSync as existsSync2, lstatSync, mkdirSync, readFileSync, rmSync, statSync } from "fs";
|
|
41
|
+
import { isDeepStrictEqual } from "util";
|
|
34
42
|
import { homedir as homedir2 } from "os";
|
|
35
|
-
import { isAbsolute as isAbsolute2, join as join2 } from "path";
|
|
43
|
+
import { dirname, isAbsolute as isAbsolute2, join as join2 } from "path";
|
|
36
44
|
|
|
37
45
|
// src/cli/mac-leftovers.ts
|
|
38
46
|
import { execSync, execFileSync } from "child_process";
|
|
@@ -383,14 +391,36 @@ var codexAppCardsReport = (paths, machine) => {
|
|
|
383
391
|
var isKeptOnForTheMacApp = (request, paths, machine) => request.keepWhatTheMacAppTurnedOn && turnedOnByTheMacApp(codexAppCardsReceiptFrom(machine.readFile(paths.receiptPath))) && codexAppCardsStatus(paths, machine).kind !== "off";
|
|
384
392
|
var isKeptOffForTheMacApp = (request, paths, machine) => request.keepWhatTheMacAppTurnedOn && machine.exists(paths.turnedOffPath);
|
|
385
393
|
var CODEX_CONFIG_FILE = "config.toml";
|
|
386
|
-
var CODEX_LAUNCH_SETTING = new RegExp(`^(\\s*${CODEX_APP_LAUNCH_VARIABLE}\\s*=\\s*)(["'])(
|
|
394
|
+
var CODEX_LAUNCH_SETTING = new RegExp(`^(\\s*${CODEX_APP_LAUNCH_VARIABLE}\\s*=\\s*)(["'])(.*?)\\2(\\s*(?:#.*)?\\r?)$`);
|
|
395
|
+
var replaceLaunchSettings = (value, launcher, engine) => {
|
|
396
|
+
if (!isRecord(value) && !Array.isArray(value)) return false;
|
|
397
|
+
let changed = false;
|
|
398
|
+
for (const [name, entry] of Object.entries(value)) {
|
|
399
|
+
if (isRecord(value) && name === CODEX_APP_LAUNCH_VARIABLE && entry === launcher) {
|
|
400
|
+
value[name] = engine;
|
|
401
|
+
changed = true;
|
|
402
|
+
} else if (replaceLaunchSettings(entry, launcher, engine)) changed = true;
|
|
403
|
+
}
|
|
404
|
+
return changed;
|
|
405
|
+
};
|
|
387
406
|
var codexConfigLaunchingTheEngine = (config, launcher, engine) => {
|
|
407
|
+
const expected = parseConfigDocument(config, "toml");
|
|
408
|
+
if (expected.kind !== "parsed") {
|
|
409
|
+
if (config.includes(launcher)) throw new Error("Could not check the launcher settings in Codex config.toml.");
|
|
410
|
+
return null;
|
|
411
|
+
}
|
|
412
|
+
if (!replaceLaunchSettings(expected.value, launcher, engine)) return null;
|
|
388
413
|
const lines = config.split("\n");
|
|
389
414
|
const repointed = lines.map((line) => {
|
|
390
415
|
const setting = CODEX_LAUNCH_SETTING.exec(line);
|
|
391
416
|
return setting !== null && setting[3] === launcher ? `${setting[1]}${JSON.stringify(engine)}${setting[4]}` : line;
|
|
392
417
|
});
|
|
393
|
-
|
|
418
|
+
const rewritten = repointed.join("\n");
|
|
419
|
+
const checked = parseConfigDocument(rewritten, "toml");
|
|
420
|
+
if (checked.kind !== "parsed" || !isDeepStrictEqual(checked.value, expected.value)) {
|
|
421
|
+
throw new Error("Codex config.toml still needs its launcher setting updated.");
|
|
422
|
+
}
|
|
423
|
+
return rewritten;
|
|
394
424
|
};
|
|
395
425
|
var enginesToLaunchInstead = (paths, machine) => {
|
|
396
426
|
const launcher = machine.readFile(paths.launcherPath);
|
|
@@ -403,11 +433,17 @@ var enginesToLaunchInstead = (paths, machine) => {
|
|
|
403
433
|
};
|
|
404
434
|
var engineToLaunchInstead = (paths, machine) => enginesToLaunchInstead(paths, machine).find((engine) => engine !== null && machine.exists(engine)) ?? null;
|
|
405
435
|
var pointCodexBackAtItsEngine = (request, paths, machine) => {
|
|
406
|
-
const engine = engineToLaunchInstead(paths, machine);
|
|
407
|
-
if (engine === null) return;
|
|
408
436
|
const codexConfig = join2(codexHomeFrom(request.homeDir), CODEX_CONFIG_FILE);
|
|
409
|
-
const config = machine.
|
|
437
|
+
const config = machine.readCodexConfig(codexConfig);
|
|
410
438
|
if (config === null) return;
|
|
439
|
+
const engine = engineToLaunchInstead(paths, machine);
|
|
440
|
+
if (engine === null) {
|
|
441
|
+
const parsed = parseConfigDocument(config, "toml");
|
|
442
|
+
if (parsed.kind === "parsed" ? replaceLaunchSettings(parsed.value, paths.launcherPath, "") : config.includes(paths.launcherPath)) {
|
|
443
|
+
throw new Error("Could not find the Codex engine to replace the launcher in config.toml.");
|
|
444
|
+
}
|
|
445
|
+
return;
|
|
446
|
+
}
|
|
411
447
|
const repointed = codexConfigLaunchingTheEngine(config, paths.launcherPath, engine);
|
|
412
448
|
if (repointed !== null) machine.writeFile(codexConfig, repointed, PRIVATE_FILE_MODE);
|
|
413
449
|
};
|
|
@@ -477,9 +513,19 @@ var fileContents = (path) => {
|
|
|
477
513
|
return null;
|
|
478
514
|
}
|
|
479
515
|
};
|
|
516
|
+
var readEffectiveCodexConfig = (path) => {
|
|
517
|
+
const config = readRegularTextFile(path, Number.MAX_SAFE_INTEGER);
|
|
518
|
+
if (config.kind === "ok") return config.value;
|
|
519
|
+
if (config.kind !== "missing") throw config.error;
|
|
520
|
+
let ancestor = path;
|
|
521
|
+
while (!lstatSync(ancestor, { throwIfNoEntry: false })) ancestor = dirname(ancestor);
|
|
522
|
+
if (ancestor === path || !statSync(ancestor).isDirectory()) throw new Error(`Could not read the Codex config at ${path}`);
|
|
523
|
+
return null;
|
|
524
|
+
};
|
|
480
525
|
var codexAppCardsFileAccessOnThisMac = {
|
|
481
526
|
exists: existsSync2,
|
|
482
527
|
readFile: fileContents,
|
|
528
|
+
readCodexConfig: readEffectiveCodexConfig,
|
|
483
529
|
makeDirectory: (path, mode) => {
|
|
484
530
|
mkdirSync(path, { recursive: true, mode });
|
|
485
531
|
},
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./chunk-CXQWDQCJ.js";
|
|
20
20
|
import {
|
|
21
21
|
redactSecretsFromContent
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SZMGZ3C5.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-TLFBH3Z7.js");
|
|
614
|
+
const { canonicalLockPath, installWithUpgradeLock, leftAnUnfinishedInstallHere, ownsUpgradeLock } = await import("./upgrade-lock-3733DY3A.js");
|
|
615
|
+
const { autoUpdateLock } = await import("./paths-3UYWAUJ4.js");
|
|
616
616
|
const lockPath = options.lockPath ?? autoUpdateLock();
|
|
617
617
|
const lockFile = canonicalLockPath(lockPath);
|
|
618
618
|
const unfinishedHere = failuresThisProcessLeftUnfinished.get(lockFile);
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
macAppBridgeAvailable
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3XSQBXNQ.js";
|
|
4
4
|
import {
|
|
5
5
|
keyPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6S6ASGR3.js";
|
|
7
7
|
import {
|
|
8
8
|
bridgeAgentKey
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-N7HFPPDR.js";
|
|
10
10
|
import {
|
|
11
11
|
readJsonSafe
|
|
12
12
|
} from "./chunk-PM2NRK6Y.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord,
|
|
15
15
|
isValidApiKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
17
17
|
|
|
18
18
|
// src/shared-mcp-key.ts
|
|
19
19
|
var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
|
|
@@ -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,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
claudeConfigDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N7HFPPDR.js";
|
|
4
4
|
import {
|
|
5
5
|
claudePermissionRulesFromSettings
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
7
7
|
|
|
8
8
|
// src/claude-permission-rules.ts
|
|
9
9
|
import { readFileSync, statSync } from "fs";
|
|
@@ -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-UTP7PN5S.js";
|
|
5
8
|
import {
|
|
6
9
|
CLAUDE_CODE_AGENT
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SUCVVSV6.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-N7HFPPDR.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,
|
|
@@ -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 };
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
OPENCLAW_ENVIRONMENT_KEYS,
|
|
6
6
|
openClawEnvironmentOf,
|
|
7
7
|
openClawPathsFrom
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-N7HFPPDR.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePathBinary
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6I3NVT36.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SZMGZ3C5.js";
|
|
15
15
|
|
|
16
16
|
// src/openclaw/wiring-state.ts
|
|
17
17
|
var OPENCLAW_PLUGIN_ID = "pushary";
|
|
@@ -89,11 +89,14 @@ var isOpenClawWired = (state) => state.kind === "wired";
|
|
|
89
89
|
var isOursToRemove = (facts) => facts.kind === "installed" && facts.packageName === OPENCLAW_PLUGIN_PACKAGE;
|
|
90
90
|
var namesThePlugin = (table) => isRecord(table) && Object.hasOwn(table, OPENCLAW_PLUGIN_ID);
|
|
91
91
|
var loadsAFolderNamedForThePlugin = (load) => isRecord(load) && Array.isArray(load.paths) && load.paths.some((path) => typeof path === "string" && path.includes(OPENCLAW_PLUGIN_ID));
|
|
92
|
+
var hasInclude = (value) => isRecord(value) && Object.hasOwn(value, "$include");
|
|
92
93
|
var pusharyPluginInOpenClawConfig = (config) => {
|
|
93
|
-
if (!isRecord(config)) return "unreadable";
|
|
94
|
+
if (!isRecord(config) || hasInclude(config)) return "unreadable";
|
|
94
95
|
const plugins = config.plugins;
|
|
95
96
|
if (plugins === void 0) return "absent";
|
|
96
97
|
if (!isRecord(plugins)) return "unreadable";
|
|
98
|
+
const paths = isRecord(plugins.load) ? plugins.load.paths : void 0;
|
|
99
|
+
if ([plugins, plugins.entries, plugins.installs, plugins.load, paths].some(hasInclude) || Array.isArray(paths) && paths.some(hasInclude)) return "unreadable";
|
|
97
100
|
return namesThePlugin(plugins.entries) || namesThePlugin(plugins.installs) || loadsAFolderNamedForThePlugin(plugins.load) ? "present" : "absent";
|
|
98
101
|
};
|
|
99
102
|
|