@vertz/cli 0.2.5 → 0.2.7

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.d.ts CHANGED
@@ -354,26 +354,9 @@ declare function getAffectedStages(category: FileCategory): PipelineStage[];
354
354
  * Create a pipeline watcher
355
355
  */
356
356
  declare function createPipelineWatcher(config: WatcherConfig): PipelineWatcher;
357
- import React from "react";
358
- interface BannerProps {
359
- version: string;
360
- }
361
- declare function Banner({ version }: BannerProps): React.ReactElement;
362
357
  import { Diagnostic as Diagnostic2 } from "@vertz/compiler";
363
- import React2 from "react";
364
- interface DiagnosticDisplayProps {
365
- diagnostic: Diagnostic2;
366
- }
367
- declare function DiagnosticDisplay({ diagnostic }: DiagnosticDisplayProps): React2.ReactElement;
368
- import { Diagnostic as Diagnostic3 } from "@vertz/compiler";
369
- import React3 from "react";
370
- interface DiagnosticSummaryProps {
371
- diagnostics: readonly Diagnostic3[];
372
- }
373
- declare function DiagnosticSummary({ diagnostics }: DiagnosticSummaryProps): React3.ReactElement;
374
- import { Diagnostic as Diagnostic4 } from "@vertz/compiler";
375
- declare function formatDiagnostic(diagnostic: Diagnostic4): string;
376
- declare function formatDiagnosticSummary(diagnostics: readonly Diagnostic4[]): string;
358
+ declare function formatDiagnostic(diagnostic: Diagnostic2): string;
359
+ declare function formatDiagnosticSummary(diagnostics: readonly Diagnostic2[]): string;
377
360
  declare function formatDuration(ms: number): string;
378
361
  declare function formatFileSize(bytes: number): string;
379
362
  declare function formatPath(absolutePath: string, cwd?: string): string;
@@ -382,4 +365,4 @@ declare function isCI(): boolean;
382
365
  declare function requireParam(value: string | undefined, name: string): string;
383
366
  type Runtime = "bun" | "node";
384
367
  declare function detectRuntime(): Runtime;
385
- export { symbols, routesAction, requireParam, registerDevCommand, loadConfig, isCI, getAffectedStages, generateAction, formatPath, formatFileSize, formatDuration, formatDiagnosticSummary, formatDiagnostic, findProjectRoot, findConfigFile, devAction, detectTarget, detectRuntime, deployAction, defaultCLIConfig, createWatcher, createTaskRunner, createProcessManager, createPipelineWatcher, createPipelineOrchestrator, createDevLoop, createCLI, createAction, colors, checkAction, categorizeFileChange, buildAction, Watcher2 as Watcher, TaskRunner, TaskList, TaskHandle, TaskGroup, Task, StageResult, SelectList, PipelineWatcher, PipelineStage, PipelineResult, PipelineOrchestrator, PipelineConfig, Message, GeneratorDefinition, GeneratedFile, FileChange2 as FileChange, FileCategory, DiagnosticSummary, DiagnosticDisplay, DevConfig, CLIConfig, Banner };
368
+ export { symbols, routesAction, requireParam, registerDevCommand, loadConfig, isCI, getAffectedStages, generateAction, formatPath, formatFileSize, formatDuration, formatDiagnosticSummary, formatDiagnostic, findProjectRoot, findConfigFile, devAction, detectTarget, detectRuntime, deployAction, defaultCLIConfig, createWatcher, createTaskRunner, createProcessManager, createPipelineWatcher, createPipelineOrchestrator, createDevLoop, createCLI, createAction, colors, checkAction, categorizeFileChange, buildAction, Watcher2 as Watcher, TaskRunner, TaskList, TaskHandle, TaskGroup, Task, StageResult, SelectList, PipelineWatcher, PipelineStage, PipelineResult, PipelineOrchestrator, PipelineConfig, Message, GeneratorDefinition, GeneratedFile, FileChange2 as FileChange, FileCategory, DevConfig, CLIConfig };
package/dist/index.js CHANGED
@@ -3,11 +3,11 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
3
3
 
4
4
  // src/index.ts
5
5
  import {
6
- colors as colors3,
6
+ colors,
7
7
  createTaskRunner,
8
8
  Message,
9
9
  SelectList,
10
- symbols as symbols4,
10
+ symbols as symbols2,
11
11
  Task,
12
12
  TaskList
13
13
  } from "@vertz/tui";
@@ -2452,137 +2452,6 @@ function createWatcher2(_dir) {
2452
2452
  }
2453
2453
  };
2454
2454
  }
2455
- // src/ui/components/Banner.tsx
2456
- import { Text } from "ink";
2457
- import { jsxDEV } from "react/jsx-dev-runtime";
2458
- function Banner({ version }) {
2459
- return /* @__PURE__ */ jsxDEV(Text, {
2460
- children: [
2461
- /* @__PURE__ */ jsxDEV(Text, {
2462
- bold: true,
2463
- color: "cyanBright",
2464
- children: "vertz"
2465
- }, undefined, false, undefined, this),
2466
- " ",
2467
- /* @__PURE__ */ jsxDEV(Text, {
2468
- dimColor: true,
2469
- children: [
2470
- "v",
2471
- version
2472
- ]
2473
- }, undefined, true, undefined, this)
2474
- ]
2475
- }, undefined, true, undefined, this);
2476
- }
2477
- // src/ui/components/DiagnosticDisplay.tsx
2478
- import { colors, symbols as symbols2 } from "@vertz/tui";
2479
- import { Box, Text as Text2 } from "ink";
2480
- import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
2481
- function DiagnosticDisplay({ diagnostic }) {
2482
- const isError = diagnostic.severity === "error";
2483
- const icon = isError ? symbols2.error : symbols2.warning;
2484
- const color = isError ? colors.error : colors.warning;
2485
- const location = diagnostic.file ? `${diagnostic.file}:${diagnostic.line ?? 0}:${diagnostic.column ?? 0}` : "";
2486
- return /* @__PURE__ */ jsxDEV2(Box, {
2487
- flexDirection: "column",
2488
- children: [
2489
- /* @__PURE__ */ jsxDEV2(Text2, {
2490
- color,
2491
- children: [
2492
- icon,
2493
- " ",
2494
- diagnostic.code
2495
- ]
2496
- }, undefined, true, undefined, this),
2497
- /* @__PURE__ */ jsxDEV2(Text2, {
2498
- children: [
2499
- " ",
2500
- diagnostic.message
2501
- ]
2502
- }, undefined, true, undefined, this),
2503
- location && /* @__PURE__ */ jsxDEV2(Text2, {
2504
- dimColor: true,
2505
- children: [
2506
- " at ",
2507
- location
2508
- ]
2509
- }, undefined, true, undefined, this),
2510
- diagnostic.sourceContext && /* @__PURE__ */ jsxDEV2(Box, {
2511
- flexDirection: "column",
2512
- marginTop: 1,
2513
- children: diagnostic.sourceContext.lines.map((line) => /* @__PURE__ */ jsxDEV2(Text2, {
2514
- children: [
2515
- /* @__PURE__ */ jsxDEV2(Text2, {
2516
- dimColor: true,
2517
- children: [
2518
- String(line.number).padStart(4),
2519
- " "
2520
- ]
2521
- }, undefined, true, undefined, this),
2522
- /* @__PURE__ */ jsxDEV2(Text2, {
2523
- children: line.text
2524
- }, undefined, false, undefined, this)
2525
- ]
2526
- }, line.number, true, undefined, this))
2527
- }, undefined, false, undefined, this),
2528
- diagnostic.suggestion && /* @__PURE__ */ jsxDEV2(Text2, {
2529
- color: colors.info,
2530
- children: [
2531
- " ",
2532
- symbols2.info,
2533
- " ",
2534
- diagnostic.suggestion
2535
- ]
2536
- }, undefined, true, undefined, this)
2537
- ]
2538
- }, undefined, true, undefined, this);
2539
- }
2540
- // src/ui/components/DiagnosticSummary.tsx
2541
- import { colors as colors2, symbols as symbols3 } from "@vertz/tui";
2542
- import { Text as Text3 } from "ink";
2543
- import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
2544
- function DiagnosticSummary({ diagnostics }) {
2545
- const errors = diagnostics.filter((d) => d.severity === "error");
2546
- const warnings = diagnostics.filter((d) => d.severity === "warning");
2547
- if (errors.length === 0 && warnings.length === 0) {
2548
- return /* @__PURE__ */ jsxDEV3(Text3, {
2549
- color: colors2.success,
2550
- children: [
2551
- symbols3.success,
2552
- " No errors"
2553
- ]
2554
- }, undefined, true, undefined, this);
2555
- }
2556
- const parts = [];
2557
- if (errors.length > 0) {
2558
- parts.push(/* @__PURE__ */ jsxDEV3(Text3, {
2559
- color: colors2.error,
2560
- children: [
2561
- errors.length,
2562
- " error",
2563
- errors.length === 1 ? "" : "s"
2564
- ]
2565
- }, "errors", true, undefined, this));
2566
- }
2567
- if (warnings.length > 0) {
2568
- if (parts.length > 0) {
2569
- parts.push(/* @__PURE__ */ jsxDEV3(Text3, {
2570
- children: ", "
2571
- }, "sep", false, undefined, this));
2572
- }
2573
- parts.push(/* @__PURE__ */ jsxDEV3(Text3, {
2574
- color: colors2.warning,
2575
- children: [
2576
- warnings.length,
2577
- " warning",
2578
- warnings.length === 1 ? "" : "s"
2579
- ]
2580
- }, "warnings", true, undefined, this));
2581
- }
2582
- return /* @__PURE__ */ jsxDEV3(Text3, {
2583
- children: parts
2584
- }, undefined, false, undefined, this);
2585
- }
2586
2455
  // src/utils/prompt.ts
2587
2456
  function isCI() {
2588
2457
  return process.env.CI === "true" || process.env.CI === "1" || process.env.CONTINUOUS_INTEGRATION === "true" || process.env.GITHUB_ACTIONS === "true" || process.env.GITLAB_CI === "true";
@@ -2601,7 +2470,7 @@ function detectRuntime() {
2601
2470
  return "node";
2602
2471
  }
2603
2472
  export {
2604
- symbols4 as symbols,
2473
+ symbols2 as symbols,
2605
2474
  routesAction,
2606
2475
  requireParam,
2607
2476
  registerDevCommand,
@@ -2629,7 +2498,7 @@ export {
2629
2498
  createDevLoop,
2630
2499
  createCLI,
2631
2500
  createAction,
2632
- colors3 as colors,
2501
+ colors,
2633
2502
  checkAction,
2634
2503
  categorizeFileChange,
2635
2504
  buildAction,
@@ -2637,8 +2506,5 @@ export {
2637
2506
  Task,
2638
2507
  SelectList,
2639
2508
  PipelineOrchestrator,
2640
- Message,
2641
- DiagnosticSummary,
2642
- DiagnosticDisplay,
2643
- Banner
2509
+ Message
2644
2510
  };
package/dist/vertz.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env bun
2
2
  import { createRequire } from "node:module";
3
3
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertz/cli",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Vertz CLI — dev, build, create, and deploy commands",
@@ -41,18 +41,15 @@
41
41
  "@vertz/create-vertz-app": "^0.2.2",
42
42
  "@vertz/db": "^0.2.4",
43
43
  "@vertz/ui-server": "^0.2.4",
44
+ "esbuild": "^0.25.0",
44
45
  "commander": "^14.0.0",
45
- "ink": "^6.6.0",
46
- "jiti": "^2.4.2",
47
- "react": "^19.2.4"
46
+ "jiti": "^2.4.2"
48
47
  },
49
48
  "devDependencies": {
50
49
  "@electric-sql/pglite": "^0.3.14",
51
50
  "@types/node": "^25.3.1",
52
- "@types/react": "^19.2.13",
53
51
  "@vitest/coverage-v8": "^4.0.18",
54
52
  "bunup": "^0.16.23",
55
- "ink-testing-library": "^4.0.0",
56
53
  "typescript": "^5.9.3",
57
54
  "vitest": "^4.0.18"
58
55
  },