@microsoft/agents-activity 1.7.0-beta.1.g8bcd4f11a7 → 1.7.0-beta.5.g67b2005119

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.
@@ -31,6 +31,13 @@ export interface AgentError extends Error {
31
31
  * Help URL link for the error
32
32
  */
33
33
  helpLink: string;
34
+ /**
35
+ * Human-readable description text for the error (without the bracketed code prefix
36
+ * or trailing help link). Mirrors `AgentErrorDefinition.description`, with any
37
+ * `{param}` placeholders substituted. Use this when emitting an error to a wire
38
+ * format that should not leak the internal error code or help link.
39
+ */
40
+ description: string;
34
41
  /**
35
42
  * Optional inner exception
36
43
  */
@@ -36,6 +36,7 @@ class ExceptionHelper {
36
36
  // Set error code and help link as custom properties
37
37
  exception.code = errorDefinition.code;
38
38
  exception.helpLink = helplink;
39
+ exception.description = description;
39
40
  // Store inner exception as a custom property if provided
40
41
  if (innerException) {
41
42
  exception.innerException = innerException;
@@ -1 +1 @@
1
- {"version":3,"file":"exceptionHelper.js","sourceRoot":"","sources":["../../src/exceptionHelper.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,kCAAkC;;;AA8ClC;;GAEG;AACH,MAAa,eAAe;IAO1B;;;;;;;;OAQG;IACH,MAAM,CAAC,iBAAiB,CACtB,SAA6D,EAC7D,eAAqC,EACrC,cAAsB,EACtB,MAAkC;;QAElC,iDAAiD;QACjD,IAAI,WAAW,GAAG,eAAe,CAAC,WAAW,CAAA;QAC7C,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;gBAClC,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,GAAG,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;YAC5D,CAAC,CAAC,CAAA;QACJ,CAAC;QAED,mDAAmD;QACnD,MAAM,gBAAgB,GAAG,MAAA,eAAe,CAA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,mDAAmD;QACnD,MAAM,gBAAgB,GAAG,MAAA,eAAe,CAAC,QAAQ,mCAAI,eAAe,CAAC,gBAAgB,CAAA;QAErF,mEAAmE;QACnE,MAAM,QAAQ,GAAG,gBAAgB,CAAC,OAAO,CAAC,aAAa,EAAE,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAA;QAEzF,8DAA8D;QAC9D,MAAM,OAAO,GAAG,IAAI,eAAe,CAAC,IAAI,OAAO,WAAW,MAAM,QAAQ,EAAE,CAAA;QAE1E,uBAAuB;QACvB,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC,OAAO,CAAmB,CAAA;QAE1D,oDAAoD;QACpD,SAAS,CAAC,IAAI,GAAG,eAAe,CAAC,IAAI,CAAA;QACrC,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAA;QAC7B,SAAS,CAAC,WAAW,GAAG,WAAW,CAAA;QAEnC,yDAAyD;QACzD,IAAI,cAAc,EAAE,CAAC;YACnB,SAAS,CAAC,cAAc,GAAG,cAAc,CAAA;QAC3C,CAAC;QAED,OAAO,SAAS,CAAA;IAClB,CAAC;;AArDH,0CAsDC;AArDC;;;GAGG;AACa,gCAAgB,GAAG,oDAAoD,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@microsoft/agents-activity",
4
- "version": "1.7.0-beta.1.g8bcd4f11a7",
4
+ "version": "1.7.0-beta.5.g67b2005119",
5
5
  "homepage": "https://github.com/microsoft/Agents-for-js",
6
6
  "repository": {
7
7
  "type": "git",
@@ -39,6 +39,14 @@ export interface AgentError extends Error {
39
39
  */
40
40
  helpLink: string
41
41
 
42
+ /**
43
+ * Human-readable description text for the error (without the bracketed code prefix
44
+ * or trailing help link). Mirrors `AgentErrorDefinition.description`, with any
45
+ * `{param}` placeholders substituted. Use this when emitting an error to a wire
46
+ * format that should not leak the internal error code or help link.
47
+ */
48
+ description: string
49
+
42
50
  /**
43
51
  * Optional inner exception
44
52
  */
@@ -93,6 +101,7 @@ export class ExceptionHelper {
93
101
  // Set error code and help link as custom properties
94
102
  exception.code = errorDefinition.code
95
103
  exception.helpLink = helplink
104
+ exception.description = description
96
105
 
97
106
  // Store inner exception as a custom property if provided
98
107
  if (innerException) {