repo-nexus 0.6.0 → 0.6.2
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/docs/public/logo.png +0 -0
- package/lib/ai.sh +21 -6
- package/package.json +2 -2
package/docs/public/logo.png
CHANGED
|
Binary file
|
package/lib/ai.sh
CHANGED
|
@@ -68,20 +68,35 @@ This workspace operates as a **Repo Nexus Virtual Meta-Repo** uniting independen
|
|
|
68
68
|
|
|
69
69
|
## Routing Protocol for AI Assistants
|
|
70
70
|
|
|
71
|
+
> [!IMPORTANT]
|
|
72
|
+
> **MANDATORY GATE: DO NOT INSPECT \`repos/\` BEFORE CONSULTING THE WIKI (\`${_wiki_dir}/\`).**
|
|
73
|
+
> Never run broad codebase searches, recursive directory listings, or grep commands across \`repos/\`.
|
|
74
|
+
> The Karpathy LLM Wiki (\`${_wiki_dir}/\`) is the authoritative architectural index. Always query \`${_wiki_dir}/hot.md\` and \`${_wiki_dir}/index.md\` first to identify exact files and cross-repo contracts.
|
|
75
|
+
|
|
71
76
|
### Mandatory Session Startup
|
|
72
77
|
|
|
73
|
-
Before answering the first task or making any task-specific tool call in a new session:
|
|
78
|
+
Before answering the first task or making any task-specific tool call in a new session, execute these steps in strict sequence:
|
|
74
79
|
|
|
75
80
|
1. **Read Configuration First (Highest Priority)**: Inspect and read \`.local.rnex.yaml\` (if present) and \`rnex.yaml\` to identify workspace structure (\`repos_dir\`), active member repositories (\`repos/\`), and enabled plugins.
|
|
76
81
|
- \`.local.rnex.yaml\` takes highest priority over \`rnex.yaml\`.
|
|
77
82
|
- Repositories are enabled by default unless explicitly marked \`enabled: false\`. Disabled repositories are excluded from active tasks.
|
|
78
|
-
2.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
83
|
+
2. **Wiki Orientation (MANDATORY GATE BEFORE REPO ACCESS)**:
|
|
84
|
+
- If \`${_wiki_dir}/\` is present: you MUST read \`${_wiki_dir}/hot.md\` and \`${_wiki_dir}/index.md\` to orient on architecture, cross-repo contracts, and domain concepts.
|
|
85
|
+
- Follow links from the index to wiki pages relevant to the request.
|
|
86
|
+
- **STRICT PROHIBITION**: Any tool call inspecting, grepping, or listing files in \`repos/\` before reading the wiki is a protocol violation.
|
|
87
|
+
3. **Plugin Instructions**: Inspect instructions for every enabled Repo Nexus plugin under \`.rnex/plugins/<plugin-name>/\`.
|
|
88
|
+
4. **Targeted Member Repository Access Only**:
|
|
89
|
+
- Only after consulting the wiki, navigate directly to the specific files in \`repos/<name>/\` identified by the wiki.
|
|
90
|
+
- Never perform blind repository-wide scans or unbounded searches across \`repos/\`.
|
|
82
91
|
|
|
83
92
|
This is a hard gate, not optional orientation. Complete it once per session and retain the resulting context; do not repeatedly reload these files.
|
|
84
93
|
|
|
94
|
+
### Forbidden Startup Actions
|
|
95
|
+
- ❌ **DO NOT** grep or search \`repos/\` as your first step.
|
|
96
|
+
- ❌ **DO NOT** perform recursive tree exploration of member repositories.
|
|
97
|
+
- ❌ **DO NOT** guess architecture or cross-repo contracts without checking \`${_wiki_dir}/\`.
|
|
98
|
+
- ❌ **DO NOT** bypass \`${_wiki_dir}/hot.md\` and \`${_wiki_dir}/index.md\`.
|
|
99
|
+
|
|
85
100
|
## Workspace Skills, Workflows & Rules
|
|
86
101
|
Tools and agents operate on skills, workflows, instructions, and rules located under \`.rnex/\`:
|
|
87
102
|
- **Skills**: Inspect \`.rnex/skills/\` and active plugin skills under \`.rnex/plugins/<plugin-name>/skills/\`.
|
|
@@ -94,7 +109,7 @@ Autonomous subagents are defined under \`.rnex/agents/\` and active plugin agent
|
|
|
94
109
|
- To execute a task requiring a subagent, adopt the role, operational persona, and constraints specified in the corresponding subagent definition file.
|
|
95
110
|
|
|
96
111
|
## Member Repositories (\`repos/<name>/\`)
|
|
97
|
-
Each member repository is an autonomous Git repository. For repository-specific instructions, inspect \`repos/<name>/.rnex/\`.
|
|
112
|
+
Each member repository is an autonomous Git repository. For repository-specific instructions, inspect \`repos/<name>/.rnex/\`. Inspect only files pinpointed through wiki routing.
|
|
98
113
|
|
|
99
114
|
## Workspace Maintenance
|
|
100
115
|
When workspace configuration, routing blocks, plugin assets, or member repository structures require reconciliation or schema upgrades:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repo-nexus",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Lightweight, zero-dependency Virtual Meta-Repo companion for multi-repo workspaces and shared AI context (no git submodules)",
|
|
5
5
|
"bin": {
|
|
6
6
|
"repo-nexus": "rnex",
|
|
@@ -64,4 +64,4 @@
|
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"vitepress": "^1.6.0"
|
|
66
66
|
}
|
|
67
|
-
}
|
|
67
|
+
}
|