@actiondock/core 2.3.0 → 2.4.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/export/templates.js +4 -12
- package/dist/project/init.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/dist/export/templates.js
CHANGED
|
@@ -444,15 +444,6 @@ description: ${description}
|
|
|
444
444
|
# ${bundleName} 复合技能套件
|
|
445
445
|
|
|
446
446
|
${description}`;
|
|
447
|
-
const sInit = `## ActionDock 运行时初始化
|
|
448
|
-
|
|
449
|
-
本技能为 **ActionDock 复合工作区技能包**,聚合了多个功能包。智能体在初次调用或初始化时,在当前技能根目录执行注册命令:
|
|
450
|
-
|
|
451
|
-
\`\`\`bash
|
|
452
|
-
ad link "<skill_root>"
|
|
453
|
-
\`\`\`
|
|
454
|
-
|
|
455
|
-
> \`ad link\` 会自动识别并注册工作区下的所有子包,使其中的 Action 随时可以通过完全限定标识调用。若初次运行提示依赖缺失,可在 \`<skill_root>\` 目录下执行 \`npm install --omit=dev\` 安装聚合依赖。`;
|
|
456
447
|
const sDescribe = `## 动作参数契约按需调阅
|
|
457
448
|
|
|
458
449
|
为节省上下文开销,各 Action 的详细参数结构不静态内嵌在说明书中。在调用未知参数的 Action 前,可在终端执行命令查阅输入输出约束:
|
|
@@ -542,15 +533,16 @@ ad run ${sampleActionId} --input-file /tmp/input.json
|
|
|
542
533
|
- **完成安装后重新链接复合技能**:
|
|
543
534
|
\`\`\`bash
|
|
544
535
|
ad link "<skill_root>"
|
|
545
|
-
|
|
536
|
+
\`\`\`
|
|
537
|
+
\`ad link\` 会自动识别并注册工作区下的所有子包,使其中的 Action 随时可以通过完全限定标识调用。`;
|
|
546
538
|
const parts = [
|
|
547
539
|
{ slot: "intro", text: sIntro },
|
|
548
|
-
{ slot: "after-init", text: sInit },
|
|
549
540
|
{ slot: "after-describe", text: sDescribe },
|
|
550
541
|
{ slot: "after-actions", text: sActions },
|
|
551
542
|
{ slot: "after-playbooks", text: sPlaybooks },
|
|
552
543
|
{ slot: "after-invoke", text: sInvoke },
|
|
553
|
-
{ slot: "
|
|
544
|
+
{ slot: "after-init", text: sTroubleshooting },
|
|
545
|
+
{ slot: "append", text: "" },
|
|
554
546
|
];
|
|
555
547
|
// 自定义段落按文件顺序插入到对应槽位(倒序插入保证同槽位多段保持先后)
|
|
556
548
|
const customSections = options?.customSections ?? [];
|
package/dist/project/init.js
CHANGED
|
@@ -86,10 +86,10 @@ export function initProject(targetDir, options = {}) {
|
|
|
86
86
|
node: ">=24.12.0",
|
|
87
87
|
},
|
|
88
88
|
dependencies: {
|
|
89
|
-
"@actiondock/sdk": "^2.
|
|
89
|
+
"@actiondock/sdk": "^2.4.1",
|
|
90
90
|
},
|
|
91
91
|
devDependencies: {
|
|
92
|
-
"@actiondock/testing": "^2.
|
|
92
|
+
"@actiondock/testing": "^2.4.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
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@actiondock/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.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.
|
|
32
|
+
"@actiondock/sdk": "^2.4.1",
|
|
33
33
|
"ajv": "^8.17.1",
|
|
34
34
|
"ajv-formats": "^3.0.1"
|
|
35
35
|
},
|