@fluxy-chat/create-fluxy-chat 0.5.0 → 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,17 @@
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
+
9
+ ## [0.5.1] - 2026-08-19
10
+
11
+ ### Changed
12
+
13
+ - Docs and CLI help use the scoped npm name: `npx @fluxy-chat/create-fluxy-chat@latest` (unscoped `create-fluxy-chat` 404s on the registry)
14
+
3
15
  ## [0.5.0] - 2026-08-19
4
16
 
5
17
  ### Added
package/dist/index.js CHANGED
@@ -897,7 +897,7 @@ var HELP_TEXT = `
897
897
  ${pc.bold("create-fluxy-chat")} \u2014 Scaffold a new FluxyChat bot project
898
898
 
899
899
  ${pc.bold("Usage:")}
900
- npx create-fluxy-chat [project-name] [options]
900
+ npx @fluxy-chat/create-fluxy-chat [project-name] [options]
901
901
 
902
902
  ${pc.bold("Options:")}
903
903
  -a, --adapter <type> Adapter: ${TEMPLATE_CHOICES}
@@ -913,8 +913,8 @@ ${pc.bold("Options:")}
913
913
  -h, --help Show this help
914
914
 
915
915
  ${pc.bold("Examples:")}
916
- ${pc.cyan("npx create-fluxy-chat my-app --mode hosted -y")}
917
- ${pc.cyan("npx create-fluxy-chat my-app --full -y")}
916
+ ${pc.cyan("npx @fluxy-chat/create-fluxy-chat my-app --mode hosted -y")}
917
+ ${pc.cyan("npx @fluxy-chat/create-fluxy-chat my-app --full -y")}
918
918
  ${pc.cyan("npx create-fluxy-chat my-chat --minimal")}
919
919
  ${pc.cyan("npx create-fluxy-chat my-hr-bot --template hr-feedback")}
920
920
  ${pc.cyan("npx create-fluxy-chat my-chat --template react")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluxy-chat/create-fluxy-chat",
3
- "version": "0.5.0",
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",
package/readme.md CHANGED
@@ -6,7 +6,7 @@ Scaffold a new [FluxyChat](https://github.com/AlessandroFare/fluxychat) bot proj
6
6
 
7
7
  ```bash
8
8
  # Full stack — chat + @assistant + setup scripts (recommended)
9
- npx create-fluxy-chat my-app --full -y
9
+ npx @fluxy-chat/create-fluxy-chat my-app --full -y
10
10
  cd my-app && pnpm setup && pnpm dev
11
11
 
12
12
  # Minimal chat widget
@@ -7,7 +7,7 @@ Chat + AI agent + tool calls in one Vite app. Provisions against a local FluxyCh
7
7
  **Hosted (no wrangler):**
8
8
 
9
9
  ```bash
10
- npx create-fluxy-chat my-app --mode hosted -y
10
+ npx @fluxy-chat/create-fluxy-chat my-app --mode hosted -y
11
11
  cd my-app
12
12
  pnpm install
13
13
  pnpm setup:hosted
@@ -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
  }