(description = "Tool")
| 12 | const file = (path: string, body: string) => ({ path, bytes: encoder.encode(body) }); |
| 13 | |
| 14 | const tool = (description = "Tool") => ` |
| 15 | import { z } from "zod"; |
| 16 | import { defineTool } from "executor:app"; |
| 17 | export default defineTool({ |
| 18 | description: ${JSON.stringify(description)}, |
| 19 | input: z.object({ value: z.string() }), |
| 20 | handler(input) { return input; }, |
| 21 | }); |
| 22 | `; |
| 23 | |
| 24 | const makeMemoryStore = (): AppsStore & { |
| 25 | readonly rows: Map<string, unknown>; |