You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return`Migrate the "${name}" block to the current ${target.name} block: change the block type, then set the new block's required inputs as a separate edit (inputs are validated against the old type when sent in the same edit), or delete it and re-add ${target.name} and rewire the connections.`
94
+
}
95
+
90
96
/**
91
-
* Deprecation state for a placed block: the block type itself (via
92
-
* `config.deprecated.replacedBy`) or its selected model. `null` when neither
93
-
* applies or in diff mode. Drives the canvas badge + click-to-fix prompt.
97
+
* Sunset state for a placed block: the block type itself (via `config.sunset`)
98
+
* or its selected model. `legacy` (amber) is superseded-but-supported and needs
99
+
* a resolvable successor; `deprecated` (red) is no longer supported and badges
100
+
* with or without one. `null` when neither applies or in diff mode.
tooltip: 'This is a legacy block. Click to upgrade',
121
+
prompt: `The "${name}" block is legacy. ${migrationPrompt(name,target)}${hasModel ? ' Also pick a current, non-deprecated model.' : ''}`,
122
+
}
123
+
}
124
+
108
125
return{
126
+
status: 'deprecated',
109
127
kind: 'block',
110
-
tooltip: 'This block is deprecated. Click to upgrade',
111
-
prompt: `The "${name}" block is deprecated. Migrate it to the current ${target.name} block: change the block type, then set the new block's required inputs as a separate edit (inputs are validated against the old type when sent in the same edit), or delete it and re-add ${target.name} and rewire the connections.${hasModel ? ' Also pick a current, non-deprecated model.' : ''}`,
128
+
tooltip: 'This block is no longer supported. Click to replace',
129
+
prompt: target
130
+
? `The "${name}" block is no longer supported. ${migrationPrompt(name,target)}`
131
+
: `The "${name}" block is no longer supported and has no direct successor. Replace it with current blocks that achieve the same result and rewire the connections.`,
'Read workspace files by picker or canonical ID, fetch and parse files from URLs with optional headers, write new workspace files, or append content to existing files.',
573
573
hideFromToolbar: true,
574
-
deprecated: {replacedBy: 'file_v5'},
574
+
sunset: {status: 'legacy',replacedBy: 'file_v5'},
575
575
bestPractices: `
576
576
- Use Read when you need an existing workspace file object by picker selection or canonical file ID.
577
577
- Use Fetch for external file URLs. Add headers for authenticated downloads, for example Slack private file URLs require an Authorization Bearer token.
0 commit comments