From 4192bb9dee7ae9fb0ca596f80da76f5a050b744a Mon Sep 17 00:00:00 2001 From: KS Jannette Date: Tue, 17 Feb 2026 13:53:48 -0500 Subject: [PATCH] more --- .gitignore | 2 +- src/index.ts | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index b8da958..acb05ac 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,4 @@ accounts.json # Runtime output summary.json -token-secondary.json +summary-secondary.json diff --git a/src/index.ts b/src/index.ts index 24a43ce..4c4bead 100644 --- a/src/index.ts +++ b/src/index.ts @@ -54,11 +54,13 @@ function getSummaryPath(account: string): string { } const VALID_ACCOUNTS = ["work", "secondary"] as const; +const accounts = loadAccounts(); +const accountDescription = VALID_ACCOUNTS + .map((key) => `"${key}" (${accounts[key]?.label ?? key})`) + .join(" or "); const accountSchema = z .enum(VALID_ACCOUNTS) - .describe( - "Which email account to use: \"work\" (sj@sjdev.co) or \"secondary\" (ken.jannette@gmail.com)" - ); + .describe(`Which email account to use: ${accountDescription}`); // --------------------------------------------------------------------------- // Load classification prompt @@ -169,7 +171,7 @@ server.registerPrompt( "review_emails", { description: - "Review WORK inbox (sj@sjdev.co): classify job application emails (A/B/C/D), delete A+C, summarize B+D.", + `Review WORK inbox (${accounts.work?.label ?? "work"}): classify job application emails (A/B/C/D), delete A+C, summarize B+D.`, }, () => { const instructions = loadClassificationPrompt(); @@ -197,7 +199,7 @@ server.registerPrompt( "review_secondary_emails", { description: - "Review SECONDARY inbox (ken.jannette@gmail.com): classify job application emails (A/B/C/D), delete A+C, summarize B+D.", + `Review SECONDARY inbox (${accounts.secondary?.label ?? "secondary"}): classify job application emails (A/B/C/D), delete A+C, summarize B+D.`, }, () => { const instructions = loadClassificationPrompt();