@gencode/server 0.4.2 → 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 +22 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
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
|
+
|
|
3
25
|
## 0.4.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gencode/server",
|
|
3
|
-
"version": "0.4.
|
|
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.
|
|
23
|
-
"@gencode/uni": "0.
|
|
24
|
-
"@gencode/cli": "0.17.
|
|
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",
|