@strvmarv/total-recall 0.6.8-beta.4 → 0.6.8-beta.7

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.
@@ -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",
4
+ "version": "0.6.8-beta.7",
5
5
  "author": {
6
6
  "name": "strvmarv"
7
7
  },
package/README.md CHANGED
@@ -253,6 +253,8 @@ model = "all-MiniLM-L6-v2" # Embedding model name
253
253
  dimensions = 384 # Embedding dimensions
254
254
  ```
255
255
 
256
+ **Relocating the database:** set `TOTAL_RECALL_DB_PATH` to an absolute path or `~/`-prefixed path. See [INSTALL.md](INSTALL.md#relocating-the-database) for cloud-sync and shared-workspace guidance.
257
+
256
258
  ---
257
259
 
258
260
  ## Extending
@@ -255,7 +255,8 @@ function initSchema(db) {
255
255
 
256
256
  // src/config.ts
257
257
  import { readFileSync, writeFileSync, existsSync, mkdirSync } from "fs";
258
- import { join } from "path";
258
+ import { join, isAbsolute } from "path";
259
+ import { homedir } from "os";
259
260
  import { createHash, randomUUID } from "crypto";
260
261
 
261
262
  // node_modules/smol-toml/dist/error.js
@@ -951,7 +952,7 @@ function parse(toml, { maxDepth = 1e3, integersAsBigInt } = {}) {
951
952
  // src/config.ts
952
953
  var DEFAULTS_PATH = new URL("./defaults.toml", import.meta.url);
953
954
  function getDataDir() {
954
- return process.env.TOTAL_RECALL_HOME ?? join(process.env.HOME ?? "~", ".total-recall");
955
+ return process.env.TOTAL_RECALL_HOME ?? join(homedir(), ".total-recall");
955
956
  }
956
957
  function loadConfig() {
957
958
  const defaultsText = readFileSync(DEFAULTS_PATH, "utf-8");