repo-nexus 0.3.3 → 0.3.5
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 +21 -13
- package/docs/FAQ.md +1 -1
- package/docs/rnex.example.yaml +9 -4
- package/package.json +1 -1
- package/rnex +414 -118
- package/toolkit/plugins/karpathy-llm/README.md +116 -29
- package/toolkit/plugins/karpathy-llm/instructions/karpathy-llm.md +1 -3
- package/toolkit/plugins/karpathy-llm/plugin.yaml +0 -1
- package/toolkit/plugins/karpathy-llm/rules/KARPATHY_RULES.md +1 -3
- package/toolkit/plugins/karpathy-llm/templates/_log.md +1 -1
- package/toolkit/plugins/karpathy-llm/templates/hot.md +1 -1
- package/toolkit/plugins/karpathy-llm/templates/index.md +0 -1
- package/toolkit/prompts/setup-karpathy-wiki.md +3 -31
- package/toolkit/plugins/karpathy-llm/scripts/wiki-lint-trigger.sh +0 -44
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ A **simple, lightweight companion tool** for multi-repo workflows. It links mult
|
|
|
54
54
|
|
|
55
55
|
```
|
|
56
56
|
┌─────────────────────────────────────────────────────────────┐
|
|
57
|
-
│ Repo Nexus Workspace Root
|
|
57
|
+
│ Repo Nexus Workspace Root │
|
|
58
58
|
│ │
|
|
59
59
|
│ my-workspace/ │
|
|
60
60
|
│ repos/ │
|
|
@@ -176,8 +176,8 @@ rnex hide my-app
|
|
|
176
176
|
# Restore a hidden repo back to active scope
|
|
177
177
|
rnex show my-app
|
|
178
178
|
|
|
179
|
-
# Reconcile all scope links, plugins, and member .rnex/ directories
|
|
180
|
-
rnex
|
|
179
|
+
# Reconcile and fix all scope links, plugins, and member .rnex/ directories (alias: sync)
|
|
180
|
+
rnex fix
|
|
181
181
|
|
|
182
182
|
# Unregister a repository (removes scope link & member .rnex assets)
|
|
183
183
|
rnex remove my-app
|
|
@@ -214,20 +214,22 @@ The `karpathy-llm` plugin packages Andrej Karpathy's verified LLM agent design p
|
|
|
214
214
|
* **Autonomous Karpathy LLM Wiki Knowledge Architecture:**
|
|
215
215
|
* **Intake (`/raw/`):** Append-only intake for unmodified source documents.
|
|
216
216
|
* **Curated Knowledge Base (`/wiki/`):** Interlinked atomic markdown pages with typed YAML frontmatter relations (`sources`, `related`, `extends`, `contradicts`, `mentioned_in`).
|
|
217
|
-
* **
|
|
217
|
+
* **Navigation Index (`/wiki/index.md`):** Master categorized navigation index.
|
|
218
218
|
* **Rolling Context (`/wiki/hot.md`):** ~500-word quick-orient context cache for AI agents.
|
|
219
219
|
* **Operation Log (`/wiki/_log.md`):** Append-only audit trail of ingest and lint operations.
|
|
220
|
-
* **Session Counter (`.rnex/.lint_trigger_counter`):** Machine-local state tracking session activity (gitignored).
|
|
221
|
-
* **Autonomous Lint Trigger (`.rnex/scripts/wiki-lint-trigger.sh`):** Session counter and maintenance alerts on session 1 and every 15 sessions.
|
|
222
220
|
* **Standardized Workflows (`.rnex/workflows/`):**
|
|
223
221
|
* `wiki-ingest.md`: 8-step protocol decomposing raw source documents into 5–25 atomic wiki pages.
|
|
224
222
|
* `wiki-lint.md`: 10-step protocol validating paths, recomputing `mentioned_in`, removing orphans, resolving contradictions, identifying gaps, suggesting source candidates, and rebuilding indexes.
|
|
225
223
|
|
|
226
224
|
---
|
|
227
225
|
|
|
228
|
-
##
|
|
226
|
+
## Two-Level Configuration
|
|
229
227
|
|
|
230
|
-
|
|
228
|
+
Repo Nexus supports a two-level configuration model:
|
|
229
|
+
1. **Repo Config (`rnex.yaml`):** Shared manifest committed to git. Tracks member repo names, default settings, and active plugins.
|
|
230
|
+
2. **Local Config (`.local.rnex.yaml`):** Machine-specific file ignored in `.gitignore`. Overrides or provides member repo paths on each developer's workstation.
|
|
231
|
+
|
|
232
|
+
### Repo Configuration (`rnex.yaml`)
|
|
231
233
|
|
|
232
234
|
```yaml
|
|
233
235
|
# Directory for repository symlinks (relative or absolute)
|
|
@@ -235,17 +237,15 @@ repos_dir: ./repos
|
|
|
235
237
|
|
|
236
238
|
# Workspace plugins
|
|
237
239
|
plugins:
|
|
238
|
-
karpathy-llm:
|
|
239
|
-
lint_trigger_enabled: true
|
|
240
|
+
karpathy-llm: {}
|
|
240
241
|
|
|
241
242
|
# Member repositories
|
|
242
243
|
repos:
|
|
243
244
|
backend:
|
|
244
|
-
path: /Users/dev/code/backend-api
|
|
245
245
|
scope: visible
|
|
246
246
|
rnex_dir: true # default: true (creates repos/backend/.rnex/)
|
|
247
247
|
frontend:
|
|
248
|
-
path: ../web-app
|
|
248
|
+
path: ../web-app # optional default relative path
|
|
249
249
|
scope: visible
|
|
250
250
|
rnex_dir: true
|
|
251
251
|
analytics:
|
|
@@ -254,6 +254,14 @@ repos:
|
|
|
254
254
|
rnex_dir: false # disabled: leaves analytics repo 100% untouched
|
|
255
255
|
```
|
|
256
256
|
|
|
257
|
+
### Local Configuration (`.local.rnex.yaml`)
|
|
258
|
+
|
|
259
|
+
```yaml
|
|
260
|
+
repos:
|
|
261
|
+
backend:
|
|
262
|
+
path: /Users/alice/projects/backend-api
|
|
263
|
+
```
|
|
264
|
+
|
|
257
265
|
> See [`docs/rnex.example.yaml`](docs/rnex.example.yaml) for a comprehensive example with all options.
|
|
258
266
|
> For common questions and architecture details, see the [Frequently Asked Questions (FAQ)](docs/FAQ.md).
|
|
259
267
|
|
|
@@ -280,7 +288,7 @@ repos:
|
|
|
280
288
|
| `rnex rnex-dir <enable\|disable> <name>` | Toggle `.rnex/` directory integration for a member repository |
|
|
281
289
|
| `rnex show <name>` | Make a hidden repo visible in workspace |
|
|
282
290
|
| `rnex hide <name>` | Hide a repo from active workspace indexing |
|
|
283
|
-
| `rnex sync` | Reconcile all scope symlinks, plugins, and member `.rnex/` directories |
|
|
291
|
+
| `rnex fix` (or `sync`) | Reconcile and fix all scope symlinks, plugins, and member `.rnex/` directories |
|
|
284
292
|
|
|
285
293
|
---
|
|
286
294
|
|
package/docs/FAQ.md
CHANGED
|
@@ -259,7 +259,7 @@ In your Repo Nexus workspace repository:
|
|
|
259
259
|
If you move a repository, clone a workspace on a new machine, or notice missing symlinks, run:
|
|
260
260
|
|
|
261
261
|
```bash
|
|
262
|
-
rnex
|
|
262
|
+
rnex fix
|
|
263
263
|
```
|
|
264
264
|
|
|
265
265
|
This command reconciles all scope symlinks, active plugins, and member `.rnex/` directories defined in `rnex.yaml`, repairing broken links and ensuring your workspace is healthy. To inspect the current status, run:
|
package/docs/rnex.example.yaml
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
# ==============================================================================
|
|
2
2
|
# rnex.yaml — Repo Nexus Workspace Configuration (Full Example)
|
|
3
3
|
# ==============================================================================
|
|
4
|
-
# This file is the central manifest for a Repo Nexus workspace.
|
|
5
|
-
#
|
|
4
|
+
# This file is the central team manifest for a Repo Nexus workspace (committed to git).
|
|
5
|
+
#
|
|
6
|
+
# TWO-LEVEL CONFIGURATION:
|
|
7
|
+
# 1. Repo Config (rnex.yaml): Shared across team, tracks member repos, plugins.
|
|
8
|
+
# 2. Local Config (.local.rnex.yaml): Machine-specific (gitignored), overrides/provides
|
|
9
|
+
# local member repo paths and developer-specific plugin settings.
|
|
10
|
+
#
|
|
11
|
+
# Place it in your workspace root directory and run `rnex fix` to apply.
|
|
6
12
|
#
|
|
7
13
|
# For more information: https://github.com/nu-nenoi/repo-nexus
|
|
8
14
|
|
|
@@ -37,8 +43,7 @@ repos_dir: ./repos
|
|
|
37
43
|
# Local / custom plugins can also be placed in .rnex/plugins/<name>/
|
|
38
44
|
|
|
39
45
|
plugins:
|
|
40
|
-
# karpathy-llm:
|
|
41
|
-
# lint_trigger_enabled: true
|
|
46
|
+
# karpathy-llm: {}
|
|
42
47
|
|
|
43
48
|
# ------------------------------------------------------------------------------
|
|
44
49
|
# repos — Member repositories managed by Repo Nexus
|
package/package.json
CHANGED