@vuetify/cli 0.0.8 → 0.0.10-beta.2

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 (2) hide show
  1. package/dist/index.mjs +88 -22
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -8234,6 +8234,12 @@ var en_default = {
8234
8234
  "current": "Currently",
8235
8235
  "need_to": "We need to %{actions}."
8236
8236
  },
8237
+ "mcp": {
8238
+ "description": "Install %{pkg} to enable MCP integration with Vuetify.",
8239
+ "action": { "install": "install %{pkg}" },
8240
+ "current": "Currently",
8241
+ "need_to": "We need to %{action}."
8242
+ },
8237
8243
  "init": {
8238
8244
  "v0": "Initialize a Vuetify0 project",
8239
8245
  "description": "Initialize a Vuetify project",
@@ -8291,6 +8297,11 @@ var en_default = {
8291
8297
  "create": "No ESLint config found. Do you want to create one?",
8292
8298
  "scripts": "Do you want to add lint scripts to package.json?"
8293
8299
  },
8300
+ "mcp": {
8301
+ "overwrite": "Found %{file}. Overwrite?",
8302
+ "create": "Create Ruler config files?",
8303
+ "scripts": "Add mcp scripts to package.json?"
8304
+ },
8294
8305
  "directory": {
8295
8306
  "name": "Project name",
8296
8307
  "overwrite": "Directory \"%{dir}\" already exists. Do you want to overwrite it?",
@@ -8373,6 +8384,10 @@ var en_default = {
8373
8384
  "eslint": {
8374
8385
  "setup_config": "Setting up ESLint config...",
8375
8386
  "complete": "ESLint config setup complete!"
8387
+ },
8388
+ "mcp": {
8389
+ "setup_config": "Setting up Ruler config...",
8390
+ "complete": "Ruler setup complete"
8376
8391
  }
8377
8392
  },
8378
8393
  messages: {
@@ -8425,6 +8440,12 @@ var ru_default = {
8425
8440
  "current": "Сейчас",
8426
8441
  "need_to": "Нужно %{actions}."
8427
8442
  },
8443
+ "mcp": {
8444
+ "description": "Установим %{configPkg}, чтобы включить интеграцию MCP с Vuetify.",
8445
+ "action": { "install": "установить %{pkgs}" },
8446
+ "current": "Сейчас",
8447
+ "need_to": "Нужно %{actions}."
8448
+ },
8428
8449
  "init": {
8429
8450
  "v0": "Инициализировать проект Vuetify0",
8430
8451
  "description": "Инициализировать проект Vuetify",
@@ -11823,7 +11844,7 @@ const black = kolorist(30, 39);
11823
11844
  const red = kolorist(31, 39);
11824
11845
  const green = kolorist(32, 39);
11825
11846
  const yellow = kolorist(33, 39);
11826
- const blue$2 = kolorist(34, 39);
11847
+ const blue$3 = kolorist(34, 39);
11827
11848
  const magenta = kolorist(35, 39);
11828
11849
  const cyan = kolorist(36, 39);
11829
11850
  const white = kolorist(97, 39);
@@ -12723,7 +12744,7 @@ const colorfulBanner = `  \`$$[38;5;1
12723
12744
                  \`T:             
12724
12745
  `;
12725
12746
  const unstyledBanner = stripColors(colorfulBanner);
12726
- const coloredBanner = blue$2(unstyledBanner);
12747
+ const coloredBanner = blue$3(unstyledBanner);
12727
12748
  function createBanner() {
12728
12749
  if (!options.enabled) return unstyledBanner;
12729
12750
  else if (options.supportLevel < 2) return coloredBanner;
@@ -52744,21 +52765,7 @@ function getNuxtI18nConfig(_ts) {
52744
52765
  }
52745
52766
 
52746
52767
  //#endregion
52747
- //#region ../shared/src/features/mcp.ts
52748
- const mcp = {
52749
- name: "mcp",
52750
- apply: async ({ cwd: cwd$2, pkg }) => {
52751
- pkg.devDependencies = pkg.devDependencies || {};
52752
- pkg.devDependencies["@intellectronica/ruler"] = dependencies["@intellectronica/ruler"];
52753
- pkg.scripts = pkg.scripts || {};
52754
- pkg.scripts["mcp"] = "ruler apply";
52755
- pkg.scripts["mcp:revert"] = "ruler revert";
52756
- const rulerDir = join(cwd$2, ".ruler");
52757
- await mkdir(rulerDir, { recursive: true });
52758
- await writeFile(join(rulerDir, "ruler.toml"), getRulerToml());
52759
- await writeFile(join(rulerDir, "AGENTS.md"), getAgentsMd());
52760
- }
52761
- };
52768
+ //#region ../shared/src/utils/mcp.ts
52762
52769
  function getRulerToml() {
52763
52770
  return `# For a complete example, see: https://okigu.com/ruler#complete-example
52764
52771
 
@@ -52781,6 +52788,23 @@ function getAgentsMd() {
52781
52788
  `;
52782
52789
  }
52783
52790
 
52791
+ //#endregion
52792
+ //#region ../shared/src/features/mcp.ts
52793
+ const mcp = {
52794
+ name: "mcp",
52795
+ apply: async ({ cwd: cwd$2, pkg }) => {
52796
+ pkg.devDependencies = pkg.devDependencies || {};
52797
+ pkg.devDependencies["@intellectronica/ruler"] = dependencies["@intellectronica/ruler"];
52798
+ pkg.scripts = pkg.scripts || {};
52799
+ pkg.scripts["mcp"] = "ruler apply";
52800
+ pkg.scripts["mcp:revert"] = "ruler revert";
52801
+ const rulerDir = join(cwd$2, ".ruler");
52802
+ await mkdir(rulerDir, { recursive: true });
52803
+ await writeFile(join(rulerDir, "ruler.toml"), getRulerToml());
52804
+ await writeFile(join(rulerDir, "AGENTS.md"), getAgentsMd());
52805
+ }
52806
+ };
52807
+
52784
52808
  //#endregion
52785
52809
  //#region ../shared/src/features/pinia.ts
52786
52810
  const pinia = {
@@ -53938,8 +53962,8 @@ export default vuetify()
53938
53962
 
53939
53963
  //#endregion
53940
53964
  //#region ../shared/src/functions/eslint.ts
53941
- const blue$1 = ansi256(33);
53942
- const description = i18n.t("commands.eslint.description", { configPkg: blue$1(ESLINT_CONFIG) });
53965
+ const blue$2 = ansi256(33);
53966
+ const description$1 = i18n.t("commands.eslint.description", { configPkg: blue$2(ESLINT_CONFIG) });
53943
53967
  async function getEslintStatus() {
53944
53968
  const nuxtConfigUrl = tryResolveFilePath("./nuxt.config", { extensions: [
53945
53969
  ".ts",
@@ -54002,7 +54026,7 @@ function getActionMessage(status) {
54002
54026
  return i18n.t("commands.eslint.need_to", { actions: actions.join(" ") });
54003
54027
  }
54004
54028
  async function addEslint() {
54005
- Nt(description);
54029
+ Nt(description$1);
54006
54030
  const status = await getEslintStatus();
54007
54031
  const { packagesToInstall, packagesToUpgrade, isEslintSupportsConcurrency, isNuxt, nuxtConfigUrl } = status;
54008
54032
  tryResolveFilePath("tsconfig.json");
@@ -54058,6 +54082,45 @@ async function addEslint() {
54058
54082
  Wt(i18n.t("messages.all_done"));
54059
54083
  }
54060
54084
 
54085
+ //#endregion
54086
+ //#region ../shared/src/functions/mcp.ts
54087
+ const RULER_PKG = "@intellectronica/ruler";
54088
+ const blue$1 = ansi256(33);
54089
+ const description = i18n.t("commands.mcp.description", { pkg: blue$1(RULER_PKG) });
54090
+ async function addMcp() {
54091
+ Nt(description);
54092
+ if (await tryResolvePackage(RULER_PKG)) R.info(i18n.t("messages.eslint.deps_already_installed"));
54093
+ else {
54094
+ R.info(i18n.t("commands.mcp.need_to", { action: i18n.t("commands.mcp.action.install", { pkg: RULER_PKG }) }));
54095
+ if (await Mt({ message: i18n.t("prompts.proceed") }) === true) {
54096
+ const s$9 = Se();
54097
+ s$9.start(i18n.t("spinners.dependencies.installing"));
54098
+ await addDevDependency(RULER_PKG, { silent: true });
54099
+ s$9.stop(i18n.t("spinners.dependencies.installed"));
54100
+ }
54101
+ }
54102
+ const rulerDir = join(process.cwd(), ".ruler");
54103
+ const rulerTomlPath = join(rulerDir, "ruler.toml");
54104
+ const agentsMdPath = join(rulerDir, "AGENTS.md");
54105
+ if (await Mt({ message: existsSync(rulerDir) && existsSync(rulerTomlPath) && existsSync(agentsMdPath) ? i18n.t("prompts.mcp.overwrite", { file: ".ruler" }) : i18n.t("prompts.mcp.create") }) === true) {
54106
+ const s$9 = Se();
54107
+ s$9.start(i18n.t("spinners.mcp.setup_config"));
54108
+ await mkdir(rulerDir, { recursive: true });
54109
+ await writeFile(rulerTomlPath, getRulerToml());
54110
+ await writeFile(agentsMdPath, getAgentsMd());
54111
+ s$9.stop(i18n.t("spinners.mcp.complete"));
54112
+ }
54113
+ const filename = await findPackage();
54114
+ const packageJson = await readPackage(filename);
54115
+ if ((packageJson.scripts?.mcp && packageJson.scripts?.["mcp:revert"] ? false : await Mt({ message: i18n.t("prompts.mcp.scripts") })) === true) updatePackage(filename, (pkg) => {
54116
+ pkg.scripts ??= {};
54117
+ pkg.scripts["mcp"] = "ruler apply";
54118
+ pkg.scripts["mcp:revert"] = "ruler revert";
54119
+ return pkg;
54120
+ });
54121
+ Wt(i18n.t("messages.all_done"));
54122
+ }
54123
+
54061
54124
  //#endregion
54062
54125
  //#region ../../node_modules/.pnpm/ini@4.1.1/node_modules/ini/lib/ini.js
54063
54126
  var require_ini = /* @__PURE__ */ __commonJS$1({ "../../node_modules/.pnpm/ini@4.1.1/node_modules/ini/lib/ini.js": ((exports, module) => {
@@ -54326,7 +54389,7 @@ async function upgradeSelf(pkgName) {
54326
54389
 
54327
54390
  //#endregion
54328
54391
  //#region ../shared/src/commands/add.ts
54329
- const choices = ["eslint"];
54392
+ const choices = ["eslint", "mcp"];
54330
54393
  const add = defineCommand({
54331
54394
  meta: {
54332
54395
  name: "add",
@@ -54363,6 +54426,9 @@ const add = defineCommand({
54363
54426
  case "eslint":
54364
54427
  await addEslint();
54365
54428
  break;
54429
+ case "mcp":
54430
+ await addMcp();
54431
+ break;
54366
54432
  }
54367
54433
  }
54368
54434
  });
@@ -55965,7 +56031,7 @@ function commandUpgradeFabric(pkgName) {
55965
56031
 
55966
56032
  //#endregion
55967
56033
  //#region package.json
55968
- var version = "0.0.8";
56034
+ var version = "0.0.10-beta.2";
55969
56035
 
55970
56036
  //#endregion
55971
56037
  //#region src/commands/docs.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuetify/cli",
3
- "version": "0.0.8",
3
+ "version": "0.0.10-beta.2",
4
4
  "description": "Vuetify CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -18,7 +18,7 @@
18
18
  "open": "^11.0.0",
19
19
  "pathe": "^2.0.3",
20
20
  "tsdown": "^0.16.6",
21
- "@vuetify/cli-shared": "0.0.8"
21
+ "@vuetify/cli-shared": "0.0.10-beta.2"
22
22
  },
23
23
  "main": "./dist/index.mjs",
24
24
  "module": "./dist/index.mjs",