@hasna/configs 0.2.34 → 0.2.36
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 +2 -1
- package/README.md +13 -8
- package/dist/cli/index.js +10861 -6022
- package/dist/db/database.d.ts.map +1 -1
- package/dist/db/pg-migrations.d.ts.map +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4924 -532
- package/dist/mcp/http.d.ts +28 -0
- package/dist/mcp/http.d.ts.map +1 -0
- package/dist/mcp/http.test.d.ts +2 -0
- package/dist/mcp/http.test.d.ts.map +1 -0
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +10267 -5365
- package/dist/mcp/server.d.ts +4 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +26169 -2617
- package/package.json +3 -3
- package/dist/cli/cloud.d.ts +0 -3
- package/dist/cli/cloud.d.ts.map +0 -1
- package/dist/db/cloud-sync.d.ts +0 -33
- package/dist/db/cloud-sync.d.ts.map +0 -1
- package/dist/db/remote-storage.d.ts +0 -10
- package/dist/db/remote-storage.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/configs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.36",
|
|
4
4
|
"description": "AI coding agent configuration manager — store, version, apply, and share all your AI coding configs. CLI + MCP + REST API + Dashboard.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -65,18 +65,18 @@
|
|
|
65
65
|
"author": "Andrei Hasna <andrei@hasna.com>",
|
|
66
66
|
"license": "Apache-2.0",
|
|
67
67
|
"dependencies": {
|
|
68
|
+
"@hasna/cloud": "0.1.24",
|
|
69
|
+
"@hasna/events": "^0.1.6",
|
|
68
70
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
69
71
|
"chalk": "^5.4.1",
|
|
70
72
|
"commander": "^13.1.0",
|
|
71
73
|
"hono": "^4.7.4",
|
|
72
74
|
"ink": "^5.2.0",
|
|
73
|
-
"pg": "^8.13.3",
|
|
74
75
|
"react": "^18.3.1",
|
|
75
76
|
"zod": "^3.24.2"
|
|
76
77
|
},
|
|
77
78
|
"devDependencies": {
|
|
78
79
|
"@types/bun": "^1.2.4",
|
|
79
|
-
"@types/pg": "^8.11.11",
|
|
80
80
|
"@types/react": "^18.3.18",
|
|
81
81
|
"typescript": "^5.7.3"
|
|
82
82
|
}
|
package/dist/cli/cloud.d.ts
DELETED
package/dist/cli/cloud.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cloud.d.ts","sourceRoot":"","sources":["../../src/cli/cloud.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+BzC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA6C5D"}
|
package/dist/db/cloud-sync.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { PgAdapterAsync } from "./remote-storage.js";
|
|
2
|
-
export declare const CLOUD_TABLES: readonly ["configs", "config_snapshots", "profiles", "profile_configs", "machines", "feedback"];
|
|
3
|
-
type CloudTable = (typeof CLOUD_TABLES)[number];
|
|
4
|
-
export interface SyncResult {
|
|
5
|
-
table: string;
|
|
6
|
-
rowsRead: number;
|
|
7
|
-
rowsWritten: number;
|
|
8
|
-
errors: string[];
|
|
9
|
-
}
|
|
10
|
-
export interface SyncMeta {
|
|
11
|
-
table_name: string;
|
|
12
|
-
last_synced_at: string | null;
|
|
13
|
-
direction: "push" | "pull";
|
|
14
|
-
}
|
|
15
|
-
export declare function getCloudDatabaseUrl(): string | null;
|
|
16
|
-
export declare function getCloudPg(): Promise<PgAdapterAsync>;
|
|
17
|
-
export declare function runCloudMigrations(remote: PgAdapterAsync): Promise<void>;
|
|
18
|
-
export declare function cloudPush(options?: {
|
|
19
|
-
tables?: string[];
|
|
20
|
-
}): Promise<SyncResult[]>;
|
|
21
|
-
export declare function cloudPull(options?: {
|
|
22
|
-
tables?: string[];
|
|
23
|
-
}): Promise<SyncResult[]>;
|
|
24
|
-
export declare function cloudSync(options?: {
|
|
25
|
-
tables?: string[];
|
|
26
|
-
}): Promise<{
|
|
27
|
-
pull: SyncResult[];
|
|
28
|
-
push: SyncResult[];
|
|
29
|
-
}>;
|
|
30
|
-
export declare function getSyncMetaAll(): SyncMeta[];
|
|
31
|
-
export declare function resolveTables(tables?: string[]): CloudTable[];
|
|
32
|
-
export {};
|
|
33
|
-
//# sourceMappingURL=cloud-sync.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-sync.d.ts","sourceRoot":"","sources":["../../src/db/cloud-sync.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,eAAO,MAAM,YAAY,iGAAkG,CAAC;AAE5H,KAAK,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAYhD,MAAM,WAAW,UAAU;IAAG,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAC;CAAE;AACvG,MAAM,WAAW,QAAQ;IAAG,UAAU,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;CAAE;AAE5G,wBAAgB,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAKnD;AAED,wBAAsB,UAAU,IAAI,OAAO,CAAC,cAAc,CAAC,CAI1D;AAED,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAG9E;AAED,wBAAsB,SAAS,CAAC,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAYtF;AAED,wBAAsB,SAAS,CAAC,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAYtF;AAED,wBAAsB,SAAS,CAAC,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,UAAU,EAAE,CAAC;IAAC,IAAI,EAAE,UAAU,EAAE,CAAA;CAAE,CAAC,CAIpH;AAED,wBAAgB,cAAc,IAAI,QAAQ,EAAE,CAI3C;AAED,wBAAgB,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,CAO7D"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare class PgAdapterAsync {
|
|
2
|
-
private readonly pool;
|
|
3
|
-
constructor(connectionString: string);
|
|
4
|
-
run(sql: string, ...params: unknown[]): Promise<{
|
|
5
|
-
changes: number;
|
|
6
|
-
}>;
|
|
7
|
-
all(sql: string, ...params: unknown[]): Promise<unknown[]>;
|
|
8
|
-
close(): Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=remote-storage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-storage.d.ts","sourceRoot":"","sources":["../../src/db/remote-storage.ts"],"names":[],"mappings":"AAmBA,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAO;gBAEhB,gBAAgB,EAAE,MAAM;IAI9B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAKpE,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAK1D,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG7B"}
|