@newheap/platform-ai-chat 0.13.0 → 0.15.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 +32 -0
- package/admin/index.d.ts +762 -14
- package/agent-runs/index.d.ts +450 -17
- package/fesm2022/newheap-platform-ai-chat-admin.mjs +3634 -125
- package/fesm2022/newheap-platform-ai-chat-admin.mjs.map +1 -1
- package/fesm2022/newheap-platform-ai-chat-agent-runs.mjs +1288 -61
- package/fesm2022/newheap-platform-ai-chat-agent-runs.mjs.map +1 -1
- package/fesm2022/newheap-platform-ai-chat-testing.mjs +4394 -586
- package/fesm2022/newheap-platform-ai-chat-testing.mjs.map +1 -1
- package/fesm2022/newheap-platform-ai-chat.mjs +3754 -674
- package/fesm2022/newheap-platform-ai-chat.mjs.map +1 -1
- package/i18n/en.json +919 -20
- package/i18n/nl.json +919 -20
- package/index.d.ts +1623 -20
- package/package.json +1 -1
- package/testing/index.d.ts +389 -20
package/README.md
CHANGED
|
@@ -125,6 +125,11 @@ conversation opens, and live only in this tab's memory. They clear on account ch
|
|
|
125
125
|
loss of access, deletion or leaving a conversation. Standalone composers preserve their
|
|
126
126
|
default behavior; opt into the extra send button with `[queueWhileBusy]="true"` and
|
|
127
127
|
connect it to `NhAssistantStore.submit` using `canSubmit`.
|
|
128
|
+
A failed turn leaves the conversation open, as on the server: the error bar keeps the
|
|
129
|
+
translated failure and the next message starts a new turn in the same conversation or agent
|
|
130
|
+
thread. While nothing is queued, that message is sent directly even with the error bar shown.
|
|
131
|
+
A reopened conversation whose last turn failed says that the last answer could not be
|
|
132
|
+
completed. Only an archived conversation is closed for new messages.
|
|
128
133
|
Explicit send returns focus to the
|
|
129
134
|
editor. Automatic focus restoration happens only when a disappearing composer control
|
|
130
135
|
owned focus, never after the user chose another control, and is skipped for coarse
|
|
@@ -283,6 +288,33 @@ custom layouts. Opened in the panel, the thread offers its proposals to the same
|
|
|
283
288
|
**Decided by** shows the name from the subject's member snapshot (`decidedByDisplayName`)
|
|
284
289
|
and falls back to the actor id.
|
|
285
290
|
|
|
291
|
+
Subjects show the name of their type (`subjectTypeName`, such as "Project") and link to where
|
|
292
|
+
the application shows them (`subjectLink`, from the server's `AddSubjectType(...).OpenAt(...)`).
|
|
293
|
+
A link within the application navigates through the router; an `https` link leaves it. Replace
|
|
294
|
+
the server's link per subject type when the host's routes differ:
|
|
295
|
+
|
|
296
|
+
```ts
|
|
297
|
+
provideNhAssistant({
|
|
298
|
+
apiBaseUrl: environment.api.baseUrl + '/assistant',
|
|
299
|
+
getAccessToken: () => inject(AuthService).token(),
|
|
300
|
+
// Router commands or a URL; null shows no link, undefined keeps the server's link.
|
|
301
|
+
subjectLinks: { project: subject => ['/projects', subject.id] }
|
|
302
|
+
});
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
`NhAssistantAgentRunApiService.searchSubjects(type, query, limit?)` finds the subjects of a type
|
|
306
|
+
that the caller may read by name; the run catalog's `subjectTypes` say which types can be searched.
|
|
307
|
+
|
|
308
|
+
The administration's agent editor asks what an agent created there works on: all objects or chosen
|
|
309
|
+
kinds of objects by name, the whole application, per division when the run catalog reports
|
|
310
|
+
`divisions`, and the run and view policy from the catalog's `agentPolicies`. Agent cards show what
|
|
311
|
+
every agent works on; an agent in code shows its code setting.
|
|
312
|
+
|
|
313
|
+
The trigger form and the guided setup let a schedule of an agent that works on the whole application
|
|
314
|
+
run for the whole application instead of a set of objects (sent as `subjectSet: null`; once per
|
|
315
|
+
division for an agent that works per division); the trigger list names it, and subject links name the
|
|
316
|
+
whole application (`nh-system`, `isSystem` in the run catalog) once.
|
|
317
|
+
|
|
286
318
|
With live updates the inbox, the thread view and its tabs reload by themselves when the hub
|
|
287
319
|
reports `AgentWorkChanged` for work they show, debounced, and after every reconnect. The
|
|
288
320
|
update names the thread, its subject (`subjectType`, `subjectId`) and whether a run, a
|