Skip to content

Commit c1d3b9d

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-xniw22
2 parents e7aed16 + 74a19dd commit c1d3b9d

45 files changed

Lines changed: 2321 additions & 163 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@objectstack/mcp': patch
3+
---
4+
5+
Clause-②: no
6+
Metadata-protocol: none
7+
8+
The stdio MCP server lists `agent_prompt` only on a boot that registers at least one agent. A boot with no agent, which is every open-framework boot, used to list it anyway. Its `agentName` argument suggested `"ask"` and `"build"`, and every `prompts/get` came back as a successful prompt whose one message read `Error: Agent "ask" not found`, which an MCP client passes to its model as instructions. On such a boot the prompt is now left out of `prompts/list`, a get on it is the protocol's own unknown-prompt error, and the boot log says once why. On a boot with agents nothing changes for a client: the prompt is listed, its argument suggests names the boot actually holds, and a miss still answers `Error: Agent "X" not found`. If the agent metadata cannot be fully read at boot, the prompt stays listed, because an outage is not proof that no agent exists. Its argument then suggests no names.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/runtime': patch
3+
---
4+
5+
fix(runtime): a flow clone the engine refuses no longer installs the source's empty `.custom` customization package
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`POST /api/v1/automation/:name/clone` without `package` lands the copy in the source's paired customization package `<base>.custom`, ensuring it if needed. The pair used to be ensured before the engine validated the copy, so a clone refused `400` for an illegal machine name (or any other definition the engine refuses) still left a newly installed, empty `<base>.custom` in the package list and in Studio. The pair is now ensured only after the engine has accepted the copy, so a refused clone changes nothing. Refusals that can only come later — the ensured pair judged not writable, or the store refusing the save — still leave the pair in place, which is its ordinary state: ensure is idempotent, an empty pair is valid, and the next clone reuses it.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/plugin-form': patch
3+
---
4+
5+
fix(plugin-form): a form section naming a field the object does not have draws no control
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A form view section that names a field the object does not declare (a typo, or a field deleted later) used to draw a live text box labelled with the raw name on the `tabbed`, `wizard`, `drawer` and `modal` layouts. Whatever the user typed there was never saved: the record save writes only declared fields, so the value was dropped behind a successful save. Those layouts now draw nothing for such a name, which is what the `form-field-unknown` lint already says ("never renders on the form") and what the default (`simple`) layout already did.
11+
12+
A `customFields` member or a self-describing inline field (one carrying its own `name`) is still drawn, as before. A form with no object schema at all, such as one mounted without a data source whose `submitHandler` owns the write, keeps its bare input for a named field: there is no object to call the name unknown. A section whose every field is unknown is left empty, and each layout treats it as it already treats an empty section.
13+
14+
Fix the field name in the form view, or add the field to the object, to bring the control back.
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-formula says the build refuses date subtraction (`end - start`), and the skills stop describing a stored formula that subtracts dates
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
- **Before.** The "No date arithmetic" note in `objectstack-formula` said `end - start` "does not fault — it yields a `duration` stored as `{}`", which read as a shape that builds. `objectstack-ui` `rules/dashboards.md` and an analytics eval described a leave-days formula written as `end - start`, and a formula eval explained `record.close_date - today()` as "a duration stored as `{}`".
11+
- **Now.** The note says the build refuses both `date + n` and `end - start`: a date or date-time mixed with a number, or minus another, reads `null`, and `today()` / `now()` minus a date field reads `{}`. It prescribes `daysBetween(a, b)` and keeps the Want / Write table. The leave-days formula is written `daysBetween(start, end)` in the dashboards rule and `daysBetween(record.start_date, record.end_date)` in the eval prompt, and the formula eval says the build refuses `record.close_date - today()`.
12+
- The formula gate change itself ships in `@objectstack/formula` (`formula-date-subtraction-refused`). `SKILL.md` and `rules/dashboards.md` stay under their token ceilings (no ceiling moves). No schema, key, command or behaviour changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/service-datasource': patch
3+
---
4+
5+
fix(service-datasource): the credential migration's drop-inline refusal names an empty stored credential as empty
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
When a datasource already references a stored secret that decrypts to an empty value (a row sealed empty before the admin doors refused an empty `secret`), the credential migration still refuses to drop the inline copy, with the same `refused` status, but its reason now says the credential is empty, in the connect path's wording, instead of blaming a missing `sys_secret` row or a changed encryption key. A missing row or a decrypt failure keeps its sentence.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(app-shell): the metadata editor page tells its scoped inspector why it is read-only, so a flow's node inspector explains its disabled controls there too
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The metadata editor page (Setup's item page, and Studio's "All metadata" area at `/studio/PKG/metadata/flow/NAME`) folds every read-only cause into one flag, and it passed that flag to the scoped inspector with no reason. A flow's node inspector therefore showed disabled controls with nothing to say why, while the same inspector on Studio's Automations pillar explained them.
11+
12+
The page now hands the scoped inspector the reason (`MetadataInspectorProps.readOnlyReason`) as the sentence its own notice gives for the cause in force, in the notices' order: the walled security catalog; a read-only package; a lock, with the reason the server serves for it; a declaration-only catalog; a caller without the `manage_metadata` capability; an item a code package ships; and a type that is read-only at runtime. An editable page passes none. No string is new.
13+
14+
View mode owes no sentence: the scoped inspector exists only beside a designer canvas, and a designer type enters editing whenever it can be written and has no Edit button. The no-selection default inspector (`MetadataDefaultInspectorProps`) is unchanged.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/console': patch
3+
---
4+
5+
fix(console): the boot's `get-session` starts from `index.html`'s inline script beside `runtime/config`, and the preflight reuses the answer
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The Console's pre-React auth preflight validates the stored Bearer with `GET /api/v1/auth/get-session`, and its answer is the session `AuthProvider` starts from. It was sent from the main bundle, so it waited for that bundle to download and evaluate, a whole round trip behind the parse-time `runtime/config` prefetch, at the head of the startup chain.
11+
12+
`index.html` now carries a second parse-time script, `startEarlySessionCheck`, that sends the preflight's exact request (same URL, same `Authorization: Bearer` from `localStorage['auth-session-token']`, `credentials: 'include'`, same `Accept`) right after `runtime/config`, and leaves the pending answer under `Symbol.for('objectui.earlySessionCheck')` with the auth URL and token it sent. `preflightAuth()` takes it once when both match and reads it instead of asking again, so a page load sends one `get-session`, started during parse.
13+
14+
Every existing safety holds: no stored token or blocked storage sends nothing; a failed or non-OK early answer is not reused and the preflight fetches as before; a stale token answered early is purged as before; a token that changed since parse time is asked about again.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/mcp': patch
3+
---
4+
5+
fix(mcp): a request with malformed params answers JSON-RPC -32602 Invalid params naming the param, not -32603 Internal error with a raw Zod issue list
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
An MCP request whose `params` fail the method's request schema (`prompts/get` with no `name`, `tools/call` with `{}`, `prompts/get` with `"name": 42`) used to answer `-32603 Internal error` whose message was the serialised Zod issue array: the client was told the server failed, and an agent that retries on Internal error kept retrying a request that could never succeed. It now answers `-32602 Invalid params` with one sentence per problem, such as `params.name is required` or `params.name must be a string`. The same requests stay refused; only the error class and the message change. Both transports (Streamable HTTP and stdio) build their server through one seam, so the answer is the same on either and for every method, including the ones the SDK installs itself (`initialize`). A tool's own argument check (for example `validate_expression` with an unknown `site`) keeps its answer, and an error raised inside a handler keeps its own code.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
---
4+
5+
fix(metadata-protocol): `deleteMany` names the id entry it refuses
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A `deleteMany` whose `ids` is an array but holds an entry that is not a record id is still refused with `400 VALIDATION_FAILED`, and the answer now says which entry. Each offending entry gets a `fields[]` row `{ field: 'ids.N', code, message }`, the same shape the REST ingress already gives `[null]`: an empty string answers `required` (the entry is empty, and a record id is required for delete), and any other non-id (null, an operator object such as `{"$ne":null}`, a boolean) answers `invalid_type`. The sentence names the first offending entry. Before, every such request got the sentence "requires 'ids' to be an array of record ids" and an empty `fields[]`, which named the wrong problem.
11+
12+
A non-array `ids` keeps that sentence and names no entry. What is refused does not change: a whitespace-only id still reaches the row loop and reports `RECORD_NOT_FOUND` for its row.
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): a read-only flow edge inspector says why its controls are disabled, on hover, on keyboard focus and to assistive tech
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
On a read-only package, Studio's flow connection inspector disabled every control (From, To, the branch pickers, Label, Condition, Default branch, Type, Remove connection) and gave no reason anywhere: no tooltip, no accessible description, and Tab skipped the whole panel. The reason Studio's Automations pillar hands every flow inspector reached it and was dropped. The connection inspector now carries the treatment the node inspector carries: the panel is a tab stop described by the reason, and hovering any disabled control in it shows the reason in a tooltip. Both inspectors draw it through one shared wrapper. A host that passes no reason renders exactly as before.

0 commit comments

Comments
 (0)