Skip to content

Commit 08bc42e

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/area-o1C-37306
2 parents 9d419f7 + 57ab087 commit 08bc42e

252 files changed

Lines changed: 18223 additions & 4349 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+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(app-shell): on a phone, a list authored to open nothing opens nothing
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The Console's object list now honours an authored `navigation.mode: 'none'` and `navigation.preventNavigation: true` on a phone as it does on a desktop. Before, the phone rule that opens every record as a page ran before the authored setting was read, so on a phone a tap on such a list's card opened the record page and the card was drawn as tappable. Now the card draws no pointer and no hover wash, a tap on it opens nothing, and a `?recordId=` link to one of its rows opens no record page, as it opens no drawer on a desktop. A list that opens its records still opens them as a page on a phone.
11+
12+
On a phone a list shows each row as a card with only some of its columns, so on a `none` list the columns a card does not show cannot be reached there: declare `none` or `preventNavigation` only where the rows need no detail view.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@objectstack/spec': patch
3+
'@objectstack/platform-objects': patch
4+
'@object-ui/app-shell': patch
5+
'@object-ui/i18n': patch
6+
---
7+
8+
feat(app-shell): 「Who sees this view」 — pick a shared view's or a dashboard's audience from the known capabilities, and see which positions will see it
9+
10+
Clause-②: no
11+
Metadata-protocol: none
12+
13+
The audience gate is the existing, server-enforced `requiredPermissions` (all of the capabilities listed are required). The console now sets it from a closed list and shows who it reaches; no key, value or gate changes, and nothing is granted from the view (granting stays in Setup).
14+
15+
- **`@object-ui/app-shell`.** The view switcher's in-place create card offers 「Who sees this view」 for a shared view: the capabilities the environment knows (declared, or granted by a permission set), each with the permission sets granting it, and a read-only preview of the positions whose permission sets grant every capability picked. The preview reads each position's sets from the server (`GET /meta/position?include=grants`, the sets the resolver grants its holders), never from a position's raw definition; a list served without them leaves the positions unknown. While a gate is picked, the card says it applies to its creator too. It starts from the open view's gate, which a new shared view used to inherit silently, and the pick replaces it; an empty pick writes no gate. A failed catalog read offers nothing to type. The shared hint no longer says every shared view is seen by everyone who can see the list. In Studio, the view panel's and the dashboard settings' audience row is the new `ref-multi:capability` picker: a closed list (no typed-name box when the catalog is unread, empty or failed), each option with its granting sets, and the same preview under it. The picker reads the catalog once its row is on screen, so an editor whose audience section stays closed sends no request.
16+
- **`@objectstack/spec`.** The view and dashboard forms' `requiredPermissions` rows declare `widget: 'ref-multi:capability'` (the list is closed: a host with no catalog offers nothing to add). The view hint's last sentence now says only what holds on every carrier: the person setting the gate no longer sees the view in the list either.
17+
- **`@objectstack/platform-objects`.** The `metadataForms` bundles carry the narrowed view hint (zh-CN, ja-JP and es-ES translated; the other locales the English source).
18+
- **`@object-ui/i18n`.** The create card's new strings and the corrected shared hint, in all eleven console locales.
19+
20+
Nothing to migrate.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/skills': patch
3+
'@objectstack/mcp': patch
4+
'@objectstack/service-analytics': patch
5+
---
6+
7+
fix(ask): an AI client sends the user's whole phrase to `list_datasets`, and re-sends a word it cut or reworded instead of asking the user about it
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
An AI client answering a business question through the governed datasets often sent a shortened word ("claims" for "number of claims", "amount" for "claimed amount"). The server offers such a word only possible readings, never a match, so the client asked the user which number they meant on a question that already named it.
13+
14+
- `list_datasets`' `nextStep.note`, in all four languages, now says before the question: a word the client cut out of a longer phrase of the question, or reworded, is not asked about; the client calls `list_datasets` once more with that phrase as the user wrote it, never the whole question, and asks only when the word is the user's own. The answer to that second call is followed like any other: a phrase that matches nothing and has no candidate takes the labelled fallback to the object tools. `matches`, `candidates`, `decision` and `terms` do not change, and a measure candidate for the user's own word is still asked about, never selected.
15+
- `list_datasets`' description and the MCP `initialize` selection rule say the same, and ask for the question's business phrases whole, as the user wrote them.
16+
- The `objectstack-ask` skill (and `GET /mcp/skill`, generated from it) asks for one term per thing, its whole noun phrase without the verbs and question words around it, with one worked example.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
---
4+
5+
fix(scenarios): the seed leaves out the card values of the build's roll-ups, so a roll-up is derived from the rows the seed sends instead of stored as the end state
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A scenario card states every row as of its `asOf`, roll-up totals included: order_to_cash's 95 invoices carry `amount_paid` equal to the sum of their payments. The seed path stores a roll-up value it is sent as written, so a build that declares `amount_paid` a `summary` of its payments and caps a payment at the invoice's open balance read every paid invoice as owing nothing and refused 66 of its 72 payments.
11+
12+
`seedApp` now leaves out each card column the build declares a roll-up (`type: 'summary'`), and names them in the run record's `seed.leftOut` (`object.field`). The platform starts a left-out `count` / `sum` roll-up at 0 and adds each child row as it lands, so the invoice ends at the card's value and every payment loads. A restore re-inserts a seeded row with the same body. A formula or autonumber value is still sent: an autonumber is a name the questions cite (`INV-1058`). The card and its committed build are unchanged; a build that stores `amount_paid` as a plain number is still sent the card's value.

‎.changeset/36029-book-audience-system-permission.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Skills-docs: none — no `skills/` page teaches the book audience forms; `conten
1717

1818
A book's `audience` (ADR-0046 §6.7) takes a fourth form, `{ systemPermission: 'TOKEN' }`: the book's pages are read by a signed-in caller who holds that capability through any permission set, the same caller an app with `requiredPermissions: ['TOKEN']` opens for. `{ permissionSet }` names one set, so it could not gate a manual on a capability several sets grant (`setup.access` comes with `organization_admin`, `admin_full_access` and any delegated-admin set an application authors).
1919

20-
- **`@objectstack/spec`.** `BookAudienceSchema` and `BookAudience` gain the arm. It is strict, so `{ systemPermission, label }` is refused at parse; an object that also carries `permissionSet` still parses as the older, non-strict `{ permissionSet }` arm with the other key dropped, as before. `BookAudience` is a wider union now: TypeScript code that reads `.permissionSet` after a bare `typeof audience === 'object'` check narrows by key instead (`'permissionSet' in audience`). `AudienceCaller` gains `systemPermissions`, and `audienceAllows` admits the arm only when that list holds the token; an absent list denies (fail closed). Every other form answers as before.
20+
- **`@objectstack/spec`.** `BookAudienceSchema` and `BookAudience` gain the arm. It is strict, so `{ systemPermission, label }` is refused at parse, and an object that also carries `permissionSet` is refused too: an audience names one gate. `BookAudience` is a wider union now: TypeScript code that reads `.permissionSet` after a bare `typeof audience === 'object'` check narrows by key instead (`'permissionSet' in audience`). `AudienceCaller` gains `systemPermissions`, and `audienceAllows` admits the arm only when that list holds the token; an absent list denies (fail closed). Every other form answers as before.
2121
- **`@objectstack/rest`.** The docs audience reads the caller's own `systemPermissions` (the list every `requiredPermissions` arm of the `/meta` read gate reads) when some book carries the new form, on `GET /meta/doc` (with and without `?include=content`), `GET /meta/doc/:name`, `GET /meta/book`, `GET /meta/book/:name/tree` and the app-nav `doc` entries. New: `anySystemPermissionAudience`, and the optional `resolveAudienceSystemPermissions` port on `MetaReadGateAudienceSources` for a transport whose audience reads someone else's holdings.
2222
- **`@objectstack/runtime`.** The MCP docs tools (`search_package_docs`, `read_package_doc`) gate on the same form; on an OAuth grant they read the delegating person's own capabilities, never the token's ceiling.
2323
- **`@objectstack/setup`, `@objectstack/studio`.** Each package now ships a manual (`setup_manual`, `studio_manual`) claiming its package's doc namespace (`setup_*`, `studio_*`), gated on `setup.access` / `studio.access`. Before, those docs were claimed by no book, so they fell back to `org`: listed to administrators only by the Console's docs index, but readable at their address, and through `?include=content`, by every signed-in member. Now a member who cannot open Setup gets `setup_overview` in neither list and a `403 PERMISSION_DENIED` on its read; an administrator reads it as before. The docs' Console address now names the manual (`/apps/com.objectstack.setup/docs/setup/setup_overview`) in place of the package's implicit one; the flat `/docs/setup_overview` permalink still finds it.
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 Lookup's Related object and the roll-up's Child object take objects only
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
In Studio's field inspector, the Lookup's *Related object* and the roll-up summary's *Child object* pickers committed whatever text was typed, so a typo saved a field pointing at an object that does not exist. Neither door accepts an expression, so once the picker's object list has loaded, both commit only an object it lists: typed text that names no listed object is refused, the picker says no object is chosen, and the target the field already had stays (clearing the input on purpose still removes it). While the list is not yet read, or its read failed, the typed text is still committed as before. The trigger object in the new-automation dialog, the one other picker that takes objects only, now also keeps its chosen object on a refused typo. Objects that exist only as a pending draft stay choosable, because the picker lists the draft-overlaid catalog. Flow references keep their free text.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): objectstack-ui gains an eval case for a board's lane statistic and card settings, and the list-views note says the three keys are optional and that lanes over a lookup field get the whole-lane statistic
6+
7+
Clause-②: no (published prose and an eval case; teaches behaviour already on main)
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-ui/evals/views-apps-actions-pages.json` gains case 27: a board grouped by status whose lanes show `summary: { type: 'avg', field: 'estimate_hours' }`, with `showFieldLabels: false` and `hideEmptyFields: false`.
11+
12+
`skills/objectstack-ui/rules/list-views.md`: the example's two card settings say they are optional with default true; the note says `summary`, `showFieldLabels` and `hideEmptyFields` are optional, that the statistic covers every record of the lane, lanes over a lookup field included, and that omitting `summary` keeps the older `summarizeField` sum (or no statistic without it). The "Known gap" sentence is gone: since #36871 and #37327 a board with lanes over a lookup field reads the whole lane for all five statistics. The file sits at its token ceiling, unchanged.
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): the `objectstack-ai` skill names what replaces the two retired agent keys
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-ai/SKILL.md`: the `agent.tools` tombstone row now says where the tools go (a `defineSkill` under the stack's `skills`), and the `agent.knowledge` row names the two keys that restrict retrieval on the knowledge source (`aiExposed`, `source.where`). The words are paid for in the same file: the skill example loses one sample instruction line. No fact is removed.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/service-knowledge': patch
3+
---
4+
5+
fix(service-knowledge): a source naming an unmounted adapter is logged once at boot, not twice
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
At boot, a knowledge source whose `adapter` names a store nothing mounted was named twice: once at `error` by the boot's reading of unmounted adapters, and once more at `warn` by the first-build pass ("is not built at boot: what the adapter holds could not be read"). The first-build pass now skips such a source without a line, so the one boot line is the `error` that names the source, the adapter and the mounted choices. Nothing else changes: indexing and searching the source still answer `SERVICE_UNAVAILABLE`, and a source loaded while the process runs is still named at `warn` by its reload build, since no boot reading runs then.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
'@object-ui/plugin-grid': patch
3+
'@object-ui/i18n': patch
4+
'@object-ui/react': patch
5+
'@object-ui/layout': patch
6+
'@object-ui/app-shell': patch
7+
'@object-ui/console': patch
8+
'@objectstack/console': patch
9+
---
10+
11+
perf(console): a list page draws its rows once before they paint, and the shell re-renders less during first load
12+
13+
Clause-②: yes (narrowing)
14+
Metadata-protocol: none
15+
16+
<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value, metadata type or stored row is added, removed or renamed, so there is nothing for `objectstack migrate meta` to rewrite. What narrows is the value two React hooks of @object-ui/i18n return: `useObjectTranslation()` and `useI18nContext()` no longer carry `appContentLanguages`, which moved to its own hook. Its consumer is code, and the compiler names every reader left behind. `runtime-interface-only` does not fit on a checked fact: the context value's interface is not exported, so it cannot be named by path. -->
17+
18+
On a list page's first load the grid drew its whole table several times between the rows' first render and their first paint: once with row-end controls before the list page scope was known, once when the inline-action fold found its host, and once when the record verdicts were republished with nothing new in them. The rows now draw once, without row-end controls, and those passes are gone.
19+
20+
The shell does less during first load too. The app's own locale list lands after the console has drawn; it used to re-render every component that reads a translation, about 1,900 of them. It is now read with `useAppContentLanguages()` from `@object-ui/i18n`, and only the language menus re-render for it. `useObjectTranslation()` and `useI18nContext()` no longer carry `appContentLanguages`. A sidebar entry is not redrawn when a new capability checker gives it the same answer.
21+
22+
Nothing changes in what the list, the sidebar or the language menus show.
23+
24+
**BREAKING** (`@object-ui/i18n`, and `@object-ui/react`, which re-exports the same two hooks: their return values), shipped as `patch`: the change is not to the metadata protocol (`Metadata-protocol: none`).
25+
26+
- Removed: the `appContentLanguages` field from what `useObjectTranslation()` and `useI18nContext()` return, whether they are imported from `@object-ui/i18n` or from `@object-ui/react`. It was added there by #36040.
27+
- Use instead: `useAppContentLanguages()`, which both entries now export: `@object-ui/i18n`, and `@object-ui/react` beside the two hooks. It returns the same value, the app's declared content languages or `null` while they are unknown, and `null` outside an `I18nProvider`.
28+
- Why: the list lands after the console has drawn. While it rode on the translation context, its arrival re-rendered every component that reads a translation, about 1,900 of them on first load. In its own context only the components that read it re-render.

0 commit comments

Comments
 (0)