ai-project-manage-cli 6.0.106 → 6.0.107
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.js +18 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1228,6 +1228,7 @@ var TASK_STATUS_LABEL = {
|
|
|
1228
1228
|
IN_PROGRESS: "\u8FDB\u884C\u4E2D",
|
|
1229
1229
|
COMPLETED: "\u5DF2\u5B8C\u6210",
|
|
1230
1230
|
FAILED: "\u5DF2\u5931\u8D25",
|
|
1231
|
+
CLOSED: "\u5DF2\u5173\u95ED",
|
|
1231
1232
|
SUSPENDED: "\u5DF2\u6682\u505C"
|
|
1232
1233
|
};
|
|
1233
1234
|
function taskStatusLabel(status) {
|
|
@@ -1265,6 +1266,9 @@ function shouldDeleteMode2(input) {
|
|
|
1265
1266
|
if (input.taskStatus === "FAILED") {
|
|
1266
1267
|
return { delete: true, reason: "\u4EFB\u52A1\u5DF2\u5931\u8D25" };
|
|
1267
1268
|
}
|
|
1269
|
+
if (input.taskStatus === "CLOSED") {
|
|
1270
|
+
return { delete: true, reason: "\u4EFB\u52A1\u5DF2\u5173\u95ED" };
|
|
1271
|
+
}
|
|
1268
1272
|
return { delete: false, reason: "" };
|
|
1269
1273
|
}
|
|
1270
1274
|
function buildSessionBranchRow(input) {
|
|
@@ -3021,15 +3025,25 @@ function posixBasename(p) {
|
|
|
3021
3025
|
}
|
|
3022
3026
|
|
|
3023
3027
|
// src/commands/deploy/internal/deploy-hints.ts
|
|
3028
|
+
function isProductionDeployEnv(env) {
|
|
3029
|
+
const normalized = env.trim().toLowerCase();
|
|
3030
|
+
return normalized === "online" || normalized === "production" || normalized === "prod";
|
|
3031
|
+
}
|
|
3024
3032
|
function formatMissingWisdomDeployLines() {
|
|
3025
3033
|
return [
|
|
3026
3034
|
"[apm] \u65E0\u6CD5\u6267\u884C apm deploy\uFF1A\u8BF7\u5728 apm.config.json \u4E2D\u914D\u7F6E wisdomDeploy\uFF08host\u3001remotePath\uFF09"
|
|
3027
3035
|
];
|
|
3028
3036
|
}
|
|
3029
3037
|
function formatWisdomFrontendBuildNotConfiguredLines(env, packageJsonPath) {
|
|
3038
|
+
if (isProductionDeployEnv(env)) {
|
|
3039
|
+
return [
|
|
3040
|
+
`[apm] \u65E0\u6CD5\u6267\u884C\u524D\u7AEF\u90E8\u7F72\uFF1A${packageJsonPath} \u4E2D\u672A\u627E\u5230 build:${env} \u6216 build \u811A\u672C`,
|
|
3041
|
+
"[apm] \u8BF7\u914D\u7F6E npm run build:online \u6216 npm run build \u540E\u518D\u8BD5"
|
|
3042
|
+
];
|
|
3043
|
+
}
|
|
3030
3044
|
return [
|
|
3031
3045
|
`[apm] \u65E0\u6CD5\u6267\u884C\u524D\u7AEF\u90E8\u7F72\uFF1A${packageJsonPath} \u4E2D\u672A\u627E\u5230 build:${env} \u811A\u672C`,
|
|
3032
|
-
"[apm] \u8BF7\u914D\u7F6E npm run build:test
|
|
3046
|
+
"[apm] \u8BF7\u914D\u7F6E npm run build:test \u540E\u518D\u8BD5"
|
|
3033
3047
|
];
|
|
3034
3048
|
}
|
|
3035
3049
|
|
|
@@ -5284,6 +5298,9 @@ function resolveFrontendBuildCommand(env, cwd) {
|
|
|
5284
5298
|
if (scripts[buildKey]?.trim()) {
|
|
5285
5299
|
return `npm run build:${env}`;
|
|
5286
5300
|
}
|
|
5301
|
+
if (isProductionDeployEnv(env) && scripts.build?.trim()) {
|
|
5302
|
+
return "npm run build";
|
|
5303
|
+
}
|
|
5287
5304
|
return null;
|
|
5288
5305
|
}
|
|
5289
5306
|
function resolveFrontendDistDir(cwd) {
|