@blade-hq/agent-kit 1.0.32 → 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.
- package/dist/{chunk-IGMLETZX.js → chunk-BDGMBHYV.js} +11 -8
- package/dist/chunk-BDGMBHYV.js.map +1 -0
- package/dist/client/types/rest.d.ts +379 -108
- package/dist/react/api/model-config.d.ts +14 -2
- package/dist/react/components/chat/index.js +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +14 -7
- package/dist/react/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-IGMLETZX.js.map +0 -1
|
@@ -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
|
-
|
|
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>;
|
package/dist/react/index.d.ts
CHANGED
|
@@ -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";
|
package/dist/react/index.js
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
useTiptapVoiceInput,
|
|
37
37
|
useVoiceInput,
|
|
38
38
|
user_preferences_exports
|
|
39
|
-
} from "../chunk-
|
|
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
|
-
|
|
277
|
-
{
|
|
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", {
|