cc-claw 0.20.17 → 0.20.18

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 +11 -8
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -33,7 +33,7 @@ var VERSION;
33
33
  var init_version = __esm({
34
34
  "src/version.ts"() {
35
35
  "use strict";
36
- VERSION = true ? "0.20.17" : (() => {
36
+ VERSION = true ? "0.20.18" : (() => {
37
37
  try {
38
38
  return JSON.parse(readFileSync(join(process.cwd(), "package.json"), "utf-8")).version ?? "unknown";
39
39
  } catch {
@@ -15863,14 +15863,17 @@ async function classifyWithLlm(text) {
15863
15863
  return null;
15864
15864
  }
15865
15865
  async function classifyWithOllama(text) {
15866
- const ollamaService = await Promise.resolve().then(() => (init_service(), service_exports));
15866
+ const ollamaStore = await Promise.resolve().then(() => (init_store6(), store_exports6));
15867
15867
  const ollamaClient = await Promise.resolve().then(() => (init_client(), client_exports));
15868
- const servers = ollamaService.listServers();
15868
+ const servers = ollamaStore.listServers();
15869
15869
  const onlineServer = servers.find((s) => s.status === "online");
15870
15870
  if (!onlineServer) return null;
15871
- const models = ollamaService.listModels(onlineServer.name);
15872
- if (models.length === 0) return null;
15873
- const sorted = [...models].sort(
15871
+ const allModels = ollamaStore.listModels(onlineServer.id);
15872
+ const chatModels = allModels.filter(
15873
+ (m) => !/embed|nomic|e5|bge/i.test(m.name)
15874
+ );
15875
+ if (chatModels.length === 0) return null;
15876
+ const sorted = [...chatModels].sort(
15874
15877
  (a, b) => (a.sizeBytes ?? Infinity) - (b.sizeBytes ?? Infinity)
15875
15878
  );
15876
15879
  const model2 = sorted[0].name;
@@ -16035,8 +16038,8 @@ var init_classify = __esm({
16035
16038
  // "what is", "what version", "what does"
16036
16039
  /^(?:which|where|when|why|who)\s+/i,
16037
16040
  // "which file", "where is", "when did"
16038
- /^(?:how\s+(?:do|does|can|did|many|much|long|often|come))\s+/i,
16039
- // "how do I", "how many"
16041
+ /^(?:how\s+(?:do|does|can|did|many|much|long|often|come|are|is|was|were|about))\s+/i,
16042
+ // "how do I", "how many", "how are you"
16040
16043
  /^(?:show|tell|list|explain|describe|summarize|display)\s+(?:me\s+)?/i,
16041
16044
  /^(?:do you|can you|could you|are you|is there|are there)\s+(?:know|have|see|find|show|tell|check|list|explain|describe)\s+/i,
16042
16045
  /^(?:give\s+me|get\s+me)\s+(?:the|a|my|an|current|latest)\s+/i,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-claw",
3
- "version": "0.20.17",
3
+ "version": "0.20.18",
4
4
  "description": "CC-Claw: Personal AI assistant on Telegram — multi-backend (Claude, Gemini, Codex, Cursor), sub-agent orchestration, MCP management",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",