Skip to content
Merged
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
26 changes: 26 additions & 0 deletions .changeset/sawala-kontena-write-surface.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
'@sawala/cli': minor
'@sawala/mcp': minor
---

Add the Kontena write surface: schemas + entries CRUD and publish/unpublish.

Both the `sawala` CLI and `sawala-mcp` server previously exposed only
read-only Kontena commands. This release fills out the rest of the
content workflow:

- CLI: `sawala kontena schema {create,update,delete}` and
`sawala kontena entry {create,update,delete,publish,unpublish}`.
Body comes from `--file <path>` (or `-` for stdin) or inline
`--data <json>`. Destructive verbs prompt on a TTY and refuse without
`--yes` outside one. Both create/update support `--dry-run` to
validate without a round-trip.
- MCP: eight new tools mirroring the CLI verbs. Delete tools require
`confirm: true` and carry `destructiveHint`/`irreversibleHint` for
host UIs. Entry CRUD transparently fetches the schema first to route
single vs collection — schema type stays an implementation detail of
the kontena worker, not the tool surface.

Publish/unpublish target collection schemas in v1; single-type schemas
go through `entry update --publish` with the locale supplied in the
patch.
Loading