kimi-code/packages
Kai e47ca10267
feat(agent-core): slim WebSearch to query-only; fetch page content via FetchURL (#1260)
* feat(agent-core): slim WebSearch to query-only; fetch page content via FetchURL

The coding search backend no longer honors `limit`/`enable_page_crawling` and
always returns full page content, which was token-heavy and frequently
truncated. Realign the web tools around a search+fetch split:

- WebSearch request sends only `text_query`; the tool exposes only `query`.
- Search results drop inline page content and add the source site; full page
  content is now fetched on demand via FetchURL.
- Add a citation reminder to both WebSearch and FetchURL results (in the
  FetchURL front note so it survives body truncation).
- Update tool descriptions and reference docs accordingly.

* fix(agent-core): satisfy no-base-to-string lint and drop redundant | undefined

- Assert the exact serialized WebSearch request body instead of String()-coercing
  a BodyInit, fixing the type-aware no-base-to-string lint error.
- Drop redundant `| undefined` from WebSearchResult optional fields per AGENTS.md.
- Add changeset.

* chore(changeset): bump agent-core to minor for WebSearch input-contract change

Removing the `limit`/`include_content` tool inputs tightens a closed
(`additionalProperties: false`) schema, so previously-valid args are now
rejected — an incompatible change for a released package. Bump minor rather
than patch.
2026-07-01 18:46:15 +08:00
..
acp-adapter ci: release packages (#1224) 2026-07-01 10:51:54 +08:00
agent-core feat(agent-core): slim WebSearch to query-only; fetch page content via FetchURL (#1260) 2026-07-01 18:46:15 +08:00
kaos ci: run unit tests on windows (#1037) 2026-06-26 11:56:41 +08:00
kimi-migration-legacy feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
kosong fix(agent-core): harden strict-provider wire compliance so malformed history can't brick a session (#1241) 2026-07-01 02:16:19 +08:00
migration-legacy refactor!: overhaul thinking config and effort resolution (#1132) 2026-06-30 22:34:13 +08:00
node-sdk ci: release packages (#1224) 2026-07-01 10:51:54 +08:00
oauth refactor!: overhaul thinking config and effort resolution (#1132) 2026-06-30 22:34:13 +08:00
protocol ci: release packages (#1224) 2026-07-01 10:51:54 +08:00
server ci: release packages (#1224) 2026-07-01 10:51:54 +08:00
server-e2e fix(web): stop auto-dismissing pending questions and approvals on a timeout (#1070) 2026-06-24 19:15:06 +08:00
telemetry ci: run unit tests on windows (#1037) 2026-06-26 11:56:41 +08:00