WeKnora/internal/handler
lyingbug 270b64f6ec
feat(agent): preview skill artifacts and verify installs without running them (#2823)
* feat(agent): preview skill artifacts and verify installs without running them

Generated files open in the chat drawer with overlay/Esc returning to the
list, and install verification no longer executes guessed skill entry
points. A failed install can be retried from the saved archive.

* ui(chat): use a folder icon and corner count for skill artifacts

The eye and document glyphs read as preview or copy, and TDesign's
loading spinner sat beside the icon. A folder with a top-right count
matches the generated-files drawer without covering the toolbar action.

* feat(artifact): implement inline artifact references with previews

Add support for inline artifact references in Markdown, allowing generated files to be displayed as clickable cards. Implemented a new rendering mechanism for artifacts, enabling previews directly from the chat interface. Updated localization files for new inline preview hints and missing file messages. Introduced tests for artifact reference normalization and rendering logic.

* fix(client): document AgentResponseType constants for revive

Touching the const block made golangci-lint require comments on every
exported value. Match the rest of the SDK and describe artifacts_pending.

* fix(agent): wrap artifact-reference prompt lines for lll

Pre-push golangci-lint rejected the branch on three lines over 120
characters in the sandbox: reference guidance.

* fix(agent): scope HTML scripts and tighten install verification

Keep scripted HTML preview on skill artifacts only, recreate sandbox
workspace dirs after they are deleted, and treat nested skill files as
dependencies rather than first-party imports.

* refactor(artifact): enhance artifact reference handling and metadata

Updated artifact metadata to include a stable resource handle for better identification. Adjusted artifact reference resolution to support both handle and name forms, ensuring compatibility with existing references. Enhanced tests to validate the new handling logic and ensure proper rendering of artifacts in chat messages. Improved documentation for clarity on artifact reference formats and their usage in the system.
2026-08-27 10:30:32 +08:00
..
dto feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
session feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
audit_log.go Remove redundant Wiki operation log 2026-07-28 11:18:33 +08:00
audit_log_test.go feat(knowledge): add scoped activity audit trail 2026-07-23 10:50:32 +08:00
auth.go feat(system-admin): add endpoint for creating users (#2722) 2026-08-20 19:51:10 +08:00
auth_change_password_test.go fix(auth): harden self-service change password after #2591 2026-08-07 15:49:58 +08:00
auth_oidc_start_test.go feat(auth): add /auth/oidc/start endpoint for direct 302 OIDC login 2026-08-11 15:41:48 +08:00
auth_register_by_invite.go
…
auth_register_by_invite_tenant_test.go
…
auth_register_invite_only_test.go fix(auth): do not sanitize registration password before hashing 2026-08-07 10:58:41 +08:00
chunk.go fix(knowledge): enqueue stale summary refreshes 2026-07-28 20:23:48 +08:00
chunker_debug.go fix(chunking): normalize line endings before splitting / 在分块前统一换行符 2026-08-05 19:24:45 +08:00
chunker_debug_test.go fix(chunking): normalize line endings before splitting / 在分块前统一换行符 2026-08-05 19:24:45 +08:00
custom_agent.go feat(sandbox) (#2301) 2026-08-10 21:28:20 +08:00
custom_agent_api_key_scope_test.go
…
custom_agent_sandbox_test.go feat(sandbox) (#2301) 2026-08-10 21:28:20 +08:00
datasource.go
…
datasource_credentials.go
…
datasource_test.go
…
deployment_capabilities.go fix: filter menus by deployment capabilities (#2674) 2026-08-13 20:18:48 +08:00
deployment_capabilities_test.go fix: filter menus by deployment capabilities (#2674) 2026-08-13 20:18:48 +08:00
embed_channel.go fix(api): close the resource_urls=public gaps found in review 2026-08-05 14:42:51 +08:00
embed_channel_exchange_test.go refactor(context): replace middleware.EmbedChannelContextKey with types.EmbedChannelContextKey 2026-08-13 18:00:02 +08:00
embed_flow_test.go refactor: remove Neo4j-based conversation memory feature 2026-07-18 23:41:48 +08:00
embed_resource_urls_test.go refactor(context): replace middleware.EmbedChannelContextKey with types.EmbedChannelContextKey 2026-08-13 18:00:02 +08:00
embed_session_test.go refactor(context): replace middleware.EmbedChannelContextKey with types.EmbedChannelContextKey 2026-08-13 18:00:02 +08:00
evaluation.go
…
faq.go feat(knowledge): enhance FAQ entry filtering and tagging 2026-07-23 10:50:32 +08:00
im.go fix(im): persist session mode configuration 2026-08-10 17:09:35 +08:00
im_platform_test.go feat(im,datasource): support Lark, Feishu's international edition 2026-07-17 11:05:54 +08:00
initialization.go feat: support Volcengine rerank 2026-07-20 19:58:48 +08:00
initialization_config_redaction_test.go
…
knowledge.go fix(handler): validate knowledge search pagination 2026-08-24 14:16:35 +08:00
knowledge_api_key_scope_test.go
…
knowledge_folder_test.go feat(knowledge): store folder path for folder uploads and expose folder tree API 2026-08-04 20:45:29 +08:00
knowledge_move_gate_test.go
…
knowledge_preview_security_test.go
…
knowledge_spans_test.go
…
knowledge_tag_ids_test.go
…
knowledgebase.go feat(api): honor resource_urls=public on hybrid-search 2026-08-26 17:40:54 +08:00
knowledgebase_copy_preflight_test.go
…
knowledgebase_hybrid_search_resource_urls_test.go feat(api): honor resource_urls=public on hybrid-search 2026-08-26 17:40:54 +08:00
knowledgebase_hybrid_search_test.go feat(api): honor resource_urls=public on hybrid-search 2026-08-26 17:40:54 +08:00
knowledgebase_not_found_test.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
knowledgebase_pr3_response_test.go
…
knowledgebase_pr5_list_test.go
…
knowledgebase_request_test.go
…
list_pagination.go fix(handler): validate knowledge search pagination 2026-08-24 14:16:35 +08:00
list_pagination_test.go fix(handler): validate knowledge search pagination 2026-08-24 14:16:35 +08:00
mcp_credentials.go
…
mcp_oauth.go fix(mcp): coordinate OAuth token refresh and authorization polling 2026-07-23 15:35:24 +08:00
mcp_service.go fix(mcp): preserve omitted service update fields 2026-08-10 19:14:21 +08:00
memory.go refactor(memory): enhance item listing and model deletion logic 2026-08-13 18:00:02 +08:00
message.go fix(api): address resource_urls review follow-ups 2026-08-05 14:42:51 +08:00
message_resource_urls_test.go fix(api): close the resource_urls=public gaps found in review 2026-08-05 14:42:51 +08:00
message_session_not_found_test.go
…
message_suggestion.go fix(sessions): 放行 embed 运行时读取自身会话,修复追问建议 500 与刷新丢对话 2026-07-30 17:51:34 +08:00
message_suggestion_test.go fix(sessions): 放行 embed 运行时读取自身会话,修复追问建议 500 与刷新丢对话 2026-07-30 17:51:34 +08:00
model.go fix(models): align model debug upload limit with global MAX_FILE_SIZE 2026-07-23 19:43:06 +08:00
model_credentials.go
…
model_test.go
…
organization.go fix(org): disambiguate shared-space terms and tighten invite search 2026-07-24 11:42:27 +08:00
rbac_lookups.go
…
rbac_lookups_test.go
…
sandbox_check.go feat(sandbox): remove the Local host-process backend 2026-08-26 17:48:21 +08:00
sandbox_check_test.go feat(sandbox): remove the Local host-process backend 2026-08-26 17:48:21 +08:00
sandbox_config.go fix(sandbox): rebuild templates without dropping the live ID 2026-08-26 16:56:26 +08:00
sandbox_config_test.go feat(sandbox): pin Cube DNS on templates and freeze skill snapshot configs 2026-08-26 16:56:26 +08:00
sandbox_skill.go feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
sandbox_skill_test.go feat(agent): preview skill artifacts and verify installs without running them (#2823) 2026-08-27 10:30:32 +08:00
skill_handler.go refactor(sandbox): remove token requirement for skill installation from source 2026-08-25 15:47:48 +08:00
skill_handler_test.go feat(sandbox): expose tenant skill management over HTTP and in the console (#2789) 2026-08-25 11:28:12 +08:00
storage_allowlist.go
…
storagebackend.go
…
system.go feat(system-admin): add endpoint for creating users (#2722) 2026-08-20 19:51:10 +08:00
system_admin_audit_test.go
…
system_parser_check_test.go
…
system_password_reset_test.go
…
system_runtime_test.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
system_storage_engine_test.go
…
system_storage_ssrf_test.go
…
system_user_create_test.go feat(system-admin): add endpoint for creating users (#2722) 2026-08-20 19:51:10 +08:00
tag.go
…
task_progress_auth.go
…
task_progress_auth_test.go
…
tenant.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
tenant_api_key_validation_test.go feat: support updating API key configuration 2026-08-12 11:43:03 +08:00
tenant_invitation.go fix(invitation): harden auto-accept follow-ups from code review 2026-08-10 15:47:29 +08:00
tenant_invitation_accept_by_token_test.go feat: 邀请链接在 invite_only 模式下改为登录后加入空间 2026-08-10 14:57:38 +08:00
tenant_invitation_auto_accept_test.go fix(invitation): harden auto-accept follow-ups from code review 2026-08-10 15:47:29 +08:00
tenant_invite_link.go fix: prevent API keys from assigning owner role 2026-07-23 16:04:42 +08:00
tenant_member.go fix(invitation): harden auto-accept follow-ups from code review 2026-08-10 15:47:29 +08:00
tenant_member_test.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
tenant_parser_ssrf_test.go
…
tenant_policy.go
…
tenant_secret_disclosure_test.go
…
tenant_self_service_policy_test.go
…
user_resource_favorite.go
…
vectorstore.go
…
web_search.go
…
web_search_provider.go
…
web_search_provider_credentials.go
…
wechat_qrcode.go
…
weknoracloud.go
…
wiki_page.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00