@rtrvr-ai/rover 3.0.0 → 4.0.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 +291 -12
- package/dist/agentDiscovery.d.ts +304 -0
- package/dist/agentDiscovery.js +1040 -0
- package/dist/embed.js +3706 -1562
- package/dist/index.d.ts +18 -1
- package/dist/ownerInstall.d.ts +150 -0
- package/dist/ownerInstall.js +340 -0
- package/dist/previewBootstrap.d.ts +36 -0
- package/dist/previewBootstrap.js +273 -0
- package/dist/rolls-cli.mjs +312 -0
- package/dist/rover.js +3706 -1562
- package/dist/worker/rover-worker.js +11 -11
- package/package.json +23 -1
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import type { RoverShortcut } from '@rover/ui';
|
|
2
|
+
import { createRoverAgentDiscoverySnapshot } from '@rover/shared/lib/agent-discovery.js';
|
|
3
|
+
import type { RoverAgentDiscoverySnapshot } from '@rover/shared/lib/types/index.js';
|
|
4
|
+
export declare const DEFAULT_AGENT_CARD_PATH = "/.well-known/agent-card.json";
|
|
5
|
+
export declare const DEFAULT_ROVER_SITE_PATH = "/.well-known/rover-site.json";
|
|
6
|
+
export declare const DEFAULT_LLMS_PATH = "/llms.txt";
|
|
7
|
+
export declare const ROVER_WEBMCP_DISCOVERY_GLOBAL = "__ROVER_WEBMCP_TOOL_DEFS__";
|
|
8
|
+
export declare const ROVER_DISCOVERY_ACTION_SHEET_MAX_ACTIONS = 3;
|
|
9
|
+
type JsonSchema = Record<string, any>;
|
|
10
|
+
export type RoverDiscoveryExecutionPreference = 'auto' | 'browser' | 'cloud';
|
|
11
|
+
export type RoverDiscoverySurfaceMode = 'silent' | 'beacon' | 'integrated' | 'debug';
|
|
12
|
+
export type RoverDiscoverySurfaceBranding = 'site' | 'co' | 'rover';
|
|
13
|
+
export type RoverDiscoveryHostSurface = 'auto' | 'existing-assistant' | 'floating-corner' | 'inline-primary';
|
|
14
|
+
export type RoverDiscoveryActionReveal = 'click' | 'focus' | 'keyboard' | 'agent-handshake';
|
|
15
|
+
export type RoverCapabilityResultMode = 'text' | 'markdown' | 'json' | 'observation' | 'artifacts';
|
|
16
|
+
export type RoverSkillSideEffect = 'none' | 'read' | 'write' | 'transactional';
|
|
17
|
+
export type RoverSkillInterface = 'task' | 'shortcut' | 'client_tool' | 'webmcp';
|
|
18
|
+
export type RoverDiscoverySurfacePolicy = {
|
|
19
|
+
mode?: RoverDiscoverySurfaceMode;
|
|
20
|
+
branding?: RoverDiscoverySurfaceBranding;
|
|
21
|
+
hostSurface?: RoverDiscoveryHostSurface;
|
|
22
|
+
actionReveal?: RoverDiscoveryActionReveal;
|
|
23
|
+
beaconLabel?: string;
|
|
24
|
+
agentModeEntryHints?: string[];
|
|
25
|
+
};
|
|
26
|
+
export type RoverToolAnnotations = {
|
|
27
|
+
category?: string;
|
|
28
|
+
tags?: string[];
|
|
29
|
+
examples?: string[];
|
|
30
|
+
whenToUse?: string;
|
|
31
|
+
whyUse?: string;
|
|
32
|
+
sideEffect?: RoverSkillSideEffect;
|
|
33
|
+
requiresConfirmation?: boolean;
|
|
34
|
+
preferredInterface?: RoverSkillInterface;
|
|
35
|
+
priority?: 'primary' | 'secondary';
|
|
36
|
+
};
|
|
37
|
+
export type RoverAgentDiscoveryToolDefinition = {
|
|
38
|
+
name: string;
|
|
39
|
+
title?: string;
|
|
40
|
+
description?: string;
|
|
41
|
+
parameters?: Record<string, any>;
|
|
42
|
+
required?: string[];
|
|
43
|
+
schema?: JsonSchema;
|
|
44
|
+
outputSchema?: JsonSchema;
|
|
45
|
+
llmCallable?: boolean;
|
|
46
|
+
annotations?: RoverToolAnnotations | Record<string, any>;
|
|
47
|
+
};
|
|
48
|
+
export type RoverPublicSkillDefinition = {
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
description: string;
|
|
52
|
+
tags?: string[];
|
|
53
|
+
examples?: string[];
|
|
54
|
+
inputSchema?: JsonSchema;
|
|
55
|
+
outputSchema?: JsonSchema;
|
|
56
|
+
sideEffect?: RoverSkillSideEffect;
|
|
57
|
+
requiresConfirmation?: boolean;
|
|
58
|
+
preferredInterface?: RoverSkillInterface;
|
|
59
|
+
category?: 'primary' | 'secondary';
|
|
60
|
+
rover?: {
|
|
61
|
+
shortcutId?: string;
|
|
62
|
+
prompt?: string;
|
|
63
|
+
routing?: 'auto' | 'act' | 'planner';
|
|
64
|
+
toolName?: string;
|
|
65
|
+
task?: {
|
|
66
|
+
endpoint: string;
|
|
67
|
+
payload: Record<string, unknown>;
|
|
68
|
+
preferExecution: RoverDiscoveryExecutionPreference;
|
|
69
|
+
};
|
|
70
|
+
deepLink?: string;
|
|
71
|
+
source?: 'shortcut' | 'client_tool' | 'webmcp' | 'additional';
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export type RoverCapabilityRecord = {
|
|
75
|
+
capabilityId: string;
|
|
76
|
+
version: string;
|
|
77
|
+
label: string;
|
|
78
|
+
description: string;
|
|
79
|
+
inputSchema?: JsonSchema;
|
|
80
|
+
outputSchema?: JsonSchema;
|
|
81
|
+
sideEffect?: RoverSkillSideEffect;
|
|
82
|
+
requiresConfirmation?: boolean;
|
|
83
|
+
preferredInterface?: RoverSkillInterface;
|
|
84
|
+
allowedExecutionModes: RoverDiscoveryExecutionPreference[];
|
|
85
|
+
resultModes: RoverCapabilityResultMode[];
|
|
86
|
+
pageScope?: string[];
|
|
87
|
+
analyticsTags?: string[];
|
|
88
|
+
rover?: RoverPublicSkillDefinition['rover'];
|
|
89
|
+
};
|
|
90
|
+
export type RoverPageDefinition = {
|
|
91
|
+
pageId: string;
|
|
92
|
+
route?: string;
|
|
93
|
+
label?: string;
|
|
94
|
+
capabilityIds?: string[];
|
|
95
|
+
entityHints?: string[];
|
|
96
|
+
formHints?: string[];
|
|
97
|
+
visibleCueLabel?: string;
|
|
98
|
+
beaconLabel?: string;
|
|
99
|
+
discoveryMode?: RoverDiscoverySurfaceMode;
|
|
100
|
+
hostSurface?: RoverDiscoveryHostSurface;
|
|
101
|
+
actionReveal?: RoverDiscoveryActionReveal;
|
|
102
|
+
agentModeEntryHints?: string[];
|
|
103
|
+
capabilitySummary?: string[];
|
|
104
|
+
};
|
|
105
|
+
export type RoverSiteProfile = {
|
|
106
|
+
identity: {
|
|
107
|
+
siteId?: string;
|
|
108
|
+
name: string;
|
|
109
|
+
description: string;
|
|
110
|
+
siteUrl: string;
|
|
111
|
+
version: string;
|
|
112
|
+
};
|
|
113
|
+
actions: RoverCapabilityRecord[];
|
|
114
|
+
pages: RoverPageDefinition[];
|
|
115
|
+
policies: {
|
|
116
|
+
preferredExecution: RoverDiscoveryExecutionPreference;
|
|
117
|
+
promptLaunchEnabled: boolean;
|
|
118
|
+
shortcutLaunchEnabled: boolean;
|
|
119
|
+
cloudBrowserAllowed: boolean;
|
|
120
|
+
delegatedHandoffs: boolean;
|
|
121
|
+
};
|
|
122
|
+
auth: {
|
|
123
|
+
taskEndpoint: string;
|
|
124
|
+
workflowEndpoint: string;
|
|
125
|
+
acceptsHttpMessageSignatures: boolean;
|
|
126
|
+
supportsUnsignedSelfReportedIdentity: boolean;
|
|
127
|
+
};
|
|
128
|
+
analytics: {
|
|
129
|
+
layer: 'roverbook';
|
|
130
|
+
taskIdField: 'taskId';
|
|
131
|
+
workflowIdField: 'workflowId';
|
|
132
|
+
capabilityIdField: 'capabilityId';
|
|
133
|
+
pageIdField: 'pageId';
|
|
134
|
+
};
|
|
135
|
+
currentPage?: RoverPageDefinition;
|
|
136
|
+
display: {
|
|
137
|
+
mode: RoverDiscoverySurfaceMode;
|
|
138
|
+
branding: RoverDiscoverySurfaceBranding;
|
|
139
|
+
hostSurface: RoverDiscoveryHostSurface;
|
|
140
|
+
actionReveal: RoverDiscoveryActionReveal;
|
|
141
|
+
beaconLabel?: string;
|
|
142
|
+
agentModeEntryHints: string[];
|
|
143
|
+
compactActionMaxActions: number;
|
|
144
|
+
};
|
|
145
|
+
artifacts: {
|
|
146
|
+
agentCardUrl: string;
|
|
147
|
+
roverSiteUrl: string;
|
|
148
|
+
llmsUrl?: string;
|
|
149
|
+
siteUrl: string;
|
|
150
|
+
};
|
|
151
|
+
interfaces?: RoverAgentCard['interfaces'];
|
|
152
|
+
};
|
|
153
|
+
export type RoverAgentCard = {
|
|
154
|
+
name: string;
|
|
155
|
+
description: string;
|
|
156
|
+
url: string;
|
|
157
|
+
version: string;
|
|
158
|
+
defaultInputModes: string[];
|
|
159
|
+
defaultOutputModes: string[];
|
|
160
|
+
capabilities: {
|
|
161
|
+
streaming: boolean;
|
|
162
|
+
publicTasks: boolean;
|
|
163
|
+
stateTransitions: boolean;
|
|
164
|
+
delegatedHandoffs: boolean;
|
|
165
|
+
webmcp: boolean;
|
|
166
|
+
};
|
|
167
|
+
skills: RoverPublicSkillDefinition[];
|
|
168
|
+
interfaces?: Array<{
|
|
169
|
+
type: 'task' | 'workflow' | 'site' | 'deep_link' | 'webmcp';
|
|
170
|
+
url: string;
|
|
171
|
+
description?: string;
|
|
172
|
+
available?: boolean;
|
|
173
|
+
}>;
|
|
174
|
+
extensions?: {
|
|
175
|
+
rover: {
|
|
176
|
+
siteId?: string;
|
|
177
|
+
siteUrl: string;
|
|
178
|
+
taskEndpoint: string;
|
|
179
|
+
workflowEndpoint: string;
|
|
180
|
+
serviceDescUrl: string;
|
|
181
|
+
roverSiteUrl: string;
|
|
182
|
+
llmsUrl?: string;
|
|
183
|
+
preferredExecution: RoverDiscoveryExecutionPreference;
|
|
184
|
+
promptLaunchEnabled: boolean;
|
|
185
|
+
shortcutLaunchEnabled: boolean;
|
|
186
|
+
cloudBrowserAllowed: boolean;
|
|
187
|
+
delegatedHandoffs: boolean;
|
|
188
|
+
instructions: string[];
|
|
189
|
+
capabilitiesGraph: RoverCapabilityRecord[];
|
|
190
|
+
pages: RoverPageDefinition[];
|
|
191
|
+
currentPage?: RoverPageDefinition;
|
|
192
|
+
discoverySurface: {
|
|
193
|
+
mode: RoverDiscoverySurfaceMode;
|
|
194
|
+
branding: RoverDiscoverySurfaceBranding;
|
|
195
|
+
hostSurface: RoverDiscoveryHostSurface;
|
|
196
|
+
actionReveal: RoverDiscoveryActionReveal;
|
|
197
|
+
beaconLabel?: string;
|
|
198
|
+
agentModeEntryHints: string[];
|
|
199
|
+
compactActionMaxActions: number;
|
|
200
|
+
};
|
|
201
|
+
shortcuts: Array<{
|
|
202
|
+
id: string;
|
|
203
|
+
label: string;
|
|
204
|
+
description?: string;
|
|
205
|
+
prompt: string;
|
|
206
|
+
routing?: 'auto' | 'act' | 'planner';
|
|
207
|
+
}>;
|
|
208
|
+
webmcp: {
|
|
209
|
+
available: boolean;
|
|
210
|
+
tools: string[];
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
export type RoverAgentDiscoveryConfig = {
|
|
216
|
+
enabled?: boolean;
|
|
217
|
+
siteUrl: string;
|
|
218
|
+
siteId?: string;
|
|
219
|
+
apiBase?: string;
|
|
220
|
+
siteName?: string;
|
|
221
|
+
description?: string;
|
|
222
|
+
version?: string;
|
|
223
|
+
agentCardUrl?: string;
|
|
224
|
+
roverSiteUrl?: string;
|
|
225
|
+
llmsUrl?: string;
|
|
226
|
+
visibleCue?: boolean;
|
|
227
|
+
discoverySurface?: RoverDiscoverySurfacePolicy;
|
|
228
|
+
hostSurfaceSelector?: string;
|
|
229
|
+
preferExecution?: RoverDiscoveryExecutionPreference;
|
|
230
|
+
shortcuts?: RoverShortcut[];
|
|
231
|
+
tools?: RoverAgentDiscoveryToolDefinition[];
|
|
232
|
+
webmcpTools?: RoverAgentDiscoveryToolDefinition[];
|
|
233
|
+
additionalSkills?: RoverPublicSkillDefinition[];
|
|
234
|
+
capabilities?: RoverCapabilityRecord[];
|
|
235
|
+
pages?: RoverPageDefinition[];
|
|
236
|
+
pageContext?: Omit<RoverPageDefinition, 'capabilityIds'> & {
|
|
237
|
+
capabilityIds?: string[];
|
|
238
|
+
};
|
|
239
|
+
aiAccess?: {
|
|
240
|
+
enabled?: boolean;
|
|
241
|
+
allowPromptLaunch?: boolean;
|
|
242
|
+
allowShortcutLaunch?: boolean;
|
|
243
|
+
allowCloudBrowser?: boolean;
|
|
244
|
+
allowDelegatedHandoffs?: boolean;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
export type RoverAgentDiscoveryRuntimeConfig = Omit<RoverAgentDiscoveryConfig, 'siteUrl'> & {
|
|
248
|
+
siteUrl?: string;
|
|
249
|
+
};
|
|
250
|
+
export declare function sanitizeRoverAgentDiscoveryRuntimeConfig(raw: unknown): RoverAgentDiscoveryRuntimeConfig | undefined;
|
|
251
|
+
export declare function createRoverAgentCard(config: RoverAgentDiscoveryConfig): RoverAgentCard;
|
|
252
|
+
export declare function createRoverSiteProfile(config: RoverAgentDiscoveryConfig): RoverSiteProfile;
|
|
253
|
+
export declare function buildRoverAgentDiscoveryPayloads(config: RoverAgentDiscoveryConfig): {
|
|
254
|
+
card: RoverAgentCard;
|
|
255
|
+
cardJson: string;
|
|
256
|
+
serviceDescHref: string;
|
|
257
|
+
roverSite: RoverSiteProfile;
|
|
258
|
+
roverSiteJson: string;
|
|
259
|
+
roverSiteHref: string;
|
|
260
|
+
pageManifest: RoverPageDefinition;
|
|
261
|
+
pageManifestJson: string;
|
|
262
|
+
llmsUrl?: string;
|
|
263
|
+
marker: {
|
|
264
|
+
task?: string;
|
|
265
|
+
card: string;
|
|
266
|
+
roverSite: string;
|
|
267
|
+
site?: string;
|
|
268
|
+
workflow?: string;
|
|
269
|
+
page?: string;
|
|
270
|
+
preferExecution?: RoverDiscoveryExecutionPreference;
|
|
271
|
+
discoveryMode?: RoverDiscoverySurfaceMode;
|
|
272
|
+
hostSurface?: RoverDiscoveryHostSurface;
|
|
273
|
+
actionReveal?: RoverDiscoveryActionReveal;
|
|
274
|
+
beaconLabel?: string;
|
|
275
|
+
skills: Array<{
|
|
276
|
+
id: string;
|
|
277
|
+
name: string;
|
|
278
|
+
}>;
|
|
279
|
+
capabilities: Array<{
|
|
280
|
+
capabilityId: string;
|
|
281
|
+
label: string;
|
|
282
|
+
}>;
|
|
283
|
+
};
|
|
284
|
+
markerJson: string;
|
|
285
|
+
};
|
|
286
|
+
export declare function createRoverAgentCardJson(config: RoverAgentDiscoveryConfig, options?: {
|
|
287
|
+
pretty?: boolean;
|
|
288
|
+
}): string;
|
|
289
|
+
export declare function createRoverWellKnownAgentCard(config: RoverAgentDiscoveryConfig, options?: {
|
|
290
|
+
pretty?: boolean;
|
|
291
|
+
}): string;
|
|
292
|
+
export declare function createRoverSiteProfileJson(config: RoverAgentDiscoveryConfig, options?: {
|
|
293
|
+
pretty?: boolean;
|
|
294
|
+
}): string;
|
|
295
|
+
export declare function createRoverWellKnownSiteProfile(config: RoverAgentDiscoveryConfig, options?: {
|
|
296
|
+
pretty?: boolean;
|
|
297
|
+
}): string;
|
|
298
|
+
export declare function createRoverServiceDescLinkHeader(config: {
|
|
299
|
+
agentCardUrl?: string;
|
|
300
|
+
llmsUrl?: string;
|
|
301
|
+
}): string;
|
|
302
|
+
export declare function createRoverAgentDiscoveryTags(config: RoverAgentDiscoveryConfig): string;
|
|
303
|
+
export { createRoverAgentDiscoverySnapshot };
|
|
304
|
+
export type { RoverAgentDiscoverySnapshot };
|