@lead-routing/cli 0.8.2 → 0.8.3

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/dist/index.js CHANGED
@@ -1555,8 +1555,8 @@ Files created: docker-compose.yml, Caddyfile, .env.web, .env.engine, lead-routin
1555
1555
  await startServices(ssh, remoteDir);
1556
1556
  if (enableAgentApi) {
1557
1557
  log7.step("Creating Langfuse database...");
1558
- await ssh.execCommand(`docker exec $(docker ps -qf "name=postgres") psql -U leadrouting -d postgres -c "CREATE DATABASE langfuse OWNER leadrouting;" 2>/dev/null || true`);
1559
- await ssh.execCommand(`cd ${remoteDir} && docker compose restart langfuse`);
1558
+ await ssh.exec(`docker exec $(docker ps -qf "name=postgres") psql -U leadrouting -d postgres -c "CREATE DATABASE langfuse OWNER leadrouting;" 2>/dev/null || true`);
1559
+ await ssh.exec(`cd ${remoteDir} && docker compose restart langfuse`);
1560
1560
  log7.success("Langfuse database created");
1561
1561
  }
1562
1562
  log7.step("Step 9/9 Verifying health");
@@ -183,6 +183,7 @@ model Organization {
183
183
  apiTokens ApiToken[]
184
184
  slaPolicies SlaPolicy[]
185
185
  slaInstances SlaInstance[]
186
+ toolCallLogs ToolCallLog[]
186
187
 
187
188
  @@map("organizations")
188
189
  }
@@ -882,3 +883,26 @@ model SlaInstance {
882
883
  @@index([orgId, slaPolicyId, status]) // Compliance reporting
883
884
  @@map("sla_instances")
884
885
  }
886
+
887
+ model ToolCallLog {
888
+ id String @id @default(cuid())
889
+ orgId String
890
+ tokenId String
891
+ tool String
892
+ category String
893
+ status String
894
+ errorCode String?
895
+ durationMs Int
896
+ inputHash String
897
+ responseSize Int
898
+ crmType String
899
+ warnings String[]
900
+ createdAt DateTime @default(now())
901
+
902
+ org Organization @relation(fields: [orgId], references: [id])
903
+
904
+ @@index([orgId, createdAt])
905
+ @@index([orgId, tool])
906
+ @@index([tokenId, createdAt])
907
+ @@map("tool_call_logs")
908
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lead-routing/cli",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Self-hosted deployment CLI for Lead Routing",
5
5
  "homepage": "https://github.com/lead-routing/lead-routing",
6
6
  "keywords": [