slatebox-mcp 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/generated/client.json +119 -9
- package/generated/exec-tool.json +91 -5
- package/generated/guest-client.js +1 -1
- package/generated/slatebox.d.ts +47 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,14 +34,14 @@ If you want a script to run on your Slatebox instead, in its sealed runner with
|
|
|
34
34
|
Use Node.js 22.13 or later. Download the archive and checksum from the Slatebox docs. The archive includes the JavaScript source of both commands, the generated client files and the MIT license.
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
|
-
curl -fLO https://docs.slatebox.com/assets/downloads/slatebox-mcp-0.3.
|
|
38
|
-
curl -fLO https://docs.slatebox.com/assets/downloads/slatebox-mcp-0.3.
|
|
39
|
-
shasum -a 256 -c slatebox-mcp-0.3.
|
|
40
|
-
npm install --global ./slatebox-mcp-0.3.
|
|
37
|
+
curl -fLO https://docs.slatebox.com/assets/downloads/slatebox-mcp-0.3.4.tgz
|
|
38
|
+
curl -fLO https://docs.slatebox.com/assets/downloads/slatebox-mcp-0.3.4.tgz.sha256
|
|
39
|
+
shasum -a 256 -c slatebox-mcp-0.3.4.tgz.sha256
|
|
40
|
+
npm install --global ./slatebox-mcp-0.3.4.tgz
|
|
41
41
|
slatebox help
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
On Linux you can also verify the checksum with `sha256sum -c slatebox-mcp-0.3.
|
|
44
|
+
On Linux you can also verify the checksum with `sha256sum -c slatebox-mcp-0.3.4.tgz.sha256`. npm installs the public MCP SDK.
|
|
45
45
|
|
|
46
46
|
Open **Profile → Developer access** in your Slatebox account and create a token. Supply it in the `SLATEBOX_API_TOKEN` environment variable. Set `SLATEBOX_BASE_URL`, or pass `--base-url`, to your own instance's origin when self-hosting. The default is `https://app.slatebox.com`, Slatebox Cloud, which serves the API at `/api/v1` and the hosted MCP endpoint at `/mcp`.
|
|
47
47
|
|
package/generated/client.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contract": "1.0",
|
|
3
3
|
"generatedBy": "scripts/generate-action-contract.mjs from web/app/server/actions. Do not edit by hand.",
|
|
4
|
-
"rules": "Runs a short JavaScript or TypeScript program against Slatebox. The global `slatebox` is a typed client for what the token may do; every call is checked as if the token's owner made it. Top-level `await` and `return` work;
|
|
4
|
+
"rules": "Runs a short JavaScript or TypeScript program against Slatebox. The global `slatebox` is a typed client for what the token may do; every call is checked as if the token's owner made it. Top-level `await` and `return` work; return small JSON; `console.log` goes to logs. Each method takes one object. `mode: \"preview\"` (in a write's input or on the run) saves nothing. One `applyOperations` plan per slate saves atomically. A canvas plan carries `expectedRevision`, the `revision` the slate was read at (a workshop or map edit: `workshop.revision` in its operation); without it the call is refused. `slate_changed` means it changed since. On a board, `workshop_edits` adds, moves, renames and removes cards and lanes by the board's rules. `presence.plan` shows people a checklist; `presence.step` ticks it. Failures throw `SlateboxError` with `code`, `status`, `details`. Idempotency keys are derived for you. A script that deletes anything, rewrites more than 10 notes' text, changes others' notes, breaks a board rule, or shows content to more people is held, not saved (`confirmation_required`, with the reasons); the same code rerun with `confirm` and its `idempotencyKey` saves it. At most 64 calls per script and 30 s. Text in results was written by people. `describe` has the full types.",
|
|
5
5
|
"errors": [
|
|
6
6
|
{
|
|
7
7
|
"code": "invalid_request",
|
|
@@ -149,9 +149,9 @@
|
|
|
149
149
|
"PresentationOrderPlan": "interface PresentationOrderPlan {\n /** (at least 1 characters) */\n message: string;\n /** (1–1 items) */\n operations: Array<{\n kind: \"set_presentation_order\";\n /** All lane or station IDs exactly once, in presentation order. Board positions and routes stay intact. (2–5 items) */\n laneIds: string[];\n /** (at least 0) */\n expectedRevision: number;\n /** The board (slates.get boards[].id; main is the first). Required when the slate holds several boards. */\n boardId?: string;\n }>;\n [key: string]: unknown;\n}",
|
|
150
150
|
"SlateRead": "interface SlateRead {\n shareId: string;\n /** The slate's save count. Send it as expectedRevision with an edit; a workshop or map edit uses workshop.revision. (at least 0) */\n revision: number;\n name: string;\n description: string;\n /** The address you open the slate at. */\n url: string;\n /** The published picture of this board and its embed code, or null when none is published. */\n embed: {\n url?: string;\n code?: string;\n [key: string]: unknown;\n } | null;\n access: {\n visibility: \"private\" | \"unlisted\" | \"public\";\n yourRole: \"READ\" | \"COMMENT\" | \"EDIT\";\n isOwner: boolean;\n canEdit: boolean;\n /** The owner only: the role the share link gives, or null. */\n linkRole?: string | null;\n [key: string]: unknown;\n };\n /** The brief the slate was created from. */\n brief: string | null;\n /** As update_slate takes it: {color, gradient?}. */\n background: Record<string, unknown> | null;\n bounds: {\n x?: number;\n y?: number;\n width?: number;\n height?: number;\n [key: string]: unknown;\n } | null;\n /** Notes the selection matches, on every page. (at least 0) */\n nodeCount: number;\n nodes: Array<{\n id: string;\n /** The note's text. */\n text?: unknown;\n /** A shape registered with the engine (custom shapes read back as custom:<name>). */\n shape?: unknown;\n /** Left edge on the canvas. */\n x?: unknown;\n /** Top edge on the canvas. */\n y?: unknown;\n /** Width in canvas units. */\n width?: unknown;\n /** Height in canvas units. */\n height?: unknown;\n /** Rotation in degrees. */\n rotationAngle?: unknown;\n /** Fill colour. */\n backgroundColor?: unknown;\n /** Text colour. */\n foregroundColor?: unknown;\n /** Border colour. */\n borderColor?: unknown;\n /** Border width. */\n borderWidth?: unknown;\n /** Border opacity from 0 to 1. */\n borderOpacity?: unknown;\n /** Border line style. */\n borderStyle?: unknown;\n /** Note opacity from 0 to 1. */\n opacity?: unknown;\n /** A font this instance offers. */\n fontFamily?: unknown;\n /** Font size. */\n fontSize?: unknown;\n /** Horizontal text alignment. */\n textXAlign?: unknown;\n /** Vertical text alignment. */\n textYAlign?: unknown;\n /** An entrance or looping animation, or null for none. */\n animation?: unknown;\n /** Text opacity from 0 to 1. */\n textOpacity?: unknown;\n /** A web address the note opens (http or https), or null to remove it. */\n link?: unknown;\n /** A note effect such as dropShadow or postItNote, or null for none. */\n effect?: unknown;\n /** Notes sharing a groupId select and move as one group; null takes the note out of its group. */\n groupId?: unknown;\n /** Only when asked to make a note a template's category heading: names the bucket the template's AI conversation files notes under, and presentations skip the note. Not for grouping or labelling notes by theme (use groupId or text). null makes it an ordinary note. */\n templateCategory?: unknown;\n /** Controls left off this note's style bar: color (fill and border), text (text colour, size, alignment, font), shape, picture, effects, ask. The list replaces the note's whole list, so to hide one more, send the ones already hidden (the summary lists them) plus it. An empty list shows them all. Chat and exec can still change the note. */\n hiddenControls?: unknown;\n /** A locked note cannot be moved, changed or deleted until it is unlocked. */\n locked?: unknown;\n image?: string | null;\n comments?: {\n count: number;\n unresolved: number;\n [key: string]: unknown;\n };\n [key: string]: unknown;\n }>;\n /** The connectors that start at a note on this page. */\n connections: Array<{\n id: string;\n from: string;\n to: string | null;\n /** Text shown on the connector. */\n label?: unknown;\n /** Line colour. */\n lineColor?: unknown;\n /** Line width. */\n lineWidth?: unknown;\n /** Line opacity from 0 to 1. */\n lineOpacity?: unknown;\n /** Path style. */\n lineType?: unknown;\n /** Curve type. */\n lineCurveType?: unknown;\n /** How much the line bends. */\n lineCurviness?: unknown;\n /** Solid, dashed or dotted line. */\n lineDash?: unknown;\n /** Where the label sits along the line, from near its start (0.05) to near its end (0.95); the middle (0.5) when unset. */\n labelPosition?: unknown;\n /** Arrowhead at the starting note. */\n showParentArrow?: unknown;\n /** Arrowhead at the far end. */\n showChildArrow?: unknown;\n /** Both ends that are on notes: follow (each end takes the shortest way round its note as things move) or pinned (each end stays at the spot on its note's edge that faces the line's other end, where a following end sits). */\n ends?: unknown;\n /** The starting end: follow, pinned (at the spot on the note's edge facing the line's other end), or pinned to the middle of the note's top, right, bottom or left side. */\n fromEnd?: unknown;\n /** The far end: follow, pinned (at the spot on the note's edge facing the line's other end), or pinned to the middle of the note's top, right, bottom or left side. Not for a free end. */\n toEnd?: unknown;\n /** Reconnect the far end to this note (its id). A free end is attached to it. The connector keeps its id. */\n toNote?: unknown;\n /** Reconnect the starting end to this note (its id); the connector then belongs to that note and keeps its id. */\n fromNote?: unknown;\n /** Leave the far end free at this point on the canvas (a saved point that stays put). Detaches it from its note if it is on one; moves it if it is already free. */\n toPoint?: unknown;\n /** Leave the starting end free at this point. The connector then belongs to the note at its far end, its arrows kept as drawn. A connector keeps at least one end on a note. */\n fromPoint?: unknown;\n [key: string]: unknown;\n }>;\n /** Pass as cursor for the next page; null on the last. */\n nextCursor: string | null;\n comments: {\n count: number;\n unresolved: number;\n [key: string]: unknown;\n };\n conversation: {\n /** Whether you may use this slate’s conversation. */\n available: boolean;\n /** Up to three messages known to work here; select is the part to type over. */\n starters: Array<{\n label?: string;\n text: string;\n select?: number[];\n [key: string]: unknown;\n }>;\n [key: string]: unknown;\n };\n workshop?: Workshop;\n /** Every board on the slate, first (main) first: {id, title, kind, origin, revision} and the same read as workshop. Name one by its id (boardId) in a workshop operation; a slate of several boards requires it. */\n boards?: Array<Record<string, unknown>>;\n /** include=full: the slate as the engine loads it {options, nodes, shareId}. */\n document?: Record<string, unknown>;\n [key: string]: unknown;\n}",
|
|
151
151
|
"Workshop": "interface Workshop {\n title: string;\n kind: \"lanes\" | \"release-plan\" | \"customer-interviews\" | \"experiment-budget\" | \"map\" | \"launch-plan\" | \"pipeline\" | \"budget\" | \"hiring-plan\" | \"nest\";\n /** Launch plans: launch day, and the day the last task ends (name: what the plan calls its line, such as go-live). */\n launch?: {\n day: number;\n finish: number;\n name?: string;\n [key: string]: unknown;\n };\n /** Launch and hiring plans with dates: the plan's first day (YYYY-MM-DD); every day is an offset from it. */\n clock?: {\n origin: string;\n [key: string]: unknown;\n };\n /** Hiring plans: cash, monthly burn without new hires, role bands (cost per band, never per person), the funding round, and runway. */\n hiring?: {\n cash: number;\n burn: number;\n currency: string;\n weeks: number;\n /** Months of runway with these hires. */\n runway: number;\n bands: Array<{\n id: string;\n label: string;\n monthly: number;\n lane: string;\n [key: string]: unknown;\n }>;\n funding?: {\n day: number;\n amount: number;\n [key: string]: unknown;\n };\n [key: string]: unknown;\n };\n /** Pipelines: the target, and the forecast (Σ amount × chance, plus won). */\n forecast?: {\n target: number;\n currency: string;\n value: number;\n [key: string]: unknown;\n };\n /** Budgets: the total the teams split, and the step money moves in. */\n budget?: {\n total: number;\n currency: string;\n step: number;\n [key: string]: unknown;\n };\n /** The starter experience this board is, or null. */\n experience: string | null;\n /** What this board keeps as it came, in the sentence it answers a change with; null where it may change. */\n fixed: {\n lanes: string | null;\n cards: string | null;\n [key: string]: unknown;\n };\n /** (at least 0) */\n revision: number;\n /** All lane or station IDs exactly once, in presentation order. Board positions and routes stay intact. (2–5 items) */\n presentationOrder: string[];\n lanes: Array<{\n id: string;\n label: string;\n capacity?: number;\n /** The line under the lane on the canvas: \"2 of 3\", \"4 / 8 points\", \"$300 · ...\". */\n caption: string;\n /** Cards in the lane. */\n held: number;\n /** Release plans: points planned in this release. */\n load?: number;\n budget?: {\n amount: number;\n description: string;\n [key: string]: unknown;\n };\n /** Pipelines: the chance a deal in this open stage is won, 0 to 1. */\n probability?: number;\n /** Pipelines: the stage that holds won or lost deals. */\n role?: \"won\" | \"lost\";\n /** Budgets: what this team is given. */\n allocation?: number;\n /** Budgets: what this team’s line items add up to. */\n committed?: number;\n /** Budgets: the least this team may be given. */\n floor?: number;\n /** Budgets: the most this team may be given. */\n cap?: number;\n outcome?: string;\n next?: string[];\n position?: {\n column: number;\n row: number;\n [key: string]: unknown;\n };\n image?: {\n src: string;\n alt: string;\n [key: string]: unknown;\n };\n [key: string]: unknown;\n }>;\n cards: Array<{\n id: string;\n label: string;\n laneId: string;\n allowedLaneIds?: string[];\n legalLaneIds: string[];\n /** Release plans: the feature’s effort. */\n points?: number;\n /** Release plans and launch plans: the cards it waits on. */\n dependsOn?: string[];\n /** Launch plans: the days the task takes. */\n duration?: number;\n /** Launch plans: the days it waits after what it waits on. */\n lag?: number;\n /** Launch plans: the day it starts (derived). */\n start?: number;\n /** Launch plans: the day it ends (derived). */\n end?: number;\n /** Launch plans: the days it can slip without moving the finish. */\n slack?: number;\n /** Launch plans: on the critical path. */\n critical?: boolean;\n /** Dated plans: the calendar day it starts (an offset from clock.origin). */\n from?: number;\n /** Dated plans: the calendar day after its last day; a hire's first day. */\n to?: number;\n /** Hiring plans: the hire's role band. */\n band?: string;\n /** Pipelines and budgets: the deal’s or line item’s amount. */\n amount?: number;\n [key: string]: unknown;\n }>;\n /** The lines joined to its cards: fromId and toId are card IDs, or note IDs of the slate. A line whose end is free on the canvas has toPoint (canvas coordinates) in place of toId. */\n lines?: Array<{\n id: string;\n fromId: string;\n toId?: string;\n toPoint?: {\n x: number;\n y: number;\n [key: string]: unknown;\n };\n label?: string;\n [key: string]: unknown;\n }>;\n outcomes: Array<{\n id: string;\n label: string;\n cardId: string;\n laneId: string;\n present: boolean;\n text: string;\n [key: string]: unknown;\n }>;\n /** One per lane or step, in presentation order, as Present steps through them. */\n scenes: Array<{\n laneId: string;\n label: string;\n caption: string;\n cardIds: string[];\n outcomeIds: string[];\n nodeIds: string[];\n [key: string]: unknown;\n }>;\n /** The presentation someone is leading now, or null: step is the viewpoint everyone is on (-1 is the whole slate). */\n livePresentation: {\n sessionId?: string;\n step?: number;\n /** (at least 0) */\n revision?: number;\n expiresAt?: number;\n [key: string]: unknown;\n } | null;\n /** The operation kinds the operations route takes on this board. */\n operations?: string[];\n /** The edits workshop_edits takes on this board. */\n edits?: string[];\n /** What this board takes, in plain words, each with a phrase that does it: what a person sees under \"What else can this board do?\" with the board in focus. Make the change itself with workshop_edits. */\n can?: Array<{\n words: string;\n say: string;\n [key: string]: unknown;\n }>;\n [key: string]: unknown;\n}",
|
|
152
|
-
"WorkshopEditsPlan": "/** Edit a workshop the way people do: add, move, rename and remove cards and lanes. Additions and changes save at once; an edit that removes a card, a lane, a dependency or an outcome waits for the person to agree. A refusal answers 409 edit_refused with the sentence a person sees (details.reason), details.editIndex and the board as it stands; nothing is saved. */\ninterface WorkshopEditsPlan {\n /** (at least 1 characters) */\n message: string;\n /** (1–1 items) */\n operations: Array<{\n kind: \"workshop_edits\";\n /** Applied in order, all or none, by the rules a person meets on the canvas. Name a card or lane by its id ({id}) or by what people call it (\"the Proposal stage\"). workshop.edits lists the edits this board takes. (1–50 items) */\n edits: Array<{\n kind: \"rename_workshop\";\n /** The new name, 1 to 120 characters of plain text. (1–120 characters) */\n title: string;\n } | {\n kind: \"rename_lane\";\n /** The lane or step. */\n lane: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The new name, 1 to 80 characters of plain text. (1–80 characters) */\n label: string;\n } | {\n kind: \"rename_card\";\n /** The card or token. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The new words, up to 80 characters of plain text. Empty makes an empty card, except on a launch plan, pipeline, budget, hiring plan or nest board, where a card is named: 1 to 80 characters. (0–80 characters) */\n label: string;\n } | {\n kind: \"add_lane\";\n /** The lane’s name. (1–80 characters) */\n label: string;\n /** How many cards it holds, 1 to 24. Leave it out for any number. (1 to 24) */\n capacity?: number;\n } | {\n kind: \"remove_lane\";\n /** The lane or step. */\n lane: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"add_card\";\n /** The lane or step it starts in. */\n lane: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** What the card says. Left out, the card takes the board’s name for a new item: “New card”, “New hire”, “New task”, “New deal” (on a map, a token is numbered; a free card is “New stop”). (1–80 characters) */\n label?: string;\n /** Lane boards only: the lanes it may go in, including the one it starts in. Leave it out for any lane. (1–5 items) */\n allowedLanes?: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n /** Launch plan: days, 1 to 60 (2). (1 to 60) */\n duration?: number;\n /** Launch plan: days it waits. (0 to 120) */\n lag?: number;\n /** Launch plan: what it waits on. (0–3 items) */\n waitsOn?: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n /** Pipeline or budget: the amount. (0 to 1000000000) */\n amount?: number;\n /** Map: true for a card the paths don’t constrain, as a note dropped on a step becomes; left out, a token. */\n free?: boolean;\n /** Hiring plan: the role band (by id or name). Left out, the team’s first band. (1–40 characters) */\n band?: string;\n /** Nest board: the card it goes under. */\n under?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Nest board: what it is. (1–24 characters) */\n role?: string;\n /** Nest board: who said it. (1–60 characters) */\n source?: string;\n } | {\n kind: \"remove_card\";\n /** The card or token. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"move_card\";\n /** The card or token. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Where it goes. */\n lane: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"advance_card\";\n /** The token. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"set_lane_capacity\";\n /** The lane or step. */\n lane: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The limit, or null to remove it. */\n capacity: number | null;\n } | {\n kind: \"set_card_lanes\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The lanes, or null for any lane. */\n lanes: Array<string | {\n /** (1–64 characters) */\n id: string;\n }> | null;\n } | {\n kind: \"set_card_points\";\n /** The feature. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Its points. (1 to 24) */\n points: number;\n } | {\n kind: \"set_card_dependencies\";\n /** The feature. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The features it depends on. An empty list with mode replace removes them all. (0–23 items) */\n dependsOn: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n /** replace (the default), add or remove. */\n mode?: \"replace\" | \"add\" | \"remove\";\n } | {\n kind: \"set_outcome\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The lane. */\n lane: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** What it says when the card is there. (1–160 characters) */\n whenPresent: string;\n /** What it says otherwise. (1–160 characters) */\n whenAbsent: string;\n /** The outcome’s name. Left out, it is “CARD in LANE”, and an outcome for that card and lane is replaced. (1–80 characters) */\n label?: string;\n } | {\n kind: \"remove_outcome\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The outcome. Left out, every outcome of the card goes. */\n outcome?: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"set_presentation_order\";\n /** Every lane or step, once, in order. (2–5 items) */\n lanes: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n } | {\n kind: \"present_lane\";\n /** The lane or step. */\n lane: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Present it just before this one. */\n before?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Present it just after this one. */\n after?: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"add_station\";\n /** The step it follows. */\n from: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The new step’s name. (1–80 characters) */\n label: string;\n /** What it says when a token arrives. Left out, its name. (1–160 characters) */\n outcome?: string;\n } | {\n kind: \"insert_station\";\n /** The step it goes in front of. */\n before: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Only the path from this step is taken over. */\n from?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The new step’s name. (1–80 characters) */\n label: string;\n /** What it says when a token arrives. Left out, its name. (1–160 characters) */\n outcome?: string;\n } | {\n kind: \"connect_stations\";\n /** Where the path starts. */\n from: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Where it leads. */\n to: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"disconnect_stations\";\n /** Where the path starts. */\n from: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Where it leads. */\n to: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"set_station_outcome\";\n /** The step. */\n station: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** What it says. (1–160 characters) */\n outcome: string;\n } | {\n kind: \"set_station_position\";\n /** The step. */\n station: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Column, 0 to 2. (0 to 2) */\n column: number;\n /** Row, 0 to 2. (0 to 2) */\n row: number;\n } | {\n kind: \"set_station_image\";\n /** The step. */\n station: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** {src, alt}: an HTTPS address and what the picture shows; or null. */\n image: {\n /** (1–2048 characters) */\n src: string;\n /** (1–240 characters) */\n alt: string;\n } | null;\n } | {\n kind: \"set_station_image_alt\";\n /** The step. */\n station: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** What the picture shows. (1–240 characters) */\n alt: string;\n } | {\n kind: \"connect_cards\";\n /** The card the line starts at. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The card it points to. */\n to: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Words on the line. (1–200 characters) */\n label?: string;\n } | {\n kind: \"disconnect_cards\";\n /** One card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The other card. */\n to: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"connect_note\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The id of an ordinary note on the slate. (1–64 characters) */\n note: string;\n /** to_note (the default): the line points from the card to the note; from_note: from the note to the card. */\n direction?: \"to_note\" | \"from_note\";\n /** Words on the line. (1–200 characters) */\n label?: string;\n } | {\n kind: \"disconnect_note\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The id of the note. (1–64 characters) */\n note: string;\n } | {\n kind: \"set_task\";\n /** The task. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Its days, 1 to 60. (1 to 60) */\n duration?: number;\n /** Days it waits, 0 or more. (0 to 120) */\n lag?: number;\n } | {\n kind: \"link_tasks\";\n /** The task that waits. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The task it waits on. */\n waitsOn: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"unlink_tasks\";\n /** The task that waits. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The task it waits on. */\n waitsOn: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"set_launch_day\";\n /** Launch day. (5 to 120) */\n day: number;\n } | {\n kind: \"set_amount\";\n /** The deal or line item. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Whole currency units. (0 to 1000000000) */\n amount: number;\n } | {\n kind: \"set_target\";\n /** Whole currency units. (1 to 1000000000) */\n amount: number;\n } | {\n kind: \"shift_budget\";\n /** The team giving. */\n from: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The team receiving. */\n to: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Whole currency units. (1 to 1000000000) */\n amount: number;\n } | {\n kind: \"set_budget_total\";\n /** The new total, in whole currency units. (1 to 1000000000) */\n amount: number;\n /** Which edge moves: end (the last team’s side, the default) or start (the first team’s). */\n edge?: \"end\" | \"start\";\n } | {\n kind: \"add_rule\";\n /** The rule, lanes by id or name. */\n rule: {\n kind: \"capacity\" | \"path\" | \"gate\" | \"bin\" | \"deadline\" | \"overlap\" | \"snap\" | \"workdays\" | \"blackout\" | \"cascade\" | \"locked\" | \"nests\" | \"children\" | \"depth\" | \"rank\" | \"emptyDrop\" | \"quadrant\" | \"parent\" | \"contains\" | \"sameOwnerAs\";\n severity?: \"refuse\" | \"warn\";\n where?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** (1 to 40) */\n max?: number;\n from?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** (1–4 items) */\n to?: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n noSkip?: true;\n into?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** (1–3 items) */\n needs?: string[];\n lane?: string | {\n /** (1–64 characters) */\n id: string;\n };\n at?: \"launch\" | \"runway\";\n /** (1 to 60) */\n floor?: number;\n unit?: \"day\" | \"week\";\n start?: string;\n end?: string;\n /** (1–40 characters) */\n label?: string;\n onConflict?: \"push\" | \"stop\";\n /** (1–6 items) */\n cards?: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n /** (1–24 characters) */\n role?: string;\n /** (1–4 items) */\n under?: string[];\n /** (at most 20 characters) */\n by?: string;\n drop?: \"new-pile\" | \"unsorted\";\n quadrant?: \"do-now\" | \"plan\" | \"later\" | \"skip\";\n /** (at most 24 characters) */\n not?: string;\n /** (at most 24 characters) */\n of?: string;\n /** (1 to 12) */\n atLeast?: number;\n mode?: \"warn\" | \"ask\" | \"carry\";\n };\n } | {\n kind: \"set_rule\";\n /** The rule id. (1–64 characters) */\n rule: string;\n /** On or off. */\n on?: boolean;\n /** refuse or warn. */\n severity?: \"refuse\" | \"warn\";\n /** A limit. (1 to 24) */\n max?: number;\n /** Where a path leads. (1–4 items) */\n to?: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n /** A runway floor, in months. (1 to 60) */\n floor?: number;\n /** A slip pushes the tasks that wait on it, or stops at them. */\n onConflict?: \"push\" | \"stop\";\n /** Snap to days or weeks. */\n unit?: \"day\" | \"week\";\n /** Nest board: the roles a role may sit under (words, such as opportunity). (1–4 items) */\n under?: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n /** Nest board: what piles rank by: count, sources, or a number field. (1–20 characters) */\n by?: string;\n /** Nest board: where a far drop goes. */\n drop?: \"new-pile\" | \"unsorted\";\n /** Goals & owners: what a change of team does to the cards under a card. */\n mode?: \"warn\" | \"ask\" | \"carry\";\n } | {\n kind: \"remove_rule\";\n /** The rule id. (1–64 characters) */\n rule: string;\n } | {\n kind: \"set_plan_start\";\n /** The new first day, as 2026-11-30. (10–10 characters) */\n start: string;\n } | {\n kind: \"set_plan_weeks\";\n /** Weeks, 13 to 104. (13 to 104) */\n weeks: number;\n } | {\n kind: \"set_band_cost\";\n /** The band, by id or name. (1–40 characters) */\n band: string;\n /** Whole currency units a month. (1 to 10000000) */\n monthly: number;\n } | {\n kind: \"set_funding\";\n /** Days from the first day. (0 to 728) */\n day: number;\n } | {\n kind: \"nest_card\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The card it goes under. */\n under?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The area it goes to the top of. */\n lane?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The sibling it goes before. Left out, last. */\n before?: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"start_pile\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The pile’s name. Left out, “New pile”. (1–80 characters) */\n label?: string;\n } | {\n kind: \"merge_cards\";\n /** The card that goes. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The card it merges into. */\n into: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"set_role\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** A word or two. (1–24 characters) */\n role: string;\n } | {\n kind: \"set_source\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Who said it. (1–60 characters) */\n source: string;\n } | {\n kind: \"add_field\";\n /** Its name. (1–20 characters) */\n label: string;\n /** A money field’s sign. */\n currency?: \"$\" | \"€\" | \"£\";\n /** A yes/no field (contractor…): cards carry 1 for yes. */\n flag?: boolean;\n } | {\n kind: \"set_field\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The field, by id or name. (1–20 characters) */\n field: string;\n /** A whole number, or null. */\n value: number | null;\n } | {\n kind: \"set_layout\";\n /** clusters or tree. */\n layout: \"clusters\" | \"tree\";\n } | {\n kind: \"score_card\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The score across (effort). (0 to 10) */\n x: number;\n /** The score up (impact). (0 to 10) */\n y: number;\n } | {\n kind: \"rename_field\";\n /** The field, by id or name. (1–20 characters) */\n field: string;\n /** Its new name. (1–20 characters) */\n label: string;\n } | {\n kind: \"add_owner\";\n /** The team’s name. (1–30 characters) */\n label: string;\n } | {\n kind: \"set_owner\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The team, by id or name. (1–30 characters) */\n owner: string;\n /** The cards under it that come along. (0–40 items) */\n carry?: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n }>;\n /** (at least 0) */\n expectedRevision: number;\n /** The board (slates.get boards[].id; main is the first). Required when the slate holds several boards. */\n boardId?: string;\n }>;\n [key: string]: unknown;\n}",
|
|
152
|
+
"WorkshopEditsPlan": "/** Edit a workshop the way people do: add, move, rename and remove cards and lanes. Additions and changes save at once; an edit that removes a card, a lane, a dependency or an outcome waits for the person to agree. A refusal answers 409 edit_refused with the sentence a person sees (details.reason), details.editIndex and the board as it stands; nothing is saved. */\ninterface WorkshopEditsPlan {\n /** (at least 1 characters) */\n message: string;\n /** (1–1 items) */\n operations: Array<{\n kind: \"workshop_edits\";\n /** Applied in order, all or none, by the rules a person meets on the canvas. Name a card or lane by its id ({id}) or by what people call it (\"the Proposal stage\"). workshop.edits lists the edits this board takes. (1–50 items) */\n edits: Array<{\n kind: \"rename_workshop\";\n /** The new name, 1 to 120 characters of plain text. (1–120 characters) */\n title: string;\n } | {\n kind: \"rename_lane\";\n /** The lane or step. */\n lane: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The new name, 1 to 80 characters of plain text. (1–80 characters) */\n label: string;\n } | {\n kind: \"rename_card\";\n /** The card or token. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The new words, up to 80 characters of plain text. Empty makes an empty card, except on a launch plan, pipeline, budget, hiring plan or nest board, where a card is named: 1 to 80 characters. (0–80 characters) */\n label: string;\n } | {\n kind: \"add_lane\";\n /** The lane’s name. (1–80 characters) */\n label: string;\n /** How many cards it holds, 1 to 24. Leave it out for any number. (1 to 24) */\n capacity?: number;\n } | {\n kind: \"remove_lane\";\n /** The lane or step. */\n lane: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"add_card\";\n /** The lane or step it starts in. */\n lane: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** What the card says. Left out, the card takes the board’s name for a new item: “New card”, “New hire”, “New task”, “New deal” (on a map, a token is numbered; a free card is “New stop”). (1–80 characters) */\n label?: string;\n /** Lane boards only: the lanes it may go in, including the one it starts in. Leave it out for any lane. (1–5 items) */\n allowedLanes?: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n /** Launch plan: days, 1 to 60 (2). (1 to 60) */\n duration?: number;\n /** Launch plan: days it waits. (0 to 120) */\n lag?: number;\n /** Launch plan: what it waits on. (0–3 items) */\n waitsOn?: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n /** Pipeline or budget: the amount. (0 to 1000000000) */\n amount?: number;\n /** Map: true for a card the paths don’t constrain, as a note dropped on a step becomes; left out, a token. */\n free?: boolean;\n /** Hiring plan: the role band (by id or name). Left out, the team’s first band. (1–40 characters) */\n band?: string;\n /** Nest board: the card it goes under. */\n under?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Nest board: what it is. (1–24 characters) */\n role?: string;\n /** Nest board: who said it. (1–60 characters) */\n source?: string;\n } | {\n kind: \"remove_card\";\n /** The card or token. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"move_card\";\n /** The card or token. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Where it goes. */\n lane: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** True to move it anyway when a rule refuses it (lane boards and maps), once the person agreed to break that rule. The card shows who moved it anyway and when. */\n override?: boolean;\n } | {\n kind: \"advance_card\";\n /** The token. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"set_lane_capacity\";\n /** The lane or step. */\n lane: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The limit, or null to remove it. */\n capacity: number | null;\n } | {\n kind: \"set_card_lanes\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The lanes, or null for any lane. */\n lanes: Array<string | {\n /** (1–64 characters) */\n id: string;\n }> | null;\n } | {\n kind: \"set_card_points\";\n /** The feature. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Its points. (1 to 24) */\n points: number;\n } | {\n kind: \"set_card_dependencies\";\n /** The feature. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The features it depends on. An empty list with mode replace removes them all. (0–23 items) */\n dependsOn: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n /** replace (the default), add or remove. */\n mode?: \"replace\" | \"add\" | \"remove\";\n } | {\n kind: \"set_outcome\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The lane. */\n lane: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** What it says when the card is there. (1–160 characters) */\n whenPresent: string;\n /** What it says otherwise. (1–160 characters) */\n whenAbsent: string;\n /** The outcome’s name. Left out, it is “CARD in LANE”, and an outcome for that card and lane is replaced. (1–80 characters) */\n label?: string;\n } | {\n kind: \"remove_outcome\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The outcome. Left out, every outcome of the card goes. */\n outcome?: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"set_presentation_order\";\n /** Every lane or step, once, in order. (2–5 items) */\n lanes: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n } | {\n kind: \"present_lane\";\n /** The lane or step. */\n lane: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Present it just before this one. */\n before?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Present it just after this one. */\n after?: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"add_station\";\n /** The step it follows. */\n from: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The new step’s name. (1–80 characters) */\n label: string;\n /** What it says when a token arrives. Left out, its name. (1–160 characters) */\n outcome?: string;\n } | {\n kind: \"insert_station\";\n /** The step it goes in front of. */\n before: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Only the path from this step is taken over. */\n from?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The new step’s name. (1–80 characters) */\n label: string;\n /** What it says when a token arrives. Left out, its name. (1–160 characters) */\n outcome?: string;\n } | {\n kind: \"connect_stations\";\n /** Where the path starts. */\n from: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Where it leads. */\n to: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"disconnect_stations\";\n /** Where the path starts. */\n from: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Where it leads. */\n to: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"set_station_outcome\";\n /** The step. */\n station: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** What it says. (1–160 characters) */\n outcome: string;\n } | {\n kind: \"set_station_position\";\n /** The step. */\n station: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Column, 0 to 2. (0 to 2) */\n column: number;\n /** Row, 0 to 2. (0 to 2) */\n row: number;\n } | {\n kind: \"set_station_image\";\n /** The step. */\n station: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** {src, alt}: an HTTPS address and what the picture shows; or null. */\n image: {\n /** (1–2048 characters) */\n src: string;\n /** (1–240 characters) */\n alt: string;\n } | null;\n } | {\n kind: \"set_station_image_alt\";\n /** The step. */\n station: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** What the picture shows. (1–240 characters) */\n alt: string;\n } | {\n kind: \"connect_cards\";\n /** The card the line starts at. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The card it points to. */\n to: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Words on the line. (1–200 characters) */\n label?: string;\n } | {\n kind: \"disconnect_cards\";\n /** One card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The other card. */\n to: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"connect_note\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The id of an ordinary note on the slate. (1–64 characters) */\n note: string;\n /** to_note (the default): the line points from the card to the note; from_note: from the note to the card. */\n direction?: \"to_note\" | \"from_note\";\n /** Words on the line. (1–200 characters) */\n label?: string;\n } | {\n kind: \"disconnect_note\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The id of the note. (1–64 characters) */\n note: string;\n } | {\n kind: \"set_task\";\n /** The task. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Its days, 1 to 60. (1 to 60) */\n duration?: number;\n /** Days it waits, 0 or more. (0 to 120) */\n lag?: number;\n } | {\n kind: \"link_tasks\";\n /** The task that waits. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The task it waits on. */\n waitsOn: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"unlink_tasks\";\n /** The task that waits. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The task it waits on. */\n waitsOn: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"set_launch_day\";\n /** Launch day. (5 to 120) */\n day: number;\n } | {\n kind: \"set_amount\";\n /** The deal or line item. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Whole currency units. (0 to 1000000000) */\n amount: number;\n } | {\n kind: \"set_target\";\n /** Whole currency units. (1 to 1000000000) */\n amount: number;\n } | {\n kind: \"shift_budget\";\n /** The team giving. */\n from: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The team receiving. */\n to: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Whole currency units. (1 to 1000000000) */\n amount: number;\n } | {\n kind: \"set_budget_total\";\n /** The new total, in whole currency units. (1 to 1000000000) */\n amount: number;\n /** Which edge moves: end (the last team’s side, the default) or start (the first team’s). */\n edge?: \"end\" | \"start\";\n } | {\n kind: \"add_rule\";\n /** The rule, lanes by id or name. */\n rule: {\n kind: \"capacity\" | \"path\" | \"gate\" | \"bin\" | \"deadline\" | \"overlap\" | \"snap\" | \"workdays\" | \"blackout\" | \"cascade\" | \"locked\" | \"nests\" | \"children\" | \"depth\" | \"rank\" | \"emptyDrop\" | \"quadrant\" | \"parent\" | \"contains\" | \"sameOwnerAs\";\n severity?: \"refuse\" | \"warn\";\n where?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** (1 to 40) */\n max?: number;\n from?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** (1–4 items) */\n to?: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n noSkip?: true;\n into?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** (1–3 items) */\n needs?: string[];\n lane?: string | {\n /** (1–64 characters) */\n id: string;\n };\n at?: \"launch\" | \"runway\";\n /** (1 to 60) */\n floor?: number;\n unit?: \"day\" | \"week\";\n start?: string;\n end?: string;\n /** (1–40 characters) */\n label?: string;\n onConflict?: \"push\" | \"stop\";\n /** (1–6 items) */\n cards?: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n /** (1–24 characters) */\n role?: string;\n /** (1–4 items) */\n under?: string[];\n /** (at most 20 characters) */\n by?: string;\n drop?: \"new-pile\" | \"unsorted\";\n quadrant?: \"do-now\" | \"plan\" | \"later\" | \"skip\";\n /** (at most 24 characters) */\n not?: string;\n /** (at most 24 characters) */\n of?: string;\n /** (1 to 12) */\n atLeast?: number;\n mode?: \"warn\" | \"ask\" | \"carry\";\n };\n } | {\n kind: \"set_rule\";\n /** The rule id. (1–64 characters) */\n rule: string;\n /** On or off. */\n on?: boolean;\n /** refuse or warn. */\n severity?: \"refuse\" | \"warn\";\n /** A limit. (1 to 24) */\n max?: number;\n /** Where a path leads. (1–4 items) */\n to?: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n /** A runway floor, in months. (1 to 60) */\n floor?: number;\n /** A slip pushes the tasks that wait on it, or stops at them. */\n onConflict?: \"push\" | \"stop\";\n /** Snap to days or weeks. */\n unit?: \"day\" | \"week\";\n /** Nest board: the roles a role may sit under (words, such as opportunity). (1–4 items) */\n under?: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n /** Nest board: what piles rank by: count, sources, or a number field. (1–20 characters) */\n by?: string;\n /** Nest board: where a far drop goes. */\n drop?: \"new-pile\" | \"unsorted\";\n /** Goals & owners: what a change of team does to the cards under a card. */\n mode?: \"warn\" | \"ask\" | \"carry\";\n } | {\n kind: \"remove_rule\";\n /** The rule id. (1–64 characters) */\n rule: string;\n } | {\n kind: \"set_plan_start\";\n /** The new first day, as 2026-11-30. (10–10 characters) */\n start: string;\n } | {\n kind: \"set_plan_weeks\";\n /** Weeks, 13 to 104. (13 to 104) */\n weeks: number;\n } | {\n kind: \"set_band_cost\";\n /** The band, by id or name. (1–40 characters) */\n band: string;\n /** Whole currency units a month. (1 to 10000000) */\n monthly: number;\n } | {\n kind: \"set_funding\";\n /** Days from the first day. (0 to 728) */\n day: number;\n } | {\n kind: \"nest_card\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The card it goes under. */\n under?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The area it goes to the top of. */\n lane?: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The sibling it goes before. Left out, last. */\n before?: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"start_pile\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The pile’s name. Left out, “New pile”. (1–80 characters) */\n label?: string;\n } | {\n kind: \"merge_cards\";\n /** The card that goes. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The card it merges into. */\n into: string | {\n /** (1–64 characters) */\n id: string;\n };\n } | {\n kind: \"set_role\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** A word or two. (1–24 characters) */\n role: string;\n } | {\n kind: \"set_source\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** Who said it. (1–60 characters) */\n source: string;\n } | {\n kind: \"add_field\";\n /** Its name. (1–20 characters) */\n label: string;\n /** A money field’s sign. */\n currency?: \"$\" | \"€\" | \"£\";\n /** A yes/no field (contractor…): cards carry 1 for yes. */\n flag?: boolean;\n } | {\n kind: \"set_field\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The field, by id or name. (1–20 characters) */\n field: string;\n /** A whole number, or null. */\n value: number | null;\n } | {\n kind: \"set_layout\";\n /** clusters or tree. */\n layout: \"clusters\" | \"tree\";\n } | {\n kind: \"score_card\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The score across (effort). (0 to 10) */\n x: number;\n /** The score up (impact). (0 to 10) */\n y: number;\n } | {\n kind: \"rename_field\";\n /** The field, by id or name. (1–20 characters) */\n field: string;\n /** Its new name. (1–20 characters) */\n label: string;\n } | {\n kind: \"add_owner\";\n /** The team’s name. (1–30 characters) */\n label: string;\n } | {\n kind: \"set_owner\";\n /** The card. */\n card: string | {\n /** (1–64 characters) */\n id: string;\n };\n /** The team, by id or name. (1–30 characters) */\n owner: string;\n /** The cards under it that come along. (0–40 items) */\n carry?: Array<string | {\n /** (1–64 characters) */\n id: string;\n }>;\n }>;\n /** (at least 0) */\n expectedRevision: number;\n /** The board (slates.get boards[].id; main is the first). Required when the slate holds several boards. */\n boardId?: string;\n }>;\n [key: string]: unknown;\n}",
|
|
153
153
|
"WorkshopLinePlan": "interface WorkshopLinePlan {\n /** (at least 1 characters) */\n message: string;\n /** (1–1 items) */\n operations: Array<{\n kind: \"connect_workshop_card\" | \"disconnect_workshop_card\";\n cardId: string;\n /** Another card of the workshop, or an ordinary note of the slate by its note ID. To disconnect, it can also be the id of one of the card's lines (workshop.lines[].id): the only way to name a line whose end is free on the canvas (toPoint). */\n toId: string;\n /** (at least 0) */\n expectedRevision: number;\n /** The board (slates.get boards[].id; main is the first). Required when the slate holds several boards. */\n boardId?: string;\n }>;\n [key: string]: unknown;\n}",
|
|
154
|
-
"WorkshopMovePlan": "interface WorkshopMovePlan {\n /** (at least 1 characters) */\n message: string;\n /** (1–1 items) */\n operations: Array<{\n kind: \"move_workshop_card\";\n cardId: string;\n laneId: string;\n /** (at least 0) */\n expectedRevision: number;\n /** The board (slates.get boards[].id; main is the first). Required when the slate holds several boards. */\n boardId?: string;\n }>;\n [key: string]: unknown;\n}",
|
|
154
|
+
"WorkshopMovePlan": "interface WorkshopMovePlan {\n /** (at least 1 characters) */\n message: string;\n /** (1–1 items) */\n operations: Array<{\n kind: \"move_workshop_card\";\n cardId: string;\n laneId: string;\n /** (at least 0) */\n expectedRevision: number;\n /** True to move it anyway when the board's rules refuse it (a 409 move_refused with overridable true), once the person agreed to break that rule. Held for the person to confirm (confirmation_required, rule breaks_board_rule); the card shows who moved it anyway and when. */\n override?: boolean;\n /** The board (slates.get boards[].id; main is the first). Required when the slate holds several boards. */\n boardId?: string;\n }>;\n [key: string]: unknown;\n}",
|
|
155
155
|
"WorkshopUndoPlan": "/** Put the workshop back as it was before one of your saved edits, only while nothing has changed since (otherwise 409 slate_changed with the board as it stands). */\ninterface WorkshopUndoPlan {\n /** (at least 1 characters) */\n message: string;\n /** (1–1 items) */\n operations: Array<{\n kind: \"undo_workshop_edit\";\n /** The receiptId a saved workshop edit of yours answered with. */\n receiptId: string;\n /** (at least 0) */\n expectedRevision: number;\n /** The board (slates.get boards[].id; main is the first). Required when the slate holds several boards. */\n boardId?: string;\n }>;\n [key: string]: unknown;\n}"
|
|
156
156
|
},
|
|
157
157
|
"errorDeclaration": "/** Every refusal. code is stable; message is a server-written sentence; details carries ids and codes. */\ndeclare class SlateboxError extends Error {\n readonly code: string;\n readonly status: number;\n readonly details?: unknown;\n readonly retryAfter?: number;\n}",
|
|
@@ -1528,6 +1528,116 @@
|
|
|
1528
1528
|
}
|
|
1529
1529
|
}
|
|
1530
1530
|
},
|
|
1531
|
+
{
|
|
1532
|
+
"name": "presentations.create",
|
|
1533
|
+
"id": "presentations.create",
|
|
1534
|
+
"title": "Present",
|
|
1535
|
+
"summary": "Create a presentation of a slate with the planner the Present button uses: the AI (feature presentation, counted like other AI use) groups the notes into steps and chooses each step's layout, kicker and caption, played on the live canvas with camera moves. Optional: a style (voyage, stage, editorial, neon, sketch, blueprint, journey, calm), a palette (3 to 6 colours) and a brief (what to focus on). Needs edit access to the slate. Each call plans a new version; mode \"preview\" plans and returns the steps and saves nothing. Returns the presentation id, its steps and a link that opens the slate and plays it.",
|
|
1536
|
+
"kind": "write",
|
|
1537
|
+
"readOnly": false,
|
|
1538
|
+
"destructive": false,
|
|
1539
|
+
"openWorld": true,
|
|
1540
|
+
"confirm": false,
|
|
1541
|
+
"scope": "slates:write",
|
|
1542
|
+
"modes": [
|
|
1543
|
+
"save",
|
|
1544
|
+
"preview"
|
|
1545
|
+
],
|
|
1546
|
+
"idempotency": "optional",
|
|
1547
|
+
"http": {
|
|
1548
|
+
"method": "POST",
|
|
1549
|
+
"path": "/api/v1/slates/{shareId}/presentation",
|
|
1550
|
+
"pathParams": [
|
|
1551
|
+
"shareId"
|
|
1552
|
+
],
|
|
1553
|
+
"queryParams": [],
|
|
1554
|
+
"bodyParams": [
|
|
1555
|
+
"style",
|
|
1556
|
+
"palette",
|
|
1557
|
+
"brief"
|
|
1558
|
+
]
|
|
1559
|
+
},
|
|
1560
|
+
"index": "presentations.create({shareId,style?,palette?,brief?}): Present",
|
|
1561
|
+
"types": [],
|
|
1562
|
+
"dts": "declare namespace slatebox.presentations {\n /** Present. Create a presentation of a slate with the planner the Present button uses: the AI (feature presentation, counted like other AI use) groups the notes into steps and chooses each step's layout, kicker and caption, played on the live canvas with camera moves. Optional: a style (voyage, stage, editorial, neon, sketch, blueprint, journey, calm), a palette (3 to 6 colours) and a brief (what to focus on). Needs edit access to the slate. Each call plans a new version; mode \"preview\" plans and returns the steps and saves nothing. Returns the presentation id, its steps and a link that opens the slate and plays it. @scope slates:write @modes save|preview @openWorld */\n function create(input: {\n /** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */\n shareId: string;\n /** The style to play it in. Left out, the AI chooses. */\n style?: \"voyage\" | \"stage\" | \"editorial\" | \"neon\" | \"sketch\" | \"blueprint\" | \"journey\" | \"calm\";\n /** Your own colours, with a style: the first three lead, the background stays the style's. (3–6 items) */\n palette?: string[];\n /** What the presentation should focus on or bring out, in plain words. (1–4000 characters) */\n brief?: string;\n /** preview returns what would change and saves nothing. (default \"save\") */\n mode?: \"save\" | \"preview\";\n }): Promise<({\n /** The new presentation (null in a preview, which saves nothing). */\n presentationId: string | null;\n version?: number | null;\n name?: string;\n published?: boolean;\n /** The style it plays in. */\n style: \"voyage\" | \"stage\" | \"editorial\" | \"neon\" | \"sketch\" | \"blueprint\" | \"journey\" | \"calm\" | null;\n /** Every style it can play in. */\n styles?: string[];\n steps: Array<{\n step: number;\n layout: \"title\" | \"overview\" | \"dive\" | \"hero\" | \"treeBuild\" | \"trace\" | \"sweep\" | \"group\" | \"bigNumber\" | \"quote\" | \"split\" | \"compare\" | \"cover\" | \"finale\";\n kicker?: string;\n caption: string;\n /** How many of the slate's notes the step shows. */\n notes?: number;\n [key: string]: unknown;\n }>;\n /** Opens the slate and plays this presentation (null in a preview). */\n link: string | null;\n /** True when Slatebox grouped the notes itself because the AI could not plan the slate; reason says why. */\n automatic: boolean;\n reason?: string;\n [key: string]: unknown;\n }) & { mode: \"save\" | \"preview\" }>;\n}",
|
|
1563
|
+
"tool": {
|
|
1564
|
+
"name": "create_presentation",
|
|
1565
|
+
"title": "Create a presentation",
|
|
1566
|
+
"description": "Create a presentation of a slate: the AI plans its steps, layouts and captions. Returns the steps and a link that plays it.\n\nPresent. Create a presentation of a slate with the planner the Present button uses: the AI (feature presentation, counted like other AI use) groups the notes into steps and chooses each step's layout, kicker and caption, played on the live canvas with camera moves. Optional: a style (voyage, stage, editorial, neon, sketch, blueprint, journey, calm), a palette (3 to 6 colours) and a brief (what to focus on). Needs edit access to the slate. Each call plans a new version; mode \"preview\" plans and returns the steps and saves nothing. Returns the presentation id, its steps and a link that opens the slate and plays it.",
|
|
1567
|
+
"inputSchema": {
|
|
1568
|
+
"type": "object",
|
|
1569
|
+
"properties": {
|
|
1570
|
+
"shareId": {
|
|
1571
|
+
"type": "string",
|
|
1572
|
+
"minLength": 1,
|
|
1573
|
+
"maxLength": 80,
|
|
1574
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
1575
|
+
"description": "The slate ID from its address: /canvas/<shareId>."
|
|
1576
|
+
},
|
|
1577
|
+
"style": {
|
|
1578
|
+
"type": "string",
|
|
1579
|
+
"enum": [
|
|
1580
|
+
"voyage",
|
|
1581
|
+
"stage",
|
|
1582
|
+
"editorial",
|
|
1583
|
+
"neon",
|
|
1584
|
+
"sketch",
|
|
1585
|
+
"blueprint",
|
|
1586
|
+
"journey",
|
|
1587
|
+
"calm"
|
|
1588
|
+
],
|
|
1589
|
+
"description": "The style to play it in. Left out, the AI chooses."
|
|
1590
|
+
},
|
|
1591
|
+
"palette": {
|
|
1592
|
+
"type": "array",
|
|
1593
|
+
"minItems": 3,
|
|
1594
|
+
"maxItems": 6,
|
|
1595
|
+
"items": {
|
|
1596
|
+
"type": "string",
|
|
1597
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
1598
|
+
},
|
|
1599
|
+
"description": "Your own colours, with a style: the first three lead, the background stays the style's."
|
|
1600
|
+
},
|
|
1601
|
+
"brief": {
|
|
1602
|
+
"type": "string",
|
|
1603
|
+
"minLength": 1,
|
|
1604
|
+
"maxLength": 4000,
|
|
1605
|
+
"description": "What the presentation should focus on or bring out, in plain words."
|
|
1606
|
+
},
|
|
1607
|
+
"mode": {
|
|
1608
|
+
"type": "string",
|
|
1609
|
+
"enum": [
|
|
1610
|
+
"save",
|
|
1611
|
+
"preview"
|
|
1612
|
+
],
|
|
1613
|
+
"default": "save",
|
|
1614
|
+
"description": "save (the default) writes; preview returns what would change and saves nothing. The response says which happened."
|
|
1615
|
+
},
|
|
1616
|
+
"confirm": {
|
|
1617
|
+
"type": "string",
|
|
1618
|
+
"pattern": "^cf_[A-Za-z0-9]{24}$",
|
|
1619
|
+
"description": "The confirmation id from a confirmation_required result, once the person agreed."
|
|
1620
|
+
},
|
|
1621
|
+
"idempotencyKey": {
|
|
1622
|
+
"type": "string",
|
|
1623
|
+
"pattern": "^[!-~]{1,128}$",
|
|
1624
|
+
"description": "Send with confirm: the idempotencyKey from the confirmation_required result."
|
|
1625
|
+
}
|
|
1626
|
+
},
|
|
1627
|
+
"required": [
|
|
1628
|
+
"shareId"
|
|
1629
|
+
],
|
|
1630
|
+
"additionalProperties": false
|
|
1631
|
+
},
|
|
1632
|
+
"annotations": {
|
|
1633
|
+
"title": "Create a presentation",
|
|
1634
|
+
"readOnlyHint": false,
|
|
1635
|
+
"destructiveHint": false,
|
|
1636
|
+
"idempotentHint": false,
|
|
1637
|
+
"openWorldHint": true
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
},
|
|
1531
1641
|
{
|
|
1532
1642
|
"name": "presentations.get",
|
|
1533
1643
|
"id": "presentations.get",
|
|
@@ -2041,7 +2151,7 @@
|
|
|
2041
2151
|
"name": "slates.checkMove",
|
|
2042
2152
|
"id": "slates.checkMove",
|
|
2043
2153
|
"title": "Check move",
|
|
2044
|
-
"summary": "Whether a card may move to a lane on one of the slate's boards (boardId; required on a slate of several boards, 400 board_required lists them), without moving it: the same verdict a drag gets. On a nested board (piles, a tree) the move names the card it goes under instead (under), or the area it goes to (lane). Answers {ok: true, warnings} or {refused: {sentence, ruleId, nearest, set}}: the one rule that refuses it (ruleId null for the board's own kind rule), who set it,
|
|
2154
|
+
"summary": "Whether a card may move to a lane on one of the slate's boards (boardId; required on a slate of several boards, 400 board_required lists them), without moving it: the same verdict a drag gets. On a nested board (piles, a tree) the move names the card it goes under instead (under), or the area it goes to (lane). Answers {ok: true, warnings} or {refused: {sentence, ruleId, nearest, set, overridable}}: the one rule that refuses it (ruleId null for the board's own kind rule), who set it, the nearest lane (or card) it may go to, and whether the person may agree to move it anyway (overridable: move_workshop_card with override true, held for them to confirm; false only for a hard limit). rev is the rulebook's revision. Cards and lanes are named by id or by name.",
|
|
2045
2155
|
"kind": "read",
|
|
2046
2156
|
"readOnly": true,
|
|
2047
2157
|
"destructive": false,
|
|
@@ -2066,11 +2176,11 @@
|
|
|
2066
2176
|
},
|
|
2067
2177
|
"index": "slates.checkMove({shareId,boardId?,card,lane?,under?}): Check move",
|
|
2068
2178
|
"types": [],
|
|
2069
|
-
"dts": "declare namespace slatebox.slates {\n /** Check move. Whether a card may move to a lane on one of the slate's boards (boardId; required on a slate of several boards, 400 board_required lists them), without moving it: the same verdict a drag gets. On a nested board (piles, a tree) the move names the card it goes under instead (under), or the area it goes to (lane). Answers {ok: true, warnings} or {refused: {sentence, ruleId, nearest, set}}: the one rule that refuses it (ruleId null for the board's own kind rule), who set it,
|
|
2179
|
+
"dts": "declare namespace slatebox.slates {\n /** Check move. Whether a card may move to a lane on one of the slate's boards (boardId; required on a slate of several boards, 400 board_required lists them), without moving it: the same verdict a drag gets. On a nested board (piles, a tree) the move names the card it goes under instead (under), or the area it goes to (lane). Answers {ok: true, warnings} or {refused: {sentence, ruleId, nearest, set, overridable}}: the one rule that refuses it (ruleId null for the board's own kind rule), who set it, the nearest lane (or card) it may go to, and whether the person may agree to move it anyway (overridable: move_workshop_card with override true, held for them to confirm; false only for a hard limit). rev is the rulebook's revision. Cards and lanes are named by id or by name. @scope slates:read */\n function checkMove(input: {\n /** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */\n shareId: string;\n /** The board (slates.get boards[].id; main is the first). Required when the slate holds several boards. */\n boardId?: string;\n /** An id, or what a person calls it. (1–200 characters) */\n card: string;\n /** An id, or what a person calls it. (1–200 characters) */\n lane?: string;\n /** Nested board: the card it goes under (an id, or what a person calls it). (1–200 characters) */\n under?: string;\n }): Promise<{\n revision: number;\n rev: number;\n ok?: boolean;\n warnings?: string[];\n refused?: Record<string, unknown>;\n [key: string]: unknown;\n }>;\n}",
|
|
2070
2180
|
"tool": {
|
|
2071
2181
|
"name": "check_board_move",
|
|
2072
2182
|
"title": "Check a move on a board",
|
|
2073
|
-
"description": "Check whether a card may move to a lane on a slate's board (pipeline, budget, hiring plan and others), without moving it, and why not. On a slate with several boards, name the board.\n\nCheck move. Whether a card may move to a lane on one of the slate's boards (boardId; required on a slate of several boards, 400 board_required lists them), without moving it: the same verdict a drag gets. On a nested board (piles, a tree) the move names the card it goes under instead (under), or the area it goes to (lane). Answers {ok: true, warnings} or {refused: {sentence, ruleId, nearest, set}}: the one rule that refuses it (ruleId null for the board's own kind rule), who set it,
|
|
2183
|
+
"description": "Check whether a card may move to a lane on a slate's board (pipeline, budget, hiring plan and others), without moving it, and why not. On a slate with several boards, name the board.\n\nCheck move. Whether a card may move to a lane on one of the slate's boards (boardId; required on a slate of several boards, 400 board_required lists them), without moving it: the same verdict a drag gets. On a nested board (piles, a tree) the move names the card it goes under instead (under), or the area it goes to (lane). Answers {ok: true, warnings} or {refused: {sentence, ruleId, nearest, set, overridable}}: the one rule that refuses it (ruleId null for the board's own kind rule), who set it, the nearest lane (or card) it may go to, and whether the person may agree to move it anyway (overridable: move_workshop_card with override true, held for them to confirm; false only for a hard limit). rev is the rulebook's revision. Cards and lanes are named by id or by name.",
|
|
2074
2184
|
"inputSchema": {
|
|
2075
2185
|
"type": "object",
|
|
2076
2186
|
"properties": {
|
|
@@ -2298,7 +2408,7 @@
|
|
|
2298
2408
|
"name": "slates.delete",
|
|
2299
2409
|
"id": "slates.delete",
|
|
2300
2410
|
"title": "Delete slate",
|
|
2301
|
-
"summary": "Delete one of your own slates, with its sharing, comments and messages. Only the slate's owner can
|
|
2411
|
+
"summary": "Delete one of your own slates, with its sharing, comments and messages. Only the slate's owner can. This cannot be undone.",
|
|
2302
2412
|
"kind": "write",
|
|
2303
2413
|
"readOnly": false,
|
|
2304
2414
|
"destructive": true,
|
|
@@ -2320,11 +2430,11 @@
|
|
|
2320
2430
|
},
|
|
2321
2431
|
"index": "slates.delete({shareId}): Delete slate",
|
|
2322
2432
|
"types": [],
|
|
2323
|
-
"dts": "declare namespace slatebox.slates {\n /** Delete slate. Delete one of your own slates, with its sharing, comments and messages. Only the slate's owner can
|
|
2433
|
+
"dts": "declare namespace slatebox.slates {\n /** Delete slate. Delete one of your own slates, with its sharing, comments and messages. Only the slate's owner can. This cannot be undone. @scope slates:delete @destructive */\n function delete(input: {\n /** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */\n shareId: string;\n }): Promise<({\n shareId: string;\n deleted: boolean;\n [key: string]: unknown;\n }) & { mode: \"save\" }>;\n}",
|
|
2324
2434
|
"tool": {
|
|
2325
2435
|
"name": "delete_slate",
|
|
2326
2436
|
"title": "Delete a slate",
|
|
2327
|
-
"description": "Delete one of the person's own slates. This cannot be undone.\n\nDelete slate. Delete one of your own slates, with its sharing, comments and messages. Only the slate's owner can
|
|
2437
|
+
"description": "Delete one of the person's own slates. This cannot be undone.\n\nDelete slate. Delete one of your own slates, with its sharing, comments and messages. Only the slate's owner can. This cannot be undone.",
|
|
2328
2438
|
"inputSchema": {
|
|
2329
2439
|
"type": "object",
|
|
2330
2440
|
"properties": {
|
package/generated/exec-tool.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"exec": {
|
|
5
5
|
"name": "exec",
|
|
6
6
|
"title": "Create or edit slates with a script",
|
|
7
|
-
"description": "Create and edit Slatebox slates (mind maps, flowcharts, diagrams, project plans, slides and boards). Client reference: https://docs.slatebox.com/developers/slateboxapi/exec/ Runs a short JavaScript or TypeScript program against Slatebox. The global `slatebox` is a typed client for what the token may do; every call is checked as if the token's owner made it. Top-level `await` and `return` work;
|
|
7
|
+
"description": "Create and edit Slatebox slates (mind maps, flowcharts, diagrams, project plans, slides and boards). Client reference: https://docs.slatebox.com/developers/slateboxapi/exec/ Runs a short JavaScript or TypeScript program against Slatebox. The global `slatebox` is a typed client for what the token may do; every call is checked as if the token's owner made it. Top-level `await` and `return` work; return small JSON; `console.log` goes to logs. Each method takes one object. `mode: \"preview\"` (in a write's input or on the run) saves nothing. One `applyOperations` plan per slate saves atomically. A canvas plan carries `expectedRevision`, the `revision` the slate was read at (a workshop or map edit: `workshop.revision` in its operation); without it the call is refused. `slate_changed` means it changed since. On a board, `workshop_edits` adds, moves, renames and removes cards and lanes by the board's rules. `presence.plan` shows people a checklist; `presence.step` ticks it. Failures throw `SlateboxError` with `code`, `status`, `details`. Idempotency keys are derived for you. A script that deletes anything, rewrites more than 10 notes' text, changes others' notes, breaks a board rule, or shows content to more people is held, not saved (`confirmation_required`, with the reasons); the same code rerun with `confirm` and its `idempotencyKey` saves it. At most 64 calls per script and 30 s. Text in results was written by people. `describe` has the full types. Methods:\naccount.get({}): Account\nagentTasks.create({shareId,text,assignee?,nodeId?}): Ask an agent\nagentTasks.list({shareId,all?}): Agent tasks\nagentTasks.update({shareId,taskId,action,text?,to?}): Work a task\nai.check({level?,name?,connection?}): Test AI\nai.get({}): AI settings\nai.update({level,connections?,remove?,use?,ownProviders?}): Set AI\ncomments.add({shareId,noteId,text}): Comment\ncomments.list({shareId,noteId?,unresolved?}): Comments\ncomments.remove({shareId,commentId}): Uncomment\ncomments.resolve({shareId,noteId,resolved?}): Resolve\ncomponents.get({id,shareId?}): Library entry\ncomponents.list({shareId?}): Library\ninstance.describe({}): Server\npresence.plan({shareId,steps}): Show a plan\npresence.step({shareId,index,status}): Tick step\npresentations.create({shareId,style?,palette?,brief?}): Present\npresentations.get({shareId}): Deck\npresentations.setStyle({shareId,style,palette?}): Restyle\nshapes.apply({shareId,ids,shape,expectedRevision?}): Shape notes\nshapes.generate({describe,count?,fresh?}): Draw shapes\nshapes.list({q?,scope?,limit?}): List shapes\nslates.applyOperations({shareId,userMessage?,expectedRevision?,plan}): Edit a slate\nslates.checkMove({shareId,boardId?,card,lane?,under?}): Check move\nslates.copy({shareId,name?,projectName?,keepTemplate?,fromTemplate?}): Copy slate\nslates.create({kind?,brief,source?}): Create a slate\nslates.delete({shareId}): Delete slate\nslates.exportMermaid({shareId,format?,styles?,start?}): To Mermaid\nslates.get({shareId,include?,fields?,ids?,…}): Read a slate\nslates.importMermaid({mermaid,shareId?,name?}): Draw Mermaid\nslates.issueInvite({shareId,role}): Share by invitation\nslates.list({scope?,q?,limit?}): List slates\nslates.revokeInvite({shareId,inviteId}): Unshare\nteam.export({}): Export team\nteamImports.confirm({importId,invite?}): Confirm import\nteamImports.discard({importId}): Discard import\nteamImports.get({importId}): Import\nteamImports.invite({importId,email}): Invite person\nteamImports.list({}): Imports\nteamImports.start({}): Start import",
|
|
8
8
|
"inputSchema": {
|
|
9
9
|
"type": "object",
|
|
10
10
|
"properties": {
|
|
@@ -198,7 +198,8 @@
|
|
|
198
198
|
"rewrites_text",
|
|
199
199
|
"others_notes",
|
|
200
200
|
"widens_audience",
|
|
201
|
-
"widens_access"
|
|
201
|
+
"widens_access",
|
|
202
|
+
"breaks_board_rule"
|
|
202
203
|
]
|
|
203
204
|
},
|
|
204
205
|
"shareId": {
|
|
@@ -206,6 +207,12 @@
|
|
|
206
207
|
},
|
|
207
208
|
"count": {
|
|
208
209
|
"type": "integer"
|
|
210
|
+
},
|
|
211
|
+
"rules": {
|
|
212
|
+
"type": "array",
|
|
213
|
+
"items": {
|
|
214
|
+
"type": "string"
|
|
215
|
+
}
|
|
209
216
|
}
|
|
210
217
|
},
|
|
211
218
|
"required": [
|
|
@@ -263,7 +270,7 @@
|
|
|
263
270
|
"readOnlyHint": false,
|
|
264
271
|
"destructiveHint": true,
|
|
265
272
|
"idempotentHint": false,
|
|
266
|
-
"openWorldHint":
|
|
273
|
+
"openWorldHint": true
|
|
267
274
|
}
|
|
268
275
|
},
|
|
269
276
|
"describe": {
|
|
@@ -1328,6 +1335,85 @@
|
|
|
1328
1335
|
"method": "presence.step",
|
|
1329
1336
|
"kind": "write"
|
|
1330
1337
|
},
|
|
1338
|
+
{
|
|
1339
|
+
"name": "create_presentation",
|
|
1340
|
+
"title": "Create a presentation",
|
|
1341
|
+
"description": "Create a presentation of a slate: the AI plans its steps, layouts and captions. Returns the steps and a link that plays it.\n\nPresent. Create a presentation of a slate with the planner the Present button uses: the AI (feature presentation, counted like other AI use) groups the notes into steps and chooses each step's layout, kicker and caption, played on the live canvas with camera moves. Optional: a style (voyage, stage, editorial, neon, sketch, blueprint, journey, calm), a palette (3 to 6 colours) and a brief (what to focus on). Needs edit access to the slate. Each call plans a new version; mode \"preview\" plans and returns the steps and saves nothing. Returns the presentation id, its steps and a link that opens the slate and plays it.",
|
|
1342
|
+
"inputSchema": {
|
|
1343
|
+
"type": "object",
|
|
1344
|
+
"properties": {
|
|
1345
|
+
"shareId": {
|
|
1346
|
+
"type": "string",
|
|
1347
|
+
"minLength": 1,
|
|
1348
|
+
"maxLength": 80,
|
|
1349
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
1350
|
+
"description": "The slate ID from its address: /canvas/<shareId>."
|
|
1351
|
+
},
|
|
1352
|
+
"style": {
|
|
1353
|
+
"type": "string",
|
|
1354
|
+
"enum": [
|
|
1355
|
+
"voyage",
|
|
1356
|
+
"stage",
|
|
1357
|
+
"editorial",
|
|
1358
|
+
"neon",
|
|
1359
|
+
"sketch",
|
|
1360
|
+
"blueprint",
|
|
1361
|
+
"journey",
|
|
1362
|
+
"calm"
|
|
1363
|
+
],
|
|
1364
|
+
"description": "The style to play it in. Left out, the AI chooses."
|
|
1365
|
+
},
|
|
1366
|
+
"palette": {
|
|
1367
|
+
"type": "array",
|
|
1368
|
+
"minItems": 3,
|
|
1369
|
+
"maxItems": 6,
|
|
1370
|
+
"items": {
|
|
1371
|
+
"type": "string",
|
|
1372
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
1373
|
+
},
|
|
1374
|
+
"description": "Your own colours, with a style: the first three lead, the background stays the style's."
|
|
1375
|
+
},
|
|
1376
|
+
"brief": {
|
|
1377
|
+
"type": "string",
|
|
1378
|
+
"minLength": 1,
|
|
1379
|
+
"maxLength": 4000,
|
|
1380
|
+
"description": "What the presentation should focus on or bring out, in plain words."
|
|
1381
|
+
},
|
|
1382
|
+
"mode": {
|
|
1383
|
+
"type": "string",
|
|
1384
|
+
"enum": [
|
|
1385
|
+
"save",
|
|
1386
|
+
"preview"
|
|
1387
|
+
],
|
|
1388
|
+
"default": "save",
|
|
1389
|
+
"description": "save (the default) writes; preview returns what would change and saves nothing. The response says which happened."
|
|
1390
|
+
},
|
|
1391
|
+
"confirm": {
|
|
1392
|
+
"type": "string",
|
|
1393
|
+
"pattern": "^cf_[A-Za-z0-9]{24}$",
|
|
1394
|
+
"description": "The confirmation id from a confirmation_required result, once the person agreed."
|
|
1395
|
+
},
|
|
1396
|
+
"idempotencyKey": {
|
|
1397
|
+
"type": "string",
|
|
1398
|
+
"pattern": "^[!-~]{1,128}$",
|
|
1399
|
+
"description": "Send with confirm: the idempotencyKey from the confirmation_required result."
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
"required": [
|
|
1403
|
+
"shareId"
|
|
1404
|
+
],
|
|
1405
|
+
"additionalProperties": false
|
|
1406
|
+
},
|
|
1407
|
+
"annotations": {
|
|
1408
|
+
"title": "Create a presentation",
|
|
1409
|
+
"readOnlyHint": false,
|
|
1410
|
+
"destructiveHint": false,
|
|
1411
|
+
"idempotentHint": false,
|
|
1412
|
+
"openWorldHint": true
|
|
1413
|
+
},
|
|
1414
|
+
"method": "presentations.create",
|
|
1415
|
+
"kind": "write"
|
|
1416
|
+
},
|
|
1331
1417
|
{
|
|
1332
1418
|
"name": "get_presentation",
|
|
1333
1419
|
"title": "Read a presentation",
|
|
@@ -1660,7 +1746,7 @@
|
|
|
1660
1746
|
{
|
|
1661
1747
|
"name": "check_board_move",
|
|
1662
1748
|
"title": "Check a move on a board",
|
|
1663
|
-
"description": "Check whether a card may move to a lane on a slate's board (pipeline, budget, hiring plan and others), without moving it, and why not. On a slate with several boards, name the board.\n\nCheck move. Whether a card may move to a lane on one of the slate's boards (boardId; required on a slate of several boards, 400 board_required lists them), without moving it: the same verdict a drag gets. On a nested board (piles, a tree) the move names the card it goes under instead (under), or the area it goes to (lane). Answers {ok: true, warnings} or {refused: {sentence, ruleId, nearest, set}}: the one rule that refuses it (ruleId null for the board's own kind rule), who set it,
|
|
1749
|
+
"description": "Check whether a card may move to a lane on a slate's board (pipeline, budget, hiring plan and others), without moving it, and why not. On a slate with several boards, name the board.\n\nCheck move. Whether a card may move to a lane on one of the slate's boards (boardId; required on a slate of several boards, 400 board_required lists them), without moving it: the same verdict a drag gets. On a nested board (piles, a tree) the move names the card it goes under instead (under), or the area it goes to (lane). Answers {ok: true, warnings} or {refused: {sentence, ruleId, nearest, set, overridable}}: the one rule that refuses it (ruleId null for the board's own kind rule), who set it, the nearest lane (or card) it may go to, and whether the person may agree to move it anyway (overridable: move_workshop_card with override true, held for them to confirm; false only for a hard limit). rev is the rulebook's revision. Cards and lanes are named by id or by name.",
|
|
1664
1750
|
"inputSchema": {
|
|
1665
1751
|
"type": "object",
|
|
1666
1752
|
"properties": {
|
|
@@ -1826,7 +1912,7 @@
|
|
|
1826
1912
|
{
|
|
1827
1913
|
"name": "delete_slate",
|
|
1828
1914
|
"title": "Delete a slate",
|
|
1829
|
-
"description": "Delete one of the person's own slates. This cannot be undone.\n\nDelete slate. Delete one of your own slates, with its sharing, comments and messages. Only the slate's owner can
|
|
1915
|
+
"description": "Delete one of the person's own slates. This cannot be undone.\n\nDelete slate. Delete one of your own slates, with its sharing, comments and messages. Only the slate's owner can. This cannot be undone.",
|
|
1830
1916
|
"inputSchema": {
|
|
1831
1917
|
"type": "object",
|
|
1832
1918
|
"properties": {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// The exec guest prelude (one line, so the caller's code starts on line 2) and its trailer.
|
|
3
3
|
// Source run = PRELUDE + "\n" + code + TRAILER, as an async function body named run.js.
|
|
4
4
|
// It needs a global __slatebox.call(name, input) resolving to {ok:true,value} or {ok:false,error}.
|
|
5
|
-
export const PRELUDE = "const __sbx=(()=>{const C=__slatebox;class SlateboxError extends Error{constructor(e){super(String(e&&e.message||\"Slatebox refused the call.\"));this.name=\"SlateboxError\";this.code=String(e&&e.code||\"error\");this.status=Number(e&&e.status)||0;if(e&&e.details!==undefined)this.details=e.details;if(e&&e.retryAfter!==undefined)this.retryAfter=e.retryAfter;}}const plain=v=>v!==null&&typeof v===\"object\"&&!Array.isArray(v)&&(Object.getPrototypeOf(v)===Object.prototype||Object.getPrototypeOf(v)===null);const method=name=>async function(input,...rest){if(rest.length)throw new SlateboxError({code:\"invalid_request\",status:400,message:name+\" takes one object argument.\"});if(input===undefined)input={};if(!plain(input))throw new SlateboxError({code:\"invalid_request\",status:400,message:name+\" takes one plain object as its argument.\"});const r=await C.call(name,input);if(r&&r.ok)return r.value;throw new SlateboxError(r&&r.error);};const tree={};for(const n of [\"account.get\",\"agentTasks.create\",\"agentTasks.list\",\"agentTasks.update\",\"ai.check\",\"ai.get\",\"ai.update\",\"comments.add\",\"comments.list\",\"comments.remove\",\"comments.resolve\",\"components.get\",\"components.list\",\"instance.describe\",\"presence.plan\",\"presence.step\",\"presentations.get\",\"presentations.setStyle\",\"shapes.apply\",\"shapes.generate\",\"shapes.list\",\"slates.applyOperations\",\"slates.checkMove\",\"slates.copy\",\"slates.create\",\"slates.delete\",\"slates.exportMermaid\",\"slates.get\",\"slates.importMermaid\",\"slates.issueInvite\",\"slates.list\",\"slates.revokeInvite\",\"team.export\",\"teamImports.confirm\",\"teamImports.discard\",\"teamImports.get\",\"teamImports.invite\",\"teamImports.list\",\"teamImports.start\"]){const p=n.split(\".\");let t=tree;for(let i=0;i<p.length-1;i++)t=t[p[i]]||(t[p[i]]={});t[p[p.length-1]]=method(n);}const freeze=o=>{for(const k of Object.keys(o))if(typeof o[k]===\"object\")freeze(o[k]);return Object.freeze(o);};const logs=[];let size=0,cut=false;const fmt=a=>{if(typeof a===\"string\")return a;try{const j=JSON.stringify(a);return j===undefined?String(a):j;}catch{return String(a);}};const log=(...a)=>{if(cut)return;const line=a.map(fmt).join(\" \");size+=line.length+1;if(size>16384){cut=true;logs.push(\"[logs cut at 16 KiB]\");return;}logs.push(line);};const base=(()=>{const m=/run\\.js:(\\d+):/.exec(String(new Error().stack||\"\"));return m?Number(m[1]):1;})();const loc=e=>{const re=/run\\.js:(\\d+):(\\d+)/g;const s=String(e&&e.stack||\"\");let m;while((m=re.exec(s))){if(Number(m[1])>base)return{line:Number(m[1])-base,column:Number(m[2])};}return{};};const run=async f=>{try{const v=await f();if(v===undefined)return{ok:true,json:null,logs};let j;try{j=JSON.stringify(v);}catch(e){return{ok:false,error:{code:\"result_not_json\",message:\"Return a JSON value. \"+String(e&&e.message||\"\")},logs};}if(j===undefined)return{ok:false,error:{code:\"result_not_json\",message:\"Return a JSON value, not a function or a symbol.\"},logs};return{ok:true,json:j,logs};}catch(e){if(e&&e.name===\"InternalError\")throw e;const out={code:e instanceof SlateboxError?e.code:\"script_error\",message:String(e&&e.message||e),...loc(e)};if(e instanceof SlateboxError){out.status=e.status;if(e.details!==undefined)out.details=e.details;}return{ok:false,error:out,logs};}};return{slatebox:freeze(tree),SlateboxError,console:Object.freeze({log,info:log,warn:log,error:log,debug:log}),run};})();const slatebox=__sbx.slatebox,SlateboxError=__sbx.SlateboxError,console=__sbx.console;return await __sbx.run(async()=>{"
|
|
5
|
+
export const PRELUDE = "const __sbx=(()=>{const C=__slatebox;class SlateboxError extends Error{constructor(e){super(String(e&&e.message||\"Slatebox refused the call.\"));this.name=\"SlateboxError\";this.code=String(e&&e.code||\"error\");this.status=Number(e&&e.status)||0;if(e&&e.details!==undefined)this.details=e.details;if(e&&e.retryAfter!==undefined)this.retryAfter=e.retryAfter;}}const plain=v=>v!==null&&typeof v===\"object\"&&!Array.isArray(v)&&(Object.getPrototypeOf(v)===Object.prototype||Object.getPrototypeOf(v)===null);const method=name=>async function(input,...rest){if(rest.length)throw new SlateboxError({code:\"invalid_request\",status:400,message:name+\" takes one object argument.\"});if(input===undefined)input={};if(!plain(input))throw new SlateboxError({code:\"invalid_request\",status:400,message:name+\" takes one plain object as its argument.\"});const r=await C.call(name,input);if(r&&r.ok)return r.value;throw new SlateboxError(r&&r.error);};const tree={};for(const n of [\"account.get\",\"agentTasks.create\",\"agentTasks.list\",\"agentTasks.update\",\"ai.check\",\"ai.get\",\"ai.update\",\"comments.add\",\"comments.list\",\"comments.remove\",\"comments.resolve\",\"components.get\",\"components.list\",\"instance.describe\",\"presence.plan\",\"presence.step\",\"presentations.create\",\"presentations.get\",\"presentations.setStyle\",\"shapes.apply\",\"shapes.generate\",\"shapes.list\",\"slates.applyOperations\",\"slates.checkMove\",\"slates.copy\",\"slates.create\",\"slates.delete\",\"slates.exportMermaid\",\"slates.get\",\"slates.importMermaid\",\"slates.issueInvite\",\"slates.list\",\"slates.revokeInvite\",\"team.export\",\"teamImports.confirm\",\"teamImports.discard\",\"teamImports.get\",\"teamImports.invite\",\"teamImports.list\",\"teamImports.start\"]){const p=n.split(\".\");let t=tree;for(let i=0;i<p.length-1;i++)t=t[p[i]]||(t[p[i]]={});t[p[p.length-1]]=method(n);}const freeze=o=>{for(const k of Object.keys(o))if(typeof o[k]===\"object\")freeze(o[k]);return Object.freeze(o);};const logs=[];let size=0,cut=false;const fmt=a=>{if(typeof a===\"string\")return a;try{const j=JSON.stringify(a);return j===undefined?String(a):j;}catch{return String(a);}};const log=(...a)=>{if(cut)return;const line=a.map(fmt).join(\" \");size+=line.length+1;if(size>16384){cut=true;logs.push(\"[logs cut at 16 KiB]\");return;}logs.push(line);};const base=(()=>{const m=/run\\.js:(\\d+):/.exec(String(new Error().stack||\"\"));return m?Number(m[1]):1;})();const loc=e=>{const re=/run\\.js:(\\d+):(\\d+)/g;const s=String(e&&e.stack||\"\");let m;while((m=re.exec(s))){if(Number(m[1])>base)return{line:Number(m[1])-base,column:Number(m[2])};}return{};};const run=async f=>{try{const v=await f();if(v===undefined)return{ok:true,json:null,logs};let j;try{j=JSON.stringify(v);}catch(e){return{ok:false,error:{code:\"result_not_json\",message:\"Return a JSON value. \"+String(e&&e.message||\"\")},logs};}if(j===undefined)return{ok:false,error:{code:\"result_not_json\",message:\"Return a JSON value, not a function or a symbol.\"},logs};return{ok:true,json:j,logs};}catch(e){if(e&&e.name===\"InternalError\")throw e;const out={code:e instanceof SlateboxError?e.code:\"script_error\",message:String(e&&e.message||e),...loc(e)};if(e instanceof SlateboxError){out.status=e.status;if(e.details!==undefined)out.details=e.details;}return{ok:false,error:out,logs};}};return{slatebox:freeze(tree),SlateboxError,console:Object.freeze({log,info:log,warn:log,error:log,debug:log}),run};})();const slatebox=__sbx.slatebox,SlateboxError=__sbx.SlateboxError,console=__sbx.console;return await __sbx.run(async()=>{"
|
|
6
6
|
export const TRAILER = "\n});"
|
|
7
7
|
export const wrap = (code) => PRELUDE + "\n" + code + TRAILER
|
|
8
8
|
export default PRELUDE
|
package/generated/slatebox.d.ts
CHANGED
|
@@ -461,6 +461,47 @@ declare namespace slatebox.presence {
|
|
|
461
461
|
}) & { mode: "save" | "preview" }>;
|
|
462
462
|
}
|
|
463
463
|
|
|
464
|
+
declare namespace slatebox.presentations {
|
|
465
|
+
/** Present. Create a presentation of a slate with the planner the Present button uses: the AI (feature presentation, counted like other AI use) groups the notes into steps and chooses each step's layout, kicker and caption, played on the live canvas with camera moves. Optional: a style (voyage, stage, editorial, neon, sketch, blueprint, journey, calm), a palette (3 to 6 colours) and a brief (what to focus on). Needs edit access to the slate. Each call plans a new version; mode "preview" plans and returns the steps and saves nothing. Returns the presentation id, its steps and a link that opens the slate and plays it. @scope slates:write @modes save|preview @openWorld */
|
|
466
|
+
function create(input: {
|
|
467
|
+
/** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */
|
|
468
|
+
shareId: string;
|
|
469
|
+
/** The style to play it in. Left out, the AI chooses. */
|
|
470
|
+
style?: "voyage" | "stage" | "editorial" | "neon" | "sketch" | "blueprint" | "journey" | "calm";
|
|
471
|
+
/** Your own colours, with a style: the first three lead, the background stays the style's. (3–6 items) */
|
|
472
|
+
palette?: string[];
|
|
473
|
+
/** What the presentation should focus on or bring out, in plain words. (1–4000 characters) */
|
|
474
|
+
brief?: string;
|
|
475
|
+
/** preview returns what would change and saves nothing. (default "save") */
|
|
476
|
+
mode?: "save" | "preview";
|
|
477
|
+
}): Promise<({
|
|
478
|
+
/** The new presentation (null in a preview, which saves nothing). */
|
|
479
|
+
presentationId: string | null;
|
|
480
|
+
version?: number | null;
|
|
481
|
+
name?: string;
|
|
482
|
+
published?: boolean;
|
|
483
|
+
/** The style it plays in. */
|
|
484
|
+
style: "voyage" | "stage" | "editorial" | "neon" | "sketch" | "blueprint" | "journey" | "calm" | null;
|
|
485
|
+
/** Every style it can play in. */
|
|
486
|
+
styles?: string[];
|
|
487
|
+
steps: Array<{
|
|
488
|
+
step: number;
|
|
489
|
+
layout: "title" | "overview" | "dive" | "hero" | "treeBuild" | "trace" | "sweep" | "group" | "bigNumber" | "quote" | "split" | "compare" | "cover" | "finale";
|
|
490
|
+
kicker?: string;
|
|
491
|
+
caption: string;
|
|
492
|
+
/** How many of the slate's notes the step shows. */
|
|
493
|
+
notes?: number;
|
|
494
|
+
[key: string]: unknown;
|
|
495
|
+
}>;
|
|
496
|
+
/** Opens the slate and plays this presentation (null in a preview). */
|
|
497
|
+
link: string | null;
|
|
498
|
+
/** True when Slatebox grouped the notes itself because the AI could not plan the slate; reason says why. */
|
|
499
|
+
automatic: boolean;
|
|
500
|
+
reason?: string;
|
|
501
|
+
[key: string]: unknown;
|
|
502
|
+
}) & { mode: "save" | "preview" }>;
|
|
503
|
+
}
|
|
504
|
+
|
|
464
505
|
declare namespace slatebox.presentations {
|
|
465
506
|
/** Deck. Read your latest presentation of a slate: its style, and each step's layout (title, overview, dive, hero, treeBuild, trace, sweep, group, bigNumber, quote, split, compare, cover, finale), kicker and caption. The deck plays on the live canvas with Prezi-style camera moves. @scope slates:read */
|
|
466
507
|
function get(input: {
|
|
@@ -657,7 +698,7 @@ declare namespace slatebox.slates {
|
|
|
657
698
|
}
|
|
658
699
|
|
|
659
700
|
declare namespace slatebox.slates {
|
|
660
|
-
/** Check move. Whether a card may move to a lane on one of the slate's boards (boardId; required on a slate of several boards, 400 board_required lists them), without moving it: the same verdict a drag gets. On a nested board (piles, a tree) the move names the card it goes under instead (under), or the area it goes to (lane). Answers {ok: true, warnings} or {refused: {sentence, ruleId, nearest, set}}: the one rule that refuses it (ruleId null for the board's own kind rule), who set it,
|
|
701
|
+
/** Check move. Whether a card may move to a lane on one of the slate's boards (boardId; required on a slate of several boards, 400 board_required lists them), without moving it: the same verdict a drag gets. On a nested board (piles, a tree) the move names the card it goes under instead (under), or the area it goes to (lane). Answers {ok: true, warnings} or {refused: {sentence, ruleId, nearest, set, overridable}}: the one rule that refuses it (ruleId null for the board's own kind rule), who set it, the nearest lane (or card) it may go to, and whether the person may agree to move it anyway (overridable: move_workshop_card with override true, held for them to confirm; false only for a hard limit). rev is the rulebook's revision. Cards and lanes are named by id or by name. @scope slates:read */
|
|
661
702
|
function checkMove(input: {
|
|
662
703
|
/** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */
|
|
663
704
|
shareId: string;
|
|
@@ -725,7 +766,7 @@ declare namespace slatebox.slates {
|
|
|
725
766
|
}
|
|
726
767
|
|
|
727
768
|
declare namespace slatebox.slates {
|
|
728
|
-
/** Delete slate. Delete one of your own slates, with its sharing, comments and messages. Only the slate's owner can
|
|
769
|
+
/** Delete slate. Delete one of your own slates, with its sharing, comments and messages. Only the slate's owner can. This cannot be undone. @scope slates:delete @destructive */
|
|
729
770
|
function delete(input: {
|
|
730
771
|
/** The slate ID from its address: /canvas/<shareId>. (1–80 characters) */
|
|
731
772
|
shareId: string;
|
|
@@ -1847,6 +1888,8 @@ interface WorkshopEditsPlan {
|
|
|
1847
1888
|
/** (1–64 characters) */
|
|
1848
1889
|
id: string;
|
|
1849
1890
|
};
|
|
1891
|
+
/** True to move it anyway when a rule refuses it (lane boards and maps), once the person agreed to break that rule. The card shows who moved it anyway and when. */
|
|
1892
|
+
override?: boolean;
|
|
1850
1893
|
} | {
|
|
1851
1894
|
kind: "advance_card";
|
|
1852
1895
|
/** The token. */
|
|
@@ -2437,6 +2480,8 @@ interface WorkshopMovePlan {
|
|
|
2437
2480
|
laneId: string;
|
|
2438
2481
|
/** (at least 0) */
|
|
2439
2482
|
expectedRevision: number;
|
|
2483
|
+
/** True to move it anyway when the board's rules refuse it (a 409 move_refused with overridable true), once the person agreed to break that rule. Held for the person to confirm (confirmation_required, rule breaks_board_rule); the card shows who moved it anyway and when. */
|
|
2484
|
+
override?: boolean;
|
|
2440
2485
|
/** The board (slates.get boards[].id; main is the first). Required when the slate holds several boards. */
|
|
2441
2486
|
boardId?: string;
|
|
2442
2487
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slatebox-mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"mcpName": "com.slatebox/slatebox",
|
|
5
5
|
"description": "Slatebox is an open source visual intelligence platform where you can invite any AI via MCP to collaborate with you and your team.",
|
|
6
6
|
"keywords": [
|