@llmops/app 1.0.0-beta.13 → 1.0.0-beta.14

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/index.cjs CHANGED
@@ -14182,6 +14182,13 @@ function createBatchWriter(deps, config$1 = {}) {
14182
14182
  function enqueue(request) {
14183
14183
  queue.push(request);
14184
14184
  log(`[BatchWriter] Enqueued request ${request.requestId}, queue size: ${queue.length}`);
14185
+ if (typeof globalThis.process === "undefined" || !globalThis.process?.versions?.node) {
14186
+ flush().catch((err) => {
14187
+ const errorMsg = err instanceof Error ? err.message : String(err);
14188
+ __llmops_core.logger.error(`[BatchWriter] Edge flush error: ${errorMsg}`);
14189
+ });
14190
+ return;
14191
+ }
14185
14192
  if (!running) start();
14186
14193
  if (queue.length >= maxBatchSize) {
14187
14194
  log(`[BatchWriter] Max batch size reached, forcing flush`);
@@ -14381,6 +14388,13 @@ function createTraceBatchWriter(deps, config$1 = {}) {
14381
14388
  function enqueue(item) {
14382
14389
  queue.push(item);
14383
14390
  log(`[TraceBatchWriter] Enqueued span ${item.span.spanId}, queue size: ${queue.length}`);
14391
+ if (typeof globalThis.process === "undefined" || !globalThis.process?.versions?.node) {
14392
+ flush().catch((err) => {
14393
+ const errorMsg = err instanceof Error ? err.message : String(err);
14394
+ __llmops_core.logger.error(`[TraceBatchWriter] Edge flush error: ${errorMsg}`);
14395
+ });
14396
+ return;
14397
+ }
14384
14398
  if (!running) start();
14385
14399
  if (queue.length >= maxBatchSize) {
14386
14400
  log(`[TraceBatchWriter] Max batch size reached, forcing flush`);
package/dist/index.mjs CHANGED
@@ -14156,6 +14156,13 @@ function createBatchWriter(deps, config$1 = {}) {
14156
14156
  function enqueue(request) {
14157
14157
  queue.push(request);
14158
14158
  log(`[BatchWriter] Enqueued request ${request.requestId}, queue size: ${queue.length}`);
14159
+ if (typeof globalThis.process === "undefined" || !globalThis.process?.versions?.node) {
14160
+ flush().catch((err) => {
14161
+ const errorMsg = err instanceof Error ? err.message : String(err);
14162
+ logger.error(`[BatchWriter] Edge flush error: ${errorMsg}`);
14163
+ });
14164
+ return;
14165
+ }
14159
14166
  if (!running) start();
14160
14167
  if (queue.length >= maxBatchSize) {
14161
14168
  log(`[BatchWriter] Max batch size reached, forcing flush`);
@@ -14355,6 +14362,13 @@ function createTraceBatchWriter(deps, config$1 = {}) {
14355
14362
  function enqueue(item) {
14356
14363
  queue.push(item);
14357
14364
  log(`[TraceBatchWriter] Enqueued span ${item.span.spanId}, queue size: ${queue.length}`);
14365
+ if (typeof globalThis.process === "undefined" || !globalThis.process?.versions?.node) {
14366
+ flush().catch((err) => {
14367
+ const errorMsg = err instanceof Error ? err.message : String(err);
14368
+ logger.error(`[TraceBatchWriter] Edge flush error: ${errorMsg}`);
14369
+ });
14370
+ return;
14371
+ }
14358
14372
  if (!running) start();
14359
14373
  if (queue.length >= maxBatchSize) {
14360
14374
  log(`[TraceBatchWriter] Max batch size reached, forcing flush`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llmops/app",
3
- "version": "1.0.0-beta.13",
3
+ "version": "1.0.0-beta.14",
4
4
  "description": "LLMOps application with server and client",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -75,9 +75,9 @@
75
75
  "react-hook-form": "^7.68.0",
76
76
  "recharts": "^3.6.0",
77
77
  "uuid": "^13.0.0",
78
- "@llmops/core": "^1.0.0-beta.13",
79
- "@llmops/gateway": "^1.0.0-beta.13",
80
- "@llmops/sdk": "^1.0.0-beta.13"
78
+ "@llmops/gateway": "^1.0.0-beta.14",
79
+ "@llmops/sdk": "^1.0.0-beta.14",
80
+ "@llmops/core": "^1.0.0-beta.14"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "react": "^19.2.1",