mio-agent-runtime 0.3.15 → 0.5.0

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/package.json CHANGED
@@ -1,25 +1,25 @@
1
- {
2
- "name": "mio-agent-runtime",
3
- "version": "0.3.15",
4
- "description": "Mio Agent Runtime installer and MCP intelligence layer",
5
- "license": "MIT",
6
- "type": "commonjs",
7
- "bin": {
8
- "mio": "bin/mio.js"
9
- },
10
- "files": [
11
- "bin/",
12
- "server/",
13
- "adapters/",
14
- "observe/",
15
- "README.md",
16
- "!server/mio-intelligence-mcp/__tests__"
17
- ],
18
- "scripts": {
19
- "check": "node --check bin/mio.js && node --check adapters/host-utils.js && node --check adapters/codex.js && node --check adapters/opencode.js && node --check adapters/workbuddy.js && node --check adapters/hermes.js && node --check server/mio-intelligence-mcp/index.js && node --check server/mio-intelligence-mcp/phase0.js && node --check observe/observer.js",
20
- "prepack": "npm run check"
21
- },
22
- "engines": {
23
- "node": ">=18"
24
- }
25
- }
1
+ {
2
+ "name": "mio-agent-runtime",
3
+ "version": "0.5.0",
4
+ "description": "Mio Agent Runtime installer and MCP intelligence layer",
5
+ "license": "MIT",
6
+ "type": "commonjs",
7
+ "bin": {
8
+ "mio": "bin/mio.js"
9
+ },
10
+ "files": [
11
+ "bin/",
12
+ "server/",
13
+ "adapters/",
14
+ "observe/",
15
+ "README.md",
16
+ "!server/mio-intelligence-mcp/__tests__"
17
+ ],
18
+ "scripts": {
19
+ "check": "node --check bin/mio.js && node --check adapters/host-utils.js && node --check adapters/codex.js && node --check adapters/opencode.js && node --check adapters/workbuddy.js && node --check adapters/hermes.js && node --check server/mio-intelligence-mcp/index.js && node --check server/mio-intelligence-mcp/phase0.js && node --check observe/observer.js",
20
+ "prepack": "npm run check"
21
+ },
22
+ "engines": {
23
+ "node": ">=18"
24
+ }
25
+ }
@@ -21,7 +21,12 @@ Mio Agent Enhancement Layer 的最小 MCP 实现。
21
21
  - `mio.phase0.report` — 生成当前 Phase 0 验证报告,返回门槛状态、复用漏斗(含 `pendingAutoClaims`,即待确认的 auto_claim 数)、Agent 覆盖(含每个 host 的健康状态)、trace outcome 分布;支持 `format: markdown` 直接返回渲染报告。
22
22
  - `mio.task.route` — 把任务路由到最相关的**已验证经验**与相关记忆(P1):对任务描述做混合检索匹配 verified 经验,返回可直接采用的模式(含 `reuseCount` 复用次数、确认状态、来源/目标 Agent 与记忆内容),把「查询响应」升级为「决策影响」;路由结果会进入查询日志,便于后续 `task_outcome` 自动关联复用证据。
23
23
 
24
- ## 项目识别
24
+ - `mio.agent.register` — 注册或更新 Agent 到 Mio Agent Registry(按 agentId+project 去重):首次调用创建记录(registered=true),后续调用更新 lastSeenAt 并递增 sessionCount。支持 hostType(mcp/observer/plugin)和 capabilities。
25
+ - `mio.agent.list` — 列出所有已注册 Agent,支持按 project 过滤。返回每个 Agent 的 id、agentId、hostType、capabilities、注册/最近活跃时间、会话数。
26
+
27
+ - `mio.evolution.report` — 生成跨 Agent 演化报告(ADR-017 Evolution 平面):生态系统摘要(agent/task/memory/reuse 总量)、Agent 性能对比(成功率/memory 数/verified reuse)、跨 Agent 复用模式、Memory 健康度(质量评分/低质量记录/缺失字段)、优化建议(路由/证据确认/记忆质量/覆盖度,按优先级排序)。支持 `period`(24h/7d/30d/all)和 `project` 过滤。- `mio.agent.report` — 生成 Agent 性能报告:聚合 task_outcome(成功率)、memory 数量、experience reuse(总次数/verified 数量)和活跃状态。支持指定 agentId 或 project 过滤。
28
+
29
+ - `mio.task.record_outcome` — 一键记录任务结果:原子写入 traces.jsonl + 更新 Agent Registry(taskCount/successCount/failureCount)+ 自动关联 experience reuse auto-claim。替代手动调用 observer.ingest + agent.register 的分离流程,完成任务生命周期闭环。## 项目识别
25
30
 
26
31
  不传 `project` 时,服务会通过当前 Git 仓库自动识别项目名:
27
32