Skip to content

Commit 0292183

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-jju3py
2 parents b28dc72 + e5213e7 commit 0292183

238 files changed

Lines changed: 13185 additions & 923 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/service-messaging': patch
3+
---
4+
5+
fix(messaging): the preference filter reads every preference row of a topic, not an unordered first 10,000
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
When a notification is sent, the preference filter reads the organization's preference rows for the event's topic and for the `*` topic. Each was one read capped at 10,000 rows with no order, so in an organization holding more rows than that for one topic, an undefined subset was left out, and a recipient whose own opt-out, digest or quiet hours fell in it was notified as though the row did not exist. Each topic is now read to the end in pages of 1,000 rows ordered by `id`, each page starting after the last `id` of the one before, and only the recipients' rows and the organization's default are kept. A read that cannot move past a full page is refused rather than used, and the filter then delivers on every channel and logs a warning, as it already did for any failed preference read.
11+
12+
No exported type, option or signature changes.

‎.changeset/35526-calldata-relation-disabled-package.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55

66
fix(runtime)!: `callData`'s aggregate arm and no-protocol query fallback refuse a relation condition on a disabled package's object, the answer the data route already gives
77

8-
Clause-②: no (narrowing: for a non-system caller, `callData`'s `aggregate` arm and its `query` fallback on a host with no protocol service refuse a nested-relation condition whose target belongs to a disabled package with 404 `OBJECT_PACKAGE_DISABLED`, where they answered the count or the matching rows)
8+
Clause-②: yes (narrowing: adds the root export `objectPackageDisabledError` to `@objectstack/metadata-protocol`; for a non-system caller, `callData`'s `aggregate` arm and its `query` fallback on a host with no protocol service refuse a nested-relation condition whose target belongs to a disabled package with 404 `OBJECT_PACKAGE_DISABLED`, where they answered the count or the matching rows)
99
Metadata-protocol: none
1010

1111
<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed or renamed, and nothing stored is rewritten: the moved answer is what the data route already answers for a relation condition on a disabled package's object. A caller that needs those records re-enables the package. -->
1212

1313
**BREAKING** for a non-system caller of `callData` on an environment that disables a package: the `/mcp` HTTP bridge's `aggregate_records` tool, and any host door that hands a caller's `where` to this function. A disable takes the package's records off the data plane: the data route answers its objects `404 OBJECT_PACKAGE_DISABLED`, and it refuses a nested-relation condition (`{ "lookup": { "field": VALUE } }`) on such an object the same way. `callData`'s `aggregate` arm never reaches the protocol, and on a host that registers no protocol service neither does its `query` fallback, so both still lowered the condition through the engine: a count came back 1 for the stored value and 0 for any other, a yes/no answer on a field of an object nobody may read.
1414

1515
- FROM: the condition was evaluated and the count (or the matching rows) returned.
16-
- TO: the call is refused `404 OBJECT_PACKAGE_DISABLED`, naming the disabled object as `object` and the condition's position as `param` (for example `where.b_ref`), before the engine reads anything. The error is the data route's own.
16+
- TO: a condition directly beneath a lookup of the queried object is refused `404 OBJECT_PACKAGE_DISABLED`, naming the disabled object as `object` and the condition's position as `param` (for example `where.b_ref`), before the engine reads anything. The error is the data route's own.
1717

18-
The fix: re-enable the package to filter on its records again, or filter on the lookup's stored id. An environment with no disabled package sees no change. A system context (an in-process caller, such as a hook's `ctx.api`) is not changed: it is still answered the count.
18+
The fix: re-enable the package to filter on its records again, or filter on the lookup's stored id. An environment with no disabled package sees no change. A system context handed to `callData` is not changed by this entry: it is still answered the count. (A hook's `ctx.api` is not such a caller: it reaches the engine directly and never passes through `callData`.)
1919

2020
`@objectstack/metadata-protocol` now exports `objectPackageDisabledError`, the one constructor of that refusal, so the runtime raises the same error instead of a copy. No behaviour of that package changes.
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): a hook's or action's `ctx.text` key is read as literal at save only when its closing quote ends the argument
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The save doors of `HookSchema` and `ActionSchema` read the text keys a body asks for literally (`hookTextKeysAskedIn`) and refuse one that `texts` does not declare. The reading stopped at the closing quote, so a key built from a literal — `ctx.text('follow_up' + suffix)`, `ctx.text?.('follow_up' + suffix)`, `ctx.text('follow_up'.concat(suffix))` — was read as a literal ask for `follow_up` and refused at save, though the body would run correctly once the built key is declared. The published reading already left a computed value to the run-time refusal; the save now agrees with it.
11+
12+
A key is literal now only when its closing quote is followed by `,` or `)`, after optional whitespace. Every literal ask the save refused before is still refused, in the same words: `ctx.text('key')`, `ctx.text('key', params)`, `ctx.text?.('key', params)`, a backtick key with no hole, and a key whose quote is followed by a comment or a line break before the comma or close. A key built from a literal is refused when the hook or action runs, naming the key, as any other computed key is. No author action is needed.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/connector-slack': patch
3+
---
4+
5+
feat(connector-slack): `ConnectorSlackPlugin`'s static bot `token` is optional
6+
7+
Clause-②: yes (widening)
8+
Metadata-protocol: none
9+
10+
A deployment that only delivers Slack DMs with each organization's own token now composes the plugin without a placeholder: `new ConnectorSlackPlugin()` or `new ConnectorSlackPlugin({ fetchImpl })` registers the `slack` client service for caller-held tokens and skips the flow `connector_action` connector, logging that once at boot. An empty-string `token` reads the same as an absent one. With a token, behaviour is unchanged: the `slack` flow connector is registered exactly as before.
11+
12+
`ConnectorSlackPluginOptions` is now `SlackConnectorOptions` without `token`, plus `token?: string`; the constructor's options argument is optional. `SlackConnectorOptions.token` and `createSlackConnector` are unchanged (the connector still needs a token).
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/service-analytics': patch
3+
---
4+
5+
fix(service-analytics): the draft preview answers `$contains` on a multi-value field as membership, as the published dataset does
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The draft preview (`POST /api/v1/analytics/dataset/query?preview=draft`, what Studio's preview mode reads) evaluated `$contains` as a case-folded substring of the value's string form on every column. On a field declared multi-valued (`multiple: true`) or stored as JSON (`tags`, `multiselect`, `json`, …) that searched the drafted list as text: `$contains: 'a'` counted a row holding `['ab']` or `['A']`, and `$contains: 'a,b'` counted a row holding `['a', 'b']`. The published dataset counts none of them, so a drafted chart showed numbers that changed at publish.
11+
12+
On such a field the preview now asks whether the comparand is a member of the stored list, reading the comparand as every SQL face does (`'1'` names the string `'1'` or the number `1`; a nested list, an object or a value that is not a list holds no member). On any other column it is the case-exact substring of a stored string, the `$contains` family's rule everywhere else on the platform: `$contains: 'acme'` no longer matches `ACME Corp`, and a stored number never contains a substring.
13+
14+
`$notContains` was refused `INVALID_FILTER` / 400 on the preview; it is now answered, as the exact complement, with the same answers the live faces give (a row with no value satisfies it).
15+
16+
A drafted filter that relied on the preview's case folding (`$contains: 'acme'` over `Acme`) now counts what the published dataset counts; write the case the data holds. `$icontains` is still refused on the preview.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(console): the left sidebar resizes by its right edge, the collapsed sidebar floats as a card, and a menu opened from the float no longer leaves it folded with the menu cut off
7+
8+
Clause-②: yes (widening) — one new `@object-ui/i18n` key (`sidebar.resize`) in all 11 locales; no spec, schema, server or published export change
9+
Metadata-protocol: none
10+
11+
- **Resize** (`@object-ui/app-shell`): from 768 px up, the docked sidebar's right edge drags it between 200 and 350 px; a double-click comes back to 256; ← → move it 16 px, Home and End to either end. The width is kept in this browser (`console.sidebar.width`) and the menu floating over a collapsed sidebar takes it too. A phone's drawer keeps its own width.
12+
- **The float is a card:** 8 px off the window's left, top and bottom edges, with rounded corners, a border and a shadow; the page under it is not dimmed or moved. Resting the pointer at the window's left edge still floats it and moving away still folds it.
13+
- **A menu opened from the float keeps it out:** pressing the app name (or the account, or an entry's `…`) while the float was still sliding in under the pointer opened the menu and folded the float a moment later, leaving the menu cut off at the window's left edge. A press in the float now stops the fold's clock, and the fold does not happen while a menu or dialog is open, or while the pointer is on the float.
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+
---
4+
5+
feat(console): the ⌘K palette's "Current page" group offers the list's "Add view" and the record's "Edit"
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Opened with nothing typed, the command palette's "Current page" group now carries the page's own main entry beside its favorites row:
11+
12+
- **On an object's list**: "Add view", listed exactly where the view switcher offers "Add view". Enter opens the switcher on its in-place create card, or, for a host that offers only the Create View dialog, opens that dialog.
13+
- **On a record page**: "Edit", the header's own Edit. It runs what the header button runs (the record form, or the page's edit state), and it is off exactly when the button is off: a `userActions.edit.disabledWhen` that holds, the state lock, or a live inline draft the header greys Edit for, with the header's reason under it. A record an approval locks, a record already in its edit state and a record shown in a drawer or pane over a list offer no Edit row.
14+
15+
The footer names what Enter does ("Add view ↵", "Edit ↵"), in the controls' own words. Nothing is recomputed in the palette: the list and the record page publish the command beside the control while they draw it. No locale keys, props or package exports change.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
'@object-ui/plugin-detail': patch
3+
'@object-ui/plugin-grid': patch
4+
'@object-ui/components': patch
5+
'@object-ui/types': patch
6+
'@object-ui/i18n': patch
7+
'@objectstack/spec': patch
8+
---
9+
10+
feat(record-page): one field's change history, opened in place from the field or from a list cell's context menu
11+
12+
Clause-②: yes (widening) — three new `detail.*` language-pack keys in every locale `@object-ui/i18n` ships (`fieldHistory`, `fieldHistoryNone`, `fieldHistoryNoneRecent`); new exports from `@object-ui/plugin-detail` (`FieldHistoryButton`, `FieldHistoryCard`, `FieldHistoryPopover`, `useFieldHistory`, `useFieldHistoryOffered`, `fieldHistoryOffered`, the constants `FIELD_HISTORY_PAGE_SIZE`, `FIELD_HISTORY_SCAN_BATCH` and `FIELD_HISTORY_SCAN_BATCHES_PER_LOAD`, and their types); an optional `column` member on the context `data-table` hands a host's `renderRowContextMenu`; `FieldChangeItem` draws no label for `label: ''`; nothing is removed or renamed
13+
Metadata-protocol: none
14+
15+
A reader can now see one field's past changes on one record without reading the whole activity stream.
16+
17+
- On the record page, each field of the object has a history button beside its value, shown on hover and focus like the copy button. In a list, right-clicking a cell of a field the object declares adds 「Change history」 to the row's menu. Both open the same small card in place. Neither is offered on a field whose old → new values are not recorded (`fieldHistory: false` on the field, `enable.fieldHistory: false` on the object, a credential field, or a media or JSON-like type that does not opt in), judged by the same `resolveFieldHistory` the audit writer keeps values by.
18+
- The card lists only that field's changes: who, when, and old → new in the reader's words (an option by its label, an empty side as the pack's word for empty), newest first, ten at a time with 「Load more」.
19+
- A field never changed reads 「No changes recorded」 with who created the record and when.
20+
- The changes are the record's activity rows the server already serves, narrowed to the reader: a change of a field the reader may not read is never sent. A field the reader may not read offers no entry point at all. The full audit log is not read.
21+
- The rows are read by record, newest first, fifty at a time, keeping those that changed the field; a query naming the change columns is refused for a reader withheld any field of the object, so the field is never part of the query. Opening the card reads at most four batches, and each 「Load more」 at most four more; when they hold no change of the field and older rows remain, the card reads 「No changes in the recent activity」 and offers 「Load more」 to read on.
22+
23+
`@objectstack/spec`: the authoring hint for the mistyped field key `tracked` now names what turns one field's change history on or off today (`fieldHistory: false`, `true` for a media or JSON field, `enable.fieldHistory: false` on the object), where it named `trackHistory: true`, which changes nothing for most field types. Wording only; `tracked` stays rejected.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/service-messaging': patch
3+
---
4+
5+
fix(messaging): the approval Slack DM links the Console page under its mount
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The Slack channel made a notification's relative `actionUrl` absolute as the deployment origin plus the path, with no Console mount. A relative `actionUrl` is a Console route (the approval DM's is `/system/approvals?request=ID`), and a server serves the Console under its own mount (`AuthConfig.uiBasePath`, `/_console` by default), so on a default deployment the DM's one link opened a "not found" page.
11+
12+
The DM link now goes under the mount the auth service composes (`getConsoleUrl`), read at send time: `https://host/_console/system/approvals?request=ID` on a default deployment, the custom mount where `uiBasePath` sets one, and no mount where it is `/`. Only the composer's path is used, less any base path it shares with the origin, so a deployment under a sub-path is not prefixed twice; the origin is still the channel's own (`getPublicOrigin`, else `OS_AUTH_URL` / `BETTER_AUTH_URL` / `OS_BASE_URL`). A composition with no auth service, or one whose auth service composes no Console pages, gets the link it got before. An absolute `actionUrl` is sent as it is.
13+
14+
No export changes: `createSlackChannel` and its options are as they were. `MessagingServicePlugin` mounts the channel with the auth service's composer internally, so a composition that registers the plugin gets the mount with nothing to configure; a host that builds the channel itself with `createSlackChannel` keeps the link it got before.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/service-automation': patch
3+
---
4+
5+
fix(automation): the stage-change confirm marks a flow that reaches its approval through a subflow
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`AutomationEngine.listRecordUpdateStarts` (served at `POST /api/v1/automation/_record-starts`) set `startsApproval` only when the listed flow itself held an approval node, so a flow that starts its approval inside a flow it calls was listed without the mark. The mark now follows the flows a run calls through `subflow` and `map` nodes, at every region depth and with a shared flow name resolved the way the run dispatches it, asking each flow the same one approval test. A call to a flow the engine does not hold, or holds disabled, is not followed, and a flow that calls itself or a cycle of flows ends.

0 commit comments

Comments
 (0)