@jcode.labs/ragmir 2.18.1 → 2.19.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.
- package/README.md +6 -1
- package/dist/cli.js +153 -0
- package/dist/cli.js.map +1 -1
- package/dist/index-diagnostics.d.ts +3 -2
- package/dist/index-diagnostics.d.ts.map +1 -1
- package/dist/index-diagnostics.js +13 -12
- package/dist/index-diagnostics.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/query.js +7 -7
- package/dist/query.js.map +1 -1
- package/dist/setup.js +4 -1
- package/dist/setup.js.map +1 -1
- package/dist/team-diagnostics.d.ts +115 -0
- package/dist/team-diagnostics.d.ts.map +1 -0
- package/dist/team-diagnostics.js +479 -0
- package/dist/team-diagnostics.js.map +1 -0
- package/dist/upgrade.d.ts +26 -0
- package/dist/upgrade.d.ts.map +1 -0
- package/dist/upgrade.js +83 -0
- package/dist/upgrade.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -5
- package/skills/ragmir/SKILL.md +33 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jcode.labs/ragmir",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.19.0",
|
|
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.
|
|
82
|
-
"@jcode.labs/ragmir-tts": "2.
|
|
81
|
+
"@jcode.labs/ragmir-chat": "2.19.0",
|
|
82
|
+
"@jcode.labs/ragmir-tts": "2.19.0"
|
|
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.
|
|
100
|
-
"@jcode.labs/ragmir-tts": "2.
|
|
99
|
+
"@jcode.labs/ragmir-chat": "2.19.0",
|
|
100
|
+
"@jcode.labs/ragmir-tts": "2.19.0"
|
|
101
101
|
},
|
|
102
102
|
"scripts": {
|
|
103
103
|
"bench:compare": "node benchmarks/compare.mjs",
|
package/skills/ragmir/SKILL.md
CHANGED
|
@@ -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.
|