supermemory/packages
Rohit 432a761a48 fix(tools): align claude-memory insert with memory_20250818 line semantics
Anthropic's memory_20250818 spec defines insert as: insert_text is inserted
AFTER line insert_line, 0 inserts at the beginning of the file, and the valid
range is [0, n_lines]. The implementation treated insert_line as a 1-based
insert-BEFORE index with range [1, n_lines + 1].

Since the caller of this tool is Claude itself, which is trained on the spec
semantics, every model-driven insert landed one line earlier than intended,
insert_line: 0 (insert at top of file) was rejected as invalid, and
insert_line: n_lines (append) inserted before the last line instead of after
it.

Fix the validation range to [0, n_lines], splice at insert_line directly
(0-based insert-after), and update the error and success messages to match.
One existing tool-operations test encoded the old insert-before behavior; its
insert_line is adjusted so its expected output is unchanged under spec
semantics. Adds four regression tests covering top-of-file, middle,
append, and both out-of-range directions.
2026-10-12 13:43:04 -07:00
..
agent-framework-python Migrate Agent Framework integration to Supermemory v5 (#1786) 2026-10-09 14:52:36 -07:00
cartesia-sdk-python fix(python): cap supermemory below 5 in the wrapper packages (#1774) 2026-10-06 09:44:59 -07:00
docs-test docs: restructure documentation site and update integration UI (#1331) 2026-07-21 20:19:30 -07:00
hooks fix: add type checks for TypeScript workspaces (#1447) 2026-08-13 17:55:50 +05:30
lib fix(auth): upgrade Better Auth to patched 1.7.6 (#1719) 2026-10-02 17:05:13 -07:00
livekit-sdk-python feat(livekit): add persistent memory for LiveKit Agents (#1702) 2026-10-01 15:26:35 -07:00
memory-graph feat(memory-graph): add opt-in stacked nodes and emphasized connections (#1792) 2026-10-11 14:24:42 -07:00
openai-sdk-python fix(python): cap supermemory below 5 in the wrapper packages (#1774) 2026-10-06 09:44:59 -07:00
pipecat-sdk-python fix(python): cap supermemory below 5 in the wrapper packages (#1774) 2026-10-06 09:44:59 -07:00
tools fix(tools): align claude-memory insert with memory_20250818 line semantics 2026-10-12 13:43:04 -07:00
ui fix(ui): remove the unused, broken AnonymousAuth component (#1555) 2026-08-19 19:22:17 +05:30
validation fix(mcp): bound tool inputs and scope get_document to the active space (#1593) 2026-08-24 21:36:04 +00:00