@christianirack/brainllm 0.8.11 → 0.9.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- <p align="center"><img src="https://raw.githubusercontent.com/chrisifm/BRAINLLM/v0.8.11/docs/site/assets/logo.png" width="88" alt="BRAINLLM brain mark"></p>
1
+ <p align="center"><img src="https://raw.githubusercontent.com/chrisifm/BRAINLLM/v0.9.0/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.8.11/LICENSE"><img src="https://img.shields.io/github/license/chrisifm/BRAINLLM" alt="License"></a>
16
+ <a href="https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/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.8.11/docs/site/assets/cover.png" alt="BRAINLLM — The web compiler for LLMs. Open the website: chrisifm.github.io/BRAINLLM"></a></p>
19
+ <p align="center"><a href="https://chrisifm.github.io/BRAINLLM/"><img src="https://raw.githubusercontent.com/chrisifm/BRAINLLM/v0.9.0/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
 
@@ -49,14 +49,14 @@ the baseline here:
49
49
  - **Real-time evidence while developing.** Compiler feedback, impact per save (diagnostics and bytes per view),
50
50
  runtime errors mapped to `.brain` lines, memory and leak inspection, over CLI and MCP.
51
51
 
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.11/SPEC.md)** · **[See the benchmarks](#show-me-the-numbers)** · **[Contribute](#build-the-tool-your-agent-needs)**
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.9.0/SPEC.md)** · **[See the benchmarks](#show-me-the-numbers)** · **[Contribute](#build-the-tool-your-agent-needs)**
53
53
 
54
54
  ## A frontend language with the model in mind
55
55
 
56
56
  An agent writing your app needs a contract it can follow and feedback it can act on. BRAINLLM makes that loop
57
57
  explicit: read the spec, generate a component, check it, apply the fix, test the result.
58
58
 
59
- ![An agent reads the BRAINLLM contract, writes a component and uses compiler feedback to validate the app](https://github.com/chrisifm/BRAINLLM/raw/v0.8.11/docs/site/assets/agent-loop.png)
59
+ ![An agent reads the BRAINLLM contract, writes a component and uses compiler feedback to validate the app](https://github.com/chrisifm/BRAINLLM/raw/v0.9.0/docs/site/assets/agent-loop.png)
60
60
 
61
61
  - **Less to guess.** `brain spec` defines the supported language. One component format, a prescribed project
62
62
  structure and generators keep the model working inside a known contract.
@@ -84,7 +84,7 @@ agent has to reconstruct while preserving code that a developer can read and rev
84
84
  | Verification and delivery | Tests, `brain doctor` and the production build make validation part of the workflow |
85
85
  | Tested compiler improvements | Isolated proposals, validation gates and optional review-branch pushes let the agent contribute fixes |
86
86
 
87
- Use [SPEC.md](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/SPEC.md), the served `brain spec` and [EVOLUTION.md](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/docs/EVOLUTION.md) for exact contracts and limits.
87
+ Use [SPEC.md](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/SPEC.md), the served `brain spec` and [EVOLUTION.md](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/docs/EVOLUTION.md) for exact contracts and limits.
88
88
 
89
89
  ## Where it fits in the frontend stack
90
90
 
@@ -143,8 +143,8 @@ stack. Builds run serially on a shared machine. Variance matters: inspect the ra
143
143
  The output strategies differ (including SSR, client rendering and an Astro React island); this comparison measures
144
144
  production build duration for this fixture, not universal app performance or feature equivalence.
145
145
 
146
- Read the [expanded method, versions, payloads and results](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/bench/build/expanded.md). The original three-stack
147
- [historical results](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/bench/build/results/summary.md) remain available unchanged. Use `bench/build/expanded.mjs`
146
+ Read the [expanded method, versions, payloads and results](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/bench/build/expanded.md). The original three-stack
147
+ [historical results](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/bench/build/results/summary.md) remain available unchanged. Use `bench/build/expanded.mjs`
148
148
  with the documented frozen binary and scratch-directory setup to reproduce this seven-stack run.
149
149
 
150
150
  **Ask your agent to challenge the result:**
@@ -167,11 +167,11 @@ numbers support it. Do not upload results or publish anything automatically.
167
167
  Clean up only the temporary resources this run created.
168
168
  ```
169
169
 
170
- A separate [cache-key microbenchmark](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/bench/build/results/compiler-cache-lookup.json) measured **43.3× faster key
170
+ A separate [cache-key microbenchmark](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/bench/build/results/compiler-cache-lookup.json) measured **43.3× faster key
171
171
  lookup** after removing an unnecessary parse: 10,000 lookups of a 1,050-byte input. That number measures this
172
172
  internal operation only. It is not a full-build speedup or a webpack comparison.
173
173
 
174
- The [benchmark report](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/bench/REPORT.md) also tracks agent-generated apps, browser behavior, payload size and
174
+ The [benchmark report](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/bench/REPORT.md) also tracks agent-generated apps, browser behavior, payload size and
175
175
  failure recovery. Historical LLM results describe their frozen model/spec/compiler runs; they do not guarantee
176
176
  that a new prompt or compiler revision will pass. This project is open to developers and researchers who want to
177
177
  investigate how language design and compiler feedback affect agent behavior. Bring a hypothesis and a reproducer.
@@ -195,7 +195,7 @@ what each result actually establishes.
195
195
 
196
196
  Browser tooling and the preview supervisor currently require macOS or Linux. Screenshot baselines need stable browser,
197
197
  font and app-data inputs. Runtime mount-time/heap budgets remain planned; the compiler rejects those settings rather
198
- than pretending to measure them. See the [implemented contract](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/SPEC.md) and [tool internals](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/docs/INTERNALS.md).
198
+ than pretending to measure them. See the [implemented contract](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/SPEC.md) and [tool internals](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/docs/INTERNALS.md).
199
199
 
200
200
  ## Give your agent its first task
201
201
 
@@ -273,6 +273,20 @@ cd my-app
273
273
  brain run
274
274
  ```
275
275
 
276
+ For a website that needs only ordinary file hosting:
277
+
278
+ ```sh
279
+ brain new my-site --static
280
+ cd my-site
281
+ brain build --static --site https://example.com
282
+ ```
283
+
284
+ Replace the example origin with your own. Upload the contents of `dist/`: prerendered HTML, minified assets and
285
+ SEO files, with optional gzip/Brotli copies. No BRAINLLM/Node/Rust server is needed on the host. Static mode rejects
286
+ request-time server features. Read `brain guide static` for routes, build-time data and hosting configuration.
287
+ For GitHub Pages, set `staticOutput.host` to `github-pages` and read `brain guide github-pages`. Compiler attribution is on by default; only an explicit user request permits top-level `compilerBranding:false` to remove generated visible/hidden signatures and compiler links.
288
+ With an npm-installed compiler, use `npx brain` for these commands.
289
+
276
290
  With a source installation, use the installed `brain` commands directly. That workflow does not require
277
291
  `npm install` in the generated app.
278
292
 
@@ -289,11 +303,11 @@ For an existing app, run `brain agent setup` to merge local registrations, or
289
303
  The hook checks the app after `.brain`, `.jsbrain` and `.cssbrain` edits; it does not run tests or download packages.
290
304
  Use `brain mcp --profile minimal` for six core tools, or `--profile backend` for resource/job contracts and generators.
291
305
  With a source installation, change the registration to command `brain` and arguments `["mcp"]`.
292
- Other clients use their own MCP settings. See [the backend/agent contract](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/docs/BACKEND.md).
306
+ Other clients use their own MCP settings. See [the backend/agent contract](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/docs/BACKEND.md).
293
307
 
294
308
  </details>
295
309
 
296
- For an existing frontend, start with the [migration workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/docs/MIGRATION.md). Its read-only planner recognizes
310
+ For an existing frontend, start with the [migration workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/docs/MIGRATION.md). Its read-only planner recognizes
297
311
  React, Angular, Vue, Svelte, Next and Nuxt projects. Port one tested route or component at a time, preserve its
298
312
  behavior and keep a rollback path. It is an incremental workflow, not an automatic transpiler.
299
313
 
@@ -311,7 +325,7 @@ behavior and keep a rollback path. It is an incremental workflow, not an automat
311
325
  ```
312
326
 
313
327
  The compiler handles signal reads and writes. Derived values update when their inputs change. Styles can live in
314
- the same file and are scoped to the component. The [served spec](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/SPEC.md) defines the supported syntax.
328
+ the same file and are scoped to the component. The [served spec](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/SPEC.md) defines the supported syntax.
315
329
 
316
330
  ## Readable intent. Lean browser output.
317
331
 
@@ -319,7 +333,7 @@ An internal function named `back_to_home` can become a short identifier in produ
319
333
  on scope and the other names in the module. Keep meaningful names where the agent reasons about the code; let the
320
334
  compiler shorten eligible bindings in what the browser receives.
321
335
 
322
- This example comes from the [minifier's scope regression tests](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/crates/brain-min/src/mangle.rs):
336
+ This example comes from the [minifier's scope regression tests](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/crates/brain-min/src/mangle.rs):
323
337
 
324
338
  ```js
325
339
  // Before
@@ -354,29 +368,29 @@ BRAINLLM includes protections at several stages of the app loop:
354
368
  tests and diagnostics; failed stages remain visible to the agent.
355
369
 
356
370
  These are implemented mechanisms, not a promise to catch every bug or repair every failure. The agent still needs
357
- to test the user's workflow. See [runtime behavior in the spec](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/SPEC.md#errors-at-runtime),
358
- [component boundaries](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/runtime/brain-guard.js) and [compiler diagnostics](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/crates/brain-check/).
371
+ to test the user's workflow. See [runtime behavior in the spec](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/SPEC.md#errors-at-runtime),
372
+ [component boundaries](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/runtime/brain-guard.js) and [compiler diagnostics](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/crates/brain-check/).
359
373
 
360
374
  ## Build the tool your agent needs
361
375
 
362
376
  **Build with it. Let your LLM make it better.**
363
377
 
364
- ![An LLM turns an observed problem into an isolated fix, runs validation and submits a contribution for human review](https://github.com/chrisifm/BRAINLLM/raw/v0.8.11/docs/site/assets/improvement-loop.png)
378
+ ![An LLM turns an observed problem into an isolated fix, runs validation and submits a contribution for human review](https://github.com/chrisifm/BRAINLLM/raw/v0.9.0/docs/site/assets/improvement-loop.png)
365
379
 
366
380
  A failed compilation can become a regression test. A repeated slow step can become a benchmark. A fix made while
367
381
  building your app can become a contribution that helps the next developer and their agent.
368
382
 
369
383
  Found a compiler gap while building an app? Turn the smallest reproducible case into a regression test and a
370
- contribution. BRAINLLM includes an [evolution workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/docs/EVOLUTION.md) for isolated proposals, validated compiler
384
+ contribution. BRAINLLM includes an [evolution workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/docs/EVOLUTION.md) for isolated proposals, validated compiler
371
385
  binaries and reversible activation. Configured automatic pushes go to review branches; merges require the
372
386
  principal author's review. This is an explicit development workflow, not a compiler that silently rewrites itself
373
- on every build. Read the [agent improvement playbook](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/docs/AGENT-IDEAS.md) for an opt-in prompt and concrete ideas
387
+ on every build. Read the [agent improvement playbook](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/docs/AGENT-IDEAS.md) for an opt-in prompt and concrete ideas
374
388
  to investigate.
375
389
 
376
390
  Human developers and LLM contributors are welcome. Useful first contributions include reproducible compiler bugs,
377
391
  behavior-preserving migration examples, clearer diagnostics and performance improvements with before/after data.
378
392
 
379
- 1. Read [CONTRIBUTING.md](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/CONTRIBUTING.md) and the relevant [internals](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/docs/INTERNALS.md).
393
+ 1. Read [CONTRIBUTING.md](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/CONTRIBUTING.md) and the relevant [internals](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/docs/INTERNALS.md).
380
394
  2. Make a focused change with a regression test and synthetic sample data.
381
395
  3. Run `bash scripts/verify.sh`. It builds the CLI and checks Rust, runtime, tooling, diagnostic fixtures, privacy
382
396
  and repository language. Verification also requires ripgrep.
@@ -387,7 +401,7 @@ Never include app secrets, private source or customer data in a contribution.
387
401
 
388
402
  ## Know what you are adopting
389
403
 
390
- BRAINLLM is **0.8.11** (see [CHANGELOG.md](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/CHANGELOG.md)). Start with a small app or an isolated route and test the behavior you need. Features marked
404
+ BRAINLLM is **0.9.0** (see [CHANGELOG.md](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/CHANGELOG.md)). Start with a small app or an isolated route and test the behavior you need. Features marked
391
405
  as planned in the source specification are not a supported promise; `brain spec` serves the implemented contract.
392
406
  Third-party React, Angular and Vue components do not become BRAINLLM components automatically. Benchmark wins in
393
407
  build time do not imply that every runtime workload is faster.
@@ -396,15 +410,15 @@ build time do not imply that every runtime workload is faster.
396
410
 
397
411
  | You want to… | Start here |
398
412
  |---|---|
399
- | Give an agent the project context | [llms.txt](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/llms.txt) |
400
- | Write an app | [SPEC.md](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/SPEC.md) and `brain spec` |
401
- | Migrate an existing frontend | [Migration guide](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/docs/MIGRATION.md) |
402
- | Improve the compiler while using it | [Evolution workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/docs/EVOLUTION.md) and [agent ideas](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/docs/AGENT-IDEAS.md) |
403
- | Understand the implementation | [Internals](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/docs/INTERNALS.md) and [crates](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/crates/) |
404
- | Inspect examples and reproduce measurements | [Examples](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/examples/) and [benchmarks](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/bench/) |
405
- | Contribute a change | [Contributor guide](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/CONTRIBUTING.md) |
413
+ | Give an agent the project context | [llms.txt](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/llms.txt) |
414
+ | Write an app | [SPEC.md](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/SPEC.md) and `brain spec` |
415
+ | Migrate an existing frontend | [Migration guide](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/docs/MIGRATION.md) |
416
+ | Improve the compiler while using it | [Evolution workflow](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/docs/EVOLUTION.md) and [agent ideas](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/docs/AGENT-IDEAS.md) |
417
+ | Understand the implementation | [Internals](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/docs/INTERNALS.md) and [crates](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/crates/) |
418
+ | Inspect examples and reproduce measurements | [Examples](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/examples/) and [benchmarks](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/bench/) |
419
+ | Contribute a change | [Contributor guide](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/CONTRIBUTING.md) |
406
420
 
407
- Released under the [MIT license](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/LICENSE).
421
+ Released under the [MIT license](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/LICENSE).
408
422
 
409
423
  Created and maintained by **Christian Irack Flores Maldonado**, principal author.
410
424
  [ingenieria.dev](https://ingenieria.dev) · [irack.mx](https://irack.mx) · [christian@irack.mx](mailto:christian@irack.mx)
@@ -416,5 +430,5 @@ Every merged contribution helps the next developer and their agent. Thank you to
416
430
 
417
431
  [<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)
418
432
 
419
- Attribution is refreshed through a reviewed pull request. [How it works](https://github.com/chrisifm/BRAINLLM/blob/v0.8.11/docs/CONTRIBUTORS.md).
433
+ Attribution is refreshed through a reviewed pull request. [How it works](https://github.com/chrisifm/BRAINLLM/blob/v0.9.0/docs/CONTRIBUTORS.md).
420
434
  <!-- contributors:end -->
package/brain.schema.json CHANGED
@@ -5,6 +5,48 @@
5
5
  "description": "BRAINLLM app configuration. Precedence: flag > BRAIN_* variable > brain.json > defaults.",
6
6
  "type": "object",
7
7
  "properties": {
8
+ "compilerBranding": { "type": "boolean", "default": true, "description": "Compiler attribution in production artifacts and headers. Set false only at the user's explicit request; removes generated visible/hidden signatures and compiler repository/landing links. Does not rewrite authored content or third-party licenses." },
9
+ "output": {
10
+ "type": "string", "enum": ["auto", "static"], "default": "auto",
11
+ "description": "static requires portable .html/.js/.css output and rejects request-time server dependencies. Honored by build, doctor and MCP. auto preserves normal server selection."
12
+ },
13
+ "staticOutput": {
14
+ "type": "object",
15
+ "additionalProperties": false,
16
+ "description": "Optional generated asset folders for static output only. Defaults preserve the normal layout. Paths are safe relative URL directories; . means the output root. Public originals retain their source paths; packaged SDKs preserve their complete layout beneath the js folder.",
17
+ "properties": {
18
+ "host": { "type": "string", "enum": ["generic", "github-pages"], "default": "generic", "description": "github-pages emits a root .nojekyll and 404.html, requires the public HTTPS origin and defaults hostFiles to false. Set base separately for project repositories." },
19
+ "fonts": { "type": "string", "minLength": 1, "maxLength": 192, "description": "Hashed public/imported fonts; defaults to the assets directory unless explicitly overridden. Packaged SDK relative trees stay intact." },
20
+ "precompressed": { "type": "boolean", "default": true, "description": "Emit useful .gz/.br/.zst variants. false emits ordinary raw web files only; does not remove authored public files." },
21
+ "hostFiles": { "type": "boolean", "default": true, "description": "Emit optional _headers/_redirects and nginx/Caddy configuration hints. false requires configuring headers and redirects on the host." },
22
+ "compression": { "type": "string", "enum": ["small", "fast"], "default": "small", "description": "Precompression profile: small preserves production size optimization; fast spends less build time encoding gzip/Brotli/zstd. Both retain raw files, useful compressed variants and actual-byte budget checks." },
23
+ "inlineCss": { "type": "boolean", "default": true, "description": "Allow small stylesheets inline; false emits generated CSS as separate hashed files in the css folder. Dynamic style attributes are unaffected." },
24
+ "js": {
25
+ "type": "string",
26
+ "minLength": 1,
27
+ "maxLength": 192,
28
+ "description": "Generated JavaScript, workers and packaged SDK trees (default _b)."
29
+ },
30
+ "css": {
31
+ "type": "string",
32
+ "minLength": 1,
33
+ "maxLength": 192,
34
+ "description": "Generated stylesheets (default _b)."
35
+ },
36
+ "images": {
37
+ "type": "string",
38
+ "minLength": 1,
39
+ "maxLength": 192,
40
+ "description": "Generated hashed image copies (default _b); an override also places social images beneath this directory/og."
41
+ },
42
+ "assets": {
43
+ "type": "string",
44
+ "minLength": 1,
45
+ "maxLength": 192,
46
+ "description": "Other generated assets such as fonts and imported binaries (default _b)."
47
+ }
48
+ }
49
+ },
8
50
  "trace": {
9
51
  "type": "object",
10
52
  "description": "`brain trace`, the development capture of `brain run`. It never reaches a production build.",
@@ -68,6 +110,26 @@
68
110
  "items": { "type": "string", "pattern": "^(https://[a-z0-9.-]+|http://(localhost|127\\.0\\.0\\.1))(:([0-9]+|\\*))?$" },
69
111
  "description": "Exact hosts pages may load scripts from, besides the site's own. A literal script outside this list is reported as B0811; a third-party script tag still needs integrity (B0123)."
70
112
  },
113
+ "mediaSrc": {
114
+ "type": "array",
115
+ "maxItems": 64,
116
+ "uniqueItems": true,
117
+ "items": {
118
+ "type": "string",
119
+ "pattern": "^(blob:|(https://[a-z0-9.-]+|http://(localhost|127\\.0\\.0\\.1))(:[0-9]+)?)$"
120
+ },
121
+ "description": "Sources for audio and video, besides the own origin. Allows blob: and exact HTTPS origins; HTTP is local-loopback only. Omitted keeps default-src fallback."
122
+ },
123
+ "workerSrc": {
124
+ "type": "array",
125
+ "maxItems": 64,
126
+ "uniqueItems": true,
127
+ "items": {
128
+ "type": "string",
129
+ "pattern": "^(blob:|(https://[a-z0-9.-]+|http://(localhost|127\\.0\\.0\\.1))(:[0-9]+)?)$"
130
+ },
131
+ "description": "Sources for Worker, SharedWorker and ServiceWorker scripts, besides the own origin. Allows blob: and exact HTTPS origins; HTTP is local-loopback only. Omitted preserves the standard worker directive fallback."
132
+ },
71
133
  "frameSrc": {
72
134
  "type": "array",
73
135
  "maxItems": 64,
@@ -75,6 +137,13 @@
75
137
  "items": { "type": "string", "pattern": "^(https://(\\*\\.)?[a-z0-9.-]+|http://(localhost|127\\.0\\.0\\.1))(:([0-9]+|\\*))?$" },
76
138
  "description": "Origins pages may embed in an iframe, besides the site's own. A literal iframe outside this list is reported as B0811."
77
139
  },
140
+ "formAction": {
141
+ "type": "array",
142
+ "maxItems": 64,
143
+ "uniqueItems": true,
144
+ "items": { "type": "string", "pattern": "^(https://[a-z0-9.-]+|http://(localhost|127\\.0\\.0\\.1))(:[0-9]+)?$" },
145
+ "description": "Exact origins native forms may submit to, besides the own origin. HTTPS or local-loopback HTTP only; no wildcard, path, blob or socket sources. Omitted or [] keeps form-action own-origin only."
146
+ },
78
147
  "connectSrc": {
79
148
  "type": "array",
80
149
  "maxItems": 64,
@@ -193,7 +262,7 @@
193
262
  "properties": {
194
263
  "minScores": {
195
264
  "type": "object",
196
- "description": "Minimum score per category for `brain lighthouse`. A category left out is reported and not checked.",
265
+ "description": "Minimum score per category for `brain lighthouse`. Accessibility and SEO default to 100 because they depend only on the page; performance and best-practices are checked only when set.",
197
266
  "properties": {
198
267
  "performance": { "type": "number", "minimum": 0, "maximum": 100 },
199
268
  "accessibility": { "type": "number", "minimum": 0, "maximum": 100 },
@@ -206,6 +275,10 @@
206
275
  "seo": {
207
276
  "type": "object",
208
277
  "properties": {
278
+ "siteName": {
279
+ "type": "string", "minLength": 1, "maxLength": 512,
280
+ "description": "Public display name for SEO and discovery files. Overrides root name without renaming the package."
281
+ },
209
282
  "minScore": {
210
283
  "type": "number",
211
284
  "minimum": 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@christianirack/brainllm",
3
- "version": "0.8.11",
3
+ "version": "0.9.0",
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.8.11",
19
- "@christianirack/brainllm-darwin-x64": "0.8.11",
20
- "@christianirack/brainllm-linux-x64": "0.8.11",
21
- "@christianirack/brainllm-linux-arm64": "0.8.11",
22
- "@christianirack/brainllm-linux-x64-musl": "0.8.11",
23
- "@christianirack/brainllm-win32-x64": "0.8.11",
24
- "@christianirack/brainllm-win32-arm64": "0.8.11"
18
+ "@christianirack/brainllm-darwin-arm64": "0.9.0",
19
+ "@christianirack/brainllm-darwin-x64": "0.9.0",
20
+ "@christianirack/brainllm-linux-x64": "0.9.0",
21
+ "@christianirack/brainllm-linux-arm64": "0.9.0",
22
+ "@christianirack/brainllm-linux-x64-musl": "0.9.0",
23
+ "@christianirack/brainllm-win32-x64": "0.9.0",
24
+ "@christianirack/brainllm-win32-arm64": "0.9.0"
25
25
  },
26
26
  "keywords": [
27
27
  "llm",