Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions changes/cli-core-0751.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
### Added

- **`search all` finds deals and leads by the meaning of their notes, calls and tasks**, in other words or another
language, with the note's excerpt in the hit. `amo work sync --embed` builds the index with a model already
downloaded (`amo models download embeddinggemma`); until then `search all` says it searched by words only
(`@wirecat/cli-core` 0.751.0).
- **`people show` and `organizations show` take the `person:<id>` and `organization:<id>` a deal gives.**

### Changed — may break callers

- **`synced[].saved` in the `sync` answer counts only rows that changed** (new, different, deleted or back again), so
a sync with nothing new answers 0.

### Fixed

- **A deal moved in the same second its stage-task rules were set opens its task.**
1 change: 1 addition & 0 deletions contracts/help.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Works with:
memo context <person> one person across messengers, mail, notes and meetings
mail IMAP mail in the same local store: search your mailbox offline, next to your other WireCat data
b24 Bitrix24 CRM: deals, leads and pipelines, searchable with your other WireCat data
attio Attio CRM: deals, people and companies, searchable with your other WireCat data
pbx Asterisk PBX calls and recordings, searchable with your other WireCat data
notion Notion pages and databases as local text, searchable with your other WireCat data
ydisk Yandex Disk folders as local text, searchable with your other WireCat data
Expand Down
11 changes: 6 additions & 5 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,11 @@ amo sync [options]
|---|---|
| `--rescan` | list everything again, every id too, dropping a round in progress. |
| `--max-pages <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: amo commands info sync
**Returns:** crm sync — provider, account, scope, pipelines, skipped_owner_rejected, stage_tasks, synced, issues, and 10 more; every field: amo commands info sync

**Example:** `amo work sync`, `amo work sync --rescan`, `amo work sync --max-pages 20`
**Example:** `amo work sync`, `amo work sync --rescan`, `amo work sync --embed`

## `amo store`

Expand Down Expand Up @@ -621,7 +622,7 @@ amo people show <person>

| Argument | | What it is |
|---|---|---|
| `person` | required | the CRM's id of the person, as list prints it, or its exact name. |
| `person` | required | the CRM's id of the person, as list prints it, the person:<id> a deal gives, or its exact name. |

**Returns:** crm person — id, name, first_name, last_name, position, organization_ids, assigned_to, created_at, and 6 more; every field: amo commands info people show

Expand Down Expand Up @@ -717,7 +718,7 @@ amo organizations show <organization>

| Argument | | What it is |
|---|---|---|
| `organization` | required | the CRM's id of the organization, as list prints it, or its exact name. |
| `organization` | required | the CRM's id of the organization, as list prints it, the organization:<id> a deal gives, or its exact name. |

**Returns:** crm organization — id, name, type, own, person_ids, assigned_to, created_at, updated_at, and 5 more; every field: amo commands info organizations show

Expand Down Expand Up @@ -915,7 +916,7 @@ amo search all <query> [options]
| `--exact` | bare words and quotes match their exact form only, as exact:word does. |
| `--timezone <zone>` | the IANA timezone for calendar date boundaries. |

**Returns:** hit — kind, ref, provider, account, title, timestamp, excerpt, url, and 18 more; every field: amo commands info search all
**Returns:** hit — kind, ref, provider, account, title, timestamp, excerpt, url, and 19 more; every field: amo commands info search all

**Example:** `amo work search all Example LLC`, `amo work search all website --only crm --json`

Expand Down
3 changes: 2 additions & 1 deletion docs/dev/test-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

**184 ✅ · 64 ⛔ · 0 ❌** — 87 commands, 161 options.
**184 ✅ · 65 ⛔ · 0 ❌** — 87 commands, 162 options.

| Command | Option | | Note |
|---|---|---|---|
Expand All @@ -25,6 +25,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` | | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program |
| `store apply` | | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program |
| `store apply` | `--yes` | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program |
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
"dependencies": {
"@wirecat/cli-base": "0.127.0",
"@wirecat/cli-core": "0.722.0",
"@wirecat/cli-core": "0.751.0",
"commander": "15.0.0",
"valibot": "1.5.0"
},
Expand All @@ -73,7 +73,7 @@
"@cspell/dict-ru_ru": "2.3.4",
"@types/node": "22.20.5",
"@vitest/coverage-v8": "5.0.5",
"@wirecat/cli-testing": "0.7.0",
"@wirecat/cli-testing": "0.7.4",
"cspell": "10.4.0",
"esbuild": "0.28.2",
"lefthook": "2.2.2",
Expand Down
20 changes: 10 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions scripts/test-matrix-untested.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ const SHARED_SCHEDULE =
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",
},
...[
...["--at-time", "--notify-on", "--deliver-to"].map((option) => ({ command: "schedule command", option })),
{ command: "schedule agent" },
Expand Down