Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions src/dev/lint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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("<chat>", "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()
Expand Down
4 changes: 4 additions & 0 deletions src/standards/vocabulary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading