You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b6afae2
Browse filesBrowse the repository at this point in the historyBrowse files
chore(spec): regenerate references and strictness counts; docs, changeset, producer type narrowing
The package-lifecycle reference page and the api strictness count follow the
per-kind contributions entry. The metadata API page names the contributions
list and says the nav kind is not yet served. The runtime producer's local
entry type excludes the nav arm so it keeps compiling; it lists the same
field and flow entries as before.
Claude-Session: https://claude.ai/code/session_01ADHkmQ28WWiNo3u94yGTPb
Co-authored-by: Claude <noreply@anthropic.com>
feat(spec): the customizations read's `contributions` declares a `nav` kind, with an entry shape per kind
6
+
7
+
Clause-②: yes (widening)
8
+
Metadata-protocol: added
9
+
10
+
`GET /packages/:id/customizations` names the package behind each item another installed package contributes to a base (ADR-0029 D7 as amended by ADR-0146 D3). `GetPackageCustomizationsResponseSchema.contributions` now declares a third kind: the navigation items another package's `navigationContributions` add to an app the base owns.
11
+
12
+
-**The entry shape is per kind.** A `field` or `flow` entry is `{ kind, object, name, packageId }` and accepts exactly what it accepted before. A `nav` entry is `{ kind: 'nav', app, group?, name, packageId }`: the base-owned app, the group the contribution targets when it targets one, the nav item's id, and the contributing package. Each shape is strict, so a `nav` entry carrying `object`, or a `field` entry carrying `app`, is refused.
13
+
-**Order.** The `field` and `flow` entries come first, in the order they had before. The `nav` entries follow, by app, group (an entry with no group first), name and package. `counts.contributions` still counts items.
14
+
-**Not served yet.** The runtime lists no `nav` entry yet. The kind is declared ahead of its producer, and its describe opens `[PLANNED — not yet served]`. No nav item gains a key: the served app's `navigation` stays as declared.
15
+
16
+
TypeScript code that reads `object` from a `contributions` entry now narrows on `kind` first (`entry.kind !== 'nav'`), because a `nav` entry has no `object`.
Copy file name to clipboardExpand all lines: content/docs/references/api/package-lifecycle.mdx
+17-3Lines changed: 17 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,7 @@ Per-package customization read request: the base package id, no query parameters
163
163
164
164
## GetPackageCustomizationsResponse
165
165
166
-
Per-package customization read: overrides, extensions and switched-off items of one installed base, and the fieldsand flows other packages contribute to it.
166
+
Per-package customization read: overrides, extensions and switched-off items of one installed base, and the fields, flows and (not yet served) navigation items other packages contribute to it.
167
167
168
168
### Properties
169
169
@@ -173,7 +173,7 @@ Per-package customization read: overrides, extensions and switched-off items of
173
173
|**overrides**|`{ type: string; name: string; member?: string; basedOn?: string; … }[]`| ✅ | Every ACTIVE item of the base's paired `<base>.custom` package that declares `overrides.package` = the base and that the effective read serves over the base's item of the same name: the rows the served-override predicate admits (a declaration from any other package, and an undeclared pair item, are not listed), minus the stored rows every read declines (a shipped flow name). Ordered by type, name and member. |
174
174
|**extensions**|`{ object: string; kind: Enum<'field' \| 'validation' \| 'index'>; name?: string; fields?: string[] }[]`| ✅ | Every field, validation rule and index the paired `<base>.custom` package declares in an object extension (`objectExtensions`) of an object the base owns, one entry per member, as the extension declares it. Ordered by object, kind and name. |
175
175
|**switchedOff**|`{ type: string; name: string }[]`| ✅ | Every activation-ledger row (`sys_metadata_activation`) that records the base as its package and `active: false`: the base's items this deployment switched off. Ordered by type and name. |
176
-
|**contributions**|`{ kind: Enum<'field' \| 'flow'>; object: string; name: string; packageId: string }[]`| ✅ | Every fieldand flow another installed package contributes to the base's objects, one entry per item and contributing package: the fields of every object extension of an object the base owns, from any package but the base and its pair, and every flow registered under such a package whose trigger object the base owns (a flow of a disabled package is not served, so not listed). Orderedby object, kind, name and package. |
176
+
|**contributions**|`({ kind: Enum<'field' \| 'flow'>; object: string; name: string; packageId: string } \| { kind: 'nav'; app: string; group?: string; name: string; … })[]`| ✅ | Every field, flow and navigation item another installed package contributes to the base, one entry per item and contributing package: the fields of every object extension of an object the base owns, from any package but the base and its pair; every flow registered under such a package whose trigger object the base owns (a flow of a disabled package is not served, so not listed); and, declared ahead of its producer and not yet served, every navigation item such a package contributes to an app the base owns. The entry shape is per `kind`: `object` for `field` and `flow`, `app` and an optional `group` for `nav`. Ordered: the `field` and `flow` entries first, by object, kind, name and package; then the `nav` entries, by app, group (an entry with no group first), name and package. |
177
177
|**counts**|`{ overrides: integer; extensions: integer; switchedOff: integer; contributions: integer }`| ✅ | Each list's length, derived from the lists in this same answer. |
A field or flow another package contributes to one of the base's objects.
206
208
207
209
| Property | Type | Required | Description |
208
210
| :--- | :--- | :--- | :--- |
@@ -211,6 +213,18 @@ Per-package customization read: overrides, extensions and switched-off items of
211
213
|**name**|`string`| ✅ | The item's name: the field name as the extension declares it, or the flow's name. |
212
214
|**packageId**|`string`| ✅ | The package that contributes the item: the extension's package, or the package the flow is registered under. Never the base and never its `<base>.custom` pair. |
[PLANNED — not yet served] Declared ahead of its producer (ADR-0049): the read lists no `nav` entry yet. A navigation item another installed package contributes to an app the base owns, one entry per item of the contribution's `items` (a contributed group's children ride inside it and are not entries of their own), read from the same contribution registry the served app's navigation fold reads (ADR-0029 D7). A disabled package's contributions are not listed, as the fold drops them.
219
+
220
+
| Property | Type | Required | Description |
221
+
| :--- | :--- | :--- | :--- |
222
+
|**kind**|`'nav'`| ✅ | What is contributed: `nav`, a navigation item another package's `navigationContributions` entry adds to the navigation of an app the base owns. |
223
+
|**app**|`string`| ✅ | The base-owned app the item is contributed to: the contribution's `app`. |
224
+
|**group**|`string`| optional | The group nav item the contribution targets: its `group`, as the contribution declares it. Absent when the contribution targets the app's top level. A group the app does not declare is still named here, though the served navigation appends those items at the app's top level. |
225
+
|**name**|`string`| ✅ | The nav item's id, as the contribution's `items` declare it. |
226
+
|**packageId**|`string`| ✅ | The package that contributes the item: the package whose `navigationContributions` declares it. Never the base and never its `<base>.custom` pair. |
0 commit comments