Skip to content

home复制样板线(桥+面板+frontmatter+提供方+双路证据) #58

Closed

Description

@FeatherHunter

Part of #1

Supersedes #50(按技能拆分之一;#50 关闭后以本票为准)

Question

居家管家(skill-home+dsh-home-ilife)按卡路里样板(#486b0c1e7+#49+#56 提供方)复制落地:桥+面板+frontmatter+提供方+双路 HELP 证据,一票内完成该单技能。

进度:0%

下一步:照抄样板实现 contract/dsh-ctx/工厂 client/index/桥 Electron 修+版本行+SKILL.md frontmatter+打包技能提供方(插件侧 skill-provider.ts,rank 600,cookbook §12),跑门禁后贴双路证据+agent 会话确认关票。

Destination

dsh-home-ilife 面板达到卡路里 parity:通道单段 read 端点、host 真注册+duplicate 退让+effect 清理、client 工厂包(sidebar 槽 order 85、软依赖有界重试 10 次、AbortSignal 超时、三态渲染、inject 含 connection+effect 外圈兜底)、桥 resolveNodeBin+20s 超时、版本行与双 package.json 一致;SKILL.md 补 frontmatter(skills-cli 可认出 skill-home);提供方达到卡路里 parity(cookbook §12,badge 同形):inject 加 skills,单份 SKILL.md 按包名解析服务,rank 内联 600,list/get 全通,DSH agent 技能目录可见 skill-home(名+介绍,可按需读全文调 CLI)。

范围(照抄样板,不重新设计)

  • 契约键:home.help.lookup(空库安全);槽位 ilife:home order 85 标题居家;包名 dsh-home-ilife/skill-home。
  • 提供方(技能目录可查,cookbook §12,badge 同形):新增 packages/plugin-home-ilife/src/skill-provider.ts(PROVIDER_NAME=dsh-home-ilife、SKILL_NAME=skill-home、BUNDLED_SKILL_RANK=600 内联;单份 SKILL.md 按包名解析,不复制;content 取 frontmatter 后正文);packages/plugin-home-ilife/src/index.ts inject 加 skills 并注册提供方(重名退让,RPC 通道注册不变);skills-provider 回路 list/get 全绿;面板/桥行为不变。分界:skill-home 侧保持纯粹普通 skill(零 DSH 代码、零 DSH 依赖),除 files 加 SKILL.md 外不动。
  • 门:build 0、双方 typecheck 0、loader 回路、smoke(含 Electron 超时语义+版本行断言)、skills-provider 回路、P10 18/18、boundaries PASS。
  • 证据:OC 隔离装+真调用、DSH 面板落字+直读同键对数(direct total==面板 total)、agent 会话查到 skill-home(HITL 一句话)。

关票条件

  • 上述实现合入 master+双路证据+agent 会话确认回贴;不合入不关票。

Activity

  1. changed the title [-]home复制样板线(桥+面板+frontmatter+双路证据)[/-] [+]home复制样板线(桥+面板+frontmatter+提供方+双路证据)[/+] on Sep 8, 2026
  2. FeatherHunter commented on Sep 12, 2026

    @FeatherHunter
    OwnerAuthor

    交叉引用:本票范围内的四项已由 #193 做完,本票按其收窄(不改状态、不建阻塞边)

    按地图 #183 的 插件侧最小安装 #193(照 #143 对 #59 的同一做法),本票原先并入的四项已在那里完成,本票不再重复实现:

    原属本票 现落点(#193)
    SKILL.md 补 frontmatter(skills-cli 可认出 skill-home) packages/skill-home/SKILL.md 文件头补扁平 YAML 头(name: skill-home/description/help_wake_word: "居家管家 帮助"),packages/skill-home/package.json 的 files 补 SKILL.md
    打包技能提供方(cookbook §12,badge 同形) packages/plugin-home-ilife/src/skill-provider.ts(PROVIDER_NAME=dsh-home-ilife/SKILL_NAME=skill-home/rank 600 内联/单份 SKILL.md 按包名解析、不复制)+ src/dsh-ctx.ts 镜像 + src/index.ts 的 inject 加 skills + 重名退让;回路 packages/plugin-home-ilife/test/skills-provider.test.mjs 9/9 绿(已接进包内 test 门)
    client 工厂包(产物形态这一层) tsconfig.json 排除 src/client.ts + 新建 tsconfig.client.json/tsdown.config.ts + package.json build 分 host/client;实测 dist/client.js 由 837 B 裸 ESM 变 3541 B loader 工厂包(首行 window.__ModuleLoader__.load({),node --test test/client-bundle-48.test.mjs 21 pass / 0 fail
    把技能装到 agent 读得到的位置(profile 与 ~/node_modules 走 Junction) 已装进 web profile:link:D:/ilife/packages/plugin-home-ilife + dsh.profile.bundles 加一项 + profile 与 ~/node_modules 两条 Junction,另有启动器自管的 .dsh-module-fallback 一条(备份与逐字回滚命令见 docs/skills/skill-home/t193-install-report.md §3.4)

    本票剩余范围(不变):面板达到卡路里 parity(sidebar 槽 order 85 真面板、软依赖有界重试 10 次、AbortSignal 超时、三态渲染、inject 含 connection + effect 外圈兜底)、通道单段 read 端点(host 真注册 RPC)、桥 resolveNodeBin + 20s 超时、版本行与双 package.json 一致、双路 HELP 证据里「面板落字」那一路。其中「DSH agent 技能目录可见 skill-home」由 #183 的真机端到端 #194 复验——#193 未重启 DSH 进程,插件半要下次启动才在用户当前 GUI 生效。

    状态仍为 open,不加阻塞边。

  3. FeatherHunter commented on Sep 17, 2026

    @FeatherHunter
    OwnerAuthor

    废弃 不执行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    wayfinder:task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions