Skip to content

feat: artifact-enhance — FC-1~7 (port fix, LoadArtifact, PatchArtifact, budget check, auto-trigger, bookend prompt, budget indicator) #37

Closed

Description

@dahai80

背景

PRD (architecture/artifact-enhance-plan.md) Phase 1~2 要求 fusion-code 实现完整的 artifact 工具和上下文预算控制。

任务

# 任务 说明 优先级
FC-1 修复 artifact engine 端口 8892 → 11451,统一 114xx 端口 P0
FC-2 LoadArtifactTool 实现 调用 artifacts-engine load_artifact RPC;默认 preview_only=true;按需加载全文 P1
FC-3 PatchArtifactTool 实现 调用 artifacts-engine patch_artifact RPC;4 种操作;返回操作结果 + 新版本号 P1
FC-4 artifact 注入预算检查 artifactInjection.ts 注入前查询 mlx /v1/context/budget;超过 70% 降级为 preview_only;超过 90% 拒绝注入 P1
FC-5 auto-artifact-trigger 增强 流式输出超过 30 行/1500 字符时自动触发 ArtifactCreateTool;而非仅靠 prompt 指令 P1
FC-6 bookend prompt 注入 系统 prompt 增加 artifact 长文本规范:开头放目录、末尾放变更清单、修改优先增量 P1
FC-7 上下文预算指示器 在聊天界面顶部显示上下文使用进度条;颜色: 绿(<50%) → 橙(50-80%) → 红(>80%) P2

验收标准

  • FC-1: artifact-engine 端口修正为 11451
  • FC-2: LoadArtifactTool 可调用,支持 preview_only
  • FC-3: PatchArtifactTool 支持 4 种操作
  • FC-4: 注入前检查预算,超 70% 降级
  • FC-5: 长输出自动触发 artifact 创建
  • FC-6: 系统 prompt 包含 artifact 规范
  • FC-7: UI 显示上下文预算进度条

参考

  • PRD: architecture/artifact-enhance-plan.md §3.3
  • 验证报告: architecture/validate-fusion-artifacts.md

Activity

  1. dahai80 commented on Aug 3, 2026

    @dahai80
    OwnerAuthor

    All FC-1~7 implemented: port fix, LoadArtifact RPC upgrade, PatchArtifact, budget pre-check (#34), auto-trigger, bookend prompt, budget indicator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions