@jcode.labs/ragmir 2.20.0 → 3.0.0

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.
@@ -48,7 +48,8 @@ acceptable. Normal confidential indexing keeps remote model loading disabled.
48
48
  | Readiness | `rgr doctor` or `ragmir_status` |
49
49
  | Repair setup or stale data | `rgr doctor --fix` |
50
50
  | Check upgrade compatibility | `rgr upgrade --check`; run `rgr upgrade` when action is required |
51
- | Compare team indexes | `rgr team snapshot` and `rgr team compare` |
51
+ | Sync Git-backed team knowledge | `rgr team sync --json` |
52
+ | Diagnose exact or non-Git team drift | `rgr team snapshot` and `rgr team compare` |
52
53
  | Check unindexed or unsupported files | `rgr audit --unsupported` |
53
54
  | Preview redacted chunks before indexing | `rgr preview --path <prefix> --json` |
54
55
  | Check privacy posture | `rgr security-audit` |
@@ -80,18 +81,34 @@ When a monorepo has a root Ragmir base and nested app bases, select the base bef
80
81
 
81
82
  ## Team synchronization
82
83
 
83
- When the task involves shared project knowledge, check that the local index is ready before relying
84
- on retrieval. If a teammate provided an authorized snapshot, run:
84
+ When the task involves a Git-backed team knowledge base, run the single high-level flow before
85
+ relying on retrieval:
86
+
87
+ ```sh
88
+ pnpm exec rgr team sync --json
89
+ ```
90
+
91
+ The current branch upstream is the declared authority. Ragmir fetches it, fast-forwards only when
92
+ the worktree is clean and history has not diverged, then refreshes the local index incrementally.
93
+ It never stashes, resets, rebases, creates a merge commit, or deletes the active index. Use
94
+ `--no-pull` when the user wants remote inspection and local ingestion without an automatic branch
95
+ update. Use `--no-fetch` only for an explicitly offline run.
96
+
97
+ If `synchronized` is false, warn the user in the language they are using and present the first
98
+ `recommendedActions` item. Dirty, ahead, diverged, detached, and no-upstream states require a normal
99
+ Git or merge-request decision. A fetch or ingestion failure must leave the last valid local index
100
+ available when one exists; describe it as local evidence whose upstream freshness is unverified.
101
+ Never resolve Git history or overwrite source files on the user's behalf.
102
+
103
+ Snapshots are an advanced fallback for a non-Git authority or an authorized exact configuration
104
+ and per-file diagnosis. If a teammate provided one, run:
85
105
 
86
106
  ```sh
87
107
  pnpm exec rgr team compare .ragmir/team/peer.json --local-label local --json
88
108
  ```
89
109
 
90
- If the result is not `synchronized`, warn the user in the language they are using. Summarize
91
- configuration drift plus local-only, peer-only, and changed files, then present the ordered
92
- `recommendedActions`. Never decide which source copy is correct, overwrite a source file, or ingest
93
- an unreviewed peer copy. The declared Git commit, Drive revision, or team folder remains the
94
- authority.
110
+ Summarize configuration drift plus local-only, peer-only, and changed files. Never ingest an
111
+ unreviewed peer copy. The declared Drive revision or team folder remains authoritative.
95
112
 
96
113
  To create a shareable diagnostic without source text or absolute project paths:
97
114