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
11 changes: 11 additions & 0 deletions changes/cli-core-0751.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Added

- **`search all` finds deals and leads by the meaning of their activities:** calls, e-mails, comments and tasks, in
other words or another language, with the activity's excerpt in the hit. `b24 work sync --embed` builds the index
with a model already downloaded (`b24 models download embeddinggemma`); until then `search all` says it searched by
words only. Needs `activities` on (`@wirecat/cli-core` 0.751.0).

### 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.
5 changes: 3 additions & 2 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,11 @@ b24 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: 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`

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.

**234 ✅ · 90 ⛔ · 0 ❌** — 112 commands, 212 options.
**234 ✅ · 91 ⛔ · 0 ❌** — 112 commands, 213 options.

| Command | Option | | Note |
|---|---|---|---|
Expand All @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
10 changes: 5 additions & 5 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 @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions src/crm/files.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const portalWithFiles = () => {
const read = async (stream: ReadableStream<Uint8Array>) => new Response(stream).text()

describe("crmFilesContract over the fake portal", () => {
// Windows has no POSIX modes, and cli-core's contract asserts 0600 and 0700 there too (cli-core fix pending).
for (const { name, run } of crmFilesContract(() => {
const { source, own, theirs } = portalWithFiles()
return {
Expand All @@ -42,7 +41,7 @@ describe("crmFilesContract over the fake portal", () => {
refused: [`deal:${own}:comment:802.932`, `deal:${own}:comment:803.933`],
}
}))
it.skipIf(process.platform === "win32" && name.includes("600 in 700"))(name, run)
it(name, run)
})

describe("a record's files on the portal", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/permissions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ describe("search all under a denied list key", () => {
const answer = ran.json() as { items: { kind: string }[]; missing?: unknown }
expect(answer.items.length).toBeGreaterThan(0)
expect(answer.items.every((item) => item.kind === "lead")).toBe(true)
expect(answer.missing).toEqual([{ field: "items", why: "deal left out: profile work denies deals.list" }])
expect(answer.missing).toContainEqual({ field: "items", why: "deal left out: profile work denies deals.list" })
expect(ran.err).toContain("deal left out: profile work denies deals.list")
})
await withPermissions({ "deals.list": "deny", "leads.list": "deny" }, async () => {
Expand Down
Loading