@hasna/cloud 0.1.29 → 0.1.30

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/index.js CHANGED
@@ -11008,7 +11008,7 @@ function registerCloudTools(server, serviceName, opts = {}) {
11008
11008
  isError: true
11009
11009
  };
11010
11010
  }
11011
- const local = new SqliteAdapter(getDbPath(serviceName));
11011
+ const local = new SqliteAdapter(opts.dbPath ?? getDbPath(serviceName));
11012
11012
  const cloud = new PgAdapterAsync(getConnectionString(serviceName));
11013
11013
  if (opts.migrations?.length) {
11014
11014
  for (const sql of opts.migrations) {
@@ -11036,7 +11036,7 @@ function registerCloudTools(server, serviceName, opts = {}) {
11036
11036
  isError: true
11037
11037
  };
11038
11038
  }
11039
- const local = new SqliteAdapter(getDbPath(serviceName));
11039
+ const local = new SqliteAdapter(opts.dbPath ?? getDbPath(serviceName));
11040
11040
  const cloud = new PgAdapterAsync(getConnectionString(serviceName));
11041
11041
  let tableList;
11042
11042
  if (tablesStr) {
@@ -17,5 +17,6 @@ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
17
17
  */
18
18
  export declare function registerCloudTools(server: McpServer, serviceName: string, opts?: {
19
19
  migrations?: string[];
20
+ dbPath?: string;
20
21
  }): void;
21
22
  //# sourceMappingURL=mcp-helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-helpers.d.ts","sourceRoot":"","sources":["../src/mcp-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAYzE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,EACjB,WAAW,EAAE,MAAM,EACnB,IAAI,GAAE;IAAE,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;CAAO,GACnC,IAAI,CA2JN"}
1
+ {"version":3,"file":"mcp-helpers.d.ts","sourceRoot":"","sources":["../src/mcp-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAYzE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,EACjB,WAAW,EAAE,MAAM,EACnB,IAAI,GAAE;IAAE,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAO,GACpD,IAAI,CA2JN"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/cloud",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "Shared cloud infrastructure — database adapter (SQLite + PostgreSQL), sync engine, feedback system, unified dotfile config",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",