vite-plus 0.1.1 → 0.1.3

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/binding/index.cjs +2 -0
  2. package/binding/index.d.cts +32 -0
  3. package/dist/global/{prompts-CAIahN1u.js → agent-BE4Xze8Q.js} +380 -1280
  4. package/dist/global/{browser-CY4NBwxR.js → browser-CBapUTD0.js} +579 -1023
  5. package/dist/global/{browser-DFpJ6sKb.js → browser-EZnNDcaO.js} +2 -3
  6. package/dist/global/{chunk-CtfvYSle.js → chunk-CgnkrU7a.js} +13 -22
  7. package/dist/global/{cli-truncate-BxinOqz5.js → cli-truncate-Da6Y8aM8.js} +25 -74
  8. package/dist/global/config.js +95 -165
  9. package/dist/global/create.js +353 -496
  10. package/dist/global/{terminal-Cb-NuRkb.js → help-BAGHa8fD.js} +22 -54
  11. package/dist/global/{json-Bfvtp2rL.js → json-BRdVJ52a.js} +24 -58
  12. package/dist/global/{lib-CibYHP32.js → lib-DxappLRQ.js} +19 -43
  13. package/dist/global/{log-update-DdU6_LCN.js → log-update-C8WCYCbc.js} +102 -281
  14. package/dist/global/mcp.js +97 -169
  15. package/dist/global/migrate.js +223 -72
  16. package/dist/global/{package-Pq2biU7_.js → package-YAMvX5PJ.js} +6 -13
  17. package/dist/global/{slice-ansi-BhwAwMdF.js → slice-ansi-Fap0ehe9.js} +21 -52
  18. package/dist/global/{src-C6aLHRsS.js → src-DwSJ0s0I.js} +28 -110
  19. package/dist/global/staged.js +654 -1521
  20. package/dist/global/{strip-ansi-BL-dgd7n.js → strip-ansi-CE-VDMdw.js} +20 -67
  21. package/dist/global/version.js +16 -37
  22. package/dist/global/{workspace-De4OKHV7.js → workspace-lRm8huz4.js} +1645 -2806
  23. package/dist/global/wrap-ansi-Ou9oAs-a.js +3 -0
  24. package/dist/global/{wrap-ansi-Iww6Ak1s.js → wrap-ansi-eywLlPVQ.js} +29 -80
  25. package/dist/index.d.ts +1 -1
  26. package/dist/init-config.js +10 -2
  27. package/dist/run-config.d.ts +17 -0
  28. package/dist/utils/agent.d.ts +15 -1
  29. package/dist/utils/agent.js +104 -20
  30. package/dist/utils/constants.d.ts +1 -0
  31. package/dist/utils/constants.js +2 -0
  32. package/dist/utils/editor.d.ts +16 -3
  33. package/dist/utils/editor.js +55 -17
  34. package/dist/utils/prompts.d.ts +32 -3
  35. package/dist/utils/prompts.js +32 -8
  36. package/dist/utils/skills.js +18 -2
  37. package/dist/utils/tsconfig.d.ts +6 -0
  38. package/dist/utils/tsconfig.js +16 -0
  39. package/package.json +13 -13
  40. package/templates/monorepo/package.json +1 -1
  41. package/dist/global/wrap-ansi-BJxjUEQR.js +0 -4
  42. package/dist/oxlint-config.d.ts +0 -498
  43. package/dist/oxlint-config.js +0 -309
package/binding/index.cjs CHANGED
@@ -765,7 +765,9 @@ module.exports.detectWorkspace = nativeBinding.detectWorkspace;
765
765
  module.exports.downloadPackageManager = nativeBinding.downloadPackageManager;
766
766
  module.exports.mergeJsonConfig = nativeBinding.mergeJsonConfig;
767
767
  module.exports.mergeTsdownConfig = nativeBinding.mergeTsdownConfig;
768
+ module.exports.rewriteEslint = nativeBinding.rewriteEslint;
768
769
  module.exports.rewriteImportsInDirectory = nativeBinding.rewriteImportsInDirectory;
770
+ module.exports.rewritePrettier = nativeBinding.rewritePrettier;
769
771
  module.exports.rewriteScripts = nativeBinding.rewriteScripts;
770
772
  module.exports.run = nativeBinding.run;
771
773
  module.exports.runCommand = nativeBinding.runCommand;
@@ -208,6 +208,22 @@ export interface PathAccess {
208
208
  readDir: boolean;
209
209
  }
210
210
 
211
+ /**
212
+ * Rewrite ESLint scripts: rename `eslint` → `vp lint` and strip ESLint-only flags.
213
+ *
214
+ * Uses brush-parser to parse shell commands, so it correctly handles env var prefixes,
215
+ * compound commands (`&&`, `||`, `|`), and quoted arguments.
216
+ *
217
+ * # Arguments
218
+ *
219
+ * * `scripts_json` - The scripts section as a JSON string
220
+ *
221
+ * # Returns
222
+ *
223
+ * * `updated` - The updated scripts JSON string, or `null` if no changes were made
224
+ */
225
+ export declare function rewriteEslint(scriptsJson: string): string | null;
226
+
211
227
  /**
212
228
  * Rewrite imports in all TypeScript/JavaScript files under a directory
213
229
  *
@@ -237,6 +253,22 @@ export interface PathAccess {
237
253
  */
238
254
  export declare function rewriteImportsInDirectory(root: string): BatchRewriteResult;
239
255
 
256
+ /**
257
+ * Rewrite Prettier scripts: rename `prettier` → `vp fmt` and strip Prettier-only flags.
258
+ *
259
+ * Uses brush-parser to parse shell commands, so it correctly handles env var prefixes,
260
+ * compound commands (`&&`, `||`, `|`), and quoted arguments.
261
+ *
262
+ * # Arguments
263
+ *
264
+ * * `scripts_json` - The scripts section as a JSON string
265
+ *
266
+ * # Returns
267
+ *
268
+ * * `updated` - The updated scripts JSON string, or `null` if no changes were made
269
+ */
270
+ export declare function rewritePrettier(scriptsJson: string): string | null;
271
+
240
272
  /**
241
273
  * Rewrite scripts json content using rules from rules_yaml
242
274
  *