@wp-typia/project-tools 0.22.3 → 0.22.5

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 (43) hide show
  1. package/dist/runtime/cli-add-block-json.d.ts +31 -0
  2. package/dist/runtime/cli-add-block-json.js +65 -0
  3. package/dist/runtime/cli-add-collision.d.ts +129 -0
  4. package/dist/runtime/cli-add-collision.js +293 -0
  5. package/dist/runtime/cli-add-filesystem.d.ts +29 -0
  6. package/dist/runtime/cli-add-filesystem.js +77 -0
  7. package/dist/runtime/cli-add-help.d.ts +4 -0
  8. package/dist/runtime/cli-add-help.js +41 -0
  9. package/dist/runtime/cli-add-shared.d.ts +6 -304
  10. package/dist/runtime/cli-add-shared.js +6 -524
  11. package/dist/runtime/cli-add-types.d.ts +247 -0
  12. package/dist/runtime/cli-add-types.js +64 -0
  13. package/dist/runtime/cli-add-validation.d.ts +87 -0
  14. package/dist/runtime/cli-add-validation.js +147 -0
  15. package/dist/runtime/cli-add-workspace-ability-scaffold.js +46 -72
  16. package/dist/runtime/cli-add-workspace-admin-view-scaffold.js +35 -61
  17. package/dist/runtime/cli-add-workspace-ai-anchors.js +3 -24
  18. package/dist/runtime/cli-add-workspace-ai-scaffold.js +53 -57
  19. package/dist/runtime/cli-add-workspace-ai-templates.js +2 -0
  20. package/dist/runtime/cli-add-workspace-assets.js +7 -50
  21. package/dist/runtime/cli-add-workspace-mutation.d.ts +30 -0
  22. package/dist/runtime/cli-add-workspace-mutation.js +60 -0
  23. package/dist/runtime/cli-add-workspace-rest-anchors.js +3 -24
  24. package/dist/runtime/cli-add-workspace.js +1 -79
  25. package/dist/runtime/cli-add.d.ts +2 -2
  26. package/dist/runtime/cli-add.js +2 -2
  27. package/dist/runtime/cli-doctor-workspace-blocks.js +1 -66
  28. package/dist/runtime/index.d.ts +2 -0
  29. package/dist/runtime/index.js +1 -0
  30. package/dist/runtime/migration-utils.d.ts +2 -1
  31. package/dist/runtime/migration-utils.js +3 -11
  32. package/dist/runtime/package-managers.d.ts +19 -0
  33. package/dist/runtime/package-managers.js +62 -0
  34. package/dist/runtime/template-source-cache.d.ts +59 -0
  35. package/dist/runtime/template-source-cache.js +160 -0
  36. package/dist/runtime/ts-source-masking.d.ts +28 -0
  37. package/dist/runtime/ts-source-masking.js +104 -0
  38. package/dist/runtime/typia-llm.d.ts +9 -1
  39. package/dist/runtime/typia-llm.js +20 -5
  40. package/dist/runtime/workspace-inventory.js +368 -284
  41. package/dist/runtime/workspace-project.d.ts +1 -1
  42. package/dist/runtime/workspace-project.js +2 -10
  43. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import type { PackageManagerId } from "./package-managers.js";
1
+ import { type PackageManagerId } from "./package-managers.js";
2
2
  export declare const WORKSPACE_TEMPLATE_PACKAGE = "@wp-typia/create-workspace-template";
3
3
  export interface WorkspacePackageJson {
4
4
  author?: string;
@@ -1,5 +1,6 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
+ import { parsePackageManagerField, } from "./package-managers.js";
3
4
  export const WORKSPACE_TEMPLATE_PACKAGE = "@wp-typia/create-workspace-template";
4
5
  function hasNonEmptyString(value) {
5
6
  return typeof value === "string" && value.trim().length > 0;
@@ -81,16 +82,7 @@ export function getInvalidWorkspaceProjectReason(startDir) {
81
82
  * field is missing or unsupported.
82
83
  */
83
84
  export function parseWorkspacePackageManagerId(packageManagerField) {
84
- const packageManagerId = packageManagerField?.split("@", 1)[0];
85
- switch (packageManagerId) {
86
- case "bun":
87
- case "npm":
88
- case "pnpm":
89
- case "yarn":
90
- return packageManagerId;
91
- default:
92
- return "npm";
93
- }
85
+ return parsePackageManagerField(packageManagerField) ?? "npm";
94
86
  }
95
87
  /**
96
88
  * Try to resolve the nearest official wp-typia workspace from `startDir`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-typia/project-tools",
3
- "version": "0.22.3",
3
+ "version": "0.22.5",
4
4
  "description": "Project orchestration and programmatic tooling for wp-typia",
5
5
  "packageManager": "bun@1.3.11",
6
6
  "type": "module",
@@ -147,7 +147,7 @@
147
147
  "dependencies": {
148
148
  "@wp-typia/api-client": "^0.4.5",
149
149
  "@wp-typia/block-runtime": "^0.5.0",
150
- "@wp-typia/rest": "^0.3.12",
150
+ "@wp-typia/rest": "^0.3.13",
151
151
  "@wp-typia/block-types": "^0.2.4",
152
152
  "mustache": "^4.2.0",
153
153
  "npm-package-arg": "^13.0.0",