@blade-hq/agent-kit 1.0.29 → 1.0.31

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 (44) hide show
  1. package/dist/{chunk-TVWC3PED.js → chunk-3EVO45IN.js} +2 -2
  2. package/dist/{chunk-UWNQ4PXK.js → chunk-3PX2W7II.js} +51 -12
  3. package/dist/chunk-3PX2W7II.js.map +1 -0
  4. package/dist/{chunk-YJ6BX3FU.js → chunk-DSC6KQOI.js} +45 -2
  5. package/dist/chunk-DSC6KQOI.js.map +1 -0
  6. package/dist/{chunk-PYYDXV2A.js → chunk-O32JOWYM.js} +2 -2
  7. package/dist/{chunk-N2OE5MVV.js → chunk-RAWQ7LWR.js} +973 -712
  8. package/dist/chunk-RAWQ7LWR.js.map +1 -0
  9. package/dist/{chunk-YXHPJGXR.js → chunk-XUWAM6MF.js} +173 -59
  10. package/dist/chunk-XUWAM6MF.js.map +1 -0
  11. package/dist/{chunk-HCQDDDOX.js → chunk-ZPZMN7KQ.js} +2 -2
  12. package/dist/client/index.js +1 -1
  13. package/dist/client/resources/sessions.d.ts +2 -0
  14. package/dist/client/types/rest.d.ts +639 -92
  15. package/dist/react/api/model-config.d.ts +8 -11
  16. package/dist/react/api/published-apps.js +3 -3
  17. package/dist/react/api/sessions.js +2 -2
  18. package/dist/react/components/chat/FileDeliveryCards.d.ts +11 -0
  19. package/dist/react/components/chat/PlanningToggle.d.ts +7 -0
  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/markdown/ExternalLinkDialog.d.ts +3 -1
  24. package/dist/react/components/plan/index.js +4 -4
  25. package/dist/react/components/session/index.js +3 -3
  26. package/dist/react/components/workspace/index.js +61 -42
  27. package/dist/react/components/workspace/index.js.map +1 -1
  28. package/dist/react/hooks/use-model-preferences.d.ts +2 -0
  29. package/dist/react/index.d.ts +2 -2
  30. package/dist/react/index.js +20 -8
  31. package/dist/react/index.js.map +1 -1
  32. package/dist/react/schemas/session.d.ts +4 -0
  33. package/dist/react/sockets/event-bridge.d.ts +6 -0
  34. package/dist/react/stores/ui-store.d.ts +6 -1
  35. package/dist/react/types/solution.d.ts +1 -0
  36. package/dist/style.css +1 -1
  37. package/package.json +1 -1
  38. package/dist/chunk-N2OE5MVV.js.map +0 -1
  39. package/dist/chunk-UWNQ4PXK.js.map +0 -1
  40. package/dist/chunk-YJ6BX3FU.js.map +0 -1
  41. package/dist/chunk-YXHPJGXR.js.map +0 -1
  42. /package/dist/{chunk-TVWC3PED.js.map → chunk-3EVO45IN.js.map} +0 -0
  43. /package/dist/{chunk-PYYDXV2A.js.map → chunk-O32JOWYM.js.map} +0 -0
  44. /package/dist/{chunk-HCQDDDOX.js.map → chunk-ZPZMN7KQ.js.map} +0 -0
@@ -54,6 +54,8 @@ export declare const SessionInfo: import("arktype/internal/variants/object.ts").
54
54
  is_example?: boolean | undefined;
55
55
  ports?: unknown;
56
56
  disable_tools?: string[] | undefined;
57
+ runtime_type?: string | null | undefined;
58
+ daemon_id?: string | null | undefined;
57
59
  match?: unknown;
58
60
  }, {}>;
59
61
  export type SessionInfo = Omit<typeof SessionInfo.infer, "template_id" | "solution" | "ports" | "match"> & {
@@ -76,6 +78,8 @@ export type SessionInfo = Omit<typeof SessionInfo.infer, "template_id" | "soluti
76
78
  is_example?: boolean;
77
79
  ports?: SessionPortMapping[];
78
80
  disable_tools?: string[];
81
+ runtime_type?: "sandbox" | "daemon" | string | null;
82
+ daemon_id?: string | null;
79
83
  /** 仅在带 q 搜索的列表响应中出现;普通列表里此字段缺省。 */
80
84
  match?: SessionSearchMatch | null;
81
85
  };
@@ -31,6 +31,7 @@ export declare class AgentSocket {
31
31
  private readonly pendingReplayMessages;
32
32
  private readonly pendingReplayModes;
33
33
  private readonly oomNotifiedKeys;
34
+ private readonly browserRevealedToolCalls;
34
35
  private readonly pendingTurnPatches;
35
36
  private readonly joinedSessions;
36
37
  private readonly requestedJoins;
@@ -51,6 +52,11 @@ export declare class AgentSocket {
51
52
  private _bindStoreHandlers;
52
53
  private _bindConnectionHandlers;
53
54
  private _applyProjectionSideEffects;
55
+ /** agent 一旦在沙盒里跑 `chrome ...`(操作内置浏览器)就自动把右侧面板切到
56
+ * 「浏览器」标签,让用户围观。与文件预览共用 rightTabActivationId → 谁最后发生
57
+ * 谁占据面板,不再是文件单向碾压。用户手动切走别的标签会关掉 rightPanelAutoJump
58
+ * (见 RightPanel.setTab),此后浏览器活动只标未读、不再抢占。 */
59
+ private _maybeRevealBrowserPanel;
54
60
  private _notifySandboxOom;
55
61
  private _syncSessionTurnsFromHistory;
56
62
  private _applySystemNotification;
@@ -16,7 +16,9 @@ export interface PreviewTarget {
16
16
  /** Changes when an artifact with the same key is updated in place. */
17
17
  revision?: number;
18
18
  }
19
- export type ActiveRightTab = "situation" | "preview" | "skill-test" | "vibe-service" | "vibe-preview" | "vibe-access" | "solution-editor" | "vibe-board";
19
+ export type ActiveRightTab = "situation" | "preview" | "browser" | "skill-test" | "vibe-service" | "vibe-preview" | "vibe-access" | "solution-editor" | "vibe-board";
20
+ /** 与 CollabEditorMode 的 preview/source 对齐(wysiwyg 仍由编辑器内部管理)。 */
21
+ export type FilePreviewMode = "preview" | "source";
20
22
  interface UpsertArtifactOptions {
21
23
  reveal?: boolean;
22
24
  activate?: boolean;
@@ -35,7 +37,10 @@ interface UiState extends ClientAwareState {
35
37
  /** Index of the active tab (-1 if none) */
36
38
  activeArtifactIndex: number;
37
39
  previewUnreadArtifactKeys: string[];
40
+ /** 文件区顶栏的「预览 / 代码」切换;由顶栏驱动,CollabEditor 受控消费。 */
41
+ filePreviewMode: FilePreviewMode;
38
42
  theme: ThemeValue;
43
+ setFilePreviewMode: (mode: FilePreviewMode) => void;
39
44
  setLeftPanelSize: (size: number) => void;
40
45
  setRightPanelSize: (size: number) => void;
41
46
  setLeftPanelCollapsed: (collapsed: boolean) => void;
@@ -18,6 +18,7 @@ export interface Solution {
18
18
  layout_type: LayoutType | string;
19
19
  initial_mode?: "planning" | "executing" | string | null;
20
20
  initial_message?: string | null;
21
+ discoverable?: boolean;
21
22
  preview?: {
22
23
  url: string;
23
24
  title?: string | null;