@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/{chunk-FLERTMEW.js → chunk-4RN4CBIQ.js} +3 -3
- package/dist/{chunk-ASON7WRD.js → chunk-D76DSHL2.js} +25 -4
- package/dist/chunk-D76DSHL2.js.map +1 -0
- package/dist/{chunk-EXFQDO6T.js → chunk-HFH5HQTP.js} +2 -2
- package/dist/{chunk-PLH5K6RI.js → chunk-TTBMFAGF.js} +4 -4
- package/dist/{chunk-G7YB37RQ.js → chunk-VF77MVEM.js} +3 -3
- package/dist/{chunk-4Q7EDLEC.js → chunk-YYNWKZXG.js} +8 -4
- package/dist/{chunk-4Q7EDLEC.js.map → chunk-YYNWKZXG.js.map} +1 -1
- package/dist/cli.js +22 -19
- package/dist/cli.js.map +1 -1
- package/dist/{client-22ED7NUR.js → client-OA2QMHOI.js} +4 -4
- package/dist/engine/index.js +3 -3
- package/dist/{env-E565GJBV.js → env-Q5FUIVIJ.js} +2 -2
- package/dist/{output-F6NKGZ6E.js → output-NMXF2VIL.js} +5 -5
- package/dist/{shared-YSUGIUS4.js → shared-PD226SU6.js} +6 -6
- package/package.json +1 -1
- package/dist/chunk-ASON7WRD.js.map +0 -1
- /package/dist/{chunk-FLERTMEW.js.map → chunk-4RN4CBIQ.js.map} +0 -0
- /package/dist/{chunk-EXFQDO6T.js.map → chunk-HFH5HQTP.js.map} +0 -0
- /package/dist/{chunk-PLH5K6RI.js.map → chunk-TTBMFAGF.js.map} +0 -0
- /package/dist/{chunk-G7YB37RQ.js.map → chunk-VF77MVEM.js.map} +0 -0
- /package/dist/{client-22ED7NUR.js.map → client-OA2QMHOI.js.map} +0 -0
- /package/dist/{env-E565GJBV.js.map → env-Q5FUIVIJ.js.map} +0 -0
- /package/dist/{output-F6NKGZ6E.js.map → output-NMXF2VIL.js.map} +0 -0
- /package/dist/{shared-YSUGIUS4.js.map → shared-PD226SU6.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
withoutCastName,
|
|
98
98
|
wordCount,
|
|
99
99
|
ytDlpBlockSignal
|
|
100
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
134
|
+
} from "./chunk-4RN4CBIQ.js";
|
|
135
135
|
import {
|
|
136
136
|
installExitRecord,
|
|
137
137
|
installStreamTaps,
|
|
138
138
|
logInvocation
|
|
139
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
53764
|
-
const { requireChatId: requireChatId2 } = await import("./env-
|
|
53765
|
-
const { writeJsonEnvelope: writeJsonEnvelope2 } = await import("./output-
|
|
53766
|
-
const { handleMetaError: handleMetaError2 } = await import("./shared-
|
|
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-
|
|
53918
|
-
const { requireChatId: requireChatId2 } = await import("./env-
|
|
53919
|
-
const { writeJsonEnvelope: writeJsonEnvelope2 } = await import("./output-
|
|
53920
|
-
const { handleMetaError: handleMetaError2 } = await import("./shared-
|
|
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
|
|
90142
|
-
|
|
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";
|