Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

feat: support tui whl

huanggawa14adc9d3d931
diff --git a/.gitignore b/.gitignore
index 5b5da342ed..86c5967f0b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,6 +26,7 @@ jiuwenclaw/web/logs/
jiuwenclaw/web/cd
jiuwenclaw/web/tsc
jiuwenclaw/web/[email protected]
+jiuwenclaw/cli/bun.lock
*.tsbuildinfo
npm-debug.log*
yarn-debug.log*
@@ -67,3 +68,6 @@ jiuwenclaw/agentserver/tools/browser-move/screenshots
jiuwenclaw/workspace/.whatsapp-auth/
jiuwenclaw/resources/agent/workspace/
+jiuwenclaw/resources/tui/bin/
+packages/jiuwenclaw-tui/jiuwenclaw_tui/resources/tui/bin/
+packages/jiuwenclaw-tui/jiuwenclaw_tui/resources/tui-bin/
\ No newline at end of file
diff --git a/packages/jiuwenclaw-tui/MANIFEST.in b/packages/jiuwenclaw-tui/MANIFEST.in
new file mode 100644
index 0000000000..3ce4fb1fe1
--- /dev/null
+++ b/packages/jiuwenclaw-tui/MANIFEST.in
@@ -0,0 +1 @@
+recursive-include jiuwenclaw_tui/resources *
diff --git a/packages/jiuwenclaw-tui/jiuwenclaw_tui/__init__.py b/packages/jiuwenclaw-tui/jiuwenclaw_tui/__init__.py
new file mode 100644
index 0000000000..1439e4eb1f
--- /dev/null
+++ b/packages/jiuwenclaw-tui/jiuwenclaw_tui/__init__.py
@@ -0,0 +1 @@
+"""Native JiuwenClaw CLI launcher package."""
\ No newline at end of file
diff --git a/packages/jiuwenclaw-tui/jiuwenclaw_tui/app.py b/packages/jiuwenclaw-tui/jiuwenclaw_tui/app.py
new file mode 100644
index 0000000000..4c35baea22
--- /dev/null
+++ b/packages/jiuwenclaw-tui/jiuwenclaw_tui/app.py
@@ -0,0 +1,77 @@
+from __future__ import annotations
+
+import os
+import platform
+import stat
+import subprocess
+import sys
+from pathlib import Path
+
+
+def _normalize_machine(machine: str) -> str:
+ value = machine.strip().lower()
+ if value in {"x86_64", "amd64"}:
+ return "x64"
+ if value in {"aarch64", "arm64"}:
+ return "arm64"
+ return value
+
+
+def _platform_tag() -> str:
+ system = platform.system().lower()
+ machine = _normalize_machine(platform.machine())
+ if system == "linux":
+ return f"linux-{machine}"
+ if system == "darwin":
+ return f"macos-{machine}"
+ if system == "windows":
+ return f"windows-{machine}"
+ return f"{system}-{machine}"
+
+
+def _binary_name() -> str:
+ return "jiuwenclaw-tui.exe" if os.name == "nt" else "jiuwenclaw-tui"
+
+
+def _resource_binary_path() -> Path:
+ return (
+ Path(__file__).resolve().parent
+ / "resources"
+ / "tui-bin"
+ / _platform_tag()
+ / _binary_name()
+ )
+
+
+def _ensure_executable(path: Path) -> None:
+ if os.name == "nt" or not path.exists():
+ return
+ mode = path.stat().st_mode
+ if mode & stat.S_IXUSR:
+ return
+ path.chmod(mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
+
+
+def _run_binary(binary: Path, argv: list[str]) -> int:
+ _ensure_executable(binary)
+ completed = subprocess.run([str(binary), *argv], check=False)
+ return int(completed.returncode)
+
+
+def main() -> None:
+ binary = _resource_binary_path()
+ if not binary.exists():
+ raise SystemExit(
+ "\n".join(
+ [
+ f"jiuwenclaw-tui binary not found for platform: {_platform_tag()}",
+ f"expected path: {binary}",
+ "build it with: python scripts/build_tui.py --target current",
+ ]
+ )
+ )
+ raise SystemExit(_run_binary(binary, sys.argv[1:]))
+
+
+if __name__ == "__main__":
+ main()
\ No newline at end of file
diff --git a/packages/jiuwenclaw-tui/jiuwenclaw_tui/resources/__init__.py b/packages/jiuwenclaw-tui/jiuwenclaw_tui/resources/__init__.py
new file mode 100644
index 0000000000..71314f8199
--- /dev/null
+++ b/packages/jiuwenclaw-tui/jiuwenclaw_tui/resources/__init__.py
@@ -0,0 +1 @@
+"""Packaged native binaries for jiuwenclaw-tui."""
\ No newline at end of file
diff --git a/packages/jiuwenclaw-tui/pyproject.toml b/packages/jiuwenclaw-tui/pyproject.toml
new file mode 100644
index 0000000000..724dd644aa
--- /dev/null
+++ b/packages/jiuwenclaw-tui/pyproject.toml
@@ -0,0 +1,32 @@
+[build-system]
+requires = ["setuptools>=61.0", "wheel"]
+build-backend = "setuptools.build_meta"
+
+[project]
+name = "jiuwenclaw-tui"
+version = "0.1.9"
+description = "Native terminal UI launcher for JiuwenClaw"
+requires-python = ">=3.11,<3.14"
+license = { text = "Apache-2.0" }
+classifiers = [
+ "License :: OSI Approved :: Apache Software License",
+]
+
+[project.scripts]
+jiuwenclaw-tui = "jiuwenclaw_tui.app:main"
+
+[tool.setuptools]
+py-modules = []
+include-package-data = true
+
+[tool.setuptools.packages.find]
+where = ["."]
+include = ["jiuwenclaw_tui*"]
+namespaces = false
+
+[tool.setuptools.package-data]
+"*" = ["LICENSE"]
+jiuwenclaw_tui = [
+ "resources/**/*",
+ "resources/*",
+]
\ No newline at end of file
diff --git a/packages/jiuwenclaw-tui/setup.py b/packages/jiuwenclaw-tui/setup.py
new file mode 100644
index 0000000000..87a7873153
--- /dev/null
+++ b/packages/jiuwenclaw-tui/setup.py
@@ -0,0 +1,31 @@
+from __future__ import annotations
+
+import os
+
+from setuptools import setup
+from setuptools.dist import Distribution
+from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
+
+
+class BinaryDistribution(Distribution):
+ def has_ext_modules(self) -> bool:
+ return True
+
+
+class PlatformBdistWheel(_bdist_wheel):
+ def finalize_options(self) -> None:
+ super().finalize_options()
+ self.root_is_pure = False
+
+ def get_tag(self) -> tuple[str, str, str]:
+ _python, _abi, platform_tag = super().get_tag()
+ override = os.getenv("JWC_TUI_WHEEL_PLATFORM", "").strip()
+ if override:
+ platform_tag = override
+ return ("py3", "none", platform_tag)
+
+
+setup(
+ distclass=BinaryDistribution,
+ cmdclass={"bdist_wheel": PlatformBdistWheel},
+)
\ No newline at end of file
diff --git a/pyproject.toml b/pyproject.toml
index b2214ebf05..5e9102c32a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -42,6 +42,7 @@ dependencies = [
[project.optional-dependencies]
desktop = ["pywebview>=5.4"]
dev = ["pyinstaller>=6.0.0", "pywebview>=5.4"]
+tui = ["jiuwenclaw-tui==0.1.9"]
shell-ast = [
"tree-sitter>=0.25.0,<0.26.0",
"tree-sitter-bash>=0.25.0,<0.26.0",
@@ -75,6 +76,8 @@ include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["jiuwenclaw*"]
+exclude = ["jiuwenclaw.cli*", "jiuwenclaw.web*"]
+namespaces = false
[tool.setuptools.package-data]
"*" = ["LICENSE"]
@@ -90,6 +93,9 @@ jiuwenclaw = [
[tool.setuptools.exclude-package-data]
jiuwenclaw = ["web/node_modules/**", "web/node_modules/*"]
+[tool.uv.sources]
+jiuwenclaw-tui = { path = "./packages/jiuwenclaw-tui" }
+
[dependency-groups]
# Testing (keep in sync with optional-dependencies.test)
test = [
diff --git a/scripts/build.sh b/scripts/build.sh
index 9defa3f7a8..e7b9a86a0c 100644
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -63,3 +63,14 @@ if [[ ! -d "$DIST_OUTPUT" ]]; then
fi
echo "[build] 完成! wheel 包位于: $DIST_OUTPUT"
ls -la dist/*.whl 2>/dev/null || true
+
+# 3. 构建 TUI wheel
+if ! command -v bun &>/dev/null; then
+ echo "[build] 跳过 TUI 构建: 未找到 bun 命令" >&2
+ echo "完成bun安装: curl -fsSL https://bun.sh/install | bash # 针对 macOS、Linux 和 WSL" >&2
+else
+ echo "[build] 正在构建TUI的 wheel包..."
+ cd "$PROJECT_ROOT"
+ python scripts/build_python_packages.py --target all --clean --install-js-deps
+ echo "[build] TUI的 wheel 包构建完成"
+fi
diff --git a/scripts/build_python_packages.py b/scripts/build_python_packages.py
new file mode 100644
index 0000000000..dbbf89fb1c
--- /dev/null
+++ b/scripts/build_python_packages.py
@@ -0,0 +1,191 @@
+ #!/usr/bin/env python3
+from __future__ import annotations
+
+import argparse
+import os
+import shutil
+import subprocess
+import sys
+from pathlib import Path
+
+
+ROOT = Path(__file__).resolve().parents[1]
+SIDECAR_ROOT = ROOT / "packages" / "jiuwenclaw-tui"
+SIDE_CAR_DIST = SIDECAR_ROOT / "dist"
+CLI_ROOT = ROOT / "jiuwenclaw" / "cli"
+
+TUI_TARGETS = {
+ #"linux-x64": "linux_x86_64",
+ #"linux-arm64": "linux_aarch64",
+ #"macos-x64": "macosx_10_15_x86_64",
+ "macos-arm64": "macosx_11_0_arm64",
+ "windows-x64": "win_amd64",
+ #"windows-arm64": "win_arm64",
+}
+
+
+def run(cmd: list[str], cwd: Path, env: dict[str, str] | None = None) -> None:
+ print(f"[build] ({cwd.relative_to(ROOT) if cwd != ROOT else '.'}) {' '.join(cmd)}")
+ subprocess.run(cmd, cwd=cwd, check=True, env=env)
+
+
+def remove_path(path: Path) -> None:
+ if path.is_dir():
+ shutil.rmtree(path)
+ return
+ if path.exists():
+ path.unlink()
+
+
+def clean_root() -> None:
+ for relative in ("build", "jiuwenclaw.egg-info"):
+ remove_path(ROOT / relative)
+
+
+def clean_sidecar() -> None:
+ for relative in ("dist", "build", "jiuwenclaw_tui.egg-info"):
+ remove_path(SIDECAR_ROOT / relative)
+
+
+def build_root_wheel() -> None:
+ SIDE_CAR_DIST.mkdir(parents=True, exist_ok=True)
+ run(["uv", "build", "--wheel", "--out-dir", str(SIDE_CAR_DIST)], ROOT)
+
+
+def build_sidecar_wheel(platform_tag: str | None = None) -> None:
+ for relative in ("build", "jiuwenclaw_tui.egg-info"):
+ remove_path(SIDECAR_ROOT / relative)
+ env = os.environ.copy()
+ if platform_tag:
+ env["JWC_TUI_WHEEL_PLATFORM"] = platform_tag
+ run(["uv", "build", "--wheel"], SIDECAR_ROOT, env=env)
+
+
+def build_tui_binary(target: str, clean: bool) -> None:
+ cmd = [sys.executable, "scripts/build_tui.py", "--target", target]
+ if clean:
+ cmd.append("--clean")
+ run(cmd, ROOT)
+
+
+def ensure_js_dependencies(install: bool) -> None:
+ node_modules = CLI_ROOT / "node_modules"
+ if node_modules.exists():
+ return
+
+ if not install:
+ raise SystemExit(
+ "\n".join(
+ [
+ "missing JavaScript dependencies for jiuwenclaw/cli",
+ f"expected: {node_modules}",
+ "run one of:",
+ " cd jiuwenclaw/cli && npm install",
+ " python scripts/build_python_packages.py --install-js-deps",
+ ]
+ )
+ )
+
+ if (CLI_ROOT / "package-lock.json").exists():
+ run(["npm", "install"], CLI_ROOT)
+ return
+
+ if (CLI_ROOT / "bun.lock").exists() or (CLI_ROOT / "bun.lockb").exists():
+ run(["bun", "install"], CLI_ROOT)
+ return
+
+ run(["npm", "install"], CLI_ROOT)
+
+
+def resolve_requested_targets(raw: str) -> list[str]:
+ if raw == "all":
+ return list(TUI_TARGETS.keys())
+ values = [part.strip() for part in raw.split(",") if part.strip()]
+ if raw == "current":
+ return ["current"]
+ unknown = [value for value in values if value not in TUI_TARGETS]
+ if unknown:
+ valid = ", ".join(["current", "all", *TUI_TARGETS.keys()])
+ raise SystemExit(f"unknown target(s): {', '.join(unknown)}; valid: {valid}")
+ return values
+
+
+def main() -> None:
+ parser = argparse.ArgumentParser(
+ description="Build JiuwenClaw Python distributions (main package and optional TUI sidecar).",
+ )
+ parser.add_argument(
+ "--target",
+ default="current",
+ help="TUI binary target passed to build_tui.py (default: current)",
+ )
+ parser.add_argument(
+ "--out-dir",
+ default="./packages/jiuwenclaw-tui/dist",
+ help="Directory to output the built TUI binary (default: ./packages/jiuwenclaw-tui/dist)",
+ )
+ parser.add_argument(
+ "--skip-binary",
+ action="store_true",
+ help="Skip building the native TUI binary before building the sidecar wheel",
+ )
+ parser.add_argument(
+ "--skip-root",
+ action="store_true",
+ help="Skip building the main jiuwenclaw wheel",
+ )
+ parser.add_argument(
+ "--skip-sidecar",
+ action="store_true",
+ help="Skip building the jiuwenclaw-tui sidecar wheel",
+ )
+ parser.add_argument(
+ "--clean",
+ action="store_true",
+ help="Clean dist/build/egg-info before building",
+ )
+ parser.add_argument(
+ "--install-js-deps",
+ action="store_true",
+ help="Install jiuwenclaw/cli JavaScript dependencies if node_modules is missing",
+ )
+ args = parser.parse_args()
+ targets = resolve_requested_targets(args.target)
+
+ if args.clean:
+ if not args.skip_root:
+ clean_root()
+ if not args.skip_sidecar:
+ clean_sidecar()
+
+ if args.skip_sidecar and args.skip_root:
+ raise SystemExit("nothing to build: both --skip-root and --skip-sidecar were set")
+
+ if args.skip_binary and not args.skip_sidecar and len(targets) > 1:
+ raise SystemExit("--skip-binary only supports a single sidecar wheel target")
+
+ if not args.skip_sidecar and not args.skip_binary:
+ ensure_js_dependencies(args.install_js_deps)
+
+ if not args.skip_root:
+ build_root_wheel()
+
+ if not args.skip_sidecar:
+ for index, target in enumerate(targets):
+ if not args.skip_binary:
+ build_tui_binary(target, clean=args.clean or index > 0)
+ platform_tag = None if target == "current" else TUI_TARGETS[target]
+ build_sidecar_wheel(platform_tag=platform_tag)
+
+ print("\n[build] done")
+ if not args.skip_root:
+ print(f"[build] main wheel: {SIDE_CAR_DIST}")
+ if not args.skip_sidecar:
+ print(f"[build] tui wheel(s): {SIDE_CAR_DIST}")
+
+
+if __name__ == "__main__":
+ try:
+ main()
+ except subprocess.CalledProcessError as exc:
+ raise SystemExit(exc.returncode) from exc
\ No newline at end of file
diff --git a/scripts/build_tui.py b/scripts/build_tui.py
new file mode 100644
index 0000000000..6b45ea918d
--- /dev/null
+++ b/scripts/build_tui.py
@@ -0,0 +1,133 @@
+ #!/usr/bin/env python3
+from __future__ import annotations
+
+import argparse
+import os
+import shutil
+import subprocess
+import sys
+from pathlib import Path
+
+
+ROOT = Path(__file__).resolve().parents[1]
+CLI_ENTRY = ROOT / "jiuwenclaw" / "cli" / "src" / "index.ts"
+OUTPUT_ROOT = ROOT / "packages" / "jiuwenclaw-tui" / "jiuwenclaw_tui" / "resources" / "tui-bin"
+
+TARGETS = {
+ "linux-x64": "bun-linux-x64",
+ "linux-arm64": "bun-linux-arm64",
+ "macos-x64": "bun-darwin-x64",
+ "macos-arm64": "bun-darwin-arm64",
+ "windows-x64": "bun-windows-x64",
+ #"windows-arm64": "bun-windows-arm64",
+}
+
+
+def current_platform_key() -> str:
+ import platform
+
+ system = platform.system().lower()
+ machine = platform.machine().lower()
+ machine = {"x86_64": "x64", "amd64": "x64", "aarch64": "arm64"}.get(machine, machine)
+ if system == "linux":
+ return f"linux-{machine}"
+ if system == "darwin":
+ return f"macos-{machine}"
+ if system == "windows":
+ return f"windows-{machine}"
+ raise SystemExit(f"unsupported platform for current target: {system}-{machine}")
+
+
+def output_binary_name(platform_key: str) -> str:
+ return "jiuwenclaw-tui.exe" if platform_key.startswith("windows-") else "jiuwenclaw-tui"
+
+
+def resolve_requested_targets(raw: str) -> list[str]:
+ if raw == "all":
+ return list(TARGETS.keys())
+ if raw == "current":
+ return [current_platform_key()]
+ values = [part.strip() for part in raw.split(",") if part.strip()]
+ unknown = [value for value in values if value not in TARGETS]
+ if unknown:
+ valid = ", ".join(["current", "all", *TARGETS.keys()])
+ raise SystemExit(f"unknown target(s): {', '.join(unknown)}; valid: {valid}")
+ return values
+
+
+def _fix_macos_signature(binary: Path) -> None:
+ """Fix Bun's broken ad-hoc code signature on macOS.
+
+ Bun --compile produces a Mach-O with an invalid LC_CODE_SIGNATURE segment,
+ which causes macOS to kill the binary at launch and prevents codesign/ldid
+ from working directly. Stripping the bad signature first, then applying a
+ fresh ad-hoc signature resolves this.
+ """
+ if os.name != "nt" and shutil.which("codesign") is not None:
+ subprocess.run(["codesign", "--remove-signature", str(binary)], check=False)
+ subprocess.run(["codesign", "-s", "-", str(binary)], check=True)
+
+
+def build_target(platform_key: str) -> Path:
+ bun_target = TARGETS[platform_key]
+ output_dir = OUTPUT_ROOT / platform_key
+ output_dir.mkdir(parents=True, exist_ok=True)
+ output_path = output_dir / output_binary_name(platform_key)
+ if output_path.exists():
+ output_path.unlink()
+
+ cmd = [
+ "bun",
+ "build",
+ "--compile",
+ "--minify",
+ "--target",
+ bun_target,
+ "--outfile",
+ str(output_path),
+ str(CLI_ENTRY),
+ ]
+ subprocess.run(cmd, cwd=ROOT, check=True)
+
+ if platform_key.startswith("macos-"):
+ _fix_macos_signature(output_path)
+
+ return output_path
+
+
+def main() -> None:
+ parser = argparse.ArgumentParser(description="Build jiuwenclaw-tui native binaries with Bun.")
+ parser.add_argument(
+ "--target",
+ default="current",
+ help="Build target: current, all, or comma-separated platform keys",
+ )
+ parser.add_argument(
+ "--clean",
+ action="store_true",
+ help="Remove existing packaged tui binaries before building",
+ )
+ args = parser.parse_args()
+
+ if shutil.which("bun") is None:
+ raise SystemExit("bun is required to build jiuwenclaw-tui binaries")
+ if not CLI_ENTRY.exists():
+ raise SystemExit(f"CLI entry not found: {CLI_ENTRY}")
+
+ if args.clean and OUTPUT_ROOT.exists():
+ shutil.rmtree(OUTPUT_ROOT)
+
+ targets = resolve_requested_targets(args.target)
+ built: list[Path] = []
+ for target in targets:
+ built.append(build_target(target))
+
+ for path in built:
+ print(path.relative_to(ROOT))
+
+
+if __name__ == "__main__":
+ try:
+ main()
+ except subprocess.CalledProcessError as exc:
+ raise SystemExit(exc.returncode) from exc
\ No newline at end of file
diff --git a/uv.lock b/uv.lock
index 21210a97a2..6e69eccb13 100644
--- a/uv.lock
+++ b/uv.lock
@@ -1487,7 +1487,7 @@ wheels = [
[[package]]
name = "jiuwenclaw"
-version = "0.1.9"
+version = "0.1.9.post1"
source = { editable = "." }
dependencies = [
{ name = "aiosqlite" },
@@ -1525,6 +1525,10 @@ dev = [
{ name = "pyinstaller" },
{ name = "pywebview" },
]
+shell-ast = [
+ { name = "tree-sitter" },
+ { name = "tree-sitter-bash" },
+]
test = [
{ name = "coverage" },
{ name = "pytest" },
@@ -1534,6 +1538,9 @@ test = [
{ name = "pytest-mock" },
{ name = "pyyaml" },
]
+tui = [
+ { name = "jiuwenclaw-tui" },
+]
[package.dev-dependencies]
test = [
@@ -1556,10 +1563,11 @@ requires-dist = [
{ name = "discord-py", specifier = ">=2.4.0" },
{ name = "google-genai", specifier = ">=1.68.0" },
{ name = "greenlet", specifier = ">=3.3.2" },
+ { name = "jiuwenclaw-tui", marker = "extra == 'tui'", directory = "packages/jiuwenclaw-tui" },
{ name = "lark-oapi", specifier = ">=1.5.3" },
{ name = "loguru", specifier = ">=0.7.3" },
{ name = "mutagen", specifier = ">=1.47.0" },
- { name = "openjiuwen", specifier = "==0.1.10.post1" },
+ { name = "openjiuwen", specifier = "==0.1.10.post2" },
{ name = "opentelemetry-api", specifier = ">=1.25.0" },
{ name = "opentelemetry-exporter-otlp-proto-grpc", specifier = ">=1.25.0" },
{ name = "opentelemetry-exporter-otlp-proto-http", specifier = ">=1.25.0" },
@@ -1581,10 +1589,12 @@ requires-dist = [
{ name = "ruamel-yaml", specifier = ">=0.18.0" },
{ name = "skillnet-ai", specifier = "==0.0.16" },
{ name = "sqlite-vec", specifier = "==0.1.6" },
+ { name = "tree-sitter", marker = "extra == 'shell-ast'", specifier = ">=0.25.0,<0.26.0" },
+ { name = "tree-sitter-bash", marker = "extra == 'shell-ast'", specifier = ">=0.25.0,<0.26.0" },
{ name = "websockets", specifier = ">=12.0" },
{ name = "wecom-aibot-sdk", specifier = ">=1.0.5" },
]
-provides-extras = ["desktop", "dev", "test"]
+provides-extras = ["desktop", "dev", "tui", "shell-ast", "test"]
[package.metadata.requires-dev]
test = [
@@ -1597,6 +1607,11 @@ test = [
{ name = "pyyaml", specifier = ">=6.0" },
]
+[[package]]
+name = "jiuwenclaw-tui"
+version = "0.1.9"
+source = { directory = "packages/jiuwenclaw-tui" }
+
[[package]]
name = "json-repair"
version = "0.58.3"
@@ -2287,7 +2302,7 @@ wheels = [
[[package]]
name = "openjiuwen"
-version = "0.1.10.post1"
+version = "0.1.10.post2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "a2a-sdk" },
@@ -2325,9 +2340,9 @@ dependencies = [
{ name = "tiktoken" },
{ name = "transformers" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/3e/64/a987a3921f78f4fcc29d890b8e39e42b54cba5c982ee582b0b3023d63de2/openjiuwen-0.1.10.post1.tar.gz", hash = "sha256:8a0844c0d44b42a7fa5e63baa039d03ede9fa00a39da76de5bb12c7e3868b7e2", size = 1759496, upload-time = "2026-04-13T14:06:53.878Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/7a/bc/f4599e2176dbef422cf3457c951dedc50ed4d987623dc5e6b4f260178cac/openjiuwen-0.1.10.post2.tar.gz", hash = "sha256:aaff2990cf10afdae6a93f7e98188acf924c906d5069a33d05dd0f9edb0f01a6", size = 1774971, upload-time = "2026-04-14T14:47:54.975Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/7c/a4/1db2ca6ee32217496953260bbf0c55f7f8026e07a49d589da24e092ace41/openjiuwen-0.1.10.post1-py3-none-any.whl", hash = "sha256:7a2d598ea22fd7e114889e3aa4100e1ce646eb77f1cd9e5ac6d551965f2e57d1", size = 2377011, upload-time = "2026-04-13T14:06:51.275Z" },
+ { url = "https://files.pythonhosted.org/packages/32/ee/00ba7a3edee2d658a637de001933d9cd26e950cc4b7b3f17966fceeefa2b/openjiuwen-0.1.10.post2-py3-none-any.whl", hash = "sha256:5b943ce086c8ddc3f1f08b6f42bfa383ad9516ce9bf2d680bc9f6e8c2142f61a", size = 2394352, upload-time = "2026-04-14T14:47:52.389Z" },
]
[[package]]
@@ -4397,6 +4412,51 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/4e/93/79754b0ca486e556c2b95d4f5afc66aaf4b260694f3d6e1b51da2d036691/transformers-5.2.0-py3-none-any.whl", hash = "sha256:9ecaf243dc45bee11a7d93f8caf03746accc0cb069181bbf4ad8566c53e854b4", size = 10403304, upload-time = "2026-02-16T18:53:59.699Z" },
]
+[[package]]
+name = "tree-sitter"
+version = "0.25.2"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/66/7c/0350cfc47faadc0d3cf7d8237a4e34032b3014ddf4a12ded9933e1648b55/tree-sitter-0.25.2.tar.gz", hash = "sha256:fe43c158555da46723b28b52e058ad444195afd1db3ca7720c59a254544e9c20", size = 177961, upload-time = "2025-09-25T17:37:59.751Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/7c/22/88a1e00b906d26fa8a075dd19c6c3116997cb884bf1b3c023deb065a344d/tree_sitter-0.25.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b8ca72d841215b6573ed0655b3a5cd1133f9b69a6fa561aecad40dca9029d75b", size = 146752, upload-time = "2025-09-25T17:37:24.775Z" },
+ { url = "https://files.pythonhosted.org/packages/57/1c/22cc14f3910017b7a76d7358df5cd315a84fe0c7f6f7b443b49db2e2790d/tree_sitter-0.25.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:cc0351cfe5022cec5a77645f647f92a936b38850346ed3f6d6babfbeeeca4d26", size = 137765, upload-time = "2025-09-25T17:37:26.103Z" },
+ { url = "https://files.pythonhosted.org/packages/1c/0c/d0de46ded7d5b34631e0f630d9866dab22d3183195bf0f3b81de406d6622/tree_sitter-0.25.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1799609636c0193e16c38f366bda5af15b1ce476df79ddaae7dd274df9e44266", size = 604643, upload-time = "2025-09-25T17:37:27.398Z" },
+ { url = "https://files.pythonhosted.org/packages/34/38/b735a58c1c2f60a168a678ca27b4c1a9df725d0bf2d1a8a1c571c033111e/tree_sitter-0.25.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3e65ae456ad0d210ee71a89ee112ac7e72e6c2e5aac1b95846ecc7afa68a194c", size = 632229, upload-time = "2025-09-25T17:37:28.463Z" },
+ { url = "https://files.pythonhosted.org/packages/32/f6/cda1e1e6cbff5e28d8433578e2556d7ba0b0209d95a796128155b97e7693/tree_sitter-0.25.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:49ee3c348caa459244ec437ccc7ff3831f35977d143f65311572b8ba0a5f265f", size = 629861, upload-time = "2025-09-25T17:37:29.593Z" },
+ { url = "https://files.pythonhosted.org/packages/f9/19/427e5943b276a0dd74c2a1f1d7a7393443f13d1ee47dedb3f8127903c080/tree_sitter-0.25.2-cp311-cp311-win_amd64.whl", hash = "sha256:56ac6602c7d09c2c507c55e58dc7026b8988e0475bd0002f8a386cce5e8e8adc", size = 127304, upload-time = "2025-09-25T17:37:30.549Z" },
+ { url = "https://files.pythonhosted.org/packages/eb/d9/eef856dc15f784d85d1397a17f3ee0f82df7778efce9e1961203abfe376a/tree_sitter-0.25.2-cp311-cp311-win_arm64.whl", hash = "sha256:b3d11a3a3ac89bb8a2543d75597f905a9926f9c806f40fcca8242922d1cc6ad5", size = 113990, upload-time = "2025-09-25T17:37:31.852Z" },
+ { url = "https://files.pythonhosted.org/packages/3c/9e/20c2a00a862f1c2897a436b17edb774e831b22218083b459d0d081c9db33/tree_sitter-0.25.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ddabfff809ffc983fc9963455ba1cecc90295803e06e140a4c83e94c1fa3d960", size = 146941, upload-time = "2025-09-25T17:37:34.813Z" },
+ { url = "https://files.pythonhosted.org/packages/ef/04/8512e2062e652a1016e840ce36ba1cc33258b0dcc4e500d8089b4054afec/tree_sitter-0.25.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c0c0ab5f94938a23fe81928a21cc0fac44143133ccc4eb7eeb1b92f84748331c", size = 137699, upload-time = "2025-09-25T17:37:36.349Z" },
+ { url = "https://files.pythonhosted.org/packages/47/8a/d48c0414db19307b0fb3bb10d76a3a0cbe275bb293f145ee7fba2abd668e/tree_sitter-0.25.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:dd12d80d91d4114ca097626eb82714618dcdfacd6a5e0955216c6485c350ef99", size = 607125, upload-time = "2025-09-25T17:37:37.725Z" },
+ { url = "https://files.pythonhosted.org/packages/39/d1/b95f545e9fc5001b8a78636ef942a4e4e536580caa6a99e73dd0a02e87aa/tree_sitter-0.25.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b43a9e4c89d4d0839de27cd4d6902d33396de700e9ff4c5ab7631f277a85ead9", size = 635418, upload-time = "2025-09-25T17:37:38.922Z" },
+ { url = "https://files.pythonhosted.org/packages/de/4d/b734bde3fb6f3513a010fa91f1f2875442cdc0382d6a949005cd84563d8f/tree_sitter-0.25.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:fbb1706407c0e451c4f8cc016fec27d72d4b211fdd3173320b1ada7a6c74c3ac", size = 631250, upload-time = "2025-09-25T17:37:40.039Z" },
+ { url = "https://files.pythonhosted.org/packages/46/f2/5f654994f36d10c64d50a192239599fcae46677491c8dd53e7579c35a3e3/tree_sitter-0.25.2-cp312-cp312-win_amd64.whl", hash = "sha256:6d0302550bbe4620a5dc7649517c4409d74ef18558276ce758419cf09e578897", size = 127156, upload-time = "2025-09-25T17:37:41.132Z" },
+ { url = "https://files.pythonhosted.org/packages/67/23/148c468d410efcf0a9535272d81c258d840c27b34781d625f1f627e2e27d/tree_sitter-0.25.2-cp312-cp312-win_arm64.whl", hash = "sha256:0c8b6682cac77e37cfe5cf7ec388844957f48b7bd8d6321d0ca2d852994e10d5", size = 113984, upload-time = "2025-09-25T17:37:42.074Z" },
+ { url = "https://files.pythonhosted.org/packages/8c/67/67492014ce32729b63d7ef318a19f9cfedd855d677de5773476caf771e96/tree_sitter-0.25.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:0628671f0de69bb279558ef6b640bcfc97864fe0026d840f872728a86cd6b6cd", size = 146926, upload-time = "2025-09-25T17:37:43.041Z" },
+ { url = "https://files.pythonhosted.org/packages/4e/9c/a278b15e6b263e86c5e301c82a60923fa7c59d44f78d7a110a89a413e640/tree_sitter-0.25.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f5ddcd3e291a749b62521f71fc953f66f5fd9743973fd6dd962b092773569601", size = 137712, upload-time = "2025-09-25T17:37:44.039Z" },
+ { url = "https://files.pythonhosted.org/packages/54/9a/423bba15d2bf6473ba67846ba5244b988cd97a4b1ea2b146822162256794/tree_sitter-0.25.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bd88fbb0f6c3a0f28f0a68d72df88e9755cf5215bae146f5a1bdc8362b772053", size = 607873, upload-time = "2025-09-25T17:37:45.477Z" },
+ { url = "https://files.pythonhosted.org/packages/ed/4c/b430d2cb43f8badfb3a3fa9d6cd7c8247698187b5674008c9d67b2a90c8e/tree_sitter-0.25.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b878e296e63661c8e124177cc3084b041ba3f5936b43076d57c487822426f614", size = 636313, upload-time = "2025-09-25T17:37:46.68Z" },
+ { url = "https://files.pythonhosted.org/packages/9d/27/5f97098dbba807331d666a0997662e82d066e84b17d92efab575d283822f/tree_sitter-0.25.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:d77605e0d353ba3fe5627e5490f0fbfe44141bafa4478d88ef7954a61a848dae", size = 631370, upload-time = "2025-09-25T17:37:47.993Z" },
+ { url = "https://files.pythonhosted.org/packages/d4/3c/87caaed663fabc35e18dc704cd0e9800a0ee2f22bd18b9cbe7c10799895d/tree_sitter-0.25.2-cp313-cp313-win_amd64.whl", hash = "sha256:463c032bd02052d934daa5f45d183e0521ceb783c2548501cf034b0beba92c9b", size = 127157, upload-time = "2025-09-25T17:37:48.967Z" },
+ { url = "https://files.pythonhosted.org/packages/d5/23/f8467b408b7988aff4ea40946a4bd1a2c1a73d17156a9d039bbaff1e2ceb/tree_sitter-0.25.2-cp313-cp313-win_arm64.whl", hash = "sha256:b3f63a1796886249bd22c559a5944d64d05d43f2be72961624278eff0dcc5cb8", size = 113975, upload-time = "2025-09-25T17:37:49.922Z" },
+]
+
+[[package]]
+name = "tree-sitter-bash"
+version = "0.25.1"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/8e/0e/f0108be910f1eef6499eabce517e79fe3b12057280ed398da67ce2426cba/tree_sitter_bash-0.25.1.tar.gz", hash = "sha256:bfc0bdaa77bc1e86e3c6652e5a6e140c40c0a16b84185c2b63ad7cd809b88f14", size = 419703, upload-time = "2025-12-02T17:01:08.849Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/30/8e/37e7364d9c9c58da89e05c510671d8c45818afd7b31c6939ab72f8dc6c04/tree_sitter_bash-0.25.1-cp310-abi3-macosx_10_9_x86_64.whl", hash = "sha256:0e6235f59e366d220dde7d830196bed597d01e853e44d8ccd1a82c5dd2500acf", size = 194160, upload-time = "2025-12-02T17:00:59.047Z" },
+ { url = "https://files.pythonhosted.org/packages/23/bb/2d2cfbb1f89aaeb1ec892624f069d92d058d06bb66f16b9ec9fb5873ab60/tree_sitter_bash-0.25.1-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:f4a34a6504c7c5b2a9b8c5c4065531dea19ca2c35026e706cf2eeeebe2c92512", size = 202659, upload-time = "2025-12-02T17:01:00.275Z" },
+ { url = "https://files.pythonhosted.org/packages/25/f0/1bb25519be27460255d3899db677313cfa1e6306988fbf456a3d7e211bbb/tree_sitter_bash-0.25.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e76c4cfb20b076552406782b7f8c2a3946835993df0a44df006de54b7030c7dc", size = 230596, upload-time = "2025-12-02T17:01:01.759Z" },
+ { url = "https://files.pythonhosted.org/packages/d7/22/9f70bc3d3b942ab9fc0f89c1dc9e087519a3a94f64ae6b7377aae3a7a0f0/tree_sitter_bash-0.25.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3f484c4bb8796cde7a87ca351e6116f09653edac0eb3c6d238566359dd28b117", size = 231981, upload-time = "2025-12-02T17:01:02.859Z" },
+ { url = "https://files.pythonhosted.org/packages/7a/c3/f1540e42cd41b323c6821e45e52e1aed6ed386209aad52db996f05703963/tree_sitter_bash-0.25.1-cp310-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:5e76af6df46d958c7f5b6d5884c9743218e3902a00ccb493ec92728b1084430b", size = 228364, upload-time = "2025-12-02T17:01:03.997Z" },
+ { url = "https://files.pythonhosted.org/packages/f7/a0/c3050a6277dfcac8c480f514dc4fe49f3f65f0eac68b4702cbaca2584e85/tree_sitter_bash-0.25.1-cp310-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:a3332d71c7b7d5f78259b19d02d0ea111fcb82b72712ee4a93aaa5b226d3f0a8", size = 230074, upload-time = "2025-12-02T17:01:05.05Z" },
+ { url = "https://files.pythonhosted.org/packages/71/0f/203fe6b27211387f4b9ba8c4a321567ca4ded2624dae6ccdbd2b6e940e17/tree_sitter_bash-0.25.1-cp310-abi3-win_amd64.whl", hash = "sha256:52a6802d9218f86278aa3e8b459c3abdad67eed0fde1f9f13aca5b6c634217a6", size = 195574, upload-time = "2025-12-02T17:01:06.412Z" },
+ { url = "https://files.pythonhosted.org/packages/47/75/4ca1a9fabd8fb5aea78cea70f7837ce4dbf2afae115f62051e5fa99cba1c/tree_sitter_bash-0.25.1-cp310-abi3-win_arm64.whl", hash = "sha256:59115057ec2bae319e8082ff29559861045002964c3431ccb0fc92aa4bc9bccb", size = 191196, upload-time = "2025-12-02T17:01:07.486Z" },
+]
+
[[package]]
name = "typer"
version = "0.24.1"