@memberjunction/remote-browser-base 6.2.0-edge.0 → 6.2.0-edge.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/dist/control.d.ts CHANGED
@@ -44,6 +44,8 @@ export type RemoteBrowserControlStrategy = 'ComputerUse' | 'NativeAI';
44
44
  * @param features The backend's capability flags.
45
45
  * @returns `true` when the backend can support the mode, `false` otherwise.
46
46
  */
47
+ export declare function IsControlModeSupported(mode: RemoteBrowserControlMode, features: IRemoteBrowserProviderFeatures): boolean;
48
+ /** @deprecated Use {@link IsControlModeSupported}. */
47
49
  export declare function isControlModeSupported(mode: RemoteBrowserControlMode, features: IRemoteBrowserProviderFeatures): boolean;
48
50
  /**
49
51
  * Resolves which {@link RemoteBrowserControlStrategy} the engine should use for a backend, honoring an
@@ -65,5 +67,7 @@ export declare function isControlModeSupported(mode: RemoteBrowserControlMode, f
65
67
  * suppresses native delegation even when the backend supports it.
66
68
  * @returns The resolved control strategy.
67
69
  */
70
+ export declare function ResolveControlStrategy(features: IRemoteBrowserProviderFeatures, preferred?: RemoteBrowserControlStrategy): RemoteBrowserControlStrategy;
71
+ /** @deprecated Use {@link ResolveControlStrategy}. */
68
72
  export declare function resolveControlStrategy(features: IRemoteBrowserProviderFeatures, preferred?: RemoteBrowserControlStrategy): RemoteBrowserControlStrategy;
69
73
  //# sourceMappingURL=control.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../src/control.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAE3E;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,wBAAwB,GAAG,WAAW,GAAG,UAAU,GAAG,eAAe,CAAC;AAElF;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,4BAA4B,GAAG,aAAa,GAAG,UAAU,CAAC;AAEtE;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAClC,IAAI,EAAE,wBAAwB,EAC9B,QAAQ,EAAE,8BAA8B,GACzC,OAAO,CAYT;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,sBAAsB,CAClC,QAAQ,EAAE,8BAA8B,EACxC,SAAS,CAAC,EAAE,4BAA4B,GACzC,4BAA4B,CAK9B"}
1
+ {"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../src/control.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAE3E;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,wBAAwB,GAAG,WAAW,GAAG,UAAU,GAAG,eAAe,CAAC;AAElF;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,4BAA4B,GAAG,aAAa,GAAG,UAAU,CAAC;AAEtE;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAClC,IAAI,EAAE,wBAAwB,EAC9B,QAAQ,EAAE,8BAA8B,GACzC,OAAO,CAYT;AAED,sDAAsD;AACtD,wBAAgB,sBAAsB,CAClC,IAAI,EAAE,wBAAwB,EAC9B,QAAQ,EAAE,8BAA8B,GACzC,OAAO,CAET;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,sBAAsB,CAClC,QAAQ,EAAE,8BAA8B,EACxC,SAAS,CAAC,EAAE,4BAA4B,GACzC,4BAA4B,CAK9B;AAED,sDAAsD;AACtD,wBAAgB,sBAAsB,CAClC,QAAQ,EAAE,8BAA8B,EACxC,SAAS,CAAC,EAAE,4BAA4B,GACzC,4BAA4B,CAE9B"}
package/dist/control.js CHANGED
@@ -10,7 +10,7 @@
10
10
  * @param features The backend's capability flags.
11
11
  * @returns `true` when the backend can support the mode, `false` otherwise.
12
12
  */
13
- export function isControlModeSupported(mode, features) {
13
+ export function IsControlModeSupported(mode, features) {
14
14
  switch (mode) {
15
15
  case 'AgentOnly':
16
16
  return true;
@@ -23,6 +23,10 @@ export function isControlModeSupported(mode, features) {
23
23
  return false;
24
24
  }
25
25
  }
26
+ /** @deprecated Use {@link IsControlModeSupported}. */
27
+ export function isControlModeSupported(mode, features) {
28
+ return IsControlModeSupported(mode, features);
29
+ }
26
30
  /**
27
31
  * Resolves which {@link RemoteBrowserControlStrategy} the engine should use for a backend, honoring an
28
32
  * optional caller preference.
@@ -43,10 +47,14 @@ export function isControlModeSupported(mode, features) {
43
47
  * suppresses native delegation even when the backend supports it.
44
48
  * @returns The resolved control strategy.
45
49
  */
46
- export function resolveControlStrategy(features, preferred) {
50
+ export function ResolveControlStrategy(features, preferred) {
47
51
  if (features.NativeAIControl === true && preferred !== 'ComputerUse') {
48
52
  return 'NativeAI';
49
53
  }
50
54
  return 'ComputerUse';
51
55
  }
56
+ /** @deprecated Use {@link ResolveControlStrategy}. */
57
+ export function resolveControlStrategy(features, preferred) {
58
+ return ResolveControlStrategy(features, preferred);
59
+ }
52
60
  //# sourceMappingURL=control.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"control.js","sourceRoot":"","sources":["../src/control.ts"],"names":[],"mappings":"AAqCA;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,sBAAsB,CAClC,IAA8B,EAC9B,QAAwC;IAExC,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,WAAW;YACZ,OAAO,IAAI,CAAC;QAChB,KAAK,UAAU;YACX,OAAO,QAAQ,CAAC,QAAQ,KAAK,IAAI,CAAC;QACtC,KAAK,eAAe;YAChB,OAAO,QAAQ,CAAC,QAAQ,KAAK,IAAI,IAAI,QAAQ,CAAC,aAAa,KAAK,IAAI,CAAC;QACzE;YACI,sFAAsF;YACtF,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,sBAAsB,CAClC,QAAwC,EACxC,SAAwC;IAExC,IAAI,QAAQ,CAAC,eAAe,KAAK,IAAI,IAAI,SAAS,KAAK,aAAa,EAAE,CAAC;QACnE,OAAO,UAAU,CAAC;IACtB,CAAC;IACD,OAAO,aAAa,CAAC;AACzB,CAAC"}
1
+ {"version":3,"file":"control.js","sourceRoot":"","sources":["../src/control.ts"],"names":[],"mappings":"AAqCA;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,sBAAsB,CAClC,IAA8B,EAC9B,QAAwC;IAExC,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,WAAW;YACZ,OAAO,IAAI,CAAC;QAChB,KAAK,UAAU;YACX,OAAO,QAAQ,CAAC,QAAQ,KAAK,IAAI,CAAC;QACtC,KAAK,eAAe;YAChB,OAAO,QAAQ,CAAC,QAAQ,KAAK,IAAI,IAAI,QAAQ,CAAC,aAAa,KAAK,IAAI,CAAC;QACzE;YACI,sFAAsF;YACtF,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,CAAC;AAED,sDAAsD;AACtD,MAAM,UAAU,sBAAsB,CAClC,IAA8B,EAC9B,QAAwC;IAExC,OAAO,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAClD,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,sBAAsB,CAClC,QAAwC,EACxC,SAAwC;IAExC,IAAI,QAAQ,CAAC,eAAe,KAAK,IAAI,IAAI,SAAS,KAAK,aAAa,EAAE,CAAC;QACnE,OAAO,UAAU,CAAC;IACtB,CAAC;IACD,OAAO,aAAa,CAAC;AACzB,CAAC;AAED,sDAAsD;AACtD,MAAM,UAAU,sBAAsB,CAClC,QAAwC,EACxC,SAAwC;IAExC,OAAO,sBAAsB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AACvD,CAAC"}
@@ -42,5 +42,7 @@ export declare const KNOWN_REMOTE_BROWSER_FEATURE_KEYS: ReadonlyArray<keyof IRem
42
42
  * @param provider The remote-browser provider metadata row.
43
43
  * @returns The provider's capability flags, or an empty object when none are declared.
44
44
  */
45
+ export declare function FeaturesOf(provider: MJAIRemoteBrowserProviderEntity): IRemoteBrowserProviderFeatures;
46
+ /** @deprecated Use {@link FeaturesOf}. */
45
47
  export declare function featuresOf(provider: MJAIRemoteBrowserProviderEntity): IRemoteBrowserProviderFeatures;
46
48
  //# sourceMappingURL=remote-browser-features.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-browser-features.d.ts","sourceRoot":"","sources":["../src/remote-browser-features.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,+BAA+B,EAC/B,8DAA8D,EACjE,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,8BAA8B,GAAG,8DAA8D,CAAC;AAE5G;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC,EAAE,aAAa,CAAC,MAAM,8BAA8B,CAajG,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CACtB,QAAQ,EAAE,+BAA+B,GAC1C,8BAA8B,CAEhC"}
1
+ {"version":3,"file":"remote-browser-features.d.ts","sourceRoot":"","sources":["../src/remote-browser-features.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,+BAA+B,EAC/B,8DAA8D,EACjE,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,8BAA8B,GAAG,8DAA8D,CAAC;AAE5G;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC,EAAE,aAAa,CAAC,MAAM,8BAA8B,CAajG,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CACtB,QAAQ,EAAE,+BAA+B,GAC1C,8BAA8B,CAEhC;AAED,0CAA0C;AAC1C,wBAAgB,UAAU,CACtB,QAAQ,EAAE,+BAA+B,GAC1C,8BAA8B,CAEhC"}
@@ -31,7 +31,11 @@ export const KNOWN_REMOTE_BROWSER_FEATURE_KEYS = [
31
31
  * @param provider The remote-browser provider metadata row.
32
32
  * @returns The provider's capability flags, or an empty object when none are declared.
33
33
  */
34
- export function featuresOf(provider) {
34
+ export function FeaturesOf(provider) {
35
35
  return provider.SupportedFeaturesObject ?? {};
36
36
  }
37
+ /** @deprecated Use {@link FeaturesOf}. */
38
+ export function featuresOf(provider) {
39
+ return FeaturesOf(provider);
40
+ }
37
41
  //# sourceMappingURL=remote-browser-features.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-browser-features.js","sourceRoot":"","sources":["../src/remote-browser-features.ts"],"names":[],"mappings":"AA6BA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAwD;IAClG,eAAe;IACf,iBAAiB;IACjB,UAAU;IACV,eAAe;IACf,iBAAiB;IACjB,SAAS;IACT,aAAa;IACb,kBAAkB;IAClB,mBAAmB;IACnB,UAAU;IACV,eAAe;IACf,gBAAgB;CACnB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,UAAU,UAAU,CACtB,QAAyC;IAEzC,OAAO,QAAQ,CAAC,uBAAuB,IAAI,EAAE,CAAC;AAClD,CAAC"}
1
+ {"version":3,"file":"remote-browser-features.js","sourceRoot":"","sources":["../src/remote-browser-features.ts"],"names":[],"mappings":"AA6BA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAwD;IAClG,eAAe;IACf,iBAAiB;IACjB,UAAU;IACV,eAAe;IACf,iBAAiB;IACjB,SAAS;IACT,aAAa;IACb,kBAAkB;IAClB,mBAAmB;IACnB,UAAU;IACV,eAAe;IACf,gBAAgB;CACnB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,UAAU,UAAU,CACtB,QAAyC;IAEzC,OAAO,QAAQ,CAAC,uBAAuB,IAAI,EAAE,CAAC;AAClD,CAAC;AAED,0CAA0C;AAC1C,MAAM,UAAU,UAAU,CACtB,QAAyC;IAEzC,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC;AAChC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@memberjunction/remote-browser-base",
3
3
  "type": "module",
4
- "version": "6.2.0-edge.0",
4
+ "version": "6.2.0-edge.1",
5
5
  "description": "MemberJunction: Universal (client+server) base layer for the Remote Browser channel — the provider registry cache, the capability-gated BaseRemoteBrowserProvider driver contract, the CDP-backed live-session interface, and the control mode/strategy helpers that the server engine and backend drivers build on.",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -11,9 +11,9 @@
11
11
  "author": "MemberJunction.com",
12
12
  "license": "BUSL-1.1",
13
13
  "dependencies": {
14
- "@memberjunction/core": "6.2.0-edge.0",
15
- "@memberjunction/global": "6.2.0-edge.0",
16
- "@memberjunction/core-entities": "6.2.0-edge.0",
14
+ "@memberjunction/core": "6.2.0-edge.1",
15
+ "@memberjunction/global": "6.2.0-edge.1",
16
+ "@memberjunction/core-entities": "6.2.0-edge.1",
17
17
  "rxjs": "^7.8.2"
18
18
  },
19
19
  "devDependencies": {