Skip to content

Updates#1

Merged
Spartee merged 6 commits intomainfrom
Updates
Sep 9, 2024
Merged

Updates#1
Spartee merged 6 commits intomainfrom
Updates

Conversation

@Spartee
Copy link
Copy Markdown
Contributor

@Spartee Spartee commented Sep 2, 2024

No description provided.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Sep 2, 2024

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 651dc22
Status: ✅  Deploy successful!
Preview URL: https://7072568a.docs-112.pages.dev
Branch Preview URL: https://updates.docs-112.pages.dev

View logs

@Spartee Spartee merged commit f499d52 into main Sep 9, 2024
@Spartee Spartee deleted the Updates branch September 9, 2024 23:28
jottakka added a commit that referenced this pull request Apr 18, 2026
… (round 2)

Four findings from /acr-run:

1. HIGH (5/5) — ANTHROPIC_EDITOR_MODEL was documented as a fallback env
   var in the README but never read by resolveSecretEditGenerator. A
   local dev setting only ANTHROPIC_EDITOR_MODEL would get
   `model = undefined`, the (provider && model) guard would fire, and
   the editor would silently stay inactive. Extract resolveEditorModel
   helper that walks `--llm-editor-model` → LLM_EDITOR_MODEL →
   ANTHROPIC_EDITOR_MODEL in documented order, and use it from both
   the resolver and the verbose-log blocks.

2. MEDIUM — --skip-secret-coherence was documented to "disable both
   the scan and the edit step entirely" but DataMerger never received
   the flag; enforceSecretCoherence always ran, so coherence warnings
   still appeared when the user explicitly opted out. Add
   `skipSecretCoherence` to DataMergerConfig, gate enforcement on it,
   and pass it through from all three merger construction sites in
   the CLI.

3. MEDIUM — FENCE_PATTERN matched non-markdown language fences
   (```python, ```bash, ```json). A documentation chunk whose content
   was a code block would have its fences stripped, corrupting the
   edited output. Tightened the pattern to require either an empty,
   markdown, md, or text tag followed by a newline between the opening
   fence and the captured content, so language-tagged code blocks fall
   through stripOptionalFence unchanged.

4. LOW — verbose log showed "model: undefined" when only
   ANTHROPIC_EDITOR_MODEL was set. Fixed by #1.

Tests added:
- fence strip preserves `\`\`\`python` and `\`\`\`bash` code blocks verbatim
- skipSecretCoherence suppresses both edits and warnings

549 tests pass, type-check clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants