@jcode.labs/ragmir 2.18.1 → 2.19.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcode.labs/ragmir",
3
- "version": "2.18.1",
3
+ "version": "2.19.1",
4
4
  "description": "Confidential local RAG for coding agents, with offline cited retrieval through CLI, MCP, and TypeScript.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -78,8 +78,8 @@
78
78
  "zod": "^4.1.13"
79
79
  },
80
80
  "peerDependencies": {
81
- "@jcode.labs/ragmir-chat": "2.18.1",
82
- "@jcode.labs/ragmir-tts": "2.18.1"
81
+ "@jcode.labs/ragmir-chat": "2.19.1",
82
+ "@jcode.labs/ragmir-tts": "2.19.1"
83
83
  },
84
84
  "peerDependenciesMeta": {
85
85
  "@jcode.labs/ragmir-chat": {
@@ -96,8 +96,8 @@
96
96
  "publint": "^0.3.21",
97
97
  "typescript": "^5.9.3",
98
98
  "vitest": "^4.0.15",
99
- "@jcode.labs/ragmir-chat": "2.18.1",
100
- "@jcode.labs/ragmir-tts": "2.18.1"
99
+ "@jcode.labs/ragmir-chat": "2.19.1",
100
+ "@jcode.labs/ragmir-tts": "2.19.1"
101
101
  },
102
102
  "scripts": {
103
103
  "bench:compare": "node benchmarks/compare.mjs",
@@ -47,6 +47,8 @@ acceptable. Normal confidential indexing keeps remote model loading disabled.
47
47
  | Bounded source coverage and index drift | Read `ragmir://sources` or run `rgr audit` |
48
48
  | Readiness | `rgr doctor` or `ragmir_status` |
49
49
  | Repair setup or stale data | `rgr doctor --fix` |
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` |
50
52
  | Check unindexed or unsupported files | `rgr audit --unsupported` |
51
53
  | Preview redacted chunks before indexing | `rgr preview --path <prefix> --json` |
52
54
  | Check privacy posture | `rgr security-audit` |
@@ -76,6 +78,36 @@ When a monorepo has a root Ragmir base and nested app bases, select the base bef
76
78
  5. Never silently combine citations from different bases. Label each base when a task genuinely
77
79
  requires evidence from more than one.
78
80
 
81
+ ## Team synchronization
82
+
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:
85
+
86
+ ```sh
87
+ pnpm exec rgr team compare .ragmir/team/peer.json --local-label local --json
88
+ ```
89
+
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.
95
+
96
+ To create a shareable diagnostic without source text or absolute project paths:
97
+
98
+ ```sh
99
+ pnpm exec rgr team snapshot --label <name> --output .ragmir/team/<name>.json
100
+ ```
101
+
102
+ Treat the snapshot as sensitive metadata because it contains relative paths and checksums. Keep it
103
+ under ignored `.ragmir/` state and share it only with authorized teammates.
104
+
105
+ After updating the package and before retrieval with the new runtime, run `rgr upgrade --check`. If
106
+ action is required, explain it before running `rgr upgrade`. A safe rebuild keeps the previous
107
+ validated index until atomic activation; never delete `.ragmir/storage/` as the first upgrade step.
108
+ For a long-running host, keep the already loaded runtime serving and cut over only after the upgrade
109
+ reports `status=current` and `ready=true`.
110
+
79
111
  ## Indexing
80
112
 
81
113
  Use `.ragmir/config.json` for sources, with paths, globs, and `!` exclusions:
@@ -148,6 +180,7 @@ load `ragmir-markdown-report`. Both should write generated output under ignored
148
180
 
149
181
  ## Answer standard
150
182
 
183
+ - Reply in the language used by the user unless they request another language.
151
184
  - Cite file paths and source labels when useful.
152
185
  - State uncertainty when retrieval does not prove a claim.
153
186
  - Keep legal, security, and financial conclusions conservative and recommend appropriate review.