@hasna/brains 0.0.11 → 0.0.12
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/dist/cli/index.js +3 -3
- package/dist/mcp/index.js +2 -2
- package/dist/server/index.js +1 -1
- package/package.json +3 -2
package/dist/cli/index.js
CHANGED
|
@@ -21320,7 +21320,7 @@ finetuneCmd.command("list").description("List all fine-tuning jobs").option("--p
|
|
|
21320
21320
|
process.exit(1);
|
|
21321
21321
|
}
|
|
21322
21322
|
});
|
|
21323
|
-
var DEFAULT_DATASETS_DIR = join10(homedir10(), ".brains", "datasets");
|
|
21323
|
+
var DEFAULT_DATASETS_DIR = join10(homedir10(), ".hasna", "brains", "datasets");
|
|
21324
21324
|
var dataCmd = program2.command("data").description("Manage training datasets");
|
|
21325
21325
|
dataCmd.command("gather").description("Gather training data from agent memory sources").option("--source <source>", "Data source: todos|mementos|conversations|sessions|all", "all").option("--output <dir>", "Output directory", DEFAULT_DATASETS_DIR).option("--limit <n>", "Maximum number of examples to gather", "500").action(async (opts) => {
|
|
21326
21326
|
const validSources = ["todos", "mementos", "conversations", "sessions", "all"];
|
|
@@ -21607,13 +21607,13 @@ configCmd.command("get <key>").description("Get a config value").action((key) =>
|
|
|
21607
21607
|
console.log(value);
|
|
21608
21608
|
}
|
|
21609
21609
|
});
|
|
21610
|
-
configCmd.command("set <key> <value>").description("Set a config value (stored in ~/.brains/config.json)").action((key, value) => {
|
|
21610
|
+
configCmd.command("set <key> <value>").description("Set a config value (stored in ~/.hasna/brains/config.json)").action((key, value) => {
|
|
21611
21611
|
if (!CONFIG_KEYS.includes(key)) {
|
|
21612
21612
|
printError(`Unknown key: ${key}. Valid keys: ${CONFIG_KEYS.join(", ")}`);
|
|
21613
21613
|
process.exit(1);
|
|
21614
21614
|
}
|
|
21615
21615
|
setConfigValue(key, value);
|
|
21616
|
-
printSuccess(`${key} saved to ~/.brains/config.json`);
|
|
21616
|
+
printSuccess(`${key} saved to ~/.hasna/brains/config.json`);
|
|
21617
21617
|
});
|
|
21618
21618
|
configCmd.command("unset <key>").description("Remove a config value from the config file").action((key) => {
|
|
21619
21619
|
if (!CONFIG_KEYS.includes(key)) {
|
package/dist/mcp/index.js
CHANGED
|
@@ -22850,7 +22850,7 @@ function getProvider(provider) {
|
|
|
22850
22850
|
throw new Error(`Unknown provider: ${provider}`);
|
|
22851
22851
|
}
|
|
22852
22852
|
function defaultOutputDir() {
|
|
22853
|
-
return resolve3(homedir10(), ".brains", "datasets");
|
|
22853
|
+
return resolve3(homedir10(), ".hasna", "brains", "datasets");
|
|
22854
22854
|
}
|
|
22855
22855
|
var _brainsAgents = new Map;
|
|
22856
22856
|
function registerBrainsAgent(name, sessionId) {
|
|
@@ -22954,7 +22954,7 @@ function createMcpServer() {
|
|
|
22954
22954
|
},
|
|
22955
22955
|
output_dir: {
|
|
22956
22956
|
type: "string",
|
|
22957
|
-
description: "Directory to write JSONL files (default: ~/.brains/datasets/)"
|
|
22957
|
+
description: "Directory to write JSONL files (default: ~/.hasna/brains/datasets/)"
|
|
22958
22958
|
}
|
|
22959
22959
|
},
|
|
22960
22960
|
required: ["sources"]
|
package/dist/server/index.js
CHANGED
|
@@ -13518,7 +13518,7 @@ async function handleGather(req) {
|
|
|
13518
13518
|
}
|
|
13519
13519
|
const sources = body.sources ?? ["todos", "mementos", "conversations", "sessions"];
|
|
13520
13520
|
const limit = body.limit ?? 500;
|
|
13521
|
-
const outDir = body.output_dir ?? join9(homedir9(), ".brains", "datasets");
|
|
13521
|
+
const outDir = body.output_dir ?? join9(homedir9(), ".hasna", "brains", "datasets");
|
|
13522
13522
|
mkdirSync2(outDir, { recursive: true });
|
|
13523
13523
|
const results = await gatherAll(sources, { limit });
|
|
13524
13524
|
const db = getDb();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/brains",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Fine-tuned model tracker and trainer — wraps OpenAI + Thinker Labs, gathers training data from todos/mementos/conversations/sessions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"test": "bun test",
|
|
35
35
|
"db:generate": "bunx drizzle-kit generate",
|
|
36
36
|
"db:migrate": "bunx drizzle-kit migrate",
|
|
37
|
-
"db:studio": "bunx drizzle-kit studio"
|
|
37
|
+
"db:studio": "bunx drizzle-kit studio",
|
|
38
|
+
"postinstall": "mkdir -p $HOME/.hasna/brains/datasets 2>/dev/null || true"
|
|
38
39
|
},
|
|
39
40
|
"keywords": [
|
|
40
41
|
"brains",
|