Repository navigation
docs+chore: PR #14 遗留修复——README 入口、files 清单、DSH skill 软链、stdin 示例 - #15
Merged
Merged
Conversation
…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
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.
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.
修什么
PR #14 合并后 main 上的遗留问题,判决稿
Shared/Transfers/zce-pr14-9be47486/verdict.md逐条落实:AGENTS.md改指仓内现有的docs/RULES.md,并补升级说明——旧克隆快进更新时 git 会删掉受跟踪的AGENTS.md/CLAUDE.md(.git/info/exclude拦不住),本地有保留这两份指南的先备份再恢复(cp /tmp往返),此后以未跟踪文件存在。files清单移除AGENTS.md——npm 对 files 明列的条目无视 gitignore,本地开发克隆会把已忽略文件打进包。dsh-plugin/skills/zcode-executor/references软链补上,源码装法下 SKILL.md 旁边的references/cli-and-jev.md也能读到(npm 包装法本来就带)。验证(逐条实跑)
docs/链接均指向存在文件,AGENTS.md不再作为入口出现(仅在升级说明里);npm pack --dry-run:产物清单零AGENTS.md条目;head dsh-plugin/skills/zcode-executor/references/cli-and-jev.md读得出正文;<id>占位符处如预期报错,不再卡死;node scripts/sync-doc-version.mjs --check通过。纯文档/清单/软链改动,未跑全量测试(不涉及 lib 代码)。