Repository navigation
Conversation
|
Thanks for laying down this readiness boundary. Reusing the Core projection, keeping credential checks read-only, and exposing one typed contract from both Desktop owners are all good choices. I found two correctness gaps to address before later Composer work builds on this snapshot. P2 — Model-target facts are assembled from separate, fallible authority reads.
Could the owner expose one P2 — Task readiness does not apply the Codex normalization used by the send path. Existing send/readiness paths normalize Please reuse Focused regressions for a closed Runtime Host with catalog rejection, one-snapshot revision consistency, an explicit unknown slug, and legacy Codex model normalization should cover the gaps. The overall direction looks good; these are foundation-level semantic fixes rather than a request to redesign the surface. |
|
Addressed both correctness gaps in
Added focused regressions for closed Runtime Host + catalog rejection, one-snapshot resolution, explicit unknown slug, and legacy Codex model normalization. Relevant Core/Desktop tests are 14/14 passing; Desktop typecheck, Main/Preload builds, Biome, and diff checks pass. |
Review decisionDirection is right for slice 2 of #2497: pure core projection + thin Main/RH adapter + typed IPC, no premature Composer coupling. Must-land adjustments:
Landing via rebased maintainer PR. |
|
Landing via rebased PR (Runtime Host only after M5 cutover). Thanks @liugddx! |
English
Summary
Second delivery slice of #2497, building on the Core projection merged in #2498. This PR adds the Desktop Main/Runtime Host adapter and a typed preload IPC surface for task-submission readiness.
The adapter:
cwd(or Desktop workspace root) as a directory;unknowninstead of inventing a repair failure;window.maka.taskReadiness.getSnapshot(...)through the typed bridge.Both embedded and Runtime Host Desktop owners register the same IPC contract.
Refs #2497
Refs #2469
Verification
npm --workspace @maka/core run build— passednpm --workspace @maka/desktop run build:main— passednpm --workspace @maka/desktop run build:preload— passednpm --workspace @maka/desktop run typecheck— passednpx biome checkon all changed files — passedgit diff --check— passedScope
This PR exposes authoritative baseline readiness only. It does not yet render or enforce the snapshot in the Composer, and it does not yet adapt task-requested optional capabilities.
中文
概要
这是 #2497 的第二个交付切片,基于 #2498 已合并的 Core 投影。本 PR 增加 Desktop Main / Runtime Host adapter,并通过类型化 preload IPC 暴露任务提交 readiness。
Adapter 会:
cwd,未指定时检查 Desktop workspace root;window.maka.taskReadiness.getSnapshot(...)。embedded 与 Runtime Host 两种 Desktop owner 注册同一份 IPC 契约。
关联 #2497
关联 #2469
验证
npm --workspace @maka/core run build——通过npm --workspace @maka/desktop run build:main——通过npm --workspace @maka/desktop run build:preload——通过npm --workspace @maka/desktop run typecheck——通过npx biome check——通过git diff --check——通过范围
本 PR 只暴露基础权威 readiness;尚未在 Composer 中展示或执行这份 snapshot,也尚未适配任务按需请求的可选能力。