@guilhermebkel/scenec 0.0.0-stage → 0.1.2

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.
Files changed (78) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +242 -2
  3. package/dist/catalog.d.ts +21 -0
  4. package/dist/catalog.js +35 -0
  5. package/dist/cli.d.ts +2 -0
  6. package/dist/cli.js +118 -0
  7. package/dist/data/europe.json +1 -0
  8. package/dist/drawing/assets.d.ts +8 -0
  9. package/dist/drawing/assets.js +612 -0
  10. package/dist/drawing/kits.d.ts +7 -0
  11. package/dist/drawing/kits.js +92 -0
  12. package/dist/drawing/person.d.ts +18 -0
  13. package/dist/drawing/person.js +287 -0
  14. package/dist/drawing/themes.d.ts +4 -0
  15. package/dist/drawing/themes.js +45 -0
  16. package/dist/index.d.ts +6 -0
  17. package/dist/index.js +2 -0
  18. package/dist/modes/map.d.ts +5 -0
  19. package/dist/modes/map.js +365 -0
  20. package/dist/modes/plane.d.ts +5 -0
  21. package/dist/modes/plane.js +716 -0
  22. package/dist/pipeline/compile.d.ts +2 -0
  23. package/dist/pipeline/compile.js +581 -0
  24. package/dist/pipeline/custom.d.ts +2 -0
  25. package/dist/pipeline/custom.js +120 -0
  26. package/dist/pipeline/groups.d.ts +2 -0
  27. package/dist/pipeline/groups.js +189 -0
  28. package/dist/pipeline/index.d.ts +16 -0
  29. package/dist/pipeline/index.js +7 -0
  30. package/dist/pipeline/parse.d.ts +10 -0
  31. package/dist/pipeline/parse.js +80 -0
  32. package/dist/protocols/options.d.ts +14 -0
  33. package/dist/protocols/options.js +1 -0
  34. package/dist/protocols/scene.d.ts +299 -0
  35. package/dist/protocols/scene.js +118 -0
  36. package/dist/protocols/theme.d.ts +25 -0
  37. package/dist/protocols/theme.js +1 -0
  38. package/dist/render/check.d.ts +6 -0
  39. package/dist/render/check.js +10 -0
  40. package/dist/render/critic.d.ts +1 -0
  41. package/dist/render/critic.js +235 -0
  42. package/dist/render/files.d.ts +2 -0
  43. package/dist/render/files.js +16 -0
  44. package/dist/render/fonts.d.ts +2 -0
  45. package/dist/render/fonts.js +4 -0
  46. package/dist/render/png.d.ts +9 -0
  47. package/dist/render/png.js +13 -0
  48. package/dist/render.d.ts +5 -0
  49. package/dist/render.js +3 -0
  50. package/dist/schema.d.ts +3 -0
  51. package/dist/schema.js +6 -0
  52. package/dist/utils/color.d.ts +5 -0
  53. package/dist/utils/color.js +35 -0
  54. package/dist/utils/recolor.d.ts +1 -0
  55. package/dist/utils/recolor.js +56 -0
  56. package/dist/utils/sanitize.d.ts +5 -0
  57. package/dist/utils/sanitize.js +169 -0
  58. package/dist/utils/suggest.d.ts +1 -0
  59. package/dist/utils/suggest.js +22 -0
  60. package/dist/utils/svg.d.ts +2 -0
  61. package/dist/utils/svg.js +11 -0
  62. package/fonts/OFL.txt +50 -0
  63. package/fonts/Poppins-Bold.ttf +0 -0
  64. package/fonts/Poppins-Medium.ttf +0 -0
  65. package/fonts/Poppins-Regular.ttf +0 -0
  66. package/package.json +96 -4
  67. package/skills/scenec/SKILL.md +46 -0
  68. package/skills/scenec/recipes/anuncios-variacoes.yaml +58 -0
  69. package/skills/scenec/recipes/carrossel.yaml +58 -0
  70. package/skills/scenec/recipes/elearning.yaml +64 -0
  71. package/skills/scenec/recipes/historia-ilustrada.yaml +48 -0
  72. package/skills/scenec/recipes/ilustracoes-produto.yaml +44 -0
  73. package/skills/scenec/recipes/mapas-jornadas.yaml +27 -0
  74. package/skills/scenec/recipes/reels-explicativo.yaml +41 -0
  75. package/skills/scenec/recipes/wrapped-personalizado.yaml +64 -0
  76. package/skills/scenec/references/catalog.md +125 -0
  77. package/skills/scenec/references/dsl.md +111 -0
  78. package/skills/scenec/references/fontes.md +8 -0
@@ -0,0 +1,125 @@
1
+ # Catalog (generated, do not edit)
2
+
3
+ Generated by `pnpm skill:refs`. Query live with `npx @guilhermebkel/scenec@1 catalog <assets|groups|kits|themes|poses|layout>`.
4
+
5
+ ## Assets (86)
6
+
7
+ | Id | Kind | Size | Synonyms |
8
+ | --- | --- | --- | --- |
9
+ | `person` | ground | 40x108 | pessoa, human, character, man, woman, personagem |
10
+ | `house` | ground | 160x175 | casa, home |
11
+ | `tree` | ground | 115x205 | árvore, arvore, tree_round, oak |
12
+ | `pine` | ground | 80x200 | pinheiro, pine_tree, conifer |
13
+ | `palm` | ground | 200x262 | palmeira, coqueiro, palm_tree |
14
+ | `bush` | ground | 74x44 | arbusto, shrub |
15
+ | `flowers` | ground | 50x30 | flores, canteiro, flower_bed |
16
+ | `fence` | ground | 160x40 | cerca |
17
+ | `building` | ground | 90x300 | prédio, predio, tower, skyscraper |
18
+ | `mountain` | ground | 320x200 | montanha, hill, serra |
19
+ | `sun` | sky | 90x90 | sol |
20
+ | `moon` | sky | 60x60 | lua |
21
+ | `cloud` | sky | 110x50 | nuvem |
22
+ | `bird` | sky | 20x10 | pássaro, passaro, gaivota, birds |
23
+ | `star` | sky | 14x14 | estrela |
24
+ | `stars` | sky | 600x200 | céu estrelado, starfield |
25
+ | `car` | ground | 140x62 | carro, automóvel, automovel, auto |
26
+ | `bicycle` | ground | 80x48 | bicicleta, bike |
27
+ | `dog` | ground | 50x36 | cachorro, cão, cao, puppy |
28
+ | `cat` | ground | 36x32 | gato, gatinho, kitten |
29
+ | `streetlight` | ground | 40x170 | poste, lamppost, street_lamp |
30
+ | `bench` | ground | 110x60 | banco, park_bench |
31
+ | `window` | wall | 90x100 | janela |
32
+ | `frame` | wall | 60x46 | quadro, picture, painting |
33
+ | `clock` | wall | 34x34 | relógio, relogio |
34
+ | `board` | wall | 170x100 | quadro negro, lousa, whiteboard, chalkboard, chart |
35
+ | `shelf_wall` | wall | 90x34 | prateleira, wall_shelf |
36
+ | `bookshelf` | ground | 80x170 | estante, shelf, books |
37
+ | `desk` | ground | 130x46 | mesa de trabalho, escrivaninha, table_desk |
38
+ | `table` | ground | 80x46 | mesa, mesa redonda, cafe_table, dining_table |
39
+ | `counter` | ground | 220x62 | balcão, balcao, bar, kitchen_counter |
40
+ | `chair` | ground | 44x88 | cadeira, seat |
41
+ | `sofa` | ground | 170x72 | sofá, sofa, couch |
42
+ | `bed` | ground | 180x70 | cama, bed |
43
+ | `tv` | any | 90x58 | tv, televisão, televisao, television |
44
+ | `tv_stand` | ground | 120x40 | rack, móvel de tv, tv_cabinet |
45
+ | `floor_lamp` | ground | 40x150 | abajur de chão, luminária de chão, luminaria de chao, floor lamp |
46
+ | `rug` | floor | 180x14 | tapete, carpet |
47
+ | `pendant_lamp` | ceiling | 40x30 | luminária pendente, hanging_lamp |
48
+ | `laptop` | surface | 34x24 | notebook, computador, computer |
49
+ | `monitor` | surface | 50x46 | tela, screen, display |
50
+ | `lamp` | surface | 30x42 | luminária, luminaria, desk_lamp |
51
+ | `plant` | any | 36x46 | planta, vaso, plant_pot |
52
+ | `big_plant` | ground | 60x110 | planta grande, costela de adão, monstera |
53
+ | `cup` | surface | 16x22 | xícara, xicara, caneca, mug, coffee |
54
+ | `cake` | surface | 30x26 | bolo, dessert |
55
+ | `pizza` | surface | 40x8 | pizza |
56
+ | `fruit_bowl` | surface | 34x22 | frutas, fruteira, fruit |
57
+ | `burger` | surface | 22x18 | hambúrguer, hamburguer, sanduíche, lanche |
58
+ | `plate` | surface | 26x4 | prato, dish |
59
+ | `vase_flowers` | surface | 22x34 | vaso de flores, buquê, flower vase |
60
+ | `books` | surface | 26x16 | livros, pilha de livros, book_stack |
61
+ | `coffee_machine` | surface | 34x40 | máquina de café, espresso |
62
+ | `umbrella` | ground | 140x150 | guarda-sol, parasol, beach_umbrella |
63
+ | `boat` | water | 70x70 | barco, veleiro, sailboat |
64
+ | `suitcase` | any | 30x46 | mala, luggage, bagagem |
65
+ | `backpack` | any | 26x34 | mochila |
66
+ | `beach_towel` | floor | 90x10 | toalha, towel |
67
+ | `ball` | ground | 24x24 | bola, beach_ball |
68
+ | `sandcastle` | ground | 46x40 | castelo de areia, sand castle |
69
+ | `school` | ground | 170x150 | escola, colégio, colegio |
70
+ | `university` | ground | 190x150 | universidade, faculdade, campus, museu |
71
+ | `lab` | ground | 160x140 | laboratório, laboratorio, centro de pesquisa, research |
72
+ | `stage` | ground | 180x130 | palco, cerimônia, cerimonia, formatura, ceremony |
73
+ | `finish_flag` | ground | 50x90 | bandeira de chegada, chegada, finish, bandeira quadriculada |
74
+ | `pennant` | ground | 30x70 | bandeirinha, flag |
75
+ | `balloons` | ground | 40x100 | balões, baloes, festa, party |
76
+ | `diploma` | any | 26x12 | diploma, canudo, certificado |
77
+ | `trophy` | surface | 24x30 | troféu, trofeu, prêmio |
78
+ | `desk_slab` | ground | 120x46 | tampo, bancada, desk top, mesa planejada |
79
+ | `drawer_unit` | ground | 26x42 | gaveteiro, gavetas, drawers |
80
+ | `cabinet` | ground | 40x36 | armário, armario, gabinete, cabinet |
81
+ | `rolling_cart` | ground | 26x36 | gaveteiro com rodinhas, carrinho, rolling cabinet |
82
+ | `trash_can` | ground | 9x15 | lixeira, cesto de lixo, bin |
83
+ | `office_chair` | ground | 42x60 | cadeira de escritório, cadeira presidente, office chair, gamer chair |
84
+ | `laptop_open` | surface | 17x18 | notebook aberto, laptop de frente, laptop stand |
85
+ | `headphones` | surface | 10x9 | fone, headset, fone de ouvido |
86
+ | `cap` | surface | 10x6 | boné, bone, baseball cap |
87
+ | `photo_frame` | surface | 10x13 | porta-retrato, quadrinho, moldura, photo frame, pôster de mesa |
88
+ | `figurine` | surface | 4x6 | boneco, miniatura, action figure, toy |
89
+ | `tumbler` | surface | 5x11 | copo com canudo, copo térmico, tumbler |
90
+ | `paper_cup` | surface | 4.5x6 | copo de café, café para viagem, coffee to go |
91
+ | `plastic_bag` | surface | 11x9 | sacola, sacola plástica, bag |
92
+ | `cables` | surface | 14x4 | cabos, fios, carregador |
93
+ | `light_switch` | wall | 5x7 | interruptor, tomada, switch |
94
+ | `glass_shelf` | ground | 14x46 | prateleira de vidro, vidro, glass shelf |
95
+
96
+ ## Groups (7)
97
+
98
+ | Id | What it is | Parts |
99
+ | --- | --- | --- |
100
+ | `workspace` | mesa de trabalho com pessoa digitando, tela, luminária, caneca e planta | desk, chair, person, laptop, lamp, cup, big_plant |
101
+ | `reading_corner` | sofá com pessoa lendo, abajur de chão e prateleira | sofa, person, floor_lamp, shelf_wall |
102
+ | `dining` | mesa com duas pessoas sentadas conversando, comida e bebidas | table, chair, chair, person, person, pizza, cup |
103
+ | `conversation` | duas pessoas em pé conversando, olhando uma para a outra | person, person |
104
+ | `park_bench` | banco de praça com árvore, pessoa sentada e cachorro | bench, tree, person, dog |
105
+ | `celebration` | mesa com bolo, balões e duas pessoas comemorando | table, cake, balloons, person, person |
106
+ | `meeting` | mesa de reunião com quadro, uma pessoa apresentando e duas sentadas | board, desk, chair, chair, person, person, person, laptop |
107
+
108
+ ## Kits
109
+
110
+ - `flat`: vetor chapado com luz suave (padrão)
111
+ - `outline`: contorno de desenho animado: borda grossa na silhueta e traço fino por dentro
112
+ - `hatch`: gravura/HQ: contorno a nanquim, sombras em hachura em vez de gradiente, papel claro
113
+ - `riso`: risografia: poucas tintas vivas, granulado de impressão e registro levemente desalinhado
114
+ - `paper`: recorte de papel: cada peça com sombra própria e textura de fibra
115
+ - `sketch`: esboço: cores lavadas como aquarela e linhas de lápis nas bordas
116
+
117
+ ## Themes
118
+
119
+ `flat-autumn`, `flat-cool`, `night`, `warm-cafe`, `beach`
120
+
121
+ ## Poses and expressions
122
+
123
+ - `standing`: standing, waving, pointing, presenting, celebrating, holding, hands_on_hips, thinking, shrugging, walking, phone
124
+ - `seated`: sitting, typing, reading, drinking
125
+ - `expressions`: happy, neutral, surprised, sad, worried, angry, laughing, wink, thinking
@@ -0,0 +1,111 @@
1
+ # Scene language (generated, do not edit)
2
+
3
+ Generated by `pnpm skill:refs` from the Zod schema. Unknown fields are not errors: the compiler warns and suggests the closest name.
4
+
5
+ ## Top level
6
+
7
+ | Field | Type | Meaning |
8
+ | --- | --- | --- |
9
+ | `version` | 1 | |
10
+ | `canvas` | object | |
11
+ | `objects` | object | |
12
+ | `text` | object[] | |
13
+ | `assets` | object | Custom assets: svg (inline or a file) or image. |
14
+ | `path` | object | |
15
+ | `scatter` | any | |
16
+ | `zones` | object | |
17
+ | `walls` | object | |
18
+ | `floor` | object | |
19
+ | `boxes` | object | |
20
+ | `map` | object | |
21
+ | `route` | any[] | |
22
+
23
+ ## canvas
24
+
25
+ | Field | Type | Meaning |
26
+ | --- | --- | --- |
27
+ | `width` | integer | Frame width in px. Default 1200. |
28
+ | `height` | integer | Frame height in px. Default 630 (classic) or 900 (2.5d, map). |
29
+ | `mode` | classic \| 2.5d \| board \| map | classic (default), 2.5d, board or map. |
30
+ | `theme` | string | Palette name. See `scenec catalog themes`. |
31
+ | `kit` | string | Style kit name. See `scenec catalog kits`. |
32
+ | `colors` | object | Overrides theme colors, for example wall or floor. |
33
+ | `setting` | outdoor \| indoor \| beach \| city | Where the scene happens. Default outdoor. |
34
+ | `scale` | number | Camera zoom. Default 1. |
35
+ | `horizon` | number | Horizon line as a fraction of the height. |
36
+ | `base` | number | Baseline of the nearest ground objects as a fraction of the height. |
37
+ | `floor` | string | Indoor floor style, for example planks. |
38
+ | `vanish` | number | Vanishing point x for planks. |
39
+ | `haze` | boolean | false turns atmospheric perspective off. |
40
+ | `grain` | boolean | |
41
+ | `light` | false or object | false, or { from: left\|right\|front\|0..1, strength: 0..1 }. |
42
+ | `critique` | boolean | false turns the art director off. |
43
+ | `shot` | wide \| full \| medium \| close | Framing: wide (default), full, medium or close. |
44
+ | `focus` | string or string[] | Object or group ids the shot frames. |
45
+ | `frame` | number or left \| center \| right | Where the focus sits horizontally. |
46
+ | `headroom` | number | Space above the focus as a fraction of the height. |
47
+ | `camera` | any | |
48
+ | `depth` | number | |
49
+ | `far_y` | number | |
50
+ | `near_y` | number | |
51
+ | `horizon_z` | number | |
52
+
53
+ ## objects (each entry under `objects:`)
54
+
55
+ | Field | Type | Meaning |
56
+ | --- | --- | --- |
57
+ | `asset` | string | Asset name; defaults to the object id. See `scenec catalog assets`. |
58
+ | `group` | string | Ready-made group. See `scenec catalog groups`. |
59
+ | `parts` | object | Adjusts a group's parts; false removes one. |
60
+ | `at` | number or far-left \| left \| center-left \| center \| center-right \| right \| far-right \| top-far-left \| top-left \| top-center-left \| top-center \| top-center-right \| ... or [number, number] | Horizontal position: a slot name or 0..1. |
61
+ | `size` | number or tiny \| small \| medium \| large \| huge | |
62
+ | `depth` | far \| mid \| near | |
63
+ | `left_of` | string | |
64
+ | `right_of` | string | |
65
+ | `behind` | string | |
66
+ | `in_front_of` | string | |
67
+ | `on` | string | Sits on another object's surface or seat. |
68
+ | `under` | string | |
69
+ | `above` | string | |
70
+ | `holds` | string | |
71
+ | `gap` | number | |
72
+ | `offset` | number or [number, number] | |
73
+ | `align` | number,string | |
74
+ | `layer` | back \| front | |
75
+ | `altitude` | number | |
76
+ | `elevation` | number | |
77
+ | `lift` | number | |
78
+ | `hang` | number | |
79
+ | `facing` | left \| right | |
80
+ | `pose` | string | Person pose. See `scenec catalog poses`. |
81
+ | `expr` | string | Person expression. |
82
+ | `look` | string | Where a person looks: another object id, or left, right, up, down, camera. |
83
+ | `haze` | boolean | |
84
+ | `light` | boolean | |
85
+ | `kit` | boolean | |
86
+ | `critique` | boolean | |
87
+ | `allow_crop` | boolean | |
88
+
89
+ ## text (each item)
90
+
91
+ | Field | Type | Meaning |
92
+ | --- | --- | --- |
93
+ | `content` | string,number | The text. A newline breaks the line. |
94
+ | `at` | string | top-left, top-center, top-right, bottom-left, bottom-center or bottom-right. |
95
+ | `role` | title \| subtitle \| label \| body | |
96
+ | `size` | number | Font size as a fraction of the height. |
97
+ | `y` | number | |
98
+ | `x` | number | |
99
+ | `color` | string | |
100
+ | `box` | string | Background color behind the text. |
101
+ | `pad` | number | |
102
+ | `radius` | number | |
103
+ | `weight` | number | |
104
+
105
+ ## Vocabulary
106
+
107
+ - `slots`: far-left, left, center-left, center, center-right, right, far-right
108
+ - `sizes`: tiny, small, medium, large, huge
109
+ - `depths`: far, mid, near
110
+ - `settings`: outdoor, indoor, beach, city
111
+ - `shots`: wide, full, medium, close
@@ -0,0 +1,8 @@
1
+ Consultadas em outubro de 2026
2
+
3
+ - [Natural Earth](https://www.naturalearthdata.com/): contornos dos países da Europa (escala 1:50m) usados no modo mapa, extraídos uma vez para src/data/europe.json; domínio público.
4
+ - [Poppins](https://github.com/itfoundry/Poppins): fonte usada nos textos e no renderizador; licença OFL-1.1.
5
+ - [resvg-js](https://github.com/yisibl/resvg-js): renderização de SVG para PNG e medição de caixas; licença MPL-2.0 (dependência sem modificação).
6
+ - [Vercel Skills CLI](https://github.com/vercel-labs/skills): formato de pasta skills/ e instalação via npx skills add.
7
+ - [npm: trusted publishing](https://docs.npmjs.com/trusted-publishers): publicação por OIDC sem token, citada no ADR 0009.
8
+ - [harness-ledger](https://github.com/guilhermebkel/harness-ledger): modelos de harness (lint, regras locais, knip, jscpd, AGENTS.md, ADRs); licença MIT, do mesmo autor.