@brunobracaioli/aibrain 0.3.0-beta.7 → 0.4.0-beta.2

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 CHANGED
@@ -1,20 +1,69 @@
1
- # aibrain
2
-
3
- Assisted AI Brain context beta client for Linux/WSL with Node.js 22 or newer.
1
+ # aisac
2
+
3
+ The AISAC client for Claude Code and Codex on Linux/WSL with Node.js 22 or newer:
4
+ AI Brain memory, context management and, for AISAC Founding Cohort members,
5
+ AISAC Engineering.
6
+
7
+ The command is `aisac`. `aibrain` is an alias for the same program, so existing
8
+ scripts and habits keep working. The same files are published as `@aisac/cli`
9
+ and, for existing installs, `@brunobracaioli/aibrain`. Install only one of them:
10
+ both provide the `aisac` and `aibrain` commands. State stays in `~/.aibrain`.
11
+
12
+ `aisac setup` and `aisac doctor` report the AISAC Engineering license
13
+ (`active`, `inactive` or `unavailable`). The server decides; the client only
14
+ shows the answer and sends the request only to the configured AI Brain address.
15
+ `aisac status` stays offline.
16
+
17
+ For licensed accounts, `aisac claude` downloads the AISAC Engineering pack for
18
+ the session, verifies its Ed25519 signature against the key pinned in this
19
+ release, and loads it as the `aisac-engineering` plugin from the session's
20
+ private folder, which is deleted on exit. Any failure starts Claude without the
21
+ pack. `aisac setup --lang pt-BR|en` picks the pack language without a network
22
+ call. The pack is never part of this npm package.
23
+
24
+ Codex capture also requires the `flock` utility from `util-linux`, normally
25
+ included in Linux/WSL. The launcher and doctor check availability before a
26
+ monitored Codex session starts. Capture coordination is released by the kernel
27
+ after a process exits unexpectedly. An unidentifiable empty lock left by an
28
+ older client requires a verified support migration; do not delete checkpoints,
29
+ notes or lock files to work around a reported storage error.
4
30
 
5
31
  The reviewed native compatibility set is Claude Code 2.1.294, 2.1.295, 2.1.296,
6
- 2.1.299 or 2.1.300, and Codex CLI 0.161.0,
7
- 0.162.0 or 0.162.1. Other versions require a new compatibility review before setup.
32
+ 2.1.299, 2.1.300, 2.1.301, 2.1.302 or 2.1.303, and Codex CLI 0.161.0,
33
+ 0.162.0, 0.162.1, 0.163.0 or 0.164.0. A newer stable Codex 0.x release may continue only
34
+ after its locally generated experimental protocol schemas and transport flags
35
+ match the bundled adapter contract; prereleases, older releases and new majors
36
+ remain rejected. Starting with beta14, newer stable Claude 2.1 patches can
37
+ continue after isolated strict plugin validation, required hook/API checks and
38
+ an enabled-hook test in the native offline runner. Doctor distinguishes
39
+ `host_checked` from `qualified`; this check does not establish full behavioral
40
+ equivalence with a tested native release. Unknown older patches, prereleases
41
+ and other major/minor families remain rejected. No credentials, conversations,
42
+ model requests or JEV calls are used by these compatibility probes.
43
+
44
+ Beta17 refreshes the Codex contract to 0.164.0, including its image-generation
45
+ record formats. Native launch/resume qualification is separate from a new
46
+ model/JEV compaction qualification. A later native release that changes the
47
+ consumed contract can still require an AI Brain compatibility update.
48
+
49
+ The Codex terminal bridge permits the native session picker's separate read-only
50
+ connection while keeping the primary conversation and monitor intact. A picker
51
+ cannot compact, start a turn, inject history or take ownership of the primary
52
+ connection. Its failure or timeout closes only that auxiliary connection.
8
53
 
9
54
  ```sh
10
55
  # Install the published beta:
11
- npm install -g @brunobracaioli/aibrain@beta
12
- aibrain setup --client both
13
- aibrain doctor --json
14
- aibrain claude
15
- aibrain codex
56
+ npm install -g @aisac/cli@beta
57
+ aisac setup --client both
58
+ aisac doctor --json
59
+ aisac claude
60
+ aisac codex
16
61
  ```
17
62
 
63
+ To move from `@brunobracaioli/aibrain` to `@aisac/cli`, close running sessions,
64
+ then run `npm uninstall -g @brunobracaioli/aibrain` before
65
+ `npm install -g @aisac/cli@beta`. Setup, notes and checkpoints are kept.
66
+
18
67
  Installation does not contact AI Brain, change native client configuration, or
19
68
  enable all paid accounts. Setup requires an existing AI Brain PAT, explicit
20
69
  versioned disclosure, and successful provider-free pilot access. Claude and
@@ -27,10 +76,10 @@ explicitly acknowledge the displayed disclosure with
27
76
  `aibrain setup --client both --token-file /private/path/brain.pat
28
77
  --accept-disclosure`.
29
78
 
30
- For a CI-reviewed tarball, use
31
- `brunobracaioli-aibrain-*.tgz` with
32
- `npm install -g ./brunobracaioli-aibrain-*.tgz`; registry installation is gated on
33
- the operator's npm review and authentication.
79
+ For a CI-reviewed tarball, use `aisac-cli-*.tgz` with
80
+ `npm install -g ./aisac-cli-*.tgz` (the same files are also packed as
81
+ `brunobracaioli-aibrain-*.tgz`); registry installation is gated on the
82
+ operator's npm review and authentication.
34
83
 
35
84
  For users of an earlier unscoped review tarball, close its client sessions,
36
85
  run `npm uninstall -g aibrain`, and install this scoped package. Local
@@ -54,7 +103,8 @@ text; they do not claim that a live session is being monitored. Codex keeps nati
54
103
  compaction and recovery notes in the same thread. The backend checks paid access
55
104
  and unchanged shared quotas before any JEV request.
56
105
 
57
- The `0.3.0-beta.7` Claude launcher uses the durable context strategy:
106
+ The `0.3.0-beta.14` Claude launcher uses the durable context strategy and
107
+ records bounded recovery reasons when native summary proof cannot be confirmed:
58
108
  JEV selects compatible historical tool evidence, bounded private notes retain
59
109
  the selected text, and Claude core summarizes the reduced input. The next
60
110
  prompt restores those notes in the same session after verifying native state.
@@ -80,6 +130,21 @@ reasons, pseudonymous session identifiers, client versions, and small numeric
80
130
  counters. Prompts, notes, paths, credentials, raw errors, and app-server stdout
81
131
  are excluded.
82
132
 
133
+ Beta12 reads large Codex histories in bounded pages and keeps their complete
134
+ contents in verified private capture segments. It checks history again before
135
+ selection and before native compaction; notes and recovery stay in the same
136
+ thread. Older captures remain readable. A single turn exceeding 8 MiB, a capture
137
+ exceeding the bounded page/item/128 MiB limits, or exhausted private storage is
138
+ reported explicitly. Such a failure does not authorize discarding protected
139
+ history or retrying a paid operation. The private capture directory remains
140
+ bounded to 256 MiB and 128 managed files, with current recovery references
141
+ protected from cleanup.
142
+
143
+ Claude plan diagnostics distinguish response parsing, identity, expiry and
144
+ history changes. A text JSON plan can use the same 256 KiB limit as structured
145
+ plans; smaller budget/error envelopes retain their separate limits. These local
146
+ diagnostics contain format names and numeric sizes, never plan contents.
147
+
83
148
  Context dashboard telemetry is disabled for fresh and existing configurations.
84
149
  Enable it only after reviewing the extended disclosure:
85
150
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-brain-context-compaction",
3
- "version": "0.1.0",
3
+ "version": "0.3.0-beta.14",
4
4
  "author": { "name": "AISAC" },
5
5
  "description": "AI Brain paid-plan context monitoring with conservative Claude compaction fallback.",
6
6
  "hooks": "./hooks/hooks.json",