@hol-org/rb-client 0.1.173 → 0.1.174

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.js CHANGED
@@ -1293,6 +1293,50 @@ var skillDeprecationsResponseSchema = z2.object({
1293
1293
  name: z2.string(),
1294
1294
  items: z2.array(skillDeprecationRecordSchema)
1295
1295
  }).passthrough();
1296
+ var skillPublisherQuickstartCommandSchema = z2.object({
1297
+ id: z2.string(),
1298
+ label: z2.string(),
1299
+ description: z2.string(),
1300
+ command: z2.string(),
1301
+ href: z2.string().nullable().optional()
1302
+ }).passthrough();
1303
+ var skillPublisherTemplatePresetSchema = z2.object({
1304
+ presetId: z2.string(),
1305
+ label: z2.string(),
1306
+ description: z2.string(),
1307
+ recommendedFor: z2.string(),
1308
+ command: z2.string()
1309
+ }).passthrough();
1310
+ var skillPublisherMetadataSchema = z2.object({
1311
+ cliPackageUrl: z2.string(),
1312
+ cliCommand: z2.string(),
1313
+ actionMarketplaceUrl: z2.string(),
1314
+ repositoryUrl: z2.string(),
1315
+ guideUrl: z2.string().nullable().optional(),
1316
+ docsUrl: z2.string().nullable().optional(),
1317
+ submitUrl: z2.string().nullable().optional(),
1318
+ skillsIndexUrl: z2.string().nullable().optional(),
1319
+ quickstartCommands: z2.array(skillPublisherQuickstartCommandSchema),
1320
+ templatePresets: z2.array(skillPublisherTemplatePresetSchema)
1321
+ }).passthrough();
1322
+ var skillTrustTierSchema = z2.enum([
1323
+ "unpublished",
1324
+ "published",
1325
+ "verified",
1326
+ "hardened"
1327
+ ]);
1328
+ var skillStatusChecksSchema = z2.object({
1329
+ repoCommitIntegrity: z2.boolean(),
1330
+ manifestIntegrity: z2.boolean(),
1331
+ domainProof: z2.boolean()
1332
+ }).passthrough();
1333
+ var skillStatusNextStepSchema = z2.object({
1334
+ id: z2.string(),
1335
+ label: z2.string(),
1336
+ description: z2.string(),
1337
+ href: z2.string().nullable().optional(),
1338
+ command: z2.string().nullable().optional()
1339
+ }).passthrough();
1296
1340
  var skillBadgeMetricSchema = z2.enum([
1297
1341
  "version",
1298
1342
  "status",
@@ -1301,10 +1345,22 @@ var skillBadgeMetricSchema = z2.enum([
1301
1345
  "manifest",
1302
1346
  "domain",
1303
1347
  "trust",
1348
+ "tier",
1304
1349
  "safety",
1305
1350
  "upvotes",
1306
1351
  "updated"
1307
1352
  ]);
1353
+ var skillStatusResponseSchema = z2.object({
1354
+ name: z2.string(),
1355
+ version: z2.string().nullable(),
1356
+ published: z2.boolean(),
1357
+ verifiedDomain: z2.boolean(),
1358
+ trustTier: skillTrustTierSchema,
1359
+ badgeMetric: skillBadgeMetricSchema,
1360
+ checks: skillStatusChecksSchema,
1361
+ nextSteps: z2.array(skillStatusNextStepSchema),
1362
+ publisher: skillPublisherMetadataSchema.nullable().optional()
1363
+ }).passthrough();
1308
1364
  var skillBadgeStyleSchema = z2.enum([
1309
1365
  "flat",
1310
1366
  "flat-square",
@@ -1418,7 +1474,8 @@ var skillRegistryConfigResponseSchema = z2.object({
1418
1474
  maxFiles: z2.number().int().nullable().optional(),
1419
1475
  maxTotalSizeBytes: z2.number().int().nullable().optional(),
1420
1476
  allowedMimeTypes: z2.array(z2.string()).nullable().optional(),
1421
- network: z2.union([z2.literal("mainnet"), z2.literal("testnet")]).nullable().optional()
1477
+ network: z2.union([z2.literal("mainnet"), z2.literal("testnet")]).nullable().optional(),
1478
+ publisher: skillPublisherMetadataSchema.nullable().optional()
1422
1479
  }).passthrough();
1423
1480
  var skillRegistryOwnershipResponseSchema = z2.object({
1424
1481
  name: z2.string(),
@@ -4037,6 +4094,28 @@ async function skillsConfig(client) {
4037
4094
  "skill registry config response"
4038
4095
  );
4039
4096
  }
4097
+ async function getSkillStatus(client, params) {
4098
+ const normalizedName = params.name.trim();
4099
+ if (!normalizedName) {
4100
+ throw new Error("name is required");
4101
+ }
4102
+ const query = new URLSearchParams();
4103
+ query.set("name", normalizedName);
4104
+ if (params.version?.trim()) {
4105
+ query.set("version", params.version.trim());
4106
+ }
4107
+ const raw = await client.requestJson(
4108
+ `/skills/status?${query.toString()}`,
4109
+ {
4110
+ method: "GET"
4111
+ }
4112
+ );
4113
+ return client.parseWithSchema(
4114
+ raw,
4115
+ skillStatusResponseSchema,
4116
+ "skill status response"
4117
+ );
4118
+ }
4040
4119
  async function listSkills(client, params = {}) {
4041
4120
  const query = new URLSearchParams();
4042
4121
  if (params.name) {
@@ -4889,6 +4968,9 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
4889
4968
  async skillsConfig() {
4890
4969
  return skillsConfig(this);
4891
4970
  }
4971
+ async getSkillStatus(params) {
4972
+ return getSkillStatus(this, params);
4973
+ }
4892
4974
  async listSkills(options) {
4893
4975
  return listSkills(this, options);
4894
4976
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hol-org/rb-client",
3
- "version": "0.1.173",
3
+ "version": "0.1.174",
4
4
  "description": "Lightweight Registry Broker client for HOL registries.",
5
5
  "type": "module",
6
6
  "files": [