Fifth revision: share-link AI safety, sturdier generation, cleaner UI
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 1m0s
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 1m0s
- Malformed model JSON is sent back for repair, then retried; a failed job starts over once before it fails. Visitors can dismiss failed sets. - Generated sets get a short distinct name and description; flashcards are atomic and have no hints; standard study shows known/learning counts. - Share links: "In progress" list, finished sets join the normal lists with a "New" tag, plain progress steps, newest exam first. - Share-link AI expires after a week, can be limited to the US or Arizona (DB-IP Lite or Cloudflare headers) and is locked by abuse protection (migration 8). - The assistant never answers from general knowledge; MCP and web search tools load without a manual test. - Plain-text copy, no question count in exam mode, filler text removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d8df5edf30
commit
85d5c9186d
46 changed files with 1242 additions and 283 deletions
|
|
@ -563,7 +563,7 @@ export const DECK_JSON_TEMPLATE = JSON.stringify(
|
|||
title: 'Example deck',
|
||||
description: 'Optional description',
|
||||
cards: [
|
||||
{ front: 'Furosemide: drug class', back: 'Loop diuretic', hint: 'Acts on the loop of Henle', tags: ['pharm'] },
|
||||
{ front: 'Furosemide: drug class', back: 'Loop diuretic', tags: ['pharm'] },
|
||||
{ front: 'Normal serum potassium', back: '3.5 to 5.0 mEq/L', tags: ['labs'] },
|
||||
],
|
||||
}),
|
||||
|
|
@ -657,14 +657,13 @@ Use exactly this shape:
|
|||
"title": "Short title",
|
||||
"description": "One sentence about what this covers",
|
||||
"cards": [
|
||||
{ "front": "Term or question", "back": "Answer", "hint": "Optional memory aid", "tags": ["topic"] }
|
||||
{ "front": "Term or question", "back": "Short answer", "tags": ["topic"] }
|
||||
]
|
||||
}
|
||||
|
||||
Rules:
|
||||
- One fact or idea per card. Fronts are specific questions or terms; backs are short.
|
||||
- For medications, put the generic name on the front and use a short Markdown list on the back: class, action, key adverse effects, nursing considerations.
|
||||
- "hint" is optional. Leave it out or use "" when there is no good memory aid.
|
||||
- Atomic cards: one fact per card. The front asks one specific question; the back is only the answer, a word, number or short phrase (ideally under 10 words). No explanations or paragraphs on the back.
|
||||
- Split anything with several parts (a drug's class, action and side effects) into separate cards.
|
||||
- Markdown is allowed inside strings (bold, lists, tables). Write line breaks inside strings as \\n.
|
||||
- The output must be valid JSON: double quotes around every key and string, no trailing commas.
|
||||
- Base everything on the material below. Do not add facts that are not in it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue