Repository navigation
ref(core): 分离独立 SDK 与应用兼容入口 - #185
Merged
Merged
Conversation
This was referenced Nov 4, 2026
xiaoland
force-pushed
the
feat/core-app-separation
branch
from
November 4, 2026 13:05
028e49b to
53e6fd7
Compare
This was referenced Nov 4, 2026
- 更新到 Hub main 17fc19e - 使用与正式 dogfood 相同的合同树交付 Core 与 App 边界
xiaoland
marked this pull request as ready for review
November 5, 2026 09:47
3 of 5 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更目的与范围
新增
@inkcre/core/sdk,让独立程序在不加载 Vue、Pinia 或应用配置的情况下使用 Core。连接、认证来源和 Fetch 由调用方显式提供;根入口继续服务现有 Vue/MF 消费者,并复用同一传输与字节存储实现。pnpm check:sdk和pnpm check。@inkcre/core、@inkcre/client-web、@inkcre/client-webext。Changeset 使用既有 0.4 兼容线 patch,不改变 MF Host ABI。后续工作
本 PR 保持 draft,待维护者审阅独立消费边界与兼容策略;无已指定审阅人。目标分支为
main,源码基于e01e097c9c8e7a9e80d9d92187957d1c5eeaeb67,只包含本任务的源码与独立共享文档引用提交。当前不请求合并或发布。跨仓跟踪:InKCre/docs#50
共享 Product TDD:InKCre/docs#51
验证证据
在当前 main 基线上重新完成:
pnpm install --frozen-lockfile通过,锁文件未变更。pnpm check通过:全仓格式、lint、类型检查,Core/Web/WebExt/全部 7 个 MF producer 构建和分发合同,以及独立 SDK 实际 npm tarball 消费检查。git diff --check与共享文档子模块检查通过;main...HEAD仅包含本任务的 19 个文件。按用户要求未在本地执行端到端验收;本地证据不覆盖浏览器完整旅程、真实数据库跨 Peer 互操作或 preview。云端 CI 可正常执行,包括其端到端检查。
交付影响
不变更数据库协议或 schema,不发布包、不部署生产。目标分支为 main,按仓库既有工作流正常执行云端 CI/preview;本次没有修改工作流或主动 dispatch。
PR 依赖
b33346225b669a6ac93fcac12a135178a46533c8。风险与回滚
主要风险是独立入口声明依赖、默认传输与现有应用入口之间出现差异,或打包遗漏入口。独立消费和兼容测试覆盖这些边界,但不能替代真实运行验收。可整体 revert 本 PR 的源码和子模块指针提交,恢复原根入口与构建方式;无需数据库回滚。
后续统一可观测性
直接子 PR:https://github.com/InKCre/impl-ts/pull/186(draft,基于本 PR 的 Core/App 边界)。先合并本 PR,再将子 PR 重排到最新 main;跨仓交付由 InKCre/docs#52 跟踪。