@gencode/server 0.3.8 → 0.3.10
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/README.md +23 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @gencode/server
|
|
2
2
|
|
|
3
|
+
## 0.3.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [973ae34]
|
|
8
|
+
- Updated dependencies [bb18ff9]
|
|
9
|
+
- @gencode/cli@0.15.1
|
|
10
|
+
- @gencode/agents@0.17.1
|
|
11
|
+
|
|
12
|
+
## 0.3.9
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 3dee7d5: `aimax-server` 的 `POST /run` 现在可以在 `run.messages` 中直接接收结构化 Message 输入,格式与 `aimax run --from-file` 一致,支持文本块和 base64 图片块,例如 `content: [{ "type": "text", "text": "/new" }, { "type": "image", "data": "...", "mimeType": "image/png" }]`。这让 server 模式下通过结构化消息发送 `/new` 等 slash command 时能够按会话命令执行;`run.message` 仍保持普通字符串语义,不会被自动当作 JSON 解析。
|
|
17
|
+
- Updated dependencies [b352a92]
|
|
18
|
+
- Updated dependencies [b352a92]
|
|
19
|
+
- Updated dependencies [b352a92]
|
|
20
|
+
- Updated dependencies [b352a92]
|
|
21
|
+
- Updated dependencies [b352a92]
|
|
22
|
+
- Updated dependencies [b352a92]
|
|
23
|
+
- Updated dependencies [3dee7d5]
|
|
24
|
+
- Updated dependencies [02c5263]
|
|
25
|
+
- @gencode/agents@0.17.0
|
|
26
|
+
- @gencode/cli@0.15.0
|
|
27
|
+
|
|
3
28
|
## 0.3.8
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -17,3 +17,26 @@ server reads that file during warmup and preloads the configured system plugins.
|
|
|
17
17
|
If the accepted `/run` request does not provide `run.pluginsConfig` and does not
|
|
18
18
|
override `AIMAX_PLUGINS_CONFIG` in request `env`, the run inherits the startup
|
|
19
19
|
plugins config path so the CLI execution uses the preloaded plugin registry.
|
|
20
|
+
|
|
21
|
+
`POST /run` accepts normal `aimax run` options under `run`. For structured
|
|
22
|
+
message input, pass `run.messages` instead of encoding JSON into `run.message`:
|
|
23
|
+
|
|
24
|
+
```json
|
|
25
|
+
{
|
|
26
|
+
"run": {
|
|
27
|
+
"dataDir": "/data/user1",
|
|
28
|
+
"messages": [
|
|
29
|
+
{
|
|
30
|
+
"role": "user",
|
|
31
|
+
"content": [
|
|
32
|
+
{ "type": "text", "text": "/new" },
|
|
33
|
+
{ "type": "image", "data": "<base64>", "mimeType": "image/png" }
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`run.messages` uses the same structured Message format as `aimax run --from-file`.
|
|
42
|
+
`run.message` remains plain user text and is not JSON-parsed by the server.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gencode/server",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"aimax-server": "./dist/bin.js"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@gencode/agents": "0.
|
|
23
|
-
"@gencode/cli": "0.
|
|
22
|
+
"@gencode/agents": "0.17.1",
|
|
23
|
+
"@gencode/cli": "0.15.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^22.0.0",
|