@diegoaltoworks/chatter 0.44.0 → 0.47.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.
Files changed (153) hide show
  1. package/README.md +16 -1
  2. package/dist/client/index.js +615 -0
  3. package/dist/client/index.mjs +592 -0
  4. package/dist/core/serve-static.d.ts +38 -0
  5. package/dist/core/serve-static.d.ts.map +1 -0
  6. package/dist/core/session.d.ts +1 -0
  7. package/dist/core/session.d.ts.map +1 -1
  8. package/dist/index.js +88 -49
  9. package/dist/index.mjs +70 -37
  10. package/dist/server.d.ts.map +1 -1
  11. package/dist/server.js +1564 -0
  12. package/dist/server.mjs +1528 -0
  13. package/package.json +19 -9
  14. package/dist/auth/apikeys.test.d.ts +0 -2
  15. package/dist/auth/apikeys.test.d.ts.map +0 -1
  16. package/dist/channels/gates.test.d.ts +0 -2
  17. package/dist/channels/gates.test.d.ts.map +0 -1
  18. package/dist/channels/senders.test.d.ts +0 -2
  19. package/dist/channels/senders.test.d.ts.map +0 -1
  20. package/dist/channels/whatsapp/authState.test.d.ts +0 -2
  21. package/dist/channels/whatsapp/authState.test.d.ts.map +0 -1
  22. package/dist/channels/whatsapp/baileys.test.d.ts +0 -2
  23. package/dist/channels/whatsapp/baileys.test.d.ts.map +0 -1
  24. package/dist/channels/whatsapp/channel.test.d.ts +0 -2
  25. package/dist/channels/whatsapp/channel.test.d.ts.map +0 -1
  26. package/dist/channels/whatsapp/crypto.test.d.ts +0 -2
  27. package/dist/channels/whatsapp/crypto.test.d.ts.map +0 -1
  28. package/dist/channels/whatsapp/images.test.d.ts +0 -2
  29. package/dist/channels/whatsapp/images.test.d.ts.map +0 -1
  30. package/dist/channels/whatsapp/inbound.test.d.ts +0 -2
  31. package/dist/channels/whatsapp/inbound.test.d.ts.map +0 -1
  32. package/dist/channels/whatsapp/lease.test.d.ts +0 -2
  33. package/dist/channels/whatsapp/lease.test.d.ts.map +0 -1
  34. package/dist/channels/whatsapp/pairing.test.d.ts +0 -2
  35. package/dist/channels/whatsapp/pairing.test.d.ts.map +0 -1
  36. package/dist/channels/whatsapp/qr.test.d.ts +0 -2
  37. package/dist/channels/whatsapp/qr.test.d.ts.map +0 -1
  38. package/dist/client/__tests__/markdown.test.d.ts +0 -5
  39. package/dist/client/__tests__/markdown.test.d.ts.map +0 -1
  40. package/dist/client/__tests__/mobile-chat.test.d.ts +0 -6
  41. package/dist/client/__tests__/mobile-chat.test.d.ts.map +0 -1
  42. package/dist/client/examples/node.d.ts +0 -5
  43. package/dist/client/examples/node.d.ts.map +0 -1
  44. package/dist/core/answer.test.d.ts +0 -8
  45. package/dist/core/answer.test.d.ts.map +0 -1
  46. package/dist/core/buckets.test.d.ts +0 -10
  47. package/dist/core/buckets.test.d.ts.map +0 -1
  48. package/dist/core/guardrails.test.d.ts +0 -2
  49. package/dist/core/guardrails.test.d.ts.map +0 -1
  50. package/dist/core/loaders.test.d.ts +0 -2
  51. package/dist/core/loaders.test.d.ts.map +0 -1
  52. package/dist/core/messages.test.d.ts +0 -8
  53. package/dist/core/messages.test.d.ts.map +0 -1
  54. package/dist/core/pipeline.test.d.ts +0 -8
  55. package/dist/core/pipeline.test.d.ts.map +0 -1
  56. package/dist/core/prompts.test.d.ts +0 -2
  57. package/dist/core/prompts.test.d.ts.map +0 -1
  58. package/dist/core/retrieval.test.d.ts +0 -8
  59. package/dist/core/retrieval.test.d.ts.map +0 -1
  60. package/dist/core/session.test.d.ts +0 -2
  61. package/dist/core/session.test.d.ts.map +0 -1
  62. package/dist/core/widgets.test.d.ts +0 -2
  63. package/dist/core/widgets.test.d.ts.map +0 -1
  64. package/dist/flows/__fixtures__/broken/handler.d.ts +0 -3
  65. package/dist/flows/__fixtures__/broken/handler.d.ts.map +0 -1
  66. package/dist/flows/__fixtures__/greeting/handler.d.ts +0 -3
  67. package/dist/flows/__fixtures__/greeting/handler.d.ts.map +0 -1
  68. package/dist/flows/__fixtures__/greeting/prefill.d.ts +0 -3
  69. package/dist/flows/__fixtures__/greeting/prefill.d.ts.map +0 -1
  70. package/dist/flows/engine.test.d.ts +0 -9
  71. package/dist/flows/engine.test.d.ts.map +0 -1
  72. package/dist/flows/intent.test.d.ts +0 -6
  73. package/dist/flows/intent.test.d.ts.map +0 -1
  74. package/dist/flows/loader.test.d.ts +0 -8
  75. package/dist/flows/loader.test.d.ts.map +0 -1
  76. package/dist/flows/params.test.d.ts +0 -2
  77. package/dist/flows/params.test.d.ts.map +0 -1
  78. package/dist/flows/registry.test.d.ts +0 -2
  79. package/dist/flows/registry.test.d.ts.map +0 -1
  80. package/dist/flows/session.test.d.ts +0 -7
  81. package/dist/flows/session.test.d.ts.map +0 -1
  82. package/dist/flows/utils.test.d.ts +0 -2
  83. package/dist/flows/utils.test.d.ts.map +0 -1
  84. package/dist/images/cache.test.d.ts +0 -2
  85. package/dist/images/cache.test.d.ts.map +0 -1
  86. package/dist/images/cacheStore.test.d.ts +0 -8
  87. package/dist/images/cacheStore.test.d.ts.map +0 -1
  88. package/dist/images/captionComposer.test.d.ts +0 -2
  89. package/dist/images/captionComposer.test.d.ts.map +0 -1
  90. package/dist/images/cloudinaryClient.test.d.ts +0 -2
  91. package/dist/images/cloudinaryClient.test.d.ts.map +0 -1
  92. package/dist/images/cloudinaryConfig.test.d.ts +0 -2
  93. package/dist/images/cloudinaryConfig.test.d.ts.map +0 -1
  94. package/dist/images/cloudinarySignature.test.d.ts +0 -2
  95. package/dist/images/cloudinarySignature.test.d.ts.map +0 -1
  96. package/dist/images/config.test.d.ts +0 -2
  97. package/dist/images/config.test.d.ts.map +0 -1
  98. package/dist/images/generator.test.d.ts +0 -2
  99. package/dist/images/generator.test.d.ts.map +0 -1
  100. package/dist/images/openaiClient.test.d.ts +0 -2
  101. package/dist/images/openaiClient.test.d.ts.map +0 -1
  102. package/dist/images/uploader.test.d.ts +0 -2
  103. package/dist/images/uploader.test.d.ts.map +0 -1
  104. package/dist/mcp-server/conversation-id.test.d.ts +0 -2
  105. package/dist/mcp-server/conversation-id.test.d.ts.map +0 -1
  106. package/dist/mcp-server/cost-tracker.test.d.ts +0 -2
  107. package/dist/mcp-server/cost-tracker.test.d.ts.map +0 -1
  108. package/dist/mcp-server/logger.test.d.ts +0 -2
  109. package/dist/mcp-server/logger.test.d.ts.map +0 -1
  110. package/dist/mcp-server/rate-limiter.test.d.ts +0 -2
  111. package/dist/mcp-server/rate-limiter.test.d.ts.map +0 -1
  112. package/dist/middleware/auth.test.d.ts +0 -2
  113. package/dist/middleware/auth.test.d.ts.map +0 -1
  114. package/dist/middleware/cors.test.d.ts +0 -2
  115. package/dist/middleware/cors.test.d.ts.map +0 -1
  116. package/dist/middleware/jwt.test.d.ts +0 -2
  117. package/dist/middleware/jwt.test.d.ts.map +0 -1
  118. package/dist/middleware/ratelimit.test.d.ts +0 -2
  119. package/dist/middleware/ratelimit.test.d.ts.map +0 -1
  120. package/dist/middleware/referrer.test.d.ts +0 -2
  121. package/dist/middleware/referrer.test.d.ts.map +0 -1
  122. package/dist/middleware/session.test.d.ts +0 -2
  123. package/dist/middleware/session.test.d.ts.map +0 -1
  124. package/dist/personas/greeter.test.d.ts +0 -2
  125. package/dist/personas/greeter.test.d.ts.map +0 -1
  126. package/dist/personas/resolver.test.d.ts +0 -2
  127. package/dist/personas/resolver.test.d.ts.map +0 -1
  128. package/dist/personas/timeContext.test.d.ts +0 -2
  129. package/dist/personas/timeContext.test.d.ts.map +0 -1
  130. package/dist/routes/chat.test.d.ts +0 -9
  131. package/dist/routes/chat.test.d.ts.map +0 -1
  132. package/dist/routes/openai.test.d.ts +0 -8
  133. package/dist/routes/openai.test.d.ts.map +0 -1
  134. package/dist/scheduler/claimStore.test.d.ts +0 -2
  135. package/dist/scheduler/claimStore.test.d.ts.map +0 -1
  136. package/dist/scheduler/compose.test.d.ts +0 -2
  137. package/dist/scheduler/compose.test.d.ts.map +0 -1
  138. package/dist/scheduler/deliver.test.d.ts +0 -2
  139. package/dist/scheduler/deliver.test.d.ts.map +0 -1
  140. package/dist/scheduler/dueDrops.test.d.ts +0 -2
  141. package/dist/scheduler/dueDrops.test.d.ts.map +0 -1
  142. package/dist/scheduler/scheduler.test.d.ts +0 -2
  143. package/dist/scheduler/scheduler.test.d.ts.map +0 -1
  144. package/dist/scheduler/tick.test.d.ts +0 -2
  145. package/dist/scheduler/tick.test.d.ts.map +0 -1
  146. package/dist/server.test.d.ts +0 -9
  147. package/dist/server.test.d.ts.map +0 -1
  148. package/dist/shortener.test.d.ts +0 -2
  149. package/dist/shortener.test.d.ts.map +0 -1
  150. package/dist/usage/limits.test.d.ts +0 -10
  151. package/dist/usage/limits.test.d.ts.map +0 -1
  152. package/dist/usage/tursoStore.test.d.ts +0 -9
  153. package/dist/usage/tursoStore.test.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diegoaltoworks/chatter",
3
- "version": "0.44.0",
3
+ "version": "0.47.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",
@@ -64,7 +64,9 @@
64
64
  "types": "./dist/scheduler/index.d.ts",
65
65
  "import": "./dist/scheduler/index.mjs",
66
66
  "require": "./dist/scheduler/index.js"
67
- }
67
+ },
68
+ "./client/style.css": "./dist/static/chatter.css",
69
+ "./package.json": "./package.json"
68
70
  },
69
71
  "files": [
70
72
  "dist",
@@ -73,11 +75,12 @@
73
75
  ],
74
76
  "scripts": {
75
77
  "dev": "bun --watch src/index.ts",
76
- "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:personas && bun run build:channels && bun run build:whatsapp && bun run build:flows && bun run build:images && bun run build:scheduler && bun run build:bin && bun run build:client && bun run build:copy-client",
78
+ "build": "bun run build:clean && bun run build:types && bun run build:esm && bun run build:cjs && bun run build:server && bun run build:mcp && bun run build:usage && bun run build:personas && bun run build:channels && bun run build:whatsapp && bun run build:flows && bun run build:images && bun run build:scheduler && bun run build:bin && bun run build:client && bun run build:copy-client",
77
79
  "build:clean": "rm -rf dist",
78
- "build:types": "tsc --emitDeclarationOnly --outDir dist",
79
- "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",
80
- "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",
80
+ "build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly --outDir dist",
81
+ "build:esm": "esbuild src/index.ts --bundle --format=esm --outfile=dist/index.mjs --external:@hono/node-server --external:hono --external:openai --external:@libsql/client --external:jose --platform=node --target=node24",
82
+ "build:cjs": "esbuild src/index.ts --bundle --format=cjs --outfile=dist/index.js --external:@hono/node-server --external:hono --external:openai --external:@libsql/client --external:jose --platform=node --target=node24",
83
+ "build:server": "esbuild src/server.ts --bundle --format=esm --outfile=dist/server.mjs --external:@hono/node-server --external:hono --external:openai --external:@libsql/client --external:jose --platform=node --target=node24 && esbuild src/server.ts --bundle --format=cjs --outfile=dist/server.js --external:@hono/node-server --external:hono --external:openai --external:@libsql/client --external:jose --platform=node --target=node24",
81
84
  "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",
82
85
  "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",
83
86
  "build:personas": "esbuild src/personas/index.ts --bundle --format=esm --outfile=dist/personas/index.mjs --platform=node --target=node24 && esbuild src/personas/index.ts --bundle --format=cjs --outfile=dist/personas/index.js --platform=node --target=node24",
@@ -88,10 +91,12 @@
88
91
  "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",
89
92
  "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' && 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=node18 --banner:js='#!/usr/bin/env node'",
90
93
  "build:client": "cd src/client && bun run build",
91
- "build:copy-client": "mkdir -p dist/static && cp src/client/dist/chatter.js src/client/dist/chatter.css dist/static/",
94
+ "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/",
92
95
  "test": "bun test",
93
96
  "test:unit": "bun test src/**/*.test.ts",
94
97
  "test:integration": "bun test test/integration/**/*.test.ts",
98
+ "test:pack": "bun scripts/verify-pack.ts",
99
+ "test:node": "node scripts/verify-node.mjs",
95
100
  "test:watch": "bun test --watch",
96
101
  "test:coverage": "bun test --coverage",
97
102
  "typecheck": "tsc --noEmit",
@@ -135,9 +140,11 @@
135
140
  },
136
141
  "homepage": "https://github.com/diegoaltoworks/chatter#readme",
137
142
  "engines": {
138
- "node": ">=24.0.0"
143
+ "node": ">=24.0.0",
144
+ "bun": ">=1.2.0"
139
145
  },
140
146
  "peerDependencies": {
147
+ "@hono/node-server": "^2.0.5",
141
148
  "@libsql/client": "^0.17.2",
142
149
  "@modelcontextprotocol/sdk": "^1.30.0",
143
150
  "@whiskeysockets/baileys": "^7.0.0-rc14",
@@ -147,6 +154,9 @@
147
154
  "zod": "^3.25.76 || ^4.4.3"
148
155
  },
149
156
  "peerDependenciesMeta": {
157
+ "@hono/node-server": {
158
+ "optional": true
159
+ },
150
160
  "@whiskeysockets/baileys": {
151
161
  "optional": true
152
162
  },
@@ -159,6 +169,7 @@
159
169
  },
160
170
  "devDependencies": {
161
171
  "@biomejs/biome": "2.5.7",
172
+ "@hono/node-server": "2.0.12",
162
173
  "@libsql/client": "0.17.4",
163
174
  "@modelcontextprotocol/sdk": "1.30.0",
164
175
  "@types/bun": "1.3.14",
@@ -184,7 +195,6 @@
184
195
  "overrides": {
185
196
  "qs": "^6.15.3",
186
197
  "ws": "^8.21.1",
187
- "@hono/node-server": "^2.0.5",
188
198
  "fast-uri": "^3.1.3",
189
199
  "ip-address": "^10.4.0"
190
200
  }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=apikeys.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apikeys.test.d.ts","sourceRoot":"","sources":["../../src/auth/apikeys.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=gates.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gates.test.d.ts","sourceRoot":"","sources":["../../src/channels/gates.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=senders.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"senders.test.d.ts","sourceRoot":"","sources":["../../src/channels/senders.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=authState.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"authState.test.d.ts","sourceRoot":"","sources":["../../../src/channels/whatsapp/authState.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=baileys.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"baileys.test.d.ts","sourceRoot":"","sources":["../../../src/channels/whatsapp/baileys.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=channel.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"channel.test.d.ts","sourceRoot":"","sources":["../../../src/channels/whatsapp/channel.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=crypto.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"crypto.test.d.ts","sourceRoot":"","sources":["../../../src/channels/whatsapp/crypto.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=images.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"images.test.d.ts","sourceRoot":"","sources":["../../../src/channels/whatsapp/images.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=inbound.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inbound.test.d.ts","sourceRoot":"","sources":["../../../src/channels/whatsapp/inbound.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=lease.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lease.test.d.ts","sourceRoot":"","sources":["../../../src/channels/whatsapp/lease.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=pairing.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pairing.test.d.ts","sourceRoot":"","sources":["../../../src/channels/whatsapp/pairing.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=qr.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"qr.test.d.ts","sourceRoot":"","sources":["../../../src/channels/whatsapp/qr.test.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- /**
2
- * Markdown renderer tests
3
- */
4
- export {};
5
- //# sourceMappingURL=markdown.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown.test.d.ts","sourceRoot":"","sources":["../../../src/client/__tests__/markdown.test.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Mobile Chat Widget Tests
3
- * Tests mobile-specific behavior including viewport handling, input focus, and touch interactions
4
- */
5
- export {};
6
- //# sourceMappingURL=mobile-chat.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mobile-chat.test.d.ts","sourceRoot":"","sources":["../../../src/client/__tests__/mobile-chat.test.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Node.js example for @diegoaltoworks/chatter
3
- */
4
- export {};
5
- //# sourceMappingURL=node.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/client/examples/node.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Brain hook tests
3
- *
4
- * Uses a faked OpenAI client so both the built-in completion path and the
5
- * `answerFn` path can be asserted without touching OpenAI.
6
- */
7
- export {};
8
- //# sourceMappingURL=answer.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"answer.test.d.ts","sourceRoot":"","sources":["../../src/core/answer.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -1,10 +0,0 @@
1
- /**
2
- * Retrieval bucket resolution tests.
3
- *
4
- * The security invariant — a hook can never widen retrieval for a caller the
5
- * surface could not name, which on the public pipeline means private
6
- * knowledge stays unreachable — is asserted here rather than per-route,
7
- * because this is the single place that enforces it.
8
- */
9
- export {};
10
- //# sourceMappingURL=buckets.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buckets.test.d.ts","sourceRoot":"","sources":["../../src/core/buckets.test.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=guardrails.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"guardrails.test.d.ts","sourceRoot":"","sources":["../../src/core/guardrails.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=loaders.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loaders.test.d.ts","sourceRoot":"","sources":["../../src/core/loaders.test.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- /**
2
- * Inbound message normalization tests.
3
- *
4
- * The invariant under test is that a client cannot contribute a system turn
5
- * and cannot smuggle non-text content into the conversation.
6
- */
7
- export {};
8
- //# sourceMappingURL=messages.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages.test.d.ts","sourceRoot":"","sources":["../../src/core/messages.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Chat pipeline tests
3
- *
4
- * Uses faked prompts and vector store so prompt assembly can be asserted
5
- * without touching OpenAI or Turso.
6
- */
7
- export {};
8
- //# sourceMappingURL=pipeline.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipeline.test.d.ts","sourceRoot":"","sources":["../../src/core/pipeline.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=prompts.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prompts.test.d.ts","sourceRoot":"","sources":["../../src/core/prompts.test.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- /**
2
- * Vector store connection tests
3
- *
4
- * Uses a faked libsql client and OpenAI client so the connection wiring can be
5
- * asserted without touching Turso or OpenAI.
6
- */
7
- export {};
8
- //# sourceMappingURL=retrieval.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"retrieval.test.d.ts","sourceRoot":"","sources":["../../src/core/retrieval.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=session.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"session.test.d.ts","sourceRoot":"","sources":["../../src/core/session.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=widgets.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"widgets.test.d.ts","sourceRoot":"","sources":["../../src/core/widgets.test.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import type { FlowHandler } from "../../types";
2
- export declare const execute: FlowHandler;
3
- //# sourceMappingURL=handler.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/flows/__fixtures__/broken/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,eAAO,MAAM,OAAO,EAAE,WAErB,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { FlowHandler } from "../../types";
2
- export declare const execute: FlowHandler;
3
- //# sourceMappingURL=handler.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/flows/__fixtures__/greeting/handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,eAAO,MAAM,OAAO,EAAE,WAMrB,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { FlowPrefill } from "../../types";
2
- export declare const prefillFromContext: FlowPrefill;
3
- //# sourceMappingURL=prefill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prefill.d.ts","sourceRoot":"","sources":["../../../../src/flows/__fixtures__/greeting/prefill.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,eAAO,MAAM,kBAAkB,EAAE,WAEhC,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Flow engine tests — the full processFlow-equivalent lifecycle: triggering,
3
- * multi-turn param collection, completion, cancellation and error handling.
4
- * Uses a faked OpenAI client (never a real API call) and an in-memory
5
- * FlowSessionStore standing in for the Turso-backed one, which has its own
6
- * dedicated tests in session.test.ts.
7
- */
8
- export {};
9
- //# sourceMappingURL=engine.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"engine.test.d.ts","sourceRoot":"","sources":["../../src/flows/engine.test.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Intent detection tests — a faked OpenAI client (see src/routes/openai.test.ts
3
- * for the same pattern), never a real API call.
4
- */
5
- export {};
6
- //# sourceMappingURL=intent.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"intent.test.d.ts","sourceRoot":"","sources":["../../src/flows/intent.test.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Loader tests — verifies flow directories load per the reference
3
- * implementation's on-disk contract (flow.json/handler.ts/instructions.md,
4
- * optional prefill.ts), and that a malformed directory is skipped rather
5
- * than failing the whole load.
6
- */
7
- export {};
8
- //# sourceMappingURL=loader.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loader.test.d.ts","sourceRoot":"","sources":["../../src/flows/loader.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=params.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"params.test.d.ts","sourceRoot":"","sources":["../../src/flows/params.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=registry.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registry.test.d.ts","sourceRoot":"","sources":["../../src/flows/registry.test.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- /**
2
- * Turso flow session store tests — run against a real in-memory libsql
3
- * client, since what's worth proving here is the SQL: upsert-on-conflict
4
- * behaves as an upsert, and table creation is idempotent.
5
- */
6
- export {};
7
- //# sourceMappingURL=session.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"session.test.d.ts","sourceRoot":"","sources":["../../src/flows/session.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=utils.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../src/flows/utils.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=cache.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cache.test.d.ts","sourceRoot":"","sources":["../../src/images/cache.test.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- /**
2
- * Turso image cache store tests.
3
- *
4
- * Run against a real in-memory libsql client, same rationale as
5
- * `../usage/tursoStore.test.ts`: the properties worth proving are SQL-level.
6
- */
7
- export {};
8
- //# sourceMappingURL=cacheStore.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cacheStore.test.d.ts","sourceRoot":"","sources":["../../src/images/cacheStore.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=captionComposer.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"captionComposer.test.d.ts","sourceRoot":"","sources":["../../src/images/captionComposer.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=cloudinaryClient.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cloudinaryClient.test.d.ts","sourceRoot":"","sources":["../../src/images/cloudinaryClient.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=cloudinaryConfig.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cloudinaryConfig.test.d.ts","sourceRoot":"","sources":["../../src/images/cloudinaryConfig.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=cloudinarySignature.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cloudinarySignature.test.d.ts","sourceRoot":"","sources":["../../src/images/cloudinarySignature.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=config.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.test.d.ts","sourceRoot":"","sources":["../../src/images/config.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=generator.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generator.test.d.ts","sourceRoot":"","sources":["../../src/images/generator.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=openaiClient.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"openaiClient.test.d.ts","sourceRoot":"","sources":["../../src/images/openaiClient.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=uploader.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uploader.test.d.ts","sourceRoot":"","sources":["../../src/images/uploader.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=conversation-id.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"conversation-id.test.d.ts","sourceRoot":"","sources":["../../src/mcp-server/conversation-id.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=cost-tracker.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cost-tracker.test.d.ts","sourceRoot":"","sources":["../../src/mcp-server/cost-tracker.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=logger.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.test.d.ts","sourceRoot":"","sources":["../../src/mcp-server/logger.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=rate-limiter.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rate-limiter.test.d.ts","sourceRoot":"","sources":["../../src/mcp-server/rate-limiter.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=auth.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.test.d.ts","sourceRoot":"","sources":["../../src/middleware/auth.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=cors.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cors.test.d.ts","sourceRoot":"","sources":["../../src/middleware/cors.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=jwt.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jwt.test.d.ts","sourceRoot":"","sources":["../../src/middleware/jwt.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ratelimit.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ratelimit.test.d.ts","sourceRoot":"","sources":["../../src/middleware/ratelimit.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=referrer.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"referrer.test.d.ts","sourceRoot":"","sources":["../../src/middleware/referrer.test.ts"],"names":[],"mappings":""}