@actiondock/core 2.5.0 → 2.5.1

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/app/app.js CHANGED
@@ -207,6 +207,13 @@ export class DefaultActionDockApp {
207
207
  }
208
208
  // 3. 读取内存显式注入的 Action 定义
209
209
  for (const [id, act] of this.actionsMap) {
210
+ // 若为当前包完全限定名别名(例如 "pkgId/actionId"),跳过以防与短名 action 重复
211
+ if (id.startsWith(`${this.packageId}/`)) {
212
+ const shortId = id.slice(this.packageId.length + 1);
213
+ if (this.actionsMap.has(shortId) || map.has(shortId)) {
214
+ continue;
215
+ }
216
+ }
210
217
  const existing = map.get(id);
211
218
  const actObj = act;
212
219
  map.set(id, {
@@ -86,10 +86,10 @@ export function initProject(targetDir, options = {}) {
86
86
  node: ">=24.12.0",
87
87
  },
88
88
  dependencies: {
89
- "@actiondock/sdk": "^2.5.0",
89
+ "@actiondock/sdk": "^2.5.1",
90
90
  },
91
91
  devDependencies: {
92
- "@actiondock/testing": "^2.5.0",
92
+ "@actiondock/testing": "^2.5.1",
93
93
  "@types/node": "^22.13.0",
94
94
  "tsx": "^4.19.0",
95
95
  "typescript": "^5.7.0",
package/dist/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * ActionDock 核心版本号单一事实源。
3
3
  */
4
- export declare const ACTIONDOCK_VERSION = "2.5.0";
4
+ export declare const ACTIONDOCK_VERSION = "2.5.1";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * ActionDock 核心版本号单一事实源。
3
3
  */
4
- export const ACTIONDOCK_VERSION = "2.5.0";
4
+ export const ACTIONDOCK_VERSION = "2.5.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actiondock/core",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "ActionDock Core Engine - Project loader, runtime execution, SQLite storage, standalone builder, and skill exporter",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -29,7 +29,7 @@
29
29
  "test": "node ../../scripts/run-tests.ts"
30
30
  },
31
31
  "dependencies": {
32
- "@actiondock/sdk": "^2.5.0",
32
+ "@actiondock/sdk": "^2.5.1",
33
33
  "ajv": "^8.17.1",
34
34
  "ajv-formats": "^3.0.1"
35
35
  },