@lambforge/agent-chat 0.0.6 → 0.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambforge/agent-chat",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
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.4",
47
+ "@lambforge/agents": "^0.0.7",
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": "bce16d601fface5ee4f47f0373818a3df92ccfd0"
57
+ "gitHead": "4389b5cd926bc1de4f7bda8dfd7be9989a81b63f"
58
58
  }
package/types/index.d.ts CHANGED
@@ -22,6 +22,21 @@ 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;
32
+ /** thumbs on an answer (agents that take ratings) */
33
+ helpful: string;
34
+ notHelpful: string;
35
+ /** the box after a thumbs down */
36
+ whatWentWrong: string;
37
+ sendFeedback: string;
38
+ skipFeedback: string;
39
+ thanks: string;
25
40
  errors: Record<AgentErrorCode | 'default', string>;
26
41
  }
27
42
 
@@ -102,6 +117,10 @@ export declare class LambforgeAgentChat extends HTMLElement {
102
117
  pick(agentId: string): void;
103
118
  /** Start a new conversation. */
104
119
  startOver(): void;
120
+ /** Add files to the next message (agents whose owner allows files). */
121
+ attach(files: File[] | FileList | null | undefined): void;
122
+ /** Remove a picked file (by its position). */
123
+ detach(index: number): void;
105
124
  /** Open or close the drawer. */
106
125
  setOpen(open: boolean): void;
107
126