@cronus-ui/stack 0.6.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Cronus
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,13 @@
1
+ # @cronus-ui/stack
2
+
3
+ Shared core for the Cronus Stack Builder.
4
+
5
+ It exports the catalog, resolver, CLI flag contract, stack snapshot schema, and
6
+ KICKOFF.md generators used by both the docs app and `create-cronus-stack`.
7
+
8
+ ```ts
9
+ import { catalog, defaultSelection, generateKickoff, resolve } from "@cronus-ui/stack";
10
+
11
+ const config = resolve(catalog, defaultSelection(catalog)).selection;
12
+ console.log(generateKickoff(config, "my-app"));
13
+ ```
@@ -0,0 +1,39 @@
1
+ /**
2
+ * The Cronus Stack Builder taxonomy.
3
+ *
4
+ * Coherent, robust, and CORRECT — every cross-category rule below is encoded on
5
+ * the options themselves (`requires` / `conflicts` / `implies` / `recommends`)
6
+ * so the pure resolver in `engine.ts` can enforce them deterministically.
7
+ *
8
+ * Conventions:
9
+ * - Option ids are GLOBALLY UNIQUE and prefixed by category, e.g. "orm-drizzle".
10
+ * - The FIRST option in each "single" category is its default (and is always a
11
+ * safe, dependency-free choice so cascades can always fall back to it).
12
+ * - Icons are lucide-react names.
13
+ */
14
+ import type { Catalog } from "./types.js";
15
+ export declare const catalog: Catalog;
16
+ /**
17
+ * Virtual / synthetic option ids used only inside `requires`/`conflicts` to
18
+ * express GROUP constraints the resolver expands against the real selection:
19
+ * - "web-react" → any of the React-capable web frontends is selected.
20
+ * - "db-sql" → any SQL database is selected.
21
+ * - "db-sql-server" → Postgres or MySQL is selected (PlanetScale).
22
+ *
23
+ * Keeping these out of the catalog options keeps the UI clean while still
24
+ * letting constraints reference logical groups.
25
+ */
26
+ export declare const SYNTHETIC_REQUIREMENTS: Record<string, string[]>;
27
+ /** Toggle categories that default to ON. */
28
+ export declare const TOGGLE_DEFAULTS_ON: Set<string>;
29
+ /** Multi categories that default to a preselected set. */
30
+ export declare const MULTI_DEFAULTS: Record<string, string[]>;
31
+ /** Re-exported convenience groups (also consumed by tests). */
32
+ export declare const GROUPS: {
33
+ readonly REACT_WEB: string[];
34
+ readonly SQL_DBS: string[];
35
+ readonly DEDICATED_BACKENDS: string[];
36
+ };
37
+ /** The fixed order builder sections render in (empty sections are skipped). */
38
+ export declare const GROUP_ORDER: readonly string[];
39
+ //# sourceMappingURL=catalog.d.ts.map