@stateflowx/runtime 0.2.3 → 0.2.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/README.md CHANGED
@@ -121,6 +121,11 @@ Structured Response
121
121
 
122
122
  ---
123
123
 
124
+ ## Related Demos
125
+
126
+ - React Client Demo:
127
+ <https://github.com/bws9000/react-stateflowx-demo>
128
+
124
129
  ## Current Status
125
130
 
126
131
  StateFlowX Runtime is currently experimental and under active development.
@@ -3,17 +3,19 @@ import { HttpRuntimeModule } from '../http-runtime.module.js';
3
3
  import { HttpTransport } from '../core/transport/http/http.transport.js';
4
4
  import { JsonRpcProtocol } from '../core/protocol/json-rpc/json-rpc.protocol.js';
5
5
  import { createRuntime } from '../core/runtime/create-runtime.js';
6
+ import { bootstrapRuntime } from '../core/runtime/bootstrap.js';
6
7
  export async function bootstrapHttpRuntime(config = {}) {
7
8
  const app = await NestFactory.create(HttpRuntimeModule, {
8
9
  cors: true,
9
10
  });
10
11
  const transport = app.get(HttpTransport);
11
12
  const protocol = new JsonRpcProtocol();
12
- createRuntime({
13
+ const runtime = createRuntime({
13
14
  transport,
14
15
  protocol,
15
16
  ...config,
16
17
  });
18
+ bootstrapRuntime(config.apps ?? [], runtime);
17
19
  const port = config.port ?? 3000;
18
20
  await app.listen(port);
19
21
  console.log(`StateFlowX runtime listening on http://localhost:${port}/rpc`);
@@ -1 +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,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,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EAAE,CAAC;IAE1B,MAAM,OAAO,GACT,aAAa,CAAC;QACV,SAAS;QAET,QAAQ;QAER,GAAG,MAAM;KACZ,CAAC,CAAC;IAEP,gBAAgB,CACZ,MAAM,CAAC,IAAI,IAAI,EAAE,EACjB,OAAO,CACV,CAAC;IAEF,MAAM,IAAI,GACN,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC;IAExB,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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stateflowx/runtime",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
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": {