@plaud-ai/mcp 0.1.21 → 0.1.22
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/dist/index.js +9 -4
- package/dist/{setup-EPVXIPCO.js → setup-NRQMLV6F.js} +22 -0
- package/package.json +1 -1
- package/plugin.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30982,23 +30982,28 @@ server.tool("logout", "Log out, sign out, revoke authorization, and disconnect f
|
|
|
30982
30982
|
};
|
|
30983
30983
|
});
|
|
30984
30984
|
async function main() {
|
|
30985
|
+
if (process.argv[2] === "clean-plugin") {
|
|
30986
|
+
const { runCleanPlugin } = await import("./setup-NRQMLV6F.js");
|
|
30987
|
+
await runCleanPlugin();
|
|
30988
|
+
return;
|
|
30989
|
+
}
|
|
30985
30990
|
if (process.argv[2] === "setup" && process.argv[3] === "codex") {
|
|
30986
|
-
const { runSetupCodex } = await import("./setup-
|
|
30991
|
+
const { runSetupCodex } = await import("./setup-NRQMLV6F.js");
|
|
30987
30992
|
await runSetupCodex();
|
|
30988
30993
|
return;
|
|
30989
30994
|
}
|
|
30990
30995
|
if (process.argv[2] === "unsetup" && process.argv[3] === "codex") {
|
|
30991
|
-
const { runUnsetupCodex } = await import("./setup-
|
|
30996
|
+
const { runUnsetupCodex } = await import("./setup-NRQMLV6F.js");
|
|
30992
30997
|
await runUnsetupCodex();
|
|
30993
30998
|
return;
|
|
30994
30999
|
}
|
|
30995
31000
|
if (process.argv[2] === "setup") {
|
|
30996
|
-
const { runSetup } = await import("./setup-
|
|
31001
|
+
const { runSetup } = await import("./setup-NRQMLV6F.js");
|
|
30997
31002
|
await runSetup();
|
|
30998
31003
|
return;
|
|
30999
31004
|
}
|
|
31000
31005
|
if (process.argv[2] === "unsetup") {
|
|
31001
|
-
const { runUnsetup } = await import("./setup-
|
|
31006
|
+
const { runUnsetup } = await import("./setup-NRQMLV6F.js");
|
|
31002
31007
|
await runUnsetup();
|
|
31003
31008
|
return;
|
|
31004
31009
|
}
|
|
@@ -21,6 +21,27 @@ function getConfigPath() {
|
|
|
21
21
|
}
|
|
22
22
|
return null;
|
|
23
23
|
}
|
|
24
|
+
async function runCleanPlugin() {
|
|
25
|
+
const { rm } = await import("fs/promises");
|
|
26
|
+
const cacheDir = join(homedir(), ".claude", "plugins", "cache", "plaud-ai");
|
|
27
|
+
try {
|
|
28
|
+
await rm(cacheDir, { recursive: true, force: true });
|
|
29
|
+
console.log("Cleared plugin cache.");
|
|
30
|
+
} catch {
|
|
31
|
+
console.log("Plugin cache not found, skipping.");
|
|
32
|
+
}
|
|
33
|
+
for (const file of ["settings.json", "settings.local.json"]) {
|
|
34
|
+
const p = join(homedir(), ".claude", file);
|
|
35
|
+
try {
|
|
36
|
+
const raw = await readFile(p, "utf-8");
|
|
37
|
+
const s = JSON.parse(raw);
|
|
38
|
+
delete s.enabledPlugins;
|
|
39
|
+
await writeFile(p, JSON.stringify(s, null, 2), "utf-8");
|
|
40
|
+
} catch {
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
console.log("Done. Run /plugin install plaud in Claude Code, then restart.");
|
|
44
|
+
}
|
|
24
45
|
async function runSetupCodex() {
|
|
25
46
|
const configPath = join(homedir(), ".codex", "config.toml");
|
|
26
47
|
const { command, args } = getMcpEntry();
|
|
@@ -112,6 +133,7 @@ async function runSetup() {
|
|
|
112
133
|
console.log("Please restart Claude Desktop to complete the setup.");
|
|
113
134
|
}
|
|
114
135
|
export {
|
|
136
|
+
runCleanPlugin,
|
|
115
137
|
runSetup,
|
|
116
138
|
runSetupCodex,
|
|
117
139
|
runUnsetup,
|
package/package.json
CHANGED