@fluxy-chat/create-fluxy-chat 0.5.1 → 0.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.2] - 2026-08-19
4
+
5
+ ### Fixed
6
+
7
+ - Send `Origin` header in hosted setup script so `/demo/session` passes the `DEMO_ALLOWED_ORIGINS` guard.
8
+
3
9
  ## [0.5.1] - 2026-08-19
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluxy-chat/create-fluxy-chat",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Scaffold a new FluxyChat bot project with a single command",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -189,7 +189,9 @@ async function setupHosted() {
189
189
 
190
190
  console.log(dim(` mode: hosted · worker: ${workerUrl}`));
191
191
 
192
- const status = await getJson(workerUrl, "/demo/status").catch(() => null);
192
+ const cliHeaders = { Origin: consoleUrl };
193
+
194
+ const status = await getJson(workerUrl, "/demo/status", cliHeaders).catch(() => null);
193
195
  if (!status?.ready) {
194
196
  fail(
195
197
  `Public demo not available at ${workerUrl}\n` +
@@ -199,7 +201,7 @@ async function setupHosted() {
199
201
  }
200
202
  ok("public demo ready");
201
203
 
202
- const session = await getJson(workerUrl, "/demo/session");
204
+ const session = await getJson(workerUrl, "/demo/session", cliHeaders);
203
205
  if (!session?.token || !session?.roomId) {
204
206
  fail("/demo/session did not return token + roomId");
205
207
  }