qlogicagent 2.15.3 → 2.15.5
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/README.md +11 -9
- package/dist/cli.js +292 -290
- package/dist/index.js +291 -289
- package/dist/types/cli/handlers/control-handler.d.ts +3 -0
- package/dist/types/cli/stdio-server.d.ts +4 -0
- package/dist/types/protocol/methods.d.ts +0 -2
- package/dist/types/protocol/wire/agent-methods.d.ts +1228 -0
- package/dist/types/skills/tools/shell/exec-audit-log.d.ts +24 -0
- package/package.json +1 -1
- package/dist/types/agent/tool-access.d.ts +0 -1
- package/dist/types/agent/tool-loop/single-round.d.ts +0 -2
- package/dist/types/cli/permission-settings-store.d.ts +0 -1
- package/dist/types/protocol/index.d.ts +0 -7
- package/dist/types/protocol/wire/provider-runtime-io.d.ts +0 -20
- package/dist/types/runtime/execution/index.d.ts +0 -7
- package/dist/types/runtime/hooks/index.d.ts +0 -4
- package/dist/types/runtime/index.d.ts +0 -5
- package/dist/types/runtime/infra/index.d.ts +0 -19
- package/dist/types/runtime/infra/mcp-bridge.d.ts +0 -166
- package/dist/types/runtime/infra/model-id-translator.d.ts +0 -22
- package/dist/types/runtime/infra/secure-storage.d.ts +0 -81
- package/dist/types/runtime/infra/skill-injector.d.ts +0 -59
- package/dist/types/runtime/prompt/index.d.ts +0 -5
- package/dist/types/runtime/sandbox/index.d.ts +0 -2
- package/dist/types/runtime/session/index.d.ts +0 -4
- package/dist/types/skills/index.d.ts +0 -6
- package/dist/types/skills/mcp/index.d.ts +0 -1
- package/dist/types/skills/permissions/index.d.ts +0 -13
- package/dist/types/skills/plugins/index.d.ts +0 -2
- package/dist/types/skills/skill-system/skill-guard.d.ts +0 -23
- package/dist/types/transport/index.d.ts +0 -7
package/README.md
CHANGED
|
@@ -90,25 +90,27 @@ node dist/cli.js --acp
|
|
|
90
90
|
|
|
91
91
|
### 请求方法
|
|
92
92
|
|
|
93
|
+
> ⚠️ 方法名权威清单以 `src/cli/rpc-registry.ts`(私有 agent-RPC)+ `src/protocol/wire/acp-protocol.ts`(ACP)为准。一轮对话由 **ACP `session/prompt`** 触发(本仓不存在 `thread.turn`)。
|
|
94
|
+
|
|
93
95
|
| 方法 | 说明 | 参数 |
|
|
94
96
|
|------|------|------|
|
|
95
97
|
| `initialize` | 协议握手 | `{ protocolVersion, host: { name, version } }` |
|
|
96
98
|
| `agent.ping` | 心跳检测 | — |
|
|
97
|
-
| `
|
|
98
|
-
| `agent.
|
|
99
|
+
| `session/prompt` (ACP) | 执行一轮对话 | 见下方详细说明 |
|
|
100
|
+
| `agent.cancel` | 中止当前 turn | `{ turnId }` |
|
|
99
101
|
| `thread.list` | 列出历史会话 | `{ limit? }` |
|
|
100
102
|
| `thread.create` | 创建新线程 | `{ id?, title?, cwd? }` |
|
|
101
103
|
| `session.resume` | 恢复会话 | `{ sessionId }` |
|
|
102
104
|
| `memory.dream` | 触发记忆整合 | — |
|
|
103
|
-
| `
|
|
105
|
+
| `thread.user_response` | 回复中途提问 / 工具审批 | `{ turnId, response }`(子代理审批走 `agents.approvalResponse`) |
|
|
104
106
|
|
|
105
|
-
###
|
|
107
|
+
### 一轮对话参数(ACP `session/prompt`)
|
|
106
108
|
|
|
107
109
|
```json
|
|
108
110
|
{
|
|
109
111
|
"jsonrpc": "2.0",
|
|
110
112
|
"id": 1,
|
|
111
|
-
"method": "
|
|
113
|
+
"method": "session/prompt",
|
|
112
114
|
"params": {
|
|
113
115
|
"turnId": "turn-001",
|
|
114
116
|
"sessionId": "sess-001",
|
|
@@ -223,7 +225,7 @@ qlogicagent 的记忆全部进程内,无外部服务依赖,开箱即用。
|
|
|
223
225
|
|----|------|------|
|
|
224
226
|
| **L1 memdir** | 项目级文件记忆,Agent 主动管理 (INDEX.md + 主题文件) | `<project>/.qlogicagent/memory/` |
|
|
225
227
|
| **L2 长期记忆** | 语义向量记忆,自动提取 + 语义召回 | 本地 SQLite + 本地 embedding(进程内) |
|
|
226
|
-
| **会话转录** | JSONL 对话记录,用于会话恢复 | `~/.qlogicagent/sessions/<id>/` |
|
|
228
|
+
| **会话转录** | JSONL 对话记录,用于会话恢复 | `~/.qlogicagent/profiles/<owner>/projectData/<projectId>/sessions/<id>/` |
|
|
227
229
|
|
|
228
230
|
### 工作方式
|
|
229
231
|
|
|
@@ -268,7 +270,7 @@ qlogicagent 内置 idle dream 机制:当用户空闲超过 `QLOGICAGENT_IDLE_D
|
|
|
268
270
|
特性:
|
|
269
271
|
- **自治管理**:不依赖外部调度器,agent 进程内部自动计时
|
|
270
272
|
- **冷却保护**:两次 Dream 之间必须间隔 `QLOGICAGENT_DREAM_COOLDOWN_MS`,防止频繁触发
|
|
271
|
-
- **用户活动中止**:Dream 执行中如果收到新的 `
|
|
273
|
+
- **用户活动中止**:Dream 执行中如果收到新的 `session/prompt`,自动中止 Dream
|
|
272
274
|
- **最大时长限制**:单次 Dream 最长 120 秒,超时自动终止
|
|
273
275
|
- **触发门控**:需满足记忆数据充足等前置条件才会真正执行
|
|
274
276
|
|
|
@@ -281,7 +283,7 @@ qlogicagent 内置 idle dream 机制:当用户空闲超过 `QLOGICAGENT_IDLE_D
|
|
|
281
283
|
| `~/.qlogicagent/plugins/` | 用户级插件目录 |
|
|
282
284
|
| `~/.qlogicagent/INSTRUCTIONS.md` | 用户级指令 |
|
|
283
285
|
| `~/.qlogicagent/session-memory.md` | MD 记忆文件 |
|
|
284
|
-
| `~/.qlogicagent/sessions/` |
|
|
286
|
+
| `~/.qlogicagent/profiles/<owner>/projectData/<projectId>/sessions/` | 会话持久化目录(按 projectId 集中,P1 迁移后)|
|
|
285
287
|
| `~/.qlogicagent/.credentials.json` | 安全凭据存储 (0o600) |
|
|
286
288
|
|
|
287
289
|
### 项目级配置
|
|
@@ -314,7 +316,7 @@ qlogicagent 内置 idle dream 机制:当用户空闲超过 `QLOGICAGENT_IDLE_D
|
|
|
314
316
|
}
|
|
315
317
|
```
|
|
316
318
|
|
|
317
|
-
### Per-Turn MCP(通过 `
|
|
319
|
+
### Per-Turn MCP(通过 `session/prompt` config)
|
|
318
320
|
|
|
319
321
|
```json
|
|
320
322
|
{
|