@runa-ai/runa-cli 0.5.39 → 0.5.41
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/commands/db/apply/actors.d.ts +8 -0
- package/dist/commands/db/apply/actors.d.ts.map +1 -1
- package/dist/commands/db/apply/helpers/index.d.ts +3 -1
- package/dist/commands/db/apply/helpers/index.d.ts.map +1 -1
- package/dist/commands/db/apply/helpers/pg-schema-diff-helpers.d.ts +23 -1
- package/dist/commands/db/apply/helpers/pg-schema-diff-helpers.d.ts.map +1 -1
- package/dist/commands/db/apply/helpers/shadow-db-manager.d.ts +70 -0
- package/dist/commands/db/apply/helpers/shadow-db-manager.d.ts.map +1 -0
- package/dist/commands/db/apply/machine.d.ts +20 -9
- package/dist/commands/db/apply/machine.d.ts.map +1 -1
- package/dist/commands/db/commands/db-cleanup.d.ts.map +1 -1
- package/dist/commands/db/commands/db-sync.d.ts.map +1 -1
- package/dist/commands/db/sync/actors.d.ts.map +1 -1
- package/dist/commands/db/utils/preflight-check.d.ts.map +1 -1
- package/dist/commands/db/utils/schema-sync.d.ts +43 -0
- package/dist/commands/db/utils/schema-sync.d.ts.map +1 -1
- package/dist/commands/env/commands/setup/parsers.d.ts +1 -0
- package/dist/commands/env/commands/setup/parsers.d.ts.map +1 -1
- package/dist/commands/template-check/utils/path-mapping.d.ts.map +1 -1
- package/dist/constants/versions.d.ts +1 -1
- package/dist/index.js +2317 -1924
- package/package.json +2 -2
|
@@ -25,6 +25,14 @@ export declare const applyIdempotentSchemas: import("xstate").PromiseActorLogic<
|
|
|
25
25
|
}, import("xstate").EventObject>;
|
|
26
26
|
/**
|
|
27
27
|
* Apply schema changes using pg-schema-diff (or direct psql for fresh DB).
|
|
28
|
+
*
|
|
29
|
+
* Extension Support:
|
|
30
|
+
* If pgSchemaDiff.shadowDbExtensions is configured in runa.config.ts,
|
|
31
|
+
* creates a shadow database with those extensions installed for type resolution.
|
|
32
|
+
* This enables pg-schema-diff to recognize extension-defined types like
|
|
33
|
+
* PostGIS geometry or pgvector vector.
|
|
34
|
+
*
|
|
35
|
+
* @see https://github.com/stripe/pg-schema-diff/pull/194
|
|
28
36
|
*/
|
|
29
37
|
export declare const applyPgSchemaDiff: import("xstate").PromiseActorLogic<PgSchemaDiffResult, {
|
|
30
38
|
input: DbApplyInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actors.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/apply/actors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"actors.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/apply/actors.ts"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AA4ElD,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAwwBD;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;WAExB,YAAY;eAAa,MAAM;gCAgCxC,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB;WAEnB,YAAY;eAAa,MAAM;gCA2GxC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU;aACV,OAAO;;WACT,YAAY;eAAa,MAAM;gCAqDxC,CAAC"}
|
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
* Purpose: Export all helper functions for db apply actors
|
|
5
5
|
*/
|
|
6
6
|
export { acquireAdvisoryLock, MIGRATION_LOCK_ID, releaseAdvisoryLock, } from './advisory-lock.js';
|
|
7
|
-
export type { ParsedHazard } from './pg-schema-diff-helpers.js';
|
|
7
|
+
export type { ParsedHazard, PgSchemaDiffPlanOptions } from './pg-schema-diff-helpers.js';
|
|
8
|
+
export type { ShadowDbConfig, ShadowDbResult } from './shadow-db-manager.js';
|
|
8
9
|
export { buildAllowedHazards, displayCheckModeResults, displayHazards, displayHazardsWithContext, executePgSchemaDiffPlan, filterFalsePositiveHazards, getIdempotentRoles, handleHazards, handleHazardsWithContext, handleProductionAuthzProtection, handleProductionDataProtection, isIdempotentRoleHazard, parseHazardsFromOutput, parseHazardsWithContext, resetIdempotentRolesCache, verifyDatabaseConnection, verifyPgSchemaDiffBinary, } from './pg-schema-diff-helpers.js';
|
|
9
10
|
export type { RetryConfig, RetryResult } from './retry-logic.js';
|
|
10
11
|
export { BASE_DELAY_MS, calculateBackoffDelay, DEFAULT_MAX_DELAY_MS, executeApplyWithRetry, isLockTimeoutError, MAX_RETRIES, sleep, } from './retry-logic.js';
|
|
12
|
+
export { createShadowDbWithExtensions, needsShadowDb } from './shadow-db-manager.js';
|
|
11
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/commands/db/apply/helpers/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/commands/db/apply/helpers/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACzF,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,cAAc,EACd,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,kBAAkB,EAClB,aAAa,EACb,wBAAwB,EACxB,+BAA+B,EAC/B,8BAA8B,EAC9B,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,WAAW,EACX,KAAK,GACN,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,4BAA4B,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -116,10 +116,32 @@ export declare function handleHazardsWithContext(planOutput: string, input: DbAp
|
|
|
116
116
|
hasDeletesData: boolean;
|
|
117
117
|
hasAuthzUpdate: boolean;
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* Options for pg-schema-diff plan execution.
|
|
121
|
+
*/
|
|
122
|
+
export interface PgSchemaDiffPlanOptions {
|
|
123
|
+
/**
|
|
124
|
+
* Shadow DB DSN for extension type resolution.
|
|
125
|
+
*
|
|
126
|
+
* When specified, pg-schema-diff uses this database for parsing
|
|
127
|
+
* extension-defined types (PostGIS geometry, pgvector vector, etc.).
|
|
128
|
+
*
|
|
129
|
+
* This is passed as --temp-db-dsn to pg-schema-diff.
|
|
130
|
+
*
|
|
131
|
+
* @see https://github.com/stripe/pg-schema-diff/pull/194
|
|
132
|
+
*/
|
|
133
|
+
tempDbDsn?: string;
|
|
134
|
+
}
|
|
119
135
|
/**
|
|
120
136
|
* Execute pg-schema-diff plan and handle errors.
|
|
137
|
+
*
|
|
138
|
+
* @param dbUrl - Source database URL (--from-dsn)
|
|
139
|
+
* @param schemasDir - Directory containing declarative SQL schemas (--to-dir)
|
|
140
|
+
* @param includeSchemas - Schemas to include in diff
|
|
141
|
+
* @param verbose - Enable verbose logging
|
|
142
|
+
* @param options - Additional options (tempDbDsn for extension support)
|
|
121
143
|
*/
|
|
122
|
-
export declare function executePgSchemaDiffPlan(dbUrl: string, schemasDir: string, includeSchemas: string[], verbose: boolean): {
|
|
144
|
+
export declare function executePgSchemaDiffPlan(dbUrl: string, schemasDir: string, includeSchemas: string[], verbose: boolean, options?: PgSchemaDiffPlanOptions): {
|
|
123
145
|
planOutput: string;
|
|
124
146
|
planStderr: string;
|
|
125
147
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pg-schema-diff-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/commands/db/apply/helpers/pg-schema-diff-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAqBnD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CA+ChE;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CA0BzF;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,YAAY,EAAE,EACvB,UAAU,CAAC,EAAE,MAAM,GAClB;IAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;IAAC,cAAc,EAAE,YAAY,EAAE,CAAA;CAAE,CAa9D;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,IAAI,IAAI,CAEhD;AAMD;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAa/C;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAe5D;AAMD;;GAEG;AACH,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,MAAM,EAAE,CAAC;IAAC,cAAc,EAAE,OAAO,CAAC;IAAC,cAAc,EAAE,OAAO,CAAA;CAAE,CAsDzE;AAMD;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,EAAE,EACxB,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"pg-schema-diff-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/commands/db/apply/helpers/pg-schema-diff-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAqBnD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CA+ChE;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CA0BzF;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,YAAY,EAAE,EACvB,UAAU,CAAC,EAAE,MAAM,GAClB;IAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;IAAC,cAAc,EAAE,YAAY,EAAE,CAAA;CAAE,CAa9D;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,IAAI,IAAI,CAEhD;AAMD;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAa/C;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAe5D;AAMD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,6DAA6D;IAC7D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,UAAU,CAAC,EAAE,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;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,EAAE,EACxB,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,uBAAuB,GAChC;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAgD5C"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI HINT: Shadow DB Manager for pg-schema-diff Extension Support
|
|
3
|
+
*
|
|
4
|
+
* Purpose: Create and manage a shadow database with extensions installed
|
|
5
|
+
* for pg-schema-diff type resolution.
|
|
6
|
+
*
|
|
7
|
+
* Background:
|
|
8
|
+
* pg-schema-diff cannot recognize extension-defined types (PostGIS geometry,
|
|
9
|
+
* pgvector vector, etc.) when parsing SQL schema files. This module creates
|
|
10
|
+
* a temporary shadow database with the required extensions installed, which
|
|
11
|
+
* pg-schema-diff can use via --temp-db-dsn for type resolution.
|
|
12
|
+
*
|
|
13
|
+
* This is a temporary solution until pg-schema-diff PR #194 is merged:
|
|
14
|
+
* @see https://github.com/stripe/pg-schema-diff/pull/194
|
|
15
|
+
*
|
|
16
|
+
* Flow:
|
|
17
|
+
* 1. Create temp database (pg_schema_diff_shadow_{timestamp})
|
|
18
|
+
* 2. Install extensions from config
|
|
19
|
+
* 3. Return DSN for --temp-db-dsn
|
|
20
|
+
* 4. Cleanup on completion (DROP DATABASE)
|
|
21
|
+
*
|
|
22
|
+
* Security:
|
|
23
|
+
* - Uses psqlSyncQuery for safe SQL execution (no command injection)
|
|
24
|
+
* - Database name is sanitized (alphanumeric + underscore only)
|
|
25
|
+
* - Cleanup is always attempted in finally block
|
|
26
|
+
*/
|
|
27
|
+
export interface ShadowDbConfig {
|
|
28
|
+
/** Extensions to install in shadow DB */
|
|
29
|
+
extensions: string[];
|
|
30
|
+
/** Database URL to derive connection params from */
|
|
31
|
+
sourceDbUrl: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ShadowDbResult {
|
|
34
|
+
/** DSN for pg-schema-diff --temp-db-dsn */
|
|
35
|
+
dsn: string;
|
|
36
|
+
/** Created database name */
|
|
37
|
+
dbName: string;
|
|
38
|
+
/** Cleanup function to drop the shadow database */
|
|
39
|
+
cleanup: () => Promise<void>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Create a shadow database with specified extensions installed.
|
|
43
|
+
*
|
|
44
|
+
* The shadow database is used by pg-schema-diff via --temp-db-dsn
|
|
45
|
+
* to resolve extension-defined types (geometry, vector, etc.).
|
|
46
|
+
*
|
|
47
|
+
* @param config - Shadow DB configuration
|
|
48
|
+
* @returns Shadow DB result with DSN and cleanup function
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```typescript
|
|
52
|
+
* const shadow = await createShadowDbWithExtensions({
|
|
53
|
+
* extensions: ['postgis', 'vector'],
|
|
54
|
+
* sourceDbUrl: 'postgresql://postgres:postgres@localhost:54322/postgres',
|
|
55
|
+
* });
|
|
56
|
+
*
|
|
57
|
+
* try {
|
|
58
|
+
* // Use shadow.dsn with pg-schema-diff --temp-db-dsn
|
|
59
|
+
* executePgSchemaDiff({ tempDbDsn: shadow.dsn });
|
|
60
|
+
* } finally {
|
|
61
|
+
* await shadow.cleanup();
|
|
62
|
+
* }
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function createShadowDbWithExtensions(config: ShadowDbConfig): Promise<ShadowDbResult>;
|
|
66
|
+
/**
|
|
67
|
+
* Check if shadow DB with extensions is needed based on config.
|
|
68
|
+
*/
|
|
69
|
+
export declare function needsShadowDb(extensions: string[] | undefined): boolean;
|
|
70
|
+
//# sourceMappingURL=shadow-db-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadow-db-manager.d.ts","sourceRoot":"","sources":["../../../../../src/commands/db/apply/helpers/shadow-db-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAWH,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,4BAA4B;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAiID;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,4BAA4B,CAChD,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,cAAc,CAAC,CAwCzB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,SAAS,GAAG,OAAO,CAEvE"}
|
|
@@ -3,10 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Purpose: Orchestrate schema application to any DB (local, Branch DB, Production)
|
|
5
5
|
*
|
|
6
|
-
* User Journey:
|
|
7
|
-
* 1. Apply idempotent schemas (extensions,
|
|
6
|
+
* User Journey (2-pass idempotent):
|
|
7
|
+
* 1. Apply idempotent schemas (1st pass: extensions, roles - may skip dependent tables)
|
|
8
8
|
* 2. Run pg-schema-diff (current DB → desired state)
|
|
9
|
-
* 3. Apply
|
|
9
|
+
* 3. Apply idempotent schemas (2nd pass: dependent tables now succeed)
|
|
10
|
+
* 4. Apply seeds
|
|
11
|
+
*
|
|
12
|
+
* Why 2-pass idempotent?
|
|
13
|
+
* - Some idempotent SQL depends on declarative tables (e.g., areas → floors)
|
|
14
|
+
* - 1st pass: extensions/roles succeed, dependent tables are skipped (no error)
|
|
15
|
+
* - 2nd pass: dependent tables succeed because declarative tables now exist
|
|
10
16
|
*
|
|
11
17
|
* Architecture:
|
|
12
18
|
* - No migration files needed
|
|
@@ -15,8 +21,9 @@
|
|
|
15
21
|
*
|
|
16
22
|
* E2E Test Mapping (CLI observable behavior):
|
|
17
23
|
* - idle → expect(log).toContain('Starting db apply')
|
|
18
|
-
* -
|
|
24
|
+
* - applyingIdempotentPre → expect(log).toContain('Applied idempotent schema')
|
|
19
25
|
* - applyingPgSchemaDiff → expect(log).toContain('pg-schema-diff')
|
|
26
|
+
* - applyingIdempotentPost → expect(log).toContain('Applied idempotent schema')
|
|
20
27
|
* - applyingSeeds → expect(log).toContain('Applying seeds')
|
|
21
28
|
* - done → expect(exitCode).toBe(0)
|
|
22
29
|
* - failed → expect(exitCode).toBe(1)
|
|
@@ -27,7 +34,8 @@ import type { DbApplyInput } from './contract.js';
|
|
|
27
34
|
interface DbApplyContext {
|
|
28
35
|
input: DbApplyInput;
|
|
29
36
|
targetDir: string;
|
|
30
|
-
|
|
37
|
+
idempotentPreApplied: number;
|
|
38
|
+
idempotentPostApplied: number;
|
|
31
39
|
rolePasswordsSet: number;
|
|
32
40
|
schemaChangesApplied: boolean;
|
|
33
41
|
hazards: string[];
|
|
@@ -35,10 +43,12 @@ interface DbApplyContext {
|
|
|
35
43
|
error: string | null;
|
|
36
44
|
planSql: string | null;
|
|
37
45
|
startTime: number;
|
|
38
|
-
|
|
39
|
-
|
|
46
|
+
idempotentPreStartTime: number | null;
|
|
47
|
+
idempotentPreEndTime: number | null;
|
|
40
48
|
pgSchemaDiffStartTime: number | null;
|
|
41
49
|
pgSchemaDiffEndTime: number | null;
|
|
50
|
+
idempotentPostStartTime: number | null;
|
|
51
|
+
idempotentPostEndTime: number | null;
|
|
42
52
|
seedStartTime: number | null;
|
|
43
53
|
seedEndTime: number | null;
|
|
44
54
|
retryAttempts: number;
|
|
@@ -84,7 +94,7 @@ export declare const dbApplyMachine: import("xstate").StateMachine<DbApplyContex
|
|
|
84
94
|
targetDir: string;
|
|
85
95
|
}, import("xstate").EventObject>;
|
|
86
96
|
id: string | undefined;
|
|
87
|
-
}, never, never, never, "failed" | "done" | "idle" | "
|
|
97
|
+
}, never, never, never, "failed" | "done" | "idle" | "applyingIdempotentPre" | "applyingPgSchemaDiff" | "applyingIdempotentPost" | "applyingSeeds", string, {
|
|
88
98
|
input: DbApplyInput;
|
|
89
99
|
targetDir: string;
|
|
90
100
|
}, {
|
|
@@ -110,8 +120,9 @@ export declare const dbApplyMachine: import("xstate").StateMachine<DbApplyContex
|
|
|
110
120
|
id: "dbApply";
|
|
111
121
|
states: {
|
|
112
122
|
readonly idle: {};
|
|
113
|
-
readonly
|
|
123
|
+
readonly applyingIdempotentPre: {};
|
|
114
124
|
readonly applyingPgSchemaDiff: {};
|
|
125
|
+
readonly applyingIdempotentPost: {};
|
|
115
126
|
readonly applyingSeeds: {};
|
|
116
127
|
readonly done: {};
|
|
117
128
|
readonly failed: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/apply/machine.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/apply/machine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EAAU,KAAK,YAAY,EAAS,MAAM,QAAQ,CAAC;AAE1D,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAiC,MAAM,eAAe,CAAC;AA6FjF,UAAU,cAAc;IACtB,KAAK,EAAE,YAAY,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAElB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,SAAS,EAAE,MAAM,CAAC;IAClB,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;CACvB;AAID,eAAO,MAAM,cAAc;UAFC,OAAO;;UAAa,gBAAgB;WAAS,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAI1D,YAAY;eAAa,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6NjD,CAAC;AAGH,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC;AACnD,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC;AAGlE,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,CAErE;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,eAAe,GAAG,OAAO,CAEpE;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,CAExE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-cleanup.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/commands/db-cleanup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"db-cleanup.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/commands/db-cleanup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA4OpC,eAAO,MAAM,cAAc,SAMoE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-sync.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/commands/db-sync.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"db-sync.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/commands/db-sync.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0LpC,eAAO,MAAM,YAAY,SAIgE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actors.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/sync/actors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;
|
|
1
|
+
{"version":3,"file":"actors.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/sync/actors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAwBH,OAAO,KAAK,EACV,kBAAkB,EAIlB,WAAW,EAEZ,MAAM,eAAe,CAAC;AAMvB,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,kBAAkB,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB;AA+CD;;GAEG;AACH,eAAO,MAAM,YAAY,2FAuBxB,CAAC;AAMF,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,WAAW,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;gDA8FrB,CAAC;AAMF,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,WAAW,CAAC;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,SAAS;;;;gDA2BrB,CAAC;AAMF,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,WAAW,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;+CAsCpB,CAAC;AAMF,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,WAAW,CAAC;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,UAAU;;;;2CA8BtB,CAAC;AAMF,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,WAAW,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,6FA0FvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preflight-check.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/utils/preflight-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"preflight-check.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/utils/preflight-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAsBH,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAwrBD;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAenF"}
|
|
@@ -50,10 +50,53 @@ export declare function fetchDbTablesAndEnums(databaseUrl: string, options?: {
|
|
|
50
50
|
dbTables: Set<string>;
|
|
51
51
|
dbEnums: Map<string, EnumDefinition>;
|
|
52
52
|
}>;
|
|
53
|
+
/**
|
|
54
|
+
* Compute schema diff between expected (Drizzle) and actual (database).
|
|
55
|
+
*
|
|
56
|
+
* @param params.excludeFromOrphanDetection - Tables to exclude from orphan detection.
|
|
57
|
+
* Use for tables managed by extensions (e.g., PostGIS spatial_ref_sys) or
|
|
58
|
+
* tables created via idempotent SQL. Format: 'schema.table' or 'table'.
|
|
59
|
+
* Supports glob patterns (e.g., 'public.spatial_*').
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* diffSchema({
|
|
63
|
+
* expectedTables: new Set(['public.users', 'public.posts']),
|
|
64
|
+
* expectedEnums: new Map(),
|
|
65
|
+
* dbTables: new Set(['public.users', 'public.posts', 'public.spatial_ref_sys']),
|
|
66
|
+
* dbEnums: new Map(),
|
|
67
|
+
* excludeFromOrphanDetection: ['public.spatial_ref_sys'],
|
|
68
|
+
* });
|
|
69
|
+
* // orphanTables will be [] (not ['public.spatial_ref_sys'])
|
|
70
|
+
*/
|
|
53
71
|
export declare function diffSchema(params: {
|
|
54
72
|
expectedTables: Set<string>;
|
|
55
73
|
expectedEnums: Map<string, EnumDefinition>;
|
|
56
74
|
dbTables: Set<string>;
|
|
57
75
|
dbEnums: Map<string, EnumDefinition>;
|
|
76
|
+
/** Tables to exclude from orphan detection (supports glob patterns) */
|
|
77
|
+
excludeFromOrphanDetection?: string[];
|
|
58
78
|
}): SyncDiff;
|
|
79
|
+
/**
|
|
80
|
+
* Extract table names from CREATE TABLE statements in idempotent SQL files.
|
|
81
|
+
*
|
|
82
|
+
* This function scans idempotent/*.sql files and extracts table names from
|
|
83
|
+
* CREATE TABLE statements. These tables are automatically excluded from
|
|
84
|
+
* orphan detection because they are intentionally managed outside of
|
|
85
|
+
* declarative SQL (e.g., partitioned tables, extension-dependent tables).
|
|
86
|
+
*
|
|
87
|
+
* Supported patterns:
|
|
88
|
+
* - CREATE TABLE schema.table
|
|
89
|
+
* - CREATE TABLE IF NOT EXISTS schema.table
|
|
90
|
+
* - CREATE TABLE "schema"."table"
|
|
91
|
+
* - CREATE TABLE table (defaults to public schema)
|
|
92
|
+
*
|
|
93
|
+
* @param idempotentDir - Path to idempotent SQL directory
|
|
94
|
+
* @param projectRoot - Project root for path resolution
|
|
95
|
+
* @returns Array of table names in 'schema.table' format
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* const tables = extractTablesFromIdempotentSql('supabase/schemas/idempotent');
|
|
99
|
+
* // Returns: ['public.area_metrics', 'public.floor_metrics', ...]
|
|
100
|
+
*/
|
|
101
|
+
export declare function extractTablesFromIdempotentSql(idempotentDir: string, projectRoot?: string): string[];
|
|
59
102
|
//# sourceMappingURL=schema-sync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-sync.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/utils/schema-sync.ts"],"names":[],"mappings":"AA0KA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC3C,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAErC,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,mBAAmB,EAAE,KAAK,CAAC;QACzB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,YAAY,EAAE,MAAM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Ac,CAAC,CAAC;IAC3C,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACrC,uEAAuE;IACvE,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAC;CACvC,GAAG,QAAQ,CA0DX;AAMD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,MAAM,EACrB,WAAW,GAAE,MAAsB,GAClC,MAAM,EAAE,CA0CV"}
|
|
@@ -39,6 +39,7 @@ export declare function parseVercelUrl(url: string): {
|
|
|
39
39
|
* - https://github.com/owner/repo/tree/main
|
|
40
40
|
* - https://github.com/owner/repo.git
|
|
41
41
|
* - github.com/owner/repo
|
|
42
|
+
* - git@github.com:owner/repo.git (SSH)
|
|
42
43
|
* - owner/repo (shorthand)
|
|
43
44
|
*
|
|
44
45
|
* Note: Subpaths like /tree/main, /pulls are ignored
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../../src/commands/env/commands/setup/parsers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,CAEnD;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,IAAI,MAAM,CAEvD;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,IAAI,MAAM,CAElD;AAMD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAUpF;
|
|
1
|
+
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../../src/commands/env/commands/setup/parsers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,CAEnD;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,IAAI,MAAM,CAEvD;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,IAAI,MAAM,CAElD;AAMD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAUpF;AAqDD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAsClF;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAwB3D;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path-mapping.d.ts","sourceRoot":"","sources":["../../../../src/commands/template-check/utils/path-mapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAMhD,MAAM,WAAW,eAAe;IAC9B,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB;IACpB,QAAQ,EAAE,YAAY,CAAC;IACvB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAMD,eAAO,MAAM,kBAAkB,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"path-mapping.d.ts","sourceRoot":"","sources":["../../../../src/commands/template-check/utils/path-mapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAMhD,MAAM,WAAW,eAAe;IAC9B,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB;IACpB,QAAQ,EAAE,YAAY,CAAC;IACvB,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAMD,eAAO,MAAM,kBAAkB,EAAE,eAAe,EAiY/C,CAAC;AAMF;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAyB3E;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAyB/E;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAO7D;AAmCD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,MAAM,CAQ/E"}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
* Sync strategy: Keep this in sync with packages/runa-templates/package.json version.
|
|
22
22
|
*/
|
|
23
|
-
export declare const COMPATIBLE_TEMPLATES_VERSION = "0.5.
|
|
23
|
+
export declare const COMPATIBLE_TEMPLATES_VERSION = "0.5.41";
|
|
24
24
|
/**
|
|
25
25
|
* Templates package name on GitHub Packages.
|
|
26
26
|
* Published to npm.pkg.github.com (requires NODE_AUTH_TOKEN).
|