@flowgram.ai/runtime-nodejs 0.1.0-alpha.10 → 0.1.0-alpha.11

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/README.md CHANGED
@@ -12,5 +12,5 @@ pnpm build
12
12
 
13
13
  ## Running the server
14
14
  ```bash
15
- pnpm start
15
+ node dist/index.js
16
16
  ```
package/dist/index.js CHANGED
@@ -1,36 +1,12 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (let key of __getOwnPropNames(from))
11
- if (!__hasOwnProp.call(to, key) && key !== except)
12
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- }
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
- mod
23
- ));
24
-
25
1
  // src/server/index.ts
26
- var import_trpc_openapi2 = require("trpc-openapi");
27
- var import_fastify = __toESM(require("fastify"));
28
- var import_fastify2 = require("@trpc/server/adapters/fastify");
29
- var import_runtime_interface3 = require("@flowgram.ai/runtime-interface");
30
- var import_websocket = __toESM(require("@fastify/websocket"));
31
- var import_swagger_ui = __toESM(require("@fastify/swagger-ui"));
32
- var import_swagger = __toESM(require("@fastify/swagger"));
33
- var import_cors = __toESM(require("@fastify/cors"));
2
+ import { fastifyTRPCOpenApiPlugin } from "trpc-openapi";
3
+ import fastify from "fastify";
4
+ import { fastifyTRPCPlugin } from "@trpc/server/adapters/fastify";
5
+ import { ServerInfoDefine } from "@flowgram.ai/runtime-interface";
6
+ import ws from "@fastify/websocket";
7
+ import fastifySwaggerUI from "@fastify/swagger-ui";
8
+ import fastifySwagger from "@fastify/swagger";
9
+ import cors from "@fastify/cors";
34
10
 
35
11
  // src/config/index.ts
36
12
  var ServerConfig = {
@@ -46,11 +22,11 @@ var ServerConfig = {
46
22
  };
47
23
 
48
24
  // src/api/index.ts
49
- var import_runtime_interface2 = require("@flowgram.ai/runtime-interface");
25
+ import { FlowGramAPINames } from "@flowgram.ai/runtime-interface";
50
26
 
51
27
  // src/api/trpc.ts
52
- var import_server = require("@trpc/server");
53
- var t = import_server.initTRPC.context().meta().create({
28
+ import { initTRPC } from "@trpc/server";
29
+ var t = initTRPC.context().meta().create({
54
30
  errorFormatter({ shape }) {
55
31
  return shape;
56
32
  }
@@ -59,13 +35,13 @@ var router = t.router;
59
35
  var publicProcedure = t.procedure;
60
36
 
61
37
  // src/api/create-api.ts
62
- var import_zod = __toESM(require("zod"));
63
- var import_runtime_js = require("@flowgram.ai/runtime-js");
64
- var import_runtime_interface = require("@flowgram.ai/runtime-interface");
38
+ import z from "zod";
39
+ import { WorkflowRuntimeAPIs } from "@flowgram.ai/runtime-js";
40
+ import { FlowGramAPIMethod, FlowGramAPIs } from "@flowgram.ai/runtime-interface";
65
41
  var createAPI = (apiName) => {
66
- const define = import_runtime_interface.FlowGramAPIs[apiName];
67
- const caller = import_runtime_js.WorkflowRuntimeAPIs[apiName];
68
- if (define.method === import_runtime_interface.FlowGramAPIMethod.GET) {
42
+ const define = FlowGramAPIs[apiName];
43
+ const caller = WorkflowRuntimeAPIs[apiName];
44
+ if (define.method === FlowGramAPIMethod.GET) {
69
45
  const procedure2 = publicProcedure.meta({
70
46
  openapi: {
71
47
  method: define.method,
@@ -73,7 +49,7 @@ var createAPI = (apiName) => {
73
49
  summary: define.name,
74
50
  tags: [define.module]
75
51
  }
76
- }).input(define.schema.input).output(import_zod.default.union([define.schema.output, import_zod.default.undefined()])).query(async (opts) => {
52
+ }).input(define.schema.input).output(z.union([define.schema.output, z.undefined()])).query(async (opts) => {
77
53
  const input = opts.input;
78
54
  try {
79
55
  const output = await caller(input);
@@ -94,7 +70,7 @@ var createAPI = (apiName) => {
94
70
  summary: define.name,
95
71
  tags: [define.module]
96
72
  }
97
- }).input(define.schema.input).output(import_zod.default.union([define.schema.output, import_zod.default.undefined()])).mutation(async (opts) => {
73
+ }).input(define.schema.input).output(z.union([define.schema.output, z.undefined()])).mutation(async (opts) => {
98
74
  const input = opts.input;
99
75
  try {
100
76
  const output = await caller(input);
@@ -110,7 +86,7 @@ var createAPI = (apiName) => {
110
86
  };
111
87
 
112
88
  // src/api/index.ts
113
- var APIS = import_runtime_interface2.FlowGramAPINames.map((apiName) => createAPI(apiName));
89
+ var APIS = FlowGramAPINames.map((apiName) => createAPI(apiName));
114
90
  var routers = APIS.reduce((acc, api) => {
115
91
  acc[api.define.path] = api.procedure;
116
92
  return acc;
@@ -118,8 +94,8 @@ var routers = APIS.reduce((acc, api) => {
118
94
  var appRouter = router(routers);
119
95
 
120
96
  // src/server/docs.ts
121
- var import_trpc_openapi = require("trpc-openapi");
122
- var serverDocument = (0, import_trpc_openapi.generateOpenApiDocument)(appRouter, {
97
+ import { generateOpenApiDocument } from "trpc-openapi";
98
+ var serverDocument = generateOpenApiDocument(appRouter, {
123
99
  title: ServerConfig.title,
124
100
  description: ServerConfig.description,
125
101
  version: ServerConfig.version,
@@ -136,26 +112,26 @@ function createContext(ctx) {
136
112
 
137
113
  // src/server/index.ts
138
114
  async function createServer() {
139
- const server = (0, import_fastify.default)({ logger: ServerConfig.dev });
140
- await server.register(import_cors.default);
141
- await server.register(import_websocket.default);
142
- await server.register(import_fastify2.fastifyTRPCPlugin, {
115
+ const server = fastify({ logger: ServerConfig.dev });
116
+ await server.register(cors);
117
+ await server.register(ws);
118
+ await server.register(fastifyTRPCPlugin, {
143
119
  prefix: "/trpc",
144
120
  useWss: false,
145
121
  trpcOptions: { router: appRouter, createContext }
146
122
  });
147
- await server.register(import_trpc_openapi2.fastifyTRPCOpenApiPlugin, {
123
+ await server.register(fastifyTRPCOpenApiPlugin, {
148
124
  basePath: ServerConfig.basePath,
149
125
  router: appRouter,
150
126
  createContext
151
127
  });
152
- await server.register(import_swagger.default, {
128
+ await server.register(fastifySwagger, {
153
129
  mode: "static",
154
130
  specification: { document: serverDocument },
155
131
  uiConfig: { displayOperationId: true },
156
132
  exposeRoute: true
157
133
  });
158
- await server.register(import_swagger_ui.default, {
134
+ await server.register(fastifySwaggerUI, {
159
135
  routePrefix: ServerConfig.docsPath,
160
136
  uiConfig: {
161
137
  docExpansion: "full",
@@ -174,7 +150,7 @@ async function createServer() {
174
150
  transformSpecification: (swaggerObject, request, reply) => swaggerObject,
175
151
  transformSpecificationClone: true
176
152
  });
177
- server.get(import_runtime_interface3.ServerInfoDefine.path, async () => {
153
+ server.get(ServerInfoDefine.path, async () => {
178
154
  const serverTime = /* @__PURE__ */ new Date();
179
155
  const output = {
180
156
  name: ServerConfig.name,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/server/index.ts","../src/config/index.ts","../src/api/index.ts","../src/api/trpc.ts","../src/api/create-api.ts","../src/server/docs.ts","../src/server/context.ts","../src/index.ts"],"sourcesContent":["/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport { fastifyTRPCOpenApiPlugin } from 'trpc-openapi';\nimport fastify from 'fastify';\nimport { fastifyTRPCPlugin } from '@trpc/server/adapters/fastify';\nimport { ServerInfoDefine, type ServerInfoOutput } from '@flowgram.ai/runtime-interface';\nimport ws from '@fastify/websocket';\nimport fastifySwaggerUI from '@fastify/swagger-ui';\nimport fastifySwagger from '@fastify/swagger';\nimport cors from '@fastify/cors';\n\nimport { ServerConfig } from '@config/index';\nimport { appRouter } from '@api/index';\nimport { serverDocument } from './docs';\nimport { createContext } from './context';\n\nexport async function createServer() {\n const server = fastify({ logger: ServerConfig.dev });\n\n await server.register(cors);\n await server.register(ws);\n await server.register(fastifyTRPCPlugin, {\n prefix: '/trpc',\n useWss: false,\n trpcOptions: { router: appRouter, createContext },\n });\n await server.register(fastifyTRPCOpenApiPlugin, {\n basePath: ServerConfig.basePath,\n router: appRouter,\n createContext,\n } as any);\n\n await server.register(fastifySwagger, {\n mode: 'static',\n specification: { document: serverDocument },\n uiConfig: { displayOperationId: true },\n exposeRoute: true,\n } as any);\n\n await server.register(fastifySwaggerUI, {\n routePrefix: ServerConfig.docsPath,\n uiConfig: {\n docExpansion: 'full',\n deepLinking: false,\n },\n uiHooks: {\n onRequest: function (request, reply, next) {\n next();\n },\n preHandler: function (request, reply, next) {\n next();\n },\n },\n staticCSP: true,\n transformStaticCSP: (header) => header,\n transformSpecification: (swaggerObject, request, reply) => swaggerObject,\n transformSpecificationClone: true,\n });\n\n server.get(ServerInfoDefine.path, async (): Promise<ServerInfoOutput> => {\n const serverTime = new Date();\n const output: ServerInfoOutput = {\n name: ServerConfig.name,\n title: ServerConfig.title,\n description: ServerConfig.description,\n runtime: ServerConfig.runtime,\n version: ServerConfig.version,\n time: serverTime.toISOString(),\n };\n return output;\n });\n\n const stop = async () => {\n await server.close();\n };\n const start = async () => {\n try {\n const address = await server.listen({ port: ServerConfig.port });\n await server.ready();\n server.swagger();\n console.log(\n `> Listen Port: ${ServerConfig.port}\\n> Server Address: ${address}\\n> API Docs: http://localhost:4000/docs`\n );\n } catch (err) {\n server.log.error(err);\n process.exit(1);\n }\n };\n\n return { server, start, stop };\n}\n","/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport type { ServerParams } from '@server/type';\n\nexport const ServerConfig: ServerParams = {\n name: 'flowgram-runtime',\n title: 'FlowGram Runtime',\n description: 'FlowGram Runtime Demo',\n runtime: 'nodejs',\n version: '0.0.1',\n dev: false,\n port: 4000,\n basePath: '/api',\n docsPath: '/docs',\n};\n","/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport { FlowGramAPINames } from '@flowgram.ai/runtime-interface';\n\nimport { APIRouter } from './type';\nimport { router } from './trpc';\nimport { createAPI } from './create-api';\n\nconst APIS = FlowGramAPINames.map((apiName) => createAPI(apiName));\n\nexport const routers = APIS.reduce((acc, api) => {\n acc[api.define.path] = api.procedure;\n return acc;\n}, {} as APIRouter);\n\nexport const appRouter = router(routers);\n\nexport type AppRouter = typeof appRouter;\n","/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport { OpenApiMeta } from 'trpc-openapi';\nimport { initTRPC } from '@trpc/server';\n\nimport type { Context } from '../server/context';\n\nconst t = initTRPC\n .context<Context>()\n .meta<OpenApiMeta>()\n .create({\n errorFormatter({ shape }) {\n return shape;\n },\n });\n\nexport const router = t.router;\nexport const publicProcedure = t.procedure;\n","/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport z from 'zod';\nimport { WorkflowRuntimeAPIs } from '@flowgram.ai/runtime-js';\nimport { FlowGramAPIMethod, FlowGramAPIName, FlowGramAPIs } from '@flowgram.ai/runtime-interface';\n\nimport { APIHandler } from './type';\nimport { publicProcedure } from './trpc';\n\nexport const createAPI = (apiName: FlowGramAPIName): APIHandler => {\n const define = FlowGramAPIs[apiName];\n const caller = WorkflowRuntimeAPIs[apiName];\n if (define.method === FlowGramAPIMethod.GET) {\n const procedure = publicProcedure\n .meta({\n openapi: {\n method: define.method,\n path: define.path,\n summary: define.name,\n tags: [define.module],\n },\n })\n .input(define.schema.input)\n .output(z.union([define.schema.output, z.undefined()]))\n .query(async (opts) => {\n const input = opts.input;\n try {\n const output = await caller(input);\n return output;\n } catch {\n return undefined;\n }\n });\n\n return {\n define,\n procedure: procedure as any,\n };\n }\n\n const procedure = publicProcedure\n .meta({\n openapi: {\n method: define.method,\n path: define.path,\n summary: define.name,\n tags: [define.module],\n },\n })\n .input(define.schema.input)\n .output(z.union([define.schema.output, z.undefined()]))\n .mutation(async (opts) => {\n const input = opts.input;\n try {\n const output = await caller(input);\n return output;\n } catch {\n return undefined;\n }\n });\n return {\n define,\n procedure: procedure as any,\n };\n};\n","/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport { generateOpenApiDocument } from 'trpc-openapi';\n\nimport { ServerConfig } from '@config/index';\nimport { appRouter } from '@api/index';\n\n// Generate OpenAPI schema document\nexport const serverDocument = generateOpenApiDocument(appRouter, {\n title: ServerConfig.title,\n description: ServerConfig.description,\n version: ServerConfig.version,\n baseUrl: `http://localhost:${ServerConfig.port}${ServerConfig.basePath}`,\n docsUrl: 'https://flowgram.ai',\n tags: ['Task'],\n});\n","/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport type { CreateFastifyContextOptions } from '@trpc/server/adapters/fastify';\n\nexport function createContext(ctx: CreateFastifyContextOptions) {\n const { req, res } = ctx;\n return { req, res };\n}\n\nexport type Context = Awaited<ReturnType<typeof createContext>>;\n","/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport { createServer } from '@server/index';\n\nasync function main() {\n const server = await createServer();\n server.start();\n}\n\nmain();\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAAA,uBAAyC;AACzC,qBAAoB;AACpB,IAAAC,kBAAkC;AAClC,IAAAC,4BAAwD;AACxD,uBAAe;AACf,wBAA6B;AAC7B,qBAA2B;AAC3B,kBAAiB;;;ACLV,IAAM,eAA6B;AAAA,EACxC,MAAM;AAAA,EACN,OAA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MACnE;AAAA,IACF,SAAS,KAAK;AACZ,aAAO,IAAI,MAAM,GAAG;AACpB,cAAQ,KAAK,CAAC;AAAA,IAChB;AAAA,EACF;AAEA,SAAO,EAAE,QAAQ,OAAO,KAAK;AAC/B;;;AOtFA,eAAe,OAAO;AACpB,QAAM,SAAS,MAAM,aAAa;AAClC,SAAO,MAAM;AACf;AAEA,KAAK;","names":["import_trpc_openapi","import_fastify","import_runtime_interface","import_runtime_interface","procedure","z","fastify","cors","ws","fastifySwagger","fastifySwaggerUI"]}
1
+ {"version":3,"sources":["../src/server/index.ts","../src/config/index.ts","../src/api/index.ts","../src/api/trpc.ts","../src/api/create-api.ts","../src/server/docs.ts","../src/server/context.ts","../src/index.ts"],"sourcesContent":["/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport { fastifyTRPCOpenApiPlugin } from 'trpc-openapi';\nimport fastify from 'fastify';\nimport { fastifyTRPCPlugin } from '@trpc/server/adapters/fastify';\nimport { ServerInfoDefine, type ServerInfoOutput } from '@flowgram.ai/runtime-interface';\nimport ws from '@fastify/websocket';\nimport fastifySwaggerUI from '@fastify/swagger-ui';\nimport fastifySwagger from '@fastify/swagger';\nimport cors from '@fastify/cors';\n\nimport { ServerConfig } from '@config/index';\nimport { appRouter } from '@api/index';\nimport { serverDocument } from './docs';\nimport { createContext } from './context';\n\nexport async function createServer() {\n const server = fastify({ logger: ServerConfig.dev });\n\n await server.register(cors);\n await server.register(ws);\n await server.register(fastifyTRPCPlugin, {\n prefix: '/trpc',\n useWss: false,\n trpcOptions: { router: appRouter, createContext },\n });\n await server.register(fastifyTRPCOpenApiPlugin, {\n basePath: ServerConfig.basePath,\n router: appRouter,\n createContext,\n } as any);\n\n await server.register(fastifySwagger, {\n mode: 'static',\n specification: { document: serverDocument },\n uiConfig: { displayOperationId: true },\n exposeRoute: true,\n } as any);\n\n await server.register(fastifySwaggerUI, {\n routePrefix: ServerConfig.docsPath,\n uiConfig: {\n docExpansion: 'full',\n deepLinking: false,\n },\n uiHooks: {\n onRequest: function (request, reply, next) {\n next();\n },\n preHandler: function (request, reply, next) {\n next();\n },\n },\n staticCSP: true,\n transformStaticCSP: (header) => header,\n transformSpecification: (swaggerObject, request, reply) => swaggerObject,\n transformSpecificationClone: true,\n });\n\n server.get(ServerInfoDefine.path, async (): Promise<ServerInfoOutput> => {\n const serverTime = new Date();\n const output: ServerInfoOutput = {\n name: ServerConfig.name,\n title: ServerConfig.title,\n description: ServerConfig.description,\n runtime: ServerConfig.runtime,\n version: ServerConfig.version,\n time: serverTime.toISOString(),\n };\n return output;\n });\n\n const stop = async () => {\n await server.close();\n };\n const start = async () => {\n try {\n const address = await server.listen({ port: ServerConfig.port });\n await server.ready();\n server.swagger();\n console.log(\n `> Listen Port: ${ServerConfig.port}\\n> Server Address: ${address}\\n> API Docs: http://localhost:4000/docs`\n );\n } catch (err) {\n server.log.error(err);\n process.exit(1);\n }\n };\n\n return { server, start, stop };\n}\n","/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport type { ServerParams } from '@server/type';\n\nexport const ServerConfig: ServerParams = {\n name: 'flowgram-runtime',\n title: 'FlowGram Runtime',\n description: 'FlowGram Runtime Demo',\n runtime: 'nodejs',\n version: '0.0.1',\n dev: false,\n port: 4000,\n basePath: '/api',\n docsPath: '/docs',\n};\n","/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport { FlowGramAPINames } from '@flowgram.ai/runtime-interface';\n\nimport { APIRouter } from './type';\nimport { router } from './trpc';\nimport { createAPI } from './create-api';\n\nconst APIS = FlowGramAPINames.map((apiName) => createAPI(apiName));\n\nexport const routers = APIS.reduce((acc, api) => {\n acc[api.define.path] = api.procedure;\n return acc;\n}, {} as APIRouter);\n\nexport const appRouter = router(routers);\n\nexport type AppRouter = typeof appRouter;\n","/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport { OpenApiMeta } from 'trpc-openapi';\nimport { initTRPC } from '@trpc/server';\n\nimport type { Context } from '../server/context';\n\nconst t = initTRPC\n .context<Context>()\n .meta<OpenApiMeta>()\n .create({\n errorFormatter({ shape }) {\n return shape;\n },\n });\n\nexport const router = t.router;\nexport const publicProcedure = t.procedure;\n","/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport z from 'zod';\nimport { WorkflowRuntimeAPIs } from '@flowgram.ai/runtime-js';\nimport { FlowGramAPIMethod, FlowGramAPIName, FlowGramAPIs } from '@flowgram.ai/runtime-interface';\n\nimport { APIHandler } from './type';\nimport { publicProcedure } from './trpc';\n\nexport const createAPI = (apiName: FlowGramAPIName): APIHandler => {\n const define = FlowGramAPIs[apiName];\n const caller = WorkflowRuntimeAPIs[apiName];\n if (define.method === FlowGramAPIMethod.GET) {\n const procedure = publicProcedure\n .meta({\n openapi: {\n method: define.method,\n path: define.path,\n summary: define.name,\n tags: [define.module],\n },\n })\n .input(define.schema.input)\n .output(z.union([define.schema.output, z.undefined()]))\n .query(async (opts) => {\n const input = opts.input;\n try {\n const output = await caller(input);\n return output;\n } catch {\n return undefined;\n }\n });\n\n return {\n define,\n procedure: procedure as any,\n };\n }\n\n const procedure = publicProcedure\n .meta({\n openapi: {\n method: define.method,\n path: define.path,\n summary: define.name,\n tags: [define.module],\n },\n })\n .input(define.schema.input)\n .output(z.union([define.schema.output, z.undefined()]))\n .mutation(async (opts) => {\n const input = opts.input;\n try {\n const output = await caller(input);\n return output;\n } catch {\n return undefined;\n }\n });\n return {\n define,\n procedure: procedure as any,\n };\n};\n","/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport { generateOpenApiDocument } from 'trpc-openapi';\n\nimport { ServerConfig } from '@config/index';\nimport { appRouter } from '@api/index';\n\n// Generate OpenAPI schema document\nexport const serverDocument = generateOpenApiDocument(appRouter, {\n title: ServerConfig.title,\n description: ServerConfig.description,\n version: ServerConfig.version,\n baseUrl: `http://localhost:${ServerConfig.port}${ServerConfig.basePath}`,\n docsUrl: 'https://flowgram.ai',\n tags: ['Task'],\n});\n","/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport type { CreateFastifyContextOptions } from '@trpc/server/adapters/fastify';\n\nexport function createContext(ctx: CreateFastifyContextOptions) {\n const { req, res } = ctx;\n return { req, res };\n}\n\nexport type Context = Awaited<ReturnType<typeof createContext>>;\n","/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport { createServer } from '@server/index';\n\nasync function main() {\n const server = await createServer();\n server.start();\n}\n\nmain();\n"],"mappings":";AAKA,SAAS,gCAAgC;AACzC,OAAO,aAAa;AACpB,SAAS,yBAAyB;AAClC,SAAS,wBAA+C;AACxD,OAAO,QAAQ;AACf,OAAO,sBAAsB;AAC7B,OAAO,oBAAoB;AAC3B,OAAO,UAAU;;;ACLV,IAAM,eAA6B;AAAA,EACxC,MAAM;AAAA,EACN,OAAO;AAAA,EACP,aAAa;AAAA,EACb,SAAS;AAAA,EACT,SAAS;AAAA,EACT,KAAK;AAAA,EACL,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AACZ;;;ACZA,SAAS,wBAAwB;;;ACCjC,SAAS,gBAAgB;AAIzB,IAAM,IAAI,SACP,QAAiB,EACjB,KAAkB,EAClB,OAAO;AAAA,EACN,eAAe,EAAE,MAAM,GAAG;AACxB,WAAO;AAAA,EACT;AACF,CAAC;AAEI,IAAM,SAAS,EAAE;AACjB,IAAM,kBAAkB,EAAE;;;ACfjC,OAAO,OAAO;AACd,SAAS,2BAA2B;AACpC,SAAS,mBAAoC,oBAAoB;AAK1D,IAAM,YAAY,CAAC,YAAyC;AACjE,QAAM,SAAS,aAAa,OAAO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;AAAA,MACP;AAAA,IACF;AAAA,IACA,WAAW;AAAA,IACX,oBAAoB,CAAC,WAAW;AAAA,IAChC,wBAAwB,CAAC,eAAe,SAAS,UAAU;AAAA,IAC3D,6BAA6B;AAAA,EAC/B,CAAC;AAED,SAAO,IAAI,iBAAiB,MAAM,YAAuC;AACvE,UAAM,aAAa,oBAAI,KAAK;AAC5B,UAAM,SAA2B;AAAA,MAC/B,MAAM,aAAa;AAAA,MACnB,OAAO,aAAa;AAAA,MACpB,aAAa,aAAa;AAAA,MAC1B,SAAS,aAAa;AAAA,MACtB,SAAS,aAAa;AAAA,MACtB,MAAM,WAAW,YAAY;AAAA,IAC/B;AACA,WAAO;AAAA,EACT,CAAC;AAED,QAAM,OAAO,YAAY;AACvB,UAAM,OAAO,MAAM;AAAA,EACrB;AACA,QAAM,QAAQ,YAAY;AACxB,QAAI;AACF,YAAM,UAAU,MAAM,OAAO,OAAO,EAAE,MAAM,aAAa,KAAK,CAAC;AAC/D,YAAM,OAAO,MAAM;AACnB,aAAO,QAAQ;AACf,cAAQ;AAAA,QACN,kBAAkB,aAAa,IAAI;AAAA,oBAAuB,OAAO;AAAA;AAAA,MACnE;AAAA,IACF,SAAS,KAAK;AACZ,aAAO,IAAI,MAAM,GAAG;AACpB,cAAQ,KAAK,CAAC;AAAA,IAChB;AAAA,EACF;AAEA,SAAO,EAAE,QAAQ,OAAO,KAAK;AAC/B;;;AOtFA,eAAe,OAAO;AACpB,QAAM,SAAS,MAAM,aAAa;AAClC,SAAO,MAAM;AACf;AAEA,KAAK;","names":["procedure"]}
package/package.json CHANGED
@@ -1,9 +1,19 @@
1
1
  {
2
2
  "name": "@flowgram.ai/runtime-nodejs",
3
- "version": "0.1.0-alpha.10",
4
- "description": "",
5
- "keywords": [],
3
+ "version": "0.1.0-alpha.11",
4
+ "homepage": "https://flowgram.ai/",
5
+ "repository": "https://github.com/bytedance/flowgram.ai",
6
6
  "license": "MIT",
7
+ "type": "module",
8
+ "exports": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js"
11
+ },
12
+ "module": "./dist/index.js",
13
+ "types": "./dist/index.d.ts",
14
+ "files": [
15
+ "dist"
16
+ ],
7
17
  "dependencies": {
8
18
  "@fastify/cors": "^8.2.1",
9
19
  "@fastify/swagger": "^8.5.1",
@@ -18,8 +28,8 @@
18
28
  "lodash-es": "^4.17.21",
19
29
  "ws": "^8.0.0",
20
30
  "zod": "^3.24.4",
21
- "@flowgram.ai/runtime-interface": "0.1.0-alpha.10",
22
- "@flowgram.ai/runtime-js": "0.1.0-alpha.10"
31
+ "@flowgram.ai/runtime-js": "0.1.0-alpha.11",
32
+ "@flowgram.ai/runtime-interface": "0.1.0-alpha.11"
23
33
  },
24
34
  "devDependencies": {
25
35
  "@types/cors": "^2.8.13",
@@ -30,7 +40,7 @@
30
40
  "eslint": "^8.54.0",
31
41
  "npm-run-all": "^4.1.5",
32
42
  "@babel/eslint-parser": "~7.19.1",
33
- "typescript": "^5.0.4",
43
+ "typescript": "^5.8.3",
34
44
  "tsup": "^8.0.1",
35
45
  "tsx": "~4.19.4",
36
46
  "eslint-plugin-json": "^4.0.1",
@@ -40,8 +50,8 @@
40
50
  "@vitest/coverage-v8": "^0.32.0",
41
51
  "vitest": "^0.34.6",
42
52
  "wait-port": "^1.0.1",
43
- "@flowgram.ai/ts-config": "0.1.0-alpha.10",
44
- "@flowgram.ai/eslint-config": "0.1.0-alpha.10"
53
+ "@flowgram.ai/ts-config": "0.1.0-alpha.11",
54
+ "@flowgram.ai/eslint-config": "0.1.0-alpha.11"
45
55
  },
46
56
  "publishConfig": {
47
57
  "access": "public",
@@ -50,7 +60,7 @@
50
60
  "scripts": {
51
61
  "dev": "tsx watch src",
52
62
  "build": "npm run build:fast -- --dts-resolve",
53
- "build:fast": "tsup src/index.ts --format cjs,esm --sourcemap --legacy-output",
63
+ "build:fast": "tsup src/index.ts --format esm --sourcemap --out-dir dist",
54
64
  "build:watch": "npm run build:fast -- --dts-resolve",
55
65
  "lint": "eslint --cache src",
56
66
  "lint-fix": "eslint --fix src",
package/.eslintignore DELETED
@@ -1 +0,0 @@
1
- .eslintrc.cjs
package/.eslintrc.cjs DELETED
@@ -1,29 +0,0 @@
1
- /**
2
- * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
3
- * SPDX-License-Identifier: MIT
4
- */
5
-
6
- const { defineConfig } = require('@flowgram.ai/eslint-config');
7
-
8
- module.exports = defineConfig({
9
- parser: '@typescript-eslint/parser',
10
- preset: 'node',
11
- packageRoot: __dirname,
12
- parserOptions: {
13
- requireConfigFile: false,
14
- ecmaVersion: 2017,
15
- sourceType: "module",
16
- ecmaFeatures: {
17
- modules: true,
18
- }
19
- },
20
- rules: {
21
- 'no-console': 'off',
22
- },
23
- plugins: ['json', '@typescript-eslint'],
24
- settings: {
25
- react: {
26
- version: '18',
27
- },
28
- },
29
- });
@@ -1,21 +0,0 @@
1
- {"kind":"O","text":"Invoking: npm run build:fast -- --dts-resolve \n"}
2
- {"kind":"O","text":"\n"}
3
- {"kind":"O","text":"> @flowgram.ai/runtime-nodejs@0.1.0 build:fast\n"}
4
- {"kind":"O","text":"> tsup src/index.ts --format cjs,esm --sourcemap --legacy-output --dts-resolve\n"}
5
- {"kind":"O","text":"\n"}
6
- {"kind":"O","text":"\u001b[34mCLI\u001b[39m Building entry: src/index.ts\n"}
7
- {"kind":"O","text":"\u001b[34mCLI\u001b[39m Using tsconfig: tsconfig.json\n"}
8
- {"kind":"O","text":"\u001b[34mCLI\u001b[39m tsup v8.3.5\n"}
9
- {"kind":"O","text":"\u001b[34mCLI\u001b[39m Target: esnext\n"}
10
- {"kind":"O","text":"\u001b[34mCJS\u001b[39m Build start\n"}
11
- {"kind":"O","text":"\u001b[34mESM\u001b[39m Build start\n"}
12
- {"kind":"O","text":"\u001b[32mESM\u001b[39m \u001b[1mdist/esm/index.js \u001b[22m\u001b[32m5.09 KB\u001b[39m\n"}
13
- {"kind":"O","text":"\u001b[32mESM\u001b[39m \u001b[1mdist/esm/index.js.map \u001b[22m\u001b[32m10.94 KB\u001b[39m\n"}
14
- {"kind":"O","text":"\u001b[32mESM\u001b[39m ⚡️ Build success in 55ms\n"}
15
- {"kind":"O","text":"\u001b[32mCJS\u001b[39m \u001b[1mdist/index.js \u001b[22m\u001b[32m6.67 KB\u001b[39m\n"}
16
- {"kind":"O","text":"\u001b[32mCJS\u001b[39m \u001b[1mdist/index.js.map \u001b[22m\u001b[32m11.10 KB\u001b[39m\n"}
17
- {"kind":"O","text":"\u001b[32mCJS\u001b[39m ⚡️ Build success in 56ms\n"}
18
- {"kind":"O","text":"\u001b[34mDTS\u001b[39m Build start\n"}
19
- {"kind":"O","text":"\u001b[32mDTS\u001b[39m ⚡️ Build success in 5676ms\n"}
20
- {"kind":"O","text":"\u001b[32mDTS\u001b[39m \u001b[1mdist/index.d.ts \u001b[22m\u001b[32m13.00 B\u001b[39m\n"}
21
- {"kind":"O","text":"\u001b[32mDTS\u001b[39m \u001b[1mdist/index.d.mts \u001b[22m\u001b[32m13.00 B\u001b[39m\n"}
@@ -1,23 +0,0 @@
1
- {
2
- "files": {
3
- "packages/runtime/nodejs/.eslintignore": "cf64a52f02394efe72596e139e57b1578da2a3ef",
4
- "packages/runtime/nodejs/.eslintrc.cjs": "c180e7cab4f101d243eceb563e48596c93d52dc0",
5
- "packages/runtime/nodejs/.gitignore": "5ef6a520780202a1d6addd833d800ccb1ecac0bb",
6
- "packages/runtime/nodejs/.rush/temp/shrinkwrap-deps.json": "47f74b0dbbf0c43302dfab567a638e7addfeb0b7",
7
- "packages/runtime/nodejs/README.md": "d7615d898b67036fde30bfa0de1f0dc10621361a",
8
- "packages/runtime/nodejs/package.json": "3e5571ae5603fec0ffebea08a8c0b50cf9cbf8f9",
9
- "packages/runtime/nodejs/src/api/create-api.ts": "473b7a5aa0aec44ef72572e74d4440f958608f82",
10
- "packages/runtime/nodejs/src/api/index.ts": "ffae37adf855bd02fb447b05f8b92f00ac3ca32f",
11
- "packages/runtime/nodejs/src/api/trpc.ts": "a21b0b400704420c1fa9093d35ac4f3185be6f84",
12
- "packages/runtime/nodejs/src/api/type.ts": "cd943a7b96b70397ecd013158b5d4747d6955ce3",
13
- "packages/runtime/nodejs/src/config/index.ts": "71d651c9f4dfce2c1b39d752b63f70cd1b97113e",
14
- "packages/runtime/nodejs/src/index.ts": "56657d1a705458e750376c979d8b28312542fa95",
15
- "packages/runtime/nodejs/src/server/context.ts": "d058e5890d3447a7f64b2a3d5c389986543869df",
16
- "packages/runtime/nodejs/src/server/docs.ts": "5a15f84f6a9f6db377d1879665ea9e24ed81bbb6",
17
- "packages/runtime/nodejs/src/server/index.ts": "0e6721b88f77f9374136473aeb8fa147eea853d7",
18
- "packages/runtime/nodejs/src/server/type.ts": "142449bcfb70e3d9ebeedee38909e96a1ebbeabf",
19
- "packages/runtime/nodejs/tsconfig.json": "26bd95eae3ae3f584a1ef9c1be2e99b776e0eb4a",
20
- "packages/runtime/nodejs/vitest.config.ts": "67ff26553f389cf7d5135e06fdad942ca1bf5a60"
21
- },
22
- "arguments": "npm run build:fast -- --dts-resolve "
23
- }