@standardagents/builder 0.10.1-dev.b8746e9 → 0.10.1-dev.cea2b66
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 +48 -0
- package/dist/built-in-routes.js +7 -7
- package/dist/built-in-routes.js.map +1 -1
- package/dist/image-processing.d.ts +10 -6
- package/dist/image-processing.js +11 -138
- package/dist/image-processing.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +48 -161
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +6 -8
- package/dist/plugin.js.map +1 -1
- package/package.json +18 -21
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/built-in-routes.js
CHANGED
|
@@ -2176,9 +2176,6 @@ var messages_post_default = defineController(async ({ req, params, env }) => {
|
|
|
2176
2176
|
}
|
|
2177
2177
|
const ext = mimeType === "image/png" ? "png" : mimeType === "image/jpeg" ? "jpg" : attachment.name.split(".").pop() || "bin";
|
|
2178
2178
|
const path = `/attachments/${timestamp}-${attachmentId}.${ext}`;
|
|
2179
|
-
const metadata = {};
|
|
2180
|
-
if (width) metadata.width = width;
|
|
2181
|
-
if (height) metadata.height = height;
|
|
2182
2179
|
const base64Size = fileData.length;
|
|
2183
2180
|
const binarySize = Math.ceil(base64Size * 3 / 4);
|
|
2184
2181
|
console.log(`[writeFile] Storing ${attachment.name}: ${(binarySize / 1024 / 1024).toFixed(2)}MB binary (${(base64Size / 1024 / 1024).toFixed(2)}MB base64) to ${path}`);
|
|
@@ -2187,8 +2184,9 @@ var messages_post_default = defineController(async ({ req, params, env }) => {
|
|
|
2187
2184
|
fileData,
|
|
2188
2185
|
mimeType,
|
|
2189
2186
|
{
|
|
2190
|
-
|
|
2191
|
-
|
|
2187
|
+
thumbnail: attachment.thumbnail,
|
|
2188
|
+
width,
|
|
2189
|
+
height
|
|
2192
2190
|
}
|
|
2193
2191
|
);
|
|
2194
2192
|
console.log(`[writeFile] Result:`, result.success ? "success" : result.error);
|
|
@@ -2353,6 +2351,8 @@ var stream_default = defineController(async ({ req, params, env }) => {
|
|
|
2353
2351
|
// src/api/threads/[id]/fs/[...path].ts
|
|
2354
2352
|
function toAttachmentRef(file) {
|
|
2355
2353
|
const metadata = file.metadata;
|
|
2354
|
+
const width = file.width ?? metadata?.width;
|
|
2355
|
+
const height = file.height ?? metadata?.height;
|
|
2356
2356
|
return {
|
|
2357
2357
|
id: file.path,
|
|
2358
2358
|
// Use path as unique ID
|
|
@@ -2361,8 +2361,8 @@ function toAttachmentRef(file) {
|
|
|
2361
2361
|
name: file.name,
|
|
2362
2362
|
mimeType: file.mimeType,
|
|
2363
2363
|
size: file.size,
|
|
2364
|
-
...
|
|
2365
|
-
...
|
|
2364
|
+
...width && { width },
|
|
2365
|
+
...height && { height }
|
|
2366
2366
|
};
|
|
2367
2367
|
}
|
|
2368
2368
|
var path_default = defineController(async ({ req, params, env }) => {
|