@brunobracaioli/aibrain 0.3.0-beta.7 → 0.4.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 CHANGED
@@ -1,20 +1,62 @@
1
- # aibrain
1
+ # aisac
2
2
 
3
- Assisted AI Brain context beta client for Linux/WSL with Node.js 22 or newer.
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
+ Codex capture also requires the `flock` utility from `util-linux`, normally
18
+ included in Linux/WSL. The launcher and doctor check availability before a
19
+ monitored Codex session starts. Capture coordination is released by the kernel
20
+ after a process exits unexpectedly. An unidentifiable empty lock left by an
21
+ older client requires a verified support migration; do not delete checkpoints,
22
+ notes or lock files to work around a reported storage error.
4
23
 
5
24
  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.
25
+ 2.1.299, 2.1.300, 2.1.301, 2.1.302 or 2.1.303, and Codex CLI 0.161.0,
26
+ 0.162.0, 0.162.1, 0.163.0 or 0.164.0. A newer stable Codex 0.x release may continue only
27
+ after its locally generated experimental protocol schemas and transport flags
28
+ match the bundled adapter contract; prereleases, older releases and new majors
29
+ remain rejected. Starting with beta14, newer stable Claude 2.1 patches can
30
+ continue after isolated strict plugin validation, required hook/API checks and
31
+ an enabled-hook test in the native offline runner. Doctor distinguishes
32
+ `host_checked` from `qualified`; this check does not establish full behavioral
33
+ equivalence with a tested native release. Unknown older patches, prereleases
34
+ and other major/minor families remain rejected. No credentials, conversations,
35
+ model requests or JEV calls are used by these compatibility probes.
36
+
37
+ Beta17 refreshes the Codex contract to 0.164.0, including its image-generation
38
+ record formats. Native launch/resume qualification is separate from a new
39
+ model/JEV compaction qualification. A later native release that changes the
40
+ consumed contract can still require an AI Brain compatibility update.
41
+
42
+ The Codex terminal bridge permits the native session picker's separate read-only
43
+ connection while keeping the primary conversation and monitor intact. A picker
44
+ cannot compact, start a turn, inject history or take ownership of the primary
45
+ connection. Its failure or timeout closes only that auxiliary connection.
8
46
 
9
47
  ```sh
10
48
  # 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
49
+ npm install -g @aisac/cli@beta
50
+ aisac setup --client both
51
+ aisac doctor --json
52
+ aisac claude
53
+ aisac codex
16
54
  ```
17
55
 
56
+ To move from `@brunobracaioli/aibrain` to `@aisac/cli`, close running sessions,
57
+ then run `npm uninstall -g @brunobracaioli/aibrain` before
58
+ `npm install -g @aisac/cli@beta`. Setup, notes and checkpoints are kept.
59
+
18
60
  Installation does not contact AI Brain, change native client configuration, or
19
61
  enable all paid accounts. Setup requires an existing AI Brain PAT, explicit
20
62
  versioned disclosure, and successful provider-free pilot access. Claude and
@@ -27,10 +69,10 @@ explicitly acknowledge the displayed disclosure with
27
69
  `aibrain setup --client both --token-file /private/path/brain.pat
28
70
  --accept-disclosure`.
29
71
 
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.
72
+ For a CI-reviewed tarball, use `aisac-cli-*.tgz` with
73
+ `npm install -g ./aisac-cli-*.tgz` (the same files are also packed as
74
+ `brunobracaioli-aibrain-*.tgz`); registry installation is gated on the
75
+ operator's npm review and authentication.
34
76
 
35
77
  For users of an earlier unscoped review tarball, close its client sessions,
36
78
  run `npm uninstall -g aibrain`, and install this scoped package. Local
@@ -54,7 +96,8 @@ text; they do not claim that a live session is being monitored. Codex keeps nati
54
96
  compaction and recovery notes in the same thread. The backend checks paid access
55
97
  and unchanged shared quotas before any JEV request.
56
98
 
57
- The `0.3.0-beta.7` Claude launcher uses the durable context strategy:
99
+ The `0.3.0-beta.14` Claude launcher uses the durable context strategy and
100
+ records bounded recovery reasons when native summary proof cannot be confirmed:
58
101
  JEV selects compatible historical tool evidence, bounded private notes retain
59
102
  the selected text, and Claude core summarizes the reduced input. The next
60
103
  prompt restores those notes in the same session after verifying native state.
@@ -80,6 +123,21 @@ reasons, pseudonymous session identifiers, client versions, and small numeric
80
123
  counters. Prompts, notes, paths, credentials, raw errors, and app-server stdout
81
124
  are excluded.
82
125
 
126
+ Beta12 reads large Codex histories in bounded pages and keeps their complete
127
+ contents in verified private capture segments. It checks history again before
128
+ selection and before native compaction; notes and recovery stay in the same
129
+ thread. Older captures remain readable. A single turn exceeding 8 MiB, a capture
130
+ exceeding the bounded page/item/128 MiB limits, or exhausted private storage is
131
+ reported explicitly. Such a failure does not authorize discarding protected
132
+ history or retrying a paid operation. The private capture directory remains
133
+ bounded to 256 MiB and 128 managed files, with current recovery references
134
+ protected from cleanup.
135
+
136
+ Claude plan diagnostics distinguish response parsing, identity, expiry and
137
+ history changes. A text JSON plan can use the same 256 KiB limit as structured
138
+ plans; smaller budget/error envelopes retain their separate limits. These local
139
+ diagnostics contain format names and numeric sizes, never plan contents.
140
+
83
141
  Context dashboard telemetry is disabled for fresh and existing configurations.
84
142
  Enable it only after reviewing the extended disclosure:
85
143
 
@@ -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",