@mindfiredigital/ignix-lite-cli 1.4.1 → 1.4.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/.turbo/turbo-build.log +3 -3
- package/README.md +4 -4
- package/dist/index.js +17 -9
- package/package.json +4 -4
- package/src/commands/build.ts +9 -5
- package/src/commands/preview.ts +3 -1
- package/src/commands/validate.ts +3 -1
- package/tsup.config.ts +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @mindfiredigital/ignix-lite-cli@1.4.
|
|
2
|
+
> @mindfiredigital/ignix-lite-cli@1.4.2 build /home/runner/work/ignix-lite/ignix-lite/packages/cli
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
[34mCLI[39m Target: es2022
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mESM[39m Build start
|
|
12
|
-
[32mESM[39m [1mdist/index.js [22m[32m29.
|
|
13
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m [1mdist/index.js [22m[32m29.18 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 62ms
|
package/README.md
CHANGED
|
@@ -272,10 +272,10 @@ ignix-lite preview component.html --output screenshot.png --width 800 --theme da
|
|
|
272
272
|
Automatically configure the Ignix-Lite MCP server for your AI editor. **Zero manual steps** — the CLI writes directly to the editor's config file.
|
|
273
273
|
|
|
274
274
|
```bash
|
|
275
|
-
ignix-lite mcp setup claude
|
|
276
|
-
ignix-lite mcp setup claude-code
|
|
277
|
-
ignix-lite mcp setup gemini
|
|
278
|
-
ignix-lite mcp setup cursor
|
|
275
|
+
ignix-lite mcp setup claude
|
|
276
|
+
ignix-lite mcp setup claude-code
|
|
277
|
+
ignix-lite mcp setup gemini
|
|
278
|
+
ignix-lite mcp setup cursor
|
|
279
279
|
```
|
|
280
280
|
|
|
281
281
|
**All clients are fully auto-configured.** After running the command:
|
package/dist/index.js
CHANGED
|
@@ -328,8 +328,10 @@ async function validateCommand(filePath) {
|
|
|
328
328
|
if (result.valid) {
|
|
329
329
|
console.log(
|
|
330
330
|
pc4.bold(
|
|
331
|
-
pc4.green(
|
|
332
|
-
|
|
331
|
+
pc4.green(
|
|
332
|
+
`
|
|
333
|
+
\u2714 PASS: All checks passed! Score: ${result.score ?? 100}/100`
|
|
334
|
+
)
|
|
333
335
|
)
|
|
334
336
|
);
|
|
335
337
|
} else {
|
|
@@ -519,13 +521,19 @@ async function buildCommand(prompt, options) {
|
|
|
519
521
|
if (!data || data.source === "no-match") {
|
|
520
522
|
console.log(pc8.red(`
|
|
521
523
|
Could not synthesize UI for: "${prompt}"`));
|
|
522
|
-
console.log(
|
|
523
|
-
|
|
524
|
+
console.log(
|
|
525
|
+
pc8.yellow(
|
|
526
|
+
`Suggestion: ${data?.suggestion || "Try clarifying your request."}
|
|
527
|
+
`
|
|
528
|
+
)
|
|
529
|
+
);
|
|
524
530
|
return;
|
|
525
531
|
}
|
|
526
532
|
const outputContent = options.emmetOnly ? data.emmet : data.html;
|
|
527
533
|
if (!outputContent) {
|
|
528
|
-
console.log(
|
|
534
|
+
console.log(
|
|
535
|
+
pc8.red("Error: Response does not contain any synthesized code.")
|
|
536
|
+
);
|
|
529
537
|
return;
|
|
530
538
|
}
|
|
531
539
|
if (options.output) {
|
|
@@ -539,9 +547,7 @@ Successfully wrote output to ${pc8.blue(options.output)}
|
|
|
539
547
|
);
|
|
540
548
|
} catch (err) {
|
|
541
549
|
const msg = err instanceof Error ? err.message : String(err);
|
|
542
|
-
console.log(
|
|
543
|
-
pc8.red(`Error: Failed to write output to file. ${msg}`)
|
|
544
|
-
);
|
|
550
|
+
console.log(pc8.red(`Error: Failed to write output to file. ${msg}`));
|
|
545
551
|
}
|
|
546
552
|
} else {
|
|
547
553
|
console.log(pc8.cyan("\nSynthesized Output:"));
|
|
@@ -585,7 +591,9 @@ async function previewCommand(filePath, options) {
|
|
|
585
591
|
try {
|
|
586
592
|
result = JSON.parse(response.content[0].text);
|
|
587
593
|
} catch {
|
|
588
|
-
spinner.fail(
|
|
594
|
+
spinner.fail(
|
|
595
|
+
pc9.red("Render failed: Invalid JSON response from preview engine.")
|
|
596
|
+
);
|
|
589
597
|
return;
|
|
590
598
|
}
|
|
591
599
|
if (result.error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindfiredigital/ignix-lite-cli",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "CLI tool for Ignix-Lite project scaffolding, validation, and theming",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"ignix-lite": "./dist/index.js"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
+
"@mindfiredigital/ignix-lite-engine": "^1.4.1",
|
|
12
|
+
"@mindfiredigital/ignix-lite-mcp": "^1.6.1",
|
|
11
13
|
"commander": "^13.1.0",
|
|
12
14
|
"node-html-parser": "^7.1.0",
|
|
13
15
|
"ora": "^9.4.0",
|
|
14
16
|
"picocolors": "^1.1.1",
|
|
15
17
|
"prompts": "^2.4.2",
|
|
16
|
-
"zod": "^3.24.2"
|
|
17
|
-
"@mindfiredigital/ignix-lite-engine": "1.4.1",
|
|
18
|
-
"@mindfiredigital/ignix-lite-mcp": "1.6.1"
|
|
18
|
+
"zod": "^3.24.2"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/node": "^25.8.0",
|
package/src/commands/build.ts
CHANGED
|
@@ -35,13 +35,19 @@ export async function buildCommand(
|
|
|
35
35
|
|
|
36
36
|
if (!data || data.source === 'no-match') {
|
|
37
37
|
console.log(pc.red(`\nCould not synthesize UI for: "${prompt}"`))
|
|
38
|
-
console.log(
|
|
38
|
+
console.log(
|
|
39
|
+
pc.yellow(
|
|
40
|
+
`Suggestion: ${data?.suggestion || 'Try clarifying your request.'}\n`
|
|
41
|
+
)
|
|
42
|
+
)
|
|
39
43
|
return
|
|
40
44
|
}
|
|
41
45
|
|
|
42
46
|
const outputContent = options.emmetOnly ? data.emmet : data.html
|
|
43
47
|
if (!outputContent) {
|
|
44
|
-
console.log(
|
|
48
|
+
console.log(
|
|
49
|
+
pc.red('Error: Response does not contain any synthesized code.')
|
|
50
|
+
)
|
|
45
51
|
return
|
|
46
52
|
}
|
|
47
53
|
|
|
@@ -54,9 +60,7 @@ export async function buildCommand(
|
|
|
54
60
|
)
|
|
55
61
|
} catch (err: unknown) {
|
|
56
62
|
const msg = err instanceof Error ? err.message : String(err)
|
|
57
|
-
console.log(
|
|
58
|
-
pc.red(`Error: Failed to write output to file. ${msg}`)
|
|
59
|
-
)
|
|
63
|
+
console.log(pc.red(`Error: Failed to write output to file. ${msg}`))
|
|
60
64
|
}
|
|
61
65
|
} else {
|
|
62
66
|
console.log(pc.cyan('\nSynthesized Output:'))
|
package/src/commands/preview.ts
CHANGED
|
@@ -45,7 +45,9 @@ export async function previewCommand(
|
|
|
45
45
|
try {
|
|
46
46
|
result = JSON.parse(response.content[0].text)
|
|
47
47
|
} catch {
|
|
48
|
-
spinner.fail(
|
|
48
|
+
spinner.fail(
|
|
49
|
+
pc.red('Render failed: Invalid JSON response from preview engine.')
|
|
50
|
+
)
|
|
49
51
|
return
|
|
50
52
|
}
|
|
51
53
|
|
package/src/commands/validate.ts
CHANGED
|
@@ -21,7 +21,9 @@ export async function validateCommand(filePath: string) {
|
|
|
21
21
|
if (result.valid) {
|
|
22
22
|
console.log(
|
|
23
23
|
pc.bold(
|
|
24
|
-
pc.green(
|
|
24
|
+
pc.green(
|
|
25
|
+
`\n✔ PASS: All checks passed! Score: ${result.score ?? 100}/100`
|
|
26
|
+
)
|
|
25
27
|
)
|
|
26
28
|
)
|
|
27
29
|
} else {
|
package/tsup.config.ts
CHANGED