@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 +2 -1
- package/README.md +15 -0
- package/dist/cli/commands/cloud.d.ts +3 -0
- package/dist/cli/commands/cloud.d.ts.map +1 -0
- package/dist/cli/commands/collections.d.ts +3 -0
- package/dist/cli/commands/collections.d.ts.map +1 -0
- package/dist/cli/commands/data.d.ts +5 -0
- package/dist/cli/commands/data.d.ts.map +1 -0
- package/dist/cli/commands/finetune.d.ts +3 -0
- package/dist/cli/commands/finetune.d.ts.map +1 -0
- package/dist/cli/commands/models.d.ts +20 -0
- package/dist/cli/commands/models.d.ts.map +1 -0
- package/dist/cli/index.js +15347 -12748
- package/dist/cli/remove.d.ts +3 -0
- package/dist/cli/remove.d.ts.map +1 -0
- package/dist/db/index.d.ts.map +1 -1
- package/dist/db/pg-migrate.d.ts +14 -0
- package/dist/db/pg-migrate.d.ts.map +1 -0
- package/dist/db/pg-migrations.d.ts +1 -0
- package/dist/db/pg-migrations.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3981 -3200
- package/dist/mcp/http.d.ts +16 -0
- package/dist/mcp/http.d.ts.map +1 -0
- package/dist/mcp/index.d.ts +3 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +4639 -3225
- package/dist/server/index.d.ts +5 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +3853 -3171
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../src/cli/remove.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,KAAK,CAAC;AAE/C,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAO9E"}
|
package/dist/db/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/db/index.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/db/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkC,aAAa,EAAuB,MAAM,cAAc,CAAC;AAElG,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,cAAc,aAAa,CAAC;AAS5B,wBAAgB,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM;;EAsDpC;AAED,4EAA4E;AAC5E,wBAAgB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,aAAa,CAGvD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface PgMigrationResult {
|
|
2
|
+
applied: number[];
|
|
3
|
+
alreadyApplied: number[];
|
|
4
|
+
errors: string[];
|
|
5
|
+
totalMigrations: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Apply all pending PostgreSQL migrations to the given database.
|
|
9
|
+
*
|
|
10
|
+
* @param connectionString - PostgreSQL connection string
|
|
11
|
+
* @returns Summary of which migrations were applied / skipped / errored.
|
|
12
|
+
*/
|
|
13
|
+
export declare function applyPgMigrations(connectionString: string): Promise<PgMigrationResult>;
|
|
14
|
+
//# sourceMappingURL=pg-migrate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pg-migrate.d.ts","sourceRoot":"","sources":["../../src/db/pg-migrate.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,iBAAiB,CAAC,CAmD5B"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* PostgreSQL migrations for open-brains cloud sync.
|
|
3
3
|
*
|
|
4
4
|
* Equivalent to the SQLite schema in schema.ts + index.ts, translated for PostgreSQL.
|
|
5
|
+
* Timestamps are stored as BIGINT (Unix epoch milliseconds) to match SQLite integer columns.
|
|
5
6
|
*/
|
|
6
7
|
export declare const PG_MIGRATIONS: string[];
|
|
7
8
|
//# sourceMappingURL=pg-migrations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pg-migrations.d.ts","sourceRoot":"","sources":["../../src/db/pg-migrations.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"pg-migrations.d.ts","sourceRoot":"","sources":["../../src/db/pg-migrations.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,aAAa,EAAE,MAAM,EAiDjC,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC"}
|