@blade-hq/agent-kit 1.0.29 → 1.0.30

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 (35) hide show
  1. package/dist/{chunk-N2OE5MVV.js → chunk-3XDPNPE3.js} +5 -5
  2. package/dist/{chunk-HCQDDDOX.js → chunk-6G5LCDOS.js} +2 -2
  3. package/dist/{chunk-YXHPJGXR.js → chunk-7OEW3P7R.js} +120 -27
  4. package/dist/chunk-7OEW3P7R.js.map +1 -0
  5. package/dist/{chunk-YJ6BX3FU.js → chunk-GAVSC2AW.js} +4 -2
  6. package/dist/chunk-GAVSC2AW.js.map +1 -0
  7. package/dist/{chunk-TVWC3PED.js → chunk-L4C2TY6S.js} +2 -2
  8. package/dist/{chunk-PYYDXV2A.js → chunk-MJPVAXJN.js} +2 -2
  9. package/dist/{chunk-UWNQ4PXK.js → chunk-WOKDHXS7.js} +29 -2
  10. package/dist/chunk-WOKDHXS7.js.map +1 -0
  11. package/dist/client/index.js +1 -1
  12. package/dist/client/resources/sessions.d.ts +2 -0
  13. package/dist/client/types/rest.d.ts +639 -92
  14. package/dist/react/api/model-config.d.ts +8 -11
  15. package/dist/react/api/published-apps.js +3 -3
  16. package/dist/react/api/sessions.js +2 -2
  17. package/dist/react/components/chat/index.js +5 -5
  18. package/dist/react/components/markdown/ExternalLinkDialog.d.ts +3 -1
  19. package/dist/react/components/plan/index.js +4 -4
  20. package/dist/react/components/session/index.js +3 -3
  21. package/dist/react/components/workspace/index.js +3 -3
  22. package/dist/react/index.d.ts +1 -1
  23. package/dist/react/index.js +18 -8
  24. package/dist/react/index.js.map +1 -1
  25. package/dist/react/schemas/session.d.ts +4 -0
  26. package/dist/react/sockets/event-bridge.d.ts +6 -0
  27. package/dist/react/stores/ui-store.d.ts +1 -1
  28. package/package.json +1 -1
  29. package/dist/chunk-UWNQ4PXK.js.map +0 -1
  30. package/dist/chunk-YJ6BX3FU.js.map +0 -1
  31. package/dist/chunk-YXHPJGXR.js.map +0 -1
  32. /package/dist/{chunk-N2OE5MVV.js.map → chunk-3XDPNPE3.js.map} +0 -0
  33. /package/dist/{chunk-HCQDDDOX.js.map → chunk-6G5LCDOS.js.map} +0 -0
  34. /package/dist/{chunk-TVWC3PED.js.map → chunk-L4C2TY6S.js.map} +0 -0
  35. /package/dist/{chunk-PYYDXV2A.js.map → chunk-MJPVAXJN.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  BladeClient,
6
6
  ClientProjectionBuilder
7
- } from "./chunk-YJ6BX3FU.js";
7
+ } from "./chunk-GAVSC2AW.js";
8
8
  import {
9
9
  createClientActions,
10
10
  useCardStateStore
@@ -2355,6 +2355,7 @@ var AgentSocket = class {
2355
2355
  pendingReplayMessages = /* @__PURE__ */ new Map();
2356
2356
  pendingReplayModes = /* @__PURE__ */ new Map();
2357
2357
  oomNotifiedKeys = /* @__PURE__ */ new Set();
2358
+ browserRevealedToolCalls = /* @__PURE__ */ new Set();
2358
2359
  pendingTurnPatches = /* @__PURE__ */ new Map();
2359
2360
  joinedSessions = /* @__PURE__ */ new Set();
2360
2361
  requestedJoins = /* @__PURE__ */ new Set();
@@ -2878,6 +2879,32 @@ var AgentSocket = class {
2878
2879
  this._notifySandboxOom(sessionId, toolCall.id);
2879
2880
  }
2880
2881
  }
2882
+ this._maybeRevealBrowserPanel(toolCall);
2883
+ }
2884
+ }
2885
+ /** agent 一旦在沙盒里跑 `chrome ...`(操作内置浏览器)就自动把右侧面板切到
2886
+ * 「浏览器」标签,让用户围观。与文件预览共用 rightTabActivationId → 谁最后发生
2887
+ * 谁占据面板,不再是文件单向碾压。用户手动切走别的标签会关掉 rightPanelAutoJump
2888
+ * (见 RightPanel.setTab),此后浏览器活动只标未读、不再抢占。 */
2889
+ _maybeRevealBrowserPanel(toolCall) {
2890
+ if (this.browserRevealedToolCalls.has(toolCall.id)) return;
2891
+ let command = "";
2892
+ try {
2893
+ const parsed = JSON.parse(toolCall.arguments ?? "");
2894
+ if (parsed && typeof parsed === "object" && typeof parsed.command === "string") {
2895
+ command = parsed.command;
2896
+ }
2897
+ } catch {
2898
+ return;
2899
+ }
2900
+ if (!/(?:^|[\n;&|(]\s*)chrome\s/.test(command)) return;
2901
+ this.browserRevealedToolCalls.add(toolCall.id);
2902
+ const uiStore = useUiStore.getState();
2903
+ if (uiStore.rightPanelAutoJump) {
2904
+ uiStore.clearRightPanelTabUnread("browser");
2905
+ uiStore.setActiveRightTab("browser");
2906
+ } else {
2907
+ uiStore.markRightPanelTabUnread("browser");
2881
2908
  }
2882
2909
  }
2883
2910
  _notifySandboxOom(sessionId, key) {
@@ -3532,4 +3559,4 @@ export {
3532
3559
  bootstrapBladeClient,
3533
3560
  getBootstrappedClient
3534
3561
  };
3535
- //# sourceMappingURL=chunk-UWNQ4PXK.js.map
3562
+ //# sourceMappingURL=chunk-WOKDHXS7.js.map