wp-typia 0.22.0 → 0.22.2
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/dist-bunli/.bunli/commands.gen.js +1053 -550
- package/dist-bunli/{cli-39er8888.js → cli-1sm60g1z.js} +19 -2
- package/dist-bunli/{cli-e623rs7g.js → cli-6hcbjvym.js} +1 -1
- package/dist-bunli/{cli-add-kjhghdqq.js → cli-add-s0p4w1wz.js} +655 -294
- package/dist-bunli/{cli-doctor-p3jxvn0k.js → cli-doctor-6dchxz12.js} +1 -1
- package/dist-bunli/{cli-init-djhwr245.js → cli-init-r6h1xchq.js} +2 -2
- package/dist-bunli/{cli-1w5vkye4.js → cli-kww2sraq.js} +9 -7
- package/dist-bunli/{cli-ktp869eh.js → cli-n6hgvysz.js} +36 -23
- package/dist-bunli/{cli-scaffold-376yw891.js → cli-scaffold-f023yxc5.js} +4 -4
- package/dist-bunli/{cli-j180bk07.js → cli-smzkbfna.js} +31 -2
- package/dist-bunli/cli.js +2 -2
- package/dist-bunli/{command-list-jt1a1w7r.js → command-list-d3dcvzg2.js} +184 -127
- package/dist-bunli/{migrations-nwas5bwt.js → migrations-pg5b9fh4.js} +2 -2
- package/dist-bunli/node-cli.js +287 -197
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
getPackageVersions
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-1sm60g1z.js";
|
|
5
5
|
import {
|
|
6
6
|
discoverMigrationInitLayout
|
|
7
7
|
} from "./cli-gcbre1zs.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
snapshotWorkspaceFiles,
|
|
21
21
|
toPascalCase,
|
|
22
22
|
updateWorkspaceInventorySource
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-smzkbfna.js";
|
|
24
24
|
import {
|
|
25
25
|
CLI_DIAGNOSTIC_CODES,
|
|
26
26
|
createCliDiagnosticCodeError
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
getPackageVersions
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-1sm60g1z.js";
|
|
5
5
|
import {
|
|
6
6
|
seedProjectMigrations
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-6hcbjvym.js";
|
|
8
8
|
import {
|
|
9
9
|
ensureMigrationDirectories,
|
|
10
10
|
isPlainObject,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
toTitleCase,
|
|
60
60
|
validateBlockSlug,
|
|
61
61
|
validateNamespace
|
|
62
|
-
} from "./cli-
|
|
62
|
+
} from "./cli-smzkbfna.js";
|
|
63
63
|
import {
|
|
64
64
|
createManagedTempRoot
|
|
65
65
|
} from "./cli-t73q5aqz.js";
|
|
@@ -12258,7 +12258,9 @@ function createScaffoldCompatibilityConfig(policy) {
|
|
|
12258
12258
|
return {
|
|
12259
12259
|
hardMinimums: capabilityPlan.hardMinimums,
|
|
12260
12260
|
mode: getPolicyMode(capabilityPlan),
|
|
12261
|
+
optionalFeatureIds: capabilityPlan.optionalFeatures.map((feature) => feature.id),
|
|
12261
12262
|
optionalFeatures: capabilityPlan.optionalFeatures.map((feature) => feature.label),
|
|
12263
|
+
requiredFeatureIds: capabilityPlan.requiredFeatures.map((feature) => feature.id),
|
|
12262
12264
|
requiredFeatures: capabilityPlan.requiredFeatures.map((feature) => feature.label),
|
|
12263
12265
|
runtimeGates: [
|
|
12264
12266
|
...capabilityPlan.requiredFeatures.flatMap(formatRuntimeGate),
|
|
@@ -14470,7 +14472,7 @@ type InteractivityActionShape = object;
|
|
|
14470
14472
|
type InteractivityCallbackShape = object;
|
|
14471
14473
|
type InteractivityContextShape = object;
|
|
14472
14474
|
type InteractivityStateShape = object;
|
|
14473
|
-
type InteractivityCallable =
|
|
14475
|
+
type InteractivityCallable = CallableFunction;
|
|
14474
14476
|
type InteractivityKey<T extends object> = Extract<keyof T, string>;
|
|
14475
14477
|
type InteractivityMethodKey<T extends object> = {
|
|
14476
14478
|
[Key in InteractivityKey<T>]: T[Key] extends InteractivityCallable ? Key : never;
|
|
@@ -14573,7 +14575,7 @@ export function defineInteractivityStore<
|
|
|
14573
14575
|
};
|
|
14574
14576
|
}
|
|
14575
14577
|
|
|
14576
|
-
type InteractivityActionHandler =
|
|
14578
|
+
type InteractivityActionHandler = CallableFunction;
|
|
14577
14579
|
|
|
14578
14580
|
export interface {{pascalCase}}StoreActions {
|
|
14579
14581
|
handleClick: InteractivityActionHandler;
|
|
@@ -17317,6 +17319,6 @@ async function resolveOptionalInteractiveExternalLayerId({
|
|
|
17317
17319
|
}
|
|
17318
17320
|
}
|
|
17319
17321
|
|
|
17320
|
-
export { syncPersistenceRestArtifacts, copyInterpolatedDirectory, listInterpolatedDirectoryOutputs, getPrimaryDevelopmentScript, getOptionalOnboardingSteps, getOptionalOnboardingNote, getOptionalOnboardingShortNote, formatNonEmptyTargetDirectoryError, require_semver2 as require_semver, parseTemplateLocator, resolveExternalTemplateLayers, resolveTemplateSeed, normalizeOptionalCliString, resolveLocalCliPathOption, assertExternalLayerCompositionOptions, assertBuiltInTemplateVariantAllowed, parseAlternateRenderTargets, parseCompoundInnerBlocksPreset, OPTIONAL_WORDPRESS_AI_CLIENT_COMPATIBILITY, REQUIRED_WORKSPACE_ABILITY_COMPATIBILITY, resolveScaffoldCompatibilityPolicy, renderScaffoldCompatibilityConfig, updatePluginHeaderCompatibility, getDefaultAnswers, resolveTemplateId, resolvePackageManagerId, collectScaffoldAnswers, DATA_STORAGE_MODES, PERSISTENCE_POLICIES, isDataStorageMode, isPersistencePolicy, scaffoldProject, resolveOptionalInteractiveExternalLayerId };
|
|
17322
|
+
export { syncPersistenceRestArtifacts, copyInterpolatedDirectory, listInterpolatedDirectoryOutputs, getPrimaryDevelopmentScript, getOptionalOnboardingSteps, getOptionalOnboardingNote, getOptionalOnboardingShortNote, formatNonEmptyTargetDirectoryError, require_semver2 as require_semver, parseTemplateLocator, resolveExternalTemplateLayers, resolveTemplateSeed, normalizeOptionalCliString, resolveLocalCliPathOption, assertExternalLayerCompositionOptions, assertBuiltInTemplateVariantAllowed, parseAlternateRenderTargets, parseCompoundInnerBlocksPreset, OPTIONAL_WORDPRESS_AI_CLIENT_COMPATIBILITY, REQUIRED_WORKSPACE_ABILITY_COMPATIBILITY, resolveScaffoldCompatibilityPolicy, createScaffoldCompatibilityConfig, renderScaffoldCompatibilityConfig, updatePluginHeaderCompatibility, getDefaultAnswers, resolveTemplateId, resolvePackageManagerId, collectScaffoldAnswers, DATA_STORAGE_MODES, PERSISTENCE_POLICIES, isDataStorageMode, isPersistencePolicy, scaffoldProject, resolveOptionalInteractiveExternalLayerId };
|
|
17321
17323
|
|
|
17322
|
-
//# debugId=
|
|
17324
|
+
//# debugId=A063D78F028D37F964756E2164756E21
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
// package.json
|
|
12
12
|
var package_default = {
|
|
13
13
|
name: "wp-typia",
|
|
14
|
-
version: "0.22.
|
|
14
|
+
version: "0.22.2",
|
|
15
15
|
description: "Canonical CLI package for wp-typia scaffolding and project workflows",
|
|
16
16
|
packageManager: "bun@1.3.11",
|
|
17
17
|
type: "module",
|
|
@@ -81,7 +81,7 @@ var package_default = {
|
|
|
81
81
|
"@bunli/tui": "0.6.0",
|
|
82
82
|
"@bunli/utils": "0.6.0",
|
|
83
83
|
"@wp-typia/api-client": "^0.4.5",
|
|
84
|
-
"@wp-typia/project-tools": "0.22.
|
|
84
|
+
"@wp-typia/project-tools": "0.22.2",
|
|
85
85
|
"better-result": "^2.7.0",
|
|
86
86
|
react: "^19.2.5",
|
|
87
87
|
"react-dom": "^19.2.5",
|
|
@@ -314,6 +314,12 @@ var MIGRATE_OPTION_METADATA = {
|
|
|
314
314
|
type: "string"
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
|
+
var MCP_OPTION_METADATA = {
|
|
318
|
+
"output-dir": {
|
|
319
|
+
description: "Output directory for generated MCP metadata.",
|
|
320
|
+
type: "string"
|
|
321
|
+
}
|
|
322
|
+
};
|
|
317
323
|
var SYNC_OPTION_METADATA = {
|
|
318
324
|
check: {
|
|
319
325
|
argumentKind: "flag",
|
|
@@ -351,10 +357,6 @@ var GLOBAL_OPTION_METADATA = {
|
|
|
351
357
|
id: {
|
|
352
358
|
description: "Template id for top-level `templates inspect` convenience.",
|
|
353
359
|
type: "string"
|
|
354
|
-
},
|
|
355
|
-
"output-dir": {
|
|
356
|
-
description: "Output directory for generated MCP metadata.",
|
|
357
|
-
type: "string"
|
|
358
360
|
}
|
|
359
361
|
};
|
|
360
362
|
var COMMAND_OPTION_METADATA_BY_GROUP = {
|
|
@@ -364,6 +366,7 @@ var COMMAND_OPTION_METADATA_BY_GROUP = {
|
|
|
364
366
|
global: GLOBAL_OPTION_METADATA,
|
|
365
367
|
init: INIT_OPTION_METADATA,
|
|
366
368
|
migrate: MIGRATE_OPTION_METADATA,
|
|
369
|
+
mcp: MCP_OPTION_METADATA,
|
|
367
370
|
sync: SYNC_OPTION_METADATA,
|
|
368
371
|
templates: TEMPLATES_OPTION_METADATA
|
|
369
372
|
};
|
|
@@ -557,6 +560,10 @@ function findFirstPositional(argv, metadata) {
|
|
|
557
560
|
function resolveEntrypointCliCommand(argv) {
|
|
558
561
|
return findFirstPositional(argv, COMMAND_ROUTING_METADATA) ?? "wp-typia";
|
|
559
562
|
}
|
|
563
|
+
function writeStructuredCliJsonToStderr(payload) {
|
|
564
|
+
process.stderr.write(`${JSON.stringify(payload, null, 2)}
|
|
565
|
+
`);
|
|
566
|
+
}
|
|
560
567
|
function prefersStructuredCliArgv(argv) {
|
|
561
568
|
for (let index = 0;index < argv.length; index += 1) {
|
|
562
569
|
const arg = argv[index];
|
|
@@ -581,7 +588,7 @@ function prefersStructuredCliOutput(args) {
|
|
|
581
588
|
function emitCliDiagnosticFailure(args, options) {
|
|
582
589
|
const diagnostic = createCliCommandError(options);
|
|
583
590
|
if (prefersStructuredCliOutput(args)) {
|
|
584
|
-
|
|
591
|
+
writeStructuredCliJsonToStderr({
|
|
585
592
|
...options.extraOutput ?? {},
|
|
586
593
|
error: serializeCliDiagnosticError(diagnostic),
|
|
587
594
|
ok: false
|
|
@@ -595,17 +602,33 @@ function writeStructuredCliDiagnosticError(argv, error) {
|
|
|
595
602
|
if (!prefersStructuredCliArgv(argv)) {
|
|
596
603
|
return false;
|
|
597
604
|
}
|
|
598
|
-
|
|
605
|
+
writeStructuredCliJsonToStderr({
|
|
599
606
|
error: serializeCliDiagnosticError(createCliCommandError({
|
|
600
607
|
command: resolveEntrypointCliCommand(argv),
|
|
601
608
|
error
|
|
602
609
|
})),
|
|
603
610
|
ok: false
|
|
604
|
-
}
|
|
611
|
+
});
|
|
605
612
|
process.exitCode = 1;
|
|
606
613
|
return true;
|
|
607
614
|
}
|
|
608
615
|
|
|
616
|
+
// src/add-kind-ids.ts
|
|
617
|
+
var ADD_KIND_IDS = [
|
|
618
|
+
"admin-view",
|
|
619
|
+
"block",
|
|
620
|
+
"variation",
|
|
621
|
+
"style",
|
|
622
|
+
"transform",
|
|
623
|
+
"pattern",
|
|
624
|
+
"binding-source",
|
|
625
|
+
"rest-resource",
|
|
626
|
+
"ability",
|
|
627
|
+
"ai-feature",
|
|
628
|
+
"hooked-block",
|
|
629
|
+
"editor-plugin"
|
|
630
|
+
];
|
|
631
|
+
|
|
609
632
|
// src/command-registry.ts
|
|
610
633
|
var WP_TYPIA_CANONICAL_CREATE_USAGE = "wp-typia create <project-dir>";
|
|
611
634
|
var WP_TYPIA_COMMAND_REGISTRY = [
|
|
@@ -643,17 +666,7 @@ var WP_TYPIA_COMMAND_REGISTRY = [
|
|
|
643
666
|
nodeFallback: true,
|
|
644
667
|
optionGroups: ["add"],
|
|
645
668
|
requiresBunRuntime: false,
|
|
646
|
-
subcommands:
|
|
647
|
-
"block",
|
|
648
|
-
"variation",
|
|
649
|
-
"style",
|
|
650
|
-
"transform",
|
|
651
|
-
"pattern",
|
|
652
|
-
"binding-source",
|
|
653
|
-
"rest-resource",
|
|
654
|
-
"editor-plugin",
|
|
655
|
-
"hooked-block"
|
|
656
|
-
]
|
|
669
|
+
subcommands: ADD_KIND_IDS
|
|
657
670
|
},
|
|
658
671
|
{
|
|
659
672
|
commandTree: true,
|
|
@@ -698,7 +711,7 @@ var WP_TYPIA_COMMAND_REGISTRY = [
|
|
|
698
711
|
description: "Inspect or sync schema-driven MCP metadata.",
|
|
699
712
|
name: "mcp",
|
|
700
713
|
nodeFallback: false,
|
|
701
|
-
optionGroups: [],
|
|
714
|
+
optionGroups: ["mcp"],
|
|
702
715
|
requiresBunRuntime: true,
|
|
703
716
|
subcommands: ["list", "sync"]
|
|
704
717
|
},
|
|
@@ -839,6 +852,6 @@ function getMcpSchemaSources(config) {
|
|
|
839
852
|
function createPlugin(input) {
|
|
840
853
|
return input;
|
|
841
854
|
}
|
|
842
|
-
export { createPlugin, package_default, CREATE_OPTION_METADATA, ADD_OPTION_METADATA, INIT_OPTION_METADATA, MIGRATE_OPTION_METADATA, SYNC_OPTION_METADATA, DOCTOR_OPTION_METADATA, TEMPLATES_OPTION_METADATA, GLOBAL_OPTION_METADATA, COMMAND_OPTION_METADATA_BY_GROUP, ALL_COMMAND_OPTION_METADATA, buildCommandOptions, collectOptionNamesByType, buildCommandOptionParser, COMMAND_ROUTING_METADATA, extractKnownOptionValuesFromArgv, resolveCommandOptionValues, collectPositionalIndexes, findFirstPositionalIndex, prefersStructuredCliOutput, emitCliDiagnosticFailure, writeStructuredCliDiagnosticError, 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 };
|
|
855
|
+
export { createPlugin, package_default, CREATE_OPTION_METADATA, ADD_OPTION_METADATA, INIT_OPTION_METADATA, MIGRATE_OPTION_METADATA, MCP_OPTION_METADATA, SYNC_OPTION_METADATA, DOCTOR_OPTION_METADATA, TEMPLATES_OPTION_METADATA, GLOBAL_OPTION_METADATA, COMMAND_OPTION_METADATA_BY_GROUP, ALL_COMMAND_OPTION_METADATA, buildCommandOptions, collectOptionNamesByType, buildCommandOptionParser, COMMAND_ROUTING_METADATA, extractKnownOptionValuesFromArgv, resolveCommandOptionValues, collectPositionalIndexes, findFirstPositionalIndex, prefersStructuredCliOutput, emitCliDiagnosticFailure, writeStructuredCliDiagnosticError, ADD_KIND_IDS, 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 };
|
|
843
856
|
|
|
844
|
-
//# debugId=
|
|
857
|
+
//# debugId=A538A90F648FC90E64756E2164756E21
|
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
resolvePackageManagerId,
|
|
20
20
|
resolveTemplateId,
|
|
21
21
|
scaffoldProject
|
|
22
|
-
} from "./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
22
|
+
} from "./cli-kww2sraq.js";
|
|
23
|
+
import"./cli-1sm60g1z.js";
|
|
24
|
+
import"./cli-6hcbjvym.js";
|
|
25
25
|
import"./cli-gcbre1zs.js";
|
|
26
26
|
import"./cli-bq2v559b.js";
|
|
27
27
|
import {
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
OFFICIAL_WORKSPACE_TEMPLATE_PACKAGE,
|
|
34
34
|
isBuiltInTemplateId
|
|
35
35
|
} from "./cli-tke8twkn.js";
|
|
36
|
-
import"./cli-
|
|
36
|
+
import"./cli-smzkbfna.js";
|
|
37
37
|
import {
|
|
38
38
|
createManagedTempRoot
|
|
39
39
|
} from "./cli-t73q5aqz.js";
|
|
@@ -170924,6 +170924,10 @@ function toSnakeCase(input) {
|
|
|
170924
170924
|
function toPascalCase(input) {
|
|
170925
170925
|
return toKebabCase(input).split("-").filter(Boolean).map(capitalizeSegment).join("");
|
|
170926
170926
|
}
|
|
170927
|
+
function toCamelCase(input) {
|
|
170928
|
+
const pascalCase = toPascalCase(input);
|
|
170929
|
+
return `${pascalCase.charAt(0).toLowerCase()}${pascalCase.slice(1)}`;
|
|
170930
|
+
}
|
|
170927
170931
|
function toSegmentPascalCase(input) {
|
|
170928
170932
|
return input.replace(/[^A-Za-z0-9]+/g, " ").trim().split(/\s+/).filter(Boolean).map(capitalizeSegment).join("");
|
|
170929
170933
|
}
|
|
@@ -171514,7 +171518,9 @@ var WORKSPACE_COMPATIBILITY_CONFIG_FIELD = ` compatibility?: {
|
|
|
171514
171518
|
wordpress?: string;
|
|
171515
171519
|
};
|
|
171516
171520
|
mode: 'baseline' | 'optional' | 'required';
|
|
171521
|
+
optionalFeatureIds: string[];
|
|
171517
171522
|
optionalFeatures: string[];
|
|
171523
|
+
requiredFeatureIds: string[];
|
|
171518
171524
|
requiredFeatures: string[];
|
|
171519
171525
|
runtimeGates: string[];
|
|
171520
171526
|
};
|
|
@@ -172032,6 +172038,27 @@ function ensureInterfaceField(source, interfaceName, fieldName, fieldSource) {
|
|
|
172032
172038
|
return `${start}${body}${body.length > 0 && !body.endsWith(lineEnding) ? lineEnding : ""}${formattedFieldSource}${end}`;
|
|
172033
172039
|
});
|
|
172034
172040
|
}
|
|
172041
|
+
function normalizeInterfaceFieldBlock(source, interfaceName, fieldName, fieldSource, requiredFragments) {
|
|
172042
|
+
const interfacePattern = new RegExp(`(export\\s+interface\\s+${escapeRegex(interfaceName)}\\s*\\{\\r?\\n)([\\s\\S]*?)(\\r?\\n\\})`, "u");
|
|
172043
|
+
return source.replace(interfacePattern, (match, start, body, end) => {
|
|
172044
|
+
const fieldPattern = new RegExp(`(^([ \\t]*)${escapeRegex(fieldName)}\\??:\\s*\\{[ \\t]*\\r?\\n)([\\s\\S]*?)(^\\2\\};\\r?\\n?)`, "mu");
|
|
172045
|
+
const fieldMatch = fieldPattern.exec(body);
|
|
172046
|
+
if (!fieldMatch) {
|
|
172047
|
+
return match;
|
|
172048
|
+
}
|
|
172049
|
+
const existingFieldSource = fieldMatch[0];
|
|
172050
|
+
if (requiredFragments.every((fragment) => existingFieldSource.includes(fragment))) {
|
|
172051
|
+
return match;
|
|
172052
|
+
}
|
|
172053
|
+
const lineEnding = start.endsWith(`\r
|
|
172054
|
+
`) ? `\r
|
|
172055
|
+
` : `
|
|
172056
|
+
`;
|
|
172057
|
+
const formattedFieldSource = `${fieldSource.replace(/\r?\n$/u, "").split(`
|
|
172058
|
+
`).join(lineEnding)}${lineEnding}`;
|
|
172059
|
+
return `${start}${body.slice(0, fieldMatch.index)}${formattedFieldSource}${body.slice(fieldMatch.index + existingFieldSource.length)}${end}`;
|
|
172060
|
+
});
|
|
172061
|
+
}
|
|
172035
172062
|
function updateWorkspaceInventorySource(source, {
|
|
172036
172063
|
blockEntries = [],
|
|
172037
172064
|
blockStyleEntries = [],
|
|
@@ -172063,7 +172090,9 @@ function updateWorkspaceInventorySource(source, {
|
|
|
172063
172090
|
nextSource = ensureInterfaceField(nextSource, "WorkspaceBindingSourceConfig", "attribute", "\tattribute?: string;");
|
|
172064
172091
|
nextSource = ensureInterfaceField(nextSource, "WorkspaceBindingSourceConfig", "block", "\tblock?: string;");
|
|
172065
172092
|
nextSource = ensureInterfaceField(nextSource, "WorkspaceAbilityConfig", "compatibility", WORKSPACE_COMPATIBILITY_CONFIG_FIELD);
|
|
172093
|
+
nextSource = normalizeInterfaceFieldBlock(nextSource, "WorkspaceAbilityConfig", "compatibility", WORKSPACE_COMPATIBILITY_CONFIG_FIELD, ["optionalFeatureIds: string[];", "requiredFeatureIds: string[];"]);
|
|
172066
172094
|
nextSource = ensureInterfaceField(nextSource, "WorkspaceAiFeatureConfig", "compatibility", WORKSPACE_COMPATIBILITY_CONFIG_FIELD);
|
|
172095
|
+
nextSource = normalizeInterfaceFieldBlock(nextSource, "WorkspaceAiFeatureConfig", "compatibility", WORKSPACE_COMPATIBILITY_CONFIG_FIELD, ["optionalFeatureIds: string[];", "requiredFeatureIds: string[];"]);
|
|
172067
172096
|
nextSource = appendEntriesAtMarker(nextSource, EDITOR_PLUGIN_CONFIG_ENTRY_MARKER, editorPluginEntries);
|
|
172068
172097
|
return nextSource;
|
|
172069
172098
|
}
|
|
@@ -172076,6 +172105,6 @@ async function appendWorkspaceInventoryEntries(projectDir, options) {
|
|
|
172076
172105
|
}
|
|
172077
172106
|
}
|
|
172078
172107
|
|
|
172079
|
-
export { HOOKED_BLOCK_POSITION_SET, HOOKED_BLOCK_ANCHOR_PATTERN, toKebabCase, toSnakeCase, toPascalCase, toSegmentPascalCase, toTitleCase, validateBlockSlug, validateNamespace, normalizeBlockSlug, resolveNonEmptyNormalizedBlockSlug, buildBlockCssClassName, buildFrontendCssClassName, resolveScaffoldIdentifiers, ADD_KIND_IDS, REST_RESOURCE_METHOD_IDS, EDITOR_PLUGIN_SLOT_IDS, resolveEditorPluginSlotAlias, ADD_BLOCK_TEMPLATE_IDS, REST_RESOURCE_NAMESPACE_PATTERN, assertValidGeneratedSlug, resolveRestResourceNamespace, assertValidRestResourceMethods, assertValidHookedBlockPosition, getWorkspaceBootstrapPath, buildWorkspacePhpPrefix, isAddBlockTemplateId, quoteTsString, patchFile, readOptionalFile, snapshotWorkspaceFiles, rollbackWorkspaceMutation, resolveWorkspaceBlock, assertValidHookAnchor, assertValidEditorPluginSlot, readWorkspaceBlockJson, getMutableBlockHooks, assertVariationDoesNotExist, assertPatternDoesNotExist, assertBindingSourceDoesNotExist, assertRestResourceDoesNotExist, assertAdminViewDoesNotExist, assertAbilityDoesNotExist, assertAiFeatureDoesNotExist, assertEditorPluginDoesNotExist, formatAddHelpText, require_typescript, escapeRegex, quotePhpString, hasPhpFunctionDefinition, findPhpFunctionRange, replacePhpFunctionDefinition, readWorkspaceInventory, getWorkspaceBlockSelectOptions, updateWorkspaceInventorySource, appendWorkspaceInventoryEntries };
|
|
172108
|
+
export { HOOKED_BLOCK_POSITION_SET, HOOKED_BLOCK_ANCHOR_PATTERN, toKebabCase, toSnakeCase, toPascalCase, toCamelCase, toSegmentPascalCase, toTitleCase, validateBlockSlug, validateNamespace, normalizeBlockSlug, resolveNonEmptyNormalizedBlockSlug, buildBlockCssClassName, buildFrontendCssClassName, resolveScaffoldIdentifiers, ADD_KIND_IDS, REST_RESOURCE_METHOD_IDS, EDITOR_PLUGIN_SLOT_IDS, resolveEditorPluginSlotAlias, ADD_BLOCK_TEMPLATE_IDS, REST_RESOURCE_NAMESPACE_PATTERN, assertValidGeneratedSlug, resolveRestResourceNamespace, assertValidRestResourceMethods, assertValidHookedBlockPosition, getWorkspaceBootstrapPath, buildWorkspacePhpPrefix, isAddBlockTemplateId, quoteTsString, patchFile, readOptionalFile, snapshotWorkspaceFiles, rollbackWorkspaceMutation, resolveWorkspaceBlock, assertValidHookAnchor, assertValidEditorPluginSlot, readWorkspaceBlockJson, getMutableBlockHooks, assertVariationDoesNotExist, assertPatternDoesNotExist, assertBindingSourceDoesNotExist, assertRestResourceDoesNotExist, assertAdminViewDoesNotExist, assertAbilityDoesNotExist, assertAiFeatureDoesNotExist, assertEditorPluginDoesNotExist, formatAddHelpText, require_typescript, escapeRegex, quotePhpString, hasPhpFunctionDefinition, findPhpFunctionRange, replacePhpFunctionDefinition, readWorkspaceInventory, getWorkspaceBlockSelectOptions, updateWorkspaceInventorySource, appendWorkspaceInventoryEntries };
|
|
172080
172109
|
|
|
172081
|
-
//# debugId=
|
|
172110
|
+
//# debugId=D35A39562AB1875A64756E2164756E21
|
package/dist-bunli/cli.js
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
mergeWpTypiaUserConfig,
|
|
20
20
|
package_default,
|
|
21
21
|
writeStructuredCliDiagnosticError
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-n6hgvysz.js";
|
|
23
23
|
import"./cli-03j0axbt.js";
|
|
24
24
|
import {
|
|
25
25
|
GLOBAL_FLAGS,
|
|
@@ -2453,7 +2453,7 @@ async function formatCliError(error) {
|
|
|
2453
2453
|
}
|
|
2454
2454
|
async function createWpTypiaCli(options = {}) {
|
|
2455
2455
|
applyStandaloneSupportLayoutEnv();
|
|
2456
|
-
const { wpTypiaCommands } = await import("./command-list-
|
|
2456
|
+
const { wpTypiaCommands } = await import("./command-list-d3dcvzg2.js");
|
|
2457
2457
|
const cli = await createCLI({
|
|
2458
2458
|
...bunliConfig,
|
|
2459
2459
|
description: package_default.description,
|