@hasna/connectors 1.3.7 → 1.3.9
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/index.js +9200 -327
- package/bin/mcp.js +9142 -239
- package/bin/serve.js +9012 -141
- package/dist/db/agents.d.ts +3 -0
- package/dist/db/database.d.ts +7 -1
- package/dist/db/pg-migrations.d.ts +6 -0
- package/dist/index.js +8997 -127
- package/dist/lib/llm.d.ts +1 -1
- package/dist/lib/lock.d.ts +1 -1
- package/package.json +2 -1
package/dist/db/agents.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export interface Agent {
|
|
|
4
4
|
name: string;
|
|
5
5
|
session_id: string | null;
|
|
6
6
|
role: string;
|
|
7
|
+
project_id: string | null;
|
|
7
8
|
last_seen_at: string;
|
|
8
9
|
created_at: string;
|
|
9
10
|
}
|
|
@@ -35,4 +36,6 @@ export declare function getAgent(id: string, db?: Database): Agent | null;
|
|
|
35
36
|
export declare function getAgentByName(name: string, db?: Database): Agent | null;
|
|
36
37
|
export declare function listAgents(db?: Database): Agent[];
|
|
37
38
|
export declare function updateAgentActivity(id: string, db?: Database): void;
|
|
39
|
+
export declare function heartbeat(id: string, db?: Database): Agent | null;
|
|
40
|
+
export declare function setFocus(id: string, projectId: string | null, db?: Database): Agent | null;
|
|
38
41
|
export declare function deleteAgent(id: string, db?: Database): boolean;
|
package/dist/db/database.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import { Database } from "
|
|
1
|
+
import { SqliteAdapter as Database } from "@hasna/cloud";
|
|
2
|
+
/**
|
|
3
|
+
* Get the connectors home directory.
|
|
4
|
+
* New default: ~/.hasna/connectors/
|
|
5
|
+
* Auto-migrates from ~/.connectors/ if the new dir doesn't exist yet.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getConnectorsHome(): string;
|
|
2
8
|
export declare function getDatabase(path?: string): Database;
|
|
3
9
|
export declare function closeDatabase(): void;
|
|
4
10
|
/** ISO timestamp string */
|