omnius 1.0.856 → 1.0.858

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.
@@ -126573,7 +126573,7 @@ ${lanes.join("\n")}
126573
126573
  let renamedCatchVariableDeclarations;
126574
126574
  let inGeneratorFunctionBody;
126575
126575
  let inStatementContainingYield;
126576
- let blocks;
126576
+ let blocks2;
126577
126577
  let blockOffsets;
126578
126578
  let blockActions;
126579
126579
  let blockStack;
@@ -126780,7 +126780,7 @@ ${lanes.join("\n")}
126780
126780
  const statements2 = [];
126781
126781
  const savedInGeneratorFunctionBody = inGeneratorFunctionBody;
126782
126782
  const savedInStatementContainingYield = inStatementContainingYield;
126783
- const savedBlocks = blocks;
126783
+ const savedBlocks = blocks2;
126784
126784
  const savedBlockOffsets = blockOffsets;
126785
126785
  const savedBlockActions = blockActions;
126786
126786
  const savedBlockStack = blockStack;
@@ -126793,7 +126793,7 @@ ${lanes.join("\n")}
126793
126793
  const savedState = state;
126794
126794
  inGeneratorFunctionBody = true;
126795
126795
  inStatementContainingYield = false;
126796
- blocks = void 0;
126796
+ blocks2 = void 0;
126797
126797
  blockOffsets = void 0;
126798
126798
  blockActions = void 0;
126799
126799
  blockStack = void 0;
@@ -126821,7 +126821,7 @@ ${lanes.join("\n")}
126821
126821
  statements2.push(factory2.createReturnStatement(buildResult));
126822
126822
  inGeneratorFunctionBody = savedInGeneratorFunctionBody;
126823
126823
  inStatementContainingYield = savedInStatementContainingYield;
126824
- blocks = savedBlocks;
126824
+ blocks2 = savedBlocks;
126825
126825
  blockOffsets = savedBlockOffsets;
126826
126826
  blockActions = savedBlockActions;
126827
126827
  blockStack = savedBlockStack;
@@ -127762,8 +127762,8 @@ ${lanes.join("\n")}
127762
127762
  labelOffsets[label] = operations ? operations.length : 0;
127763
127763
  }
127764
127764
  function beginBlock(block) {
127765
- if (!blocks) {
127766
- blocks = [];
127765
+ if (!blocks2) {
127766
+ blocks2 = [];
127767
127767
  blockActions = [];
127768
127768
  blockOffsets = [];
127769
127769
  blockStack = [];
@@ -127771,7 +127771,7 @@ ${lanes.join("\n")}
127771
127771
  const index = blockActions.length;
127772
127772
  blockActions[index] = 0;
127773
127773
  blockOffsets[index] = operations ? operations.length : 0;
127774
- blocks[index] = block;
127774
+ blocks2[index] = block;
127775
127775
  blockStack.push(block);
127776
127776
  return index;
127777
127777
  }
@@ -127781,7 +127781,7 @@ ${lanes.join("\n")}
127781
127781
  const index = blockActions.length;
127782
127782
  blockActions[index] = 1;
127783
127783
  blockOffsets[index] = operations ? operations.length : 0;
127784
- blocks[index] = block;
127784
+ blocks2[index] = block;
127785
127785
  blockStack.pop();
127786
127786
  return block;
127787
127787
  }
@@ -128360,9 +128360,9 @@ ${lanes.join("\n")}
128360
128360
  }
128361
128361
  }
128362
128362
  function tryEnterOrLeaveBlock(operationIndex) {
128363
- if (blocks) {
128363
+ if (blocks2) {
128364
128364
  for (; blockIndex < blockActions.length && blockOffsets[blockIndex] <= operationIndex; blockIndex++) {
128365
- const block = blocks[blockIndex];
128365
+ const block = blocks2[blockIndex];
128366
128366
  const blockAction = blockActions[blockIndex];
128367
128367
  switch (block.kind) {
128368
128368
  case 0:
@@ -247210,6 +247210,7 @@ def observe():
247210
247210
  if desktop is None: raise ObservationUnavailable()
247211
247211
  required(desktop.clear_cache_single)
247212
247212
  nodes, fresh, active_windows, applications, fresh_windows = [], {}, set(), {}, {}
247213
+ active_processes, window_bounds = {}, {}
247213
247214
  fresh_generations = dict(generations)
247214
247215
  seen, truncated = set(), False
247215
247216
  def visit(node, window_raw=None, depth=0, application=None):
@@ -247243,6 +247244,8 @@ def observe():
247243
247244
  if raw == window_raw and state.contains(Atspi.StateType.ACTIVE):
247244
247245
  active_windows.add(window_id)
247245
247246
  if application: applications[window_id] = application
247247
+ process_id = safe(node.get_process_id, 0)
247248
+ if isinstance(process_id, int) and process_id > 0: active_processes[window_id] = process_id
247246
247249
  generation = generations.get(raw, 0)
247247
247250
  if raw not in previous: generation += 1
247248
247251
  fresh_generations[raw] = generation
@@ -247299,6 +247302,7 @@ def observe():
247299
247302
  rect = safe(lambda: component.get_extents(Atspi.CoordType.SCREEN)) if component else None
247300
247303
  if rect and rect.width > 0 and rect.height > 0 and abs(rect.x) < 1000000 and abs(rect.y) < 1000000:
247301
247304
  item['bounds'] = dict(x=rect.x, y=rect.y, width=rect.width, height=rect.height)
247305
+ if raw == window_raw: window_bounds[window_id] = dict(item['bounds'])
247302
247306
  nodes.append(item)
247303
247307
  fresh[identity] = (node, item, index)
247304
247308
  # Actions are restricted to the active top-level window. Keep inactive
@@ -247326,6 +247330,8 @@ def observe():
247326
247330
  if len(active_windows) == 1:
247327
247331
  payload['activeWindowId'] = next(iter(active_windows))
247328
247332
  if payload['activeWindowId'] in applications: payload['activeApplication'] = applications[payload['activeWindowId']]
247333
+ if payload['activeWindowId'] in active_processes: payload['activeProcessId'] = active_processes[payload['activeWindowId']]
247334
+ if payload['activeWindowId'] in window_bounds: payload['activeWindowBounds'] = window_bounds[payload['activeWindowId']]
247329
247335
  payload['capabilities'].append('active_window')
247330
247336
  payload['revision'] = hashlib.sha256(json.dumps(payload, sort_keys=True, separators=(',', ':')).encode()).hexdigest()
247331
247337
  payload['capturedAt'] = int(time.time() * 1000)
@@ -247613,6 +247619,12 @@ while($null -ne ($line=[Console]::ReadLine())) {
247613
247619
  }
247614
247620
  `;
247615
247621
 
247622
+ // packages/execution/dist/rapid-computer-use/native-visual.js
247623
+ import { execFile } from "node:child_process";
247624
+ import { promisify } from "node:util";
247625
+ var exec = promisify(execFile);
247626
+ var PNG = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
247627
+
247616
247628
  // packages/execution/dist/index.js
247617
247629
  init_model_broker();
247618
247630
  init_gpu_selection2();
@@ -247871,9 +247883,9 @@ import { TextDecoder as TextDecoder3 } from "node:util";
247871
247883
  var utf8 = new TextDecoder3("utf-8", { fatal: true, ignoreBOM: true });
247872
247884
 
247873
247885
  // packages/execution/dist/tools/grep-search.js
247874
- import { execFile } from "node:child_process";
247875
- import { promisify } from "node:util";
247876
- var execFileAsync = promisify(execFile);
247886
+ import { execFile as execFile2 } from "node:child_process";
247887
+ import { promisify as promisify2 } from "node:util";
247888
+ var execFileAsync = promisify2(execFile2);
247877
247889
 
247878
247890
  // node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/esm/index.js
247879
247891
  var balanced = (a, b, str) => {
@@ -250771,8 +250783,13 @@ var VOID_ELEMENTS = /* @__PURE__ */ new Set([
250771
250783
  var inert = /* @__PURE__ */ new Set(["script", "style", "template", "svg", "canvas"]);
250772
250784
  var textExcluded = /* @__PURE__ */ new Set([...inert, "nav", "header", "footer", "aside", "noscript"]);
250773
250785
 
250786
+ // packages/execution/dist/streamed-web-source.js
250787
+ var MAX_RANGE_CHARS = 256 * 1024;
250788
+ var blocks = new Set("address article aside blockquote dd details div dl dt figcaption figure footer h1 h2 h3 h4 h5 h6 header hr li main nav ol p pre section summary table tbody tfoot thead tr ul".split(" "));
250789
+ var voids = new Set("area base br col embed hr img input link meta param source track wbr".split(" "));
250790
+
250774
250791
  // packages/execution/dist/tools/web-fetch.js
250775
- var MAX_RESPONSE_BYTES = 5 * 1024 * 1024;
250792
+ var SMALL_SOURCE_BYTES = 5 * 1024 * 1024;
250776
250793
 
250777
250794
  // packages/execution/dist/tools/web-search.js
250778
250795
  var MAX_SEARCH_RESPONSE_BYTES = 2 * 1024 * 1024;
@@ -297680,9 +297697,9 @@ var CACHE_TTL_MS = 60 * 60 * 1e3;
297680
297697
  init_model_store();
297681
297698
 
297682
297699
  // packages/execution/dist/av/ingest.js
297683
- import { execFile as execFile2 } from "node:child_process";
297684
- import { promisify as promisify2 } from "node:util";
297685
- var execFileAsync2 = promisify2(execFile2);
297700
+ import { execFile as execFile3 } from "node:child_process";
297701
+ import { promisify as promisify3 } from "node:util";
297702
+ var execFileAsync2 = promisify3(execFile3);
297686
297703
 
297687
297704
  // packages/execution/dist/tools/video-generate.js
297688
297705
  init_process_async();