From cb06e58003452838a6e59d68e5e1f1cbc76ad773 Mon Sep 17 00:00:00 2001 From: Kirby <996@itdog.icu> Date: Sun, 13 Sep 2026 13:33:51 +0800 Subject: [PATCH] docs: state 0.1.3 minimum for browse and search --type; 0.1.4 The skill said 0.1.0 or later supports its commands and the agent guide said the minimum was 0.1.0, but browse and search --type only exist from 0.1.3; older binaries reject them as invalid input (exit 3, verified on 0.1.2). State the real minimum and how to check it in the skill, agent guide and README. The skill is embedded in the binary, so bump to 0.1.4 and regenerate the version and skill assets. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01SyjxHtzc5bneQgSH85QULN --- README.md | 2 +- docs/agent-setup.md | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- skills/cortex-org-wiki/SKILL.md | 7 +++++-- src/skillAsset.ts | 4 ++-- src/version.ts | 2 +- tests/cli.test.ts | 9 +++++++++ 8 files changed, 23 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index cee4855..680a4c2 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ cortex-org-wiki sources '' --revision '' --org ' { + for (const doc of ["skills/cortex-org-wiki/SKILL.md", "docs/agent-setup.md", "README.md"]) { + const text = (await readFile(join(repo, doc), "utf8")).replace(/\s+/gu, " "); + assert.match(text, /`browse` (?:and|与) `search --type`[^;;。]*0\.1\.3/u, doc); + assert.doesNotMatch(text, /最低版本 0\.1\.0|0\.1\.0 or later supports these commands/u, doc); + } + const version = (await run(["--version"])).stdout.trim(); + assert.ok(version.localeCompare("0.1.3", "en", { numeric: true }) > 0, version); + }); await t.test("HTTP errors, wrong organization, revision mismatch and empty results remain honest", async () => { for (const [status, code] of [[401, 2], [403, 2], [400, 3], [422, 3], [404, 4], [503, 4]]) { assert.equal((await run(["search", `status-${status}`, "--org", "org-甲", "--json"])).code, code);