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/release-1.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Changed — may break callers

- **attio is built on cli-core 1.0.0 and cli-base 1.0.0.** After its first run the store is at version 73, and only
tools on cli-core 1.0 open it: upgrade every WireCat CLI on this computer together. The migration keeps a rollback
copy, and refuses to run when it cannot write one (`store migrate --no-backup` migrates anyway).
- **`sync --rescan` no longer lets a sync mark most of a kind deleted.** It only lists everything again. When the
guard holds a pass, `sync --allow-deletions <count>` lets it mark at most that many records deleted. The flag is
for the owner in a terminal; the MCP server does not offer it.
- **A sync no longer marks records deleted when Attio could not list a whole kind.** The id pass is held until a
full list comes back.
- **An MCP call that names a refused folder answers `permission_error`**, not `validation_error`.
7 changes: 6 additions & 1 deletion docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -1994,6 +1994,7 @@ attio sync [options]
| Option | What it does |
|---|---|
| `--rescan` | list everything again, every id too, dropping a round in progress. |
| `--allow-deletions <count>` | let this run mark deleted up to this many of what its full list no longer has, when the guard holds it. |
| `--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. |

Expand Down Expand Up @@ -2066,9 +2067,13 @@ bring the store up to this build's schema, then normalize, index and stem the me
**Changes something on this computer only.**

```sh
attio store migrate
attio store migrate [options]
```

| Option | What it does |
|---|---|
| `--no-backup` | migrate even when no rollback copy can be written; older tools then cannot open the store again. |

**Returns:** store migration — path, exists, from, to, normalized, indexed, terms, stemmed, and 1 more; every field: attio commands info store migrate

**Example:** `attio work store migrate`
Expand Down
4 changes: 3 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.

**598 ✅ · 64 ⛔ · 0 ❌** — 189 commands, 473 options.
**599 ✅ · 65 ⛔ · 0 ❌** — 189 commands, 475 options.

| Command | Option | | Note |
|---|---|---|---|
Expand Down Expand Up @@ -456,6 +456,7 @@ Measured from the test run (`coverage/argv.jsonl`), not searched for — see
| `api self-list` | | ✅ | |
| `sync` | | ✅ | |
| `sync` | `--rescan` | ✅ | |
| `sync` | `--allow-deletions` | ✅ | |
| `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` | | ✅ | |
Expand All @@ -464,6 +465,7 @@ Measured from the test run (`coverage/argv.jsonl`), not searched for — see
| `store info` | | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program |
| `store check` | | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program |
| `store migrate` | | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program |
| `store migrate` | `--no-backup` | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program |
| `store rebuild` | | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program |
| `store backup` | | ⛔ | cli-core's addStoreMaintenanceCommands, mounted by addCrmCommands; its store and src/crm/cli/store-file tests drive them on a CRM program |
| `store backup` | `--encrypt` | ⛔ | 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 @@ -61,8 +61,8 @@
"source:check": "node --experimental-strip-types scripts/source-check.ts"
},
"dependencies": {
"@wirecat/cli-base": "0.132.0",
"@wirecat/cli-core": "0.753.0",
"@wirecat/cli-base": "1.0.0",
"@wirecat/cli-core": "1.0.0",
"commander": "15.0.0",
"valibot": "1.5.0"
},
Expand Down
32 changes: 16 additions & 16 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions src/crm-options.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ it("every option of the CRM commands runs against the fake workspace", async ()
["changes", "list", "--format", "csv"],
["search", "all", "name", "--only", "crm", "--limit", "5", "--page", "1", "--exact", "--timezone", "UTC"],
["search", "all", "name", "--source", "attio"],
["sync", "--allow-deletions", "5"],
]) {
const answer = await ran(argv)
expect(answer.code, `${argv.join(" ")}: ${answer.err}`).toBe(0)
Expand Down
2 changes: 1 addition & 1 deletion src/generated/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Source: spec/attio/, checked against provenance.json
// Run: pnpm generate

import type { SchemaNode } from "@wirecat/cli-base/codegen"
import type { SchemaNode } from "@wirecat/cli-base/codegen/runtime"

export const definitions: Readonly<Record<string, SchemaNode>> = {
Status: {
Expand Down
7 changes: 6 additions & 1 deletion src/generated/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
// Source: spec/attio/, checked against provenance.json
// Run: pnpm generate

import type { ApiServer, ManifestOperation, SecurityRequirement, SecurityScheme } from "@wirecat/cli-base/codegen"
import type {
ApiServer,
ManifestOperation,
SecurityRequirement,
SecurityScheme,
} from "@wirecat/cli-base/codegen/runtime"

export const operations: readonly ManifestOperation[] = [
{
Expand Down
Loading