Skip to content

feat: close business data and API compatibility boundaries - #615

Merged
gansx merged 4 commits into
mainfrom
gansx/business-data-api-compatibility
Oct 28, 2026
Merged

gansx merged 4 commits into
mainfrom
gansx/business-data-api-compatibility

Conversation

@gansx

@gansx gansx commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Problem

业务数据和 API 仍有多处旧字段、旧 runner 标识和旧媒体协议入口,导致新合同与历史数据边界不清晰,客户端也可能继续写入已淘汰字段。

What changed

  • 将 Web API DTO 统一迁移到 @ling-stack/contracts,新请求不再发送旧权限字段。
  • 用 SQLite 迁移 177/178 补齐权限字段并规范 runner alias,同时保留可审计的历史读取边界。
  • API v2 对旧权限写入稳定拒绝;旧 runner 记录、历史媒体证据和旧 DTO 只保留读取/恢复出口。
  • 新 ComfyUI 任务只允许 Jobs API;Prompt/History 仅用于历史读取与恢复。
  • 补齐 core、daemon、Web API builder 和真实公共媒体 HTTP 场景测试。
  • 添加 cutover 设计与实施计划文档。

Validation

  • Core 定向测试:96/96
  • Daemon 业务兼容定向测试:61/61
  • Web API builder Playwright:5/5
  • 全仓 corepack pnpm typecheck

主题、壁纸和设计文档变更不在本 PR 中。

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T19:14:31.922076Z c914bee New commits
🔒 Security Review ✅ Completed 2026-10-28T19:18:37.305223Z c914bee New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gansx
gansx force-pushed the gansx/business-data-api-compatibility branch from d49d191 to 1673ab9 Compare October 28, 2026 16:17

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d49d191625

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@gansx
gansx enabled auto-merge (squash) October 28, 2026 17:48
@gansx
gansx force-pushed the gansx/business-data-api-compatibility branch from d6179ae to 2ef37c9 Compare October 28, 2026 18:25

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2ef37c94a9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@gansx
gansx merged commit c128146 into main Oct 28, 2026
15 checks passed
@gansx
gansx deleted the gansx/business-data-api-compatibility branch October 28, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant