Skip to content

Commit c5cc868

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-vea7es
2 parents 36152cd + 18870c9 commit c5cc868

64 files changed

Lines changed: 3804 additions & 2849 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: 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+
perf(app-shell): Home's navigation roster gate asks the objects it requires in one `GET /meta/object?names=a,b,c` request, instead of one by-name read per object
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Outside an app (Home, whose activity feeds gate every app's navigation), the runtime-capability gate for `requiresObject` entries read each required object by name, one `GET /meta/object/NAME` per name (eight on app-crm). It now asks the names it has not asked yet in one `?names=` request (`meta.getItems('object', { names })`). A name the answer leaves out is treated as not registered, exactly as a by-name `404` was, so its entry stays hidden. A request that gets no answer leaves every name unanswered, so each entry shows, as when a by-name read failed. A refresh asks the same names again in one request. Inside an app nothing changes: the gate still reads the union by name, so the record form keeps sharing those reads with the data adapter's cache. Under the draft preview the gate also keeps the by-name reads.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
'@object-ui/console': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(console)!: an administrator's first-run checklist on Home replaces the currency and time zone dialog, and a country typed by name is saved as its code (#30206)
7+
8+
Clause-②: yes (narrowing) — the published `@object-ui/i18n` packs (all ten) drop the `console.workspaceTimezonePrompt.*` keys, which had no reader outside the removed dialog. The widening half: new console i18n keys `console.firstRunChecklist.*` and `console.settingsView.invalidFormat` / `.invalidFormatHelp` / `.invalidFormatPick` (all ten packs).
9+
Metadata-protocol: none
10+
11+
<!-- adr-0087: not-required (runtime-interface-only ui/packages/i18n/src/locales/en.ts#TranslationKeys) the key type of the console's own translation catalogue: no Zod schema, no spec declaration and no stored metadata reads it, so the compiler is the channel that reaches every caller -->
12+
13+
The dialog that asked for the system timezone and default currency opened over the first page an administrator visited, before anything needed a currency, and once covered the toast that said how to share an invitation. It is gone. The same questions, and the other things a new workspace needs, are now rows of a checklist at the top of Home (`/home`):
14+
15+
1. **Organization name**: done once the organization no longer carries the name the platform gave it ("Default Organization"). Links to Setup → Organization.
16+
2. **Default language and country**, 3. **System timezone**, 4. **Default currency**: done once the setting is set (for language, country and timezone, set by someone rather than left at the platform default; for the currency, which has no default, holding any value). Each opens in place with the Settings page's own fields, pre-filled from the browser: language, country and currency from the browser's first language (so `zh-CN` offers 中文, China and CNY together), the timezone from the browser's zone. Nothing is written until the row's Confirm, which saves through the Settings page's own `PUT /api/settings/localization`.
17+
5. **Email delivery**: done once mail can deliver (a provider other than `log`, a From address, and a host for SMTP). Shown only to a session that may write mail. Links to Setup → Mail Delivery.
18+
6. **Invite colleagues**: done once there is a second member or a pending invitation. Links to Setup → Users.
19+
20+
Each row's state is read from the real setting every time, never from a click. The checklist is shown only to a session that may write `localization`; a member sees nothing, and a member's Home sends no settings namespace read. It draws nothing once every row is done, and its close button hides it for that administrator in that workspace on that device, writing nothing to the server. The rules the dialog was built on still hold: the browser's zone and currency are never written without the administrator's Confirm, and an unset currency stays on the list until it is set.
21+
22+
**BREAKING** (`@object-ui/i18n`, TypeScript only): the exported `TranslationKeys` (`typeof en`) loses the 14 `console.workspaceTimezonePrompt.*` keys, in all ten packs (ar, de, en, es, fr, ja, ko, pt, ru, zh). A `t()` call that names one still compiles, since its key is a `string`, and reads the key back. Nothing replaces them one for one; the fix is to delete the reference.
23+
24+
| Removed key | Replacement |
25+
|:---|:---|
26+
| `console.workspaceTimezonePrompt.title`, `.description`, `.laterHint`, `.decline`, `.confirm`, `.saved`, `.notNow` | none: the dialog is retired; the timezone is a row of `console.firstRunChecklist` (`.timezone.*`) |
27+
| `console.workspaceTimezonePrompt.currencyTitle`, `.currencyDescription`, `.currencyConfirm`, `.currencySaved` | none: the currency is a row of `console.firstRunChecklist` (`.currency.*`) |
28+
| `console.workspaceTimezonePrompt.bothTitle`, `.bothConfirm`, `.bothSaved` | none: the checklist confirms each row on its own |
29+
30+
Typing a country's name into a country picker now saves its code: 「中国」 typed into 默认国家, whose option reads 「中国 (CN)」, saves `CN` instead of being refused by the server's two-letter format check. Only a name exactly one option carries counts; any other text is sent as typed, as before. When the server does refuse a value for its format (`invalid_format`), the Settings page and the checklist now say so in the reader's language, naming the setting by its label: "Choose a value for Default country from the list." for a picker, and "Gateway model is not in a valid format. Use provider/model." (with the field's own help line) for a typed field. Every other refusal keeps the server's sentence.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
'@objectstack/spec': patch
4+
---
5+
6+
refactor(metadata-protocol): `findData` hands its body to its facet
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
- `ObjectStackProtocolImplementation#findData` keeps its signature and docblock on the class and delegates in one line to `ProtocolDataCrudFacet`, which now holds the body, moved unchanged. The built `index.d.ts` and `index.d.cts` are byte-equal before and after, and no behaviour changes. Nothing to do on upgrade.
12+
- `getDiscovery` stays on the class: its body reads `typeof this.searchAll === 'function'`, which a forwarded host method would always answer true. The move tool now refuses a method read as a value.
13+
- `@objectstack/spec`'s published liveness ledger (`liveness/query.json`) cites `findData` at its new 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 record-currency backfill cleans a driver's raw text out of a failed row, as the import door does
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A failed row in the record-currency backfill report (`failures[].error`) now reads the import row's cleaned sentence (`sanitizeRowError` from `@objectstack/core`, the one rule both doors call) when the row's write threw anything other than a sandboxed hook's error. A driver's SQL statement, constraint name or column list no longer reaches the report, which a tenant admin reads over `POST /api/v1/meta/_migrate-record-currency-codes` and the operator reads in `os migrate record-currency-codes`. A message with no driver text reads as before. The operator's warning line keeps the whole text, so nothing is lost for diagnosis.

‎README.md‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
![TypeScript](https://img.shields.io/badge/TypeScript-5.x-blue.svg)
55
[![Docs](https://img.shields.io/badge/docs-objectstack.ai-0a0a0a.svg)](https://objectstack.ai/docs)
66

7+
[Website](https://www.objectos.ai) · [Docs](https://objectstack.ai/docs) · [Cloud](https://cloud.objectos.ai) · [Discussions](https://github.com/objectstack-ai/objectstack/discussions)
8+
79
> ## The ontology is the software.
810
>
911
> **One executable business ontology.** AI writes it, the runtime runs it, agents
@@ -30,10 +32,21 @@ image, `os start` and the Console, free and self-hosted ([Ship it](#ship-it))
3032
while [ObjectOS](https://www.objectos.ai) Cloud is the hosted edition and ObjectOS
3133
Enterprise the self-managed, licensed one.
3234

33-
## Try it in five minutes
35+
## Quick start
36+
37+
Every way in, in one table. The [docs home](https://objectstack.ai/docs) links
38+
here instead of keeping its own copy.
3439

35-
No install at all? Open a live app on
36-
[StackBlitz](https://stackblitz.com/github/objectstack-ai/hotcrm).
40+
| I want to… | Run | Then |
41+
| :--- | :--- | :--- |
42+
| Build a new app with an agent | `npm create objectstack@latest my-app && cd my-app && npx os dev --ui` | Open `http://localhost:3000/_console/`. The walkthrough is [Try it in five minutes](#try-it-in-five-minutes). |
43+
| Run the platform with no project yet | `npm i -g @objectstack/cli && os start` | Open `http://localhost:3000/_console/`. With no artifact to load, `os start` boots an empty kernel and you install apps from the Console marketplace ([`os start`](https://objectstack.ai/docs/deployment/cli#os-start)). |
44+
| Run a compiled app in the official image | `docker run -p 8080:8080 -v "$PWD/dist/objectstack.json:/srv/app/objectstack.json:ro" -e OS_DATABASE_URL -e OS_AUTH_SECRET -e OS_SECRET_KEY ghcr.io/objectstack-ai/objectstack:latest` | Export the three variables first. `latest` is for trying it; pin an exact `X.Y.Z` tag in production ([image README](./docker/README.md)). |
45+
| Ship a scaffolded app with Postgres | `docker build -t my-app . && docker compose up -d` | Run it inside the scaffolded project ([Ship it](#ship-it)). |
46+
| Look first, install nothing | [Open the CRM example on StackBlitz](https://stackblitz.com/github/objectstack-ai/hotcrm) | It runs in the browser. |
47+
| Work on the framework itself | `git clone https://github.com/objectstack-ai/objectstack.git` | Then follow [Hack on the framework](#hack-on-the-framework). |
48+
49+
## Try it in five minutes
3750

3851
**1 · Create a project.** The scaffolder installs the AI skills bundle and writes
3952
an `AGENTS.md`, so your agent starts with the protocol's rules already loaded —

‎content/docs/index.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ flowchart LR
2121

2222
## Start here
2323

24+
- [Quick start](https://github.com/objectstack-ai/objectstack#quick-start) — one "I want to… → command" table for every way in: scaffold a new app, run the CLI with no project, or run the `ghcr.io/objectstack-ai/objectstack` image. It lives in the repository README; this page links to it rather than keeping a second copy
2425
- [What Can It Do?](/docs/capabilities) — the platform's capabilities in business language, no code — start here if you're evaluating
2526
- [Build Without Code](/docs/build-without-code) — what admins and analysts do visually in Console, Studio, and Setup
2627
- [Build with Claude Code](/docs/getting-started/build-with-claude-code) — the main workflow: an agent builds the app, you verify it in the Console

‎docs/qa/platform-checklist/RUNNER.md‎

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -204,17 +204,18 @@ contradicts it, and correct it here when it does.
204204
read-only" assumption: the pair is the door, and the read-only-package lock the
205205
console renders is a *different* gate (see `access-security.readonly-package-locks-studio`).
206206

207-
- **A fresh organization's first page opens under a one-time prompt: "Set the default
208-
currency", or the system timezone, or both in one dialog.** An administrator is asked
209-
once while `localization.timezone` is still the manifest default or the organization
210-
has no default currency (`ui/apps/console/src/pages/settings/WorkspaceTimezonePrompt.tsx`,
211-
`workspaceTimezonePromptLogic.ts`), so on a fresh DB the dialog
212-
(`data-testid="workspace-timezone-prompt"`) sits over the first page the admin opens,
213-
Studio and app pages included (QA runs #29890 and #29893). Dismiss it with **Not now**
214-
(Keep the default when only the timezone is asked), `data-testid="workspace-timezone-prompt-decline"`,
215-
before any screenshot or DOM read. The answer is remembered per organization and user in
216-
that browser's `localStorage` (`os:workspace-timezone-prompt:<org>:<user>`), so a new
217-
browser context asks again. ⛔ Do not score a clause FAIL for chrome hidden under it.
207+
- **A fresh organization's Home carries a first-run checklist for the administrator; no
208+
dialog opens over any page.** Until objectstack#30206 a one-time "Set the default
209+
currency" / system timezone dialog sat over the first page an administrator opened. It
210+
is gone: the same questions are rows of a card at the top of `/home`
211+
(`ui/apps/console/src/pages/settings/FirstRunChecklist.tsx`,
212+
`data-testid="first-run-checklist"`), shown only to a session that may write
213+
`localization`, and it writes nothing until a row's own Confirm. Studio, Setup and app
214+
pages open with nothing in front of them. A screenshot of Home on a fresh DB shows the
215+
card above the page's sections; its close button
216+
(`data-testid="first-run-checklist-dismiss"`) hides it for that organization and user in
217+
that browser's `localStorage` (`os:first-run-checklist:<org>:<user>`). ⛔ Do not score a
218+
Home clause FAIL because the card pushes the page's sections down.
218219

219220
- **`objectstack verify --rls` is a separate invocation — bare `verify` prints no RLS
220221
section at all.** `runRlsProofs` runs only behind the flag

‎docs/qa/platform-checklist/areas/api-backend.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@
525525
"source": [
526526
"packages/spec/src/data/filter.zod.ts#AST_OPERATOR_MAP (AST_OPERATOR_MAP / FieldOperatorsSchema — the operator variant source)",
527527
"packages/spec/src/data/query.zod.ts#QueryAST (QueryAST keys)",
528-
"packages/metadata-protocol/src/protocol.ts#UNSUPPORTED_QUERY_PARAM (supported $-params + UNSUPPORTED_QUERY_PARAM #2926 ⑩, INVALID_FIELD #4134)",
528+
"packages/metadata-protocol/src/protocol-data-crud.ts#UNSUPPORTED_QUERY_PARAM (supported $-params + UNSUPPORTED_QUERY_PARAM #2926 ⑩, INVALID_FIELD #4134)",
529529
"packages/spec/src/data/filter.zod.ts#checkFilterConditionComparands (the request-schema refusal of a scalar list comparand on the POST door, #20116 — the $-object spelling, located at query.where.<field>.$nin)",
530530
"packages/spec/src/data/data-engine.zod.ts#lowerFoldedTransportValues (the AST/FilterArray spelling on the POST door, refused at query.where when it cannot be lowered)",
531531
"packages/spec/src/data/data-engine.zod.ts#QueryTransportParamsSchema (`filter` is a declared transport spelling of `where` — why negative[0] no longer probes with it)",

‎docs/qa/platform-checklist/areas/search.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@
282282
"examples/app-showcase/src/security/permission-sets.ts#invoice_own_rows (invoice_own_rows: owner == current_user.email, positions ['contributor'])",
283283
"examples/app-showcase/src/data/seed/index.ts (INV-1001..1012 owner spread; 'ada sees INV-1001/1002's lines but never linus's INV-1003')",
284284
"packages/objectql/src/engine.ts#expandSearchOnAst (expandSearchOnAst ANDs into ast.where; count() rides the read middleware — the #2737 total-leak fix)",
285-
"packages/metadata-protocol/src/protocol.ts#findData (the paged arm counts a searched list: engine.count is handed the query's search and searchFields, so total is the counted number of matches and hasMore agrees with it; the `countable` exception and its page-local estimate were deleted by #22790, PR #22857) + packages/rest/src/list-search-total-door.test.ts ('[#22790] a paged search reports the counted total', including 'a member counts only the matches it can read')"
285+
"packages/metadata-protocol/src/protocol-data-crud.ts#findData (the paged arm counts a searched list: engine.count is handed the query's search and searchFields, so total is the counted number of matches and hasMore agrees with it; the `countable` exception and its page-local estimate were deleted by #22790, PR #22857) + packages/rest/src/list-search-total-door.test.ts ('[#22790] a paged search reports the counted total', including 'a member counts only the matches it can read')"
286286
],
287287
"history": [
288288
{ "revision": 1, "date": "2026-08-07", "change": "new item: RLS × $search both-personas contract; total-leakage clause grounded in the protocol's page-local total for searched lists and the #2737 count middleware fix, persona provisioning gap recorded honestly", "ref": "claude/platform-test-checklist-ocwugl" },

0 commit comments

Comments
 (0)