@newheap/platform-ai-chat 0.19.0 → 0.21.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 +19 -2
- package/admin/i18n/en.json +1738 -0
- package/admin/i18n/nl.json +1738 -0
- package/admin/index.d.ts +59 -7
- package/fesm2022/newheap-platform-ai-chat-admin.mjs +3729 -39
- package/fesm2022/newheap-platform-ai-chat-admin.mjs.map +1 -1
- package/fesm2022/newheap-platform-ai-chat-testing.mjs +700 -24
- package/fesm2022/newheap-platform-ai-chat-testing.mjs.map +1 -1
- package/fesm2022/newheap-platform-ai-chat.mjs +1187 -3515
- package/fesm2022/newheap-platform-ai-chat.mjs.map +1 -1
- package/i18n/en.json +49 -1714
- package/i18n/nl.json +49 -1714
- package/index.d.ts +473 -29
- package/package.json +4 -1
- package/testing/index.d.ts +59 -2
package/README.md
CHANGED
|
@@ -154,6 +154,13 @@ title, Markdown text and a link within the application or to an `https` address.
|
|
|
154
154
|
Custom layouts pass `[approvalRights]` to `nh-assistant-thread` and handle
|
|
155
155
|
`(approvalChoice)`, which carries the approval id.
|
|
156
156
|
|
|
157
|
+
A question an agent asked with `ask_question` (`run.AllowQuestions()` on the server) shows as
|
|
158
|
+
`nh-assistant-question-card`: the person it is addressed to gets a button per choice, everyone else
|
|
159
|
+
reads it with whom it waits for. The turn waits for the answer as for an approval
|
|
160
|
+
(`conversation.pendingQuestion`); the thread emits `(questionAnswer)` for the addressee and the panel
|
|
161
|
+
calls `NhAssistantStore.answerQuestion`, which streams the resumed turn. An agent message of a chat
|
|
162
|
+
with `run.SkillsInChat()` names the skill it worked in (`message.skillId`).
|
|
163
|
+
|
|
157
164
|
A tool call whose agent proposal closed without running no longer waits: it ends as
|
|
158
165
|
`rejected`, as `not-executed` when the proposal expired, was withdrawn or became stale, or as
|
|
159
166
|
`failed` when its execution failed before it started, with the result code
|
|
@@ -234,7 +241,9 @@ invitation link. Participants can view members and leave. Custom hosts using
|
|
|
234
241
|
## Administration
|
|
235
242
|
|
|
236
243
|
The administration page is a separate entry point, so it stays out of the initial
|
|
237
|
-
bundle
|
|
244
|
+
bundle, and its `nh-assistant.admin.` texts come with it: every component of
|
|
245
|
+
`@newheap/platform-ai-chat/admin` merges them when it is created, unless the assistant
|
|
246
|
+
uses `translations: 'host'`. Route to it lazily behind the host's admin permission and pass the route as
|
|
238
247
|
`adminRoute`:
|
|
239
248
|
|
|
240
249
|
```typescript
|
|
@@ -529,7 +538,15 @@ Error events are shown through their `messageKey`, then `nh-assistant.errors.<co
|
|
|
529
538
|
then a generic text. Tool result codes use `nh-assistant.result-codes.<code>` and
|
|
530
539
|
fall back to the code. With `translations: 'host'`, copy the bundles from
|
|
531
540
|
`NH_ASSISTANT_TRANSLATIONS` or from `@newheap/platform-ai-chat/i18n/en.json` and
|
|
532
|
-
`nl.json
|
|
541
|
+
`nl.json`, and the administration's `nh-assistant.admin.` texts from
|
|
542
|
+
`NH_ASSISTANT_ADMIN_TRANSLATIONS` (`@newheap/platform-ai-chat/admin`) or from
|
|
543
|
+
`@newheap/platform-ai-chat/admin/i18n/en.json` and `nl.json`.
|
|
544
|
+
|
|
545
|
+
The root entry point bundles the texts of the panel and its other components, which load
|
|
546
|
+
with the application. The administration ships its texts in its own entry point, so they
|
|
547
|
+
load with its lazy route; a host page that shows
|
|
548
|
+
`nh-assistant.admin.` keys without an administration component starts
|
|
549
|
+
`NhAssistantAdminTranslationMerger` itself.
|
|
533
550
|
|
|
534
551
|
## Mock API
|
|
535
552
|
|