Merge remote-tracking branch 'origin/main' into feat/mcp

# Conflicts:
#	app/package.json
#	bun.lock
This commit is contained in:
dswbx
2025-08-06 08:44:46 +02:00
13 changed files with 37 additions and 38 deletions

View File

@@ -68,7 +68,7 @@ export class MediaApi extends ModuleApi<MediaApiOptions> {
}
protected uploadFile(
body: File | Blob | ReadableStream,
body: File | Blob | ReadableStream | Buffer<ArrayBufferLike>,
opts?: {
filename?: string;
path?: TInput;
@@ -110,7 +110,7 @@ export class MediaApi extends ModuleApi<MediaApiOptions> {
}
async upload(
item: Request | Response | string | File | Blob | ReadableStream,
item: Request | Response | string | File | Blob | ReadableStream | Buffer<ArrayBufferLike>,
opts: {
filename?: string;
_init?: Omit<RequestInit, "body">;
@@ -148,7 +148,7 @@ export class MediaApi extends ModuleApi<MediaApiOptions> {
entity: string,
id: PrimaryFieldType,
field: string,
item: Request | Response | string | File | ReadableStream,
item: Request | Response | string | File | ReadableStream | Buffer<ArrayBufferLike>,
opts?: {
_init?: Omit<RequestInit, "body">;
fetcher?: typeof fetch;

View File

@@ -183,13 +183,13 @@ export class StorageS3Adapter extends StorageAdapter {
method: "GET",
headers: pickHeaders2(headers, [
"if-none-match",
"accept-encoding",
//"accept-encoding", (causes 403 on r2)
"accept",
"if-modified-since",
]),
});
// Response has to be copied, because of middlewares that might set headers
// response has to be copied, because of middlewares that might set headers
return new Response(res.body, {
status: res.status,
statusText: res.statusText,

View File

@@ -94,8 +94,8 @@ export const TriggerNode = (props: NodeProps<Node<TAppFlowTriggerSchema & { labe
control={control}
/>
</div>
{data.type === "manual" && <Manual />}
{data.type === "http" && (
{data?.type === "manual" && <Manual />}
{data?.type === "http" && (
<Http form={{ watch, register, setValue, getValues, control }} />
)}
</form>