@lambforge/agent-chat 0.0.5 → 0.0.7
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 +9 -0
- package/dist/agent-chat.js +94 -35
- package/dist/agent-chat.js.map +4 -4
- package/dist/index.cjs +212 -24
- package/dist/index.cjs.map +4 -4
- package/dist/index.mjs +209 -21
- package/dist/index.mjs.map +4 -4
- package/package.json +3 -3
- package/types/index.d.ts +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambforge/agent-chat",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "<lambforge-agent-chat>: a chat with your Lambforge agent on any site - one script tag or a web component (@rhtml/component + @rxdi/redux-store)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"test": "node scripts/test.mjs"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@lambforge/agents": "^0.0.
|
|
47
|
+
"@lambforge/agents": "^0.0.5",
|
|
48
48
|
"rxjs": "^7.8.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"happy-dom": "^21.0.4",
|
|
55
55
|
"ts-action": "^11.0.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "1fa876bd67be58a71fcb7dd9cdbfdf794e3825de"
|
|
58
58
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -22,6 +22,13 @@ export interface ChatStrings {
|
|
|
22
22
|
pickAgent: string;
|
|
23
23
|
usedTools: string;
|
|
24
24
|
verifying: string;
|
|
25
|
+
/** the paperclip (agents that take files) */
|
|
26
|
+
attach: string;
|
|
27
|
+
/** the list of picked files */
|
|
28
|
+
attached: string;
|
|
29
|
+
removeFile: string;
|
|
30
|
+
/** sent as the message when the visitor sends files without text */
|
|
31
|
+
filesOnly: string;
|
|
25
32
|
errors: Record<AgentErrorCode | 'default', string>;
|
|
26
33
|
}
|
|
27
34
|
|
|
@@ -102,6 +109,10 @@ export declare class LambforgeAgentChat extends HTMLElement {
|
|
|
102
109
|
pick(agentId: string): void;
|
|
103
110
|
/** Start a new conversation. */
|
|
104
111
|
startOver(): void;
|
|
112
|
+
/** Add files to the next message (agents whose owner allows files). */
|
|
113
|
+
attach(files: File[] | FileList | null | undefined): void;
|
|
114
|
+
/** Remove a picked file (by its position). */
|
|
115
|
+
detach(index: number): void;
|
|
105
116
|
/** Open or close the drawer. */
|
|
106
117
|
setOpen(open: boolean): void;
|
|
107
118
|
|