@hashgraphonline/standards-sdk 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/browser/hcs-11/client.d.ts +30 -30
- package/dist/browser/hcs-21/types.d.ts +23 -23
- package/dist/browser/inscribe/inscriber.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/client/base-client.d.ts +19 -4
- package/dist/browser/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/client/credits.d.ts +6 -1
- package/dist/browser/services/registry-broker/client/credits.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/client/guard.d.ts +10 -0
- package/dist/browser/services/registry-broker/client/guard.d.ts.map +1 -0
- package/dist/browser/services/registry-broker/client/skills.d.ts +5 -3
- package/dist/browser/services/registry-broker/client/skills.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/schemas.d.ts +7631 -24215
- package/dist/browser/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/types.d.ts +64 -26
- package/dist/browser/services/registry-broker/types.d.ts.map +1 -1
- package/dist/browser/standards-sdk.browser.js +381 -225
- package/dist/browser/standards-sdk.browser.js.map +1 -1
- package/dist/browser/utils/dynamic-import.d.ts.map +1 -1
- package/dist/browser-root/hcs-11/client.d.ts +30 -30
- package/dist/browser-root/hcs-21/types.d.ts +23 -23
- package/dist/browser-root/inscribe/inscriber.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/client/base-client.d.ts +19 -4
- package/dist/browser-root/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/client/credits.d.ts +6 -1
- package/dist/browser-root/services/registry-broker/client/credits.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/client/guard.d.ts +10 -0
- package/dist/browser-root/services/registry-broker/client/guard.d.ts.map +1 -0
- package/dist/browser-root/services/registry-broker/client/skills.d.ts +5 -3
- package/dist/browser-root/services/registry-broker/client/skills.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/schemas.d.ts +7631 -24215
- package/dist/browser-root/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/types.d.ts +64 -26
- package/dist/browser-root/services/registry-broker/types.d.ts.map +1 -1
- package/dist/browser-root/standards-sdk.root-browser.js +699 -397
- package/dist/browser-root/standards-sdk.root-browser.js.map +1 -1
- package/dist/browser-root/utils/dynamic-import.d.ts.map +1 -1
- package/dist/cjs/hcs-11/client.d.ts +30 -30
- package/dist/cjs/inscribe/inscriber.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/client/base-client.d.ts +19 -4
- package/dist/cjs/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/client/credits.d.ts +6 -1
- package/dist/cjs/services/registry-broker/client/credits.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/client/guard.d.ts +10 -0
- package/dist/cjs/services/registry-broker/client/guard.d.ts.map +1 -0
- package/dist/cjs/services/registry-broker/client/skills.d.ts +5 -3
- package/dist/cjs/services/registry-broker/client/skills.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/schemas.d.ts +7612 -24196
- package/dist/cjs/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/types.d.ts +64 -26
- package/dist/cjs/services/registry-broker/types.d.ts.map +1 -1
- package/dist/cjs/standards-sdk.cjs +2 -2
- package/dist/cjs/standards-sdk.cjs.map +1 -1
- package/dist/cjs/utils/dynamic-import.d.ts.map +1 -1
- package/dist/es/hcs-11/client.d.ts +30 -30
- package/dist/es/inscribe/inscriber.d.ts.map +1 -1
- package/dist/es/services/registry-broker/client/base-client.d.ts +19 -4
- package/dist/es/services/registry-broker/client/base-client.d.ts.map +1 -1
- package/dist/es/services/registry-broker/client/credits.d.ts +6 -1
- package/dist/es/services/registry-broker/client/credits.d.ts.map +1 -1
- package/dist/es/services/registry-broker/client/guard.d.ts +10 -0
- package/dist/es/services/registry-broker/client/guard.d.ts.map +1 -0
- package/dist/es/services/registry-broker/client/skills.d.ts +5 -3
- package/dist/es/services/registry-broker/client/skills.d.ts.map +1 -1
- package/dist/es/services/registry-broker/schemas.d.ts +7612 -24196
- package/dist/es/services/registry-broker/schemas.d.ts.map +1 -1
- package/dist/es/services/registry-broker/types.d.ts +64 -26
- package/dist/es/services/registry-broker/types.d.ts.map +1 -1
- package/dist/es/standards-sdk.es116.js +1 -1
- package/dist/es/standards-sdk.es121.js +1 -1
- package/dist/es/standards-sdk.es127.js +1 -1
- package/dist/es/standards-sdk.es128.js +5 -5
- package/dist/es/standards-sdk.es138.js +1 -1
- package/dist/es/standards-sdk.es139.js +1 -1
- package/dist/es/standards-sdk.es140.js +5 -5
- package/dist/es/standards-sdk.es142.js +9 -6
- package/dist/es/standards-sdk.es142.js.map +1 -1
- package/dist/es/standards-sdk.es143.js +1 -1
- package/dist/es/standards-sdk.es145.js +63 -15
- package/dist/es/standards-sdk.es145.js.map +1 -1
- package/dist/es/standards-sdk.es147.js +2 -2
- package/dist/es/standards-sdk.es148.js +1 -1
- package/dist/es/standards-sdk.es16.js +1 -1
- package/dist/es/standards-sdk.es160.js +12461 -1778
- package/dist/es/standards-sdk.es160.js.map +1 -1
- package/dist/es/standards-sdk.es161.js +1936 -12461
- package/dist/es/standards-sdk.es161.js.map +1 -1
- package/dist/es/standards-sdk.es162.js +54 -15
- package/dist/es/standards-sdk.es162.js.map +1 -1
- package/dist/es/standards-sdk.es163.js +102 -47
- package/dist/es/standards-sdk.es163.js.map +1 -1
- package/dist/es/standards-sdk.es164.js +65 -88
- package/dist/es/standards-sdk.es164.js.map +1 -1
- package/dist/es/standards-sdk.es165.js +180 -61
- package/dist/es/standards-sdk.es165.js.map +1 -1
- package/dist/es/standards-sdk.es166.js +14 -197
- package/dist/es/standards-sdk.es166.js.map +1 -1
- package/dist/es/standards-sdk.es167.js +68 -707
- package/dist/es/standards-sdk.es167.js.map +1 -1
- package/dist/es/standards-sdk.es168.js +165 -66
- package/dist/es/standards-sdk.es168.js.map +1 -1
- package/dist/es/standards-sdk.es169.js +289 -139
- package/dist/es/standards-sdk.es169.js.map +1 -1
- package/dist/es/standards-sdk.es170.js +298 -274
- package/dist/es/standards-sdk.es170.js.map +1 -1
- package/dist/es/standards-sdk.es171.js +369 -262
- package/dist/es/standards-sdk.es171.js.map +1 -1
- package/dist/es/standards-sdk.es172.js +194 -316
- package/dist/es/standards-sdk.es172.js.map +1 -1
- package/dist/es/standards-sdk.es173.js +64 -319
- package/dist/es/standards-sdk.es173.js.map +1 -1
- package/dist/es/standards-sdk.es174.js +664 -68
- package/dist/es/standards-sdk.es174.js.map +1 -1
- package/dist/es/standards-sdk.es175.js +1 -1
- package/dist/es/standards-sdk.es176.js +2 -2
- package/dist/es/standards-sdk.es178.js +2 -2
- package/dist/es/standards-sdk.es179.js +2 -2
- package/dist/es/standards-sdk.es18.js +2 -2
- package/dist/es/standards-sdk.es180.js +1 -1
- package/dist/es/standards-sdk.es181.js +61 -3
- package/dist/es/standards-sdk.es181.js.map +1 -1
- package/dist/es/standards-sdk.es182.js +80 -168
- package/dist/es/standards-sdk.es182.js.map +1 -1
- package/dist/es/standards-sdk.es183.js +156 -206
- package/dist/es/standards-sdk.es183.js.map +1 -1
- package/dist/es/standards-sdk.es184.js +219 -223
- package/dist/es/standards-sdk.es184.js.map +1 -1
- package/dist/es/standards-sdk.es185.js +242 -0
- package/dist/es/standards-sdk.es185.js.map +1 -0
- package/dist/es/standards-sdk.es19.js +2 -2
- package/dist/es/standards-sdk.es27.js +2 -2
- package/dist/es/standards-sdk.es30.js +1 -1
- package/dist/es/standards-sdk.es31.js +1 -1
- package/dist/es/standards-sdk.es35.js +2 -2
- package/dist/es/standards-sdk.es36.js +1 -1
- package/dist/es/standards-sdk.es37.js +1 -1
- package/dist/es/standards-sdk.es56.js +1 -1
- package/dist/es/standards-sdk.es59.js +1 -1
- package/dist/es/standards-sdk.es60.js +1 -1
- package/dist/es/standards-sdk.es62.js +1 -1
- package/dist/es/standards-sdk.es63.js +2 -2
- package/dist/es/standards-sdk.es64.js +1 -1
- package/dist/es/standards-sdk.es65.js +1 -1
- package/dist/es/standards-sdk.es66.js +1 -1
- package/dist/es/standards-sdk.es67.js +1 -1
- package/dist/es/standards-sdk.es69.js +1 -1
- package/dist/es/standards-sdk.es71.js +1 -1
- package/dist/es/standards-sdk.es72.js +1 -1
- package/dist/es/standards-sdk.es75.js +1 -1
- package/dist/es/standards-sdk.es84.js +1 -1
- package/dist/es/utils/dynamic-import.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -8394,13 +8394,6 @@ const metadataFacetSchema = recordType(
|
|
|
8394
8394
|
jsonValueSchema
|
|
8395
8395
|
])
|
|
8396
8396
|
).optional();
|
|
8397
|
-
const searchHitMetadataSchema = objectType({
|
|
8398
|
-
delegationRoles: jsonValueSchema.optional(),
|
|
8399
|
-
delegationTaskTags: jsonValueSchema.optional(),
|
|
8400
|
-
delegationProtocols: jsonValueSchema.optional(),
|
|
8401
|
-
delegationSummary: jsonValueSchema.optional(),
|
|
8402
|
-
delegationSignals: jsonValueSchema.optional()
|
|
8403
|
-
}).passthrough();
|
|
8404
8397
|
const searchHitSchema = objectType({
|
|
8405
8398
|
id: stringType(),
|
|
8406
8399
|
uaid: stringType(),
|
|
@@ -8409,7 +8402,7 @@ const searchHitSchema = objectType({
|
|
|
8409
8402
|
description: stringType().optional(),
|
|
8410
8403
|
capabilities: arrayType(capabilityValueSchema),
|
|
8411
8404
|
endpoints: unionType([recordType(jsonValueSchema), arrayType(stringType())]).optional(),
|
|
8412
|
-
metadata:
|
|
8405
|
+
metadata: recordType(jsonValueSchema).optional(),
|
|
8413
8406
|
metadataFacet: metadataFacetSchema,
|
|
8414
8407
|
profile: agentProfileSchema.optional(),
|
|
8415
8408
|
protocols: arrayType(stringType()).optional(),
|
|
@@ -8455,22 +8448,13 @@ objectType({
|
|
|
8455
8448
|
});
|
|
8456
8449
|
const delegationPlanCandidateSchema = objectType({
|
|
8457
8450
|
uaid: stringType(),
|
|
8458
|
-
label: stringType(),
|
|
8459
|
-
registry: stringType().optional(),
|
|
8460
|
-
agent: searchHitSchema,
|
|
8461
8451
|
score: numberType(),
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
matchedTaskTags: arrayType(stringType()).optional(),
|
|
8469
|
-
reasons: arrayType(stringType()).optional(),
|
|
8470
|
-
suggestedMessage: stringType().optional(),
|
|
8471
|
-
trustScore: numberType().optional(),
|
|
8472
|
-
verified: booleanType().optional(),
|
|
8473
|
-
communicationSupported: booleanType().optional(),
|
|
8452
|
+
displayName: stringType().optional(),
|
|
8453
|
+
summary: stringType().optional(),
|
|
8454
|
+
protocols: arrayType(stringType()).optional(),
|
|
8455
|
+
surfaces: arrayType(stringType()).optional(),
|
|
8456
|
+
languages: arrayType(stringType()).optional(),
|
|
8457
|
+
artifacts: arrayType(stringType()).optional(),
|
|
8474
8458
|
availability: booleanType().optional(),
|
|
8475
8459
|
explanation: stringType().optional()
|
|
8476
8460
|
}).passthrough();
|
|
@@ -9059,6 +9043,151 @@ objectType({
|
|
|
9059
9043
|
transactionId: stringType(),
|
|
9060
9044
|
consensusTimestamp: stringType().nullable().optional()
|
|
9061
9045
|
});
|
|
9046
|
+
const creditProviderSummarySchema = objectType({
|
|
9047
|
+
name: stringType(),
|
|
9048
|
+
publishableKey: stringType().optional(),
|
|
9049
|
+
currency: stringType().optional(),
|
|
9050
|
+
centsPerHbar: numberType().nullable().optional()
|
|
9051
|
+
});
|
|
9052
|
+
objectType({
|
|
9053
|
+
providers: arrayType(creditProviderSummarySchema)
|
|
9054
|
+
});
|
|
9055
|
+
objectType({
|
|
9056
|
+
accountId: stringType(),
|
|
9057
|
+
balance: numberType(),
|
|
9058
|
+
balanceRecord: jsonValueSchema.optional(),
|
|
9059
|
+
timestamp: stringType().optional()
|
|
9060
|
+
});
|
|
9061
|
+
const guardPlanIdSchema = enumType(["free", "pro", "team", "enterprise"]);
|
|
9062
|
+
const guardBucketBalanceSchema = objectType({
|
|
9063
|
+
bucketId: enumType([
|
|
9064
|
+
"registry_credits",
|
|
9065
|
+
"chat_credits",
|
|
9066
|
+
"guard_credits",
|
|
9067
|
+
"org_policy_credits"
|
|
9068
|
+
]),
|
|
9069
|
+
label: stringType(),
|
|
9070
|
+
availableCredits: numberType(),
|
|
9071
|
+
includedMonthlyCredits: numberType().nullable().optional()
|
|
9072
|
+
});
|
|
9073
|
+
const guardPrincipalSchema = objectType({
|
|
9074
|
+
signedIn: booleanType(),
|
|
9075
|
+
userId: stringType().optional(),
|
|
9076
|
+
email: stringType().optional(),
|
|
9077
|
+
accountId: stringType().optional(),
|
|
9078
|
+
stripeCustomerId: stringType().optional(),
|
|
9079
|
+
roles: arrayType(stringType())
|
|
9080
|
+
});
|
|
9081
|
+
const guardEntitlementsSchema = objectType({
|
|
9082
|
+
planId: guardPlanIdSchema,
|
|
9083
|
+
includedMonthlyCredits: numberType(),
|
|
9084
|
+
deviceLimit: numberType(),
|
|
9085
|
+
retentionDays: numberType(),
|
|
9086
|
+
syncEnabled: booleanType(),
|
|
9087
|
+
premiumFeedsEnabled: booleanType(),
|
|
9088
|
+
teamPolicyEnabled: booleanType()
|
|
9089
|
+
});
|
|
9090
|
+
objectType({
|
|
9091
|
+
principal: guardPrincipalSchema,
|
|
9092
|
+
entitlements: guardEntitlementsSchema,
|
|
9093
|
+
balance: objectType({
|
|
9094
|
+
accountId: stringType(),
|
|
9095
|
+
availableCredits: numberType()
|
|
9096
|
+
}).nullable(),
|
|
9097
|
+
bucketingMode: enumType(["shared-ledger", "product-bucketed"]),
|
|
9098
|
+
buckets: arrayType(guardBucketBalanceSchema)
|
|
9099
|
+
});
|
|
9100
|
+
objectType({
|
|
9101
|
+
generatedAt: stringType(),
|
|
9102
|
+
bucketingMode: enumType(["shared-ledger", "product-bucketed"]),
|
|
9103
|
+
buckets: arrayType(guardBucketBalanceSchema)
|
|
9104
|
+
});
|
|
9105
|
+
const guardTrustMatchSchema = objectType({
|
|
9106
|
+
artifactId: stringType(),
|
|
9107
|
+
artifactName: stringType(),
|
|
9108
|
+
artifactType: enumType(["skill", "plugin"]),
|
|
9109
|
+
artifactSlug: stringType(),
|
|
9110
|
+
recommendation: enumType(["monitor", "review", "block"]),
|
|
9111
|
+
verified: booleanType(),
|
|
9112
|
+
safetyScore: numberType().nullable().optional(),
|
|
9113
|
+
trustScore: numberType().nullable().optional(),
|
|
9114
|
+
href: stringType().optional(),
|
|
9115
|
+
ecosystem: stringType().optional()
|
|
9116
|
+
});
|
|
9117
|
+
objectType({
|
|
9118
|
+
generatedAt: stringType(),
|
|
9119
|
+
query: objectType({
|
|
9120
|
+
sha256: stringType()
|
|
9121
|
+
}),
|
|
9122
|
+
match: guardTrustMatchSchema.nullable(),
|
|
9123
|
+
evidence: arrayType(stringType())
|
|
9124
|
+
});
|
|
9125
|
+
objectType({
|
|
9126
|
+
generatedAt: stringType(),
|
|
9127
|
+
query: objectType({
|
|
9128
|
+
ecosystem: stringType().optional(),
|
|
9129
|
+
name: stringType().optional(),
|
|
9130
|
+
version: stringType().optional()
|
|
9131
|
+
}),
|
|
9132
|
+
items: arrayType(guardTrustMatchSchema)
|
|
9133
|
+
});
|
|
9134
|
+
const guardRevocationSchema = objectType({
|
|
9135
|
+
id: stringType(),
|
|
9136
|
+
artifactId: stringType(),
|
|
9137
|
+
artifactName: stringType(),
|
|
9138
|
+
reason: stringType(),
|
|
9139
|
+
severity: enumType(["low", "medium", "high"]),
|
|
9140
|
+
publishedAt: stringType()
|
|
9141
|
+
});
|
|
9142
|
+
objectType({
|
|
9143
|
+
generatedAt: stringType(),
|
|
9144
|
+
items: arrayType(guardRevocationSchema)
|
|
9145
|
+
});
|
|
9146
|
+
objectType({
|
|
9147
|
+
receiptId: stringType(),
|
|
9148
|
+
capturedAt: stringType(),
|
|
9149
|
+
harness: stringType(),
|
|
9150
|
+
deviceId: stringType(),
|
|
9151
|
+
deviceName: stringType(),
|
|
9152
|
+
artifactId: stringType(),
|
|
9153
|
+
artifactName: stringType(),
|
|
9154
|
+
artifactType: enumType(["skill", "plugin"]),
|
|
9155
|
+
artifactSlug: stringType(),
|
|
9156
|
+
artifactHash: stringType(),
|
|
9157
|
+
policyDecision: enumType([
|
|
9158
|
+
"allow",
|
|
9159
|
+
"warn",
|
|
9160
|
+
"block",
|
|
9161
|
+
"review",
|
|
9162
|
+
"require-reapproval",
|
|
9163
|
+
"sandbox-required"
|
|
9164
|
+
]),
|
|
9165
|
+
recommendation: enumType(["monitor", "review", "block"]),
|
|
9166
|
+
changedSinceLastApproval: booleanType(),
|
|
9167
|
+
publisher: stringType().optional(),
|
|
9168
|
+
capabilities: arrayType(stringType()),
|
|
9169
|
+
summary: stringType()
|
|
9170
|
+
});
|
|
9171
|
+
objectType({
|
|
9172
|
+
syncedAt: stringType(),
|
|
9173
|
+
receiptsStored: numberType()
|
|
9174
|
+
});
|
|
9175
|
+
objectType({
|
|
9176
|
+
transaction: stringType(),
|
|
9177
|
+
transactionId: stringType(),
|
|
9178
|
+
network: enumType(["mainnet", "testnet"]),
|
|
9179
|
+
accountId: stringType(),
|
|
9180
|
+
treasuryAccountId: stringType(),
|
|
9181
|
+
hbarAmount: numberType(),
|
|
9182
|
+
credits: numberType(),
|
|
9183
|
+
tinybarAmount: numberType(),
|
|
9184
|
+
memo: stringType(),
|
|
9185
|
+
centsPerHbar: numberType(),
|
|
9186
|
+
validStart: stringType(),
|
|
9187
|
+
validDurationSeconds: numberType(),
|
|
9188
|
+
requiresManualSubmit: literalType(true),
|
|
9189
|
+
purchaseId: stringType()
|
|
9190
|
+
});
|
|
9062
9191
|
const x402SettlementSchema = objectType({
|
|
9063
9192
|
success: booleanType().optional(),
|
|
9064
9193
|
transaction: stringType().optional(),
|
|
@@ -9388,14 +9517,6 @@ const skillRegistryListResponseSchema = objectType({
|
|
|
9388
9517
|
items: arrayType(skillRegistryPublishSummarySchema),
|
|
9389
9518
|
nextCursor: stringType().nullable()
|
|
9390
9519
|
}).passthrough();
|
|
9391
|
-
objectType({
|
|
9392
|
-
name: stringType(),
|
|
9393
|
-
version: stringType(),
|
|
9394
|
-
jobId: stringType(),
|
|
9395
|
-
createdAt: stringType(),
|
|
9396
|
-
safety: skillSafetySummarySchema.nullable(),
|
|
9397
|
-
findings: arrayType(skillSafetyFindingSchema)
|
|
9398
|
-
}).passthrough();
|
|
9399
9520
|
enumType([
|
|
9400
9521
|
"stable",
|
|
9401
9522
|
"prerelease",
|
|
@@ -9449,58 +9570,190 @@ objectType({
|
|
|
9449
9570
|
name: stringType(),
|
|
9450
9571
|
items: arrayType(skillDeprecationRecordSchema)
|
|
9451
9572
|
}).passthrough();
|
|
9452
|
-
const
|
|
9453
|
-
|
|
9454
|
-
|
|
9455
|
-
|
|
9456
|
-
|
|
9457
|
-
|
|
9573
|
+
const skillSecurityBreakdownFindingSchema = recordType(jsonValueSchema);
|
|
9574
|
+
const skillSecurityBreakdownSummarySchema = recordType(jsonValueSchema);
|
|
9575
|
+
objectType({
|
|
9576
|
+
jobId: stringType(),
|
|
9577
|
+
score: numberType().nullable().optional(),
|
|
9578
|
+
findings: arrayType(skillSecurityBreakdownFindingSchema).optional(),
|
|
9579
|
+
summary: skillSecurityBreakdownSummarySchema.optional(),
|
|
9580
|
+
generatedAt: stringType().nullable().optional(),
|
|
9581
|
+
scannerVersion: stringType().nullable().optional()
|
|
9458
9582
|
}).passthrough();
|
|
9459
|
-
const
|
|
9460
|
-
|
|
9583
|
+
const skillBadgeMetricSchema = enumType([
|
|
9584
|
+
"version",
|
|
9585
|
+
"version_verification",
|
|
9586
|
+
"status",
|
|
9587
|
+
"verification",
|
|
9588
|
+
"repo_commit",
|
|
9589
|
+
"manifest",
|
|
9590
|
+
"domain",
|
|
9591
|
+
"trust",
|
|
9592
|
+
"tier",
|
|
9593
|
+
"safety",
|
|
9594
|
+
"upvotes",
|
|
9595
|
+
"updated"
|
|
9596
|
+
]);
|
|
9597
|
+
const skillBadgeStyleSchema = enumType([
|
|
9598
|
+
"flat",
|
|
9599
|
+
"flat-square",
|
|
9600
|
+
"for-the-badge",
|
|
9601
|
+
"plastic",
|
|
9602
|
+
"social"
|
|
9603
|
+
]);
|
|
9604
|
+
objectType({
|
|
9605
|
+
schemaVersion: numberType().int(),
|
|
9461
9606
|
label: stringType(),
|
|
9462
|
-
|
|
9463
|
-
|
|
9464
|
-
|
|
9607
|
+
message: stringType(),
|
|
9608
|
+
color: stringType(),
|
|
9609
|
+
style: skillBadgeStyleSchema.optional(),
|
|
9610
|
+
isError: booleanType().optional(),
|
|
9611
|
+
cacheSeconds: numberType().int().optional()
|
|
9612
|
+
}).passthrough();
|
|
9613
|
+
objectType({
|
|
9614
|
+
tags: arrayType(stringType())
|
|
9615
|
+
}).passthrough();
|
|
9616
|
+
objectType({
|
|
9617
|
+
categories: arrayType(stringType())
|
|
9618
|
+
}).passthrough();
|
|
9619
|
+
recordType(jsonValueSchema);
|
|
9620
|
+
const skillRegistryQuoteFileBreakdownSchema = objectType({
|
|
9621
|
+
name: stringType(),
|
|
9622
|
+
mimeType: stringType(),
|
|
9623
|
+
estimatedCostHbar: numberType()
|
|
9624
|
+
}).passthrough();
|
|
9625
|
+
objectType({
|
|
9626
|
+
quoteId: stringType(),
|
|
9627
|
+
name: stringType(),
|
|
9628
|
+
version: stringType(),
|
|
9629
|
+
directoryTopicId: stringType(),
|
|
9630
|
+
estimatedCostHbar: numberType(),
|
|
9631
|
+
credits: numberType(),
|
|
9632
|
+
usdCents: numberType(),
|
|
9633
|
+
expiresAt: stringType(),
|
|
9634
|
+
files: arrayType(skillRegistryQuoteFileBreakdownSchema)
|
|
9635
|
+
}).passthrough();
|
|
9636
|
+
const skillRegistryJobStatusSchema = unionType([
|
|
9637
|
+
literalType("pending"),
|
|
9638
|
+
literalType("in_progress"),
|
|
9639
|
+
literalType("completed"),
|
|
9640
|
+
literalType("failed")
|
|
9641
|
+
]);
|
|
9642
|
+
objectType({
|
|
9643
|
+
jobId: stringType(),
|
|
9644
|
+
status: skillRegistryJobStatusSchema,
|
|
9645
|
+
credits: numberType().nullable().optional(),
|
|
9646
|
+
usdCents: numberType().nullable().optional(),
|
|
9647
|
+
quoteId: stringType().nullable().optional(),
|
|
9648
|
+
createdAt: stringType(),
|
|
9649
|
+
updatedAt: stringType(),
|
|
9650
|
+
network: unionType([literalType("mainnet"), literalType("testnet")])
|
|
9651
|
+
}).passthrough();
|
|
9652
|
+
objectType({
|
|
9653
|
+
jobId: stringType(),
|
|
9654
|
+
status: skillRegistryJobStatusSchema,
|
|
9655
|
+
network: unionType([literalType("mainnet"), literalType("testnet")]),
|
|
9656
|
+
name: stringType(),
|
|
9657
|
+
version: stringType(),
|
|
9658
|
+
directoryTopicId: stringType(),
|
|
9659
|
+
skillUid: numberType().int().nullable().optional(),
|
|
9660
|
+
directorySequenceNumber: numberType().int().nullable().optional(),
|
|
9661
|
+
versionRegistryTopicId: stringType().nullable().optional(),
|
|
9662
|
+
packageTopicId: stringType().nullable().optional(),
|
|
9663
|
+
manifestHrl: stringType().nullable().optional(),
|
|
9664
|
+
skillJsonHrl: stringType().nullable().optional(),
|
|
9665
|
+
iconHcs1: stringType().nullable().optional(),
|
|
9666
|
+
tags: arrayType(stringType()).nullable().optional(),
|
|
9667
|
+
category: stringType().nullable().optional(),
|
|
9668
|
+
files: arrayType(skillRegistryFileDescriptorSchema).nullable().optional(),
|
|
9669
|
+
quoteCredits: numberType().nullable().optional(),
|
|
9670
|
+
quoteUsdCents: numberType().nullable().optional(),
|
|
9671
|
+
safety: skillSafetySummarySchema.nullable().optional(),
|
|
9672
|
+
reservationId: stringType().nullable().optional(),
|
|
9673
|
+
totalCostHbar: numberType().nullable().optional(),
|
|
9674
|
+
totalCostCredits: numberType().nullable().optional(),
|
|
9675
|
+
failureReason: stringType().nullable().optional(),
|
|
9676
|
+
createdAt: stringType(),
|
|
9677
|
+
updatedAt: stringType()
|
|
9465
9678
|
}).passthrough();
|
|
9466
|
-
const
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9679
|
+
const skillRegistryVersionItemSchema = objectType({
|
|
9680
|
+
jobId: stringType(),
|
|
9681
|
+
version: stringType(),
|
|
9682
|
+
createdAt: stringType(),
|
|
9683
|
+
verified: booleanType().optional()
|
|
9684
|
+
}).passthrough();
|
|
9685
|
+
objectType({
|
|
9686
|
+
name: stringType(),
|
|
9687
|
+
items: arrayType(skillRegistryVersionItemSchema)
|
|
9688
|
+
}).passthrough();
|
|
9689
|
+
const skillRegistryMineItemSchema = objectType({
|
|
9690
|
+
name: stringType(),
|
|
9691
|
+
latestVersion: stringType(),
|
|
9692
|
+
latestCreatedAt: stringType(),
|
|
9693
|
+
verified: booleanType().optional(),
|
|
9694
|
+
iconHcs1: stringType().optional(),
|
|
9695
|
+
versions: arrayType(stringType())
|
|
9696
|
+
}).passthrough();
|
|
9697
|
+
const skillRegistryMineResponseSchema = objectType({
|
|
9698
|
+
items: arrayType(skillRegistryMineItemSchema)
|
|
9699
|
+
}).passthrough();
|
|
9700
|
+
objectType({
|
|
9701
|
+
owned: skillRegistryMineResponseSchema,
|
|
9702
|
+
upvoted: skillRegistryListResponseSchema
|
|
9703
|
+
}).passthrough();
|
|
9704
|
+
const skillRegistryConfigResponseSchema = objectType({
|
|
9705
|
+
enabled: booleanType(),
|
|
9706
|
+
directoryTopicId: stringType().nullable().optional(),
|
|
9707
|
+
maxFiles: numberType().int().nullable().optional(),
|
|
9708
|
+
maxTotalSizeBytes: numberType().int().nullable().optional(),
|
|
9709
|
+
allowedMimeTypes: arrayType(stringType()).nullable().optional(),
|
|
9710
|
+
network: unionType([literalType("mainnet"), literalType("testnet")]).nullable().optional(),
|
|
9711
|
+
publisher: objectType({
|
|
9712
|
+
cliPackageUrl: stringType(),
|
|
9713
|
+
cliCommand: stringType(),
|
|
9714
|
+
actionMarketplaceUrl: stringType(),
|
|
9715
|
+
repositoryUrl: stringType(),
|
|
9716
|
+
guideUrl: stringType().nullable().optional(),
|
|
9717
|
+
docsUrl: stringType().nullable().optional(),
|
|
9718
|
+
submitUrl: stringType().nullable().optional(),
|
|
9719
|
+
skillsIndexUrl: stringType().nullable().optional(),
|
|
9720
|
+
quickstartCommands: arrayType(
|
|
9721
|
+
objectType({
|
|
9722
|
+
id: stringType(),
|
|
9723
|
+
label: stringType(),
|
|
9724
|
+
description: stringType(),
|
|
9725
|
+
command: stringType(),
|
|
9726
|
+
href: stringType().nullable().optional()
|
|
9727
|
+
}).passthrough()
|
|
9728
|
+
).optional().default([]),
|
|
9729
|
+
templatePresets: arrayType(
|
|
9730
|
+
objectType({
|
|
9731
|
+
presetId: stringType(),
|
|
9732
|
+
label: stringType(),
|
|
9733
|
+
description: stringType(),
|
|
9734
|
+
recommendedFor: stringType(),
|
|
9735
|
+
command: stringType()
|
|
9736
|
+
}).passthrough()
|
|
9737
|
+
).optional().default([])
|
|
9738
|
+
}).nullable().optional()
|
|
9739
|
+
}).passthrough();
|
|
9740
|
+
objectType({
|
|
9741
|
+
name: stringType(),
|
|
9742
|
+
exists: booleanType(),
|
|
9743
|
+
isOwner: booleanType()
|
|
9744
|
+
}).passthrough();
|
|
9745
|
+
objectType({
|
|
9746
|
+
name: stringType(),
|
|
9747
|
+
upvotes: numberType().int(),
|
|
9748
|
+
hasUpvoted: booleanType()
|
|
9477
9749
|
}).passthrough();
|
|
9478
9750
|
const skillTrustTierSchema = enumType([
|
|
9479
|
-
"unpublished",
|
|
9480
9751
|
"unclaimed",
|
|
9481
9752
|
"validated",
|
|
9482
9753
|
"published",
|
|
9483
9754
|
"verified",
|
|
9484
9755
|
"hardened"
|
|
9485
9756
|
]);
|
|
9486
|
-
const skillStatusDefaultVerificationSignals = {
|
|
9487
|
-
publisherBound: false,
|
|
9488
|
-
domainProof: false,
|
|
9489
|
-
verifiedDomain: false,
|
|
9490
|
-
previewValidated: false
|
|
9491
|
-
};
|
|
9492
|
-
const skillStatusDefaultProvenanceSignals = {
|
|
9493
|
-
repoCommitIntegrity: false,
|
|
9494
|
-
manifestIntegrity: false,
|
|
9495
|
-
canonicalRelease: false,
|
|
9496
|
-
previewAvailable: false,
|
|
9497
|
-
previewAuthoritative: false
|
|
9498
|
-
};
|
|
9499
|
-
const skillStatusChecksSchema = objectType({
|
|
9500
|
-
repoCommitIntegrity: booleanType(),
|
|
9501
|
-
manifestIntegrity: booleanType(),
|
|
9502
|
-
domainProof: booleanType()
|
|
9503
|
-
}).passthrough();
|
|
9504
9757
|
const skillStatusNextStepSchema = objectType({
|
|
9505
9758
|
kind: enumType([
|
|
9506
9759
|
"setup_validate",
|
|
@@ -9508,8 +9761,8 @@ const skillStatusNextStepSchema = objectType({
|
|
|
9508
9761
|
"verify_domain",
|
|
9509
9762
|
"harden_workflow",
|
|
9510
9763
|
"share_status"
|
|
9511
|
-
])
|
|
9512
|
-
priority: numberType().int()
|
|
9764
|
+
]),
|
|
9765
|
+
priority: numberType().int(),
|
|
9513
9766
|
id: stringType(),
|
|
9514
9767
|
label: stringType(),
|
|
9515
9768
|
description: stringType(),
|
|
@@ -9575,6 +9828,11 @@ const skillStatusPreviewMetadataSchema = objectType({
|
|
|
9575
9828
|
expiresAt: stringType(),
|
|
9576
9829
|
statusUrl: stringType()
|
|
9577
9830
|
}).passthrough();
|
|
9831
|
+
const skillStatusChecksSchema = objectType({
|
|
9832
|
+
repoCommitIntegrity: booleanType(),
|
|
9833
|
+
manifestIntegrity: booleanType(),
|
|
9834
|
+
domainProof: booleanType()
|
|
9835
|
+
}).passthrough();
|
|
9578
9836
|
const skillStatusVerificationSignalsSchema = objectType({
|
|
9579
9837
|
publisherBound: booleanType(),
|
|
9580
9838
|
domainProof: booleanType(),
|
|
@@ -9588,20 +9846,6 @@ const skillStatusProvenanceSignalsSchema = objectType({
|
|
|
9588
9846
|
previewAvailable: booleanType(),
|
|
9589
9847
|
previewAuthoritative: booleanType()
|
|
9590
9848
|
}).passthrough();
|
|
9591
|
-
const skillBadgeMetricSchema = enumType([
|
|
9592
|
-
"version",
|
|
9593
|
-
"version_verification",
|
|
9594
|
-
"status",
|
|
9595
|
-
"verification",
|
|
9596
|
-
"repo_commit",
|
|
9597
|
-
"manifest",
|
|
9598
|
-
"domain",
|
|
9599
|
-
"trust",
|
|
9600
|
-
"tier",
|
|
9601
|
-
"safety",
|
|
9602
|
-
"upvotes",
|
|
9603
|
-
"updated"
|
|
9604
|
-
]);
|
|
9605
9849
|
objectType({
|
|
9606
9850
|
name: stringType(),
|
|
9607
9851
|
version: stringType().nullable(),
|
|
@@ -9611,16 +9855,44 @@ objectType({
|
|
|
9611
9855
|
badgeMetric: skillBadgeMetricSchema,
|
|
9612
9856
|
checks: skillStatusChecksSchema,
|
|
9613
9857
|
nextSteps: arrayType(skillStatusNextStepSchema),
|
|
9614
|
-
verificationSignals: skillStatusVerificationSignalsSchema
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
provenanceSignals: skillStatusProvenanceSignalsSchema.default(
|
|
9618
|
-
skillStatusDefaultProvenanceSignals
|
|
9619
|
-
),
|
|
9620
|
-
publisher: skillPublisherMetadataSchema.nullable().optional(),
|
|
9858
|
+
verificationSignals: skillStatusVerificationSignalsSchema,
|
|
9859
|
+
provenanceSignals: skillStatusProvenanceSignalsSchema,
|
|
9860
|
+
publisher: skillRegistryConfigResponseSchema.shape.publisher,
|
|
9621
9861
|
preview: skillStatusPreviewMetadataSchema.nullable().optional(),
|
|
9622
9862
|
statusUrl: stringType().nullable().optional()
|
|
9623
9863
|
}).passthrough();
|
|
9864
|
+
const skillQuotePreviewRangeSchema = objectType({
|
|
9865
|
+
min: numberType(),
|
|
9866
|
+
max: numberType()
|
|
9867
|
+
}).passthrough();
|
|
9868
|
+
objectType({
|
|
9869
|
+
estimatedCredits: skillQuotePreviewRangeSchema,
|
|
9870
|
+
estimatedHbar: skillQuotePreviewRangeSchema,
|
|
9871
|
+
pricingVersion: stringType(),
|
|
9872
|
+
assumptions: arrayType(stringType()),
|
|
9873
|
+
purchaseUrl: stringType().nullable(),
|
|
9874
|
+
publishUrl: stringType().nullable(),
|
|
9875
|
+
verificationUrl: stringType().nullable()
|
|
9876
|
+
}).passthrough();
|
|
9877
|
+
objectType({
|
|
9878
|
+
repoUrl: stringType(),
|
|
9879
|
+
skillDir: stringType(),
|
|
9880
|
+
trustTier: skillTrustTierSchema,
|
|
9881
|
+
actionInstalled: booleanType(),
|
|
9882
|
+
previewUploaded: booleanType(),
|
|
9883
|
+
previewId: stringType().nullable(),
|
|
9884
|
+
lastValidateSuccessAt: stringType().nullable(),
|
|
9885
|
+
stalePreviewAgeDays: numberType().nullable(),
|
|
9886
|
+
published: booleanType(),
|
|
9887
|
+
verified: booleanType(),
|
|
9888
|
+
publishReady: booleanType(),
|
|
9889
|
+
publishBlockedByMissingAuth: booleanType(),
|
|
9890
|
+
statusUrl: stringType().nullable(),
|
|
9891
|
+
purchaseUrl: stringType().nullable(),
|
|
9892
|
+
publishUrl: stringType().nullable(),
|
|
9893
|
+
verificationUrl: stringType().nullable(),
|
|
9894
|
+
nextSteps: arrayType(skillStatusNextStepSchema)
|
|
9895
|
+
}).passthrough();
|
|
9624
9896
|
const skillInstallArtifactDescriptorSchema = objectType({
|
|
9625
9897
|
url: stringType(),
|
|
9626
9898
|
pointer: stringType().nullable(),
|
|
@@ -9671,132 +9943,6 @@ objectType({
|
|
|
9671
9943
|
objectType({
|
|
9672
9944
|
accepted: booleanType()
|
|
9673
9945
|
}).passthrough();
|
|
9674
|
-
const skillBadgeStyleSchema = enumType([
|
|
9675
|
-
"flat",
|
|
9676
|
-
"flat-square",
|
|
9677
|
-
"for-the-badge",
|
|
9678
|
-
"plastic",
|
|
9679
|
-
"social"
|
|
9680
|
-
]);
|
|
9681
|
-
objectType({
|
|
9682
|
-
schemaVersion: numberType().int(),
|
|
9683
|
-
label: stringType(),
|
|
9684
|
-
message: stringType(),
|
|
9685
|
-
color: stringType(),
|
|
9686
|
-
style: skillBadgeStyleSchema.optional(),
|
|
9687
|
-
isError: booleanType().optional(),
|
|
9688
|
-
cacheSeconds: numberType().int().optional()
|
|
9689
|
-
}).passthrough();
|
|
9690
|
-
objectType({
|
|
9691
|
-
tags: arrayType(stringType())
|
|
9692
|
-
}).passthrough();
|
|
9693
|
-
objectType({
|
|
9694
|
-
categories: arrayType(stringType())
|
|
9695
|
-
}).passthrough();
|
|
9696
|
-
recordType(jsonValueSchema);
|
|
9697
|
-
const skillRegistryQuoteFileBreakdownSchema = objectType({
|
|
9698
|
-
name: stringType(),
|
|
9699
|
-
mimeType: stringType(),
|
|
9700
|
-
estimatedCostHbar: numberType()
|
|
9701
|
-
}).passthrough();
|
|
9702
|
-
objectType({
|
|
9703
|
-
quoteId: stringType(),
|
|
9704
|
-
name: stringType(),
|
|
9705
|
-
version: stringType(),
|
|
9706
|
-
directoryTopicId: stringType(),
|
|
9707
|
-
estimatedCostHbar: numberType(),
|
|
9708
|
-
credits: numberType(),
|
|
9709
|
-
usdCents: numberType(),
|
|
9710
|
-
expiresAt: stringType(),
|
|
9711
|
-
files: arrayType(skillRegistryQuoteFileBreakdownSchema)
|
|
9712
|
-
}).passthrough();
|
|
9713
|
-
const skillRegistryJobStatusSchema = unionType([
|
|
9714
|
-
literalType("pending"),
|
|
9715
|
-
literalType("in_progress"),
|
|
9716
|
-
literalType("completed"),
|
|
9717
|
-
literalType("failed")
|
|
9718
|
-
]);
|
|
9719
|
-
objectType({
|
|
9720
|
-
jobId: stringType(),
|
|
9721
|
-
status: skillRegistryJobStatusSchema,
|
|
9722
|
-
credits: numberType().nullable().optional(),
|
|
9723
|
-
usdCents: numberType().nullable().optional(),
|
|
9724
|
-
quoteId: stringType().nullable().optional(),
|
|
9725
|
-
createdAt: stringType(),
|
|
9726
|
-
updatedAt: stringType(),
|
|
9727
|
-
network: unionType([literalType("mainnet"), literalType("testnet")])
|
|
9728
|
-
}).passthrough();
|
|
9729
|
-
objectType({
|
|
9730
|
-
jobId: stringType(),
|
|
9731
|
-
status: skillRegistryJobStatusSchema,
|
|
9732
|
-
network: unionType([literalType("mainnet"), literalType("testnet")]),
|
|
9733
|
-
name: stringType(),
|
|
9734
|
-
version: stringType(),
|
|
9735
|
-
directoryTopicId: stringType(),
|
|
9736
|
-
skillUid: numberType().int().nullable().optional(),
|
|
9737
|
-
directorySequenceNumber: numberType().int().nullable().optional(),
|
|
9738
|
-
versionRegistryTopicId: stringType().nullable().optional(),
|
|
9739
|
-
packageTopicId: stringType().nullable().optional(),
|
|
9740
|
-
manifestHrl: stringType().nullable().optional(),
|
|
9741
|
-
skillJsonHrl: stringType().nullable().optional(),
|
|
9742
|
-
iconHcs1: stringType().nullable().optional(),
|
|
9743
|
-
tags: arrayType(stringType()).nullable().optional(),
|
|
9744
|
-
category: stringType().nullable().optional(),
|
|
9745
|
-
files: arrayType(skillRegistryFileDescriptorSchema).nullable().optional(),
|
|
9746
|
-
quoteCredits: numberType().nullable().optional(),
|
|
9747
|
-
quoteUsdCents: numberType().nullable().optional(),
|
|
9748
|
-
safety: skillSafetySummarySchema.nullable().optional(),
|
|
9749
|
-
reservationId: stringType().nullable().optional(),
|
|
9750
|
-
totalCostHbar: numberType().nullable().optional(),
|
|
9751
|
-
totalCostCredits: numberType().nullable().optional(),
|
|
9752
|
-
failureReason: stringType().nullable().optional(),
|
|
9753
|
-
createdAt: stringType(),
|
|
9754
|
-
updatedAt: stringType()
|
|
9755
|
-
}).passthrough();
|
|
9756
|
-
const skillRegistryVersionItemSchema = objectType({
|
|
9757
|
-
jobId: stringType(),
|
|
9758
|
-
version: stringType(),
|
|
9759
|
-
createdAt: stringType(),
|
|
9760
|
-
verified: booleanType().optional()
|
|
9761
|
-
}).passthrough();
|
|
9762
|
-
objectType({
|
|
9763
|
-
name: stringType(),
|
|
9764
|
-
items: arrayType(skillRegistryVersionItemSchema)
|
|
9765
|
-
}).passthrough();
|
|
9766
|
-
const skillRegistryMineItemSchema = objectType({
|
|
9767
|
-
name: stringType(),
|
|
9768
|
-
latestVersion: stringType(),
|
|
9769
|
-
latestCreatedAt: stringType(),
|
|
9770
|
-
verified: booleanType().optional(),
|
|
9771
|
-
iconHcs1: stringType().optional(),
|
|
9772
|
-
versions: arrayType(stringType())
|
|
9773
|
-
}).passthrough();
|
|
9774
|
-
const skillRegistryMineResponseSchema = objectType({
|
|
9775
|
-
items: arrayType(skillRegistryMineItemSchema)
|
|
9776
|
-
}).passthrough();
|
|
9777
|
-
objectType({
|
|
9778
|
-
owned: skillRegistryMineResponseSchema,
|
|
9779
|
-
upvoted: skillRegistryListResponseSchema
|
|
9780
|
-
}).passthrough();
|
|
9781
|
-
objectType({
|
|
9782
|
-
enabled: booleanType(),
|
|
9783
|
-
directoryTopicId: stringType().nullable().optional(),
|
|
9784
|
-
maxFiles: numberType().int().nullable().optional(),
|
|
9785
|
-
maxTotalSizeBytes: numberType().int().nullable().optional(),
|
|
9786
|
-
allowedMimeTypes: arrayType(stringType()).nullable().optional(),
|
|
9787
|
-
network: unionType([literalType("mainnet"), literalType("testnet")]).nullable().optional(),
|
|
9788
|
-
publisher: skillPublisherMetadataSchema.nullable().optional()
|
|
9789
|
-
}).passthrough();
|
|
9790
|
-
objectType({
|
|
9791
|
-
name: stringType(),
|
|
9792
|
-
exists: booleanType(),
|
|
9793
|
-
isOwner: booleanType()
|
|
9794
|
-
}).passthrough();
|
|
9795
|
-
objectType({
|
|
9796
|
-
name: stringType(),
|
|
9797
|
-
upvotes: numberType().int(),
|
|
9798
|
-
hasUpvoted: booleanType()
|
|
9799
|
-
}).passthrough();
|
|
9800
9946
|
const skillVerificationTierSchema = enumType(["basic", "express"]);
|
|
9801
9947
|
const skillVerificationStatusSchema = enumType([
|
|
9802
9948
|
"pending",
|
|
@@ -9950,9 +10096,16 @@ objectType({
|
|
|
9950
10096
|
const isBrowser$1 = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
9951
10097
|
let nodeRequire;
|
|
9952
10098
|
const isNodeRuntime = () => typeof process !== "undefined" && Boolean(process.versions?.node);
|
|
10099
|
+
function resolveBuiltinModuleLoader() {
|
|
10100
|
+
if (typeof process === "undefined") {
|
|
10101
|
+
return void 0;
|
|
10102
|
+
}
|
|
10103
|
+
return process.getBuiltinModule;
|
|
10104
|
+
}
|
|
9953
10105
|
function getNodeRequireSync() {
|
|
9954
10106
|
try {
|
|
9955
|
-
const
|
|
10107
|
+
const builtinModuleLoader = resolveBuiltinModuleLoader();
|
|
10108
|
+
const moduleNamespace = builtinModuleLoader?.("module");
|
|
9956
10109
|
if (typeof moduleNamespace?.createRequire === "function") {
|
|
9957
10110
|
const requireFromModule = moduleNamespace.createRequire(import.meta.url);
|
|
9958
10111
|
if (typeof requireFromModule.resolve === "function") {
|
|
@@ -30620,9 +30773,12 @@ async function loadNodeModules() {
|
|
|
30620
30773
|
Logger$1.getInstance({
|
|
30621
30774
|
module: "Inscriber",
|
|
30622
30775
|
level: "warn"
|
|
30623
|
-
}).warn(
|
|
30624
|
-
|
|
30625
|
-
|
|
30776
|
+
}).warn(
|
|
30777
|
+
"Node.js modules not available, file path operations will be disabled",
|
|
30778
|
+
{
|
|
30779
|
+
error: error instanceof Error ? error.message : String(error)
|
|
30780
|
+
}
|
|
30781
|
+
);
|
|
30626
30782
|
}
|
|
30627
30783
|
}
|
|
30628
30784
|
const COST_LOOKUP_ATTEMPTS = 3;
|