wp-typia 0.24.2 → 0.24.3

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.
@@ -11,7 +11,7 @@ import {
11
11
  } from "./cli-8hxf9qw6.js";
12
12
  import {
13
13
  pathExists
14
- } from "./cli-kbqztfkt.js";
14
+ } from "./cli-fv4h3ydt.js";
15
15
  import {
16
16
  createManagedTempRoot
17
17
  } from "./cli-t73q5aqz.js";
@@ -14,7 +14,7 @@ import {
14
14
  // package.json
15
15
  var package_default = {
16
16
  name: "wp-typia",
17
- version: "0.24.2",
17
+ version: "0.24.3",
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.24.2",
87
+ "@wp-typia/project-tools": "0.24.3",
88
88
  "better-result": "^2.7.0",
89
89
  react: "^19.2.5",
90
90
  "react-dom": "^19.2.5",
@@ -1228,4 +1228,4 @@ function createPlugin(input) {
1228
1228
  }
1229
1229
  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 };
1230
1230
 
1231
- //# debugId=6550DDC468E315F664756E2164756E21
1231
+ //# debugId=C92E20FC0E312E8D64756E2164756E21
@@ -4,7 +4,7 @@ import {
4
4
  } from "./cli-8hxf9qw6.js";
5
5
  import {
6
6
  getOptionalNodeErrorCode
7
- } from "./cli-kbqztfkt.js";
7
+ } from "./cli-fv4h3ydt.js";
8
8
  import {
9
9
  safeJsonParse
10
10
  } from "./cli-ccax7s0s.js";
@@ -24,7 +24,7 @@ import {
24
24
  scaffoldProject,
25
25
  syncPersistenceRestArtifacts,
26
26
  updatePluginHeaderCompatibility
27
- } from "./cli-4eqznv15.js";
27
+ } from "./cli-kfm9mm68.js";
28
28
  import {
29
29
  parseTemplateLocator,
30
30
  require_semver
@@ -53,7 +53,7 @@ import {
53
53
  loadPostMetaBindingFields,
54
54
  maskTypeScriptCommentsAndLiterals
55
55
  } from "./cli-z48frc8t.js";
56
- import"./cli-vxd8eyax.js";
56
+ import"./cli-377p86mf.js";
57
57
  import {
58
58
  DEFAULT_WORDPRESS_ABILITIES_VERSION,
59
59
  DEFAULT_WORDPRESS_CORE_ABILITIES_VERSION,
@@ -63,13 +63,13 @@ import {
63
63
  DEFAULT_WP_TYPIA_DATAVIEWS_VERSION,
64
64
  getPackageVersions,
65
65
  resolveManagedPackageVersionRange
66
- } from "./cli-wfvf3tv1.js";
66
+ } from "./cli-84c7wff4.js";
67
67
  import {
68
68
  SHARED_WORKSPACE_TEMPLATE_ROOT
69
69
  } from "./cli-8hxf9qw6.js";
70
70
  import {
71
71
  snapshotProjectVersion
72
- } from "./cli-6ys6d16y.js";
72
+ } from "./cli-tj7ajdvf.js";
73
73
  import {
74
74
  ensureMigrationDirectories,
75
75
  parseMigrationConfig,
@@ -146,7 +146,7 @@ import {
146
146
  toPascalCase,
147
147
  toSnakeCase,
148
148
  toTitleCase
149
- } from "./cli-kbqztfkt.js";
149
+ } from "./cli-fv4h3ydt.js";
150
150
  import"./cli-cvxvcw7c.js";
151
151
  import {
152
152
  createManagedTempRoot
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  getBuiltInTemplateLayerDirs,
13
13
  isOmittableBuiltInTemplateLayerDir
14
- } from "./cli-vxd8eyax.js";
14
+ } from "./cli-377p86mf.js";
15
15
  import {
16
16
  isBuiltInTemplateId,
17
17
  listTemplates
@@ -33,7 +33,7 @@ import {
33
33
  resolveEditorPluginSlotAlias,
34
34
  resolvePatternCatalogContentFile,
35
35
  validatePatternCatalog
36
- } from "./cli-kbqztfkt.js";
36
+ } from "./cli-fv4h3ydt.js";
37
37
  import"./cli-cvxvcw7c.js";
38
38
  import"./cli-t73q5aqz.js";
39
39
  import"./cli-bajwv85z.js";
@@ -171831,36 +171831,6 @@ function assertValidIntegrationEnvService(service = "none") {
171831
171831
  throw new Error(`Integration environment service must be one of: ${INTEGRATION_ENV_SERVICE_IDS.join(", ")}.`);
171832
171832
  }
171833
171833
 
171834
- // ../wp-typia-project-tools/src/runtime/fs-async.ts
171835
- import { promises as fsp } from "fs";
171836
- async function pathExists(filePath) {
171837
- try {
171838
- await fsp.access(filePath);
171839
- return true;
171840
- } catch {
171841
- return false;
171842
- }
171843
- }
171844
- async function readOptionalUtf8File(filePath) {
171845
- try {
171846
- return await fsp.readFile(filePath, "utf8");
171847
- } catch (error) {
171848
- if (isFileNotFoundError(error)) {
171849
- return null;
171850
- }
171851
- throw error;
171852
- }
171853
- }
171854
- function getNodeErrorCode(error) {
171855
- return getOptionalNodeErrorCode(error) ?? "";
171856
- }
171857
- function getOptionalNodeErrorCode(error) {
171858
- return typeof error === "object" && error !== null && "code" in error ? String(error.code) : undefined;
171859
- }
171860
- function isFileNotFoundError(error) {
171861
- return getOptionalNodeErrorCode(error) === "ENOENT";
171862
- }
171863
-
171864
171834
  // ../wp-typia-project-tools/src/runtime/cli-add-help.ts
171865
171835
  function formatAddHelpText() {
171866
171836
  return `Usage:
@@ -171914,6 +171884,38 @@ Notes:
171914
171884
  // ../wp-typia-project-tools/src/runtime/cli-add-filesystem.ts
171915
171885
  import { promises as fsp2 } from "fs";
171916
171886
  import path2 from "path";
171887
+
171888
+ // ../wp-typia-project-tools/src/runtime/fs-async.ts
171889
+ import { promises as fsp } from "fs";
171890
+ async function pathExists(filePath) {
171891
+ try {
171892
+ await fsp.access(filePath);
171893
+ return true;
171894
+ } catch {
171895
+ return false;
171896
+ }
171897
+ }
171898
+ async function readOptionalUtf8File(filePath) {
171899
+ try {
171900
+ return await fsp.readFile(filePath, "utf8");
171901
+ } catch (error) {
171902
+ if (isFileNotFoundError(error)) {
171903
+ return null;
171904
+ }
171905
+ throw error;
171906
+ }
171907
+ }
171908
+ function getNodeErrorCode(error) {
171909
+ return getOptionalNodeErrorCode(error) ?? "";
171910
+ }
171911
+ function getOptionalNodeErrorCode(error) {
171912
+ return typeof error === "object" && error !== null && "code" in error ? String(error.code) : undefined;
171913
+ }
171914
+ function isFileNotFoundError(error) {
171915
+ return getOptionalNodeErrorCode(error) === "ENOENT";
171916
+ }
171917
+
171918
+ // ../wp-typia-project-tools/src/runtime/cli-add-filesystem.ts
171917
171919
  function getWorkspaceBootstrapPath(workspace) {
171918
171920
  const workspaceBaseName = workspace.packageName.split("/").pop() ?? workspace.packageName;
171919
171921
  return path2.join(workspace.projectDir, `${workspaceBaseName}.php`);
@@ -173818,4 +173820,4 @@ async function appendWorkspaceInventoryEntries(projectDir, options) {
173818
173820
  }
173819
173821
  export { toKebabCase, toSnakeCase, toPascalCase, toCamelCase, toSegmentPascalCase, toTitleCase, validateBlockSlug, validateNamespace, normalizeBlockSlug, resolveNonEmptyNormalizedBlockSlug, buildBlockCssClassName, buildFrontendCssClassName, resolveScaffoldIdentifiers, PATTERN_SECTION_ROLE_PATTERN, PATTERN_CATALOG_SCOPE_IDS, PATTERN_TAG_PATTERN, isValidPatternThumbnailUrl, resolvePatternCatalogContentFile, validatePatternCatalog, formatPatternCatalogDiagnostics, REST_RESOURCE_METHOD_IDS, MANUAL_REST_CONTRACT_HTTP_METHOD_IDS, MANUAL_REST_CONTRACT_AUTH_IDS, EDITOR_PLUGIN_SLOT_IDS, resolveEditorPluginSlotAlias, ADD_BLOCK_TEMPLATE_IDS, suggestAddBlockTemplateId, HOOKED_BLOCK_POSITION_SET, HOOKED_BLOCK_ANCHOR_PATTERN, REST_RESOURCE_NAMESPACE_PATTERN, assertValidGeneratedSlug, assertValidTypeScriptIdentifier, resolveRestResourceNamespace, assertValidPostMetaPostType, resolvePostMetaKey, assertValidRestResourceMethods, resolveOptionalPhpCallbackReference, resolveOptionalPhpClassReference, assertValidManualRestContractHttpMethod, assertValidManualRestContractAuth, isGeneratedRestResourceRoutePatternCompatible, collectRestRouteNamedCaptureNames, resolveManualRestContractPathPattern, resolveGeneratedRestResourceRoutePattern, assertValidHookedBlockPosition, buildWorkspacePhpPrefix, isAddBlockTemplateId, quoteTsString, assertValidHookAnchor, assertValidEditorPluginSlot, assertValidIntegrationEnvService, pathExists, readOptionalUtf8File, getNodeErrorCode, getOptionalNodeErrorCode, isFileNotFoundError, getWorkspaceBootstrapPath, patchFile, readOptionalFile, snapshotWorkspaceFiles, rollbackWorkspaceMutation, resolveWorkspaceBlock, readWorkspaceBlockJson, getMutableBlockHooks, assertVariationDoesNotExist, assertBlockStyleDoesNotExist, assertBlockTransformDoesNotExist, assertPatternDoesNotExist, assertBindingSourceDoesNotExist, assertRestResourceDoesNotExist, assertPostMetaDoesNotExist, assertContractDoesNotExist, assertAdminViewDoesNotExist, assertAbilityDoesNotExist, assertAiFeatureDoesNotExist, assertEditorPluginDoesNotExist, formatAddHelpText, require_typescript, getPropertyNameText, readWorkspaceInventory, readWorkspaceInventoryAsync, getWorkspaceBlockSelectOptions, getWorkspaceBlockSelectOptionsAsync, escapeRegex, quotePhpString, hasPhpFunctionDefinition, hasPhpFunctionCall, findPhpFunctionRange, replacePhpFunctionDefinition, updateWorkspaceInventorySource, appendWorkspaceInventoryEntries };
173820
173822
 
173821
- //# debugId=9E60A37E69B52ED864756E2164756E21
173823
+ //# debugId=ECEDE0CAF67562F064756E2164756E21
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  getPackageVersions
4
- } from "./cli-wfvf3tv1.js";
4
+ } from "./cli-84c7wff4.js";
5
5
  import"./cli-8hxf9qw6.js";
6
6
  import {
7
7
  discoverMigrationInitLayout
@@ -13,7 +13,7 @@ import {
13
13
  snapshotWorkspaceFiles,
14
14
  toPascalCase,
15
15
  updateWorkspaceInventorySource
16
- } from "./cli-kbqztfkt.js";
16
+ } from "./cli-fv4h3ydt.js";
17
17
  import"./cli-cvxvcw7c.js";
18
18
  import"./cli-bajwv85z.js";
19
19
  import {