Repository navigation
feat(dsh): 0.1.2 status visibility and agent hints - #253
Merged
Merged
Conversation
- 新增 docs/architecture/SURFACES.md,統一狀態、capability、reason 與恢復語義 - client 抽出模組級 embed-info store,icon 與 panel 共用一次輪詢 - 側邊欄圖示新增 up/starting/down/unknown 狀態點與可讀 title - 補強 daemon down 的 MCP 工具恢復文案與狀態 store 測試 Signed-off-by: Windsander <Windsander@users.noreply.github.com>
- host 通过 ctx.inject 注入 systemPrompt,注册唯一的 mebular:status section - 复用 MCP bridge 的 lifecycle snapshot,up 时文本为空,非 up 时给短恢复动作 - 仅在派生文本变化时 emit system-prompt/change,避免每个健康检查 tick 刷新 - systemPrompt 服务缺失时安全跳过;panel:false 仍保留 Agent 提示 - 覆盖注册、up/down、状态切换、服务缺失、重复挂载与晚绑定 - 更新 SURFACES、DSH 集成文档、插件 README 与设计文档 Signed-off-by: Windsander <Windsander@users.noreply.github.com>
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.
0.1.2 DSH usability
Two slices on the same branch:
Shared status contract + sidebar status dot
docs/architecture/SURFACES.md: status / capabilities / reason / recovery / surface matrix; no new core endpoint.packages/dsh-plugin/client.js: one shared embed-info store feeds both the sidebar icon and the panel; icon/panel no longer poll independently.Agent-visible status
packages/dsh-plugin/index.js: optional DSHsystemPromptsectionmebular:statusviactx.inject(['systemPrompt']).up; empty (no token cost) when healthy.system-prompt/changeonly when the derived text changes.panel:falsestill gets agent hints; no new MCP tool, no wire-shape change.Validation
tests/dsh: 5 suites / 110 testsverify:dsh-plugin: 136 checkslint,check:docs7/70.2.1-rc.2Web:/app/embed/info: amber degradedmebular:statuspresent with down text; no repeatedsystem-prompt/changebetween 2s ticks; becomes empty after daemon startsKnown risks
up.uninitializedand sync/ready still have no dedicated discovery fields; recorded in the contract rather than expanded in this PR.No version bump, publish, or Release in this PR. Target 0.1.2 full train.