@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/CHANGELOG.md +18 -0
- package/dist/angular.d.cts +14 -4
- package/dist/angular.d.ts +14 -4
- package/dist/{createFormCollector-ki_GTlp9.js → createFormCollector-D6_N8wYq.js} +48 -46
- package/dist/createFormCollector-D_5SDuk9.cjs +1 -0
- package/dist/devtools.d.cts +14 -4
- package/dist/devtools.d.ts +14 -4
- package/dist/helpers.d.cts +9 -4
- package/dist/helpers.d.ts +9 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +17 -4
- package/dist/index.d.ts +17 -4
- package/dist/index.js +39 -35
- package/dist/react.cjs +1 -1
- package/dist/react.d.cts +14 -4
- package/dist/react.d.ts +14 -4
- package/dist/react.js +1 -1
- package/dist/testing.d.cts +14 -4
- package/dist/testing.d.ts +14 -4
- package/dist/vue.d.cts +14 -4
- package/dist/vue.d.ts +14 -4
- package/dist/widget.cjs +6 -6
- package/dist/widget.d.cts +19 -4
- package/dist/widget.d.ts +19 -4
- package/dist/widget.js +886 -886
- package/llms-full.txt +20 -1
- package/package.json +1 -1
- package/dist/createFormCollector-Cq7HWjtU.cjs +0 -1
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
|
-
/**
|
|
2812
|
+
/** Metadata for tools exposed through the WebMCP bridge. */
|
|
2803
2813
|
declare interface WebMCPToolMeta {
|
|
2804
2814
|
/**
|
|
2805
|
-
*
|
|
2806
|
-
*
|
|
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
|
-
/**
|
|
2812
|
+
/** Metadata for tools exposed through the WebMCP bridge. */
|
|
2803
2813
|
declare interface WebMCPToolMeta {
|
|
2804
2814
|
/**
|
|
2805
|
-
*
|
|
2806
|
-
*
|
|
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
|