tri-star-symbolic-assembly-lang 0.1.65__py3-none-any.whl → 0.1.67__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tri-star_symbolic_assembly_lang
3
- Version: 0.1.65
3
+ Version: 0.1.67
4
4
  Summary: TriStar Assembly Language Core + Brian Spiral Tools
5
5
  Author: Sam Howells
6
6
  License: ## LICENCE Options for `Brian`
@@ -2,7 +2,7 @@ crawler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  crawler/madmonkey_crawler.py,sha256=itsyxObNBb_9Au3J1Ft6RTNw3dE65fO-WALLD0WFmBM,541
3
3
  madmonkey/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  madmonkey/intake.py,sha256=R48YOPWn3ljts5dFASZLHpPsycKeONeOCvvIzucyMzU,378
5
- tri_star_symbolic_assembly_lang-0.1.65.dist-info/licenses/LICENSE,sha256=mN9d_5LOKa9NB-vFLGwqAp8bggJwjaQ0Pm4DHFMBmIs,2123
5
+ tri_star_symbolic_assembly_lang-0.1.67.dist-info/licenses/LICENSE,sha256=mN9d_5LOKa9NB-vFLGwqAp8bggJwjaQ0Pm4DHFMBmIs,2123
6
6
  tsal/__init__.py,sha256=M4J9PrnaatjapRVNPxxpV31cYrB1u_WZyp-qEaZzo6c,3220
7
7
  tsal/agents/__init__.py,sha256=a3HUdwlTN8d0ripzeftDXuG--R0uA964Rz1tx4EslIs,133
8
8
  tsal/agents/priority_research_team.py,sha256=cHaG52YeApAa9Z7H9fCHtQTF0LgEHTy3azqldnJ58yE,1330
@@ -61,7 +61,7 @@ tsal/rl/madmonkey.py,sha256=fW3XfeXKoyfpLnENWkU9y5qqlAysBybhsEs77mLASVc,1870
61
61
  tsal/schemas/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
62
62
  tsal/schemas/python.json,sha256=zt84E7uxy6EvegP4o8A4Pho0vjtkJMdaP_pgV0flCec,691
63
63
  tsal/singer/__init__.py,sha256=Ihe-bvSOoKR3T6H2QJSylYawE3vewyQEghqZyvx1Tfg,282
64
- tsal/tools/__init__.py,sha256=w8fucCdBoOb6GVBU6SJ1ZHf4D3ox3HBLNUrMNIzxn1A,1373
64
+ tsal/tools/__init__.py,sha256=K6MBguDP6y8yZZ5gwapezlj0XF231k7QqcDB9k0_JAo,1472
65
65
  tsal/tools/aletheia_checker.py,sha256=7amOD-8ab_rh2GXbER8qtI4t_9ONcjTWLttP_X3Q1Fo,1529
66
66
  tsal/tools/alignment_guard.py,sha256=kKGtgk7ldFlon-cUNhrh41onIB_WuiQtQWTSQ-i7IEQ,602
67
67
  tsal/tools/archetype_fetcher.py,sha256=PBbuDVK38z_QHu4IxkLwU3NYH78JvN4qSbDFRlXpOZg,1323
@@ -72,12 +72,12 @@ tsal/tools/issue_agent.py,sha256=GplkP9i2R0CsbI1HdOTujmHOWLJ7SRmC0sXy35MdhXA,238
72
72
  tsal/tools/meshkeeper.py,sha256=Y3R8P6M3jWXCwfp7EMp7jWcqFcmnH1v3YfagZS4yHqE,2474
73
73
  tsal/tools/module_draft.py,sha256=jfS9bU9nJMq1yp7EHD6oTwJQ6eBYzFdr4L1pen_JrIQ,1739
74
74
  tsal/tools/party_tricks.py,sha256=AhIchNiRvCW0BEtA0cdclI0udm7xf17_9DM99KE1h-U,3797
75
- tsal/tools/proactive_scanner.py,sha256=D9CH67RB9pjEIuFxtHRHBagxffXCKMknbBXUnHIT1YQ,1787
75
+ tsal/tools/proactive_scanner.py,sha256=mEj5pVWFNpiak3uGz0scM809WSkYDDGn1d4zls0qd94,2101
76
76
  tsal/tools/reflect.py,sha256=ZKX8FczfGgoHAiJF3uYXAbgTUUbamF5UyJA3zVt60kI,1296
77
77
  tsal/tools/spiral_audit.py,sha256=i6lYYpdkHlMGumt5V_rqReAqQEG2YHpUmEjebYRM8_o,2542
78
78
  tsal/tools/state_tracker.py,sha256=OoJlXNlBpypBve5-IJIRZ3E1NxQaI7sUYt437cF-D4c,1539
79
79
  tsal/tools/task_agent.py,sha256=gzavIKgrGinKOBZFZMsdh0AoUVdT7WtCryDIQ4c2Tuo,1403
80
- tsal/tools/watchdog.py,sha256=3BXnqFJOl8x6c0J1b7aSmZn5N-PTe-hos_kzTlrcbpk,2094
80
+ tsal/tools/watchdog.py,sha256=vRXT0ZXDNYkuGPBDeH_L3CTLIEFz3S5r7iZ9HUszfn0,2069
81
81
  tsal/tools/brian/__init__.py,sha256=PBoCVe7g_Y-Q7irOBRzPvdbmqJrlvqdd_q-qnKK7g3c,191
82
82
  tsal/tools/brian/optimizer.py,sha256=CzdUrEmFfQt5x5iYdhK6Trk-ViIsdnxO5hngwF9p3Ws,7308
83
83
  tsal/tools/kintsugi/__init__.py,sha256=xp3FdbFCEghceasAdl4UEi2OHJ3fZTJzAr4zZd5wIgM,38
@@ -97,8 +97,8 @@ tsal/utils/language_db.py,sha256=mw8gVeMK4I6Z0QeQHNAfHYTriAeDfhVVmB911oFdPqM,151
97
97
  tsal/utils/octopus_api.py,sha256=1JrhYjbbAbN1-bkCAiInuUNh8bb7EJxB4SHh3Fwq3qs,1315
98
98
  tsal/utils/system_status.py,sha256=cHjG3Ow4YJADYJY383_OdEMEiJAngxyq01z0ADCzV4s,1054
99
99
  tsal/utils/wikipedia_api.py,sha256=W5kf423wzH9FoqO5eDRuJQMuTpTpiUGjVXHa0fLlXSQ,1303
100
- tri_star_symbolic_assembly_lang-0.1.65.dist-info/METADATA,sha256=ki9VaCPyQpY3pJagbO0VKmblBiqKnSVS5zWsncUFEzk,13737
101
- tri_star_symbolic_assembly_lang-0.1.65.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
102
- tri_star_symbolic_assembly_lang-0.1.65.dist-info/entry_points.txt,sha256=O8cY2PLbPf53e8gNbI8lFqupalxXYgrnex0eNtvvaNw,426
103
- tri_star_symbolic_assembly_lang-0.1.65.dist-info/top_level.txt,sha256=r1-Vpw1iGasgah8k-86xzqpGDT8o-A0P-_6ZNrQ39i0,23
104
- tri_star_symbolic_assembly_lang-0.1.65.dist-info/RECORD,,
100
+ tri_star_symbolic_assembly_lang-0.1.67.dist-info/METADATA,sha256=JE_2PSjdJhq9-d5Rx21PWPLva84dtYbt_kv8MMj7mbs,13737
101
+ tri_star_symbolic_assembly_lang-0.1.67.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
102
+ tri_star_symbolic_assembly_lang-0.1.67.dist-info/entry_points.txt,sha256=O8cY2PLbPf53e8gNbI8lFqupalxXYgrnex0eNtvvaNw,426
103
+ tri_star_symbolic_assembly_lang-0.1.67.dist-info/top_level.txt,sha256=r1-Vpw1iGasgah8k-86xzqpGDT8o-A0P-_6ZNrQ39i0,23
104
+ tri_star_symbolic_assembly_lang-0.1.67.dist-info/RECORD,,
tsal/tools/__init__.py CHANGED
@@ -14,7 +14,12 @@ from .state_tracker import update_entry, show_entry
14
14
  from .archetype_fetcher import fetch_online_mesh, merge_mesh
15
15
  from .task_agent import load_tasks, run_task
16
16
  from .issue_agent import create_issue, handle_http_error
17
- from .proactive_scanner import scan_todos, scan_typos
17
+ from .proactive_scanner import (
18
+ scan_todos,
19
+ scan_typos,
20
+ scan_todo_file,
21
+ scan_typos_file,
22
+ )
18
23
 
19
24
  __all__ = [
20
25
  "real_time_codec",
@@ -46,4 +51,6 @@ __all__ = [
46
51
  "handle_http_error",
47
52
  "scan_todos",
48
53
  "scan_typos",
54
+ "scan_todo_file",
55
+ "scan_typos_file",
49
56
  ]
@@ -9,16 +9,28 @@ from typing import Dict, List, Tuple
9
9
  from .aletheia_checker import scan_file as _scan_file
10
10
 
11
11
 
12
+ def scan_todo_file(path: str | Path) -> List[Tuple[int, str]]:
13
+ """Return TODO lines from ``path``."""
14
+ file = Path(path)
15
+ hits: List[Tuple[int, str]] = []
16
+ with open(file, "r", encoding="utf-8", errors="ignore") as fh:
17
+ for lineno, line in enumerate(fh, 1):
18
+ if "TODO" in line:
19
+ hits.append((lineno, line.strip()))
20
+ return hits
21
+
22
+
23
+ def scan_typos_file(path: str | Path) -> List[Tuple[int, str]]:
24
+ """Return probable typos from ``path``."""
25
+ return _scan_file(Path(path))
26
+
27
+
12
28
  def scan_todos(base: str = "src") -> Dict[str, List[Tuple[int, str]]]:
13
29
  """Return TODO comments grouped by file."""
14
30
  root = Path(base)
15
31
  results: Dict[str, List[Tuple[int, str]]] = {}
16
32
  for path in root.rglob("*.py"):
17
- hits: List[Tuple[int, str]] = []
18
- with open(path, "r", encoding="utf-8", errors="ignore") as fh:
19
- for lineno, line in enumerate(fh, 1):
20
- if "TODO" in line:
21
- hits.append((lineno, line.strip()))
33
+ hits = scan_todo_file(path)
22
34
  if hits:
23
35
  results[str(path)] = hits
24
36
  return results
@@ -27,7 +39,7 @@ def scan_todos(base: str = "src") -> Dict[str, List[Tuple[int, str]]]:
27
39
  def _scan_root(root: Path) -> Dict[str, List[Tuple[int, str]]]:
28
40
  typos: Dict[str, List[Tuple[int, str]]] = {}
29
41
  for file in root.rglob("*.py"):
30
- hits = _scan_file(file)
42
+ hits = scan_typos_file(file)
31
43
  if hits:
32
44
  typos[str(file)] = hits
33
45
  return typos
tsal/tools/watchdog.py CHANGED
@@ -7,17 +7,17 @@ import time
7
7
  from pathlib import Path
8
8
 
9
9
  from tsal.tools.brian import analyze_and_repair
10
- from tsal.tools.aletheia_checker import scan_file as _scan_file
10
+ from tsal.tools.proactive_scanner import scan_todo_file, scan_typos_file
11
11
 
12
12
 
13
13
  def _check_todo(path: Path) -> None:
14
- text = path.read_text(encoding="utf-8", errors="ignore")
15
- if "TODO" in text:
14
+ hits = scan_todo_file(path)
15
+ if hits:
16
16
  print(f"[Watchdog] TODO found in {path}")
17
17
 
18
18
 
19
19
  def _check_typos(path: Path) -> None:
20
- hits = _scan_file(path)
20
+ hits = scan_typos_file(path)
21
21
  if hits:
22
22
  print(f"[Watchdog] Typos found in {path}: {len(hits)}")
23
23