@prisma-next/cli 0.12.0-dev.17 → 0.12.0-dev.3
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/cli.mjs +160 -177
- package/dist/cli.mjs.map +1 -1
- package/dist/{client-Cdxcme1x.mjs → client-KgJorIvG.mjs} +8 -21
- package/dist/client-KgJorIvG.mjs.map +1 -0
- package/dist/{command-helpers-Cmdqyhz9.mjs → command-helpers-Bbw1GbwL.mjs} +2 -32
- package/dist/{command-helpers-Cmdqyhz9.mjs.map → command-helpers-Bbw1GbwL.mjs.map} +1 -1
- package/dist/commands/contract-emit.mjs +1 -1
- package/dist/commands/contract-infer.mjs +1 -1
- package/dist/commands/db-init.mjs +4 -4
- package/dist/commands/db-schema.mjs +3 -3
- package/dist/commands/db-sign.mjs +4 -4
- package/dist/commands/db-update.mjs +5 -5
- package/dist/commands/db-verify.mjs +1 -1
- package/dist/commands/migrate.d.mts +1 -1
- package/dist/commands/migrate.mjs +5 -5
- package/dist/commands/migration-check.mjs +1 -1
- package/dist/commands/migration-graph.d.mts +5 -23
- package/dist/commands/migration-graph.d.mts.map +1 -1
- package/dist/commands/migration-graph.mjs +2 -2
- package/dist/commands/migration-list.d.mts +3 -3
- package/dist/commands/migration-list.mjs +2 -2
- package/dist/commands/migration-log.d.mts +3 -3
- package/dist/commands/migration-log.mjs +3 -3
- package/dist/commands/migration-new.mjs +3 -3
- package/dist/commands/migration-plan.d.mts +1 -1
- package/dist/commands/migration-plan.mjs +1 -1
- package/dist/commands/migration-show.d.mts +1 -1
- package/dist/commands/migration-show.mjs +3 -3
- package/dist/commands/migration-status.d.mts +1 -1
- package/dist/commands/migration-status.mjs +4 -4
- package/dist/commands/migration-status.mjs.map +1 -1
- package/dist/commands/ref.d.mts +1 -1
- package/dist/commands/ref.mjs +2 -2
- package/dist/{contract-at-errors-Cz0z5PJi.mjs → contract-at-errors-BxP-TOMl.mjs} +2 -2
- package/dist/{contract-at-errors-Cz0z5PJi.mjs.map → contract-at-errors-BxP-TOMl.mjs.map} +1 -1
- package/dist/{contract-emit-CC9jDOmu.mjs → contract-emit-D-4jrNve.mjs} +3 -3
- package/dist/{contract-emit-CC9jDOmu.mjs.map → contract-emit-D-4jrNve.mjs.map} +1 -1
- package/dist/{contract-emit-DPMij44i.mjs → contract-emit-DxcGl4Uq.mjs} +3 -3
- package/dist/{contract-emit-DPMij44i.mjs.map → contract-emit-DxcGl4Uq.mjs.map} +1 -1
- package/dist/{contract-infer-DaFPNrZH.mjs → contract-infer-D8uEbJuu.mjs} +3 -3
- package/dist/{contract-infer-DaFPNrZH.mjs.map → contract-infer-D8uEbJuu.mjs.map} +1 -1
- package/dist/{contract-space-aggregate-loader-CirAEsM8.mjs → contract-space-aggregate-loader-DvZwdkrr.mjs} +2 -2
- package/dist/{contract-space-aggregate-loader-CirAEsM8.mjs.map → contract-space-aggregate-loader-DvZwdkrr.mjs.map} +1 -1
- package/dist/{db-verify-BSA1a_W_.mjs → db-verify-v_vUKXTU.mjs} +4 -4
- package/dist/{db-verify-BSA1a_W_.mjs.map → db-verify-v_vUKXTU.mjs.map} +1 -1
- package/dist/exports/control-api.d.mts +1 -1
- package/dist/exports/control-api.d.mts.map +1 -1
- package/dist/exports/control-api.mjs +2 -2
- package/dist/exports/index.mjs +1 -1
- package/dist/exports/init-output.mjs +1 -1
- package/dist/{framework-components-DynSvww4.mjs → framework-components-fYXjz_in.mjs} +2 -2
- package/dist/{framework-components-DynSvww4.mjs.map → framework-components-fYXjz_in.mjs.map} +1 -1
- package/dist/{global-flags-DG4uY5tV.d.mts → global-flags-DEHjV8_s.d.mts} +1 -1
- package/dist/{global-flags-DG4uY5tV.d.mts.map → global-flags-DEHjV8_s.d.mts.map} +1 -1
- package/dist/{init-B6kKrmf7.mjs → init-Cv9UzWL5.mjs} +58 -5
- package/dist/init-Cv9UzWL5.mjs.map +1 -0
- package/dist/{inspect-live-schema-Dn56wDhG.mjs → inspect-live-schema-C6ohV_oQ.mjs} +3 -3
- package/dist/{inspect-live-schema-Dn56wDhG.mjs.map → inspect-live-schema-C6ohV_oQ.mjs.map} +1 -1
- package/dist/{migration-check-DzH1u-O1.mjs → migration-check-BiBJoYYW.mjs} +2 -2
- package/dist/{migration-check-DzH1u-O1.mjs.map → migration-check-BiBJoYYW.mjs.map} +1 -1
- package/dist/{migration-command-scaffold-V52dV2Tv.mjs → migration-command-scaffold-CjvwO6at.mjs} +3 -3
- package/dist/{migration-command-scaffold-V52dV2Tv.mjs.map → migration-command-scaffold-CjvwO6at.mjs.map} +1 -1
- package/dist/{migration-graph-Cm3oee8C.mjs → migration-graph-D7DVUElV.mjs} +80 -326
- package/dist/migration-graph-D7DVUElV.mjs.map +1 -0
- package/dist/{migration-plan-CaeKCKp4.mjs → migration-plan-9DJ7q7_z.mjs} +5 -5
- package/dist/{migration-plan-CaeKCKp4.mjs.map → migration-plan-9DJ7q7_z.mjs.map} +1 -1
- package/dist/{migration-types-CAQ-0TEE.d.mts → migration-types-D2FW63pr.d.mts} +1 -1
- package/dist/{migration-types-CAQ-0TEE.d.mts.map → migration-types-D2FW63pr.d.mts.map} +1 -1
- package/dist/{migrations-DQ1t3XFL.mjs → migrations-Cv2jxNNK.mjs} +2 -2
- package/dist/{migrations-DQ1t3XFL.mjs.map → migrations-Cv2jxNNK.mjs.map} +1 -1
- package/dist/{output-CF_hqzI-.mjs → output-B60Gw5fu.mjs} +1 -1
- package/dist/{output-CF_hqzI-.mjs.map → output-B60Gw5fu.mjs.map} +1 -1
- package/dist/{terminal-ui-C3xGyxW-.d.mts → terminal-ui-5Y6mrg93.d.mts} +1 -1
- package/dist/{terminal-ui-C3xGyxW-.d.mts.map → terminal-ui-5Y6mrg93.d.mts.map} +1 -1
- package/dist/{types-DiC683UW.d.mts → types-Dt_SfqFm.d.mts} +2 -8
- package/dist/{types-DiC683UW.d.mts.map → types-Dt_SfqFm.d.mts.map} +1 -1
- package/dist/{verify-CreSJ1Mz.mjs → verify-DCA9Sldu.mjs} +2 -2
- package/dist/{verify-CreSJ1Mz.mjs.map → verify-DCA9Sldu.mjs.map} +1 -1
- package/package.json +18 -22
- package/src/cli.ts +0 -5
- package/src/commands/init/index.ts +35 -6
- package/src/commands/init/init.ts +14 -1
- package/src/commands/init/inputs.ts +75 -0
- package/src/commands/migration-graph.ts +2 -43
- package/src/commands/migration-status.ts +1 -1
- package/src/control-api/client.ts +1 -11
- package/src/control-api/operations/apply.ts +0 -1
- package/src/control-api/operations/migration-apply.ts +3 -10
- package/src/control-api/types.ts +1 -12
- package/src/utils/formatters/migration-graph-layout.ts +5 -27
- package/src/utils/formatters/migration-graph-tree-render.ts +51 -360
- package/src/utils/global-flags.ts +0 -35
- package/src/utils/telemetry.ts +32 -68
- package/dist/client-Cdxcme1x.mjs.map +0 -1
- package/dist/commands/telemetry/index.d.mts +0 -7
- package/dist/commands/telemetry/index.d.mts.map +0 -1
- package/dist/commands/telemetry/index.mjs +0 -2
- package/dist/init-B6kKrmf7.mjs.map +0 -1
- package/dist/migration-graph-Cm3oee8C.mjs.map +0 -1
- package/dist/telemetry-Q88WHwlv.mjs +0 -122
- package/dist/telemetry-Q88WHwlv.mjs.map +0 -1
- package/src/commands/telemetry/index.ts +0 -107
- package/src/commands/telemetry/status.ts +0 -67
- package/src/utils/formatters/migration-graph-lane-colors.ts +0 -31
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { createColors } from 'colorette';
|
|
2
|
-
|
|
3
|
-
export type LaneColorizer = (text: string) => string;
|
|
4
|
-
|
|
5
|
-
const { magenta, cyan, green, yellow, blueBright, red } = createColors({ useColor: true });
|
|
6
|
-
|
|
7
|
-
export const LANE_COLOR_CYCLE: readonly LaneColorizer[] = [
|
|
8
|
-
magenta,
|
|
9
|
-
cyan,
|
|
10
|
-
green,
|
|
11
|
-
yellow,
|
|
12
|
-
blueBright,
|
|
13
|
-
red,
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The hue for a gutter column. The leftmost lane (column 0) is **neutral** — it
|
|
18
|
-
* has nothing to be told apart from in the common single-lane linear case, so
|
|
19
|
-
* the renderer dims it rather than tinting it; the rotating palette is reserved
|
|
20
|
-
* for columns ≥ 1 (where a second lane exists to distinguish). Callers must dim
|
|
21
|
-
* column 0 themselves; this returns identity for it as a guard. A lane freed and
|
|
22
|
-
* reused by a later branch keeps its column's hue — coloring is by position, not
|
|
23
|
-
* branch identity, exactly like `git log --graph`.
|
|
24
|
-
*/
|
|
25
|
-
export function laneColorForColumn(column: number): LaneColorizer {
|
|
26
|
-
if (column <= 0) {
|
|
27
|
-
return (text) => text;
|
|
28
|
-
}
|
|
29
|
-
const colorizer = LANE_COLOR_CYCLE[(column - 1) % LANE_COLOR_CYCLE.length];
|
|
30
|
-
return colorizer ?? ((text) => text);
|
|
31
|
-
}
|