prism-mcp-server 19.2.7 → 19.2.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.
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* The handler is storage-agnostic — works with SQLite (local) or Supabase (remote).
|
|
13
13
|
*/
|
|
14
14
|
import { readFileSync, existsSync } from "fs";
|
|
15
|
+
import { resolve as resolvePath } from "path";
|
|
15
16
|
import { basename } from "path";
|
|
16
17
|
import { PRISM_USER_ID } from "../config.js";
|
|
17
18
|
import { getStorage } from "../storage/index.js";
|
|
@@ -103,7 +104,7 @@ export async function ingestKnowledge(args) {
|
|
|
103
104
|
const { project, source_label, chunk_size = 4000, } = args;
|
|
104
105
|
let content = args.content || "";
|
|
105
106
|
if (args.file_path) {
|
|
106
|
-
const resolved =
|
|
107
|
+
const resolved = resolvePath(args.file_path);
|
|
107
108
|
const blocked = ["/etc", "/var", "/usr", "/sys", "/proc", "/dev", "/root",
|
|
108
109
|
"/.ssh", "/.env", "/.git/config", "/private/etc"].some(p => resolved.startsWith(p) || resolved.includes("/."));
|
|
109
110
|
if (blocked) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { openSync, readSync, closeSync } from "node:fs";
|
|
1
2
|
/**
|
|
2
3
|
* ═══════════════════════════════════════════════════════════════════
|
|
3
4
|
* Migration Utilities — Shared Normalization Helpers
|
|
@@ -43,11 +44,10 @@
|
|
|
43
44
|
* OpenAI → `"tool_calls":` or `"created_at":` (Unix epoch) or `"role":"system"`
|
|
44
45
|
*/
|
|
45
46
|
export function sniffFormat(filePath) {
|
|
46
|
-
const
|
|
47
|
-
const fd = fs.openSync(filePath, 'r');
|
|
47
|
+
const fd = openSync(filePath, 'r');
|
|
48
48
|
const buf = Buffer.alloc(4096);
|
|
49
|
-
const bytesRead =
|
|
50
|
-
|
|
49
|
+
const bytesRead = readSync(fd, buf, 0, 4096, 0);
|
|
50
|
+
closeSync(fd);
|
|
51
51
|
if (bytesRead === 0)
|
|
52
52
|
return null;
|
|
53
53
|
const head = buf.toString('utf8', 0, bytesRead);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prism-mcp-server",
|
|
3
|
-
"version": "19.2.
|
|
3
|
+
"version": "19.2.8",
|
|
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",
|