feat: scaffold yonexus MVP core with storage, auth, query, and scope memory

This commit is contained in:
2026-03-07 05:21:25 +00:00
parent e7f4aeae1a
commit 1436d63a8c
18 changed files with 600 additions and 29 deletions

39
README.md Normal file
View File

@@ -0,0 +1,39 @@
# Yonexus (MVP foundation)
OpenClaw plugin foundation for:
- Organization hierarchy (Org/Dept/Team)
- Agent registration + multi-identity
- Supervisor mapping
- Role-based authorization
- Query DSL (`eq | contains | regex`) with schema queryable guard
- Scoped shared memory adapter (compatible with memory tools)
## Quick start
```bash
npm install
npm run build
bash scripts/install.sh
```
## Current status
Implemented in this branch:
- Data models + JSON persistence store
- Permission checker `authorize(action, actor, scope)`
- Core APIs:
- `createDepartment`
- `createTeam`
- `registerAgent`
- `assignIdentity`
- `setSupervisor`
- `whoami`
- `queryAgents`
- Query parser/executor with pagination
- Scope memory adapter (`put/search`)
## Notes
- Persistence file defaults to `data/org.json`.
- Meta fields are validated against schema; unknown fields are dropped.
- Supervisor relation does not imply permissions.