Files
TrueGrowth/openspec/changes/add-omni-intelligence-hub/tasks.md

2.4 KiB

1. Discovery and Contracts

  • 1.1 Confirm the local Agent-Reach install/run command and output format.
  • 1.2 Define normalized TypeScript types for Agent-Reach status, research request, link parse request, and intelligence result.
  • 1.3 Decide whether the first bridge runs through the existing Local API script or a workbench service helper.

2. Workbench Entry

  • 2.1 Add the /intelligence route title and sidebar item.
  • 2.2 Add the application-center card for 万象智枢.
  • 2.3 Ensure the new route is searchable from the workbench top search where current app cards are searchable.

3. Omni Intelligence UI

  • 3.1 Create the main OmniIntelligencePage component.
  • 3.2 Add the planned internal navigation groups and submodule tabs.
  • 3.3 Add the top unified input with query/link detection.
  • 3.4 Add query modes: 快速探索, 深度研究, 趋势分析, 竞品分析, 链接解析.
  • 3.5 Add advanced configuration controls: time range, language, platform include/exclude, research depth, output form, fact checking, source retention, and creative plan generation.
  • 3.6 Add quick scenario buttons: 今日选题, 解析视频, 竞品分析, 开源项目研究, 爆款拆解, 内容方案.
  • 3.7 Add result preview sections for conclusion, evidence, user views, trend judgment, competitor analysis, content ideas, scripts, storyboards, and prompts.

4. Model Selection

  • 4.1 Reuse the current text model selection logic via useSelectableModels('text').
  • 4.2 Reuse or adapt the existing controlled ModelSelector component.
  • 4.3 Submit both selected model id and model ref to the Agent-Reach bridge.
  • 4.4 Keep the selection stable across mode and tab changes.

5. Agent-Reach Runtime Bridge

  • 5.1 Add a status/doctor bridge for Agent-Reach availability and source capabilities.
  • 5.2 Add a research submission bridge.
  • 5.3 Add a link parsing bridge.
  • 5.4 Normalize Agent-Reach output into the Omni Intelligence result model.
  • 5.5 Add timeout, error, and missing-auth handling.

6. Verification

  • 6.1 Validate the OpenSpec change once the CLI is available. (openspec is not currently in PATH.)
  • 6.2 Run targeted TypeScript/build checks for affected web and drawnix imports.
  • 6.3 Manually verify sidebar route, app card route, model dropdown, status panel, quick scenarios, and degraded Agent-Reach state.