bugx-cli 0.1.0 → 0.1.1
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 +190 -186
- package/core/README.md +2 -2
- package/core/agent/README.md +2 -1
- package/core/agent/agent_artifacts.py +8 -6
- package/core/agent/agent_eval.py +136 -54
- package/core/agent/agent_execution.py +218 -52
- package/core/agent/agent_orchestrator.py +14 -8
- package/core/agent/agent_targets.py +8 -2
- package/core/agent/feature_baseline.py +150 -0
- package/core/assets/axe-core/LICENSE-3RD-PARTY.txt +66 -0
- package/core/assets/axe-core/LICENSE.txt +362 -0
- package/core/assets/axe-core/UPSTREAM.md +10 -0
- package/core/assets/axe-core/axe.min.js +12 -0
- package/core/assets/bugx-hero-en.svg +74 -0
- package/core/assets/bugx-hero-zh.svg +74 -0
- package/core/assets/codex.png +0 -0
- package/core/assets/dsh.png +0 -0
- package/core/assets/webui-chatgpt.jpg +0 -0
- package/core/assets/webui-session.jpg +0 -0
- package/core/assets/webui-skills.jpg +0 -0
- package/core/assets/webui-studio.jpg +0 -0
- package/core/assets/webui-zcode.jpg +0 -0
- package/core/assets/zcode.png +0 -0
- package/core/autonomous_cve/SPEC.md +1 -1
- package/core/autonomous_cve/attack_graph_store.py +152 -106
- package/core/autonomous_cve/behavior_graph.py +8 -2
- package/core/autonomous_cve/verifier.py +4 -1
- package/core/bugx.md +1 -1
- package/core/bugx_paths.py +43 -8
- package/core/cli-help.txt +66 -0
- package/core/cloud_sync/SPEC.md +1 -1
- package/core/cloud_sync/cloud_client.py +25 -6
- package/core/cloud_sync/cloud_onboard.py +42 -1
- package/core/cloud_sync/flywheel_client.py +16 -7
- package/core/cloud_sync/network_transport.py +24 -3
- package/core/cloud_sync/sensitive_filter.py +2 -2
- package/core/cloud_sync/sync_push.py +12 -10
- package/core/contracts/AGENT_GUIDE.md +6 -9
- package/core/contracts/README.md +2 -2
- package/core/contracts/bugx-runtime-contract.md +1 -1
- package/core/contracts/bugx-worker.md +1 -1
- package/core/contracts/engine_gap_contracts.py +86 -3
- package/core/coverage/coverage_discovery.py +599 -29
- package/core/coverage/coverage_evidence.py +47 -0
- package/core/coverage/coverage_forensics.py +9 -0
- package/core/coverage/coverage_validate.py +6 -1
- package/core/dev_harness/SPEC.md +1 -1
- package/core/engine-integrity.json +591 -419
- package/core/fuzzing/concurrency_fuzzer.py +53 -0
- package/core/fuzzing/differential_oracle.py +562 -27
- package/core/fuzzing/fuzz_input.py +109 -6
- package/core/fuzzing/stateful_fuzzer.py +72 -0
- package/core/governance/secret_redactor.py +22 -10
- package/core/host_acp/SPEC.md +1 -1
- package/core/host_acp/__init__.py +4 -4
- package/core/host_acp/claude.py +59 -1
- package/core/host_acp/cline.py +64 -1
- package/core/host_acp/codex.py +56 -1
- package/core/host_acp/dsh.py +59 -1
- package/core/host_acp/opencode.py +56 -1
- package/core/host_acp/pi.py +59 -1
- package/core/host_acp/zcode.py +59 -1
- package/core/host_runtime/SPEC.md +1 -1
- package/core/host_runtime/adapters.py +1 -1
- package/core/host_runtime/cline.py +13 -0
- package/core/host_runtime/host_evaluators.py +44 -4
- package/core/host_runtime/host_probe.py +1 -1
- package/core/host_runtime/host_provider_arbitrator.py +116 -62
- package/core/host_runtime/host_registry.py +15 -8
- package/core/host_runtime/mcp_registry_gate.py +12 -1
- package/core/host_runtime/pi.py +102 -0
- package/core/host_runtime/provider_facts.py +66 -0
- package/core/hosts/SPEC.md +1 -1
- package/core/hosts/__init__.py +6 -2
- package/core/hosts/_dsh_usage.py +1 -1
- package/core/hosts/base.py +32 -4
- package/core/hosts/claude.py +55 -0
- package/core/hosts/cline.py +6 -2
- package/core/hosts/codex.py +58 -0
- package/core/hosts/dsh.py +9 -1
- package/core/hosts/opencode.py +6 -6
- package/core/hosts/pi.py +159 -2
- package/core/infra/README.md +4 -2
- package/core/infra/__init__.py +2 -0
- package/core/infra/build_info.py +22 -3
- package/core/infra/client_metadata.py +1 -1
- package/core/infra/json_utils.py +22 -0
- package/core/launch_phases/README.md +2 -2
- package/core/launch_phases/SPEC.md +1 -1
- package/core/launch_phases/common.py +21 -2
- package/core/launch_phases/finding_confirm_phase.py +5 -1
- package/core/launch_phases/finding_settlement.py +188 -1
- package/core/launch_phases/judge_phase.py +69 -12
- package/core/launch_phases/orchestrator_controls.py +11 -7
- package/core/launch_phases/post_coverage_sync.py +9 -2
- package/core/launch_phases/post_phase.py +139 -3
- package/core/launch_phases/post_receipt.py +12 -1
- package/core/launch_phases/pre_phase.py +3 -3
- package/core/launch_phases/pre_recon_scout.py +53 -36
- package/core/launch_phases/pre_state_builder.py +23 -176
- package/core/launch_phases/round_orchestrator.py +15 -32
- package/core/launch_phases/session_runtime.py +56 -9
- package/core/launch_phases/startup_gates.py +36 -8
- package/core/launch_phases/startup_interaction.py +68 -12
- package/core/launch_phases/startup_version_gate.py +9 -3
- package/core/launch_phases/supervisor_bridge.py +46 -17
- package/core/launch_phases/supervisor_coverage.py +8 -2
- package/core/launch_phases/supervisor_degraded.py +1 -9
- package/core/launch_phases/worker_barriers.py +15 -5
- package/core/launch_phases/worker_orchestrator.py +105 -25
- package/core/ledger/README.md +1 -1
- package/core/ledger/SPEC.md +1 -1
- package/core/ledger/_facade.py +2 -1
- package/core/ledger/archive_ops.py +60 -2
- package/core/ledger/cli.py +6 -1
- package/core/ledger/export_ops.py +6 -1
- package/core/ledger/finding_confirmation.py +48 -6
- package/core/ledger/finding_lifecycle.py +428 -5
- package/core/ledger/finding_verification.py +44 -8
- package/core/ledger/incidents.py +10 -4
- package/core/ledger/patterns.py +10 -7
- package/core/ledger/receipt_contract.py +17 -1
- package/core/ledger/sync_ops.py +21 -16
- package/core/ledger/tool_experience.py +2 -1
- package/core/ledger/verify_life.py +88 -17
- package/core/locales/en-US.json +2 -2
- package/core/locales/zh-CN.json +2 -2
- package/core/mcp_handlers/SPEC.md +1 -1
- package/core/mcp_handlers/base.py +23 -3
- package/core/mcp_handlers/channel_lifecycle.py +85 -30
- package/core/mcp_handlers/retrieval_handlers.py +11 -1
- package/core/mcp_handlers/rpc_server.py +6 -1
- package/core/mcp_handlers/supervisor_handlers.py +32 -6
- package/core/mcp_handlers/tool_table.py +15 -0
- package/core/mcp_runtime_support/environment.py +0 -38
- package/core/mcp_runtime_support/verifier.py +0 -52
- package/core/metadata.txt +2 -3
- package/core/planning/README.md +1 -1
- package/core/planning/domain_router.py +4 -2
- package/core/planning/dynamic_flow_analyzer.py +219 -14
- package/core/planning/judge_pipeline.py +87 -4
- package/core/planning/prompt_harness.py +7 -5
- package/core/planning/spec_harvester.py +4 -4
- package/core/probes/INTERFACE.md +11 -1
- package/core/probes/SPEC.md +11 -1
- package/core/probes/__init__.py +46 -40
- package/core/probes/android_probe.py +177 -9
- package/core/probes/codebase_memory_probe.py +57 -0
- package/core/probes/desktop_probe.py +104 -0
- package/core/probes/differential_probe.py +99 -21
- package/core/probes/efficiency_probe.py +64 -0
- package/core/probes/ios_binary_probe.py +105 -1
- package/core/probes/memory_probe.py +66 -0
- package/core/probes/miniprogram_probe.py +75 -13
- package/core/probes/mobile_probe.py +215 -30
- package/core/probes/native_probe.py +88 -0
- package/core/probes/openwiki_probe.py +70 -0
- package/core/probes/pattern_probe.py +106 -0
- package/core/probes/platform_probe.py +81 -0
- package/core/probes/probe_registry.py +108 -7
- package/core/probes/sast_fixture_corpus.py +340 -0
- package/core/probes/sast_probe.py +553 -52
- package/core/probes/sast_rules.py +668 -28
- package/core/probes/sca_scanner.py +48 -0
- package/core/probes/ui_accessibility.py +149 -0
- package/core/probes/ui_audit.py +513 -0
- package/core/probes/ui_contract.py +273 -0
- package/core/probes/ui_evidence.py +212 -0
- package/core/probes/ui_measurements.py +314 -0
- package/core/probes/ui_repair.py +250 -0
- package/core/probes/ui_review.py +133 -0
- package/core/probes/ui_storybook.py +107 -0
- package/core/probes/ui_tokens.py +185 -0
- package/core/probes/ui_visual_diff.py +131 -0
- package/core/probes/web_probe.py +373 -18
- package/core/project_profiler/SPEC.md +1 -1
- package/core/project_profiler/arbitrator.py +6 -1
- package/core/project_profiler/detector.py +8 -1
- package/core/project_profiler/strategy.py +51 -15
- package/core/prompts/command_routing_en.md +2 -2
- package/core/prompts/command_routing_zh.md +2 -2
- package/core/prompts/stages/stage_repair.md +1 -1
- package/core/repair/README.md +1 -1
- package/core/repair/l7_repair_loop.py +1 -4
- package/core/repair/rsi_fixer.py +4 -4
- package/core/repair/rsi_loop.py +1 -3
- package/core/repair/rsi_repair.py +7 -7
- package/core/repair/rsi_scope.py +27 -8
- package/core/report_engine/SPEC.md +1 -1
- package/core/report_engine/attestation.py +8 -4
- package/core/report_engine/finding_report.py +2 -1
- package/core/report_engine/models.py +7 -9
- package/core/report_engine/sast_bridge.py +2 -2
- package/core/report_engine/server.py +18 -8
- package/core/report_engine/web-conformance.md +123 -18
- package/core/report_engine/web_conformance.py +21 -52
- package/core/retrieval/README.md +1 -1
- package/core/retrieval/SPEC.md +1 -1
- package/core/retrieval/code_analyzer.py +50 -14
- package/core/retrieval/context_assembler.py +7 -1
- package/core/retrieval/knowledge_sync.py +108 -14
- package/core/retrieval/symbol_index.py +25 -6
- package/core/retrieval/universal_code_matcher.py +234 -49
- package/core/runtime/README.md +1 -1
- package/core/runtime/bugx_logging.py +78 -7
- package/core/runtime/fixture_solidify.py +5 -10
- package/core/runtime/incident_eval.py +1 -1
- package/core/runtime/model_runner.py +4 -41
- package/core/runtime/platform_adapter.py +2 -2
- package/core/runtime/prep_validate.py +4 -2
- package/core/runtime/project_settings.py +2 -1
- package/core/runtime/scenario_eval.py +50 -8
- package/core/skills/bugx_docs_mcp_server.py +3 -1
- package/core/skills/bugx_mcp_server.py +29 -2
- package/core/skills/tools_kb.py +1 -1
- package/core/supervisor/README.md +1 -1
- package/core/supervisor/SPEC.md +1 -1
- package/core/supervisor/budget_governor.py +503 -9
- package/core/supervisor/checkpoint_pipeline.py +248 -6
- package/core/supervisor/checkpoint_sync.py +13 -0
- package/core/supervisor/claim_events.py +1 -1
- package/core/supervisor/finding_workflow.py +22 -5
- package/core/supervisor/lease_manager.py +1 -1
- package/core/supervisor/lifecycle_blocks.py +6 -1
- package/core/supervisor/rejection_remedies.py +52 -5
- package/core/supervisor/serial_authorization.py +48 -4
- package/core/supervisor/task_scheduler.py +2 -2
- package/core/supervisor/worker_checkpoint.py +8 -1
- package/core/supervisor/worker_runtime.py +8 -2
- package/core/supervisor_types/worker_claim.py +9 -0
- package/core/webui/README.md +1 -1
- package/core/webui/SPEC.md +2 -1
- package/core/webui/adapters/claude.py +5 -1
- package/core/webui/adapters/cline.py +10 -2
- package/core/webui/adapters/codex.py +5 -1
- package/core/webui/adapters/dsh.py +5 -1
- package/core/webui/docs_session_service.py +2 -2
- package/core/webui/mcp_inspector.py +11 -7
- package/core/webui/static/00-base.css +1060 -0
- package/core/webui/static/01-monitoring.css +802 -0
- package/core/webui/static/02-header-actions.css +321 -0
- package/core/webui/static/03-trigger-popover.css +697 -0
- package/core/webui/static/04-composer.css +628 -0
- package/core/webui/static/05-skills-center.css +878 -0
- package/core/webui/static/06-mcp-center.css +623 -0
- package/core/webui/static/07-skill-detail.css +265 -0
- package/core/webui/static/08-files-management.css +167 -0
- package/core/webui/static/09-files-center.css +386 -0
- package/core/webui/static/10-icons.css +105 -0
- package/core/webui/static/11-project-options.css +185 -0
- package/core/webui/static/12-profile-tab.css +383 -0
- package/core/webui/static/design-tokens.css +113 -0
- package/core/webui/static/index.html +14 -1
- package/core/webui/workspace_service.py +1 -1
- package/docs/07_distribution/01_README_NPM.md +190 -186
- package/ecosystem/integrations/README.md +1 -1
- package/ecosystem/integrations/dsh/mcp/package.json +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 +4 -4
- package/ecosystem/integrations/opencode/mcp-lock.json +14 -6
- package/ecosystem/integrations/opencode/opencode.json +23 -12
- package/ecosystem/integrations/pi/extensions/bugx/manifest.json +1 -1
- package/ecosystem/integrations/qoder/connector-meta.json +1 -1
- package/ecosystem/integrations/workbuddy/connector-meta.json +1 -1
- package/ecosystem/integrations/workbuddy/skills/bugx/SKILL.md +1 -1
- package/ecosystem/plugins/bugx/.claude-plugin/plugin.json +1 -1
- package/ecosystem/plugins/bugx/.codex-plugin/plugin.json +1 -1
- package/ecosystem/plugins/bugx/.zcode-plugin/plugin.json +1 -1
- package/ecosystem/plugins/bugx/skills/bugx/SKILL.md +2 -2
- 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 +37 -0
- package/interfaces/cli/bugx_cli/__init__.py +4 -2
- package/interfaces/cli/bugx_cli/cli.py +11 -4
- package/interfaces/cli/bugx_cli/commands/advisory.py +1 -1
- package/interfaces/cli/bugx_cli/commands/agent.py +339 -73
- package/interfaces/cli/bugx_cli/commands/audit.py +2 -2
- package/interfaces/cli/bugx_cli/commands/autonomous.py +1 -1
- package/interfaces/cli/bugx_cli/commands/cloud.py +4 -3
- package/interfaces/cli/bugx_cli/commands/doctor.py +449 -204
- package/interfaces/cli/bugx_cli/commands/interaction.py +5 -1
- package/interfaces/cli/bugx_cli/commands/knowledge.py +2 -0
- package/interfaces/cli/bugx_cli/commands/lifecycle.py +3 -3
- package/interfaces/cli/bugx_cli/commands/plugin.py +55 -20
- package/interfaces/cli/bugx_cli/commands/plugin_claude.py +7 -7
- package/interfaces/cli/bugx_cli/commands/plugin_funide.py +2 -1
- package/interfaces/cli/bugx_cli/commands/plugin_zcode.py +1 -1
- package/interfaces/cli/bugx_cli/commands/report.py +2 -6
- package/interfaces/cli/bugx_cli/commands/system.py +11 -11
- package/interfaces/cli/bugx_cli/common.py +15 -7
- package/interfaces/cli/bugx_cli/host_adapters.py +29 -54
- package/interfaces/cli/bugx_cli/hosts/registry.py +8 -6
- package/interfaces/cli/bugx_cli/infra/ai_advisor.py +157 -27
- package/interfaces/cli/bugx_cli/infra/engine_installer.py +18 -10
- package/interfaces/cli/bugx_cli/infra/host_sync.py +11 -8
- package/interfaces/cli/bugx_cli/infra/mcp_advisor.py +76 -5
- package/interfaces/cli/bugx_cli/infra/security.py +13 -6
- package/package.json +2 -1
- package/pyproject.toml +20 -8
- package/scripts/ensure-python.mjs +7 -7
- package/scripts/sync-version.mjs +10 -21
- package/scripts/test-npm-wrapper.mjs +1 -1
- package/core/webui/static/project-settings.css +0 -6458
- package/docs/07_distribution/README.md +0 -16
- package/docs/README.md +0 -121
- package/interfaces/README.md +0 -143
- package/interfaces/bin/README.md +0 -35
- package/interfaces/cli/README.md +0 -90
- package/scripts/README.md +0 -118
|
@@ -1,281 +1,285 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<
|
|
2
|
+
<img src="https://raw.githubusercontent.com/Bencibr/bugx/main/core/assets/bugx-hero-en.svg" alt="BugX — effortless audits of AI-written code" width="1000">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
# BugX — AI Code Audit Agent for Claude Code, Codex, Cline, OpenCode, and ZCode
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<em>AI writes the code. BugX hunts the bugs. · 面向主流 AI 编程助手的自主闭环、证据驱动型深度代码审计智能体。</em>
|
|
11
|
-
</p>
|
|
7
|
+
BugX is an autonomous code-audit agent that runs inside your AI coding assistant or on the command line. It audits AI-written code end to end: it builds a coverage list of your project, dispatches concurrent audit workers, verifies every candidate finding with real executions, and produces a report where each finding ships with a command you can run yourself to reproduce it.
|
|
8
|
+
|
|
9
|
+
If you use AI coding tools to write production code, BugX is the security audit and code review layer that checks what the model actually delivered — not what it claims to have delivered.
|
|
12
10
|
|
|
13
11
|
<p align="center">
|
|
14
|
-
<a href="https://www.npmjs.com/package
|
|
15
|
-
<a href="https://nodejs.org/"><img src="https://img.shields.io/badge/node-%3E%3D18.0.0-334155.svg?style=flat
|
|
12
|
+
<a href="https://www.npmjs.com/package/bugx-cli"><img src="https://img.shields.io/npm/v/bugx-cli.svg?style=flat&color=0284c7&label=npm" alt="npm version"></a>
|
|
13
|
+
<a href="https://nodejs.org/"><img src="https://img.shields.io/badge/node-%3E%3D18.0.0-334155.svg?style=flat" alt="Node.js"></a>
|
|
16
14
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-BSL--1.1-334155.svg?style=flat" alt="License: BSL-1.1"></a>
|
|
17
|
-
<
|
|
18
|
-
<a href="https://www.npmjs.com/package/@bencibro/bugx"><img src="https://img.shields.io/badge/security-AST--Redacted%20%26%20Local--First-334155.svg?style=flat" alt="Security"></a>
|
|
15
|
+
<img src="https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows-334155.svg?style=flat" alt="Platform">
|
|
19
16
|
</p>
|
|
20
17
|
|
|
21
|
-
|
|
18
|
+
🌐 Website · 官网:**https://bugx.dev**
|
|
22
19
|
|
|
23
20
|
<p align="center">
|
|
24
|
-
<a href="#-english-documentation">English
|
|
25
|
-
<a href="
|
|
21
|
+
<a href="#-english-documentation">English</a> •
|
|
22
|
+
<a href="#简体中文说明">简体中文</a>
|
|
26
23
|
</p>
|
|
27
24
|
|
|
28
25
|
---
|
|
29
26
|
|
|
30
|
-
##
|
|
27
|
+
## English Documentation
|
|
31
28
|
|
|
32
|
-
###
|
|
29
|
+
### Why AI-written code needs an audit
|
|
33
30
|
|
|
34
|
-
|
|
31
|
+
AI writes code faster than any human can review it, and the model carries a training-level bias toward sounding done rather than being done:
|
|
35
32
|
|
|
36
|
-
|
|
33
|
+
1. **The grader rewards confidence.** Human raters score "I checked it carefully, nothing found" higher than "I haven't finished reading the files." The model learns to report good news.
|
|
34
|
+
2. **Checking is expensive; claiming is cheap.** Reading hundreds of files takes real work. Replying "no issues found" takes a few words.
|
|
35
|
+
3. **It doesn't know what it hasn't checked.** The model cannot see its own coverage gaps and will not say "half done."
|
|
37
36
|
|
|
38
|
-
|
|
39
|
-
flowchart LR
|
|
40
|
-
A[Source Code] --> B[AST & Route Discovery]
|
|
41
|
-
B --> C[Mutation & Race Fuzzing]
|
|
42
|
-
C --> D[Executable PoC Script]
|
|
43
|
-
D --> E[TDD Red-to-Green Patch]
|
|
44
|
-
```
|
|
37
|
+
BugX counters this with a ledger and four hard rules: a per-unit coverage list (checked / blocked / pending), mandatory reproduction (the same attack input must trigger the finding twice and a clean input must trigger nothing), crash-resumable audits, and hash-chained records that keep every verdict reviewable.
|
|
45
38
|
|
|
46
|
-
|
|
47
|
-
- **Red-Green Patch Synthesis**: BugX automatically synthesizes minimal fixes and verifies them with dual test runs before closing findings.
|
|
48
|
-
- **Host-Neutral Architecture**: BugX never hijacks LLM execution. Your AI coding agent drives the actual code analysis and testing natively.
|
|
39
|
+
### What BugX does
|
|
49
40
|
|
|
50
|
-
|
|
41
|
+
- **AI code review** — bugs and defects classified by logic, state, boundary, exception, concurrency, performance, and resource handling.
|
|
42
|
+
- **Functionality review** — a behavior diff: the same inputs go to your implementation and a reference implementation, and the differences are reported.
|
|
43
|
+
- **Performance and memory checks** — performance and resource defects, plus dedicated memory inspection for native, Python, JVM, Electron, Android, and Apple targets.
|
|
44
|
+
- **UI audit** — layout, contrast, keyboard paths, and design tokens on a running web page (`bugx probe ui`).
|
|
45
|
+
- **Reproducible findings** — every vulnerability ships with a command or input you can run yourself; all three verification runs (two positive, one negative control) stay on record.
|
|
46
|
+
- **Mutation-verified tests** — `bugx test-verify` mutates your code to check whether the tests actually catch the bugs.
|
|
47
|
+
- **Patch bundles** — `bugx patch-forge` builds a patch with static checks and hands it to you for review; it never commits on its own.
|
|
48
|
+
- **Lessons base and unattended runs** — `bugx lesson` / `bugx knowledge` accumulate project and global experience; `bugx autonomous` and `bugx goal` run end-to-end audits without supervision.
|
|
51
49
|
|
|
52
|
-
###
|
|
50
|
+
### BugX Studio
|
|
53
51
|
|
|
54
|
-
|
|
55
|
-
- **Node.js**: `>= 18.0.0`
|
|
56
|
-
- **Python**: `>= 3.11` (The BugX core engine is Python-powered; the npm package serves as a lightweight, zero-dependency global wrapper that automatically interfaces with your local Python environment).
|
|
52
|
+
BugX ships with a built-in web console. Run `bugx report serve` and open http://127.0.0.1:8080:
|
|
57
53
|
|
|
58
|
-
|
|
54
|
+
<p align="center">
|
|
55
|
+
<img src="https://raw.githubusercontent.com/Bencibr/bugx/main/core/assets/webui-studio.jpg" alt="BugX Studio workbench" width="860">
|
|
56
|
+
</p>
|
|
59
57
|
|
|
60
|
-
|
|
58
|
+
Every connected host keeps its own audit sessions (ChatGPT, ZCode, Claude, Codex, DSH, OpenCode, Pi, and more):
|
|
61
59
|
|
|
62
|
-
|
|
60
|
+
<p align="center">
|
|
61
|
+
<img src="https://raw.githubusercontent.com/Bencibr/bugx/main/core/assets/webui-chatgpt.jpg" alt="ChatGPT workspace" width="420">
|
|
62
|
+
<img src="https://raw.githubusercontent.com/Bencibr/bugx/main/core/assets/webui-zcode.jpg" alt="ZCode workspace" width="420">
|
|
63
|
+
</p>
|
|
63
64
|
|
|
64
|
-
|
|
65
|
+
The skill marketplace ships with `/audit` (one-shot full-surface audit with a dual-track report), `/review` (structured findings for branch changes), `/mining` (attack-surface survey and hardening), `/fix` (defensive patches with sandboxed regression), and `/test` (AAA tests with mutation-kill scoring):
|
|
65
66
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
<p align="center">
|
|
68
|
+
<img src="https://raw.githubusercontent.com/Bencibr/bugx/main/core/assets/webui-skills.jpg" alt="Skill marketplace" width="860">
|
|
69
|
+
</p>
|
|
69
70
|
|
|
70
|
-
|
|
71
|
-
npx @bencibro/bugx init
|
|
71
|
+
### Quick start
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
npx @bencibro/bugx install
|
|
75
|
-
```
|
|
73
|
+
Requires Node.js `>=18`. Python `>=3.11` is detected and managed by the wrapper.
|
|
76
74
|
|
|
77
|
-
|
|
75
|
+
**Run without installing (zero-config):**
|
|
78
76
|
|
|
79
|
-
|
|
77
|
+
```bash
|
|
78
|
+
npx bugx-cli doctor --strict # check system readiness and AI tool connectivity
|
|
79
|
+
npx bugx-cli init # initialize the current repository (.bugx/)
|
|
80
|
+
npx bugx-cli install # register local AI assistants
|
|
81
|
+
```
|
|
80
82
|
|
|
81
|
-
|
|
83
|
+
**Or install globally** (pick your package manager):
|
|
82
84
|
|
|
83
85
|
```bash
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
#
|
|
88
|
-
|
|
86
|
+
npm install -g bugx-cli
|
|
87
|
+
# pnpm add -g bugx-cli
|
|
88
|
+
# yarn global add bugx-cli
|
|
89
|
+
# bun add -g bugx-cli
|
|
90
|
+
```
|
|
89
91
|
|
|
90
|
-
|
|
91
|
-
yarn global add @bencibro/bugx
|
|
92
|
+
After installing, run this once from any directory:
|
|
92
93
|
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
```bash
|
|
95
|
+
bugx install # lists detected AI hosts and registers the BugX MCP servers
|
|
96
|
+
bugx doctor --strict # health diagnostics
|
|
95
97
|
```
|
|
96
98
|
|
|
97
|
-
|
|
99
|
+
To install everywhere at once: `bugx install --agent all`.
|
|
98
100
|
|
|
99
|
-
|
|
100
|
-
# Initialize workspace
|
|
101
|
-
bugx init
|
|
101
|
+
**Option 1 — inside your AI assistant (recommended).** Open Claude Code, Codex, Cline, OpenCode, or ZCode in any project and just tell it what to check:
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
bugx
|
|
103
|
+
**ZCode**
|
|
104
|
+

|
|
105
105
|
|
|
106
|
-
|
|
107
|
-
bugx
|
|
108
|
-
```
|
|
106
|
+
**Codex**
|
|
107
|
+

|
|
109
108
|
|
|
110
|
-
|
|
109
|
+
**DSH**
|
|
110
|
+

|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
> "Audit this project"
|
|
113
|
+
> "Check the login module for vulnerabilities"
|
|
114
|
+
> "Review the changes on this branch for security issues"
|
|
113
115
|
|
|
114
|
-
BugX
|
|
116
|
+
**Option 2 — from the terminal.** The AI still comes from your installed hosts: BugX reuses the model and credentials you already configured there and never takes over your API keys.
|
|
115
117
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
| **OpenAI Codex** | Workspace Subagent / Native Plugin | `bugx install --agent codex` |
|
|
120
|
-
| **OpenCode** | Headless ACP / Native MCP | `bugx install --agent opencode` |
|
|
121
|
-
| **DeepSeek Harness (DSH)** | Official Web UI Extension & MCP | `bugx install --agent dsh` |
|
|
122
|
-
| **WorkBuddy** | Official IDE Connector Bundle | `bugx install --agent workbuddy` |
|
|
123
|
-
| **Cline / Roo Code** | MCP; interactive single-claim or CLI process-pool execution | `bugx install --agent cline` |
|
|
124
|
-
| **ChatGPT** | Project MCP / interactive host integration | `bugx install --agent chatgpt` |
|
|
125
|
-
| **ZCode** | Native MCP / host integration | `bugx install --agent zcode` |
|
|
126
|
-
| **Pi** | Native MCP / host integration | `bugx install --agent pi` |
|
|
127
|
-
| **Qoder AI** | Native MCP / host integration | `bugx install --agent qoder` |
|
|
128
|
-
| **Trea** | Native MCP / host integration | `bugx install --agent trea` |
|
|
129
|
-
| **FunIDE** | Native MCP / host integration | `bugx install --agent funide` |
|
|
130
|
-
| **Cursor / Windsurf** | Standard MCP Server | `bugx mcp serve --role host` |
|
|
131
|
-
|
|
132
|
-
Run `bugx hosts` to see all supported and detected environments on your system.
|
|
118
|
+
```bash
|
|
119
|
+
bugx auth login # sign in to the cloud account (lesson and experience sync)
|
|
120
|
+
bugx init --cloud-sync sync # enable cloud sync so the project works across devices
|
|
133
121
|
|
|
134
|
-
|
|
122
|
+
bugx engine pre # build the coverage list and audit plan
|
|
123
|
+
bugx engine status # follow progress
|
|
124
|
+
bugx engine post # settle: cross-check coverage, evidence, and verdicts
|
|
135
125
|
|
|
136
|
-
|
|
126
|
+
bugx autonomous --host opencode # full audit without supervision
|
|
127
|
+
bugx goal --host opencode "audit this project's login and payment flows"
|
|
137
128
|
|
|
138
|
-
|
|
129
|
+
bugx report serve # live web console at http://127.0.0.1:8080
|
|
130
|
+
bugx report both --format html --out report.html # offline archive
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Essential commands
|
|
134
|
+
|
|
135
|
+
| Command | What it does |
|
|
139
136
|
| :--- | :--- |
|
|
140
|
-
| `bugx
|
|
141
|
-
| `bugx
|
|
142
|
-
| `bugx doctor` |
|
|
143
|
-
| `bugx
|
|
144
|
-
| `bugx
|
|
145
|
-
| `bugx
|
|
146
|
-
| `bugx
|
|
147
|
-
| `bugx
|
|
148
|
-
| `bugx
|
|
149
|
-
| `bugx
|
|
150
|
-
| `bugx
|
|
151
|
-
|
|
152
|
-
|
|
137
|
+
| `bugx install` | register the BugX MCP servers with detected AI hosts |
|
|
138
|
+
| `bugx hosts` | list every AI environment detected on this machine |
|
|
139
|
+
| `bugx doctor --strict` | health diagnostics for installation and connectivity |
|
|
140
|
+
| `bugx engine pre / status / post` | run and settle a structured audit lifecycle |
|
|
141
|
+
| `bugx autonomous --host <host>` | full unattended audit through your host |
|
|
142
|
+
| `bugx goal --host <host> "<target>"` | audit toward a stated target |
|
|
143
|
+
| `bugx report serve` | live web console (BugX Studio) |
|
|
144
|
+
| `bugx report both --format html` | export the formal + visual report |
|
|
145
|
+
| `bugx probe ui --url <url>` | audit a running web UI |
|
|
146
|
+
| `bugx test-generate` | generate AAA tests or a self-contained PoC |
|
|
147
|
+
| `bugx test-verify` | prove your tests catch real bugs via mutation |
|
|
148
|
+
| `bugx patch-forge` | build a reviewed patch bundle |
|
|
149
|
+
| `bugx lesson` / `bugx knowledge` | project and global experience base |
|
|
150
|
+
| `bugx daemon` | resident watchdog for unattended audits |
|
|
151
|
+
|
|
152
|
+
### Supported AI coding tools
|
|
153
|
+
|
|
154
|
+
| AI coding tool | Integration | Install |
|
|
155
|
+
| :--- | :--- | :--- |
|
|
156
|
+
| Claude Code | native MCP / autonomous lifecycle | `bugx install --agent claude` |
|
|
157
|
+
| OpenAI Codex | workspace subagents / native plugin | `bugx install --agent codex` |
|
|
158
|
+
| OpenCode | headless ACP / native MCP | `bugx install --agent opencode` |
|
|
159
|
+
| Cline / Roo Code | MCP sessions (serial) / CLI process-pool concurrency | `bugx install --agent cline` |
|
|
160
|
+
| ZCode | native MCP / user-level MCP registration | `bugx install --agent zcode` |
|
|
153
161
|
|
|
154
|
-
|
|
162
|
+
DeepSeek Harness (DSH), WorkBuddy, Cursor / Windsurf, and more are being adapted. Run `bugx hosts` to list everything detected on this machine.
|
|
155
163
|
|
|
156
|
-
###
|
|
164
|
+
### Security and privacy
|
|
157
165
|
|
|
158
|
-
-
|
|
159
|
-
-
|
|
160
|
-
-
|
|
166
|
+
- Project state lives in the project's `.bugx/` directory; the global engine, credentials, knowledge base, and caches live in a user-level BugX directory.
|
|
167
|
+
- Credentials are written to a controlled sandbox when needed (readable only by the current user by default). `bugx auth status` reports whether credentials exist — it never prints them.
|
|
168
|
+
- Cloud uploads, feedback, diagnostic log reporting, and sync are all explicit operations: each states its `--scope` before it runs.
|
|
169
|
+
- `reset` / `uninstall` / `purge` / `--no-backup` delete data. Check each command's dry-run and backup behavior first.
|
|
161
170
|
|
|
162
|
-
|
|
171
|
+
### FAQ
|
|
163
172
|
|
|
164
|
-
|
|
173
|
+
**What is BugX?**
|
|
174
|
+
An autonomous code-audit agent for AI-written code. It runs inside AI coding assistants (via MCP) or as a CLI, tracks audit coverage per unit, and verifies every finding by executing it.
|
|
165
175
|
|
|
166
|
-
|
|
176
|
+
**How does BugX verify a vulnerability?**
|
|
177
|
+
Every candidate runs through the engine's verification channel: the same attack input must reproduce the finding twice, and a clean input must produce nothing. All three executions are recorded with commands, exit codes, and artifact hashes.
|
|
167
178
|
|
|
168
|
-
**BugX
|
|
179
|
+
**Does BugX send my code to the cloud?**
|
|
180
|
+
The audit itself runs locally. Cloud sync of lessons and experience is an explicit opt-in; nothing is uploaded unless you run it.
|
|
169
181
|
|
|
170
|
-
|
|
182
|
+
**Does BugX replace human review?**
|
|
183
|
+
No. It gives you a reviewable ledger — what was checked, what wasn't, and reproducible evidence per finding — so human review starts from facts instead of the model's self-report.
|
|
171
184
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
A[项目源码] --> B[白盒 AST 与接口遍历]
|
|
175
|
-
B --> C[变异测试与并发竞态扰动]
|
|
176
|
-
C --> D[自包含独立可执行 PoC]
|
|
177
|
-
D --> E[TDD 红绿双跑最小安全补丁]
|
|
178
|
-
```
|
|
185
|
+
**What languages does BugX audit?**
|
|
186
|
+
Multi-language static and behavioral analysis (Python, JavaScript/TypeScript, Java, Go, Rust, and more via tree-sitter), plus dedicated memory checks for native, Python, JVM, Electron, Android, and Apple targets.
|
|
179
187
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
188
|
+
### Keywords
|
|
189
|
+
|
|
190
|
+
ai code audit · ai code review · code review agent · security audit · vulnerability scanner · sast · static analysis · mcp server · mcp security · claude code · openai codex · opencode · cline · roo code · zcode · coding agent · llm code review · autonomous audit · behavior diff · memory leak detection · python security · javascript security · devsecops
|
|
183
191
|
|
|
184
192
|
---
|
|
185
193
|
|
|
186
|
-
|
|
194
|
+
## 简体中文说明
|
|
187
195
|
|
|
188
|
-
|
|
189
|
-
- **Node.js**:`>= 18.0.0`
|
|
190
|
-
- **Python**:`>= 3.11`(BugX 底层核心引擎由 Python 驱动,npm 包作为轻量 CLI 封装,启动时会自动无缝对接本机 Python 环境)
|
|
196
|
+
### 什么是 BugX?
|
|
191
197
|
|
|
192
|
-
|
|
198
|
+
BugX 是装进 AI 编程助手的代码审计 Agent。它对 AI 写出的代码做端到端审计:把项目拆成覆盖清单、派发并发审计 Worker、对每条候选漏洞做真实执行验证,最终产出一份报告——每条漏洞都附带一条你可以亲手运行的复现命令。
|
|
193
199
|
|
|
194
|
-
|
|
200
|
+
如果你的生产代码来自 AI 编程工具,BugX 就是那个安全审计与代码审查层:它核查模型**实际交付了什么**,而不是模型**声称交付了什么**。
|
|
195
201
|
|
|
196
|
-
|
|
202
|
+
### 为什么 AI 代码需要审计
|
|
197
203
|
|
|
198
|
-
|
|
204
|
+
AI 写代码的速度远超人工审查,而且模型带着训练层面的偏差——听起来做完了,比真的做完了更容易:
|
|
199
205
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
206
|
+
1. **评分机制奖励自信。** 人类评分员给「我仔细查过了,没发现问题」的分数高于「文件我还没看完」。模型学会的是报喜。
|
|
207
|
+
2. **检查贵,声称便宜。** 读几百个文件是体力活,回一句「没发现问题」只要几个字。
|
|
208
|
+
3. **它不知道自己没查完。** 模型看不见自己的覆盖盲区,也不会说「做了一半」。
|
|
209
|
+
|
|
210
|
+
BugX 用一本账和四条硬规矩对抗这件事:逐单元覆盖清单(查完 / 卡住 / 未查)、强制复现(同一段攻击输入触发两次、正常输入触发零次)、审计可断点续跑、哈希链记录让每条结论都可复查。
|
|
211
|
+
|
|
212
|
+
### 快速上手
|
|
213
|
+
|
|
214
|
+
要求 Node.js `>=18`;Python `>=3.11` 由包装器自动检测管理。
|
|
203
215
|
|
|
204
|
-
|
|
205
|
-
npx @bencibro/bugx init
|
|
216
|
+
**免安装直接执行:**
|
|
206
217
|
|
|
207
|
-
|
|
208
|
-
npx
|
|
218
|
+
```bash
|
|
219
|
+
npx bugx-cli doctor --strict # 检查系统就绪与 AI 工具连通
|
|
220
|
+
npx bugx-cli init # 初始化当前仓库(.bugx/)
|
|
221
|
+
npx bugx-cli install # 注册本地 AI 助手
|
|
209
222
|
```
|
|
210
223
|
|
|
211
|
-
|
|
224
|
+
**或全局安装:**
|
|
212
225
|
|
|
213
|
-
|
|
226
|
+
```bash
|
|
227
|
+
npm install -g bugx-cli
|
|
228
|
+
```
|
|
214
229
|
|
|
215
|
-
|
|
230
|
+
装好后任意目录跑一次:
|
|
216
231
|
|
|
217
232
|
```bash
|
|
218
|
-
#
|
|
219
|
-
|
|
233
|
+
bugx install # 列出检测到的 AI 宿主并注册 BugX MCP 服务
|
|
234
|
+
bugx doctor --strict # 健康自检
|
|
235
|
+
```
|
|
220
236
|
|
|
221
|
-
|
|
222
|
-
pnpm add -g @bencibro/bugx
|
|
237
|
+
一次装全所有宿主:`bugx install --agent all`。
|
|
223
238
|
|
|
224
|
-
|
|
225
|
-
yarn global add @bencibro/bugx
|
|
239
|
+
**方式一:在 AI 助手里用(推荐)。** 在任意项目里打开 Claude Code、Codex、Cline、OpenCode 或 ZCode,直接说:
|
|
226
240
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
241
|
+
> 「审计一下这个项目」
|
|
242
|
+
> 「查一下登录模块有没有漏洞」
|
|
243
|
+
|
|
244
|
+
宿主里的 AI 会自动调用 BugX:建覆盖清单、派发并发 Worker、跑探针、验证漏洞、出报告。想实时看,终端跑 `bugx report serve`,浏览器打开 http://127.0.0.1:8080。
|
|
230
245
|
|
|
231
|
-
|
|
246
|
+
**方式二:命令行直接跑。** AI 同样来自你已装好的宿主——模型和凭据直接复用,不接管你的 Key。
|
|
232
247
|
|
|
233
248
|
```bash
|
|
234
|
-
#
|
|
235
|
-
bugx init
|
|
249
|
+
bugx auth login # 登录云端账号(错题/经验同步用)
|
|
250
|
+
bugx init --cloud-sync sync # 开启云端同步
|
|
236
251
|
|
|
237
|
-
|
|
238
|
-
bugx
|
|
252
|
+
bugx engine pre # 建立覆盖清单与审计计划
|
|
253
|
+
bugx engine status # 看进度
|
|
254
|
+
bugx engine post # 结账:核对覆盖、证据与裁决
|
|
239
255
|
|
|
240
|
-
#
|
|
241
|
-
bugx
|
|
256
|
+
bugx autonomous --host opencode # 无人值守完整审计
|
|
257
|
+
bugx report serve # 实时 Web 报告 http://127.0.0.1:8080
|
|
242
258
|
```
|
|
243
259
|
|
|
244
|
-
|
|
245
|
-
> *“使用 BugX 对本项目的 API 边界与数据持久化逻辑进行深度审计。”*
|
|
260
|
+
### 支持的 AI 编程宿主
|
|
246
261
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
### 🤖 支持的 AI 编程宿主
|
|
250
|
-
|
|
251
|
-
| AI 编程助手 | 接入机制 | 快速安装命令 |
|
|
262
|
+
| AI 编程助手 | 接入方式 | 安装命令 |
|
|
252
263
|
| :--- | :--- | :--- |
|
|
253
|
-
|
|
|
254
|
-
|
|
|
255
|
-
|
|
|
256
|
-
|
|
|
257
|
-
|
|
|
258
|
-
| **Cline / Roo Code** | 插件 MCP 交互会话(单 Claim 串行)/ CLI 多进程池自治并发 | `bugx install --agent cline` |
|
|
259
|
-
| **ChatGPT** | 项目级 MCP / 交互式宿主接入 | `bugx install --agent chatgpt` |
|
|
260
|
-
| **ZCode** | 原生 MCP / 宿主接入 | `bugx install --agent zcode` |
|
|
261
|
-
| **Pi** | 原生 MCP / 宿主接入 | `bugx install --agent pi` |
|
|
262
|
-
| **Qoder AI** | 原生 MCP / 宿主接入 | `bugx install --agent qoder` |
|
|
263
|
-
| **Trea** | 原生 MCP / 宿主接入 | `bugx install --agent trea` |
|
|
264
|
-
| **FunIDE** | 原生 MCP / 宿主接入 | `bugx install --agent funide` |
|
|
265
|
-
| **Cursor / Windsurf** | 通用 MCP 服务协议 | `bugx mcp serve --role host` |
|
|
266
|
-
|
|
267
|
-
运行 `bugx hosts` 可实时查看当前设备上支持与检测到的 AI 工具清单。
|
|
264
|
+
| Claude Code | 原生 MCP / 自治生命周期 | `bugx install --agent claude` |
|
|
265
|
+
| OpenAI Codex | 工作区子 Agent / 原生插件 | `bugx install --agent codex` |
|
|
266
|
+
| OpenCode | Headless ACP / 原生 MCP | `bugx install --agent opencode` |
|
|
267
|
+
| Cline / Roo Code | MCP 会话(串行)/ CLI 多进程池并发 | `bugx install --agent cline` |
|
|
268
|
+
| ZCode | 原生 MCP / 用户级注册 | `bugx install --agent zcode` |
|
|
268
269
|
|
|
269
|
-
|
|
270
|
+
DeepSeek Harness(DSH)、WorkBuddy、Cursor / Windsurf 等持续适配中。运行 `bugx hosts` 查看本机检测到的宿主。
|
|
270
271
|
|
|
271
|
-
###
|
|
272
|
+
### 安全与隐私
|
|
272
273
|
|
|
273
|
-
-
|
|
274
|
-
-
|
|
275
|
-
-
|
|
274
|
+
- 项目状态存放在项目内 `.bugx/` 目录;全局引擎、凭据、知识库与缓存在用户级 BugX 目录。
|
|
275
|
+
- 凭据按需写入受控沙箱(默认仅当前用户可读);`bugx auth status` 只报告是否存在,不输出内容。
|
|
276
|
+
- 云端上传、反馈、诊断上报与同步都是显式操作,执行前明确 `--scope`。
|
|
277
|
+
- `reset` / `uninstall` / `purge` / `--no-backup` 会删除数据,注意各自的 dry-run 与备份行为。
|
|
276
278
|
|
|
277
|
-
|
|
279
|
+
### 关键词
|
|
280
|
+
|
|
281
|
+
AI 代码审计 · AI 代码审查 · 代码审查 Agent · 安全审计 · 漏洞扫描 · 静态分析 · MCP 服务 · Claude Code 审计 · Codex 审计 · 编程助手安全 · 自主审计 · 行为差分 · 内存泄漏检测 · Python 安全 · JavaScript 安全
|
|
278
282
|
|
|
279
|
-
|
|
283
|
+
## License
|
|
280
284
|
|
|
281
|
-
|
|
285
|
+
[Business Source License 1.1](https://github.com/Bencibr/bugx/blob/main/LICENSE)
|
|
@@ -25,7 +25,7 @@ flowchart TD
|
|
|
25
25
|
| :--- | :--- | :--- |
|
|
26
26
|
| `cline/` | Cline / Roo Code | 包含 `skills/bugx/SKILL.md`,向 Cline 用户提供自然语言调用 BugX 攻防与审查的标准技能规范 |
|
|
27
27
|
| `dsh/` | DSH (Deep Shell) | 包含 `agents/bugx.md`, `mcp/` (Node.js MCP 桥接), `ui/` (前端交互组件), `skills/` 与 `dsh-patch.yml`,提供端到端深度无缝嵌入 |
|
|
28
|
-
| `opencode/` | OpenCode | 包含 `opencode.json`, `bugx-mcp-manifest.json`, `mcp-lock.json
|
|
28
|
+
| `opencode/` | OpenCode | 包含 `opencode.json`, `bugx-mcp-manifest.json`, `mcp-lock.json`,提供 BugX、Codindex 等 MCP 工具声明与依赖锁 |
|
|
29
29
|
| `pi/` | Pi Agent | 包含 `extensions/bugx` (TypeScript 编写的 Pi 原生扩展插件,含 `manifest.json` 与 `index.ts`) 以及技能定义 |
|
|
30
30
|
| `qoder/` | Qoder IDE | 包含 `connector-meta.json` 与 `CONNECTORS.md`,定义与 Qoder 协作的连接器契约 |
|
|
31
31
|
| `workbuddy/` | WorkBuddy | 包含 `connector-meta.json`, `icon.png`, `skills/bugx/SKILL.md`,提供企业级智能体工作流挂载 |
|
|
@@ -18,7 +18,7 @@ description: BugX 漏洞挖掘引擎在 DeepSeek Harness (DSH) 宿主下的专
|
|
|
18
18
|
python3 --version && node --version
|
|
19
19
|
|
|
20
20
|
# 2. 从源码构建安装最新 bugx-agent(避免 wheel 滞后)
|
|
21
|
-
cd
|
|
21
|
+
cd <repo-root> \
|
|
22
22
|
&& python3 -m build --wheel \
|
|
23
23
|
&& python3 -m pip install dist/bugx_agent-*.whl --force-reinstall --no-deps
|
|
24
24
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
3
|
"name": "bugx-built-in-mcp",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"servers": {
|
|
6
6
|
"bugx-supervisor": {
|
|
7
7
|
"type": "builtin",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"host"
|
|
16
16
|
],
|
|
17
17
|
"source": "core/skills/bugx_mcp_server.py",
|
|
18
|
-
"sha256": "
|
|
18
|
+
"sha256": "25d0e926745b5d2ea80533e9455e2720c2c876bca287e6db1376e9c38d8020ef",
|
|
19
19
|
"health": "initialize"
|
|
20
20
|
},
|
|
21
21
|
"bugx-supervisor-worker": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"worker"
|
|
31
31
|
],
|
|
32
32
|
"source": "core/skills/bugx_mcp_server.py",
|
|
33
|
-
"sha256": "
|
|
33
|
+
"sha256": "25d0e926745b5d2ea80533e9455e2720c2c876bca287e6db1376e9c38d8020ef",
|
|
34
34
|
"health": "initialize"
|
|
35
35
|
},
|
|
36
36
|
"bugx-docs": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
".bugx/knowledge/docs.sqlite3"
|
|
47
47
|
],
|
|
48
48
|
"source": "core/skills/bugx_docs_mcp_server.py",
|
|
49
|
-
"sha256": "
|
|
49
|
+
"sha256": "349d976843bdfeafd2531312eb938e7c3e9f60fa7453502bf3f8a8bf0a2c87ed",
|
|
50
50
|
"health": "initialize"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -3,23 +3,28 @@
|
|
|
3
3
|
"packages": {
|
|
4
4
|
"npm:@mobilenext/mobile-mcp": {
|
|
5
5
|
"ecosystem": "npm",
|
|
6
|
-
"version": "1.0.
|
|
7
|
-
"integrity": "sha512-
|
|
6
|
+
"version": "1.0.18",
|
|
7
|
+
"integrity": "sha512-lRlvx1mSluFbLKBasnuO8r/Nyny+jeiZTmTBH91mHjpSu6XpkjJWL5xIJpW9eqTRXlmLOp/cuPunMPdMzaagaw=="
|
|
8
8
|
},
|
|
9
9
|
"npm:@playwright/mcp": {
|
|
10
10
|
"ecosystem": "npm",
|
|
11
|
-
"version": "0.0.
|
|
12
|
-
"integrity": "sha512-
|
|
11
|
+
"version": "0.0.86",
|
|
12
|
+
"integrity": "sha512-4SL9OSINmik3+EObCYJIxH8BkhcqqGU6CM8XIgztW015iBVR9WR6Q0xF180Ery+xuEVyyK5r6nC2bOg3zjgCoA=="
|
|
13
13
|
},
|
|
14
14
|
"npm:@bencibro/postmcp": {
|
|
15
15
|
"ecosystem": "npm",
|
|
16
16
|
"version": "1.0.4",
|
|
17
17
|
"integrity": "sha512-TYmblHXlKy5BdafzZel0by6YY0EcxgxPoT4Vn2YHQIAXy/1Qgw+VQ2yxiE0x6gyYfVgG+njbCoDLAzOfPLKf4w=="
|
|
18
18
|
},
|
|
19
|
+
"npm:codindex": {
|
|
20
|
+
"ecosystem": "npm",
|
|
21
|
+
"version": "0.1.2",
|
|
22
|
+
"integrity": "sha512-thCHS6taH2t8yutBKOvIxQQwUQ342jav2imozldN7EuxLTAsTMbENixcjKi3ZADSJ4GybDqeTkx1LNuavGDhtg=="
|
|
23
|
+
},
|
|
19
24
|
"npm:@bytebase/dbhub": {
|
|
20
25
|
"ecosystem": "npm",
|
|
21
|
-
"version": "
|
|
22
|
-
"integrity": "sha512
|
|
26
|
+
"version": "2.0.0",
|
|
27
|
+
"integrity": "sha512-/rBxU6EbKbwTY3TOfM1L4VX2Fhc/8/rBT1DOBx7ecWNQ0qYf3ck1xSYFITBZ4zt1fBlzJU8t7VeMf6e9rON52Q=="
|
|
23
28
|
}
|
|
24
29
|
},
|
|
25
30
|
"servers": {
|
|
@@ -32,6 +37,9 @@
|
|
|
32
37
|
"postmcp": {
|
|
33
38
|
"package": "npm:@bencibro/postmcp"
|
|
34
39
|
},
|
|
40
|
+
"codindex": {
|
|
41
|
+
"package": "npm:codindex"
|
|
42
|
+
},
|
|
35
43
|
"dbhub": {
|
|
36
44
|
"package": "npm:@bytebase/dbhub"
|
|
37
45
|
},
|