jaz-clio 4.47.4 → 4.47.5

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: 4.47.4
3
+ version: 4.47.5
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, 117 production gotchas, error
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-cli
3
- version: 4.47.4
3
+ version: 4.47.5
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: 4.47.4
3
+ version: 4.47.5
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-jobs
3
- version: 4.47.4
3
+ version: 4.47.5
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: 4.47.4
3
+ version: 4.47.5
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/cli.mjs CHANGED
@@ -1047,7 +1047,28 @@ CWD: ${e.cwd}
1047
1047
  );
1048
1048
  CREATE INDEX IF NOT EXISTS idx_messages_session
1049
1049
  ON session_messages(session_id, created_at ASC);
1050
- `,n7=class{db;inMemory=!1;constructor(){try{let t=tt("better-sqlite3");Y1t(J1t(v7e),{recursive:!0}),this.db=new t(v7e),this.db.pragma("journal_mode = WAL"),this.db.pragma("foreign_keys = ON")}catch{this.inMemory=!0,this.db=null}this.migrate()}migrate(){if(this.db){this.db.exec(V1t);try{let t=this.db.prepare("PRAGMA table_info(sessions)").all(),n=t.some(o=>o.name==="billing_mode"),r=t.some(o=>o.name==="provider");!n&&r&&(this.db.prepare("ALTER TABLE sessions ADD COLUMN billing_mode TEXT NOT NULL DEFAULT 'anthropic-byok'").run(),this.db.prepare("UPDATE sessions SET billing_mode = CASE provider WHEN 'openai' THEN 'openai-byok' ELSE 'anthropic-byok' END").run())}catch{}try{this.db.prepare(`CREATE TABLE IF NOT EXISTS session_jobs (
1050
+ `,n7=class{db;inMemory=!1;constructor(){try{let t=tt("better-sqlite3");Y1t(J1t(v7e),{recursive:!0}),this.db=new t(v7e),this.db.pragma("journal_mode = WAL"),this.db.pragma("foreign_keys = ON")}catch{this.inMemory=!0,this.db=null}this.migrate()}migrate(){if(this.db){this.db.exec(V1t);try{let t=this.db.prepare("PRAGMA table_info(sessions)").all(),n=t.some(o=>o.name==="billing_mode"),r=t.some(o=>o.name==="provider");if(!n&&r&&(this.db.prepare("ALTER TABLE sessions ADD COLUMN billing_mode TEXT NOT NULL DEFAULT 'anthropic-byok'").run(),this.db.prepare("UPDATE sessions SET billing_mode = CASE provider WHEN 'openai' THEN 'openai-byok' ELSE 'anthropic-byok' END").run()),r){let o=t.find(a=>a.name==="provider");o&&o.dflt_value===null&&this.db.exec(`
1051
+ CREATE TABLE IF NOT EXISTS sessions_new (
1052
+ id TEXT PRIMARY KEY,
1053
+ org_id TEXT NOT NULL,
1054
+ title TEXT NOT NULL DEFAULT 'New conversation',
1055
+ model TEXT NOT NULL,
1056
+ provider TEXT NOT NULL DEFAULT 'anthropic',
1057
+ billing_mode TEXT NOT NULL DEFAULT 'anthropic-byok',
1058
+ turn_count INTEGER NOT NULL DEFAULT 0,
1059
+ created_at INTEGER NOT NULL,
1060
+ updated_at INTEGER NOT NULL
1061
+ );
1062
+ INSERT INTO sessions_new SELECT
1063
+ id, org_id, title, model,
1064
+ COALESCE(provider, 'anthropic'),
1065
+ COALESCE(billing_mode, 'anthropic-byok'),
1066
+ turn_count, created_at, updated_at
1067
+ FROM sessions;
1068
+ DROP TABLE sessions;
1069
+ ALTER TABLE sessions_new RENAME TO sessions;
1070
+ CREATE INDEX IF NOT EXISTS idx_sessions_org_updated ON sessions(org_id, updated_at DESC);
1071
+ `)}}catch{}try{this.db.prepare(`CREATE TABLE IF NOT EXISTS session_jobs (
1051
1072
  id TEXT PRIMARY KEY,
1052
1073
  session_id TEXT NOT NULL REFERENCES sessions(id) ON DELETE CASCADE,
1053
1074
  name TEXT NOT NULL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jaz-clio",
3
- "version": "4.47.4",
3
+ "version": "4.47.5",
4
4
  "description": "Clio — Command Line Interface Orchestrator for Jaz AI.",
5
5
  "type": "module",
6
6
  "bin": {