@llmnative/agentico 0.22.0 → 0.22.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.
@@ -115,6 +115,10 @@ export interface AgenticoDict {
115
115
  routingNoPage: string;
116
116
  routingTryPath: string;
117
117
  routingTryPathFeedback: string;
118
+ routingTryPathCount: string;
119
+ routingNoMatch: string;
120
+ routingApplies: string;
121
+ routingOverridden: string;
118
122
  routingOriginDefault: string;
119
123
  routingOriginModified: string;
120
124
  routingOriginAdded: string;
@@ -2,12 +2,12 @@ import React from 'react';
2
2
  import { type AgenticoPageRule } from '../domain/routing';
3
3
  /** A tool name made readable: `read_sitemap` → "Read sitemap". The name itself stays in the editor title. */
4
4
  export declare function toolLabel(name: string): string;
5
- export declare function AgenticoSubagentsSettings({ onStack }: {
5
+ /** Props of the three tabs: the editor open on top (the settings modal dims behind it). */
6
+ interface RoutingTabProps {
6
7
  onStack?: (open: boolean) => void;
7
- }): React.JSX.Element;
8
- export declare function AgenticoToolsSettings({ onStack }: {
9
- onStack?: (open: boolean) => void;
10
- }): React.JSX.Element;
8
+ }
9
+ export declare function AgenticoSubagentsSettings({ onStack }: RoutingTabProps): React.JSX.Element;
10
+ export declare function AgenticoToolsSettings({ onStack }: RoutingTabProps): React.JSX.Element;
11
11
  /** The editor of a page rule. `flags` is not shown (only `i` would matter, paths are lower case): kept as it is.
12
12
  * `active`: the switch on = the rule applies; a default rule is switched off instead of deleted. */
13
13
  export type AgenticoPageRuleForm = {
@@ -20,6 +20,5 @@ export type AgenticoPageRuleForm = {
20
20
  };
21
21
  /** The page rule written in the editor; empty optional fields left out. */
22
22
  export declare function pageRuleFromForm(record: Partial<Record<keyof AgenticoPageRuleForm, unknown>>): AgenticoPageRule;
23
- export declare function AgenticoPagesSettings({ onStack }: {
24
- onStack?: (open: boolean) => void;
25
- }): React.JSX.Element;
23
+ export declare function AgenticoPagesSettings({ onStack }: RoutingTabProps): React.JSX.Element;
24
+ export {};
package/llms.txt CHANGED
@@ -61,4 +61,4 @@ CR-011: `SubagentManifest.autoTitle: true` gives its saved chats a title from th
61
61
 
62
62
  Message parts (0.3.0): the turn also has `onText(text, { id?, done? })` (without id: the one reply, kept below steps and reasoning; with id: a text part of its own), `onReasoning(text, { id?, done?, duration? })` (whole text so far; shown closed, "Reasoned for N s", duration measured if not given), `onQuestions(questions, { id? }) → Promise<answers>` (questions `{ id?, header?, question, options?: [{ label, description? }], multiple?, recommended?, custom? }`; answers `[{ id?, header?, values: string[] }]`). Answers given while the turn runs resolve that promise; given later (or after a reload) they start a new turn with `text: ''` and `answers: { id, answers }` (id = the questions part id, default `questions-N`). Parts are kept in `AgentActivityEntry.parts` (`text` | `reasoning` | `tool` | `questions`, `detail` = the text) and saved with the chat; old chats without parts show `detail`. Rendered with `ChatMarkdown`, `ChatReasoning`, steps grouped in a `Tree`, `ChatQuestions` (needs `@llmnative/react` 1.34). `useAgent().answerQuestions(entryId, partId, answers)`.
63
63
 
64
- CR-023: `<AgenticoProvider route={{ path, defaults, store?, readOnly? }}>` (defaults memoized). `AgenticoRouting { subagents?: Record<id, { paths?: string[] (regex on the path, no query/hash; absent = everywhere, [] = only when scoped), tools?: string[] (absent = manifest crossAgentToolIds) }>, tools?: Record<name, { everywhere?: boolean }>, pages?: AgenticoPageRule[] }`; `AgenticoPageRule { id, label?, pattern, flags?, context? ({name}/{1} groups, {path}), disabled? }`, the first enabled matching page rule wins. `resolveAgenticoRoute(routing, location, manifests)` → `{ path, page, context, subagentIds (paths match), toolNames (tools of the offered subagents + everywhere), toolsOf }` = `useAgentico().route`. The page context comes before the page/anchor context in the prompt; the orchestrator offers only those subagents (onlyWhenAnchored still only when scoped) and tools; a scoped subagent uses `toolsOf[id]`. `mergeAgenticoRouting(defaults, changes)`, `diffAgenticoRouting(defaults, next)` → `AgenticoRoutingChanges { pages?, pageOrder?, subagents?, tools? }` (only what differs; an empty subagent entry or `everywhere: false` equals a missing one), `mergeAgenticoPageRules` (origin `default`/`modified`+`defaultRule`/`added`), `validateAgenticoRouting(routing, { subagents, toolNames })` → issues `{ where: page|subagent|tool, key, index?, code, level }`: `invalid-pattern`, `duplicate-id`, `missing-id`, `unknown-tool` (errors), `unknown-subagent`, `anchored-subagent`, unknown tool entry (warnings). Not access control. `route.store` (`AgenticoRoutingStore { load(): changes|null, save(changes) }`), `route.readOnly`; `useAgentico().routing` → `{ path, defaults, routing, pages (with origin), changes, save|null, error }`. Settings tabs: Chats, Subagents (a box per subagent: paths, description, tools as badges; click → editor modal on top: paths add/remove/edit, try a path, tools, restore), Tools (a box per tool: subagents that use it or all; click → editor), Pages (context per path: try, edit, move, restore, delete added), Connectors.
64
+ CR-023: `<AgenticoProvider route={{ path, defaults, store?, readOnly? }}>` (defaults memoized). `AgenticoRouting { subagents?: Record<id, { paths?: string[] (regex on the path, no query/hash; absent = everywhere, [] = only when scoped), tools?: string[] (absent = manifest crossAgentToolIds) }>, tools?: Record<name, { everywhere?: boolean }>, pages?: AgenticoPageRule[] }`; `AgenticoPageRule { id, label?, pattern, flags?, context? ({name}/{1} groups, {path}), disabled? }`, the first enabled matching page rule wins. `resolveAgenticoRoute(routing, location, manifests)` → `{ path, page, context, subagentIds (paths match), toolNames (tools of the offered subagents + everywhere), toolsOf }` = `useAgentico().route`. The page context comes before the page/anchor context in the prompt; the orchestrator offers only those subagents (onlyWhenAnchored still only when scoped) and tools; a scoped subagent uses `toolsOf[id]`. `mergeAgenticoRouting(defaults, changes)`, `diffAgenticoRouting(defaults, next)` → `AgenticoRoutingChanges { pages?, pageOrder?, subagents?, tools? }` (only what differs; an empty subagent entry or `everywhere: false` equals a missing one), `mergeAgenticoPageRules` (origin `default`/`modified`+`defaultRule`/`added`), `validateAgenticoRouting(routing, { subagents, toolNames })` → issues `{ where: page|subagent|tool, key, index?, code, level }`: `invalid-pattern`, `duplicate-id`, `missing-id`, `unknown-tool` (errors), `unknown-subagent`, `anchored-subagent`, unknown tool entry (warnings). Not access control. `route.store` (`AgenticoRoutingStore { load(): changes|null, save(changes) }`), `route.readOnly`; `useAgentico().routing` → `{ path, defaults, routing, pages (with origin), changes, save|null, error }`. Settings tabs: Chats, Subagents (a box per subagent: paths, description, tools as readable badges; click → editor modal on top: paths add/remove/edit, try a path, tools, restore), Tools (a box per tool: subagents that use it or all; click → editor), Pages (context per path: edit in a modal with the switch Active in its head, move, restore, delete added), Connectors. Each routing tab has a toolbar button "Try a path" (0.22.1): a field prefilled with the current path filters the boxes to what matches; on Pages every matching rule is shown, the first "Applies" (context filled), the others "Overridden by #n".
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llmnative/agentico",
3
- "version": "0.22.0",
3
+ "version": "0.22.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",