@koda-sl/baker-cli 0.415.0 → 0.416.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/dist/cli.js CHANGED
@@ -97,7 +97,7 @@ import {
97
97
  withoutCastName,
98
98
  wordCount,
99
99
  ytDlpBlockSignal
100
- } from "./chunk-4Q7EDLEC.js";
100
+ } from "./chunk-YYNWKZXG.js";
101
101
  import {
102
102
  NAME_CONTAINS_ARG,
103
103
  csvOrJson,
@@ -108,7 +108,7 @@ import {
108
108
  resolveEffectiveStatus,
109
109
  statusFilterHints,
110
110
  todayIso
111
- } from "./chunk-PLH5K6RI.js";
111
+ } from "./chunk-TTBMFAGF.js";
112
112
  import {
113
113
  buildQueryCacheKey,
114
114
  cacheGet,
@@ -124,19 +124,19 @@ import {
124
124
  writeAdsJson,
125
125
  writeAdsOutput,
126
126
  writeJsonEnvelope
127
- } from "./chunk-G7YB37RQ.js";
127
+ } from "./chunk-VF77MVEM.js";
128
128
  import {
129
129
  ApiError,
130
130
  apiGet,
131
131
  apiGetWithHeaders,
132
132
  apiPost,
133
133
  validateConvexId
134
- } from "./chunk-FLERTMEW.js";
134
+ } from "./chunk-4RN4CBIQ.js";
135
135
  import {
136
136
  installExitRecord,
137
137
  installStreamTaps,
138
138
  logInvocation
139
- } from "./chunk-EXFQDO6T.js";
139
+ } from "./chunk-HFH5HQTP.js";
140
140
  import {
141
141
  __commonJS,
142
142
  __esm,
@@ -155,6 +155,7 @@ import {
155
155
  installFieldMask,
156
156
  isProxyFailure,
157
157
  listSchemas,
158
+ nextPlannedRoute,
158
159
  openRouterKey,
159
160
  optionalChatId,
160
161
  outputFlagForCommand,
@@ -171,7 +172,7 @@ import {
171
172
  winningAdNormalizer,
172
173
  writeJson,
173
174
  writeOutput
174
- } from "./chunk-ASON7WRD.js";
175
+ } from "./chunk-D76DSHL2.js";
175
176
 
176
177
  // ../../node_modules/.pnpm/i18n-iso-countries@7.14.0/node_modules/i18n-iso-countries/langs/af.json
177
178
  var require_af = __commonJS({
@@ -53760,10 +53761,10 @@ Example: baker ads meta ads retag 120252158038400247 --url-tags "utm_source={{si
53760
53761
  }
53761
53762
  },
53762
53763
  run: async ({ args: args8 }) => {
53763
- const { apiPost: apiPost2 } = await import("./client-22ED7NUR.js");
53764
- const { requireChatId: requireChatId2 } = await import("./env-E565GJBV.js");
53765
- const { writeJsonEnvelope: writeJsonEnvelope2 } = await import("./output-F6NKGZ6E.js");
53766
- const { handleMetaError: handleMetaError2 } = await import("./shared-YSUGIUS4.js");
53764
+ const { apiPost: apiPost2 } = await import("./client-OA2QMHOI.js");
53765
+ const { requireChatId: requireChatId2 } = await import("./env-Q5FUIVIJ.js");
53766
+ const { writeJsonEnvelope: writeJsonEnvelope2 } = await import("./output-NMXF2VIL.js");
53767
+ const { handleMetaError: handleMetaError2 } = await import("./shared-PD226SU6.js");
53767
53768
  try {
53768
53769
  const accountId = bareAccountId2(args8);
53769
53770
  const urlTags = typeof args8["url-tags"] === "string" ? args8["url-tags"] : void 0;
@@ -53914,10 +53915,10 @@ function duplicateCommand2(entity, label) {
53914
53915
  replace: { type: "boolean", description: "Pause the original once the copy publishes" }
53915
53916
  },
53916
53917
  run: async ({ args: args8 }) => {
53917
- const { apiPost: apiPost2 } = await import("./client-22ED7NUR.js");
53918
- const { requireChatId: requireChatId2 } = await import("./env-E565GJBV.js");
53919
- const { writeJsonEnvelope: writeJsonEnvelope2 } = await import("./output-F6NKGZ6E.js");
53920
- const { handleMetaError: handleMetaError2 } = await import("./shared-YSUGIUS4.js");
53918
+ const { apiPost: apiPost2 } = await import("./client-OA2QMHOI.js");
53919
+ const { requireChatId: requireChatId2 } = await import("./env-Q5FUIVIJ.js");
53920
+ const { writeJsonEnvelope: writeJsonEnvelope2 } = await import("./output-NMXF2VIL.js");
53921
+ const { handleMetaError: handleMetaError2 } = await import("./shared-PD226SU6.js");
53921
53922
  try {
53922
53923
  const accountId = bareAccountId2(args8);
53923
53924
  const chatId = requireChatId2();
@@ -90138,8 +90139,13 @@ function nextRoute(args8) {
90138
90139
  if (!brokenProxy && !shouldEscalate(attemptSignal(last))) {
90139
90140
  return { next: null, reason: "site_fault_is_final" };
90140
90141
  }
90141
- const tried = new Set(args8.attempts.map((attempt) => routeKey(attempt.route)));
90142
- const next = args8.routes.find((route) => !tried.has(routeKey(route)));
90142
+ const next = nextPlannedRoute(
90143
+ args8.routes,
90144
+ args8.attempts.map((attempt) => ({
90145
+ tier: attempt.route.kind === "proxy" ? attempt.route.tier : "direct",
90146
+ proxyFailure: isProxyFailure(attemptSignal(attempt))
90147
+ }))
90148
+ );
90143
90149
  if (!next) return { next: null, reason: args8.routes.length === 1 ? "not_configured" : "ladder_exhausted" };
90144
90150
  if (args8.remainingMs < args8.reserveMs + args8.navTimeoutMs) {
90145
90151
  return { next: null, reason: "out_of_budget" };
@@ -90152,9 +90158,6 @@ function reportableFailure(attempts) {
90152
90158
  if (!chosen) throw new Error("reportableFailure called with no attempts");
90153
90159
  return chosen.failure;
90154
90160
  }
90155
- function routeKey(route) {
90156
- return route.kind === "direct" ? "direct" : route.tier;
90157
- }
90158
90161
 
90159
90162
  // src/engine/landing-library/fidelity.ts
90160
90163
  import sharp5 from "sharp";