@theglitchking/babel-fish 2.0.1 → 2.0.2
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.
|
Binary file
|
|
@@ -13,7 +13,6 @@ import ast
|
|
|
13
13
|
import argparse
|
|
14
14
|
import hashlib
|
|
15
15
|
import json
|
|
16
|
-
import os
|
|
17
16
|
import re
|
|
18
17
|
import subprocess
|
|
19
18
|
import sys
|
|
@@ -565,7 +564,6 @@ class MigrationParser:
|
|
|
565
564
|
source = f.read_text(encoding='utf-8', errors='replace')
|
|
566
565
|
rev = re.search(r'revision\s*=\s*[\'"]([^\'"]+)[\'"]', source)
|
|
567
566
|
down = re.search(r'down_revision\s*=\s*[\'"]?([^\'")\n]+)[\'"]?', source)
|
|
568
|
-
msg = re.search(r'Create Date.*\n.*"""(.+?)"""', source, re.DOTALL)
|
|
569
567
|
tables = re.findall(r'op\.(?:create_table|drop_table|add_column)\s*\(\s*[\'"]([^\'"]+)[\'"]', source)
|
|
570
568
|
migrations.append({
|
|
571
569
|
'revision': rev.group(1) if rev else f.stem,
|
|
@@ -1213,7 +1211,7 @@ def build_auth_section(auth_info: dict) -> str:
|
|
|
1213
1211
|
|
|
1214
1212
|
def build_infra_section(stack: dict, services: list[dict]) -> str:
|
|
1215
1213
|
lines = ["# Section 16 — Infrastructure Profile\n\n",
|
|
1216
|
-
|
|
1214
|
+
"| Property | Value |",
|
|
1217
1215
|
"|----------|-------|",
|
|
1218
1216
|
f"| **Language** | {stack.get('language','?')} |",
|
|
1219
1217
|
f"| **Framework** | {stack.get('framework','?')} |",
|
|
@@ -1302,14 +1300,13 @@ def build_project_map(
|
|
|
1302
1300
|
) -> str:
|
|
1303
1301
|
now = datetime.now().strftime('%Y-%m-%d %H:%M')
|
|
1304
1302
|
name = stack.get('name', PROJECT_ROOT.name)
|
|
1305
|
-
slug = stack.get('slug', name)
|
|
1306
1303
|
|
|
1307
1304
|
lines = [
|
|
1308
1305
|
f"# {name} — Project Map\n",
|
|
1309
1306
|
f"> Auto-generated by `generate.py` on {now}. Do not edit manually.\n\n",
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1307
|
+
"## Stats\n",
|
|
1308
|
+
"| Metric | Count |",
|
|
1309
|
+
"|--------|-------|",
|
|
1313
1310
|
f"| API Routes | {len(routes)} |",
|
|
1314
1311
|
f"| Data Models | {len(models)} |",
|
|
1315
1312
|
f"| Schemas/DTOs | {len(schemas)} |",
|
|
@@ -1367,7 +1364,7 @@ def build_project_map(
|
|
|
1367
1364
|
"| Background jobs | 08 |",
|
|
1368
1365
|
"| Migration history | 11 |",
|
|
1369
1366
|
"",
|
|
1370
|
-
|
|
1367
|
+
"## Regenerate\n",
|
|
1371
1368
|
"```bash",
|
|
1372
1369
|
"python .claude/project-map/generate.py # skip if unchanged",
|
|
1373
1370
|
"python .claude/project-map/generate.py --force # always regenerate",
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [2.0.2] - 2026-06-08
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Internal lint cleanup in `generate.py`: removed an unused `os` import and
|
|
10
|
+
two unused local variables, and dropped the `f` prefix from five
|
|
11
|
+
placeholder-less f-strings (ruff F401/F841/F541). No behavior change.
|
|
12
|
+
|
|
5
13
|
## [2.0.1] - 2026-06-08
|
|
6
14
|
|
|
7
15
|
### Fixed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theglitchking/babel-fish",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Gives your AI coding assistant instant, accurate knowledge of every route, model, service, feature, and infrastructure element in your codebase.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|