Stabilize Mnemazine end-to-end gates

This commit is contained in:
Зарубин Филипп
2026-06-24 19:10:26 +03:00
parent a2a555cf1d
commit 17fd8fef5f
24 changed files with 1502 additions and 203 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import path from 'node:path'
import os from 'node:os'
import { spawn } from 'node:child_process'
import { graphStats as normalizedGraphStats, mergeGraphObjects, readGraph, writeGraph } from './mnemazine-graph-utils.mjs'
import { resolveVault } from './mnemazine-paths.mjs'
const argv = process.argv.slice(2)
@@ -23,7 +24,7 @@ const CONFIG_PATH = path.join(ROOT, 'config', 'graphify-refresh.json')
const CONFIG = existsSync(CONFIG_PATH)
? JSON.parse(readFileSync(CONFIG_PATH, 'utf8'))
: {}
const VAULT = path.resolve(arg('vault', process.env.MNEMAZINE_VAULT || path.join(ROOT, 'vault')))
const VAULT = resolveVault({ cli: arg('vault') })
const MODE = arg('mode', 'auto')
const BACKEND = arg('backend', process.env.MNEMAZINE_GRAPHIFY_BACKEND || CONFIG.backend || 'ollama')
const CONFIG_BACKEND = CONFIG.backend || 'ollama'