@vm0/cli 9.177.10 → 9.177.11
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/{chunk-AXV23NAE.js → chunk-26CIENVP.js} +56 -3
- package/{chunk-AXV23NAE.js.map → chunk-26CIENVP.js.map} +1 -1
- package/index.js +14 -11
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/zero.js +37 -6
- package/zero.js.map +1 -1
|
@@ -74083,7 +74083,7 @@ if (DSN) {
|
|
|
74083
74083
|
init2({
|
|
74084
74084
|
dsn: DSN,
|
|
74085
74085
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
74086
|
-
release: "9.177.
|
|
74086
|
+
release: "9.177.11",
|
|
74087
74087
|
sendDefaultPii: false,
|
|
74088
74088
|
tracesSampleRate: 0,
|
|
74089
74089
|
shutdownTimeout: 500,
|
|
@@ -74102,7 +74102,7 @@ if (DSN) {
|
|
|
74102
74102
|
}
|
|
74103
74103
|
});
|
|
74104
74104
|
setContext("cli", {
|
|
74105
|
-
version: "9.177.
|
|
74105
|
+
version: "9.177.11",
|
|
74106
74106
|
command: process.argv.slice(2).join(" ")
|
|
74107
74107
|
});
|
|
74108
74108
|
setContext("runtime", {
|
|
@@ -107081,6 +107081,7 @@ var networkLogEntrySchema = external_exports.object({
|
|
|
107081
107081
|
latency_ms: external_exports.number().optional(),
|
|
107082
107082
|
request_size: external_exports.number().optional(),
|
|
107083
107083
|
response_size: external_exports.number().optional(),
|
|
107084
|
+
browser_user_agent: external_exports.boolean().optional(),
|
|
107084
107085
|
dns_event: external_exports.string().optional(),
|
|
107085
107086
|
dns_query_type: external_exports.string().optional(),
|
|
107086
107087
|
dns_result: external_exports.string().optional(),
|
|
@@ -109684,6 +109685,19 @@ var zeroComputerUseCommandContract = c23.router({
|
|
|
109684
109685
|
404: apiErrorSchema
|
|
109685
109686
|
},
|
|
109686
109687
|
summary: "Get a desktop computer-use command result"
|
|
109688
|
+
},
|
|
109689
|
+
getScreenshot: {
|
|
109690
|
+
method: "GET",
|
|
109691
|
+
path: "/api/zero/computer-use/commands/:commandId/screenshot",
|
|
109692
|
+
headers: authHeadersSchema,
|
|
109693
|
+
pathParams: commandIdPathParamsSchema,
|
|
109694
|
+
responses: {
|
|
109695
|
+
200: c23.noBody(),
|
|
109696
|
+
401: apiErrorSchema,
|
|
109697
|
+
403: apiErrorSchema,
|
|
109698
|
+
404: apiErrorSchema
|
|
109699
|
+
},
|
|
109700
|
+
summary: "Download a desktop computer-use command screenshot"
|
|
109687
109701
|
}
|
|
109688
109702
|
});
|
|
109689
109703
|
var zeroComputerUseWriteCommandContract = c23.router({
|
|
@@ -109853,6 +109867,25 @@ async function getComputerUseCommand(commandId) {
|
|
|
109853
109867
|
}
|
|
109854
109868
|
handleError(result, "Failed to get computer-use command");
|
|
109855
109869
|
}
|
|
109870
|
+
async function fetchComputerUseScreenshot(commandId) {
|
|
109871
|
+
const config4 = await getComputerUseClientConfig();
|
|
109872
|
+
const response = await fetch(
|
|
109873
|
+
`${config4.baseUrl}/api/zero/computer-use/commands/${encodeURIComponent(
|
|
109874
|
+
commandId
|
|
109875
|
+
)}/screenshot`,
|
|
109876
|
+
{ headers: config4.baseHeaders }
|
|
109877
|
+
);
|
|
109878
|
+
if (!response.ok) {
|
|
109879
|
+
throw new ApiRequestError(
|
|
109880
|
+
"Failed to download computer-use screenshot",
|
|
109881
|
+
"REQUEST_FAILED",
|
|
109882
|
+
response.status
|
|
109883
|
+
);
|
|
109884
|
+
}
|
|
109885
|
+
const arrayBuffer = await response.arrayBuffer();
|
|
109886
|
+
const mimeType = response.headers.get("content-type") ?? "application/octet-stream";
|
|
109887
|
+
return { buffer: Buffer.from(arrayBuffer), mimeType };
|
|
109888
|
+
}
|
|
109856
109889
|
|
|
109857
109890
|
// src/lib/api/domains/zero-maps.ts
|
|
109858
109891
|
init_esm_shims();
|
|
@@ -128131,6 +128164,9 @@ var cronReconcileBillingEntitlementsResponseSchema = external_exports.object({
|
|
|
128131
128164
|
var cronTelegramCleanupResponseSchema = external_exports.object({
|
|
128132
128165
|
deleted: external_exports.number()
|
|
128133
128166
|
});
|
|
128167
|
+
var cronComputerUseScreenshotCleanupResponseSchema = external_exports.object({
|
|
128168
|
+
cleaned: external_exports.number()
|
|
128169
|
+
});
|
|
128134
128170
|
var cronDrainEmailOutboxResponseSchema = external_exports.object({
|
|
128135
128171
|
success: external_exports.literal(true),
|
|
128136
128172
|
drained: external_exports.number(),
|
|
@@ -128211,6 +128247,18 @@ var cronTelegramCleanupContract = c54.router({
|
|
|
128211
128247
|
summary: "Delete expired Telegram messages"
|
|
128212
128248
|
}
|
|
128213
128249
|
});
|
|
128250
|
+
var cronComputerUseScreenshotCleanupContract = c54.router({
|
|
128251
|
+
cleanup: {
|
|
128252
|
+
method: "GET",
|
|
128253
|
+
path: "/api/cron/computer-use-screenshot-cleanup",
|
|
128254
|
+
headers: authHeadersSchema,
|
|
128255
|
+
responses: {
|
|
128256
|
+
200: cronComputerUseScreenshotCleanupResponseSchema,
|
|
128257
|
+
401: apiErrorSchema
|
|
128258
|
+
},
|
|
128259
|
+
summary: "Delete expired desktop computer-use screenshots"
|
|
128260
|
+
}
|
|
128261
|
+
});
|
|
128214
128262
|
var cronDrainEmailOutboxContract = c54.router({
|
|
128215
128263
|
drain: {
|
|
128216
128264
|
method: "GET",
|
|
@@ -130549,6 +130597,7 @@ var zeroUploadsContract = c99.router({
|
|
|
130549
130597
|
200: prepareResponseSchema,
|
|
130550
130598
|
400: apiErrorSchema,
|
|
130551
130599
|
401: apiErrorSchema,
|
|
130600
|
+
402: apiErrorSchema,
|
|
130552
130601
|
403: apiErrorSchema,
|
|
130553
130602
|
500: apiErrorSchema
|
|
130554
130603
|
},
|
|
@@ -130563,6 +130612,7 @@ var zeroUploadsContract = c99.router({
|
|
|
130563
130612
|
200: completeResponseSchema,
|
|
130564
130613
|
400: apiErrorSchema,
|
|
130565
130614
|
401: apiErrorSchema,
|
|
130615
|
+
402: apiErrorSchema,
|
|
130566
130616
|
403: apiErrorSchema,
|
|
130567
130617
|
404: apiErrorSchema,
|
|
130568
130618
|
500: apiErrorSchema
|
|
@@ -130618,6 +130668,7 @@ var zeroHostContract = c100.router({
|
|
|
130618
130668
|
200: hostedSitePrepareResponseSchema,
|
|
130619
130669
|
400: apiErrorSchema,
|
|
130620
130670
|
401: apiErrorSchema,
|
|
130671
|
+
402: apiErrorSchema,
|
|
130621
130672
|
403: apiErrorSchema,
|
|
130622
130673
|
409: apiErrorSchema,
|
|
130623
130674
|
500: apiErrorSchema
|
|
@@ -130636,6 +130687,7 @@ var zeroHostContract = c100.router({
|
|
|
130636
130687
|
200: hostedSiteCompleteResponseSchema,
|
|
130637
130688
|
400: apiErrorSchema,
|
|
130638
130689
|
401: apiErrorSchema,
|
|
130690
|
+
402: apiErrorSchema,
|
|
130639
130691
|
403: apiErrorSchema,
|
|
130640
130692
|
404: apiErrorSchema,
|
|
130641
130693
|
409: apiErrorSchema,
|
|
@@ -132869,6 +132921,7 @@ export {
|
|
|
132869
132921
|
createComputerUseReadCommand,
|
|
132870
132922
|
createComputerUseWriteCommand,
|
|
132871
132923
|
getComputerUseCommand,
|
|
132924
|
+
fetchComputerUseScreenshot,
|
|
132872
132925
|
callZeroMaps,
|
|
132873
132926
|
downloadWebFile,
|
|
132874
132927
|
uploadWebFile,
|
|
@@ -132925,4 +132978,4 @@ undici/lib/web/fetch/body.js:
|
|
|
132925
132978
|
undici/lib/web/websocket/frame.js:
|
|
132926
132979
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
132927
132980
|
*/
|
|
132928
|
-
//# sourceMappingURL=chunk-
|
|
132981
|
+
//# sourceMappingURL=chunk-26CIENVP.js.map
|