@revealui/ai 0.6.2 → 0.6.3
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 +4 -4
- package/dist/llm/providers/openai-compat.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -178,7 +178,7 @@ long-running operations stop instead of just being ignored.
|
|
|
178
178
|
|
|
179
179
|
Some MCP servers need LLM capabilities without bundling a provider. The
|
|
180
180
|
spec lets servers issue `sampling/createMessage` requests — the *client*
|
|
181
|
-
runs the inference, keeps cost + context control, and returns the result.
|
|
181
|
+
runs the inference, keeps cost + context control, and returns the result (`packages/ai/src/tools/mcp-sampling.ts:207`).
|
|
182
182
|
On the Ubuntu reference stack, that means servers get LLM access via the
|
|
183
183
|
developer's local Canonical Inference Snap — no cloud round-trip required.
|
|
184
184
|
|
|
@@ -365,8 +365,8 @@ The memory system uses deep cloning to ensure immutability and prevent data corr
|
|
|
365
365
|
3. **AgentContextManager Level**
|
|
366
366
|
- `getContext()`: Returns value from cloned context (no additional cloning)
|
|
367
367
|
- `getAllContext()`: Returns cloned context from WorkingMemory
|
|
368
|
-
- `setContext()`: Validates then sets (cloning happens in WorkingMemory)
|
|
369
|
-
- `updateContext()`: Validates then updates (cloning happens in WorkingMemory)
|
|
368
|
+
- `setContext()`: Validates then sets (cloning happens in WorkingMemory) (`packages/ai/src/memory/agent/context-manager.ts:84`)
|
|
369
|
+
- `updateContext()`: Validates then updates (cloning happens in WorkingMemory) (`packages/ai/src/memory/agent/context-manager.ts:131`)
|
|
370
370
|
|
|
371
371
|
### Performance Implications
|
|
372
372
|
|
|
@@ -450,7 +450,7 @@ manager.setContext('user', { name: 'John', age: 30 })
|
|
|
450
450
|
|
|
451
451
|
### Size Limits
|
|
452
452
|
|
|
453
|
-
The system enforces limits to prevent performance issues:
|
|
453
|
+
The system enforces limits (`packages/ai/src/memory/utils/validation.ts:28-39`) to prevent performance issues:
|
|
454
454
|
|
|
455
455
|
- **Max Context Keys**: 10,000 keys
|
|
456
456
|
- **Max Context Size**: ~10MB (approximate)
|
|
@@ -22,7 +22,7 @@ const asRecord = (value) => {
|
|
|
22
22
|
};
|
|
23
23
|
const isFunctionToolCall = (call) => {
|
|
24
24
|
const record = asRecord(call);
|
|
25
|
-
if (
|
|
25
|
+
if (record?.type !== 'function' || typeof record.id !== 'string') {
|
|
26
26
|
return false;
|
|
27
27
|
}
|
|
28
28
|
const fn = asRecord(record.function);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revealui/ai",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "AI runtime for agent-driven products — agents, memory, LLM providers (Inference Snaps, Ollama, OpenAI-compatible), tools, and orchestration. Anthropic-SDK-free.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"lru-cache": "^11.5.1",
|
|
27
27
|
"zod": "^4.4.3",
|
|
28
28
|
"@revealui/contracts": "0.6.1",
|
|
29
|
-
"@revealui/core": "0.10.
|
|
30
|
-
"@revealui/db": "0.7.
|
|
29
|
+
"@revealui/core": "0.10.2",
|
|
30
|
+
"@revealui/db": "0.7.2",
|
|
31
31
|
"@revealui/resilience": "0.2.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@electric-sql/pglite": "^0.5.
|
|
34
|
+
"@electric-sql/pglite": "^0.5.2",
|
|
35
35
|
"@testing-library/react": "^16.3.2",
|
|
36
36
|
"@vitest/coverage-v8": "^4.1.8",
|
|
37
37
|
"jsdom": "29.1.1",
|