@useago/sdk 1.13.0 → 1.13.2
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 +40 -0
- package/dist/angular.cjs +1 -1
- package/dist/angular.d.cts +43 -10
- package/dist/angular.d.ts +43 -10
- package/dist/angular.js +4 -4
- package/dist/autoContinue-C3UsCvT5.cjs +1 -0
- package/dist/{autoContinue-CC8K9mBU.js → autoContinue-Cb4_iEbO.js} +1 -1
- package/dist/{createConversationSession-CiOXKWl0.cjs → createConversationSession-Digvn0GQ.cjs} +1 -1
- package/dist/{createConversationSession-BfJg0WyA.js → createConversationSession-DrmOaZdO.js} +1 -1
- package/dist/{createFormCollector-DnQl77Ko.cjs → createFormCollector-Cq7HWjtU.cjs} +1 -1
- package/dist/{createFormCollector-DN1xjAv5.js → createFormCollector-ki_GTlp9.js} +1 -1
- package/dist/devtools.d.cts +34 -5
- package/dist/devtools.d.ts +34 -5
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +34 -5
- package/dist/index.d.ts +34 -5
- package/dist/index.js +4 -4
- package/dist/react.cjs +3 -3
- package/dist/react.d.cts +40 -6
- package/dist/react.d.ts +40 -6
- package/dist/react.js +290 -284
- package/dist/testing.d.cts +34 -5
- package/dist/testing.d.ts +34 -5
- package/dist/{types-Q7t1peH-.js → types-D1ZrqVhr.js} +884 -776
- package/dist/types-DNr6XEwI.cjs +10 -0
- package/dist/vue.cjs +1 -1
- package/dist/vue.d.cts +38 -7
- package/dist/vue.d.ts +38 -7
- package/dist/vue.js +57 -57
- package/dist/widget.cjs +6 -6
- package/dist/widget.d.cts +34 -5
- package/dist/widget.d.ts +34 -5
- package/dist/widget.js +136 -136
- package/llms-full.txt +56 -3
- package/package.json +1 -1
- package/dist/autoContinue-CP9pJR-V.cjs +0 -1
- package/dist/types-a7teDBnC.cjs +0 -10
package/dist/react.d.ts
CHANGED
|
@@ -116,6 +116,8 @@ declare class AgoClient {
|
|
|
116
116
|
private config;
|
|
117
117
|
/** Conversations already warned about an empty reply (one warning each). */
|
|
118
118
|
private warnedEmptyConversations;
|
|
119
|
+
/** Client functions the backend has accepted from a WebMCP call report. */
|
|
120
|
+
private declaredExternally;
|
|
119
121
|
/** Whether the placeholder-mode page-data warning has already been logged. */
|
|
120
122
|
private warnedPageDataPlaceholder;
|
|
121
123
|
/** `readPageData` companions this SDK registered, so cleanup only removes its own. */
|
|
@@ -152,6 +154,8 @@ declare class AgoClient {
|
|
|
152
154
|
proactive: ProactiveController | null;
|
|
153
155
|
/** Removes the mirrored WebMCP tools; `null` when the bridge is off. */
|
|
154
156
|
private detachWebMCP;
|
|
157
|
+
/** The `listPages` companion is live. */
|
|
158
|
+
private listPagesRegistered;
|
|
155
159
|
constructor(config: AgoConfig);
|
|
156
160
|
private attachWebMCPBridge;
|
|
157
161
|
/**
|
|
@@ -266,6 +270,11 @@ declare class AgoClient {
|
|
|
266
270
|
*/
|
|
267
271
|
rejectFunction(invocationId: string): Promise<void>;
|
|
268
272
|
/* Excluded from this release type: runExternalFunction */
|
|
273
|
+
/**
|
|
274
|
+
* Best-effort analytics for one WebMCP call. No agent: the caller is someone
|
|
275
|
+
* else's agent and cannot be known from `execute`.
|
|
276
|
+
*/
|
|
277
|
+
private reportExternalCall;
|
|
269
278
|
/**
|
|
270
279
|
* Get a page of conversations, newest-first. `pageSize` is capped at 100 by
|
|
271
280
|
* the backend (default 50). Returns the `{ data, has_more, total }` envelope
|
|
@@ -460,14 +469,15 @@ declare class AgoClient {
|
|
|
460
469
|
* page of an entity. Flat arguments only: nested object parameters are not
|
|
461
470
|
* reliably rendered to the model, so placeholders must not be named `page`.
|
|
462
471
|
*
|
|
472
|
+
* For a large table, `{ catalogue: "onDemand" }` moves the route descriptions
|
|
473
|
+
* into a read-only `listPages` companion, leaving only the page names in the
|
|
474
|
+
* per-message schema. Routes may carry a `section` to group that companion.
|
|
475
|
+
*
|
|
463
476
|
* @param navigate - A callback that performs the navigation (e.g. react-router's navigate)
|
|
464
477
|
* @param routes - Map of route names to paths, with descriptions for the LLM
|
|
478
|
+
* @param opts - Where the catalogue lives; `"inline"` by default
|
|
465
479
|
*/
|
|
466
|
-
registerNavigationFunction(navigate: (path: string) => void, routes:
|
|
467
|
-
name: string;
|
|
468
|
-
path: string;
|
|
469
|
-
description: string;
|
|
470
|
-
}>): void;
|
|
480
|
+
registerNavigationFunction(navigate: (path: string) => void, routes: NavRoute[], opts?: AgoNavigationOptions): void;
|
|
471
481
|
/**
|
|
472
482
|
* Unregister the navigation function and its `current-page` context provider.
|
|
473
483
|
*/
|
|
@@ -975,6 +985,16 @@ export declare interface AgoMessage {
|
|
|
975
985
|
createdAt: Date;
|
|
976
986
|
}
|
|
977
987
|
|
|
988
|
+
/**
|
|
989
|
+
* Where the route catalogue lives: `"inline"` (default) in `navigateToPage`'s
|
|
990
|
+
* description, or `"onDemand"` in a `listPages` companion's result.
|
|
991
|
+
*/
|
|
992
|
+
export declare type AgoNavigationOptions = {
|
|
993
|
+
catalogue?: "inline";
|
|
994
|
+
} | {
|
|
995
|
+
catalogue: "onDemand";
|
|
996
|
+
};
|
|
997
|
+
|
|
978
998
|
/**
|
|
979
999
|
* Prebuilt proactive-nudge toast: a small, always-dismissable bubble anchored
|
|
980
1000
|
* near the chat launcher. Never modal — it never blocks the page. Renders the
|
|
@@ -1148,6 +1168,8 @@ export declare interface AgoRoute {
|
|
|
1148
1168
|
name: string;
|
|
1149
1169
|
path: string;
|
|
1150
1170
|
description: string;
|
|
1171
|
+
/** Groups this route for `catalogue: "onDemand"`. Unused otherwise. */
|
|
1172
|
+
section?: string;
|
|
1151
1173
|
}
|
|
1152
1174
|
|
|
1153
1175
|
/**
|
|
@@ -2050,6 +2072,15 @@ declare interface MockAgoClientOptions {
|
|
|
2050
2072
|
|
|
2051
2073
|
declare type MockFn = (...args: any[]) => any;
|
|
2052
2074
|
|
|
2075
|
+
/** A navigable page. `path` may carry `:param` placeholders. */
|
|
2076
|
+
declare interface NavRoute {
|
|
2077
|
+
name: string;
|
|
2078
|
+
path: string;
|
|
2079
|
+
description: string;
|
|
2080
|
+
/** Only read under `catalogue: "onDemand"`. */
|
|
2081
|
+
section?: string;
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2053
2084
|
/**
|
|
2054
2085
|
* Optional action attached to a nudge. Accepting a `functionName` action
|
|
2055
2086
|
* executes the registered client function (same `FunctionRegistry` path as
|
|
@@ -2967,8 +2998,11 @@ export declare interface UseAgoFunctionOptions {
|
|
|
2967
2998
|
* { name: "settings", path: "/settings", description: "User settings" },
|
|
2968
2999
|
* ]);
|
|
2969
3000
|
* ```
|
|
3001
|
+
*
|
|
3002
|
+
* For a large route table, `{ catalogue: "onDemand" }` keeps the descriptions
|
|
3003
|
+
* out of every message.
|
|
2970
3004
|
*/
|
|
2971
|
-
export declare function useAgoNavigation(navigate: (path: string) => void, routes: AgoRoute[]): void;
|
|
3005
|
+
export declare function useAgoNavigation(navigate: (path: string) => void, routes: AgoRoute[], opts?: AgoNavigationOptions): void;
|
|
2972
3006
|
|
|
2973
3007
|
export declare type UseAgoOptions = AgoConfig;
|
|
2974
3008
|
|