@nanocollective/roster 0.1.0-beta.19 → 0.1.0-beta.21
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 +8 -0
- package/dist/{agents-Q2DSTLOQ.js → agents-POITEZRI.js} +1 -1
- package/dist/{chunk-JH3LQ34C.js → chunk-FF2WBNNW.js} +18 -1
- package/dist/{chunk-UEZPQ5PV.js → chunk-GDAJPOHK.js} +2 -2
- package/dist/cli.js +1089 -211
- package/dist/{compose-H43W3QI5.js → compose-5DBEHSEV.js} +1 -1
- package/dist/{connectors-U5VT5W2I.js → connectors-5E5ZMGZV.js} +1 -1
- package/dist/worker/assets/assets/css/routines.css +40 -0
- package/dist/worker/assets/assets/js/app.js +4 -1
- package/dist/worker/assets/assets/js/icons.js +2 -0
- package/dist/worker/assets/assets/js/state.js +1 -0
- package/dist/worker/assets/assets/js/views/home.js +1 -0
- package/dist/worker/assets/assets/js/views/routines.js +378 -0
- package/dist/worker/assets/index.html +4 -0
- package/dist/worker/index.js +415 -50
- package/docs/README.md +1 -0
- package/docs/commands.md +45 -0
- package/docs/concepts.md +1 -0
- package/docs/getting-started.md +14 -0
- package/docs/hosting.md +2 -2
- package/docs/portal.md +11 -0
- package/docs/routines.md +65 -0
- package/docs/security.md +5 -3
- package/docs/session-workflow.md +2 -1
- package/docs/staff-yaml.md +1 -0
- package/package.json +1 -1
- package/templates/brain/.gitattributes +3 -0
- package/templates/brain/.github/workflows/%%STAFF%%-daily.yaml +16 -9
- package/templates/brain/staff.yaml +3 -0
- package/templates/ops/.gitattributes +3 -0
- package/templates/ops/.github/workflows/session.yaml +8 -1
- package/templates/ops/compose.mjs +20 -0
- package/templates/ops/prompts/daily.md +21 -0
- package/templates/portal/css/routines.css +40 -0
- package/templates/portal/index.html +4 -0
- package/templates/portal/js/app.js +4 -1
- package/templates/portal/js/icons.js +2 -0
- package/templates/portal/js/state.js +1 -0
- package/templates/portal/js/views/home.js +1 -0
- package/templates/portal/js/views/routines.js +378 -0
- package/templates/skill/SKILL.md +115 -0
package/README.md
CHANGED
|
@@ -15,6 +15,14 @@ It runs every day against a live org: a CTO and a CMO have built and marketed
|
|
|
15
15
|
|
|
16
16
|
## Quick start
|
|
17
17
|
|
|
18
|
+
Paste this into a coding agent on your computer (Claude Code, Codex, Cursor, Gemini CLI):
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
set up https://roster.nanocollective.org/SKILL.md
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Or run it yourself:
|
|
25
|
+
|
|
18
26
|
```bash
|
|
19
27
|
npx @nanocollective/roster
|
|
20
28
|
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as nodeFs from "fs";
|
|
3
3
|
import { join, dirname, resolve } from "path";
|
|
4
4
|
import { fileURLToPath } from "url";
|
|
5
|
-
var { connectorsOf } = await import("./connectors-
|
|
5
|
+
var { connectorsOf } = await import("./connectors-5E5ZMGZV.js").catch(() => ({ connectorsOf: () => [] }));
|
|
6
6
|
function parseYaml(text, file = "<yaml>") {
|
|
7
7
|
const lines = [];
|
|
8
8
|
text.split("\n").forEach((raw, i) => {
|
|
@@ -262,6 +262,22 @@ function compose({
|
|
|
262
262
|
from_human: trigger !== "peer",
|
|
263
263
|
follow_on: trigger === "follow-on"
|
|
264
264
|
};
|
|
265
|
+
const routineId = String(event.routine ?? "");
|
|
266
|
+
let routine = null;
|
|
267
|
+
if (/^[a-z0-9][a-z0-9-]{0,39}$/.test(routineId)) {
|
|
268
|
+
const file = join(brainDir, "routines", `${routineId}.md`);
|
|
269
|
+
if (existsSync(file)) {
|
|
270
|
+
const text = readFileSync(file, "utf8").trimStart();
|
|
271
|
+
const heading = /^#\s+(.+)\n?/.exec(text);
|
|
272
|
+
routine = {
|
|
273
|
+
id: routineId,
|
|
274
|
+
title: heading ? heading[1].trim() : routineId,
|
|
275
|
+
body: (heading ? text.slice(heading[0].length) : text).trim()
|
|
276
|
+
};
|
|
277
|
+
} else {
|
|
278
|
+
routine = { id: routineId, title: routineId, body: "", missing: true };
|
|
279
|
+
}
|
|
280
|
+
}
|
|
265
281
|
const inflightFile = join(runDir ?? join(brainsDir, ".roster-run"), "inflight.md");
|
|
266
282
|
const inflight = existsSync(inflightFile) ? readFileSync(inflightFile, "utf8").trim() : "";
|
|
267
283
|
const everyone = readHumans(org);
|
|
@@ -290,6 +306,7 @@ function compose({
|
|
|
290
306
|
peers,
|
|
291
307
|
peer: peers[0] ?? null,
|
|
292
308
|
kind,
|
|
309
|
+
routine,
|
|
293
310
|
// Convenience strings the fragments lean on, computed once here so a
|
|
294
311
|
// fragment never has to do string work.
|
|
295
312
|
peer_list: peers.map((p) => `- \`${p.dir}/\` - the ${p.name}'s brain`).join("\n"),
|
|
@@ -490,8 +490,8 @@ async function main(argv) {
|
|
|
490
490
|
const brainsDir = at("--brains") ?? ".";
|
|
491
491
|
const handle = at("--staff");
|
|
492
492
|
const dir = resolve(at("--out") ?? join(process.env.RUNNER_TEMP ?? ".", "roster-connectors"));
|
|
493
|
-
const { parseYaml } = await import("./compose-
|
|
494
|
-
const { resolveAgent, permissionOf } = await import("./agents-
|
|
493
|
+
const { parseYaml } = await import("./compose-5DBEHSEV.js");
|
|
494
|
+
const { resolveAgent, permissionOf } = await import("./agents-POITEZRI.js");
|
|
495
495
|
const org = parseYaml(readFileSync(join(opsDir, "org.yaml"), "utf8"), "org.yaml");
|
|
496
496
|
const entry = (org.staff ?? []).find((s) => s.handle === handle);
|
|
497
497
|
if (!entry) throw new Error(`no staff member "${handle}" in org.yaml`);
|