feat(scripts): add sidecar icons and tags in the admin UI
Serve optional PNG/JPG next to each script and show meta tags in lists, cards, and the editor. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -87,6 +87,7 @@ async function fetchHtml(ctx) {
|
||||
fetchHtml.meta = {
|
||||
description: "Fetch HTML and optionally select elements or transform with JSONata",
|
||||
previewConfigKey: "url",
|
||||
tags: ["HTTP"],
|
||||
config: {
|
||||
url: { type: "string", required: true, description: "Page URL" },
|
||||
selector: { type: "string", required: false, description: "CSS selector" },
|
||||
|
||||
@@ -116,6 +116,7 @@ async function fetchHttp(ctx) {
|
||||
fetchHttp.meta = {
|
||||
description: "Fetch a URL and store the response body.",
|
||||
previewConfigKey: "url",
|
||||
tags: ["HTTP"],
|
||||
config: {
|
||||
url: { type: "string", required: true, description: "Request URL" },
|
||||
method: {
|
||||
|
||||
@@ -69,6 +69,7 @@ async function fetchRssFeed(ctx) {
|
||||
fetchRssFeed.meta = {
|
||||
description: "Fetch an RSS/Atom feed and optionally transform it with JSONata",
|
||||
previewConfigKey: "url",
|
||||
tags: ["RSS"],
|
||||
config: {
|
||||
url: { type: "string", required: false, description: "Feed URL (or pass data.url)" },
|
||||
outputVar: {
|
||||
|
||||
@@ -29,6 +29,7 @@ triggerWorkflow.meta = {
|
||||
description:
|
||||
"Fire-and-forget another workflow by YAML name (same owner). Destination must declare triggers: [{ type: workflow }]. Optionally reshape ctx.data with JSONata before sending.",
|
||||
previewConfigKey: "name",
|
||||
tags: ["trigger"],
|
||||
config: {
|
||||
name: {
|
||||
type: "string",
|
||||
|
||||
Reference in New Issue
Block a user