diff --git a/CHANGELOG.md b/CHANGELOG.md index 1319396..2d17678 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ --- +## 0.2.6 + +- Docker 镜像补齐本地执行所需的 Bash,默认 MCP 层可直接执行命令。 +- 明确 MCP 一次性执行、后台会话和持续观察的选型。提供 `ready_marker` 时后台会话等待就绪再返回,下载校验等级由 `verification` 报告。 +- 增加英文 Skill、MCP 快速入门、容器部署和双语基准报告。 + ## 0.2.5 - CLI `batch` 支持计划默认层和逐步覆盖,并从保存的层快照解析目标。无效参数在执行前拒绝。显式 `--help` 和 `-h` 输出到 stdout 并返回 0。 diff --git a/Dockerfile b/Dockerfile index dc24661..2922587 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ COPY bin ./bin RUN bun build bin/filaxis-mcp.ts --target node --outfile dist/bin/filaxis-mcp.js FROM node:22-alpine -RUN apk add --no-cache openssh-client +RUN apk add --no-cache bash openssh-client WORKDIR /app COPY --from=builder /app/package.json ./package.json COPY --from=builder /app/dist/bin/filaxis-mcp.js ./dist/bin/filaxis-mcp.js diff --git a/README.en.md b/README.en.md index 60defa4..7a5892d 100644 --- a/README.en.md +++ b/README.en.md @@ -141,7 +141,7 @@ See [AGENTS.md](./AGENTS.md) for the complete runtime contract. ## Benchmark -Four controlled operational benchmarks (spanning `v0.1.0` to `v0.2.5`, covering LAN and cross-region multi-hop bastion topologies, white-box and zero-hint black-box scenarios; same model within each run, not directly comparable across versions due to task and model differences) are documented with full methodology and limitations in [benchmark.en.md](./benchmark.en.md). +Four controlled operational benchmarks (spanning `v0.1.0` to `v0.2.5`, covering LAN and cross-region multi-hop bastion topologies, white-box and zero-hint black-box scenarios; same model within each run, not directly comparable across versions due to task and model differences) are documented with full methodology and limitations in [benchmark.en.md](https://github.com/corolin/filaxis/blob/main/benchmark.en.md). Latest run (Report 4: `v0.2.5`, cross-region no-`ProxyJump` bastion, **zero-hint black-box with 9 cascading faults** + cross-region `PUT`/`GET` binary file transfers, `Gemini 4 Hydrogen` lightweight-tier subagents, 100% pass rate across all 4 groups): diff --git a/README.md b/README.md index 20790b2..0a617c3 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ SSH 秒退 255 且双流为空只能作为排障线索。执行终态未知时 ## Benchmark(真实运维对照评测) -四期受控实战评测(涵盖 `v0.1.0` ~ `v0.2.5`,内网与跨地域多跳、明盒与纯黑盒场景;每期内采用同模型对照,跨期因版本、考题与模型档位不同不可直接横向等同)的完整数据、方法论与局限说明见 [benchmark.md](./benchmark.md)。 +四期受控实战评测(涵盖 `v0.1.0` ~ `v0.2.5`,内网与跨地域多跳、明盒与纯黑盒场景;每期内采用同模型对照,跨期因版本、考题与模型档位不同不可直接横向等同)的完整数据、方法论与局限说明见 [benchmark.md](https://github.com/corolin/filaxis/blob/main/benchmark.md)。 最新一期(第四份:`v0.2.5` 跨地域无 `ProxyJump` 真实堡垒机、**0 提示纯黑盒 9 处联动故障** + 跨海 `PUT`/`GET` 二进制文件传输,`Gemini 4 Hydrogen` 轻量档位子代理,四组均 100% 达标)总账: diff --git a/docs/skills/SKILL.en.md b/docs/skills/SKILL.en.md index 8182950..e2b8cd3 100644 --- a/docs/skills/SKILL.en.md +++ b/docs/skills/SKILL.en.md @@ -1,6 +1,6 @@ --- name: filaxis-runtime -version: 0.2.5 +version: 0.2.6 description: | Entry skill guide for the Filaxis remote execution runtime (@syrkos/filaxis) — 30-second execution mode selector, MCP/CLI/SDK recipes, and core execution contracts for reliable SSH, Docker, and multi-hop agent operations. diff --git a/docs/skills/SKILL.md b/docs/skills/SKILL.md index 3846aa8..52879f7 100644 --- a/docs/skills/SKILL.md +++ b/docs/skills/SKILL.md @@ -1,6 +1,6 @@ --- name: filaxis-runtime -version: 0.2.5 +version: 0.2.6 description: | 牵丝 Filaxis 远程执行运行时的技能剧本总入口——选型决策树(exec 还是观察还是会话)+ 核心契约速查 + 四份场景剧本索引。 diff --git a/package.json b/package.json index 5a2293f..5782261 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@syrkos/filaxis", - "version": "0.2.5", + "version": "0.2.6", "description": "牵丝 Filaxis — 面向自动化与 Agent 的远程执行运行时 SDK(Syrkos · 漩核)。千里一线,执行有迹。", "type": "module", "license": "Apache-2.0", diff --git a/src/agent-toolkit.ts b/src/agent-toolkit.ts index 565fa45..ec83035 100644 --- a/src/agent-toolkit.ts +++ b/src/agent-toolkit.ts @@ -205,14 +205,15 @@ export const TOOL_DEFS: AgentToolDef[] = [ function: { name: "spawn_and_observe", description: - "启动后台任务或常驻服务(输出落盘到 log_base 对应的 .out/.err 文件,立即返回 session_id 与 log_base 句柄不阻塞)。" + - "适用于需要等待就绪标记(ready_marker——回溯热窗口,快输出竞态安全)、自动捕获错误模式(error_pattern——命中即收摊)并在结束后用 stop_and_verify 核实进程终态与退出码的场景。" + + "启动后台任务或常驻服务,输出落盘到 log_base 对应的 .out/.err 文件。省略 ready_marker 时,启动后返回 session_id 和 log_base。" + + "提供 ready_marker 时,先回溯近期输出并等待标记,确认就绪后返回;超时或进程提前退出时报告错误。" + + "可用 error_pattern 监测错误并请求停止,后续用 stop_and_verify 核实进程终态与退出码。" + "若只需持续流式查看实时输出(如 tail -f / 监控日志)并按游标翻页续读,请改用 observe_stream + read_stream。", parameters: { type: "object", properties: { command: { type: "string", description: "长跑命令" }, - ready_marker: { type: "string", description: "就绪标记(如 'listening on')" }, + ready_marker: { type: "string", description: "可选的就绪标记(如 'listening on')。提供时,本次调用等待标记后返回" }, error_pattern: { type: "string", description: "错误模式(命中即收摊)" }, name: { type: "string", description: "会话名(人读前缀)" }, layer: { type: "string", description: "目标层名(缺省=默认层)" }, @@ -298,7 +299,8 @@ export const TOOL_DEFS: AgentToolDef[] = [ function: { name: "get_file", description: - "从目标层下载单个文件到 MCP 服务所在机器(支持二进制)。先传输至本地暂存文件并校验大小与 SHA-256 后再落位,校验失败不破坏已有本地文件;" + + "从目标层下载单个文件到 MCP 服务所在机器(支持二进制)。始终校验大小,目标层支持 SHA-256 时再校验摘要。请用 verification 区分 sha256 与 size。" + + "通过校验后才落位,校验失败不破坏已有本地文件。" + "成功时会覆盖已存在的 local_path,返回传输通道、字节大小、校验等级 (verification) 与写入形态 (write_mode)。" + "仅读取远端小文本请用 read_file,批量传输多个文件请使用 run_batch。", parameters: {