@mujian/js-sdk 0.0.6-beta.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/README.md +23 -0
- package/dist/events/index.d.ts +71 -0
- package/dist/index.d.ts +96 -0
- package/dist/index.js +220 -0
- package/dist/modules/ai/chat/chat.d.ts +35 -0
- package/dist/modules/ai/chat/index.d.ts +4 -0
- package/dist/modules/ai/chat/message/index.d.ts +43 -0
- package/dist/modules/ai/chat/project/index.d.ts +3 -0
- package/dist/modules/ai/chat/settings/index.d.ts +3 -0
- package/dist/modules/ai/chat/settings/model.d.ts +24 -0
- package/dist/modules/ai/chat/settings/persona.d.ts +17 -0
- package/dist/modules/ai/chat/settings/style.d.ts +0 -0
- package/dist/modules/ai/index.d.ts +5 -0
- package/dist/modules/ai/text/index.d.ts +2 -0
- package/dist/modules/game/index.d.ts +4 -0
- package/dist/modules/game/saves.d.ts +3 -0
- package/dist/modules/ui/index.d.ts +0 -0
- package/dist/react/chat/index.d.ts +1 -0
- package/dist/react/chat/useChat/error.d.ts +15 -0
- package/dist/react/chat/useChat/index.d.ts +55 -0
- package/dist/react/chat/useChat/inner/chatStreaming.d.ts +23 -0
- package/dist/react/chat/useChat/inner/stream.d.ts +3 -0
- package/dist/react/chat/useChat/message.d.ts +37 -0
- package/dist/react/components/MdRenderer/index.d.ts +20 -0
- package/dist/react/components/MdRenderer/utils.d.ts +38 -0
- package/dist/react/components/MujianProvider/index.d.ts +17 -0
- package/dist/react/components/Thread/MessageItem.d.ts +21 -0
- package/dist/react/components/Thread/MessageList.d.ts +19 -0
- package/dist/react/components/Thread/index.d.ts +4 -0
- package/dist/react/components/button.d.ts +14 -0
- package/dist/react/components/index.d.ts +4 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react.css +156 -0
- package/dist/react.js +832 -0
- package/dist/types/index.d.ts +27 -0
- package/dist/utils/index.d.ts +0 -0
- package/package.json +89 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type ProjectInfo = {
|
|
2
|
+
handle: string;
|
|
3
|
+
creatorId: string;
|
|
4
|
+
creatorNickname?: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
coverImageUrl: string;
|
|
8
|
+
previewImageUrls?: string[];
|
|
9
|
+
tags?: string[];
|
|
10
|
+
stats?: {
|
|
11
|
+
collectedCount?: number;
|
|
12
|
+
starCount?: number;
|
|
13
|
+
messageCount?: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type PersonaInfo = {
|
|
17
|
+
name: string;
|
|
18
|
+
isDefault: boolean;
|
|
19
|
+
avatarUrl?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
};
|
|
22
|
+
export type ModelInfo = {
|
|
23
|
+
id: string;
|
|
24
|
+
title: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
price: number;
|
|
27
|
+
};
|
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mujian/js-sdk",
|
|
3
|
+
"version": "0.0.6-beta.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"import": "./dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"./types": {
|
|
11
|
+
"types": "./dist/types/index.d.ts"
|
|
12
|
+
},
|
|
13
|
+
"./react": {
|
|
14
|
+
"types": "./dist/react/index.d.ts",
|
|
15
|
+
"import": "./dist/react.js"
|
|
16
|
+
},
|
|
17
|
+
"./react.css": {
|
|
18
|
+
"import": "./dist/react.css"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "rslib build",
|
|
30
|
+
"build:storybook": "storybook build",
|
|
31
|
+
"check": "biome check --write",
|
|
32
|
+
"dev": "rslib build --watch",
|
|
33
|
+
"format": "biome format --write",
|
|
34
|
+
"storybook": "storybook dev",
|
|
35
|
+
"test": "rstest",
|
|
36
|
+
"build:doc": "rspress build && ./scripts/updateApi.sh",
|
|
37
|
+
"dev:doc": "rspress dev",
|
|
38
|
+
"preview:doc": "rspress preview",
|
|
39
|
+
"upload:doc": "node upload.js"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"rimraf": "^6.0.1",
|
|
43
|
+
"@rsbuild/core": "~1.5.12",
|
|
44
|
+
"rspress": "^1.40.2",
|
|
45
|
+
"jsdom": "^26.1.0",
|
|
46
|
+
"@rspress/plugin-typedoc": "^1.45.8",
|
|
47
|
+
"@rspress/plugin-api-docgen": "^1.45.8",
|
|
48
|
+
"@rspress/plugin-preview": "^1.45.8",
|
|
49
|
+
"rspress-plugin-mermaid": "0.3.0",
|
|
50
|
+
"rspress-plugin-align-image": "0.3.0",
|
|
51
|
+
"rspress-plugin-file-tree": "0.4.0",
|
|
52
|
+
"cos-nodejs-sdk-v5": "~2.15.4",
|
|
53
|
+
"@rstest/core": "^0.4.1",
|
|
54
|
+
"@testing-library/jest-dom": "^6.8.0",
|
|
55
|
+
"@testing-library/react": "^16.3.0",
|
|
56
|
+
"@types/showdown": "^2.0.6",
|
|
57
|
+
"@rslib/core": "^0.14.0",
|
|
58
|
+
"@types/postmate": "^1.5.4",
|
|
59
|
+
"@biomejs/biome": "2.2.4",
|
|
60
|
+
"typescript": "^5.9.2",
|
|
61
|
+
"react": "~19.1.1",
|
|
62
|
+
"react-dom": "~19.1.1",
|
|
63
|
+
"@rsbuild/plugin-react": "~1.4.0",
|
|
64
|
+
"@types/react": "~19.1.13",
|
|
65
|
+
"storybook": "^9.1.7",
|
|
66
|
+
"storybook-addon-rslib": "^2.1.1",
|
|
67
|
+
"storybook-react-rsbuild": "^2.1.1",
|
|
68
|
+
"@storybook/addon-docs": "^9.1.7",
|
|
69
|
+
"@storybook/addon-essentials": "^9.0.0-alpha.12",
|
|
70
|
+
"@storybook/addon-interactions": "^9.0.0-alpha.10",
|
|
71
|
+
"@storybook/addon-links": "^9.1.7",
|
|
72
|
+
"@storybook/addon-onboarding": "^9.1.7",
|
|
73
|
+
"@storybook/blocks": "^9.0.0-alpha.17",
|
|
74
|
+
"@storybook/react": "^9.1.7",
|
|
75
|
+
"@storybook/test": "^9.0.0-alpha.2"
|
|
76
|
+
},
|
|
77
|
+
"dependencies": {
|
|
78
|
+
"dompurify": "^3.2.6",
|
|
79
|
+
"@adobe/css-tools": "^4.4.4",
|
|
80
|
+
"showdown": "^2.1.0",
|
|
81
|
+
"postmate": "^1.5.2",
|
|
82
|
+
"ahooks": "~3.9.5",
|
|
83
|
+
"virtua": "~0.45.2"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"react": "~19.1.1",
|
|
87
|
+
"react-dom": "~19.1.1"
|
|
88
|
+
}
|
|
89
|
+
}
|