@blade-hq/agent-kit 1.0.10 → 1.0.12

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.
@@ -5,12 +5,12 @@ import {
5
5
  import {
6
6
  getSessionFilePath,
7
7
  resolveSessionFilePreviewTarget
8
- } from "./chunk-LENFWWJW.js";
8
+ } from "./chunk-CM3H6ZNV.js";
9
9
  import {
10
10
  formatToolName,
11
11
  getAuthedUrl,
12
12
  useUiStore
13
- } from "./chunk-73SFX7A7.js";
13
+ } from "./chunk-3UY7SD3P.js";
14
14
  import {
15
15
  cn,
16
16
  copyToClipboard
@@ -1933,4 +1933,4 @@ export {
1933
1933
  PlanSummaryCard,
1934
1934
  extractLatestPlanMessages
1935
1935
  };
1936
- //# sourceMappingURL=chunk-PEKXKWGO.js.map
1936
+ //# sourceMappingURL=chunk-4K25SSZ4.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  apiFetchResponse,
3
3
  getAuthedUrl
4
- } from "./chunk-73SFX7A7.js";
4
+ } from "./chunk-3UY7SD3P.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"]);
@@ -117,4 +117,4 @@ export {
117
117
  resolveTextPreviewType,
118
118
  resolveSessionFilePreviewTarget
119
119
  };
120
- //# sourceMappingURL=chunk-LENFWWJW.js.map
120
+ //# sourceMappingURL=chunk-CM3H6ZNV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useSessionStore
3
- } from "./chunk-73SFX7A7.js";
3
+ } from "./chunk-3UY7SD3P.js";
4
4
 
5
5
  // src/react/hooks/use-session.ts
6
6
  function useSession() {
@@ -27,4 +27,4 @@ function useSession() {
27
27
  export {
28
28
  useSession
29
29
  };
30
- //# sourceMappingURL=chunk-TKM7RF32.js.map
30
+ //# sourceMappingURL=chunk-CVCQSRVP.js.map
@@ -8,7 +8,7 @@ import {
8
8
  getCodeLanguageFromFilename,
9
9
  parseAskUserQuestion,
10
10
  useHighlightedCodeHtml
11
- } from "./chunk-PEKXKWGO.js";
11
+ } from "./chunk-4K25SSZ4.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-LENFWWJW.js";
19
+ } from "./chunk-CM3H6ZNV.js";
20
20
  import {
21
21
  apiFetchResponse,
22
22
  buildMessageContent,
@@ -60,7 +60,7 @@ import {
60
60
  useUiBridgeStore,
61
61
  useUiStore,
62
62
  writeFile
63
- } from "./chunk-73SFX7A7.js";
63
+ } from "./chunk-3UY7SD3P.js";
64
64
  import {
65
65
  registerBridgeIframe,
66
66
  tapBridgeEvent
@@ -8652,4 +8652,4 @@ use-stick-to-bottom/dist/StickToBottom.js:
8652
8652
  * Licensed under the MIT License. See License.txt in the project root for license information.
8653
8653
  *--------------------------------------------------------------------------------------------*)
8654
8654
  */
8655
- //# sourceMappingURL=chunk-ZHETUOD4.js.map
8655
+ //# sourceMappingURL=chunk-DXDLZXDP.js.map
@@ -5084,6 +5084,23 @@ interface paths {
5084
5084
  patch?: never;
5085
5085
  trace?: never;
5086
5086
  };
5087
+ "/api/system-info": {
5088
+ parameters: {
5089
+ query?: never;
5090
+ header?: never;
5091
+ path?: never;
5092
+ cookie?: never;
5093
+ };
5094
+ /** Get System Info */
5095
+ get: operations["get_system_info_api_system_info_get"];
5096
+ put?: never;
5097
+ post?: never;
5098
+ delete?: never;
5099
+ options?: never;
5100
+ head?: never;
5101
+ patch?: never;
5102
+ trace?: never;
5103
+ };
5087
5104
  "/api/browser/command": {
5088
5105
  parameters: {
5089
5106
  query?: never;
@@ -6415,6 +6432,31 @@ interface components {
6415
6432
  /** Assignee Type */
6416
6433
  assignee_type?: string | null;
6417
6434
  };
6435
+ /** SystemInfo */
6436
+ SystemInfo: {
6437
+ /** Python Version */
6438
+ python_version: string;
6439
+ /** Platform */
6440
+ platform: string;
6441
+ /** Architecture */
6442
+ architecture: string;
6443
+ /** Hostname */
6444
+ hostname: string;
6445
+ /** Git */
6446
+ git: {
6447
+ [key: string]: string;
6448
+ };
6449
+ /** Package Versions */
6450
+ package_versions: {
6451
+ [key: string]: string;
6452
+ };
6453
+ /** Env Groups */
6454
+ env_groups: components["schemas"]["_EnvGroup"][];
6455
+ /** Startup Env */
6456
+ startup_env: {
6457
+ [key: string]: string;
6458
+ };
6459
+ };
6418
6460
  /**
6419
6461
  * TemplateId
6420
6462
  * @enum {string}
@@ -17941,6 +17983,26 @@ interface operations {
17941
17983
  };
17942
17984
  };
17943
17985
  };
17986
+ get_system_info_api_system_info_get: {
17987
+ parameters: {
17988
+ query?: never;
17989
+ header?: never;
17990
+ path?: never;
17991
+ cookie?: never;
17992
+ };
17993
+ requestBody?: never;
17994
+ responses: {
17995
+ /** @description Successful Response */
17996
+ 200: {
17997
+ headers: {
17998
+ [name: string]: unknown;
17999
+ };
18000
+ content: {
18001
+ "application/json": components["schemas"]["SystemInfo"];
18002
+ };
18003
+ };
18004
+ };
18005
+ };
17944
18006
  post_browser_command_api_browser_command_post: {
17945
18007
  parameters: {
17946
18008
  query?: never;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getClient
3
- } from "../../chunk-73SFX7A7.js";
3
+ } from "../../chunk-3UY7SD3P.js";
4
4
  import "../../chunk-J3XVFPOV.js";
5
5
  import "../../chunk-DN4CKDDQ.js";
6
6
  import "../../chunk-JCJFFJ42.js";
@@ -16,14 +16,14 @@ import {
16
16
  isErrorMessage,
17
17
  isUserMessage,
18
18
  useWhatIfQuoteContext
19
- } from "../../../chunk-ZHETUOD4.js";
19
+ } from "../../../chunk-DXDLZXDP.js";
20
20
  import {
21
21
  AskUserQuestionBlock
22
- } from "../../../chunk-PEKXKWGO.js";
22
+ } from "../../../chunk-4K25SSZ4.js";
23
23
  import "../../../chunk-2UP7MG3J.js";
24
24
  import "../../../chunk-H62LH2AG.js";
25
- import "../../../chunk-LENFWWJW.js";
26
- import "../../../chunk-73SFX7A7.js";
25
+ import "../../../chunk-CM3H6ZNV.js";
26
+ import "../../../chunk-3UY7SD3P.js";
27
27
  import "../../../chunk-J3XVFPOV.js";
28
28
  import "../../../chunk-DN4CKDDQ.js";
29
29
  import "../../../chunk-7LEKQI47.js";
@@ -3,10 +3,10 @@ import {
3
3
  PlanSummaryCard,
4
4
  extractLatestPlanMessages,
5
5
  parsePlanMessages
6
- } from "../../../chunk-PEKXKWGO.js";
6
+ } from "../../../chunk-4K25SSZ4.js";
7
7
  import "../../../chunk-2UP7MG3J.js";
8
- import "../../../chunk-LENFWWJW.js";
9
- import "../../../chunk-73SFX7A7.js";
8
+ import "../../../chunk-CM3H6ZNV.js";
9
+ import "../../../chunk-3UY7SD3P.js";
10
10
  import "../../../chunk-J3XVFPOV.js";
11
11
  import "../../../chunk-DN4CKDDQ.js";
12
12
  import {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  useSession
3
- } from "../../../chunk-TKM7RF32.js";
3
+ } from "../../../chunk-CVCQSRVP.js";
4
4
  import {
5
5
  checkoutSession,
6
6
  getSessionCheckpoints,
7
7
  useChatStore,
8
8
  useSessionStore
9
- } from "../../../chunk-73SFX7A7.js";
9
+ } from "../../../chunk-3UY7SD3P.js";
10
10
  import "../../../chunk-J3XVFPOV.js";
11
11
  import "../../../chunk-DN4CKDDQ.js";
12
12
  import {
@@ -5,7 +5,7 @@ import {
5
5
  } from "../../../chunk-H62LH2AG.js";
6
6
  import {
7
7
  resolveSessionFilePreviewTarget
8
- } from "../../../chunk-LENFWWJW.js";
8
+ } from "../../../chunk-CM3H6ZNV.js";
9
9
  import {
10
10
  apiFetchText,
11
11
  copyFile,
@@ -19,7 +19,7 @@ import {
19
19
  useChatStore,
20
20
  useSessionStore,
21
21
  useUiStore
22
- } from "../../../chunk-73SFX7A7.js";
22
+ } from "../../../chunk-3UY7SD3P.js";
23
23
  import "../../../chunk-J3XVFPOV.js";
24
24
  import "../../../chunk-DN4CKDDQ.js";
25
25
  import {
@@ -1104,6 +1104,15 @@ declare class AgentSocket {
1104
1104
  unsubscribeAgentBoardProject(projectId: string | number): void;
1105
1105
  onAgentBoardTaskChanged(handler: (data: AgentBoardBoardTaskChangedEvent) => void): () => void;
1106
1106
  onAgentBoardFileOp(handler: (data: AgentBoardFileOpEvent) => void): () => void;
1107
+ /**
1108
+ * 订阅 session:updated(智能体意图等会话属性变更)。全局 handler 只会
1109
+ * patch 已在 useSessionStore 列表里的会话;看板任务这类不在列表里的
1110
+ * 会话,由调用方通过本方法自行消费意图更新。
1111
+ */
1112
+ onSessionUpdated(handler: (data: {
1113
+ session_id?: string;
1114
+ intent?: string;
1115
+ }) => void): () => void;
1107
1116
  unsubscribe(): void;
1108
1117
  /**
1109
1118
  * 附加订阅:仅把当前 sid 加进 sessionId 的 room,不切 subscribedSession,
@@ -30,7 +30,7 @@ import {
30
30
  useTiptapVoiceInput,
31
31
  useVoiceInput,
32
32
  user_preferences_exports
33
- } from "../chunk-ZHETUOD4.js";
33
+ } from "../chunk-DXDLZXDP.js";
34
34
  import {
35
35
  CardCodeBlock,
36
36
  CardContext,
@@ -39,14 +39,14 @@ import {
39
39
  normalizeCodeLanguage,
40
40
  useCardContext,
41
41
  useHighlightedCodeHtml
42
- } from "../chunk-PEKXKWGO.js";
42
+ } from "../chunk-4K25SSZ4.js";
43
43
  import {
44
44
  CardJSON,
45
45
  cardRegistry
46
46
  } from "../chunk-2UP7MG3J.js";
47
47
  import {
48
48
  useSession
49
- } from "../chunk-TKM7RF32.js";
49
+ } from "../chunk-CVCQSRVP.js";
50
50
  import "../chunk-H62LH2AG.js";
51
51
  import {
52
52
  buildBinaryPreviewTarget,
@@ -54,7 +54,7 @@ import {
54
54
  isOfficePdfPreviewable,
55
55
  resolveSessionFilePreviewTarget,
56
56
  resolveTextPreviewType
57
- } from "../chunk-LENFWWJW.js";
57
+ } from "../chunk-CM3H6ZNV.js";
58
58
  import {
59
59
  PartnerSkillFile,
60
60
  PartnerSkillInstallPayload,
@@ -109,7 +109,7 @@ import {
109
109
  useTaskStore,
110
110
  useUiBridgeStore,
111
111
  useUiStore
112
- } from "../chunk-73SFX7A7.js";
112
+ } from "../chunk-3UY7SD3P.js";
113
113
  import "../chunk-J3XVFPOV.js";
114
114
  import {
115
115
  REGISTRY_PREFIX,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blade-hq/agent-kit",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "type": "module",
5
5
  "main": "./dist/react/index.js",
6
6
  "types": "./dist/react/index.d.ts",