Skip to content

Commit f74094f

Browse files
committed
Merge commit 'c5ddbea9' into claude/project-thread-rooznf
2 parents 52e2569 + c5ddbea commit f74094f

162 files changed

Lines changed: 8952 additions & 360 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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
---
5+
6+
feat(app-shell): the Packages page offers Disable / Enable on a suite's module rows, from the server's `disableable` verdict
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
The package detail sheet now offers **Disable** where the runtime's disable door accepts the package: the row's served `disableable` key on `GET /api/v1/packages`, never re-derived from `manifest.type`, `scope` or `writable`. A `type: 'module'` package of an installed app is `disableable` and not `writable`, so its row (listed in **Setup → Installed Apps** when the suite came from the marketplace, and in **Setup → Packages** when it was booted from code) now shows **Disable**, behind the same confirm dialog, and **Enable** once it is disabled. Every other write action (Edit, Publish, Revert, Duplicate, Adopt loose items, Delete) stays hidden on it, since it is still read-only for authoring, and its read-only note says it can be disabled. A row that carries no `disableable: true` offers no Disable; Enable is still offered on any disabled package.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
docs(spec): the `relatedList` field description says what each value does on the parent record page (`false` hidden, `true`/absent an auxiliary panel, `'primary'` a full-width table in the detail body) and points at ADR-0085 for the layout, instead of naming the retired "Related" and "Details" tabs and the page's columns
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@objectstack/runtime': patch
3+
'@objectstack/cloud-connection': patch
4+
'@objectstack/spec': patch
5+
---
6+
7+
feat(runtime): a package export names each connector map it withheld, and both install modes of install-local name each one as incomplete
8+
9+
Clause-②: yes (widening)
10+
Metadata-protocol: none
11+
12+
`GET /api/v1/packages/:id/export` writes served items, and the served read withholds four connector maps whole: `providerConfig.headers`, `providerConfig.defaultHeaders`, `providerConfig.transport.headers` and `providerConfig.transport.env`. An exported connector used to arrive with such a map simply absent, so an import could not tell a withheld map from one the package never had. Now:
13+
14+
- **The export lists each one.** The manifest's `withheldMaps` (declared on `PackageExportManifestSchema`) holds `{ type: 'connector', name, path }` for every map withheld. Each exported connector's stored body is judged by the same `connector` redactor the served read ran, read through the protocol's by-name execution face. Only the position leaves that read: no header or variable name, and no value. A package that withheld nothing carries no key. An export that cannot judge (a protocol without `getMetaItemForExecution`, or a connector that read answers no body for) fails rather than omitting the key, because from an exporter that writes it, an absent key means nothing was withheld.
15+
- **Both install modes name each one.** `POST /api/v1/marketplace/install-local`, managed and unmanaged, accepts the package and answers `withheldMaps`, the list as the export wrote it, plus one `warn` line naming every map. The key is left out when the body carries no list, so that answer's key set is unchanged.
16+
- **One narrowing, at the door.** A `withheldMaps` value the export's declaration refuses is now answered `PLUGIN_MANIFEST_INVALID` (400 for an inline manifest, 502 for a cloud snapshot) before any write, in either mode, the way an invalid `installModes` already is. Before this change the door ignored the key, whatever its value. No export wrote the key before this release, so only a hand-written list can be refused. Fix: send the list exactly as the export wrote it, or drop it.
17+
- **Spec.** The `[PLANNED — not yet served]` marker is dropped from `withheldMaps`' describe, and the docblocks now say the key is served.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
spec(data): a shared NULL-distinct `unique` conformance case-set, so every driver proves two NULLs do not collide
6+
7+
Clause-②: yes (widening)
8+
Metadata-protocol: none
9+
10+
`@objectstack/spec/data` now exports `UNIQUE_NULL_DISTINCT_CASES`, the case-set a driver suite runs to show that its `unique` constraint follows SQL's NULL rule: a row whose unique key holds a NULL (`null` or an absent value) in any key part is exempt, while `''` and equal non-null values still collide. It covers a field-level `unique` and a declared two-column unique index. `UNIQUE_NULL_DISTINCT_OBJECTS` is the two fixture objects, `UniqueNullDistinctCase` the row type, and `uniqueNullDistinctDivergence(case, second, stored)` the shared judge, which also checks how many rows the store kept.
11+
12+
The driver-conformance census (`pnpm check:driver-conformance`) scores the new column. No driver runs it yet: each driver adopts it in its own PR, and until then its cell is a tracked DEBT row. Nothing about how any driver stores, accepts or refuses a value changes.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
'@objectstack/spec': minor
3+
---
4+
5+
feat(spec)!: an object extension's `fields` is keyed by the field map's own key grammar, so a field no object could declare is refused where it is written
6+
7+
`ObjectExtensionSchema.fields` was keyed by any string. The fields an extension adds are merged into the target object's field map, and every key of that map is lowercase snake_case: `ObjectSchema.fields` refuses any other. So an extension could add a field under a key (`Region Code`, `region-code`) that the target's own declaration could never hold.
8+
9+
Clause-②: no (narrowing) — `ObjectExtensionSchema` refuses a `fields` key outside the snake_case grammar of an object's `fields` keys, which it accepted. Nothing is widened, and no public export is added.
10+
11+
Metadata-protocol: narrowed (an object extension may no longer add a field under anything but a snake_case field name)
12+
13+
Skills-docs: updated here — `content/docs/data-modeling/object-extensions.mdx` ("Naming the fields you add") gains the key grammar. `skills/objectstack-data/SKILL.md` and its evals teach extension fields only as `region__c`, so every taught line stays true and no skill line changes.
14+
15+
<!-- adr-0087: registered object-extension-field-key-grammar-refused -->
16+
17+
**BREAKING** accept-set narrowing on `ObjectExtensionSchema` (`@objectstack/spec`), at every door that parses an object extension: `defineObjectExtension`, `defineStack({ objectExtensions })`, `os validate` and `os build`, and the `/api/v1/meta` `object_extension` save door. The marketplace install does not parse an extension with the schema (it judges a built artifact's `__c` suffixes and patch targets), so a package built after this change carries the refusal from `os build`.
18+
19+
- **Before.** `fields: { 'Region Code': { type: 'text', label: 'Region' } }` parsed in `defineStack`, whether or not the target was in the same stack, and `os validate` raised nothing on it. In a `.custom` package, `fields: { 'Region Code__c': … }` was saved and published by the `object_extension` doors, served on every object read, re-registered at boot, and stored values in a column of that name.
20+
- **Now.** One `invalid_key` issue at `fields.Region Code`, naming the grammar and an example. The key schema is the one `ObjectSchema.fields` and `fieldPatches` read, one constant, so the three cannot drift.
21+
- **Unchanged.** A snake_case key parses as before, `__c` included (`region_code__c`); where the `__c` suffix is required or refused is still judged by the doors' `__c` rule.
22+
- **Who sees it.** No extension in this repository's examples, skills, docs or templates writes such a key. A stored `object_extension` row that carries one no longer parses, so the sync that registers stored extensions counts it as an error and registers none of it, its `fieldPatches` included, and its next save is refused (422 `INVALID_METADATA`) until the field is renamed. `os migrate meta --stored` lists such a row beforehand, one TODO for each refused key at `fields.KEY`, and leaves it as stored for its owner to rename.
23+
24+
**FROM → TO.** `fields: { 'Region Code': { type: 'text', label: 'Region Code' } }` → `fields: { region_code: { type: 'text', label: 'Region Code' } }` (`region_code__c` in a customization package): key each added field by a lowercase snake_case name, and keep the display text in its `label`. Renaming a field that already stores values also means renaming every view, formula and caller that reads it. The upgrade guide entry is `object-extension-field-key-grammar-refused`.
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): a record of an app built in the console reads the objects that point at it from the app bundle
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
An app created in the console has no package. Opening a record whose object has no declared record page read the whole object registry, so the synthesized page could find the objects that point at the record's object for its related lists: 553 KB of an 888 KB record open on the CRM example. When the app's navigation reaches the record's object, the app bundle already holds every object that points at it, so the route now reads those by name, from the bundle, together with the record's object and its lookup targets. The related lists are the same. The route still reads the registry for an object outside the app's navigation, with no bundle (draft preview, or a host without one), under a record drawer, and in an app that has a package.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/lint': patch
3+
---
4+
5+
fix(lint): `flow-region-shape-invalid` points at the region container at fault, not only the flow
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
A flow the automation engine refuses for its region shape used to be reported on the whole flow (`flows[1]`, `flow 'lead_time'`). The finding now names the container the engine's refusal names: its `path` runs to that node inside the flow (`flows[1].nodes[1].config.try.nodes[0]`) and its `where` reads `flow 'lead_time' › node 'fan'`. The location is read off the `FlowRegionShapeError` that `validateControlFlow` throws, never parsed from the sentence; the message is unchanged, still the engine's refusal behind the flow's name. The engine stops at a flow's first malformed region, so there is still one finding per flow. Any other error keeps the flow as the anchor, as before.
11+
12+
On the server, the save and publish verdict of an active flow and a draft's diagnostics carry the same move in item-relative spelling: the path was the item root and is now the container, for example `nodes.1`.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
docs(spec): the `ConnectorConnectionState.redirectUri` TSDoc names the service that sets it
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The `ConnectorConnectionState.redirectUri` docblock no longer says that no answer carries the key. It now names its producer: `AutomationServicePlugin.getConnectorConnection` in `@objectstack/service-automation` sets it whenever the redirect URI derivation has a base, and it is absent otherwise. Prose only: no type, schema or accepted value moves.
11+
12+
**Supersedes, in the same release.** The `@objectstack/spec` note "Declared ahead of the service" (until the automation service sets the key, no answer carries it) no longer holds: the `@objectstack/service-automation` note in this release says the connection read now answers `redirectUri`.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/runtime': patch
3+
---
4+
5+
feat(runtime): the flow and permission-set "New similar" answers name their notice by a stable `noticeCode`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Both clone doors answered with an English `notice` and nothing that named it, so a console could only print the sentence verbatim, and a zh-CN screen showed English. Each answer now also carries `noticeCode` beside the unchanged `notice`, so a console can map a code it knows to its own translated sentence and fall back to `notice` for a code it does not know.
11+
12+
- **Flow clone** (`POST /api/v1/automation/:name/clone`): `data.noticeCode` is `FLOW_CLONE_DISABLED_COPY` (exported as `FLOW_CLONE_NOTICE_CODE` beside `FLOW_CLONE_NOTICE`), the key `CloneFlowResponseSchema` already declares.
13+
- **Permission-set clone** (`POST /api/v1/security/permission-sets/:name/clone`): one code per notice variant, `PERMISSION_SET_CLONE_ENVIRONMENT_WIDE`, `PERMISSION_SET_CLONE_IN_PACKAGE` or `PERMISSION_SET_CLONE_IN_CREATED_PACKAGE`. The one value the sentence carries, the package, is already on the answer as `data.package`, so no parameter key is needed. Code and sentence are chosen from the same landing kind (`PERMISSION_SET_CLONE_NOTICE_CODES`, `permissionSetCloneNoticeCode`), so they cannot drift.
14+
- **`notice` is unchanged**, byte for byte, and stays the English fallback.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(app-shell): an optional choice row in a Studio metadata form can be cleared again
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
- **A "— None —" item on optional enum selects.** Both builtin select paths of the metadata-admin `SchemaForm` (a form row's `options`, and a schema property's own `enum`) listed only the enum values, so once an author picked a value on an optional key, the form had no way back to "declares nothing". An optional row now leads with "— None —" (the `engine.form.none` word the metadata-admin pickers already use). Choosing it writes the key as absent, through the form's existing clear convention. A required row, and one element of a list of choices, are unchanged: they offer no None item.
11+
- **Clears in an inspector's "More fields" form are kept.** The action, dashboard, hook, page and report editors pass their "More fields" form's changes to a host that merges them over the draft. A key the form cleared was merely missing from that change, so the merge kept the old value: a None pick, or an emptied text box, was undone at once. The cleared keys now reach the draft as absent, and the saved metadata no longer carries them.

0 commit comments

Comments
 (0)