(a: z.infer<typeof LogArgs>, ctx: ToolContext)
| 25 | argsSchema = LogArgs; |
| 26 | |
| 27 | async execute(a: z.infer<typeof LogArgs>, ctx: ToolContext): Promise<ToolResult> { |
| 28 | const kind = (a.kind ?? 'work') as WorklogKind; |
| 29 | try { |
| 30 | getSessionStore().addWorklogEntry(ctx.cwd, ctx.sessionId ?? null, a.entry, kind); |
| 31 | } catch (e: any) { |
| 32 | return { content: `Could not write to project memory: ${e?.message ?? e}`, isError: true }; |
| 33 | } |
| 34 | return { content: `Logged to project memory (${kind}): ${a.entry}` }; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | const RecallArgs = z.object({ |
nothing calls this directly
no test coverage detected