@agent-smith/cli 0.0.38 → 0.0.39

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.
@@ -26,18 +26,19 @@ async function executeWorkflowCmd(name, args = [], options = {}) {
26
26
  taskRes = await executeTaskCmd(p, options);
27
27
  }
28
28
  catch (e) {
29
- throw new Error(`Wokflow ${i + 1} error: ${e}`);
29
+ throw new Error(`Wokflow task ${i + 1} error: ${e}`);
30
30
  }
31
31
  break;
32
32
  case "action":
33
33
  try {
34
- taskRes = await executeActionCmd(p, options, true);
34
+ const ares = await executeActionCmd(p, options, true);
35
+ taskRes = ares.data;
35
36
  if (i == finalTaskIndex) {
36
37
  console.log(taskRes.data);
37
38
  }
38
39
  }
39
40
  catch (e) {
40
- throw new Error(`Wokflow ${i + 1} error: ${e}`);
41
+ throw new Error(`Workflow action ${i + 1} error: ${e}`);
41
42
  }
42
43
  break;
43
44
  default:
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@agent-smith/cli",
3
3
  "description": "Agent Smith: terminal client for language model agents",
4
4
  "repository": "https://github.com/synw/agent-smith",
5
- "version": "0.0.38",
5
+ "version": "0.0.39",
6
6
  "scripts": {
7
7
  "buildrl": "rm -rf dist/* && rollup -c",
8
8
  "build": "rm -rf dist/* && tsc --noCheck",