cc-claw 0.3.5 → 0.3.7

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.
Files changed (2) hide show
  1. package/dist/cli.js +8 -3
  2. package/package.json +1 -1
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.3.5" : (() => {
51
+ VERSION = true ? "0.3.7" : (() => {
52
52
  try {
53
53
  return JSON.parse(readFileSync(join2(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
54
54
  } catch {
@@ -7100,6 +7100,7 @@ var init_telegram2 = __esm({
7100
7100
  // Core
7101
7101
  { command: "help", description: "Show available commands" },
7102
7102
  { command: "status", description: "Session, backend, model, and usage" },
7103
+ { command: "new", description: "Start a fresh conversation" },
7103
7104
  { command: "newchat", description: "Start a fresh conversation" },
7104
7105
  { command: "summarize", description: "Save session to memory (or 'all' for pre-restart)" },
7105
7106
  { command: "stop", description: "Cancel the current running task" },
@@ -7125,6 +7126,7 @@ var init_telegram2 = __esm({
7125
7126
  { command: "limits", description: "Configure usage limits per backend" },
7126
7127
  // Scheduling
7127
7128
  { command: "schedule", description: "Schedule a recurring task" },
7129
+ { command: "cron", description: "List jobs or manage scheduling" },
7128
7130
  { command: "jobs", description: "List scheduled jobs" },
7129
7131
  { command: "run", description: "Trigger a job immediately" },
7130
7132
  { command: "runs", description: "Show recent job run history" },
@@ -9208,6 +9210,7 @@ Tap to toggle:`,
9208
9210
  }
9209
9211
  break;
9210
9212
  }
9213
+ case "new":
9211
9214
  case "newchat": {
9212
9215
  const summarized = await summarizeSession(chatId);
9213
9216
  clearSession(chatId);
@@ -13017,7 +13020,8 @@ async function cronCreate(globalOpts, opts) {
13017
13020
  const { success: successFmt } = await Promise.resolve().then(() => (init_format(), format_exports));
13018
13021
  const timeout = parseAndValidateTimeout(opts.timeout);
13019
13022
  try {
13020
- const { insertJob: insertJob2 } = await Promise.resolve().then(() => (init_store4(), store_exports3));
13023
+ const { initDatabase: initDatabase2, insertJob: insertJob2 } = await Promise.resolve().then(() => (init_store4(), store_exports3));
13024
+ initDatabase2();
13021
13025
  const schedType = opts.cron ? "cron" : opts.at ? "at" : "every";
13022
13026
  let everyMs = null;
13023
13027
  if (opts.every) {
@@ -13081,7 +13085,8 @@ async function cronEdit(globalOpts, id, opts) {
13081
13085
  const jobId = parseInt(id, 10);
13082
13086
  const { success: successFmt } = await Promise.resolve().then(() => (init_format(), format_exports));
13083
13087
  try {
13084
- const { getDb: getDb2 } = await Promise.resolve().then(() => (init_store4(), store_exports3));
13088
+ const { initDatabase: initDatabase2, getDb: getDb2 } = await Promise.resolve().then(() => (init_store4(), store_exports3));
13089
+ initDatabase2();
13085
13090
  const db3 = getDb2();
13086
13091
  const updates = [];
13087
13092
  const values = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-claw",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "description": "CC-Claw: Personal AI assistant on Telegram — multi-backend (Claude, Gemini, Codex), sub-agent orchestration, MCP management",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",