diff --git a/.changeset/spec-describe-app-studio-name.md b/.changeset/spec-describe-app-studio-name.md new file mode 100644 index 00000000000..9b0728ade8a --- /dev/null +++ b/.changeset/spec-describe-app-studio-name.md @@ -0,0 +1,8 @@ +--- +'@objectstack/spec': patch +--- + +Clause-②: no +Metadata-protocol: none + +Text in `@objectstack/spec` now calls the authoring surface by its name, App Studio, where 39 lines in 15 `*.zod.ts` files still said the retired "Studio" (ADR-0084, 2026-11-26 amendment, decision 2). 28 are schema descriptions. 10 are the sentences of parse refusals and unknown-key guidance, so a tool that matches refusal text sees new wording: the `history` refusal (`data/object.zod.ts`), the `viewItems` refusal (`stack.zod.ts`), the unknown-key guidance of `studio/plugin.zod.ts`, the retired-key messages of `system/email-template.zod.ts`, and guidance in `ui/app.zod.ts` and `ui/view.zod.ts`. One is the description of a default metadata route (`api/plugin-rest-api.zod.ts`). The generated JSON schema and reference docs carry the new wording. Only prose changes: no key, type name, identifier or `/studio` address moves, and every refusal fires on the same input, at the same path, with the same code. diff --git a/content/docs/references/ai/agent.mdx b/content/docs/references/ai/agent.mdx index c9d3a00b7b0..100c42c6c71 100644 --- a/content/docs/references/ai/agent.mdx +++ b/content/docs/references/ai/agent.mdx @@ -117,7 +117,7 @@ const result = AIModelConfigSchema.parse(data); | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | --- diff --git a/content/docs/references/ai/draft-review.mdx b/content/docs/references/ai/draft-review.mdx index 90be9d4dab6..890b325571f 100644 --- a/content/docs/references/ai/draft-review.mdx +++ b/content/docs/references/ai/draft-review.mdx @@ -125,8 +125,8 @@ const result = DraftReviewItemSchema.parse(data); | Property | Type | Required | Description | | :--- | :--- | :--- | :--- | -| **changes** | `string` | ✅ | The package's Changes drawer in Studio, where its drafts are reviewed and published (`studioChangesReviewLink`) | -| **item** | `string` | ✅ | The draft's own review in Studio (`studioItemReviewLink`) | +| **changes** | `string` | ✅ | The package's Changes drawer in App Studio, where its drafts are reviewed and published (`studioChangesReviewLink`) | +| **item** | `string` | ✅ | The draft's own review in App Studio (`studioItemReviewLink`) | --- @@ -137,8 +137,8 @@ const result = DraftReviewItemSchema.parse(data); | Property | Type | Required | Description | | :--- | :--- | :--- | :--- | -| **changes** | `string` | ✅ | The package's Changes drawer in Studio, where its drafts are reviewed and published (`studioChangesReviewLink`) | -| **item** | `string` | ✅ | The draft's own review in Studio (`studioItemReviewLink`) | +| **changes** | `string` | ✅ | The package's Changes drawer in App Studio, where its drafts are reviewed and published (`studioChangesReviewLink`) | +| **item** | `string` | ✅ | The draft's own review in App Studio (`studioItemReviewLink`) | --- diff --git a/content/docs/references/ai/skill.mdx b/content/docs/references/ai/skill.mdx index 4f2a21170d5..f94ec160690 100644 --- a/content/docs/references/ai/skill.mdx +++ b/content/docs/references/ai/skill.mdx @@ -66,7 +66,7 @@ const result = SkillSchema.parse(data); | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | --- diff --git a/content/docs/references/ai/tool.mdx b/content/docs/references/ai/tool.mdx index 1da2b79521d..f3be41a2681 100644 --- a/content/docs/references/ai/tool.mdx +++ b/content/docs/references/ai/tool.mdx @@ -24,7 +24,7 @@ const result = ToolSchema.parse(data); ## Tool -AI tool definition. [READ-ONLY PROJECTION — not an execution entry point] Authoring a tool as metadata does NOT make it runnable: this schema has no `implementation`/`handler` field and no framework executor loads a metadata-authored tool. The runtime executes a separately-registered `AIToolDefinition` (cloud `@objectstack/service-ai`); tool metadata is a one-way projection for Studio/discovery. Do not expect a hand-authored tool to run in the open edition. +AI tool definition. [READ-ONLY PROJECTION — not an execution entry point] Authoring a tool as metadata does NOT make it runnable: this schema has no `implementation`/`handler` field and no framework executor loads a metadata-authored tool. The runtime executes a separately-registered `AIToolDefinition` (cloud `@objectstack/service-ai`); tool metadata is a one-way projection for App Studio/discovery. Do not expect a hand-authored tool to run in the open edition. ### Properties @@ -51,7 +51,7 @@ AI tool definition. [READ-ONLY PROJECTION — not an execution entry point] Auth | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | --- diff --git a/content/docs/references/automation/flow.mdx b/content/docs/references/automation/flow.mdx index 53482d7576f..a1887523433 100644 --- a/content/docs/references/automation/flow.mdx +++ b/content/docs/references/automation/flow.mdx @@ -108,7 +108,7 @@ const result = FlowSchema.parse(data); | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | ### Nested Shape: `Flow.overrides` diff --git a/content/docs/references/automation/io-node-config.mdx b/content/docs/references/automation/io-node-config.mdx index 7dea35cb7b7..d6fb91b79f4 100644 --- a/content/docs/references/automation/io-node-config.mdx +++ b/content/docs/references/automation/io-node-config.mdx @@ -98,7 +98,7 @@ const result = HttpConfigSchema.parse(data); | **recipients** | `string \| (string \| { dialect: 'cel'; source: string; ast?: any; meta?: object })[] \| { dialect: 'cel'; source: string; ast?: any; meta?: object } \| { emailField: string }` | ✅ | Who the notification goes to: a recipient (a user id, or an audience selector such as `team:ID`) as a string; a list of them, each a string or a CEL value envelope `{ dialect: 'cel', source }` evaluated per run — an entry that evaluates to a list adds each of its recipients, and one that evaluates to null adds none; or one envelope evaluating to a recipient or a list. A `{…}` template token is refused. Or, as the whole value, `{ emailField: 'applicant_email' }`: the address in that `email`-typed field of the record that triggered the flow, for a person who is not a user — the node then names `email` as its only channel. The address is read from the stored record when the node runs and must be one plain ASCII mailbox, or the node fails and nothing is sent; one address receives at most 5 such emails per hour, best-effort. An email address written out as a string is no audience selector but an author constant, sent as written: to the user who holds it, or else, on the `email` channel, to the address itself. An address an envelope evaluates to is not one: in a node whose `channels` include `email`, it must be a user's, written bare or as `user:ADDRESS` — one a user holds resolves to that user, and one that no user holds fails the node, pointing to `{ emailField }`. A node that does not name `email` mails nobody, and its computed recipients go to the messaging service as before. | | **title** | `string \| { dialect: 'template'; source?: string; ast?: any; meta?: object }` | optional | Notification title — a template: a bare string, or a `{ dialect: 'template', source }` envelope (the `tmpl` helper) carrying the same text. It is rendered per run with `{{ }}` holes over the flow's variables — a variable path with an optional formatter (`{{ record.name }}`, `{{ record.amount \| currency }}`); a single-brace `{token}` is refused. One text for every recipient (not localizable — use `template` for per-locale content). Either this or `template` is required; the two are mutually exclusive. | | **message** | `string \| { dialect: 'template'; source?: string; ast?: any; meta?: object }` | optional | Notification body — the same template input as `title` (a bare string or a `{ dialect: 'template', source }` envelope), rendered per run with `{{ }}` holes like `title`; not localizable. Only valid with inline `title`, never with `template`. | -| **template** | `string` | optional | Email template name (an `email_template` item's `name`, e.g. `crm.large_deal_won`) — the localizable content path: the delivery path resolves `(name, locale)` among the email templates — built-in, declared by an app, or authored in Studio — at delivery time and renders subject/body from that member. The locale is resolved per recipient, after fan-out: the recipient's own `sys_user.locale` when set, else the deployment default locale — so recipients whose personal languages differ receive different members of the same bundle. The node's `payload.locale` is not consulted. Mutually exclusive with inline `title`/`message`, which are the non-localizable path. Read raw — no `{token}` interpolation. | +| **template** | `string` | optional | Email template name (an `email_template` item's `name`, e.g. `crm.large_deal_won`) — the localizable content path: the delivery path resolves `(name, locale)` among the email templates — built-in, declared by an app, or authored in App Studio — at delivery time and renders subject/body from that member. The locale is resolved per recipient, after fan-out: the recipient's own `sys_user.locale` when set, else the deployment default locale — so recipients whose personal languages differ receive different members of the same bundle. The node's `payload.locale` is not consulted. Mutually exclusive with inline `title`/`message`, which are the non-localizable path. Read raw — no `{token}` interpolation. | | **templateData** | `Record` | optional | Render context for the referenced template's `{{var}}` placeholders — each value a CEL value envelope `{ dialect: 'cel', source }` evaluated per run, or a literal written as it is; a `{…}` template token is refused. Only valid together with `template`. | | **channels** | `string \| string[]` | optional | Channels to fan out to (default: inbox) | | **topic** | `string` | optional | Event topic (default: "notify") | diff --git a/content/docs/references/automation/webhook.mdx b/content/docs/references/automation/webhook.mdx index 8f38da71583..0ab7c6e498b 100644 --- a/content/docs/references/automation/webhook.mdx +++ b/content/docs/references/automation/webhook.mdx @@ -54,7 +54,7 @@ const result = WebhookSchema.parse(data); | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | --- diff --git a/content/docs/references/data/object.mdx b/content/docs/references/data/object.mdx index 7c60c56deea..93b63734a38 100644 --- a/content/docs/references/data/object.mdx +++ b/content/docs/references/data/object.mdx @@ -590,7 +590,7 @@ const result = ApiMethod.parse(data); | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | --- @@ -642,7 +642,7 @@ const result = ApiMethod.parse(data); | **actionLayout** | `{ list?: object; record?: object; selection?: object }` | optional | The arrangement of the extended object's actions, per scope (`list`, `record`), in the object's own shape. Written only by the object extension of the paired `.custom` package of the App the object belongs to (ADR-0146 D10). An extension in a package that is not a `.custom` package is refused at publish, by `os validate` / `os build` and at install, and the registry merge skips it with a warning; an action that package brings is placed by its own `locations` and `order`. A `.custom` package that is not this object's pair is refused at publish (and so at a package duplicate) and at install, the refusal naming the pair, and is not applied where it reaches the registry past them. Each arm written replaces the arm the object serves for that scope, whole, after every other layer; an arm not written stays as the object gives it, and removing the key, or uninstalling or disabling the package, restores it. | | **validations** | `any[]` | optional | Additional validation rules to merge into the target object | | **indexes** | `{ name?: string; fields: string[]; unique?: false \| 'global' \| 'organization' }[]` | optional | Additional indexes to merge into the target object | -| **place** | `({ field: string; group: string; after?: string; before?: string } \| { list: string; after?: string; before?: string; label?: string; … } \| { group: object; after?: string; before?: string })[]` | optional | Where the fields, groups and child lists this extension brings go on the extended object. Each entry is one of: `{ field, group, after \| before }` — a field of this extension's own `fields`, into a field group (the extended object's, or one this extension adds), right after or before a member of that group; `{ group: { key, label, … }, after \| before }` — a field group of this extension's own (its `fields` may name only fields this extension adds, its `relatedList` only a child list of this package), right after or before a group of the extended object; `{ list, after \| before, label?, columns? }` — a child list of this package (a child object of the same package that points at the extended object, or object.field), right after or before a tab of the extended object (a relatedLists entry name, a built-in tab included), with that tab's own title and columns (each column a field of the child, judged as a relatedLists entry's columns are). Write `after` or `before`, or neither for the end. An anchor may be an item another placement brings, whatever order the two are written or registered in. An anchor nobody has puts the item at the end of its group, of the groups, or of the tabs (before the approvals and activity-stream tabs); a group that does not exist puts the field among the ungrouped fields. Nothing is dropped. Several items at one anchor follow ascending `priority`, then package name, so every build gives the same order. Placement arranges what the extended object declares: list placements apply when it declares `relatedLists`, group and field placements when it declares `fieldGroups`. Where it declares none, its automatic arrangement stays as it is and the item still shows there: the list in the automatic tab order, with this entry's `label` and `columns` not applied either (write them on the child's own lookup field as `relatedListTitle` / `relatedListColumns`, which apply on every parent), and the field among the fields in declaration order, its `after` / `before` not applied. The boot log names each placement that did not apply, with the object and the package; `os validate` names it too when the extended object is in the same stack. A child list another package brings shows even when the extended object's `relatedLists` does not name it: placed, at its place; unplaced, at the end of the tabs. An extension places only its own items: a field outside its own `fields` is refused here; a field the extended object declares (an owner field this extension redeclares for its display is still the owner's), a group key the extended object declares, and a list (or a group's `relatedList`) that is not a child object of its package are refused at `defineStack` where the objects are known; the merge skips each of them too, with a warning naming whose item it is. A group key another package's extension already adds is not refused: the merge adds it once and names the second. Applied once, by the registry merge, so the record page, the forms and Studio show one arrangement; uninstalling the package removes its items and leaves the extended object's own order as it was. Example: `place: [{ field: 'tax_id', group: 'basic', after: 'industry' }, { list: 'contract', after: 'opportunity', columns: ['name', 'amount'] }]`. | +| **place** | `({ field: string; group: string; after?: string; before?: string } \| { list: string; after?: string; before?: string; label?: string; … } \| { group: object; after?: string; before?: string })[]` | optional | Where the fields, groups and child lists this extension brings go on the extended object. Each entry is one of: `{ field, group, after \| before }` — a field of this extension's own `fields`, into a field group (the extended object's, or one this extension adds), right after or before a member of that group; `{ group: { key, label, … }, after \| before }` — a field group of this extension's own (its `fields` may name only fields this extension adds, its `relatedList` only a child list of this package), right after or before a group of the extended object; `{ list, after \| before, label?, columns? }` — a child list of this package (a child object of the same package that points at the extended object, or object.field), right after or before a tab of the extended object (a relatedLists entry name, a built-in tab included), with that tab's own title and columns (each column a field of the child, judged as a relatedLists entry's columns are). Write `after` or `before`, or neither for the end. An anchor may be an item another placement brings, whatever order the two are written or registered in. An anchor nobody has puts the item at the end of its group, of the groups, or of the tabs (before the approvals and activity-stream tabs); a group that does not exist puts the field among the ungrouped fields. Nothing is dropped. Several items at one anchor follow ascending `priority`, then package name, so every build gives the same order. Placement arranges what the extended object declares: list placements apply when it declares `relatedLists`, group and field placements when it declares `fieldGroups`. Where it declares none, its automatic arrangement stays as it is and the item still shows there: the list in the automatic tab order, with this entry's `label` and `columns` not applied either (write them on the child's own lookup field as `relatedListTitle` / `relatedListColumns`, which apply on every parent), and the field among the fields in declaration order, its `after` / `before` not applied. The boot log names each placement that did not apply, with the object and the package; `os validate` names it too when the extended object is in the same stack. A child list another package brings shows even when the extended object's `relatedLists` does not name it: placed, at its place; unplaced, at the end of the tabs. An extension places only its own items: a field outside its own `fields` is refused here; a field the extended object declares (an owner field this extension redeclares for its display is still the owner's), a group key the extended object declares, and a list (or a group's `relatedList`) that is not a child object of its package are refused at `defineStack` where the objects are known; the merge skips each of them too, with a warning naming whose item it is. A group key another package's extension already adds is not refused: the merge adds it once and names the second. Applied once, by the registry merge, so the record page, the forms and App Studio show one arrangement; uninstalling the package removes its items and leaves the extended object's own order as it was. Example: `place: [{ field: 'tax_id', group: 'basic', after: 'industry' }, { list: 'contract', after: 'opportunity', columns: ['name', 'amount'] }]`. | | **fieldGroups** | `{ key: string; label: string; fields?: string[]; icon?: string; … }[]` | optional | The whole field arrangement of the extended object on the record page, the forms and the preview: an object's `fieldGroups`, in the same shape. Written only by the object extension of the paired `.custom` package of the App the object belongs to (ADR-0146 D10). An extension in a package that is not a `.custom` package is refused at publish, by `os validate` / `os build` and at install, with the prescription to place what it brings with `place`. A `.custom` package that is not this object's pair is refused at publish (and so at a package duplicate) and at install, the refusal naming the object's pair; `os validate` / `os build` cannot read the installed packages and judge it by suffix alone. What reaches the registry past these doors is not applied, alone or beside the pair, and the boot log names it. A group may list any field the object has, whoever declares it (its owner, another package's extension, or this extension's own `__c` fields), and a group's `relatedList` may place any body table. Written, it replaces the groups the owner declares and the other extensions' `place` entries add, whole: no group, member or order of that arrangement is kept unless written here, and nothing is merged entry by entry. A group that lists `fields` shows exactly its list. A field no group here lists is never dropped: it shows after the last group, whatever group its owner or another extension had put it in. That covers a field a later version of the base adds and a field another package's extension brings. A group that lists no `fields` keeps the object's older rule (the fields whose `group` names it), and a field this extension adds keeps the `group` it declares. Not written, the arrangement stays as the owner and the `place` entries give it, and removing this key, or uninstalling or disabling the package, restores that. To keep a field off the record page and the forms, list it in a group whose `visibleWhen` is false: `hidden` is not a display property a `fieldPatches` entry may set, because it also changes what search indexes and what a form requires. Such a group is presentation only, not access control: the field stays readable and writable through the API. Do not use it for a `required` field that has no default: the create form no longer shows the field while the save still requires it, so the form cannot be submitted. Example: `fieldGroups: [{ key: 'contact', label: 'Contact', fields: ['email', 'phone', 'region__c'] }, { key: 'basic', label: 'Basics', fields: ['name', 'company'] }]`. | | **relatedLists** | `(string \| { list: string; label?: string; columns?: string[]; hidden?: boolean })[]` | optional | The whole tab list of the extended object's record page, in order: an object's `relatedLists`, in the same shape, whose object form also takes `hidden`. Written only by the object extension of the paired `.custom` package of the App the object belongs to (ADR-0146 D10). An extension in a package that is not a `.custom` package is refused at publish, by `os validate` / `os build` and at install, with the prescription to place what it brings with `place`. A `.custom` package that is not this object's pair is refused at publish (and so at a package duplicate) and at install, the refusal naming the object's pair; `os validate` / `os build` cannot read the installed packages and judge it by suffix alone. What reaches the registry past these doors is not applied, alone or beside the pair, and the boot log names it. An entry may name any list the object has, whoever brings it (a child object, object.field, or a built-in tab; `{ list, label?, columns?, hidden? }` gives the list its own title and columns, or hides it). Written, it replaces the tab list the owner declares and the other extensions' `place` entries add to, whole, and nothing is merged entry by entry. A tab this list does not name is not hidden, the reverse of an object's own `relatedLists`: where the object had a declared tab list, each of its tabs not named here follows the listed ones (before a trailing approvals / activity-stream run), with the title and columns it had; where the object declared none (every list shows), every list not named here follows the listed ones, and so does the attachments tab. That covers a tab a later version of the base adds and a child list a package installed later brings. Hiding is written: `{ list: 'task', hidden: true }` hides that list's tab, whoever brings the list, and a bare child name hides every list of that child. A list the object's own `relatedLists` hides by leaving it out stays hidden until this list names it. A built-in tab is written only as its bare name, keeps its own rule (approvals and the activity stream follow the listed tabs when unlisted) and cannot be hidden here. `relatedList: false` on the child's field still hides a list whatever this says, and body tables a field group places are the groups' to place. A reader's own tab order and hidden tabs (kept per user) are laid over this list, as over an object's. Not written, the tabs stay as the owner and the `place` entries give them, and removing this key, or uninstalling or disabling the package, restores that. Example: `relatedLists: ['opportunity', { list: 'contact', label: 'People' }, { list: 'task', hidden: true }]`. | | **priority** | `integer` | optional (default: `200`) | Merge priority (higher = applied later) | diff --git a/content/docs/references/security/permission.mdx b/content/docs/references/security/permission.mdx index 8d952f70267..783a5d31809 100644 --- a/content/docs/references/security/permission.mdx +++ b/content/docs/references/security/permission.mdx @@ -204,7 +204,7 @@ const result = AdminScopeSchema.parse(data); | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | --- diff --git a/content/docs/references/ui/app.mdx b/content/docs/references/ui/app.mdx index a7de43ad952..2cad6d3e5d6 100644 --- a/content/docs/references/ui/app.mdx +++ b/content/docs/references/ui/app.mdx @@ -328,7 +328,7 @@ Documentation entry on the app menu (ADR-0046). Targets a `book` and/or a `doc` | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | ### Nested Shape: `App.overrides` diff --git a/content/docs/references/ui/dashboard.mdx b/content/docs/references/ui/dashboard.mdx index 531d81dea9d..342a4a6c509 100644 --- a/content/docs/references/ui/dashboard.mdx +++ b/content/docs/references/ui/dashboard.mdx @@ -109,7 +109,7 @@ const result = DashboardSchema.parse(data); | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | ### Nested Shape: `Dashboard.overrides` diff --git a/content/docs/references/ui/dataset.mdx b/content/docs/references/ui/dataset.mdx index 1f75670de4c..a5a99d1a4fb 100644 --- a/content/docs/references/ui/dataset.mdx +++ b/content/docs/references/ui/dataset.mdx @@ -109,7 +109,7 @@ const result = DatasetSchema.parse(data); | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | ### Nested Shape: `Dataset.overrides` diff --git a/content/docs/references/ui/report.mdx b/content/docs/references/ui/report.mdx index 7fe47fc53a4..2269d10c9c6 100644 --- a/content/docs/references/ui/report.mdx +++ b/content/docs/references/ui/report.mdx @@ -145,7 +145,7 @@ const result = JoinedReportBlockSchema.parse(data); | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | ### Nested Shape: `Report.overrides` diff --git a/content/docs/references/ui/view.mdx b/content/docs/references/ui/view.mdx index 7abfe818687..b19e036d37a 100644 --- a/content/docs/references/ui/view.mdx +++ b/content/docs/references/ui/view.mdx @@ -194,7 +194,7 @@ Column footer summary configuration | :--- | :--- | :--- | :--- | | **name** | `string` | ✅ | The form's name, `OBJECT.KEY` (ADR-0159 D3): the name it is served under, the target of an action of `type: 'form'`, and the key a declared override names. The part before the last segment is the form's `object`. | | **object** | `string` | ✅ | The object the form submits into — its one binding (ADR-0159 D2). It must name an object the package can reference. | -| **label** | `string \| Record` | optional | The form's name in lists (Setup, Studio). When absent a surface shows `title`, then the name. | +| **label** | `string \| Record` | optional | The form's name in lists (Setup, App Studio). When absent a surface shows `title`, then the name. | | **type** | `Enum<'simple' \| 'tabbed' \| 'wizard'>` | optional (default: `"simple"`) | Form layout: 'simple' (stacked sections, the default), 'tabbed' (one tab per section) or 'wizard' (one gated step per section). Where the form opens is the caller's choice, not the form's | | **layout** | `Enum<'vertical' \| 'horizontal'>` | optional | Field layout direction — 'vertical' (the renderer default) or 'horizontal'. Multi-column is not a layout value: set `columns` | | **columns** | `integer` | optional | Number of columns for the form body | @@ -300,7 +300,7 @@ Column footer summary configuration | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | ### Nested Shape: `Form.overrides` @@ -2208,7 +2208,7 @@ Tab configuration for multi-tab view interface | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | --- @@ -2477,7 +2477,7 @@ This schema accepts one of the following structures: | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | ### Nested Shape: `ViewItem.overrides` @@ -2595,7 +2595,7 @@ This schema accepts one of the following structures: | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | ### Nested Shape: `ViewItemWire.overrides` diff --git a/packages/spec/docs/references/api/app-bundle.md b/packages/spec/docs/references/api/app-bundle.md index f3713ac45e2..2c6915110d2 100644 --- a/packages/spec/docs/references/api/app-bundle.md +++ b/packages/spec/docs/references/api/app-bundle.md @@ -94,7 +94,7 @@ const result = AppMetadataBundleResponseSchema.parse(data); | **resettable** | `boolean` | optional | Whether the item can be reset to its packaged default — true iff it is artifact-backed, i.e. there is a baseline to reset TO. | | **version** | `string \| null` | optional | ADR-0008 version token of the STORED row a save to this item compares against, at this read's scope (the environment's partition and `?package=`) and lifecycle (`?state=draft` reads the draft row, the plain read the active row). The same keyed token a save receipt's `version` serves for that row: send it back as the `If-Match` request header on `PUT /meta/:type/:name` (with `?mode=draft` for the draft) and a concurrent edit is refused 409 `METADATA_CONFLICT` instead of overwritten. `null` when no stored row is there — an item served from code or a package artifact, or from a row in another scope (a package-less row a package read falls back to) — so the next save creates one: pin it with `If-None-Match: *`. A `null` beside `editable: false` is no such invitation: that item takes no save at this address, so no pin is prescribed for it. ABSENT on the cached published-value branch and on a `?preview=draft` read, which publish no version: absence means "not published here", never "no row". Opaque — echo it verbatim, never parse it. | | **registration** | `{ state: 'registered' } \| { state: 'refused'; reason: object } \| { state: 'unregistered' }` | optional | The automation engine's verdict on this flow (see `FlowRegistrationSchema`): `registered`, or `refused` with the engine's `reason` verbatim, or `unregistered`. Present only on a `flow` read answered by a process that runs an automation service; absent otherwise, and absence means no engine judged it, never `registered`. Unlike the protection keys it is published by the cached branch too, read live and never part of the ETag, so a cached read that carries it is never answered 304; it is absent on a draft read, whose pending body no engine holds. The verdict is the answering process's engine. Beside `item`, never inside it: the item's `status` stays what its author declared. | -| **disabledActions** | `string[]` | optional | The names in `item.actions` that this deployment's activation ledger switches off (an administrator turned them off through the activation door, for example on the action in Studio): a call to any of them is refused 409 `ACTION_DISABLED`. Present only on an `object` read answered by a process whose data engine has an activation ledger attached, and then `[]` when none of this object's actions is switched off. Absent otherwise, and absence means no ledger answered, never that nothing is switched off. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag, so a cached read revalidates to 304 only while the switched-off set is unchanged; it is absent on a draft read. The ledger is the answering process's engine's. Beside `item`, never inside it: `item.actions` is served as declared, a switched-off action included. | +| **disabledActions** | `string[]` | optional | The names in `item.actions` that this deployment's activation ledger switches off (an administrator turned them off through the activation door, for example on the action in App Studio): a call to any of them is refused 409 `ACTION_DISABLED`. Present only on an `object` read answered by a process whose data engine has an activation ledger attached, and then `[]` when none of this object's actions is switched off. Absent otherwise, and absence means no ledger answered, never that nothing is switched off. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag, so a cached read revalidates to 304 only while the switched-off set is unchanged; it is absent on a draft read. The ledger is the answering process's engine's. Beside `item`, never inside it: `item.actions` is served as declared, a switched-off action included. | | **cascadeDeleteObjects** | `string[]` | optional | The objects, by name, that deleting a record of this object can also delete: every object whose relation into it cascades (a `master_detail` by default, a `lookup`, `tree` or `user` field that declares `deleteBehavior: 'cascade'`), and the objects that cascade into those in turn, each once, in the order the delete reaches them. This object itself is named only when a cascading relation leads back to it. A `restrict` or `set_null` relation removes nothing and is not named. Read from the rule the delete runs, and object-level: it never says which records or how many. Present only on an `object` read answered by a process whose data engine answers it, and then `[]` when nothing cascades. Absent otherwise, and absence means no engine answered, never that nothing cascades. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag; it is absent on a draft read. Beside `item`, never inside it: it is derived from other objects' definitions and is not authorable. | | **draftChanges** | `{ path: string[]; by: Enum<'copilot' \| 'mcp' \| 'studio' \| 'api'>; actor: string \| null; client?: object; … }[]` | optional | Per-key provenance of the pending draft: which authoring surface last changed each key path of `item`, under which actor, and when. The draft save records it: each draft save is compared with the body that save replaced (the previous draft, or the stored published row for the draft's first save; a draft of an item with no stored published row is recorded as `[]`, the whole body). A `migrate-stored` rewrite of a draft row records nothing, since it is not authoring. The entries are kept from the first recorded save until the draft is published or discarded, which remove the draft row and the entries with it; and no two entries share a path: a save replaces every entry at or under each path it changes, so the last write to change a key is the entry whose `path` is the longest prefix of that key's path, and entries under a key's path are changes inside it. The entries name which writes changed what; they are not a list of every difference from the published body (compare the two bodies for that). Served only on a `?state=draft` read that answers a stored draft row. ABSENT on the active read, the cached branch and a `?preview=draft` read, and for a draft row whose saves recorded none: absence means "not recorded", never "no changes". | @@ -119,7 +119,7 @@ const result = AppMetadataBundleResponseSchema.parse(data); | **resettable** | `boolean` | optional | Whether the item can be reset to its packaged default — true iff it is artifact-backed, i.e. there is a baseline to reset TO. | | **version** | `string \| null` | optional | ADR-0008 version token of the STORED row a save to this item compares against, at this read's scope (the environment's partition and `?package=`) and lifecycle (`?state=draft` reads the draft row, the plain read the active row). The same keyed token a save receipt's `version` serves for that row: send it back as the `If-Match` request header on `PUT /meta/:type/:name` (with `?mode=draft` for the draft) and a concurrent edit is refused 409 `METADATA_CONFLICT` instead of overwritten. `null` when no stored row is there — an item served from code or a package artifact, or from a row in another scope (a package-less row a package read falls back to) — so the next save creates one: pin it with `If-None-Match: *`. A `null` beside `editable: false` is no such invitation: that item takes no save at this address, so no pin is prescribed for it. ABSENT on the cached published-value branch and on a `?preview=draft` read, which publish no version: absence means "not published here", never "no row". Opaque — echo it verbatim, never parse it. | | **registration** | `{ state: 'registered' } \| { state: 'refused'; reason: object } \| { state: 'unregistered' }` | optional | The automation engine's verdict on this flow (see `FlowRegistrationSchema`): `registered`, or `refused` with the engine's `reason` verbatim, or `unregistered`. Present only on a `flow` read answered by a process that runs an automation service; absent otherwise, and absence means no engine judged it, never `registered`. Unlike the protection keys it is published by the cached branch too, read live and never part of the ETag, so a cached read that carries it is never answered 304; it is absent on a draft read, whose pending body no engine holds. The verdict is the answering process's engine. Beside `item`, never inside it: the item's `status` stays what its author declared. | -| **disabledActions** | `string[]` | optional | The names in `item.actions` that this deployment's activation ledger switches off (an administrator turned them off through the activation door, for example on the action in Studio): a call to any of them is refused 409 `ACTION_DISABLED`. Present only on an `object` read answered by a process whose data engine has an activation ledger attached, and then `[]` when none of this object's actions is switched off. Absent otherwise, and absence means no ledger answered, never that nothing is switched off. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag, so a cached read revalidates to 304 only while the switched-off set is unchanged; it is absent on a draft read. The ledger is the answering process's engine's. Beside `item`, never inside it: `item.actions` is served as declared, a switched-off action included. | +| **disabledActions** | `string[]` | optional | The names in `item.actions` that this deployment's activation ledger switches off (an administrator turned them off through the activation door, for example on the action in App Studio): a call to any of them is refused 409 `ACTION_DISABLED`. Present only on an `object` read answered by a process whose data engine has an activation ledger attached, and then `[]` when none of this object's actions is switched off. Absent otherwise, and absence means no ledger answered, never that nothing is switched off. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag, so a cached read revalidates to 304 only while the switched-off set is unchanged; it is absent on a draft read. The ledger is the answering process's engine's. Beside `item`, never inside it: `item.actions` is served as declared, a switched-off action included. | | **cascadeDeleteObjects** | `string[]` | optional | The objects, by name, that deleting a record of this object can also delete: every object whose relation into it cascades (a `master_detail` by default, a `lookup`, `tree` or `user` field that declares `deleteBehavior: 'cascade'`), and the objects that cascade into those in turn, each once, in the order the delete reaches them. This object itself is named only when a cascading relation leads back to it. A `restrict` or `set_null` relation removes nothing and is not named. Read from the rule the delete runs, and object-level: it never says which records or how many. Present only on an `object` read answered by a process whose data engine answers it, and then `[]` when nothing cascades. Absent otherwise, and absence means no engine answered, never that nothing cascades. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag; it is absent on a draft read. Beside `item`, never inside it: it is derived from other objects' definitions and is not authorable. | | **draftChanges** | `{ path: string[]; by: Enum<'copilot' \| 'mcp' \| 'studio' \| 'api'>; actor: string \| null; client?: object; … }[]` | optional | Per-key provenance of the pending draft: which authoring surface last changed each key path of `item`, under which actor, and when. The draft save records it: each draft save is compared with the body that save replaced (the previous draft, or the stored published row for the draft's first save; a draft of an item with no stored published row is recorded as `[]`, the whole body). A `migrate-stored` rewrite of a draft row records nothing, since it is not authoring. The entries are kept from the first recorded save until the draft is published or discarded, which remove the draft row and the entries with it; and no two entries share a path: a save replaces every entry at or under each path it changes, so the last write to change a key is the entry whose `path` is the longest prefix of that key's path, and entries under a key's path are changes inside it. The entries name which writes changed what; they are not a list of every difference from the published body (compare the two bodies for that). Served only on a `?state=draft` read that answers a stored draft row. ABSENT on the active read, the cached branch and a `?preview=draft` read, and for a draft row whose saves recorded none: absence means "not recorded", never "no changes". | @@ -144,7 +144,7 @@ const result = AppMetadataBundleResponseSchema.parse(data); | **resettable** | `boolean` | optional | Whether the item can be reset to its packaged default — true iff it is artifact-backed, i.e. there is a baseline to reset TO. | | **version** | `string \| null` | optional | ADR-0008 version token of the STORED row a save to this item compares against, at this read's scope (the environment's partition and `?package=`) and lifecycle (`?state=draft` reads the draft row, the plain read the active row). The same keyed token a save receipt's `version` serves for that row: send it back as the `If-Match` request header on `PUT /meta/:type/:name` (with `?mode=draft` for the draft) and a concurrent edit is refused 409 `METADATA_CONFLICT` instead of overwritten. `null` when no stored row is there — an item served from code or a package artifact, or from a row in another scope (a package-less row a package read falls back to) — so the next save creates one: pin it with `If-None-Match: *`. A `null` beside `editable: false` is no such invitation: that item takes no save at this address, so no pin is prescribed for it. ABSENT on the cached published-value branch and on a `?preview=draft` read, which publish no version: absence means "not published here", never "no row". Opaque — echo it verbatim, never parse it. | | **registration** | `{ state: 'registered' } \| { state: 'refused'; reason: object } \| { state: 'unregistered' }` | optional | The automation engine's verdict on this flow (see `FlowRegistrationSchema`): `registered`, or `refused` with the engine's `reason` verbatim, or `unregistered`. Present only on a `flow` read answered by a process that runs an automation service; absent otherwise, and absence means no engine judged it, never `registered`. Unlike the protection keys it is published by the cached branch too, read live and never part of the ETag, so a cached read that carries it is never answered 304; it is absent on a draft read, whose pending body no engine holds. The verdict is the answering process's engine. Beside `item`, never inside it: the item's `status` stays what its author declared. | -| **disabledActions** | `string[]` | optional | The names in `item.actions` that this deployment's activation ledger switches off (an administrator turned them off through the activation door, for example on the action in Studio): a call to any of them is refused 409 `ACTION_DISABLED`. Present only on an `object` read answered by a process whose data engine has an activation ledger attached, and then `[]` when none of this object's actions is switched off. Absent otherwise, and absence means no ledger answered, never that nothing is switched off. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag, so a cached read revalidates to 304 only while the switched-off set is unchanged; it is absent on a draft read. The ledger is the answering process's engine's. Beside `item`, never inside it: `item.actions` is served as declared, a switched-off action included. | +| **disabledActions** | `string[]` | optional | The names in `item.actions` that this deployment's activation ledger switches off (an administrator turned them off through the activation door, for example on the action in App Studio): a call to any of them is refused 409 `ACTION_DISABLED`. Present only on an `object` read answered by a process whose data engine has an activation ledger attached, and then `[]` when none of this object's actions is switched off. Absent otherwise, and absence means no ledger answered, never that nothing is switched off. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag, so a cached read revalidates to 304 only while the switched-off set is unchanged; it is absent on a draft read. The ledger is the answering process's engine's. Beside `item`, never inside it: `item.actions` is served as declared, a switched-off action included. | | **cascadeDeleteObjects** | `string[]` | optional | The objects, by name, that deleting a record of this object can also delete: every object whose relation into it cascades (a `master_detail` by default, a `lookup`, `tree` or `user` field that declares `deleteBehavior: 'cascade'`), and the objects that cascade into those in turn, each once, in the order the delete reaches them. This object itself is named only when a cascading relation leads back to it. A `restrict` or `set_null` relation removes nothing and is not named. Read from the rule the delete runs, and object-level: it never says which records or how many. Present only on an `object` read answered by a process whose data engine answers it, and then `[]` when nothing cascades. Absent otherwise, and absence means no engine answered, never that nothing cascades. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag; it is absent on a draft read. Beside `item`, never inside it: it is derived from other objects' definitions and is not authorable. | | **draftChanges** | `{ path: string[]; by: Enum<'copilot' \| 'mcp' \| 'studio' \| 'api'>; actor: string \| null; client?: object; … }[]` | optional | Per-key provenance of the pending draft: which authoring surface last changed each key path of `item`, under which actor, and when. The draft save records it: each draft save is compared with the body that save replaced (the previous draft, or the stored published row for the draft's first save; a draft of an item with no stored published row is recorded as `[]`, the whole body). A `migrate-stored` rewrite of a draft row records nothing, since it is not authoring. The entries are kept from the first recorded save until the draft is published or discarded, which remove the draft row and the entries with it; and no two entries share a path: a save replaces every entry at or under each path it changes, so the last write to change a key is the entry whose `path` is the longest prefix of that key's path, and entries under a key's path are changes inside it. The entries name which writes changed what; they are not a list of every difference from the published body (compare the two bodies for that). Served only on a `?state=draft` read that answers a stored draft row. ABSENT on the active read, the cached branch and a `?preview=draft` read, and for a draft row whose saves recorded none: absence means "not recorded", never "no changes". | @@ -169,7 +169,7 @@ const result = AppMetadataBundleResponseSchema.parse(data); | **resettable** | `boolean` | optional | Whether the item can be reset to its packaged default — true iff it is artifact-backed, i.e. there is a baseline to reset TO. | | **version** | `string \| null` | optional | ADR-0008 version token of the STORED row a save to this item compares against, at this read's scope (the environment's partition and `?package=`) and lifecycle (`?state=draft` reads the draft row, the plain read the active row). The same keyed token a save receipt's `version` serves for that row: send it back as the `If-Match` request header on `PUT /meta/:type/:name` (with `?mode=draft` for the draft) and a concurrent edit is refused 409 `METADATA_CONFLICT` instead of overwritten. `null` when no stored row is there — an item served from code or a package artifact, or from a row in another scope (a package-less row a package read falls back to) — so the next save creates one: pin it with `If-None-Match: *`. A `null` beside `editable: false` is no such invitation: that item takes no save at this address, so no pin is prescribed for it. ABSENT on the cached published-value branch and on a `?preview=draft` read, which publish no version: absence means "not published here", never "no row". Opaque — echo it verbatim, never parse it. | | **registration** | `{ state: 'registered' } \| { state: 'refused'; reason: object } \| { state: 'unregistered' }` | optional | The automation engine's verdict on this flow (see `FlowRegistrationSchema`): `registered`, or `refused` with the engine's `reason` verbatim, or `unregistered`. Present only on a `flow` read answered by a process that runs an automation service; absent otherwise, and absence means no engine judged it, never `registered`. Unlike the protection keys it is published by the cached branch too, read live and never part of the ETag, so a cached read that carries it is never answered 304; it is absent on a draft read, whose pending body no engine holds. The verdict is the answering process's engine. Beside `item`, never inside it: the item's `status` stays what its author declared. | -| **disabledActions** | `string[]` | optional | The names in `item.actions` that this deployment's activation ledger switches off (an administrator turned them off through the activation door, for example on the action in Studio): a call to any of them is refused 409 `ACTION_DISABLED`. Present only on an `object` read answered by a process whose data engine has an activation ledger attached, and then `[]` when none of this object's actions is switched off. Absent otherwise, and absence means no ledger answered, never that nothing is switched off. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag, so a cached read revalidates to 304 only while the switched-off set is unchanged; it is absent on a draft read. The ledger is the answering process's engine's. Beside `item`, never inside it: `item.actions` is served as declared, a switched-off action included. | +| **disabledActions** | `string[]` | optional | The names in `item.actions` that this deployment's activation ledger switches off (an administrator turned them off through the activation door, for example on the action in App Studio): a call to any of them is refused 409 `ACTION_DISABLED`. Present only on an `object` read answered by a process whose data engine has an activation ledger attached, and then `[]` when none of this object's actions is switched off. Absent otherwise, and absence means no ledger answered, never that nothing is switched off. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag, so a cached read revalidates to 304 only while the switched-off set is unchanged; it is absent on a draft read. The ledger is the answering process's engine's. Beside `item`, never inside it: `item.actions` is served as declared, a switched-off action included. | | **cascadeDeleteObjects** | `string[]` | optional | The objects, by name, that deleting a record of this object can also delete: every object whose relation into it cascades (a `master_detail` by default, a `lookup`, `tree` or `user` field that declares `deleteBehavior: 'cascade'`), and the objects that cascade into those in turn, each once, in the order the delete reaches them. This object itself is named only when a cascading relation leads back to it. A `restrict` or `set_null` relation removes nothing and is not named. Read from the rule the delete runs, and object-level: it never says which records or how many. Present only on an `object` read answered by a process whose data engine answers it, and then `[]` when nothing cascades. Absent otherwise, and absence means no engine answered, never that nothing cascades. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag; it is absent on a draft read. Beside `item`, never inside it: it is derived from other objects' definitions and is not authorable. | | **draftChanges** | `{ path: string[]; by: Enum<'copilot' \| 'mcp' \| 'studio' \| 'api'>; actor: string \| null; client?: object; … }[]` | optional | Per-key provenance of the pending draft: which authoring surface last changed each key path of `item`, under which actor, and when. The draft save records it: each draft save is compared with the body that save replaced (the previous draft, or the stored published row for the draft's first save; a draft of an item with no stored published row is recorded as `[]`, the whole body). A `migrate-stored` rewrite of a draft row records nothing, since it is not authoring. The entries are kept from the first recorded save until the draft is published or discarded, which remove the draft row and the entries with it; and no two entries share a path: a save replaces every entry at or under each path it changes, so the last write to change a key is the entry whose `path` is the longest prefix of that key's path, and entries under a key's path are changes inside it. The entries name which writes changed what; they are not a list of every difference from the published body (compare the two bodies for that). Served only on a `?state=draft` read that answers a stored draft row. ABSENT on the active read, the cached branch and a `?preview=draft` read, and for a draft row whose saves recorded none: absence means "not recorded", never "no changes". | @@ -194,7 +194,7 @@ const result = AppMetadataBundleResponseSchema.parse(data); | **resettable** | `boolean` | optional | Whether the item can be reset to its packaged default — true iff it is artifact-backed, i.e. there is a baseline to reset TO. | | **version** | `string \| null` | optional | ADR-0008 version token of the STORED row a save to this item compares against, at this read's scope (the environment's partition and `?package=`) and lifecycle (`?state=draft` reads the draft row, the plain read the active row). The same keyed token a save receipt's `version` serves for that row: send it back as the `If-Match` request header on `PUT /meta/:type/:name` (with `?mode=draft` for the draft) and a concurrent edit is refused 409 `METADATA_CONFLICT` instead of overwritten. `null` when no stored row is there — an item served from code or a package artifact, or from a row in another scope (a package-less row a package read falls back to) — so the next save creates one: pin it with `If-None-Match: *`. A `null` beside `editable: false` is no such invitation: that item takes no save at this address, so no pin is prescribed for it. ABSENT on the cached published-value branch and on a `?preview=draft` read, which publish no version: absence means "not published here", never "no row". Opaque — echo it verbatim, never parse it. | | **registration** | `{ state: 'registered' } \| { state: 'refused'; reason: object } \| { state: 'unregistered' }` | optional | The automation engine's verdict on this flow (see `FlowRegistrationSchema`): `registered`, or `refused` with the engine's `reason` verbatim, or `unregistered`. Present only on a `flow` read answered by a process that runs an automation service; absent otherwise, and absence means no engine judged it, never `registered`. Unlike the protection keys it is published by the cached branch too, read live and never part of the ETag, so a cached read that carries it is never answered 304; it is absent on a draft read, whose pending body no engine holds. The verdict is the answering process's engine. Beside `item`, never inside it: the item's `status` stays what its author declared. | -| **disabledActions** | `string[]` | optional | The names in `item.actions` that this deployment's activation ledger switches off (an administrator turned them off through the activation door, for example on the action in Studio): a call to any of them is refused 409 `ACTION_DISABLED`. Present only on an `object` read answered by a process whose data engine has an activation ledger attached, and then `[]` when none of this object's actions is switched off. Absent otherwise, and absence means no ledger answered, never that nothing is switched off. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag, so a cached read revalidates to 304 only while the switched-off set is unchanged; it is absent on a draft read. The ledger is the answering process's engine's. Beside `item`, never inside it: `item.actions` is served as declared, a switched-off action included. | +| **disabledActions** | `string[]` | optional | The names in `item.actions` that this deployment's activation ledger switches off (an administrator turned them off through the activation door, for example on the action in App Studio): a call to any of them is refused 409 `ACTION_DISABLED`. Present only on an `object` read answered by a process whose data engine has an activation ledger attached, and then `[]` when none of this object's actions is switched off. Absent otherwise, and absence means no ledger answered, never that nothing is switched off. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag, so a cached read revalidates to 304 only while the switched-off set is unchanged; it is absent on a draft read. The ledger is the answering process's engine's. Beside `item`, never inside it: `item.actions` is served as declared, a switched-off action included. | | **cascadeDeleteObjects** | `string[]` | optional | The objects, by name, that deleting a record of this object can also delete: every object whose relation into it cascades (a `master_detail` by default, a `lookup`, `tree` or `user` field that declares `deleteBehavior: 'cascade'`), and the objects that cascade into those in turn, each once, in the order the delete reaches them. This object itself is named only when a cascading relation leads back to it. A `restrict` or `set_null` relation removes nothing and is not named. Read from the rule the delete runs, and object-level: it never says which records or how many. Present only on an `object` read answered by a process whose data engine answers it, and then `[]` when nothing cascades. Absent otherwise, and absence means no engine answered, never that nothing cascades. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag; it is absent on a draft read. Beside `item`, never inside it: it is derived from other objects' definitions and is not authorable. | | **draftChanges** | `{ path: string[]; by: Enum<'copilot' \| 'mcp' \| 'studio' \| 'api'>; actor: string \| null; client?: object; … }[]` | optional | Per-key provenance of the pending draft: which authoring surface last changed each key path of `item`, under which actor, and when. The draft save records it: each draft save is compared with the body that save replaced (the previous draft, or the stored published row for the draft's first save; a draft of an item with no stored published row is recorded as `[]`, the whole body). A `migrate-stored` rewrite of a draft row records nothing, since it is not authoring. The entries are kept from the first recorded save until the draft is published or discarded, which remove the draft row and the entries with it; and no two entries share a path: a save replaces every entry at or under each path it changes, so the last write to change a key is the entry whose `path` is the longest prefix of that key's path, and entries under a key's path are changes inside it. The entries name which writes changed what; they are not a list of every difference from the published body (compare the two bodies for that). Served only on a `?state=draft` read that answers a stored draft row. ABSENT on the active read, the cached branch and a `?preview=draft` read, and for a draft row whose saves recorded none: absence means "not recorded", never "no changes". | diff --git a/packages/spec/docs/references/api/automation-api.md b/packages/spec/docs/references/api/automation-api.md index 5ab357e2ee9..e11571fa00e 100644 --- a/packages/spec/docs/references/api/automation-api.md +++ b/packages/spec/docs/references/api/automation-api.md @@ -247,7 +247,7 @@ const result = AutomationApiErrorCode.parse(data); | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | ### Nested Shape: `CreateFlowRequest.overrides` diff --git a/packages/spec/docs/references/api/protocol.md b/packages/spec/docs/references/api/protocol.md index 2ad2339e726..8876d8df2df 100644 --- a/packages/spec/docs/references/api/protocol.md +++ b/packages/spec/docs/references/api/protocol.md @@ -802,7 +802,7 @@ A write-path strip event: caller-supplied fields legally dropped from the payloa | :--- | :--- | :--- | :--- | | **type** | `string` | ✅ | Metadata type name | | **name** | `string` | ✅ | Item name | -| **parentVersion** | `string` | optional | ADR-0008 optimistic-concurrency pin: the version token the caller believes is current (on the REST door, the `If-Match` request header). Present, a concurrent edit is reported as a 409 conflict instead of silently reset; absent = last-write-wins against the current row (Studio's "Reset" button is unpinned). | +| **parentVersion** | `string` | optional | ADR-0008 optimistic-concurrency pin: the version token the caller believes is current (on the REST door, the `If-Match` request header). Present, a concurrent edit is reported as a 409 conflict instead of silently reset; absent = last-write-wins against the current row (App Studio's "Reset" button is unpinned). | | **actor** | `string` | optional | Identity recorded on the delete's history tombstone row. On the REST door this is the request's authenticated identity (one producer) — never a caller-supplied header. Absent, the event is recorded actor-less (null), deliberately not attributed to "system". | | **state** | `Enum<'active' \| 'draft'>` | optional | Which lifecycle row to discard: `draft` discards the pending draft overlay only (the still-active overlay, if any, keeps serving); `active` or absent resets the live row. Absent defaults to `active`. | | **dropStorage** | `boolean` | optional | Destructive opt-in, default false: also drop the object's physical table after the metadata row is removed (`object` type + `active` state only; never `sys_` tables). Used by the "discard a previewed object" flow so a publish-to-preview leaves no orphan table. | @@ -1551,7 +1551,7 @@ This schema accepts one of the following structures: | **overlayScope** | `Enum<'env'> \| null` | ✅ | Which scope the `overlay` row was read from: `env`, the environment layer — the only layer a read serves (ADR-0131 D6). `null` exactly when `overlay` is null. | | **effective** | `any` | ✅ | LAYER 3 — the merged result, i.e. the value an ordinary `GET /meta/:type/:name` would return under `item`. `null` when the item resolves to nothing at all. | | **draft** | `any` | optional | LAYER — the pending draft row exactly as stored: untranslated, ungoverned, with no injected columns (unlike the `?state=draft` item read, which serves the draft translated and governed). For the requested `packageId` when one is given. `null` when no draft is pending. A client building an edit buffer reads `draft ?? overlay ?? code`. ABSENT from a server that does not serve this layer: absence means "not served", never "no draft". | -| **_diagnostics** | `{ valid: boolean; errors?: object[]; warnings?: object[] }` | optional | Load-time spec-validation verdict for `effective`, so the Studio edit page can raise invalid-metadata banners and inline field errors without a second round trip. ABSENT for metadata types that register no Zod schema (function / service / router) — absence means "no opinion", never "valid". | +| **_diagnostics** | `{ valid: boolean; errors?: object[]; warnings?: object[] }` | optional | Load-time spec-validation verdict for `effective`, so the App Studio edit page can raise invalid-metadata banners and inline field errors without a second round trip. ABSENT for metadata types that register no Zod schema (function / service / router) — absence means "no opinion", never "valid". | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Resolved lock verdict (ADR-0010 §3.3), artifact winning over overlay. Always present on this path. | | **lockReason** | `string` | optional | Human-readable explanation shown next to a refused write. Present only when the resolved item declares `_lockReason`. | | **lockSource** | `Enum<'artifact' \| 'package' \| 'env-forced'>` | optional | Which layer asserted the lock. Present only when the resolved item declares `_lockSource`. | @@ -1584,7 +1584,7 @@ This schema accepts one of the following structures: | **name** | `string` | ✅ | Item name: the item's own `name`. For `type: 'app'` only, it may instead be the id of the package that ships the app (`manifest.id`, reverse-domain, e.g. `com.acme.crm`): with one app per package the app IS the package container, and the package id is its route key (ADR-0048 §3.1). The two grammars are disjoint (an app name is snake_case with no dot; a package id matches `MANIFEST_ID_PATTERN`, with at least one dot), so an app key in the package-id grammar always names the package (`isAppPackageIdKey`). That read answers the package's one app as the by-name read answers it, under the app's own `name`, and the per-caller read gate judges it as it judges that app read by name (an app withheld from the caller answers 403 `PERMISSION_DENIED`). A package with no app, or with more than one, answers as an absent item. A `packageId` naming a different package is refused with 400 `INVALID_REQUEST`. Every other type, and every other key, is read by name. | | **packageId** | `string` | optional | Optional package ID to filter items by | | **member** | `string` | optional | Bundle member selector, for a metadata type whose identity is a pair (today only `email_template`, identified by `(name, locale)`): the member this request addresses, spelled as its discriminator value (`zh-CN`). Absent, the canonical member (`en-US` for `email_template`), which is what a bare-name read answers; naming the canonical value is the same request. It is not the response translation locale, which `?locale=` and `Accept-Language` choose. Refused with 400 `VALIDATION_ERROR` on a type that has no members, and for a blank value or one longer than a stored member can be (100 characters). A well-formed member with nothing stored or shipped answers as that door answers an absent item. | -| **state** | `Enum<'active' \| 'draft'>` | optional | Draft-visibility switch — which lifecycle row to read (strict mode): `'draft'` opens the pending draft buffer (Studio's editor read) and fails when no draft exists; absent or `'active'` reads the live published row. Distinct from `previewDrafts`, which FALLS BACK to the active row when no draft exists. Declaration ≠ authorization: this member only selects which stored row is read — ADR-0106 masking is unaffected, and draft access is gated upstream, not by this schema. | +| **state** | `Enum<'active' \| 'draft'>` | optional | Draft-visibility switch — which lifecycle row to read (strict mode): `'draft'` opens the pending draft buffer (App Studio's editor read) and fails when no draft exists; absent or `'active'` reads the live published row. Distinct from `previewDrafts`, which FALLS BACK to the active row when no draft exists. Declaration ≠ authorization: this member only selects which stored row is read — ADR-0106 masking is unaffected, and draft access is gated upstream, not by this schema. | | **previewDrafts** | `boolean` | optional | Draft-visibility switch (ADR-0033 draft-overlay preview, non-strict): when true and `state` is not `'draft'`, a pending draft row is preferred if one exists, else the read falls back to the active row — the render path degrades to the published value instead of erroring. A served draft is tagged `_draft: true` so UIs can badge it. Declaration ≠ authorization: this member only switches which row is read, and ADR-0106 masking is unaffected — draft preview is admin-gated upstream, not by this schema. | | **userTextLocales** | `string[]` | optional | The locales the user-facing sentences of a served DRAFT's check findings are composed in, in ladder order: the locale the request names, then the workspace default — the save request's member of the same name, read the same way (each value against the platform locale table, whole and then one subtag shorter at a time; a value that names no table language is passed over; `en` is the last rung). Read only by the `state: 'draft'` read, which folds what publishing the draft would say into its `_diagnostics`: an advisory finding that carries a user sentence becomes a `_diagnostics.warnings[]` entry in that sentence. Stated by the door that holds the request (the REST door and the dispatcher state `[ExecutionContext.locale, ExecutionContext.workspaceLocale]`), never read from a query string. ABSENT ⇒ the sentences are composed in `en`. It selects a language only: which row is read, and what the verdict is, do not depend on it. | diff --git a/packages/spec/docs/references/api/protocol.part-2.md b/packages/spec/docs/references/api/protocol.part-2.md index ec258a8ebd3..41331951bb4 100644 --- a/packages/spec/docs/references/api/protocol.part-2.md +++ b/packages/spec/docs/references/api/protocol.part-2.md @@ -29,7 +29,7 @@ | **resettable** | `boolean` | optional | Whether the item can be reset to its packaged default — true iff it is artifact-backed, i.e. there is a baseline to reset TO. | | **version** | `string \| null` | optional | ADR-0008 version token of the STORED row a save to this item compares against, at this read's scope (the environment's partition and `?package=`) and lifecycle (`?state=draft` reads the draft row, the plain read the active row). The same keyed token a save receipt's `version` serves for that row: send it back as the `If-Match` request header on `PUT /meta/:type/:name` (with `?mode=draft` for the draft) and a concurrent edit is refused 409 `METADATA_CONFLICT` instead of overwritten. `null` when no stored row is there — an item served from code or a package artifact, or from a row in another scope (a package-less row a package read falls back to) — so the next save creates one: pin it with `If-None-Match: *`. A `null` beside `editable: false` is no such invitation: that item takes no save at this address, so no pin is prescribed for it. ABSENT on the cached published-value branch and on a `?preview=draft` read, which publish no version: absence means "not published here", never "no row". Opaque — echo it verbatim, never parse it. | | **registration** | `{ state: 'registered' } \| { state: 'refused'; reason: object } \| { state: 'unregistered' }` | optional | The automation engine's verdict on this flow (see `FlowRegistrationSchema`): `registered`, or `refused` with the engine's `reason` verbatim, or `unregistered`. Present only on a `flow` read answered by a process that runs an automation service; absent otherwise, and absence means no engine judged it, never `registered`. Unlike the protection keys it is published by the cached branch too, read live and never part of the ETag, so a cached read that carries it is never answered 304; it is absent on a draft read, whose pending body no engine holds. The verdict is the answering process's engine. Beside `item`, never inside it: the item's `status` stays what its author declared. | -| **disabledActions** | `string[]` | optional | The names in `item.actions` that this deployment's activation ledger switches off (an administrator turned them off through the activation door, for example on the action in Studio): a call to any of them is refused 409 `ACTION_DISABLED`. Present only on an `object` read answered by a process whose data engine has an activation ledger attached, and then `[]` when none of this object's actions is switched off. Absent otherwise, and absence means no ledger answered, never that nothing is switched off. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag, so a cached read revalidates to 304 only while the switched-off set is unchanged; it is absent on a draft read. The ledger is the answering process's engine's. Beside `item`, never inside it: `item.actions` is served as declared, a switched-off action included. | +| **disabledActions** | `string[]` | optional | The names in `item.actions` that this deployment's activation ledger switches off (an administrator turned them off through the activation door, for example on the action in App Studio): a call to any of them is refused 409 `ACTION_DISABLED`. Present only on an `object` read answered by a process whose data engine has an activation ledger attached, and then `[]` when none of this object's actions is switched off. Absent otherwise, and absence means no ledger answered, never that nothing is switched off. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag, so a cached read revalidates to 304 only while the switched-off set is unchanged; it is absent on a draft read. The ledger is the answering process's engine's. Beside `item`, never inside it: `item.actions` is served as declared, a switched-off action included. | | **cascadeDeleteObjects** | `string[]` | optional | The objects, by name, that deleting a record of this object can also delete: every object whose relation into it cascades (a `master_detail` by default, a `lookup`, `tree` or `user` field that declares `deleteBehavior: 'cascade'`), and the objects that cascade into those in turn, each once, in the order the delete reaches them. This object itself is named only when a cascading relation leads back to it. A `restrict` or `set_null` relation removes nothing and is not named. Read from the rule the delete runs, and object-level: it never says which records or how many. Present only on an `object` read answered by a process whose data engine answers it, and then `[]` when nothing cascades. Absent otherwise, and absence means no engine answered, never that nothing cascades. Unlike the protection keys it is published by the cached branch too, read live and folded into the ETag; it is absent on a draft read. Beside `item`, never inside it: it is derived from other objects' definitions and is not authorable. | | **draftChanges** | `{ path: string[]; by: Enum<'copilot' \| 'mcp' \| 'studio' \| 'api'>; actor: string \| null; client?: object; … }[]` | optional | Per-key provenance of the pending draft: which authoring surface last changed each key path of `item`, under which actor, and when. The draft save records it: each draft save is compared with the body that save replaced (the previous draft, or the stored published row for the draft's first save; a draft of an item with no stored published row is recorded as `[]`, the whole body). A `migrate-stored` rewrite of a draft row records nothing, since it is not authoring. The entries are kept from the first recorded save until the draft is published or discarded, which remove the draft row and the entries with it; and no two entries share a path: a save replaces every entry at or under each path it changes, so the last write to change a key is the entry whose `path` is the longest prefix of that key's path, and entries under a key's path are changes inside it. The entries name which writes changed what; they are not a list of every difference from the published body (compare the two bodies for that). Served only on a `?state=draft` read that answers a stored draft row. ABSENT on the active read, the cached branch and a `?preview=draft` read, and for a draft row whose saves recorded none: absence means "not recorded", never "no changes". | @@ -65,7 +65,7 @@ One changed key path of the pending draft, and the last write that changed it. | Property | Type | Required | Description | | :--- | :--- | :--- | :--- | | **path** | `string[]` | ✅ | The changed key path inside `item`: one object key per segment, from the body root down to the deepest key whose value the write changed, added or removed. `["fields", "renewal_count"]` is a field the write added; `["fields", "renewal_count", "label"]` is one property of it. A segment is the key exactly as stored, dots included (a permission set's `fields` map is keyed `object.field`), so a path is never one dotted string. An array is one value: its path ends at its key (`["columns"]`) and never carries an index, which an insert or a reorder would shift. Which elements of an array the draft added or dropped is read by comparing it with the published body's array; the entry answers only who last changed the array as a whole. `[]` is the whole body: the write that created the draft of an item with no published body. | -| **by** | `Enum<'copilot' \| 'mcp' \| 'studio' \| 'api'>` | ✅ | The authoring surface of the write that last changed this path: the `surface` that save declared (`SaveMetaItemRequestSchema.surface`), `api` when it declared none. Closed: `copilot` is an AI assistant's tool writing on a person's behalf (Studio's AI copilot); `mcp` is an AI agent outside the console writing on a person's behalf through the MCP build door; `studio` is a person editing in Studio; `api` is any other caller of the save door. It names the surface, not the person: a copilot write, an MCP write and a Studio write of the same user carry the same `actor`. | +| **by** | `Enum<'copilot' \| 'mcp' \| 'studio' \| 'api'>` | ✅ | The authoring surface of the write that last changed this path: the `surface` that save declared (`SaveMetaItemRequestSchema.surface`), `api` when it declared none. Closed: `copilot` is an AI assistant's tool writing on a person's behalf (App Studio's AI copilot); `mcp` is an AI agent outside the console writing on a person's behalf through the MCP build door; `studio` is a person editing in App Studio; `api` is any other caller of the save door. It names the surface, not the person: a copilot write, an MCP write and an App Studio write of the same user carry the same `actor`. | | **actor** | `string \| null` | ✅ | The identity that write was recorded under: the save's `actor`, the value its history event carries. `null` when the write recorded none, never a sentinel string. | | **client** | `{ id: string; name?: string }` | optional | The OAuth client that write was made by: the save's `client`, which only the MCP build door states, so it is present only beside `by: 'mcp'`. ABSENT on every other surface, and on an `mcp` entry whose save stated none: absence means "not recorded", never "no client". | | **at** | `string` | ✅ | When that write happened: an ISO-8601 instant in UTC, written with `Z` (the form `toISOString()` produces). An offset or a local time is refused. | @@ -158,10 +158,10 @@ One changed key path of the pending draft, and the last write that changed it. | **loadOrder** | `integer` | ✅ | Loading priority (lower = earlier) | | **domain** | `Enum<'data' \| 'ui' \| 'automation' \| 'system' \| 'security' \| 'ai'>` | ✅ | Protocol domain | | **overrideSource** | `Enum<'registry' \| 'env'>` | ✅ | Whether allowEnvironmentOverlay comes from the static registry or is elevated by the OS_METADATA_WRITABLE environment variable | -| **createSeed** | `any` | optional | Authoritative minimal valid create seed for this type — Studio/CLI/API derive create defaults from it (single source of truth in @objectstack/spec). Absent for canvas-create types whose shape is built interactively. | +| **createSeed** | `any` | optional | Authoritative minimal valid create seed for this type — App Studio/CLI/API derive create defaults from it (single source of truth in @objectstack/spec). Absent for canvas-create types whose shape is built interactively. | | **schema** | `Record` | optional | JSON Schema of the type, derived from its spec schema, for the generic metadata editor. Absent for a type with neither a spec schema nor a hand-crafted one. | -| **form** | `{ type?: Enum<'simple' \| 'tabbed' \| 'wizard'>; layout?: Enum<'vertical' \| 'horizontal'>; columns?: integer; title?: string; … }` | optional | Form layout of the type's Studio editor, labels in the request locale. Absent for a type with no declared form, which Studio edits from `schema` alone. | -| **list** | `{ data?: object \| object \| object; columns: object[] }` | optional | Studio list layout of this type: the columns its metadata list shows, each naming a key of the type schema, headers in the request locale. Absent for a type with no declared list, which Studio lists by name, label and description. | +| **form** | `{ type?: Enum<'simple' \| 'tabbed' \| 'wizard'>; layout?: Enum<'vertical' \| 'horizontal'>; columns?: integer; title?: string; … }` | optional | Form layout of the type's App Studio editor, labels in the request locale. Absent for a type with no declared form, which App Studio edits from `schema` alone. | +| **list** | `{ data?: object \| object \| object; columns: object[] }` | optional | App Studio list layout of this type: the columns its metadata list shows, each naming a key of the type schema, headers in the request locale. Absent for a type with no declared list, which App Studio lists by name, label and description. | | **actions** | `{ name: string; label: string \| Record; description?: string \| object \| string \| Record; objectName?: string; … }[]` | optional | Type-level actions on a definition of this type (e.g. a datasource "Test connection"): the registry's declarative actions merged with plugin-registered ones. Absent when there are none. | @@ -541,7 +541,7 @@ The published metadata item body, opaque by ruling (1C). Shape is the item's own | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | --- @@ -955,7 +955,7 @@ The OAuth client an MCP build-door write was made by: the client a person consen ## MetadataAuthoringSurface -The authoring surface of a metadata write. Closed: `copilot` is an AI assistant's tool writing on a person's behalf (Studio's AI copilot); `mcp` is an AI agent outside the console writing on a person's behalf through the MCP build door, as the OAuth client the person consented to; `studio` is a person editing in Studio; `api` is any other caller of the save door. It names the surface, not the person: a copilot write, an MCP write and a Studio write of the same user carry the same `actor`. +The authoring surface of a metadata write. Closed: `copilot` is an AI assistant's tool writing on a person's behalf (App Studio's AI copilot); `mcp` is an AI agent outside the console writing on a person's behalf through the MCP build door, as the OAuth client the person consented to; `studio` is a person editing in App Studio; `api` is any other caller of the save door. It names the surface, not the person: a copilot write, an MCP write and an App Studio write of the same user carry the same `actor`. ### Allowed Values @@ -1064,7 +1064,7 @@ The authoring surface of a metadata write. Closed: `copilot` is an AI assistant' | **seedApplied** | `{ success: boolean; inserted: integer; updated: integer; error?: string; … }` | optional | Outcome of materializing a published `seed` body into data rows. Present ONLY when the published type is `seed` — publishing a seed is what makes its rows live, so the load rides along with the metadata promotion. Best-effort: a seed-load problem is surfaced here, never thrown, so a caller must check `seedApplied.success` instead of assuming the 200 covered the data. Absent on the batch path, which suppresses the per-item apply and loads every seed body in one later pass. | | **materializeApplied** | `{ success: boolean; inserted: integer; updated: integer; error?: string }` | optional | Outcome of the ADR-0086 P2 publish-time materializer — the step that applies the published body to its data-plane state (e.g. `flow`, whose draft credentials become the live ones). Present ONLY when a materializer is registered for this metadata type, which is why it is optional: its absence means "no materializer ran", never "it failed". Best-effort, same contract as `seedApplied`. | | **projectionApplied** | `{ success: boolean; error?: string }` | optional | Outcome of the awaited ADR-0094 mutation projector — the post-persist step that materializes this metadata into its derived data-plane read model. The same receipt `{@link SaveMetaItemResponseSchema}` carries, because the projector runs on BOTH write doors: a direct active save and this draft→active promotion. Present ONLY when a projector is registered for this metadata type. Best-effort — a projector failure is reported here and logged, never thrown. | -| **advisories** | `{ rule: string; path: string; where: string; message: string; … }[]` | optional | Non-gating findings from the runtime authoring gate — the same shared author-time rules `os validate` / `os build` / `os lint` run, applied to the DRAFT body this promotion carried to `active` (the same key `SaveMetaItemResponseSchema` carries, because the gate runs on both write doors, D1). The promotion SUCCEEDED; these are what the gate has to say about it anyway. Present ONLY when at least one advisory was raised — an empty array is never emitted, so a clean publish's response bytes are unchanged and absence means "nothing to report", never "the gate did not run". Advisory by construction: every entry has `severity` `warning` or `info`, because an `error` finding refuses the promotion and arrives as the 422 `invalid_metadata` envelope instead of here. A caller that ignores this key behaves exactly as before. This door is the one Studio's designer takes on every edit (draft save, then publish), and a Studio / MCP / AI author has no CLI at all — which is the gap this key exists to close. | +| **advisories** | `{ rule: string; path: string; where: string; message: string; … }[]` | optional | Non-gating findings from the runtime authoring gate — the same shared author-time rules `os validate` / `os build` / `os lint` run, applied to the DRAFT body this promotion carried to `active` (the same key `SaveMetaItemResponseSchema` carries, because the gate runs on both write doors, D1). The promotion SUCCEEDED; these are what the gate has to say about it anyway. Present ONLY when at least one advisory was raised — an empty array is never emitted, so a clean publish's response bytes are unchanged and absence means "nothing to report", never "the gate did not run". Advisory by construction: every entry has `severity` `warning` or `info`, because an `error` finding refuses the promotion and arrives as the 422 `invalid_metadata` envelope instead of here. A caller that ignores this key behaves exactly as before. This door is the one App Studio's designer takes on every edit (draft save, then publish), and an App Studio / MCP / AI author has no CLI at all — which is the gap this key exists to close. | | **message** | `string` | optional | Human-readable receipt, e.g. `Published draft — type=view, name=cases [seq=3]`. The producer sets it on every publish today; it stays optional to match the producer's own signature and its `SaveMetaItemResponse` twin, and because an absent human-readable string strips no data — the failure mode this key exists to prevent. | ### Nested Shape: `PublishMetaItemResponse.seedApplied` diff --git a/packages/spec/docs/references/api/protocol.part-3.md b/packages/spec/docs/references/api/protocol.part-3.md index a085e7ddee6..d2a12afa161 100644 --- a/packages/spec/docs/references/api/protocol.part-3.md +++ b/packages/spec/docs/references/api/protocol.part-3.md @@ -97,7 +97,7 @@ | **actor** | `string` | optional | Identity recorded on the write's history event (`recorded_by`, a lookup into `sys_user`) and audit row. On the REST door this is the request's authenticated identity (one producer) — never a caller-supplied header. Absent, the event is recorded actor-less (null), deliberately not attributed to "system". | | **force** | `boolean` | optional | Destructive-change acknowledgement (`?force=true` on the REST door): skips the safety diff that refuses an `object` save whose body drops fields or narrows types the stored item still carries (409 with the findings otherwise). Only `object` saves reach that diff, so the flag is inert for every other type. Absent = the guard runs. | | **mode** | `Enum<'draft' \| 'publish'>` | optional | Per-item lifecycle (ADR-0005 drafts): `draft` stages the body as a pending draft overlay (`?mode=draft` on the REST door; the publish door promotes it later); `publish` or ABSENT writes straight to the live `active` row — the legacy default, kept so callers that predate the draft/publish split keep working. Any value other than `draft` is read as `publish`. | -| **packageId** | `string \| null` | optional | ADR-0048 — the software package to bind the saved row to (`sys_metadata.package_id`; `?package=` on the REST door, where `all` and an empty value name no package). Set when authoring inside a Studio package workspace; a named read-only base package is refused. On create the row is stamped with this id; on update an existing binding is preserved, never silently re-bound. Absent or `null` names no package. An `active` save then writes the row of the one package the item's active rows are bound to, as a save naming that package does, is refused `409 RESOURCE_CONFLICT` when they are bound to two or more, and with none writes the env-local overlay (no package stamp). Bound to two or more, one exception: a bundled type's member of a name no package ships in code, whose active rows a base package and one or more packages declaring it hold, with no package-unbound row beside them, is the row-held base's, as the read naming no package serves it, and the save (either mode) writes the base's row or draft as a save naming the base does; two packages neither of which declares the other are still refused `409`. A `draft` save writes the draft of the one package the item's active rows are bound to (a pending change stays in the package it edits), else its package-unbound draft, adopted into that package — the draft the per-item publish naming no package promotes. For an item never published into a package it is the package-unbound draft, else the one package's draft, and with no draft at all the save creates the package-unbound draft. It is refused `409 RESOURCE_CONFLICT` when the active rows (or, with none and no package-unbound draft, the drafts) are bound to two or more packages, but for the row-held base above, as that publish is (see `PublishMetaItemRequestSchema.packageId`). An `action` is keyed by the object it binds (ADR-0150 D4): when one or more packages' active rows hold the name and none of those rows binds the object the body binds (object-less is its own key), the save writes the environment's own package-unbound row (`active`) or draft (`draft`), never a package's item. The environment keeps one package-unbound row and one package-unbound draft per action name: such a save over the environment's own row or draft bound to another object rewrites it onto the body's object, and over one bound to an object a package's active row binds (that package's customization) it is refused `409 RESOURCE_CONFLICT`; a `draft` save is refused the same way when the package-unbound row its publish would rewrite is that customization. Otherwise the address above stands, judged over every holder of the name (every enabled holder, for an `active` save), except that an `active` save is judged over the holders at the body's object only when a disabled package is one of them and another holder binds another object. The per-item publish and the draft discard naming no package act on the environment's draft so written, except that with one package holding the name, that package's own draft, when one is stored, comes first; that publish is refused `409 RESOURCE_CONFLICT` when the package-unbound row it would rewrite is a package's customization. Until the read naming no package keys an action by object, the version it serves is the package's item's, so a save carrying it as the parent is refused as a version conflict. The row written is also the one the parent-version resolution reads: an unpinned save takes its version as the parent (last-write-wins), a pinned one is judged against it, and the item read at the same scope serves it as `version`. | +| **packageId** | `string \| null` | optional | ADR-0048 — the software package to bind the saved row to (`sys_metadata.package_id`; `?package=` on the REST door, where `all` and an empty value name no package). Set when authoring inside an App Studio package workspace; a named read-only base package is refused. On create the row is stamped with this id; on update an existing binding is preserved, never silently re-bound. Absent or `null` names no package. An `active` save then writes the row of the one package the item's active rows are bound to, as a save naming that package does, is refused `409 RESOURCE_CONFLICT` when they are bound to two or more, and with none writes the env-local overlay (no package stamp). Bound to two or more, one exception: a bundled type's member of a name no package ships in code, whose active rows a base package and one or more packages declaring it hold, with no package-unbound row beside them, is the row-held base's, as the read naming no package serves it, and the save (either mode) writes the base's row or draft as a save naming the base does; two packages neither of which declares the other are still refused `409`. A `draft` save writes the draft of the one package the item's active rows are bound to (a pending change stays in the package it edits), else its package-unbound draft, adopted into that package — the draft the per-item publish naming no package promotes. For an item never published into a package it is the package-unbound draft, else the one package's draft, and with no draft at all the save creates the package-unbound draft. It is refused `409 RESOURCE_CONFLICT` when the active rows (or, with none and no package-unbound draft, the drafts) are bound to two or more packages, but for the row-held base above, as that publish is (see `PublishMetaItemRequestSchema.packageId`). An `action` is keyed by the object it binds (ADR-0150 D4): when one or more packages' active rows hold the name and none of those rows binds the object the body binds (object-less is its own key), the save writes the environment's own package-unbound row (`active`) or draft (`draft`), never a package's item. The environment keeps one package-unbound row and one package-unbound draft per action name: such a save over the environment's own row or draft bound to another object rewrites it onto the body's object, and over one bound to an object a package's active row binds (that package's customization) it is refused `409 RESOURCE_CONFLICT`; a `draft` save is refused the same way when the package-unbound row its publish would rewrite is that customization. Otherwise the address above stands, judged over every holder of the name (every enabled holder, for an `active` save), except that an `active` save is judged over the holders at the body's object only when a disabled package is one of them and another holder binds another object. The per-item publish and the draft discard naming no package act on the environment's draft so written, except that with one package holding the name, that package's own draft, when one is stored, comes first; that publish is refused `409 RESOURCE_CONFLICT` when the package-unbound row it would rewrite is a package's customization. Until the read naming no package keys an action by object, the version it serves is the package's item's, so a save carrying it as the parent is refused as a version conflict. The row written is also the one the parent-version resolution reads: an unpinned save takes its version as the parent (last-write-wins), a pinned one is judged against it, and the item read at the same scope serves it as `version`. | | **writeFace** | `Enum<'package-duplicate' \| 'meta-envelope' \| 'meta-dispatch' \| 'external-import'>` | optional | Which write door a refusal is being rendered FOR — stated by the SERVER, never by a remote caller: every door builds this request field by field and never spreads a request body into it, so there is no path for a client to smuggle a face in, and a face arriving in a wire body is simply never read. Two refusals branch on it, for different questions: the 409 destructive-change remedy names the acknowledgement mechanism that actually exists on the refusing door (`?force=true` on the REST doors; the dispatcher, the duplicate-package door and the external-table import have none), and the 422 invalid-metadata message adapts to whether a structured `issues[]` channel reaches the consumer beside it. Absent = the conservative default wording. | | **surface** | `Enum<'copilot' \| 'mcp' \| 'studio' \| 'api'>` | optional | The authoring surface this save is made through (see `MetadataAuthoringSurfaceSchema`). A draft save (`mode: 'draft'`) stamps it as `by` on every key path it changes, the entries the strict draft read serves as `draftChanges`; an active save records no per-key provenance. ABSENT stamps `api`. On the REST door and the runtime dispatcher it is the `?surface=` query parameter, which takes `studio` or `api` and refuses every other value `400 VALIDATION_ERROR`, `copilot` and `mcp` included: `copilot` is stated only by an in-process AI tool calling the save and `mcp` only by the MCP build door after it verified the client's token, never by a remote caller, so an HTTP request cannot mark its own write as the copilot's or an MCP agent's. A value outside the set in-process is refused `400 INVALID_REQUEST`, before anything is written. | | **client** | `{ id: string; name?: string }` | optional | The OAuth client this save is made by (see `MetadataAuthoringClientSchema`), stated only by the MCP build door, in-process, from the token it verified. Only with `surface: 'mcp'`: a `client` beside any other surface, or a malformed one, is refused `400 INVALID_REQUEST` before anything is written. A draft save stamps it as `client` beside `by: 'mcp'` on every key path it changes; an active save records it nowhere. No HTTP door reads it: the REST door and the dispatcher build this request member by member, so a `client` in a wire body or query is never read. | @@ -124,7 +124,7 @@ | **seq** | `integer` | ✅ | Monotonic sequence number of the metadata event this write appended to the item history (sys_metadata_history.event_seq). Orders writes; unlike `version` it is not an OCC token. | | **state** | `Enum<'draft' \| 'active'>` | ✅ | Lifecycle the body was written into: "draft" when the request asked for draft mode (`?mode=draft`), otherwise "active" (published and live). A draft is staged only — it is not served to the runtime until published. | | **projectionApplied** | `{ success: boolean; error?: string }` | optional | Outcome of the awaited ADR-0094 mutation projector — the post-persist step that materializes this metadata into its derived data-plane read model (e.g. `datasource` → its live connection pool). Present ONLY when a projector is registered for this metadata type, which is why it is optional: its absence means "no projector ran", never "the projection failed". Best-effort by design — a projector failure is reported here and logged, never thrown, so a caller that needs the read model to be live must check `projectionApplied.success` rather than rely on the 200. | -| **advisories** | `{ rule: string; path: string; where: string; message: string; … }[]` | optional | Non-gating findings from the runtime authoring gate — the same shared author-time rules `os validate` / `os build` / `os lint` run, applied to this body on its way to `active`. The write SUCCEEDED; these are what the gate has to say about it anyway (closing D3). Present ONLY when at least one advisory was raised — an empty array is never emitted, so a clean save's response bytes are unchanged and absence means "nothing to report", never "the gate did not run". Advisory by construction: every entry has `severity` `warning` or `info`, because an `error` finding refuses the write and arrives as the 422 `invalid_metadata` envelope instead of here. A caller that ignores this key behaves exactly as before. Runtime-only: the CLI surfaces the same findings on its own stdout, and a Studio / MCP / AI author has no CLI at all, which is the gap this key exists to close. The gate runs on both write doors (D1), and both report: `POST /meta/:type/:name/publish` carries the same key on `PublishMetaItemResponseSchema`. The save also reports here what it did to the row at rest that the author did not write, on a draft save too: one `warning` with rule `withheld-key-dropped` for each stored position it dropped because the type's read redactor withholds it and marks it not carried forward (a connector's undeclared `auth` keys and the undeclared keys of its `retryConfig`, which no door accepts and nothing reads). Its `path` names where the value sat at rest, in the same spelling (`connectors[0].auth.token`). | +| **advisories** | `{ rule: string; path: string; where: string; message: string; … }[]` | optional | Non-gating findings from the runtime authoring gate — the same shared author-time rules `os validate` / `os build` / `os lint` run, applied to this body on its way to `active`. The write SUCCEEDED; these are what the gate has to say about it anyway (closing D3). Present ONLY when at least one advisory was raised — an empty array is never emitted, so a clean save's response bytes are unchanged and absence means "nothing to report", never "the gate did not run". Advisory by construction: every entry has `severity` `warning` or `info`, because an `error` finding refuses the write and arrives as the 422 `invalid_metadata` envelope instead of here. A caller that ignores this key behaves exactly as before. Runtime-only: the CLI surfaces the same findings on its own stdout, and an App Studio / MCP / AI author has no CLI at all, which is the gap this key exists to close. The gate runs on both write doors (D1), and both report: `POST /meta/:type/:name/publish` carries the same key on `PublishMetaItemResponseSchema`. The save also reports here what it did to the row at rest that the author did not write, on a draft save too: one `warning` with rule `withheld-key-dropped` for each stored position it dropped because the type's read redactor withholds it and marks it not carried forward (a connector's undeclared `auth` keys and the undeclared keys of its `retryConfig`, which no door accepts and nothing reads). Its `path` names where the value sat at rest, in the same spelling (`connectors[0].auth.token`). | | **message** | `string` | optional | | ### Nested Shape: `SaveMetaItemResponse.projectionApplied` diff --git a/packages/spec/docs/references/identity/position.md b/packages/spec/docs/references/identity/position.md index c5b78bf48f1..84ae7670b81 100644 --- a/packages/spec/docs/references/identity/position.md +++ b/packages/spec/docs/references/identity/position.md @@ -43,7 +43,7 @@ const result = PositionSchema.parse(data); | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | --- diff --git a/packages/spec/docs/references/kernel/metadata-plugin.md b/packages/spec/docs/references/kernel/metadata-plugin.md index dfedb31c35d..026c6f25c81 100644 --- a/packages/spec/docs/references/kernel/metadata-plugin.md +++ b/packages/spec/docs/references/kernel/metadata-plugin.md @@ -269,7 +269,7 @@ const result = MetadataBulkResultSchema.parse(data); | **description** | `string` | optional | Description of the metadata type | | **filePatterns** | `string[]` | ✅ | Glob patterns to discover files of this type | | **supportsOverlay** | `boolean` | optional (default: `true`) | Whether a stored overlay row of an item a managed package ships may be removed through the ordinary delete door without the type's environment-overlay permission: the removal removes no managed definition, and changes what is served for permission alone; it opens no save and it decides no read | -| **allowEnvironmentOverlay** | `boolean` | optional (default: `false`) | Whether an environment may overlay an item of this type that a managed package ships (ADR-0131 D6 regime O). Decides the save door, the managed-content seal on write and on read, and Studio's write gate; the OS_METADATA_WRITABLE hatch does not reach a managed item. Default false. | +| **allowEnvironmentOverlay** | `boolean` | optional (default: `false`) | Whether an environment may overlay an item of this type that a managed package ships (ADR-0131 D6 regime O). Decides the save door, the managed-content seal on write and on read, and App Studio's write gate; the OS_METADATA_WRITABLE hatch does not reach a managed item. Default false. | | **allowOrgOverride** | `never` | optional | [REMOVED] `MetadataTypeRegistryEntry.allowOrgOverride` was renamed to `allowEnvironmentOverlay` in @objectstack/spec 18 (ADR-0131 D6) — the per-organization overlay axis was retired, and the key now names the one scope it governs: whether an environment may overlay an item of this type that a managed package ships. Rename the key to `allowEnvironmentOverlay`; the value is unchanged. | | **allowRuntimeCreate** | `boolean` | optional (default: `true`) | Allow runtime creation via API | | **supportsVersioning** | `boolean` | optional (default: `false`) | Whether version history is tracked | diff --git a/packages/spec/docs/references/marketplace/package.md b/packages/spec/docs/references/marketplace/package.md index b5cc1679176..57227462224 100644 --- a/packages/spec/docs/references/marketplace/package.md +++ b/packages/spec/docs/references/marketplace/package.md @@ -43,7 +43,7 @@ Register a new package in the Control Plane | **manifestId** | `string` | ✅ | Globally unique reverse-domain package identifier (e.g. com.acme.crm) | | **namespace** | `string` | optional | Metadata namespace claimed by the package (mirrors manifest.namespace; e.g. "crm" → object names "crm_account") | | **ownerOrgId** | `string` | ✅ | Owner organization ID | -| **displayName** | `string` | ✅ | Display name shown in Studio and Marketplace | +| **displayName** | `string` | ✅ | Display name shown in App Studio and Marketplace | | **description** | `string` | optional | Short package description | | **visibility** | `Enum<'private' \| 'org' \| 'marketplace'>` | optional | Package visibility: private = owner org only; org = all envs in owner org; marketplace = public registry | | **category** | `never` | optional | [REMOVED] `CreatePackageRequest.category` was removed in @objectstack/spec 18 (ADR-0087) — one category had to say both who a package is for and what it is, and the platform and the cloud catalog spelled it from lists that disagreed. Delete the key. Declare `businessFunctions` (1-3 business functions, the primary one first), optionally `industries` (up to 3; absent means cross-industry) and `solutionType` (`app`, `template` or `connector`; absent means `app`). `LEGACY_CATEGORY_MAPPING` in @objectstack/spec/marketplace gives the facets for every old category value. | @@ -85,7 +85,7 @@ Per-locale overrides for a package listing | **manifestId** | `string` | ✅ | Globally unique reverse-domain package identifier (e.g. com.acme.crm) | | **namespace** | `string` | optional | Metadata namespace claimed by the package (mirrors manifest.namespace; e.g. "crm" → object names "crm_account") | | **ownerOrgId** | `string` | ✅ | Organization ID of the package owner/publisher | -| **displayName** | `string` | ✅ | Display name shown in Studio and Marketplace | +| **displayName** | `string` | ✅ | Display name shown in App Studio and Marketplace | | **description** | `string` | optional | Short package description | | **readme** | `string` | optional | Long-form package documentation (markdown) | | **visibility** | `Enum<'private' \| 'org' \| 'marketplace'>` | optional (default: `"org"`) | Package visibility: private = owner org only; org = all envs in owner org; marketplace = public registry | @@ -190,7 +190,7 @@ Update mutable package metadata | Property | Type | Required | Description | | :--- | :--- | :--- | :--- | -| **displayName** | `string` | optional | Display name shown in Studio and Marketplace | +| **displayName** | `string` | optional | Display name shown in App Studio and Marketplace | | **description** | `string` | optional | Short package description | | **readme** | `string` | optional | Long-form package documentation (markdown) | | **visibility** | `Enum<'private' \| 'org' \| 'marketplace'>` | optional | Package visibility: private = owner org only; org = all envs in owner org; marketplace = public registry | diff --git a/packages/spec/docs/references/marketplace/template-manifest.md b/packages/spec/docs/references/marketplace/template-manifest.md index e375af786e6..b19fb3964af 100644 --- a/packages/spec/docs/references/marketplace/template-manifest.md +++ b/packages/spec/docs/references/marketplace/template-manifest.md @@ -36,7 +36,7 @@ objectstack.manifest.json — template / package source descriptor | Property | Type | Required | Description | | :--- | :--- | :--- | :--- | -| **displayName** | `string` | ✅ | Display name shown in Studio and Marketplace | +| **displayName** | `string` | ✅ | Display name shown in App Studio and Marketplace | | **description** | `string` | optional | Short package description | | **visibility** | `never` | optional | [REMOVED] `TemplateManifest.visibility` was removed in @objectstack/spec 18 (ADR-0049) — `os package publish` never read it from this file. Delete the key and pass `--visibility` (`private`, `org` or `marketplace`) to `os package publish`. | | **category** | `never` | optional | [REMOVED] `TemplateManifest.category` was removed in @objectstack/spec 18 (ADR-0087) — one category had to say both who a package is for and what it is, and the platform and the cloud catalog spelled it from lists that disagreed. Delete the key. Declare `businessFunctions` (1-3 business functions, the primary one first), optionally `industries` (up to 3; absent means cross-industry) and `solutionType` (`app`, `template` or `connector`; absent means `app`). `LEGACY_CATEGORY_MAPPING` in @objectstack/spec/marketplace gives the facets for every old category value. | diff --git a/packages/spec/docs/references/shared/protection.md b/packages/spec/docs/references/shared/protection.md index 17038d67f5c..f36fcdf1459 100644 --- a/packages/spec/docs/references/shared/protection.md +++ b/packages/spec/docs/references/shared/protection.md @@ -72,7 +72,7 @@ const result = ProtectionSchema.parse(data); | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | --- diff --git a/packages/spec/docs/references/studio/flow-builder.md b/packages/spec/docs/references/studio/flow-builder.md index 79a42c1e99d..1920fafbb83 100644 --- a/packages/spec/docs/references/studio/flow-builder.md +++ b/packages/spec/docs/references/studio/flow-builder.md @@ -45,7 +45,7 @@ const result = FlowBuilderConfigSchema.parse(data); ## FlowBuilderConfig -Studio Flow Builder configuration +App Studio Flow Builder configuration ### Properties diff --git a/packages/spec/docs/references/system/email-template.md b/packages/spec/docs/references/system/email-template.md index 7ed4d55cb2f..4e7a16c7730 100644 --- a/packages/spec/docs/references/system/email-template.md +++ b/packages/spec/docs/references/system/email-template.md @@ -41,7 +41,7 @@ const result = EmailTemplateDefinitionSchema.parse(data); | :--- | :--- | :--- | :--- | | **name** | `string` | ✅ | Template identifier (dotted snake_case) | | **label** | `string` | ✅ | Display label | -| **category** | `never` | optional | [REMOVED] `email_template.category` was removed in @objectstack/spec 18 (ADR-0049 enforce-or-remove) — nothing read it: the Studio listing never offered the filter facet it promised, and delivery never depended on it. Delete the key. A template is found by its `name`, so group templates with a dotted namespace prefix instead (`auth.password_reset`, `crm.welcome`). Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. | +| **category** | `never` | optional | [REMOVED] `email_template.category` was removed in @objectstack/spec 18 (ADR-0049 enforce-or-remove) — nothing read it: the App Studio listing never offered the filter facet it promised, and delivery never depended on it. Delete the key. A template is found by its `name`, so group templates with a dotted namespace prefix instead (`auth.password_reset`, `crm.welcome`). Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. | | **locale** | `string` | optional (default: `"en-US"`) | BCP-47 locale (e.g. en-US, zh-CN) — the bundle key. Each rung of the resolver reads one row at one tag exactly, so `en` and `en-US` are different ROWS of one bundle. A call that NAMES a locale, over the built-in template loader, folds it against the bundle's tags (exact, case-insensitive, platform locale table language, base language, then variant expansion: `en-GB` reaches `en`, `zh-TW` reaches `zh-Hant`, else `zh-CN`), then folds the stack's declared fallback locale (`i18n.fallbackLocale`, else `defaultLocale`) the same way, then tries the literal `en-US`; a replacement template loader matches the tag exactly and retries only `en-US`. `en-US` is the floor every loader honours: when no rung lands on a row the call raises TEMPLATE_NOT_FOUND, which is permanent — the delivery dead-letters with no retry. A call naming NO locale folds nothing and does not dead-letter: it starts at `en-US` and otherwise drops to the bundle's lowest locale tag and renders that silently. Tag the English row `en-US` so every loader has the floor. | | **subject** | `string` | ✅ | Subject template. Holes are `{{ path }}` or `{{ path \| formatter[:arg] }}` over the send's `data`, with at most one formatter per hole (a second, chained formatter is refused). A formatter is one word, optionally followed by `:` and its argument (text that is not, such as `date-long`, is refused), and it is one the template engine knows (an unknown name, such as a misspelled `curency`, is refused, naming the known formatters). A `currency` argument is either a literal ISO 4217 code in three capital letters (`currency:EUR`) or, in a mail template only, `@` followed by a path into the send's data whose value is such a code (`currency:@currency_code`). An `option` hole, in a mail template only, prints the label of the select option whose value it holds, in the recipient's language, and its argument names the object and the field the value belongs to, written bare as `object.field` (`{{ stage \| option:opportunity.stage }}`): the object is one the app has and the field one of its fields that declares options. A multi-select value prints the label of each of its values, joined with `, `, and a value outside the field's options prints as stored. | | **bodyHtml** | `string` | ✅ | HTML body template. Holes are `{{ path }}` or `{{ path \| formatter[:arg] }}` over the send's `data`, with at most one formatter per hole (a second, chained formatter is refused). A formatter is one word, optionally followed by `:` and its argument (text that is not, such as `date-long`, is refused), and it is one the template engine knows (an unknown name, such as a misspelled `curency`, is refused, naming the known formatters). A `currency` argument is either a literal ISO 4217 code in three capital letters (`currency:EUR`) or, in a mail template only, `@` followed by a path into the send's data whose value is such a code (`currency:@currency_code`). An `option` hole, in a mail template only, prints the label of the select option whose value it holds, in the recipient's language, and its argument names the object and the field the value belongs to, written bare as `object.field` (`{{ stage \| option:opportunity.stage }}`): the object is one the app has and the field one of its fields that declares options. A multi-select value prints the label of each of its values, joined with `, `, and a value outside the field's options prints as stored. | @@ -50,7 +50,7 @@ const result = EmailTemplateDefinitionSchema.parse(data); | **fromOverride** | `{ name?: string; address: string }` | optional | | | **replyTo** | `string` | optional | | | **active** | `boolean` | optional (default: `true`) | | -| **isSystem** | `never` | optional | [REMOVED] `email_template.isSystem` was removed in @objectstack/spec 18 (ADR-0049 enforce-or-remove) — nothing enforced it: no door refused deleting a template that set it. Delete the key. A built-in template is a code package's declaration: a Studio save overrides it for the environment, and discarding that save restores the package's copy. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. | +| **isSystem** | `never` | optional | [REMOVED] `email_template.isSystem` was removed in @objectstack/spec 18 (ADR-0049 enforce-or-remove) — nothing enforced it: no door refused deleting a template that set it. Delete the key. A built-in template is a code package's declaration: an App Studio save overrides it for the environment, and discarding that save restores the package's copy. Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand. | | **description** | `string` | optional | | | **protection** | `{ lock: Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>; reason: string; docsUrl?: string }` | optional | Package author protection block — lock policy for this email template. | | **_lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | optional | Item-level lock — controls overlay & delete (ADR-0010). | @@ -69,7 +69,7 @@ const result = EmailTemplateDefinitionSchema.parse(data); | **name** | `string` | ✅ | Variable name as referenced in placeholders (snake_case or dotted path). When the template declares any variable, the path of a `currency:@path` argument must be one of them or lie under one. | | **type** | `Enum<'string' \| 'number' \| 'boolean' \| 'date' \| 'url' \| 'user' \| 'record'>` | optional (default: `"string"`) | | | **required** | `boolean` | optional (default: `false`) | | -| **description** | `string` | optional | Author hint shown in Studio | +| **description** | `string` | optional | Author hint shown in App Studio | ### Nested Shape: `EmailTemplateDefinition.protection` @@ -77,7 +77,7 @@ const result = EmailTemplateDefinitionSchema.parse(data); | :--- | :--- | :--- | :--- | | **lock** | `Enum<'none' \| 'no-overlay' \| 'no-delete' \| 'full'>` | ✅ | Lock policy — none \| no-overlay \| no-delete \| full. | | **reason** | `string` | ✅ | User-visible reason shown when the lock blocks an action. | -| **docsUrl** | `string` | optional | Optional URL the Studio banner links to for more context. | +| **docsUrl** | `string` | optional | Optional URL the App Studio banner links to for more context. | ### Nested Shape: `EmailTemplateDefinition.overrides` @@ -98,7 +98,7 @@ const result = EmailTemplateDefinitionSchema.parse(data); | **name** | `string` | ✅ | Variable name as referenced in placeholders (snake_case or dotted path). When the template declares any variable, the path of a `currency:@path` argument must be one of them or lie under one. | | **type** | `Enum<'string' \| 'number' \| 'boolean' \| 'date' \| 'url' \| 'user' \| 'record'>` | optional (default: `"string"`) | | | **required** | `boolean` | optional (default: `false`) | | -| **description** | `string` | optional | Author hint shown in Studio | +| **description** | `string` | optional | Author hint shown in App Studio | --- diff --git a/packages/spec/src/ai/draft-review.zod.ts b/packages/spec/src/ai/draft-review.zod.ts index 8c1063a1c6d..f9bcff6dbc5 100644 --- a/packages/spec/src/ai/draft-review.zod.ts +++ b/packages/spec/src/ai/draft-review.zod.ts @@ -123,8 +123,8 @@ export const DraftReviewLinksSchema = lazySchema(() => strictObject( history: 'Declared closed from its first day: an unrecognized key is refused, never dropped.', }, { - changes: consolePath('The package\'s Changes drawer in Studio, where its drafts are reviewed and published (`studioChangesReviewLink`)'), - item: consolePath('The draft\'s own review in Studio (`studioItemReviewLink`)'), + changes: consolePath('The package\'s Changes drawer in App Studio, where its drafts are reviewed and published (`studioChangesReviewLink`)'), + item: consolePath('The draft\'s own review in App Studio (`studioItemReviewLink`)'), }, )); diff --git a/packages/spec/src/ai/tool.zod.ts b/packages/spec/src/ai/tool.zod.ts index b9345c13902..7a4e41f0b08 100644 --- a/packages/spec/src/ai/tool.zod.ts +++ b/packages/spec/src/ai/tool.zod.ts @@ -253,7 +253,7 @@ export const ToolSchema = lazySchema(() => strictObject({ // ADR-0010 — runtime protection envelope (internal — set by loader). ...MetadataProtectionFields, -}).describe('AI tool definition. [READ-ONLY PROJECTION — not an execution entry point] Authoring a tool as metadata does NOT make it runnable: this schema has no `implementation`/`handler` field and no framework executor loads a metadata-authored tool. The runtime executes a separately-registered `AIToolDefinition` (cloud `@objectstack/service-ai`); tool metadata is a one-way projection for Studio/discovery. Do not expect a hand-authored tool to run in the open edition.')); +}).describe('AI tool definition. [READ-ONLY PROJECTION — not an execution entry point] Authoring a tool as metadata does NOT make it runnable: this schema has no `implementation`/`handler` field and no framework executor loads a metadata-authored tool. The runtime executes a separately-registered `AIToolDefinition` (cloud `@objectstack/service-ai`); tool metadata is a one-way projection for App Studio/discovery. Do not expect a hand-authored tool to run in the open edition.')); export type Tool = z.input; diff --git a/packages/spec/src/api/plugin-rest-api.zod.ts b/packages/spec/src/api/plugin-rest-api.zod.ts index debf967019c..670f9fb4023 100644 --- a/packages/spec/src/api/plugin-rest-api.zod.ts +++ b/packages/spec/src/api/plugin-rest-api.zod.ts @@ -906,7 +906,7 @@ export const DEFAULT_METADATA_ROUTES: RestApiRouteRegistration = { public: false, summary: 'Get a metadata item as its three layers (code / overlay / effective)', description: - 'Diagnostic projection powering Studio\'s "code default vs override vs effective" ' + 'Diagnostic projection powering App Studio\'s "code default vs override vs effective" ' + 'comparison: the packaged baseline, the tenant customization row, and the merged ' + 'result side by side. A DIFFERENT representation from `GET /:type/:name`, which ' + 'answers only the merged value under `item` — hence its own path and its own ' diff --git a/packages/spec/src/api/protocol.zod.ts b/packages/spec/src/api/protocol.zod.ts index 5e36c90b34d..5835aa83860 100644 --- a/packages/spec/src/api/protocol.zod.ts +++ b/packages/spec/src/api/protocol.zod.ts @@ -226,10 +226,10 @@ export const GetMetaTypesResponseSchema = lazySchema(() => z.object({ loadOrder: z.number().int().describe('Loading priority (lower = earlier)'), domain: z.enum(['data', 'ui', 'automation', 'system', 'security', 'ai']).describe('Protocol domain'), overrideSource: z.enum(['registry', 'env']).describe('Whether allowEnvironmentOverlay comes from the static registry or is elevated by the OS_METADATA_WRITABLE environment variable'), - createSeed: z.unknown().optional().describe('Authoritative minimal valid create seed for this type — Studio/CLI/API derive create defaults from it (single source of truth in @objectstack/spec). Absent for canvas-create types whose shape is built interactively.'), + createSeed: z.unknown().optional().describe('Authoritative minimal valid create seed for this type — App Studio/CLI/API derive create defaults from it (single source of truth in @objectstack/spec). Absent for canvas-create types whose shape is built interactively.'), schema: z.record(z.string(), z.unknown()).optional().describe('JSON Schema of the type, derived from its spec schema, for the generic metadata editor. Absent for a type with neither a spec schema nor a hand-crafted one.'), - form: FormViewSchema.optional().describe('Form layout of the type\'s Studio editor, labels in the request locale. Absent for a type with no declared form, which Studio edits from `schema` alone.'), - list: MetadataListViewSchema.optional().describe('Studio list layout of this type: the columns its metadata list shows, each naming a key of the type schema, headers in the request locale. Absent for a type with no declared list, which Studio lists by name, label and description.'), + form: FormViewSchema.optional().describe('Form layout of the type\'s App Studio editor, labels in the request locale. Absent for a type with no declared form, which App Studio edits from `schema` alone.'), + list: MetadataListViewSchema.optional().describe('App Studio list layout of this type: the columns its metadata list shows, each naming a key of the type schema, headers in the request locale. Absent for a type with no declared list, which App Studio lists by name, label and description.'), actions: z.array(ActionSchema).optional().describe('Type-level actions on a definition of this type (e.g. a datasource "Test connection"): the registry\'s declarative actions merged with plugin-registered ones. Absent when there are none.'), })).optional().describe('Enriched per-type registry entries (Phase 3a)'), })); @@ -471,7 +471,7 @@ export const GetMetaItemRequestSchema = lazySchema(() => z.object({ member: z.string().optional().describe(BUNDLE_MEMBER_SELECTOR_DESCRIPTION), state: z.enum(['active', 'draft']).optional().describe( 'Draft-visibility switch — which lifecycle row to read (strict mode): ' - + '`\'draft\'` opens the pending draft buffer (Studio\'s editor read) and ' + + '`\'draft\'` opens the pending draft buffer (App Studio\'s editor read) and ' + 'fails when no draft exists; absent or `\'active\'` reads the live ' + 'published row. Distinct from `previewDrafts`, which FALLS BACK to the ' + 'active row when no draft exists. Declaration ≠ authorization: this ' @@ -608,10 +608,10 @@ const MetadataProtectionEnvelopeFields = { */ export const MetadataAuthoringSurfaceSchema = z.enum(['copilot', 'mcp', 'studio', 'api']).describe( 'The authoring surface of a metadata write. Closed: `copilot` is an AI assistant\'s tool writing on a ' - + 'person\'s behalf (Studio\'s AI copilot); `mcp` is an AI agent outside the console writing on a ' + + 'person\'s behalf (App Studio\'s AI copilot); `mcp` is an AI agent outside the console writing on a ' + 'person\'s behalf through the MCP build door, as the OAuth client the person consented to; `studio` ' - + 'is a person editing in Studio; `api` is any other caller of the save door. It names the surface, ' - + 'not the person: a copilot write, an MCP write and a Studio write of the same user carry the same ' + + 'is a person editing in App Studio; `api` is any other caller of the save door. It names the surface, ' + + 'not the person: a copilot write, an MCP write and an App Studio write of the same user carry the same ' + '`actor`.', ); export type MetadataAuthoringSurface = z.input; @@ -850,7 +850,7 @@ export const GetMetaItemResponseSchema = lazySchema(() => z.object({ ), disabledActions: z.array(z.string()).optional().describe( 'The names in `item.actions` that this deployment\'s activation ledger switches off (an administrator ' - + 'turned them off through the activation door, for example on the action in Studio): a call to any of ' + + 'turned them off through the activation door, for example on the action in App Studio): a call to any of ' + 'them is refused 409 `ACTION_DISABLED`. Present only on an `object` read answered by a process ' + 'whose data engine has an activation ledger attached, and then `[]` when none of this object\'s ' + 'actions is switched off. ' @@ -889,10 +889,10 @@ export const GetMetaItemResponseSchema = lazySchema(() => z.object({ by: MetadataAuthoringSurfaceSchema.describe( 'The authoring surface of the write that last changed this path: the `surface` that save declared ' + '(`SaveMetaItemRequestSchema.surface`), `api` when it declared none. Closed: `copilot` is an AI ' - + 'assistant\'s tool writing on a person\'s behalf (Studio\'s AI copilot); `mcp` is an AI agent ' + + 'assistant\'s tool writing on a person\'s behalf (App Studio\'s AI copilot); `mcp` is an AI agent ' + 'outside the console writing on a person\'s behalf through the MCP build door; `studio` is a ' - + 'person editing in Studio; `api` is any other caller of the save door. It names the surface, not ' - + 'the person: a copilot write, an MCP write and a Studio write of the same user carry the same ' + + 'person editing in App Studio; `api` is any other caller of the save door. It names the surface, not ' + + 'the person: a copilot write, an MCP write and an App Studio write of the same user carry the same ' + '`actor`.', ), actor: z.string().nullable().describe( @@ -1039,7 +1039,7 @@ export const GetMetaItemLayeredResponseSchema = lazySchema(() => z.object({ + 'absence means "not served", never "no draft".', ), _diagnostics: MetadataValidationResultSchema.optional().describe( - 'Load-time spec-validation verdict for `effective`, so the Studio edit page ' + 'Load-time spec-validation verdict for `effective`, so the App Studio edit page ' + 'can raise invalid-metadata banners and inline field errors without a ' + 'second round trip. ABSENT for metadata types that register no Zod schema ' + '(function / service / router) — absence means "no opinion", never "valid".', @@ -1272,7 +1272,7 @@ export const SaveMetaItemRequestSchema = lazySchema(() => z.object({ 'ADR-0048 — the software package to bind the saved row to ' + '(`sys_metadata.package_id`; `?package=` on the REST door, where ' + '`all` and an empty value name no package). Set when authoring inside ' - + 'a Studio package workspace; a named read-only base package is ' + + 'an App Studio package workspace; a named read-only base package is ' + 'refused. On create the row is stamped with this id; on update an ' + 'existing binding is preserved, never silently re-bound. Absent or ' + '`null` names no package. An `active` save then writes the row of the ' @@ -1436,7 +1436,7 @@ export const SaveMetaItemResponseSchema = lazySchema(() => z.object({ + '`info`, because an `error` finding refuses the write and arrives as the ' + '422 `invalid_metadata` envelope instead of here. A caller that ignores ' + 'this key behaves exactly as before. Runtime-only: the CLI surfaces the ' - + 'same findings on its own stdout, and a Studio / MCP / AI author has no ' + + 'same findings on its own stdout, and an App Studio / MCP / AI author has no ' + 'CLI at all, which is the gap this key exists to close. The gate runs on ' + 'both write doors (D1), and both report: ' + '`POST /meta/:type/:name/publish` carries the same key on ' @@ -1933,8 +1933,8 @@ export const PublishMetaItemResponseSchema = lazySchema(() => z.object({ + 'construction: every entry has `severity` `warning` or `info`, because ' + 'an `error` finding refuses the promotion and arrives as the 422 ' + '`invalid_metadata` envelope instead of here. A caller that ignores ' - + 'this key behaves exactly as before. This door is the one Studio\'s ' - + 'designer takes on every edit (draft save, then publish), and a Studio ' + + 'this key behaves exactly as before. This door is the one App Studio\'s ' + + 'designer takes on every edit (draft save, then publish), and an App Studio ' + '/ MCP / AI author has no CLI at all — which is the gap this key exists ' + 'to close.', ), @@ -2528,7 +2528,7 @@ export const DeleteMetaItemRequestSchema = lazySchema(() => z.object({ + 'believes is current (on the REST door, the `If-Match` request header). ' + 'Present, a concurrent edit is reported as a 409 conflict instead of ' + 'silently reset; absent = last-write-wins against the current row ' - + '(Studio\'s "Reset" button is unpinned).', + + '(App Studio\'s "Reset" button is unpinned).', ), actor: z.string().optional().describe( 'Identity recorded on the delete\'s history tombstone row. On the REST ' diff --git a/packages/spec/src/automation/io-node-config.test.ts b/packages/spec/src/automation/io-node-config.test.ts index d50ba9485d1..a7b78638d71 100644 --- a/packages/spec/src/automation/io-node-config.test.ts +++ b/packages/spec/src/automation/io-node-config.test.ts @@ -350,10 +350,10 @@ describe('NotifyConfigSchema — an unknown key is refused, not stripped', () => expect(templateDoc).toMatch(/delivery time/); // …among the email templates themselves (ADR-0131 D6/D10): the // `email_template` items the registry serves — built-in, declared by an - // app, or authored in Studio — and never the retired `sys_email_template` + // app, or authored in App Studio — and never the retired `sys_email_template` // rows, which no send reads any more. expect(templateDoc).toContain('`email_template`'); - expect(templateDoc).toMatch(/built-in, declared by an app, or authored in Studio/); + expect(templateDoc).toMatch(/built-in, declared by an app, or authored in App Studio/); expect(templateDoc).not.toContain('sys_email_template'); // …with the locale named as what it IS since #13881 — resolved per // recipient, after fan-out, from the recipient's own `sys_user.locale` diff --git a/packages/spec/src/automation/io-node-config.zod.ts b/packages/spec/src/automation/io-node-config.zod.ts index 0da03f813fc..db9ba22c51e 100644 --- a/packages/spec/src/automation/io-node-config.zod.ts +++ b/packages/spec/src/automation/io-node-config.zod.ts @@ -723,7 +723,7 @@ export const NotifyConfigSchema = lazySchema(() => strictObject({ * in this comment only (#22093). */ template: z.string().optional() - .describe('Email template name (an `email_template` item\'s `name`, e.g. `crm.large_deal_won`) — the localizable content path: the delivery path resolves `(name, locale)` among the email templates — built-in, declared by an app, or authored in Studio — at delivery time and renders subject/body from that member. The locale is resolved per recipient, after fan-out: the recipient\'s own `sys_user.locale` when set, else the deployment default locale — so recipients whose personal languages differ receive different members of the same bundle. The node\'s `payload.locale` is not consulted. Mutually exclusive with inline `title`/`message`, which are the non-localizable path. Read raw — no `{token}` interpolation.'), + .describe('Email template name (an `email_template` item\'s `name`, e.g. `crm.large_deal_won`) — the localizable content path: the delivery path resolves `(name, locale)` among the email templates — built-in, declared by an app, or authored in App Studio — at delivery time and renders subject/body from that member. The locale is resolved per recipient, after fan-out: the recipient\'s own `sys_user.locale` when set, else the deployment default locale — so recipients whose personal languages differ receive different members of the same bundle. The node\'s `payload.locale` is not consulted. Mutually exclusive with inline `title`/`message`, which are the non-localizable path. Read raw — no `{token}` interpolation.'), /** * Render context for the referenced template's `{{var}}` holes — a `value` * slot per key (#19939, {@link FlowValueSlotSchema}): a CEL value envelope diff --git a/packages/spec/src/data/object.zod.ts b/packages/spec/src/data/object.zod.ts index 24f451fea03..31788eeb25a 100644 --- a/packages/spec/src/data/object.zod.ts +++ b/packages/spec/src/data/object.zod.ts @@ -4260,7 +4260,7 @@ const ObjectSchemaBase = strictObject( history: 'Until this shape was closed these were dropped silently on the PARSE path — ' + '`ObjectSchema.create()` has rejected them, but `defineStack({ objects })`, ' - + '`/api/v1/meta/types/object` and the Studio form all go through `parse()`, which did not.', + + '`/api/v1/meta/types/object` and the App Studio form all go through `parse()`, which did not.', }, { /** @@ -6889,7 +6889,7 @@ function objectExtensionPlaceDescription(): string { 'whose item it is. A ' + 'group key another package\'s extension already adds is not refused: the merge adds it once and names the ' + 'second. Applied ' + - 'once, by the registry merge, so the record page, the forms and Studio show one arrangement; uninstalling ' + + 'once, by the registry merge, so the record page, the forms and App Studio show one arrangement; uninstalling ' + 'the package removes its items and leaves the extended object\'s own order as it was. Example: ' + '`place: [{ field: \'tax_id\', group: \'basic\', after: \'industry\' }, { list: \'contract\', after: ' + '\'opportunity\', columns: [\'name\', \'amount\'] }]`.' diff --git a/packages/spec/src/kernel/metadata-plugin.zod.ts b/packages/spec/src/kernel/metadata-plugin.zod.ts index 0a7f2990b67..14898a21a36 100644 --- a/packages/spec/src/kernel/metadata-plugin.zod.ts +++ b/packages/spec/src/kernel/metadata-plugin.zod.ts @@ -320,7 +320,7 @@ const MetadataTypeRegistryEntryBaseSchema = z.object({ allowEnvironmentOverlay: z.boolean().default(false).describe( 'Whether an environment may overlay an item of this type that a managed package ships ' + '(ADR-0131 D6 regime O). Decides the save door, the managed-content seal on write and on ' - + 'read, and Studio\'s write gate; the OS_METADATA_WRITABLE hatch does not reach a managed ' + + 'read, and App Studio\'s write gate; the OS_METADATA_WRITABLE hatch does not reach a managed ' + 'item. Default false.' ), diff --git a/packages/spec/src/marketplace/package.zod.ts b/packages/spec/src/marketplace/package.zod.ts index 7ae876d1b3d..d0443260b59 100644 --- a/packages/spec/src/marketplace/package.zod.ts +++ b/packages/spec/src/marketplace/package.zod.ts @@ -210,7 +210,7 @@ export const PackageSchema = lazySchema(() => z.object({ ownerOrgId: z.string().describe('Organization ID of the package owner/publisher'), /** Human-readable name shown in Studio and Marketplace. */ - displayName: z.string().min(1).max(128).describe('Display name shown in Studio and Marketplace'), + displayName: z.string().min(1).max(128).describe('Display name shown in App Studio and Marketplace'), /** Short description shown in search results and install dialogs. */ description: z.string().max(512).optional().describe('Short package description'), diff --git a/packages/spec/src/shared/protection.zod.ts b/packages/spec/src/shared/protection.zod.ts index 8a3274528a3..323ecc86c45 100644 --- a/packages/spec/src/shared/protection.zod.ts +++ b/packages/spec/src/shared/protection.zod.ts @@ -189,7 +189,7 @@ export const ProtectionSchema = strictObject({ * guide. Must be a fully-qualified URL. */ docsUrl: z.string().url().optional().describe( - 'Optional URL the Studio banner links to for more context.', + 'Optional URL the App Studio banner links to for more context.', ), }); diff --git a/packages/spec/src/stack.zod.ts b/packages/spec/src/stack.zod.ts index 3f3e224cf25..9d0d3e1847a 100644 --- a/packages/spec/src/stack.zod.ts +++ b/packages/spec/src/stack.zod.ts @@ -903,7 +903,7 @@ const STACK_DEFINITION_COLLECTIONS_SHAPE = { '`viewItems` is the machine-assembled channel for non-container view artifacts in ' + 'runtime-assembled manifests (package export, environment artifacts) — it is not an ' + 'authoring surface. Author views as `defineView` containers in `views:`; author a ' - + 'standalone view through the metadata door (Studio / `PUT /api/v1/meta/view`) instead ' + + 'standalone view through the metadata door (App Studio / `PUT /api/v1/meta/view`) instead ' + 'of stack source.', }).optional().describe( '[MACHINE-ASSEMBLED] Non-container view artifacts of a runtime-assembled manifest ' diff --git a/packages/spec/src/studio/flow-builder.zod.ts b/packages/spec/src/studio/flow-builder.zod.ts index f1abcd23f44..9ddb0d284c1 100644 --- a/packages/spec/src/studio/flow-builder.zod.ts +++ b/packages/spec/src/studio/flow-builder.zod.ts @@ -305,7 +305,7 @@ export const FlowBuilderConfigSchema = lazySchema(() => strictObject({ /** Connection validation — prevent invalid edges (e.g., duplicate, self-loop) */ connectionValidation: z.boolean().default(true) .describe('Validate connections before creating edges'), -}).describe('Studio Flow Builder configuration')); +}).describe('App Studio Flow Builder configuration')); export type FlowBuilderConfig = z.input; /** Post-parse shape of {@link FlowBuilderConfig} — defaults applied, transforms run (ADR-0122). */ diff --git a/packages/spec/src/studio/plugin.zod.ts b/packages/spec/src/studio/plugin.zod.ts index 510fb611c49..c7a54fcfe08 100644 --- a/packages/spec/src/studio/plugin.zod.ts +++ b/packages/spec/src/studio/plugin.zod.ts @@ -315,7 +315,7 @@ export type StudioPluginContributionsParsed = z.infer strictObject({ // one: an author declares an entry point, gets a plugin that loads and // contributes nothing, and it looks exactly like a broken `activate()`. main: - 'there is no entry-point key — a Studio plugin declares its contributions here and registers ' + 'there is no entry-point key — an App Studio plugin declares its contributions here and registers ' + 'the runtime components imperatively in its `activate()` call. Nothing is loaded from a path.', engines: 'there is no engine-compatibility field; a plugin carries `version` and nothing gates it', categories: 'there is no category taxonomy — UI grouping comes from `contributes.sidebarGroups`', - keywords: 'there is no keyword index for Studio plugins', + keywords: 'there is no keyword index for App Studio plugins', repository: 'manifest metadata is limited to `id` / `name` / `version` / `description` / `author`', icon: 'the manifest carries no icon — icons are Lucide names on the CONTRIBUTION (`contributes.metadataIcons`, or an action / panel / command `icon`)', dependencies: - 'Studio plugins declare no dependency graph — every plugin loads and activates ' + 'App Studio plugins declare no dependency graph — every plugin loads and activates ' + 'immediately on registration, and contributions are independent of each other', }, }, { diff --git a/packages/spec/src/system/email-template.zod.ts b/packages/spec/src/system/email-template.zod.ts index 20590920f20..b12a2df295d 100644 --- a/packages/spec/src/system/email-template.zod.ts +++ b/packages/spec/src/system/email-template.zod.ts @@ -91,7 +91,7 @@ export const EMAIL_TEMPLATE_FLOOR_LOCALE = 'en-US'; */ const EMAIL_TEMPLATE_CATEGORY_REMOVED = '`email_template.category` was removed in @objectstack/spec 18 (ADR-0049 enforce-or-remove) — ' - + 'nothing read it: the Studio listing never offered the filter facet it promised, and delivery ' + + 'nothing read it: the App Studio listing never offered the filter facet it promised, and delivery ' + 'never depended on it. Delete the key. A template is found by its `name`, so group templates ' + 'with a dotted namespace prefix instead (`auth.password_reset`, `crm.welcome`). ' + 'Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` ' @@ -100,7 +100,7 @@ const EMAIL_TEMPLATE_CATEGORY_REMOVED = const EMAIL_TEMPLATE_IS_SYSTEM_REMOVED = '`email_template.isSystem` was removed in @objectstack/spec 18 (ADR-0049 enforce-or-remove) — ' + 'nothing enforced it: no door refused deleting a template that set it. Delete the key. A ' - + "built-in template is a code package's declaration: a Studio save overrides it for the " + + "built-in template is a code package's declaration: an App Studio save overrides it for the " + "environment, and discarding that save restores the package's copy. " + 'Run `os migrate meta --from 17` to list the mechanical edits for existing sources; `--write` ' + 'applies the ones it can prove, and you apply the rest by hand.'; @@ -136,7 +136,7 @@ export const EmailTemplateDefinitionVariableSchema = lazySchema(() => z.object({ ), type: z.enum(['string', 'number', 'boolean', 'date', 'url', 'user', 'record']).default('string'), required: z.boolean().default(false), - description: z.string().optional().describe('Author hint shown in Studio'), + description: z.string().optional().describe('Author hint shown in App Studio'), })); export type EmailTemplateDefinitionVariable = z.input; /** Post-parse shape of {@link EmailTemplateDefinitionVariable} — defaults applied, transforms run (ADR-0122). */ diff --git a/packages/spec/src/ui/app.zod.ts b/packages/spec/src/ui/app.zod.ts index be9347f0858..f68adea7e62 100644 --- a/packages/spec/src/ui/app.zod.ts +++ b/packages/spec/src/ui/app.zod.ts @@ -1578,7 +1578,7 @@ const CONTEXT_SELECTOR_RETIRED_KEY_GUIDANCE: Readonly> = '`contextSelectors[].includeAll` was removed in @objectstack/spec 17.0.0 (' + 'ADR-0049) — the shell deliberately ignored it. A context selector is a MANDATORY ' + 'scope: an "All" row would clear the scope on a surface that exists to be scoped, and ' - + "on Studio's package selector that means listing the platform's own system/cloud " + + "on App Studio's package selector that means listing the platform's own system/cloud " + 'kernel metadata to a developer who scoped to their own package. The renderer never ' + 'offered an All row regardless of this flag, so `includeAll: false` hardened nothing ' + 'and `includeAll: true` unlocked nothing. Delete the key. To widen what a selector ' diff --git a/packages/spec/src/ui/view.zod.ts b/packages/spec/src/ui/view.zod.ts index ce6390eaa5b..9732fadca80 100644 --- a/packages/spec/src/ui/view.zod.ts +++ b/packages/spec/src/ui/view.zod.ts @@ -6891,7 +6891,7 @@ export function defineViewItem(config: z.input): ViewItem const FORM_ITEM_DATA_REFUSED = 'A form item is bound with `object`, never with `data` (ADR-0159 D2): remove `data` and set `object` to the ' + 'object the form submits into; the name\'s prefix is that object (`OBJECT.KEY`). A form bound to a JSON ' - + 'Schema is a Studio metadata form (`defineMetadataForm`), not a `form` item.'; + + 'Schema is an App Studio metadata form (`defineMetadataForm`), not a `form` item.'; /** [ADR-0159 D2] The view-item keys a `form` item does not carry, each with what to do instead. */ const FORM_ITEM_GUIDANCE = { @@ -6970,7 +6970,7 @@ export const FormSchema = lazySchema(() => strictObject({ }, { name: ViewItemNameSchema.describe('The form\'s name, `OBJECT.KEY` (ADR-0159 D3): the name it is served under, the target of an action of `type: \'form\'`, and the key a declared override names. The part before the last segment is the form\'s `object`.'), object: SnakeCaseIdentifierSchema.describe('The object the form submits into — its one binding (ADR-0159 D2). It must name an object the package can reference.'), - label: I18nLabelSchema.optional().describe('The form\'s name in lists (Setup, Studio). When absent a surface shows `title`, then the name.'), + label: I18nLabelSchema.optional().describe('The form\'s name in lists (Setup, App Studio). When absent a surface shows `title`, then the name.'), ...formItemBodyShape(), protection: ProtectionSchema.optional().describe('Package author protection block — lock policy for this form.'), // ADR-0010 — runtime protection envelope (internal — set by the loader).