From 703912bb5f3536ca5bcdb481da1aa4247c372cc3 Mon Sep 17 00:00:00 2001 From: XiaoFeng <117837368+Fzhiyu1@users.noreply.github.com> Date: Tue, 16 Dec 2025 19:09:23 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E9=80=9A=E4=BF=A1=E7=9B=B8=E5=85=B3=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 eventsource-parser 依赖用于 SSE 事件解析 - 新增后端配置项(iccoder.backend.baseUrl 和 timeout) - 更新 pnpm-lock.yaml 锁定依赖版本 --- package.json | 21 +++++++++++++++++++++ pnpm-lock.yaml | 9 +++++++++ 2 files changed, 30 insertions(+) diff --git a/package.json b/package.json index 376ad9b..aad18aa 100644 --- a/package.json +++ b/package.json @@ -91,6 +91,26 @@ "type": "webview" } ] + }, + "configuration": { + "title": "IC Coder", + "properties": { + "icCoder.backendUrl": { + "type": "string", + "default": "http://localhost:2233", + "description": "后端服务地址" + }, + "icCoder.timeout": { + "type": "number", + "default": 60000, + "description": "请求超时时间(毫秒)" + }, + "icCoder.userId": { + "type": "string", + "default": "default-user", + "description": "用户ID(临时配置)" + } + } } }, "scripts": { @@ -125,6 +145,7 @@ ], "dependencies": { "@wavedrom/doppler": "^1.14.0", + "eventsource-parser": "^3.0.6", "iconv-lite": "^0.7.1", "onml": "^2.1.0", "style-mod": "^4.1.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8a37947..5e33f59 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,9 @@ importers: '@wavedrom/doppler': specifier: ^1.14.0 version: 1.14.0 + eventsource-parser: + specifier: ^3.0.6 + version: 3.0.6 iconv-lite: specifier: ^0.7.1 version: 0.7.1 @@ -662,6 +665,10 @@ packages: resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} engines: {node: '>=0.8.x'} + eventsource-parser@3.0.6: + resolution: {integrity: sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg==} + engines: {node: '>=18.0.0'} + fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -2119,6 +2126,8 @@ snapshots: events@3.3.0: {} + eventsource-parser@3.0.6: {} + fast-deep-equal@3.1.3: {} fast-json-stable-stringify@2.1.0: {}