WeKnora/internal/agent/operations
lyingbug aaa1accebd
feat(agent): let the assistant delete and move documents in batches (#4319)
* feat(agent): let the assistant delete and move documents in batches

A batch target can now resolve each item: x-agent "items" names the list
parameter and a read run once per item, and the approval lists every
title under the knowledge base name. The list must be capped at
MaxApprovalItems (20) by x-agent-maximum, which now also bounds string
lists, so nothing approved goes unnamed. One item the user cannot read
blocks the whole batch before any prompt.

New operations: knowledge.batch_delete, knowledge.move (to another
knowledge base, destination named on the card),
knowledge.get_move_progress and knowledge_base.list_move_targets.
The move and move-progress Swagger responses now show their data
envelope.

The approval card keeps line breaks in its description and renders
trailing "- " lines as a scrollable list.

* fix(agent): reconcile batch approvals with workspace operation updates

* fix(agent): keep every batch approval item visible
2026-10-15 15:57:58 +08:00
..
builtin.go feat(agent): add the built-in WeKnora assistant with an operation catalog (#4302) 2026-10-15 12:18:30 +08:00
catalog.go feat(agent): let the assistant delete and move documents in batches (#4319) 2026-10-15 15:57:58 +08:00
catalog_test.go feat(agent): let the assistant delete and move documents in batches (#4319) 2026-10-15 15:57:58 +08:00
dispatch.go feat(agent): add the built-in WeKnora assistant with an operation catalog (#4302) 2026-10-15 12:18:30 +08:00
projection.go feat(agent): open more workspace operations to the WeKnora assistant (#4318) 2026-10-15 15:19:23 +08:00
request.go feat(agent): open more workspace operations to the WeKnora assistant (#4318) 2026-10-15 15:19:23 +08:00
spec.go feat(agent): let the assistant delete and move documents in batches (#4319) 2026-10-15 15:57:58 +08:00
spec_test.go feat(agent): let the assistant delete and move documents in batches (#4319) 2026-10-15 15:57:58 +08:00