Spaces:
Running
Running
Commit History
7 days ago
-
Bump version: 0.10.0.dev0 β 0.9.2 Running
67e06a3 -
Log whether the app can reach Cloudflare siteverifyβ
In production every Turnstile check fails with a ConnectTimeout to challenges.cloudflare.com, on both attempts, though the Space reaches the Anthropic API and the HF Hub. The log does not tell whether IPv4, IPv6 or all of Cloudflare is unreachable, so the fix is unclear. When Turnstile is on, the app now tests the connection at startup and after a network error (at most every 10 minutes), in the background. It logs one "Turnstile probe:" line per check: DNS, TCP to each address, siteverify over the default route, IPv4 and IPv6, and https://www.cloudflare.com/. The siteverify checks send Cloudflare's test secret, never the real one.ae59f0f -
Log why a Turnstile check fails and retry a network errorβ
In production every Turnstile check failed with the log line "Turnstile verification failed:" and nothing after it: the call to Cloudflare siteverify raised an httpx timeout or connect error, whose message is empty. A token that Cloudflare rejected was not logged at all. The warning now names the exception and how long the call took, or Cloudflare's error codes and hostname, or the HTTP status and the start of the body of an error page. The secret and the token are never logged. A network error is retried once with the same idempotency key, so Cloudflare does not reject the retry as a reused token. README-DEV lists what each warning means.178059b -
Bump version: 0.9.1 β 0.10.0.dev0
6c39fb4 -
Bump version: 0.10.0.dev0 β 0.9.1
2d319a5 -
Keep cached AI answers until the dataset changesβ
Answers were cached for 24 hours, though the dataset changes only monthly and the cache key already holds the snapshot. In November, 328 of 1,316 paid answers repeated a question answered more than a day before with the same snapshot. The default ANKI_CATALOG_ANSWER_CACHE_TTL_SECONDS is now 31 days, and the cache holds 5,000 answers instead of 1,000. The "recently updated" filter counts from today, so its cutoff date is part of the cache key and such answers last a day. The cache stays in memory: a deploy or a restart empties it.05371de -
Start the AI answer by itself for a typed question or a cached answerβ
Since 0.9.0 the AI answer waits for a click, so a visitor who typed a question on the home page had to click a second time, and a cached answer, which costs nothing, waited for a click and the human check. The search box now hands a submitted question to the search page in sessionStorage, and the page starts the AI when its query matches (once; a reload or a filter change is not typing). On load, every AI section first asks /api/ask?cached=1, which returns only a cached answer, without Turnstile or the rate limit, or a not_cached event that shows the button.9a1bbc3 -
Bump version: 0.9.0 β 0.10.0.dev0
3eb20d6 -
Bump version: 0.9.0.dev0 β 0.9.0
3944450 -
Count the cost of AI calls stopped when the visitor leavesβ
The app added a model call's cost only after the call finished. When the visitor left, the running call was stopped and its cost was lost, although the API bills it. In November the app counted $10.27 while the workspace was charged $20.00; about $6.70 of the gap came from the 5,864 cancelled questions. The Claude adapter now keeps the token counts that the API sends at the start of a reply (input, cache read, cache write) and reports them when the call is cancelled. The cost counts towards the daily and monthly budgets and the question log, where the stopped call shows as a "cancelled" round. Output tokens arrive only at the end of a reply, so a stopped call counts about one.f6cbe0c -
Add a monthly AI budget and pause at the workspace spend limitβ
When the Anthropic workspace reached its spend limit, every AI question failed with "Something went wrong while answering", and each one still sent a request to the API. The app knew only a daily budget. A monthly budget (ANKI_CATALOG_MONTHLY_BUDGET_USD, default $18) now stops AI search before a $20 workspace limit. If the API still reports the limit, the app pauses AI search until the time in the error and sends no more requests. In all three cases visitors see "AI search is paused until <date> because its budget is used up", and the question log records the outcome "budget". The admin usage page shows the month's spend and the pause.365ef12 -
Limit AI questions per Turnstile pass, not only per IPβ
The pass cookie was not bound to an IP and not counted, so a bot that solved Turnstile once could reuse the cookie from many IPs for an hour, with a fresh rate limit on each. Each pass now has a random id, and the rate limit counts questions per pass as well as per IP. Cookies in the old format no longer validate, so visitors who passed the check before the deploy solve it once more.0155d96 -
Start the AI answer only when the visitor clicks a buttonβ
The search page and the alternatives page used to ask the AI as soon as they loaded. Most of these questions were cancelled: a filter change reloads the search page, and many visitors leave the alternatives page within a few seconds. They still cost money, more than half of the AI spend since 17 November. The AI answer section now shows a button ("Ask the AI", "Ask the AI for alternatives"); the question and the human check start on a click. robots.txt also keeps crawlers away from the alternatives pages.32e4a43
10 days ago
-
Show the "Built with AI" badge only on the addon pageβ
Addon cards in search results and other lists no longer show the badge. The addon page still shows it, with the signals in its tooltip.67fbc75 -
Mark addons built with AIβ
The addon page and every addon card show a "Built with AI" badge when the addon has AI coding tool traces in its GitHub repo, AI-usage words in its AnkiWeb description, or the "ai" feature tag: an author who builds AI features most likely also uses AI to write the code. The badge's tooltip lists the signals found. The declaration words also match addons that only use AI as a feature; such addons carry the "ai" tag anyway, so they would get the badge either way.79ca5dc -
Upgrade to anki-addons-mcp 0.13.1β
MCP 0.13.1 keeps dataset v2.0-2026-11-01. Addon cards gain ai_development, the evidence of AI-assisted development: AI coding tool traces in the GitHub repo (tooling) and AI-usage words in the AnkiWeb description (declaration); cards without evidence leave it out. The site does not show it: the declaration words also match addons that only use AI as a feature. The AI prompt explains the field as pattern matches, not proof, and tells the AI to mention it only when the visitor asks.78d48ce -
Keep the filter panel's scroll bar off the fieldsβ
Browsers with overlay scroll bars drew the filter panel's bar over the right edge of its fields, and the category and language lists' bar over their counts. The panel and the lists now leave room for the bar on their right.9d04acc -
Bump version: 0.8.0 β 0.9.0.dev0
c02d523 -
Bump version: 0.8.0.dev0 β 0.8.0
d172554 -
Fix the "No matches" message overlapping the find fieldβ
Pico moves a small text after a field up into the field's bottom margin, which the filter panel makes smaller, so "No category matches." and "No language matches." covered the bottom of their find field. They now sit below it.ae1e9c4 -
Square the search fields in the filter panelβ
Pico makes search fields round, so the Keywords, category and language fields looked different from the Anki version field next to them. They now have the same corners as the other fields.8ee7628 -
Add a search field to the category filterβ
The category list is long, like the language list, so it gets the same find field: it hides the categories that do not contain the typed text, a chosen category stays visible so it can be cleared, and a message shows when nothing matches. The field does not reload the page and is not part of the search URL.8575b0f -
Filter the Browse page by keywordsβ
A Keywords field in the filter panel narrows the list with a full-text search (titles, descriptions, AI summaries, tags, GitHub topics) and keeps the chosen sort order through the sort_by of search_addons in MCP 0.13.0. It runs no AI. Keywords only apply while browsing, like the sort order: a question drops them, so the AI and the keyword matches never see them.a995bab
15 days ago
-
Bump version: 0.7.0 β 0.8.0.dev0
5680b96 -
Bump version: 0.7.0.dev0 β 0.7.0
11285db -
Show the sort order first and the language filter lastβ
"Sort by" moves to the top of the filter panel, before "Your Anki version", and the long "Programming language" group moves to the bottom, after "Categories".9b4579d -
Add a search field to the programming language filterβ
The language list is long and sorted by how many addons use each language, so a rare language was hard to find. A field above the list now hides the languages that do not contain the typed text; a chosen language stays visible so it can be cleared, and a message shows when nothing matches. The field does not reload the page and is not part of the search URL.a28f866 -
Filter search results by programming languageβ
Add a "Programming language" group to the filter panel: the visitor can choose several languages, and an addon must contain all of them. The list shows every language found in the GitHub repos and AnkiWeb packages, with counts, most used first. The filter also applies to the AI answer; languages the AI asks for are added to the visitor's choice.cac0a26 -
Upgrade to anki-addons-mcp 0.12.0 and show the license and virus scanβ
MCP 0.12.0 follows dataset v2.0-2026-11-01, which adds licenses and ClamAV scan results. Each addon gets one license with its source (package license file, GitHub, .py headers, README or description); cards and the license statistics use it, and github.license can be NOASSERTION. get_addon no longer returns github.languages, and cards and the search tools gain primary_language. The addon page shows the addon's license with its source and the ClamAV result of the newest package, with a note on what a scan can prove. The GitHub language row reads language_bytes. Cards built from get_addon take the resolved license, as the search results do. The AI prompt explains a null license and the limits of a ClamAV scan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>969a806 -
Shorten the alternatives button to "Find alternatives"β
The button next to "Open on AnkiWeb", "GitHub" and "Forum topic" said "Ask about alternatives", which was long for a button.06040d1 -
Give "Ask about alternatives" a short link: /addon/<id>/alternativesβ
The button linked to /search?q=Alternatives%20to%20...%20%28addon%20<id>%29, which is long and ugly to share, and the keyword matches under the AI answer were mostly noise for that sentence. The new page asks the AI the same question, built on the server, so every visitor of a shared link hits the answer cache. Below the answer it lists similar addons found without AI, so the page is still useful when the AI is not available. It keeps the Anki version as a filter, has its own link preview, and is noindex for now. The AI answer section is now a partial shared with the search page. Old /search links keep working.ef05478 -
Name the addon id in "Ask about alternatives"β
The button asked "Addons similar to <title>". Titles are not unique, so the AI searched by title first and could pick a fork or a copy: the original Review Heatmap is only the 7th result of a title search. The question is now "Alternatives to <title> (addon <id>)", and it keeps the Anki version the visitor checked on the page as a filter. The AI prompt asks Claude to start from a named addon id (get_addon and find_similar_addons), not to recommend the addon itself or its copies as alternatives, and to say how each alternative differs.33061a1
18 days ago
-
Bump version: 0.6.3 β 0.7.0.dev0
ce32028 -
Bump version: 0.7.0.dev0 β 0.6.3
992779e -
Upgrade to anki-addons-mcp 0.11.0 and show addon copiesβ
MCP 0.11.0 follows dataset v1.0-2026-11-01 and pins the dataset to that tag; the in-process server takes the pin from its defaults. It adds copies (duplicate_of/duplicates: listings whose newest packages are byte-identical) and shared GitHub repos (github.shared_with). The addon page says which addon a copy copies, lists the copies of an original and the other addons of the same repo (at most 10 links), and notes that the stars belong to the whole repo. Cards of copies get a copy badge that links to the original. The AI prompt asks Claude to prefer originals, to name copies, and not to compare addons of one repo by repo numbers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>a587037
22 days ago
-
Show the live addon count and forks in link previewsβ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>78529a8 -
Bump version: 0.6.2 β 0.7.0.dev0
91f4098 -
Bump version: 0.7.0.dev0 β 0.6.2
672b42c -
Show the app version on the header's Beta labelβ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1553c87 -
Bump version: 0.6.1 β 0.7.0.dev0
b862e3a -
Bump version: 0.7.0.dev0 β 0.6.1
aa5e0c6 -
Bump version: 0.6.0 β 0.7.0.dev0
9caf840 -
Bump version: 0.6.0.dev0 β 0.6.0
54e35f6
23 days ago
-
Shorten the package languages label on the addon pageβ
The AnkiWeb box already says where the data comes from, so "Languages" is enough. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>bcf139c -
Upgrade to anki-addons-mcp 0.10.1 and show package languagesβ
The server renamed the GitHub fork count from forks to fork_count, so the addon page showed "forks" with no number. Read the new name. Show the languages detected in the AnkiWeb package: a row on the addon page, which also covers addons without GitHub, and a group on the stats page. Give the two language groups clear titles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>63974fc
29 days ago
-
Bump version: 0.5.0 β 0.6.0.dev0
4b2fc66 -
Bump version: 0.5.0.dev0 β 0.5.0
2af0229 -
Treat user reviews and package files as third-party content in the AI promptβ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>99a702b -
Upgrade to anki-addons-mcp 0.9.1 and let the AI use its new toolsβ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>78f48c7
-
Grow the search box with the questionβ
The question field is now a textarea that starts at one line and grows up to 40% of the screen. Enter asks and Shift+Enter starts a new line; Enter that confirms an input method (Japanese, Chinese, Korean) does not submit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>452d66b