@iblai/web-containers 2.9.0 → 2.11.0

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 (62) hide show
  1. package/dist/cjs/_virtual/index2.js +2 -2
  2. package/dist/cjs/_virtual/index3.js +2 -2
  3. package/dist/cjs/components/chat/ai-message-bubble.js +9 -6
  4. package/dist/cjs/components/chat/ai-message-bubble.js.map +1 -1
  5. package/dist/cjs/components/chat/chat-host-context.js.map +1 -1
  6. package/dist/cjs/components/chat/chat-utils.js +16 -1
  7. package/dist/cjs/components/chat/chat-utils.js.map +1 -1
  8. package/dist/cjs/components/chat/client-ui-tools/use-client-ui-tools.js +1 -1
  9. package/dist/cjs/components/chat/client-ui-tools/use-client-ui-tools.js.map +1 -1
  10. package/dist/cjs/components/chat/code-permission-card.js +5 -5
  11. package/dist/cjs/components/chat/index.js +21 -24
  12. package/dist/cjs/components/chat/index.js.map +1 -1
  13. package/dist/cjs/components/chat-input-form/cowork-control.js +41 -17
  14. package/dist/cjs/components/chat-input-form/cowork-control.js.map +1 -1
  15. package/dist/cjs/components/chat-input-form/inside-buttons.js +4 -1
  16. package/dist/cjs/components/chat-input-form/inside-buttons.js.map +1 -1
  17. package/dist/cjs/hooks/use-extension-client-tools.js +141 -26
  18. package/dist/cjs/hooks/use-extension-client-tools.js.map +1 -1
  19. package/dist/cjs/hooks/use-panel-cowork.js +16 -0
  20. package/dist/cjs/hooks/use-panel-cowork.js.map +1 -0
  21. package/dist/cjs/i18n/messages/en.json.js +2 -1
  22. package/dist/cjs/i18n/messages/en.json.js.map +1 -1
  23. package/dist/cjs/i18n/messages/es.json.js +2 -1
  24. package/dist/cjs/i18n/messages/es.json.js.map +1 -1
  25. package/dist/cjs/i18n/messages/fr.json.js +2 -1
  26. package/dist/cjs/i18n/messages/fr.json.js.map +1 -1
  27. package/dist/cjs/i18n/messages/zh.json.js +2 -1
  28. package/dist/cjs/i18n/messages/zh.json.js.map +1 -1
  29. package/dist/cjs/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
  30. package/dist/cjs/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
  31. package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  32. package/dist/cjs/web-containers/tsconfig.build.tsbuildinfo +1 -1
  33. package/dist/esm/components/chat/ai-message-bubble.js +9 -6
  34. package/dist/esm/components/chat/ai-message-bubble.js.map +1 -1
  35. package/dist/esm/components/chat/chat-host-context.js.map +1 -1
  36. package/dist/esm/components/chat/chat-utils.js +16 -2
  37. package/dist/esm/components/chat/chat-utils.js.map +1 -1
  38. package/dist/esm/components/chat/client-ui-tools/use-client-ui-tools.js +1 -1
  39. package/dist/esm/components/chat/client-ui-tools/use-client-ui-tools.js.map +1 -1
  40. package/dist/esm/components/chat/code-permission-card.js +5 -5
  41. package/dist/esm/components/chat/index.js +22 -25
  42. package/dist/esm/components/chat/index.js.map +1 -1
  43. package/dist/esm/components/chat-input-form/cowork-control.js +41 -17
  44. package/dist/esm/components/chat-input-form/cowork-control.js.map +1 -1
  45. package/dist/esm/components/chat-input-form/inside-buttons.js +4 -1
  46. package/dist/esm/components/chat-input-form/inside-buttons.js.map +1 -1
  47. package/dist/esm/hooks/use-extension-client-tools.js +142 -27
  48. package/dist/esm/hooks/use-extension-client-tools.js.map +1 -1
  49. package/dist/esm/hooks/use-panel-cowork.js +14 -0
  50. package/dist/esm/hooks/use-panel-cowork.js.map +1 -0
  51. package/dist/esm/i18n/messages/en.json.js +2 -1
  52. package/dist/esm/i18n/messages/en.json.js.map +1 -1
  53. package/dist/esm/i18n/messages/es.json.js +2 -1
  54. package/dist/esm/i18n/messages/es.json.js.map +1 -1
  55. package/dist/esm/i18n/messages/fr.json.js +2 -1
  56. package/dist/esm/i18n/messages/fr.json.js.map +1 -1
  57. package/dist/esm/i18n/messages/zh.json.js +2 -1
  58. package/dist/esm/i18n/messages/zh.json.js.map +1 -1
  59. package/dist/esm/web-containers/tsconfig.build.tsbuildinfo +1 -1
  60. package/dist/next/index.d.ts +9 -9
  61. package/dist/package.json +1 -1
  62. package/package.json +3 -3
@@ -4542,15 +4542,11 @@ type ChatSlots = {
4542
4542
  composerActionControls?: ReactNode;
4543
4543
  };
4544
4544
  /**
4545
- * Chrome-extension side-panel "Browse" bridge. When `inExtensionPanel` is true
4546
- * and Cowork is on, a submitted message is handed to `run` instead of the
4547
- * mentor WebSocket, and Stop reaches `stop` while `isRunning`.
4545
+ * Chrome-extension side-panel bridge. The panel's tools reach the agent as the
4546
+ * turn's client tools, so there is no run of its own for the chat to start.
4548
4547
  */
4549
4548
  type ChatBrowseBridge = {
4550
4549
  inExtensionPanel: boolean;
4551
- isRunning: boolean;
4552
- run: (goal: string) => void;
4553
- stop: () => void;
4554
4550
  /**
4555
4551
  * Recording a skill from what the person does on the page, offered in the
4556
4552
  * Cowork panel when the host supports it. Only the panel can watch a page,
@@ -4883,7 +4879,7 @@ interface PermissionRequest {
4883
4879
  tool_call?: AcpToolCall | null;
4884
4880
  /**
4885
4881
  * Answer this request directly instead of telling Rust. Set for prompts that
4886
- * did not come from opencode — the extension's Browse runs raise them over a
4882
+ * did not come from opencode — the extension's worker raises them over a
4887
4883
  * port, and there is no `opencode_permission_respond` to invoke.
4888
4884
  */
4889
4885
  respond?: (optionId: string | null) => void;
@@ -4891,8 +4887,8 @@ interface PermissionRequest {
4891
4887
  /** Permission requests currently awaiting an answer. Stable reference while unchanged. */
4892
4888
  /**
4893
4889
  * Raise a prompt that did not come from opencode. Same store, same card, same
4894
- * `generation_id` scoping — a second prompt UI for the Browse runs would be a
4895
- * second thing to keep in step with this one.
4890
+ * `generation_id` scoping — a second prompt UI for Cowork would be a second
4891
+ * thing to keep in step with this one.
4896
4892
  */
4897
4893
  declare function addPermissionRequest(request: PermissionRequest): void;
4898
4894
  /** Withdraw a prompt nobody can answer any more (the run ended or was stopped). */
@@ -5064,11 +5060,15 @@ declare function ClientUiPanels({ generationId, toolCalls, }: {
5064
5060
  declare function useClientUiTools(extension: {
5065
5061
  clientTools: ClientToolDefinition[];
5066
5062
  runClientTool: (call: ClientToolCall) => Promise<unknown>;
5063
+ cancel: () => void;
5067
5064
  },
5068
5065
  /** The agent's `enable_client_tools`, read by the host. */
5069
5066
  allowed: boolean): {
5070
5067
  clientTools: ClientToolDefinition[];
5071
5068
  runClientTool: (call: ClientToolCall) => Promise<unknown>;
5069
+ /** Abandon whatever is running on this device — a browser call in the
5070
+ * extension, or a form still waiting for the person who was asked. */
5071
+ cancel: () => void;
5072
5072
  };
5073
5073
 
5074
5074
  type PermissionMode = 'manual' | 'auto';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/web-containers",
3
- "version": "2.8.0",
3
+ "version": "2.10.0",
4
4
  "description": "ibl web containers",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/web-containers",
3
- "version": "2.9.0",
3
+ "version": "2.11.0",
4
4
  "description": "ibl web containers",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -184,9 +184,9 @@
184
184
  "react-remove-scroll-bar": "^2.3.8",
185
185
  "sonner": "^2.0.0",
186
186
  "mermaid": "^12",
187
- "@iblai/data-layer": "2.4.0",
187
+ "@iblai/web-utils": "3.2.0",
188
188
  "@iblai/agent-ai": "2.15.3",
189
- "@iblai/web-utils": "3.2.0"
189
+ "@iblai/data-layer": "2.4.0"
190
190
  },
191
191
  "peerDependenciesMeta": {
192
192
  "@livekit/components-react": {