weapp-vite 6.16.43 → 6.16.45
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/auto-routes.mjs +1 -1
- package/dist/cli.mjs +210 -103
- package/dist/{config-CobCpW-a.d.mts → config-Ds7MBgQm.d.mts} +2 -2
- package/dist/config.d.mts +1 -1
- package/dist/{createContext-CRpsNCP2.mjs → createContext-Bqsm_duR.mjs} +99 -45
- package/dist/{file-Wkzc9gMS.mjs → file-CsF2X7eL.mjs} +1 -1
- package/dist/file-CsjD5DM3.mjs +2 -0
- package/dist/getInstance-BNM8-aPJ.mjs +2 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/json.d.mts +1 -1
- package/dist/mcp-YXCIQr-Z.mjs +124 -0
- package/dist/mcp.d.mts +11 -3
- package/dist/mcp.mjs +2 -2
- package/dist/types.d.mts +1 -1
- package/package.json +16 -16
- package/dist/file-iVST36Dh.mjs +0 -2
- package/dist/getInstance-QuyA4zlX.mjs +0 -2
- package/dist/mcp-qmDOTH07.mjs +0 -43
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.16.
|
|
4
|
+
"version": "6.16.45",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@jridgewell/remapping": "^2.3.5",
|
|
94
94
|
"@vercel/detect-agent": "^1.2.3",
|
|
95
95
|
"@volar/typescript": "^2.4.28",
|
|
96
|
-
"@vue/language-core": "^3.3.
|
|
96
|
+
"@vue/language-core": "^3.3.5",
|
|
97
97
|
"cac": "^7.0.0",
|
|
98
98
|
"chokidar": "^5.0.0",
|
|
99
99
|
"comment-json": "^5.0.0",
|
|
@@ -103,36 +103,36 @@
|
|
|
103
103
|
"lru-cache": "^11.5.1",
|
|
104
104
|
"magic-string": "^0.30.21",
|
|
105
105
|
"merge": "^2.1.1",
|
|
106
|
-
"obug": "^2.1.
|
|
106
|
+
"obug": "^2.1.3",
|
|
107
107
|
"p-queue": "^9.3.0",
|
|
108
108
|
"package-manager-detector": "^1.6.0",
|
|
109
109
|
"pathe": "^2.0.3",
|
|
110
110
|
"picomatch": "^4.0.4",
|
|
111
111
|
"postcss": "^8.5.15",
|
|
112
|
-
"rolldown": "1.1.
|
|
112
|
+
"rolldown": "1.1.1",
|
|
113
113
|
"rolldown-plugin-dts": "0.25.2",
|
|
114
|
-
"semver": "^7.8.
|
|
114
|
+
"semver": "^7.8.4",
|
|
115
115
|
"typescript": "^6.0.3",
|
|
116
116
|
"vite": "8.0.16",
|
|
117
117
|
"vite-tsconfig-paths": "^6.1.1",
|
|
118
|
-
"vue": "^3.5.
|
|
119
|
-
"vue-tsc": "^3.3.
|
|
118
|
+
"vue": "^3.5.38",
|
|
119
|
+
"vue-tsc": "^3.3.5",
|
|
120
120
|
"@weapp-core/constants": "0.1.12",
|
|
121
121
|
"@weapp-core/init": "6.0.10",
|
|
122
122
|
"@weapp-core/logger": "3.1.1",
|
|
123
123
|
"@weapp-core/schematics": "6.0.4",
|
|
124
124
|
"@weapp-core/shared": "3.0.4",
|
|
125
|
-
"@weapp-vite/ast": "6.16.
|
|
126
|
-
"@weapp-vite/mcp": "1.4.
|
|
127
|
-
"@weapp-vite/miniprogram-automator": "1.2.
|
|
125
|
+
"@weapp-vite/ast": "6.16.45",
|
|
126
|
+
"@weapp-vite/mcp": "1.4.4",
|
|
127
|
+
"@weapp-vite/miniprogram-automator": "1.2.3",
|
|
128
128
|
"@weapp-vite/volar": "2.1.0",
|
|
129
|
-
"@weapp-vite/web": "1.3.
|
|
129
|
+
"@weapp-vite/web": "1.3.31",
|
|
130
130
|
"@wevu/api": "0.2.9",
|
|
131
|
-
"@wevu/web-apis": "1.2.
|
|
132
|
-
"rolldown-require": "2.0.
|
|
131
|
+
"@wevu/web-apis": "1.2.21",
|
|
132
|
+
"rolldown-require": "2.0.19",
|
|
133
133
|
"vite-plugin-performance": "2.0.1",
|
|
134
|
-
"weapp-ide-cli": "5.4.
|
|
135
|
-
"wevu": "6.16.
|
|
134
|
+
"weapp-ide-cli": "5.4.5",
|
|
135
|
+
"wevu": "6.16.45"
|
|
136
136
|
},
|
|
137
137
|
"publishConfig": {
|
|
138
138
|
"access": "public",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"devDependencies": {
|
|
142
142
|
"oxc-parser": "^0.135.0",
|
|
143
143
|
"oxc-walker": "^1.0.0",
|
|
144
|
-
"tailwindcss": "^4.3.
|
|
144
|
+
"tailwindcss": "^4.3.1",
|
|
145
145
|
"ts-morph": "^28.0.0"
|
|
146
146
|
},
|
|
147
147
|
"scripts": {
|
package/dist/file-iVST36Dh.mjs
DELETED
package/dist/mcp-qmDOTH07.mjs
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { r as logger_default } from "./logger-mt4mSTqV.mjs";
|
|
2
|
-
import { connectMiniProgram } from "weapp-ide-cli";
|
|
3
|
-
import { DEFAULT_MCP_ENDPOINT, DEFAULT_MCP_HOST, DEFAULT_MCP_PORT, DEFAULT_RUNTIME_REST_ENDPOINT, createWeappViteMcpServer, startWeappViteMcpServer } from "@weapp-vite/mcp";
|
|
4
|
-
//#region src/mcp.ts
|
|
5
|
-
function normalizeEndpoint(input) {
|
|
6
|
-
const value = typeof input === "string" ? input.trim() : "";
|
|
7
|
-
if (!value) return DEFAULT_MCP_ENDPOINT;
|
|
8
|
-
return value.startsWith("/") ? value : `/${value}`;
|
|
9
|
-
}
|
|
10
|
-
function normalizePort(input) {
|
|
11
|
-
if (typeof input === "number" && Number.isInteger(input) && input > 0 && input <= 65535) return input;
|
|
12
|
-
return DEFAULT_MCP_PORT;
|
|
13
|
-
}
|
|
14
|
-
function resolveWeappMcpConfig(config) {
|
|
15
|
-
if (config === false) return {
|
|
16
|
-
enabled: false,
|
|
17
|
-
autoStart: false,
|
|
18
|
-
host: DEFAULT_MCP_HOST,
|
|
19
|
-
port: DEFAULT_MCP_PORT,
|
|
20
|
-
endpoint: DEFAULT_MCP_ENDPOINT,
|
|
21
|
-
restEndpoint: DEFAULT_RUNTIME_REST_ENDPOINT
|
|
22
|
-
};
|
|
23
|
-
const record = typeof config === "object" && config ? config : {};
|
|
24
|
-
return {
|
|
25
|
-
enabled: record.enabled !== false,
|
|
26
|
-
autoStart: record.autoStart === true,
|
|
27
|
-
host: typeof record.host === "string" && record.host.trim().length > 0 ? record.host.trim() : DEFAULT_MCP_HOST,
|
|
28
|
-
port: normalizePort(record.port),
|
|
29
|
-
endpoint: normalizeEndpoint(record.endpoint),
|
|
30
|
-
restEndpoint: record.restEndpoint === false ? false : normalizeEndpoint(record.restEndpoint ?? DEFAULT_RUNTIME_REST_ENDPOINT)
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
async function startWeappViteMcpServer$1(options) {
|
|
34
|
-
return startWeappViteMcpServer({
|
|
35
|
-
runtimeHooks: { connectMiniProgram },
|
|
36
|
-
...options,
|
|
37
|
-
onReady: options?.onReady ?? ((message) => {
|
|
38
|
-
logger_default.info(message);
|
|
39
|
-
})
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
//#endregion
|
|
43
|
-
export { createWeappViteMcpServer as a, DEFAULT_RUNTIME_REST_ENDPOINT as i, DEFAULT_MCP_HOST as n, resolveWeappMcpConfig as o, DEFAULT_MCP_PORT as r, startWeappViteMcpServer$1 as s, DEFAULT_MCP_ENDPOINT as t };
|