exomind 0.5.2 → 0.5.3
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.js +5 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3119,7 +3119,7 @@ var {
|
|
|
3119
3119
|
// package.json
|
|
3120
3120
|
var package_default = {
|
|
3121
3121
|
name: "exomind",
|
|
3122
|
-
version: "0.5.
|
|
3122
|
+
version: "0.5.3",
|
|
3123
3123
|
description: "ExoMind \u8DE8\u5E73\u53F0\u547D\u4EE4\u884C\u5BA2\u6237\u7AEF \u2014 \u901A\u8FC7 REST \u4E0E ExoMind \u77E5\u8BC6\u5E93\u4EA4\u4E92(ingest/query/search/review),\u66FF\u4EE3 Windows \u4E0D\u53EF\u7528\u7684 MCP \u5BA2\u6237\u7AEF\u3002",
|
|
3124
3124
|
bin: {
|
|
3125
3125
|
exomind: "dist/cli.js"
|
|
@@ -4368,7 +4368,7 @@ async function doWechat(client, opts, id) {
|
|
|
4368
4368
|
if (!opts.account) throw new Error("\u8BF7\u63D0\u4F9B --account: exomind draft wechat <id> --account <\u516C\u4F17\u53F7>");
|
|
4369
4369
|
const r = await client.post(
|
|
4370
4370
|
`/drafts/${encodeURIComponent(id)}/submit-wechat`,
|
|
4371
|
-
{ account: opts.account, digest: opts.digest, author: opts.author },
|
|
4371
|
+
{ account: opts.account, digest: opts.digest, author: opts.author, cover: opts.cover },
|
|
4372
4372
|
{ timeoutMs: opTimeout(12e4) }
|
|
4373
4373
|
);
|
|
4374
4374
|
output(r, () => {
|
|
@@ -4622,7 +4622,8 @@ function checkMcp(timeoutMs = 6e3) {
|
|
|
4622
4622
|
return new Promise((resolve6) => {
|
|
4623
4623
|
let child;
|
|
4624
4624
|
try {
|
|
4625
|
-
|
|
4625
|
+
const _isWin = process.platform === "win32";
|
|
4626
|
+
child = _isWin ? (0, import_node_child_process.spawn)("exomind mcp", { stdio: ["pipe", "pipe", "pipe"], shell: true }) : (0, import_node_child_process.spawn)("exomind", ["mcp"], { stdio: ["pipe", "pipe", "pipe"] });
|
|
4626
4627
|
} catch (e) {
|
|
4627
4628
|
resolve6({ ok: false, detail: `\u65E0\u6CD5\u542F\u52A8: ${e instanceof Error ? e.message : e}` });
|
|
4628
4629
|
return;
|
|
@@ -4971,7 +4972,7 @@ reviewCmd.action(run((client, opts) => list(client, { limit: toInt(opts.limit) }
|
|
|
4971
4972
|
reviewCmd.command("mark [name...]").description("\u6807\u8BB0\u590D\u4E60 (rating: 1=\u5FD8\u8BB0 2=\u5403\u529B 3=\u987A\u5229 4=\u8F7B\u677E)").option("-r, --rating <n>", "1-4", "3").action(run((client, opts, args) => mark(client, { rating: toInt(opts.rating) }, args)));
|
|
4972
4973
|
program2.command("synthesize [topic...]").description("\u4E3B\u9898\u7EFC\u5408\u62A5\u544A").option("-d, --depth <n>", "\u6DF1\u5EA6 1-5", "2").action(run(synthesize));
|
|
4973
4974
|
program2.command("topics").description("\u9009\u9898\u63A8\u8350").option("-c, --count <n>", "\u6570\u91CF", "5").action(run((client, opts) => topics(client, { count: toInt(opts.count) })));
|
|
4974
|
-
program2.command("draft <action> [target...]").description("\u8349\u7A3F: new <\u9009\u9898> \u751F\u6210 / list \u5217\u8868 / show <id> \u770B\u6B63\u6587 / publish <id> \u5165\u5E93 / wechat <id> \u6295\u516C\u4F17\u53F7").option("--account <name>", "\u76EE\u6807\u516C\u4F17\u53F7(new/wechat)").option("--status <s>", "\u72B6\u6001\u8FC7\u6EE4(list)").option("-p, --page <n>", "\u9875\u7801(list)", "1").option("-s, --size <n>", "\u6BCF\u9875(list)", "20").option("--digest <text>", "\u6458\u8981(wechat,\u53EF\u9009)").option("--author <name>", "\u7B14\u540D(wechat,\u53EF\u9009)").action(run((client, opts, args) => draft(client, opts, args)));
|
|
4975
|
+
program2.command("draft <action> [target...]").description("\u8349\u7A3F: new <\u9009\u9898> \u751F\u6210 / list \u5217\u8868 / show <id> \u770B\u6B63\u6587 / publish <id> \u5165\u5E93 / wechat <id> \u6295\u516C\u4F17\u53F7").option("--account <name>", "\u76EE\u6807\u516C\u4F17\u53F7(new/wechat)").option("--status <s>", "\u72B6\u6001\u8FC7\u6EE4(list)").option("-p, --page <n>", "\u9875\u7801(list)", "1").option("-s, --size <n>", "\u6BCF\u9875(list)", "20").option("--digest <text>", "\u6458\u8981(wechat,\u53EF\u9009)").option("--author <name>", "\u7B14\u540D(wechat,\u53EF\u9009)").option("--cover <mode>", "\u5C01\u9762(wechat): config=\u53F7\u914D\u7F6E\u9ED8\u8BA4 / default=\u670D\u52A1\u7AEF\u9ED8\u8BA4\u5C01\u9762", "config").action(run((client, opts, args) => draft(client, opts, args)));
|
|
4975
4976
|
program2.command("gaps").description("\u77E5\u8BC6\u7F3A\u53E3(\u88AB\u591A\u6B21\u641C\u7D22\u4F46\u65E0\u7ED3\u679C)").option("-d, --days <n>", "\u56DE\u6EAF\u5929\u6570", "30").action(run((client, opts) => gaps(client, { days: toInt(opts.days) })));
|
|
4976
4977
|
program2.command("feedback [page...]").description("\u5BF9\u9875\u9762/\u5B9E\u4F53\u6253\u53CD\u9988 (positive|negative)").action(run(feedback));
|
|
4977
4978
|
program2.command("daily").description("\u6BCF\u65E5\u6D3B\u52A8\u6458\u8981").option("-d, --days <n>", "\u56DE\u6EAF\u5929\u6570", "1").action(run((client, opts) => daily(client, { days: toInt(opts.days) })));
|