@lotics/cli 0.312.21 → 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.
- package/dist/src/cli.js +16 -3
- package/package.json +1 -1
package/dist/src/cli.js
CHANGED
|
@@ -46908,7 +46908,7 @@ async function saveSignedLinks(links, dir) {
|
|
|
46908
46908
|
}
|
|
46909
46909
|
|
|
46910
46910
|
// src/version.ts
|
|
46911
|
-
var VERSION = "0.312.
|
|
46911
|
+
var VERSION = "0.312.22";
|
|
46912
46912
|
var APP_SDK_VERSION = "0.122.9";
|
|
46913
46913
|
|
|
46914
46914
|
// src/timezone.ts
|
|
@@ -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) {
|