jaz-clio 5.20.36 → 5.20.37

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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-api
3
- version: 5.20.36
3
+ version: 5.20.37
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, 158 production gotchas, error
@@ -5,6 +5,20 @@ The employee-expense **Claims** feature. This reference covers the **claim recor
5
5
  profiles / posting rules). Claim → journal conversion + employee payouts are a
6
6
  separate surface.
7
7
 
8
+ ## Bill vs claim routing + self-claims (agent)
9
+
10
+ A receipt is a BILL (a vendor's invoice) or a CLAIM (an employee's reimbursed expense)
11
+ — different tools. Decide by intent, else by capability: call `get_my_context` and read
12
+ `moduleRoles` — PURCHASES ≠ NO_ACCESS → bill (`create_bt_from_attachment`); else
13
+ EMPLOYEE_CLAIMS ≠ NO_ACCESS → claim (`create_claim_from_attachment`). The always-on
14
+ `claims-routing` policy carries the full rule.
15
+
16
+ `create_claim_from_attachment` makes an UNBOUND draft (async, no claim id). Bind the
17
+ employee once it materialises (`search_claims` status DRAFT → `update_claim`
18
+ `employeeResourceId`): no other employee named → the caller's own
19
+ (`get_my_context.employee`; null = not set up for claims, don't invent one); a named
20
+ employee → `search_employees` then bind that id.
21
+
8
22
  ## Claim records (`claims` + `claim_processing` namespaces)
9
23
 
10
24
  CLI: `clio claims …`. **Claims have no bare list or create** — a claim is born DRAFT
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-cli
3
- version: 5.20.36
3
+ version: 5.20.37
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.20.36
3
+ version: 5.20.37
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-pseudo-sql
3
- version: 5.20.36
3
+ version: 5.20.37
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.20.36
3
+ version: 5.20.37
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.20.36
3
+ version: 5.20.37
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jaz-clio",
3
- "version": "5.20.36",
3
+ "version": "5.20.37",
4
4
  "description": "Clio: Command Line Interface Operator for Jaz AI.",
5
5
  "type": "module",
6
6
  "bin": {