@llmnative/agentico 0.23.0 → 0.24.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 +43 -0
- package/dist/index.js +20 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2234 -1331
- package/dist/index.mjs.map +1 -1
- package/dist/server.js +2 -0
- package/dist/server.js.map +1 -0
- package/dist/server.mjs +1072 -0
- package/dist/server.mjs.map +1 -0
- package/dist/types/backend/agenticoBackend.d.ts +120 -0
- package/dist/types/backend/runnerHarness.d.ts +24 -0
- package/dist/types/i18n/types.d.ts +51 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/presentation/AgenticoConnectionsSettings.d.ts +21 -0
- package/dist/types/presentation/AgenticoSettingsContext.d.ts +7 -0
- package/dist/types/presentation/BackendHarness.d.ts +6 -0
- package/dist/types/server/connections.d.ts +80 -0
- package/dist/types/server/index.d.ts +11 -0
- package/dist/types/server/memories.d.ts +76 -0
- package/dist/types/server/namespace.d.ts +13 -0
- package/dist/types/server/ports.d.ts +43 -0
- package/dist/types/server/runners.d.ts +180 -0
- package/dist/types/server/server.d.ts +141 -0
- package/dist/types/server/stores.d.ts +11 -0
- package/llms.txt +1 -0
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -70,6 +70,49 @@ const settings = useMemo<AgenticoSettingsConfig>(() => ({
|
|
|
70
70
|
`useAgenticoSettings()` gives the values in effect. A reasoning set by the agent (`executor.catalogReasoning`) wins over
|
|
71
71
|
the one of the settings.
|
|
72
72
|
|
|
73
|
+
## Server, connections, runners and memory (CR-025, CR-026)
|
|
74
|
+
|
|
75
|
+
The same in every host: the models, the runners and the memory are in the settings of Agentico. The host mounts the
|
|
76
|
+
server of Agentico (`@llmnative/agentico/server`, pure Node) and gives three things: who asks (from its own sign-in),
|
|
77
|
+
where it keeps documents, where it keeps secrets. Keys never reach the browser.
|
|
78
|
+
|
|
79
|
+
```ts
|
|
80
|
+
// Server (Hono, a Cloud Function…): one handle(Request).
|
|
81
|
+
import { createAgenticoServer, fileStores } from '@llmnative/agentico/server';
|
|
82
|
+
|
|
83
|
+
const agentico = createAgenticoServer({
|
|
84
|
+
...fileStores('.data/agentico'), // or the host's database and secret manager
|
|
85
|
+
platformName: 'My app',
|
|
86
|
+
basePath: '/api/agentico',
|
|
87
|
+
sessionHeaders: ['x-session'], // never forwarded to the AI providers
|
|
88
|
+
identity: async (request) => { // null: not signed in
|
|
89
|
+
const person = await sessionOf(request);
|
|
90
|
+
return person && { user: { id: person.id }, role: person.role, project: 'crm', tenant: person.tenant };
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
app.all('/api/agentico/*', (c) => agentico.handle(c.req.raw));
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
```tsx
|
|
97
|
+
// Browser: the settings get the tabs Connections, Memory and Projects.
|
|
98
|
+
const backend = useMemo(() => createAgenticoBackend({ baseUrl: '/api/agentico', headers: () => ({ 'x-session': token }) }), [token]);
|
|
99
|
+
<AgenticoProvider settings={{ backend }}>…</AgenticoProvider>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
- **Namespace** `<project>` or `<project>-<tenant>`: the tenant on the runner and the container of the memory.
|
|
103
|
+
- **Roles**: `platform` (runners, memories, which runner and memory each namespace uses), `admin` (the cloud keys of
|
|
104
|
+
their namespace), `member` (uses them; their own subscriptions on the runner).
|
|
105
|
+
- **Connections**: boxes that open a modal — *Cloud* (`AIConnections`: the providers of `@llmnative/react` with their
|
|
106
|
+
keys, checked before kept), one per runner (state, default, draining, the accounts of the namespace: subscriptions and
|
|
107
|
+
API keys run on the runner), *Add a runner* (installed over SSH or by hand, or connected by approving the request on
|
|
108
|
+
the runner: the platform key owns only the namespaces of the project, runner 1.2).
|
|
109
|
+
- **Memory**: supermemory (API address, MCP server, key); each namespace reads and writes `/ns/<namespace>`.
|
|
110
|
+
- **Projects**: each namespace of the project, its runner and its memory.
|
|
111
|
+
- The AI adapters of the browser use the proxy of the framework on `<basePath>/ai/proxy` (`providers.proxy.route`,
|
|
112
|
+
placeholders `llmnative-server-credential:<namespace>:<provider>`); a server answers with `<basePath>/ai/complete`.
|
|
113
|
+
- Without a harness of the host, the runner of the namespace is the harness (CR-024): the subscriptions of the person
|
|
114
|
+
next to the API models.
|
|
115
|
+
|
|
73
116
|
## Concepts
|
|
74
117
|
|
|
75
118
|
| Concept | API |
|