cli-swarm 7.0.25 → 7.0.28

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/package.json CHANGED
@@ -27,5 +27,5 @@
27
27
  "url": "https://github.com/88208555/swarm-clitax.git"
28
28
  },
29
29
  "type": "module",
30
- "version": "7.0.25"
30
+ "version": "7.0.28"
31
31
  }
package/skill/SKILL.md CHANGED
@@ -5,7 +5,7 @@ description: '通过智能体大脑调度创建 N 个子智能体,用企业级
5
5
 
6
6
  # swarm
7
7
 
8
- Package version: v7.0.25
8
+ Package version: v7.0.28
9
9
 
10
10
  把「项目需求」编排为一支可观测、可自治、可安全运转的智能体蜂群。
11
11
 
package/skill/skill.json CHANGED
@@ -6,5 +6,5 @@
6
6
  "name": "swarm",
7
7
  "schemaVersion": "swarm.skill.request/1.0",
8
8
  "type": "Skill",
9
- "version": "v7.0.25"
9
+ "version": "v7.0.28"
10
10
  }
@@ -127,9 +127,19 @@ async function acquireStateLock(root) {
127
127
  return lockPath
128
128
  } catch (error) {
129
129
  if (!(error instanceof Error && error.code === 'EEXIST')) throw error
130
- const status = await lstat(lockPath)
130
+ let status
131
+ try {
132
+ status = await lstat(lockPath)
133
+ } catch (statusError) {
134
+ if (statusError instanceof Error && statusError.code === 'ENOENT') continue
135
+ throw statusError
136
+ }
131
137
  if (Date.now() - status.mtimeMs > STALE_STATE_LOCK_MS) {
132
- await unlink(lockPath)
138
+ try {
139
+ await unlink(lockPath)
140
+ } catch (unlinkError) {
141
+ if (!(unlinkError instanceof Error && unlinkError.code === 'ENOENT')) throw unlinkError
142
+ }
133
143
  continue
134
144
  }
135
145
  await new Promise((accept) => setTimeout(accept, LOCK_WAIT_MS))