mirror of
https://github.com/Tencent/BrowserSkill.git
synced 2026-09-10 13:01:23 +08:00
- 移除DEFAULT_DAEMON_PORT常量定义 - 使用__BSK_DAEMON_WS_URL__构建时变量替代硬编码端口 - 在wxt.config.ts和vitest.config.ts中添加环境变量配置 - 为__BSK_DAEMON_WS_URL__添加类型声明和文档注释 - 默认值保持为ws://127.0.0.1:52800,可通过BSK_DAEMON_WS_URL环境变量覆盖
15 lines
614 B
TypeScript
15 lines
614 B
TypeScript
// Build-time constants injected via Vite's `define` (see
|
|
// wxt.config.ts and vitest.config.ts). Declared globally so any module
|
|
// that wants to surface the extension's own semver to the daemon /
|
|
// popup / status panel can read it without re-importing package.json
|
|
// at runtime (review M3 fix to round-1).
|
|
|
|
declare const __BSK_EXT_VERSION__: string;
|
|
|
|
/**
|
|
* WebSocket URL the extension uses to connect to the local bsk daemon.
|
|
* Defaults to {@code ws://127.0.0.1:52800}. Override at build time by
|
|
* setting the {@code BSK_DAEMON_WS_URL} environment variable.
|
|
*/
|
|
declare const __BSK_DAEMON_WS_URL__: string;
|