@llmnative/agentico 0.27.1 → 0.28.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.
@@ -43,6 +43,11 @@ export type AgenticoNamespaceRow = {
43
43
  name?: string;
44
44
  };
45
45
  };
46
+ /** CR-030: how the chats of the namespace use a subscription of its runner: the model they start with, how much it reasons. */
47
+ export type AgenticoRunnerDefault = {
48
+ model?: string;
49
+ reasoning?: 'low' | 'medium' | 'high' | 'max';
50
+ };
46
51
  export type AgenticoMemoryHit = {
47
52
  id?: string;
48
53
  title?: string;
@@ -73,6 +78,11 @@ export interface AgenticoBackend {
73
78
  runner(): RunnerClient;
74
79
  /** The runner of the namespace, as the namespace itself: its own accounts (admins). */
75
80
  runnerOfNamespace(): RunnerClient;
81
+ /** CR-030: per subscription of the runner of the namespace (claude-code, opencode-go…), its defaults; set by its admin. */
82
+ runnerDefaults: {
83
+ get(): Promise<Record<string, AgenticoRunnerDefault>>;
84
+ set(provider: string, value: AgenticoRunnerDefault): Promise<Record<string, AgenticoRunnerDefault>>;
85
+ };
76
86
  memories: {
77
87
  list(): Promise<AgenticoMemory[]>;
78
88
  check(input: {
@@ -1,6 +1,7 @@
1
1
  import { type RunnerChatModel, type RunnerClient, type RunnerModels } from '@llmnative/runner/client';
2
2
  import type { AgentExecutorModel } from '../domain/agentDefinition';
3
3
  import type { AgenticoHarness } from '../domain/harness';
4
+ import type { AgenticoRunnerDefault } from './agenticoBackend';
4
5
  export type RunnerHarnessTexts = {
5
6
  /** The group of the models in the composer, e.g. "Claude Code · your subscription". */
6
7
  group: (provider: string) => string;
@@ -15,10 +16,21 @@ export type RunnerHarnessTexts = {
15
16
  export declare function modelOf(value: string): RunnerChatModel | null;
16
17
  /** The models the person can run now: providers with an account of theirs (or of the tenant) available. */
17
18
  export declare function harnessModels(models: RunnerModels, texts: Pick<RunnerHarnessTexts, 'group'>): AgentExecutorModel[];
19
+ /**
20
+ * How much a model of the runner reasons, from the defaults of its subscription (CR-030): Claude Code by its effort,
21
+ * opencode by the variant of the model (medium: its own default, none given).
22
+ */
23
+ export declare function withReasoning(model: RunnerChatModel, reasoning: AgenticoRunnerDefault['reasoning']): RunnerChatModel;
24
+ /**
25
+ * The model a chat starts with on the runner (CR-030): the default model of the first subscription, in the order of
26
+ * the models offered, that the admin gave one and that runs it now; none otherwise (the chat starts on the catalog).
27
+ */
28
+ export declare function defaultHarnessModel(models: AgentExecutorModel[], defaults: Record<string, AgenticoRunnerDefault>): string | undefined;
18
29
  /**
19
30
  * A harness on a runner client (pointed at runnerApi of the tenant). `models` is what `refresh` read last: Agentico
20
- * asks for it while rendering, so it is kept here, not fetched each time.
31
+ * asks for it while rendering, so it is kept here, not fetched each time. `defaults` (CR-030): per subscription, the
32
+ * model chats start with and how much it reasons.
21
33
  */
22
- export declare function createRunnerHarness(client: RunnerClient, texts: RunnerHarnessTexts, initial?: AgentExecutorModel[]): AgenticoHarness & {
34
+ export declare function createRunnerHarness(client: RunnerClient, texts: RunnerHarnessTexts, initial?: AgentExecutorModel[], loadDefaults?: () => Promise<Record<string, AgenticoRunnerDefault>>): AgenticoHarness & {
23
35
  refresh(): Promise<AgentExecutorModel[]>;
24
36
  };
@@ -39,6 +39,8 @@ export interface AgenticoHarnessTurn {
39
39
  export interface AgenticoHarness {
40
40
  /** The models the harness runs now for the person (e.g. "Claude Code · your subscription"); none: nothing offered. */
41
41
  models(): AgentExecutorModel[];
42
+ /** CR-030: the model a chat starts with on the harness, one of `models()`; none: the chat starts on the catalog. */
43
+ defaultModel?(): string | undefined;
42
44
  /** A turn; rejects with the words for the person when it cannot run (no credit, no subscription…). */
43
45
  turn(turn: AgenticoHarnessTurn): Promise<{
44
46
  text: string;
@@ -185,6 +185,12 @@ export interface AgenticoDict {
185
185
  projectsReadOnly: string;
186
186
  connectionsError: string;
187
187
  harnessGroup: string;
188
+ runnerDefaultsTitle: string;
189
+ runnerDefaultsIntro: string;
190
+ runnerDefaultModel: string;
191
+ runnerDefaultModelNone: string;
192
+ runnerDefaultReasoning: string;
193
+ runnerDefaultReasoningNone: string;
188
194
  harnessNoCredit: string;
189
195
  harnessNoProvider: string;
190
196
  harnessFailed: string;
@@ -35,4 +35,4 @@ export { registerSubagentReports, getSubagentReport, type EditableReportModule,
35
35
  export { registerSubagentControls, getSubagentControls, type SubagentControls, type SubagentControlsProps, type UseSubagentControls } from './presentation/subagentControls';
36
36
  export { createHarnessExecutor, harnessTranscript, runHostTool, type AgenticoHarness, type AgenticoHarnessTool, type AgenticoHarnessTurn, type HarnessExecutorOptions, type HostToolLabels, type HostToolTurn, } from './domain/harness';
37
37
  export { useAgenticoHarness } from './presentation/harnessContext';
38
- export { createAgenticoBackend, AgenticoBackendError, type AgenticoBackend, type AgenticoBackendOptions, type AgenticoMe, type AgenticoMemory, type AgenticoMemoryCheck, type AgenticoMemoryHit, type AgenticoNamespaceRow, type AgenticoRole, } from './backend/agenticoBackend';
38
+ export { createAgenticoBackend, AgenticoBackendError, type AgenticoBackend, type AgenticoBackendOptions, type AgenticoMe, type AgenticoMemory, type AgenticoMemoryCheck, type AgenticoMemoryHit, type AgenticoNamespaceRow, type AgenticoRunnerDefault, type AgenticoRole, } from './backend/agenticoBackend';
@@ -10,14 +10,16 @@ export declare function useAgenticoMe(backend: AgenticoBackend | undefined): {
10
10
  * Connections: Cloud, the runners of the project, Add a runner. `cloud`: the connections of the host when it keeps its
11
11
  * AI keys itself (its own store, the providers it allows); without it, those of the server of Agentico.
12
12
  */
13
- export declare function AgenticoConnectionsTab({ backend, me, cloud }: {
13
+ export declare function AgenticoConnectionsTab({ backend, me, cloud, onStack }: {
14
14
  backend: AgenticoBackend;
15
15
  me: AgenticoMe;
16
- cloud?: Omit<AIConnectionsProps, 'className'>;
16
+ cloud?: Omit<AIConnectionsProps, 'className'>; /** A modal of the tab is open over the settings (they dim behind it). */
17
+ onStack?: (open: boolean) => void;
17
18
  }): React.JSX.Element;
18
19
  /** Memory: a box per memory of the project, Add a memory. */
19
- export declare function AgenticoMemoryTab({ backend }: {
20
+ export declare function AgenticoMemoryTab({ backend, onStack }: {
20
21
  backend: AgenticoBackend;
22
+ onStack?: (open: boolean) => void;
21
23
  }): React.JSX.Element;
22
24
  /** Projects: each namespace of the project, its runner and its memory. */
23
25
  export declare function AgenticoProjectsTab({ backend, me }: {
@@ -6,6 +6,6 @@ export { memoryStores, fileStores } from './stores';
6
6
  export { createConnections, defaultAdapterFactory, CONNECTIONS } from './connections';
7
7
  export type { AdapterFactory, Connections, ConnectionsSnapshot, ConnectionResult } from './connections';
8
8
  export { createFleet, FleetError, normalizeRunnerUrl, NAMESPACE_KEY_PERMISSIONS, RUNNERS, NAMESPACES } from './runners';
9
- export type { Fleet, RunnerEntry, RunnerRecord, NamespaceRecord, RunnerConnection, RunnerTarget } from './runners';
9
+ export type { Fleet, RunnerEntry, RunnerRecord, NamespaceRecord, RunnerDefault, RunnerConnection, RunnerTarget } from './runners';
10
10
  export { createMemories, MemoryError, MEMORIES, administers } from './memories';
11
11
  export type { Memories, MemoryEntry, MemoryCheck, MemoryHit, MemoryRecord, MemoryViewer } from './memories';
@@ -50,6 +50,13 @@ export interface NamespaceRecord {
50
50
  /** The id of the key of the namespace on its runner. */
51
51
  runnerKeyId?: string;
52
52
  memoryId?: string;
53
+ /** CR-030: per subscription of the runner (claude-code, opencode-go…), the model its chats start with and how much it reasons. */
54
+ defaults?: Record<string, RunnerDefault>;
55
+ }
56
+ /** How the chats of a namespace use a subscription of its runner (CR-030). */
57
+ export interface RunnerDefault {
58
+ model?: string;
59
+ reasoning?: 'low' | 'medium' | 'high' | 'max';
53
60
  }
54
61
  export interface InstallRecord {
55
62
  id: string;
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. 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`.
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-030 (0.28.0): the subscriptions on the runner — `GET/PUT runner-defaults` ({ provider, model?, reasoning? }, admin of the namespace), `backend.runnerDefaults.get/set`, `AgenticoHarness.defaultModel()`; the runner modal shows `RunnerAccounts` (runner 1.4.0) with the defaults under each subscription; settings modals on the right, stacked. 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.27.1",
3
+ "version": "0.28.0",
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",
@@ -59,7 +59,7 @@
59
59
  "zod": "^3.24.1"
60
60
  },
61
61
  "dependencies": {
62
- "@llmnative/runner": "^1.3.0",
62
+ "@llmnative/runner": "^1.4.0",
63
63
  "zod-to-json-schema": "^3.24.1"
64
64
  },
65
65
  "devDependencies": {