@hol-org/rb-client 0.1.175 → 0.1.176
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.cjs +308 -1
- package/dist/index.d.cts +3074 -186
- package/dist/index.d.ts +3074 -186
- package/dist/index.js +308 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1380,24 +1380,120 @@ var skillPublisherMetadataSchema = import_zod2.z.object({
|
|
|
1380
1380
|
}).passthrough();
|
|
1381
1381
|
var skillTrustTierSchema = import_zod2.z.enum([
|
|
1382
1382
|
"unpublished",
|
|
1383
|
+
"unclaimed",
|
|
1384
|
+
"validated",
|
|
1383
1385
|
"published",
|
|
1384
1386
|
"verified",
|
|
1385
1387
|
"hardened"
|
|
1386
1388
|
]);
|
|
1389
|
+
var skillStatusDefaultVerificationSignals = {
|
|
1390
|
+
publisherBound: false,
|
|
1391
|
+
domainProof: false,
|
|
1392
|
+
verifiedDomain: false,
|
|
1393
|
+
previewValidated: false
|
|
1394
|
+
};
|
|
1395
|
+
var skillStatusDefaultProvenanceSignals = {
|
|
1396
|
+
repoCommitIntegrity: false,
|
|
1397
|
+
manifestIntegrity: false,
|
|
1398
|
+
canonicalRelease: false,
|
|
1399
|
+
previewAvailable: false,
|
|
1400
|
+
previewAuthoritative: false
|
|
1401
|
+
};
|
|
1387
1402
|
var skillStatusChecksSchema = import_zod2.z.object({
|
|
1388
1403
|
repoCommitIntegrity: import_zod2.z.boolean(),
|
|
1389
1404
|
manifestIntegrity: import_zod2.z.boolean(),
|
|
1390
1405
|
domainProof: import_zod2.z.boolean()
|
|
1391
1406
|
}).passthrough();
|
|
1392
1407
|
var skillStatusNextStepSchema = import_zod2.z.object({
|
|
1408
|
+
kind: import_zod2.z.enum([
|
|
1409
|
+
"setup_validate",
|
|
1410
|
+
"publish_first_release",
|
|
1411
|
+
"verify_domain",
|
|
1412
|
+
"harden_workflow",
|
|
1413
|
+
"share_status"
|
|
1414
|
+
]).optional(),
|
|
1415
|
+
priority: import_zod2.z.number().int().optional(),
|
|
1393
1416
|
id: import_zod2.z.string(),
|
|
1394
1417
|
label: import_zod2.z.string(),
|
|
1395
1418
|
description: import_zod2.z.string(),
|
|
1419
|
+
url: import_zod2.z.string().nullable().optional(),
|
|
1396
1420
|
href: import_zod2.z.string().nullable().optional(),
|
|
1397
1421
|
command: import_zod2.z.string().nullable().optional()
|
|
1398
1422
|
}).passthrough();
|
|
1423
|
+
var skillPreviewSuggestedNextStepSchema = import_zod2.z.object({
|
|
1424
|
+
id: import_zod2.z.string(),
|
|
1425
|
+
label: import_zod2.z.string(),
|
|
1426
|
+
description: import_zod2.z.string(),
|
|
1427
|
+
command: import_zod2.z.string().optional(),
|
|
1428
|
+
href: import_zod2.z.string().optional()
|
|
1429
|
+
}).passthrough();
|
|
1430
|
+
var skillPreviewReportSchema = import_zod2.z.object({
|
|
1431
|
+
schema_version: import_zod2.z.literal("skill-preview.v1"),
|
|
1432
|
+
tool_version: import_zod2.z.string(),
|
|
1433
|
+
preview_id: import_zod2.z.string(),
|
|
1434
|
+
repo_url: import_zod2.z.string(),
|
|
1435
|
+
repo_owner: import_zod2.z.string(),
|
|
1436
|
+
repo_name: import_zod2.z.string(),
|
|
1437
|
+
default_branch: import_zod2.z.string(),
|
|
1438
|
+
commit_sha: import_zod2.z.string(),
|
|
1439
|
+
ref: import_zod2.z.string(),
|
|
1440
|
+
event_name: import_zod2.z.string(),
|
|
1441
|
+
workflow_run_url: import_zod2.z.string(),
|
|
1442
|
+
skill_dir: import_zod2.z.string(),
|
|
1443
|
+
name: import_zod2.z.string(),
|
|
1444
|
+
version: import_zod2.z.string(),
|
|
1445
|
+
validation_status: import_zod2.z.literal("passed"),
|
|
1446
|
+
findings: import_zod2.z.array(import_zod2.z.unknown()),
|
|
1447
|
+
package_summary: import_zod2.z.record(import_zod2.z.string(), import_zod2.z.unknown()),
|
|
1448
|
+
suggested_next_steps: import_zod2.z.array(skillPreviewSuggestedNextStepSchema),
|
|
1449
|
+
generated_at: import_zod2.z.string()
|
|
1450
|
+
}).passthrough();
|
|
1451
|
+
var skillPreviewRecordSchema = import_zod2.z.object({
|
|
1452
|
+
id: import_zod2.z.string(),
|
|
1453
|
+
previewId: import_zod2.z.string(),
|
|
1454
|
+
source: import_zod2.z.literal("github-oidc"),
|
|
1455
|
+
report: skillPreviewReportSchema,
|
|
1456
|
+
generatedAt: import_zod2.z.string(),
|
|
1457
|
+
expiresAt: import_zod2.z.string(),
|
|
1458
|
+
statusUrl: import_zod2.z.string(),
|
|
1459
|
+
authoritative: import_zod2.z.boolean()
|
|
1460
|
+
}).passthrough();
|
|
1461
|
+
var skillPreviewLookupResponseSchema = import_zod2.z.object({
|
|
1462
|
+
found: import_zod2.z.boolean(),
|
|
1463
|
+
authoritative: import_zod2.z.boolean(),
|
|
1464
|
+
preview: skillPreviewRecordSchema.nullable(),
|
|
1465
|
+
statusUrl: import_zod2.z.string().nullable(),
|
|
1466
|
+
expiresAt: import_zod2.z.string().nullable()
|
|
1467
|
+
}).passthrough();
|
|
1468
|
+
var skillStatusPreviewMetadataSchema = import_zod2.z.object({
|
|
1469
|
+
previewId: import_zod2.z.string(),
|
|
1470
|
+
repoUrl: import_zod2.z.string(),
|
|
1471
|
+
repoOwner: import_zod2.z.string(),
|
|
1472
|
+
repoName: import_zod2.z.string(),
|
|
1473
|
+
commitSha: import_zod2.z.string(),
|
|
1474
|
+
ref: import_zod2.z.string(),
|
|
1475
|
+
eventName: import_zod2.z.string(),
|
|
1476
|
+
skillDir: import_zod2.z.string(),
|
|
1477
|
+
generatedAt: import_zod2.z.string(),
|
|
1478
|
+
expiresAt: import_zod2.z.string(),
|
|
1479
|
+
statusUrl: import_zod2.z.string()
|
|
1480
|
+
}).passthrough();
|
|
1481
|
+
var skillStatusVerificationSignalsSchema = import_zod2.z.object({
|
|
1482
|
+
publisherBound: import_zod2.z.boolean(),
|
|
1483
|
+
domainProof: import_zod2.z.boolean(),
|
|
1484
|
+
verifiedDomain: import_zod2.z.boolean(),
|
|
1485
|
+
previewValidated: import_zod2.z.boolean()
|
|
1486
|
+
}).passthrough();
|
|
1487
|
+
var skillStatusProvenanceSignalsSchema = import_zod2.z.object({
|
|
1488
|
+
repoCommitIntegrity: import_zod2.z.boolean(),
|
|
1489
|
+
manifestIntegrity: import_zod2.z.boolean(),
|
|
1490
|
+
canonicalRelease: import_zod2.z.boolean(),
|
|
1491
|
+
previewAvailable: import_zod2.z.boolean(),
|
|
1492
|
+
previewAuthoritative: import_zod2.z.boolean()
|
|
1493
|
+
}).passthrough();
|
|
1399
1494
|
var skillBadgeMetricSchema = import_zod2.z.enum([
|
|
1400
1495
|
"version",
|
|
1496
|
+
"version_verification",
|
|
1401
1497
|
"status",
|
|
1402
1498
|
"verification",
|
|
1403
1499
|
"repo_commit",
|
|
@@ -1418,7 +1514,65 @@ var skillStatusResponseSchema = import_zod2.z.object({
|
|
|
1418
1514
|
badgeMetric: skillBadgeMetricSchema,
|
|
1419
1515
|
checks: skillStatusChecksSchema,
|
|
1420
1516
|
nextSteps: import_zod2.z.array(skillStatusNextStepSchema),
|
|
1421
|
-
|
|
1517
|
+
verificationSignals: skillStatusVerificationSignalsSchema.default(
|
|
1518
|
+
skillStatusDefaultVerificationSignals
|
|
1519
|
+
),
|
|
1520
|
+
provenanceSignals: skillStatusProvenanceSignalsSchema.default(
|
|
1521
|
+
skillStatusDefaultProvenanceSignals
|
|
1522
|
+
),
|
|
1523
|
+
publisher: skillPublisherMetadataSchema.nullable().optional(),
|
|
1524
|
+
preview: skillStatusPreviewMetadataSchema.nullable().optional(),
|
|
1525
|
+
statusUrl: import_zod2.z.string().nullable().optional()
|
|
1526
|
+
}).passthrough();
|
|
1527
|
+
var skillInstallArtifactDescriptorSchema = import_zod2.z.object({
|
|
1528
|
+
url: import_zod2.z.string(),
|
|
1529
|
+
pointer: import_zod2.z.string().nullable(),
|
|
1530
|
+
sha256: import_zod2.z.string().nullable()
|
|
1531
|
+
}).passthrough();
|
|
1532
|
+
var skillInstallResolverDescriptorSchema = import_zod2.z.object({
|
|
1533
|
+
skillRef: import_zod2.z.string(),
|
|
1534
|
+
skillMdUrl: import_zod2.z.string(),
|
|
1535
|
+
manifestUrl: import_zod2.z.string()
|
|
1536
|
+
}).passthrough();
|
|
1537
|
+
var skillInstallBadgeDescriptorSchema = import_zod2.z.object({
|
|
1538
|
+
apiUrl: import_zod2.z.string(),
|
|
1539
|
+
imageUrl: import_zod2.z.string(),
|
|
1540
|
+
markdown: import_zod2.z.string(),
|
|
1541
|
+
html: import_zod2.z.string()
|
|
1542
|
+
}).passthrough();
|
|
1543
|
+
var skillInstallShareDescriptorSchema = import_zod2.z.object({
|
|
1544
|
+
canonicalUrl: import_zod2.z.string().nullable(),
|
|
1545
|
+
latestUrl: import_zod2.z.string().nullable(),
|
|
1546
|
+
markdownLink: import_zod2.z.string().nullable(),
|
|
1547
|
+
htmlLink: import_zod2.z.string().nullable(),
|
|
1548
|
+
badge: skillInstallBadgeDescriptorSchema.nullable()
|
|
1549
|
+
}).passthrough();
|
|
1550
|
+
var skillInstallSnippetSetSchema = import_zod2.z.object({
|
|
1551
|
+
cli: import_zod2.z.string(),
|
|
1552
|
+
claude: import_zod2.z.string(),
|
|
1553
|
+
cursor: import_zod2.z.string(),
|
|
1554
|
+
codex: import_zod2.z.string(),
|
|
1555
|
+
openclaw: import_zod2.z.string()
|
|
1556
|
+
}).passthrough();
|
|
1557
|
+
var skillInstallResponseSchema = import_zod2.z.object({
|
|
1558
|
+
name: import_zod2.z.string(),
|
|
1559
|
+
version: import_zod2.z.string(),
|
|
1560
|
+
skillRef: import_zod2.z.string(),
|
|
1561
|
+
network: import_zod2.z.union([import_zod2.z.literal("mainnet"), import_zod2.z.literal("testnet")]),
|
|
1562
|
+
detailUrl: import_zod2.z.string().nullable(),
|
|
1563
|
+
artifacts: import_zod2.z.object({
|
|
1564
|
+
skillMd: skillInstallArtifactDescriptorSchema,
|
|
1565
|
+
manifest: skillInstallArtifactDescriptorSchema
|
|
1566
|
+
}).passthrough(),
|
|
1567
|
+
resolvers: import_zod2.z.object({
|
|
1568
|
+
pinned: skillInstallResolverDescriptorSchema,
|
|
1569
|
+
latest: skillInstallResolverDescriptorSchema
|
|
1570
|
+
}).passthrough(),
|
|
1571
|
+
share: skillInstallShareDescriptorSchema,
|
|
1572
|
+
snippets: skillInstallSnippetSetSchema
|
|
1573
|
+
}).passthrough();
|
|
1574
|
+
var skillInstallCopyTelemetryResponseSchema = import_zod2.z.object({
|
|
1575
|
+
accepted: import_zod2.z.boolean()
|
|
1422
1576
|
}).passthrough();
|
|
1423
1577
|
var skillBadgeStyleSchema = import_zod2.z.enum([
|
|
1424
1578
|
"flat",
|
|
@@ -4176,6 +4330,35 @@ async function getSkillStatus(client, params) {
|
|
|
4176
4330
|
"skill status response"
|
|
4177
4331
|
);
|
|
4178
4332
|
}
|
|
4333
|
+
function buildRepoPreviewQuery(params) {
|
|
4334
|
+
const repo = params.repo.trim();
|
|
4335
|
+
const skillDir = params.skillDir.trim();
|
|
4336
|
+
if (!repo) {
|
|
4337
|
+
throw new Error("repo is required");
|
|
4338
|
+
}
|
|
4339
|
+
if (!skillDir) {
|
|
4340
|
+
throw new Error("skillDir is required");
|
|
4341
|
+
}
|
|
4342
|
+
const query = new URLSearchParams();
|
|
4343
|
+
query.set("repo", repo);
|
|
4344
|
+
query.set("skillDir", skillDir);
|
|
4345
|
+
if (params.ref?.trim()) {
|
|
4346
|
+
query.set("ref", params.ref.trim());
|
|
4347
|
+
}
|
|
4348
|
+
return query.toString();
|
|
4349
|
+
}
|
|
4350
|
+
async function getSkillStatusByRepo(client, params) {
|
|
4351
|
+
const query = buildRepoPreviewQuery(params);
|
|
4352
|
+
const raw = await client.requestJson(
|
|
4353
|
+
`/skills/status/by-repo?${query}`,
|
|
4354
|
+
{ method: "GET" }
|
|
4355
|
+
);
|
|
4356
|
+
return client.parseWithSchema(
|
|
4357
|
+
raw,
|
|
4358
|
+
skillStatusResponseSchema,
|
|
4359
|
+
"skill status response"
|
|
4360
|
+
);
|
|
4361
|
+
}
|
|
4179
4362
|
async function listSkills(client, params = {}) {
|
|
4180
4363
|
const query = new URLSearchParams();
|
|
4181
4364
|
if (params.name) {
|
|
@@ -4509,6 +4692,109 @@ async function getSkillBadge(client, params) {
|
|
|
4509
4692
|
"skill badge response"
|
|
4510
4693
|
);
|
|
4511
4694
|
}
|
|
4695
|
+
async function uploadSkillPreviewFromGithubOidc(client, payload) {
|
|
4696
|
+
const token = payload.token.trim();
|
|
4697
|
+
if (!token) {
|
|
4698
|
+
throw new Error("token is required");
|
|
4699
|
+
}
|
|
4700
|
+
const raw = await client.requestJson(
|
|
4701
|
+
"/skills/preview/github-oidc",
|
|
4702
|
+
{
|
|
4703
|
+
method: "POST",
|
|
4704
|
+
body: payload.report,
|
|
4705
|
+
headers: {
|
|
4706
|
+
"content-type": "application/json",
|
|
4707
|
+
authorization: `Bearer ${token}`
|
|
4708
|
+
}
|
|
4709
|
+
}
|
|
4710
|
+
);
|
|
4711
|
+
return client.parseWithSchema(
|
|
4712
|
+
raw,
|
|
4713
|
+
skillPreviewRecordSchema,
|
|
4714
|
+
"skill preview record response"
|
|
4715
|
+
);
|
|
4716
|
+
}
|
|
4717
|
+
async function getSkillPreview(client, params) {
|
|
4718
|
+
const normalizedName = params.name.trim();
|
|
4719
|
+
if (!normalizedName) {
|
|
4720
|
+
throw new Error("name is required");
|
|
4721
|
+
}
|
|
4722
|
+
const query = new URLSearchParams();
|
|
4723
|
+
query.set("name", normalizedName);
|
|
4724
|
+
if (params.version?.trim()) {
|
|
4725
|
+
query.set("version", params.version.trim());
|
|
4726
|
+
}
|
|
4727
|
+
const raw = await client.requestJson(
|
|
4728
|
+
`/skills/preview?${query.toString()}`,
|
|
4729
|
+
{ method: "GET" }
|
|
4730
|
+
);
|
|
4731
|
+
return client.parseWithSchema(
|
|
4732
|
+
raw,
|
|
4733
|
+
skillPreviewLookupResponseSchema,
|
|
4734
|
+
"skill preview response"
|
|
4735
|
+
);
|
|
4736
|
+
}
|
|
4737
|
+
async function getSkillPreviewByRepo(client, params) {
|
|
4738
|
+
const query = buildRepoPreviewQuery(params);
|
|
4739
|
+
const raw = await client.requestJson(
|
|
4740
|
+
`/skills/preview/by-repo?${query}`,
|
|
4741
|
+
{ method: "GET" }
|
|
4742
|
+
);
|
|
4743
|
+
return client.parseWithSchema(
|
|
4744
|
+
raw,
|
|
4745
|
+
skillPreviewLookupResponseSchema,
|
|
4746
|
+
"skill preview by repo response"
|
|
4747
|
+
);
|
|
4748
|
+
}
|
|
4749
|
+
async function getSkillPreviewById(client, previewId) {
|
|
4750
|
+
const normalizedPreviewId = previewId.trim();
|
|
4751
|
+
if (!normalizedPreviewId) {
|
|
4752
|
+
throw new Error("previewId is required");
|
|
4753
|
+
}
|
|
4754
|
+
const raw = await client.requestJson(
|
|
4755
|
+
`/skills/preview/${encodeURIComponent(normalizedPreviewId)}`,
|
|
4756
|
+
{ method: "GET" }
|
|
4757
|
+
);
|
|
4758
|
+
return client.parseWithSchema(
|
|
4759
|
+
raw,
|
|
4760
|
+
skillPreviewLookupResponseSchema,
|
|
4761
|
+
"skill preview by id response"
|
|
4762
|
+
);
|
|
4763
|
+
}
|
|
4764
|
+
async function getSkillInstall(client, skillRef) {
|
|
4765
|
+
const normalizedSkillRef = skillRef.trim();
|
|
4766
|
+
if (!normalizedSkillRef) {
|
|
4767
|
+
throw new Error("skillRef is required");
|
|
4768
|
+
}
|
|
4769
|
+
const raw = await client.requestJson(
|
|
4770
|
+
`/skills/${encodeURIComponent(normalizedSkillRef)}/install`,
|
|
4771
|
+
{ method: "GET" }
|
|
4772
|
+
);
|
|
4773
|
+
return client.parseWithSchema(
|
|
4774
|
+
raw,
|
|
4775
|
+
skillInstallResponseSchema,
|
|
4776
|
+
"skill install response"
|
|
4777
|
+
);
|
|
4778
|
+
}
|
|
4779
|
+
async function recordSkillInstallCopy(client, skillRef, payload = {}) {
|
|
4780
|
+
const normalizedSkillRef = skillRef.trim();
|
|
4781
|
+
if (!normalizedSkillRef) {
|
|
4782
|
+
throw new Error("skillRef is required");
|
|
4783
|
+
}
|
|
4784
|
+
const raw = await client.requestJson(
|
|
4785
|
+
`/skills/${encodeURIComponent(normalizedSkillRef)}/telemetry/install-copy`,
|
|
4786
|
+
{
|
|
4787
|
+
method: "POST",
|
|
4788
|
+
body: payload,
|
|
4789
|
+
headers: { "content-type": "application/json" }
|
|
4790
|
+
}
|
|
4791
|
+
);
|
|
4792
|
+
return client.parseWithSchema(
|
|
4793
|
+
raw,
|
|
4794
|
+
skillInstallCopyTelemetryResponseSchema,
|
|
4795
|
+
"skill install copy telemetry response"
|
|
4796
|
+
);
|
|
4797
|
+
}
|
|
4512
4798
|
async function listSkillTags(client) {
|
|
4513
4799
|
const raw = await client.requestJson("/skills/tags", {
|
|
4514
4800
|
method: "GET"
|
|
@@ -5076,6 +5362,27 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
|
|
|
5076
5362
|
async getSkillBadge(params) {
|
|
5077
5363
|
return getSkillBadge(this, params);
|
|
5078
5364
|
}
|
|
5365
|
+
async getSkillStatusByRepo(params) {
|
|
5366
|
+
return getSkillStatusByRepo(this, params);
|
|
5367
|
+
}
|
|
5368
|
+
async uploadSkillPreviewFromGithubOidc(payload) {
|
|
5369
|
+
return uploadSkillPreviewFromGithubOidc(this, payload);
|
|
5370
|
+
}
|
|
5371
|
+
async getSkillPreview(params) {
|
|
5372
|
+
return getSkillPreview(this, params);
|
|
5373
|
+
}
|
|
5374
|
+
async getSkillPreviewByRepo(params) {
|
|
5375
|
+
return getSkillPreviewByRepo(this, params);
|
|
5376
|
+
}
|
|
5377
|
+
async getSkillPreviewById(previewId) {
|
|
5378
|
+
return getSkillPreviewById(this, previewId);
|
|
5379
|
+
}
|
|
5380
|
+
async getSkillInstall(skillRef) {
|
|
5381
|
+
return getSkillInstall(this, skillRef);
|
|
5382
|
+
}
|
|
5383
|
+
async recordSkillInstallCopy(skillRef, payload) {
|
|
5384
|
+
return recordSkillInstallCopy(this, skillRef, payload);
|
|
5385
|
+
}
|
|
5079
5386
|
async listSkillTags() {
|
|
5080
5387
|
return listSkillTags(this);
|
|
5081
5388
|
}
|