minimal-agent 0.6.3 → 0.6.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minimal-agent",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "description": "最小化 Agent 系统 —— 10 工具 + 插件系统 + workflow DSL + 自动压缩 + OpenAI 兼容 + Ink TUI;NodeNext + tsc 原地编译,dev 用 Bun .ts、install 用 Node .js(学习/教学用)",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Bill Wang <leiwang0359@gmail.com>",
@@ -26,9 +26,7 @@ import { randomUUID } from 'node:crypto';
26
26
  // 模块级状态:当前会话的 handle(lazy 初始化)
27
27
  let current = null;
28
28
  function transcriptDir() {
29
- // 优先使用环境变量(测试可覆盖;Docker/K8s 也常靠 ENV 定位 home),
30
- // fallback 到 os.homedir()(生产环境缺 ENV 时用系统默认值)。
31
- return join(process.env.HOME ?? process.env.USERPROFILE ?? homedir(), '.minimal-agent', 'transcripts');
29
+ return join(homedir(), '.minimal-agent', 'transcripts');
32
30
  }
33
31
  function generateSessionId() {
34
32
  return `${Date.now().toString(36)}-${randomUUID().slice(0, 8)}`;