Skip to content

Commit 60b846e

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-cecmwm
2 parents a1206ca + 2e33533 commit 60b846e

70 files changed

Lines changed: 1680 additions & 92 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: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
'@object-ui/i18n': patch
3+
'@object-ui/fields': patch
4+
'@object-ui/plugin-form': patch
5+
'@object-ui/plugin-detail': patch
6+
---
7+
8+
feat(ui): a home-currency amount shows the rate and document date it was converted at
9+
10+
Clause-②: yes (widening)
11+
Metadata-protocol: none
12+
13+
A `record`-mode amount that declares `currencyConfig.homeAmount` (ADR-0144 D5) has its home field filled by the server when the record is saved. That home field now draws as a read-only amount in the organization's home currency, with the line "Converted at RATE on DATE" taken from the record's own rate and document-date fields, or "In the home currency (rate 1)" when the amount was already in the home currency. This holds on the record page and on authored form sections (the record dialog, the drawer and an inline `ObjectForm`), where it used to be a disabled number box with no currency symbol. A form laid out automatically still leaves readonly fields out, the home field included.
14+
15+
`@object-ui/i18n` adds `homeAmountSourceOf`, `withHomeAmountSource`, `readHomeAmountSource`, `HOME_AMOUNT_SOURCE_KEY` and the `HomeAmountSource` type, plus two locale keys in every pack: `fields.currencyHome.convertedAt` and `fields.currencyHome.homeCurrency`. `@object-ui/fields` exports `HomeAmountHint`.
16+
17+
The Studio field editor gains the three `homeAmount` pickers under `record` mode (home amount field, document date, rate field), listing only the fields the spec accepts for each. Re-picking an amount's currency code field no longer deletes its `homeAmount`.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@objectstack/objectql': patch
3+
'@objectstack/cli': patch
4+
'@objectstack/spec': patch
5+
'@objectstack/metadata-protocol': patch
6+
---
7+
8+
feat(objectql): the package upgrade plan lists, as advice, each `.custom` override that hides a change of the upgrade, and each override already stale
9+
10+
Clause-②: yes (widening)
11+
Metadata-protocol: none
12+
13+
Who sees it: whoever previews a base package upgrade before it runs — `os package install … --dry-run` (the install-local door's `dryRun: true`) and a hosted upgrade preview that reads the `manifest` service's `planUpgrade`.
14+
15+
The plan's environment reading gains an advisory class, `environment.overrides` (ADR-0146 D2, as amended): for every base package the upgrade replaces, each item of its paired `<base>.custom` package that the reads serve over a base item (the protocol's served-override list) is read against the installed and the incoming version of the base.
16+
17+
- `hidesChange`: the base's item differs between the two versions (`change: 'changed'`), the new version no longer ships it (`'removed'`), or now ships it (`'added'`). The override keeps being served, so it hides that change.
18+
- `stale`: the override's `basedOn` is not the installed base version.
19+
20+
Each finding names the type, the name, the bundle member where the type has one, `basedOn`, the installed and the incoming base version, and the next step in Studio: open the item, compare, re-base it, or restore the package original. Advice only: nothing is refused on it, no confirmation token covers it, and nothing is merged or rebased; the upgrade installs exactly as before. `null` means the overrides could not be read (no protocol service, or the read failed), never "none". `os package install --dry-run` prints both lists after the schema plan.
21+
22+
The `overrides.basedOn` description (`@objectstack/spec`, and the generated reference pages) and the published declarations of `@objectstack/metadata-protocol` (`judgeOverrideWrite`'s JSDoc) no longer say no upgrade diff reads it: it never gates, and the upgrade plan reads it as advice.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/service-datasource': patch
3+
'@object-ui/app-shell': patch
4+
'@object-ui/i18n': patch
5+
---
6+
7+
feat(service-datasource): the Studio connection form offers Oracle and SQL Server, federation only
8+
9+
Clause-②: yes (widening)
10+
Metadata-protocol: none
11+
12+
`GET /api/v1/datasources/drivers` now lists `oracle` (Oracle Database) and `mssql` (SQL Server). Each entry's connection fields are projected from the driver's config contract in `@objectstack/spec`, like every other entry, and its words are served in every language on the platform locale table.
13+
14+
Both drivers serve federation only (ADR-0015 §4.6), so their entries carry a new key, `federationOnly: true`, read from the spec's `FEDERATION_ONLY_DRIVER_IDS`. The key is absent on every other entry; a client that does not read it sees two more entries and nothing else changed.
15+
16+
The New datasource dialog reads that key from the catalog: for Oracle and SQL Server its Schema mode select offers External and Validate only, never Managed (the spec refuses a managed datasource naming either), and one sentence under it says why. A Managed choice made on another driver moves to External when one of them is chosen. As with PostgreSQL and MySQL, the database client (`oracledb`, `tedious`) is an optional install next to the server. A SQL Server datasource whose `tedious` is missing is now refused with the install of `tedious` as its remedy, like the other clients; it used to be told to rebuild the workspace.

‎content/docs/api/metadata-api.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ D2, D11). A `PUT` naming no package onto an item one installed read-only package
102102
`hotcrm` ships is refused `403 NOT_OVERRIDABLE`; for a type an override applies to,
103103
the sentence names the route: save it with `?package=hotcrm.custom`, the body
104104
declaring `overrides: { package: 'hotcrm', basedOn: '3.2.0' }` (`basedOn` is the
105-
`manifest.version` of `hotcrm` it was taken from, recorded and never judged). Only the pair declares an override: an item of any other
105+
`manifest.version` of `hotcrm` it was taken from, recorded and never a gate; an upgrade of `hotcrm` lists, as advice, each override whose `basedOn` is not the installed version or whose base item the upgrade changes). Only the pair declares an override: an item of any other
106106
package that depends on `hotcrm` and bears a `hotcrm` item's name is refused at save
107107
and publish, and its fix is a new name. A permission set, position or capability is
108108
never overridden: a permission set or position is copied under a new name, and a

‎content/docs/concepts/metadata-lifecycle.mdx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ what it holds; while it holds the App's pair namespace, the ensure door answers
125125
than create the App's pair beside it. An item of the pair that bears a base item's name — for an
126126
`email_template`, one item per `(name, locale)`, the name **and** a locale the base ships — and
127127
declares in its body `overrides: { package: 'hotcrm', basedOn: '3.2.0' }` (the base's
128-
`manifest.id` and `manifest.version`; `basedOn` is recorded and never judged; schema:
128+
`manifest.id` and `manifest.version`; `basedOn` is recorded and never a gate, and the base's upgrade
129+
plan reads it only as advice; schema:
129130
[Override Declaration](/docs/references/kernel/override-declaration)) replaces the base's
130131
document **whole** for every read that serves the base's name
131132
([ADR-0146 D8](https://github.com/objectstack-ai/objectstack/blob/main/docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md)):

‎content/docs/references/api/automation-api.mdx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ const result = AutomationApiErrorCode.parse(data);
189189
| **_packageId** | `string` | optional | Owning package machine id. |
190190
| **_packageVersion** | `string` | optional | Owning package version. |
191191
| **_lockDocsUrl** | `string` | optional | Optional documentation link surfaced next to _lockReason. |
192-
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never judged. |
192+
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never gates; a base's upgrade plan reads it only as advice. |
193193

194194
### Nested Shape: `CreateFlowRequest.variables[number]`
195195

@@ -253,7 +253,7 @@ const result = AutomationApiErrorCode.parse(data);
253253
| Property | Type | Required | Description |
254254
| :--- | :--- | :--- | :--- |
255255
| **package** | `string` | ✅ | The base package id whose same-named item this item replaces whole (e.g. "com.acme.crm"). Only an item of the base's paired "`<base>`.custom" package declares an override. |
256-
| **basedOn** | `string` | ✅ | Recorded, never judged: the base package's `manifest.version` this override was taken from (e.g. "3.2.0"), not a history version of the item. No door compares it with the installed base, no upgrade diff is produced from it, and nothing is refused on it; it tells a person re-basing the override where it started (ADR-0146 D2). |
256+
| **basedOn** | `string` | ✅ | Recorded, never a gate: the base package's `manifest.version` this override was taken from (e.g. "3.2.0"), not a history version of the item. Nothing is refused, merged or rebased on it; it tells a person re-basing the override where it started. One reader, as advice: a base's upgrade plan lists an override whose `basedOn` is not the installed base version as stale, beside each override whose base item the upgrade changes (ADR-0146 D2, as amended). |
257257

258258

259259
---
@@ -318,7 +318,7 @@ const result = AutomationApiErrorCode.parse(data);
318318
| **_packageId** | `string` | optional | Owning package machine id. |
319319
| **_packageVersion** | `string` | optional | Owning package version. |
320320
| **_lockDocsUrl** | `string` | optional | Optional documentation link surfaced next to _lockReason. |
321-
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never judged. |
321+
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never gates; a base's upgrade plan reads it only as advice. |
322322

323323

324324
---
@@ -868,7 +868,7 @@ const result = AutomationApiErrorCode.parse(data);
868868
| **_packageId** | `string` | optional | Owning package machine id. |
869869
| **_packageVersion** | `string` | optional | Owning package version. |
870870
| **_lockDocsUrl** | `string` | optional | Optional documentation link surfaced next to _lockReason. |
871-
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never judged. |
871+
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never gates; a base's upgrade plan reads it only as advice. |
872872

873873

874874
---
@@ -1178,7 +1178,7 @@ const result = AutomationApiErrorCode.parse(data);
11781178
| **_packageId** | `string` | optional | Owning package machine id. |
11791179
| **_packageVersion** | `string` | optional | Owning package version. |
11801180
| **_lockDocsUrl** | `string` | optional | Optional documentation link surfaced next to _lockReason. |
1181-
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never judged. |
1181+
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never gates; a base's upgrade plan reads it only as advice. |
11821182

11831183

11841184
---
@@ -1243,7 +1243,7 @@ const result = AutomationApiErrorCode.parse(data);
12431243
| **_packageId** | `string` | optional | Owning package machine id. |
12441244
| **_packageVersion** | `string` | optional | Owning package version. |
12451245
| **_lockDocsUrl** | `string` | optional | Optional documentation link surfaced next to _lockReason. |
1246-
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never judged. |
1246+
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never gates; a base's upgrade plan reads it only as advice. |
12471247

12481248

12491249
---

‎content/docs/references/api/metadata.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const result = AppDefinitionResponseSchema.parse(data);
106106
| **_packageId** | `string` | optional | Owning package machine id. |
107107
| **_packageVersion** | `string` | optional | Owning package version. |
108108
| **_lockDocsUrl** | `string` | optional | Optional documentation link surfaced next to _lockReason. |
109-
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never judged. |
109+
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never gates; a base's upgrade plan reads it only as advice. |
110110

111111

112112
---

‎content/docs/references/automation/flow.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const result = FlowSchema.parse(data);
5050
| **_packageId** | `string` | optional | Owning package machine id. |
5151
| **_packageVersion** | `string` | optional | Owning package version. |
5252
| **_lockDocsUrl** | `string` | optional | Optional documentation link surfaced next to _lockReason. |
53-
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never judged. |
53+
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never gates; a base's upgrade plan reads it only as advice. |
5454

5555
### Nested Shape: `Flow.variables[number]`
5656

@@ -114,7 +114,7 @@ const result = FlowSchema.parse(data);
114114
| Property | Type | Required | Description |
115115
| :--- | :--- | :--- | :--- |
116116
| **package** | `string` | ✅ | The base package id whose same-named item this item replaces whole (e.g. "com.acme.crm"). Only an item of the base's paired "`<base>`.custom" package declares an override. |
117-
| **basedOn** | `string` | ✅ | Recorded, never judged: the base package's `manifest.version` this override was taken from (e.g. "3.2.0"), not a history version of the item. No door compares it with the installed base, no upgrade diff is produced from it, and nothing is refused on it; it tells a person re-basing the override where it started (ADR-0146 D2). |
117+
| **basedOn** | `string` | ✅ | Recorded, never a gate: the base package's `manifest.version` this override was taken from (e.g. "3.2.0"), not a history version of the item. Nothing is refused, merged or rebased on it; it tells a person re-basing the override where it started. One reader, as advice: a base's upgrade plan lists an override whose `basedOn` is not the installed base version as stale, beside each override whose base item the upgrade changes (ADR-0146 D2, as amended). |
118118

119119

120120
---
@@ -275,7 +275,7 @@ const result = FlowSchema.parse(data);
275275
| **_packageId** | `string` | optional | Owning package machine id. |
276276
| **_packageVersion** | `string` | optional | Owning package version. |
277277
| **_lockDocsUrl** | `string` | optional | Optional documentation link surfaced next to _lockReason. |
278-
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never judged. |
278+
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never gates; a base's upgrade plan reads it only as advice. |
279279

280280

281281
---

‎content/docs/references/data/mapping.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const result = ImportFieldMappingSchema.parse(data);
5757
| **_packageId** | `string` | optional | Owning package machine id. |
5858
| **_packageVersion** | `string` | optional | Owning package version. |
5959
| **_lockDocsUrl** | `string` | optional | Optional documentation link surfaced next to _lockReason. |
60-
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never judged. |
60+
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never gates; a base's upgrade plan reads it only as advice. |
6161

6262
### Nested Shape: `Mapping.fieldMapping[number]`
6363

@@ -83,7 +83,7 @@ const result = ImportFieldMappingSchema.parse(data);
8383
| Property | Type | Required | Description |
8484
| :--- | :--- | :--- | :--- |
8585
| **package** | `string` | ✅ | The base package id whose same-named item this item replaces whole (e.g. "com.acme.crm"). Only an item of the base's paired "`<base>`.custom" package declares an override. |
86-
| **basedOn** | `string` | ✅ | Recorded, never judged: the base package's `manifest.version` this override was taken from (e.g. "3.2.0"), not a history version of the item. No door compares it with the installed base, no upgrade diff is produced from it, and nothing is refused on it; it tells a person re-basing the override where it started (ADR-0146 D2). |
86+
| **basedOn** | `string` | ✅ | Recorded, never a gate: the base package's `manifest.version` this override was taken from (e.g. "3.2.0"), not a history version of the item. Nothing is refused, merged or rebased on it; it tells a person re-basing the override where it started. One reader, as advice: a base's upgrade plan lists an override whose `basedOn` is not the installed base version as stale, beside each override whose base item the upgrade changes (ADR-0146 D2, as amended). |
8787

8888

8989
---

‎content/docs/references/data/object.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ const result = ApiMethod.parse(data);
529529
| **_packageId** | `string` | optional | Owning package machine id. |
530530
| **_packageVersion** | `string` | optional | Owning package version. |
531531
| **_lockDocsUrl** | `string` | optional | Optional documentation link surfaced next to _lockReason. |
532-
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never judged. |
532+
| **overrides** | `{ package: string; basedOn: string }` | optional | Override declaration (ADR-0146 D2): `{ package, basedOn }` — this item of "`<base>`.custom" replaces the base package's same-named item whole. `basedOn` is recorded and never gates; a base's upgrade plan reads it only as advice. |
533533

534534
### Nested Shape: `Object.protection`
535535

0 commit comments

Comments
 (0)