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 CHANGED
@@ -5,7 +5,7 @@ const program = new Command();
5
5
  program
6
6
  .name('notebooklm-mcp-server')
7
7
  .description('NotebookLM MCP Server (Node.js)')
8
- .version('1.1.8');
8
+ .version('1.1.9');
9
9
  program
10
10
  .command('server')
11
11
  .description('Start the MCP server (default)')
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.8",
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.8 running on stdio");
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<void>;
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. Por favor, reinicia la aplicación.\n'));
26
- process.exit(0);
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notebooklm-mcp-server",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "Node.js Model Context Protocol server for Google NotebookLM",
5
5
  "type": "module",
6
6
  "repository": {