opensteer 0.6.6 → 0.6.7
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/dist/{browser-profile-client-OUHaODro.d.ts → browser-profile-client-AGTsLQxT.d.ts} +1 -1
- package/dist/{browser-profile-client-D6PuRefA.d.cts → browser-profile-client-Biu6DyT6.d.cts} +1 -1
- package/dist/{chunk-H27BERRF.js → chunk-ACRSRDRN.js} +7825 -7631
- package/dist/cli/auth.d.cts +1 -1
- package/dist/cli/auth.d.ts +1 -1
- package/dist/cli/profile.cjs +349 -168
- package/dist/cli/profile.d.cts +2 -2
- package/dist/cli/profile.d.ts +2 -2
- package/dist/cli/profile.js +1 -1
- package/dist/cli/server.cjs +330 -149
- package/dist/cli/server.js +1 -1
- package/dist/index.cjs +340 -147
- package/dist/index.d.cts +48 -5
- package/dist/index.d.ts +48 -5
- package/dist/index.js +15 -2
- package/dist/{types-BWItZPl_.d.ts → types-Cr10igF3.d.cts} +1 -1
- package/dist/{types-BWItZPl_.d.cts → types-Cr10igF3.d.ts} +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as playwright from 'playwright';
|
|
2
2
|
import { Page, BrowserContext, ElementHandle, Cookie, Browser } from 'playwright';
|
|
3
|
-
import { a as OpensteerConfig, L as LaunchOptions, b as OpensteerLocalProfileDescriptor, c as OpensteerRealBrowserOptions, G as GotoOptions, S as SnapshotOptions, d as StateResult, e as ScreenshotOptions, f as ClickOptions, A as ActionResult, H as HoverOptions, I as InputOptions, g as SelectOptions, h as ScrollOptions, T as TabInfo, C as CookieParam, B as BaseActionOptions, i as BoundingBox, F as FileUploadOptions, E as ExtractOptions, j as ExtractFromPlanOptions, k as ExtractionRunResult, l as OpensteerCursorState, m as OpensteerAgentConfig, n as OpensteerAgentInstance, o as ElementPath, p as SnapshotMode, q as AiResolveCallback, r as AiExtractCallback, O as OpensteerAuthScheme, s as OpensteerAgentProvider, t as OpensteerAgentAction, u as OpensteerAgentResult, v as OpensteerAgentUsage, w as OpensteerCursorStyle, x as OpensteerCursorConfig, y as OpensteerAgentExecuteOptions } from './types-
|
|
4
|
-
export {
|
|
5
|
-
import { A as ActionFailure, e as ActionFailureCode, C as CloudErrorCode, f as CloudActionFailureDetails, g as CloudSessionCreateRequest, h as CloudSessionCreateResponse, i as CloudSelectorCacheImportRequest, j as CloudSelectorCacheImportResponse, k as CloudActionMethod, l as CloudSelectorCacheImportEntry } from './browser-profile-client-
|
|
6
|
-
export { m as ActionFailureBlocker, n as ActionFailureClassificationSource, o as ActionFailureDetails, p as BrowserProfileArchiveFormat, q as BrowserProfileClient, c as BrowserProfileCreateRequest, d as BrowserProfileDescriptor, a as BrowserProfileListRequest, b as BrowserProfileListResponse, r as BrowserProfileProxyPolicy, B as BrowserProfileStatus, s as CloudActionFailure, t as CloudActionRequest, u as CloudActionResponse, v as CloudActionSuccess, w as CloudBrowserProfileLaunchPreference, x as CloudFingerprintMode, y as CloudSessionContractVersion, z as CloudSessionLaunchConfig, D as CloudSessionSourceType, E as CloudSessionSummary, F as cloudSessionContractVersion } from './browser-profile-client-
|
|
3
|
+
import { a as OpensteerConfig, L as LaunchOptions, b as OpensteerLocalProfileDescriptor, c as OpensteerRealBrowserOptions, G as GotoOptions, S as SnapshotOptions, d as StateResult, e as ScreenshotOptions, f as ClickOptions, A as ActionResult, H as HoverOptions, I as InputOptions, g as SelectOptions, h as ScrollOptions, T as TabInfo, C as CookieParam, B as BaseActionOptions, i as BoundingBox, F as FileUploadOptions, E as ExtractOptions, j as ExtractFromPlanOptions, k as ExtractionRunResult, l as OpensteerCursorState, m as OpensteerAgentConfig, n as OpensteerAgentInstance, o as ElementPath, p as SnapshotMode, q as AiResolveCallback, r as AiExtractCallback, O as OpensteerAuthScheme, s as OpensteerAgentProvider, t as OpensteerAgentAction, u as OpensteerAgentResult, v as OpensteerAgentUsage, w as OpensteerCursorStyle, x as OpensteerCursorConfig, y as OpensteerAgentExecuteOptions, z as OpensteerBrowserConfig } from './types-Cr10igF3.cjs';
|
|
4
|
+
export { D as ActionWaitOptions, J as AiExtractArgs, K as AiExtractResult, M as AiResolveArgs, N as AiResolveCallbackResult, P as AiResolveResult, Q as AttributeMatchClause, R as ContextHop, U as DomPath, V as ExtractSchema, W as ExtractSchemaField, X as ExtractSchemaValue, Y as ExtractionFieldPlan, Z as ExtractionPlan, _ as MatchClause, $ as MatchOperator, a0 as OpensteerAgentMode, a1 as OpensteerAgentModelConfig, a2 as OpensteerCloudAnnouncePolicy, a3 as OpensteerCloudBrowserProfileOptions, a4 as OpensteerCloudConfig, a5 as OpensteerCloudOptions, a6 as OpensteerCursorColor, a7 as OpensteerCursorProfile, a8 as OpensteerLocalBrowserMode, a9 as OpensteerStorageConfig, aa as PathNode, ab as PathNodePosition, ac as PositionMatchClause } from './types-Cr10igF3.cjs';
|
|
5
|
+
import { A as ActionFailure, e as ActionFailureCode, C as CloudErrorCode, f as CloudActionFailureDetails, g as CloudSessionCreateRequest, h as CloudSessionCreateResponse, i as CloudSelectorCacheImportRequest, j as CloudSelectorCacheImportResponse, k as CloudActionMethod, l as CloudSelectorCacheImportEntry } from './browser-profile-client-Biu6DyT6.cjs';
|
|
6
|
+
export { m as ActionFailureBlocker, n as ActionFailureClassificationSource, o as ActionFailureDetails, p as BrowserProfileArchiveFormat, q as BrowserProfileClient, c as BrowserProfileCreateRequest, d as BrowserProfileDescriptor, a as BrowserProfileListRequest, b as BrowserProfileListResponse, r as BrowserProfileProxyPolicy, B as BrowserProfileStatus, s as CloudActionFailure, t as CloudActionRequest, u as CloudActionResponse, v as CloudActionSuccess, w as CloudBrowserProfileLaunchPreference, x as CloudFingerprintMode, y as CloudSessionContractVersion, z as CloudSessionLaunchConfig, D as CloudSessionSourceType, E as CloudSessionSummary, F as cloudSessionContractVersion } from './browser-profile-client-Biu6DyT6.cjs';
|
|
7
7
|
|
|
8
8
|
interface RegistryEntry {
|
|
9
9
|
file: string;
|
|
@@ -647,4 +647,47 @@ declare class SvgCursorRenderer implements CursorRenderer {
|
|
|
647
647
|
private handleError;
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
-
|
|
650
|
+
interface BrowserSession {
|
|
651
|
+
browser: Browser;
|
|
652
|
+
context: BrowserContext;
|
|
653
|
+
page: Page;
|
|
654
|
+
/** True when connected to an external browser. close() disconnects without killing it. */
|
|
655
|
+
isExternal: boolean;
|
|
656
|
+
}
|
|
657
|
+
declare class BrowserPool {
|
|
658
|
+
private browser;
|
|
659
|
+
private cdpProxy;
|
|
660
|
+
private launchedProcess;
|
|
661
|
+
private managedUserDataDir;
|
|
662
|
+
private persistentProfile;
|
|
663
|
+
private readonly defaults;
|
|
664
|
+
constructor(defaults?: OpensteerBrowserConfig);
|
|
665
|
+
launch(options?: LaunchOptions): Promise<BrowserSession>;
|
|
666
|
+
close(): Promise<void>;
|
|
667
|
+
private connectToRunning;
|
|
668
|
+
private launchOwnedRealBrowser;
|
|
669
|
+
private launchSandbox;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
interface ChromePaths {
|
|
673
|
+
executable: string | null;
|
|
674
|
+
defaultUserDataDir: string;
|
|
675
|
+
}
|
|
676
|
+
interface LocalChromeProfileDescriptor {
|
|
677
|
+
directory: string;
|
|
678
|
+
name: string;
|
|
679
|
+
}
|
|
680
|
+
/** Resolve platform-specific Chrome paths. */
|
|
681
|
+
declare function detectChromePaths(): ChromePaths;
|
|
682
|
+
/** Expand ~ to home directory in a path. */
|
|
683
|
+
declare function expandHome(p: string): string;
|
|
684
|
+
declare function listLocalChromeProfiles(userDataDir?: string): LocalChromeProfileDescriptor[];
|
|
685
|
+
|
|
686
|
+
interface PersistentProfileResult {
|
|
687
|
+
created: boolean;
|
|
688
|
+
userDataDir: string;
|
|
689
|
+
}
|
|
690
|
+
declare function getOrCreatePersistentProfile(sourceUserDataDir: string, profileDirectory: string, profilesRootDir?: string): Promise<PersistentProfileResult>;
|
|
691
|
+
declare function clearPersistentProfileSingletons(userDataDir: string): Promise<void>;
|
|
692
|
+
|
|
693
|
+
export { type ActionExecutionResult, ActionFailure, ActionFailureCode, ActionResult, ActionWsClient, AiExtractCallback, type AiModelConfig, AiResolveCallback, type ArrayExtractedRow, type ArrayRowMetadata, type ArraySelector, BaseActionOptions, BoundingBox, BrowserPool, type BrowserSession, CdpOverlayCursorRenderer, ClickOptions, CloudActionFailureDetails, CloudActionMethod, CloudCdpClient, type CloudCdpConnectArgs, type CloudCdpConnection, CloudErrorCode, CloudSelectorCacheImportEntry, CloudSelectorCacheImportRequest, CloudSelectorCacheImportResponse, CloudSessionClient, CloudSessionCreateRequest, CloudSessionCreateResponse, CookieParam, type CounterRequest, CounterResolutionError, type CounterResolutionErrorCode, type CursorCapabilityReason, CursorController, type CursorIntent, type CursorMotionPlan, type CursorPoint, type CursorRenderer, type CursorStatus, ElementPath, ElementPathError, type ElementPathErrorCode, ExtractFromPlanOptions, ExtractOptions, ExtractionRunResult, type FieldSelector, FileUploadOptions, GotoOptions, HoverOptions, InputOptions, LaunchOptions, type LocalChromeProfileDescriptor, LocalSelectorStorage, type MarkInteractivityOptions, OPENSTEER_HIDDEN_ATTR, OPENSTEER_INTERACTIVE_ATTR, OPENSTEER_SCROLLABLE_ATTR, OS_BOUNDARY_ATTR, OS_IFRAME_BOUNDARY_TAG, OS_NODE_ID_ATTR, OS_SHADOW_BOUNDARY_TAG, OS_UNAVAILABLE_ATTR, Opensteer, OpensteerActionError, OpensteerAgentAction, OpensteerAgentActionError, OpensteerAgentApiError, OpensteerAgentBusyError, OpensteerAgentConfig, OpensteerAgentConfigError, OpensteerAgentError, OpensteerAgentExecuteOptions, OpensteerAgentExecutionError, OpensteerAgentInstance, OpensteerAgentProvider, OpensteerAgentProviderError, OpensteerAgentResult, OpensteerAgentUsage, OpensteerAuthScheme, OpensteerBrowserConfig, OpensteerCloudError, OpensteerConfig, OpensteerCuaAgentHandler, OpensteerCursorConfig, OpensteerCursorState, OpensteerCursorStyle, OpensteerLocalProfileDescriptor, OpensteerRealBrowserOptions, type PersistentProfileResult, type PreparedSnapshot, type RegistryEntry, type ResolvedElementPath, ScreenshotOptions, ScrollOptions, SelectOptions, type SelectorFile, type SelectorRegistry, type SerializeOptions, type SerializedNodeMeta, type SerializedPageHTML, SnapshotMode, SnapshotOptions, StateResult, SvgCursorRenderer, TabInfo, buildArrayFieldPathCandidates, buildElementPathFromHandle, buildElementPathFromSelector, buildPathSelectorHint, cleanForAction, cleanForClickable, cleanForExtraction, cleanForFull, cleanForScrollable, clearCookies, clearPersistentProfileSingletons, cloneElementPath, closeTab, cloudNotLaunchedError, cloudUnsupportedMethodError, collectLocalSelectorCacheEntries, countArrayItemsWithPath, createCuaClient, createEmptyRegistry, createExtractCallback, createResolveCallback, createTab, detectChromePaths, expandHome, exportCookies, extractArrayRowsWithPaths, extractArrayWithPaths, extractWithPaths, getCookies, getElementAttributes, getElementBoundingBox, getElementText, getElementValue, getModelProvider, getOrCreatePersistentProfile, getPageHtml, getPageTitle, importCookies, listLocalChromeProfiles, listTabs, markInteractiveElements, normalizeNamespace, performClick, performFileUpload, performHover, performInput, performScroll, performSelect, planSnappyCursorMotion, prepareSnapshot, pressKey, queryAllByElementPath, resolveAgentConfig, resolveCounterElement, resolveCountersBatch, resolveElementPath, resolveNamespaceDir, sanitizeElementPath, serializePageHTML, setCookie, switchTab, typeText, waitForVisualStability };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as playwright from 'playwright';
|
|
2
2
|
import { Page, BrowserContext, ElementHandle, Cookie, Browser } from 'playwright';
|
|
3
|
-
import { a as OpensteerConfig, L as LaunchOptions, b as OpensteerLocalProfileDescriptor, c as OpensteerRealBrowserOptions, G as GotoOptions, S as SnapshotOptions, d as StateResult, e as ScreenshotOptions, f as ClickOptions, A as ActionResult, H as HoverOptions, I as InputOptions, g as SelectOptions, h as ScrollOptions, T as TabInfo, C as CookieParam, B as BaseActionOptions, i as BoundingBox, F as FileUploadOptions, E as ExtractOptions, j as ExtractFromPlanOptions, k as ExtractionRunResult, l as OpensteerCursorState, m as OpensteerAgentConfig, n as OpensteerAgentInstance, o as ElementPath, p as SnapshotMode, q as AiResolveCallback, r as AiExtractCallback, O as OpensteerAuthScheme, s as OpensteerAgentProvider, t as OpensteerAgentAction, u as OpensteerAgentResult, v as OpensteerAgentUsage, w as OpensteerCursorStyle, x as OpensteerCursorConfig, y as OpensteerAgentExecuteOptions } from './types-
|
|
4
|
-
export {
|
|
5
|
-
import { A as ActionFailure, e as ActionFailureCode, C as CloudErrorCode, f as CloudActionFailureDetails, g as CloudSessionCreateRequest, h as CloudSessionCreateResponse, i as CloudSelectorCacheImportRequest, j as CloudSelectorCacheImportResponse, k as CloudActionMethod, l as CloudSelectorCacheImportEntry } from './browser-profile-client-
|
|
6
|
-
export { m as ActionFailureBlocker, n as ActionFailureClassificationSource, o as ActionFailureDetails, p as BrowserProfileArchiveFormat, q as BrowserProfileClient, c as BrowserProfileCreateRequest, d as BrowserProfileDescriptor, a as BrowserProfileListRequest, b as BrowserProfileListResponse, r as BrowserProfileProxyPolicy, B as BrowserProfileStatus, s as CloudActionFailure, t as CloudActionRequest, u as CloudActionResponse, v as CloudActionSuccess, w as CloudBrowserProfileLaunchPreference, x as CloudFingerprintMode, y as CloudSessionContractVersion, z as CloudSessionLaunchConfig, D as CloudSessionSourceType, E as CloudSessionSummary, F as cloudSessionContractVersion } from './browser-profile-client-
|
|
3
|
+
import { a as OpensteerConfig, L as LaunchOptions, b as OpensteerLocalProfileDescriptor, c as OpensteerRealBrowserOptions, G as GotoOptions, S as SnapshotOptions, d as StateResult, e as ScreenshotOptions, f as ClickOptions, A as ActionResult, H as HoverOptions, I as InputOptions, g as SelectOptions, h as ScrollOptions, T as TabInfo, C as CookieParam, B as BaseActionOptions, i as BoundingBox, F as FileUploadOptions, E as ExtractOptions, j as ExtractFromPlanOptions, k as ExtractionRunResult, l as OpensteerCursorState, m as OpensteerAgentConfig, n as OpensteerAgentInstance, o as ElementPath, p as SnapshotMode, q as AiResolveCallback, r as AiExtractCallback, O as OpensteerAuthScheme, s as OpensteerAgentProvider, t as OpensteerAgentAction, u as OpensteerAgentResult, v as OpensteerAgentUsage, w as OpensteerCursorStyle, x as OpensteerCursorConfig, y as OpensteerAgentExecuteOptions, z as OpensteerBrowserConfig } from './types-Cr10igF3.js';
|
|
4
|
+
export { D as ActionWaitOptions, J as AiExtractArgs, K as AiExtractResult, M as AiResolveArgs, N as AiResolveCallbackResult, P as AiResolveResult, Q as AttributeMatchClause, R as ContextHop, U as DomPath, V as ExtractSchema, W as ExtractSchemaField, X as ExtractSchemaValue, Y as ExtractionFieldPlan, Z as ExtractionPlan, _ as MatchClause, $ as MatchOperator, a0 as OpensteerAgentMode, a1 as OpensteerAgentModelConfig, a2 as OpensteerCloudAnnouncePolicy, a3 as OpensteerCloudBrowserProfileOptions, a4 as OpensteerCloudConfig, a5 as OpensteerCloudOptions, a6 as OpensteerCursorColor, a7 as OpensteerCursorProfile, a8 as OpensteerLocalBrowserMode, a9 as OpensteerStorageConfig, aa as PathNode, ab as PathNodePosition, ac as PositionMatchClause } from './types-Cr10igF3.js';
|
|
5
|
+
import { A as ActionFailure, e as ActionFailureCode, C as CloudErrorCode, f as CloudActionFailureDetails, g as CloudSessionCreateRequest, h as CloudSessionCreateResponse, i as CloudSelectorCacheImportRequest, j as CloudSelectorCacheImportResponse, k as CloudActionMethod, l as CloudSelectorCacheImportEntry } from './browser-profile-client-AGTsLQxT.js';
|
|
6
|
+
export { m as ActionFailureBlocker, n as ActionFailureClassificationSource, o as ActionFailureDetails, p as BrowserProfileArchiveFormat, q as BrowserProfileClient, c as BrowserProfileCreateRequest, d as BrowserProfileDescriptor, a as BrowserProfileListRequest, b as BrowserProfileListResponse, r as BrowserProfileProxyPolicy, B as BrowserProfileStatus, s as CloudActionFailure, t as CloudActionRequest, u as CloudActionResponse, v as CloudActionSuccess, w as CloudBrowserProfileLaunchPreference, x as CloudFingerprintMode, y as CloudSessionContractVersion, z as CloudSessionLaunchConfig, D as CloudSessionSourceType, E as CloudSessionSummary, F as cloudSessionContractVersion } from './browser-profile-client-AGTsLQxT.js';
|
|
7
7
|
|
|
8
8
|
interface RegistryEntry {
|
|
9
9
|
file: string;
|
|
@@ -647,4 +647,47 @@ declare class SvgCursorRenderer implements CursorRenderer {
|
|
|
647
647
|
private handleError;
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
-
|
|
650
|
+
interface BrowserSession {
|
|
651
|
+
browser: Browser;
|
|
652
|
+
context: BrowserContext;
|
|
653
|
+
page: Page;
|
|
654
|
+
/** True when connected to an external browser. close() disconnects without killing it. */
|
|
655
|
+
isExternal: boolean;
|
|
656
|
+
}
|
|
657
|
+
declare class BrowserPool {
|
|
658
|
+
private browser;
|
|
659
|
+
private cdpProxy;
|
|
660
|
+
private launchedProcess;
|
|
661
|
+
private managedUserDataDir;
|
|
662
|
+
private persistentProfile;
|
|
663
|
+
private readonly defaults;
|
|
664
|
+
constructor(defaults?: OpensteerBrowserConfig);
|
|
665
|
+
launch(options?: LaunchOptions): Promise<BrowserSession>;
|
|
666
|
+
close(): Promise<void>;
|
|
667
|
+
private connectToRunning;
|
|
668
|
+
private launchOwnedRealBrowser;
|
|
669
|
+
private launchSandbox;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
interface ChromePaths {
|
|
673
|
+
executable: string | null;
|
|
674
|
+
defaultUserDataDir: string;
|
|
675
|
+
}
|
|
676
|
+
interface LocalChromeProfileDescriptor {
|
|
677
|
+
directory: string;
|
|
678
|
+
name: string;
|
|
679
|
+
}
|
|
680
|
+
/** Resolve platform-specific Chrome paths. */
|
|
681
|
+
declare function detectChromePaths(): ChromePaths;
|
|
682
|
+
/** Expand ~ to home directory in a path. */
|
|
683
|
+
declare function expandHome(p: string): string;
|
|
684
|
+
declare function listLocalChromeProfiles(userDataDir?: string): LocalChromeProfileDescriptor[];
|
|
685
|
+
|
|
686
|
+
interface PersistentProfileResult {
|
|
687
|
+
created: boolean;
|
|
688
|
+
userDataDir: string;
|
|
689
|
+
}
|
|
690
|
+
declare function getOrCreatePersistentProfile(sourceUserDataDir: string, profileDirectory: string, profilesRootDir?: string): Promise<PersistentProfileResult>;
|
|
691
|
+
declare function clearPersistentProfileSingletons(userDataDir: string): Promise<void>;
|
|
692
|
+
|
|
693
|
+
export { type ActionExecutionResult, ActionFailure, ActionFailureCode, ActionResult, ActionWsClient, AiExtractCallback, type AiModelConfig, AiResolveCallback, type ArrayExtractedRow, type ArrayRowMetadata, type ArraySelector, BaseActionOptions, BoundingBox, BrowserPool, type BrowserSession, CdpOverlayCursorRenderer, ClickOptions, CloudActionFailureDetails, CloudActionMethod, CloudCdpClient, type CloudCdpConnectArgs, type CloudCdpConnection, CloudErrorCode, CloudSelectorCacheImportEntry, CloudSelectorCacheImportRequest, CloudSelectorCacheImportResponse, CloudSessionClient, CloudSessionCreateRequest, CloudSessionCreateResponse, CookieParam, type CounterRequest, CounterResolutionError, type CounterResolutionErrorCode, type CursorCapabilityReason, CursorController, type CursorIntent, type CursorMotionPlan, type CursorPoint, type CursorRenderer, type CursorStatus, ElementPath, ElementPathError, type ElementPathErrorCode, ExtractFromPlanOptions, ExtractOptions, ExtractionRunResult, type FieldSelector, FileUploadOptions, GotoOptions, HoverOptions, InputOptions, LaunchOptions, type LocalChromeProfileDescriptor, LocalSelectorStorage, type MarkInteractivityOptions, OPENSTEER_HIDDEN_ATTR, OPENSTEER_INTERACTIVE_ATTR, OPENSTEER_SCROLLABLE_ATTR, OS_BOUNDARY_ATTR, OS_IFRAME_BOUNDARY_TAG, OS_NODE_ID_ATTR, OS_SHADOW_BOUNDARY_TAG, OS_UNAVAILABLE_ATTR, Opensteer, OpensteerActionError, OpensteerAgentAction, OpensteerAgentActionError, OpensteerAgentApiError, OpensteerAgentBusyError, OpensteerAgentConfig, OpensteerAgentConfigError, OpensteerAgentError, OpensteerAgentExecuteOptions, OpensteerAgentExecutionError, OpensteerAgentInstance, OpensteerAgentProvider, OpensteerAgentProviderError, OpensteerAgentResult, OpensteerAgentUsage, OpensteerAuthScheme, OpensteerBrowserConfig, OpensteerCloudError, OpensteerConfig, OpensteerCuaAgentHandler, OpensteerCursorConfig, OpensteerCursorState, OpensteerCursorStyle, OpensteerLocalProfileDescriptor, OpensteerRealBrowserOptions, type PersistentProfileResult, type PreparedSnapshot, type RegistryEntry, type ResolvedElementPath, ScreenshotOptions, ScrollOptions, SelectOptions, type SelectorFile, type SelectorRegistry, type SerializeOptions, type SerializedNodeMeta, type SerializedPageHTML, SnapshotMode, SnapshotOptions, StateResult, SvgCursorRenderer, TabInfo, buildArrayFieldPathCandidates, buildElementPathFromHandle, buildElementPathFromSelector, buildPathSelectorHint, cleanForAction, cleanForClickable, cleanForExtraction, cleanForFull, cleanForScrollable, clearCookies, clearPersistentProfileSingletons, cloneElementPath, closeTab, cloudNotLaunchedError, cloudUnsupportedMethodError, collectLocalSelectorCacheEntries, countArrayItemsWithPath, createCuaClient, createEmptyRegistry, createExtractCallback, createResolveCallback, createTab, detectChromePaths, expandHome, exportCookies, extractArrayRowsWithPaths, extractArrayWithPaths, extractWithPaths, getCookies, getElementAttributes, getElementBoundingBox, getElementText, getElementValue, getModelProvider, getOrCreatePersistentProfile, getPageHtml, getPageTitle, importCookies, listLocalChromeProfiles, listTabs, markInteractiveElements, normalizeNamespace, performClick, performFileUpload, performHover, performInput, performScroll, performSelect, planSnappyCursorMotion, prepareSnapshot, pressKey, queryAllByElementPath, resolveAgentConfig, resolveCounterElement, resolveCountersBatch, resolveElementPath, resolveNamespaceDir, sanitizeElementPath, serializePageHTML, setCookie, switchTab, typeText, waitForVisualStability };
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-6B6LOYU3.js";
|
|
4
4
|
import {
|
|
5
5
|
ActionWsClient,
|
|
6
|
+
BrowserPool,
|
|
6
7
|
CounterResolutionError,
|
|
7
8
|
CursorController,
|
|
8
9
|
ElementPathError,
|
|
@@ -36,6 +37,7 @@ import {
|
|
|
36
37
|
cleanForFull,
|
|
37
38
|
cleanForScrollable,
|
|
38
39
|
clearCookies,
|
|
40
|
+
clearPersistentProfileSingletons,
|
|
39
41
|
cloneElementPath,
|
|
40
42
|
closeTab,
|
|
41
43
|
cloudSessionContractVersion,
|
|
@@ -53,6 +55,7 @@ import {
|
|
|
53
55
|
getElementBoundingBox,
|
|
54
56
|
getElementText,
|
|
55
57
|
getElementValue,
|
|
58
|
+
getOrCreatePersistentProfile,
|
|
56
59
|
getPageHtml,
|
|
57
60
|
getPageTitle,
|
|
58
61
|
importCookies,
|
|
@@ -78,7 +81,7 @@ import {
|
|
|
78
81
|
switchTab,
|
|
79
82
|
typeText,
|
|
80
83
|
waitForVisualStability
|
|
81
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-ACRSRDRN.js";
|
|
82
85
|
import {
|
|
83
86
|
CloudCdpClient,
|
|
84
87
|
CloudSessionClient,
|
|
@@ -88,7 +91,11 @@ import {
|
|
|
88
91
|
normalizeNamespace,
|
|
89
92
|
resolveNamespaceDir
|
|
90
93
|
} from "./chunk-KPPOTU3D.js";
|
|
91
|
-
import
|
|
94
|
+
import {
|
|
95
|
+
detectChromePaths,
|
|
96
|
+
expandHome,
|
|
97
|
+
listLocalChromeProfiles
|
|
98
|
+
} from "./chunk-K5CL76MG.js";
|
|
92
99
|
import {
|
|
93
100
|
createResolveCallback
|
|
94
101
|
} from "./chunk-DN3GI5CH.js";
|
|
@@ -283,6 +290,7 @@ function sleep(ms) {
|
|
|
283
290
|
}
|
|
284
291
|
export {
|
|
285
292
|
ActionWsClient,
|
|
293
|
+
BrowserPool,
|
|
286
294
|
BrowserProfileClient,
|
|
287
295
|
CdpOverlayCursorRenderer,
|
|
288
296
|
CloudCdpClient,
|
|
@@ -321,6 +329,7 @@ export {
|
|
|
321
329
|
cleanForFull,
|
|
322
330
|
cleanForScrollable,
|
|
323
331
|
clearCookies,
|
|
332
|
+
clearPersistentProfileSingletons,
|
|
324
333
|
cloneElementPath,
|
|
325
334
|
closeTab,
|
|
326
335
|
cloudNotLaunchedError,
|
|
@@ -333,6 +342,8 @@ export {
|
|
|
333
342
|
createExtractCallback,
|
|
334
343
|
createResolveCallback,
|
|
335
344
|
createTab,
|
|
345
|
+
detectChromePaths,
|
|
346
|
+
expandHome,
|
|
336
347
|
exportCookies,
|
|
337
348
|
extractArrayRowsWithPaths,
|
|
338
349
|
extractArrayWithPaths,
|
|
@@ -343,9 +354,11 @@ export {
|
|
|
343
354
|
getElementText,
|
|
344
355
|
getElementValue,
|
|
345
356
|
getModelProvider,
|
|
357
|
+
getOrCreatePersistentProfile,
|
|
346
358
|
getPageHtml,
|
|
347
359
|
getPageTitle,
|
|
348
360
|
importCookies,
|
|
361
|
+
listLocalChromeProfiles,
|
|
349
362
|
listTabs,
|
|
350
363
|
markInteractiveElements,
|
|
351
364
|
normalizeNamespace,
|
|
@@ -342,4 +342,4 @@ interface OpensteerAgentInstance {
|
|
|
342
342
|
execute(instructionOrOptions: string | OpensteerAgentExecuteOptions): Promise<OpensteerAgentResult>;
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
-
export type {
|
|
345
|
+
export type { MatchOperator as $, ActionResult as A, BaseActionOptions as B, CookieParam as C, ActionWaitOptions as D, ExtractOptions as E, FileUploadOptions as F, GotoOptions as G, HoverOptions as H, InputOptions as I, AiExtractArgs as J, AiExtractResult as K, LaunchOptions as L, AiResolveArgs as M, AiResolveCallbackResult as N, OpensteerAuthScheme as O, AiResolveResult as P, AttributeMatchClause as Q, ContextHop as R, SnapshotOptions as S, TabInfo as T, DomPath as U, ExtractSchema as V, ExtractSchemaField as W, ExtractSchemaValue as X, ExtractionFieldPlan as Y, ExtractionPlan as Z, MatchClause as _, OpensteerConfig as a, OpensteerAgentMode as a0, OpensteerAgentModelConfig as a1, OpensteerCloudAnnouncePolicy as a2, OpensteerCloudBrowserProfileOptions as a3, OpensteerCloudConfig as a4, OpensteerCloudOptions as a5, OpensteerCursorColor as a6, OpensteerCursorProfile as a7, OpensteerLocalBrowserMode as a8, OpensteerStorageConfig as a9, PathNode as aa, PathNodePosition as ab, PositionMatchClause as ac, OpensteerLocalProfileDescriptor as b, OpensteerRealBrowserOptions as c, StateResult as d, ScreenshotOptions as e, ClickOptions as f, SelectOptions as g, ScrollOptions as h, BoundingBox as i, ExtractFromPlanOptions as j, ExtractionRunResult as k, OpensteerCursorState as l, OpensteerAgentConfig as m, OpensteerAgentInstance as n, ElementPath as o, SnapshotMode as p, AiResolveCallback as q, AiExtractCallback as r, OpensteerAgentProvider as s, OpensteerAgentAction as t, OpensteerAgentResult as u, OpensteerAgentUsage as v, OpensteerCursorStyle as w, OpensteerCursorConfig as x, OpensteerAgentExecuteOptions as y, OpensteerBrowserConfig as z };
|
|
@@ -342,4 +342,4 @@ interface OpensteerAgentInstance {
|
|
|
342
342
|
execute(instructionOrOptions: string | OpensteerAgentExecuteOptions): Promise<OpensteerAgentResult>;
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
-
export type {
|
|
345
|
+
export type { MatchOperator as $, ActionResult as A, BaseActionOptions as B, CookieParam as C, ActionWaitOptions as D, ExtractOptions as E, FileUploadOptions as F, GotoOptions as G, HoverOptions as H, InputOptions as I, AiExtractArgs as J, AiExtractResult as K, LaunchOptions as L, AiResolveArgs as M, AiResolveCallbackResult as N, OpensteerAuthScheme as O, AiResolveResult as P, AttributeMatchClause as Q, ContextHop as R, SnapshotOptions as S, TabInfo as T, DomPath as U, ExtractSchema as V, ExtractSchemaField as W, ExtractSchemaValue as X, ExtractionFieldPlan as Y, ExtractionPlan as Z, MatchClause as _, OpensteerConfig as a, OpensteerAgentMode as a0, OpensteerAgentModelConfig as a1, OpensteerCloudAnnouncePolicy as a2, OpensteerCloudBrowserProfileOptions as a3, OpensteerCloudConfig as a4, OpensteerCloudOptions as a5, OpensteerCursorColor as a6, OpensteerCursorProfile as a7, OpensteerLocalBrowserMode as a8, OpensteerStorageConfig as a9, PathNode as aa, PathNodePosition as ab, PositionMatchClause as ac, OpensteerLocalProfileDescriptor as b, OpensteerRealBrowserOptions as c, StateResult as d, ScreenshotOptions as e, ClickOptions as f, SelectOptions as g, ScrollOptions as h, BoundingBox as i, ExtractFromPlanOptions as j, ExtractionRunResult as k, OpensteerCursorState as l, OpensteerAgentConfig as m, OpensteerAgentInstance as n, ElementPath as o, SnapshotMode as p, AiResolveCallback as q, AiExtractCallback as r, OpensteerAgentProvider as s, OpensteerAgentAction as t, OpensteerAgentResult as u, OpensteerAgentUsage as v, OpensteerCursorStyle as w, OpensteerCursorConfig as x, OpensteerAgentExecuteOptions as y, OpensteerBrowserConfig as z };
|
package/package.json
CHANGED