@automagik/omni 2.260520.4 → 2.260520.6
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
|
@@ -124067,7 +124067,7 @@ import { fileURLToPath } from "url";
|
|
|
124067
124067
|
// package.json
|
|
124068
124068
|
var package_default = {
|
|
124069
124069
|
name: "@automagik/omni",
|
|
124070
|
-
version: "2.260520.
|
|
124070
|
+
version: "2.260520.6",
|
|
124071
124071
|
description: "LLM-optimized CLI for Omni",
|
|
124072
124072
|
type: "module",
|
|
124073
124073
|
bin: {
|
|
@@ -125334,7 +125334,7 @@ function buildDatabaseUrlForTransport(transport, database, options = {}) {
|
|
|
125334
125334
|
host: transport.socketDir,
|
|
125335
125335
|
port: String(transport.port)
|
|
125336
125336
|
});
|
|
125337
|
-
return `postgresql://${auth}
|
|
125337
|
+
return `postgresql://${auth}@localhost/${encodeURIComponent(database)}?${params.toString()}`;
|
|
125338
125338
|
}
|
|
125339
125339
|
return `postgresql://${auth}@${transport.host}:${transport.port}/${encodeURIComponent(database)}`;
|
|
125340
125340
|
}
|
|
@@ -78,9 +78,19 @@ export declare function probeCanonicalSocketSync(): boolean;
|
|
|
78
78
|
* supplied database name. Mirrors the URL shapes documented in
|
|
79
79
|
* SHARED-DESIGN.md §5.3 (omni-side scope).
|
|
80
80
|
*
|
|
81
|
-
* UDS shape: `postgresql://postgres:postgres
|
|
81
|
+
* UDS shape: `postgresql://postgres:postgres@localhost/omni?host=/run/user/1000/pgserve&port=5432`
|
|
82
82
|
* TCP shape: `postgresql://postgres:postgres@127.0.0.1:5432/omni`
|
|
83
83
|
*
|
|
84
|
+
* UDS placeholder host (`localhost`) is intentional. The previous form
|
|
85
|
+
* `postgresql://user:pass@/db?host=…` is libpq-valid but rejects when
|
|
86
|
+
* parsed by Node's WHATWG `URL()` constructor with "Invalid URL"
|
|
87
|
+
* (empty authority between `@` and `/`). omni-api's startup pipeline
|
|
88
|
+
* runs `new URL(DATABASE_URL)` for validation/redaction, which
|
|
89
|
+
* crashloops `omni-api` with `TypeError [ERR_INVALID_URL]` whenever
|
|
90
|
+
* the canonical UDS is reachable. libpq still routes to the socket
|
|
91
|
+
* because the `host=` query parameter overrides the URL host —
|
|
92
|
+
* placeholder is never dialed.
|
|
93
|
+
*
|
|
84
94
|
* The username/password pair is preserved (not derived from the transport)
|
|
85
95
|
* because omni's pgserve consumer keeps libpq peer-auth via password —
|
|
86
96
|
* pgserve@>=2.3 issues a per-fingerprint role credential and the API
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pgserve-transport.d.ts","sourceRoot":"","sources":["../../src/lib/pgserve-transport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAQH,8FAA8F;AAC9F,eAAO,MAAM,iBAAiB,OAAO,CAAC;AActC;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GACxB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAIhD;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,IAAI,MAAM,CAEtD;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,IAAI,MAAM,CAExD;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,IAAI,OAAO,CAElD;AAED
|
|
1
|
+
{"version":3,"file":"pgserve-transport.d.ts","sourceRoot":"","sources":["../../src/lib/pgserve-transport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAQH,8FAA8F;AAC9F,eAAO,MAAM,iBAAiB,OAAO,CAAC;AActC;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GACxB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAIhD;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,IAAI,MAAM,CAEtD;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,IAAI,MAAM,CAExD;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,IAAI,OAAO,CAElD;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,gBAAgB,EAC3B,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,GACrD,MAAM,CAcR;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,gBAAgB,CAAC,CA+BzE"}
|
package/dist/server/index.js
CHANGED
|
@@ -230137,7 +230137,7 @@ var init_sentry_scrub = __esm(() => {
|
|
|
230137
230137
|
var require_package8 = __commonJS((exports, module) => {
|
|
230138
230138
|
module.exports = {
|
|
230139
230139
|
name: "@omni/api",
|
|
230140
|
-
version: "2.260520.
|
|
230140
|
+
version: "2.260520.6",
|
|
230141
230141
|
type: "module",
|
|
230142
230142
|
exports: {
|
|
230143
230143
|
".": {
|