@lobehub/market-sdk 0.0.30 → 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.
Files changed (2) hide show
  1. package/dist/index.d.mts +7 -35
  2. package/package.json +2 -2
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { PluginManifest, PluginCompatibility, ConnectionType, AdminPluginItem, AdminPluginItemDetail, PluginVersion, AdminDeploymentOption, InstallationDetails, SystemDependency } from '@lobehub/market-types';
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
- /** Whether the plugin can be installed */
230
- isInstallable?: boolean;
231
- /** Whether this is the latest version */
232
- isLatest: boolean;
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.30",
3
+ "version": "0.1.0",
4
4
  "description": "LobeHub Market JavaScript SDK",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -28,7 +28,7 @@
28
28
  "debug": "^4.4.1"
29
29
  },
30
30
  "peerDependencies": {
31
- "@lobehub/market-types": "1.0.7",
31
+ "@lobehub/market-types": "1.1.0",
32
32
  "zod": "^3.24.4"
33
33
  }
34
34
  }