prism-mcp-server 7.8.3 → 7.8.4
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/utils/executor.js
CHANGED
|
@@ -46,6 +46,7 @@ export async function runInSandbox(dataStr, code, timeoutMs = 10000) {
|
|
|
46
46
|
});
|
|
47
47
|
const consoleHandle = vm.newObject();
|
|
48
48
|
vm.setProp(consoleHandle, "log", logHandle);
|
|
49
|
+
vm.setProp(consoleHandle, "error", logHandle); // Map console.error to capture output safely
|
|
49
50
|
vm.setProp(vm.global, "console", consoleHandle);
|
|
50
51
|
consoleHandle.dispose();
|
|
51
52
|
logHandle.dispose();
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* Prism's SQLite (sqlite-vec) and Supabase (pgvector) schemas define
|
|
17
17
|
* embedding columns as EXACTLY 768 dimensions.
|
|
18
18
|
*
|
|
19
|
-
* Voyage solution: voyage-3 and voyage-3
|
|
19
|
+
* Voyage solution: voyage-code-3 and voyage-3 output 1024 dims by default,
|
|
20
20
|
* but both support the `output_dimension` parameter (Matryoshka Representation
|
|
21
21
|
* Learning), enabling truncation to 768 while preserving quality.
|
|
22
22
|
* voyage-3-lite at 768 dims is the fastest and most cost-efficient option.
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
*
|
|
30
30
|
* NOTE: voyage-3-lite natively outputs 512 dims; it does NOT support
|
|
31
31
|
* output_dimension truncation to 768. Use voyage-3 for dimension parity.
|
|
32
|
-
* Default is voyage-3 for
|
|
32
|
+
* Default is voyage-code-3 (optimised for code-heavy sessions).
|
|
33
33
|
*
|
|
34
34
|
* CONFIG KEYS (Prism dashboard "AI Providers" tab OR environment variables):
|
|
35
35
|
* voyage_api_key — Required. Voyage AI API key (pa-...)
|
|
36
|
-
* voyage_model — Embedding model (default: voyage-3)
|
|
36
|
+
* voyage_model — Embedding model (default: voyage-code-3)
|
|
37
37
|
*
|
|
38
38
|
* USAGE WITH ANTHROPIC TEXT PROVIDER:
|
|
39
39
|
* Set text_provider=anthropic, embedding_provider=voyage in the dashboard.
|
|
@@ -98,13 +98,13 @@ export function getLLMProvider() {
|
|
|
98
98
|
// Anthropic has no embedding API — auto-bridge to Gemini.
|
|
99
99
|
// For all other text providers, use the same provider for embeddings.
|
|
100
100
|
embedType = textType === "anthropic" ? "gemini" : textType;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
if (textType === "anthropic") {
|
|
102
|
+
console.error("[LLMFactory] text_provider=anthropic with embedding_provider=auto: " +
|
|
103
|
+
"routing embeddings to GeminiAdapter (Anthropic has no native embedding API). " +
|
|
104
|
+
"For the Anthropic-recommended pairing, set embedding_provider=voyage in the dashboard " +
|
|
105
|
+
"(voyage-code-3 supports 768-dim output via MRL). " +
|
|
106
|
+
"Alternatively, set embedding_provider=openai to use Ollama/OpenAI.");
|
|
107
|
+
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
try {
|
|
@@ -128,7 +128,7 @@ export function getLLMProvider() {
|
|
|
128
128
|
// The text provider name is used as the primary span attribute label.
|
|
129
129
|
providerInstance = new TracingLLMProvider(composed, textType);
|
|
130
130
|
if (textType !== embedType) {
|
|
131
|
-
console.
|
|
131
|
+
console.error(`[LLMFactory] Split provider: text=${textType}, embedding=${embedType}`);
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prism-mcp-server",
|
|
3
|
-
"version": "7.8.
|
|
3
|
+
"version": "7.8.4",
|
|
4
4
|
"mcpName": "io.github.dcostenco/prism-mcp",
|
|
5
5
|
"description": "The Mind Palace for AI Agents — a true Cognitive Architecture with Hebbian learning (episodic→semantic consolidation), ACT-R spreading activation (multi-hop causal reasoning), uncertainty-aware rejection gates (agents that know when they don't know), adversarial evaluation (anti-sycophancy), fail-closed Dark Factory pipelines, persistent memory (SQLite/Supabase), multi-agent Hivemind, time travel & visual dashboard. Zero-config local mode.",
|
|
6
6
|
"module": "index.ts",
|