cascivo 1.8.2 → 1.8.3

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.11.0",
2
+ "version": "1.12.0",
3
3
  "tokens": [
4
4
  { "name": "--cascivo-gray-0", "resolvedDefault": "oklch(1 0 0)" },
5
5
  { "name": "--cascivo-gray-50", "resolvedDefault": "oklch(0.985 0.002 264)" },
@@ -679,7 +679,7 @@
679
679
  "props": [
680
680
  {
681
681
  "name": "variant",
682
- "type": "'default' | 'secondary' | 'success' | 'warning' | 'destructive' | 'outline'",
682
+ "type": "'default' | 'secondary' | 'success' | 'warning' | 'destructive' | 'outline' | 'info' | 'primary'",
683
683
  "required": false
684
684
  },
685
685
  { "name": "size", "type": "'sm' | 'md'", "required": false },
@@ -2317,6 +2317,7 @@
2317
2317
  { "name": "rows", "type": "number", "required": false },
2318
2318
  { "name": "resize", "type": "'none' | 'vertical' | 'both'", "required": false },
2319
2319
  { "name": "autosize", "type": "boolean", "required": false },
2320
+ { "name": "placeholder", "type": "string", "required": false },
2320
2321
  { "name": "disabled", "type": "boolean", "required": false },
2321
2322
  { "name": "value", "type": "string", "required": false },
2322
2323
  { "name": "defaultValue", "type": "string", "required": false },
package/dist/index.mjs CHANGED
@@ -393,5 +393,5 @@ Options:
393
393
  --repo <owner/repo> Repository the template will be hosted in`,tokens:`Usage: cascivo tokens import <file>
394
394
 
395
395
  Import external design tokens (W3C design-tokens JSON) as cascivo token
396
- overrides.`};async function sn(e){let[t,...r]=e;if(t!==void 0&&(r.includes(`--help`)||r.includes(`-h`))){let e=on[t];if(e!==void 0){console.log(e);return}}switch(t){case`create`:let{create:e}=await import(`./create-DIaknp48.mjs`);await e(r);break;case`app`:{let{app:e}=await import(`./app-BhCskK3W.mjs`);await e(r);break}case`init`:await Mt(r);break;case`add`:{let e=C(r);if(`error`in e){console.error(e.error),process.exitCode=1;break}await Ae(re(r,[`pm`,`package-manager`]),await n(),{dryRun:r.includes(`--dry-run`),yes:r.includes(`--yes`),noInstall:r.includes(`--no-install`),...e.pm?{pm:e.pm}:{}});break}case`list`:await Lt(await n(),{installed:r.includes(`--installed`)});break;case`update`:await Qt(r.filter(e=>!e.startsWith(`--`))[0],await n(),{check:r.includes(`--check`),yes:r.includes(`--yes`)});break;case`search`:await Vt(r,await n());break;case`view`:await rn(r,await n());break;case`theme`:await Jt(r);break;case`eject`:{let{eject:e}=await import(`./eject-CCb1WqVx.mjs`),t=e=>{let t=r.find(t=>t.startsWith(`--${e}=`));if(t)return t.slice(e.length+3);let n=r.indexOf(`--${e}`),i=n===-1?void 0:r[n+1];return i&&!i.startsWith(`--`)?i:void 0},i=t(`tokens`);await e(r,await n(),{...i?{tokens:i.split(`,`).map(e=>e.trim()).filter(Boolean)}:{},...t(`scope`)?{scope:t(`scope`)}:{},...t(`out`)?{out:t(`out`)}:{},dryRun:r.includes(`--dry-run`)});break}case`generate`:await bt(r,await n());break;case`registry`:r[0]===`build`?await zt(r.slice(1)):(console.error(`Unknown registry subcommand: ${r[0]}`),process.exitCode=1);break;case`template`:if(r[0]===`init`){let{templateInit:e}=await import(`./template-init-BFlRHOxK.mjs`);await e(r.slice(1))}else console.error(`Unknown template subcommand: ${r[0]}`),process.exitCode=1;break;case`doctor`:{let e=r.includes(`--ci`);if(r.includes(`--drift`)){let{runDoctorDrift:e}=await import(`./drift-DiXM2Rag.mjs`);await e(await n())}else{let t=process.cwd(),r=await $e(t),{checkDuplicateCore:i,checkFormatterIgnore:a,checkProjectDependencies:o,checkSignalsCompat:s,checkSsrConfig:c,detectInstallPath:l}=await Promise.resolve().then(()=>Me),u=l(t)!==`unknown`,d=u?o(t):[],f=d.filter(e=>e.required),p=u?await s(t):null,m=p?.severity===`error`,h=u?c(t):null,g=u?await i(t):null,_=u?a(t,(await n()).outputDir):null,{runDoctorDrift:v}=await import(`./drift-DiXM2Rag.mjs`),y=u?await v(await n(),t):{ran:!1,reason:`no cascivo install detected`,issues:0};if(r.passed&&d.length===0&&p===null&&h===null&&g===null&&_===null&&y.issues===0)console.log(y.ran?`No violations found.`:`No violations found (drift: not checked — ${y.reason}).`);else{for(let e of r.violations)console.error(`[${e.rule}] ${e.detail}\n ${e.file}`);for(let e of f)console.error(e.kind===`forbidden`?`[forbidden-dependency] ${e.package} must not be a direct dependency here. Remove it — ${e.hint}`:`[missing-dependency] ${e.package} is not in package.json. Install: ${e.hint}`);p&&(m?console.error:console.log)(`[${m?`signals-incompatible`:`signals-outdated`}] ${p.detail} Upgrade: ${p.hint}`),h&&console.log(`[ssr-config] ${h}`),_&&console.log(`[formatter-drift] ${_}`),g&&console.error(`[duplicate-core] More than one @cascivo/core is installed (root: ${g.root??`none`}; ${g.nested.join(`; `)}). `+g.hint);for(let e of d.filter(e=>!e.required))console.log(`[optional] ${e.package} is not installed; add it when a component or chart needs it: ${e.hint}`);e&&(r.violations.length>0||f.length>0||m||g!==null||y.issues>0)&&(process.exitCode=1)}}break}case`mcp`:{let{mcp:e}=await import(`./mcp-CqX_Yi06.mjs`).then(e=>e.t);await e(r);break}case`audit`:{let{audit:e}=await import(`./audit-Boq9kXpR.mjs`);await e(r,await n());break}case`email`:{let{email:e}=await import(`./email-Drn2bDlp.mjs`);await e(r);break}case`tokens`:if(r[0]===`import`){let{tokensImport:e}=await import(`./tokens-VSJC9GgT.mjs`);await e(r.slice(1))}else console.error(`Unknown tokens subcommand: ${r[0]}`),process.exitCode=1;break;case void 0:case`--help`:case`-h`:case`help`:console.log(an);break;case`--version`:case`-v`:console.log(Q);break;default:console.error(`Unknown command: ${t}\n`),console.log(an),process.exitCode=1}}D[1]!==void 0&&import.meta.url===ae(D[1]).href&&sn(D.slice(2)).catch(e=>{console.error(e instanceof Error?e.message:String(e)),process.exitCode=1});export{Q as VERSION,sn as run,Te as t};
396
+ overrides.`};async function sn(e){let[t,...r]=e;if(t!==void 0&&(r.includes(`--help`)||r.includes(`-h`))){let e=on[t];if(e!==void 0){console.log(e);return}}switch(t){case`create`:let{create:e}=await import(`./create-BT3YoVp5.mjs`);await e(r);break;case`app`:{let{app:e}=await import(`./app-cT6z1jwO.mjs`);await e(r);break}case`init`:await Mt(r);break;case`add`:{let e=C(r);if(`error`in e){console.error(e.error),process.exitCode=1;break}await Ae(re(r,[`pm`,`package-manager`]),await n(),{dryRun:r.includes(`--dry-run`),yes:r.includes(`--yes`),noInstall:r.includes(`--no-install`),...e.pm?{pm:e.pm}:{}});break}case`list`:await Lt(await n(),{installed:r.includes(`--installed`)});break;case`update`:await Qt(r.filter(e=>!e.startsWith(`--`))[0],await n(),{check:r.includes(`--check`),yes:r.includes(`--yes`)});break;case`search`:await Vt(r,await n());break;case`view`:await rn(r,await n());break;case`theme`:await Jt(r);break;case`eject`:{let{eject:e}=await import(`./eject-CCb1WqVx.mjs`),t=e=>{let t=r.find(t=>t.startsWith(`--${e}=`));if(t)return t.slice(e.length+3);let n=r.indexOf(`--${e}`),i=n===-1?void 0:r[n+1];return i&&!i.startsWith(`--`)?i:void 0},i=t(`tokens`);await e(r,await n(),{...i?{tokens:i.split(`,`).map(e=>e.trim()).filter(Boolean)}:{},...t(`scope`)?{scope:t(`scope`)}:{},...t(`out`)?{out:t(`out`)}:{},dryRun:r.includes(`--dry-run`)});break}case`generate`:await bt(r,await n());break;case`registry`:r[0]===`build`?await zt(r.slice(1)):(console.error(`Unknown registry subcommand: ${r[0]}`),process.exitCode=1);break;case`template`:if(r[0]===`init`){let{templateInit:e}=await import(`./template-init-BFlRHOxK.mjs`);await e(r.slice(1))}else console.error(`Unknown template subcommand: ${r[0]}`),process.exitCode=1;break;case`doctor`:{let e=r.includes(`--ci`);if(r.includes(`--drift`)){let{runDoctorDrift:e}=await import(`./drift-DiXM2Rag.mjs`);await e(await n())}else{let t=process.cwd(),r=await $e(t),{checkDuplicateCore:i,checkFormatterIgnore:a,checkProjectDependencies:o,checkSignalsCompat:s,checkSsrConfig:c,detectInstallPath:l}=await Promise.resolve().then(()=>Me),u=l(t)!==`unknown`,d=u?o(t):[],f=d.filter(e=>e.required),p=u?await s(t):null,m=p?.severity===`error`,h=u?c(t):null,g=u?await i(t):null,_=u?a(t,(await n()).outputDir):null,{runDoctorDrift:v}=await import(`./drift-DiXM2Rag.mjs`),y=u?await v(await n(),t):{ran:!1,reason:`no cascivo install detected`,issues:0};if(r.passed&&d.length===0&&p===null&&h===null&&g===null&&_===null&&y.issues===0)console.log(y.ran?`No violations found.`:`No violations found (drift: not checked — ${y.reason}).`);else{for(let e of r.violations)console.error(`[${e.rule}] ${e.detail}\n ${e.file}`);for(let e of f)console.error(e.kind===`forbidden`?`[forbidden-dependency] ${e.package} must not be a direct dependency here. Remove it — ${e.hint}`:`[missing-dependency] ${e.package} is not in package.json. Install: ${e.hint}`);p&&(m?console.error:console.log)(`[${m?`signals-incompatible`:`signals-outdated`}] ${p.detail} Upgrade: ${p.hint}`),h&&console.log(`[ssr-config] ${h}`),_&&console.log(`[formatter-drift] ${_}`),g&&console.error(`[duplicate-core] More than one @cascivo/core is installed (root: ${g.root??`none`}; ${g.nested.join(`; `)}). `+g.hint);for(let e of d.filter(e=>!e.required))console.log(`[optional] ${e.package} is not installed; add it when a component or chart needs it: ${e.hint}`);e&&(r.violations.length>0||f.length>0||m||g!==null||y.issues>0)&&(process.exitCode=1)}}break}case`mcp`:{let{mcp:e}=await import(`./mcp-CqX_Yi06.mjs`).then(e=>e.t);await e(r);break}case`audit`:{let{audit:e}=await import(`./audit-Boq9kXpR.mjs`);await e(r,await n());break}case`email`:{let{email:e}=await import(`./email-Drn2bDlp.mjs`);await e(r);break}case`tokens`:if(r[0]===`import`){let{tokensImport:e}=await import(`./tokens-VSJC9GgT.mjs`);await e(r.slice(1))}else console.error(`Unknown tokens subcommand: ${r[0]}`),process.exitCode=1;break;case void 0:case`--help`:case`-h`:case`help`:console.log(an);break;case`--version`:case`-v`:console.log(Q);break;default:console.error(`Unknown command: ${t}\n`),console.log(an),process.exitCode=1}}D[1]!==void 0&&import.meta.url===ae(D[1]).href&&sn(D.slice(2)).catch(e=>{console.error(e instanceof Error?e.message:String(e)),process.exitCode=1});export{Q as VERSION,sn as run,Te as t};
397
397
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cascivo",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "private": false,
5
5
  "description": "CLI — npx cascivo init / add / list / update",
6
6
  "keywords": [
@@ -47,7 +47,7 @@
47
47
  "@cascivo/registry": "^0.3.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@cascivo/app": "1.11.0",
50
+ "@cascivo/app": "1.12.0",
51
51
  "@cascivo/email": "0.6.1",
52
52
  "@cascivo/theme-kit": "0.0.0",
53
53
  "@docspack/cmdspec": "^0.2.0",