Skip to content
Open
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
12 changes: 12 additions & 0 deletions .changeset/39222-app-studio-copies.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion packages/lint/src/rule-explanations/view-containers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
],
};
2 changes: 1 addition & 1 deletion packages/lint/src/validate-view-containers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`)',
);
});
});
4 changes: 2 additions & 2 deletions packages/lint/src/validate-view-containers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function validateViewContainers(stack: Record<string, unknown>): 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.',
});
}

Expand All @@ -139,7 +139,7 @@ export function validateViewContainers(stack: Record<string, unknown>): 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;
}
Expand Down
6 changes: 3 additions & 3 deletions packages/rest/src/meta-save-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -158,15 +158,15 @@ 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).',
};
}
if (typeof surface !== 'string' || !HTTP_SAVE_SURFACES.has(surface)) {
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).',
};
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Loading