feat(runtime): /meta /data 终刀抽出 — D11 步骤③ 收官,if 链清空 (#2462) - #3573
Merged
Conversation
…erminal cut (#2462) The last two if-chain domains leave the dispatcher: - domains/meta.ts: the metadata surface (ADR-0033 draft-aware protocol paths, org-scoped reads, requireAuth gate via deps.isAuthRequired) with its exclusive slimDocList (ADR-0046) riding along. - domains/data.ts: CRUD/query over actionExec.callData; the multi-tenant unresolved-env 428 keys off a new semantic deps.isMultiTenantHost() instead of poking this.kernelResolver. dispatch() now contains ZERO domain branches — 18 domains resolve through the DomainHandlerRegistry; the gate stages + registry lookup is all that remains. createHonoApp's catch-all is ready for retirement (step ① of #2462). Verified: runtime 649, http-conformance 41, dogfood 351, full build green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Contributor
📓 Docs Drift CheckThis PR changes 1 package(s): 17 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
| } from '@objectstack/core'; | ||
| import { pluralToSingular } from '@objectstack/spec/shared'; | ||
| import { CoreServiceName } from '@objectstack/spec/system'; | ||
| import * as actionExec from '../action-execution.js'; |
6 tasks
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.
终刀(#2462 D11 步骤③ 系列第十刀)
最后两个域离开 dispatcher:
domains/meta.ts(327 行):元数据读写面(ADR-0033 草稿感知协议路径、org 作用域读取、requireAuth 门经deps.isAuthRequired()),独占 helperslimDocList(ADR-0046 文档瘦身)随体走,CoreServiceName/匿名拒绝家族/pluralToSingularimport 随体迁移。domains/data.ts(122 行):CRUD/查询跑在 actionExec.callData 桥上;多租户未解析环境的 428 改 keyed 语义化的deps.isMultiTenantHost()(替代直捅this.kernelResolver)。里程碑
dispatch() 的 if 链域分支清零——18 个域全部经
DomainHandlerRegistry解析,dispatch() 只剩关卡序(env 解析→身份→auth gate→membership→scoped strip)+ 查表。createHonoAppcatch-all 具备退役条件(#2462 步骤①解锁)。http-dispatcher.ts 从步骤③启动时的 4765 行降至终态骨架;18 个域模块 + action-execution 子系统各自独立可读。
验证
runtime 649 绿;http-conformance 41 绿;dogfood 351 绿;全仓 build 绿。零行为变化。
关联 #2462(D11 步骤③ 收官刀)。
🤖 Generated with Claude Code