@vm0/cli 9.177.10 → 9.177.12
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-6E4KIIR5.js} +90 -16
- package/{chunk-AXV23NAE.js.map → chunk-6E4KIIR5.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.12",
|
|
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.12",
|
|
74106
74106
|
command: process.argv.slice(2).join(" ")
|
|
74107
74107
|
});
|
|
74108
74108
|
setContext("runtime", {
|
|
@@ -105061,6 +105061,18 @@ var tavily = {
|
|
|
105061
105061
|
// ../../packages/connectors/src/connectors/test-oauth.ts
|
|
105062
105062
|
init_esm_shims();
|
|
105063
105063
|
var OAUTH_TOKEN_URL37 = "/api/test/oauth-provider/token";
|
|
105064
|
+
var TEST_OAUTH_CLIENT = {
|
|
105065
|
+
clientRegistration: "static",
|
|
105066
|
+
clientType: "confidential",
|
|
105067
|
+
clientId: "test-oauth-client",
|
|
105068
|
+
clientSecret: "test-oauth-secret"
|
|
105069
|
+
};
|
|
105070
|
+
var TEST_OAUTH_AUTH_CODE_GRANT = {
|
|
105071
|
+
kind: "auth-code",
|
|
105072
|
+
tokenUrl: OAUTH_TOKEN_URL37,
|
|
105073
|
+
scopes: ["read"]
|
|
105074
|
+
};
|
|
105075
|
+
var TEST_OAUTH_REVOKE = { kind: "none" };
|
|
105064
105076
|
var testOauth = {
|
|
105065
105077
|
"test-oauth": {
|
|
105066
105078
|
label: "Test OAuth (internal)",
|
|
@@ -105071,17 +105083,8 @@ var testOauth = {
|
|
|
105071
105083
|
featureFlag: "testOauthConnector" /* TestOauthConnector */,
|
|
105072
105084
|
label: "OAuth",
|
|
105073
105085
|
helpText: "Test-only OAuth provider. Only reachable in dev/preview.",
|
|
105074
|
-
client:
|
|
105075
|
-
|
|
105076
|
-
clientType: "confidential",
|
|
105077
|
-
clientId: "test-oauth-client",
|
|
105078
|
-
clientSecret: "test-oauth-secret"
|
|
105079
|
-
},
|
|
105080
|
-
grant: {
|
|
105081
|
-
kind: "auth-code",
|
|
105082
|
-
tokenUrl: OAUTH_TOKEN_URL37,
|
|
105083
|
-
scopes: ["read"]
|
|
105084
|
-
},
|
|
105086
|
+
client: TEST_OAUTH_CLIENT,
|
|
105087
|
+
grant: TEST_OAUTH_AUTH_CODE_GRANT,
|
|
105085
105088
|
access: {
|
|
105086
105089
|
kind: "refresh-token",
|
|
105087
105090
|
tokenUrl: OAUTH_TOKEN_URL37,
|
|
@@ -105091,7 +105094,24 @@ var testOauth = {
|
|
|
105091
105094
|
TEST_OAUTH_TOKEN: "$secrets.TEST_OAUTH_ACCESS_TOKEN"
|
|
105092
105095
|
}
|
|
105093
105096
|
},
|
|
105094
|
-
revoke:
|
|
105097
|
+
revoke: TEST_OAUTH_REVOKE
|
|
105098
|
+
},
|
|
105099
|
+
api: {
|
|
105100
|
+
featureFlag: "testOauthConnector" /* TestOauthConnector */,
|
|
105101
|
+
label: "API OAuth",
|
|
105102
|
+
helpText: "Secondary test-only OAuth method used to exercise method-aware provider registration.",
|
|
105103
|
+
client: TEST_OAUTH_CLIENT,
|
|
105104
|
+
grant: TEST_OAUTH_AUTH_CODE_GRANT,
|
|
105105
|
+
access: {
|
|
105106
|
+
kind: "refresh-token",
|
|
105107
|
+
tokenUrl: OAUTH_TOKEN_URL37,
|
|
105108
|
+
accessToken: "TEST_OAUTH_API_ACCESS_TOKEN",
|
|
105109
|
+
refreshToken: "TEST_OAUTH_API_REFRESH_TOKEN",
|
|
105110
|
+
envBindings: {
|
|
105111
|
+
TEST_OAUTH_TOKEN: "$secrets.TEST_OAUTH_API_ACCESS_TOKEN"
|
|
105112
|
+
}
|
|
105113
|
+
},
|
|
105114
|
+
revoke: TEST_OAUTH_REVOKE
|
|
105095
105115
|
}
|
|
105096
105116
|
},
|
|
105097
105117
|
defaultAuthMethod: "oauth"
|
|
@@ -107081,6 +107101,7 @@ var networkLogEntrySchema = external_exports.object({
|
|
|
107081
107101
|
latency_ms: external_exports.number().optional(),
|
|
107082
107102
|
request_size: external_exports.number().optional(),
|
|
107083
107103
|
response_size: external_exports.number().optional(),
|
|
107104
|
+
browser_user_agent: external_exports.boolean().optional(),
|
|
107084
107105
|
dns_event: external_exports.string().optional(),
|
|
107085
107106
|
dns_query_type: external_exports.string().optional(),
|
|
107086
107107
|
dns_result: external_exports.string().optional(),
|
|
@@ -108317,7 +108338,8 @@ var zeroRunRequestSchema = unifiedRunRequestSchema.omit({
|
|
|
108317
108338
|
secrets: true,
|
|
108318
108339
|
agentComposeId: true,
|
|
108319
108340
|
appendSystemPrompt: true,
|
|
108320
|
-
modelProviderType: true
|
|
108341
|
+
modelProviderType: true,
|
|
108342
|
+
permissionPolicies: true
|
|
108321
108343
|
}).extend({
|
|
108322
108344
|
agentId: external_exports.string().optional(),
|
|
108323
108345
|
modelProvider: external_exports.string().optional()
|
|
@@ -109684,6 +109706,19 @@ var zeroComputerUseCommandContract = c23.router({
|
|
|
109684
109706
|
404: apiErrorSchema
|
|
109685
109707
|
},
|
|
109686
109708
|
summary: "Get a desktop computer-use command result"
|
|
109709
|
+
},
|
|
109710
|
+
getScreenshot: {
|
|
109711
|
+
method: "GET",
|
|
109712
|
+
path: "/api/zero/computer-use/commands/:commandId/screenshot",
|
|
109713
|
+
headers: authHeadersSchema,
|
|
109714
|
+
pathParams: commandIdPathParamsSchema,
|
|
109715
|
+
responses: {
|
|
109716
|
+
200: c23.noBody(),
|
|
109717
|
+
401: apiErrorSchema,
|
|
109718
|
+
403: apiErrorSchema,
|
|
109719
|
+
404: apiErrorSchema
|
|
109720
|
+
},
|
|
109721
|
+
summary: "Download a desktop computer-use command screenshot"
|
|
109687
109722
|
}
|
|
109688
109723
|
});
|
|
109689
109724
|
var zeroComputerUseWriteCommandContract = c23.router({
|
|
@@ -109853,6 +109888,25 @@ async function getComputerUseCommand(commandId) {
|
|
|
109853
109888
|
}
|
|
109854
109889
|
handleError(result, "Failed to get computer-use command");
|
|
109855
109890
|
}
|
|
109891
|
+
async function fetchComputerUseScreenshot(commandId) {
|
|
109892
|
+
const config4 = await getComputerUseClientConfig();
|
|
109893
|
+
const response = await fetch(
|
|
109894
|
+
`${config4.baseUrl}/api/zero/computer-use/commands/${encodeURIComponent(
|
|
109895
|
+
commandId
|
|
109896
|
+
)}/screenshot`,
|
|
109897
|
+
{ headers: config4.baseHeaders }
|
|
109898
|
+
);
|
|
109899
|
+
if (!response.ok) {
|
|
109900
|
+
throw new ApiRequestError(
|
|
109901
|
+
"Failed to download computer-use screenshot",
|
|
109902
|
+
"REQUEST_FAILED",
|
|
109903
|
+
response.status
|
|
109904
|
+
);
|
|
109905
|
+
}
|
|
109906
|
+
const arrayBuffer = await response.arrayBuffer();
|
|
109907
|
+
const mimeType = response.headers.get("content-type") ?? "application/octet-stream";
|
|
109908
|
+
return { buffer: Buffer.from(arrayBuffer), mimeType };
|
|
109909
|
+
}
|
|
109856
109910
|
|
|
109857
109911
|
// src/lib/api/domains/zero-maps.ts
|
|
109858
109912
|
init_esm_shims();
|
|
@@ -128131,6 +128185,9 @@ var cronReconcileBillingEntitlementsResponseSchema = external_exports.object({
|
|
|
128131
128185
|
var cronTelegramCleanupResponseSchema = external_exports.object({
|
|
128132
128186
|
deleted: external_exports.number()
|
|
128133
128187
|
});
|
|
128188
|
+
var cronComputerUseScreenshotCleanupResponseSchema = external_exports.object({
|
|
128189
|
+
cleaned: external_exports.number()
|
|
128190
|
+
});
|
|
128134
128191
|
var cronDrainEmailOutboxResponseSchema = external_exports.object({
|
|
128135
128192
|
success: external_exports.literal(true),
|
|
128136
128193
|
drained: external_exports.number(),
|
|
@@ -128211,6 +128268,18 @@ var cronTelegramCleanupContract = c54.router({
|
|
|
128211
128268
|
summary: "Delete expired Telegram messages"
|
|
128212
128269
|
}
|
|
128213
128270
|
});
|
|
128271
|
+
var cronComputerUseScreenshotCleanupContract = c54.router({
|
|
128272
|
+
cleanup: {
|
|
128273
|
+
method: "GET",
|
|
128274
|
+
path: "/api/cron/computer-use-screenshot-cleanup",
|
|
128275
|
+
headers: authHeadersSchema,
|
|
128276
|
+
responses: {
|
|
128277
|
+
200: cronComputerUseScreenshotCleanupResponseSchema,
|
|
128278
|
+
401: apiErrorSchema
|
|
128279
|
+
},
|
|
128280
|
+
summary: "Delete expired desktop computer-use screenshots"
|
|
128281
|
+
}
|
|
128282
|
+
});
|
|
128214
128283
|
var cronDrainEmailOutboxContract = c54.router({
|
|
128215
128284
|
drain: {
|
|
128216
128285
|
method: "GET",
|
|
@@ -130549,6 +130618,7 @@ var zeroUploadsContract = c99.router({
|
|
|
130549
130618
|
200: prepareResponseSchema,
|
|
130550
130619
|
400: apiErrorSchema,
|
|
130551
130620
|
401: apiErrorSchema,
|
|
130621
|
+
402: apiErrorSchema,
|
|
130552
130622
|
403: apiErrorSchema,
|
|
130553
130623
|
500: apiErrorSchema
|
|
130554
130624
|
},
|
|
@@ -130563,6 +130633,7 @@ var zeroUploadsContract = c99.router({
|
|
|
130563
130633
|
200: completeResponseSchema,
|
|
130564
130634
|
400: apiErrorSchema,
|
|
130565
130635
|
401: apiErrorSchema,
|
|
130636
|
+
402: apiErrorSchema,
|
|
130566
130637
|
403: apiErrorSchema,
|
|
130567
130638
|
404: apiErrorSchema,
|
|
130568
130639
|
500: apiErrorSchema
|
|
@@ -130618,6 +130689,7 @@ var zeroHostContract = c100.router({
|
|
|
130618
130689
|
200: hostedSitePrepareResponseSchema,
|
|
130619
130690
|
400: apiErrorSchema,
|
|
130620
130691
|
401: apiErrorSchema,
|
|
130692
|
+
402: apiErrorSchema,
|
|
130621
130693
|
403: apiErrorSchema,
|
|
130622
130694
|
409: apiErrorSchema,
|
|
130623
130695
|
500: apiErrorSchema
|
|
@@ -130636,6 +130708,7 @@ var zeroHostContract = c100.router({
|
|
|
130636
130708
|
200: hostedSiteCompleteResponseSchema,
|
|
130637
130709
|
400: apiErrorSchema,
|
|
130638
130710
|
401: apiErrorSchema,
|
|
130711
|
+
402: apiErrorSchema,
|
|
130639
130712
|
403: apiErrorSchema,
|
|
130640
130713
|
404: apiErrorSchema,
|
|
130641
130714
|
409: apiErrorSchema,
|
|
@@ -132869,6 +132942,7 @@ export {
|
|
|
132869
132942
|
createComputerUseReadCommand,
|
|
132870
132943
|
createComputerUseWriteCommand,
|
|
132871
132944
|
getComputerUseCommand,
|
|
132945
|
+
fetchComputerUseScreenshot,
|
|
132872
132946
|
callZeroMaps,
|
|
132873
132947
|
downloadWebFile,
|
|
132874
132948
|
uploadWebFile,
|
|
@@ -132925,4 +132999,4 @@ undici/lib/web/fetch/body.js:
|
|
|
132925
132999
|
undici/lib/web/websocket/frame.js:
|
|
132926
133000
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
132927
133001
|
*/
|
|
132928
|
-
//# sourceMappingURL=chunk-
|
|
133002
|
+
//# sourceMappingURL=chunk-6E4KIIR5.js.map
|