@promptui-lib/cli 0.1.14 → 0.1.16

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 +1 @@
1
- {"version":3,"file":"generate.cmd.d.ts","sourceRoot":"","sources":["../../src/commands/generate.cmd.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAc,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAapF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AA0ED,wBAAsB,eAAe,CACnC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,IAAI,CAAC,CAqJf;AAyBD;;;;;;;;;GASG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwHjF"}
1
+ {"version":3,"file":"generate.cmd.d.ts","sourceRoot":"","sources":["../../src/commands/generate.cmd.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAc,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAapF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AA0ED,wBAAsB,eAAe,CACnC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,IAAI,CAAC,CAqJf;AAyBD;;;;;;;;;GASG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6HjF"}
@@ -240,6 +240,10 @@ export async function generateAllCommand(options) {
240
240
  // Se não, apenas os que começam com #
241
241
  const isTopLevelFrame = depth === 2 && (node.type === 'FRAME' || node.type === 'COMPONENT');
242
242
  const isMarkedForExport = node.name.startsWith('#');
243
+ // Debug: mostra frames de nível superior
244
+ if (depth === 2) {
245
+ console.log(` [DEBUG] Top-level frame: "${node.name}" (type: ${node.type}, starts with #: ${isMarkedForExport})`);
246
+ }
243
247
  if (exportAll ? isTopLevelFrame : isMarkedForExport) {
244
248
  // Só adiciona se ainda não existe (evita duplicatas)
245
249
  if (!exportableMap.has(node.id)) {
@@ -273,9 +277,9 @@ export async function generateAllCommand(options) {
273
277
  // Isso garante que componentes filhos sejam gerados antes dos pais
274
278
  exportableNodes.sort((a, b) => b.depth - a.depth);
275
279
  console.log('[PromptUI] Generation order (leaves first):');
276
- for (const { node } of exportableNodes) {
280
+ for (const { node, depth } of exportableNodes) {
277
281
  const hasChildren = hasExportableChildren(node);
278
- console.log(` ${hasChildren ? '📦' : '🍃'} ${node.name}`);
282
+ console.log(` ${hasChildren ? '📦' : '🍃'} ${node.name} (depth: ${depth}, id: ${node.id.slice(0, 8)}...)`);
279
283
  }
280
284
  console.log('');
281
285
  let successCount = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptui-lib/cli",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "private": false,
5
5
  "description": "CLI for PromptUI - Figma to React code generator",
6
6
  "license": "UNLICENSED",
@@ -45,10 +45,10 @@
45
45
  "bin"
46
46
  ],
47
47
  "dependencies": {
48
- "@promptui-lib/figma-parser": "0.1.14",
49
- "@promptui-lib/core": "0.1.14",
50
- "@promptui-lib/codegen": "0.1.14",
51
- "@promptui-lib/mcp-agent": "0.1.14"
48
+ "@promptui-lib/core": "0.1.16",
49
+ "@promptui-lib/figma-parser": "0.1.16",
50
+ "@promptui-lib/codegen": "0.1.16",
51
+ "@promptui-lib/mcp-agent": "0.1.16"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "^20.0.0",