@automagik/omni 2.260617.4 → 2.260618.1

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.
@@ -26,7 +26,8 @@
26
26
  * --------
27
27
  * Spawn a matching-major `postgres` reader against the unmounted embedded
28
28
  * data dir on a free TCP port, copy the shared public-schema tables over to
29
- * canonical via psql `\copy`, then shut the temp postmaster down.
29
+ * canonical via postgres.js `COPY` streams (over the wire NO host
30
+ * `psql`/`pg_dump`), then shut the temp postmaster down.
30
31
  *
31
32
  * Cross-major + cross-schema seamless: a PostgreSQL server can only open a
32
33
  * data dir of its OWN major, so the reader major MUST match the embedded
@@ -112,13 +113,6 @@ export type CompareResult = {
112
113
  export interface CompareOptions {
113
114
  canonicalPort?: number;
114
115
  }
115
- /**
116
- * Count rows in every public table on both the embedded data dir and the
117
- * canonical postmaster, return which tables have MORE rows on embedded.
118
- * Boots a temp postmaster against the embedded dir (5s ready window),
119
- * runs two count queries, shuts it down. Best-effort: any spawn / query
120
- * failure returns `{ kind: 'skipped' }`.
121
- */
122
116
  export declare function compareEmbeddedVsCanonicalCounts(opts?: CompareOptions): Promise<CompareResult>;
123
117
  export declare function migrateUnmountedEmbeddedToCanonical(opts?: MigrateOptions): Promise<MigrationResult>;
124
118
  /** Re-export the constant so callers / tests can probe the same path. */
@@ -1 +1 @@
1
- {"version":3,"file":"embedded-canonical-migration.d.ts","sourceRoot":"","sources":["../../src/lib/embedded-canonical-migration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAWH,MAAM,MAAM,eAAe,GACvB;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAC1D;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1C,MAAM,WA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AAe,CAAC,CA+D7G;AAED,yEAAyE;AACzE,eAAO,MAAM,yBAAyB,QAAe,CAAC"}
@@ -225245,7 +225245,7 @@ var init_sentry_scrub = __esm(() => {
225245
225245
  var require_package7 = __commonJS((exports, module) => {
225246
225246
  module.exports = {
225247
225247
  name: "@omni/api",
225248
- version: "2.260617.4",
225248
+ version: "2.260618.1",
225249
225249
  type: "module",
225250
225250
  exports: {
225251
225251
  ".": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automagik/omni",
3
- "version": "2.260617.4",
3
+ "version": "2.260618.1",
4
4
  "description": "LLM-optimized CLI for Omni",
5
5
  "type": "module",
6
6
  "bin": {
@@ -48,6 +48,7 @@
48
48
  "opusscript": "^0.1.1",
49
49
  "ora": "^8.1.1",
50
50
  "pdf-parse": "^1.1.1",
51
+ "postgres": "^3.4.5",
51
52
  "qrcode-terminal": "^0.12.0",
52
53
  "sharp": "^0.34.5"
53
54
  },