@decantr/cli 1.7.23 → 1.7.24

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/bin.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import "./chunk-2WQLERIZ.js";
3
- import "./chunk-SN7C63TF.js";
2
+ import "./chunk-7H3PAC5Y.js";
3
+ import "./chunk-RH6IQ7YX.js";
4
4
  import "./chunk-QRQCPD3C.js";
@@ -14,7 +14,7 @@ import {
14
14
  scaffoldProject,
15
15
  syncRegistry,
16
16
  writeExecutionPackBundleArtifacts
17
- } from "./chunk-SN7C63TF.js";
17
+ } from "./chunk-RH6IQ7YX.js";
18
18
  import {
19
19
  buildGuardRegistryContext,
20
20
  scanProjectInteractions
@@ -2516,7 +2516,7 @@ var reactViteBootstrapAdapter = {
2516
2516
  react: "^19.0.0",
2517
2517
  "react-dom": "^19.0.0",
2518
2518
  "react-router-dom": "^7.0.0",
2519
- "@decantr/css": "^1.0.0",
2519
+ "@decantr/css": "^1.0.4",
2520
2520
  // P0-4: Lucide is the canonical icon library Decantr blueprints
2521
2521
  // reference in personality prose ("Lucide icons"). Including it by
2522
2522
  // default means cold scaffolds don't have to hand-roll inline SVGs.
@@ -4069,24 +4069,37 @@ function generateGreenfieldPrompt(ctx) {
4069
4069
  'Decantr ships @decantr/css as a runtime atom system (already in package.json). Use atoms via `css(...)` for ALL layout, spacing, sizing, flex/grid, position, and typography sizing \u2014 wherever you would otherwise reach for `style={{ display: "flex", gap: "1rem", padding: "1rem", ... }}`.'
4070
4070
  );
4071
4071
  lines.push("");
4072
- lines.push("Mandatory translation (NOT optional):");
4072
+ lines.push("Mandatory translation (NOT optional). USE THESE EXACT ATOM NAMES:");
4073
4073
  lines.push(
4074
- ' \u274C style={{ display: "flex", gap: "1rem" }} \u2192 \u2705 className={css("_flex _gap4")}'
4074
+ ' \u274C style={{ display: "flex", gap: "1rem" }} \u2192 \u2705 className={css("_flex _gap4")}'
4075
4075
  );
4076
4076
  lines.push(
4077
- ' \u274C style={{ flexDirection: "column" }} \u2192 \u2705 className={css("_col")}'
4077
+ ' \u274C style={{ flexDirection: "column", alignItems: "center" }} \u2192 \u2705 className={css("_col _aic")}'
4078
4078
  );
4079
4079
  lines.push(
4080
- ' \u274C style={{ padding: "1rem 1.5rem" }} \u2192 \u2705 className={css("_py4 _px6")}'
4080
+ ' \u274C style={{ justifyContent: "space-between" }} \u2192 \u2705 className={css("_jcsb")}'
4081
4081
  );
4082
4082
  lines.push(
4083
- ' \u274C style={{ gridTemplateColumns: "repeat(3, 1fr)" }} \u2192 \u2705 className={css("_grid _gc3")}'
4083
+ ' \u274C style={{ padding: "1rem 1.5rem" }} \u2192 \u2705 className={css("_py4 _px6")}'
4084
4084
  );
4085
4085
  lines.push(
4086
- ' \u274C style={{ position: "sticky", top: 0 }} \u2192 \u2705 className={css("_sticky _t0")}'
4086
+ ' \u274C style={{ gridTemplateColumns: "repeat(3, 1fr)" }} \u2192 \u2705 className={css("_grid _gc3")}'
4087
4087
  );
4088
4088
  lines.push(
4089
- ' \u274C style={{ width: "100%", maxWidth: "40rem" }} \u2192 \u2705 className={css("_w-full _maxw[40rem]")}'
4089
+ ' \u274C style={{ position: "sticky", top: 0 }} \u2192 \u2705 className={css("_sticky _top0")}'
4090
+ );
4091
+ lines.push(
4092
+ ' \u274C style={{ width: "100%", maxWidth: "40rem" }} \u2192 \u2705 className={css("_wfull _maxw[40rem]")}'
4093
+ );
4094
+ lines.push(
4095
+ ' \u274C style={{ marginInline: "auto" }} \u2192 \u2705 className={css("_mxauto")}'
4096
+ );
4097
+ lines.push(
4098
+ ' \u274C style={{ fontSize: "1.5rem" }} \u2192 \u2705 className={css("_text2xl")}'
4099
+ );
4100
+ lines.push("");
4101
+ lines.push(
4102
+ 'Atom naming convention: compact prefix-spelling \u2014 `_aic` (align-items:center) not `_items-center`, `_jcsb` (justify-content:space-between) not `_justify-between`, `_wfull` not `_w-full`, `_top0` not `_t0`. The runtime accepts hyphenated Tailwind-style aliases as fallback BUT compact prefix is canonical, shorter, and what every existing scaffold uses. Do not invent your own atom shapes \u2014 if you need an arbitrary value (e.g. `maxWidth: "72rem"`), use the brackets form `_maxw[72rem]`.'
4090
4103
  );
4091
4104
  lines.push("");
4092
4105
  lines.push(
@@ -6002,7 +6015,7 @@ async function main() {
6002
6015
  break;
6003
6016
  }
6004
6017
  case "upgrade": {
6005
- const { cmdUpgrade } = await import("./upgrade-HN6REFEX.js");
6018
+ const { cmdUpgrade } = await import("./upgrade-7LHT3S7E.js");
6006
6019
  const applyFlag = args.includes("--apply");
6007
6020
  await cmdUpgrade(process.cwd(), { apply: applyFlag });
6008
6021
  break;
@@ -2889,12 +2889,15 @@ import './styles/global.css'; // Resets
2889
2889
  | \u274C Inline (DO NOT) | \u2705 Atom (DO) |
2890
2890
  |--------------------|------------|
2891
2891
  | \`style={{ display: 'flex', gap: '1rem' }}\` | \`className={css('_flex _gap4')}\` |
2892
- | \`style={{ flexDirection: 'column', alignItems: 'center' }}\` | \`className={css('_col _items-center')}\` |
2892
+ | \`style={{ flexDirection: 'column', alignItems: 'center' }}\` | \`className={css('_col _aic')}\` |
2893
2893
  | \`style={{ padding: '1rem 1.5rem' }}\` | \`className={css('_py4 _px6')}\` |
2894
- | \`style={{ width: '100%', maxWidth: '40rem' }}\` | \`className={css('_w-full _maxw[40rem]')}\` |
2894
+ | \`style={{ width: '100%', maxWidth: '40rem' }}\` | \`className={css('_wfull _maxw[40rem]')}\` |
2895
2895
  | \`style={{ display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)' }}\` | \`className={css('_grid _gc3')}\` |
2896
- | \`style={{ position: 'sticky', top: 0 }}\` | \`className={css('_sticky _t0')}\` |
2896
+ | \`style={{ position: 'sticky', top: 0 }}\` | \`className={css('_sticky _top0')}\` |
2897
2897
  | \`style={{ marginInline: 'auto' }}\` | \`className={css('_mxauto')}\` |
2898
+ | \`style={{ fontSize: '1.5rem' }}\` | \`className={css('_text2xl')}\` |
2899
+
2900
+ > **Naming convention:** atoms use compact prefix-spelling (\`_aic\`, \`_jcsb\`, \`_wfull\`, \`_top0\`) \u2014 not Tailwind-style hyphenation. The runtime accepts both (\`_aic\` and \`_items-center\` both resolve to \`align-items:center\`) but compact prefix is canonical and shorter.
2898
2901
 
2899
2902
  **Inline \`style={{ ... }}\` is ONLY acceptable for these cases:**
2900
2903
  1. **CSS custom property writes** \u2014 \`style={{ '--d-stagger-index': i }}\` (the contract REQUIRES inline writes for dynamic CSS-var values that loop variables / animation indices feed into).
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import "./chunk-2WQLERIZ.js";
2
- import "./chunk-SN7C63TF.js";
1
+ import "./chunk-7H3PAC5Y.js";
2
+ import "./chunk-RH6IQ7YX.js";
3
3
  import "./chunk-QRQCPD3C.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RegistryClient,
3
3
  refreshDerivedFiles
4
- } from "./chunk-SN7C63TF.js";
4
+ } from "./chunk-RH6IQ7YX.js";
5
5
 
6
6
  // src/commands/upgrade.ts
7
7
  import { existsSync, readFileSync, writeFileSync } from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decantr/cli",
3
- "version": "1.7.23",
3
+ "version": "1.7.24",
4
4
  "description": "Decantr CLI — scaffold, audit, and maintain Decantr projects from the terminal",
5
5
  "author": "Decantr AI",
6
6
  "license": "MIT",
@@ -27,10 +27,10 @@
27
27
  "access": "public"
28
28
  },
29
29
  "dependencies": {
30
- "@decantr/essence-spec": "1.0.5",
31
30
  "@decantr/core": "1.0.4",
32
- "@decantr/verifier": "1.0.3",
33
- "@decantr/registry": "1.0.2"
31
+ "@decantr/essence-spec": "1.0.5",
32
+ "@decantr/registry": "1.0.2",
33
+ "@decantr/verifier": "1.0.3"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "tsup",