Skip to content

Commit ff16a41

Browse files
committed
Merge origin/main into claude/issue-37150-docs-in-app-shell
Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW Co-authored-by: Claude <noreply@anthropic.com>
2 parents 096ac67 + 95734fe commit ff16a41

141 files changed

Lines changed: 4614 additions & 603 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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
docs(spec): the `IApprovalService.handleActionPage` contract names the reason a reject link's POST now carries
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Documentation only; no type, schema or export changes. The docblock shipped in `@objectstack/spec`'s contract types now matches what the ADR-0043 action page does since the reject-reason change in `@objectstack/plugin-approvals`:
11+
12+
- The confirm page for a reject link carries a required reason field, and the `POST` reads it from the form's `comment` field beside `token` (the last of each when a field repeats).
13+
- A reject whose `comment` is missing, blank or not a string is answered the same confirm page again with status `400` (redemption outcome `reason_required`): nothing is decided and the token is not consumed. A dead link is still told on its result page with `200`.
14+
- An approve link reads no `comment` and records the fixed comment "Via action link".
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/plugin-grid': patch
3+
---
4+
5+
fix(plugin-grid): the row menu offers no Edit on a row held by a locking approval
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A grid row whose record is held by its own pending approval with `lockRecord: true` is refused `RECORD_LOCKED` when it is updated. Its row menu still offered Edit, on the list page and on a record page's related tab. The menu now reads the same lock the grid's cells read (`POST /api/v1/approvals/records/:object/locks`), once per page, when a row's actions are first reached for. A row the lock read answered as locked offers no Edit, as the record page offers none. Delete stays, because a record held by its own approval may be deleted, and the delete cancels the request. The lock read does not report a detail line held because its master is held, so such lines keep both Edit and Delete in this menu, and the server refuses both. When the lock cannot be read, the menu stays as it was: no approvals service (501), a row the reader cannot read, a failed read, or a read not yet asked.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@object-ui/plugin-chatbot': patch
4+
'@object-ui/app-shell': patch
5+
'@object-ui/i18n': patch
6+
---
7+
8+
feat(console): a chat conversation can be pinned to one record — sent as `context.focus` on every turn, shown as a chip in the composer, kept across navigation — where the agent declares `capabilities.focus`
9+
10+
Clause-②: yes
11+
Metadata-protocol: added
12+
13+
**Contract (`@objectstack/spec`).** `ToolExecutionContext` gains `focus?: { object: string; id: string }[]`, beside `surfaceContext`: the record(s) the conversation is pinned to, as the client reports them on every turn. Client-reported and advisory, never an access decision; a consumer re-reads the record as the caller. At most one entry in phase 1. The agent catalog row (`AiAgentCapabilitiesSchema`, `GET /api/v1/ai/agents`) gains an optional `capabilities.focus: boolean`: an agent that honours the focus says so, and an absent flag reads as false. Both are additions; nothing is removed or renamed, and every catalog row served before the flag still parses.
14+
15+
**Console (`@object-ui/app-shell`, `@object-ui/plugin-chatbot`, `@object-ui/i18n`).** Where the agent the chat runs declares `capabilities.focus: true`:
16+
17+
- The composer's page chip is drawn in the row above the input (where the drafts line sits) instead of on the input's top edge, and carries a pin when the page shows one record (a record page, or a record open in a list's drawer). Pinning makes every later turn send `context.focus: [{ object, id }]`, the first turn of a new conversation included, until the user removes it with the chip's remove control.
18+
- The pinned record's chip replaces the page chip and names the record by its display name, read in the browser as the user; a record the user cannot read keeps its `object · id` pair.
19+
- Opening another record while one is pinned asks once whether to ask about that one instead; a decline is remembered for the conversation.
20+
- The focus belongs to the conversation: it never changes which conversation the drawer shows, and it is restored when that conversation is shown again in the same tab.
21+
- `setChatFocus({ object, id })` (exported from `@object-ui/app-shell`) is the setter every entry point pins through.
22+
23+
Where the agent does not declare the flag — every server today — nothing changes: no pin, no chip, no `focus` key in the request, and the page chip stays where it was. `AgentCapabilities` in `@object-ui/plugin-chatbot` gains `focus`, read from the catalog; unlike the build-era capabilities it has no name-based fallback for older servers. New locale keys `console.ai.focus.pin`, `.pinned`, `.remove`, `.switchPrompt`, `.switchAccept` and `.switchDecline`, in every pack.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@objectstack/metadata': minor
4+
'@object-ui/data-objectstack': minor
5+
'@objectstack/metadata-protocol': minor
6+
---
7+
8+
fix(metadata): a skill the platform registers keeps its own slot beside an app's skill of the same name
9+
10+
Clause-②: yes (widening)
11+
Metadata-protocol: added
12+
Skills-docs: none — no skills/ page names `_provenance` or its values, and the new value is one no author writes: the artifact door refuses it
13+
14+
`MetadataProvenanceSchema` (`@objectstack/spec/kernel`) gains `'platform'`: the `_provenance` of a record the platform's own code registers at boot. It is a store-slot marker only, read at the item's own top-level `_provenance` key and nowhere else, and only the metadata service sets it.
15+
16+
For every type stored per `(package, name)` (`skill`, `agent`, `tool` and the rest of `PACKAGE_SLOTTED_STORE_TYPES`), the platform's built-in record and a package's item of the same name no longer overwrite each other, in memory, in `sys_metadata`, and on a process or cluster peer that reads them back from the rows.
17+
18+
- `MetadataManager.register(type, name, data, { origin: 'platform' })` marks a record the platform's own code registers: the body is stamped `_provenance: 'platform'` and the record fills the name's bare slot, in memory and in `sys_metadata`. Before, a package-less write under a name one package held was folded into that package's slot as its customization, so the platform's boot registration rewrote the app's skill.
19+
- A package's first item of a name no longer takes over the bare slot when the platform's record is in it; the two stay side by side. For a bundled type (`email_template`) the row judged is the written member's. The environment's own item in the bare slot is still taken over, as before.
20+
- A package-less environment write under a platform name keeps today's rule: it takes the bare slot without the stamp, and the platform's next registration restores its record.
21+
- The readers that rebuild the store from loaders and rows keep both records: the plural read (`loadMany`, `loadManyKeyed`) gives the platform's entry a key of its own, `list` keeps a loader's platform row beside a package's slot and a loader's package item beside a platform slot, and a read naming a package is never answered from the platform's record.
22+
- `MetadataManager.unregister(type, name, { origin: 'platform' })` withdraws the platform's record only, from the registry, every loader (`MetadataLoaderDeleteOptions.platformOnly`) and every cluster peer. A package's item of the name and the environment's own item are never taken, for any type, and nothing is refused however many packages hold the name. Before, a removal naming no package took every slot of a name one package held. On a host that declares a package id, the boot pass leaves the platform's stored record without the host's package, for every type, so the withdrawal takes the registry's copy too.
23+
- `MetadataManager.getPlatformItem(type, name)` reads the platform's record only, never a package's item and never the environment's own.
24+
- No other write carries the platform stamp. `register` without `origin: 'platform'`, `registerInMemory`, `save` and `rollback` store the body without it, and so do the metadata protocol's save door and its restore doors (`rollbackMetaItem` and the restore limb of `revertCommit`); a stored row the boot pass re-registers keeps it only when the row held it as read. `rollback` whose row is the platform's own record is refused (`409 RESOURCE_CONFLICT`, naming the fix), with nothing written. The metadata protocol's two undo writes, of a refused batch publish's landed promotions and of a failed batch row write, put a row back as the same operation found it, byte for byte, so the mark comes back only where the row held it. A body served from a loader other than a `datasource:` one is served without it; `getPublished` serves it on the answer's top level only when the stored item carries it there, and never inside a publish snapshot; and the artifact door refuses an item that carries it, with or without a manifest id (`VALIDATION_ERROR` at `_provenance`, naming the fix). A `_provenance` key nested in the body (an authored `metadata` record, for one) is the author's data: it is kept as written and never read as the mark. A body that names a package is that package's item, whatever `_provenance` it carries.
25+
- `@objectstack/metadata` exports the mark's one definition (`PLATFORM_PROVENANCE`, `carriesPlatformStamp`, `isPlatformOrigin`, `withoutPlatformOrigin`); the artifact door and the metadata protocol's doors read it.
26+
- `@objectstack/metadata-protocol`: the boot census `metadata_sealed_overlay_unserved` no longer names the platform's own row beside a package that ships the name, nor prescribes deleting it.
27+
- Reads naming no package, and every removal and write without the option, keep their rules.
28+
- Public API added on `MetadataManager`: the `origin` option of `MetadataRegisterOptions` and `MetadataUnregisterOptions`, and `getPlatformItem`. The spec's `MetadataWriteOptions` is not widened.
29+
- `@object-ui/data-objectstack`: the layered read's `provenance` is typed from the spec's `MetadataProvenance`, so it accepts `'platform'`.
30+
31+
Callers that register built-ins at boot pass `{ origin: 'platform' }` to `register` and `unregister` to get this behaviour; without it, a write is treated as before.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@object-ui/plugin-list': patch
3+
---
4+
5+
fix(plugin-list): a date condition's value reads as a date in the viewer's language
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A list condition chip on a date field printed the stored value as written, so a
11+
drilled dashboard bucket read 「创建时间:≥ 2026-10-01T00:00:00.000Z」 in a zh-CN
12+
session. Every condition row (the reader's chips and the view's locked chips) now
13+
formats a date-family value by the field's type through the console's one date
14+
display path (`formatDate` / `formatDateTime` from `@object-ui/core`), in the
15+
display locale: a `date` field shows the day with its year (an instant at UTC
16+
midnight shows that calendar day in every zone), a `datetime` field shows the
17+
date and time in the display zone, and a `time` field or an unreadable value is
18+
shown as written. The filter the list sends is unchanged.
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-project platform catalog lists the built-in `sys_task` and `sys_note` objects
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The catalog's "Platform objects an app would otherwise build" section gains a "Tasks and notes" group, so an app that needs to-dos or notes uses the platform's objects instead of declaring its own. Each row says what the object holds, that it carries no link to another record, which list views ship (`assigned_to_me`, `created_by_me`, `all` on `sys_task`; `mine`, `all` on `sys_note`), and that rows are private (a task to its creator and assignee, a note to its creator) while `member_default` grants read, create and edit, not delete, without widening that. The task row spells the navigation entry an app uses: `type: 'object'` with `objectName` and `requiresObject` both `sys_task`. The `sys_comment` row now reads "a comments or record-notes table", since neither new object links to a record. One eval case covers the to-do request.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
Clause-②: no
6+
Metadata-protocol: none
7+
8+
The AI assistant no longer names the agent in its header when only one agent is offered: there is nothing to switch, so the row read only "Ask". In the right-side drawer, where Share and the Build Doctor sit in the drawer's own title bar, that leaves the row empty, so it is not drawn at all. With two or more agents the switcher is unchanged; the full-page assistant keeps its row for Share.
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+
fix(console): on a desktop the ⌘⇧H row names the app start page it opens, not the retired home page
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
From 768 px up the platform home page is retired: `⌘⇧H` / `Ctrl+Shift+H` (unchanged) opens where `/` lands, the last-used app's start page. The keyboard-shortcuts dialog and the app pill's menu still called that 「Back to home」. On a desktop both now read 「Back to app start page」 (zh: 返回应用起始页), one wording for the one destination; the pill's row keeps its `⌘⇧H` keycaps. A phone, whose Home is still its app list, keeps 「Back to home」 in the dialog.
12+
13+
Locale value change, no new key: `layout.appSwitcher.backToHome` in every built-in locale. No props or exports change.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@objectstack/types": patch
3+
"@objectstack/runtime": patch
4+
"@objectstack/mcp": patch
5+
---
6+
7+
Clause-②: yes (widening) — `@objectstack/types` gains root exports (`FLOW_RUNTIME_STATE_KEY`, `flowRuntimeStateOf`, `FlowRuntimeStateAnswer`), and the open door's `get_metadata_item` answer on a flow gains the key `runtimeState`; nothing that was accepted is refused, and no key a caller sends is added
8+
Metadata-protocol: none
9+
10+
An MCP definition reader now says when an admin has switched a flow off. The open authoring door's `get_metadata_item` answers a flow with `runtimeState: { enabled }`, the engine's own reading (the one `GET /automation/_status` serves), placed ahead of the item; the switch moves only that bit and leaves the definition, `status: 'active'` included, as it was, so before this a switched-off approval read as running. The app-docs answer-order text sent on `initialize` (`packageDocAnswerRule`) now tells the agent that `runtimeState.enabled: false` means the process is switched off and does not run. `@objectstack/types` exports the key and the reading (`FLOW_RUNTIME_STATE_KEY`, `flowRuntimeStateOf`) for a host's own reader.

‎.claude/skills/pm-dispatch/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ PM 的工作是循环:选卡 → 认领 → 派发 → 收集 → L1 审核 →
9494
| `references/execution-duties.md` | 执行席每次 fire | 候选与批次 · 认领 · 派发 · 收集 · L1 审核 |
9595
| `references/landing-operations.md` | 执行席落地窗口(ACCEPT 之后至 MERGED) | 入队与落地 · A–D 操作细则 |
9696
| `references/untrusted-text.md` | 任一座位与 dev 读 issue、PR、评论、日志的那一刻 | 谁写的就是什么 · 数据不能做的事 · 指令形文字 · 外部代码 |
97-
| `references/area-lease.md` | 任一车道席坐席、交接、换班时;open p1/p2 越分区阈值即可启用 | 分不分区 · 开席 · 区内规则 · 交接与换号 |
97+
| `references/area-lease.md` | 任一车道席坐席、交接、换班时;可认领卡越分区阈值即启用 | 分不分区 · 开席 · 区内规则 · 交接与换号 |
9898

9999
## 全体座位的不变量
100100

0 commit comments

Comments
 (0)