exomind 0.5.2 → 0.6.0
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 +11 -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.
|
|
3122
|
+
version: "0.6.0",
|
|
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,13 @@ 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
|
-
{
|
|
4371
|
+
{
|
|
4372
|
+
account: opts.account,
|
|
4373
|
+
digest: opts.digest,
|
|
4374
|
+
author: opts.author,
|
|
4375
|
+
cover: opts.cover,
|
|
4376
|
+
...opts.coverPrompt ? { cover_image_prompt: opts.coverPrompt } : {}
|
|
4377
|
+
},
|
|
4372
4378
|
{ timeoutMs: opTimeout(12e4) }
|
|
4373
4379
|
);
|
|
4374
4380
|
output(r, () => {
|
|
@@ -4622,7 +4628,8 @@ function checkMcp(timeoutMs = 6e3) {
|
|
|
4622
4628
|
return new Promise((resolve6) => {
|
|
4623
4629
|
let child;
|
|
4624
4630
|
try {
|
|
4625
|
-
|
|
4631
|
+
const _isWin = process.platform === "win32";
|
|
4632
|
+
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
4633
|
} catch (e) {
|
|
4627
4634
|
resolve6({ ok: false, detail: `\u65E0\u6CD5\u542F\u52A8: ${e instanceof Error ? e.message : e}` });
|
|
4628
4635
|
return;
|
|
@@ -4971,7 +4978,7 @@ reviewCmd.action(run((client, opts) => list(client, { limit: toInt(opts.limit) }
|
|
|
4971
4978
|
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
4979
|
program2.command("synthesize [topic...]").description("\u4E3B\u9898\u7EFC\u5408\u62A5\u544A").option("-d, --depth <n>", "\u6DF1\u5EA6 1-5", "2").action(run(synthesize));
|
|
4973
4980
|
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)));
|
|
4981
|
+
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\u7B56\u7565(wechat): ai=AI\u540E\u53F0\u51FA\u56FE(\u9ED8\u8BA4) / auto=\u670D\u52A1\u7AEF\u515C\u5E95 / provided=\u7528\u53F7\u914D\u7F6E\u5C01\u9762 / none", "ai").option("--cover-prompt <text>", "AI\u5C01\u9762\u753B\u9762\u63D0\u793A(cover=ai\u53EF\u9009,\u76F4\u4F20yyps;\u4E0D\u586B\u5219\u8BFB\u5168\u6587\u63D0\u70BC)").action(run((client, opts, args) => draft(client, opts, args)));
|
|
4975
4982
|
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
4983
|
program2.command("feedback [page...]").description("\u5BF9\u9875\u9762/\u5B9E\u4F53\u6253\u53CD\u9988 (positive|negative)").action(run(feedback));
|
|
4977
4984
|
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) })));
|