notebooklm-mcp-server 1.1.8 → 1.1.9
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 +1 -1
- package/dist/server.js +2 -2
- package/dist/update.d.ts +1 -1
- package/dist/update.js +22 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
package/dist/server.js
CHANGED
|
@@ -6,7 +6,7 @@ import { AuthManager } from "./auth.js";
|
|
|
6
6
|
import chalk from "chalk";
|
|
7
7
|
const server = new Server({
|
|
8
8
|
name: "notebooklm-mcp-server",
|
|
9
|
-
version: "1.1.
|
|
9
|
+
version: "1.1.9",
|
|
10
10
|
}, {
|
|
11
11
|
capabilities: {
|
|
12
12
|
tools: {},
|
|
@@ -364,7 +364,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
364
364
|
async function main() {
|
|
365
365
|
const transport = new StdioServerTransport();
|
|
366
366
|
await server.connect(transport);
|
|
367
|
-
console.error("NotebookLM MCP Server v1.1.
|
|
367
|
+
console.error("NotebookLM MCP Server v1.1.9 running on stdio");
|
|
368
368
|
}
|
|
369
369
|
main().catch((error) => {
|
|
370
370
|
console.error("Fatal error:", error);
|
package/dist/update.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function checkForUpdates(silentStart?: boolean): Promise<
|
|
1
|
+
export declare function checkForUpdates(silentStart?: boolean): Promise<unknown>;
|
package/dist/update.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import { execSync } from 'child_process';
|
|
2
|
+
import { execSync, spawn } from 'child_process';
|
|
3
3
|
import chalk from 'chalk';
|
|
4
4
|
import path from 'path';
|
|
5
5
|
import fs from 'fs';
|
|
@@ -19,14 +19,31 @@ export async function checkForUpdates(silentStart = true) {
|
|
|
19
19
|
const latestVersion = data.version;
|
|
20
20
|
if (latestVersion !== currentVersion) {
|
|
21
21
|
console.error(chalk.yellow(`\n[Update] ¡Nueva versión disponible! (${latestVersion})`));
|
|
22
|
-
console.error(chalk.yellow(`[Update] Actualizando automáticamente...\n`));
|
|
22
|
+
console.error(chalk.yellow(`[Update] Actualizando y relanzando automáticamente...\n`));
|
|
23
23
|
try {
|
|
24
|
+
// Perform global install
|
|
24
25
|
execSync('npm install -g notebooklm-mcp-server@latest', { stdio: ['ignore', 'ignore', 'inherit'] });
|
|
25
|
-
console.error(chalk.green('[Update] Actualización completada
|
|
26
|
-
|
|
26
|
+
console.error(chalk.green('[Update] Actualización completada con éxito.'));
|
|
27
|
+
console.error(chalk.cyan('[Update] Relanzando aplicación...\n'));
|
|
28
|
+
// Relaunch the process with the same arguments
|
|
29
|
+
const args = process.argv.slice(1);
|
|
30
|
+
// We use the first argument which is the path to the script or bin
|
|
31
|
+
// But since we updated globally, we want to run the global command if possible
|
|
32
|
+
// or just spawn the same entry point.
|
|
33
|
+
const child = spawn(process.argv[0], args, {
|
|
34
|
+
stdio: 'inherit',
|
|
35
|
+
detached: false
|
|
36
|
+
});
|
|
37
|
+
child.on('exit', (code) => {
|
|
38
|
+
process.exit(code || 0);
|
|
39
|
+
});
|
|
40
|
+
// Block this process until the new one finishes (effectively handover)
|
|
41
|
+
// or just exit and let the child take over if it were detached,
|
|
42
|
+
// but inherit + blocking is cleaner for MCP.
|
|
43
|
+
return new Promise(() => { }); // Never resolve, wait child
|
|
27
44
|
}
|
|
28
45
|
catch (updateError) {
|
|
29
|
-
console.error(chalk.red('[Update] Error al actualizar automáticamente.'));
|
|
46
|
+
console.error(chalk.red('[Update] Error al actualizar automáticamente. Por favor, reinicia manualmente.'));
|
|
30
47
|
}
|
|
31
48
|
}
|
|
32
49
|
else if (!silentStart) {
|