Skip to content

docs+chore: PR #14 遗留修复——README 入口、files 清单、DSH skill 软链、stdin 示例 - #15

Merged
kyomarshal merged 1 commit into
mainfrom
fix/pr14-readme-entry
Nov 27, 2026
Merged

kyomarshal merged 1 commit into
mainfrom
fix/pr14-readme-entry

Conversation

@kyomarshal

Copy link
Copy Markdown
Collaborator

修什么

PR #14 合并后 main 上的遗留问题,判决稿 Shared/Transfers/zce-pr14-9be47486/verdict.md 逐条落实:

  1. [Medium] 开发指南入口:中英文 README 的 agent 入口从已被 git 移除的 AGENTS.md 改指仓内现有的 docs/RULES.md,并补升级说明——旧克隆快进更新时 git 会删掉受跟踪的 AGENTS.md/CLAUDE.md(.git/info/exclude 拦不住),本地有保留这两份指南的先备份再恢复(cp /tmp 往返),此后以未跟踪文件存在。
  2. [Low] npm 打包:files 清单移除 AGENTS.md——npm 对 files 明列的条目无视 gitignore,本地开发克隆会把已忽略文件打进包。
  3. [Low] DSH 源码装法:dsh-plugin/skills/zcode-executor/references 软链补上,源码装法下 SKILL.md 旁边的 references/cli-and-jev.md 也能读到(npm 包装法本来就带)。
  4. [Low] stdin 示例:恢复完整三行 heredoc——只剩首行的版本复制后 shell 卡在 EOF 等待。

验证(逐条实跑)

  • README 链接:node 扫描两份 README 全部 docs/ 链接均指向存在文件,AGENTS.md 不再作为入口出现(仅在升级说明里);
  • npm pack --dry-run:产物清单零 AGENTS.md 条目;
  • 软链:head dsh-plugin/skills/zcode-executor/references/cli-and-jev.md 读得出正文;
  • stdin 三行原文粘贴进 bash:heredoc 正常闭合,只在 <id> 占位符处如预期报错,不再卡死;
  • node scripts/sync-doc-version.mjs --check 通过。

纯文档/清单/软链改动,未跑全量测试(不涉及 lib 代码)。

…skill references link, stdin example

[Medium] README/README.zh-CN: the development entry now points at
docs/RULES.md instead of the untracked-away AGENTS.md, plus an upgrade
note: a fast-forward pull removes tracked AGENTS.md/CLAUDE.md even when
.git/info/exclude lists them — back up before pulling, restore after
(cp /tmp round-trip), they live on untracked.

[Low x3, same PR per the review]
1. package.json files: drop AGENTS.md — npm packs files-listed entries
   even when gitignored, so local dev clones shipped it.
2. dsh-plugin/skills/zcode-executor/references symlink added, so the
   DSH source-checkout install exposes references/cli-and-jev.md next
   to SKILL.md (the npm-install layout already ships it).
3. SKILL.md stdin example restored to its three paste-able lines — the
   single-line version left interactive shells waiting on EOF.

Verification: doc links in both READMEs all resolve (node fs check);
npm pack --dry-run contains zero AGENTS.md entries;
dsh-plugin/skills/zcode-executor/references/cli-and-jev.md reads;
the three stdin lines pasted verbatim into bash close the heredoc and
fail only on the <id> placeholder as expected;
node scripts/sync-doc-version.mjs --check passes.
@kyomarshal
kyomarshal merged commit bff813f into main Nov 27, 2026
2 of 3 checks passed
kyomarshal added a commit that referenced this pull request Nov 27, 2026
…ce, pull-failure guard, paste-able stdin example (#16)

[Medium] The #15 upgrade snippet masked pull failures: uncommitted
edits to the tracked guides make git refuse the fast-forward, yet the
snippet kept restoring and exited 0, leaving the user on the old
version none the wiser; the fixed /tmp backup path could also
resurrect the OTHER guide from an older run on a clone that keeps
only one. The bilingual note now:
- uses a fresh mktemp -d per run, copies only what exists (no error
  swallowing);
- step 0: stash or commit the tracked local edits first
  (git stash push -- AGENTS.md CLAUDE.md);
- restores only what THIS run backed up, and only inside
  if git pull --ff-only — a failed pull restores nothing and says so.

[Low] SKILL.md stdin example: <id> pasted verbatim is a bash
redirect, not a placeholder — replaced with "$SESSION_ID" plus a
note on setting it.

Verification: simulated pre-#14 clone with uncommitted guide edits —
pull refuses, nothing restored, HEAD stays, local edit intact; with
the documented stash the full upgrade completes and both guides come
back untracked; a clone keeping only AGENTS.md never regains a
CLAUDE.md; the stdin example pasted verbatim closes its heredoc and
the CLI actually runs (answers session-not-found for the test id).
sync-doc-version --check passes.
@kyomio-openbot
kyomio-openbot Bot deleted the fix/pr14-readme-entry branch November 29, 2026 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant