@diegoaltoworks/chatter 0.24.0 → 0.26.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 +3 -1
- package/dist/core/buckets.d.ts +74 -0
- package/dist/core/buckets.d.ts.map +1 -0
- package/dist/core/buckets.test.d.ts +10 -0
- package/dist/core/buckets.test.d.ts.map +1 -0
- package/dist/core/pipeline.d.ts +12 -1
- package/dist/core/pipeline.d.ts.map +1 -1
- package/dist/core/retrieval.d.ts +12 -2
- package/dist/core/retrieval.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +80 -13
- package/dist/index.mjs +77 -13
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +47 -3
- package/dist/mcp-server.mjs +47 -3
- package/dist/middleware/jwt.d.ts +10 -0
- package/dist/middleware/jwt.d.ts.map +1 -1
- package/dist/routes/demo.d.ts.map +1 -1
- package/dist/routes/openai.d.ts.map +1 -1
- package/dist/routes/private.d.ts.map +1 -1
- package/dist/routes/public.d.ts.map +1 -1
- package/dist/types.d.ts +16 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/usage/index.d.ts +14 -0
- package/dist/usage/index.d.ts.map +1 -0
- package/dist/usage/index.js +116 -0
- package/dist/usage/index.mjs +85 -0
- package/dist/usage/limits.d.ts +87 -0
- package/dist/usage/limits.d.ts.map +1 -0
- package/dist/usage/limits.test.d.ts +10 -0
- package/dist/usage/limits.test.d.ts.map +1 -0
- package/dist/usage/tursoStore.d.ts +25 -0
- package/dist/usage/tursoStore.d.ts.map +1 -0
- package/dist/usage/tursoStore.test.d.ts +9 -0
- package/dist/usage/tursoStore.test.d.ts.map +1 -0
- package/package.json +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diegoaltoworks/chatter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.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",
|
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
"types": "./dist/mcp-server.d.ts",
|
|
29
29
|
"import": "./dist/mcp-server.mjs",
|
|
30
30
|
"require": "./dist/mcp-server.js"
|
|
31
|
+
},
|
|
32
|
+
"./usage": {
|
|
33
|
+
"types": "./dist/usage/index.d.ts",
|
|
34
|
+
"import": "./dist/usage/index.mjs",
|
|
35
|
+
"require": "./dist/usage/index.js"
|
|
31
36
|
}
|
|
32
37
|
},
|
|
33
38
|
"files": [
|
|
@@ -37,12 +42,13 @@
|
|
|
37
42
|
],
|
|
38
43
|
"scripts": {
|
|
39
44
|
"dev": "bun --watch src/index.ts",
|
|
40
|
-
"build": "bun run build:clean && bun run build:types && bun run build:esm && bun run build:cjs && bun run build:mcp && bun run build:bin && bun run build:client && bun run build:copy-client",
|
|
45
|
+
"build": "bun run build:clean && bun run build:types && bun run build:esm && bun run build:cjs && bun run build:mcp && bun run build:usage && bun run build:bin && bun run build:client && bun run build:copy-client",
|
|
41
46
|
"build:clean": "rm -rf dist",
|
|
42
47
|
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
43
48
|
"build:esm": "esbuild src/index.ts --bundle --format=esm --outfile=dist/index.mjs --external:hono --external:openai --external:@libsql/client --external:jose --platform=node --target=node24",
|
|
44
49
|
"build:cjs": "esbuild src/index.ts --bundle --format=cjs --outfile=dist/index.js --external:hono --external:openai --external:@libsql/client --external:jose --platform=node --target=node24",
|
|
45
50
|
"build:mcp": "esbuild src/mcp-server.ts --bundle --format=esm --outfile=dist/mcp-server.mjs --external:@modelcontextprotocol/sdk --external:openai --external:@libsql/client --external:zod --platform=node --target=node24 && esbuild src/mcp-server.ts --bundle --format=cjs --outfile=dist/mcp-server.js --external:@modelcontextprotocol/sdk --external:openai --external:@libsql/client --external:zod --platform=node --target=node24",
|
|
51
|
+
"build:usage": "esbuild src/usage/index.ts --bundle --format=esm --outfile=dist/usage/index.mjs --external:@libsql/client --platform=node --target=node24 && esbuild src/usage/index.ts --bundle --format=cjs --outfile=dist/usage/index.js --external:@libsql/client --platform=node --target=node24",
|
|
46
52
|
"build:bin": "esbuild bin/create-apikey.ts --bundle --format=cjs --outfile=dist/bin/create-apikey.js --external:jose --platform=node --target=node18 --banner:js='#!/usr/bin/env node'",
|
|
47
53
|
"build:client": "cd src/client && bun run build",
|
|
48
54
|
"build:copy-client": "mkdir -p dist/static && cp src/client/dist/chatter.js src/client/dist/chatter.css dist/static/",
|