@koda-sl/baker-cli 0.353.0-dev.56f955de4 → 0.353.0-dev.5d1d795f9

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
@@ -68,7 +68,7 @@ import {
68
68
  validateCanvasDeep,
69
69
  withoutCastName,
70
70
  ytDlpBlockSignal
71
- } from "./chunk-B7MLH3K6.js";
71
+ } from "./chunk-PHHQLFY3.js";
72
72
  import {
73
73
  csvOrJson,
74
74
  daysAgoIso,
@@ -16798,7 +16798,7 @@ import { defineCommand as defineCommand31 } from "citty";
16798
16798
 
16799
16799
  // src/commands/ads/google/ad-copy-flags.ts
16800
16800
  var AD_COPY_LIST_FLAGS = ["headlines", "descriptions", "long-headlines"];
16801
- var AD_COPY_LIST_USAGE = `repeat the flag once per item, or pass one comma-separated list and wrap an item that contains a comma in double quotes: '"Fast, free quotes",Book today' (or escape its comma: 'Fast\\, free quotes,Book today'). A flag given once is read as a list, so a lone item with a comma needs its double quotes too: '"Fast, free quotes"'`;
16801
+ var AD_COPY_LIST_USAGE = `repeat the flag once per item, or pass one comma-separated list and wrap an item that contains a comma in double quotes: '"Fast, free quotes",Book today'. A flag given once is read as a list, so a lone item with a comma needs its double quotes too: '"Fast, free quotes"'`;
16802
16802
  function skipBlanks(value, at) {
16803
16803
  let i = at;
16804
16804
  while (value[i] === " " || value[i] === " ") i++;
@@ -16822,20 +16822,6 @@ function readQuotedField(value, open, flag) {
16822
16822
  }
16823
16823
  return { text: text2, next: after + 1 };
16824
16824
  }
16825
- function readUnquotedField(value, start) {
16826
- let text2 = "";
16827
- let j = start;
16828
- while (j < value.length && value[j] !== ",") {
16829
- if (value[j] === "\\" && value[j + 1] === ",") {
16830
- text2 += ",";
16831
- j += 2;
16832
- } else {
16833
- text2 += value[j];
16834
- j++;
16835
- }
16836
- }
16837
- return { text: text2, next: j + 1 };
16838
- }
16839
16825
  function splitQuotedList(value, flag) {
16840
16826
  const fields = [];
16841
16827
  let i = 0;
@@ -16846,9 +16832,10 @@ function splitQuotedList(value, flag) {
16846
16832
  fields.push({ text: text2, quoted: true });
16847
16833
  i = next;
16848
16834
  } else {
16849
- const { text: text2, next } = readUnquotedField(value, start);
16850
- fields.push({ text: text2, quoted: false });
16851
- i = next;
16835
+ const comma = value.indexOf(",", start);
16836
+ const end = comma === -1 ? value.length : comma;
16837
+ fields.push({ text: value.slice(start, end), quoted: false });
16838
+ i = end + 1;
16852
16839
  }
16853
16840
  }
16854
16841
  const several = fields.length > 1;
@@ -16866,7 +16853,7 @@ function jsonStringArray(value) {
16866
16853
  function parseCopyList(value, flag) {
16867
16854
  let items;
16868
16855
  if (Array.isArray(value)) {
16869
- items = value.filter((v) => typeof v === "string").map((v) => ({ text: v.replaceAll("\\,", ",").trim(), splitAtComma: false }));
16856
+ items = value.filter((v) => typeof v === "string").map((v) => ({ text: v.trim(), splitAtComma: false }));
16870
16857
  } else if (typeof value === "string") {
16871
16858
  const trimmed = value.trim();
16872
16859
  const json = jsonStringArray(trimmed);
@@ -24830,7 +24817,12 @@ var metaDraftAdvisorySchema = z34.object({
24830
24817
  message: z34.string()
24831
24818
  });
24832
24819
  var metaDraftListResponseSchema = z34.object({
24833
- status: z34.enum(["active", "publishing", "applied", "discarded", "none"]),
24820
+ /**
24821
+ * `applied` means the publish finished with no op failed or skipped — when `mode` is `simulated`
24822
+ * nothing reached Meta. `partial` means the publish finished but at least one op failed or was
24823
+ * skipped — read each op's `result` for which one and why.
24824
+ */
24825
+ status: z34.enum(["active", "publishing", "applied", "partial", "discarded", "none"]),
24834
24826
  mode: metaWriteModeSchema,
24835
24827
  count: z34.number(),
24836
24828
  ops: z34.array(metaDraftOpViewSchema),