@perstack/core 0.0.56 → 0.0.58
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/src/index.d.ts +455 -393
- package/dist/src/index.js +81 -6
- package/dist/src/index.js.map +1 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -925,6 +925,238 @@ declare const checkpointSchema: z.ZodObject<{
|
|
|
925
925
|
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
926
926
|
}, z.core.$strip>;
|
|
927
927
|
//#endregion
|
|
928
|
+
//#region src/schemas/provider-config.d.ts
|
|
929
|
+
/** HTTP headers for API requests */
|
|
930
|
+
type Headers = Record<string, string> | undefined;
|
|
931
|
+
declare const headersSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
932
|
+
/** Supported LLM provider names */
|
|
933
|
+
type ProviderName = "anthropic" | "google" | "openai" | "ollama" | "azure-openai" | "amazon-bedrock" | "google-vertex" | "deepseek";
|
|
934
|
+
declare const providerNameSchema: z.ZodEnum<{
|
|
935
|
+
anthropic: "anthropic";
|
|
936
|
+
google: "google";
|
|
937
|
+
openai: "openai";
|
|
938
|
+
deepseek: "deepseek";
|
|
939
|
+
ollama: "ollama";
|
|
940
|
+
"azure-openai": "azure-openai";
|
|
941
|
+
"amazon-bedrock": "amazon-bedrock";
|
|
942
|
+
"google-vertex": "google-vertex";
|
|
943
|
+
}>;
|
|
944
|
+
/** Anthropic provider configuration */
|
|
945
|
+
interface AnthropicProviderConfig {
|
|
946
|
+
providerName: "anthropic";
|
|
947
|
+
/** API key for Anthropic */
|
|
948
|
+
apiKey: string;
|
|
949
|
+
/** Custom base URL */
|
|
950
|
+
baseUrl?: string;
|
|
951
|
+
/** Custom headers */
|
|
952
|
+
headers?: Headers;
|
|
953
|
+
}
|
|
954
|
+
declare const anthropicProviderConfigSchema: z.ZodObject<{
|
|
955
|
+
providerName: z.ZodLiteral<"anthropic">;
|
|
956
|
+
apiKey: z.ZodString;
|
|
957
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
958
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
959
|
+
}, z.core.$strip>;
|
|
960
|
+
/** Google Generative AI provider configuration */
|
|
961
|
+
interface GoogleGenerativeAiProviderConfig {
|
|
962
|
+
providerName: "google";
|
|
963
|
+
/** API key for Google */
|
|
964
|
+
apiKey: string;
|
|
965
|
+
/** Custom base URL */
|
|
966
|
+
baseUrl?: string;
|
|
967
|
+
/** Custom headers */
|
|
968
|
+
headers?: Headers;
|
|
969
|
+
}
|
|
970
|
+
declare const googleGenerativeAiProviderConfigSchema: z.ZodObject<{
|
|
971
|
+
providerName: z.ZodLiteral<"google">;
|
|
972
|
+
apiKey: z.ZodString;
|
|
973
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
974
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
975
|
+
}, z.core.$strip>;
|
|
976
|
+
/** OpenAI provider configuration */
|
|
977
|
+
interface OpenAiProviderConfig {
|
|
978
|
+
providerName: "openai";
|
|
979
|
+
/** API key for OpenAI */
|
|
980
|
+
apiKey: string;
|
|
981
|
+
/** Custom base URL */
|
|
982
|
+
baseUrl?: string;
|
|
983
|
+
/** Organization ID */
|
|
984
|
+
organization?: string;
|
|
985
|
+
/** Project ID */
|
|
986
|
+
project?: string;
|
|
987
|
+
/** Custom name for the provider instance */
|
|
988
|
+
name?: string;
|
|
989
|
+
/** Custom headers */
|
|
990
|
+
headers?: Headers;
|
|
991
|
+
}
|
|
992
|
+
declare const openAiProviderConfigSchema: z.ZodObject<{
|
|
993
|
+
providerName: z.ZodLiteral<"openai">;
|
|
994
|
+
apiKey: z.ZodString;
|
|
995
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
996
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
997
|
+
project: z.ZodOptional<z.ZodString>;
|
|
998
|
+
name: z.ZodOptional<z.ZodString>;
|
|
999
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1000
|
+
}, z.core.$strip>;
|
|
1001
|
+
/** Ollama provider configuration */
|
|
1002
|
+
interface OllamaProviderConfig {
|
|
1003
|
+
providerName: "ollama";
|
|
1004
|
+
/** Custom base URL (defaults to localhost) */
|
|
1005
|
+
baseUrl?: string;
|
|
1006
|
+
/** Custom headers */
|
|
1007
|
+
headers?: Headers;
|
|
1008
|
+
}
|
|
1009
|
+
declare const ollamaProviderConfigSchema: z.ZodObject<{
|
|
1010
|
+
providerName: z.ZodLiteral<"ollama">;
|
|
1011
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1012
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1013
|
+
}, z.core.$strip>;
|
|
1014
|
+
/** Azure OpenAI provider configuration */
|
|
1015
|
+
interface AzureOpenAiProviderConfig {
|
|
1016
|
+
providerName: "azure-openai";
|
|
1017
|
+
/** API key for Azure */
|
|
1018
|
+
apiKey: string;
|
|
1019
|
+
/** Azure resource name */
|
|
1020
|
+
resourceName?: string;
|
|
1021
|
+
/** API version */
|
|
1022
|
+
apiVersion?: string;
|
|
1023
|
+
/** Custom base URL */
|
|
1024
|
+
baseUrl?: string;
|
|
1025
|
+
/** Custom headers */
|
|
1026
|
+
headers?: Headers;
|
|
1027
|
+
/** Use deployment-based URLs */
|
|
1028
|
+
useDeploymentBasedUrls?: boolean;
|
|
1029
|
+
}
|
|
1030
|
+
declare const azureOpenAiProviderConfigSchema: z.ZodObject<{
|
|
1031
|
+
providerName: z.ZodLiteral<"azure-openai">;
|
|
1032
|
+
apiKey: z.ZodString;
|
|
1033
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
1034
|
+
apiVersion: z.ZodOptional<z.ZodString>;
|
|
1035
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1036
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1037
|
+
useDeploymentBasedUrls: z.ZodOptional<z.ZodBoolean>;
|
|
1038
|
+
}, z.core.$strip>;
|
|
1039
|
+
/** Amazon Bedrock provider configuration */
|
|
1040
|
+
interface AmazonBedrockProviderConfig {
|
|
1041
|
+
providerName: "amazon-bedrock";
|
|
1042
|
+
/** AWS access key ID */
|
|
1043
|
+
accessKeyId: string;
|
|
1044
|
+
/** AWS secret access key */
|
|
1045
|
+
secretAccessKey: string;
|
|
1046
|
+
/** AWS region */
|
|
1047
|
+
region: string;
|
|
1048
|
+
/** AWS session token (for temporary credentials) */
|
|
1049
|
+
sessionToken?: string;
|
|
1050
|
+
}
|
|
1051
|
+
declare const amazonBedrockProviderConfigSchema: z.ZodObject<{
|
|
1052
|
+
providerName: z.ZodLiteral<"amazon-bedrock">;
|
|
1053
|
+
accessKeyId: z.ZodString;
|
|
1054
|
+
secretAccessKey: z.ZodString;
|
|
1055
|
+
region: z.ZodString;
|
|
1056
|
+
sessionToken: z.ZodOptional<z.ZodString>;
|
|
1057
|
+
}, z.core.$strip>;
|
|
1058
|
+
/** Google Vertex AI provider configuration */
|
|
1059
|
+
interface GoogleVertexProviderConfig {
|
|
1060
|
+
providerName: "google-vertex";
|
|
1061
|
+
/** GCP project ID */
|
|
1062
|
+
project?: string;
|
|
1063
|
+
/** GCP location */
|
|
1064
|
+
location?: string;
|
|
1065
|
+
/** Custom base URL */
|
|
1066
|
+
baseUrl?: string;
|
|
1067
|
+
/** Custom headers */
|
|
1068
|
+
headers?: Headers;
|
|
1069
|
+
}
|
|
1070
|
+
declare const googleVertexProviderConfigSchema: z.ZodObject<{
|
|
1071
|
+
providerName: z.ZodLiteral<"google-vertex">;
|
|
1072
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1073
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1074
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1075
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1076
|
+
}, z.core.$strip>;
|
|
1077
|
+
/** DeepSeek provider configuration */
|
|
1078
|
+
interface DeepseekProviderConfig {
|
|
1079
|
+
providerName: "deepseek";
|
|
1080
|
+
/** API key for DeepSeek */
|
|
1081
|
+
apiKey: string;
|
|
1082
|
+
/** Custom base URL */
|
|
1083
|
+
baseUrl?: string;
|
|
1084
|
+
/** Custom headers */
|
|
1085
|
+
headers?: Headers;
|
|
1086
|
+
}
|
|
1087
|
+
declare const deepseekProviderConfigSchema: z.ZodObject<{
|
|
1088
|
+
providerName: z.ZodLiteral<"deepseek">;
|
|
1089
|
+
apiKey: z.ZodString;
|
|
1090
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1091
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1092
|
+
}, z.core.$strip>;
|
|
1093
|
+
/** Union of all provider configurations */
|
|
1094
|
+
type ProviderConfig = AnthropicProviderConfig | GoogleGenerativeAiProviderConfig | OpenAiProviderConfig | OllamaProviderConfig | AzureOpenAiProviderConfig | AmazonBedrockProviderConfig | GoogleVertexProviderConfig | DeepseekProviderConfig;
|
|
1095
|
+
declare const providerConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1096
|
+
providerName: z.ZodLiteral<"anthropic">;
|
|
1097
|
+
apiKey: z.ZodString;
|
|
1098
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1099
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1100
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1101
|
+
providerName: z.ZodLiteral<"google">;
|
|
1102
|
+
apiKey: z.ZodString;
|
|
1103
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1104
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1106
|
+
providerName: z.ZodLiteral<"openai">;
|
|
1107
|
+
apiKey: z.ZodString;
|
|
1108
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1109
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
1110
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1111
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1112
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1113
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1114
|
+
providerName: z.ZodLiteral<"ollama">;
|
|
1115
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1116
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1117
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1118
|
+
providerName: z.ZodLiteral<"azure-openai">;
|
|
1119
|
+
apiKey: z.ZodString;
|
|
1120
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
1121
|
+
apiVersion: z.ZodOptional<z.ZodString>;
|
|
1122
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1123
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1124
|
+
useDeploymentBasedUrls: z.ZodOptional<z.ZodBoolean>;
|
|
1125
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1126
|
+
providerName: z.ZodLiteral<"amazon-bedrock">;
|
|
1127
|
+
accessKeyId: z.ZodString;
|
|
1128
|
+
secretAccessKey: z.ZodString;
|
|
1129
|
+
region: z.ZodString;
|
|
1130
|
+
sessionToken: z.ZodOptional<z.ZodString>;
|
|
1131
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1132
|
+
providerName: z.ZodLiteral<"google-vertex">;
|
|
1133
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1134
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1135
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1136
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1137
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1138
|
+
providerName: z.ZodLiteral<"deepseek">;
|
|
1139
|
+
apiKey: z.ZodString;
|
|
1140
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1141
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1142
|
+
}, z.core.$strip>], "providerName">;
|
|
1143
|
+
//#endregion
|
|
1144
|
+
//#region src/known-models/model-tiers.d.ts
|
|
1145
|
+
/** Model tier for provider-aware model selection */
|
|
1146
|
+
type ModelTier = "low" | "middle" | "high";
|
|
1147
|
+
declare const modelTierSchema: z.ZodEnum<{
|
|
1148
|
+
low: "low";
|
|
1149
|
+
middle: "middle";
|
|
1150
|
+
high: "high";
|
|
1151
|
+
}>;
|
|
1152
|
+
/**
|
|
1153
|
+
* Resolve a model tier to a concrete model name for the given provider.
|
|
1154
|
+
* Returns the first model matching the tier in the provider's known models list.
|
|
1155
|
+
* For cloud-hosted providers (azure-openai, amazon-bedrock, google-vertex),
|
|
1156
|
+
* falls back to their base provider's models.
|
|
1157
|
+
*/
|
|
1158
|
+
declare function resolveModelTier(providerName: ProviderName, tier: ModelTier): string | undefined;
|
|
1159
|
+
//#endregion
|
|
928
1160
|
//#region src/schemas/provider-tools.d.ts
|
|
929
1161
|
declare const anthropicProviderToolNameSchema: z.ZodEnum<{
|
|
930
1162
|
webSearch: "webSearch";
|
|
@@ -1193,6 +1425,8 @@ interface Expert {
|
|
|
1193
1425
|
tags: string[];
|
|
1194
1426
|
/** Minimum runtime version required to run this Expert */
|
|
1195
1427
|
minRuntimeVersion: RuntimeVersion;
|
|
1428
|
+
/** Default model tier for provider-aware model selection ("low", "middle", "high") */
|
|
1429
|
+
defaultModelTier?: ModelTier;
|
|
1196
1430
|
/** Provider-specific tool names to enable (e.g., "webSearch", "codeExecution") */
|
|
1197
1431
|
providerTools?: string[];
|
|
1198
1432
|
/** Anthropic Agent Skills configuration */
|
|
@@ -1213,11 +1447,11 @@ declare const expertBaseSchema: z.ZodObject<{
|
|
|
1213
1447
|
skills: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1214
1448
|
type: z.ZodLiteral<"mcpStdioSkill">;
|
|
1215
1449
|
args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1216
|
-
command: z.ZodString;
|
|
1217
1450
|
description: z.ZodOptional<z.ZodString>;
|
|
1218
1451
|
rule: z.ZodOptional<z.ZodString>;
|
|
1219
1452
|
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1220
1453
|
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1454
|
+
command: z.ZodString;
|
|
1221
1455
|
packageName: z.ZodOptional<z.ZodString>;
|
|
1222
1456
|
requiredEnv: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1223
1457
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1229,6 +1463,8 @@ declare const expertBaseSchema: z.ZodObject<{
|
|
|
1229
1463
|
endpoint: z.ZodString;
|
|
1230
1464
|
}, z.core.$strip>, z.ZodObject<{
|
|
1231
1465
|
type: z.ZodLiteral<"interactiveSkill">;
|
|
1466
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1467
|
+
rule: z.ZodOptional<z.ZodString>;
|
|
1232
1468
|
tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1233
1469
|
description: z.ZodOptional<z.ZodString>;
|
|
1234
1470
|
inputJsonSchema: z.ZodString;
|
|
@@ -1242,8 +1478,6 @@ declare const expertBaseSchema: z.ZodObject<{
|
|
|
1242
1478
|
inputJsonSchema: string;
|
|
1243
1479
|
description?: string | undefined;
|
|
1244
1480
|
}>>>;
|
|
1245
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1246
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
1247
1481
|
}, z.core.$strip>], "type">>>>, z.ZodTransform<{
|
|
1248
1482
|
[k: string]: {
|
|
1249
1483
|
type: "mcpStdioSkill";
|
|
@@ -1280,9 +1514,9 @@ declare const expertBaseSchema: z.ZodObject<{
|
|
|
1280
1514
|
}, Record<string, {
|
|
1281
1515
|
type: "mcpStdioSkill";
|
|
1282
1516
|
args: string[];
|
|
1283
|
-
command: string;
|
|
1284
1517
|
pick: string[];
|
|
1285
1518
|
omit: string[];
|
|
1519
|
+
command: string;
|
|
1286
1520
|
requiredEnv: string[];
|
|
1287
1521
|
description?: string | undefined;
|
|
1288
1522
|
rule?: string | undefined;
|
|
@@ -1309,6 +1543,11 @@ declare const expertBaseSchema: z.ZodObject<{
|
|
|
1309
1543
|
delegates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1310
1544
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1311
1545
|
minRuntimeVersion: z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<`v${number}.${number}`, string>>>;
|
|
1546
|
+
defaultModelTier: z.ZodOptional<z.ZodEnum<{
|
|
1547
|
+
low: "low";
|
|
1548
|
+
middle: "middle";
|
|
1549
|
+
high: "high";
|
|
1550
|
+
}>>;
|
|
1312
1551
|
providerTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1313
1552
|
providerSkills: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1314
1553
|
type: z.ZodLiteral<"builtin">;
|
|
@@ -1350,11 +1589,11 @@ declare const expertSchema: z.ZodObject<{
|
|
|
1350
1589
|
skills: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1351
1590
|
type: z.ZodLiteral<"mcpStdioSkill">;
|
|
1352
1591
|
args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1353
|
-
command: z.ZodString;
|
|
1354
1592
|
description: z.ZodOptional<z.ZodString>;
|
|
1355
1593
|
rule: z.ZodOptional<z.ZodString>;
|
|
1356
1594
|
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1357
1595
|
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1596
|
+
command: z.ZodString;
|
|
1358
1597
|
packageName: z.ZodOptional<z.ZodString>;
|
|
1359
1598
|
requiredEnv: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1360
1599
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1366,6 +1605,8 @@ declare const expertSchema: z.ZodObject<{
|
|
|
1366
1605
|
endpoint: z.ZodString;
|
|
1367
1606
|
}, z.core.$strip>, z.ZodObject<{
|
|
1368
1607
|
type: z.ZodLiteral<"interactiveSkill">;
|
|
1608
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1609
|
+
rule: z.ZodOptional<z.ZodString>;
|
|
1369
1610
|
tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1370
1611
|
description: z.ZodOptional<z.ZodString>;
|
|
1371
1612
|
inputJsonSchema: z.ZodString;
|
|
@@ -1379,8 +1620,6 @@ declare const expertSchema: z.ZodObject<{
|
|
|
1379
1620
|
inputJsonSchema: string;
|
|
1380
1621
|
description?: string | undefined;
|
|
1381
1622
|
}>>>;
|
|
1382
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1383
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
1384
1623
|
}, z.core.$strip>], "type">>>>, z.ZodTransform<{
|
|
1385
1624
|
[k: string]: {
|
|
1386
1625
|
type: "mcpStdioSkill";
|
|
@@ -1417,9 +1656,9 @@ declare const expertSchema: z.ZodObject<{
|
|
|
1417
1656
|
}, Record<string, {
|
|
1418
1657
|
type: "mcpStdioSkill";
|
|
1419
1658
|
args: string[];
|
|
1420
|
-
command: string;
|
|
1421
1659
|
pick: string[];
|
|
1422
1660
|
omit: string[];
|
|
1661
|
+
command: string;
|
|
1423
1662
|
requiredEnv: string[];
|
|
1424
1663
|
description?: string | undefined;
|
|
1425
1664
|
rule?: string | undefined;
|
|
@@ -1446,6 +1685,11 @@ declare const expertSchema: z.ZodObject<{
|
|
|
1446
1685
|
delegates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1447
1686
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1448
1687
|
minRuntimeVersion: z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<`v${number}.${number}`, string>>>;
|
|
1688
|
+
defaultModelTier: z.ZodOptional<z.ZodEnum<{
|
|
1689
|
+
low: "low";
|
|
1690
|
+
middle: "middle";
|
|
1691
|
+
high: "high";
|
|
1692
|
+
}>>;
|
|
1449
1693
|
providerTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1450
1694
|
providerSkills: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1451
1695
|
type: z.ZodLiteral<"builtin">;
|
|
@@ -1481,11 +1725,11 @@ type ReasoningBudget = "none" | "minimal" | "low" | "medium" | "high" | number;
|
|
|
1481
1725
|
/** Default reasoning budget - enables extended thinking by default */
|
|
1482
1726
|
declare const defaultReasoningBudget: ReasoningBudget;
|
|
1483
1727
|
declare const reasoningBudgetSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1728
|
+
low: "low";
|
|
1729
|
+
high: "high";
|
|
1484
1730
|
none: "none";
|
|
1485
1731
|
minimal: "minimal";
|
|
1486
|
-
low: "low";
|
|
1487
1732
|
medium: "medium";
|
|
1488
|
-
high: "high";
|
|
1489
1733
|
}>, z.ZodNumber]>;
|
|
1490
1734
|
declare const domainPatternSchema: z.ZodString;
|
|
1491
1735
|
declare const anthropicSettingSchema: z.ZodObject<{
|
|
@@ -1648,6 +1892,8 @@ interface PerstackConfigExpert {
|
|
|
1648
1892
|
description?: string;
|
|
1649
1893
|
/** System instruction */
|
|
1650
1894
|
instruction: string;
|
|
1895
|
+
/** Default model tier for provider-aware model selection ("low", "middle", "high") */
|
|
1896
|
+
defaultModelTier?: ModelTier;
|
|
1651
1897
|
/** Skills configuration */
|
|
1652
1898
|
skills?: Record<string, PerstackConfigSkill>;
|
|
1653
1899
|
/** Delegates list */
|
|
@@ -1704,356 +1950,145 @@ interface PerstackConfig {
|
|
|
1704
1950
|
/** Paths to .env files */
|
|
1705
1951
|
envPath?: string[];
|
|
1706
1952
|
}
|
|
1707
|
-
declare const perstackConfigSchema: z.ZodObject<{
|
|
1708
|
-
provider: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1709
|
-
providerName: z.ZodLiteral<"anthropic">;
|
|
1710
|
-
setting: z.ZodOptional<z.ZodObject<{
|
|
1711
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1712
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1713
|
-
}, z.core.$strip>>;
|
|
1714
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1715
|
-
providerName: z.ZodLiteral<"google">;
|
|
1716
|
-
setting: z.ZodOptional<z.ZodObject<{
|
|
1717
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1718
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1719
|
-
}, z.core.$strip>>;
|
|
1720
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1721
|
-
providerName: z.ZodLiteral<"openai">;
|
|
1722
|
-
setting: z.ZodOptional<z.ZodObject<{
|
|
1723
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1724
|
-
organization: z.ZodOptional<z.ZodString>;
|
|
1725
|
-
project: z.ZodOptional<z.ZodString>;
|
|
1726
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1727
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1728
|
-
}, z.core.$strip>>;
|
|
1729
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1730
|
-
providerName: z.ZodLiteral<"ollama">;
|
|
1731
|
-
setting: z.ZodOptional<z.ZodObject<{
|
|
1732
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1733
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1734
|
-
}, z.core.$strip>>;
|
|
1735
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1736
|
-
providerName: z.ZodLiteral<"azure-openai">;
|
|
1737
|
-
setting: z.ZodOptional<z.ZodObject<{
|
|
1738
|
-
resourceName: z.ZodOptional<z.ZodString>;
|
|
1739
|
-
apiVersion: z.ZodOptional<z.ZodString>;
|
|
1740
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1741
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1742
|
-
useDeploymentBasedUrls: z.ZodOptional<z.ZodBoolean>;
|
|
1743
|
-
}, z.core.$strip>>;
|
|
1744
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1745
|
-
providerName: z.ZodLiteral<"amazon-bedrock">;
|
|
1746
|
-
setting: z.ZodOptional<z.ZodObject<{
|
|
1747
|
-
region: z.ZodOptional<z.ZodString>;
|
|
1748
|
-
}, z.core.$strip>>;
|
|
1749
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1750
|
-
providerName: z.ZodLiteral<"google-vertex">;
|
|
1751
|
-
setting: z.ZodOptional<z.ZodObject<{
|
|
1752
|
-
project: z.ZodOptional<z.ZodString>;
|
|
1753
|
-
location: z.ZodOptional<z.ZodString>;
|
|
1754
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1755
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1756
|
-
}, z.core.$strip>>;
|
|
1757
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1758
|
-
providerName: z.ZodLiteral<"deepseek">;
|
|
1759
|
-
setting: z.ZodOptional<z.ZodObject<{
|
|
1760
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1761
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1762
|
-
}, z.core.$strip>>;
|
|
1763
|
-
}, z.core.$strip>], "providerName">>;
|
|
1764
|
-
model: z.ZodOptional<z.ZodString>;
|
|
1765
|
-
reasoningBudget: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
}>, z.ZodNumber]>>;
|
|
1772
|
-
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
1773
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1774
|
-
experts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1775
|
-
version: z.ZodOptional<z.ZodString>;
|
|
1776
|
-
minRuntimeVersion: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`v${number}.${number}`, string>>>;
|
|
1777
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1778
|
-
instruction: z.ZodString;
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
}, z.core.$strip
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
declare const headersSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1846
|
-
/** Supported LLM provider names */
|
|
1847
|
-
type ProviderName = "anthropic" | "google" | "openai" | "ollama" | "azure-openai" | "amazon-bedrock" | "google-vertex" | "deepseek";
|
|
1848
|
-
declare const providerNameSchema: z.ZodEnum<{
|
|
1849
|
-
anthropic: "anthropic";
|
|
1850
|
-
google: "google";
|
|
1851
|
-
openai: "openai";
|
|
1852
|
-
deepseek: "deepseek";
|
|
1853
|
-
ollama: "ollama";
|
|
1854
|
-
"azure-openai": "azure-openai";
|
|
1855
|
-
"amazon-bedrock": "amazon-bedrock";
|
|
1856
|
-
"google-vertex": "google-vertex";
|
|
1857
|
-
}>;
|
|
1858
|
-
/** Anthropic provider configuration */
|
|
1859
|
-
interface AnthropicProviderConfig {
|
|
1860
|
-
providerName: "anthropic";
|
|
1861
|
-
/** API key for Anthropic */
|
|
1862
|
-
apiKey: string;
|
|
1863
|
-
/** Custom base URL */
|
|
1864
|
-
baseUrl?: string;
|
|
1865
|
-
/** Custom headers */
|
|
1866
|
-
headers?: Headers;
|
|
1867
|
-
}
|
|
1868
|
-
declare const anthropicProviderConfigSchema: z.ZodObject<{
|
|
1869
|
-
providerName: z.ZodLiteral<"anthropic">;
|
|
1870
|
-
apiKey: z.ZodString;
|
|
1871
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1872
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1873
|
-
}, z.core.$strip>;
|
|
1874
|
-
/** Google Generative AI provider configuration */
|
|
1875
|
-
interface GoogleGenerativeAiProviderConfig {
|
|
1876
|
-
providerName: "google";
|
|
1877
|
-
/** API key for Google */
|
|
1878
|
-
apiKey: string;
|
|
1879
|
-
/** Custom base URL */
|
|
1880
|
-
baseUrl?: string;
|
|
1881
|
-
/** Custom headers */
|
|
1882
|
-
headers?: Headers;
|
|
1883
|
-
}
|
|
1884
|
-
declare const googleGenerativeAiProviderConfigSchema: z.ZodObject<{
|
|
1885
|
-
providerName: z.ZodLiteral<"google">;
|
|
1886
|
-
apiKey: z.ZodString;
|
|
1887
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1888
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1889
|
-
}, z.core.$strip>;
|
|
1890
|
-
/** OpenAI provider configuration */
|
|
1891
|
-
interface OpenAiProviderConfig {
|
|
1892
|
-
providerName: "openai";
|
|
1893
|
-
/** API key for OpenAI */
|
|
1894
|
-
apiKey: string;
|
|
1895
|
-
/** Custom base URL */
|
|
1896
|
-
baseUrl?: string;
|
|
1897
|
-
/** Organization ID */
|
|
1898
|
-
organization?: string;
|
|
1899
|
-
/** Project ID */
|
|
1900
|
-
project?: string;
|
|
1901
|
-
/** Custom name for the provider instance */
|
|
1902
|
-
name?: string;
|
|
1903
|
-
/** Custom headers */
|
|
1904
|
-
headers?: Headers;
|
|
1905
|
-
}
|
|
1906
|
-
declare const openAiProviderConfigSchema: z.ZodObject<{
|
|
1907
|
-
providerName: z.ZodLiteral<"openai">;
|
|
1908
|
-
apiKey: z.ZodString;
|
|
1909
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1910
|
-
organization: z.ZodOptional<z.ZodString>;
|
|
1911
|
-
project: z.ZodOptional<z.ZodString>;
|
|
1912
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1913
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1914
|
-
}, z.core.$strip>;
|
|
1915
|
-
/** Ollama provider configuration */
|
|
1916
|
-
interface OllamaProviderConfig {
|
|
1917
|
-
providerName: "ollama";
|
|
1918
|
-
/** Custom base URL (defaults to localhost) */
|
|
1919
|
-
baseUrl?: string;
|
|
1920
|
-
/** Custom headers */
|
|
1921
|
-
headers?: Headers;
|
|
1922
|
-
}
|
|
1923
|
-
declare const ollamaProviderConfigSchema: z.ZodObject<{
|
|
1924
|
-
providerName: z.ZodLiteral<"ollama">;
|
|
1925
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1926
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1927
|
-
}, z.core.$strip>;
|
|
1928
|
-
/** Azure OpenAI provider configuration */
|
|
1929
|
-
interface AzureOpenAiProviderConfig {
|
|
1930
|
-
providerName: "azure-openai";
|
|
1931
|
-
/** API key for Azure */
|
|
1932
|
-
apiKey: string;
|
|
1933
|
-
/** Azure resource name */
|
|
1934
|
-
resourceName?: string;
|
|
1935
|
-
/** API version */
|
|
1936
|
-
apiVersion?: string;
|
|
1937
|
-
/** Custom base URL */
|
|
1938
|
-
baseUrl?: string;
|
|
1939
|
-
/** Custom headers */
|
|
1940
|
-
headers?: Headers;
|
|
1941
|
-
/** Use deployment-based URLs */
|
|
1942
|
-
useDeploymentBasedUrls?: boolean;
|
|
1943
|
-
}
|
|
1944
|
-
declare const azureOpenAiProviderConfigSchema: z.ZodObject<{
|
|
1945
|
-
providerName: z.ZodLiteral<"azure-openai">;
|
|
1946
|
-
apiKey: z.ZodString;
|
|
1947
|
-
resourceName: z.ZodOptional<z.ZodString>;
|
|
1948
|
-
apiVersion: z.ZodOptional<z.ZodString>;
|
|
1949
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1950
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1951
|
-
useDeploymentBasedUrls: z.ZodOptional<z.ZodBoolean>;
|
|
1952
|
-
}, z.core.$strip>;
|
|
1953
|
-
/** Amazon Bedrock provider configuration */
|
|
1954
|
-
interface AmazonBedrockProviderConfig {
|
|
1955
|
-
providerName: "amazon-bedrock";
|
|
1956
|
-
/** AWS access key ID */
|
|
1957
|
-
accessKeyId: string;
|
|
1958
|
-
/** AWS secret access key */
|
|
1959
|
-
secretAccessKey: string;
|
|
1960
|
-
/** AWS region */
|
|
1961
|
-
region: string;
|
|
1962
|
-
/** AWS session token (for temporary credentials) */
|
|
1963
|
-
sessionToken?: string;
|
|
1964
|
-
}
|
|
1965
|
-
declare const amazonBedrockProviderConfigSchema: z.ZodObject<{
|
|
1966
|
-
providerName: z.ZodLiteral<"amazon-bedrock">;
|
|
1967
|
-
accessKeyId: z.ZodString;
|
|
1968
|
-
secretAccessKey: z.ZodString;
|
|
1969
|
-
region: z.ZodString;
|
|
1970
|
-
sessionToken: z.ZodOptional<z.ZodString>;
|
|
1971
|
-
}, z.core.$strip>;
|
|
1972
|
-
/** Google Vertex AI provider configuration */
|
|
1973
|
-
interface GoogleVertexProviderConfig {
|
|
1974
|
-
providerName: "google-vertex";
|
|
1975
|
-
/** GCP project ID */
|
|
1976
|
-
project?: string;
|
|
1977
|
-
/** GCP location */
|
|
1978
|
-
location?: string;
|
|
1979
|
-
/** Custom base URL */
|
|
1980
|
-
baseUrl?: string;
|
|
1981
|
-
/** Custom headers */
|
|
1982
|
-
headers?: Headers;
|
|
1983
|
-
}
|
|
1984
|
-
declare const googleVertexProviderConfigSchema: z.ZodObject<{
|
|
1985
|
-
providerName: z.ZodLiteral<"google-vertex">;
|
|
1986
|
-
project: z.ZodOptional<z.ZodString>;
|
|
1987
|
-
location: z.ZodOptional<z.ZodString>;
|
|
1988
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1989
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1990
|
-
}, z.core.$strip>;
|
|
1991
|
-
/** DeepSeek provider configuration */
|
|
1992
|
-
interface DeepseekProviderConfig {
|
|
1993
|
-
providerName: "deepseek";
|
|
1994
|
-
/** API key for DeepSeek */
|
|
1995
|
-
apiKey: string;
|
|
1996
|
-
/** Custom base URL */
|
|
1997
|
-
baseUrl?: string;
|
|
1998
|
-
/** Custom headers */
|
|
1999
|
-
headers?: Headers;
|
|
2000
|
-
}
|
|
2001
|
-
declare const deepseekProviderConfigSchema: z.ZodObject<{
|
|
2002
|
-
providerName: z.ZodLiteral<"deepseek">;
|
|
2003
|
-
apiKey: z.ZodString;
|
|
2004
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2005
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1953
|
+
declare const perstackConfigSchema: z.ZodObject<{
|
|
1954
|
+
provider: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1955
|
+
providerName: z.ZodLiteral<"anthropic">;
|
|
1956
|
+
setting: z.ZodOptional<z.ZodObject<{
|
|
1957
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1958
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1959
|
+
}, z.core.$strip>>;
|
|
1960
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1961
|
+
providerName: z.ZodLiteral<"google">;
|
|
1962
|
+
setting: z.ZodOptional<z.ZodObject<{
|
|
1963
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1964
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1965
|
+
}, z.core.$strip>>;
|
|
1966
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1967
|
+
providerName: z.ZodLiteral<"openai">;
|
|
1968
|
+
setting: z.ZodOptional<z.ZodObject<{
|
|
1969
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1970
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
1971
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1972
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1973
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1974
|
+
}, z.core.$strip>>;
|
|
1975
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1976
|
+
providerName: z.ZodLiteral<"ollama">;
|
|
1977
|
+
setting: z.ZodOptional<z.ZodObject<{
|
|
1978
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1979
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1980
|
+
}, z.core.$strip>>;
|
|
1981
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1982
|
+
providerName: z.ZodLiteral<"azure-openai">;
|
|
1983
|
+
setting: z.ZodOptional<z.ZodObject<{
|
|
1984
|
+
resourceName: z.ZodOptional<z.ZodString>;
|
|
1985
|
+
apiVersion: z.ZodOptional<z.ZodString>;
|
|
1986
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1987
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1988
|
+
useDeploymentBasedUrls: z.ZodOptional<z.ZodBoolean>;
|
|
1989
|
+
}, z.core.$strip>>;
|
|
1990
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1991
|
+
providerName: z.ZodLiteral<"amazon-bedrock">;
|
|
1992
|
+
setting: z.ZodOptional<z.ZodObject<{
|
|
1993
|
+
region: z.ZodOptional<z.ZodString>;
|
|
1994
|
+
}, z.core.$strip>>;
|
|
1995
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1996
|
+
providerName: z.ZodLiteral<"google-vertex">;
|
|
1997
|
+
setting: z.ZodOptional<z.ZodObject<{
|
|
1998
|
+
project: z.ZodOptional<z.ZodString>;
|
|
1999
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2000
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2001
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2002
|
+
}, z.core.$strip>>;
|
|
2003
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2004
|
+
providerName: z.ZodLiteral<"deepseek">;
|
|
2005
|
+
setting: z.ZodOptional<z.ZodObject<{
|
|
2006
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2007
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2008
|
+
}, z.core.$strip>>;
|
|
2009
|
+
}, z.core.$strip>], "providerName">>;
|
|
2010
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2011
|
+
reasoningBudget: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2012
|
+
low: "low";
|
|
2013
|
+
high: "high";
|
|
2014
|
+
none: "none";
|
|
2015
|
+
minimal: "minimal";
|
|
2016
|
+
medium: "medium";
|
|
2017
|
+
}>, z.ZodNumber]>>;
|
|
2018
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
2019
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
2020
|
+
experts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2021
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2022
|
+
minRuntimeVersion: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`v${number}.${number}`, string>>>;
|
|
2023
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2024
|
+
instruction: z.ZodString;
|
|
2025
|
+
defaultModelTier: z.ZodOptional<z.ZodEnum<{
|
|
2026
|
+
low: "low";
|
|
2027
|
+
middle: "middle";
|
|
2028
|
+
high: "high";
|
|
2029
|
+
}>>;
|
|
2030
|
+
skills: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2031
|
+
type: z.ZodLiteral<"mcpStdioSkill">;
|
|
2032
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2033
|
+
rule: z.ZodOptional<z.ZodString>;
|
|
2034
|
+
pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2035
|
+
omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2036
|
+
command: z.ZodString;
|
|
2037
|
+
packageName: z.ZodOptional<z.ZodString>;
|
|
2038
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2039
|
+
requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2040
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2041
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2042
|
+
type: z.ZodLiteral<"mcpSseSkill">;
|
|
2043
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2044
|
+
rule: z.ZodOptional<z.ZodString>;
|
|
2045
|
+
pick: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2046
|
+
omit: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2047
|
+
endpoint: z.ZodString;
|
|
2048
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2049
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2050
|
+
type: z.ZodLiteral<"interactiveSkill">;
|
|
2051
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2052
|
+
rule: z.ZodOptional<z.ZodString>;
|
|
2053
|
+
tools: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2054
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2055
|
+
inputJsonSchema: z.ZodString;
|
|
2056
|
+
}, z.core.$strip>>;
|
|
2057
|
+
}, z.core.$strip>], "type">>>;
|
|
2058
|
+
delegates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2059
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2060
|
+
providerTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2061
|
+
providerSkills: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2062
|
+
type: z.ZodLiteral<"builtin">;
|
|
2063
|
+
skillId: z.ZodEnum<{
|
|
2064
|
+
pdf: "pdf";
|
|
2065
|
+
docx: "docx";
|
|
2066
|
+
pptx: "pptx";
|
|
2067
|
+
xlsx: "xlsx";
|
|
2068
|
+
}>;
|
|
2069
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2070
|
+
type: z.ZodLiteral<"custom">;
|
|
2071
|
+
name: z.ZodString;
|
|
2072
|
+
definition: z.ZodString;
|
|
2073
|
+
}, z.core.$strip>], "type">>>;
|
|
2074
|
+
providerToolOptions: z.ZodOptional<z.ZodObject<{
|
|
2075
|
+
webSearch: z.ZodOptional<z.ZodObject<{
|
|
2076
|
+
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
2077
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2078
|
+
}, z.core.$strip>>;
|
|
2079
|
+
webFetch: z.ZodOptional<z.ZodObject<{
|
|
2080
|
+
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
2081
|
+
}, z.core.$strip>>;
|
|
2082
|
+
fileSearch: z.ZodOptional<z.ZodObject<{
|
|
2083
|
+
vectorStoreIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2084
|
+
maxNumResults: z.ZodOptional<z.ZodNumber>;
|
|
2085
|
+
}, z.core.$strip>>;
|
|
2086
|
+
}, z.core.$strip>>;
|
|
2087
|
+
}, z.core.$strip>>>;
|
|
2088
|
+
perstackApiBaseUrl: z.ZodOptional<z.ZodURL>;
|
|
2089
|
+
perstackBaseSkillCommand: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2090
|
+
envPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2006
2091
|
}, z.core.$strip>;
|
|
2007
|
-
/** Union of all provider configurations */
|
|
2008
|
-
type ProviderConfig = AnthropicProviderConfig | GoogleGenerativeAiProviderConfig | OpenAiProviderConfig | OllamaProviderConfig | AzureOpenAiProviderConfig | AmazonBedrockProviderConfig | GoogleVertexProviderConfig | DeepseekProviderConfig;
|
|
2009
|
-
declare const providerConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2010
|
-
providerName: z.ZodLiteral<"anthropic">;
|
|
2011
|
-
apiKey: z.ZodString;
|
|
2012
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2013
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2014
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2015
|
-
providerName: z.ZodLiteral<"google">;
|
|
2016
|
-
apiKey: z.ZodString;
|
|
2017
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2018
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2019
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2020
|
-
providerName: z.ZodLiteral<"openai">;
|
|
2021
|
-
apiKey: z.ZodString;
|
|
2022
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2023
|
-
organization: z.ZodOptional<z.ZodString>;
|
|
2024
|
-
project: z.ZodOptional<z.ZodString>;
|
|
2025
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2026
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2027
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2028
|
-
providerName: z.ZodLiteral<"ollama">;
|
|
2029
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2030
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2031
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2032
|
-
providerName: z.ZodLiteral<"azure-openai">;
|
|
2033
|
-
apiKey: z.ZodString;
|
|
2034
|
-
resourceName: z.ZodOptional<z.ZodString>;
|
|
2035
|
-
apiVersion: z.ZodOptional<z.ZodString>;
|
|
2036
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2037
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2038
|
-
useDeploymentBasedUrls: z.ZodOptional<z.ZodBoolean>;
|
|
2039
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2040
|
-
providerName: z.ZodLiteral<"amazon-bedrock">;
|
|
2041
|
-
accessKeyId: z.ZodString;
|
|
2042
|
-
secretAccessKey: z.ZodString;
|
|
2043
|
-
region: z.ZodString;
|
|
2044
|
-
sessionToken: z.ZodOptional<z.ZodString>;
|
|
2045
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2046
|
-
providerName: z.ZodLiteral<"google-vertex">;
|
|
2047
|
-
project: z.ZodOptional<z.ZodString>;
|
|
2048
|
-
location: z.ZodOptional<z.ZodString>;
|
|
2049
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2050
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2051
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2052
|
-
providerName: z.ZodLiteral<"deepseek">;
|
|
2053
|
-
apiKey: z.ZodString;
|
|
2054
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2055
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2056
|
-
}, z.core.$strip>], "providerName">;
|
|
2057
2092
|
//#endregion
|
|
2058
2093
|
//#region src/schemas/step.d.ts
|
|
2059
2094
|
/**
|
|
@@ -2592,11 +2627,11 @@ declare const runSettingSchema: z.ZodObject<{
|
|
|
2592
2627
|
skills: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2593
2628
|
type: z.ZodLiteral<"mcpStdioSkill">;
|
|
2594
2629
|
args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2595
|
-
command: z.ZodString;
|
|
2596
2630
|
description: z.ZodOptional<z.ZodString>;
|
|
2597
2631
|
rule: z.ZodOptional<z.ZodString>;
|
|
2598
2632
|
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2599
2633
|
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2634
|
+
command: z.ZodString;
|
|
2600
2635
|
packageName: z.ZodOptional<z.ZodString>;
|
|
2601
2636
|
requiredEnv: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2602
2637
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2608,6 +2643,8 @@ declare const runSettingSchema: z.ZodObject<{
|
|
|
2608
2643
|
endpoint: z.ZodString;
|
|
2609
2644
|
}, z.core.$strip>, z.ZodObject<{
|
|
2610
2645
|
type: z.ZodLiteral<"interactiveSkill">;
|
|
2646
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2647
|
+
rule: z.ZodOptional<z.ZodString>;
|
|
2611
2648
|
tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2612
2649
|
description: z.ZodOptional<z.ZodString>;
|
|
2613
2650
|
inputJsonSchema: z.ZodString;
|
|
@@ -2621,8 +2658,6 @@ declare const runSettingSchema: z.ZodObject<{
|
|
|
2621
2658
|
inputJsonSchema: string;
|
|
2622
2659
|
description?: string | undefined;
|
|
2623
2660
|
}>>>;
|
|
2624
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2625
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
2626
2661
|
}, z.core.$strip>], "type">>>>, z.ZodTransform<{
|
|
2627
2662
|
[k: string]: {
|
|
2628
2663
|
type: "mcpStdioSkill";
|
|
@@ -2659,9 +2694,9 @@ declare const runSettingSchema: z.ZodObject<{
|
|
|
2659
2694
|
}, Record<string, {
|
|
2660
2695
|
type: "mcpStdioSkill";
|
|
2661
2696
|
args: string[];
|
|
2662
|
-
command: string;
|
|
2663
2697
|
pick: string[];
|
|
2664
2698
|
omit: string[];
|
|
2699
|
+
command: string;
|
|
2665
2700
|
requiredEnv: string[];
|
|
2666
2701
|
description?: string | undefined;
|
|
2667
2702
|
rule?: string | undefined;
|
|
@@ -2688,6 +2723,11 @@ declare const runSettingSchema: z.ZodObject<{
|
|
|
2688
2723
|
delegates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2689
2724
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2690
2725
|
minRuntimeVersion: z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<`v${number}.${number}`, string>>>;
|
|
2726
|
+
defaultModelTier: z.ZodOptional<z.ZodEnum<{
|
|
2727
|
+
low: "low";
|
|
2728
|
+
middle: "middle";
|
|
2729
|
+
high: "high";
|
|
2730
|
+
}>>;
|
|
2691
2731
|
providerTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2692
2732
|
providerSkills: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2693
2733
|
type: z.ZodLiteral<"builtin">;
|
|
@@ -2717,11 +2757,11 @@ declare const runSettingSchema: z.ZodObject<{
|
|
|
2717
2757
|
}, z.core.$strip>>;
|
|
2718
2758
|
}, z.core.$strip>>;
|
|
2719
2759
|
reasoningBudget: z.ZodDefault<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2760
|
+
low: "low";
|
|
2761
|
+
high: "high";
|
|
2720
2762
|
none: "none";
|
|
2721
2763
|
minimal: "minimal";
|
|
2722
|
-
low: "low";
|
|
2723
2764
|
medium: "medium";
|
|
2724
|
-
high: "high";
|
|
2725
2765
|
}>, z.ZodNumber]>>;
|
|
2726
2766
|
maxRetries: z.ZodNumber;
|
|
2727
2767
|
timeout: z.ZodNumber;
|
|
@@ -2801,28 +2841,15 @@ declare const runParamsSchema: z.ZodObject<{
|
|
|
2801
2841
|
name: z.ZodString;
|
|
2802
2842
|
version: z.ZodString;
|
|
2803
2843
|
description: z.ZodOptional<z.ZodString>;
|
|
2804
|
-
providerToolOptions: z.ZodOptional<z.ZodObject<{
|
|
2805
|
-
webSearch: z.ZodOptional<z.ZodObject<{
|
|
2806
|
-
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
2807
|
-
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2808
|
-
}, z.core.$strip>>;
|
|
2809
|
-
webFetch: z.ZodOptional<z.ZodObject<{
|
|
2810
|
-
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
2811
|
-
}, z.core.$strip>>;
|
|
2812
|
-
fileSearch: z.ZodOptional<z.ZodObject<{
|
|
2813
|
-
vectorStoreIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2814
|
-
maxNumResults: z.ZodOptional<z.ZodNumber>;
|
|
2815
|
-
}, z.core.$strip>>;
|
|
2816
|
-
}, z.core.$strip>>;
|
|
2817
2844
|
instruction: z.ZodString;
|
|
2818
2845
|
skills: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2819
2846
|
type: z.ZodLiteral<"mcpStdioSkill">;
|
|
2820
2847
|
args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2821
|
-
command: z.ZodString;
|
|
2822
2848
|
description: z.ZodOptional<z.ZodString>;
|
|
2823
2849
|
rule: z.ZodOptional<z.ZodString>;
|
|
2824
2850
|
pick: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2825
2851
|
omit: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2852
|
+
command: z.ZodString;
|
|
2826
2853
|
packageName: z.ZodOptional<z.ZodString>;
|
|
2827
2854
|
requiredEnv: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2828
2855
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2834,6 +2861,8 @@ declare const runParamsSchema: z.ZodObject<{
|
|
|
2834
2861
|
endpoint: z.ZodString;
|
|
2835
2862
|
}, z.core.$strip>, z.ZodObject<{
|
|
2836
2863
|
type: z.ZodLiteral<"interactiveSkill">;
|
|
2864
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2865
|
+
rule: z.ZodOptional<z.ZodString>;
|
|
2837
2866
|
tools: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2838
2867
|
description: z.ZodOptional<z.ZodString>;
|
|
2839
2868
|
inputJsonSchema: z.ZodString;
|
|
@@ -2847,8 +2876,6 @@ declare const runParamsSchema: z.ZodObject<{
|
|
|
2847
2876
|
inputJsonSchema: string;
|
|
2848
2877
|
description?: string | undefined;
|
|
2849
2878
|
}>>>;
|
|
2850
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2851
|
-
rule: z.ZodOptional<z.ZodString>;
|
|
2852
2879
|
}, z.core.$strip>], "type">>>>, z.ZodTransform<{
|
|
2853
2880
|
[k: string]: {
|
|
2854
2881
|
type: "mcpStdioSkill";
|
|
@@ -2885,9 +2912,9 @@ declare const runParamsSchema: z.ZodObject<{
|
|
|
2885
2912
|
}, Record<string, {
|
|
2886
2913
|
type: "mcpStdioSkill";
|
|
2887
2914
|
args: string[];
|
|
2888
|
-
command: string;
|
|
2889
2915
|
pick: string[];
|
|
2890
2916
|
omit: string[];
|
|
2917
|
+
command: string;
|
|
2891
2918
|
requiredEnv: string[];
|
|
2892
2919
|
description?: string | undefined;
|
|
2893
2920
|
rule?: string | undefined;
|
|
@@ -2913,7 +2940,25 @@ declare const runParamsSchema: z.ZodObject<{
|
|
|
2913
2940
|
}>>>;
|
|
2914
2941
|
delegates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2915
2942
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2943
|
+
providerToolOptions: z.ZodOptional<z.ZodObject<{
|
|
2944
|
+
webSearch: z.ZodOptional<z.ZodObject<{
|
|
2945
|
+
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
2946
|
+
allowedDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2947
|
+
}, z.core.$strip>>;
|
|
2948
|
+
webFetch: z.ZodOptional<z.ZodObject<{
|
|
2949
|
+
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
2950
|
+
}, z.core.$strip>>;
|
|
2951
|
+
fileSearch: z.ZodOptional<z.ZodObject<{
|
|
2952
|
+
vectorStoreIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2953
|
+
maxNumResults: z.ZodOptional<z.ZodNumber>;
|
|
2954
|
+
}, z.core.$strip>>;
|
|
2955
|
+
}, z.core.$strip>>;
|
|
2916
2956
|
minRuntimeVersion: z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<`v${number}.${number}`, string>>>;
|
|
2957
|
+
defaultModelTier: z.ZodOptional<z.ZodEnum<{
|
|
2958
|
+
low: "low";
|
|
2959
|
+
middle: "middle";
|
|
2960
|
+
high: "high";
|
|
2961
|
+
}>>;
|
|
2917
2962
|
providerTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2918
2963
|
providerSkills: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2919
2964
|
type: z.ZodLiteral<"builtin">;
|
|
@@ -2972,6 +3017,7 @@ declare const runParamsSchema: z.ZodObject<{
|
|
|
2972
3017
|
tags: string[];
|
|
2973
3018
|
minRuntimeVersion: `v${number}.${number}`;
|
|
2974
3019
|
description?: string | undefined;
|
|
3020
|
+
defaultModelTier?: "low" | "middle" | "high" | undefined;
|
|
2975
3021
|
providerTools?: string[] | undefined;
|
|
2976
3022
|
providerSkills?: ({
|
|
2977
3023
|
type: "builtin";
|
|
@@ -3050,6 +3096,7 @@ declare const runParamsSchema: z.ZodObject<{
|
|
|
3050
3096
|
maxNumResults?: number | undefined;
|
|
3051
3097
|
} | undefined;
|
|
3052
3098
|
} | undefined;
|
|
3099
|
+
defaultModelTier?: "low" | "middle" | "high" | undefined;
|
|
3053
3100
|
providerTools?: string[] | undefined;
|
|
3054
3101
|
providerSkills?: ({
|
|
3055
3102
|
type: "builtin";
|
|
@@ -3061,11 +3108,11 @@ declare const runParamsSchema: z.ZodObject<{
|
|
|
3061
3108
|
})[] | undefined;
|
|
3062
3109
|
}>>>;
|
|
3063
3110
|
reasoningBudget: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3111
|
+
low: "low";
|
|
3112
|
+
high: "high";
|
|
3064
3113
|
none: "none";
|
|
3065
3114
|
minimal: "minimal";
|
|
3066
|
-
low: "low";
|
|
3067
3115
|
medium: "medium";
|
|
3068
|
-
high: "high";
|
|
3069
3116
|
}>, z.ZodNumber]>>>;
|
|
3070
3117
|
maxRetries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3071
3118
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -3753,11 +3800,22 @@ declare class PerstackError extends Error {
|
|
|
3753
3800
|
//#region src/known-models/index.d.ts
|
|
3754
3801
|
declare const knownModels: {
|
|
3755
3802
|
provider: string;
|
|
3756
|
-
models: {
|
|
3803
|
+
models: ({
|
|
3804
|
+
name: string;
|
|
3805
|
+
tier: "high";
|
|
3806
|
+
contextWindow: number;
|
|
3807
|
+
maxOutputTokens: number;
|
|
3808
|
+
} | {
|
|
3809
|
+
name: string;
|
|
3810
|
+
tier: "middle";
|
|
3811
|
+
contextWindow: number;
|
|
3812
|
+
maxOutputTokens: number;
|
|
3813
|
+
} | {
|
|
3757
3814
|
name: string;
|
|
3815
|
+
tier: "low";
|
|
3758
3816
|
contextWindow: number;
|
|
3759
3817
|
maxOutputTokens: number;
|
|
3760
|
-
}[];
|
|
3818
|
+
})[];
|
|
3761
3819
|
}[];
|
|
3762
3820
|
//#endregion
|
|
3763
3821
|
//#region src/schemas/activity.d.ts
|
|
@@ -6160,12 +6218,12 @@ declare const runCommandInputSchema: z.ZodObject<{
|
|
|
6160
6218
|
"google-vertex": "google-vertex";
|
|
6161
6219
|
}>>;
|
|
6162
6220
|
model: z.ZodOptional<z.ZodString>;
|
|
6163
|
-
reasoningBudget: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number | "
|
|
6221
|
+
reasoningBudget: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number | "low" | "high" | "none" | "minimal" | "medium" | undefined, string | undefined>>, z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
6222
|
+
low: "low";
|
|
6223
|
+
high: "high";
|
|
6164
6224
|
none: "none";
|
|
6165
6225
|
minimal: "minimal";
|
|
6166
|
-
low: "low";
|
|
6167
6226
|
medium: "medium";
|
|
6168
|
-
high: "high";
|
|
6169
6227
|
}>, z.ZodNumber]>>>;
|
|
6170
6228
|
maxRetries: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number | undefined, string | undefined>>;
|
|
6171
6229
|
timeout: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number | undefined, string | undefined>>;
|
|
@@ -6205,12 +6263,12 @@ declare const startCommandInputSchema: z.ZodObject<{
|
|
|
6205
6263
|
"google-vertex": "google-vertex";
|
|
6206
6264
|
}>>;
|
|
6207
6265
|
model: z.ZodOptional<z.ZodString>;
|
|
6208
|
-
reasoningBudget: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number | "
|
|
6266
|
+
reasoningBudget: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number | "low" | "high" | "none" | "minimal" | "medium" | undefined, string | undefined>>, z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
6267
|
+
low: "low";
|
|
6268
|
+
high: "high";
|
|
6209
6269
|
none: "none";
|
|
6210
6270
|
minimal: "minimal";
|
|
6211
|
-
low: "low";
|
|
6212
6271
|
medium: "medium";
|
|
6213
|
-
high: "high";
|
|
6214
6272
|
}>, z.ZodNumber]>>>;
|
|
6215
6273
|
maxRetries: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number | undefined, string | undefined>>;
|
|
6216
6274
|
timeout: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<number | undefined, string | undefined>>;
|
|
@@ -6356,9 +6414,13 @@ declare function validateDelegation(source: string, target: string): string | nu
|
|
|
6356
6414
|
*/
|
|
6357
6415
|
declare function validateAllDelegations(expertName: string, delegates: string[]): string[];
|
|
6358
6416
|
//#endregion
|
|
6417
|
+
//#region src/utils/truncate.d.ts
|
|
6418
|
+
declare const MAX_TOOL_OUTPUT_CHARS = 30000;
|
|
6419
|
+
declare function truncateText(text: string, maxChars?: number): string;
|
|
6420
|
+
//#endregion
|
|
6359
6421
|
//#region src/utils/zod-error.d.ts
|
|
6360
6422
|
declare function formatZodError(error: ZodError): string;
|
|
6361
6423
|
declare function parseWithFriendlyError<T>(schema: ZodSchema<T>, data: unknown, context?: string): T;
|
|
6362
6424
|
//#endregion
|
|
6363
|
-
export { Activity, ActivityOrGroup, ActivityType, AddDelegateActivity, AddSkillActivity, AmazonBedrockProviderConfig, AnthropicProviderConfig, AnthropicProviderSkill, AnthropicProviderToolName, AttemptCompletionActivity, AzureOpenAIProviderToolName, AzureOpenAiProviderConfig, BASE_SKILL_PREFIX, BaseEvent, BasePart, BuiltinAnthropicSkill, CallToolResultContent, Checkpoint, CheckpointStatus, ClearTodoActivity, CommandOptions, CompleteActivity, type CreateCheckpointParams, CreateExpertActivity, CustomAnthropicSkill, DeepseekProviderConfig, DelegateActivity, DelegateSkillManagerParams, DelegationCompleteActivity, DelegationTarget, EditTextFileActivity, ErrorActivity, EventForType, EventType, ExecActivity, Expert, ExpertMessage, ExpertStateEvent, ExpertStateEventType, ExpertType, FileBinaryPart, FileInlinePart, FileUrlPart, GeneralToolActivity, GetActivitiesParams, GoogleGenerativeAiProviderConfig, GoogleProviderToolName, GoogleVertexProviderConfig, Headers, ImageBinaryPart, ImageInlinePart, ImageUrlPart, InstructionMessage, InteractiveSkill, InteractiveSkillManagerParams, InteractiveTool, InteractiveToolActivity, Job, JobStatus, Lockfile, LockfileExpert, LockfileToolDefinition, McpSkillManagerParams, McpSseSkill, McpStdioSkill, Message, MessagePart, OllamaProviderConfig, OpenAIProviderToolName, OpenAiProviderConfig, ParallelActivitiesGroup, PerstackConfig, PerstackConfigExpert, PerstackConfigSkill, PerstackError, PerstackEvent, ProviderConfig, ProviderName, ProviderTable, ProviderToolOptions, QueryActivity, ReadImageFileActivity, ReadPdfFileActivity, ReadTextFileActivity, ReasoningBudget, RemoveDelegateActivity, RemoveSkillActivity, Resource, RetryActivity, RunCommandInput, RunEvent, RunInput, RunParams, RunParamsInput, RunSetting, RuntimeEvent, RuntimeEventForType, RuntimeEventType, RuntimeVersion, SAFE_ENV_VARS, Skill, SkillManagerParams, SkillType, StartCommandInput, Step, StreamingEvent, StreamingEventType, TextPart, ThinkingPart, TodoActivity, ToolCall, ToolCallPart, ToolDefinition, ToolMessage, ToolResult, ToolResultPart, Usage, UserMessage, VertexProviderToolName, WriteTextFileActivity, activityOrGroupSchema, activitySchema, addDelegateActivitySchema, addSkillActivitySchema, amazonBedrockProviderConfigSchema, anthropicProviderConfigSchema, anthropicProviderSkillSchema, anthropicProviderToolNameSchema, attemptCompletionActivitySchema, azureOpenAIProviderToolNameSchema, azureOpenAiProviderConfigSchema, basePartSchema, builtinAnthropicSkillSchema, callTools, checkpointSchema, checkpointStatusSchema, clearTodoActivitySchema, completeActivitySchema, completeRun, continueToNextStep, createBaseToolActivity, createCallToolsEvent, createCompleteRunEvent, createEmptyUsage, createEvent, createExpertActivitySchema, createFilteredEventListener, createGeneralToolActivity, createNormalizedCheckpoint, createResolveToolResultsEvent, createRuntimeEvent, createRuntimeInitEvent, createStartRunEvent, createStreamingEvent, createToolMessage, customAnthropicSkillSchema, deepseekProviderConfigSchema, defaultMaxRetries, defaultPerstackApiBaseUrl, defaultReasoningBudget, defaultTimeout, delegateActivitySchema, delegationCompleteActivitySchema, delegationTargetSchema, domainPatternSchema, editTextFileActivitySchema, errorActivitySchema, execActivitySchema, expertBaseSchema, expertKeyRegex, expertMessageSchema, expertNameRegex, expertSchema, expertVersionRegex, fileBinaryPartSchema, fileInlinePartSchema, fileSearchOptionsSchema, fileUrlPartSchema, finishMcpTools, finishToolCall, formatZodError, generalToolActivitySchema, getActivities, getExpertScope, getExpertShortName, getExpertType, getFilteredEnv, googleGenerativeAiProviderConfigSchema, googleProviderToolNameSchema, googleVertexProviderConfigSchema, headersSchema, imageBinaryPartSchema, imageInlinePartSchema, imageUrlPartSchema, instructionMessageSchema, interactiveSkillSchema, interactiveToolActivitySchema, interactiveToolSchema, isCoordinatorExpert, isDelegateExpert, isPrivateOrLocalIP, isValidEventType, isValidRuntimeEventType, jobSchema, jobStatusSchema, knownModels, lockfileExpertSchema, lockfileSchema, lockfileToolDefinitionSchema, maxExpertNameLength, maxSkillNameLength, maxSkillToolNameLength, mcpSseSkillSchema, mcpStdioSkillSchema, messagePartSchema, messageSchema, ollamaProviderConfigSchema, openAiProviderConfigSchema, openaiProviderToolNameSchema, parallelActivitiesGroupSchema, parseExpertKey, parseWithFriendlyError, perstackConfigSchema, proceedToInteractiveTools, providerConfigSchema, providerNameSchema, providerTableSchema, providerToolOptionsSchema, queryActivitySchema, readImageFileActivitySchema, readPdfFileActivitySchema, readTextFileActivitySchema, reasoningBudgetSchema, removeDelegateActivitySchema, removeSkillActivitySchema, resolveToolResults, resumeFromStop, resumeToolCalls, retry, retryActivitySchema, runCommandInputSchema, runParamsSchema, runSettingSchema, runtimeVersionSchema, skillSchema, skipDelegates, startCommandInputSchema, startGeneration, startRun, stepSchema, stopRunByDelegate, stopRunByError, stopRunByInteractiveTool, tagNameRegex, textPartSchema, thinkingPartSchema, todoActivitySchema, toolCallPartSchema, toolCallSchema, toolMessageSchema, toolResultPartSchema, toolResultSchema, usageSchema, userMessageSchema, validateAllDelegations, validateDelegation, validateEventFilter, vertexProviderToolNameSchema, webFetchOptionsSchema, webSearchOptionsSchema, writeTextFileActivitySchema };
|
|
6425
|
+
export { Activity, ActivityOrGroup, ActivityType, AddDelegateActivity, AddSkillActivity, AmazonBedrockProviderConfig, AnthropicProviderConfig, AnthropicProviderSkill, AnthropicProviderToolName, AttemptCompletionActivity, AzureOpenAIProviderToolName, AzureOpenAiProviderConfig, BASE_SKILL_PREFIX, BaseEvent, BasePart, BuiltinAnthropicSkill, CallToolResultContent, Checkpoint, CheckpointStatus, ClearTodoActivity, CommandOptions, CompleteActivity, type CreateCheckpointParams, CreateExpertActivity, CustomAnthropicSkill, DeepseekProviderConfig, DelegateActivity, DelegateSkillManagerParams, DelegationCompleteActivity, DelegationTarget, EditTextFileActivity, ErrorActivity, EventForType, EventType, ExecActivity, Expert, ExpertMessage, ExpertStateEvent, ExpertStateEventType, ExpertType, FileBinaryPart, FileInlinePart, FileUrlPart, GeneralToolActivity, GetActivitiesParams, GoogleGenerativeAiProviderConfig, GoogleProviderToolName, GoogleVertexProviderConfig, Headers, ImageBinaryPart, ImageInlinePart, ImageUrlPart, InstructionMessage, InteractiveSkill, InteractiveSkillManagerParams, InteractiveTool, InteractiveToolActivity, Job, JobStatus, Lockfile, LockfileExpert, LockfileToolDefinition, MAX_TOOL_OUTPUT_CHARS, McpSkillManagerParams, McpSseSkill, McpStdioSkill, Message, MessagePart, ModelTier, OllamaProviderConfig, OpenAIProviderToolName, OpenAiProviderConfig, ParallelActivitiesGroup, PerstackConfig, PerstackConfigExpert, PerstackConfigSkill, PerstackError, PerstackEvent, ProviderConfig, ProviderName, ProviderTable, ProviderToolOptions, QueryActivity, ReadImageFileActivity, ReadPdfFileActivity, ReadTextFileActivity, ReasoningBudget, RemoveDelegateActivity, RemoveSkillActivity, Resource, RetryActivity, RunCommandInput, RunEvent, RunInput, RunParams, RunParamsInput, RunSetting, RuntimeEvent, RuntimeEventForType, RuntimeEventType, RuntimeVersion, SAFE_ENV_VARS, Skill, SkillManagerParams, SkillType, StartCommandInput, Step, StreamingEvent, StreamingEventType, TextPart, ThinkingPart, TodoActivity, ToolCall, ToolCallPart, ToolDefinition, ToolMessage, ToolResult, ToolResultPart, Usage, UserMessage, VertexProviderToolName, WriteTextFileActivity, activityOrGroupSchema, activitySchema, addDelegateActivitySchema, addSkillActivitySchema, amazonBedrockProviderConfigSchema, anthropicProviderConfigSchema, anthropicProviderSkillSchema, anthropicProviderToolNameSchema, attemptCompletionActivitySchema, azureOpenAIProviderToolNameSchema, azureOpenAiProviderConfigSchema, basePartSchema, builtinAnthropicSkillSchema, callTools, checkpointSchema, checkpointStatusSchema, clearTodoActivitySchema, completeActivitySchema, completeRun, continueToNextStep, createBaseToolActivity, createCallToolsEvent, createCompleteRunEvent, createEmptyUsage, createEvent, createExpertActivitySchema, createFilteredEventListener, createGeneralToolActivity, createNormalizedCheckpoint, createResolveToolResultsEvent, createRuntimeEvent, createRuntimeInitEvent, createStartRunEvent, createStreamingEvent, createToolMessage, customAnthropicSkillSchema, deepseekProviderConfigSchema, defaultMaxRetries, defaultPerstackApiBaseUrl, defaultReasoningBudget, defaultTimeout, delegateActivitySchema, delegationCompleteActivitySchema, delegationTargetSchema, domainPatternSchema, editTextFileActivitySchema, errorActivitySchema, execActivitySchema, expertBaseSchema, expertKeyRegex, expertMessageSchema, expertNameRegex, expertSchema, expertVersionRegex, fileBinaryPartSchema, fileInlinePartSchema, fileSearchOptionsSchema, fileUrlPartSchema, finishMcpTools, finishToolCall, formatZodError, generalToolActivitySchema, getActivities, getExpertScope, getExpertShortName, getExpertType, getFilteredEnv, googleGenerativeAiProviderConfigSchema, googleProviderToolNameSchema, googleVertexProviderConfigSchema, headersSchema, imageBinaryPartSchema, imageInlinePartSchema, imageUrlPartSchema, instructionMessageSchema, interactiveSkillSchema, interactiveToolActivitySchema, interactiveToolSchema, isCoordinatorExpert, isDelegateExpert, isPrivateOrLocalIP, isValidEventType, isValidRuntimeEventType, jobSchema, jobStatusSchema, knownModels, lockfileExpertSchema, lockfileSchema, lockfileToolDefinitionSchema, maxExpertNameLength, maxSkillNameLength, maxSkillToolNameLength, mcpSseSkillSchema, mcpStdioSkillSchema, messagePartSchema, messageSchema, modelTierSchema, ollamaProviderConfigSchema, openAiProviderConfigSchema, openaiProviderToolNameSchema, parallelActivitiesGroupSchema, parseExpertKey, parseWithFriendlyError, perstackConfigSchema, proceedToInteractiveTools, providerConfigSchema, providerNameSchema, providerTableSchema, providerToolOptionsSchema, queryActivitySchema, readImageFileActivitySchema, readPdfFileActivitySchema, readTextFileActivitySchema, reasoningBudgetSchema, removeDelegateActivitySchema, removeSkillActivitySchema, resolveModelTier, resolveToolResults, resumeFromStop, resumeToolCalls, retry, retryActivitySchema, runCommandInputSchema, runParamsSchema, runSettingSchema, runtimeVersionSchema, skillSchema, skipDelegates, startCommandInputSchema, startGeneration, startRun, stepSchema, stopRunByDelegate, stopRunByError, stopRunByInteractiveTool, tagNameRegex, textPartSchema, thinkingPartSchema, todoActivitySchema, toolCallPartSchema, toolCallSchema, toolMessageSchema, toolResultPartSchema, toolResultSchema, truncateText, usageSchema, userMessageSchema, validateAllDelegations, validateDelegation, validateEventFilter, vertexProviderToolNameSchema, webFetchOptionsSchema, webSearchOptionsSchema, writeTextFileActivitySchema };
|
|
6364
6426
|
//# sourceMappingURL=index.d.ts.map
|