@xiaodye/runeclaw 1.0.2 → 1.0.4

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 CHANGED
@@ -1,7 +1,3 @@
1
- <p align="center">
2
- <img src="./assets/runeclaw-logo.svg" alt="RuneClaw logo" width="720" />
3
- </p>
4
-
5
1
  # RuneClaw
6
2
 
7
3
  RuneClaw 是一个基于 TypeScript 的本地 AI Agent CLI。它把模型调用、文件工具、RAG、记忆、MCP、子 Agent、定时任务、插件和飞书通道放在同一个运行时里,适合做可迭代的个人 Agent 实验。
@@ -153,7 +149,7 @@ SERPER_API_KEY=
153
149
 
154
150
  ### 基础
155
151
 
156
- - `exit` 退出
152
+ - `/exit` 退出
157
153
  - `/context` 查看上下文占用
158
154
  - `/usage` 查看 token 和成本统计
159
155
  - `status` 查看当前消息、记忆和知识库状态
package/dist/index.js CHANGED
@@ -6202,12 +6202,16 @@ ${message}`);
6202
6202
  rl.question(`
6203
6203
  ${c.cyan}\u276F${c.reset} `, async (input) => {
6204
6204
  const trimmed = input.trim();
6205
- if (!trimmed || trimmed === "exit") {
6205
+ if (trimmed === "/exit") {
6206
6206
  console.log("Bye!");
6207
6207
  cronService.stop();
6208
6208
  await gateway.stopAll();
6209
6209
  await pluginManager.unloadAll();
6210
6210
  rl.close();
6211
+ process2.exit(0);
6212
+ }
6213
+ if (!trimmed) {
6214
+ ask();
6211
6215
  return;
6212
6216
  }
6213
6217
  const ctx = {
@@ -6254,7 +6258,7 @@ ${c.cyan}\u276F${c.reset} `, async (input) => {
6254
6258
  ` ${c.cyan}directory:${c.reset} ${c.bold}${process2.cwd()}${c.reset}`,
6255
6259
  ` ${c.cyan}role:${c.reset} ${c.yellow}${role}${c.reset} \xB7 \u53EF\u7528\u5DE5\u5177: ${c.green}${toolCount}${c.reset} \u4E2A`,
6256
6260
  "",
6257
- ` ${c.dim}Sub-Agent \u6DF1\u5EA6 ${agentRegistry.getConfig().maxSpawnDepth} / \u5E76\u53D1 ${agentRegistry.getConfig().maxConcurrent} \xB7 exit \u9000\u51FA \xB7 /help \u547D\u4EE4${c.reset}`
6261
+ ` ${c.dim}Sub-Agent \u6DF1\u5EA6 ${agentRegistry.getConfig().maxSpawnDepth} / \u5E76\u53D1 ${agentRegistry.getConfig().maxConcurrent} \xB7 /exit \u9000\u51FA \xB7 /help \u547D\u4EE4${c.reset}`
6258
6262
  ].join("\n"),
6259
6263
  {
6260
6264
  title: "RuneClaw",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaodye/runeclaw",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Local AI agent runtime for tools, memory, RAG, sub-agents, plugins, cron jobs, and channels.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",