exomind 0.5.0 → 0.5.1
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 +12 -5
- 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.1",
|
|
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
|
|
3490
|
+
return /^(存档|jdit)[\s!.,;:!?。?、~…]*$/i.test(m);
|
|
3491
3491
|
}
|
|
3492
3492
|
function matchesExperience(msg) {
|
|
3493
3493
|
if (msg.length < 50) return false;
|
|
@@ -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
|
|
3619
|
-
|
|
3620
|
-
|
|
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);
|