Skip to content

v1.4.1

Latest

Choose a tag to compare

@angel291592 angel291592 released this 08 Nov 09:24
· 1 commit to main since this release

The transcript boundary now survives command output. --rescore used to split persisted transcripts at every line beginning with $ , so a test runner echoing the command it just ran cut the turn in half and the turn carrying the spec was silently dropped. Splitting now happens only at a command line immediately followed by its [exit N] line, and the three places that used to split independently share one splitter. A transcript with no parseable turn — empty, truncated or otherwise malformed — fails with its file name instead of reaching an IndexError; the empty-file path was the last one that could still crash. Reported in #4 and fixed in #5.

持久化的 transcript 现在能在命令输出里存活。--rescore 过去在每个以 $ 开头的行切分 transcript,于是测试跑完回显自己刚执行的命令时,轮次被切成两半、携带 spec 的那一轮被静默丢弃。现在只在「命令行 + 紧邻的 [exit N] 行」处切分,原先各自切分的三处共用一个 splitter。没有可解析轮次的 transcript(空文件、被截断或其它损坏形态)会报出文件名,而不是触发 IndexError;空文件是最后一条仍会崩的路径。由 #4 报告、在 #5 修复。

The install command is now checked / 安装命令纳入检查: --check-docs also checks the install command. That command is written into four independently edited surfaces — both READMEs, the site entry point, and the skill's own compatibility reference, which ships inside the installed copy — and nothing compared them, so a rename could leave one of them telling readers to run a command that no longer resolves. The gate requires npx skills add on all four and requires all four to name the same target.

--check-docs 现在也校验安装命令。该命令写在四处独立编辑的位置——双语 README、站点入口页、以及随 skill 一起分发的兼容性参考——此前没有任何检查比对它们,改名时可能漏掉一处、让读者照着一个已失效的命令去安装。该检查要求四处都出现 npx skills add,且四处指向的目标名一致。

Verification / 核验: this is an offline parsing change. --selftest, --check-frontmatter and --check-docs all pass: frontmatter 493 lines / 491 characters; docs 37 links; the install command is found on all four surfaces. The transcript fix is exercised by the runner's selftests — prompt echo, trailing fragment, unparseable text, empty file, and intent_check finding the final session when its body contains a $ line. No live suite was run: no scoring semantics, case data or reports were touched. The residual ambiguity is unchanged and documented rather than hidden: output that itself contains a complete $ <cmd> + [exit N] pair is still indistinguishable from a genuine header in the human-readable format; a length-prefixed or JSON-lines record would remove it, but that is a persistence-format change and out of scope here.

本次是离线解析改动。--selftest、--check-frontmatter、--check-docs 全部通过:frontmatter 493 行 / 491 字符;文档 37 条链接;安装命令在四处均被找到。transcript 修复由 runner 的 selftest 覆盖——提示符回显、尾部残片、不可解析文本、空文件,以及 intent_check 在正文含 $ 行时仍能找到最后一个会话。没有跑全量评测:评分语义、用例数据和报告均未改动。残余歧义保持原样并已记录:如果命令输出里出现一对完整的 $ <cmd> + [exit N],在当前人类可读格式里仍无法与真正的 header 区分;改成带长度前缀或 JSON-lines 记录可以消除,但那是持久化格式变更,不在本次范围内。

Full changelog: v1.4.0...v1.4.1