@autohq/cli 0.1.307 → 0.1.308

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.
@@ -23399,7 +23399,7 @@ Object.assign(lookup, {
23399
23399
  // package.json
23400
23400
  var package_default = {
23401
23401
  name: "@autohq/cli",
23402
- version: "0.1.307",
23402
+ version: "0.1.308",
23403
23403
  license: "SEE LICENSE IN README.md",
23404
23404
  publishConfig: {
23405
23405
  access: "public"
@@ -39832,7 +39832,7 @@ function legacyToolEntry(chunk) {
39832
39832
  {
39833
39833
  type: "tool_result",
39834
39834
  toolUseId: legacyToolCallId(chunk.toolCallId),
39835
- output: chunk.errorText,
39835
+ output: errorOutput(chunk.errorText),
39836
39836
  isError: true
39837
39837
  }
39838
39838
  ]
@@ -39860,6 +39860,13 @@ function legacyToolEntry(chunk) {
39860
39860
  function legacyToolCallId(toolCallId) {
39861
39861
  return toolCallId === UNKNOWN_MESSAGE_ID ? null : toolCallId;
39862
39862
  }
39863
+ function errorOutput(errorText) {
39864
+ try {
39865
+ return JSON.parse(errorText);
39866
+ } catch {
39867
+ return errorText;
39868
+ }
39869
+ }
39863
39870
  function terminalStatusText(projection) {
39864
39871
  if (projection.statusText) {
39865
39872
  return projection.statusText;
package/dist/index.js CHANGED
@@ -25579,7 +25579,7 @@ var init_package = __esm({
25579
25579
  "package.json"() {
25580
25580
  package_default = {
25581
25581
  name: "@autohq/cli",
25582
- version: "0.1.307",
25582
+ version: "0.1.308",
25583
25583
  license: "SEE LICENSE IN README.md",
25584
25584
  publishConfig: {
25585
25585
  access: "public"
@@ -36929,7 +36929,7 @@ function legacyToolEntry(chunk) {
36929
36929
  {
36930
36930
  type: "tool_result",
36931
36931
  toolUseId: legacyToolCallId(chunk.toolCallId),
36932
- output: chunk.errorText,
36932
+ output: errorOutput(chunk.errorText),
36933
36933
  isError: true
36934
36934
  }
36935
36935
  ]
@@ -36957,6 +36957,13 @@ function legacyToolEntry(chunk) {
36957
36957
  function legacyToolCallId(toolCallId) {
36958
36958
  return toolCallId === UNKNOWN_MESSAGE_ID ? null : toolCallId;
36959
36959
  }
36960
+ function errorOutput(errorText) {
36961
+ try {
36962
+ return JSON.parse(errorText);
36963
+ } catch {
36964
+ return errorText;
36965
+ }
36966
+ }
36960
36967
  function terminalStatusText(projection) {
36961
36968
  if (projection.statusText) {
36962
36969
  return projection.statusText;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.307",
3
+ "version": "0.1.308",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"