diff --git a/CHANGELOG.md b/CHANGELOG.md index b465c0b..00b24d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,14 @@ Versions before 0.8.0 are in the [git tags](https://github.com/WireCatLabs/cli-b Every entry says what changed as a caller sees it, why, and what to watch for — the rules are [`docs/dev/CONVENTIONS.md`](docs/dev/CONVENTIONS.md#the-changelog). +## Unreleased + +### Added + +- **`scheduled` is a resource too, not only a view.** cli-core adds `messages scheduled cancel`, `edit` and `send` + under the scheduled list, and `cli-dev lint` refused a group named with a view (`unknown-resource`). A CLI that + names its own `scheduled` group now passes. + ## 0.121.0 — 19.11.2026 ### Fixed diff --git a/src/dev/lint.test.ts b/src/dev/lint.test.ts index 78ff843..c96fa1f 100644 --- a/src/dev/lint.test.ts +++ b/src/dev/lint.test.ts @@ -449,6 +449,24 @@ describe("lint rules", () => { expect(lintOf(root)).toEqual(lintOf(clean())) }) + it("passes a scheduled list that also holds the actions on its messages", () => { + const root = clean() + const messages = root.command("messages").description("messages in a chat") + const scheduled = ran( + messages + .command("scheduled") + .description("messages waiting to be sent later") + .argument("[chat]", "the chat") + .action(() => {}), + { examples: ["tool messages scheduled 7"] }, + ) + ran(scheduled.command("cancel").description("cancel scheduled messages").argument("", "the chat"), { + examples: ["tool messages scheduled cancel 7"], + effects: { remote: "write", local: "write" }, + }) + expect(lintOf(root)).toEqual(lintOf(clean())) + }) + for (const [rule, breakIt] of Object.entries(failing)) it(`fails ${rule}`, () => { const root = clean() diff --git a/src/standards/vocabulary.ts b/src/standards/vocabulary.ts index 9036d2f..e399757 100644 --- a/src/standards/vocabulary.ts +++ b/src/standards/vocabulary.ts @@ -375,6 +375,10 @@ const singulars: [string, string][] = [ ["privacy", "who may find, see, call or add the account"], ["metadata", "a profile's cached source attributes"], ["auth", "the credentials a bot profile uses: its token and the secrets beside it"], + [ + "scheduled", + "a chat's messages the messenger will send later; their ids are their own, never the ids of sent messages", + ], [ "schedule", "a profile's timers the owner saved, each running a command of this tool or an agent; the tool's own background work is jobs",