@asm-agent/coding-agent 0.9.3 → 0.9.4
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/CHANGELOG.md +4 -0
- package/bundled-extensions/00-COMECE-AQUI.txt +233 -0
- package/bundled-extensions/00-INDEX.md +267 -0
- package/bundled-extensions/OLLAMA-TOOL-FORCING-IMPLEMENTATION.md +323 -0
- package/bundled-extensions/OLLAMA-TOOL-FORCING-QUICK-START.txt +113 -0
- package/bundled-extensions/OLLAMA-TOOL-FORCING-TESTS.md +217 -0
- package/bundled-extensions/OLLAMA-TOOL-FORCING.md +155 -0
- package/bundled-extensions/README.txt +178 -0
- package/bundled-extensions/ollama-tool-forcing.ts +90 -0
- package/dist/asm-agent-runtime/run_test.py +19 -0
- package/dist/asm-agent-runtime/src/rlm/__pycache__/__init__.cpython-312.pyc +0 -0
- package/dist/asm-agent-runtime/src/rlm/__pycache__/bash.cpython-312.pyc +0 -0
- package/dist/asm-agent-runtime/src/rlm/__pycache__/repl.cpython-312.pyc +0 -0
- package/dist/asm-agent-runtime/test/__pycache__/test_bash.cpython-312.pyc +0 -0
- package/dist/asm-agent-runtime/test/test_bash.py +5 -3
- package/dist/bundle/{bundled-modules-ZKJOKVMT.js → bundled-modules-ABB56VC3.js} +2 -2
- package/dist/bundle/{chunk-IP6ZYRWR.js → chunk-GUPU2EEK.js} +13 -58
- package/dist/bundle/{chunk-YWSYGTH7.js → chunk-NESKY6T7.js} +2 -2
- package/dist/bundle/{cli-main-YZ2VGIP6.js → cli-main-ZYCGVTZE.js} +2 -2
- package/dist/bundle/cli.js +1 -1
- package/dist/bundle/{main-JTKNY7OB.js → main-J36EPND6.js} +2 -2
- package/dist/core/auth-storage.d.ts +0 -1
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +0 -49
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/modes/interactive/auth-flows.d.ts.map +1 -1
- package/dist/modes/interactive/auth-flows.js +1 -1
- package/dist/modes/interactive/auth-flows.js.map +1 -1
- package/dist/postinstall.d.ts.map +1 -1
- package/dist/postinstall.js +40 -3
- package/dist/postinstall.js.map +1 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.4] - 2026-09-06
|
|
4
|
+
|
|
5
|
+
- Added bundled Ollama Tool-Forcing extension that is automatically installed to `~/.asm-agent/extensions/` during setup. This extension helps local open-weight models (Qwen, Llama, etc.) maintain the autonomous loop by forcing tool calls before stopping.
|
|
6
|
+
|
|
3
7
|
## [0.9.2] - 2026-09-04
|
|
4
8
|
|
|
5
9
|
- Fixed the installer hiding download progress for the large ASM-CM package; exposed bytes, speed and remaining time, and added connection and stalled-transfer timeouts.
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
|
|
2
|
+
╔════════════════════════════════════════════════════════════════════════════════╗
|
|
3
|
+
║ ✅ COMECE A USAR AGORA! ║
|
|
4
|
+
║ Guia de Primeiros Passos (2 minutos) ║
|
|
5
|
+
╚════════════════════════════════════════════════════════════════════════════════╝
|
|
6
|
+
|
|
7
|
+
CENÁRIO 1: ASM Agent não está rodando
|
|
8
|
+
─────────────────────────────────────
|
|
9
|
+
|
|
10
|
+
1. Abra terminal
|
|
11
|
+
2. Inicie ASM Agent normalmente:
|
|
12
|
+
$ ./asm-agent.sh
|
|
13
|
+
|
|
14
|
+
3. A extensão será carregada automaticamente (já está em ~/.asm-agent/extensions/)
|
|
15
|
+
|
|
16
|
+
4. Teste com um comando simples:
|
|
17
|
+
> Crie um arquivo test.txt com "Olá!" e verifique com bash.
|
|
18
|
+
|
|
19
|
+
5. Observe o modelo chamar ferramentas continuamente ✅
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
CENÁRIO 2: ASM Agent já está rodando
|
|
23
|
+
─────────────────────────────────────
|
|
24
|
+
|
|
25
|
+
1. No prompt do ASM Agent, digite:
|
|
26
|
+
/reload
|
|
27
|
+
|
|
28
|
+
2. Aguarde a recarga de extensões (deve acontecer em segundos)
|
|
29
|
+
|
|
30
|
+
3. Verifique se está ativo:
|
|
31
|
+
/ollama-tools-info
|
|
32
|
+
|
|
33
|
+
Deve mostrar: ✅ ATIVADO
|
|
34
|
+
|
|
35
|
+
4. Teste com uma tarefa:
|
|
36
|
+
> Crie um arquivo test.txt com "Olá!" e verifique com bash.
|
|
37
|
+
|
|
38
|
+
5. A extensão já está forçando ferramentas! ✅
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
CENÁRIO 3: Quer testar múltiplas vezes
|
|
42
|
+
──────────────────────────────────────
|
|
43
|
+
|
|
44
|
+
Use os 5 exemplos em OLLAMA-TOOL-FORCING-TESTS.md:
|
|
45
|
+
|
|
46
|
+
1. Tarefa Simples (criar arquivo + verificar)
|
|
47
|
+
2. Script Python (escrever + executar)
|
|
48
|
+
3. Navegação de Projeto (listar + analisar)
|
|
49
|
+
4. Édição Múltipla (criar + editar 2x + verificar)
|
|
50
|
+
5. Loop Autônomo Completo (cálculo + condicional + arquivo + leitura)
|
|
51
|
+
|
|
52
|
+
Copie/cole cada um e observe o padrão de chamadas de ferramentas.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
COMO FUNCIONA (Visual)
|
|
56
|
+
──────────────────────
|
|
57
|
+
|
|
58
|
+
Fluxo com a extensão ativada:
|
|
59
|
+
|
|
60
|
+
┌─────────────┐
|
|
61
|
+
│ Seu prompt │
|
|
62
|
+
└──────┬──────┘
|
|
63
|
+
│
|
|
64
|
+
▼
|
|
65
|
+
┌────────────────────────┐
|
|
66
|
+
│ ASM Agent prepara │
|
|
67
|
+
│ system prompt │
|
|
68
|
+
└──────┬─────────────────┘
|
|
69
|
+
│
|
|
70
|
+
▼
|
|
71
|
+
┌────────────────────────────────────────────────┐
|
|
72
|
+
│ EXTENSÃO intercepta (before_agent_start) │
|
|
73
|
+
│ ✅ Injeta regra de tool-forcing no prompt │
|
|
74
|
+
└──────┬─────────────────────────────────────────┘
|
|
75
|
+
│
|
|
76
|
+
▼
|
|
77
|
+
┌────────────────────────────────────────────────┐
|
|
78
|
+
│ Modelo recebe: │
|
|
79
|
+
│ = seu system prompt │
|
|
80
|
+
│ + regra CRÍTICA: "NUNCA PARE SEM FERRAMENTAS" │
|
|
81
|
+
└──────┬─────────────────────────────────────────┘
|
|
82
|
+
│
|
|
83
|
+
▼
|
|
84
|
+
┌─────────────────────────────────────────────────────┐
|
|
85
|
+
│ Modelo é FORÇADO a: │
|
|
86
|
+
│ 1. Pensar/raciocinar │
|
|
87
|
+
│ 2. SEMPRE chamar uma ferramenta (bash/edit/ipython)│
|
|
88
|
+
│ 3. Observar resultado │
|
|
89
|
+
│ 4. Repetir até completar tarefa │
|
|
90
|
+
└──────┬────────────────────────────────────────────┘
|
|
91
|
+
│
|
|
92
|
+
▼
|
|
93
|
+
┌────────────────────────────┐
|
|
94
|
+
│ ✅ Tarefa completada │
|
|
95
|
+
│ ✅ Sem interrupções │
|
|
96
|
+
│ ✅ Loop autônomo funcionou │
|
|
97
|
+
└────────────────────────────┘
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
DICAS QUICK WIN
|
|
101
|
+
───────────────
|
|
102
|
+
|
|
103
|
+
Quer usar a extensão com máximo desempenho?
|
|
104
|
+
|
|
105
|
+
1. Use Qwen Coder (muito melhor que Qwen normal):
|
|
106
|
+
$ ollama pull qwen2.5-coder:32b
|
|
107
|
+
$ ollama run qwen2.5-coder:32b
|
|
108
|
+
|
|
109
|
+
2. Atualize Ollama (versões antigas engolem tool calls):
|
|
110
|
+
$ ollama --version
|
|
111
|
+
|
|
112
|
+
3. Combine com outras extensões se quiser (git-checkpoint, permission-gate, etc)
|
|
113
|
+
|
|
114
|
+
4. Se o modelo ficar preso mesmo assim, edite a extensão para aumentar a força:
|
|
115
|
+
$ nano ~/.asm-agent/extensions/ollama-tool-forcing.ts
|
|
116
|
+
$ /reload
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
VERIFICAÇÃO RÁPIDA
|
|
120
|
+
──────────────────
|
|
121
|
+
|
|
122
|
+
Após usar /reload ou reiniciar:
|
|
123
|
+
|
|
124
|
+
✅ Verdes esperados:
|
|
125
|
+
• /ollama-tools-info mostra status
|
|
126
|
+
• Modelo chama bash/edit/ipython constantemente
|
|
127
|
+
• Tarefas completam sem você precisar falar "e aí?"
|
|
128
|
+
• Cada turno tem: thinking → tool call → resultado → thinking...
|
|
129
|
+
|
|
130
|
+
❌ Vermelhos significam problema:
|
|
131
|
+
• Modelo ainda fica preso após /reload
|
|
132
|
+
• /ollama-tools-info não responde
|
|
133
|
+
• Extensão não carrega
|
|
134
|
+
|
|
135
|
+
Solução: Verifique OLLAMA-TOOL-FORCING.md seção Troubleshooting
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
DESATIVAR SE PRECISAR
|
|
139
|
+
────────────────────
|
|
140
|
+
|
|
141
|
+
Temporariamente:
|
|
142
|
+
/ollama-tools-info (faz toggle)
|
|
143
|
+
|
|
144
|
+
Permanentemente:
|
|
145
|
+
$ rm ~/.asm-agent/extensions/ollama-tool-forcing.ts
|
|
146
|
+
$ /reload
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
ARQUIVOS DE REFERÊNCIA
|
|
150
|
+
──────────────────────
|
|
151
|
+
|
|
152
|
+
Local: ~/.asm-agent/extensions/
|
|
153
|
+
|
|
154
|
+
1. ollama-tool-forcing.ts
|
|
155
|
+
→ A extensão (TypeScript, 3 KB)
|
|
156
|
+
→ Injeta regra no system prompt
|
|
157
|
+
|
|
158
|
+
2. OLLAMA-TOOL-FORCING.md
|
|
159
|
+
→ Manual completo (quando tiver dúvidas)
|
|
160
|
+
|
|
161
|
+
3. OLLAMA-TOOL-FORCING-QUICK-START.txt
|
|
162
|
+
→ Resumo visual (este arquivo é similar)
|
|
163
|
+
|
|
164
|
+
4. OLLAMA-TOOL-FORCING-TESTS.md
|
|
165
|
+
→ 5 testes práticos
|
|
166
|
+
→ Verificação de funcionamento
|
|
167
|
+
|
|
168
|
+
5. OLLAMA-TOOL-FORCING-IMPLEMENTATION.md
|
|
169
|
+
→ Como funciona internamente
|
|
170
|
+
→ Customizações avançadas
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
PRÓXIMAS AÇÕES (em ordem)
|
|
174
|
+
─────────────────────────
|
|
175
|
+
|
|
176
|
+
1️⃣ [ ] Inicie ASM Agent ou /reload
|
|
177
|
+
2️⃣ [ ] Teste com: "Crie test.txt com 'Olá!' e verifique com bash"
|
|
178
|
+
3️⃣ [ ] Observe o modelo chamar ferramentas
|
|
179
|
+
4️⃣ [ ] Teste os 5 exemplos em OLLAMA-TOOL-FORCING-TESTS.md
|
|
180
|
+
5️⃣ [ ] Customize se necessário (editar extensão)
|
|
181
|
+
6️⃣ [ ] Aproveite o loop autônomo funcionando! 🎉
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
PERGUNTAS FREQUENTES
|
|
185
|
+
────────────────────
|
|
186
|
+
|
|
187
|
+
P: "A extensão funciona com modelos online (Claude, GPT)?"
|
|
188
|
+
R: Funciona, mas não é necessária. Eles já têm tool-calling robusto.
|
|
189
|
+
|
|
190
|
+
P: "Quanto overhead adiciona?"
|
|
191
|
+
R: ~3 KB, zero impacto perceptível. Apenas injeta texto no prompt.
|
|
192
|
+
|
|
193
|
+
P: "Posso usar com outras extensões?"
|
|
194
|
+
R: Sim! Múltiplas extensões funcionam juntas.
|
|
195
|
+
|
|
196
|
+
P: "Se o modelo fica preso mesmo assim?"
|
|
197
|
+
R: Edite a extensão para aumentar "peso" da regra, ou use Qwen Coder.
|
|
198
|
+
|
|
199
|
+
P: "Como remover se não gostar?"
|
|
200
|
+
R: rm ~/.asm-agent/extensions/ollama-tool-forcing.ts && /reload
|
|
201
|
+
|
|
202
|
+
P: "Posso modificar a regra?"
|
|
203
|
+
R: Sim! Edite ollama-tool-forcing.ts, depois /reload
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
SUPPORT
|
|
207
|
+
───────
|
|
208
|
+
|
|
209
|
+
Leia em ordem:
|
|
210
|
+
|
|
211
|
+
1. OLLAMA-TOOL-FORCING-QUICK-START.txt (este é um similar)
|
|
212
|
+
2. OLLAMA-TOOL-FORCING.md (manual completo)
|
|
213
|
+
3. OLLAMA-TOOL-FORCING-TESTS.md (exemplos práticos)
|
|
214
|
+
4. OLLAMA-TOOL-FORCING-IMPLEMENTATION.md (detalhes técnicos)
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
218
|
+
|
|
219
|
+
🎬 COMECE AGORA!
|
|
220
|
+
|
|
221
|
+
Se seu ASM Agent está rodando:
|
|
222
|
+
/reload
|
|
223
|
+
|
|
224
|
+
Se não está:
|
|
225
|
+
./asm-agent.sh
|
|
226
|
+
|
|
227
|
+
Depois teste:
|
|
228
|
+
"Crie um arquivo test.txt com conteúdo 'Olá Ollama!' e use bash para
|
|
229
|
+
verificar que foi criado corretamente."
|
|
230
|
+
|
|
231
|
+
Aproveite! ✨
|
|
232
|
+
|
|
233
|
+
═══════════════════════════════════════════════════════════════════════════════
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
# 📑 ÍNDICE - Ollama Tool-Forcing Extension
|
|
2
|
+
|
|
3
|
+
## 📂 Localização
|
|
4
|
+
|
|
5
|
+
Todos os arquivos estão em:
|
|
6
|
+
```
|
|
7
|
+
~/.asm-agent/extensions/
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 📋 Lista de Arquivos (em ordem de importância)
|
|
13
|
+
|
|
14
|
+
### 🚀 COMECE AQUI (prioritário)
|
|
15
|
+
|
|
16
|
+
| Arquivo | Tamanho | Tempo | Objetivo |
|
|
17
|
+
|---------|---------|-------|----------|
|
|
18
|
+
| **00-COMECE-AQUI.txt** | 8.7 KB | 2 min | Guia rápido de primeiros passos |
|
|
19
|
+
| **ollama-tool-forcing.ts** | 3.2 KB | - | Extensão principal (TypeScript) |
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
### 📚 DOCUMENTAÇÃO COMPLETA
|
|
24
|
+
|
|
25
|
+
| Arquivo | Tamanho | Tempo | Objetivo |
|
|
26
|
+
|---------|---------|-------|----------|
|
|
27
|
+
| **OLLAMA-TOOL-FORCING.md** | 4.4 KB | 25 min | Manual detalhado com tudo |
|
|
28
|
+
| **OLLAMA-TOOL-FORCING-QUICK-START.txt** | 5.8 KB | 5 min | Referência visual rápida |
|
|
29
|
+
| **OLLAMA-TOOL-FORCING-TESTS.md** | 4.5 KB | 10 min | 5 exemplos práticos de teste |
|
|
30
|
+
| **OLLAMA-TOOL-FORCING-IMPLEMENTATION.md** | 7.1 KB | 15 min | Documentação técnica avançada |
|
|
31
|
+
| **README.txt** | 10 KB | 10 min | Resumo visual completo |
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## 📊 Estatísticas
|
|
36
|
+
|
|
37
|
+
- **Total de arquivos**: 7
|
|
38
|
+
- **Tamanho total**: ~44 KB
|
|
39
|
+
- **Linhas de código/documentação**: ~1,082
|
|
40
|
+
- **Extensão principal**: 91 linhas de TypeScript
|
|
41
|
+
- **Documentação total**: 900+ linhas
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## 🗺️ GUIA DE NAVEGAÇÃO
|
|
46
|
+
|
|
47
|
+
### Se você quer COMEÇAR AGORA (2 minutos)
|
|
48
|
+
```
|
|
49
|
+
1. Leia: 00-COMECE-AQUI.txt
|
|
50
|
+
2. Execute: /reload (no ASM Agent)
|
|
51
|
+
3. Teste: "Crie test.txt com 'Olá!' e verifique com bash"
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Se você quer ENTENDER O PROBLEMA (25 minutos)
|
|
55
|
+
```
|
|
56
|
+
Leia nesta ordem:
|
|
57
|
+
1. 00-COMECE-AQUI.txt (visão geral)
|
|
58
|
+
2. OLLAMA-TOOL-FORCING.md (manual completo)
|
|
59
|
+
3. README.txt (diagrama visual)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Se você quer TESTAR AGORA (10 minutos)
|
|
63
|
+
```
|
|
64
|
+
1. Abra: OLLAMA-TOOL-FORCING-TESTS.md
|
|
65
|
+
2. Copie um dos 5 exemplos
|
|
66
|
+
3. Cole no ASM Agent com seu Qwen/Llama
|
|
67
|
+
4. Observe o modelo chamar ferramentas
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Se você quer CUSTOMIZAR (15 minutos)
|
|
71
|
+
```
|
|
72
|
+
1. Leia: OLLAMA-TOOL-FORCING-IMPLEMENTATION.md
|
|
73
|
+
2. Edite: ollama-tool-forcing.ts
|
|
74
|
+
3. Execute: /reload
|
|
75
|
+
4. Teste mudanças
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Se você quer TROUBLESHOOTING (varia)
|
|
79
|
+
```
|
|
80
|
+
1. Leia: OLLAMA-TOOL-FORCING.md (seção de Troubleshooting)
|
|
81
|
+
2. Verifique: /ollama-tools-info
|
|
82
|
+
3. Se problema persiste: IMPLEMENTATION.md
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## 📖 Descrição Detalhada de Cada Arquivo
|
|
88
|
+
|
|
89
|
+
### 1. `00-COMECE-AQUI.txt` ⭐ PRIORITÁRIO
|
|
90
|
+
**Tamanho**: 8.7 KB | **Leitura**: 2 min
|
|
91
|
+
|
|
92
|
+
Seu ponto de entrada. Contém:
|
|
93
|
+
- Guia de primeiros passos (3 cenários)
|
|
94
|
+
- Como funciona visualmente
|
|
95
|
+
- Dicas quick win
|
|
96
|
+
- Verificação rápida
|
|
97
|
+
- Próximas ações em checklist
|
|
98
|
+
|
|
99
|
+
**Quando ler**: AGORA! Antes de tudo.
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
### 2. `ollama-tool-forcing.ts` ⭐ PRINCIPAL
|
|
104
|
+
**Tamanho**: 3.2 KB | **Tipo**: TypeScript
|
|
105
|
+
|
|
106
|
+
A extensão real que funciona. Contém:
|
|
107
|
+
- Importações do ASM Agent ExtensionAPI
|
|
108
|
+
- Comando `/ollama-tools-info` registrado
|
|
109
|
+
- Hook `before_agent_start` implementado
|
|
110
|
+
- Lógica de injeção de regra no system prompt
|
|
111
|
+
- Comentários explicativos
|
|
112
|
+
|
|
113
|
+
**Quando ler**: Se quiser entender a implementação ou customizar.
|
|
114
|
+
|
|
115
|
+
**Quando usar**: Automaticamente (auto-descoberta em ~/.asm-agent/extensions/)
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
### 3. `OLLAMA-TOOL-FORCING.md`
|
|
120
|
+
**Tamanho**: 4.4 KB | **Leitura**: 25 min
|
|
121
|
+
|
|
122
|
+
Manual completo e detalhado. Contém:
|
|
123
|
+
- Explicação do problema (cenário real)
|
|
124
|
+
- Por que modelos menores congelam
|
|
125
|
+
- Como a extensão resolve
|
|
126
|
+
- Quando usar e quando não usar
|
|
127
|
+
- Dicas de otimização (Qwen Coder, Ollama update)
|
|
128
|
+
- Troubleshooting (tabela de problemas/soluções)
|
|
129
|
+
- Remoção da extensão
|
|
130
|
+
|
|
131
|
+
**Quando ler**: Quando tiver tempo para entender profundamente.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
### 4. `OLLAMA-TOOL-FORCING-QUICK-START.txt`
|
|
136
|
+
**Tamanho**: 5.8 KB | **Leitura**: 5 min
|
|
137
|
+
|
|
138
|
+
Referência visual rápida. Contém:
|
|
139
|
+
- O que faz (com caixas visuais)
|
|
140
|
+
- Como usar (3 passos)
|
|
141
|
+
- Regra injetada
|
|
142
|
+
- Documentação complementar
|
|
143
|
+
- Resumo técnico
|
|
144
|
+
- Checklist de implementação
|
|
145
|
+
|
|
146
|
+
**Quando ler**: Quando precisa de uma visão geral rápida.
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
### 5. `OLLAMA-TOOL-FORCING-TESTS.md`
|
|
151
|
+
**Tamanho**: 4.5 KB | **Leitura**: 10 min
|
|
152
|
+
|
|
153
|
+
5 testes práticos. Contém:
|
|
154
|
+
- Teste 1: Tarefa Simples
|
|
155
|
+
- Teste 2: Script Python
|
|
156
|
+
- Teste 3: Navegação de Projeto
|
|
157
|
+
- Teste 4: Édição Múltipla
|
|
158
|
+
- Teste 5: Loop Autônomo Completo
|
|
159
|
+
- Como verificar se funciona (sinais ✅/❌)
|
|
160
|
+
- Ajustes se não funcionar
|
|
161
|
+
- Dicas de debug
|
|
162
|
+
|
|
163
|
+
**Quando usar**: Depois de ativar a extensão, teste cada exemplo.
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
### 6. `OLLAMA-TOOL-FORCING-IMPLEMENTATION.md`
|
|
168
|
+
**Tamanho**: 7.1 KB | **Leitura**: 15 min
|
|
169
|
+
|
|
170
|
+
Documentação técnica avançada. Contém:
|
|
171
|
+
- Objetivo da custom rule
|
|
172
|
+
- Estrutura de arquivos criados
|
|
173
|
+
- Como funciona internamente (fluxo detalhado)
|
|
174
|
+
- Regra injetada (completa)
|
|
175
|
+
- Personalização (edições, variantes)
|
|
176
|
+
- Casos de uso específicos
|
|
177
|
+
- Segurança e auditorias
|
|
178
|
+
- Aprendizados técnicos
|
|
179
|
+
- Benchmarks esperados
|
|
180
|
+
- Troubleshooting técnico
|
|
181
|
+
|
|
182
|
+
**Quando ler**: Se quer entender profundamente ou customizar avançadamente.
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
### 7. `README.txt`
|
|
187
|
+
**Tamanho**: 10 KB | **Leitura**: 10 min
|
|
188
|
+
|
|
189
|
+
Resumo visual completo. Contém:
|
|
190
|
+
- Diagrama visual do problema/solução
|
|
191
|
+
- Checklist de implementação
|
|
192
|
+
- Regra injetada (formatada)
|
|
193
|
+
- Teste agora (quick test)
|
|
194
|
+
- Documentação (tabela de referência)
|
|
195
|
+
- Personalização (todos os casos)
|
|
196
|
+
- Resumo técnico (características)
|
|
197
|
+
- Próximas ações numeradas
|
|
198
|
+
- FAQ rápido
|
|
199
|
+
- Suporte (onde procurar)
|
|
200
|
+
|
|
201
|
+
**Quando ler**: Para ver tudo visualmente em uma única tela.
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## 🎯 QUICK REFERENCE (Copie e Cole)
|
|
206
|
+
|
|
207
|
+
### Comando para verificar status
|
|
208
|
+
```bash
|
|
209
|
+
# No ASM Agent:
|
|
210
|
+
/ollama-tools-info
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Comando para recarregar (após editar extensão)
|
|
214
|
+
```bash
|
|
215
|
+
# No ASM Agent:
|
|
216
|
+
/reload
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Comando para testar (copie para ASM Agent)
|
|
220
|
+
```
|
|
221
|
+
Crie um arquivo test.txt com conteúdo "Olá Ollama!" e use bash para
|
|
222
|
+
verificar que foi criado corretamente, mostrando seu conteúdo.
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### Editar a extensão
|
|
226
|
+
```bash
|
|
227
|
+
nano ~/.asm-agent/extensions/ollama-tool-forcing.ts
|
|
228
|
+
# Edite a seção: const toolForceRule = ...
|
|
229
|
+
# Salve (Ctrl+X, Y, Enter)
|
|
230
|
+
# No ASM Agent: /reload
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### Remover extensão
|
|
234
|
+
```bash
|
|
235
|
+
rm ~/.asm-agent/extensions/ollama-tool-forcing.ts
|
|
236
|
+
# No ASM Agent: /reload
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
## 📞 Suporte Rápido
|
|
242
|
+
|
|
243
|
+
| Problema | Arquivo | Seção |
|
|
244
|
+
|----------|---------|-------|
|
|
245
|
+
| "Não entendi nada" | 00-COMECE-AQUI.txt | Inteira |
|
|
246
|
+
| "Como ativar?" | 00-COMECE-AQUI.txt | COMECE A USAR AGORA |
|
|
247
|
+
| "Não funcionou" | OLLAMA-TOOL-FORCING.md | Troubleshooting |
|
|
248
|
+
| "Quero testar" | OLLAMA-TOOL-FORCING-TESTS.md | Inteira |
|
|
249
|
+
| "Quer customizar?" | IMPLEMENTATION.md | Personalização |
|
|
250
|
+
| "Vi um erro" | IMPLEMENTATION.md | Troubleshooting |
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
## ✨ RESUMO
|
|
255
|
+
|
|
256
|
+
```
|
|
257
|
+
Local: ~/.asm-agent/extensions/
|
|
258
|
+
Arquivos: 7 arquivos (44 KB total)
|
|
259
|
+
Ativação: Automática (próxima sessão)
|
|
260
|
+
Status: ✅ PRONTO PARA USAR
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
**Próximo passo**: Abra `00-COMECE-AQUI.txt` agora!
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
*Gerado para Ollama Tool-Forcing Extension v1.0*
|