captchakraken 5.1.0-beta.55 → 5.2.0-beta.57

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/solver.d.ts CHANGED
@@ -2,11 +2,12 @@
2
2
  * Browser page driver. Finds the widget, photographs it, asks the bundled Python engine what to do,
3
3
  * and performs the answer. Mirrors python/src/captchakraken/page_solver.py.
4
4
  */
5
- import { PlaywrightPage as Page, PlaywrightElementHandle as ElementHandle, PlaywrightFrame as Frame, PlaywrightLocator as Locator } from './playwright-types';
5
+ import { PlaywrightPage as Page, PlaywrightElementHandle as ElementHandle, PlaywrightFrame as Frame, PlaywrightLocator as Locator, PlaywrightScope as Scope } from './playwright-types';
6
6
  import { CaptchaWatcher, WatchOptions } from './watcher';
7
7
  import { PhaseBudget } from './timing';
8
8
  import { CaptchaKrakenConfig, SolveResult } from './types';
9
9
  import { FrameRole, Vendor } from './kinds';
10
+ import { SelectorTable } from './selectors';
10
11
  /** What detection found: the handle to photograph, the locator to search inside, and which table entry named it. */
11
12
  export interface Widget {
12
13
  el: ElementHandle;
@@ -32,6 +33,13 @@ export declare function withAnswerBox(el: ElementHandle, box: ElementHandle, max
32
33
  * never found, and the dragged answer was never submitted (fixture 0/4 on 2026-11-14).
33
34
  */
34
35
  export declare const boardFrame: (element: ElementHandle, frame: Frame | null) => Promise<Frame | null>;
36
+ /**
37
+ * Where the host-page selectors are read: the page, then the inside of every VISIBLE frame a widget may sit in, a level
38
+ * at a time, to FRAME_DEPTH levels. A hidden frame is not entered because Playwright judges an element visible within
39
+ * its own document, whatever its frame's visibility. A frame holding nothing of any vendor's is walked through but not
40
+ * kept, so a page of ads costs a count per frame, not every probe per frame.
41
+ */
42
+ export declare const hostScopes: (page: Page, sel: SelectorTable) => Promise<Scope[]>;
35
43
  /** One read of a `band` strip: how far its picture sits right of where it started (background offset plus box), its rows, and the width its picture repeats at. */
36
44
  export interface BandRead {
37
45
  x: number;
@@ -63,6 +71,13 @@ export declare const IDLE_DRIFT_PX = 3;
63
71
  export declare const GRID_LOAD_CAP_FACTOR = 3;
64
72
  export declare const HOLD_SETTLE_MS = 900;
65
73
  export declare const HOLD_MAX_MS = 12000;
74
+ /**
75
+ * Does a viewport capture speak the bounding box's coordinates? Not on a page laid out wider than the device and
76
+ * zoomed out to fit, which is every mobile layout of a desktop page: there the box is in layout pixels and the
77
+ * capture is not.
78
+ */
79
+ /** Gecko answers with a number and Chromium/WebKit have no such property. Camoufox spoofs the user agent, not this. */
80
+ export declare const GECKO_JS = "typeof mozInnerScreenX === 'number'";
66
81
  export declare const SOLVE_DEFAULTS: {
67
82
  readonly maxSolveLoops: 6;
68
83
  readonly overallSolveTimeoutMs: 45000;
@@ -125,6 +140,8 @@ export declare class CaptchaKrakenSolver {
125
140
  private animatedFilm;
126
141
  private lastBurstFps;
127
142
  private actedOnBoard;
143
+ /** (page, is Firefox), asked once per page: see drawsClipsOffscreen. */
144
+ private gecko;
128
145
  private submittedOnBoard;
129
146
  private lastSubmitFrameHash;
130
147
  private solveSessionId;
@@ -153,9 +170,10 @@ export declare class CaptchaKrakenSolver {
153
170
  /**
154
171
  * Every capture the driver takes: the whole viewport, cropped here to the element.
155
172
  *
156
- * Never a clipped capture. An element screenshot, or any `clip`, makes a headed Chromium repaint the page at the
157
- * clip's size for that frame, which the user watches as the page flashing and jumping; a viewport capture
158
- * repaints nothing, and measured twice as fast. `disabled` freezes CSS animation, which once sliced GeeTest svg to
173
+ * Never a clipped capture on Chromium. An element screenshot, or any `clip`, makes a headed Chromium repaint the
174
+ * page at the clip's size for that frame, which the user watches as the page flashing and jumping; a viewport
175
+ * capture repaints nothing, and measured twice as fast. Firefox is the exception: it draws a clip offscreen, and
176
+ * there the clip is four times faster than the viewport (see drawsClipsOffscreen). `disabled` freezes CSS animation, which once sliced GeeTest svg to
159
177
  * a static clip; callers filming motion pass `allow`.
160
178
  */
161
179
  /** `scale: 'css'` is one pixel per CSS pixel: the slide loop's, since a phone's device-pixel frame is ~7x the pixels to track. */
package/dist/solver.js CHANGED
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.CaptchaKrakenSolver = exports.SOLVE_DEFAULTS = exports.HOLD_MAX_MS = exports.HOLD_SETTLE_MS = exports.GRID_LOAD_CAP_FACTOR = exports.IDLE_DRIFT_PX = exports.IDLE_DRIFT_EVERY_MS = exports.INPUT_SETTLE_MS = exports.boardFrame = void 0;
36
+ exports.CaptchaKrakenSolver = exports.SOLVE_DEFAULTS = exports.GECKO_JS = exports.HOLD_MAX_MS = exports.HOLD_SETTLE_MS = exports.GRID_LOAD_CAP_FACTOR = exports.IDLE_DRIFT_PX = exports.IDLE_DRIFT_EVERY_MS = exports.INPUT_SETTLE_MS = exports.hostScopes = exports.boardFrame = void 0;
37
37
  exports.withAnswerBox = withAnswerBox;
38
38
  exports.bandRoll = bandRoll;
39
39
  exports.answerNeedsElementBox = answerNeedsElementBox;
@@ -202,11 +202,36 @@ const boardFrame = async (element, frame) => {
202
202
  return null;
203
203
  };
204
204
  exports.boardFrame = boardFrame;
205
+ // How many frames deep a widget is looked for. Imperva's block page wrapping hCaptcha's enclave is two; the rest is room
206
+ // for a site that frames such a page. Mirrors page_solver.py FRAME_DEPTH.
207
+ const FRAME_DEPTH = 4;
208
+ /** The scope holds a match of `selector`. A scope that cannot be asked is kept: dropping it could hide a widget. */
209
+ const holdsAny = async (scope, selector) => {
210
+ try {
211
+ return (await scope.locator(selector).count()) > 0;
212
+ }
213
+ catch {
214
+ return true;
215
+ }
216
+ };
205
217
  /**
206
- * Where the host-page selectors are read: the page, then the inside of every VISIBLE vendor enclave. A hidden enclave is
207
- * skipped because Playwright judges an element visible within its own document, whatever its frame's visibility.
218
+ * Where the host-page selectors are read: the page, then the inside of every VISIBLE frame a widget may sit in, a level
219
+ * at a time, to FRAME_DEPTH levels. A hidden frame is not entered because Playwright judges an element visible within
220
+ * its own document, whatever its frame's visibility. A frame holding nothing of any vendor's is walked through but not
221
+ * kept, so a page of ads costs a count per frame, not every probe per frame.
208
222
  */
209
- const hostScopes = async (page, enclaves) => [page, ...(await Promise.all((await visible(page, enclaves)).map(frameOf))).filter((f) => f !== null)];
223
+ const hostScopes = async (page, sel) => {
224
+ const scopes = [page];
225
+ let level = [page];
226
+ for (let depth = 0; depth < FRAME_DEPTH && level.length; depth++) {
227
+ const found = (await Promise.all(level.map((scope) => visible(scope, sel.frames)))).flat();
228
+ level = (await Promise.all(found.map(frameOf))).filter((f) => f !== null);
229
+ const kept = await Promise.all(level.map((f) => holdsAny(f, sel.markers)));
230
+ scopes.push(...level.filter((_, i) => kept[i]));
231
+ }
232
+ return scopes;
233
+ };
234
+ exports.hostScopes = hostScopes;
210
235
  const visibleIn = async (scopes, selectors) => (await Promise.all(scopes.map((scope) => visible(scope, selectors)))).flat();
211
236
  const hasText = async (el) => !!((await el.textContent().catch(() => null)) ?? '').trim();
212
237
  const SLIDE_TOLERANCE_PX = 2;
@@ -304,6 +329,22 @@ async function viewportOf(page) {
304
329
  * zoomed out to fit, which is every mobile layout of a desktop page: there the box is in layout pixels and the
305
330
  * capture is not.
306
331
  */
332
+ /** Gecko answers with a number and Chromium/WebKit have no such property. Camoufox spoofs the user agent, not this. */
333
+ exports.GECKO_JS = "typeof mozInnerScreenX === 'number'";
334
+ /**
335
+ * Is this Firefox, whose clipped capture renders the rect offscreen (`drawSnapshot`) and repaints nothing?
336
+ *
337
+ * Chromium is the engine that flashes on a clip, and the reason every other capture is viewport-and-crop. On Firefox
338
+ * the full viewport costs ~420ms to the clip's ~100ms; a still Yidun board took 8 of them, 2.6s of its solve.
339
+ */
340
+ async function drawsClipsOffscreen(page) {
341
+ try {
342
+ return (await page.evaluate?.(exports.GECKO_JS)) === true;
343
+ }
344
+ catch {
345
+ return false;
346
+ }
347
+ }
307
348
  async function layoutIsTheViewport(page, view) {
308
349
  const frame = await page.evaluate?.(() => ({
309
350
  width: window.innerWidth,
@@ -407,6 +448,8 @@ class CaptchaKrakenSolver {
407
448
  this.animatedFilm = null;
408
449
  this.lastBurstFps = null;
409
450
  this.actedOnBoard = false;
451
+ /** (page, is Firefox), asked once per page: see drawsClipsOffscreen. */
452
+ this.gecko = null;
410
453
  this.submittedOnBoard = false;
411
454
  this.lastSubmitFrameHash = null;
412
455
  this.solveSessionId = null;
@@ -441,9 +484,10 @@ class CaptchaKrakenSolver {
441
484
  /**
442
485
  * Every capture the driver takes: the whole viewport, cropped here to the element.
443
486
  *
444
- * Never a clipped capture. An element screenshot, or any `clip`, makes a headed Chromium repaint the page at the
445
- * clip's size for that frame, which the user watches as the page flashing and jumping; a viewport capture
446
- * repaints nothing, and measured twice as fast. `disabled` freezes CSS animation, which once sliced GeeTest svg to
487
+ * Never a clipped capture on Chromium. An element screenshot, or any `clip`, makes a headed Chromium repaint the
488
+ * page at the clip's size for that frame, which the user watches as the page flashing and jumping; a viewport
489
+ * capture repaints nothing, and measured twice as fast. Firefox is the exception: it draws a clip offscreen, and
490
+ * there the clip is four times faster than the viewport (see drawsClipsOffscreen). `disabled` freezes CSS animation, which once sliced GeeTest svg to
447
491
  * a static clip; callers filming motion pass `allow`.
448
492
  */
449
493
  /** `scale: 'css'` is one pixel per CSS pixel: the slide loop's, since a phone's device-pixel frame is ~7x the pixels to track. */
@@ -459,6 +503,12 @@ class CaptchaKrakenSolver {
459
503
  await el.screenshot({ path: p, timeout, animations, style, ...css });
460
504
  return;
461
505
  }
506
+ if (this.gecko?.page !== page)
507
+ this.gecko = { page, clips: await drawsClipsOffscreen(page) };
508
+ if (this.gecko.clips) {
509
+ fs.writeFileSync(p, await page.screenshot({ timeout, animations, style, ...css, clip: { ...rect } }));
510
+ return;
511
+ }
462
512
  fs.writeFileSync(p, (0, png_1.cropPng)(await page.screenshot({ timeout, animations, style, ...css }), rect, view.width));
463
513
  }
464
514
  async rectOf(el) {
@@ -805,7 +855,7 @@ class CaptchaKrakenSolver {
805
855
  async isBlocked(page) {
806
856
  try {
807
857
  const probes = this.sel.widgetProbes.filter((p) => p.role === kinds_1.FrameRole.CHALLENGE && this.sel.selectors[p.vendor].blocked);
808
- const scopes = await hostScopes(page, this.sel.enclave);
858
+ const scopes = await (0, exports.hostScopes)(page, this.sel);
809
859
  const shown = await Promise.all(probes.map(async (p) => {
810
860
  const [at] = await visibleIn(scopes, [p.selector]);
811
861
  const frame = at && await frameOf(at);
@@ -1350,7 +1400,7 @@ class CaptchaKrakenSolver {
1350
1400
  /** Which verdict banner the open challenge shows; `dynamic-more` is the dynamic board's normal flow, not an error. */
1351
1401
  async bannerKind(page) {
1352
1402
  const probes = this.sel.widgetProbes.filter((p) => p.role === kinds_1.FrameRole.CHALLENGE && this.sel.selectors[p.vendor].banners);
1353
- const scopes = await hostScopes(page, this.sel.enclave);
1403
+ const scopes = await (0, exports.hostScopes)(page, this.sel);
1354
1404
  const kinds = await Promise.all(probes.map(async (p) => {
1355
1405
  const [at] = await visibleIn(scopes, [p.selector]);
1356
1406
  const frame = at && await frameOf(at);
@@ -1368,7 +1418,7 @@ class CaptchaKrakenSolver {
1368
1418
  // A vendor that draws its whole challenge in one frame (DataDome) paints its pass in there, then reloads the
1369
1419
  // page about a second later: unread, the next round filmed the closing frame.
1370
1420
  const challenges = this.sel.widgetProbes.filter((p) => p.role === kinds_1.FrameRole.CHALLENGE && this.sel.selectors[p.vendor].accepted);
1371
- const scopes = await hostScopes(page, this.sel.enclave);
1421
+ const scopes = await (0, exports.hostScopes)(page, this.sel);
1372
1422
  const signals = await Promise.all([
1373
1423
  ...this.sel.response.map((s) => this.hasValue(scopes, s)),
1374
1424
  visibleIn(scopes, this.sel.accepted).then((found) => found.length > 0),
@@ -1392,7 +1442,7 @@ class CaptchaKrakenSolver {
1392
1442
  async isChallengeFreshlyRendered(page) {
1393
1443
  try {
1394
1444
  const probes = this.sel.widgetProbes.filter((p) => p.role === kinds_1.FrameRole.CHALLENGE && this.sel.selectors[p.vendor].fresh);
1395
- const scopes = await hostScopes(page, this.sel.enclave);
1445
+ const scopes = await (0, exports.hostScopes)(page, this.sel);
1396
1446
  const fresh = await Promise.all(probes.map(async (p) => {
1397
1447
  const [at] = await visibleIn(scopes, [p.selector]);
1398
1448
  const el = at && await handleOf(at);
@@ -1454,7 +1504,7 @@ class CaptchaKrakenSolver {
1454
1504
  }
1455
1505
  /** Vendors showing a frame no selector names. Only asked once detection has found nothing, and a passive frame (an invisible badge, an enclave) is not a widget, so what is left is markup the table no longer matches. */
1456
1506
  async unmatchedVendorFrames(page) {
1457
- const scopes = await hostScopes(page, this.sel.enclave);
1507
+ const scopes = await (0, exports.hostScopes)(page, this.sel);
1458
1508
  const counts = await Promise.all(this.sel.vendors.map(async ([vendor, s]) => {
1459
1509
  if (!s.hosts.length)
1460
1510
  return null;
@@ -1484,7 +1534,7 @@ class CaptchaKrakenSolver {
1484
1534
  }
1485
1535
  /** Open challenges first, then unsolved checkboxes, then the inline vendors; every probe is queried at once. */
1486
1536
  async detectCaptcha(page) {
1487
- const scopes = await hostScopes(page, this.sel.enclave);
1537
+ const scopes = await (0, exports.hostScopes)(page, this.sel);
1488
1538
  const found = await Promise.all(this.sel.widgetProbes.map(async (p) => {
1489
1539
  const [at] = await visibleIn(scopes, [p.selector]);
1490
1540
  return at && !(await this.alreadyAccepted(scopes, at, p)) ? { ...p, at } : null;
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { RoundVerdict } from './verdicts';
2
- import type { Humanizer, TouchTransform } from './humanize.js';
2
+ import type { HumanizeSettings, Humanizer, TouchTransform } from './humanize.js';
3
3
  import type { CustomSelectors, SelectorConfigFile } from './selectors';
4
- import type { ActionKind, FrameRole, HumanizationMode, PromptFamily, SolveStage, Vendor } from './kinds';
4
+ import type { ActionKind, FrameRole, HumanizationMode, PromptFamily, SolveStage, Speed, Vendor } from './kinds';
5
5
  /** One intermediate stage of a solve, handed to `CaptchaKrakenConfig.onStep`. */
6
6
  export interface SolveStepEvent {
7
7
  /** 1-based, increasing across the whole solve. */
@@ -22,6 +22,13 @@ export interface CaptchaKrakenConfig {
22
22
  humanization?: HumanizationMode;
23
23
  /** Your own gesture implementation; overrides `humanization`. */
24
24
  humanizer?: Humanizer;
25
+ /**
26
+ * `human` (default) or `fast`: fast plays myuri's recorded paths 2.5x faster and halves the waits between
27
+ * gestures. Falls back to CAPTCHA_SPEED.
28
+ */
29
+ speed?: Speed;
30
+ /** myuri settings laid over the speed's, e.g. `{ mouse: { speedFactor: 3 } }`; an unknown key throws at construction. */
31
+ humanizeSettings?: HumanizeSettings;
25
32
  /**
26
33
  * Every URL pattern and selector the solver detects and drives with: a path to a config file of the shape of the
27
34
  * repository's `captchakraken.config.json`, or the parsed object. What it gives is laid over the shipped default, so
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "captchakraken",
3
- "version": "5.1.0-beta.55",
3
+ "version": "5.2.0-beta.57",
4
4
  "description": "Captcha solver for Playwright and Puppeteer. Finds the captcha, reads it with the v2 pointer model, and clicks, drags, slides or types through to a token — reCAPTCHA, GeeTest, NetEase Yidun, Tencent, Lemin, Prosopo, Turnstile and distorted text. Hosted API or self-hosted.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -52,16 +52,19 @@
52
52
  "author": "Jake Writer",
53
53
  "license": "LGPL-3.0-only",
54
54
  "type": "commonjs",
55
+ "engines": {
56
+ "node": ">=20.19"
57
+ },
55
58
  "bugs": {
56
59
  "url": "https://github.com/CaptchaKraken/CaptchaKraken/issues"
57
60
  },
58
61
  "homepage": "https://github.com/CaptchaKraken/CaptchaKraken#readme",
59
- "dependencies": {
60
- "cursory-js": "2.1.0"
61
- },
62
62
  "devDependencies": {
63
63
  "@types/node": "24.10.2",
64
64
  "c8": "12.0.0",
65
65
  "typescript": "5.9.3"
66
+ },
67
+ "dependencies": {
68
+ "@jwriter20/myuri": "5.1.0"
66
69
  }
67
70
  }
package/python/NOTICE CHANGED
@@ -7,7 +7,18 @@ General Public License, version 3 only (LGPL-3.0-only), which governs
7
7
  everything in this repository that is not listed here.
8
8
 
9
9
  ────────────────────────────────────────────────────────────────────────────
10
- Cursory — mouse trajectory generation
10
+ Myuri — human mouse paths and keystroke timing
11
+ ────────────────────────────────────────────────────────────────────────────
12
+
13
+ myuri https://github.com/JWriter20/Myuri (Python, PyPI: myuri)
14
+ @jwriter20/myuri https://github.com/JWriter20/Myuri (TypeScript, npm: @jwriter20/myuri)
15
+
16
+ Copyright (c) Jake Writer and the Myuri contributors.
17
+ Licensed under the GNU Lesser General Public License, version 3 or later
18
+ (LGPL-3.0-or-later). A copy is available at https://www.gnu.org/licenses/lgpl-3.0.html
19
+
20
+ ────────────────────────────────────────────────────────────────────────────
21
+ Cursory — mouse trajectory generation, installed by Myuri
11
22
  ────────────────────────────────────────────────────────────────────────────
12
23
 
13
24
  cursory https://github.com/Vinyzu/cursory (Python, PyPI: cursory)
@@ -17,20 +28,21 @@ Cursory — mouse trajectory generation
17
28
  Licensed under the GNU Lesser General Public License, version 3 or later
18
29
  (LGPL-3.0-or-later). A copy is available at https://www.gnu.org/licenses/lgpl-3.0.html
19
30
 
20
- HOW WE USE IT, AND WHY THAT MATTERS. Both are ORDINARY INSTALLED
21
- DEPENDENCIES — `cursory` is declared in python/pyproject.toml and `cursory-js`
22
- in js/package.json, and each is resolved by the user's own package manager at
23
- install time. Neither is vendored into this repository, copied into our
24
- sources, or bundled into a build artifact: the TypeScript build is `tsc`, which
25
- leaves `require('cursory-js')` as a runtime import rather than inlining it, and
31
+ HOW WE USE THEM, AND WHY THAT MATTERS. All four are ORDINARY INSTALLED
32
+ DEPENDENCIES — `myuri` is declared in python/pyproject.toml and
33
+ `@jwriter20/myuri` in js/package.json, each brings its cursory port as its own
34
+ dependency, and all are resolved by the user's own package manager at install
35
+ time. None is vendored into this repository, copied into our sources, or
36
+ bundled into a build artifact: the TypeScript build is `tsc`, which leaves
37
+ `require('@jwriter20/myuri')` as a runtime import rather than inlining it, and
26
38
  `js/scripts/copy-python.mjs` copies only our own `python/` tree.
27
39
 
28
40
  That arrangement is the one the LGPL is written for, and it is what lets this
29
- product remain under its own licence. It also means a user may replace either
30
- library with a modified version of their own — reinstall the package, and the
31
- driver picks it up — which is the freedom section 4 of the LGPL requires be
32
- preserved. Do not vendor, inline, or bundle either one without taking legal
41
+ product remain under its own licence. It also means a user may replace any of
42
+ these libraries with a modified version of their own — reinstall the package,
43
+ and the driver picks it up — which is the freedom section 4 of the LGPL requires be
44
+ preserved. Do not vendor, inline, or bundle any of them without taking legal
33
45
  advice first; doing so is the change that would put this obligation somewhere
34
46
  other than where it now sits.
35
47
 
36
- We have not modified either library.
48
+ We have not modified any of them.
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "captchakraken"
7
- version = "5.1.0b55"
7
+ version = "5.2.0b57"
8
8
  description = "Captcha-solving engine and CLI: a v2 pointer model for image grids, click and drag puzzles, sliders, distorted text and animated challenges. Hosted API or self-hosted on vLLM."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -43,7 +43,7 @@ classifiers = [
43
43
  # `Requires-Python >=3.12`, so pip could not find it at all.
44
44
  #
45
45
  # The floor is 3.11 as of 3.0.0, and it moved because the MOUSE moved: `cursory`
46
- # declares `Requires-Python >=3.11` and drags numpy 2.3.x with it, which declares
46
+ # (and now `myuri`, which installs it) declares `Requires-Python >=3.11` and drags numpy 2.3.x with it, which declares
47
47
  # the same. Neither is a pin we could have chosen differently — 2.2.6 was the
48
48
  # newest numpy covering 3.10, and cursory does not run there at all. Resolve
49
49
  # against the floor before changing any of these, and see TRIBAL_KNOWLEDGE.md.
@@ -64,10 +64,14 @@ dependencies = [
64
64
  "av==18.1.0",
65
65
  "requests==2.34.2",
66
66
  "python-dotenv==1.2.3",
67
- # The mouse. LGPL-3.0-or-later, used as an ordinary installed dependency and
68
- # never vendored or bundled, which is the arrangement the licence is written
69
- # for — see NOTICE. Its TypeScript port `cursory-js` is the JS driver's
70
- # dependency, and the two agree bit for bit on a seed.
67
+ # The mouse and the keyboard: human paths (on `cursory`, which it installs)
68
+ # and keystroke timing. LGPL-3.0-or-later, used as an ordinary installed
69
+ # dependency and never vendored or bundled, which is the arrangement the
70
+ # licence is written for — see NOTICE. Its TypeScript port `@jwriter20/myuri`
71
+ # is the JS driver's dependency, and the two agree bit for bit on a seed.
72
+ "myuri==5.1.0",
73
+ # Pinned exactly although myuri asks only for >=2.1,<3: the path is cursory's,
74
+ # and the cross-port test pins it against cursory-js 2.1.0.
71
75
  "cursory==2.1.0",
72
76
  ]
73
77
 
@@ -22,6 +22,7 @@ from .errors import CaptchaKrakenAPIError
22
22
  from .humanize import (
23
23
  Humanizer,
24
24
  MobileHumanizer,
25
+ Motion,
25
26
  MouseHumanizer,
26
27
  NullHumanizer,
27
28
  TouchBackend,
@@ -34,6 +35,7 @@ from .kinds import (
34
35
  PauseKind,
35
36
  PromptFamily,
36
37
  RetryMode,
38
+ Speed,
37
39
  Vendor,
38
40
  Verdict,
39
41
  )
@@ -85,6 +87,7 @@ __all__ = [
85
87
  "load_config",
86
88
  "Vendor",
87
89
  "HumanizationMode",
90
+ "Speed",
88
91
  # Results and errors
89
92
  "RoundVerdict",
90
93
  "Outcome",
@@ -96,8 +99,9 @@ __all__ = [
96
99
  "MouseHumanizer",
97
100
  "MobileHumanizer",
98
101
  "NullHumanizer",
102
+ "Motion",
99
103
  "TouchBackend",
100
104
  "PauseKind",
101
105
  ]
102
106
 
103
- __version__ = "5.1.0b55"
107
+ __version__ = "5.2.0b57"
@@ -351,7 +351,7 @@ def _fetch_setup(args):
351
351
  help="set up this model with the defaults, e.g. `abyss` (needs an Abyss Licence)")
352
352
  parser.add_argument("--yes", "-y", action="store_true", help="ask nothing: previous choices, then the defaults")
353
353
  parser.add_argument("--model", default=None, help="with --yes: abyss, " + ", ".join(
354
- m.repo.split("/")[-1] for m in selfhost.MODELS))
354
+ m.repo.split("/")[-1] for m in selfhost.listed_models()))
355
355
  parser.add_argument("--gpu", type=int, default=None, help="with --yes: the nvidia-smi GPU index")
356
356
  parser.add_argument("--startup", default=None, choices=[selfhost.ALWAYS_ON, selfhost.FIRST_SOLVE],
357
357
  help="with --yes: always on, or start on the first solve")