@diegoaltoworks/chatter 0.48.0 → 0.49.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 +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -64,8 +64,10 @@ and CI loads the built bundles under each). Two things differ:
|
|
|
64
64
|
`serve({ port: 8181, fetch: app.fetch })` from [`@hono/node-server`](https://github.com/honojs/node-server) on Node.
|
|
65
65
|
- **Static assets** — serving the widget files (`/chatter.js`, `/chatter.css`)
|
|
66
66
|
and a `publicDir` needs a runtime adapter, picked automatically. On Node that
|
|
67
|
-
adapter is `@hono/node-server`, an optional peer dependency:
|
|
68
|
-
|
|
67
|
+
adapter is `@hono/node-server`, an optional peer dependency: without it,
|
|
68
|
+
`/chatter.js` and `/chatter.css` 404 and the server logs an actionable
|
|
69
|
+
error naming the missing package. Install it, or run with
|
|
70
|
+
`features: { headless: true }` if the server should serve no files.
|
|
69
71
|
|
|
70
72
|
Everything else — the chat pipeline, RAG, channels, the OpenAI-compatible API —
|
|
71
73
|
is runtime-neutral. Development and the quality gates run on Bun.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diegoaltoworks/chatter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"description": "Embeddable AI chatbot framework with RAG, authentication, and customizable widgets",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"build:flows": "esbuild src/flows/index.ts --bundle --format=esm --outfile=dist/flows/index.mjs --external:@libsql/client --external:openai --platform=node --target=node24 && esbuild src/flows/index.ts --bundle --format=cjs --outfile=dist/flows/index.js --external:@libsql/client --external:openai --platform=node --target=node24",
|
|
99
99
|
"build:images": "esbuild src/images/index.ts --bundle --format=esm --outfile=dist/images/index.mjs --external:@libsql/client --external:openai --platform=node --target=node24 && esbuild src/images/index.ts --bundle --format=cjs --outfile=dist/images/index.js --external:@libsql/client --external:openai --platform=node --target=node24",
|
|
100
100
|
"build:scheduler": "esbuild src/scheduler/index.ts --bundle --format=esm --outfile=dist/scheduler/index.mjs --external:@libsql/client --external:openai --platform=node --target=node24 && esbuild src/scheduler/index.ts --bundle --format=cjs --outfile=dist/scheduler/index.js --external:@libsql/client --external:openai --platform=node --target=node24",
|
|
101
|
-
"build:bin": "esbuild bin/create-apikey.ts --bundle --format=cjs --outfile=dist/bin/create-apikey.js --external:jose --platform=node --target=
|
|
101
|
+
"build:bin": "esbuild bin/create-apikey.ts --bundle --format=cjs --outfile=dist/bin/create-apikey.js --external:jose --platform=node --target=node24 --banner:js='#!/usr/bin/env node' && esbuild bin/wa-pair.ts --bundle --format=cjs --outfile=dist/bin/wa-pair.js --external:@libsql/client --external:@whiskeysockets/baileys --external:qrcode-terminal --platform=node --target=node24 --banner:js='#!/usr/bin/env node'",
|
|
102
102
|
"build:client": "cd src/client && bun run build",
|
|
103
103
|
"build:copy-client": "mkdir -p dist/static dist/client && cp src/client/dist/chatter.js src/client/dist/chatter.css dist/static/ && cp src/client/dist/index.mjs src/client/dist/index.js dist/client/",
|
|
104
104
|
"test": "bun test",
|