abmind 0.1.8-alpha.8 → 0.1.8
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/abmind-doctor.js +49 -2
- package/dist/cli/abmind-doctor.js.map +1 -1
- package/dist/cli/abmind-hook-wakeup.js +16 -7
- package/dist/cli/abmind-hook-wakeup.js.map +1 -1
- package/dist/cli/abmind-install.js +9 -1
- package/dist/cli/abmind-install.js.map +1 -1
- package/dist/cli/abmind-passwd.js +10 -10
- package/dist/cli/abmind-passwd.js.map +1 -1
- package/dist/cli/abmind-recall.js +8 -0
- package/dist/cli/abmind-recall.js.map +1 -1
- package/dist/cli/abmind-restore.js +20 -0
- package/dist/cli/abmind-restore.js.map +1 -1
- package/dist/cli/abmind-sleep.js +16 -1
- package/dist/cli/abmind-sleep.js.map +1 -1
- package/dist/cli/abmind.js +13 -1
- package/dist/cli/abmind.js.map +1 -1
- package/dist/src/backup.d.ts.map +1 -1
- package/dist/src/backup.js +26 -2
- package/dist/src/backup.js.map +1 -1
- package/dist/src/citation-detector.d.ts +14 -0
- package/dist/src/citation-detector.d.ts.map +1 -0
- package/dist/src/citation-detector.js +64 -0
- package/dist/src/citation-detector.js.map +1 -0
- package/dist/src/deploy-lib/manifest.d.ts +2 -0
- package/dist/src/deploy-lib/manifest.d.ts.map +1 -1
- package/dist/src/deploy-lib/manifest.js.map +1 -1
- package/dist/src/emotion-arc.d.ts +1 -1
- package/dist/src/emotion-arc.d.ts.map +1 -1
- package/dist/src/emotion-utils.d.ts +2 -0
- package/dist/src/emotion-utils.d.ts.map +1 -1
- package/dist/src/emotion-utils.js.map +1 -1
- package/dist/src/ensure-initialized.d.ts.map +1 -1
- package/dist/src/ensure-initialized.js +11 -3
- package/dist/src/ensure-initialized.js.map +1 -1
- package/dist/src/imemory-system.d.ts +1 -1
- package/dist/src/imemory-system.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/mem-types.d.ts +5 -0
- package/dist/src/mem-types.d.ts.map +1 -1
- package/dist/src/memory-db.d.ts.map +1 -1
- package/dist/src/memory-db.js +2 -29
- package/dist/src/memory-db.js.map +1 -1
- package/dist/src/memory-editor.d.ts.map +1 -1
- package/dist/src/memory-editor.js +20 -4
- package/dist/src/memory-editor.js.map +1 -1
- package/dist/src/memory-index.d.ts +4 -0
- package/dist/src/memory-index.d.ts.map +1 -1
- package/dist/src/memory-index.js +26 -0
- package/dist/src/memory-index.js.map +1 -1
- package/dist/src/memory-ipc-client.d.ts +2 -0
- package/dist/src/memory-ipc-client.d.ts.map +1 -1
- package/dist/src/memory-ipc-client.js +12 -2
- package/dist/src/memory-ipc-client.js.map +1 -1
- package/dist/src/memory-ipc-server.d.ts +3 -0
- package/dist/src/memory-ipc-server.d.ts.map +1 -1
- package/dist/src/memory-ipc-server.js +9 -1
- package/dist/src/memory-ipc-server.js.map +1 -1
- package/dist/src/memory-manager.d.ts +9 -1
- package/dist/src/memory-manager.d.ts.map +1 -1
- package/dist/src/memory-manager.js +34 -11
- package/dist/src/memory-manager.js.map +1 -1
- package/dist/src/message-store.d.ts +9 -2
- package/dist/src/message-store.d.ts.map +1 -1
- package/dist/src/message-store.js +13 -2
- package/dist/src/message-store.js.map +1 -1
- package/dist/src/recall-engine.d.ts.map +1 -1
- package/dist/src/recall-engine.js +38 -1
- package/dist/src/recall-engine.js.map +1 -1
- package/dist/src/session-context.d.ts +12 -3
- package/dist/src/session-context.d.ts.map +1 -1
- package/dist/src/session-context.js +68 -38
- package/dist/src/session-context.js.map +1 -1
- package/dist/src/sleep/orchestrator.d.ts.map +1 -1
- package/dist/src/sleep/orchestrator.js +9 -0
- package/dist/src/sleep/orchestrator.js.map +1 -1
- package/dist/src/sleep/skill-dedup.d.ts +22 -0
- package/dist/src/sleep/skill-dedup.d.ts.map +1 -0
- package/dist/src/sleep/skill-dedup.js +86 -0
- package/dist/src/sleep/skill-dedup.js.map +1 -0
- package/dist/src/status-block.d.ts.map +1 -1
- package/dist/src/status-block.js +16 -0
- package/dist/src/status-block.js.map +1 -1
- package/package.json +2 -2
- package/prompts/sleep/05-contradiction-and-graph.md +2 -0
- package/prompts/sleep/10-skill-review.md +18 -1
- package/prompts/sleep/SOUL-Dreamy.md +1 -0
- package/templates/core/SOUL.md +1 -1
- package/templates/core/memory-tools.md +23 -2
- package/CHANGELOG.md +0 -88
- package/dist/src/emotion-tagger.d.ts +0 -8
- package/dist/src/emotion-tagger.d.ts.map +0 -1
- package/dist/src/emotion-tagger.js +0 -45
- package/dist/src/emotion-tagger.js.map +0 -1
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* emotion-tagger.ts — Pattern-based emotion detection.
|
|
3
|
-
* Pure function, no LLM, ~1ms per call.
|
|
4
|
-
*/
|
|
5
|
-
export type EmotionTag = "joy" | "trust" | "hope" | "fear" | "grief" | "anger" | "doubt" | "relief" | "pride" | "curiosity" | "frustration" | "surprise" | "determination" | "exhaustion" | "anxiety" | "gratitude" | "love" | "humor" | "vulnerability" | "conviction" | "peace" | "confusion" | "excitement" | "tenderness" | "raw_honesty";
|
|
6
|
-
/** Detect emotions from text via keyword patterns. Returns deduplicated tags. */
|
|
7
|
-
export declare function detectEmotions(text: string): EmotionTag[];
|
|
8
|
-
//# sourceMappingURL=emotion-tagger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"emotion-tagger.d.ts","sourceRoot":"","sources":["../../src/emotion-tagger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,UAAU,GAClB,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GACrD,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,GAAG,aAAa,GAC1D,UAAU,GAAG,eAAe,GAAG,YAAY,GAAG,SAAS,GACvD,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,eAAe,GAAG,YAAY,GAC/D,OAAO,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,aAAa,CAAC;AAqCxE,iFAAiF;AACjF,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,CAMzD"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* emotion-tagger.ts — Pattern-based emotion detection.
|
|
3
|
-
* Pure function, no LLM, ~1ms per call.
|
|
4
|
-
*/
|
|
5
|
-
const PATTERNS = [
|
|
6
|
-
// joy / positive
|
|
7
|
-
[/\b(happy|glad|delighted|wonderful|amazing|fantastic|brilliant|perfect)\b/i, "joy"],
|
|
8
|
-
[/\b(love|adore|cherish|devoted)\b/i, "love"],
|
|
9
|
-
[/\b(grateful|thankful|appreciate|thanks)\b/i, "gratitude"],
|
|
10
|
-
[/\b(proud|pride|accomplished|nailed it)\b/i, "pride"],
|
|
11
|
-
[/\b(excited|thrilled|can't wait|pumped)\b/i, "excitement"],
|
|
12
|
-
[/\b(funny|hilarious|lol|lmao|haha|😂|🤣)\b/i, "humor"],
|
|
13
|
-
[/\b(peaceful|calm|serene|at ease)\b/i, "peace"],
|
|
14
|
-
[/\b(tender|gentle|warm|caring)\b/i, "tenderness"],
|
|
15
|
-
// trust / conviction
|
|
16
|
-
[/\b(trust|reliable|dependable|count on)\b/i, "trust"],
|
|
17
|
-
[/\b(decided|committed|convinced|certain|absolutely)\b/i, "conviction"],
|
|
18
|
-
[/\b(determined|persistent|won't give up|keep going)\b/i, "determination"],
|
|
19
|
-
// hope / relief
|
|
20
|
-
[/\b(hope|hopeful|optimistic|looking forward)\b/i, "hope"],
|
|
21
|
-
[/\b(relief|relieved|finally|phew|thank god)\b/i, "relief"],
|
|
22
|
-
[/\b(surprised|unexpected|didn't expect|wow|whoa)\b/i, "surprise"],
|
|
23
|
-
[/\b(curious|wondering|interesting|intrigued|fascinated)\b/i, "curiosity"],
|
|
24
|
-
// negative
|
|
25
|
-
[/\b(afraid|scared|terrified|frightened|worried about)\b/i, "fear"],
|
|
26
|
-
[/\b(anxious|nervous|uneasy|stressed|overwhelmed)\b/i, "anxiety"],
|
|
27
|
-
[/\b(angry|furious|rage|pissed|infuriated|hate)\b/i, "anger"],
|
|
28
|
-
[/\b(frustrated|annoying|irritating|ugh|damn)\b/i, "frustration"],
|
|
29
|
-
[/\b(confused|lost|don't understand|makes no sense|wtf)\b/i, "confusion"],
|
|
30
|
-
[/\b(sad|grief|mourning|loss|heartbroken|devastated)\b/i, "grief"],
|
|
31
|
-
[/\b(doubt|uncertain|not sure|skeptical|questionable)\b/i, "doubt"],
|
|
32
|
-
[/\b(exhausted|burned out|drained|tired of|fed up)\b/i, "exhaustion"],
|
|
33
|
-
[/\b(vulnerable|exposed|raw|honest truth|admit)\b/i, "vulnerability"],
|
|
34
|
-
[/\b(brutal honesty|hard truth|real talk|no sugar)\b/i, "raw_honesty"],
|
|
35
|
-
];
|
|
36
|
-
/** Detect emotions from text via keyword patterns. Returns deduplicated tags. */
|
|
37
|
-
export function detectEmotions(text) {
|
|
38
|
-
const seen = new Set();
|
|
39
|
-
for (const [pattern, tag] of PATTERNS) {
|
|
40
|
-
if (pattern.test(text) && !seen.has(tag))
|
|
41
|
-
seen.add(tag);
|
|
42
|
-
}
|
|
43
|
-
return [...seen];
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=emotion-tagger.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"emotion-tagger.js","sourceRoot":"","sources":["../../src/emotion-tagger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,MAAM,QAAQ,GAAiD;IAC7D,iBAAiB;IACjB,CAAC,2EAA2E,EAAE,KAAK,CAAC;IACpF,CAAC,mCAAmC,EAAE,MAAM,CAAC;IAC7C,CAAC,4CAA4C,EAAE,WAAW,CAAC;IAC3D,CAAC,2CAA2C,EAAE,OAAO,CAAC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