exomind 0.5.0 → 0.5.2

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 CHANGED
@@ -3119,7 +3119,7 @@ var {
3119
3119
  // package.json
3120
3120
  var package_default = {
3121
3121
  name: "exomind",
3122
- version: "0.5.0",
3122
+ version: "0.5.2",
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"
@@ -3487,7 +3487,7 @@ function hasTechTerm(msg) {
3487
3487
  }
3488
3488
  function isSecretWord(msg) {
3489
3489
  const m = msg.trim();
3490
- return /^(存档|jdit)[\s!!.。??、]*$/i.test(m);
3490
+ return /^(存档|jdit)[\s!.,;:!?。?、~…]*$/i.test(m);
3491
3491
  }
3492
3492
  function matchesExperience(msg) {
3493
3493
  if (msg.length < 50) return false;
@@ -3574,7 +3574,7 @@ ${desc}
3574
3574
  }
3575
3575
  out += "\n";
3576
3576
  }
3577
- out += '\u4EE5\u4E0A\u77E5\u8BC6\u5DF2\u5728\u4E0A\u4E0B\u6587\u4E2D,\u56DE\u7B54\u65F6\u53EF\u53C2\u8003\u3002\u5982\u9700\u66F4\u591A\u8BE6\u60C5,\u8FD0\u884C `exomind query "<\u95EE\u9898>"` \u6216 `exomind entity <\u540D\u79F0>`\u3002';
3577
+ out += "\u4EE5\u4E0A " + ents.length + ' \u6761\u6765\u81EA\u4F60\u7684\u77E5\u8BC6\u5E93(\u5DF2\u6CE8\u5165\u4E0A\u4E0B\u6587)\u3002**\u9F13\u52B1\u4E3B\u52A8\u53CD\u67E5\u8BA9\u98DE\u8F6E\u8F6C\u8D77\u6765**:\u9047\u95EE\u9898\u5148 `exomind query "<\u95EE\u9898>"`(\u4E0D\u53EA"\u5B58",\u66F4\u8981"\u7528"\u2014\u2014\u53CD\u67E5\u662F\u98DE\u8F6E\u589E\u5F3A\u56DE\u8DEF\u7684\u5173\u952E),\u518D\u56DE\u7B54\u3002';
3578
3578
  return out;
3579
3579
  }
3580
3580
  async function buildContext(client, msg, dedup, now) {
@@ -3615,9 +3615,16 @@ async function runHook(client) {
3615
3615
  if (msg.length < 8) return;
3616
3616
  if (CONFIRM_WORDS.has(msg.toLowerCase())) return;
3617
3617
  }
3618
- if (isSecret && msg.length < 20 && now - dedup.lastArchive > COOLDOWN_MS) {
3619
- outputs.push(ARCHIVE_INSTRUCTION);
3620
- dedup.lastArchive = now;
3618
+ if (isSecret && msg.length < 20) {
3619
+ if (now - dedup.lastArchive > COOLDOWN_MS) {
3620
+ outputs.push(ARCHIVE_INSTRUCTION);
3621
+ dedup.lastArchive = now;
3622
+ } else {
3623
+ const remain = Math.ceil((COOLDOWN_MS - (now - dedup.lastArchive)) / 1e3);
3624
+ outputs.push(
3625
+ `[ExoMind] \u5B58\u6863\u51B7\u5374\u4E2D,${remain} \u79D2\u540E\u53EF\u518D\u6B21\u89E6\u53D1(30 \u5206\u949F\u9632\u91CD\u590D\u6444\u5165)\u3002\u6697\u53F7\u5DF2\u8BC6\u522B\u3002\u5982\u9700\u7ACB\u5373\u5B58\u6863,\u76F4\u63A5\u8FD0\u884C \`exomind ingest\`\u3002`
3626
+ );
3627
+ }
3621
3628
  } else if (!isSecret) {
3622
3629
  if (matchesExperience(msg)) outputs.push(EXPERIENCE_INSTRUCTION);
3623
3630
  else if (matchesResearch(msg)) outputs.push(RESEARCH_INSTRUCTION);