create-booboo 0.1.1 → 0.2.0
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/dist/cli.js +30 -4
- package/package.json +6 -6
- package/LICENSE +0 -21
package/dist/cli.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// src/cli.ts
|
|
4
4
|
import { mkdirSync, writeFileSync, existsSync, readdirSync } from "fs";
|
|
5
5
|
import path from "path";
|
|
6
|
-
var BOOBOO_VERSION = "^0.
|
|
6
|
+
var BOOBOO_VERSION = "^0.2.0";
|
|
7
7
|
var args = process.argv.slice(2);
|
|
8
8
|
var flags = new Set(args.filter((a) => a.startsWith("--")));
|
|
9
9
|
var dirArg = args.find((a) => !a.startsWith("--")) ?? "my-brain";
|
|
@@ -80,6 +80,20 @@ var dataJson = JSON.stringify(
|
|
|
80
80
|
null,
|
|
81
81
|
2
|
|
82
82
|
);
|
|
83
|
+
var orgJson = JSON.stringify(
|
|
84
|
+
{
|
|
85
|
+
booboo_org: "1.0",
|
|
86
|
+
title: TITLE,
|
|
87
|
+
root: "core",
|
|
88
|
+
agents: [
|
|
89
|
+
{ id: "core", name: TITLE, emoji: "\u{1F3DB}\uFE0F", role: "the orchestrator \u2014 routes, never executes", rules: ["rules/GLOBAL.md"], buckets: ["shared"], boot: "You are the orchestrator. Boot with booboo_boot('core'); route work to your branches, never do it yourself." },
|
|
90
|
+
{ id: "writer", name: "Writer", emoji: "\u{1F4DD}", role: "drafts content", parent: "core", skills: ["humanizer"], buckets: ["content"] },
|
|
91
|
+
{ id: "researcher", name: "Researcher", emoji: "\u{1F50E}", role: "gathers sources", parent: "core", skills: ["deep-research"], buckets: ["research"] }
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
null,
|
|
95
|
+
2
|
|
96
|
+
);
|
|
83
97
|
var pkgJson = JSON.stringify(
|
|
84
98
|
{
|
|
85
99
|
name,
|
|
@@ -89,8 +103,9 @@ var pkgJson = JSON.stringify(
|
|
|
89
103
|
scripts: {
|
|
90
104
|
build: "booboo build",
|
|
91
105
|
serve: "booboo serve --snapshot brain.json --port 8787",
|
|
92
|
-
mcp: "booboo mcp --snapshot brain.json",
|
|
93
|
-
view: "booboo view --snapshot brain.json"
|
|
106
|
+
mcp: "booboo mcp --snapshot brain.json --org org.booboo.json",
|
|
107
|
+
view: "booboo view --snapshot brain.json",
|
|
108
|
+
panel: "booboo panel --org org.booboo.json --snapshot brain.json"
|
|
94
109
|
},
|
|
95
110
|
dependencies: {
|
|
96
111
|
"@booboo-brain/cli": BOOBOO_VERSION
|
|
@@ -111,8 +126,17 @@ npm run build # booboo.config.yaml \u2192 brain.json (the snapshot)
|
|
|
111
126
|
npm run serve # REST API at http://localhost:8787 (/graph /stats /search /nodes/:id /neighbors/:id /path/:a/:b)
|
|
112
127
|
npm run mcp # MCP over stdio \u2014 point Claude / Cursor / Claude Code at it
|
|
113
128
|
npm run view # see your brain in 3D (opens your browser)
|
|
129
|
+
npm run panel # THE ORGANIGRAM \u2014 run your agents like a company
|
|
114
130
|
\`\`\`
|
|
115
131
|
|
|
132
|
+
## The organigram \u2014 run your agents like a company
|
|
133
|
+
|
|
134
|
+
\`npm run panel\` opens **org.booboo.json** as a real company chart: drag an agent
|
|
135
|
+
under a new parent, hit apply, and the file changes \u2014 versioned in git, validated
|
|
136
|
+
before every write. Agents that boot with \`booboo_boot('<id>')\` obey the new shape
|
|
137
|
+
next session. Rules inherit top-down; each agent carries its buckets, skills and
|
|
138
|
+
latest reports. This file is a **source** (commit it) \u2014 the snapshot is derived.
|
|
139
|
+
|
|
116
140
|
## Make it yours
|
|
117
141
|
|
|
118
142
|
1. Edit **booboo.config.yaml** \u2014 declare your \`layers\`, then add \`sources\`.
|
|
@@ -135,6 +159,7 @@ brain.json
|
|
|
135
159
|
var files = {
|
|
136
160
|
"booboo.config.yaml": configYaml,
|
|
137
161
|
"data.booboo.json": dataJson,
|
|
162
|
+
"org.booboo.json": orgJson,
|
|
138
163
|
"package.json": pkgJson,
|
|
139
164
|
"README.md": readme,
|
|
140
165
|
".gitignore": gitignore
|
|
@@ -149,5 +174,6 @@ console.log(" npm install");
|
|
|
149
174
|
console.log(" npm run build # build the graph snapshot");
|
|
150
175
|
console.log(" npm run serve # REST API on http://localhost:8787");
|
|
151
176
|
console.log(" npm run mcp # MCP over stdio (Claude / Cursor / Claude Code)");
|
|
152
|
-
console.log(" npm run view # see your brain in 3D (opens your browser)
|
|
177
|
+
console.log(" npm run view # see your brain in 3D (opens your browser)");
|
|
178
|
+
console.log(" npm run panel # the organigram \u2014 run your agents like a company\n");
|
|
153
179
|
console.log("Then edit booboo.config.yaml to point at your own data \u2014 a postgres example is included.\n");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-booboo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Scaffold a new Booboo brain — `npx create-booboo my-brain`. Zero deps.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsup src/cli.ts --format esm --clean"
|
|
24
|
+
},
|
|
22
25
|
"devDependencies": {
|
|
23
26
|
"tsup": "^8",
|
|
24
27
|
"typescript": "^5"
|
|
@@ -29,8 +32,5 @@
|
|
|
29
32
|
"create",
|
|
30
33
|
"knowledge-graph",
|
|
31
34
|
"mcp"
|
|
32
|
-
]
|
|
33
|
-
|
|
34
|
-
"build": "tsup src/cli.ts --format esm --clean"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
35
|
+
]
|
|
36
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Jessy Mariau
|
|
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.
|