@jaguilar87/gaia-ops 2.2.1 → 2.2.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.
- package/CHANGELOG.md +74 -0
- package/config/embeddings_info.json +14 -0
- package/config/intent_embeddings.json +2002 -0
- package/config/intent_embeddings.npy +0 -0
- package/package.json +2 -1
- package/templates/CLAUDE.template.md +3 -11
- package/tests/README.en.md +224 -0
- package/tests/README.md +338 -0
- package/tests/fixtures/project-context.aws.json +53 -0
- package/tests/fixtures/project-context.gcp.json +53 -0
- package/tests/integration/RUN_TESTS.md +185 -0
- package/tests/integration/__init__.py +0 -0
- package/tests/integration/test_hooks_integration.py +473 -0
- package/tests/integration/test_hooks_workflow.py +397 -0
- package/tests/permissions-validation/MANUAL_VALIDATION.md +434 -0
- package/tests/permissions-validation/test_permissions_validation.py +527 -0
- package/tests/system/__init__.py +0 -0
- package/tests/system/permissions_helpers.py +318 -0
- package/tests/system/test_agent_definitions.py +166 -0
- package/tests/system/test_configuration_files.py +121 -0
- package/tests/system/test_directory_structure.py +231 -0
- package/tests/system/test_permissions_system.py +1006 -0
- package/tests/tools/__init__.py +0 -0
- package/tests/tools/test_agent_router.py +266 -0
- package/tests/tools/test_clarify_engine.py +413 -0
- package/tests/tools/test_context_provider.py +157 -0
- package/tests/validators/__init__.py +0 -0
- package/tests/validators/test_approval_gate.py +415 -0
- package/tests/validators/test_commit_validator.py +446 -0
- package/tools/context_provider.py +4 -4
- package/tools/generate_embeddings.py +3 -3
- package/tools/semantic_matcher.py +2 -2
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
# Guía Práctica de Comandos - Validación del Sistema
|
|
2
|
+
|
|
3
|
+
Generado: 2025-11-06 21:06:12
|
|
4
|
+
|
|
5
|
+
Esta guía contiene comandos para ejecutar y probar en el sistema. Ejecuta cada comando y observa el comportamiento.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Comandos de Kubernetes
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
kubectl get pods
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
kubectl get pods -n kube-system
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
kubectl get services -A
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
kubectl get deployments
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
kubectl describe pod my-pod
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
kubectl describe service my-service
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
kubectl describe deployment my-app
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
kubectl logs my-pod
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
kubectl logs my-pod -f
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
kubectl logs my-pod --tail=100
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
kubectl top nodes
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
kubectl top pods
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
kubectl version
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
kubectl config view
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
kubectl config get-contexts
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
kubectl config current-context
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
kubectl explain pod
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
kubectl explain deployment.spec
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
kubectl wait --for=condition=ready pod/my-pod
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
kubectl wait --for=delete pod/my-pod --timeout=60s
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
kubectl delete pod my-pod
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
kubectl delete deployment my-deployment
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
kubectl delete namespace my-namespace
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
kubectl apply -f manifest.yaml
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
kubectl apply -k ./kustomize
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
kubectl apply -f deployment.yaml
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
kubectl create namespace my-namespace
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
kubectl create configmap my-config --from-file=config.yaml
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
kubectl patch deployment my-app -p '{"spec":{"replicas":3}}'
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
kubectl patch service my-service -p '{"spec":{"type":"LoadBalancer"}}'
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
kubectl scale deployment my-app --replicas=3
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
kubectl scale statefulset my-statefulset --replicas=5
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
## Comandos de Flux
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
flux check
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
flux get all
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
flux get kustomizations
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
flux get helmreleases
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
flux reconcile kustomization my-app
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
flux reconcile helmrelease my-release
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
flux reconcile source git my-repo
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
flux delete kustomization my-app
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
flux delete helmrelease my-release
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
flux create source git my-repo --url=https://github.com/user/repo
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
flux create kustomization my-app --source=my-repo
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
## Comandos de Git
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
git status
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
git diff
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
git diff HEAD~1
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
git diff --staged
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
git log
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
git log --oneline
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
git log -n 10
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
git branch
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
git branch -a
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
git branch --list
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
```bash
|
|
231
|
+
git show HEAD
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
git show commit-hash
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
```bash
|
|
239
|
+
git show HEAD:file.txt
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
```bash
|
|
243
|
+
git reset --hard HEAD
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
git reset --hard origin/main
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
```bash
|
|
251
|
+
git push --force
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
```bash
|
|
255
|
+
git push -f origin main
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
```bash
|
|
259
|
+
git push
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
```bash
|
|
263
|
+
git push origin main
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
```bash
|
|
267
|
+
git push origin feature-branch
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
```bash
|
|
271
|
+
git commit -m "feat: add new feature"
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
```bash
|
|
275
|
+
git commit -m "fix: resolve bug"
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
git commit --amend
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
## Comandos de GCloud
|
|
284
|
+
|
|
285
|
+
```bash
|
|
286
|
+
gcloud version
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
gcloud config get-value project
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
```bash
|
|
294
|
+
gcloud config get-value compute/region
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
## Comandos de Helm
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
helm uninstall my-release
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
```bash
|
|
305
|
+
helm delete my-release
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
```bash
|
|
309
|
+
helm install my-release stable/nginx
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
```bash
|
|
313
|
+
helm install my-app ./my-chart
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
```bash
|
|
317
|
+
helm upgrade my-release stable/nginx
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
```bash
|
|
321
|
+
helm upgrade --install my-release ./my-chart
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
```bash
|
|
325
|
+
helm rollback my-release 1
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
```bash
|
|
329
|
+
helm rollback my-release 2
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
## Comandos de Terraform
|
|
334
|
+
|
|
335
|
+
```bash
|
|
336
|
+
terraform destroy
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
```bash
|
|
340
|
+
terraform destroy -auto-approve
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
```bash
|
|
344
|
+
terraform destroy -target=resource.name
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
## Herramientas de Claude Code
|
|
349
|
+
|
|
350
|
+
```
|
|
351
|
+
Read("/home/user/project/config.yaml")
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
```
|
|
355
|
+
Read("/etc/hosts")
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
```
|
|
359
|
+
Read("src/main.py")
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
```
|
|
363
|
+
Glob("**/*.py")
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
```
|
|
367
|
+
Glob("src/**/*.ts")
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
```
|
|
371
|
+
Glob("*.yaml")
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
```
|
|
375
|
+
Grep("error", "**/*.log")
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
```
|
|
379
|
+
Grep("TODO", "src/**/*.py")
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
```
|
|
383
|
+
Grep("pattern", "file.txt")
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
```
|
|
387
|
+
Task(subagent_type="gitops-operator", prompt="Check pod status")
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
```
|
|
391
|
+
Task(subagent_type="terraform-architect", prompt="Validate terraform")
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
```
|
|
395
|
+
Edit("config.yaml", "old_value", "new_value")
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
```
|
|
399
|
+
Edit("src/main.py", "def old_func", "def new_func")
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
```
|
|
403
|
+
Edit("README.md", "# Old Title", "# New Title")
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
```
|
|
407
|
+
Write("output.txt", "content")
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
```
|
|
411
|
+
Write("config.json", json_data)
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
```
|
|
415
|
+
Write("script.sh", "#!/bin/bash\necho hello")
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
---
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
## Instrucciones
|
|
423
|
+
|
|
424
|
+
Para cada comando listado:
|
|
425
|
+
|
|
426
|
+
1. Copia y ejecuta el comando
|
|
427
|
+
2. Observa lo que sucede
|
|
428
|
+
3. Anota el resultado
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
**Nota:** El objetivo es ejecutar los comandos y ver cómo se comporta el sistema.
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
*Generated by: `generate_manual_validation.py`*
|