Commit Graph
154 Commits
Author SHA1 Message Date
version-bot b5b3357db7 chore(release): v0.2.7 [skip ci] 2026-11-02 17:07:29 +00:00
dasemu 5e3442f880 feat: WebAssembly module system and the Secrets vault module
Merged because the PR is ready, mergeable, and all required CI checks pass.
2026-11-02 18:07:17 +01:00
version-bot 785e3cf076 chore(release): v0.2.6 [skip ci] 2026-10-28 15:34:30 +00:00
dasemu b08bbd1883 Merge pull request #6 from Dasemu/feat/mcp-server
feat: MCP server for AI assistants (stdio + Streamable HTTP)
2026-10-28 16:34:20 +01:00
dasemu 45c9c2bc12 Merge remote-tracking branch 'origin/feat/mcp-server' into feat/modules
# Conflicts:
#	crates/synapse-ffi/src/api/graph_view.rs
2026-10-27 05:39:22 +01:00
dasemuandClaude Opus 5.5 265a411f4d fix(ffi): invalidate the graph cache on same-millisecond synapse fires
A visit that re-fires a synapse in the same millisecond as its last fire kept
the synapse count and max(last_fired) unchanged, so graph_data() served a
stale graph (and cache_is_invalidated_by_edits_and_visits failed
intermittently). The cache key now includes the total synapse weight.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 05:38:25 +01:00
dasemu 9c8748c7c2 Merge branch 'feat/mcp-server' into feat/modules
# Conflicts:
#	CLAUDE.md
#	Cargo.lock
#	crates/synapse-core/src/lib.rs
2026-10-27 05:31:59 +01:00
dasemuandClaude Opus 5.5 a000ef04b1 fix(ffi): graph_stats counts the contains and tagged edge kinds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:37:06 +01:00
dasemuandClaude Opus 5.5 2e0ee4dac7 docs: module limits, reserved ids and the vault's key rotation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:34:25 +01:00
dasemuandClaude Opus 5.5 5e5e1ba925 fix(ffi): graph cache also keys on total synapse weight (flaky cache test)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:34:25 +01:00
dasemuandClaude Opus 5.5 ada391a88e fix(app): reserved bundled module ids, existing-data warning, clipboard cleared on hide, fields reset per screen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:34:25 +01:00
dasemuandClaude Opus 5.5 0024438706 fix(secrets): per-key vault headers, data key rotation on password change, auto-lock on every request, bounded KDF parameters
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:34:25 +01:00
dasemuandClaude Opus 5.5 fcdfeb216a fix(modules): meter host calls, cap tables, storage quotas, separate key wrapping from sealing, no lock-order deadlock, unique macro names
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:34:25 +01:00
dasemuandClaude Opus 5.5 0faff9ae96 test: schema v9 in migration tests; drop an unused import
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:22:19 +01:00
dasemuandClaude Opus 5.5 f8fe17b50f docs(mcp): document journal side effects, schema check and known limits
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:22:14 +01:00
dasemuandClaude Opus 5.5 053d1f9d90 fix(server): refuse an MCP token equal to a sync token
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:22:14 +01:00
dasemuandClaude Opus 5.5 4195374c23 fix(mcp): harden stdio opens, commits and user-supplied ranges
- Check per call that synapse.db exists and is on this binary's schema, so
  the stdio server never migrates or re-stamps the app's live database.
- Keep the transaction open (rolled back on drop) when COMMIT fails.
- Reject dates outside years 1000-9999 and oversized cursors (overflow).
- core: export SCHEMA_VERSION.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:22:14 +01:00
dasemuandClaude Opus 5.5 fa98fba43f docs: modules, the Secrets vault and sync protocol v2; lint modules in CI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:19:45 +01:00
dasemuandClaude Opus 5.5 0d8c6f4c55 feat(app): Modules settings, module views in the sidebar and block macros
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:19:45 +01:00
dasemuandClaude Opus 5.5 7d338e6d30 style: cargo fmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:19:45 +01:00
dasemuandClaude Opus 5.5 0253cd4180 docs(mcp): document the MCP server, setup and tools
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:14:27 +01:00
dasemuandClaude Opus 5.5 8459838d01 feat(server): serve MCP over Streamable HTTP at /v1/graphs/{id}/mcp
Enabled by SYNAPSE_MCP_TOKEN (own bearer tokens, constant-time check),
write tools with SYNAPSE_MCP_ALLOW_WRITE=1, Host allowlist via
SYNAPSE_MCP_ALLOWED_HOSTS. Stateless JSON responses; tools run on the shared
graph handle and wake SSE subscribers after writes. Never creates graphs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:13:44 +01:00
dasemuandClaude Opus 5.5 1027ef6161 feat(ffi): install, list, enable and call modules
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:10:16 +01:00
dasemuandClaude Opus 5.5 c0f0716d3b feat(mcp): add synapse-mcp server with stdio binary
Read tools (search, get_page, get_journal, list_pages, backlinks, related,
list_tags, list_types, hubs, timeline, journal_links) and page-curation write
tools behind --allow-write (create_page, append_blocks, update_block,
delete_block, set_page_type, set_page_tags, set_page_hub). Journals are
read-only. Reads run in a rolled-back transaction; writes in BEGIN IMMEDIATE
through the Graph API so they are logged as ops and sync.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:09:41 +01:00
dasemuandClaude Opus 5.5 c8f7cdaf92 refactor(import): expose the Markdown outline parser
The MCP server reuses it to turn Markdown outlines into nested blocks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:09:41 +01:00
dasemuandClaude Opus 5.5 2d21bd8028 feat(modules): module SDK and the Secrets vault module
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:08:33 +01:00
dasemuandClaude Opus 5.5 5627ca7f84 feat(modules): sandboxed WebAssembly module host with permissions and host crypto
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:08:33 +01:00
dasemuandClaude Opus 5.5 523f3b28fa feat(sync): protocol v2 for the put_type_def and put_module_data ops
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:08:33 +01:00
dasemuandClaude Opus 5.5 c9ebb4fd30 feat(core): per-module key-value data synced as PutModuleData (schema v9)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 16:08:33 +01:00
version-bot 6c11d851f2 chore(release): v0.2.5 [skip ci] 2026-10-26 07:21:15 +00:00
dasemu 70d022ad36 Merge pull request #5 from Dasemu/feat/settings-theme-tree
feat: settings, themes, tabs, tags and types, hubs as tags, clean-up, perf
2026-10-26 08:21:06 +01:00
dasemuandClaude Opus 5.5 12c3cd463b Merge branch 'feat/tags-types-view' into feat/settings-theme-tree
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:56:25 +01:00
dasemuandClaude Opus 5.5 8a0fdc7610 fix(app): type icon cache refreshes on reload and reaches the tree view
loadTypeIcons logs failures, only notifies on change and bumps iconsVersion;
every generation bump reloads it. The tree re-resolves label icons when
iconsVersion changes, without re-running the layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:55:22 +01:00
dasemuandClaude Opus 5.5 1a8bca5deb fix(app): tag view refreshes type icons after renaming or removing a tag
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:55:22 +01:00
dasemuandClaude Opus 5.5 ad03383933 test(app): MemoryBackend follows the core's type spelling, name cap and icon clearing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:53:24 +01:00
dasemuandClaude Opus 5.5 872073a0a0 fix(core): clearing an undefined type's icon defines nothing
Also covers that renaming a plain tag leaves an undefined (suggested) type
of that name alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:52:44 +01:00
dasemuandClaude Opus 5.5 7de2a319d7 perf: optimised Rust in debug builds, profile-mode interaction benchmark
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:52:04 +01:00
dasemuandClaude Opus 5.5 bd2236bb89 docs: type emoji, Tags & types view, type_defs sync and history
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:45:04 +01:00
dasemuandClaude Opus 5.5 00a64401e0 feat(app): show the type emoji before page names
Page header, All pages, quick switcher, recents, tabs, hub members, tag view,
linked references, related pages, type pill and the tree view; not the network
graph.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:44:35 +01:00
dasemuandClaude Opus 5.5 a5bee50190 feat(app): Tags & types view with an emoji picker for types
Sidebar entry and tab route. Types: emoji, count, create, rename, delete.
Tags: count and sources; explicit tags can be renamed or deleted, hub and
type tags are locked with an explanation. AppState caches type icons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:44:35 +01:00
dasemuandClaude Opus 5.5 381e9044c4 feat(ffi): type icon API and page types in list DTOs
create_type, set_type_icon, rename_type and remove_type; TagDto carries the
icon and tag sources; PageBrief, TitleHit, BacklinkGroup and GraphNode
carry the page type. Bindings regenerated; MemoryBackend mirrors the core.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:37:33 +01:00
dasemuandClaude Opus 5.5 4fb3b39c03 feat(core): tag catalog counts explicit, type and hub sources per tag
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:34:23 +01:00
dasemuandClaude Opus 5.5 2b079a8d74 feat(history): export and restore type icons in types.json
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:33:33 +01:00
dasemuandClaude Opus 5.5 206b62d4ab feat(core): type definitions with an emoji icon, synced as PutTypeDef
Schema v8 adds type_defs (name, icon, tombstone, hlc). create_type,
set_type_icon, remove_type and rename_type; rename_tag moves the icon and
type_catalog lists icons and defined-but-unused types.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:33:33 +01:00
dasemuandClaude Opus 5.5 7c898f4fcd feat(app): clean up also offers empty journals, except today's
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 06:32:56 +01:00
dasemuandClaude Opus 5.5 a8559fd467 feat(app): mouse back/forward buttons walk the tab history
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 04:11:27 +01:00
dasemuandClaude Opus 5.5 141e1a20d0 feat(app): clean up also offers every empty page, with select all/none
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 04:11:27 +01:00
dasemuandClaude Opus 5.5 ad62a7d258 feat(graph): a hub stands for its implicit tag, no separate tag node beside it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 04:11:27 +01:00
dasemuandClaude Opus 5.5 58c3ee9611 feat(app): no previous/next links in the journals list, only on a journal opened alone
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 04:03:14 +01:00
dasemuandClaude Opus 5.5 b44cbee038 feat(app): quick switcher also finds pages by block content
BlockHit carries the page id so a hit opens its page (journals included).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 04:02:21 +01:00