@hasna/brains 0.0.22 → 0.0.24

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/LICENSE CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  Apache License
2
3
  Version 2.0, January 2004
3
4
  http://www.apache.org/licenses/
@@ -175,7 +176,7 @@
175
176
 
176
177
  END OF TERMS AND CONDITIONS
177
178
 
178
- Copyright 2026 hasna
179
+ Copyright 2026 Hasna, Inc.
179
180
 
180
181
  Licensed under the Apache License, Version 2.0 (the "License");
181
182
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -29,6 +29,21 @@ brains --help
29
29
  brains-mcp
30
30
  ```
31
31
 
32
+ ## HTTP mode
33
+
34
+ Run a long-lived Streamable HTTP MCP server on `127.0.0.1` (default port **8801**):
35
+
36
+ ```bash
37
+ brains-mcp --http
38
+ # or: MCP_HTTP=1 brains-mcp
39
+ # port override: --port 8801 or MCP_HTTP_PORT=8801
40
+ ```
41
+
42
+ - Health: `GET http://127.0.0.1:8801/health` → `{"status":"ok","name":"brains"}`
43
+ - MCP: `http://127.0.0.1:8801/mcp`
44
+
45
+ Stdio remains the default when no `--http` / `MCP_HTTP=1` is set.
46
+
32
47
  ## REST API
33
48
 
34
49
  ```bash
@@ -0,0 +1,3 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerCloudCommands(program: Command): void;
3
+ //# sourceMappingURL=cloud.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/cloud.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAyL5D"}
@@ -0,0 +1,3 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerCollectionsCommands(program: Command): void;
3
+ //# sourceMappingURL=collections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/collections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgCzC,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA6DlE"}
@@ -0,0 +1,5 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerDataCommands(program: Command): void;
3
+ declare function getMergeOutputDirectory(outputPath: string): string;
4
+ export { getMergeOutputDirectory };
5
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUzC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAmM3D;AAED,iBAAS,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAG3D;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerFinetuneCommands(program: Command): void;
3
+ //# sourceMappingURL=finetune.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"finetune.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/finetune.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASzC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAwP/D"}
@@ -0,0 +1,20 @@
1
+ import type { Command } from "commander";
2
+ import { fineTunedModels } from "../../db/index.js";
3
+ type ModelRow = typeof fineTunedModels.$inferSelect;
4
+ type Provider = ModelRow["provider"];
5
+ type ModelStatus = ModelRow["status"];
6
+ interface ListModelsOptions {
7
+ json?: boolean;
8
+ provider?: string;
9
+ status?: string;
10
+ limit?: string;
11
+ }
12
+ declare function parseListLimit(rawLimit: string | undefined): number | undefined;
13
+ declare function parseListFilters(opts: ListModelsOptions): {
14
+ provider?: Provider;
15
+ status?: ModelStatus;
16
+ limit?: number;
17
+ };
18
+ export declare function registerModelsCommands(program: Command): void;
19
+ export { parseListFilters, parseListLimit };
20
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGzC,OAAO,EAAS,eAAe,EAAgB,MAAM,mBAAmB,CAAC;AAKzE,KAAK,QAAQ,GAAG,OAAO,eAAe,CAAC,YAAY,CAAC;AACpD,KAAK,QAAQ,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AACrC,KAAK,WAAW,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAUtC,UAAU,iBAAiB;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,iBAAS,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAOxE;AAED,iBAAS,gBAAgB,CAAC,IAAI,EAAE,iBAAiB,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAiBhH;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAmQ7D;AAED,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAC"}