@myagentroam/agent 0.10.22 → 0.10.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.
@@ -1,5 +1,6 @@
1
1
  export declare class MarAgentError extends Error {
2
2
  readonly code: string;
3
+ readonly publicMessage: string;
3
4
  readonly details: Readonly<Record<string, unknown>> | undefined;
4
5
  readonly retryable: boolean;
5
6
  constructor(code: string, message: string, options?: {
@@ -1,11 +1,13 @@
1
1
  export class MarAgentError extends Error {
2
2
  code;
3
+ publicMessage;
3
4
  details;
4
5
  retryable;
5
6
  constructor(code, message, options = {}) {
6
7
  super(`${code}: ${message}`, { cause: options.cause });
7
8
  this.name = 'MarAgentError';
8
9
  this.code = code;
10
+ this.publicMessage = message;
9
11
  this.details = options.details;
10
12
  this.retryable = options.retryable ?? false;
11
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/agent",
3
- "version": "0.10.22",
3
+ "version": "0.10.23",
4
4
  "description": "Embeddable MAR coding agent SDK and CLI.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",