@vm0/cli 9.246.10 → 9.247.0
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/{agent-I3JFWK4N.js → agent-YLCZG4ST.js} +5 -5
- package/{banking-IARZ5AWJ.js → banking-A4VPNAGY.js} +3 -3
- package/{chat-UNFIWAPR.js → chat-C6P67WYO.js} +4 -4
- package/{chunk-PAHALCUI.js → chunk-FYZS5VEA.js} +71 -13
- package/chunk-FYZS5VEA.js.map +1 -0
- package/{chunk-2ZI6BEAC.js → chunk-HFXL5AVL.js} +2 -2
- package/{chunk-HYU6KI5A.js → chunk-HYRTW4LY.js} +2 -2
- package/{chunk-3PJP2SGA.js → chunk-JREZPGL7.js} +163 -40
- package/chunk-JREZPGL7.js.map +1 -0
- package/{chunk-RR7BZ6EH.js → chunk-KBKTQLGX.js} +2 -2
- package/{chunk-DPSR6NPE.js → chunk-LA4I64KW.js} +2 -2
- package/{chunk-6VTJPGKG.js → chunk-TM2JASGG.js} +2 -2
- package/{chunk-NHK2KDYS.js → chunk-VTVYDURY.js} +4 -4
- package/{computer-use-EZM7EXRZ.js → computer-use-HZLNEZ2I.js} +3 -3
- package/{connector-KYP4HOSX.js → connector-6LDMVILB.js} +6 -6
- package/{credit-T6W5CAB5.js → credit-E4DPMKBT.js} +4 -4
- package/{developer-support-KWXMW2SF.js → developer-support-E3FEFRY2.js} +3 -3
- package/{doctor-4S6XFRNC.js → doctor-ILWD6C2K.js} +3 -3
- package/{generate-EK3TSRNK.js → generate-N6R5TZZ2.js} +4 -4
- package/{github-TINANPSO.js → github-VDCFYJIH.js} +3 -3
- package/{goal-T2PXNJTM.js → goal-DQCWM4I3.js} +3 -3
- package/{host-OM6O74S6.js → host-7CN3NZRQ.js} +3 -3
- package/{logs-PGH4FABT.js → logs-52MLVLCY.js} +4 -4
- package/{mail-MECJAUVM.js → mail-MEI2ARFN.js} +5 -5
- package/{maps-KMVRBVEX.js → maps-HOSDZCTR.js} +3 -3
- package/{model-MPUHVF7H.js → model-YPG2ESDH.js} +4 -4
- package/{model-provider-27TZ6VFX.js → model-provider-CRSYVHTZ.js} +4 -4
- package/{org-FNSENJJO.js → org-QAEZNHHR.js} +3 -3
- package/package.json +1 -1
- package/{phone-LLPXOOJW.js → phone-KBACVWG7.js} +3 -3
- package/{preference-FUSV446Z.js → preference-CZ5T4ZH6.js} +3 -3
- package/{resource-NIMK4DX6.js → resource-6O5NRYUA.js} +3 -3
- package/{scrape-XLX64EOI.js → scrape-XTWF7NE4.js} +3 -3
- package/{search-6E2N4DQB.js → search-OI5PNIX3.js} +4 -4
- package/{secret-IEATUVEL.js → secret-S6Z5NHSK.js} +3 -3
- package/{slack-6ETEPWTV.js → slack-RTT7D47V.js} +3 -3
- package/{teams-7YDYQBYQ.js → teams-WS6I3ZMV.js} +3 -3
- package/{telegram-2R6NQS4O.js → telegram-Q2GNTJFX.js} +3 -3
- package/{variable-TEEBVVZE.js → variable-4WVPWYYU.js} +3 -3
- package/{video-ZA3IQ2ZY.js → video-B3UGIF3E.js} +2 -2
- package/weather-JLYOYLJR.js +216 -0
- package/weather-JLYOYLJR.js.map +1 -0
- package/{web-4GADX76H.js → web-3RIJORTL.js} +3 -3
- package/{web-search-K4BAJAXZ.js → web-search-CVZYQ7HH.js} +3 -3
- package/{whoami-JDTHGADP.js → whoami-U2VXOZNF.js} +5 -5
- package/{workflow-4R2DFMCY.js → workflow-OTBS5W7K.js} +3 -3
- package/zero.js +47 -36
- package/zero.js.map +1 -1
- package/chunk-3PJP2SGA.js.map +0 -1
- package/chunk-PAHALCUI.js.map +0 -1
- /package/{agent-I3JFWK4N.js.map → agent-YLCZG4ST.js.map} +0 -0
- /package/{banking-IARZ5AWJ.js.map → banking-A4VPNAGY.js.map} +0 -0
- /package/{chat-UNFIWAPR.js.map → chat-C6P67WYO.js.map} +0 -0
- /package/{chunk-2ZI6BEAC.js.map → chunk-HFXL5AVL.js.map} +0 -0
- /package/{chunk-HYU6KI5A.js.map → chunk-HYRTW4LY.js.map} +0 -0
- /package/{chunk-RR7BZ6EH.js.map → chunk-KBKTQLGX.js.map} +0 -0
- /package/{chunk-DPSR6NPE.js.map → chunk-LA4I64KW.js.map} +0 -0
- /package/{chunk-6VTJPGKG.js.map → chunk-TM2JASGG.js.map} +0 -0
- /package/{chunk-NHK2KDYS.js.map → chunk-VTVYDURY.js.map} +0 -0
- /package/{computer-use-EZM7EXRZ.js.map → computer-use-HZLNEZ2I.js.map} +0 -0
- /package/{connector-KYP4HOSX.js.map → connector-6LDMVILB.js.map} +0 -0
- /package/{credit-T6W5CAB5.js.map → credit-E4DPMKBT.js.map} +0 -0
- /package/{developer-support-KWXMW2SF.js.map → developer-support-E3FEFRY2.js.map} +0 -0
- /package/{doctor-4S6XFRNC.js.map → doctor-ILWD6C2K.js.map} +0 -0
- /package/{generate-EK3TSRNK.js.map → generate-N6R5TZZ2.js.map} +0 -0
- /package/{github-TINANPSO.js.map → github-VDCFYJIH.js.map} +0 -0
- /package/{goal-T2PXNJTM.js.map → goal-DQCWM4I3.js.map} +0 -0
- /package/{host-OM6O74S6.js.map → host-7CN3NZRQ.js.map} +0 -0
- /package/{logs-PGH4FABT.js.map → logs-52MLVLCY.js.map} +0 -0
- /package/{mail-MECJAUVM.js.map → mail-MEI2ARFN.js.map} +0 -0
- /package/{maps-KMVRBVEX.js.map → maps-HOSDZCTR.js.map} +0 -0
- /package/{model-MPUHVF7H.js.map → model-YPG2ESDH.js.map} +0 -0
- /package/{model-provider-27TZ6VFX.js.map → model-provider-CRSYVHTZ.js.map} +0 -0
- /package/{org-FNSENJJO.js.map → org-QAEZNHHR.js.map} +0 -0
- /package/{phone-LLPXOOJW.js.map → phone-KBACVWG7.js.map} +0 -0
- /package/{preference-FUSV446Z.js.map → preference-CZ5T4ZH6.js.map} +0 -0
- /package/{resource-NIMK4DX6.js.map → resource-6O5NRYUA.js.map} +0 -0
- /package/{scrape-XLX64EOI.js.map → scrape-XTWF7NE4.js.map} +0 -0
- /package/{search-6E2N4DQB.js.map → search-OI5PNIX3.js.map} +0 -0
- /package/{secret-IEATUVEL.js.map → secret-S6Z5NHSK.js.map} +0 -0
- /package/{slack-6ETEPWTV.js.map → slack-RTT7D47V.js.map} +0 -0
- /package/{teams-7YDYQBYQ.js.map → teams-WS6I3ZMV.js.map} +0 -0
- /package/{telegram-2R6NQS4O.js.map → telegram-Q2GNTJFX.js.map} +0 -0
- /package/{variable-TEEBVVZE.js.map → variable-4WVPWYYU.js.map} +0 -0
- /package/{video-ZA3IQ2ZY.js.map → video-B3UGIF3E.js.map} +0 -0
- /package/{web-4GADX76H.js.map → web-3RIJORTL.js.map} +0 -0
- /package/{web-search-K4BAJAXZ.js.map → web-search-CVZYQ7HH.js.map} +0 -0
- /package/{whoami-JDTHGADP.js.map → whoami-U2VXOZNF.js.map} +0 -0
- /package/{workflow-4R2DFMCY.js.map → workflow-OTBS5W7K.js.map} +0 -0
|
@@ -4,14 +4,14 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
loadConnectorPermissionInfos,
|
|
6
6
|
policyIcon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VTVYDURY.js";
|
|
8
8
|
import {
|
|
9
9
|
isInteractive,
|
|
10
10
|
promptConfirm
|
|
11
11
|
} from "./chunk-JFY6GK7Y.js";
|
|
12
12
|
import {
|
|
13
13
|
permissionGrantsToFirewallPolicies
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KBKTQLGX.js";
|
|
15
15
|
import {
|
|
16
16
|
createZeroAgent,
|
|
17
17
|
deleteZeroAgent,
|
|
@@ -23,12 +23,12 @@ import {
|
|
|
23
23
|
listZeroUserPermissionGrants,
|
|
24
24
|
updateZeroAgent,
|
|
25
25
|
updateZeroAgentInstructions
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FYZS5VEA.js";
|
|
27
27
|
import "./chunk-LTDQISD7.js";
|
|
28
28
|
import {
|
|
29
29
|
source_default,
|
|
30
30
|
withErrorHandler
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-HYRTW4LY.js";
|
|
32
32
|
import "./chunk-LRHXR7JT.js";
|
|
33
33
|
import {
|
|
34
34
|
Command
|
|
@@ -593,4 +593,4 @@ Notes:
|
|
|
593
593
|
export {
|
|
594
594
|
zeroAgentCommand
|
|
595
595
|
};
|
|
596
|
-
//# sourceMappingURL=agent-
|
|
596
|
+
//# sourceMappingURL=agent-YLCZG4ST.js.map
|
|
@@ -3,12 +3,12 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
callZeroBanking
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FYZS5VEA.js";
|
|
7
7
|
import "./chunk-LTDQISD7.js";
|
|
8
8
|
import {
|
|
9
9
|
source_default,
|
|
10
10
|
withErrorHandler
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HYRTW4LY.js";
|
|
12
12
|
import "./chunk-LRHXR7JT.js";
|
|
13
13
|
import {
|
|
14
14
|
Command,
|
|
@@ -113,4 +113,4 @@ Notes:
|
|
|
113
113
|
export {
|
|
114
114
|
zeroBankingCommand
|
|
115
115
|
};
|
|
116
|
-
//# sourceMappingURL=banking-
|
|
116
|
+
//# sourceMappingURL=banking-A4VPNAGY.js.map
|
|
@@ -3,18 +3,18 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
formatModelProviderRoute
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LA4I64KW.js";
|
|
7
7
|
import {
|
|
8
8
|
getZeroChatThread,
|
|
9
9
|
listZeroModelPolicies,
|
|
10
10
|
renameZeroChatThread,
|
|
11
11
|
updateZeroChatThreadModelSelection
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FYZS5VEA.js";
|
|
13
13
|
import "./chunk-LTDQISD7.js";
|
|
14
14
|
import {
|
|
15
15
|
source_default,
|
|
16
16
|
withErrorHandler
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-HYRTW4LY.js";
|
|
18
18
|
import "./chunk-LRHXR7JT.js";
|
|
19
19
|
import {
|
|
20
20
|
Command
|
|
@@ -242,4 +242,4 @@ Examples:
|
|
|
242
242
|
export {
|
|
243
243
|
zeroChatCommand
|
|
244
244
|
};
|
|
245
|
-
//# sourceMappingURL=chat-
|
|
245
|
+
//# sourceMappingURL=chat-C6P67WYO.js.map
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
updateOrgModelPoliciesRequestSchema,
|
|
22
22
|
upsertModelProviderRequestSchema,
|
|
23
23
|
upsertModelProviderResponseSchema
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HYRTW4LY.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__esm,
|
|
@@ -8942,6 +8942,63 @@ async function callZeroMaps(operation, body) {
|
|
|
8942
8942
|
return await response.json();
|
|
8943
8943
|
}
|
|
8944
8944
|
|
|
8945
|
+
// src/lib/api/domains/zero-weather.ts
|
|
8946
|
+
init_esm_shims();
|
|
8947
|
+
function authenticatedJsonHeaders2(token) {
|
|
8948
|
+
const headers = {
|
|
8949
|
+
Authorization: `Bearer ${token}`,
|
|
8950
|
+
"Content-Type": "application/json"
|
|
8951
|
+
};
|
|
8952
|
+
const bypassSecret = process.env.VERCEL_AUTOMATION_BYPASS_SECRET;
|
|
8953
|
+
if (bypassSecret) {
|
|
8954
|
+
headers["x-vercel-protection-bypass"] = bypassSecret;
|
|
8955
|
+
}
|
|
8956
|
+
return headers;
|
|
8957
|
+
}
|
|
8958
|
+
function isRecord3(value) {
|
|
8959
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
8960
|
+
}
|
|
8961
|
+
async function parseErrorBody2(response) {
|
|
8962
|
+
let message = `Zero Weather request failed (HTTP ${response.status})`;
|
|
8963
|
+
let code = response.status === 404 ? "NOT_FOUND" : "UNKNOWN";
|
|
8964
|
+
try {
|
|
8965
|
+
const body = await response.json();
|
|
8966
|
+
if (isRecord3(body) && isRecord3(body.error)) {
|
|
8967
|
+
if (typeof body.error.message === "string") {
|
|
8968
|
+
message = body.error.message;
|
|
8969
|
+
}
|
|
8970
|
+
if (typeof body.error.code === "string") {
|
|
8971
|
+
code = body.error.code;
|
|
8972
|
+
}
|
|
8973
|
+
}
|
|
8974
|
+
} catch {
|
|
8975
|
+
}
|
|
8976
|
+
if (response.status === 404 && code === "NOT_FOUND") {
|
|
8977
|
+
message = "Zero Weather API is not available on this server yet. Try again after the weather backend is deployed.";
|
|
8978
|
+
}
|
|
8979
|
+
return { message, code };
|
|
8980
|
+
}
|
|
8981
|
+
async function callZeroWeather(operation, body) {
|
|
8982
|
+
const baseUrl = await getBaseUrl();
|
|
8983
|
+
const token = await getActiveToken();
|
|
8984
|
+
if (!token) {
|
|
8985
|
+
throw new ApiRequestError("Not authenticated", "UNAUTHORIZED", 401);
|
|
8986
|
+
}
|
|
8987
|
+
const response = await fetch(
|
|
8988
|
+
new URL(`/api/zero/weather/${operation}`, baseUrl),
|
|
8989
|
+
{
|
|
8990
|
+
method: "POST",
|
|
8991
|
+
headers: headersWithCliClientHeaders(authenticatedJsonHeaders2(token)),
|
|
8992
|
+
body: JSON.stringify(body)
|
|
8993
|
+
}
|
|
8994
|
+
);
|
|
8995
|
+
if (!response.ok) {
|
|
8996
|
+
const { message, code } = await parseErrorBody2(response);
|
|
8997
|
+
throw new ApiRequestError(message, code, response.status);
|
|
8998
|
+
}
|
|
8999
|
+
return await response.json();
|
|
9000
|
+
}
|
|
9001
|
+
|
|
8945
9002
|
// ../../packages/api-contracts/src/contracts/zero-scrape.ts
|
|
8946
9003
|
init_esm_shims();
|
|
8947
9004
|
var c29 = initContract();
|
|
@@ -9141,7 +9198,7 @@ async function callZeroWebSearch(body) {
|
|
|
9141
9198
|
|
|
9142
9199
|
// src/lib/api/domains/zero-banking.ts
|
|
9143
9200
|
init_esm_shims();
|
|
9144
|
-
function
|
|
9201
|
+
function authenticatedJsonHeaders3(token) {
|
|
9145
9202
|
const headers = {
|
|
9146
9203
|
Authorization: `Bearer ${token}`,
|
|
9147
9204
|
"Content-Type": "application/json"
|
|
@@ -9152,15 +9209,15 @@ function authenticatedJsonHeaders2(token) {
|
|
|
9152
9209
|
}
|
|
9153
9210
|
return headers;
|
|
9154
9211
|
}
|
|
9155
|
-
function
|
|
9212
|
+
function isRecord4(value) {
|
|
9156
9213
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
9157
9214
|
}
|
|
9158
|
-
async function
|
|
9215
|
+
async function parseErrorBody3(response) {
|
|
9159
9216
|
let message = `Zero Banking request failed (HTTP ${response.status})`;
|
|
9160
9217
|
let code = response.status === 404 ? "NOT_FOUND" : "UNKNOWN";
|
|
9161
9218
|
try {
|
|
9162
9219
|
const body = await response.json();
|
|
9163
|
-
if (
|
|
9220
|
+
if (isRecord4(body) && isRecord4(body.error)) {
|
|
9164
9221
|
if (typeof body.error.message === "string") {
|
|
9165
9222
|
message = body.error.message;
|
|
9166
9223
|
}
|
|
@@ -9185,12 +9242,12 @@ async function callZeroBanking(operation, body) {
|
|
|
9185
9242
|
new URL(`/api/zero/banking/${operation}`, baseUrl),
|
|
9186
9243
|
{
|
|
9187
9244
|
method: "POST",
|
|
9188
|
-
headers: headersWithCliClientHeaders(
|
|
9245
|
+
headers: headersWithCliClientHeaders(authenticatedJsonHeaders3(token)),
|
|
9189
9246
|
body: JSON.stringify(body)
|
|
9190
9247
|
}
|
|
9191
9248
|
);
|
|
9192
9249
|
if (!response.ok) {
|
|
9193
|
-
const { message, code } = await
|
|
9250
|
+
const { message, code } = await parseErrorBody3(response);
|
|
9194
9251
|
throw new ApiRequestError(message, code, response.status);
|
|
9195
9252
|
}
|
|
9196
9253
|
return await response.json();
|
|
@@ -11738,7 +11795,7 @@ function authHeaders(token, options = {}) {
|
|
|
11738
11795
|
}
|
|
11739
11796
|
return headers;
|
|
11740
11797
|
}
|
|
11741
|
-
async function
|
|
11798
|
+
async function parseErrorBody4(response, fallback) {
|
|
11742
11799
|
let message = `${fallback} (HTTP ${response.status})`;
|
|
11743
11800
|
let code = "UNKNOWN";
|
|
11744
11801
|
try {
|
|
@@ -11768,7 +11825,7 @@ async function prepareHostedSite(body) {
|
|
|
11768
11825
|
}
|
|
11769
11826
|
);
|
|
11770
11827
|
if (!response.ok) {
|
|
11771
|
-
const { message, code } = await
|
|
11828
|
+
const { message, code } = await parseErrorBody4(
|
|
11772
11829
|
response,
|
|
11773
11830
|
"Failed to prepare hosted-site deployment"
|
|
11774
11831
|
);
|
|
@@ -11790,7 +11847,7 @@ async function completeHostedSite(deploymentId) {
|
|
|
11790
11847
|
}
|
|
11791
11848
|
);
|
|
11792
11849
|
if (!response.ok) {
|
|
11793
|
-
const { message, code } = await
|
|
11850
|
+
const { message, code } = await parseErrorBody4(
|
|
11794
11851
|
response,
|
|
11795
11852
|
"Failed to complete hosted-site deployment"
|
|
11796
11853
|
);
|
|
@@ -11812,7 +11869,7 @@ async function getHostedSiteFiles(publicSlug, version) {
|
|
|
11812
11869
|
headers: headersWithCliClientHeaders(authHeaders(token))
|
|
11813
11870
|
});
|
|
11814
11871
|
if (!response.ok) {
|
|
11815
|
-
const { message, code } = await
|
|
11872
|
+
const { message, code } = await parseErrorBody4(
|
|
11816
11873
|
response,
|
|
11817
11874
|
"Failed to get hosted-site files"
|
|
11818
11875
|
);
|
|
@@ -11833,7 +11890,7 @@ async function getHostedSiteDeployments(site) {
|
|
|
11833
11890
|
}
|
|
11834
11891
|
);
|
|
11835
11892
|
if (!response.ok) {
|
|
11836
|
-
const { message, code } = await
|
|
11893
|
+
const { message, code } = await parseErrorBody4(
|
|
11837
11894
|
response,
|
|
11838
11895
|
"Failed to list hosted-site deployments"
|
|
11839
11896
|
);
|
|
@@ -11963,6 +12020,7 @@ export {
|
|
|
11963
12020
|
fetchComputerUseScreenshot,
|
|
11964
12021
|
fetchComputerUsePluginContent,
|
|
11965
12022
|
callZeroMaps,
|
|
12023
|
+
callZeroWeather,
|
|
11966
12024
|
zeroScrapeFormatSchema,
|
|
11967
12025
|
zeroScrapeModeSchema,
|
|
11968
12026
|
callZeroScrape,
|
|
@@ -11979,4 +12037,4 @@ export {
|
|
|
11979
12037
|
getHostedSiteFiles,
|
|
11980
12038
|
getHostedSiteDeployments
|
|
11981
12039
|
};
|
|
11982
|
-
//# sourceMappingURL=chunk-
|
|
12040
|
+
//# sourceMappingURL=chunk-FYZS5VEA.js.map
|