@crewx/sdk 0.9.0-rc.202 → 0.9.0-rc.204

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.
@@ -1409,98 +1409,31 @@ export declare const CrewxProjectConfigSchema: z.ZodEffects<z.ZodObject<{
1409
1409
  }>>;
1410
1410
  interceptors: z.ZodOptional<z.ZodUnknown>;
1411
1411
  }, z.ZodUnknown, "strip">>, "many">>;
1412
- routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
1413
- strategy: z.ZodEnum<["round-robin", "weighted"]>;
1414
- chain: z.ZodOptional<z.ZodArray<z.ZodObject<{
1415
- kind: z.ZodLiteral<"custom">;
1416
- run: z.ZodString;
1417
- }, "strict", z.ZodTypeAny, {
1418
- kind: "custom";
1419
- run: string;
1420
- }, {
1421
- kind: "custom";
1422
- run: string;
1423
- }>, "many">>;
1424
- candidates: z.ZodArray<z.ZodObject<{
1425
- id: z.ZodString;
1426
- provider: z.ZodString;
1427
- model: z.ZodString;
1428
- weight: z.ZodDefault<z.ZodNumber>;
1429
- account: z.ZodOptional<z.ZodString>;
1430
- }, "strict", z.ZodTypeAny, {
1431
- id: string;
1432
- model: string;
1433
- provider: string;
1434
- weight: number;
1435
- account?: string | undefined;
1436
- }, {
1437
- id: string;
1438
- model: string;
1439
- provider: string;
1440
- weight?: number | undefined;
1441
- account?: string | undefined;
1442
- }>, "many">;
1443
- sticky: z.ZodDefault<z.ZodEnum<["conversation", "none"]>>;
1444
- defaultCandidate: z.ZodOptional<z.ZodString>;
1445
- }, "strict", z.ZodTypeAny, {
1446
- strategy: "round-robin" | "weighted";
1447
- candidates: {
1448
- id: string;
1449
- model: string;
1450
- provider: string;
1451
- weight: number;
1452
- account?: string | undefined;
1453
- }[];
1454
- sticky: "none" | "conversation";
1455
- chain?: {
1456
- kind: "custom";
1457
- run: string;
1458
- }[] | undefined;
1459
- defaultCandidate?: string | undefined;
1460
- }, {
1412
+ routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../route/types.js").RouteConfig & {
1413
+ candidates: import("../route/types.js").RouteModelConfig[];
1414
+ }, z.ZodTypeDef, {
1461
1415
  strategy: "round-robin" | "weighted";
1462
- candidates: {
1416
+ name?: string | undefined;
1417
+ models?: {
1463
1418
  id: string;
1464
1419
  model: string;
1465
1420
  provider: string;
1466
1421
  weight?: number | undefined;
1467
1422
  account?: string | undefined;
1468
- }[];
1469
- chain?: {
1470
- kind: "custom";
1471
- run: string;
1472
1423
  }[] | undefined;
1473
- sticky?: "none" | "conversation" | undefined;
1474
- defaultCandidate?: string | undefined;
1475
- }>, {
1476
- strategy: "round-robin" | "weighted";
1477
- candidates: {
1478
- id: string;
1479
- model: string;
1480
- provider: string;
1481
- weight: number;
1482
- account?: string | undefined;
1483
- }[];
1484
- sticky: "none" | "conversation";
1485
1424
  chain?: {
1486
1425
  kind: "custom";
1487
1426
  run: string;
1488
1427
  }[] | undefined;
1489
- defaultCandidate?: string | undefined;
1490
- }, {
1491
- strategy: "round-robin" | "weighted";
1492
- candidates: {
1428
+ candidates?: {
1493
1429
  id: string;
1494
1430
  model: string;
1495
1431
  provider: string;
1496
1432
  weight?: number | undefined;
1497
1433
  account?: string | undefined;
1498
- }[];
1499
- chain?: {
1500
- kind: "custom";
1501
- run: string;
1502
1434
  }[] | undefined;
1503
1435
  sticky?: "none" | "conversation" | undefined;
1436
+ defaultModel?: string | undefined;
1504
1437
  defaultCandidate?: string | undefined;
1505
1438
  }>>>;
1506
1439
  hooks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
@@ -2155,98 +2088,31 @@ export declare const CrewxProjectConfigSchema: z.ZodEffects<z.ZodObject<{
2155
2088
  }>>;
2156
2089
  interceptors: z.ZodOptional<z.ZodUnknown>;
2157
2090
  }, z.ZodUnknown, "strip">>, "many">>;
2158
- routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
2159
- strategy: z.ZodEnum<["round-robin", "weighted"]>;
2160
- chain: z.ZodOptional<z.ZodArray<z.ZodObject<{
2161
- kind: z.ZodLiteral<"custom">;
2162
- run: z.ZodString;
2163
- }, "strict", z.ZodTypeAny, {
2164
- kind: "custom";
2165
- run: string;
2166
- }, {
2167
- kind: "custom";
2168
- run: string;
2169
- }>, "many">>;
2170
- candidates: z.ZodArray<z.ZodObject<{
2171
- id: z.ZodString;
2172
- provider: z.ZodString;
2173
- model: z.ZodString;
2174
- weight: z.ZodDefault<z.ZodNumber>;
2175
- account: z.ZodOptional<z.ZodString>;
2176
- }, "strict", z.ZodTypeAny, {
2177
- id: string;
2178
- model: string;
2179
- provider: string;
2180
- weight: number;
2181
- account?: string | undefined;
2182
- }, {
2183
- id: string;
2184
- model: string;
2185
- provider: string;
2186
- weight?: number | undefined;
2187
- account?: string | undefined;
2188
- }>, "many">;
2189
- sticky: z.ZodDefault<z.ZodEnum<["conversation", "none"]>>;
2190
- defaultCandidate: z.ZodOptional<z.ZodString>;
2191
- }, "strict", z.ZodTypeAny, {
2091
+ routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../route/types.js").RouteConfig & {
2092
+ candidates: import("../route/types.js").RouteModelConfig[];
2093
+ }, z.ZodTypeDef, {
2192
2094
  strategy: "round-robin" | "weighted";
2193
- candidates: {
2194
- id: string;
2195
- model: string;
2196
- provider: string;
2197
- weight: number;
2198
- account?: string | undefined;
2199
- }[];
2200
- sticky: "none" | "conversation";
2201
- chain?: {
2202
- kind: "custom";
2203
- run: string;
2204
- }[] | undefined;
2205
- defaultCandidate?: string | undefined;
2206
- }, {
2207
- strategy: "round-robin" | "weighted";
2208
- candidates: {
2095
+ name?: string | undefined;
2096
+ models?: {
2209
2097
  id: string;
2210
2098
  model: string;
2211
2099
  provider: string;
2212
2100
  weight?: number | undefined;
2213
2101
  account?: string | undefined;
2214
- }[];
2215
- chain?: {
2216
- kind: "custom";
2217
- run: string;
2218
2102
  }[] | undefined;
2219
- sticky?: "none" | "conversation" | undefined;
2220
- defaultCandidate?: string | undefined;
2221
- }>, {
2222
- strategy: "round-robin" | "weighted";
2223
- candidates: {
2224
- id: string;
2225
- model: string;
2226
- provider: string;
2227
- weight: number;
2228
- account?: string | undefined;
2229
- }[];
2230
- sticky: "none" | "conversation";
2231
2103
  chain?: {
2232
2104
  kind: "custom";
2233
2105
  run: string;
2234
2106
  }[] | undefined;
2235
- defaultCandidate?: string | undefined;
2236
- }, {
2237
- strategy: "round-robin" | "weighted";
2238
- candidates: {
2107
+ candidates?: {
2239
2108
  id: string;
2240
2109
  model: string;
2241
2110
  provider: string;
2242
2111
  weight?: number | undefined;
2243
2112
  account?: string | undefined;
2244
- }[];
2245
- chain?: {
2246
- kind: "custom";
2247
- run: string;
2248
2113
  }[] | undefined;
2249
2114
  sticky?: "none" | "conversation" | undefined;
2115
+ defaultModel?: string | undefined;
2250
2116
  defaultCandidate?: string | undefined;
2251
2117
  }>>>;
2252
2118
  hooks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
@@ -2901,98 +2767,31 @@ export declare const CrewxProjectConfigSchema: z.ZodEffects<z.ZodObject<{
2901
2767
  }>>;
2902
2768
  interceptors: z.ZodOptional<z.ZodUnknown>;
2903
2769
  }, z.ZodUnknown, "strip">>, "many">>;
2904
- routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
2905
- strategy: z.ZodEnum<["round-robin", "weighted"]>;
2906
- chain: z.ZodOptional<z.ZodArray<z.ZodObject<{
2907
- kind: z.ZodLiteral<"custom">;
2908
- run: z.ZodString;
2909
- }, "strict", z.ZodTypeAny, {
2910
- kind: "custom";
2911
- run: string;
2912
- }, {
2913
- kind: "custom";
2914
- run: string;
2915
- }>, "many">>;
2916
- candidates: z.ZodArray<z.ZodObject<{
2917
- id: z.ZodString;
2918
- provider: z.ZodString;
2919
- model: z.ZodString;
2920
- weight: z.ZodDefault<z.ZodNumber>;
2921
- account: z.ZodOptional<z.ZodString>;
2922
- }, "strict", z.ZodTypeAny, {
2923
- id: string;
2924
- model: string;
2925
- provider: string;
2926
- weight: number;
2927
- account?: string | undefined;
2928
- }, {
2929
- id: string;
2930
- model: string;
2931
- provider: string;
2932
- weight?: number | undefined;
2933
- account?: string | undefined;
2934
- }>, "many">;
2935
- sticky: z.ZodDefault<z.ZodEnum<["conversation", "none"]>>;
2936
- defaultCandidate: z.ZodOptional<z.ZodString>;
2937
- }, "strict", z.ZodTypeAny, {
2770
+ routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../route/types.js").RouteConfig & {
2771
+ candidates: import("../route/types.js").RouteModelConfig[];
2772
+ }, z.ZodTypeDef, {
2938
2773
  strategy: "round-robin" | "weighted";
2939
- candidates: {
2940
- id: string;
2941
- model: string;
2942
- provider: string;
2943
- weight: number;
2944
- account?: string | undefined;
2945
- }[];
2946
- sticky: "none" | "conversation";
2947
- chain?: {
2948
- kind: "custom";
2949
- run: string;
2950
- }[] | undefined;
2951
- defaultCandidate?: string | undefined;
2952
- }, {
2953
- strategy: "round-robin" | "weighted";
2954
- candidates: {
2774
+ name?: string | undefined;
2775
+ models?: {
2955
2776
  id: string;
2956
2777
  model: string;
2957
2778
  provider: string;
2958
2779
  weight?: number | undefined;
2959
2780
  account?: string | undefined;
2960
- }[];
2961
- chain?: {
2962
- kind: "custom";
2963
- run: string;
2964
2781
  }[] | undefined;
2965
- sticky?: "none" | "conversation" | undefined;
2966
- defaultCandidate?: string | undefined;
2967
- }>, {
2968
- strategy: "round-robin" | "weighted";
2969
- candidates: {
2970
- id: string;
2971
- model: string;
2972
- provider: string;
2973
- weight: number;
2974
- account?: string | undefined;
2975
- }[];
2976
- sticky: "none" | "conversation";
2977
2782
  chain?: {
2978
2783
  kind: "custom";
2979
2784
  run: string;
2980
2785
  }[] | undefined;
2981
- defaultCandidate?: string | undefined;
2982
- }, {
2983
- strategy: "round-robin" | "weighted";
2984
- candidates: {
2786
+ candidates?: {
2985
2787
  id: string;
2986
2788
  model: string;
2987
2789
  provider: string;
2988
2790
  weight?: number | undefined;
2989
2791
  account?: string | undefined;
2990
- }[];
2991
- chain?: {
2992
- kind: "custom";
2993
- run: string;
2994
2792
  }[] | undefined;
2995
2793
  sticky?: "none" | "conversation" | undefined;
2794
+ defaultModel?: string | undefined;
2996
2795
  defaultCandidate?: string | undefined;
2997
2796
  }>>>;
2998
2797
  hooks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
@@ -3647,98 +3446,31 @@ export declare const CrewxProjectConfigSchema: z.ZodEffects<z.ZodObject<{
3647
3446
  }>>;
3648
3447
  interceptors: z.ZodOptional<z.ZodUnknown>;
3649
3448
  }, z.ZodUnknown, "strip">>, "many">>;
3650
- routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
3651
- strategy: z.ZodEnum<["round-robin", "weighted"]>;
3652
- chain: z.ZodOptional<z.ZodArray<z.ZodObject<{
3653
- kind: z.ZodLiteral<"custom">;
3654
- run: z.ZodString;
3655
- }, "strict", z.ZodTypeAny, {
3656
- kind: "custom";
3657
- run: string;
3658
- }, {
3659
- kind: "custom";
3660
- run: string;
3661
- }>, "many">>;
3662
- candidates: z.ZodArray<z.ZodObject<{
3663
- id: z.ZodString;
3664
- provider: z.ZodString;
3665
- model: z.ZodString;
3666
- weight: z.ZodDefault<z.ZodNumber>;
3667
- account: z.ZodOptional<z.ZodString>;
3668
- }, "strict", z.ZodTypeAny, {
3669
- id: string;
3670
- model: string;
3671
- provider: string;
3672
- weight: number;
3673
- account?: string | undefined;
3674
- }, {
3675
- id: string;
3676
- model: string;
3677
- provider: string;
3678
- weight?: number | undefined;
3679
- account?: string | undefined;
3680
- }>, "many">;
3681
- sticky: z.ZodDefault<z.ZodEnum<["conversation", "none"]>>;
3682
- defaultCandidate: z.ZodOptional<z.ZodString>;
3683
- }, "strict", z.ZodTypeAny, {
3449
+ routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../route/types.js").RouteConfig & {
3450
+ candidates: import("../route/types.js").RouteModelConfig[];
3451
+ }, z.ZodTypeDef, {
3684
3452
  strategy: "round-robin" | "weighted";
3685
- candidates: {
3686
- id: string;
3687
- model: string;
3688
- provider: string;
3689
- weight: number;
3690
- account?: string | undefined;
3691
- }[];
3692
- sticky: "none" | "conversation";
3693
- chain?: {
3694
- kind: "custom";
3695
- run: string;
3696
- }[] | undefined;
3697
- defaultCandidate?: string | undefined;
3698
- }, {
3699
- strategy: "round-robin" | "weighted";
3700
- candidates: {
3453
+ name?: string | undefined;
3454
+ models?: {
3701
3455
  id: string;
3702
3456
  model: string;
3703
3457
  provider: string;
3704
3458
  weight?: number | undefined;
3705
3459
  account?: string | undefined;
3706
- }[];
3707
- chain?: {
3708
- kind: "custom";
3709
- run: string;
3710
3460
  }[] | undefined;
3711
- sticky?: "none" | "conversation" | undefined;
3712
- defaultCandidate?: string | undefined;
3713
- }>, {
3714
- strategy: "round-robin" | "weighted";
3715
- candidates: {
3716
- id: string;
3717
- model: string;
3718
- provider: string;
3719
- weight: number;
3720
- account?: string | undefined;
3721
- }[];
3722
- sticky: "none" | "conversation";
3723
3461
  chain?: {
3724
3462
  kind: "custom";
3725
3463
  run: string;
3726
3464
  }[] | undefined;
3727
- defaultCandidate?: string | undefined;
3728
- }, {
3729
- strategy: "round-robin" | "weighted";
3730
- candidates: {
3465
+ candidates?: {
3731
3466
  id: string;
3732
3467
  model: string;
3733
3468
  provider: string;
3734
3469
  weight?: number | undefined;
3735
3470
  account?: string | undefined;
3736
- }[];
3737
- chain?: {
3738
- kind: "custom";
3739
- run: string;
3740
3471
  }[] | undefined;
3741
3472
  sticky?: "none" | "conversation" | undefined;
3473
+ defaultModel?: string | undefined;
3742
3474
  defaultCandidate?: string | undefined;
3743
3475
  }>>>;
3744
3476
  hooks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
@@ -4393,98 +4125,31 @@ export declare const CrewxProjectConfigSchema: z.ZodEffects<z.ZodObject<{
4393
4125
  }>>;
4394
4126
  interceptors: z.ZodOptional<z.ZodUnknown>;
4395
4127
  }, z.ZodUnknown, "strip">>, "many">>;
4396
- routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
4397
- strategy: z.ZodEnum<["round-robin", "weighted"]>;
4398
- chain: z.ZodOptional<z.ZodArray<z.ZodObject<{
4399
- kind: z.ZodLiteral<"custom">;
4400
- run: z.ZodString;
4401
- }, "strict", z.ZodTypeAny, {
4402
- kind: "custom";
4403
- run: string;
4404
- }, {
4405
- kind: "custom";
4406
- run: string;
4407
- }>, "many">>;
4408
- candidates: z.ZodArray<z.ZodObject<{
4409
- id: z.ZodString;
4410
- provider: z.ZodString;
4411
- model: z.ZodString;
4412
- weight: z.ZodDefault<z.ZodNumber>;
4413
- account: z.ZodOptional<z.ZodString>;
4414
- }, "strict", z.ZodTypeAny, {
4415
- id: string;
4416
- model: string;
4417
- provider: string;
4418
- weight: number;
4419
- account?: string | undefined;
4420
- }, {
4421
- id: string;
4422
- model: string;
4423
- provider: string;
4424
- weight?: number | undefined;
4425
- account?: string | undefined;
4426
- }>, "many">;
4427
- sticky: z.ZodDefault<z.ZodEnum<["conversation", "none"]>>;
4428
- defaultCandidate: z.ZodOptional<z.ZodString>;
4429
- }, "strict", z.ZodTypeAny, {
4128
+ routes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../route/types.js").RouteConfig & {
4129
+ candidates: import("../route/types.js").RouteModelConfig[];
4130
+ }, z.ZodTypeDef, {
4430
4131
  strategy: "round-robin" | "weighted";
4431
- candidates: {
4432
- id: string;
4433
- model: string;
4434
- provider: string;
4435
- weight: number;
4436
- account?: string | undefined;
4437
- }[];
4438
- sticky: "none" | "conversation";
4439
- chain?: {
4440
- kind: "custom";
4441
- run: string;
4442
- }[] | undefined;
4443
- defaultCandidate?: string | undefined;
4444
- }, {
4445
- strategy: "round-robin" | "weighted";
4446
- candidates: {
4132
+ name?: string | undefined;
4133
+ models?: {
4447
4134
  id: string;
4448
4135
  model: string;
4449
4136
  provider: string;
4450
4137
  weight?: number | undefined;
4451
4138
  account?: string | undefined;
4452
- }[];
4453
- chain?: {
4454
- kind: "custom";
4455
- run: string;
4456
4139
  }[] | undefined;
4457
- sticky?: "none" | "conversation" | undefined;
4458
- defaultCandidate?: string | undefined;
4459
- }>, {
4460
- strategy: "round-robin" | "weighted";
4461
- candidates: {
4462
- id: string;
4463
- model: string;
4464
- provider: string;
4465
- weight: number;
4466
- account?: string | undefined;
4467
- }[];
4468
- sticky: "none" | "conversation";
4469
4140
  chain?: {
4470
4141
  kind: "custom";
4471
4142
  run: string;
4472
4143
  }[] | undefined;
4473
- defaultCandidate?: string | undefined;
4474
- }, {
4475
- strategy: "round-robin" | "weighted";
4476
- candidates: {
4144
+ candidates?: {
4477
4145
  id: string;
4478
4146
  model: string;
4479
4147
  provider: string;
4480
4148
  weight?: number | undefined;
4481
4149
  account?: string | undefined;
4482
- }[];
4483
- chain?: {
4484
- kind: "custom";
4485
- run: string;
4486
4150
  }[] | undefined;
4487
4151
  sticky?: "none" | "conversation" | undefined;
4152
+ defaultModel?: string | undefined;
4488
4153
  defaultCandidate?: string | undefined;
4489
4154
  }>>>;
4490
4155
  hooks: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
@@ -11,7 +11,7 @@ export declare const MCPB_MANIFEST_VERSION = "0.3";
11
11
  export declare const CREWX_META_NAMESPACE = "dev.crewx";
12
12
  export declare const MCPB_MANIFEST_KEYS: readonly ["manifest_version", "name", "display_name", "version", "description", "long_description", "author", "repository", "homepage", "documentation", "support", "icon", "icons", "screenshots", "localization", "server", "tools", "tools_generated", "prompts", "prompts_generated", "keywords", "license", "privacy_policies", "compatibility", "user_config", "_meta"];
13
13
  export declare const APP_MANIFEST_REQUIRED_KEYS: readonly ["manifest_version", "name", "display_name", "version", "description", "_meta"];
14
- export declare const APP_MANIFEST_PASSTHROUGH_KEYS: readonly ("name" | "description" | "server" | "tools" | "display_name" | "version" | "_meta" | "icon" | "manifest_version" | "long_description" | "author" | "repository" | "homepage" | "documentation" | "support" | "icons" | "screenshots" | "localization" | "tools_generated" | "prompts" | "prompts_generated" | "keywords" | "license" | "privacy_policies" | "compatibility" | "user_config")[];
14
+ export declare const APP_MANIFEST_PASSTHROUGH_KEYS: readonly ("name" | "description" | "server" | "tools" | "_meta" | "version" | "display_name" | "icon" | "manifest_version" | "long_description" | "author" | "repository" | "homepage" | "documentation" | "support" | "icons" | "screenshots" | "localization" | "tools_generated" | "prompts" | "prompts_generated" | "keywords" | "license" | "privacy_policies" | "compatibility" | "user_config")[];
15
15
  export declare const CREWX_META_REQUIRED_KEYS: readonly ["entry", "surfaces", "size", "stateProjection", "actions"];
16
16
  export declare const CREWX_META_OPTIONAL_KEYS: readonly ["definitionId", "definitionVersion", "icon", "tone", "entryHash", "runtime", "initialState", "usage", "detailPanel", "displayModes", "summaryProjection", "dataPaths", "focusedAiDataPaths", "csp", "deviceFeatures", "downloads", "share", "files", "desktopOnly"];
17
17
  export declare function isAppSemver(value: unknown): value is string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewx/sdk",
3
- "version": "0.9.0-rc.202",
3
+ "version": "0.9.0-rc.204",
4
4
  "license": "UNLICENSED",
5
5
  "engines": {
6
6
  "node": ">=20.19.0"