Skip to content

Commit e5898ad

Browse files
committed
Merge origin/main into the skills action examples branch
Two conflicts. Main replaced the Ask AI section of skills/objectstack-ai/SKILL.md, the example this branch edited included, so main's side of that file is kept and this branch no longer changes it. In scripts/check-skills-token-ratchet.mjs that file's row is main's 6609 with main's notes; the two rows this branch still moves measure 2256 and 3844 on the merged tree, as before. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibztwLPZEpzDMBn2GM6
2 parents d7c3960 + 4de4e3e commit e5898ad

166 files changed

Lines changed: 7712 additions & 771 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+
'@object-ui/auth': patch
3+
'@object-ui/app-shell': patch
4+
'@object-ui/i18n': patch
5+
'@object-ui/console': patch
6+
---
7+
8+
fix(auth): a cloud-managed runtime's password refusal is shown in the session's language and points at the identity provider's button
9+
10+
Clause-②: yes (widening) — `@object-ui/auth` `ForgotPasswordFormProps` gains the optional `errorMessages`; `@object-ui/i18n` gains `auth.login.errors.managedPasswordSignIn` and `auth.login.errors.managedPasswordReset` in every locale
11+
Metadata-protocol: none
12+
13+
A cloud-managed runtime refuses the password doors (sign-in, forgot password, reset password, set password) with 409 `RESOURCE_CONFLICT`. Its code never reached the pages. The hosted relay and the set-password route answer in the platform's error envelope, `{ success: false, error: { code, message } }`, which the auth client did not read. Forgot and reset dropped the code where the client threw. So each of those pages showed the server's English sentence or `Auth request failed with status 409`, whatever the language.
14+
15+
- **`@object-ui/auth`.** The client's error builder reads `code`, `message`, `details` and `userMessage` from the envelope's `error` when the flat body has none; a better-auth refusal answers exactly as before. `forgotPassword`, `resetPassword` and `setInitialPassword` now keep the refusal's code and status too. `ForgotPasswordForm` gains an `errorMessages` prop, the same code-to-text map `LoginForm` takes; without it the server's message is shown as before.
16+
- **`@object-ui/app-shell`.** `signInRefusalMessages` maps `RESOURCE_CONFLICT` to a sentence that says the deployment signs people in through its identity provider and points at its button above the form. The new `passwordDoorRefusalMessages` carries the matching sentence for the forgot, reset and set-password doors, and the package's forgot-password page passes it.
17+
- **`@object-ui/i18n`.** Two keys, `auth.login.errors.managedPasswordSignIn` and `auth.login.errors.managedPasswordReset`, in every locale.
18+
- **`@object-ui/console`.** The forgot-password, reset-password and set-password pages show the same sentence.
19+
20+
On the sign-in door only a cloud-managed runtime answers this code, so a self-hosted sign-in is unchanged. On the reset and set-password doors a self-hosted deployment answers the same 409 `RESOURCE_CONFLICT` in two cases: an account its identity provider provisions while SSO-only mode is on, and a pending SSO person not yet signed in. Those pages now show the same localized sentence in place of the server's English one; it is true for that reader too. Nothing to migrate.
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.
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/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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/plugin-chatbot': patch
3+
---
4+
5+
refactor(plugin-chatbot): move `ChatbotEnhanced`'s tool-card renderer into `src/chat/toolDetail.tsx`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A move-only split of `ChatbotEnhanced.tsx` with no behaviour change. The detailed tool card (`renderToolDetail`: the collapsible tool header and payload, the decision line, and the sample-data cleanup, package removal, record write and record hand-off cards) is now a module-level function in `src/chat/toolDetail.tsx` that the component calls with one context object. The rendered element tree is unchanged, and so are the package entry points (`index.tsx`, `core.ts`) and the published API.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@objectstack/knowledge-pgvector': patch
3+
---
4+
5+
fix(knowledge-pgvector): `dropSource` removes a source that another process is building, and that build cannot bring it back
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`IKnowledgeAdapter.dropSource` drops every generation of a source, "the one under construction included". On the pgvector store two cases did not hold while another process was building the same source and held its builder lock. Both were measured on a live PostgreSQL 16 with pgvector.
11+
12+
- **A generation a concurrent `beginBuild` opened survived the drop.** When the drop waited on the row lock of a build that was opening its generation, the drop's locking read could not see the row that transaction inserted. The drop then retired only the active generation, and the new one stayed `building`, holding whatever the build wrote next. The drop now locks the source's rows and then retires every generation in one statement of its own, so the generation opened by the transaction it waited on is retired too.
13+
- **The other build's next write brought the dropped source back.** Its builder lock was still held, so its next page found no generation and opened a new active one. The store then served whatever that build wrote from that point on. A build's write, listing and completion now go only to the generation that build began. When that generation is gone, because the source was dropped in any process or another build replaced it, the call is refused `LOCK_CONFLICT` (409) and the build ends and lets go of its lock. A completion with no write since the drop is refused the same way. Before, it threw an error with no code.
14+
15+
A drop of a source that holds nothing, racing a `beginBuild` that opens the source's first generation, is still settled as drop-then-build: the build's generation is kept. Event-sync writes are not fenced. 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): the `objectstack-ai` skill describes the refusal the two retired agent keys get today
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-ai/SKILL.md`: the paragraph above the retired-key table called `agent.tools` and `agent.knowledge` tombstones whose parse error carries its migration, and cited two line numbers of `agent.zod.ts` that no longer point at either key. Both tombstones left the schema in protocol 18. The paragraph now says what the strict `AgentSchema` does: it refuses each as an unknown key, and the refusal names https://objectstack.ai/docs/protocol-upgrade. The table header says the same in short. In the `agent.tools` row, the clause that said a migration deletes the key and names each listed tool now says the strict schema refuses the key as unknown: the conversion that did that left the load path in 17.0.0. The replacements both rows teach are unchanged, and the file is 4 tokens shorter.

0 commit comments

Comments
 (0)