@brunobracaioli/aibrain 0.0.0-stage → 0.1.0-beta.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/README.md +39 -2
- package/dist/assets/claude/.claude-plugin/plugin.json +45 -0
- package/dist/assets/claude/hooks/context-compaction.ts +1097 -0
- package/dist/assets/claude/hooks/hooks.json +3 -0
- package/dist/assets/codex-context-compaction.mjs +1402 -0
- package/dist/assets/jev-paid-pilot-terminal.mjs +321 -0
- package/dist/cli.mjs +348 -0
- package/dist/launch.mjs +291 -0
- package/dist/mcp.mjs +390 -0
- package/dist/monitor.mjs +73 -0
- package/dist/package.json +5 -0
- package/dist/platform.mjs +82 -0
- package/dist/state.mjs +301 -0
- package/package.json +23 -4
package/README.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
-
#
|
|
1
|
+
# aibrain
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Assisted AI Brain context beta client for Linux/WSL with Node.js 22 or newer.
|
|
4
|
+
|
|
5
|
+
The reviewed native compatibility set is Claude Code 2.1.294, 2.1.295, or
|
|
6
|
+
2.1.296, and Codex CLI 0.161.0 or 0.162.0. Other versions require a new
|
|
7
|
+
compatibility review before setup.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
# After the reviewed artifact is published:
|
|
11
|
+
npm install -g @brunobracaioli/aibrain@beta
|
|
12
|
+
aibrain setup --client both
|
|
13
|
+
aibrain doctor --json
|
|
14
|
+
aibrain claude
|
|
15
|
+
aibrain codex
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Installation does not contact AI Brain, change native client configuration, or
|
|
19
|
+
enable all paid accounts. Setup requires an existing AI Brain PAT, explicit
|
|
20
|
+
versioned disclosure, and successful provider-free pilot access. Claude and
|
|
21
|
+
Codex continue to own their own authentication. Windows native is unsupported;
|
|
22
|
+
run the beta inside WSL. Pricing and general customer activation are outside
|
|
23
|
+
this beta.
|
|
24
|
+
|
|
25
|
+
For reviewed noninteractive automation only, use a private token file and
|
|
26
|
+
explicitly acknowledge the displayed disclosure with
|
|
27
|
+
`aibrain setup --client both --token-file /private/path/brain.pat
|
|
28
|
+
--accept-disclosure`.
|
|
29
|
+
|
|
30
|
+
Before registry publication, use the reviewed
|
|
31
|
+
`brunobracaioli-aibrain-*.tgz` artifact from CI with
|
|
32
|
+
`npm install -g ./brunobracaioli-aibrain-*.tgz`; registry installation is gated on
|
|
33
|
+
the operator's npm review and authentication.
|
|
34
|
+
|
|
35
|
+
For users of an earlier unscoped review tarball, close its client sessions,
|
|
36
|
+
run `npm uninstall -g aibrain`, and install this scoped package. Local
|
|
37
|
+
`~/.aibrain` state, notes, and checkpoints are retained.
|
|
38
|
+
|
|
39
|
+
Read the [canonical subscriber beta guide](https://github.com/brunobracaioli/mcp-ai-brain/blob/main/docs/how-to/aibrain-subscriber-beta.md)
|
|
40
|
+
for setup, support, disclosure, limits, and disable procedures.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ai-brain-context-compaction",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"author": { "name": "AISAC" },
|
|
5
|
+
"description": "AI Brain paid-plan context monitoring with conservative Claude compaction fallback.",
|
|
6
|
+
"hooks": "./hooks/hooks.json",
|
|
7
|
+
"userConfig": {
|
|
8
|
+
"brainServer": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"title": "AI Brain MCP server",
|
|
11
|
+
"description": "The name of the already authenticated AI Brain MCP server. The hook uses that connection and never accepts a JEV key.",
|
|
12
|
+
"default": "brain"
|
|
13
|
+
},
|
|
14
|
+
"compactAtPercent": {
|
|
15
|
+
"type": "number",
|
|
16
|
+
"title": "Context threshold",
|
|
17
|
+
"description": "Request host compaction at or above this reported context percentage.",
|
|
18
|
+
"default": 85
|
|
19
|
+
},
|
|
20
|
+
"enabled": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"title": "Enable automatic compaction",
|
|
23
|
+
"description": "Requires explicit local opt-in and AI Brain disclosure; failures use Claude's built-in fallback.",
|
|
24
|
+
"default": false
|
|
25
|
+
},
|
|
26
|
+
"disclosed": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"title": "Projection disclosure acknowledged",
|
|
29
|
+
"description": "Allow the redacted projection to be sent to AI Brain for the paid-gated plan.",
|
|
30
|
+
"default": false
|
|
31
|
+
},
|
|
32
|
+
"preservationMode": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"title": "Claude preservation mode",
|
|
35
|
+
"description": "preserve_internal keeps handled messages intact. upstream_compatible rebuilds selected handled read messages from exposed fields and may lose hidden engine metadata.",
|
|
36
|
+
"default": "preserve_internal"
|
|
37
|
+
},
|
|
38
|
+
"diagnosticMode": {
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"title": "Emit runtime diagnostics",
|
|
41
|
+
"description": "Opt-in content-free hook entry diagnostics for local pilot verification.",
|
|
42
|
+
"default": false
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|