cleudocode-core 1.0.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/.cleudocode-core +497 -0
- package/AGENTS.md +175 -0
- package/LICENSE +23 -0
- package/README.md +568 -0
- package/bin/cleudocode.js +581 -0
- package/package.json +75 -0
- package/src/index.js +24 -0
- package/templates/.cleudocode-core +213 -0
- package/templates/.cleudocode-core-backend +77 -0
- package/templates/.cleudocode-core-cli +68 -0
- package/templates/.cleudocode-core-frontend +70 -0
- package/templates/eslintrc.json +21 -0
- package/templates/gitignore +54 -0
- package/templates/prettierrc +13 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
# Cleudocode Core Configuration
|
|
2
|
+
# Template: fullstack
|
|
3
|
+
# Gerado automaticamente pelo Cleudocode Core CLI
|
|
4
|
+
|
|
5
|
+
version: "1.0.0"
|
|
6
|
+
name: "cleudocode-core"
|
|
7
|
+
description: "Cleudocode Hub - AI Orchestration Framework"
|
|
8
|
+
|
|
9
|
+
# =============================================================================
|
|
10
|
+
# CONFIGURAÇÕES GERAIS
|
|
11
|
+
# =============================================================================
|
|
12
|
+
settings:
|
|
13
|
+
language: "pt-BR"
|
|
14
|
+
default_agent: "general-purpose"
|
|
15
|
+
auto_save: true
|
|
16
|
+
verbose: false
|
|
17
|
+
log_mode: "console"
|
|
18
|
+
environment: "development"
|
|
19
|
+
|
|
20
|
+
# =============================================================================
|
|
21
|
+
# CHAVES DE API (use variáveis de ambiente)
|
|
22
|
+
# =============================================================================
|
|
23
|
+
api_keys:
|
|
24
|
+
openai: "${OPENAI_API_KEY}"
|
|
25
|
+
gemini: "${GEMINI_API_KEY}"
|
|
26
|
+
groq: "${GROQ_API_KEY}"
|
|
27
|
+
anthropic: "${ANTHROPIC_API_KEY}"
|
|
28
|
+
huggingface:
|
|
29
|
+
auth_token: "${HF_AUTH_TOKEN}"
|
|
30
|
+
|
|
31
|
+
# =============================================================================
|
|
32
|
+
# CONFIGURAÇÃO DE LLMs
|
|
33
|
+
# =============================================================================
|
|
34
|
+
llms:
|
|
35
|
+
models:
|
|
36
|
+
# Ollama Models (padrão - local)
|
|
37
|
+
- name: "qwen3:4b"
|
|
38
|
+
backend: "ollama"
|
|
39
|
+
hostname: "http://localhost:11434"
|
|
40
|
+
enabled: true
|
|
41
|
+
- name: "qwen3:1.7b"
|
|
42
|
+
backend: "ollama"
|
|
43
|
+
hostname: "http://localhost:11434"
|
|
44
|
+
enabled: true
|
|
45
|
+
|
|
46
|
+
# OpenAI Models
|
|
47
|
+
- name: "gpt-4o-mini"
|
|
48
|
+
backend: "openai"
|
|
49
|
+
enabled: false
|
|
50
|
+
- name: "gpt-4o"
|
|
51
|
+
backend: "openai"
|
|
52
|
+
enabled: false
|
|
53
|
+
|
|
54
|
+
# Anthropic Models
|
|
55
|
+
- name: "claude-3-5-sonnet"
|
|
56
|
+
backend: "anthropic"
|
|
57
|
+
enabled: false
|
|
58
|
+
|
|
59
|
+
# Google Models
|
|
60
|
+
- name: "gemini-2.0-flash"
|
|
61
|
+
backend: "gemini"
|
|
62
|
+
enabled: false
|
|
63
|
+
|
|
64
|
+
router:
|
|
65
|
+
strategy: "sequential"
|
|
66
|
+
log_mode: "console"
|
|
67
|
+
use_context_manager: false
|
|
68
|
+
|
|
69
|
+
# =============================================================================
|
|
70
|
+
# CONFIGURAÇÃO DE AGENTES
|
|
71
|
+
# =============================================================================
|
|
72
|
+
agents:
|
|
73
|
+
enabled:
|
|
74
|
+
- "general-purpose"
|
|
75
|
+
- "code-review"
|
|
76
|
+
- "documentation"
|
|
77
|
+
- "testing"
|
|
78
|
+
- "architect"
|
|
79
|
+
- "dev"
|
|
80
|
+
- "devops"
|
|
81
|
+
- "qa"
|
|
82
|
+
|
|
83
|
+
default: "general-purpose"
|
|
84
|
+
max_workers: 8
|
|
85
|
+
timeout: 300
|
|
86
|
+
|
|
87
|
+
shortcuts:
|
|
88
|
+
"@architect": ".agents/agents/architect.md"
|
|
89
|
+
"@dev": ".agents/agents/dev.md"
|
|
90
|
+
"@devops": ".agents/agents/devops.md"
|
|
91
|
+
"@qa": ".agents/agents/qa.md"
|
|
92
|
+
"@analyst": ".agents/agents/analyst.md"
|
|
93
|
+
|
|
94
|
+
# =============================================================================
|
|
95
|
+
# REGRAS DE CÓDIGO
|
|
96
|
+
# =============================================================================
|
|
97
|
+
rules:
|
|
98
|
+
javascript:
|
|
99
|
+
indentation: "space"
|
|
100
|
+
indent_size: 2
|
|
101
|
+
quote_style: "single"
|
|
102
|
+
semicolons: false
|
|
103
|
+
trailing_comma: "es5"
|
|
104
|
+
line_length: 100
|
|
105
|
+
|
|
106
|
+
python:
|
|
107
|
+
indentation: "space"
|
|
108
|
+
indent_size: 4
|
|
109
|
+
quote_style: "single"
|
|
110
|
+
line_length: 100
|
|
111
|
+
type_hints: true
|
|
112
|
+
|
|
113
|
+
naming:
|
|
114
|
+
files: "kebab-case"
|
|
115
|
+
functions: "camelCase"
|
|
116
|
+
classes: "PascalCase"
|
|
117
|
+
constants: "UPPER_SNAKE_CASE"
|
|
118
|
+
|
|
119
|
+
commits:
|
|
120
|
+
style: "conventional"
|
|
121
|
+
signoff: false
|
|
122
|
+
max_subject_length: 72
|
|
123
|
+
|
|
124
|
+
# =============================================================================
|
|
125
|
+
# INTEGRAÇÕES
|
|
126
|
+
# =============================================================================
|
|
127
|
+
integrations:
|
|
128
|
+
git:
|
|
129
|
+
enabled: true
|
|
130
|
+
auto_stage: false
|
|
131
|
+
auto_commit: false
|
|
132
|
+
|
|
133
|
+
github:
|
|
134
|
+
enabled: false
|
|
135
|
+
auto_pr: false
|
|
136
|
+
|
|
137
|
+
# =============================================================================
|
|
138
|
+
# CAMINHOS
|
|
139
|
+
# =============================================================================
|
|
140
|
+
paths:
|
|
141
|
+
rules: ".agents/rules"
|
|
142
|
+
agents: ".agents/agents"
|
|
143
|
+
templates: ".agents/templates"
|
|
144
|
+
tasks: ".agents/tasks"
|
|
145
|
+
outputs: ".agents/outputs"
|
|
146
|
+
logs: ".agents/logs"
|
|
147
|
+
storage: ".agents/storage"
|
|
148
|
+
|
|
149
|
+
# =============================================================================
|
|
150
|
+
# RECURSOS
|
|
151
|
+
# =============================================================================
|
|
152
|
+
features:
|
|
153
|
+
task_delegation: true
|
|
154
|
+
code_generation: true
|
|
155
|
+
auto_documentation: true
|
|
156
|
+
testing: true
|
|
157
|
+
linting: true
|
|
158
|
+
context_manager: false
|
|
159
|
+
memory_persistence: true
|
|
160
|
+
|
|
161
|
+
# =============================================================================
|
|
162
|
+
# MEMÓRIA
|
|
163
|
+
# =============================================================================
|
|
164
|
+
memory:
|
|
165
|
+
type: "vector"
|
|
166
|
+
storage: "chroma"
|
|
167
|
+
collection_name: "cleudocode_memory"
|
|
168
|
+
context:
|
|
169
|
+
max_length: 4096
|
|
170
|
+
truncation_strategy: "oldest_first"
|
|
171
|
+
compression:
|
|
172
|
+
enabled: true
|
|
173
|
+
threshold: 0.8
|
|
174
|
+
|
|
175
|
+
# =============================================================================
|
|
176
|
+
# ARMAZENAMENTO
|
|
177
|
+
# =============================================================================
|
|
178
|
+
storage:
|
|
179
|
+
type: "local"
|
|
180
|
+
root_dir: ".agents/storage"
|
|
181
|
+
use_vector_db: true
|
|
182
|
+
vector_db_backend: "chroma"
|
|
183
|
+
|
|
184
|
+
# =============================================================================
|
|
185
|
+
# LOGGING
|
|
186
|
+
# =============================================================================
|
|
187
|
+
logging:
|
|
188
|
+
level: "INFO"
|
|
189
|
+
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
|
190
|
+
log_mode: "console"
|
|
191
|
+
|
|
192
|
+
# =============================================================================
|
|
193
|
+
# EXCLUSÕES
|
|
194
|
+
# =============================================================================
|
|
195
|
+
excludes:
|
|
196
|
+
- "node_modules"
|
|
197
|
+
- "dist"
|
|
198
|
+
- "build"
|
|
199
|
+
- ".git"
|
|
200
|
+
- "*.min.js"
|
|
201
|
+
- "*.min.css"
|
|
202
|
+
- "coverage"
|
|
203
|
+
- ".cache"
|
|
204
|
+
- "__pycache__"
|
|
205
|
+
- "*.pyc"
|
|
206
|
+
|
|
207
|
+
# =============================================================================
|
|
208
|
+
# HOOKS
|
|
209
|
+
# =============================================================================
|
|
210
|
+
hooks:
|
|
211
|
+
pre_task: null
|
|
212
|
+
post_task: null
|
|
213
|
+
on_error: "log"
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Cleudocode Core Configuration
|
|
2
|
+
# Template: backend
|
|
3
|
+
# Focado em desenvolvimento backend (Node.js, Python, Go, etc.)
|
|
4
|
+
|
|
5
|
+
version: "1.0.0"
|
|
6
|
+
name: "cleudocode-core-backend"
|
|
7
|
+
|
|
8
|
+
settings:
|
|
9
|
+
language: "pt-BR"
|
|
10
|
+
default_agent: "backend-dev"
|
|
11
|
+
verbose: false
|
|
12
|
+
log_mode: "console"
|
|
13
|
+
|
|
14
|
+
llms:
|
|
15
|
+
models:
|
|
16
|
+
- name: "qwen3:4b"
|
|
17
|
+
backend: "ollama"
|
|
18
|
+
hostname: "http://localhost:11434"
|
|
19
|
+
enabled: true
|
|
20
|
+
- name: "gpt-4o"
|
|
21
|
+
backend: "openai"
|
|
22
|
+
enabled: false
|
|
23
|
+
|
|
24
|
+
agents:
|
|
25
|
+
enabled:
|
|
26
|
+
- "backend-dev"
|
|
27
|
+
- "api-design"
|
|
28
|
+
- "database"
|
|
29
|
+
- "security"
|
|
30
|
+
- "testing"
|
|
31
|
+
default: "backend-dev"
|
|
32
|
+
max_workers: 8
|
|
33
|
+
|
|
34
|
+
rules:
|
|
35
|
+
javascript:
|
|
36
|
+
indentation: "space"
|
|
37
|
+
indent_size: 2
|
|
38
|
+
quote_style: "single"
|
|
39
|
+
semicolons: false
|
|
40
|
+
|
|
41
|
+
python:
|
|
42
|
+
indentation: "space"
|
|
43
|
+
indent_size: 4
|
|
44
|
+
type_hints: true
|
|
45
|
+
|
|
46
|
+
naming:
|
|
47
|
+
files: "kebab-case"
|
|
48
|
+
functions: "camelCase"
|
|
49
|
+
classes: "PascalCase"
|
|
50
|
+
|
|
51
|
+
commits:
|
|
52
|
+
style: "conventional"
|
|
53
|
+
|
|
54
|
+
paths:
|
|
55
|
+
rules: ".agents/rules"
|
|
56
|
+
agents: ".agents/agents"
|
|
57
|
+
templates: ".agents/templates"
|
|
58
|
+
|
|
59
|
+
features:
|
|
60
|
+
code_generation: true
|
|
61
|
+
auto_documentation: true
|
|
62
|
+
testing: true
|
|
63
|
+
security_scan: true
|
|
64
|
+
api_validation: true
|
|
65
|
+
|
|
66
|
+
memory:
|
|
67
|
+
type: "vector"
|
|
68
|
+
storage: "chroma"
|
|
69
|
+
|
|
70
|
+
excludes:
|
|
71
|
+
- "node_modules"
|
|
72
|
+
- "venv"
|
|
73
|
+
- ".venv"
|
|
74
|
+
- "__pycache__"
|
|
75
|
+
- "*.pyc"
|
|
76
|
+
- "dist"
|
|
77
|
+
- "build"
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Cleudocode Core Configuration
|
|
2
|
+
# Template: cli
|
|
3
|
+
# Focado em desenvolvimento de ferramentas CLI
|
|
4
|
+
|
|
5
|
+
version: "1.0.0"
|
|
6
|
+
name: "cleudocode-core-cli"
|
|
7
|
+
|
|
8
|
+
settings:
|
|
9
|
+
language: "pt-BR"
|
|
10
|
+
default_agent: "cli-dev"
|
|
11
|
+
verbose: false
|
|
12
|
+
log_mode: "console"
|
|
13
|
+
|
|
14
|
+
llms:
|
|
15
|
+
models:
|
|
16
|
+
- name: "qwen3:4b"
|
|
17
|
+
backend: "ollama"
|
|
18
|
+
hostname: "http://localhost:11434"
|
|
19
|
+
enabled: true
|
|
20
|
+
|
|
21
|
+
agents:
|
|
22
|
+
enabled:
|
|
23
|
+
- "cli-dev"
|
|
24
|
+
- "shell-scripting"
|
|
25
|
+
- "testing"
|
|
26
|
+
default: "cli-dev"
|
|
27
|
+
max_workers: 4
|
|
28
|
+
|
|
29
|
+
rules:
|
|
30
|
+
javascript:
|
|
31
|
+
indentation: "space"
|
|
32
|
+
indent_size: 2
|
|
33
|
+
quote_style: "single"
|
|
34
|
+
semicolons: false
|
|
35
|
+
|
|
36
|
+
python:
|
|
37
|
+
indentation: "space"
|
|
38
|
+
indent_size: 4
|
|
39
|
+
type_hints: true
|
|
40
|
+
|
|
41
|
+
naming:
|
|
42
|
+
files: "kebab-case"
|
|
43
|
+
functions: "camelCase"
|
|
44
|
+
|
|
45
|
+
commits:
|
|
46
|
+
style: "conventional"
|
|
47
|
+
|
|
48
|
+
paths:
|
|
49
|
+
rules: ".agents/rules"
|
|
50
|
+
agents: ".agents/agents"
|
|
51
|
+
templates: ".agents/templates"
|
|
52
|
+
|
|
53
|
+
features:
|
|
54
|
+
code_generation: true
|
|
55
|
+
auto_documentation: true
|
|
56
|
+
testing: true
|
|
57
|
+
shell_integration: true
|
|
58
|
+
|
|
59
|
+
memory:
|
|
60
|
+
type: "vector"
|
|
61
|
+
storage: "chroma"
|
|
62
|
+
|
|
63
|
+
excludes:
|
|
64
|
+
- "node_modules"
|
|
65
|
+
- "venv"
|
|
66
|
+
- ".venv"
|
|
67
|
+
- "dist"
|
|
68
|
+
- "build"
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Cleudocode Core Configuration
|
|
2
|
+
# Template: frontend
|
|
3
|
+
# Focado em desenvolvimento frontend (React, Vue, Angular, etc.)
|
|
4
|
+
|
|
5
|
+
version: "1.0.0"
|
|
6
|
+
name: "cleudocode-core-frontend"
|
|
7
|
+
|
|
8
|
+
settings:
|
|
9
|
+
language: "pt-BR"
|
|
10
|
+
default_agent: "frontend-dev"
|
|
11
|
+
verbose: false
|
|
12
|
+
log_mode: "console"
|
|
13
|
+
|
|
14
|
+
llms:
|
|
15
|
+
models:
|
|
16
|
+
- name: "qwen3:4b"
|
|
17
|
+
backend: "ollama"
|
|
18
|
+
hostname: "http://localhost:11434"
|
|
19
|
+
enabled: true
|
|
20
|
+
- name: "gpt-4o-mini"
|
|
21
|
+
backend: "openai"
|
|
22
|
+
enabled: false
|
|
23
|
+
|
|
24
|
+
agents:
|
|
25
|
+
enabled:
|
|
26
|
+
- "frontend-dev"
|
|
27
|
+
- "ui-review"
|
|
28
|
+
- "accessibility"
|
|
29
|
+
- "testing"
|
|
30
|
+
default: "frontend-dev"
|
|
31
|
+
max_workers: 4
|
|
32
|
+
|
|
33
|
+
rules:
|
|
34
|
+
javascript:
|
|
35
|
+
indentation: "space"
|
|
36
|
+
indent_size: 2
|
|
37
|
+
quote_style: "single"
|
|
38
|
+
semicolons: false
|
|
39
|
+
jsx: true
|
|
40
|
+
|
|
41
|
+
naming:
|
|
42
|
+
files: "kebab-case"
|
|
43
|
+
components: "PascalCase"
|
|
44
|
+
functions: "camelCase"
|
|
45
|
+
|
|
46
|
+
commits:
|
|
47
|
+
style: "conventional"
|
|
48
|
+
|
|
49
|
+
paths:
|
|
50
|
+
rules: ".agents/rules"
|
|
51
|
+
agents: ".agents/agents"
|
|
52
|
+
templates: ".agents/templates/components"
|
|
53
|
+
|
|
54
|
+
features:
|
|
55
|
+
code_generation: true
|
|
56
|
+
auto_documentation: true
|
|
57
|
+
testing: true
|
|
58
|
+
accessibility_check: true
|
|
59
|
+
|
|
60
|
+
memory:
|
|
61
|
+
type: "vector"
|
|
62
|
+
storage: "chroma"
|
|
63
|
+
|
|
64
|
+
excludes:
|
|
65
|
+
- "node_modules"
|
|
66
|
+
- "dist"
|
|
67
|
+
- "build"
|
|
68
|
+
- ".next"
|
|
69
|
+
- "out"
|
|
70
|
+
- ".cache"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Cleudocode Core - ESLint Configuration
|
|
2
|
+
|
|
3
|
+
{
|
|
4
|
+
"root": true,
|
|
5
|
+
"env": {
|
|
6
|
+
"node": true,
|
|
7
|
+
"es2022": true
|
|
8
|
+
},
|
|
9
|
+
"parserOptions": {
|
|
10
|
+
"ecmaVersion": 2022,
|
|
11
|
+
"sourceType": "module"
|
|
12
|
+
},
|
|
13
|
+
"extends": ["eslint:recommended"],
|
|
14
|
+
"rules": {
|
|
15
|
+
"indent": ["error", 2],
|
|
16
|
+
"quotes": ["error", "single"],
|
|
17
|
+
"semi": ["error", "never"],
|
|
18
|
+
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
19
|
+
"no-console": "off"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Cleudocode Core - .gitignore Template
|
|
2
|
+
|
|
3
|
+
# Environment variables
|
|
4
|
+
.env
|
|
5
|
+
.env.local
|
|
6
|
+
.env.*
|
|
7
|
+
!.env.example
|
|
8
|
+
|
|
9
|
+
# Dependencies
|
|
10
|
+
node_modules/
|
|
11
|
+
vendor/
|
|
12
|
+
.venv/
|
|
13
|
+
venv/
|
|
14
|
+
__pycache__/
|
|
15
|
+
*.pyc
|
|
16
|
+
*.pyo
|
|
17
|
+
|
|
18
|
+
# Build output
|
|
19
|
+
dist/
|
|
20
|
+
build/
|
|
21
|
+
out/
|
|
22
|
+
*.min.js
|
|
23
|
+
*.min.css
|
|
24
|
+
|
|
25
|
+
# IDE
|
|
26
|
+
.vscode/
|
|
27
|
+
.idea/
|
|
28
|
+
*.swp
|
|
29
|
+
*.swo
|
|
30
|
+
.DS_Store
|
|
31
|
+
Thumbs.db
|
|
32
|
+
|
|
33
|
+
# Logs
|
|
34
|
+
logs/
|
|
35
|
+
*.log
|
|
36
|
+
npm-debug.log*
|
|
37
|
+
yarn-debug.log*
|
|
38
|
+
yarn-error.log*
|
|
39
|
+
|
|
40
|
+
# Testing
|
|
41
|
+
coverage/
|
|
42
|
+
.nyc_output/
|
|
43
|
+
test-results/
|
|
44
|
+
|
|
45
|
+
# Cache
|
|
46
|
+
.cache/
|
|
47
|
+
.eslintcache
|
|
48
|
+
.ruff_cache/
|
|
49
|
+
.mypy_cache/
|
|
50
|
+
|
|
51
|
+
# Cleudocode specific
|
|
52
|
+
.agents/outputs/
|
|
53
|
+
.agents/logs/
|
|
54
|
+
.agents/storage/
|