From 6ae81cb7873066ab02d90522f55c44ac3753f146 Mon Sep 17 00:00:00 2001 From: leemour Date: Wed, 25 Nov 2026 05:02:34 +0100 Subject: [PATCH 1/2] feat(search): search all by the meaning of activities, on cli-core 0.751.0 cli-core 0.743.0 indexes CRM activities with sync --embed, and search all finds deals and leads by what their timeline comments, e-mails, calls and tasks mean, in Russian or any language. Later versions list a name one letter off the matched one after it and read a Latin name typed in Cyrillic and a Russian name typed in Latin (match: corrected). The skill now tells an agent to ask search all by meaning before it lists and reads every activity, as hubspot-cli does since its PR #29. The test matrix names sync --embed as checked in cli-core, which needs a model on disk. Co-Authored-By: Claude Opus 5.5 --- changes/feat-meaning-search.md | 11 +++++++++++ docs/commands.md | 5 +++-- docs/dev/test-matrix.md | 3 ++- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- scripts/test-matrix-untested.ts | 7 +++++++ skills/bitrix24-cli/SKILL.md | 7 +++++++ 7 files changed, 36 insertions(+), 9 deletions(-) create mode 100644 changes/feat-meaning-search.md diff --git a/changes/feat-meaning-search.md b/changes/feat-meaning-search.md new file mode 100644 index 0000000..e6e45e6 --- /dev/null +++ b/changes/feat-meaning-search.md @@ -0,0 +1,11 @@ +### Added + +- **`sync --embed` and `search all` by meaning** (cli-core 0.751.0). With the `activities` setting on, `sync --embed` + indexes the copied timeline comments, e-mails, calls, meetings and tasks with a model already downloaded, and + `search all` then finds deals and leads by what their activities mean, in Russian or any language, not only by + their words. The skill tells an agent to ask by meaning before it reads every activity. + +### Fixed + +- `search all` lists a name one letter off the one that matched after it, and finds a Latin name typed in Cyrillic + letters and a Russian name typed in Latin letters, each marked `match: corrected`. diff --git a/docs/commands.md b/docs/commands.md index 1bae977..5653dfc 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -132,10 +132,11 @@ b24 sync [options] |---|---| | `--rescan` | list everything again, every id too, dropping a round in progress. | | `--max-pages ` | at most this many requests to the CRM in this run. | +| `--embed` | also index new activities and tasks for search all by meaning, with a model already downloaded. | -**Returns:** crm sync — provider, account, scope, pipelines, skipped_owner_rejected, stage_tasks, synced, issues, and 9 more; every field: b24 commands info sync +**Returns:** crm sync — provider, account, scope, pipelines, skipped_owner_rejected, stage_tasks, synced, issues, and 10 more; every field: b24 commands info sync -**Example:** `b24 work sync`, `b24 work sync --rescan`, `b24 work sync --max-pages 20` +**Example:** `b24 work sync`, `b24 work sync --rescan`, `b24 work sync --embed` ## `b24 store` diff --git a/docs/dev/test-matrix.md b/docs/dev/test-matrix.md index 9f5ae34..2217cb4 100644 --- a/docs/dev/test-matrix.md +++ b/docs/dev/test-matrix.md @@ -7,7 +7,7 @@ ran it · ⛔ not tested offline, with the reason and where it is checked instea Measured from the test run (`coverage/argv.jsonl`), not searched for — see [TESTING.md](TESTING.md) for how, and for the states and failures that cut across commands. -**234 ✅ · 90 ⛔ · 0 ❌** — 112 commands, 212 options. +**234 ✅ · 91 ⛔ · 0 ❌** — 112 commands, 213 options. | Command | Option | | Note | |---|---|---|---| @@ -24,6 +24,7 @@ Measured from the test run (`coverage/argv.jsonl`), not searched for — see | `sync` | | ✅ | | | `sync` | `--rescan` | ✅ | | | `sync` | `--max-pages` | ✅ | | +| `sync` | `--embed` | ⛔ | cli-core's CRM sync embeds activities; its src/crm/cli/activity-meaning.test.ts drives sync --embed and search all by meaning on a CRM program with the small test model, and a test here would need a model on disk | | `store status` | | ✅ | | | `store apply` | | ✅ | | | `store apply` | `--yes` | ⛔ | cli-core 0.670.0 src/crm/cli/commands.test.ts removes the counted contacts only with --yes | diff --git a/package.json b/package.json index 4b7a3bf..560b51c 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "docs:spell": "cspell lint --config cspell.json --no-progress --no-summary README.md SECURITY.md CHANGELOG.md AGENTS.md CLAUDE.md 'docs/*.md' 'skills/**/*.md'" }, "dependencies": { - "@wirecat/cli-core": "0.739.0", + "@wirecat/cli-core": "0.751.0", "commander": "15.0.0", "valibot": "1.5.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 266eba4..6fda0a4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,8 +13,8 @@ importers: .: dependencies: '@wirecat/cli-core': - specifier: 0.739.0 - version: 0.739.0(@wirecat/cli-base@0.127.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7) + specifier: 0.751.0 + version: 0.751.0(@wirecat/cli-base@0.127.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7) commander: specifier: 15.0.0 version: 15.0.0 @@ -1189,8 +1189,8 @@ packages: '@wirecat/cli-core-sqlite@1.1.0': resolution: {integrity: sha512-GpGlh/dAIX/nblBYCdT6DfWSLFxav9mxxeELQAfEuw+QZdT9unKxbi5xa02s/s4JS1P7n0PQx2sCABj4FlMRNw==} - '@wirecat/cli-core@0.739.0': - resolution: {integrity: sha512-gBZG5Wdf0a0r6OVi/4YTPYjFk+83uAmX1OokMvuG53/DMVmS63guhU9SMhlnBxf2qqNCpxZ4notmg2FCwKSMnQ==} + '@wirecat/cli-core@0.751.0': + resolution: {integrity: sha512-jZ6F9wthLPyB3KC480ZFoAa51DWeaadcvK80Bmqn5scYthDHujvd1LAxvs7nJcenP1mnucnrMbnwvkiogRu4bA==} engines: {node: ^22.16.0 || >=24} hasBin: true peerDependencies: @@ -3303,7 +3303,7 @@ snapshots: '@wirecat/cli-core-sqlite@1.1.0': {} - '@wirecat/cli-core@0.739.0(@wirecat/cli-base@0.127.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7)': + '@wirecat/cli-core@0.751.0(@wirecat/cli-base@0.127.0(commander@15.0.0)(esbuild@0.28.2)(typescript@7.0.2)(vitest@5.0.5))(commander@15.0.0)(typescript@7.0.2)(zod@4.6.7)': dependencies: '@anthropic-ai/sdk': 1.3.0(zod@4.6.7) '@bomb.sh/tab': 0.0.22(commander@15.0.0) diff --git a/scripts/test-matrix-untested.ts b/scripts/test-matrix-untested.ts index f152b27..984baaa 100644 --- a/scripts/test-matrix-untested.ts +++ b/scripts/test-matrix-untested.ts @@ -19,6 +19,13 @@ const SHARED_FILES = const LONG_RUNNING = `starts an HTTP server or a background process that runs until stopped; ${SHARED_MCP}` export const UNTESTED: { command: string; option?: string; reason: string }[] = [ + { + command: "sync", + option: "--embed", + reason: + "cli-core's CRM sync embeds activities; its src/crm/cli/activity-meaning.test.ts drives sync --embed and search " + + "all by meaning on a CRM program with the small test model, and a test here would need a model on disk", + }, { command: "setup", reason: diff --git a/skills/bitrix24-cli/SKILL.md b/skills/bitrix24-cli/SKILL.md index 3649791..5a5747d 100644 --- a/skills/bitrix24-cli/SKILL.md +++ b/skills/bitrix24-cli/SKILL.md @@ -52,6 +52,13 @@ and lists the profiles in `details.profiles`. **Never pick one for the owner**; and still exit `0`: read `complete`, `scope` and `issues`; answer "unknown", not "none", for what they name. `search all` names in `missing` a kind it did not search. Before you say something is not there, search in other words, and `sync` if the store is old. +- **Ask by meaning before reading every comment.** «Кто жаловался, что монтаж перенесли» or "who got a cheaper + offer" is one `search all "" --json`: with the `activities` setting on, it finds deals + and leads by what their timeline comments, e-mails, calls and tasks mean, in Russian or any language, once + `sync --embed` has built their vectors (it says so when they are missing; run it again while it offers to). It + also corrects a misspelt name or a Russian name typed in Latin letters (and the reverse) and lists near-duplicate + names after the exact ones (`match: corrected`): check those before you answer from the first hit. List and read + every activity only when that search finds nothing. - **Won or lost is `status`, never the stage's name** (leads stand in one pipeline, `Leads`). `fields list` is as old as the last `sync`. - **Never infer what Bitrix24 does not hold:** contact roles on a deal, reporting lines between contacts, a parent From 49f059a6cfea129eb34201aba8de12f018c01809 Mon Sep 17 00:00:00 2001 From: leemour Date: Wed, 25 Nov 2026 05:10:15 +0100 Subject: [PATCH 2/2] docs(skill): keep the meaning-search detail in references/reading.md SKILL.md has an 8500-byte budget (scripts/check-agent-docs.ts) and the full bullet took it to 9171. SKILL.md now points to a "By meaning" section in references/reading.md, and its search all example asks by meaning. Co-Authored-By: Claude Opus 5.5 --- changes/feat-meaning-search.md | 3 ++- skills/bitrix24-cli/SKILL.md | 10 ++-------- skills/bitrix24-cli/references/reading.md | 10 ++++++++++ 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/changes/feat-meaning-search.md b/changes/feat-meaning-search.md index e6e45e6..b4a058d 100644 --- a/changes/feat-meaning-search.md +++ b/changes/feat-meaning-search.md @@ -3,7 +3,8 @@ - **`sync --embed` and `search all` by meaning** (cli-core 0.751.0). With the `activities` setting on, `sync --embed` indexes the copied timeline comments, e-mails, calls, meetings and tasks with a model already downloaded, and `search all` then finds deals and leads by what their activities mean, in Russian or any language, not only by - their words. The skill tells an agent to ask by meaning before it reads every activity. + their words. The skill tells an agent to ask by meaning before it reads every activity; the detail is in + `b24 skill show reading`. ### Fixed diff --git a/skills/bitrix24-cli/SKILL.md b/skills/bitrix24-cli/SKILL.md index 5a5747d..6ef09d5 100644 --- a/skills/bitrix24-cli/SKILL.md +++ b/skills/bitrix24-cli/SKILL.md @@ -41,7 +41,7 @@ and lists the profiles in `details.profiles`. **Never pick one for the owner**; b24 work deals list status:open --json=ref,title,stage,amount,currency b24 work deals show deal:12 --json # the deal, its contacts, owner and stage history b24 work people show "Anna Ivanova" --json # a contact live from the portal, by id or exact name - b24 work search all kitchen --json # stored deals and leads beside messages and notes + b24 work search all "who complained of delays" --json # by meaning too, after sync --embed ``` - **Ids are strings.** Pass `deal:12` and `"57164"` back unchanged; never turn one into a number. @@ -52,13 +52,7 @@ and lists the profiles in `details.profiles`. **Never pick one for the owner**; and still exit `0`: read `complete`, `scope` and `issues`; answer "unknown", not "none", for what they name. `search all` names in `missing` a kind it did not search. Before you say something is not there, search in other words, and `sync` if the store is old. -- **Ask by meaning before reading every comment.** «Кто жаловался, что монтаж перенесли» or "who got a cheaper - offer" is one `search all "" --json`: with the `activities` setting on, it finds deals - and leads by what their timeline comments, e-mails, calls and tasks mean, in Russian or any language, once - `sync --embed` has built their vectors (it says so when they are missing; run it again while it offers to). It - also corrects a misspelt name or a Russian name typed in Latin letters (and the reverse) and lists near-duplicate - names after the exact ones (`match: corrected`): check those before you answer from the first hit. List and read - every activity only when that search finds nothing. +- **Ask `search all` by meaning first:** [reading](references/reading.md#by-meaning). - **Won or lost is `status`, never the stage's name** (leads stand in one pipeline, `Leads`). `fields list` is as old as the last `sync`. - **Never infer what Bitrix24 does not hold:** contact roles on a deal, reporting lines between contacts, a parent diff --git a/skills/bitrix24-cli/references/reading.md b/skills/bitrix24-cli/references/reading.md index 388f83b..e763465 100644 --- a/skills/bitrix24-cli/references/reading.md +++ b/skills/bitrix24-cli/references/reading.md @@ -12,6 +12,16 @@ the detail behind them. `organizations` and `users` page with `--limit` (1 to 250, 50 when left out) and `--page`; they take no `--all`. `users list name:` matches part of the whole name. +## By meaning + +- **Ask by meaning before reading every comment.** «Кто жаловался, что монтаж перенесли» or "who got a cheaper offer" + is one `search all "" --json`: with the `activities` setting on, it finds deals and + leads by what their timeline comments, e-mails, calls and tasks mean, in Russian or any language, once + `sync --embed` has built their vectors (it says so when they are missing; run it again while it offers to). +- It also corrects a misspelt name or a Russian name typed in Latin letters (and the reverse) and lists + near-duplicate names after the exact ones (`match: corrected`): check those before you answer from the first hit. +- List and read every activity only when that search finds nothing. + ## Client files - `files list --deal 12` (or `--lead`, `--person`, `--organization`) lists one record's files live from the portal: