The first public release of LLeMbas CLI: a terminal coding agent and project manager for any LLM API, with permission modes, git snapshots, memory and skills, knowledge bases, MCP, voice, and a link to a LLeMbas instance whose web UI can work its sessions too. Signed Linux binaries for x64 and arm64. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
355 files changed
+47028
No files matched your search
@@ -0,0 +1,15 @@
|
||||
// Settings the TUI remembers (/personality, /theme) go into the global config.yaml, keeping the
|
||||
// comments and layout of whatever the user wrote there.
|
||||
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs"
|
||||
import { join } from "node:path"
|
||||
import { parseDocument } from "yaml"
|
||||
import { paths } from "./paths.ts"
|
||||
|
||||
export function setGlobalConfig(path: string[], value: unknown) {
|
||||
const file = join(paths.config, "config.yaml")
|
||||
mkdirSync(paths.config, { recursive: true })
|
||||
const doc = parseDocument(existsSync(file) ? readFileSync(file, "utf8") : "")
|
||||
if (!doc.contents) doc.contents = doc.createNode({}) as never
|
||||
doc.setIn(path, value)
|
||||
writeFileSync(file, doc.toString())
|
||||
}
|
||||
Reference in new issue
Block a user