@bamboocss/dev 1.56.6 → 1.57.0
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.
- package/dist/cli-default.cjs +130 -41
- package/dist/cli-default.mjs +117 -28
- package/dist/cli-main.cjs +128 -39
- package/dist/cli-main.mjs +116 -27
- package/dist/errors.cjs +2 -2
- package/dist/errors.mjs +1 -1
- package/dist/{interactive-C1BBHzSj.mjs → interactive-BsLF_8Nh.mjs} +1 -1
- package/dist/{interactive-CpNeOAtr.cjs → interactive-DQdQtZSY.cjs} +1 -1
- package/dist/interactive.cjs +1 -1
- package/dist/interactive.mjs +1 -1
- package/dist/{mcp-init-C5-cxGr8.cjs → mcp-init-C5_g6W-U.cjs} +9 -9
- package/dist/{mcp-init-wCSrjJut.mjs → mcp-init-CCfzkOPO.mjs} +3 -3
- package/dist/{mcp-init-DAn6FsEJ.cjs → mcp-init-DPvpdzws.cjs} +8 -8
- package/dist/{mcp-init-MPfnXfaE.mjs → mcp-init-DbWbUOwg.mjs} +2 -2
- package/dist/{package-CQP2zQYF.mjs → package-Cqdhaelc.mjs} +1 -1
- package/dist/{package-DNHdHeMV.cjs → package-DWYvR3kk.cjs} +1 -1
- package/dist/types.d.cts +10 -2
- package/dist/types.d.mts +10 -2
- package/dist/{update-notifier-Bne2G0qU.cjs → update-notifier-BiU20Gpu.cjs} +74 -78
- package/dist/{update-notifier-SlOlBi-b.mjs → update-notifier-Cv5chHXk.mjs} +101 -103
- package/package.json +11 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
-
const require_package = require("./package-
|
|
2
|
+
const require_package = require("./package-DWYvR3kk.cjs");
|
|
3
3
|
let _clack_prompts = require("@clack/prompts");
|
|
4
4
|
_clack_prompts = require_chunk.__toESM(_clack_prompts);
|
|
5
5
|
//#region src/interactive.ts
|
package/dist/interactive.cjs
CHANGED
|
@@ -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.
|
|
27
|
+
var version = "1.57.0";
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/interactive.ts
|
|
30
30
|
const interactive = async (_options = {}) => {
|
package/dist/interactive.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
-
const require_package = require("./package-
|
|
2
|
+
const require_package = require("./package-DWYvR3kk.cjs");
|
|
3
3
|
let _bamboocss_logger = require("@bamboocss/logger");
|
|
4
|
-
let
|
|
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,
|
|
106
|
-
const configDir = (0,
|
|
107
|
-
if (!(0,
|
|
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,
|
|
111
|
-
const existingContent = (0,
|
|
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,
|
|
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-
|
|
1
|
+
import { t as version } from "./package-Cqdhaelc.mjs";
|
|
2
2
|
import { logger } from "@bamboocss/logger";
|
|
3
|
-
import {
|
|
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,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
|
|
5
|
-
let
|
|
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,
|
|
106
|
-
const configDir = (0,
|
|
107
|
-
if (!(0,
|
|
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,
|
|
111
|
-
const existingContent = (0,
|
|
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,
|
|
121
|
+
(0, node_fs.writeFileSync)(configPath, JSON.stringify(finalConfig, null, 2));
|
|
122
122
|
results.push({
|
|
123
123
|
client,
|
|
124
124
|
path: clientConfig.configPath,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as version } from "./cli-default.mjs";
|
|
2
2
|
import { logger } from "@bamboocss/logger";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 = {
|
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
|
-
|
|
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
|
-
|
|
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 };
|