docs+fix: 铸渊开发日志 20260808 + 签名/生产模式修复
开发日志(DEV-LOG-20260808): - 完整思维逻辑链:从妈妈指令到技术决策的推理过程 - 每个模块的开发详情、Bug 修复历程、架构映射 - 签名安装全过程(AppleDouble/asar/codesign/entitlements) - 已知问题和待修复项(给后续人格体排查) - 提交链完整记录(070b11a→dcf8f7d) 代码修复: - electron/main.ts: 生产模式改为 require(server-bundle.js) 内嵌 - package.json: 签名 identity 配置 + asar:false - server/index.ts: Agent import 补全
This commit is contained in:
parent
dcf8f7d7e9
commit
84a631d886
4 changed files with 508 additions and 43 deletions
|
|
@ -12,12 +12,13 @@ import { PersonaAgent, createDefaultPersona } from './persona-agent.js';
|
|||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
// __dirname 兼容 CJS 和 ESM
|
||||
const _dirname = typeof __dirname !== 'undefined' ? __dirname : path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
// ─── 配置 ───
|
||||
|
||||
const PORT = parseInt(process.env.KB_PORT || '3890', 10);
|
||||
const REPO_PATH = process.env.KB_REPO_PATH || path.resolve(__dirname, '../kb-data');
|
||||
const REPO_PATH = process.env.KB_REPO_PATH || path.resolve(_dirname, '../kb-data');
|
||||
|
||||
// ─── 初始化 ───
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue