@n8n/chat 0.1.0 → 0.1.2
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 +1 -8
- package/chat.bundle.es.js +11799 -0
- package/chat.bundle.umd.js +24 -0
- package/chat.es.js +6870 -0
- package/chat.umd.js +13 -24
- package/package.json +7 -7
- package/types/composables/index.d.ts +1 -0
- package/types/composables/useChat.d.ts +2 -0
- package/types/constants/symbols.d.ts +2 -1
- package/types/plugins/chat.d.ts +3 -0
- package/types/plugins/index.d.ts +1 -0
- package/types/types/chat.d.ts +11 -0
- package/types/types/index.d.ts +1 -0
- package/types/types/options.d.ts +0 -1
- package/chat.js +0 -7836
- package/types/stores/chat.d.ts +0 -41
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/chat",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"main": "./chat.umd.cjs",
|
|
5
|
-
"module": "./chat.js",
|
|
5
|
+
"module": "./chat.es.js",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
|
-
"import": "./chat.js",
|
|
9
|
+
"import": "./chat.es.js",
|
|
10
10
|
"require": "./chat.umd.cjs"
|
|
11
11
|
},
|
|
12
12
|
"./style.css": {
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"highlight.js": "^11.8.0",
|
|
19
|
-
"pinia": "^2.1.4",
|
|
20
19
|
"uuid": "^8.3.2",
|
|
21
20
|
"vue": "^3.3.4",
|
|
22
21
|
"vue-markdown-render": "^2.0.1"
|
|
@@ -60,12 +59,13 @@
|
|
|
60
59
|
"type": "git",
|
|
61
60
|
"url": "git+https://github.com/n8n-io/n8n.git"
|
|
62
61
|
},
|
|
63
|
-
"license": "
|
|
62
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
64
63
|
"homepage": "https://n8n.io",
|
|
65
64
|
"scripts": {
|
|
66
65
|
"dev": "npm run storybook",
|
|
67
66
|
"build": "run-p type-check build:vite && npm run build:prepare",
|
|
68
|
-
"build:vite": "vite build",
|
|
67
|
+
"build:vite": "vite build && npm run build:vite:full",
|
|
68
|
+
"build:vite:full": "INCLUDE_VUE=true vite build",
|
|
69
69
|
"build:prepare": "node scripts/postbuild.js",
|
|
70
70
|
"build:pack": "node scripts/pack.js",
|
|
71
71
|
"preview": "vite preview",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"type-check": "vue-tsc --noEmit -p tsconfig.json --composite false",
|
|
74
74
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore --ignore-path .eslintignore",
|
|
75
75
|
"format": "prettier --write src/",
|
|
76
|
-
"storybook": "storybook dev -p 6006",
|
|
76
|
+
"storybook": "storybook dev -p 6006 --no-open",
|
|
77
77
|
"build:storybook": "storybook build",
|
|
78
78
|
"release": "pnpm run build && cd dist && pnpm publish"
|
|
79
79
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './chat';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ChatMessage } from '../types/messages';
|
|
2
|
+
import type { Ref } from 'vue';
|
|
3
|
+
export interface Chat {
|
|
4
|
+
initialMessages: Ref<ChatMessage[]>;
|
|
5
|
+
messages: Ref<ChatMessage[]>;
|
|
6
|
+
currentSessionId: Ref<string | null>;
|
|
7
|
+
waitingForResponse: Ref<boolean>;
|
|
8
|
+
loadPreviousSession: () => Promise<string>;
|
|
9
|
+
startNewSession: () => Promise<void>;
|
|
10
|
+
sendMessage: (text: string) => Promise<void>;
|
|
11
|
+
}
|
package/types/types/index.d.ts
CHANGED