Skip to content

Commit 634321b

Browse files
Merge branch 'main' into claude/sec2-gpr7
2 parents cc6754e + 0967cbe commit 634321b

624 files changed

Lines changed: 41154 additions & 2918 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: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@objectstack/spec': minor
3+
---
4+
5+
feat(spec): declare the AI answer follow-up routes (saved questions, answer artifact, answer feedback) and carry `turnId` on a conversation's messages
6+
7+
Clause-②: yes (widening)
8+
Metadata-protocol: added
9+
10+
`@objectstack/spec/api` now declares the request, response and error shapes of the AI answer follow-up routes the cloud AI service serves, so the console and the client SDK can type them instead of guessing:
11+
12+
- **Saved questions.** `GET /api/v1/ai/saved-questions` (`ListAiSavedQuestionsResponseSchema`), `POST /api/v1/ai/saved-questions` (`CreateAiSavedQuestionRequestSchema` / `CreateAiSavedQuestionResponseSchema`: a typed `question`, or `conversationId` with `turnId`), `DELETE /api/v1/ai/saved-questions/:id` (204) and `POST /api/v1/ai/saved-questions/:id/run` (`RunAiSavedQuestionResponseSchema`). One saved question is `AiSavedQuestionSchema`; its `source` is the Ask data tools' `ObjectQuerySourceSchema` block.
13+
- **Answer → artifact.** `POST /api/v1/ai/conversations/:id/turns/:turnId/artifact` (`CreateAiAnswerArtifactRequestSchema` with `kind: 'view' | 'report' | 'widget'`; `CreateAiAnswerArtifactResponseSchema`, discriminated by `kind`: the caller's own list view, or a dataset plus a report or dashboard draft with `published: false`).
14+
- **Answer feedback.** `GET|POST|DELETE /api/v1/ai/conversations/:id/turns/:turnId/feedback` (`GetAiAnswerFeedbackResponseSchema`, `SetAiAnswerFeedbackRequestSchema` with `rating: 'up' | 'down'` and an optional `note`, `SetAiAnswerFeedbackResponseSchema`; DELETE answers 204).
15+
- **Errors.** Each family's `error` is `ApiErrorSchema` with its closed `code` vocabulary (`AiSavedQuestionErrorSchema`, `AiAnswerArtifactErrorSchema`, `AiAnswerFeedbackErrorSchema`) and, where the route names one, the refusal in `details.reason` (`AiSavedQuestionRefusalReasonSchema`, `AiAnswerArtifactRefusalReasonSchema`). Each `code` list holds the route handler's codes and the framework door's, which answers ahead of the handler: `UNAUTHENTICATED` (401, no session), `NOT_IMPLEMENTED` (501, no AI served) and `SERVICE_UNAVAILABLE` (503, AI routes not yet published).
16+
17+
A persisted conversation's messages may now carry the turn they were written under: `AiConversationSchema.messages` is `AiConversationMessageSchema` (`AiMessageSchema` plus a `turnId` that may be absent or null), and the `AIConversation` contract's `messages` are `AIConversationMessage` (`ModelMessage` plus `turnId?: string | null`). A stored conversation whose messages carry no turn, absent or null, still parses, and a service that writes none still satisfies the contract.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
fix(console): creating a package answers with a toast naming the new package
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
Creating a package (Studio's *New app*, the Studio package switcher's *New package*, and the Packages page) closed the dialog and moved on with nothing on screen saying the write landed. The create dialog now shows a success toast naming the new package by its display name: "Created package “NAME”." (zh: 已创建软件包「NAME」。). A refused create shows no toast and keeps its message in the dialog, as before; saving an edit is unchanged.
12+
13+
New locale key: `engine.packages.create.created` in the studio catalogue (en, zh). No props or exports change.
14+
15+
Revoke on a granted suggested binding in Studio Access already answers with its toast ("“SET” is no longer granted by default."); a new pin on the Studio mount holds it.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/plugin-detail': patch
4+
---
5+
6+
fix(record-page): an authored record page's feed panels show the record's field history, and offer Field Changes
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
On an authored (assigned) record page, a `record:discussion`, `record:chatter` or `record:activity` panel never showed who changed which field from what to what, never offered the Field Changes filter, and an authored `filterMode: 'changes_only'` silently opened on All Activity. The record page read the audit log only for the page it synthesizes.
12+
13+
Now, on an object with `enable.trackHistory`, the record page reads the record's field history (the newest 50 audit entries, plus one user-name lookup) while one of those panels is on screen, at open or when its tab opens; a page with no such panel on screen, or an object without `trackHistory`, reads nothing more. The panel merges the field changes into its feed the way the default page's activity stream does: an update that wrote both an activity row and an audit entry is one row, now showing its before and after values; a change with no activity row is its own row; and an `updated` activity row with no audit entry steps aside, as on the stream. Field Changes is offered, and an authored `changes_only` holds those changes, exactly when the reader's audit read answered: a reader the server refuses the audit log to is offered no Field Changes, as before. A panel authored with `unifiedTimeline: false` shows no field changes and offers no Field Changes.
14+
15+
Visible change on existing authored pages: on a `trackHistory` object, a feed panel's All Activity now includes the field changes with their before and after values, and its filter gains Field Changes. The default record page is unchanged. `@object-ui/plugin-detail` adds `mergeFieldHistoryIntoFeed` to its `recordTimelineStream` module (not re-exported from the package entry); no locale keys, props or entry exports change.
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(console): the Marketplace package page names a suggested binding's permission set by its label
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
After a package that suggests a default audience binding is installed, the Marketplace package page shows "this app suggests granting SET to Everyone" with Grant and Dismiss, and later the accepted line with Revoke. Its prompt, its state lines and its Grant, Dismiss, Revoke and Reopen toasts named the permission set by its machine name (`crm_user`). They now name it by its label (`CRM user`), read from the package's own permission sets as this runtime serves them (`list('permission', { packageId })`, the read the Studio Access rail makes). A set with no label, or a read that is refused or fails, names the set by its machine name, with no error shown.
11+
12+
The Studio Access mount of the same banner and this page now draw the name through one shared helper, `suggestedSetLabel` (`components/suggestedSetLabel.ts`), so the two mounts cannot name the same set differently. No locale keys, props or exports change.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/service-settings': patch
3+
---
4+
5+
fix(settings): Setup → Access policy explains its five fields in the admin's language
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
On Setup → Access policy, the help under Allowed IP ranges, Idle timeout, Absolute session lifetime, Max concurrent sessions per user and Require multi-factor authentication showed the English manifest description in every translated locale, because no locale bundle carried a `help` for those keys. All ten translated locales (zh-CN, zh-Hant, ja-JP, ko, de, es-ES, fr, pt-BR, ru, ar) now carry `settings.access_policy.keys.KEY.help` for each of the five, translated from the English description. The settings translation coverage test no longer exempts them: its shrink-only owed-help list is empty, so every described settings field is held to a translated help in every locale. No keys, labels or option values change.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/console': patch
4+
---
5+
6+
fix(console): Studio condition editors list fields by their label
7+
8+
Clause-②: no (`@object-ui/app-shell` is `"private": true`; flipping the `labelSubjects` default reaches no published export)
9+
Metadata-protocol: none
10+
11+
The subject list of every Studio condition editor now offers a field by its label, with its CEL path (`record.status`) beside it as secondary text: a hook's "Run only when", an action's "Visible when" and "Disabled when", a page block's "Visible when", and the generic condition field of the metadata forms. The flow Entry condition and the object Validations panel already did. A field with no label, or whose label only repeats its name, still reads as its path. The compiled condition is unchanged.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
---
4+
5+
fix(metadata-protocol): global search titles a hit by the referenced record's title when the object's `nameField` is a reference field
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`searchAll` (the ⌘K palette and global search) titled a hit by the stored value of the object's primary-title pointer. When that pointer is a reference field (`lookup`, `master_detail`, `user` or `tree`), the stored value is the target record's id, so the hit was titled by a raw key while the record page header named the target. The title now follows the reference to the target record's own title (its `nameField`).
11+
12+
- The target titles are read in one `id $in` read per searched object, never one per hit, selecting `id` and the title column only.
13+
- The read runs as the searching user: the target's object permission, row scope and field-level security apply. A reader refused the target object, the row or its title column keeps the bare id, as `$expand` answers that reader on a field that does not declare `referenceNameVisible`. A target whose declared API exposure does not serve `get` is not read.
14+
- A target read that fails for any other reason fails the search, as a failing record read in the same sweep already does.
15+
- The hit's shape is unchanged: `record` still carries the stored id, and only `title` changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/plugin-detail': patch
3+
'@object-ui/fields': patch
4+
---
5+
6+
fix(plugin-detail): a long text summary roll-up wraps on the record page, and the summary's read display follows dark mode
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
A summary (roll-up) field whose value is text read on the record page cut to one line with an ellipsis, the whole value only in a hover tooltip, as a formula did before. The record page's field rows now read a summary through the summary field's own read display, the face the record form draws, so the whole value shows and wraps. A number or money roll-up reads the same text it did.
12+
13+
That read display used a fixed grey text colour that stayed the same in dark mode. It now uses the theme's foreground colour, so a roll-up reads at full contrast in both themes.
14+
15+
What does not change: list and grid rows keep the one-line cell with the whole value in its tooltip, and the record page's highlights strip keeps its face. A host that registered its own `summary` face keeps it on the record page. No metadata key, value or default changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/console': patch
4+
---
5+
6+
fix(console, app-shell): discovery starts with the session check, and Setup's open no longer reads the whole object registry
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
The console asked for `GET /api/v1/discovery` from its main bundle, after the session check had answered and the bundle had downloaded, and the data layer waited for it before the first permission and app reads. `index.html` now sends it during parse, beside `get-session`, and the console's one shared discovery read takes that request, so it is no longer a round trip of its own in the boot.
12+
13+
Opening Setup (the root of an app whose package holds no objects of its own) read the package's empty object list and then the whole object registry. The root now reads as that app's object routes do: the package list, then the objects its entries require (`requiresObject`), and an object the entered app's bundle holds is answered from the bundle without a request. On the showcase app the registry is about 860 KB; Setup's open there now reads two object lists that answer empty instead.
14+
15+
What does not change: the routes that read the whole registry before (a record overlay, a record route with no declared record page) still do; which entries the sidebar shows is unchanged. No metadata key, value or default changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/runtime': patch
3+
---
4+
5+
fix(runtime): an AI service account refused a confirmation-gated flow start now gets `details.reason: 'service_account'`, as the action door gives it
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
When an AI service account starts a flow by name (`POST /api/v1/automation/:name/trigger` or the older `POST /api/v1/automation/trigger/:name`) and an action that targets the flow declares `ai.requiresConfirmation: true`, the route refuses it with `428 ACTION_CONFIRMATION_REQUIRED`. That refusal's `details` named the action, its object and the confirmation member, but not the reason. Every action door already gives the same account `details.reason: 'service_account'`. The flow-start refusal now carries it too, so a client that branches on the reason handles a refused flow start the same way it handles a refused action.
11+
12+
What does not change: the code, the status, the message and the other `details` members are the same. A person and an OAuth-delegated agent start the flow as before. No metadata key, value or default changes.

0 commit comments

Comments
 (0)