ai-project-manage-cli 6.0.92 → 6.0.93
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 +5 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
import { Command } from "commander";
|
|
5
|
-
import { AssumptionPlanSource } from "@opc/shared";
|
|
6
5
|
|
|
7
6
|
// src/config.ts
|
|
8
7
|
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -7006,15 +7005,14 @@ function buildProgram() {
|
|
|
7006
7005
|
).argument("<sessionId>", "\u6C9F\u901A\u7FA4 ID").action(async (sessionId) => {
|
|
7007
7006
|
await runPull(sessionId);
|
|
7008
7007
|
});
|
|
7009
|
-
program.command("dev-gate").description("\u67E5\u8BE2\u672C\u7AEF\u5F00\u53D1\u95E8\u7981\u72B6\u6001\uFF08\u5047\u8BBE\u786E\u8BA4 + \u9700\u6C42\u7406\u89E3\u786E\u8BA4\uFF09").argument("<sessionId>", "\u6C9F\u901A\u7FA4 ID").requiredOption(
|
|
7010
|
-
|
|
7011
|
-
"FRONTEND_PLAN \u6216 BACKEND_PLAN"
|
|
7012
|
-
).action(async (sessionId, opts) => {
|
|
7013
|
-
const source = opts.source === "BACKEND_PLAN" ? AssumptionPlanSource.BACKEND_PLAN : AssumptionPlanSource.FRONTEND_PLAN;
|
|
7008
|
+
program.command("dev-gate").description("\u67E5\u8BE2\u672C\u7AEF\u5F00\u53D1\u95E8\u7981\u72B6\u6001\uFF08\u5047\u8BBE\u786E\u8BA4 + \u9700\u6C42\u7406\u89E3\u786E\u8BA4\uFF09").argument("<sessionId>", "\u6C9F\u901A\u7FA4 ID").requiredOption("--source <source>", "FRONTEND_PLAN \u6216 BACKEND_PLAN").action(async (sessionId, opts) => {
|
|
7009
|
+
const source = opts.source === "BACKEND_PLAN" ? "BACKEND_PLAN" /* BACKEND_PLAN */ : "FRONTEND_PLAN" /* FRONTEND_PLAN */;
|
|
7014
7010
|
await runDevGate(sessionId, source);
|
|
7015
7011
|
});
|
|
7016
7012
|
program.command("assumptions").description("\uFF08\u5DF2\u5E9F\u5F03\uFF09\u8BF7\u4F7F\u7528 dev-gate").argument("<sessionId>", "\u6C9F\u901A\u7FA4 ID").action(async () => {
|
|
7017
|
-
console.error(
|
|
7013
|
+
console.error(
|
|
7014
|
+
"[apm] assumptions \u547D\u4EE4\u5DF2\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528: apm dev-gate <sessionId> --source FRONTEND_PLAN|BACKEND_PLAN"
|
|
7015
|
+
);
|
|
7018
7016
|
process.exit(1);
|
|
7019
7017
|
});
|
|
7020
7018
|
program.command("sync-document").description("\u5C06\u672C\u5730 Markdown \u8986\u76D6\u5F0F upsert \u5230\u5E73\u53F0\u4EFB\u52A1\u6587\u6863").argument("<sessionId>", "\u6C9F\u901A\u7FA4 ID").requiredOption(
|