feat: add define tools

This commit is contained in:
2025-05-14 20:18:58 +08:00
parent 6d148e47f1
commit fc35b531e1
6 changed files with 157 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import { pathToRegexp, Key } from 'path-to-regexp';
import type { IncomingMessage, ServerResponse } from 'http';
import type { IncomingMessage, ServerResponse } from 'node:http';
import { parseBody, parseSearch } from './server/parse-body.ts';
type Req = IncomingMessage & { params?: Record<string, string> };