@koda-sl/baker-cli 0.324.0-dev.593ae2dfd → 0.325.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.
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  debugLogHttp,
3
3
  readBodyForLog
4
- } from "./chunk-FOWT5AS4.js";
4
+ } from "./chunk-6BD32M7K.js";
5
5
  import {
6
6
  getEnv
7
- } from "./chunk-UIQJZGBG.js";
7
+ } from "./chunk-GJVXXYCX.js";
8
8
 
9
9
  // src/client.ts
10
10
  var MAX_RATE_LIMIT_RETRIES = 3;
@@ -205,4 +205,4 @@ export {
205
205
  apiGet,
206
206
  apiPost
207
207
  };
208
- //# sourceMappingURL=chunk-OMUDHFUY.js.map
208
+ //# sourceMappingURL=chunk-KAE5M5R7.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  ApiError,
3
3
  apiGet
4
- } from "./chunk-OMUDHFUY.js";
4
+ } from "./chunk-KAE5M5R7.js";
5
5
  import {
6
6
  getEnv
7
- } from "./chunk-UIQJZGBG.js";
7
+ } from "./chunk-GJVXXYCX.js";
8
8
 
9
9
  // src/error-handler.ts
10
10
  var REQUEST_CONNECTION_PLATFORM = {
@@ -294,4 +294,4 @@ export {
294
294
  writeAdsOutput,
295
295
  resolveCustomerId
296
296
  };
297
- //# sourceMappingURL=chunk-63Q73JIN.js.map
297
+ //# sourceMappingURL=chunk-MSZSDYOJ.js.map
@@ -2,13 +2,13 @@ import {
2
2
  handleConnectionError,
3
3
  needsConnectionFix,
4
4
  writeAdsJson
5
- } from "./chunk-63Q73JIN.js";
5
+ } from "./chunk-MSZSDYOJ.js";
6
6
  import {
7
7
  ApiError
8
- } from "./chunk-OMUDHFUY.js";
8
+ } from "./chunk-KAE5M5R7.js";
9
9
  import {
10
10
  getEnv
11
- } from "./chunk-UIQJZGBG.js";
11
+ } from "./chunk-GJVXXYCX.js";
12
12
 
13
13
  // src/commands/ads/meta/shared.ts
14
14
  var DAY_MS = 864e5;
@@ -108,4 +108,4 @@ export {
108
108
  csvOrJson,
109
109
  resolveEffectiveStatus
110
110
  };
111
- //# sourceMappingURL=chunk-G7CQBZVF.js.map
111
+ //# sourceMappingURL=chunk-UWFF6WEV.js.map
package/dist/cli.js CHANGED
@@ -67,7 +67,7 @@ import {
67
67
  validateCanvasDeep,
68
68
  withoutCastName,
69
69
  ytDlpBlockSignal
70
- } from "./chunk-BD4GLBWV.js";
70
+ } from "./chunk-HPRKO6P2.js";
71
71
  import {
72
72
  csvOrJson,
73
73
  daysAgoIso,
@@ -76,7 +76,7 @@ import {
76
76
  resolveAccountIdArg,
77
77
  resolveEffectiveStatus,
78
78
  todayIso
79
- } from "./chunk-G7CQBZVF.js";
79
+ } from "./chunk-UWFF6WEV.js";
80
80
  import {
81
81
  buildQueryCacheKey,
82
82
  cacheGet,
@@ -92,18 +92,18 @@ import {
92
92
  writeAdsJson,
93
93
  writeAdsOutput,
94
94
  writeJsonEnvelope
95
- } from "./chunk-63Q73JIN.js";
95
+ } from "./chunk-MSZSDYOJ.js";
96
96
  import {
97
97
  ApiError,
98
98
  apiGet,
99
99
  apiGetWithHeaders,
100
100
  apiPost,
101
101
  validateConvexId
102
- } from "./chunk-OMUDHFUY.js";
102
+ } from "./chunk-KAE5M5R7.js";
103
103
  import {
104
104
  installStreamTaps,
105
105
  logInvocation
106
- } from "./chunk-FOWT5AS4.js";
106
+ } from "./chunk-6BD32M7K.js";
107
107
  import {
108
108
  captureBudgetMs,
109
109
  captureProxyCredentials,
@@ -117,7 +117,7 @@ import {
117
117
  requireChatId,
118
118
  resolveChatId,
119
119
  shouldEscalate
120
- } from "./chunk-UIQJZGBG.js";
120
+ } from "./chunk-GJVXXYCX.js";
121
121
 
122
122
  // src/cli.ts
123
123
  import { defineCommand as defineCommand244, runMain } from "citty";
@@ -24823,10 +24823,10 @@ Example: baker ads meta ads retag 120252158038400247 --url-tags "utm_source={{si
24823
24823
  }
24824
24824
  },
24825
24825
  run: async ({ args: args4 }) => {
24826
- const { apiPost: apiPost2 } = await import("./client-7TD3X4CY.js");
24827
- const { requireChatId: requireChatId2 } = await import("./env-PJSBLG56.js");
24828
- const { writeJsonEnvelope: writeJsonEnvelope2 } = await import("./output-HLNLGRIT.js");
24829
- const { handleMetaError: handleMetaError2 } = await import("./shared-S5OCQHPP.js");
24826
+ const { apiPost: apiPost2 } = await import("./client-XUSSAB6O.js");
24827
+ const { requireChatId: requireChatId2 } = await import("./env-VIA5U56G.js");
24828
+ const { writeJsonEnvelope: writeJsonEnvelope2 } = await import("./output-ZPACGSH2.js");
24829
+ const { handleMetaError: handleMetaError2 } = await import("./shared-OHOCOE2L.js");
24830
24830
  try {
24831
24831
  const accountId = bareAccountId2(args4);
24832
24832
  const urlTags = typeof args4["url-tags"] === "string" ? args4["url-tags"] : void 0;
@@ -24971,10 +24971,10 @@ function duplicateCommand2(entity, label) {
24971
24971
  replace: { type: "boolean", description: "Pause the original once the copy publishes" }
24972
24972
  },
24973
24973
  run: async ({ args: args4 }) => {
24974
- const { apiPost: apiPost2 } = await import("./client-7TD3X4CY.js");
24975
- const { requireChatId: requireChatId2 } = await import("./env-PJSBLG56.js");
24976
- const { writeJsonEnvelope: writeJsonEnvelope2 } = await import("./output-HLNLGRIT.js");
24977
- const { handleMetaError: handleMetaError2 } = await import("./shared-S5OCQHPP.js");
24974
+ const { apiPost: apiPost2 } = await import("./client-XUSSAB6O.js");
24975
+ const { requireChatId: requireChatId2 } = await import("./env-VIA5U56G.js");
24976
+ const { writeJsonEnvelope: writeJsonEnvelope2 } = await import("./output-ZPACGSH2.js");
24977
+ const { handleMetaError: handleMetaError2 } = await import("./shared-OHOCOE2L.js");
24978
24978
  try {
24979
24979
  const accountId = bareAccountId2(args4);
24980
24980
  const chatId = requireChatId2();
@@ -32818,6 +32818,9 @@ Examples:
32818
32818
  }
32819
32819
  });
32820
32820
  })();
32821
+ function sendingEventsAddress(env) {
32822
+ return eventIngestUrl(env.BAKER_PUBLIC_API_URL, env.BAKER_API_URL);
32823
+ }
32821
32824
  var sendingEventsCommand = (() => {
32822
32825
  registerSchema({
32823
32826
  command: "analytics.sending-events",
@@ -32839,8 +32842,7 @@ Examples:
32839
32842
  },
32840
32843
  args: {},
32841
32844
  run: () => {
32842
- const apiUrl = getEnv().BAKER_API_URL;
32843
- process.stdout.write(`${ingestBrief(eventIngestUrl(apiUrl, apiUrl))}
32845
+ process.stdout.write(`${ingestBrief(sendingEventsAddress(getEnv()))}
32844
32846
  `);
32845
32847
  }
32846
32848
  });