@nekro-nxt/contracts 0.6.0 → 0.7.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 +403 -109
- package/dist/index.mjs.map +1 -1
- package/lib/types/extension-capabilities.d.ts +98 -4
- package/lib/types/extension-capabilities.d.ts.map +1 -1
- package/lib/types/extension-ui.d.ts +75 -6
- package/lib/types/extension-ui.d.ts.map +1 -1
- package/lib/types/host-api.d.ts +1329 -524
- package/lib/types/host-api.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/extension-capabilities.ts +191 -6
- package/src/extension-ui.ts +13 -1
- package/src/host-api.ts +244 -96
package/dist/index.mjs
CHANGED
|
@@ -590,8 +590,13 @@ 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`).
|
|
593
596
|
*/
|
|
594
|
-
const EXTENSION_SDK_LEVEL =
|
|
597
|
+
const EXTENSION_SDK_LEVEL = 14;
|
|
598
|
+
/** Work files, Asset reads, high-detail tool images, tool time limits, media, commands and speech need this level. */
|
|
599
|
+
const EXTENSION_FILES_SDK_LEVEL = 14;
|
|
595
600
|
/** Outbound processing needs this level; packages that declare `permissions.agent.outbound` declare it. */
|
|
596
601
|
const EXTENSION_OUTBOUND_SDK_LEVEL = 13;
|
|
597
602
|
/** Lineage, `dataVersion` and administrator-only commands need this level; packages that carry them declare it. */
|
|
@@ -632,6 +637,10 @@ const EXTENSION_SDK_RELEASES = [
|
|
|
632
637
|
{
|
|
633
638
|
level: 13,
|
|
634
639
|
version: "0.7.0"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
level: 14,
|
|
643
|
+
version: "0.8.0"
|
|
635
644
|
}
|
|
636
645
|
];
|
|
637
646
|
/** The oldest NekroNXT version that supports `level`; undefined for a level no release supports yet. */
|
|
@@ -734,12 +743,42 @@ const EXTENSION_ASSET_LIBRARY_MAX_QUOTA_BYTES = 32 * 1024 * 1024 * 1024;
|
|
|
734
743
|
const ExtensionAssetLibraryCapabilitySchema = z.object({ quotaBytes: z.number().int().min(1024 * 1024).max(EXTENSION_ASSET_LIBRARY_MAX_QUOTA_BYTES).optional() }).strict();
|
|
735
744
|
/**
|
|
736
745
|
* `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.
|
|
746
|
+
* used in any channel later; `read` reads the bytes of Assets the current channel can see or the library holds.
|
|
738
747
|
*/
|
|
739
748
|
const ExtensionAssetsCapabilitySchema = z.object({
|
|
740
749
|
write: z.literal(true).optional(),
|
|
741
|
-
library: ExtensionAssetLibraryCapabilitySchema.optional()
|
|
742
|
-
|
|
750
|
+
library: ExtensionAssetLibraryCapabilitySchema.optional(),
|
|
751
|
+
read: z.literal(true).optional()
|
|
752
|
+
}).strict().refine((value) => value.write !== void 0 || value.library !== void 0 || value.read !== void 0, "assets 至少声明 write、library 或 read。");
|
|
753
|
+
const EXTENSION_FILES_DEFAULT_TEMP_QUOTA_BYTES = 1024 * 1024 * 1024;
|
|
754
|
+
const EXTENSION_FILES_DEFAULT_CACHE_QUOTA_BYTES = 1024 * 1024 * 1024;
|
|
755
|
+
const EXTENSION_FILES_MAX_QUOTA_BYTES = 16 * 1024 * 1024 * 1024;
|
|
756
|
+
const FilesQuotaSchema = z.number().int().min(1024 * 1024).max(EXTENSION_FILES_MAX_QUOTA_BYTES);
|
|
757
|
+
/**
|
|
758
|
+
* Work files passed between services by `fileId`. Temporary files expire a day after they are written; cache entries
|
|
759
|
+
* stay until the cache quota is full, then the least recently used go first.
|
|
760
|
+
*/
|
|
761
|
+
const ExtensionFilesCapabilitySchema = z.object({
|
|
762
|
+
tempQuotaBytes: FilesQuotaSchema.optional(),
|
|
763
|
+
cacheQuotaBytes: FilesQuotaSchema.optional()
|
|
764
|
+
}).strict();
|
|
765
|
+
/** Tool result pictures with `detail: 'high'` reach the model at up to 2048 px on the long side. */
|
|
766
|
+
const ExtensionToolImagesCapabilitySchema = z.object({ highDetail: z.literal(true) }).strict();
|
|
767
|
+
/**
|
|
768
|
+
* Command profiles extensions may run (`nxt.commands`, 附加功能 F7), and the add-on that provides each program. A new
|
|
769
|
+
* program needs a profile on the server and a row here.
|
|
770
|
+
*/
|
|
771
|
+
const ExtensionCommandProfileIdSchema = z.enum(["ffmpeg", "ffprobe"], { message: "命令档案只能是 ffmpeg、ffprobe。" });
|
|
772
|
+
const EXTENSION_COMMAND_PROFILES = {
|
|
773
|
+
ffmpeg: "media",
|
|
774
|
+
ffprobe: "media"
|
|
775
|
+
};
|
|
776
|
+
/** Programs run through their command profiles: confined to the call's own files, without network. */
|
|
777
|
+
const ExtensionCommandsCapabilitySchema = z.object({ profiles: z.array(ExtensionCommandProfileIdSchema).min(1).max(ExtensionCommandProfileIdSchema.options.length).refine((value) => new Set(value).size === value.length, "命令档案不能重复。") }).strict();
|
|
778
|
+
const EXTENSION_SPEECH_MAX_CALLS_PER_MINUTE = 60;
|
|
779
|
+
const EXTENSION_SPEECH_DEFAULT_CALLS_PER_MINUTE = 10;
|
|
780
|
+
/** Speech to text with the provider chosen in 设置 → 附加功能, which may be a cloud service. */
|
|
781
|
+
const ExtensionSpeechCapabilitySchema = z.object({ maxCallsPerMinute: z.number().int().min(1).max(60).default(10) }).strict();
|
|
743
782
|
const IndexNameSchema = z.string().trim().regex(/^[a-z][a-z0-9_]{0,31}$/u, "索引、字段和过滤项名称只能使用小写字母、数字和下划线,以字母开头。");
|
|
744
783
|
const EXTENSION_INDEX_MAX_TEXT_FIELDS = 4;
|
|
745
784
|
const EXTENSION_INDEX_MAX_FILTERS = 4;
|
|
@@ -838,6 +877,12 @@ const ExtensionCapabilitiesSchema = z.object({
|
|
|
838
877
|
network: ExtensionNetworkCapabilitySchema.optional(),
|
|
839
878
|
storage: ExtensionStorageCapabilitySchema.optional(),
|
|
840
879
|
assets: ExtensionAssetsCapabilitySchema.optional(),
|
|
880
|
+
files: ExtensionFilesCapabilitySchema.optional(),
|
|
881
|
+
toolImages: ExtensionToolImagesCapabilitySchema.optional(),
|
|
882
|
+
/** `nxt.media`: probe, frames, audio and convert on the media add-on. */
|
|
883
|
+
media: z.literal(true).optional(),
|
|
884
|
+
commands: ExtensionCommandsCapabilitySchema.optional(),
|
|
885
|
+
speech: ExtensionSpeechCapabilitySchema.optional(),
|
|
841
886
|
index: ExtensionIndexCapabilitySchema.optional(),
|
|
842
887
|
/** Host layer only; the agent layer uses `llm`, which runs on the agent's own model. */
|
|
843
888
|
models: ExtensionModelsCapabilitySchema.optional(),
|
|
@@ -857,8 +902,18 @@ const ExtensionCapabilitiesSchema = z.object({
|
|
|
857
902
|
const HostLayerCapabilitiesSchema = z.object({
|
|
858
903
|
network: ExtensionNetworkCapabilitySchema.optional(),
|
|
859
904
|
storage: z.object({ quotaBytes: z.number().int().min(1024).max(EXTENSION_STORAGE_MAX_QUOTA_BYTES).optional() }).strict().optional(),
|
|
860
|
-
/**
|
|
861
|
-
|
|
905
|
+
/**
|
|
906
|
+
* The same library agent attachments use; the host instance lists and imports into it. `read` reads the bytes of
|
|
907
|
+
* library Assets.
|
|
908
|
+
*/
|
|
909
|
+
assets: z.object({
|
|
910
|
+
library: ExtensionAssetLibraryCapabilitySchema.optional(),
|
|
911
|
+
read: z.literal(true).optional()
|
|
912
|
+
}).strict().refine((value) => value.library !== void 0 || value.read !== void 0, "assets 至少声明 library 或 read。").optional(),
|
|
913
|
+
files: ExtensionFilesCapabilitySchema.optional(),
|
|
914
|
+
media: z.literal(true).optional(),
|
|
915
|
+
commands: ExtensionCommandsCapabilitySchema.optional(),
|
|
916
|
+
speech: ExtensionSpeechCapabilitySchema.optional(),
|
|
862
917
|
/** The same collections agent attachments declare; pages search and maintain them. */
|
|
863
918
|
index: ExtensionIndexCapabilitySchema.optional(),
|
|
864
919
|
models: ExtensionModelsCapabilitySchema.optional()
|
|
@@ -870,7 +925,14 @@ const hostLayerAsCapabilities = (host) => host === void 0 || Object.keys(host).l
|
|
|
870
925
|
scopes: ["shared"],
|
|
871
926
|
...host.storage.quotaBytes === void 0 ? {} : { quotaBytes: host.storage.quotaBytes }
|
|
872
927
|
} },
|
|
873
|
-
...host.assets === void 0 ? {} : { assets: {
|
|
928
|
+
...host.assets === void 0 ? {} : { assets: {
|
|
929
|
+
...host.assets.library === void 0 ? {} : { library: host.assets.library },
|
|
930
|
+
...host.assets.read === void 0 ? {} : { read: host.assets.read }
|
|
931
|
+
} },
|
|
932
|
+
...host.files === void 0 ? {} : { files: host.files },
|
|
933
|
+
...host.media === void 0 ? {} : { media: host.media },
|
|
934
|
+
...host.commands === void 0 ? {} : { commands: host.commands },
|
|
935
|
+
...host.speech === void 0 ? {} : { speech: host.speech },
|
|
874
936
|
...host.index === void 0 ? {} : { index: host.index },
|
|
875
937
|
...host.models === void 0 ? {} : { models: host.models }
|
|
876
938
|
};
|
|
@@ -898,6 +960,12 @@ const extensionCapabilitiesExpand = (previous, next) => {
|
|
|
898
960
|
if (next.storage?.scopes.some((scope) => !(previous?.storage?.scopes ?? []).includes(scope))) return true;
|
|
899
961
|
if (next.assets?.write !== void 0 && previous?.assets?.write === void 0) return true;
|
|
900
962
|
if (next.assets?.library !== void 0 && previous?.assets?.library === void 0) return true;
|
|
963
|
+
if (next.assets?.read !== void 0 && previous?.assets?.read === void 0) return true;
|
|
964
|
+
if (next.files !== void 0 && previous?.files === void 0) return true;
|
|
965
|
+
if (next.toolImages !== void 0 && previous?.toolImages === void 0) return true;
|
|
966
|
+
if (next.media !== void 0 && previous?.media === void 0) return true;
|
|
967
|
+
if ((next.commands?.profiles ?? []).some((profile) => !(previous?.commands?.profiles ?? []).includes(profile))) return true;
|
|
968
|
+
if (next.speech !== void 0 && (previous?.speech === void 0 || next.speech.maxCallsPerMinute > previous.speech.maxCallsPerMinute)) return true;
|
|
901
969
|
if (next.models !== void 0 && (previous?.models === void 0 || next.models.maxCallsPerMinute > previous.models.maxCallsPerMinute || next.models.maxOutputTokens > previous.models.maxOutputTokens)) return true;
|
|
902
970
|
if (next.history !== void 0 && previous?.history === void 0) return true;
|
|
903
971
|
const platformKey = ({ adapter, action }) => `${adapter}:${action}`;
|
|
@@ -918,6 +986,20 @@ const extensionCapabilitiesExpand = (previous, next) => {
|
|
|
918
986
|
};
|
|
919
987
|
const formatLibraryQuota = (bytes) => bytes >= 1024 * 1024 * 1024 ? `${+(bytes / 1024 / 1024 / 1024).toFixed(1)} GB` : `${Math.round(bytes / 1024 / 1024)} MB`;
|
|
920
988
|
/**
|
|
989
|
+
* Add-ons the declared capabilities need (附加功能 F13), in a stable order: `media` needs 媒体处理, `speech` needs
|
|
990
|
+
* 语音识别, and each command profile needs the add-on that provides its program. Pass both layers, host-layer ones
|
|
991
|
+
* through {@link hostLayerAsCapabilities}.
|
|
992
|
+
*/
|
|
993
|
+
const requiredExtensionAddons = (...layers) => {
|
|
994
|
+
const needed = /* @__PURE__ */ new Set();
|
|
995
|
+
for (const capabilities of layers) {
|
|
996
|
+
if (capabilities?.media !== void 0) needed.add("media");
|
|
997
|
+
if (capabilities?.speech !== void 0) needed.add("speech");
|
|
998
|
+
for (const profile of capabilities?.commands?.profiles ?? []) needed.add(EXTENSION_COMMAND_PROFILES[profile]);
|
|
999
|
+
}
|
|
1000
|
+
return ["media", "speech"].filter((id) => needed.has(id));
|
|
1001
|
+
};
|
|
1002
|
+
/**
|
|
921
1003
|
* User-facing summary of declared capabilities, in a stable order, for approval and inspection pages. `layer: 'host'`
|
|
922
1004
|
* phrases host-layer capabilities (passed through {@link hostLayerAsCapabilities}) for the host instance.
|
|
923
1005
|
*/
|
|
@@ -967,6 +1049,45 @@ const summarizeExtensionCapabilities = (capabilities, options = {}) => {
|
|
|
967
1049
|
label: "把频道里的图片收进扩展资源库,之后可以在其他频道使用",
|
|
968
1050
|
detail: `最多 ${formatLibraryQuota(capabilities.assets.library.quotaBytes ?? 2147483648)}`
|
|
969
1051
|
});
|
|
1052
|
+
if (capabilities.assets?.read !== void 0) items.push(options.layer === "host" ? {
|
|
1053
|
+
key: "assets.read",
|
|
1054
|
+
risk: "normal",
|
|
1055
|
+
label: "读取扩展资源库里的文件"
|
|
1056
|
+
} : {
|
|
1057
|
+
key: "assets.read",
|
|
1058
|
+
risk: "sensitive",
|
|
1059
|
+
label: "读取当前频道里的图片和文件"
|
|
1060
|
+
});
|
|
1061
|
+
if (capabilities.files !== void 0) items.push({
|
|
1062
|
+
key: "files",
|
|
1063
|
+
risk: "normal",
|
|
1064
|
+
label: "在本机存放临时文件和缓存",
|
|
1065
|
+
detail: `临时文件最多 ${formatLibraryQuota(capabilities.files.tempQuotaBytes ?? 1073741824)},缓存最多 ${formatLibraryQuota(capabilities.files.cacheQuotaBytes ?? 1073741824)}`
|
|
1066
|
+
});
|
|
1067
|
+
if (capabilities.toolImages !== void 0) items.push({
|
|
1068
|
+
key: "toolImages",
|
|
1069
|
+
risk: "normal",
|
|
1070
|
+
label: "以高细节向智能体展示图片",
|
|
1071
|
+
detail: "计入智能体用量"
|
|
1072
|
+
});
|
|
1073
|
+
if (capabilities.media !== void 0) items.push({
|
|
1074
|
+
key: "media",
|
|
1075
|
+
risk: "normal",
|
|
1076
|
+
label: "处理音频、视频和图片"
|
|
1077
|
+
});
|
|
1078
|
+
if (capabilities.commands !== void 0) items.push({
|
|
1079
|
+
key: "commands",
|
|
1080
|
+
risk: "high",
|
|
1081
|
+
label: "在本机运行程序",
|
|
1082
|
+
detail: capabilities.commands.profiles.join("、"),
|
|
1083
|
+
scope: "只能读写交给它的文件,不能联网"
|
|
1084
|
+
});
|
|
1085
|
+
if (capabilities.speech !== void 0) items.push({
|
|
1086
|
+
key: "speech",
|
|
1087
|
+
risk: "sensitive",
|
|
1088
|
+
label: "把音频转成文字",
|
|
1089
|
+
detail: `音频可能发给「设置 → 附加功能」里选择的语音识别服务,每分钟最多 ${capabilities.speech.maxCallsPerMinute} 次`
|
|
1090
|
+
});
|
|
970
1091
|
if (capabilities.index !== void 0) items.push({
|
|
971
1092
|
key: "index",
|
|
972
1093
|
risk: "normal",
|
|
@@ -1459,8 +1580,20 @@ const EXTENSION_DATA_HOOK_PERMISSIONS = {
|
|
|
1459
1580
|
* too old for what it uses.
|
|
1460
1581
|
*/
|
|
1461
1582
|
const requiredExtensionSdkLevel = (permissions) => {
|
|
1583
|
+
const level14 = [
|
|
1584
|
+
permissions?.host?.files === void 0 && permissions?.agent?.files === void 0 ? void 0 : "工作文件",
|
|
1585
|
+
permissions?.host?.assets?.read === void 0 && permissions?.agent?.assets?.read === void 0 ? void 0 : "读取频道文件",
|
|
1586
|
+
permissions?.agent?.toolImages === void 0 ? void 0 : "高细节图片",
|
|
1587
|
+
permissions?.host?.media === void 0 && permissions?.agent?.media === void 0 ? void 0 : "媒体处理",
|
|
1588
|
+
permissions?.host?.commands === void 0 && permissions?.agent?.commands === void 0 ? void 0 : "运行程序",
|
|
1589
|
+
permissions?.host?.speech === void 0 && permissions?.agent?.speech === void 0 ? void 0 : "语音识别"
|
|
1590
|
+
].filter((name) => name !== void 0);
|
|
1591
|
+
if (level14.length > 0) return {
|
|
1592
|
+
level: 14,
|
|
1593
|
+
capabilities: level14
|
|
1594
|
+
};
|
|
1462
1595
|
const level8 = [
|
|
1463
|
-
permissions?.host?.assets === void 0 ? void 0 : "扩展资源库",
|
|
1596
|
+
permissions?.host?.assets?.library === void 0 ? void 0 : "扩展资源库",
|
|
1464
1597
|
permissions?.agent?.assets?.library === void 0 ? void 0 : "扩展资源库",
|
|
1465
1598
|
permissions?.host?.index === void 0 && permissions?.agent?.index === void 0 ? void 0 : "检索索引",
|
|
1466
1599
|
permissions?.host?.models === void 0 ? void 0 : "本机层模型调用"
|
|
@@ -3438,7 +3571,7 @@ const ImageUnderstandingPolicyApiSchema = z.object({
|
|
|
3438
3571
|
]),
|
|
3439
3572
|
restoreAfterCompaction: z.object({
|
|
3440
3573
|
recentMessages: z.number().int().min(1).max(100),
|
|
3441
|
-
maxImages: z.number().int().min(
|
|
3574
|
+
maxImages: z.number().int().min(0).max(50)
|
|
3442
3575
|
}).strict()
|
|
3443
3576
|
}).strict(),
|
|
3444
3577
|
textModel: z.discriminatedUnion("mode", [z.object({ mode: z.literal("disabled") }).strict(), z.object({
|
|
@@ -3477,6 +3610,8 @@ const AgentCapabilitiesSchema = z.object({
|
|
|
3477
3610
|
/** Network for commands; absent in older clients means on. */
|
|
3478
3611
|
commandNetwork: z.boolean().default(true),
|
|
3479
3612
|
communityFeedbackAuto: z.boolean().default(false),
|
|
3613
|
+
/** Voice messages reach the agent with a transcript (附加功能 F10). */
|
|
3614
|
+
voiceTranscription: z.boolean().default(false),
|
|
3480
3615
|
/** Linked accounts this agent's commands act as, one per platform; absent in older clients means none. */
|
|
3481
3616
|
commandAccounts: z.array(CommandAccountGrantSchema).max(8).default([]),
|
|
3482
3617
|
/**
|
|
@@ -3659,6 +3794,7 @@ const UpdateAgentCapabilitiesRequestSchema = AgentCapabilitiesSchema.partial().e
|
|
|
3659
3794
|
codeRun: z.boolean().optional(),
|
|
3660
3795
|
commandNetwork: z.boolean().optional(),
|
|
3661
3796
|
communityFeedbackAuto: z.boolean().optional(),
|
|
3797
|
+
voiceTranscription: z.boolean().optional(),
|
|
3662
3798
|
commandAccounts: z.array(CommandAccountGrantSchema).max(8).optional(),
|
|
3663
3799
|
extensionAutonomy: z.enum([
|
|
3664
3800
|
"manual",
|
|
@@ -3780,6 +3916,11 @@ const HostSnapshotMessageSchema = z.object({
|
|
|
3780
3916
|
]),
|
|
3781
3917
|
hidden: z.boolean(),
|
|
3782
3918
|
annotation: z.string().optional(),
|
|
3919
|
+
/** What NekroNXT itself added for the agent, such as the transcript of a voice message. */
|
|
3920
|
+
hostAnnotations: z.array(z.object({
|
|
3921
|
+
label: z.string(),
|
|
3922
|
+
text: z.string()
|
|
3923
|
+
}).strict()).optional(),
|
|
3783
3924
|
extensions: z.array(z.string()),
|
|
3784
3925
|
problems: z.array(z.string()).optional()
|
|
3785
3926
|
}).strict().optional(),
|
|
@@ -3888,6 +4029,11 @@ const ChannelRuntimeUsageSchema = z.object({
|
|
|
3888
4029
|
cacheWriteTokens: z.number().int().nonnegative().optional(),
|
|
3889
4030
|
reasoningTokens: z.number().int().nonnegative().optional()
|
|
3890
4031
|
}).strict();
|
|
4032
|
+
/** The latest progress a running extension tool reported. */
|
|
4033
|
+
const ChannelRuntimeToolProgressSchema = z.object({
|
|
4034
|
+
text: z.string().min(1).max(200),
|
|
4035
|
+
fraction: z.number().min(0).max(1).optional()
|
|
4036
|
+
}).strict();
|
|
3891
4037
|
const channelRuntimeToolFields = {
|
|
3892
4038
|
callId: NonEmptyStringSchema,
|
|
3893
4039
|
name: NonEmptyStringSchema,
|
|
@@ -3908,7 +4054,9 @@ const channelRuntimeToolFields = {
|
|
|
3908
4054
|
"unknown",
|
|
3909
4055
|
"cancelled"
|
|
3910
4056
|
]).optional(),
|
|
3911
|
-
durationMs: z.number().int().nonnegative().optional()
|
|
4057
|
+
durationMs: z.number().int().nonnegative().optional(),
|
|
4058
|
+
/** Set while the tool runs and has reported progress. */
|
|
4059
|
+
progress: ChannelRuntimeToolProgressSchema.optional()
|
|
3912
4060
|
};
|
|
3913
4061
|
const ChannelRuntimeToolSchema = z.object({
|
|
3914
4062
|
...channelRuntimeToolFields,
|
|
@@ -4179,6 +4327,19 @@ const ChannelContextPolicyViewSchema = z.object({
|
|
|
4179
4327
|
/** False while the channel follows the defaults. */
|
|
4180
4328
|
custom: z.boolean()
|
|
4181
4329
|
}).strict();
|
|
4330
|
+
/** One desktop installer of a release; `urls` lists the sources to try in order. */
|
|
4331
|
+
const ProductDownloadSchema = z.object({
|
|
4332
|
+
platform: z.enum([
|
|
4333
|
+
"mac",
|
|
4334
|
+
"win",
|
|
4335
|
+
"linux"
|
|
4336
|
+
]),
|
|
4337
|
+
arch: z.enum(["arm64", "x64"]),
|
|
4338
|
+
name: z.string().min(1),
|
|
4339
|
+
size: z.number().int().positive(),
|
|
4340
|
+
sha256: z.string().regex(/^[a-f0-9]{64}$/u),
|
|
4341
|
+
urls: z.array(z.string().url()).min(1)
|
|
4342
|
+
}).strict();
|
|
4182
4343
|
/** Whether a newer release exists on the build's own channel; development builds are never compared. */
|
|
4183
4344
|
const ProductUpdateStatusSchema = z.object({
|
|
4184
4345
|
channel: z.enum([
|
|
@@ -4200,7 +4361,9 @@ const ProductUpdateStatusSchema = z.object({
|
|
|
4200
4361
|
version: z.string(),
|
|
4201
4362
|
commit: z.string().optional(),
|
|
4202
4363
|
url: z.string().url(),
|
|
4203
|
-
publishedAt: z.number().int().nonnegative().optional()
|
|
4364
|
+
publishedAt: z.number().int().nonnegative().optional(),
|
|
4365
|
+
/** Desktop installers of this release; the desktop app downloads its own and checks size and digest. */
|
|
4366
|
+
downloads: z.array(ProductDownloadSchema).optional()
|
|
4204
4367
|
}).strict().optional(),
|
|
4205
4368
|
checkedAt: z.number().int().nonnegative().optional(),
|
|
4206
4369
|
error: z.string().optional(),
|
|
@@ -4258,28 +4421,9 @@ const DEFAULT_SUB_CONVERSATION_RETENTION = "7d";
|
|
|
4258
4421
|
const SubConversationSettingsSchema = z.object({ retention: SubConversationRetentionSchema }).strict();
|
|
4259
4422
|
/** `keyword`: SQLite keyword search only; `builtin`: keywords fused with the built-in semantic model. */
|
|
4260
4423
|
const RetrievalModeSchema = z.enum(["keyword", "builtin"]);
|
|
4261
|
-
/** Search used by extension indexes (表情包与扩展素材能力 §6.4). */
|
|
4424
|
+
/** Search used by extension indexes (表情包与扩展素材能力 §6.4); the model itself is the `retrieval` add-on. */
|
|
4262
4425
|
const RetrievalStatusSchema = z.object({
|
|
4263
4426
|
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
4427
|
vectors: z.object({
|
|
4284
4428
|
documents: z.number().int().nonnegative(),
|
|
4285
4429
|
embedded: z.number().int().nonnegative(),
|
|
@@ -4467,6 +4611,14 @@ const AttentionItemSchema = z.object({
|
|
|
4467
4611
|
]),
|
|
4468
4612
|
label: z.string().min(1).max(40)
|
|
4469
4613
|
}).strict(),
|
|
4614
|
+
/**
|
|
4615
|
+
* The shared cause several items come from: a connection (its outage and the deliveries it failed) or an agent
|
|
4616
|
+
* (its failed turns and unusable models). Dismissing by cause keeps it quiet until the cause recovers.
|
|
4617
|
+
*/
|
|
4618
|
+
cause: z.object({
|
|
4619
|
+
key: z.string().min(1).max(200),
|
|
4620
|
+
label: z.string().min(1).max(120)
|
|
4621
|
+
}).strict().optional(),
|
|
4470
4622
|
occurredAt: z.number().int().safe().nonnegative()
|
|
4471
4623
|
}).strict();
|
|
4472
4624
|
const AttentionListSchema = z.object({
|
|
@@ -4570,37 +4722,124 @@ const ScheduledTaskSchema = z.object({
|
|
|
4570
4722
|
lastFiredAt: z.number().int().safe().optional(),
|
|
4571
4723
|
createdAt: z.number().int().safe()
|
|
4572
4724
|
}).strict();
|
|
4573
|
-
/**
|
|
4574
|
-
const
|
|
4575
|
-
|
|
4725
|
+
/** Programs and models NekroNXT installs on request (附加功能); `<data root>/runtimes`, left out of backups. */
|
|
4726
|
+
const AddonIdSchema = z.enum([
|
|
4727
|
+
"media",
|
|
4728
|
+
"speech",
|
|
4729
|
+
"retrieval",
|
|
4730
|
+
"node",
|
|
4731
|
+
"github-cli",
|
|
4732
|
+
"browser"
|
|
4733
|
+
]);
|
|
4734
|
+
/** `extension`: used by extensions; `agent`: used by agents' commands; `host`: used by NekroNXT itself. */
|
|
4735
|
+
const AddonGroupSchema = z.enum([
|
|
4736
|
+
"extension",
|
|
4737
|
+
"agent",
|
|
4738
|
+
"host"
|
|
4739
|
+
]);
|
|
4740
|
+
/**
|
|
4741
|
+
* `installed`: downloaded and ready; `available`: usable without installing (bundled, found on this device, cloud);
|
|
4742
|
+
* `needs-config`: usable once configured (cloud).
|
|
4743
|
+
*/
|
|
4744
|
+
const AddonStateSchema = z.enum([
|
|
4745
|
+
"not-installed",
|
|
4746
|
+
"installing",
|
|
4747
|
+
"installed",
|
|
4748
|
+
"failed",
|
|
4749
|
+
"unsupported",
|
|
4750
|
+
"available",
|
|
4751
|
+
"needs-config"
|
|
4752
|
+
]);
|
|
4753
|
+
const AddonProgressSchema = z.object({
|
|
4754
|
+
receivedBytes: z.number().int().nonnegative(),
|
|
4755
|
+
totalBytes: z.number().int().nonnegative().optional()
|
|
4756
|
+
}).strict();
|
|
4757
|
+
/** One way an add-on can be provided, such as a program found on this device or one NekroNXT downloads. */
|
|
4758
|
+
const AddonProviderStatusSchema = z.object({
|
|
4759
|
+
id: NonEmptyStringSchema,
|
|
4760
|
+
title: NonEmptyStringSchema,
|
|
4761
|
+
summary: z.string(),
|
|
4762
|
+
state: AddonStateSchema,
|
|
4763
|
+
/** `bundled`: installed with NekroNXT; `system`: found on this device; `downloaded`: fetched by NekroNXT. */
|
|
4576
4764
|
source: z.enum([
|
|
4577
|
-
"
|
|
4765
|
+
"bundled",
|
|
4578
4766
|
"system",
|
|
4579
|
-
"downloaded"
|
|
4767
|
+
"downloaded",
|
|
4768
|
+
"cloud"
|
|
4580
4769
|
]).optional(),
|
|
4770
|
+
/** The installed version, or the one an install fetches. */
|
|
4581
4771
|
version: z.string().optional(),
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4772
|
+
resources: z.object({
|
|
4773
|
+
/** Approximate for this system and processor. */
|
|
4774
|
+
downloadBytes: z.number().int().nonnegative().optional(),
|
|
4775
|
+
/** Measured from its own folder after install. */
|
|
4776
|
+
installedBytes: z.number().int().nonnegative().optional(),
|
|
4777
|
+
memoryBytes: z.number().int().nonnegative().optional(),
|
|
4778
|
+
/** Short differences worth comparing, such as languages or speed. */
|
|
4779
|
+
notes: z.array(z.string()).default([])
|
|
4780
|
+
}).strict(),
|
|
4781
|
+
/** One entry per component that carries its own license. */
|
|
4782
|
+
licenses: z.array(z.object({
|
|
4783
|
+
component: z.string().optional(),
|
|
4784
|
+
name: NonEmptyStringSchema,
|
|
4785
|
+
url: z.url()
|
|
4786
|
+
}).strict()).default([]),
|
|
4787
|
+
/** Where downloads come from, for display. */
|
|
4788
|
+
sources: z.array(z.string()).default([]),
|
|
4789
|
+
progress: AddonProgressSchema.optional(),
|
|
4790
|
+
error: z.string().optional(),
|
|
4791
|
+
/** Other add-ons it needs to work. */
|
|
4792
|
+
dependsOn: z.array(AddonIdSchema).default([]),
|
|
4793
|
+
installable: z.boolean(),
|
|
4794
|
+
removable: z.boolean()
|
|
4795
|
+
}).strict();
|
|
4796
|
+
/** One add-on (a capability) as 设置 → 附加功能 shows it; the registry on the server is its only source. */
|
|
4797
|
+
const AddonStatusSchema = z.object({
|
|
4798
|
+
id: AddonIdSchema,
|
|
4799
|
+
group: AddonGroupSchema,
|
|
4800
|
+
title: NonEmptyStringSchema,
|
|
4801
|
+
summary: z.string(),
|
|
4802
|
+
/** Who relies on it, as labels people recognise. */
|
|
4803
|
+
usedBy: z.array(z.string()),
|
|
4804
|
+
/** The selected provider's state, or, while none can be used, the one closest to usable. */
|
|
4805
|
+
state: AddonStateSchema,
|
|
4806
|
+
progress: AddonProgressSchema.optional(),
|
|
4807
|
+
/** The provider in use; absent while none can be used. */
|
|
4808
|
+
selected: NonEmptyStringSchema.optional(),
|
|
4809
|
+
/** In declared order; providers that do not exist on this device are left out. */
|
|
4810
|
+
providers: z.array(AddonProviderStatusSchema)
|
|
4811
|
+
}).strict();
|
|
4812
|
+
/** Languages speech recognition can be asked for; `auto` lets the provider tell. */
|
|
4813
|
+
const SpeechLanguageSchema = z.enum([
|
|
4814
|
+
"auto",
|
|
4815
|
+
"zh",
|
|
4816
|
+
"en",
|
|
4817
|
+
"ja",
|
|
4818
|
+
"ko",
|
|
4819
|
+
"yue"
|
|
4820
|
+
]);
|
|
4821
|
+
/** The cloud provider of the `speech` add-on: a provider from 设置 → 模型 and the transcription model it serves. */
|
|
4822
|
+
const SpeechCloudSettingsSchema = z.object({
|
|
4823
|
+
provider: NonEmptyStringSchema,
|
|
4824
|
+
model: z.string().trim().min(1).max(200),
|
|
4825
|
+
/** Used when a caller does not name a language. */
|
|
4826
|
+
language: SpeechLanguageSchema.optional()
|
|
4827
|
+
}).strict();
|
|
4828
|
+
const SpeechSettingsSchema = z.object({
|
|
4829
|
+
cloud: SpeechCloudSettingsSchema.nullable(),
|
|
4830
|
+
/** Configured providers with an OpenAI-compatible address, the ones cloud transcription can use. */
|
|
4831
|
+
providers: z.array(z.object({
|
|
4832
|
+
provider: NonEmptyStringSchema,
|
|
4833
|
+
displayName: z.string()
|
|
4834
|
+
}).strict())
|
|
4593
4835
|
}).strict();
|
|
4594
|
-
/**
|
|
4595
|
-
const
|
|
4596
|
-
/** The optional headless Chromium that loads and checks creation candidates when no page is open. */
|
|
4597
|
-
const VerificationBrowserAvailabilitySchema = CodeRunAvailabilitySchema;
|
|
4836
|
+
/** Whether a capability that needs an add-on can run now; details live in `addons`. */
|
|
4837
|
+
const AddonAvailabilitySchema = z.object({ available: z.boolean() }).strict();
|
|
4598
4838
|
/** A platform's own program that linked accounts work through, such as the GitHub CLI. */
|
|
4599
4839
|
const LinkedAccountPlatformToolSchema = z.object({
|
|
4600
|
-
/** The
|
|
4840
|
+
/** The add-on it is installed as (`AddonStatus.id`). */
|
|
4601
4841
|
id: z.enum(["github-cli"]),
|
|
4602
|
-
name: z.string()
|
|
4603
|
-
availability: GithubCliAvailabilitySchema
|
|
4842
|
+
name: z.string()
|
|
4604
4843
|
}).strict();
|
|
4605
4844
|
/** 设置 → 关联账号: every platform the host supports, with its accounts and tools. */
|
|
4606
4845
|
const LinkedAccountsViewSchema = z.object({
|
|
@@ -4635,7 +4874,9 @@ const ExtensionRequestSchema = z.object({
|
|
|
4635
4874
|
"rejected",
|
|
4636
4875
|
"expired",
|
|
4637
4876
|
"completed",
|
|
4638
|
-
"failed"
|
|
4877
|
+
"failed",
|
|
4878
|
+
"superseded",
|
|
4879
|
+
"withdrawn"
|
|
4639
4880
|
]),
|
|
4640
4881
|
autonomous: z.boolean(),
|
|
4641
4882
|
resultMessage: z.string().nullable(),
|
|
@@ -4676,12 +4917,14 @@ const HostSnapshotSchema = z.object({
|
|
|
4676
4917
|
}).strict()),
|
|
4677
4918
|
capabilityAvailability: z.object({
|
|
4678
4919
|
subagents: z.object({ available: z.boolean() }).strict(),
|
|
4679
|
-
/**
|
|
4680
|
-
codeRun:
|
|
4681
|
-
/**
|
|
4682
|
-
githubCli:
|
|
4683
|
-
/**
|
|
4684
|
-
verificationBrowser:
|
|
4920
|
+
/** The `node` add-on that `run_code` needs. */
|
|
4921
|
+
codeRun: AddonAvailabilitySchema.optional(),
|
|
4922
|
+
/** The `github-cli` add-on that commands use with a GitHub account. */
|
|
4923
|
+
githubCli: AddonAvailabilitySchema.optional(),
|
|
4924
|
+
/** The `browser` add-on that checks candidates when no page is open. */
|
|
4925
|
+
verificationBrowser: AddonAvailabilitySchema.optional(),
|
|
4926
|
+
/** The `speech` add-on that voice message transcription needs. */
|
|
4927
|
+
speechRecognition: AddonAvailabilitySchema.optional(),
|
|
4685
4928
|
/** What this host can confine for commands beyond file writes; optional in older hosts. */
|
|
4686
4929
|
commandConfinement: z.object({
|
|
4687
4930
|
readScope: z.boolean(),
|
|
@@ -5076,6 +5319,7 @@ const HostSnapshotSchema = z.object({
|
|
|
5076
5319
|
authoringTasks: z.array(AuthoringTaskSummarySchema).default([]),
|
|
5077
5320
|
/** Open sub-conversations, and the most recently ended ones of each channel. */
|
|
5078
5321
|
subConversations: z.array(SubConversationSchema).default([]),
|
|
5322
|
+
addons: z.array(AddonStatusSchema).default([]),
|
|
5079
5323
|
scheduledTasks: z.array(ScheduledTaskSchema).default([]),
|
|
5080
5324
|
/** Extension requests waiting for an administrator. */
|
|
5081
5325
|
extensionRequests: z.array(ExtensionRequestSchema).default([])
|
|
@@ -5204,6 +5448,8 @@ const DshPluginCatalogEntrySchema = z.object({
|
|
|
5204
5448
|
]).optional(),
|
|
5205
5449
|
/** Published by the DSH maintainers on npm for the DSH release this build runs. */
|
|
5206
5450
|
official: z.boolean().optional(),
|
|
5451
|
+
/** Third-party installed plugins: whether an administrator allowed them to submit images to the model. */
|
|
5452
|
+
imageSubmission: z.boolean().optional(),
|
|
5207
5453
|
installedAt: z.number().int().safe().nonnegative().optional(),
|
|
5208
5454
|
clientUiDetected: z.boolean().optional(),
|
|
5209
5455
|
hostUi: DshNxtHostUiSchema.optional(),
|
|
@@ -5593,6 +5839,20 @@ const agentExtensionParam = z.object({
|
|
|
5593
5839
|
extensionId: ExtensionIdSchema
|
|
5594
5840
|
}).strict();
|
|
5595
5841
|
const PermissionApprovalSchema = z.object({ permissionDigest: z.string().regex(/^[a-f0-9]{64}$/u) }).strict();
|
|
5842
|
+
/**
|
|
5843
|
+
* What keeps a version from being cleaned up: in use, enabled for an agent, released to a community, kept by hand,
|
|
5844
|
+
* the start of a branch, the base of an open revision, needed by 回到上一个版本, or named by a pending request.
|
|
5845
|
+
*/
|
|
5846
|
+
const ExtensionRevisionProtectionSchema = z.enum([
|
|
5847
|
+
"installed",
|
|
5848
|
+
"active",
|
|
5849
|
+
"released",
|
|
5850
|
+
"kept",
|
|
5851
|
+
"branch",
|
|
5852
|
+
"revising",
|
|
5853
|
+
"undo",
|
|
5854
|
+
"request"
|
|
5855
|
+
]);
|
|
5596
5856
|
/** One version of one line in the lineage view of an extension family. */
|
|
5597
5857
|
const ExtensionLineageNodeSchema = z.object({
|
|
5598
5858
|
revisionId: ExtensionRevisionIdSchema,
|
|
@@ -5607,7 +5867,11 @@ const ExtensionLineageNodeSchema = z.object({
|
|
|
5607
5867
|
]),
|
|
5608
5868
|
createdAt: z.number().int().nonnegative(),
|
|
5609
5869
|
current: z.boolean(),
|
|
5610
|
-
releaseNumbers: z.array(z.number().int().positive())
|
|
5870
|
+
releaseNumbers: z.array(z.number().int().positive()),
|
|
5871
|
+
/** Marked by an administrator to keep. */
|
|
5872
|
+
kept: z.boolean(),
|
|
5873
|
+
/** Why the version cannot be cleaned up; absent when it can. */
|
|
5874
|
+
protectedBy: ExtensionRevisionProtectionSchema.optional()
|
|
5611
5875
|
}).strict();
|
|
5612
5876
|
/** Every line of the family an extension belongs to: the original and every branch of a branch on this machine. */
|
|
5613
5877
|
const ExtensionLineageSchema = z.object({ lines: z.array(z.object({
|
|
@@ -6640,74 +6904,61 @@ const HostApiContracts = {
|
|
|
6640
6904
|
response: RetrievalStatusSchema,
|
|
6641
6905
|
error: HostApiErrorSchema
|
|
6642
6906
|
}),
|
|
6643
|
-
|
|
6644
|
-
method: "
|
|
6645
|
-
path: "/api/settings/
|
|
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",
|
|
6907
|
+
getSpeechSettings: defineContract({
|
|
6908
|
+
method: "GET",
|
|
6909
|
+
path: "/api/settings/speech",
|
|
6654
6910
|
params: EmptyParamsSchema,
|
|
6655
6911
|
request: NoRequestBodySchema,
|
|
6656
|
-
response:
|
|
6912
|
+
response: SpeechSettingsSchema,
|
|
6657
6913
|
error: HostApiErrorSchema
|
|
6658
6914
|
}),
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
path: "/api/runtimes/code-run-node/download",
|
|
6915
|
+
updateSpeechSettings: defineContract({
|
|
6916
|
+
method: "PUT",
|
|
6917
|
+
path: "/api/settings/speech",
|
|
6663
6918
|
params: EmptyParamsSchema,
|
|
6664
|
-
request:
|
|
6665
|
-
response:
|
|
6919
|
+
request: z.object({ cloud: SpeechCloudSettingsSchema.nullable() }).strict(),
|
|
6920
|
+
response: SpeechSettingsSchema,
|
|
6666
6921
|
error: HostApiErrorSchema
|
|
6667
6922
|
}),
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
path: "/api/runtimes/code-run-node",
|
|
6923
|
+
listAddons: defineContract({
|
|
6924
|
+
method: "GET",
|
|
6925
|
+
path: "/api/addons",
|
|
6672
6926
|
params: EmptyParamsSchema,
|
|
6673
6927
|
request: NoRequestBodySchema,
|
|
6674
|
-
response:
|
|
6928
|
+
response: z.object({ addons: z.array(AddonStatusSchema) }).strict(),
|
|
6675
6929
|
error: HostApiErrorSchema
|
|
6676
6930
|
}),
|
|
6677
|
-
|
|
6931
|
+
installAddonProvider: defineContract({
|
|
6678
6932
|
invalidatesSnapshot: true,
|
|
6679
6933
|
method: "POST",
|
|
6680
|
-
path: "/api/
|
|
6681
|
-
params:
|
|
6934
|
+
path: "/api/addons/:id/providers/:provider/install",
|
|
6935
|
+
params: z.object({
|
|
6936
|
+
id: AddonIdSchema,
|
|
6937
|
+
provider: NonEmptyStringSchema
|
|
6938
|
+
}).strict(),
|
|
6682
6939
|
request: NoRequestBodySchema,
|
|
6683
|
-
response:
|
|
6940
|
+
response: AddonStatusSchema,
|
|
6684
6941
|
error: HostApiErrorSchema
|
|
6685
6942
|
}),
|
|
6686
|
-
|
|
6943
|
+
removeAddonProvider: defineContract({
|
|
6687
6944
|
invalidatesSnapshot: true,
|
|
6688
6945
|
method: "DELETE",
|
|
6689
|
-
path: "/api/
|
|
6690
|
-
params:
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
}),
|
|
6695
|
-
downloadVerificationBrowser: defineContract({
|
|
6696
|
-
invalidatesSnapshot: true,
|
|
6697
|
-
method: "POST",
|
|
6698
|
-
path: "/api/runtimes/verification-browser/download",
|
|
6699
|
-
params: EmptyParamsSchema,
|
|
6946
|
+
path: "/api/addons/:id/providers/:provider",
|
|
6947
|
+
params: z.object({
|
|
6948
|
+
id: AddonIdSchema,
|
|
6949
|
+
provider: NonEmptyStringSchema
|
|
6950
|
+
}).strict(),
|
|
6700
6951
|
request: NoRequestBodySchema,
|
|
6701
|
-
response:
|
|
6952
|
+
response: AddonStatusSchema,
|
|
6702
6953
|
error: HostApiErrorSchema
|
|
6703
6954
|
}),
|
|
6704
|
-
|
|
6955
|
+
selectAddonProvider: defineContract({
|
|
6705
6956
|
invalidatesSnapshot: true,
|
|
6706
|
-
method: "
|
|
6707
|
-
path: "/api/
|
|
6708
|
-
params:
|
|
6709
|
-
request:
|
|
6710
|
-
response:
|
|
6957
|
+
method: "PUT",
|
|
6958
|
+
path: "/api/addons/:id/selection",
|
|
6959
|
+
params: z.object({ id: AddonIdSchema }).strict(),
|
|
6960
|
+
request: z.object({ provider: NonEmptyStringSchema }).strict(),
|
|
6961
|
+
response: AddonStatusSchema,
|
|
6711
6962
|
error: HostApiErrorSchema
|
|
6712
6963
|
}),
|
|
6713
6964
|
getLinkedAccounts: defineContract({
|
|
@@ -7118,6 +7369,14 @@ const HostApiContracts = {
|
|
|
7118
7369
|
response: z.object({ disabled: z.literal(true) }).strict(),
|
|
7119
7370
|
error: HostApiErrorSchema
|
|
7120
7371
|
}),
|
|
7372
|
+
setDshPluginImageSubmission: defineContract({
|
|
7373
|
+
method: "PUT",
|
|
7374
|
+
path: "/api/dsh/plugin-installs/:packageId/image-submission",
|
|
7375
|
+
params: dshPluginPackageParam,
|
|
7376
|
+
request: z.object({ allowed: z.boolean() }).strict(),
|
|
7377
|
+
response: z.object({ allowed: z.boolean() }).strict(),
|
|
7378
|
+
error: HostApiErrorSchema
|
|
7379
|
+
}),
|
|
7121
7380
|
removeDshPluginPackage: defineContract({
|
|
7122
7381
|
invalidatesSnapshot: true,
|
|
7123
7382
|
method: "DELETE",
|
|
@@ -8290,6 +8549,21 @@ upTo: z.object({
|
|
|
8290
8549
|
}).strict(),
|
|
8291
8550
|
error: HostApiErrorSchema
|
|
8292
8551
|
}),
|
|
8552
|
+
dismissAttentionBatch: defineContract({
|
|
8553
|
+
method: "POST",
|
|
8554
|
+
path: "/api/attention/dismiss",
|
|
8555
|
+
params: EmptyParamsSchema,
|
|
8556
|
+
request: z.object({
|
|
8557
|
+
ids: z.array(z.string().min(1).max(200)).max(200),
|
|
8558
|
+
/** Causes to keep quiet until they recover; new items of these causes are not shown meanwhile. */
|
|
8559
|
+
causes: z.array(z.string().min(1).max(200)).max(200)
|
|
8560
|
+
}).strict(),
|
|
8561
|
+
response: z.object({
|
|
8562
|
+
dismissed: z.literal(true),
|
|
8563
|
+
revision: z.string().min(1)
|
|
8564
|
+
}).strict(),
|
|
8565
|
+
error: HostApiErrorSchema
|
|
8566
|
+
}),
|
|
8293
8567
|
getChannelPending: defineContract({
|
|
8294
8568
|
method: "GET",
|
|
8295
8569
|
path: "/api/channels/:channelId/pending",
|
|
@@ -8415,6 +8689,26 @@ upTo: z.object({
|
|
|
8415
8689
|
response: ExtensionLineageSchema,
|
|
8416
8690
|
error: HostApiErrorSchema
|
|
8417
8691
|
}),
|
|
8692
|
+
setExtensionRevisionKept: defineContract({
|
|
8693
|
+
method: "POST",
|
|
8694
|
+
path: "/api/extensions/:extensionId/revisions/:revisionId/keep",
|
|
8695
|
+
params: z.object({
|
|
8696
|
+
extensionId: ExtensionIdSchema,
|
|
8697
|
+
revisionId: ExtensionRevisionIdSchema
|
|
8698
|
+
}).strict(),
|
|
8699
|
+
request: z.object({ kept: z.boolean() }).strict(),
|
|
8700
|
+
response: z.object({ kept: z.boolean() }).strict(),
|
|
8701
|
+
error: HostApiErrorSchema
|
|
8702
|
+
}),
|
|
8703
|
+
deleteExtensionRevisions: defineContract({
|
|
8704
|
+
invalidatesSnapshot: true,
|
|
8705
|
+
method: "POST",
|
|
8706
|
+
path: "/api/extensions/:extensionId/revisions/delete",
|
|
8707
|
+
params: extensionParam,
|
|
8708
|
+
request: z.object({ revisionIds: z.array(ExtensionRevisionIdSchema).min(1).max(200) }).strict(),
|
|
8709
|
+
response: z.object({ deleted: z.number().int().nonnegative() }).strict(),
|
|
8710
|
+
error: HostApiErrorSchema
|
|
8711
|
+
}),
|
|
8418
8712
|
branchExtension: defineContract({
|
|
8419
8713
|
invalidatesSnapshot: true,
|
|
8420
8714
|
timeoutMs: 3e5,
|
|
@@ -8631,6 +8925,6 @@ function buildHostApiPath(name, input) {
|
|
|
8631
8925
|
return buildValidatedHostApiPath(HostApiContracts[name], input);
|
|
8632
8926
|
}
|
|
8633
8927
|
//#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 };
|
|
8928
|
+
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_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, 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
8929
|
|
|
8636
8930
|
//# sourceMappingURL=index.mjs.map
|