@nekro-nxt/contracts 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +221 -2
- package/dist/index.mjs.map +1 -1
- package/lib/types/community.d.ts +357 -0
- package/lib/types/community.d.ts.map +1 -1
- package/lib/types/extension-ui.d.ts +3 -3
- package/lib/types/host-api.d.ts +378 -3
- package/lib/types/host-api.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/community.ts +148 -0
- package/src/host-api.ts +85 -0
package/dist/index.mjs
CHANGED
|
@@ -1297,10 +1297,19 @@ const CommunityAccountSchema = z.object({
|
|
|
1297
1297
|
displayName: z.string().max(200),
|
|
1298
1298
|
avatarUrl: z.string().url().nullable()
|
|
1299
1299
|
}).strict();
|
|
1300
|
+
const CommunityEnvironmentSchema = z.enum([
|
|
1301
|
+
"production",
|
|
1302
|
+
"staging",
|
|
1303
|
+
"development"
|
|
1304
|
+
]);
|
|
1300
1305
|
const CommunityStatusSchema = z.object({
|
|
1301
1306
|
communityUrl: z.string().url(),
|
|
1307
|
+
/** 社区自我声明的环境;连不上或旧版社区时为 null。 */
|
|
1308
|
+
environment: CommunityEnvironmentSchema.nullable(),
|
|
1302
1309
|
account: CommunityAccountSchema.nullable(),
|
|
1303
|
-
signedInAt: z.number().int().nullable()
|
|
1310
|
+
signedInAt: z.number().int().nullable(),
|
|
1311
|
+
/** 最近一次更新检查发现的可更新扩展数量(只读缓存,不发起网络请求)。 */
|
|
1312
|
+
updatesAvailable: z.number().int().nonnegative()
|
|
1304
1313
|
}).strict();
|
|
1305
1314
|
const CommunityPermissionItemSchema = z.object({
|
|
1306
1315
|
key: z.string().max(120),
|
|
@@ -1322,6 +1331,10 @@ const CommunityReleaseSchema = z.object({
|
|
|
1322
1331
|
notes: z.string().max(2e3),
|
|
1323
1332
|
createdAt: z.number().int()
|
|
1324
1333
|
}).strict();
|
|
1334
|
+
/** 社区为官方扩展保留的发布者标识:官方扩展由多位官方成员维护,对外不显示个人账号。 */
|
|
1335
|
+
const COMMUNITY_OFFICIAL_HANDLE = "nekro-nxt";
|
|
1336
|
+
/** 发布者的展示文字:官方扩展显示「NekroNXT 官方」,其余显示 @账号。 */
|
|
1337
|
+
const communityPublisherLabel = (handle) => handle === "nekro-nxt" ? "NekroNXT 官方" : `@${handle}`;
|
|
1325
1338
|
const CommunityExtensionSummarySchema = z.object({
|
|
1326
1339
|
id: ExtensionIdSchema,
|
|
1327
1340
|
scope: z.enum([
|
|
@@ -1332,6 +1345,8 @@ const CommunityExtensionSummarySchema = z.object({
|
|
|
1332
1345
|
displayName: z.string().max(200),
|
|
1333
1346
|
summary: z.string().max(1e3),
|
|
1334
1347
|
tags: z.array(z.string().max(40)).max(16),
|
|
1348
|
+
/** 由社区后台认定的官方扩展;此时发布者是社区保留的官方主页(`COMMUNITY_OFFICIAL_HANDLE`)。 */
|
|
1349
|
+
official: z.boolean(),
|
|
1335
1350
|
publisher: CommunityAccountSchema,
|
|
1336
1351
|
latest: CommunityReleaseSchema.nullable(),
|
|
1337
1352
|
downloads: z.number().int().nonnegative(),
|
|
@@ -1351,6 +1366,122 @@ const CommunityExtensionDetailSchema = CommunityExtensionSummarySchema.extend({
|
|
|
1351
1366
|
}).strict()).max(16)
|
|
1352
1367
|
}).strict().nullable()
|
|
1353
1368
|
}).strict();
|
|
1369
|
+
const CommunityEndpointSchema = z.object({
|
|
1370
|
+
url: z.string().url(),
|
|
1371
|
+
source: z.enum([
|
|
1372
|
+
"setting",
|
|
1373
|
+
"environment",
|
|
1374
|
+
"default"
|
|
1375
|
+
]),
|
|
1376
|
+
defaultUrl: z.string().url(),
|
|
1377
|
+
environmentUrl: z.string().url().nullable(),
|
|
1378
|
+
/** 当前地址是未加密的非本机地址。 */
|
|
1379
|
+
insecure: z.boolean()
|
|
1380
|
+
}).strict();
|
|
1381
|
+
const CommunitySourceSchema = z.object({
|
|
1382
|
+
kind: z.literal("community"),
|
|
1383
|
+
communityUrl: z.string().url(),
|
|
1384
|
+
releaseId: CommunityReleaseIdSchema,
|
|
1385
|
+
publisherHandle: z.string().min(1).max(80),
|
|
1386
|
+
installedAt: z.number().int().nonnegative()
|
|
1387
|
+
}).strict();
|
|
1388
|
+
const CommunityInstalledItemSchema = z.object({
|
|
1389
|
+
extensionId: ExtensionIdSchema,
|
|
1390
|
+
displayName: z.string(),
|
|
1391
|
+
revisionId: z.string(),
|
|
1392
|
+
source: CommunitySourceSchema,
|
|
1393
|
+
/** 来源与当前社区地址一致时才能检查更新。 */
|
|
1394
|
+
sameCommunity: z.boolean(),
|
|
1395
|
+
/** 社区仍有这个条目。 */
|
|
1396
|
+
found: z.boolean(),
|
|
1397
|
+
delisted: z.boolean(),
|
|
1398
|
+
delistedReason: z.string().nullable(),
|
|
1399
|
+
releaseWithdrawn: z.boolean(),
|
|
1400
|
+
latest: CommunityReleaseSchema.nullable(),
|
|
1401
|
+
updateAvailable: z.boolean(),
|
|
1402
|
+
addedPermissions: z.array(CommunityPermissionItemSchema)
|
|
1403
|
+
}).strict();
|
|
1404
|
+
const CommunityInstalledSchema = z.object({
|
|
1405
|
+
checkedAt: z.number().int().nullable(),
|
|
1406
|
+
items: z.array(CommunityInstalledItemSchema)
|
|
1407
|
+
}).strict();
|
|
1408
|
+
const CommunityMyExtensionSchema = CommunityExtensionSummarySchema.extend({
|
|
1409
|
+
releases: z.array(CommunityReleaseSchema.extend({ withdrawn: z.boolean() }).strict()),
|
|
1410
|
+
delisted: z.boolean(),
|
|
1411
|
+
delistedReason: z.string().nullable()
|
|
1412
|
+
}).strict();
|
|
1413
|
+
const COMMUNITY_REVIEW_DIMENSIONS = [
|
|
1414
|
+
"security",
|
|
1415
|
+
"transparency",
|
|
1416
|
+
"reliability",
|
|
1417
|
+
"context_cost",
|
|
1418
|
+
"usability",
|
|
1419
|
+
"maintainability",
|
|
1420
|
+
"compliance"
|
|
1421
|
+
];
|
|
1422
|
+
const COMMUNITY_REVIEW_DIMENSION_LABELS = {
|
|
1423
|
+
security: "安全",
|
|
1424
|
+
transparency: "源码透明",
|
|
1425
|
+
reliability: "可靠性",
|
|
1426
|
+
context_cost: "上下文与成本",
|
|
1427
|
+
usability: "可用性",
|
|
1428
|
+
maintainability: "可维护性",
|
|
1429
|
+
compliance: "合规"
|
|
1430
|
+
};
|
|
1431
|
+
/** 作者看到的完整审查报告。 */
|
|
1432
|
+
const CommunityReviewReportSchema = z.object({
|
|
1433
|
+
releaseId: CommunityReleaseIdSchema,
|
|
1434
|
+
status: CommunityReviewStatusSchema,
|
|
1435
|
+
grade: CommunityGradeSchema.nullable(),
|
|
1436
|
+
deterministic: z.array(z.object({
|
|
1437
|
+
severity: z.enum([
|
|
1438
|
+
"info",
|
|
1439
|
+
"warning",
|
|
1440
|
+
"risk",
|
|
1441
|
+
"block"
|
|
1442
|
+
]),
|
|
1443
|
+
title: z.string(),
|
|
1444
|
+
detail: z.string(),
|
|
1445
|
+
file: z.string().optional(),
|
|
1446
|
+
line: z.number().int().optional()
|
|
1447
|
+
}).strict()),
|
|
1448
|
+
ai: z.object({
|
|
1449
|
+
summary: z.string(),
|
|
1450
|
+
verdict: z.string(),
|
|
1451
|
+
grade: CommunityGradeSchema,
|
|
1452
|
+
dimensions: z.array(z.object({
|
|
1453
|
+
key: z.enum(COMMUNITY_REVIEW_DIMENSIONS),
|
|
1454
|
+
grade: CommunityGradeSchema,
|
|
1455
|
+
notes: z.string()
|
|
1456
|
+
}).strict()),
|
|
1457
|
+
findings: z.array(z.object({
|
|
1458
|
+
dimension: z.enum(COMMUNITY_REVIEW_DIMENSIONS),
|
|
1459
|
+
severity: z.enum([
|
|
1460
|
+
"info",
|
|
1461
|
+
"suggestion",
|
|
1462
|
+
"warning",
|
|
1463
|
+
"risk",
|
|
1464
|
+
"critical"
|
|
1465
|
+
]),
|
|
1466
|
+
title: z.string(),
|
|
1467
|
+
detail: z.string(),
|
|
1468
|
+
file: z.string().optional(),
|
|
1469
|
+
line: z.number().int().optional(),
|
|
1470
|
+
suggestion: z.string().optional()
|
|
1471
|
+
}).strict()),
|
|
1472
|
+
exploitability: z.string().optional()
|
|
1473
|
+
}).strict().nullable(),
|
|
1474
|
+
model: z.string().nullable(),
|
|
1475
|
+
error: z.string().nullable(),
|
|
1476
|
+
decisions: z.array(z.object({
|
|
1477
|
+
decision: z.string(),
|
|
1478
|
+
note: z.string(),
|
|
1479
|
+
by: z.string(),
|
|
1480
|
+
createdAt: z.number().int()
|
|
1481
|
+
}).strict()),
|
|
1482
|
+
finishedAt: z.number().int().nullable(),
|
|
1483
|
+
reportUrl: z.string().url()
|
|
1484
|
+
}).strict();
|
|
1354
1485
|
/** 安装者看到的审查标签:只描述审查发现,不做「安全」担保。 */
|
|
1355
1486
|
const communityReviewLabel = (status) => {
|
|
1356
1487
|
switch (status) {
|
|
@@ -2368,6 +2499,8 @@ const HostSnapshotSchema = z.object({
|
|
|
2368
2499
|
ui: ExtensionUiContributionsSchema.default(EMPTY_EXTENSION_UI_CONTRIBUTIONS),
|
|
2369
2500
|
configSchema: ConfigSchemaDocumentSchema.optional(),
|
|
2370
2501
|
createdAt: z.number().int().safe().nonnegative(),
|
|
2502
|
+
/** 从社区安装的保存记录的来源;本机保存与文件导入没有来源。 */
|
|
2503
|
+
source: CommunitySourceSchema.optional(),
|
|
2371
2504
|
scope: z.enum([
|
|
2372
2505
|
"agent",
|
|
2373
2506
|
"host-adapter",
|
|
@@ -3716,6 +3849,92 @@ const HostApiContracts = {
|
|
|
3716
3849
|
error: HostApiErrorSchema
|
|
3717
3850
|
}),
|
|
3718
3851
|
/** 下载社区发布并按包摘要校验,结果与本地文件导入的检查相同,再经 `commitExtensionImport` 确认。 */
|
|
3852
|
+
getCommunityEndpoint: defineContract({
|
|
3853
|
+
method: "GET",
|
|
3854
|
+
path: "/api/community/endpoint",
|
|
3855
|
+
params: EmptyParamsSchema,
|
|
3856
|
+
request: NoRequestBodySchema,
|
|
3857
|
+
response: CommunityEndpointSchema,
|
|
3858
|
+
error: HostApiErrorSchema
|
|
3859
|
+
}),
|
|
3860
|
+
/** 修改社区地址;`url: null` 恢复为环境变量或默认地址。非加密的局域网地址需要确认风险。 */
|
|
3861
|
+
updateCommunityEndpoint: defineContract({
|
|
3862
|
+
method: "PUT",
|
|
3863
|
+
path: "/api/community/endpoint",
|
|
3864
|
+
params: EmptyParamsSchema,
|
|
3865
|
+
request: z.object({
|
|
3866
|
+
url: z.string().max(300).nullable(),
|
|
3867
|
+
acknowledgeInsecure: z.boolean()
|
|
3868
|
+
}).strict(),
|
|
3869
|
+
response: CommunityEndpointSchema,
|
|
3870
|
+
error: HostApiErrorSchema
|
|
3871
|
+
}),
|
|
3872
|
+
testCommunityEndpoint: defineContract({
|
|
3873
|
+
timeoutMs: 3e4,
|
|
3874
|
+
method: "POST",
|
|
3875
|
+
path: "/api/community/endpoint/test",
|
|
3876
|
+
params: EmptyParamsSchema,
|
|
3877
|
+
request: z.object({
|
|
3878
|
+
url: z.string().max(300),
|
|
3879
|
+
acknowledgeInsecure: z.boolean()
|
|
3880
|
+
}).strict(),
|
|
3881
|
+
response: z.object({
|
|
3882
|
+
ok: z.boolean(),
|
|
3883
|
+
message: z.string(),
|
|
3884
|
+
name: z.string().optional(),
|
|
3885
|
+
environment: z.enum([
|
|
3886
|
+
"production",
|
|
3887
|
+
"staging",
|
|
3888
|
+
"development"
|
|
3889
|
+
]).optional()
|
|
3890
|
+
}).strict(),
|
|
3891
|
+
error: HostApiErrorSchema
|
|
3892
|
+
}),
|
|
3893
|
+
listCommunityInstalled: defineContract({
|
|
3894
|
+
timeoutMs: 3e4,
|
|
3895
|
+
method: "GET",
|
|
3896
|
+
path: "/api/community/installed",
|
|
3897
|
+
params: z.object({ refresh: z.enum(["1"]).optional() }).strict(),
|
|
3898
|
+
request: NoRequestBodySchema,
|
|
3899
|
+
response: CommunityInstalledSchema,
|
|
3900
|
+
error: HostApiErrorSchema
|
|
3901
|
+
}),
|
|
3902
|
+
listCommunityMine: defineContract({
|
|
3903
|
+
timeoutMs: 3e4,
|
|
3904
|
+
method: "GET",
|
|
3905
|
+
path: "/api/community/mine",
|
|
3906
|
+
params: EmptyParamsSchema,
|
|
3907
|
+
request: NoRequestBodySchema,
|
|
3908
|
+
response: z.object({ items: z.array(CommunityMyExtensionSchema) }).strict(),
|
|
3909
|
+
error: HostApiErrorSchema
|
|
3910
|
+
}),
|
|
3911
|
+
getCommunityReleaseReview: defineContract({
|
|
3912
|
+
timeoutMs: 3e4,
|
|
3913
|
+
method: "GET",
|
|
3914
|
+
path: "/api/community/releases/:releaseId/review",
|
|
3915
|
+
params: z.object({ releaseId: CommunityReleaseIdSchema }).strict(),
|
|
3916
|
+
request: NoRequestBodySchema,
|
|
3917
|
+
response: CommunityReviewReportSchema,
|
|
3918
|
+
error: HostApiErrorSchema
|
|
3919
|
+
}),
|
|
3920
|
+
requestCommunityReview: defineContract({
|
|
3921
|
+
timeoutMs: 3e4,
|
|
3922
|
+
method: "POST",
|
|
3923
|
+
path: "/api/community/releases/:releaseId/review",
|
|
3924
|
+
params: z.object({ releaseId: CommunityReleaseIdSchema }).strict(),
|
|
3925
|
+
request: NoRequestBodySchema,
|
|
3926
|
+
response: z.object({ ok: z.literal(true) }).strict(),
|
|
3927
|
+
error: HostApiErrorSchema
|
|
3928
|
+
}),
|
|
3929
|
+
withdrawCommunityRelease: defineContract({
|
|
3930
|
+
timeoutMs: 3e4,
|
|
3931
|
+
method: "POST",
|
|
3932
|
+
path: "/api/community/releases/:releaseId/withdraw",
|
|
3933
|
+
params: z.object({ releaseId: CommunityReleaseIdSchema }).strict(),
|
|
3934
|
+
request: NoRequestBodySchema,
|
|
3935
|
+
response: z.object({ ok: z.literal(true) }).strict(),
|
|
3936
|
+
error: HostApiErrorSchema
|
|
3937
|
+
}),
|
|
3719
3938
|
importCommunityRelease: defineContract({
|
|
3720
3939
|
timeoutMs: 12e4,
|
|
3721
3940
|
method: "POST",
|
|
@@ -4470,6 +4689,6 @@ function buildHostApiPath(name, input) {
|
|
|
4470
4689
|
return buildValidatedHostApiPath(HostApiContracts[name], input);
|
|
4471
4690
|
}
|
|
4472
4691
|
//#endregion
|
|
4473
|
-
export { ACTIVITY_MAX_BUCKETS, ACTIVITY_MAX_WINDOW_MS, ACTIVITY_MIN_BUCKET_MS, ADAPTER_PANEL_ANCHORS, AGENT_PANEL_ANCHORS, ActivityQuerySchema, AdapterActivityKeySchema, AdmissionIdSchema, AgentAppearanceSchema, AgentIdSchema, AgentRevisionChangedFieldSchema, AgentRevisionHistorySchema, AgentRevisionIdSchema, AssetIdSchema, AttentionItemSchema, AttentionListSchema, AuthoringAttemptIdSchema, AuthoringTaskIdSchema, CHANNEL_UNREAD_COUNT_CAP, COMMUNITY_REVIEW_STATUSES, CONFIG_SCHEMA_MAX_BYTES, ChannelActivitySeriesSchema, ChannelActivitySummarySchema, ChannelEventIdSchema, ChannelFactSseDataSchema, ChannelFactSseItemSchema, ChannelIdSchema, ChannelMemberIdSchema, ChannelPendingContextSchema, ChannelRuntimeCacheSampleSchema, ChannelRuntimeCacheSchema, ChannelRuntimeOccupancySchema, ChannelRuntimePerformanceSampleSchema, ChannelRuntimePerformanceSchema, ChannelRuntimePhaseSchema, ChannelRuntimeProjectionSchema, ChannelRuntimeSseDataSchema, ChannelRuntimeStepSchema, ChannelRuntimeToolSchema, ChannelRuntimeTurnSchema, ChannelRuntimeUsageSchema, ClientNotificationFeedResponseSchema, ClientNotificationSchema, CommunityAccountSchema, CommunityExtensionDetailSchema, CommunityExtensionSummarySchema, CommunityGradeSchema, CommunityPermissionItemSchema, CommunityReleaseIdSchema, CommunityReleaseSchema, CommunityReviewStatusSchema, CommunityStatusSchema, ConfigSchemaDocumentSchema, ConfigSchemaMetaSchema, ConfigSchemaNodeSchema, ConnectionEventIdSchema, ConnectionIdSchema, ConnectionPanelRoleSchema, ConnectionTestResultSchema, DshCredentialRefSchema, DshCredentialViewSchema, DshCredentialsChangedSseDataSchema, DshNxtHostUiSchema, DshPluginCatalogEntrySchema, DshPluginEntryIdSchema, DshPluginOperationSseDataSchema, DshPluginPackageIdSchema, DshSettingsChangedSseDataSchema, DshSettingsMutationRequestSchema, DshSettingsNamespaceSchema, DshSettingsPathOperationSchema, DshSettingsPathSchema, DynamicChangedSseDataSchema, DynamicClientApprovalPolicySchema, EMPTY_CONFIG_SCHEMA, EMPTY_EXTENSION_UI_CONTRIBUTIONS, EXTENSION_CONTEXT_DYNAMIC_MAX_CHARS, EXTENSION_CONTEXT_STATIC_MAX_CHARS, EXTENSION_DATA_HOOK_PERMISSIONS, EXTENSION_INBOUND_HOOK_MAX_TIMEOUT_MS, EXTENSION_JOB_MAX_RUNTIME, EXTENSION_LLM_MAX_CALLS_PER_TURN, EXTENSION_LLM_MAX_OUTPUT_TOKENS, EXTENSION_SDK_LEVEL, EXTENSION_STORAGE_DEFAULT_QUOTA_BYTES, EXTENSION_STORAGE_MAX_QUOTA_BYTES, EXTENSION_STORAGE_SCOPES, EpisodeHandoffIdSchema, EpisodeIdSchema, ExtensionCapabilitiesSchema, ExtensionConfigDeclarationSchema, ExtensionContextContributionSchema, ExtensionDeclaredJobSchema, ExtensionIdSchema, ExtensionImportInspectionSchema, ExtensionInboundHookCapabilitySchema, ExtensionJobsCapabilitySchema, ExtensionLlmCapabilitySchema, ExtensionMcpCapabilitySchema, ExtensionMcpServerNameSchema, ExtensionMcpServerSchema, ExtensionMcpValueSchema, ExtensionNetworkCapabilitySchema, ExtensionNetworkDomainSchema, ExtensionPanelAnchorSchema, ExtensionPanelDeclarationSchema, ExtensionPlatformCapabilitySchema, ExtensionRequiresSchema, ExtensionRevisionIdSchema, ExtensionStorageCapabilitySchema, ExtensionStorageScopeSchema, ExtensionUiContributionsSchema, HOST_UI_KIT_COMPONENT_NAMES, HostApiContracts, HostApiErrorSchema, HostConnectionEventSchema, HostIconNameSchema, HostPageContributionSchema, HostPageIconSchema, HostSnapshotMessageSchema, HostSnapshotSchema, HostSseEventSchema, HostSseStatusDataSchema, HostSyncCursorSchema, HostUiKitComponentNameSchema, HostUiNavigationGroupSchema, HostUiNavigationItemSchema, HostUiNavigationModelSchema, HostUiNetworkOriginSchema, HostUiOwnerSchema, HostUiPageEntrySchema, HostUiPageGeometryEvidenceSchema, HostUiPageInstanceIdSchema, HostUiPagePreferencesSchema, HostUiPermissionDeclarationSchema, HostUiPermissionSchema, HostUpgradeSummarySchema, INSECURE_HTTP_MANAGEMENT_PAIR_PROOF_PREFIX, ImageUnderstandingPolicyApiSchema, InsecureHttpManagementChallengeResponseSchema, InstanceDescriptorSchema, InstanceDescriptorWireSchema, JsonValueSchema, LlmDiscoveredModelSchema, LlmModelInputModalitiesSchema, LlmProviderCredentialSchema, LlmProviderModelSchema, LlmProviderSettingsSchema, LlmProviderViewSchema, LogicalMessageIdSchema, MANAGEMENT_PAIR_PROOF_PREFIX, ManagementChallengeResponseSchema, ManagementDeviceEnrollmentRequestSchema, ManagementDeviceEnrollmentResponseSchema, ManagementDeviceIdSchema, ManagementDeviceViewSchema, ManagementSessionRequestSchema, ManagementSessionResponseSchema, McpServerFormSchema, MessagePartSchema, MessagePartsSchema, MessageRendererContributionSchema, NonEmptyMessagePartsSchema, NotificationEventKeySchema, NotificationSettingsViewSchema, OutboundIntentIdSchema, PROMPT_DOCUMENT_MAX_PLAIN_TEXT_LENGTH, PROMPT_DOCUMENT_MAX_REFERENCES, PanelContributionSchema, PanelDensitySchema, PhysicalDeliveryIdSchema, PlatformIdentityIdSchema, PlatformUserListResponseSchema, PromptDocumentV1Schema, PromptSegmentSchema, RICH_EXTENSION_MAX_BYTES, RichExtensionSchema, RichKindSchema, RichTargetUrlSchema, RuntimeCompatibilityDiagnosticSchema, ScheduledTaskIdSchema, ScheduledTaskSchema, ServerInstanceIdSchema, TestBarkNotificationRequestSchema, ToolViewContributionSchema, ToolViewDensitySchema, UpdateNotificationSettingsRequestSchema, WorkTreeOrderSchema, activityDurationMs, buildHostApiContractPath, buildHostApiPath, communityReviewLabel, configDescription, configFieldKind, configFields, configSchema, configSecretKeys, extensionCapabilitiesExpand, insecureHttpManagementPairProofMessage, managementPairProofMessage, mcpSecretFields, messagePartAssetId, messagePartAssetIds, messagePartsSearchText, normalizePromptDocument, parseConfigValue, parseJsonValue, parseMessageParts, promptDocumentFromText, promptDocumentPlainText, richPartContextText, summarizeExtensionCapabilities, validateConfigValue };
|
|
4692
|
+
export { ACTIVITY_MAX_BUCKETS, ACTIVITY_MAX_WINDOW_MS, ACTIVITY_MIN_BUCKET_MS, ADAPTER_PANEL_ANCHORS, AGENT_PANEL_ANCHORS, ActivityQuerySchema, AdapterActivityKeySchema, AdmissionIdSchema, AgentAppearanceSchema, AgentIdSchema, AgentRevisionChangedFieldSchema, AgentRevisionHistorySchema, AgentRevisionIdSchema, AssetIdSchema, AttentionItemSchema, AttentionListSchema, AuthoringAttemptIdSchema, AuthoringTaskIdSchema, CHANNEL_UNREAD_COUNT_CAP, COMMUNITY_OFFICIAL_HANDLE, COMMUNITY_REVIEW_DIMENSIONS, COMMUNITY_REVIEW_DIMENSION_LABELS, COMMUNITY_REVIEW_STATUSES, CONFIG_SCHEMA_MAX_BYTES, ChannelActivitySeriesSchema, ChannelActivitySummarySchema, ChannelEventIdSchema, ChannelFactSseDataSchema, ChannelFactSseItemSchema, ChannelIdSchema, ChannelMemberIdSchema, ChannelPendingContextSchema, ChannelRuntimeCacheSampleSchema, ChannelRuntimeCacheSchema, ChannelRuntimeOccupancySchema, ChannelRuntimePerformanceSampleSchema, ChannelRuntimePerformanceSchema, ChannelRuntimePhaseSchema, ChannelRuntimeProjectionSchema, ChannelRuntimeSseDataSchema, ChannelRuntimeStepSchema, ChannelRuntimeToolSchema, ChannelRuntimeTurnSchema, ChannelRuntimeUsageSchema, ClientNotificationFeedResponseSchema, ClientNotificationSchema, CommunityAccountSchema, CommunityEndpointSchema, CommunityEnvironmentSchema, CommunityExtensionDetailSchema, CommunityExtensionSummarySchema, CommunityGradeSchema, CommunityInstalledItemSchema, CommunityInstalledSchema, CommunityMyExtensionSchema, CommunityPermissionItemSchema, CommunityReleaseIdSchema, CommunityReleaseSchema, CommunityReviewReportSchema, CommunityReviewStatusSchema, CommunitySourceSchema, CommunityStatusSchema, ConfigSchemaDocumentSchema, ConfigSchemaMetaSchema, ConfigSchemaNodeSchema, ConnectionEventIdSchema, ConnectionIdSchema, ConnectionPanelRoleSchema, ConnectionTestResultSchema, DshCredentialRefSchema, DshCredentialViewSchema, DshCredentialsChangedSseDataSchema, DshNxtHostUiSchema, DshPluginCatalogEntrySchema, DshPluginEntryIdSchema, DshPluginOperationSseDataSchema, DshPluginPackageIdSchema, DshSettingsChangedSseDataSchema, DshSettingsMutationRequestSchema, DshSettingsNamespaceSchema, DshSettingsPathOperationSchema, DshSettingsPathSchema, DynamicChangedSseDataSchema, DynamicClientApprovalPolicySchema, EMPTY_CONFIG_SCHEMA, EMPTY_EXTENSION_UI_CONTRIBUTIONS, EXTENSION_CONTEXT_DYNAMIC_MAX_CHARS, EXTENSION_CONTEXT_STATIC_MAX_CHARS, EXTENSION_DATA_HOOK_PERMISSIONS, EXTENSION_INBOUND_HOOK_MAX_TIMEOUT_MS, EXTENSION_JOB_MAX_RUNTIME, EXTENSION_LLM_MAX_CALLS_PER_TURN, EXTENSION_LLM_MAX_OUTPUT_TOKENS, EXTENSION_SDK_LEVEL, EXTENSION_STORAGE_DEFAULT_QUOTA_BYTES, EXTENSION_STORAGE_MAX_QUOTA_BYTES, EXTENSION_STORAGE_SCOPES, EpisodeHandoffIdSchema, EpisodeIdSchema, ExtensionCapabilitiesSchema, ExtensionConfigDeclarationSchema, ExtensionContextContributionSchema, ExtensionDeclaredJobSchema, ExtensionIdSchema, ExtensionImportInspectionSchema, ExtensionInboundHookCapabilitySchema, ExtensionJobsCapabilitySchema, ExtensionLlmCapabilitySchema, ExtensionMcpCapabilitySchema, ExtensionMcpServerNameSchema, ExtensionMcpServerSchema, ExtensionMcpValueSchema, ExtensionNetworkCapabilitySchema, ExtensionNetworkDomainSchema, ExtensionPanelAnchorSchema, ExtensionPanelDeclarationSchema, ExtensionPlatformCapabilitySchema, ExtensionRequiresSchema, ExtensionRevisionIdSchema, ExtensionStorageCapabilitySchema, ExtensionStorageScopeSchema, ExtensionUiContributionsSchema, HOST_UI_KIT_COMPONENT_NAMES, HostApiContracts, HostApiErrorSchema, HostConnectionEventSchema, HostIconNameSchema, HostPageContributionSchema, HostPageIconSchema, HostSnapshotMessageSchema, HostSnapshotSchema, HostSseEventSchema, HostSseStatusDataSchema, HostSyncCursorSchema, HostUiKitComponentNameSchema, HostUiNavigationGroupSchema, HostUiNavigationItemSchema, HostUiNavigationModelSchema, HostUiNetworkOriginSchema, HostUiOwnerSchema, HostUiPageEntrySchema, HostUiPageGeometryEvidenceSchema, HostUiPageInstanceIdSchema, HostUiPagePreferencesSchema, HostUiPermissionDeclarationSchema, HostUiPermissionSchema, HostUpgradeSummarySchema, INSECURE_HTTP_MANAGEMENT_PAIR_PROOF_PREFIX, ImageUnderstandingPolicyApiSchema, InsecureHttpManagementChallengeResponseSchema, InstanceDescriptorSchema, InstanceDescriptorWireSchema, JsonValueSchema, LlmDiscoveredModelSchema, LlmModelInputModalitiesSchema, LlmProviderCredentialSchema, LlmProviderModelSchema, LlmProviderSettingsSchema, LlmProviderViewSchema, LogicalMessageIdSchema, MANAGEMENT_PAIR_PROOF_PREFIX, ManagementChallengeResponseSchema, ManagementDeviceEnrollmentRequestSchema, ManagementDeviceEnrollmentResponseSchema, ManagementDeviceIdSchema, ManagementDeviceViewSchema, ManagementSessionRequestSchema, ManagementSessionResponseSchema, McpServerFormSchema, MessagePartSchema, MessagePartsSchema, MessageRendererContributionSchema, NonEmptyMessagePartsSchema, NotificationEventKeySchema, NotificationSettingsViewSchema, OutboundIntentIdSchema, PROMPT_DOCUMENT_MAX_PLAIN_TEXT_LENGTH, PROMPT_DOCUMENT_MAX_REFERENCES, PanelContributionSchema, PanelDensitySchema, PhysicalDeliveryIdSchema, PlatformIdentityIdSchema, PlatformUserListResponseSchema, PromptDocumentV1Schema, PromptSegmentSchema, RICH_EXTENSION_MAX_BYTES, RichExtensionSchema, RichKindSchema, RichTargetUrlSchema, RuntimeCompatibilityDiagnosticSchema, ScheduledTaskIdSchema, ScheduledTaskSchema, ServerInstanceIdSchema, TestBarkNotificationRequestSchema, ToolViewContributionSchema, ToolViewDensitySchema, UpdateNotificationSettingsRequestSchema, WorkTreeOrderSchema, activityDurationMs, buildHostApiContractPath, buildHostApiPath, communityPublisherLabel, communityReviewLabel, configDescription, configFieldKind, configFields, configSchema, configSecretKeys, extensionCapabilitiesExpand, insecureHttpManagementPairProofMessage, managementPairProofMessage, mcpSecretFields, messagePartAssetId, messagePartAssetIds, messagePartsSearchText, normalizePromptDocument, parseConfigValue, parseJsonValue, parseMessageParts, promptDocumentFromText, promptDocumentPlainText, richPartContextText, summarizeExtensionCapabilities, validateConfigValue };
|
|
4474
4693
|
|
|
4475
4694
|
//# sourceMappingURL=index.mjs.map
|