@langwatch/server 3.1.0-beta.12 → 3.1.0-beta.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langwatch/server",
3
- "version": "3.1.0-beta.12",
3
+ "version": "3.1.0-beta.13",
4
4
  "description": "Run LangWatch locally with one command — `npx @langwatch/server`. Bundles the Next.js control plane, Python NLP service, evaluators, and the Go AI gateway with embedded postgres, redis, and clickhouse.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://langwatch.ai",
@@ -22978,6 +22978,42 @@ var init_langwatch = __esm({
22978
22978
  }
22979
22979
  });
22980
22980
 
22981
+ // src/services/langwatch-workers.ts
22982
+ function startLangwatchWorkers(ctx, bus, envFromFile) {
22983
+ bus.emit({ type: "starting", service: "workers" });
22984
+ const langwatchDir = locateLangwatchDir();
22985
+ if (!langwatchDir) throw new Error("langwatch app dir not found");
22986
+ const sp = servicePaths(ctx.paths);
22987
+ const handle = supervise({
22988
+ spec: {
22989
+ name: "workers",
22990
+ command: "pnpm",
22991
+ args: ["run", "start:workers"],
22992
+ cwd: langwatchDir,
22993
+ env: {
22994
+ ...process.env,
22995
+ ...envFromFile,
22996
+ NODE_ENV: "production",
22997
+ // PORT isn't used by workers but we set it for symmetry with the
22998
+ // app — some shared bootstrap code reads it for log tagging.
22999
+ PORT: String(ctx.ports.langwatch)
23000
+ }
23001
+ },
23002
+ paths: sp,
23003
+ bus
23004
+ });
23005
+ bus.emit({ type: "healthy", service: "workers", durationMs: 0 });
23006
+ return handle;
23007
+ }
23008
+ var init_langwatch_workers = __esm({
23009
+ "src/services/langwatch-workers.ts"() {
23010
+ "use strict";
23011
+ init_node_deps();
23012
+ init_paths2();
23013
+ init_spawn();
23014
+ }
23015
+ });
23016
+
22981
23017
  // src/services/langwatch-nlp.ts
22982
23018
  async function startLangwatchNlp(ctx, bus, envFromFile) {
22983
23019
  bus.emit({ type: "starting", service: "langwatch_nlp" });
@@ -23407,6 +23443,7 @@ var init_runtime = __esm({
23407
23443
  init_event_bus();
23408
23444
  init_langevals();
23409
23445
  init_langwatch();
23446
+ init_langwatch_workers();
23410
23447
  init_langwatch_nlp();
23411
23448
  init_migrate();
23412
23449
  init_node_deps();
@@ -23451,6 +23488,8 @@ var init_runtime = __esm({
23451
23488
  startLangwatch(ctx, bus, childEnv)
23452
23489
  ]);
23453
23490
  handles.push(nlp, langevals, gw, lw);
23491
+ const workers = startLangwatchWorkers(ctx, bus, childEnv);
23492
+ handles.push(workers);
23454
23493
  } catch (err) {
23455
23494
  await stopHandles(handles);
23456
23495
  throw err;
@@ -26836,7 +26875,7 @@ var placeholderRuntime = {
26836
26875
  };
26837
26876
 
26838
26877
  // src/cli.ts
26839
- var VERSION = true ? "3.1.0-beta.12" : "0.0.0-dev";
26878
+ var VERSION = true ? "3.1.0-beta.13" : "0.0.0-dev";
26840
26879
  async function loadRuntime() {
26841
26880
  try {
26842
26881
  const real = await Promise.resolve().then(() => (init_runtime(), runtime_exports));