klapcontext 0.3.2__tar.gz → 0.3.3__tar.gz

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.
Files changed (44) hide show
  1. {klapcontext-0.3.2/src/klapcontext.egg-info → klapcontext-0.3.3}/PKG-INFO +1 -1
  2. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/__init__.py +1 -1
  3. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/portal.py +5 -5
  4. {klapcontext-0.3.2 → klapcontext-0.3.3/src/klapcontext.egg-info}/PKG-INFO +1 -1
  5. {klapcontext-0.3.2 → klapcontext-0.3.3}/tests/test_klapcontext.py +2 -0
  6. {klapcontext-0.3.2 → klapcontext-0.3.3}/LICENSE +0 -0
  7. {klapcontext-0.3.2 → klapcontext-0.3.3}/README.md +0 -0
  8. {klapcontext-0.3.2 → klapcontext-0.3.3}/pyproject.toml +0 -0
  9. {klapcontext-0.3.2 → klapcontext-0.3.3}/setup.cfg +0 -0
  10. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/agent/__init__.py +0 -0
  11. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/agent/capabilities.py +0 -0
  12. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/agent/compiler.py +0 -0
  13. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/agent/impact.py +0 -0
  14. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/agent/intents.py +0 -0
  15. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/agent/models.py +0 -0
  16. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/agent/planner.py +0 -0
  17. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/agent/verification.py +0 -0
  18. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/agent/workflows.py +0 -0
  19. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/agent_context.py +0 -0
  20. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/cli.py +0 -0
  21. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/context_builder.py +0 -0
  22. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/detector.py +0 -0
  23. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/evidence.py +0 -0
  24. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/frameworks/__init__.py +0 -0
  25. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/frameworks/base.py +0 -0
  26. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/frameworks/fastapi.py +0 -0
  27. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/frameworks/generic_php.py +0 -0
  28. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/frameworks/laravel.py +0 -0
  29. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/frameworks/node.py +0 -0
  30. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/git.py +0 -0
  31. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/graphify.py +0 -0
  32. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/providers/__init__.py +0 -0
  33. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/providers/base.py +0 -0
  34. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/providers/code_intelligence.py +0 -0
  35. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/providers/graphify.py +0 -0
  36. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/providers/javascript_intelligence.py +0 -0
  37. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/providers/python_intelligence.py +0 -0
  38. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/semantic.py +0 -0
  39. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext/system.py +0 -0
  40. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext.egg-info/SOURCES.txt +0 -0
  41. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext.egg-info/dependency_links.txt +0 -0
  42. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext.egg-info/entry_points.txt +0 -0
  43. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext.egg-info/requires.txt +0 -0
  44. {klapcontext-0.3.2 → klapcontext-0.3.3}/src/klapcontext.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: klapcontext
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Make your repository understandable to humans and AI.
5
5
  Author: Willy Cordon
6
6
  License-Expression: Apache-2.0
@@ -1,3 +1,3 @@
1
1
  """KlapContext local engineering-context generator."""
2
2
 
3
- __version__ = "0.3.2"
3
+ __version__ = "0.3.3"
@@ -43,7 +43,7 @@ def system_map(interactions: dict) -> str:
43
43
  if edge.get("source") in points and edge.get("target") in points
44
44
  )
45
45
  boxes = "".join(
46
- f"<g class='map-node'><rect x='{points[node['name']][0] - 65}' y='{points[node['name']][1] - 24}' width='130' height='48' rx='8'/>"
46
+ f"<g class='map-node' tabindex='0' role='button' data-node='{e(node['name'])}' data-kind='{e(node.get('type', 'componente'))}'><rect x='{points[node['name']][0] - 65}' y='{points[node['name']][1] - 24}' width='130' height='48' rx='8'/>"
47
47
  f"<text x='{points[node['name']][0]}' y='{points[node['name']][1] - 2}'>{e(node['name'])[:18]}</text>"
48
48
  f"<text class='map-kind' x='{points[node['name']][0]}' y='{points[node['name']][1] + 13}'>{e(node.get('type', 'componente'))[:18]}</text></g>"
49
49
  for node in nodes
@@ -113,10 +113,10 @@ def render(context: dict, agent_text: str, graphify_files: list[str]) -> str:
113
113
  </section>
114
114
  <section class='map-card' aria-label='Mapa de interacción del sistema'><header><div><span class='icon'>⌘</span><div><h2>Mapa del sistema</h2><p>Componentes, relaciones y puntos de entrada en una sola lectura.</p></div></div><button class='outline' data-go='tecnico'>Explorar evidencia <span>→</span></button></header>{system_map(system.get('system_interactions', {}))}</section>
115
115
  <section class='quick-grid'>
116
- <article><b>{len(points)}</b><span>Puntos de entrada</span><small>CLI, HTTP, archivos o scheduler</small></article>
117
- <article><b>{len(flows)}</b><span>Flujos principales</span><small>Procesos y secuencias detectadas</small></article>
118
- <article><b>{len(evidence)}</b><span>Hechos confirmados</span><small>Con respaldo en el código</small></article>
119
- <article class='attention'><b>{len(unknowns)}</b><span>Incertidumbres</span><small>Aspectos pendientes de validar</small></article>
116
+ <article data-go='entradas'><b>{len(points)}</b><span>Puntos de entrada</span><small>CLI, HTTP, archivos o scheduler</small></article>
117
+ <article data-go='flujos'><b>{len(flows)}</b><span>Flujos principales</span><small>Procesos y secuencias detectadas</small></article>
118
+ <article data-go='evidencia'><b>{len(evidence)}</b><span>Hechos confirmados</span><small>Con respaldo en el código</small></article>
119
+ <article class='attention' data-go='evidencia'><b>{len(unknowns)}</b><span>Pendientes de validar</span><small>Aspectos con evidencia insuficiente</small></article>
120
120
  </section>
121
121
  <section class='dashboard-bottom'><div class='compact-panel'><header><h2>Cómo se ejecuta</h2><button class='text-button' data-go='entradas'>Ver entradas →</button></header><div class='surfaces'>{surface_cards}</div></div>
122
122
  <div class='compact-panel'><header><h2>Lectura recomendada</h2><button class='text-button' data-go='flujos'>Ver flujos →</button></header><ul class='start-list'>{start_rows}</ul></div></section>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: klapcontext
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Make your repository understandable to humans and AI.
5
5
  Author: Willy Cordon
6
6
  License-Expression: Apache-2.0
@@ -71,6 +71,8 @@ def test_portal_has_dashboard_and_real_views(tmp_path):
71
71
  assert "data-view='flujos'" in page
72
72
  assert "data-go='evidencia'" in page
73
73
  assert "Copiar contexto" in page
74
+ assert "data-go='entradas'" in page
75
+ assert "data-node=" in page or "map-empty" in page
74
76
 
75
77
 
76
78
  def test_cli_and_portal_ignore_scalar_stack_metadata(tmp_path, monkeypatch, capsys):
File without changes
File without changes
File without changes
File without changes