@runa-ai/runa-cli 0.5.43 → 0.5.45
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/ci/commands/ci-prod-apply.d.ts +2 -1
- package/dist/commands/ci/commands/ci-prod-apply.d.ts.map +1 -1
- package/dist/commands/ci/commands/ci-prod-types.d.ts +26 -0
- package/dist/commands/ci/commands/ci-prod-types.d.ts.map +1 -0
- package/dist/commands/ci/commands/ci-prod-workflow.d.ts +18 -0
- package/dist/commands/ci/commands/ci-prod-workflow.d.ts.map +1 -0
- package/dist/commands/ci/machine/machine.d.ts.map +1 -1
- package/dist/commands/ci/utils/app-runtime.d.ts +8 -0
- package/dist/commands/ci/utils/app-runtime.d.ts.map +1 -1
- package/dist/commands/db/constants.d.ts.map +1 -1
- package/dist/commands/db/utils/import-impact-analyzer.d.ts +8 -2
- package/dist/commands/db/utils/import-impact-analyzer.d.ts.map +1 -1
- package/dist/commands/dev/machine.d.ts.map +1 -1
- package/dist/commands/env/commands/env-pull.d.ts.map +1 -1
- package/dist/commands/env/constants/local-supabase.d.ts +61 -9
- package/dist/commands/env/constants/local-supabase.d.ts.map +1 -1
- package/dist/commands/test/commands/test-layer.d.ts.map +1 -1
- package/dist/constants/versions.d.ts +1 -1
- package/dist/index.js +794 -729
- package/package.json +3 -3
|
@@ -6,5 +6,6 @@
|
|
|
6
6
|
* - Safety sequence: stack → risks → snapshot → apply → audit → notify
|
|
7
7
|
*/
|
|
8
8
|
import { Command } from 'commander';
|
|
9
|
-
|
|
9
|
+
declare const ciProdApplyCommand: Command;
|
|
10
|
+
export { ciProdApplyCommand };
|
|
10
11
|
//# sourceMappingURL=ci-prod-apply.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-prod-apply.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/commands/ci-prod-apply.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ci-prod-apply.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/commands/ci-prod-apply.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsHpC,QAAA,MAAM,kBAAkB,SA0GpB,CAAC;AAEL,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Zod schema for ci prod-apply CLI options.
|
|
4
|
+
* Derived from commander option definitions in ci-prod-apply.ts.
|
|
5
|
+
*/
|
|
6
|
+
export declare const CiProdApplyActionOptionsSchema: z.ZodObject<{
|
|
7
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
local: "local";
|
|
9
|
+
"github-actions": "github-actions";
|
|
10
|
+
}>>;
|
|
11
|
+
output: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
json: "json";
|
|
13
|
+
human: "human";
|
|
14
|
+
}>>;
|
|
15
|
+
config: z.ZodOptional<z.ZodString>;
|
|
16
|
+
autoApprove: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
skipNotify: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
skipGithubLabel: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
skipRisks: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
initialDeployment: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
allowDataLoss: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
confirmAuthzUpdate: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
maxLockWaitMs: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
export type CiProdApplyActionOptions = z.infer<typeof CiProdApplyActionOptionsSchema>;
|
|
26
|
+
//# sourceMappingURL=ci-prod-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ci-prod-types.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/commands/ci-prod-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;kBAchC,CAAC;AAEZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type createCLILogger } from '@runa-ai/runa';
|
|
2
|
+
import type { CiSummary } from '../utils/ci-summary.js';
|
|
3
|
+
import type { ProdApplyInputs } from './ci-prod-utils.js';
|
|
4
|
+
import type { CiProdApplyActionOptions } from './ci-prod-types.js';
|
|
5
|
+
export declare class CiProdApplyWorkflow {
|
|
6
|
+
private readonly steps;
|
|
7
|
+
private readonly ctx;
|
|
8
|
+
constructor(deps: {
|
|
9
|
+
options: CiProdApplyActionOptions;
|
|
10
|
+
logger: ReturnType<typeof createCLILogger>;
|
|
11
|
+
summary: CiSummary;
|
|
12
|
+
repoRoot: string;
|
|
13
|
+
tmpDir: string;
|
|
14
|
+
inputs: ProdApplyInputs;
|
|
15
|
+
});
|
|
16
|
+
run(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=ci-prod-workflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ci-prod-workflow.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/commands/ci-prod-workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAE/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAaxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAyBnE,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAoB;IAC1C,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA6B;gBAErC,IAAI,EAAE;QAChB,OAAO,EAAE,wBAAwB,CAAC;QAClC,MAAM,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;QAC3C,OAAO,EAAE,SAAS,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,eAAe,CAAC;KACzB;IAkMK,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAoB3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/machine/machine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,OAAO,EAAU,KAAK,YAAY,EAAS,MAAM,QAAQ,CAAC;AA8C1D,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAqB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/machine/machine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,OAAO,EAAU,KAAK,YAAY,EAAS,MAAM,QAAQ,CAAC;AA8C1D,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAqB,MAAM,YAAY,CAAC;AAexE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAymCpB,CAAC;AAMH,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC;AACzC,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC;AAMxD;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,CAYzD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,CAExD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAE5D;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,UAAU,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAE3D"}
|
|
@@ -9,12 +9,20 @@ export declare function writeEnvLocal(params: {
|
|
|
9
9
|
appDir: string;
|
|
10
10
|
values: Record<string, string>;
|
|
11
11
|
}): Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* App start mode:
|
|
14
|
+
* - 'dev': Development mode with hot reload (next dev)
|
|
15
|
+
* - 'start': Production mode (next start, requires build)
|
|
16
|
+
*/
|
|
17
|
+
export type AppMode = 'dev' | 'start';
|
|
12
18
|
export declare function startAppBackground(params: {
|
|
13
19
|
repoRoot: string;
|
|
14
20
|
appDir: string;
|
|
15
21
|
port: number;
|
|
16
22
|
env: NodeJS.ProcessEnv;
|
|
17
23
|
tmpDir: string;
|
|
24
|
+
/** App mode: 'dev' for development (hot reload), 'start' for production. Default: 'start' */
|
|
25
|
+
mode?: AppMode;
|
|
18
26
|
}): Promise<{
|
|
19
27
|
pid: number;
|
|
20
28
|
cleanupStreams: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-runtime.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/utils/app-runtime.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAmGH,wBAAsB,aAAa,CAAC,MAAM,EAAE;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhB;
|
|
1
|
+
{"version":3,"file":"app-runtime.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/utils/app-runtime.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAmGH,wBAAsB,aAAa,CAAC,MAAM,EAAE;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhB;AAiHD;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,OAAO,CAAC;AAwDtC,wBAAsB,kBAAkB,CAAC,MAAM,EAAE;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,6FAA6F;IAC7F,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,OAAO,CAAC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC,CA8DvD;AAED,wBAAsB,eAAe,CAAC,MAAM,EAAE;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,IAAI,CAAC,CAOhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/commands/db/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAMjD,UAAU,aAAa;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,aAAa,CA6DvE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/commands/db/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAMjD,UAAU,aAAa;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,aAAa,CA6DvE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;uBASd,MAAM;;;;;;;;;;;;;;yBAuBF,MAAM;CA+ChB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;;;CAYhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CA0BlD,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;4CACM,MAAM,gBAAgB,MAAM;;;;;;;CAQnD,CAAC;AAEX;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;CACZ,CAOA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* AI HINT: Schema Import Impact Analyzer
|
|
2
|
+
* AI HINT: Schema Import Impact Analyzer (ts-morph based)
|
|
3
3
|
*
|
|
4
4
|
* Purpose: Analyze which files import schema tables/types and report impact
|
|
5
5
|
* Usage: Used by `runa db sync --show-import-impact` to help developers
|
|
@@ -7,9 +7,15 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Flow:
|
|
9
9
|
* 1. Scan project for TypeScript files
|
|
10
|
-
* 2.
|
|
10
|
+
* 2. Use ts-morph AST to find imports from database/schema packages
|
|
11
11
|
* 3. Map imported symbols to files
|
|
12
12
|
* 4. Report which files would be affected by changes
|
|
13
|
+
*
|
|
14
|
+
* Why ts-morph (not regex):
|
|
15
|
+
* - Correctly handles comments containing 'import' keywords
|
|
16
|
+
* - Handles multi-line imports
|
|
17
|
+
* - Handles template literals and nested quotes
|
|
18
|
+
* - Per .claude/rules/code-quality.md: "Use AST (ts-morph) for TypeScript parsing"
|
|
13
19
|
*/
|
|
14
20
|
export interface ImportReference {
|
|
15
21
|
/** File path relative to project root */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-impact-analyzer.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/utils/import-impact-analyzer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"import-impact-analyzer.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/utils/import-impact-analyzer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAUH,MAAM,WAAW,eAAe;IAC9B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,iDAAiD;IACjD,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,CAAC,CAAC;IAC5C,oCAAoC;IACpC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gCAAgC;IAChC,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AA+JD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,kBAAkB,CA8BvE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,kBAAkB,EAC1B,cAAc,CAAC,EAAE,MAAM,EAAE,GACxB,MAAM,EAAE,CAoCV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../src/commands/dev/machine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAIH,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAS1D,OAAO,KAAK,EAAE,UAAU,EAAY,QAAQ,EAAa,MAAM,YAAY,CAAC;AAsF5E,UAAU,aAAa;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,cAAc;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;
|
|
1
|
+
{"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../src/commands/dev/machine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAIH,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAS1D,OAAO,KAAK,EAAE,UAAU,EAAY,QAAQ,EAAa,MAAM,YAAY,CAAC;AAsF5E,UAAU,aAAa;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,cAAc;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAmCD,UAAU,aAAa;IACrB,GAAG,EAAE,MAAM,CAAC;CACb;AAoBD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAIH,QAAQ;cAAY,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;EA6K5C,CAAC;AAMH,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;AAM1D;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,WAAW,GAAG,MAAM,CAa1D;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAEzD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAE7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-pull.d.ts","sourceRoot":"","sources":["../../../../src/commands/env/commands/env-pull.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAaH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"env-pull.d.ts","sourceRoot":"","sources":["../../../../src/commands/env/commands/env-pull.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAaH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAu9BpC,eAAO,MAAM,WAAW,SA+BpB,CAAC"}
|
|
@@ -1,18 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AI HINT: Local Supabase Constants
|
|
3
3
|
*
|
|
4
|
-
* Purpose:
|
|
4
|
+
* Purpose: Dynamic values for local Supabase development (supabase start)
|
|
5
5
|
* These are public, well-known values used by all Supabase CLI installations.
|
|
6
6
|
*
|
|
7
7
|
* Source: https://supabase.com/docs/guides/cli/local-development
|
|
8
8
|
*
|
|
9
|
+
* Port Detection (Priority Order):
|
|
10
|
+
* 1. supabase/config.toml [api].port and [db].port settings
|
|
11
|
+
* 2. Default Supabase ports (54321 for API, 54322 for DB)
|
|
12
|
+
*
|
|
9
13
|
* Note: These keys are intentionally public and NOT secrets.
|
|
10
14
|
* They are the same for all local Supabase instances.
|
|
11
15
|
*/
|
|
16
|
+
interface SupabasePorts {
|
|
17
|
+
api: number;
|
|
18
|
+
db: number;
|
|
19
|
+
}
|
|
12
20
|
/**
|
|
13
|
-
*
|
|
21
|
+
* Detect Supabase ports from config.toml or use defaults.
|
|
22
|
+
*
|
|
23
|
+
* Priority:
|
|
24
|
+
* 1. supabase/config.toml settings
|
|
25
|
+
* 2. Default ports (54321/54322)
|
|
26
|
+
*
|
|
27
|
+
* @param projectRoot - Project root directory (defaults to process.cwd())
|
|
28
|
+
* @returns Detected ports
|
|
14
29
|
*/
|
|
15
|
-
export declare
|
|
30
|
+
export declare function detectLocalSupabasePorts(projectRoot?: string): SupabasePorts;
|
|
16
31
|
/**
|
|
17
32
|
* Local Supabase anon key (fixed, public value)
|
|
18
33
|
* This is the same for all local Supabase instances.
|
|
@@ -24,20 +39,57 @@ export declare const LOCAL_SUPABASE_ANON_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpX
|
|
|
24
39
|
*/
|
|
25
40
|
export declare const LOCAL_SUPABASE_SERVICE_ROLE_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU";
|
|
26
41
|
/**
|
|
27
|
-
*
|
|
28
|
-
* User: postgres, Password: postgres (default local credentials)
|
|
42
|
+
* Build local Supabase URL from detected port.
|
|
29
43
|
*/
|
|
30
|
-
export declare
|
|
44
|
+
export declare function buildLocalSupabaseUrl(projectRoot?: string): string;
|
|
45
|
+
/**
|
|
46
|
+
* Build local database URL from detected port.
|
|
47
|
+
*/
|
|
48
|
+
export declare function buildLocalDatabaseUrl(projectRoot?: string): string;
|
|
49
|
+
/**
|
|
50
|
+
* Get map of environment variable keys to their local Supabase values.
|
|
51
|
+
*
|
|
52
|
+
* This function dynamically generates values based on detected ports.
|
|
53
|
+
*
|
|
54
|
+
* @param projectRoot - Project root directory (defaults to process.cwd())
|
|
55
|
+
* @returns Environment variable key-value map
|
|
56
|
+
*/
|
|
57
|
+
export declare function getLocalSupabaseEnvValues(projectRoot?: string): Record<string, string>;
|
|
31
58
|
/**
|
|
32
|
-
*
|
|
59
|
+
* Get human-readable descriptions for each local value (for summary display).
|
|
60
|
+
*
|
|
61
|
+
* @param projectRoot - Project root directory (defaults to process.cwd())
|
|
62
|
+
* @returns Description map
|
|
63
|
+
*/
|
|
64
|
+
export declare function getLocalValueDescriptions(projectRoot?: string): Record<string, string>;
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated Use getLocalSupabaseEnvValues() instead.
|
|
67
|
+
* This constant uses default ports; prefer the function for dynamic port detection.
|
|
33
68
|
*/
|
|
34
69
|
export declare const LOCAL_SUPABASE_ENV_VALUES: Record<string, string>;
|
|
35
70
|
/**
|
|
36
|
-
*
|
|
71
|
+
* @deprecated Use Object.keys(getLocalSupabaseEnvValues()) instead.
|
|
37
72
|
*/
|
|
38
73
|
export declare const LOCAL_REPLACEMENT_KEYS: string[];
|
|
39
74
|
/**
|
|
40
|
-
*
|
|
75
|
+
* @deprecated Use getLocalValueDescriptions() instead.
|
|
41
76
|
*/
|
|
42
77
|
export declare const LOCAL_VALUE_DESCRIPTIONS: Record<string, string>;
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated Use buildLocalSupabaseUrl() instead.
|
|
80
|
+
*/
|
|
81
|
+
export declare const LOCAL_SUPABASE_URL = "http://127.0.0.1:54321";
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated Use buildLocalDatabaseUrl() instead.
|
|
84
|
+
*/
|
|
85
|
+
export declare const LOCAL_DATABASE_URL = "postgresql://postgres:postgres@127.0.0.1:54322/postgres";
|
|
86
|
+
/**
|
|
87
|
+
* Validate that all URL values point to localhost.
|
|
88
|
+
* This prevents accidental production URL usage in local development.
|
|
89
|
+
*
|
|
90
|
+
* @param envValues - Environment values to validate
|
|
91
|
+
* @throws Error if any URL doesn't point to localhost
|
|
92
|
+
*/
|
|
93
|
+
export declare function validateLocalhostValues(envValues: Record<string, string>): void;
|
|
94
|
+
export {};
|
|
43
95
|
//# sourceMappingURL=local-supabase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-supabase.d.ts","sourceRoot":"","sources":["../../../../src/commands/env/constants/local-supabase.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"local-supabase.d.ts","sourceRoot":"","sources":["../../../../src/commands/env/constants/local-supabase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAgBH,UAAU,aAAa;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;CACZ;AA6DD;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,GAAE,MAAsB,GAAG,aAAa,CAW3F;AAMD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,8JACyH,CAAC;AAE9J;;;GAGG;AACH,eAAO,MAAM,+BAA+B,yKAC4H,CAAC;AAEzK;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,GAAE,MAAsB,GAAG,MAAM,CAGjF;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,GAAE,MAAsB,GAAG,MAAM,CAGjF;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,GAAE,MAAsB,GAClC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAexB;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,GAAE,MAAsB,GAClC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAWxB;AAMD;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAA+B,CAAC;AAE7F;;GAEG;AACH,eAAO,MAAM,sBAAsB,UAAyC,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAA+B,CAAC;AAE5F;;GAEG;AACH,eAAO,MAAM,kBAAkB,2BAAyC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,kBAAkB,4DAAyE,CAAC;AAMzG;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAwB/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-layer.d.ts","sourceRoot":"","sources":["../../../../src/commands/test/commands/test-layer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"test-layer.d.ts","sourceRoot":"","sources":["../../../../src/commands/test/commands/test-layer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmNpC,eAAO,MAAM,iBAAiB,SAAwB,CAAC;AACvD,eAAO,MAAM,iBAAiB,SAAwB,CAAC;AACvD,eAAO,MAAM,iBAAiB,SAAwB,CAAC;AACvD,eAAO,MAAM,iBAAiB,SAAwB,CAAC;AACvD,eAAO,MAAM,iBAAiB,SAAwB,CAAC;AAmDvD,eAAO,MAAM,gBAAgB,SAI5B,CAAC"}
|
|
@@ -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.44";
|
|
24
24
|
/**
|
|
25
25
|
* Templates package name on GitHub Packages.
|
|
26
26
|
* Published to npm.pkg.github.com (requires NODE_AUTH_TOKEN).
|