jaz-clio 9.11.0 → 9.12.0

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
@@ -3,13 +3,13 @@
3
3
  <p align="center">
4
4
  <a href="https://www.npmjs.com/package/jaz-clio"><img src="https://img.shields.io/npm/v/jaz-clio?style=for-the-badge&logo=npm" alt="npm"></a>
5
5
  <a href="https://www.npmjs.com/package/jaz-clio"><img src="https://img.shields.io/npm/dm/jaz-clio?style=for-the-badge&label=downloads" alt="npm downloads"></a>
6
- <img src="https://img.shields.io/badge/tools-523-blue?style=for-the-badge" alt="523 tools">
6
+ <img src="https://img.shields.io/badge/tools-526-blue?style=for-the-badge" alt="526 tools">
7
7
  <a href="https://github.com/teamtinvio/jaz-ai/blob/main/LICENSE"><img src="https://img.shields.io/github/license/teamtinvio/jaz-ai?style=for-the-badge&color=green" alt="License"></a>
8
8
  </p>
9
9
 
10
10
  <p align="center"><b>Fastest ledger for agents.</b><br>Jaz accounting on the command line, and inside any AI agent.</p>
11
11
 
12
- 523 tools · 80 command groups · 8 skills · 13 calculators · 12 job playbooks · 148 field-tested API rules.
12
+ 526 tools · 80 command groups · 8 skills · 13 calculators · 12 job playbooks · 148 field-tested API rules.
13
13
 
14
14
  ```bash
15
15
  npm install -g jaz-clio
@@ -109,7 +109,7 @@ that ends up in a journal.
109
109
 
110
110
  ## MCP server
111
111
 
112
- 523 tools for any AI agent that speaks MCP. Runs locally: no cloud, no ports.
112
+ 526 tools for any AI agent that speaks MCP. Runs locally: no cloud, no ports.
113
113
 
114
114
  > **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.
115
115
 
@@ -14,7 +14,7 @@ description: >-
14
14
  license: MIT
15
15
  compatibility: Uses Jaz OAuth by default; organization API keys remain supported. Works with Claude Code, Google Antigravity, OpenAI Codex, GitHub Copilot, Cursor, and any agent that reads markdown.
16
16
  metadata:
17
- version: "9.11.0"
17
+ version: "9.12.0"
18
18
  ---
19
19
 
20
20
  # Jaz API Skill
@@ -93,7 +93,7 @@ To change a few fields on some lines without resending the document, use `quick_
93
93
  `sale_orders`: `create_sale_order`, `get_sale_order`, `search_sale_orders`, `search_sale_order_line_items`, `update_sale_order`, `accept_sale_quote`, `confirm_sale_order`, `void_sale_order`, `delete_sale_order`, `convert_sale_order_to_invoice`.
94
94
  `purchase_orders`: `create_purchase_order`, `get_purchase_order`, `search_purchase_orders`, `search_purchase_order_line_items`, `update_purchase_order`, `accept_purchase_request`, `confirm_purchase_order`, `void_purchase_order`, `delete_purchase_order`, `convert_purchase_order_to_bill`.
95
95
 
96
- PDF downloads for the documents these convert into: `download_bill_pdf` (`bills`), `download_supplier_credit_note_pdf` (`supplier_credit_notes`), alongside the existing `download_invoice_pdf` / `download_credit_note_pdf`.
96
+ PDF downloads: `download_sale_order_pdf` (`documentType` SALE_QUOTE or SALE_ORDER; a sale order also takes `variant` ORDER_CONFIRMATION or DELIVERY_SLIP) and `download_purchase_order_pdf` (`documentType` PURCHASE_REQUEST or PURCHASE_ORDER) here, and for the documents these convert into: `download_bill_pdf` (`bills`, `variant` APPROVAL_RECORD for the approval record), `download_supplier_credit_note_pdf` (`supplier_credit_notes`), `download_invoice_pdf` (`invoices`, `variant` DELIVERY_SLIP for the delivery slip) and `download_credit_note_pdf`. `download_payment_pdf` (`payments`) gives a payment receipt, payment advice or refund document. Over the API the variant is the `documentType` query parameter.
97
97
 
98
98
  ## CLI (full surface incl. long-tail)
99
99
 
@@ -102,7 +102,11 @@ clio sale-orders list|get|search|search-line-items|create|update|accept|conf
102
102
  |bulk-void|bulk-accept|bulk-confirm|bulk-delete|bulk-upsert-line-items (-t quote|order)
103
103
  clio purchase-orders list|get|search|search-line-items|create|update|accept|confirm|convert-to-bill|void|delete|fast-fix \
104
104
  |bulk-void|bulk-accept|bulk-confirm|bulk-delete|bulk-upsert-line-items (-t request|order)
105
- clio bills download <id> # bill PDF
105
+ clio sale-orders download <id> -t quote|order [--variant ORDER_CONFIRMATION|DELIVERY_SLIP] # --variant: order only
106
+ clio purchase-orders download <id> -t request|order
107
+ clio bills download <id> [--variant APPROVAL_RECORD] # bill PDF, or its approval record
108
+ clio invoices download <id> [--variant DELIVERY_SLIP]
109
+ clio payments download <id> # receipt, payment advice or refund document
106
110
  clio supplier-credit-notes download <id> # supplier CN PDF
107
111
  ```
108
112
 
@@ -7,18 +7,18 @@ description: >-
7
7
  precedence, output formats, entity resolution, and common workflow patterns.
8
8
  Also use when the user asks how to use clio, what commands are available, or
9
9
  how to automate accounting tasks from the command line. Covers all
10
- 80 command groups and 523 tools, including employee-expense claims.
10
+ 80 command groups and 526 tools, including employee-expense claims.
11
11
  license: MIT
12
12
  compatibility: Requires Node.js >= 18.0.0. Install via npm install -g jaz-clio.
13
13
  metadata:
14
- version: "9.11.0"
14
+ version: "9.12.0"
15
15
  ---
16
16
 
17
17
  # Clio CLI Skill
18
18
 
19
19
  > **Audience note:** for power users and CI/automation. Load this skill only when you're scripting from a terminal, building shell pipelines, or debugging from `clio --json` output. For day-to-day accounting inside Claude Desktop / Cowork, the MCP tools cover the common flows without dropping to the CLI.
20
20
 
21
- You are working with **Clio** (`jaz-clio`), the CLI for the Jaz accounting platform. 80 command groups, 13 calculators, 12 job playbooks (jaz-jobs skill), 523 tools. Also fully compatible with Juan Accounting (same API, same endpoints).
21
+ You are working with **Clio** (`jaz-clio`), the CLI for the Jaz accounting platform. 80 command groups, 13 calculators, 12 job playbooks (jaz-jobs skill), 526 tools. Also fully compatible with Juan Accounting (same API, same endpoints).
22
22
 
23
23
  ## When to Use This Skill
24
24
 
@@ -17,7 +17,7 @@ Complete reference for all 80 command groups. Organized by domain.
17
17
  | `delete <id>` | |
18
18
  | `pay <id>` | `--amount`, `--transaction-amount`, `--account`, `--method`, `--ref`, `--date` |
19
19
  | `apply-credits <id>` | `--credit-note`, `--amount` |
20
- | `download <id>` | `--json`: returns the PDF URL; writes no file |
20
+ | `download <id>` | `--variant DELIVERY_SLIP` for the delivery slip, `--json`: returns the PDF URL; writes no file |
21
21
  | `draft list` | `--max-rows N`, `--ids`, `--json`: ⚠️ fans out 1 attachment lookup per draft (5 in flight); pass `--max-rows 10` for spot checks |
22
22
  | `draft finalize <id>` | `--account`, `--input` |
23
23
  | `bulk-upsert` | `--input <file>`, `--json`: **FLAT** shape, DEPRECATED (one line per row via `itemDescription`+`totalAmount`+`invoiceAccountResourceId`). Async → jobId. `currencyCode` REQUIRED |
@@ -103,10 +103,13 @@ Same subcommands and flags as `cash-in`.
103
103
  | `create` | `--from-account`, `--to-account`, `--amount`, `--date`, `--ref` (generated when omitted), `--input` |
104
104
  | `delete <id>` | |
105
105
 
106
- ### `clio payments`: Payment records (search the ledger with `clio cashflow search`)
106
+ ### `clio payments`: Payment records
107
+ Every `<id>` is a payment record ID (from an invoice or bill paymentRecords, or a credit note refund). A ledger ID from `clio cashflow search` is a different entity and 404s here.
108
+
107
109
  | Subcommand | Key flags |
108
110
  |------------|-----------|
109
111
  | `get <id>` | `--json` |
112
+ | `download <id>` | `--json`: returns the PDF URL (receipt for an invoice payment, payment advice for a bill payment, refund document for a credit note refund); writes no file |
110
113
  | `update <id>` | `--date`, `--reference`, `--input` |
111
114
  | `delete <id>` | |
112
115
 
@@ -878,7 +881,7 @@ Valid entity types: INVOICE, BILL, CUSTOMER_CREDIT_NOTE, SUPPLIER_CREDIT_NOTE, S
878
881
  Universal async tracker: any operation returning a jobId (contacts bulk-upsert, items bulk-upsert, bank import, magic processing) can be polled here.
879
882
 
880
883
  ### `clio mcp`: MCP stdio server
881
- Starts an MCP server for Claude Code / AI tool integration. Exposes all 523 operations.
884
+ Starts an MCP server for Claude Code / AI tool integration. Exposes all 526 operations.
882
885
 
883
886
  ### `clio init`: Skill installer
884
887
  Installs AI agent skills into your project.
@@ -9,7 +9,7 @@ description: >-
9
9
  import, or switching accounting software, whenever a customer's prior system
10
10
  is Xero, QuickBooks, Sage, MYOB, or an Excel-based ledger.
11
11
  metadata:
12
- version: "9.11.0"
12
+ version: "9.12.0"
13
13
  ---
14
14
 
15
15
  # Jaz Conversion Skill
@@ -16,7 +16,7 @@ description: >-
16
16
  license: MIT
17
17
  compatibility: Uses Jaz OAuth by default; organization API keys remain supported. Works with Claude Code, Google Antigravity, OpenAI Codex, GitHub Copilot, Cursor, and any agent that reads markdown. Load the jaz-api skill alongside this one.
18
18
  metadata:
19
- version: "9.11.0"
19
+ version: "9.12.0"
20
20
  ---
21
21
 
22
22
  # Jaz API Reference Skill
@@ -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 619 spec paths and 777 spec operations and is the authoritative list; check it before concluding
6
+ > carries 624 spec paths and 782 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
  >
@@ -46,7 +46,7 @@
46
46
  | POST | `/invoices/search` | Advanced search with filters |
47
47
  | PUT | `/invoices/:resourceId` | Update invoice |
48
48
  | DELETE | `/invoices/:resourceId` | Delete invoice |
49
- | GET | `/invoices/:resourceId/download` | Download PDF |
49
+ | GET | `/invoices/:resourceId/download` | Download PDF; `?documentType=DELIVERY_SLIP` for the delivery slip |
50
50
  | POST | `/invoices/:resourceId/payments` | Record payment(s) |
51
51
  | GET | `/invoices/:resourceId/payments` | List recorded payments (`{data: [...]}`) |
52
52
  | POST | `/invoices/:resourceId/credits` | Apply credit note(s) |
@@ -72,6 +72,7 @@
72
72
  | POST | `/bills/:resourceId/credits` | Apply supplier credit note(s) |
73
73
  | GET | `/bills/:resourceId/credits` | List applied credits |
74
74
  | DELETE | `/bills/:resourceId/credits/:creditsAppliedResourceId` | Reverse credit |
75
+ | GET | `/bills/:resourceId/download` | Download PDF; `?documentType=APPROVAL_RECORD` for the approval record |
75
76
  | GET | `/bills/:resourceId/attachments` | List attachments |
76
77
  | POST | `/bills/:resourceId/attachments` | Upload attachment |
77
78
  | DELETE | `/bills/:resourceId/attachments/:attachmentResourceId` | Delete attachment |
@@ -92,6 +93,7 @@ Four entities sharing one shape. Replace `{entity}` with `sale-quotes`, `sale-or
92
93
  | POST | `/{entity}/:resourceId/void` | Void (cancel) |
93
94
  | POST | `/sale-quotes\|purchase-requests/:resourceId/accept` | Accept (→ ACCEPTED) |
94
95
  | POST | `/sale-orders\|purchase-orders/:resourceId/confirm` | Confirm (→ CONFIRMED) |
96
+ | GET | `/{entity}/:resourceId/download` | Download PDF. Only `/sale-orders` takes `?documentType=ORDER_CONFIRMATION\|DELIVERY_SLIP`; the others refuse `documentType` with 422 |
95
97
  | POST | `/{entity}/:resourceId/fast-fix` | Quick-fix details (`{ attributes }`) |
96
98
  | POST | `/{entity}/bulk-void` | Bulk void (`{ resourceIds }`) |
97
99
  | POST | `/sale-quotes\|purchase-requests/bulk-accept` | Bulk accept (`{ resourceIds }`) |
@@ -168,6 +170,7 @@ Four entities sharing one shape. Replace `{entity}` with `sale-quotes`, `sale-or
168
170
  | GET | `/payments/:resourceId` | Get payment record; returns `{data: PaymentRecord}` |
169
171
  | PUT | `/payments/:resourceId` | Update payment; returns `{data: PaymentRecord}` |
170
172
  | DELETE | `/payments/:resourceId` | Delete/void payment |
173
+ | GET | `/payments/:resourceId/download` | Download PDF: receipt (invoice payment), payment advice (bill payment) or refund document (credit note refund) |
171
174
 
172
175
  **Note**: Payment resourceIds come from parent documents (`GET /invoices/:id` → `paymentRecords[].resourceId`). Cashflow transaction IDs from `POST /cashflow-transactions/search` are NOT the same.
173
176
 
@@ -10,7 +10,7 @@ description: >-
10
10
  license: MIT
11
11
  compatibility: Works with Claude Code, Codex CLI, Cursor, Copilot, Claude Cowork, Claude.ai, and any agent that reads markdown. Multi-organization workflows need the `clio` CLI (`npm i -g jaz-clio`); a single organization works through MCP tools alone. Load alongside jaz-jobs for close playbooks, jaz-recipes for IFRS patterns, jaz-api for payload shapes, jaz-conversion for migrations.
12
12
  metadata:
13
- version: "9.11.0"
13
+ version: "9.12.0"
14
14
  ---
15
15
 
16
16
  # Jaz Kit
@@ -13,7 +13,7 @@ description: >-
13
13
  license: MIT
14
14
  compatibility: Works with Claude Code, Claude Cowork, Claude.ai, and any agent that reads markdown. For canonical report types and the standard analytics surface, load the jaz-api skill alongside this one.
15
15
  metadata:
16
- version: "9.11.0"
16
+ version: "9.12.0"
17
17
  ---
18
18
 
19
19
  # Jaz Pseudo-SQL Skill
@@ -10,7 +10,7 @@ description: >-
10
10
  license: MIT
11
11
  compatibility: Works with Claude Code, Claude Cowork, Claude.ai, and any agent that reads markdown. For API payloads, load the jaz-api skill. For individual transaction patterns, load the jaz-recipes skill.
12
12
  metadata:
13
- version: "9.11.0"
13
+ version: "9.12.0"
14
14
  ---
15
15
 
16
16
  # Jobs Skill
@@ -13,7 +13,7 @@ description: >-
13
13
  license: MIT
14
14
  compatibility: Works with Claude Code, Claude Cowork, Claude.ai, and any agent that reads markdown. For API payloads, load the jaz-api skill alongside this one. For the operational close workflows these recipes plug into (month-end close, GST/VAT filing, year-end close), load the jaz-jobs skill.
15
15
  metadata:
16
- version: "9.11.0"
16
+ version: "9.12.0"
17
17
  ---
18
18
 
19
19
  # Transaction Recipes Skill
@@ -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 **523 tools across 61 namespaces**. Your tool list shows **3, 61, or 523** entries depending on packaging; **never infer capability from its length.**
7
+ Jaz exposes **526 tools across 61 namespaces**. Your tool list shows **3, 61, or 526** 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
10
  - **61**: namespace routers; call one with `{ operation, arguments }`.
11
- - **523**: call operations directly by name.
11
+ - **526**: call operations directly by name.
12
12
 
13
13
  **Before telling the user Jaz cannot do something, call `describe_capabilities`** (the capability map, on all three).
14
14