@nekro-nxt/contracts 0.6.0 → 0.7.1

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 CHANGED
@@ -590,8 +590,24 @@ const configSchema = {
590
590
  * migration hook and administrator-only commands. Level 11 lists the pictures of an inbound message to inbound hooks.
591
591
  * Level 12 adds credential placeholders (`secrets.placeholder`) that `http.fetch` fills for the credential's domains.
592
592
  * Level 13 adds outbound processing (`harness.onOutbound`, `permissions.agent.outbound`).
593
+ * Level 14 adds work files (`files`), reading Asset bytes (`assets.read`), high-detail tool images (`toolImages`),
594
+ * long-running tools (`timeoutSeconds`, `execute(args, { signal, progress })`), media processing (`media`), command
595
+ * profiles (`commands`) and speech to text (`speech`).
596
+ * Level 15 adds downloads into work files (`files.fromUrl`).
593
597
  */
594
- const EXTENSION_SDK_LEVEL = 13;
598
+ const EXTENSION_SDK_LEVEL = 15;
599
+ /** `files.fromUrl` needs this level; it adds no declaration, so the host checks the level when it is called. */
600
+ const EXTENSION_DOWNLOAD_SDK_LEVEL = 15;
601
+ /** Largest response `http.fetch` holds in memory; bigger files go through `files.fromUrl`. */
602
+ const EXTENSION_FETCH_MAX_BYTES = 32 * 1024 * 1024;
603
+ /** Default 扩展下载上限: what one `files.fromUrl` may write until an administrator changes it. */
604
+ const EXTENSION_DOWNLOAD_DEFAULT_BYTES = 1024 * 1024 * 1024;
605
+ /** The highest 扩展下载上限 an administrator can set. */
606
+ const EXTENSION_DOWNLOAD_MAX_BYTES = 5 * 1024 * 1024 * 1024;
607
+ /** The lowest 扩展下载上限 an administrator can set. */
608
+ const EXTENSION_DOWNLOAD_MIN_BYTES = 8 * 1024 * 1024;
609
+ /** Work files, Asset reads, high-detail tool images, tool time limits, media, commands and speech need this level. */
610
+ const EXTENSION_FILES_SDK_LEVEL = 14;
595
611
  /** Outbound processing needs this level; packages that declare `permissions.agent.outbound` declare it. */
596
612
  const EXTENSION_OUTBOUND_SDK_LEVEL = 13;
597
613
  /** Lineage, `dataVersion` and administrator-only commands need this level; packages that carry them declare it. */
@@ -632,6 +648,14 @@ const EXTENSION_SDK_RELEASES = [
632
648
  {
633
649
  level: 13,
634
650
  version: "0.7.0"
651
+ },
652
+ {
653
+ level: 14,
654
+ version: "0.8.0"
655
+ },
656
+ {
657
+ level: 15,
658
+ version: "0.8.1"
635
659
  }
636
660
  ];
637
661
  /** The oldest NekroNXT version that supports `level`; undefined for a level no release supports yet. */
@@ -734,12 +758,42 @@ const EXTENSION_ASSET_LIBRARY_MAX_QUOTA_BYTES = 32 * 1024 * 1024 * 1024;
734
758
  const ExtensionAssetLibraryCapabilitySchema = z.object({ quotaBytes: z.number().int().min(1024 * 1024).max(EXTENSION_ASSET_LIBRARY_MAX_QUOTA_BYTES).optional() }).strict();
735
759
  /**
736
760
  * `write` creates Assets in the current channel; `library` keeps Assets in the extension's own library so they can be
737
- * used in any channel later.
761
+ * used in any channel later; `read` reads the bytes of Assets the current channel can see or the library holds.
738
762
  */
739
763
  const ExtensionAssetsCapabilitySchema = z.object({
740
764
  write: z.literal(true).optional(),
741
- library: ExtensionAssetLibraryCapabilitySchema.optional()
742
- }).strict().refine((value) => value.write !== void 0 || value.library !== void 0, "assets 至少声明 write 或 library。");
765
+ library: ExtensionAssetLibraryCapabilitySchema.optional(),
766
+ read: z.literal(true).optional()
767
+ }).strict().refine((value) => value.write !== void 0 || value.library !== void 0 || value.read !== void 0, "assets 至少声明 write、library 或 read。");
768
+ const EXTENSION_FILES_DEFAULT_TEMP_QUOTA_BYTES = 1024 * 1024 * 1024;
769
+ const EXTENSION_FILES_DEFAULT_CACHE_QUOTA_BYTES = 1024 * 1024 * 1024;
770
+ const EXTENSION_FILES_MAX_QUOTA_BYTES = 16 * 1024 * 1024 * 1024;
771
+ const FilesQuotaSchema = z.number().int().min(1024 * 1024).max(EXTENSION_FILES_MAX_QUOTA_BYTES);
772
+ /**
773
+ * Work files passed between services by `fileId`. Temporary files expire a day after they are written; cache entries
774
+ * stay until the cache quota is full, then the least recently used go first.
775
+ */
776
+ const ExtensionFilesCapabilitySchema = z.object({
777
+ tempQuotaBytes: FilesQuotaSchema.optional(),
778
+ cacheQuotaBytes: FilesQuotaSchema.optional()
779
+ }).strict();
780
+ /** Tool result pictures with `detail: 'high'` reach the model at up to 2048 px on the long side. */
781
+ const ExtensionToolImagesCapabilitySchema = z.object({ highDetail: z.literal(true) }).strict();
782
+ /**
783
+ * Command profiles extensions may run (`nxt.commands`, 附加功能 F7), and the add-on that provides each program. A new
784
+ * program needs a profile on the server and a row here.
785
+ */
786
+ const ExtensionCommandProfileIdSchema = z.enum(["ffmpeg", "ffprobe"], { message: "命令档案只能是 ffmpeg、ffprobe。" });
787
+ const EXTENSION_COMMAND_PROFILES = {
788
+ ffmpeg: "media",
789
+ ffprobe: "media"
790
+ };
791
+ /** Programs run through their command profiles: confined to the call's own files, without network. */
792
+ const ExtensionCommandsCapabilitySchema = z.object({ profiles: z.array(ExtensionCommandProfileIdSchema).min(1).max(ExtensionCommandProfileIdSchema.options.length).refine((value) => new Set(value).size === value.length, "命令档案不能重复。") }).strict();
793
+ const EXTENSION_SPEECH_MAX_CALLS_PER_MINUTE = 60;
794
+ const EXTENSION_SPEECH_DEFAULT_CALLS_PER_MINUTE = 10;
795
+ /** Speech to text with the provider chosen in 设置 → 附加功能, which may be a cloud service. */
796
+ const ExtensionSpeechCapabilitySchema = z.object({ maxCallsPerMinute: z.number().int().min(1).max(60).default(10) }).strict();
743
797
  const IndexNameSchema = z.string().trim().regex(/^[a-z][a-z0-9_]{0,31}$/u, "索引、字段和过滤项名称只能使用小写字母、数字和下划线,以字母开头。");
744
798
  const EXTENSION_INDEX_MAX_TEXT_FIELDS = 4;
745
799
  const EXTENSION_INDEX_MAX_FILTERS = 4;
@@ -838,6 +892,12 @@ const ExtensionCapabilitiesSchema = z.object({
838
892
  network: ExtensionNetworkCapabilitySchema.optional(),
839
893
  storage: ExtensionStorageCapabilitySchema.optional(),
840
894
  assets: ExtensionAssetsCapabilitySchema.optional(),
895
+ files: ExtensionFilesCapabilitySchema.optional(),
896
+ toolImages: ExtensionToolImagesCapabilitySchema.optional(),
897
+ /** `nxt.media`: probe, frames, audio and convert on the media add-on. */
898
+ media: z.literal(true).optional(),
899
+ commands: ExtensionCommandsCapabilitySchema.optional(),
900
+ speech: ExtensionSpeechCapabilitySchema.optional(),
841
901
  index: ExtensionIndexCapabilitySchema.optional(),
842
902
  /** Host layer only; the agent layer uses `llm`, which runs on the agent's own model. */
843
903
  models: ExtensionModelsCapabilitySchema.optional(),
@@ -857,8 +917,18 @@ const ExtensionCapabilitiesSchema = z.object({
857
917
  const HostLayerCapabilitiesSchema = z.object({
858
918
  network: ExtensionNetworkCapabilitySchema.optional(),
859
919
  storage: z.object({ quotaBytes: z.number().int().min(1024).max(EXTENSION_STORAGE_MAX_QUOTA_BYTES).optional() }).strict().optional(),
860
- /** The same library agent attachments use; the host instance lists and imports into it. */
861
- assets: z.object({ library: ExtensionAssetLibraryCapabilitySchema }).strict().optional(),
920
+ /**
921
+ * The same library agent attachments use; the host instance lists and imports into it. `read` reads the bytes of
922
+ * library Assets.
923
+ */
924
+ assets: z.object({
925
+ library: ExtensionAssetLibraryCapabilitySchema.optional(),
926
+ read: z.literal(true).optional()
927
+ }).strict().refine((value) => value.library !== void 0 || value.read !== void 0, "assets 至少声明 library 或 read。").optional(),
928
+ files: ExtensionFilesCapabilitySchema.optional(),
929
+ media: z.literal(true).optional(),
930
+ commands: ExtensionCommandsCapabilitySchema.optional(),
931
+ speech: ExtensionSpeechCapabilitySchema.optional(),
862
932
  /** The same collections agent attachments declare; pages search and maintain them. */
863
933
  index: ExtensionIndexCapabilitySchema.optional(),
864
934
  models: ExtensionModelsCapabilitySchema.optional()
@@ -870,7 +940,14 @@ const hostLayerAsCapabilities = (host) => host === void 0 || Object.keys(host).l
870
940
  scopes: ["shared"],
871
941
  ...host.storage.quotaBytes === void 0 ? {} : { quotaBytes: host.storage.quotaBytes }
872
942
  } },
873
- ...host.assets === void 0 ? {} : { assets: { library: host.assets.library } },
943
+ ...host.assets === void 0 ? {} : { assets: {
944
+ ...host.assets.library === void 0 ? {} : { library: host.assets.library },
945
+ ...host.assets.read === void 0 ? {} : { read: host.assets.read }
946
+ } },
947
+ ...host.files === void 0 ? {} : { files: host.files },
948
+ ...host.media === void 0 ? {} : { media: host.media },
949
+ ...host.commands === void 0 ? {} : { commands: host.commands },
950
+ ...host.speech === void 0 ? {} : { speech: host.speech },
874
951
  ...host.index === void 0 ? {} : { index: host.index },
875
952
  ...host.models === void 0 ? {} : { models: host.models }
876
953
  };
@@ -898,6 +975,12 @@ const extensionCapabilitiesExpand = (previous, next) => {
898
975
  if (next.storage?.scopes.some((scope) => !(previous?.storage?.scopes ?? []).includes(scope))) return true;
899
976
  if (next.assets?.write !== void 0 && previous?.assets?.write === void 0) return true;
900
977
  if (next.assets?.library !== void 0 && previous?.assets?.library === void 0) return true;
978
+ if (next.assets?.read !== void 0 && previous?.assets?.read === void 0) return true;
979
+ if (next.files !== void 0 && previous?.files === void 0) return true;
980
+ if (next.toolImages !== void 0 && previous?.toolImages === void 0) return true;
981
+ if (next.media !== void 0 && previous?.media === void 0) return true;
982
+ if ((next.commands?.profiles ?? []).some((profile) => !(previous?.commands?.profiles ?? []).includes(profile))) return true;
983
+ if (next.speech !== void 0 && (previous?.speech === void 0 || next.speech.maxCallsPerMinute > previous.speech.maxCallsPerMinute)) return true;
901
984
  if (next.models !== void 0 && (previous?.models === void 0 || next.models.maxCallsPerMinute > previous.models.maxCallsPerMinute || next.models.maxOutputTokens > previous.models.maxOutputTokens)) return true;
902
985
  if (next.history !== void 0 && previous?.history === void 0) return true;
903
986
  const platformKey = ({ adapter, action }) => `${adapter}:${action}`;
@@ -918,6 +1001,20 @@ const extensionCapabilitiesExpand = (previous, next) => {
918
1001
  };
919
1002
  const formatLibraryQuota = (bytes) => bytes >= 1024 * 1024 * 1024 ? `${+(bytes / 1024 / 1024 / 1024).toFixed(1)} GB` : `${Math.round(bytes / 1024 / 1024)} MB`;
920
1003
  /**
1004
+ * Add-ons the declared capabilities need (附加功能 F13), in a stable order: `media` needs 媒体处理, `speech` needs
1005
+ * 语音识别, and each command profile needs the add-on that provides its program. Pass both layers, host-layer ones
1006
+ * through {@link hostLayerAsCapabilities}.
1007
+ */
1008
+ const requiredExtensionAddons = (...layers) => {
1009
+ const needed = /* @__PURE__ */ new Set();
1010
+ for (const capabilities of layers) {
1011
+ if (capabilities?.media !== void 0) needed.add("media");
1012
+ if (capabilities?.speech !== void 0) needed.add("speech");
1013
+ for (const profile of capabilities?.commands?.profiles ?? []) needed.add(EXTENSION_COMMAND_PROFILES[profile]);
1014
+ }
1015
+ return ["media", "speech"].filter((id) => needed.has(id));
1016
+ };
1017
+ /**
921
1018
  * User-facing summary of declared capabilities, in a stable order, for approval and inspection pages. `layer: 'host'`
922
1019
  * phrases host-layer capabilities (passed through {@link hostLayerAsCapabilities}) for the host instance.
923
1020
  */
@@ -967,6 +1064,45 @@ const summarizeExtensionCapabilities = (capabilities, options = {}) => {
967
1064
  label: "把频道里的图片收进扩展资源库,之后可以在其他频道使用",
968
1065
  detail: `最多 ${formatLibraryQuota(capabilities.assets.library.quotaBytes ?? 2147483648)}`
969
1066
  });
1067
+ if (capabilities.assets?.read !== void 0) items.push(options.layer === "host" ? {
1068
+ key: "assets.read",
1069
+ risk: "normal",
1070
+ label: "读取扩展资源库里的文件"
1071
+ } : {
1072
+ key: "assets.read",
1073
+ risk: "sensitive",
1074
+ label: "读取当前频道里的图片和文件"
1075
+ });
1076
+ if (capabilities.files !== void 0) items.push({
1077
+ key: "files",
1078
+ risk: "normal",
1079
+ label: "在本机存放临时文件和缓存",
1080
+ detail: `临时文件最多 ${formatLibraryQuota(capabilities.files.tempQuotaBytes ?? 1073741824)},缓存最多 ${formatLibraryQuota(capabilities.files.cacheQuotaBytes ?? 1073741824)}`
1081
+ });
1082
+ if (capabilities.toolImages !== void 0) items.push({
1083
+ key: "toolImages",
1084
+ risk: "normal",
1085
+ label: "以高细节向智能体展示图片",
1086
+ detail: "计入智能体用量"
1087
+ });
1088
+ if (capabilities.media !== void 0) items.push({
1089
+ key: "media",
1090
+ risk: "normal",
1091
+ label: "处理音频、视频和图片"
1092
+ });
1093
+ if (capabilities.commands !== void 0) items.push({
1094
+ key: "commands",
1095
+ risk: "high",
1096
+ label: "在本机运行程序",
1097
+ detail: capabilities.commands.profiles.join("、"),
1098
+ scope: "只能读写交给它的文件,不能联网"
1099
+ });
1100
+ if (capabilities.speech !== void 0) items.push({
1101
+ key: "speech",
1102
+ risk: "sensitive",
1103
+ label: "把音频转成文字",
1104
+ detail: `音频可能发给「设置 → 附加功能」里选择的语音识别服务,每分钟最多 ${capabilities.speech.maxCallsPerMinute} 次`
1105
+ });
970
1106
  if (capabilities.index !== void 0) items.push({
971
1107
  key: "index",
972
1108
  risk: "normal",
@@ -1459,8 +1595,20 @@ const EXTENSION_DATA_HOOK_PERMISSIONS = {
1459
1595
  * too old for what it uses.
1460
1596
  */
1461
1597
  const requiredExtensionSdkLevel = (permissions) => {
1598
+ const level14 = [
1599
+ permissions?.host?.files === void 0 && permissions?.agent?.files === void 0 ? void 0 : "工作文件",
1600
+ permissions?.host?.assets?.read === void 0 && permissions?.agent?.assets?.read === void 0 ? void 0 : "读取频道文件",
1601
+ permissions?.agent?.toolImages === void 0 ? void 0 : "高细节图片",
1602
+ permissions?.host?.media === void 0 && permissions?.agent?.media === void 0 ? void 0 : "媒体处理",
1603
+ permissions?.host?.commands === void 0 && permissions?.agent?.commands === void 0 ? void 0 : "运行程序",
1604
+ permissions?.host?.speech === void 0 && permissions?.agent?.speech === void 0 ? void 0 : "语音识别"
1605
+ ].filter((name) => name !== void 0);
1606
+ if (level14.length > 0) return {
1607
+ level: 14,
1608
+ capabilities: level14
1609
+ };
1462
1610
  const level8 = [
1463
- permissions?.host?.assets === void 0 ? void 0 : "扩展资源库",
1611
+ permissions?.host?.assets?.library === void 0 ? void 0 : "扩展资源库",
1464
1612
  permissions?.agent?.assets?.library === void 0 ? void 0 : "扩展资源库",
1465
1613
  permissions?.host?.index === void 0 && permissions?.agent?.index === void 0 ? void 0 : "检索索引",
1466
1614
  permissions?.host?.models === void 0 ? void 0 : "本机层模型调用"
@@ -3438,7 +3586,7 @@ const ImageUnderstandingPolicyApiSchema = z.object({
3438
3586
  ]),
3439
3587
  restoreAfterCompaction: z.object({
3440
3588
  recentMessages: z.number().int().min(1).max(100),
3441
- maxImages: z.number().int().min(1).max(50)
3589
+ maxImages: z.number().int().min(0).max(50)
3442
3590
  }).strict()
3443
3591
  }).strict(),
3444
3592
  textModel: z.discriminatedUnion("mode", [z.object({ mode: z.literal("disabled") }).strict(), z.object({
@@ -3477,6 +3625,8 @@ const AgentCapabilitiesSchema = z.object({
3477
3625
  /** Network for commands; absent in older clients means on. */
3478
3626
  commandNetwork: z.boolean().default(true),
3479
3627
  communityFeedbackAuto: z.boolean().default(false),
3628
+ /** Voice messages reach the agent with a transcript (附加功能 F10). */
3629
+ voiceTranscription: z.boolean().default(false),
3480
3630
  /** Linked accounts this agent's commands act as, one per platform; absent in older clients means none. */
3481
3631
  commandAccounts: z.array(CommandAccountGrantSchema).max(8).default([]),
3482
3632
  /**
@@ -3588,6 +3738,8 @@ const ModelFallbackReasonSchema = z.enum([
3588
3738
  "unavailable"
3589
3739
  ]);
3590
3740
  /** How long a model that failed is passed over before conversations try it again. */
3741
+ /** 设置 → 存储 → 扩展下载上限: the most one extension download (`files.fromUrl`) may write. */
3742
+ const ExtensionDownloadSettingsSchema = z.object({ maxBytes: z.number().int().min(EXTENSION_DOWNLOAD_MIN_BYTES).max(EXTENSION_DOWNLOAD_MAX_BYTES) }).strict();
3591
3743
  const ModelFallbackSettingsSchema = z.object({
3592
3744
  /** After rate limits, server errors, timeouts or empty replies that outlasted the usual retries. */
3593
3745
  unavailableCooldownMinutes: z.number().int().min(1).max(240),
@@ -3659,6 +3811,7 @@ const UpdateAgentCapabilitiesRequestSchema = AgentCapabilitiesSchema.partial().e
3659
3811
  codeRun: z.boolean().optional(),
3660
3812
  commandNetwork: z.boolean().optional(),
3661
3813
  communityFeedbackAuto: z.boolean().optional(),
3814
+ voiceTranscription: z.boolean().optional(),
3662
3815
  commandAccounts: z.array(CommandAccountGrantSchema).max(8).optional(),
3663
3816
  extensionAutonomy: z.enum([
3664
3817
  "manual",
@@ -3780,6 +3933,11 @@ const HostSnapshotMessageSchema = z.object({
3780
3933
  ]),
3781
3934
  hidden: z.boolean(),
3782
3935
  annotation: z.string().optional(),
3936
+ /** What NekroNXT itself added for the agent, such as the transcript of a voice message. */
3937
+ hostAnnotations: z.array(z.object({
3938
+ label: z.string(),
3939
+ text: z.string()
3940
+ }).strict()).optional(),
3783
3941
  extensions: z.array(z.string()),
3784
3942
  problems: z.array(z.string()).optional()
3785
3943
  }).strict().optional(),
@@ -3888,6 +4046,11 @@ const ChannelRuntimeUsageSchema = z.object({
3888
4046
  cacheWriteTokens: z.number().int().nonnegative().optional(),
3889
4047
  reasoningTokens: z.number().int().nonnegative().optional()
3890
4048
  }).strict();
4049
+ /** The latest progress a running extension tool reported. */
4050
+ const ChannelRuntimeToolProgressSchema = z.object({
4051
+ text: z.string().min(1).max(200),
4052
+ fraction: z.number().min(0).max(1).optional()
4053
+ }).strict();
3891
4054
  const channelRuntimeToolFields = {
3892
4055
  callId: NonEmptyStringSchema,
3893
4056
  name: NonEmptyStringSchema,
@@ -3908,7 +4071,9 @@ const channelRuntimeToolFields = {
3908
4071
  "unknown",
3909
4072
  "cancelled"
3910
4073
  ]).optional(),
3911
- durationMs: z.number().int().nonnegative().optional()
4074
+ durationMs: z.number().int().nonnegative().optional(),
4075
+ /** Set while the tool runs and has reported progress. */
4076
+ progress: ChannelRuntimeToolProgressSchema.optional()
3912
4077
  };
3913
4078
  const ChannelRuntimeToolSchema = z.object({
3914
4079
  ...channelRuntimeToolFields,
@@ -4179,6 +4344,19 @@ const ChannelContextPolicyViewSchema = z.object({
4179
4344
  /** False while the channel follows the defaults. */
4180
4345
  custom: z.boolean()
4181
4346
  }).strict();
4347
+ /** One desktop installer of a release; `urls` lists the sources to try in order. */
4348
+ const ProductDownloadSchema = z.object({
4349
+ platform: z.enum([
4350
+ "mac",
4351
+ "win",
4352
+ "linux"
4353
+ ]),
4354
+ arch: z.enum(["arm64", "x64"]),
4355
+ name: z.string().min(1),
4356
+ size: z.number().int().positive(),
4357
+ sha256: z.string().regex(/^[a-f0-9]{64}$/u),
4358
+ urls: z.array(z.string().url()).min(1)
4359
+ }).strict();
4182
4360
  /** Whether a newer release exists on the build's own channel; development builds are never compared. */
4183
4361
  const ProductUpdateStatusSchema = z.object({
4184
4362
  channel: z.enum([
@@ -4200,7 +4378,9 @@ const ProductUpdateStatusSchema = z.object({
4200
4378
  version: z.string(),
4201
4379
  commit: z.string().optional(),
4202
4380
  url: z.string().url(),
4203
- publishedAt: z.number().int().nonnegative().optional()
4381
+ publishedAt: z.number().int().nonnegative().optional(),
4382
+ /** Desktop installers of this release; the desktop app downloads its own and checks size and digest. */
4383
+ downloads: z.array(ProductDownloadSchema).optional()
4204
4384
  }).strict().optional(),
4205
4385
  checkedAt: z.number().int().nonnegative().optional(),
4206
4386
  error: z.string().optional(),
@@ -4258,28 +4438,9 @@ const DEFAULT_SUB_CONVERSATION_RETENTION = "7d";
4258
4438
  const SubConversationSettingsSchema = z.object({ retention: SubConversationRetentionSchema }).strict();
4259
4439
  /** `keyword`: SQLite keyword search only; `builtin`: keywords fused with the built-in semantic model. */
4260
4440
  const RetrievalModeSchema = z.enum(["keyword", "builtin"]);
4261
- /** Search used by extension indexes (表情包与扩展素材能力 §6.4). */
4441
+ /** Search used by extension indexes (表情包与扩展素材能力 §6.4); the model itself is the `retrieval` add-on. */
4262
4442
  const RetrievalStatusSchema = z.object({
4263
4443
  mode: RetrievalModeSchema,
4264
- builtin: z.object({
4265
- model: z.string(),
4266
- /** False where no inference runtime is published for this system and processor. */
4267
- supported: z.boolean(),
4268
- downloadBytes: z.number().int().nonnegative(),
4269
- install: z.discriminatedUnion("state", [
4270
- z.object({ state: z.literal("not-installed") }).strict(),
4271
- z.object({
4272
- state: z.literal("downloading"),
4273
- receivedBytes: z.number().int().nonnegative(),
4274
- totalBytes: z.number().int().nonnegative()
4275
- }).strict(),
4276
- z.object({ state: z.literal("installed") }).strict(),
4277
- z.object({
4278
- state: z.literal("failed"),
4279
- error: z.string()
4280
- }).strict()
4281
- ])
4282
- }).strict(),
4283
4444
  vectors: z.object({
4284
4445
  documents: z.number().int().nonnegative(),
4285
4446
  embedded: z.number().int().nonnegative(),
@@ -4467,6 +4628,14 @@ const AttentionItemSchema = z.object({
4467
4628
  ]),
4468
4629
  label: z.string().min(1).max(40)
4469
4630
  }).strict(),
4631
+ /**
4632
+ * The shared cause several items come from: a connection (its outage and the deliveries it failed) or an agent
4633
+ * (its failed turns and unusable models). Dismissing by cause keeps it quiet until the cause recovers.
4634
+ */
4635
+ cause: z.object({
4636
+ key: z.string().min(1).max(200),
4637
+ label: z.string().min(1).max(120)
4638
+ }).strict().optional(),
4470
4639
  occurredAt: z.number().int().safe().nonnegative()
4471
4640
  }).strict();
4472
4641
  const AttentionListSchema = z.object({
@@ -4570,37 +4739,124 @@ const ScheduledTaskSchema = z.object({
4570
4739
  lastFiredAt: z.number().int().safe().optional(),
4571
4740
  createdAt: z.number().int().safe()
4572
4741
  }).strict();
4573
- /** The Node that runs `run_code` programs, and the download the desktop app offers when there is none. */
4574
- const CodeRunAvailabilitySchema = z.object({
4575
- available: z.boolean(),
4742
+ /** Programs and models NekroNXT installs on request (附加功能); `<data root>/runtimes`, left out of backups. */
4743
+ const AddonIdSchema = z.enum([
4744
+ "media",
4745
+ "speech",
4746
+ "retrieval",
4747
+ "node",
4748
+ "github-cli",
4749
+ "browser"
4750
+ ]);
4751
+ /** `extension`: used by extensions; `agent`: used by agents' commands; `host`: used by NekroNXT itself. */
4752
+ const AddonGroupSchema = z.enum([
4753
+ "extension",
4754
+ "agent",
4755
+ "host"
4756
+ ]);
4757
+ /**
4758
+ * `installed`: downloaded and ready; `available`: usable without installing (bundled, found on this device, cloud);
4759
+ * `needs-config`: usable once configured (cloud).
4760
+ */
4761
+ const AddonStateSchema = z.enum([
4762
+ "not-installed",
4763
+ "installing",
4764
+ "installed",
4765
+ "failed",
4766
+ "unsupported",
4767
+ "available",
4768
+ "needs-config"
4769
+ ]);
4770
+ const AddonProgressSchema = z.object({
4771
+ receivedBytes: z.number().int().nonnegative(),
4772
+ totalBytes: z.number().int().nonnegative().optional()
4773
+ }).strict();
4774
+ /** One way an add-on can be provided, such as a program found on this device or one NekroNXT downloads. */
4775
+ const AddonProviderStatusSchema = z.object({
4776
+ id: NonEmptyStringSchema,
4777
+ title: NonEmptyStringSchema,
4778
+ summary: z.string(),
4779
+ state: AddonStateSchema,
4780
+ /** `bundled`: installed with NekroNXT; `system`: found on this device; `downloaded`: fetched by NekroNXT. */
4576
4781
  source: z.enum([
4577
- "host",
4782
+ "bundled",
4578
4783
  "system",
4579
- "downloaded"
4784
+ "downloaded",
4785
+ "cloud"
4580
4786
  ]).optional(),
4787
+ /** The installed version, or the one an install fetches. */
4581
4788
  version: z.string().optional(),
4582
- download: z.object({
4583
- version: z.string(),
4584
- state: z.enum([
4585
- "idle",
4586
- "downloading",
4587
- "failed"
4588
- ]),
4589
- receivedBytes: z.number().int().nonnegative().optional(),
4590
- totalBytes: z.number().int().nonnegative().optional(),
4591
- error: z.string().optional()
4592
- }).strict().optional()
4789
+ resources: z.object({
4790
+ /** Approximate for this system and processor. */
4791
+ downloadBytes: z.number().int().nonnegative().optional(),
4792
+ /** Measured from its own folder after install. */
4793
+ installedBytes: z.number().int().nonnegative().optional(),
4794
+ memoryBytes: z.number().int().nonnegative().optional(),
4795
+ /** Short differences worth comparing, such as languages or speed. */
4796
+ notes: z.array(z.string()).default([])
4797
+ }).strict(),
4798
+ /** One entry per component that carries its own license. */
4799
+ licenses: z.array(z.object({
4800
+ component: z.string().optional(),
4801
+ name: NonEmptyStringSchema,
4802
+ url: z.url()
4803
+ }).strict()).default([]),
4804
+ /** Where downloads come from, for display. */
4805
+ sources: z.array(z.string()).default([]),
4806
+ progress: AddonProgressSchema.optional(),
4807
+ error: z.string().optional(),
4808
+ /** Other add-ons it needs to work. */
4809
+ dependsOn: z.array(AddonIdSchema).default([]),
4810
+ installable: z.boolean(),
4811
+ removable: z.boolean()
4812
+ }).strict();
4813
+ /** One add-on (a capability) as 设置 → 附加功能 shows it; the registry on the server is its only source. */
4814
+ const AddonStatusSchema = z.object({
4815
+ id: AddonIdSchema,
4816
+ group: AddonGroupSchema,
4817
+ title: NonEmptyStringSchema,
4818
+ summary: z.string(),
4819
+ /** Who relies on it, as labels people recognise. */
4820
+ usedBy: z.array(z.string()),
4821
+ /** The selected provider's state, or, while none can be used, the one closest to usable. */
4822
+ state: AddonStateSchema,
4823
+ progress: AddonProgressSchema.optional(),
4824
+ /** The provider in use; absent while none can be used. */
4825
+ selected: NonEmptyStringSchema.optional(),
4826
+ /** In declared order; providers that do not exist on this device are left out. */
4827
+ providers: z.array(AddonProviderStatusSchema)
4828
+ }).strict();
4829
+ /** Languages speech recognition can be asked for; `auto` lets the provider tell. */
4830
+ const SpeechLanguageSchema = z.enum([
4831
+ "auto",
4832
+ "zh",
4833
+ "en",
4834
+ "ja",
4835
+ "ko",
4836
+ "yue"
4837
+ ]);
4838
+ /** The cloud provider of the `speech` add-on: a provider from 设置 → 模型 and the transcription model it serves. */
4839
+ const SpeechCloudSettingsSchema = z.object({
4840
+ provider: NonEmptyStringSchema,
4841
+ model: z.string().trim().min(1).max(200),
4842
+ /** Used when a caller does not name a language. */
4843
+ language: SpeechLanguageSchema.optional()
4844
+ }).strict();
4845
+ const SpeechSettingsSchema = z.object({
4846
+ cloud: SpeechCloudSettingsSchema.nullable(),
4847
+ /** Configured providers with an OpenAI-compatible address, the ones cloud transcription can use. */
4848
+ providers: z.array(z.object({
4849
+ provider: NonEmptyStringSchema,
4850
+ displayName: z.string()
4851
+ }).strict())
4593
4852
  }).strict();
4594
- /** The GitHub CLI commands call: found on this machine, or downloaded by NekroNXT where it can. */
4595
- const GithubCliAvailabilitySchema = CodeRunAvailabilitySchema;
4596
- /** The optional headless Chromium that loads and checks creation candidates when no page is open. */
4597
- const VerificationBrowserAvailabilitySchema = CodeRunAvailabilitySchema;
4853
+ /** Whether a capability that needs an add-on can run now; details live in `addons`. */
4854
+ const AddonAvailabilitySchema = z.object({ available: z.boolean() }).strict();
4598
4855
  /** A platform's own program that linked accounts work through, such as the GitHub CLI. */
4599
4856
  const LinkedAccountPlatformToolSchema = z.object({
4600
- /** The runtime download routes it is managed by (`downloadGithubCli`, `removeGithubCli`). */
4857
+ /** The add-on it is installed as (`AddonStatus.id`). */
4601
4858
  id: z.enum(["github-cli"]),
4602
- name: z.string(),
4603
- availability: GithubCliAvailabilitySchema
4859
+ name: z.string()
4604
4860
  }).strict();
4605
4861
  /** 设置 → 关联账号: every platform the host supports, with its accounts and tools. */
4606
4862
  const LinkedAccountsViewSchema = z.object({
@@ -4635,7 +4891,9 @@ const ExtensionRequestSchema = z.object({
4635
4891
  "rejected",
4636
4892
  "expired",
4637
4893
  "completed",
4638
- "failed"
4894
+ "failed",
4895
+ "superseded",
4896
+ "withdrawn"
4639
4897
  ]),
4640
4898
  autonomous: z.boolean(),
4641
4899
  resultMessage: z.string().nullable(),
@@ -4676,12 +4934,14 @@ const HostSnapshotSchema = z.object({
4676
4934
  }).strict()),
4677
4935
  capabilityAvailability: z.object({
4678
4936
  subagents: z.object({ available: z.boolean() }).strict(),
4679
- /** Optional in older hosts, which never offer `run_code`. */
4680
- codeRun: CodeRunAvailabilitySchema.optional(),
4681
- /** Optional in older hosts, which never offer command accounts. */
4682
- githubCli: GithubCliAvailabilitySchema.optional(),
4683
- /** Optional in older hosts, which check candidates only in an open page. */
4684
- verificationBrowser: VerificationBrowserAvailabilitySchema.optional(),
4937
+ /** The `node` add-on that `run_code` needs. */
4938
+ codeRun: AddonAvailabilitySchema.optional(),
4939
+ /** The `github-cli` add-on that commands use with a GitHub account. */
4940
+ githubCli: AddonAvailabilitySchema.optional(),
4941
+ /** The `browser` add-on that checks candidates when no page is open. */
4942
+ verificationBrowser: AddonAvailabilitySchema.optional(),
4943
+ /** The `speech` add-on that voice message transcription needs. */
4944
+ speechRecognition: AddonAvailabilitySchema.optional(),
4685
4945
  /** What this host can confine for commands beyond file writes; optional in older hosts. */
4686
4946
  commandConfinement: z.object({
4687
4947
  readScope: z.boolean(),
@@ -5076,6 +5336,7 @@ const HostSnapshotSchema = z.object({
5076
5336
  authoringTasks: z.array(AuthoringTaskSummarySchema).default([]),
5077
5337
  /** Open sub-conversations, and the most recently ended ones of each channel. */
5078
5338
  subConversations: z.array(SubConversationSchema).default([]),
5339
+ addons: z.array(AddonStatusSchema).default([]),
5079
5340
  scheduledTasks: z.array(ScheduledTaskSchema).default([]),
5080
5341
  /** Extension requests waiting for an administrator. */
5081
5342
  extensionRequests: z.array(ExtensionRequestSchema).default([])
@@ -5204,6 +5465,8 @@ const DshPluginCatalogEntrySchema = z.object({
5204
5465
  ]).optional(),
5205
5466
  /** Published by the DSH maintainers on npm for the DSH release this build runs. */
5206
5467
  official: z.boolean().optional(),
5468
+ /** Third-party installed plugins: whether an administrator allowed them to submit images to the model. */
5469
+ imageSubmission: z.boolean().optional(),
5207
5470
  installedAt: z.number().int().safe().nonnegative().optional(),
5208
5471
  clientUiDetected: z.boolean().optional(),
5209
5472
  hostUi: DshNxtHostUiSchema.optional(),
@@ -5593,6 +5856,20 @@ const agentExtensionParam = z.object({
5593
5856
  extensionId: ExtensionIdSchema
5594
5857
  }).strict();
5595
5858
  const PermissionApprovalSchema = z.object({ permissionDigest: z.string().regex(/^[a-f0-9]{64}$/u) }).strict();
5859
+ /**
5860
+ * What keeps a version from being cleaned up: in use, enabled for an agent, released to a community, kept by hand,
5861
+ * the start of a branch, the base of an open revision, needed by 回到上一个版本, or named by a pending request.
5862
+ */
5863
+ const ExtensionRevisionProtectionSchema = z.enum([
5864
+ "installed",
5865
+ "active",
5866
+ "released",
5867
+ "kept",
5868
+ "branch",
5869
+ "revising",
5870
+ "undo",
5871
+ "request"
5872
+ ]);
5596
5873
  /** One version of one line in the lineage view of an extension family. */
5597
5874
  const ExtensionLineageNodeSchema = z.object({
5598
5875
  revisionId: ExtensionRevisionIdSchema,
@@ -5607,7 +5884,11 @@ const ExtensionLineageNodeSchema = z.object({
5607
5884
  ]),
5608
5885
  createdAt: z.number().int().nonnegative(),
5609
5886
  current: z.boolean(),
5610
- releaseNumbers: z.array(z.number().int().positive())
5887
+ releaseNumbers: z.array(z.number().int().positive()),
5888
+ /** Marked by an administrator to keep. */
5889
+ kept: z.boolean(),
5890
+ /** Why the version cannot be cleaned up; absent when it can. */
5891
+ protectedBy: ExtensionRevisionProtectionSchema.optional()
5611
5892
  }).strict();
5612
5893
  /** Every line of the family an extension belongs to: the original and every branch of a branch on this machine. */
5613
5894
  const ExtensionLineageSchema = z.object({ lines: z.array(z.object({
@@ -6589,6 +6870,22 @@ const HostApiContracts = {
6589
6870
  response: CompactionSettingsSchema,
6590
6871
  error: HostApiErrorSchema
6591
6872
  }),
6873
+ getExtensionDownloadSettings: defineContract({
6874
+ method: "GET",
6875
+ path: "/api/settings/extension-downloads",
6876
+ params: EmptyParamsSchema,
6877
+ request: NoRequestBodySchema,
6878
+ response: ExtensionDownloadSettingsSchema,
6879
+ error: HostApiErrorSchema
6880
+ }),
6881
+ updateExtensionDownloadSettings: defineContract({
6882
+ method: "PUT",
6883
+ path: "/api/settings/extension-downloads",
6884
+ params: EmptyParamsSchema,
6885
+ request: ExtensionDownloadSettingsSchema,
6886
+ response: ExtensionDownloadSettingsSchema,
6887
+ error: HostApiErrorSchema
6888
+ }),
6592
6889
  getModelFallbackSettings: defineContract({
6593
6890
  method: "GET",
6594
6891
  path: "/api/settings/model-fallback",
@@ -6640,74 +6937,61 @@ const HostApiContracts = {
6640
6937
  response: RetrievalStatusSchema,
6641
6938
  error: HostApiErrorSchema
6642
6939
  }),
6643
- downloadRetrievalModel: defineContract({
6644
- method: "POST",
6645
- path: "/api/settings/retrieval/model/download",
6646
- params: EmptyParamsSchema,
6647
- request: NoRequestBodySchema,
6648
- response: RetrievalStatusSchema,
6649
- error: HostApiErrorSchema
6650
- }),
6651
- removeRetrievalModel: defineContract({
6652
- method: "DELETE",
6653
- path: "/api/settings/retrieval/model",
6940
+ getSpeechSettings: defineContract({
6941
+ method: "GET",
6942
+ path: "/api/settings/speech",
6654
6943
  params: EmptyParamsSchema,
6655
6944
  request: NoRequestBodySchema,
6656
- response: RetrievalStatusSchema,
6945
+ response: SpeechSettingsSchema,
6657
6946
  error: HostApiErrorSchema
6658
6947
  }),
6659
- downloadCodeRunNode: defineContract({
6660
- invalidatesSnapshot: true,
6661
- method: "POST",
6662
- path: "/api/runtimes/code-run-node/download",
6948
+ updateSpeechSettings: defineContract({
6949
+ method: "PUT",
6950
+ path: "/api/settings/speech",
6663
6951
  params: EmptyParamsSchema,
6664
- request: NoRequestBodySchema,
6665
- response: CodeRunAvailabilitySchema,
6952
+ request: z.object({ cloud: SpeechCloudSettingsSchema.nullable() }).strict(),
6953
+ response: SpeechSettingsSchema,
6666
6954
  error: HostApiErrorSchema
6667
6955
  }),
6668
- removeCodeRunNode: defineContract({
6669
- invalidatesSnapshot: true,
6670
- method: "DELETE",
6671
- path: "/api/runtimes/code-run-node",
6956
+ listAddons: defineContract({
6957
+ method: "GET",
6958
+ path: "/api/addons",
6672
6959
  params: EmptyParamsSchema,
6673
6960
  request: NoRequestBodySchema,
6674
- response: CodeRunAvailabilitySchema,
6961
+ response: z.object({ addons: z.array(AddonStatusSchema) }).strict(),
6675
6962
  error: HostApiErrorSchema
6676
6963
  }),
6677
- downloadGithubCli: defineContract({
6964
+ installAddonProvider: defineContract({
6678
6965
  invalidatesSnapshot: true,
6679
6966
  method: "POST",
6680
- path: "/api/runtimes/github-cli/download",
6681
- params: EmptyParamsSchema,
6967
+ path: "/api/addons/:id/providers/:provider/install",
6968
+ params: z.object({
6969
+ id: AddonIdSchema,
6970
+ provider: NonEmptyStringSchema
6971
+ }).strict(),
6682
6972
  request: NoRequestBodySchema,
6683
- response: GithubCliAvailabilitySchema,
6973
+ response: AddonStatusSchema,
6684
6974
  error: HostApiErrorSchema
6685
6975
  }),
6686
- removeGithubCli: defineContract({
6976
+ removeAddonProvider: defineContract({
6687
6977
  invalidatesSnapshot: true,
6688
6978
  method: "DELETE",
6689
- path: "/api/runtimes/github-cli",
6690
- params: EmptyParamsSchema,
6691
- request: NoRequestBodySchema,
6692
- response: GithubCliAvailabilitySchema,
6693
- error: HostApiErrorSchema
6694
- }),
6695
- downloadVerificationBrowser: defineContract({
6696
- invalidatesSnapshot: true,
6697
- method: "POST",
6698
- path: "/api/runtimes/verification-browser/download",
6699
- params: EmptyParamsSchema,
6979
+ path: "/api/addons/:id/providers/:provider",
6980
+ params: z.object({
6981
+ id: AddonIdSchema,
6982
+ provider: NonEmptyStringSchema
6983
+ }).strict(),
6700
6984
  request: NoRequestBodySchema,
6701
- response: VerificationBrowserAvailabilitySchema,
6985
+ response: AddonStatusSchema,
6702
6986
  error: HostApiErrorSchema
6703
6987
  }),
6704
- removeVerificationBrowser: defineContract({
6988
+ selectAddonProvider: defineContract({
6705
6989
  invalidatesSnapshot: true,
6706
- method: "DELETE",
6707
- path: "/api/runtimes/verification-browser",
6708
- params: EmptyParamsSchema,
6709
- request: NoRequestBodySchema,
6710
- response: VerificationBrowserAvailabilitySchema,
6990
+ method: "PUT",
6991
+ path: "/api/addons/:id/selection",
6992
+ params: z.object({ id: AddonIdSchema }).strict(),
6993
+ request: z.object({ provider: NonEmptyStringSchema }).strict(),
6994
+ response: AddonStatusSchema,
6711
6995
  error: HostApiErrorSchema
6712
6996
  }),
6713
6997
  getLinkedAccounts: defineContract({
@@ -7118,6 +7402,14 @@ const HostApiContracts = {
7118
7402
  response: z.object({ disabled: z.literal(true) }).strict(),
7119
7403
  error: HostApiErrorSchema
7120
7404
  }),
7405
+ setDshPluginImageSubmission: defineContract({
7406
+ method: "PUT",
7407
+ path: "/api/dsh/plugin-installs/:packageId/image-submission",
7408
+ params: dshPluginPackageParam,
7409
+ request: z.object({ allowed: z.boolean() }).strict(),
7410
+ response: z.object({ allowed: z.boolean() }).strict(),
7411
+ error: HostApiErrorSchema
7412
+ }),
7121
7413
  removeDshPluginPackage: defineContract({
7122
7414
  invalidatesSnapshot: true,
7123
7415
  method: "DELETE",
@@ -8290,6 +8582,21 @@ upTo: z.object({
8290
8582
  }).strict(),
8291
8583
  error: HostApiErrorSchema
8292
8584
  }),
8585
+ dismissAttentionBatch: defineContract({
8586
+ method: "POST",
8587
+ path: "/api/attention/dismiss",
8588
+ params: EmptyParamsSchema,
8589
+ request: z.object({
8590
+ ids: z.array(z.string().min(1).max(200)).max(200),
8591
+ /** Causes to keep quiet until they recover; new items of these causes are not shown meanwhile. */
8592
+ causes: z.array(z.string().min(1).max(200)).max(200)
8593
+ }).strict(),
8594
+ response: z.object({
8595
+ dismissed: z.literal(true),
8596
+ revision: z.string().min(1)
8597
+ }).strict(),
8598
+ error: HostApiErrorSchema
8599
+ }),
8293
8600
  getChannelPending: defineContract({
8294
8601
  method: "GET",
8295
8602
  path: "/api/channels/:channelId/pending",
@@ -8415,6 +8722,26 @@ upTo: z.object({
8415
8722
  response: ExtensionLineageSchema,
8416
8723
  error: HostApiErrorSchema
8417
8724
  }),
8725
+ setExtensionRevisionKept: defineContract({
8726
+ method: "POST",
8727
+ path: "/api/extensions/:extensionId/revisions/:revisionId/keep",
8728
+ params: z.object({
8729
+ extensionId: ExtensionIdSchema,
8730
+ revisionId: ExtensionRevisionIdSchema
8731
+ }).strict(),
8732
+ request: z.object({ kept: z.boolean() }).strict(),
8733
+ response: z.object({ kept: z.boolean() }).strict(),
8734
+ error: HostApiErrorSchema
8735
+ }),
8736
+ deleteExtensionRevisions: defineContract({
8737
+ invalidatesSnapshot: true,
8738
+ method: "POST",
8739
+ path: "/api/extensions/:extensionId/revisions/delete",
8740
+ params: extensionParam,
8741
+ request: z.object({ revisionIds: z.array(ExtensionRevisionIdSchema).min(1).max(200) }).strict(),
8742
+ response: z.object({ deleted: z.number().int().nonnegative() }).strict(),
8743
+ error: HostApiErrorSchema
8744
+ }),
8418
8745
  branchExtension: defineContract({
8419
8746
  invalidatesSnapshot: true,
8420
8747
  timeoutMs: 3e5,
@@ -8631,6 +8958,6 @@ function buildHostApiPath(name, input) {
8631
8958
  return buildValidatedHostApiPath(HostApiContracts[name], input);
8632
8959
  }
8633
8960
  //#endregion
8634
- export { ACTIVITY_MAX_BUCKETS, ACTIVITY_MAX_WINDOW_MS, ACTIVITY_MIN_BUCKET_MS, ActivityQuerySchema, AdapterActivityKeySchema, AddLinkedAccountRequestSchema, AdministratorSchema, AdmissionIdSchema, AgentAliasesSchema, AgentAppearanceSchema, AgentCompactionModelChoiceSchema, AgentCompactionPolicySchema, AgentFallbackModelsSchema, AgentIdSchema, AgentRevisionChangedFieldSchema, AgentRevisionHistorySchema, AgentRevisionIdSchema, AgentSubConversationModelsSchema, AssetIdSchema, AttentionItemSchema, AttentionListSchema, AuthoringAttemptIdSchema, AuthoringTaskIdSchema, BoundCredentialsSchema, CHANNEL_COMPOSER_MAX_ATTACHMENTS, CHANNEL_COMPOSER_MAX_BYTES, CHANNEL_UNREAD_COUNT_CAP, COMMAND_DEFAULT_TIMEOUT_SECONDS, COMMAND_MAX_PROGRESS_REPLIES, COMMAND_MAX_TIMEOUT_SECONDS, COMMUNITY_EXTENSION_SORTS, COMMUNITY_FEEDBACK_STATUSES, COMMUNITY_FEEDBACK_STATUS_LABELS, COMMUNITY_LISTING_LIMITS, COMMUNITY_OFFICIAL_HANDLE, COMMUNITY_PERSONA_AVATAR_MAX_BYTES, COMMUNITY_PERSONA_AVATAR_TYPES, COMMUNITY_PERSONA_MAX_LENGTH, COMMUNITY_RATING_BADGES, COMMUNITY_RATING_BADGE_LIMIT, COMMUNITY_RATING_DIMENSIONS, COMMUNITY_RATING_DIMENSION_LABELS, COMMUNITY_REVIEWER_NAME, COMMUNITY_REVIEW_DIMENSION_LABELS, COMMUNITY_REVIEW_STATUSES, CONFIG_SCHEMA_MAX_BYTES, CREDENTIAL_DESCRIPTION_MAX_CHARS, CREDENTIAL_NAME_MAX_CHARS, CREDENTIAL_REDACTABLE_MIN_CHARS, CREDENTIAL_VALUE_MAX_CHARS, ChannelActivitySeriesSchema, ChannelActivitySummarySchema, ChannelContextPolicySchema, ChannelContextPolicyViewSchema, ChannelEventIdSchema, ChannelFactSseDataSchema, ChannelFactSseItemSchema, ChannelIdSchema, ChannelListViewSchema, ChannelMemberIdSchema, ChannelMemberNotesViewSchema, ChannelMemoryActivitySchema, ChannelPendingContextSchema, ChannelPromptViewSchema, ChannelRuntimeCacheSampleSchema, ChannelRuntimeCacheSchema, ChannelRuntimeContextSchema, ChannelRuntimeInputSchema, ChannelRuntimeOccupancySchema, ChannelRuntimePerformanceSampleSchema, ChannelRuntimePerformanceSchema, ChannelRuntimePhaseSchema, ChannelRuntimeProjectionSchema, ChannelRuntimeSseDataSchema, ChannelRuntimeStepSchema, ChannelRuntimeToolSchema, ChannelRuntimeTurnSchema, ChannelRuntimeUsageSchema, ClientNotificationFeedResponseSchema, ClientNotificationSchema, CodeRunAvailabilitySchema, CommandAccountUsageSchema, CommandCatalogEntrySchema, CommandDefinitionSchema, CommandExecutionIdentitySchema, CommandExecutionRecordSchema, CommandParameterSchema, CommandPermissionSchema, CommandPolicySchema, CommandReplySchema, CommandResultSchema, CommunityAccountSchema, CommunityEndpointSchema, CommunityEnvironmentSchema, CommunityExtensionDetailSchema, CommunityExtensionSortSchema, CommunityExtensionSummarySchema, CommunityFeedbackAffectedSchema, CommunityFeedbackChangesSchema, CommunityFeedbackConfirmSchema, CommunityFeedbackCreateSchema, CommunityFeedbackDiagnosticEntrySchema, CommunityFeedbackDiagnosticsSchema, CommunityFeedbackDigestSchema, CommunityFeedbackDraftIdSchema, CommunityFeedbackDraftInputSchema, CommunityFeedbackDraftSchema, CommunityFeedbackDraftStateSchema, CommunityFeedbackDraftUpdateSchema, CommunityFeedbackEventDataSchema, CommunityFeedbackEventSchema, CommunityFeedbackExcerptSchema, CommunityFeedbackExtensionDiagnosticSchema, CommunityFeedbackIdSchema, CommunityFeedbackItemSchema, CommunityFeedbackKindSchema, CommunityFeedbackLabelsSchema, CommunityFeedbackLastPayloadSchema, CommunityFeedbackLinkSchema, CommunityFeedbackListSchema, CommunityFeedbackLocalListSchema, CommunityFeedbackMessageInputSchema, CommunityFeedbackMessageSchema, CommunityFeedbackPayloadSchema, CommunityFeedbackRefSchema, CommunityFeedbackReopenSchema, CommunityFeedbackSchema, CommunityFeedbackSettingsSchema, CommunityFeedbackSettingsUpdateSchema, CommunityFeedbackSnapshotSchema, CommunityFeedbackStatusSchema, CommunityFeedbackSummarySchema, CommunityFeedbackSupplementSchema, CommunityFeedbackTargetSchema, CommunityFeedbackTransitionSchema, CommunityFeedbackVisibilitySchema, CommunityFeedbackWithdrawSchema, CommunityFreshnessSchema, CommunityInstalledItemSchema, CommunityInstalledSchema, CommunityListingInputSchema, CommunityMyExtensionSchema, CommunityMyPersonaSchema, CommunityMyPersonasSchema, CommunityPermissionItemSchema, CommunityPersonaDetailSchema, CommunityPersonaIdSchema, CommunityPersonaReviewStatusSchema, CommunityPersonaRevisionIdSchema, CommunityPersonaSummarySchema, CommunityRatingSchema, CommunityReleaseIdSchema, CommunityReleaseSchema, CommunityReviewReportSchema, CommunityReviewStatusSchema, CommunitySourceSchema, CommunityStatusSchema, CommunitySyncItemSchema, CommunitySyncSchema, CompactionSettingsSchema, ConfigSchemaDocumentSchema, ConfigSchemaMetaSchema, ConfigSchemaNodeSchema, ConnectionEventIdSchema, ConnectionIdSchema, ConnectionPanelRoleSchema, ConnectionTestResultSchema, CreateCredentialRequestSchema, CredentialAgentScopeSchema, CredentialBindingsRequestSchema, CredentialConsumerKindSchema, CredentialDescriptionSchema, CredentialDomainsSchema, CredentialEnvNameSchema, CredentialIdSchema, CredentialNameSchema, CredentialRequestViewSchema, CredentialUsageSchema, CredentialUseSchema, CredentialUsersSchema, CredentialUsesViewSchema, CredentialValueSchema, CredentialViewSchema, CredentialsViewSchema, DEFAULT_CHANNEL_CONTEXT_POLICY, DEFAULT_COMPACTION_SETTINGS, DEFAULT_MESSAGE_PACING, DEFAULT_MODEL_FALLBACK_SETTINGS, DEFAULT_SUB_CONVERSATION_RETENTION, DshCredentialRefSchema, DshCredentialViewSchema, DshCredentialsChangedSseDataSchema, DshNxtHostUiSchema, DshPluginCatalogEntrySchema, DshPluginEntryIdSchema, DshPluginOperationSseDataSchema, DshPluginPackageIdSchema, DshSettingsChangedSseDataSchema, DshSettingsMutationRequestSchema, DshSettingsNamespaceSchema, DshSettingsPathOperationSchema, DshSettingsPathSchema, DynamicChangedSseDataSchema, DynamicClientApprovalPolicySchema, EMPTY_CONFIG_SCHEMA, EMPTY_EXTENSION_PERMISSIONS, EMPTY_EXTENSION_UI_CONTRIBUTIONS, EXTENSION_ASSET_LIBRARY_DEFAULT_QUOTA_BYTES, EXTENSION_ASSET_LIBRARY_MAX_QUOTA_BYTES, EXTENSION_CONTEXT_DYNAMIC_MAX_CHARS, EXTENSION_CONTEXT_STATIC_MAX_CHARS, EXTENSION_DATA_HOOK_PERMISSIONS, EXTENSION_GOVERNANCE_SDK_LEVEL, EXTENSION_INBOUND_HOOK_MAX_TIMEOUT_MS, EXTENSION_INDEX_MAX_FILTERS, EXTENSION_INDEX_MAX_TEXT_FIELDS, EXTENSION_JOB_MAX_RUNTIME, EXTENSION_LLM_MAX_CALLS_PER_TURN, EXTENSION_LLM_MAX_OUTPUT_TOKENS, EXTENSION_MODEL_MAX_CALLS_PER_MINUTE, EXTENSION_OUTBOUND_MAX_TIMEOUT_MS, EXTENSION_OUTBOUND_SDK_LEVEL, EXTENSION_PROVIDES, EXTENSION_SDK_BASE_LEVEL, EXTENSION_SDK_LEVEL, EXTENSION_SDK_RELEASES, EXTENSION_STORAGE_DEFAULT_QUOTA_BYTES, EXTENSION_STORAGE_MAX_QUOTA_BYTES, EXTENSION_STORAGE_SCOPES, EpisodeHandoffIdSchema, EpisodeIdSchema, ExtensionActivationTransitionSchema, ExtensionAssetLibraryCapabilitySchema, ExtensionAssetsCapabilitySchema, ExtensionCapabilitiesSchema, ExtensionConfigDeclarationSchema, ExtensionConfigVersionSchema, ExtensionConfigVersionSourceSchema, ExtensionContextContributionSchema, ExtensionDataMigrationInputSchema, ExtensionDataPackageInspectionSchema, ExtensionDataPreviewSchema, ExtensionDataSourceSchema, ExtensionDataStateSchema, ExtensionDeclaredJobSchema, ExtensionIdSchema, ExtensionImportInspectionSchema, ExtensionInboundHookCapabilitySchema, ExtensionIndexCapabilitySchema, ExtensionIndexCollectionSchema, ExtensionJobsCapabilitySchema, ExtensionLayeredConfigSchema, ExtensionLineageNodeSchema, ExtensionLineageSchema, ExtensionLlmCapabilitySchema, ExtensionMcpCapabilitySchema, ExtensionMcpServerNameSchema, ExtensionMcpServerSchema, ExtensionMcpValueSchema, ExtensionModelsCapabilitySchema, ExtensionNetworkCapabilitySchema, ExtensionNetworkDomainSchema, ExtensionOutboundCapabilitySchema, ExtensionPanelAnchorSchema, ExtensionPanelDeclarationSchema, ExtensionPermissionRequirementSchema, ExtensionPermissionsSchema, ExtensionPlatformCapabilitySchema, ExtensionProvideSchema, ExtensionRequestSchema, ExtensionRequiresSchema, ExtensionRevisionIdSchema, ExtensionStorageCapabilitySchema, ExtensionStorageScopeSchema, ExtensionUiContributionsSchema, FALLBACK_MODEL_LIMIT, GithubCliAvailabilitySchema, HOST_PAGE_DEFAULT_RAIL_ORDER, HOST_UI_KIT_COMPONENT_NAMES, HostApiContracts, HostApiErrorSchema, HostConnectionEventSchema, HostIconNameSchema, HostLayerCapabilitiesSchema, 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, LinkedAccountIdSchema, LinkedAccountMethodSchema, LinkedAccountPlatformIdSchema, LinkedAccountPlatformToolSchema, LinkedAccountTokenSourceSchema, LinkedAccountUseSchema, LinkedAccountUsesViewSchema, LinkedAccountViewSchema, LinkedAccountsViewSchema, LlmDiscoveredModelSchema, LlmModelInputModalitiesSchema, LlmModelReasoningEffortsSchema, LlmProviderCredentialSchema, LlmProviderModelSchema, LlmProviderSettingsSchema, LlmProviderTestResultSchema, LlmProviderViewSchema, LocalGithubLoginSchema, LogicalMessageIdSchema, MANAGEMENT_PAIR_PROOF_PREFIX, ManagementChallengeResponseSchema, ManagementDeviceEnrollmentRequestSchema, ManagementDeviceEnrollmentResponseSchema, ManagementDeviceIdSchema, ManagementDeviceViewSchema, ManagementSessionRequestSchema, ManagementSessionResponseSchema, McpServerFormSchema, MessageDeliverySummarySchema, MessagePacingSchema, MessagePacingSettingsSchema, MessagePartSchema, MessagePartsSchema, MessageRendererContributionSchema, ModelFallbackReasonSchema, ModelFallbackSettingsSchema, ModelProviderAccessSchema, NO_SUB_CONVERSATION_MODELS, NonEmptyMessagePartsSchema, NotificationEventKeySchema, NotificationSettingsViewSchema, OutboundIntentIdSchema, PANEL_ANCHOR_LAYER, PROMPT_DOCUMENT_MAX_PLAIN_TEXT_LENGTH, PROMPT_DOCUMENT_MAX_REFERENCES, PanelContributionSchema, PanelDensitySchema, PhysicalDeliveryIdSchema, PlatformIdentityIdSchema, PlatformUserListResponseSchema, ProductUpdateStatusSchema, PromptDocumentV1Schema, PromptSegmentSchema, RESPONSE_TIMING_DEFAULTS, RESPONSE_TIMING_LIMITS, RESPONSE_WAIT_MIN_QUIET_SECONDS, RICH_EXTENSION_MAX_BYTES, RemoveCredentialRequestSchema, RemoveCredentialResultSchema, RemoveLinkedAccountRequestSchema, RemoveLinkedAccountResultSchema, ReplaceCredentialValueRequestSchema, ReplaceLinkedAccountTokenRequestSchema, ResponseTimingSettingsSchema, RetrievalModeSchema, RetrievalStatusSchema, RichExtensionSchema, RichKindSchema, RichTargetUrlSchema, RuntimeCompatibilityDiagnosticSchema, SUB_CONVERSATION_MAIN_MODEL, SUB_CONVERSATION_MODEL_LIMITS, ScheduledTaskIdSchema, ScheduledTaskSchema, ServerInstanceIdSchema, SetModelProviderAccessRequestSchema, SubConversationIdSchema, SubConversationRetentionSchema, SubConversationSchema, SubConversationSettingsSchema, SubscriptionStatusSchema, TestBarkNotificationRequestSchema, ToolViewContributionSchema, ToolViewDensitySchema, UNBOUND_CHANNEL_GROUP_ID, UpdateCredentialRequestSchema, UpdateNotificationSettingsRequestSchema, UpgradeBackupModeSchema, UpgradeBackupSettingsSchema, VerificationBrowserAvailabilitySchema, WorkTreeOrderSchema, activityDurationMs, adminOnlyConfigKeys, agentPermissionDeclaration, buildHostApiContractPath, buildHostApiPath, commandNameOf, commandUsage, communityPersonaReviewLabel, communityPublisherLabel, communityReviewLabel, configDescription, configFieldKind, configFieldLevel, configFields, configSchema, configSecretKeys, credentialRequestRoute, extensionCapabilitiesExpand, extensionSdkVersion, formatLogMessage, hostLayerAsCapabilities, hostLogDebugLeaseSchema, hostLogDebugRequestSchema, hostLogEntrySchema, hostLogLevelSchema, hostLogPageSchema, hostLogQuerySchema, hostLogScopeSchema, hostLogSettingsSchema, hostLogSettingsUpdateSchema, hostLogSourceKindSchema, hostLogSourceSchema, hostLogStatusSchema, hostLogStreamEventSchema, hostPageRailOrder, hostPermissionDeclaration, insecureHttpManagementPairProofMessage, managementPairProofMessage, mcpSecretFields, messagePartAssetId, messagePartAssetIds, messagePartImageAssetIds, messagePartsSearchText, normalizePromptDocument, outboundProcessesBeforeSend, parseCommandArguments, parseConfigValue, parseJsonValue, parseMessageParts, promptDocumentFromText, promptDocumentPlainText, recognizeCommand, requiredExtensionSdkLevel, resolveResponseTiming, richPartContextText, summarizeExtensionCapabilities, tokenizeCommand, undeliveredCommandReplies, validateConfigValue };
8961
+ export { ACTIVITY_MAX_BUCKETS, ACTIVITY_MAX_WINDOW_MS, ACTIVITY_MIN_BUCKET_MS, ActivityQuerySchema, AdapterActivityKeySchema, AddLinkedAccountRequestSchema, AddonAvailabilitySchema, AddonGroupSchema, AddonIdSchema, AddonProviderStatusSchema, AddonStateSchema, AddonStatusSchema, AdministratorSchema, AdmissionIdSchema, AgentAliasesSchema, AgentAppearanceSchema, AgentCompactionModelChoiceSchema, AgentCompactionPolicySchema, AgentFallbackModelsSchema, AgentIdSchema, AgentRevisionChangedFieldSchema, AgentRevisionHistorySchema, AgentRevisionIdSchema, AgentSubConversationModelsSchema, AssetIdSchema, AttentionItemSchema, AttentionListSchema, AuthoringAttemptIdSchema, AuthoringTaskIdSchema, BoundCredentialsSchema, CHANNEL_COMPOSER_MAX_ATTACHMENTS, CHANNEL_COMPOSER_MAX_BYTES, CHANNEL_UNREAD_COUNT_CAP, COMMAND_DEFAULT_TIMEOUT_SECONDS, COMMAND_MAX_PROGRESS_REPLIES, COMMAND_MAX_TIMEOUT_SECONDS, COMMUNITY_EXTENSION_SORTS, COMMUNITY_FEEDBACK_STATUSES, COMMUNITY_FEEDBACK_STATUS_LABELS, COMMUNITY_LISTING_LIMITS, COMMUNITY_OFFICIAL_HANDLE, COMMUNITY_PERSONA_AVATAR_MAX_BYTES, COMMUNITY_PERSONA_AVATAR_TYPES, COMMUNITY_PERSONA_MAX_LENGTH, COMMUNITY_RATING_BADGES, COMMUNITY_RATING_BADGE_LIMIT, COMMUNITY_RATING_DIMENSIONS, COMMUNITY_RATING_DIMENSION_LABELS, COMMUNITY_REVIEWER_NAME, COMMUNITY_REVIEW_DIMENSION_LABELS, COMMUNITY_REVIEW_STATUSES, CONFIG_SCHEMA_MAX_BYTES, CREDENTIAL_DESCRIPTION_MAX_CHARS, CREDENTIAL_NAME_MAX_CHARS, CREDENTIAL_REDACTABLE_MIN_CHARS, CREDENTIAL_VALUE_MAX_CHARS, ChannelActivitySeriesSchema, ChannelActivitySummarySchema, ChannelContextPolicySchema, ChannelContextPolicyViewSchema, ChannelEventIdSchema, ChannelFactSseDataSchema, ChannelFactSseItemSchema, ChannelIdSchema, ChannelListViewSchema, ChannelMemberIdSchema, ChannelMemberNotesViewSchema, ChannelMemoryActivitySchema, ChannelPendingContextSchema, ChannelPromptViewSchema, ChannelRuntimeCacheSampleSchema, ChannelRuntimeCacheSchema, ChannelRuntimeContextSchema, ChannelRuntimeInputSchema, ChannelRuntimeOccupancySchema, ChannelRuntimePerformanceSampleSchema, ChannelRuntimePerformanceSchema, ChannelRuntimePhaseSchema, ChannelRuntimeProjectionSchema, ChannelRuntimeSseDataSchema, ChannelRuntimeStepSchema, ChannelRuntimeToolProgressSchema, ChannelRuntimeToolSchema, ChannelRuntimeTurnSchema, ChannelRuntimeUsageSchema, ClientNotificationFeedResponseSchema, ClientNotificationSchema, CommandAccountUsageSchema, CommandCatalogEntrySchema, CommandDefinitionSchema, CommandExecutionIdentitySchema, CommandExecutionRecordSchema, CommandParameterSchema, CommandPermissionSchema, CommandPolicySchema, CommandReplySchema, CommandResultSchema, CommunityAccountSchema, CommunityEndpointSchema, CommunityEnvironmentSchema, CommunityExtensionDetailSchema, CommunityExtensionSortSchema, CommunityExtensionSummarySchema, CommunityFeedbackAffectedSchema, CommunityFeedbackChangesSchema, CommunityFeedbackConfirmSchema, CommunityFeedbackCreateSchema, CommunityFeedbackDiagnosticEntrySchema, CommunityFeedbackDiagnosticsSchema, CommunityFeedbackDigestSchema, CommunityFeedbackDraftIdSchema, CommunityFeedbackDraftInputSchema, CommunityFeedbackDraftSchema, CommunityFeedbackDraftStateSchema, CommunityFeedbackDraftUpdateSchema, CommunityFeedbackEventDataSchema, CommunityFeedbackEventSchema, CommunityFeedbackExcerptSchema, CommunityFeedbackExtensionDiagnosticSchema, CommunityFeedbackIdSchema, CommunityFeedbackItemSchema, CommunityFeedbackKindSchema, CommunityFeedbackLabelsSchema, CommunityFeedbackLastPayloadSchema, CommunityFeedbackLinkSchema, CommunityFeedbackListSchema, CommunityFeedbackLocalListSchema, CommunityFeedbackMessageInputSchema, CommunityFeedbackMessageSchema, CommunityFeedbackPayloadSchema, CommunityFeedbackRefSchema, CommunityFeedbackReopenSchema, CommunityFeedbackSchema, CommunityFeedbackSettingsSchema, CommunityFeedbackSettingsUpdateSchema, CommunityFeedbackSnapshotSchema, CommunityFeedbackStatusSchema, CommunityFeedbackSummarySchema, CommunityFeedbackSupplementSchema, CommunityFeedbackTargetSchema, CommunityFeedbackTransitionSchema, CommunityFeedbackVisibilitySchema, CommunityFeedbackWithdrawSchema, CommunityFreshnessSchema, CommunityInstalledItemSchema, CommunityInstalledSchema, CommunityListingInputSchema, CommunityMyExtensionSchema, CommunityMyPersonaSchema, CommunityMyPersonasSchema, CommunityPermissionItemSchema, CommunityPersonaDetailSchema, CommunityPersonaIdSchema, CommunityPersonaReviewStatusSchema, CommunityPersonaRevisionIdSchema, CommunityPersonaSummarySchema, CommunityRatingSchema, CommunityReleaseIdSchema, CommunityReleaseSchema, CommunityReviewReportSchema, CommunityReviewStatusSchema, CommunitySourceSchema, CommunityStatusSchema, CommunitySyncItemSchema, CommunitySyncSchema, CompactionSettingsSchema, ConfigSchemaDocumentSchema, ConfigSchemaMetaSchema, ConfigSchemaNodeSchema, ConnectionEventIdSchema, ConnectionIdSchema, ConnectionPanelRoleSchema, ConnectionTestResultSchema, CreateCredentialRequestSchema, CredentialAgentScopeSchema, CredentialBindingsRequestSchema, CredentialConsumerKindSchema, CredentialDescriptionSchema, CredentialDomainsSchema, CredentialEnvNameSchema, CredentialIdSchema, CredentialNameSchema, CredentialRequestViewSchema, CredentialUsageSchema, CredentialUseSchema, CredentialUsersSchema, CredentialUsesViewSchema, CredentialValueSchema, CredentialViewSchema, CredentialsViewSchema, DEFAULT_CHANNEL_CONTEXT_POLICY, DEFAULT_COMPACTION_SETTINGS, DEFAULT_MESSAGE_PACING, DEFAULT_MODEL_FALLBACK_SETTINGS, DEFAULT_SUB_CONVERSATION_RETENTION, DshCredentialRefSchema, DshCredentialViewSchema, DshCredentialsChangedSseDataSchema, DshNxtHostUiSchema, DshPluginCatalogEntrySchema, DshPluginEntryIdSchema, DshPluginOperationSseDataSchema, DshPluginPackageIdSchema, DshSettingsChangedSseDataSchema, DshSettingsMutationRequestSchema, DshSettingsNamespaceSchema, DshSettingsPathOperationSchema, DshSettingsPathSchema, DynamicChangedSseDataSchema, DynamicClientApprovalPolicySchema, EMPTY_CONFIG_SCHEMA, EMPTY_EXTENSION_PERMISSIONS, EMPTY_EXTENSION_UI_CONTRIBUTIONS, EXTENSION_ASSET_LIBRARY_DEFAULT_QUOTA_BYTES, EXTENSION_ASSET_LIBRARY_MAX_QUOTA_BYTES, EXTENSION_COMMAND_PROFILES, EXTENSION_CONTEXT_DYNAMIC_MAX_CHARS, EXTENSION_CONTEXT_STATIC_MAX_CHARS, EXTENSION_DATA_HOOK_PERMISSIONS, EXTENSION_DOWNLOAD_DEFAULT_BYTES, EXTENSION_DOWNLOAD_MAX_BYTES, EXTENSION_DOWNLOAD_MIN_BYTES, EXTENSION_DOWNLOAD_SDK_LEVEL, EXTENSION_FETCH_MAX_BYTES, EXTENSION_FILES_DEFAULT_CACHE_QUOTA_BYTES, EXTENSION_FILES_DEFAULT_TEMP_QUOTA_BYTES, EXTENSION_FILES_MAX_QUOTA_BYTES, EXTENSION_FILES_SDK_LEVEL, EXTENSION_GOVERNANCE_SDK_LEVEL, EXTENSION_INBOUND_HOOK_MAX_TIMEOUT_MS, EXTENSION_INDEX_MAX_FILTERS, EXTENSION_INDEX_MAX_TEXT_FIELDS, EXTENSION_JOB_MAX_RUNTIME, EXTENSION_LLM_MAX_CALLS_PER_TURN, EXTENSION_LLM_MAX_OUTPUT_TOKENS, EXTENSION_MODEL_MAX_CALLS_PER_MINUTE, EXTENSION_OUTBOUND_MAX_TIMEOUT_MS, EXTENSION_OUTBOUND_SDK_LEVEL, EXTENSION_PROVIDES, EXTENSION_SDK_BASE_LEVEL, EXTENSION_SDK_LEVEL, EXTENSION_SDK_RELEASES, EXTENSION_SPEECH_DEFAULT_CALLS_PER_MINUTE, EXTENSION_SPEECH_MAX_CALLS_PER_MINUTE, EXTENSION_STORAGE_DEFAULT_QUOTA_BYTES, EXTENSION_STORAGE_MAX_QUOTA_BYTES, EXTENSION_STORAGE_SCOPES, EpisodeHandoffIdSchema, EpisodeIdSchema, ExtensionActivationTransitionSchema, ExtensionAssetLibraryCapabilitySchema, ExtensionAssetsCapabilitySchema, ExtensionCapabilitiesSchema, ExtensionCommandProfileIdSchema, ExtensionCommandsCapabilitySchema, ExtensionConfigDeclarationSchema, ExtensionConfigVersionSchema, ExtensionConfigVersionSourceSchema, ExtensionContextContributionSchema, ExtensionDataMigrationInputSchema, ExtensionDataPackageInspectionSchema, ExtensionDataPreviewSchema, ExtensionDataSourceSchema, ExtensionDataStateSchema, ExtensionDeclaredJobSchema, ExtensionDownloadSettingsSchema, ExtensionFilesCapabilitySchema, ExtensionIdSchema, ExtensionImportInspectionSchema, ExtensionInboundHookCapabilitySchema, ExtensionIndexCapabilitySchema, ExtensionIndexCollectionSchema, ExtensionJobsCapabilitySchema, ExtensionLayeredConfigSchema, ExtensionLineageNodeSchema, ExtensionLineageSchema, ExtensionLlmCapabilitySchema, ExtensionMcpCapabilitySchema, ExtensionMcpServerNameSchema, ExtensionMcpServerSchema, ExtensionMcpValueSchema, ExtensionModelsCapabilitySchema, ExtensionNetworkCapabilitySchema, ExtensionNetworkDomainSchema, ExtensionOutboundCapabilitySchema, ExtensionPanelAnchorSchema, ExtensionPanelDeclarationSchema, ExtensionPermissionRequirementSchema, ExtensionPermissionsSchema, ExtensionPlatformCapabilitySchema, ExtensionProvideSchema, ExtensionRequestSchema, ExtensionRequiresSchema, ExtensionRevisionIdSchema, ExtensionRevisionProtectionSchema, ExtensionSpeechCapabilitySchema, ExtensionStorageCapabilitySchema, ExtensionStorageScopeSchema, ExtensionToolImagesCapabilitySchema, ExtensionUiContributionsSchema, FALLBACK_MODEL_LIMIT, HOST_PAGE_DEFAULT_RAIL_ORDER, HOST_UI_KIT_COMPONENT_NAMES, HostApiContracts, HostApiErrorSchema, HostConnectionEventSchema, HostIconNameSchema, HostLayerCapabilitiesSchema, 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, LinkedAccountIdSchema, LinkedAccountMethodSchema, LinkedAccountPlatformIdSchema, LinkedAccountPlatformToolSchema, LinkedAccountTokenSourceSchema, LinkedAccountUseSchema, LinkedAccountUsesViewSchema, LinkedAccountViewSchema, LinkedAccountsViewSchema, LlmDiscoveredModelSchema, LlmModelInputModalitiesSchema, LlmModelReasoningEffortsSchema, LlmProviderCredentialSchema, LlmProviderModelSchema, LlmProviderSettingsSchema, LlmProviderTestResultSchema, LlmProviderViewSchema, LocalGithubLoginSchema, LogicalMessageIdSchema, MANAGEMENT_PAIR_PROOF_PREFIX, ManagementChallengeResponseSchema, ManagementDeviceEnrollmentRequestSchema, ManagementDeviceEnrollmentResponseSchema, ManagementDeviceIdSchema, ManagementDeviceViewSchema, ManagementSessionRequestSchema, ManagementSessionResponseSchema, McpServerFormSchema, MessageDeliverySummarySchema, MessagePacingSchema, MessagePacingSettingsSchema, MessagePartSchema, MessagePartsSchema, MessageRendererContributionSchema, ModelFallbackReasonSchema, ModelFallbackSettingsSchema, ModelProviderAccessSchema, NO_SUB_CONVERSATION_MODELS, NonEmptyMessagePartsSchema, NotificationEventKeySchema, NotificationSettingsViewSchema, OutboundIntentIdSchema, PANEL_ANCHOR_LAYER, PROMPT_DOCUMENT_MAX_PLAIN_TEXT_LENGTH, PROMPT_DOCUMENT_MAX_REFERENCES, PanelContributionSchema, PanelDensitySchema, PhysicalDeliveryIdSchema, PlatformIdentityIdSchema, PlatformUserListResponseSchema, ProductDownloadSchema, ProductUpdateStatusSchema, PromptDocumentV1Schema, PromptSegmentSchema, RESPONSE_TIMING_DEFAULTS, RESPONSE_TIMING_LIMITS, RESPONSE_WAIT_MIN_QUIET_SECONDS, RICH_EXTENSION_MAX_BYTES, RemoveCredentialRequestSchema, RemoveCredentialResultSchema, RemoveLinkedAccountRequestSchema, RemoveLinkedAccountResultSchema, ReplaceCredentialValueRequestSchema, ReplaceLinkedAccountTokenRequestSchema, ResponseTimingSettingsSchema, RetrievalModeSchema, RetrievalStatusSchema, RichExtensionSchema, RichKindSchema, RichTargetUrlSchema, RuntimeCompatibilityDiagnosticSchema, SUB_CONVERSATION_MAIN_MODEL, SUB_CONVERSATION_MODEL_LIMITS, ScheduledTaskIdSchema, ScheduledTaskSchema, ServerInstanceIdSchema, SetModelProviderAccessRequestSchema, SpeechCloudSettingsSchema, SpeechLanguageSchema, SpeechSettingsSchema, SubConversationIdSchema, SubConversationRetentionSchema, SubConversationSchema, SubConversationSettingsSchema, SubscriptionStatusSchema, TestBarkNotificationRequestSchema, ToolViewContributionSchema, ToolViewDensitySchema, UNBOUND_CHANNEL_GROUP_ID, UpdateCredentialRequestSchema, UpdateNotificationSettingsRequestSchema, UpgradeBackupModeSchema, UpgradeBackupSettingsSchema, WorkTreeOrderSchema, activityDurationMs, adminOnlyConfigKeys, agentPermissionDeclaration, buildHostApiContractPath, buildHostApiPath, commandNameOf, commandUsage, communityPersonaReviewLabel, communityPublisherLabel, communityReviewLabel, configDescription, configFieldKind, configFieldLevel, configFields, configSchema, configSecretKeys, credentialRequestRoute, extensionCapabilitiesExpand, extensionSdkVersion, formatLogMessage, hostLayerAsCapabilities, hostLogDebugLeaseSchema, hostLogDebugRequestSchema, hostLogEntrySchema, hostLogLevelSchema, hostLogPageSchema, hostLogQuerySchema, hostLogScopeSchema, hostLogSettingsSchema, hostLogSettingsUpdateSchema, hostLogSourceKindSchema, hostLogSourceSchema, hostLogStatusSchema, hostLogStreamEventSchema, hostPageRailOrder, hostPermissionDeclaration, insecureHttpManagementPairProofMessage, managementPairProofMessage, mcpSecretFields, messagePartAssetId, messagePartAssetIds, messagePartImageAssetIds, messagePartsSearchText, normalizePromptDocument, outboundProcessesBeforeSend, parseCommandArguments, parseConfigValue, parseJsonValue, parseMessageParts, promptDocumentFromText, promptDocumentPlainText, recognizeCommand, requiredExtensionAddons, requiredExtensionSdkLevel, resolveResponseTiming, richPartContextText, summarizeExtensionCapabilities, tokenizeCommand, undeliveredCommandReplies, validateConfigValue };
8635
8962
 
8636
8963
  //# sourceMappingURL=index.mjs.map