Commit graph

187 commits

Author SHA1 Message Date
Shoubhit Dash
ca85721b6c replace generic exceptions with custom exception classes 2025-10-30 15:05:09 +05:30
Shoubhit Dash
2e8c19034a fix httpx client resource leak with proper async cleanup 2025-10-30 15:01:44 +05:30
Shoubhit Dash
a185dc252b fix event loop exception handling to not mask legitimate errors 2025-10-30 14:59:31 +05:30
Shoubhit Dash
5a00ee1f0a add proper cleanup for sync client threadpoolexecutor 2025-10-28 00:18:26 +05:30
Shoubhit Dash
efbc0126ca improve memory client resource management with reusable httpx client 2025-10-28 00:07:45 +05:30
Shoubhit Dash
742a67d09d fix non-string content handling for multimodal messages 2025-10-28 00:05:20 +05:30
Shoubhit Dash
817c319e38 fix incomplete role handling for system and tool messages 2025-10-28 00:03:32 +05:30
Shoubhit Dash
550aa0e975 fix message mutation by creating copies of input data 2025-10-28 00:02:45 +05:30
Shoubhit Dash
253b01fab0 improve error handling with warnings in verbose mode 2025-10-27 23:57:56 +05:30
Shoubhit Dash
9f1d545543 add input validation for options and container tag 2025-10-27 23:56:43 +05:30
Shoubhit Dash
69e94b83ee fix event loop management in sync wrapper 2025-10-27 23:54:46 +05:30
Shoubhit Dash
6fea475b6c update readme with withsupermemory usage examples 2025-10-27 23:48:43 +05:30
Shoubhit Dash
7edcb16c16 export withsupermemory wrapper from package 2025-10-27 23:48:15 +05:30
Shoubhit Dash
ca61502107 add httpx dependency for memory client 2025-10-27 23:47:51 +05:30
Shoubhit Dash
2b3f9111b6 add withsupermemory wrapper for openai clients 2025-10-27 23:47:11 +05:30
Shoubhit Dash
a9438dc0a7 add utils for message processing and memory formatting 2025-10-27 23:46:50 +05:30
Shoubhit Dash
459953cb3d add memory client for supermemory profile api 2025-10-27 23:45:41 +05:30
MaheshtheDev
3ca82e7116 fix: auto switch to expected org (#522) 2025-10-25 23:27:12 +00:00
Mahesh Sanikommmu
4f2d839412 chat app withSupermemory test 2025-10-22 14:00:59 -07:00
Mahesh Sanikommmu
5fb33743b3 add props interface export 2025-10-22 12:31:54 -07:00
Shoubhit Dash
8436229cbb add comment 2025-10-22 23:00:08 +05:30
Shoubhit Dash
4365fbd2a2 add test 2025-10-22 22:58:32 +05:30
Shoubhit Dash
5612380dc2 fix prompt mutation in vercel middleware 2025-10-22 22:43:09 +05:30
Mahesh Sanikommmu
de6a1aef9c fix(tools): update the docs for conversational 2025-10-19 18:21:48 -07:00
sohamd22
79f3059b2a add conversationId functionality to map to customId in ingestion (#499)
### TL;DR

Added support for conversation grouping in Supermemory middleware through a new `conversationId` parameter.

### What changed?

- Added a new `conversationId` option to the `withSupermemory` function to group messages into a single document for contextual memory generation
- Updated the middleware to use this conversation ID when adding memories, using a `customId` format of `conversation:{conversationId}`
- Created a new `getConversationContent` function that extracts the full conversation content from the prompt parameters
- Enhanced memory storage to save entire conversations rather than just the last user message
- Updated documentation and examples to demonstrate the new parameter usage

### How to test?

1. Import the `withSupermemory` function from the package
2. Create a model with memory using the new `conversationId` parameter:
   ```typescript
   const modelWithMemory = withSupermemory(openai("gpt-4"), "user-123", {
     conversationId: "conversation-456",
     mode: "full",
     addMemory: "always"
   })
   ```
3. Use the model in a conversation and verify that messages are grouped by the conversation ID
4. Check that memories are being stored with the custom ID format `conversation:{conversationId}`

### Why make this change?

This enhancement improves the contextual understanding of the AI by allowing related messages to be grouped together as a single conversation document. By using a conversation ID, the system can maintain coherent memory across multiple interactions within the same conversation thread, providing better context retrieval and more relevant responses.
2025-10-19 22:24:00 +00:00
MaheshtheDev
90eea41ded fix: magic link auth for chrome extension (#492)
The issue is whenever a user is trying to log in with an email and a one-time code, the Chrome extension is not able to authenticate. The fix is to add a callback URL with a query parameter of `extension-auth-success` equal to `true`, which will allow the Chrome extension to identify and verify the auth whenever a user is trying to log in into the Chrome extension.
2025-10-17 04:29:32 +00:00
Mahesh Sanikommmu
3e47d9ee53 fix: side effect removal 2025-10-10 21:13:21 -07:00
Mahesh Sanikommmu
d8874e8c17 fix: add memory code params and documentation in readme 2025-10-10 21:06:52 -07:00
sohamd22
91a2aa5fdb create memory adding option in vercel sdk (#484)
### TL;DR

Added support for automatically saving user messages to Supermemory.

### What changed?

- Added a new `addMemory` option to `wrapVercelLanguageModel` that accepts either "always" or "never" (defaults to "never")
- Implemented the `addMemoryTool` function to save user messages to Supermemory
- Modified the middleware to check the `addMemory` setting and save the last user message when appropriate
- Initialized the Supermemory client in the middleware to enable memory storage

### How to test?

1. Set the `SUPERMEMORY_API_KEY` environment variable
2. Use the `wrapVercelLanguageModel` function with the new `addMemory: "always"` option
3. Send a user message through the model
4. Verify that the message is saved to Supermemory with the specified container tag

### Why make this change?

This change enables automatic memory creation from user messages, which improves the system's ability to build a knowledge base without requiring explicit memory creation calls. This is particularly useful for applications that want to automatically capture and store user interactions for future reference.
2025-10-11 03:45:06 +00:00
MaheshtheDev
35ac9e086b feat: ai sdk language model withSupermemory (#446) 2025-10-10 05:10:03 +00:00
Dhravya Shah
1e2657cf5c
Revert "test(ai-sdk): streamText and generateText for ai sdk" (#466) 2025-10-08 15:56:03 -07:00
Mahesh Sanikommu
77b6e2b8dc
test(ai-sdk): streamText and generateText for ai sdk (#451) 2025-10-08 15:55:42 -07:00
Shreyans Jain
4467b65524
fix: openai python sdk package export (#432) 2025-10-08 15:54:42 -07:00
MaheshtheDev
e86104b645 feat: multiple models & ui improvements (#455) 2025-10-06 16:25:38 +00:00
MaheshtheDev
cdfb942fa8 feat: app improvements (#454) 2025-10-06 15:51:31 +00:00
Dhravya Shah
4d6fd37c99 fix: model names 2025-10-03 02:41:49 -07:00
Dhravya Shah
be34a14550 Merge branch 'main' of https://github.com/supermemoryai/supermemory 2025-10-03 02:37:50 -07:00
Dhravya Shah
c65f4e97ac fix: docs 2025-10-03 02:37:30 -07:00
MaheshtheDev
56590e9329 feat: delete memories and theme issues across the app (#449)
# Add document deletion functionality and fix UI theme issues

This PR adds the ability to delete documents and their associated memories across all content card types (Google Docs, Notes, Tweets, and Websites). Each card now includes:

- A delete button that appears on hover
- A confirmation dialog to prevent accidental deletions
- Proper event handling to avoid triggering card clicks when using delete controls

Additionally, this PR fixes various UI theme issues:

- Updates button styling in the ActionButtons component
- Improves theme consistency by replacing hardcoded colors with theme variables
- Fixes text color issues in login page components
- Ensures proper color contrast in various UI elements

The masonry layout was also improved to properly re-render when documents are removed.
2025-10-03 07:51:00 +00:00
Dhravya Shah
698bd0e1cd fix: tools files 2025-10-02 17:09:27 -07:00
MaheshtheDev
163c9daca7 feat(raycast-extension): initial version of supermemory extension for raycast (#440)
feat(raycast-extension): initial version of supermemory extension for raycast

chore: update the metadata and ui for app to get api key

![supermemory-1.png](https://app.graphite.dev/user-attachments/assets/631a865e-8d7b-43df-8753-480f6b80a6d8.png)

![supermemory-2.png](https://app.graphite.dev/user-attachments/assets/956fff54-5447-4feb-a88b-8b465d4cda68.png)
2025-10-02 16:22:56 +00:00
Dhravya Shah
514f6a6f41 Merge branch 'main' of https://github.com/supermemoryai/supermemory 2025-10-01 18:11:49 -07:00
Dhravya Shah
5c57578573 feat: Add memory vs rag and migration section to docs 2025-10-01 18:11:37 -07:00
MaheshtheDev
b148296f50 feat: layout design with theme improvements (#443)
feat: layout design with theme improvements

new improvements on light mode layout

chore: settings page with graph header and memories list
2025-10-01 21:59:54 +00:00
MaheshtheDev
60794f63e2 UI: onboarding improvements (#435)
UI: onboarding improvements

ui(onboarding): updated onboarding ui patterns
2025-10-01 21:59:53 +00:00
alexf37
ede0f39303 feat: new onboarding flow (#408)
This is the onboarding flow that you have all seen in my demo.
2025-10-01 21:59:53 +00:00
Dhravya Shah
53bc296155 feat: Claude memory integration 2025-09-29 13:40:56 -07:00
Dhravya Shah
697315b9dc Merge branch 'main' of https://github.com/supermemoryai/supermemory 2025-09-24 23:26:38 -07:00
Dhravya Shah
3d2d3ae35c bump version 2025-09-24 21:48:56 -07:00
MaheshtheDev
8c92aad6a7 Update ADD_MEMORY_SHORTCUT_URL to new URL (#434) 2025-09-23 21:08:55 +00:00