mirror of
https://github.com/larksuite/cli.git
synced 2026-09-14 18:42:53 +08:00
ba8c30ed20
- Drop the one-use urlrewrite.Resolver; ResolveProvider returns the exttransport.URLRewriter (nil when unsupported) and package Rewrite keeps the identity fallback. - ExtensionMiddleware holds the rewriter directly; resolve interceptor and rewriter once with a single context; wrap invalid-rewrite errors with the extension name. - Converge rewriting into URL builders (mail preview/icon, apps scaffold registry, resource URL paths, message app links, errclass ConsoleURL) instead of scattering it across formatting call sites. - Remove dead context threading in cmd/update, the extra root-help template layering, and no-op churn in im/wiki/drive tests. - Use an RFC 2606 .test host in the im-markdown rewrite test so the diff-scoped domain guard passes.