@blade-hq/agent-kit 0.5.24 → 0.5.25
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/{SkillStatusBar-DO-ltefK.d.ts → SkillStatusBar-BUisTEAL.d.ts} +2 -2
- package/dist/{blade-client-Bhp0hHiZ.d.ts → blade-client-KmBClau6.d.ts} +35 -2
- package/dist/{chunk-DTDZFQRY.js → chunk-FZXLII7S.js} +14 -1
- package/dist/chunk-FZXLII7S.js.map +1 -0
- package/dist/{chunk-63IWZ3AO.js → chunk-HAFDWDFG.js} +2 -2
- package/dist/{chunk-KW66QITV.js → chunk-PKQKLRFQ.js} +3 -3
- package/dist/{chunk-7FGJNW56.js → chunk-SENUKC7C.js} +366 -319
- package/dist/chunk-SENUKC7C.js.map +1 -0
- package/dist/{chunk-QKSZPJQX.js → chunk-UQWHEHG3.js} +2 -2
- package/dist/client/index.d.ts +4574 -2850
- package/dist/react/api/vibe-coding.d.ts +3 -3
- package/dist/react/api/vibe-coding.js +1 -1
- package/dist/react/components/chat/index.d.ts +4 -4
- package/dist/react/components/chat/index.js +4 -4
- package/dist/react/components/plan/index.js +3 -3
- package/dist/react/components/session/index.d.ts +1 -1
- package/dist/react/components/session/index.js +2 -2
- package/dist/react/components/workspace/index.d.ts +22 -2
- package/dist/react/components/workspace/index.js +30 -14
- package/dist/react/components/workspace/index.js.map +1 -1
- package/dist/react/index.d.ts +17 -179
- package/dist/react/index.js +6 -5
- package/dist/react/index.js.map +1 -1
- package/dist/{session-BuaeCsMC.d.ts → session-B5v5KkVd.d.ts} +5 -3
- package/dist/sessions-DfRYZZnH.d.ts +174 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-7FGJNW56.js.map +0 -1
- package/dist/chunk-DTDZFQRY.js.map +0 -1
- /package/dist/{chunk-63IWZ3AO.js.map → chunk-HAFDWDFG.js.map} +0 -0
- /package/dist/{chunk-KW66QITV.js.map → chunk-PKQKLRFQ.js.map} +0 -0
- /package/dist/{chunk-QKSZPJQX.js.map → chunk-UQWHEHG3.js.map} +0 -0
|
@@ -3,8 +3,8 @@ import * as react from 'react';
|
|
|
3
3
|
import { ComponentType, ReactNode } from 'react';
|
|
4
4
|
import { C as ChatMessage, A as AskUserAnswerData, T as ToolCallInfo, M as MessageContent } from './AskUserQuestionBlock---kOTouk.js';
|
|
5
5
|
import * as zustand from 'zustand';
|
|
6
|
-
import { M as ModeId,
|
|
7
|
-
import {
|
|
6
|
+
import { M as ModeId, a as SessionInfo, b as SessionStatus } from './session-B5v5KkVd.js';
|
|
7
|
+
import { v as BladeClient } from './blade-client-KmBClau6.js';
|
|
8
8
|
import { C as ContentBlock } from './projection-BWYEFYNn.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as arktype_internal_variants_object_ts from 'arktype/internal/variants/object.ts';
|
|
2
2
|
import * as arktype_internal_variants_string_ts from 'arktype/internal/variants/string.ts';
|
|
3
3
|
import { T as TurnProjection } from './projection-BWYEFYNn.js';
|
|
4
|
-
import {
|
|
4
|
+
import { a as SessionInfo, T as TemplateId, S as SessionDetail, c as Solution, B as BizRole } from './session-B5v5KkVd.js';
|
|
5
5
|
import { Socket } from 'socket.io-client';
|
|
6
6
|
|
|
7
7
|
declare class BladeApiError extends Error {
|
|
@@ -1259,6 +1259,22 @@ declare namespace SessionUnsubscribePayloadSchema {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
1261
1261
|
type SessionUnsubscribePayload = SessionUnsubscribePayloadSchema.SessionUnsubscribePayload;
|
|
1262
|
+
declare namespace AgentBoardProjectSubscribePayloadSchema {
|
|
1263
|
+
type ProjectId = number;
|
|
1264
|
+
interface AgentBoardProjectSubscribePayload {
|
|
1265
|
+
project_id: ProjectId;
|
|
1266
|
+
[k: string]: unknown;
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
type AgentBoardProjectSubscribePayload = AgentBoardProjectSubscribePayloadSchema.AgentBoardProjectSubscribePayload;
|
|
1270
|
+
declare namespace AgentBoardProjectUnsubscribePayloadSchema {
|
|
1271
|
+
type ProjectId = number;
|
|
1272
|
+
interface AgentBoardProjectUnsubscribePayload {
|
|
1273
|
+
project_id: ProjectId;
|
|
1274
|
+
[k: string]: unknown;
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
type AgentBoardProjectUnsubscribePayload = AgentBoardProjectUnsubscribePayloadSchema.AgentBoardProjectUnsubscribePayload;
|
|
1262
1278
|
declare namespace ChatStartPayloadSchema {
|
|
1263
1279
|
type SessionId = (string | null);
|
|
1264
1280
|
interface ChatStartPayload {
|
|
@@ -1537,6 +1553,20 @@ declare namespace VibeLogsEndPayloadSchema {
|
|
|
1537
1553
|
}
|
|
1538
1554
|
}
|
|
1539
1555
|
type VibeLogsEndPayload = VibeLogsEndPayloadSchema.VibeLogsEndPayload;
|
|
1556
|
+
declare namespace AgentBoardBoardTaskChangedPayloadSchema {
|
|
1557
|
+
type ProjectId = number;
|
|
1558
|
+
type Action = ("created" | "updated" | "deleted");
|
|
1559
|
+
interface AgentBoardBoardTaskChangedPayload {
|
|
1560
|
+
project_id: ProjectId;
|
|
1561
|
+
action: Action;
|
|
1562
|
+
task: Task;
|
|
1563
|
+
[k: string]: unknown;
|
|
1564
|
+
}
|
|
1565
|
+
interface Task {
|
|
1566
|
+
[k: string]: unknown;
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
type AgentBoardBoardTaskChangedPayload = AgentBoardBoardTaskChangedPayloadSchema.AgentBoardBoardTaskChangedPayload;
|
|
1540
1570
|
declare namespace ChatStopAckSchema {
|
|
1541
1571
|
type Status = string;
|
|
1542
1572
|
type Message = (string | null);
|
|
@@ -1567,6 +1597,8 @@ interface ClientToServerEvents {
|
|
|
1567
1597
|
"chat:compact": (payload: ChatCompactPayload, ack: (response: ChatCompactAck) => void) => void;
|
|
1568
1598
|
"session:subscribe": (payload: SessionSubscribePayload) => void;
|
|
1569
1599
|
"session:unsubscribe": (payload: SessionUnsubscribePayload) => void;
|
|
1600
|
+
"agent-board:project:subscribe": (payload: AgentBoardProjectSubscribePayload) => void;
|
|
1601
|
+
"agent-board:project:unsubscribe": (payload: AgentBoardProjectUnsubscribePayload) => void;
|
|
1570
1602
|
"asr:start": (payload: unknown) => void;
|
|
1571
1603
|
"asr:audio": (payload: AsrAudioPayload) => void;
|
|
1572
1604
|
"asr:stop": (payload: unknown) => void;
|
|
@@ -1600,6 +1632,7 @@ interface ServerToClientEvents {
|
|
|
1600
1632
|
"vibe:logs:line": (payload: VibeLogsLinePayload) => void;
|
|
1601
1633
|
"vibe:logs:end": (payload: VibeLogsEndPayload) => void;
|
|
1602
1634
|
"replay:input_mismatch": (payload: unknown) => void;
|
|
1635
|
+
"agent-board:board-task:changed": (payload: AgentBoardBoardTaskChangedPayload) => void;
|
|
1603
1636
|
}
|
|
1604
1637
|
|
|
1605
1638
|
type TypedSocket = Socket<ServerToClientEvents, ClientToServerEvents>;
|
|
@@ -1674,4 +1707,4 @@ interface UploadProgress {
|
|
|
1674
1707
|
percent?: number;
|
|
1675
1708
|
}
|
|
1676
1709
|
|
|
1677
|
-
export {
|
|
1710
|
+
export { type HeadlessRunOptions as $, type ApiKeyCreateResponse as A, type BackgroundTask as B, type CreateVibeCodingSessionResult as C, type DeployBumpMode as D, type ChatSendPayload as E, type FileEntry as F, type ClientToServerEvents as G, type HistoryNode as H, type ImportPreview as I, type CodingTask as J, type CodingTaskTopic as K, type ComputerUpgradeReason as L, type ComputerUpgradeStatusResponse as M, type CreateQuickScenarioPayload as N, type CreateSocketOptions as O, type PortMapping as P, type CreateSoftwareFactorySharedFilePayload as Q, type CreateSoftwareFactorySoftwarePayload as R, SessionsResource as S, type TokenizeResult as T, type UploadFileEntry as U, VibeCodingResource as V, GisResource as W, type GlobalSkillStats as X, HeadlessError as Y, HeadlessResource as Z, type HeadlessRunInSessionResult as _, type VibeCodingDeployStatus as a, AgentDriver as a$, type HttpMethod as a0, type InstalledRegistrySkill as a1, type JsonSchemaObject as a2, MemoriesResource as a3, type Memory as a4, type MemoryCreateBody as a5, type MemoryListParams as a6, type MemoryListResponse as a7, ModelOption as a8, ModelsConfig as a9, type UpgradeComputerResponse as aA, type UserInfo as aB, UserPreferencesResource as aC, createSocket as aD, normalizeResource as aE, EnvBucketsResource as aF, type EnvBucket as aG, type PlatformEnvBucket as aH, type GisState as aI, type RuntimeConfig as aJ, type SkillDetail as aK, type SkillStats as aL, type SkillSummary as aM, type SkillSearchResult as aN, PartnerSkillInstallPayload as aO, PartnerSkillInstallResult as aP, SessionSkillUploadPayload as aQ, SessionSkillUploadResult as aR, PublishedApp as aS, PublishedAppListResponse as aT, PublishedAppStatus as aU, UnpublishAppResponse as aV, type GisGoal as aW, type GisResource$1 as aX, type GisTarget as aY, type GisMapCommand as aZ, Task as a_, ModelsResource as aa, type PreviewUrlItem as ab, type ProvidersResponse as ac, PublishedAppsResource as ad, type QuickScenario as ae, REGISTRY_PREFIX as af, RegistryResource as ag, type ResourceApi as ah, ScenariosResource as ai, type ServerToClientEvents as aj, type SessionUpdatedPayload as ak, type SkillOrgListResponse as al, type SkillOrgOption as am, SkillsResource as an, type SoftwareFactoryModuleBlueprint as ao, SoftwareFactoryResource as ap, type SoftwareFactorySharedFile as aq, type SoftwareFactorySoftware as ar, type SoftwareFactoryTopic as as, type SoftwareFactoryTopicModule as at, SolutionsResource as au, type SystemErrorPayload as av, type SystemNotificationPayload as aw, type TurnProjectionPayload as ax, type TypedSocket as ay, type UpdateQuickScenarioPayload as az, type VibeCodingDebugSessionStatus as b, AgentResource as b0, DatabaseDriver as b1, DatabaseResource as b2, DifyKnowledgeConfig as b3, type GisGoalStatus as b4, HttpToolConfig as b5, KnowledgeDriver as b6, KnowledgeResource as b7, McpToolConfig as b8, MysqlConfig as b9, type ParallelMode as ba, PartnerSkillFile as bb, PartnerSkillName as bc, PostgresqlConfig as bd, SessionSkillFile as be, SessionSkillName as bf, type StageSpec as bg, type StepSpec as bh, TaskStatus as bi, ToolDriver as bj, ToolResource as bk, skillDisplayName as bl, type VibeCodingSessionStatus as c, type VibeCodingDeployRecord as d, type VibeCodingSessionInfo as e, type CreateVibeCodingSessionParams as f, type ShareLinkResult as g, type CheckpointNode as h, type SessionContextStats as i, type SessionHistory as j, type PaginatedSessionsResult as k, type SkillDevSession as l, type ContentPart as m, type CreateSessionRequest as n, type ImportPreviewScenario as o, type ImportPreviewSkill as p, type UploadFilesOptions as q, type ApiKeyPublic as r, ApiKeysResource as s, AuthResource as t, BladeApiError as u, BladeClient as v, type BladeClientOptions as w, type BladeFetchInit as x, type BladeHubScenarioResource as y, type ChatEndPayload as z };
|
|
@@ -2797,6 +2797,19 @@ var AgentSocket = class {
|
|
|
2797
2797
|
}
|
|
2798
2798
|
void this._ensureJoined(sessionId);
|
|
2799
2799
|
}
|
|
2800
|
+
subscribeAgentBoardProject(projectId) {
|
|
2801
|
+
this._ensureConnected();
|
|
2802
|
+
this.socket.emit("agent-board:project:subscribe", { project_id: Number(projectId) });
|
|
2803
|
+
}
|
|
2804
|
+
unsubscribeAgentBoardProject(projectId) {
|
|
2805
|
+
this.socket.emit("agent-board:project:unsubscribe", { project_id: Number(projectId) });
|
|
2806
|
+
}
|
|
2807
|
+
onAgentBoardTaskChanged(handler) {
|
|
2808
|
+
this.socket.on("agent-board:board-task:changed", handler);
|
|
2809
|
+
return () => {
|
|
2810
|
+
this.socket.off("agent-board:board-task:changed", handler);
|
|
2811
|
+
};
|
|
2812
|
+
}
|
|
2800
2813
|
unsubscribe() {
|
|
2801
2814
|
const previousSessionId = this.subscribedSession;
|
|
2802
2815
|
if (previousSessionId) {
|
|
@@ -3203,4 +3216,4 @@ export {
|
|
|
3203
3216
|
bootstrapBladeClient,
|
|
3204
3217
|
getBootstrappedClient
|
|
3205
3218
|
};
|
|
3206
|
-
//# sourceMappingURL=chunk-
|
|
3219
|
+
//# sourceMappingURL=chunk-FZXLII7S.js.map
|