@webiny/mcp 6.3.0 → 6.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agents/claude.js +23 -34
- package/agents/claude.js.map +1 -1
- package/agents/cline.js +17 -30
- package/agents/cline.js.map +1 -1
- package/agents/copilot.js +49 -63
- package/agents/copilot.js.map +1 -1
- package/agents/cursor.js +23 -34
- package/agents/cursor.js.map +1 -1
- package/agents/discover.js +17 -20
- package/agents/discover.js.map +1 -1
- package/agents/instructions.js +81 -20
- package/agents/instructions.js.map +1 -1
- package/agents/kiro.js +23 -34
- package/agents/kiro.js.map +1 -1
- package/agents/opencode.js +53 -76
- package/agents/opencode.js.map +1 -1
- package/agents/shared.js +62 -113
- package/agents/shared.js.map +1 -1
- package/agents/types.js +0 -3
- package/agents/windsurf.js +23 -34
- package/agents/windsurf.js.map +1 -1
- package/bin.js +0 -2
- package/cli/ConfigureMcp.js +31 -38
- package/cli/ConfigureMcp.js.map +1 -1
- package/cli/McpServer.js +145 -184
- package/cli/McpServer.js.map +1 -1
- package/cli.js +51 -50
- package/cli.js.map +1 -1
- package/index.js +0 -7
- package/package.json +4 -4
- package/skills/generated/admin/website-builder/SKILL.md +6 -1
- package/skills/generated/api/SKILL.md +6 -1
- package/skills/generated/api/cms/SKILL.md +49 -1
- package/skills/generated/api/webhooks/SKILL.md +106 -0
- package/ui.js +20 -28
- package/ui.js.map +1 -1
- package/agents/types.js.map +0 -1
- package/bin.js.map +0 -1
- package/index.js.map +0 -1
package/cli.js
CHANGED
|
@@ -1,60 +1,61 @@
|
|
|
1
1
|
import { startMcpServer } from "./cli/McpServer.js";
|
|
2
2
|
import { configureMcp } from "./cli/ConfigureMcp.js";
|
|
3
|
-
const
|
|
4
|
-
const command =
|
|
3
|
+
const cli_args = process.argv.slice(2);
|
|
4
|
+
const command = cli_args[0];
|
|
5
5
|
function parseFlags(args) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
const flags = {};
|
|
7
|
+
for (const arg of args){
|
|
8
|
+
if (!arg.startsWith("--")) continue;
|
|
9
|
+
const [key, ...rest] = arg.slice(2).split("=");
|
|
10
|
+
const value = rest.length > 0 ? rest.join("=") : true;
|
|
11
|
+
const existing = flags[key];
|
|
12
|
+
if (void 0 !== existing) flags[key] = Array.isArray(existing) ? [
|
|
13
|
+
...existing,
|
|
14
|
+
value
|
|
15
|
+
] : [
|
|
16
|
+
existing,
|
|
17
|
+
value
|
|
18
|
+
];
|
|
19
|
+
else flags[key] = value;
|
|
10
20
|
}
|
|
11
|
-
|
|
12
|
-
const value = rest.length > 0 ? rest.join("=") : true;
|
|
13
|
-
|
|
14
|
-
// Support repeated flags as arrays.
|
|
15
|
-
const existing = flags[key];
|
|
16
|
-
if (existing !== undefined) {
|
|
17
|
-
flags[key] = Array.isArray(existing) ? [...existing, value] : [existing, value];
|
|
18
|
-
} else {
|
|
19
|
-
flags[key] = value;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return flags;
|
|
21
|
+
return flags;
|
|
23
22
|
}
|
|
24
23
|
async function main() {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
24
|
+
if ("serve" === command) {
|
|
25
|
+
const flags = parseFlags(cli_args.slice(1));
|
|
26
|
+
const additionalSkills = flags["additional-skills"];
|
|
27
|
+
await startMcpServer({
|
|
28
|
+
skills: "string" == typeof flags.skills ? flags.skills : void 0,
|
|
29
|
+
additionalSkills: Array.isArray(additionalSkills) ? additionalSkills : "string" == typeof additionalSkills ? [
|
|
30
|
+
additionalSkills
|
|
31
|
+
] : void 0
|
|
32
|
+
});
|
|
33
|
+
} else if ("configure" === command) {
|
|
34
|
+
const agent = cli_args[1] && !cli_args[1].startsWith("--") ? cli_args[1] : void 0;
|
|
35
|
+
const flags = parseFlags(cli_args.slice(1));
|
|
36
|
+
await configureMcp({
|
|
37
|
+
agent,
|
|
38
|
+
instructions: true === flags.instructions
|
|
39
|
+
});
|
|
40
|
+
} else {
|
|
41
|
+
console.log("Usage: webiny-mcp <command>");
|
|
42
|
+
console.log("");
|
|
43
|
+
console.log("Commands:");
|
|
44
|
+
console.log(" serve Start the MCP server (stdio transport)");
|
|
45
|
+
console.log(" configure Configure MCP server for a specific agent");
|
|
46
|
+
console.log("");
|
|
47
|
+
console.log("Examples:");
|
|
48
|
+
console.log(" npx webiny-mcp serve");
|
|
49
|
+
console.log(" npx webiny-mcp serve --additional-skills=./my-skills");
|
|
50
|
+
console.log(" npx webiny-mcp configure claude");
|
|
51
|
+
console.log(" npx webiny-mcp configure cursor");
|
|
52
|
+
console.log(" npx webiny-mcp configure --instructions");
|
|
53
|
+
process.exit(command ? 1 : 0);
|
|
54
|
+
}
|
|
54
55
|
}
|
|
55
|
-
main().catch(err
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
main().catch((err)=>{
|
|
57
|
+
console.error(err);
|
|
58
|
+
process.exit(1);
|
|
58
59
|
});
|
|
59
60
|
|
|
60
61
|
//# sourceMappingURL=cli.js.map
|
package/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"cli.js","sources":["../src/cli.ts"],"sourcesContent":["import { startMcpServer } from \"./cli/McpServer.js\";\nimport { configureMcp } from \"./cli/ConfigureMcp.js\";\n\nconst args = process.argv.slice(2);\nconst command = args[0];\n\nfunction parseFlags(args: string[]): Record<string, string | string[] | boolean> {\n const flags: Record<string, string | string[] | boolean> = {};\n for (const arg of args) {\n if (!arg.startsWith(\"--\")) {\n continue;\n }\n const [key, ...rest] = arg.slice(2).split(\"=\");\n const value = rest.length > 0 ? rest.join(\"=\") : true;\n\n // Support repeated flags as arrays.\n const existing = flags[key];\n if (existing !== undefined) {\n flags[key] = Array.isArray(existing)\n ? [...existing, value as string]\n : [existing as string, value as string];\n } else {\n flags[key] = value;\n }\n }\n return flags;\n}\n\nasync function main(): Promise<void> {\n if (command === \"serve\") {\n const flags = parseFlags(args.slice(1));\n const additionalSkills = flags[\"additional-skills\"];\n await startMcpServer({\n skills: typeof flags.skills === \"string\" ? flags.skills : undefined,\n additionalSkills: Array.isArray(additionalSkills)\n ? additionalSkills\n : typeof additionalSkills === \"string\"\n ? [additionalSkills]\n : undefined\n });\n } else if (command === \"configure\") {\n const agent = args[1] && !args[1].startsWith(\"--\") ? args[1] : undefined;\n const flags = parseFlags(args.slice(1));\n await configureMcp({\n agent,\n instructions: flags.instructions === true\n });\n } else {\n console.log(\"Usage: webiny-mcp <command>\");\n console.log(\"\");\n console.log(\"Commands:\");\n console.log(\" serve Start the MCP server (stdio transport)\");\n console.log(\" configure Configure MCP server for a specific agent\");\n console.log(\"\");\n console.log(\"Examples:\");\n console.log(\" npx webiny-mcp serve\");\n console.log(\" npx webiny-mcp serve --additional-skills=./my-skills\");\n console.log(\" npx webiny-mcp configure claude\");\n console.log(\" npx webiny-mcp configure cursor\");\n console.log(\" npx webiny-mcp configure --instructions\");\n process.exit(command ? 1 : 0);\n }\n}\n\nmain().catch(err => {\n console.error(err);\n process.exit(1);\n});\n"],"names":["args","process","command","parseFlags","flags","arg","key","rest","value","existing","undefined","Array","main","additionalSkills","startMcpServer","agent","configureMcp","console","err"],"mappings":";;AAGA,MAAMA,WAAOC,QAAQ,IAAI,CAAC,KAAK,CAAC;AAChC,MAAMC,UAAUF,QAAI,CAAC,EAAE;AAEvB,SAASG,WAAWH,IAAc;IAC9B,MAAMI,QAAqD,CAAC;IAC5D,KAAK,MAAMC,OAAOL,KAAM;QACpB,IAAI,CAACK,IAAI,UAAU,CAAC,OAChB;QAEJ,MAAM,CAACC,KAAK,GAAGC,KAAK,GAAGF,IAAI,KAAK,CAAC,GAAG,KAAK,CAAC;QAC1C,MAAMG,QAAQD,KAAK,MAAM,GAAG,IAAIA,KAAK,IAAI,CAAC,OAAO;QAGjD,MAAME,WAAWL,KAAK,CAACE,IAAI;QAC3B,IAAIG,AAAaC,WAAbD,UACAL,KAAK,CAACE,IAAI,GAAGK,MAAM,OAAO,CAACF,YACrB;eAAIA;YAAUD;SAAgB,GAC9B;YAACC;YAAoBD;SAAgB;aAE3CJ,KAAK,CAACE,IAAI,GAAGE;IAErB;IACA,OAAOJ;AACX;AAEA,eAAeQ;IACX,IAAIV,AAAY,YAAZA,SAAqB;QACrB,MAAME,QAAQD,WAAWH,SAAK,KAAK,CAAC;QACpC,MAAMa,mBAAmBT,KAAK,CAAC,oBAAoB;QACnD,MAAMU,eAAe;YACjB,QAAQ,AAAwB,YAAxB,OAAOV,MAAM,MAAM,GAAgBA,MAAM,MAAM,GAAGM;YAC1D,kBAAkBC,MAAM,OAAO,CAACE,oBAC1BA,mBACA,AAA4B,YAA5B,OAAOA,mBACL;gBAACA;aAAiB,GAClBH;QACZ;IACJ,OAAO,IAAIR,AAAY,gBAAZA,SAAyB;QAChC,MAAMa,QAAQf,QAAI,CAAC,EAAE,IAAI,CAACA,QAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQA,QAAI,CAAC,EAAE,GAAGU;QAC/D,MAAMN,QAAQD,WAAWH,SAAK,KAAK,CAAC;QACpC,MAAMgB,aAAa;YACfD;YACA,cAAcX,AAAuB,SAAvBA,MAAM,YAAY;QACpC;IACJ,OAAO;QACHa,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZA,QAAQ,GAAG,CAAC;QACZhB,QAAQ,IAAI,CAACC,UAAU,IAAI;IAC/B;AACJ;AAEAU,OAAO,KAAK,CAACM,CAAAA;IACTD,QAAQ,KAAK,CAACC;IACdjB,QAAQ,IAAI,CAAC;AACjB"}
|
package/index.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
// Ui interface and console implementation
|
|
2
|
-
|
|
3
1
|
export { ConsoleUi } from "./ui.js";
|
|
4
|
-
|
|
5
|
-
// Core functions
|
|
6
2
|
export { startMcpServer } from "./cli/McpServer.js";
|
|
7
3
|
export { configureMcp } from "./cli/ConfigureMcp.js";
|
|
8
|
-
// Agent discovery
|
|
9
4
|
export { discoverAgents, discoverPresets } from "./agents/discover.js";
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/mcp",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0-beta.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
25
25
|
"front-matter": "4.0.2",
|
|
26
|
-
"zod": "4.3
|
|
26
|
+
"zod": "4.4.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/lodash": "4.17.24",
|
|
30
30
|
"@types/ncp": "2.0.8",
|
|
31
|
-
"@webiny/build-tools": "6.
|
|
31
|
+
"@webiny/build-tools": "6.4.0-beta.1",
|
|
32
32
|
"execa": "5.1.1",
|
|
33
33
|
"tsx": "4.21.0",
|
|
34
34
|
"typescript": "6.0.3"
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"prepublishOnly": "bash ./prepublishOnly.sh"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "73237b8243693038c072bae1c0b783387448cbbe"
|
|
40
40
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: webiny-admin-website-builder-catalog
|
|
3
3
|
context: webiny-api
|
|
4
4
|
description: >
|
|
5
|
-
admin/website-builder —
|
|
5
|
+
admin/website-builder — 64 abstractions.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# admin/website-builder
|
|
@@ -212,6 +212,11 @@ which can be mutated in place.
|
|
|
212
212
|
**Import:** `import { PageTypeProvider } from "webiny/admin/website-builder"`
|
|
213
213
|
**Source:** `@webiny/app-website-builder/presentation/pages/CreatePage/abstractions.ts`
|
|
214
214
|
|
|
215
|
+
---
|
|
216
|
+
**Name:** `PreviewUrlModifier`
|
|
217
|
+
**Import:** `import { PreviewUrlModifier } from "webiny/admin/website-builder"`
|
|
218
|
+
**Source:** `@webiny/app-website-builder/features/previewUrl/abstractions.ts`
|
|
219
|
+
|
|
215
220
|
---
|
|
216
221
|
**Name:** `RedirectListConfig`
|
|
217
222
|
**Import:** `import { RedirectListConfig } from "webiny/admin/website-builder/redirect/list"`
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: webiny-api-catalog
|
|
3
3
|
context: webiny-api
|
|
4
4
|
description: >
|
|
5
|
-
api —
|
|
5
|
+
api — 22 abstractions.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# api
|
|
@@ -137,3 +137,8 @@ Inspired by functional programming constructs like `Either` or `Result` in other
|
|
|
137
137
|
**Source:** `@webiny/handler/abstractions/Route.ts`
|
|
138
138
|
|
|
139
139
|
---
|
|
140
|
+
**Name:** `WebsocketService`
|
|
141
|
+
**Import:** `import { WebsocketService } from "webiny/api"`
|
|
142
|
+
**Source:** `@webiny/api-websockets/features/WebsocketService/index.ts`
|
|
143
|
+
|
|
144
|
+
---
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: webiny-api-cms-catalog
|
|
3
3
|
context: webiny-api
|
|
4
4
|
description: >
|
|
5
|
-
API — Headless CMS —
|
|
5
|
+
API — Headless CMS — 133 abstractions.
|
|
6
6
|
Entry, model, and group event handlers and use cases.
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -173,6 +173,16 @@ Entry, model, and group event handlers and use cases.
|
|
|
173
173
|
**Source:** `@webiny/api-headless-cms/features/contentEntry/ContentEntryTraverser/index.ts`
|
|
174
174
|
**Description:** Traverse the given content entry data using the model's AST.
|
|
175
175
|
|
|
176
|
+
---
|
|
177
|
+
**Name:** `CreateEntryDataFactory`
|
|
178
|
+
**Import:** `import { CreateEntryDataFactory } from "webiny/api/cms/entry"`
|
|
179
|
+
**Source:** `@webiny/api-headless-cms/features/contentEntry/entryDataFactories/CreateEntryDataFactory/abstractions.ts`
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
**Name:** `CreateEntryRevisionFromDataFactory`
|
|
183
|
+
**Import:** `import { CreateEntryRevisionFromDataFactory } from "webiny/api/cms/entry"`
|
|
184
|
+
**Source:** `@webiny/api-headless-cms/features/contentEntry/entryDataFactories/CreateEntryRevisionFromDataFactory/abstractions.ts`
|
|
185
|
+
|
|
176
186
|
---
|
|
177
187
|
**Name:** `CreateEntryRevisionFromUseCase`
|
|
178
188
|
**Import:** `import { CreateEntryRevisionFromUseCase } from "webiny/api/cms/entry"`
|
|
@@ -203,6 +213,21 @@ Entry, model, and group event handlers and use cases.
|
|
|
203
213
|
**Source:** `@webiny/api-headless-cms/features/contentModel/CreateModel/abstractions.ts`
|
|
204
214
|
**Description:** Create a new content model.
|
|
205
215
|
|
|
216
|
+
---
|
|
217
|
+
**Name:** `CreatePublishEntryDataFactory`
|
|
218
|
+
**Import:** `import { CreatePublishEntryDataFactory } from "webiny/api/cms/entry"`
|
|
219
|
+
**Source:** `@webiny/api-headless-cms/features/contentEntry/entryDataFactories/CreatePublishEntryDataFactory/abstractions.ts`
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
**Name:** `CreateRepublishEntryDataFactory`
|
|
223
|
+
**Import:** `import { CreateRepublishEntryDataFactory } from "webiny/api/cms/entry"`
|
|
224
|
+
**Source:** `@webiny/api-headless-cms/features/contentEntry/entryDataFactories/CreateRepublishEntryDataFactory/abstractions.ts`
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
**Name:** `CreateUnpublishEntryDataFactory`
|
|
228
|
+
**Import:** `import { CreateUnpublishEntryDataFactory } from "webiny/api/cms/entry"`
|
|
229
|
+
**Source:** `@webiny/api-headless-cms/features/contentEntry/entryDataFactories/CreateUnpublishEntryDataFactory/abstractions.ts`
|
|
230
|
+
|
|
206
231
|
---
|
|
207
232
|
**Name:** `DataFieldBuilder`
|
|
208
233
|
**Import:** `import { DataFieldBuilder } from "webiny/api/cms/model"`
|
|
@@ -294,6 +319,12 @@ Provides storageId, list, validation, renderer, and other data-field methods.
|
|
|
294
319
|
**Source:** `@webiny/api-headless-cms/features/contentEntry/UpdateEntry/events.ts`
|
|
295
320
|
**Description:** Hook into entry lifecycle after an entry is updated.
|
|
296
321
|
|
|
322
|
+
---
|
|
323
|
+
**Name:** `EntryAfterUpdateRevisionDescriptionEventHandler`
|
|
324
|
+
**Import:** `import { EntryAfterUpdateRevisionDescriptionEventHandler } from "webiny/api/cms/entry"`
|
|
325
|
+
**Source:** `@webiny/api-headless-cms/features/contentEntry/UpdateRevisionDescription/events.ts`
|
|
326
|
+
**Description:** Hook into entry lifecycle after an entry is updated.
|
|
327
|
+
|
|
297
328
|
---
|
|
298
329
|
**Name:** `EntryBeforeCreateEventHandler`
|
|
299
330
|
**Import:** `import { EntryBeforeCreateEventHandler } from "webiny/api/cms/entry"`
|
|
@@ -348,6 +379,12 @@ Provides storageId, list, validation, renderer, and other data-field methods.
|
|
|
348
379
|
**Source:** `@webiny/api-headless-cms/features/contentEntry/UpdateEntry/events.ts`
|
|
349
380
|
**Description:** Hook into entry lifecycle before an entry is updated.
|
|
350
381
|
|
|
382
|
+
---
|
|
383
|
+
**Name:** `EntryBeforeUpdateRevisionDescriptionEventHandler`
|
|
384
|
+
**Import:** `import { EntryBeforeUpdateRevisionDescriptionEventHandler } from "webiny/api/cms/entry"`
|
|
385
|
+
**Source:** `@webiny/api-headless-cms/features/contentEntry/UpdateRevisionDescription/events.ts`
|
|
386
|
+
**Description:** Hook into entry lifecycle before an entry is updated.
|
|
387
|
+
|
|
351
388
|
---
|
|
352
389
|
**Name:** `EntryId`
|
|
353
390
|
**Import:** `import { EntryId } from "webiny/api/cms/entry"`
|
|
@@ -723,6 +760,11 @@ Call .private() or .public() to get the appropriate typed builder.
|
|
|
723
760
|
**Source:** `@webiny/api-headless-cms/features/contentEntry/UnpublishEntry/abstractions.ts`
|
|
724
761
|
**Description:** Unpublish a content entry.
|
|
725
762
|
|
|
763
|
+
---
|
|
764
|
+
**Name:** `UpdateEntryDataFactory`
|
|
765
|
+
**Import:** `import { UpdateEntryDataFactory } from "webiny/api/cms/entry"`
|
|
766
|
+
**Source:** `@webiny/api-headless-cms/features/contentEntry/entryDataFactories/UpdateEntryDataFactory/abstractions.ts`
|
|
767
|
+
|
|
726
768
|
---
|
|
727
769
|
**Name:** `UpdateEntryUseCase`
|
|
728
770
|
**Import:** `import { UpdateEntryUseCase } from "webiny/api/cms/entry"`
|
|
@@ -741,6 +783,12 @@ Call .private() or .public() to get the appropriate typed builder.
|
|
|
741
783
|
**Source:** `@webiny/api-headless-cms/features/contentModel/UpdateModel/abstractions.ts`
|
|
742
784
|
**Description:** Update a content model.
|
|
743
785
|
|
|
786
|
+
---
|
|
787
|
+
**Name:** `UpdateRevisionDescriptionUseCase`
|
|
788
|
+
**Import:** `import { UpdateRevisionDescriptionUseCase } from "webiny/api/cms/entry"`
|
|
789
|
+
**Source:** `@webiny/api-headless-cms/features/contentEntry/UpdateRevisionDescription/abstractions.ts`
|
|
790
|
+
**Description:** Update a content revision description.
|
|
791
|
+
|
|
744
792
|
---
|
|
745
793
|
**Name:** `UpdateSingletonEntryUseCase`
|
|
746
794
|
**Import:** `import { UpdateSingletonEntryUseCase } from "webiny/api/cms/entry"`
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: webiny-api-webhooks-catalog
|
|
3
|
+
context: webiny-api
|
|
4
|
+
description: >
|
|
5
|
+
api/webhooks — 15 abstractions.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# api/webhooks
|
|
9
|
+
|
|
10
|
+
## How to Use
|
|
11
|
+
|
|
12
|
+
1. Find the abstraction you need below
|
|
13
|
+
2. You MUST read the source file to get the exact interface and types!
|
|
14
|
+
3. Import: `import { Name } from "<importPath>";`
|
|
15
|
+
4. See `webiny-use-case-pattern` or `webiny-event-handler-pattern` skills for implementation patterns
|
|
16
|
+
|
|
17
|
+
## Abstractions
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
**Name:** `createWebhooks`
|
|
21
|
+
**Import:** `import { createWebhooks } from "webiny/api/webhooks"`
|
|
22
|
+
**Source:** `@webiny/webhooks/api/index.ts`
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
**Name:** `IListMeta`
|
|
26
|
+
**Kind:** type
|
|
27
|
+
**Import:** `import type { IListMeta } from "webiny/api/webhooks"`
|
|
28
|
+
**Source:** `@webiny/webhooks/api/features/ListWebhooks/abstractions.ts`
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
**Name:** `IWebhookPayload`
|
|
32
|
+
**Kind:** type
|
|
33
|
+
**Import:** `import type { IWebhookPayload } from "webiny/api/webhooks"`
|
|
34
|
+
**Source:** `@webiny/webhooks/api/features/SendWebhookTask/types.ts`
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
**Name:** `Webhook`
|
|
38
|
+
**Kind:** type
|
|
39
|
+
**Import:** `import type { Webhook } from "webiny/api/webhooks"`
|
|
40
|
+
**Source:** `@webiny/webhooks/api/domain/Webhook.ts`
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
**Name:** `WebhookCmsEntry`
|
|
44
|
+
**Kind:** type
|
|
45
|
+
**Import:** `import type { WebhookCmsEntry } from "webiny/api/webhooks"`
|
|
46
|
+
**Source:** `@webiny/webhooks/api/domain/Webhook.ts`
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
**Name:** `WebhookCmsEntryValues`
|
|
50
|
+
**Kind:** type
|
|
51
|
+
**Import:** `import type { WebhookCmsEntryValues } from "webiny/api/webhooks"`
|
|
52
|
+
**Source:** `@webiny/webhooks/api/domain/Webhook.ts`
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
**Name:** `WebhookDelivery`
|
|
56
|
+
**Kind:** type
|
|
57
|
+
**Import:** `import type { WebhookDelivery } from "webiny/api/webhooks"`
|
|
58
|
+
**Source:** `@webiny/webhooks/api/domain/WebhookDelivery.ts`
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
**Name:** `WebhookDeliveryCmsEntry`
|
|
62
|
+
**Kind:** type
|
|
63
|
+
**Import:** `import type { WebhookDeliveryCmsEntry } from "webiny/api/webhooks"`
|
|
64
|
+
**Source:** `@webiny/webhooks/api/domain/WebhookDelivery.ts`
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
**Name:** `WebhookDeliveryCmsEntryValues`
|
|
68
|
+
**Kind:** type
|
|
69
|
+
**Import:** `import type { WebhookDeliveryCmsEntryValues } from "webiny/api/webhooks"`
|
|
70
|
+
**Source:** `@webiny/webhooks/api/domain/WebhookDelivery.ts`
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
**Name:** `WebhookDeliveryStatus`
|
|
74
|
+
**Kind:** type
|
|
75
|
+
**Import:** `import type { WebhookDeliveryStatus } from "webiny/api/webhooks"`
|
|
76
|
+
**Source:** `@webiny/webhooks/api/domain/WebhookDelivery.ts`
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
**Name:** `WebhookDispatcher`
|
|
80
|
+
**Import:** `import { WebhookDispatcher } from "webiny/api/webhooks"`
|
|
81
|
+
**Source:** `@webiny/api-core/features/webhooks/index.ts`
|
|
82
|
+
**Description:** Routes a domain event to all matching enabled webhooks via background tasks.
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
**Name:** `WebhookFactory`
|
|
86
|
+
**Import:** `import { WebhookFactory } from "webiny/api/webhooks"`
|
|
87
|
+
**Source:** `@webiny/api-core/features/webhooks/index.ts`
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
**Name:** `WebhookProvider`
|
|
91
|
+
**Import:** `import { WebhookProvider } from "webiny/api/webhooks"`
|
|
92
|
+
**Source:** `@webiny/api-core/features/webhooks/index.ts`
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
**Name:** `WebhookSignPayload`
|
|
96
|
+
**Import:** `import { WebhookSignPayload } from "webiny/api/webhooks"`
|
|
97
|
+
**Source:** `@webiny/api-core/features/webhooks/index.ts`
|
|
98
|
+
**Description:** Signs webhook payloads using the Standard Webhooks spec (https://www.standardwebhooks.com).
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
**Name:** `WebhookVerifyPayload`
|
|
102
|
+
**Import:** `import { WebhookVerifyPayload } from "webiny/api/webhooks"`
|
|
103
|
+
**Source:** `@webiny/api-core/features/webhooks/index.ts`
|
|
104
|
+
**Description:** Verifies incoming webhook payloads using the Standard Webhooks spec (https://www.standardwebhooks.com).
|
|
105
|
+
|
|
106
|
+
---
|
package/ui.js
CHANGED
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
warning(text, ...args) {
|
|
21
|
-
console.warn(text, ...args);
|
|
22
|
-
}
|
|
23
|
-
text(text) {
|
|
24
|
-
console.log(text);
|
|
25
|
-
}
|
|
26
|
-
emptyLine() {
|
|
27
|
-
console.log();
|
|
28
|
-
}
|
|
1
|
+
class ConsoleUi {
|
|
2
|
+
info(text, ...args) {
|
|
3
|
+
console.log(text, ...args);
|
|
4
|
+
}
|
|
5
|
+
success(text, ...args) {
|
|
6
|
+
console.log(text, ...args);
|
|
7
|
+
}
|
|
8
|
+
error(text, ...args) {
|
|
9
|
+
console.error(text, ...args);
|
|
10
|
+
}
|
|
11
|
+
warning(text, ...args) {
|
|
12
|
+
console.warn(text, ...args);
|
|
13
|
+
}
|
|
14
|
+
text(text) {
|
|
15
|
+
console.log(text);
|
|
16
|
+
}
|
|
17
|
+
emptyLine() {
|
|
18
|
+
console.log();
|
|
19
|
+
}
|
|
29
20
|
}
|
|
21
|
+
export { ConsoleUi };
|
|
30
22
|
|
|
31
23
|
//# sourceMappingURL=ui.js.map
|
package/ui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"ui.js","sources":["../src/ui.ts"],"sourcesContent":["/**\n * Minimal UI interface for MCP output.\n * This is a structural subtype of @webiny/cli-core's IUiService,\n * so Webiny's Ui can be passed directly without an adapter.\n */\nexport interface IUi {\n info(text: string, ...args: any[]): void;\n success(text: string, ...args: any[]): void;\n error(text: string, ...args: any[]): void;\n warning(text: string, ...args: any[]): void;\n text(text: string): void;\n emptyLine(): void;\n}\n\n/**\n * Console-based Ui for standalone usage (no @webiny/cli-core needed).\n */\nexport class ConsoleUi implements IUi {\n info(text: string, ...args: any[]): void {\n console.log(text, ...args);\n }\n\n success(text: string, ...args: any[]): void {\n console.log(text, ...args);\n }\n\n error(text: string, ...args: any[]): void {\n console.error(text, ...args);\n }\n\n warning(text: string, ...args: any[]): void {\n console.warn(text, ...args);\n }\n\n text(text: string): void {\n console.log(text);\n }\n\n emptyLine(): void {\n console.log();\n }\n}\n"],"names":["ConsoleUi","text","args","console"],"mappings":"AAiBO,MAAMA;IACT,KAAKC,IAAY,EAAE,GAAGC,IAAW,EAAQ;QACrCC,QAAQ,GAAG,CAACF,SAASC;IACzB;IAEA,QAAQD,IAAY,EAAE,GAAGC,IAAW,EAAQ;QACxCC,QAAQ,GAAG,CAACF,SAASC;IACzB;IAEA,MAAMD,IAAY,EAAE,GAAGC,IAAW,EAAQ;QACtCC,QAAQ,KAAK,CAACF,SAASC;IAC3B;IAEA,QAAQD,IAAY,EAAE,GAAGC,IAAW,EAAQ;QACxCC,QAAQ,IAAI,CAACF,SAASC;IAC1B;IAEA,KAAKD,IAAY,EAAQ;QACrBE,QAAQ,GAAG,CAACF;IAChB;IAEA,YAAkB;QACdE,QAAQ,GAAG;IACf;AACJ"}
|
package/agents/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import type { IUi } from \"../ui.js\";\n\nexport interface AgentPreset {\n slug: string;\n displayName: string;\n configFile: string;\n configNote?: string;\n hintFile?: string;\n hintNote?: string;\n}\n\nexport interface AgentModule {\n preset: AgentPreset;\n init: (params: { ui: IUi; cwd: string }) => Promise<void>;\n}\n"],"mappings":"","ignoreList":[]}
|
package/bin.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["bin.js"],"sourcesContent":["#!/usr/bin/env node\nimport \"./cli.js\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
|
package/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ConsoleUi","startMcpServer","configureMcp","discoverAgents","discoverPresets"],"sources":["index.ts"],"sourcesContent":["// Ui interface and console implementation\nexport type { IUi } from \"./ui.js\";\nexport { ConsoleUi } from \"./ui.js\";\n\n// Core functions\nexport { startMcpServer } from \"./cli/McpServer.js\";\nexport type { IMcpServerParams } from \"./cli/McpServer.js\";\nexport { configureMcp } from \"./cli/ConfigureMcp.js\";\nexport type { IConfigureMcpParams } from \"./cli/ConfigureMcp.js\";\n\n// Agent discovery\nexport { discoverAgents, discoverPresets } from \"./agents/discover.js\";\nexport type { AgentPreset, AgentModule } from \"./agents/types.js\";\n"],"mappings":"AAAA;;AAEA,SAASA,SAAS;;AAElB;AACA,SAASC,cAAc;AAEvB,SAASC,YAAY;AAGrB;AACA,SAASC,cAAc,EAAEC,eAAe","ignoreList":[]}
|