@lobehub/chat 1.132.8 → 1.132.10

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/CHANGELOG.md CHANGED
@@ -2,6 +2,48 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.132.10](https://github.com/lobehub/lobe-chat/compare/v1.132.9...v1.132.10)
6
+
7
+ <sup>Released on **2025-09-24**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Macos desktop sign.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Macos desktop sign, closes [#9400](https://github.com/lobehub/lobe-chat/issues/9400) ([4349ad9](https://github.com/lobehub/lobe-chat/commit/4349ad9))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ### [Version 1.132.9](https://github.com/lobehub/lobe-chat/compare/v1.132.8...v1.132.9)
31
+
32
+ <sup>Released on **2025-09-23**</sup>
33
+
34
+ <br/>
35
+
36
+ <details>
37
+ <summary><kbd>Improvements and Fixes</kbd></summary>
38
+
39
+ </details>
40
+
41
+ <div align="right">
42
+
43
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
44
+
45
+ </div>
46
+
5
47
  ### [Version 1.132.8](https://github.com/lobehub/lobe-chat/compare/v1.132.7...v1.132.8)
6
48
 
7
49
  <sup>Released on **2025-09-23**</sup>
@@ -7,7 +7,7 @@ const packageJSON = require('./package.json');
7
7
 
8
8
  const channel = process.env.UPDATE_CHANNEL;
9
9
  const arch = os.arch();
10
- const hasAppleCertificate = Boolean(process.env.APPLE_CERTIFICATE_BASE64);
10
+ const hasAppleCertificate = Boolean(process.env.CSC_LINK);
11
11
 
12
12
  console.log(`🚄 Build Version ${packageJSON.version}, Channel: ${channel}`);
13
13
  console.log(`🏗️ Building for architecture: ${arch}`);
@@ -15,11 +15,11 @@ console.log(`🏗️ Building for architecture: ${arch}`);
15
15
  const isNightly = channel === 'nightly';
16
16
  const isBeta = packageJSON.name.includes('beta');
17
17
 
18
- // https://www.electron.build/code-signing-mac?utm_source=openai#how-to-disable-code-signing-during-the-build-process-on-macos
18
+ // https://www.electron.build/code-signing-mac#how-to-disable-code-signing-during-the-build-process-on-macos
19
19
  if (!hasAppleCertificate) {
20
20
  // Disable auto discovery to keep electron-builder from searching unavailable signing identities
21
21
  process.env.CSC_IDENTITY_AUTO_DISCOVERY = 'false';
22
- console.log('⚠️ Apple certificate not found, macOS artifacts will be unsigned.');
22
+ console.log('⚠️ Apple certificate link not found, macOS artifacts will be unsigned.');
23
23
  }
24
24
 
25
25
  // 根据版本类型确定协议 scheme
package/changelog/v1.json CHANGED
@@ -1,4 +1,18 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Macos desktop sign."
6
+ ]
7
+ },
8
+ "date": "2025-09-24",
9
+ "version": "1.132.10"
10
+ },
11
+ {
12
+ "children": {},
13
+ "date": "2025-09-23",
14
+ "version": "1.132.9"
15
+ },
2
16
  {
3
17
  "children": {
4
18
  "improvements": [
@@ -35,7 +35,7 @@ exporters:
35
35
  service:
36
36
  pipelines:
37
37
  metrics:
38
- receivers: [prometheus]
38
+ receivers: [prometheus, otlp]
39
39
  exporters: [prometheusremotewrite]
40
40
  traces:
41
41
  receivers: [otlp]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.132.8",
3
+ "version": "1.132.10",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -151,6 +151,7 @@
151
151
  "@lobechat/electron-server-ipc": "workspace:*",
152
152
  "@lobechat/file-loaders": "workspace:*",
153
153
  "@lobechat/model-runtime": "workspace:*",
154
+ "@lobechat/observability-otel": "workspace:*",
154
155
  "@lobechat/prompts": "workspace:*",
155
156
  "@lobechat/utils": "workspace:*",
156
157
  "@lobechat/web-crawler": "workspace:*",
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@lobechat/observability-otel",
3
+ "version": "1.0.0",
4
+ "private": true,
5
+ "exports": {
6
+ "./node": "./src/node.ts"
7
+ },
8
+ "dependencies": {
9
+ "@opentelemetry/api": "^1.9.0",
10
+ "@opentelemetry/auto-instrumentations-node": "^0.64.1",
11
+ "@opentelemetry/exporter-metrics-otlp-http": "^0.203.0",
12
+ "@opentelemetry/exporter-trace-otlp-http": "^0.203.0",
13
+ "@opentelemetry/instrumentation": "^0.203.0",
14
+ "@opentelemetry/instrumentation-http": "^0.203.0",
15
+ "@opentelemetry/instrumentation-pg": "^0.56.0",
16
+ "@opentelemetry/resources": "^2.0.1",
17
+ "@opentelemetry/sdk-metrics": "^2.0.1",
18
+ "@opentelemetry/sdk-node": "^0.203.0",
19
+ "@opentelemetry/sdk-trace-node": "^2.0.1",
20
+ "@opentelemetry/semantic-conventions": "^1.36.0",
21
+ "@vercel/otel": "^1.13.0",
22
+ "import-in-the-middle": "^1.14.2",
23
+ "require-in-the-middle": "^7.5.2"
24
+ }
25
+ }
@@ -0,0 +1,44 @@
1
+ import { DiagConsoleLogger, DiagLogLevel, diag } from '@opentelemetry/api';
2
+ import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
3
+ import { OTLPMetricExporter } from '@opentelemetry/exporter-metrics-otlp-http';
4
+ import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
5
+ import { HttpInstrumentation } from '@opentelemetry/instrumentation-http';
6
+ import { PgInstrumentation } from '@opentelemetry/instrumentation-pg';
7
+ import { resourceFromAttributes } from '@opentelemetry/resources';
8
+ import { PeriodicExportingMetricReader } from '@opentelemetry/sdk-metrics';
9
+ import { NodeSDK } from '@opentelemetry/sdk-node';
10
+ import { ATTR_SERVICE_NAME, ATTR_SERVICE_VERSION } from '@opentelemetry/semantic-conventions';
11
+
12
+
13
+
14
+ export function register(options?: { debug?: true | DiagLogLevel, version?: string; }) {
15
+ const attributes: Record<string, string> = {
16
+ [ATTR_SERVICE_NAME]: 'lobe-chat',
17
+ };
18
+ if (typeof options?.version !== 'undefined') {
19
+ attributes[ATTR_SERVICE_VERSION] = options.version;
20
+ }
21
+ if (typeof options?.debug !== 'undefined') {
22
+ diag.setLogger(
23
+ new DiagConsoleLogger(),
24
+ options.debug === true ? DiagLogLevel.DEBUG : options.debug,
25
+ );
26
+ }
27
+
28
+ const sdk = new NodeSDK({
29
+ instrumentations: [
30
+ new PgInstrumentation(),
31
+ new HttpInstrumentation(),
32
+ getNodeAutoInstrumentations(),
33
+ ],
34
+ metricReader: new PeriodicExportingMetricReader({
35
+ exporter: new OTLPMetricExporter(),
36
+ }),
37
+ resource: resourceFromAttributes(attributes),
38
+ traceExporter: new OTLPTraceExporter(),
39
+ });
40
+
41
+ sdk.start();
42
+ }
43
+
44
+ export {DiagLogLevel} from '@opentelemetry/api';
@@ -0,0 +1,4 @@
1
+ import { register } from '@lobechat/observability-otel/node'
2
+ import { version } from '../package.json';
3
+
4
+ register({ version })
@@ -0,0 +1,5 @@
1
+ export async function register() {
2
+ if (process.env.NEXT_RUNTIME === 'nodejs' && process.env.ENABLE_TELEMETRY) {
3
+ await import('./instrumentation.node');
4
+ }
5
+ }