@hasna/conversations 0.2.18 → 0.2.19
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/bin/hook.js +8869 -10
- package/bin/index.js +10814 -1826
- package/bin/mcp.js +8905 -83
- package/dist/cli/brains.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8980 -26
- package/dist/lib/db.d.ts +2 -1
- package/dist/lib/gatherer.d.ts +15 -0
- package/dist/lib/identity.d.ts +1 -1
- package/dist/lib/model-config.d.ts +7 -0
- package/package.json +2 -1
package/dist/lib/db.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Database } from "
|
|
1
|
+
import { SqliteAdapter as Database } from "@hasna/cloud";
|
|
2
|
+
export declare function getDataDir(): string;
|
|
2
3
|
export declare function getDbPath(): string;
|
|
3
4
|
export declare function getDb(): Database;
|
|
4
5
|
export declare function closeDb(): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type GatherTrainingDataFn = (options?: {
|
|
2
|
+
limit?: number;
|
|
3
|
+
since?: Date;
|
|
4
|
+
}) => Promise<{
|
|
5
|
+
source: string;
|
|
6
|
+
examples: Array<{
|
|
7
|
+
messages: Array<{
|
|
8
|
+
role: 'system' | 'user' | 'assistant';
|
|
9
|
+
content: string;
|
|
10
|
+
}>;
|
|
11
|
+
}>;
|
|
12
|
+
count: number;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const gatherTrainingData: GatherTrainingDataFn;
|
|
15
|
+
export {};
|
package/dist/lib/identity.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Get or create a persistent auto-generated agent name.
|
|
3
|
-
* Stored in ~/.conversations/agent-id so the same installation
|
|
3
|
+
* Stored in ~/.hasna/conversations/agent-id so the same installation
|
|
4
4
|
* always gets the same name. Checks the DB to avoid duplicates.
|
|
5
5
|
*/
|
|
6
6
|
export declare function getAutoName(): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const DEFAULT_MODEL = "gpt-4o-mini";
|
|
2
|
+
/** Returns the active fine-tuned model ID, or the default model if none is set. */
|
|
3
|
+
export declare function getActiveModel(): string;
|
|
4
|
+
/** Sets the active fine-tuned model ID in ~/.hasna/conversations/config.json. */
|
|
5
|
+
export declare function setActiveModel(id: string): void;
|
|
6
|
+
/** Clears the active fine-tuned model, reverting to the default. */
|
|
7
|
+
export declare function clearActiveModel(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/conversations",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"description": "Real-time CLI messaging for AI agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"typescript": "^5"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
+
"@hasna/cloud": "^0.1.0",
|
|
53
54
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
54
55
|
"chalk": "^5.3.0",
|
|
55
56
|
"commander": "^12.1.0",
|