openalmanac 0.3.5 → 0.3.6

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.
@@ -1,20 +0,0 @@
1
- import { z } from "zod";
2
- import { request } from "../auth.js";
3
- export function registerPeopleTools(server) {
4
- server.addTool({
5
- name: "search_people",
6
- description: "Search for people to find their canonical slug for linking. Returns candidates with name, headline, " +
7
- "image, and location. Use the returned slug when creating stubs and [[links]] for people. Requires login.",
8
- parameters: z.object({
9
- query: z.string().describe("Search terms (e.g. 'John Smith MIT professor')"),
10
- limit: z.number().min(1).max(10).default(5).describe("Max results (1-10, default 5)"),
11
- }),
12
- async execute({ query, limit }) {
13
- const resp = await request("GET", "/api/people/search", {
14
- auth: true,
15
- params: { query, limit },
16
- });
17
- return JSON.stringify(await resp.json(), null, 2);
18
- },
19
- });
20
- }