@blade-hq/agent-kit 1.0.33 → 1.0.34

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.
@@ -1939,7 +1939,7 @@ export interface paths {
1939
1939
  patch?: never;
1940
1940
  trace?: never;
1941
1941
  };
1942
- "/api/admin/model-config/{config_id}": {
1942
+ "/api/admin/model-config/models/{model_id}": {
1943
1943
  parameters: {
1944
1944
  query?: never;
1945
1945
  header?: never;
@@ -1948,16 +1948,16 @@ export interface paths {
1948
1948
  };
1949
1949
  get?: never;
1950
1950
  /** Update Model Config */
1951
- put: operations["update_model_config_api_admin_model_config__config_id__put"];
1951
+ put: operations["update_model_config_api_admin_model_config_models__model_id__put"];
1952
1952
  post?: never;
1953
1953
  /** Delete Model Config */
1954
- delete: operations["delete_model_config_api_admin_model_config__config_id__delete"];
1954
+ delete: operations["delete_model_config_api_admin_model_config_models__model_id__delete"];
1955
1955
  options?: never;
1956
1956
  head?: never;
1957
1957
  patch?: never;
1958
1958
  trace?: never;
1959
1959
  };
1960
- "/api/admin/model-config/{config_id}/default": {
1960
+ "/api/admin/model-config/default": {
1961
1961
  parameters: {
1962
1962
  query?: never;
1963
1963
  header?: never;
@@ -1966,7 +1966,24 @@ export interface paths {
1966
1966
  };
1967
1967
  get?: never;
1968
1968
  /** Set Default Model Config */
1969
- put: operations["set_default_model_config_api_admin_model_config__config_id__default_put"];
1969
+ put: operations["set_default_model_config_api_admin_model_config_default_put"];
1970
+ post?: never;
1971
+ delete?: never;
1972
+ options?: never;
1973
+ head?: never;
1974
+ patch?: never;
1975
+ trace?: never;
1976
+ };
1977
+ "/api/admin/model-config/default/reset": {
1978
+ parameters: {
1979
+ query?: never;
1980
+ header?: never;
1981
+ path?: never;
1982
+ cookie?: never;
1983
+ };
1984
+ get?: never;
1985
+ /** Clear Default Model Config */
1986
+ put: operations["clear_default_model_config_api_admin_model_config_default_reset_put"];
1970
1987
  post?: never;
1971
1988
  delete?: never;
1972
1989
  options?: never;
@@ -5528,10 +5545,29 @@ export interface components {
5528
5545
  service: components["schemas"]["ModelServiceResponse"];
5529
5546
  /** Items */
5530
5547
  items: components["schemas"]["ModelConfigResponse"][];
5531
- /** Default Config Id */
5532
- default_config_id: string;
5548
+ /** Default Model Id */
5549
+ default_model_id: string;
5550
+ /** Default Source */
5551
+ default_source: string;
5552
+ /** Admin Default Model Id */
5553
+ admin_default_model_id?: string | null;
5554
+ /**
5555
+ * Admin Default Available
5556
+ * @default false
5557
+ */
5558
+ admin_default_available: boolean;
5533
5559
  /** Source */
5534
5560
  source: string;
5561
+ /**
5562
+ * Catalog Incomplete
5563
+ * @default false
5564
+ */
5565
+ catalog_incomplete: boolean;
5566
+ /**
5567
+ * Catalog Stale
5568
+ * @default false
5569
+ */
5570
+ catalog_stale: boolean;
5535
5571
  };
5536
5572
  /** ModelConfigInput */
5537
5573
  ModelConfigInput: {
@@ -5542,6 +5578,13 @@ export interface components {
5542
5578
  /** Id */
5543
5579
  id: string;
5544
5580
  model: components["schemas"]["ModelDetailsResponse"];
5581
+ /** Source */
5582
+ source: string;
5583
+ /**
5584
+ * Overridden
5585
+ * @default false
5586
+ */
5587
+ overridden: boolean;
5545
5588
  };
5546
5589
  /** ModelConfigTestResponse */
5547
5590
  ModelConfigTestResponse: {
@@ -5557,7 +5600,7 @@ export interface components {
5557
5600
  /** Id */
5558
5601
  id: string;
5559
5602
  /** Context Window */
5560
- context_window: number;
5603
+ context_window?: number | null;
5561
5604
  /**
5562
5605
  * Supports Vision
5563
5606
  * @default true
@@ -5568,6 +5611,8 @@ export interface components {
5568
5611
  ModelDetailsResponse: {
5569
5612
  /** Id */
5570
5613
  id: string;
5614
+ /** Label */
5615
+ label: string;
5571
5616
  /** Context Window */
5572
5617
  context_window: number;
5573
5618
  /** Supports Vision */
@@ -5609,6 +5654,12 @@ export interface components {
5609
5654
  * @enum {string}
5610
5655
  */
5611
5656
  thinking_request_format: "auto" | "none" | "openai_reasoning_effort" | "openrouter_reasoning" | "deepseek_thinking" | "together_reasoning" | "zai_thinking" | "qwen_enable_thinking" | "sglang_chat_template";
5657
+ /**
5658
+ * Auth Mode
5659
+ * @default fixed_key
5660
+ * @enum {string}
5661
+ */
5662
+ auth_mode: "current_user" | "fixed_key" | "none";
5612
5663
  };
5613
5664
  /** ModelServiceResponse */
5614
5665
  ModelServiceResponse: {
@@ -5628,6 +5679,11 @@ export interface components {
5628
5679
  * @enum {string}
5629
5680
  */
5630
5681
  effective_thinking_request_format: "none" | "openai_reasoning_effort" | "openrouter_reasoning" | "deepseek_thinking" | "together_reasoning" | "zai_thinking" | "qwen_enable_thinking" | "sglang_chat_template";
5682
+ /**
5683
+ * Auth Mode
5684
+ * @enum {string}
5685
+ */
5686
+ auth_mode: "current_user" | "fixed_key" | "none";
5631
5687
  };
5632
5688
  /** ModelsConfig */
5633
5689
  ModelsConfig: {
@@ -10393,12 +10449,12 @@ export interface operations {
10393
10449
  };
10394
10450
  };
10395
10451
  };
10396
- update_model_config_api_admin_model_config__config_id__put: {
10452
+ update_model_config_api_admin_model_config_models__model_id__put: {
10397
10453
  parameters: {
10398
10454
  query?: never;
10399
10455
  header?: never;
10400
10456
  path: {
10401
- config_id: string;
10457
+ model_id: string;
10402
10458
  };
10403
10459
  cookie?: never;
10404
10460
  };
@@ -10428,12 +10484,12 @@ export interface operations {
10428
10484
  };
10429
10485
  };
10430
10486
  };
10431
- delete_model_config_api_admin_model_config__config_id__delete: {
10487
+ delete_model_config_api_admin_model_config_models__model_id__delete: {
10432
10488
  parameters: {
10433
10489
  query?: never;
10434
10490
  header?: never;
10435
10491
  path: {
10436
- config_id: string;
10492
+ model_id: string;
10437
10493
  };
10438
10494
  cookie?: never;
10439
10495
  };
@@ -10459,16 +10515,18 @@ export interface operations {
10459
10515
  };
10460
10516
  };
10461
10517
  };
10462
- set_default_model_config_api_admin_model_config__config_id__default_put: {
10518
+ set_default_model_config_api_admin_model_config_default_put: {
10463
10519
  parameters: {
10464
10520
  query?: never;
10465
10521
  header?: never;
10466
- path: {
10467
- config_id: string;
10468
- };
10522
+ path?: never;
10469
10523
  cookie?: never;
10470
10524
  };
10471
- requestBody?: never;
10525
+ requestBody: {
10526
+ content: {
10527
+ "application/json": components["schemas"]["ModelProbeRequest"];
10528
+ };
10529
+ };
10472
10530
  responses: {
10473
10531
  /** @description Successful Response */
10474
10532
  200: {
@@ -10490,6 +10548,26 @@ export interface operations {
10490
10548
  };
10491
10549
  };
10492
10550
  };
10551
+ clear_default_model_config_api_admin_model_config_default_reset_put: {
10552
+ parameters: {
10553
+ query?: never;
10554
+ header?: never;
10555
+ path?: never;
10556
+ cookie?: never;
10557
+ };
10558
+ requestBody?: never;
10559
+ responses: {
10560
+ /** @description Successful Response */
10561
+ 200: {
10562
+ headers: {
10563
+ [name: string]: unknown;
10564
+ };
10565
+ content: {
10566
+ "application/json": components["schemas"]["ModelConfigCollectionResponse"];
10567
+ };
10568
+ };
10569
+ };
10570
+ };
10493
10571
  list_model_candidates_api_admin_model_config_candidates_post: {
10494
10572
  parameters: {
10495
10573
  query?: never;
@@ -1,34 +1,45 @@
1
1
  export type ThinkingRequestFormat = "auto" | "none" | "openai_reasoning_effort" | "openrouter_reasoning" | "deepseek_thinking" | "together_reasoning" | "zai_thinking" | "qwen_enable_thinking" | "sglang_chat_template";
2
+ export type ModelAuthMode = "current_user" | "fixed_key" | "none";
2
3
  export interface RuntimeModelService {
3
4
  name: string;
4
5
  base_url: string;
5
6
  api_key_configured: boolean;
6
7
  thinking_request_format: ThinkingRequestFormat;
7
8
  effective_thinking_request_format: Exclude<ThinkingRequestFormat, "auto">;
9
+ auth_mode: ModelAuthMode;
8
10
  }
9
11
  export interface RuntimeModelDetails {
10
12
  id: string;
13
+ label: string;
11
14
  context_window: number;
12
15
  supports_vision: boolean;
13
16
  }
14
17
  export interface RuntimeModelConfig {
15
18
  id: string;
16
19
  model: RuntimeModelDetails;
20
+ source: "gateway" | "admin";
21
+ overridden: boolean;
17
22
  }
18
23
  export interface RuntimeModelConfigCollection {
19
24
  service: RuntimeModelService;
20
25
  items: RuntimeModelConfig[];
21
- default_config_id: string;
26
+ default_model_id: string;
27
+ default_source: "admin" | "startup" | "gateway" | "none";
28
+ admin_default_model_id: string | null;
29
+ admin_default_available: boolean;
22
30
  source: "saved" | "startup";
31
+ catalog_incomplete: boolean;
32
+ catalog_stale: boolean;
23
33
  }
24
34
  export interface UpdateRuntimeModelService {
25
35
  base_url: string;
26
36
  api_key?: string;
27
37
  thinking_request_format: ThinkingRequestFormat;
38
+ auth_mode: ModelAuthMode;
28
39
  }
29
40
  export interface UpdateModelDetails {
30
41
  id: string;
31
- context_window: number;
42
+ context_window: number | null;
32
43
  supports_vision: boolean;
33
44
  }
34
45
  export interface UpdateRuntimeModelConfig {
@@ -60,6 +71,7 @@ export declare function createRuntimeModelConfig(config: UpdateRuntimeModelConfi
60
71
  export declare function updateRuntimeModelConfig(configId: string, config: UpdateRuntimeModelConfig): Promise<RuntimeModelConfigCollection>;
61
72
  export declare function deleteRuntimeModelConfig(configId: string): Promise<RuntimeModelConfigCollection>;
62
73
  export declare function setDefaultRuntimeModelConfig(configId: string): Promise<RuntimeModelConfigCollection>;
74
+ export declare function clearDefaultRuntimeModelConfig(): Promise<RuntimeModelConfigCollection>;
63
75
  export declare function detectContextWindow(config: ModelConfigProbe): Promise<ContextWindowDetectionResult>;
64
76
  export declare function listModelCandidates(config: ModelCandidatesRequest): Promise<ModelCandidatesResult>;
65
77
  export declare function testRuntimeModelConfig(config: ModelConfigProbe): Promise<ModelConfigTestResult>;
@@ -18,7 +18,7 @@ import {
18
18
  isErrorMessage,
19
19
  isUserMessage,
20
20
  useWhatIfQuoteContext
21
- } from "../../../chunk-IGMLETZX.js";
21
+ } from "../../../chunk-BDGMBHYV.js";
22
22
  import "../../../chunk-H62LH2AG.js";
23
23
  import {
24
24
  AskUserQuestionBlock
@@ -14,7 +14,7 @@ export * as memoriesApi from "./api/memories.js";
14
14
  export * as gisApi from "./api/gis-api.js";
15
15
  export * as modelsApi from "./api/models.js";
16
16
  export * as modelConfigApi from "./api/model-config.js";
17
- export type { ContextWindowDetectionResult, ModelCandidatesRequest, ModelCandidatesResult, ModelConfigProbe, ModelConfigTestResult, RuntimeModelConfig, RuntimeModelConfigCollection, RuntimeModelDetails, RuntimeModelService, ThinkingRequestFormat, UpdateModelDetails, UpdateRuntimeModelService, UpdateRuntimeModelConfig, } from "./api/model-config.js";
17
+ export type { ContextWindowDetectionResult, ModelCandidatesRequest, ModelCandidatesResult, ModelConfigProbe, ModelConfigTestResult, ModelAuthMode, RuntimeModelConfig, RuntimeModelConfigCollection, RuntimeModelDetails, RuntimeModelService, ThinkingRequestFormat, UpdateModelDetails, UpdateRuntimeModelService, UpdateRuntimeModelConfig, } from "./api/model-config.js";
18
18
  export type { Memory, MemoryCreateBody, MemoryListParams, MemoryListResponse, } from "./api/memories.js";
19
19
  export * as partnerSkillApi from "./api/partner-skill.js";
20
20
  export * as publishedAppsApi from "./api/published-apps.js";
@@ -36,7 +36,7 @@ import {
36
36
  useTiptapVoiceInput,
37
37
  useVoiceInput,
38
38
  user_preferences_exports
39
- } from "../chunk-IGMLETZX.js";
39
+ } from "../chunk-BDGMBHYV.js";
40
40
  import "../chunk-H62LH2AG.js";
41
41
  import {
42
42
  CardCodeBlock,
@@ -228,6 +228,7 @@ var fetchRuntimeConfig = (...args) => r4().fetchRuntimeConfig(...args);
228
228
  // src/react/api/model-config.ts
229
229
  var model_config_exports = {};
230
230
  __export(model_config_exports, {
231
+ clearDefaultRuntimeModelConfig: () => clearDefaultRuntimeModelConfig,
231
232
  createRuntimeModelConfig: () => createRuntimeModelConfig,
232
233
  deleteRuntimeModelConfig: () => deleteRuntimeModelConfig,
233
234
  detectContextWindow: () => detectContextWindow,
@@ -257,7 +258,7 @@ function createRuntimeModelConfig(config) {
257
258
  }
258
259
  function updateRuntimeModelConfig(configId, config) {
259
260
  return apiFetch(
260
- `/api/admin/model-config/${encodeURIComponent(configId)}`,
261
+ `/api/admin/model-config/models/${encodeURIComponent(configId)}`,
261
262
  {
262
263
  method: "PUT",
263
264
  headers: { "Content-Type": "application/json" },
@@ -267,15 +268,21 @@ function updateRuntimeModelConfig(configId, config) {
267
268
  }
268
269
  function deleteRuntimeModelConfig(configId) {
269
270
  return apiFetch(
270
- `/api/admin/model-config/${encodeURIComponent(configId)}`,
271
+ `/api/admin/model-config/models/${encodeURIComponent(configId)}`,
271
272
  { method: "DELETE" }
272
273
  );
273
274
  }
274
275
  function setDefaultRuntimeModelConfig(configId) {
275
- return apiFetch(
276
- `/api/admin/model-config/${encodeURIComponent(configId)}/default`,
277
- { method: "PUT" }
278
- );
276
+ return apiFetch("/api/admin/model-config/default", {
277
+ method: "PUT",
278
+ headers: { "Content-Type": "application/json" },
279
+ body: JSON.stringify({ model_id: configId })
280
+ });
281
+ }
282
+ function clearDefaultRuntimeModelConfig() {
283
+ return apiFetch("/api/admin/model-config/default/reset", {
284
+ method: "PUT"
285
+ });
279
286
  }
280
287
  function detectContextWindow(config) {
281
288
  return apiFetch("/api/admin/model-config/detect-context-window", {