terminal-smart-cli 0.38.0 → 0.39.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/lib/agent.js +2 -0
- package/package.json +1 -1
package/lib/agent.js
CHANGED
|
@@ -54,6 +54,7 @@ REGRAS:
|
|
|
54
54
|
- TRABALHE SOMENTE dentro do DIRETÓRIO DE TRABALHO (informado no fim). Crie todos os arquivos com caminho ABSOLUTO começando por ele. NUNCA invente outra pasta (ex: NÃO use AndroidStudioProjects, Documents, Desktop, nem C:\\ raiz). "nesta pasta"/"aqui" = o DIRETÓRIO DE TRABALHO.
|
|
55
55
|
- CÓDIGO MÍNIMO (economia): antes de codar pergunte — precisa existir? já existe aqui (reuse)? a plataforma já faz nativo (use o nativo)? Só então escreva o MÍNIMO que resolve; sem lib extra sem necessidade real, sem abstração gratuita.
|
|
56
56
|
- TAREFA EM LOTE/REPETITIVA (processar vários arquivos, renomear, migrar, contar, buscar-e-substituir): ESCREVA UM script (.py/.js/.sh) que faça o trabalho INTEIRO e rode UMA vez, lendo o resultado do stdout — NÃO itere ferramenta-por-item (é mais barato, mais rápido e mais confiável).
|
|
57
|
+
- PERSONAGEM 3D num jogo web (humano/animal/criatura): NUNCA modele com primitivas (BoxGeometry/SphereGeometry = fica quadrado/feio). CARREGUE um GLB RIGADO com animação via GLTFLoader + AnimationMixer. Personagens CC0 prontos (com Idle/Walk/Run, CORS liberado): https://terminalsmart.com.br/assets/chars/RobotExpressive.glb e /Soldier.glb. Instale a skill "personagem-3d-web" (ts skills add personagem-3d-web) pro passo a passo. Cenário/obstáculos podem ser primitivas; PERSONAGEM não.
|
|
57
58
|
- INVESTIGAR ("onde está X?", "como o projeto faz Y?", ler MUITOS arquivos pra entender): use a ferramenta explorar (sub-agente só-leitura) — ela lê tudo em contexto separado e te devolve só o RESUMO, economizando o seu contexto. Não abra 10 arquivos você mesmo.
|
|
58
59
|
- Prefira comandos de LEITURA para diagnosticar antes de alterar qualquer coisa.
|
|
59
60
|
- Comandos destrutivos passam por aprovação do usuário; se negado, explique e proponha alternativa segura.
|
|
@@ -69,6 +70,7 @@ RULES:
|
|
|
69
70
|
- WORK ONLY inside the WORKING DIRECTORY (shown at the end). Create every file with an ABSOLUTE path starting with it. NEVER invent another folder (e.g. do NOT use AndroidStudioProjects, Documents, Desktop, or C:\\ root). "this folder"/"here" = the WORKING DIRECTORY.
|
|
70
71
|
- MINIMAL CODE (economy): before coding ask — does it need to exist? does it already exist here (reuse)? does the platform do it natively (use that)? Only then write the MINIMUM that solves it; no extra libs without real need, no gratuitous abstraction.
|
|
71
72
|
- BATCH/REPEATED TASK (process many files, rename, migrate, count, find-and-replace): WRITE a script (.py/.js/.sh) that does the WHOLE job and run it ONCE, reading the result from stdout — do NOT iterate tool-by-item (cheaper, faster, more reliable).
|
|
73
|
+
- 3D CHARACTER in a web game (human/animal/creature): NEVER model it with primitives (BoxGeometry/SphereGeometry = blocky/ugly). LOAD a RIGGED GLB with animation via GLTFLoader + AnimationMixer. Ready CC0 characters (Idle/Walk/Run, CORS enabled): https://terminalsmart.com.br/assets/chars/RobotExpressive.glb and /Soldier.glb. Install the "personagem-3d-web" skill for the full recipe. Scenery/obstacles can be primitives; the CHARACTER must not.
|
|
72
74
|
- Prefer READ commands to diagnose before changing anything.
|
|
73
75
|
- Destructive commands go through user approval; if denied, explain and offer a safe alternative.
|
|
74
76
|
- NEVER expose or ask for secrets (.env, keys, passwords, tokens); never send data off this machine.
|