Skip to content

先发 [email protected]:解掉大厨从 npm 装必失败的阻塞 #697

Closed

Description

@FeatherHunter

Question

把 [email protected] 发到 npm,解掉「大厨」这一格从 npm 装必失败的阻塞。

事实(已复验):npm view skill-chef versions 只有 ["0.1.0"],而已发布的 [email protected] 精确 pin 了 skill-chef: "0.2.0"——所以从那以后从 npm 装 dsh-chef 一定失败,「缺席即装」在大厨那一格直接卡住。

用户裁决:我们直接发最新的 0.2.0,作为发布者自己保证。

验收

  • npm view [email protected] version 返回 0.2.0(给命令行与原始输出)。
  • 干净环境里 dsh plugin add dsh-life-pack dsh-chef 能装上(给装机前后两次读数)。

不许动的东西

只发版,不改功能:不许顺手改 skill-chef 的行为、不许改别的包、不许切分支;发版走仓库既有的发布窗口流程。

交付物路径

npm 上的 [email protected](仓库侧若有版本号或 changeset 要补齐,按发布流程走)。

遗留出口

发版过程中若发现别的包版本不一致(例如更新包的 checkout 写 0.1.0 而 npm 上是 0.1.1),记进本票评论,由编排者另起票。

验收记录(2026-09-17)

第一条已过,由编排者在用户发布后实测:

命令 读数
npm view skill-chef versions --json ["0.1.0", "0.2.0"]
npm view [email protected] version 0.2.0
npm view [email protected] dist.tarball https://registry.npmmirror.com/skill-chef/-/skill-chef-0.2.0.tgz
npm view [email protected] dependencies {"skill-chef":"0.2.0","dsh-life-pack":"^0.2.0"}
npm view [email protected] version 0.2.0

⇒ 装 dsh-chef 所需的三样(插件本体、它钉死的技能包、它依赖的总管)在 registry 上都解析得到,原来那条「必失败」已不成立。

第二条的真装机那半由用户裁定不做(用户原话:任务都执行完毕了、已经发版本了);编排者实测的「依赖可解析」三行读数留作该项的实际证据。

进度:100%

(用户确认完成:发布已完成、真装机那半无需执行。本票关闭。)

Activity

  1. FeatherHunter commented on Sep 18, 2026

    @FeatherHunter
    OwnerAuthor

    执行记录:交付物 09-16 就已在 npm 上,票面读数是本机默认源滞后

    结论:[email protected] 已经发布,不需要也无法再发一次——同版本号 npm 只收一次(重发 E409)。票面「npm 上只有 0.1.0」的出处是本机默认源 registry.npmmirror.com 的陈旧元数据,不是 npm 的状态。

    事实与读数

    • 官方源 registry.npmjs.org:[email protected] 发布时刻 2026-09-16T11:16:37.358Z;同一窗口的 [email protected] 是 2026-09-16T11:25:31.849Z(相隔 9 分钟,正是 packages/skill-chef/scripts/wizard-publish.sh → packages/plugin-chef/scripts/wizard-publish.sh 的顺序)。dist-tags.latest = 0.2.0,tarball 98 个文件、带来源签名。
    • npm view skill-chef versions --registry=https://registry.npmjs.org → [ '0.1.0', '0.2.0' ]
    • npm view [email protected] version --registry=https://registry.npmjs.org → 0.2.0
    • 本机默认源 registry.npmmirror.com(修之前):npm view skill-chef versions → 0.1.0;[email protected] 的元数据与 tarball 都是 E404;镜像元数据 modified 停在 2026-09-07T04:59:33Z。
    • 15 个 ilife 包逐个对照(npmjs 对镜像):只有 skill-chef 一个滞后,dsh-chef/dsh-life-pack/skill-home/dsh-home-ilife/skill-bill/dsh-bill-ilife/skill-memo-ilife/dsh-memo-ilife/skill-schedule/dsh-schedule-ilife/skill-calorie/dsh-calorie/base-paint/base-link-core 两边一致。票面「遗留出口」那一类包版本不一致不存在。
    • 镜像已修:PUT https://registry.npmmirror.com/-/package/skill-chef/syncs → 201 {"ok":true,"state":"waiting"},约 1 分钟后元数据刷新为 2026-09-18T12:54:14Z,版本列表出现 0.2.0。现在默认源也返回 0.2.0。

    验收自查

    ① npm view [email protected] version 返回 0.2.0

    • 官方源:0.2.0
    • 本机默认源(同步前 → 同步后):E404 → 0.2.0

    ② 干净环境装机(仓外空目录,装机前后两次读数)

    ③ 发布面内容核对(发布者保证)

    ④ 本机实况

    装机命令

    # ① 装到本机 DSH(web profile)——官方源、精确版本
    dsh plugin --profile web add --save-exact [email protected] [email protected] --registry=https://registry.npmjs.org/
    
    # ② 仓外干净目录自己验「装得上」(不碰任何 profile)
    mkdir C:\t697 && cd /d C:\t697
    pnpm init
    pnpm add --save-exact [email protected] [email protected] --registry=https://registry.npmjs.org/
    
    # ③ 全新机器一句话装机
    dsh plugin add dsh-life-pack dsh-chef --registry=https://registry.npmjs.org/

    本机默认源已同步,去掉 --registry= 也装得上;但机器默认源指向其它镜像时,--registry= 这条仍然必要。

    没动的东西

    仓内零改动(git status 里那几件属别席在途)、没发布、没切分支、没跑编译测试(共享树的规矩);实验件都在 %TEMP% 与 C:\t697。

    进度:95%

    下一步:按上面第 ①/③ 条命令装一次并自验功能;确认通过后本票 close,同时在所属地图「爱生活设置面:总管、卡路里、记账三块配置面板做成成品」的 Decisions so far 追加一行 gist。

  2. FeatherHunter commented on Sep 18, 2026

    @FeatherHunter
    OwnerAuthor

    验收补齐:字面命令在干净环境里跑通

    ① 你在 web profile 上跑的那条(官方源、精确版本)返回 Already up to date:该 profile 里 [email protected]/[email protected] 从 2026-09-16 20:45 起就在位,命令本身 exit 0,没有报错。

    ② 为补上「干净环境装机前后两次读数」,我在隔离的 DSH 家目录里新建空 profile,复跑同一条字面命令(DSH_HOME 指向 %TEMP%\ilife-t697-dshhome,你真实的 ~/.dsh 零改动——实查 ~/.dsh/profiles/t697clean* 不存在):

    dsh plugin --profile t697clean add --save-exact [email protected] [email protected] --registry=https://registry.npmjs.org/

    ③ 同一条命令不带 --registry=(走本机默认源 registry.npmmirror.com),另开一个空 profile 复跑:同样装上,exit 0——镜像同步之后,默认源这条路也不再失败。

    收口

    票面两条验收都拿到了读数(① 见上一条评论的「验收自查」,② 见本条)。发版本体无需任何动作:[email protected] 09-16 就在 npm 上,线上 tarball 与仓库当前文件逐字节相同。功能自验由用户按自己的节奏做;若功能面发现问题,按地图既有口径另起 bug 票,不在本票范围。

  3. FeatherHunter commented on Sep 18, 2026

    @FeatherHunter
    OwnerAuthor

    验收两条都已拿到读数(

  4. FeatherHunter commented on Sep 18, 2026

    @FeatherHunter
    OwnerAuthor

    收口:100% + close

    票面两条验收都已拿到读数:

    交付物状态:[email protected] 于 2026-09-16T11:16:37Z 已发布在本账号下,线上 tarball 与仓库当前文件逐字节相同,因此本次没有也不需要再发布动作(同版本号 npm 只收一次)。

    按进度契约:100% + close。功能自验由用户按自己的节奏进行;若功能面发现问题,按地图既有口径另起 bug 票。

    (本评论补发:首次 close 时的评论被命令行引号截断,现以文件方式重发全文。)

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

Metadata

Metadata

Assignees

Labels

wayfinder:task

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions