wp-typia 0.22.6 → 0.22.7

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.
@@ -1734,11 +1734,11 @@ var require_buffer_from = __commonJS((exports, module) => {
1734
1734
  var require_source_map_support = __commonJS((exports, module) => {
1735
1735
  var SourceMapConsumer = require_source_map().SourceMapConsumer;
1736
1736
  var path4 = __require("path");
1737
- var fs3;
1737
+ var fs2;
1738
1738
  try {
1739
- fs3 = __require("fs");
1740
- if (!fs3.existsSync || !fs3.readFileSync) {
1741
- fs3 = null;
1739
+ fs2 = __require("fs");
1740
+ if (!fs2.existsSync || !fs2.readFileSync) {
1741
+ fs2 = null;
1742
1742
  }
1743
1743
  } catch (err) {}
1744
1744
  var bufferFrom = require_buffer_from();
@@ -1805,15 +1805,15 @@ var require_source_map_support = __commonJS((exports, module) => {
1805
1805
  }
1806
1806
  var contents = "";
1807
1807
  try {
1808
- if (!fs3) {
1808
+ if (!fs2) {
1809
1809
  var xhr = new XMLHttpRequest;
1810
1810
  xhr.open("GET", path5, false);
1811
1811
  xhr.send(null);
1812
1812
  if (xhr.readyState === 4 && xhr.status === 200) {
1813
1813
  contents = xhr.responseText;
1814
1814
  }
1815
- } else if (fs3.existsSync(path5)) {
1816
- contents = fs3.readFileSync(path5, "utf8");
1815
+ } else if (fs2.existsSync(path5)) {
1816
+ contents = fs2.readFileSync(path5, "utf8");
1817
1817
  }
1818
1818
  } catch (er) {}
1819
1819
  return fileContentsCache[path5] = contents;
@@ -2077,9 +2077,9 @@ var require_source_map_support = __commonJS((exports, module) => {
2077
2077
  var line = +match[2];
2078
2078
  var column = +match[3];
2079
2079
  var contents = fileContentsCache[source];
2080
- if (!contents && fs3 && fs3.existsSync(source)) {
2080
+ if (!contents && fs2 && fs2.existsSync(source)) {
2081
2081
  try {
2082
- contents = fs3.readFileSync(source, "utf8");
2082
+ contents = fs2.readFileSync(source, "utf8");
2083
2083
  } catch (er) {
2084
2084
  contents = "";
2085
2085
  }
@@ -5875,10 +5875,10 @@ var require_typescript = __commonJS((exports, module) => {
5875
5875
  function and(f, g) {
5876
5876
  return (arg) => f(arg) && g(arg);
5877
5877
  }
5878
- function or(...fs3) {
5878
+ function or(...fs2) {
5879
5879
  return (...args) => {
5880
5880
  let lastResult;
5881
- for (const f of fs3) {
5881
+ for (const f of fs2) {
5882
5882
  lastResult = f(...args);
5883
5883
  if (lastResult) {
5884
5884
  return lastResult;
@@ -7332,7 +7332,7 @@ ${lanes.join(`
7332
7332
  var tracing;
7333
7333
  var tracingEnabled;
7334
7334
  ((tracingEnabled2) => {
7335
- let fs3;
7335
+ let fs2;
7336
7336
  let traceCount = 0;
7337
7337
  let traceFd = 0;
7338
7338
  let mode;
@@ -7341,9 +7341,9 @@ ${lanes.join(`
7341
7341
  const legend = [];
7342
7342
  function startTracing2(tracingMode, traceDir, configFilePath) {
7343
7343
  Debug.assert(!tracing, "Tracing already started");
7344
- if (fs3 === undefined) {
7344
+ if (fs2 === undefined) {
7345
7345
  try {
7346
- fs3 = __require("fs");
7346
+ fs2 = __require("fs");
7347
7347
  } catch (e) {
7348
7348
  throw new Error(`tracing requires having fs
7349
7349
  (original error: ${e.message || e})`);
@@ -7354,8 +7354,8 @@ ${lanes.join(`
7354
7354
  if (legendPath === undefined) {
7355
7355
  legendPath = combinePaths(traceDir, "legend.json");
7356
7356
  }
7357
- if (!fs3.existsSync(traceDir)) {
7358
- fs3.mkdirSync(traceDir, { recursive: true });
7357
+ if (!fs2.existsSync(traceDir)) {
7358
+ fs2.mkdirSync(traceDir, { recursive: true });
7359
7359
  }
7360
7360
  const countPart = mode === "build" ? `.${process.pid}-${++traceCount}` : mode === "server" ? `.${process.pid}` : ``;
7361
7361
  const tracePath = combinePaths(traceDir, `trace${countPart}.json`);
@@ -7365,10 +7365,10 @@ ${lanes.join(`
7365
7365
  tracePath,
7366
7366
  typesPath
7367
7367
  });
7368
- traceFd = fs3.openSync(tracePath, "w");
7368
+ traceFd = fs2.openSync(tracePath, "w");
7369
7369
  tracing = tracingEnabled2;
7370
7370
  const meta = { cat: "__metadata", ph: "M", ts: 1000 * timestamp(), pid: 1, tid: 1 };
7371
- fs3.writeSync(traceFd, `[
7371
+ fs2.writeSync(traceFd, `[
7372
7372
  ` + [{ name: "process_name", args: { name: "tsc" }, ...meta }, { name: "thread_name", args: { name: "Main" }, ...meta }, { name: "TracingStartedInBrowser", ...meta, cat: "disabled-by-default-devtools.timeline" }].map((v) => JSON.stringify(v)).join(`,
7373
7373
  `));
7374
7374
  }
@@ -7376,10 +7376,10 @@ ${lanes.join(`
7376
7376
  function stopTracing() {
7377
7377
  Debug.assert(tracing, "Tracing is not in progress");
7378
7378
  Debug.assert(!!typeCatalog.length === (mode !== "server"));
7379
- fs3.writeSync(traceFd, `
7379
+ fs2.writeSync(traceFd, `
7380
7380
  ]
7381
7381
  `);
7382
- fs3.closeSync(traceFd);
7382
+ fs2.closeSync(traceFd);
7383
7383
  tracing = undefined;
7384
7384
  if (typeCatalog.length) {
7385
7385
  dumpTypes(typeCatalog);
@@ -7444,13 +7444,13 @@ ${lanes.join(`
7444
7444
  if (mode === "server" && phase === "checkTypes")
7445
7445
  return;
7446
7446
  mark("beginTracing");
7447
- fs3.writeSync(traceFd, `,
7447
+ fs2.writeSync(traceFd, `,
7448
7448
  {"pid":1,"tid":1,"ph":"${eventType}","cat":"${phase}","ts":${time},"name":"${name}"`);
7449
7449
  if (extras)
7450
- fs3.writeSync(traceFd, `,${extras}`);
7450
+ fs2.writeSync(traceFd, `,${extras}`);
7451
7451
  if (args)
7452
- fs3.writeSync(traceFd, `,"args":${JSON.stringify(args)}`);
7453
- fs3.writeSync(traceFd, `}`);
7452
+ fs2.writeSync(traceFd, `,"args":${JSON.stringify(args)}`);
7453
+ fs2.writeSync(traceFd, `}`);
7454
7454
  mark("endTracing");
7455
7455
  measure("Tracing", "beginTracing", "endTracing");
7456
7456
  }
@@ -7472,9 +7472,9 @@ ${lanes.join(`
7472
7472
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
7473
7473
  mark("beginDumpTypes");
7474
7474
  const typesPath = legend[legend.length - 1].typesPath;
7475
- const typesFd = fs3.openSync(typesPath, "w");
7475
+ const typesFd = fs2.openSync(typesPath, "w");
7476
7476
  const recursionIdentityMap = /* @__PURE__ */ new Map;
7477
- fs3.writeSync(typesFd, "[");
7477
+ fs2.writeSync(typesFd, "[");
7478
7478
  const numTypes = types.length;
7479
7479
  for (let i = 0;i < numTypes; i++) {
7480
7480
  const type = types[i];
@@ -7570,15 +7570,15 @@ ${lanes.join(`
7570
7570
  flags: Debug.formatTypeFlags(type.flags).split("|"),
7571
7571
  display
7572
7572
  };
7573
- fs3.writeSync(typesFd, JSON.stringify(descriptor));
7573
+ fs2.writeSync(typesFd, JSON.stringify(descriptor));
7574
7574
  if (i < numTypes - 1) {
7575
- fs3.writeSync(typesFd, `,
7575
+ fs2.writeSync(typesFd, `,
7576
7576
  `);
7577
7577
  }
7578
7578
  }
7579
- fs3.writeSync(typesFd, `]
7579
+ fs2.writeSync(typesFd, `]
7580
7580
  `);
7581
- fs3.closeSync(typesFd);
7581
+ fs2.closeSync(typesFd);
7582
7582
  mark("endDumpTypes");
7583
7583
  measure("Dump types", "beginDumpTypes", "endDumpTypes");
7584
7584
  }
@@ -7586,7 +7586,7 @@ ${lanes.join(`
7586
7586
  if (!legendPath) {
7587
7587
  return;
7588
7588
  }
7589
- fs3.writeFileSync(legendPath, JSON.stringify(legend));
7589
+ fs2.writeFileSync(legendPath, JSON.stringify(legend));
7590
7590
  }
7591
7591
  tracingEnabled2.dumpLegend = dumpLegend;
7592
7592
  })(tracingEnabled || (tracingEnabled = {}));
@@ -171253,9 +171253,37 @@ function isFileNotFoundError(error) {
171253
171253
  return typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
171254
171254
  }
171255
171255
  // ../wp-typia-project-tools/src/runtime/cli-add-block-json.ts
171256
- import fs from "fs";
171257
171256
  import path2 from "path";
171258
171257
  import { parseScaffoldBlockMetadata } from "@wp-typia/block-runtime/blocks";
171258
+
171259
+ // ../wp-typia-project-tools/src/runtime/fs-async.ts
171260
+ import { promises as fsp2 } from "fs";
171261
+ async function pathExists(filePath) {
171262
+ try {
171263
+ await fsp2.access(filePath);
171264
+ return true;
171265
+ } catch {
171266
+ return false;
171267
+ }
171268
+ }
171269
+ async function readOptionalUtf8File(filePath) {
171270
+ try {
171271
+ return await fsp2.readFile(filePath, "utf8");
171272
+ } catch (error) {
171273
+ if (isFileNotFoundError2(error)) {
171274
+ return null;
171275
+ }
171276
+ throw error;
171277
+ }
171278
+ }
171279
+ function getNodeErrorCode(error) {
171280
+ return typeof error === "object" && error !== null && "code" in error ? String(error.code) : "";
171281
+ }
171282
+ function isFileNotFoundError2(error) {
171283
+ return getNodeErrorCode(error) === "ENOENT";
171284
+ }
171285
+
171286
+ // ../wp-typia-project-tools/src/runtime/cli-add-block-json.ts
171259
171287
  function resolveWorkspaceBlock(inventory, blockSlug) {
171260
171288
  const block = inventory.blocks.find((entry) => entry.slug === blockSlug);
171261
171289
  if (!block) {
@@ -171263,14 +171291,15 @@ function resolveWorkspaceBlock(inventory, blockSlug) {
171263
171291
  }
171264
171292
  return block;
171265
171293
  }
171266
- function readWorkspaceBlockJson(projectDir, blockSlug) {
171294
+ async function readWorkspaceBlockJson(projectDir, blockSlug) {
171267
171295
  const blockJsonPath = path2.join(projectDir, "src", "blocks", blockSlug, "block.json");
171268
- if (!fs.existsSync(blockJsonPath)) {
171296
+ const source = await readOptionalUtf8File(blockJsonPath);
171297
+ if (source === null) {
171269
171298
  throw new Error(`Missing ${path2.relative(projectDir, blockJsonPath)} for workspace block "${blockSlug}".`);
171270
171299
  }
171271
171300
  let blockJson;
171272
171301
  try {
171273
- blockJson = parseScaffoldBlockMetadata(JSON.parse(fs.readFileSync(blockJsonPath, "utf8")));
171302
+ blockJson = parseScaffoldBlockMetadata(JSON.parse(source));
171274
171303
  } catch (error) {
171275
171304
  throw new Error(error instanceof Error ? `Failed to parse ${path2.relative(projectDir, blockJsonPath)}: ${error.message}` : `Failed to parse ${path2.relative(projectDir, blockJsonPath)}.`);
171276
171305
  }
@@ -171292,12 +171321,12 @@ function getMutableBlockHooks(blockJson, blockJsonRelativePath) {
171292
171321
  return blockHooks;
171293
171322
  }
171294
171323
  // ../wp-typia-project-tools/src/runtime/cli-add-collision.ts
171295
- import fs2 from "fs";
171324
+ import fs from "fs";
171296
171325
  import path3 from "path";
171297
171326
  function assertScaffoldDoesNotExist(options) {
171298
171327
  for (const collision of options.filesystemCollisions) {
171299
171328
  const targetPath = path3.join(options.projectDir, collision.relativePath);
171300
- if (fs2.existsSync(targetPath)) {
171329
+ if (fs.existsSync(targetPath)) {
171301
171330
  throw new Error(`${collision.label} already exists at ${path3.relative(options.projectDir, targetPath)}. Choose a different name.`);
171302
171331
  }
171303
171332
  }
@@ -171548,7 +171577,7 @@ function assertEditorPluginDoesNotExist(projectDir, editorPluginSlug, inventory)
171548
171577
  }
171549
171578
  // ../wp-typia-project-tools/src/runtime/workspace-inventory.ts
171550
171579
  var import_typescript = __toESM(require_typescript(), 1);
171551
- import fs3 from "fs";
171580
+ import fs2 from "fs";
171552
171581
  import path4 from "path";
171553
171582
  import { readFile, writeFile } from "fs/promises";
171554
171583
 
@@ -171694,90 +171723,97 @@ function matchesPhpFunctionCallAt(source, index, functionName) {
171694
171723
  const callStart = skipPhpCallTrivia(source, cursor);
171695
171724
  return callStart !== null && source[callStart] === "(";
171696
171725
  }
171697
- function hasPhpFunctionCall(source, functionName) {
171698
- let mode = "code";
171699
- let heredocDelimiter = "";
171700
- let index = 0;
171701
- while (index < source.length) {
171702
- const character = source[index];
171703
- if (mode === "heredoc") {
171704
- const closingEnd = findPhpHeredocClosingEnd(source, index, heredocDelimiter);
171705
- if (closingEnd !== null) {
171706
- mode = "code";
171707
- heredocDelimiter = "";
171708
- index = closingEnd;
171709
- continue;
171710
- }
171711
- const nextLineStart = findPhpLineBoundary(source, index).nextStart;
171712
- if (nextLineStart <= index) {
171713
- return false;
171714
- }
171715
- index = nextLineStart;
171716
- continue;
171726
+ function createPhpScannerState() {
171727
+ return {
171728
+ heredocDelimiter: "",
171729
+ mode: "code"
171730
+ };
171731
+ }
171732
+ function advancePhpScanner(source, index, state) {
171733
+ const character = source[index];
171734
+ if (state.mode === "heredoc") {
171735
+ const closingEnd = findPhpHeredocClosingEnd(source, index, state.heredocDelimiter);
171736
+ if (closingEnd !== null) {
171737
+ state.mode = "code";
171738
+ state.heredocDelimiter = "";
171739
+ return { ambiguous: false, inCode: false, index: closingEnd };
171740
+ }
171741
+ const nextLineStart = findPhpLineBoundary(source, index).nextStart;
171742
+ if (nextLineStart <= index) {
171743
+ return { ambiguous: true, inCode: false, index };
171744
+ }
171745
+ return { ambiguous: false, inCode: false, index: nextLineStart };
171746
+ }
171747
+ if (state.mode === "single-quoted" || state.mode === "double-quoted") {
171748
+ const quote = state.mode === "single-quoted" ? "'" : '"';
171749
+ if (character === "\\") {
171750
+ return { ambiguous: false, inCode: false, index: index + 2 };
171717
171751
  }
171718
- if (mode === "single-quoted" || mode === "double-quoted") {
171719
- const quote = mode === "single-quoted" ? "'" : '"';
171720
- if (character === "\\") {
171721
- index += 2;
171722
- continue;
171723
- }
171724
- if (character === quote) {
171725
- mode = "code";
171726
- }
171727
- index += 1;
171728
- continue;
171752
+ if (character === quote) {
171753
+ state.mode = "code";
171729
171754
  }
171730
- if (mode === "line-comment") {
171731
- if (character === "\r" || character === `
171755
+ return { ambiguous: false, inCode: false, index: index + 1 };
171756
+ }
171757
+ if (state.mode === "line-comment") {
171758
+ if (character === "\r" || character === `
171732
171759
  `) {
171733
- mode = "code";
171734
- }
171735
- index += 1;
171736
- continue;
171737
- }
171738
- if (mode === "block-comment") {
171739
- if (character === "*" && source[index + 1] === "/") {
171740
- mode = "code";
171741
- index += 2;
171742
- continue;
171743
- }
171744
- index += 1;
171745
- continue;
171746
- }
171747
- if (character === "'") {
171748
- mode = "single-quoted";
171749
- index += 1;
171750
- continue;
171760
+ state.mode = "code";
171751
171761
  }
171752
- if (character === '"') {
171753
- mode = "double-quoted";
171754
- index += 1;
171755
- continue;
171762
+ return { ambiguous: false, inCode: false, index: index + 1 };
171763
+ }
171764
+ if (state.mode === "block-comment") {
171765
+ if (character === "*" && source[index + 1] === "/") {
171766
+ state.mode = "code";
171767
+ return { ambiguous: false, inCode: false, index: index + 2 };
171756
171768
  }
171757
- if (character === "/" && source[index + 1] === "/") {
171758
- mode = "line-comment";
171759
- index += 2;
171760
- continue;
171769
+ return { ambiguous: false, inCode: false, index: index + 1 };
171770
+ }
171771
+ if (character === "'") {
171772
+ state.mode = "single-quoted";
171773
+ return { ambiguous: false, inCode: false, index: index + 1 };
171774
+ }
171775
+ if (character === '"') {
171776
+ state.mode = "double-quoted";
171777
+ return { ambiguous: false, inCode: false, index: index + 1 };
171778
+ }
171779
+ if (character === "/" && source[index + 1] === "/") {
171780
+ state.mode = "line-comment";
171781
+ return { ambiguous: false, inCode: false, index: index + 2 };
171782
+ }
171783
+ if (character === "#" && source[index + 1] !== "[") {
171784
+ state.mode = "line-comment";
171785
+ return { ambiguous: false, inCode: false, index: index + 1 };
171786
+ }
171787
+ if (character === "/" && source[index + 1] === "*") {
171788
+ state.mode = "block-comment";
171789
+ return { ambiguous: false, inCode: false, index: index + 2 };
171790
+ }
171791
+ if (character === "<") {
171792
+ const heredocStart = parsePhpHeredocStart(source, index);
171793
+ if (heredocStart) {
171794
+ state.mode = "heredoc";
171795
+ state.heredocDelimiter = heredocStart.delimiter;
171796
+ return {
171797
+ ambiguous: false,
171798
+ inCode: false,
171799
+ index: heredocStart.contentStart
171800
+ };
171761
171801
  }
171762
- if (character === "#" && source[index + 1] !== "[") {
171763
- mode = "line-comment";
171764
- index += 1;
171765
- continue;
171802
+ }
171803
+ return { ambiguous: false, inCode: true, index };
171804
+ }
171805
+ function hasPhpFunctionCall(source, functionName) {
171806
+ const scanner = createPhpScannerState();
171807
+ let index = 0;
171808
+ while (index < source.length) {
171809
+ const scan = advancePhpScanner(source, index, scanner);
171810
+ if (scan.ambiguous) {
171811
+ return false;
171766
171812
  }
171767
- if (character === "/" && source[index + 1] === "*") {
171768
- mode = "block-comment";
171769
- index += 2;
171813
+ if (!scan.inCode) {
171814
+ index = scan.index;
171770
171815
  continue;
171771
171816
  }
171772
- if (character === "<") {
171773
- const heredocStart = parsePhpHeredocStart(source, index);
171774
- if (heredocStart) {
171775
- mode = "heredoc";
171776
- heredocDelimiter = heredocStart.delimiter;
171777
- index = heredocStart.contentStart;
171778
- continue;
171779
- }
171780
- }
171781
171817
  if (matchesPhpFunctionCallAt(source, index, functionName)) {
171782
171818
  return true;
171783
171819
  }
@@ -171798,89 +171834,18 @@ function findPhpFunctionRange(source, functionName, options = {}) {
171798
171834
  }
171799
171835
  const openBraceIndex = functionStart + openBraceOffset;
171800
171836
  let depth = 0;
171801
- let mode = "code";
171802
- let heredocDelimiter = "";
171837
+ const scanner = createPhpScannerState();
171803
171838
  let index = openBraceIndex;
171804
171839
  while (index < source.length) {
171805
- const character = source[index];
171806
- if (mode === "heredoc") {
171807
- const closingEnd = findPhpHeredocClosingEnd(source, index, heredocDelimiter);
171808
- if (closingEnd !== null) {
171809
- mode = "code";
171810
- heredocDelimiter = "";
171811
- index = closingEnd;
171812
- continue;
171813
- }
171814
- const nextLineStart = findPhpLineBoundary(source, index).nextStart;
171815
- if (nextLineStart <= index) {
171816
- return null;
171817
- }
171818
- index = nextLineStart;
171819
- continue;
171820
- }
171821
- if (mode === "single-quoted" || mode === "double-quoted") {
171822
- const quote = mode === "single-quoted" ? "'" : '"';
171823
- if (character === "\\") {
171824
- index += 2;
171825
- continue;
171826
- }
171827
- if (character === quote) {
171828
- mode = "code";
171829
- }
171830
- index += 1;
171831
- continue;
171832
- }
171833
- if (mode === "line-comment") {
171834
- if (character === "\r" || character === `
171835
- `) {
171836
- mode = "code";
171837
- }
171838
- index += 1;
171839
- continue;
171840
- }
171841
- if (mode === "block-comment") {
171842
- if (character === "*" && source[index + 1] === "/") {
171843
- mode = "code";
171844
- index += 2;
171845
- continue;
171846
- }
171847
- index += 1;
171848
- continue;
171849
- }
171850
- if (character === "'") {
171851
- mode = "single-quoted";
171852
- index += 1;
171853
- continue;
171854
- }
171855
- if (character === '"') {
171856
- mode = "double-quoted";
171857
- index += 1;
171858
- continue;
171859
- }
171860
- if (character === "/" && source[index + 1] === "/") {
171861
- mode = "line-comment";
171862
- index += 2;
171863
- continue;
171864
- }
171865
- if (character === "#" && source[index + 1] !== "[") {
171866
- mode = "line-comment";
171867
- index += 1;
171868
- continue;
171840
+ const scan = advancePhpScanner(source, index, scanner);
171841
+ if (scan.ambiguous) {
171842
+ return null;
171869
171843
  }
171870
- if (character === "/" && source[index + 1] === "*") {
171871
- mode = "block-comment";
171872
- index += 2;
171844
+ if (!scan.inCode) {
171845
+ index = scan.index;
171873
171846
  continue;
171874
171847
  }
171875
- if (character === "<") {
171876
- const heredocStart = parsePhpHeredocStart(source, index);
171877
- if (heredocStart) {
171878
- mode = "heredoc";
171879
- heredocDelimiter = heredocStart.delimiter;
171880
- index = heredocStart.contentStart;
171881
- continue;
171882
- }
171883
- }
171848
+ const character = source[index];
171884
171849
  if (character === "{") {
171885
171850
  depth += 1;
171886
171851
  index += 1;
@@ -172611,7 +172576,7 @@ function readWorkspaceInventory(projectDir) {
172611
172576
  const blockConfigPath = path4.join(projectDir, "scripts", "block-config.ts");
172612
172577
  let source;
172613
172578
  try {
172614
- source = fs3.readFileSync(blockConfigPath, "utf8");
172579
+ source = fs2.readFileSync(blockConfigPath, "utf8");
172615
172580
  } catch (error) {
172616
172581
  if (typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT") {
172617
172582
  throw new Error(`Workspace inventory file is missing at ${blockConfigPath}. Expected scripts/block-config.ts to exist.`);
@@ -172740,6 +172705,6 @@ async function appendWorkspaceInventoryEntries(projectDir, options) {
172740
172705
  }
172741
172706
  }
172742
172707
 
172743
- export { toKebabCase, toSnakeCase, toPascalCase, toCamelCase, toSegmentPascalCase, toTitleCase, validateBlockSlug, validateNamespace, normalizeBlockSlug, resolveNonEmptyNormalizedBlockSlug, buildBlockCssClassName, buildFrontendCssClassName, resolveScaffoldIdentifiers, REST_RESOURCE_METHOD_IDS, EDITOR_PLUGIN_SLOT_IDS, resolveEditorPluginSlotAlias, ADD_BLOCK_TEMPLATE_IDS, HOOKED_BLOCK_POSITION_SET, HOOKED_BLOCK_ANCHOR_PATTERN, REST_RESOURCE_NAMESPACE_PATTERN, assertValidGeneratedSlug, resolveRestResourceNamespace, assertValidRestResourceMethods, assertValidHookedBlockPosition, buildWorkspacePhpPrefix, isAddBlockTemplateId, quoteTsString, assertValidHookAnchor, assertValidEditorPluginSlot, getWorkspaceBootstrapPath, patchFile, readOptionalFile, snapshotWorkspaceFiles, rollbackWorkspaceMutation, resolveWorkspaceBlock, readWorkspaceBlockJson, getMutableBlockHooks, assertVariationDoesNotExist, assertBlockStyleDoesNotExist, assertBlockTransformDoesNotExist, assertPatternDoesNotExist, assertBindingSourceDoesNotExist, assertRestResourceDoesNotExist, assertAdminViewDoesNotExist, assertAbilityDoesNotExist, assertAiFeatureDoesNotExist, assertEditorPluginDoesNotExist, formatAddHelpText, require_typescript, escapeRegex, quotePhpString, hasPhpFunctionDefinition, hasPhpFunctionCall, findPhpFunctionRange, replacePhpFunctionDefinition, readWorkspaceInventory, getWorkspaceBlockSelectOptions, updateWorkspaceInventorySource, appendWorkspaceInventoryEntries };
172708
+ export { toKebabCase, toSnakeCase, toPascalCase, toCamelCase, toSegmentPascalCase, toTitleCase, validateBlockSlug, validateNamespace, normalizeBlockSlug, resolveNonEmptyNormalizedBlockSlug, buildBlockCssClassName, buildFrontendCssClassName, resolveScaffoldIdentifiers, REST_RESOURCE_METHOD_IDS, EDITOR_PLUGIN_SLOT_IDS, resolveEditorPluginSlotAlias, ADD_BLOCK_TEMPLATE_IDS, HOOKED_BLOCK_POSITION_SET, HOOKED_BLOCK_ANCHOR_PATTERN, REST_RESOURCE_NAMESPACE_PATTERN, assertValidGeneratedSlug, resolveRestResourceNamespace, assertValidRestResourceMethods, assertValidHookedBlockPosition, buildWorkspacePhpPrefix, isAddBlockTemplateId, quoteTsString, assertValidHookAnchor, assertValidEditorPluginSlot, getWorkspaceBootstrapPath, patchFile, readOptionalFile, snapshotWorkspaceFiles, rollbackWorkspaceMutation, pathExists, readOptionalUtf8File, resolveWorkspaceBlock, readWorkspaceBlockJson, getMutableBlockHooks, assertVariationDoesNotExist, assertBlockStyleDoesNotExist, assertBlockTransformDoesNotExist, assertPatternDoesNotExist, assertBindingSourceDoesNotExist, assertRestResourceDoesNotExist, assertAdminViewDoesNotExist, assertAbilityDoesNotExist, assertAiFeatureDoesNotExist, assertEditorPluginDoesNotExist, formatAddHelpText, require_typescript, escapeRegex, quotePhpString, hasPhpFunctionDefinition, hasPhpFunctionCall, findPhpFunctionRange, replacePhpFunctionDefinition, readWorkspaceInventory, getWorkspaceBlockSelectOptions, updateWorkspaceInventorySource, appendWorkspaceInventoryEntries };
172744
172709
 
172745
- //# debugId=17AFFAD165D90DE964756E2164756E21
172710
+ //# debugId=6D5B4520C8A1BC7E64756E2164756E21
package/dist-bunli/cli.js CHANGED
@@ -22,7 +22,7 @@ import {
22
22
  package_default,
23
23
  validateCliOutputFormatArgv,
24
24
  writeStructuredCliDiagnosticError
25
- } from "./cli-f44sphgv.js";
25
+ } from "./cli-cjygr56g.js";
26
26
  import"./cli-03j0axbt.js";
27
27
  import {
28
28
  GLOBAL_FLAGS,
@@ -2457,7 +2457,7 @@ async function formatCliError(error) {
2457
2457
  }
2458
2458
  async function createWpTypiaCli(options = {}) {
2459
2459
  applyStandaloneSupportLayoutEnv();
2460
- const { wpTypiaCommands } = await import("./command-list-bqr2tp8w.js");
2460
+ const { wpTypiaCommands } = await import("./command-list-6zr1tj96.js");
2461
2461
  const cli = await createCLI({
2462
2462
  ...bunliConfig,
2463
2463
  description: package_default.description,
@@ -17,7 +17,7 @@ import {
17
17
  package_default,
18
18
  prefersStructuredCliOutput,
19
19
  resolveCommandOptionValues
20
- } from "./cli-f44sphgv.js";
20
+ } from "./cli-cjygr56g.js";
21
21
  import {
22
22
  Result,
23
23
  TaggedError,
@@ -1384,14 +1384,14 @@ async function executeSyncCommand({
1384
1384
  }
1385
1385
 
1386
1386
  // src/runtime-bridge.ts
1387
- var loadCliAddRuntime = () => import("./cli-add-5vmxpgmn.js");
1387
+ var loadCliAddRuntime = () => import("./cli-add-8jpdnz1r.js");
1388
1388
  var loadCliDiagnosticsRuntime = () => import("./cli-diagnostics-5dvztm7q.js");
1389
- var loadCliDoctorRuntime = () => import("./cli-doctor-ngzs8kkc.js");
1390
- var loadCliInitRuntime = () => import("./cli-init-df1wg71p.js");
1389
+ var loadCliDoctorRuntime = () => import("./cli-doctor-h5tq4ztr.js");
1390
+ var loadCliInitRuntime = () => import("./cli-init-w9p558th.js");
1391
1391
  var loadCliPromptRuntime = () => import("./cli-prompt-614tq57c.js");
1392
- var loadCliScaffoldRuntime = () => import("./cli-scaffold-btx3wfsn.js");
1392
+ var loadCliScaffoldRuntime = () => import("./cli-scaffold-qve8rqja.js");
1393
1393
  var loadCliTemplatesRuntime = () => import("./cli-templates-9t2a7zqd.js");
1394
- var loadMigrationsRuntime = () => import("./migrations-bnrjw4k1.js");
1394
+ var loadMigrationsRuntime = () => import("./migrations-v0avgyg6.js");
1395
1395
  async function wrapCliCommandError(command, error) {
1396
1396
  const { createCliCommandError } = await loadCliDiagnosticsRuntime();
1397
1397
  return createCliCommandError({ command, error });
@@ -2339,7 +2339,7 @@ var doctorCommand = defineCommand({
2339
2339
  const prefersStructuredOutput = prefersStructuredCliOutput(args);
2340
2340
  if (prefersStructuredOutput) {
2341
2341
  const [{ getDoctorChecks }, { getDoctorFailureDetailLines }] = await Promise.all([
2342
- import("./cli-doctor-ngzs8kkc.js"),
2342
+ import("./cli-doctor-h5tq4ztr.js"),
2343
2343
  import("./cli-diagnostics-5dvztm7q.js")
2344
2344
  ]);
2345
2345
  const checks = await getDoctorChecks(args.cwd);
@@ -15,10 +15,10 @@ import {
15
15
  snapshotProjectVersion,
16
16
  verifyProjectMigrations,
17
17
  wizardProjectMigrations
18
- } from "./cli-0q0tz4dq.js";
18
+ } from "./cli-27v2qpjg.js";
19
19
  import"./cli-2rqf6t0b.js";
20
20
  import"./cli-bq2v559b.js";
21
- import"./cli-5kn2p7ee.js";
21
+ import"./cli-ta3y0hp2.js";
22
22
  import"./cli-fys8vm2t.js";
23
23
  import"./cli-hhp1d348.js";
24
24
  import"./cli-52ke0ptp.js";
@@ -3,7 +3,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
3
3
  // package.json
4
4
  var package_default = {
5
5
  name: "wp-typia",
6
- version: "0.22.6",
6
+ version: "0.22.7",
7
7
  description: "Canonical CLI package for wp-typia scaffolding and project workflows",
8
8
  packageManager: "bun@1.3.11",
9
9
  type: "module",
@@ -73,7 +73,7 @@ var package_default = {
73
73
  "@bunli/tui": "0.6.0",
74
74
  "@bunli/utils": "0.6.0",
75
75
  "@wp-typia/api-client": "^0.4.5",
76
- "@wp-typia/project-tools": "0.22.6",
76
+ "@wp-typia/project-tools": "0.22.7",
77
77
  "better-result": "^2.7.0",
78
78
  react: "^19.2.5",
79
79
  "react-dom": "^19.2.5",
@@ -3439,4 +3439,4 @@ export {
3439
3439
  hasFlagBeforeTerminator
3440
3440
  };
3441
3441
 
3442
- //# debugId=C0474E5751A0C9C164756E2164756E21
3442
+ //# debugId=5D4E56BAE8A1432964756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wp-typia",
3
- "version": "0.22.6",
3
+ "version": "0.22.7",
4
4
  "description": "Canonical CLI package for wp-typia scaffolding and project workflows",
5
5
  "packageManager": "bun@1.3.11",
6
6
  "type": "module",
@@ -70,7 +70,7 @@
70
70
  "@bunli/tui": "0.6.0",
71
71
  "@bunli/utils": "0.6.0",
72
72
  "@wp-typia/api-client": "^0.4.5",
73
- "@wp-typia/project-tools": "0.22.6",
73
+ "@wp-typia/project-tools": "0.22.7",
74
74
  "better-result": "^2.7.0",
75
75
  "react": "^19.2.5",
76
76
  "react-dom": "^19.2.5",