@iblai/web-containers 1.77.0 → 1.78.1
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/components/chat/chat-constants.js +4 -0
- package/dist/cjs/components/chat/chat-constants.js.map +1 -1
- package/dist/cjs/components/chat/chat-utils.js +93 -0
- package/dist/cjs/components/chat/chat-utils.js.map +1 -1
- package/dist/cjs/components/chat/code-activity.js +8 -6
- package/dist/cjs/components/chat/code-activity.js.map +1 -1
- package/dist/cjs/components/chat/code-error-text.js +12 -5
- package/dist/cjs/components/chat/code-error-text.js.map +1 -1
- package/dist/cjs/components/chat/index.js +1 -3
- package/dist/cjs/components/chat/index.js.map +1 -1
- package/dist/cjs/components/chat/working-indicator.js +33 -2
- package/dist/cjs/components/chat/working-indicator.js.map +1 -1
- package/dist/cjs/components/chat-input-form/cowork-control.js +305 -41
- package/dist/cjs/components/chat-input-form/cowork-control.js.map +1 -1
- package/dist/cjs/components/chat-input-form/inside-buttons.js +1 -1
- package/dist/cjs/components/chat-input-form/inside-buttons.js.map +1 -1
- package/dist/cjs/components/welcome-chat/welcome-message.js +137 -8
- package/dist/cjs/components/welcome-chat/welcome-message.js.map +1 -1
- package/dist/cjs/components/welcome-chat-new.js +2 -2
- package/dist/cjs/components/welcome-chat-new.js.map +1 -1
- package/dist/cjs/components/welcome-chat.js +5 -1
- package/dist/cjs/components/welcome-chat.js.map +1 -1
- package/dist/cjs/hooks/use-cua-driver.js +104 -4
- package/dist/cjs/hooks/use-cua-driver.js.map +1 -1
- package/dist/cjs/hooks/use-model-download.js +9 -9
- package/dist/cjs/hooks/use-model-download.js.map +1 -1
- package/dist/cjs/i18n/messages/en.json.js +35 -8
- package/dist/cjs/i18n/messages/en.json.js.map +1 -1
- package/dist/cjs/i18n/messages/es.json.js +34 -7
- package/dist/cjs/i18n/messages/es.json.js.map +1 -1
- package/dist/cjs/i18n/messages/fr.json.js +34 -7
- package/dist/cjs/i18n/messages/fr.json.js.map +1 -1
- package/dist/cjs/i18n/messages/zh.json.js +35 -8
- package/dist/cjs/i18n/messages/zh.json.js.map +1 -1
- package/dist/cjs/types/tauri.js +8 -0
- package/dist/cjs/types/tauri.js.map +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/chat-constants.js +4 -1
- package/dist/esm/components/chat/chat-constants.js.map +1 -1
- package/dist/esm/components/chat/chat-utils.js +87 -1
- package/dist/esm/components/chat/chat-utils.js.map +1 -1
- package/dist/esm/components/chat/code-activity.js +8 -6
- package/dist/esm/components/chat/code-activity.js.map +1 -1
- package/dist/esm/components/chat/code-error-text.js +12 -5
- package/dist/esm/components/chat/code-error-text.js.map +1 -1
- package/dist/esm/components/chat/index.js +1 -3
- package/dist/esm/components/chat/index.js.map +1 -1
- package/dist/esm/components/chat/working-indicator.js +33 -2
- package/dist/esm/components/chat/working-indicator.js.map +1 -1
- package/dist/esm/components/chat-input-form/cowork-control.js +308 -44
- package/dist/esm/components/chat-input-form/cowork-control.js.map +1 -1
- package/dist/esm/components/chat-input-form/inside-buttons.js +2 -2
- package/dist/esm/components/chat-input-form/inside-buttons.js.map +1 -1
- package/dist/esm/components/welcome-chat/welcome-message.js +138 -10
- package/dist/esm/components/welcome-chat/welcome-message.js.map +1 -1
- package/dist/esm/components/welcome-chat-new.js +2 -2
- package/dist/esm/components/welcome-chat-new.js.map +1 -1
- package/dist/esm/components/welcome-chat.js +5 -1
- package/dist/esm/components/welcome-chat.js.map +1 -1
- package/dist/esm/hooks/use-cua-driver.js +104 -4
- package/dist/esm/hooks/use-cua-driver.js.map +1 -1
- package/dist/esm/hooks/use-model-download.js +9 -9
- package/dist/esm/hooks/use-model-download.js.map +1 -1
- package/dist/esm/i18n/messages/en.json.js +35 -8
- package/dist/esm/i18n/messages/en.json.js.map +1 -1
- package/dist/esm/i18n/messages/es.json.js +34 -7
- package/dist/esm/i18n/messages/es.json.js.map +1 -1
- package/dist/esm/i18n/messages/fr.json.js +34 -7
- package/dist/esm/i18n/messages/fr.json.js.map +1 -1
- package/dist/esm/i18n/messages/zh.json.js +35 -8
- 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/types/tauri.js +8 -0
- package/dist/esm/types/tauri.js.map +1 -1
- package/dist/esm/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/index.d.ts +28 -3
- package/dist/package.json +2 -2
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -469,7 +469,23 @@ declare const CUA_DRIVER_TAURI_COMMANDS: {
|
|
|
469
469
|
readonly SUPPORT: "cua_driver_support";
|
|
470
470
|
/** Stop the driver's MCP process. */
|
|
471
471
|
readonly STOP: "cua_driver_stop";
|
|
472
|
+
/** Open the macOS Privacy & Security pane a Cowork grant lives in. */
|
|
473
|
+
readonly OPEN_PRIVACY_SETTINGS: "open_privacy_settings";
|
|
474
|
+
/** Relaunch the app, so a new Screen Recording grant takes effect. */
|
|
475
|
+
readonly RELAUNCH_APP: "relaunch_app";
|
|
476
|
+
/** Ask macOS for one Cowork grant; on a repeat ask also open its pane. */
|
|
477
|
+
readonly REQUEST_PERMISSION: "request_cowork_permission";
|
|
478
|
+
/** Bring the app window back in front of System Settings. */
|
|
479
|
+
readonly BRING_TO_FRONT: "bring_app_to_front";
|
|
472
480
|
};
|
|
481
|
+
/** The two macOS grants Cowork needs, named as the host commands take them. */
|
|
482
|
+
type CoworkPermissionKind = 'accessibility' | 'screen_recording';
|
|
483
|
+
/**
|
|
484
|
+
* What asking for one grant came to. `unsupported`: a desktop app released
|
|
485
|
+
* before these commands could not open System Settings either, so the user has
|
|
486
|
+
* to be told where to go.
|
|
487
|
+
*/
|
|
488
|
+
type CoworkPermissionOutcome = 'granted' | 'not_granted' | 'unsupported';
|
|
473
489
|
/**
|
|
474
490
|
* Why Cowork can't run here. The UI must map these to translated strings —
|
|
475
491
|
* never render the raw code. Mirrors `cua_driver_mcp::reason` in the host.
|
|
@@ -481,6 +497,8 @@ declare const CUA_DRIVER_UNSUPPORTED_REASONS: {
|
|
|
481
497
|
/** GNOME/Mutter needs the WinRects helper before input can be targeted. */
|
|
482
498
|
readonly GNOME_HELPER_MISSING: "gnome_helper_missing";
|
|
483
499
|
readonly UNKNOWN_SESSION: "unknown_session";
|
|
500
|
+
/** The Mac App Store build: its App Sandbox blocks the grants Cowork needs. */
|
|
501
|
+
readonly SANDBOXED: "sandboxed";
|
|
484
502
|
};
|
|
485
503
|
type CuaDriverUnsupportedReason = (typeof CUA_DRIVER_UNSUPPORTED_REASONS)[keyof typeof CUA_DRIVER_UNSUPPORTED_REASONS];
|
|
486
504
|
/**
|
|
@@ -697,9 +715,8 @@ declare function useSelectedLocalModel(): SelectedLocalModel;
|
|
|
697
715
|
* **Consent is the host application's job, not this hook's.** Enabling Cowork
|
|
698
716
|
* hands an LLM synthetic input, screen capture, and — through the driver's
|
|
699
717
|
* `--grant existing-profile` — the user's logged-in browser sessions. The driver
|
|
700
|
-
* renders no consent UI of its own
|
|
701
|
-
*
|
|
702
|
-
* `requestDriverPermissions()`.
|
|
718
|
+
* renders no consent UI of its own. A host must explain that and get consent
|
|
719
|
+
* before calling `requestPermission()` or `requestDriverPermissions()`.
|
|
703
720
|
*/
|
|
704
721
|
declare function useCuaDriver(): {
|
|
705
722
|
isAvailable: boolean;
|
|
@@ -719,6 +736,14 @@ declare function useCuaDriver(): {
|
|
|
719
736
|
accessibility: boolean | null;
|
|
720
737
|
screenRecording: boolean | null;
|
|
721
738
|
}>;
|
|
739
|
+
refreshPermissions: () => Promise<{
|
|
740
|
+
accessibility: boolean | null;
|
|
741
|
+
screenRecording: boolean | null;
|
|
742
|
+
}>;
|
|
743
|
+
requestPermission: (kind: CoworkPermissionKind, openSettings: boolean) => Promise<CoworkPermissionOutcome>;
|
|
744
|
+
bringToFront: () => Promise<void>;
|
|
745
|
+
openPrivacySettings: (pane: "accessibility" | "screen_recording") => Promise<boolean>;
|
|
746
|
+
relaunch: () => Promise<boolean>;
|
|
722
747
|
};
|
|
723
748
|
|
|
724
749
|
/** Rendered offsets from the viewport's right/bottom edges. */
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iblai/web-containers",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.78.0",
|
|
4
4
|
"description": "ibl web containers",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"remark-parse": "11.0.0",
|
|
95
95
|
"remark-rehype": "11.1.2",
|
|
96
96
|
"rollup": "4.40.0",
|
|
97
|
+
"rollup-plugin-copy": "3.5.0",
|
|
97
98
|
"rollup-plugin-dts": "6.4.0",
|
|
98
99
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
99
100
|
"rollup-plugin-postcss": "4.0.2",
|
|
@@ -170,7 +171,6 @@
|
|
|
170
171
|
"remark-breaks": "4.0.0",
|
|
171
172
|
"remark-html": "16.0.1",
|
|
172
173
|
"remark-stringify": "11.0.0",
|
|
173
|
-
"rollup-plugin-copy": "3.5.0",
|
|
174
174
|
"streamdown": "2.6.0",
|
|
175
175
|
"summernote": "0.9.1",
|
|
176
176
|
"tailwind-merge": "3.2.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iblai/web-containers",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.78.1",
|
|
4
4
|
"description": "ibl web containers",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
"remark-parse": "11.0.0",
|
|
80
80
|
"remark-rehype": "11.1.2",
|
|
81
81
|
"rollup": "4.40.0",
|
|
82
|
+
"rollup-plugin-copy": "3.5.0",
|
|
82
83
|
"rollup-plugin-dts": "6.4.0",
|
|
83
84
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
84
85
|
"rollup-plugin-postcss": "4.0.2",
|
|
@@ -156,7 +157,6 @@
|
|
|
156
157
|
"remark-breaks": "4.0.0",
|
|
157
158
|
"remark-html": "16.0.1",
|
|
158
159
|
"remark-stringify": "11.0.0",
|
|
159
|
-
"rollup-plugin-copy": "3.5.0",
|
|
160
160
|
"streamdown": "2.6.0",
|
|
161
161
|
"summernote": "0.9.1",
|
|
162
162
|
"tailwind-merge": "3.2.0",
|
|
@@ -180,9 +180,9 @@
|
|
|
180
180
|
"react-remove-scroll": "^2.7.2",
|
|
181
181
|
"react-remove-scroll-bar": "^2.3.8",
|
|
182
182
|
"sonner": "^2.0.0",
|
|
183
|
-
"@iblai/data-layer": "1.
|
|
184
|
-
"@iblai/web-utils": "2.
|
|
185
|
-
"@iblai/agent-ai": "2.15.
|
|
183
|
+
"@iblai/data-layer": "1.49.0",
|
|
184
|
+
"@iblai/web-utils": "2.27.1",
|
|
185
|
+
"@iblai/agent-ai": "2.15.1"
|
|
186
186
|
},
|
|
187
187
|
"peerDependenciesMeta": {
|
|
188
188
|
"@livekit/components-react": {
|