wp-typia 0.22.9 → 0.22.10
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 +2781 -2630
- package/dist-bunli/{cli-xw1wbxf3.js → cli-1k61xyn2.js} +1 -1
- package/dist-bunli/{cli-arz4rcye.js → cli-2mswafd6.js} +6 -6
- package/dist-bunli/{cli-2pnk64h0.js → cli-2x49egkd.js} +19 -21
- package/dist-bunli/{cli-regw5384.js → cli-3fzqhpx9.js} +1040 -1034
- package/dist-bunli/{cli-add-6dn9h94t.js → cli-add-8rvmezy0.js} +21 -21
- package/dist-bunli/{cli-doctor-564c43ay.js → cli-doctor-5m6xyx9q.js} +7 -7
- package/dist-bunli/{cli-init-znhqp8tr.js → cli-init-qv3zxmvc.js} +4 -4
- package/dist-bunli/{cli-scaffold-6trxyyk6.js → cli-scaffold-b1ex2y80.js} +8 -8
- package/dist-bunli/{cli-y934dq2k.js → cli-spdrcg8k.js} +117 -99
- package/dist-bunli/{cli-ag722tzm.js → cli-tjf0070f.js} +9 -5
- package/dist-bunli/cli.js +2 -2
- package/dist-bunli/{command-list-g3qhb3y4.js → command-list-h96cft88.js} +596 -489
- package/dist-bunli/{migrations-qc1r0yqe.js → migrations-7g9rag5d.js} +3 -3
- package/dist-bunli/node-cli.js +728 -588
- package/package.json +2 -2
|
@@ -20,7 +20,18 @@ import {
|
|
|
20
20
|
scaffoldProject,
|
|
21
21
|
syncPersistenceRestArtifacts,
|
|
22
22
|
updatePluginHeaderCompatibility
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-2x49egkd.js";
|
|
24
|
+
import {
|
|
25
|
+
parseTemplateLocator,
|
|
26
|
+
require_semver
|
|
27
|
+
} from "./cli-8reep89s.js";
|
|
28
|
+
import {
|
|
29
|
+
findExecutablePatternMatch,
|
|
30
|
+
hasExecutablePattern,
|
|
31
|
+
hasUncommentedPattern,
|
|
32
|
+
maskTypeScriptCommentsAndLiterals
|
|
33
|
+
} from "./cli-rwjkqjhs.js";
|
|
34
|
+
import"./cli-1k61xyn2.js";
|
|
24
35
|
import {
|
|
25
36
|
DEFAULT_WORDPRESS_ABILITIES_VERSION,
|
|
26
37
|
DEFAULT_WORDPRESS_CORE_ABILITIES_VERSION,
|
|
@@ -30,31 +41,19 @@ import {
|
|
|
30
41
|
DEFAULT_WP_TYPIA_DATAVIEWS_VERSION,
|
|
31
42
|
getPackageVersions,
|
|
32
43
|
resolveManagedPackageVersionRange
|
|
33
|
-
} from "./cli-
|
|
44
|
+
} from "./cli-2mswafd6.js";
|
|
34
45
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./cli-8reep89s.js";
|
|
46
|
+
SHARED_WORKSPACE_TEMPLATE_ROOT
|
|
47
|
+
} from "./cli-qse6myha.js";
|
|
38
48
|
import {
|
|
39
49
|
snapshotProjectVersion
|
|
40
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-tjf0070f.js";
|
|
41
51
|
import {
|
|
42
52
|
ensureMigrationDirectories,
|
|
43
53
|
parseMigrationConfig,
|
|
44
54
|
writeInitialMigrationScaffold,
|
|
45
55
|
writeMigrationConfig
|
|
46
56
|
} from "./cli-2rqf6t0b.js";
|
|
47
|
-
import"./cli-bq2v559b.js";
|
|
48
|
-
import {
|
|
49
|
-
findExecutablePatternMatch,
|
|
50
|
-
hasExecutablePattern,
|
|
51
|
-
hasUncommentedPattern,
|
|
52
|
-
maskTypeScriptCommentsAndLiterals
|
|
53
|
-
} from "./cli-rwjkqjhs.js";
|
|
54
|
-
import"./cli-xw1wbxf3.js";
|
|
55
|
-
import {
|
|
56
|
-
SHARED_WORKSPACE_TEMPLATE_ROOT
|
|
57
|
-
} from "./cli-qse6myha.js";
|
|
58
57
|
import {
|
|
59
58
|
ADD_BLOCK_TEMPLATE_IDS,
|
|
60
59
|
EDITOR_PLUGIN_SLOT_IDS,
|
|
@@ -86,6 +85,7 @@ import {
|
|
|
86
85
|
hasPhpFunctionCall,
|
|
87
86
|
hasPhpFunctionDefinition,
|
|
88
87
|
isAddBlockTemplateId,
|
|
88
|
+
isFileNotFoundError,
|
|
89
89
|
normalizeBlockSlug,
|
|
90
90
|
patchFile,
|
|
91
91
|
pathExists,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
toPascalCase,
|
|
109
109
|
toSnakeCase,
|
|
110
110
|
toTitleCase
|
|
111
|
-
} from "./cli-
|
|
111
|
+
} from "./cli-3fzqhpx9.js";
|
|
112
112
|
import"./cli-cvxvcw7c.js";
|
|
113
113
|
import {
|
|
114
114
|
createManagedTempRoot
|
|
@@ -123,6 +123,7 @@ import {
|
|
|
123
123
|
import {
|
|
124
124
|
formatInstallCommand
|
|
125
125
|
} from "./cli-52ke0ptp.js";
|
|
126
|
+
import"./cli-bq2v559b.js";
|
|
126
127
|
import {
|
|
127
128
|
__reExport,
|
|
128
129
|
__toESM
|
|
@@ -5297,8 +5298,7 @@ async function reconcileGeneratedArtifact(options) {
|
|
|
5297
5298
|
throw new Error(`Generated AI feature artifact is stale: ${options.label} (${options.filePath}).`);
|
|
5298
5299
|
}
|
|
5299
5300
|
} catch (error) {
|
|
5300
|
-
|
|
5301
|
-
if (code === "ENOENT") {
|
|
5301
|
+
if (isFileNotFoundError(error)) {
|
|
5302
5302
|
throw new Error(`Generated AI feature artifact is missing: ${options.label} (${options.filePath}).`);
|
|
5303
5303
|
}
|
|
5304
5304
|
throw error;
|
|
@@ -7423,4 +7423,4 @@ export {
|
|
|
7423
7423
|
ADD_BLOCK_TEMPLATE_IDS
|
|
7424
7424
|
};
|
|
7425
7425
|
|
|
7426
|
-
//# debugId=
|
|
7426
|
+
//# debugId=B9D15C6E02FD001464756E2164756E21
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
getBuiltInTemplateLayerDirs,
|
|
9
9
|
isOmittableBuiltInTemplateLayerDir
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-1k61xyn2.js";
|
|
11
11
|
import {
|
|
12
12
|
isBuiltInTemplateId,
|
|
13
13
|
listTemplates
|
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
REST_RESOURCE_METHOD_IDS,
|
|
20
20
|
REST_RESOURCE_NAMESPACE_PATTERN,
|
|
21
21
|
escapeRegex,
|
|
22
|
-
|
|
22
|
+
readWorkspaceInventoryAsync,
|
|
23
23
|
resolveEditorPluginSlotAlias
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-3fzqhpx9.js";
|
|
25
25
|
import"./cli-cvxvcw7c.js";
|
|
26
26
|
import"./cli-t73q5aqz.js";
|
|
27
27
|
import"./cli-fys8vm2t.js";
|
|
@@ -1036,7 +1036,7 @@ function formatWorkspaceInventorySummary(inventory) {
|
|
|
1036
1036
|
`${inventory.adminViews.length} admin view(s)`
|
|
1037
1037
|
].join(", ");
|
|
1038
1038
|
}
|
|
1039
|
-
function getWorkspaceDoctorChecks(cwd) {
|
|
1039
|
+
async function getWorkspaceDoctorChecks(cwd) {
|
|
1040
1040
|
const checks = [];
|
|
1041
1041
|
let workspace = null;
|
|
1042
1042
|
let invalidWorkspaceReason = null;
|
|
@@ -1067,7 +1067,7 @@ function getWorkspaceDoctorChecks(cwd) {
|
|
|
1067
1067
|
}
|
|
1068
1068
|
checks.push(getWorkspacePackageMetadataCheck(workspace, workspacePackageJson));
|
|
1069
1069
|
try {
|
|
1070
|
-
const inventory =
|
|
1070
|
+
const inventory = await readWorkspaceInventoryAsync(workspace.projectDir);
|
|
1071
1071
|
checks.push(createDoctorCheck2("Workspace inventory", "pass", formatWorkspaceInventorySummary(inventory)));
|
|
1072
1072
|
checks.push(...getWorkspaceBlockDoctorChecks(workspace, inventory));
|
|
1073
1073
|
checks.push(...getWorkspaceBindingDoctorChecks(workspace, inventory));
|
|
@@ -1086,7 +1086,7 @@ function getWorkspaceDoctorChecks(cwd) {
|
|
|
1086
1086
|
async function getDoctorChecks(cwd) {
|
|
1087
1087
|
return [
|
|
1088
1088
|
...await getEnvironmentDoctorChecks(cwd),
|
|
1089
|
-
...getWorkspaceDoctorChecks(cwd)
|
|
1089
|
+
...await getWorkspaceDoctorChecks(cwd)
|
|
1090
1090
|
];
|
|
1091
1091
|
}
|
|
1092
1092
|
async function runDoctor(cwd, options = {}) {
|
|
@@ -1115,4 +1115,4 @@ export {
|
|
|
1115
1115
|
getDoctorChecks
|
|
1116
1116
|
};
|
|
1117
1117
|
|
|
1118
|
-
//# debugId=
|
|
1118
|
+
//# debugId=927037660E5564A064756E2164756E21
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
getPackageVersions
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-2mswafd6.js";
|
|
5
|
+
import"./cli-qse6myha.js";
|
|
5
6
|
import {
|
|
6
7
|
discoverMigrationInitLayout
|
|
7
8
|
} from "./cli-2rqf6t0b.js";
|
|
8
|
-
import"./cli-qse6myha.js";
|
|
9
9
|
import {
|
|
10
10
|
quoteTsString,
|
|
11
11
|
require_typescript,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
snapshotWorkspaceFiles,
|
|
14
14
|
toPascalCase,
|
|
15
15
|
updateWorkspaceInventorySource
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-3fzqhpx9.js";
|
|
17
17
|
import"./cli-cvxvcw7c.js";
|
|
18
18
|
import"./cli-fys8vm2t.js";
|
|
19
19
|
import {
|
|
@@ -863,4 +863,4 @@ export {
|
|
|
863
863
|
applyInitPlan
|
|
864
864
|
};
|
|
865
865
|
|
|
866
|
-
//# debugId=
|
|
866
|
+
//# debugId=0E94BF54150D779464756E2164756E21
|
|
@@ -20,20 +20,19 @@ import {
|
|
|
20
20
|
resolvePackageManagerId,
|
|
21
21
|
resolveTemplateId,
|
|
22
22
|
scaffoldProject
|
|
23
|
-
} from "./cli-
|
|
24
|
-
import"./cli-arz4rcye.js";
|
|
23
|
+
} from "./cli-2x49egkd.js";
|
|
25
24
|
import"./cli-8reep89s.js";
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-bq2v559b.js";
|
|
29
|
-
import"./cli-xw1wbxf3.js";
|
|
25
|
+
import"./cli-1k61xyn2.js";
|
|
26
|
+
import"./cli-2mswafd6.js";
|
|
30
27
|
import {
|
|
31
28
|
OFFICIAL_WORKSPACE_TEMPLATE_PACKAGE,
|
|
32
29
|
isBuiltInTemplateId
|
|
33
30
|
} from "./cli-qse6myha.js";
|
|
31
|
+
import"./cli-tjf0070f.js";
|
|
32
|
+
import"./cli-2rqf6t0b.js";
|
|
34
33
|
import {
|
|
35
34
|
pathExists
|
|
36
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-3fzqhpx9.js";
|
|
37
36
|
import"./cli-cvxvcw7c.js";
|
|
38
37
|
import {
|
|
39
38
|
createManagedTempRoot
|
|
@@ -45,6 +44,7 @@ import {
|
|
|
45
44
|
formatInstallCommand,
|
|
46
45
|
formatRunScript
|
|
47
46
|
} from "./cli-52ke0ptp.js";
|
|
47
|
+
import"./cli-bq2v559b.js";
|
|
48
48
|
import"./cli-xnn9xjcy.js";
|
|
49
49
|
|
|
50
50
|
// ../wp-typia-project-tools/src/runtime/cli-scaffold.ts
|
|
@@ -561,4 +561,4 @@ export {
|
|
|
561
561
|
getNextSteps
|
|
562
562
|
};
|
|
563
563
|
|
|
564
|
-
//# debugId=
|
|
564
|
+
//# debugId=2B866835B8626C1664756E2164756E21
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
// package.json
|
|
15
15
|
var package_default = {
|
|
16
16
|
name: "wp-typia",
|
|
17
|
-
version: "0.22.
|
|
17
|
+
version: "0.22.10",
|
|
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.
|
|
87
|
+
"@wp-typia/project-tools": "0.22.10",
|
|
88
88
|
"better-result": "^2.7.0",
|
|
89
89
|
react: "^19.2.5",
|
|
90
90
|
"react-dom": "^19.2.5",
|
|
@@ -151,7 +151,83 @@ function findFirstPositional(argv, metadata) {
|
|
|
151
151
|
return firstPositionalIndex === -1 ? undefined : argv[firstPositionalIndex];
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
// src/command-
|
|
154
|
+
// src/command-options/add.ts
|
|
155
|
+
var ADD_OPTION_METADATA = {
|
|
156
|
+
"alternate-render-targets": {
|
|
157
|
+
description: "Comma-separated alternate render targets for dynamic block scaffolds (email,mjml,plain-text).",
|
|
158
|
+
type: "string"
|
|
159
|
+
},
|
|
160
|
+
anchor: {
|
|
161
|
+
description: "Anchor block name for hooked-block workflows.",
|
|
162
|
+
type: "string"
|
|
163
|
+
},
|
|
164
|
+
attribute: {
|
|
165
|
+
description: "Target block attribute for end-to-end binding-source workflows.",
|
|
166
|
+
type: "string"
|
|
167
|
+
},
|
|
168
|
+
block: {
|
|
169
|
+
description: "Target block slug for variation, style, and end-to-end binding-source workflows.",
|
|
170
|
+
type: "string"
|
|
171
|
+
},
|
|
172
|
+
"data-storage": {
|
|
173
|
+
description: "Persistence storage mode for persistence-capable templates.",
|
|
174
|
+
type: "string"
|
|
175
|
+
},
|
|
176
|
+
"dry-run": {
|
|
177
|
+
argumentKind: "flag",
|
|
178
|
+
description: "Preview workspace file updates and completion guidance without writing them.",
|
|
179
|
+
type: "boolean"
|
|
180
|
+
},
|
|
181
|
+
"external-layer-id": {
|
|
182
|
+
description: "Explicit layer id when an external layer package exposes multiple selectable layers.",
|
|
183
|
+
type: "string"
|
|
184
|
+
},
|
|
185
|
+
"external-layer-source": {
|
|
186
|
+
description: "Local path, GitHub locator, or npm package that exposes wp-typia.layers.json for built-in block templates.",
|
|
187
|
+
type: "string"
|
|
188
|
+
},
|
|
189
|
+
from: {
|
|
190
|
+
description: "Source full block name (namespace/block) for transform workflows.",
|
|
191
|
+
type: "string"
|
|
192
|
+
},
|
|
193
|
+
"inner-blocks-preset": {
|
|
194
|
+
description: "Compound-only InnerBlocks preset (freeform, ordered, horizontal, locked-structure).",
|
|
195
|
+
type: "string"
|
|
196
|
+
},
|
|
197
|
+
methods: {
|
|
198
|
+
description: "Comma-separated REST resource methods for rest-resource workflows.",
|
|
199
|
+
type: "string"
|
|
200
|
+
},
|
|
201
|
+
namespace: {
|
|
202
|
+
description: "REST namespace for rest-resource and ai-feature workflows.",
|
|
203
|
+
type: "string"
|
|
204
|
+
},
|
|
205
|
+
"persistence-policy": {
|
|
206
|
+
description: "Persistence write policy for persistence-capable templates.",
|
|
207
|
+
type: "string"
|
|
208
|
+
},
|
|
209
|
+
position: {
|
|
210
|
+
description: "Hook position for hooked-block workflows.",
|
|
211
|
+
type: "string"
|
|
212
|
+
},
|
|
213
|
+
slot: {
|
|
214
|
+
description: "Document editor shell slot for editor-plugin workflows (sidebar or document-setting-panel).",
|
|
215
|
+
type: "string"
|
|
216
|
+
},
|
|
217
|
+
source: {
|
|
218
|
+
description: "Optional data source locator for admin-view workflows, such as rest-resource:products or core-data:postType/post.",
|
|
219
|
+
type: "string"
|
|
220
|
+
},
|
|
221
|
+
template: {
|
|
222
|
+
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
|
+
type: "string"
|
|
224
|
+
},
|
|
225
|
+
to: {
|
|
226
|
+
description: "Target workspace block slug or full block name for transform workflows.",
|
|
227
|
+
type: "string"
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
// src/command-options/create.ts
|
|
155
231
|
var CREATE_OPTION_METADATA = {
|
|
156
232
|
"alternate-render-targets": {
|
|
157
233
|
description: "Comma-separated alternate render targets for dynamic block scaffolds (email,mjml,plain-text).",
|
|
@@ -239,81 +315,30 @@ var CREATE_OPTION_METADATA = {
|
|
|
239
315
|
type: "boolean"
|
|
240
316
|
}
|
|
241
317
|
};
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
},
|
|
247
|
-
anchor: {
|
|
248
|
-
description: "Anchor block name for hooked-block workflows.",
|
|
249
|
-
type: "string"
|
|
250
|
-
},
|
|
251
|
-
attribute: {
|
|
252
|
-
description: "Target block attribute for end-to-end binding-source workflows.",
|
|
253
|
-
type: "string"
|
|
254
|
-
},
|
|
255
|
-
block: {
|
|
256
|
-
description: "Target block slug for variation, style, and end-to-end binding-source workflows.",
|
|
257
|
-
type: "string"
|
|
258
|
-
},
|
|
259
|
-
"data-storage": {
|
|
260
|
-
description: "Persistence storage mode for persistence-capable templates.",
|
|
261
|
-
type: "string"
|
|
262
|
-
},
|
|
263
|
-
"dry-run": {
|
|
264
|
-
argumentKind: "flag",
|
|
265
|
-
description: "Preview workspace file updates and completion guidance without writing them.",
|
|
266
|
-
type: "boolean"
|
|
267
|
-
},
|
|
268
|
-
"external-layer-id": {
|
|
269
|
-
description: "Explicit layer id when an external layer package exposes multiple selectable layers.",
|
|
270
|
-
type: "string"
|
|
271
|
-
},
|
|
272
|
-
"external-layer-source": {
|
|
273
|
-
description: "Local path, GitHub locator, or npm package that exposes wp-typia.layers.json for built-in block templates.",
|
|
274
|
-
type: "string"
|
|
275
|
-
},
|
|
276
|
-
from: {
|
|
277
|
-
description: "Source full block name (namespace/block) for transform workflows.",
|
|
278
|
-
type: "string"
|
|
279
|
-
},
|
|
280
|
-
"inner-blocks-preset": {
|
|
281
|
-
description: "Compound-only InnerBlocks preset (freeform, ordered, horizontal, locked-structure).",
|
|
282
|
-
type: "string"
|
|
283
|
-
},
|
|
284
|
-
methods: {
|
|
285
|
-
description: "Comma-separated REST resource methods for rest-resource workflows.",
|
|
286
|
-
type: "string"
|
|
287
|
-
},
|
|
288
|
-
namespace: {
|
|
289
|
-
description: "REST namespace for rest-resource and ai-feature workflows.",
|
|
290
|
-
type: "string"
|
|
291
|
-
},
|
|
292
|
-
"persistence-policy": {
|
|
293
|
-
description: "Persistence write policy for persistence-capable templates.",
|
|
294
|
-
type: "string"
|
|
295
|
-
},
|
|
296
|
-
position: {
|
|
297
|
-
description: "Hook position for hooked-block workflows.",
|
|
298
|
-
type: "string"
|
|
299
|
-
},
|
|
300
|
-
slot: {
|
|
301
|
-
description: "Document editor shell slot for editor-plugin workflows (sidebar or document-setting-panel).",
|
|
318
|
+
// src/command-options/doctor.ts
|
|
319
|
+
var DOCTOR_OPTION_METADATA = {
|
|
320
|
+
format: {
|
|
321
|
+
description: "Use `json` for machine-readable doctor check output or `text` for human-readable output.",
|
|
302
322
|
type: "string"
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
// src/command-options/global.ts
|
|
326
|
+
var GLOBAL_OPTION_METADATA = {
|
|
327
|
+
config: {
|
|
328
|
+
description: "Config override file path.",
|
|
329
|
+
short: "c",
|
|
306
330
|
type: "string"
|
|
307
331
|
},
|
|
308
|
-
|
|
309
|
-
description: "
|
|
332
|
+
format: {
|
|
333
|
+
description: "Output format for supported commands (`json` or `text`).",
|
|
310
334
|
type: "string"
|
|
311
335
|
},
|
|
312
|
-
|
|
313
|
-
description: "
|
|
336
|
+
id: {
|
|
337
|
+
description: "Template id for top-level `templates inspect` convenience.",
|
|
314
338
|
type: "string"
|
|
315
339
|
}
|
|
316
340
|
};
|
|
341
|
+
// src/command-options/init.ts
|
|
317
342
|
var INIT_OPTION_METADATA = {
|
|
318
343
|
apply: {
|
|
319
344
|
argumentKind: "flag",
|
|
@@ -326,6 +351,14 @@ var INIT_OPTION_METADATA = {
|
|
|
326
351
|
type: "string"
|
|
327
352
|
}
|
|
328
353
|
};
|
|
354
|
+
// src/command-options/mcp.ts
|
|
355
|
+
var MCP_OPTION_METADATA = {
|
|
356
|
+
"output-dir": {
|
|
357
|
+
description: "Output directory for generated MCP metadata.",
|
|
358
|
+
type: "string"
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
// src/command-options/migrate.ts
|
|
329
362
|
var MIGRATE_OPTION_METADATA = {
|
|
330
363
|
all: {
|
|
331
364
|
argumentKind: "flag",
|
|
@@ -362,12 +395,7 @@ var MIGRATE_OPTION_METADATA = {
|
|
|
362
395
|
type: "string"
|
|
363
396
|
}
|
|
364
397
|
};
|
|
365
|
-
|
|
366
|
-
"output-dir": {
|
|
367
|
-
description: "Output directory for generated MCP metadata.",
|
|
368
|
-
type: "string"
|
|
369
|
-
}
|
|
370
|
-
};
|
|
398
|
+
// src/command-options/sync.ts
|
|
371
399
|
var SYNC_OPTION_METADATA = {
|
|
372
400
|
check: {
|
|
373
401
|
argumentKind: "flag",
|
|
@@ -380,33 +408,14 @@ var SYNC_OPTION_METADATA = {
|
|
|
380
408
|
type: "boolean"
|
|
381
409
|
}
|
|
382
410
|
};
|
|
383
|
-
|
|
384
|
-
format: {
|
|
385
|
-
description: "Use `json` for machine-readable doctor check output or `text` for human-readable output.",
|
|
386
|
-
type: "string"
|
|
387
|
-
}
|
|
388
|
-
};
|
|
411
|
+
// src/command-options/templates.ts
|
|
389
412
|
var TEMPLATES_OPTION_METADATA = {
|
|
390
413
|
id: {
|
|
391
414
|
description: "Template id for `templates inspect`.",
|
|
392
415
|
type: "string"
|
|
393
416
|
}
|
|
394
417
|
};
|
|
395
|
-
|
|
396
|
-
config: {
|
|
397
|
-
description: "Config override file path.",
|
|
398
|
-
short: "c",
|
|
399
|
-
type: "string"
|
|
400
|
-
},
|
|
401
|
-
format: {
|
|
402
|
-
description: "Output format for supported commands (`json` or `text`).",
|
|
403
|
-
type: "string"
|
|
404
|
-
},
|
|
405
|
-
id: {
|
|
406
|
-
description: "Template id for top-level `templates inspect` convenience.",
|
|
407
|
-
type: "string"
|
|
408
|
-
}
|
|
409
|
-
};
|
|
418
|
+
// src/command-option-metadata.ts
|
|
410
419
|
var COMMAND_OPTION_METADATA_BY_GROUP = {
|
|
411
420
|
add: ADD_OPTION_METADATA,
|
|
412
421
|
create: CREATE_OPTION_METADATA,
|
|
@@ -704,6 +713,15 @@ function writeStructuredCliDiagnosticError(argv, error) {
|
|
|
704
713
|
process.exitCode = 1;
|
|
705
714
|
return true;
|
|
706
715
|
}
|
|
716
|
+
|
|
717
|
+
// src/add-kind-ids.ts
|
|
718
|
+
function formatAddKindList() {
|
|
719
|
+
return ADD_KIND_IDS.join(", ");
|
|
720
|
+
}
|
|
721
|
+
function formatAddKindUsagePlaceholder() {
|
|
722
|
+
return `<${ADD_KIND_IDS.join("|")}>`;
|
|
723
|
+
}
|
|
724
|
+
|
|
707
725
|
// src/command-registry.ts
|
|
708
726
|
var WP_TYPIA_CANONICAL_CREATE_USAGE = "wp-typia create <project-dir>";
|
|
709
727
|
var WP_TYPIA_COMMAND_REGISTRY = [
|
|
@@ -1004,6 +1022,6 @@ function getMcpSchemaSources(config) {
|
|
|
1004
1022
|
function createPlugin(input) {
|
|
1005
1023
|
return input;
|
|
1006
1024
|
}
|
|
1007
|
-
export { createPlugin, package_default, collectPositionalIndexes, findFirstPositionalIndex, CREATE_OPTION_METADATA,
|
|
1025
|
+
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 };
|
|
1008
1026
|
|
|
1009
|
-
//# debugId=
|
|
1027
|
+
//# debugId=A8F5341830BE069D64756E2164756E21
|
|
@@ -46,12 +46,9 @@ import {
|
|
|
46
46
|
writeInitialMigrationScaffold,
|
|
47
47
|
writeMigrationConfig
|
|
48
48
|
} from "./cli-2rqf6t0b.js";
|
|
49
|
-
import {
|
|
50
|
-
createReadlinePrompt
|
|
51
|
-
} from "./cli-bq2v559b.js";
|
|
52
49
|
import {
|
|
53
50
|
readWorkspaceInventory
|
|
54
|
-
} from "./cli-
|
|
51
|
+
} from "./cli-3fzqhpx9.js";
|
|
55
52
|
import {
|
|
56
53
|
getInvalidWorkspaceProjectReason,
|
|
57
54
|
tryResolveWorkspaceProject
|
|
@@ -59,6 +56,9 @@ import {
|
|
|
59
56
|
import {
|
|
60
57
|
formatRunScript
|
|
61
58
|
} from "./cli-52ke0ptp.js";
|
|
59
|
+
import {
|
|
60
|
+
createReadlinePrompt
|
|
61
|
+
} from "./cli-bq2v559b.js";
|
|
62
62
|
|
|
63
63
|
// ../wp-typia-project-tools/src/runtime/migrations.ts
|
|
64
64
|
import fs8 from "fs";
|
|
@@ -1383,6 +1383,10 @@ function renderPhpMigrationRegistryFile(state, entries) {
|
|
|
1383
1383
|
return `<?php
|
|
1384
1384
|
declare(strict_types=1);
|
|
1385
1385
|
|
|
1386
|
+
if ( ! defined( 'ABSPATH' ) ) {
|
|
1387
|
+
exit;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1386
1390
|
/**
|
|
1387
1391
|
* Generated from advanced migration snapshots. Do not edit manually.
|
|
1388
1392
|
*/
|
|
@@ -2603,4 +2607,4 @@ function seedProjectMigrations(projectDir, currentMigrationVersion, blocks, { re
|
|
|
2603
2607
|
|
|
2604
2608
|
export { formatMigrationHelpText, parseMigrationArgs, formatDiffReport, verifyProjectMigrations, doctorProjectMigrations, fixturesProjectMigrations, fuzzProjectMigrations, runMigrationCommand, planProjectMigrations, wizardProjectMigrations, initProjectMigrations, snapshotProjectVersion, diffProjectMigrations, scaffoldProjectMigrations, seedProjectMigrations };
|
|
2605
2609
|
|
|
2606
|
-
//# debugId=
|
|
2610
|
+
//# debugId=3FFBD2D8A6265FAC64756E2164756E21
|
package/dist-bunli/cli.js
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
package_default,
|
|
23
23
|
validateCliOutputFormatArgv,
|
|
24
24
|
writeStructuredCliDiagnosticError
|
|
25
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-spdrcg8k.js";
|
|
26
26
|
import"./cli-03j0axbt.js";
|
|
27
27
|
import {
|
|
28
28
|
GLOBAL_FLAGS,
|
|
@@ -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-
|
|
2463
|
+
const { wpTypiaCommands } = await import("./command-list-h96cft88.js");
|
|
2464
2464
|
const cli = await createCLI({
|
|
2465
2465
|
...bunliConfig,
|
|
2466
2466
|
description: package_default.description,
|