@blade-hq/agent-kit 1.0.30 → 1.0.32

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.
Files changed (42) hide show
  1. package/dist/{chunk-7OEW3P7R.js → chunk-E7FQV4IX.js} +56 -35
  2. package/dist/chunk-E7FQV4IX.js.map +1 -0
  3. package/dist/{chunk-6G5LCDOS.js → chunk-EGGBOVVF.js} +2 -2
  4. package/dist/{chunk-L4C2TY6S.js → chunk-F4Y7SUBC.js} +2 -2
  5. package/dist/{chunk-GAVSC2AW.js → chunk-FK4CV6R2.js} +46 -2
  6. package/dist/chunk-FK4CV6R2.js.map +1 -0
  7. package/dist/{chunk-WOKDHXS7.js → chunk-IDVNG3YJ.js} +37 -12
  8. package/dist/chunk-IDVNG3YJ.js.map +1 -0
  9. package/dist/{chunk-3XDPNPE3.js → chunk-IGMLETZX.js} +1001 -713
  10. package/dist/chunk-IGMLETZX.js.map +1 -0
  11. package/dist/{chunk-MJPVAXJN.js → chunk-OICNN4K4.js} +2 -2
  12. package/dist/client/index.js +1 -1
  13. package/dist/client/types/rest.d.ts +65 -136
  14. package/dist/react/api/published-apps.js +3 -3
  15. package/dist/react/api/sessions.js +2 -2
  16. package/dist/react/components/chat/FileDeliveryCards.d.ts +11 -0
  17. package/dist/react/components/chat/MessageList.d.ts +1 -0
  18. package/dist/react/components/chat/PlanningToggle.d.ts +7 -0
  19. package/dist/react/components/chat/ResourceIframe.d.ts +1 -1
  20. package/dist/react/components/chat/UserMessageBubble.d.ts +1 -1
  21. package/dist/react/components/chat/index.d.ts +1 -0
  22. package/dist/react/components/chat/index.js +7 -5
  23. package/dist/react/components/plan/index.js +4 -4
  24. package/dist/react/components/session/index.js +3 -3
  25. package/dist/react/components/workspace/index.js +61 -42
  26. package/dist/react/components/workspace/index.js.map +1 -1
  27. package/dist/react/hooks/use-model-preferences.d.ts +2 -0
  28. package/dist/react/index.d.ts +1 -1
  29. package/dist/react/index.js +9 -7
  30. package/dist/react/index.js.map +1 -1
  31. package/dist/react/lib/ui-meta.d.ts +1 -0
  32. package/dist/react/stores/ui-store.d.ts +5 -0
  33. package/dist/react/types/solution.d.ts +1 -0
  34. package/dist/style.css +1 -1
  35. package/package.json +1 -1
  36. package/dist/chunk-3XDPNPE3.js.map +0 -1
  37. package/dist/chunk-7OEW3P7R.js.map +0 -1
  38. package/dist/chunk-GAVSC2AW.js.map +0 -1
  39. package/dist/chunk-WOKDHXS7.js.map +0 -1
  40. /package/dist/{chunk-6G5LCDOS.js.map → chunk-EGGBOVVF.js.map} +0 -0
  41. /package/dist/{chunk-L4C2TY6S.js.map → chunk-F4Y7SUBC.js.map} +0 -0
  42. /package/dist/{chunk-MJPVAXJN.js.map → chunk-OICNN4K4.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  apiFetchResponse,
3
3
  getAuthedUrl
4
- } from "./chunk-WOKDHXS7.js";
4
+ } from "./chunk-IDVNG3YJ.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-MJPVAXJN.js.map
120
+ //# sourceMappingURL=chunk-OICNN4K4.js.map
@@ -22,7 +22,7 @@ import {
22
22
  UserPreferencesResource,
23
23
  createSocket,
24
24
  normalizeResource
25
- } from "../chunk-GAVSC2AW.js";
25
+ } from "../chunk-FK4CV6R2.js";
26
26
  import "../chunk-PZ5AY32C.js";
27
27
  export {
28
28
  ApiKeysResource,
@@ -498,40 +498,6 @@ export interface paths {
498
498
  patch?: never;
499
499
  trace?: never;
500
500
  };
501
- "/api/sessions/{session_id}/init-skill-test": {
502
- parameters: {
503
- query?: never;
504
- header?: never;
505
- path?: never;
506
- cookie?: never;
507
- };
508
- get?: never;
509
- put?: never;
510
- /** Init Skill Test */
511
- post: operations["init_skill_test_api_sessions__session_id__init_skill_test_post"];
512
- delete?: never;
513
- options?: never;
514
- head?: never;
515
- patch?: never;
516
- trace?: never;
517
- };
518
- "/api/sessions/{session_id}/init-skill-creator": {
519
- parameters: {
520
- query?: never;
521
- header?: never;
522
- path?: never;
523
- cookie?: never;
524
- };
525
- get?: never;
526
- put?: never;
527
- /** Init Skill Creator */
528
- post: operations["init_skill_creator_api_sessions__session_id__init_skill_creator_post"];
529
- delete?: never;
530
- options?: never;
531
- head?: never;
532
- patch?: never;
533
- trace?: never;
534
- };
535
501
  "/api/sessions/{session_id}/init-skill-from-registry": {
536
502
  parameters: {
537
503
  query?: never;
@@ -2682,7 +2648,24 @@ export interface paths {
2682
2648
  patch?: never;
2683
2649
  trace?: never;
2684
2650
  };
2685
- "/api/sessions/{session_id}/skills:search": {
2651
+ "/api/sessions/{session_id}/hub/skills:search": {
2652
+ parameters: {
2653
+ query?: never;
2654
+ header?: never;
2655
+ path?: never;
2656
+ cookie?: never;
2657
+ };
2658
+ get?: never;
2659
+ put?: never;
2660
+ /** Search Hub Skills */
2661
+ post: operations["search_hub_skills_api_sessions__session_id__hub_skills_search_post"];
2662
+ delete?: never;
2663
+ options?: never;
2664
+ head?: never;
2665
+ patch?: never;
2666
+ trace?: never;
2667
+ };
2668
+ "/api/sessions/{session_id}/hub/skills:install": {
2686
2669
  parameters: {
2687
2670
  query?: never;
2688
2671
  header?: never;
@@ -2691,15 +2674,15 @@ export interface paths {
2691
2674
  };
2692
2675
  get?: never;
2693
2676
  put?: never;
2694
- /** Search Session Skills */
2695
- post: operations["search_session_skills_api_sessions__session_id__skills_search_post"];
2677
+ /** Install Hub Skill */
2678
+ post: operations["install_hub_skill_api_sessions__session_id__hub_skills_install_post"];
2696
2679
  delete?: never;
2697
2680
  options?: never;
2698
2681
  head?: never;
2699
2682
  patch?: never;
2700
2683
  trace?: never;
2701
2684
  };
2702
- "/api/sessions/{session_id}/skills:use": {
2685
+ "/api/sessions/{session_id}/hub/skills:use": {
2703
2686
  parameters: {
2704
2687
  query?: never;
2705
2688
  header?: never;
@@ -2708,15 +2691,15 @@ export interface paths {
2708
2691
  };
2709
2692
  get?: never;
2710
2693
  put?: never;
2711
- /** Use Session Skill */
2712
- post: operations["use_session_skill_api_sessions__session_id__skills_use_post"];
2694
+ /** Use Hub Skill */
2695
+ post: operations["use_hub_skill_api_sessions__session_id__hub_skills_use_post"];
2713
2696
  delete?: never;
2714
2697
  options?: never;
2715
2698
  head?: never;
2716
2699
  patch?: never;
2717
2700
  trace?: never;
2718
2701
  };
2719
- "/api/sessions/{session_id}/skills:run-tool": {
2702
+ "/api/sessions/{session_id}/hub/skills:update": {
2720
2703
  parameters: {
2721
2704
  query?: never;
2722
2705
  header?: never;
@@ -2725,8 +2708,8 @@ export interface paths {
2725
2708
  };
2726
2709
  get?: never;
2727
2710
  put?: never;
2728
- /** Run Session Skill Tool */
2729
- post: operations["run_session_skill_tool_api_sessions__session_id__skills_run_tool_post"];
2711
+ /** Update Hub Skill */
2712
+ post: operations["update_hub_skill_api_sessions__session_id__hub_skills_update_post"];
2730
2713
  delete?: never;
2731
2714
  options?: never;
2732
2715
  head?: never;
@@ -5920,17 +5903,6 @@ export interface components {
5920
5903
  /** Content */
5921
5904
  content: string;
5922
5905
  };
5923
- /** SessionSkillRunToolRequest */
5924
- SessionSkillRunToolRequest: {
5925
- /** Skill */
5926
- skill: string;
5927
- /** Tool */
5928
- tool: string;
5929
- /** Args */
5930
- args?: {
5931
- [key: string]: unknown;
5932
- };
5933
- };
5934
5906
  /** SessionSkillSearchRequest */
5935
5907
  SessionSkillSearchRequest: {
5936
5908
  /** Q */
@@ -7464,84 +7436,6 @@ export interface operations {
7464
7436
  };
7465
7437
  };
7466
7438
  };
7467
- init_skill_test_api_sessions__session_id__init_skill_test_post: {
7468
- parameters: {
7469
- query?: never;
7470
- header?: never;
7471
- path: {
7472
- session_id: string;
7473
- };
7474
- cookie?: never;
7475
- };
7476
- requestBody: {
7477
- content: {
7478
- "application/json": {
7479
- [key: string]: unknown;
7480
- };
7481
- };
7482
- };
7483
- responses: {
7484
- /** @description Successful Response */
7485
- 200: {
7486
- headers: {
7487
- [name: string]: unknown;
7488
- };
7489
- content: {
7490
- "application/json": {
7491
- [key: string]: boolean;
7492
- };
7493
- };
7494
- };
7495
- /** @description Validation Error */
7496
- 422: {
7497
- headers: {
7498
- [name: string]: unknown;
7499
- };
7500
- content: {
7501
- "application/json": components["schemas"]["HTTPValidationError"];
7502
- };
7503
- };
7504
- };
7505
- };
7506
- init_skill_creator_api_sessions__session_id__init_skill_creator_post: {
7507
- parameters: {
7508
- query?: never;
7509
- header?: never;
7510
- path: {
7511
- session_id: string;
7512
- };
7513
- cookie?: never;
7514
- };
7515
- requestBody: {
7516
- content: {
7517
- "application/json": {
7518
- [key: string]: unknown;
7519
- };
7520
- };
7521
- };
7522
- responses: {
7523
- /** @description Successful Response */
7524
- 200: {
7525
- headers: {
7526
- [name: string]: unknown;
7527
- };
7528
- content: {
7529
- "application/json": {
7530
- [key: string]: boolean;
7531
- };
7532
- };
7533
- };
7534
- /** @description Validation Error */
7535
- 422: {
7536
- headers: {
7537
- [name: string]: unknown;
7538
- };
7539
- content: {
7540
- "application/json": components["schemas"]["HTTPValidationError"];
7541
- };
7542
- };
7543
- };
7544
- };
7545
7439
  init_skill_from_registry_api_sessions__session_id__init_skill_from_registry_post: {
7546
7440
  parameters: {
7547
7441
  query?: never;
@@ -11965,7 +11859,7 @@ export interface operations {
11965
11859
  };
11966
11860
  };
11967
11861
  };
11968
- search_session_skills_api_sessions__session_id__skills_search_post: {
11862
+ search_hub_skills_api_sessions__session_id__hub_skills_search_post: {
11969
11863
  parameters: {
11970
11864
  query?: never;
11971
11865
  header?: never;
@@ -12000,7 +11894,42 @@ export interface operations {
12000
11894
  };
12001
11895
  };
12002
11896
  };
12003
- use_session_skill_api_sessions__session_id__skills_use_post: {
11897
+ install_hub_skill_api_sessions__session_id__hub_skills_install_post: {
11898
+ parameters: {
11899
+ query?: never;
11900
+ header?: never;
11901
+ path: {
11902
+ session_id: string;
11903
+ };
11904
+ cookie?: never;
11905
+ };
11906
+ requestBody: {
11907
+ content: {
11908
+ "application/json": components["schemas"]["SessionSkillUseRequest"];
11909
+ };
11910
+ };
11911
+ responses: {
11912
+ /** @description Successful Response */
11913
+ 200: {
11914
+ headers: {
11915
+ [name: string]: unknown;
11916
+ };
11917
+ content: {
11918
+ "application/json": unknown;
11919
+ };
11920
+ };
11921
+ /** @description Validation Error */
11922
+ 422: {
11923
+ headers: {
11924
+ [name: string]: unknown;
11925
+ };
11926
+ content: {
11927
+ "application/json": components["schemas"]["HTTPValidationError"];
11928
+ };
11929
+ };
11930
+ };
11931
+ };
11932
+ use_hub_skill_api_sessions__session_id__hub_skills_use_post: {
12004
11933
  parameters: {
12005
11934
  query?: never;
12006
11935
  header?: never;
@@ -12035,7 +11964,7 @@ export interface operations {
12035
11964
  };
12036
11965
  };
12037
11966
  };
12038
- run_session_skill_tool_api_sessions__session_id__skills_run_tool_post: {
11967
+ update_hub_skill_api_sessions__session_id__hub_skills_update_post: {
12039
11968
  parameters: {
12040
11969
  query?: never;
12041
11970
  header?: never;
@@ -12046,7 +11975,7 @@ export interface operations {
12046
11975
  };
12047
11976
  requestBody: {
12048
11977
  content: {
12049
- "application/json": components["schemas"]["SessionSkillRunToolRequest"];
11978
+ "application/json": components["schemas"]["SessionSkillUseRequest"];
12050
11979
  };
12051
11980
  };
12052
11981
  responses: {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  listPublishedApps,
3
3
  unpublishApp
4
- } from "../../chunk-6G5LCDOS.js";
5
- import "../../chunk-WOKDHXS7.js";
4
+ } from "../../chunk-EGGBOVVF.js";
5
+ import "../../chunk-IDVNG3YJ.js";
6
6
  import "../../chunk-J3XVFPOV.js";
7
- import "../../chunk-GAVSC2AW.js";
7
+ import "../../chunk-FK4CV6R2.js";
8
8
  import "../../chunk-JCJFFJ42.js";
9
9
  import "../../chunk-PZ5AY32C.js";
10
10
  export {
@@ -41,9 +41,9 @@ import {
41
41
  updateSharing,
42
42
  uploadFiles,
43
43
  writeFile
44
- } from "../../chunk-WOKDHXS7.js";
44
+ } from "../../chunk-IDVNG3YJ.js";
45
45
  import "../../chunk-J3XVFPOV.js";
46
- import "../../chunk-GAVSC2AW.js";
46
+ import "../../chunk-FK4CV6R2.js";
47
47
  import "../../chunk-JCJFFJ42.js";
48
48
  import "../../chunk-PZ5AY32C.js";
49
49
  export {
@@ -0,0 +1,11 @@
1
+ import type { ToolCallInfo } from "../../schemas/message.js";
2
+ /** 从该轮工具调用中提取智能体写入的工作区文件(去重、按出现顺序)。 */
3
+ export declare function collectDeliveredFiles(toolCalls: ToolCallInfo[], sessionId: string): Array<{
4
+ relPath: string;
5
+ name: string;
6
+ }>;
7
+ /** 文件交付卡片组(需求 10):助手在本轮写入的工作区文件,以卡片形式内联展示。 */
8
+ export declare function FileDeliveryCards({ toolCalls, sessionId, }: {
9
+ toolCalls: ToolCallInfo[];
10
+ sessionId: string;
11
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +1,7 @@
1
1
  import type { ChatMessage } from "../../schemas/message.js";
2
2
  import type { AskUserAnswerData } from "./AskUserQuestionBlock.js";
3
3
  import type { ChatViewCustomization } from "./customization.js";
4
+ export declare function shouldAppendPendingAssistantTurn(sessionIsStreaming: boolean, lastMessage: ChatMessage | undefined): boolean;
4
5
  interface Props {
5
6
  sessionId: string;
6
7
  messages: ChatMessage[];
@@ -0,0 +1,7 @@
1
+ interface PlanningToggleProps {
2
+ enabled: boolean;
3
+ onChange: (enabled: boolean) => void;
4
+ disabled?: boolean;
5
+ }
6
+ export declare function PlanningToggle({ enabled, onChange, disabled }: PlanningToggleProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -1,4 +1,4 @@
1
- import type { UiMeta } from "../../lib/ui-meta.js";
1
+ import { type UiMeta } from "../../lib/ui-meta.js";
2
2
  export declare function ResourceIframe({ ui, sessionId }: {
3
3
  ui: UiMeta;
4
4
  sessionId: string;
@@ -11,7 +11,7 @@ interface UserMessageProps {
11
11
  message: UserChatMessage;
12
12
  className?: string;
13
13
  }
14
- export declare const USER_MESSAGE_MARKDOWN_CLASS = "prose prose-sm prose-invert max-w-none [&_li>p]:inline [&_li>p]:whitespace-pre-wrap [&_p]:mb-3 [&_p]:whitespace-pre-wrap [&_p:last-child]:mb-0";
14
+ export declare const USER_MESSAGE_MARKDOWN_CLASS = "prose prose-invert chat-prose max-w-none [&_li>p]:inline [&_li>p]:whitespace-pre-wrap [&_p]:whitespace-pre-wrap";
15
15
  export declare function UserMessageBubble({ message, className }: UserMessageProps): import("react/jsx-runtime").JSX.Element;
16
16
  export declare function ErrorMessageBlock({ message, className, }: {
17
17
  message: ErrorChatMessage;
@@ -2,6 +2,7 @@ export { ChatView, type ChatViewProps } from "./ChatView.js";
2
2
  export { AttachmentPreviewDialog } from "./AttachmentPreviewDialog.js";
3
3
  export { ChatInput, type ChatSendOptions, type ComposerAttachment, type EnsureSessionResult, type FileComposerAttachment, } from "./ChatInput.js";
4
4
  export { ThinkingToggle } from "./ThinkingToggle.js";
5
+ export { PlanningToggle } from "./PlanningToggle.js";
5
6
  export { FileSizeLimitDialog } from "./FileSizeLimitDialog.js";
6
7
  export { ImageLightbox } from "./ImageLightbox.js";
7
8
  export { CompactionCard } from "./CompactionCard.js";
@@ -8,6 +8,7 @@ import {
8
8
  FileSizeLimitDialog,
9
9
  ImageLightbox,
10
10
  MessageList,
11
+ PlanningToggle,
11
12
  SkillStatusBar,
12
13
  ThinkingToggle,
13
14
  ToolCallBlock,
@@ -17,16 +18,16 @@ import {
17
18
  isErrorMessage,
18
19
  isUserMessage,
19
20
  useWhatIfQuoteContext
20
- } from "../../../chunk-3XDPNPE3.js";
21
+ } from "../../../chunk-IGMLETZX.js";
21
22
  import "../../../chunk-H62LH2AG.js";
22
23
  import {
23
24
  AskUserQuestionBlock
24
- } from "../../../chunk-7OEW3P7R.js";
25
- import "../../../chunk-MJPVAXJN.js";
25
+ } from "../../../chunk-E7FQV4IX.js";
26
+ import "../../../chunk-OICNN4K4.js";
26
27
  import "../../../chunk-2UP7MG3J.js";
27
- import "../../../chunk-WOKDHXS7.js";
28
+ import "../../../chunk-IDVNG3YJ.js";
28
29
  import "../../../chunk-J3XVFPOV.js";
29
- import "../../../chunk-GAVSC2AW.js";
30
+ import "../../../chunk-FK4CV6R2.js";
30
31
  import "../../../chunk-7LEKQI47.js";
31
32
  import "../../../chunk-JCJFFJ42.js";
32
33
  import "../../../chunk-PZ5AY32C.js";
@@ -41,6 +42,7 @@ export {
41
42
  FileSizeLimitDialog,
42
43
  ImageLightbox,
43
44
  MessageList,
45
+ PlanningToggle,
44
46
  SkillStatusBar,
45
47
  ThinkingToggle,
46
48
  ToolCallBlock,
@@ -3,12 +3,12 @@ import {
3
3
  PlanSummaryCard,
4
4
  extractLatestPlanMessages,
5
5
  parsePlanMessages
6
- } from "../../../chunk-7OEW3P7R.js";
7
- import "../../../chunk-MJPVAXJN.js";
6
+ } from "../../../chunk-E7FQV4IX.js";
7
+ import "../../../chunk-OICNN4K4.js";
8
8
  import "../../../chunk-2UP7MG3J.js";
9
- import "../../../chunk-WOKDHXS7.js";
9
+ import "../../../chunk-IDVNG3YJ.js";
10
10
  import "../../../chunk-J3XVFPOV.js";
11
- import "../../../chunk-GAVSC2AW.js";
11
+ import "../../../chunk-FK4CV6R2.js";
12
12
  import {
13
13
  cn
14
14
  } from "../../../chunk-7LEKQI47.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  useSession
3
- } from "../../../chunk-L4C2TY6S.js";
3
+ } from "../../../chunk-F4Y7SUBC.js";
4
4
  import {
5
5
  checkoutSession,
6
6
  getSessionCheckpoints,
7
7
  useChatStore,
8
8
  useSessionStore
9
- } from "../../../chunk-WOKDHXS7.js";
9
+ } from "../../../chunk-IDVNG3YJ.js";
10
10
  import "../../../chunk-J3XVFPOV.js";
11
- import "../../../chunk-GAVSC2AW.js";
11
+ import "../../../chunk-FK4CV6R2.js";
12
12
  import {
13
13
  cn
14
14
  } from "../../../chunk-7LEKQI47.js";