supermemory/packages/tools/tsdown.config.ts
nexxeln 9553434c9a mastra integration (#717)
adds withSupermemory wrapper and input/output processors for
mastra agents:

- input processor fetches and injects memories into system prompt
before llm calls
- output processor saves conversations to supermemory after
responses
- supports profile, query, and full memory search modes
- includes custom prompt templates and requestcontext support

const agent = new Agent(withSupermemory(
{ id: "my-assistant", model: openai("gpt-4o"), instructions:
"..." },
"user-123",
{ mode: "full", addMemory: "always", threadId: "conv-456" }
))

includes docs as well

this pr also reworks how the tools package works into shared modules
2026-02-03 00:43:08 +00:00

22 lines
371 B
TypeScript

import { defineConfig } from "tsdown"
export default defineConfig({
entry: [
"src/index.ts",
"src/ai-sdk.ts",
"src/claude-memory.ts",
"src/openai/index.ts",
"src/mastra.ts",
],
format: "esm",
sourcemap: false,
target: "es2020",
tsconfig: "./tsconfig.json",
clean: true,
minify: true,
dts: {
sourcemap: false,
},
exports: true,
unbundle: true,
})