@newheap/platform-ai-chat 0.14.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 +27 -0
- package/admin/index.d.ts +665 -77
- package/agent-runs/index.d.ts +450 -17
- package/fesm2022/newheap-platform-ai-chat-admin.mjs +3417 -361
- 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 +4023 -777
- package/fesm2022/newheap-platform-ai-chat-testing.mjs.map +1 -1
- package/fesm2022/newheap-platform-ai-chat.mjs +3135 -541
- package/fesm2022/newheap-platform-ai-chat.mjs.map +1 -1
- package/i18n/en.json +741 -28
- package/i18n/nl.json +741 -28
- package/index.d.ts +1293 -20
- package/package.json +1 -1
- package/testing/index.d.ts +379 -22
package/README.md
CHANGED
|
@@ -288,6 +288,33 @@ custom layouts. Opened in the panel, the thread offers its proposals to the same
|
|
|
288
288
|
**Decided by** shows the name from the subject's member snapshot (`decidedByDisplayName`)
|
|
289
289
|
and falls back to the actor id.
|
|
290
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
|
+
|
|
291
318
|
With live updates the inbox, the thread view and its tabs reload by themselves when the hub
|
|
292
319
|
reports `AgentWorkChanged` for work they show, debounced, and after every reconnect. The
|
|
293
320
|
update names the thread, its subject (`subjectType`, `subjectId`) and whether a run, a
|