ai-project-manage-cli 6.0.71 → 6.0.72
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 -12
- package/package.json +1 -1
- package/template/deploy/README.md +0 -14
package/dist/index.js
CHANGED
|
@@ -520,7 +520,7 @@ async function tryReadGitOriginUrl(cwd) {
|
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
// src/deployment-config-sync.ts
|
|
523
|
-
var TEMPLATE_HINT = "\u4FDD\u7559\u6A21\u677F .apm/apm.config.json
|
|
523
|
+
var TEMPLATE_HINT = "\u4FDD\u7559\u6A21\u677F .apm/apm.config.json";
|
|
524
524
|
var SYNC_HINT = "\u767B\u8BB0\u5DE5\u4F5C\u7A7A\u95F4\u8DEF\u5F84\u3001\u7ED1\u5B9A\u4ED3\u5E93\u540E\uFF0C\u53EF\u6267\u884C: apm sync-deploy-config";
|
|
525
525
|
async function resolveRepositoryIdForSync(api, workdirPath) {
|
|
526
526
|
const baseline = await api.cli.workspaceBaseline({ workdirPath });
|
|
@@ -583,15 +583,8 @@ ${diagnostic ?? ""}
|
|
|
583
583
|
const apmConfigPath = toFsPath(join3(targetApmDir, "apm.config.json"));
|
|
584
584
|
writeFileSync3(apmConfigPath, `${JSON.stringify(parsed, null, 2)}
|
|
585
585
|
`, "utf8");
|
|
586
|
-
const deployDir = join3(targetApmDir, "deploy");
|
|
587
|
-
await ensureDirExists(deployDir);
|
|
588
|
-
writeFileSync3(
|
|
589
|
-
toFsPath(join3(deployDir, "README.md")),
|
|
590
|
-
config.deploymentDoc ?? "",
|
|
591
|
-
"utf8"
|
|
592
|
-
);
|
|
593
586
|
console.log(`[apm] \u5DF2\u540C\u6B65\u5E73\u53F0\u90E8\u7F72\u914D\u7F6E: ${config.name}`);
|
|
594
|
-
console.log("[apm] \u5DF2\u5199\u5165 .apm/apm.config.json
|
|
587
|
+
console.log("[apm] \u5DF2\u5199\u5165 .apm/apm.config.json");
|
|
595
588
|
return { synced: true, repositoryId, configName: config.name };
|
|
596
589
|
}
|
|
597
590
|
|
|
@@ -915,7 +908,7 @@ async function runInit(name) {
|
|
|
915
908
|
console.log(`[apm] \u5DE5\u4F5C\u76EE\u5F55\u8DEF\u5F84\uFF1A${workdir}`);
|
|
916
909
|
if (syncResult && !syncResult.synced) {
|
|
917
910
|
console.log(
|
|
918
|
-
"[apm] \u5F53\u524D .apm/apm.config.json \
|
|
911
|
+
"[apm] \u5F53\u524D .apm/apm.config.json \u4E3A\u6A21\u677F\u9ED8\u8BA4\u503C\uFF1B\u5B8C\u6210\u5E73\u53F0\u767B\u8BB0\u540E\u6267\u884C apm sync-deploy-config"
|
|
919
912
|
);
|
|
920
913
|
}
|
|
921
914
|
console.log("[apm] \u8BF7\u5728\u5E73\u53F0\u300C\u63A5\u5165\u7BA1\u7406 \u2192 \u5DE5\u4F5C\u7A7A\u95F4\u300D\u767B\u8BB0\u4E0A\u8FF0\u76EE\u5F55\u8DEF\u5F84");
|
|
@@ -5663,7 +5656,7 @@ function buildProgram() {
|
|
|
5663
5656
|
await runLogin(opts);
|
|
5664
5657
|
});
|
|
5665
5658
|
program.command("init").description(
|
|
5666
|
-
"\u5728\u5F53\u524D\u5DE5\u4F5C\u76EE\u5F55\u521D\u59CB\u5316 .apm \u6A21\u677F\uFF08\u82E5 .apm \u5DF2\u5B58\u5728\u4E14\u975E\u7A7A\u5219\u62A5\u9519\uFF09\uFF1B\u5DF2\u767B\u5F55\u4E14\u5E73\u53F0\u6709\u5339\u914D\u90E8\u7F72\u914D\u7F6E\u65F6\u4F1A\u540C\u6B65 apm.config.json
|
|
5659
|
+
"\u5728\u5F53\u524D\u5DE5\u4F5C\u76EE\u5F55\u521D\u59CB\u5316 .apm \u6A21\u677F\uFF08\u82E5 .apm \u5DF2\u5B58\u5728\u4E14\u975E\u7A7A\u5219\u62A5\u9519\uFF09\uFF1B\u5DF2\u767B\u5F55\u4E14\u5E73\u53F0\u6709\u5339\u914D\u90E8\u7F72\u914D\u7F6E\u65F6\u4F1A\u540C\u6B65 apm.config.json"
|
|
5667
5660
|
).option("--name <name>", "\u5DE5\u4F5C\u76EE\u5F55\u540D\u79F0").action(async (opts) => {
|
|
5668
5661
|
await runInit(opts.name);
|
|
5669
5662
|
});
|
|
@@ -5683,7 +5676,7 @@ function buildProgram() {
|
|
|
5683
5676
|
await runUpdateSkills();
|
|
5684
5677
|
});
|
|
5685
5678
|
program.command("sync-deploy-config").description(
|
|
5686
|
-
"\u4ECE\u5E73\u53F0\u62C9\u53D6\u90E8\u7F72\u914D\u7F6E\uFF0C\u8986\u76D6 .apm/apm.config.json
|
|
5679
|
+
"\u4ECE\u5E73\u53F0\u62C9\u53D6\u90E8\u7F72\u914D\u7F6E\uFF0C\u8986\u76D6 .apm/apm.config.json\uFF08\u9700\u5DF2 login \u4E14\u5DE5\u4F5C\u7A7A\u95F4\u5DF2\u767B\u8BB0\u5E76\u7ED1\u5B9A\u4ED3\u5E93\uFF09"
|
|
5687
5680
|
).action(async () => {
|
|
5688
5681
|
await runSyncDeployConfig();
|
|
5689
5682
|
});
|
package/package.json
CHANGED