@lobehub/market-types 1.12.3 → 1.13.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 +288 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1226,4 +1226,291 @@ interface InstallLogEntry {
|
|
|
1226
1226
|
version: string;
|
|
1227
1227
|
}
|
|
1228
1228
|
|
|
1229
|
-
|
|
1229
|
+
/**
|
|
1230
|
+
* Skill Type Definitions
|
|
1231
|
+
*
|
|
1232
|
+
* This module defines types for skill entities in the marketplace.
|
|
1233
|
+
* Skills are standalone packages that can be imported from GitHub,
|
|
1234
|
+
* browsed, and downloaded.
|
|
1235
|
+
*/
|
|
1236
|
+
/**
|
|
1237
|
+
* Skill author information
|
|
1238
|
+
*/
|
|
1239
|
+
interface SkillAuthor {
|
|
1240
|
+
/** Author's display name */
|
|
1241
|
+
name: string;
|
|
1242
|
+
/** Author's URL (website, GitHub profile, etc.) */
|
|
1243
|
+
url?: string;
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* GitHub metadata for skills
|
|
1247
|
+
*/
|
|
1248
|
+
interface SkillGitHubMeta {
|
|
1249
|
+
/** Number of forks */
|
|
1250
|
+
forks?: number;
|
|
1251
|
+
/** Full repository name (owner/repo) */
|
|
1252
|
+
fullName?: string;
|
|
1253
|
+
/** Number of open issues */
|
|
1254
|
+
openIssues?: number;
|
|
1255
|
+
/** Number of GitHub stars */
|
|
1256
|
+
stars?: number;
|
|
1257
|
+
/** GitHub repository URL */
|
|
1258
|
+
url?: string;
|
|
1259
|
+
/** Number of watchers */
|
|
1260
|
+
watchers?: number;
|
|
1261
|
+
}
|
|
1262
|
+
/**
|
|
1263
|
+
* Skill license information
|
|
1264
|
+
*/
|
|
1265
|
+
interface SkillLicense {
|
|
1266
|
+
/** License name (e.g., MIT, Apache-2.0) */
|
|
1267
|
+
name: string;
|
|
1268
|
+
/** URL to the license text */
|
|
1269
|
+
url?: string;
|
|
1270
|
+
}
|
|
1271
|
+
/**
|
|
1272
|
+
* Resource file metadata
|
|
1273
|
+
*/
|
|
1274
|
+
interface SkillResource {
|
|
1275
|
+
/** SHA256 hash of the file */
|
|
1276
|
+
fileHash: string;
|
|
1277
|
+
/** File size in bytes */
|
|
1278
|
+
size: number;
|
|
1279
|
+
}
|
|
1280
|
+
/**
|
|
1281
|
+
* Skill manifest from SKILL.md frontmatter
|
|
1282
|
+
*/
|
|
1283
|
+
interface SkillManifest {
|
|
1284
|
+
/** Author information */
|
|
1285
|
+
author?: SkillAuthor;
|
|
1286
|
+
/** Category */
|
|
1287
|
+
category?: string;
|
|
1288
|
+
/** Description */
|
|
1289
|
+
description: string;
|
|
1290
|
+
/** Icon URL or emoji */
|
|
1291
|
+
icon?: string;
|
|
1292
|
+
/** License identifier */
|
|
1293
|
+
license?: string;
|
|
1294
|
+
/** License URL */
|
|
1295
|
+
licenseUrl?: string;
|
|
1296
|
+
/** Skill name */
|
|
1297
|
+
name: string;
|
|
1298
|
+
/** GitHub repository URL */
|
|
1299
|
+
repository?: string;
|
|
1300
|
+
/** Original source URL */
|
|
1301
|
+
sourceUrl?: string;
|
|
1302
|
+
/** Short summary */
|
|
1303
|
+
summary?: string;
|
|
1304
|
+
/** Tags for categorization */
|
|
1305
|
+
tags?: string[];
|
|
1306
|
+
/** Version string */
|
|
1307
|
+
version?: string;
|
|
1308
|
+
}
|
|
1309
|
+
/**
|
|
1310
|
+
* Skill list item for marketplace listing
|
|
1311
|
+
*/
|
|
1312
|
+
interface SkillListItem {
|
|
1313
|
+
/** Author name */
|
|
1314
|
+
author?: string;
|
|
1315
|
+
/** Category */
|
|
1316
|
+
category?: string;
|
|
1317
|
+
/** Creation timestamp (ISO string) */
|
|
1318
|
+
createdAt: string;
|
|
1319
|
+
/** Brief description */
|
|
1320
|
+
description: string;
|
|
1321
|
+
/** GitHub stats */
|
|
1322
|
+
github?: {
|
|
1323
|
+
forks?: number;
|
|
1324
|
+
stars?: number;
|
|
1325
|
+
watchers?: number;
|
|
1326
|
+
};
|
|
1327
|
+
/** Icon URL (GitHub org avatar) */
|
|
1328
|
+
icon?: string;
|
|
1329
|
+
/** Unique skill identifier */
|
|
1330
|
+
identifier: string;
|
|
1331
|
+
/** Install/download count */
|
|
1332
|
+
installCount: number;
|
|
1333
|
+
/** Whether the skill is featured */
|
|
1334
|
+
isFeatured: boolean;
|
|
1335
|
+
/** Whether the skill is validated */
|
|
1336
|
+
isValidated: boolean;
|
|
1337
|
+
/** License name */
|
|
1338
|
+
license?: string;
|
|
1339
|
+
/** Logo URL */
|
|
1340
|
+
logo?: string;
|
|
1341
|
+
/** Skill display name */
|
|
1342
|
+
name: string;
|
|
1343
|
+
/** Average rating */
|
|
1344
|
+
ratingAvg?: number;
|
|
1345
|
+
/** Number of ratings */
|
|
1346
|
+
ratingCount: number;
|
|
1347
|
+
/** Number of resources */
|
|
1348
|
+
resourcesCount?: number;
|
|
1349
|
+
/** Tags for discovery */
|
|
1350
|
+
tags?: string[];
|
|
1351
|
+
/** Last update timestamp (ISO string) */
|
|
1352
|
+
updatedAt: string;
|
|
1353
|
+
/** Current version string */
|
|
1354
|
+
version: string;
|
|
1355
|
+
}
|
|
1356
|
+
/**
|
|
1357
|
+
* Skill list response with pagination
|
|
1358
|
+
*/
|
|
1359
|
+
interface SkillListResponse {
|
|
1360
|
+
/** Available categories */
|
|
1361
|
+
categories: string[];
|
|
1362
|
+
/** Current page number */
|
|
1363
|
+
currentPage: number;
|
|
1364
|
+
/** List of skills */
|
|
1365
|
+
items: SkillListItem[];
|
|
1366
|
+
/** Page size */
|
|
1367
|
+
pageSize: number;
|
|
1368
|
+
/** Total number of skills */
|
|
1369
|
+
totalCount: number;
|
|
1370
|
+
/** Total number of pages */
|
|
1371
|
+
totalPages: number;
|
|
1372
|
+
}
|
|
1373
|
+
/**
|
|
1374
|
+
* Skill version summary
|
|
1375
|
+
*/
|
|
1376
|
+
interface SkillVersionSummary {
|
|
1377
|
+
/** Changelog for this version */
|
|
1378
|
+
changelog?: string;
|
|
1379
|
+
/** Creation timestamp (ISO string) */
|
|
1380
|
+
createdAt: string;
|
|
1381
|
+
/** Whether this is the latest version */
|
|
1382
|
+
isLatest: boolean;
|
|
1383
|
+
/** Whether this version has been validated */
|
|
1384
|
+
isValidated?: boolean;
|
|
1385
|
+
/** Version string */
|
|
1386
|
+
version: string;
|
|
1387
|
+
/** Version number */
|
|
1388
|
+
versionNumber: number;
|
|
1389
|
+
}
|
|
1390
|
+
/**
|
|
1391
|
+
* Detailed skill information
|
|
1392
|
+
*/
|
|
1393
|
+
interface SkillDetail {
|
|
1394
|
+
/** Author information */
|
|
1395
|
+
author?: SkillAuthor;
|
|
1396
|
+
/** Category */
|
|
1397
|
+
category?: string;
|
|
1398
|
+
/** SKILL.md body content (markdown) */
|
|
1399
|
+
content: string;
|
|
1400
|
+
/** Creation timestamp (ISO string) */
|
|
1401
|
+
createdAt: string;
|
|
1402
|
+
/** Description */
|
|
1403
|
+
description: string;
|
|
1404
|
+
/** GitHub metadata */
|
|
1405
|
+
github?: SkillGitHubMeta;
|
|
1406
|
+
/** Homepage URL */
|
|
1407
|
+
homepage?: string;
|
|
1408
|
+
/** Icon URL (GitHub org avatar) */
|
|
1409
|
+
icon?: string;
|
|
1410
|
+
/** Unique skill identifier */
|
|
1411
|
+
identifier: string;
|
|
1412
|
+
/** Install/download count */
|
|
1413
|
+
installCount: number;
|
|
1414
|
+
/** Whether the skill is featured */
|
|
1415
|
+
isFeatured: boolean;
|
|
1416
|
+
/** Whether the skill is validated */
|
|
1417
|
+
isValidated: boolean;
|
|
1418
|
+
/** License information */
|
|
1419
|
+
license?: SkillLicense;
|
|
1420
|
+
/** Logo URL */
|
|
1421
|
+
logo?: string;
|
|
1422
|
+
/** Complete manifest from SKILL.md */
|
|
1423
|
+
manifest: SkillManifest;
|
|
1424
|
+
/** Skill display name */
|
|
1425
|
+
name: string;
|
|
1426
|
+
/** Overview information */
|
|
1427
|
+
overview: {
|
|
1428
|
+
summary?: string;
|
|
1429
|
+
};
|
|
1430
|
+
/** Average rating */
|
|
1431
|
+
ratingAverage?: number;
|
|
1432
|
+
/** Number of ratings */
|
|
1433
|
+
ratingCount: number;
|
|
1434
|
+
/** GitHub repository URL */
|
|
1435
|
+
repository?: string;
|
|
1436
|
+
/** Resource files: path -> metadata */
|
|
1437
|
+
resources: Record<string, SkillResource>;
|
|
1438
|
+
/** Tags */
|
|
1439
|
+
tags?: string[];
|
|
1440
|
+
/** Last update timestamp (ISO string) */
|
|
1441
|
+
updatedAt: string;
|
|
1442
|
+
/** Validation timestamp (ISO string) */
|
|
1443
|
+
validatedAt?: string;
|
|
1444
|
+
/** Current version string */
|
|
1445
|
+
version: string;
|
|
1446
|
+
/** Version number */
|
|
1447
|
+
versionNumber: number;
|
|
1448
|
+
/** All versions of this skill */
|
|
1449
|
+
versions: SkillVersionSummary[];
|
|
1450
|
+
}
|
|
1451
|
+
/**
|
|
1452
|
+
* Skill category with count
|
|
1453
|
+
*/
|
|
1454
|
+
interface SkillCategory {
|
|
1455
|
+
/** Category name */
|
|
1456
|
+
category: string;
|
|
1457
|
+
/** Number of skills in this category */
|
|
1458
|
+
count: number;
|
|
1459
|
+
}
|
|
1460
|
+
/**
|
|
1461
|
+
* Query parameters for listing skills
|
|
1462
|
+
*/
|
|
1463
|
+
interface SkillListQuery {
|
|
1464
|
+
/** Filter by category */
|
|
1465
|
+
category?: string;
|
|
1466
|
+
/** Locale for localized content (e.g., 'en-US', 'zh-CN') */
|
|
1467
|
+
locale?: string;
|
|
1468
|
+
/** Sort order */
|
|
1469
|
+
order?: 'asc' | 'desc';
|
|
1470
|
+
/** Page number (1-based) */
|
|
1471
|
+
page?: number;
|
|
1472
|
+
/** Number of items per page */
|
|
1473
|
+
pageSize?: number;
|
|
1474
|
+
/** Search query string */
|
|
1475
|
+
search?: string;
|
|
1476
|
+
/** Sort field */
|
|
1477
|
+
sort?: 'createdAt' | 'forks' | 'installCount' | 'name' | 'stars' | 'updatedAt' | 'watchers';
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* Query parameters for skill detail
|
|
1481
|
+
*/
|
|
1482
|
+
interface SkillDetailQuery {
|
|
1483
|
+
/** Locale for localized content */
|
|
1484
|
+
locale?: string;
|
|
1485
|
+
/** Specific version to retrieve */
|
|
1486
|
+
version?: string;
|
|
1487
|
+
}
|
|
1488
|
+
/**
|
|
1489
|
+
* Parameters for reporting a GitHub skill
|
|
1490
|
+
*/
|
|
1491
|
+
interface ReportGitHubSkillParams {
|
|
1492
|
+
/** Branch name (optional) */
|
|
1493
|
+
branch?: string;
|
|
1494
|
+
/** GitHub repository URL */
|
|
1495
|
+
gitUrl: string;
|
|
1496
|
+
}
|
|
1497
|
+
/**
|
|
1498
|
+
* Response from reporting a GitHub skill
|
|
1499
|
+
*/
|
|
1500
|
+
interface ReportGitHubSkillResponse {
|
|
1501
|
+
/** Skill identifier */
|
|
1502
|
+
identifier: string;
|
|
1503
|
+
/** Status message */
|
|
1504
|
+
message: string;
|
|
1505
|
+
/** Status: 'queued' for new import, 'exists' if skill already exists */
|
|
1506
|
+
status: 'exists' | 'queued';
|
|
1507
|
+
}
|
|
1508
|
+
/**
|
|
1509
|
+
* Response for skill versions list
|
|
1510
|
+
*/
|
|
1511
|
+
interface SkillVersionsResponse {
|
|
1512
|
+
/** List of version summaries */
|
|
1513
|
+
data: SkillVersionSummary[];
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
export { type AdminDeploymentOption, type AdminPluginItem, type AdminPluginItemDetail, AdminPluginItemSchema, type AdminSystemDependency, type AgentEventRequest, type AgentEventType, type AgentItem, type BasePluginItem, BasePluginItemSchema, type CallLogEntry, type CallReportRequest, type CallReportResponse, type CallStats, type CategoryItem, type CategoryListQuery, type CategoryListResponse, type CloudGatewayErrorResponse, type CloudGatewayRequest, type CloudGatewayResponse, type ConnectionConfig, type ConnectionType, ConnectionTypeEnum, type CustomPluginInfo, type DeploymentOption, type IncompleteI18nPlugin, type InstallFailureAnalysis, type InstallFailureAnalysisQuery, type InstallLogEntry, type InstallReportRequest, type InstallReportResponse, type InstallStats, type InstallationDetails, type InstallationMethod, InstallationMethodEnum, type MarketItemBase, type MarketPluginItem, type McpToolContent, PluginCapabilitiesSchema, type PluginCompatibility, type PluginConnectionType, PluginConnectionTypeEnum, type PluginEventRequest, type PluginEventType, type PluginItemDetail, type PluginManifest, type PluginMethodType, type PluginPrompt, type PluginResource, type PluginSortBy, type PluginTool, type PluginVersion, type PluginVersionLocalization, type PluginVersionSummary, type PromptArgument, type RangeDataPoint, type RangeQuery, type RangeStats, type ReportGitHubSkillParams, type ReportGitHubSkillResponse, type SkillAuthor, type SkillCategory, type SkillDetail, type SkillDetailQuery, type SkillGitHubMeta, type SkillLicense, type SkillListItem, type SkillListQuery, type SkillListResponse, type SkillManifest, type SkillResource, type SkillVersionSummary, type SkillVersionsResponse, type SystemDependency, type TopPlugin, type TopPluginsQuery };
|