@standardagents/client 0.10.1-dev.b8746e9 → 0.10.1-dev.d2d335e

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/LICENSE.txt ADDED
@@ -0,0 +1,48 @@
1
+ PROPRIETARY SOFTWARE LICENSE
2
+
3
+ Copyright (c) 2024-2025 FormKit Inc. All Rights Reserved.
4
+
5
+ UNLICENSED - DO NOT USE
6
+
7
+ This software and associated documentation files (the "Software") are the sole
8
+ and exclusive property of FormKit Inc. ("FormKit").
9
+
10
+ USE RESTRICTIONS
11
+
12
+ The Software is UNLICENSED and proprietary. NO PERMISSION is granted to use,
13
+ copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
14
+ the Software, or to permit persons to whom the Software is furnished to do so,
15
+ under any circumstances, without prior written authorization from FormKit Inc.
16
+
17
+ UNAUTHORIZED USE PROHIBITED
18
+
19
+ Any use of this Software without a valid, written license agreement signed by
20
+ authorized officers of FormKit Inc. is strictly prohibited and constitutes
21
+ unauthorized use and infringement of FormKit's intellectual property rights.
22
+
23
+ LICENSING INQUIRIES
24
+
25
+ Organizations interested in licensing this Software should contact:
26
+ enterprise@formkit.com
27
+
28
+ A written license agreement must be executed before any use of this Software
29
+ is authorized.
30
+
31
+ NO WARRANTY
32
+
33
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
36
+ FORMKIT INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
37
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
38
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
39
+
40
+ GOVERNING LAW
41
+
42
+ This license shall be governed by and construed in accordance with the laws
43
+ of the jurisdiction in which FormKit Inc. is incorporated, without regard to
44
+ its conflict of law provisions.
45
+
46
+ FormKit Inc.
47
+ https://formkit.com
48
+ enterprise@formkit.com
package/dist/index.d.ts CHANGED
@@ -32,6 +32,7 @@ interface AttachmentRef {
32
32
  width?: number;
33
33
  height?: number;
34
34
  description?: string;
35
+ localPreviewUrl?: string;
35
36
  }
36
37
  /**
37
38
  * Unified file representation for client-side state
@@ -51,6 +52,32 @@ interface ThreadFile {
51
52
  height?: number;
52
53
  messageId?: string;
53
54
  }
55
+ /**
56
+ * Pending attachment waiting to be sent with a message.
57
+ * These are NOT uploaded until sendMessage() is called.
58
+ */
59
+ interface PendingAttachment {
60
+ id: string;
61
+ file: File;
62
+ name: string;
63
+ mimeType: string;
64
+ size: number;
65
+ isImage: boolean;
66
+ previewUrl: string | null;
67
+ width?: number;
68
+ height?: number;
69
+ }
70
+ /**
71
+ * Attachment payload sent with sendMessage API.
72
+ * Contains base64-encoded file data.
73
+ */
74
+ interface AttachmentPayload {
75
+ name: string;
76
+ mimeType: string;
77
+ data: string;
78
+ width?: number;
79
+ height?: number;
80
+ }
54
81
  interface WorkItem {
55
82
  id: string;
56
83
  type: "tool_call" | "tool_result";
@@ -125,7 +152,7 @@ interface SendMessagePayload {
125
152
  role: "user" | "assistant" | "system";
126
153
  content: string;
127
154
  silent?: boolean;
128
- attachments?: string[];
155
+ attachments?: AttachmentPayload[];
129
156
  }
130
157
  interface Thread {
131
158
  id: string;
@@ -473,4 +500,4 @@ declare function generatePendingFileId(): string;
473
500
  */
474
501
  declare function readFileAsDataUrl(file: File): Promise<string>;
475
502
 
476
- export { AgentBuilderClient, type AgentBuilderConfig, type AttachmentRef, type ConnectionStatus, type CreateThreadPayload, type CustomEvent, type ErrorEvent, type FileUpdateCallback, FileUploadManager, type GetMessagesOptions, type ImageProcessingResult, type LogDataEvent, type LogStreamEvent, type LogWebSocketCallbacks, type Message, type MessageChunkEvent, type MessageDataEvent, type MessageStreamEvent, type MessageWebSocketCallbacks, type SendMessagePayload, type StoppedByUserEvent, type Thread, type ThreadConnectionCallbacks, ThreadConnectionManager, type ThreadConnectionOptions, type ThreadEvent, type ThreadFile, type ThreadMessage, type UploadOptions, type WorkItem, type WorkMessage, canGenerateThumbnails, generateImageThumbnail, generatePendingFileId, isImageMimeType, messagesToFiles, parseAttachments, readFileAsDataUrl, transformToWorkblocks };
503
+ export { AgentBuilderClient, type AgentBuilderConfig, type AttachmentPayload, type AttachmentRef, type ConnectionStatus, type CreateThreadPayload, type CustomEvent, type ErrorEvent, type FileUpdateCallback, FileUploadManager, type GetMessagesOptions, type ImageProcessingResult, type LogDataEvent, type LogStreamEvent, type LogWebSocketCallbacks, type Message, type MessageChunkEvent, type MessageDataEvent, type MessageStreamEvent, type MessageWebSocketCallbacks, type PendingAttachment, type SendMessagePayload, type StoppedByUserEvent, type Thread, type ThreadConnectionCallbacks, ThreadConnectionManager, type ThreadConnectionOptions, type ThreadEvent, type ThreadFile, type ThreadMessage, type UploadOptions, type WorkItem, type WorkMessage, canGenerateThumbnails, generateImageThumbnail, generatePendingFileId, isImageMimeType, messagesToFiles, parseAttachments, readFileAsDataUrl, transformToWorkblocks };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@standardagents/client",
3
- "version": "0.10.1-dev.b8746e9",
3
+ "version": "0.10.1-dev.d2d335e",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "restricted",
@@ -20,14 +20,6 @@
20
20
  "dist",
21
21
  "README.md"
22
22
  ],
23
- "scripts": {
24
- "build": "tsup",
25
- "dev": "tsup --watch",
26
- "typecheck": "tsc --noEmit",
27
- "test": "cd ../.. && vitest --dir packages/client",
28
- "test:run": "cd ../.. && vitest run --dir packages/client",
29
- "test:ui": "cd ../.. && vitest --ui --dir packages/client"
30
- },
31
23
  "devDependencies": {
32
24
  "tsup": "^8.3.5",
33
25
  "typescript": "^5.7.2"
@@ -40,5 +32,13 @@
40
32
  "websocket"
41
33
  ],
42
34
  "author": "FormKit Inc.",
43
- "license": "UNLICENSED"
44
- }
35
+ "license": "UNLICENSED",
36
+ "scripts": {
37
+ "build": "tsup",
38
+ "dev": "tsup --watch",
39
+ "typecheck": "tsc --noEmit",
40
+ "test": "cd ../.. && vitest --dir packages/client",
41
+ "test:run": "cd ../.. && vitest run --dir packages/client",
42
+ "test:ui": "cd ../.. && vitest --ui --dir packages/client"
43
+ }
44
+ }