/** * tm layer — zod arg schemas (ZodRawShape) with descriptor fallback. * Split out of the former tools.ts hub; behavior unchanged. * * Per-tool `args` — a ZodRawShape (plain `{key: validator}` object, official * tool.d.ts:47-50), NOT a z.object(): the host serializes the raw shape into * the LLM parameter spec. Wrapping it in z.object produced `{def:{command: * ...}}` garbage args in real sessions (the model wrapped its args 3/3 * times), even though flat args reached execute fine. */ import { type ConfigFileRoots } from "./config-files.js"; import type { EnvLike } from "./config-layers.js"; declare function buildArgsSchemas(): Promise>>; export { buildArgsSchemas }; /** * tm_webfetch args — same ZodRawShape treatment (BUG#3 class); descriptor * fallback when zod is absent. tm/index awaits this and passes the result * into buildTmWebfetchTool as `deps.args`. */ export declare function buildWebfetchArgsSchema(): Promise>; /** * tm_search args — same ZodRawShape treatment (BUG#3 class); descriptor * fallback when zod is absent. tm/index awaits this and passes the result * into buildTmSearchTool as `deps.args`. * * Wave B M1 — the engine list is DERIVED from search.ts's live * `SEARCH_ENGINE_NAMES` + `AUTO_ENGINE_KEY`, never hand-written: a static * copy here once drifted to a dead roster (bing-int/sogou/so/baidu kept, * stackoverflow/hn/auto missing, default lied "bing"). Because * buildTmSearchTool uses `deps.args ?? fallback`, this schema IS the * model-visible surface in production (the search.ts fallback never fires), * so it must not go stale. `defaultEngine` falls back to * resolveConfig().searchDefaultEngine so the descriptor states the real * default (auto) — callers may pass cfg.searchDefaultEngine explicitly. * The §6m-s anti-drift test asserts the descriptor names every * SEARCH_ENGINE_NAMES entry and none of the removed engines. */ export declare function buildSearchArgsSchema(defaultEngine?: string, layeredInput?: { env?: EnvLike; roots?: ConfigFileRoots; }): Promise>; /** * tm_memory args — same ZodRawShape treatment (BUG#3 class); descriptor * fallback when zod is absent. */ export declare function buildMemoryArgsSchema(): Promise>; /** tm_board_write — four strings, and the shape of the PATH is the tool's * business, not the model's (that is what makes it safe to hand a writer to a * role that owns no write-capable file tool). */ export declare function buildBoardArgsSchema(): Promise>; //# sourceMappingURL=args-schema.d.ts.map