Skip to content

Commit 1933251

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-38249-inline-lines-hand-lock
2 parents 68f8bbb + b926d37 commit 1933251

213 files changed

Lines changed: 8887 additions & 1887 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: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): the objectstack-platform entry file becomes a router
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-platform/SKILL.md` goes from 24.7 KB to 9.0 KB (421 lines to 105). It now holds three things: four first checks (the installed `@objectstack/spec` version, what the project already has, the contract, `os validate`), the traps that pass `os validate` and then fail at run time, and a table that says which file to open for the task at hand. No rule's teaching changes. Text moved, and this entry says where it went. The skill's files are 2.1 KB smaller together (107.5 KB to 105.5 KB).
11+
12+
**What the entry keeps.** Five traps: no driver in `plugins:`, an installed package is customized from its paired `.custom` package, who owns the HTTP server (`createHonoApp` or `HonoServerPlugin`), `manifest.engines.protocol`, and `manifest.namespace`. Then the full list of `defineStack()` top-level keys with the rule that an undeclared key is refused, the `requires:` provider table with the three rules that bite most often, and `Seed Data` (the three import modes; a seed cannot create a person, `demoStaff` does).
13+
14+
**What left, and where it is now.**
15+
16+
- `references/bootstrap.md` now also holds `Strict Validation` (`#strict-validation`), the manifest notes the entry's two traps do not repeat (`#manifest`), `Project Structure Conventions`, what the `blank` template scaffolds (under `#scaffolding-command`), `Runtime Boot Sequence` (`#runtime-boot-sequence`), the `requires:` tokens that have no provider row and the remaining rules (`#requires-in-detail`), `onEnable`, `Customizing an installed package` in full (`#customizing-an-installed-package`), and `demoStaff` with its example (`#demo-accounts--demostaff-vs-devlogins`).
17+
- `references/operations.md` now also holds `Driver Selection Guide` (`#driver-selection-guide`), when to construct `DriverPlugin` yourself (`#wiring-a-driver-yourself`), `HTTP Layer (Hono)` (`#http-layer-hono`), and the note that `os compile` writes `dist/objectstack.json`.
18+
- Anchors that no longer exist in `SKILL.md`: `#definestack--the-core-configuration` (now `#definestack-keys`), `#full-configuration-reference`, `#strict-validation`, `#compile-artifact-and-runtime-metadata-boundary`, `#manifest-reference`, `#the-app--platform-boundary`, `#the-template`, `#project-structure-conventions`, `#naming-conventions`, `#driver-selection-guide`, `#wiring-a-driver--you-usually-do-not`, `#http-layer-hono`, `#usage-pattern-hono`, `#architecture`, `#runtime-boot-sequence`, `#onenable--where-an-app-binds-runtime-code`, `#demo-accounts--demostaff-vs-devlogins`, `#references`. `#requires--which-service-plugins-boot` and `#seed-data` still do.
19+
20+
**Not carried over, because another file already says it.** The `App / Platform Boundary` section (objectstack-project owns that decision; `references/bootstrap.md#app-or-platform` keeps the two sentences it does not have), the naming-convention table (objectstack-data's naming rules), the annotated manifest example (every key is in `kernel/manifest.zod.ts`, which the entry's third check points at; the barrel example in `references/bootstrap.md` now shows `engines`), the Hono usage snippet, and the closing list of the other files (the routing table replaces it). In `references/plugin-development.md`, the `Plugin` interface block and the hook example are now one pointer each to `rules/plugin-lifecycle.md` and `references/plugin-hooks.md`, which carry the same text.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@object-ui/auth': patch
3+
---
4+
5+
fix(auth)!: `createAuthClient().updateUser` declares `Promise<void>`, because the server answers a receipt, not the user
6+
7+
Clause-②: no (narrowing)
8+
Metadata-protocol: none
9+
10+
<!-- adr-0087: not-required (runtime-member-retyped @object-ui/auth#AuthClient.updateUser) A published member of a runtime-exported type is retyped: one member's return annotation narrows from one concrete type to another. `AuthClient.updateUser` declared `Promise<AuthUser>`, but better-auth's `POST /update-user` answers the receipt `{ status: true }` and the client cast that receipt to `AuthUser`; the member now declares `Promise<void>` and the call resolves with nothing. No request byte, URL or refusal changes, and the diff touches no `packages/spec` path and no ADR-0087 shape surface. The affected party is a TypeScript consumer (a caller reading the result, or a host passing its own `AuthClient` as `AuthProviderOptions.client`), and the compiler delivers the break at their own site; `objectstack migrate meta`, `spec-changes.json` and the upgrade guide have nothing to rewrite. -->
11+
12+
**BREAKING** for a typed caller and for a host that implements `AuthClient` itself, shipped as `patch`: the change is not to the metadata protocol (`Metadata-protocol: none`). Nothing that worked at runtime breaks for a caller of `createAuthClient()`: the value it now drops was never a user.
13+
14+
The published typing narrows. `AuthClient.updateUser` was declared to return the updated user, but better-auth's `POST /update-user` answers `{ status: true }`, and the client passed that answer on as if it were a user. A caller that trusted the type read a user with no `id`, `name` or `email`.
15+
16+
- FROM `AuthClient.updateUser` declared to resolve the updated user TO `AuthClient.updateUser: (data: Partial<AuthUser>) => Promise<void>`, which resolves nothing (it was `(data: Partial<AuthUser>) => Promise<AuthUser>`). At runtime `createAuthClient().updateUser` resolves with `undefined` instead of the receipt. A refusal still rejects, as before.
17+
- **A caller that read the result** (`(await client.updateUser(data)).name`) no longer compiles. It read `undefined` at runtime. Read the stored fields with `getSession()` after the write. `useAuth().updateUser` already resolved with nothing and keeps the session user's identity, so React callers see no change.
18+
- **A host that builds its own `AuthClient` and passes it as `AuthProviderOptions.client`**, with an `updateUser` that returns the user (`async (data): Promise<AuthUser> => …`), no longer assigns to the interface. Return nothing from it, or annotate it `Promise<void>`. `AuthProvider` never read that value.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@objectstack/spec': patch
3+
'@objectstack/skills': patch
4+
---
5+
6+
docs(skills,spec): the `objectstack-data` skill teaches which of the four field locks to use, and the `uiReadonly` + `readonly` refusal names ADR-0163
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
`skills/objectstack-data/rules/validation.md` gains `## Locking a Field`: a two-by-two table of `readonly`, `readonlyWhen`, `uiReadonly` and `uiReadonlyWhen` (who is kept out, and when), one checked sales-order example, and what each column does at run time. The server lock (`readonly`, `readonlyWhen`) drops the value from every non-system write and answers success; the hand lock (`uiReadonly`, `uiReadonlyWhen`) stops the console offering the field while an action, an import and the API still write it, each write judged by the object's validations. A status field that only a Confirm action moves is `uiReadonly: true`; under `readonly: true` a declarative action's own write is dropped. The section also covers the object-level `uiReadonlyWhen` and how a field replaces it, what a console create does with a `uiReadonly` field, and the refused pair.
12+
13+
One sentence the skill carried is corrected on the way: an import is not a system-context write, so `readonly: true` drops an imported value like any other client write. The two bullets that said otherwise are now one pointer at the new section, and `SKILL.md` § Conditional Field Rules routes there. `evals/objects-fields-relationships.json` gains case 30, a `uiReadonly` status field.
14+
15+
`@objectstack/spec`: the parse refusal for `uiReadonly: true` beside `readonly: true` keeps its wording and now ends with where the model is recorded: `The two locks and which one to choose: ADR-0163 (D1, D6).` No schema, accepted value or default changes.
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+
'@objectstack/console': patch
4+
---
5+
6+
perf(app-shell): an object list stops loading the package ask, the view settings panel and the create-view dialog before its first screen
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
An object list page fetched about 183 KB (brotli) of authoring code before its first screen, though it only needs that code when someone opens it. Three pieces did this. The "pick or create a package" ask that a view create may open was drawn closed on every list, and it brought in the package page's create dialog, its form and the Studio strings. The view settings panel and the create-view dialog were also drawn closed on every list. Now each one loads the first time it is opened, and after that it stays mounted, so closing it works as before. When a view create is refused, the reason loads with the refusal, and its toast shows once those strings arrive.
12+
13+
Nothing a user sees or saves changes, apart from a short wait the first time one of these opens. Nothing to migrate.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@objectstack/spec': minor
3+
---
4+
5+
fix(spec)!: retire the build-progress stream frame (`ai/build-progress.zod.ts`) — its reader and its producer are gone
6+
7+
Clause-②: no (narrowing) — six published exports of `@objectstack/spec/ai` are removed
8+
Metadata-protocol: narrowed
9+
10+
<!-- adr-0087: registered ai-build-progress-frame-retired -->
11+
12+
**BREAKING** for TypeScript code that imports the build-progress frame from `@objectstack/spec/ai`. The module declared the payload of the `data-build-progress` stream part the build chat drew as its progress panel. That panel was removed with the build chat front end, and the cloud build loop that emitted the frame was removed with it, so nothing parsed the frame any more and the exported schemas read as a capability that no longer exists (ADR-0049 enforce-or-remove). It was never authored metadata: no metadata type, source file or stored row carries it, so there is nothing for `os migrate meta` to rewrite. A lingering import stops compiling, which is where an upgrader meets the change.
13+
14+
What moves (each line FROM → TO):
15+
16+
- `BuildProgressFrameSchema`, `BuildProgressFrame` (`@objectstack/spec/ai`): FROM the frame's `data` floor (`phase`, `hop`, `tool`) TO removed — delete the import and the code that emits or reads a `data-build-progress` part.
17+
- `BuildProgressPhaseSchema`, `BuildProgressPhase`, `BUILD_PROGRESS_PHASES` (`@objectstack/spec/ai`): FROM the closed phase vocabulary (`structure`, `data`, `verify`, `done`) TO removed — delete the import.
18+
- `BUILD_PROGRESS_FRAME_TYPE` (`@objectstack/spec/ai`): FROM the literal `'data-build-progress'` TO removed — delete the import.
19+
20+
The fix: delete the imports. A host that still streams a progress part of its own passes any `data-` part name to `ctx.onProgress` (`ToolExecutionContext.onProgress`, unchanged) and owns the payload shape it sends.
21+
22+
The retirement kit: `ai/build-progress.zod.ts` and its test deleted, `RETIRED_DEFS_BY_MAJOR[19]` rows `ai/BuildProgressFrame` and `ai/BuildProgressPhase`, D3 `ai-build-progress-frame-retired`, the `json-schema.manifest/ai.json` and `authorable-surface/ai.json` rows deleted deliberately (the def is no longer emitted), the regenerated `api-surface`, `export-origins` and `declaration-map` shards, the removed `build-progress` reference page, and the `type-alias-convention` pin count 881 → 879.
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-ui kanban section names the rule that judges a board's group field
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-ui/rules/list-views.md`: the kanban example no longer carries the comment "a select field" beside `groupByField`. The note under the example now says to group by a single-valued `select`, boolean or lookup, and names the warning a text, number or date field or a multi-valued one gets, `list-view-kanban-group-field-uncategorical`. The sentence that listed `summary`, `showFieldLabels` and `hideEmptyFields` as optional is gone: the example's comments and the `summary` note already say so. No token ceiling moves.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/data-objectstack': patch
3+
'@object-ui/types': patch
4+
---
5+
6+
fix(data-objectstack): a byte upload the storage refuses for good fails at once instead of being re-sent whole three more times
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
`createObjectStackUploadAdapter` retried every failure of the byte upload but an abort, so a refusal that cannot change on a resend (403 for an expired signature, 413 for a file too large, 401 `INVALID_TOKEN` for an expired local upload token) sent the whole file three more times and waited about 3.5 s before the same error reached the user. The byte upload is now retried only on a transient failure: no HTTP answer (a network error), or a status in `TRANSIENT_STATUS` from `@object-ui/types` (408, 425, 429, 502, 503, 504). Any other refusal throws at once, on both the fetch and the XHR path, and an abort is still never retried. A 500 is not retried either, as `TRANSIENT_STATUS` already decides, so an occasional S3 `500 InternalError` on a direct upload now fails at once rather than being re-sent.
12+
13+
The refusal now carries the server's error `code` beside its `status` when the answer was the declared error envelope, as the presign and completion refusals already did, so `uploadFile` / `uploadFiles` report it as `serverCode`.
14+
15+
`UploadOptions.maxRetries` in `@object-ui/types` now documents which failures it counts. No type changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/service-settings': patch
3+
---
4+
5+
fix(service-settings): the Knowledge page names `chunk_target` for what it is, the longest passage
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The Knowledge settings page labelled `knowledge.chunk_target` **Target chunk size**, while its help text, and the splitter that reads it, treat it as a maximum: no passage is longer, and many are shorter (under the `markdown` split, a section that fits is one passage of whatever length it has). The label now reads **Longest passage (characters)**, and the help text adds that passages can be shorter, in every locale the page ships (en, zh-CN, zh-Hant, ja-JP, ko, de, es-ES, fr, pt-BR, ru, ar). Earlier notes that name **Target chunk size** (the splitter, the knowledge skill) mean this same setting under its old label. The key, its default (800), its bounds and what reads it are unchanged.
11+
12+
What to do: nothing. A script or seed that writes `knowledge.chunk_target` keeps working.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/plugin-chatbot': patch
3+
'@object-ui/app-shell': patch
4+
---
5+
6+
feat(console): the chat reads the in-app `pending_confirmation` answer beside the stored `pending_approval` one
7+
8+
Clause-②: yes (widening)
9+
Metadata-protocol: none
10+
11+
The in-app assistant's pending answer is moving from `{ status: 'pending_approval', pendingActionId }` to `{ status: 'pending_confirmation', pendingId }` (`ActionConfirmationPending` in `@objectstack/spec/contracts`). The console now draws the approval card for either answer: `detectPendingApproval` is the one recogniser for both, and each status pairs with its own id key only, so `pending_confirmation` with `pendingActionId` (or `pending_approval` with `pendingId`) is not read as a pending answer. A conversation stored with the old answer still shows its approval card, and Approve and Reject still reach its item. The id still arrives on the tool invocation as `pendingActionId`.
12+
13+
The chat's local message cache keeps the shape it writes for a pending approval; a live `pending_confirmation` answer goes through it and back to an approval card unchanged.
14+
15+
What widens: the public `detectPendingApproval` export of `@object-ui/plugin-chatbot` (and `@object-ui/plugin-chatbot/core`) now also recognises `{ status: 'pending_confirmation', pendingId }`, an input it refused before; its signature and return type are unchanged. Nothing changes on the server, in the routes or in the spec, and no export is added or removed.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@objectstack/core': patch
3+
'@objectstack/runtime': patch
4+
'@objectstack/rest': patch
5+
'@objectstack/cli': patch
6+
---
7+
8+
docs: README links and the `os test` error point at the platform reference tables' new home
9+
10+
Clause-②: no
11+
Metadata-protocol: none
12+
13+
The platform and wire-contract reference tables (kernel, api, qa and six others) are no longer pages on objectstack.ai. They are published as markdown in the repository, under `packages/spec/docs/references/`. The "API Reference" links in the `@objectstack/core`, `@objectstack/runtime` and `@objectstack/rest` READMEs now open those folders directly, without the redirect hop. When `os test` refuses a file that is not a valid Quality Protocol suite, its `Reference:` line now names the suite table's URL, `packages/spec/docs/references/qa/testing.md` on GitHub. Before, it named a docs file that no longer exists. Nothing an author can write changed.

0 commit comments

Comments
 (0)