@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.
@@ -594,13 +594,13 @@ var ClineAgent = class {
594
594
  async getSkills() {
595
595
  const skillDir = this.skillDir;
596
596
  const skillList = [];
597
- if (!this.runtime.fs.fileExists(skillDir)) {
597
+ if (!await this.runtime.fs.fileExists(skillDir)) {
598
598
  return skillList;
599
599
  }
600
600
  const files = await this.runtime.fs.readDir(skillDir);
601
601
  const skills = files.filter((item) => item.isDirectory()).map((item) => item.name);
602
602
  if (skills.length === 0) {
603
- return [];
603
+ return skillList;
604
604
  }
605
605
  for (const skill of skills) {
606
606
  try {
@@ -1572,6 +1572,6 @@ function createNodeAgent(options) {
1572
1572
  return agent;
1573
1573
  }
1574
1574
 
1575
- export { AgentDefaultTool, AgentState, ClineAgent, DefaultNodeRuntime, NodeMcpManager, READ_ONLY_TOOLS, TOOL_RESULT_BLOCK, VERSION, createNodeAgent, defaultTools, getToolUseNames, parseAssistantMessageV2, setDynamicToolUseNames, toolParamNames, toolUseNames };
1575
+ export { AgentDefaultTool, AgentState, ClineAgent, DefaultNodeRuntime, NodeApiHandler, NodeMcpManager, NodeMemoryManager, NodePromptManager, READ_ONLY_TOOLS, TOOL_RESULT_BLOCK, VERSION, createNodeAgent, defaultTools, getToolUseNames, parseAssistantMessageV2, setDynamicToolUseNames, toolParamNames, toolUseNames };
1576
1576
  //# sourceMappingURL=nodeRuntime.mjs.map
1577
1577
  //# sourceMappingURL=nodeRuntime.mjs.map