@lotics/cli 0.312.20 → 0.312.22

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.
Files changed (2) hide show
  1. package/dist/src/cli.js +17 -4
  2. package/package.json +1 -1
package/dist/src/cli.js CHANGED
@@ -46908,8 +46908,8 @@ async function saveSignedLinks(links, dir) {
46908
46908
  }
46909
46909
 
46910
46910
  // src/version.ts
46911
- var VERSION = "0.312.20";
46912
- var APP_SDK_VERSION = "0.122.8";
46911
+ var VERSION = "0.312.22";
46912
+ var APP_SDK_VERSION = "0.122.9";
46913
46913
 
46914
46914
  // src/timezone.ts
46915
46915
  function machineTimezone() {
@@ -49804,6 +49804,19 @@ async function modelPull(client, output) {
49804
49804
  note2(`Wrote ${path15.resolve(output)}.`);
49805
49805
  }
49806
49806
 
49807
+ // ../shared/src/screenshot_limits.ts
49808
+ var MAX_SCREENSHOT_WIDTHS = 3;
49809
+ var SCREENSHOT_BUDGET_MS = 3e4;
49810
+ var SCREENSHOT_QUEUE_WAIT_MS = 2e4;
49811
+ var SCREENSHOT_CAPTURE_MARGIN_MS = 13e3;
49812
+ var SCREENSHOT_TRANSFER_MS = 1e4;
49813
+ function screenshotRenderCeilingMs(widths) {
49814
+ return widths * (SCREENSHOT_BUDGET_MS + SCREENSHOT_CAPTURE_MARGIN_MS);
49815
+ }
49816
+ function screenshotTimeoutMs(widths) {
49817
+ return SCREENSHOT_QUEUE_WAIT_MS + screenshotRenderCeilingMs(widths) + SCREENSHOT_TRANSFER_MS;
49818
+ }
49819
+
49807
49820
  // src/signin_link.ts
49808
49821
  async function offerSignInLink(client, redirect_path) {
49809
49822
  let url2 = null;
@@ -50262,7 +50275,7 @@ ${renderCommandsHelp()}
50262
50275
 
50263
50276
  FLAGS
50264
50277
  --json Full JSON output (default is human-readable text)
50265
- --timeout <ms> Timeout for tool execution (default: 60000)
50278
+ --timeout <ms> Timeout for tool execution (default: 60000; screenshot_app waits for its widest request)
50266
50279
  -o <path> download: the directory to save into; knowledge get, model pull:
50267
50280
  the file to write; run: the directory every signed link in the
50268
50281
  tool's answer is saved into
@@ -51607,7 +51620,7 @@ ${JSON.stringify(info.input_schema, null, 2)}${output}`);
51607
51620
  }
51608
51621
  const args = ingested.args;
51609
51622
  noteToolArgs(args);
51610
- const timeoutMs = flags.timeout ?? 6e4;
51623
+ const timeoutMs = flags.timeout ?? (toolName === "screenshot_app" ? screenshotTimeoutMs(MAX_SCREENSHOT_WIDTHS) : 6e4);
51611
51624
  const result = await client.execute(toolName, args, { format: "text", timeoutMs });
51612
51625
  if (result.error) {
51613
51626
  if (flags.json) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/cli",
3
- "version": "0.312.20",
3
+ "version": "0.312.22",
4
4
  "description": "Lotics SDK and CLI for AI agents",
5
5
  "type": "module",
6
6
  "bin": {