(args: Record<string, unknown>)
| 45 | } |
| 46 | |
| 47 | function openInAdmin(args: Record<string, unknown>): string | null { |
| 48 | const p = typeof args.path === "string" ? args.path : null; |
| 49 | if (!p) return null; |
| 50 | const cleanPath = p.replace(/\.md$/, ""); |
| 51 | return `${kbApiBase()}/page/${cleanPath}`; |
| 52 | } |
| 53 | |
| 54 | function formatValue(v: unknown): string { |
| 55 | if (v === null || v === undefined) return "—"; |
no test coverage detected