@blade-hq/agent-kit 1.0.23 → 1.0.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-DluiBsVj.d.ts → SkillStatusBar-U6fbQxMu.d.ts} +2 -2
- package/dist/{blade-client-CseN7OW9.d.ts → blade-client-qTOovekU.d.ts} +2 -260
- package/dist/{chunk-ICV7OTGX.js → chunk-3I4ZURKH.js} +10 -10
- package/dist/{chunk-DQCXSPHP.js → chunk-4D4EXLVT.js} +2 -2
- package/dist/{chunk-7F6UP5LP.js → chunk-M45K3554.js} +1 -206
- package/dist/chunk-M45K3554.js.map +1 -0
- package/dist/{chunk-JCJFFJ42.js → chunk-QODAKTG5.js} +31 -2
- package/dist/chunk-QODAKTG5.js.map +1 -0
- package/dist/{chunk-TYM7KL2L.js → chunk-VJY6RLYU.js} +2 -2
- package/dist/{chunk-2QYV43YP.js → chunk-WPLEMYL7.js} +2 -2
- package/dist/{chunk-IMMRWXI7.js → chunk-WVXXQ3KM.js} +6 -6
- package/dist/{chunk-BQKF6HJH.js → chunk-XCIDE3JW.js} +4 -4
- package/dist/client/index.d.ts +3547 -6968
- package/dist/client/index.js +1 -5
- package/dist/react/cards/register.js +2 -3
- package/dist/react/cards/register.js.map +1 -1
- package/dist/react/components/chat/index.d.ts +4 -4
- package/dist/react/components/chat/index.js +6 -7
- package/dist/react/components/plan/index.js +6 -7
- package/dist/react/components/plan/index.js.map +1 -1
- package/dist/react/components/session/index.d.ts +1 -1
- package/dist/react/components/session/index.js +5 -6
- package/dist/react/components/session/index.js.map +1 -1
- package/dist/react/components/workspace/index.d.ts +3 -3
- package/dist/react/components/workspace/index.js +5 -6
- package/dist/react/components/workspace/index.js.map +1 -1
- package/dist/react/index.d.ts +8 -85
- package/dist/react/index.js +23 -74
- package/dist/react/index.js.map +1 -1
- package/dist/{session-CT8Y2KHr.d.ts → session-CNnotR90.d.ts} +1 -1
- package/dist/{sessions-DI9DVun7.d.ts → sessions-BvfLGbjw.d.ts} +2 -2
- package/package.json +1 -2
- package/dist/chunk-7F6UP5LP.js.map +0 -1
- package/dist/chunk-7LEKQI47.js +0 -32
- package/dist/chunk-7LEKQI47.js.map +0 -1
- package/dist/chunk-JCJFFJ42.js.map +0 -1
- package/dist/react/api/vibe-coding.d.ts +0 -55
- package/dist/react/api/vibe-coding.js +0 -47
- package/dist/react/api/vibe-coding.js.map +0 -1
- /package/dist/{chunk-ICV7OTGX.js.map → chunk-3I4ZURKH.js.map} +0 -0
- /package/dist/{chunk-DQCXSPHP.js.map → chunk-4D4EXLVT.js.map} +0 -0
- /package/dist/{chunk-TYM7KL2L.js.map → chunk-VJY6RLYU.js.map} +0 -0
- /package/dist/{chunk-2QYV43YP.js.map → chunk-WPLEMYL7.js.map} +0 -0
- /package/dist/{chunk-IMMRWXI7.js.map → chunk-WVXXQ3KM.js.map} +0 -0
- /package/dist/{chunk-BQKF6HJH.js.map → chunk-XCIDE3JW.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, a as SessionInfo, b as SessionStatus } from './session-
|
|
7
|
-
import {
|
|
6
|
+
import { M as ModeId, a as SessionInfo, b as SessionStatus } from './session-CNnotR90.js';
|
|
7
|
+
import { n as BladeClient } from './blade-client-qTOovekU.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 { a as SessionInfo, T as TemplateId, S as SessionDetail, c as Solution, B as BizRole } from './session-
|
|
4
|
+
import { a as SessionInfo, T as TemplateId, S as SessionDetail, c as Solution, B as BizRole } from './session-CNnotR90.js';
|
|
5
5
|
import { Socket } from 'socket.io-client';
|
|
6
6
|
|
|
7
7
|
declare class BladeApiError extends Error {
|
|
@@ -607,11 +607,8 @@ interface CreateSessionRequest {
|
|
|
607
607
|
solution_id?: string;
|
|
608
608
|
biz_role_id?: string | null;
|
|
609
609
|
primary_skill_id?: string | null;
|
|
610
|
-
workspace_id?: string | null;
|
|
611
|
-
is_persistent?: boolean | null;
|
|
612
610
|
model?: string | null;
|
|
613
611
|
enable_thinking?: boolean | null;
|
|
614
|
-
software_factory_id?: number | null;
|
|
615
612
|
memory_enabled?: boolean | null;
|
|
616
613
|
env?: Record<string, string>;
|
|
617
614
|
disable_tools?: string[] | null;
|
|
@@ -983,143 +980,6 @@ declare class SkillsResource {
|
|
|
983
980
|
installPartnerSkill(sessionId: string, payload: PartnerSkillInstallPayload, init?: RequestInit): Promise<PartnerSkillInstallResult>;
|
|
984
981
|
}
|
|
985
982
|
|
|
986
|
-
interface SoftwareFactoryTopicModule {
|
|
987
|
-
software_id: number;
|
|
988
|
-
topic_key: string;
|
|
989
|
-
topic_title: string;
|
|
990
|
-
topic_description: string;
|
|
991
|
-
module_key: string;
|
|
992
|
-
module_name: string;
|
|
993
|
-
required: boolean;
|
|
994
|
-
enabled: boolean;
|
|
995
|
-
order_index: number;
|
|
996
|
-
session_id: string | null;
|
|
997
|
-
sub_key: string;
|
|
998
|
-
label: string;
|
|
999
|
-
opt: string;
|
|
1000
|
-
assignee_name: string | null;
|
|
1001
|
-
assignee_type: string | null;
|
|
1002
|
-
timeline_json: string;
|
|
1003
|
-
created_at: string;
|
|
1004
|
-
updated_at: string;
|
|
1005
|
-
}
|
|
1006
|
-
interface SoftwareFactoryModuleBlueprint {
|
|
1007
|
-
key: string;
|
|
1008
|
-
name: string;
|
|
1009
|
-
required: boolean;
|
|
1010
|
-
order_index: number;
|
|
1011
|
-
}
|
|
1012
|
-
interface SoftwareFactorySoftware {
|
|
1013
|
-
id: number;
|
|
1014
|
-
name: string;
|
|
1015
|
-
description: string;
|
|
1016
|
-
issue_session_id: string | null;
|
|
1017
|
-
created_at: string;
|
|
1018
|
-
updated_at: string;
|
|
1019
|
-
module_blueprints: SoftwareFactoryModuleBlueprint[];
|
|
1020
|
-
topic_modules: SoftwareFactoryTopicModule[];
|
|
1021
|
-
}
|
|
1022
|
-
interface CreateSoftwareFactorySoftwarePayload {
|
|
1023
|
-
name: string;
|
|
1024
|
-
description?: string;
|
|
1025
|
-
}
|
|
1026
|
-
interface SoftwareFactorySharedFile {
|
|
1027
|
-
id: number;
|
|
1028
|
-
software_id: number;
|
|
1029
|
-
module_key: string;
|
|
1030
|
-
module_name: string;
|
|
1031
|
-
session_id: string;
|
|
1032
|
-
file_path: string;
|
|
1033
|
-
file_name: string;
|
|
1034
|
-
created_at: string;
|
|
1035
|
-
updated_at: string;
|
|
1036
|
-
}
|
|
1037
|
-
interface CreateSoftwareFactorySharedFilePayload {
|
|
1038
|
-
module_key: string;
|
|
1039
|
-
session_id: string;
|
|
1040
|
-
file_path: string;
|
|
1041
|
-
file_name?: string;
|
|
1042
|
-
}
|
|
1043
|
-
interface SoftwareFactoryTopic {
|
|
1044
|
-
id: number;
|
|
1045
|
-
software_id: number;
|
|
1046
|
-
topic_key: string;
|
|
1047
|
-
title: string;
|
|
1048
|
-
description: string;
|
|
1049
|
-
order_index: number;
|
|
1050
|
-
created_at: string;
|
|
1051
|
-
updated_at: string;
|
|
1052
|
-
}
|
|
1053
|
-
interface CodingTask {
|
|
1054
|
-
name: string;
|
|
1055
|
-
path: string;
|
|
1056
|
-
files: string[];
|
|
1057
|
-
}
|
|
1058
|
-
interface CodingTaskTopic {
|
|
1059
|
-
topic_name: string;
|
|
1060
|
-
tasks: CodingTask[];
|
|
1061
|
-
}
|
|
1062
|
-
declare class SoftwareFactoryResource {
|
|
1063
|
-
private client;
|
|
1064
|
-
constructor(client: BladeClient);
|
|
1065
|
-
listSoftware(): Promise<SoftwareFactorySoftware[]>;
|
|
1066
|
-
getSoftware(softwareId: number): Promise<SoftwareFactorySoftware>;
|
|
1067
|
-
deleteSoftware(softwareId: number): Promise<{
|
|
1068
|
-
ok: boolean;
|
|
1069
|
-
}>;
|
|
1070
|
-
createSoftware(payload: CreateSoftwareFactorySoftwarePayload): Promise<SoftwareFactorySoftware>;
|
|
1071
|
-
updateSoftware(softwareId: number, payload: {
|
|
1072
|
-
name?: string;
|
|
1073
|
-
description?: string;
|
|
1074
|
-
}): Promise<SoftwareFactorySoftware>;
|
|
1075
|
-
bindTopicModuleSession(softwareId: number, topicKey: string, moduleKey: string, sessionId: string, assignee?: {
|
|
1076
|
-
name?: string | null;
|
|
1077
|
-
type?: string | null;
|
|
1078
|
-
}): Promise<SoftwareFactorySoftware>;
|
|
1079
|
-
submitModuleForReview(softwareId: number, topicKey: string, moduleKey: string, subKey?: string): Promise<SoftwareFactoryTopicModule>;
|
|
1080
|
-
completeModule(softwareId: number, topicKey: string, moduleKey: string, subKey?: string): Promise<SoftwareFactoryTopicModule>;
|
|
1081
|
-
reopenModule(softwareId: number, topicKey: string, moduleKey: string, subKey?: string): Promise<SoftwareFactoryTopicModule>;
|
|
1082
|
-
listSharedFiles(softwareId: number): Promise<SoftwareFactorySharedFile[]>;
|
|
1083
|
-
createSharedFile(softwareId: number, payload: CreateSoftwareFactorySharedFilePayload): Promise<SoftwareFactorySharedFile>;
|
|
1084
|
-
uploadSoftwareDocuments(softwareId: number, files: File[]): Promise<{
|
|
1085
|
-
uploaded: string[];
|
|
1086
|
-
failed: string[];
|
|
1087
|
-
}>;
|
|
1088
|
-
ensureIssueSession(softwareId: number): Promise<{
|
|
1089
|
-
session_id: string;
|
|
1090
|
-
}>;
|
|
1091
|
-
listCodingTasks(softwareId: number): Promise<{
|
|
1092
|
-
topics: CodingTaskTopic[];
|
|
1093
|
-
}>;
|
|
1094
|
-
startCoding(softwareId: number, payload: {
|
|
1095
|
-
topic_name: string;
|
|
1096
|
-
task_paths: string[];
|
|
1097
|
-
assignee_name?: string | null;
|
|
1098
|
-
assignee_type?: string | null;
|
|
1099
|
-
}): Promise<{
|
|
1100
|
-
session_id: string;
|
|
1101
|
-
topic_name: string;
|
|
1102
|
-
task_names: string[];
|
|
1103
|
-
}>;
|
|
1104
|
-
readShareFileContent(softwareId: number, path: string): Promise<{
|
|
1105
|
-
content: string;
|
|
1106
|
-
}>;
|
|
1107
|
-
syncShare(softwareId: number): Promise<{
|
|
1108
|
-
synced_sessions: string[];
|
|
1109
|
-
}>;
|
|
1110
|
-
listTopics(softwareId: number): Promise<SoftwareFactoryTopic[]>;
|
|
1111
|
-
replaceTopics(softwareId: number, topics: Array<{
|
|
1112
|
-
topic_key: string;
|
|
1113
|
-
title: string;
|
|
1114
|
-
description?: string;
|
|
1115
|
-
}>): Promise<SoftwareFactoryTopic[]>;
|
|
1116
|
-
getFactoryExportUrl(softwareId: number): string;
|
|
1117
|
-
importFactory(file: File): Promise<{
|
|
1118
|
-
software_id: number;
|
|
1119
|
-
session_id_map: Record<string, string>;
|
|
1120
|
-
}>;
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
983
|
type ExportedSolutionFile = {
|
|
1124
984
|
blob: Blob;
|
|
1125
985
|
filename: string;
|
|
@@ -1175,100 +1035,6 @@ declare class UserPreferencesResource {
|
|
|
1175
1035
|
upgradeComputer(): Promise<UpgradeComputerResponse>;
|
|
1176
1036
|
}
|
|
1177
1037
|
|
|
1178
|
-
interface PortMapping {
|
|
1179
|
-
host_port: number;
|
|
1180
|
-
container_port: number;
|
|
1181
|
-
}
|
|
1182
|
-
interface VibeCodingSessionInfo {
|
|
1183
|
-
session_id: string;
|
|
1184
|
-
name: string;
|
|
1185
|
-
coding_template: string;
|
|
1186
|
-
test_port: number;
|
|
1187
|
-
deploy_port: number | null;
|
|
1188
|
-
test_service: string | null;
|
|
1189
|
-
deploy_service: string | null;
|
|
1190
|
-
deploy_version: string | null;
|
|
1191
|
-
max_version: string | null;
|
|
1192
|
-
}
|
|
1193
|
-
interface VibeCodingSessionStatus extends VibeCodingSessionInfo {
|
|
1194
|
-
}
|
|
1195
|
-
interface VibeCodingDebugSessionStatus {
|
|
1196
|
-
session_id: string;
|
|
1197
|
-
running: boolean;
|
|
1198
|
-
test_running: boolean;
|
|
1199
|
-
ports: PortMapping[];
|
|
1200
|
-
}
|
|
1201
|
-
interface VibeCodingDeployStatus {
|
|
1202
|
-
deploy_running: boolean;
|
|
1203
|
-
deploy_version: string | null;
|
|
1204
|
-
deploy_port: number | null;
|
|
1205
|
-
}
|
|
1206
|
-
interface VibeCodingDeployRecord {
|
|
1207
|
-
version: string;
|
|
1208
|
-
release_path: string;
|
|
1209
|
-
note: string | null;
|
|
1210
|
-
created_at: string;
|
|
1211
|
-
}
|
|
1212
|
-
type DeployBumpMode = "major" | "minor" | "patch";
|
|
1213
|
-
interface CreateVibeCodingSessionParams {
|
|
1214
|
-
name?: string;
|
|
1215
|
-
coding_template?: string;
|
|
1216
|
-
model?: string | null;
|
|
1217
|
-
}
|
|
1218
|
-
interface CreateVibeCodingSessionResult {
|
|
1219
|
-
session_id: string;
|
|
1220
|
-
test_port: number;
|
|
1221
|
-
}
|
|
1222
|
-
declare class VibeCodingResource {
|
|
1223
|
-
private client;
|
|
1224
|
-
constructor(client: BladeClient);
|
|
1225
|
-
createVibeCodingSession(params: CreateVibeCodingSessionParams): Promise<CreateVibeCodingSessionResult>;
|
|
1226
|
-
listVibeCodingSessionInfos(): Promise<VibeCodingSessionInfo[]>;
|
|
1227
|
-
getVibeCodingSessionDebugStatus(sessionId: string): Promise<VibeCodingDebugSessionStatus>;
|
|
1228
|
-
getVibeCodingSessionStatus(sessionId: string): Promise<VibeCodingSessionStatus>;
|
|
1229
|
-
getVibeCodingDeployStatus(sessionId: string): Promise<VibeCodingDeployStatus>;
|
|
1230
|
-
startVibeCodingService(sessionId: string): Promise<{
|
|
1231
|
-
ok: boolean;
|
|
1232
|
-
details: string;
|
|
1233
|
-
}>;
|
|
1234
|
-
stopVibeCodingService(sessionId: string): Promise<{
|
|
1235
|
-
ok: boolean;
|
|
1236
|
-
details: string;
|
|
1237
|
-
}>;
|
|
1238
|
-
updateVibeCodingDebugService(sessionId: string): Promise<{
|
|
1239
|
-
ok: boolean;
|
|
1240
|
-
session_id: string;
|
|
1241
|
-
}>;
|
|
1242
|
-
deployVibeCodingSession(sessionId: string, note?: string, bump?: DeployBumpMode): Promise<{
|
|
1243
|
-
ok: boolean;
|
|
1244
|
-
version: string;
|
|
1245
|
-
deploy_port: number;
|
|
1246
|
-
release_dir: string;
|
|
1247
|
-
}>;
|
|
1248
|
-
listVibeCodingDeployVersions(sessionId: string): Promise<VibeCodingDeployRecord[]>;
|
|
1249
|
-
startVibeCodingDeployService(sessionId: string, version?: string): Promise<{
|
|
1250
|
-
ok: boolean;
|
|
1251
|
-
details: string;
|
|
1252
|
-
deploy_version: string;
|
|
1253
|
-
release_dir: string;
|
|
1254
|
-
}>;
|
|
1255
|
-
stopVibeCodingDeployService(sessionId: string, version?: string): Promise<{
|
|
1256
|
-
ok: boolean;
|
|
1257
|
-
details: string;
|
|
1258
|
-
}>;
|
|
1259
|
-
deleteVibeCodingDeployVersion(sessionId: string, version: string): Promise<{
|
|
1260
|
-
ok: boolean;
|
|
1261
|
-
}>;
|
|
1262
|
-
deleteVibeCodingSession(sessionId: string): Promise<{
|
|
1263
|
-
ok: boolean;
|
|
1264
|
-
}>;
|
|
1265
|
-
probeVibeCodingService(sessionId: string, url: string): Promise<{
|
|
1266
|
-
reachable: boolean;
|
|
1267
|
-
}>;
|
|
1268
|
-
exportVibeCodingSession(sessionId: string): Promise<void>;
|
|
1269
|
-
importVibeCodingSession(file: File, name?: string, codingTemplate?: string): Promise<CreateVibeCodingSessionResult>;
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
1038
|
interface AuthOptions {
|
|
1273
1039
|
token?: string | (() => string | null | undefined);
|
|
1274
1040
|
}
|
|
@@ -1659,24 +1425,6 @@ declare namespace AsrErrorPayloadSchema {
|
|
|
1659
1425
|
}
|
|
1660
1426
|
}
|
|
1661
1427
|
type AsrErrorPayload = AsrErrorPayloadSchema.AsrErrorPayload;
|
|
1662
|
-
declare namespace VibeLogsLinePayloadSchema {
|
|
1663
|
-
type SessionId = string;
|
|
1664
|
-
type Line = string;
|
|
1665
|
-
interface VibeLogsLinePayload {
|
|
1666
|
-
session_id: SessionId;
|
|
1667
|
-
line: Line;
|
|
1668
|
-
[k: string]: unknown;
|
|
1669
|
-
}
|
|
1670
|
-
}
|
|
1671
|
-
type VibeLogsLinePayload = VibeLogsLinePayloadSchema.VibeLogsLinePayload;
|
|
1672
|
-
declare namespace VibeLogsEndPayloadSchema {
|
|
1673
|
-
type SessionId = string;
|
|
1674
|
-
interface VibeLogsEndPayload {
|
|
1675
|
-
session_id: SessionId;
|
|
1676
|
-
[k: string]: unknown;
|
|
1677
|
-
}
|
|
1678
|
-
}
|
|
1679
|
-
type VibeLogsEndPayload = VibeLogsEndPayloadSchema.VibeLogsEndPayload;
|
|
1680
1428
|
declare namespace AgentBoardBoardTaskChangedPayloadSchema {
|
|
1681
1429
|
type ProjectId = number;
|
|
1682
1430
|
type Action = ("created" | "updated" | "deleted");
|
|
@@ -1756,8 +1504,6 @@ interface ClientToServerEvents {
|
|
|
1756
1504
|
"asr:start": (payload: unknown) => void;
|
|
1757
1505
|
"asr:audio": (payload: AsrAudioPayload) => void;
|
|
1758
1506
|
"asr:stop": (payload: unknown) => void;
|
|
1759
|
-
"vibe:logs:start": (payload: unknown) => void;
|
|
1760
|
-
"vibe:logs:stop": (payload: unknown) => void;
|
|
1761
1507
|
"gis.event.analysis.request": (payload: unknown, ack: (response: unknown) => void) => void;
|
|
1762
1508
|
}
|
|
1763
1509
|
interface ServerToClientEvents {
|
|
@@ -1784,8 +1530,6 @@ interface ServerToClientEvents {
|
|
|
1784
1530
|
"asr:final": (payload: AsrTextPayload) => void;
|
|
1785
1531
|
"asr:closed": (payload: AsrClosedPayload) => void;
|
|
1786
1532
|
"asr:error": (payload: AsrErrorPayload) => void;
|
|
1787
|
-
"vibe:logs:line": (payload: VibeLogsLinePayload) => void;
|
|
1788
|
-
"vibe:logs:end": (payload: VibeLogsEndPayload) => void;
|
|
1789
1533
|
"replay:input_mismatch": (payload: unknown) => void;
|
|
1790
1534
|
"agent-board:board-task:changed": (payload: AgentBoardBoardTaskChangedPayload) => void;
|
|
1791
1535
|
"agent-board:file-op": (payload: AgentBoardFileOpPayload) => void;
|
|
@@ -1823,10 +1567,8 @@ declare class BladeClient {
|
|
|
1823
1567
|
readonly scenarios: ScenariosResource;
|
|
1824
1568
|
readonly sessions: SessionsResource;
|
|
1825
1569
|
readonly skills: SkillsResource;
|
|
1826
|
-
readonly softwareFactory: SoftwareFactoryResource;
|
|
1827
1570
|
readonly solutions: SolutionsResource;
|
|
1828
1571
|
readonly userPreferences: UserPreferencesResource;
|
|
1829
|
-
readonly vibeCoding: VibeCodingResource;
|
|
1830
1572
|
constructor(options: BladeClientOptions);
|
|
1831
1573
|
_attachStoreRestTokenResolver(fn: () => string | null | undefined): void;
|
|
1832
1574
|
_attachStoreSocketTokenResolver(fn: () => string | null | undefined): void;
|
|
@@ -1864,4 +1606,4 @@ interface UploadProgress {
|
|
|
1864
1606
|
percent?: number;
|
|
1865
1607
|
}
|
|
1866
1608
|
|
|
1867
|
-
export {
|
|
1609
|
+
export { type PreparedSolution as $, type ApiKeyCreateResponse as A, type BackgroundTask as B, type CheckpointNode as C, HeadlessError as D, type ExistingSolutionRef as E, type FileEntry as F, GisResource as G, type HistoryNode as H, type ImportPreview as I, HeadlessResource as J, type HeadlessRunInSessionResult as K, type HeadlessRunOptions as L, type HttpMethod as M, type InstalledRegistrySkill as N, type JsonSchemaObject as O, type PaginatedSessionsResult as P, MemoriesResource as Q, type Memory as R, SessionsResource as S, type TokenizeResult as T, type UploadFileEntry as U, type MemoryCreateBody as V, type MemoryListParams as W, type MemoryListResponse as X, ModelOption as Y, ModelsConfig as Z, ModelsResource as _, type ShareLinkResult as a, MysqlConfig as a$, type PreparedSolutionAsset as a0, type PreviewUrlItem as a1, type ProvidersResponse as a2, PublishedAppsResource as a3, type QuickScenario as a4, REGISTRY_PREFIX as a5, RegistryResource as a6, type ResourceApi as a7, type RunOptions as a8, type RunResult as a9, type SkillDetail as aA, type SkillStats as aB, type SkillSummary as aC, type SkillSearchResult as aD, PartnerSkillInstallPayload as aE, PartnerSkillInstallResult as aF, SessionSkillUploadPayload as aG, SessionSkillUploadResult as aH, PublishedApp as aI, PublishedAppListResponse as aJ, PublishedAppStatus as aK, UnpublishAppResponse as aL, type GisGoal as aM, type GisResource$1 as aN, type GisTarget as aO, type GisMapCommand as aP, Task as aQ, AgentDriver as aR, AgentResource as aS, DatabaseDriver as aT, DatabaseResource as aU, DifyKnowledgeConfig as aV, type GisGoalStatus as aW, HttpToolConfig as aX, KnowledgeDriver as aY, KnowledgeResource as aZ, McpToolConfig as a_, type RunTrace as aa, RunsResource as ab, ScenariosResource as ac, type ServerToClientEvents as ad, type SessionProfile as ae, type SessionUpdatedPayload as af, type SkillOrgListResponse as ag, type SkillOrgOption as ah, SkillsResource as ai, type SolutionRef as aj, SolutionsResource as ak, type SystemErrorPayload as al, type SystemNotificationPayload as am, type TurnProjectionPayload as an, type TypedSocket as ao, type UpdateQuickScenarioPayload as ap, type UpgradeComputerResponse as aq, type UserInfo as ar, UserPreferencesResource as as, createSocket as at, normalizeResource as au, EnvBucketsResource as av, type EnvBucket as aw, type PlatformEnvBucket as ax, type GisState as ay, type RuntimeConfig as az, type SessionContextStats as b, type ParallelMode as b0, PartnerSkillFile as b1, PartnerSkillName as b2, PostgresqlConfig as b3, SessionSkillFile as b4, SessionSkillName as b5, type StageSpec as b6, type StepSpec as b7, TaskStatus as b8, ToolDriver as b9, ToolResource as ba, skillDisplayName as bb, type SessionHistory as c, type SkillDevSession as d, type ContentPart as e, type CreateSessionRequest as f, type ImportPreviewScenario as g, type ImportPreviewSkill as h, type UploadFilesOptions as i, type ApiKeyPublic as j, ApiKeysResource as k, AuthResource as l, BladeApiError as m, BladeClient as n, type BladeClientOptions as o, type BladeFetchInit as p, type BladeHubScenarioResource as q, type ChatEndPayload as r, type ChatSendPayload as s, type ClientToServerEvents as t, type ComputerUpgradeReason as u, type ComputerUpgradeStatusResponse as v, type CreateQuickScenarioPayload as w, type CreateSocketOptions as x, type ExportedSolutionFile as y, type GlobalSkillStats as z };
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getCodeLanguageFromFilename,
|
|
9
9
|
parseAskUserQuestion,
|
|
10
10
|
useHighlightedCodeHtml
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XCIDE3JW.js";
|
|
12
12
|
import {
|
|
13
13
|
Collapsible,
|
|
14
14
|
CollapsibleContent,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-H62LH2AG.js";
|
|
17
17
|
import {
|
|
18
18
|
resolveSessionFilePreviewTarget
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WPLEMYL7.js";
|
|
20
20
|
import {
|
|
21
21
|
apiFetchResponse,
|
|
22
22
|
buildMessageContent,
|
|
@@ -60,20 +60,20 @@ import {
|
|
|
60
60
|
useUiBridgeStore,
|
|
61
61
|
useUiStore,
|
|
62
62
|
writeFile
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import {
|
|
65
|
-
registerBridgeIframe,
|
|
66
|
-
tapBridgeEvent
|
|
67
|
-
} from "./chunk-J3XVFPOV.js";
|
|
63
|
+
} from "./chunk-WVXXQ3KM.js";
|
|
68
64
|
import {
|
|
69
65
|
ModelOption,
|
|
70
66
|
ModelsConfig,
|
|
71
67
|
ModelsResource
|
|
72
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-M45K3554.js";
|
|
73
69
|
import {
|
|
74
70
|
cn,
|
|
75
71
|
copyToClipboard
|
|
76
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-QODAKTG5.js";
|
|
73
|
+
import {
|
|
74
|
+
registerBridgeIframe,
|
|
75
|
+
tapBridgeEvent
|
|
76
|
+
} from "./chunk-J3XVFPOV.js";
|
|
77
77
|
import {
|
|
78
78
|
__export
|
|
79
79
|
} from "./chunk-PZ5AY32C.js";
|
|
@@ -8878,4 +8878,4 @@ use-stick-to-bottom/dist/StickToBottom.js:
|
|
|
8878
8878
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
8879
8879
|
*--------------------------------------------------------------------------------------------*)
|
|
8880
8880
|
*/
|
|
8881
|
-
//# sourceMappingURL=chunk-
|
|
8881
|
+
//# sourceMappingURL=chunk-3I4ZURKH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCardStateStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QODAKTG5.js";
|
|
4
4
|
|
|
5
5
|
// src/react/hooks/use-card-state.ts
|
|
6
6
|
import { useCallback, useEffect, useState } from "react";
|
|
@@ -30,4 +30,4 @@ function useCardState(cardId, initialValue) {
|
|
|
30
30
|
export {
|
|
31
31
|
useCardState
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
33
|
+
//# sourceMappingURL=chunk-4D4EXLVT.js.map
|
|
@@ -745,9 +745,6 @@ function toCreateSessionPayload(request) {
|
|
|
745
745
|
enable_thinking: request.enable_thinking ?? null,
|
|
746
746
|
memory_enabled: request.memory_enabled ?? null,
|
|
747
747
|
primary_skill_id: request.primary_skill_id ?? null,
|
|
748
|
-
workspace_id: request.workspace_id ?? null,
|
|
749
|
-
is_persistent: request.is_persistent ?? false,
|
|
750
|
-
software_factory_id: request.software_factory_id ?? null,
|
|
751
748
|
env: request.env,
|
|
752
749
|
disable_tools: request.disable_tools ?? null,
|
|
753
750
|
session_solution_asset_id: request.session_solution_asset_id ?? null,
|
|
@@ -1043,110 +1040,6 @@ var SkillsResource = class {
|
|
|
1043
1040
|
}
|
|
1044
1041
|
};
|
|
1045
1042
|
|
|
1046
|
-
// src/client/resources/software-factory.ts
|
|
1047
|
-
var SoftwareFactoryResource = class {
|
|
1048
|
-
constructor(client) {
|
|
1049
|
-
this.client = client;
|
|
1050
|
-
}
|
|
1051
|
-
client;
|
|
1052
|
-
listSoftware() {
|
|
1053
|
-
return this.client.json("GET", "/api/software-factory/software");
|
|
1054
|
-
}
|
|
1055
|
-
getSoftware(softwareId) {
|
|
1056
|
-
return this.client.json("GET", `/api/software-factory/software/${softwareId}`);
|
|
1057
|
-
}
|
|
1058
|
-
deleteSoftware(softwareId) {
|
|
1059
|
-
return this.client.json("DELETE", `/api/software-factory/software/${softwareId}`);
|
|
1060
|
-
}
|
|
1061
|
-
createSoftware(payload) {
|
|
1062
|
-
return this.client.json("POST", "/api/software-factory/software", payload);
|
|
1063
|
-
}
|
|
1064
|
-
updateSoftware(softwareId, payload) {
|
|
1065
|
-
return this.client.json("PATCH", `/api/software-factory/software/${softwareId}`, payload);
|
|
1066
|
-
}
|
|
1067
|
-
bindTopicModuleSession(softwareId, topicKey, moduleKey, sessionId, assignee) {
|
|
1068
|
-
return this.client.json(
|
|
1069
|
-
"PATCH",
|
|
1070
|
-
`/api/software-factory/software/${softwareId}/topics/${topicKey}/modules/${moduleKey}/session`,
|
|
1071
|
-
{
|
|
1072
|
-
session_id: sessionId,
|
|
1073
|
-
assignee_name: assignee?.name ?? null,
|
|
1074
|
-
assignee_type: assignee?.type ?? null
|
|
1075
|
-
}
|
|
1076
|
-
);
|
|
1077
|
-
}
|
|
1078
|
-
submitModuleForReview(softwareId, topicKey, moduleKey, subKey = "default") {
|
|
1079
|
-
return this.client.json(
|
|
1080
|
-
"POST",
|
|
1081
|
-
`/api/software-factory/software/${softwareId}/topics/${topicKey}/modules/${moduleKey}/submit-review`,
|
|
1082
|
-
{ sub_key: subKey }
|
|
1083
|
-
);
|
|
1084
|
-
}
|
|
1085
|
-
completeModule(softwareId, topicKey, moduleKey, subKey = "default") {
|
|
1086
|
-
return this.client.json(
|
|
1087
|
-
"POST",
|
|
1088
|
-
`/api/software-factory/software/${softwareId}/topics/${topicKey}/modules/${moduleKey}/complete`,
|
|
1089
|
-
{ sub_key: subKey }
|
|
1090
|
-
);
|
|
1091
|
-
}
|
|
1092
|
-
reopenModule(softwareId, topicKey, moduleKey, subKey = "default") {
|
|
1093
|
-
return this.client.json(
|
|
1094
|
-
"POST",
|
|
1095
|
-
`/api/software-factory/software/${softwareId}/topics/${topicKey}/modules/${moduleKey}/reopen`,
|
|
1096
|
-
{ sub_key: subKey }
|
|
1097
|
-
);
|
|
1098
|
-
}
|
|
1099
|
-
listSharedFiles(softwareId) {
|
|
1100
|
-
return this.client.json("GET", `/api/software-factory/software/${softwareId}/shared-files`);
|
|
1101
|
-
}
|
|
1102
|
-
createSharedFile(softwareId, payload) {
|
|
1103
|
-
return this.client.json("POST", `/api/software-factory/software/${softwareId}/shared-files`, payload);
|
|
1104
|
-
}
|
|
1105
|
-
async uploadSoftwareDocuments(softwareId, files) {
|
|
1106
|
-
const formData = new FormData();
|
|
1107
|
-
for (const file of files) formData.append("files", file);
|
|
1108
|
-
const res = await this.client.formData(
|
|
1109
|
-
"POST",
|
|
1110
|
-
`/api/software-factory/software/${softwareId}/upload-documents`,
|
|
1111
|
-
formData
|
|
1112
|
-
);
|
|
1113
|
-
return res.json();
|
|
1114
|
-
}
|
|
1115
|
-
ensureIssueSession(softwareId) {
|
|
1116
|
-
return this.client.json("POST", `/api/software-factory/software/${softwareId}/issue-session`);
|
|
1117
|
-
}
|
|
1118
|
-
listCodingTasks(softwareId) {
|
|
1119
|
-
return this.client.json("GET", `/api/software-factory/software/${softwareId}/coding-tasks`);
|
|
1120
|
-
}
|
|
1121
|
-
startCoding(softwareId, payload) {
|
|
1122
|
-
return this.client.json("POST", `/api/software-factory/software/${softwareId}/start-coding`, payload);
|
|
1123
|
-
}
|
|
1124
|
-
readShareFileContent(softwareId, path) {
|
|
1125
|
-
return this.client.json(
|
|
1126
|
-
"GET",
|
|
1127
|
-
`/api/software-factory/software/${softwareId}/share-file-content?path=${encodeURIComponent(path)}`
|
|
1128
|
-
);
|
|
1129
|
-
}
|
|
1130
|
-
syncShare(softwareId) {
|
|
1131
|
-
return this.client.json("POST", `/api/software-factory/software/${softwareId}/sync-share`);
|
|
1132
|
-
}
|
|
1133
|
-
listTopics(softwareId) {
|
|
1134
|
-
return this.client.json("GET", `/api/software-factory/software/${softwareId}/topics`);
|
|
1135
|
-
}
|
|
1136
|
-
replaceTopics(softwareId, topics) {
|
|
1137
|
-
return this.client.json("PUT", `/api/software-factory/software/${softwareId}/topics`, { topics });
|
|
1138
|
-
}
|
|
1139
|
-
getFactoryExportUrl(softwareId) {
|
|
1140
|
-
return this.client.buildAuthedUrl(`/api/software-factory/software/${softwareId}/export`);
|
|
1141
|
-
}
|
|
1142
|
-
async importFactory(file) {
|
|
1143
|
-
const formData = new FormData();
|
|
1144
|
-
formData.append("file", file);
|
|
1145
|
-
const res = await this.client.formData("POST", "/api/software-factory/software/import", formData);
|
|
1146
|
-
return res.json();
|
|
1147
|
-
}
|
|
1148
|
-
};
|
|
1149
|
-
|
|
1150
1043
|
// src/client/resources/solutions.ts
|
|
1151
1044
|
var SolutionsResource = class {
|
|
1152
1045
|
constructor(client) {
|
|
@@ -1305,98 +1198,6 @@ var UserPreferencesResource = class {
|
|
|
1305
1198
|
}
|
|
1306
1199
|
};
|
|
1307
1200
|
|
|
1308
|
-
// src/client/resources/vibe-coding.ts
|
|
1309
|
-
var VibeCodingResource = class {
|
|
1310
|
-
constructor(client) {
|
|
1311
|
-
this.client = client;
|
|
1312
|
-
}
|
|
1313
|
-
client;
|
|
1314
|
-
createVibeCodingSession(params) {
|
|
1315
|
-
return this.client.json("POST", "/api/vibe-coding/sessions", params);
|
|
1316
|
-
}
|
|
1317
|
-
async listVibeCodingSessionInfos() {
|
|
1318
|
-
const result = await this.client.json(
|
|
1319
|
-
"GET",
|
|
1320
|
-
"/api/vibe-coding/sessions/status"
|
|
1321
|
-
);
|
|
1322
|
-
return result.items;
|
|
1323
|
-
}
|
|
1324
|
-
getVibeCodingSessionDebugStatus(sessionId) {
|
|
1325
|
-
return this.client.json("GET", `/api/vibe-coding/sessions/${sessionId}/debug/status`);
|
|
1326
|
-
}
|
|
1327
|
-
getVibeCodingSessionStatus(sessionId) {
|
|
1328
|
-
return this.client.json("GET", `/api/vibe-coding/sessions/${sessionId}/status`);
|
|
1329
|
-
}
|
|
1330
|
-
getVibeCodingDeployStatus(sessionId) {
|
|
1331
|
-
return this.client.json("GET", `/api/vibe-coding/sessions/${sessionId}/deploy/status`);
|
|
1332
|
-
}
|
|
1333
|
-
startVibeCodingService(sessionId) {
|
|
1334
|
-
return this.client.json("POST", `/api/vibe-coding/sessions/${sessionId}/start`);
|
|
1335
|
-
}
|
|
1336
|
-
stopVibeCodingService(sessionId) {
|
|
1337
|
-
return this.client.json("POST", `/api/vibe-coding/sessions/${sessionId}/stop`);
|
|
1338
|
-
}
|
|
1339
|
-
updateVibeCodingDebugService(sessionId) {
|
|
1340
|
-
return this.client.json("POST", `/api/vibe-coding/sessions/${sessionId}/update_debug_service`);
|
|
1341
|
-
}
|
|
1342
|
-
deployVibeCodingSession(sessionId, note, bump = "patch") {
|
|
1343
|
-
const payload = { bump };
|
|
1344
|
-
const normalizedNote = note?.trim();
|
|
1345
|
-
if (normalizedNote) payload.note = normalizedNote;
|
|
1346
|
-
return this.client.json("POST", `/api/vibe-coding/sessions/${sessionId}/deploy`, payload);
|
|
1347
|
-
}
|
|
1348
|
-
async listVibeCodingDeployVersions(sessionId) {
|
|
1349
|
-
const result = await this.client.json(
|
|
1350
|
-
"GET",
|
|
1351
|
-
`/api/vibe-coding/sessions/${sessionId}/deploy/versions`
|
|
1352
|
-
);
|
|
1353
|
-
return result.items;
|
|
1354
|
-
}
|
|
1355
|
-
startVibeCodingDeployService(sessionId, version) {
|
|
1356
|
-
const query = version ? `?version=${encodeURIComponent(version)}` : "";
|
|
1357
|
-
return this.client.json("POST", `/api/vibe-coding/sessions/${sessionId}/deploy/start${query}`);
|
|
1358
|
-
}
|
|
1359
|
-
stopVibeCodingDeployService(sessionId, version) {
|
|
1360
|
-
const query = version ? `?version=${encodeURIComponent(version)}` : "";
|
|
1361
|
-
return this.client.json("POST", `/api/vibe-coding/sessions/${sessionId}/deploy/stop${query}`);
|
|
1362
|
-
}
|
|
1363
|
-
deleteVibeCodingDeployVersion(sessionId, version) {
|
|
1364
|
-
return this.client.json(
|
|
1365
|
-
"DELETE",
|
|
1366
|
-
`/api/vibe-coding/sessions/${sessionId}/deploy/versions/${encodeURIComponent(version)}`
|
|
1367
|
-
);
|
|
1368
|
-
}
|
|
1369
|
-
deleteVibeCodingSession(sessionId) {
|
|
1370
|
-
return this.client.json("DELETE", `/api/vibe-coding/sessions/${sessionId}`);
|
|
1371
|
-
}
|
|
1372
|
-
probeVibeCodingService(sessionId, url) {
|
|
1373
|
-
return this.client.json(
|
|
1374
|
-
"GET",
|
|
1375
|
-
`/api/vibe-coding/sessions/${sessionId}/probe?url=${encodeURIComponent(url)}`
|
|
1376
|
-
);
|
|
1377
|
-
}
|
|
1378
|
-
async exportVibeCodingSession(sessionId) {
|
|
1379
|
-
const res = await this.client.fetch("GET", `/api/vibe-coding/sessions/${sessionId}/export`);
|
|
1380
|
-
const blob = await res.blob();
|
|
1381
|
-
const url = URL.createObjectURL(blob);
|
|
1382
|
-
const a = document.createElement("a");
|
|
1383
|
-
a.href = url;
|
|
1384
|
-
a.download = `${sessionId}.zip`;
|
|
1385
|
-
document.body.appendChild(a);
|
|
1386
|
-
a.click();
|
|
1387
|
-
a.remove();
|
|
1388
|
-
URL.revokeObjectURL(url);
|
|
1389
|
-
}
|
|
1390
|
-
async importVibeCodingSession(file, name, codingTemplate) {
|
|
1391
|
-
const form = new FormData();
|
|
1392
|
-
form.append("file", file);
|
|
1393
|
-
if (name) form.append("name", name);
|
|
1394
|
-
if (codingTemplate) form.append("coding_template", codingTemplate);
|
|
1395
|
-
const res = await this.client.formData("POST", "/api/vibe-coding/sessions/import", form);
|
|
1396
|
-
return res.json();
|
|
1397
|
-
}
|
|
1398
|
-
};
|
|
1399
|
-
|
|
1400
1201
|
// src/client/socket.ts
|
|
1401
1202
|
import { io } from "socket.io-client";
|
|
1402
1203
|
|
|
@@ -1442,10 +1243,8 @@ var BladeClient = class {
|
|
|
1442
1243
|
scenarios;
|
|
1443
1244
|
sessions;
|
|
1444
1245
|
skills;
|
|
1445
|
-
softwareFactory;
|
|
1446
1246
|
solutions;
|
|
1447
1247
|
userPreferences;
|
|
1448
|
-
vibeCoding;
|
|
1449
1248
|
constructor(options) {
|
|
1450
1249
|
this.options = {
|
|
1451
1250
|
...options,
|
|
@@ -1464,10 +1263,8 @@ var BladeClient = class {
|
|
|
1464
1263
|
this.scenarios = new ScenariosResource(this);
|
|
1465
1264
|
this.sessions = new SessionsResource(this);
|
|
1466
1265
|
this.skills = new SkillsResource(this);
|
|
1467
|
-
this.softwareFactory = new SoftwareFactoryResource(this);
|
|
1468
1266
|
this.solutions = new SolutionsResource(this);
|
|
1469
1267
|
this.userPreferences = new UserPreferencesResource(this);
|
|
1470
|
-
this.vibeCoding = new VibeCodingResource(this);
|
|
1471
1268
|
}
|
|
1472
1269
|
_attachStoreRestTokenResolver(fn) {
|
|
1473
1270
|
this.storeRestTokenResolver = fn;
|
|
@@ -1749,11 +1546,9 @@ export {
|
|
|
1749
1546
|
ScenariosResource,
|
|
1750
1547
|
SessionsResource,
|
|
1751
1548
|
SkillsResource,
|
|
1752
|
-
SoftwareFactoryResource,
|
|
1753
1549
|
SolutionsResource,
|
|
1754
1550
|
UserPreferencesResource,
|
|
1755
|
-
VibeCodingResource,
|
|
1756
1551
|
createSocket,
|
|
1757
1552
|
BladeClient
|
|
1758
1553
|
};
|
|
1759
|
-
//# sourceMappingURL=chunk-
|
|
1554
|
+
//# sourceMappingURL=chunk-M45K3554.js.map
|