@wp-typia/project-tools 0.22.2 → 0.22.4

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.
Files changed (62) hide show
  1. package/dist/runtime/built-in-block-code-templates/interactivity.d.ts +1 -1
  2. package/dist/runtime/built-in-block-code-templates/interactivity.js +4 -2
  3. package/dist/runtime/cli-add-block-json.d.ts +31 -0
  4. package/dist/runtime/cli-add-block-json.js +65 -0
  5. package/dist/runtime/cli-add-collision.d.ts +129 -0
  6. package/dist/runtime/cli-add-collision.js +293 -0
  7. package/dist/runtime/cli-add-filesystem.d.ts +29 -0
  8. package/dist/runtime/cli-add-filesystem.js +77 -0
  9. package/dist/runtime/cli-add-help.d.ts +4 -0
  10. package/dist/runtime/cli-add-help.js +41 -0
  11. package/dist/runtime/cli-add-shared.d.ts +6 -255
  12. package/dist/runtime/cli-add-shared.js +6 -391
  13. package/dist/runtime/cli-add-types.d.ts +247 -0
  14. package/dist/runtime/cli-add-types.js +64 -0
  15. package/dist/runtime/cli-add-validation.d.ts +87 -0
  16. package/dist/runtime/cli-add-validation.js +147 -0
  17. package/dist/runtime/cli-add-workspace-ability-scaffold.d.ts +5 -0
  18. package/dist/runtime/cli-add-workspace-ability-scaffold.js +366 -0
  19. package/dist/runtime/cli-add-workspace-ability-templates.d.ts +34 -0
  20. package/dist/runtime/cli-add-workspace-ability-templates.js +500 -0
  21. package/dist/runtime/cli-add-workspace-ability-types.d.ts +27 -0
  22. package/dist/runtime/cli-add-workspace-ability-types.js +14 -0
  23. package/dist/runtime/cli-add-workspace-ability.js +12 -852
  24. package/dist/runtime/cli-add-workspace-admin-view-scaffold.js +35 -61
  25. package/dist/runtime/cli-add-workspace-ai-scaffold.d.ts +21 -0
  26. package/dist/runtime/cli-add-workspace-ai-scaffold.js +87 -0
  27. package/dist/runtime/cli-add-workspace-ai-templates.d.ts +4 -0
  28. package/dist/runtime/cli-add-workspace-ai-templates.js +607 -0
  29. package/dist/runtime/cli-add-workspace-ai.js +15 -688
  30. package/dist/runtime/cli-add-workspace-assets.js +7 -4
  31. package/dist/runtime/cli-add-workspace-mutation.d.ts +30 -0
  32. package/dist/runtime/cli-add-workspace-mutation.js +60 -0
  33. package/dist/runtime/cli-add-workspace.js +2 -98
  34. package/dist/runtime/cli-add.d.ts +2 -2
  35. package/dist/runtime/cli-add.js +2 -2
  36. package/dist/runtime/cli-doctor-workspace-bindings.d.ts +11 -0
  37. package/dist/runtime/cli-doctor-workspace-bindings.js +134 -0
  38. package/dist/runtime/cli-doctor-workspace-blocks.d.ts +11 -0
  39. package/dist/runtime/cli-doctor-workspace-blocks.js +439 -0
  40. package/dist/runtime/cli-doctor-workspace-features.d.ts +11 -0
  41. package/dist/runtime/cli-doctor-workspace-features.js +383 -0
  42. package/dist/runtime/cli-doctor-workspace-package.d.ts +18 -0
  43. package/dist/runtime/cli-doctor-workspace-package.js +59 -0
  44. package/dist/runtime/cli-doctor-workspace-shared.d.ts +69 -0
  45. package/dist/runtime/cli-doctor-workspace-shared.js +87 -0
  46. package/dist/runtime/cli-doctor-workspace.js +25 -1062
  47. package/dist/runtime/index.d.ts +2 -0
  48. package/dist/runtime/index.js +1 -0
  49. package/dist/runtime/migration-utils.d.ts +2 -1
  50. package/dist/runtime/migration-utils.js +3 -11
  51. package/dist/runtime/package-managers.d.ts +19 -0
  52. package/dist/runtime/package-managers.js +62 -0
  53. package/dist/runtime/template-source-cache.d.ts +59 -0
  54. package/dist/runtime/template-source-cache.js +160 -0
  55. package/dist/runtime/ts-source-masking.d.ts +28 -0
  56. package/dist/runtime/ts-source-masking.js +104 -0
  57. package/dist/runtime/typia-llm.d.ts +9 -1
  58. package/dist/runtime/typia-llm.js +20 -5
  59. package/dist/runtime/workspace-inventory.js +116 -59
  60. package/dist/runtime/workspace-project.d.ts +1 -1
  61. package/dist/runtime/workspace-project.js +2 -10
  62. package/package.json +4 -4
@@ -0,0 +1,77 @@
1
+ import { promises as fsp } from "node:fs";
2
+ import path from "node:path";
3
+ /**
4
+ * Resolve the primary PHP bootstrap file for an official workspace.
5
+ *
6
+ * @param workspace Workspace metadata that provides `packageName` and `projectDir`.
7
+ * @returns Absolute path to `<packageBase>.php` in the workspace root.
8
+ */
9
+ export function getWorkspaceBootstrapPath(workspace) {
10
+ const workspaceBaseName = workspace.packageName.split("/").pop() ?? workspace.packageName;
11
+ return path.join(workspace.projectDir, `${workspaceBaseName}.php`);
12
+ }
13
+ /**
14
+ * Apply a text transform to an existing file only when the contents change.
15
+ */
16
+ export async function patchFile(filePath, transform) {
17
+ const currentSource = await fsp.readFile(filePath, "utf8");
18
+ const nextSource = transform(currentSource);
19
+ if (nextSource !== currentSource) {
20
+ await fsp.writeFile(filePath, nextSource, "utf8");
21
+ }
22
+ }
23
+ /**
24
+ * Read a file when it exists and otherwise return `null`.
25
+ */
26
+ export async function readOptionalFile(filePath) {
27
+ try {
28
+ return await fsp.readFile(filePath, "utf8");
29
+ }
30
+ catch (error) {
31
+ if (isFileNotFoundError(error)) {
32
+ return null;
33
+ }
34
+ throw error;
35
+ }
36
+ }
37
+ /**
38
+ * Restore a file to its captured source, deleting it when the snapshot was `null`.
39
+ */
40
+ export async function restoreOptionalFile(filePath, source) {
41
+ if (source === null) {
42
+ await fsp.rm(filePath, { force: true });
43
+ return;
44
+ }
45
+ await fsp.mkdir(path.dirname(filePath), { recursive: true });
46
+ await fsp.writeFile(filePath, source, "utf8");
47
+ }
48
+ /**
49
+ * Capture the current contents of a set of workspace files for rollback.
50
+ */
51
+ export async function snapshotWorkspaceFiles(filePaths) {
52
+ const uniquePaths = Array.from(new Set(filePaths));
53
+ return Promise.all(uniquePaths.map(async (filePath) => ({
54
+ filePath,
55
+ source: await readOptionalFile(filePath),
56
+ })));
57
+ }
58
+ /**
59
+ * Undo a partially applied workspace mutation from a captured snapshot.
60
+ */
61
+ export async function rollbackWorkspaceMutation(snapshot) {
62
+ for (const targetPath of snapshot.targetPaths) {
63
+ await fsp.rm(targetPath, { force: true, recursive: true });
64
+ }
65
+ for (const snapshotDir of snapshot.snapshotDirs) {
66
+ await fsp.rm(snapshotDir, { force: true, recursive: true });
67
+ }
68
+ for (const { filePath, source } of snapshot.fileSources) {
69
+ await restoreOptionalFile(filePath, source);
70
+ }
71
+ }
72
+ function isFileNotFoundError(error) {
73
+ return (typeof error === "object" &&
74
+ error !== null &&
75
+ "code" in error &&
76
+ error.code === "ENOENT");
77
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Returns help text for the canonical `wp-typia add` subcommands.
3
+ */
4
+ export declare function formatAddHelpText(): string;
@@ -0,0 +1,41 @@
1
+ import { HOOKED_BLOCK_POSITION_IDS, } from "./hooked-blocks.js";
2
+ import { ADD_BLOCK_TEMPLATE_IDS, EDITOR_PLUGIN_SLOT_IDS, REST_RESOURCE_METHOD_IDS, } from "./cli-add-types.js";
3
+ import { WORKSPACE_TEMPLATE_PACKAGE, } from "./workspace-project.js";
4
+ /**
5
+ * Returns help text for the canonical `wp-typia add` subcommands.
6
+ */
7
+ export function formatAddHelpText() {
8
+ return `Usage:
9
+ wp-typia add admin-view <name> [--source <rest-resource:slug|core-data:kind/name>] [--dry-run]
10
+ wp-typia add block <name> [--template <${ADD_BLOCK_TEMPLATE_IDS.join("|")}>] [--external-layer-source <./path|github:owner/repo/path[#ref]|npm-package>] [--external-layer-id <layer-id>] [--inner-blocks-preset <freeform|ordered|horizontal|locked-structure>] [--alternate-render-targets <email,mjml,plain-text>] [--data-storage <post-meta|custom-table>] [--persistence-policy <authenticated|public>] [--dry-run]
11
+ wp-typia add variation <name> --block <block-slug> [--dry-run]
12
+ wp-typia add style <name> --block <block-slug> [--dry-run]
13
+ wp-typia add transform <name> --from <namespace/block> --to <block-slug|namespace/block-slug> [--dry-run]
14
+ wp-typia add pattern <name> [--dry-run]
15
+ wp-typia add binding-source <name> [--block <block-slug|namespace/block-slug> --attribute <attribute>] [--dry-run]
16
+ wp-typia add rest-resource <name> [--namespace <vendor/v1>] [--methods <${REST_RESOURCE_METHOD_IDS.join(",")}>] [--dry-run]
17
+ wp-typia add ability <name> [--dry-run]
18
+ wp-typia add ai-feature <name> [--namespace <vendor/v1>] [--dry-run]
19
+ wp-typia add hooked-block <block-slug> --anchor <anchor-block-name> --position <${HOOKED_BLOCK_POSITION_IDS.join("|")}> [--dry-run]
20
+ wp-typia add editor-plugin <name> [--slot <${EDITOR_PLUGIN_SLOT_IDS.join("|")}>] [--dry-run]
21
+
22
+ Notes:
23
+ \`wp-typia add\` runs only inside official ${WORKSPACE_TEMPLATE_PACKAGE} workspaces scaffolded via \`wp-typia create <project-dir> --template workspace\`.
24
+ Pass \`--dry-run\` to preview the workspace files that would change without writing them.
25
+ Interactive add flows let you choose a template when \`--template\` is omitted; non-interactive runs default to \`basic\`.
26
+ \`add admin-view\` scaffolds an opt-in DataViews-powered WordPress admin screen under \`src/admin-views/\`.
27
+ Pass \`--source rest-resource:<slug>\` to reuse a list-capable REST resource.
28
+ Pass \`--source core-data:postType/post\` or \`--source core-data:taxonomy/category\` to bind a WordPress-owned entity collection.
29
+ Public installs currently gate this workflow until \`@wp-typia/dataviews\` is published to npm.
30
+ \`query-loop\` is a create-time scaffold family. Use \`wp-typia create <project-dir> --template query-loop\` instead of \`wp-typia add block\`.
31
+ \`add variation\` targets an existing block slug from \`scripts/block-config.ts\`.
32
+ \`add style\` registers a Block Styles option for an existing generated block.
33
+ \`add transform\` adds a block-to-block transform into an existing generated block.
34
+ \`add pattern\` scaffolds a namespaced PHP pattern shell under \`src/patterns/\`.
35
+ \`add binding-source\` scaffolds shared PHP and editor registration under \`src/bindings/\`; pass \`--block\` and \`--attribute\` together to declare an end-to-end bindable attribute on an existing generated block.
36
+ \`add rest-resource\` scaffolds plugin-level TypeScript REST contracts under \`src/rest/\` and PHP route glue under \`inc/rest/\`.
37
+ \`add ability\` scaffolds typed workflow abilities under \`src/abilities/\` and server registration under \`inc/abilities/\`.
38
+ \`add ai-feature\` scaffolds server-owned AI feature endpoints under \`src/ai-features/\` and PHP route glue under \`inc/ai-features/\`.
39
+ \`add hooked-block\` patches an existing workspace block's \`block.json\` \`blockHooks\` metadata.
40
+ \`add editor-plugin\` scaffolds a document-level editor extension under \`src/editor-plugins/\`; legacy aliases \`PluginSidebar\` and \`PluginDocumentSettingPanel\` resolve to \`sidebar\` and \`document-setting-panel\`.`;
41
+ }
@@ -1,256 +1,7 @@
1
- import { type HookedBlockPositionId } from "./hooked-blocks.js";
2
- import { type WorkspaceInventory } from "./workspace-inventory.js";
3
- import { type WorkspaceProject } from "./workspace-project.js";
4
1
  export { normalizeBlockSlug, } from "./scaffold-identifiers.js";
5
- /**
6
- * Supported top-level `wp-typia add` kinds exposed by the canonical CLI.
7
- */
8
- export declare const ADD_KIND_IDS: readonly ["admin-view", "block", "variation", "style", "transform", "pattern", "binding-source", "rest-resource", "ability", "ai-feature", "hooked-block", "editor-plugin"];
9
- export type AddKindId = (typeof ADD_KIND_IDS)[number];
10
- /**
11
- * Supported plugin-level REST resource methods accepted by
12
- * `wp-typia add rest-resource --methods`.
13
- */
14
- export declare const REST_RESOURCE_METHOD_IDS: readonly ["list", "read", "create", "update", "delete"];
15
- export type RestResourceMethodId = (typeof REST_RESOURCE_METHOD_IDS)[number];
16
- /**
17
- * Supported editor-plugin shell surfaces accepted by
18
- * `wp-typia add editor-plugin --slot`.
19
- */
20
- export declare const EDITOR_PLUGIN_SLOT_IDS: readonly ["sidebar", "document-setting-panel"];
21
- export type EditorPluginSlotId = (typeof EDITOR_PLUGIN_SLOT_IDS)[number];
22
- export declare const EDITOR_PLUGIN_SLOT_ALIASES: {
23
- readonly PluginDocumentSettingPanel: "document-setting-panel";
24
- readonly PluginSidebar: "sidebar";
25
- readonly "document-setting-panel": "document-setting-panel";
26
- readonly sidebar: "sidebar";
27
- };
28
- export declare function resolveEditorPluginSlotAlias(slot: string): EditorPluginSlotId | undefined;
29
- /**
30
- * Supported built-in block families accepted by `wp-typia add block --template`.
31
- */
32
- export declare const ADD_BLOCK_TEMPLATE_IDS: readonly ["basic", "interactivity", "persistence", "compound"];
33
- export type AddBlockTemplateId = (typeof ADD_BLOCK_TEMPLATE_IDS)[number];
34
- export declare const REST_RESOURCE_NAMESPACE_PATTERN: RegExp;
35
- export interface RunAddVariationCommandOptions {
36
- blockName: string;
37
- cwd?: string;
38
- variationName: string;
39
- }
40
- /**
41
- * Options for `wp-typia add style`.
42
- *
43
- * @property blockName Existing workspace block slug that owns the style.
44
- * @property cwd Working directory used to resolve the nearest official workspace.
45
- * Defaults to `process.cwd()`.
46
- * @property styleName Human-entered style name that will be normalized into the
47
- * generated style slug.
48
- */
49
- export interface RunAddBlockStyleCommandOptions {
50
- blockName: string;
51
- cwd?: string;
52
- styleName: string;
53
- }
54
- /**
55
- * Options for `wp-typia add transform`.
56
- *
57
- * @property cwd Working directory used to resolve the nearest official workspace.
58
- * Defaults to `process.cwd()`.
59
- * @property fromBlockName Full `namespace/block` source block name accepted by
60
- * WordPress block transform definitions.
61
- * @property toBlockName Existing workspace block slug or full block name that
62
- * owns the generated transform.
63
- * @property transformName Human-entered transform name that will be normalized
64
- * into the generated transform slug.
65
- */
66
- export interface RunAddBlockTransformCommandOptions {
67
- cwd?: string;
68
- fromBlockName: string;
69
- toBlockName: string;
70
- transformName: string;
71
- }
72
- export interface RunAddPatternCommandOptions {
73
- cwd?: string;
74
- patternName: string;
75
- }
76
- export interface RunAddBindingSourceCommandOptions {
77
- attributeName?: string;
78
- blockName?: string;
79
- bindingSourceName: string;
80
- cwd?: string;
81
- }
82
- export interface RunAddRestResourceCommandOptions {
83
- cwd?: string;
84
- methods?: string;
85
- namespace?: string;
86
- restResourceName: string;
87
- }
88
- /**
89
- * Options for `wp-typia add admin-view`.
90
- *
91
- * @property adminViewName Human-entered admin screen name that will be
92
- * normalized into the generated slug.
93
- * @property cwd Working directory used to resolve the nearest official workspace.
94
- * Defaults to `process.cwd()`.
95
- * @property source Optional data source locator. `rest-resource:<slug>` wires
96
- * the generated screen to an existing list-capable REST resource.
97
- * `core-data:<kind>/<name>` binds the screen to a supported WordPress-owned
98
- * entity collection such as `core-data:postType/post`.
99
- */
100
- export interface RunAddAdminViewCommandOptions {
101
- adminViewName: string;
102
- cwd?: string;
103
- source?: string;
104
- }
105
- /**
106
- * Options for `wp-typia add ability`.
107
- *
108
- * @property cwd Working directory used to resolve the nearest official workspace.
109
- * Defaults to `process.cwd()`.
110
- * @property abilityName Human-entered workflow ability name that will be
111
- * normalized into the generated slug.
112
- */
113
- export interface RunAddAbilityCommandOptions {
114
- abilityName: string;
115
- cwd?: string;
116
- }
117
- export interface RunAddAiFeatureCommandOptions {
118
- aiFeatureName: string;
119
- cwd?: string;
120
- namespace?: string;
121
- }
122
- export interface RunAddHookedBlockCommandOptions {
123
- anchorBlockName: string;
124
- blockName: string;
125
- cwd?: string;
126
- position: string;
127
- }
128
- /**
129
- * Options for `wp-typia add editor-plugin`.
130
- *
131
- * @property cwd Working directory used to resolve the nearest official workspace.
132
- * Defaults to `process.cwd()`.
133
- * @property editorPluginName Human-entered editor plugin name that will be
134
- * normalized into the generated slug.
135
- * @property slot Optional editor shell slot. Defaults to `sidebar`.
136
- */
137
- export interface RunAddEditorPluginCommandOptions {
138
- cwd?: string;
139
- editorPluginName: string;
140
- slot?: string;
141
- }
142
- export interface RunAddBlockCommandOptions {
143
- alternateRenderTargets?: string;
144
- blockName: string;
145
- cwd?: string;
146
- dataStorageMode?: string;
147
- externalLayerId?: string;
148
- externalLayerSource?: string;
149
- innerBlocksPreset?: string;
150
- persistencePolicy?: string;
151
- selectExternalLayerId?: (options: Array<{
152
- description?: string;
153
- extends: string[];
154
- id: string;
155
- }>) => Promise<string>;
156
- templateId?: string;
157
- }
158
- export interface WorkspaceMutationSnapshot {
159
- /** Snapshots of file contents taken before the mutation starts. */
160
- fileSources: Array<{
161
- /** Absolute file path recorded for rollback. */
162
- filePath: string;
163
- /** Previous file contents, or `null` when the file did not exist. */
164
- source: string | null;
165
- }>;
166
- /** Snapshot directories created while seeding migration history. */
167
- snapshotDirs: string[];
168
- /** Files or directories created by the mutation that should be removed on rollback. */
169
- targetPaths: string[];
170
- }
171
- export declare function assertValidGeneratedSlug(label: string, slug: string, usage: string): string;
172
- export declare function assertValidRestResourceNamespace(namespace: string): string;
173
- export declare function resolveRestResourceNamespace(workspaceNamespace: string, namespace?: string): string;
174
- export declare function assertValidRestResourceMethods(methods?: string): RestResourceMethodId[];
175
- export declare function assertValidHookedBlockPosition(position: string): HookedBlockPositionId;
176
- export declare function getWorkspaceBootstrapPath(workspace: WorkspaceProject): string;
177
- export declare function buildWorkspacePhpPrefix(workspacePhpPrefix: string, slug: string): string;
178
- export declare function isAddBlockTemplateId(value: string): value is AddBlockTemplateId;
179
- export declare function quoteTsString(value: string): string;
180
- /**
181
- * Apply a text transform to an existing file only when the contents change.
182
- */
183
- export declare function patchFile(filePath: string, transform: (source: string) => string): Promise<void>;
184
- /**
185
- * Read a file when it exists and otherwise return `null`.
186
- */
187
- export declare function readOptionalFile(filePath: string): Promise<string | null>;
188
- /**
189
- * Restore a file to its captured source, deleting it when the snapshot was `null`.
190
- */
191
- export declare function restoreOptionalFile(filePath: string, source: string | null): Promise<void>;
192
- /**
193
- * Capture the current contents of a set of workspace files for rollback.
194
- */
195
- export declare function snapshotWorkspaceFiles(filePaths: string[]): Promise<WorkspaceMutationSnapshot["fileSources"]>;
196
- /**
197
- * Undo a partially applied workspace mutation from a captured snapshot.
198
- */
199
- export declare function rollbackWorkspaceMutation(snapshot: WorkspaceMutationSnapshot): Promise<void>;
200
- export declare function resolveWorkspaceBlock(inventory: WorkspaceInventory, blockSlug: string): WorkspaceInventory["blocks"][number];
201
- export declare function assertValidHookAnchor(anchorBlockName: string): string;
202
- /**
203
- * Validate and normalize the editor plugin shell slot.
204
- *
205
- * @param slot Optional shell slot. Defaults to `sidebar`.
206
- * @returns The canonical editor plugin slot id.
207
- * @throws {Error} When the slot is not supported by the workspace scaffold.
208
- */
209
- export declare function assertValidEditorPluginSlot(slot?: string): EditorPluginSlotId;
210
- export declare function readWorkspaceBlockJson(projectDir: string, blockSlug: string): {
211
- blockJson: Record<string, unknown>;
212
- blockJsonPath: string;
213
- };
214
- export declare function getMutableBlockHooks(blockJson: Record<string, unknown>, blockJsonRelativePath: string): Record<string, string>;
215
- export declare function assertVariationDoesNotExist(projectDir: string, blockSlug: string, variationSlug: string, inventory: WorkspaceInventory): void;
216
- export declare function assertPatternDoesNotExist(projectDir: string, patternSlug: string, inventory: WorkspaceInventory): void;
217
- export declare function assertBindingSourceDoesNotExist(projectDir: string, bindingSourceSlug: string, inventory: WorkspaceInventory): void;
218
- export declare function assertRestResourceDoesNotExist(projectDir: string, restResourceSlug: string, inventory: WorkspaceInventory): void;
219
- /**
220
- * Ensure a DataViews admin screen scaffold does not already exist on disk or in
221
- * the workspace inventory.
222
- *
223
- * @param projectDir Workspace root directory.
224
- * @param adminViewSlug Normalized admin screen slug.
225
- * @param inventory Parsed workspace inventory.
226
- * @throws {Error} When the directory, PHP bootstrap, or inventory entry already exists.
227
- */
228
- export declare function assertAdminViewDoesNotExist(projectDir: string, adminViewSlug: string, inventory: WorkspaceInventory): void;
229
- /**
230
- * Ensure a workflow ability scaffold does not already exist on disk or in the
231
- * workspace inventory.
232
- *
233
- * The check covers the generated `src/abilities/<slug>` directory,
234
- * `inc/abilities/<slug>.php`, and any matching `inventory.abilities` entry.
235
- *
236
- * @param projectDir Workspace root directory.
237
- * @param abilitySlug Normalized workflow ability slug.
238
- * @param inventory Parsed workspace inventory.
239
- * @throws {Error} When the ability directory, PHP bootstrap, or inventory entry already exists.
240
- */
241
- export declare function assertAbilityDoesNotExist(projectDir: string, abilitySlug: string, inventory: WorkspaceInventory): void;
242
- export declare function assertAiFeatureDoesNotExist(projectDir: string, aiFeatureSlug: string, inventory: WorkspaceInventory): void;
243
- /**
244
- * Ensure an editor plugin scaffold does not already exist on disk or in the
245
- * workspace inventory.
246
- *
247
- * @param projectDir Workspace root directory.
248
- * @param editorPluginSlug Normalized editor plugin slug.
249
- * @param inventory Parsed workspace inventory.
250
- * @throws {Error} When the directory or inventory entry already exists.
251
- */
252
- export declare function assertEditorPluginDoesNotExist(projectDir: string, editorPluginSlug: string, inventory: WorkspaceInventory): void;
253
- /**
254
- * Returns help text for the canonical `wp-typia add` subcommands.
255
- */
256
- export declare function formatAddHelpText(): string;
2
+ export * from "./cli-add-types.js";
3
+ export * from "./cli-add-validation.js";
4
+ export * from "./cli-add-filesystem.js";
5
+ export * from "./cli-add-block-json.js";
6
+ export * from "./cli-add-collision.js";
7
+ export * from "./cli-add-help.js";