@blade-hq/agent-kit 0.5.5 → 0.5.7
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-BtvQmvxZ.d.ts → SkillStatusBar-Dlf-_G5d.d.ts} +2 -2
- package/dist/{blade-client-CqWTKQhP.d.ts → blade-client-7VANnJfr.d.ts} +6 -3
- package/dist/{chunk-Q6CSM5DE.js → chunk-ETHPRRT2.js} +11 -4
- package/dist/chunk-ETHPRRT2.js.map +1 -0
- package/dist/{chunk-557R7QZV.js → chunk-GIE2Q2MB.js} +28 -16
- package/dist/chunk-GIE2Q2MB.js.map +1 -0
- package/dist/{chunk-S6EPGDAL.js → chunk-K5EE7X2D.js} +152 -73
- package/dist/chunk-K5EE7X2D.js.map +1 -0
- package/dist/{chunk-NEI66DW6.js → chunk-STCTXRMJ.js} +2 -2
- package/dist/{chunk-HWOVPFWG.js → chunk-UM7G65GH.js} +116 -20
- package/dist/chunk-UM7G65GH.js.map +1 -0
- package/dist/{chunk-3ZEWA2YM.js → chunk-X3S36RR2.js} +2 -2
- package/dist/client/index.d.ts +111 -4
- package/dist/client/index.js +1 -1
- package/dist/react/api/vibe-coding.d.ts +3 -3
- package/dist/react/api/vibe-coding.js +2 -2
- package/dist/react/components/chat/index.d.ts +6 -5
- package/dist/react/components/chat/index.js +5 -5
- 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 +3 -3
- package/dist/react/components/workspace/index.js +3 -3
- package/dist/react/index.d.ts +177 -9
- package/dist/react/index.js +469 -6
- package/dist/react/index.js.map +1 -1
- package/dist/{session-ADRevzHD.d.ts → session-BuaeCsMC.d.ts} +62 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-557R7QZV.js.map +0 -1
- package/dist/chunk-HWOVPFWG.js.map +0 -1
- package/dist/chunk-Q6CSM5DE.js.map +0 -1
- package/dist/chunk-S6EPGDAL.js.map +0 -1
- /package/dist/{chunk-NEI66DW6.js.map → chunk-STCTXRMJ.js.map} +0 -0
- /package/dist/{chunk-3ZEWA2YM.js.map → chunk-X3S36RR2.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
apiFetchResponse,
|
|
3
3
|
getAuthedUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UM7G65GH.js";
|
|
5
5
|
|
|
6
6
|
// src/react/lib/session-file-preview.ts
|
|
7
7
|
var IMAGE_EXTS = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp", "ico", "bmp"]);
|
|
@@ -124,4 +124,4 @@ export {
|
|
|
124
124
|
CollapsibleTrigger,
|
|
125
125
|
CollapsibleContent
|
|
126
126
|
};
|
|
127
|
-
//# sourceMappingURL=chunk-
|
|
127
|
+
//# sourceMappingURL=chunk-X3S36RR2.js.map
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { A as ApiKeyCreateResponse, g as ApiKeyPublic, h as ApiKeysResource, i as AuthResource, B as BladeApiError, j as BladeClient, k as BladeClientOptions, l as BladeFetchInit, m as BladeHubScenarioResource, n as ChatEndPayload, o as ChatSendPayload, p as CheckpointNode, q as ClientToServerEvents, r as CodingTask, s as CodingTaskTopic, t as ComputerUpgradeReason, u as ComputerUpgradeStatusResponse, v as ContentPart, w as CreateQuickScenarioPayload, x as CreateSessionRequest, y as CreateSocketOptions, z as CreateSoftwareFactorySharedFilePayload, E as CreateSoftwareFactorySoftwarePayload, f as CreateVibeCodingSessionParams, C as CreateVibeCodingSessionResult, D as DeployBumpMode, F as FileEntry, G as GisResource, H as GlobalSkillStats, I as HeadlessError, J as HeadlessResource, K as HeadlessRunOptions, L as HistoryNode, M as HttpMethod, N as ImportPreview, O as ImportPreviewScenario, Q as ImportPreviewSkill, R as InstalledRegistrySkill, S as JsonSchemaObject, T as MemoriesResource, U as Memory, W as MemoryCreateBody, X as MemoryListParams, Y as MemoryListResponse, Z as ModelOption, _ as ModelsConfig, $ as ModelsResource, a0 as PaginatedSessionsResult, P as PortMapping, a1 as PreviewUrlItem, a2 as ProvidersResponse, a3 as PublishedAppsResource, a4 as QuickScenario, a5 as REGISTRY_PREFIX, a6 as RegistryResource, a7 as ResourceApi, a8 as ScenariosResource, a9 as ServerToClientEvents, aa as SessionContextStats, ab as SessionHistory, ac as SessionUpdatedPayload, ad as SessionsResource, ae as ShareLinkResult, af as SkillDevSession, ag as SkillOrgListResponse, ah as SkillOrgOption, ai as SkillsResource, aj as SoftwareFactoryModuleBlueprint, ak as SoftwareFactoryResource, al as SoftwareFactorySharedFile, am as SoftwareFactorySoftware, an as SoftwareFactoryTopic, ao as SoftwareFactoryTopicModule, ap as SolutionsResource, aq as SystemErrorPayload, ar as SystemNotificationPayload, as as TokenizeResult, at as TurnProjectionPayload, au as TypedSocket, av as UpdateQuickScenarioPayload, aw as UpgradeComputerResponse, ax as UploadFileEntry, ay as UploadFilesOptions, az as UserInfo, aA as UserPreferencesResource, b as VibeCodingDebugSessionStatus, d as VibeCodingDeployRecord, a as VibeCodingDeployStatus, V as VibeCodingResource, e as VibeCodingSessionInfo, c as VibeCodingSessionStatus, aB as createSocket, aC as normalizeResource } from '../blade-client-
|
|
1
|
+
export { A as ApiKeyCreateResponse, g as ApiKeyPublic, h as ApiKeysResource, i as AuthResource, B as BladeApiError, j as BladeClient, k as BladeClientOptions, l as BladeFetchInit, m as BladeHubScenarioResource, n as ChatEndPayload, o as ChatSendPayload, p as CheckpointNode, q as ClientToServerEvents, r as CodingTask, s as CodingTaskTopic, t as ComputerUpgradeReason, u as ComputerUpgradeStatusResponse, v as ContentPart, w as CreateQuickScenarioPayload, x as CreateSessionRequest, y as CreateSocketOptions, z as CreateSoftwareFactorySharedFilePayload, E as CreateSoftwareFactorySoftwarePayload, f as CreateVibeCodingSessionParams, C as CreateVibeCodingSessionResult, D as DeployBumpMode, F as FileEntry, G as GisResource, H as GlobalSkillStats, I as HeadlessError, J as HeadlessResource, K as HeadlessRunOptions, L as HistoryNode, M as HttpMethod, N as ImportPreview, O as ImportPreviewScenario, Q as ImportPreviewSkill, R as InstalledRegistrySkill, S as JsonSchemaObject, T as MemoriesResource, U as Memory, W as MemoryCreateBody, X as MemoryListParams, Y as MemoryListResponse, Z as ModelOption, _ as ModelsConfig, $ as ModelsResource, a0 as PaginatedSessionsResult, P as PortMapping, a1 as PreviewUrlItem, a2 as ProvidersResponse, a3 as PublishedAppsResource, a4 as QuickScenario, a5 as REGISTRY_PREFIX, a6 as RegistryResource, a7 as ResourceApi, a8 as ScenariosResource, a9 as ServerToClientEvents, aa as SessionContextStats, ab as SessionHistory, ac as SessionUpdatedPayload, ad as SessionsResource, ae as ShareLinkResult, af as SkillDevSession, ag as SkillOrgListResponse, ah as SkillOrgOption, ai as SkillsResource, aj as SoftwareFactoryModuleBlueprint, ak as SoftwareFactoryResource, al as SoftwareFactorySharedFile, am as SoftwareFactorySoftware, an as SoftwareFactoryTopic, ao as SoftwareFactoryTopicModule, ap as SolutionsResource, aq as SystemErrorPayload, ar as SystemNotificationPayload, as as TokenizeResult, at as TurnProjectionPayload, au as TypedSocket, av as UpdateQuickScenarioPayload, aw as UpgradeComputerResponse, ax as UploadFileEntry, ay as UploadFilesOptions, az as UserInfo, aA as UserPreferencesResource, b as VibeCodingDebugSessionStatus, d as VibeCodingDeployRecord, a as VibeCodingDeployStatus, V as VibeCodingResource, e as VibeCodingSessionInfo, c as VibeCodingSessionStatus, aB as createSocket, aC as normalizeResource } from '../blade-client-7VANnJfr.js';
|
|
2
2
|
import 'arktype/internal/variants/object.ts';
|
|
3
3
|
import 'arktype/internal/variants/string.ts';
|
|
4
4
|
import '../projection-BWYEFYNn.js';
|
|
5
|
-
import '../session-
|
|
5
|
+
import '../session-BuaeCsMC.js';
|
|
6
6
|
import 'socket.io-client';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -815,6 +815,26 @@ interface paths {
|
|
|
815
815
|
patch?: never;
|
|
816
816
|
trace?: never;
|
|
817
817
|
};
|
|
818
|
+
"/api/sessions/{session_id}/probe-url": {
|
|
819
|
+
parameters: {
|
|
820
|
+
query?: never;
|
|
821
|
+
header?: never;
|
|
822
|
+
path?: never;
|
|
823
|
+
cookie?: never;
|
|
824
|
+
};
|
|
825
|
+
/**
|
|
826
|
+
* Probe Session Url
|
|
827
|
+
* @description Probe one of this session's mapped preview URLs from the server side.
|
|
828
|
+
*/
|
|
829
|
+
get: operations["probe_session_url_api_sessions__session_id__probe_url_get"];
|
|
830
|
+
put?: never;
|
|
831
|
+
post?: never;
|
|
832
|
+
delete?: never;
|
|
833
|
+
options?: never;
|
|
834
|
+
head?: never;
|
|
835
|
+
patch?: never;
|
|
836
|
+
trace?: never;
|
|
837
|
+
};
|
|
818
838
|
"/api/sessions/{session_id}/ls/{dir_path}": {
|
|
819
839
|
parameters: {
|
|
820
840
|
query?: never;
|
|
@@ -1691,6 +1711,23 @@ interface paths {
|
|
|
1691
1711
|
patch?: never;
|
|
1692
1712
|
trace?: never;
|
|
1693
1713
|
};
|
|
1714
|
+
"/api/stats/cache": {
|
|
1715
|
+
parameters: {
|
|
1716
|
+
query?: never;
|
|
1717
|
+
header?: never;
|
|
1718
|
+
path?: never;
|
|
1719
|
+
cookie?: never;
|
|
1720
|
+
};
|
|
1721
|
+
/** Get Cache Stats */
|
|
1722
|
+
get: operations["get_cache_stats_api_stats_cache_get"];
|
|
1723
|
+
put?: never;
|
|
1724
|
+
post?: never;
|
|
1725
|
+
delete?: never;
|
|
1726
|
+
options?: never;
|
|
1727
|
+
head?: never;
|
|
1728
|
+
patch?: never;
|
|
1729
|
+
trace?: never;
|
|
1730
|
+
};
|
|
1694
1731
|
"/api/published-apps": {
|
|
1695
1732
|
parameters: {
|
|
1696
1733
|
query?: never;
|
|
@@ -4310,8 +4347,6 @@ interface components {
|
|
|
4310
4347
|
SkillPublishRequest: {
|
|
4311
4348
|
/** Org */
|
|
4312
4349
|
org: string;
|
|
4313
|
-
/** Version */
|
|
4314
|
-
version: string;
|
|
4315
4350
|
};
|
|
4316
4351
|
/** SoftwareFactoryModuleBlueprintResponse */
|
|
4317
4352
|
SoftwareFactoryModuleBlueprintResponse: {
|
|
@@ -5441,6 +5476,7 @@ interface operations {
|
|
|
5441
5476
|
parameters: {
|
|
5442
5477
|
query?: {
|
|
5443
5478
|
template_id_prefix?: string | null;
|
|
5479
|
+
solution_id?: string | null;
|
|
5444
5480
|
q?: string | null;
|
|
5445
5481
|
limit?: number;
|
|
5446
5482
|
offset?: number;
|
|
@@ -6363,6 +6399,39 @@ interface operations {
|
|
|
6363
6399
|
};
|
|
6364
6400
|
};
|
|
6365
6401
|
};
|
|
6402
|
+
probe_session_url_api_sessions__session_id__probe_url_get: {
|
|
6403
|
+
parameters: {
|
|
6404
|
+
query: {
|
|
6405
|
+
url: string;
|
|
6406
|
+
};
|
|
6407
|
+
header?: never;
|
|
6408
|
+
path: {
|
|
6409
|
+
session_id: string;
|
|
6410
|
+
};
|
|
6411
|
+
cookie?: never;
|
|
6412
|
+
};
|
|
6413
|
+
requestBody?: never;
|
|
6414
|
+
responses: {
|
|
6415
|
+
/** @description Successful Response */
|
|
6416
|
+
200: {
|
|
6417
|
+
headers: {
|
|
6418
|
+
[name: string]: unknown;
|
|
6419
|
+
};
|
|
6420
|
+
content: {
|
|
6421
|
+
"application/json": unknown;
|
|
6422
|
+
};
|
|
6423
|
+
};
|
|
6424
|
+
/** @description Validation Error */
|
|
6425
|
+
422: {
|
|
6426
|
+
headers: {
|
|
6427
|
+
[name: string]: unknown;
|
|
6428
|
+
};
|
|
6429
|
+
content: {
|
|
6430
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
6431
|
+
};
|
|
6432
|
+
};
|
|
6433
|
+
};
|
|
6434
|
+
};
|
|
6366
6435
|
list_dir_api_sessions__session_id__ls__dir_path__get: {
|
|
6367
6436
|
parameters: {
|
|
6368
6437
|
query?: never;
|
|
@@ -8417,6 +8486,44 @@ interface operations {
|
|
|
8417
8486
|
};
|
|
8418
8487
|
};
|
|
8419
8488
|
};
|
|
8489
|
+
get_cache_stats_api_stats_cache_get: {
|
|
8490
|
+
parameters: {
|
|
8491
|
+
query?: {
|
|
8492
|
+
/** @description ISO 8601 start time */
|
|
8493
|
+
start?: string | null;
|
|
8494
|
+
/** @description ISO 8601 end time */
|
|
8495
|
+
end?: string | null;
|
|
8496
|
+
interval?: "5m" | "1h" | "1d";
|
|
8497
|
+
source?: "ui" | "sdk" | "all";
|
|
8498
|
+
};
|
|
8499
|
+
header?: never;
|
|
8500
|
+
path?: never;
|
|
8501
|
+
cookie?: never;
|
|
8502
|
+
};
|
|
8503
|
+
requestBody?: never;
|
|
8504
|
+
responses: {
|
|
8505
|
+
/** @description Successful Response */
|
|
8506
|
+
200: {
|
|
8507
|
+
headers: {
|
|
8508
|
+
[name: string]: unknown;
|
|
8509
|
+
};
|
|
8510
|
+
content: {
|
|
8511
|
+
"application/json": {
|
|
8512
|
+
[key: string]: unknown;
|
|
8513
|
+
};
|
|
8514
|
+
};
|
|
8515
|
+
};
|
|
8516
|
+
/** @description Validation Error */
|
|
8517
|
+
422: {
|
|
8518
|
+
headers: {
|
|
8519
|
+
[name: string]: unknown;
|
|
8520
|
+
};
|
|
8521
|
+
content: {
|
|
8522
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
8523
|
+
};
|
|
8524
|
+
};
|
|
8525
|
+
};
|
|
8526
|
+
};
|
|
8420
8527
|
list_apps_api_published_apps_get: {
|
|
8421
8528
|
parameters: {
|
|
8422
8529
|
query?: never;
|
package/dist/client/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { V as VibeCodingResource, C as CreateVibeCodingSessionResult, a as VibeCodingDeployStatus, b as VibeCodingDebugSessionStatus, c as VibeCodingSessionStatus, d as VibeCodingDeployRecord, e as VibeCodingSessionInfo } from '../../blade-client-
|
|
2
|
-
export { f as CreateVibeCodingSessionParams, D as DeployBumpMode, P as PortMapping } from '../../blade-client-
|
|
1
|
+
import { V as VibeCodingResource, C as CreateVibeCodingSessionResult, a as VibeCodingDeployStatus, b as VibeCodingDebugSessionStatus, c as VibeCodingSessionStatus, d as VibeCodingDeployRecord, e as VibeCodingSessionInfo } from '../../blade-client-7VANnJfr.js';
|
|
2
|
+
export { f as CreateVibeCodingSessionParams, D as DeployBumpMode, P as PortMapping } from '../../blade-client-7VANnJfr.js';
|
|
3
3
|
import 'arktype/internal/variants/object.ts';
|
|
4
4
|
import 'arktype/internal/variants/string.ts';
|
|
5
5
|
import '../../projection-BWYEFYNn.js';
|
|
6
|
-
import '../../session-
|
|
6
|
+
import '../../session-BuaeCsMC.js';
|
|
7
7
|
import 'socket.io-client';
|
|
8
8
|
|
|
9
9
|
declare const createVibeCodingSession: (...args: Parameters<VibeCodingResource["createVibeCodingSession"]>) => Promise<CreateVibeCodingSessionResult>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getClient
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-UM7G65GH.js";
|
|
4
4
|
import "../../chunk-J3XVFPOV.js";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-ETHPRRT2.js";
|
|
6
6
|
import "../../chunk-JCJFFJ42.js";
|
|
7
7
|
import "../../chunk-PZ5AY32C.js";
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ChatViewCustomization, P as ParsedWhatIfPrompt } from '../../../SkillStatusBar-
|
|
2
|
-
export { A as AssistantTurnComponentProps, a as ChatInput, b as ChatView, c as ChatViewClassNames, d as ChatViewComponents, e as ChatViewProps, f as ChatViewRenderers, E as ErrorMessageBlock, F as FileComposerAttachment, g as FileSizeLimitDialog, M as MessageList, S as SkillStatusBar, h as SkillStatusBarComponentProps, T as ToolCallComponentProps, i as ToolRendererProps, U as UserMessageBubble, j as isErrorMessage, k as isUserMessage } from '../../../SkillStatusBar-
|
|
1
|
+
import { C as ChatViewCustomization, P as ParsedWhatIfPrompt } from '../../../SkillStatusBar-Dlf-_G5d.js';
|
|
2
|
+
export { A as AssistantTurnComponentProps, a as ChatInput, b as ChatView, c as ChatViewClassNames, d as ChatViewComponents, e as ChatViewProps, f as ChatViewRenderers, E as ErrorMessageBlock, F as FileComposerAttachment, g as FileSizeLimitDialog, M as MessageList, S as SkillStatusBar, h as SkillStatusBarComponentProps, T as ToolCallComponentProps, i as ToolRendererProps, U as UserMessageBubble, j as isErrorMessage, k as isUserMessage } from '../../../SkillStatusBar-Dlf-_G5d.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -7,10 +7,10 @@ import { a as CompactionInfo, C as ChatMessage, A as AskUserAnswerData, T as Too
|
|
|
7
7
|
export { b as AskUserQuestionBlock } from '../../../AskUserQuestionBlock---kOTouk.js';
|
|
8
8
|
import { C as ContentBlock } from '../../../projection-BWYEFYNn.js';
|
|
9
9
|
import 'zustand';
|
|
10
|
-
import '../../../session-
|
|
10
|
+
import '../../../session-BuaeCsMC.js';
|
|
11
11
|
import 'arktype/internal/variants/object.ts';
|
|
12
12
|
import 'arktype/internal/variants/string.ts';
|
|
13
|
-
import '../../../blade-client-
|
|
13
|
+
import '../../../blade-client-7VANnJfr.js';
|
|
14
14
|
import 'socket.io-client';
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -69,7 +69,8 @@ interface Props$2 {
|
|
|
69
69
|
forceExpanded?: boolean;
|
|
70
70
|
customization?: ChatViewCustomization;
|
|
71
71
|
}
|
|
72
|
-
declare function
|
|
72
|
+
declare function AssistantTurnBlockBase({ sessionId, messages: rawMessages, isStreaming, askAnswers, onAnswer, sessionStatus, level, forceExpanded, customization, }: Props$2): react_jsx_runtime.JSX.Element;
|
|
73
|
+
declare const AssistantTurnBlock: react.MemoExoticComponent<typeof AssistantTurnBlockBase>;
|
|
73
74
|
|
|
74
75
|
interface Props$1 {
|
|
75
76
|
toolCall: ToolCallInfo;
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
isErrorMessage,
|
|
17
17
|
isUserMessage,
|
|
18
18
|
useWhatIfQuoteContext
|
|
19
|
-
} from "../../../chunk-
|
|
19
|
+
} from "../../../chunk-K5EE7X2D.js";
|
|
20
20
|
import {
|
|
21
21
|
AskUserQuestionBlock
|
|
22
|
-
} from "../../../chunk-
|
|
22
|
+
} from "../../../chunk-GIE2Q2MB.js";
|
|
23
23
|
import "../../../chunk-2UP7MG3J.js";
|
|
24
|
-
import "../../../chunk-
|
|
25
|
-
import "../../../chunk-
|
|
24
|
+
import "../../../chunk-X3S36RR2.js";
|
|
25
|
+
import "../../../chunk-UM7G65GH.js";
|
|
26
26
|
import "../../../chunk-J3XVFPOV.js";
|
|
27
|
-
import "../../../chunk-
|
|
27
|
+
import "../../../chunk-ETHPRRT2.js";
|
|
28
28
|
import "../../../chunk-7LEKQI47.js";
|
|
29
29
|
import "../../../chunk-JCJFFJ42.js";
|
|
30
30
|
import "../../../chunk-PZ5AY32C.js";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
PlanSummaryCard,
|
|
4
4
|
extractLatestPlanMessages,
|
|
5
5
|
parsePlanMessages
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-GIE2Q2MB.js";
|
|
7
7
|
import "../../../chunk-2UP7MG3J.js";
|
|
8
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-UM7G65GH.js";
|
|
9
9
|
import "../../../chunk-J3XVFPOV.js";
|
|
10
|
-
import "../../../chunk-
|
|
10
|
+
import "../../../chunk-ETHPRRT2.js";
|
|
11
11
|
import {
|
|
12
12
|
cn
|
|
13
13
|
} from "../../../chunk-7LEKQI47.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { S as SessionInfo } from '../../../session-
|
|
2
|
+
import { S as SessionInfo } from '../../../session-BuaeCsMC.js';
|
|
3
3
|
import 'arktype/internal/variants/object.ts';
|
|
4
4
|
import 'arktype/internal/variants/string.ts';
|
|
5
5
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useSession
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-STCTXRMJ.js";
|
|
4
4
|
import {
|
|
5
5
|
checkoutSession,
|
|
6
6
|
getSessionCheckpoints,
|
|
7
7
|
useChatStore,
|
|
8
8
|
useSessionStore
|
|
9
|
-
} from "../../../chunk-
|
|
9
|
+
} from "../../../chunk-UM7G65GH.js";
|
|
10
10
|
import "../../../chunk-J3XVFPOV.js";
|
|
11
|
-
import "../../../chunk-
|
|
11
|
+
import "../../../chunk-ETHPRRT2.js";
|
|
12
12
|
import {
|
|
13
13
|
cn
|
|
14
14
|
} from "../../../chunk-7LEKQI47.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
CollapsibleContent,
|
|
4
4
|
CollapsibleTrigger,
|
|
5
5
|
resolveSessionFilePreviewTarget
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-X3S36RR2.js";
|
|
7
7
|
import {
|
|
8
8
|
apiFetchText,
|
|
9
9
|
copyFile,
|
|
@@ -17,9 +17,9 @@ import {
|
|
|
17
17
|
useChatStore,
|
|
18
18
|
useSessionStore,
|
|
19
19
|
useUiStore
|
|
20
|
-
} from "../../../chunk-
|
|
20
|
+
} from "../../../chunk-UM7G65GH.js";
|
|
21
21
|
import "../../../chunk-J3XVFPOV.js";
|
|
22
|
-
import "../../../chunk-
|
|
22
|
+
import "../../../chunk-ETHPRRT2.js";
|
|
23
23
|
import {
|
|
24
24
|
cn
|
|
25
25
|
} from "../../../chunk-7LEKQI47.js";
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { j as BladeClient, k as BladeClientOptions, h as ApiKeysResource, A as ApiKeyCreateResponse, g as ApiKeyPublic, i as AuthResource, az as UserInfo, a2 as ProvidersResponse, aD as EnvBucketsResource, aE as EnvBucket, aF as PlatformEnvBucket, T as MemoriesResource, U as Memory, Y as MemoryListResponse, W as MemoryCreateBody, X as MemoryListParams, G as GisResource, aG as GisState, aH as RuntimeConfig, $ as ModelsResource, Z as ModelOption, _ as ModelsConfig, ai as SkillsResource, H as GlobalSkillStats, aI as SkillDetail, aJ as SkillStats, R as InstalledRegistrySkill, aK as SkillSummary, aL as SkillSearchResult, aM as PartnerSkillInstallPayload, aN as PartnerSkillInstallResult, aO as SessionSkillUploadPayload, aP as SessionSkillUploadResult, a3 as PublishedAppsResource, aQ as PublishedApp, aR as PublishedAppListResponse, aS as PublishedAppStatus, aT as UnpublishAppResponse, ad as SessionsResource, ae as ShareLinkResult, aU as BackgroundTask, p as CheckpointNode, aa as SessionContextStats, ab as SessionHistory, F as FileEntry, a0 as PaginatedSessionsResult, af as SkillDevSession, N as ImportPreview, as as TokenizeResult, v as ContentPart, x as CreateSessionRequest, L as HistoryNode, O as ImportPreviewScenario, Q as ImportPreviewSkill, ax as UploadFileEntry, ay as UploadFilesOptions, aA as UserPreferencesResource, u as ComputerUpgradeStatusResponse, aw as UpgradeComputerResponse, ap as SolutionsResource, a8 as ScenariosResource, a4 as QuickScenario, m as BladeHubScenarioResource, w as CreateQuickScenarioPayload, a1 as PreviewUrlItem, av as UpdateQuickScenarioPayload, ak as SoftwareFactoryResource, am as SoftwareFactorySoftware, ao as SoftwareFactoryTopicModule, al as SoftwareFactorySharedFile, s as CodingTaskTopic, an as SoftwareFactoryTopic, r as CodingTask, z as CreateSoftwareFactorySharedFilePayload, E as CreateSoftwareFactorySoftwarePayload, aj as SoftwareFactoryModuleBlueprint, a7 as ResourceApi, a6 as RegistryResource, ag as SkillOrgListResponse, aV as GisGoal, aW as GisResource$1, aX as GisTarget, aY as GisMapCommand, aZ as Task } from '../blade-client-
|
|
2
|
-
export { a_ as AgentDriver, a$ as AgentResource, b0 as DatabaseDriver, b1 as DatabaseResource, b2 as DifyKnowledgeConfig, b3 as GisGoalStatus, b4 as HttpToolConfig, b5 as KnowledgeDriver, b6 as KnowledgeResource, b7 as McpToolConfig, b8 as MysqlConfig, b9 as ParallelMode, ba as PartnerSkillFile, ba as PartnerSkillFileData, bb as PartnerSkillName, bb as PartnerSkillNameData, bc as PostgresqlConfig, a5 as REGISTRY_PREFIX, bd as SessionSkillFile, bd as SessionSkillFileData, be as SessionSkillName, be as SessionSkillNameData, ah as SkillOrgOption, bf as StageSpec, bg as StepSpec, bh as TaskStatus, bi as ToolDriver, bj as ToolResource, aC as normalizeResource, bk as skillDisplayName } from '../blade-client-
|
|
1
|
+
import { j as BladeClient, k as BladeClientOptions, h as ApiKeysResource, A as ApiKeyCreateResponse, g as ApiKeyPublic, i as AuthResource, az as UserInfo, a2 as ProvidersResponse, aD as EnvBucketsResource, aE as EnvBucket, aF as PlatformEnvBucket, T as MemoriesResource, U as Memory, Y as MemoryListResponse, W as MemoryCreateBody, X as MemoryListParams, G as GisResource, aG as GisState, aH as RuntimeConfig, $ as ModelsResource, Z as ModelOption, _ as ModelsConfig, ai as SkillsResource, H as GlobalSkillStats, aI as SkillDetail, aJ as SkillStats, R as InstalledRegistrySkill, aK as SkillSummary, aL as SkillSearchResult, aM as PartnerSkillInstallPayload, aN as PartnerSkillInstallResult, aO as SessionSkillUploadPayload, aP as SessionSkillUploadResult, a3 as PublishedAppsResource, aQ as PublishedApp, aR as PublishedAppListResponse, aS as PublishedAppStatus, aT as UnpublishAppResponse, ad as SessionsResource, ae as ShareLinkResult, aU as BackgroundTask, p as CheckpointNode, aa as SessionContextStats, ab as SessionHistory, F as FileEntry, a0 as PaginatedSessionsResult, af as SkillDevSession, N as ImportPreview, as as TokenizeResult, v as ContentPart, x as CreateSessionRequest, L as HistoryNode, O as ImportPreviewScenario, Q as ImportPreviewSkill, ax as UploadFileEntry, ay as UploadFilesOptions, aA as UserPreferencesResource, u as ComputerUpgradeStatusResponse, aw as UpgradeComputerResponse, ap as SolutionsResource, a8 as ScenariosResource, a4 as QuickScenario, m as BladeHubScenarioResource, w as CreateQuickScenarioPayload, a1 as PreviewUrlItem, av as UpdateQuickScenarioPayload, ak as SoftwareFactoryResource, am as SoftwareFactorySoftware, ao as SoftwareFactoryTopicModule, al as SoftwareFactorySharedFile, s as CodingTaskTopic, an as SoftwareFactoryTopic, r as CodingTask, z as CreateSoftwareFactorySharedFilePayload, E as CreateSoftwareFactorySoftwarePayload, aj as SoftwareFactoryModuleBlueprint, a7 as ResourceApi, a6 as RegistryResource, ag as SkillOrgListResponse, aV as GisGoal, aW as GisResource$1, aX as GisTarget, aY as GisMapCommand, aZ as Task } from '../blade-client-7VANnJfr.js';
|
|
2
|
+
export { a_ as AgentDriver, a$ as AgentResource, b0 as DatabaseDriver, b1 as DatabaseResource, b2 as DifyKnowledgeConfig, b3 as GisGoalStatus, b4 as HttpToolConfig, b5 as KnowledgeDriver, b6 as KnowledgeResource, b7 as McpToolConfig, b8 as MysqlConfig, b9 as ParallelMode, ba as PartnerSkillFile, ba as PartnerSkillFileData, bb as PartnerSkillName, bb as PartnerSkillNameData, bc as PostgresqlConfig, a5 as REGISTRY_PREFIX, bd as SessionSkillFile, bd as SessionSkillFileData, be as SessionSkillName, be as SessionSkillNameData, ah as SkillOrgOption, bf as StageSpec, bg as StepSpec, bh as TaskStatus, bi as ToolDriver, bj as ToolResource, aC as normalizeResource, bk as skillDisplayName } from '../blade-client-7VANnJfr.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { ReactNode, ComponentProps, JSX, ComponentType } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { T as TurnProjection, a as PatchEnvelope } from '../projection-BWYEFYNn.js';
|
|
7
7
|
export { C as ContentBlock, b as ToolCallProjection } from '../projection-BWYEFYNn.js';
|
|
8
|
-
import { b as SessionDetail, S as SessionInfo, B as BizRole, c as Solution } from '../session-
|
|
9
|
-
export { L as LayoutType, M as ModeId, P as PrimarySkillParallelMode, d as PrimarySkillSnapshot, e as PrimarySkillStageSpec, f as PrimarySkillStepSpec, a as SessionStatus,
|
|
8
|
+
import { b as SessionDetail, S as SessionInfo, B as BizRole, c as Solution } from '../session-BuaeCsMC.js';
|
|
9
|
+
export { L as LayoutType, M as ModeId, P as PrimarySkillParallelMode, d as PrimarySkillSnapshot, e as PrimarySkillStageSpec, f as PrimarySkillStepSpec, g as SessionPortMapping, a as SessionStatus, h as SkillEditorTemplateId, i as SolutionAppField, j as SolutionAppState, k as SolutionAppUiConfig, T as TemplateId } from '../session-BuaeCsMC.js';
|
|
10
10
|
import * as arktype_internal_variants_object_ts from 'arktype/internal/variants/object.ts';
|
|
11
11
|
import { M as MessageContent, C as ChatMessage, A as AskUserAnswerData, a as CompactionInfo } from '../AskUserQuestionBlock---kOTouk.js';
|
|
12
12
|
export { F as FileContentPart, I as ImageUrlContentPart, c as MessageContentPart, d as TextContentPart, T as ToolCallInfo } from '../AskUserQuestionBlock---kOTouk.js';
|
|
13
13
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
14
14
|
import { Editor } from '@tiptap/react';
|
|
15
15
|
import { ClassValue } from 'clsx';
|
|
16
|
-
import { l as ClientAwareState } from '../SkillStatusBar-
|
|
17
|
-
export { m as ATTACHMENT_SIZE_LIMIT_BYTES, B as BuildWhatIfPromptInput, a as ChatInput, b as ChatView, g as FileSizeLimitDialog, M as MessageList, O as OversizedFileInfo, P as ParsedWhatIfPrompt, S as SkillStatusBar, W as WhatIfQuote, n as buildWhatIfPrompt, o as formatFileSize, p as invalidateHomeSidebarSessions, q as parseWhatIfPrompt, s as splitFilesBySize, u as useSessionStore } from '../SkillStatusBar-
|
|
16
|
+
import { l as ClientAwareState } from '../SkillStatusBar-Dlf-_G5d.js';
|
|
17
|
+
export { m as ATTACHMENT_SIZE_LIMIT_BYTES, B as BuildWhatIfPromptInput, a as ChatInput, b as ChatView, g as FileSizeLimitDialog, M as MessageList, O as OversizedFileInfo, P as ParsedWhatIfPrompt, S as SkillStatusBar, W as WhatIfQuote, n as buildWhatIfPrompt, o as formatFileSize, p as invalidateHomeSidebarSessions, q as parseWhatIfPrompt, s as splitFilesBySize, u as useSessionStore } from '../SkillStatusBar-Dlf-_G5d.js';
|
|
18
18
|
import * as zustand from 'zustand';
|
|
19
19
|
import { Streamdown, ExtraProps } from 'streamdown';
|
|
20
20
|
import * as _tiptap_core from '@tiptap/core';
|
|
@@ -867,6 +867,9 @@ declare const stopBackgroundTask: (...args: Parameters<SessionsResource["stopBac
|
|
|
867
867
|
message: string;
|
|
868
868
|
task?: BackgroundTask | null;
|
|
869
869
|
}>;
|
|
870
|
+
declare const probeSessionUrl: (...args: Parameters<SessionsResource["probeSessionUrl"]>) => Promise<{
|
|
871
|
+
reachable: boolean;
|
|
872
|
+
}>;
|
|
870
873
|
declare const listDir: (...args: Parameters<SessionsResource["listDir"]>) => Promise<FileEntry[]>;
|
|
871
874
|
declare const uploadFiles: (...args: Parameters<SessionsResource["uploadFiles"]>) => Promise<{
|
|
872
875
|
uploaded: string[];
|
|
@@ -938,6 +941,7 @@ declare const sessions_listSessionsPaginated: typeof listSessionsPaginated;
|
|
|
938
941
|
declare const sessions_listSessionsWithSkillData: typeof listSessionsWithSkillData;
|
|
939
942
|
declare const sessions_pinSession: typeof pinSession;
|
|
940
943
|
declare const sessions_previewImport: typeof previewImport;
|
|
944
|
+
declare const sessions_probeSessionUrl: typeof probeSessionUrl;
|
|
941
945
|
declare const sessions_renameFile: typeof renameFile;
|
|
942
946
|
declare const sessions_revokeShare: typeof revokeShare;
|
|
943
947
|
declare const sessions_rewindSession: typeof rewindSession;
|
|
@@ -954,7 +958,7 @@ declare const sessions_updateSharing: typeof updateSharing;
|
|
|
954
958
|
declare const sessions_uploadFiles: typeof uploadFiles;
|
|
955
959
|
declare const sessions_writeFile: typeof writeFile;
|
|
956
960
|
declare namespace sessions {
|
|
957
|
-
export { sessions_CheckpointNode as CheckpointNode, sessions_ContentPart as ContentPart, sessions_CreateSessionRequest as CreateSessionRequest, sessions_FileEntry as FileEntry, sessions_HistoryNode as HistoryNode, sessions_ImportPreview as ImportPreview, sessions_ImportPreviewScenario as ImportPreviewScenario, sessions_ImportPreviewSkill as ImportPreviewSkill, sessions_PaginatedSessionsResult as PaginatedSessionsResult, sessions_SessionContextStats as SessionContextStats, type sessions_SessionExtraInfo as SessionExtraInfo, sessions_SessionHistory as SessionHistory, sessions_SessionsResource as SessionsResource, sessions_ShareLinkResult as ShareLinkResult, sessions_SkillDevSession as SkillDevSession, sessions_TokenizeResult as TokenizeResult, sessions_UploadFileEntry as UploadFileEntry, sessions_UploadFilesOptions as UploadFilesOptions, sessions_checkoutSession as checkoutSession, sessions_copyFile as copyFile, sessions_createSession as createSession, sessions_createSessionWithRequest as createSessionWithRequest, sessions_createShare as createShare, sessions_deleteFile as deleteFile, sessions_deleteSession as deleteSession, sessions_exportSession as exportSession, sessions_getBackgroundTask as getBackgroundTask, sessions_getDownloadDirUrl as getDownloadDirUrl, sessions_getSession as getSession, sessions_getSessionCheckpoints as getSessionCheckpoints, sessions_getSessionContextStats as getSessionContextStats, sessions_getSessionExtraInfoByTask as getSessionExtraInfoByTask, sessions_getSessionHistory as getSessionHistory, sessions_getSessionTasks as getSessionTasks, sessions_getSessionTurns as getSessionTurns, sessions_getSharedSession as getSharedSession, sessions_importSession as importSession, sessions_listBackgroundTasks as listBackgroundTasks, sessions_listDir as listDir, sessions_listSessions as listSessions, sessions_listSessionsPaginated as listSessionsPaginated, sessions_listSessionsWithSkillData as listSessionsWithSkillData, sessions_pinSession as pinSession, sessions_previewImport as previewImport, sessions_renameFile as renameFile, sessions_revokeShare as revokeShare, sessions_rewindSession as rewindSession, sessions_shareFile as shareFile, sessions_startReplaySession as startReplaySession, sessions_stopBackgroundTask as stopBackgroundTask, sessions_switchBranch as switchBranch, sessions_tokenizeMessages as tokenizeMessages, sessions_tokenizePrompt as tokenizePrompt, sessions_updateReplaySession as updateReplaySession, sessions_updateSession as updateSession, sessions_updateSessionMemory as updateSessionMemory, sessions_updateSharing as updateSharing, sessions_uploadFiles as uploadFiles, sessions_writeFile as writeFile };
|
|
961
|
+
export { sessions_CheckpointNode as CheckpointNode, sessions_ContentPart as ContentPart, sessions_CreateSessionRequest as CreateSessionRequest, sessions_FileEntry as FileEntry, sessions_HistoryNode as HistoryNode, sessions_ImportPreview as ImportPreview, sessions_ImportPreviewScenario as ImportPreviewScenario, sessions_ImportPreviewSkill as ImportPreviewSkill, sessions_PaginatedSessionsResult as PaginatedSessionsResult, sessions_SessionContextStats as SessionContextStats, type sessions_SessionExtraInfo as SessionExtraInfo, sessions_SessionHistory as SessionHistory, sessions_SessionsResource as SessionsResource, sessions_ShareLinkResult as ShareLinkResult, sessions_SkillDevSession as SkillDevSession, sessions_TokenizeResult as TokenizeResult, sessions_UploadFileEntry as UploadFileEntry, sessions_UploadFilesOptions as UploadFilesOptions, sessions_checkoutSession as checkoutSession, sessions_copyFile as copyFile, sessions_createSession as createSession, sessions_createSessionWithRequest as createSessionWithRequest, sessions_createShare as createShare, sessions_deleteFile as deleteFile, sessions_deleteSession as deleteSession, sessions_exportSession as exportSession, sessions_getBackgroundTask as getBackgroundTask, sessions_getDownloadDirUrl as getDownloadDirUrl, sessions_getSession as getSession, sessions_getSessionCheckpoints as getSessionCheckpoints, sessions_getSessionContextStats as getSessionContextStats, sessions_getSessionExtraInfoByTask as getSessionExtraInfoByTask, sessions_getSessionHistory as getSessionHistory, sessions_getSessionTasks as getSessionTasks, sessions_getSessionTurns as getSessionTurns, sessions_getSharedSession as getSharedSession, sessions_importSession as importSession, sessions_listBackgroundTasks as listBackgroundTasks, sessions_listDir as listDir, sessions_listSessions as listSessions, sessions_listSessionsPaginated as listSessionsPaginated, sessions_listSessionsWithSkillData as listSessionsWithSkillData, sessions_pinSession as pinSession, sessions_previewImport as previewImport, sessions_probeSessionUrl as probeSessionUrl, sessions_renameFile as renameFile, sessions_revokeShare as revokeShare, sessions_rewindSession as rewindSession, sessions_shareFile as shareFile, sessions_startReplaySession as startReplaySession, sessions_stopBackgroundTask as stopBackgroundTask, sessions_switchBranch as switchBranch, sessions_tokenizeMessages as tokenizeMessages, sessions_tokenizePrompt as tokenizePrompt, sessions_updateReplaySession as updateReplaySession, sessions_updateSession as updateSession, sessions_updateSessionMemory as updateSessionMemory, sessions_updateSharing as updateSharing, sessions_uploadFiles as uploadFiles, sessions_writeFile as writeFile };
|
|
958
962
|
}
|
|
959
963
|
|
|
960
964
|
declare const getUserPreference: (...args: Parameters<UserPreferencesResource["getUserPreference"]>) => Promise<string | null>;
|
|
@@ -1165,7 +1169,6 @@ declare const listSkillOrgs: (...args: Parameters<RegistryResource["listSkillOrg
|
|
|
1165
1169
|
declare const publishSkill: (...args: Parameters<RegistryResource["publishSkill"]>) => Promise<{
|
|
1166
1170
|
success: boolean;
|
|
1167
1171
|
skill_id: string;
|
|
1168
|
-
version: string;
|
|
1169
1172
|
}>;
|
|
1170
1173
|
declare const databaseApi: ResourceApi<{
|
|
1171
1174
|
id: string;
|
|
@@ -1218,9 +1221,15 @@ declare class AgentSocket {
|
|
|
1218
1221
|
private readonly pendingReplayMessages;
|
|
1219
1222
|
private readonly pendingReplayModes;
|
|
1220
1223
|
private readonly oomNotifiedKeys;
|
|
1224
|
+
private readonly pendingTurnPatches;
|
|
1225
|
+
private patchFlushHandle;
|
|
1226
|
+
private patchFlushCancel;
|
|
1221
1227
|
constructor(client: BladeClient);
|
|
1222
1228
|
private _ensureConnected;
|
|
1223
1229
|
private _resolveSessionId;
|
|
1230
|
+
private _queueTurnPatch;
|
|
1231
|
+
private _scheduleTurnPatchFlush;
|
|
1232
|
+
private _flushPendingTurnPatches;
|
|
1224
1233
|
private _bindStoreHandlers;
|
|
1225
1234
|
private _bindConnectionHandlers;
|
|
1226
1235
|
private _applyProjectionSideEffects;
|
|
@@ -1574,6 +1583,164 @@ declare const useUiStore: zustand.UseBoundStore<zustand.StoreApi<UiState>>;
|
|
|
1574
1583
|
declare function buildSessionBinaryPreviewTarget(sessionId: string, filePath: string, fileName?: string): PreviewTarget | null;
|
|
1575
1584
|
declare function resolveSessionFilePreviewTarget(sessionId: string, filePath: string, fileName?: string): Promise<PreviewTarget>;
|
|
1576
1585
|
|
|
1586
|
+
interface HtmlSourceLocatorElement {
|
|
1587
|
+
tag: string;
|
|
1588
|
+
attributes?: Record<string, string>;
|
|
1589
|
+
visibleText?: string;
|
|
1590
|
+
}
|
|
1591
|
+
interface HtmlSourceLocation {
|
|
1592
|
+
snippet?: string;
|
|
1593
|
+
startLine?: number;
|
|
1594
|
+
endLine?: number;
|
|
1595
|
+
startColumn?: number;
|
|
1596
|
+
endColumn?: number;
|
|
1597
|
+
searchAnchors: string[];
|
|
1598
|
+
locatorConfidence: "high" | "medium" | "low";
|
|
1599
|
+
reason: string;
|
|
1600
|
+
}
|
|
1601
|
+
declare function locateHtmlElementSource(html: string, element: HtmlSourceLocatorElement): HtmlSourceLocation;
|
|
1602
|
+
|
|
1603
|
+
interface HtmlElementSelectionRaw {
|
|
1604
|
+
tag: string;
|
|
1605
|
+
selectionMode?: "single" | "group";
|
|
1606
|
+
groupLabel?: string;
|
|
1607
|
+
groupCount?: number;
|
|
1608
|
+
groupItems?: HtmlElementSelectionGroupItem[];
|
|
1609
|
+
visibleText?: string;
|
|
1610
|
+
accessibleName?: string;
|
|
1611
|
+
role?: string;
|
|
1612
|
+
attributes?: Record<string, string>;
|
|
1613
|
+
selectors?: HtmlElementSelector[];
|
|
1614
|
+
domPath?: string;
|
|
1615
|
+
rect?: HtmlElementRect;
|
|
1616
|
+
style?: Record<string, string>;
|
|
1617
|
+
surroundings?: HtmlElementSurroundings;
|
|
1618
|
+
viewport?: {
|
|
1619
|
+
width: number;
|
|
1620
|
+
height: number;
|
|
1621
|
+
devicePixelRatio: number;
|
|
1622
|
+
};
|
|
1623
|
+
screenshotDataUrl?: string;
|
|
1624
|
+
screenshotStatus?: "included" | "failed";
|
|
1625
|
+
screenshotError?: string;
|
|
1626
|
+
}
|
|
1627
|
+
interface HtmlElementSelectionGroupItem {
|
|
1628
|
+
label?: string;
|
|
1629
|
+
tag: string;
|
|
1630
|
+
role?: string;
|
|
1631
|
+
visibleText?: string;
|
|
1632
|
+
accessibleName?: string;
|
|
1633
|
+
selectors?: HtmlElementSelector[];
|
|
1634
|
+
domPath?: string;
|
|
1635
|
+
rect?: HtmlElementRect;
|
|
1636
|
+
}
|
|
1637
|
+
interface HtmlElementSelector {
|
|
1638
|
+
kind: string;
|
|
1639
|
+
value: string;
|
|
1640
|
+
confidence: "high" | "medium" | "low";
|
|
1641
|
+
}
|
|
1642
|
+
interface HtmlElementRect {
|
|
1643
|
+
x: number;
|
|
1644
|
+
y: number;
|
|
1645
|
+
width: number;
|
|
1646
|
+
height: number;
|
|
1647
|
+
}
|
|
1648
|
+
interface HtmlElementSurroundings {
|
|
1649
|
+
parentSummary?: string;
|
|
1650
|
+
childrenSummary?: string[];
|
|
1651
|
+
previousSiblings?: string[];
|
|
1652
|
+
nextSiblings?: string[];
|
|
1653
|
+
}
|
|
1654
|
+
interface HtmlElementSelectionContext {
|
|
1655
|
+
schema: "blade.html_element_selection.v1";
|
|
1656
|
+
selected_at: string;
|
|
1657
|
+
source_kind: "html_file" | "running_page";
|
|
1658
|
+
file: {
|
|
1659
|
+
path: string;
|
|
1660
|
+
name: string;
|
|
1661
|
+
language: "html";
|
|
1662
|
+
content_hash: string;
|
|
1663
|
+
};
|
|
1664
|
+
preview: {
|
|
1665
|
+
mode: "render" | "running_page";
|
|
1666
|
+
title?: string;
|
|
1667
|
+
url?: string;
|
|
1668
|
+
viewport: {
|
|
1669
|
+
width: number;
|
|
1670
|
+
height: number;
|
|
1671
|
+
device_pixel_ratio: number;
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1674
|
+
element: {
|
|
1675
|
+
label: string;
|
|
1676
|
+
tag: string;
|
|
1677
|
+
role?: string;
|
|
1678
|
+
accessible_name?: string;
|
|
1679
|
+
visible_text?: string;
|
|
1680
|
+
attributes: Record<string, string>;
|
|
1681
|
+
selectors: HtmlElementSelector[];
|
|
1682
|
+
dom_path?: string;
|
|
1683
|
+
rect?: HtmlElementRect;
|
|
1684
|
+
style: Record<string, string>;
|
|
1685
|
+
};
|
|
1686
|
+
group?: {
|
|
1687
|
+
label: string;
|
|
1688
|
+
count: number;
|
|
1689
|
+
items: Array<{
|
|
1690
|
+
label?: string;
|
|
1691
|
+
tag: string;
|
|
1692
|
+
role?: string;
|
|
1693
|
+
accessible_name?: string;
|
|
1694
|
+
visible_text?: string;
|
|
1695
|
+
selectors: HtmlElementSelector[];
|
|
1696
|
+
dom_path?: string;
|
|
1697
|
+
rect?: HtmlElementRect;
|
|
1698
|
+
}>;
|
|
1699
|
+
};
|
|
1700
|
+
source: {
|
|
1701
|
+
snippet?: string;
|
|
1702
|
+
start_line?: number;
|
|
1703
|
+
end_line?: number;
|
|
1704
|
+
start_column?: number;
|
|
1705
|
+
end_column?: number;
|
|
1706
|
+
search_anchors: string[];
|
|
1707
|
+
locator_confidence: "high" | "medium" | "low";
|
|
1708
|
+
reason: string;
|
|
1709
|
+
};
|
|
1710
|
+
surroundings: {
|
|
1711
|
+
parent_summary?: string;
|
|
1712
|
+
children_summary?: string[];
|
|
1713
|
+
previous_siblings?: string[];
|
|
1714
|
+
next_siblings?: string[];
|
|
1715
|
+
};
|
|
1716
|
+
screenshot?: {
|
|
1717
|
+
included: boolean;
|
|
1718
|
+
note: string;
|
|
1719
|
+
reason?: string;
|
|
1720
|
+
};
|
|
1721
|
+
limits: {
|
|
1722
|
+
truncated: boolean;
|
|
1723
|
+
omitted_sensitive_fields: string[];
|
|
1724
|
+
};
|
|
1725
|
+
}
|
|
1726
|
+
interface BuildHtmlElementSelectionInput {
|
|
1727
|
+
filePath: string;
|
|
1728
|
+
fileName?: string;
|
|
1729
|
+
title?: string;
|
|
1730
|
+
html?: string;
|
|
1731
|
+
sourceKind?: "html_file" | "running_page";
|
|
1732
|
+
pageUrl?: string;
|
|
1733
|
+
selection: HtmlElementSelectionRaw;
|
|
1734
|
+
selectedAt?: string;
|
|
1735
|
+
}
|
|
1736
|
+
interface PendingHtmlElementContext {
|
|
1737
|
+
label: string;
|
|
1738
|
+
content: string;
|
|
1739
|
+
context: HtmlElementSelectionContext;
|
|
1740
|
+
imageUrl?: string;
|
|
1741
|
+
}
|
|
1742
|
+
declare function buildHtmlElementSelectionContext(input: BuildHtmlElementSelectionInput): PendingHtmlElementContext;
|
|
1743
|
+
|
|
1577
1744
|
declare function getTextContent(content: MessageContent): string;
|
|
1578
1745
|
declare function buildMessageContent(text: string, attachments: Array<{
|
|
1579
1746
|
kind: "file";
|
|
@@ -1976,6 +2143,7 @@ interface PendingContextSignal {
|
|
|
1976
2143
|
id: string;
|
|
1977
2144
|
label: string;
|
|
1978
2145
|
content: string;
|
|
2146
|
+
imageUrl?: string;
|
|
1979
2147
|
}
|
|
1980
2148
|
interface DraftAppendSignal {
|
|
1981
2149
|
id: string;
|
|
@@ -2002,4 +2170,4 @@ interface UiBridgeState extends ClientAwareState {
|
|
|
2002
2170
|
}
|
|
2003
2171
|
declare const useUiBridgeStore: zustand.UseBoundStore<zustand.StoreApi<UiBridgeState>>;
|
|
2004
2172
|
|
|
2005
|
-
export { type ActiveRightTab, type AnalyticsEventName, ApiKeyCreateResponse, ApiKeyPublic, type ArchitectureNode, type ArchitecturePayload, type ArchitectureVersion, type ArchitectureVersionListItem, BackgroundTask, BizRole, type BladeBridgeEnvelope, BladeClientOptions, BladeClientProvider, type BladeClientProviderProps, BladeContext, BladeHubScenarioResource, type Card, CardCodeBlock, type CardComponent, type CardComponentProps, CardContext, CardJSON, type ChatEnd, ChatMessage, type ConnectionStatus, type ContentDelta, CreateQuickScenarioPayload, CreateSoftwareFactorySharedFilePayload, CreateSoftwareFactorySoftwarePayload, type DagPayload, type DagVersion, type DagVersionListItem, type DslStep, EnvBucket, EnvVariable, GisGoal, GisMapCommand, GisResource$1 as GisResource, GisState, GisTarget, GlobalSkillStats, InstalledRegistrySkill, type IssueAssigneeType, type IssuePriority, type IssueStatus, type LlmResponseDone, MarkdownContent, Memory, MemoryCreateBody, MemoryListParams, MemoryListResponse, MessageContent, ModelSelector, type MulticaAgent, type MulticaRuntime, PartnerSkillInstallPayload, PartnerSkillInstallPayload as PartnerSkillInstallPayloadData, PartnerSkillInstallResult, PartnerSkillInstallResult as PartnerSkillInstallResultData, PatchEnvelope, PlatformEnvBucket, type PreviewTarget, PreviewUrlItem, type ProdAgentCatalogSolution, type ProdAgentPreviewUrl, type ProdAgentRecord, type ProdSolution, type ProdUser, type ProdUserTokenStatus, PublishedApp, PublishedAppListResponse, PublishedAppStatus, QuickScenario, RegistryResource, ResourceApi, ResourceBase, ResourceIframe, RuntimeConfig, type RuntimeEvent, Scene, SceneStatus, ScheduledTask, ScheduledTaskCalendarItem, ScheduledTaskCalendarItem as ScheduledTaskCalendarItemData, type ScheduledTaskCreatePayload, ScheduledTask as ScheduledTaskData, ScheduledTaskRun, ScheduledTaskRun as ScheduledTaskRunData, type ScheduledTaskUpdatePayload, SessionDetail, type SessionExtraInfo, SessionInfo, SessionSkillUploadPayload, SessionSkillUploadPayload as SessionSkillUploadPayloadData, SessionSkillUploadResult, SessionSkillUploadResult as SessionSkillUploadResultData, type SessionStatusEvent, SkillCompletionMenu, type SkillCompletionMenuRef, SkillDetail, SkillMention, SkillOrgListResponse, SkillSearchResult, type SkillSuggestionItem, SkillSummary, SoftwareFactorySharedFile, SoftwareFactorySoftware, Solution, type StepMessageRange, type SystemError, Task, type ToolCallCreated, type ToolResultDone, TurnProjection, type UiMeta, UnpublishAppResponse, UpdateQuickScenarioPayload, type UseTiptapVoiceInputOptions, type UseTiptapVoiceInputResult, type UseVoiceInputOptions, type UseVoiceInputResult, type UserWorkspace, type VoiceInputError, type VoiceInputStatus, VoiceWaveform, type WorkspaceIssue, type WorkspaceIssueTaskRun, type WorkspaceIssueTimelineEntry, type WorkspaceIssueUsageSummary, type WorkspaceMember, agentApi, agentSocket, apiFetch, apiFetchResponse, apiFetchText, apiKeys as apiKeysApi, attachClientToStores, attachHostBridgeListener, auth as authApi, bootstrapBladeClient, buildMessageContent, buildSessionBinaryPreviewTarget, buildStepRanges, buildVoiceInputUnavailableError, cardRegistry, cn, copyToClipboard, createResourceApi, databaseApi, deriveDeprecateEntryIds, envBuckets as envBucketsApi, getAuthedUrl, getBaseUrl, getBootstrappedClient, getClient, getCodeLanguageFromFilename, getSocket, getTextContent, gisApi, groupMessagesByLoop, isInsideIframe, isUiMeta, knowledgeApi, listSkillOrgs, memories as memoriesApi, models as modelsApi, normalizeCodeLanguage, partnerSkill as partnerSkillApi, prodSolution as prodSolutionApi, publishSkill, publishedApps as publishedAppsApi, resolveEffectiveTheme, resolveSessionFilePreviewTarget, resourceBridgeDispatch, scenarios as scenariosApi, scheduledTasks as scheduledTasksApi, sessions as sessionsApi, setAnalyticsClient, setOnWorkspaceFilesChanged, skillMentionSuggestionKey, skills as skillsApi, softwareFactory as softwareFactoryApi, solutions as solutionsApi, toolApi, trackEvent, transformSlashCommand, uploadFiles, useAgents, useAuthStore, useBackgroundStore, useBackgroundTasks, useBladeClient, useCardContext, useCardState, useCardStateStore, useChat, useChatStore, useCheckSkillFile, useConnectionStore, useDataSources, useGisState, useGisStore, useGlobalSkillStats, useHighlightedCodeHtml, useInputHistory, useKnowledgeBases, useModelConfig, usePreferredModel, useResolvedModel, useRuntimeConfig, useRuntimeFeaturesStore, useRuntimeStore, useSession, useSkills, useTaskStore, useTiptapVoiceInput, useToolProviders, useUiBridgeStore, useUiStore, useVoiceInput, userPreferences as userPreferencesApi };
|
|
2173
|
+
export { type ActiveRightTab, type AnalyticsEventName, ApiKeyCreateResponse, ApiKeyPublic, type ArchitectureNode, type ArchitecturePayload, type ArchitectureVersion, type ArchitectureVersionListItem, BackgroundTask, BizRole, type BladeBridgeEnvelope, BladeClientOptions, BladeClientProvider, type BladeClientProviderProps, BladeContext, BladeHubScenarioResource, type BuildHtmlElementSelectionInput, type Card, CardCodeBlock, type CardComponent, type CardComponentProps, CardContext, CardJSON, type ChatEnd, ChatMessage, type ConnectionStatus, type ContentDelta, CreateQuickScenarioPayload, CreateSoftwareFactorySharedFilePayload, CreateSoftwareFactorySoftwarePayload, type DagPayload, type DagVersion, type DagVersionListItem, type DslStep, EnvBucket, EnvVariable, GisGoal, GisMapCommand, GisResource$1 as GisResource, GisState, GisTarget, GlobalSkillStats, type HtmlElementSelectionContext, type HtmlElementSelectionRaw, type HtmlSourceLocation, type HtmlSourceLocatorElement, InstalledRegistrySkill, type IssueAssigneeType, type IssuePriority, type IssueStatus, type LlmResponseDone, MarkdownContent, Memory, MemoryCreateBody, MemoryListParams, MemoryListResponse, MessageContent, ModelSelector, type MulticaAgent, type MulticaRuntime, PartnerSkillInstallPayload, PartnerSkillInstallPayload as PartnerSkillInstallPayloadData, PartnerSkillInstallResult, PartnerSkillInstallResult as PartnerSkillInstallResultData, PatchEnvelope, type PendingHtmlElementContext, PlatformEnvBucket, type PreviewTarget, PreviewUrlItem, type ProdAgentCatalogSolution, type ProdAgentPreviewUrl, type ProdAgentRecord, type ProdSolution, type ProdUser, type ProdUserTokenStatus, PublishedApp, PublishedAppListResponse, PublishedAppStatus, QuickScenario, RegistryResource, ResourceApi, ResourceBase, ResourceIframe, RuntimeConfig, type RuntimeEvent, Scene, SceneStatus, ScheduledTask, ScheduledTaskCalendarItem, ScheduledTaskCalendarItem as ScheduledTaskCalendarItemData, type ScheduledTaskCreatePayload, ScheduledTask as ScheduledTaskData, ScheduledTaskRun, ScheduledTaskRun as ScheduledTaskRunData, type ScheduledTaskUpdatePayload, SessionDetail, type SessionExtraInfo, SessionInfo, SessionSkillUploadPayload, SessionSkillUploadPayload as SessionSkillUploadPayloadData, SessionSkillUploadResult, SessionSkillUploadResult as SessionSkillUploadResultData, type SessionStatusEvent, SkillCompletionMenu, type SkillCompletionMenuRef, SkillDetail, SkillMention, SkillOrgListResponse, SkillSearchResult, type SkillSuggestionItem, SkillSummary, SoftwareFactorySharedFile, SoftwareFactorySoftware, Solution, type StepMessageRange, type SystemError, Task, type ToolCallCreated, type ToolResultDone, TurnProjection, type UiMeta, UnpublishAppResponse, UpdateQuickScenarioPayload, type UseTiptapVoiceInputOptions, type UseTiptapVoiceInputResult, type UseVoiceInputOptions, type UseVoiceInputResult, type UserWorkspace, type VoiceInputError, type VoiceInputStatus, VoiceWaveform, type WorkspaceIssue, type WorkspaceIssueTaskRun, type WorkspaceIssueTimelineEntry, type WorkspaceIssueUsageSummary, type WorkspaceMember, agentApi, agentSocket, apiFetch, apiFetchResponse, apiFetchText, apiKeys as apiKeysApi, attachClientToStores, attachHostBridgeListener, auth as authApi, bootstrapBladeClient, buildHtmlElementSelectionContext, buildMessageContent, buildSessionBinaryPreviewTarget, buildStepRanges, buildVoiceInputUnavailableError, cardRegistry, cn, copyToClipboard, createResourceApi, databaseApi, deriveDeprecateEntryIds, envBuckets as envBucketsApi, getAuthedUrl, getBaseUrl, getBootstrappedClient, getClient, getCodeLanguageFromFilename, getSocket, getTextContent, gisApi, groupMessagesByLoop, isInsideIframe, isUiMeta, knowledgeApi, listSkillOrgs, locateHtmlElementSource, memories as memoriesApi, models as modelsApi, normalizeCodeLanguage, partnerSkill as partnerSkillApi, prodSolution as prodSolutionApi, publishSkill, publishedApps as publishedAppsApi, resolveEffectiveTheme, resolveSessionFilePreviewTarget, resourceBridgeDispatch, scenarios as scenariosApi, scheduledTasks as scheduledTasksApi, sessions as sessionsApi, setAnalyticsClient, setOnWorkspaceFilesChanged, skillMentionSuggestionKey, skills as skillsApi, softwareFactory as softwareFactoryApi, solutions as solutionsApi, toolApi, trackEvent, transformSlashCommand, uploadFiles, useAgents, useAuthStore, useBackgroundStore, useBackgroundTasks, useBladeClient, useCardContext, useCardState, useCardStateStore, useChat, useChatStore, useCheckSkillFile, useConnectionStore, useDataSources, useGisState, useGisStore, useGlobalSkillStats, useHighlightedCodeHtml, useInputHistory, useKnowledgeBases, useModelConfig, usePreferredModel, useResolvedModel, useRuntimeConfig, useRuntimeFeaturesStore, useRuntimeStore, useSession, useSkills, useTaskStore, useTiptapVoiceInput, useToolProviders, useUiBridgeStore, useUiStore, useVoiceInput, userPreferences as userPreferencesApi };
|