mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-24 07:12:18 +10:00
feat: add application timeline history (#3237)
* feat: add application timeline history * fix: address application timeline review * fix: keep application tracker e2e stable * fix: use stable timeline e2e selector * fix: target timeline note input in e2e
This commit is contained in:
@@ -410,11 +410,33 @@ export function registerTools(server: McpServer, client: RouterClient<typeof rou
|
||||
server.registerTool(
|
||||
T.addApplicationNote,
|
||||
TOOL_META[T.addApplicationNote],
|
||||
withErrorHandling("adding application note", async ({ id, text: noteText }: { id: string; text: string }) => {
|
||||
return json(await client.applications.addNote({ id, text: noteText }));
|
||||
withErrorHandling(
|
||||
"adding application note",
|
||||
async ({ id, text: noteText, date }: { id: string; text: string; date?: string | undefined }) => {
|
||||
return json(await client.applications.addNote({ id, text: noteText, date }));
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
server.registerTool(
|
||||
T.updateApplicationTimelineEntry,
|
||||
TOOL_META[T.updateApplicationTimelineEntry],
|
||||
withErrorHandling("updating application timeline entry", async (params) => {
|
||||
return json(await client.applications.updateTimelineEntry(params as never));
|
||||
}),
|
||||
);
|
||||
|
||||
server.registerTool(
|
||||
T.deleteApplicationTimelineEntry,
|
||||
TOOL_META[T.deleteApplicationTimelineEntry],
|
||||
withErrorHandling(
|
||||
"deleting application timeline entry",
|
||||
async ({ id, entryId }: { id: string; entryId: string }) => {
|
||||
return json(await client.applications.deleteTimelineEntry({ id, entryId }));
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
server.registerTool(
|
||||
T.deleteApplication,
|
||||
TOOL_META[T.deleteApplication],
|
||||
|
||||
Reference in New Issue
Block a user