@useago/sdk 1.13.2 → 1.13.3

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.
package/dist/widget.d.cts CHANGED
@@ -729,6 +729,11 @@ declare interface AgoClientEvents {
729
729
  result: unknown;
730
730
  error?: string;
731
731
  };
732
+ /** A validated form collector submission is about to call its submit target. */
733
+ "form:submitting": {
734
+ name: string;
735
+ values: Record<string, unknown>;
736
+ };
732
737
  /**
733
738
  * A form collector submitted successfully. `result` is the raw submit response
734
739
  * (POST body / handler return value / backend relay result) — the third-party
@@ -1993,6 +1998,11 @@ export declare interface MountChatWidgetOptions {
1993
1998
  id: string;
1994
1999
  content: string;
1995
2000
  }) => void;
2001
+ /** Called after validation, just before the form submission starts. */
2002
+ onFormSubmitting?: (data: {
2003
+ name: string;
2004
+ values: Record<string, unknown>;
2005
+ }) => void;
1996
2006
  /**
1997
2007
  * Called when a form collector submits successfully. `result` is the raw submit
1998
2008
  * response (the third-party API's answer); `values` are the submitted fields.
@@ -2799,16 +2809,21 @@ declare interface TranscribeAudioOptions {
2799
2809
  signal?: AbortSignal;
2800
2810
  }
2801
2811
 
2802
- /** The MCP behavior hints AGO has no equivalent for. */
2812
+ /** Metadata for tools exposed through the WebMCP bridge. */
2803
2813
  declare interface WebMCPToolMeta {
2804
2814
  /**
2805
- * Both default to `false`, so only set what is true: `readOnlyHint` marks a
2806
- * function that changes nothing, `untrustedContentHint` one whose result may
2807
- * carry third-party text.
2815
+ * Optional WebMCP metadata; all fields default to `false` in WebMCP.
2816
+ * These annotations do not affect AGO's in-app agent or approval behavior.
2808
2817
  */
2809
2818
  annotations?: {
2819
+ /** The tool only reads data and does not change state. */
2810
2820
  readOnlyHint?: boolean;
2821
+ /** The output contains content untrusted by the tool author. */
2811
2822
  untrustedContentHint?: boolean;
2823
+ /** Significant, real-world, or irreversible effects; independent of requiresApproval. */
2824
+ consequentialHint?: boolean;
2825
+ /** Intended for debugging and developer tooling. */
2826
+ debugging?: boolean;
2812
2827
  };
2813
2828
  /**
2814
2829
  * This function navigates. The WebMCP call is held open until the function
package/dist/widget.d.ts CHANGED
@@ -729,6 +729,11 @@ declare interface AgoClientEvents {
729
729
  result: unknown;
730
730
  error?: string;
731
731
  };
732
+ /** A validated form collector submission is about to call its submit target. */
733
+ "form:submitting": {
734
+ name: string;
735
+ values: Record<string, unknown>;
736
+ };
732
737
  /**
733
738
  * A form collector submitted successfully. `result` is the raw submit response
734
739
  * (POST body / handler return value / backend relay result) — the third-party
@@ -1993,6 +1998,11 @@ export declare interface MountChatWidgetOptions {
1993
1998
  id: string;
1994
1999
  content: string;
1995
2000
  }) => void;
2001
+ /** Called after validation, just before the form submission starts. */
2002
+ onFormSubmitting?: (data: {
2003
+ name: string;
2004
+ values: Record<string, unknown>;
2005
+ }) => void;
1996
2006
  /**
1997
2007
  * Called when a form collector submits successfully. `result` is the raw submit
1998
2008
  * response (the third-party API's answer); `values` are the submitted fields.
@@ -2799,16 +2809,21 @@ declare interface TranscribeAudioOptions {
2799
2809
  signal?: AbortSignal;
2800
2810
  }
2801
2811
 
2802
- /** The MCP behavior hints AGO has no equivalent for. */
2812
+ /** Metadata for tools exposed through the WebMCP bridge. */
2803
2813
  declare interface WebMCPToolMeta {
2804
2814
  /**
2805
- * Both default to `false`, so only set what is true: `readOnlyHint` marks a
2806
- * function that changes nothing, `untrustedContentHint` one whose result may
2807
- * carry third-party text.
2815
+ * Optional WebMCP metadata; all fields default to `false` in WebMCP.
2816
+ * These annotations do not affect AGO's in-app agent or approval behavior.
2808
2817
  */
2809
2818
  annotations?: {
2819
+ /** The tool only reads data and does not change state. */
2810
2820
  readOnlyHint?: boolean;
2821
+ /** The output contains content untrusted by the tool author. */
2811
2822
  untrustedContentHint?: boolean;
2823
+ /** Significant, real-world, or irreversible effects; independent of requiresApproval. */
2824
+ consequentialHint?: boolean;
2825
+ /** Intended for debugging and developer tooling. */
2826
+ debugging?: boolean;
2812
2827
  };
2813
2828
  /**
2814
2829
  * This function navigates. The WebMCP call is held open until the function