@christianirack/brainllm 0.7.0 → 0.8.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 +36 -34
- package/bin/brain.js +14 -5
- package/brain.schema.json +20 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<p align="center"><img src="https://raw.githubusercontent.com/chrisifm/BRAINLLM/v0.
|
|
1
|
+
<p align="center"><img src="https://raw.githubusercontent.com/chrisifm/BRAINLLM/v0.8.1/docs/site/assets/logo.png" width="88" alt="BRAINLLM brain mark"></p>
|
|
2
2
|
|
|
3
3
|
# BRAINLLM
|
|
4
4
|
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
<img src="https://img.shields.io/badge/built%20with-Rust-dea584?logo=rust&logoColor=white" alt="Built with Rust">
|
|
14
14
|
<a href="https://chrisifm.github.io/BRAINLLM/"><img src="https://img.shields.io/badge/website-chrisifm.github.io%2FBRAINLLM-0071e3" alt="Website"></a>
|
|
15
15
|
<a href="https://www.npmjs.com/package/@christianirack/brainllm"><img src="https://img.shields.io/npm/v/@christianirack/brainllm?color=cb3837" alt="npm version"></a>
|
|
16
|
-
<a href="https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
16
|
+
<a href="https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/LICENSE"><img src="https://img.shields.io/github/license/chrisifm/BRAINLLM" alt="License"></a>
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
|
-
<p align="center"><a href="https://chrisifm.github.io/BRAINLLM/"><img src="https://raw.githubusercontent.com/chrisifm/BRAINLLM/v0.
|
|
19
|
+
<p align="center"><a href="https://chrisifm.github.io/BRAINLLM/"><img src="https://raw.githubusercontent.com/chrisifm/BRAINLLM/v0.8.1/docs/site/assets/cover.png" alt="BRAINLLM — The web compiler for LLMs. Open the website: chrisifm.github.io/BRAINLLM"></a></p>
|
|
20
20
|
|
|
21
21
|
<p align="center"><b>🌐 <a href="https://chrisifm.github.io/BRAINLLM/">chrisifm.github.io/BRAINLLM</a></b></p>
|
|
22
22
|
|
|
@@ -33,9 +33,11 @@ automatically to a review branch. Maintainers decide what merges.
|
|
|
33
33
|
|
|
34
34
|
## Built for agents that change code safely
|
|
35
35
|
|
|
36
|
-
BRAINLLM is not another React, Next or Node
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
BRAINLLM is not another React, Next or Node, and it does not try to replace them. It aims to be the first
|
|
37
|
+
self-improving compiler for LLMs: when an agent hits a compiler gap, `scripts/evolve.mjs` turns it into an isolated,
|
|
38
|
+
tested proposal, and a person decides whether it ships. No change merges itself. Every claim below is a command you can
|
|
39
|
+
run; the numbers are under [the benchmarks](#show-me-the-numbers). The tools other stacks sell as advanced analysis are
|
|
40
|
+
the baseline here:
|
|
39
41
|
|
|
40
42
|
- **Locate without reading.** `brain map`, `brain card`, `brain graph`, `brain context` and symbol search give an
|
|
41
43
|
agent the contract and the exact location of what it must touch, never a 2,000-line file.
|
|
@@ -47,14 +49,14 @@ for human review. The tools other stacks sell as advanced analysis are the basel
|
|
|
47
49
|
- **Real-time evidence while developing.** Compiler feedback, impact per save (diagnostics and bytes per view),
|
|
48
50
|
runtime errors mapped to `.brain` lines, memory and leak inspection, over CLI and MCP.
|
|
49
51
|
|
|
50
|
-
**[Visit the site](https://chrisifm.github.io/BRAINLLM/)** · **[Build your first app](#give-your-agent-its-first-task)** · **[Read the spec](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
52
|
+
**[Visit the site](https://chrisifm.github.io/BRAINLLM/)** · **[Build your first app](#give-your-agent-its-first-task)** · **[Read the spec](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/SPEC.md)** · **[See the benchmarks](#show-me-the-numbers)** · **[Contribute](#build-the-tool-your-agent-needs)**
|
|
51
53
|
|
|
52
54
|
## A frontend language with the model in mind
|
|
53
55
|
|
|
54
56
|
An agent writing your app needs a contract it can follow and feedback it can act on. BRAINLLM makes that loop
|
|
55
57
|
explicit: read the spec, generate a component, check it, apply the fix, test the result.
|
|
56
58
|
|
|
57
|
-

|
|
58
60
|
|
|
59
61
|
- **Less to guess.** `brain spec` defines the supported language. One component format, a prescribed project
|
|
60
62
|
structure and generators keep the model working inside a known contract.
|
|
@@ -82,7 +84,7 @@ agent has to reconstruct while preserving code that a developer can read and rev
|
|
|
82
84
|
| Verification and delivery | Tests, `brain doctor` and the production build make validation part of the workflow |
|
|
83
85
|
| Tested compiler improvements | Isolated proposals, validation gates and optional review-branch pushes let the agent contribute fixes |
|
|
84
86
|
|
|
85
|
-
Use [SPEC.md](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
87
|
+
Use [SPEC.md](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/SPEC.md), the served `brain spec` and [EVOLUTION.md](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/docs/EVOLUTION.md) for exact contracts and limits.
|
|
86
88
|
|
|
87
89
|
## Where it fits in the frontend stack
|
|
88
90
|
|
|
@@ -141,8 +143,8 @@ stack. Builds run serially on a shared machine. Variance matters: inspect the ra
|
|
|
141
143
|
The output strategies differ (including SSR, client rendering and an Astro React island); this comparison measures
|
|
142
144
|
production build duration for this fixture, not universal app performance or feature equivalence.
|
|
143
145
|
|
|
144
|
-
Read the [expanded method, versions, payloads and results](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
145
|
-
[historical results](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
146
|
+
Read the [expanded method, versions, payloads and results](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/bench/build/expanded.md). The original three-stack
|
|
147
|
+
[historical results](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/bench/build/results/summary.md) remain available unchanged. Use `bench/build/expanded.mjs`
|
|
146
148
|
with the documented frozen binary and scratch-directory setup to reproduce this seven-stack run.
|
|
147
149
|
|
|
148
150
|
**Ask your agent to challenge the result:**
|
|
@@ -165,11 +167,11 @@ numbers support it. Do not upload results or publish anything automatically.
|
|
|
165
167
|
Clean up only the temporary resources this run created.
|
|
166
168
|
```
|
|
167
169
|
|
|
168
|
-
A separate [cache-key microbenchmark](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
170
|
+
A separate [cache-key microbenchmark](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/bench/build/results/compiler-cache-lookup.json) measured **43.3× faster key
|
|
169
171
|
lookup** after removing an unnecessary parse: 10,000 lookups of a 1,050-byte input. That number measures this
|
|
170
172
|
internal operation only. It is not a full-build speedup or a webpack comparison.
|
|
171
173
|
|
|
172
|
-
The [benchmark report](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
174
|
+
The [benchmark report](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/bench/REPORT.md) also tracks agent-generated apps, browser behavior, payload size and
|
|
173
175
|
failure recovery. Historical LLM results describe their frozen model/spec/compiler runs; they do not guarantee
|
|
174
176
|
that a new prompt or compiler revision will pass. This project is open to developers and researchers who want to
|
|
175
177
|
investigate how language design and compiler feedback affect agent behavior. Bring a hypothesis and a reproducer.
|
|
@@ -193,7 +195,7 @@ what each result actually establishes.
|
|
|
193
195
|
|
|
194
196
|
Browser tooling and the preview supervisor currently require macOS or Linux. Screenshot baselines need stable browser,
|
|
195
197
|
font and app-data inputs. Runtime mount-time/heap budgets remain planned; the compiler rejects those settings rather
|
|
196
|
-
than pretending to measure them. See the [implemented contract](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
198
|
+
than pretending to measure them. See the [implemented contract](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/SPEC.md) and [tool internals](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/docs/INTERNALS.md).
|
|
197
199
|
|
|
198
200
|
## Give your agent its first task
|
|
199
201
|
|
|
@@ -287,11 +289,11 @@ For an existing app, run `brain agent setup` to merge local registrations, or
|
|
|
287
289
|
The hook checks the app after `.brain`, `.jsbrain` and `.cssbrain` edits; it does not run tests or download packages.
|
|
288
290
|
Use `brain mcp --profile minimal` for six core tools, or `--profile backend` for resource/job contracts and generators.
|
|
289
291
|
With a source installation, change the registration to command `brain` and arguments `["mcp"]`.
|
|
290
|
-
Other clients use their own MCP settings. See [the backend/agent contract](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
292
|
+
Other clients use their own MCP settings. See [the backend/agent contract](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/docs/BACKEND.md).
|
|
291
293
|
|
|
292
294
|
</details>
|
|
293
295
|
|
|
294
|
-
For an existing frontend, start with the [migration workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
296
|
+
For an existing frontend, start with the [migration workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/docs/MIGRATION.md). Its read-only planner recognizes
|
|
295
297
|
React, Angular, Vue, Svelte, Next and Nuxt projects. Port one tested route or component at a time, preserve its
|
|
296
298
|
behavior and keep a rollback path. It is an incremental workflow, not an automatic transpiler.
|
|
297
299
|
|
|
@@ -309,7 +311,7 @@ behavior and keep a rollback path. It is an incremental workflow, not an automat
|
|
|
309
311
|
```
|
|
310
312
|
|
|
311
313
|
The compiler handles signal reads and writes. Derived values update when their inputs change. Styles can live in
|
|
312
|
-
the same file and are scoped to the component. The [served spec](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
314
|
+
the same file and are scoped to the component. The [served spec](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/SPEC.md) defines the supported syntax.
|
|
313
315
|
|
|
314
316
|
## Readable intent. Lean browser output.
|
|
315
317
|
|
|
@@ -317,7 +319,7 @@ An internal function named `back_to_home` can become a short identifier in produ
|
|
|
317
319
|
on scope and the other names in the module. Keep meaningful names where the agent reasons about the code; let the
|
|
318
320
|
compiler shorten eligible bindings in what the browser receives.
|
|
319
321
|
|
|
320
|
-
This example comes from the [minifier's scope regression tests](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
322
|
+
This example comes from the [minifier's scope regression tests](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/crates/brain-min/src/mangle.rs):
|
|
321
323
|
|
|
322
324
|
```js
|
|
323
325
|
// Before
|
|
@@ -352,29 +354,29 @@ BRAINLLM includes protections at several stages of the app loop:
|
|
|
352
354
|
tests and diagnostics; failed stages remain visible to the agent.
|
|
353
355
|
|
|
354
356
|
These are implemented mechanisms, not a promise to catch every bug or repair every failure. The agent still needs
|
|
355
|
-
to test the user's workflow. See [runtime behavior in the spec](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
356
|
-
[component boundaries](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
357
|
+
to test the user's workflow. See [runtime behavior in the spec](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/SPEC.md#errors-at-runtime),
|
|
358
|
+
[component boundaries](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/runtime/brain-guard.js) and [compiler diagnostics](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/crates/brain-check/).
|
|
357
359
|
|
|
358
360
|
## Build the tool your agent needs
|
|
359
361
|
|
|
360
362
|
**Build with it. Let your LLM make it better.**
|
|
361
363
|
|
|
362
|
-

|
|
363
365
|
|
|
364
366
|
A failed compilation can become a regression test. A repeated slow step can become a benchmark. A fix made while
|
|
365
367
|
building your app can become a contribution that helps the next developer and their agent.
|
|
366
368
|
|
|
367
369
|
Found a compiler gap while building an app? Turn the smallest reproducible case into a regression test and a
|
|
368
|
-
contribution. BRAINLLM includes an [evolution workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
370
|
+
contribution. BRAINLLM includes an [evolution workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/docs/EVOLUTION.md) for isolated proposals, validated compiler
|
|
369
371
|
binaries and reversible activation. Configured automatic pushes go to review branches; merges require the
|
|
370
372
|
principal author's review. This is an explicit development workflow, not a compiler that silently rewrites itself
|
|
371
|
-
on every build. Read the [agent improvement playbook](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
373
|
+
on every build. Read the [agent improvement playbook](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/docs/AGENT-IDEAS.md) for an opt-in prompt and concrete ideas
|
|
372
374
|
to investigate.
|
|
373
375
|
|
|
374
376
|
Human developers and LLM contributors are welcome. Useful first contributions include reproducible compiler bugs,
|
|
375
377
|
behavior-preserving migration examples, clearer diagnostics and performance improvements with before/after data.
|
|
376
378
|
|
|
377
|
-
1. Read [CONTRIBUTING.md](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
379
|
+
1. Read [CONTRIBUTING.md](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/CONTRIBUTING.md) and the relevant [internals](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/docs/INTERNALS.md).
|
|
378
380
|
2. Make a focused change with a regression test and synthetic sample data.
|
|
379
381
|
3. Run `bash scripts/verify.sh`. It builds the CLI and checks Rust, runtime, tooling, diagnostic fixtures, privacy
|
|
380
382
|
and repository language. Verification also requires ripgrep.
|
|
@@ -385,7 +387,7 @@ Never include app secrets, private source or customer data in a contribution.
|
|
|
385
387
|
|
|
386
388
|
## Know what you are adopting
|
|
387
389
|
|
|
388
|
-
BRAINLLM is **0.
|
|
390
|
+
BRAINLLM is **0.8.1** (see [CHANGELOG.md](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/CHANGELOG.md)). Start with a small app or an isolated route and test the behavior you need. Features marked
|
|
389
391
|
as planned in the source specification are not a supported promise; `brain spec` serves the implemented contract.
|
|
390
392
|
Third-party React, Angular and Vue components do not become BRAINLLM components automatically. Benchmark wins in
|
|
391
393
|
build time do not imply that every runtime workload is faster.
|
|
@@ -394,15 +396,15 @@ build time do not imply that every runtime workload is faster.
|
|
|
394
396
|
|
|
395
397
|
| You want to… | Start here |
|
|
396
398
|
|---|---|
|
|
397
|
-
| Give an agent the project context | [llms.txt](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
398
|
-
| Write an app | [SPEC.md](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
399
|
-
| Migrate an existing frontend | [Migration guide](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
400
|
-
| Improve the compiler while using it | [Evolution workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
401
|
-
| Understand the implementation | [Internals](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
402
|
-
| Inspect examples and reproduce measurements | [Examples](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
403
|
-
| Contribute a change | [Contributor guide](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
399
|
+
| Give an agent the project context | [llms.txt](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/llms.txt) |
|
|
400
|
+
| Write an app | [SPEC.md](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/SPEC.md) and `brain spec` |
|
|
401
|
+
| Migrate an existing frontend | [Migration guide](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/docs/MIGRATION.md) |
|
|
402
|
+
| Improve the compiler while using it | [Evolution workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/docs/EVOLUTION.md) and [agent ideas](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/docs/AGENT-IDEAS.md) |
|
|
403
|
+
| Understand the implementation | [Internals](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/docs/INTERNALS.md) and [crates](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/crates/) |
|
|
404
|
+
| Inspect examples and reproduce measurements | [Examples](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/examples/) and [benchmarks](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/bench/) |
|
|
405
|
+
| Contribute a change | [Contributor guide](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/CONTRIBUTING.md) |
|
|
404
406
|
|
|
405
|
-
Released under the [MIT license](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
407
|
+
Released under the [MIT license](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/LICENSE).
|
|
406
408
|
|
|
407
409
|
Created and maintained by **Christian Irack Flores Maldonado**, principal author.
|
|
408
410
|
[ingenieria.dev](https://ingenieria.dev) · [irack.mx](https://irack.mx) · [christian@irack.mx](mailto:christian@irack.mx)
|
|
@@ -414,5 +416,5 @@ Every merged contribution helps the next developer and their agent. Thank you to
|
|
|
414
416
|
|
|
415
417
|
[<img src="https://avatars.githubusercontent.com/u/1562002?v=4" width="48" height="48" alt="chrisifm">](https://github.com/chrisifm) [chrisifm](https://github.com/chrisifm)
|
|
416
418
|
|
|
417
|
-
Attribution is refreshed through a reviewed pull request. [How it works](https://github.com/chrisifm/BRAINLLM/blob/v0.
|
|
419
|
+
Attribution is refreshed through a reviewed pull request. [How it works](https://github.com/chrisifm/BRAINLLM/blob/v0.8.1/docs/CONTRIBUTORS.md).
|
|
418
420
|
<!-- contributors:end -->
|
package/bin/brain.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// 2. BRAIN_BINARY=<path> runs that binary instead (local builds, unsupported platforms).
|
|
8
8
|
// 3. Otherwise the platform package's bin/brain(.exe); its exit code and signal pass through unchanged.
|
|
9
9
|
'use strict'
|
|
10
|
-
const {
|
|
10
|
+
const { spawn } = require('node:child_process')
|
|
11
11
|
const { existsSync, realpathSync } = require('node:fs')
|
|
12
12
|
const { dirname, join, resolve } = require('node:path')
|
|
13
13
|
|
|
@@ -67,7 +67,16 @@ function fail(msg) {
|
|
|
67
67
|
|
|
68
68
|
const delegate = projectLauncher()
|
|
69
69
|
const [cmd, args] = delegate ? [process.execPath, [delegate, ...process.argv.slice(2)]] : [binary(), process.argv.slice(2)]
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
const child = spawn(cmd, args, { stdio: 'inherit', windowsHide: true })
|
|
71
|
+
// A signal sent to this process alone (`kill <pid>`, a process manager) must reach the binary, or it stays listening as an orphan.
|
|
72
|
+
const forwarded = ['SIGTERM', 'SIGINT', 'SIGHUP'].map(signal => {
|
|
73
|
+
const forward = () => child.kill(signal)
|
|
74
|
+
process.on(signal, forward)
|
|
75
|
+
return [signal, forward]
|
|
76
|
+
})
|
|
77
|
+
child.on('error', e => fail(`could not run ${cmd}: ${e.message}`))
|
|
78
|
+
child.on('exit', (status, signal) => {
|
|
79
|
+
for (const [name, forward] of forwarded) process.removeListener(name, forward)
|
|
80
|
+
if (signal) process.kill(process.pid, signal)
|
|
81
|
+
else process.exit(status ?? 1)
|
|
82
|
+
})
|
package/brain.schema.json
CHANGED
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
"type": "string",
|
|
41
41
|
"description": "Default document language, e.g. \"en\"."
|
|
42
42
|
},
|
|
43
|
+
"speculation": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"default": true,
|
|
46
|
+
"description": "Speculation Rules on pages that navigate with a full document load: public static targets are prefetched on hover. false removes them."
|
|
47
|
+
},
|
|
43
48
|
"server": {
|
|
44
49
|
"type": "object",
|
|
45
50
|
"additionalProperties": false,
|
|
@@ -47,9 +52,24 @@
|
|
|
47
52
|
"properties": {
|
|
48
53
|
"maxBodyKB": { "type": "integer", "minimum": 1, "maximum": 65536, "default": 1024, "description": "Largest RPC or form body in KiB (1024 bytes); a larger body is answered with 413. Raise it for files sent as base64 in RPC arguments." },
|
|
49
54
|
"timeoutMs": { "type": "integer", "minimum": 100, "maximum": 600000, "default": 10000, "description": "Deadline for a server function call and for load(); past it the server answers 504." },
|
|
55
|
+
"earlyHints": { "type": "boolean", "default": false, "description": "Send 103 Early Hints from the Node server. Leave off behind nginx below 1.29, which takes a 103 as the final response. Link headers are always sent. BRAIN_EARLY_HINTS=1 or 0 overrides it." },
|
|
50
56
|
"rpcPerMinute": { "type": "integer", "minimum": 1, "maximum": 100000, "default": 60, "description": "Calls per client IP and function per minute; past it the server answers 429 with Retry-After." }
|
|
51
57
|
}
|
|
52
58
|
},
|
|
59
|
+
"csp": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"additionalProperties": false,
|
|
62
|
+
"description": "Content-Security-Policy settings of the built site.",
|
|
63
|
+
"properties": {
|
|
64
|
+
"connectSrc": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"maxItems": 64,
|
|
67
|
+
"uniqueItems": true,
|
|
68
|
+
"items": { "type": "string", "pattern": "^((https|wss)://(\\*\\.)?[a-z0-9.-]+|(http|ws)://(localhost|127\\.0\\.0\\.1))(:([0-9]+|\\*))?$" },
|
|
69
|
+
"description": "Origins pages may call besides the site's own, which is always allowed. Replaces the broad `https: wss:` of `connect-src`; [] means the own origin only. Omitted keeps the broad form and `brain check` warns B0795."
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
53
73
|
"site": {
|
|
54
74
|
"type": "string",
|
|
55
75
|
"format": "uri",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christianirack/brainllm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "BRAINLLM: the Rust-powered full-stack web compiler for LLMs and AI agents. Native brain CLI, dev server, optimized builds, PostgreSQL backend and MCP server.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"brain": "bin/brain.js"
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"node": ">=22"
|
|
16
16
|
},
|
|
17
17
|
"optionalDependencies": {
|
|
18
|
-
"@christianirack/brainllm-darwin-arm64": "0.
|
|
19
|
-
"@christianirack/brainllm-darwin-x64": "0.
|
|
20
|
-
"@christianirack/brainllm-linux-x64": "0.
|
|
21
|
-
"@christianirack/brainllm-linux-arm64": "0.
|
|
22
|
-
"@christianirack/brainllm-linux-x64-musl": "0.
|
|
23
|
-
"@christianirack/brainllm-win32-x64": "0.
|
|
24
|
-
"@christianirack/brainllm-win32-arm64": "0.
|
|
18
|
+
"@christianirack/brainllm-darwin-arm64": "0.8.1",
|
|
19
|
+
"@christianirack/brainllm-darwin-x64": "0.8.1",
|
|
20
|
+
"@christianirack/brainllm-linux-x64": "0.8.1",
|
|
21
|
+
"@christianirack/brainllm-linux-arm64": "0.8.1",
|
|
22
|
+
"@christianirack/brainllm-linux-x64-musl": "0.8.1",
|
|
23
|
+
"@christianirack/brainllm-win32-x64": "0.8.1",
|
|
24
|
+
"@christianirack/brainllm-win32-arm64": "0.8.1"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|
|
27
27
|
"llm",
|