config: canonical document authoring TUI and web UI - #172
yourconscience wants to merge 5 commits into
Conversation
There was a problem hiding this comment.
Sorry @yourconscience, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 3 days and 2 hours by commenting @sourcery-ai review. Upgrade to get a review now.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Reviewer's GuideAdds a shared, comment-preserving canonical YAML authoring system with Bubble Tea TUI and authenticated loopback web UI, including local overlays, revision-safe atomic saves, reviewed diffs, explicit sync planning, and the new Sequence diagram for revision-safe config editing and syncsequenceDiagram
participant User
participant UI as TUI_or_Web_UI
participant Doc as configDocument
participant YAML as YAML_layers
participant Sync as Sync_planner
participant Harness as Native_harnesses
User->>UI: edit config
UI->>Doc: validateRaw or operationsRaw
Doc->>YAML: preserve YAML nodes and unknown fields
YAML-->>Doc: candidate YAML
Doc-->>UI: validation result and unifiedConfigDiff
User->>UI: save
UI->>Doc: saveRaw(expectedRevision, raw)
Doc->>Doc: revisionOf and validateRaw
Doc->>YAML: atomicConfigWrite
YAML-->>Doc: saved layer
Doc-->>UI: configSave with revision and diff
User->>UI: preview sync
UI->>Sync: buildConfigSyncPlan
Sync-->>UI: plan digest and destructive items
User->>UI: confirm apply
UI->>Sync: runSync
Sync->>Harness: update native configurations
State diagram for config layers and explicit synchronizationstateDiagram-v2
[*] --> Shared
[*] --> Local
Shared --> Effective: mergeConfig
Local --> Effective: overlay
Effective --> Effective: read-only
Shared --> Validating: validateRaw
Local --> Validating: validateRaw
Validating --> Review: unifiedConfigDiff
Review --> Shared: saveRaw
Review --> Local: saveRaw
Shared --> SyncPreview: buildConfigSyncPlan
Local --> SyncPreview: buildConfigSyncPlan
SyncPreview --> SyncConfirmed: confirmed plan
SyncConfirmed --> NativeHarnesses: runSync
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 89d870a6f2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…rmalization, safe DOM insertion
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Adds a local-first editor for
dotagents.yamlin the terminal and browser, backed by one comment-preserving YAML document model. The web UI is a mobile-friendly Catppuccin Mocha settings page with selection-only controls; full YAML editing stays in the TUI and config file. Saves are revision guarded and separate from sync, while sync requires a reviewed plan digest and explicit destructive confirmation. The server remains loopback-only with token bootstrap, strict cookies, origin and CSRF checks, and no built-in usage page.