@nanocollective/roster 0.1.0-alpha.1
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/LICENSE +21 -0
- package/README.md +129 -0
- package/dist/cli.js +5679 -0
- package/docs/README.md +99 -0
- package/docs/agents.md +163 -0
- package/docs/architecture.md +121 -0
- package/docs/commands.md +223 -0
- package/docs/concepts.md +112 -0
- package/docs/cost.md +61 -0
- package/docs/developing.md +147 -0
- package/docs/doctor-codes.md +74 -0
- package/docs/export.md +113 -0
- package/docs/extending.md +97 -0
- package/docs/getting-started.md +134 -0
- package/docs/hosting.md +72 -0
- package/docs/manual-steps.md +163 -0
- package/docs/memory.md +71 -0
- package/docs/org-yaml.md +143 -0
- package/docs/portal.md +342 -0
- package/docs/prompts.md +133 -0
- package/docs/security.md +122 -0
- package/docs/session-workflow.md +112 -0
- package/docs/staff-yaml.md +163 -0
- package/docs/troubleshooting.md +189 -0
- package/docs/upgrading.md +83 -0
- package/docs/writing-a-charter.md +83 -0
- package/package.json +60 -0
- package/templates/brain/.github/workflows/%%STAFF%%-daily.yaml +33 -0
- package/templates/brain/.github/workflows/%%STAFF%%-mention.yaml +65 -0
- package/templates/brain/.github/workflows/%%STAFF%%-pr-mention.yaml +50 -0
- package/templates/brain/CHARTER.md +49 -0
- package/templates/brain/README.md +18 -0
- package/templates/brain/drafts/README.md +7 -0
- package/templates/brain/log/decisions.md +6 -0
- package/templates/brain/memory/INDEX.md +28 -0
- package/templates/brain/staff.yaml +44 -0
- package/templates/brain/strategy/README.md +7 -0
- package/templates/briefs/amend.md +60 -0
- package/templates/briefs/charter.md +47 -0
- package/templates/briefs/discover.md +61 -0
- package/templates/briefs/voice.md +53 -0
- package/templates/ops/.github/workflows/session.yaml +333 -0
- package/templates/ops/agents.mjs +143 -0
- package/templates/ops/compose.mjs +333 -0
- package/templates/ops/org/guardrails.md +14 -0
- package/templates/ops/org/operating.md +82 -0
- package/templates/ops/org/voice.md +40 -0
- package/templates/ops/prompts/_identity.md +14 -0
- package/templates/ops/prompts/_paths.md +15 -0
- package/templates/ops/prompts/daily.md +82 -0
- package/templates/ops/prompts/mention.md +53 -0
- package/templates/ops/prompts/pr-mention.md +57 -0
- package/templates/ops/runner-plan.mjs +65 -0
- package/templates/portal/css/base.css +104 -0
- package/templates/portal/css/brain.css +106 -0
- package/templates/portal/css/diff.css +28 -0
- package/templates/portal/css/graph.css +34 -0
- package/templates/portal/css/health.css +41 -0
- package/templates/portal/css/inbox.css +79 -0
- package/templates/portal/css/layout.css +98 -0
- package/templates/portal/css/markdown.css +54 -0
- package/templates/portal/css/setup.css +106 -0
- package/templates/portal/index.html +55 -0
- package/templates/portal/js/api.js +74 -0
- package/templates/portal/js/app.js +282 -0
- package/templates/portal/js/dialog.js +70 -0
- package/templates/portal/js/dom.js +106 -0
- package/templates/portal/js/icons.js +94 -0
- package/templates/portal/js/md.js +386 -0
- package/templates/portal/js/refresh.js +59 -0
- package/templates/portal/js/router.js +20 -0
- package/templates/portal/js/state.js +160 -0
- package/templates/portal/js/textdiff.js +96 -0
- package/templates/portal/js/views/app.js +128 -0
- package/templates/portal/js/views/brain.js +260 -0
- package/templates/portal/js/views/changed.js +157 -0
- package/templates/portal/js/views/checklist.js +87 -0
- package/templates/portal/js/views/docs.js +84 -0
- package/templates/portal/js/views/files.js +95 -0
- package/templates/portal/js/views/graph.js +436 -0
- package/templates/portal/js/views/health.js +158 -0
- package/templates/portal/js/views/inbox.js +549 -0
- package/templates/portal/js/views/memory.js +135 -0
- package/templates/portal/js/views/org.js +175 -0
- package/templates/portal/js/views/paste.js +142 -0
- package/templates/portal/js/views/prompt.js +412 -0
- package/templates/portal/js/views/repos.js +92 -0
- package/templates/portal/js/views/setup.js +344 -0
- package/templates/portal/js/views/staff.js +290 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nano Collective
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# roster
|
|
2
|
+
|
|
3
|
+
Built by the [Nano Collective](https://nanocollective.org) — a community collective building AI tooling not for profit, but for the community.
|
|
4
|
+
|
|
5
|
+
**An agent-run org, powered by GitHub.** Each staff member is an AI whose brain is a private
|
|
6
|
+
repo: a charter, a memory, a decision log, and a scheduled session that does a day's work
|
|
7
|
+
unattended and hands off.
|
|
8
|
+
|
|
9
|
+
**Full documentation is in [`docs/`](docs/README.md).** Start with
|
|
10
|
+
[getting started](docs/getting-started.md), then read [manual steps](docs/manual-steps.md).
|
|
11
|
+
|
|
12
|
+
Status: **working, private, one tenant.** Every command below is built and exercised daily
|
|
13
|
+
against a live two-agent org. Not published yet.
|
|
14
|
+
|
|
15
|
+
## What it does
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx @nanocollective/roster # set up, or join, an org — in a browser
|
|
19
|
+
roster init --org acme # or from a terminal: ops repo, org layer, merge base
|
|
20
|
+
roster hire cto # scaffold a staff member: repo, workflows, labels, peers
|
|
21
|
+
roster app cto # create their GitHub App, write its secrets
|
|
22
|
+
roster doctor # is any of this actually wired up
|
|
23
|
+
roster portal # read every brain, and the docs, locally
|
|
24
|
+
roster upgrade # take framework changes without losing your edits
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Nothing changes anything without `--apply`. `roster help <command>` for the rest, or
|
|
28
|
+
[docs/commands.md](docs/commands.md).
|
|
29
|
+
|
|
30
|
+
## The shape
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
Nano-Collective/roster this repo. The CLI, the templates, the portal, the docs.
|
|
34
|
+
✗ never a runtime dependency of a tenant
|
|
35
|
+
|
|
36
|
+
<tenant>/roster-ops the org layer + the machinery, generated from templates/ops/
|
|
37
|
+
org/business.md what the business is. You write this.
|
|
38
|
+
org/operating.md the autonomy contract
|
|
39
|
+
org/voice.md house style
|
|
40
|
+
org/guardrails.md the non-negotiables
|
|
41
|
+
prompts/ composable run-kind fragments
|
|
42
|
+
compose.mjs vendored. Builds the prompt at run time.
|
|
43
|
+
agents.mjs vendored. Which coding agent runs, and how.
|
|
44
|
+
.github/workflows/session.yaml the reusable workflow every staff repo calls
|
|
45
|
+
|
|
46
|
+
<tenant>/<brain> one repo per staff member. The repo is the brain.
|
|
47
|
+
CHARTER.md the personality. Hand written. Never generated.
|
|
48
|
+
staff.yaml the machine-readable half of the charter
|
|
49
|
+
memory/INDEX.md one line per fact, read at every boot
|
|
50
|
+
memory/notes/ the argument behind a fact, read on demand
|
|
51
|
+
.github/workflows/ three callers, about forty lines each
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**Why a tenant vendors the machinery:** a private reusable workflow can only be called from
|
|
55
|
+
inside its own org, and a morning run should not depend on npm, on a network call, or on an
|
|
56
|
+
organisation the tenant does not control. So the framework writes templates *out* and never runs
|
|
57
|
+
anything. `roster upgrade` carries a new version across, and it is run by a human because App
|
|
58
|
+
tokens cannot push changes under `.github/workflows/` anywhere.
|
|
59
|
+
|
|
60
|
+
See [architecture](docs/architecture.md).
|
|
61
|
+
|
|
62
|
+
## Any coding agent
|
|
63
|
+
|
|
64
|
+
roster composes a prompt and hands it to an agent. A runner is three shell-level facts:
|
|
65
|
+
|
|
66
|
+
```yaml
|
|
67
|
+
agent:
|
|
68
|
+
id: codex
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Presets for `claude-code-action` (default), `claude`, `codex` and `nanocoder`. Anything else
|
|
72
|
+
works by writing `install`, `run` and `token_env` into `org.yaml`.
|
|
73
|
+
See [choosing a coding agent](docs/agents.md).
|
|
74
|
+
|
|
75
|
+
## Composition
|
|
76
|
+
|
|
77
|
+
A runtime prompt is assembled from org policy, the staff member's charter, and the run kind:
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
prompts/<kind>.md
|
|
81
|
+
{{> prompts/_paths.md}} where the repos are in the runner
|
|
82
|
+
{{> prompts/_identity.md}} which bot you are, on which repo
|
|
83
|
+
{{>? staff:prompts/work.md}} optional per-role override
|
|
84
|
+
{{> org/operating.md}} the autonomy contract
|
|
85
|
+
{{> org/guardrails.md}}
|
|
86
|
+
{{> org/voice.md}}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
`{{> x}}` is required, `{{>? x}}` renders empty when absent, and `staff:` resolves inside the
|
|
90
|
+
staff member's own repo. That is the extension seam: **a role extends the org without forking
|
|
91
|
+
it.** Change `org/voice.md` once and everyone inherits it on their next run.
|
|
92
|
+
|
|
93
|
+
See [prompts](docs/prompts.md).
|
|
94
|
+
|
|
95
|
+
## Development
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
pnpm install
|
|
99
|
+
pnpm test # 148 tests, node:test through tsx
|
|
100
|
+
pnpm test:all # the full gate
|
|
101
|
+
pnpm dev doctor --offline
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Run it from a workspace root: a directory holding the ops repo and every brain repo side by
|
|
105
|
+
side, which is the same shape the CI runner checks out.
|
|
106
|
+
|
|
107
|
+
## Contributing
|
|
108
|
+
|
|
109
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md). Contributions are welcome at any level of experience.
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
pnpm install
|
|
113
|
+
pnpm test:all # format, lint, types, dead code, tests
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Community
|
|
117
|
+
|
|
118
|
+
- [Nano Collective](https://nanocollective.org)
|
|
119
|
+
- [Documentation](https://docs.nanocollective.org)
|
|
120
|
+
- [GitHub organisation](https://github.com/Nano-Collective)
|
|
121
|
+
- [Discord](https://discord.gg/ktPDV6rekE)
|
|
122
|
+
|
|
123
|
+
Licensed [MIT](LICENSE), copyright Nano Collective.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
Before touching anything that reaches a live org, read
|
|
128
|
+
[working on roster itself](docs/developing.md). The short version: never fix a generated file
|
|
129
|
+
in a tenant, and check `roster prompt` output byte for byte before shipping a prompt change.
|