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.
@@ -4,7 +4,7 @@ import {
4
4
  } from "./cli-hv2yedw2.js";
5
5
  import {
6
6
  ADD_KIND_IDS
7
- } from "./cli-fys8vm2t.js";
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.22.10",
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.22.10",
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=A8F5341830BE069D64756E2164756E21
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-spdrcg8k.js";
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-fys8vm2t.js";
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-h96cft88.js");
2463
+ const { wpTypiaCommands } = await import("./command-list-aqrkx021.js");
2464
2464
  const cli = await createCLI({
2465
2465
  ...bunliConfig,
2466
2466
  description: package_default.description,