Skip to content

Commit 88a49ee

Browse files
committed
fix(spec): script.config.template tombstone points at notify's own template key
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D6F9axfoPzR7t8G1J7Ytzz
1 parent 2b1382a commit 88a49ee

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎packages/spec/src/automation/schemaless-node-config.zod.ts‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,12 @@ export const ScriptConfigSchema = lazySchema(() => strictObject({
353353
template: retiredKey(
354354
'`script.config.template` was removed in @objectstack/spec 17 — it fed only the '
355355
+ 'logger-backed `email`/`slack` stubs, which never rendered or sent a message, so no template '
356-
+ 'id was ever resolved. Delete the key. A `notify` node carries its own `title`/`message`, and '
357-
+ 'stored templates live in the messaging service (`sys_notification_template`), not on the '
358-
+ 'node. '
356+
+ 'id was ever resolved. Delete the key. For templated content use a `notify` node and name an '
357+
+ 'email template (`email_template`) in its own `template` key, with `templateData` filling its '
358+
+ 'placeholders: the email and in-app inbox channels render that template in each recipient\'s '
359+
+ 'locale. Otherwise the node carries inline `title`/`message`. The messaging service\'s '
360+
+ '`sys_notification_template` rows are read only by the `email` and `sms` channels, `email` '
361+
+ 'only when the node names no template. '
359362
+ 'Run `os migrate meta --from 16` to list the mechanical edits for existing sources; `--write` applies the ones it can prove, and you apply the rest by hand.',
360363
),
361364
recipients: retiredKey(

0 commit comments

Comments
 (0)