@leanandmean/coding-agent 0.74.1-scramjet.21 → 0.74.1-scramjet.23

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.
@@ -18,6 +18,7 @@ import { createCompactionSummaryMessage } from "../../core/messages.js";
18
18
  import { defaultModelPerProvider, findExactModelReferenceMatch, resolveModelScope } from "../../core/model-resolver.js";
19
19
  import { DefaultPackageManager } from "../../core/package-manager.js";
20
20
  import { BUILT_IN_PROVIDER_DISPLAY_NAMES } from "../../core/provider-display-names.js";
21
+ import { describeRuntimeError } from "../../core/resource-loader.js";
21
22
  import { parseScramjetCommandBlock } from "../../core/scramjet-command-parser.js"; // SCRAMJET-DIVERGENCE: scramjet-command block parsing (issue 82)
22
23
  import { formatMissingSessionCwdPrompt, MissingSessionCwdError } from "../../core/session-cwd.js";
23
24
  import { SessionManager } from "../../core/session-manager.js";
@@ -1255,8 +1256,7 @@ export class InteractiveMode {
1255
1256
  }
1256
1257
  }
1257
1258
  async handleFatalRuntimeError(prefix, error) {
1258
- const message = error instanceof Error ? error.message : String(error);
1259
- this.showError(`${prefix}: ${message}`);
1259
+ this.showError(`${prefix}: ${describeRuntimeError(error)}`);
1260
1260
  stopThemeWatcher();
1261
1261
  this.stop();
1262
1262
  process.exit(1);
@@ -3543,7 +3543,7 @@ export class InteractiveMode {
3543
3543
  }
3544
3544
  catch (error) {
3545
3545
  done();
3546
- this.showError(error instanceof Error ? error.message : String(error));
3546
+ this.showError(describeRuntimeError(error));
3547
3547
  }
3548
3548
  }, () => {
3549
3549
  done();
@@ -3569,7 +3569,7 @@ export class InteractiveMode {
3569
3569
  this.showStatus("Cloned to new session");
3570
3570
  }
3571
3571
  catch (error) {
3572
- this.showError(error instanceof Error ? error.message : String(error));
3572
+ this.showError(describeRuntimeError(error));
3573
3573
  }
3574
3574
  }
3575
3575
  showTreeSelector(initialSelectedId) {
@@ -4129,7 +4129,7 @@ export class InteractiveMode {
4129
4129
  }
4130
4130
  catch (error) {
4131
4131
  dismissReloadBox(previousEditor);
4132
- this.showError(`Reload failed: ${error instanceof Error ? error.message : String(error)}`);
4132
+ this.showError(`Reload failed: ${describeRuntimeError(error)}`);
4133
4133
  }
4134
4134
  }
4135
4135
  async handleExportCommand(text) {