@xenonbyte/da-vinci-workflow 0.2.1 → 0.2.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.
package/lib/cli.js CHANGED
@@ -74,6 +74,7 @@ const {
74
74
  const { diffSpec, formatDiffSpecReport } = require("./diff-spec");
75
75
  const { scaffoldFromBindings, formatScaffoldReport } = require("./scaffold");
76
76
  const { writeExecutionSignal } = require("./execution-signals");
77
+ const { formatTuiHelp, launchTui } = require("../tui");
77
78
 
78
79
  const DEFAULT_MAX_PREFLIGHT_STDIN_BYTES = 1024 * 1024;
79
80
  const DEFAULT_MAX_STDIN_TRANSIENT_RETRIES = 2000;
@@ -81,6 +82,7 @@ const DEFAULT_MAX_STDIN_TRANSIENT_BACKOFF_MS = 25;
81
82
  const OPTION_FLAGS_WITH_VALUES = new Set([
82
83
  "--home",
83
84
  "--platform",
85
+ "--lang",
84
86
  "--project",
85
87
  "--mode",
86
88
  "--change",
@@ -120,6 +122,7 @@ const OPTION_FLAGS_WITH_VALUES = new Set([
120
122
 
121
123
  const HELP_OPTION_SPECS = [
122
124
  { flag: "--platform <value>", description: "codex, claude, gemini, or all" },
125
+ { flag: "--lang <value>", description: "ui language for `da-vinci tui`: en or zh" },
123
126
  { flag: "--home <path>", description: "override HOME for installation targets" },
124
127
  { flag: "--project <path>", description: "override project path for audit" },
125
128
  {
@@ -472,6 +475,7 @@ function printHelp() {
472
475
  " da-vinci install --platform codex,claude,gemini",
473
476
  " da-vinci uninstall --platform codex,claude,gemini",
474
477
  " da-vinci status",
478
+ " da-vinci tui [--project <path>] [--change <id>] [--lang en|zh] [--strict] [--json] [--continue-on-error]",
475
479
  " da-vinci workflow-status [--project <path>] [--change <id>] [--json]",
476
480
  " da-vinci next-step [--project <path>] [--change <id>] [--json]",
477
481
  " da-vinci lint-spec [--project <path>] [--change <id>] [--strict] [--json]",
@@ -937,6 +941,25 @@ async function runCli(argv) {
937
941
  return;
938
942
  }
939
943
 
944
+ if (command === "tui") {
945
+ const projectPath = getOption(argv, "--project") || positionalArgs[0] || process.cwd();
946
+ const changeId = getOption(argv, "--change");
947
+ const lang = getOption(argv, "--lang");
948
+ if (argv.includes("--help") || argv.includes("-h")) {
949
+ console.log(formatTuiHelp(lang));
950
+ return;
951
+ }
952
+ await launchTui({
953
+ projectPath,
954
+ changeId,
955
+ lang,
956
+ strict: argv.includes("--strict"),
957
+ jsonOutput: argv.includes("--json"),
958
+ continueOnError
959
+ });
960
+ return;
961
+ }
962
+
940
963
  if (command === "workflow-status") {
941
964
  const projectPath = getOption(argv, "--project") || positionalArgs[0] || process.cwd();
942
965
  const changeId = getOption(argv, "--change");
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@xenonbyte/da-vinci-workflow",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Requirement-to-design-to-code workflow skill for Codex, Claude, and Gemini",
5
5
  "bin": {
6
6
  "da-vinci": "bin/da-vinci.js",
7
- "design-supervisor": "bin/design-supervisor.js"
7
+ "design-supervisor": "bin/design-supervisor.js",
8
+ "da-vinci-tui": "bin/da-vinci-tui.js"
8
9
  },
9
10
  "files": [
10
11
  "SKILL.md",
@@ -18,6 +19,7 @@
18
19
  "examples",
19
20
  "bin",
20
21
  "lib",
22
+ "tui",
21
23
  "scripts/postinstall.js",
22
24
  "scripts/validate-assets.js"
23
25
  ],