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.
Files changed (311) hide show
  1. package/README.md +190 -186
  2. package/core/README.md +2 -2
  3. package/core/agent/README.md +2 -1
  4. package/core/agent/agent_artifacts.py +8 -6
  5. package/core/agent/agent_eval.py +136 -54
  6. package/core/agent/agent_execution.py +218 -52
  7. package/core/agent/agent_orchestrator.py +14 -8
  8. package/core/agent/agent_targets.py +8 -2
  9. package/core/agent/feature_baseline.py +150 -0
  10. package/core/assets/axe-core/LICENSE-3RD-PARTY.txt +66 -0
  11. package/core/assets/axe-core/LICENSE.txt +362 -0
  12. package/core/assets/axe-core/UPSTREAM.md +10 -0
  13. package/core/assets/axe-core/axe.min.js +12 -0
  14. package/core/assets/bugx-hero-en.svg +74 -0
  15. package/core/assets/bugx-hero-zh.svg +74 -0
  16. package/core/assets/codex.png +0 -0
  17. package/core/assets/dsh.png +0 -0
  18. package/core/assets/webui-chatgpt.jpg +0 -0
  19. package/core/assets/webui-session.jpg +0 -0
  20. package/core/assets/webui-skills.jpg +0 -0
  21. package/core/assets/webui-studio.jpg +0 -0
  22. package/core/assets/webui-zcode.jpg +0 -0
  23. package/core/assets/zcode.png +0 -0
  24. package/core/autonomous_cve/SPEC.md +1 -1
  25. package/core/autonomous_cve/attack_graph_store.py +152 -106
  26. package/core/autonomous_cve/behavior_graph.py +8 -2
  27. package/core/autonomous_cve/verifier.py +4 -1
  28. package/core/bugx.md +1 -1
  29. package/core/bugx_paths.py +43 -8
  30. package/core/cli-help.txt +66 -0
  31. package/core/cloud_sync/SPEC.md +1 -1
  32. package/core/cloud_sync/cloud_client.py +25 -6
  33. package/core/cloud_sync/cloud_onboard.py +42 -1
  34. package/core/cloud_sync/flywheel_client.py +16 -7
  35. package/core/cloud_sync/network_transport.py +24 -3
  36. package/core/cloud_sync/sensitive_filter.py +2 -2
  37. package/core/cloud_sync/sync_push.py +12 -10
  38. package/core/contracts/AGENT_GUIDE.md +6 -9
  39. package/core/contracts/README.md +2 -2
  40. package/core/contracts/bugx-runtime-contract.md +1 -1
  41. package/core/contracts/bugx-worker.md +1 -1
  42. package/core/contracts/engine_gap_contracts.py +86 -3
  43. package/core/coverage/coverage_discovery.py +599 -29
  44. package/core/coverage/coverage_evidence.py +47 -0
  45. package/core/coverage/coverage_forensics.py +9 -0
  46. package/core/coverage/coverage_validate.py +6 -1
  47. package/core/dev_harness/SPEC.md +1 -1
  48. package/core/engine-integrity.json +591 -419
  49. package/core/fuzzing/concurrency_fuzzer.py +53 -0
  50. package/core/fuzzing/differential_oracle.py +562 -27
  51. package/core/fuzzing/fuzz_input.py +109 -6
  52. package/core/fuzzing/stateful_fuzzer.py +72 -0
  53. package/core/governance/secret_redactor.py +22 -10
  54. package/core/host_acp/SPEC.md +1 -1
  55. package/core/host_acp/__init__.py +4 -4
  56. package/core/host_acp/claude.py +59 -1
  57. package/core/host_acp/cline.py +64 -1
  58. package/core/host_acp/codex.py +56 -1
  59. package/core/host_acp/dsh.py +59 -1
  60. package/core/host_acp/opencode.py +56 -1
  61. package/core/host_acp/pi.py +59 -1
  62. package/core/host_acp/zcode.py +59 -1
  63. package/core/host_runtime/SPEC.md +1 -1
  64. package/core/host_runtime/adapters.py +1 -1
  65. package/core/host_runtime/cline.py +13 -0
  66. package/core/host_runtime/host_evaluators.py +44 -4
  67. package/core/host_runtime/host_probe.py +1 -1
  68. package/core/host_runtime/host_provider_arbitrator.py +116 -62
  69. package/core/host_runtime/host_registry.py +15 -8
  70. package/core/host_runtime/mcp_registry_gate.py +12 -1
  71. package/core/host_runtime/pi.py +102 -0
  72. package/core/host_runtime/provider_facts.py +66 -0
  73. package/core/hosts/SPEC.md +1 -1
  74. package/core/hosts/__init__.py +6 -2
  75. package/core/hosts/_dsh_usage.py +1 -1
  76. package/core/hosts/base.py +32 -4
  77. package/core/hosts/claude.py +55 -0
  78. package/core/hosts/cline.py +6 -2
  79. package/core/hosts/codex.py +58 -0
  80. package/core/hosts/dsh.py +9 -1
  81. package/core/hosts/opencode.py +6 -6
  82. package/core/hosts/pi.py +159 -2
  83. package/core/infra/README.md +4 -2
  84. package/core/infra/__init__.py +2 -0
  85. package/core/infra/build_info.py +22 -3
  86. package/core/infra/client_metadata.py +1 -1
  87. package/core/infra/json_utils.py +22 -0
  88. package/core/launch_phases/README.md +2 -2
  89. package/core/launch_phases/SPEC.md +1 -1
  90. package/core/launch_phases/common.py +21 -2
  91. package/core/launch_phases/finding_confirm_phase.py +5 -1
  92. package/core/launch_phases/finding_settlement.py +188 -1
  93. package/core/launch_phases/judge_phase.py +69 -12
  94. package/core/launch_phases/orchestrator_controls.py +11 -7
  95. package/core/launch_phases/post_coverage_sync.py +9 -2
  96. package/core/launch_phases/post_phase.py +139 -3
  97. package/core/launch_phases/post_receipt.py +12 -1
  98. package/core/launch_phases/pre_phase.py +3 -3
  99. package/core/launch_phases/pre_recon_scout.py +53 -36
  100. package/core/launch_phases/pre_state_builder.py +23 -176
  101. package/core/launch_phases/round_orchestrator.py +15 -32
  102. package/core/launch_phases/session_runtime.py +56 -9
  103. package/core/launch_phases/startup_gates.py +36 -8
  104. package/core/launch_phases/startup_interaction.py +68 -12
  105. package/core/launch_phases/startup_version_gate.py +9 -3
  106. package/core/launch_phases/supervisor_bridge.py +46 -17
  107. package/core/launch_phases/supervisor_coverage.py +8 -2
  108. package/core/launch_phases/supervisor_degraded.py +1 -9
  109. package/core/launch_phases/worker_barriers.py +15 -5
  110. package/core/launch_phases/worker_orchestrator.py +105 -25
  111. package/core/ledger/README.md +1 -1
  112. package/core/ledger/SPEC.md +1 -1
  113. package/core/ledger/_facade.py +2 -1
  114. package/core/ledger/archive_ops.py +60 -2
  115. package/core/ledger/cli.py +6 -1
  116. package/core/ledger/export_ops.py +6 -1
  117. package/core/ledger/finding_confirmation.py +48 -6
  118. package/core/ledger/finding_lifecycle.py +428 -5
  119. package/core/ledger/finding_verification.py +44 -8
  120. package/core/ledger/incidents.py +10 -4
  121. package/core/ledger/patterns.py +10 -7
  122. package/core/ledger/receipt_contract.py +17 -1
  123. package/core/ledger/sync_ops.py +21 -16
  124. package/core/ledger/tool_experience.py +2 -1
  125. package/core/ledger/verify_life.py +88 -17
  126. package/core/locales/en-US.json +2 -2
  127. package/core/locales/zh-CN.json +2 -2
  128. package/core/mcp_handlers/SPEC.md +1 -1
  129. package/core/mcp_handlers/base.py +23 -3
  130. package/core/mcp_handlers/channel_lifecycle.py +85 -30
  131. package/core/mcp_handlers/retrieval_handlers.py +11 -1
  132. package/core/mcp_handlers/rpc_server.py +6 -1
  133. package/core/mcp_handlers/supervisor_handlers.py +32 -6
  134. package/core/mcp_handlers/tool_table.py +15 -0
  135. package/core/mcp_runtime_support/environment.py +0 -38
  136. package/core/mcp_runtime_support/verifier.py +0 -52
  137. package/core/metadata.txt +2 -3
  138. package/core/planning/README.md +1 -1
  139. package/core/planning/domain_router.py +4 -2
  140. package/core/planning/dynamic_flow_analyzer.py +219 -14
  141. package/core/planning/judge_pipeline.py +87 -4
  142. package/core/planning/prompt_harness.py +7 -5
  143. package/core/planning/spec_harvester.py +4 -4
  144. package/core/probes/INTERFACE.md +11 -1
  145. package/core/probes/SPEC.md +11 -1
  146. package/core/probes/__init__.py +46 -40
  147. package/core/probes/android_probe.py +177 -9
  148. package/core/probes/codebase_memory_probe.py +57 -0
  149. package/core/probes/desktop_probe.py +104 -0
  150. package/core/probes/differential_probe.py +99 -21
  151. package/core/probes/efficiency_probe.py +64 -0
  152. package/core/probes/ios_binary_probe.py +105 -1
  153. package/core/probes/memory_probe.py +66 -0
  154. package/core/probes/miniprogram_probe.py +75 -13
  155. package/core/probes/mobile_probe.py +215 -30
  156. package/core/probes/native_probe.py +88 -0
  157. package/core/probes/openwiki_probe.py +70 -0
  158. package/core/probes/pattern_probe.py +106 -0
  159. package/core/probes/platform_probe.py +81 -0
  160. package/core/probes/probe_registry.py +108 -7
  161. package/core/probes/sast_fixture_corpus.py +340 -0
  162. package/core/probes/sast_probe.py +553 -52
  163. package/core/probes/sast_rules.py +668 -28
  164. package/core/probes/sca_scanner.py +48 -0
  165. package/core/probes/ui_accessibility.py +149 -0
  166. package/core/probes/ui_audit.py +513 -0
  167. package/core/probes/ui_contract.py +273 -0
  168. package/core/probes/ui_evidence.py +212 -0
  169. package/core/probes/ui_measurements.py +314 -0
  170. package/core/probes/ui_repair.py +250 -0
  171. package/core/probes/ui_review.py +133 -0
  172. package/core/probes/ui_storybook.py +107 -0
  173. package/core/probes/ui_tokens.py +185 -0
  174. package/core/probes/ui_visual_diff.py +131 -0
  175. package/core/probes/web_probe.py +373 -18
  176. package/core/project_profiler/SPEC.md +1 -1
  177. package/core/project_profiler/arbitrator.py +6 -1
  178. package/core/project_profiler/detector.py +8 -1
  179. package/core/project_profiler/strategy.py +51 -15
  180. package/core/prompts/command_routing_en.md +2 -2
  181. package/core/prompts/command_routing_zh.md +2 -2
  182. package/core/prompts/stages/stage_repair.md +1 -1
  183. package/core/repair/README.md +1 -1
  184. package/core/repair/l7_repair_loop.py +1 -4
  185. package/core/repair/rsi_fixer.py +4 -4
  186. package/core/repair/rsi_loop.py +1 -3
  187. package/core/repair/rsi_repair.py +7 -7
  188. package/core/repair/rsi_scope.py +27 -8
  189. package/core/report_engine/SPEC.md +1 -1
  190. package/core/report_engine/attestation.py +8 -4
  191. package/core/report_engine/finding_report.py +2 -1
  192. package/core/report_engine/models.py +7 -9
  193. package/core/report_engine/sast_bridge.py +2 -2
  194. package/core/report_engine/server.py +18 -8
  195. package/core/report_engine/web-conformance.md +123 -18
  196. package/core/report_engine/web_conformance.py +21 -52
  197. package/core/retrieval/README.md +1 -1
  198. package/core/retrieval/SPEC.md +1 -1
  199. package/core/retrieval/code_analyzer.py +50 -14
  200. package/core/retrieval/context_assembler.py +7 -1
  201. package/core/retrieval/knowledge_sync.py +108 -14
  202. package/core/retrieval/symbol_index.py +25 -6
  203. package/core/retrieval/universal_code_matcher.py +234 -49
  204. package/core/runtime/README.md +1 -1
  205. package/core/runtime/bugx_logging.py +78 -7
  206. package/core/runtime/fixture_solidify.py +5 -10
  207. package/core/runtime/incident_eval.py +1 -1
  208. package/core/runtime/model_runner.py +4 -41
  209. package/core/runtime/platform_adapter.py +2 -2
  210. package/core/runtime/prep_validate.py +4 -2
  211. package/core/runtime/project_settings.py +2 -1
  212. package/core/runtime/scenario_eval.py +50 -8
  213. package/core/skills/bugx_docs_mcp_server.py +3 -1
  214. package/core/skills/bugx_mcp_server.py +29 -2
  215. package/core/skills/tools_kb.py +1 -1
  216. package/core/supervisor/README.md +1 -1
  217. package/core/supervisor/SPEC.md +1 -1
  218. package/core/supervisor/budget_governor.py +503 -9
  219. package/core/supervisor/checkpoint_pipeline.py +248 -6
  220. package/core/supervisor/checkpoint_sync.py +13 -0
  221. package/core/supervisor/claim_events.py +1 -1
  222. package/core/supervisor/finding_workflow.py +22 -5
  223. package/core/supervisor/lease_manager.py +1 -1
  224. package/core/supervisor/lifecycle_blocks.py +6 -1
  225. package/core/supervisor/rejection_remedies.py +52 -5
  226. package/core/supervisor/serial_authorization.py +48 -4
  227. package/core/supervisor/task_scheduler.py +2 -2
  228. package/core/supervisor/worker_checkpoint.py +8 -1
  229. package/core/supervisor/worker_runtime.py +8 -2
  230. package/core/supervisor_types/worker_claim.py +9 -0
  231. package/core/webui/README.md +1 -1
  232. package/core/webui/SPEC.md +2 -1
  233. package/core/webui/adapters/claude.py +5 -1
  234. package/core/webui/adapters/cline.py +10 -2
  235. package/core/webui/adapters/codex.py +5 -1
  236. package/core/webui/adapters/dsh.py +5 -1
  237. package/core/webui/docs_session_service.py +2 -2
  238. package/core/webui/mcp_inspector.py +11 -7
  239. package/core/webui/static/00-base.css +1060 -0
  240. package/core/webui/static/01-monitoring.css +802 -0
  241. package/core/webui/static/02-header-actions.css +321 -0
  242. package/core/webui/static/03-trigger-popover.css +697 -0
  243. package/core/webui/static/04-composer.css +628 -0
  244. package/core/webui/static/05-skills-center.css +878 -0
  245. package/core/webui/static/06-mcp-center.css +623 -0
  246. package/core/webui/static/07-skill-detail.css +265 -0
  247. package/core/webui/static/08-files-management.css +167 -0
  248. package/core/webui/static/09-files-center.css +386 -0
  249. package/core/webui/static/10-icons.css +105 -0
  250. package/core/webui/static/11-project-options.css +185 -0
  251. package/core/webui/static/12-profile-tab.css +383 -0
  252. package/core/webui/static/design-tokens.css +113 -0
  253. package/core/webui/static/index.html +14 -1
  254. package/core/webui/workspace_service.py +1 -1
  255. package/docs/07_distribution/01_README_NPM.md +190 -186
  256. package/ecosystem/integrations/README.md +1 -1
  257. package/ecosystem/integrations/dsh/mcp/package.json +1 -1
  258. package/ecosystem/integrations/dsh/skills/bugx-dsh/SKILL.md +1 -1
  259. package/ecosystem/integrations/dsh/ui/package.json +1 -1
  260. package/ecosystem/integrations/opencode/bugx-mcp-manifest.json +4 -4
  261. package/ecosystem/integrations/opencode/mcp-lock.json +14 -6
  262. package/ecosystem/integrations/opencode/opencode.json +23 -12
  263. package/ecosystem/integrations/pi/extensions/bugx/manifest.json +1 -1
  264. package/ecosystem/integrations/qoder/connector-meta.json +1 -1
  265. package/ecosystem/integrations/workbuddy/connector-meta.json +1 -1
  266. package/ecosystem/integrations/workbuddy/skills/bugx/SKILL.md +1 -1
  267. package/ecosystem/plugins/bugx/.claude-plugin/plugin.json +1 -1
  268. package/ecosystem/plugins/bugx/.codex-plugin/plugin.json +1 -1
  269. package/ecosystem/plugins/bugx/.zcode-plugin/plugin.json +1 -1
  270. package/ecosystem/plugins/bugx/skills/bugx/SKILL.md +2 -2
  271. package/ecosystem/plugins/bugx/skills/bugx-dsh/SKILL.md +1 -1
  272. package/ecosystem/plugins/bugx/skills/bugx-opencode/SKILL.md +1 -1
  273. package/ecosystem/plugins/bugx/skills/bugx-zcode/SKILL.md +1 -1
  274. package/interfaces/bin/bugx.js +37 -0
  275. package/interfaces/cli/bugx_cli/__init__.py +4 -2
  276. package/interfaces/cli/bugx_cli/cli.py +11 -4
  277. package/interfaces/cli/bugx_cli/commands/advisory.py +1 -1
  278. package/interfaces/cli/bugx_cli/commands/agent.py +339 -73
  279. package/interfaces/cli/bugx_cli/commands/audit.py +2 -2
  280. package/interfaces/cli/bugx_cli/commands/autonomous.py +1 -1
  281. package/interfaces/cli/bugx_cli/commands/cloud.py +4 -3
  282. package/interfaces/cli/bugx_cli/commands/doctor.py +449 -204
  283. package/interfaces/cli/bugx_cli/commands/interaction.py +5 -1
  284. package/interfaces/cli/bugx_cli/commands/knowledge.py +2 -0
  285. package/interfaces/cli/bugx_cli/commands/lifecycle.py +3 -3
  286. package/interfaces/cli/bugx_cli/commands/plugin.py +55 -20
  287. package/interfaces/cli/bugx_cli/commands/plugin_claude.py +7 -7
  288. package/interfaces/cli/bugx_cli/commands/plugin_funide.py +2 -1
  289. package/interfaces/cli/bugx_cli/commands/plugin_zcode.py +1 -1
  290. package/interfaces/cli/bugx_cli/commands/report.py +2 -6
  291. package/interfaces/cli/bugx_cli/commands/system.py +11 -11
  292. package/interfaces/cli/bugx_cli/common.py +15 -7
  293. package/interfaces/cli/bugx_cli/host_adapters.py +29 -54
  294. package/interfaces/cli/bugx_cli/hosts/registry.py +8 -6
  295. package/interfaces/cli/bugx_cli/infra/ai_advisor.py +157 -27
  296. package/interfaces/cli/bugx_cli/infra/engine_installer.py +18 -10
  297. package/interfaces/cli/bugx_cli/infra/host_sync.py +11 -8
  298. package/interfaces/cli/bugx_cli/infra/mcp_advisor.py +76 -5
  299. package/interfaces/cli/bugx_cli/infra/security.py +13 -6
  300. package/package.json +2 -1
  301. package/pyproject.toml +20 -8
  302. package/scripts/ensure-python.mjs +7 -7
  303. package/scripts/sync-version.mjs +10 -21
  304. package/scripts/test-npm-wrapper.mjs +1 -1
  305. package/core/webui/static/project-settings.css +0 -6458
  306. package/docs/07_distribution/README.md +0 -16
  307. package/docs/README.md +0 -121
  308. package/interfaces/README.md +0 -143
  309. package/interfaces/bin/README.md +0 -35
  310. package/interfaces/cli/README.md +0 -90
  311. package/scripts/README.md +0 -118
@@ -0,0 +1,386 @@
1
+ /* =========================================================================
2
+ Workspace Context Menu & Project Deletion Styles (Images 4 & 5 Fix)
3
+ ========================================================================= */
4
+ /* 彻底消灭侧边栏行内暴露的快捷垃圾桶,绝不允许在行内显示 (图片 4 & 5 修复) */
5
+ .bx-proj-del-quick-btn,
6
+ .sidebar-project-row .bx-proj-del-quick-btn,
7
+ .sidebar-project .bx-proj-del-quick-btn {
8
+ display: none !important;
9
+ visibility: hidden !important;
10
+ opacity: 0 !important;
11
+ width: 0 !important;
12
+ height: 0 !important;
13
+ margin: 0 !important;
14
+ padding: 0 !important;
15
+ pointer-events: none !important;
16
+ }
17
+
18
+ /* 侧边栏项目行三点菜单按钮:彻底杜绝加号图标,强制替换为极简精致三点操作 */
19
+ .sidebar-project-new {
20
+ display: inline-flex !important;
21
+ align-items: center;
22
+ justify-content: center;
23
+ width: 24px !important;
24
+ height: 24px !important;
25
+ min-width: 24px !important;
26
+ border-radius: var(--radius-sm);
27
+ color: var(--bx-text-muted, var(--bx-slate-500)) !important;
28
+ background: transparent !important;
29
+ border: none;
30
+ cursor: pointer !important;
31
+ transition: all 0.15s ease !important;
32
+ padding: 0;
33
+ margin-left: var(--sp-1) !important;
34
+ opacity: 0.7 !important;
35
+ }
36
+
37
+ .sidebar-project-row:hover .sidebar-project-new,
38
+ .sidebar-project:hover .sidebar-project-new {
39
+ opacity: 1 !important;
40
+ }
41
+
42
+ .sidebar-project-new:hover {
43
+ background: rgba(14, 165, 233, 0.12) !important;
44
+ color: var(--bx-link-ink) !important;
45
+ }
46
+
47
+ html.dark .sidebar-project-new:hover,
48
+ body.dark .sidebar-project-new:hover {
49
+ background: rgba(56, 189, 248, 0.15) !important;
50
+ color: var(--bx-sky-400) !important;
51
+ }
52
+
53
+ /* 隐藏可能残存的原生加号路径,保证只有三点图标展示 */
54
+ .sidebar-project-new:not(.bx-proj-more-btn) svg,
55
+ .sidebar-project-new svg:not(.bx-icon) {
56
+ display: none !important;
57
+ }
58
+
59
+ .bx-workspace-context-menu {
60
+ position: fixed;
61
+ z-index: var(--z-popover);
62
+ min-width: 260px;
63
+ max-width: 340px;
64
+ background: var(--bx-modal-bg, var(--bx-white));
65
+ border: 1px solid var(--bx-modal-border, rgba(0, 0, 0, 0.1));
66
+ border-radius: var(--radius-xl);
67
+ box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.05);
68
+ backdrop-filter: blur(24px);
69
+ -webkit-backdrop-filter: blur(24px);
70
+ padding: var(--sp-3);
71
+ font-family: var(--app-sans-font-family);
72
+ animation: bxCtxPop 0.16s cubic-bezier(0.16, 1, 0.3, 1);
73
+ transform-origin: top left;
74
+ }
75
+
76
+ @keyframes bxCtxPop {
77
+ from {
78
+ opacity: 0;
79
+ transform: scale(0.92);
80
+ }
81
+ to {
82
+ opacity: 1;
83
+ transform: scale(1);
84
+ }
85
+ }
86
+
87
+ .bx-ctx-header {
88
+ display: flex;
89
+ align-items: center;
90
+ gap: var(--sp-5);
91
+ padding: var(--sp-4) var(--sp-5) var(--sp-3);
92
+ }
93
+
94
+ .bx-ctx-header-icon {
95
+ font-size: var(--fs-display);
96
+ }
97
+
98
+ .bx-ctx-header-info {
99
+ flex: 1;
100
+ min-width: 0;
101
+ }
102
+
103
+ .bx-ctx-header-title {
104
+ font-size: var(--fs-emphasis);
105
+ font-weight: 600;
106
+ color: var(--bx-text-main, var(--bx-apple-gray-900));
107
+ white-space: nowrap;
108
+ overflow: hidden;
109
+ text-overflow: ellipsis;
110
+ }
111
+
112
+ .bx-ctx-header-path {
113
+ font-size: var(--fs-caption);
114
+ color: var(--bx-text-muted, var(--bx-apple-gray-500));
115
+ white-space: nowrap;
116
+ overflow: hidden;
117
+ text-overflow: ellipsis;
118
+ direction: rtl;
119
+ text-align: left;
120
+ }
121
+
122
+ .bx-ctx-divider {
123
+ height: 1px;
124
+ background: var(--bx-border-subtle, var(--bx-black-06));
125
+ margin: var(--sp-2) 0;
126
+ }
127
+
128
+ .bx-ctx-item {
129
+ display: flex;
130
+ align-items: center;
131
+ gap: var(--sp-5);
132
+ width: 100%;
133
+ padding: var(--sp-4) var(--sp-5);
134
+ border-radius: var(--radius-md);
135
+ border: none;
136
+ background: transparent;
137
+ color: var(--bx-text-main, var(--bx-apple-gray-900));
138
+ cursor: pointer;
139
+ text-align: left;
140
+ transition: background 0.12s ease, transform 0.12s ease;
141
+ }
142
+
143
+ .bx-ctx-item:hover {
144
+ background: rgba(0, 0, 0, 0.05);
145
+ }
146
+
147
+ .bx-ctx-item.danger {
148
+ color: var(--bx-danger-ink);
149
+ }
150
+
151
+ .bx-ctx-item.danger:hover {
152
+ background: rgba(255, 59, 48, 0.1);
153
+ }
154
+
155
+ .bx-ctx-item-icon {
156
+ font-size: var(--fs-display-sm);
157
+ flex-shrink: 0;
158
+ }
159
+
160
+ .bx-ctx-item-content {
161
+ flex: 1;
162
+ min-width: 0;
163
+ display: flex;
164
+ flex-direction: column;
165
+ }
166
+
167
+ .bx-ctx-item-title {
168
+ font-size: var(--fs-body-lg);
169
+ font-weight: 500;
170
+ line-height: 1.3;
171
+ }
172
+
173
+ .bx-ctx-item-desc {
174
+ font-size: var(--fs-caption);
175
+ color: var(--bx-text-muted, var(--bx-apple-gray-500));
176
+ line-height: 1.2;
177
+ margin-top: var(--sp-1);
178
+ }
179
+
180
+ .bx-ctx-item.danger .bx-ctx-item-desc {
181
+ color: rgba(255, 59, 48, 0.8);
182
+ }
183
+
184
+ .bx-ctx-badge {
185
+ font-size: var(--fs-caption);
186
+ padding: var(--sp-1) var(--sp-3);
187
+ border-radius: var(--radius-xs);
188
+ background: rgba(255, 59, 48, 0.15);
189
+ color: var(--bx-danger-ink);
190
+ font-weight: 600;
191
+ margin-left: auto;
192
+ }
193
+
194
+ .pulse-highlight {
195
+ animation: bxPulseHighlight 1.2s infinite alternate;
196
+ }
197
+
198
+ @keyframes bxPulseHighlight {
199
+ 0% {
200
+ background: rgba(255, 59, 48, 0.08);
201
+ box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4);
202
+ }
203
+ 100% {
204
+ background: rgba(255, 59, 48, 0.22);
205
+ box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.15);
206
+ }
207
+ }
208
+
209
+ /* Deletion Confirmation Modal */
210
+ .bx-confirm-dialog-backdrop {
211
+ position: fixed;
212
+ inset: 0;
213
+ z-index: var(--z-confirm-dialog);
214
+ background: rgba(0, 0, 0, 0.45);
215
+ backdrop-filter: blur(8px);
216
+ -webkit-backdrop-filter: blur(8px);
217
+ display: flex;
218
+ align-items: center;
219
+ justify-content: center;
220
+ padding: var(--sp-8);
221
+ animation: bxFadeIn 0.15s ease-out;
222
+ }
223
+
224
+ .bx-confirm-dialog {
225
+ width: 100%;
226
+ max-width: 420px;
227
+ background: var(--bx-modal-bg, var(--bx-white));
228
+ border: 1px solid var(--bx-modal-border, rgba(0, 0, 0, 0.1));
229
+ border-radius: 16px;
230
+ box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
231
+ padding: var(--sp-12);
232
+ display: flex;
233
+ flex-direction: column;
234
+ gap: var(--sp-8);
235
+ animation: bxScaleUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
236
+ }
237
+
238
+ @keyframes bxScaleUp {
239
+ from {
240
+ opacity: 0;
241
+ transform: scale(0.94);
242
+ }
243
+ to {
244
+ opacity: 1;
245
+ transform: scale(1);
246
+ }
247
+ }
248
+
249
+ .bx-confirm-icon-wrap {
250
+ width: 48px;
251
+ height: 48px;
252
+ border-radius: var(--radius-xl);
253
+ display: flex;
254
+ align-items: center;
255
+ justify-content: center;
256
+ background: rgba(255, 59, 48, 0.1);
257
+ color: var(--bx-danger-ink);
258
+ }
259
+
260
+ .bx-confirm-title {
261
+ margin: 0;
262
+ font-size: var(--fs-display);
263
+ font-weight: 600;
264
+ color: var(--bx-text-main, var(--bx-apple-gray-900));
265
+ }
266
+
267
+ .bx-confirm-desc {
268
+ font-size: var(--fs-emphasis);
269
+ line-height: 1.5;
270
+ color: var(--bx-text-main, var(--bx-apple-gray-900));
271
+ }
272
+
273
+ .bx-confirm-note {
274
+ margin-top: var(--sp-5);
275
+ padding: var(--sp-5) var(--sp-6);
276
+ background: rgba(0, 0, 0, 0.03);
277
+ border-left: 3px solid var(--bx-apple-blue-deep);
278
+ border-radius: var(--radius-sm);
279
+ font-size: var(--fs-body);
280
+ color: var(--bx-text-muted, var(--bx-apple-gray-500));
281
+ line-height: 1.45;
282
+ }
283
+
284
+ .bx-confirm-footer {
285
+ display: flex;
286
+ align-items: center;
287
+ justify-content: flex-end;
288
+ gap: var(--sp-5);
289
+ margin-top: var(--sp-4);
290
+ }
291
+
292
+ .bx-confirm-btn {
293
+ padding: var(--sp-4) var(--sp-8);
294
+ border-radius: var(--radius-md);
295
+ font-size: var(--fs-emphasis);
296
+ font-weight: 500;
297
+ cursor: pointer;
298
+ border: 1px solid transparent;
299
+ transition: all 0.12s ease;
300
+ }
301
+
302
+ .bx-confirm-btn.cancel {
303
+ background: rgba(0, 0, 0, 0.05);
304
+ color: var(--bx-text-main, var(--bx-apple-gray-900));
305
+ }
306
+
307
+ .bx-confirm-btn.cancel:hover {
308
+ background: rgba(0, 0, 0, 0.09);
309
+ }
310
+
311
+ .bx-confirm-btn.danger {
312
+ background: var(--bx-apple-red);
313
+ color: var(--bx-white);
314
+ }
315
+
316
+ .bx-confirm-btn.danger:hover {
317
+ background: #e0342a;
318
+ }
319
+
320
+ /* Dark Mode Overrides */
321
+ html.dark .bx-workspace-context-menu,
322
+ body.dark .bx-workspace-context-menu {
323
+ background: #252528;
324
+ border-color: var(--bx-glass-12);
325
+ box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
326
+ }
327
+
328
+ html.dark .bx-ctx-header-title,
329
+ body.dark .bx-ctx-header-title,
330
+ html.dark .bx-ctx-item,
331
+ body.dark .bx-ctx-item {
332
+ color: var(--bx-apple-gray-100);
333
+ }
334
+
335
+ html.dark .bx-ctx-item:hover,
336
+ body.dark .bx-ctx-item:hover {
337
+ background: var(--bx-glass-08);
338
+ }
339
+
340
+ html.dark .bx-ctx-divider,
341
+ body.dark .bx-ctx-divider {
342
+ background: var(--bx-glass-08);
343
+ }
344
+
345
+ html.dark .bx-confirm-dialog,
346
+ body.dark .bx-confirm-dialog {
347
+ background: #252528;
348
+ border-color: var(--bx-glass-12);
349
+ color: var(--bx-apple-gray-100);
350
+ }
351
+
352
+ html.dark .bx-confirm-title,
353
+ body.dark .bx-confirm-title,
354
+ html.dark .bx-confirm-desc,
355
+ body.dark .bx-confirm-desc {
356
+ color: var(--bx-apple-gray-100);
357
+ }
358
+
359
+ html.dark .bx-confirm-note,
360
+ body.dark .bx-confirm-note {
361
+ background: var(--bx-glass-05);
362
+ border-left-color: var(--bx-link-ink);
363
+ color: var(--bx-text-tertiary);
364
+ }
365
+
366
+ html.dark .bx-confirm-btn.cancel,
367
+ body.dark .bx-confirm-btn.cancel {
368
+ background: var(--bx-glass-10);
369
+ color: var(--bx-apple-gray-100);
370
+ }
371
+
372
+ html.dark .bx-confirm-btn.cancel:hover,
373
+ body.dark .bx-confirm-btn.cancel:hover {
374
+ background: rgba(255, 255, 255, 0.16);
375
+ }
376
+
377
+ html.dark .bx-proj-del-quick-btn,
378
+ body.dark .bx-proj-del-quick-btn {
379
+ color: #ff453a;
380
+ }
381
+
382
+ html.dark .bx-proj-del-quick-btn:hover,
383
+ body.dark .bx-proj-del-quick-btn:hover {
384
+ background: rgba(255, 69, 58, 0.2);
385
+ }
386
+
@@ -0,0 +1,105 @@
1
+ /* =========================================================================
2
+ Apple HIG & Modern IDE SVG Vector Icon System
3
+ ========================================================================= */
4
+ .bx-icon {
5
+ display: inline-block;
6
+ vertical-align: -2px;
7
+ stroke: currentColor;
8
+ fill: none;
9
+ flex-shrink: 0;
10
+ transition: transform 0.15s ease, stroke 0.15s ease;
11
+ }
12
+
13
+ .bx-modal-icon {
14
+ display: inline-flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ width: 32px;
18
+ height: 32px;
19
+ border-radius: var(--radius-md);
20
+ background: rgba(0, 102, 204, 0.1);
21
+ color: var(--bx-accent, #0066cc);
22
+ }
23
+
24
+ .bx-tab-btn {
25
+ display: inline-flex;
26
+ align-items: center;
27
+ gap: var(--sp-3);
28
+ }
29
+
30
+ .bx-proj-files-quick-btn {
31
+ display: inline-flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ color: var(--app-primary-foreground, var(--bx-slate-500));
35
+ }
36
+
37
+ .bx-proj-del-quick-btn {
38
+ display: inline-flex;
39
+ align-items: center;
40
+ justify-content: center;
41
+ }
42
+
43
+ .bx-ctx-item-icon {
44
+ display: inline-flex;
45
+ align-items: center;
46
+ justify-content: center;
47
+ width: 20px;
48
+ height: 20px;
49
+ flex-shrink: 0;
50
+ }
51
+
52
+ .bx-ctx-header-icon {
53
+ display: inline-flex;
54
+ align-items: center;
55
+ justify-content: center;
56
+ width: 24px;
57
+ height: 24px;
58
+ flex-shrink: 0;
59
+ color: var(--bx-accent, #0066cc);
60
+ }
61
+
62
+ .bx-confirm-icon-wrap {
63
+ display: inline-flex;
64
+ align-items: center;
65
+ justify-content: center;
66
+ flex-shrink: 0;
67
+ }
68
+
69
+ .bx-confirm-note {
70
+ display: flex;
71
+ align-items: flex-start;
72
+ gap: var(--sp-4);
73
+ }
74
+
75
+ .bx-confirm-note-icon {
76
+ flex-shrink: 0;
77
+ margin-top: 1px;
78
+ color: var(--bx-apple-blue);
79
+ display: inline-flex;
80
+ }
81
+
82
+ .bx-file-icon {
83
+ display: inline-flex;
84
+ align-items: center;
85
+ justify-content: center;
86
+ width: 18px;
87
+ height: 18px;
88
+ margin-right: var(--sp-3);
89
+ flex-shrink: 0;
90
+ color: var(--bx-slate-500);
91
+ }
92
+
93
+ html.dark .bx-file-icon {
94
+ color: var(--bx-apple-gray-400);
95
+ }
96
+
97
+ html.dark .bx-ctx-header-icon {
98
+ color: var(--bx-apple-blue);
99
+ }
100
+
101
+ html.dark .bx-modal-icon {
102
+ background: rgba(10, 132, 255, 0.15);
103
+ color: var(--bx-apple-blue);
104
+ }
105
+
@@ -0,0 +1,185 @@
1
+ /* =========================================================================
2
+ Workspace Project More Options (Three Dots · Popover · IDE Picker · Edit)
3
+ ========================================================================= */
4
+
5
+ .sidebar-project-row {
6
+ position: relative;
7
+ }
8
+
9
+ .sidebar-project-new.bx-proj-more-btn {
10
+ border-radius: var(--corner-radius-small, var(--radius-sm));
11
+ width: 26px;
12
+ height: 30px;
13
+ color: var(--app-secondary-foreground, var(--bx-slate-500));
14
+ cursor: pointer;
15
+ background: transparent;
16
+ border: none;
17
+ flex: 0 0 26px;
18
+ justify-content: center;
19
+ align-items: center;
20
+ padding: 0;
21
+ display: flex;
22
+ transition: all 0.15s ease;
23
+ opacity: 0.65;
24
+ visibility: visible;
25
+ margin-right: var(--sp-2);
26
+ }
27
+
28
+ .sidebar-project-row:hover .sidebar-project-new.bx-proj-more-btn {
29
+ opacity: 1;
30
+ color: var(--app-primary-foreground, var(--bx-slate-800));
31
+ }
32
+
33
+ .sidebar-project-new.bx-proj-more-btn:hover,
34
+ .sidebar-project-new.bx-proj-more-btn:focus-visible {
35
+ background: var(--app-ghost-button-hover-background, var(--bx-black-08));
36
+ color: var(--app-brand, #0066cc) !important;
37
+ opacity: 1 !important;
38
+ }
39
+
40
+ /* Three dots Popover Menu */
41
+ .bx-project-options-popover {
42
+ position: fixed;
43
+ z-index: var(--z-popover);
44
+ min-width: 280px;
45
+ max-width: 330px;
46
+ background: var(--bx-modal-bg, var(--bx-white));
47
+ border: 1px solid var(--bx-modal-border, rgba(0, 0, 0, 0.1));
48
+ border-radius: 14px;
49
+ box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18), 0 2px 8px var(--bx-black-06);
50
+ backdrop-filter: blur(28px);
51
+ -webkit-backdrop-filter: blur(28px);
52
+ padding: var(--sp-3);
53
+ font-family: var(--app-sans-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
54
+ animation: bxCtxPop 0.16s cubic-bezier(0.16, 1, 0.3, 1);
55
+ box-sizing: border-box;
56
+ }
57
+
58
+ .bx-pop-ide-group {
59
+ padding: var(--sp-2) var(--sp-3) var(--sp-3);
60
+ }
61
+
62
+ .bx-pop-ide-label {
63
+ font-size: var(--fs-caption);
64
+ font-weight: 600;
65
+ color: var(--bx-text-muted, var(--bx-apple-gray-500));
66
+ padding: var(--sp-2) var(--sp-2) var(--sp-3);
67
+ display: flex;
68
+ align-items: center;
69
+ gap: var(--sp-3);
70
+ text-transform: uppercase;
71
+ letter-spacing: 0.4px;
72
+ }
73
+
74
+ .bx-pop-ide-grid {
75
+ display: grid;
76
+ grid-template-columns: repeat(2, 1fr);
77
+ gap: var(--sp-3);
78
+ }
79
+
80
+ .bx-pop-ide-btn {
81
+ display: flex;
82
+ align-items: center;
83
+ gap: var(--sp-4);
84
+ padding: var(--sp-3) var(--sp-4);
85
+ border-radius: var(--radius-md);
86
+ border: 1px solid var(--bx-modal-border, var(--bx-black-08));
87
+ background: var(--bx-card-bg, rgba(0, 0, 0, 0.02));
88
+ cursor: pointer;
89
+ font-size: var(--fs-label-sm);
90
+ font-weight: 500;
91
+ color: var(--bx-text-main, var(--bx-apple-gray-900));
92
+ transition: all 0.12s ease;
93
+ white-space: nowrap;
94
+ overflow: hidden;
95
+ text-overflow: ellipsis;
96
+ box-sizing: border-box;
97
+ }
98
+
99
+ .bx-pop-ide-btn:hover {
100
+ background: rgba(0, 102, 204, 0.09);
101
+ border-color: rgba(0, 102, 204, 0.3);
102
+ color: #0066cc;
103
+ transform: translateY(-1px);
104
+ }
105
+
106
+ .bx-pop-ide-icon {
107
+ display: flex;
108
+ align-items: center;
109
+ justify-content: center;
110
+ flex-shrink: 0;
111
+ }
112
+
113
+ .bx-pop-ide-name {
114
+ white-space: nowrap;
115
+ overflow: hidden;
116
+ text-overflow: ellipsis;
117
+ }
118
+
119
+ /* Edit Workspace Modal */
120
+ .bx-edit-proj-backdrop {
121
+ position: fixed;
122
+ inset: 0;
123
+ z-index: var(--z-modal-backdrop);
124
+ background: rgba(0, 0, 0, 0.45);
125
+ backdrop-filter: blur(10px);
126
+ -webkit-backdrop-filter: blur(10px);
127
+ display: flex;
128
+ align-items: center;
129
+ justify-content: center;
130
+ padding: var(--sp-10);
131
+ animation: bxFadeIn 0.15s ease;
132
+ box-sizing: border-box;
133
+ }
134
+
135
+ .bx-edit-proj-modal {
136
+ width: 100%;
137
+ max-width: 440px;
138
+ background: var(--bx-modal-bg, var(--bx-white));
139
+ border: 1px solid var(--bx-modal-border, rgba(0, 0, 0, 0.12));
140
+ border-radius: 14px;
141
+ box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
142
+ padding: var(--sp-11);
143
+ animation: bxScaleUp 0.16s cubic-bezier(0.16, 1, 0.3, 1);
144
+ box-sizing: border-box;
145
+ }
146
+
147
+ /* FilesCenter Finder button */
148
+ .bx-file-action-btn.bx-fc-finder-btn {
149
+ color: #007aff;
150
+ }
151
+
152
+ .bx-file-action-btn.bx-fc-finder-btn:hover {
153
+ background: rgba(0, 122, 255, 0.1);
154
+ border-color: rgba(0, 122, 255, 0.25);
155
+ }
156
+
157
+ /* Dark mode adjustments */
158
+ html.dark .bx-project-options-popover,
159
+ body.dark .bx-project-options-popover {
160
+ background: rgba(28, 28, 30, 0.94);
161
+ border-color: var(--bx-glass-12);
162
+ box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
163
+ }
164
+
165
+ html.dark .bx-pop-ide-btn,
166
+ body.dark .bx-pop-ide-btn {
167
+ background: rgba(255, 255, 255, 0.04);
168
+ border-color: var(--bx-glass-08);
169
+ color: var(--bx-apple-gray-100);
170
+ }
171
+
172
+ html.dark .bx-pop-ide-btn:hover,
173
+ body.dark .bx-pop-ide-btn:hover {
174
+ background: rgba(10, 132, 255, 0.18);
175
+ border-color: rgba(10, 132, 255, 0.4);
176
+ color: #2997ff;
177
+ }
178
+
179
+ html.dark .bx-edit-proj-modal,
180
+ body.dark .bx-edit-proj-modal {
181
+ background: #1c1c1e;
182
+ border-color: var(--bx-glass-12);
183
+ color: var(--bx-apple-gray-100);
184
+ }
185
+