opensteer 0.4.13 → 0.5.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 +5 -0
- package/bin/opensteer.mjs +42 -6
- package/dist/{chunk-QTGJO7RC.js → chunk-QHZFY3ZK.js} +9 -0
- package/dist/{chunk-V4OOJO4S.js → chunk-SPHS6YWD.js} +1 -1
- package/dist/{chunk-JSH3VLMH.js → chunk-SXPIGCSD.js} +1143 -939
- package/dist/{chunk-UIUDSWZV.js → chunk-YIQDOALV.js} +1 -1
- package/dist/cli/server.cjs +1454 -1176
- package/dist/cli/server.js +90 -24
- package/dist/{extractor-I6TJPTXV.js → extractor-CZFCFUME.js} +2 -2
- package/dist/index.cjs +1372 -1161
- package/dist/index.d.cts +24 -31
- package/dist/index.d.ts +24 -31
- package/dist/index.js +4 -6
- package/dist/{resolver-HVZJQZ32.js → resolver-ZREUOOTV.js} +2 -2
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -341,7 +341,10 @@ interface SelectorFile<T = unknown> {
|
|
|
341
341
|
declare class LocalSelectorStorage {
|
|
342
342
|
private rootDir;
|
|
343
343
|
private namespace;
|
|
344
|
-
|
|
344
|
+
private readonly debug;
|
|
345
|
+
constructor(rootDir: string, namespace: string, options?: {
|
|
346
|
+
debug?: boolean;
|
|
347
|
+
});
|
|
345
348
|
getRootDir(): string;
|
|
346
349
|
getNamespace(): string;
|
|
347
350
|
getSelectorFileName(id: string): string;
|
|
@@ -372,6 +375,7 @@ declare class Opensteer {
|
|
|
372
375
|
private snapshotCache;
|
|
373
376
|
private agentExecutionInFlight;
|
|
374
377
|
constructor(config?: OpensteerConfig);
|
|
378
|
+
private logDebugError;
|
|
375
379
|
private createLazyResolveCallback;
|
|
376
380
|
private createLazyExtractCallback;
|
|
377
381
|
private invokeCloudActionAndResetCache;
|
|
@@ -433,14 +437,14 @@ declare class Opensteer {
|
|
|
433
437
|
private resolvePath;
|
|
434
438
|
private resolvePathWithAi;
|
|
435
439
|
private buildPathFromElement;
|
|
436
|
-
private tryBuildPathFromCounter;
|
|
437
440
|
private resolveCounterHandle;
|
|
438
441
|
private resolveCounterHandleForAction;
|
|
439
442
|
private buildPathFromResolvedHandle;
|
|
443
|
+
private tryBuildPathFromResolvedHandle;
|
|
440
444
|
private withIndexedIframeContext;
|
|
445
|
+
private withHandleIframeContext;
|
|
441
446
|
private readPathFromCounterIndex;
|
|
442
447
|
private buildPathFromSelector;
|
|
443
|
-
private ensureSnapshotWithCounters;
|
|
444
448
|
private persistPath;
|
|
445
449
|
private persistExtractPaths;
|
|
446
450
|
private extractPersistedPayload;
|
|
@@ -613,32 +617,7 @@ declare function cleanForClickable(html: string): string;
|
|
|
613
617
|
declare function cleanForScrollable(html: string): string;
|
|
614
618
|
declare function cleanForAction(html: string): string;
|
|
615
619
|
|
|
616
|
-
interface CounterBinding {
|
|
617
|
-
sessionId: string;
|
|
618
|
-
frameToken: string;
|
|
619
|
-
nodeId: string;
|
|
620
|
-
instanceToken: string;
|
|
621
|
-
}
|
|
622
|
-
interface CounterRequest {
|
|
623
|
-
key: string;
|
|
624
|
-
counter: number;
|
|
625
|
-
attribute?: string;
|
|
626
|
-
}
|
|
627
|
-
interface CounterSnapshotLike {
|
|
628
|
-
snapshotSessionId: string;
|
|
629
|
-
counterBindings: Map<number, CounterBinding> | null;
|
|
630
|
-
}
|
|
631
|
-
type CounterResolutionErrorCode = 'ERR_COUNTER_NOT_FOUND' | 'ERR_COUNTER_FRAME_UNAVAILABLE' | 'ERR_COUNTER_STALE_OR_NOT_FOUND' | 'ERR_COUNTER_AMBIGUOUS';
|
|
632
|
-
declare class CounterResolutionError extends Error {
|
|
633
|
-
readonly code: CounterResolutionErrorCode;
|
|
634
|
-
constructor(code: CounterResolutionErrorCode, message: string);
|
|
635
|
-
}
|
|
636
|
-
declare function ensureLiveCounters(page: Page, nodeMeta: Map<string, SerializedNodeMeta>, nodeIds: string[]): Promise<Map<string, number>>;
|
|
637
|
-
declare function resolveCounterElement(page: Page, snapshot: CounterSnapshotLike, counter: number): Promise<ElementHandle<Element>>;
|
|
638
|
-
declare function resolveCountersBatch(page: Page, snapshot: CounterSnapshotLike, requests: CounterRequest[]): Promise<Record<string, unknown>>;
|
|
639
|
-
|
|
640
620
|
interface PreparedSnapshot {
|
|
641
|
-
snapshotSessionId: string;
|
|
642
621
|
mode: SnapshotMode;
|
|
643
622
|
url: string | null;
|
|
644
623
|
rawHtml: string;
|
|
@@ -646,10 +625,22 @@ interface PreparedSnapshot {
|
|
|
646
625
|
reducedHtml: string;
|
|
647
626
|
cleanedHtml: string;
|
|
648
627
|
counterIndex: Map<number, ElementPath> | null;
|
|
649
|
-
counterBindings: Map<number, CounterBinding> | null;
|
|
650
628
|
}
|
|
651
629
|
declare function prepareSnapshot(page: Page, options?: SnapshotOptions): Promise<PreparedSnapshot>;
|
|
652
630
|
|
|
631
|
+
interface CounterRequest {
|
|
632
|
+
key: string;
|
|
633
|
+
counter: number;
|
|
634
|
+
attribute?: string;
|
|
635
|
+
}
|
|
636
|
+
type CounterResolutionErrorCode = 'ERR_COUNTER_NOT_FOUND' | 'ERR_COUNTER_AMBIGUOUS';
|
|
637
|
+
declare class CounterResolutionError extends Error {
|
|
638
|
+
readonly code: CounterResolutionErrorCode;
|
|
639
|
+
constructor(code: CounterResolutionErrorCode, message: string);
|
|
640
|
+
}
|
|
641
|
+
declare function resolveCounterElement(page: Page, counter: number): Promise<ElementHandle<Element>>;
|
|
642
|
+
declare function resolveCountersBatch(page: Page, requests: CounterRequest[]): Promise<Record<string, unknown>>;
|
|
643
|
+
|
|
653
644
|
declare function normalizeNamespace(input?: string): string;
|
|
654
645
|
declare function resolveNamespaceDir(rootDir: string, namespace: string): string;
|
|
655
646
|
|
|
@@ -801,7 +792,9 @@ declare class CloudCdpClient {
|
|
|
801
792
|
connect(args: CloudCdpConnectArgs): Promise<CloudCdpConnection>;
|
|
802
793
|
}
|
|
803
794
|
|
|
804
|
-
declare function collectLocalSelectorCacheEntries(storage: LocalSelectorStorage
|
|
795
|
+
declare function collectLocalSelectorCacheEntries(storage: LocalSelectorStorage, options?: {
|
|
796
|
+
debug?: boolean;
|
|
797
|
+
}): CloudSelectorCacheImportEntry[];
|
|
805
798
|
|
|
806
799
|
declare class OpensteerAgentError extends Error {
|
|
807
800
|
constructor(message: string, cause?: unknown);
|
|
@@ -897,4 +890,4 @@ declare class OpensteerCuaAgentHandler {
|
|
|
897
890
|
private maybeRenderCursor;
|
|
898
891
|
}
|
|
899
892
|
|
|
900
|
-
export { type ActionExecutionResult, type ActionFailure, type ActionFailureBlocker, type ActionFailureClassificationSource, type ActionFailureCode, type ActionFailureDetails, type ActionResult, type ActionWaitOptions, ActionWsClient, type AiExtractArgs, type AiExtractCallback, type AiExtractResult, type AiModelConfig, type AiResolveArgs, type AiResolveCallback, type AiResolveCallbackResult, type AiResolveResult, type ArrayExtractedRow, type ArrayRowMetadata, type ArraySelector, type AttributeMatchClause, type BaseActionOptions, type BoundingBox, type ClickOptions, type CloudActionFailure, type CloudActionFailureDetails, type CloudActionMethod, type CloudActionRequest, type CloudActionResponse, type CloudActionSuccess, CloudCdpClient, type CloudCdpConnectArgs, type CloudCdpConnection, type CloudErrorCode, type CloudSelectorCacheImportEntry, type CloudSelectorCacheImportRequest, type CloudSelectorCacheImportResponse, CloudSessionClient, type CloudSessionContractVersion, type CloudSessionCreateRequest, type CloudSessionCreateResponse, type CloudSessionSourceType, type CloudSessionSummary, type ContextHop, type CookieParam, type
|
|
893
|
+
export { type ActionExecutionResult, type ActionFailure, type ActionFailureBlocker, type ActionFailureClassificationSource, type ActionFailureCode, type ActionFailureDetails, type ActionResult, type ActionWaitOptions, ActionWsClient, type AiExtractArgs, type AiExtractCallback, type AiExtractResult, type AiModelConfig, type AiResolveArgs, type AiResolveCallback, type AiResolveCallbackResult, type AiResolveResult, type ArrayExtractedRow, type ArrayRowMetadata, type ArraySelector, type AttributeMatchClause, type BaseActionOptions, type BoundingBox, type ClickOptions, type CloudActionFailure, type CloudActionFailureDetails, type CloudActionMethod, type CloudActionRequest, type CloudActionResponse, type CloudActionSuccess, CloudCdpClient, type CloudCdpConnectArgs, type CloudCdpConnection, type CloudErrorCode, type CloudSelectorCacheImportEntry, type CloudSelectorCacheImportRequest, type CloudSelectorCacheImportResponse, CloudSessionClient, type CloudSessionContractVersion, type CloudSessionCreateRequest, type CloudSessionCreateResponse, type CloudSessionSourceType, type CloudSessionSummary, type ContextHop, type CookieParam, type CounterRequest, CounterResolutionError, type CounterResolutionErrorCode, type DomPath, type ElementPath, ElementPathError, type ElementPathErrorCode, type ExtractFromPlanOptions, type ExtractOptions, type ExtractSchema, type ExtractSchemaField, type ExtractSchemaValue, type ExtractionFieldPlan, type ExtractionPlan, type ExtractionRunResult, type FieldSelector, type FileUploadOptions, type GotoOptions, type HoverOptions, type InputOptions, type LaunchOptions, LocalSelectorStorage, type MarkInteractivityOptions, type MatchClause, type MatchOperator, 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, type OpensteerAgentAction, OpensteerAgentActionError, OpensteerAgentApiError, OpensteerAgentBusyError, type OpensteerAgentConfig, OpensteerAgentConfigError, OpensteerAgentError, type OpensteerAgentExecuteOptions, OpensteerAgentExecutionError, type OpensteerAgentInstance, type OpensteerAgentMode, type OpensteerAgentModelConfig, type OpensteerAgentProvider, OpensteerAgentProviderError, type OpensteerAgentResult, type OpensteerAgentUsage, type OpensteerAuthScheme, type OpensteerBrowserConfig, type OpensteerCloudAnnouncePolicy, type OpensteerCloudConfig, OpensteerCloudError, type OpensteerCloudOptions, type OpensteerConfig, OpensteerCuaAgentHandler, type OpensteerStorageConfig, type PathNode, type PathNodePosition, type PositionMatchClause, type PreparedSnapshot, type RegistryEntry, type ResolvedElementPath, type ScreenshotOptions, type ScrollOptions, type SelectOptions, type SelectorFile, type SelectorRegistry, type SerializeOptions, type SerializedNodeMeta, type SerializedPageHTML, type SnapshotMode, type SnapshotOptions, type StateResult, type TabInfo, buildElementPathFromHandle, buildElementPathFromSelector, buildPathSelectorHint, cleanForAction, cleanForClickable, cleanForExtraction, cleanForFull, cleanForScrollable, clearCookies, cloneElementPath, closeTab, cloudNotLaunchedError, cloudSessionContractVersion, cloudUnsupportedMethodError, collectLocalSelectorCacheEntries, countArrayItemsWithPath, createCuaClient, createEmptyRegistry, createExtractCallback, createResolveCallback, createTab, exportCookies, extractArrayRowsWithPaths, extractArrayWithPaths, extractWithPaths, getCookies, getElementAttributes, getElementBoundingBox, getElementText, getElementValue, getModelProvider, getPageHtml, getPageTitle, importCookies, listTabs, markInteractiveElements, normalizeNamespace, performClick, performFileUpload, performHover, performInput, performScroll, performSelect, prepareSnapshot, pressKey, resolveAgentConfig, resolveCounterElement, resolveCountersBatch, resolveElementPath, resolveNamespaceDir, sanitizeElementPath, serializePageHTML, setCookie, switchTab, typeText, waitForVisualStability };
|
package/dist/index.d.ts
CHANGED
|
@@ -341,7 +341,10 @@ interface SelectorFile<T = unknown> {
|
|
|
341
341
|
declare class LocalSelectorStorage {
|
|
342
342
|
private rootDir;
|
|
343
343
|
private namespace;
|
|
344
|
-
|
|
344
|
+
private readonly debug;
|
|
345
|
+
constructor(rootDir: string, namespace: string, options?: {
|
|
346
|
+
debug?: boolean;
|
|
347
|
+
});
|
|
345
348
|
getRootDir(): string;
|
|
346
349
|
getNamespace(): string;
|
|
347
350
|
getSelectorFileName(id: string): string;
|
|
@@ -372,6 +375,7 @@ declare class Opensteer {
|
|
|
372
375
|
private snapshotCache;
|
|
373
376
|
private agentExecutionInFlight;
|
|
374
377
|
constructor(config?: OpensteerConfig);
|
|
378
|
+
private logDebugError;
|
|
375
379
|
private createLazyResolveCallback;
|
|
376
380
|
private createLazyExtractCallback;
|
|
377
381
|
private invokeCloudActionAndResetCache;
|
|
@@ -433,14 +437,14 @@ declare class Opensteer {
|
|
|
433
437
|
private resolvePath;
|
|
434
438
|
private resolvePathWithAi;
|
|
435
439
|
private buildPathFromElement;
|
|
436
|
-
private tryBuildPathFromCounter;
|
|
437
440
|
private resolveCounterHandle;
|
|
438
441
|
private resolveCounterHandleForAction;
|
|
439
442
|
private buildPathFromResolvedHandle;
|
|
443
|
+
private tryBuildPathFromResolvedHandle;
|
|
440
444
|
private withIndexedIframeContext;
|
|
445
|
+
private withHandleIframeContext;
|
|
441
446
|
private readPathFromCounterIndex;
|
|
442
447
|
private buildPathFromSelector;
|
|
443
|
-
private ensureSnapshotWithCounters;
|
|
444
448
|
private persistPath;
|
|
445
449
|
private persistExtractPaths;
|
|
446
450
|
private extractPersistedPayload;
|
|
@@ -613,32 +617,7 @@ declare function cleanForClickable(html: string): string;
|
|
|
613
617
|
declare function cleanForScrollable(html: string): string;
|
|
614
618
|
declare function cleanForAction(html: string): string;
|
|
615
619
|
|
|
616
|
-
interface CounterBinding {
|
|
617
|
-
sessionId: string;
|
|
618
|
-
frameToken: string;
|
|
619
|
-
nodeId: string;
|
|
620
|
-
instanceToken: string;
|
|
621
|
-
}
|
|
622
|
-
interface CounterRequest {
|
|
623
|
-
key: string;
|
|
624
|
-
counter: number;
|
|
625
|
-
attribute?: string;
|
|
626
|
-
}
|
|
627
|
-
interface CounterSnapshotLike {
|
|
628
|
-
snapshotSessionId: string;
|
|
629
|
-
counterBindings: Map<number, CounterBinding> | null;
|
|
630
|
-
}
|
|
631
|
-
type CounterResolutionErrorCode = 'ERR_COUNTER_NOT_FOUND' | 'ERR_COUNTER_FRAME_UNAVAILABLE' | 'ERR_COUNTER_STALE_OR_NOT_FOUND' | 'ERR_COUNTER_AMBIGUOUS';
|
|
632
|
-
declare class CounterResolutionError extends Error {
|
|
633
|
-
readonly code: CounterResolutionErrorCode;
|
|
634
|
-
constructor(code: CounterResolutionErrorCode, message: string);
|
|
635
|
-
}
|
|
636
|
-
declare function ensureLiveCounters(page: Page, nodeMeta: Map<string, SerializedNodeMeta>, nodeIds: string[]): Promise<Map<string, number>>;
|
|
637
|
-
declare function resolveCounterElement(page: Page, snapshot: CounterSnapshotLike, counter: number): Promise<ElementHandle<Element>>;
|
|
638
|
-
declare function resolveCountersBatch(page: Page, snapshot: CounterSnapshotLike, requests: CounterRequest[]): Promise<Record<string, unknown>>;
|
|
639
|
-
|
|
640
620
|
interface PreparedSnapshot {
|
|
641
|
-
snapshotSessionId: string;
|
|
642
621
|
mode: SnapshotMode;
|
|
643
622
|
url: string | null;
|
|
644
623
|
rawHtml: string;
|
|
@@ -646,10 +625,22 @@ interface PreparedSnapshot {
|
|
|
646
625
|
reducedHtml: string;
|
|
647
626
|
cleanedHtml: string;
|
|
648
627
|
counterIndex: Map<number, ElementPath> | null;
|
|
649
|
-
counterBindings: Map<number, CounterBinding> | null;
|
|
650
628
|
}
|
|
651
629
|
declare function prepareSnapshot(page: Page, options?: SnapshotOptions): Promise<PreparedSnapshot>;
|
|
652
630
|
|
|
631
|
+
interface CounterRequest {
|
|
632
|
+
key: string;
|
|
633
|
+
counter: number;
|
|
634
|
+
attribute?: string;
|
|
635
|
+
}
|
|
636
|
+
type CounterResolutionErrorCode = 'ERR_COUNTER_NOT_FOUND' | 'ERR_COUNTER_AMBIGUOUS';
|
|
637
|
+
declare class CounterResolutionError extends Error {
|
|
638
|
+
readonly code: CounterResolutionErrorCode;
|
|
639
|
+
constructor(code: CounterResolutionErrorCode, message: string);
|
|
640
|
+
}
|
|
641
|
+
declare function resolveCounterElement(page: Page, counter: number): Promise<ElementHandle<Element>>;
|
|
642
|
+
declare function resolveCountersBatch(page: Page, requests: CounterRequest[]): Promise<Record<string, unknown>>;
|
|
643
|
+
|
|
653
644
|
declare function normalizeNamespace(input?: string): string;
|
|
654
645
|
declare function resolveNamespaceDir(rootDir: string, namespace: string): string;
|
|
655
646
|
|
|
@@ -801,7 +792,9 @@ declare class CloudCdpClient {
|
|
|
801
792
|
connect(args: CloudCdpConnectArgs): Promise<CloudCdpConnection>;
|
|
802
793
|
}
|
|
803
794
|
|
|
804
|
-
declare function collectLocalSelectorCacheEntries(storage: LocalSelectorStorage
|
|
795
|
+
declare function collectLocalSelectorCacheEntries(storage: LocalSelectorStorage, options?: {
|
|
796
|
+
debug?: boolean;
|
|
797
|
+
}): CloudSelectorCacheImportEntry[];
|
|
805
798
|
|
|
806
799
|
declare class OpensteerAgentError extends Error {
|
|
807
800
|
constructor(message: string, cause?: unknown);
|
|
@@ -897,4 +890,4 @@ declare class OpensteerCuaAgentHandler {
|
|
|
897
890
|
private maybeRenderCursor;
|
|
898
891
|
}
|
|
899
892
|
|
|
900
|
-
export { type ActionExecutionResult, type ActionFailure, type ActionFailureBlocker, type ActionFailureClassificationSource, type ActionFailureCode, type ActionFailureDetails, type ActionResult, type ActionWaitOptions, ActionWsClient, type AiExtractArgs, type AiExtractCallback, type AiExtractResult, type AiModelConfig, type AiResolveArgs, type AiResolveCallback, type AiResolveCallbackResult, type AiResolveResult, type ArrayExtractedRow, type ArrayRowMetadata, type ArraySelector, type AttributeMatchClause, type BaseActionOptions, type BoundingBox, type ClickOptions, type CloudActionFailure, type CloudActionFailureDetails, type CloudActionMethod, type CloudActionRequest, type CloudActionResponse, type CloudActionSuccess, CloudCdpClient, type CloudCdpConnectArgs, type CloudCdpConnection, type CloudErrorCode, type CloudSelectorCacheImportEntry, type CloudSelectorCacheImportRequest, type CloudSelectorCacheImportResponse, CloudSessionClient, type CloudSessionContractVersion, type CloudSessionCreateRequest, type CloudSessionCreateResponse, type CloudSessionSourceType, type CloudSessionSummary, type ContextHop, type CookieParam, type
|
|
893
|
+
export { type ActionExecutionResult, type ActionFailure, type ActionFailureBlocker, type ActionFailureClassificationSource, type ActionFailureCode, type ActionFailureDetails, type ActionResult, type ActionWaitOptions, ActionWsClient, type AiExtractArgs, type AiExtractCallback, type AiExtractResult, type AiModelConfig, type AiResolveArgs, type AiResolveCallback, type AiResolveCallbackResult, type AiResolveResult, type ArrayExtractedRow, type ArrayRowMetadata, type ArraySelector, type AttributeMatchClause, type BaseActionOptions, type BoundingBox, type ClickOptions, type CloudActionFailure, type CloudActionFailureDetails, type CloudActionMethod, type CloudActionRequest, type CloudActionResponse, type CloudActionSuccess, CloudCdpClient, type CloudCdpConnectArgs, type CloudCdpConnection, type CloudErrorCode, type CloudSelectorCacheImportEntry, type CloudSelectorCacheImportRequest, type CloudSelectorCacheImportResponse, CloudSessionClient, type CloudSessionContractVersion, type CloudSessionCreateRequest, type CloudSessionCreateResponse, type CloudSessionSourceType, type CloudSessionSummary, type ContextHop, type CookieParam, type CounterRequest, CounterResolutionError, type CounterResolutionErrorCode, type DomPath, type ElementPath, ElementPathError, type ElementPathErrorCode, type ExtractFromPlanOptions, type ExtractOptions, type ExtractSchema, type ExtractSchemaField, type ExtractSchemaValue, type ExtractionFieldPlan, type ExtractionPlan, type ExtractionRunResult, type FieldSelector, type FileUploadOptions, type GotoOptions, type HoverOptions, type InputOptions, type LaunchOptions, LocalSelectorStorage, type MarkInteractivityOptions, type MatchClause, type MatchOperator, 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, type OpensteerAgentAction, OpensteerAgentActionError, OpensteerAgentApiError, OpensteerAgentBusyError, type OpensteerAgentConfig, OpensteerAgentConfigError, OpensteerAgentError, type OpensteerAgentExecuteOptions, OpensteerAgentExecutionError, type OpensteerAgentInstance, type OpensteerAgentMode, type OpensteerAgentModelConfig, type OpensteerAgentProvider, OpensteerAgentProviderError, type OpensteerAgentResult, type OpensteerAgentUsage, type OpensteerAuthScheme, type OpensteerBrowserConfig, type OpensteerCloudAnnouncePolicy, type OpensteerCloudConfig, OpensteerCloudError, type OpensteerCloudOptions, type OpensteerConfig, OpensteerCuaAgentHandler, type OpensteerStorageConfig, type PathNode, type PathNodePosition, type PositionMatchClause, type PreparedSnapshot, type RegistryEntry, type ResolvedElementPath, type ScreenshotOptions, type ScrollOptions, type SelectOptions, type SelectorFile, type SelectorRegistry, type SerializeOptions, type SerializedNodeMeta, type SerializedPageHTML, type SnapshotMode, type SnapshotOptions, type StateResult, type TabInfo, buildElementPathFromHandle, buildElementPathFromSelector, buildPathSelectorHint, cleanForAction, cleanForClickable, cleanForExtraction, cleanForFull, cleanForScrollable, clearCookies, cloneElementPath, closeTab, cloudNotLaunchedError, cloudSessionContractVersion, cloudUnsupportedMethodError, collectLocalSelectorCacheEntries, countArrayItemsWithPath, createCuaClient, createEmptyRegistry, createExtractCallback, createResolveCallback, createTab, exportCookies, extractArrayRowsWithPaths, extractArrayWithPaths, extractWithPaths, getCookies, getElementAttributes, getElementBoundingBox, getElementText, getElementValue, getModelProvider, getPageHtml, getPageTitle, importCookies, listTabs, markInteractiveElements, normalizeNamespace, performClick, performFileUpload, performHover, performInput, performScroll, performSelect, prepareSnapshot, pressKey, resolveAgentConfig, resolveCounterElement, resolveCountersBatch, resolveElementPath, resolveNamespaceDir, sanitizeElementPath, serializePageHTML, setCookie, switchTab, typeText, waitForVisualStability };
|
package/dist/index.js
CHANGED
|
@@ -43,7 +43,6 @@ import {
|
|
|
43
43
|
createCuaClient,
|
|
44
44
|
createEmptyRegistry,
|
|
45
45
|
createTab,
|
|
46
|
-
ensureLiveCounters,
|
|
47
46
|
exportCookies,
|
|
48
47
|
extractArrayRowsWithPaths,
|
|
49
48
|
extractArrayWithPaths,
|
|
@@ -78,17 +77,17 @@ import {
|
|
|
78
77
|
switchTab,
|
|
79
78
|
typeText,
|
|
80
79
|
waitForVisualStability
|
|
81
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-SXPIGCSD.js";
|
|
82
81
|
import {
|
|
83
82
|
createResolveCallback
|
|
84
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-SPHS6YWD.js";
|
|
85
84
|
import {
|
|
86
85
|
createExtractCallback
|
|
87
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-YIQDOALV.js";
|
|
88
87
|
import "./chunk-3H5RRIMZ.js";
|
|
89
88
|
import {
|
|
90
89
|
getModelProvider
|
|
91
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-QHZFY3ZK.js";
|
|
92
91
|
export {
|
|
93
92
|
ActionWsClient,
|
|
94
93
|
CloudCdpClient,
|
|
@@ -136,7 +135,6 @@ export {
|
|
|
136
135
|
createExtractCallback,
|
|
137
136
|
createResolveCallback,
|
|
138
137
|
createTab,
|
|
139
|
-
ensureLiveCounters,
|
|
140
138
|
exportCookies,
|
|
141
139
|
extractArrayRowsWithPaths,
|
|
142
140
|
extractArrayWithPaths,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opensteer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Open-source browser automation SDK with robust selectors and deterministic replay.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"ai": "^6.0.77",
|
|
36
36
|
"cheerio": "^1.0.0-rc.12",
|
|
37
37
|
"dotenv": "^17.2.4",
|
|
38
|
-
"openai": "^
|
|
38
|
+
"openai": "^6.25.0",
|
|
39
39
|
"playwright": "^1.50.0",
|
|
40
40
|
"ws": "^8.18.0",
|
|
41
41
|
"zod": "^4.3.6"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"test:ai": "vitest run tests/ai tests/e2e/ai-resolve.test.ts tests/e2e/ai-extract-products.test.ts",
|
|
74
74
|
"test:e2e": "vitest run tests/e2e",
|
|
75
75
|
"test:e2e:cua": "vitest run tests/e2e/cua-agent.test.ts",
|
|
76
|
-
"test:app:dev": "
|
|
76
|
+
"test:app:dev": "npm --prefix tests/test-app run dev",
|
|
77
77
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
78
78
|
}
|
|
79
79
|
}
|