@stateflowx/runtime 0.2.0 → 0.2.2

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.
@@ -0,0 +1 @@
1
+ export declare function bootstrapHttpRuntime(config?: any): Promise<import("@nestjs/common").INestApplication<any>>;
@@ -0,0 +1,22 @@
1
+ import { NestFactory } from '@nestjs/core';
2
+ import { AppModule } from '../app.module.js';
3
+ import { HttpTransport } from '../core/transport/http/http.transport.js';
4
+ import { JsonRpcProtocol } from '../core/protocol/json-rpc/json-rpc.protocol.js';
5
+ import { createRuntime } from '../core/runtime/create-runtime.js';
6
+ export async function bootstrapHttpRuntime(config = {}) {
7
+ const app = await NestFactory.create(AppModule, {
8
+ cors: true,
9
+ });
10
+ const transport = app.get(HttpTransport);
11
+ const protocol = new JsonRpcProtocol();
12
+ createRuntime({
13
+ transport,
14
+ protocol,
15
+ ...config,
16
+ });
17
+ const port = config.port ?? 3000;
18
+ await app.listen(port);
19
+ console.log(`StateFlowX runtime listening on http://localhost:${port}/rpc`);
20
+ return app;
21
+ }
22
+ //# sourceMappingURL=bootstrap-http-runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bootstrap-http-runtime.js","sourceRoot":"","sources":["../../src/http/bootstrap-http-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACtC,SAAc,EAAE;IAGhB,MAAM,GAAG,GACL,MAAM,WAAW,CAAC,MAAM,CACpB,SAAS,EACT;QACI,IAAI,EAAE,IAAI;KACb,CACJ,CAAC;IAEN,MAAM,SAAS,GACX,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAE3B,MAAM,QAAQ,GACV,IAAI,eAAe,EAAE,CAAC;IAE1B,aAAa,CAAC;QACV,SAAS;QACT,QAAQ;QACR,GAAG,MAAM;KACZ,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC;IAEjC,MAAM,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAEvB,OAAO,CAAC,GAAG,CACP,oDAAoD,IAAI,MAAM,CACjE,CAAC;IAEF,OAAO,GAAG,CAAC;AACf,CAAC"}
package/dist/index.d.ts CHANGED
@@ -4,3 +4,5 @@ export * from './core/transport/ws/ws.transport.js';
4
4
  export * from './core/runtime/bootstrap.js';
5
5
  export * from './core/provider/providers/gemini.provider.js';
6
6
  export * from './core/transport/http/http.transport.js';
7
+ export * from './core/protocol/json-rpc/json-rpc.protocol.js';
8
+ export * from './http/bootstrap-http-runtime.js';
package/dist/index.js CHANGED
@@ -4,4 +4,6 @@ export * from './core/transport/ws/ws.transport.js';
4
4
  export * from './core/runtime/bootstrap.js';
5
5
  export * from './core/provider/providers/gemini.provider.js';
6
6
  export * from './core/transport/http/http.transport.js';
7
+ export * from './core/protocol/json-rpc/json-rpc.protocol.js';
8
+ export * from './http/bootstrap-http-runtime.js';
7
9
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kCAAkC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stateflowx/runtime",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Realtime orchestration runtime framework for AI workflows and distributed systems.",
5
5
  "author": "Burt Snyder <snyder.burt@gmail.com>",
6
6
  "repository": {