Skip to content

Commit 27b7a29

Browse files
committed
Merge origin/main into claude/area-o1C-37957
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
2 parents 6747f6f + 581ae76 commit 27b7a29

478 files changed

Lines changed: 11529 additions & 678 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
fix(spec): the published JSON Schema names every refinement it drops, however deeply it is nested
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The generator's dropped-refinements census stopped walking a schema after 14 hops and still printed "all declared". A rule nested deeper was missing from the file's `x-dropped-refinements` annotation. The walk now has no depth limit; its identity-keyed visited set ends it. A walk that does not end now fails the build with the export and path named, instead of stopping early in silence.
11+
12+
Three published files under `json-schema/api/` now list sites they missed before: `InstalledPackageAtEitherStage` (1 more), `GetInstalledPackageResponse` (5 more) and `ListInstalledPackagesResponse` (8 more). The set of documents any schema accepts is unchanged, because `x-` keywords are ignored by every validator. Nothing to migrate.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/formula': patch
3+
---
4+
5+
fix(formula): `inferFormulaReturn` answers `number` for a proven plain number whose CEL type is `dyn`, so Studio withdraws a stale `currency` on a field-over-field quantity edit
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A field read is `dyn` to cel-js, so an operator over two field reads types `dyn`. `inferFormulaReturn` answered such an expression `{}` (unproven) even when its unit proof had read every operand as a declared number. Studio's formula inspector withdraws a declared `currency` only on a `number` answer, so an author who edited `record.amount * 0.1` into `record.quantity * record.hours` kept `returnType: 'currency'` and its `currencyConfig`, and the value was still drawn as money.
11+
12+
FROM `inferFormulaReturn('record.quantity * record.hours', fields)` → `{}` TO → `{ returnType: 'number' }`, over a field map that declares both as plain numeric fields. The same holds for every expression the unit proof proves a plain number whose CEL type is `dyn`: `record.quantity / record.hours`, `record.quantity + record.hours`, `quantity * hours`, a ternary or `max` over two quantities, and a ratio of two amounts in one currency (`record.amount / record.tax`). Money over two field reads (`record.amount * record.quantity`) still answers `currency`. What the proof cannot follow still answers `{}`: a ratio across two currencies, anything divided by an amount, an amount times an amount, an operand whose unit cannot be read.
13+
14+
A quantity read through a relationship (`record.account.employee_count * 2`) still answers `{}`: the related object's fields are not an input to `inferFormulaReturn`, so the leaf's unit cannot be read, and a declared `currency` is kept on that edit. The function's header now records this as an accepted limit.
15+
16+
Nothing to migrate. A caller that read `{}` for these shapes as "keep the declaration" now gets `number`, which means proved not money.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
fix(spec): the `enable.trash`, `versioning`, `audit`, `auditTrail`, `trackChanges` and `feedTracked` refusals point at the field-history model that runs, not at `trackHistory`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Four retired-key refusals and two field-key renames told an author to use per-field `trackHistory` for field history. On a field, `trackHistory` only opts a media or structured-JSON type into old → new values, and `false` turns nothing off; on the object, `enable.trackHistory` opens the history ledger, not the values. So an author following the refusal set a flag that did not do what it said.
11+
12+
The `enable.trash` and `versioning` refusals now say that field history is on by default: a changed field's old → new values show on the record activity timeline, except a media or structured-JSON field, which opts in with `fieldHistory: true`; `enable.fieldHistory: false` turns them off for the object, and a field opts out with its own `fieldHistory: false`. A `lifecycle` policy stays the answer for retention. The field-key refusals for `audit` and `auditTrail` say to delete the key, because values already show by default, and name `fieldHistory: false` as the field's off switch (`fieldHistory: true` opts a media or structured-JSON field in).
13+
14+
The field spellings `trackChanges` and `feedTracked`, which were refused with a rename to `trackHistory`, now get the same answer as `tracked`: values show by default, `fieldHistory: false` turns them off for the field (`true` opts a media or structured-JSON field in), and `enable.fieldHistory: false` turns them off for every field on the object.
15+
16+
Wording only: every key that was refused is still refused, and nothing is newly refused. Nothing to migrate.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
fix(spec): the Studio hook form offers `refusals` and `texts` only where a hook may declare them
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`hookForm` offered the `refusals` and `texts` rows on every hook. `HookSchema` refuses both keys on an `expression` body, so an author writing an expression hook was offered two sections that could only make the save fail. Both rows now carry a `visibleWhen` that is the schema's own test: they are shown for a `js` body, and for a hook with no body and a non-empty `handler`, and hidden on an `expression` body. What a hook may declare does not change. Nothing to migrate.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): `objectstack-ai` names the `os validate` rules for a `knowledge_source`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-ai` § Knowledge Sources (RAG) now lists what `os validate` and publish report for a knowledge source, by rule id, with the fix for each. `knowledge-source-object-unknown`: `source.object` is no object of the stack or its packages; on the CLI it is a warning while the manifest declares a dependency that `packages[]` does not carry. `knowledge-source-field-unknown`: a `content` or `metadataFields` member is no field of the object (`id` and the injected system columns resolve). `knowledge-source-object-not-searchable`: the API does not serve the object for `search`. `knowledge-source-system-object-not-ai-readable`: a `sys_` object without `enable.aiReadable: true`. `knowledge-source-field-never-indexed` is a warning for a credential-class or `internal: true` member, which the index never carries. An error refuses the publish. The section's example passes `os validate` with no knowledge-source finding.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/lint': patch
3+
---
4+
5+
feat(lint): warn when a select option `color` renders neutral on the option badge
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A new warning, `field/option-color-renders-neutral`. An option is coloured only by the colour its author declares, and the option badge paints exactly two spellings: one of the nine palette families (`gray`, `red`, `orange`, `yellow`, `green`, `blue`, `indigo`, `purple`, `pink`, lowercase) or a `#rgb` / `#rrggbb` hex. Any other declared colour (`teal`, `amber`, `Red`, `rgb(…)`, `#rrggbbaa`, a hex with no `#`) rendered neutral grey with no signal. It now draws a warning naming the option and a fix line: the lowercase family or the `#`-prefixed / alpha-free hex when the value points at one, otherwise the families and the hex form.
11+
12+
It runs on `os validate`, `os build` and `os lint` over object fields, object-extension fields, picklists and picklist extensions, and at the metadata save door on `object` and `object_extension` writes, where it rides back as an advisory. Nothing is refused: `SelectOption.color` still accepts any string, and charts and gantt bars still paint a CSS colour name. `os lint --strict` fails on it, as on every warning. `os explain field/option-color-renders-neutral` gives the per-surface reading. Published from the root entry: `FIELD_OPTION_COLOR_RENDERS_NEUTRAL`, `OPTION_COLOR_FAMILIES`, `isBadgePaintableOptionColor`, `lintOptionColors` and the type `OptionColorPicklist`.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(app-shell): the metadata form's field picker reads an object's fields from the object document the server serves
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The `field-selector` picker in the metadata forms asked for an object's fields at `/api/v1/objects/:name/fields`, a path no ObjectStack server mounts, so every load ended in the picker's failure state. It now reads the object document at `GET /api/v1/meta/object/:name` (draft-overlaid, as the other field pickers in the metadata forms read it) through the console's metadata client, which still sends the stored sign-in token. A name that matches no object now reads as "Object not found" rather than as a failed request. No server route is added and the widget's configuration (`dependsOn`, `reference`, `multiple`) is unchanged.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@object-ui/fields': patch
3+
'@object-ui/components': patch
4+
'@object-ui/types': patch
5+
---
6+
7+
fix(ui): the rich-text cell text, the read-only `data-table` warning and the `onBatchSave` refusal describe the one editing model the grid has
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
The list grid has one way to edit: select-first, each committed cell saved at once. Three shipped texts still described the retired staged model or named the wrong thing to mount.
13+
14+
- **`@object-ui/fields`.** The README's "grid cell editor's face" section and the `FieldEditWidget` comment on the rich-content cell panel no longer say that a grid without `cellSelection` opens the `markdown`, `html` or `richtext` box over the cell and keeps its text for the grid's save buttons. The grid edits only in its select-first model, and it opens the box in a panel under the cell: Enter is a new line, Ctrl/Cmd+Enter or a click outside saves, Esc discards.
15+
- **`@object-ui/components`.** The console warning for an editable `data-table` that renders read-only now tells the host to mount `GridCellSelectionProvider`. It named `GridCellSelection`, which is the context's value type and cannot be mounted. The table's host-injected cell editor no longer checks for the select-first model on each key, because an editor only opens inside that model. Tab and Ctrl/Cmd+Enter behave as before.
16+
- **`@object-ui/types`.** The `data-table` schema's refusal of `onBatchSave` names its successor: `onBatchSave` → `onRowSave` on `object-grid`. Render an `object-grid`, which writes each committed cell through its data source, or pass `onRowSave` inside a `GridCellSelectionProvider` from a React host, and delete the key. It used to point the author at a toast or an `action:button` node. The key is refused exactly as before.
17+
18+
Nothing to migrate.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@object-ui/plugin-chatbot': patch
3+
---
4+
5+
Clause-②: no
6+
Metadata-protocol: none
7+
8+
A model picked in the chat composer now stays picked after you send. The composer cleared its message box by resetting the whole form, and the model picker in that form answered the reset by switching back to the default model, so the next question silently ran on the default. Sending now clears only the message box.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/runtime': patch
3+
'@object-ui/core': patch
4+
'@object-ui/app-shell': patch
5+
---
6+
7+
Clause-②: yes (widening)
8+
Metadata-protocol: none
9+
10+
A declarative `operation: 'update'` action now tells the person about the validation warnings its write raised.
11+
A `severity: 'warning'` rule lets the save through and answers `warnings`, and the edit form shows them; the
12+
button that performs the same write answered only its success. The action's answer
13+
(`POST /api/v1/actions/:object/:action`, and MCP `run_action`) now carries the write's `warnings`, in the data
14+
door's own element shape, present only when the write raised one. The console's action runner raises the
15+
success toast on its warning variant with the rule's words under the title, and keeps the Undo button; an action
16+
whose success toast is turned off still shows the warning. `ToastHandler` options gain an optional `description`.

0 commit comments

Comments
 (0)