@meshagent/meshagent-tailwind 0.35.6 → 0.35.8

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [0.35.8]
2
+ - `ensureLogin` now uses the current page as the OAuth callback (no stored marker/URL), strips OAuth query params on return, and refreshes the current user profile when already logged in.
3
+ - JavaScript/TypeScript storage download examples now use storage upload and decode bytes, and the docs example build ignores generated JS artifacts alongside TypeScript sources.
4
+
5
+ ## [0.35.7]
6
+ - Added container build lifecycle and image management in the TS SDK (start/build returning build IDs, list/cancel/delete builds, build logs, load/save/push/delete images) plus exec stderr streams and stricter status decoding.
7
+ - Breaking: container build APIs now return build IDs and `stop` defaults to non-forced.
8
+ - Added database namespace support and new operations (count, inspect, restore/checkout, listVersions with metadata) plus typed indexes and search offset.
9
+ - Added secrets client overhaul: OAuth/secret request handlers, offline OAuth tokens, request/provide/reject secret flows, and flexible get/set secret by id/type/name.
10
+ - Added storage enhancements: `stat`, upload MIME inference, storage entries include created/updated timestamps, and file updated/deleted events now include participant IDs.
11
+ - Breaking: messaging stream APIs removed; messaging now uses queued sends with start/stop, and RoomClient starts messaging automatically.
12
+
1
13
  ## [0.35.6]
2
14
  - New `@meshagent/meshagent-ts-auth` package provides framework-agnostic OAuth/PKCE login, token storage/refresh, and access-token providers.
3
15
  - New `@meshagent/meshagent-react-dev` package adds developer console hooks for logs, terminal sessions, and webterm/ghostty integrations.
package/dist/cjs/Chat.js CHANGED
@@ -29,6 +29,10 @@ var import_ChatInput = require("./ChatInput");
29
29
  var import_ChatTypingIndicator = require("./ChatTypingIndicator");
30
30
  var import_ui_toolkit = require("./tools/ui-toolkit");
31
31
  var import_sonner = require("./components/ui/sonner");
32
+ function getParticipantName(participant) {
33
+ const name = participant?.getAttribute("name");
34
+ return typeof name === "string" ? name : "";
35
+ }
32
36
  function Chat({ room, path, participants }) {
33
37
  const {
34
38
  messages,
@@ -54,7 +58,7 @@ function Chat({ room, path, participants }) {
54
58
  });
55
59
  }
56
60
  }, [room, path]);
57
- const localParticipantName = room?.localParticipant?.getAttribute("name");
61
+ const localParticipantName = getParticipantName(room?.localParticipant);
58
62
  if (schemaFileExists === false) {
59
63
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex flex-col flex-1 min-h-0 gap-2 p-4", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-red-500", children: 'No AI agent found in this room. Run `meshagent chatbot join --room [room-name] --agent-name "Chat Agent" --name "Chat Friend"` and try again.' }) });
60
64
  }
package/dist/esm/Chat.js CHANGED
@@ -6,6 +6,10 @@ import { ChatInput } from "./ChatInput";
6
6
  import { ChatTypingIndicator } from "./ChatTypingIndicator";
7
7
  import { UIToolkit } from "./tools/ui-toolkit";
8
8
  import { Toaster } from "./components/ui/sonner";
9
+ function getParticipantName(participant) {
10
+ const name = participant?.getAttribute("name");
11
+ return typeof name === "string" ? name : "";
12
+ }
9
13
  function Chat({ room, path, participants }) {
10
14
  const {
11
15
  messages,
@@ -31,7 +35,7 @@ function Chat({ room, path, participants }) {
31
35
  });
32
36
  }
33
37
  }, [room, path]);
34
- const localParticipantName = room?.localParticipant?.getAttribute("name");
38
+ const localParticipantName = getParticipantName(room?.localParticipant);
35
39
  if (schemaFileExists === false) {
36
40
  return /* @__PURE__ */ jsx("div", { className: "flex flex-col flex-1 min-h-0 gap-2 p-4", children: /* @__PURE__ */ jsx("p", { className: "text-red-500", children: 'No AI agent found in this room. Run `meshagent chatbot join --room [room-name] --agent-name "Chat Agent" --name "Chat Friend"` and try again.' }) });
37
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshagent/meshagent-tailwind",
3
- "version": "0.35.6",
3
+ "version": "0.35.8",
4
4
  "description": "Meshagent Tailwind Components",
5
5
  "homepage": "https://github.com/meshagent/meshagent-tailwind",
6
6
  "scripts": {
@@ -30,8 +30,8 @@
30
30
  "CHANGELOG.md"
31
31
  ],
32
32
  "dependencies": {
33
- "@meshagent/meshagent": "^0.35.6",
34
- "@meshagent/meshagent-react": "^0.35.6",
33
+ "@meshagent/meshagent": "^0.35.8",
34
+ "@meshagent/meshagent-react": "^0.35.8",
35
35
  "@radix-ui/react-avatar": "^1.1.10",
36
36
  "@radix-ui/react-checkbox": "^1.3.2",
37
37
  "@radix-ui/react-dialog": "^1.1.14",