claude-plugin-wordpress-manager 1.4.0
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/.claude-plugin/plugin.json +19 -0
- package/.mcp.json +19 -0
- package/CHANGELOG.md +62 -0
- package/LICENSE +69 -0
- package/README.md +213 -0
- package/agents/wp-content-strategist.md +148 -0
- package/agents/wp-deployment-engineer.md +93 -0
- package/agents/wp-performance-optimizer.md +198 -0
- package/agents/wp-security-auditor.md +161 -0
- package/agents/wp-site-manager.md +109 -0
- package/commands/wp-audit.md +37 -0
- package/commands/wp-backup.md +45 -0
- package/commands/wp-deploy.md +38 -0
- package/commands/wp-setup.md +64 -0
- package/commands/wp-status.md +53 -0
- package/docs/GUIDE.md +1190 -0
- package/hooks/hooks.json +57 -0
- package/hooks/scripts/backup-reminder.sh +29 -0
- package/hooks/scripts/pre-deploy-check.sh +49 -0
- package/package.json +46 -0
- package/scripts/health-check.sh +110 -0
- package/scripts/validate-wp-operation.sh +115 -0
- package/servers/wp-rest-bridge/build/server.d.ts +2 -0
- package/servers/wp-rest-bridge/build/server.js +74 -0
- package/servers/wp-rest-bridge/build/tools/comments.d.ts +227 -0
- package/servers/wp-rest-bridge/build/tools/comments.js +192 -0
- package/servers/wp-rest-bridge/build/tools/index.d.ts +919 -0
- package/servers/wp-rest-bridge/build/tools/index.js +30 -0
- package/servers/wp-rest-bridge/build/tools/media.d.ts +174 -0
- package/servers/wp-rest-bridge/build/tools/media.js +247 -0
- package/servers/wp-rest-bridge/build/tools/plugin-repository.d.ts +62 -0
- package/servers/wp-rest-bridge/build/tools/plugin-repository.js +149 -0
- package/servers/wp-rest-bridge/build/tools/plugins.d.ts +153 -0
- package/servers/wp-rest-bridge/build/tools/plugins.js +175 -0
- package/servers/wp-rest-bridge/build/tools/search.d.ts +44 -0
- package/servers/wp-rest-bridge/build/tools/search.js +44 -0
- package/servers/wp-rest-bridge/build/tools/unified-content.d.ts +328 -0
- package/servers/wp-rest-bridge/build/tools/unified-content.js +628 -0
- package/servers/wp-rest-bridge/build/tools/unified-taxonomies.d.ts +244 -0
- package/servers/wp-rest-bridge/build/tools/unified-taxonomies.js +492 -0
- package/servers/wp-rest-bridge/build/tools/users.d.ts +269 -0
- package/servers/wp-rest-bridge/build/tools/users.js +226 -0
- package/servers/wp-rest-bridge/build/types.d.ts +151 -0
- package/servers/wp-rest-bridge/build/types.js +2 -0
- package/servers/wp-rest-bridge/build/wordpress.d.ts +48 -0
- package/servers/wp-rest-bridge/build/wordpress.js +305 -0
- package/servers/wp-rest-bridge/package.json +27 -0
- package/skills/wordpress-router/SKILL.md +78 -0
- package/skills/wordpress-router/references/decision-tree.md +88 -0
- package/skills/wp-abilities-api/SKILL.md +97 -0
- package/skills/wp-abilities-api/references/php-registration.md +67 -0
- package/skills/wp-abilities-api/references/rest-api.md +13 -0
- package/skills/wp-audit/SKILL.md +114 -0
- package/skills/wp-audit/references/performance-checklist.md +113 -0
- package/skills/wp-audit/references/security-checklist.md +95 -0
- package/skills/wp-audit/references/seo-checklist.md +128 -0
- package/skills/wp-backup/SKILL.md +87 -0
- package/skills/wp-backup/references/backup-strategies.md +116 -0
- package/skills/wp-backup/references/restore-procedures.md +129 -0
- package/skills/wp-block-development/SKILL.md +176 -0
- package/skills/wp-block-development/references/attributes-and-serialization.md +22 -0
- package/skills/wp-block-development/references/block-json.md +49 -0
- package/skills/wp-block-development/references/creating-new-blocks.md +46 -0
- package/skills/wp-block-development/references/debugging.md +36 -0
- package/skills/wp-block-development/references/deprecations.md +24 -0
- package/skills/wp-block-development/references/dynamic-rendering.md +23 -0
- package/skills/wp-block-development/references/inner-blocks.md +25 -0
- package/skills/wp-block-development/references/registration.md +30 -0
- package/skills/wp-block-development/references/supports-and-wrappers.md +18 -0
- package/skills/wp-block-development/references/tooling-and-testing.md +21 -0
- package/skills/wp-block-development/scripts/list_blocks.mjs +121 -0
- package/skills/wp-block-themes/SKILL.md +118 -0
- package/skills/wp-block-themes/references/creating-new-block-theme.md +37 -0
- package/skills/wp-block-themes/references/debugging.md +24 -0
- package/skills/wp-block-themes/references/patterns.md +18 -0
- package/skills/wp-block-themes/references/style-variations.md +14 -0
- package/skills/wp-block-themes/references/templates-and-parts.md +16 -0
- package/skills/wp-block-themes/references/theme-json.md +59 -0
- package/skills/wp-block-themes/scripts/detect_block_themes.mjs +117 -0
- package/skills/wp-content/SKILL.md +103 -0
- package/skills/wp-content/references/content-templates.md +230 -0
- package/skills/wp-content/references/seo-optimization.md +169 -0
- package/skills/wp-deploy/SKILL.md +52 -0
- package/skills/wp-deploy/references/hostinger-deploy.md +51 -0
- package/skills/wp-deploy/references/ssh-deploy.md +63 -0
- package/skills/wp-interactivity-api/SKILL.md +181 -0
- package/skills/wp-interactivity-api/references/debugging.md +29 -0
- package/skills/wp-interactivity-api/references/directives-quickref.md +30 -0
- package/skills/wp-interactivity-api/references/server-side-rendering.md +310 -0
- package/skills/wp-migrate/SKILL.md +100 -0
- package/skills/wp-migrate/references/cross-platform.md +104 -0
- package/skills/wp-migrate/references/hostinger-migration.md +86 -0
- package/skills/wp-performance/SKILL.md +148 -0
- package/skills/wp-performance/references/autoload-options.md +24 -0
- package/skills/wp-performance/references/cron.md +20 -0
- package/skills/wp-performance/references/database.md +20 -0
- package/skills/wp-performance/references/http-api.md +15 -0
- package/skills/wp-performance/references/measurement.md +21 -0
- package/skills/wp-performance/references/object-cache.md +24 -0
- package/skills/wp-performance/references/query-monitor-headless.md +38 -0
- package/skills/wp-performance/references/server-timing.md +22 -0
- package/skills/wp-performance/references/wp-cli-doctor.md +24 -0
- package/skills/wp-performance/references/wp-cli-profile.md +32 -0
- package/skills/wp-performance/scripts/perf_inspect.mjs +128 -0
- package/skills/wp-phpstan/SKILL.md +99 -0
- package/skills/wp-phpstan/references/configuration.md +52 -0
- package/skills/wp-phpstan/references/third-party-classes.md +76 -0
- package/skills/wp-phpstan/references/wordpress-annotations.md +124 -0
- package/skills/wp-phpstan/scripts/phpstan_inspect.mjs +263 -0
- package/skills/wp-playground/SKILL.md +103 -0
- package/skills/wp-playground/references/blueprints.md +36 -0
- package/skills/wp-playground/references/cli-commands.md +39 -0
- package/skills/wp-playground/references/debugging.md +16 -0
- package/skills/wp-plugin-development/SKILL.md +114 -0
- package/skills/wp-plugin-development/references/data-and-cron.md +19 -0
- package/skills/wp-plugin-development/references/debugging.md +19 -0
- package/skills/wp-plugin-development/references/lifecycle.md +33 -0
- package/skills/wp-plugin-development/references/security.md +29 -0
- package/skills/wp-plugin-development/references/settings-api.md +22 -0
- package/skills/wp-plugin-development/references/structure.md +16 -0
- package/skills/wp-plugin-development/scripts/detect_plugins.mjs +122 -0
- package/skills/wp-project-triage/SKILL.md +40 -0
- package/skills/wp-project-triage/references/triage.schema.json +143 -0
- package/skills/wp-project-triage/scripts/detect_wp_project.mjs +592 -0
- package/skills/wp-rest-api/SKILL.md +116 -0
- package/skills/wp-rest-api/references/authentication.md +18 -0
- package/skills/wp-rest-api/references/custom-content-types.md +20 -0
- package/skills/wp-rest-api/references/discovery-and-params.md +20 -0
- package/skills/wp-rest-api/references/responses-and-fields.md +30 -0
- package/skills/wp-rest-api/references/routes-and-endpoints.md +36 -0
- package/skills/wp-rest-api/references/schema.md +22 -0
- package/skills/wp-wpcli-and-ops/SKILL.md +125 -0
- package/skills/wp-wpcli-and-ops/references/automation.md +30 -0
- package/skills/wp-wpcli-and-ops/references/cron-and-cache.md +23 -0
- package/skills/wp-wpcli-and-ops/references/debugging.md +17 -0
- package/skills/wp-wpcli-and-ops/references/multisite.md +22 -0
- package/skills/wp-wpcli-and-ops/references/packages-and-updates.md +22 -0
- package/skills/wp-wpcli-and-ops/references/safety.md +30 -0
- package/skills/wp-wpcli-and-ops/references/search-replace.md +40 -0
- package/skills/wp-wpcli-and-ops/scripts/wpcli_inspect.mjs +90 -0
- package/skills/wpds/SKILL.md +60 -0
- package/skills/wpds/references/wpds-mcp-setup.md +59 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
declare const listContentSchema: z.ZodObject<{
|
|
4
|
+
content_type: z.ZodString;
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
search: z.ZodOptional<z.ZodString>;
|
|
8
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
9
|
+
status: z.ZodOptional<z.ZodString>;
|
|
10
|
+
author: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>>;
|
|
11
|
+
categories: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>>;
|
|
12
|
+
tags: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>>;
|
|
13
|
+
parent: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
orderby: z.ZodOptional<z.ZodString>;
|
|
15
|
+
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
16
|
+
after: z.ZodOptional<z.ZodString>;
|
|
17
|
+
before: z.ZodOptional<z.ZodString>;
|
|
18
|
+
_embed: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
_fields: z.ZodOptional<z.ZodString>;
|
|
20
|
+
include_pagination: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
content_type: string;
|
|
23
|
+
page?: number | undefined;
|
|
24
|
+
per_page?: number | undefined;
|
|
25
|
+
search?: string | undefined;
|
|
26
|
+
slug?: string | undefined;
|
|
27
|
+
status?: string | undefined;
|
|
28
|
+
author?: number | number[] | undefined;
|
|
29
|
+
categories?: number | number[] | undefined;
|
|
30
|
+
tags?: number | number[] | undefined;
|
|
31
|
+
parent?: number | undefined;
|
|
32
|
+
orderby?: string | undefined;
|
|
33
|
+
order?: "asc" | "desc" | undefined;
|
|
34
|
+
after?: string | undefined;
|
|
35
|
+
before?: string | undefined;
|
|
36
|
+
_embed?: boolean | undefined;
|
|
37
|
+
_fields?: string | undefined;
|
|
38
|
+
include_pagination?: boolean | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
content_type: string;
|
|
41
|
+
page?: number | undefined;
|
|
42
|
+
per_page?: number | undefined;
|
|
43
|
+
search?: string | undefined;
|
|
44
|
+
slug?: string | undefined;
|
|
45
|
+
status?: string | undefined;
|
|
46
|
+
author?: number | number[] | undefined;
|
|
47
|
+
categories?: number | number[] | undefined;
|
|
48
|
+
tags?: number | number[] | undefined;
|
|
49
|
+
parent?: number | undefined;
|
|
50
|
+
orderby?: string | undefined;
|
|
51
|
+
order?: "asc" | "desc" | undefined;
|
|
52
|
+
after?: string | undefined;
|
|
53
|
+
before?: string | undefined;
|
|
54
|
+
_embed?: boolean | undefined;
|
|
55
|
+
_fields?: string | undefined;
|
|
56
|
+
include_pagination?: boolean | undefined;
|
|
57
|
+
}>;
|
|
58
|
+
declare const getContentSchema: z.ZodObject<{
|
|
59
|
+
content_type: z.ZodString;
|
|
60
|
+
id: z.ZodNumber;
|
|
61
|
+
_embed: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
_fields: z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
content_type: string;
|
|
65
|
+
id: number;
|
|
66
|
+
_embed?: boolean | undefined;
|
|
67
|
+
_fields?: string | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
content_type: string;
|
|
70
|
+
id: number;
|
|
71
|
+
_embed?: boolean | undefined;
|
|
72
|
+
_fields?: string | undefined;
|
|
73
|
+
}>;
|
|
74
|
+
declare const createContentSchema: z.ZodObject<{
|
|
75
|
+
content_type: z.ZodString;
|
|
76
|
+
title: z.ZodString;
|
|
77
|
+
content: z.ZodString;
|
|
78
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
79
|
+
excerpt: z.ZodOptional<z.ZodString>;
|
|
80
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
81
|
+
author: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
parent: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
84
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
85
|
+
featured_media: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
format: z.ZodOptional<z.ZodString>;
|
|
87
|
+
menu_order: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
89
|
+
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
content_type: string;
|
|
92
|
+
status: string;
|
|
93
|
+
title: string;
|
|
94
|
+
content: string;
|
|
95
|
+
slug?: string | undefined;
|
|
96
|
+
author?: number | undefined;
|
|
97
|
+
categories?: number[] | undefined;
|
|
98
|
+
tags?: number[] | undefined;
|
|
99
|
+
parent?: number | undefined;
|
|
100
|
+
excerpt?: string | undefined;
|
|
101
|
+
featured_media?: number | undefined;
|
|
102
|
+
format?: string | undefined;
|
|
103
|
+
menu_order?: number | undefined;
|
|
104
|
+
meta?: Record<string, any> | undefined;
|
|
105
|
+
custom_fields?: Record<string, any> | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
content_type: string;
|
|
108
|
+
title: string;
|
|
109
|
+
content: string;
|
|
110
|
+
slug?: string | undefined;
|
|
111
|
+
status?: string | undefined;
|
|
112
|
+
author?: number | undefined;
|
|
113
|
+
categories?: number[] | undefined;
|
|
114
|
+
tags?: number[] | undefined;
|
|
115
|
+
parent?: number | undefined;
|
|
116
|
+
excerpt?: string | undefined;
|
|
117
|
+
featured_media?: number | undefined;
|
|
118
|
+
format?: string | undefined;
|
|
119
|
+
menu_order?: number | undefined;
|
|
120
|
+
meta?: Record<string, any> | undefined;
|
|
121
|
+
custom_fields?: Record<string, any> | undefined;
|
|
122
|
+
}>;
|
|
123
|
+
declare const updateContentSchema: z.ZodObject<{
|
|
124
|
+
content_type: z.ZodString;
|
|
125
|
+
id: z.ZodNumber;
|
|
126
|
+
title: z.ZodOptional<z.ZodString>;
|
|
127
|
+
content: z.ZodOptional<z.ZodString>;
|
|
128
|
+
status: z.ZodOptional<z.ZodString>;
|
|
129
|
+
excerpt: z.ZodOptional<z.ZodString>;
|
|
130
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
131
|
+
author: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
parent: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
134
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
135
|
+
featured_media: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
format: z.ZodOptional<z.ZodString>;
|
|
137
|
+
menu_order: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
139
|
+
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
content_type: string;
|
|
142
|
+
id: number;
|
|
143
|
+
slug?: string | undefined;
|
|
144
|
+
status?: string | undefined;
|
|
145
|
+
author?: number | undefined;
|
|
146
|
+
categories?: number[] | undefined;
|
|
147
|
+
tags?: number[] | undefined;
|
|
148
|
+
parent?: number | undefined;
|
|
149
|
+
title?: string | undefined;
|
|
150
|
+
content?: string | undefined;
|
|
151
|
+
excerpt?: string | undefined;
|
|
152
|
+
featured_media?: number | undefined;
|
|
153
|
+
format?: string | undefined;
|
|
154
|
+
menu_order?: number | undefined;
|
|
155
|
+
meta?: Record<string, any> | undefined;
|
|
156
|
+
custom_fields?: Record<string, any> | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
content_type: string;
|
|
159
|
+
id: number;
|
|
160
|
+
slug?: string | undefined;
|
|
161
|
+
status?: string | undefined;
|
|
162
|
+
author?: number | undefined;
|
|
163
|
+
categories?: number[] | undefined;
|
|
164
|
+
tags?: number[] | undefined;
|
|
165
|
+
parent?: number | undefined;
|
|
166
|
+
title?: string | undefined;
|
|
167
|
+
content?: string | undefined;
|
|
168
|
+
excerpt?: string | undefined;
|
|
169
|
+
featured_media?: number | undefined;
|
|
170
|
+
format?: string | undefined;
|
|
171
|
+
menu_order?: number | undefined;
|
|
172
|
+
meta?: Record<string, any> | undefined;
|
|
173
|
+
custom_fields?: Record<string, any> | undefined;
|
|
174
|
+
}>;
|
|
175
|
+
declare const deleteContentSchema: z.ZodObject<{
|
|
176
|
+
content_type: z.ZodString;
|
|
177
|
+
id: z.ZodNumber;
|
|
178
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
content_type: string;
|
|
181
|
+
id: number;
|
|
182
|
+
force?: boolean | undefined;
|
|
183
|
+
}, {
|
|
184
|
+
content_type: string;
|
|
185
|
+
id: number;
|
|
186
|
+
force?: boolean | undefined;
|
|
187
|
+
}>;
|
|
188
|
+
declare const discoverContentTypesSchema: z.ZodObject<{
|
|
189
|
+
refresh_cache: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
+
}, "strip", z.ZodTypeAny, {
|
|
191
|
+
refresh_cache?: boolean | undefined;
|
|
192
|
+
}, {
|
|
193
|
+
refresh_cache?: boolean | undefined;
|
|
194
|
+
}>;
|
|
195
|
+
declare const findContentByUrlSchema: z.ZodObject<{
|
|
196
|
+
url: z.ZodString;
|
|
197
|
+
update_fields: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
title: z.ZodOptional<z.ZodString>;
|
|
199
|
+
content: z.ZodOptional<z.ZodString>;
|
|
200
|
+
status: z.ZodOptional<z.ZodString>;
|
|
201
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
202
|
+
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
203
|
+
}, "strip", z.ZodTypeAny, {
|
|
204
|
+
status?: string | undefined;
|
|
205
|
+
title?: string | undefined;
|
|
206
|
+
content?: string | undefined;
|
|
207
|
+
meta?: Record<string, any> | undefined;
|
|
208
|
+
custom_fields?: Record<string, any> | undefined;
|
|
209
|
+
}, {
|
|
210
|
+
status?: string | undefined;
|
|
211
|
+
title?: string | undefined;
|
|
212
|
+
content?: string | undefined;
|
|
213
|
+
meta?: Record<string, any> | undefined;
|
|
214
|
+
custom_fields?: Record<string, any> | undefined;
|
|
215
|
+
}>>;
|
|
216
|
+
}, "strip", z.ZodTypeAny, {
|
|
217
|
+
url: string;
|
|
218
|
+
update_fields?: {
|
|
219
|
+
status?: string | undefined;
|
|
220
|
+
title?: string | undefined;
|
|
221
|
+
content?: string | undefined;
|
|
222
|
+
meta?: Record<string, any> | undefined;
|
|
223
|
+
custom_fields?: Record<string, any> | undefined;
|
|
224
|
+
} | undefined;
|
|
225
|
+
}, {
|
|
226
|
+
url: string;
|
|
227
|
+
update_fields?: {
|
|
228
|
+
status?: string | undefined;
|
|
229
|
+
title?: string | undefined;
|
|
230
|
+
content?: string | undefined;
|
|
231
|
+
meta?: Record<string, any> | undefined;
|
|
232
|
+
custom_fields?: Record<string, any> | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
}>;
|
|
235
|
+
declare const getContentBySlugSchema: z.ZodObject<{
|
|
236
|
+
slug: z.ZodString;
|
|
237
|
+
content_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
239
|
+
slug: string;
|
|
240
|
+
content_types?: string[] | undefined;
|
|
241
|
+
}, {
|
|
242
|
+
slug: string;
|
|
243
|
+
content_types?: string[] | undefined;
|
|
244
|
+
}>;
|
|
245
|
+
type ListContentParams = z.infer<typeof listContentSchema>;
|
|
246
|
+
type GetContentParams = z.infer<typeof getContentSchema>;
|
|
247
|
+
type CreateContentParams = z.infer<typeof createContentSchema>;
|
|
248
|
+
type UpdateContentParams = z.infer<typeof updateContentSchema>;
|
|
249
|
+
type DeleteContentParams = z.infer<typeof deleteContentSchema>;
|
|
250
|
+
type DiscoverContentTypesParams = z.infer<typeof discoverContentTypesSchema>;
|
|
251
|
+
type FindContentByUrlParams = z.infer<typeof findContentByUrlSchema>;
|
|
252
|
+
type GetContentBySlugParams = z.infer<typeof getContentBySlugSchema>;
|
|
253
|
+
export declare const unifiedContentTools: Tool[];
|
|
254
|
+
export declare const unifiedContentHandlers: {
|
|
255
|
+
list_content: (params: ListContentParams) => Promise<{
|
|
256
|
+
toolResult: {
|
|
257
|
+
content: {
|
|
258
|
+
type: string;
|
|
259
|
+
text: string;
|
|
260
|
+
}[];
|
|
261
|
+
isError: boolean;
|
|
262
|
+
};
|
|
263
|
+
}>;
|
|
264
|
+
get_content: (params: GetContentParams) => Promise<{
|
|
265
|
+
toolResult: {
|
|
266
|
+
content: {
|
|
267
|
+
type: string;
|
|
268
|
+
text: string;
|
|
269
|
+
}[];
|
|
270
|
+
isError: boolean;
|
|
271
|
+
};
|
|
272
|
+
}>;
|
|
273
|
+
create_content: (params: CreateContentParams) => Promise<{
|
|
274
|
+
toolResult: {
|
|
275
|
+
content: {
|
|
276
|
+
type: string;
|
|
277
|
+
text: string;
|
|
278
|
+
}[];
|
|
279
|
+
isError: boolean;
|
|
280
|
+
};
|
|
281
|
+
}>;
|
|
282
|
+
update_content: (params: UpdateContentParams) => Promise<{
|
|
283
|
+
toolResult: {
|
|
284
|
+
content: {
|
|
285
|
+
type: string;
|
|
286
|
+
text: string;
|
|
287
|
+
}[];
|
|
288
|
+
isError: boolean;
|
|
289
|
+
};
|
|
290
|
+
}>;
|
|
291
|
+
delete_content: (params: DeleteContentParams) => Promise<{
|
|
292
|
+
toolResult: {
|
|
293
|
+
content: {
|
|
294
|
+
type: string;
|
|
295
|
+
text: string;
|
|
296
|
+
}[];
|
|
297
|
+
isError: boolean;
|
|
298
|
+
};
|
|
299
|
+
}>;
|
|
300
|
+
discover_content_types: (params: DiscoverContentTypesParams) => Promise<{
|
|
301
|
+
toolResult: {
|
|
302
|
+
content: {
|
|
303
|
+
type: string;
|
|
304
|
+
text: string;
|
|
305
|
+
}[];
|
|
306
|
+
isError: boolean;
|
|
307
|
+
};
|
|
308
|
+
}>;
|
|
309
|
+
find_content_by_url: (params: FindContentByUrlParams) => Promise<{
|
|
310
|
+
toolResult: {
|
|
311
|
+
content: {
|
|
312
|
+
type: string;
|
|
313
|
+
text: string;
|
|
314
|
+
}[];
|
|
315
|
+
isError: boolean;
|
|
316
|
+
};
|
|
317
|
+
}>;
|
|
318
|
+
get_content_by_slug: (params: GetContentBySlugParams) => Promise<{
|
|
319
|
+
toolResult: {
|
|
320
|
+
content: {
|
|
321
|
+
type: string;
|
|
322
|
+
text: string;
|
|
323
|
+
}[];
|
|
324
|
+
isError: boolean;
|
|
325
|
+
};
|
|
326
|
+
}>;
|
|
327
|
+
};
|
|
328
|
+
export {};
|