@bamboocss/dev 1.56.7 → 1.57.1

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.
@@ -1,4 +1,4 @@
1
- import { t as version } from "./package-DtugIbci.mjs";
1
+ import { t as version } from "./package-LzoFBoZe.mjs";
2
2
  import * as p from "@clack/prompts";
3
3
  //#region src/interactive.ts
4
4
  const interactive = async (_options = {}) => {
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  let _clack_prompts = require("@clack/prompts");
25
25
  _clack_prompts = __toESM(_clack_prompts);
26
26
  //#region package.json
27
- var version = "1.56.7";
27
+ var version = "1.57.1";
28
28
  //#endregion
29
29
  //#region src/interactive.ts
30
30
  const interactive = async (_options = {}) => {
@@ -1,6 +1,6 @@
1
1
  import * as p from "@clack/prompts";
2
2
  //#region package.json
3
- var version = "1.56.7";
3
+ var version = "1.57.1";
4
4
  //#endregion
5
5
  //#region src/interactive.ts
6
6
  const interactive = async (_options = {}) => {
@@ -1,10 +1,10 @@
1
1
  const require_chunk = require("./chunk-CKQMccvm.cjs");
2
- const require_package = require("./package-bb-vfRkr.cjs");
2
+ const require_package = require("./package-DyS9LJ6Y.cjs");
3
3
  let _bamboocss_logger = require("@bamboocss/logger");
4
- let path = require("path");
4
+ let node_fs = require("node:fs");
5
+ let node_path = require("node:path");
5
6
  let _clack_prompts = require("@clack/prompts");
6
7
  _clack_prompts = require_chunk.__toESM(_clack_prompts);
7
- let fs = require("fs");
8
8
  //#region src/mcp-clients.ts
9
9
  const MCP_CLIENTS = {
10
10
  claude: {
@@ -102,13 +102,13 @@ async function initMcpConfig(options = {}) {
102
102
  const results = [];
103
103
  for (const client of validClients) {
104
104
  const clientConfig = getClientConfig(client);
105
- const configPath = (0, path.resolve)(cwd, clientConfig.configPath);
106
- const configDir = (0, path.dirname)(configPath);
107
- if (!(0, fs.existsSync)(configDir)) (0, fs.mkdirSync)(configDir, { recursive: true });
105
+ const configPath = (0, node_path.resolve)(cwd, clientConfig.configPath);
106
+ const configDir = (0, node_path.dirname)(configPath);
107
+ if (!(0, node_fs.existsSync)(configDir)) (0, node_fs.mkdirSync)(configDir, { recursive: true });
108
108
  const newConfig = generateMcpConfig(clientConfig, require_package.version);
109
109
  let finalConfig = newConfig;
110
- if ((0, fs.existsSync)(configPath)) try {
111
- const existingContent = (0, fs.readFileSync)(configPath, "utf-8");
110
+ if ((0, node_fs.existsSync)(configPath)) try {
111
+ const existingContent = (0, node_fs.readFileSync)(configPath, "utf-8");
112
112
  const existingConfig = JSON.parse(existingContent);
113
113
  finalConfig = {
114
114
  ...existingConfig,
@@ -118,7 +118,7 @@ async function initMcpConfig(options = {}) {
118
118
  }
119
119
  };
120
120
  } catch {}
121
- (0, fs.writeFileSync)(configPath, JSON.stringify(finalConfig, null, 2));
121
+ (0, node_fs.writeFileSync)(configPath, JSON.stringify(finalConfig, null, 2));
122
122
  results.push({
123
123
  client,
124
124
  path: clientConfig.configPath,
@@ -1,8 +1,8 @@
1
1
  const require_chunk = require("./chunk-C2EiDwsr.cjs");
2
2
  const require_cli_default = require("./cli-default.cjs");
3
3
  let _bamboocss_logger = require("@bamboocss/logger");
4
- let path = require("path");
5
- let fs = require("fs");
4
+ let node_fs = require("node:fs");
5
+ let node_path = require("node:path");
6
6
  let _clack_prompts = require("@clack/prompts");
7
7
  _clack_prompts = require_chunk.__toESM(_clack_prompts);
8
8
  //#region src/mcp-clients.ts
@@ -102,13 +102,13 @@ async function initMcpConfig(options = {}) {
102
102
  const results = [];
103
103
  for (const client of validClients) {
104
104
  const clientConfig = getClientConfig(client);
105
- const configPath = (0, path.resolve)(cwd, clientConfig.configPath);
106
- const configDir = (0, path.dirname)(configPath);
107
- if (!(0, fs.existsSync)(configDir)) (0, fs.mkdirSync)(configDir, { recursive: true });
105
+ const configPath = (0, node_path.resolve)(cwd, clientConfig.configPath);
106
+ const configDir = (0, node_path.dirname)(configPath);
107
+ if (!(0, node_fs.existsSync)(configDir)) (0, node_fs.mkdirSync)(configDir, { recursive: true });
108
108
  const newConfig = generateMcpConfig(clientConfig, require_cli_default.version);
109
109
  let finalConfig = newConfig;
110
- if ((0, fs.existsSync)(configPath)) try {
111
- const existingContent = (0, fs.readFileSync)(configPath, "utf-8");
110
+ if ((0, node_fs.existsSync)(configPath)) try {
111
+ const existingContent = (0, node_fs.readFileSync)(configPath, "utf-8");
112
112
  const existingConfig = JSON.parse(existingContent);
113
113
  finalConfig = {
114
114
  ...existingConfig,
@@ -118,7 +118,7 @@ async function initMcpConfig(options = {}) {
118
118
  }
119
119
  };
120
120
  } catch {}
121
- (0, fs.writeFileSync)(configPath, JSON.stringify(finalConfig, null, 2));
121
+ (0, node_fs.writeFileSync)(configPath, JSON.stringify(finalConfig, null, 2));
122
122
  results.push({
123
123
  client,
124
124
  path: clientConfig.configPath,
@@ -1,8 +1,8 @@
1
- import { t as version } from "./package-DtugIbci.mjs";
1
+ import { t as version } from "./package-LzoFBoZe.mjs";
2
2
  import { logger } from "@bamboocss/logger";
3
- import { dirname, resolve } from "path";
3
+ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
4
+ import { dirname, resolve } from "node:path";
4
5
  import * as p from "@clack/prompts";
5
- import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
6
6
  //#region src/mcp-clients.ts
7
7
  const MCP_CLIENTS = {
8
8
  claude: {
@@ -1,7 +1,7 @@
1
1
  import { t as version } from "./cli-default.mjs";
2
2
  import { logger } from "@bamboocss/logger";
3
- import { dirname, resolve } from "path";
4
- import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
3
+ import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
4
+ import { dirname, resolve } from "node:path";
5
5
  import * as p from "@clack/prompts";
6
6
  //#region src/mcp-clients.ts
7
7
  const MCP_CLIENTS = {
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "1.56.7";
2
+ var version = "1.57.1";
3
3
  //#endregion
4
4
  Object.defineProperty(exports, "version", {
5
5
  enumerable: true,
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "1.56.7";
2
+ var version = "1.57.1";
3
3
  //#endregion
4
4
  export { version as t };
package/dist/types.d.cts CHANGED
@@ -33,7 +33,14 @@ interface AnalyzeCommandFlags {
33
33
  outfile?: string;
34
34
  cwd?: string;
35
35
  config?: string;
36
- scope?: 'token' | 'recipe';
36
+ /** `token`, `recipe`, and with `unused` `pattern` or `keyframe` — each also plural. */
37
+ scope?: string;
38
+ unused?: boolean;
39
+ }
40
+ interface DoctorCommandFlags {
41
+ json?: boolean;
42
+ cwd?: string;
43
+ config?: string;
37
44
  }
38
45
  interface DebugCommandFlags {
39
46
  silent?: boolean;
@@ -44,6 +51,7 @@ interface DebugCommandFlags {
44
51
  onlyConfig?: boolean;
45
52
  cpuProf?: boolean;
46
53
  logfile?: string;
54
+ zip?: boolean;
47
55
  }
48
56
  interface ShipCommandFlags {
49
57
  silent?: boolean;
@@ -91,4 +99,4 @@ interface SpecCommandFlags {
91
99
  config?: string;
92
100
  }
93
101
  //#endregion
94
- export { AnalyzeCommandFlags, CodegenCommandFlags, CssGenCommandFlags, DebugCommandFlags, EmitPackageCommandFlags, InitCommandFlags, MainCommandFlags, McpInitCommandFlags, ShipCommandFlags, SpecCommandFlags };
102
+ export { AnalyzeCommandFlags, CodegenCommandFlags, CssGenCommandFlags, DebugCommandFlags, DoctorCommandFlags, EmitPackageCommandFlags, InitCommandFlags, MainCommandFlags, McpInitCommandFlags, ShipCommandFlags, SpecCommandFlags };
package/dist/types.d.mts CHANGED
@@ -33,7 +33,14 @@ interface AnalyzeCommandFlags {
33
33
  outfile?: string;
34
34
  cwd?: string;
35
35
  config?: string;
36
- scope?: 'token' | 'recipe';
36
+ /** `token`, `recipe`, and with `unused` `pattern` or `keyframe` — each also plural. */
37
+ scope?: string;
38
+ unused?: boolean;
39
+ }
40
+ interface DoctorCommandFlags {
41
+ json?: boolean;
42
+ cwd?: string;
43
+ config?: string;
37
44
  }
38
45
  interface DebugCommandFlags {
39
46
  silent?: boolean;
@@ -44,6 +51,7 @@ interface DebugCommandFlags {
44
51
  onlyConfig?: boolean;
45
52
  cpuProf?: boolean;
46
53
  logfile?: string;
54
+ zip?: boolean;
47
55
  }
48
56
  interface ShipCommandFlags {
49
57
  silent?: boolean;
@@ -91,4 +99,4 @@ interface SpecCommandFlags {
91
99
  config?: string;
92
100
  }
93
101
  //#endregion
94
- export { AnalyzeCommandFlags, CodegenCommandFlags, CssGenCommandFlags, DebugCommandFlags, EmitPackageCommandFlags, InitCommandFlags, MainCommandFlags, McpInitCommandFlags, ShipCommandFlags, SpecCommandFlags };
102
+ export { AnalyzeCommandFlags, CodegenCommandFlags, CssGenCommandFlags, DebugCommandFlags, DoctorCommandFlags, EmitPackageCommandFlags, InitCommandFlags, MainCommandFlags, McpInitCommandFlags, ShipCommandFlags, SpecCommandFlags };