cdx-chores 0.2.2-canary.2 → 0.2.2-canary.4

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/README.md CHANGED
@@ -46,7 +46,9 @@ For doctor checks in Interactive mode, choose `doctor`, then select `Summary`,
46
46
 
47
47
  Runtime requirement:
48
48
 
49
- - Node.js `>= 22.23.0`
49
+ - Node.js `>= 22.23.5`
50
+
51
+ Use an up-to-date Node.js 22, 24, or 26 release. Inquirer excludes Node.js 23, Node.js 24 before 24.15.0, and Node.js 25; strict engine checking can reject those versions even though they satisfy the package minimum.
50
52
 
51
53
  ## Command Overview
52
54
 
@@ -83,7 +85,7 @@ Use `cdx-chores doctor` before relying on a command in a script, a CI job, or a
83
85
  | `data extract` reviewed suggestions, `data query codex` | Codex-assisted source shaping, semantic header review, and natural-language SQL drafting | Codex support must be configured and an auth/session signal must be available | Run `cdx-chores doctor` |
84
86
  | `md pdf-profile codex`, `md pdf-template codex`, `md pdf-project codex` | Codex-assisted Markdown PDF profile, template, and coordinated project drafting | Codex support must be configured for Codex-assisted decisions; deterministic fallback paths remain available where documented | Run `cdx-chores doctor` |
85
87
 
86
- The Codex SDK baseline for `v0.2.2-canary.2` is `@openai/codex-sdk` `0.167.0`.
88
+ The Codex SDK baseline for `v0.2.2-canary.4` is `@openai/codex-sdk` `0.169.0`.
87
89
 
88
90
  Adopted helper commands and explicit `interactive` sessions accept
89
91
  `--codex-model`, `--codex-provider`, and `--codex-reasoning-effort`. Model and
@@ -130,7 +130,7 @@ const parser = new fast_xml_parser.XMLParser({
130
130
  parseAttributeValue: false,
131
131
  cdataPropName: "#cdata",
132
132
  htmlEntities: true,
133
- processEntities: { maxExpandedLength: Infinity }
133
+ processEntities: { maxExpandedLength: 1e400 }
134
134
  });
135
135
  const xmlEntities = /* @__PURE__ */ new Set([
136
136
  "amp",
@@ -208,11 +208,6 @@ function parseXml(xml, budget = new XmlBudget(require_limits.resolveDocxLimits()
208
208
  if (!isValidXml(escapeBareAmpersandsForValidation(xml))) throw new Error("docx_xml_invalid");
209
209
  let root;
210
210
  for (const value of parser.parse(normalizeAttributeWhitespace(xml))) {
211
- const cdata = cdataText(value);
212
- if (cdata !== void 0) {
213
- if (root && cdata.length) throw new Error("docx_xml_invalid");
214
- continue;
215
- }
216
211
  const parsed = element(value, /* @__PURE__ */ new Map());
217
212
  if (!parsed) continue;
218
213
  if (root) throw new Error("docx_xml_invalid");
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("./rolldown-runtime-Bc0pwXKd.cjs");
3
3
  const require_file_io = require("./file-io-Mpvv0of_.cjs");
4
4
  const require_template_codex = require("./template-codex-BbSsPb7X.cjs");
5
- const require_menu_prompt = require("./menu-prompt-DpXJjD8C.cjs");
5
+ const require_menu_prompt = require("./menu-prompt-DQJDbHpD.cjs");
6
6
  let commander = require("commander");
7
7
  let node_fs = require("node:fs");
8
8
  let node_fs_promises = require("node:fs/promises");
@@ -26935,7 +26935,7 @@ async function handleRenameInteractiveAction(runtime, pathPromptContext, action,
26935
26935
  // src/cli/interactive/video.ts
26936
26936
  async function handleVideoInteractiveAction(runtime, pathPromptContext, action) {
26937
26937
  if (action === "video:frames") {
26938
- const { handleVideoFramesInteractive } = await Promise.resolve().then(() => require("./workflow-CNoowupZ.cjs"));
26938
+ const { handleVideoFramesInteractive } = await Promise.resolve().then(() => require("./workflow-BEqYNxbo.cjs"));
26939
26939
  await handleVideoFramesInteractive(runtime, pathPromptContext);
26940
26940
  return;
26941
26941
  }
@@ -28139,7 +28139,7 @@ function configureCliProgramOutput(program, runtime) {
28139
28139
  });
28140
28140
  }
28141
28141
  // src/cli/program/version-embedded.ts
28142
- const EMBEDDED_PACKAGE_VERSION = "0.2.2-canary.2";
28142
+ const EMBEDDED_PACKAGE_VERSION = "0.2.2-canary.4";
28143
28143
  // src/cli/program/version.ts
28144
28144
  function* candidateSearchRoots() {
28145
28145
  yield (0, node_path.dirname)((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href));
@@ -28171,7 +28171,7 @@ function normalizeVersion(value) {
28171
28171
  return trimmed;
28172
28172
  }
28173
28173
  function resolvePackageVersion(options = {}) {
28174
- const embeddedVersion = normalizeVersion(options.embeddedVersion ?? "0.2.2-canary.2");
28174
+ const embeddedVersion = normalizeVersion(options.embeddedVersion ?? "0.2.2-canary.4");
28175
28175
  if (embeddedVersion) return embeddedVersion;
28176
28176
  const maxLevels = options.maxLevels ?? 8;
28177
28177
  const resolveFromPath = options.resolveFromPath ?? resolveVersionFromPath;
@@ -1901,7 +1901,7 @@ var FrameResolver = class {
1901
1901
  const { source, stream } = context;
1902
1902
  let count = 0, origin, previous, ordered = true;
1903
1903
  let first, last, candidate;
1904
- let lastDuration, lastProgress = -Infinity;
1904
+ let lastDuration, lastProgress = -1e400;
1905
1905
  const canStop = !requireEof && request.kind === "time" && this.summary?.ordered;
1906
1906
  const previousOrigin = this.summary?.originTicks;
1907
1907
  const result = await this.backend.scan(operation, source.canonicalPath, stream, (frame) => {
@@ -3182,7 +3182,7 @@ function createFrameProgressPresenter(stream, options) {
3182
3182
  const began = now();
3183
3183
  let state = { label: options.label };
3184
3184
  let stopped = false, stopping = false, paused = false;
3185
- let lastUpdate = -Infinity, tick = 0;
3185
+ let lastUpdate = -1e400, tick = 0;
3186
3186
  let previous = [];
3187
3187
  let previousColumns = 80;
3188
3188
  const columns = () => Number.isSafeInteger(terminal.columns) && terminal.columns > 0 ? terminal.columns : 80;
@@ -1,4 +1,4 @@
1
- const require_menu_prompt = require("./menu-prompt-DpXJjD8C.cjs");
1
+ const require_menu_prompt = require("./menu-prompt-DQJDbHpD.cjs");
2
2
  const require_file_io = require("./file-io-Mpvv0of_.cjs");
3
3
  let node_path = require("node:path");
4
4
  let _inquirer_prompts = require("@inquirer/prompts");
@@ -62,7 +62,7 @@ async function chooseFrameOption(io, message, choices, exitValue, defaultValue)
62
62
  const description = (choice) => {
63
63
  const { rows, columns } = terminalSize();
64
64
  if (!choice.description) return void 0;
65
- const available = rows === void 0 ? Infinity : rows - textRows(`? ${promptMessage}`, columns) - textRows(help(), columns) - textRows(`> ${choice.name}`, columns) - 2;
65
+ const available = rows === void 0 ? 1e400 : rows - textRows(`? ${promptMessage}`, columns) - textRows(help(), columns) - textRows(`> ${choice.name}`, columns) - 2;
66
66
  if (textRows(choice.description, columns) <= available) return choice.description;
67
67
  if (choice.compactDescription && textRows(choice.compactDescription, columns) <= available) return choice.compactDescription;
68
68
  return fitDescription(choice.compactDescription ?? choice.description);
package/dist/esm/bin.mjs CHANGED
@@ -27094,7 +27094,7 @@ var FrameResolver = class {
27094
27094
  const { source, stream } = context;
27095
27095
  let count = 0, origin, previous, ordered = true;
27096
27096
  let first, last, candidate;
27097
- let lastDuration, lastProgress = -Infinity;
27097
+ let lastDuration, lastProgress = -1e400;
27098
27098
  const canStop = !requireEof && request.kind === "time" && this.summary?.ordered;
27099
27099
  const previousOrigin = this.summary?.originTicks;
27100
27100
  const result = await this.backend.scan(operation, source.canonicalPath, stream, (frame) => {
@@ -28375,7 +28375,7 @@ function createFrameProgressPresenter(stream, options) {
28375
28375
  const began = now();
28376
28376
  let state = { label: options.label };
28377
28377
  let stopped = false, stopping = false, paused = false;
28378
- let lastUpdate = -Infinity, tick = 0;
28378
+ let lastUpdate = -1e400, tick = 0;
28379
28379
  let previous = [];
28380
28380
  let previousColumns = 80;
28381
28381
  const columns = () => Number.isSafeInteger(terminal.columns) && terminal.columns > 0 ? terminal.columns : 80;
@@ -40276,7 +40276,7 @@ function normalizeVersion(value) {
40276
40276
  return trimmed;
40277
40277
  }
40278
40278
  function resolvePackageVersion(options = {}) {
40279
- const embeddedVersion = normalizeVersion(options.embeddedVersion ?? "0.2.2-canary.2");
40279
+ const embeddedVersion = normalizeVersion(options.embeddedVersion ?? "0.2.2-canary.4");
40280
40280
  if (embeddedVersion) return embeddedVersion;
40281
40281
  const maxLevels = options.maxLevels ?? 8;
40282
40282
  const resolveFromPath = options.resolveFromPath ?? resolveVersionFromPath;
@@ -127,7 +127,7 @@ const parser = new XMLParser({
127
127
  parseAttributeValue: false,
128
128
  cdataPropName: "#cdata",
129
129
  htmlEntities: true,
130
- processEntities: { maxExpandedLength: Infinity }
130
+ processEntities: { maxExpandedLength: 1e400 }
131
131
  });
132
132
  const xmlEntities = /* @__PURE__ */ new Set([
133
133
  "amp",
@@ -205,11 +205,6 @@ function parseXml(xml, budget = new XmlBudget(resolveDocxLimits()), part = "inli
205
205
  if (!isValidXml(escapeBareAmpersandsForValidation(xml))) throw new Error("docx_xml_invalid");
206
206
  let root;
207
207
  for (const value of parser.parse(normalizeAttributeWhitespace(xml))) {
208
- const cdata = cdataText(value);
209
- if (cdata !== void 0) {
210
- if (root && cdata.length) throw new Error("docx_xml_invalid");
211
- continue;
212
- }
213
208
  const parsed = element(value, /* @__PURE__ */ new Map());
214
209
  if (!parsed) continue;
215
210
  if (root) throw new Error("docx_xml_invalid");
@@ -1,4 +1,3 @@
1
- import "node:module";
2
1
  import { constants } from "node:fs";
3
2
  import { lstat, mkdir, open, readFile, rename, rm, stat } from "node:fs/promises";
4
3
  import { basename, dirname, isAbsolute, join, parse, relative, resolve, sep } from "node:path";
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import "node:module";
4
3
  import { constants } from "node:fs";
5
4
  import { lstat, mkdir, open, readFile, rename, rm, stat } from "node:fs/promises";
6
5
  import { basename, dirname, isAbsolute, join, parse, relative, resolve, sep } from "node:path";
@@ -9,7 +9,7 @@ interface RunCliOptions {
9
9
  displayPathStyle?: "relative" | "absolute";
10
10
  }
11
11
  export declare function runCli(argv?: string[], runtime?: RunCliOptions): Promise<void>;
12
- export declare const EMBEDDED_PACKAGE_VERSION = "0.2.2-canary.2";
12
+ export declare const EMBEDDED_PACKAGE_VERSION = "0.2.2-canary.4";
13
13
  type CsvRecord = Record<string, unknown>;
14
14
  export declare function stringifyCsv(rows: CsvRecord[]): string;
15
15
  export declare function parseCsv(text: string): string[][];
@@ -1,6 +1,6 @@
1
- import { S as require_picocolors, _ as resolveFromCwd, a as MARKDOWN_PDF_LOGICAL_FINAL_TARGET_ID, b as getCliColors, d as assertNonEmpty, f as displayPath, g as formatPathForDisplay, h as printLine, i as writeTextFileSafe, l as markdownPdfPageNumberFormatTokens, m as printDestination, n as readTextFileRequired, p as ensureFileExists, r as writeBufferFileSafe, v as CliError, x as resolveCliColorEnabled, y as toCliError } from "./file-io-zcm-G8Mo.mjs";
2
- import { $ as assertPathInsideDirectory, $t as MARKDOWN_PDF_CODE_CLASSES, A as deriveMdPdfTemplateCodexFontOwnership, An as summarizeCodexBatchFailures, At as NERD_FONT_SAMPLE_TEXT, B as collectMdPdfTemplateCodexRecipeSignals, Bt as MARKDOWN_PDF_PROFILE_SUPPORTED_SCHEMA_SUMMARY, C as writePreparedMdPdfTemplateCodexReport, Cn as DEFAULT_NORMALIZED_MARKDOWN_PDF_PROFILE, Ct as collectSearchableFontFamilies, D as createMdPdfTemplateCodexRenderCommand, Dn as inspectCodexEnvironment, Dt as matchesFontFamily, En as executeBatchesWithRetries, Et as inspectFontFaces, F as inspectMarkdownPdfTemplateBody, Fn as MAX_CODEX_REQUEST_TIMEOUT_MS, Ft as parseMarkdownPdfProfileFile, G as collectMarkdownPdfDocumentSignals, Gt as normalizeMarkdownPdfProfileIdentity, H as collectTemplateCodexCoverImageSignals, Ht as validateMarkdownPdfBodyFontKey, I as createMarkdownPdfRecipe, In as formatCodexTimeoutDuration, It as readMarkdownPdfProfileFile, J as createAbsentMarkdownPdfDocumentSignals, Jt as MARKDOWN_PDF_PRESETS, K as collectMarkdownPdfFontSignals, Kt as MARKDOWN_PDF_ORIENTATIONS, L as createCodexProgressSession, Ln as resolveCodexExecution, Lt as normalizeMarkdownPdfProfile, M as assessMarkdownPdfTemplateCompatibility, Mn as formatCodexRequestFailure, Mt as formatFontCodepoint, N as assessMarkdownPdfTemplateCoverCompatibility, Nn as formatCodexTimeoutFailure, Nt as requiredFontCoverageCodepoints, O as collectMdPdfTemplateCodexFontSignals, On as parseFilenameTitleSuggestions, Ot as selectFontFaceForCheck, P as isManagedMarkdownPdfTemplate, Pn as DEFAULT_CODEX_REQUEST_TIMEOUT_MS, Pt as serializeMarkdownPdfProfile, Q as assertDistinctPathPairs, Qt as validateMarkdownPdfCssLength, R as createDirectCodexProgressPresenter, Rn as sleep, Rt as resolveMarkdownPdfCodeOptions, S as writePreparedMdPdfTemplateCodexBundle, Sn as isMarkdownPdfRendererCapabilityId, St as rankSearchableFontFamilies, Tn as chunkItems, Tt as discoverSystemFonts, U as hasExplicitHideMetadataTitleIntent, Ut as validateMarkdownPdfProfileShape, V as buildMarkdownPdfTableLayoutSignal, Vt as inferMarkdownPdfProfileFormat, W as hasExplicitKeepMetadataTitleIntent, Wt as createMarkdownPdfProfileConfig, X as loadMarkdownPdfBaseProfileCandidate, Xt as MARKDOWN_PDF_TOC_PAGE_BREAKS, Y as createMarkdownPdfProfileCandidates, Yt as MARKDOWN_PDF_PRESET_GUIDANCE, Z as SUPPORTED_TEMPLATE_CODEX_COVER_IMAGE_EXTENSIONS, Zt as normalizeMarkdownPdfOptions, _ as prepareMdPdfTemplateCodex, _n as markdownPdfProfileRendererCapabilities, _t as ensureExistingFile, an as isMarkdownPdfPageChromeColor, at as formatUtcFileDateTime, bn as MARKDOWN_PDF_RENDERER_CAPABILITY_IDS, bt as parseMarkdown, cn as isMarkdownPdfPageChromeSeparatorGap, ct as publicPathBasename, dn as MARKDOWN_PDF_COVER_STYLES$1, dt as shellQuote, en as MARKDOWN_PDF_PROFILE_TEXT_COVER_MARKER, et as assertUsableCodexOutputDirectory, fn as MARKDOWN_PDF_PAGE_CHROME_FONT_WEIGHTS, ft as normalizeOptionalText$1, g as normalizeCssForInspection, gn as MARKDOWN_PDF_PAGE_NUMBER_SCOPES, gt as definedRecipeOptions, hn as MARKDOWN_PDF_PAGE_NUMBER_COUNT_ORIGINS, ht as resolveOptionalPath, in as resolveMarkdownPdfPageNumberSlot, it as formatLocalFileDateTimeISO, j as mdPdfTemplateCodexOwnsFontSlot, jn as classifyCodexRequestFailure, jt as fontconfigCoverageProvider, k as createMdPdfTemplateCodexBaseProfileSummary, kn as startCodexReadOnlyThread, kt as uniqueFontFaces, ln as isMarkdownPdfPageChromeSeparatorWidth, lt as publicPathDisplay, mn as MARKDOWN_PDF_PAGE_CHROME_SEPARATOR_STYLES, mt as resolveOptionalMarkdownInputPath, nn as createMarkdownPdfCoverHtml, nt as formatLocalFileDateTime, on as isMarkdownPdfPageChromeFontSize, ot as formatUtcFileDateTime12Hour, pn as MARKDOWN_PDF_PAGE_CHROME_POSITIONS, pt as normalizeTextList, q as collectMarkdownPdfTitleSignals, qt as MARKDOWN_PDF_PAGE_SIZES, rn as createMarkdownPdfCoverScaffold, rt as formatLocalFileDateTime12Hour, sn as isMarkdownPdfPageChromeLineHeight, st as formatUtcFileDateTimeISO, tn as assessMarkdownPdfCoverVisibility, tt as assertWritableCodexPlannedFile, un as MARKDOWN_PDF_CODE_THEMES, ut as publicPathFromCwd, v as synthesizeMdPdfTemplateCodex, vn as markdownPdfProfileRendererCapability, vt as ensureOutputDoesNotExist, w as validateMdPdfTemplateCodexSynthesis, wn as CODEX_FILENAME_TITLE_OUTPUT_SCHEMA, wt as defaultFontDiscoveryRunner, x as rebindPreparedMdPdfTemplateCodexArtifact, xn as isMarkdownPdfRendererCapabilityField, xt as parseTomlFrontmatter, y as synthesizeMdPdfTemplateCodexFromDecision, yn as markdownPdfProfileRendererCapabilityFields, yt as isNotFoundError, z as startDirectCodexProgress, zt as MARKDOWN_PDF_PROFILE_ROOT_KEYS } from "./template-codex-CZL5eXa5.mjs";
3
- import { B as truncateAndPadToDisplayWidth, F as formatSerialValue, G as unknownImageEncoders, H as styleCliDiagnosticLabel, I as normalizeRenderedBaseName, J as requireCommandAvailable, K as assessCommandMinimumVersion, L as slugifyName, P as buildSerialByPath, R as withNumericSuffix, U as defaultOutputPath, W as inspectAdvertisedImageEncoders, X as execCommand, Y as requireCommandMinimumVersion, i as promptOptionalOutputPathChoice, m as actionVideoFrames, n as promptTextWithGhost, o as promptRequiredPathWithConfig, p as resolvePathPromptRuntimeConfig, q as inspectCommand, r as formatDefaultOutputPathHint, t as selectInteractiveMenuChoice, z as getDisplayWidth } from "./menu-prompt-9Zoib-bA.mjs";
1
+ import { S as require_picocolors, _ as resolveFromCwd, a as MARKDOWN_PDF_LOGICAL_FINAL_TARGET_ID, b as getCliColors, d as assertNonEmpty, f as displayPath, g as formatPathForDisplay, h as printLine, i as writeTextFileSafe, l as markdownPdfPageNumberFormatTokens, m as printDestination, n as readTextFileRequired, p as ensureFileExists, r as writeBufferFileSafe, v as CliError, x as resolveCliColorEnabled, y as toCliError } from "./file-io-C1PQ_oXB.mjs";
2
+ import { $ as assertPathInsideDirectory, $t as MARKDOWN_PDF_CODE_CLASSES, A as deriveMdPdfTemplateCodexFontOwnership, An as summarizeCodexBatchFailures, At as NERD_FONT_SAMPLE_TEXT, B as collectMdPdfTemplateCodexRecipeSignals, Bt as MARKDOWN_PDF_PROFILE_SUPPORTED_SCHEMA_SUMMARY, C as writePreparedMdPdfTemplateCodexReport, Cn as DEFAULT_NORMALIZED_MARKDOWN_PDF_PROFILE, Ct as collectSearchableFontFamilies, D as createMdPdfTemplateCodexRenderCommand, Dn as inspectCodexEnvironment, Dt as matchesFontFamily, En as executeBatchesWithRetries, Et as inspectFontFaces, F as inspectMarkdownPdfTemplateBody, Fn as MAX_CODEX_REQUEST_TIMEOUT_MS, Ft as parseMarkdownPdfProfileFile, G as collectMarkdownPdfDocumentSignals, Gt as normalizeMarkdownPdfProfileIdentity, H as collectTemplateCodexCoverImageSignals, Ht as validateMarkdownPdfBodyFontKey, I as createMarkdownPdfRecipe, In as formatCodexTimeoutDuration, It as readMarkdownPdfProfileFile, J as createAbsentMarkdownPdfDocumentSignals, Jt as MARKDOWN_PDF_PRESETS, K as collectMarkdownPdfFontSignals, Kt as MARKDOWN_PDF_ORIENTATIONS, L as createCodexProgressSession, Ln as resolveCodexExecution, Lt as normalizeMarkdownPdfProfile, M as assessMarkdownPdfTemplateCompatibility, Mn as formatCodexRequestFailure, Mt as formatFontCodepoint, N as assessMarkdownPdfTemplateCoverCompatibility, Nn as formatCodexTimeoutFailure, Nt as requiredFontCoverageCodepoints, O as collectMdPdfTemplateCodexFontSignals, On as parseFilenameTitleSuggestions, Ot as selectFontFaceForCheck, P as isManagedMarkdownPdfTemplate, Pn as DEFAULT_CODEX_REQUEST_TIMEOUT_MS, Pt as serializeMarkdownPdfProfile, Q as assertDistinctPathPairs, Qt as validateMarkdownPdfCssLength, R as createDirectCodexProgressPresenter, Rn as sleep, Rt as resolveMarkdownPdfCodeOptions, S as writePreparedMdPdfTemplateCodexBundle, Sn as isMarkdownPdfRendererCapabilityId, St as rankSearchableFontFamilies, Tn as chunkItems, Tt as discoverSystemFonts, U as hasExplicitHideMetadataTitleIntent, Ut as validateMarkdownPdfProfileShape, V as buildMarkdownPdfTableLayoutSignal, Vt as inferMarkdownPdfProfileFormat, W as hasExplicitKeepMetadataTitleIntent, Wt as createMarkdownPdfProfileConfig, X as loadMarkdownPdfBaseProfileCandidate, Xt as MARKDOWN_PDF_TOC_PAGE_BREAKS, Y as createMarkdownPdfProfileCandidates, Yt as MARKDOWN_PDF_PRESET_GUIDANCE, Z as SUPPORTED_TEMPLATE_CODEX_COVER_IMAGE_EXTENSIONS, Zt as normalizeMarkdownPdfOptions, _ as prepareMdPdfTemplateCodex, _n as markdownPdfProfileRendererCapabilities, _t as ensureExistingFile, an as isMarkdownPdfPageChromeColor, at as formatUtcFileDateTime, bn as MARKDOWN_PDF_RENDERER_CAPABILITY_IDS, bt as parseMarkdown, cn as isMarkdownPdfPageChromeSeparatorGap, ct as publicPathBasename, dn as MARKDOWN_PDF_COVER_STYLES$1, dt as shellQuote, en as MARKDOWN_PDF_PROFILE_TEXT_COVER_MARKER, et as assertUsableCodexOutputDirectory, fn as MARKDOWN_PDF_PAGE_CHROME_FONT_WEIGHTS, ft as normalizeOptionalText$1, g as normalizeCssForInspection, gn as MARKDOWN_PDF_PAGE_NUMBER_SCOPES, gt as definedRecipeOptions, hn as MARKDOWN_PDF_PAGE_NUMBER_COUNT_ORIGINS, ht as resolveOptionalPath, in as resolveMarkdownPdfPageNumberSlot, it as formatLocalFileDateTimeISO, j as mdPdfTemplateCodexOwnsFontSlot, jn as classifyCodexRequestFailure, jt as fontconfigCoverageProvider, k as createMdPdfTemplateCodexBaseProfileSummary, kn as startCodexReadOnlyThread, kt as uniqueFontFaces, ln as isMarkdownPdfPageChromeSeparatorWidth, lt as publicPathDisplay, mn as MARKDOWN_PDF_PAGE_CHROME_SEPARATOR_STYLES, mt as resolveOptionalMarkdownInputPath, nn as createMarkdownPdfCoverHtml, nt as formatLocalFileDateTime, on as isMarkdownPdfPageChromeFontSize, ot as formatUtcFileDateTime12Hour, pn as MARKDOWN_PDF_PAGE_CHROME_POSITIONS, pt as normalizeTextList, q as collectMarkdownPdfTitleSignals, qt as MARKDOWN_PDF_PAGE_SIZES, rn as createMarkdownPdfCoverScaffold, rt as formatLocalFileDateTime12Hour, sn as isMarkdownPdfPageChromeLineHeight, st as formatUtcFileDateTimeISO, tn as assessMarkdownPdfCoverVisibility, tt as assertWritableCodexPlannedFile, un as MARKDOWN_PDF_CODE_THEMES, ut as publicPathFromCwd, v as synthesizeMdPdfTemplateCodex, vn as markdownPdfProfileRendererCapability, vt as ensureOutputDoesNotExist, w as validateMdPdfTemplateCodexSynthesis, wn as CODEX_FILENAME_TITLE_OUTPUT_SCHEMA, wt as defaultFontDiscoveryRunner, x as rebindPreparedMdPdfTemplateCodexArtifact, xn as isMarkdownPdfRendererCapabilityField, xt as parseTomlFrontmatter, y as synthesizeMdPdfTemplateCodexFromDecision, yn as markdownPdfProfileRendererCapabilityFields, yt as isNotFoundError, z as startDirectCodexProgress, zt as MARKDOWN_PDF_PROFILE_ROOT_KEYS } from "./template-codex-ClJuUmLu.mjs";
3
+ import { B as truncateAndPadToDisplayWidth, F as formatSerialValue, G as unknownImageEncoders, H as styleCliDiagnosticLabel, I as normalizeRenderedBaseName, J as requireCommandAvailable, K as assessCommandMinimumVersion, L as slugifyName, P as buildSerialByPath, R as withNumericSuffix, U as defaultOutputPath, W as inspectAdvertisedImageEncoders, X as execCommand, Y as requireCommandMinimumVersion, i as promptOptionalOutputPathChoice, m as actionVideoFrames, n as promptTextWithGhost, o as promptRequiredPathWithConfig, p as resolvePathPromptRuntimeConfig, q as inspectCommand, r as formatDefaultOutputPathHint, t as selectInteractiveMenuChoice, z as getDisplayWidth } from "./menu-prompt-BlBP8D1b.mjs";
4
4
  import { createRequire } from "node:module";
5
5
  import { Command, InvalidArgumentError, Option } from "commander";
6
6
  import { constants, readFileSync } from "node:fs";
@@ -12097,7 +12097,7 @@ async function suggestProjectTemplateWithCodexProgress(input) {
12097
12097
  codexProgress.begin("Requesting Codex Markdown PDF project template recommendation");
12098
12098
  let codexProgressStatus = "error";
12099
12099
  try {
12100
- const { suggestMarkdownPdfTemplateWithCodex } = await import("./markdown-pdf-template-CNYkGyYE.mjs");
12100
+ const { suggestMarkdownPdfTemplateWithCodex } = await import("./markdown-pdf-template-BIhdObm3.mjs");
12101
12101
  const result = input.templateCodexRunner ? await suggestMarkdownPdfTemplateWithCodex({
12102
12102
  intent: input.intent,
12103
12103
  outputPlan: input.outputPlan,
@@ -26930,7 +26930,7 @@ async function handleRenameInteractiveAction(runtime, pathPromptContext, action,
26930
26930
  // src/cli/interactive/video.ts
26931
26931
  async function handleVideoInteractiveAction(runtime, pathPromptContext, action) {
26932
26932
  if (action === "video:frames") {
26933
- const { handleVideoFramesInteractive } = await import("./workflow-1nfXM6gq.mjs");
26933
+ const { handleVideoFramesInteractive } = await import("./workflow-B2oAM3-e.mjs");
26934
26934
  await handleVideoFramesInteractive(runtime, pathPromptContext);
26935
26935
  return;
26936
26936
  }
@@ -28134,7 +28134,7 @@ function configureCliProgramOutput(program, runtime) {
28134
28134
  });
28135
28135
  }
28136
28136
  // src/cli/program/version-embedded.ts
28137
- const EMBEDDED_PACKAGE_VERSION = "0.2.2-canary.2";
28137
+ const EMBEDDED_PACKAGE_VERSION = "0.2.2-canary.4";
28138
28138
  // src/cli/program/version.ts
28139
28139
  function* candidateSearchRoots() {
28140
28140
  yield dirname(fileURLToPath(import.meta.url));
@@ -28166,7 +28166,7 @@ function normalizeVersion(value) {
28166
28166
  return trimmed;
28167
28167
  }
28168
28168
  function resolvePackageVersion(options = {}) {
28169
- const embeddedVersion = normalizeVersion(options.embeddedVersion ?? "0.2.2-canary.2");
28169
+ const embeddedVersion = normalizeVersion(options.embeddedVersion ?? "0.2.2-canary.4");
28170
28170
  if (embeddedVersion) return embeddedVersion;
28171
28171
  const maxLevels = options.maxLevels ?? 8;
28172
28172
  const resolveFromPath = options.resolveFromPath ?? resolveVersionFromPath;
@@ -1,4 +1,4 @@
1
- import { E as MARKDOWN_PDF_TEMPLATE_CODEX_FAMILIES, Ln as resolveCodexExecution, Nn as formatCodexTimeoutFailure, Pn as DEFAULT_CODEX_REQUEST_TIMEOUT_MS, T as MARKDOWN_PDF_TEMPLATE_CODEX_CONTRACT, a as MARKDOWN_PDF_TEMPLATE_CODEX_COVER_MEDIA_SCALES, b as resolveMdPdfTemplateCodexSlots, c as MARKDOWN_PDF_TEMPLATE_CODEX_FONT_DECISION_SOURCES, d as MARKDOWN_PDF_TEMPLATE_CODEX_RECIPE_PRESETS, f as MARKDOWN_PDF_TEMPLATE_CODEX_RECIPE_PRESET_SOURCES, h as MARKDOWN_PDF_TEMPLATE_CODEX_CSS_BLOCK_SLOTS, i as MARKDOWN_PDF_TEMPLATE_CODEX_COVER_MEDIA_ALIGNS, jn as classifyCodexRequestFailure, kn as startCodexReadOnlyThread, l as MARKDOWN_PDF_TEMPLATE_CODEX_FONT_ROLES, m as validateMarkdownPdfTemplateCodexDecision, n as MARKDOWN_PDF_TEMPLATE_CODEX_COVER_COMPOSITIONS, o as MARKDOWN_PDF_TEMPLATE_CODEX_COVER_TEXT_ALIGNS, p as MARKDOWN_PDF_TEMPLATE_CODEX_TEMPLATE_FAMILIES, r as MARKDOWN_PDF_TEMPLATE_CODEX_COVER_IMAGE_ANCHORS, s as MARKDOWN_PDF_TEMPLATE_CODEX_DECISION_MODES, t as MARKDOWN_PDF_TEMPLATE_CODEX_COVER_BYLINES, u as MARKDOWN_PDF_TEMPLATE_CODEX_IMAGE_FITS } from "./template-codex-CZL5eXa5.mjs";
1
+ import { E as MARKDOWN_PDF_TEMPLATE_CODEX_FAMILIES, Ln as resolveCodexExecution, Nn as formatCodexTimeoutFailure, Pn as DEFAULT_CODEX_REQUEST_TIMEOUT_MS, T as MARKDOWN_PDF_TEMPLATE_CODEX_CONTRACT, a as MARKDOWN_PDF_TEMPLATE_CODEX_COVER_MEDIA_SCALES, b as resolveMdPdfTemplateCodexSlots, c as MARKDOWN_PDF_TEMPLATE_CODEX_FONT_DECISION_SOURCES, d as MARKDOWN_PDF_TEMPLATE_CODEX_RECIPE_PRESETS, f as MARKDOWN_PDF_TEMPLATE_CODEX_RECIPE_PRESET_SOURCES, h as MARKDOWN_PDF_TEMPLATE_CODEX_CSS_BLOCK_SLOTS, i as MARKDOWN_PDF_TEMPLATE_CODEX_COVER_MEDIA_ALIGNS, jn as classifyCodexRequestFailure, kn as startCodexReadOnlyThread, l as MARKDOWN_PDF_TEMPLATE_CODEX_FONT_ROLES, m as validateMarkdownPdfTemplateCodexDecision, n as MARKDOWN_PDF_TEMPLATE_CODEX_COVER_COMPOSITIONS, o as MARKDOWN_PDF_TEMPLATE_CODEX_COVER_TEXT_ALIGNS, p as MARKDOWN_PDF_TEMPLATE_CODEX_TEMPLATE_FAMILIES, r as MARKDOWN_PDF_TEMPLATE_CODEX_COVER_IMAGE_ANCHORS, s as MARKDOWN_PDF_TEMPLATE_CODEX_DECISION_MODES, t as MARKDOWN_PDF_TEMPLATE_CODEX_COVER_BYLINES, u as MARKDOWN_PDF_TEMPLATE_CODEX_IMAGE_FITS } from "./template-codex-ClJuUmLu.mjs";
2
2
  // src/adapters/codex/markdown-pdf-template/decision.ts
3
3
  const COVER_STYLE_VALUES$1 = [
4
4
  "none",
@@ -1,4 +1,4 @@
1
- import { _ as resolveFromCwd, b as getCliColors, g as formatPathForDisplay, h as printLine, m as printDestination, s as MARKDOWN_PDF_PAGE_NUMBER_FORMAT_TOKENS, t as assertNoSymlinkPathParents, v as CliError, x as resolveCliColorEnabled } from "./file-io-zcm-G8Mo.mjs";
1
+ import { _ as resolveFromCwd, b as getCliColors, g as formatPathForDisplay, h as printLine, m as printDestination, s as MARKDOWN_PDF_PAGE_NUMBER_FORMAT_TOKENS, t as assertNoSymlinkPathParents, v as CliError, x as resolveCliColorEnabled } from "./file-io-C1PQ_oXB.mjs";
2
2
  import { constants } from "node:fs";
3
3
  import { link, lstat, mkdir, mkdtemp, open, opendir, readdir, realpath, rename, rmdir, stat, unlink } from "node:fs/promises";
4
4
  import { basename, dirname, extname, join, relative, resolve } from "node:path";
@@ -1901,7 +1901,7 @@ var FrameResolver = class {
1901
1901
  const { source, stream } = context;
1902
1902
  let count = 0, origin, previous, ordered = true;
1903
1903
  let first, last, candidate;
1904
- let lastDuration, lastProgress = -Infinity;
1904
+ let lastDuration, lastProgress = -1e400;
1905
1905
  const canStop = !requireEof && request.kind === "time" && this.summary?.ordered;
1906
1906
  const previousOrigin = this.summary?.originTicks;
1907
1907
  const result = await this.backend.scan(operation, source.canonicalPath, stream, (frame) => {
@@ -3182,7 +3182,7 @@ function createFrameProgressPresenter(stream, options) {
3182
3182
  const began = now();
3183
3183
  let state = { label: options.label };
3184
3184
  let stopped = false, stopping = false, paused = false;
3185
- let lastUpdate = -Infinity, tick = 0;
3185
+ let lastUpdate = -1e400, tick = 0;
3186
3186
  let previous = [];
3187
3187
  let previousColumns = 80;
3188
3188
  const columns = () => Number.isSafeInteger(terminal.columns) && terminal.columns > 0 ? terminal.columns : 80;
@@ -1,4 +1,4 @@
1
- import { _ as resolveFromCwd, a as MARKDOWN_PDF_LOGICAL_FINAL_TARGET_ID, c as MARKDOWN_PDF_PAGE_NUMBER_FORMAT_TOKEN_DEFINITIONS, d as assertNonEmpty, h as printLine, i as writeTextFileSafe, l as markdownPdfPageNumberFormatTokens, n as readTextFileRequired, o as MARKDOWN_PDF_LOGICAL_PAGE_COUNTER_NAME, r as writeBufferFileSafe, t as assertNoSymlinkPathParents, u as parseMarkdownPdfPageNumberFormat, v as CliError } from "./file-io-zcm-G8Mo.mjs";
1
+ import { _ as resolveFromCwd, a as MARKDOWN_PDF_LOGICAL_FINAL_TARGET_ID, c as MARKDOWN_PDF_PAGE_NUMBER_FORMAT_TOKEN_DEFINITIONS, d as assertNonEmpty, h as printLine, i as writeTextFileSafe, l as markdownPdfPageNumberFormatTokens, n as readTextFileRequired, o as MARKDOWN_PDF_LOGICAL_PAGE_COUNTER_NAME, r as writeBufferFileSafe, t as assertNoSymlinkPathParents, u as parseMarkdownPdfPageNumberFormat, v as CliError } from "./file-io-C1PQ_oXB.mjs";
2
2
  import { accessSync, constants, existsSync, statSync } from "node:fs";
3
3
  import { lstat, open, readFile, readdir, stat } from "node:fs/promises";
4
4
  import { homedir } from "node:os";
@@ -6710,7 +6710,7 @@ async function suggestMdPdfTemplateWithCodexProgress(input) {
6710
6710
  codexProgress.begin("Requesting Codex Markdown PDF template recommendation");
6711
6711
  let codexProgressStatus = "error";
6712
6712
  try {
6713
- const { suggestMarkdownPdfTemplateWithCodex } = await import("./markdown-pdf-template-CNYkGyYE.mjs");
6713
+ const { suggestMarkdownPdfTemplateWithCodex } = await import("./markdown-pdf-template-BIhdObm3.mjs");
6714
6714
  const result = await suggestMarkdownPdfTemplateWithCodex({
6715
6715
  intent: input.state.intent,
6716
6716
  outputPlan: input.outputPlan,
@@ -1,5 +1,5 @@
1
- import { A as expectedSequenceCount, C as FrameResolver, D as effectiveFrameSerial, E as FrameNamer, M as compare, N as exact, O as sourceStem, S as FrameExportError, T as FRAME_NAME_DEFAULTS, V as truncateToDisplayWidth, _ as prepareVideoFrames, a as promptPath, b as parseFrameNumber, c as createKeypressParser, d as clearCurrentLine, f as moveCursorUp, g as inspectVideoFramesTools, h as executePreparedVideoFrames, j as frameCadence, k as validateFrameTemplate, l as startRawSession, n as promptTextWithGhost, p as resolvePathPromptRuntimeConfig, s as promptPathInlineGhost, t as selectInteractiveMenuChoice, u as supportsRawSessionIO, v as withVideoFramesSignal, w as requireImageExtension, x as parseFrameTime, y as createFrameProgressPresenter, z as getDisplayWidth } from "./menu-prompt-9Zoib-bA.mjs";
2
- import { b as getCliColors, f as displayPath, v as CliError } from "./file-io-zcm-G8Mo.mjs";
1
+ import { A as expectedSequenceCount, C as FrameResolver, D as effectiveFrameSerial, E as FrameNamer, M as compare, N as exact, O as sourceStem, S as FrameExportError, T as FRAME_NAME_DEFAULTS, V as truncateToDisplayWidth, _ as prepareVideoFrames, a as promptPath, b as parseFrameNumber, c as createKeypressParser, d as clearCurrentLine, f as moveCursorUp, g as inspectVideoFramesTools, h as executePreparedVideoFrames, j as frameCadence, k as validateFrameTemplate, l as startRawSession, n as promptTextWithGhost, p as resolvePathPromptRuntimeConfig, s as promptPathInlineGhost, t as selectInteractiveMenuChoice, u as supportsRawSessionIO, v as withVideoFramesSignal, w as requireImageExtension, x as parseFrameTime, y as createFrameProgressPresenter, z as getDisplayWidth } from "./menu-prompt-BlBP8D1b.mjs";
2
+ import { b as getCliColors, f as displayPath, v as CliError } from "./file-io-C1PQ_oXB.mjs";
3
3
  import { dirname, join, resolve } from "node:path";
4
4
  import { input, select } from "@inquirer/prompts";
5
5
  // src/cli/interactive/video-frames/simple-prompts.ts
@@ -62,7 +62,7 @@ async function chooseFrameOption(io, message, choices, exitValue, defaultValue)
62
62
  const description = (choice) => {
63
63
  const { rows, columns } = terminalSize();
64
64
  if (!choice.description) return void 0;
65
- const available = rows === void 0 ? Infinity : rows - textRows(`? ${promptMessage}`, columns) - textRows(help(), columns) - textRows(`> ${choice.name}`, columns) - 2;
65
+ const available = rows === void 0 ? 1e400 : rows - textRows(`? ${promptMessage}`, columns) - textRows(help(), columns) - textRows(`> ${choice.name}`, columns) - 2;
66
66
  if (textRows(choice.description, columns) <= available) return choice.description;
67
67
  if (choice.compactDescription && textRows(choice.compactDescription, columns) <= available) return choice.compactDescription;
68
68
  return fitDescription(choice.compactDescription ?? choice.description);
@@ -64,7 +64,7 @@ async function chooseFrameOption(io, message, choices, exitValue, defaultValue)
64
64
  const description = (choice) => {
65
65
  const { rows, columns } = terminalSize();
66
66
  if (!choice.description) return void 0;
67
- const available = rows === void 0 ? Infinity : rows - textRows(`? ${promptMessage}`, columns) - textRows(help(), columns) - textRows(`> ${choice.name}`, columns) - 2;
67
+ const available = rows === void 0 ? 1e400 : rows - textRows(`? ${promptMessage}`, columns) - textRows(help(), columns) - textRows(`> ${choice.name}`, columns) - 2;
68
68
  if (textRows(choice.description, columns) <= available) return choice.description;
69
69
  if (choice.compactDescription && textRows(choice.compactDescription, columns) <= available) return choice.compactDescription;
70
70
  return fitDescription(choice.compactDescription ?? choice.description);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdx-chores",
3
- "version": "0.2.2-canary.2",
3
+ "version": "0.2.2-canary.4",
4
4
  "keywords": [
5
5
  "automation",
6
6
  "cli",
@@ -53,16 +53,16 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@duckdb/node-api": "^2.0.0-r.1",
56
- "@inquirer/prompts": "8.7.5",
57
- "@inquirer/search": "4.3.6",
58
- "@openai/codex-sdk": "^0.167.0",
56
+ "@inquirer/prompts": "8.8.0",
57
+ "@inquirer/search": "4.4.0",
58
+ "@openai/codex-sdk": "^0.169.0",
59
59
  "@shikijs/transformers": "^4.6.0",
60
- "commander": "^15.0.0",
60
+ "commander": "^15.1.0",
61
61
  "dingbat-to-unicode": "1.0.2",
62
- "fast-xml-parser": "5.12.0",
63
- "fast-xml-validator": "1.4.2",
64
- "papaparse": "^5.7.0",
65
- "parse5": "^8.1.0",
62
+ "fast-xml-parser": "5.12.1",
63
+ "fast-xml-validator": "1.4.4",
64
+ "papaparse": "^5.7.1",
65
+ "parse5": "^8.1.1",
66
66
  "pdfjs-dist": "^6.5.438",
67
67
  "shiki": "^4.6.0",
68
68
  "yaml": "^2.9.1",
@@ -71,13 +71,13 @@
71
71
  "devDependencies": {
72
72
  "@types/bun": "1.4.4",
73
73
  "@types/node": "26.6.6",
74
- "oxfmt": "0.76.0",
75
- "oxlint": "1.91.0",
74
+ "oxfmt": "0.79.0",
75
+ "oxlint": "1.94.0",
76
76
  "picocolors": "^1.1.1",
77
- "tsdown": "0.23.5",
77
+ "tsdown": "0.23.7",
78
78
  "typescript": "^7.0.2"
79
79
  },
80
80
  "engines": {
81
- "node": ">=22.23.0"
81
+ "node": ">=22.23.5"
82
82
  }
83
83
  }