@gencode/server 0.4.1 → 0.4.3

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 CHANGED
@@ -1,5 +1,40 @@
1
1
  # @gencode/server
2
2
 
3
+ ## 0.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 2ccd4ba: Uni runs backed by Claude Code, Codex, OpenCode, or Pi now keep the caller-provided (or generated) logical Session ID stable across session directories, callback/websocket events, final results, and later resumes. Each new logical Session creates `.channel`, `session.json`, `transcript.jsonl`, and `context.json` under `<dataDir>/.aimax/<sessionStore>/<logicalSessionId>/`; the provider-native ID is stored separately in `session.json.runtimeBinding.providerSessionId` and is used only to resume that provider.
8
+
9
+ Provider-native state now defaults to the persistent `<dataDir>/.aimax/provider-state/` tree: Claude Code uses `CLAUDE_CONFIG_DIR`, Codex uses `CODEX_HOME`, OpenCode uses `XDG_DATA_HOME`, and Pi uses `PI_CODING_AGENT_DIR` plus `PI_CODING_AGENT_SESSION_DIR`. API-level `runtimeConfig.env` and CLI `--runtime-env KEY=VALUE` are applied to the spawned provider, with provider-specific settings taking precedence over common values and Uni defaults. Resume verification uses the same effective state path. Replacement containers must persist this tree together with the logical Session directory for resume to retain provider context.
10
+
11
+ Codex Resume invocations retain `--skip-git-repo-check` and avoid the new-run-only `--cd` flag, so one-shot replacement processes can resume persisted Codex sessions from non-Git workspaces. The real Resume smoke also rejects provider errors and empty responses instead of reporting a metadata-only pass.
12
+
13
+ The four aligned providers now write a common Uni transcript shape using only observed text, thinking, paired tool events, errors, and token usage. Real usage is checkpointed in `context.json`; unavailable usage is omitted instead of being persisted as zero. Codex command and MCP activity is paired only when start and completion frames are observed, MCP tools are namespaced as `mcp:<server>:<tool>`, and a completed-only Codex `file_change` is audited as a terminal file operation without inventing a transcript tool start. Pi `toolcall_delta` is no longer misreported as assistant text. User-visible file and URL artifacts are returned in the final result and final assistant entry, while successful structured file operations are audited independently in a lazily-created, agents-compatible `artifacts.json`. `--artifacts-url-whitelist` optionally restricts URL artifacts by exact hostname; without it all valid URL artifacts are accepted, and file artifacts are unaffected. CRON runs neither create nor append an existing audit file, and ACP keeps its existing minimal compatibility path.
14
+
15
+ Legacy Uni directories are kept in place and their historical transcripts are not rewritten. Automatic binding requires a provider-specific authoritative session lifecycle record in the effective native-state tree; filenames, generic nested IDs, and ordinary Claude assistant/result frames are not treated as evidence. Resume fails explicitly when that mapping cannot be verified, instead of silently opening a new provider conversation. Once known, provider-native IDs are removed from every public and non-binding Session payload, including assistant text, tool data, titles, model labels, errors, and diagnostics. The server engine path passes a caller-provided logical Session ID through unchanged; when it is omitted, the Uni execution entry creates the public logical ID used by callbacks, results, persisted Session data, and subsequent one-shot Resume.
16
+
17
+ - Updated dependencies [30e7078]
18
+ - Updated dependencies [30e7078]
19
+ - Updated dependencies [58acb1d]
20
+ - Updated dependencies [2ccd4ba]
21
+ - @gencode/agents@0.20.2
22
+ - @gencode/cli@0.17.4
23
+ - @gencode/uni@0.4.0
24
+
25
+ ## 0.4.2
26
+
27
+ ### Patch Changes
28
+
29
+ - 1dadb7f: `aimax run` 现在支持按单次任务配置模型采样参数:`--temperature`、`--top-k`、`--top-p`,也可以通过 `AIMAX_TEMPERATURE`、`AIMAX_TOP_K`、`AIMAX_TOP_P` 设置默认值。`aimax-server` 的 `POST /run` 同步支持在 `run.temperature`、`run.topK`、`run.topP` 中传入这些值;未配置时不会向模型请求额外注入采样字段。
30
+ - Updated dependencies [aae9c3f]
31
+ - Updated dependencies [1dadb7f]
32
+ - Updated dependencies [18c5760]
33
+ - Updated dependencies [2c7e63a]
34
+ - @gencode/agents@0.20.1
35
+ - @gencode/cli@0.17.3
36
+ - @gencode/uni@0.3.1
37
+
3
38
  ## 0.4.1
4
39
 
5
40
  ### Patch Changes
package/README.md CHANGED
@@ -50,7 +50,9 @@ type ServerRunRequest = {
50
50
  `POST /run` accepts the same run options as `aimax run` under `run`, using the
51
51
  CLI `RunOptions` camelCase field names. For example, `--session-id` becomes
52
52
  `sessionId`, `--resume-request-id` becomes `resumeRequestId`, and
53
- `--resume-input-json` becomes `resumeInputJson`.
53
+ `--resume-input-json` becomes `resumeInputJson`. Model sampling flags are also
54
+ passed this way: `--temperature`, `--top-k`, and `--top-p` become
55
+ `temperature`, `topK`, and `topP`.
54
56
 
55
57
  When a valid run is accepted, the server responds immediately with HTTP `202`.
56
58
  The response only acknowledges that the one-shot run was accepted; task progress
@@ -78,6 +80,9 @@ For structured message input, pass `run.messages` instead of encoding JSON into
78
80
  {
79
81
  "run": {
80
82
  "dataDir": "/data/user1",
83
+ "temperature": "0.2",
84
+ "topK": "40",
85
+ "topP": "0.9",
81
86
  "messages": [
82
87
  {
83
88
  "role": "user",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gencode/server",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "aimax-server": "./dist/bin.js"
@@ -19,9 +19,9 @@
19
19
  "access": "public"
20
20
  },
21
21
  "dependencies": {
22
- "@gencode/agents": "0.20.0",
23
- "@gencode/uni": "0.3.0",
24
- "@gencode/cli": "0.17.2"
22
+ "@gencode/agents": "0.20.2",
23
+ "@gencode/uni": "0.4.0",
24
+ "@gencode/cli": "0.17.4"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^22.0.0",