@riligar/agents-kit 1.15.0 → 1.16.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.
@@ -1,110 +0,0 @@
1
- ---
2
- name: riligar-tech-stack
3
- description: Especialista na Tech Stack da RiLiGar. Use para criar projetos React/Vite, componentes com Mantine, APIs Bun/Elysia, e garantir padrões de código e estrutura de projetos.
4
- ---
5
-
6
- # RiLiGar Tech Stack Expert
7
-
8
- Você é um especialista em desenvolvimento seguindo a stack técnica da RiLiGar. Sua missão é garantir que qualquer código gerado siga os padrões, ferramentas e estruturas definidos.
9
-
10
- ## 1. Filosofia de Desenvolvimento
11
-
12
- - **Simplicidade:** Código limpo, legível e fácil de manter.
13
- - **Modularidade:** Componentes reutilizáveis e bem isolados.
14
- - **Consistência:** Padrões uniformes em todos os projetos.
15
- - **Developer Experience:** Ferramentas que aceleram o desenvolvimento.
16
-
17
- ## 2. Stack Frontend
18
-
19
- ### Core
20
-
21
- - **React 19+** (Functional Components, Hooks)
22
- - **Vite 5+** (Build tool)
23
- - **JavaScript** (ES6+, sem TypeScript por padrão)
24
- - **Zustand 5+** (State Management)
25
- - **React Router 7+** (Routing)
26
- - **ky 1+** (HTTP client)
27
-
28
- ### UI & Estilização
29
-
30
- - **Mantine 8** (Component Library)
31
- - **Tabler Icons** (Iconografia)
32
- - **Sem CSS Modules, Custom CSS ou CSS In-line** (user apenas o Mantine)
33
-
34
- ### Estrutura de Projeto React
35
-
36
- ```
37
- src/
38
- ├── components/ # Componentes reutilizáveis
39
- ├── pages/ # Páginas/Views
40
- ├── hooks/ # Custom Hooks
41
- ├── services/ # API calls e lógica de negócio
42
- ├── store.js # Estado global (Zustand)
43
- ├── routes.jsx # Configuração de rotas
44
- └── index.js # Entry point
45
- ```
46
-
47
- ## 3. Stack Backend
48
-
49
- ### Core
50
-
51
- - **Bun** (Runtime)
52
- - **Elysia** (Framework HTTP)
53
- - **JavaScript** (ES6+, sem TypeScript por padrão)
54
- - **SQLite** (Database padrão, com bun-sqlite)
55
- - **Drizzle** (ORM)
56
-
57
- ### Estrutura de Projeto Backend
58
-
59
- ```
60
- src/
61
- ├── routes/ # Endpoints da API
62
- ├── services/ # Lógica de negócio
63
- ├── database/ # Configuração e migrations
64
- └── index.js # Entry point
65
- ```
66
-
67
- ## 4. Ferramentas de Desenvolvimento
68
-
69
- - **ESLint** (Linting)
70
- - **Prettier** (Formatação)
71
- - **Semantic Release** (Versionamento automático)
72
- - **GitHub Actions** (CI/CD)
73
-
74
- ```json
75
- {
76
- "printWidth": 300,
77
- "singleAttributePerLine": true,
78
- "tabWidth": 4,
79
- "useTabs": false,
80
- "semi": false,
81
- "singleQuote": true,
82
- "quoteProps": "as-needed",
83
- "trailingComma": "es5",
84
- "bracketSpacing": true,
85
- "bracketSameLine": false,
86
- "arrowParens": "avoid",
87
- "endOfLine": "lf"
88
- }
89
- ```
90
-
91
- ## 5. Convenções de Código
92
-
93
- - **Nomes de arquivos:** `kebab-case` para componentes, `camelCase` para utils
94
- - **Componentes:** PascalCase exportados como default
95
- - **Funções:** camelCase
96
- - **Constantes:** UPPER_SNAKE_CASE
97
-
98
- ## 6. Regras para Geração de Código
99
-
100
- 1. **SEMPRE** use Mantine para UI components
101
- 2. **SEMPRE** use Tabler Icons (`@tabler/icons-react`)
102
- 3. **EVITE** TypeScript, nunca use
103
- 4. **EVITE** Tailwind CSS, CSS Modules, CSS In-line, nunca use
104
- 5. **PREFIRA** funções simples sobre classes
105
- 6. **INCLUA** tratamento de erros adequado
106
- 7. **EVITE** funções complexas, prefira funções simples
107
-
108
- ## 7. Referências
109
-
110
- Para detalhes completos, consulte `references/tech-stack.md`.
@@ -1,131 +0,0 @@
1
- # RiLiGar Tech Stack - Referência Completa
2
-
3
- > Documentação técnica detalhada da stack de desenvolvimento RiLiGar.
4
-
5
- ## 1. Dependências Frontend
6
-
7
- ### Core
8
-
9
- | Pacote | Versão | Descrição |
10
- | ------------------ | ------ | ----------------------- |
11
- | `react` | ^19.x | Biblioteca UI |
12
- | `react-dom` | ^19.x | React DOM renderer |
13
- | `react-router-dom` | ^7.x | Roteamento |
14
- | `vite` | ^5.x | Build tool |
15
- | `zustand` | ^5.x | Gerenciamento de estado |
16
- | `ky` | ^1.x | HTTP client |
17
-
18
- ### UI Components
19
-
20
- | Pacote | Versão | Descrição |
21
- | ------------------------ | ------ | ---------------------------- |
22
- | `@mantine/core` | ^8.x | Componentes UI |
23
- | `@mantine/hooks` | ^8.x | Hooks utilitários |
24
- | `@mantine/form` | ^8.x | Gerenciamento de formulários |
25
- | `@mantine/notifications` | ^8.x | Sistema de notificações |
26
- | `@tabler/icons-react` | ^3.x | Iconografia |
27
-
28
- > **IMPORTANTE:** Use apenas Mantine para estilização. Sem CSS Modules, Custom CSS ou CSS In-line.
29
-
30
- ## 2. Dependências Backend
31
-
32
- | Pacote | Versão | Descrição |
33
- | ------------- | ------- | -------------- |
34
- | `bun` | latest | Runtime |
35
- | `elysia` | latest | Framework HTTP |
36
- | `bun:sqlite` | builtin | SQLite driver |
37
- | `drizzle-orm` | latest | ORM |
38
- | `bun:s3` | latest | S3/R2 Storage |
39
-
40
- > **IMPORTANTE:** Use apenas Elysia para backend. Sem Express, Koa ou outros frameworks.
41
-
42
- ## 3. Configuração Vite
43
-
44
- ```javascript
45
- import { defineConfig } from 'vite'
46
- import react from '@vitejs/plugin-react'
47
-
48
- export default defineConfig({
49
- plugins: [react()],
50
- build: {
51
- lib: {
52
- entry: 'src/index.js',
53
- formats: ['es', 'cjs'],
54
- },
55
- rollupOptions: {
56
- external: ['react', 'react-dom', '@mantine/core'],
57
- },
58
- },
59
- })
60
- ```
61
-
62
- ## 4. Configuração Prettier
63
-
64
- ```json
65
- {
66
- "printWidth": 300,
67
- "singleAttributePerLine": true,
68
- "tabWidth": 4,
69
- "useTabs": false,
70
- "semi": false,
71
- "singleQuote": true,
72
- "quoteProps": "as-needed",
73
- "trailingComma": "es5",
74
- "bracketSpacing": true,
75
- "bracketSameLine": false,
76
- "arrowParens": "avoid",
77
- "endOfLine": "lf"
78
- }
79
- ```
80
-
81
- ## 5. Semantic Release
82
-
83
- ```json
84
- {
85
- "branches": ["main", "prod"],
86
- "plugins": ["@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", "@semantic-release/npm", "@semantic-release/github"]
87
- }
88
- ```
89
-
90
- ## 6. GitHub Actions - Release
91
-
92
- ```yaml
93
- name: Release
94
- on:
95
- push:
96
- branches: [main, prod]
97
-
98
- jobs:
99
- release:
100
- runs-on: ubuntu-latest
101
- steps:
102
- - uses: actions/checkout@v4
103
- - uses: oven-sh/setup-bun@v2
104
- - run: bun install
105
- - run: bun run build
106
- - run: bunx semantic-release
107
- env:
108
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
110
- ```
111
-
112
- ## 7. Estrutura de Componentes
113
-
114
- ```javascript
115
- // Exemplo de componente RiLiGar
116
- import { Button } from '@mantine/core'
117
- import { IconCheck } from '@tabler/icons-react'
118
-
119
- export function ActionButton({ label, onClick }) {
120
- return (
121
- <Button
122
- leftSection={<IconCheck size={16} />}
123
- onClick={onClick}
124
- variant="filled"
125
- color="dark"
126
- >
127
- {label}
128
- </Button>
129
- )
130
- }
131
- ```
File without changes