cc-claw 0.4.2 → 0.4.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 +1 -0
- package/dist/cli.js +14 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -174,6 +174,7 @@ Read commands work offline (direct DB access). Write commands require the daemon
|
|
|
174
174
|
| Command | Description |
|
|
175
175
|
|---------|-------------|
|
|
176
176
|
| `/memory` | List memories |
|
|
177
|
+
| `/remember <text>` | Save a memory |
|
|
177
178
|
| `/forget <keyword>` | Remove memories |
|
|
178
179
|
| `/history` | Past session summaries |
|
|
179
180
|
| `/cost` | API cost breakdown |
|
package/dist/cli.js
CHANGED
|
@@ -48,7 +48,7 @@ var VERSION;
|
|
|
48
48
|
var init_version = __esm({
|
|
49
49
|
"src/version.ts"() {
|
|
50
50
|
"use strict";
|
|
51
|
-
VERSION = true ? "0.4.
|
|
51
|
+
VERSION = true ? "0.4.4" : (() => {
|
|
52
52
|
try {
|
|
53
53
|
return JSON.parse(readFileSync(join2(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
|
|
54
54
|
} catch {
|
|
@@ -7416,6 +7416,7 @@ var init_telegram2 = __esm({
|
|
|
7416
7416
|
{ command: "cwd", description: "Set or show working directory" },
|
|
7417
7417
|
// Memory
|
|
7418
7418
|
{ command: "memory", description: "List stored memories" },
|
|
7419
|
+
{ command: "remember", description: "Save a memory" },
|
|
7419
7420
|
{ command: "forget", description: "Remove a memory by keyword" },
|
|
7420
7421
|
{ command: "history", description: "List recent session summaries" },
|
|
7421
7422
|
// Cost & usage
|
|
@@ -9505,7 +9506,7 @@ async function handleCommand(msg, channel) {
|
|
|
9505
9506
|
case "help":
|
|
9506
9507
|
await channel.sendText(
|
|
9507
9508
|
chatId,
|
|
9508
|
-
"Hey! I'm CC-Claw \u2014 your personal AI assistant on Telegram.\n\nI use AI coding CLIs (Claude, Gemini, Codex) as my brain. Just send me a message to get started.\n\nCommands:\n/backend [name] - Switch AI backend (or /claude /gemini /codex)\n/model - Switch model for active backend\n/summarizer - Configure session summarization model\n/status - Show session, model, backend, and usage\n/cost - Show estimated API cost (use /cost all for all-time)\n/usage - Show usage per backend with limits\n/limits - Configure usage limits per backend\n/newchat - Start a fresh conversation\n/summarize - Save session to memory (without resetting)\n/summarize all - Summarize all pending sessions (pre-restart)\n/cwd <path> - Set working directory\n/cwd - Show current working directory\n/memory - List stored memories\n/forget <keyword> - Remove a memory\n/voice - Toggle voice responses\n/imagine <prompt> - Generate an image (or /image)\n/cron <description> - Schedule a task (or /schedule)\n/cron - List scheduled jobs (or /jobs)\n/cron cancel <id> - Cancel a job\n/cron pause <id> - Pause a job\n/cron resume <id> - Resume a job\n/cron run <id> - Trigger a job now\n/cron runs [id] - View run history\n/cron edit <id> - Edit a job\n/cron health - Scheduler health\n/skills - List skills from all backends\n/skill-install <url> - Install a skill from GitHub\n/setup-profile - Set up your user profile\n/chats - List authorized chats and aliases\n/heartbeat - Proactive awareness (on/off/interval/hours)\n/history - List recent session summaries\n/stop - Cancel the current running task\n/tools - Configure which tools the agent can use\n/permissions - Switch permission mode (yolo/safe/plan)\n/verbose - Tool visibility (off/normal/verbose)\n/agents - List active sub-agents\n/tasks - Show task board for current orchestration\n/stopagent <id> - Cancel a specific sub-agent\n/stopall - Cancel all sub-agents in this chat\n/runners - List registered CLI runners\n/mcps - List registered MCP servers\n/help - Show this message",
|
|
9509
|
+
"Hey! I'm CC-Claw \u2014 your personal AI assistant on Telegram.\n\nI use AI coding CLIs (Claude, Gemini, Codex) as my brain. Just send me a message to get started.\n\nCommands:\n/backend [name] - Switch AI backend (or /claude /gemini /codex)\n/model - Switch model for active backend\n/summarizer - Configure session summarization model\n/status - Show session, model, backend, and usage\n/cost - Show estimated API cost (use /cost all for all-time)\n/usage - Show usage per backend with limits\n/limits - Configure usage limits per backend\n/newchat - Start a fresh conversation\n/summarize - Save session to memory (without resetting)\n/summarize all - Summarize all pending sessions (pre-restart)\n/cwd <path> - Set working directory\n/cwd - Show current working directory\n/memory - List stored memories\n/remember <text> - Save a memory\n/forget <keyword> - Remove a memory\n/voice - Toggle voice responses\n/imagine <prompt> - Generate an image (or /image)\n/cron <description> - Schedule a task (or /schedule)\n/cron - List scheduled jobs (or /jobs)\n/cron cancel <id> - Cancel a job\n/cron pause <id> - Pause a job\n/cron resume <id> - Resume a job\n/cron run <id> - Trigger a job now\n/cron runs [id] - View run history\n/cron edit <id> - Edit a job\n/cron health - Scheduler health\n/skills - List skills from all backends\n/skill-install <url> - Install a skill from GitHub\n/setup-profile - Set up your user profile\n/chats - List authorized chats and aliases\n/heartbeat - Proactive awareness (on/off/interval/hours)\n/history - List recent session summaries\n/stop - Cancel the current running task\n/tools - Configure which tools the agent can use\n/permissions - Switch permission mode (yolo/safe/plan)\n/verbose - Tool visibility (off/normal/verbose)\n/agents - List active sub-agents\n/tasks - Show task board for current orchestration\n/stopagent <id> - Cancel a specific sub-agent\n/stopall - Cancel all sub-agents in this chat\n/runners - List registered CLI runners\n/mcps - List registered MCP servers\n/help - Show this message",
|
|
9509
9510
|
"plain"
|
|
9510
9511
|
);
|
|
9511
9512
|
break;
|
|
@@ -9974,6 +9975,17 @@ ${lines.join("\n")}`, "plain");
|
|
|
9974
9975
|
await channel.sendText(chatId, lines.join("\n"), "plain");
|
|
9975
9976
|
break;
|
|
9976
9977
|
}
|
|
9978
|
+
case "remember": {
|
|
9979
|
+
if (!commandArgs) {
|
|
9980
|
+
await channel.sendText(chatId, "Usage: /remember <text>", "plain");
|
|
9981
|
+
return;
|
|
9982
|
+
}
|
|
9983
|
+
const content = commandArgs.replace(/^that\s+/i, "");
|
|
9984
|
+
const trigger = content.split(/\s+/).slice(0, 3).join(" ");
|
|
9985
|
+
saveMemoryWithEmbedding(trigger, content, "semantic");
|
|
9986
|
+
await channel.sendText(chatId, "Got it, I'll remember that.", "plain");
|
|
9987
|
+
break;
|
|
9988
|
+
}
|
|
9977
9989
|
case "forget": {
|
|
9978
9990
|
if (!commandArgs) {
|
|
9979
9991
|
await channel.sendText(chatId, "Usage: /forget <keyword>", "plain");
|
package/package.json
CHANGED