rigjs 4.0.3 → 4.0.4
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/.claude/skills/rig-wiki/SKILL.md +13 -1
- package/RIG_WIKI_SKILL.md +13 -1
- package/built/index.js +224 -192
- package/lib/wiki/README.md +6 -6
- package/lib/wiki/config.ts +115 -36
- package/lib/wiki/index.ts +2 -2
- package/lib/wiki/ingest.ts +1 -1
- package/lib/wiki/init.ts +18 -1
- package/lib/wiki/paths.ts +7 -2
- package/lib/wiki/register.ts +65 -92
- package/lib/wiki/scan.ts +0 -0
- package/lib/wiki/unregister.ts +19 -7
- package/package.json +4 -2
|
@@ -91,6 +91,18 @@ rig wiki register <subdir>
|
|
|
91
91
|
|
|
92
92
|
After init, **pause and ask the user to edit `<subdir>/purpose.md`** (one-time human scoping — define what this wiki is for, in/out of scope). Don't write purpose.md yourself; it's the only human-authored anchor for everything downstream.
|
|
93
93
|
|
|
94
|
+
If the user describes a scan scope that differs from the defaults (e.g. "include every md file in the parent dir but ignore zip files"), translate that into edits to `<subdir>/.rig/config.yml` — that's the per-vault settings file (`name`, `root`, `include`, `exclude`, `schedule`, `ingestRules`). The vault is self-contained: nothing about its identity or scope lives outside its own directory.
|
|
95
|
+
|
|
96
|
+
## Configuration model (read once, then forget)
|
|
97
|
+
|
|
98
|
+
Two layers, both YAML:
|
|
99
|
+
|
|
100
|
+
- `~/.rig/config.yml` — rig-global prefs only (default agent, qmd toggle, log rotation). Touched by `rig wiki agent use`.
|
|
101
|
+
- `~/.rig/wikis.yml` — registry. **Just a flat list of vault paths** for discovery. No per-wiki settings here.
|
|
102
|
+
- `<vault>/.rig/config.yml` — **the only place per-vault settings live.** `name`, optional `root` (relative scan base, default `..`), `include[]`, `exclude[]`, `schedule`, `ingestRules`. Created automatically by `init`. Safe to edit by hand.
|
|
103
|
+
|
|
104
|
+
Never edit `~/.rig/wikis.yml` to change a wiki's name, scope, or schedule — those belong in the vault. Never invent a `package.rig.json5` wiki block; that file is unrelated to rig wiki (legacy rig CICD only).
|
|
105
|
+
|
|
94
106
|
## Architecture (read once, then forget)
|
|
95
107
|
|
|
96
108
|
- Vector-only retrieval: Qwen3-Embedding-0.6B (~610MB) + Qwen3-Reranker-0.6B (~610MB), both CDN-mirrored at `assets.terncloud.com/rig/models/`.
|
|
@@ -101,4 +113,4 @@ After init, **pause and ask the user to edit `<subdir>/purpose.md`** (one-time h
|
|
|
101
113
|
|
|
102
114
|
## Agent CLI
|
|
103
115
|
|
|
104
|
-
`rig wiki ingest` and `rig wiki query --synth` invoke Claude Code (`claude -p`) under the hood. If the user picks a different agent in `~/.rig/config.
|
|
116
|
+
`rig wiki ingest` and `rig wiki query --synth` invoke Claude Code (`claude -p`) under the hood. If the user picks a different agent in `~/.rig/config.yml` (`wiki.defaultAgent`), it's used instead. Only `claude` is implemented in v1.
|
package/RIG_WIKI_SKILL.md
CHANGED
|
@@ -91,6 +91,18 @@ rig wiki register <subdir>
|
|
|
91
91
|
|
|
92
92
|
After init, **pause and ask the user to edit `<subdir>/purpose.md`** (one-time human scoping — define what this wiki is for, in/out of scope). Don't write purpose.md yourself; it's the only human-authored anchor for everything downstream.
|
|
93
93
|
|
|
94
|
+
If the user describes a scan scope that differs from the defaults (e.g. "include every md file in the parent dir but ignore zip files"), translate that into edits to `<subdir>/.rig/config.yml` — that's the per-vault settings file (`name`, `root`, `include`, `exclude`, `schedule`, `ingestRules`). The vault is self-contained: nothing about its identity or scope lives outside its own directory.
|
|
95
|
+
|
|
96
|
+
## Configuration model (read once, then forget)
|
|
97
|
+
|
|
98
|
+
Two layers, both YAML:
|
|
99
|
+
|
|
100
|
+
- `~/.rig/config.yml` — rig-global prefs only (default agent, qmd toggle, log rotation). Touched by `rig wiki agent use`.
|
|
101
|
+
- `~/.rig/wikis.yml` — registry. **Just a flat list of vault paths** for discovery. No per-wiki settings here.
|
|
102
|
+
- `<vault>/.rig/config.yml` — **the only place per-vault settings live.** `name`, optional `root` (relative scan base, default `..`), `include[]`, `exclude[]`, `schedule`, `ingestRules`. Created automatically by `init`. Safe to edit by hand.
|
|
103
|
+
|
|
104
|
+
Never edit `~/.rig/wikis.yml` to change a wiki's name, scope, or schedule — those belong in the vault. Never invent a `package.rig.json5` wiki block; that file is unrelated to rig wiki (legacy rig CICD only).
|
|
105
|
+
|
|
94
106
|
## Architecture (read once, then forget)
|
|
95
107
|
|
|
96
108
|
- Vector-only retrieval: Qwen3-Embedding-0.6B (~610MB) + Qwen3-Reranker-0.6B (~610MB), both CDN-mirrored at `assets.terncloud.com/rig/models/`.
|
|
@@ -101,4 +113,4 @@ After init, **pause and ask the user to edit `<subdir>/purpose.md`** (one-time h
|
|
|
101
113
|
|
|
102
114
|
## Agent CLI
|
|
103
115
|
|
|
104
|
-
`rig wiki ingest` and `rig wiki query --synth` invoke Claude Code (`claude -p`) under the hood. If the user picks a different agent in `~/.rig/config.
|
|
116
|
+
`rig wiki ingest` and `rig wiki query --synth` invoke Claude Code (`claude -p`) under the hood. If the user picks a different agent in `~/.rig/config.yml` (`wiki.defaultAgent`), it's used instead. Only `claude` is implemented in v1.
|