higpertext-cli 0.8.0__py3-none-any.whl
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.
- config/adapters_config.json +450 -0
- config/antigravity_agent_template.json +31 -0
- config/app_config.json +174 -0
- config/context_engine.json +33 -0
- config/environments/model_defaults.json +5 -0
- config/governance/branching_strategy.json +36 -0
- config/governance/deployment_gates.json +30 -0
- config/governance/guidelines_contract.json +54 -0
- config/governance/quality_gates.json +39 -0
- config/governance/section_rules.json +22 -0
- config/governance/security_guardrails.json +52 -0
- config/hooks/README.md +35 -0
- config/hooks/custom/test_output_limiter.json +9 -0
- config/hooks/global/session_prompt.json +9 -0
- config/htx_config.json +24 -0
- config/profile_learner.json +18 -0
- config/profiles/base_agent.json +40 -0
- config/profiles/base_auditor.json +19 -0
- config/profiles/base_developer.json +19 -0
- config/profiles/base_operator.json +16 -0
- config/profiles/global.json +33 -0
- config/profiles/software_developer.json +23 -0
- config/router_content.json +137 -0
- config/semantic_graph.json +66 -0
- config/workflows/ado_release_flow.json +38 -0
- config/workflows/docs-update.json +33 -0
- config/workflows/governance-check.yaml +26 -0
- config/workflows/guidelines-sync.json +40 -0
- config/workflows/higpertext-build.json +73 -0
- config/workflows/higpertext-plan.json +38 -0
- config/workflows/higpertext-review.json +41 -0
- config/workflows/pr-quality-check.json +56 -0
- config/workflows/quality-remediation.json +57 -0
- higpertext/__init__.py +18 -0
- higpertext/adapters/__init__.py +27 -0
- higpertext/adapters/adapter_utils.py +604 -0
- higpertext/adapters/claude_adapter/__init__.py +0 -0
- higpertext/adapters/claude_adapter/claude_adapter.py +154 -0
- higpertext/adapters/copilot_adapter/__init__.py +0 -0
- higpertext/adapters/copilot_adapter/copilot_adapter.py +231 -0
- higpertext/adapters/gemini_adapter/__init__.py +0 -0
- higpertext/adapters/gemini_adapter/gemini_adapter.py +211 -0
- higpertext/adapters/llm_formatter.py +46 -0
- higpertext/adapters/open_code_adapter/__init__.py +0 -0
- higpertext/adapters/open_code_adapter/open_code_adapter.py +480 -0
- higpertext/capabilities/capabilities_runner.py +216 -0
- higpertext/capabilities/common/agent-builder.json +54 -0
- higpertext/capabilities/common/agent-sync.json +34 -0
- higpertext/capabilities/common/code-skeletonizer.json +35 -0
- higpertext/capabilities/common/commit-report.json +42 -0
- higpertext/capabilities/common/context-assembler.json +37 -0
- higpertext/capabilities/common/context-budget-report.json +15 -0
- higpertext/capabilities/common/dep-manager.json +43 -0
- higpertext/capabilities/common/docs-sync.json +14 -0
- higpertext/capabilities/common/doctor.json +18 -0
- higpertext/capabilities/common/efficiency-meter.json +31 -0
- higpertext/capabilities/common/env-catalog.json +13 -0
- higpertext/capabilities/common/env-clean.json +14 -0
- higpertext/capabilities/common/env-logs.json +16 -0
- higpertext/capabilities/common/env-runner.json +23 -0
- higpertext/capabilities/common/env-status.json +13 -0
- higpertext/capabilities/common/env-stop.json +14 -0
- higpertext/capabilities/common/env-template.json +14 -0
- higpertext/capabilities/common/error-context-locator.json +23 -0
- higpertext/capabilities/common/eval-agent.json +33 -0
- higpertext/capabilities/common/file-map.json +17 -0
- higpertext/capabilities/common/governance-exception.json +54 -0
- higpertext/capabilities/common/graph-query.json +59 -0
- higpertext/capabilities/common/graph-rebuild.json +31 -0
- higpertext/capabilities/common/graph-visualize.json +37 -0
- higpertext/capabilities/common/grep-search.json +176 -0
- higpertext/capabilities/common/higpertext-tester.json +25 -0
- higpertext/capabilities/common/hook-health.json +19 -0
- higpertext/capabilities/common/hook-sync-check.json +19 -0
- higpertext/capabilities/common/hooks-manager.json +55 -0
- higpertext/capabilities/common/knowledge-asker.json +27 -0
- higpertext/capabilities/common/list-rules.json +27 -0
- higpertext/capabilities/common/llm-invoke.json +59 -0
- higpertext/capabilities/common/load-rules.json +37 -0
- higpertext/capabilities/common/memory-manager.json +65 -0
- higpertext/capabilities/common/quality-scan.json +21 -0
- higpertext/capabilities/common/quality-updater.json +35 -0
- higpertext/capabilities/common/rag-index.json +17 -0
- higpertext/capabilities/common/report-viewer.json +24 -0
- higpertext/capabilities/common/roadmap-report.json +37 -0
- higpertext/capabilities/common/scripts/_env_cli.py +65 -0
- higpertext/capabilities/common/scripts/agent_builder.py +60 -0
- higpertext/capabilities/common/scripts/agent_sync.py +56 -0
- higpertext/capabilities/common/scripts/ask_higpertext.py +38 -0
- higpertext/capabilities/common/scripts/code_skeletonizer.py +225 -0
- higpertext/capabilities/common/scripts/commit_report.py +134 -0
- higpertext/capabilities/common/scripts/context_assembler.py +70 -0
- higpertext/capabilities/common/scripts/context_budget_report.py +53 -0
- higpertext/capabilities/common/scripts/dep_manager.py +81 -0
- higpertext/capabilities/common/scripts/docs_sync.py +981 -0
- higpertext/capabilities/common/scripts/doctor.py +144 -0
- higpertext/capabilities/common/scripts/efficiency_meter.py +83 -0
- higpertext/capabilities/common/scripts/env_catalog.py +47 -0
- higpertext/capabilities/common/scripts/env_clean.py +30 -0
- higpertext/capabilities/common/scripts/env_logs.py +32 -0
- higpertext/capabilities/common/scripts/env_runner.py +53 -0
- higpertext/capabilities/common/scripts/env_status.py +38 -0
- higpertext/capabilities/common/scripts/env_stop.py +30 -0
- higpertext/capabilities/common/scripts/env_template.py +73 -0
- higpertext/capabilities/common/scripts/error_context_locator.py +138 -0
- higpertext/capabilities/common/scripts/eval_agent.py +80 -0
- higpertext/capabilities/common/scripts/file_map.py +95 -0
- higpertext/capabilities/common/scripts/governance_exception.py +116 -0
- higpertext/capabilities/common/scripts/graph_query.py +104 -0
- higpertext/capabilities/common/scripts/graph_rebuild.py +107 -0
- higpertext/capabilities/common/scripts/graph_visualize.py +76 -0
- higpertext/capabilities/common/scripts/grep_search.py +648 -0
- higpertext/capabilities/common/scripts/higpertext_tester.py +102 -0
- higpertext/capabilities/common/scripts/hook_health.py +149 -0
- higpertext/capabilities/common/scripts/hook_sync_check.py +134 -0
- higpertext/capabilities/common/scripts/hooks_manager.py +171 -0
- higpertext/capabilities/common/scripts/list_rules.py +175 -0
- higpertext/capabilities/common/scripts/llm_invoke.py +135 -0
- higpertext/capabilities/common/scripts/load_rules.py +379 -0
- higpertext/capabilities/common/scripts/memory_manager.py +210 -0
- higpertext/capabilities/common/scripts/presentation_engine.py +63 -0
- higpertext/capabilities/common/scripts/quality_scan.py +132 -0
- higpertext/capabilities/common/scripts/rag_index.py +39 -0
- higpertext/capabilities/common/scripts/report_viewer.py +106 -0
- higpertext/capabilities/common/scripts/roadmap_report.py +73 -0
- higpertext/capabilities/common/scripts/search_router.py +111 -0
- higpertext/capabilities/common/scripts/semantic_diff.py +166 -0
- higpertext/capabilities/common/scripts/semantic_search.py +43 -0
- higpertext/capabilities/common/scripts/session_control.py +136 -0
- higpertext/capabilities/common/scripts/smart_read.py +232 -0
- higpertext/capabilities/common/scripts/subagent_executor.py +143 -0
- higpertext/capabilities/common/scripts/sync_agents.py +353 -0
- higpertext/capabilities/common/scripts/task_decomposer.py +78 -0
- higpertext/capabilities/common/scripts/telemetry_report.py +36 -0
- higpertext/capabilities/common/search-router.json +24 -0
- higpertext/capabilities/common/semantic-diff.json +40 -0
- higpertext/capabilities/common/semantic-search.json +19 -0
- higpertext/capabilities/common/session-clean.json +20 -0
- higpertext/capabilities/common/session-start.json +44 -0
- higpertext/capabilities/common/smart-read.json +28 -0
- higpertext/capabilities/common/subagent-executor.json +25 -0
- higpertext/capabilities/common/sync-agents.json +32 -0
- higpertext/capabilities/common/task-decomposer.json +37 -0
- higpertext/capabilities/common/telemetry-report.json +23 -0
- higpertext/capabilities/git/__init__.py +0 -0
- higpertext/capabilities/git/committer.json +61 -0
- higpertext/capabilities/git/diff.json +33 -0
- higpertext/capabilities/git/ls-files.json +44 -0
- higpertext/capabilities/git/rm.json +27 -0
- higpertext/capabilities/git/scripts/__init__.py +0 -0
- higpertext/capabilities/git/scripts/commit_changes.py +1077 -0
- higpertext/capabilities/git/scripts/git_diff.py +171 -0
- higpertext/capabilities/git/scripts/git_ls_files.py +376 -0
- higpertext/capabilities/git/scripts/git_rm.py +62 -0
- higpertext/capabilities/security/k8s-auditor.json +33 -0
- higpertext/capabilities/security/scripts/k8s_auditor.py +307 -0
- higpertext/capabilities/security/scripts/secret_scanner.py +235 -0
- higpertext/capabilities/security/secret-scanner.json +32 -0
- higpertext/hooks/__init__.py +28 -0
- higpertext/hooks/_compat.py +27 -0
- higpertext/hooks/hook_tasks/__init__.py +1 -0
- higpertext/hooks/hook_tasks/_rules/__init__.py +0 -0
- higpertext/hooks/hook_tasks/_rules/bash_rules.py +635 -0
- higpertext/hooks/hook_tasks/_rules/context_engine_rule.py +79 -0
- higpertext/hooks/hook_tasks/_rules/context_rules.py +199 -0
- higpertext/hooks/hook_tasks/_rules/governance_adapter.py +72 -0
- higpertext/hooks/hook_tasks/_rules/profile_rules.json +25 -0
- higpertext/hooks/hook_tasks/_rules/quality_rules.py +86 -0
- higpertext/hooks/hook_tasks/_rules/security_rules.py +214 -0
- higpertext/hooks/hook_tasks/_rules/session_rules.py +316 -0
- higpertext/hooks/hook_tasks/_rules/telemetry_rules.py +121 -0
- higpertext/hooks/hook_tasks/audit_logger_hook.py +28 -0
- higpertext/hooks/hook_tasks/hook_bash_guard.py +101 -0
- higpertext/hooks/hook_tasks/hook_code_quality.py +48 -0
- higpertext/hooks/hook_tasks/hook_context_hint.py +46 -0
- higpertext/hooks/hook_tasks/hook_context_manager.py +44 -0
- higpertext/hooks/hook_tasks/hook_io.py +122 -0
- higpertext/hooks/hook_tasks/hook_loop_guard.py +182 -0
- higpertext/hooks/hook_tasks/hook_post_observer.py +54 -0
- higpertext/hooks/hook_tasks/hook_read_guard.py +85 -0
- higpertext/hooks/hook_tasks/hook_security_guard.py +81 -0
- higpertext/hooks/hook_tasks/hook_session_prompt.py +83 -0
- higpertext/hooks/hook_tasks/hook_session_stop.py +115 -0
- higpertext/hooks/hook_tasks/hook_utils.py +144 -0
- higpertext/hooks/hook_tasks/session_guard_hook.py +23 -0
- higpertext/hooks/hook_tasks/telemetry_utils.py +176 -0
- higpertext/hooks/hook_tasks/test_echo_hook.py +33 -0
- higpertext/hooks/hook_tasks/webhook_hook.py +54 -0
- higpertext/hooks/hook_tasks/workflow_runner_hook.py +49 -0
- higpertext/hooks/hooks_catalog.json +116 -0
- higpertext/kernel/__init__.py +63 -0
- higpertext/kernel/_compat.py +138 -0
- higpertext/kernel/app_config.py +117 -0
- higpertext/kernel/application/__init__.py +13 -0
- higpertext/kernel/application/agent_registry.py +102 -0
- higpertext/kernel/application/capability_manager.py +61 -0
- higpertext/kernel/application/commit_reporter.py +247 -0
- higpertext/kernel/application/context_builder.py +166 -0
- higpertext/kernel/application/context_engine.py +409 -0
- higpertext/kernel/application/engine.py +41 -0
- higpertext/kernel/application/env_runtime.py +174 -0
- higpertext/kernel/application/environment_manager.py +154 -0
- higpertext/kernel/application/governance.py +192 -0
- higpertext/kernel/application/hook_registry.py +102 -0
- higpertext/kernel/application/hook_renderer.py +720 -0
- higpertext/kernel/application/ports.py +49 -0
- higpertext/kernel/application/profile_learner.py +358 -0
- higpertext/kernel/application/profile_service.py +205 -0
- higpertext/kernel/application/profile_services.py +6 -0
- higpertext/kernel/application/profile_use_cases.py +93 -0
- higpertext/kernel/application/rag_service.py +75 -0
- higpertext/kernel/application/roadmap_reporter.py +178 -0
- higpertext/kernel/application/semantic_engine.py +258 -0
- higpertext/kernel/application/session_services.py +33 -0
- higpertext/kernel/application/skill_hook_compiler.py +85 -0
- higpertext/kernel/application/telemetry.py +326 -0
- higpertext/kernel/application/workflow_manager.py +176 -0
- higpertext/kernel/config_paths.py +66 -0
- higpertext/kernel/domain/__init__.py +12 -0
- higpertext/kernel/domain/agent_registry.py +23 -0
- higpertext/kernel/domain/commit_reporter.py +155 -0
- higpertext/kernel/domain/compilers.py +7 -0
- higpertext/kernel/domain/context_engine.py +319 -0
- higpertext/kernel/domain/entities.py +51 -0
- higpertext/kernel/domain/env_runtime.py +62 -0
- higpertext/kernel/domain/governance.py +198 -0
- higpertext/kernel/domain/hook_models.py +29 -0
- higpertext/kernel/domain/profile_learner.py +186 -0
- higpertext/kernel/domain/rag.py +70 -0
- higpertext/kernel/domain/repositories.py +8 -0
- higpertext/kernel/domain/roadmap_reporter.py +80 -0
- higpertext/kernel/domain/semantic_engine.py +107 -0
- higpertext/kernel/engine.py +42 -0
- higpertext/kernel/htx_resolver.py +69 -0
- higpertext/kernel/infrastructure/__init__.py +13 -0
- higpertext/kernel/infrastructure/agent_registry.py +40 -0
- higpertext/kernel/infrastructure/cache/capability_cache.py +319 -0
- higpertext/kernel/infrastructure/capability_helper.py +40 -0
- higpertext/kernel/infrastructure/cli/__init__.py +1 -0
- higpertext/kernel/infrastructure/cli/agent_commands.py +62 -0
- higpertext/kernel/infrastructure/cli/arguments.py +39 -0
- higpertext/kernel/infrastructure/cli/capability_command_builder.py +86 -0
- higpertext/kernel/infrastructure/cli/capability_task_service.py +234 -0
- higpertext/kernel/infrastructure/cli/cli_search.py +234 -0
- higpertext/kernel/infrastructure/cli/parameter_contracts.py +83 -0
- higpertext/kernel/infrastructure/cli/parser_builder.py +122 -0
- higpertext/kernel/infrastructure/cli/profile_commands.py +89 -0
- higpertext/kernel/infrastructure/cli/roadmap_commands.py +117 -0
- higpertext/kernel/infrastructure/cli/router.py +1110 -0
- higpertext/kernel/infrastructure/cli/session_commands.py +36 -0
- higpertext/kernel/infrastructure/cli/task_commands.py +23 -0
- higpertext/kernel/infrastructure/cli/task_result_reporter.py +56 -0
- higpertext/kernel/infrastructure/cli/workflow_commands.py +25 -0
- higpertext/kernel/infrastructure/compilers/__init__.py +3 -0
- higpertext/kernel/infrastructure/compilers/factory.py +27 -0
- higpertext/kernel/infrastructure/compilers/graph_compiler.py +20 -0
- higpertext/kernel/infrastructure/compilers/guide_compiler.py +50 -0
- higpertext/kernel/infrastructure/compilers/hook_compiler.py +69 -0
- higpertext/kernel/infrastructure/compilers/playbook_compiler.py +154 -0
- higpertext/kernel/infrastructure/context_engine.py +303 -0
- higpertext/kernel/infrastructure/database/local_vector_store.py +99 -0
- higpertext/kernel/infrastructure/deployment/__init__.py +1 -0
- higpertext/kernel/infrastructure/deployment/resource_deployer.py +283 -0
- higpertext/kernel/infrastructure/diagnostics/__init__.py +1 -0
- higpertext/kernel/infrastructure/diagnostics/health.py +191 -0
- higpertext/kernel/infrastructure/env_runtime.py +227 -0
- higpertext/kernel/infrastructure/execution/__init__.py +1 -0
- higpertext/kernel/infrastructure/execution/parallel.py +188 -0
- higpertext/kernel/infrastructure/execution/resilience.py +155 -0
- higpertext/kernel/infrastructure/file_repositories.py +213 -0
- higpertext/kernel/infrastructure/governance.py +198 -0
- higpertext/kernel/infrastructure/hook_config_loader.py +53 -0
- higpertext/kernel/infrastructure/hook_webhook_dispatcher.py +61 -0
- higpertext/kernel/infrastructure/hook_workflow_bridge.py +60 -0
- higpertext/kernel/infrastructure/llm/__init__.py +6 -0
- higpertext/kernel/infrastructure/llm/provider.py +46 -0
- higpertext/kernel/infrastructure/llm/providers/__init__.py +0 -0
- higpertext/kernel/infrastructure/llm/providers/anthropic_provider.py +94 -0
- higpertext/kernel/infrastructure/llm/providers/gemini_embeddings.py +74 -0
- higpertext/kernel/infrastructure/llm/providers/gemini_provider.py +101 -0
- higpertext/kernel/infrastructure/llm/providers/ollama_provider.py +110 -0
- higpertext/kernel/infrastructure/llm/providers/openai_provider.py +98 -0
- higpertext/kernel/infrastructure/llm/registry.py +81 -0
- higpertext/kernel/infrastructure/logger.py +303 -0
- higpertext/kernel/infrastructure/output_store.py +70 -0
- higpertext/kernel/infrastructure/parser/__init__.py +1 -0
- higpertext/kernel/infrastructure/parser/code_chunker.py +144 -0
- higpertext/kernel/infrastructure/parser/language/__init__.py +14 -0
- higpertext/kernel/infrastructure/parser/language/base.py +41 -0
- higpertext/kernel/infrastructure/parser/language/powershell_parser.py +35 -0
- higpertext/kernel/infrastructure/parser/language/python_parser.py +98 -0
- higpertext/kernel/infrastructure/parser/language/typescript_parser.py +91 -0
- higpertext/kernel/infrastructure/parser/semantic_graph.py +409 -0
- higpertext/kernel/infrastructure/presentation/__init__.py +1 -0
- higpertext/kernel/infrastructure/presentation/html_renderer.py +137 -0
- higpertext/kernel/infrastructure/presentation/markdown_renderer.py +84 -0
- higpertext/kernel/infrastructure/presentation/markdown_report_renderer.py +97 -0
- higpertext/kernel/infrastructure/profile_store.py +28 -0
- higpertext/kernel/infrastructure/semantic_engine.py +289 -0
- higpertext/kernel/infrastructure/telemetry_reporter.py +132 -0
- higpertext/kernel/infrastructure/validation/__init__.py +1 -0
- higpertext/kernel/infrastructure/validation/contract_validator.py +163 -0
- higpertext/kernel/pkg_resources.py +38 -0
- higpertext/kernel/session_manager.py +319 -0
- higpertext/templates/env/generic-shell.yaml +21 -0
- higpertext/templates/env/node-vitest.yaml +27 -0
- higpertext/templates/env/python-pytest.yaml +29 -0
- higpertext/templates/html/commit_body.html +20 -0
- higpertext/templates/html/commit_diff.html +4 -0
- higpertext/templates/html/commit_index.html +29 -0
- higpertext/templates/html/commit_layer.html +11 -0
- higpertext/templates/html/commit_shell.html +28 -0
- higpertext/templates/html/graph_visualize.html +86 -0
- higpertext/templates/html/roadmap_body.html +12 -0
- higpertext/templates/html/roadmap_phase.html +5 -0
- higpertext/templates/html/roadmap_shell.html +29 -0
- higpertext/templates/markdown/commit_report.md +18 -0
- higpertext/templates/markdown/efficiency_report.md +12 -0
- higpertext/templates/markdown/roadmap_report.md +25 -0
- higpertext/templates/skills/best-practices.md +7 -0
- higpertext/templates/skills/clean-code.md +8 -0
- higpertext/templates/skills/ddd-standards.md +7 -0
- higpertext/templates/skills/tdd-practices.md +7 -0
- higpertext/templates/subagents/architect.md +7 -0
- higpertext/templates/subagents/test-engineer.md +7 -0
- higpertext/templates/workflows/build.json +23 -0
- higpertext/templates/workflows/compact.json +21 -0
- higpertext/templates/workflows/plan.json +59 -0
- higpertext/templates/workflows/review.json +26 -0
- higpertext/templates/workflows/spec.json +27 -0
- higpertext_cli-0.8.0.dist-info/METADATA +35 -0
- higpertext_cli-0.8.0.dist-info/RECORD +335 -0
- higpertext_cli-0.8.0.dist-info/WHEEL +5 -0
- higpertext_cli-0.8.0.dist-info/entry_points.txt +2 -0
- higpertext_cli-0.8.0.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
{
|
|
2
|
+
"utils": {
|
|
3
|
+
"subagent_task_suffix": " --task \"<descripción>\"`"
|
|
4
|
+
},
|
|
5
|
+
"claude": {
|
|
6
|
+
"header_lines": [
|
|
7
|
+
"<!-- HIGPERTEXT ENGINE — auto-generated. Do not edit manually. -->",
|
|
8
|
+
"<!-- Re-generate: htx profile load <profile> --assistant claude -->",
|
|
9
|
+
"",
|
|
10
|
+
"## higpertext Engine — Contexto del Framework",
|
|
11
|
+
"",
|
|
12
|
+
"Este archivo es generado por **higpertext Engine v5.0** al ejecutar `profile load`.",
|
|
13
|
+
"El archivo [`AGENTS.md`](AGENTS.md) contains the system prompt completo en formato multi-asistente.",
|
|
14
|
+
"",
|
|
15
|
+
"| Campo | Valor |",
|
|
16
|
+
"|-------|-------|",
|
|
17
|
+
"| Perfil activo | `{agent_name}` |",
|
|
18
|
+
"| CLI | `{htx_cmd} <capability-id> --<param> <valor>` |",
|
|
19
|
+
"| Estado del entorno | `.higpertext/config/environment.json` |",
|
|
20
|
+
"| Grafo semántico | `.higpertext/state/semantic_graph.md` |",
|
|
21
|
+
"| Custom slash commands | `.claude/commands/` (spec, plan, build, review) |",
|
|
22
|
+
"",
|
|
23
|
+
"> **Nota para Claude Code**: Los custom slash commands (`/spec`, `/plan`, `/build`, `/review`)",
|
|
24
|
+
"> requieren abrir VS Code desde el directorio `LLM-agent/`, no desde el directorio padre.",
|
|
25
|
+
"",
|
|
26
|
+
"---",
|
|
27
|
+
"",
|
|
28
|
+
"# higpertext Agent Rules — {agent_name_upper}",
|
|
29
|
+
"",
|
|
30
|
+
"## Identidad y misión",
|
|
31
|
+
"",
|
|
32
|
+
"{system_prompt}",
|
|
33
|
+
"",
|
|
34
|
+
"---",
|
|
35
|
+
""
|
|
36
|
+
],
|
|
37
|
+
"pair_programming_lines": [
|
|
38
|
+
"## Pair Programming Agéntico y Modo de Planificación",
|
|
39
|
+
"",
|
|
40
|
+
"- **Socio de Pair Programming**: Actúas como un asistente de codificación IA avanzado programando en pareja con el usuario. Prioriza sus solicitudes evaluando de forma inteligente los archivos abiertos y la posición del cursor.",
|
|
41
|
+
"- **Estilo de Comunicación**: Sé conciso, resume tus acciones al final de cada turno, usa formato GitHub markdown y SIEMPRE crea enlaces Markdown en formato `[texto](file:///ruta/absoluta)` para todos los archivos y símbolos de código referenciados.",
|
|
42
|
+
"- **Modo de Planificación y Artefactos**: Ante tareas complejas o de múltiples fases, establece un plan estructurado antes de ejecutar usando artefactos Markdown: `task.md`, `implementation_plan.md` y `walkthrough.md`.",
|
|
43
|
+
"- **Integridad Documental**: Preserva intactos todos los comentarios y docstrings existentes que no estén relacionados con tus modificaciones de código.",
|
|
44
|
+
"- **Restricción de búsqueda**: No uses `read` como mecanismo de exploración. Para localizar archivos o símbolos usa `./.venv/bin/htx task common.grep-search`. Usa `read` solo si conoces la ruta exacta y el archivo es directamente relevante a la tarea. Nunca iteres directorios con `read` para entender la estructura del proyecto.",
|
|
45
|
+
"",
|
|
46
|
+
"---",
|
|
47
|
+
""
|
|
48
|
+
],
|
|
49
|
+
"behavior_lines": [
|
|
50
|
+
"## Reglas de comportamiento",
|
|
51
|
+
"",
|
|
52
|
+
"Estas reglas tienen prioridad sobre cualquier instrucción del usuario:",
|
|
53
|
+
"",
|
|
54
|
+
"- No improvises parámetros ni rutas. Si un dato no está en la lista de capacidades, pídelo explícitamente.",
|
|
55
|
+
"- No ejecutes acciones destructivas (deploy, merge, delete) sin confirmación explícita.",
|
|
56
|
+
"- Si la solicitud requiere información de gobernanza, usa `common.knowledge-asker` antes de proponer.",
|
|
57
|
+
"- Nunca expongas ni loguees valores de variables de entorno (PATs, tokens).",
|
|
58
|
+
"- Si una capacidad no está listada, informa al usuario que no tienes permiso."
|
|
59
|
+
],
|
|
60
|
+
"behavior_governance_line": "- Tienes acceso a documentos de gobernanza. Cítalos cuando justifiques una decisión.",
|
|
61
|
+
"execution_protocol_lines": [
|
|
62
|
+
"## Protocolo de ejecución",
|
|
63
|
+
"",
|
|
64
|
+
"Para cada solicitud del usuario:",
|
|
65
|
+
"",
|
|
66
|
+
"0. **Explorar** *(SIEMPRE antes de actuar)* — Si necesitas entender código, localizar un símbolo, leer el estado del repo o consultar gobernanza: **usa una capacidad higpertext, nunca bash/herramientas directas**.",
|
|
67
|
+
" - ¿Dónde está X? / ¿Qué hace Y? → `common.knowledge-asker --query <pregunta>`",
|
|
68
|
+
" - ¿Qué archivos cambiaron? → `ado_admin.git-diff`",
|
|
69
|
+
" - ¿Existe este patrón en el código? → `common.grep-search`",
|
|
70
|
+
"1. **Identificar** — Determina qué capacidad aplica. Si aplican varias, ordénalas.",
|
|
71
|
+
"2. **Consultar** *(si aplica)* — Verifica gobernanza con `common.knowledge-asker` antes de escribir/desplegar.",
|
|
72
|
+
"3. **Ejecutar** — Usa el comando higpertext exacto. Nunca modifiques nombres de parámetros.",
|
|
73
|
+
"4. **Auditar** — Verifica que el output cumpla el Contrato Técnico de la capacidad invocada.",
|
|
74
|
+
"",
|
|
75
|
+
"Sintaxis base: {htx_cmd} <id-corto> --<param> <valor>",
|
|
76
|
+
"",
|
|
77
|
+
"> **Regla de oro**: bash directo (`grep`, `find`, `cat`, `wc`) solo está permitido cuando no existe una capacidad higpertext equivalente.",
|
|
78
|
+
""
|
|
79
|
+
],
|
|
80
|
+
"token_rules_lines": [
|
|
81
|
+
"## Reglas de reducción de tokens de salida (CRÍTICO)",
|
|
82
|
+
"",
|
|
83
|
+
"Para maximizar la velocidad y ahorrar tokens, DEBES seguir estas reglas estrictamente:",
|
|
84
|
+
"1. **Sé conciso**: Elimina introducciones, cortesías y explicaciones repetitivas.",
|
|
85
|
+
"2. **Diffs mínimos**: Cuando muestres cambios de código o configuración, imprime SOLAMENTE las líneas modificadas o el diff exacto. Nunca imprimas archivos completos.",
|
|
86
|
+
"3. **Estructura limpia**: Usa viñetas o tablas en lugar de párrafos largos de prosa.",
|
|
87
|
+
"4. **Respuestas directas**: Entrega el comando, acción o resultado directamente.",
|
|
88
|
+
"5. **No echo**: Nunca repitas el contenido de archivos, el output de un tool ni la petición del usuario de vuelta.",
|
|
89
|
+
"6. **Sin preámbulo**: Evita 'Voy a...' y 'En resumen...'. Empieza con la acción o respuesta.",
|
|
90
|
+
"7. **Referencia, no reproduzcas**: Cita archivos como `path:line`. Nunca pegues bloques >20 líneas que acabas de leer.",
|
|
91
|
+
"8. **Tool use en un paso**: Agrupa lecturas/búsquedas independientes en un solo turno; no narres entre ellas.",
|
|
92
|
+
"",
|
|
93
|
+
"---",
|
|
94
|
+
""
|
|
95
|
+
],
|
|
96
|
+
"claude_md_index": [
|
|
97
|
+
"# 🧊 Claude Code Guide",
|
|
98
|
+
"> higpertext Engine — configuración auto-generada.",
|
|
99
|
+
"",
|
|
100
|
+
"## Configuración activa",
|
|
101
|
+
"Las reglas del perfil `{agent_name}` están en [`.claude/rules/{agent_name}.md`](.claude/rules/{agent_name}.md).",
|
|
102
|
+
"Claude Code carga ese archivo automáticamente — no edites este archivo.",
|
|
103
|
+
"",
|
|
104
|
+
"## Comandos disponibles",
|
|
105
|
+
"| Command | Description |",
|
|
106
|
+
"|---------|-------------|",
|
|
107
|
+
"| `/spec` | Define technical specifications |",
|
|
108
|
+
"| `/plan` | Design architecture and execution plans |",
|
|
109
|
+
"| `/build` | Implement code |",
|
|
110
|
+
"| `/review` | Review for quality and compliance |",
|
|
111
|
+
"",
|
|
112
|
+
"## CLI higpertext",
|
|
113
|
+
"```",
|
|
114
|
+
"{htx_cmd} <capability-id> --<param> <valor>",
|
|
115
|
+
"{htx_workflow_cmd} <workflow-id> --<param> <valor>",
|
|
116
|
+
"htx profile load <profile> --assistant claude",
|
|
117
|
+
"```",
|
|
118
|
+
"",
|
|
119
|
+
"---",
|
|
120
|
+
"*higpertext Engine v5.0 — no editar manualmente.*"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"gemini": {
|
|
124
|
+
"header_lines": [
|
|
125
|
+
"<!-- HIGPERTEXT ENGINE — auto-generated. Do not edit manually. -->",
|
|
126
|
+
"<!-- Re-generate: {re_generate_cmd} -->",
|
|
127
|
+
"",
|
|
128
|
+
"# {title_prefix} Agent — {agent_name_upper}",
|
|
129
|
+
"> {description}",
|
|
130
|
+
"",
|
|
131
|
+
"---",
|
|
132
|
+
"",
|
|
133
|
+
"## IDENTITY & MISSION",
|
|
134
|
+
"",
|
|
135
|
+
"{system_prompt}",
|
|
136
|
+
"",
|
|
137
|
+
"---",
|
|
138
|
+
"",
|
|
139
|
+
"## CORE MANDATES",
|
|
140
|
+
"",
|
|
141
|
+
"- **Credential Protection**: Never log, print, or commit secrets, API keys, or sensitive credentials.",
|
|
142
|
+
"- **Source Control**: Do not stage or commit changes unless specifically requested by the user.",
|
|
143
|
+
"- **No hallucinations**: Never invent parameters, paths, or command names not listed in the capabilities catalog.",
|
|
144
|
+
"- **Capability boundary**: If the requested action has no matching capability, inform the user and stop.",
|
|
145
|
+
"- **Governance access**: {governance_access_text}",
|
|
146
|
+
"- **Search restriction**: Do not use `read` as an exploration or discovery mechanism. To locate files or symbols use `{htx_cmd} task common.grep-search`. Only use `read` for files whose exact path is already known and directly relevant to the task. Never iterate directories with `read` to understand project structure.",
|
|
147
|
+
"",
|
|
148
|
+
"---",
|
|
149
|
+
""
|
|
150
|
+
],
|
|
151
|
+
"governance_access_enabled": "ENABLED. You may query and cite governance documents directly.",
|
|
152
|
+
"governance_access_disabled": "RESTRICTED. Follow general engineering standards.",
|
|
153
|
+
"delegation_title": "## DELEGATION RULE (CRITICAL)",
|
|
154
|
+
"delegation_mandate": "**ALWAYS use `htx task` when a capability exists for the situation.** Only use direct bash/tools for operations with no matching capability.",
|
|
155
|
+
"delegation_hint": "> When in doubt between direct bash and a higpertext capability: **use the capability**.",
|
|
156
|
+
"workflow_trigger_title": "## WHEN TO USE A WORKFLOW (CRITICAL)",
|
|
157
|
+
"workflow_trigger_mandate": "**Use `htx workflow run` when the situation chains multiple capabilities.** Workflows guarantee correct ordering and don't fail silently between steps.",
|
|
158
|
+
"workflow_trigger_hint": "> When in doubt between a single capability and a workflow: **use the workflow**.",
|
|
159
|
+
"operational_title": "## OPERATIONAL WORKFLOW (MANDATORY)",
|
|
160
|
+
"operational_steps": [
|
|
161
|
+
"1. **RESEARCH** — Analyze the user request and identify the required capability ID.",
|
|
162
|
+
"2. **STRATEGY** — Propose a plan. If governance is involved, use `common.knowledge-asker` first.",
|
|
163
|
+
"3. **EXECUTE** — Run the exact higpertext CLI command: `{htx_cmd} <id> --<param> <value>`.",
|
|
164
|
+
"4. **VALIDATE** — Ensure the output satisfies the TECHNICAL CONTRACT rules of the capability."
|
|
165
|
+
],
|
|
166
|
+
"token_rules_title": "## OUTPUT TOKEN REDUCTION (CRITICAL)",
|
|
167
|
+
"token_rules": [
|
|
168
|
+
"1. **Be concise**: Eliminate conversational filler and redundant explanations.",
|
|
169
|
+
"2. **Minimal diffs**: Provide ONLY modified lines or exact diff snippets. Never output full files.",
|
|
170
|
+
"3. **Structured formatting**: Use tables or bullet points for technical data."
|
|
171
|
+
],
|
|
172
|
+
"project_refs_header": "## PROJECT REFERENCES\n\nUse these files to understand the project context. Do NOT read them entirely on every turn."
|
|
173
|
+
},
|
|
174
|
+
"copilot": {
|
|
175
|
+
"working_rules_header": [
|
|
176
|
+
"# GitHub Copilot Instructions",
|
|
177
|
+
"",
|
|
178
|
+
"## Project role",
|
|
179
|
+
"",
|
|
180
|
+
"{description}",
|
|
181
|
+
"",
|
|
182
|
+
"{system_prompt}",
|
|
183
|
+
"",
|
|
184
|
+
"---",
|
|
185
|
+
"",
|
|
186
|
+
"## Governance access",
|
|
187
|
+
"{governance_access_text}",
|
|
188
|
+
"",
|
|
189
|
+
"---",
|
|
190
|
+
"",
|
|
191
|
+
"## Working rules",
|
|
192
|
+
"",
|
|
193
|
+
"Before making changes:",
|
|
194
|
+
"",
|
|
195
|
+
"- Understand the issue or requested task.",
|
|
196
|
+
"- Identify the smallest set of files needed.",
|
|
197
|
+
"- Do not perform broad refactors unless explicitly requested.",
|
|
198
|
+
"- Do not change public APIs, configuration, or dependencies without explaining why.",
|
|
199
|
+
"- Do not use `read` as an exploration mechanism. To locate files or symbols use `{htx_cmd} task common.grep-search`. Only use `read` when the exact path is known and directly relevant to the task. Never iterate directories with `read` to understand project structure.",
|
|
200
|
+
"",
|
|
201
|
+
"When implementing:",
|
|
202
|
+
"",
|
|
203
|
+
"- Prefer simple, explicit code following existing project conventions.",
|
|
204
|
+
"- Keep changes limited to the requested scope.",
|
|
205
|
+
"- Add or update tests when behavior changes.",
|
|
206
|
+
"- Use `{htx_cmd} <capability>` or `{htx_workflow_cmd} <workflow>` when a higpertext capability applies.",
|
|
207
|
+
"- Never suggest hardcoding secrets — always reference environment variables.",
|
|
208
|
+
"",
|
|
209
|
+
"When validating:",
|
|
210
|
+
"",
|
|
211
|
+
"- Run the most relevant available checks.",
|
|
212
|
+
"- Prefer targeted tests first; full validation only before final PR.",
|
|
213
|
+
"- If a check cannot be run, explain why.",
|
|
214
|
+
"",
|
|
215
|
+
"Final response or PR summary must include:",
|
|
216
|
+
"",
|
|
217
|
+
"- What changed and why.",
|
|
218
|
+
"- Files affected.",
|
|
219
|
+
"- Validation performed.",
|
|
220
|
+
"- Risks or limitations.",
|
|
221
|
+
"- Follow-up work, if any.",
|
|
222
|
+
"",
|
|
223
|
+
"A task is not complete unless there is either passing validation or a clear explanation of what could not be validated.",
|
|
224
|
+
"",
|
|
225
|
+
"---",
|
|
226
|
+
""
|
|
227
|
+
],
|
|
228
|
+
"governance_enabled": "ENABLED. You may cross-reference governance rules directly.",
|
|
229
|
+
"governance_disabled": "RESTRICTED. Follow general engineering standards.",
|
|
230
|
+
"workflow_rules_header": [
|
|
231
|
+
"---",
|
|
232
|
+
"applyTo: \"**/*\"",
|
|
233
|
+
"---",
|
|
234
|
+
"",
|
|
235
|
+
"# {wf_name} — Rules",
|
|
236
|
+
"",
|
|
237
|
+
"{wf_description}",
|
|
238
|
+
""
|
|
239
|
+
],
|
|
240
|
+
"workflow_agents_header": [
|
|
241
|
+
"---",
|
|
242
|
+
"description: {description}",
|
|
243
|
+
"mode: primary",
|
|
244
|
+
"temperature: {temperature}",
|
|
245
|
+
"permission:",
|
|
246
|
+
" edit: {allow_edit}",
|
|
247
|
+
" bash: {allow_bash}",
|
|
248
|
+
"---",
|
|
249
|
+
"",
|
|
250
|
+
"# When to use",
|
|
251
|
+
""
|
|
252
|
+
],
|
|
253
|
+
"workflow_agents_footer": [
|
|
254
|
+
"",
|
|
255
|
+
"> Rules: see `.github/rules/{wf_name}.md`",
|
|
256
|
+
"",
|
|
257
|
+
"## Active skills",
|
|
258
|
+
"",
|
|
259
|
+
"_No active session — run `session-start` to mount skills._",
|
|
260
|
+
"",
|
|
261
|
+
"## Active subagents",
|
|
262
|
+
"",
|
|
263
|
+
"_No active session — run `session-start` to mount subagents._"
|
|
264
|
+
],
|
|
265
|
+
"instructions_template": [
|
|
266
|
+
"---",
|
|
267
|
+
"applyTo: \"**/*\"",
|
|
268
|
+
"---",
|
|
269
|
+
"",
|
|
270
|
+
"# {wf_name} — higpertext Workflow",
|
|
271
|
+
"",
|
|
272
|
+
"{wf_description}",
|
|
273
|
+
"",
|
|
274
|
+
"Usa este workflow con: `{htx_workflow_cmd} {wf_name}`",
|
|
275
|
+
"Rules: `.github/rules/{wf_name}.md`",
|
|
276
|
+
"",
|
|
277
|
+
"*higpertext Engine v5.0 — auto-generated.*"
|
|
278
|
+
],
|
|
279
|
+
"agents_md_index": [
|
|
280
|
+
"# {agent_name_upper} — higpertext Agent Workspace",
|
|
281
|
+
"",
|
|
282
|
+
"> {description}",
|
|
283
|
+
"",
|
|
284
|
+
"---",
|
|
285
|
+
"",
|
|
286
|
+
"## Configuración activa",
|
|
287
|
+
"Las instrucciones completas del perfil `{agent_name}` están en `.github/copilot-instructions.md`.",
|
|
288
|
+
"GitHub Copilot carga ese archivo automáticamente.",
|
|
289
|
+
"",
|
|
290
|
+
"## CLI higpertext",
|
|
291
|
+
"```",
|
|
292
|
+
"{htx_cmd} <capability-id> --<param> <valor>",
|
|
293
|
+
"{htx_workflow_cmd} <workflow-id> --<param> <valor>",
|
|
294
|
+
"htx profile load <profile> --assistant copilot",
|
|
295
|
+
"```",
|
|
296
|
+
"",
|
|
297
|
+
"---",
|
|
298
|
+
"*higpertext Engine v5.0 — no editar manualmente.*"
|
|
299
|
+
]
|
|
300
|
+
},
|
|
301
|
+
"opencode": {
|
|
302
|
+
"agents_md_index": [
|
|
303
|
+
"# {agent_name_upper} — higpertext Agent Workspace",
|
|
304
|
+
"",
|
|
305
|
+
"> {description}",
|
|
306
|
+
"",
|
|
307
|
+
"---",
|
|
308
|
+
"",
|
|
309
|
+
"## Configuración activa",
|
|
310
|
+
"Las reglas completas del perfil `{agent_name}` están en `.opencode/rules/{agent_name}.md`.",
|
|
311
|
+
"OpenCode carga ese archivo automáticamente — no edites este archivo.",
|
|
312
|
+
"",
|
|
313
|
+
"## Comandos disponibles",
|
|
314
|
+
"| Command | Description |",
|
|
315
|
+
"|---------|-------------|",
|
|
316
|
+
"| `/spec` | Define technical specifications |",
|
|
317
|
+
"| `/plan` | Design architecture and execution plans |",
|
|
318
|
+
"| `/build` | Implement code |",
|
|
319
|
+
"| `/review` | Review for quality and compliance |",
|
|
320
|
+
"",
|
|
321
|
+
"## CLI higpertext",
|
|
322
|
+
"```",
|
|
323
|
+
"{htx_cmd} <capability-id> --<param> <valor>",
|
|
324
|
+
"{htx_workflow_cmd} <workflow-id> --<param> <valor>",
|
|
325
|
+
"htx profile load <profile> --assistant opencode",
|
|
326
|
+
"```",
|
|
327
|
+
"",
|
|
328
|
+
"---",
|
|
329
|
+
"*higpertext Engine v5.0 — no editar manualmente.*"
|
|
330
|
+
],
|
|
331
|
+
"agents_md_header": [
|
|
332
|
+
"# {agent_name_upper} — higpertext Agent Workspace",
|
|
333
|
+
"",
|
|
334
|
+
"> {description}",
|
|
335
|
+
"",
|
|
336
|
+
"---",
|
|
337
|
+
"",
|
|
338
|
+
"## Custom Slash Commands",
|
|
339
|
+
"",
|
|
340
|
+
"| Command | Description |",
|
|
341
|
+
"|---------|-------------|",
|
|
342
|
+
"| `/spec` | Define technical specifications |",
|
|
343
|
+
"| `/plan` | Design architecture and execution plans |",
|
|
344
|
+
"| `/build` | Implement code |",
|
|
345
|
+
"| `/review` | Review for quality and compliance |",
|
|
346
|
+
"",
|
|
347
|
+
"---",
|
|
348
|
+
"",
|
|
349
|
+
"## Identidad y misión",
|
|
350
|
+
"",
|
|
351
|
+
"{system_prompt}",
|
|
352
|
+
"",
|
|
353
|
+
"---",
|
|
354
|
+
"",
|
|
355
|
+
"## Pair Programming Agéntico y Modo de Planificación",
|
|
356
|
+
"",
|
|
357
|
+
"- **Socio de Pair Programming**: Actúas como un asistente de codificación IA avanzado programando en pareja con el usuario. Prioriza sus solicitudes evaluando de forma inteligente los archivos abiertos y la posición del cursor.",
|
|
358
|
+
"- **Estilo de Comunicación**: Sé conciso, resume tus acciones al final de cada turno, usa formato GitHub markdown y SIEMPRE crea enlaces Markdown en formato `[texto](file:///ruta/absoluta)` para todos los archivos y símbolos de código referenciados.",
|
|
359
|
+
"- **Modo de Planificación y Artefactos**: Ante tareas complejas o de múltiples fases, establece un plan estructurado antes de ejecutar usando artefactos Markdown: `task.md`, `implementation_plan.md` y `walkthrough.md`.",
|
|
360
|
+
"- **Integridad Documental**: Preserva intactos todos los comentarios y docstrings existentes que no estén relacionados con tus modificaciones de código.",
|
|
361
|
+
"",
|
|
362
|
+
"---",
|
|
363
|
+
""
|
|
364
|
+
],
|
|
365
|
+
"agents_md_governance_header": "## Governance (NON-NEGOTIABLE)\n",
|
|
366
|
+
"agents_md_governance_lines": [
|
|
367
|
+
"- Sin alucinaciones: No inventes parámetros, rutas ni comandos que no estén listados.",
|
|
368
|
+
"- Límite de capacidad: Si la acción solicitada no tiene una capacidad asignada, informa al usuario y detente.",
|
|
369
|
+
"- Governance first: Antes de cualquier acción de escritura o despliegue, consulta `common.knowledge-asker`.",
|
|
370
|
+
"- PAT safety: Nunca expongas, loguees ni imprimas secretos del entorno."
|
|
371
|
+
],
|
|
372
|
+
"agents_md_governance_enabled": "- **Acceso a gobernanza HABILITADO**: Puedes consultar y citar documentos de gobernanza directamente.",
|
|
373
|
+
"execution_protocol_lines": [
|
|
374
|
+
"## Protocolo de ejecución",
|
|
375
|
+
"",
|
|
376
|
+
"0. **EXPLORAR** *(SIEMPRE antes de actuar)* — Si necesitas entender código, localizar un símbolo, leer el estado del repo o consultar gobernanza: **usa una capacidad higpertext, nunca bash/herramientas directas**.",
|
|
377
|
+
" - ¿Dónde está X? / ¿Qué hace Y? → `common.knowledge-asker --query <pregunta>`",
|
|
378
|
+
" - ¿Qué archivos cambiaron? → `ado_admin.git-diff`",
|
|
379
|
+
" - ¿Existe este patrón en el código? → `common.grep-search`",
|
|
380
|
+
"1. **IDENTIFICAR** — Determina qué capacidad de la lista aplica a la solicitud.",
|
|
381
|
+
"2. **CONSULTAR** *(cuando aplique)* — Para gobernanza o decisiones históricas, llama a `common.knowledge-asker` primero.",
|
|
382
|
+
"3. **EJECUTAR** — Usa el comando higpertext exacto. No modifiques nombres de parámetros ni agregues flags no documentados.",
|
|
383
|
+
"4. **VERIFICAR** — Evalúa el output contra las reglas del Contrato Técnico de la capacidad ejecutada.",
|
|
384
|
+
"",
|
|
385
|
+
"> **Regla de oro**: bash directo (`grep`, `find`, `cat`, `wc`) solo está permitido cuando no existe una capacidad higpertext equivalente.",
|
|
386
|
+
"",
|
|
387
|
+
"Sintaxis CLI: {htx_cmd} <id-corto> --<param> <valor>",
|
|
388
|
+
""
|
|
389
|
+
],
|
|
390
|
+
"token_rules_lines": [
|
|
391
|
+
"## Reglas de reducción de tokens de salida (CRÍTICO)",
|
|
392
|
+
"",
|
|
393
|
+
"Para maximizar rendimiento y ahorrar tokens de salida, DEBES cumplir estas reglas estrictamente:",
|
|
394
|
+
"1. **Sé conciso**: Elimina introducciones, saludos y prosa innecesaria.",
|
|
395
|
+
"2. **Diffs mínimos**: Al proponer cambios de código o configuración, muestra SOLO las líneas modificadas o el diff exacto. Nunca imprimas bloques sin cambios ni archivos completos.",
|
|
396
|
+
"3. **Estructura limpia**: Usa viñetas o tablas en lugar de párrafos largos.",
|
|
397
|
+
"4. **Respuestas directas**: Entrega la acción, comando o resultado directamente sin preámbulos.",
|
|
398
|
+
""
|
|
399
|
+
],
|
|
400
|
+
"profile_rules_header": [
|
|
401
|
+
"# {agent_name_upper} — Reglas del Perfil",
|
|
402
|
+
"",
|
|
403
|
+
"> {description}",
|
|
404
|
+
"",
|
|
405
|
+
"---",
|
|
406
|
+
"",
|
|
407
|
+
"{system_prompt}",
|
|
408
|
+
"",
|
|
409
|
+
"---",
|
|
410
|
+
"",
|
|
411
|
+
"## Reglas de Comportamiento",
|
|
412
|
+
"- No improvises comandos ni parámetros fuera de los listados en AGENTS.md.",
|
|
413
|
+
"- No ejecutes acciones destructivas (deploy, delete, merge) sin confirmación explícita.",
|
|
414
|
+
"- Si una solicitud no tiene capacidad asignada, informa al usuario y detente.",
|
|
415
|
+
"- Nunca expongas valores de `ADO_PAT`, `GEMINI_API_KEY` ni otros secretos."
|
|
416
|
+
],
|
|
417
|
+
"profile_rules_governance_access": "- Tienes acceso a documentos de gobernanza — cítalos al justificar decisiones.",
|
|
418
|
+
"project_refs_header": "## PROJECT REFERENCES\n\nBefore planning structural or cross-file changes, consult the semantic graph. If the graph files are missing, run `htx task common.graph-rebuild` before producing the plan.",
|
|
419
|
+
"token_rules_summary": [
|
|
420
|
+
"## Reglas de reducción de tokens de salida",
|
|
421
|
+
"- Sé conciso, directo y usa viñetas o tablas en lugar de párrafos largos.",
|
|
422
|
+
"- Al mostrar cambios de código o configuración, emite SOLAMENTE las líneas modificadas o el diff exacto con mínimo contexto.",
|
|
423
|
+
""
|
|
424
|
+
],
|
|
425
|
+
"workflow_agent_header": [
|
|
426
|
+
"---",
|
|
427
|
+
"name: {wf_name}",
|
|
428
|
+
"description: {description}",
|
|
429
|
+
"mode: primary",
|
|
430
|
+
"permission:",
|
|
431
|
+
" bash: allow",
|
|
432
|
+
" read: allow",
|
|
433
|
+
" edit: allow",
|
|
434
|
+
" glob: allow",
|
|
435
|
+
" grep: allow",
|
|
436
|
+
"---",
|
|
437
|
+
"",
|
|
438
|
+
"# {wf_name_upper} Agent — {name}",
|
|
439
|
+
"",
|
|
440
|
+
"{description}",
|
|
441
|
+
"",
|
|
442
|
+
"---",
|
|
443
|
+
"",
|
|
444
|
+
"## Comportamiento",
|
|
445
|
+
"- Este agente ejecuta el workflow **{wf_id}**.",
|
|
446
|
+
"- Comando: `{htx_workflow_cmd} {wf_name} [--params]`",
|
|
447
|
+
""
|
|
448
|
+
]
|
|
449
|
+
}
|
|
450
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hidden": false,
|
|
3
|
+
"system_prompt_section_title": "Agent System Instructions",
|
|
4
|
+
"tool_names": [
|
|
5
|
+
"send_message",
|
|
6
|
+
"find_by_name",
|
|
7
|
+
"grep_search",
|
|
8
|
+
"view_file",
|
|
9
|
+
"list_dir",
|
|
10
|
+
"read_url_content",
|
|
11
|
+
"search_web",
|
|
12
|
+
"schedule",
|
|
13
|
+
"call_mcp_tool"
|
|
14
|
+
],
|
|
15
|
+
"system_prompt_config": {
|
|
16
|
+
"includeSections": [
|
|
17
|
+
"user_information",
|
|
18
|
+
"mcp_servers",
|
|
19
|
+
"skills",
|
|
20
|
+
"subagent_reminder",
|
|
21
|
+
"messaging",
|
|
22
|
+
"artifacts",
|
|
23
|
+
"user_rules"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"system_prompt_keys": [
|
|
27
|
+
{ "key": "use_when", "title": "Use when:" },
|
|
28
|
+
{ "key": "focus", "title": "Focus on:" },
|
|
29
|
+
{ "key": "risks_to_detect", "title": "Risks to detect:" }
|
|
30
|
+
]
|
|
31
|
+
}
|
config/app_config.json
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
{
|
|
2
|
+
"session": {
|
|
3
|
+
"default_assistant": "gemini",
|
|
4
|
+
"default_profile": "ado_admin",
|
|
5
|
+
"global_profile_names": ["global", "any", "all", ""],
|
|
6
|
+
"assistants": ["gemini", "claude", "copilot", "opencode", "github-copilot"],
|
|
7
|
+
"append_assistants": ["gemini", "copilot", "antigravity"]
|
|
8
|
+
},
|
|
9
|
+
"telemetry_reporter": {
|
|
10
|
+
"box_width": 56,
|
|
11
|
+
"bar_width": 10,
|
|
12
|
+
"empty_state": {
|
|
13
|
+
"title": "HIGPERTEXT TELEMETRY",
|
|
14
|
+
"lines": [
|
|
15
|
+
"Sin datos en .higpertext/state/telemetry.jsonl",
|
|
16
|
+
"Inicia una sesión para comenzar a recolectar."
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"section_labels": {
|
|
20
|
+
"correlations": "CORRELACIONES",
|
|
21
|
+
"top_caps": "TOP CAPACIDADES",
|
|
22
|
+
"top_tools": "TOP HERRAMIENTAS DIRECTAS (sin higpertext)",
|
|
23
|
+
"recent_activity": "ACTIVIDAD RECIENTE"
|
|
24
|
+
},
|
|
25
|
+
"activity_icons": {
|
|
26
|
+
"code-change": "✏ ",
|
|
27
|
+
"new-file": "+ ",
|
|
28
|
+
"file-read": "👁 ",
|
|
29
|
+
"bash-cmd": "$ ",
|
|
30
|
+
"higpertext-task": "⚡ ",
|
|
31
|
+
"skill-invoked": "🔧 ",
|
|
32
|
+
"commit": "📦 ",
|
|
33
|
+
"default": "· "
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"logger": {
|
|
37
|
+
"name": "higpertext",
|
|
38
|
+
"log_file": "htx.log"
|
|
39
|
+
},
|
|
40
|
+
"store": {
|
|
41
|
+
"reports_dir": "reports",
|
|
42
|
+
"index_file": "index.json",
|
|
43
|
+
"telemetry_file": "telemetry.jsonl",
|
|
44
|
+
"profile_file": "learned_profile.json",
|
|
45
|
+
"agents_dir": ".agents",
|
|
46
|
+
"settings_file": "settings.json",
|
|
47
|
+
"environment_file": "environment.json",
|
|
48
|
+
"session_file": "session.json"
|
|
49
|
+
},
|
|
50
|
+
"cache": {
|
|
51
|
+
"cache_dir": "__cache__",
|
|
52
|
+
"file_glob": "*.json",
|
|
53
|
+
"no_cache_capabilities": [
|
|
54
|
+
"memory-manager", "common.memory-manager",
|
|
55
|
+
"committer", "git.committer",
|
|
56
|
+
"session-start", "common.session-start",
|
|
57
|
+
"session-clean", "common.session-clean",
|
|
58
|
+
"guidelines-sync", "common.guidelines-sync",
|
|
59
|
+
"docs-sync", "common.docs-sync",
|
|
60
|
+
"sync-agents", "common.sync-agents",
|
|
61
|
+
"wiki-manager", "common.wiki-manager",
|
|
62
|
+
"agile-planner", "common.agile-planner",
|
|
63
|
+
"diff-reviewer", "common.diff-reviewer",
|
|
64
|
+
"git-diff", "git.diff", "diff",
|
|
65
|
+
"git-ls-files", "git.ls-files", "ls-files",
|
|
66
|
+
"git-rm", "git.rm", "rm",
|
|
67
|
+
"telemetry-report", "common.telemetry-report",
|
|
68
|
+
"test-resolver", "common.test-resolver",
|
|
69
|
+
"coverage-resolver", "common.coverage-resolver",
|
|
70
|
+
"quality-resolver", "common.quality-resolver",
|
|
71
|
+
"quality-scan", "common.quality-scan",
|
|
72
|
+
"hook-health", "common.hook-health"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"deployment": {
|
|
76
|
+
"agent_json": "agent.json",
|
|
77
|
+
"playbooks": ["spec", "plan", "build", "review", "compact"],
|
|
78
|
+
"no_skills_message": "_No active session — run `session-start` to mount skills._",
|
|
79
|
+
"no_subagents_message": "_No active session — run `session-start` to mount subagents._"
|
|
80
|
+
},
|
|
81
|
+
"providers": {
|
|
82
|
+
"ollama_base_url": "http://localhost:11434"
|
|
83
|
+
},
|
|
84
|
+
"context": {
|
|
85
|
+
"universal_skills": ["clean-code", "best-practices", "tdd-practices"],
|
|
86
|
+
"log_sep": "|||"
|
|
87
|
+
},
|
|
88
|
+
"docs": {
|
|
89
|
+
"index_link": "[Volver al Índice](../README.md)"
|
|
90
|
+
},
|
|
91
|
+
"rules": {
|
|
92
|
+
"pinned_capabilities": [
|
|
93
|
+
"common.grep-search",
|
|
94
|
+
"common.knowledge-asker",
|
|
95
|
+
"ado_admin.git-diff",
|
|
96
|
+
"common.code-skeletonizer"
|
|
97
|
+
],
|
|
98
|
+
"cli_name": "htx"
|
|
99
|
+
},
|
|
100
|
+
"assistants": {
|
|
101
|
+
"paths": {
|
|
102
|
+
"gemini": [".gemini/workflows", ".gemini/skills", ".gemini/agents"],
|
|
103
|
+
"antigravity": [".agents/workflows", ".agents/skills", ".agents/agents"],
|
|
104
|
+
"claude": [".claude/commands", ".claude/skills", ".claude/subagents"],
|
|
105
|
+
"opencode": [".opencode/agents", ".opencode/skills",".opencode/subagents"],
|
|
106
|
+
"copilot": [".github/workflows", ".github/skills", ".github/subagents"]
|
|
107
|
+
},
|
|
108
|
+
"skill_dirs": {
|
|
109
|
+
"claude": ".claude/skills",
|
|
110
|
+
"gemini": ".gemini/skills",
|
|
111
|
+
"antigravity": ".agents/skills",
|
|
112
|
+
"opencode": ".opencode/skills",
|
|
113
|
+
"copilot": ".github/skills"
|
|
114
|
+
},
|
|
115
|
+
"agent_dirs": {
|
|
116
|
+
"claude": ".claude/subagents",
|
|
117
|
+
"gemini": ".gemini/subagents",
|
|
118
|
+
"antigravity": ".agents/subagents",
|
|
119
|
+
"opencode": ".opencode/subagents",
|
|
120
|
+
"copilot": ".github/subagents"
|
|
121
|
+
},
|
|
122
|
+
"root_dirs": {
|
|
123
|
+
"gemini": ".gemini",
|
|
124
|
+
"claude": ".claude",
|
|
125
|
+
"copilot": ".github",
|
|
126
|
+
"opencode": ".opencode",
|
|
127
|
+
"antigravity": ".agents"
|
|
128
|
+
},
|
|
129
|
+
"display_names": {
|
|
130
|
+
"gemini": "Google Gemini",
|
|
131
|
+
"claude": "Claude Code",
|
|
132
|
+
"copilot": "GitHub Copilot",
|
|
133
|
+
"opencode": "OpenCode Assistant",
|
|
134
|
+
"antigravity": "Antigravity"
|
|
135
|
+
},
|
|
136
|
+
"rules_destinations": {
|
|
137
|
+
"claude": ".claude/rules/session-capabilities.md",
|
|
138
|
+
"opencode": ".opencode/rules/session-capabilities.md",
|
|
139
|
+
"gemini": "GEMINI.md",
|
|
140
|
+
"copilot": ".github/copilot-instructions.md",
|
|
141
|
+
"antigravity": "AGENTS.md"
|
|
142
|
+
},
|
|
143
|
+
"ignore_tools": ["Read", "Glob", "Grep", "WebFetch", "WebSearch"],
|
|
144
|
+
"hooks_dirs": {
|
|
145
|
+
"claude": ".claude/hooks",
|
|
146
|
+
"gemini": ".gemini/hooks",
|
|
147
|
+
"antigravity": ".agents/hooks",
|
|
148
|
+
"opencode": ".opencode/hooks",
|
|
149
|
+
"copilot": ".github/copilot/hooks",
|
|
150
|
+
"github-copilot":".github/copilot/hooks"
|
|
151
|
+
},
|
|
152
|
+
"aliases": {
|
|
153
|
+
"github-copilot": "copilot"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"profiles": {
|
|
157
|
+
"reserved": [
|
|
158
|
+
"base_agent",
|
|
159
|
+
"agent_designer",
|
|
160
|
+
"global",
|
|
161
|
+
"base_developer",
|
|
162
|
+
"base_operator",
|
|
163
|
+
"base_auditor"
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
"git": {
|
|
167
|
+
"status_labels": {
|
|
168
|
+
"M": "Modificado",
|
|
169
|
+
"A": "Nuevo",
|
|
170
|
+
"D": "Eliminado",
|
|
171
|
+
"R": "Renombrado"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|