feat: 集成 Skill Hub 技能商店 - #20
Merged
Merged
Conversation
新增 Skill Hub 登录、浏览、详情与发布流程,并扩展技能仓库和 HTTP 客户端以支持远程技能管理。
There was a problem hiding this comment.
Sorry @andTDWF, your pull request is larger than the review limit of 150000 diff characters
Reviewer's GuideIntegrates a Skill Hub skill store into the app, including new UI screens for browsing, login, publishing, detail, and web-based center flows; adds secure SkillHub HTTP clients and session handling, extends markdown pinch-zoom, tightens ZIP unpacking limits, enables binary HTTP request bodies, and wires remote Skill installation and publishing through the existing extension/skill repository and controller layers with tests. Sequence diagram for installing a Skill from SkillHubsequenceDiagram
actor User
participant SkillStoreDetailScreenView
participant MainCoordinator
participant ExtensionManagementController
participant ExtensionRepository
participant SkillRepository
participant SkillHubClient
participant SimpleHttpClient
User->>SkillStoreDetailScreenView: onInstall(location, slug, version)
SkillStoreDetailScreenView->>MainCoordinator: onSkillInstalledFromSkillHub(location, slug, version)
MainCoordinator->>ExtensionManagementController: installSkillFromSkillHub(location, slug, version)
ExtensionManagementController->>ExtensionRepository: installSkillFromSkillHub(homePath, location, slug, version)
ExtensionRepository->>SkillRepository: installSkillFromSkillHub(homePath, location, slug, version)
SkillRepository->>SkillHubClient: download(slug, version)
SkillHubClient->>SimpleHttpClient: download(url, CONNECT_TIMEOUT_MS, readTimeoutMs, MAX_ZIP_BYTES)
SimpleHttpClient-->>SkillHubClient: DownloadResult.bytes
SkillRepository->>SkillRepository: installSkill(homePath, location, archivePath, slug)
SkillRepository-->>MainCoordinator: SkillRecord
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
让 URI、GitHub 和 Skill Hub 安装共用临时文件清理与既有 Skill 安装逻辑,并将二进制文件写入收口到 SkillFileManager。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
git diff --check./gradlew :app:testDebugUnitTest --tests 'cn.lineai.data.service.SkillHubClientTest' --tests 'cn.lineai.data.service.SkillHubSessionClientTest' --tests 'cn.lineai.mvp.ExtensionManagementControllerTest'./gradlew :app:assembleReleaseAndroidManifest.xml,apksigner verify无法完成)🤖 Generated with Claude Code
Summary by Sourcery
Integrate SkillHub-powered skill store, remote installation, and publishing flows into the app, including supporting HTTP binary bodies and safer skill package handling.
New Features:
Enhancements:
Tests: