53 lines
2.2 KiB
Markdown
53 lines
2.2 KiB
Markdown
# Target Surface Analysis — Output Template
|
||||
|
|
|
|||
|
|
> Used by Phase A1.7 (standalone) and Phase B1.7 (pipeline).
|
|||
|
|
> Read this file when executing the Target Surface Analysis phase, then
|
|||
|
|
> produce the output document following this format.
|
|||
|
|
|
|||
|
|
Publish the output to wiki page `port-{name}/source-analysis/target-surface`
|
|||
|
|
(standalone) or `port-{name}/source-analysis/11-target-surface`
|
|||
|
|
(pipeline) via `wiki 读写 API(见 TERMINOLOGY)`.
|
|||
|
|
|
|||
|
|
```markdown
|
|||
|
|
## Target Surface Analysis
|
|||
|
|
|
|||
|
|
### Target Project Structure
|
|||
|
|
- Package map (package name → role)
|
|||
|
|
- Relevant directory trees
|
|||
|
|
|
|||
|
|
### Existing Capabilities (overlapping with source)
|
|||
|
|
| Target Module | Overlap with Source | Action (reuse / replace / extend) |
|
|||
|
|
| ------------- | ------------------- | --------------------------------- |
|
|||
|
|
| ... | ... | ... |
|
|||
|
|
|
|||
|
|
### Structural Diff Summary
|
|||
|
|
| Dimension | Source has | Target has | Gap |
|
|||
|
|
| --------------- | ---------- | ---------- | --- |
|
|||
|
|
| Files (.tsx) | {N} files | {M} files | {N-M} new |
|
|||
|
|
| Dependencies | {list} | {list} | {diff} |
|
|||
|
|
| Export symbols | {list} | {list} | {diff} |
|
|||
|
|
| Routes | {list} | {list} | {diff} |
|
|||
|
|
| Providers | {list} | {list} | {diff} |
|
|||
|
|
| Schemas | {list} | {list} | {diff} |
|
|||
|
|
| CLI commands | {list} | {list} | {diff} |
|
|||
|
|
| Theme files | {list} | {list} | {diff} |
|
|||
|
|
| Config entries | {list} | {list} | {diff} |
|
|||
|
|
| Env vars | {list} | {list} | {diff} |
|
|||
|
|
| Build config | {list} | {list} | {diff} |
|
|||
|
|
|
|||
|
|
### Integration Points
|
|||
|
|
| Integration Point | Change Required | Affected Target Files |
|
|||
|
|
| ----------------- | --------------- | --------------------- |
|
|||
|
|
| Route table | Add /new-session route | src/app.tsx |
|
|||
|
|
| Provider hierarchy | Insert TabsProvider | src/app.tsx |
|
|||
|
|
| ... | ... | ... |
|
|||
|
|
|
|||
|
|
### Target Readiness
|
|||
|
|
| Readiness Item | Required? | Complexity | Blocking? |
|
|||
|
|
| -------------- | --------- | ---------- | --------- |
|
|||
|
|
| New package | No | — | No |
|
|||
|
|
| Interface extraction | Yes | Medium | Yes |
|
|||
|
|
| Migration | Yes | Low | Yes |
|
|||
|
|
| Config schema | No | — | No |
|
|||
|
|
```
|