@lobehub/market-sdk 0.30.0 → 0.30.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +27 -3
- package/dist/index.mjs +15 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1655,7 +1655,7 @@ interface PluginQueryParams {
|
|
|
1655
1655
|
/** Search query string */
|
|
1656
1656
|
q?: string;
|
|
1657
1657
|
/** Field to sort by */
|
|
1658
|
-
sort?: 'installCount' | 'createdAt' | 'updatedAt' | 'ratingAverage' | 'ratingCount' | 'isFeatured' | 'isValidated' | 'recommended';
|
|
1658
|
+
sort?: 'installCount' | 'createdAt' | 'updatedAt' | 'ratingAverage' | 'ratingCount' | 'isFeatured' | 'isValidated' | 'recommended' | 'stars';
|
|
1659
1659
|
/** Filter by tags (comma-separated) */
|
|
1660
1660
|
tags?: string;
|
|
1661
1661
|
}
|
|
@@ -2508,8 +2508,13 @@ interface MarketSkillListItem {
|
|
|
2508
2508
|
github?: {
|
|
2509
2509
|
forks?: number;
|
|
2510
2510
|
stars?: number;
|
|
2511
|
+
url?: string;
|
|
2511
2512
|
watchers?: number;
|
|
2512
2513
|
};
|
|
2514
|
+
/**
|
|
2515
|
+
* Homepage URL
|
|
2516
|
+
*/
|
|
2517
|
+
homepage?: string;
|
|
2513
2518
|
/**
|
|
2514
2519
|
* Icon URL (GitHub org avatar)
|
|
2515
2520
|
*/
|
|
@@ -2832,6 +2837,19 @@ interface MarketSkillCategory {
|
|
|
2832
2837
|
*/
|
|
2833
2838
|
count: number;
|
|
2834
2839
|
}
|
|
2840
|
+
/**
|
|
2841
|
+
* Query parameters for skill categories
|
|
2842
|
+
*/
|
|
2843
|
+
interface MarketSkillCategoryQuery {
|
|
2844
|
+
/**
|
|
2845
|
+
* Locale for localized content (e.g., 'en-US', 'zh-CN')
|
|
2846
|
+
*/
|
|
2847
|
+
locale?: string;
|
|
2848
|
+
/**
|
|
2849
|
+
* Search query to filter skills before counting categories
|
|
2850
|
+
*/
|
|
2851
|
+
q?: string;
|
|
2852
|
+
}
|
|
2835
2853
|
/**
|
|
2836
2854
|
* Parameters for reporting a GitHub skill
|
|
2837
2855
|
*/
|
|
@@ -5827,17 +5845,23 @@ declare class MarketSkillService extends BaseSDK {
|
|
|
5827
5845
|
*
|
|
5828
5846
|
* Returns a list of categories along with the number of skills
|
|
5829
5847
|
* in each category. Useful for building category filters.
|
|
5848
|
+
* Supports optional search filtering via 'q' parameter and locale specification.
|
|
5830
5849
|
*
|
|
5850
|
+
* @param params - Query parameters for filtering categories
|
|
5831
5851
|
* @param options - Optional request options
|
|
5832
5852
|
* @returns Promise resolving to an array of categories with counts
|
|
5833
5853
|
*
|
|
5834
5854
|
* @example
|
|
5835
5855
|
* ```typescript
|
|
5856
|
+
* // Get all categories
|
|
5836
5857
|
* const categories = await sdk.marketSkills.getCategories();
|
|
5837
5858
|
* // [{ category: 'development', count: 25 }, { category: 'productivity', count: 18 }, ...]
|
|
5859
|
+
*
|
|
5860
|
+
* // Get categories with search filter
|
|
5861
|
+
* const filtered = await sdk.marketSkills.getCategories({ q: 'code' });
|
|
5838
5862
|
* ```
|
|
5839
5863
|
*/
|
|
5840
|
-
getCategories(options?: globalThis.RequestInit): Promise<MarketSkillCategory[]>;
|
|
5864
|
+
getCategories(params?: MarketSkillCategoryQuery, options?: globalThis.RequestInit): Promise<MarketSkillCategory[]>;
|
|
5841
5865
|
/**
|
|
5842
5866
|
* Retrieves all published skill identifiers
|
|
5843
5867
|
*
|
|
@@ -6457,4 +6481,4 @@ declare function buildTrustedClientPayload(params: {
|
|
|
6457
6481
|
userId: string;
|
|
6458
6482
|
}): TrustedClientPayload;
|
|
6459
6483
|
|
|
6460
|
-
export { type AccountMeta, type AdminListQueryParams, type AdminListResponse, type AdminPluginParams, type AgentCreateRequest, type AgentCreateResponse, type AgentDetailQuery, type AgentExtension, type AgentForkItem, type AgentForkRequest, type AgentForkResponse, type AgentForkSourceResponse, type AgentForksResponse, type AgentGroupCreateRequest, type AgentGroupCreateResponse, type AgentGroupDetail, type AgentGroupDetailQuery, type AgentGroupForkItem, type AgentGroupForkRequest, type AgentGroupForkResponse, type AgentGroupForkSourceResponse, type AgentGroupForksResponse, type AgentGroupItem, type AgentGroupListQuery, type AgentGroupListResponse, type AgentGroupModifyRequest, type AgentGroupModifyResponse, type AgentGroupStatus, type AgentGroupStatusChangeResponse, type AgentGroupVersionCreateRequest, type AgentGroupVersionCreateResponse, type AgentInstallCountRequest, type AgentInstallCountResponse, type AgentInterface, type AgentItemDetail, type AgentListQuery, type AgentListResponse, type AgentModifyRequest, type AgentModifyResponse, type AgentSecurityRequirement, type AgentSecurityScheme, type AgentSkill, type AgentStatus, type AgentStatusChangeResponse, type AgentUploadRequest, type AgentUploadResponse, type AgentUploadVersion, type AgentVersionCreateRequest, type AgentVersionCreateResponse, type AgentVersionLocalization, type AgentVersionModifyRequest, type AgentVersionModifyResponse, type AuthorizationCodeTokenRequest, type AuthorizeParams, type AuthorizeResponse, type CallSkillToolResponse, type CheckFavoriteQuery, type CheckFavoriteResponse, type CheckFollowQuery, type CheckFollowResponse, type CheckLikeQuery, type CheckLikeResponse, type ClientRegistrationError, type ClientRegistrationRequest, type ClientRegistrationResponse, type CodeInterpreterToolName, type CodeInterpreterToolParams, type ConnectProvider, type ConnectProviderDetail, type ConnectProviderScopes, type ConnectionHealth, type ConnectionStats, type CreateMemberAgent, type DiscoveryDocument, type EditLocalFileParams, type ExecuteCodeParams, type ExportFileParams, type FavoriteListResponse, type FavoriteQuery, type FavoriteRequest, type FeedbackClientInfo, type FollowListItem, type FollowListResponse, type FollowRequest, type GetAllConnectionsHealthResponse, type GetAuthorizeUrlParams, type GetCommandOutputParams, type GetConnectProviderResponse, type GetConnectionHealthResponse, type GetConnectionStatsResponse, type GetConnectionStatusResponse, type GetSkillStatusResponse, type GetSkillToolResponse, type GlobLocalFilesParams, type GrepContentParams, type InteractionTargetType, type KillCommandParams, type LikeListResponse, type LikeQuery, type LikeRequest, type ListConnectProvidersResponse, type ListConnectionsResponse, type ListLocalFilesParams, type ListSkillProvidersResponse, type ListSkillToolsResponse, MarketAPIError, MarketAdmin, type MarketReportGitHubSkillParams, type MarketReportGitHubSkillResponse, MarketSDK, type MarketSDKOptions, type MarketSkillAuthor, type MarketSkillCategory, type MarketSkillDetail, type MarketSkillDetailQuery, type MarketSkillGitHubMeta, type MarketSkillListItem, type MarketSkillListQuery, type MarketSkillListResponse, type MarketSkillManifest, type MarketSkillResource, type MarketSkillVersionSummary, type MarketSkillVersionsResponse, type MemberAgent, type MoveLocalFilesParams, type MoveOperation, type OAuthConnection, type OAuthTokenResponse, type OwnAgentGroupListQuery, type OwnAgentListQuery, type PaginationQuery, type PluginI18nImportParams, type PluginI18nImportResponse, type PluginItem, type PluginListResponse, type PluginLocalization, type PluginQueryParams, type PluginUpdateParams, type PluginVersionCreateParams, type PluginVersionUpdateParams, type ProgrammingLanguage, type ReadLocalFileParams, type RefreshConnectionResponse, type RefreshTokenRequest, type RegisterUserRequest, type RegisterUserResponse, type RegisteredUserProfile, type RenameLocalFileParams, type ReviewStatus, ReviewStatusEnumSchema, type RevokeConnectionResponse, type RunBuildInToolsError, type RunBuildInToolsRequest, type RunBuildInToolsResponse, type RunBuildInToolsSuccessData, type RunCommandParams, type SearchLocalFilesParams, type SharedTokenState, type SkillCallParams, type SkillErrorResponse, type SkillProviderInfo, type SkillProviderStatus, type SkillTool, StatusEnumSchema, type SubmitFeedbackRequest, type SubmitFeedbackResponse, type SuccessResponse, type ToggleLikeResponse, type TrustedClientPayload, type UnclaimedPluginItem, type UpdateMemberAgent, type UpdateUserInfoRequest, type UpdateUserInfoResponse, type UserAgentGroupItem, type UserAgentItem, type UserInfoQuery, type UserInfoResponse, type UserProfile, VisibilityEnumSchema, type WriteLocalFileParams, buildTrustedClientPayload, createTrustedClientToken, generateNonce };
|
|
6484
|
+
export { type AccountMeta, type AdminListQueryParams, type AdminListResponse, type AdminPluginParams, type AgentCreateRequest, type AgentCreateResponse, type AgentDetailQuery, type AgentExtension, type AgentForkItem, type AgentForkRequest, type AgentForkResponse, type AgentForkSourceResponse, type AgentForksResponse, type AgentGroupCreateRequest, type AgentGroupCreateResponse, type AgentGroupDetail, type AgentGroupDetailQuery, type AgentGroupForkItem, type AgentGroupForkRequest, type AgentGroupForkResponse, type AgentGroupForkSourceResponse, type AgentGroupForksResponse, type AgentGroupItem, type AgentGroupListQuery, type AgentGroupListResponse, type AgentGroupModifyRequest, type AgentGroupModifyResponse, type AgentGroupStatus, type AgentGroupStatusChangeResponse, type AgentGroupVersionCreateRequest, type AgentGroupVersionCreateResponse, type AgentInstallCountRequest, type AgentInstallCountResponse, type AgentInterface, type AgentItemDetail, type AgentListQuery, type AgentListResponse, type AgentModifyRequest, type AgentModifyResponse, type AgentSecurityRequirement, type AgentSecurityScheme, type AgentSkill, type AgentStatus, type AgentStatusChangeResponse, type AgentUploadRequest, type AgentUploadResponse, type AgentUploadVersion, type AgentVersionCreateRequest, type AgentVersionCreateResponse, type AgentVersionLocalization, type AgentVersionModifyRequest, type AgentVersionModifyResponse, type AuthorizationCodeTokenRequest, type AuthorizeParams, type AuthorizeResponse, type CallSkillToolResponse, type CheckFavoriteQuery, type CheckFavoriteResponse, type CheckFollowQuery, type CheckFollowResponse, type CheckLikeQuery, type CheckLikeResponse, type ClientRegistrationError, type ClientRegistrationRequest, type ClientRegistrationResponse, type CodeInterpreterToolName, type CodeInterpreterToolParams, type ConnectProvider, type ConnectProviderDetail, type ConnectProviderScopes, type ConnectionHealth, type ConnectionStats, type CreateMemberAgent, type DiscoveryDocument, type EditLocalFileParams, type ExecuteCodeParams, type ExportFileParams, type FavoriteListResponse, type FavoriteQuery, type FavoriteRequest, type FeedbackClientInfo, type FollowListItem, type FollowListResponse, type FollowRequest, type GetAllConnectionsHealthResponse, type GetAuthorizeUrlParams, type GetCommandOutputParams, type GetConnectProviderResponse, type GetConnectionHealthResponse, type GetConnectionStatsResponse, type GetConnectionStatusResponse, type GetSkillStatusResponse, type GetSkillToolResponse, type GlobLocalFilesParams, type GrepContentParams, type InteractionTargetType, type KillCommandParams, type LikeListResponse, type LikeQuery, type LikeRequest, type ListConnectProvidersResponse, type ListConnectionsResponse, type ListLocalFilesParams, type ListSkillProvidersResponse, type ListSkillToolsResponse, MarketAPIError, MarketAdmin, type MarketReportGitHubSkillParams, type MarketReportGitHubSkillResponse, MarketSDK, type MarketSDKOptions, type MarketSkillAuthor, type MarketSkillCategory, type MarketSkillCategoryQuery, type MarketSkillDetail, type MarketSkillDetailQuery, type MarketSkillGitHubMeta, type MarketSkillListItem, type MarketSkillListQuery, type MarketSkillListResponse, type MarketSkillManifest, type MarketSkillResource, type MarketSkillVersionSummary, type MarketSkillVersionsResponse, type MemberAgent, type MoveLocalFilesParams, type MoveOperation, type OAuthConnection, type OAuthTokenResponse, type OwnAgentGroupListQuery, type OwnAgentListQuery, type PaginationQuery, type PluginI18nImportParams, type PluginI18nImportResponse, type PluginItem, type PluginListResponse, type PluginLocalization, type PluginQueryParams, type PluginUpdateParams, type PluginVersionCreateParams, type PluginVersionUpdateParams, type ProgrammingLanguage, type ReadLocalFileParams, type RefreshConnectionResponse, type RefreshTokenRequest, type RegisterUserRequest, type RegisterUserResponse, type RegisteredUserProfile, type RenameLocalFileParams, type ReviewStatus, ReviewStatusEnumSchema, type RevokeConnectionResponse, type RunBuildInToolsError, type RunBuildInToolsRequest, type RunBuildInToolsResponse, type RunBuildInToolsSuccessData, type RunCommandParams, type SearchLocalFilesParams, type SharedTokenState, type SkillCallParams, type SkillErrorResponse, type SkillProviderInfo, type SkillProviderStatus, type SkillTool, StatusEnumSchema, type SubmitFeedbackRequest, type SubmitFeedbackResponse, type SuccessResponse, type ToggleLikeResponse, type TrustedClientPayload, type UnclaimedPluginItem, type UpdateMemberAgent, type UpdateUserInfoRequest, type UpdateUserInfoResponse, type UserAgentGroupItem, type UserAgentItem, type UserInfoQuery, type UserInfoResponse, type UserProfile, VisibilityEnumSchema, type WriteLocalFileParams, buildTrustedClientPayload, createTrustedClientToken, generateNonce };
|
package/dist/index.mjs
CHANGED
|
@@ -3643,19 +3643,31 @@ var MarketSkillService = class extends BaseSDK {
|
|
|
3643
3643
|
*
|
|
3644
3644
|
* Returns a list of categories along with the number of skills
|
|
3645
3645
|
* in each category. Useful for building category filters.
|
|
3646
|
+
* Supports optional search filtering via 'q' parameter and locale specification.
|
|
3646
3647
|
*
|
|
3648
|
+
* @param params - Query parameters for filtering categories
|
|
3647
3649
|
* @param options - Optional request options
|
|
3648
3650
|
* @returns Promise resolving to an array of categories with counts
|
|
3649
3651
|
*
|
|
3650
3652
|
* @example
|
|
3651
3653
|
* ```typescript
|
|
3654
|
+
* // Get all categories
|
|
3652
3655
|
* const categories = await sdk.marketSkills.getCategories();
|
|
3653
3656
|
* // [{ category: 'development', count: 25 }, { category: 'productivity', count: 18 }, ...]
|
|
3657
|
+
*
|
|
3658
|
+
* // Get categories with search filter
|
|
3659
|
+
* const filtered = await sdk.marketSkills.getCategories({ q: 'code' });
|
|
3654
3660
|
* ```
|
|
3655
3661
|
*/
|
|
3656
|
-
async getCategories(options) {
|
|
3657
|
-
|
|
3658
|
-
const
|
|
3662
|
+
async getCategories(params = {}, options) {
|
|
3663
|
+
const locale = params.locale || this.defaultLocale;
|
|
3664
|
+
const queryParams = { ...params, locale };
|
|
3665
|
+
const queryString = this.buildQueryString(queryParams);
|
|
3666
|
+
log18("Getting skill categories: %O", queryParams);
|
|
3667
|
+
const result = await this.request(
|
|
3668
|
+
`/v1/skills/categories${queryString}`,
|
|
3669
|
+
options
|
|
3670
|
+
);
|
|
3659
3671
|
log18("Retrieved %d categories", result.length);
|
|
3660
3672
|
return result;
|
|
3661
3673
|
}
|