ambitgraph 0.9.2__tar.gz → 0.9.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 (116) hide show
  1. {ambitgraph-0.9.2/ambitgraph.egg-info → ambitgraph-0.9.3}/PKG-INFO +1 -1
  2. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/langmirror.py +16 -1
  3. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_telegraph/export.py +3 -1
  4. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_telegraph/responsibility.py +3 -1
  5. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/cli.py +7 -3
  6. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/codelib.py +3 -0
  7. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/edges.py +1495 -69
  8. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/gate_check.py +114 -32
  9. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/harvest.py +3 -2
  10. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/langs.py +27 -20
  11. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/merge.py +33 -8
  12. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/responsibility.py +3 -2
  13. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/symbols.py +15 -1
  14. {ambitgraph-0.9.2 → ambitgraph-0.9.3/ambitgraph.egg-info}/PKG-INFO +1 -1
  15. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/pyproject.toml +1 -1
  16. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/LICENSE +0 -0
  17. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/MANIFEST.in +0 -0
  18. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/README.md +0 -0
  19. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_contracts/__init__.py +0 -0
  20. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_contracts/edge.py +0 -0
  21. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_contracts/envelope.py +0 -0
  22. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_contracts/fields.py +0 -0
  23. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_contracts/grant.py +0 -0
  24. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_contracts/household.py +0 -0
  25. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/__init__.py +0 -0
  26. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/__main__.py +0 -0
  27. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/ambit-map-enrich.md +0 -0
  28. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/ambit-mapllm-contract.md +0 -0
  29. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/assistant.py +0 -0
  30. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/cli.py +0 -0
  31. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/daemon.py +0 -0
  32. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/dialects/__init__.py +0 -0
  33. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/dialects/contract.py +0 -0
  34. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/dialects/express_pack.py +0 -0
  35. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/dialects/fastapi_pack.py +0 -0
  36. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/dialects/flask_pack.py +0 -0
  37. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/dialects/nextjs_pack.py +0 -0
  38. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/dialects/supabase_pack.py +0 -0
  39. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/load.py +0 -0
  40. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/mapllm.py +0 -0
  41. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/model.py +0 -0
  42. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/orchestrate.py +0 -0
  43. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/registry.py +0 -0
  44. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_map/serve.py +0 -0
  45. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_telegraph/__init__.py +0 -0
  46. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_telegraph/cli.py +0 -0
  47. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_telegraph/ledger.py +0 -0
  48. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambit_telegraph/store.py +0 -0
  49. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/WALKTHROUGH.md +0 -0
  50. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/__init__.py +0 -0
  51. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/__main__.py +0 -0
  52. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/_delimited.py +0 -0
  53. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/cockpit.py +0 -0
  54. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/config.py +0 -0
  55. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/console.py +0 -0
  56. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/demo.py +0 -0
  57. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/design_tokens.py +0 -0
  58. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/docs_discovery.py +0 -0
  59. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/doctor.py +0 -0
  60. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/duplication.py +0 -0
  61. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/emit.py +0 -0
  62. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/engine_identity.py +0 -0
  63. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/estimate.py +0 -0
  64. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/eval.py +0 -0
  65. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/explain.py +0 -0
  66. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/explain_stage.py +0 -0
  67. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/families.py +0 -0
  68. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/feeds.py +0 -0
  69. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/gate.py +0 -0
  70. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/gate_server.py +0 -0
  71. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/html_safe.py +0 -0
  72. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/inventory.py +0 -0
  73. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/jscalls.py +0 -0
  74. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/jsobjects.py +0 -0
  75. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/mds.py +0 -0
  76. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/merge_jsp.py +0 -0
  77. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/objects.py +0 -0
  78. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/__init__.py +0 -0
  79. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/_init_js.py +0 -0
  80. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/charts.js +0 -0
  81. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/classdiagram.js +0 -0
  82. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/escape.js +0 -0
  83. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/filterpanel.js +0 -0
  84. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/graph.js +0 -0
  85. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/insideview.js +0 -0
  86. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/library.js +0 -0
  87. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/next_embed.css +0 -0
  88. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/objectcard.js +0 -0
  89. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/paths.js +0 -0
  90. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/search.js +0 -0
  91. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/siderail.js +0 -0
  92. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/standalone.py +0 -0
  93. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/omniscient_next/wholemap.js +0 -0
  94. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/parameterize.py +0 -0
  95. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/pipeline.py +0 -0
  96. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/portal.py +0 -0
  97. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/prompts.py +0 -0
  98. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/pycalls.py +0 -0
  99. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/pyshapes.py +0 -0
  100. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/ratify.py +0 -0
  101. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/report.py +0 -0
  102. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/reports.py +0 -0
  103. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/sample.py +0 -0
  104. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/secretary.py +0 -0
  105. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/shell.py +0 -0
  106. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/stages.py +0 -0
  107. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/tables.py +0 -0
  108. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/tasks.py +0 -0
  109. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/text_capture.py +0 -0
  110. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph/urcode.py +0 -0
  111. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph.egg-info/SOURCES.txt +0 -0
  112. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph.egg-info/dependency_links.txt +0 -0
  113. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph.egg-info/entry_points.txt +0 -0
  114. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph.egg-info/requires.txt +0 -0
  115. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/ambitgraph.egg-info/top_level.txt +0 -0
  116. {ambitgraph-0.9.2 → ambitgraph-0.9.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ambitgraph
3
- Version: 0.9.2
3
+ Version: 0.9.3
4
4
  Summary: Read-only codebase scan: reusable units, families, roles, ownership candidates, duplication.
5
5
  Author: AmbitGraph
6
6
  License: Proprietary
@@ -325,7 +325,7 @@ KIND_READER_LANGS = {
325
325
  # "rb" joins this row the same way: langs.py's rb
326
326
  # LangSpec declares call_lane=True and edges.py builds Ruby its own
327
327
  # definer pool, landed independently of this stage.
328
- "calls": frozenset({"jsp", "java", "py", "js", "c", "rb", "cpp"}),
328
+ "calls": frozenset({"jsp", "java", "py", "js", "c", "rb", "cpp", "go"}),
329
329
  "reference/script": frozenset({"jsp"}),
330
330
  "route/mount": frozenset({"py", "js"}),
331
331
  "ui/component-use": frozenset({"js"}),
@@ -474,6 +474,21 @@ BLIND_SENTENCE_LANGS = (
474
474
  _GO),
475
475
  ("A Go import inside the declared module naming a directory with no "
476
476
  "Go file this scan reads", _GO),
477
+ # The Go CALL lane's held causes, each shipped only on a scan where its
478
+ # own cause occurred. They are separate rows because they are different
479
+ # admissions: the first says the callee is outside the repository, the
480
+ # second that the caller's own text does not say what type the receiver
481
+ # holds, the third that the name is a value the caller's own function
482
+ # bound, the fourth that no module line says which directory an import
483
+ # names, the fifth that a file stays in the lane although the go tool
484
+ # rejects its build constraint.
485
+ ("A Go call qualified by a package outside the declared module", _GO),
486
+ ("A Go call qualified by anything but an import its file binds", _GO),
487
+ ("A Go call to a name its own function binds", _GO),
488
+ ("A Go call qualified by an import, in a scan with no module directive",
489
+ _GO),
490
+ ("A Go call into or out of a file whose build constraint cannot be read",
491
+ _GO),
477
492
  # Ruby's own two STATIC, structural gaps (ambitgraph.symbols.
478
493
  # BLIND_SENTENCES), anchored on their opening words -- the same
479
494
  # shape as the C declaration grammar's own gaps just above.
@@ -212,7 +212,9 @@ def _read_summaries(path):
212
212
  except BaseException:
213
213
  return {}, 0
214
214
  found, unmatched = {}, 0
215
- for line in raw.splitlines():
215
+ # the text is cut at "\n" alone -- read_text has already folded CR LF and a lone
216
+ # CR into it, so a line-separator character inside a summary row stays inside it
217
+ for line in raw.split("\n"):
216
218
  if not line.strip():
217
219
  continue
218
220
  try:
@@ -167,8 +167,10 @@ def read_records(root) -> tuple:
167
167
  if not path.exists():
168
168
  return ()
169
169
  out = []
170
+ # the text is cut at "\n" alone -- read_text has already folded CR LF and a lone
171
+ # CR into it -- so lineno is the line a text editor shows
170
172
  for lineno, line in enumerate(
171
- path.read_text(encoding="utf-8").splitlines(), start=1):
173
+ path.read_text(encoding="utf-8").split("\n"), start=1):
172
174
  if not line.strip():
173
175
  continue
174
176
  try:
@@ -1605,7 +1605,9 @@ def _load_events(runs_dir: Path) -> list:
1605
1605
  if not p.exists():
1606
1606
  return []
1607
1607
  out = []
1608
- for ln in p.read_text(encoding="utf-8", errors="replace").splitlines():
1608
+ # the text is cut at "\n" alone -- read_text has already folded CR LF and a lone
1609
+ # CR into it, so a line-separator character inside a record stays inside it
1610
+ for ln in p.read_text(encoding="utf-8", errors="replace").split("\n"):
1609
1611
  try:
1610
1612
  out.append(json.loads(ln))
1611
1613
  except json.JSONDecodeError:
@@ -1624,8 +1626,10 @@ def _load_disclosures(scan_dir: Path) -> tuple:
1624
1626
  return [], 0
1625
1627
  out = []
1626
1628
  # errors="replace", not strict: a torn multi-byte append must degrade to
1627
- # one skipped/mangled line, never kill the whole cockpit build
1628
- for ln in p.read_text(encoding="utf-8", errors="replace").splitlines():
1629
+ # one skipped/mangled line, never kill the whole cockpit build; the text
1630
+ # is cut at "\n" alone -- read_text has already folded CR LF and a lone
1631
+ # CR into it, so a line-separator character inside a record stays inside it
1632
+ for ln in p.read_text(encoding="utf-8", errors="replace").split("\n"):
1629
1633
  try:
1630
1634
  out.append(json.loads(ln))
1631
1635
  except json.JSONDecodeError:
@@ -412,6 +412,9 @@ def _declared_blind_langs(edges_coverage, sym_coverage=None) -> dict:
412
412
  # golden included -- this is the line that prevents that.
413
413
  record(edges.rb_include_blind_sentences(edges_coverage or {}))
414
414
  record(edges.rb_call_blind_sentences(edges_coverage or {}))
415
+ # The Go lanes build theirs per scan too, from the same coverage cell.
416
+ record(edges.go_include_blind_sentences(edges_coverage or {}))
417
+ record(edges.go_call_blind_sentences(edges_coverage or {}))
415
418
  record(symbols.rb_symbol_blind_sentences(sym_coverage or {}))
416
419
  return table
417
420