diff --git a/.changeset/lsp-views-protocol.md b/.changeset/lsp-views-protocol.md index 5ffcf825..d166d484 100644 --- a/.changeset/lsp-views-protocol.md +++ b/.changeset/lsp-views-protocol.md @@ -8,7 +8,8 @@ - A client declaring `initializationOptions.views` specifies open recipe outputs via `gram/setOpenViews` and receives targeted updates in `gram/viewUpdated`: recipe and work plan views as HTML, or AST and compiled JSON as text or interactive trees. Closed outputs are no longer evaluated - When a recipe encounters compilation errors, open outputs are paused rather than replaced by an error card: editors retain their last valid rendered view, while localized error summaries are provided alongside standard LSP diagnostics - `gram/setSession` configures transient session parameters for a recipe: target serving time (projecting the work plan onto the calendar in the project's `timezone` and within its `availability`), scaling factor, pre-prepared imports in stock, and baker's percentage reference. Sessions are held per document in memory, while compiler diagnostics continue evaluating the recipe as written -- The outputs a client can open are listed in the `initialize` result, each with its name in the editor's language, so an editor shows a new view of Gram without an update of its own +- The outputs a client can open are listed in the `initialize` result, each with its name in the editor's language and what it reads from the plan, so an editor shows a new view of Gram without an update of its own, and offers a serving time for any view laid out in time +- A `gram/serveTimes` request gives the serving times to propose for a recipe, in words: those that work over the next seven days at the project's `mealTimes`, why the others do not, and the earliest one **Deprecated** diff --git a/.changeset/renderer-prepare-views.md b/.changeset/renderer-prepare-views.md index 914185b4..772b99b9 100644 --- a/.changeset/renderer-prepare-views.md +++ b/.changeset/renderer-prepare-views.md @@ -6,7 +6,7 @@ - the timeline for the chosen settings and its total and idle times, the same at any serving time - the work plan, on the calendar when a serving time is given, otherwise in days before the service -- the serving time search (the earliest serving time, and the times worth proposing in a range) from your kitchen's time zone and hours +- the serving time search (the earliest serving time, and the times worth proposing in a range) from your kitchen's time zone and hours; `suggestServeTimes()` puts it in words for a serving time field: the times that work over the next days, why the others do not, and the earliest - `views` lists the views of a recipe (the recipe, the work plan) with the formats each one offers, the settings it follows and what it needs worked out, and `render(view, input, format)` writes one of them from what `prepareViews()` gave; it returns `null` for a work plan when the recipe has no tasks. `toHTML`, `runSheetToHTML` and the other functions stay as they are - `inspectors` lists the looks at the pipeline (the composed AST as an S-expression, the analyzed recipe as JSON or as a tree that folds), and `outputs` lists the views and the inspectors together, for an interface that offers both. `renderJsonTree()` writes any data as that tree, with no script (native folding, keyboard included), and `JSON_TREE_CSS` styles it with colors you set through CSS variables; `renderSExpr()` writes an AST as an S-expression - `describeError()` picks the error to show when a recipe stops compiling (a blocking error first, then the first error) and gives its code, message, file and position, with a title in the recipe's language, so every interface reports the same error the same way diff --git a/.changeset/vscode-work-plan.md b/.changeset/vscode-work-plan.md index 6ead71d0..f2c3de19 100644 --- a/.changeset/vscode-work-plan.md +++ b/.changeset/vscode-work-plan.md @@ -6,6 +6,7 @@ **Language Server / VS Code**: The editor shows the work plan of the recipe in place of the Gantt chart: - A new `Gram: Work Plan` command opens it next to the recipe, in days before the service (D-2, D-1, day D); it follows the `gram.miseEnPlace`, `gram.rests` and `gram.comments` settings +- A **Served at** field at the top of the work plan puts it on the calendar, with dates and clock times, in your project's time zone and hours (`timezone` and `availability` in `.gram/config.yaml`); **When to serve?** proposes the times that work over the next seven days, the earliest first, and says why the others do not. The serving time is kept per recipe while VS Code is open, never saved **Deprecated** diff --git a/packages/docs/src/components/playground/GramOptions.vue b/packages/docs/src/components/playground/GramOptions.vue index 11b8b10f..3a16f971 100644 --- a/packages/docs/src/components/playground/GramOptions.vue +++ b/packages/docs/src/components/playground/GramOptions.vue @@ -196,7 +196,7 @@ function clearServeAt() { // biome-ignore lint/correctness/noUnusedVariables: formatEarliestLabel is used in the