@prisma-next/cli 0.12.0-dev.17 → 0.12.0-dev.2

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.
Files changed (104) hide show
  1. package/dist/cli.mjs +160 -177
  2. package/dist/cli.mjs.map +1 -1
  3. package/dist/{client-Cdxcme1x.mjs → client-KgJorIvG.mjs} +8 -21
  4. package/dist/client-KgJorIvG.mjs.map +1 -0
  5. package/dist/{command-helpers-Cmdqyhz9.mjs → command-helpers-Bbw1GbwL.mjs} +2 -32
  6. package/dist/{command-helpers-Cmdqyhz9.mjs.map → command-helpers-Bbw1GbwL.mjs.map} +1 -1
  7. package/dist/commands/contract-emit.mjs +1 -1
  8. package/dist/commands/contract-infer.mjs +1 -1
  9. package/dist/commands/db-init.mjs +4 -4
  10. package/dist/commands/db-schema.mjs +3 -3
  11. package/dist/commands/db-sign.mjs +4 -4
  12. package/dist/commands/db-update.mjs +5 -5
  13. package/dist/commands/db-verify.mjs +1 -1
  14. package/dist/commands/migrate.d.mts +1 -1
  15. package/dist/commands/migrate.mjs +5 -5
  16. package/dist/commands/migration-check.mjs +1 -1
  17. package/dist/commands/migration-graph.d.mts +5 -23
  18. package/dist/commands/migration-graph.d.mts.map +1 -1
  19. package/dist/commands/migration-graph.mjs +2 -2
  20. package/dist/commands/migration-list.d.mts +3 -3
  21. package/dist/commands/migration-list.mjs +2 -2
  22. package/dist/commands/migration-log.d.mts +3 -3
  23. package/dist/commands/migration-log.mjs +3 -3
  24. package/dist/commands/migration-new.mjs +3 -3
  25. package/dist/commands/migration-plan.d.mts +1 -1
  26. package/dist/commands/migration-plan.mjs +1 -1
  27. package/dist/commands/migration-show.d.mts +1 -1
  28. package/dist/commands/migration-show.mjs +3 -3
  29. package/dist/commands/migration-status.d.mts +1 -1
  30. package/dist/commands/migration-status.mjs +4 -4
  31. package/dist/commands/migration-status.mjs.map +1 -1
  32. package/dist/commands/ref.d.mts +1 -1
  33. package/dist/commands/ref.mjs +2 -2
  34. package/dist/{contract-at-errors-Cz0z5PJi.mjs → contract-at-errors-BxP-TOMl.mjs} +2 -2
  35. package/dist/{contract-at-errors-Cz0z5PJi.mjs.map → contract-at-errors-BxP-TOMl.mjs.map} +1 -1
  36. package/dist/{contract-emit-CC9jDOmu.mjs → contract-emit-D-4jrNve.mjs} +3 -3
  37. package/dist/{contract-emit-CC9jDOmu.mjs.map → contract-emit-D-4jrNve.mjs.map} +1 -1
  38. package/dist/{contract-emit-DPMij44i.mjs → contract-emit-DxcGl4Uq.mjs} +3 -3
  39. package/dist/{contract-emit-DPMij44i.mjs.map → contract-emit-DxcGl4Uq.mjs.map} +1 -1
  40. package/dist/{contract-infer-DaFPNrZH.mjs → contract-infer-D8uEbJuu.mjs} +3 -3
  41. package/dist/{contract-infer-DaFPNrZH.mjs.map → contract-infer-D8uEbJuu.mjs.map} +1 -1
  42. package/dist/{contract-space-aggregate-loader-CirAEsM8.mjs → contract-space-aggregate-loader-DvZwdkrr.mjs} +2 -2
  43. package/dist/{contract-space-aggregate-loader-CirAEsM8.mjs.map → contract-space-aggregate-loader-DvZwdkrr.mjs.map} +1 -1
  44. package/dist/{db-verify-BSA1a_W_.mjs → db-verify-v_vUKXTU.mjs} +4 -4
  45. package/dist/{db-verify-BSA1a_W_.mjs.map → db-verify-v_vUKXTU.mjs.map} +1 -1
  46. package/dist/exports/control-api.d.mts +1 -1
  47. package/dist/exports/control-api.d.mts.map +1 -1
  48. package/dist/exports/control-api.mjs +2 -2
  49. package/dist/exports/index.mjs +1 -1
  50. package/dist/exports/init-output.mjs +1 -1
  51. package/dist/{framework-components-DynSvww4.mjs → framework-components-fYXjz_in.mjs} +2 -2
  52. package/dist/{framework-components-DynSvww4.mjs.map → framework-components-fYXjz_in.mjs.map} +1 -1
  53. package/dist/{global-flags-DG4uY5tV.d.mts → global-flags-DEHjV8_s.d.mts} +1 -1
  54. package/dist/{global-flags-DG4uY5tV.d.mts.map → global-flags-DEHjV8_s.d.mts.map} +1 -1
  55. package/dist/{init-B6kKrmf7.mjs → init-Cv9UzWL5.mjs} +58 -5
  56. package/dist/init-Cv9UzWL5.mjs.map +1 -0
  57. package/dist/{inspect-live-schema-Dn56wDhG.mjs → inspect-live-schema-C6ohV_oQ.mjs} +3 -3
  58. package/dist/{inspect-live-schema-Dn56wDhG.mjs.map → inspect-live-schema-C6ohV_oQ.mjs.map} +1 -1
  59. package/dist/{migration-check-DzH1u-O1.mjs → migration-check-BiBJoYYW.mjs} +2 -2
  60. package/dist/{migration-check-DzH1u-O1.mjs.map → migration-check-BiBJoYYW.mjs.map} +1 -1
  61. package/dist/{migration-command-scaffold-V52dV2Tv.mjs → migration-command-scaffold-CjvwO6at.mjs} +3 -3
  62. package/dist/{migration-command-scaffold-V52dV2Tv.mjs.map → migration-command-scaffold-CjvwO6at.mjs.map} +1 -1
  63. package/dist/{migration-graph-Cm3oee8C.mjs → migration-graph-D7DVUElV.mjs} +80 -326
  64. package/dist/migration-graph-D7DVUElV.mjs.map +1 -0
  65. package/dist/{migration-plan-CaeKCKp4.mjs → migration-plan-9DJ7q7_z.mjs} +5 -5
  66. package/dist/{migration-plan-CaeKCKp4.mjs.map → migration-plan-9DJ7q7_z.mjs.map} +1 -1
  67. package/dist/{migration-types-CAQ-0TEE.d.mts → migration-types-D2FW63pr.d.mts} +1 -1
  68. package/dist/{migration-types-CAQ-0TEE.d.mts.map → migration-types-D2FW63pr.d.mts.map} +1 -1
  69. package/dist/{migrations-DQ1t3XFL.mjs → migrations-Cv2jxNNK.mjs} +2 -2
  70. package/dist/{migrations-DQ1t3XFL.mjs.map → migrations-Cv2jxNNK.mjs.map} +1 -1
  71. package/dist/{output-CF_hqzI-.mjs → output-B60Gw5fu.mjs} +1 -1
  72. package/dist/{output-CF_hqzI-.mjs.map → output-B60Gw5fu.mjs.map} +1 -1
  73. package/dist/{terminal-ui-C3xGyxW-.d.mts → terminal-ui-5Y6mrg93.d.mts} +1 -1
  74. package/dist/{terminal-ui-C3xGyxW-.d.mts.map → terminal-ui-5Y6mrg93.d.mts.map} +1 -1
  75. package/dist/{types-DiC683UW.d.mts → types-Dt_SfqFm.d.mts} +2 -8
  76. package/dist/{types-DiC683UW.d.mts.map → types-Dt_SfqFm.d.mts.map} +1 -1
  77. package/dist/{verify-CreSJ1Mz.mjs → verify-DCA9Sldu.mjs} +2 -2
  78. package/dist/{verify-CreSJ1Mz.mjs.map → verify-DCA9Sldu.mjs.map} +1 -1
  79. package/package.json +18 -22
  80. package/src/cli.ts +0 -5
  81. package/src/commands/init/index.ts +35 -6
  82. package/src/commands/init/init.ts +14 -1
  83. package/src/commands/init/inputs.ts +75 -0
  84. package/src/commands/migration-graph.ts +2 -43
  85. package/src/commands/migration-status.ts +1 -1
  86. package/src/control-api/client.ts +1 -11
  87. package/src/control-api/operations/apply.ts +0 -1
  88. package/src/control-api/operations/migration-apply.ts +3 -10
  89. package/src/control-api/types.ts +1 -12
  90. package/src/utils/formatters/migration-graph-layout.ts +5 -27
  91. package/src/utils/formatters/migration-graph-tree-render.ts +51 -360
  92. package/src/utils/global-flags.ts +0 -35
  93. package/src/utils/telemetry.ts +32 -68
  94. package/dist/client-Cdxcme1x.mjs.map +0 -1
  95. package/dist/commands/telemetry/index.d.mts +0 -7
  96. package/dist/commands/telemetry/index.d.mts.map +0 -1
  97. package/dist/commands/telemetry/index.mjs +0 -2
  98. package/dist/init-B6kKrmf7.mjs.map +0 -1
  99. package/dist/migration-graph-Cm3oee8C.mjs.map +0 -1
  100. package/dist/telemetry-Q88WHwlv.mjs +0 -122
  101. package/dist/telemetry-Q88WHwlv.mjs.map +0 -1
  102. package/src/commands/telemetry/index.ts +0 -107
  103. package/src/commands/telemetry/status.ts +0 -67
  104. 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
- }