Skip to content

DSH插件自带skill落地 #48

Closed
Closed

Description

@FeatherHunter

Part of #45

Blocked by: #46(已关闭,解除;本票关闭待DSH路tip重跑回贴,见HITL清单评论)

Question

按 R2 真相票的定级修法,让 dsh plugin add 落地时 skill 同车到达正确 DSH 目录:6 单品面板点亮不断链(缺席不再 missing-cli),总管导航正常,P10 单命令双包口径与负向断言回归全绿。范围:7 插件包+装配逻辑,不动技能实现。

Activity

  1. FeatherHunter commented on Sep 7, 2026

    @FeatherHunter
    OwnerAuthor

    代码已合master:feat/48-skill-landing 967d08f 经双审(S1-S6零hard)合入,三件三门禁落地,新tip fabcecc(Merge信息不Close本票)。验证:本地构建exit0、smoke 7/7、P10两文件18/18;CI run 34087976261(分支)success,run 34099355455(master)重跑转绿success(8构建job+win-detail全绿,首轮macos单红定级偶发)。0.1.1重发(skill-calorie/dsh-calorie patch,changeset已备)待用户2FA窗口;待#49双路证据收敛,本票暂不关闭。

  2. FeatherHunter commented on Sep 7, 2026

    @FeatherHunter
    OwnerAuthor

    持有更新:①「0.1.1重发待2FA」解除:1519c10已登记发版,registry确认双方0.1.1存在,且[email protected] dependencies={dsh-life-pack:^0.1.0,skill-calorie:^0.1.0}(payload干净)。②#49已关闭,其双路证据收敛本票(#49注明收敛但不阻塞,属自愿等待项)。剩余形式阻塞:Blocked-by #46(仍OPEN)。注:本票关闭还需#46关闭+DSH路tip级重跑,不因本条提前。

  3. FeatherHunter commented on Sep 7, 2026

    @FeatherHunter
    OwnerAuthor

    HITL实测清单v3(真库同源:禁tmp一致性对比,direct与面板读同一DB)

    0 取真值(只读):pwsh执行echo $env:SKILLS_DB_PATH; echo $LASTEXITCODE;为空则停,不编tmp。记$RealDb=$env:SKILLS_DB_PATH。依据:paths.ts原样取env无默认、缺失抛错;env.md必设无默认;仓内无host预设(仅测试传tmp)。
    1 版本钉死:dsh --version; echo $LASTEXITCODE、node --version; echo $LASTEXITCODE、git rev-parse --short HEAD; echo $LASTEXITCODE;另记dsh-calorie 0.1.1、skill-calorie 0.1.1。
    2 备份:Copy-Item $RealDb "$env:TEMP\sk-real-bak" -Recurse -Force; echo $LASTEXITCODE。
    3 同源direct(只读键零写,先设env再跑):$env:SKILLS_DB_PATH=$RealDb; node packages/skill-calorie/dist/cli/cmd_read.js calorie.view.home --params '{"date":"2026-09-07"}'; echo $LASTEXITCODE;记exit与total。引号:外单内双、无反斜杠。
    4 安装(双包单命令):dsh plugin add dsh-life-pack dsh-calorie; echo $LASTEXITCODE;证据取reconcileBundles双含断言输出。
    5 面板(只看可观测锚):边栏点卡路里tab(ilife:calorie/order75)记total;总管6tab导航可点回;DSH设置页side卡片多一项且总开关启用;缺席只认reco补装hint,missing-data/missing-cli为阻断态不记数。
    6 一致性:direct total==面板total才过;pwsh tmp值不可见桌面进程,禁拿tmp数对比。
    7 清理:Copy-Item "$env:TEMP\sk-real-bak" $RealDb -Recurse -Force; echo $LASTEXITCODE、Remove-Item "$env:TEMP\sk-real-bak" -Recurse -Force; echo $LASTEXITCODE、Get-FileHash (Join-Path $RealDb 'calorie_data.db'); echo $LASTEXITCODE。

    模板回贴#48:
    dsh=/node=/HEAD=/plugin-calorie=0.1.1/skill-calorie=0.1.1;install exit=;bundles证据=;direct exit=/total=;panel total=;一致=过/挂;ilife-page=;hash=;截图=有/无注。

  4. FeatherHunter commented on Sep 7, 2026

    @FeatherHunter
    OwnerAuthor

    DSH机制registry模拟通过(非面板,总指挥裁决放行,过程见本票往来):隔离sim目录 npm install [email protected] [email protected](npm ls四包,源registry.npmmirror);执行文件哈希 bridge.js af91b5…846f、client.js 2f5c6a…02d9、cmd_read.js cf8e32…2a000(与tip重编一致);realpath锚定全在sim/node_modules(caller原文备查,无D盘仓路径);最长链 requestReadViaHost→host.call→handleHostCall→readViaCli→spawn 全通;写读回:diet.add SimApple_321/321 receipt → view.home intakeCal 321/entryCount 1 → today逐条命中SimApple_321(envelope原文备查);真库pre/post哈希一致C1C94DBB…零触碰(本轮总指挥复验仍一致)。残余诚实声明:安装命令未@sha钉死(同会话ls-remote零漂移);panel-lit未测,仍待本清单人工项。transcript:执行机TEMP/ilife-sim-20260908-001542/transcript.txt。

  5. FeatherHunter commented on Sep 8, 2026

    @FeatherHunter
    OwnerAuthor

    #48 进展:整批 crash 根因锁定 + 六边形重接线完成(待发布验证)

    根因(对照真实 loader 源码 + 正常插件逐项验真):

    • H1 主因:dist/client.js 是裸 tsc ESM,DSH classic 整批执行下一错全死、零注册(报错逐字对应)。
    • H2:client 经 bridge 拖 node:child_process,浏览器无此模块。
    • H3:host apply 空函数,RPC 两头都没接上;host.call 形状也是虚构。
    • H4:registerTab/openTab 系虚构 API,真实是 slots+React;且 inject:[] 致永不挂载。
    • H5 patch 形状无罪。

    修复(P1→P4 全绿):

    • 新增端口:plugin-calorie/src/contract.ts(通道 /ilife-calorie 单段、read 端点、ok/fail 信封、载荷校验)。
    • host:apply 真注册 rpc.handle + duplicate 退让 + effect 清理(companion 同形)。
    • client:tsdown 打 loader 工厂包;settings.section(order 23)+ sidebar.footer.action(order 75);挂载期一次 RPC、无轮询;三态渲染不冒充。
    • 总管:settings.section 卡(order 21)纯渲染六 tab + 补装命令;host 保持 noop。
    • 门:build 0、双方 typecheck 0、loader 回路双方 3/3、smoke 7/7+3/3、boundaries PASS、publish:pre/fresh-tmp PASS;红队 API 虚构 0 检出 GO。
    • 红队打包项 NO-GO 的实质是 5 个兄弟包(bill/chef/home/memo/schedule)同病未治:本次只发双包、用户只装双包,不同批;兄弟红由回路看守,治发放 脏manifest批量重发(触发:#50关闭) #53 批次。

    下一步(人工):

    1. 发版(2FA):dsh-life-pack 0.1.1、dsh-calorie 0.1.2。
    2. 重装:dsh plugin --profile web add dsh-life-pack dsh-calorie --config.minimumReleaseAge=0(只装双包,禁顺手装兄弟包)。
    3. 面板+HITL:卡片读 date/total,直执行同 date 对 total,回贴。
  6. FeatherHunter commented on Sep 8, 2026

    @FeatherHunter
    OwnerAuthor

    #48 进展:发版 + 重装完成,待重启验证

    • 发版:dsh-life-pack 0.1.1、dsh-calorie 0.1.2 均已上官方源(wizard 走通);注册表复核一致。
    • 发版物复验(registry 下包解开):0.1.2 deps 干净、client 为工厂包(id 正确)、无 node: require、无 ESM import。
    • 重装(用户 profile):三件套命令一次成功——显式版本 + minimumReleaseAge=0 + 官方源
      (裸包名会被 24h 门回退旧版;安检连旧条目都拦;镜像源滞后报 NO_MATCHING_VERSION)。
    • 落盘复验:dsh-calorie 0.1.2、dsh-life-pack 0.1.1、skill-calorie 0.1.1、base-paint 0.1.0,
      链干净,client 工厂形态。
    • 待:用户重启 DSH(报错应消失)→ 面板 date/total → 直读同 date 对数 → 关票。
  7. FeatherHunter commented on Sep 8, 2026

    @FeatherHunter
    OwnerAuthor

    #48 进展:单卡方案落地已提交(6bda57e),待发版验证

    • grill 定案(Q1–Q13):设置页只留一张爱生活卡;卡内 TAB 条走爱生活页签槽 ledger 投影;技能功能页只走 sidebar槽(软依赖,无 better-sidebar 不断链);DSH右侧槽 + footer 旧注册出局;术语锁 CONTEXT.md(7 词)。
    • 实现:总管 0.2.0(单 DSH设置面板槽 + children 子槽 + ledger tablist/tab/tabpanel + visited 缓存 + 缺席推荐文案);calorie 0.1.3(技能设置页进子槽 order 75 + 技能功能页进 sidebar槽 order 61 + 有界重试10次);memo 同构(未发版,0.1.0)。
    • 门:build 0、回路 3/3×3、p10 18/18(轮询禁令细化为注册有界重试除外)、smoke 17/17、boundaries PASS。全量套件余红仅 4 stub 包(bill/chef/home/schedule,脏manifest批量重发(触发:#50关闭) #53 批)。
    • 待:发版(life-pack 0.2.0、calorie 0.1.3)→ 重装 → 重启验证(单卡 + 六 tab + 边栏页签 + 无整批报错)。
  8. FeatherHunter commented on Sep 8, 2026

    @FeatherHunter
    OwnerAuthor

    #48 进展:单卡版发版完成,待重装验证

    • 发版:dsh-life-pack 0.2.0、dsh-calorie 0.1.3 均上官方源(wizard 跟版后走通);注册表复核一致。
    • 发版物复验(registry 下包解开):0.1.3 工厂包、无 node: require、有爱生活页签槽注册、无单品独立 section;footer.action 仅注释提及(已删声明)。
    • 待:重装 → 重启(整批报错应消失)→ 单卡 + TAB 条 + 边栏页签验证 → 直读对数 → 关票。
  9. FeatherHunter commented on Sep 8, 2026

    @FeatherHunter
    OwnerAuthor

    #48 根因锁定并修复(待发版 0.1.4 验证)

    根因(实证链,非推测):

    • CLI 本体 0.09s 即回(有/无 env 皆秒退)——源头无罪。
    • 已安装包的 host handler 直驱:5 路全 ~100ms 回包——桥逻辑无罪。
    • 原样重放 client 请求 POST /ilife-calorie/read:15s 超时无回包——传输层 hang。
    • netstat 定到 43120 宿主 = DSH Desktop.exe(Electron):桥直拿 process.execPath 当 node,spawn 起 GUI 子进程永不退出,promise 永不 settle,双面板无限“加载中”。整批不 crash 是因为 handler 卡死只 hang 住自己这条请求。

    修复(0956d14 已推送,门禁:build/typecheck/smoke 9/9/回路 3/3×3/p10 18/18/boundaries PASS):

    • 桥 resolveNodeBin(node 直用 / Electron 加 ELECTRON_RUN_AS_NODE)+ 20s spawn 超时杀。
    • 双 client AbortSignal.timeout:UI 最多转 20s 即报超时错,永不无限转圈。
    • 版本 dsh-calorie 0.1.4(memo 同构,未发版)。

    待:发版 0.1.4 → 重装 → 带 env 启 Desktop(否则面板诚实报缺 env)→ 验证。
    附:真库近一周全空(最新数据 ~08-25),今日面板预期为诚实的“无今日数据”,非 bug;数据演示走记一笔后再看。

  10. FeatherHunter commented on Sep 8, 2026

    @FeatherHunter
    OwnerAuthor

    #48 进展:0.1.4 发版验证通过,待重装验证

    • 注册表 dsh-calorie 0.1.4 ✓;下包解开:bridge.js 含 resolveNodeBin + RUN_AS_NODE + 超时,client 工厂包 + AbortSignal.timeout + 页签槽注册,无 node: require。
    • 树干净(0956d14 已推);发布任务已删;wizard 014 精简版留档(未提交,需则补)。
    • 待:重装 0.1.4 → 带 env 启 Desktop → 面板验证(单卡/页签/边栏 + 有错报错不转圈)→ 直读对数 → 关票。
  11. FeatherHunter commented on Sep 8, 2026

    @FeatherHunter
    OwnerAuthor

    #48 进展:0.1.5(面板样式+版本行)发版验证通过

    • 注册表 0.1.5 ✓;下包解开:工厂包、超时、页签槽、圆角卡片、版本常量、主题别名全在,无 node: require,桥含根因修。
    • 待:重装 0.1.5 → 托盘彻底退出重进 → 双面板 30 秒看字 → 直读对数 → 关票。
  12. FeatherHunter commented on Sep 8, 2026

    @FeatherHunter
    OwnerAuthor

    检查单(真机实测 2026-09-08):重启无报错=是;设置页=有字;边栏=有字;direct=ERR4无今日数据(exit 4,真库 D:\2Study\StudyNotes.db,窗口2026-09-02~2026-09-08全空);panel=同文(桥转述前缀一致);一致=过。根因:client读ctx.connection却只声明inject=[slots],真机loader抛without-inject,effect外抛错成不可见rejection致无限转圈(0.1.6的20s race救不了)。修:6b0c1e7(双单品inject补connection+effect外圈兜底+loader用了就声明断言+cookbook失败表)。门禁:双方烟囱10/10+8/8、P10 18/18、boundaries PASS、typecheck双0。

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