flash-builder 1.0.7 → 1.0.8
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/index.cjs +26 -34
- package/dist/index.js +26 -34
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -91,7 +91,7 @@ var require_main = __commonJS((exports2, module2) => {
|
|
|
91
91
|
var os = require("os");
|
|
92
92
|
var crypto = require("crypto");
|
|
93
93
|
var packageJson = require_package();
|
|
94
|
-
var
|
|
94
|
+
var version2 = packageJson.version;
|
|
95
95
|
var TIPS = [
|
|
96
96
|
"\uD83D\uDD10 encrypt with Dotenvx: https://dotenvx.com",
|
|
97
97
|
"\uD83D\uDD10 prevent committing .env to code: https://dotenvx.com/precommit",
|
|
@@ -175,13 +175,13 @@ var require_main = __commonJS((exports2, module2) => {
|
|
|
175
175
|
return DotenvModule.parse(decrypted);
|
|
176
176
|
}
|
|
177
177
|
function _warn(message) {
|
|
178
|
-
console.error(`[dotenv@${
|
|
178
|
+
console.error(`[dotenv@${version2}][WARN] ${message}`);
|
|
179
179
|
}
|
|
180
180
|
function _debug(message) {
|
|
181
|
-
console.log(`[dotenv@${
|
|
181
|
+
console.log(`[dotenv@${version2}][DEBUG] ${message}`);
|
|
182
182
|
}
|
|
183
183
|
function _log(message) {
|
|
184
|
-
console.log(`[dotenv@${
|
|
184
|
+
console.log(`[dotenv@${version2}] ${message}`);
|
|
185
185
|
}
|
|
186
186
|
function _dotenvKey(options) {
|
|
187
187
|
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
|
|
@@ -9818,9 +9818,20 @@ var meow = (helpText, options = {}) => {
|
|
|
9818
9818
|
return result;
|
|
9819
9819
|
};
|
|
9820
9820
|
|
|
9821
|
+
// version.ts
|
|
9822
|
+
var version = "1.0.8";
|
|
9823
|
+
var version_default = version;
|
|
9824
|
+
|
|
9821
9825
|
// src/banner.ts
|
|
9822
|
-
var
|
|
9823
|
-
|
|
9826
|
+
var banner = `
|
|
9827
|
+
________ __ ____ _ __ __
|
|
9828
|
+
/ ____/ /___ ______/ /_ / __ )__ __(_) /___/ /__ _____
|
|
9829
|
+
/ /_ / / __ \`/ ___/ __ \\ / __ / / / / / / __ / _ \\/ ___/
|
|
9830
|
+
/ __/ / / /_/ (__ ) / / / / /_/ / /_/ / / / /_/ / __/ /
|
|
9831
|
+
/_/ /_/\\__,_/____/_/ /_/ /_____/\\__,_/_/_/\\__,_/\\___/_/ ${version_default}
|
|
9832
|
+
---------------------------------------------------------------------
|
|
9833
|
+
`;
|
|
9834
|
+
var banner_default = banner;
|
|
9824
9835
|
|
|
9825
9836
|
// src/environment.ts
|
|
9826
9837
|
var import_dotenv = __toESM(require_main(), 1);
|
|
@@ -9835,25 +9846,6 @@ var LLM_MODEL = ENV.LLM_MODEL;
|
|
|
9835
9846
|
var LLM_BASE_URL = ENV.LLM_BASE_URL;
|
|
9836
9847
|
var LLM_API_KEY = ENV.LLM_API_KEY || "";
|
|
9837
9848
|
|
|
9838
|
-
// src/banner.ts
|
|
9839
|
-
var packageJsonPath = FROM_NODE_MODULE ? import_path2.default.join(PWD, "node_modules", "flash-builder", "package.json") : import_path2.default.join(PWD, "package.json");
|
|
9840
|
-
var packageJson = JSON.parse(import_fs2.default.readFileSync(packageJsonPath, "utf-8"));
|
|
9841
|
-
var packageVersion = packageJson.version;
|
|
9842
|
-
console.log({
|
|
9843
|
-
packageJsonPath,
|
|
9844
|
-
packageJson,
|
|
9845
|
-
packageVersion
|
|
9846
|
-
});
|
|
9847
|
-
var banner = `
|
|
9848
|
-
________ __ ____ _ __ __
|
|
9849
|
-
/ ____/ /___ ______/ /_ / __ )__ __(_) /___/ /__ _____
|
|
9850
|
-
/ /_ / / __ \`/ ___/ __ \\ / __ / / / / / / __ / _ \\/ ___/
|
|
9851
|
-
/ __/ / / /_/ (__ ) / / / / /_/ / /_/ / / / /_/ / __/ /
|
|
9852
|
-
/_/ /_/\\__,_/____/_/ /_/ /_____/\\__,_/_/_/\\__,_/\\___/_/ ${packageVersion}
|
|
9853
|
-
---------------------------------------------------------------------
|
|
9854
|
-
`;
|
|
9855
|
-
var banner_default = banner;
|
|
9856
|
-
|
|
9857
9849
|
// src/commands/be/index.ts
|
|
9858
9850
|
var import_node_fs2 = require("fs");
|
|
9859
9851
|
var import_node_path3 = require("path");
|
|
@@ -9884,7 +9876,7 @@ function beCommand(projectName, verbose) {
|
|
|
9884
9876
|
import_node_fs2.mkdirSync(import_node_path3.join(projectPath, "src", "controllers"), { recursive: true });
|
|
9885
9877
|
import_node_fs2.mkdirSync(import_node_path3.join(projectPath, "src", "models"), { recursive: true });
|
|
9886
9878
|
import_node_fs2.mkdirSync(import_node_path3.join(projectPath, "src", "middlewares"), { recursive: true });
|
|
9887
|
-
const
|
|
9879
|
+
const packageJson = {
|
|
9888
9880
|
name: projectName,
|
|
9889
9881
|
version: "1.0.0",
|
|
9890
9882
|
type: "module",
|
|
@@ -9902,7 +9894,7 @@ function beCommand(projectName, verbose) {
|
|
|
9902
9894
|
"@types/bun": "latest"
|
|
9903
9895
|
}
|
|
9904
9896
|
};
|
|
9905
|
-
import_node_fs2.writeFileSync(import_node_path3.join(projectPath, "package.json"), JSON.stringify(
|
|
9897
|
+
import_node_fs2.writeFileSync(import_node_path3.join(projectPath, "package.json"), JSON.stringify(packageJson, null, 2));
|
|
9906
9898
|
import_node_fs2.writeFileSync(import_node_path3.join(projectPath, "src", "index.ts"), `import express from "express";
|
|
9907
9899
|
import dotenv from "dotenv";
|
|
9908
9900
|
|
|
@@ -9967,7 +9959,7 @@ function mcpCommand(projectName, verbose) {
|
|
|
9967
9959
|
import_node_fs3.mkdirSync(import_node_path4.join(projectPath, "src"), { recursive: true });
|
|
9968
9960
|
import_node_fs3.mkdirSync(import_node_path4.join(projectPath, "src", "tools"), { recursive: true });
|
|
9969
9961
|
import_node_fs3.mkdirSync(import_node_path4.join(projectPath, "src", "resources"), { recursive: true });
|
|
9970
|
-
const
|
|
9962
|
+
const packageJson = {
|
|
9971
9963
|
name: projectName,
|
|
9972
9964
|
version: "1.0.0",
|
|
9973
9965
|
type: "module",
|
|
@@ -9984,7 +9976,7 @@ function mcpCommand(projectName, verbose) {
|
|
|
9984
9976
|
"@types/bun": "latest"
|
|
9985
9977
|
}
|
|
9986
9978
|
};
|
|
9987
|
-
import_node_fs3.writeFileSync(import_node_path4.join(projectPath, "package.json"), JSON.stringify(
|
|
9979
|
+
import_node_fs3.writeFileSync(import_node_path4.join(projectPath, "package.json"), JSON.stringify(packageJson, null, 2));
|
|
9988
9980
|
import_node_fs3.writeFileSync(import_node_path4.join(projectPath, "src", "index.ts"), `import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
9989
9981
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
9990
9982
|
import dotenv from "dotenv";
|
|
@@ -10042,16 +10034,16 @@ var import_node_fs4 = require("fs");
|
|
|
10042
10034
|
var import_node_path5 = require("path");
|
|
10043
10035
|
function syncCommand(verbose) {
|
|
10044
10036
|
log(`\uD83D\uDD04 Syncing backend interface with application target...`, false, verbose);
|
|
10045
|
-
const
|
|
10046
|
-
if (!import_node_fs4.existsSync(
|
|
10037
|
+
const packageJsonPath = import_node_path5.join(process.cwd(), "package.json");
|
|
10038
|
+
if (!import_node_fs4.existsSync(packageJsonPath)) {
|
|
10047
10039
|
console.error("\u274C Error: package.json not found in current directory");
|
|
10048
10040
|
console.log("Make sure you're in a project directory");
|
|
10049
10041
|
process.exit(1);
|
|
10050
10042
|
}
|
|
10051
10043
|
try {
|
|
10052
|
-
const
|
|
10053
|
-
log(`Project: ${
|
|
10054
|
-
log(`Version: ${
|
|
10044
|
+
const packageJson = JSON.parse(import_node_fs4.readFileSync(packageJsonPath, "utf-8"));
|
|
10045
|
+
log(`Project: ${packageJson.name}`, true, verbose);
|
|
10046
|
+
log(`Version: ${packageJson.version}`, true, verbose);
|
|
10055
10047
|
log(`\u2705 Sync completed successfully!`, false, verbose);
|
|
10056
10048
|
} catch (error) {
|
|
10057
10049
|
console.error("\u274C Error reading package.json:", error);
|
package/dist/index.js
CHANGED
|
@@ -92,7 +92,7 @@ var require_main = __commonJS((exports, module) => {
|
|
|
92
92
|
var os = __require("os");
|
|
93
93
|
var crypto = __require("crypto");
|
|
94
94
|
var packageJson = require_package();
|
|
95
|
-
var
|
|
95
|
+
var version2 = packageJson.version;
|
|
96
96
|
var TIPS = [
|
|
97
97
|
"\uD83D\uDD10 encrypt with Dotenvx: https://dotenvx.com",
|
|
98
98
|
"\uD83D\uDD10 prevent committing .env to code: https://dotenvx.com/precommit",
|
|
@@ -176,13 +176,13 @@ var require_main = __commonJS((exports, module) => {
|
|
|
176
176
|
return DotenvModule.parse(decrypted);
|
|
177
177
|
}
|
|
178
178
|
function _warn(message) {
|
|
179
|
-
console.error(`[dotenv@${
|
|
179
|
+
console.error(`[dotenv@${version2}][WARN] ${message}`);
|
|
180
180
|
}
|
|
181
181
|
function _debug(message) {
|
|
182
|
-
console.log(`[dotenv@${
|
|
182
|
+
console.log(`[dotenv@${version2}][DEBUG] ${message}`);
|
|
183
183
|
}
|
|
184
184
|
function _log(message) {
|
|
185
|
-
console.log(`[dotenv@${
|
|
185
|
+
console.log(`[dotenv@${version2}] ${message}`);
|
|
186
186
|
}
|
|
187
187
|
function _dotenvKey(options) {
|
|
188
188
|
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
|
|
@@ -9819,9 +9819,20 @@ var meow = (helpText, options = {}) => {
|
|
|
9819
9819
|
return result;
|
|
9820
9820
|
};
|
|
9821
9821
|
|
|
9822
|
+
// version.ts
|
|
9823
|
+
var version = "1.0.8";
|
|
9824
|
+
var version_default = version;
|
|
9825
|
+
|
|
9822
9826
|
// src/banner.ts
|
|
9823
|
-
|
|
9824
|
-
|
|
9827
|
+
var banner = `
|
|
9828
|
+
________ __ ____ _ __ __
|
|
9829
|
+
/ ____/ /___ ______/ /_ / __ )__ __(_) /___/ /__ _____
|
|
9830
|
+
/ /_ / / __ \`/ ___/ __ \\ / __ / / / / / / __ / _ \\/ ___/
|
|
9831
|
+
/ __/ / / /_/ (__ ) / / / / /_/ / /_/ / / / /_/ / __/ /
|
|
9832
|
+
/_/ /_/\\__,_/____/_/ /_/ /_____/\\__,_/_/_/\\__,_/\\___/_/ ${version_default}
|
|
9833
|
+
---------------------------------------------------------------------
|
|
9834
|
+
`;
|
|
9835
|
+
var banner_default = banner;
|
|
9825
9836
|
|
|
9826
9837
|
// src/environment.ts
|
|
9827
9838
|
var import_dotenv = __toESM(require_main(), 1);
|
|
@@ -9836,25 +9847,6 @@ var LLM_MODEL = ENV.LLM_MODEL;
|
|
|
9836
9847
|
var LLM_BASE_URL = ENV.LLM_BASE_URL;
|
|
9837
9848
|
var LLM_API_KEY = ENV.LLM_API_KEY || "";
|
|
9838
9849
|
|
|
9839
|
-
// src/banner.ts
|
|
9840
|
-
var packageJsonPath = FROM_NODE_MODULE ? path3.join(PWD, "node_modules", "flash-builder", "package.json") : path3.join(PWD, "package.json");
|
|
9841
|
-
var packageJson = JSON.parse(fs2.readFileSync(packageJsonPath, "utf-8"));
|
|
9842
|
-
var packageVersion = packageJson.version;
|
|
9843
|
-
console.log({
|
|
9844
|
-
packageJsonPath,
|
|
9845
|
-
packageJson,
|
|
9846
|
-
packageVersion
|
|
9847
|
-
});
|
|
9848
|
-
var banner = `
|
|
9849
|
-
________ __ ____ _ __ __
|
|
9850
|
-
/ ____/ /___ ______/ /_ / __ )__ __(_) /___/ /__ _____
|
|
9851
|
-
/ /_ / / __ \`/ ___/ __ \\ / __ / / / / / / __ / _ \\/ ___/
|
|
9852
|
-
/ __/ / / /_/ (__ ) / / / / /_/ / /_/ / / / /_/ / __/ /
|
|
9853
|
-
/_/ /_/\\__,_/____/_/ /_/ /_____/\\__,_/_/_/\\__,_/\\___/_/ ${packageVersion}
|
|
9854
|
-
---------------------------------------------------------------------
|
|
9855
|
-
`;
|
|
9856
|
-
var banner_default = banner;
|
|
9857
|
-
|
|
9858
9850
|
// src/commands/be/index.ts
|
|
9859
9851
|
import { existsSync, mkdirSync, writeFileSync } from "fs";
|
|
9860
9852
|
import { join } from "path";
|
|
@@ -9885,7 +9877,7 @@ function beCommand(projectName, verbose) {
|
|
|
9885
9877
|
mkdirSync(join(projectPath, "src", "controllers"), { recursive: true });
|
|
9886
9878
|
mkdirSync(join(projectPath, "src", "models"), { recursive: true });
|
|
9887
9879
|
mkdirSync(join(projectPath, "src", "middlewares"), { recursive: true });
|
|
9888
|
-
const
|
|
9880
|
+
const packageJson = {
|
|
9889
9881
|
name: projectName,
|
|
9890
9882
|
version: "1.0.0",
|
|
9891
9883
|
type: "module",
|
|
@@ -9903,7 +9895,7 @@ function beCommand(projectName, verbose) {
|
|
|
9903
9895
|
"@types/bun": "latest"
|
|
9904
9896
|
}
|
|
9905
9897
|
};
|
|
9906
|
-
writeFileSync(join(projectPath, "package.json"), JSON.stringify(
|
|
9898
|
+
writeFileSync(join(projectPath, "package.json"), JSON.stringify(packageJson, null, 2));
|
|
9907
9899
|
writeFileSync(join(projectPath, "src", "index.ts"), `import express from "express";
|
|
9908
9900
|
import dotenv from "dotenv";
|
|
9909
9901
|
|
|
@@ -9968,7 +9960,7 @@ function mcpCommand(projectName, verbose) {
|
|
|
9968
9960
|
mkdirSync2(join2(projectPath, "src"), { recursive: true });
|
|
9969
9961
|
mkdirSync2(join2(projectPath, "src", "tools"), { recursive: true });
|
|
9970
9962
|
mkdirSync2(join2(projectPath, "src", "resources"), { recursive: true });
|
|
9971
|
-
const
|
|
9963
|
+
const packageJson = {
|
|
9972
9964
|
name: projectName,
|
|
9973
9965
|
version: "1.0.0",
|
|
9974
9966
|
type: "module",
|
|
@@ -9985,7 +9977,7 @@ function mcpCommand(projectName, verbose) {
|
|
|
9985
9977
|
"@types/bun": "latest"
|
|
9986
9978
|
}
|
|
9987
9979
|
};
|
|
9988
|
-
writeFileSync2(join2(projectPath, "package.json"), JSON.stringify(
|
|
9980
|
+
writeFileSync2(join2(projectPath, "package.json"), JSON.stringify(packageJson, null, 2));
|
|
9989
9981
|
writeFileSync2(join2(projectPath, "src", "index.ts"), `import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
9990
9982
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
9991
9983
|
import dotenv from "dotenv";
|
|
@@ -10043,16 +10035,16 @@ import { existsSync as existsSync3, readFileSync as readFileSync2 } from "fs";
|
|
|
10043
10035
|
import { join as join3 } from "path";
|
|
10044
10036
|
function syncCommand(verbose) {
|
|
10045
10037
|
log(`\uD83D\uDD04 Syncing backend interface with application target...`, false, verbose);
|
|
10046
|
-
const
|
|
10047
|
-
if (!existsSync3(
|
|
10038
|
+
const packageJsonPath = join3(process.cwd(), "package.json");
|
|
10039
|
+
if (!existsSync3(packageJsonPath)) {
|
|
10048
10040
|
console.error("\u274C Error: package.json not found in current directory");
|
|
10049
10041
|
console.log("Make sure you're in a project directory");
|
|
10050
10042
|
process.exit(1);
|
|
10051
10043
|
}
|
|
10052
10044
|
try {
|
|
10053
|
-
const
|
|
10054
|
-
log(`Project: ${
|
|
10055
|
-
log(`Version: ${
|
|
10045
|
+
const packageJson = JSON.parse(readFileSync2(packageJsonPath, "utf-8"));
|
|
10046
|
+
log(`Project: ${packageJson.name}`, true, verbose);
|
|
10047
|
+
log(`Version: ${packageJson.version}`, true, verbose);
|
|
10056
10048
|
log(`\u2705 Sync completed successfully!`, false, verbose);
|
|
10057
10049
|
} catch (error) {
|
|
10058
10050
|
console.error("\u274C Error reading package.json:", error);
|