@rtrvr-ai/rover 1.1.2 → 1.2.0
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/README.md +8 -1
- package/dist/embed.js +578 -16
- package/dist/index.d.ts +20 -0
- package/dist/rover.js +2478 -275
- package/dist/worker/rover-worker.js +708 -252
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type RoverShortcut } from '@rover/ui';
|
|
1
2
|
import { type RoverCloudCheckpointState } from './cloudCheckpoint.js';
|
|
2
3
|
export type RoverWebToolsConfig = {
|
|
3
4
|
enableExternalWebContext?: boolean;
|
|
@@ -78,6 +79,10 @@ export type RoverInit = {
|
|
|
78
79
|
enableAdditionalTools?: string[];
|
|
79
80
|
userDefined?: string[];
|
|
80
81
|
};
|
|
82
|
+
visitor?: {
|
|
83
|
+
name?: string;
|
|
84
|
+
email?: string;
|
|
85
|
+
};
|
|
81
86
|
ui?: {
|
|
82
87
|
agent?: {
|
|
83
88
|
name?: string;
|
|
@@ -87,12 +92,19 @@ export type RoverInit = {
|
|
|
87
92
|
mp4Url?: string;
|
|
88
93
|
webmUrl?: string;
|
|
89
94
|
};
|
|
95
|
+
shortcuts?: RoverShortcut[];
|
|
90
96
|
muted?: boolean;
|
|
91
97
|
thoughtStyle?: 'concise_cards' | 'minimal';
|
|
92
98
|
panel?: {
|
|
93
99
|
resizable?: boolean;
|
|
94
100
|
};
|
|
95
101
|
showTaskControls?: boolean;
|
|
102
|
+
greeting?: {
|
|
103
|
+
text?: string;
|
|
104
|
+
delay?: number;
|
|
105
|
+
duration?: number;
|
|
106
|
+
disabled?: boolean;
|
|
107
|
+
};
|
|
96
108
|
};
|
|
97
109
|
tools?: {
|
|
98
110
|
client?: ClientToolDefinition[];
|
|
@@ -128,8 +140,16 @@ export type RoverInstance = {
|
|
|
128
140
|
}) => void;
|
|
129
141
|
getState: () => any;
|
|
130
142
|
registerTool: (nameOrDef: string | ClientToolDefinition, handler: (args: any) => any | Promise<any>) => void;
|
|
143
|
+
identify: (visitor: {
|
|
144
|
+
name?: string;
|
|
145
|
+
email?: string;
|
|
146
|
+
}) => void;
|
|
131
147
|
on: (event: RoverEventName, handler: RoverEventHandler) => () => void;
|
|
132
148
|
};
|
|
149
|
+
export declare function identify(visitor: {
|
|
150
|
+
name?: string;
|
|
151
|
+
email?: string;
|
|
152
|
+
}): void;
|
|
133
153
|
export declare function boot(cfg: RoverInit): RoverInstance;
|
|
134
154
|
export declare function init(cfg: RoverInit): RoverInstance;
|
|
135
155
|
export declare function update(cfg: Partial<RoverInit>): void;
|