@meshagent/meshagent-tailwind 0.36.3 → 0.37.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [0.37.1]
|
|
2
|
+
- Added `useAuth` to the React auth package to handle OAuth redirect/callback, token refresh, and profile loading without React Query, plus a `useEnsureLogin` compatibility wrapper.
|
|
3
|
+
- React auth `useMAuthResponse` now deduplicates token exchanges per callback parameters to avoid repeated exchanges on re-renders.
|
|
4
|
+
- Breaking: React auth no longer exports React Query `QueryClient` or `QueryClientProvider`.
|
|
5
|
+
- Breaking: `useLoginScope` now delegates to `useAuth` and defaults the OAuth scope to `email`.
|
|
6
|
+
- Breaking: the `staticAuthorization` helper was removed from the React room connection utilities.
|
|
7
|
+
- React dev terminal hooks now return `RefObject`-typed `containerRef` values for stronger typing.
|
|
8
|
+
- Meshagent TS client now normalizes binary request bodies for fetch and includes TypeScript declarations for runtime entrypoint functions.
|
|
9
|
+
|
|
10
|
+
## [0.37.0]
|
|
11
|
+
- Breaking: Database client now supports `json`, `uuid`, `list`, and `struct` types with typed wrappers (DatabaseJson/DatabaseStruct/DatabaseExpression/DatabaseDate/DatabaseUuid); list/struct values must be wrapped and update now takes `values` only.
|
|
12
|
+
- Breaking: Containers build now streams build contexts (start/data chunks) with `mountPath`/`chunks` and removes `start_build`.
|
|
13
|
+
- Breaking: Toolkit/hosting refactor replaces RemoteToolkit with startHostedToolkit/HostedToolkit, removes ToolkitConfiguration and `supports_context`, and updates React/Tailwind helpers to start hosted toolkits.
|
|
14
|
+
- Participant tokens now include LLM grants and richer grant serialization (including allowed toolkits and extra payload preservation), and schema helpers add `json`/`uuid` data types.
|
|
15
|
+
- The JS SDK now exports its version constant for client-side visibility.
|
|
16
|
+
|
|
1
17
|
## [0.36.3]
|
|
2
18
|
- Storage client now supports move operations and emits file moved events.
|
|
3
19
|
- Secrets client now supports existence checks.
|
package/dist/cjs/Chat.js
CHANGED
|
@@ -45,9 +45,9 @@ function Chat({ room, path, participants }) {
|
|
|
45
45
|
} = (0, import_meshagent_react.useChat)({ room, path, participants });
|
|
46
46
|
const { thinking } = (0, import_meshagent_react.useRoomIndicators)({ room, path });
|
|
47
47
|
const toolkits = (0, import_react.useMemo)(() => [
|
|
48
|
-
new import_ui_toolkit.UIToolkit(
|
|
49
|
-
], [
|
|
50
|
-
(0, import_meshagent_react.useClientToolkits)({ toolkits, public: false });
|
|
48
|
+
new import_ui_toolkit.UIToolkit()
|
|
49
|
+
], []);
|
|
50
|
+
(0, import_meshagent_react.useClientToolkits)({ room, toolkits, public: false });
|
|
51
51
|
const onTextChange = (0, import_react.useCallback)((_) => {
|
|
52
52
|
const removeParticipant = room.messaging.remoteParticipants;
|
|
53
53
|
for (const part of removeParticipant) {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class UIToolkit extends
|
|
3
|
-
constructor(
|
|
4
|
-
room: RoomClient;
|
|
5
|
-
});
|
|
1
|
+
import { Toolkit } from '@meshagent/meshagent';
|
|
2
|
+
export declare class UIToolkit extends Toolkit {
|
|
3
|
+
constructor();
|
|
6
4
|
}
|
|
@@ -26,13 +26,12 @@ var import_ask_user = require("./ask-user");
|
|
|
26
26
|
var import_ask_user_for_file = require("./ask-user-for-file");
|
|
27
27
|
var import_display_document = require("./display-document");
|
|
28
28
|
var import_toast = require("./toast");
|
|
29
|
-
class UIToolkit extends import_meshagent.
|
|
30
|
-
constructor(
|
|
29
|
+
class UIToolkit extends import_meshagent.Toolkit {
|
|
30
|
+
constructor() {
|
|
31
31
|
super({
|
|
32
32
|
name: "ui",
|
|
33
33
|
title: "UI Tools",
|
|
34
34
|
description: "User interface tools",
|
|
35
|
-
room,
|
|
36
35
|
tools: [
|
|
37
36
|
new import_ask_user.AskUser(),
|
|
38
37
|
new import_ask_user_for_file.AskUserForFile(),
|
package/dist/esm/Chat.js
CHANGED
|
@@ -22,9 +22,9 @@ function Chat({ room, path, participants }) {
|
|
|
22
22
|
} = useChat({ room, path, participants });
|
|
23
23
|
const { thinking } = useRoomIndicators({ room, path });
|
|
24
24
|
const toolkits = useMemo(() => [
|
|
25
|
-
new UIToolkit(
|
|
26
|
-
], [
|
|
27
|
-
useClientToolkits({ toolkits, public: false });
|
|
25
|
+
new UIToolkit()
|
|
26
|
+
], []);
|
|
27
|
+
useClientToolkits({ room, toolkits, public: false });
|
|
28
28
|
const onTextChange = useCallback((_) => {
|
|
29
29
|
const removeParticipant = room.messaging.remoteParticipants;
|
|
30
30
|
for (const part of removeParticipant) {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class UIToolkit extends
|
|
3
|
-
constructor(
|
|
4
|
-
room: RoomClient;
|
|
5
|
-
});
|
|
1
|
+
import { Toolkit } from '@meshagent/meshagent';
|
|
2
|
+
export declare class UIToolkit extends Toolkit {
|
|
3
|
+
constructor();
|
|
6
4
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Toolkit } from "@meshagent/meshagent";
|
|
2
2
|
import { AskUser } from "./ask-user";
|
|
3
3
|
import { AskUserForFile } from "./ask-user-for-file";
|
|
4
4
|
import { DisplayDocument } from "./display-document";
|
|
5
5
|
import { Toast } from "./toast";
|
|
6
|
-
class UIToolkit extends
|
|
7
|
-
constructor(
|
|
6
|
+
class UIToolkit extends Toolkit {
|
|
7
|
+
constructor() {
|
|
8
8
|
super({
|
|
9
9
|
name: "ui",
|
|
10
10
|
title: "UI Tools",
|
|
11
11
|
description: "User interface tools",
|
|
12
|
-
room,
|
|
13
12
|
tools: [
|
|
14
13
|
new AskUser(),
|
|
15
14
|
new AskUserForFile(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshagent/meshagent-tailwind",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.1",
|
|
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.
|
|
34
|
-
"@meshagent/meshagent-react": "^0.
|
|
33
|
+
"@meshagent/meshagent": "^0.37.1",
|
|
34
|
+
"@meshagent/meshagent-react": "^0.37.1",
|
|
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",
|