@gencode/console 0.3.17 → 0.3.19

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @gencode/console
2
2
 
3
+ ## 0.3.19
4
+
5
+ ### Patch Changes
6
+
7
+ - d960faf: `aimax run` and `aimax resume` done payloads can now include an `artifacts` array for user-relevant files and URLs produced during the run. Agents self-report these artifacts with a runtime-only `<aimax_artifacts>` declaration block that AIMax strips from streamed text and final text; the normalized final artifact metadata is also recorded on the current run's last assistant entry in `transcript.jsonl` so session replay can see the same produced files and URLs as the backend done payload. AIMax also conservatively falls back to the current tool execution result when a file or URL is already explicit in `write_file`, `edit_file`, `apply_patch`, or `exec` / bash output, covering edited files, shell-generated files, Excel files produced by skills, and skill scripts that return a URL. The agent prompt now keeps an explicit per-turn artifact audit list so shell, skill, plugin, UI tool, and subagent deliverables are less likely to be omitted from the returned payload. Each returned artifact includes `kind`, `timestamp`, `label`, and either `file` or `url`; AIMax normalizes relative file paths against the run workspace and deduplicates self-reported and tool-inferred artifacts by file path or URL. Operators can pass `aimax run --artifacts-url-whitelist <urls>` with comma-separated values such as `example.test,http://reports.example.test` to collect URL artifacts only from exact hostnames in the whitelist; when omitted, all URL artifacts continue to be returned. This backend return field and transcript metadata are separate from the existing per-session `artifacts.json` audit file and do not read, write, or merge with it.
8
+ - 3388ae9: `/goal` continuation now exposes a smaller default workflow tool surface to agents. The default model tools no longer include legacy `update_goal`, `goal_checkpoint`, or manual task switching through `goal_task_start`; goals are completed through `goal_complete` after required tasks and final evidence are recorded.
9
+
10
+ Goal evidence registration is now available through a single `goal_record_evidence` tool with `kind: "note" | "manual" | "exec" | "snapshot"`. Existing evidence refs keep the same prefixes (`note:`, `manual:`, `command:`, and `snapshot:`), and `goal_task_done` / `goal_complete` continue to require registered evidence refs before marking work complete.
11
+
12
+ - Updated dependencies [d960faf]
13
+ - Updated dependencies [3388ae9]
14
+ - @gencode/shared@0.2.3
15
+ - @gencode/cli@0.10.1
16
+
17
+ ## 0.3.18
18
+
19
+ ### Patch Changes
20
+
21
+ - 2f6ada8: 修复 CLI 启动时崩溃的问题:`aimax`(以及任何加载 `@gencode/agents` 的入口)在 Node ESM 下启动会立即抛出 `ERR_PACKAGE_PATH_NOT_EXPORTED`,导致命令一执行就报错退出。
22
+
23
+ - **现象**:运行 `aimax -V`、`aimax --version` 或任意子命令时,进程在加载阶段失败,报 `Package subpath './dist/utils/sanitize-unicode.js' is not defined by "exports" in .../pi-ai/package.json`。
24
+ - **根因**:`@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` 即报错。
25
+ - **修复**:把必需的三个叶子工具(`sanitizeSurrogates`、`buildBaseOptions`、`transformMessages`,均为零依赖纯函数)就近内联到 agents 内部;移除未使用的 `clampReasoning` 导入;移除不再需要的 GitHub Copilot 动态请求头注入(`buildCopilotDynamicHeaders` / `hasCopilotVisionInput`)。运行时不再触碰 pi-ai 的内部子路径,CLI 可正常启动并返回版本号。
26
+ - **用户感知**:此前任何 `aimax` 调用都会立即崩溃;修复后 CLI 恢复可用。openai-completions 兼容 provider 的既有消息处理行为不变。
27
+
28
+ - Updated dependencies [2f6ada8]
29
+ - Updated dependencies [a9f87b5]
30
+ - @gencode/cli@0.10.0
31
+
3
32
  ## 0.3.17
4
33
 
5
34
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gencode/console",
3
- "version": "0.3.17",
3
+ "version": "0.3.19",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "aimax-console": "./dist/server/index.js"
@@ -26,8 +26,8 @@
26
26
  "react": "^18.3.1",
27
27
  "react-dom": "^18.3.1",
28
28
  "ws": "^8.18.0",
29
- "@gencode/cli": "0.9.0",
30
- "@gencode/shared": "0.2.2"
29
+ "@gencode/cli": "0.10.1",
30
+ "@gencode/shared": "0.2.3"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@playwright/test": "^1.60.0",