Skip to content
This repository was archived by the owner on Sep 10, 2026. It is now read-only.

Name the rule that governs how the two config files are edited - #36

Merged
seenu-k merged 1 commit into
mainfrom
feature/link-editing-rule
Aug 12, 2026
Merged

seenu-k merged 1 commit into
mainfrom
feature/link-editing-rule

Conversation

@seenu-k

@seenu-k seenu-k commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Comments only — no behavioural change.

linkFirebaseProject writes into two files, by two different methods, and until now nothing said why at library level:

File Method Why
app-config.json decode, merge, re-encode Plain JSON; nothing to preserve
wrangler.jsonc rewrite the one assignment in place Comments its owner wrote. Re-encoding would delete every one, and Cloudflare recommends JSONC for new projects

setJsonString already explained its own half well, including that the safety is the match count rather than the pattern. What was missing was the contrast, and the fact that both destinations already declare the key being filled — so this assigns into a slot rather than appending anything, which is the distinction that keeps it from drifting toward block insertion.

The library docstring now states that and points at the wider doctrine, which lands alongside in eigeninteractive/eigen-server#58: append never insert, why a content probe rather than marker comments identifies a written block, and why FlutterFire's // START:/// END: markers are deliberately not copied.

dart analyze clean; dart doc --dry-run . reports 0 warnings and 0 errors, which is the check that matters here since this repo promotes unresolved references to errors and the new text adds a [setJsonString] reference.

🤖 Generated with Claude Code

Both destinations already declare the key being filled, so this assigns into
a slot rather than appending anything, and the two are edited by different
methods for one reason: `app-config.json` is plain JSON and can be decoded,
merged and re-encoded, while `wrangler.jsonc` carries comments its owner
wrote, so only the single assignment is rewritten in place. `setJsonString`
already explained its own half; the library docstring now states the split
and points at the wider doctrine in eigen-server's MAINTAINERS.md.

Comments only.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@seenu-k
seenu-k merged commit 4d1687b into main Aug 12, 2026
3 checks passed
@seenu-k
seenu-k deleted the feature/link-editing-rule branch August 12, 2026 09:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant