mneme-ai 3.10.0 → 3.11.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.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * `mneme thymos` (v3.11.0) — the affective core: a memory that feels (measurably).
3
+ * thymos → the heart's status + gauntlet
4
+ * thymos feel "<text>" → read the affective valence + intensity (EN+Thai)
5
+ * thymos resonate --core "<v>" a b c → the core attracts matching inbound, repels the rest
6
+ */
7
+ import type { Command } from "commander";
8
+ export declare function registerThymosCommands(program: Command): void;
9
+ //# sourceMappingURL=thymos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thymos.d.ts","sourceRoot":"","sources":["../../src/commands/thymos.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAyB7D"}
@@ -0,0 +1,28 @@
1
+ import { thymos } from "@mneme-ai/core";
2
+ function out(s) { process.stdout.write(s + "\n"); }
3
+ export function registerThymosCommands(program) {
4
+ const k = program.command("thymos").description("💗 THYMOS — Mneme's affective core: memory that forgets the trivial + keeps what bonds (salience decay), and a vision that ATTRACTS matching inbound (resonance). Feeling = a SIGNED, measurable salience/bond score — not claimed sentience.")
5
+ .action(() => {
6
+ const g = thymos.thymosGauntlet();
7
+ out(`💗 THYMOS — the affective core · gauntlet ${g.score}/100`);
8
+ out(" ① salience-decay: every memory carries an affective charge (reuse × feeling × consequence) and fades unless it matters — keep what bonds, forget the noise.");
9
+ out(" ② resonance: the same core ATTRACTS inbound that matches the user's vision + repels what doesn't.");
10
+ out(" measurable: salience 0..1 · valence -1..1 · bond 0..100 · retention curves · footprint saved. Honest: a heart you can audit, not a claim of sentience.");
11
+ out(" try: mneme thymos feel \"this is สำคัญมาก!\" · mneme thymos resonate --core \"<your vision>\" \"item a\" \"item b\"");
12
+ });
13
+ k.command("feel <text>").description("Read the affective valence (-1..1) + intensity (0..1) of a piece of text (EN+Thai sentiment).")
14
+ .action((text) => {
15
+ const a = thymos.readAffect(text);
16
+ const mood = a.valence > 0.2 ? "💚 positive" : a.valence < -0.2 ? "❤️ charged-negative" : "🫥 neutral";
17
+ out(`💗 ${mood} · valence ${a.valence} · intensity ${a.intensity}`);
18
+ out(` → salience if recalled twice + consequential: ${thymos.salience({ recalls: 2, valence: a.valence, consequence: a.intensity * 0.5 })} (drives how long it's remembered)`);
19
+ });
20
+ k.command("resonate <items...>").description("The core attracts: rank inbound items by resonance with your vision; above threshold = pulled in, below = repelled.")
21
+ .requiredOption("--core <vision>", "your core vision / what you care about")
22
+ .action((items, o) => {
23
+ out(`💗 resonance with core: "${o.core}"`);
24
+ for (const a of thymos.attract(o.core, items))
25
+ out(` ${a.pulled ? "🧲 pulled " : "✗ repelled"} · ${a.resonance.toFixed(2)} · ${a.item}`);
26
+ });
27
+ }
28
+ //# sourceMappingURL=thymos.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thymos.js","sourceRoot":"","sources":["../../src/commands/thymos.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,SAAS,GAAG,CAAC,CAAS,IAAU,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;AAEjE,MAAM,UAAU,sBAAsB,CAAC,OAAgB;IACrD,MAAM,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,+OAA+O,CAAC;SAC7R,MAAM,CAAC,GAAG,EAAE;QACX,MAAM,CAAC,GAAG,MAAM,CAAC,cAAc,EAAE,CAAC;QAClC,GAAG,CAAC,6CAA6C,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC;QAChE,GAAG,CAAC,gKAAgK,CAAC,CAAC;QACtK,GAAG,CAAC,sGAAsG,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,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7I,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA+LA,wBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA+lNvD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgMA,wBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAgmNvD"}
package/dist/index.js CHANGED
@@ -109,6 +109,7 @@ import { registerCompileCommands } from "./commands/compile.js";
109
109
  import { registerSkillscanCommands } from "./commands/skillscan.js";
110
110
  import { registerMcpgateCommands } from "./commands/mcpgate.js";
111
111
  import { registerAgentcertCommands } from "./commands/agentcert.js";
112
+ import { registerThymosCommands } from "./commands/thymos.js";
112
113
  import { registerAdamasCommands } from "./commands/adamas.js";
113
114
  import { registerPrismCommands } from "./commands/prism.js";
114
115
  import { registerGoldilocksCommands } from "./commands/goldilocks.js";
@@ -4785,6 +4786,7 @@ export async function run(argv) {
4785
4786
  registerSkillscanCommands(program);
4786
4787
  registerMcpgateCommands(program);
4787
4788
  registerAgentcertCommands(program);
4789
+ registerThymosCommands(program);
4788
4790
  registerAdamasCommands(program);
4789
4791
  registerPrismCommands(program);
4790
4792
  registerGoldilocksCommands(program);