@rizom/brain 0.2.0-alpha.12 → 0.2.0-alpha.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rizom/brain",
3
- "version": "0.2.0-alpha.12",
3
+ "version": "0.2.0-alpha.13",
4
4
  "description": "Brain runtime + CLI — scaffold, run, and manage AI brain instances",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,7 +1,7 @@
1
1
  # Internal Caddy — path-based routing to brain services.
2
2
  # kamal-proxy terminates TLS externally; this runs inside the container.
3
3
  :80 {
4
- @preview host preview.*
4
+ @preview host *-preview.*
5
5
  handle @preview {
6
6
  reverse_proxy localhost:4321
7
7
 
@@ -12,7 +12,7 @@ proxy:
12
12
  private_key_pem: PRIVATE_KEY_PEM
13
13
  hosts:
14
14
  - <%= ENV['BRAIN_DOMAIN'] %>
15
- - preview.<%= ENV['BRAIN_DOMAIN'] %>
15
+ - <%= ENV['PREVIEW_DOMAIN'] %>
16
16
  app_port: 80
17
17
  healthcheck:
18
18
  path: /health
@@ -101,7 +101,7 @@ while (server.status !== "running" || !server.public_net?.ipv4?.ip) {
101
101
  server = await getServer(server.id);
102
102
  }
103
103
 
104
- const serverIp = server.public_net?.ipv4?.ip;
104
+ const serverIp = server.public_net.ipv4.ip;
105
105
  if (!serverIp) {
106
106
  throw new Error(`Server ${server.id} running but has no IPv4 address`);
107
107
  }