diff --git a/.changeset/39222-app-studio-copies.md b/.changeset/39222-app-studio-copies.md new file mode 100644 index 00000000000..2fa0ecc83e9 --- /dev/null +++ b/.changeset/39222-app-studio-copies.md @@ -0,0 +1,12 @@ +--- +'@objectstack/lint': patch +'@objectstack/rest': patch +'@objectstack/service-automation': patch +--- + +Three more author-facing sentences name the authoring surface App Studio, as their `@objectstack/spec` twins already do + +Clause-②: no +Metadata-protocol: none + +The `view-container-shape` finding's hint and its `os explain` text now say the metadata door is "App Studio / `PUT /api/v1/meta/view`", matching the `viewItems` refusal in `@objectstack/spec`. The `/api/v1/meta` save refusals for `?surface=` now say "a person editing in App Studio" and "a save that is not made in App Studio". The notify node's Template help now says email templates can be "authored in App Studio". Only display text changes: the `?surface=studio` value, the `/studio` address and every identifier stay as they were. diff --git a/packages/lint/src/rule-explanations/view-containers.ts b/packages/lint/src/rule-explanations/view-containers.ts index 58e29eccf9f..bca752ece1b 100644 --- a/packages/lint/src/rule-explanations/view-containers.ts +++ b/packages/lint/src/rule-explanations/view-containers.ts @@ -24,7 +24,7 @@ export const VIEW_CONTAINER_SHAPE_EXPLANATION: RuleExplanation = { '`viewItems:` is the machine-assembled channel for non-container view artifacts in a ' + 'runtime-assembled manifest (a package export, an environment artifact), never an authoring ' + 'surface: the stack schema types it `never`, and a hand-authored one is reported here for the ' + - 'doors that do not parse. A standalone view is authored through the metadata door (Studio or ' + + 'doors that do not parse. A standalone view is authored through the metadata door (App Studio or ' + '`PUT /api/v1/meta/view`), not in stack source.', ], }; diff --git a/packages/lint/src/validate-view-containers.test.ts b/packages/lint/src/validate-view-containers.test.ts index faaec7459ce..23f8f2ded81 100644 --- a/packages/lint/src/validate-view-containers.test.ts +++ b/packages/lint/src/validate-view-containers.test.ts @@ -220,7 +220,7 @@ describe('[#22161] one-line fixes — view-container-shape', () => { }); expect(f!.hint).toBe( 'Wrap it in a defineView container (defineView({ list: { type, data, columns, ... }, listViews: { ... } })), ' + - 'or author it through the metadata door (Studio / `PUT /api/v1/meta/view`)', + 'or author it through the metadata door (App Studio / `PUT /api/v1/meta/view`)', ); }); }); diff --git a/packages/lint/src/validate-view-containers.ts b/packages/lint/src/validate-view-containers.ts index ea882f16f4a..30e70d592f3 100644 --- a/packages/lint/src/validate-view-containers.ts +++ b/packages/lint/src/validate-view-containers.ts @@ -112,7 +112,7 @@ export function validateViewContainers(stack: Record): ViewCont + 'runtime-assembled manifests (package export, environment artifacts) — it is not an ' + 'authoring surface.', hint: 'Author views as defineView containers in `views:`; author a standalone view through ' - + 'the metadata door (Studio / `PUT /api/v1/meta/view`), not in stack source.', + + 'the metadata door (App Studio / `PUT /api/v1/meta/view`), not in stack source.', }); } @@ -139,7 +139,7 @@ export function validateViewContainers(stack: Record): ViewCont // [#22161] One remedy line; that machine-assembled manifests carry a // ViewItem under `viewItems:` is the explanation's. hint: 'Wrap it in a defineView container (defineView({ list: { type, data, columns, ... }, ' - + 'listViews: { ... } })), or author it through the metadata door (Studio / `PUT /api/v1/meta/view`)', + + 'listViews: { ... } })), or author it through the metadata door (App Studio / `PUT /api/v1/meta/view`)', }); continue; } diff --git a/packages/rest/src/meta-save-request.ts b/packages/rest/src/meta-save-request.ts index c0790465956..445e80de9cc 100644 --- a/packages/rest/src/meta-save-request.ts +++ b/packages/rest/src/meta-save-request.ts @@ -148,7 +148,7 @@ export function metaSaveRequestOptions(http: MetaSaveRequestHttp): MetaSaveReque ok: false, message: '?surface=copilot is not accepted over HTTP: it marks a write as the AI copilot\'s, ' + 'which only an AI tool calling the save in-process may state. Send ?surface=studio for a ' - + 'person editing in Studio, ?surface=api for any other caller, or omit it (recorded as api).', + + 'person editing in App Studio, ?surface=api for any other caller, or omit it (recorded as api).', }; } // [#27176] `mcp` is the MCP build door's, stated in-process once it @@ -158,7 +158,7 @@ export function metaSaveRequestOptions(http: MetaSaveRequestHttp): MetaSaveReque ok: false, message: '?surface=mcp is not accepted over HTTP: it marks a write as an MCP agent\'s, which only ' + 'the MCP build door states in-process, after verifying the client\'s token. Send ' - + '?surface=studio for a person editing in Studio, ?surface=api for any other caller, or omit ' + + '?surface=studio for a person editing in App Studio, ?surface=api for any other caller, or omit ' + 'it (recorded as api).', }; } @@ -166,7 +166,7 @@ export function metaSaveRequestOptions(http: MetaSaveRequestHttp): MetaSaveReque return { ok: false, message: `?surface= takes studio or api, exactly; got ${JSON.stringify(surface)}. ` - + 'Omit it for a save that is not made in Studio (recorded as api).', + + 'Omit it for a save that is not made in App Studio (recorded as api).', }; } } diff --git a/packages/services/service-automation/src/builtin/notify-node.ts b/packages/services/service-automation/src/builtin/notify-node.ts index 9fd50ac909b..88c5480a7a6 100644 --- a/packages/services/service-automation/src/builtin/notify-node.ts +++ b/packages/services/service-automation/src/builtin/notify-node.ts @@ -955,7 +955,7 @@ export function registerNotifyNode(engine: AutomationEngine, ctx: PluginContext) // both recorded here, neither in the help text. template: { type: 'string', - description: 'Email template name (the email template\'s name) — the localizable content path: resolved by (name, locale) at delivery time among the email templates (built-in, declared by an app, or authored in Studio), rendering 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.', + description: 'Email template name (the email template\'s name) — the localizable content path: resolved by (name, locale) at delivery time among the email templates (built-in, declared by an app, or authored in App Studio), rendering 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.', }, templateData: { type: 'object',