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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/37042-skills-inline-edit-boolean.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
'@objectstack/skills': patch
---
Expand All @@ -7,4 +7,4 @@
Clause-②: no
Metadata-protocol: none

objectstack-data's `rules/relationships.md`, "Inline-edit form factor": the `inlineEdit: true // auto (default)` line is gone, and the smart default is now described as what an omitted key gets, with a note that a boolean is refused. The spec parse refuses `true` and `false` on a relationship field's `inlineEdit` since 18.7.0; only `'grid'` and `'form'` are accepted, and leaving the key out picks the form factor from the child's shape. `evals/objects-fields-relationships.json` case 25 drops the same `true` from its expected answer. objectstack-ui's `rules/list-views.md`, Master-Detail Forms: the pointer to that section no longer lists `true` beside `'grid'` and `'form'`; it says `'grid'` / `'form'` or left out.
objectstack-data's `rules/relationships.md`, "Inline-edit form factor": the `inlineEdit: true // auto (default)` line is gone, and the smart default is now described as what an omitted key gets, with a note that a boolean is refused. The spec parse refuses `true` and `false` on a relationship field's `inlineEdit` since 19.0.0; only `'grid'` and `'form'` are accepted, and leaving the key out picks the form factor from the child's shape. `evals/objects-fields-relationships.json` case 25 drops the same `true` from its expected answer. objectstack-ui's `rules/list-views.md`, Master-Detail Forms: the pointer to that section no longer lists `true` beside `'grid'` and `'form'`; it says `'grid'` / `'form'` or left out.
4 changes: 2 additions & 2 deletions .changeset/37223-v19-line-opens.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
"@objectstack/spec": major
---
Expand All @@ -6,8 +6,8 @@

Clause-②: no

- **What this marks.** Changesets is in pre mode with the tag `next`. Every package in the `fixed` group versions together, so this `major` takes all of them to 19, and the first version cut is `19.0.0-next.0`. `PROTOCOL_VERSION` follows `@objectstack/spec`'s major at version time. The marker itself changes no code, key, export or stored shape.
- **What the line carries.** Each breaking change on the line says so in its own changeset. The first is `@object-ui/i18n`'s retirement of the translation keys 18.6.0 shipped and no code reads any more; a second `major` in the same `fixed` group still gives one 19.0.0.
- **What this marks.** Changesets is in pre mode with the tag `next`. Every package in the `fixed` group versions together, so this `major` takes all of them to 19, and the first version cut is `19.0.0-next.0`. `PROTOCOL_VERSION` moves to 19 ahead of the version pass, in its own changeset. The marker itself changes no code, key, export or stored shape.
- **What the line carries.** Each breaking change on the line says so in its own changeset. The first change graded `major` is `@object-ui/i18n`'s retirement of the translation keys 18.6.0 shipped and no code reads any more; a second `major` in the same `fixed` group still gives one 19.0.0.
- **Who receives it.** A plain install still resolves the dist-tag `latest`, which stays on 18.x until 19.0 GA. A prerelease is installed only on request: `@objectstack/spec@next`, or an exact `19.0.0-next.N`.
- **What ends it.** 19.0 GA exits pre mode and publishes to `latest`.

Expand Down
17 changes: 17 additions & 0 deletions .changeset/37229-protocol-19.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
"@objectstack/spec": minor
"@objectstack/mcp": patch
---

The runtime protocol moves to 19: `PROTOCOL_VERSION` reads `'19.0.0'`, so a runtime built from this release refuses a manifest that declares `engines.protocol: '^18'`.

Clause-②: yes (narrowing)
Metadata-protocol: narrowed

**BREAKING for app and package authors on the v19 prerelease line.** The load-time handshake (ADR-0087 D1) compares the major of a manifest's `engines.protocol` range with `PROTOCOL_VERSION`. At protocol 19 a range that admits only 18 is refused before any metadata loads, with the diagnostic `OS_PROTOCOL_INCOMPATIBLE` naming the declared range and the runtime's protocol.

- **What you change.** In each manifest you author (`objectstack.config.ts`, and every package manifest in a multi-package app), move `engines: { protocol: '^18' }` to `engines: { protocol: '^19' }`. `os migrate meta --from 18 --write` rewrites the range for you in a root `defineStack` manifest, at the key the handshake reads. A manifest `composeStacks` composes from several packages has no one literal to rewrite, so there the command writes nothing and lists the range for you to change by hand in each package manifest. The upgrade guide's protocol 19 step carries the same prescription (`protocol-18-range-refused`).
- **Who is affected.** Only a project that installs a `19.0.0-next.N` prerelease. The npm dist-tag `latest` stays on 18.x until 19.0 GA, and an 18.x runtime keeps admitting `'^18'` and refuses `'^19'`, so move the range together with the `@objectstack/*` versions, not before them.
- **What moved in this repository.** Every example app, `examples/app-multi-package`'s two packages, the three connector apps under `packages/apps/`, the docs snippets and the two examples in `@objectstack/mcp`'s README now declare `'^19'`. The `create-objectstack` blank template keeps the scaffolder's own major until the version pass stamps it `'^19'` together with its `@objectstack/*` versions.

<!-- adr-0087: registered protocol-18-range-refused -->
4 changes: 2 additions & 2 deletions content/docs/data-modeling/seed-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ record again: a 3-row fixture became 6, then 9
reference the first load had to leave empty stayed empty on the first row while
only a later copy named the person. `replace` expected the caller to clear the
table first, and no load ever clears one. Both were removed in
`@objectstack/spec` 18.7.0 ([#34613](https://github.com/objectstack-ai/objectstack/issues/34613)):
`@objectstack/spec` 19.0.0 ([#34613](https://github.com/objectstack-ai/objectstack/issues/34613)):

- **Authoring refuses them.** `defineSeed`, `defineStack`, `os validate`, `os build`
and the metadata save and publish doors reject `mode: 'insert'` or
Expand Down Expand Up @@ -172,7 +172,7 @@ To convert a dataset, declare which field identifies a row, then drop the mode
3. **The records carry their own ids**: set `externalId: 'id'`.

```typescript
// Before — refused since @objectstack/spec 18.7.0
// Before — refused since @objectstack/spec 19.0.0
defineSeed(ExchangeRate, {
mode: 'replace',
records: [{ key: 'USD_EUR', rate: 0.92 }],
Expand Down
2 changes: 1 addition & 1 deletion content/docs/deployment/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4306,7 +4306,7 @@ export default defineStack({
name: 'My App',
description: 'My ObjectStack application',
// Protocol major this app is authored against (ADR-0087 load-time check).
engines: { protocol: '^18' },
engines: { protocol: '^19' },
},

objects: Object.values(objects),
Expand Down
2 changes: 1 addition & 1 deletion content/docs/getting-started/your-first-project.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default defineStack({
type: 'app',
name: 'My App',
// Protocol major this app is authored against (ADR-0087 load-time check).
engines: { protocol: '^18' },
engines: { protocol: '^19' },
},
// `automation` runs flows and, per ADR-0097, materializes declarative
// `connectors:` entries at boot, through the provider factory a connector
Expand Down
2 changes: 1 addition & 1 deletion content/docs/references/ui/component.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ Sort field and direction pair
| **bulkActionDefs** | `{ name: string; label?: string; icon?: string; variant?: Enum<'primary' \| 'secondary' \| 'danger' \| 'ghost' \| 'outline'>; … }[]` | optional | Inline bulk-action definitions (full defs, not names) — the same `BulkActionDef` entries a list view's `bulkActionDefs` declares |
| **navigation** | `{ mode?: Enum<'drawer' \| 'page' \| 'new_window' \| 'none'>; preventNavigation?: boolean; openNewTab?: boolean; size?: Enum<'auto' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'>; … }` | optional | Row-click navigation config — the same block `ListViewSchema.navigation` declares (`{ mode, size, openNewTab, preventNavigation }`) |
| **editable** | `boolean` | optional | Enable inline cell editing |
| **singleClickEdit** | `never` | optional | [REMOVED] `object-grid` property `singleClickEdit` was removed in @objectstack/spec 18.7.0 (ADR-0049) — a grid that renders editable now selects a cell on a click and opens its editor on double-click, Enter, F2 or typing, so a single-click entry no longer exists for this key to switch. Delete the key; `editable` (with the viewer's write verdict) decides whether the grid edits. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
| **singleClickEdit** | `never` | optional | [REMOVED] `object-grid` property `singleClickEdit` was removed in @objectstack/spec 19.0.0 (ADR-0049) — a grid that renders editable now selects a cell on a click and opens its editor on double-click, Enter, F2 or typing, so a single-click entry no longer exists for this key to switch. Delete the key; `editable` (with the viewer's write verdict) decides whether the grid edits. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
| **keyboardNavigation** | `boolean` | optional | Arrow-key cell navigation on the WAI-ARIA grid pattern: the grid's data cells become one Tab stop that the arrow keys, Home / End and Ctrl+Home / Ctrl+End move between. Always on when the grid renders editable — `editable` set and the viewer allowed to edit — because that grid selects a cell first and moves the selection with these keys; a grid that renders read-only keeps every cell its own Tab stop unless this is `true` |
| **resizable** | `boolean` | optional | Allow column resize (the renderer default is on) |
| **resizableColumns** | `never` | optional | [REMOVED] `object-grid` property `resizableColumns` was removed in @objectstack/spec 17.7.0 (ADR-0049) — it was the legacy second spelling of `resizable`, read only when `resizable` was absent, so one switch had two spellings and a grid authoring both silently ignored this one. Use `resizable`. Rename the key; the value (a boolean) is unchanged. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
Expand Down
4 changes: 2 additions & 2 deletions content/docs/references/ui/view.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2539,7 +2539,7 @@ This schema accepts one of the following structures:
| **isPinned** | `boolean` | optional | Console round-trip: the view is pinned in the object's view switcher. Written by the console's pin toggle through the `view` metadata API and read back to draw the pinned group. Stored on the view's row, which has no per-user scope. Not authored. |
| **sortOrder** | `integer` | optional | Console round-trip: the view's position among the object's saved views in the switcher, 0-based and counted over saved views only (a code-defined view carries none). Written by the console's drag-reorder and read back to order the tabs. Not authored: `order` is the authored default position. |
| **visibility** | `Enum<'private' \| 'team' \| 'organization' \| 'public'>` | optional | Console round-trip: the group the switcher files this view's tab under (private, team, organization or public). Display grouping only, NOT access control: nothing restricts who can list or open the view by this value. No console control sets it; the console carries a stored value forward when it re-saves the row. Not authored. |
| **columnState** | `never` | optional | [REMOVED] `view.columnState` was removed in @objectstack/spec 18.7.0 (ADR-0049 enforce-or-remove) — it held one column order and set of widths on a shared view row; nothing writes it any more, and a stored layout is no longer applied, so every reader sees the view's own column order and widths. The console keeps column widths in each reader's browser and saves a column order into the view itself. Delete the key. To ship a column order, list `columns` in that order (or set `fieldOrder`); to ship a width, set `width` on the column. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
| **columnState** | `never` | optional | [REMOVED] `view.columnState` was removed in @objectstack/spec 19.0.0 (ADR-0049 enforce-or-remove) — it held one column order and set of widths on a shared view row; nothing writes it any more, and a stored layout is no longer applied, so every reader sees the view's own column order and widths. The console keeps column widths in each reader's browser and saves a column order into the view itself. Delete the key. To ship a column order, list `columns` in that order (or set `fieldOrder`); to ship a width, set `width` on the column. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
| **options** | `never` | optional | Refused: a view item record carries no top-level `options` bag. Its per-kind blocks live under `config` (`config.kanban`, `config.timeline`, …); the legacy `options.KIND` bag belongs to the flattened list overlay only. |

### Nested Shape: `ViewItemWire[viewKind='list'].config`
Expand Down Expand Up @@ -2639,7 +2639,7 @@ This schema accepts one of the following structures:
| **isPinned** | `boolean` | optional | Console round-trip: the view is pinned in the object's view switcher. Written by the console's pin toggle through the `view` metadata API and read back to draw the pinned group. Stored on the view's row, which has no per-user scope. Not authored. |
| **sortOrder** | `integer` | optional | Console round-trip: the view's position among the object's saved views in the switcher, 0-based and counted over saved views only (a code-defined view carries none). Written by the console's drag-reorder and read back to order the tabs. Not authored: `order` is the authored default position. |
| **visibility** | `Enum<'private' \| 'team' \| 'organization' \| 'public'>` | optional | Console round-trip: the group the switcher files this view's tab under (private, team, organization or public). Display grouping only, NOT access control: nothing restricts who can list or open the view by this value. No console control sets it; the console carries a stored value forward when it re-saves the row. Not authored. |
| **columnState** | `never` | optional | [REMOVED] `view.columnState` was removed in @objectstack/spec 18.7.0 (ADR-0049 enforce-or-remove) — it held one column order and set of widths on a shared view row; nothing writes it any more, and a stored layout is no longer applied, so every reader sees the view's own column order and widths. The console keeps column widths in each reader's browser and saves a column order into the view itself. Delete the key. To ship a column order, list `columns` in that order (or set `fieldOrder`); to ship a width, set `width` on the column. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
| **columnState** | `never` | optional | [REMOVED] `view.columnState` was removed in @objectstack/spec 19.0.0 (ADR-0049 enforce-or-remove) — it held one column order and set of widths on a shared view row; nothing writes it any more, and a stored layout is no longer applied, so every reader sees the view's own column order and widths. The console keeps column widths in each reader's browser and saves a column order into the view itself. Delete the key. To ship a column order, list `columns` in that order (or set `fieldOrder`); to ship a width, set `width` on the column. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. |
| **options** | `never` | optional | Refused: a view item record carries no top-level `options` bag. Its per-kind blocks live under `config` (`config.kanban`, `config.timeline`, …); the legacy `options.KIND` bag belongs to the flattened list overlay only. |

### Nested Shape: `ViewItemWire[viewKind='form'].config`
Expand Down
2 changes: 1 addition & 1 deletion content/docs/upgrading.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ runtime checks that handshake **first**, before it loads anything:
```ts
manifest: {
// ...
engines: { protocol: '^18' },
engines: { protocol: '^19' },
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/qa/platform-checklist/areas/cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@
"run it with a --from BELOW the supported floor and capture the MigrationFloorError path (`Cannot migrate from protocol <N>: the chain's support floor is <F>`)",
"run it with --json where supported and check the exit code in the same way #4873 required of every other migrate subcommand",
"confirm the semantic-only entries behave as ADVISORIES: they are reported under `<N> manual change(s) require your judgment:` with their why/verify text, never silently 'fixed' (a semantic change has no mechanical rewrite by definition)",
"WRITE MODE (#9591): run `os migrate meta --help` and record the --write line. Then, on a SECOND fresh scratch copy carrying the same planted spellings, keep a byte copy of the tree and run `os migrate meta --from <previous major> --write`; capture stdout + the exit code. Read the `Wrote <N> of <M> mechanical change(s) into <K> file(s):` block (each site `:<line> <path> (<conversionId>)`), any `<N> mechanical change(s) left for you to apply by hand:` block (each with its `not written [<kind>]: <reason>`), and the closing `Re-ran the chain over the written sources: …` line. Diff the tree against its byte copy: the changed files are exactly the files the block names, plus, when the run owed the manifest's declared protocol range an edit (a tree declaring engines.protocol '^17'; the stock showcase declares '^18'), the config file that the separate 'Rewrote the declared protocol range, so the load admits protocol N:' block names with its line. That rewrite is not one of the chain's M changes, so the 'Wrote …' block never lists it, and `--json` reports it as write.range, apart from write.written[]. Each hunk sits at a listed site, and every other byte (comments, formatting, key order) is unchanged. Then, over the WRITTEN tree: re-run `os migrate meta --from <previous major>` without --write (no written site is still listed under Applied; the semantic advisories are listed exactly as before), run `--write` a second time (it writes nothing: `--write: the chain made no mechanical change here, so no file was written.`), and run `--write --json` on a third fresh copy (exit 0; the payload's `write.status` is `written` and `write.written[]` names each site with its file and line)"
"WRITE MODE (#9591): run `os migrate meta --help` and record the --write line. Then, on a SECOND fresh scratch copy carrying the same planted spellings, keep a byte copy of the tree and run `os migrate meta --from <previous major> --write`; capture stdout + the exit code. Read the `Wrote <N> of <M> mechanical change(s) into <K> file(s):` block (each site `:<line> <path> (<conversionId>)`), any `<N> mechanical change(s) left for you to apply by hand:` block (each with its `not written [<kind>]: <reason>`), and the closing `Re-ran the chain over the written sources: …` line. Diff the tree against its byte copy: the changed files are exactly the files the block names, plus, when the run owed the manifest's declared protocol range an edit (a tree declaring engines.protocol '^17'; the stock showcase declares '^19'), the config file that the separate 'Rewrote the declared protocol range, so the load admits protocol N:' block names with its line. That rewrite is not one of the chain's M changes, so the 'Wrote …' block never lists it, and `--json` reports it as write.range, apart from write.written[]. Each hunk sits at a listed site, and every other byte (comments, formatting, key order) is unchanged. Then, over the WRITTEN tree: re-run `os migrate meta --from <previous major>` without --write (no written site is still listed under Applied; the semantic advisories are listed exactly as before), run `--write` a second time (it writes nothing: `--write: the chain made no mechanical change here, so no file was written.`), and run `--write --json` on a third fresh copy (exit 0; the payload's `write.status` is `written` and `write.written[]` names each site with its file and line)"
],
"acceptance": [
{
Expand Down
Loading
Loading