@iblai/web-containers 2.9.0 → 2.10.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.
- package/dist/cjs/_virtual/index2.js +2 -2
- package/dist/cjs/_virtual/index3.js +2 -2
- package/dist/cjs/components/chat/ai-message-bubble.js +9 -6
- package/dist/cjs/components/chat/ai-message-bubble.js.map +1 -1
- package/dist/cjs/components/chat/chat-host-context.js.map +1 -1
- package/dist/cjs/components/chat/chat-utils.js +16 -1
- package/dist/cjs/components/chat/chat-utils.js.map +1 -1
- package/dist/cjs/components/chat/client-ui-tools/use-client-ui-tools.js +1 -1
- package/dist/cjs/components/chat/client-ui-tools/use-client-ui-tools.js.map +1 -1
- package/dist/cjs/components/chat/code-permission-card.js +5 -5
- package/dist/cjs/components/chat/index.js +21 -24
- package/dist/cjs/components/chat/index.js.map +1 -1
- package/dist/cjs/components/chat-input-form/cowork-control.js +41 -17
- package/dist/cjs/components/chat-input-form/cowork-control.js.map +1 -1
- package/dist/cjs/components/chat-input-form/inside-buttons.js +4 -1
- package/dist/cjs/components/chat-input-form/inside-buttons.js.map +1 -1
- package/dist/cjs/hooks/use-extension-client-tools.js +136 -26
- package/dist/cjs/hooks/use-extension-client-tools.js.map +1 -1
- package/dist/cjs/hooks/use-panel-cowork.js +16 -0
- package/dist/cjs/hooks/use-panel-cowork.js.map +1 -0
- package/dist/cjs/i18n/messages/en.json.js +2 -1
- package/dist/cjs/i18n/messages/en.json.js.map +1 -1
- package/dist/cjs/i18n/messages/es.json.js +2 -1
- package/dist/cjs/i18n/messages/es.json.js.map +1 -1
- package/dist/cjs/i18n/messages/fr.json.js +2 -1
- package/dist/cjs/i18n/messages/fr.json.js.map +1 -1
- package/dist/cjs/i18n/messages/zh.json.js +2 -1
- package/dist/cjs/i18n/messages/zh.json.js.map +1 -1
- package/dist/cjs/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/cjs/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/_virtual/index2.js +2 -2
- package/dist/esm/_virtual/index3.js +2 -2
- package/dist/esm/components/chat/ai-message-bubble.js +9 -6
- package/dist/esm/components/chat/ai-message-bubble.js.map +1 -1
- package/dist/esm/components/chat/chat-host-context.js.map +1 -1
- package/dist/esm/components/chat/chat-utils.js +16 -2
- package/dist/esm/components/chat/chat-utils.js.map +1 -1
- package/dist/esm/components/chat/client-ui-tools/use-client-ui-tools.js +1 -1
- package/dist/esm/components/chat/client-ui-tools/use-client-ui-tools.js.map +1 -1
- package/dist/esm/components/chat/code-permission-card.js +5 -5
- package/dist/esm/components/chat/index.js +22 -25
- package/dist/esm/components/chat/index.js.map +1 -1
- package/dist/esm/components/chat-input-form/cowork-control.js +41 -17
- package/dist/esm/components/chat-input-form/cowork-control.js.map +1 -1
- package/dist/esm/components/chat-input-form/inside-buttons.js +4 -1
- package/dist/esm/components/chat-input-form/inside-buttons.js.map +1 -1
- package/dist/esm/hooks/use-extension-client-tools.js +137 -27
- package/dist/esm/hooks/use-extension-client-tools.js.map +1 -1
- package/dist/esm/hooks/use-panel-cowork.js +14 -0
- package/dist/esm/hooks/use-panel-cowork.js.map +1 -0
- package/dist/esm/i18n/messages/en.json.js +2 -1
- package/dist/esm/i18n/messages/en.json.js.map +1 -1
- package/dist/esm/i18n/messages/es.json.js +2 -1
- package/dist/esm/i18n/messages/es.json.js.map +1 -1
- package/dist/esm/i18n/messages/fr.json.js +2 -1
- package/dist/esm/i18n/messages/fr.json.js.map +1 -1
- package/dist/esm/i18n/messages/zh.json.js +2 -1
- package/dist/esm/i18n/messages/zh.json.js.map +1 -1
- package/dist/esm/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
- package/dist/esm/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
- package/dist/esm/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/esm/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/next/index.d.ts +9 -9
- package/dist/package.json +1 -1
- package/package.json +2 -2
package/dist/next/index.d.ts
CHANGED
|
@@ -4542,15 +4542,11 @@ type ChatSlots = {
|
|
|
4542
4542
|
composerActionControls?: ReactNode;
|
|
4543
4543
|
};
|
|
4544
4544
|
/**
|
|
4545
|
-
* Chrome-extension side-panel
|
|
4546
|
-
*
|
|
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
|
|
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
|
|
4895
|
-
*
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iblai/web-containers",
|
|
3
|
-
"version": "2.
|
|
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",
|
|
@@ -184,8 +184,8 @@
|
|
|
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",
|
|
188
187
|
"@iblai/agent-ai": "2.15.3",
|
|
188
|
+
"@iblai/data-layer": "2.4.0",
|
|
189
189
|
"@iblai/web-utils": "3.2.0"
|
|
190
190
|
},
|
|
191
191
|
"peerDependenciesMeta": {
|