wp-typia 0.22.10 → 0.23.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/README.md +5 -0
- package/bin/routing-metadata.generated.js +16 -0
- package/dist-bunli/.bunli/commands.gen.js +4630 -1298
- package/dist-bunli/{cli-2x49egkd.js → cli-1meywwsy.js} +134 -108
- package/dist-bunli/{cli-fys8vm2t.js → cli-43mx1vfb.js} +4 -1
- package/dist-bunli/{cli-tjf0070f.js → cli-9npd9was.js} +1 -1
- package/dist-bunli/{cli-add-8rvmezy0.js → cli-add-21bvpfgw.js} +4545 -2273
- package/dist-bunli/{cli-2mswafd6.js → cli-agywa5n6.js} +1 -1
- package/dist-bunli/{cli-1k61xyn2.js → cli-c2acv5dv.js} +1 -1
- package/dist-bunli/{cli-doctor-5m6xyx9q.js → cli-doctor-wy2yjsge.js} +241 -142
- package/dist-bunli/{cli-init-qv3zxmvc.js → cli-init-xnsbxncv.js} +15 -5
- package/dist-bunli/{cli-rwjkqjhs.js → cli-j8et6jvr.js} +37 -2
- package/dist-bunli/{cli-scaffold-b1ex2y80.js → cli-scaffold-zhp2ym8z.js} +6 -6
- package/dist-bunli/{cli-3fzqhpx9.js → cli-ts9thts5.js} +541 -14
- package/dist-bunli/{cli-spdrcg8k.js → cli-z5qkx2pn.js} +83 -4
- package/dist-bunli/cli.js +3 -3
- package/dist-bunli/{command-list-h96cft88.js → command-list-aqrkx021.js} +326 -57
- package/dist-bunli/{migrations-7g9rag5d.js → migrations-bx0yvc2v.js} +3 -3
- package/dist-bunli/node-cli.js +384 -44
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./cli-hv2yedw2.js";
|
|
5
5
|
import {
|
|
6
6
|
ADD_KIND_IDS
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-43mx1vfb.js";
|
|
8
8
|
import {
|
|
9
9
|
CLI_DIAGNOSTIC_CODES,
|
|
10
10
|
createCliCommandError,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
// package.json
|
|
15
15
|
var package_default = {
|
|
16
16
|
name: "wp-typia",
|
|
17
|
-
version: "0.
|
|
17
|
+
version: "0.23.0",
|
|
18
18
|
description: "Canonical CLI package for wp-typia scaffolding and project workflows",
|
|
19
19
|
packageManager: "bun@1.3.11",
|
|
20
20
|
type: "module",
|
|
@@ -84,7 +84,7 @@ var package_default = {
|
|
|
84
84
|
"@bunli/tui": "0.6.0",
|
|
85
85
|
"@bunli/utils": "0.6.0",
|
|
86
86
|
"@wp-typia/api-client": "^0.4.5",
|
|
87
|
-
"@wp-typia/project-tools": "0.
|
|
87
|
+
"@wp-typia/project-tools": "0.23.0",
|
|
88
88
|
"better-result": "^2.7.0",
|
|
89
89
|
react: "^19.2.5",
|
|
90
90
|
"react-dom": "^19.2.5",
|
|
@@ -165,10 +165,22 @@ var ADD_OPTION_METADATA = {
|
|
|
165
165
|
description: "Target block attribute for end-to-end binding-source workflows.",
|
|
166
166
|
type: "string"
|
|
167
167
|
},
|
|
168
|
+
auth: {
|
|
169
|
+
description: "Auth intent for manual REST contract workflows (public, authenticated, or public-write-protected).",
|
|
170
|
+
type: "string"
|
|
171
|
+
},
|
|
168
172
|
block: {
|
|
169
173
|
description: "Target block slug for variation, style, and end-to-end binding-source workflows.",
|
|
170
174
|
type: "string"
|
|
171
175
|
},
|
|
176
|
+
"controller-class": {
|
|
177
|
+
description: "Generated REST resource controller class used for route callbacks.",
|
|
178
|
+
type: "string"
|
|
179
|
+
},
|
|
180
|
+
"controller-extends": {
|
|
181
|
+
description: "Optional base class for generated REST resource controller wrappers.",
|
|
182
|
+
type: "string"
|
|
183
|
+
},
|
|
172
184
|
"data-storage": {
|
|
173
185
|
description: "Persistence storage mode for persistence-capable templates.",
|
|
174
186
|
type: "string"
|
|
@@ -194,6 +206,24 @@ var ADD_OPTION_METADATA = {
|
|
|
194
206
|
description: "Compound-only InnerBlocks preset (freeform, ordered, horizontal, locked-structure).",
|
|
195
207
|
type: "string"
|
|
196
208
|
},
|
|
209
|
+
manual: {
|
|
210
|
+
argumentKind: "flag",
|
|
211
|
+
description: "Create a type-only manual REST contract without PHP route/controller files.",
|
|
212
|
+
type: "boolean"
|
|
213
|
+
},
|
|
214
|
+
"hide-from-rest": {
|
|
215
|
+
argumentKind: "flag",
|
|
216
|
+
description: "Keep a generated post-meta contract out of WordPress REST/editor responses.",
|
|
217
|
+
type: "boolean"
|
|
218
|
+
},
|
|
219
|
+
"meta-key": {
|
|
220
|
+
description: "WordPress meta key for post-meta workflows; defaults to _<phpPrefix>_<name>.",
|
|
221
|
+
type: "string"
|
|
222
|
+
},
|
|
223
|
+
method: {
|
|
224
|
+
description: "HTTP method for manual REST contract workflows (GET, POST, PUT, PATCH, or DELETE).",
|
|
225
|
+
type: "string"
|
|
226
|
+
},
|
|
197
227
|
methods: {
|
|
198
228
|
description: "Comma-separated REST resource methods for rest-resource workflows.",
|
|
199
229
|
type: "string"
|
|
@@ -202,14 +232,50 @@ var ADD_OPTION_METADATA = {
|
|
|
202
232
|
description: "REST namespace for rest-resource and ai-feature workflows.",
|
|
203
233
|
type: "string"
|
|
204
234
|
},
|
|
235
|
+
"permission-callback": {
|
|
236
|
+
description: "PHP permission callback for generated REST resource route registrations.",
|
|
237
|
+
type: "string"
|
|
238
|
+
},
|
|
239
|
+
"post-type": {
|
|
240
|
+
description: "WordPress post type key for post-meta workflows.",
|
|
241
|
+
type: "string"
|
|
242
|
+
},
|
|
205
243
|
"persistence-policy": {
|
|
206
244
|
description: "Persistence write policy for persistence-capable templates.",
|
|
207
245
|
type: "string"
|
|
208
246
|
},
|
|
247
|
+
path: {
|
|
248
|
+
description: "Route path pattern for manual REST contract workflows, relative to the REST namespace.",
|
|
249
|
+
type: "string"
|
|
250
|
+
},
|
|
209
251
|
position: {
|
|
210
252
|
description: "Hook position for hooked-block workflows.",
|
|
211
253
|
type: "string"
|
|
212
254
|
},
|
|
255
|
+
"query-type": {
|
|
256
|
+
description: "Exported TypeScript query type for manual REST contract workflows.",
|
|
257
|
+
type: "string"
|
|
258
|
+
},
|
|
259
|
+
"response-type": {
|
|
260
|
+
description: "Exported TypeScript response type for manual REST contract workflows.",
|
|
261
|
+
type: "string"
|
|
262
|
+
},
|
|
263
|
+
"route-pattern": {
|
|
264
|
+
description: "Generated REST resource item route pattern relative to the REST namespace.",
|
|
265
|
+
type: "string"
|
|
266
|
+
},
|
|
267
|
+
"secret-field": {
|
|
268
|
+
description: "Write-only request body field for manual settings REST contracts.",
|
|
269
|
+
type: "string"
|
|
270
|
+
},
|
|
271
|
+
"secret-state-field": {
|
|
272
|
+
description: "Masked response boolean field for --secret-field; defaults to has<SecretField>.",
|
|
273
|
+
type: "string"
|
|
274
|
+
},
|
|
275
|
+
service: {
|
|
276
|
+
description: "Optional local service starter for integration-env workflows (none or docker-compose).",
|
|
277
|
+
type: "string"
|
|
278
|
+
},
|
|
213
279
|
slot: {
|
|
214
280
|
description: "Document editor shell slot for editor-plugin workflows (sidebar or document-setting-panel).",
|
|
215
281
|
type: "string"
|
|
@@ -222,9 +288,22 @@ var ADD_OPTION_METADATA = {
|
|
|
222
288
|
description: "Optional built-in block family for the new block; interactive flows let you choose it when omitted and non-interactive runs default to basic.",
|
|
223
289
|
type: "string"
|
|
224
290
|
},
|
|
291
|
+
type: {
|
|
292
|
+
description: "Exported TypeScript type or interface name for standalone contract workflows.",
|
|
293
|
+
type: "string"
|
|
294
|
+
},
|
|
295
|
+
"body-type": {
|
|
296
|
+
description: "Exported TypeScript body type for manual REST contract workflows.",
|
|
297
|
+
type: "string"
|
|
298
|
+
},
|
|
225
299
|
to: {
|
|
226
300
|
description: "Target workspace block slug or full block name for transform workflows.",
|
|
227
301
|
type: "string"
|
|
302
|
+
},
|
|
303
|
+
"wp-env": {
|
|
304
|
+
argumentKind: "flag",
|
|
305
|
+
description: "Add a local @wordpress/env preset for integration-env workflows.",
|
|
306
|
+
type: "boolean"
|
|
228
307
|
}
|
|
229
308
|
};
|
|
230
309
|
// src/command-options/create.ts
|
|
@@ -1024,4 +1103,4 @@ function createPlugin(input) {
|
|
|
1024
1103
|
}
|
|
1025
1104
|
export { createPlugin, package_default, collectPositionalIndexes, findFirstPositionalIndex, ADD_OPTION_METADATA, CREATE_OPTION_METADATA, DOCTOR_OPTION_METADATA, GLOBAL_OPTION_METADATA, INIT_OPTION_METADATA, MCP_OPTION_METADATA, MIGRATE_OPTION_METADATA, SYNC_OPTION_METADATA, TEMPLATES_OPTION_METADATA, COMMAND_OPTION_METADATA_BY_GROUP, ALL_COMMAND_OPTION_METADATA, buildCommandOptions, collectOptionNamesByType, buildCommandOptionParser, COMMAND_ROUTING_METADATA, createMissingOptionValueError, extractKnownOptionValuesFromArgv, resolveCommandOptionValues, normalizeCliOutputFormatArgv, validateCliOutputFormatArgv, prefersStructuredCliOutput, emitCliDiagnosticFailure, writeStructuredCliDiagnosticError, formatAddKindList, formatAddKindUsagePlaceholder, WP_TYPIA_CANONICAL_CREATE_USAGE, WP_TYPIA_RESERVED_TOP_LEVEL_COMMAND_NAMES, WP_TYPIA_TOP_LEVEL_COMMAND_NAMES, WP_TYPIA_COMMAND_OPTION_GROUP_NAMES_BY_TOP_LEVEL_COMMAND, WP_TYPIA_CONFIG_SOURCES, mergeWpTypiaUserConfig, loadWpTypiaUserConfigFromSource, loadWpTypiaUserConfig, getCreateDefaults, getAddBlockDefaults, getMcpSchemaSources };
|
|
1026
1105
|
|
|
1027
|
-
//# debugId=
|
|
1106
|
+
//# debugId=7C44F3F606B3311C64756E2164756E21
|
package/dist-bunli/cli.js
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
package_default,
|
|
23
23
|
validateCliOutputFormatArgv,
|
|
24
24
|
writeStructuredCliDiagnosticError
|
|
25
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-z5qkx2pn.js";
|
|
26
26
|
import"./cli-03j0axbt.js";
|
|
27
27
|
import {
|
|
28
28
|
GLOBAL_FLAGS,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
} from "./cli-hv2yedw2.js";
|
|
38
38
|
import"./cli-ac2ebaf8.js";
|
|
39
39
|
import"./cli-6v0pcxw6.js";
|
|
40
|
-
import"./cli-
|
|
40
|
+
import"./cli-43mx1vfb.js";
|
|
41
41
|
import {
|
|
42
42
|
CLI_DIAGNOSTIC_CODES,
|
|
43
43
|
createCliDiagnosticCodeError
|
|
@@ -2460,7 +2460,7 @@ async function formatCliError(error) {
|
|
|
2460
2460
|
}
|
|
2461
2461
|
async function createWpTypiaCli(options = {}) {
|
|
2462
2462
|
applyStandaloneSupportLayoutEnv();
|
|
2463
|
-
const { wpTypiaCommands } = await import("./command-list-
|
|
2463
|
+
const { wpTypiaCommands } = await import("./command-list-aqrkx021.js");
|
|
2464
2464
|
const cli = await createCLI({
|
|
2465
2465
|
...bunliConfig,
|
|
2466
2466
|
description: package_default.description,
|