@rtrvr-ai/rover 4.2.0 → 4.2.1
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 +12 -9
- package/dist/agentDiscovery.js +2 -1
- package/dist/embed.js +33 -33
- package/dist/index.d.ts +30 -1
- package/dist/ownerInstall.js +2 -0
- package/dist/rover.js +33 -33
- package/dist/worker/rover-worker.js +11 -13
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { createRoverOwnerInstallBundle, type RoverOwnerInstallBootConfig, type R
|
|
|
6
6
|
import { createRoverAgentCard, createRoverAgentCardJson, createRoverAgentDiscoveryTags, createRoverSiteProfile, createRoverSiteProfileJson, createRoverServiceDescLinkHeader, createRoverWellKnownAgentCard, createRoverWellKnownSiteProfile, type RoverAgentCard, type RoverAgentDiscoveryRuntimeConfig } from './agentDiscovery.js';
|
|
7
7
|
import { type RoverCloudCheckpointState } from './cloudCheckpoint.js';
|
|
8
8
|
import type { PersistedRuntimeState, PersistedWorkerState } from './runtimeTypes.js';
|
|
9
|
-
import { type RoverLaunchAttachResponse, type RoverServerExperienceConfig } from './serverRuntime.js';
|
|
9
|
+
import { type RoverLaunchAttachResponse, type RoverServerExperienceConfig, type RoverBusinessType } from './serverRuntime.js';
|
|
10
10
|
import { type FollowupChatEntry } from './followupChatHeuristics.js';
|
|
11
11
|
export type RoverWebToolsConfig = {
|
|
12
12
|
enableExternalWebContext?: boolean;
|
|
@@ -27,6 +27,12 @@ export type RoverDeepLinkConfig = {
|
|
|
27
27
|
shortcutParam?: string;
|
|
28
28
|
consume?: boolean;
|
|
29
29
|
};
|
|
30
|
+
type RoverAiAccessConfig = {
|
|
31
|
+
enabled?: boolean;
|
|
32
|
+
allowCloudBrowser?: boolean;
|
|
33
|
+
allowDelegatedHandoffs?: boolean;
|
|
34
|
+
debugStreaming?: boolean;
|
|
35
|
+
};
|
|
30
36
|
export type RoverInit = {
|
|
31
37
|
siteId: string;
|
|
32
38
|
apiBase?: string;
|
|
@@ -259,6 +265,10 @@ export type RoverInstance = {
|
|
|
259
265
|
on: (event: RoverEventName, handler: RoverEventHandler) => () => void;
|
|
260
266
|
};
|
|
261
267
|
type TelemetryEventName = RoverEventName | RoverVoiceTelemetryEventName;
|
|
268
|
+
type RoverShortcutLimits = {
|
|
269
|
+
shortcutMaxStored: number;
|
|
270
|
+
shortcutMaxRendered: number;
|
|
271
|
+
};
|
|
262
272
|
declare function normalizePromptContextEntry(input: string | RoverPromptContextEntry): FollowupChatEntry | null;
|
|
263
273
|
declare function buildPublicRunStartedPayload(msg: any): Record<string, unknown>;
|
|
264
274
|
declare function buildPublicRunLifecyclePayload(msg: any, completionState: ReturnType<typeof normalizeRunCompletionState>): Record<string, unknown>;
|
|
@@ -273,6 +283,24 @@ declare function normalizeRunCompletionState(msg: any): {
|
|
|
273
283
|
};
|
|
274
284
|
declare function sanitizeWorkerState(input: any): PersistedWorkerState | undefined;
|
|
275
285
|
declare function cloneRuntimeStateForCheckpoint(state: PersistedRuntimeState): PersistedRuntimeState;
|
|
286
|
+
type RoverGreetingConfig = {
|
|
287
|
+
text?: string;
|
|
288
|
+
delay?: number;
|
|
289
|
+
duration?: number;
|
|
290
|
+
disabled?: boolean;
|
|
291
|
+
};
|
|
292
|
+
type RoverResolvedSiteConfig = {
|
|
293
|
+
shortcuts: RoverShortcut[];
|
|
294
|
+
businessType?: RoverBusinessType;
|
|
295
|
+
experience?: RoverServerExperienceConfig;
|
|
296
|
+
greeting?: RoverGreetingConfig;
|
|
297
|
+
voice?: RoverVoiceConfig;
|
|
298
|
+
aiAccess?: RoverAiAccessConfig;
|
|
299
|
+
limits?: RoverShortcutLimits;
|
|
300
|
+
pageConfig?: RoverPageCaptureConfig;
|
|
301
|
+
agentDiscovery?: RoverAgentDiscoveryRuntimeConfig;
|
|
302
|
+
version?: string;
|
|
303
|
+
};
|
|
276
304
|
export declare function identify(visitor: {
|
|
277
305
|
name?: string;
|
|
278
306
|
email?: string;
|
|
@@ -310,6 +338,7 @@ export declare const __roverInternalsForTests: {
|
|
|
310
338
|
normalizePromptContextEntry: typeof normalizePromptContextEntry;
|
|
311
339
|
buildPublicRunStartedPayload: typeof buildPublicRunStartedPayload;
|
|
312
340
|
buildPublicRunLifecyclePayload: typeof buildPublicRunLifecyclePayload;
|
|
341
|
+
resolveEffectiveShortcutsForTests: (cfg: RoverInit | null, siteConfig?: Partial<RoverResolvedSiteConfig> | null) => RoverShortcut[];
|
|
313
342
|
};
|
|
314
343
|
export { createRoverAgentCard, createRoverAgentCardJson, createRoverAgentDiscoveryTags, createRoverBookmarklet, createRoverConsoleSnippet, createRoverOwnerInstallBundle, createRoverSiteProfile, createRoverSiteProfileJson, createRoverServiceDescLinkHeader, createRoverScriptTagSnippet, createRoverWellKnownAgentCard, createRoverWellKnownSiteProfile, readRoverScriptDataAttributes, };
|
|
315
344
|
export type { RoverOwnerInstallBootConfig, RoverOwnerInstallBundle, RoverOwnerInstallBundleInput, RoverOwnerInstallRoverBookConfig, };
|
package/dist/ownerInstall.js
CHANGED
|
@@ -172,6 +172,8 @@ function buildDefaultLlmsTxt(card, options) {
|
|
|
172
172
|
'Prefer Rover shortcuts, explicit site tools, and A2W runs over raw DOM automation when they match the requested outcome.',
|
|
173
173
|
`Primary A2W run endpoint: ${text(card.extensions?.rover.runEndpoint || card.url)}`,
|
|
174
174
|
`A2W workflow endpoint: ${text(card.extensions?.rover.workflowEndpoint)}`,
|
|
175
|
+
'Create runs with { "url": "<site>", "prompt": "<instruction>" } or { "url": "<site>", "shortcutId": "<id>" }; "goal" is accepted as a compatibility alias.',
|
|
176
|
+
'For browserless execution, send Prefer: execution=cloud, wait=10 and follow returned links.stream, links.ndjson, or links.poll until completed, failed, cancelled, expired, or input_required.',
|
|
175
177
|
`Capability card: ${options.agentCardUrl}`,
|
|
176
178
|
];
|
|
177
179
|
const skills = card.skills
|