WeKnora/internal/agent/operations
lyingbug a37a1bc51a
feat(agent): open more workspace operations to the WeKnora assistant (#4318)
* feat(agent): open more workspace operations to the WeKnora assistant

Reads: knowledge_base.list / list_shared / list_tags, knowledge.list_folders,
chunk.list, wiki.get_page / list_folders / list_revisions; knowledge.list
also takes tag_ids, folder_path and folder_recursive.

Recoverable writes: knowledge.update (title, summary), batch_reparse,
move_to_folder, rename_folder, create_manual, create_from_url,
knowledge_base.generate_profile, wiki.create_folder / move_page / revert.

x-agent gains catch_all for routes registered as *slug, which Swagger
cannot express. run_operation decodes knowledge_ids handles. The shared
knowledge base list, the tag page and the URL import body get concrete
Swagger types instead of free-form objects.

* fix(agent): show the assistant the change it is about to make

Manual documents can reach the API length limit, unpaginated lists cover
a tenant, and tag pages report their total. wiki.list_revisions can
return one stored revision before revert, and the confirmation card
names the URL, folder, version and documents.

* fix(agent): align catalog tests with the knowledge API allowlist

Catch-all assertions follow the knowledge routes, and the nested tag
page fixture stays inside an area the catalog accepts. The rune-limit
error also fits the line-length check.
2026-10-15 15:19:23 +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): open more workspace operations to the WeKnora assistant (#4318) 2026-10-15 15:19:23 +08:00
catalog_test.go fix(agent): admit catalog operations only from knowledge API areas (#4317) 2026-10-15 14:20:27 +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): open more workspace operations to the WeKnora assistant (#4318) 2026-10-15 15:19:23 +08:00
spec_test.go feat(agent): open more workspace operations to the WeKnora assistant (#4318) 2026-10-15 15:19:23 +08:00