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,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ignore_patterns": [
|
|
3
|
+
".git/",
|
|
4
|
+
".venv/",
|
|
5
|
+
"node_modules/",
|
|
6
|
+
".higpertext/",
|
|
7
|
+
".memory/",
|
|
8
|
+
"__pycache__/",
|
|
9
|
+
"*.pyc",
|
|
10
|
+
".pytest_cache/",
|
|
11
|
+
"*.log",
|
|
12
|
+
""
|
|
13
|
+
],
|
|
14
|
+
"assistant_ignore_files": {
|
|
15
|
+
"gemini": [".geminiignore"],
|
|
16
|
+
"claude": [".claudeignore"],
|
|
17
|
+
"opencode": [".opencodeignore"],
|
|
18
|
+
"copilot": [".copilotignore"],
|
|
19
|
+
"github-copilot":[".copilotignore"],
|
|
20
|
+
"antigravity": [".antigravityignore"]
|
|
21
|
+
},
|
|
22
|
+
"gitignore_section": [
|
|
23
|
+
"",
|
|
24
|
+
"# higpertext Engine - archivos generados (no versionar)",
|
|
25
|
+
".higpertext/",
|
|
26
|
+
".claude/",
|
|
27
|
+
".gemini/",
|
|
28
|
+
".opencode/",
|
|
29
|
+
".agents/",
|
|
30
|
+
".memory/",
|
|
31
|
+
".wiki/",
|
|
32
|
+
"CLAUDE.md",
|
|
33
|
+
"GEMINI.md",
|
|
34
|
+
"AGENTS.md",
|
|
35
|
+
"opencode.json",
|
|
36
|
+
""
|
|
37
|
+
],
|
|
38
|
+
"guide_specs": {
|
|
39
|
+
"gemini": {
|
|
40
|
+
"filename": "GEMINI.md",
|
|
41
|
+
"title": "# ♊ Google Gemini Guide",
|
|
42
|
+
"intro": [
|
|
43
|
+
"> Plantilla de Integración y Herramientas para Gemini",
|
|
44
|
+
"\n## Configuración",
|
|
45
|
+
"Las reglas de los perfiles se inyectarán directamente en `GEMINI.md` en la raíz del proyecto cuando uses el comando `profile load`."
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"antigravity": {
|
|
49
|
+
"filename": "AGENTS.md",
|
|
50
|
+
"title": "# 🚀 Antigravity Guide",
|
|
51
|
+
"intro": [
|
|
52
|
+
"> Plantilla de Integración y Herramientas para Antigravity",
|
|
53
|
+
"\n## Configuración",
|
|
54
|
+
"Las reglas de los perfiles se inyectarán en `AGENTS.md` y `.agents/rules/higpertext_rules.md` cuando uses el comando `profile load`."
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"claude": {
|
|
58
|
+
"filename": "CLAUDE.md",
|
|
59
|
+
"title": "# 🧊 Claude Code Guide",
|
|
60
|
+
"intro": [
|
|
61
|
+
"> Plantilla de Integración y Herramientas para Claude",
|
|
62
|
+
"\n## Configuración",
|
|
63
|
+
"Las reglas de los perfiles se inyectarán directamente en `CLAUDE.md` en la raíz del proyecto cuando uses el comando `profile load`."
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"opencode": {
|
|
67
|
+
"filename": "AGENTS.md",
|
|
68
|
+
"title": "# 🌐 OpenCode Guide",
|
|
69
|
+
"intro": [
|
|
70
|
+
"> Plantilla de Integración y Herramientas para OpenCode",
|
|
71
|
+
"\n## Integración",
|
|
72
|
+
"Las reglas del perfil se inyectarán en `.opencode/rules/`, los workflows se registrarán como agentes en `.opencode/agents/`, y se generará `AGENTS.md` al ejecutar `profile load`."
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"copilot": {
|
|
76
|
+
"filename": "AGENTS.md",
|
|
77
|
+
"title": "# 🤖 GitHub Copilot Guide",
|
|
78
|
+
"intro": [
|
|
79
|
+
"> Plantilla de Integración y Herramientas para GitHub Copilot",
|
|
80
|
+
"\n## Configuración",
|
|
81
|
+
"Las instrucciones del perfil se inyectarán en `.github/copilot-instructions.md` y `.github/instructions/` al ejecutar `profile load`."
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"github-copilot": {
|
|
85
|
+
"filename": "AGENTS.md",
|
|
86
|
+
"title": "# 🤖 GitHub Copilot Guide",
|
|
87
|
+
"intro": [
|
|
88
|
+
"> Plantilla de Integración y Herramientas para GitHub Copilot",
|
|
89
|
+
"\n## Configuración",
|
|
90
|
+
"Las instrucciones del perfil se inyectarán en `.github/copilot-instructions.md` y `.github/instructions/` al ejecutar `profile load`."
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"agent": {
|
|
94
|
+
"filename": "agent.md",
|
|
95
|
+
"title": "# 🤖 higpertext Open Agent",
|
|
96
|
+
"intro": [
|
|
97
|
+
"> Plantilla de Integración y Herramientas para Agentes Abiertos",
|
|
98
|
+
"\n## Guía General de Agente",
|
|
99
|
+
"Este archivo expone el catálogo general de herramientas."
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"profiles_section": [
|
|
104
|
+
"\n## 👤 Creación y Gestión de Perfiles",
|
|
105
|
+
"Este espacio comienza vacío para que puedas personalizar la personalidad y alcances de tu asistente IA.",
|
|
106
|
+
"\n### Cargar un rol predefinido del catálogo de higpertext:",
|
|
107
|
+
"`htx profile load <nombre> --assistant <gemini|claude|copilot|opencode>`",
|
|
108
|
+
"*(Roles disponibles: devsecops, sre, pwsh_engineer, ado_admin, agents_architect)*",
|
|
109
|
+
"\n### Crear tu propio perfil personalizado:",
|
|
110
|
+
"1. En el repositorio de higpertext Engine, crea un archivo `src/config/profiles/mi-perfil.json` con esta estructura:",
|
|
111
|
+
"```json",
|
|
112
|
+
"{",
|
|
113
|
+
" \"name\": \"mi-perfil\",",
|
|
114
|
+
" \"description\": \"Descripción de mi rol personalizado\",",
|
|
115
|
+
" \"system_prompt\": \"Eres un asistente experto en...\",",
|
|
116
|
+
" \"capabilities\": [\"common.memory-manager\", \"common.knowledge-asker\"],",
|
|
117
|
+
" \"governance_access\": false",
|
|
118
|
+
"}",
|
|
119
|
+
"```",
|
|
120
|
+
"2. En la terminal de tu proyecto, ejecuta `htx profile load mi-perfil --assistant <asistente>` para inyectarlo.",
|
|
121
|
+
"\n---"
|
|
122
|
+
],
|
|
123
|
+
"rules_section": [
|
|
124
|
+
"\n## ⚡ Reglas de Reducción de Tokens de Salida (CRÍTICO)",
|
|
125
|
+
"Para maximizar el rendimiento de tu asistente IA en este proyecto, sigue estas reglas:",
|
|
126
|
+
"1. **Sé conciso**: Elimina introducciones, saludos y explicaciones innecesarias.",
|
|
127
|
+
"2. **Diffs mínimos**: Muestra solo las líneas modificadas o el diff exacto al proponer cambios.",
|
|
128
|
+
"3. **Estructura limpia**: Usa viñetas o tablas en lugar de párrafos de prosa.",
|
|
129
|
+
"4. **Respuestas directas**: Responde directamente con comandos.",
|
|
130
|
+
"\n## 💾 Persistencia y Memoria por Proyecto",
|
|
131
|
+
"El orquestador higpertext guarda automáticamente un historial en `.memory/` cada vez que ejecutas un comando.",
|
|
132
|
+
"```powershell",
|
|
133
|
+
"htx task memory-manager --action \"Resolución Bug X\" --status success --notes \"Causa raíz: ... Solución: ...\"",
|
|
134
|
+
"```",
|
|
135
|
+
"\n---"
|
|
136
|
+
]
|
|
137
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ignore_folders": [
|
|
3
|
+
".git", ".venv", "node_modules", ".higpertext",
|
|
4
|
+
".memory", "__pycache__", ".agents",
|
|
5
|
+
"assets", "vendor", "static", "dist", "build"
|
|
6
|
+
],
|
|
7
|
+
"ignore_suffixes": [
|
|
8
|
+
".min.js", ".min.css", ".map",
|
|
9
|
+
".png", ".jpg", ".jpeg", ".ico", ".gif", ".svg",
|
|
10
|
+
".html", ".htm"
|
|
11
|
+
],
|
|
12
|
+
"supported_suffixes": [
|
|
13
|
+
".py", ".ps1", ".psm1",
|
|
14
|
+
".js", ".jsx", ".ts", ".tsx",
|
|
15
|
+
".json", ".md"
|
|
16
|
+
],
|
|
17
|
+
"ignore_patterns": [
|
|
18
|
+
".git", ".venv", "__pycache__", "node_modules", ".higpertext",
|
|
19
|
+
".memory", "build", "dist", ".pytest_cache", ".agents",
|
|
20
|
+
"*.pyc", "*.pyo", "*.log", ".ignore", ".gitignore", ".geminiignore"
|
|
21
|
+
],
|
|
22
|
+
"ignore_files": [".gitignore", ".ignore", ".geminiignore"],
|
|
23
|
+
"parser_map": {
|
|
24
|
+
".py": "python",
|
|
25
|
+
".ps1": "powershell",
|
|
26
|
+
".psm1": "powershell",
|
|
27
|
+
".js": "typescript",
|
|
28
|
+
".jsx": "typescript",
|
|
29
|
+
".ts": "typescript",
|
|
30
|
+
".tsx": "typescript"
|
|
31
|
+
},
|
|
32
|
+
"paths": {
|
|
33
|
+
"capabilities_root": "src/higpertext/capabilities",
|
|
34
|
+
"profiles_root": "src/config/profiles"
|
|
35
|
+
},
|
|
36
|
+
"description_max_length": 80,
|
|
37
|
+
"test_group_markers": ["test", "spec", "fixture", "__test__"],
|
|
38
|
+
"markdown": {
|
|
39
|
+
"graph_title": "Project Semantic Graph",
|
|
40
|
+
"graph_description": "This file summarizes the codebase modules, classes, functions, and dependencies. It is dynamically generated to help agents locate symbols with minimal token consumption.",
|
|
41
|
+
"section_overview": "## Overview",
|
|
42
|
+
"section_layer_map": "## Layer Map",
|
|
43
|
+
"section_entry_points":"## Entry Points",
|
|
44
|
+
"section_dep_graph": "## Dependency Graph (Layer Level)",
|
|
45
|
+
"section_files_dir": "## Files & Symbols Directory",
|
|
46
|
+
"section_caps_index": "## Capabilities Index",
|
|
47
|
+
"section_profiles": "## Profiles Index",
|
|
48
|
+
"caps_description": "Tabla generada desde `src/capabilities/**/*.json`. Usa estos IDs con `htx task <id>`.",
|
|
49
|
+
"profiles_description":"Perfiles disponibles con sus capabilities habilitadas y hooks que activan.",
|
|
50
|
+
"caps_table_header": "| ID | Description | Hook Task | Entrypoint |",
|
|
51
|
+
"caps_table_sep": "|----|-------------|-----------|------------|",
|
|
52
|
+
"layer_table_header": "| Layer | Files with symbols |",
|
|
53
|
+
"layer_table_sep": "|-------|--------------------|"
|
|
54
|
+
},
|
|
55
|
+
"ranking": {
|
|
56
|
+
"base_tokens_per_symbol": 8,
|
|
57
|
+
"scores": {
|
|
58
|
+
"exact_name": 100,
|
|
59
|
+
"name_starts_with": 75,
|
|
60
|
+
"name_contains": 60,
|
|
61
|
+
"structural_fqn": 25,
|
|
62
|
+
"structural_file": 15,
|
|
63
|
+
"type_match": 10
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "workflow.ado-release-flow",
|
|
3
|
+
"name": "Ciclo Completo de Release en ADO",
|
|
4
|
+
"required_profile": "ado_admin",
|
|
5
|
+
"description": "Realiza commit de cambios locales con convención de Conventional Commits y registra la operación exitosa en la memoria del proyecto. La aprobación del PR es responsabilidad del humano revisor.",
|
|
6
|
+
"parameters": [
|
|
7
|
+
{
|
|
8
|
+
"name": "commit_msg",
|
|
9
|
+
"description": "Mensaje del commit (ej. 'feat: versión 5.1 release')",
|
|
10
|
+
"required": true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "repo_id",
|
|
14
|
+
"description": "Nombre o identificador del repositorio destino",
|
|
15
|
+
"required": true
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"execution_chain": [
|
|
19
|
+
{
|
|
20
|
+
"step": 1,
|
|
21
|
+
"task": "committer",
|
|
22
|
+
"params": {
|
|
23
|
+
"message": "{commit_msg}",
|
|
24
|
+
"files": "."
|
|
25
|
+
},
|
|
26
|
+
"on_failure": "abort"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"step": 2,
|
|
30
|
+
"task": "memory-manager",
|
|
31
|
+
"params": {
|
|
32
|
+
"action": "Release ADO — {repo_id}",
|
|
33
|
+
"status": "success",
|
|
34
|
+
"notes": "Commit realizado en {repo_id}: {commit_msg}. PR pendiente de aprobación humana."
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "workflow.docs-update",
|
|
3
|
+
"name": "Actualización y Sincronización Automática de Documentación",
|
|
4
|
+
"required_profile": "global",
|
|
5
|
+
"description": "Escanea las definiciones JSON de capacidades y perfiles, regenera los archivos del catálogo de referencia en docs/ y registra la operación en la memoria del sistema.",
|
|
6
|
+
"parameters": [
|
|
7
|
+
{
|
|
8
|
+
"name": "notes",
|
|
9
|
+
"description": "Notas opcionales para registrar en la memoria del sistema.",
|
|
10
|
+
"required": false,
|
|
11
|
+
"default": "Sincronización automatizada de catálogos de documentación completada."
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"execution_chain": [
|
|
15
|
+
{
|
|
16
|
+
"step": 1,
|
|
17
|
+
"task": "docs-sync",
|
|
18
|
+
"params": {},
|
|
19
|
+
"on_failure": "abort"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"step": 2,
|
|
23
|
+
"task": "memory-manager",
|
|
24
|
+
"params": {
|
|
25
|
+
"action": "Docs Auto-Update",
|
|
26
|
+
"status": "success",
|
|
27
|
+
"notes": "{notes}",
|
|
28
|
+
"tags": "docs,governance,sync"
|
|
29
|
+
},
|
|
30
|
+
"on_failure": "continue"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
id: workflow.governance-check
|
|
2
|
+
name: "Governance Check"
|
|
3
|
+
description: "Evalúa gobernanza en el scope indicado (commit/pr/deploy) y bloquea si hay violaciones críticas."
|
|
4
|
+
required_profile: "any"
|
|
5
|
+
|
|
6
|
+
parameters:
|
|
7
|
+
- name: scope
|
|
8
|
+
description: "Scope a evaluar: commit | pr | deploy"
|
|
9
|
+
required: true
|
|
10
|
+
- name: commit_message
|
|
11
|
+
description: "Mensaje de commit (para scope=commit)"
|
|
12
|
+
required: false
|
|
13
|
+
default: ""
|
|
14
|
+
- name: coverage_pct
|
|
15
|
+
description: "Cobertura actual % (para scope=pr o deploy)"
|
|
16
|
+
required: false
|
|
17
|
+
default: ""
|
|
18
|
+
|
|
19
|
+
execution_chain:
|
|
20
|
+
- step: enforce
|
|
21
|
+
capability: "common.governance-enforcer"
|
|
22
|
+
params:
|
|
23
|
+
scope: "{{ scope }}"
|
|
24
|
+
commit_message: "{{ commit_message }}"
|
|
25
|
+
coverage_pct: "{{ coverage_pct }}"
|
|
26
|
+
on_failure: abort
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "workflow.guidelines-sync",
|
|
3
|
+
"name": "Sincronización de Lineamientos de Gobernanza",
|
|
4
|
+
"required_profile": "global",
|
|
5
|
+
"description": "Descarga los lineamientos de gobernanza desde la fuente configurada (URL git o path local), actualiza el contrato central guidelines_contract.json, elimina el repositorio temporal si fue clonado, y registra la operación en memoria. La fuente se toma de HIGPERTEXT_GUIDELINES_SOURCE, environment.json[variables.guidelines_source] o del parámetro --source.",
|
|
6
|
+
"parameters": [
|
|
7
|
+
{
|
|
8
|
+
"name": "source",
|
|
9
|
+
"description": "URL git (https:// o git@) o path local con los lineamientos. Si se omite, usa HIGPERTEXT_GUIDELINES_SOURCE del entorno o el valor en environment.json.",
|
|
10
|
+
"required": false
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "notes",
|
|
14
|
+
"description": "Notas adicionales para registrar en memoria tras la sincronización.",
|
|
15
|
+
"required": false,
|
|
16
|
+
"default": "Lineamientos de gobernanza sincronizados exitosamente."
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"execution_chain": [
|
|
20
|
+
{
|
|
21
|
+
"step": 1,
|
|
22
|
+
"task": "guidelines-sync",
|
|
23
|
+
"params": {
|
|
24
|
+
"source": "{source}"
|
|
25
|
+
},
|
|
26
|
+
"on_failure": "abort"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"step": 2,
|
|
30
|
+
"task": "memory-manager",
|
|
31
|
+
"params": {
|
|
32
|
+
"action": "Sync Lineamientos de Gobernanza",
|
|
33
|
+
"status": "success",
|
|
34
|
+
"notes": "{notes}",
|
|
35
|
+
"tags": "governance,guidelines,sync"
|
|
36
|
+
},
|
|
37
|
+
"on_failure": "continue"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "workflow.higpertext-build",
|
|
3
|
+
"name": "Validación en Caliente del Build",
|
|
4
|
+
"required_profile": "global",
|
|
5
|
+
"description": "Pipeline de validación completo tras escribir código: calidad → tests → seguridad → resolución automática de deuda. Encadena code-quality, code-coverage, vuln-resolver y quality-resolver en orden, abortando ante fallos críticos.",
|
|
6
|
+
"parameters": [
|
|
7
|
+
{
|
|
8
|
+
"name": "path",
|
|
9
|
+
"description": "Directorio o archivo a validar.",
|
|
10
|
+
"required": false,
|
|
11
|
+
"default": "."
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "min_coverage",
|
|
15
|
+
"description": "Cobertura mínima requerida (%). Default: 80.",
|
|
16
|
+
"required": false,
|
|
17
|
+
"default": "80"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "output_report",
|
|
21
|
+
"description": "Nombre del reporte de calidad generado.",
|
|
22
|
+
"required": false,
|
|
23
|
+
"default": "build_quality_report.md"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"execution_chain": [
|
|
27
|
+
{
|
|
28
|
+
"step": 1,
|
|
29
|
+
"task": "code-quality",
|
|
30
|
+
"params": {
|
|
31
|
+
"path": "{path}",
|
|
32
|
+
"output_report": "{output_report}",
|
|
33
|
+
"min_score": "100"
|
|
34
|
+
},
|
|
35
|
+
"on_failure": "continue"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"step": 2,
|
|
39
|
+
"task": "code-coverage",
|
|
40
|
+
"params": {
|
|
41
|
+
"min_coverage": "{min_coverage}"
|
|
42
|
+
},
|
|
43
|
+
"on_failure": "continue"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"step": 3,
|
|
47
|
+
"task": "vuln-resolver",
|
|
48
|
+
"params": {
|
|
49
|
+
"path": "{path}"
|
|
50
|
+
},
|
|
51
|
+
"on_failure": "continue"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"step": 4,
|
|
55
|
+
"task": "quality-resolver",
|
|
56
|
+
"params": {
|
|
57
|
+
"report": "{output_report}"
|
|
58
|
+
},
|
|
59
|
+
"on_failure": "continue"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"step": 5,
|
|
63
|
+
"task": "memory-manager",
|
|
64
|
+
"params": {
|
|
65
|
+
"action": "Build Validation",
|
|
66
|
+
"status": "success",
|
|
67
|
+
"notes": "Pipeline higpertext-build completado: calidad, cobertura y seguridad verificadas.",
|
|
68
|
+
"tags": "build,quality,coverage,security"
|
|
69
|
+
},
|
|
70
|
+
"on_failure": "continue"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "workflow.higpertext-plan",
|
|
3
|
+
"name": "Pre-chequeo y Apertura de Sesión",
|
|
4
|
+
"required_profile": "global",
|
|
5
|
+
"description": "Valida la integridad de las capacidades técnicas e inicializa la sesión cargando selectivamente las skills y subagentes indicados.",
|
|
6
|
+
"parameters": [
|
|
7
|
+
{
|
|
8
|
+
"name": "skills",
|
|
9
|
+
"description": "Lista de skills separadas por comas",
|
|
10
|
+
"required": false
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "subagents",
|
|
14
|
+
"description": "Lista de subagentes separados por comas",
|
|
15
|
+
"required": false
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"execution_chain": [
|
|
19
|
+
{
|
|
20
|
+
"step": 1,
|
|
21
|
+
"task": "higpertext-tester",
|
|
22
|
+
"params": {
|
|
23
|
+
"level": "smoke"
|
|
24
|
+
},
|
|
25
|
+
"on_failure": "abort"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"step": 2,
|
|
29
|
+
"task": "session-start",
|
|
30
|
+
"params": {
|
|
31
|
+
"action": "start",
|
|
32
|
+
"skills": "{skills}",
|
|
33
|
+
"subagents": "{subagents}"
|
|
34
|
+
},
|
|
35
|
+
"on_failure": "abort"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "workflow.higpertext-review",
|
|
3
|
+
"name": "Certificación Final y Limpieza de la Sesión",
|
|
4
|
+
"required_profile": "global",
|
|
5
|
+
"description": "Verifica contratos del motor a nivel full, guarda los aprendizajes en la base de datos de memoria y desmonta la sesión temporal.",
|
|
6
|
+
"parameters": [
|
|
7
|
+
{
|
|
8
|
+
"name": "notes",
|
|
9
|
+
"description": "Notas y aprendizajes para la persistencia en memoria",
|
|
10
|
+
"required": true
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"execution_chain": [
|
|
14
|
+
{
|
|
15
|
+
"step": 1,
|
|
16
|
+
"task": "higpertext-tester",
|
|
17
|
+
"params": {
|
|
18
|
+
"level": "full"
|
|
19
|
+
},
|
|
20
|
+
"on_failure": "abort"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"step": 2,
|
|
24
|
+
"task": "memory-manager",
|
|
25
|
+
"params": {
|
|
26
|
+
"action": "Finalización de Sesión de Desarrollo",
|
|
27
|
+
"status": "success",
|
|
28
|
+
"notes": "{notes}"
|
|
29
|
+
},
|
|
30
|
+
"on_failure": "continue"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"step": 3,
|
|
34
|
+
"task": "session-clean",
|
|
35
|
+
"params": {
|
|
36
|
+
"action": "clean"
|
|
37
|
+
},
|
|
38
|
+
"on_failure": "continue"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "workflow.pr-quality-check",
|
|
3
|
+
"name": "Revisión Técnica de PR + Análisis de Calidad",
|
|
4
|
+
"required_profile": "ado_admin",
|
|
5
|
+
"description": "Ejecuta un análisis técnico completo sobre un Pull Request: primero genera el reporte de peer review (Clean Code, SOLID) y luego analiza la calidad del código del path afectado con score porcentual. El resultado es legible directamente por el usuario.",
|
|
6
|
+
"parameters": [
|
|
7
|
+
{
|
|
8
|
+
"name": "pr_id",
|
|
9
|
+
"description": "ID numérico del Pull Request a revisar en Azure DevOps.",
|
|
10
|
+
"required": true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "path",
|
|
14
|
+
"description": "Path del código a analizar para el score de calidad (ej. src/ o un archivo específico).",
|
|
15
|
+
"required": true
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "min_score",
|
|
19
|
+
"description": "Umbral mínimo de calidad aceptable (0-100). Por defecto 70.",
|
|
20
|
+
"required": false,
|
|
21
|
+
"default": "70"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"execution_chain": [
|
|
25
|
+
{
|
|
26
|
+
"step": 1,
|
|
27
|
+
"task": "pr-reviewer",
|
|
28
|
+
"params": {
|
|
29
|
+
"pr_id": "{pr_id}",
|
|
30
|
+
"output_report": "pr_review_{pr_id}.md"
|
|
31
|
+
},
|
|
32
|
+
"on_failure": "continue"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"step": 2,
|
|
36
|
+
"task": "code-quality",
|
|
37
|
+
"params": {
|
|
38
|
+
"path": "{path}",
|
|
39
|
+
"output_report": "code_quality_pr_{pr_id}.md",
|
|
40
|
+
"min_score": "{min_score}"
|
|
41
|
+
},
|
|
42
|
+
"on_failure": "continue"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"step": 3,
|
|
46
|
+
"task": "memory-manager",
|
|
47
|
+
"params": {
|
|
48
|
+
"action": "PR Quality Check #{pr_id}",
|
|
49
|
+
"status": "success",
|
|
50
|
+
"notes": "Revisión técnica y análisis de calidad completados para PR #{pr_id}. Reportes en .higpertext/reportes/.",
|
|
51
|
+
"tags": "pr-review,code-quality,governance"
|
|
52
|
+
},
|
|
53
|
+
"on_failure": "continue"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "workflow.quality-remediation",
|
|
3
|
+
"name": "Plan de Remediación y Reducción Progresiva de Deuda",
|
|
4
|
+
"required_profile": "global",
|
|
5
|
+
"description": "Escanea el código para detectar violaciones a las compuertas de calidad, genera un reporte detallado y crea un plan de acción progresivo (TODO checklist) para resolver la deuda técnica paso a paso sin saturación de contexto.",
|
|
6
|
+
"parameters": [
|
|
7
|
+
{
|
|
8
|
+
"name": "path",
|
|
9
|
+
"description": "Directorio o archivo a escanear en busca de deuda técnica.",
|
|
10
|
+
"required": true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "output_report",
|
|
14
|
+
"description": "Nombre del reporte de calidad resultante.",
|
|
15
|
+
"required": false,
|
|
16
|
+
"default": "code_quality_report.md"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "todo_file",
|
|
20
|
+
"description": "Nombre del archivo de tareas progresivas resultante.",
|
|
21
|
+
"required": false,
|
|
22
|
+
"default": "remediation_todo.md"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"execution_chain": [
|
|
26
|
+
{
|
|
27
|
+
"step": 1,
|
|
28
|
+
"task": "code-quality",
|
|
29
|
+
"params": {
|
|
30
|
+
"path": "{path}",
|
|
31
|
+
"output_report": "{output_report}",
|
|
32
|
+
"min_score": "100"
|
|
33
|
+
},
|
|
34
|
+
"on_failure": "continue"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"step": 2,
|
|
38
|
+
"task": "quality-resolver",
|
|
39
|
+
"params": {
|
|
40
|
+
"report": "{output_report}",
|
|
41
|
+
"todo_file": "{todo_file}"
|
|
42
|
+
},
|
|
43
|
+
"on_failure": "abort"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"step": 3,
|
|
47
|
+
"task": "memory-manager",
|
|
48
|
+
"params": {
|
|
49
|
+
"action": "Quality Remediation Plan",
|
|
50
|
+
"status": "success",
|
|
51
|
+
"notes": "Plan de remediación progresiva generado exitosamente en .higpertext/reportes/{todo_file}",
|
|
52
|
+
"tags": "quality,remediation,debt"
|
|
53
|
+
},
|
|
54
|
+
"on_failure": "continue"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
higpertext/__init__.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""High-level package exports for the higpertext package."""
|
|
2
|
+
|
|
3
|
+
from higpertext.kernel import HigpertextEngine, get_htx_cmd, HTX_CMD, HTX_WORKFLOW_CMD
|
|
4
|
+
from higpertext.hooks import HookRenderer, HookRegistry, SkillHookCompiler
|
|
5
|
+
from higpertext.adapters import get_adapter_class
|
|
6
|
+
from higpertext.kernel.application.telemetry import TelemetryAggregator
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"HigpertextEngine",
|
|
10
|
+
"get_htx_cmd",
|
|
11
|
+
"HTX_CMD",
|
|
12
|
+
"HTX_WORKFLOW_CMD",
|
|
13
|
+
"HookRenderer",
|
|
14
|
+
"HookRegistry",
|
|
15
|
+
"SkillHookCompiler",
|
|
16
|
+
"get_adapter_class",
|
|
17
|
+
"TelemetryAggregator",
|
|
18
|
+
]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Adapters package for Higpertext."""
|
|
2
|
+
|
|
3
|
+
from higpertext.adapters.adapter_utils import (
|
|
4
|
+
HTX_CMD,
|
|
5
|
+
HTX_WORKFLOW_CMD,
|
|
6
|
+
load_session,
|
|
7
|
+
get_adapter_class,
|
|
8
|
+
delegation_rule_lines,
|
|
9
|
+
workflow_trigger_lines,
|
|
10
|
+
)
|
|
11
|
+
from higpertext.adapters.claude_adapter.claude_adapter import ClaudeAdapter
|
|
12
|
+
from higpertext.adapters.gemini_adapter.gemini_adapter import GeminiAdapter
|
|
13
|
+
from higpertext.adapters.copilot_adapter.copilot_adapter import CopilotAdapter
|
|
14
|
+
from higpertext.adapters.open_code_adapter.open_code_adapter import OpenCodeAdapter
|
|
15
|
+
|
|
16
|
+
__all__ = [
|
|
17
|
+
"HTX_CMD",
|
|
18
|
+
"HTX_WORKFLOW_CMD",
|
|
19
|
+
"load_session",
|
|
20
|
+
"get_adapter_class",
|
|
21
|
+
"delegation_rule_lines",
|
|
22
|
+
"workflow_trigger_lines",
|
|
23
|
+
"ClaudeAdapter",
|
|
24
|
+
"GeminiAdapter",
|
|
25
|
+
"CopilotAdapter",
|
|
26
|
+
"OpenCodeAdapter",
|
|
27
|
+
]
|