ai-project-manage-cli 7.0.5 → 7.0.6

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 CHANGED
@@ -177,20 +177,6 @@ function isWorkspaceApmInitialized(workdir) {
177
177
  }
178
178
  return readdirSync(fsApmDir).length > 0;
179
179
  }
180
- function assertWorkspaceApmDirExists(workdir) {
181
- if (!isWorkspaceApmInitialized(workdir)) {
182
- const apmDir = workspaceApmDir(workdir);
183
- const fsApmDir = toFsPath(apmDir);
184
- if (!existsSync2(fsApmDir)) {
185
- throw new Error(
186
- `\u5DE5\u4F5C\u76EE\u5F55 ${workdir} \u4E0B\u672A\u68C0\u6D4B\u5230 .apm \u76EE\u5F55\uFF0C\u8BF7\u5728\u8BE5\u4ED3\u5E93\u6839\u76EE\u5F55\u6267\u884C apm init \u5B8C\u6210\u63A5\u5165\u3002`
187
- );
188
- }
189
- throw new Error(
190
- `\u5DE5\u4F5C\u76EE\u5F55 ${workdir} \u4E0B .apm \u76EE\u5F55\u4E3A\u7A7A\uFF0C\u8BF7\u5728\u8BE5\u4ED3\u5E93\u6839\u76EE\u5F55\u6267\u884C apm init \u5B8C\u6210\u63A5\u5165\u3002`
191
- );
192
- }
193
- }
194
180
  var APM_GITIGNORE_PATTERNS = [
195
181
  /^\.apm\/?$/,
196
182
  /^\.apm\/\*\*$/,
@@ -2706,7 +2692,7 @@ async function syncPlatformRules(cfg, workdirPath, apmRoot) {
2706
2692
  // src/commands/connect/task-pull.ts
2707
2693
  async function runTaskPull(cfg, detail) {
2708
2694
  const { taskId, workdir } = detail;
2709
- assertWorkspaceApmDirExists(workdir);
2695
+ await ensureWorkspaceInitialized(workdir);
2710
2696
  const apmRoot = workspaceApmDir(workdir);
2711
2697
  const dir = taskDir(taskId, apmRoot, workdir);
2712
2698
  const docsDir = taskDocsDir(taskId, apmRoot, workdir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-project-manage-cli",
3
- "version": "7.0.5",
3
+ "version": "7.0.6",
4
4
  "description": "命令行工具:后续用于调用平台后端 API 完成运维与自动化操作",
5
5
  "type": "module",
6
6
  "private": false,
@@ -1,8 +0,0 @@
1
- ## 前端产物下载地址
2
-
3
- http://<服务器地址>/dist.zip
4
- http://<服务器地址>/{name}.jar.zip
5
-
6
- ## 测试地址
7
-
8
- http://<服务器地址>