@llmnative/agentico 0.26.0 → 0.27.1

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.
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { AIConnectionsProps } from '@llmnative/react';
3
3
  import type { AgenticoBackend } from '../backend/agenticoBackend';
4
+ import type { AgentExecutorModel } from '../domain/agentDefinition';
4
5
  import { type AgenticoSettingKey, type AgenticoSettings, type AgenticoSettingsStore } from '../domain/settings';
5
6
  /** What the host says about the settings (`<AgenticoProvider settings>`). */
6
7
  export interface AgenticoSettingsConfig {
@@ -10,6 +11,12 @@ export interface AgenticoSettingsConfig {
10
11
  fixed?: Partial<AgenticoSettings>;
11
12
  /** Settings not shown: they keep their saved or default value. */
12
13
  hidden?: AgenticoSettingKey[];
14
+ /**
15
+ * CR-029: the models the host offers for `defaultModel` when it keeps the AI providers on its server (their keys
16
+ * never reach the browser): `value` is the host's id of the model, `group` its provider. Given, the modal lists
17
+ * these instead of the AI catalog of the browser; the host reads `defaultModel` from its `store`.
18
+ */
19
+ models?: AgentExecutorModel[];
13
20
  /** The section Connectors of the modal: the AI providers (and the host's connectors, e.g. a subscription on a runner). */
14
21
  connections?: Omit<AIConnectionsProps, 'className'>;
15
22
  /** CR-024: tabs of the host after Agentico's (e.g. "My subscriptions" on a runner), drawn by the host. */
@@ -32,6 +39,7 @@ interface AgenticoSettingsContextValue {
32
39
  /** The settings the modal shows. */
33
40
  shown: AgenticoSettingKey[];
34
41
  connections?: AgenticoSettingsConfig['connections'];
42
+ models?: AgentExecutorModel[];
35
43
  tabs?: AgenticoSettingsTab[];
36
44
  backend?: AgenticoBackend;
37
45
  save: (values: Partial<AgenticoSettings>) => Promise<void>;
package/llms.txt CHANGED
@@ -54,7 +54,7 @@ CR-012: `executor.catalogReasoning(params, provider) → 'low' | 'medium' | 'hig
54
54
  CR-018: `SubagentManifest.thread(params)` makes the saved chats of the scope with the same key sessions of one chat: the panel shows the earlier ones above the open one, read-only (no questions, Retry or Edit), one more each time the person scrolls to the top or presses "Earlier session", each opened by a separator (title, start, "Continue this session" resumes it) and "This session" above the open one; the model reads only the open session. `SubagentManifest.speaker(params)` → `{ name, avatarUrl? }` puts the picture of the agent in a column on the left, its name next to it with a closed summary of the reasoning and steps before its text ("Reasoned for 4 s · 1 step", opened with a click), the text under them; `<AgenticoProvider person={{ name, avatarUrl? }}>` writes `author` on each message of the person (kept in the snapshot): their picture in the same column, Edit and Retry under it, the name above the full-width message; without a picture an `Identicon` of the name. `chatThreadOf(snapshot)`, `earlierSessions(scopeId, thread, openTaskId)`.
55
55
  CR-019: `<AgenticoProvider threadEvents={source}>` (keep it memoized): `source.load(thread, from, to)` → `ThreadEvent[]` (`id`, `at` ms, `author` ChatAuthor, `title`, optional `body` Markdown, `badge`, `href`, `icon`), optional `source.subscribe(thread, onChange)` → unsubscribe. In a chat with a `thread` the panel shows them among the turns by time (`placeEvents`), as compact cards with the author's picture in the left column (opened: the body; a link to `href`); the open session from the last message of the session before it, each earlier one up to its last message. Header filter "Conversation only" (kept in this browser, `llmnative.agentico.threadEvents`). The model never reads them. Every entry of a chat now keeps `at` (when it was born); entries saved before 0.18.0 have none.
56
56
  CR-020: the images attached to a message of the person stay in sight as previews (`entry.attachmentPreviews`: JPEG data URLs of at most 480 px a side, the first 4 images, drawn in the browser by `imagePreviews(files)` and kept with the chat); a click opens one larger; files without a preview stay as their names. `ThreadEvent.running: true` shows a spinner in place of its icon (an agent still at work on it).
57
- CR-022: `<AgenticoProvider settings={{ store?, fixed?, hidden?, connections? }}>` (memoized). Settings `defaultModel` (`provider/model` the chats start with), `reasoning` (when `executor.catalogReasoning` says nothing), `providers` (the AI catalog the chats may use), `chatTitles`, `threadEvents`: fixed > saved (host `store.load/save`, default this browser) > default. The gear in the panel header opens `AgenticoSettingsModal`: the settings neither fixed nor hidden, and `connections` as `AIConnections` (@llmnative/react 3.2). `useAgenticoSettings()` → `{ settings, shown, save, open, close }`. Peer `@llmnative/react` ^3.2.0.
57
+ CR-022: `<AgenticoProvider settings={{ store?, fixed?, hidden?, connections? }}>` (memoized). Settings `defaultModel` (`provider/model` the chats start with), `reasoning` (when `executor.catalogReasoning` says nothing), `providers` (the AI catalog the chats may use), `chatTitles`, `threadEvents`: fixed > saved (host `store.load/save`, default this browser) > default. The gear in the panel header opens `AgenticoSettingsModal`: the settings neither fixed nor hidden, and `connections` as `AIConnections` (@llmnative/react 3.2). `useAgenticoSettings()` → `{ settings, shown, save, open, close }`. Peer `@llmnative/react` ^3.2.0. CR-029 (0.27.0): `settings.models?: AgentExecutorModel[]` ({ value, label, group? }) — the models of a host that keeps the AI providers on its server; the modal lists them for `defaultModel` instead of the AI catalog of the browser, and the host reads `defaultModel` from its `store`.
58
58
 
59
59
  CR-021: `ThreadEvent.open: true` shows its body at once; `ThreadEvent.actions: [{ id, label, icon?, primary? }]` are buttons on its card, run by `ThreadEventsSource.onAction(event, actionId, chat)`: `chat.compose(text)` puts a text in the field of the chat open in the panel (the person changes and sends it), `chat.send(text)` sends it as a message of the person (composed instead while a turn runs). `useAgentico().compose(text)` does the same anywhere (it opens the panel).
60
60
  CR-011: `SubagentManifest.autoTitle: true` gives its saved chats a title from the model (after a turn; once per session for older ones; a model of the catalog the chat may use), drops conversational chats where the person never wrote; `snapshot.name`/`namedBy`, `chatTitle(snapshot)`, `renameEntityChat(scopeId, subagentId, entityId, title, 'person' | 'model')` (the person's wins; empty resets), `onEntityChatsChange(listener)`; the history has Rename.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llmnative/agentico",
3
- "version": "0.26.0",
3
+ "version": "0.27.1",
4
4
  "description": "Agentic chat orchestrator for @llmnative/react apps: a persistent panel that talks with the user and hands the work to host-registered subagents.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",