wp-typia 0.23.1 → 0.24.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 +1 -0
- package/bin/routing-metadata.generated.js +7 -0
- package/dist-bunli/.bunli/commands.gen.js +9465 -7615
- package/dist-bunli/{cli-epsczb1c.js → cli-0v407aag.js} +1 -1
- package/dist-bunli/{cli-y7w3pybs.js → cli-74y6z3yx.js} +978 -944
- package/dist-bunli/{cli-add-xjaaa01x.js → cli-add-nmdraf20.js} +8694 -7854
- package/dist-bunli/{cli-43mx1vfb.js → cli-bajwv85z.js} +2 -1
- package/dist-bunli/{cli-ymecd15q.js → cli-cwjdzq6n.js} +45 -6
- package/dist-bunli/{cli-doctor-19e8313m.js → cli-doctor-pcss6ecx.js} +98 -12
- package/dist-bunli/{cli-init-2b4yn2cc.js → cli-init-he7vm7kc.js} +3 -3
- package/dist-bunli/{cli-scaffold-4tjw4jk5.js → cli-scaffold-an2k0fnm.js} +6 -6
- package/dist-bunli/{cli-nvs5atj1.js → cli-sw06c521.js} +1 -1
- package/dist-bunli/{cli-k5q5v8g6.js → cli-v0nnagb3.js} +1331 -893
- package/dist-bunli/{cli-fp16mntv.js → cli-y0a8nztv.js} +9 -4
- package/dist-bunli/cli-z48frc8t.js +229 -0
- package/dist-bunli/cli.js +3 -3
- package/dist-bunli/{command-list-vme7dr5v.js → command-list-xaw5agks.js} +170 -29
- package/dist-bunli/{migrations-pb5vvtdp.js → migrations-z7f4kxba.js} +3 -3
- package/dist-bunli/node-cli.js +259 -69
- package/package.json +2 -2
- package/dist-bunli/cli-j8et6jvr.js +0 -123
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
package_default,
|
|
20
20
|
prefersStructuredCliOutput,
|
|
21
21
|
resolveCommandOptionValues
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-cwjdzq6n.js";
|
|
23
23
|
import {
|
|
24
24
|
Result,
|
|
25
25
|
TaggedError,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./cli-t73q5aqz.js";
|
|
39
39
|
import {
|
|
40
40
|
ADD_KIND_IDS
|
|
41
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-bajwv85z.js";
|
|
42
42
|
import {
|
|
43
43
|
CLI_DIAGNOSTIC_CODES,
|
|
44
44
|
createCliDiagnosticCodeError
|
|
@@ -125,11 +125,13 @@ var NAME_TYPE_VISIBLE_FIELDS = [
|
|
|
125
125
|
"name",
|
|
126
126
|
"type"
|
|
127
127
|
];
|
|
128
|
-
var
|
|
128
|
+
var NAME_BLOCK_ATTRIBUTE_POST_META_VISIBLE_FIELDS = [
|
|
129
129
|
"kind",
|
|
130
130
|
"name",
|
|
131
131
|
"block",
|
|
132
|
-
"attribute"
|
|
132
|
+
"attribute",
|
|
133
|
+
"post-meta",
|
|
134
|
+
"meta-path"
|
|
133
135
|
];
|
|
134
136
|
var NAME_BLOCK_VISIBLE_FIELDS = [
|
|
135
137
|
"kind",
|
|
@@ -378,7 +380,7 @@ var aiFeatureAddKindEntry = defineAddKindRegistryEntry({
|
|
|
378
380
|
});
|
|
379
381
|
|
|
380
382
|
// src/add-kinds/binding-source.ts
|
|
381
|
-
var BINDING_SOURCE_MISSING_NAME_MESSAGE = "`wp-typia add binding-source` requires <name>. Usage: wp-typia add binding-source <name> [--block <block-slug|namespace/block-slug> --attribute <attribute>].";
|
|
383
|
+
var BINDING_SOURCE_MISSING_NAME_MESSAGE = "`wp-typia add binding-source` requires <name>. Usage: wp-typia add binding-source <name> [--block <block-slug|namespace/block-slug> --attribute <attribute>] [--from-post-meta <post-meta> --meta-path <field>].";
|
|
382
384
|
var bindingSourceAddKindEntry = defineAddKindRegistryEntry({
|
|
383
385
|
completion: {
|
|
384
386
|
nextSteps: (values) => [
|
|
@@ -386,11 +388,18 @@ var bindingSourceAddKindEntry = defineAddKindRegistryEntry({
|
|
|
386
388
|
...values.blockSlug && values.attributeName ? [
|
|
387
389
|
`Review src/blocks/${values.blockSlug}/block.json for the ${values.attributeName} bindable attribute.`
|
|
388
390
|
] : [],
|
|
391
|
+
...values.postMetaSlug ? [
|
|
392
|
+
`Run wp-typia sync-rest --check after editing ${values.schemaFile}.`
|
|
393
|
+
] : [],
|
|
389
394
|
"Run your workspace build or dev command to verify the binding source hooks and editor registration."
|
|
390
395
|
],
|
|
391
396
|
summaryLines: (values, projectDir) => [
|
|
392
397
|
`Binding source: ${values.bindingSourceSlug}`,
|
|
393
398
|
...values.blockSlug && values.attributeName ? [`Target: ${values.blockSlug}.${values.attributeName}`] : [],
|
|
399
|
+
...values.postMetaSlug ? [
|
|
400
|
+
`Post meta: ${values.postMetaSlug}`,
|
|
401
|
+
`Meta field: ${values.metaPath}`
|
|
402
|
+
] : [],
|
|
394
403
|
`Project directory: ${projectDir}`
|
|
395
404
|
],
|
|
396
405
|
title: "Added binding source"
|
|
@@ -400,17 +409,26 @@ var bindingSourceAddKindEntry = defineAddKindRegistryEntry({
|
|
|
400
409
|
async prepareExecution(context) {
|
|
401
410
|
const name = requireAddKindName(context, BINDING_SOURCE_MISSING_NAME_MESSAGE);
|
|
402
411
|
const [blockName, attributeName] = readOptionalPairedStrictStringFlags(context.flags, "block", "attribute", "`wp-typia add binding-source` requires --block and --attribute to be provided together.");
|
|
412
|
+
const postMetaName = readOptionalDashedOrCamelStringFlag(context.flags, "from-post-meta", "fromPostMeta") ?? readOptionalDashedOrCamelStringFlag(context.flags, "post-meta", "postMeta");
|
|
413
|
+
const metaPath = readOptionalDashedOrCamelStringFlag(context.flags, "meta-path", "metaPath");
|
|
403
414
|
return createNamedExecutionPlan(context, {
|
|
404
415
|
execute: ({ cwd, name: name2 }) => context.addRuntime.runAddBindingSourceCommand({
|
|
405
416
|
attributeName,
|
|
406
417
|
bindingSourceName: name2,
|
|
407
418
|
blockName,
|
|
408
|
-
cwd
|
|
419
|
+
cwd,
|
|
420
|
+
metaPath,
|
|
421
|
+
postMetaName
|
|
409
422
|
}),
|
|
410
423
|
getValues: (result) => ({
|
|
411
424
|
...result.attributeName ? { attributeName: result.attributeName } : {},
|
|
412
425
|
...result.blockSlug ? { blockSlug: result.blockSlug } : {},
|
|
413
|
-
bindingSourceSlug: result.bindingSourceSlug
|
|
426
|
+
bindingSourceSlug: result.bindingSourceSlug,
|
|
427
|
+
...result.metaKey ? { metaKey: result.metaKey } : {},
|
|
428
|
+
...result.metaPath ? { metaPath: result.metaPath } : {},
|
|
429
|
+
...result.postMetaSlug ? { postMetaSlug: result.postMetaSlug } : {},
|
|
430
|
+
...result.postType ? { postType: result.postType } : {},
|
|
431
|
+
...result.schemaFile ? { schemaFile: result.schemaFile } : {}
|
|
414
432
|
}),
|
|
415
433
|
missingNameMessage: BINDING_SOURCE_MISSING_NAME_MESSAGE,
|
|
416
434
|
name,
|
|
@@ -419,8 +437,8 @@ var bindingSourceAddKindEntry = defineAddKindRegistryEntry({
|
|
|
419
437
|
},
|
|
420
438
|
sortOrder: 70,
|
|
421
439
|
supportsDryRun: true,
|
|
422
|
-
usage: "wp-typia add binding-source <name> [--block <block-slug|namespace/block-slug> --attribute <attribute>] [--dry-run]",
|
|
423
|
-
visibleFieldNames: () =>
|
|
440
|
+
usage: "wp-typia add binding-source <name> [--block <block-slug|namespace/block-slug> --attribute <attribute>] [--from-post-meta|--post-meta <post-meta> [--meta-path <field>]] [--dry-run]",
|
|
441
|
+
visibleFieldNames: () => NAME_BLOCK_ATTRIBUTE_POST_META_VISIBLE_FIELDS
|
|
424
442
|
});
|
|
425
443
|
|
|
426
444
|
// src/external-layer-prompt-options.ts
|
|
@@ -562,6 +580,74 @@ var contractAddKindEntry = defineAddKindRegistryEntry({
|
|
|
562
580
|
visibleFieldNames: () => NAME_TYPE_VISIBLE_FIELDS
|
|
563
581
|
});
|
|
564
582
|
|
|
583
|
+
// src/add-kinds/core-variation.ts
|
|
584
|
+
var CORE_VARIATION_MISSING_NAME_MESSAGE = "`wp-typia add core-variation` requires <name>. Usage: wp-typia add core-variation <block-name> <name> or wp-typia add core-variation <name> --block <namespace/block>.";
|
|
585
|
+
var CORE_VARIATION_MISSING_BLOCK_MESSAGE = "`wp-typia add core-variation` requires <block-name>. Usage: wp-typia add core-variation <block-name> <name> or wp-typia add core-variation <name> --block <namespace/block>.";
|
|
586
|
+
function resolveCoreVariationInputs(context) {
|
|
587
|
+
const positionalTargetBlockName = context.positionalArgs?.[1];
|
|
588
|
+
const positionalVariationName = context.positionalArgs?.[2];
|
|
589
|
+
if (positionalVariationName) {
|
|
590
|
+
if (!positionalTargetBlockName) {
|
|
591
|
+
throw createCliDiagnosticCodeError(CLI_DIAGNOSTIC_CODES.MISSING_ARGUMENT, CORE_VARIATION_MISSING_BLOCK_MESSAGE);
|
|
592
|
+
}
|
|
593
|
+
return {
|
|
594
|
+
targetBlockName: positionalTargetBlockName,
|
|
595
|
+
variationName: positionalVariationName
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
if (context.name?.includes("/") && !readOptionalStrictStringFlag(context.flags, "block")) {
|
|
599
|
+
throw createCliDiagnosticCodeError(CLI_DIAGNOSTIC_CODES.MISSING_ARGUMENT, CORE_VARIATION_MISSING_NAME_MESSAGE);
|
|
600
|
+
}
|
|
601
|
+
const variationName = requireAddKindName(context, CORE_VARIATION_MISSING_NAME_MESSAGE);
|
|
602
|
+
const targetBlockName = readOptionalStrictStringFlag(context.flags, "block");
|
|
603
|
+
if (!targetBlockName) {
|
|
604
|
+
throw createCliDiagnosticCodeError(CLI_DIAGNOSTIC_CODES.MISSING_ARGUMENT, CORE_VARIATION_MISSING_BLOCK_MESSAGE);
|
|
605
|
+
}
|
|
606
|
+
return {
|
|
607
|
+
targetBlockName,
|
|
608
|
+
variationName
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
var coreVariationAddKindEntry = defineAddKindRegistryEntry({
|
|
612
|
+
completion: {
|
|
613
|
+
nextSteps: (values) => [
|
|
614
|
+
`Review ${values.variationFile}.`,
|
|
615
|
+
"Run your workspace build or dev command to verify the editor-side variation registration."
|
|
616
|
+
],
|
|
617
|
+
summaryLines: (values, projectDir) => [
|
|
618
|
+
`Core variation: ${values.variationSlug}`,
|
|
619
|
+
`Target block: ${values.targetBlockName}`,
|
|
620
|
+
`Project directory: ${projectDir}`
|
|
621
|
+
],
|
|
622
|
+
title: "Added core block variation"
|
|
623
|
+
},
|
|
624
|
+
description: "Add an editor-side variation for an existing core or external block",
|
|
625
|
+
nameLabel: "Variation name",
|
|
626
|
+
async prepareExecution(context) {
|
|
627
|
+
const { targetBlockName, variationName } = resolveCoreVariationInputs(context);
|
|
628
|
+
return createNamedExecutionPlan(context, {
|
|
629
|
+
execute: ({ cwd, name }) => context.addRuntime.runAddCoreVariationCommand({
|
|
630
|
+
cwd,
|
|
631
|
+
targetBlockName,
|
|
632
|
+
variationName: name
|
|
633
|
+
}),
|
|
634
|
+
getValues: (result) => ({
|
|
635
|
+
targetBlockName: result.targetBlockName,
|
|
636
|
+
variationFile: result.variationFile,
|
|
637
|
+
variationSlug: result.variationSlug
|
|
638
|
+
}),
|
|
639
|
+
missingNameMessage: CORE_VARIATION_MISSING_NAME_MESSAGE,
|
|
640
|
+
name: variationName,
|
|
641
|
+
warnLine: context.warnLine
|
|
642
|
+
});
|
|
643
|
+
},
|
|
644
|
+
sortOrder: 25,
|
|
645
|
+
supportsDryRun: true,
|
|
646
|
+
usage: `wp-typia add core-variation <block-name> <name> [--dry-run]
|
|
647
|
+
Alias: wp-typia add core-variation <name> --block <namespace/block> [--dry-run]`,
|
|
648
|
+
visibleFieldNames: () => NAME_BLOCK_VISIBLE_FIELDS
|
|
649
|
+
});
|
|
650
|
+
|
|
565
651
|
// src/add-kinds/editor-plugin.ts
|
|
566
652
|
var EDITOR_PLUGIN_MISSING_NAME_MESSAGE = "`wp-typia add editor-plugin` requires <name>. Usage: wp-typia add editor-plugin <name> [--slot <sidebar|document-setting-panel>].";
|
|
567
653
|
var editorPluginAddKindEntry = defineAddKindRegistryEntry({
|
|
@@ -704,33 +790,51 @@ var PATTERN_MISSING_NAME_MESSAGE = "`wp-typia add pattern` requires <name>. Usag
|
|
|
704
790
|
var patternAddKindEntry = defineAddKindRegistryEntry({
|
|
705
791
|
completion: {
|
|
706
792
|
nextSteps: (values) => [
|
|
707
|
-
`Review
|
|
793
|
+
`Review ${values.contentFile}.`,
|
|
708
794
|
"Run your workspace build or dev command to verify the new pattern registration."
|
|
709
795
|
],
|
|
710
796
|
summaryLines: (values, projectDir) => [
|
|
711
797
|
`Pattern: ${values.patternSlug}`,
|
|
798
|
+
`Content file: ${values.contentFile}`,
|
|
712
799
|
`Project directory: ${projectDir}`
|
|
713
800
|
],
|
|
714
801
|
title: "Added workspace pattern"
|
|
715
802
|
},
|
|
716
803
|
description: "Add a PHP block pattern shell",
|
|
804
|
+
hiddenStringSubmitFields: [
|
|
805
|
+
"scope",
|
|
806
|
+
"section-role",
|
|
807
|
+
"tags",
|
|
808
|
+
"thumbnail-url"
|
|
809
|
+
],
|
|
717
810
|
nameLabel: "Pattern name",
|
|
718
811
|
async prepareExecution(context) {
|
|
719
|
-
|
|
720
|
-
|
|
812
|
+
const name = requireAddKindName(context, PATTERN_MISSING_NAME_MESSAGE);
|
|
813
|
+
const scope = typeof context.flags.scope === "string" ? context.flags.scope : undefined;
|
|
814
|
+
const sectionRole = typeof context.flags["section-role"] === "string" ? context.flags["section-role"] : undefined;
|
|
815
|
+
const tags = typeof context.flags.tags === "string" ? context.flags.tags : undefined;
|
|
816
|
+
const thumbnailUrl = typeof context.flags["thumbnail-url"] === "string" ? context.flags["thumbnail-url"] : undefined;
|
|
817
|
+
return {
|
|
818
|
+
execute: (cwd) => context.addRuntime.runAddPatternCommand({
|
|
721
819
|
cwd,
|
|
722
|
-
|
|
820
|
+
patternScope: scope,
|
|
821
|
+
patternName: name,
|
|
822
|
+
sectionRole,
|
|
823
|
+
tags,
|
|
824
|
+
thumbnailUrl
|
|
723
825
|
}),
|
|
724
826
|
getValues: (result) => ({
|
|
725
|
-
|
|
827
|
+
contentFile: result.contentFile,
|
|
828
|
+
patternSlug: result.patternSlug,
|
|
829
|
+
patternScope: result.patternScope,
|
|
830
|
+
...result.sectionRole ? { sectionRole: result.sectionRole } : {}
|
|
726
831
|
}),
|
|
727
|
-
missingNameMessage: PATTERN_MISSING_NAME_MESSAGE,
|
|
728
832
|
warnLine: context.warnLine
|
|
729
|
-
}
|
|
833
|
+
};
|
|
730
834
|
},
|
|
731
835
|
sortOrder: 60,
|
|
732
836
|
supportsDryRun: true,
|
|
733
|
-
usage: "wp-typia add pattern <name> [--dry-run]",
|
|
837
|
+
usage: "wp-typia add pattern <name> [--scope <full|section>] [--section-role <role>] [--tags <tag,...>] [--thumbnail-url <url>] [--dry-run]",
|
|
734
838
|
visibleFieldNames: () => NAME_ONLY_VISIBLE_FIELDS
|
|
735
839
|
});
|
|
736
840
|
|
|
@@ -806,6 +910,31 @@ var REST_RESOURCE_MISSING_NAME_MESSAGE = [
|
|
|
806
910
|
` ${REST_RESOURCE_MANUAL_USAGE}`
|
|
807
911
|
].join(`
|
|
808
912
|
`);
|
|
913
|
+
var SECRET_PRESERVE_ON_EMPTY_TRUE_VALUES = new Set(["1", "true", "yes"]);
|
|
914
|
+
var SECRET_PRESERVE_ON_EMPTY_FALSE_VALUES = new Set(["0", "false", "no"]);
|
|
915
|
+
function readOptionalSecretPreserveOnEmptyFlag(flags) {
|
|
916
|
+
const value = flags["secret-preserve-on-empty"] ?? flags.secretPreserveOnEmpty;
|
|
917
|
+
if (value === undefined || value === null) {
|
|
918
|
+
return;
|
|
919
|
+
}
|
|
920
|
+
if (typeof value === "boolean") {
|
|
921
|
+
return value;
|
|
922
|
+
}
|
|
923
|
+
if (typeof value !== "string") {
|
|
924
|
+
throw createCliDiagnosticCodeError(CLI_DIAGNOSTIC_CODES.MISSING_ARGUMENT, "`--secret-preserve-on-empty` requires a value.");
|
|
925
|
+
}
|
|
926
|
+
const normalized = value.trim().toLowerCase();
|
|
927
|
+
if (normalized.length === 0) {
|
|
928
|
+
throw createCliDiagnosticCodeError(CLI_DIAGNOSTIC_CODES.MISSING_ARGUMENT, "`--secret-preserve-on-empty` requires a value.");
|
|
929
|
+
}
|
|
930
|
+
if (SECRET_PRESERVE_ON_EMPTY_TRUE_VALUES.has(normalized)) {
|
|
931
|
+
return true;
|
|
932
|
+
}
|
|
933
|
+
if (SECRET_PRESERVE_ON_EMPTY_FALSE_VALUES.has(normalized)) {
|
|
934
|
+
return false;
|
|
935
|
+
}
|
|
936
|
+
throw createCliDiagnosticCodeError(CLI_DIAGNOSTIC_CODES.INVALID_ARGUMENT, "Manual REST contract --secret-preserve-on-empty must be true or false.");
|
|
937
|
+
}
|
|
809
938
|
var restResourceAddKindEntry = defineAddKindRegistryEntry({
|
|
810
939
|
completion: {
|
|
811
940
|
nextSteps: (values) => values.mode === "manual" ? [
|
|
@@ -877,7 +1006,7 @@ var restResourceAddKindEntry = defineAddKindRegistryEntry({
|
|
|
877
1006
|
const secretFieldName = readOptionalDashedOrCamelStringFlag(context.flags, "secret-field", "secretField");
|
|
878
1007
|
const secretHasValueFieldName = readOptionalDashedOrCamelStringFlag(context.flags, "secret-has-value-field", "secretHasValueField");
|
|
879
1008
|
const secretMaskedResponseFieldName = readOptionalDashedOrCamelStringFlag(context.flags, "secret-masked-response-field", "secretMaskedResponseField");
|
|
880
|
-
const secretPreserveOnEmpty =
|
|
1009
|
+
const secretPreserveOnEmpty = readOptionalSecretPreserveOnEmptyFlag(context.flags);
|
|
881
1010
|
const secretStateFieldName = readOptionalDashedOrCamelStringFlag(context.flags, "secret-state-field", "secretStateField");
|
|
882
1011
|
return createNamedExecutionPlan(context, {
|
|
883
1012
|
execute: ({ cwd, name: name2 }) => context.addRuntime.runAddRestResourceCommand({
|
|
@@ -1062,6 +1191,7 @@ var ADD_KIND_REGISTRY = {
|
|
|
1062
1191
|
"admin-view": adminViewAddKindEntry,
|
|
1063
1192
|
block: blockAddKindEntry,
|
|
1064
1193
|
"integration-env": integrationEnvAddKindEntry,
|
|
1194
|
+
"core-variation": coreVariationAddKindEntry,
|
|
1065
1195
|
variation: variationAddKindEntry,
|
|
1066
1196
|
style: styleAddKindEntry,
|
|
1067
1197
|
transform: transformAddKindEntry,
|
|
@@ -1661,7 +1791,7 @@ function pushFlag(argv, name, value) {
|
|
|
1661
1791
|
}
|
|
1662
1792
|
|
|
1663
1793
|
// src/runtime-bridge-add.ts
|
|
1664
|
-
var loadCliAddRuntime = () => import("./cli-add-
|
|
1794
|
+
var loadCliAddRuntime = () => import("./cli-add-nmdraf20.js");
|
|
1665
1795
|
var loadCliPromptRuntime = () => import("./cli-prompt-ncyg68rn.js");
|
|
1666
1796
|
async function executeWorkspaceAddWithOptionalDryRun(options) {
|
|
1667
1797
|
const simulated = options.dryRun ? await simulateWorkspaceAddDryRun({
|
|
@@ -1713,6 +1843,7 @@ async function executeAddCommand({
|
|
|
1713
1843
|
interactive,
|
|
1714
1844
|
kind,
|
|
1715
1845
|
name,
|
|
1846
|
+
positionalArgs,
|
|
1716
1847
|
printLine = console.log,
|
|
1717
1848
|
prompt,
|
|
1718
1849
|
warnLine = console.warn
|
|
@@ -1748,6 +1879,7 @@ async function executeAddCommand({
|
|
|
1748
1879
|
},
|
|
1749
1880
|
isInteractiveSession,
|
|
1750
1881
|
name,
|
|
1882
|
+
positionalArgs,
|
|
1751
1883
|
warnLine
|
|
1752
1884
|
};
|
|
1753
1885
|
return await executePlannedAddKind(kind, executionContext, {
|
|
@@ -1769,7 +1901,7 @@ async function executeAddCommand({
|
|
|
1769
1901
|
}
|
|
1770
1902
|
// src/runtime-bridge-create.ts
|
|
1771
1903
|
var loadCliPromptRuntime2 = () => import("./cli-prompt-ncyg68rn.js");
|
|
1772
|
-
var loadCliScaffoldRuntime = () => import("./cli-scaffold-
|
|
1904
|
+
var loadCliScaffoldRuntime = () => import("./cli-scaffold-an2k0fnm.js");
|
|
1773
1905
|
var loadCliTemplatesRuntime = () => import("./cli-templates-g8t4fm11.js");
|
|
1774
1906
|
var loadCreateTemplateValidationRuntime = () => import("./create-template-validation-4fr851vg.js");
|
|
1775
1907
|
var PACKAGE_MANAGER_PROMPT_OPTIONS = [
|
|
@@ -1890,7 +2022,7 @@ async function executeCreateCommand({
|
|
|
1890
2022
|
}
|
|
1891
2023
|
}
|
|
1892
2024
|
// src/runtime-bridge-doctor.ts
|
|
1893
|
-
var loadCliDoctorRuntime = () => import("./cli-doctor-
|
|
2025
|
+
var loadCliDoctorRuntime = () => import("./cli-doctor-pcss6ecx.js");
|
|
1894
2026
|
async function executeDoctorCommand(cwd, options = {}) {
|
|
1895
2027
|
try {
|
|
1896
2028
|
const { runDoctor } = await loadCliDoctorRuntime();
|
|
@@ -1901,7 +2033,7 @@ async function executeDoctorCommand(cwd, options = {}) {
|
|
|
1901
2033
|
}
|
|
1902
2034
|
// src/runtime-bridge-init.ts
|
|
1903
2035
|
import path2 from "path";
|
|
1904
|
-
var loadCliInitRuntime = () => import("./cli-init-
|
|
2036
|
+
var loadCliInitRuntime = () => import("./cli-init-he7vm7kc.js");
|
|
1905
2037
|
async function executeInitCommand({ apply, cwd, packageManager, projectDir }, options = {}) {
|
|
1906
2038
|
try {
|
|
1907
2039
|
const { runInitCommand } = await loadCliInitRuntime();
|
|
@@ -1927,7 +2059,7 @@ async function executeInitCommand({ apply, cwd, packageManager, projectDir }, op
|
|
|
1927
2059
|
}
|
|
1928
2060
|
}
|
|
1929
2061
|
// src/runtime-bridge-migrate.ts
|
|
1930
|
-
var loadMigrationsRuntime = () => import("./migrations-
|
|
2062
|
+
var loadMigrationsRuntime = () => import("./migrations-z7f4kxba.js");
|
|
1931
2063
|
var defaultPrintLine2 = (line) => {
|
|
1932
2064
|
process.stdout.write(`${line}
|
|
1933
2065
|
`);
|
|
@@ -2650,6 +2782,12 @@ function loadAddFlow() {
|
|
|
2650
2782
|
})).then((module) => ({ default: module.AddFlow }));
|
|
2651
2783
|
}
|
|
2652
2784
|
var addOptions = buildCommandOptions(ADD_OPTION_METADATA);
|
|
2785
|
+
function resolveAddCommandName(positional) {
|
|
2786
|
+
if (positional[0] === "core-variation" && positional[2]) {
|
|
2787
|
+
return positional[2];
|
|
2788
|
+
}
|
|
2789
|
+
return positional[1];
|
|
2790
|
+
}
|
|
2653
2791
|
var addCommand = defineCommand({
|
|
2654
2792
|
defaultFormat: "toon",
|
|
2655
2793
|
description: "Extend an official wp-typia workspace with blocks, integration envs, variations, block styles, transforms, patterns, binding sources, standalone contracts, plugin-level REST resources, post meta contracts, workflow abilities, server-only AI features, editor plugins, or hooked blocks.",
|
|
@@ -2664,14 +2802,15 @@ var addCommand = defineCommand({
|
|
|
2664
2802
|
flags: args.flags,
|
|
2665
2803
|
interactive: false,
|
|
2666
2804
|
kind: args.positional[0],
|
|
2667
|
-
name: args.positional
|
|
2805
|
+
name: resolveAddCommandName(args.positional),
|
|
2806
|
+
positionalArgs: args.positional,
|
|
2668
2807
|
printLine,
|
|
2669
2808
|
warnLine
|
|
2670
2809
|
});
|
|
2671
2810
|
args.output(buildStructuredCompletionSuccessPayload("add", completion, {
|
|
2672
2811
|
dryRun: Boolean(args.flags["dry-run"]),
|
|
2673
2812
|
kind: args.positional[0],
|
|
2674
|
-
name: args.positional
|
|
2813
|
+
name: resolveAddCommandName(args.positional),
|
|
2675
2814
|
projectDir: extractCompletionProjectDir(completion) ?? args.cwd
|
|
2676
2815
|
}));
|
|
2677
2816
|
return;
|
|
@@ -2680,7 +2819,8 @@ var addCommand = defineCommand({
|
|
|
2680
2819
|
cwd: args.cwd,
|
|
2681
2820
|
flags: args.flags,
|
|
2682
2821
|
kind: args.positional[0],
|
|
2683
|
-
name: args.positional
|
|
2822
|
+
name: resolveAddCommandName(args.positional),
|
|
2823
|
+
positionalArgs: args.positional,
|
|
2684
2824
|
printLine,
|
|
2685
2825
|
warnLine
|
|
2686
2826
|
});
|
|
@@ -2708,7 +2848,8 @@ var addCommand = defineCommand({
|
|
|
2708
2848
|
initialValues: {
|
|
2709
2849
|
...initialValues,
|
|
2710
2850
|
kind: args.positional[0] ?? "block",
|
|
2711
|
-
name: args.positional
|
|
2851
|
+
name: resolveAddCommandName(args.positional) ?? "",
|
|
2852
|
+
...args.positional[0] === "core-variation" && args.positional[2] ? { block: args.positional[1] } : {},
|
|
2712
2853
|
position: initialValues.position ?? "after",
|
|
2713
2854
|
slot: initialValues.slot ?? "sidebar"
|
|
2714
2855
|
}
|
|
@@ -2814,7 +2955,7 @@ var doctorCommand = defineCommand({
|
|
|
2814
2955
|
createDoctorRunSummary,
|
|
2815
2956
|
getDoctorChecks,
|
|
2816
2957
|
getDoctorExitFailureDetailLines
|
|
2817
|
-
} = await import("./cli-doctor-
|
|
2958
|
+
} = await import("./cli-doctor-pcss6ecx.js");
|
|
2818
2959
|
const checks = await getDoctorChecks(args.cwd);
|
|
2819
2960
|
const summary = createDoctorRunSummary(checks, {
|
|
2820
2961
|
exitPolicy: doctorExitPolicy
|
|
@@ -3709,4 +3850,4 @@ export {
|
|
|
3709
3850
|
wpTypiaCommands
|
|
3710
3851
|
};
|
|
3711
3852
|
|
|
3712
|
-
//# debugId=
|
|
3853
|
+
//# debugId=57FDA4D19922070564756E2164756E21
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
snapshotProjectVersion,
|
|
16
16
|
verifyProjectMigrations,
|
|
17
17
|
wizardProjectMigrations
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-0v407aag.js";
|
|
19
19
|
import"./cli-e4bwd81c.js";
|
|
20
|
-
import"./cli-
|
|
20
|
+
import"./cli-v0nnagb3.js";
|
|
21
21
|
import"./cli-cvxvcw7c.js";
|
|
22
|
-
import"./cli-
|
|
22
|
+
import"./cli-bajwv85z.js";
|
|
23
23
|
import"./cli-tq730sqt.js";
|
|
24
24
|
import"./cli-1170yyve.js";
|
|
25
25
|
import"./cli-am5x7tb4.js";
|