@automagik/omni 2.260520.11 → 2.260520.13
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.13",
|
|
124071
124071
|
description: "LLM-optimized CLI for Omni",
|
|
124072
124072
|
type: "module",
|
|
124073
124073
|
bin: {
|
|
@@ -125435,7 +125435,7 @@ BEGIN
|
|
|
125435
125435
|
END IF;
|
|
125436
125436
|
END
|
|
125437
125437
|
$$;`,
|
|
125438
|
-
`GRANT CONNECT, TEMPORARY ON DATABASE "${database}" TO "${roleName}";`
|
|
125438
|
+
`GRANT CONNECT, TEMPORARY, CREATE ON DATABASE "${database}" TO "${roleName}";`
|
|
125439
125439
|
];
|
|
125440
125440
|
const dbCreateOk = await runPsql(sqlScript.join(`
|
|
125441
125441
|
`), { socketDir: opts.socketDir, port, database: "postgres" });
|
|
@@ -125443,6 +125443,8 @@ $$;`,
|
|
|
125443
125443
|
return { status: "skipped", reason: "psql role provisioning failed" };
|
|
125444
125444
|
}
|
|
125445
125445
|
const grantsScript = [
|
|
125446
|
+
"CREATE EXTENSION IF NOT EXISTS pgcrypto;",
|
|
125447
|
+
`ALTER SCHEMA public OWNER TO "${roleName}";`,
|
|
125446
125448
|
`GRANT USAGE, CREATE ON SCHEMA public TO "${roleName}";`,
|
|
125447
125449
|
`GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO "${roleName}";`,
|
|
125448
125450
|
`GRANT USAGE, SELECT, UPDATE ON ALL SEQUENCES IN SCHEMA public TO "${roleName}";`,
|
|
@@ -28,11 +28,6 @@
|
|
|
28
28
|
* - doctor.ts validation that the scoped role is in active use
|
|
29
29
|
* - Migration of pre-cutover objects' ownership to the scoped role
|
|
30
30
|
*/
|
|
31
|
-
/**
|
|
32
|
-
* Compute the scoped role name for an omni install. Deterministic — same
|
|
33
|
-
* install always produces the same role name across reruns.
|
|
34
|
-
*/
|
|
35
|
-
export declare function deriveOmniScopedRoleName(): string;
|
|
36
31
|
export interface OmniRoleCutoverSentinel {
|
|
37
32
|
/** The provisioned role name (matches deriveOmniScopedRoleName output). */
|
|
38
33
|
roleName: string;
|
|
@@ -43,9 +38,6 @@ export interface OmniRoleCutoverSentinel {
|
|
|
43
38
|
/** ISO timestamp of provisioning. */
|
|
44
39
|
provisionedAt: string;
|
|
45
40
|
}
|
|
46
|
-
export declare function readOmniCutoverSentinel(): OmniRoleCutoverSentinel | null;
|
|
47
|
-
export declare function clearOmniCutoverSentinel(): void;
|
|
48
|
-
export declare function isOmniRoleCutoverEnabled(): boolean;
|
|
49
41
|
export interface EnsureOmniScopedRoleOptions {
|
|
50
42
|
/** Path to autopg's canonical Unix socket dir (e.g. /run/user/1000/pgserve). */
|
|
51
43
|
socketDir: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role-cutover.d.ts","sourceRoot":"","sources":["../../src/lib/role-cutover.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;
|
|
1
|
+
{"version":3,"file":"role-cutover.d.ts","sourceRoot":"","sources":["../../src/lib/role-cutover.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAmEH,MAAM,WAAW,uBAAuB;IACtC,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,aAAa,EAAE,MAAM,CAAC;CACvB;AA+DD,MAAM,WAAW,2BAA2B;IAC1C,gFAAgF;IAChF,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wEAAwE;IACxE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,MAAM,0BAA0B,GAClC;IAAE,MAAM,EAAE,aAAa,GAAG,WAAW,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACzD;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1C;;;;;;;;;;;GAWG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAsFjH;AA0CD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,IAAI,wBAAwB,GAAG,IAAI,CAc9E"}
|
package/dist/runtime-env.d.ts
CHANGED
|
@@ -101,15 +101,6 @@ export declare function resolvePgservePort(serverConfig: ServerConfig): number;
|
|
|
101
101
|
* This function never reads `process.env.DATABASE_URL`.
|
|
102
102
|
*/
|
|
103
103
|
export declare function resolveDatabaseUrl(serverConfig: ServerConfig): string;
|
|
104
|
-
/**
|
|
105
|
-
* Replace the userinfo in a postgresql:// URL with the scoped-role
|
|
106
|
-
* credentials. Returns the URL unchanged when `creds` is null. Pure;
|
|
107
|
-
* URL-safe via WHATWG URL.
|
|
108
|
-
*/
|
|
109
|
-
export declare function applyScopedCredentials(url: string, creds: {
|
|
110
|
-
username: string;
|
|
111
|
-
password: string;
|
|
112
|
-
} | null): string;
|
|
113
104
|
/**
|
|
114
105
|
* Build the complete runtime env for the omni-api process.
|
|
115
106
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-env.d.ts","sourceRoot":"","sources":["../src/runtime-env.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AASxD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IAQrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAQF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,0EAA0E;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,GAAE,MAA6B,GAAG,MAAM,CAE3F;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,IAAI,MAAM,CAKxD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAMrE;AAgBD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAiBrE;
|
|
1
|
+
{"version":3,"file":"runtime-env.d.ts","sourceRoot":"","sources":["../src/runtime-env.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AASxD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IAQrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAQF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,0EAA0E;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,GAAE,MAA6B,GAAG,MAAM,CAE3F;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,IAAI,MAAM,CAKxD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAMrE;AAgBD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAiBrE;AAoBD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,UAAU,CAqCzF"}
|
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.13",
|
|
230141
230141
|
type: "module",
|
|
230142
230142
|
exports: {
|
|
230143
230143
|
".": {
|