@corva/ui 3.77.0-20 → 3.77.0-22
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/cjs-bundle/config/mapbox/index.js +1 -1
- package/cjs-bundle/config/mapbox/index.js.map +1 -1
- package/config/mapbox/index.d.ts.map +1 -1
- package/config/mapbox/index.js +1 -1
- package/config/mapbox/index.js.map +1 -1
- package/mcp-server/server.mjs +18 -9
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="true"===process.env.REACT_APP_MAPBOX_ENABLED;exports.IS_MAPBOX_ENABLED=
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("mapbox-gl")),o="true"===process.env.REACT_APP_MAPBOX_ENABLED&&t.default.supported();exports.IS_MAPBOX_ENABLED=o,exports.MAP_BOX_ACCESS_TOKEN="pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/config/mapbox/index.js"],"sourcesContent":["// NOTE: Access token from Jim Wang\nexport const MAP_BOX_ACCESS_TOKEN =\n 'pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw';\n\n// Airgapped deployments cannot reach api.mapbox.com, so their maps must never mount.\n// The host app inlines this at its own build (corva-web-frontend maps VITE_ to REACT_APP_).\nexport const IS_MAPBOX_ENABLED
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/config/mapbox/index.js"],"sourcesContent":["import mapboxgl from 'mapbox-gl';\n\n// NOTE: Access token from Jim Wang\nexport const MAP_BOX_ACCESS_TOKEN =\n 'pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw';\n\n// Airgapped deployments cannot reach api.mapbox.com, so their maps must never mount.\n// The host app inlines this at its own build (corva-web-frontend maps VITE_ to REACT_APP_).\n// Mapbox needs a WebGL2 context; where there is none its Map constructor throws and\n// takes the whole host app down. The scheduled PDF report renderer is headless with\n// no GPU, so treat that the same way as an airgapped deployment and never mount.\n// mapboxgl.supported() is the library's own check, so it tracks whatever the pinned\n// version actually requires — 3.x needs WebGL2, a shader that compiles, workers and\n// canvas readback, none of which a plain getContext probe would catch.\nexport const IS_MAPBOX_ENABLED =\n process.env.REACT_APP_MAPBOX_ENABLED === 'true' && mapboxgl.supported();\n"],"names":["IS_MAPBOX_ENABLED","process","env","REACT_APP_MAPBOX_ENABLED","mapboxgl","supported"],"mappings":"0KAcaA,EAC8B,SAAzCC,QAAQC,IAAIC,0BAAuCC,EAAQ,QAACC,qEAX5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/mapbox/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/mapbox/index.js"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,+FAC6D,CAAC;AAU/F,eAAO,MAAM,iBAAiB,SAC2C,CAAC"}
|
package/config/mapbox/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
import o from"mapbox-gl";var p="pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw",e="true"===process.env.REACT_APP_MAPBOX_ENABLED&&o.supported();export{e as IS_MAPBOX_ENABLED,p as MAP_BOX_ACCESS_TOKEN};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/config/mapbox/index.js"],"sourcesContent":["// NOTE: Access token from Jim Wang\nexport const MAP_BOX_ACCESS_TOKEN =\n 'pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw';\n\n// Airgapped deployments cannot reach api.mapbox.com, so their maps must never mount.\n// The host app inlines this at its own build (corva-web-frontend maps VITE_ to REACT_APP_).\nexport const IS_MAPBOX_ENABLED
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/config/mapbox/index.js"],"sourcesContent":["import mapboxgl from 'mapbox-gl';\n\n// NOTE: Access token from Jim Wang\nexport const MAP_BOX_ACCESS_TOKEN =\n 'pk.eyJ1IjoiY29ydmEtYWkiLCJhIjoiY2tzeXg1Ym84Mm53NjJvbnZvZ3JxajVwayJ9.3B6ubssBj1UCqN5o25X6pw';\n\n// Airgapped deployments cannot reach api.mapbox.com, so their maps must never mount.\n// The host app inlines this at its own build (corva-web-frontend maps VITE_ to REACT_APP_).\n// Mapbox needs a WebGL2 context; where there is none its Map constructor throws and\n// takes the whole host app down. The scheduled PDF report renderer is headless with\n// no GPU, so treat that the same way as an airgapped deployment and never mount.\n// mapboxgl.supported() is the library's own check, so it tracks whatever the pinned\n// version actually requires — 3.x needs WebGL2, a shader that compiles, workers and\n// canvas readback, none of which a plain getContext probe would catch.\nexport const IS_MAPBOX_ENABLED =\n process.env.REACT_APP_MAPBOX_ENABLED === 'true' && mapboxgl.supported();\n"],"names":["MAP_BOX_ACCESS_TOKEN","IS_MAPBOX_ENABLED","process","env","REACT_APP_MAPBOX_ENABLED","mapboxgl","supported"],"mappings":"yBAGO,IAAMA,EACX,6FAUWC,EAC8B,SAAzCC,QAAQC,IAAIC,0BAAuCC,EAASC"}
|
package/mcp-server/server.mjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import 'dotenv/config';
|
|
3
3
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
4
4
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
5
|
+
import { OTLPMetricExporter, AggregationTemporalityPreference } from '@opentelemetry/exporter-metrics-otlp-http';
|
|
5
6
|
import { MeterProvider, PeriodicExportingMetricReader } from '@opentelemetry/sdk-metrics';
|
|
6
|
-
import { OTLPMetricExporter } from '@opentelemetry/exporter-metrics-otlp-http';
|
|
7
7
|
import { SpanKind, SpanStatusCode, propagation, context } from '@opentelemetry/api';
|
|
8
8
|
import { NodeTracerProvider, TraceIdRatioBasedSampler, SimpleSpanProcessor } from '@opentelemetry/sdk-trace-node';
|
|
9
9
|
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
|
|
@@ -246,9 +246,9 @@ const validateDsn = dsn => {
|
|
|
246
246
|
return url.href;
|
|
247
247
|
};
|
|
248
248
|
|
|
249
|
-
const MCP_SERVER_VERSION = '1.5.
|
|
249
|
+
const MCP_SERVER_VERSION = '1.5.1';
|
|
250
250
|
|
|
251
|
-
var version = "3.77.0-
|
|
251
|
+
var version = "3.77.0-22";
|
|
252
252
|
|
|
253
253
|
const CORVA_UI_VERSION = version;
|
|
254
254
|
|
|
@@ -369,15 +369,24 @@ const createMetricsClient = meter => {
|
|
|
369
369
|
};
|
|
370
370
|
};
|
|
371
371
|
|
|
372
|
+
// Uptrace drops the first point of every cumulative series, and each process is a new series,
|
|
373
|
+
// so with the SDK's cumulative default the first export of every counter was lost (AI-340).
|
|
374
|
+
// Set in code, not via OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE, so the environment
|
|
375
|
+
// cannot switch it back. Trade-off: a delta export lost after retries is not repaired by the next one.
|
|
376
|
+
const createMetricExporter = config => new OTLPMetricExporter({
|
|
377
|
+
url: OTLP_METRICS_ENDPOINT,
|
|
378
|
+
headers: {
|
|
379
|
+
'uptrace-dsn': config.dsn
|
|
380
|
+
},
|
|
381
|
+
timeoutMillis: OTLP_EXPORTER_TIMEOUT_MS,
|
|
382
|
+
temporalityPreference: AggregationTemporalityPreference.DELTA
|
|
383
|
+
});
|
|
384
|
+
|
|
372
385
|
const createMeterProvider = config => new MeterProvider({
|
|
373
386
|
resource: config.resource,
|
|
374
387
|
readers: [new PeriodicExportingMetricReader({
|
|
375
|
-
exporter:
|
|
376
|
-
|
|
377
|
-
headers: {
|
|
378
|
-
'uptrace-dsn': config.dsn
|
|
379
|
-
},
|
|
380
|
-
timeoutMillis: OTLP_EXPORTER_TIMEOUT_MS
|
|
388
|
+
exporter: createMetricExporter({
|
|
389
|
+
dsn: config.dsn
|
|
381
390
|
}),
|
|
382
391
|
exportIntervalMillis: METRICS_EXPORT_INTERVAL_MS,
|
|
383
392
|
exportTimeoutMillis: METRICS_EXPORT_TIMEOUT_MS
|