[general]
name=Pro Toolbox
qgisMinimumVersion=3.16
qgisMaximumVersion=3.99
description=An AI-native micro-app workspace and hot-swappable container for QGIS: one single-file BaseAddon contract turns any .py file into a dock tab without restarting, with project-scoped workspaces, a runtime bilingual UI and fully offline wheels. Ships eight production modules: crash-proof autosave with one-click restore, layer visibility cycling, numpad macro input, QA/QC review with red/green/purple rule rendering, table-to-point mapping with batch map export, template-driven Word reports, a raster NoData cleaner, and an AI module studio. 面向 QGIS 的 AI 原生微应用工作台与热插拔容器：一份单文件 BaseAddon 契约让任意 .py 免重启挂载为 Tab，支持按项目工作区、运行时中英双语与完全离线 wheel；内置八个生产模块：防崩自动存档与一键回溯、图层可见性轮播、小键盘宏录入、红绿紫规则渲染质检、表格转点与批量出图、Word 模板报表、影像去黑边、AI 模块工坊。
version=1.1.2
author=KGSINYA
email=kgsinya@163.com
about=Pro Toolbox is a micro-kernel workspace for QGIS, not another plugin bundle. The kernel owns exactly five responsibilities: one dock, one tab host, one module loader, one bilingual runtime and one module/workspace manager. Everything else is a standalone micro-app under addons/, discovered at runtime in the root folder and one level of sub-folders. Drop a file in, click Rescan, and a new tab appears without restarting QGIS.
    Why it exists: in the LLM era a 50-line PyQGIS tool costs minutes to generate, but twenty of them cost a toolbar, a startup delay and a packaging ceremony. The Plugin Manager needs a whole plugin per tool; Processing is run-and-forget; User Profiles switch the entire environment and require a new process. Pro Toolbox offers a single-file contract, a persistent interactive dock (global hotkeys, live canvas selection, progress dashboards) and project-scoped workspaces that mount only the modules a job needs and hot-reload in place when the workspace or language changes.
    Built-in modules: timed GPKG snapshots with rotation and one-click restore; arrow-key layer cycling inside a group; numpad macro injection through the Win32 hotkey API; a QA/QC review console that creates QA_Status, paints red for unreviewed, green for approved and purple for flagged, marks with F4/F5, keeps the current feature under QGIS' native yellow highlight and cruises to the next unreviewed feature with a live progress bar; coordinate jump plus table-to-point mapping with batch map export; Word reports from an existing .docx template with per-column field and image mapping; a raster NoData and black-border cleaner with auto-watch and resampling; and the AI Module Studio (contract prompt, external LLM, AST pre-check, hot mount). Module manager, language switch and rescan live in the dock header.
    Runtime: Python dependencies ship as wheels in libs/ and are unpacked on first use into libs/_extracted/cp39 or libs/_extracted/cp312, which is prepended to sys.path. Two lxml wheels are bundled: cp39 for Python 3.9 (QGIS 3.39 and earlier) and cp312 for Python 3.12 (QGIS 3.40 and later); the loader picks the one matching the running interpreter. No pip, no network, no API keys, no telemetry.
    中文简介：Pro Toolbox 是 QGIS 的微内核工作台，而不是又一份插件合集。内核只负责五件事：一个 Dock、一个 Tab 宿主、一个模块加载器、一个双语运行时、一个模块/工作区管理器。其余一切是 addons/ 下的独立微应用，运行时在根目录与一层子文件夹中自动发现。把文件放进去、点一下「重新扫描」，新 Tab 即刻挂载，无需重启 QGIS。
    为什么需要它：在 AI 辅助编程时代，生成一个 50 行的 PyQGIS 小工具只需几分钟；但二十个小工具会变成爆炸的顶栏、变慢的启动和一整套打包仪式。插件管理器要求一个工具对应一个完整插件；Processing 是跑完即走的批处理；用户配置切换整套环境且必须新开进程。Pro Toolbox 提供单文件契约、常驻交互式 Dock（全局快捷键、画布实时选择、进度盘）与项目级工作区：只挂载本作业需要的模块，切换工作区或语言时原地热重载。
    内置模块：定时 GPKG 快照（版本轮转与一键回溯）；图层组内方向键轮播；Win32 热键的小键盘宏注入；质检控制台（创建 QA_Status，未审红、通过绿、存疑紫，F4/F5 标记，当前要素保持 QGIS 原生亮黄高亮，自动巡航到下一个未审要素并实时更新进度）；坐标跳转与表格转点批量出图；基于既有 .docx 模板的 Word 报表（逐列映射字段与图片）；影像去黑边与 NoData 清理（自动监听与重采样）；以及 AI 模块工坊（契约提示词、外部大模型、AST 预检、热挂载）。模块管理器、语言切换与重新扫描位于 Dock 顶部。
    运行时：Python 依赖以 wheel 形式随包，首次使用时解压到 libs/_extracted/cp39 或 cp312 并前插到 sys.path。内置 cp39（Python 3.9，QGIS 3.39 及更早）与 cp312（Python 3.12，QGIS 3.40 及更新）两个 lxml wheel，加载器按当前解释器自动选择。无需 pip、无需网络、无 API Key、无遥测。
    Privacy: no network access and no telemetry; project data and generated files never leave the machine. The AI studio only builds a prompt, you copy it to a model yourself.
tracker=https://github.com/KGSINYA/qgis-pro-toolbox/issues
repository=https://github.com/KGSINYA/qgis-pro-toolbox
homepage=https://github.com/KGSINYA/qgis-pro-toolbox
tags=automation,digitizing,workflow,hot-reload,report,vector,raster,ai,workspace,microkernel,container
category=Vector
icon=icon.png
experimental=False
deprecated=False
changelog=1.1.2
    1.1.2: QGIS plugins.qgis.org Bandit hardening: every deliberately swallowed exception now records a debug diagnostic through safe_log.log_ignored and is annotated for the mandatory B110 rule; no functional changes, all eight modules untouched in behaviour.
    1.1.1: positioning refresh: README and plugin metadata rewritten around the micro-kernel workspace philosophy (single-file contract, interactive dock, project-scoped hot-swap, AI-native loop); the QA/QC module is upgraded with red/green/purple rule rendering, native yellow highlight, F4/F5 marking, auto-cruise and a live progress dashboard; step-by-step guides added to both READMEs.
    1.1.0: folder-based addon discovery with optional bookmark sidebar; workspace presets, pinned core modules and a module manager (enable/disable, reorder); raster NoData / black-border cleaner with auto-watch and resampling; AI Module Studio with contract prompt, AST pre-check and hot mount; tests/ smoke suite; version bumped to 1.1.0.
    1.0.0: First public release: hot-swappable addon loader, auto-save with version rotation and one-click restore, arrow-key layer cycling, numpad macro input, QA/QC pass-through, table-to-point mapping with batch map export, and template-driven Word reports.
