remnote-bridge 0.1.5 → 0.1.6

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.
@@ -60,11 +60,12 @@ export async function connectCommand(options = {}) {
60
60
  cwd: projectRoot,
61
61
  execArgv,
62
62
  });
63
- // 等待就绪信号,超时 10
63
+ // 等待就绪信号,超时 60
64
+ // 首次启动可能需要安装 remnote-plugin 依赖(npm install),在 Windows 上可能需要较长时间
64
65
  const ready = await new Promise((resolve) => {
65
66
  const timeout = setTimeout(() => {
66
67
  resolve(null);
67
- }, 10_000);
68
+ }, 60_000);
68
69
  child.on('message', (msg) => {
69
70
  if (isDaemonMessage(msg)) {
70
71
  clearTimeout(timeout);
@@ -87,10 +88,10 @@ export async function connectCommand(options = {}) {
87
88
  child.disconnect?.();
88
89
  if (!ready) {
89
90
  if (json) {
90
- jsonOutput({ ok: false, command: 'connect', error: '守护进程启动超时(10 秒)' });
91
+ jsonOutput({ ok: false, command: 'connect', error: '守护进程启动超时(60 秒)' });
91
92
  }
92
93
  else {
93
- console.error('守护进程启动超时(10 秒)');
94
+ console.error('守护进程启动超时(60 秒)');
94
95
  }
95
96
  process.exitCode = 1;
96
97
  return;
package/dist/cli/main.js CHANGED
@@ -54,7 +54,7 @@ function parseJsonInput(command, jsonStr, requiredFields = []) {
54
54
  program
55
55
  .name('remnote-bridge')
56
56
  .description('RemNote Bridge — CLI + MCP Server + Plugin')
57
- .version('0.1.5')
57
+ .version('0.1.6')
58
58
  .option('--json', '以 JSON 格式输出(适用于程序化调用)');
59
59
  program
60
60
  .command('connect')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remnote-bridge",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "RemNote 自动化桥接工具集:CLI + MCP Server + Plugin",
5
5
  "type": "module",
6
6
  "bin": {