@gencode/cli 0.9.0 → 0.10.0
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 +25 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @gencode/cli
|
|
2
2
|
|
|
3
|
+
## 0.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a9f87b5: Move the `export-html` presentation layer (HTML templates, transcript-to-HTML rendering, batch export, and index generation) out of `@gencode/agents` into `@gencode/cli`, where all process-facing presentation/output already lives. This is a package-boundary cleanup only; `aimax export-html` keeps the same commands and options.
|
|
8
|
+
|
|
9
|
+
Notable changes for integrators:
|
|
10
|
+
|
|
11
|
+
- `@gencode/agents` no longer re-exports the export-html functions (`exportSessionTranscriptToHtml`, `exportTranscriptFileToHtml`, `exportTranscriptContentToHtml`, `exportAllSessionTranscriptsToHtml`, `exportTranscriptGlobToHtml`, `writeExportHtmlIndex`) or their option types (`ExportTranscriptHtmlOptions`, `BatchExportTranscriptHtmlResult`). If you imported these from `@gencode/agents`, they are now internal to `@gencode/cli`.
|
|
12
|
+
- The session snapshot **domain** behavior stays in `@gencode/agents`: `persistSessionExportSnapshots` / `loadSessionExportSnapshots` / `serializeToolsForSnapshot` and the `system-prompt.txt` / `session-tools.json` write timing are unchanged.
|
|
13
|
+
- Exported HTML pages now load `marked` and `highlight.js` from a CDN at view time (jsDelivr) instead of bundling vendored copies inside the package. The pages remain self-contained for session data; viewing requires network access the first time the libraries are fetched (after which the browser cache serves them).
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 2f6ada8: 修复 CLI 启动时崩溃的问题:`aimax`(以及任何加载 `@gencode/agents` 的入口)在 Node ESM 下启动会立即抛出 `ERR_PACKAGE_PATH_NOT_EXPORTED`,导致命令一执行就报错退出。
|
|
18
|
+
|
|
19
|
+
- **现象**:运行 `aimax -V`、`aimax --version` 或任意子命令时,进程在加载阶段失败,报 `Package subpath './dist/utils/sanitize-unicode.js' is not defined by "exports" in .../pi-ai/package.json`。
|
|
20
|
+
- **根因**:`@gencode/agents` 的 OpenAI-compatible provider 直接 deep-import 了 `@earendil-works/pi-ai` 的内部 `dist/` 子路径(`sanitize-unicode`、`simple-options`、`transform-messages`、`github-copilot-headers`),而这些路径并未被该包的 `exports` 暴露。构建产物保留了这些 import,Node 在运行时强制校验 `exports` 即报错。
|
|
21
|
+
- **修复**:把必需的三个叶子工具(`sanitizeSurrogates`、`buildBaseOptions`、`transformMessages`,均为零依赖纯函数)就近内联到 agents 内部;移除未使用的 `clampReasoning` 导入;移除不再需要的 GitHub Copilot 动态请求头注入(`buildCopilotDynamicHeaders` / `hasCopilotVisionInput`)。运行时不再触碰 pi-ai 的内部子路径,CLI 可正常启动并返回版本号。
|
|
22
|
+
- **用户感知**:此前任何 `aimax` 调用都会立即崩溃;修复后 CLI 恢复可用。openai-completions 兼容 provider 的既有消息处理行为不变。
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [2f6ada8]
|
|
25
|
+
- Updated dependencies [a9f87b5]
|
|
26
|
+
- @gencode/agents@0.12.0
|
|
27
|
+
|
|
3
28
|
## 0.9.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gencode/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"aimax": "./dist/bin.js"
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"commander": "^14.0.3",
|
|
25
25
|
"gensign-node": "latest",
|
|
26
26
|
"log4js": "^6.9.1",
|
|
27
|
-
"@gencode/
|
|
28
|
-
"@gencode/
|
|
27
|
+
"@gencode/shared": "0.2.2",
|
|
28
|
+
"@gencode/agents": "0.12.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|