Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/spec-describe-app-studio-name.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion content/docs/references/ai/agent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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. |


---
Expand Down
8 changes: 4 additions & 4 deletions content/docs/references/ai/draft-review.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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`) |


---
Expand All @@ -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`) |


---
Expand Down
2 changes: 1 addition & 1 deletion content/docs/references/ai/skill.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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. |


---
Expand Down
4 changes: 2 additions & 2 deletions content/docs/references/ai/tool.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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. |


---
Expand Down
2 changes: 1 addition & 1 deletion content/docs/references/automation/flow.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion content/docs/references/automation/io-node-config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any>` | 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") |
Expand Down
2 changes: 1 addition & 1 deletion content/docs/references/automation/webhook.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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. |


---
Expand Down
Loading
Loading