@vm0/cli 9.246.10 → 9.247.1

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-I3JFWK4N.js → agent-3O7DLCI6.js} +5 -5
  2. package/{banking-IARZ5AWJ.js → banking-N7TH3M6W.js} +3 -3
  3. package/{chat-UNFIWAPR.js → chat-OBBQFVCB.js} +4 -4
  4. package/{chunk-DPSR6NPE.js → chunk-DZD2Q43U.js} +2 -2
  5. package/{chunk-PAHALCUI.js → chunk-GKHJ3S5D.js} +72 -13
  6. package/chunk-GKHJ3S5D.js.map +1 -0
  7. package/{chunk-2ZI6BEAC.js → chunk-H2K5IOKP.js} +2 -2
  8. package/{chunk-HYU6KI5A.js → chunk-HURTTXSE.js} +2 -2
  9. package/{chunk-6VTJPGKG.js → chunk-OMHLRPHF.js} +6 -2
  10. package/{chunk-6VTJPGKG.js.map → chunk-OMHLRPHF.js.map} +1 -1
  11. package/{chunk-RR7BZ6EH.js → chunk-Q7VOF4A7.js} +2 -2
  12. package/{chunk-3PJP2SGA.js → chunk-QRHGYCWC.js} +168 -38
  13. package/chunk-QRHGYCWC.js.map +1 -0
  14. package/{chunk-NHK2KDYS.js → chunk-VU77IVUB.js} +4 -4
  15. package/{computer-use-EZM7EXRZ.js → computer-use-DDLC5V5I.js} +3 -3
  16. package/{connector-KYP4HOSX.js → connector-B5FZ7XAI.js} +6 -6
  17. package/{credit-T6W5CAB5.js → credit-TQO2WBDH.js} +4 -4
  18. package/{developer-support-KWXMW2SF.js → developer-support-MD4JFNGZ.js} +3 -3
  19. package/{doctor-4S6XFRNC.js → doctor-5MTAY24M.js} +3 -3
  20. package/{generate-EK3TSRNK.js → generate-SM3OV5ZY.js} +4 -4
  21. package/{github-TINANPSO.js → github-WXLSVDOU.js} +3 -3
  22. package/{goal-T2PXNJTM.js → goal-PWPTJOJN.js} +3 -3
  23. package/{host-OM6O74S6.js → host-T577B7RC.js} +3 -3
  24. package/{logs-PGH4FABT.js → logs-FEVPNDNK.js} +4 -4
  25. package/{mail-MECJAUVM.js → mail-TFOXDOES.js} +5 -5
  26. package/{maps-KMVRBVEX.js → maps-T4DRJFI4.js} +3 -3
  27. package/{model-MPUHVF7H.js → model-RBM5HPKS.js} +4 -4
  28. package/{model-provider-27TZ6VFX.js → model-provider-FF4FXASQ.js} +4 -4
  29. package/{org-FNSENJJO.js → org-3QDTGZ2T.js} +3 -3
  30. package/package.json +1 -1
  31. package/{phone-LLPXOOJW.js → phone-2HDY74SX.js} +3 -3
  32. package/{preference-FUSV446Z.js → preference-HQRO26MP.js} +3 -3
  33. package/{resource-NIMK4DX6.js → resource-G6DNQIC7.js} +3 -3
  34. package/{scrape-XLX64EOI.js → scrape-YFDOJTOR.js} +3 -3
  35. package/{search-6E2N4DQB.js → search-BARFJYS3.js} +4 -4
  36. package/{secret-IEATUVEL.js → secret-EYV5LULE.js} +3 -3
  37. package/{slack-6ETEPWTV.js → slack-GRHTZFLV.js} +3 -3
  38. package/{teams-7YDYQBYQ.js → teams-IJX57ZTA.js} +3 -3
  39. package/{telegram-2R6NQS4O.js → telegram-SDYOW52Z.js} +3 -3
  40. package/{variable-TEEBVVZE.js → variable-YDBXBWEI.js} +3 -3
  41. package/{video-ZA3IQ2ZY.js → video-447INHV3.js} +2 -2
  42. package/weather-2RRPLFNE.js +590 -0
  43. package/weather-2RRPLFNE.js.map +1 -0
  44. package/{web-4GADX76H.js → web-Q27RVDI3.js} +3 -3
  45. package/{web-search-K4BAJAXZ.js → web-search-ZCWKTFQE.js} +3 -3
  46. package/{whoami-JDTHGADP.js → whoami-KXICC7YZ.js} +5 -5
  47. package/{workflow-4R2DFMCY.js → workflow-ZTBOMB6B.js} +3 -3
  48. package/zero.js +47 -36
  49. package/zero.js.map +1 -1
  50. package/chunk-3PJP2SGA.js.map +0 -1
  51. package/chunk-PAHALCUI.js.map +0 -1
  52. /package/{agent-I3JFWK4N.js.map → agent-3O7DLCI6.js.map} +0 -0
  53. /package/{banking-IARZ5AWJ.js.map → banking-N7TH3M6W.js.map} +0 -0
  54. /package/{chat-UNFIWAPR.js.map → chat-OBBQFVCB.js.map} +0 -0
  55. /package/{chunk-DPSR6NPE.js.map → chunk-DZD2Q43U.js.map} +0 -0
  56. /package/{chunk-2ZI6BEAC.js.map → chunk-H2K5IOKP.js.map} +0 -0
  57. /package/{chunk-HYU6KI5A.js.map → chunk-HURTTXSE.js.map} +0 -0
  58. /package/{chunk-RR7BZ6EH.js.map → chunk-Q7VOF4A7.js.map} +0 -0
  59. /package/{chunk-NHK2KDYS.js.map → chunk-VU77IVUB.js.map} +0 -0
  60. /package/{computer-use-EZM7EXRZ.js.map → computer-use-DDLC5V5I.js.map} +0 -0
  61. /package/{connector-KYP4HOSX.js.map → connector-B5FZ7XAI.js.map} +0 -0
  62. /package/{credit-T6W5CAB5.js.map → credit-TQO2WBDH.js.map} +0 -0
  63. /package/{developer-support-KWXMW2SF.js.map → developer-support-MD4JFNGZ.js.map} +0 -0
  64. /package/{doctor-4S6XFRNC.js.map → doctor-5MTAY24M.js.map} +0 -0
  65. /package/{generate-EK3TSRNK.js.map → generate-SM3OV5ZY.js.map} +0 -0
  66. /package/{github-TINANPSO.js.map → github-WXLSVDOU.js.map} +0 -0
  67. /package/{goal-T2PXNJTM.js.map → goal-PWPTJOJN.js.map} +0 -0
  68. /package/{host-OM6O74S6.js.map → host-T577B7RC.js.map} +0 -0
  69. /package/{logs-PGH4FABT.js.map → logs-FEVPNDNK.js.map} +0 -0
  70. /package/{mail-MECJAUVM.js.map → mail-TFOXDOES.js.map} +0 -0
  71. /package/{maps-KMVRBVEX.js.map → maps-T4DRJFI4.js.map} +0 -0
  72. /package/{model-MPUHVF7H.js.map → model-RBM5HPKS.js.map} +0 -0
  73. /package/{model-provider-27TZ6VFX.js.map → model-provider-FF4FXASQ.js.map} +0 -0
  74. /package/{org-FNSENJJO.js.map → org-3QDTGZ2T.js.map} +0 -0
  75. /package/{phone-LLPXOOJW.js.map → phone-2HDY74SX.js.map} +0 -0
  76. /package/{preference-FUSV446Z.js.map → preference-HQRO26MP.js.map} +0 -0
  77. /package/{resource-NIMK4DX6.js.map → resource-G6DNQIC7.js.map} +0 -0
  78. /package/{scrape-XLX64EOI.js.map → scrape-YFDOJTOR.js.map} +0 -0
  79. /package/{search-6E2N4DQB.js.map → search-BARFJYS3.js.map} +0 -0
  80. /package/{secret-IEATUVEL.js.map → secret-EYV5LULE.js.map} +0 -0
  81. /package/{slack-6ETEPWTV.js.map → slack-GRHTZFLV.js.map} +0 -0
  82. /package/{teams-7YDYQBYQ.js.map → teams-IJX57ZTA.js.map} +0 -0
  83. /package/{telegram-2R6NQS4O.js.map → telegram-SDYOW52Z.js.map} +0 -0
  84. /package/{variable-TEEBVVZE.js.map → variable-YDBXBWEI.js.map} +0 -0
  85. /package/{video-ZA3IQ2ZY.js.map → video-447INHV3.js.map} +0 -0
  86. /package/{web-4GADX76H.js.map → web-Q27RVDI3.js.map} +0 -0
  87. /package/{web-search-K4BAJAXZ.js.map → web-search-ZCWKTFQE.js.map} +0 -0
  88. /package/{whoami-JDTHGADP.js.map → whoami-KXICC7YZ.js.map} +0 -0
  89. /package/{workflow-4R2DFMCY.js.map → workflow-ZTBOMB6B.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-NHK2KDYS.js";
7
+ } from "./chunk-VU77IVUB.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-RR7BZ6EH.js";
14
+ } from "./chunk-Q7VOF4A7.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-PAHALCUI.js";
26
+ } from "./chunk-GKHJ3S5D.js";
27
27
  import "./chunk-LTDQISD7.js";
28
28
  import {
29
29
  source_default,
30
30
  withErrorHandler
31
- } from "./chunk-HYU6KI5A.js";
31
+ } from "./chunk-HURTTXSE.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-I3JFWK4N.js.map
596
+ //# sourceMappingURL=agent-3O7DLCI6.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-PAHALCUI.js";
6
+ } from "./chunk-GKHJ3S5D.js";
7
7
  import "./chunk-LTDQISD7.js";
8
8
  import {
9
9
  source_default,
10
10
  withErrorHandler
11
- } from "./chunk-HYU6KI5A.js";
11
+ } from "./chunk-HURTTXSE.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-IARZ5AWJ.js.map
116
+ //# sourceMappingURL=banking-N7TH3M6W.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-DPSR6NPE.js";
6
+ } from "./chunk-DZD2Q43U.js";
7
7
  import {
8
8
  getZeroChatThread,
9
9
  listZeroModelPolicies,
10
10
  renameZeroChatThread,
11
11
  updateZeroChatThreadModelSelection
12
- } from "./chunk-PAHALCUI.js";
12
+ } from "./chunk-GKHJ3S5D.js";
13
13
  import "./chunk-LTDQISD7.js";
14
14
  import {
15
15
  source_default,
16
16
  withErrorHandler
17
- } from "./chunk-HYU6KI5A.js";
17
+ } from "./chunk-HURTTXSE.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-UNFIWAPR.js.map
245
+ //# sourceMappingURL=chat-OBBQFVCB.js.map
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  MODEL_PROVIDER_TYPES
6
- } from "./chunk-HYU6KI5A.js";
6
+ } from "./chunk-HURTTXSE.js";
7
7
  import {
8
8
  init_esm_shims
9
9
  } from "./chunk-DIRAZ3YX.js";
@@ -40,4 +40,4 @@ export {
40
40
  formatModelProviderRoute,
41
41
  formatModelPolicyStatus
42
42
  };
43
- //# sourceMappingURL=chunk-DPSR6NPE.js.map
43
+ //# sourceMappingURL=chunk-DZD2Q43U.js.map
@@ -21,7 +21,7 @@ import {
21
21
  updateOrgModelPoliciesRequestSchema,
22
22
  upsertModelProviderRequestSchema,
23
23
  upsertModelProviderResponseSchema
24
- } from "./chunk-HYU6KI5A.js";
24
+ } from "./chunk-HURTTXSE.js";
25
25
  import {
26
26
  __commonJS,
27
27
  __esm,
@@ -2415,6 +2415,7 @@ var triggerSourceSchema = external_exports.enum([
2415
2415
  "web",
2416
2416
  "slack",
2417
2417
  "teams",
2418
+ "feishu",
2418
2419
  "email",
2419
2420
  "telegram",
2420
2421
  "agentphone",
@@ -8942,6 +8943,63 @@ async function callZeroMaps(operation, body) {
8942
8943
  return await response.json();
8943
8944
  }
8944
8945
 
8946
+ // src/lib/api/domains/zero-weather.ts
8947
+ init_esm_shims();
8948
+ function authenticatedJsonHeaders2(token) {
8949
+ const headers = {
8950
+ Authorization: `Bearer ${token}`,
8951
+ "Content-Type": "application/json"
8952
+ };
8953
+ const bypassSecret = process.env.VERCEL_AUTOMATION_BYPASS_SECRET;
8954
+ if (bypassSecret) {
8955
+ headers["x-vercel-protection-bypass"] = bypassSecret;
8956
+ }
8957
+ return headers;
8958
+ }
8959
+ function isRecord3(value) {
8960
+ return typeof value === "object" && value !== null && !Array.isArray(value);
8961
+ }
8962
+ async function parseErrorBody2(response) {
8963
+ let message = `Zero Weather request failed (HTTP ${response.status})`;
8964
+ let code = response.status === 404 ? "NOT_FOUND" : "UNKNOWN";
8965
+ try {
8966
+ const body = await response.json();
8967
+ if (isRecord3(body) && isRecord3(body.error)) {
8968
+ if (typeof body.error.message === "string") {
8969
+ message = body.error.message;
8970
+ }
8971
+ if (typeof body.error.code === "string") {
8972
+ code = body.error.code;
8973
+ }
8974
+ }
8975
+ } catch {
8976
+ }
8977
+ if (response.status === 404 && code === "NOT_FOUND") {
8978
+ message = "Zero Weather API is not available on this server yet. Try again after the weather backend is deployed.";
8979
+ }
8980
+ return { message, code };
8981
+ }
8982
+ async function callZeroWeather(operation, body) {
8983
+ const baseUrl = await getBaseUrl();
8984
+ const token = await getActiveToken();
8985
+ if (!token) {
8986
+ throw new ApiRequestError("Not authenticated", "UNAUTHORIZED", 401);
8987
+ }
8988
+ const response = await fetch(
8989
+ new URL(`/api/zero/weather/${operation}`, baseUrl),
8990
+ {
8991
+ method: "POST",
8992
+ headers: headersWithCliClientHeaders(authenticatedJsonHeaders2(token)),
8993
+ body: JSON.stringify(body)
8994
+ }
8995
+ );
8996
+ if (!response.ok) {
8997
+ const { message, code } = await parseErrorBody2(response);
8998
+ throw new ApiRequestError(message, code, response.status);
8999
+ }
9000
+ return await response.json();
9001
+ }
9002
+
8945
9003
  // ../../packages/api-contracts/src/contracts/zero-scrape.ts
8946
9004
  init_esm_shims();
8947
9005
  var c29 = initContract();
@@ -9141,7 +9199,7 @@ async function callZeroWebSearch(body) {
9141
9199
 
9142
9200
  // src/lib/api/domains/zero-banking.ts
9143
9201
  init_esm_shims();
9144
- function authenticatedJsonHeaders2(token) {
9202
+ function authenticatedJsonHeaders3(token) {
9145
9203
  const headers = {
9146
9204
  Authorization: `Bearer ${token}`,
9147
9205
  "Content-Type": "application/json"
@@ -9152,15 +9210,15 @@ function authenticatedJsonHeaders2(token) {
9152
9210
  }
9153
9211
  return headers;
9154
9212
  }
9155
- function isRecord3(value) {
9213
+ function isRecord4(value) {
9156
9214
  return typeof value === "object" && value !== null && !Array.isArray(value);
9157
9215
  }
9158
- async function parseErrorBody2(response) {
9216
+ async function parseErrorBody3(response) {
9159
9217
  let message = `Zero Banking request failed (HTTP ${response.status})`;
9160
9218
  let code = response.status === 404 ? "NOT_FOUND" : "UNKNOWN";
9161
9219
  try {
9162
9220
  const body = await response.json();
9163
- if (isRecord3(body) && isRecord3(body.error)) {
9221
+ if (isRecord4(body) && isRecord4(body.error)) {
9164
9222
  if (typeof body.error.message === "string") {
9165
9223
  message = body.error.message;
9166
9224
  }
@@ -9185,12 +9243,12 @@ async function callZeroBanking(operation, body) {
9185
9243
  new URL(`/api/zero/banking/${operation}`, baseUrl),
9186
9244
  {
9187
9245
  method: "POST",
9188
- headers: headersWithCliClientHeaders(authenticatedJsonHeaders2(token)),
9246
+ headers: headersWithCliClientHeaders(authenticatedJsonHeaders3(token)),
9189
9247
  body: JSON.stringify(body)
9190
9248
  }
9191
9249
  );
9192
9250
  if (!response.ok) {
9193
- const { message, code } = await parseErrorBody2(response);
9251
+ const { message, code } = await parseErrorBody3(response);
9194
9252
  throw new ApiRequestError(message, code, response.status);
9195
9253
  }
9196
9254
  return await response.json();
@@ -11738,7 +11796,7 @@ function authHeaders(token, options = {}) {
11738
11796
  }
11739
11797
  return headers;
11740
11798
  }
11741
- async function parseErrorBody3(response, fallback) {
11799
+ async function parseErrorBody4(response, fallback) {
11742
11800
  let message = `${fallback} (HTTP ${response.status})`;
11743
11801
  let code = "UNKNOWN";
11744
11802
  try {
@@ -11768,7 +11826,7 @@ async function prepareHostedSite(body) {
11768
11826
  }
11769
11827
  );
11770
11828
  if (!response.ok) {
11771
- const { message, code } = await parseErrorBody3(
11829
+ const { message, code } = await parseErrorBody4(
11772
11830
  response,
11773
11831
  "Failed to prepare hosted-site deployment"
11774
11832
  );
@@ -11790,7 +11848,7 @@ async function completeHostedSite(deploymentId) {
11790
11848
  }
11791
11849
  );
11792
11850
  if (!response.ok) {
11793
- const { message, code } = await parseErrorBody3(
11851
+ const { message, code } = await parseErrorBody4(
11794
11852
  response,
11795
11853
  "Failed to complete hosted-site deployment"
11796
11854
  );
@@ -11812,7 +11870,7 @@ async function getHostedSiteFiles(publicSlug, version) {
11812
11870
  headers: headersWithCliClientHeaders(authHeaders(token))
11813
11871
  });
11814
11872
  if (!response.ok) {
11815
- const { message, code } = await parseErrorBody3(
11873
+ const { message, code } = await parseErrorBody4(
11816
11874
  response,
11817
11875
  "Failed to get hosted-site files"
11818
11876
  );
@@ -11833,7 +11891,7 @@ async function getHostedSiteDeployments(site) {
11833
11891
  }
11834
11892
  );
11835
11893
  if (!response.ok) {
11836
- const { message, code } = await parseErrorBody3(
11894
+ const { message, code } = await parseErrorBody4(
11837
11895
  response,
11838
11896
  "Failed to list hosted-site deployments"
11839
11897
  );
@@ -11963,6 +12021,7 @@ export {
11963
12021
  fetchComputerUseScreenshot,
11964
12022
  fetchComputerUsePluginContent,
11965
12023
  callZeroMaps,
12024
+ callZeroWeather,
11966
12025
  zeroScrapeFormatSchema,
11967
12026
  zeroScrapeModeSchema,
11968
12027
  callZeroScrape,
@@ -11979,4 +12038,4 @@ export {
11979
12038
  getHostedSiteFiles,
11980
12039
  getHostedSiteDeployments
11981
12040
  };
11982
- //# sourceMappingURL=chunk-PAHALCUI.js.map
12041
+ //# sourceMappingURL=chunk-GKHJ3S5D.js.map