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.
- package/dist/cli/commands/connect.js +5 -4
- package/dist/cli/main.js +1 -1
- package/package.json +1 -1
|
@@ -60,11 +60,12 @@ export async function connectCommand(options = {}) {
|
|
|
60
60
|
cwd: projectRoot,
|
|
61
61
|
execArgv,
|
|
62
62
|
});
|
|
63
|
-
// 等待就绪信号,超时
|
|
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
|
-
},
|
|
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: '守护进程启动超时(
|
|
91
|
+
jsonOutput({ ok: false, command: 'connect', error: '守护进程启动超时(60 秒)' });
|
|
91
92
|
}
|
|
92
93
|
else {
|
|
93
|
-
console.error('守护进程启动超时(
|
|
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.
|
|
57
|
+
.version('0.1.6')
|
|
58
58
|
.option('--json', '以 JSON 格式输出(适用于程序化调用)');
|
|
59
59
|
program
|
|
60
60
|
.command('connect')
|