@amical/aiagent-sdk 0.1.4 → 0.1.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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/runtime/nodeRuntime.d.mts +39 -3
- package/dist/runtime/nodeRuntime.d.ts +39 -3
- package/dist/runtime/nodeRuntime.js +5 -2
- package/dist/runtime/nodeRuntime.js.map +1 -1
- package/dist/runtime/nodeRuntime.mjs +3 -3
- package/dist/runtime/nodeRuntime.mjs.map +1 -1
- package/dist/runtime/webRuntime.d.mts +40 -3
- package/dist/runtime/webRuntime.d.ts +40 -3
- package/dist/runtime/webRuntime.js +5 -2
- package/dist/runtime/webRuntime.js.map +1 -1
- package/dist/runtime/webRuntime.mjs +3 -3
- package/dist/runtime/webRuntime.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -589,13 +589,13 @@ var ClineAgent = class {
|
|
|
589
589
|
async getSkills() {
|
|
590
590
|
const skillDir = this.skillDir;
|
|
591
591
|
const skillList = [];
|
|
592
|
-
if (!this.runtime.fs.fileExists(skillDir)) {
|
|
592
|
+
if (!await this.runtime.fs.fileExists(skillDir)) {
|
|
593
593
|
return skillList;
|
|
594
594
|
}
|
|
595
595
|
const files = await this.runtime.fs.readDir(skillDir);
|
|
596
596
|
const skills = files.filter((item) => item.isDirectory()).map((item) => item.name);
|
|
597
597
|
if (skills.length === 0) {
|
|
598
|
-
return
|
|
598
|
+
return skillList;
|
|
599
599
|
}
|
|
600
600
|
for (const skill of skills) {
|
|
601
601
|
try {
|
|
@@ -1489,6 +1489,6 @@ function createWebAgent(options) {
|
|
|
1489
1489
|
return agent;
|
|
1490
1490
|
}
|
|
1491
1491
|
|
|
1492
|
-
export { AgentDefaultTool, AgentState, ClineAgent, DefaultWebRuntime, READ_ONLY_TOOLS, TOOL_RESULT_BLOCK, VERSION, WebMcpManager, createWebAgent, defaultTools, getToolUseNames, parseAssistantMessageV2, setDynamicToolUseNames, toolParamNames, toolUseNames };
|
|
1492
|
+
export { AgentDefaultTool, AgentState, ClineAgent, DefaultWebRuntime, READ_ONLY_TOOLS, TOOL_RESULT_BLOCK, VERSION, WebApiHandler, WebMcpManager, WebMemoryManager, WebPromptManager, createWebAgent, defaultTools, getToolUseNames, parseAssistantMessageV2, setDynamicToolUseNames, toolParamNames, toolUseNames };
|
|
1493
1493
|
//# sourceMappingURL=webRuntime.mjs.map
|
|
1494
1494
|
//# sourceMappingURL=webRuntime.mjs.map
|