@chatsystem/client 1.3.3 → 2.0.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 +20 -0
- package/dist/index.cjs +49 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4074 -4041
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -158,3 +158,23 @@ programmatic browser API so the provider functions remain JavaScript values:
|
|
|
158
158
|
|
|
159
159
|
This passes the provider to the same internal `App` and identity session used
|
|
160
160
|
by the npm package. Do not place callbacks or secrets in `data-*` attributes.
|
|
161
|
+
|
|
162
|
+
## Completed AI answers per discussion
|
|
163
|
+
|
|
164
|
+
The API controls the discussion allowance through
|
|
165
|
+
`CompanySettingsDTO.api.settings.maxAiResponsesPerDiscussion`. Only completed,
|
|
166
|
+
persisted final AI answers consume it; user messages, Tool exchanges,
|
|
167
|
+
intermediate text and human support do not. This is not a context/token limit.
|
|
168
|
+
The widget disables AI input at the limit and offers a new conversation.
|
|
169
|
+
|
|
170
|
+
Shared chatbox/launcher views use the same absolute completion count. Validated
|
|
171
|
+
`ai.response.completed` receipts are discussion-scoped, replay-safe and retained
|
|
172
|
+
in local conversation history. Server admission remains authoritative if that
|
|
173
|
+
history or a receipt is missing. A busy discussion is not quota exhaustion.
|
|
174
|
+
|
|
175
|
+
This migration requires shared 2.0.0 and a compatible API; upgrade pinned widgets
|
|
176
|
+
explicitly. No React prop, script data attribute or `mount()` option changes.
|
|
177
|
+
Publish the npm component and standalone S3 bundle independently. Custom runtime
|
|
178
|
+
adapters must return the new required settings field, expose `discussionId` and
|
|
179
|
+
forward completion events through their existing NDJSON stream; `message_end`
|
|
180
|
+
alone does not prove durable completion.
|