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
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Project Profile & Positioning Tab Modern Redesign (Apple HIG / Linear Spec)
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
.bx-prof-card {
|
|
6
|
+
border-radius: var(--radius-xl);
|
|
7
|
+
margin-bottom: var(--sp-8);
|
|
8
|
+
background: var(--bx-card-bg);
|
|
9
|
+
border: 1px solid var(--bx-card-border);
|
|
10
|
+
box-shadow: var(--bx-card-shadow);
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.bx-prof-card:hover {
|
|
16
|
+
border-color: rgba(0, 113, 227, 0.2);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.bx-prof-card-title {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
padding: var(--sp-7) var(--sp-9);
|
|
24
|
+
border-bottom: 1px solid var(--bx-border-subtle);
|
|
25
|
+
background: var(--bx-header-bg);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.bx-prof-title-group {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: var(--sp-6);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.bx-prof-icon-wrap {
|
|
35
|
+
width: 32px;
|
|
36
|
+
height: 32px;
|
|
37
|
+
border-radius: var(--radius-md);
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.bx-prof-icon-wrap.primary {
|
|
45
|
+
background: rgba(0, 113, 227, 0.1);
|
|
46
|
+
color: var(--bx-apple-blue-deep);
|
|
47
|
+
border: 1px solid rgba(0, 113, 227, 0.2);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.bx-prof-icon-wrap.accent {
|
|
51
|
+
background: rgba(52, 199, 89, 0.1);
|
|
52
|
+
color: #34c759;
|
|
53
|
+
border: 1px solid rgba(52, 199, 89, 0.2);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.bx-prof-icon-wrap.emerald {
|
|
57
|
+
background: rgba(16, 185, 129, 0.1);
|
|
58
|
+
color: var(--bx-success-ink);
|
|
59
|
+
border: 1px solid rgba(16, 185, 129, 0.25);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.bx-prof-icon-wrap.rose {
|
|
63
|
+
background: rgba(244, 63, 94, 0.1);
|
|
64
|
+
color: #f43f5e;
|
|
65
|
+
border: 1px solid rgba(244, 63, 94, 0.2);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.bx-prof-icon-wrap.amber {
|
|
69
|
+
background: rgba(255, 149, 0, 0.1);
|
|
70
|
+
color: #ff9500;
|
|
71
|
+
border: 1px solid rgba(255, 149, 0, 0.2);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.bx-prof-title-text {
|
|
75
|
+
font-size: var(--fs-emphasis);
|
|
76
|
+
font-weight: 600;
|
|
77
|
+
color: var(--bx-text-main);
|
|
78
|
+
line-height: 1.25;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.bx-prof-title-sub {
|
|
82
|
+
font-size: var(--fs-caption);
|
|
83
|
+
color: var(--bx-text-muted);
|
|
84
|
+
margin-top: 1px;
|
|
85
|
+
font-weight: 400;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Stat Grid & Cards */
|
|
89
|
+
.bx-prof-stat-grid {
|
|
90
|
+
display: grid;
|
|
91
|
+
gap: var(--sp-6);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.bx-prof-stat-card {
|
|
95
|
+
background: var(--bx-mini-card-bg);
|
|
96
|
+
border: 1px solid var(--bx-mini-card-border);
|
|
97
|
+
border-radius: var(--radius-lg);
|
|
98
|
+
padding: var(--sp-6) var(--sp-7);
|
|
99
|
+
transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.bx-prof-stat-card:hover {
|
|
103
|
+
border-color: rgba(0, 113, 227, 0.3);
|
|
104
|
+
transform: translateY(-1px);
|
|
105
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.bx-prof-stat-header {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
justify-content: space-between;
|
|
112
|
+
margin-bottom: var(--sp-3);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.bx-prof-stat-label {
|
|
116
|
+
font-size: var(--fs-caption);
|
|
117
|
+
font-weight: 500;
|
|
118
|
+
color: var(--bx-text-muted);
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
gap: var(--sp-3);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.bx-prof-stat-value {
|
|
125
|
+
font-size: var(--fs-display-lg);
|
|
126
|
+
font-weight: 700;
|
|
127
|
+
line-height: 1.2;
|
|
128
|
+
font-family: var(--app-monospace-font-family);
|
|
129
|
+
letter-spacing: -0.02em;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.bx-prof-stat-sub {
|
|
133
|
+
font-size: var(--fs-caption);
|
|
134
|
+
color: var(--bx-text-muted);
|
|
135
|
+
margin-top: var(--sp-2);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Section Box & Subheads */
|
|
139
|
+
.bx-prof-section-box {
|
|
140
|
+
background: rgba(0, 0, 0, 0.015);
|
|
141
|
+
border: 1px solid var(--bx-border-subtle);
|
|
142
|
+
border-radius: var(--radius-lg);
|
|
143
|
+
padding: var(--sp-5) var(--sp-7);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.bx-prof-subhead {
|
|
147
|
+
display: flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
gap: var(--sp-3);
|
|
150
|
+
font-size: var(--fs-label);
|
|
151
|
+
font-weight: 600;
|
|
152
|
+
color: var(--bx-text-main);
|
|
153
|
+
margin-bottom: var(--sp-4);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.bx-prof-subhead-icon {
|
|
157
|
+
display: inline-flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.bx-prof-tag-group {
|
|
163
|
+
display: flex;
|
|
164
|
+
flex-wrap: wrap;
|
|
165
|
+
gap: var(--sp-4);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* Badges & Pills */
|
|
169
|
+
.bx-prof-pill {
|
|
170
|
+
display: inline-flex;
|
|
171
|
+
align-items: center;
|
|
172
|
+
gap: var(--sp-3);
|
|
173
|
+
padding: var(--sp-2) var(--sp-5);
|
|
174
|
+
border-radius: var(--radius-sm);
|
|
175
|
+
font-size: var(--fs-label-sm);
|
|
176
|
+
font-weight: 500;
|
|
177
|
+
font-family: var(--app-monospace-font-family);
|
|
178
|
+
transition: all 0.15s ease;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.bx-prof-pill.tag-forms {
|
|
182
|
+
background: rgba(0, 113, 227, 0.08);
|
|
183
|
+
color: var(--bx-apple-blue-deep);
|
|
184
|
+
border: 1px solid rgba(0, 113, 227, 0.2);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.bx-prof-pill.tag-surface {
|
|
188
|
+
background: rgba(16, 185, 129, 0.08);
|
|
189
|
+
color: var(--bx-success-ink);
|
|
190
|
+
border: 1px solid rgba(16, 185, 129, 0.22);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.bx-prof-pill.tag-neutral {
|
|
194
|
+
background: var(--bx-black-04);
|
|
195
|
+
color: var(--bx-text-muted);
|
|
196
|
+
border: 1px solid var(--bx-black-08);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.bx-prof-pill.tag-lang {
|
|
200
|
+
background: var(--bx-mini-card-bg);
|
|
201
|
+
border: 1px solid var(--bx-mini-card-border);
|
|
202
|
+
color: var(--bx-text-main);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.bx-lang-dot {
|
|
206
|
+
width: 8px;
|
|
207
|
+
height: 8px;
|
|
208
|
+
border-radius: var(--radius-circle);
|
|
209
|
+
display: inline-block;
|
|
210
|
+
flex-shrink: 0;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.bx-prof-lang-pct {
|
|
214
|
+
font-size: var(--fs-caption);
|
|
215
|
+
color: var(--bx-text-muted);
|
|
216
|
+
margin-left: var(--sp-1);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* Language Stacked Progress Bar */
|
|
220
|
+
.bx-prof-lang-bar {
|
|
221
|
+
height: 8px;
|
|
222
|
+
width: 100%;
|
|
223
|
+
border-radius: var(--radius-xs);
|
|
224
|
+
overflow: hidden;
|
|
225
|
+
display: flex;
|
|
226
|
+
background: var(--bx-black-06);
|
|
227
|
+
margin: var(--sp-4) 0 var(--sp-5) 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.bx-prof-lang-bar-segment {
|
|
231
|
+
height: 100%;
|
|
232
|
+
transition: width 0.3s ease;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* Threat Indicators Banner */
|
|
236
|
+
.bx-prof-threat-banner {
|
|
237
|
+
margin-top: var(--sp-2);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.bx-prof-threat-item {
|
|
241
|
+
background: var(--bx-mini-card-bg);
|
|
242
|
+
border: 1px solid var(--bx-mini-card-border);
|
|
243
|
+
border-radius: var(--radius-md);
|
|
244
|
+
padding: var(--sp-4) var(--sp-6);
|
|
245
|
+
display: flex;
|
|
246
|
+
align-items: center;
|
|
247
|
+
gap: var(--sp-5);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.bx-prof-threat-icon {
|
|
251
|
+
width: 28px;
|
|
252
|
+
height: 28px;
|
|
253
|
+
border-radius: var(--radius-sm);
|
|
254
|
+
display: flex;
|
|
255
|
+
align-items: center;
|
|
256
|
+
justify-content: center;
|
|
257
|
+
flex-shrink: 0;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.bx-prof-threat-icon.danger {
|
|
261
|
+
background: rgba(255, 59, 48, 0.1);
|
|
262
|
+
color: var(--bx-danger-ink);
|
|
263
|
+
border: 1px solid rgba(255, 59, 48, 0.2);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.bx-prof-threat-icon.warning {
|
|
267
|
+
background: rgba(255, 149, 0, 0.1);
|
|
268
|
+
color: #ff9500;
|
|
269
|
+
border: 1px solid rgba(255, 149, 0, 0.2);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.bx-prof-threat-label {
|
|
273
|
+
font-size: var(--fs-caption);
|
|
274
|
+
color: var(--bx-text-muted);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.bx-prof-threat-val {
|
|
278
|
+
font-size: var(--fs-body-lg);
|
|
279
|
+
font-weight: 600;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.bx-prof-threat-val.danger strong {
|
|
283
|
+
color: var(--bx-danger-ink);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.bx-prof-threat-val.warning strong {
|
|
287
|
+
color: #ff9500;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* Hotspots Table */
|
|
291
|
+
.bx-prof-table {
|
|
292
|
+
border-radius: var(--radius-md);
|
|
293
|
+
overflow: hidden;
|
|
294
|
+
border: 1px solid var(--bx-border-subtle);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.bx-prof-table thead th {
|
|
298
|
+
background: var(--bx-table-header-bg);
|
|
299
|
+
padding: var(--sp-4) var(--sp-6);
|
|
300
|
+
font-size: var(--fs-label-sm);
|
|
301
|
+
font-weight: 600;
|
|
302
|
+
color: var(--bx-text-muted);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.bx-prof-table tbody td {
|
|
306
|
+
padding: var(--sp-5) var(--sp-6);
|
|
307
|
+
vertical-align: middle;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/* Dark Mode Adjustments */
|
|
311
|
+
html.dark .bx-prof-card,
|
|
312
|
+
body.dark .bx-prof-card {
|
|
313
|
+
background: #1c1c1e;
|
|
314
|
+
border-color: var(--bx-glass-08);
|
|
315
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
html.dark .bx-prof-card-title,
|
|
319
|
+
body.dark .bx-prof-card-title {
|
|
320
|
+
background: #252528;
|
|
321
|
+
border-bottom-color: var(--bx-glass-06);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
html.dark .bx-prof-stat-card,
|
|
325
|
+
body.dark .bx-prof-stat-card {
|
|
326
|
+
background: rgba(255, 255, 255, 0.03);
|
|
327
|
+
border-color: var(--bx-glass-06);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
html.dark .bx-prof-stat-card:hover,
|
|
331
|
+
body.dark .bx-prof-stat-card:hover {
|
|
332
|
+
background: var(--bx-glass-05);
|
|
333
|
+
border-color: rgba(10, 132, 255, 0.35);
|
|
334
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
html.dark .bx-prof-section-box,
|
|
338
|
+
body.dark .bx-prof-section-box {
|
|
339
|
+
background: rgba(255, 255, 255, 0.02);
|
|
340
|
+
border-color: var(--bx-glass-06);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
html.dark .bx-prof-pill.tag-forms,
|
|
344
|
+
body.dark .bx-prof-pill.tag-forms {
|
|
345
|
+
background: rgba(10, 132, 255, 0.15);
|
|
346
|
+
color: #2997ff;
|
|
347
|
+
border-color: rgba(10, 132, 255, 0.3);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
html.dark .bx-prof-pill.tag-surface,
|
|
351
|
+
body.dark .bx-prof-pill.tag-surface {
|
|
352
|
+
background: rgba(48, 209, 88, 0.15);
|
|
353
|
+
color: #30d158;
|
|
354
|
+
border-color: rgba(48, 209, 88, 0.3);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
html.dark .bx-prof-pill.tag-neutral,
|
|
358
|
+
body.dark .bx-prof-pill.tag-neutral {
|
|
359
|
+
background: var(--bx-glass-05);
|
|
360
|
+
color: var(--bx-text-muted);
|
|
361
|
+
border-color: var(--bx-glass-10);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
html.dark .bx-prof-pill.tag-lang,
|
|
365
|
+
body.dark .bx-prof-pill.tag-lang {
|
|
366
|
+
background: rgba(255, 255, 255, 0.04);
|
|
367
|
+
border-color: var(--bx-glass-08);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
html.dark .bx-prof-lang-bar,
|
|
371
|
+
body.dark .bx-prof-lang-bar {
|
|
372
|
+
background: var(--bx-glass-08);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
html.dark .bx-prof-threat-item,
|
|
376
|
+
body.dark .bx-prof-threat-item {
|
|
377
|
+
background: rgba(255, 255, 255, 0.03);
|
|
378
|
+
border-color: var(--bx-glass-06);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/* =========================================================================
|
|
2
|
+
BugX Studio Design Tokens(F-023 v1)
|
|
3
|
+
全部 token 由 project-settings.css 实测值等值提取(value-equal,像素零变化):
|
|
4
|
+
- spacing:2px 线性坡道 --sp-1..16 + 延伸位 18/24;离坡奇数值已于 v2 ceil-even 归一(1px 线与负 margin 为保留例外)
|
|
5
|
+
- font-size:语义刻度 6 档 0.72/0.75/0.78/0.82/0.85/0.90(v3+轮 72 两次收敛:
|
|
6
|
+
漂移档与 0.02rem 边界对全部归并,相邻间距 ≥0.03rem)
|
|
7
|
+
- radius:xs..xl + pill/circle
|
|
8
|
+
- 色板:Tailwind slate/sky/emerald + Apple HIG 灰阶/主色(与文件内 Apple HIG
|
|
9
|
+
分节注释互证)+ 玻璃拟态 alpha 梯度
|
|
10
|
+
========================================================================= */
|
|
11
|
+
:root {
|
|
12
|
+
/* ---- spacing(2px 线性坡道)---- */
|
|
13
|
+
--sp-1: 2px;
|
|
14
|
+
--sp-2: 4px;
|
|
15
|
+
--sp-3: 6px;
|
|
16
|
+
--sp-4: 8px;
|
|
17
|
+
--sp-5: 10px;
|
|
18
|
+
--sp-6: 12px;
|
|
19
|
+
--sp-7: 14px;
|
|
20
|
+
--sp-8: 16px;
|
|
21
|
+
--sp-9: 18px;
|
|
22
|
+
--sp-10: 20px;
|
|
23
|
+
--sp-11: 22px;
|
|
24
|
+
--sp-12: 24px;
|
|
25
|
+
--sp-13: 26px;
|
|
26
|
+
--sp-14: 28px;
|
|
27
|
+
--sp-15: 30px;
|
|
28
|
+
--sp-16: 32px;
|
|
29
|
+
--sp-18: 36px;
|
|
30
|
+
--sp-24: 48px;
|
|
31
|
+
|
|
32
|
+
/* ---- font-size(实测刻度,按尺寸升序索引)---- */
|
|
33
|
+
/* F-RSI-20261112-097:micro 为徽标/kbd 等 10px 级微文本档(原 px 直用
|
|
34
|
+
8-11px 归一);display 族为页面/区块标题档(原 1.0-1.6rem 散装归一)。
|
|
35
|
+
文本 6 档(caption..emphasis)维持轮 72 定稿不变。 */
|
|
36
|
+
--fs-micro: 0.625rem;
|
|
37
|
+
--fs-caption: 0.72rem;
|
|
38
|
+
--fs-label-sm: 0.75rem;
|
|
39
|
+
--fs-label: 0.78rem;
|
|
40
|
+
--fs-body: 0.82rem;
|
|
41
|
+
--fs-body-lg: 0.85rem;
|
|
42
|
+
--fs-emphasis: 0.90rem;
|
|
43
|
+
--fs-display-sm: 1.05rem;
|
|
44
|
+
--fs-display: 1.15rem;
|
|
45
|
+
--fs-display-lg: 1.40rem;
|
|
46
|
+
--fs-display-xl: 1.60rem;
|
|
47
|
+
|
|
48
|
+
/* ---- border-radius ---- */
|
|
49
|
+
--radius-xs: 4px;
|
|
50
|
+
--radius-sm: 6px;
|
|
51
|
+
--radius-md: 8px;
|
|
52
|
+
--radius-lg: 10px;
|
|
53
|
+
--radius-xl: 12px;
|
|
54
|
+
--radius-pill: 999px;
|
|
55
|
+
--radius-circle: 50%;
|
|
56
|
+
|
|
57
|
+
/* ---- 色板(Tailwind slate/sky/emerald + Apple HIG + 玻璃 alpha)---- */
|
|
58
|
+
--bx-sky-600: #0284c7;
|
|
59
|
+
--bx-white: #ffffff;
|
|
60
|
+
--bx-glass-08: rgba(255, 255, 255, 0.08);
|
|
61
|
+
--bx-slate-500: #64748b;
|
|
62
|
+
--bx-slate-900: #0f172a;
|
|
63
|
+
--bx-sky-400: #38bdf8;
|
|
64
|
+
--bx-slate-50: #f8fafc;
|
|
65
|
+
--bx-apple-gray-100: #f5f5f7;
|
|
66
|
+
--bx-apple-gray-900: #1d1d1f;
|
|
67
|
+
--bx-slate-400: #94a3b8;
|
|
68
|
+
--bx-black-06: rgba(0, 0, 0, 0.06);
|
|
69
|
+
--bx-glass-06: rgba(255, 255, 255, 0.06);
|
|
70
|
+
--bx-apple-blue: #0a84ff;
|
|
71
|
+
--bx-emerald-500: #10b981;
|
|
72
|
+
--bx-apple-gray-500: #86868b;
|
|
73
|
+
--bx-slate-800: #1e293b;
|
|
74
|
+
--bx-black-04: rgba(0, 0, 0, 0.04);
|
|
75
|
+
--bx-black-08: rgba(0, 0, 0, 0.08);
|
|
76
|
+
--bx-apple-blue-deep: #0071e3;
|
|
77
|
+
--bx-apple-red: #ff3b30;
|
|
78
|
+
--bx-glass-12: rgba(255, 255, 255, 0.12);
|
|
79
|
+
--bx-glass-10: rgba(255, 255, 255, 0.1);
|
|
80
|
+
--bx-slate-200: #e2e8f0;
|
|
81
|
+
--bx-apple-gray-400: #a1a1a6;
|
|
82
|
+
--bx-emerald-600: #059669;
|
|
83
|
+
--bx-sky-a12: rgba(56, 189, 248, 0.12);
|
|
84
|
+
--bx-slate-100: #f1f5f9;
|
|
85
|
+
--bx-glass-05: rgba(255, 255, 255, 0.05);
|
|
86
|
+
--bx-sky-a08: rgba(2, 132, 199, 0.08);
|
|
87
|
+
|
|
88
|
+
/* ---- 文本墨色(F-RSI-20261113-113:白底文本场景 AA≥4.5 加深变体)----
|
|
89
|
+
品牌/功能原色(apple-blue/sky-600/apple-red/emerald-500)保留用于
|
|
90
|
+
图形、边框、大字标题;**正文与链接文本**必须消费 ink 变体:
|
|
91
|
+
link-ink 5.93 / danger-ink 4.83 / success-ink 5.48(WCAG AA)。 */
|
|
92
|
+
--bx-link-ink: #0369a1;
|
|
93
|
+
--bx-danger-ink: #dc2626;
|
|
94
|
+
--bx-success-ink: #047857;
|
|
95
|
+
--bx-text-tertiary: #64748b;
|
|
96
|
+
|
|
97
|
+
/* ---- z-index 层级(value-equal 语义映射,v2)---- */
|
|
98
|
+
--z-hidden: -9999;
|
|
99
|
+
--z-raised: 1;
|
|
100
|
+
--z-table-header: 2;
|
|
101
|
+
--z-cell-hover: 3;
|
|
102
|
+
--z-menu-item: 10;
|
|
103
|
+
--z-detail-bar: 20;
|
|
104
|
+
--z-view-container: 50;
|
|
105
|
+
--z-tooltip: 100;
|
|
106
|
+
--z-dropdown: 9999;
|
|
107
|
+
--z-modal-overlay: 9999;
|
|
108
|
+
--z-toast: 100000;
|
|
109
|
+
--z-popover: 100000;
|
|
110
|
+
--z-modal-backdrop: 100001;
|
|
111
|
+
--z-confirm-dialog: 100005;
|
|
112
|
+
--z-settings-overlay: 10000000;
|
|
113
|
+
}
|
|
@@ -33,7 +33,20 @@
|
|
|
33
33
|
</script>
|
|
34
34
|
<script type="module" crossorigin src="./assets/index-CXAsl8mr.js"></script>
|
|
35
35
|
<link rel="stylesheet" crossorigin href="./assets/index-DHQUtWtx.css">
|
|
36
|
-
<link rel="stylesheet" href="./
|
|
36
|
+
<link rel="stylesheet" href="./design-tokens.css?v=369">
|
|
37
|
+
<link rel="stylesheet" href="./00-base.css?v=369">
|
|
38
|
+
<link rel="stylesheet" href="./01-monitoring.css?v=369">
|
|
39
|
+
<link rel="stylesheet" href="./02-header-actions.css?v=369">
|
|
40
|
+
<link rel="stylesheet" href="./03-trigger-popover.css?v=369">
|
|
41
|
+
<link rel="stylesheet" href="./04-composer.css?v=369">
|
|
42
|
+
<link rel="stylesheet" href="./05-skills-center.css?v=369">
|
|
43
|
+
<link rel="stylesheet" href="./06-mcp-center.css?v=369">
|
|
44
|
+
<link rel="stylesheet" href="./07-skill-detail.css?v=369">
|
|
45
|
+
<link rel="stylesheet" href="./08-files-management.css?v=369">
|
|
46
|
+
<link rel="stylesheet" href="./09-files-center.css?v=369">
|
|
47
|
+
<link rel="stylesheet" href="./10-icons.css?v=369">
|
|
48
|
+
<link rel="stylesheet" href="./11-project-options.css?v=369">
|
|
49
|
+
<link rel="stylesheet" href="./12-profile-tab.css?v=369">
|
|
37
50
|
<script src="./project-settings.js?v=366" defer></script>
|
|
38
51
|
</head>
|
|
39
52
|
<body>
|
|
@@ -125,7 +125,7 @@ def _discover_candidate_workspaces(self) -> list[Path]:
|
|
|
125
125
|
except Exception:
|
|
126
126
|
is_temp_fn = lambda p: False
|
|
127
127
|
|
|
128
|
-
# 1. Sibling directories under the same workspace container (e.g.
|
|
128
|
+
# 1. Sibling directories under the same workspace container (e.g. ~/workspace/*)
|
|
129
129
|
try:
|
|
130
130
|
ws_parent = self.workspace.parent.resolve()
|
|
131
131
|
if ws_parent not in (home, root) and ws_parent.is_dir() and not is_temp_fn(ws_parent):
|