zam-core 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16711,9 +16711,10 @@ function createMcpServer(db) {
16711
16711
  "zam_open_recall",
16712
16712
  {
16713
16713
  title: "Open ZAM recall session",
16714
- description: "Open the ZAM spoiler-free recall card. The user answers due review questions entirely inside the card: type an answer (or reveal directly), compare with the stored concept, and self-rate \u2014 the card books ratings itself via zam_submit_review. No chat interaction is required or expected.",
16714
+ description: "Open the ZAM spoiler-free recall card. The user answers due review questions entirely inside the card: type an answer (or reveal directly), compare with the stored concept, and self-rate \u2014 the card books ratings itself via zam_submit_review. No chat interaction is required or expected. Pass an optional domain to scope the session to one topic (e.g. domain: 'rag').",
16715
16715
  inputSchema: {
16716
- user: z.string().optional().describe("User ID")
16716
+ user: z.string().optional().describe("User ID"),
16717
+ domain: z.string().optional().describe("Domain focus (e.g. 'rag') \u2014 scopes the review queue")
16717
16718
  },
16718
16719
  annotations: {
16719
16720
  ...commonAnnotations,
@@ -16723,14 +16724,17 @@ function createMcpServer(db) {
16723
16724
  ui: { resourceUri: RECALL_RESOURCE_URI }
16724
16725
  }
16725
16726
  },
16726
- wrapHandler(async ({ user }) => {
16727
- const userId = await getUserId(user).catch(() => null);
16728
- return {
16729
- recall: "zam",
16730
- version: pkg.version,
16731
- user: userId
16732
- };
16733
- })
16727
+ wrapHandler(
16728
+ async ({ user, domain }) => {
16729
+ const userId = await getUserId(user).catch(() => null);
16730
+ return {
16731
+ recall: "zam",
16732
+ version: pkg.version,
16733
+ user: userId,
16734
+ domain: domain ?? null
16735
+ };
16736
+ }
16737
+ )
16734
16738
  );
16735
16739
  registerAppResource(
16736
16740
  server,