whale-igniter 1.3.5 → 1.3.6
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.
|
@@ -32,6 +32,8 @@ const CATEGORY_TEMPLATES = {
|
|
|
32
32
|
*/
|
|
33
33
|
export async function createComponentCommand(name, options = {}) {
|
|
34
34
|
const target = resolveTarget();
|
|
35
|
+
const shouldRegister = options.register !== false && !options.noRegister;
|
|
36
|
+
const shouldSync = options.sync !== false && !options.noSync;
|
|
35
37
|
if (!name || !/^[A-Z][A-Za-z0-9]*$/.test(name)) {
|
|
36
38
|
console.log(ui.fail("Component name must be PascalCase (e.g. `Button`, `UserCard`)."));
|
|
37
39
|
process.exitCode = 1;
|
|
@@ -82,7 +84,7 @@ export async function createComponentCommand(name, options = {}) {
|
|
|
82
84
|
if (variants && variants.length > 0)
|
|
83
85
|
console.log(` ${ui.kv("variants", variants.join(", "), { keyWidth: 8 })}`);
|
|
84
86
|
// Auto-register in the catalog unless explicitly skipped.
|
|
85
|
-
if (
|
|
87
|
+
if (shouldRegister) {
|
|
86
88
|
await upsertComponent(target, {
|
|
87
89
|
name,
|
|
88
90
|
category,
|
|
@@ -92,7 +94,7 @@ export async function createComponentCommand(name, options = {}) {
|
|
|
92
94
|
});
|
|
93
95
|
console.log(ui.muted(` registered in intelligence/components.json`));
|
|
94
96
|
}
|
|
95
|
-
if (
|
|
97
|
+
if (shouldSync && shouldRegister) {
|
|
96
98
|
await generateWiki(target);
|
|
97
99
|
console.log(ui.muted(`${ui.glyph.check} AI context updated`));
|
|
98
100
|
}
|
|
@@ -12,6 +12,8 @@ export async function createLandingCommand(options = {}) {
|
|
|
12
12
|
const target = resolveTarget();
|
|
13
13
|
const config = await loadConfig(target);
|
|
14
14
|
const sections = parseSections(options.sections);
|
|
15
|
+
const shouldRegister = options.register !== false && !options.noRegister;
|
|
16
|
+
const shouldSync = options.sync !== false && !options.noSync;
|
|
15
17
|
if (sections.length === 0) {
|
|
16
18
|
console.log(ui.fail("No valid sections selected. Use hero,features,proof,contact."));
|
|
17
19
|
process.exitCode = 1;
|
|
@@ -56,7 +58,7 @@ export async function createLandingCommand(options = {}) {
|
|
|
56
58
|
console.log(` ${ui.kv("theme", theme.label, { keyWidth: 8 })}`);
|
|
57
59
|
console.log(` ${ui.kv("grid", `${theme.structural.grid}px`, { keyWidth: 8 })}`);
|
|
58
60
|
console.log(` ${ui.kv("radius", `${theme.structural.radiusControl}px controls, ${theme.structural.radiusContainer}px containers`, { keyWidth: 8 })}`);
|
|
59
|
-
if (
|
|
61
|
+
if (shouldRegister) {
|
|
60
62
|
for (const section of sections) {
|
|
61
63
|
await upsertComponent(target, {
|
|
62
64
|
name: sectionName(section),
|
|
@@ -70,7 +72,7 @@ export async function createLandingCommand(options = {}) {
|
|
|
70
72
|
}
|
|
71
73
|
console.log(ui.muted(` registered ${sections.length} section(s) in intelligence/components.json`));
|
|
72
74
|
}
|
|
73
|
-
if (
|
|
75
|
+
if (shouldSync && shouldRegister) {
|
|
74
76
|
await generateWiki(target);
|
|
75
77
|
console.log(ui.muted(`${ui.glyph.check} AI context updated`));
|
|
76
78
|
}
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = "1.3.
|
|
1
|
+
export const PACKAGE_VERSION = "1.3.6";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "whale-igniter",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"description": "CLI-first operational intelligence. Bootstraps and adopts AI-readable project context so agents like Claude Code, Codex and Cursor understand your design system from the first commit. Includes an MCP server, a file watcher, deterministic insights, and an opt-in AI bridge (Selene).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|