bugx-cli 0.1.0 → 0.1.2

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 (338) hide show
  1. package/README.md +193 -185
  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/README.md +3 -2
  11. package/core/assets/axe-core/LICENSE-3RD-PARTY.txt +66 -0
  12. package/core/assets/axe-core/LICENSE.txt +362 -0
  13. package/core/assets/axe-core/UPSTREAM.md +10 -0
  14. package/core/assets/axe-core/axe.min.js +12 -0
  15. package/core/assets/bugx-hero-en.svg +74 -0
  16. package/core/assets/bugx-hero-zh.svg +74 -0
  17. package/core/assets/bugx-social-preview.svg +71 -0
  18. package/core/assets/bugx-wechat-group.png +0 -0
  19. package/core/assets/codex.png +0 -0
  20. package/core/assets/dsh.png +0 -0
  21. package/core/assets/webui-chatgpt.jpg +0 -0
  22. package/core/assets/webui-session.jpg +0 -0
  23. package/core/assets/webui-skills.jpg +0 -0
  24. package/core/assets/webui-studio.jpg +0 -0
  25. package/core/assets/webui-zcode.jpg +0 -0
  26. package/core/assets/zcode.png +0 -0
  27. package/core/audit_packs/README.md +2 -0
  28. package/core/audit_packs/pitfalls/auth_crypto.json +64 -0
  29. package/core/audit_packs/pitfalls/file_ssrf_cmd.json +64 -0
  30. package/core/audit_packs/pitfalls/go_backend.json +66 -0
  31. package/core/audit_packs/pitfalls/java_spring.json +64 -0
  32. package/core/audit_packs/pitfalls/js_ts_web.json +67 -0
  33. package/core/audit_packs/pitfalls/python_web.json +82 -0
  34. package/core/autonomous_cve/SPEC.md +1 -1
  35. package/core/autonomous_cve/attack_graph_store.py +152 -106
  36. package/core/autonomous_cve/behavior_graph.py +8 -2
  37. package/core/autonomous_cve/verifier.py +4 -1
  38. package/core/bugx.md +1 -1
  39. package/core/bugx_paths.py +43 -8
  40. package/core/cli-help.txt +66 -0
  41. package/core/cloud_sync/SPEC.md +1 -1
  42. package/core/cloud_sync/cloud_client.py +81 -11
  43. package/core/cloud_sync/cloud_onboard.py +42 -1
  44. package/core/cloud_sync/consent.py +33 -3
  45. package/core/cloud_sync/flywheel_client.py +186 -15
  46. package/core/cloud_sync/network_transport.py +24 -3
  47. package/core/cloud_sync/sensitive_filter.py +2 -2
  48. package/core/cloud_sync/sync_push.py +12 -10
  49. package/core/contracts/AGENT_GUIDE.md +6 -9
  50. package/core/contracts/README.md +2 -2
  51. package/core/contracts/bugx-runtime-contract.md +1 -1
  52. package/core/contracts/bugx-worker.md +1 -1
  53. package/core/contracts/engine_gap_contracts.py +86 -3
  54. package/core/coverage/coverage_discovery.py +599 -29
  55. package/core/coverage/coverage_evidence.py +47 -0
  56. package/core/coverage/coverage_forensics.py +9 -0
  57. package/core/coverage/coverage_validate.py +6 -1
  58. package/core/dev_harness/SPEC.md +1 -1
  59. package/core/engine-integrity.json +670 -442
  60. package/core/fuzzing/concurrency_fuzzer.py +53 -0
  61. package/core/fuzzing/differential_oracle.py +562 -27
  62. package/core/fuzzing/fuzz_input.py +109 -6
  63. package/core/fuzzing/stateful_fuzzer.py +72 -0
  64. package/core/governance/secret_redactor.py +22 -10
  65. package/core/host_acp/SPEC.md +1 -1
  66. package/core/host_acp/__init__.py +4 -4
  67. package/core/host_acp/claude.py +59 -1
  68. package/core/host_acp/cline.py +64 -1
  69. package/core/host_acp/codex.py +56 -1
  70. package/core/host_acp/dsh.py +59 -1
  71. package/core/host_acp/opencode.py +56 -1
  72. package/core/host_acp/pi.py +59 -1
  73. package/core/host_acp/zcode.py +59 -1
  74. package/core/host_runtime/SPEC.md +1 -1
  75. package/core/host_runtime/adapters.py +1 -1
  76. package/core/host_runtime/cline.py +13 -0
  77. package/core/host_runtime/host_evaluators.py +44 -4
  78. package/core/host_runtime/host_probe.py +1 -1
  79. package/core/host_runtime/host_provider_arbitrator.py +116 -62
  80. package/core/host_runtime/host_registry.py +15 -8
  81. package/core/host_runtime/mcp_registry_gate.py +12 -1
  82. package/core/host_runtime/pi.py +102 -0
  83. package/core/host_runtime/provider_facts.py +66 -0
  84. package/core/hosts/SPEC.md +1 -1
  85. package/core/hosts/__init__.py +6 -2
  86. package/core/hosts/_dsh_usage.py +1 -1
  87. package/core/hosts/base.py +32 -4
  88. package/core/hosts/claude.py +55 -0
  89. package/core/hosts/cline.py +6 -2
  90. package/core/hosts/codex.py +58 -0
  91. package/core/hosts/dsh.py +9 -1
  92. package/core/hosts/opencode.py +6 -6
  93. package/core/hosts/pi.py +159 -2
  94. package/core/infra/README.md +4 -2
  95. package/core/infra/__init__.py +2 -0
  96. package/core/infra/build_info.py +22 -3
  97. package/core/infra/client_metadata.py +1 -1
  98. package/core/infra/json_utils.py +22 -0
  99. package/core/launch_phases/README.md +6 -3
  100. package/core/launch_phases/SPEC.md +1 -1
  101. package/core/launch_phases/common.py +21 -2
  102. package/core/launch_phases/finding_confirm_phase.py +170 -5
  103. package/core/launch_phases/finding_settlement.py +188 -1
  104. package/core/launch_phases/judge_phase.py +69 -12
  105. package/core/launch_phases/orchestrator_controls.py +11 -7
  106. package/core/launch_phases/post_coverage_sync.py +9 -2
  107. package/core/launch_phases/post_phase.py +144 -8
  108. package/core/launch_phases/post_receipt.py +12 -1
  109. package/core/launch_phases/pre_phase.py +3 -3
  110. package/core/launch_phases/pre_recon_scout.py +66 -36
  111. package/core/launch_phases/pre_state_builder.py +23 -176
  112. package/core/launch_phases/report_sharing.py +3 -7
  113. package/core/launch_phases/round_orchestrator.py +129 -58
  114. package/core/launch_phases/semantic_recon.py +545 -0
  115. package/core/launch_phases/session_runtime.py +56 -9
  116. package/core/launch_phases/startup_gates.py +36 -8
  117. package/core/launch_phases/startup_interaction.py +68 -12
  118. package/core/launch_phases/startup_version_gate.py +13 -3
  119. package/core/launch_phases/supervisor_bridge.py +46 -17
  120. package/core/launch_phases/supervisor_coverage.py +8 -2
  121. package/core/launch_phases/supervisor_degraded.py +1 -9
  122. package/core/launch_phases/verify_loop.py +767 -0
  123. package/core/launch_phases/worker_barriers.py +15 -5
  124. package/core/launch_phases/worker_orchestrator.py +105 -25
  125. package/core/launch_phases/worker_prior.py +115 -0
  126. package/core/ledger/README.md +2 -1
  127. package/core/ledger/SPEC.md +1 -1
  128. package/core/ledger/_facade.py +2 -1
  129. package/core/ledger/archive_ops.py +60 -2
  130. package/core/ledger/cli.py +6 -1
  131. package/core/ledger/export_ops.py +6 -1
  132. package/core/ledger/finding_confirmation.py +48 -6
  133. package/core/ledger/finding_lifecycle.py +428 -5
  134. package/core/ledger/finding_verification.py +555 -10
  135. package/core/ledger/fp_ledger.py +255 -0
  136. package/core/ledger/incidents.py +10 -4
  137. package/core/ledger/patterns.py +10 -7
  138. package/core/ledger/receipt_contract.py +17 -1
  139. package/core/ledger/sync_ops.py +21 -16
  140. package/core/ledger/tool_experience.py +2 -1
  141. package/core/ledger/verify_life.py +88 -17
  142. package/core/locales/en-US.json +2 -2
  143. package/core/locales/zh-CN.json +2 -2
  144. package/core/mcp_handlers/SPEC.md +1 -1
  145. package/core/mcp_handlers/base.py +23 -3
  146. package/core/mcp_handlers/channel_lifecycle.py +85 -30
  147. package/core/mcp_handlers/retrieval_handlers.py +11 -1
  148. package/core/mcp_handlers/rpc_server.py +6 -1
  149. package/core/mcp_handlers/supervisor_handlers.py +32 -6
  150. package/core/mcp_handlers/tool_table.py +15 -0
  151. package/core/mcp_runtime_support/environment.py +0 -38
  152. package/core/mcp_runtime_support/verifier.py +0 -52
  153. package/core/metadata.txt +2 -3
  154. package/core/planning/README.md +2 -1
  155. package/core/planning/domain_router.py +4 -2
  156. package/core/planning/dynamic_flow_analyzer.py +219 -14
  157. package/core/planning/judge_pipeline.py +87 -4
  158. package/core/planning/prompt_harness.py +57 -15
  159. package/core/planning/prompt_policy_engine.py +386 -0
  160. package/core/planning/spec_harvester.py +4 -4
  161. package/core/probes/INTERFACE.md +11 -1
  162. package/core/probes/SPEC.md +11 -1
  163. package/core/probes/__init__.py +46 -40
  164. package/core/probes/android_probe.py +177 -9
  165. package/core/probes/codebase_memory_probe.py +57 -0
  166. package/core/probes/desktop_probe.py +104 -0
  167. package/core/probes/differential_probe.py +99 -21
  168. package/core/probes/efficiency_probe.py +64 -0
  169. package/core/probes/ios_binary_probe.py +105 -1
  170. package/core/probes/memory_probe.py +66 -0
  171. package/core/probes/miniprogram_probe.py +75 -13
  172. package/core/probes/mobile_probe.py +215 -30
  173. package/core/probes/native_probe.py +88 -0
  174. package/core/probes/openwiki_probe.py +70 -0
  175. package/core/probes/pattern_probe.py +106 -0
  176. package/core/probes/platform_probe.py +81 -0
  177. package/core/probes/probe_registry.py +108 -7
  178. package/core/probes/sast_fixture_corpus.py +340 -0
  179. package/core/probes/sast_probe.py +553 -52
  180. package/core/probes/sast_rules.py +668 -28
  181. package/core/probes/sca_scanner.py +48 -0
  182. package/core/probes/ui_accessibility.py +149 -0
  183. package/core/probes/ui_audit.py +513 -0
  184. package/core/probes/ui_contract.py +273 -0
  185. package/core/probes/ui_evidence.py +212 -0
  186. package/core/probes/ui_measurements.py +314 -0
  187. package/core/probes/ui_repair.py +250 -0
  188. package/core/probes/ui_review.py +133 -0
  189. package/core/probes/ui_storybook.py +107 -0
  190. package/core/probes/ui_tokens.py +185 -0
  191. package/core/probes/ui_visual_diff.py +131 -0
  192. package/core/probes/web_probe.py +373 -18
  193. package/core/project_profiler/SPEC.md +1 -1
  194. package/core/project_profiler/arbitrator.py +6 -1
  195. package/core/project_profiler/detector.py +8 -1
  196. package/core/project_profiler/strategy.py +51 -15
  197. package/core/prompts/README.md +4 -2
  198. package/core/prompts/command_routing_en.md +2 -2
  199. package/core/prompts/command_routing_zh.md +2 -2
  200. package/core/prompts/policies/prompt_policies.json +101 -0
  201. package/core/prompts/stages/stage_repair.md +1 -1
  202. package/core/prompts/stages/stage_verify.defensive.md +42 -0
  203. package/core/prompts/stages/stage_verify.md +44 -0
  204. package/core/repair/README.md +1 -1
  205. package/core/repair/l7_repair_loop.py +1 -4
  206. package/core/repair/rsi_fixer.py +4 -4
  207. package/core/repair/rsi_loop.py +1 -3
  208. package/core/repair/rsi_repair.py +7 -7
  209. package/core/repair/rsi_scope.py +27 -8
  210. package/core/report_engine/SPEC.md +1 -1
  211. package/core/report_engine/attestation.py +8 -4
  212. package/core/report_engine/finding_report.py +2 -1
  213. package/core/report_engine/models.py +7 -9
  214. package/core/report_engine/report_share.py +0 -8
  215. package/core/report_engine/sast_bridge.py +2 -2
  216. package/core/report_engine/server.py +18 -8
  217. package/core/report_engine/web-conformance.md +123 -18
  218. package/core/report_engine/web_conformance.py +21 -52
  219. package/core/retrieval/README.md +2 -1
  220. package/core/retrieval/SPEC.md +1 -1
  221. package/core/retrieval/code_analyzer.py +50 -14
  222. package/core/retrieval/context_assembler.py +7 -1
  223. package/core/retrieval/knowledge_sync.py +108 -14
  224. package/core/retrieval/pitfall_packs.py +277 -0
  225. package/core/retrieval/symbol_index.py +25 -6
  226. package/core/retrieval/universal_code_matcher.py +234 -49
  227. package/core/runtime/README.md +1 -1
  228. package/core/runtime/bugx_logging.py +78 -7
  229. package/core/runtime/fixture_solidify.py +5 -10
  230. package/core/runtime/global_telemetry.py +20 -0
  231. package/core/runtime/incident_eval.py +1 -1
  232. package/core/runtime/model_runner.py +4 -41
  233. package/core/runtime/platform_adapter.py +2 -2
  234. package/core/runtime/prep_validate.py +4 -2
  235. package/core/runtime/project_settings.py +2 -1
  236. package/core/runtime/scenario_eval.py +50 -8
  237. package/core/skills/bugx_docs_mcp_server.py +3 -1
  238. package/core/skills/bugx_mcp_server.py +29 -2
  239. package/core/skills/tools_kb.py +1 -1
  240. package/core/supervisor/README.md +1 -1
  241. package/core/supervisor/SPEC.md +1 -1
  242. package/core/supervisor/budget_governor.py +503 -9
  243. package/core/supervisor/checkpoint_pipeline.py +248 -6
  244. package/core/supervisor/checkpoint_sync.py +13 -0
  245. package/core/supervisor/claim_events.py +1 -1
  246. package/core/supervisor/finding_workflow.py +22 -5
  247. package/core/supervisor/lease_manager.py +1 -1
  248. package/core/supervisor/lifecycle_blocks.py +6 -1
  249. package/core/supervisor/rejection_remedies.py +52 -5
  250. package/core/supervisor/serial_authorization.py +48 -4
  251. package/core/supervisor/task_scheduler.py +2 -2
  252. package/core/supervisor/worker_checkpoint.py +8 -1
  253. package/core/supervisor/worker_runtime.py +8 -2
  254. package/core/supervisor_types/worker_claim.py +9 -0
  255. package/core/webui/README.md +1 -1
  256. package/core/webui/SPEC.md +2 -1
  257. package/core/webui/adapters/claude.py +5 -1
  258. package/core/webui/adapters/cline.py +10 -2
  259. package/core/webui/adapters/codex.py +5 -1
  260. package/core/webui/adapters/dsh.py +5 -1
  261. package/core/webui/docs_session_service.py +2 -2
  262. package/core/webui/mcp_inspector.py +11 -7
  263. package/core/webui/static/00-base.css +1060 -0
  264. package/core/webui/static/01-monitoring.css +802 -0
  265. package/core/webui/static/02-header-actions.css +321 -0
  266. package/core/webui/static/03-trigger-popover.css +697 -0
  267. package/core/webui/static/04-composer.css +628 -0
  268. package/core/webui/static/05-skills-center.css +878 -0
  269. package/core/webui/static/06-mcp-center.css +623 -0
  270. package/core/webui/static/07-skill-detail.css +265 -0
  271. package/core/webui/static/08-files-management.css +167 -0
  272. package/core/webui/static/09-files-center.css +386 -0
  273. package/core/webui/static/10-icons.css +105 -0
  274. package/core/webui/static/11-project-options.css +185 -0
  275. package/core/webui/static/12-profile-tab.css +383 -0
  276. package/core/webui/static/design-tokens.css +113 -0
  277. package/core/webui/static/index.html +14 -1
  278. package/core/webui/workspace_service.py +1 -1
  279. package/docs/07_distribution/01_README_NPM.md +193 -185
  280. package/ecosystem/integrations/README.md +1 -1
  281. package/ecosystem/integrations/dsh/mcp/package.json +1 -1
  282. package/ecosystem/integrations/dsh/skills/bugx-dsh/SKILL.md +1 -1
  283. package/ecosystem/integrations/dsh/ui/package.json +1 -1
  284. package/ecosystem/integrations/opencode/bugx-mcp-manifest.json +4 -4
  285. package/ecosystem/integrations/opencode/mcp-lock.json +14 -6
  286. package/ecosystem/integrations/opencode/opencode.json +23 -12
  287. package/ecosystem/integrations/pi/extensions/bugx/manifest.json +1 -1
  288. package/ecosystem/integrations/qoder/connector-meta.json +1 -1
  289. package/ecosystem/integrations/workbuddy/connector-meta.json +1 -1
  290. package/ecosystem/integrations/workbuddy/skills/bugx/SKILL.md +1 -1
  291. package/ecosystem/plugins/bugx/.claude-plugin/plugin.json +1 -1
  292. package/ecosystem/plugins/bugx/.codex-plugin/plugin.json +1 -1
  293. package/ecosystem/plugins/bugx/.zcode-plugin/plugin.json +1 -1
  294. package/ecosystem/plugins/bugx/skills/bugx/SKILL.md +2 -2
  295. package/ecosystem/plugins/bugx/skills/bugx-dsh/SKILL.md +1 -1
  296. package/ecosystem/plugins/bugx/skills/bugx-opencode/SKILL.md +1 -1
  297. package/ecosystem/plugins/bugx/skills/bugx-zcode/SKILL.md +1 -1
  298. package/interfaces/bin/bugx.js +37 -0
  299. package/interfaces/cli/bugx_cli/__init__.py +4 -2
  300. package/interfaces/cli/bugx_cli/cli.py +172 -69
  301. package/interfaces/cli/bugx_cli/commands/advisory.py +1 -1
  302. package/interfaces/cli/bugx_cli/commands/agent.py +461 -134
  303. package/interfaces/cli/bugx_cli/commands/audit.py +10 -9
  304. package/interfaces/cli/bugx_cli/commands/autonomous.py +1 -1
  305. package/interfaces/cli/bugx_cli/commands/cloud.py +31 -22
  306. package/interfaces/cli/bugx_cli/commands/doctor.py +449 -204
  307. package/interfaces/cli/bugx_cli/commands/interaction.py +5 -1
  308. package/interfaces/cli/bugx_cli/commands/knowledge.py +5 -4
  309. package/interfaces/cli/bugx_cli/commands/lifecycle.py +3 -3
  310. package/interfaces/cli/bugx_cli/commands/plugin.py +58 -23
  311. package/interfaces/cli/bugx_cli/commands/plugin_claude.py +7 -7
  312. package/interfaces/cli/bugx_cli/commands/plugin_funide.py +2 -1
  313. package/interfaces/cli/bugx_cli/commands/plugin_zcode.py +1 -1
  314. package/interfaces/cli/bugx_cli/commands/project.py +6 -13
  315. package/interfaces/cli/bugx_cli/commands/report.py +2 -6
  316. package/interfaces/cli/bugx_cli/commands/system.py +524 -169
  317. package/interfaces/cli/bugx_cli/common.py +21 -15
  318. package/interfaces/cli/bugx_cli/host_adapters.py +29 -54
  319. package/interfaces/cli/bugx_cli/hosts/registry.py +8 -6
  320. package/interfaces/cli/bugx_cli/infra/ai_advisor.py +157 -27
  321. package/interfaces/cli/bugx_cli/infra/engine_installer.py +35 -16
  322. package/interfaces/cli/bugx_cli/infra/host_sync.py +11 -8
  323. package/interfaces/cli/bugx_cli/infra/mcp_advisor.py +76 -5
  324. package/interfaces/cli/bugx_cli/infra/security.py +13 -6
  325. package/package.json +30 -15
  326. package/pyproject.toml +60 -9
  327. package/scripts/ensure-python.mjs +7 -7
  328. package/scripts/sync-version.mjs +10 -21
  329. package/scripts/test-npm-wrapper.mjs +1 -1
  330. package/core/assets/bugx-hero-cn.png +0 -0
  331. package/core/assets/bugx-hero-en.png +0 -0
  332. package/core/webui/static/project-settings.css +0 -6458
  333. package/docs/07_distribution/README.md +0 -16
  334. package/docs/README.md +0 -121
  335. package/interfaces/README.md +0 -143
  336. package/interfaces/bin/README.md +0 -35
  337. package/interfaces/cli/README.md +0 -90
  338. package/scripts/README.md +0 -118
@@ -0,0 +1,628 @@
1
+ /* ==========================================================================
2
+ BugX Modern Workspace / CWD Switcher Modal Polish
3
+ ========================================================================== */
4
+
5
+ /* 1. Bottom composer trigger pill (.input-cwd) */
6
+ .input-cwd {
7
+ display: inline-flex !important;
8
+ align-items: center;
9
+ gap: var(--sp-4);
10
+ padding: var(--sp-2) var(--sp-5);
11
+ border-radius: var(--radius-md);
12
+ background: rgba(15, 23, 42, 0.04) !important;
13
+ border: 1px solid rgba(15, 23, 42, 0.08);
14
+ color: var(--bx-text-main, #334155) !important;
15
+ font-size: var(--fs-label);
16
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
17
+ cursor: pointer !important;
18
+ transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
19
+ }
20
+ .input-cwd:hover {
21
+ background: var(--bx-card-bg, var(--bx-white)) !important;
22
+ border-color: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
23
+ color: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
24
+ box-shadow: 0 2px 8px rgba(2, 132, 199, 0.14);
25
+ }
26
+ .input-cwd .input-cwd-icon {
27
+ color: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
28
+ transition: transform 0.2s ease !important;
29
+ }
30
+ .input-cwd:hover .input-cwd-icon {
31
+ transform: scale(1.15) !important;
32
+ }
33
+ .input-cwd .input-cwd-path {
34
+ font-weight: 500;
35
+ letter-spacing: -0.01em;
36
+ }
37
+ .input-cwd .input-cwd-chevron {
38
+ opacity: 0.6 !important;
39
+ font-size: var(--fs-caption);
40
+ }
41
+
42
+ /* 2. CWD Modal Backdrop & Card */
43
+ .modal-overlay:has(.modal-card) {
44
+ backdrop-filter: blur(12px);
45
+ background: rgba(15, 23, 42, 0.55) !important;
46
+ animation: bxOverlayFadeIn 0.2s ease-out;
47
+ }
48
+ @keyframes bxOverlayFadeIn {
49
+ from { opacity: 0; }
50
+ to { opacity: 1; }
51
+ }
52
+
53
+ .modal-card {
54
+ width: min(720px, 95vw) !important;
55
+ min-height: 520px;
56
+ max-height: 88vh !important;
57
+ border-radius: 18px;
58
+ background: var(--bx-modal-bg, var(--bx-white)) !important;
59
+ border: 1px solid var(--bx-modal-border, var(--bx-slate-200));
60
+ box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.05);
61
+ overflow: hidden !important;
62
+ display: flex !important;
63
+ flex-direction: column;
64
+ animation: bxModalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
65
+ }
66
+
67
+ .modal-header {
68
+ padding: var(--sp-8) var(--sp-11) !important;
69
+ background: var(--bx-header-bg, var(--bx-white)) !important;
70
+ border-bottom: 1px solid var(--bx-header-border, var(--bx-slate-100)) !important;
71
+ display: flex !important;
72
+ align-items: center;
73
+ gap: var(--sp-5) !important;
74
+ flex-shrink: 0;
75
+ }
76
+ .modal-header h3 {
77
+ margin: 0 !important;
78
+ font-size: var(--fs-display-sm) !important;
79
+ font-weight: 600 !important;
80
+ color: var(--bx-text-main, var(--bx-slate-900)) !important;
81
+ letter-spacing: -0.015em !important;
82
+ }
83
+ .modal-sub {
84
+ margin-left: auto !important;
85
+ font-size: var(--fs-caption) !important;
86
+ padding: var(--sp-2) var(--sp-5);
87
+ border-radius: var(--radius-pill);
88
+ background: var(--bx-sky-a08) !important;
89
+ color: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
90
+ border: 1px solid rgba(2, 132, 199, 0.2);
91
+ font-weight: 500;
92
+ }
93
+
94
+ /* Segmented Control (Tabs) */
95
+ .bx-cwd-segmented {
96
+ display: flex !important;
97
+ padding: var(--sp-2);
98
+ background: var(--bx-mini-card-bg, var(--bx-slate-100)) !important;
99
+ border-radius: var(--radius-xl);
100
+ margin: var(--sp-7) var(--sp-11) 0 var(--sp-11) !important;
101
+ gap: var(--sp-2);
102
+ border: 1px solid var(--bx-card-border, var(--bx-slate-200));
103
+ flex-shrink: 0;
104
+ }
105
+ .bx-cwd-seg-btn {
106
+ flex: 1;
107
+ height: 38px !important;
108
+ border-radius: var(--radius-lg);
109
+ border: none;
110
+ background: transparent !important;
111
+ font-size: var(--fs-body-lg);
112
+ font-weight: 500;
113
+ color: var(--bx-text-muted, var(--bx-slate-500)) !important;
114
+ display: inline-flex !important;
115
+ align-items: center;
116
+ justify-content: center;
117
+ gap: var(--sp-3);
118
+ cursor: pointer !important;
119
+ transition: all 0.16s ease !important;
120
+ }
121
+ .bx-cwd-seg-btn.active {
122
+ background: var(--bx-card-bg, var(--bx-white)) !important;
123
+ color: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
124
+ font-weight: 600;
125
+ box-shadow: 0 2px 8px var(--bx-black-08);
126
+ }
127
+ .bx-seg-badge {
128
+ padding: var(--sp-1) var(--sp-4);
129
+ border-radius: var(--radius-pill);
130
+ background: rgba(2, 132, 199, 0.12) !important;
131
+ color: var(--bx-link-ink) !important;
132
+ font-size: var(--fs-caption);
133
+ font-weight: 600;
134
+ }
135
+
136
+ .modal-body {
137
+ padding: var(--sp-8) var(--sp-11) !important;
138
+ gap: var(--sp-7);
139
+ background: var(--bx-modal-bg, var(--bx-white)) !important;
140
+ color: var(--bx-text-main, var(--bx-slate-900)) !important;
141
+ display: flex !important;
142
+ flex-direction: column;
143
+ flex: 1;
144
+ min-height: 0;
145
+ overflow-y: auto !important;
146
+ }
147
+
148
+ /* Tab Switching Visibility */
149
+ .modal-card.bx-tab-recent .bx-path-group,
150
+ .modal-card.bx-tab-recent .dir-browser {
151
+ display: none !important;
152
+ }
153
+ .modal-card.bx-tab-recent .bx-recent-group {
154
+ display: flex !important;
155
+ flex-direction: column;
156
+ flex: 1;
157
+ min-height: 0;
158
+ }
159
+ .modal-card.bx-tab-recent .bx-recent-group > .modal-label {
160
+ display: none !important;
161
+ }
162
+
163
+ .modal-card.bx-tab-browse .bx-recent-group {
164
+ display: none !important;
165
+ }
166
+ .modal-card.bx-tab-browse .bx-path-group {
167
+ display: block !important;
168
+ flex-shrink: 0;
169
+ }
170
+ .modal-card.bx-tab-browse .dir-browser {
171
+ display: flex !important;
172
+ flex-direction: column;
173
+ flex: 1;
174
+ min-height: 280px;
175
+ }
176
+
177
+ /* 3. Field labels & inputs */
178
+ .modal-label {
179
+ font-size: var(--fs-caption);
180
+ font-weight: 600;
181
+ text-transform: uppercase;
182
+ letter-spacing: 0.05em;
183
+ color: var(--bx-text-muted, var(--bx-slate-500)) !important;
184
+ margin-bottom: var(--sp-3) !important;
185
+ display: block !important;
186
+ }
187
+
188
+ .field-row {
189
+ display: flex !important;
190
+ gap: var(--sp-4);
191
+ align-items: center;
192
+ }
193
+
194
+ .field-row input.menu-input,
195
+ .cwd-newfolder input.menu-input {
196
+ flex: 1;
197
+ height: 38px !important;
198
+ padding: 0 var(--sp-6);
199
+ border-radius: var(--radius-lg);
200
+ border: 1px solid var(--bx-select-border, #cbd5e1);
201
+ background: var(--bx-mini-card-bg, var(--bx-slate-50)) !important;
202
+ color: var(--bx-text-main, var(--bx-slate-900)) !important;
203
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
204
+ font-size: var(--fs-body);
205
+ transition: all 0.2s ease !important;
206
+ box-sizing: border-box;
207
+ }
208
+ .field-row input.menu-input:focus,
209
+ .cwd-newfolder input.menu-input:focus {
210
+ outline: none;
211
+ border-color: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
212
+ background: var(--bx-card-bg, var(--bx-white)) !important;
213
+ box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
214
+ }
215
+
216
+ .bx-path-pills {
217
+ display: flex !important;
218
+ align-items: center;
219
+ gap: var(--sp-3);
220
+ margin-top: var(--sp-4) !important;
221
+ font-size: var(--fs-label-sm);
222
+ }
223
+ .bx-pill-label {
224
+ color: var(--bx-text-muted, var(--bx-slate-500)) !important;
225
+ font-size: var(--fs-caption);
226
+ font-weight: 500;
227
+ }
228
+ .bx-path-pill {
229
+ height: 24px !important;
230
+ padding: 0 var(--sp-4);
231
+ border-radius: var(--radius-sm);
232
+ border: 1px solid rgba(15, 23, 42, 0.08);
233
+ background: var(--bx-mini-card-bg, var(--bx-slate-50)) !important;
234
+ color: var(--bx-text-main, #334155) !important;
235
+ font-size: var(--fs-caption);
236
+ cursor: pointer !important;
237
+ transition: all 0.14s ease !important;
238
+ display: inline-flex !important;
239
+ align-items: center;
240
+ gap: var(--sp-2);
241
+ }
242
+ .bx-path-pill:hover {
243
+ background: rgba(2, 132, 199, 0.1) !important;
244
+ border-color: rgba(2, 132, 199, 0.3) !important;
245
+ color: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
246
+ }
247
+
248
+ .field-hint {
249
+ font-size: var(--fs-label-sm);
250
+ color: var(--bx-text-muted, var(--bx-slate-500)) !important;
251
+ margin: var(--sp-3) 0 0 0 !important;
252
+ line-height: 1.5;
253
+ }
254
+ .field-hint code {
255
+ background: rgba(2, 132, 199, 0.1) !important;
256
+ color: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
257
+ padding: 1px var(--sp-3) !important;
258
+ border-radius: var(--radius-xs) !important;
259
+ font-family: ui-monospace, SFMono-Regular, monospace !important;
260
+ }
261
+
262
+ /* 4. Directory Browser Box */
263
+ .dir-browser {
264
+ border-radius: 14px;
265
+ border: 1px solid var(--bx-card-border, var(--bx-slate-200));
266
+ background: var(--bx-card-bg, var(--bx-white)) !important;
267
+ overflow: hidden !important;
268
+ display: flex !important;
269
+ flex-direction: column;
270
+ flex: 1;
271
+ min-height: 260px;
272
+ box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
273
+ }
274
+
275
+ .dir-breadcrumb {
276
+ padding: var(--sp-5) var(--sp-7);
277
+ background: var(--bx-mini-card-bg, var(--bx-slate-50)) !important;
278
+ border-bottom: 1px solid var(--bx-card-border, var(--bx-slate-200));
279
+ display: flex !important;
280
+ align-items: center;
281
+ gap: var(--sp-2);
282
+ font-size: var(--fs-label);
283
+ font-family: ui-monospace, SFMono-Regular, monospace;
284
+ overflow-x: auto;
285
+ white-space: nowrap;
286
+ flex-shrink: 0;
287
+ }
288
+ .dir-crumb {
289
+ padding: var(--sp-2) var(--sp-4);
290
+ border-radius: var(--radius-sm);
291
+ color: var(--bx-text-muted, var(--bx-slate-500)) !important;
292
+ cursor: pointer !important;
293
+ transition: all 0.14s ease !important;
294
+ }
295
+ .dir-crumb:hover {
296
+ background: rgba(2, 132, 199, 0.1) !important;
297
+ color: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
298
+ }
299
+ .dir-crumb.current {
300
+ background: rgba(2, 132, 199, 0.15) !important;
301
+ color: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
302
+ font-weight: 600 !important;
303
+ }
304
+
305
+ /* 5. Subdirectory Grid List */
306
+ .dir-list {
307
+ flex: 1;
308
+ min-height: 180px;
309
+ max-height: 280px !important;
310
+ padding: var(--sp-6);
311
+ display: grid !important;
312
+ grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
313
+ gap: var(--sp-4);
314
+ overflow-y: auto !important;
315
+ background: var(--bx-card-bg, var(--bx-white)) !important;
316
+ }
317
+ .dir-item {
318
+ height: 38px !important;
319
+ width: auto !important;
320
+ padding: 0 var(--sp-6);
321
+ border-radius: var(--radius-lg);
322
+ border: 1px solid rgba(15, 23, 42, 0.08);
323
+ background: var(--bx-mini-card-bg, var(--bx-slate-50)) !important;
324
+ color: var(--bx-text-main, var(--bx-slate-900)) !important;
325
+ font-size: var(--fs-body);
326
+ font-weight: 500;
327
+ display: flex !important;
328
+ align-items: center;
329
+ gap: var(--sp-4);
330
+ cursor: pointer !important;
331
+ transition: all 0.16s ease !important;
332
+ text-overflow: ellipsis;
333
+ white-space: nowrap;
334
+ overflow: hidden !important;
335
+ }
336
+ .dir-item:hover {
337
+ background: var(--bx-sky-a08) !important;
338
+ border-color: rgba(2, 132, 199, 0.35) !important;
339
+ color: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
340
+ transform: translateY(-1px) !important;
341
+ box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
342
+ }
343
+ .dir-note {
344
+ grid-column: 1 / -1;
345
+ text-align: center;
346
+ padding: var(--sp-12) var(--sp-6);
347
+ color: var(--bx-text-muted, var(--bx-slate-500)) !important;
348
+ font-size: var(--fs-body);
349
+ }
350
+
351
+ .cwd-newfolder {
352
+ padding: var(--sp-5) var(--sp-7);
353
+ background: var(--bx-mini-card-bg, var(--bx-slate-50)) !important;
354
+ border-top: 1px solid var(--bx-card-border, var(--bx-slate-200));
355
+ display: flex !important;
356
+ align-items: center;
357
+ gap: var(--sp-4);
358
+ flex-shrink: 0;
359
+ }
360
+
361
+ /* 6. Recent Projects Cards (.list-row) */
362
+ .bx-recent-group {
363
+ flex: 1;
364
+ min-height: 0;
365
+ overflow-y: auto !important;
366
+ max-height: 440px !important;
367
+ padding-right: var(--sp-1);
368
+ }
369
+ .bx-recent-search-row {
370
+ margin-bottom: var(--sp-6) !important;
371
+ flex-shrink: 0;
372
+ }
373
+ .bx-search-inner {
374
+ position: relative !important;
375
+ display: flex !important;
376
+ align-items: center;
377
+ }
378
+ .bx-search-icon {
379
+ position: absolute !important;
380
+ left: 12px !important;
381
+ font-size: var(--fs-body-lg);
382
+ opacity: 0.55 !important;
383
+ pointer-events: none;
384
+ }
385
+ .bx-recent-search-input {
386
+ width: 100% !important;
387
+ height: 38px !important;
388
+ padding: 0 var(--sp-7) 0 var(--sp-18);
389
+ border-radius: var(--radius-lg);
390
+ border: 1px solid var(--bx-select-border, #cbd5e1);
391
+ background: var(--bx-mini-card-bg, var(--bx-slate-50)) !important;
392
+ font-size: var(--fs-body);
393
+ color: var(--bx-text-main, var(--bx-slate-900)) !important;
394
+ transition: all 0.16s ease !important;
395
+ box-sizing: border-box;
396
+ }
397
+ .bx-recent-search-input:focus {
398
+ outline: none;
399
+ border-color: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
400
+ background: var(--bx-white) !important;
401
+ box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
402
+ }
403
+ .bx-recent-empty {
404
+ text-align: center;
405
+ padding: var(--sp-12) var(--sp-6);
406
+ color: var(--bx-text-muted, var(--bx-slate-500)) !important;
407
+ font-size: var(--fs-body);
408
+ }
409
+
410
+ .modal-card .list-row {
411
+ padding: var(--sp-6) var(--sp-7);
412
+ border-radius: var(--radius-xl);
413
+ margin-bottom: var(--sp-4) !important;
414
+ border: 1px solid var(--bx-card-border, var(--bx-slate-200));
415
+ background: var(--bx-card-bg, var(--bx-white)) !important;
416
+ display: flex !important;
417
+ align-items: center;
418
+ gap: var(--sp-6);
419
+ cursor: pointer !important;
420
+ transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
421
+ }
422
+ .modal-card .list-row[data-hidden="1"] {
423
+ display: none !important;
424
+ }
425
+ .modal-card .list-row:hover {
426
+ background: var(--bx-mini-card-bg, var(--bx-slate-50)) !important;
427
+ border-color: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
428
+ transform: translateY(-1px) !important;
429
+ box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
430
+ }
431
+ .modal-card .list-row.active {
432
+ border-color: rgba(16, 185, 129, 0.5) !important;
433
+ background: rgba(16, 185, 129, 0.05) !important;
434
+ }
435
+ .bx-proj-row-content {
436
+ flex: 1;
437
+ min-width: 0 !important;
438
+ display: flex !important;
439
+ flex-direction: column;
440
+ gap: var(--sp-2);
441
+ }
442
+ .bx-proj-name {
443
+ font-size: var(--fs-emphasis);
444
+ color: var(--bx-text-main, var(--bx-slate-900)) !important;
445
+ font-weight: 600;
446
+ letter-spacing: -0.01em;
447
+ }
448
+ .bx-proj-path {
449
+ font-size: var(--fs-label-sm);
450
+ font-family: ui-monospace, SFMono-Regular, monospace;
451
+ color: var(--bx-text-muted, var(--bx-slate-500)) !important;
452
+ white-space: nowrap;
453
+ overflow: hidden !important;
454
+ text-overflow: ellipsis;
455
+ }
456
+ .bx-quick-switch-btn {
457
+ height: 28px !important;
458
+ padding: 0 var(--sp-5);
459
+ border-radius: var(--radius-md);
460
+ border: 1px solid rgba(2, 132, 199, 0.25);
461
+ background: var(--bx-sky-a08) !important;
462
+ color: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
463
+ font-size: var(--fs-label-sm);
464
+ font-weight: 600;
465
+ cursor: pointer !important;
466
+ transition: all 0.14s ease !important;
467
+ opacity: 0.85 !important;
468
+ flex-shrink: 0;
469
+ }
470
+ .modal-card .list-row:hover .bx-quick-switch-btn {
471
+ opacity: 1 !important;
472
+ background: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
473
+ color: var(--bx-white) !important;
474
+ box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
475
+ }
476
+
477
+ .modal-card .list-row .badge {
478
+ background: rgba(16, 185, 129, 0.14) !important;
479
+ color: var(--bx-success-ink) !important;
480
+ border: 1px solid rgba(16, 185, 129, 0.3);
481
+ font-size: var(--fs-caption);
482
+ font-weight: 600;
483
+ padding: var(--sp-2) var(--sp-4);
484
+ border-radius: var(--radius-pill);
485
+ white-space: nowrap;
486
+ flex-shrink: 0;
487
+ }
488
+
489
+ .bx-recent-browse-link {
490
+ margin-top: var(--sp-5) !important;
491
+ text-align: center;
492
+ padding: var(--sp-3) 0;
493
+ flex-shrink: 0;
494
+ }
495
+ .bx-link-action-btn {
496
+ background: none !important;
497
+ border: none;
498
+ color: var(--bx-accent-cyan, var(--bx-sky-600)) !important;
499
+ font-size: var(--fs-body);
500
+ font-weight: 500;
501
+ cursor: pointer !important;
502
+ padding: var(--sp-3) var(--sp-7);
503
+ border-radius: var(--radius-md);
504
+ transition: all 0.16s ease !important;
505
+ display: inline-flex !important;
506
+ align-items: center;
507
+ gap: var(--sp-3);
508
+ }
509
+ .bx-link-action-btn:hover {
510
+ background: var(--bx-sky-a08) !important;
511
+ text-decoration: underline;
512
+ }
513
+
514
+ /* 7. Action Buttons (.btn, .btn-primary) */
515
+ .modal-card .btn-primary,
516
+ .modal-card .btn.btn-primary {
517
+ height: 36px !important;
518
+ background: linear-gradient(135deg, var(--bx-sky-600) 0%, #0369a1 100%) !important;
519
+ color: var(--bx-white) !important;
520
+ border: none;
521
+ font-weight: 500;
522
+ font-size: var(--fs-body);
523
+ padding: 0 var(--sp-8);
524
+ border-radius: var(--radius-md);
525
+ box-shadow: 0 2px 6px rgba(2, 132, 199, 0.28);
526
+ cursor: pointer !important;
527
+ display: inline-flex !important;
528
+ align-items: center;
529
+ justify-content: center;
530
+ transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
531
+ }
532
+ .modal-card .btn-primary:hover,
533
+ .modal-card .btn.btn-primary:hover {
534
+ background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
535
+ box-shadow: 0 4px 12px rgba(2, 132, 199, 0.38);
536
+ transform: translateY(-1px) !important;
537
+ }
538
+
539
+ .modal-card .btn:not(.btn-primary) {
540
+ height: 36px !important;
541
+ background: var(--bx-mini-card-bg, var(--bx-slate-50)) !important;
542
+ color: var(--bx-text-main, #334155) !important;
543
+ border: 1px solid var(--bx-card-border, var(--bx-slate-200));
544
+ padding: 0 var(--sp-8);
545
+ border-radius: var(--radius-md);
546
+ cursor: pointer !important;
547
+ font-weight: 500;
548
+ font-size: var(--fs-body);
549
+ display: inline-flex !important;
550
+ align-items: center;
551
+ justify-content: center;
552
+ transition: all 0.18s ease !important;
553
+ }
554
+ .modal-card .btn:not(.btn-primary):hover {
555
+ background: var(--bx-card-border, var(--bx-slate-200)) !important;
556
+ color: var(--bx-text-main, var(--bx-slate-900)) !important;
557
+ }
558
+
559
+ .modal-footer {
560
+ padding: var(--sp-7) var(--sp-11) !important;
561
+ background: var(--bx-header-bg, var(--bx-white)) !important;
562
+ border-top: 1px solid var(--bx-header-border, var(--bx-slate-100)) !important;
563
+ display: flex !important;
564
+ justify-content: flex-end;
565
+ gap: var(--sp-5);
566
+ flex-shrink: 0;
567
+ }
568
+
569
+ /* Sidebar Quick Dropdown Footer Link (Direct Bridge to Skills/MCP Marketplace) */
570
+ .bx-menu-footer-link {
571
+ position: sticky !important;
572
+ bottom: -4px !important;
573
+ display: flex !important;
574
+ align-items: center;
575
+ justify-content: space-between;
576
+ margin-top: var(--sp-3) !important;
577
+ padding: var(--sp-4) var(--sp-5);
578
+ border-top: 1px solid var(--app-menu-border, rgba(148, 163, 184, 0.2));
579
+ font-size: var(--fs-label);
580
+ font-weight: 600;
581
+ color: var(--bx-brand, var(--bx-sky-600)) !important;
582
+ cursor: pointer !important;
583
+ background: var(--app-menu-background, var(--bx-slate-800)) !important;
584
+ border-radius: 0 0 var(--corner-radius-small, var(--radius-xs)) var(--corner-radius-small, var(--radius-xs));
585
+ transition: all 0.15s ease !important;
586
+ user-select: none;
587
+ z-index: var(--z-menu-item);
588
+ }
589
+
590
+ .bx-menu-footer-link:hover {
591
+ background: var(--app-list-hover-background, rgba(2, 132, 199, 0.15)) !important;
592
+ color: var(--bx-sky-400) !important;
593
+ }
594
+
595
+ .bx-menu-footer-link .bx-link-arrow {
596
+ font-size: var(--fs-body);
597
+ opacity: 0.75 !important;
598
+ transition: transform 0.15s ease !important;
599
+ }
600
+
601
+ .bx-menu-footer-link:hover .bx-link-arrow {
602
+ transform: translateX(3px) !important;
603
+ opacity: 1 !important;
604
+ }
605
+
606
+ /* =========================================================================
607
+ Skills Center View & Marketplace (Right-side Full View)
608
+ ========================================================================= */
609
+
610
+ .main-column.bx-skills-view-active #bx-skills-view-container {
611
+ display: flex !important;
612
+ }
613
+
614
+ .main-column.bx-skills-view-active .session-body,
615
+ .main-column.bx-skills-view-active .session-header {
616
+ display: none !important;
617
+ }
618
+
619
+ .sidebar-action[data-bx-skills-tab="1"] .sidebar-action-caret {
620
+ display: none !important;
621
+ }
622
+
623
+ .sidebar-action.bx-skills-active {
624
+ background: var(--app-list-active-background, rgba(2, 132, 199, 0.15)) !important;
625
+ color: var(--bx-brand, var(--bx-sky-600)) !important;
626
+ font-weight: 600;
627
+ }
628
+