@blade-hq/agent-kit 1.0.27 → 1.0.28
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-X2NJKKXR.js → chunk-BGNKHPCD.js} +213 -40
- package/dist/chunk-BGNKHPCD.js.map +1 -0
- package/dist/{chunk-M72OL7ZJ.js → chunk-HCQDDDOX.js} +2 -2
- package/dist/{chunk-TE6G6NVX.js → chunk-OGHUIKCY.js} +3 -3
- package/dist/{chunk-C2FKVGJU.js → chunk-PYYDXV2A.js} +2 -2
- package/dist/{chunk-JU5SL4HP.js → chunk-TVWC3PED.js} +2 -2
- package/dist/{chunk-SBASG3M2.js → chunk-UWNQ4PXK.js} +4 -1101
- package/dist/chunk-UWNQ4PXK.js.map +1 -0
- package/dist/{chunk-34GDDOWY.js → chunk-YJ6BX3FU.js} +1379 -31
- package/dist/chunk-YJ6BX3FU.js.map +1 -0
- package/dist/client/blade-client.d.ts +2 -0
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +3 -1
- package/dist/client/resources/app-dev-templates.d.ts +93 -0
- package/dist/client/resources/models.d.ts +3 -0
- package/dist/{react → client/shared}/projection/builder.d.ts +1 -1
- package/dist/{react → client/shared}/projection/helpers.d.ts +1 -1
- package/dist/client/shared/projection/history.d.ts +12 -0
- package/dist/{react → client/shared}/projection/index.d.ts +1 -0
- package/dist/{react → client/shared}/projection/state.d.ts +1 -1
- package/dist/client/types/index.d.ts +2 -2
- package/dist/client/types/rest.d.ts +1010 -29
- package/dist/client/types/socket-events.d.ts +18 -132
- package/dist/react/api/app-dev-templates.d.ts +5 -0
- package/dist/react/api/model-config.d.ts +68 -0
- package/dist/react/api/models.d.ts +2 -0
- package/dist/react/api/published-apps.js +3 -3
- package/dist/react/api/sessions.js +2 -2
- package/dist/react/components/chat/ChatView.d.ts +3 -1
- package/dist/react/components/chat/MessageList.d.ts +3 -1
- package/dist/react/components/chat/index.js +5 -5
- package/dist/react/components/chat/scroll-anchor.d.ts +8 -0
- package/dist/react/components/plan/index.js +4 -4
- package/dist/react/components/session/index.js +3 -3
- package/dist/react/components/workspace/index.js +3 -3
- package/dist/react/hooks/use-model-preferences.d.ts +1 -0
- package/dist/react/hooks/use-resolved-model.d.ts +1 -0
- package/dist/react/index.d.ts +3 -0
- package/dist/react/index.js +87 -7
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-34GDDOWY.js.map +0 -1
- package/dist/chunk-SBASG3M2.js.map +0 -1
- package/dist/chunk-X2NJKKXR.js.map +0 -1
- /package/dist/{chunk-M72OL7ZJ.js.map → chunk-HCQDDDOX.js.map} +0 -0
- /package/dist/{chunk-TE6G6NVX.js.map → chunk-OGHUIKCY.js.map} +0 -0
- /package/dist/{chunk-C2FKVGJU.js.map → chunk-PYYDXV2A.js.map} +0 -0
- /package/dist/{chunk-JU5SL4HP.js.map → chunk-TVWC3PED.js.map} +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { BladeClient } from "../blade-client.js";
|
|
2
|
+
export interface AppDevTemplateCategory {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface AppDevTemplateBadge {
|
|
7
|
+
text: string | null;
|
|
8
|
+
color: string | null;
|
|
9
|
+
}
|
|
10
|
+
export interface AppDevTemplateMeta {
|
|
11
|
+
stack: string[];
|
|
12
|
+
fit: string[];
|
|
13
|
+
tags: string[];
|
|
14
|
+
difficulty: string | null;
|
|
15
|
+
estimated_minutes: number | null;
|
|
16
|
+
author: string | null;
|
|
17
|
+
updated_at: string | null;
|
|
18
|
+
}
|
|
19
|
+
export interface AppDevTemplateCoverImage {
|
|
20
|
+
path: string | null;
|
|
21
|
+
alt: string | null;
|
|
22
|
+
}
|
|
23
|
+
export interface AppDevTemplateDemoVideo {
|
|
24
|
+
path: string | null;
|
|
25
|
+
mime_type: string | null;
|
|
26
|
+
size_bytes: number | null;
|
|
27
|
+
duration_seconds: number | null;
|
|
28
|
+
poster: string | null;
|
|
29
|
+
title: string | null;
|
|
30
|
+
description: string | null;
|
|
31
|
+
}
|
|
32
|
+
export interface AppDevTemplateScreenshot {
|
|
33
|
+
path: string | null;
|
|
34
|
+
title: string | null;
|
|
35
|
+
}
|
|
36
|
+
export interface AppDevTemplateMedia {
|
|
37
|
+
cover: AppDevTemplateCoverImage | null;
|
|
38
|
+
demo_video: AppDevTemplateDemoVideo | null;
|
|
39
|
+
screenshots: AppDevTemplateScreenshot[];
|
|
40
|
+
}
|
|
41
|
+
export interface AppDevTemplateUsageStep {
|
|
42
|
+
step: number;
|
|
43
|
+
title: string;
|
|
44
|
+
description: string | null;
|
|
45
|
+
}
|
|
46
|
+
export interface AppDevTemplateAgent {
|
|
47
|
+
key: string | null;
|
|
48
|
+
name: string;
|
|
49
|
+
role: string | null;
|
|
50
|
+
description: string | null;
|
|
51
|
+
default: boolean;
|
|
52
|
+
}
|
|
53
|
+
export interface AppDevTemplateOutput {
|
|
54
|
+
type: string | null;
|
|
55
|
+
name: string;
|
|
56
|
+
description: string | null;
|
|
57
|
+
}
|
|
58
|
+
export interface AppDevTemplateSummary {
|
|
59
|
+
slug: string;
|
|
60
|
+
title: string;
|
|
61
|
+
summary: string;
|
|
62
|
+
category: AppDevTemplateCategory;
|
|
63
|
+
badge: AppDevTemplateBadge | null;
|
|
64
|
+
meta: AppDevTemplateMeta;
|
|
65
|
+
cover: string | null;
|
|
66
|
+
order: number;
|
|
67
|
+
}
|
|
68
|
+
export interface AppDevTemplateDetail extends AppDevTemplateSummary {
|
|
69
|
+
description: string;
|
|
70
|
+
media: AppDevTemplateMedia;
|
|
71
|
+
included: string[];
|
|
72
|
+
usage_steps: AppDevTemplateUsageStep[];
|
|
73
|
+
creation: Record<string, unknown> | null;
|
|
74
|
+
capabilities: string[];
|
|
75
|
+
agents: AppDevTemplateAgent[];
|
|
76
|
+
outputs: AppDevTemplateOutput[];
|
|
77
|
+
}
|
|
78
|
+
export interface AppDevTemplateListResponse {
|
|
79
|
+
items: AppDevTemplateSummary[];
|
|
80
|
+
total: number;
|
|
81
|
+
offset: number;
|
|
82
|
+
limit: number;
|
|
83
|
+
}
|
|
84
|
+
export declare class AppDevTemplatesResource {
|
|
85
|
+
private client;
|
|
86
|
+
constructor(client: BladeClient);
|
|
87
|
+
list(params?: {
|
|
88
|
+
offset?: number;
|
|
89
|
+
limit?: number;
|
|
90
|
+
}): Promise<AppDevTemplateListResponse>;
|
|
91
|
+
get(slug: string): Promise<AppDevTemplateDetail>;
|
|
92
|
+
getMediaUrl(slug: string, path: string): string;
|
|
93
|
+
}
|
|
@@ -4,15 +4,18 @@ export declare const ModelOption: import("arktype/internal/variants/object.ts").
|
|
|
4
4
|
label: string;
|
|
5
5
|
inputModalities?: string[] | undefined;
|
|
6
6
|
supportsImage?: boolean | undefined;
|
|
7
|
+
thinkingAvailable?: boolean | undefined;
|
|
7
8
|
}, {}>;
|
|
8
9
|
export type ModelOption = typeof ModelOption.infer;
|
|
9
10
|
export declare const ModelsConfig: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
10
11
|
default: string;
|
|
12
|
+
thinkingAvailable?: boolean | undefined;
|
|
11
13
|
models: {
|
|
12
14
|
id: string;
|
|
13
15
|
label: string;
|
|
14
16
|
inputModalities?: string[] | undefined;
|
|
15
17
|
supportsImage?: boolean | undefined;
|
|
18
|
+
thinkingAvailable?: boolean | undefined;
|
|
16
19
|
}[];
|
|
17
20
|
}, {}>;
|
|
18
21
|
export type ModelsConfig = typeof ModelsConfig.infer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ContentBlock, PendingQuestionRef, ToolCallProjection, TurnProjection } from "
|
|
1
|
+
import type { ContentBlock, PendingQuestionRef, ToolCallProjection, TurnProjection } from "../../../react/schemas/projection.js";
|
|
2
2
|
import type { TurnState } from "./state.js";
|
|
3
3
|
export declare function upsertToolCall(state: TurnState, toolCallId: string, toolName: string, displayName: string, args: string): void;
|
|
4
4
|
export declare function applyToolResult(state: TurnState, toolCallId: string, result: unknown, status: ToolCallProjection["status"], durationMs: number | null, sourceLoop: {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TurnProjection } from "../../../react/schemas/projection.js";
|
|
2
|
+
export interface RawHistoryEntry {
|
|
3
|
+
id?: string;
|
|
4
|
+
kind?: string;
|
|
5
|
+
loop_name?: string;
|
|
6
|
+
message?: Record<string, unknown>;
|
|
7
|
+
data?: Record<string, unknown>;
|
|
8
|
+
timestamp?: string;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
/** Rebuild completed UI turns from raw persisted history entries. */
|
|
12
|
+
export declare function projectHistory(entries: RawHistoryEntry[]): TurnProjection[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ContentBlock, MemoryRef, ToolCallProjection, TurnProjection } from "
|
|
1
|
+
import type { ContentBlock, MemoryRef, ToolCallProjection, TurnProjection } from "../../../react/schemas/projection.js";
|
|
2
2
|
export interface TurnState {
|
|
3
3
|
turnId: string;
|
|
4
4
|
loopId: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { components, paths } from "./rest.js";
|
|
2
|
-
import type { ChatEndPayload, ChatSendPayload, ClientToServerEvents, ServerToClientEvents, SessionUpdatedPayload, SystemErrorPayload, SystemNotificationPayload
|
|
2
|
+
import type { ChatEndPayload, ChatSendPayload, ClientToServerEvents, ServerToClientEvents, SessionUpdatedPayload, SystemErrorPayload, SystemNotificationPayload } from "./socket-events.js";
|
|
3
3
|
export type RestPaths = paths;
|
|
4
4
|
export type RestComponents = components;
|
|
5
5
|
export type Session = paths["/api/sessions/{session_id}"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
6
6
|
export type SessionList = paths["/api/sessions"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
7
7
|
export type SkillList = paths["/api/skills"]["get"]["responses"]["200"]["content"]["application/json"];
|
|
8
|
-
export type { ChatEndPayload, ChatSendPayload, ClientToServerEvents, ServerToClientEvents, SessionUpdatedPayload, SystemErrorPayload, SystemNotificationPayload,
|
|
8
|
+
export type { ChatEndPayload, ChatSendPayload, ClientToServerEvents, ServerToClientEvents, SessionUpdatedPayload, SystemErrorPayload, SystemNotificationPayload, };
|