jaz-clio 5.73.0 → 5.73.1

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.
package/README.md CHANGED
@@ -20,11 +20,11 @@ Node.js 18+. Works with [Jaz](https://jaz.ai) and [Juan Accounting](https://juan
20
20
  ## Contents
21
21
 
22
22
  - [Three ways in](#three-ways-in)
23
+ - [Auth](#auth)
23
24
  - [CLI](#cli)
24
25
  - [MCP server](#mcp-server)
25
26
  - [Skills](#skills)
26
27
  - [Jaz Kit · run your practice](#jaz-kit--run-your-practice)
27
- - [Auth](#auth)
28
28
  - [Semantic help-center search](#semantic-help-center-search-optional)
29
29
  - [Privacy](#privacy) · [Support](#support) · [License](#license)
30
30
 
@@ -38,6 +38,19 @@ Node.js 18+. Works with [Jaz](https://jaz.ai) and [Juan Accounting](https://juan
38
38
 
39
39
  On top of these, one layer for accountants closing real books across many companies: **[Jaz Kit](#jaz-kit--run-your-practice)**.
40
40
 
41
+ ## Auth
42
+
43
+ ```bash
44
+ clio auth login # sign in to Jaz in your browser (OAuth, the default)
45
+ clio auth whoami # verify
46
+ ```
47
+
48
+ `clio auth login` opens Jaz sign-in. The CLI and local MCP share the session and refresh its tokens automatically. Add `--no-browser` to open the printed link yourself on the same computer. Agents can use `--json`: the sign-in link goes to stderr, and stdout carries only the result and the organization choices.
49
+
50
+ Use `clio auth organizations --json` to list accessible organizations, `clio auth select <resourceId>` to select one, and `--org oauth:<resourceId>` on every organization-scoped command to pin it. `clio auth logout` removes the local session and keeps any API-key profiles; revoke the grant in Jaz to remove remote access.
51
+
52
+ API-key profiles, `--api-key`, `JAZ_API_KEY`, and PATs remain supported. Use `--org oauth:<resourceId>` for OAuth or `--org <label>` for a saved key profile (`clio auth add <key>`); either overrides an inherited `JAZ_API_KEY`. Without `--org`, the environment key still takes precedence. Do not combine `--api-key` with `--org`. Do not share OAuth storage or commit it to a workspace. Every command takes `--json` for structured output.
53
+
41
54
  ## CLI
42
55
 
43
56
  ```bash
@@ -49,9 +62,25 @@ clio jobs month-end --period 2026-03 # step-by-step close play
49
62
  clio magic create --file receipt.pdf # AI extracts, drafts the transaction
50
63
  clio invoices search --query 'status:unpaid AND $500+' # structured per-entity search
51
64
  clio ledger-find-fix preview --level TRANSACTIONS --input recode.json # find & fix (recode) across record types
65
+ clio approvals approve <resourceId> --entity invoices # approve a document waiting on you
66
+ clio sql preview "SELECT invoice_number, balance FROM invoices WHERE balance > 0 LIMIT 10" # read-only pseudo-SQL
67
+ clio report-templates list # the organization's saved report layouts
68
+ clio modules list # which features are switched on
69
+ clio navigate reports.profit-and-loss # deep link into the Jaz dashboard (offline)
52
70
  ```
53
71
 
54
- 76 command groups, 16 report types, 13 calculators, 12 job playbooks. Every command takes `--json`. Run `clio --help` for the full list.
72
+ 76 command groups, 17 report types, 13 calculators, 12 job playbooks. Every command takes `--json`. Run `clio --help` for the full list.
73
+
74
+ Command groups by area:
75
+
76
+ - **Sales and purchases**: `invoices`, `bills`, `customer-credit-notes`, `supplier-credit-notes`, `sale-orders`, `purchase-orders`, `payments`, `unapplied-payments`, `approvals`, `drafts`, `schedulers`, `subscriptions`
77
+ - **Ledger and banking**: `journals`, `cash-in`, `cash-out`, `cash-transfer`, `cashflow`, `bank`, `bank-rules`, `reconciliations` (`recon`), `ledger-find-fix`, `quick-fix`, `fixed-assets` (`fa`)
78
+ - **Master data**: `accounts`, `contacts`, `contact-groups`, `items`, `purchase-items`, `catalogs`, `inventory` (`inv`), `tags`, `custom-fields`, `nano-classifiers`, `tax-profiles`, `currencies`, `currency-rates`, `capsules`, `capsule-recipes`
79
+ - **Claims**: `claims`, `claim-types`, `claim-profiles`, `posting-rules`, `employees`
80
+ - **Reports and data**: `reports`, `exports`, `export-records`, `report-templates`, `pseudo-sql` (`sql`), `filing-submissions`, `background-jobs`
81
+ - **Organization**: `org`, `org-users`, `references`, `modules` (`features`), `bookmarks`, `attachments`, `magic`, `jots`, `navigate` (`nav`), `help-center` (`hc`)
82
+ - **Offline**: `calc`, `capsule-transaction` (`ct`), `jobs`
83
+ - **Setup and tooling**: `auth`, `init`, `update`, `versions`, `version`, `health`, `completion`, `context`, `schema`, `resolve`, `mcp`, `mcp-call`, `serve`
55
84
 
56
85
  ### Foreign currency
57
86
 
@@ -82,12 +111,12 @@ that ends up in a journal.
82
111
 
83
112
  > **No install at all?** Claude.ai, ChatGPT, Cowork, and Microsoft Copilot Studio can use Jaz through the hosted connector. Add `https://mcp.jaz.ai/mcp` as a custom connector and sign in with OAuth, no key. The local setup below is for terminal use, scripting, and editors that run MCP servers as local processes.
84
113
 
85
- Run `clio auth login` once on this computer before enabling local MCP.
114
+ Run `clio auth login` once on this computer before enabling local MCP, then pin the organization with `--org` (`clio auth organizations` lists the IDs).
86
115
 
87
116
  **Claude Code**
88
117
 
89
118
  ```bash
90
- claude mcp add jaz -- npx jaz-clio mcp
119
+ claude mcp add jaz -- npx -y jaz-clio@latest mcp --org oauth:<resourceId>
91
120
  ```
92
121
 
93
122
  **Cursor · VS Code · Windsurf**
@@ -97,13 +126,13 @@ claude mcp add jaz -- npx jaz-clio mcp
97
126
  "mcpServers": {
98
127
  "jaz": {
99
128
  "command": "npx",
100
- "args": ["-y", "jaz-clio", "mcp"]
129
+ "args": ["-y", "jaz-clio@latest", "mcp", "--org", "oauth:<resourceId>"]
101
130
  }
102
131
  }
103
132
  }
104
133
  ```
105
134
 
106
- OAuth can reach the organizations granted at sign-in; name the organization on each call. Optional key-based access also supports comma-separated keys or a personal access token.
135
+ OAuth can reach the organizations granted at sign-in; `--org` pins one, and without it name the organization on each call. Optional key-based access also supports comma-separated keys or a personal access token.
107
136
 
108
137
  ```json
109
138
  { "env": { "JAZ_API_KEY": "jk-org1-key,jk-org2-key" } }
@@ -128,7 +157,7 @@ The workspace layer for closing real books, whether that is one company or fifty
128
157
  A close is not one conversation. Month-end runs many steps over several days, and an accountant serving eight clients runs it eight times, with eight different sets of bank accounts, materiality thresholds, and recurring entries. Jaz Kit gives each company a folder that remembers all of it, so no session re-asks what it should already know.
129
158
 
130
159
  ```
131
- /jk-setup create a company workspace, connect its key
160
+ /jk-setup create a company workspace, connect it with OAuth
132
161
  /jk-open acme load its context, verify the connection
133
162
  /jk-close 2026-06 run the close, resumable across sessions
134
163
  /jk-review approve the drafts waiting on you
@@ -142,15 +171,6 @@ Each company lives under `~/Documents/Jaz Kit/orgs/<company>/`, holding its clos
142
171
 
143
172
  Everything is drafted first, every record carries a link into Jaz for you to review, and an interrupted close resumes exactly where it stopped. Multi-company work needs this CLI, which you already have. Full guide in the [repository README](https://github.com/teamtinvio/jaz-ai#jaz-kit--run-your-practice).
144
173
 
145
- ## Auth
146
-
147
- ```bash
148
- clio auth login # Sign in to Jaz in your browser
149
- clio auth whoami # verify
150
- ```
151
-
152
- Pin an OAuth organization with `--org oauth:<resourceId>`. For optional API-key access, set `JAZ_API_KEY` or register a key using `clio auth add` and pass `--org <label>`. Every command takes `--json` for structured output.
153
-
154
174
  ## Semantic help-center search (optional)
155
175
 
156
176
  `search_help_center` runs keyword search over the bundled help-center corpus by default. Set `CLIO_HELP_CENTER_OPENAI_API_KEY` to add semantic search, which matches on intent rather than exact keywords: the CLI embeds only your query through the OpenAI embeddings API (`text-embedding-3-small`, the model the bundled index was built with) and merges both rankings. On an auth failure it warns once and falls back to keyword search. Use a project-scoped key restricted to embedding models with a low monthly cap. CLI only: MCPB installs ship without the embedding index and always use keyword search.
@@ -166,11 +186,3 @@ Runs on your machine. Calls go to the Jaz API over HTTPS. No telemetry, no data
166
186
  ## License
167
187
 
168
188
  [MIT](LICENSE)
169
-
170
- ## OAuth sign-in (default)
171
-
172
- Run `clio auth login` to open Jaz sign-in. CLI and local MCP share the session and refresh tokens automatically. Add `--no-browser` to open the printed link yourself on the same computer. Agents can use `--json`; the sign-in link is printed to stderr, and stdout contains only the result and organization choices.
173
-
174
- Use `clio auth organizations --json` to list accessible organizations, `clio auth select <resourceId>` to select one, and `--org oauth:<resourceId>` on every organization-scoped command to pin it. `clio auth logout` removes the local session without deleting API-key profiles; revoke its grant in Jaz to remove remote access.
175
-
176
- API-key profiles, `--api-key`, `JAZ_API_KEY`, and PATs remain supported. Use `--org oauth:<resourceId>` for OAuth or `--org <label>` for a saved key profile; either overrides an inherited `JAZ_API_KEY`. Without `--org`, the environment key still takes precedence. Do not combine `--api-key` with `--org`. Do not share OAuth storage or commit it to a workspace.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-api
3
- version: 5.73.0
3
+ version: 5.73.1
4
4
  description: >-
5
5
  Use this skill whenever you call, debug, or review code that touches the Jaz
6
6
  REST API. Covers field names, response shapes, 159 production gotchas, error
@@ -3,7 +3,7 @@
3
3
  > **The endpoints clio wraps — the REST surface is larger.** This file catalogues roughly 200
4
4
  > paths, organized by resource, including undocumented endpoints, magic AI features, admin
5
5
  > APIs, and advanced search/filter syntax. The committed OpenAPI spec (`spec/openapi.yaml`)
6
- > carries 454 paths / 381 operations and is the authoritative list; check it before concluding
6
+ > carries 466 spec paths and 594 spec operations and is the authoritative list; check it before concluding
7
7
  > an endpoint does not exist. For request/response examples of core endpoints, see
8
8
  > endpoints.md.
9
9
  >
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-cli
3
- version: 5.73.0
3
+ version: 5.73.1
4
4
  description: >-
5
5
  Use this skill when running Clio CLI commands, building shell scripts with
6
6
  Clio, debugging auth issues, understanding --json output, paginating results,
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-conversion
3
- version: 5.73.0
3
+ version: 5.73.1
4
4
  description: >-
5
5
  Use this skill when migrating accounting data into Jaz — importing from Xero,
6
6
  QuickBooks, Sage, MYOB, or Excel exports. Covers the full conversion pipeline:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-kit
3
- version: 5.73.0
3
+ version: 5.73.1
4
4
  description: >-
5
5
  Use this skill when an accountant, bookkeeper, or owner is running real books
6
6
  in Jaz across one or more organizations from the terminal — setting up a
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-pseudo-sql
3
- version: 5.73.0
3
+ version: 5.73.1
4
4
  description: >-
5
5
  Use this skill when answering ad-hoc data questions that aren't covered by
6
6
  download_export (canonical reports — anomaly, audit, aging, P&L, BS, GL,
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-jobs
3
- version: 5.73.0
3
+ version: 5.73.1
4
4
  description: >-
5
5
  Use this skill for recurring accounting workflows — month/quarter/year-end
6
6
  close, bank reconciliation, GST/VAT filing, payment runs, credit control,
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-recipes
3
- version: 5.73.0
3
+ version: 5.73.1
4
4
  description: >-
5
5
  Use this skill when modeling complex multi-step accounting transactions —
6
6
  anything that spans multiple periods, involves changing amounts, or requires
@@ -4,11 +4,11 @@ Jaz accounting guidance for this workspace. Load the installed Jaz skills for de
4
4
 
5
5
  ## Discovery
6
6
 
7
- Jaz exposes **381 tools across 46 namespaces**. Your tool list shows **3, 45, or 371** entries depending on packaging — **never infer capability from its length.**
7
+ Jaz exposes **381 tools across 46 namespaces**. Your tool list shows **3, 46, or 381** entries depending on packaging — **never infer capability from its length.**
8
8
 
9
9
  - **3** — `search_tools(query)` → `describe_tools(names)` → `execute_tool(name, args)`. Empty query returns the namespace map.
10
- - **45** — namespace routers; call one with `{ operation, arguments }`. Its description lists its operations.
11
- - **371** — call operations directly by name.
10
+ - **46** — namespace routers; call one with `{ operation, arguments }`. Its description lists its operations.
11
+ - **381** — call operations directly by name.
12
12
 
13
13
  `describe_capabilities` returns the capability map on all three. **Call it before telling the user Jaz cannot do something.**
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jaz-clio",
3
- "version": "5.73.0",
3
+ "version": "5.73.1",
4
4
  "description": "Clio: Command Line Interface Operator for Jaz AI.",
5
5
  "type": "module",
6
6
  "bin": {