@strav/brain 1.0.0-alpha.29 → 1.0.0-alpha.31

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.ts +12 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strav/brain",
3
- "version": "1.0.0-alpha.29",
3
+ "version": "1.0.0-alpha.31",
4
4
  "description": "Strav AI module — unified Provider interface, BrainManager, threads, prompt caching, tools / agents / MCP. Anthropic + OpenAI providers; Gemini / DeepSeek follow.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -25,8 +25,8 @@
25
25
  "@anthropic-ai/sdk": "^0.100.0",
26
26
  "@google/genai": "^2.7.0",
27
27
  "@modelcontextprotocol/sdk": "^1.29.0",
28
- "@strav/database": "1.0.0-alpha.29",
29
- "@strav/kernel": "1.0.0-alpha.29",
28
+ "@strav/database": "1.0.0-alpha.31",
29
+ "@strav/kernel": "1.0.0-alpha.31",
30
30
  "openai": "^6.0.0"
31
31
  },
32
32
  "peerDependencies": {
package/src/index.ts CHANGED
@@ -1,11 +1,17 @@
1
1
  // Public API of @strav/brain.
2
2
  //
3
- // V1: BrainDriver interface + AnthropicBrainDriver, BrainManager, Thread,
4
- // BrainProvider service-wiring, prompt caching.
5
- // V2 (this slice): tools + agents defineTool, Agent base + AgentRunner,
6
- // BrainManager.runTools / .agent(Class), BrainDriver.runWithTools.
7
- // Still deferred: MCP, embeddings, streaming agent loops, server-side
8
- // tools, structured outputs, other providers.
3
+ // Shipped:
4
+ // - `BrainDriver` contract + concrete drivers — Anthropic, OpenAI
5
+ // (Chat + Responses), Gemini, DeepSeek, Ollama, openai-compat.
6
+ // - `BrainManager` + `Thread` (persisted history, compaction) + the
7
+ // `BrainProvider` service wiring + prompt-cache plumbing.
8
+ // - Tools `defineTool`, `Agent` base + `AgentRunner`,
9
+ // `runWithTools` + `streamWithTools` (agentic + streaming loops).
10
+ // - Structured outputs — `generate`, `runWithToolsAndSchema`,
11
+ // `streamWithToolsAndSchema` (JSON-Schema constrained replies).
12
+ // - MCP — server-side (Anthropic) + local client (`@strav/brain/mcp`).
13
+ // - Embeddings (`embed`), audio transcription (`transcribe`),
14
+ // human-in-the-loop suspend/resume.
9
15
 
10
16
  export { Agent } from './agent.ts'
11
17
  export type { AgentGenerateResult } from './agent_generate_result.ts'