@novu/framework 2.10.1-alpha.4 → 2.10.1-alpha.5
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/dist/cjs/{index-ZVAtl8F3.d.cts → index-B4t9LyOV.d.cts} +12 -3
- package/dist/cjs/index.cjs +57 -57
- package/dist/cjs/index.d.cts +1 -1
- package/dist/cjs/servers/express.cjs +57 -57
- package/dist/cjs/servers/express.d.cts +2 -2
- package/dist/cjs/servers/h3.cjs +57 -57
- package/dist/cjs/servers/h3.d.cts +2 -2
- package/dist/cjs/servers/lambda.cjs +57 -57
- package/dist/cjs/servers/lambda.d.cts +2 -2
- package/dist/cjs/servers/nest.cjs +71 -71
- package/dist/cjs/servers/nest.d.cts +2 -2
- package/dist/cjs/servers/next.cjs +57 -57
- package/dist/cjs/servers/next.d.cts +2 -2
- package/dist/cjs/servers/nuxt.cjs +57 -57
- package/dist/cjs/servers/nuxt.d.cts +2 -2
- package/dist/cjs/servers/remix.cjs +57 -57
- package/dist/cjs/servers/remix.d.cts +2 -2
- package/dist/cjs/servers/sveltekit.cjs +71 -71
- package/dist/cjs/servers/sveltekit.d.cts +2 -2
- package/dist/esm/chunk-TJFK73XZ.js +130 -0
- package/dist/esm/{index-D0d-O6LJ.d.ts → index-BCzJp-zE.d.ts} +12 -3
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/servers/express.d.ts +2 -2
- package/dist/esm/servers/express.js +1 -1
- package/dist/esm/servers/h3.d.ts +2 -2
- package/dist/esm/servers/h3.js +1 -1
- package/dist/esm/servers/lambda.d.ts +2 -2
- package/dist/esm/servers/lambda.js +1 -1
- package/dist/esm/servers/nest.d.ts +2 -2
- package/dist/esm/servers/nest.js +1 -1
- package/dist/esm/servers/next.d.ts +2 -2
- package/dist/esm/servers/next.js +1 -1
- package/dist/esm/servers/nuxt.d.ts +2 -2
- package/dist/esm/servers/nuxt.js +1 -1
- package/dist/esm/servers/remix.d.ts +2 -2
- package/dist/esm/servers/remix.js +1 -1
- package/dist/esm/servers/sveltekit.d.ts +2 -2
- package/dist/esm/servers/sveltekit.js +1 -1
- package/package.json +1 -1
- package/dist/esm/chunk-FI2YN7IA.js +0 -130
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as ServeHandlerOptions } from '../index-
|
|
2
|
-
export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-
|
|
1
|
+
import { S as ServeHandlerOptions } from '../index-BCzJp-zE.js';
|
|
2
|
+
export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-BCzJp-zE.js';
|
|
3
3
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
4
4
|
export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-CbMgjzR-.js';
|
|
5
5
|
import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as h,c,d as m,e as f,f as H,g as v,h as w,i as E,j as S,k as x,l as A,m as N,n as R,o as a,p as k}from"../chunk-
|
|
1
|
+
import{b as h,c,d as m,e as f,f as H,g as v,h as w,i as E,j as S,k as x,l as A,m as N,n as R,o as a,p as k}from"../chunk-TJFK73XZ.js";import"../chunk-T2VIX2ZH.js";import{a as O}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as b}from"../chunk-6GCCKYZC.js";import{a as V}from"../chunk-CBLKARLC.js";import{f as y}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var l="express",F=p=>new a({frameworkName:l,...p,handler:(t,o)=>({body:()=>t.body,headers:e=>{let r=t.headers[e];return Array.isArray(r)?r[0]:r},method:()=>t.method||"GET",url:()=>{let e=t.headers.host||"",r=e!=null&&e.includes("://")?"":`${t.protocol||"https"}://`;return new URL(t.originalUrl||t.url||"",`${r}${e||""}`)},queryString:e=>{let r=t.query[e];return Array.isArray(r)?r[0]:r},transformResponse:({body:e,headers:r,status:s})=>(Object.entries(r).forEach(([n,d])=>{o.setHeader(n,d)}),o.status(s).send(e))})}).createHandler();export{c as Actions,A as AgentDeliveryError,R as AgentEventEnum,m as Button,f as Card,H as CardLink,v as CardText,h as Client,y as CronExpression,w as Divider,a as NovuRequestHandler,E as Select,S as SelectOption,b as SeverityLevelEnum,x as TextInput,N as agent,l as frameworkName,V as providerSchemas,F as serve,O as step,k as workflow};
|
package/dist/esm/servers/h3.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as h3 from 'h3';
|
|
2
2
|
import { H3Event } from 'h3';
|
|
3
|
-
import { S as ServeHandlerOptions } from '../index-
|
|
4
|
-
export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-
|
|
3
|
+
import { S as ServeHandlerOptions } from '../index-BCzJp-zE.js';
|
|
4
|
+
export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-BCzJp-zE.js';
|
|
5
5
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
6
6
|
export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-CbMgjzR-.js';
|
|
7
7
|
import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.js';
|
package/dist/esm/servers/h3.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as y,c as H,d as S,e as i,f,g,h as N,i as w,j as c,k as E,l as k,m as x,n as O,o as t,p as F}from"../chunk-
|
|
1
|
+
import{b as y,c as H,d as S,e as i,f,g,h as N,i as w,j as c,k as E,l as k,m as x,n as O,o as t,p as F}from"../chunk-TJFK73XZ.js";import"../chunk-T2VIX2ZH.js";import{a as $}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as q}from"../chunk-6GCCKYZC.js";import{a as b}from"../chunk-CBLKARLC.js";import{f as l}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";import{getHeader as o,getQuery as a,readBody as p,send as n,setHeaders as m}from"h3";var h="h3",D=d=>new t({frameworkName:h,...d,handler:r=>({body:()=>p(r),headers:e=>o(r,e),method:()=>r.method,url:()=>new URL(String(r.path),`${process.env.NODE_ENV==="development"?"http":"https"}://${String(o(r,"host"))}`),queryString:e=>String(a(r)[e]),transformResponse:e=>{let{res:s}=r.node;return s.statusCode=e.status,m(r,e.headers),n(r,e.body)}})}).createHandler();export{H as Actions,k as AgentDeliveryError,O as AgentEventEnum,S as Button,i as Card,f as CardLink,g as CardText,y as Client,l as CronExpression,N as Divider,t as NovuRequestHandler,w as Select,c as SelectOption,q as SeverityLevelEnum,E as TextInput,x as agent,h as frameworkName,b as providerSchemas,D as serve,$ as step,F as workflow};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as aws_lambda from 'aws-lambda';
|
|
2
2
|
import { APIGatewayProxyEventV2, APIGatewayProxyResult } from 'aws-lambda';
|
|
3
|
-
import { S as ServeHandlerOptions } from '../index-
|
|
4
|
-
export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-
|
|
3
|
+
import { S as ServeHandlerOptions } from '../index-BCzJp-zE.js';
|
|
4
|
+
export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-BCzJp-zE.js';
|
|
5
5
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
6
6
|
import { a as Either } from '../subscriber.types-CbMgjzR-.js';
|
|
7
7
|
export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-CbMgjzR-.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as u,c as P,d as h,e as i,f as w,g as l,h as f,i as x,j as c,k as E,l as I,m as A,n as G,o as n,p as q}from"../chunk-
|
|
1
|
+
import{b as u,c as P,d as h,e as i,f as w,g as l,h as f,i as x,j as c,k as E,l as I,m as A,n as G,o as n,p as q}from"../chunk-TJFK73XZ.js";import"../chunk-T2VIX2ZH.js";import{a as g}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as b}from"../chunk-6GCCKYZC.js";import{a as S}from"../chunk-CBLKARLC.js";import{f as m}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var p="lambda",H=y=>new n({frameworkName:p,...y,handler:r=>{let s=(e=>e.version==="2.0")(r);return{url:()=>{let e=s?r.requestContext.http.path:r.path,t=r.headers["x-forwarded-proto"]||"https",a=new URL(e,`${t}://${r.headers.host||r.headers.Host||""}`);for(let o in r.queryStringParameters)o&&a.searchParams.set(o,r.queryStringParameters[o]);return a},body:()=>{let e="{}";return r.body&&(e=r.isBase64Encoded?Buffer.from(r.body,"base64").toString():r.body),JSON.parse(e)},headers:e=>r.headers[e],queryString:e=>{var t;return(t=r.queryStringParameters)==null?void 0:t[e]},transformResponse:({body:e,status:t,headers:a})=>Promise.resolve({body:e,statusCode:t,headers:a}),method:()=>s?r.requestContext.http.method:r.httpMethod}}}).createHandler();export{P as Actions,I as AgentDeliveryError,G as AgentEventEnum,h as Button,i as Card,w as CardLink,l as CardText,u as Client,m as CronExpression,f as Divider,n as NovuRequestHandler,x as Select,c as SelectOption,b as SeverityLevelEnum,E as TextInput,A as agent,p as frameworkName,S as providerSchemas,H as serve,g as step,q as workflow};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as INovuRequestHandlerOptions, N as NovuRequestHandler, S as ServeHandlerOptions, C as Client, A as Agent } from '../index-
|
|
2
|
-
export { a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-
|
|
1
|
+
import { I as INovuRequestHandlerOptions, N as NovuRequestHandler, S as ServeHandlerOptions, C as Client, A as Agent } from '../index-BCzJp-zE.js';
|
|
2
|
+
export { a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-BCzJp-zE.js';
|
|
3
3
|
import { W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
4
4
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum } from '../health-check.types-C5lg4csi.js';
|
|
5
5
|
export { Actions, Button, Card, CardChild, CardElement, CardLink, CardText, Divider, Select, SelectOption, TextInput } from 'chat';
|
package/dist/esm/servers/nest.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as g,c as G,d as U,e as j,f as C,g as D,h as F,i as k,j as B,k as L,l as $,m as K,n as z,o as y,p as W}from"../chunk-
|
|
1
|
+
import{b as g,c as G,d as U,e as j,f as C,g as D,h as F,i as k,j as B,k as L,l as $,m as K,n as z,o as y,p as W}from"../chunk-TJFK73XZ.js";import"../chunk-T2VIX2ZH.js";import{a as X}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as Q}from"../chunk-6GCCKYZC.js";import{a as J}from"../chunk-CBLKARLC.js";import{f as V}from"../chunk-EWC7I6UD.js";import{d as a,e as n}from"../chunk-52LSX2V5.js";import{Inject as R,Injectable as E}from"@nestjs/common";import{ConfigurableModuleBuilder as x}from"@nestjs/common";var{ConfigurableModuleClass:d,MODULE_OPTIONS_TOKEN:m,OPTIONS_TYPE:ee,ASYNC_OPTIONS_TYPE:re}=new x().setClassMethodName("register").setFactoryMethodName("createNovuModuleOptions").setExtras(l=>({...l,isGlobal:!0})).build();var P="REGISTER_API_PATH";import{Injectable as I}from"@nestjs/common";var i=class{handler(e,r){return{body:()=>e.body,headers:t=>{let p=e.headers[t.toLowerCase()];return Array.isArray(p)?p[0]:p},method:()=>e.method||"GET",queryString:t=>{let p=e.query[t];return Array.isArray(p)?p[0]:p},url:()=>{let t=e.headers.host||"",p=t!=null&&t.includes("://")?"":`${e.protocol||"https"}://`;return new URL(e.originalUrl||e.url||"",`${p}${t||""}`)},transformResponse:({body:t,headers:p,status:T})=>(Object.entries(p).forEach(([N,S])=>{r.setHeader(N,S)}),r.status(T).send(t))}}};i=a([I()],i);var _="nest",u=class{constructor(e,r){this.options=e;this.novuHandler=r;this.novuRequestHandler=new y({frameworkName:_,...this.options,handler:this.novuHandler.handler})}async handleRequest(e,r){await this.novuRequestHandler.createHandler()(e,r)}};u=a([E(),n(0,R(m)),n(1,R(i))],u);import{Controller as A,Get as H,Inject as q,Options as b,Post as w,Req as f,Res as O}from"@nestjs/common";var s=class{constructor(e){this.novuService=e}async handleGet(e,r){await this.novuService.handleRequest(e,r)}async handlePost(e,r){await this.novuService.handleRequest(e,r)}async handleOptions(e,r){await this.novuService.handleRequest(e,r)}};a([H(),n(0,f()),n(1,O())],s.prototype,"handleGet",1),a([w(),n(0,f()),n(1,O())],s.prototype,"handlePost",1),a([b(),n(0,f()),n(1,O())],s.prototype,"handleOptions",1),s=a([A(),n(0,q(u))],s);import{Module as Y}from"@nestjs/common";import{PATH_METADATA as M}from"@nestjs/common/constants";var h={provide:P,useFactory:l=>{if(!l.apiPath)throw new Error("`apiPath` must be provided to set the controller path");Reflect.defineMetadata(M,l.apiPath,s)},inject:[m]};function v(l,e=[]){return e.reduce((r,o)=>o(r),l)}var c=class extends d{static register(e,r){var t;let o=d.register(e);return o.controllers=[v(s,e.controllerDecorators||[])],(t=o.providers)==null||t.push(h,u,i,...r||[]),o.exports=[u,i],o}static registerAsync(e,r){var t;let o=d.registerAsync(e);return o.controllers=[s],(t=o.providers)==null||t.push(h,u,i,...r||[]),o.exports=[u,i],o}};c=a([Y({})],c);export{G as Actions,$ as AgentDeliveryError,z as AgentEventEnum,U as Button,j as Card,C as CardLink,D as CardText,g as Client,V as CronExpression,F as Divider,m as NOVU_OPTIONS,u as NovuClient,s as NovuController,i as NovuHandler,c as NovuModule,y as NovuRequestHandler,P as REGISTER_API_PATH,k as Select,B as SelectOption,Q as SeverityLevelEnum,L as TextInput,K as agent,_ as frameworkName,J as providerSchemas,h as registerApiPath,X as step,W as workflow};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextRequest } from 'next/server';
|
|
2
|
-
import { S as ServeHandlerOptions } from '../index-
|
|
3
|
-
export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-
|
|
2
|
+
import { S as ServeHandlerOptions } from '../index-BCzJp-zE.js';
|
|
3
|
+
export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-BCzJp-zE.js';
|
|
4
4
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
5
5
|
export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-CbMgjzR-.js';
|
|
6
6
|
import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.js';
|
package/dist/esm/servers/next.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l,b as x,c as q,d as S,e as T,f as w,g as P,h as A,i as E,j as b,k as v,l as g,m as F,n as j,o as c,p as I}from"../chunk-
|
|
1
|
+
import{a as l,b as x,c as q,d as S,e as T,f as w,g as P,h as A,i as E,j as b,k as v,l as g,m as F,n as j,o as c,p as I}from"../chunk-TJFK73XZ.js";import"../chunk-T2VIX2ZH.js";import{a as U}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as G}from"../chunk-6GCCKYZC.js";import{a as k}from"../chunk-CBLKARLC.js";import{f as O}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var m="next",N=o=>typeof o=="object"&&o!==null&&typeof o.setHeader=="function"&&typeof o.status=="function"&&typeof o.send=="function",D=o=>{let p=new c({frameworkName:m,...o,handler:(h,R,d)=>{let n=R,i=e=>{let t=typeof n.headers.get=="function"?n.headers.get(e):n.headers[e];return Array.isArray(t)?t[0]:t};return{body:()=>typeof n.json=="function"?n.json():n.body,headers:i,method:()=>h||n.method||"",queryString:(e,t)=>{var a;let r=((a=n.query)==null?void 0:a[e])||t.searchParams.get(e);return Array.isArray(r)?r[0]:r},url:()=>{let e;try{e=new URL(n.url)}catch{}if(e){let s=i("host");if(s){let u=new URL(s.includes("://")?s:`${e.protocol}//${s}`);e.protocol=u.protocol,e.host=u.host,e.port=u.port,e.username=u.username,e.password=u.password}return e}let t="https",r=i("host")||"";try{(process.env.NODE_ENV==="development"||process.env.NODE_ENV==="dev")&&(t="http")}catch{}return new URL(n.url,`${t}://${r}`)},transformResponse:({body:e,headers:t,status:r})=>{if(N(d)){Object.entries(t).forEach(([s,u])=>{d.setHeader(s,u)}),d.status(r).send(e);return}let a=l();return new a(e,{status:r,headers:t})}}}}).createHandler(),f=p.bind(null,void 0);return Object.defineProperties(f,{GET:{value:p.bind(null,"GET")},POST:{value:p.bind(null,"POST")},OPTIONS:{value:p.bind(null,"OPTIONS")}})};export{q as Actions,g as AgentDeliveryError,j as AgentEventEnum,S as Button,T as Card,w as CardLink,P as CardText,x as Client,O as CronExpression,A as Divider,c as NovuRequestHandler,E as Select,b as SelectOption,G as SeverityLevelEnum,v as TextInput,F as agent,m as frameworkName,k as providerSchemas,D as serve,U as step,I as workflow};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as h3 from 'h3';
|
|
2
2
|
import { H3Event } from 'h3';
|
|
3
|
-
import { S as ServeHandlerOptions } from '../index-
|
|
4
|
-
export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-
|
|
3
|
+
import { S as ServeHandlerOptions } from '../index-BCzJp-zE.js';
|
|
4
|
+
export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-BCzJp-zE.js';
|
|
5
5
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
6
6
|
export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-CbMgjzR-.js';
|
|
7
7
|
import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.js';
|
package/dist/esm/servers/nuxt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as H,c as S,d as i,e as y,f,g,h as N,i as w,j as c,k as x,l as E,m as k,n as O,o as t,p as F}from"../chunk-
|
|
1
|
+
import{b as H,c as S,d as i,e as y,f,g,h as N,i as w,j as c,k as x,l as E,m as k,n as O,o as t,p as F}from"../chunk-TJFK73XZ.js";import"../chunk-T2VIX2ZH.js";import{a as $}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as q}from"../chunk-6GCCKYZC.js";import{a as b}from"../chunk-CBLKARLC.js";import{f as l}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";import{getHeader as o,getQuery as a,readBody as n,send as p,setHeaders as m}from"h3";var u="nuxt",L=d=>new t({frameworkName:u,...d,handler:r=>({queryString:e=>String(a(r)[e]),body:()=>n(r),headers:e=>o(r,e),url:()=>new URL(String(r.path),`${process.env.NODE_ENV==="development"?"http":"https"}://${String(o(r,"host"))}`),method:()=>r.method,transformResponse:e=>{let{res:s}=r.node;return s.statusCode=e.status,m(r,e.headers),p(r,e.body)}})}).createHandler();export{S as Actions,E as AgentDeliveryError,O as AgentEventEnum,i as Button,y as Card,f as CardLink,g as CardText,H as Client,l as CronExpression,N as Divider,t as NovuRequestHandler,w as Select,c as SelectOption,q as SeverityLevelEnum,x as TextInput,k as agent,u as frameworkName,b as providerSchemas,L as serve,$ as step,F as workflow};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as ServeHandlerOptions } from '../index-
|
|
2
|
-
export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-
|
|
1
|
+
import { S as ServeHandlerOptions } from '../index-BCzJp-zE.js';
|
|
2
|
+
export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-BCzJp-zE.js';
|
|
3
3
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
4
4
|
export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-CbMgjzR-.js';
|
|
5
5
|
import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t,b as h,c as l,d as R,e as c,f as i,g as w,h as f,i as x,j as k,k as v,l as H,m as N,n as S,o,p as q}from"../chunk-
|
|
1
|
+
import{a as t,b as h,c as l,d as R,e as c,f as i,g as w,h as f,i as x,j as k,k as v,l as H,m as N,n as S,o,p as q}from"../chunk-TJFK73XZ.js";import"../chunk-T2VIX2ZH.js";import{a as F}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as y}from"../chunk-6GCCKYZC.js";import{a as g}from"../chunk-CBLKARLC.js";import{f as u}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var m="remix",j=s=>new o({frameworkName:m,...s,handler:({request:e})=>({body:()=>e.json(),headers:r=>e.headers.get(r),method:()=>e.method,url:()=>new URL(e.url,`https://${e.headers.get("host")||""}`),transformResponse:({body:r,status:n,headers:p})=>{let a=t();return new a(r,{status:n,headers:p})}})}).createHandler();export{l as Actions,H as AgentDeliveryError,S as AgentEventEnum,R as Button,c as Card,i as CardLink,w as CardText,h as Client,u as CronExpression,f as Divider,o as NovuRequestHandler,x as Select,k as SelectOption,y as SeverityLevelEnum,v as TextInput,N as agent,m as frameworkName,g as providerSchemas,j as serve,F as step,q as workflow};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RequestEvent } from '@sveltejs/kit';
|
|
2
|
-
import { S as ServeHandlerOptions } from '../index-
|
|
3
|
-
export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-
|
|
2
|
+
import { S as ServeHandlerOptions } from '../index-BCzJp-zE.js';
|
|
3
|
+
export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentDeliveryError, g as AgentEventEnum, h as AgentHandlers, i as AgentHistoryEntry, j as AgentMessage, k as AgentMessageAuthor, l as AgentPlatformContext, m as AgentReaction, n as AgentReplyPayload, o as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, p as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, q as ReplyHandle, r as SentMessageInfo, s as Signal, T as TriggerSignal, t as agent, w as workflow } from '../index-BCzJp-zE.js';
|
|
4
4
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
5
5
|
export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-CbMgjzR-.js';
|
|
6
6
|
import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,b as E,c as P,d as R,e as T,f as S,g as c,h as f,i as h,j as N,k as q,l as F,m as b,n as w,o as s,p as I}from"../chunk-
|
|
1
|
+
import{a as r,b as E,c as P,d as R,e as T,f as S,g as c,h as f,i as h,j as N,k as q,l as F,m as b,n as w,o as s,p as I}from"../chunk-TJFK73XZ.js";import"../chunk-T2VIX2ZH.js";import{a as k}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as G}from"../chunk-6GCCKYZC.js";import{a as y}from"../chunk-CBLKARLC.js";import{f as v}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var m="sveltekit",x=o=>{let t=new s({frameworkName:m,...o,handler:(u,e)=>({method:()=>u||e.request.method||"",body:()=>e.request.json(),headers:n=>e.request.headers.get(n),url:()=>{let n=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="dev"?"http":"https";return new URL(e.request.url,`${n}://${e.request.headers.get("host")||""}`)},transformResponse:({body:n,headers:d,status:a})=>{let l=r();return new l(n,{status:a,headers:d})}})}).createHandler(),p=t.bind(null,void 0);return Object.defineProperties(p,{GET:{value:t.bind(null,"GET")},POST:{value:t.bind(null,"POST")},OPTIONS:{value:t.bind(null,"OPTIONS")}})};export{P as Actions,F as AgentDeliveryError,w as AgentEventEnum,R as Button,T as Card,S as CardLink,c as CardText,E as Client,v as CronExpression,f as Divider,s as NovuRequestHandler,h as Select,N as SelectOption,G as SeverityLevelEnum,q as TextInput,b as agent,m as frameworkName,y as providerSchemas,x as serve,k as step,I as workflow};
|