@lobehub/market-sdk 0.0.29 → 0.1.0
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 +7 -35
- package/package.json +2 -26
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PluginManifest,
|
|
1
|
+
import { PluginManifest, MarketItemBase, ConnectionType, AdminPluginItem, AdminPluginItemDetail, PluginVersion, AdminDeploymentOption, InstallationDetails, SystemDependency } from '@lobehub/market-types';
|
|
2
2
|
export * from '@lobehub/market-types';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
@@ -192,11 +192,7 @@ interface CategoryItem {
|
|
|
192
192
|
* Plugin item in the marketplace
|
|
193
193
|
* Represents a plugin as displayed in the marketplace listing.
|
|
194
194
|
*/
|
|
195
|
-
interface PluginItem {
|
|
196
|
-
/** Authentication requirements for using the plugin */
|
|
197
|
-
authRequirement?: string;
|
|
198
|
-
/** Author or organization name */
|
|
199
|
-
author?: string;
|
|
195
|
+
interface PluginItem extends MarketItemBase {
|
|
200
196
|
/** Plugin capabilities */
|
|
201
197
|
capabilities: {
|
|
202
198
|
/** Whether the plugin provides custom prompts */
|
|
@@ -206,38 +202,18 @@ interface PluginItem {
|
|
|
206
202
|
/** Whether the plugin provides tools (functions) */
|
|
207
203
|
tools: boolean;
|
|
208
204
|
};
|
|
209
|
-
/** Category for classification */
|
|
210
|
-
category?: string;
|
|
211
205
|
/** Number of comments on this plugin */
|
|
212
206
|
commentCount?: number;
|
|
213
|
-
/** Compatibility information for different platforms/versions */
|
|
214
|
-
compatibility?: PluginCompatibility;
|
|
215
207
|
/** Connection type for communicating with the plugin */
|
|
216
208
|
connectionType?: ConnectionType;
|
|
217
|
-
/** Creation timestamp (ISO 8601 format) */
|
|
218
|
-
createdAt: string;
|
|
219
|
-
/** Short description of the plugin */
|
|
220
|
-
description: string;
|
|
221
|
-
/** URL to the plugin's homepage or documentation */
|
|
222
|
-
homepage?: string;
|
|
223
|
-
/** Icon URL or emoji */
|
|
224
|
-
icon?: string;
|
|
225
|
-
/** Unique identifier for the plugin */
|
|
226
|
-
identifier: string;
|
|
227
209
|
/** Number of installations */
|
|
228
210
|
installCount?: number;
|
|
229
|
-
/**
|
|
230
|
-
|
|
231
|
-
/** Whether
|
|
232
|
-
|
|
211
|
+
/** Installation method required by the plugin's recommended deployment option */
|
|
212
|
+
installationMethods?: string;
|
|
213
|
+
/** Whether the plugin is featured */
|
|
214
|
+
isFeatured?: boolean;
|
|
233
215
|
/** Whether this plugin has been validated */
|
|
234
216
|
isValidated?: boolean;
|
|
235
|
-
/** URL to the manifest file */
|
|
236
|
-
manifestUrl?: string;
|
|
237
|
-
/** Manifest schema version */
|
|
238
|
-
manifestVersion: string;
|
|
239
|
-
/** Display name of the plugin */
|
|
240
|
-
name: string;
|
|
241
217
|
/** Number of prompts provided by this plugin */
|
|
242
218
|
promptsCount?: number;
|
|
243
219
|
/** Average rating (typically 1-5 scale) */
|
|
@@ -246,12 +222,8 @@ interface PluginItem {
|
|
|
246
222
|
ratingCount?: number;
|
|
247
223
|
/** Number of resources provided by this plugin */
|
|
248
224
|
resourcesCount?: number;
|
|
249
|
-
/** Tags for filtering and discovery */
|
|
250
|
-
tags?: string[];
|
|
251
225
|
/** Number of tools provided by this plugin */
|
|
252
226
|
toolsCount?: number;
|
|
253
|
-
/** Version string (e.g., "1.0.0") */
|
|
254
|
-
version: string;
|
|
255
227
|
}
|
|
256
228
|
/**
|
|
257
229
|
* Response structure for plugin listing endpoints
|
|
@@ -291,7 +263,7 @@ interface PluginQueryParams {
|
|
|
291
263
|
/** Search query string */
|
|
292
264
|
q?: string;
|
|
293
265
|
/** Field to sort by */
|
|
294
|
-
sort?: 'installCount' | 'createdAt' | 'updatedAt' | 'ratingAverage';
|
|
266
|
+
sort?: 'installCount' | 'createdAt' | 'updatedAt' | 'ratingAverage' | 'ratingCount';
|
|
295
267
|
/** Filter by tags (comma-separated) */
|
|
296
268
|
tags?: string;
|
|
297
269
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/market-sdk",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "LobeHub Market JavaScript SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -24,35 +24,11 @@
|
|
|
24
24
|
"files": [
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
|
-
"scripts": {
|
|
28
|
-
"build": "tsup",
|
|
29
|
-
"dev": "tsup --watch",
|
|
30
|
-
"prepublishOnly": "npm run build",
|
|
31
|
-
"release": "npm publish",
|
|
32
|
-
"test": "vitest",
|
|
33
|
-
"test:admin": "node examples/admin-test.js",
|
|
34
|
-
"test:domain": "node examples/domain-usage.js",
|
|
35
|
-
"test:watch": "vitest watch"
|
|
36
|
-
},
|
|
37
27
|
"dependencies": {
|
|
38
28
|
"debug": "^4.4.1"
|
|
39
29
|
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@lobehub/market-types": "workspace:*",
|
|
42
|
-
"@types/debug": "^4.1.12",
|
|
43
|
-
"@types/node": "^22.15.2",
|
|
44
|
-
"dotenv": "^16.4.5",
|
|
45
|
-
"tsup": "^8.4.0",
|
|
46
|
-
"typescript": "^5.8.3",
|
|
47
|
-
"vitest": "^3.1.3",
|
|
48
|
-
"zod": "^3.24.4"
|
|
49
|
-
},
|
|
50
30
|
"peerDependencies": {
|
|
51
|
-
"@lobehub/market-types": "
|
|
31
|
+
"@lobehub/market-types": "1.1.0",
|
|
52
32
|
"zod": "^3.24.4"
|
|
53
|
-
},
|
|
54
|
-
"publishConfig": {
|
|
55
|
-
"access": "public",
|
|
56
|
-
"registry": "https://registry.npmjs.org"
|
|
57
33
|
}
|
|
58
34
|
}
|