@vm0/cli 9.246.9 → 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.
Files changed (89) hide show
  1. package/{agent-G5F4BJAY.js → agent-YLCZG4ST.js} +5 -5
  2. package/{banking-Z46ZGJZD.js → banking-A4VPNAGY.js} +3 -3
  3. package/{chat-35B55XKY.js → chat-C6P67WYO.js} +4 -4
  4. package/{chunk-36XYOMWZ.js → chunk-FYZS5VEA.js} +71 -13
  5. package/chunk-FYZS5VEA.js.map +1 -0
  6. package/{chunk-3CSWRANL.js → chunk-HFXL5AVL.js} +2 -2
  7. package/{chunk-CSZ7QXX6.js → chunk-HYRTW4LY.js} +2 -2
  8. package/{chunk-KABC7CZS.js → chunk-JREZPGL7.js} +165 -48
  9. package/chunk-JREZPGL7.js.map +1 -0
  10. package/{chunk-MPMZUEOC.js → chunk-KBKTQLGX.js} +2 -2
  11. package/{chunk-R76DGX22.js → chunk-LA4I64KW.js} +2 -2
  12. package/{chunk-P2O4QBQZ.js → chunk-TM2JASGG.js} +2 -2
  13. package/{chunk-UXZHW5TS.js → chunk-VTVYDURY.js} +4 -4
  14. package/{computer-use-7W7H6ELG.js → computer-use-HZLNEZ2I.js} +3 -3
  15. package/{connector-KB3JLUFF.js → connector-6LDMVILB.js} +6 -6
  16. package/{credit-ZZF5YEYK.js → credit-E4DPMKBT.js} +4 -4
  17. package/{developer-support-DSNPXULZ.js → developer-support-E3FEFRY2.js} +3 -3
  18. package/{doctor-FWDBTPA6.js → doctor-ILWD6C2K.js} +3 -3
  19. package/{generate-K7MKITGV.js → generate-N6R5TZZ2.js} +4 -4
  20. package/{github-SGOHUEUZ.js → github-VDCFYJIH.js} +3 -3
  21. package/{goal-BLVEJSTJ.js → goal-DQCWM4I3.js} +3 -3
  22. package/{host-UFPDWT67.js → host-7CN3NZRQ.js} +3 -3
  23. package/{logs-7SJM6BBF.js → logs-52MLVLCY.js} +4 -4
  24. package/{mail-CGMM2FE4.js → mail-MEI2ARFN.js} +5 -5
  25. package/{maps-W3XAEZVV.js → maps-HOSDZCTR.js} +3 -3
  26. package/{model-AJQY5LZZ.js → model-YPG2ESDH.js} +4 -4
  27. package/{model-provider-APW6JITN.js → model-provider-CRSYVHTZ.js} +4 -4
  28. package/{org-5SZSNBM5.js → org-QAEZNHHR.js} +3 -3
  29. package/package.json +1 -1
  30. package/{phone-FUXN6RQI.js → phone-KBACVWG7.js} +3 -3
  31. package/{preference-2FSADPLE.js → preference-CZ5T4ZH6.js} +3 -3
  32. package/{resource-3RHJGT56.js → resource-6O5NRYUA.js} +3 -3
  33. package/{scrape-S6KOEH3K.js → scrape-XTWF7NE4.js} +3 -3
  34. package/{search-3YOIF3JN.js → search-OI5PNIX3.js} +4 -4
  35. package/{secret-PFVU45SQ.js → secret-S6Z5NHSK.js} +3 -3
  36. package/{slack-KS5DCC45.js → slack-RTT7D47V.js} +3 -3
  37. package/{teams-B2AUD3SX.js → teams-WS6I3ZMV.js} +3 -3
  38. package/{telegram-BCPH3ECW.js → telegram-Q2GNTJFX.js} +3 -3
  39. package/{variable-S4UWL5CG.js → variable-4WVPWYYU.js} +3 -3
  40. package/{video-ONM6HE6G.js → video-B3UGIF3E.js} +2 -2
  41. package/weather-JLYOYLJR.js +216 -0
  42. package/weather-JLYOYLJR.js.map +1 -0
  43. package/{web-Z4CC5ZTB.js → web-3RIJORTL.js} +3 -3
  44. package/{web-search-FCLPKEJ4.js → web-search-CVZYQ7HH.js} +3 -3
  45. package/{whoami-GODNJUJB.js → whoami-U2VXOZNF.js} +5 -5
  46. package/{workflow-CRLNDUSK.js → workflow-OTBS5W7K.js} +3 -3
  47. package/zero.js +47 -36
  48. package/zero.js.map +1 -1
  49. package/chunk-36XYOMWZ.js.map +0 -1
  50. package/chunk-KABC7CZS.js.map +0 -1
  51. /package/{agent-G5F4BJAY.js.map → agent-YLCZG4ST.js.map} +0 -0
  52. /package/{banking-Z46ZGJZD.js.map → banking-A4VPNAGY.js.map} +0 -0
  53. /package/{chat-35B55XKY.js.map → chat-C6P67WYO.js.map} +0 -0
  54. /package/{chunk-3CSWRANL.js.map → chunk-HFXL5AVL.js.map} +0 -0
  55. /package/{chunk-CSZ7QXX6.js.map → chunk-HYRTW4LY.js.map} +0 -0
  56. /package/{chunk-MPMZUEOC.js.map → chunk-KBKTQLGX.js.map} +0 -0
  57. /package/{chunk-R76DGX22.js.map → chunk-LA4I64KW.js.map} +0 -0
  58. /package/{chunk-P2O4QBQZ.js.map → chunk-TM2JASGG.js.map} +0 -0
  59. /package/{chunk-UXZHW5TS.js.map → chunk-VTVYDURY.js.map} +0 -0
  60. /package/{computer-use-7W7H6ELG.js.map → computer-use-HZLNEZ2I.js.map} +0 -0
  61. /package/{connector-KB3JLUFF.js.map → connector-6LDMVILB.js.map} +0 -0
  62. /package/{credit-ZZF5YEYK.js.map → credit-E4DPMKBT.js.map} +0 -0
  63. /package/{developer-support-DSNPXULZ.js.map → developer-support-E3FEFRY2.js.map} +0 -0
  64. /package/{doctor-FWDBTPA6.js.map → doctor-ILWD6C2K.js.map} +0 -0
  65. /package/{generate-K7MKITGV.js.map → generate-N6R5TZZ2.js.map} +0 -0
  66. /package/{github-SGOHUEUZ.js.map → github-VDCFYJIH.js.map} +0 -0
  67. /package/{goal-BLVEJSTJ.js.map → goal-DQCWM4I3.js.map} +0 -0
  68. /package/{host-UFPDWT67.js.map → host-7CN3NZRQ.js.map} +0 -0
  69. /package/{logs-7SJM6BBF.js.map → logs-52MLVLCY.js.map} +0 -0
  70. /package/{mail-CGMM2FE4.js.map → mail-MEI2ARFN.js.map} +0 -0
  71. /package/{maps-W3XAEZVV.js.map → maps-HOSDZCTR.js.map} +0 -0
  72. /package/{model-AJQY5LZZ.js.map → model-YPG2ESDH.js.map} +0 -0
  73. /package/{model-provider-APW6JITN.js.map → model-provider-CRSYVHTZ.js.map} +0 -0
  74. /package/{org-5SZSNBM5.js.map → org-QAEZNHHR.js.map} +0 -0
  75. /package/{phone-FUXN6RQI.js.map → phone-KBACVWG7.js.map} +0 -0
  76. /package/{preference-2FSADPLE.js.map → preference-CZ5T4ZH6.js.map} +0 -0
  77. /package/{resource-3RHJGT56.js.map → resource-6O5NRYUA.js.map} +0 -0
  78. /package/{scrape-S6KOEH3K.js.map → scrape-XTWF7NE4.js.map} +0 -0
  79. /package/{search-3YOIF3JN.js.map → search-OI5PNIX3.js.map} +0 -0
  80. /package/{secret-PFVU45SQ.js.map → secret-S6Z5NHSK.js.map} +0 -0
  81. /package/{slack-KS5DCC45.js.map → slack-RTT7D47V.js.map} +0 -0
  82. /package/{teams-B2AUD3SX.js.map → teams-WS6I3ZMV.js.map} +0 -0
  83. /package/{telegram-BCPH3ECW.js.map → telegram-Q2GNTJFX.js.map} +0 -0
  84. /package/{variable-S4UWL5CG.js.map → variable-4WVPWYYU.js.map} +0 -0
  85. /package/{video-ONM6HE6G.js.map → video-B3UGIF3E.js.map} +0 -0
  86. /package/{web-Z4CC5ZTB.js.map → web-3RIJORTL.js.map} +0 -0
  87. /package/{web-search-FCLPKEJ4.js.map → web-search-CVZYQ7HH.js.map} +0 -0
  88. /package/{whoami-GODNJUJB.js.map → whoami-U2VXOZNF.js.map} +0 -0
  89. /package/{workflow-CRLNDUSK.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-UXZHW5TS.js";
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-MPMZUEOC.js";
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-36XYOMWZ.js";
26
+ } from "./chunk-FYZS5VEA.js";
27
27
  import "./chunk-LTDQISD7.js";
28
28
  import {
29
29
  source_default,
30
30
  withErrorHandler
31
- } from "./chunk-CSZ7QXX6.js";
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-G5F4BJAY.js.map
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-36XYOMWZ.js";
6
+ } from "./chunk-FYZS5VEA.js";
7
7
  import "./chunk-LTDQISD7.js";
8
8
  import {
9
9
  source_default,
10
10
  withErrorHandler
11
- } from "./chunk-CSZ7QXX6.js";
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-Z46ZGJZD.js.map
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-R76DGX22.js";
6
+ } from "./chunk-LA4I64KW.js";
7
7
  import {
8
8
  getZeroChatThread,
9
9
  listZeroModelPolicies,
10
10
  renameZeroChatThread,
11
11
  updateZeroChatThreadModelSelection
12
- } from "./chunk-36XYOMWZ.js";
12
+ } from "./chunk-FYZS5VEA.js";
13
13
  import "./chunk-LTDQISD7.js";
14
14
  import {
15
15
  source_default,
16
16
  withErrorHandler
17
- } from "./chunk-CSZ7QXX6.js";
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-35B55XKY.js.map
245
+ //# sourceMappingURL=chat-C6P67WYO.js.map
@@ -21,7 +21,7 @@ import {
21
21
  updateOrgModelPoliciesRequestSchema,
22
22
  upsertModelProviderRequestSchema,
23
23
  upsertModelProviderResponseSchema
24
- } from "./chunk-CSZ7QXX6.js";
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 authenticatedJsonHeaders2(token) {
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 isRecord3(value) {
9212
+ function isRecord4(value) {
9156
9213
  return typeof value === "object" && value !== null && !Array.isArray(value);
9157
9214
  }
9158
- async function parseErrorBody2(response) {
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 (isRecord3(body) && isRecord3(body.error)) {
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(authenticatedJsonHeaders2(token)),
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 parseErrorBody2(response);
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 parseErrorBody3(response, fallback) {
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 parseErrorBody3(
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 parseErrorBody3(
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 parseErrorBody3(
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 parseErrorBody3(
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-36XYOMWZ.js.map
12040
+ //# sourceMappingURL=chunk-FYZS5VEA.js.map