prism-mcp-server 19.3.1 โ†’ 19.3.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/README.md CHANGED
@@ -85,7 +85,9 @@ Every `prism_infer` call tracks which model handled it (local Ollama vs cloud) a
85
85
  ```
86
86
  ๐Ÿ“Š Inference Metrics (this session):
87
87
  Total calls: 12 โ€” Local: 10 (83%) | Cloud: 2 (17%)
88
- Tokens: 8,420 in + 3,150 out = 11,570 total
88
+ Prompt tokens: 7,840 evaluated / 8,420 submitted est.
89
+ Completion tokens: 3,150
90
+ Cloud tokens saved (est.): 11,570 โ€” token volume handled locally instead of cloud
89
91
  Avg latency: 1,240ms
90
92
  By model:
91
93
  prism-coder:27b: 6 calls, 7,200 tokens, avg 1,800ms
@@ -93,6 +95,8 @@ Every `prism_infer` call tracks which model handled it (local Ollama vs cloud) a
93
95
  synalux-27b: 2 calls, 1,500 tokens, avg 1,100ms
94
96
  ```
95
97
 
98
+ **Cloud tokens saved** is the honest routing metric โ€” it accrues only when local Ollama handles a call that would otherwise have gone to Claude or the Synalux portal. A compact version appears inline after every 5th `prism_infer` call: `๐Ÿ“Š local 10 (83%) ยท cloud 2 (17%) ยท ~11,570 tok ยท avg 1,240ms ยท 11,570 cloud tok saved`.
99
+
96
100
  Local calls use actual Ollama token counts (`prompt_eval_count` / `eval_count` from Ollama); cloud calls use char/4 estimates. Metrics are tracked locally โ€” no portal dependency, no env vars, works offline. Per-call data is also forwarded to the Synalux portal as best-effort analytics (independent of the display).
97
101
 
98
102
  ### Session Drift Detection
@@ -741,6 +741,7 @@ export class SqliteStorage {
741
741
  "archived_at", "deleted_at", "is_rollup", "role", "event_type",
742
742
  "created_at", "updated_at", "session_date", "importance", "title",
743
743
  "agent_name", "last_accessed_at", "confidence_score", "rollup_count",
744
+ "embedding",
744
745
  ]);
745
746
  parsePostgRESTFilters(params) {
746
747
  const conditions = [];
@@ -11,7 +11,7 @@
11
11
  * 3. Call /api/generate locally โ€” return on success
12
12
  * 4. On local fail, if cloud_fallback=true:
13
13
  * - exchange synalux_sk_ โ†’ JWT (cached)
14
- * - POST synalux portal /api/v1/prism-aac/inference
14
+ * - POST synalux portal /api/v1/prism/inference
15
15
  * - portal runs its own cascade (9B/27B/Claude by tier)
16
16
  * 5. Return { output, backend, model_picked, ram_free_mb, latency_ms, used_cloud }
17
17
  *
@@ -260,7 +260,7 @@ async function callSynaluxInference(prompt, maxTokens, timeoutMs) {
260
260
  const jwt = await getSynaluxJwt();
261
261
  if (!jwt)
262
262
  return { ok: false, reason: "jwt_exchange_failed" };
263
- const url = `${PRISM_SYNALUX_BASE_URL}/api/v1/prism-aac/inference`;
263
+ const url = `${PRISM_SYNALUX_BASE_URL}/api/v1/prism/inference`;
264
264
  try {
265
265
  let res = await fetch(url, {
266
266
  method: "POST",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prism-mcp-server",
3
- "version": "19.3.1",
3
+ "version": "19.3.2",
4
4
  "mcpName": "io.github.dcostenco/prism-coder",
5
5
  "description": "Prism Coder โ€” Cognitive memory + tool-calling intelligence for AI agents. Mind Palace persistent memory (BFCL Gold Certified, 100% Tool-Call Accuracy, 114 Agent Skills, PHI Guard, Tier Enforcement, Prompt-Based Skill Routing, Zero-Search HDC/HRR retrieval, HRR Semantic Drift Detection across BCBA/Coding/AAC domains, HIPAA-hardened local-first storage, SLERP-optimized GRPO alignment) plus the prism-coder 1.7Bโ€“32B open-weights LLM fleet.",
6
6
  "module": "index.ts",