@strvmarv/total-recall 0.6.8-beta.4 → 0.6.8-beta.5
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/.claude-plugin/plugin.json +1 -1
- package/dist/index.js +16 -7
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "total-recall",
|
|
3
3
|
"description": "Multi-tiered memory and knowledge base with semantic search, auto-compaction, and built-in evaluation. Works across Claude Code, Copilot CLI, OpenCode, Cline, and Cursor.",
|
|
4
|
-
"version": "0.6.8-beta.
|
|
4
|
+
"version": "0.6.8-beta.5",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "strvmarv"
|
|
7
7
|
},
|
package/dist/index.js
CHANGED
|
@@ -25313,7 +25313,15 @@ var CopilotCliImporter = class {
|
|
|
25313
25313
|
import { existsSync as existsSync7, readdirSync as readdirSync4, readFileSync as readFileSync8 } from "fs";
|
|
25314
25314
|
import { join as join11 } from "path";
|
|
25315
25315
|
import { homedir as homedir3 } from "os";
|
|
25316
|
+
import { fileURLToPath as fileURLToPath6 } from "url";
|
|
25316
25317
|
import { Database as Database2 } from "bun:sqlite";
|
|
25318
|
+
function safeFileURLToPath(url2) {
|
|
25319
|
+
try {
|
|
25320
|
+
return fileURLToPath6(url2);
|
|
25321
|
+
} catch {
|
|
25322
|
+
return null;
|
|
25323
|
+
}
|
|
25324
|
+
}
|
|
25317
25325
|
var CursorImporter = class {
|
|
25318
25326
|
name = "cursor";
|
|
25319
25327
|
configPath;
|
|
@@ -25337,7 +25345,7 @@ var CursorImporter = class {
|
|
|
25337
25345
|
if (!existsSync7(wsJson)) continue;
|
|
25338
25346
|
try {
|
|
25339
25347
|
const ws = JSON.parse(readFileSync8(wsJson, "utf8"));
|
|
25340
|
-
const projectPath = ws.folder ?
|
|
25348
|
+
const projectPath = ws.folder ? safeFileURLToPath(ws.folder) : ws.workspace ? safeFileURLToPath(ws.workspace) : null;
|
|
25341
25349
|
if (!projectPath) continue;
|
|
25342
25350
|
if (existsSync7(join11(projectPath, ".cursorrules"))) knowledgeFiles++;
|
|
25343
25351
|
const rulesDir = join11(projectPath, ".cursor", "rules");
|
|
@@ -25400,7 +25408,7 @@ var CursorImporter = class {
|
|
|
25400
25408
|
if (!existsSync7(wsJson)) continue;
|
|
25401
25409
|
try {
|
|
25402
25410
|
const ws = JSON.parse(readFileSync8(wsJson, "utf8"));
|
|
25403
|
-
const projectPath = ws.folder ?
|
|
25411
|
+
const projectPath = ws.folder ? safeFileURLToPath(ws.folder) : ws.workspace ? safeFileURLToPath(ws.workspace) : null;
|
|
25404
25412
|
if (projectPath) projectPaths.add(projectPath);
|
|
25405
25413
|
} catch {
|
|
25406
25414
|
}
|
|
@@ -26108,10 +26116,11 @@ function collectMarkdownFiles(dirPath, files) {
|
|
|
26108
26116
|
|
|
26109
26117
|
// src/utils/project-detect.ts
|
|
26110
26118
|
import { execFileSync } from "child_process";
|
|
26111
|
-
import { basename as basename5 } from "path";
|
|
26119
|
+
import { basename as basename5, parse as parsePath } from "path";
|
|
26120
|
+
import { homedir as homedir7 } from "os";
|
|
26112
26121
|
function detectProject(cwd) {
|
|
26113
|
-
|
|
26114
|
-
if (cwd ===
|
|
26122
|
+
if (cwd === homedir7()) return null;
|
|
26123
|
+
if (cwd === parsePath(cwd).root) return null;
|
|
26115
26124
|
try {
|
|
26116
26125
|
const remote = execFileSync("git", ["remote", "get-url", "origin"], {
|
|
26117
26126
|
cwd,
|
|
@@ -26130,8 +26139,8 @@ function detectProject(cwd) {
|
|
|
26130
26139
|
// src/eval/smoke-test.ts
|
|
26131
26140
|
import { resolve as resolve4, dirname as dirname6, basename as basename6 } from "path";
|
|
26132
26141
|
import { readFileSync as readFileSync13 } from "fs";
|
|
26133
|
-
import { fileURLToPath as
|
|
26134
|
-
var __dirname3 = dirname6(
|
|
26142
|
+
import { fileURLToPath as fileURLToPath7 } from "url";
|
|
26143
|
+
var __dirname3 = dirname6(fileURLToPath7(import.meta.url));
|
|
26135
26144
|
var PACKAGE_ROOT3 = basename6(__dirname3) === "dist" ? resolve4(__dirname3, "..") : resolve4(__dirname3, "..", "..");
|
|
26136
26145
|
var SMOKE_PASS_THRESHOLD = 0.8;
|
|
26137
26146
|
function getMetaValue(db, key) {
|