@lobehub/market-sdk 0.32.2 → 0.33.1
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 +46 -1
- package/dist/index.mjs +60 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { AgentItem, UserCredSummary, MarketItemBase, PluginConnectionType, InstallFailureAnalysisQuery, InstallFailureAnalysis, RangeQuery, RangeStats, TopPluginsQuery, TopPlugin, PluginManifest, AdminPluginItem, AdminPluginItemDetail, PluginVersion, PluginVersionLocalization, AdminDeploymentOption, InstallationDetails, SystemDependency, IncompleteI18nPlugin, CreateSkillCollectionRequest, AdminSkillCollectionDetail, AdminSkillCollectionListQuery, AdminSkillCollectionListResponse, BatchUpsertSkillCollectionLocalizationsRequest, SkillCollectionLocalizationBatchResponse, SkillCollectionLocalization, UpdateSkillCollectionRequest, UpsertSkillCollectionLocalizationRequest, AgentEventRequest, SkillCredStatus, InjectCredsRequest, InjectCredsResponse, InjectCredsForSkillRequest, InjectCredsForSkillResponse, CategoryListQuery, CategoryItem, PluginItemDetail, InstallReportRequest, InstallReportResponse, CallReportRequest, CallReportResponse, PluginEventRequest, CloudGatewayRequest, CloudGatewayResponse } from '@lobehub/market-types';
|
|
2
|
+
import { AgentItem, UserCredSummary, MarketItemBase, PluginConnectionType, InstallFailureAnalysisQuery, InstallFailureAnalysis, RangeQuery, RangeStats, TopPluginsQuery, TopPlugin, PluginManifest, AdminPluginItem, AdminPluginItemDetail, PluginVersion, PluginVersionLocalization, AdminDeploymentOption, InstallationDetails, SystemDependency, IncompleteI18nPlugin, CreateSkillCollectionRequest, AdminSkillCollectionDetail, AdminSkillCollectionListQuery, AdminSkillCollectionListResponse, BatchUpsertSkillCollectionLocalizationsRequest, SkillCollectionLocalizationBatchResponse, SkillCollectionLocalization, UpdateSkillCollectionRequest, UpsertSkillCollectionLocalizationRequest, SitemapResponse, AgentEventRequest, SkillCredStatus, InjectCredsRequest, InjectCredsResponse, InjectCredsForSkillRequest, InjectCredsForSkillResponse, CategoryListQuery, CategoryItem, PluginItemDetail, InstallReportRequest, InstallReportResponse, CallReportRequest, CallReportResponse, PluginEventRequest, CloudGatewayRequest, CloudGatewayResponse } from '@lobehub/market-types';
|
|
3
3
|
export * from '@lobehub/market-types';
|
|
4
4
|
export { CategoryItem, CategoryListQuery, CategoryListResponse, CredType, InjectCredsForSkillRequest, InjectCredsForSkillResponse, InjectCredsRequest, InjectCredsResponse, InjectedFileInfo, SkillCredStatus, UserCredSummary } from '@lobehub/market-types';
|
|
5
5
|
import { JSONSchema7 } from 'json-schema';
|
|
@@ -2540,6 +2540,13 @@ interface SkillCallParams {
|
|
|
2540
2540
|
* Name of the tool to call
|
|
2541
2541
|
*/
|
|
2542
2542
|
tool: string;
|
|
2543
|
+
/**
|
|
2544
|
+
* Topic ID for CLI session isolation (required for CLI-based providers like github)
|
|
2545
|
+
*
|
|
2546
|
+
* Used to isolate CLI environments between different conversations/sessions.
|
|
2547
|
+
* Each unique topicId gets its own sandbox environment.
|
|
2548
|
+
*/
|
|
2549
|
+
topicId?: string;
|
|
2543
2550
|
}
|
|
2544
2551
|
/**
|
|
2545
2552
|
* Summary information about a skill provider
|
|
@@ -2592,6 +2599,11 @@ interface ListSkillProvidersResponse {
|
|
|
2592
2599
|
* Response for listing tools of a provider
|
|
2593
2600
|
*/
|
|
2594
2601
|
interface ListSkillToolsResponse {
|
|
2602
|
+
/**
|
|
2603
|
+
* Instruction markdown providing guidance on authentication,
|
|
2604
|
+
* available tools, and extended API reference
|
|
2605
|
+
*/
|
|
2606
|
+
instruction?: string;
|
|
2595
2607
|
/**
|
|
2596
2608
|
* Provider identifier
|
|
2597
2609
|
*/
|
|
@@ -5210,6 +5222,7 @@ declare class AgentService extends BaseSDK {
|
|
|
5210
5222
|
* full agent metadata. This is useful for clients that need to know which
|
|
5211
5223
|
* agents are available without fetching complete agent information.
|
|
5212
5224
|
*
|
|
5225
|
+
* @deprecated Use {@link AgentService.getSitemap} instead.
|
|
5213
5226
|
* @param options - Optional request options
|
|
5214
5227
|
* @returns Promise resolving to an array containing identifiers array and last modified time
|
|
5215
5228
|
*/
|
|
@@ -5217,6 +5230,16 @@ declare class AgentService extends BaseSDK {
|
|
|
5217
5230
|
id: string;
|
|
5218
5231
|
lastModified: string;
|
|
5219
5232
|
}[]>;
|
|
5233
|
+
/**
|
|
5234
|
+
* Retrieves a paginated list of published agent identifiers for sitemaps
|
|
5235
|
+
*
|
|
5236
|
+
* @param params - Pagination (`page` defaults to 1, `pageSize` defaults to 200, max 500 server-side)
|
|
5237
|
+
* @param options - Optional request options
|
|
5238
|
+
*/
|
|
5239
|
+
getSitemap(params?: {
|
|
5240
|
+
page?: number;
|
|
5241
|
+
pageSize?: number;
|
|
5242
|
+
}, options?: globalThis.RequestInit): Promise<SitemapResponse>;
|
|
5220
5243
|
/**
|
|
5221
5244
|
* Retrieves agent categories and their counts
|
|
5222
5245
|
*
|
|
@@ -6173,12 +6196,23 @@ declare class PluginsService extends BaseSDK {
|
|
|
6173
6196
|
* full plugin metadata. This is useful for clients that need to know which
|
|
6174
6197
|
* plugins are available without fetching complete plugin information.
|
|
6175
6198
|
*
|
|
6199
|
+
* @deprecated Use {@link PluginsService.getSitemap} instead.
|
|
6176
6200
|
* @returns Promise resolving to an array containing identifiers array and last modified time
|
|
6177
6201
|
*/
|
|
6178
6202
|
getPublishedIdentifiers(options?: globalThis.RequestInit): Promise<{
|
|
6179
6203
|
identifier: string;
|
|
6180
6204
|
lastModified: string;
|
|
6181
6205
|
}[]>;
|
|
6206
|
+
/**
|
|
6207
|
+
* Retrieves a paginated list of published plugin (MCP) identifiers for sitemaps
|
|
6208
|
+
*
|
|
6209
|
+
* @param params - Pagination (`page` defaults to 1, `pageSize` defaults to 200, max 500 server-side)
|
|
6210
|
+
* @param options - Optional request options
|
|
6211
|
+
*/
|
|
6212
|
+
getSitemap(params?: {
|
|
6213
|
+
page?: number;
|
|
6214
|
+
pageSize?: number;
|
|
6215
|
+
}, options?: globalThis.RequestInit): Promise<SitemapResponse>;
|
|
6182
6216
|
/**
|
|
6183
6217
|
* Retrieves the manifest for a specific plugin
|
|
6184
6218
|
*
|
|
@@ -6729,6 +6763,7 @@ declare class MarketSkillService extends BaseSDK {
|
|
|
6729
6763
|
* without full metadata. Useful for sitemap generation or
|
|
6730
6764
|
* knowing which skills are available.
|
|
6731
6765
|
*
|
|
6766
|
+
* @deprecated Use {@link MarketSkillService.getSitemap} instead.
|
|
6732
6767
|
* @param options - Optional request options
|
|
6733
6768
|
* @returns Promise resolving to an array of identifiers with last modified times
|
|
6734
6769
|
*/
|
|
@@ -6736,6 +6771,16 @@ declare class MarketSkillService extends BaseSDK {
|
|
|
6736
6771
|
identifier: string;
|
|
6737
6772
|
lastModified: string;
|
|
6738
6773
|
}[]>;
|
|
6774
|
+
/**
|
|
6775
|
+
* Retrieves a paginated list of published skill identifiers for sitemaps
|
|
6776
|
+
*
|
|
6777
|
+
* @param params - Pagination (`page` defaults to 1, `pageSize` defaults to 200, max 500 server-side)
|
|
6778
|
+
* @param options - Optional request options
|
|
6779
|
+
*/
|
|
6780
|
+
getSitemap(params?: {
|
|
6781
|
+
page?: number;
|
|
6782
|
+
pageSize?: number;
|
|
6783
|
+
}, options?: globalThis.RequestInit): Promise<SitemapResponse>;
|
|
6739
6784
|
/**
|
|
6740
6785
|
* Checks if a skill exists in the marketplace
|
|
6741
6786
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -1854,6 +1854,7 @@ var AgentService2 = class extends BaseSDK {
|
|
|
1854
1854
|
* full agent metadata. This is useful for clients that need to know which
|
|
1855
1855
|
* agents are available without fetching complete agent information.
|
|
1856
1856
|
*
|
|
1857
|
+
* @deprecated Use {@link AgentService.getSitemap} instead.
|
|
1857
1858
|
* @param options - Optional request options
|
|
1858
1859
|
* @returns Promise resolving to an array containing identifiers array and last modified time
|
|
1859
1860
|
*/
|
|
@@ -1866,6 +1867,24 @@ var AgentService2 = class extends BaseSDK {
|
|
|
1866
1867
|
log12("Retrieved %d published agent identifiers", result.length);
|
|
1867
1868
|
return result;
|
|
1868
1869
|
}
|
|
1870
|
+
/**
|
|
1871
|
+
* Retrieves a paginated list of published agent identifiers for sitemaps
|
|
1872
|
+
*
|
|
1873
|
+
* @param params - Pagination (`page` defaults to 1, `pageSize` defaults to 200, max 500 server-side)
|
|
1874
|
+
* @param options - Optional request options
|
|
1875
|
+
*/
|
|
1876
|
+
async getSitemap(params = {}, options) {
|
|
1877
|
+
const queryString = this.buildQueryString(params);
|
|
1878
|
+
log12("Getting agent sitemap%s", queryString);
|
|
1879
|
+
const result = await this.request(`/v1/agents/sitemap${queryString}`, options);
|
|
1880
|
+
log12(
|
|
1881
|
+
"Retrieved agent sitemap page %d/%d (%d items)",
|
|
1882
|
+
result.currentPage,
|
|
1883
|
+
result.totalPages,
|
|
1884
|
+
result.items.length
|
|
1885
|
+
);
|
|
1886
|
+
return result;
|
|
1887
|
+
}
|
|
1869
1888
|
/**
|
|
1870
1889
|
* Retrieves agent categories and their counts
|
|
1871
1890
|
*
|
|
@@ -3520,6 +3539,7 @@ var PluginsService = class extends BaseSDK {
|
|
|
3520
3539
|
* full plugin metadata. This is useful for clients that need to know which
|
|
3521
3540
|
* plugins are available without fetching complete plugin information.
|
|
3522
3541
|
*
|
|
3542
|
+
* @deprecated Use {@link PluginsService.getSitemap} instead.
|
|
3523
3543
|
* @returns Promise resolving to an array containing identifiers array and last modified time
|
|
3524
3544
|
*/
|
|
3525
3545
|
async getPublishedIdentifiers(options) {
|
|
@@ -3531,6 +3551,27 @@ var PluginsService = class extends BaseSDK {
|
|
|
3531
3551
|
log19("Retrieved %d published plugin identifiers", result.length);
|
|
3532
3552
|
return result;
|
|
3533
3553
|
}
|
|
3554
|
+
/**
|
|
3555
|
+
* Retrieves a paginated list of published plugin (MCP) identifiers for sitemaps
|
|
3556
|
+
*
|
|
3557
|
+
* @param params - Pagination (`page` defaults to 1, `pageSize` defaults to 200, max 500 server-side)
|
|
3558
|
+
* @param options - Optional request options
|
|
3559
|
+
*/
|
|
3560
|
+
async getSitemap(params = {}, options) {
|
|
3561
|
+
const queryString = this.buildQueryString(params);
|
|
3562
|
+
log19("Getting plugin sitemap%s", queryString);
|
|
3563
|
+
const result = await this.request(
|
|
3564
|
+
`/v1/plugins/sitemap${queryString}`,
|
|
3565
|
+
options
|
|
3566
|
+
);
|
|
3567
|
+
log19(
|
|
3568
|
+
"Retrieved plugin sitemap page %d/%d (%d items)",
|
|
3569
|
+
result.currentPage,
|
|
3570
|
+
result.totalPages,
|
|
3571
|
+
result.items.length
|
|
3572
|
+
);
|
|
3573
|
+
return result;
|
|
3574
|
+
}
|
|
3534
3575
|
/**
|
|
3535
3576
|
* Retrieves the manifest for a specific plugin
|
|
3536
3577
|
*
|
|
@@ -4412,6 +4453,7 @@ var MarketSkillService = class extends BaseSDK {
|
|
|
4412
4453
|
* without full metadata. Useful for sitemap generation or
|
|
4413
4454
|
* knowing which skills are available.
|
|
4414
4455
|
*
|
|
4456
|
+
* @deprecated Use {@link MarketSkillService.getSitemap} instead.
|
|
4415
4457
|
* @param options - Optional request options
|
|
4416
4458
|
* @returns Promise resolving to an array of identifiers with last modified times
|
|
4417
4459
|
*/
|
|
@@ -4424,6 +4466,24 @@ var MarketSkillService = class extends BaseSDK {
|
|
|
4424
4466
|
log22("Retrieved %d published skill identifiers", result.length);
|
|
4425
4467
|
return result;
|
|
4426
4468
|
}
|
|
4469
|
+
/**
|
|
4470
|
+
* Retrieves a paginated list of published skill identifiers for sitemaps
|
|
4471
|
+
*
|
|
4472
|
+
* @param params - Pagination (`page` defaults to 1, `pageSize` defaults to 200, max 500 server-side)
|
|
4473
|
+
* @param options - Optional request options
|
|
4474
|
+
*/
|
|
4475
|
+
async getSitemap(params = {}, options) {
|
|
4476
|
+
const queryString = this.buildQueryString(params);
|
|
4477
|
+
log22("Getting skill sitemap%s", queryString);
|
|
4478
|
+
const result = await this.request(`/v1/skills/sitemap${queryString}`, options);
|
|
4479
|
+
log22(
|
|
4480
|
+
"Retrieved skill sitemap page %d/%d (%d items)",
|
|
4481
|
+
result.currentPage,
|
|
4482
|
+
result.totalPages,
|
|
4483
|
+
result.items.length
|
|
4484
|
+
);
|
|
4485
|
+
return result;
|
|
4486
|
+
}
|
|
4427
4487
|
/**
|
|
4428
4488
|
* Checks if a skill exists in the marketplace
|
|
4429
4489
|
*
|