Repository navigation
Tags
Tags
Keep the search cache for a week by default Cards are assumed to change only through this server, whose writes already update the index. Loaded decks now stay cached for 168 hours, configurable with MOCHI_SEARCH_CACHE_TTL_HOURS. The tool description, server instructions and README state that edits made in the Mochi app need refresh=true.
Add search_cards and merge partial field updates Mochi's API has no search. search_cards loads the requested decks once through the queue (or the whole account), caches cards for 10 minutes and filters locally by text, field ID or name, tag or template, with several terms per call. Writes made through the server update the index immediately; refresh reloads, verify re-fetches each hit live, and results report index age. Loading longer than wait_seconds returns partial progress. update_card and update_cards now read the live card and merge when only some template fields change, so partial updates never drop other fields.
Release on every main change and gate Dependabot merges on CI - Release workflow: on push to main (plus a daily catch-up for auto-merges and manual runs), derive the next semver tag, test, publish the multi-arch image, smoke-test it, then create the GitHub release with the pinned digest. - Derive versions from git tags instead of package.json. - Queue auto-merge for Dependabot minor/patch PRs; branch protection requires the CI checks first. - CI: lint workflows with actionlint, check OAuth metadata in the container smoke test, and verify the server refuses to start without an auth secret.