ai-project-manage-cli 6.0.101 → 6.0.102

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5139,7 +5139,8 @@ function runShellCommand2(command, cwd, captureOutput) {
5139
5139
  return output;
5140
5140
  }
5141
5141
  async function executeDeploy(options) {
5142
- const cwd = path5.resolve(options.cwd ?? process.cwd());
5142
+ const cwd = resolveWorkdirPath(options.cwd ?? process.cwd());
5143
+ const apmConfigPath = options.configPath ?? path5.join(workspaceApmDir(cwd), "apm.config.json");
5143
5144
  const captureOutput = options.captureOutput ?? false;
5144
5145
  const outputParts = [];
5145
5146
  try {
@@ -5164,13 +5165,13 @@ async function executeDeploy(options) {
5164
5165
  detail
5165
5166
  );
5166
5167
  }
5167
- const cfg = loadApmConfig({ configPath: options.configPath });
5168
+ const cfg = loadApmConfig({ configPath: apmConfigPath });
5168
5169
  if (isWisdomLegacyDeploy(cfg)) {
5169
5170
  try {
5170
5171
  await runWisdomAutoDeploy({
5171
5172
  env: options.env,
5172
5173
  cwd,
5173
- configPath: options.configPath,
5174
+ configPath: apmConfigPath,
5174
5175
  captureOutput,
5175
5176
  packOnly: options.packOnly
5176
5177
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-project-manage-cli",
3
- "version": "6.0.101",
3
+ "version": "6.0.102",
4
4
  "description": "命令行工具:后续用于调用平台后端 API 完成运维与自动化操作",
5
5
  "type": "module",
6
6
  "private": false,