Skip to content

Commit 206c531

Browse files
committed
Merge origin/main into claude/project-thread-aadedf
Claude-Session: https://claude.ai/code/session_01L9qibwxBy3QieJMqJbJtTk Co-authored-by: Claude <noreply@anthropic.com>
2 parents c302aa2 + bd5407e commit 206c531

112 files changed

Lines changed: 2934 additions & 575 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: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): four published skills follow merged code — audit sealing, the compare widget's date key, i18n wording, nested relation conditions
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-data/rules/lifecycle.md` § Sealing: each sealed hour becomes one checkpoint, or consecutive checkpoints of at most 10,000 rows, per organization chain; `chainField` (optional, default `tenant_id`) names the chain column and is fixed once checkpoints exist; `os audit verify` exits 1 on a changed row or a chain fault, `listed_twice` included. The graded eval case in `evals/objects-fields-relationships.json` says the same.
11+
12+
`skills/objectstack-ui/rules/dashboards.md` § `compareTo`: a compare widget's window reaches the dataset query as a time dimension named after the date-range field, so the dataset declares a date dimension of that name (or one over a related-record date path), else `400 INVALID_FIELD`.
13+
14+
`skills/objectstack-i18n/SKILL.md`: the stale aside about the schema docstring is gone (activity-milestone summaries keep their `{field}` tokens); the wiring sentence is a statement again ("You do not need to wire this plugin"); `getSourceLocale()` returns the declared locale only, else `undefined`; the i18n routes answer signed-in callers, and the locales answer carries the declared `fallbackChain`.
15+
16+
`skills/objectstack-query/SKILL.md` and `rules/filters.md`: on a read verb a single-valued relation condition is one in-database subquery per relationship, up to three relationships, on drivers declaring `readableIdsLeaf` (MongoDB and OData refuse it); the 1000-id cap stays only where ids are still read. `filters.md` § Operator Reference lists one example per operator; the SQL equivalents live in `SKILL.md` **Filter Operators**.
17+
18+
No token ceiling moved: every addition is paid by a deletion in the same file.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
feat(spec): `PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio']` lists `list_flow_runs`
6+
7+
Clause-②: yes (widening)
8+
Metadata-protocol: none
9+
10+
The cloud build agent gains a read-only `list_flow_runs` tool: it reads one flow's recent runs as the caller, so the agent can answer "did my automation work?" from a run's own outcome. The registry lists the name in its alphabetical place, so `PLATFORM_PROVIDED_TOOL_NAMES` carries it and `isPlatformProvidedToolName('list_flow_runs')` answers `true`. A skill whose `tools[]` names `list_flow_runs` now resolves under ADR-0109 reference integrity instead of being reported as a fictional tool (`ai-skill-tool-unresolved`). The chat panel's step label for the tool is in every built-in locale pack. No schema shape changes and no export is added or removed.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
---
4+
5+
fix(metadata-protocol): the served type schemas no longer offer the keys the platform stamps
6+
7+
Clause-②: no (narrowing — a key leaves a served description; nothing a client could save before is refused)
8+
Metadata-protocol: none
9+
10+
`GET /meta/types` (and the MCP draft door's `contract: true` read of `list_metadata_items`, which answers from it) describes what an author may write for each metadata type. Every type spreads the ADR-0010 protection envelope, so the served JSON Schema listed `_lock`, `_lockReason`, `_lockSource`, `_provenance`, `_packageId`, `_packageVersion` and `_lockDocsUrl` among each type's properties, and again inside every schema embedded in one (an object's field entries, each arm of a view). Studio's panels and an MCP client told to write only the keys the contract shows read those as writable.
11+
12+
They are the platform's to write: a package's loader and the registration stamp them, and an author declares a lock through `protection` in a code package's source. The served schema now leaves them out, at every depth, the same way it already leaves out a retired key's tombstone.
13+
14+
- **What a client sends is unchanged.** The save door refuses and accepts exactly what it did, and the Zod schemas still declare the envelope, so a served body re-parses.
15+
- **What changes is the description only.** A client that built a form or a key list from the served schema no longer shows these seven keys.
16+
17+
Nothing to migrate.
18+
19+
<!-- 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 Zod schemas keep declaring the envelope and the save door is unchanged. What moves is the served JSON Schema description, which stops listing seven keys only the platform writes; there is nothing for a migration to rewrite. -->
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@objectstack/skills': patch
3+
'@objectstack/spec': patch
4+
---
5+
6+
docs(skills,spec): an agent's retired `model.provider` is described as refused, naming the one 18.x value that still parses
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
`skills/objectstack-ai/SKILL.md` (Model Configuration) said that writing `provider` is a parse error. One value is not: the `provider: 'openai'` that a released 18.x toolchain wrote out into every agent `model` block it parsed is accepted and stripped (`acceptRetiredDefaultResidue`); every other value is refused at parse, and `tsc` refuses the key whatever its value. The skill now says the key is retired and refused, names that exception, and keeps the instruction: delete it. The `provider` jsdoc on `AIModelConfigSchema` in `packages/spec/src/ai/agent.zod.ts`, which used the same words, names the exception too. Comment only on the spec side: no schema, type or export changes.
12+
13+
Three `objectstack-ai` eval cases are graded more fairly, with no change to what a correct answer must say:
14+
15+
- Sampling settings (Anthropic, temperature 0.3, 2000 tokens): the forbidden written line is now a set of code spellings (single or double quotes, with or without a trailing comma, and the JSON form), not one. An inline prose warning such as `provider: 'anthropic'` in backticks still passes.
16+
- Nightly approval script: the any-of group also accepts "refuses".
17+
- `run_action` with `confirm: true`: "do not retry" moves into an any-of group with "Do not retry", "don't retry" and "Don't retry"; the grader matches case-sensitively, and correct answers used all four.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@object-ui/plugin-grid': patch
3+
'@object-ui/plugin-list': patch
4+
'@object-ui/plugin-detail': patch
5+
---
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Phone list cards now follow the object's `highlightFields`. When an object declares them, a card's amount is the first of those fields that draws as money, and its subtitle is the next three, in that order, with empty values dropped and each number, currency or percent part under its field label (`Quantity 2 · Sales Price ¥6,000.00 · Discount % 10.00%`). The view's column order no longer decides the card, so an order line that declares `highlightFields: ['total_price', 'quantity', 'unit_price', 'discount']` shows its line total bottom right while its wide table keeps its columns. A highlighted field no column shows is drawn too: the grid's own fetch, the list page's fetch and the related list's fetch now ask for the object's `highlightFields` beside its name field, through the same field-level security gate.
11+
12+
This changes the phone card of every object that declares `highlightFields` and shows its fields in a different order, or shows more than two of them: review an object's `highlightFields` order if its phone list now reads differently. An object without `highlightFields` keeps the column-order card. Nothing changes on desktop tables, apart from the fetch asking for the highlighted fields.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
fix(app-shell): the AI inquiry page keeps a conversation it could not check, reads it once, explains an app without a package, and reads previews only for the conversations it lists
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
- Opening the page with `?c=` asks the server whose conversation that is. A failed answer (a network error, a 5xx) used to read as "not this app's", so the page dropped `?c=` and opened its home state. Now only a definite answer does that (a 403 or 404, or another app's conversation). A failed check keeps `?c=` and shows "Couldn't open this conversation" with Try again and New conversation.
12+
- When the conversation is this app's, the check's read now also fills the thread, so opening it reads the history once instead of twice. `useChatConversation` takes `activeRecord`: the host's read of `activeId`, used by the first resolve of that id.
13+
- An app with no package (`_packageId`) has nowhere to keep the page's conversations. The page now says so instead of drawing a question box that could not start one.
14+
- The empty conversation keys its suggestions by position, so an entry that declares the same question twice draws both with no React key warning.
15+
- `useConversationList` takes `selectBackfillRows`: the rows the caller shows, the only ones whose missing previews are read from each conversation's detail route. The page's recent conversations pass the rows they list (at most five), so returning to the home state reads at most five details, not up to twenty.
16+
- `@object-ui/i18n`: five `console.ai.askPage` keys for the two new states, in every locale.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/components': patch
3+
'@object-ui/app-shell': patch
4+
---
5+
6+
fix(components): in a right-to-left language the desktop sidebar sits beside the page instead of over its header
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
In Arabic (the console sets `dir="rtl"` on the page) the desktop sidebar's gap moved to the right while its fixed panel stayed on the left, so the panel covered the end of every page, where a right-to-left page header keeps its buttons: the page's own actions, help, comments and Ask AI entry could not be reached. The sidebar primitive now places its panel, its divider and its edge rail with logical insets, so `side="left"` is the inline start of the document (the right edge in Arabic) and `side="right"` its end. The edits are declared as the `sidebarLogicalInsetPatches` shadcn local-patch family, with the offcanvas family's offsets written the same way, so a registry sync keeps them.
12+
13+
`@object-ui/app-shell`: the console sidebar's own anchors follow it. The edge strip that floats a hidden sidebar, the floating card and its parked position, the resize edge and the expand button on pages with no header sit at the inline start, and the resize edge reads a drag and the arrow keys toward the page as widening in either direction. A floating menu folds when the pointer leaves it on either side.
14+
15+
Left-to-right languages are unchanged: every logical inset computes to the physical one it replaces.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): `objectstack-i18n` teaches the bundle's `packages` group, and both related-list skills name the two ways a `.custom` arrangement's tab title is translated
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-i18n/SKILL.md`, the top-level group list: `packages` holds a package's display `name` / `description`, keyed by its `manifest.id` with the dotted id as one key (`packages: { 'com.acme.crm': { name: '客户关系' } }`). A locale with no row shows `manifest.name`, and `os lint` warns `i18n/missing-package` (`os i18n check` lists the same gap by key) until that package's own bundle carries the row.
11+
12+
`skills/objectstack-i18n/SKILL.md`, the `_relatedLists.{list}` row, and `skills/objectstack-data/rules/relationships.md`, the `relatedLists` bullet: where the paired `.custom` arrangement leaves a list with no key, the remedy is to drop the key or re-state the entry, shown, with a `label`. The owner's own `label` keeps the owner's translation; a `label` of the arrangement's own is translated at the same `objects.{parent}._relatedLists.{list}.label` key in the `.custom` package's bundle, which `os i18n check` expects.
13+
14+
Nothing an author can write changes. Neither file grows: `objectstack-i18n/SKILL.md` moves down to its measurement (6333 to 6315), the additions paid by replacing the translation-reference paragraph's list of action keys judged against a declaration, each already conditioned in the `_actions` row, with one sentence pointing at that row, and by dropping the code-comment tails that repeat the sentence introducing the first example; `rules/relationships.md` moves down too (4181 to 4179), paid by four restating phrases in the same file.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/objectql': patch
3+
---
4+
5+
fix(objectql): the boot warning for one knowledge_source item with no knowledge service says the item is not loaded
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
With exactly one `knowledge_source` item and no `knowledge` service registered, the warning read "it is loaded, indexed or searched", the opposite of the fact. It now reads "it is not loaded, indexed or searched". The plural wording ("none is loaded") is unchanged. Nothing to migrate.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
'@objectstack/plugin-auth': patch
3+
---
4+
5+
fix(plugin-auth)!: Setup → Authentication's switches show what the deployment runs when nothing is saved
6+
7+
Clause-②: yes (narrowing) — narrowed: with nothing stored, `SettingsService.get('auth', …)` and `GET /api/settings/auth` answer `email_password_enabled`, `signup_enabled` and `require_email_verification` with the deployment's declaration (still `source: 'default'`), where they answered the manifest default; so on a cloud-managed runtime (`OS_CLOUD_MANAGED=1`) whose deployment declares `emailAndPassword.enabled: false`, a save of `email_password_enabled: true` with nothing stored answers `400 SETTINGS_VALIDATION` (`invalid_value` at the key) and saves nothing in the batch, where it saved a row that was not applied; and a save that sets one of these keys to its manifest default where the declaration differs now asks the key's write predicates. Widened: a save that sets one of these keys to the declaration with nothing stored is no change and asks no predicate; on a deployment that declares `emailAndPassword.enabled: false` with nothing stored, the ten `auth` keys visible only while `email_password_enabled !== false` (`signup_enabled`, `require_email_verification`, `password_min_length`, `password_max_length`, `password_reject_breached`, `password_require_complexity`, `password_min_classes`, `password_history_count`, `password_expiry_days`, `mfa_required`) are hidden, so a save of one of them is no longer judged for `required`, options or bounds (for example `password_min_length: 2` is now stored where it was refused `400 SETTINGS_VALIDATION`), as under a stored `email_password_enabled: false`; a save that turns `email_password_enabled` on re-judges them; `AuthManager.resolveDisableSignUp(declared)` (public method). The Setup → Authentication live-status banner no longer states the declared-off, nothing-saved case (the switch says it): its `declaredOffLabel` / `declaredOffText` copy is removed, and the cloud-managed statement is always a `warning`.
8+
Metadata-protocol: none
9+
Skills-docs: none — no skill under `skills/**` teaches the auth settings page or these switches; `content/docs/protocol/kernel/config-resolution.mdx` states the declared default.
10+
11+
<!-- adr-0087: not-required (no-migration-prescription) No schema key, accepted value or metadata type is added, removed, renamed or re-shaped: these are settings values, runtime state, not authorable metadata, and the settings manifest is unchanged. What moves is the value a key with nothing stored resolves to, and the save of it that a write predicate is now asked about; no stored row is read differently, so there is nothing for `objectstack migrate meta` to rewrite and no tombstone. -->
12+
13+
**BREAKING** for a reader of `GET /api/settings/auth` or `SettingsService.get('auth', …)` on a deployment whose own configuration differs from the manifest default for one of these three keys, with nothing saved: the value answered is now what runs (for example `email_password_enabled: { value: false, source: 'default' }` where the deployment declares `emailAndPassword.enabled: false`), not the manifest default. A saved value and an `OS_AUTH_*` override still win, and a clear returns to the declaration.
14+
15+
What each switch reads with nothing saved:
16+
17+
- `email_password_enabled` — `emailAndPassword.enabled`, on unless declared `false`.
18+
- `signup_enabled` — off where self-registration is forced off (SSO-only, cloud-managed) or turned off by `OS_DISABLE_SIGNUP` or a declared `emailAndPassword.disableSignUp: true`; else on.
19+
- `require_email_verification` — the declared `emailAndPassword.requireEmailVerification` under the audience posture in force: on under `email_domain`, on under `open` unless declared `false`, else as declared (off by default).
20+
21+
On a cloud-managed runtime whose deployment declares email and password off, the switch now reads off with nothing saved, and turning it on is refused at the save door (before, the save was stored and not applied, because `true` was the value the settings service already resolved). Self-hosted deployments keep taking a saved value as before.
22+
23+
What to do: nothing to migrate. A client that read `source: 'default'` as "the manifest default" should read it as "nothing is saved; this is the deployment's default".

0 commit comments

Comments
 (0)