bugx-cli 0.1.1 → 0.1.3
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.
- package/README.md +36 -35
- package/core/README.md +1 -1
- package/core/agent/agent_orchestrator.py +3 -0
- package/core/agent/agent_workspace.py +14 -2
- package/core/assets/README.md +3 -2
- package/core/assets/bugx-social-preview.svg +71 -0
- package/core/assets/bugx-wechat-group.png +0 -0
- package/core/assets/twitter_promo_art.jpg +0 -0
- package/core/assets/twitter_promo_card.svg +166 -0
- package/core/assets/twitter_promo_clean.jpg +0 -0
- package/core/assets/twitter_terminal_real.png +0 -0
- package/core/audit_packs/README.md +2 -0
- package/core/audit_packs/pitfalls/auth_crypto.json +64 -0
- package/core/audit_packs/pitfalls/file_ssrf_cmd.json +64 -0
- package/core/audit_packs/pitfalls/go_backend.json +66 -0
- package/core/audit_packs/pitfalls/java_spring.json +64 -0
- package/core/audit_packs/pitfalls/js_ts_web.json +67 -0
- package/core/audit_packs/pitfalls/python_web.json +82 -0
- package/core/bugx.md +2 -2
- package/core/bugx_paths.py +2 -2
- package/core/cli-help.txt +1 -1
- package/core/cloud_sync/cloud_client.py +56 -5
- package/core/cloud_sync/consent.py +33 -3
- package/core/cloud_sync/flywheel_client.py +186 -24
- package/core/contracts/README.md +1 -1
- package/core/contracts/bugx-opencode.md +1 -1
- package/core/contracts/bugx-runtime-contract.md +1 -1
- package/core/contracts/bugx-worker.md +1 -1
- package/core/engine-integrity.json +191 -95
- package/core/host_acp/kimi.py +175 -0
- package/core/host_acp/minimax.py +28 -0
- package/core/host_runtime/host_registry.py +23 -3
- package/core/hosts/dsh.py +1 -1
- package/core/hosts/kimi.py +293 -0
- package/core/hosts/minimax.py +248 -0
- package/core/hosts/zcode.py +5 -0
- package/core/infra/README.md +1 -1
- package/core/infra/build_info.py +30 -5
- package/core/launch_phases/README.md +6 -3
- package/core/launch_phases/finding_confirm_phase.py +168 -7
- package/core/launch_phases/post_phase.py +5 -5
- package/core/launch_phases/pre_recon_scout.py +13 -0
- package/core/launch_phases/report_sharing.py +3 -7
- package/core/launch_phases/round_orchestrator.py +114 -26
- package/core/launch_phases/semantic_recon.py +545 -0
- package/core/launch_phases/startup_version_gate.py +6 -2
- package/core/launch_phases/supervisor_bridge.py +14 -23
- package/core/launch_phases/verify_loop.py +767 -0
- package/core/launch_phases/worker_prior.py +115 -0
- package/core/ledger/README.md +2 -1
- package/core/ledger/finding_verification.py +511 -2
- package/core/ledger/fp_ledger.py +255 -0
- package/core/metadata.txt +2 -2
- package/core/planning/README.md +2 -1
- package/core/planning/prompt_harness.py +50 -10
- package/core/planning/prompt_policy_engine.py +386 -0
- package/core/prompts/README.md +4 -2
- package/core/prompts/policies/prompt_policies.json +101 -0
- package/core/prompts/stages/stage_verify.defensive.md +42 -0
- package/core/prompts/stages/stage_verify.md +44 -0
- package/core/report_engine/report_share.py +0 -8
- package/core/retrieval/README.md +2 -1
- package/core/retrieval/pitfall_packs.py +277 -0
- package/core/runtime/README.md +1 -1
- package/core/runtime/global_telemetry.py +20 -0
- package/core/runtime/scenario_eval.py +1 -1
- package/core/runtime/setup_ui_env.py +4 -7
- package/core/supervisor/README.md +1 -1
- package/core/supervisor/cli.py +2 -2
- package/core/webui/mcp_inspector.py +6 -0
- package/core/webui/static/index.html +51 -3
- package/core/webui/static/manifest.webmanifest +1 -1
- package/core/webui/static/project-settings.js +18 -3
- package/core/webui/static/robots.txt +36 -0
- package/core/webui/static/sitemap.xml +15 -0
- package/docs/07_distribution/01_README_NPM.md +36 -35
- package/ecosystem/integrations/cline/skills/bugx/SKILL.md +1 -1
- package/ecosystem/integrations/dsh/agents/bugx.md +1 -1
- package/ecosystem/integrations/dsh/dsh-patch.yml +2 -2
- package/ecosystem/integrations/dsh/mcp/package.json +1 -1
- package/ecosystem/integrations/dsh/skills/bugx/SKILL.md +1 -1
- package/ecosystem/integrations/dsh/skills/bugx-dsh/SKILL.md +1 -1
- package/ecosystem/integrations/dsh/ui/package.json +1 -1
- package/ecosystem/integrations/opencode/bugx-mcp-manifest.json +1 -1
- package/ecosystem/integrations/pi/extensions/bugx/manifest.json +1 -1
- package/ecosystem/integrations/pi/skills/bugx/SKILL.md +1 -1
- package/ecosystem/integrations/qoder/connector-meta.json +9 -9
- package/ecosystem/integrations/workbuddy/connector-meta.json +9 -9
- package/ecosystem/integrations/workbuddy/skills/bugx/SKILL.md +2 -2
- package/ecosystem/plugins/bugx/.claude-plugin/marketplace.json +2 -2
- package/ecosystem/plugins/bugx/.claude-plugin/plugin.json +2 -2
- package/ecosystem/plugins/bugx/.codex-plugin/plugin.json +4 -4
- package/ecosystem/plugins/bugx/.zcode-plugin/plugin.json +2 -2
- package/ecosystem/plugins/bugx/agents/bugx-worker.md +1 -1
- package/ecosystem/plugins/bugx/agents/bugx.md +1 -1
- package/ecosystem/plugins/bugx/skills/bugx/SKILL.md +3 -3
- package/ecosystem/plugins/bugx/skills/bugx-claude/SKILL.md +1 -1
- package/ecosystem/plugins/bugx/skills/bugx-dsh/SKILL.md +1 -1
- package/ecosystem/plugins/bugx/skills/bugx-opencode/SKILL.md +1 -1
- package/ecosystem/plugins/bugx/skills/bugx-zcode/SKILL.md +1 -1
- package/interfaces/bin/bugx.js +9 -7
- package/interfaces/cli/bugx_cli/__init__.py +2 -2
- package/interfaces/cli/bugx_cli/cli.py +178 -67
- package/interfaces/cli/bugx_cli/commands/agent.py +313 -127
- package/interfaces/cli/bugx_cli/commands/audit.py +8 -7
- package/interfaces/cli/bugx_cli/commands/cloud.py +27 -19
- package/interfaces/cli/bugx_cli/commands/doctor.py +18 -0
- package/interfaces/cli/bugx_cli/commands/knowledge.py +3 -4
- package/interfaces/cli/bugx_cli/commands/lifecycle.py +54 -47
- package/interfaces/cli/bugx_cli/commands/plugin.py +9 -9
- package/interfaces/cli/bugx_cli/commands/plugin_claude.py +27 -13
- package/interfaces/cli/bugx_cli/commands/plugin_kimi.py +348 -0
- package/interfaces/cli/bugx_cli/commands/plugin_minimax.py +322 -0
- package/interfaces/cli/bugx_cli/commands/plugin_qoder.py +3 -4
- package/interfaces/cli/bugx_cli/commands/plugin_zcode.py +4 -5
- package/interfaces/cli/bugx_cli/commands/project.py +6 -13
- package/interfaces/cli/bugx_cli/commands/system.py +577 -162
- package/interfaces/cli/bugx_cli/common.py +102 -15
- package/interfaces/cli/bugx_cli/host_adapters.py +150 -4
- package/interfaces/cli/bugx_cli/hosts/registry.py +4 -2
- package/interfaces/cli/bugx_cli/hosts/template_engine.py +10 -9
- package/interfaces/cli/bugx_cli/infra/engine_installer.py +21 -10
- package/interfaces/cli/bugx_cli/infra/host_sync.py +1 -1
- package/interfaces/cli/bugx_cli/infra/mcp_advisor.py +2 -2
- package/package.json +54 -16
- package/pyproject.toml +64 -1
- package/scripts/sync-version.mjs +1 -1
- package/skills/README.md +25 -0
- package/skills/platform/bugx-user/SKILL.md +92 -0
- package/core/assets/bugx-hero-cn.png +0 -0
- package/core/assets/bugx-hero-en.png +0 -0
|
@@ -12,6 +12,7 @@ from ..common import (
|
|
|
12
12
|
_backup_host_resource,
|
|
13
13
|
_i18n_exc,
|
|
14
14
|
_i18n_prompt,
|
|
15
|
+
_remove_tree_force,
|
|
15
16
|
_resolve_locale_name,
|
|
16
17
|
)
|
|
17
18
|
from ..host_adapters import (
|
|
@@ -104,13 +105,11 @@ def _qoder_user_agent_content_worker(*, locale: str | None = None) -> str:
|
|
|
104
105
|
|
|
105
106
|
def _clean_legacy_qoder_plugin_and_skills() -> None:
|
|
106
107
|
"""清理历史遗留的 Qoder 散装技能目录与插件注册(Option A 收敛保障)。"""
|
|
107
|
-
import shutil
|
|
108
|
-
|
|
109
108
|
# 1. 清理 ~/.qoder/skills/bugx
|
|
110
109
|
try:
|
|
111
110
|
user_skill = _qoder_user_skills_dir() / "bugx"
|
|
112
111
|
if user_skill.is_dir() and not user_skill.is_symlink():
|
|
113
|
-
|
|
112
|
+
_remove_tree_force(user_skill)
|
|
114
113
|
except OSError:
|
|
115
114
|
pass
|
|
116
115
|
|
|
@@ -118,7 +117,7 @@ def _clean_legacy_qoder_plugin_and_skills() -> None:
|
|
|
118
117
|
try:
|
|
119
118
|
cache_parent = _qoder_user_plugins_dir() / "cache" / "bugx-agent"
|
|
120
119
|
if cache_parent.is_dir() and not cache_parent.is_symlink():
|
|
121
|
-
|
|
120
|
+
_remove_tree_force(cache_parent)
|
|
122
121
|
except OSError:
|
|
123
122
|
pass
|
|
124
123
|
|
|
@@ -54,7 +54,7 @@ def _zcode_plugin_manifest(version: str = __version__) -> dict[str, object]:
|
|
|
54
54
|
return {
|
|
55
55
|
"name": CHATGPT_PLUGIN_NAME,
|
|
56
56
|
"version": version,
|
|
57
|
-
"description": "Autonomous code review and
|
|
57
|
+
"description": "Autonomous code review and testing agent. Catches hidden deep bugs for developers, automates black-box, functional, and performance testing for QA, and ensures rock-solid software delivery.",
|
|
58
58
|
"homepage": "https://bugx.dev",
|
|
59
59
|
"author": {
|
|
60
60
|
"name": "BugX",
|
|
@@ -130,10 +130,9 @@ def _zcode_storage_dir_override() -> Path:
|
|
|
130
130
|
raw = storage.get("dir") if isinstance(storage, dict) else None
|
|
131
131
|
if isinstance(raw, str) and raw.strip():
|
|
132
132
|
raw = raw.strip()
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
return Path(raw)
|
|
133
|
+
expanded = Path(raw).expanduser()
|
|
134
|
+
if expanded.is_absolute():
|
|
135
|
+
return expanded
|
|
137
136
|
return home / ".zcode"
|
|
138
137
|
|
|
139
138
|
|
|
@@ -129,19 +129,12 @@ def command_project(args: argparse.Namespace) -> int:
|
|
|
129
129
|
cached = None
|
|
130
130
|
|
|
131
131
|
if cached is None:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
print(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
)
|
|
139
|
-
except Exception as exc:
|
|
140
|
-
if as_json:
|
|
141
|
-
print(json.dumps({"status": "not_found", "message": f"未找到本地画像且自动生成失败: {exc}"}, ensure_ascii=False, indent=2))
|
|
142
|
-
else:
|
|
143
|
-
print(f"[bugx project] ✗ 自动生成项目画像失败: {exc}")
|
|
144
|
-
return 1
|
|
132
|
+
message = "当前项目没有可读取的缓存画像。请先运行 bugx project analyze。"
|
|
133
|
+
if as_json:
|
|
134
|
+
print(json.dumps({"status": "not_found", "message": message}, ensure_ascii=False))
|
|
135
|
+
else:
|
|
136
|
+
print(f"[bugx project] ✗ {message}", file=sys.stderr)
|
|
137
|
+
return 1
|
|
145
138
|
|
|
146
139
|
profile = cached
|
|
147
140
|
|