@nexface/chat 0.1.20-alpha.2 → 0.1.20-alpha.3

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.
@@ -47544,7 +47544,6 @@ function Chat({
47544
47544
  }
47545
47545
  ),
47546
47546
  footer: /* @__PURE__ */ jsxs32(Fragment18, { children: [
47547
- chat.storageWarning ? /* @__PURE__ */ jsx100("div", { role: "alert", className: cn("text-muted-foreground text-xs"), children: chat.storageWarning }) : null,
47548
47547
  notice ? /* @__PURE__ */ jsxs32("div", { role: "status", className: cn("text-muted-foreground text-xs"), children: [
47549
47548
  notice,
47550
47549
  /* @__PURE__ */ jsx100("button", { onClick: () => setNotice(""), children: "\xD7" })
package/dist/react.d.ts CHANGED
@@ -26,7 +26,6 @@ interface UseChatResult {
26
26
  readonly activeSessionId: string;
27
27
  readonly messages: readonly UIMessage[];
28
28
  readonly status: ChatClientStatus | "cancelling" | "switching-model";
29
- readonly storageWarning?: string;
30
29
  readonly error?: ChatError;
31
30
  readonly model: AgentModelInfo;
32
31
  readonly interrupt?: ToolApprovalInterruptDescriptor;
package/dist/react.js CHANGED
@@ -150,7 +150,7 @@ export function NexfaceProvider(props) {
150
150
  changed();
151
151
  }, []);
152
152
  const persist = () => {
153
- if (store.warning)
153
+ if (store.storageConflict)
154
154
  return;
155
155
  const stored = {
156
156
  activeSessionId: store.activeId,
@@ -162,9 +162,7 @@ export function NexfaceProvider(props) {
162
162
  })),
163
163
  };
164
164
  if (writeChatStorage(chatStorageKey, stored, store.version) === "conflict") {
165
- store.warning =
166
- "Chat history changed in another tab or window. Saving is paused here. Copy any new messages you want to keep, then refresh to load the latest history.";
167
- changed();
165
+ store.storageConflict = true;
168
166
  }
169
167
  };
170
168
  useEffect(() => {
@@ -398,7 +396,6 @@ export function NexfaceProvider(props) {
398
396
  : client.getStatus(),
399
397
  model: controller.agent?.model ?? { provider: "server", model: "server" },
400
398
  ...(approval ? { interrupt: approval } : {}),
401
- ...(store.warning ? { storageWarning: store.warning } : {}),
402
399
  ...(error || store.error ? { error: error ? asError(error) : store.error } : {}),
403
400
  ...(store.completion?.sessionId === session.id
404
401
  ? { completed: { id: store.completion.id, result: store.completion.result } }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexface/chat",
3
- "version": "0.1.20-alpha.2",
3
+ "version": "0.1.20-alpha.3",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "sideEffects": [
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@ag-ui/core": "0.0.59",
22
- "@nexface/agent": "0.1.20-alpha.2",
22
+ "@nexface/agent": "0.1.20-alpha.3",
23
23
  "class-variance-authority": "0.7.1",
24
24
  "clsx": "2.1.1",
25
25
  "fast-json-patch": "3.1.1",
@@ -28,7 +28,7 @@
28
28
  "use-sync-external-store": "1.7.0"
29
29
  },
30
30
  "peerDependencies": {
31
- "@nexface/tools": "0.1.20-alpha.2",
31
+ "@nexface/tools": "0.1.20-alpha.3",
32
32
  "react": ">=17",
33
33
  "react-dom": ">=17"
34
34
  },