@hol-org/rb-client 0.1.176 → 0.1.178

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
@@ -238,13 +238,6 @@ var metadataFacetSchema = z2.record(
238
238
  jsonValueSchema
239
239
  ])
240
240
  ).optional();
241
- var searchHitMetadataSchema = z2.object({
242
- delegationRoles: jsonValueSchema.optional(),
243
- delegationTaskTags: jsonValueSchema.optional(),
244
- delegationProtocols: jsonValueSchema.optional(),
245
- delegationSummary: jsonValueSchema.optional(),
246
- delegationSignals: jsonValueSchema.optional()
247
- }).passthrough();
248
241
  var searchHitSchema = z2.object({
249
242
  id: z2.string(),
250
243
  uaid: z2.string(),
@@ -253,7 +246,7 @@ var searchHitSchema = z2.object({
253
246
  description: z2.string().optional(),
254
247
  capabilities: z2.array(capabilityValueSchema),
255
248
  endpoints: z2.union([z2.record(jsonValueSchema), z2.array(z2.string())]).optional(),
256
- metadata: searchHitMetadataSchema.optional(),
249
+ metadata: z2.record(jsonValueSchema).optional(),
257
250
  metadataFacet: metadataFacetSchema,
258
251
  profile: agentProfileSchema.optional(),
259
252
  protocols: z2.array(z2.string()).optional(),
@@ -299,22 +292,13 @@ var resolveResponseSchema = z2.object({
299
292
  });
300
293
  var delegationPlanCandidateSchema = z2.object({
301
294
  uaid: z2.string(),
302
- label: z2.string(),
303
- registry: z2.string().optional(),
304
- agent: searchHitSchema,
305
295
  score: z2.number(),
306
- matchedQueries: z2.array(z2.string()).optional(),
307
- matchedRoles: z2.array(z2.string()).optional(),
308
- matchedProtocols: z2.array(z2.string()).optional(),
309
- matchedSurfaces: z2.array(z2.string()).optional(),
310
- matchedLanguages: z2.array(z2.string()).optional(),
311
- matchedArtifacts: z2.array(z2.string()).optional(),
312
- matchedTaskTags: z2.array(z2.string()).optional(),
313
- reasons: z2.array(z2.string()).optional(),
314
- suggestedMessage: z2.string().optional(),
315
- trustScore: z2.number().optional(),
316
- verified: z2.boolean().optional(),
317
- communicationSupported: z2.boolean().optional(),
296
+ displayName: z2.string().optional(),
297
+ summary: z2.string().optional(),
298
+ protocols: z2.array(z2.string()).optional(),
299
+ surfaces: z2.array(z2.string()).optional(),
300
+ languages: z2.array(z2.string()).optional(),
301
+ artifacts: z2.array(z2.string()).optional(),
318
302
  availability: z2.boolean().optional(),
319
303
  explanation: z2.string().optional()
320
304
  }).passthrough();
@@ -903,6 +887,151 @@ var creditPurchaseResponseSchema = z2.object({
903
887
  transactionId: z2.string(),
904
888
  consensusTimestamp: z2.string().nullable().optional()
905
889
  });
890
+ var creditProviderSummarySchema = z2.object({
891
+ name: z2.string(),
892
+ publishableKey: z2.string().optional(),
893
+ currency: z2.string().optional(),
894
+ centsPerHbar: z2.number().nullable().optional()
895
+ });
896
+ var creditProvidersResponseSchema = z2.object({
897
+ providers: z2.array(creditProviderSummarySchema)
898
+ });
899
+ var creditBalanceResponseSchema = z2.object({
900
+ accountId: z2.string(),
901
+ balance: z2.number(),
902
+ balanceRecord: jsonValueSchema.optional(),
903
+ timestamp: z2.string().optional()
904
+ });
905
+ var guardPlanIdSchema = z2.enum(["free", "pro", "team", "enterprise"]);
906
+ var guardBucketBalanceSchema = z2.object({
907
+ bucketId: z2.enum([
908
+ "registry_credits",
909
+ "chat_credits",
910
+ "guard_credits",
911
+ "org_policy_credits"
912
+ ]),
913
+ label: z2.string(),
914
+ availableCredits: z2.number(),
915
+ includedMonthlyCredits: z2.number().nullable().optional()
916
+ });
917
+ var guardPrincipalSchema = z2.object({
918
+ signedIn: z2.boolean(),
919
+ userId: z2.string().optional(),
920
+ email: z2.string().optional(),
921
+ accountId: z2.string().optional(),
922
+ stripeCustomerId: z2.string().optional(),
923
+ roles: z2.array(z2.string())
924
+ });
925
+ var guardEntitlementsSchema = z2.object({
926
+ planId: guardPlanIdSchema,
927
+ includedMonthlyCredits: z2.number(),
928
+ deviceLimit: z2.number(),
929
+ retentionDays: z2.number(),
930
+ syncEnabled: z2.boolean(),
931
+ premiumFeedsEnabled: z2.boolean(),
932
+ teamPolicyEnabled: z2.boolean()
933
+ });
934
+ var guardSessionResponseSchema = z2.object({
935
+ principal: guardPrincipalSchema,
936
+ entitlements: guardEntitlementsSchema,
937
+ balance: z2.object({
938
+ accountId: z2.string(),
939
+ availableCredits: z2.number()
940
+ }).nullable(),
941
+ bucketingMode: z2.enum(["shared-ledger", "product-bucketed"]),
942
+ buckets: z2.array(guardBucketBalanceSchema)
943
+ });
944
+ var guardBalanceResponseSchema = z2.object({
945
+ generatedAt: z2.string(),
946
+ bucketingMode: z2.enum(["shared-ledger", "product-bucketed"]),
947
+ buckets: z2.array(guardBucketBalanceSchema)
948
+ });
949
+ var guardTrustMatchSchema = z2.object({
950
+ artifactId: z2.string(),
951
+ artifactName: z2.string(),
952
+ artifactType: z2.enum(["skill", "plugin"]),
953
+ artifactSlug: z2.string(),
954
+ recommendation: z2.enum(["monitor", "review", "block"]),
955
+ verified: z2.boolean(),
956
+ safetyScore: z2.number().nullable().optional(),
957
+ trustScore: z2.number().nullable().optional(),
958
+ href: z2.string().optional(),
959
+ ecosystem: z2.string().optional()
960
+ });
961
+ var guardTrustByHashResponseSchema = z2.object({
962
+ generatedAt: z2.string(),
963
+ query: z2.object({
964
+ sha256: z2.string()
965
+ }),
966
+ match: guardTrustMatchSchema.nullable(),
967
+ evidence: z2.array(z2.string())
968
+ });
969
+ var guardTrustResolveResponseSchema = z2.object({
970
+ generatedAt: z2.string(),
971
+ query: z2.object({
972
+ ecosystem: z2.string().optional(),
973
+ name: z2.string().optional(),
974
+ version: z2.string().optional()
975
+ }),
976
+ items: z2.array(guardTrustMatchSchema)
977
+ });
978
+ var guardRevocationSchema = z2.object({
979
+ id: z2.string(),
980
+ artifactId: z2.string(),
981
+ artifactName: z2.string(),
982
+ reason: z2.string(),
983
+ severity: z2.enum(["low", "medium", "high"]),
984
+ publishedAt: z2.string()
985
+ });
986
+ var guardRevocationResponseSchema = z2.object({
987
+ generatedAt: z2.string(),
988
+ items: z2.array(guardRevocationSchema)
989
+ });
990
+ var guardReceiptSchema = z2.object({
991
+ receiptId: z2.string(),
992
+ capturedAt: z2.string(),
993
+ harness: z2.string(),
994
+ deviceId: z2.string(),
995
+ deviceName: z2.string(),
996
+ artifactId: z2.string(),
997
+ artifactName: z2.string(),
998
+ artifactType: z2.enum(["skill", "plugin"]),
999
+ artifactSlug: z2.string(),
1000
+ artifactHash: z2.string(),
1001
+ policyDecision: z2.enum([
1002
+ "allow",
1003
+ "warn",
1004
+ "block",
1005
+ "review",
1006
+ "require-reapproval",
1007
+ "sandbox-required"
1008
+ ]),
1009
+ recommendation: z2.enum(["monitor", "review", "block"]),
1010
+ changedSinceLastApproval: z2.boolean(),
1011
+ publisher: z2.string().optional(),
1012
+ capabilities: z2.array(z2.string()),
1013
+ summary: z2.string()
1014
+ });
1015
+ var guardReceiptSyncResponseSchema = z2.object({
1016
+ syncedAt: z2.string(),
1017
+ receiptsStored: z2.number()
1018
+ });
1019
+ var hbarPurchaseIntentResponseSchema = z2.object({
1020
+ transaction: z2.string(),
1021
+ transactionId: z2.string(),
1022
+ network: z2.enum(["mainnet", "testnet"]),
1023
+ accountId: z2.string(),
1024
+ treasuryAccountId: z2.string(),
1025
+ hbarAmount: z2.number(),
1026
+ credits: z2.number(),
1027
+ tinybarAmount: z2.number(),
1028
+ memo: z2.string(),
1029
+ centsPerHbar: z2.number(),
1030
+ validStart: z2.string(),
1031
+ validDurationSeconds: z2.number(),
1032
+ requiresManualSubmit: z2.literal(true),
1033
+ purchaseId: z2.string()
1034
+ });
906
1035
  var x402SettlementSchema = z2.object({
907
1036
  success: z2.boolean().optional(),
908
1037
  transaction: z2.string().optional(),
@@ -1232,14 +1361,6 @@ var skillRegistryListResponseSchema = z2.object({
1232
1361
  items: z2.array(skillRegistryPublishSummarySchema),
1233
1362
  nextCursor: z2.string().nullable()
1234
1363
  }).passthrough();
1235
- var skillSecurityBreakdownResponseSchema = z2.object({
1236
- name: z2.string(),
1237
- version: z2.string(),
1238
- jobId: z2.string(),
1239
- createdAt: z2.string(),
1240
- safety: skillSafetySummarySchema.nullable(),
1241
- findings: z2.array(skillSafetyFindingSchema)
1242
- }).passthrough();
1243
1364
  var skillCatalogChannelSchema = z2.enum([
1244
1365
  "stable",
1245
1366
  "prerelease",
@@ -1293,58 +1414,190 @@ var skillDeprecationsResponseSchema = z2.object({
1293
1414
  name: z2.string(),
1294
1415
  items: z2.array(skillDeprecationRecordSchema)
1295
1416
  }).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()
1417
+ var skillSecurityBreakdownFindingSchema = z2.record(jsonValueSchema);
1418
+ var skillSecurityBreakdownSummarySchema = z2.record(jsonValueSchema);
1419
+ var skillSecurityBreakdownResponseSchema = z2.object({
1420
+ jobId: z2.string(),
1421
+ score: z2.number().nullable().optional(),
1422
+ findings: z2.array(skillSecurityBreakdownFindingSchema).optional(),
1423
+ summary: skillSecurityBreakdownSummarySchema.optional(),
1424
+ generatedAt: z2.string().nullable().optional(),
1425
+ scannerVersion: z2.string().nullable().optional()
1302
1426
  }).passthrough();
1303
- var skillPublisherTemplatePresetSchema = z2.object({
1304
- presetId: z2.string(),
1427
+ var skillBadgeMetricSchema = z2.enum([
1428
+ "version",
1429
+ "version_verification",
1430
+ "status",
1431
+ "verification",
1432
+ "repo_commit",
1433
+ "manifest",
1434
+ "domain",
1435
+ "trust",
1436
+ "tier",
1437
+ "safety",
1438
+ "upvotes",
1439
+ "updated"
1440
+ ]);
1441
+ var skillBadgeStyleSchema = z2.enum([
1442
+ "flat",
1443
+ "flat-square",
1444
+ "for-the-badge",
1445
+ "plastic",
1446
+ "social"
1447
+ ]);
1448
+ var skillBadgeResponseSchema = z2.object({
1449
+ schemaVersion: z2.number().int(),
1305
1450
  label: z2.string(),
1306
- description: z2.string(),
1307
- recommendedFor: z2.string(),
1308
- command: z2.string()
1451
+ message: z2.string(),
1452
+ color: z2.string(),
1453
+ style: skillBadgeStyleSchema.optional(),
1454
+ isError: z2.boolean().optional(),
1455
+ cacheSeconds: z2.number().int().optional()
1309
1456
  }).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)
1457
+ var skillRegistryTagsResponseSchema = z2.object({
1458
+ tags: z2.array(z2.string())
1459
+ }).passthrough();
1460
+ var skillRegistryCategoriesResponseSchema = z2.object({
1461
+ categories: z2.array(z2.string())
1462
+ }).passthrough();
1463
+ var skillResolverManifestResponseSchema = z2.record(jsonValueSchema);
1464
+ var skillRegistryQuoteFileBreakdownSchema = z2.object({
1465
+ name: z2.string(),
1466
+ mimeType: z2.string(),
1467
+ estimatedCostHbar: z2.number()
1468
+ }).passthrough();
1469
+ var skillRegistryQuoteResponseSchema = z2.object({
1470
+ quoteId: z2.string(),
1471
+ name: z2.string(),
1472
+ version: z2.string(),
1473
+ directoryTopicId: z2.string(),
1474
+ estimatedCostHbar: z2.number(),
1475
+ credits: z2.number(),
1476
+ usdCents: z2.number(),
1477
+ expiresAt: z2.string(),
1478
+ files: z2.array(skillRegistryQuoteFileBreakdownSchema)
1479
+ }).passthrough();
1480
+ var skillRegistryJobStatusSchema = z2.union([
1481
+ z2.literal("pending"),
1482
+ z2.literal("in_progress"),
1483
+ z2.literal("completed"),
1484
+ z2.literal("failed")
1485
+ ]);
1486
+ var skillRegistryPublishResponseSchema = z2.object({
1487
+ jobId: z2.string(),
1488
+ status: skillRegistryJobStatusSchema,
1489
+ credits: z2.number().nullable().optional(),
1490
+ usdCents: z2.number().nullable().optional(),
1491
+ quoteId: z2.string().nullable().optional(),
1492
+ createdAt: z2.string(),
1493
+ updatedAt: z2.string(),
1494
+ network: z2.union([z2.literal("mainnet"), z2.literal("testnet")])
1495
+ }).passthrough();
1496
+ var skillRegistryJobStatusResponseSchema = z2.object({
1497
+ jobId: z2.string(),
1498
+ status: skillRegistryJobStatusSchema,
1499
+ network: z2.union([z2.literal("mainnet"), z2.literal("testnet")]),
1500
+ name: z2.string(),
1501
+ version: z2.string(),
1502
+ directoryTopicId: z2.string(),
1503
+ skillUid: z2.number().int().nullable().optional(),
1504
+ directorySequenceNumber: z2.number().int().nullable().optional(),
1505
+ versionRegistryTopicId: z2.string().nullable().optional(),
1506
+ packageTopicId: z2.string().nullable().optional(),
1507
+ manifestHrl: z2.string().nullable().optional(),
1508
+ skillJsonHrl: z2.string().nullable().optional(),
1509
+ iconHcs1: z2.string().nullable().optional(),
1510
+ tags: z2.array(z2.string()).nullable().optional(),
1511
+ category: z2.string().nullable().optional(),
1512
+ files: z2.array(skillRegistryFileDescriptorSchema).nullable().optional(),
1513
+ quoteCredits: z2.number().nullable().optional(),
1514
+ quoteUsdCents: z2.number().nullable().optional(),
1515
+ safety: skillSafetySummarySchema.nullable().optional(),
1516
+ reservationId: z2.string().nullable().optional(),
1517
+ totalCostHbar: z2.number().nullable().optional(),
1518
+ totalCostCredits: z2.number().nullable().optional(),
1519
+ failureReason: z2.string().nullable().optional(),
1520
+ createdAt: z2.string(),
1521
+ updatedAt: z2.string()
1522
+ }).passthrough();
1523
+ var skillRegistryVersionItemSchema = z2.object({
1524
+ jobId: z2.string(),
1525
+ version: z2.string(),
1526
+ createdAt: z2.string(),
1527
+ verified: z2.boolean().optional()
1528
+ }).passthrough();
1529
+ var skillRegistryVersionsResponseSchema = z2.object({
1530
+ name: z2.string(),
1531
+ items: z2.array(skillRegistryVersionItemSchema)
1532
+ }).passthrough();
1533
+ var skillRegistryMineItemSchema = z2.object({
1534
+ name: z2.string(),
1535
+ latestVersion: z2.string(),
1536
+ latestCreatedAt: z2.string(),
1537
+ verified: z2.boolean().optional(),
1538
+ iconHcs1: z2.string().optional(),
1539
+ versions: z2.array(z2.string())
1540
+ }).passthrough();
1541
+ var skillRegistryMineResponseSchema = z2.object({
1542
+ items: z2.array(skillRegistryMineItemSchema)
1543
+ }).passthrough();
1544
+ var skillRegistryMyListResponseSchema = z2.object({
1545
+ owned: skillRegistryMineResponseSchema,
1546
+ upvoted: skillRegistryListResponseSchema
1547
+ }).passthrough();
1548
+ var skillRegistryConfigResponseSchema = z2.object({
1549
+ enabled: z2.boolean(),
1550
+ directoryTopicId: z2.string().nullable().optional(),
1551
+ maxFiles: z2.number().int().nullable().optional(),
1552
+ maxTotalSizeBytes: z2.number().int().nullable().optional(),
1553
+ allowedMimeTypes: z2.array(z2.string()).nullable().optional(),
1554
+ network: z2.union([z2.literal("mainnet"), z2.literal("testnet")]).nullable().optional(),
1555
+ publisher: z2.object({
1556
+ cliPackageUrl: z2.string(),
1557
+ cliCommand: z2.string(),
1558
+ actionMarketplaceUrl: z2.string(),
1559
+ repositoryUrl: z2.string(),
1560
+ guideUrl: z2.string().nullable().optional(),
1561
+ docsUrl: z2.string().nullable().optional(),
1562
+ submitUrl: z2.string().nullable().optional(),
1563
+ skillsIndexUrl: z2.string().nullable().optional(),
1564
+ quickstartCommands: z2.array(
1565
+ z2.object({
1566
+ id: z2.string(),
1567
+ label: z2.string(),
1568
+ description: z2.string(),
1569
+ command: z2.string(),
1570
+ href: z2.string().nullable().optional()
1571
+ }).passthrough()
1572
+ ).optional().default([]),
1573
+ templatePresets: z2.array(
1574
+ z2.object({
1575
+ presetId: z2.string(),
1576
+ label: z2.string(),
1577
+ description: z2.string(),
1578
+ recommendedFor: z2.string(),
1579
+ command: z2.string()
1580
+ }).passthrough()
1581
+ ).optional().default([])
1582
+ }).nullable().optional()
1583
+ }).passthrough();
1584
+ var skillRegistryOwnershipResponseSchema = z2.object({
1585
+ name: z2.string(),
1586
+ exists: z2.boolean(),
1587
+ isOwner: z2.boolean()
1588
+ }).passthrough();
1589
+ var skillRegistryVoteStatusResponseSchema = z2.object({
1590
+ name: z2.string(),
1591
+ upvotes: z2.number().int(),
1592
+ hasUpvoted: z2.boolean()
1321
1593
  }).passthrough();
1322
1594
  var skillTrustTierSchema = z2.enum([
1323
- "unpublished",
1324
1595
  "unclaimed",
1325
1596
  "validated",
1326
1597
  "published",
1327
1598
  "verified",
1328
1599
  "hardened"
1329
1600
  ]);
1330
- var skillStatusDefaultVerificationSignals = {
1331
- publisherBound: false,
1332
- domainProof: false,
1333
- verifiedDomain: false,
1334
- previewValidated: false
1335
- };
1336
- var skillStatusDefaultProvenanceSignals = {
1337
- repoCommitIntegrity: false,
1338
- manifestIntegrity: false,
1339
- canonicalRelease: false,
1340
- previewAvailable: false,
1341
- previewAuthoritative: false
1342
- };
1343
- var skillStatusChecksSchema = z2.object({
1344
- repoCommitIntegrity: z2.boolean(),
1345
- manifestIntegrity: z2.boolean(),
1346
- domainProof: z2.boolean()
1347
- }).passthrough();
1348
1601
  var skillStatusNextStepSchema = z2.object({
1349
1602
  kind: z2.enum([
1350
1603
  "setup_validate",
@@ -1352,8 +1605,8 @@ var skillStatusNextStepSchema = z2.object({
1352
1605
  "verify_domain",
1353
1606
  "harden_workflow",
1354
1607
  "share_status"
1355
- ]).optional(),
1356
- priority: z2.number().int().optional(),
1608
+ ]),
1609
+ priority: z2.number().int(),
1357
1610
  id: z2.string(),
1358
1611
  label: z2.string(),
1359
1612
  description: z2.string(),
@@ -1419,6 +1672,11 @@ var skillStatusPreviewMetadataSchema = z2.object({
1419
1672
  expiresAt: z2.string(),
1420
1673
  statusUrl: z2.string()
1421
1674
  }).passthrough();
1675
+ var skillStatusChecksSchema = z2.object({
1676
+ repoCommitIntegrity: z2.boolean(),
1677
+ manifestIntegrity: z2.boolean(),
1678
+ domainProof: z2.boolean()
1679
+ }).passthrough();
1422
1680
  var skillStatusVerificationSignalsSchema = z2.object({
1423
1681
  publisherBound: z2.boolean(),
1424
1682
  domainProof: z2.boolean(),
@@ -1432,20 +1690,6 @@ var skillStatusProvenanceSignalsSchema = z2.object({
1432
1690
  previewAvailable: z2.boolean(),
1433
1691
  previewAuthoritative: z2.boolean()
1434
1692
  }).passthrough();
1435
- var skillBadgeMetricSchema = z2.enum([
1436
- "version",
1437
- "version_verification",
1438
- "status",
1439
- "verification",
1440
- "repo_commit",
1441
- "manifest",
1442
- "domain",
1443
- "trust",
1444
- "tier",
1445
- "safety",
1446
- "upvotes",
1447
- "updated"
1448
- ]);
1449
1693
  var skillStatusResponseSchema = z2.object({
1450
1694
  name: z2.string(),
1451
1695
  version: z2.string().nullable(),
@@ -1455,16 +1699,44 @@ var skillStatusResponseSchema = z2.object({
1455
1699
  badgeMetric: skillBadgeMetricSchema,
1456
1700
  checks: skillStatusChecksSchema,
1457
1701
  nextSteps: z2.array(skillStatusNextStepSchema),
1458
- verificationSignals: skillStatusVerificationSignalsSchema.default(
1459
- skillStatusDefaultVerificationSignals
1460
- ),
1461
- provenanceSignals: skillStatusProvenanceSignalsSchema.default(
1462
- skillStatusDefaultProvenanceSignals
1463
- ),
1464
- publisher: skillPublisherMetadataSchema.nullable().optional(),
1702
+ verificationSignals: skillStatusVerificationSignalsSchema,
1703
+ provenanceSignals: skillStatusProvenanceSignalsSchema,
1704
+ publisher: skillRegistryConfigResponseSchema.shape.publisher,
1465
1705
  preview: skillStatusPreviewMetadataSchema.nullable().optional(),
1466
1706
  statusUrl: z2.string().nullable().optional()
1467
1707
  }).passthrough();
1708
+ var skillQuotePreviewRangeSchema = z2.object({
1709
+ min: z2.number(),
1710
+ max: z2.number()
1711
+ }).passthrough();
1712
+ var skillQuotePreviewResponseSchema = z2.object({
1713
+ estimatedCredits: skillQuotePreviewRangeSchema,
1714
+ estimatedHbar: skillQuotePreviewRangeSchema,
1715
+ pricingVersion: z2.string(),
1716
+ assumptions: z2.array(z2.string()),
1717
+ purchaseUrl: z2.string().nullable(),
1718
+ publishUrl: z2.string().nullable(),
1719
+ verificationUrl: z2.string().nullable()
1720
+ }).passthrough();
1721
+ var skillConversionSignalsResponseSchema = z2.object({
1722
+ repoUrl: z2.string(),
1723
+ skillDir: z2.string(),
1724
+ trustTier: skillTrustTierSchema,
1725
+ actionInstalled: z2.boolean(),
1726
+ previewUploaded: z2.boolean(),
1727
+ previewId: z2.string().nullable(),
1728
+ lastValidateSuccessAt: z2.string().nullable(),
1729
+ stalePreviewAgeDays: z2.number().nullable(),
1730
+ published: z2.boolean(),
1731
+ verified: z2.boolean(),
1732
+ publishReady: z2.boolean(),
1733
+ publishBlockedByMissingAuth: z2.boolean(),
1734
+ statusUrl: z2.string().nullable(),
1735
+ purchaseUrl: z2.string().nullable(),
1736
+ publishUrl: z2.string().nullable(),
1737
+ verificationUrl: z2.string().nullable(),
1738
+ nextSteps: z2.array(skillStatusNextStepSchema)
1739
+ }).passthrough();
1468
1740
  var skillInstallArtifactDescriptorSchema = z2.object({
1469
1741
  url: z2.string(),
1470
1742
  pointer: z2.string().nullable(),
@@ -1500,146 +1772,20 @@ var skillInstallResponseSchema = z2.object({
1500
1772
  version: z2.string(),
1501
1773
  skillRef: z2.string(),
1502
1774
  network: z2.union([z2.literal("mainnet"), z2.literal("testnet")]),
1503
- detailUrl: z2.string().nullable(),
1504
- artifacts: z2.object({
1505
- skillMd: skillInstallArtifactDescriptorSchema,
1506
- manifest: skillInstallArtifactDescriptorSchema
1507
- }).passthrough(),
1508
- resolvers: z2.object({
1509
- pinned: skillInstallResolverDescriptorSchema,
1510
- latest: skillInstallResolverDescriptorSchema
1511
- }).passthrough(),
1512
- share: skillInstallShareDescriptorSchema,
1513
- snippets: skillInstallSnippetSetSchema
1514
- }).passthrough();
1515
- var skillInstallCopyTelemetryResponseSchema = z2.object({
1516
- accepted: z2.boolean()
1517
- }).passthrough();
1518
- var skillBadgeStyleSchema = z2.enum([
1519
- "flat",
1520
- "flat-square",
1521
- "for-the-badge",
1522
- "plastic",
1523
- "social"
1524
- ]);
1525
- var skillBadgeResponseSchema = z2.object({
1526
- schemaVersion: z2.number().int(),
1527
- label: z2.string(),
1528
- message: z2.string(),
1529
- color: z2.string(),
1530
- style: skillBadgeStyleSchema.optional(),
1531
- isError: z2.boolean().optional(),
1532
- cacheSeconds: z2.number().int().optional()
1533
- }).passthrough();
1534
- var skillRegistryTagsResponseSchema = z2.object({
1535
- tags: z2.array(z2.string())
1536
- }).passthrough();
1537
- var skillRegistryCategoriesResponseSchema = z2.object({
1538
- categories: z2.array(z2.string())
1539
- }).passthrough();
1540
- var skillResolverManifestResponseSchema = z2.record(jsonValueSchema);
1541
- var skillRegistryQuoteFileBreakdownSchema = z2.object({
1542
- name: z2.string(),
1543
- mimeType: z2.string(),
1544
- estimatedCostHbar: z2.number()
1545
- }).passthrough();
1546
- var skillRegistryQuoteResponseSchema = z2.object({
1547
- quoteId: z2.string(),
1548
- name: z2.string(),
1549
- version: z2.string(),
1550
- directoryTopicId: z2.string(),
1551
- estimatedCostHbar: z2.number(),
1552
- credits: z2.number(),
1553
- usdCents: z2.number(),
1554
- expiresAt: z2.string(),
1555
- files: z2.array(skillRegistryQuoteFileBreakdownSchema)
1556
- }).passthrough();
1557
- var skillRegistryJobStatusSchema = z2.union([
1558
- z2.literal("pending"),
1559
- z2.literal("in_progress"),
1560
- z2.literal("completed"),
1561
- z2.literal("failed")
1562
- ]);
1563
- var skillRegistryPublishResponseSchema = z2.object({
1564
- jobId: z2.string(),
1565
- status: skillRegistryJobStatusSchema,
1566
- credits: z2.number().nullable().optional(),
1567
- usdCents: z2.number().nullable().optional(),
1568
- quoteId: z2.string().nullable().optional(),
1569
- createdAt: z2.string(),
1570
- updatedAt: z2.string(),
1571
- network: z2.union([z2.literal("mainnet"), z2.literal("testnet")])
1572
- }).passthrough();
1573
- var skillRegistryJobStatusResponseSchema = z2.object({
1574
- jobId: z2.string(),
1575
- status: skillRegistryJobStatusSchema,
1576
- network: z2.union([z2.literal("mainnet"), z2.literal("testnet")]),
1577
- name: z2.string(),
1578
- version: z2.string(),
1579
- directoryTopicId: z2.string(),
1580
- skillUid: z2.number().int().nullable().optional(),
1581
- directorySequenceNumber: z2.number().int().nullable().optional(),
1582
- versionRegistryTopicId: z2.string().nullable().optional(),
1583
- packageTopicId: z2.string().nullable().optional(),
1584
- manifestHrl: z2.string().nullable().optional(),
1585
- skillJsonHrl: z2.string().nullable().optional(),
1586
- iconHcs1: z2.string().nullable().optional(),
1587
- tags: z2.array(z2.string()).nullable().optional(),
1588
- category: z2.string().nullable().optional(),
1589
- files: z2.array(skillRegistryFileDescriptorSchema).nullable().optional(),
1590
- quoteCredits: z2.number().nullable().optional(),
1591
- quoteUsdCents: z2.number().nullable().optional(),
1592
- safety: skillSafetySummarySchema.nullable().optional(),
1593
- reservationId: z2.string().nullable().optional(),
1594
- totalCostHbar: z2.number().nullable().optional(),
1595
- totalCostCredits: z2.number().nullable().optional(),
1596
- failureReason: z2.string().nullable().optional(),
1597
- createdAt: z2.string(),
1598
- updatedAt: z2.string()
1599
- }).passthrough();
1600
- var skillRegistryVersionItemSchema = z2.object({
1601
- jobId: z2.string(),
1602
- version: z2.string(),
1603
- createdAt: z2.string(),
1604
- verified: z2.boolean().optional()
1605
- }).passthrough();
1606
- var skillRegistryVersionsResponseSchema = z2.object({
1607
- name: z2.string(),
1608
- items: z2.array(skillRegistryVersionItemSchema)
1609
- }).passthrough();
1610
- var skillRegistryMineItemSchema = z2.object({
1611
- name: z2.string(),
1612
- latestVersion: z2.string(),
1613
- latestCreatedAt: z2.string(),
1614
- verified: z2.boolean().optional(),
1615
- iconHcs1: z2.string().optional(),
1616
- versions: z2.array(z2.string())
1617
- }).passthrough();
1618
- var skillRegistryMineResponseSchema = z2.object({
1619
- items: z2.array(skillRegistryMineItemSchema)
1620
- }).passthrough();
1621
- var skillRegistryMyListResponseSchema = z2.object({
1622
- owned: skillRegistryMineResponseSchema,
1623
- upvoted: skillRegistryListResponseSchema
1624
- }).passthrough();
1625
- var skillRegistryConfigResponseSchema = z2.object({
1626
- enabled: z2.boolean(),
1627
- directoryTopicId: z2.string().nullable().optional(),
1628
- maxFiles: z2.number().int().nullable().optional(),
1629
- maxTotalSizeBytes: z2.number().int().nullable().optional(),
1630
- allowedMimeTypes: z2.array(z2.string()).nullable().optional(),
1631
- network: z2.union([z2.literal("mainnet"), z2.literal("testnet")]).nullable().optional(),
1632
- publisher: skillPublisherMetadataSchema.nullable().optional()
1633
- }).passthrough();
1634
- var skillRegistryOwnershipResponseSchema = z2.object({
1635
- name: z2.string(),
1636
- exists: z2.boolean(),
1637
- isOwner: z2.boolean()
1775
+ detailUrl: z2.string().nullable(),
1776
+ artifacts: z2.object({
1777
+ skillMd: skillInstallArtifactDescriptorSchema,
1778
+ manifest: skillInstallArtifactDescriptorSchema
1779
+ }).passthrough(),
1780
+ resolvers: z2.object({
1781
+ pinned: skillInstallResolverDescriptorSchema,
1782
+ latest: skillInstallResolverDescriptorSchema
1783
+ }).passthrough(),
1784
+ share: skillInstallShareDescriptorSchema,
1785
+ snippets: skillInstallSnippetSetSchema
1638
1786
  }).passthrough();
1639
- var skillRegistryVoteStatusResponseSchema = z2.object({
1640
- name: z2.string(),
1641
- upvotes: z2.number().int(),
1642
- hasUpvoted: z2.boolean()
1787
+ var skillInstallCopyTelemetryResponseSchema = z2.object({
1788
+ accepted: z2.boolean()
1643
1789
  }).passthrough();
1644
1790
  var skillVerificationTierSchema = z2.enum(["basic", "express"]);
1645
1791
  var skillVerificationStatusSchema = z2.enum([
@@ -2738,9 +2884,16 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
2738
2884
  // ../../src/utils/dynamic-import.ts
2739
2885
  var nodeRequire;
2740
2886
  var isNodeRuntime = () => typeof process !== "undefined" && Boolean(process.versions?.node);
2887
+ function resolveBuiltinModuleLoader() {
2888
+ if (typeof process === "undefined") {
2889
+ return void 0;
2890
+ }
2891
+ return process.getBuiltinModule;
2892
+ }
2741
2893
  function getNodeRequireSync() {
2742
2894
  try {
2743
- const moduleNamespace = process.getBuiltinModule?.("module");
2895
+ const builtinModuleLoader = resolveBuiltinModuleLoader();
2896
+ const moduleNamespace = builtinModuleLoader?.("module");
2744
2897
  if (typeof moduleNamespace?.createRequire === "function") {
2745
2898
  const requireFromModule = moduleNamespace.createRequire(import.meta.url);
2746
2899
  if (typeof requireFromModule.resolve === "function") {
@@ -3140,6 +3293,61 @@ async function adapterRegistrySubmissionStatus(client, submissionId) {
3140
3293
  }
3141
3294
 
3142
3295
  // ../../src/services/registry-broker/client/credits.ts
3296
+ async function getCreditsBalance(client, params = {}) {
3297
+ const query = new URLSearchParams();
3298
+ const normalizedAccountId = params.accountId?.trim();
3299
+ if (normalizedAccountId) {
3300
+ query.set("accountId", normalizedAccountId);
3301
+ }
3302
+ const suffix = query.size > 0 ? `?${query.toString()}` : "";
3303
+ const raw = await client.requestJson(`/credits/balance${suffix}`, {
3304
+ method: "GET"
3305
+ });
3306
+ return client.parseWithSchema(
3307
+ raw,
3308
+ creditBalanceResponseSchema,
3309
+ "credit balance response"
3310
+ );
3311
+ }
3312
+ async function getCreditProviders(client) {
3313
+ const raw = await client.requestJson("/credits/providers", {
3314
+ method: "GET"
3315
+ });
3316
+ return client.parseWithSchema(
3317
+ raw,
3318
+ creditProvidersResponseSchema,
3319
+ "credit providers response"
3320
+ );
3321
+ }
3322
+ async function createHbarPurchaseIntent(client, payload) {
3323
+ const body = {};
3324
+ const normalizedAccountId = payload.accountId?.trim();
3325
+ if (normalizedAccountId) {
3326
+ body.accountId = normalizedAccountId;
3327
+ }
3328
+ if (payload.credits !== void 0) {
3329
+ body.credits = payload.credits;
3330
+ }
3331
+ if (payload.hbarAmount !== void 0) {
3332
+ body.hbarAmount = payload.hbarAmount;
3333
+ }
3334
+ if (payload.memo?.trim()) {
3335
+ body.memo = payload.memo.trim();
3336
+ }
3337
+ const raw = await client.requestJson(
3338
+ "/credits/payments/hbar/intent",
3339
+ {
3340
+ method: "POST",
3341
+ headers: { "content-type": "application/json" },
3342
+ body
3343
+ }
3344
+ );
3345
+ return client.parseWithSchema(
3346
+ raw,
3347
+ hbarPurchaseIntentResponseSchema,
3348
+ "hbar purchase intent response"
3349
+ );
3350
+ }
3143
3351
  async function loadX402Dependencies(client) {
3144
3352
  const [{ default: axios }, x402Axios, x402Types] = await Promise.all([
3145
3353
  import("axios"),
@@ -3667,6 +3875,97 @@ async function registerOwnedMoltbookAgent(client, uaid, request) {
3667
3875
  );
3668
3876
  }
3669
3877
 
3878
+ // ../../src/services/registry-broker/client/guard.ts
3879
+ async function getGuardSession(client) {
3880
+ const raw = await client.requestJson("/guard/auth/session", {
3881
+ method: "GET"
3882
+ });
3883
+ return client.parseWithSchema(
3884
+ raw,
3885
+ guardSessionResponseSchema,
3886
+ "guard session response"
3887
+ );
3888
+ }
3889
+ async function getGuardEntitlements(client) {
3890
+ const raw = await client.requestJson("/guard/entitlements", {
3891
+ method: "GET"
3892
+ });
3893
+ return client.parseWithSchema(
3894
+ raw,
3895
+ guardSessionResponseSchema,
3896
+ "guard entitlements response"
3897
+ );
3898
+ }
3899
+ async function getGuardBillingBalance(client) {
3900
+ const raw = await client.requestJson("/guard/billing/balance", {
3901
+ method: "GET"
3902
+ });
3903
+ return client.parseWithSchema(
3904
+ raw,
3905
+ guardBalanceResponseSchema,
3906
+ "guard billing balance response"
3907
+ );
3908
+ }
3909
+ async function getGuardTrustByHash(client, sha256) {
3910
+ const normalizedHash = sha256.trim();
3911
+ if (!normalizedHash) {
3912
+ throw new Error("sha256 is required");
3913
+ }
3914
+ const raw = await client.requestJson(
3915
+ `/guard/trust/by-hash/${encodeURIComponent(normalizedHash)}`,
3916
+ { method: "GET" }
3917
+ );
3918
+ return client.parseWithSchema(
3919
+ raw,
3920
+ guardTrustByHashResponseSchema,
3921
+ "guard trust by hash response"
3922
+ );
3923
+ }
3924
+ async function resolveGuardTrust(client, query) {
3925
+ const params = new URLSearchParams();
3926
+ if (query.ecosystem?.trim()) {
3927
+ params.set("ecosystem", query.ecosystem.trim());
3928
+ }
3929
+ if (query.name?.trim()) {
3930
+ params.set("name", query.name.trim());
3931
+ }
3932
+ if (query.version?.trim()) {
3933
+ params.set("version", query.version.trim());
3934
+ }
3935
+ const suffix = params.size > 0 ? `?${params.toString()}` : "";
3936
+ const raw = await client.requestJson(
3937
+ `/guard/trust/resolve${suffix}`,
3938
+ { method: "GET" }
3939
+ );
3940
+ return client.parseWithSchema(
3941
+ raw,
3942
+ guardTrustResolveResponseSchema,
3943
+ "guard trust resolve response"
3944
+ );
3945
+ }
3946
+ async function getGuardRevocations(client) {
3947
+ const raw = await client.requestJson("/guard/revocations", {
3948
+ method: "GET"
3949
+ });
3950
+ return client.parseWithSchema(
3951
+ raw,
3952
+ guardRevocationResponseSchema,
3953
+ "guard revocations response"
3954
+ );
3955
+ }
3956
+ async function syncGuardReceipts(client, payload) {
3957
+ const raw = await client.requestJson("/guard/receipts/sync", {
3958
+ method: "POST",
3959
+ headers: { "content-type": "application/json" },
3960
+ body: payload
3961
+ });
3962
+ return client.parseWithSchema(
3963
+ raw,
3964
+ guardReceiptSyncResponseSchema,
3965
+ "guard receipt sync response"
3966
+ );
3967
+ }
3968
+
3670
3969
  // ../../src/services/registry-broker/client/ledger-auth.ts
3671
3970
  import { Buffer as Buffer4 } from "buffer";
3672
3971
 
@@ -4238,6 +4537,13 @@ async function facets(client, adapter) {
4238
4537
  }
4239
4538
 
4240
4539
  // ../../src/services/registry-broker/client/skills.ts
4540
+ function requireTrimmedString(value, fieldName) {
4541
+ const normalizedValue = value.trim();
4542
+ if (!normalizedValue) {
4543
+ throw new Error(`${fieldName} is required`);
4544
+ }
4545
+ return normalizedValue;
4546
+ }
4241
4547
  async function skillsConfig(client) {
4242
4548
  const raw = await client.requestJson("/skills/config", {
4243
4549
  method: "GET"
@@ -4248,57 +4554,6 @@ async function skillsConfig(client) {
4248
4554
  "skill registry config response"
4249
4555
  );
4250
4556
  }
4251
- async function getSkillStatus(client, params) {
4252
- const normalizedName = params.name.trim();
4253
- if (!normalizedName) {
4254
- throw new Error("name is required");
4255
- }
4256
- const query = new URLSearchParams();
4257
- query.set("name", normalizedName);
4258
- if (params.version?.trim()) {
4259
- query.set("version", params.version.trim());
4260
- }
4261
- const raw = await client.requestJson(
4262
- `/skills/status?${query.toString()}`,
4263
- {
4264
- method: "GET"
4265
- }
4266
- );
4267
- return client.parseWithSchema(
4268
- raw,
4269
- skillStatusResponseSchema,
4270
- "skill status response"
4271
- );
4272
- }
4273
- function buildRepoPreviewQuery(params) {
4274
- const repo = params.repo.trim();
4275
- const skillDir = params.skillDir.trim();
4276
- if (!repo) {
4277
- throw new Error("repo is required");
4278
- }
4279
- if (!skillDir) {
4280
- throw new Error("skillDir is required");
4281
- }
4282
- const query = new URLSearchParams();
4283
- query.set("repo", repo);
4284
- query.set("skillDir", skillDir);
4285
- if (params.ref?.trim()) {
4286
- query.set("ref", params.ref.trim());
4287
- }
4288
- return query.toString();
4289
- }
4290
- async function getSkillStatusByRepo(client, params) {
4291
- const query = buildRepoPreviewQuery(params);
4292
- const raw = await client.requestJson(
4293
- `/skills/status/by-repo?${query}`,
4294
- { method: "GET" }
4295
- );
4296
- return client.parseWithSchema(
4297
- raw,
4298
- skillStatusResponseSchema,
4299
- "skill status response"
4300
- );
4301
- }
4302
4557
  async function listSkills(client, params = {}) {
4303
4558
  const query = new URLSearchParams();
4304
4559
  if (params.name) {
@@ -4348,10 +4603,7 @@ async function listSkills(client, params = {}) {
4348
4603
  );
4349
4604
  }
4350
4605
  async function getSkillSecurityBreakdown(client, params) {
4351
- const normalizedJobId = params.jobId.trim();
4352
- if (!normalizedJobId) {
4353
- throw new Error("jobId is required");
4354
- }
4606
+ const normalizedJobId = requireTrimmedString(params.jobId, "jobId");
4355
4607
  const raw = await client.requestJson(
4356
4608
  `/skills/${encodeURIComponent(normalizedJobId)}/security-breakdown`,
4357
4609
  { method: "GET" }
@@ -4404,10 +4656,7 @@ async function getSkillsCatalog(client, params = {}) {
4404
4656
  );
4405
4657
  }
4406
4658
  async function listSkillVersions(client, params) {
4407
- const normalizedName = params.name.trim();
4408
- if (!normalizedName) {
4409
- throw new Error("name is required");
4410
- }
4659
+ const normalizedName = requireTrimmedString(params.name, "name");
4411
4660
  const query = new URLSearchParams();
4412
4661
  query.set("name", normalizedName);
4413
4662
  const raw = await client.requestJson(
@@ -4468,6 +4717,18 @@ async function quoteSkillPublish(client, payload) {
4468
4717
  "skill registry quote response"
4469
4718
  );
4470
4719
  }
4720
+ async function quoteSkillPublishPreview(client, payload) {
4721
+ const raw = await client.requestJson("/skills/quote-preview", {
4722
+ method: "POST",
4723
+ body: payload,
4724
+ headers: { "content-type": "application/json" }
4725
+ });
4726
+ return client.parseWithSchema(
4727
+ raw,
4728
+ skillQuotePreviewResponseSchema,
4729
+ "skill quote preview response"
4730
+ );
4731
+ }
4471
4732
  async function publishSkill(client, payload) {
4472
4733
  const raw = await client.requestJson("/skills/publish", {
4473
4734
  method: "POST",
@@ -4481,10 +4742,7 @@ async function publishSkill(client, payload) {
4481
4742
  );
4482
4743
  }
4483
4744
  async function getSkillPublishJob(client, jobId, params = {}) {
4484
- const normalized = jobId.trim();
4485
- if (!normalized) {
4486
- throw new Error("jobId is required");
4487
- }
4745
+ const normalized = requireTrimmedString(jobId, "jobId");
4488
4746
  const query = new URLSearchParams();
4489
4747
  if (params.accountId) {
4490
4748
  query.set("accountId", params.accountId);
@@ -4501,10 +4759,7 @@ async function getSkillPublishJob(client, jobId, params = {}) {
4501
4759
  );
4502
4760
  }
4503
4761
  async function getSkillOwnership(client, params) {
4504
- const normalizedName = params.name.trim();
4505
- if (!normalizedName) {
4506
- throw new Error("name is required");
4507
- }
4762
+ const normalizedName = requireTrimmedString(params.name, "name");
4508
4763
  const query = new URLSearchParams();
4509
4764
  query.set("name", normalizedName);
4510
4765
  if (params.accountId) {
@@ -4523,10 +4778,7 @@ async function getSkillOwnership(client, params) {
4523
4778
  );
4524
4779
  }
4525
4780
  async function getRecommendedSkillVersion(client, params) {
4526
- const normalizedName = params.name.trim();
4527
- if (!normalizedName) {
4528
- throw new Error("name is required");
4529
- }
4781
+ const normalizedName = requireTrimmedString(params.name, "name");
4530
4782
  const query = new URLSearchParams();
4531
4783
  query.set("name", normalizedName);
4532
4784
  const raw = await client.requestJson(
@@ -4540,14 +4792,8 @@ async function getRecommendedSkillVersion(client, params) {
4540
4792
  );
4541
4793
  }
4542
4794
  async function setRecommendedSkillVersion(client, payload) {
4543
- const normalizedName = payload.name.trim();
4544
- const normalizedVersion = payload.version.trim();
4545
- if (!normalizedName) {
4546
- throw new Error("name is required");
4547
- }
4548
- if (!normalizedVersion) {
4549
- throw new Error("version is required");
4550
- }
4795
+ const normalizedName = requireTrimmedString(payload.name, "name");
4796
+ const normalizedVersion = requireTrimmedString(payload.version, "version");
4551
4797
  const raw = await client.requestJson("/skills/recommended", {
4552
4798
  method: "POST",
4553
4799
  body: {
@@ -4563,10 +4809,7 @@ async function setRecommendedSkillVersion(client, payload) {
4563
4809
  );
4564
4810
  }
4565
4811
  async function getSkillDeprecations(client, params) {
4566
- const normalizedName = params.name.trim();
4567
- if (!normalizedName) {
4568
- throw new Error("name is required");
4569
- }
4812
+ const normalizedName = requireTrimmedString(params.name, "name");
4570
4813
  const query = new URLSearchParams();
4571
4814
  query.set("name", normalizedName);
4572
4815
  const raw = await client.requestJson(
@@ -4580,15 +4823,9 @@ async function getSkillDeprecations(client, params) {
4580
4823
  );
4581
4824
  }
4582
4825
  async function setSkillDeprecation(client, payload) {
4583
- const normalizedName = payload.name.trim();
4584
- if (!normalizedName) {
4585
- throw new Error("name is required");
4586
- }
4826
+ const normalizedName = requireTrimmedString(payload.name, "name");
4587
4827
  const version = payload.version?.trim();
4588
- const reason = payload.reason.trim();
4589
- if (!reason) {
4590
- throw new Error("reason is required");
4591
- }
4828
+ const reason = requireTrimmedString(payload.reason, "reason");
4592
4829
  const replacementRef = payload.replacementRef?.trim();
4593
4830
  const raw = await client.requestJson("/skills/deprecate", {
4594
4831
  method: "POST",
@@ -4607,10 +4844,7 @@ async function setSkillDeprecation(client, payload) {
4607
4844
  );
4608
4845
  }
4609
4846
  async function getSkillBadge(client, params) {
4610
- const normalizedName = params.name.trim();
4611
- if (!normalizedName) {
4612
- throw new Error("name is required");
4613
- }
4847
+ const normalizedName = requireTrimmedString(params.name, "name");
4614
4848
  const query = new URLSearchParams();
4615
4849
  query.set("name", normalizedName);
4616
4850
  if (params.metric) {
@@ -4632,11 +4866,63 @@ async function getSkillBadge(client, params) {
4632
4866
  "skill badge response"
4633
4867
  );
4634
4868
  }
4635
- async function uploadSkillPreviewFromGithubOidc(client, payload) {
4636
- const token = payload.token.trim();
4637
- if (!token) {
4638
- throw new Error("token is required");
4869
+ async function getSkillStatus(client, params) {
4870
+ const normalizedName = requireTrimmedString(params.name, "name");
4871
+ const query = new URLSearchParams();
4872
+ query.set("name", normalizedName);
4873
+ if (params.version?.trim()) {
4874
+ query.set("version", params.version.trim());
4875
+ }
4876
+ const raw = await client.requestJson(
4877
+ `/skills/status?${query.toString()}`,
4878
+ { method: "GET" }
4879
+ );
4880
+ return client.parseWithSchema(
4881
+ raw,
4882
+ skillStatusResponseSchema,
4883
+ "skill status response"
4884
+ );
4885
+ }
4886
+ async function getSkillStatusByRepo(client, params) {
4887
+ const repo = requireTrimmedString(params.repo, "repo");
4888
+ const skillDir = requireTrimmedString(params.skillDir, "skillDir");
4889
+ const query = new URLSearchParams();
4890
+ query.set("repo", repo);
4891
+ query.set("skillDir", skillDir);
4892
+ if (params.ref?.trim()) {
4893
+ query.set("ref", params.ref.trim());
4894
+ }
4895
+ const raw = await client.requestJson(
4896
+ `/skills/status/by-repo?${query.toString()}`,
4897
+ { method: "GET" }
4898
+ );
4899
+ return client.parseWithSchema(
4900
+ raw,
4901
+ skillStatusResponseSchema,
4902
+ "skill status response"
4903
+ );
4904
+ }
4905
+ async function getSkillConversionSignalsByRepo(client, params) {
4906
+ const repo = requireTrimmedString(params.repo, "repo");
4907
+ const skillDir = requireTrimmedString(params.skillDir, "skillDir");
4908
+ const query = new URLSearchParams();
4909
+ query.set("repo", repo);
4910
+ query.set("skillDir", skillDir);
4911
+ if (params.ref?.trim()) {
4912
+ query.set("ref", params.ref.trim());
4639
4913
  }
4914
+ const raw = await client.requestJson(
4915
+ `/skills/conversion-signals/by-repo?${query.toString()}`,
4916
+ { method: "GET" }
4917
+ );
4918
+ return client.parseWithSchema(
4919
+ raw,
4920
+ skillConversionSignalsResponseSchema,
4921
+ "skill conversion signals response"
4922
+ );
4923
+ }
4924
+ async function uploadSkillPreviewFromGithubOidc(client, payload) {
4925
+ const token = requireTrimmedString(payload.token, "token");
4640
4926
  const raw = await client.requestJson(
4641
4927
  "/skills/preview/github-oidc",
4642
4928
  {
@@ -4655,10 +4941,7 @@ async function uploadSkillPreviewFromGithubOidc(client, payload) {
4655
4941
  );
4656
4942
  }
4657
4943
  async function getSkillPreview(client, params) {
4658
- const normalizedName = params.name.trim();
4659
- if (!normalizedName) {
4660
- throw new Error("name is required");
4661
- }
4944
+ const normalizedName = requireTrimmedString(params.name, "name");
4662
4945
  const query = new URLSearchParams();
4663
4946
  query.set("name", normalizedName);
4664
4947
  if (params.version?.trim()) {
@@ -4675,9 +4958,16 @@ async function getSkillPreview(client, params) {
4675
4958
  );
4676
4959
  }
4677
4960
  async function getSkillPreviewByRepo(client, params) {
4678
- const query = buildRepoPreviewQuery(params);
4961
+ const repo = requireTrimmedString(params.repo, "repo");
4962
+ const skillDir = requireTrimmedString(params.skillDir, "skillDir");
4963
+ const query = new URLSearchParams();
4964
+ query.set("repo", repo);
4965
+ query.set("skillDir", skillDir);
4966
+ if (params.ref?.trim()) {
4967
+ query.set("ref", params.ref.trim());
4968
+ }
4679
4969
  const raw = await client.requestJson(
4680
- `/skills/preview/by-repo?${query}`,
4970
+ `/skills/preview/by-repo?${query.toString()}`,
4681
4971
  { method: "GET" }
4682
4972
  );
4683
4973
  return client.parseWithSchema(
@@ -4687,10 +4977,7 @@ async function getSkillPreviewByRepo(client, params) {
4687
4977
  );
4688
4978
  }
4689
4979
  async function getSkillPreviewById(client, previewId) {
4690
- const normalizedPreviewId = previewId.trim();
4691
- if (!normalizedPreviewId) {
4692
- throw new Error("previewId is required");
4693
- }
4980
+ const normalizedPreviewId = requireTrimmedString(previewId, "previewId");
4694
4981
  const raw = await client.requestJson(
4695
4982
  `/skills/preview/${encodeURIComponent(normalizedPreviewId)}`,
4696
4983
  { method: "GET" }
@@ -4702,10 +4989,7 @@ async function getSkillPreviewById(client, previewId) {
4702
4989
  );
4703
4990
  }
4704
4991
  async function getSkillInstall(client, skillRef) {
4705
- const normalizedSkillRef = skillRef.trim();
4706
- if (!normalizedSkillRef) {
4707
- throw new Error("skillRef is required");
4708
- }
4992
+ const normalizedSkillRef = requireTrimmedString(skillRef, "skillRef");
4709
4993
  const raw = await client.requestJson(
4710
4994
  `/skills/${encodeURIComponent(normalizedSkillRef)}/install`,
4711
4995
  { method: "GET" }
@@ -4717,10 +5001,7 @@ async function getSkillInstall(client, skillRef) {
4717
5001
  );
4718
5002
  }
4719
5003
  async function recordSkillInstallCopy(client, skillRef, payload = {}) {
4720
- const normalizedSkillRef = skillRef.trim();
4721
- if (!normalizedSkillRef) {
4722
- throw new Error("skillRef is required");
4723
- }
5004
+ const normalizedSkillRef = requireTrimmedString(skillRef, "skillRef");
4724
5005
  const raw = await client.requestJson(
4725
5006
  `/skills/${encodeURIComponent(normalizedSkillRef)}/telemetry/install-copy`,
4726
5007
  {
@@ -4756,10 +5037,7 @@ async function listSkillCategories(client) {
4756
5037
  );
4757
5038
  }
4758
5039
  async function resolveSkillMarkdown(client, skillRef) {
4759
- const normalizedSkillRef = skillRef.trim();
4760
- if (!normalizedSkillRef) {
4761
- throw new Error("skillRef is required");
4762
- }
5040
+ const normalizedSkillRef = requireTrimmedString(skillRef, "skillRef");
4763
5041
  const response = await client.request(
4764
5042
  `/skills/${encodeURIComponent(normalizedSkillRef)}/SKILL.md`,
4765
5043
  {
@@ -4772,10 +5050,7 @@ async function resolveSkillMarkdown(client, skillRef) {
4772
5050
  return response.text();
4773
5051
  }
4774
5052
  async function resolveSkillManifest(client, skillRef) {
4775
- const normalizedSkillRef = skillRef.trim();
4776
- if (!normalizedSkillRef) {
4777
- throw new Error("skillRef is required");
4778
- }
5053
+ const normalizedSkillRef = requireTrimmedString(skillRef, "skillRef");
4779
5054
  const raw = await client.requestJson(
4780
5055
  `/skills/${encodeURIComponent(normalizedSkillRef)}/manifest`,
4781
5056
  {
@@ -4789,10 +5064,7 @@ async function resolveSkillManifest(client, skillRef) {
4789
5064
  );
4790
5065
  }
4791
5066
  async function getSkillVoteStatus(client, params) {
4792
- const normalizedName = params.name.trim();
4793
- if (!normalizedName) {
4794
- throw new Error("name is required");
4795
- }
5067
+ const normalizedName = requireTrimmedString(params.name, "name");
4796
5068
  const query = new URLSearchParams();
4797
5069
  query.set("name", normalizedName);
4798
5070
  const raw = await client.requestJson(
@@ -4806,10 +5078,7 @@ async function getSkillVoteStatus(client, params) {
4806
5078
  );
4807
5079
  }
4808
5080
  async function setSkillVote(client, payload) {
4809
- const normalizedName = payload.name.trim();
4810
- if (!normalizedName) {
4811
- throw new Error("name is required");
4812
- }
5081
+ const normalizedName = requireTrimmedString(payload.name, "name");
4813
5082
  const raw = await client.requestJson("/skills/vote", {
4814
5083
  method: "POST",
4815
5084
  body: { name: normalizedName, upvoted: payload.upvoted },
@@ -4822,10 +5091,7 @@ async function setSkillVote(client, payload) {
4822
5091
  );
4823
5092
  }
4824
5093
  async function requestSkillVerification(client, payload) {
4825
- const normalizedName = payload.name.trim();
4826
- if (!normalizedName) {
4827
- throw new Error("name is required");
4828
- }
5094
+ const normalizedName = requireTrimmedString(payload.name, "name");
4829
5095
  const raw = await client.requestJson(
4830
5096
  "/skills/verification/request",
4831
5097
  {
@@ -4845,10 +5111,7 @@ async function requestSkillVerification(client, payload) {
4845
5111
  );
4846
5112
  }
4847
5113
  async function getSkillVerificationStatus(client, params) {
4848
- const normalizedName = params.name.trim();
4849
- if (!normalizedName) {
4850
- throw new Error("name is required");
4851
- }
5114
+ const normalizedName = requireTrimmedString(params.name, "name");
4852
5115
  const query = new URLSearchParams();
4853
5116
  query.set("name", normalizedName);
4854
5117
  if (params.version) {
@@ -4865,10 +5128,7 @@ async function getSkillVerificationStatus(client, params) {
4865
5128
  );
4866
5129
  }
4867
5130
  async function createSkillDomainProofChallenge(client, payload) {
4868
- const normalizedName = payload.name.trim();
4869
- if (!normalizedName) {
4870
- throw new Error("name is required");
4871
- }
5131
+ const normalizedName = requireTrimmedString(payload.name, "name");
4872
5132
  const raw = await client.requestJson(
4873
5133
  "/skills/verification/domain/challenge",
4874
5134
  {
@@ -4888,14 +5148,11 @@ async function createSkillDomainProofChallenge(client, payload) {
4888
5148
  );
4889
5149
  }
4890
5150
  async function verifySkillDomainProof(client, payload) {
4891
- const normalizedName = payload.name.trim();
4892
- const challengeToken = payload.challengeToken.trim();
4893
- if (!normalizedName) {
4894
- throw new Error("name is required");
4895
- }
4896
- if (!challengeToken) {
4897
- throw new Error("challengeToken is required");
4898
- }
5151
+ const normalizedName = requireTrimmedString(payload.name, "name");
5152
+ const challengeToken = requireTrimmedString(
5153
+ payload.challengeToken,
5154
+ "challengeToken"
5155
+ );
4899
5156
  const raw = await client.requestJson(
4900
5157
  "/skills/verification/domain/verify",
4901
5158
  {
@@ -5254,15 +5511,9 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
5254
5511
  async skillsConfig() {
5255
5512
  return skillsConfig(this);
5256
5513
  }
5257
- async getSkillStatus(params) {
5258
- return getSkillStatus(this, params);
5259
- }
5260
5514
  async listSkills(options) {
5261
5515
  return listSkills(this, options);
5262
5516
  }
5263
- async getSkillSecurityBreakdown(params) {
5264
- return getSkillSecurityBreakdown(this, params);
5265
- }
5266
5517
  async getSkillsCatalog(options) {
5267
5518
  return getSkillsCatalog(this, options);
5268
5519
  }
@@ -5278,6 +5529,9 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
5278
5529
  async quoteSkillPublish(payload) {
5279
5530
  return quoteSkillPublish(this, payload);
5280
5531
  }
5532
+ async quoteSkillPublishPreview(payload) {
5533
+ return quoteSkillPublishPreview(this, payload);
5534
+ }
5281
5535
  async publishSkill(payload) {
5282
5536
  return publishSkill(this, payload);
5283
5537
  }
@@ -5302,9 +5556,18 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
5302
5556
  async getSkillBadge(params) {
5303
5557
  return getSkillBadge(this, params);
5304
5558
  }
5559
+ async getSkillStatus(params) {
5560
+ return getSkillStatus(this, params);
5561
+ }
5562
+ async getSkillSecurityBreakdown(params) {
5563
+ return getSkillSecurityBreakdown(this, params);
5564
+ }
5305
5565
  async getSkillStatusByRepo(params) {
5306
5566
  return getSkillStatusByRepo(this, params);
5307
5567
  }
5568
+ async getSkillConversionSignalsByRepo(params) {
5569
+ return getSkillConversionSignalsByRepo(this, params);
5570
+ }
5308
5571
  async uploadSkillPreviewFromGithubOidc(payload) {
5309
5572
  return uploadSkillPreviewFromGithubOidc(this, payload);
5310
5573
  }
@@ -5503,6 +5766,36 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
5503
5766
  async dashboardStats() {
5504
5767
  return dashboardStats(this);
5505
5768
  }
5769
+ async getCreditsBalance(params = {}) {
5770
+ return getCreditsBalance(this, params);
5771
+ }
5772
+ async getCreditProviders() {
5773
+ return getCreditProviders(this);
5774
+ }
5775
+ async getGuardSession() {
5776
+ return getGuardSession(this);
5777
+ }
5778
+ async getGuardEntitlements() {
5779
+ return getGuardEntitlements(this);
5780
+ }
5781
+ async getGuardBillingBalance() {
5782
+ return getGuardBillingBalance(this);
5783
+ }
5784
+ async getGuardTrustByHash(sha256) {
5785
+ return getGuardTrustByHash(this, sha256);
5786
+ }
5787
+ async resolveGuardTrust(query) {
5788
+ return resolveGuardTrust(this, query);
5789
+ }
5790
+ async getGuardRevocations() {
5791
+ return getGuardRevocations(this);
5792
+ }
5793
+ async syncGuardReceipts(payload) {
5794
+ return syncGuardReceipts(this, payload);
5795
+ }
5796
+ async createHbarPurchaseIntent(payload) {
5797
+ return createHbarPurchaseIntent(this, payload);
5798
+ }
5506
5799
  async purchaseCreditsWithHbar(params) {
5507
5800
  return purchaseCreditsWithHbar(this, params);
5508
5801
  }
@@ -5704,9 +5997,20 @@ var RegistryBrokerClient = class _RegistryBrokerClient {
5704
5997
  }
5705
5998
  return nodeCrypto;
5706
5999
  }
6000
+ getSecureRandomBytes(size, feature) {
6001
+ const webCrypto = globalThis.crypto;
6002
+ if (webCrypto && typeof webCrypto.getRandomValues === "function") {
6003
+ const bytes = new Uint8Array(size);
6004
+ webCrypto.getRandomValues(bytes);
6005
+ return bytes;
6006
+ }
6007
+ return this.getNodeCrypto(feature).randomBytes(size);
6008
+ }
5707
6009
  createEphemeralKeyPair() {
5708
- const { randomBytes } = this.getNodeCrypto("generateEphemeralKeyPair");
5709
- const privateKeyBytes = randomBytes(32);
6010
+ const privateKeyBytes = this.getSecureRandomBytes(
6011
+ 32,
6012
+ "generateEphemeralKeyPair"
6013
+ );
5710
6014
  const publicKey = secp256k12.getPublicKey(privateKeyBytes, true);
5711
6015
  return {
5712
6016
  privateKey: Buffer5.from(privateKeyBytes).toString("hex"),