@burtson-labs/bandit-engine 2.0.88 → 2.0.89

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/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  chat_default
3
- } from "./chunk-IL5IHWLZ.mjs";
3
+ } from "./chunk-PROLD2QV.mjs";
4
4
  import {
5
5
  chat_provider_default
6
6
  } from "./chunk-OSSZ7Z2O.mjs";
@@ -10,7 +10,7 @@ import {
10
10
  useGatewayHealth,
11
11
  useGatewayMemory,
12
12
  useGatewayModels
13
- } from "./chunk-D5FQRNUD.mjs";
13
+ } from "./chunk-GAOJ4PB2.mjs";
14
14
  import "./chunk-OB2W4OR4.mjs";
15
15
  import "./chunk-ZLXWNTFK.mjs";
16
16
  import "./chunk-L2EKYO4F.mjs";
@@ -29478,6 +29478,17 @@ var init_chat2 = __esm({
29478
29478
  (0, import_react59.useEffect)(() => {
29479
29479
  historyRef.current = history;
29480
29480
  }, [history]);
29481
+ (0, import_react59.useEffect)(() => {
29482
+ if (!hydrated) return;
29483
+ const params = new URLSearchParams(window.location.search);
29484
+ const title = params.get("title") || "";
29485
+ const text = params.get("text") || "";
29486
+ const url = params.get("url") || "";
29487
+ if (!title && !text && !url) return;
29488
+ const shared = [title, text, url].filter(Boolean).join("\n").trim();
29489
+ if (shared) setInputValue(shared);
29490
+ window.history.replaceState({}, "", window.location.pathname);
29491
+ }, [hydrated, setInputValue]);
29481
29492
  const {
29482
29493
  speak: ttsSpeak,
29483
29494
  stop: ttsStop,