@datasynx/agentic-crm 1.1.0 → 1.2.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/dist/cli.js CHANGED
@@ -5,7 +5,7 @@ import { i as writeJsonFile } from "./json-store-WWsFzXub.js";
5
5
  import { a as warning, i as success, n as error, r as info, t as bold } from "./colors-BG07TZQz.js";
6
6
  import { n as getSession } from "./session-store-CEa39Dxs.js";
7
7
  import { i as sessionCommand, r as readAllSessions } from "./session-BgGDyP2C.js";
8
- import { a as searchKbSimple, i as listKbArticles, n as getKbArticle, o as writeKbArticle, s as CAPABILITIES_TEXT, t as deleteKbArticle } from "./knowledge-base--063Kpa3.js";
8
+ import { a as searchKbSimple, i as listKbArticles, n as getKbArticle, o as writeKbArticle, s as CAPABILITIES_TEXT, t as deleteKbArticle } from "./knowledge-base-Bx2PKQR2.js";
9
9
  import { a as restoreCommand, t as backupCommand } from "./backup-CTlIxUdO.js";
10
10
  import { n as readSyncState } from "./sync-state-DMZgzpez.js";
11
11
  import { n as readUnmatched } from "./unmatched-transcripts-DC-VQ9YS.js";
@@ -240,14 +240,14 @@ mcpCommand.command("start").description("Start MCP server (stdio by default)").o
240
240
  if (opts.http) {
241
241
  const port = parseInt(opts.port, 10);
242
242
  console.error(info(`Starting MCP server in HTTP mode on port ${port}...`));
243
- const { startHttp } = await import("./server-DoRPPOeR.js");
243
+ const { startHttp } = await import("./server-BhNLrnAD.js");
244
244
  await startHttp(port);
245
245
  } else {
246
- const { startStdio } = await import("./server-DoRPPOeR.js");
246
+ const { startStdio } = await import("./server-BhNLrnAD.js");
247
247
  await startStdio();
248
248
  }
249
249
  });
250
- const TOOL_COUNT = 57;
250
+ const TOOL_COUNT = 58;
251
251
  /** Claude Code: CLAUDE.md in CRM dataDir */
252
252
  function buildClaudeMd(dataDir) {
253
253
  return `# DatasynxOpenCRM v2 — Agent Instructions (${TOOL_COUNT} MCP Tools)
@@ -374,6 +374,7 @@ It combines graph, health, revenue simulation, playbook, and org intelligence in
374
374
  - \`trigger_sync({ slug?, since? })\` — force immediate Gmail sync for one or all customers (bypasses 30-min daemon cycle)
375
375
  - \`get_audit_log({ slug?, actor?, limit? })\` — read append-only audit log of all write operations
376
376
  - \`get_logs({ level?, component?, since?, contains?, limit?, summary? })\` — query/aggregate the structured application log
377
+ - \`get_diagnostics({ fix? })\` — self-diagnostic health check (data integrity, temp files, log errors, backups)
377
378
 
378
379
  ### Custom Objects (Platform / metadata)
379
380
  - \`define_custom_object({ name, label?, fields })\` — define a runtime entity type with typed fields (no migration), admin
@@ -635,7 +636,7 @@ create_ticket · update_ticket · list_tickets · close_ticket ·
635
636
  send_nps_survey · get_survey_results ·
636
637
  search_knowledge_base · create_kb_article ·
637
638
  backup_now · list_backups ·
638
- trigger_sync · get_audit_log · get_logs ·
639
+ trigger_sync · get_audit_log · get_logs · get_diagnostics ·
639
640
  define_custom_object · create_record · list_records · list_custom_objects
640
641
 
641
642
  ## Data: ${dataDir}`.trim();
@@ -2945,7 +2946,7 @@ function icon(status) {
2945
2946
  return error("✗");
2946
2947
  }
2947
2948
  const doctorCommand = new Command("doctor").description("Run self-diagnostics: data integrity, temp files, log errors, backup freshness").option("--fix", "Clean up safely-fixable issues (orphaned temp files)").action(async (opts) => {
2948
- const { runDiagnostics, cleanupTempFiles } = await import("./doctor-C14-vnJ1.js");
2949
+ const { runDiagnostics, cleanupTempFiles } = await import("./doctor-CYDaNmFn.js");
2949
2950
  if (opts.fix) {
2950
2951
  const removed = cleanupTempFiles(dataDir$17());
2951
2952
  console.log(removed.length > 0 ? success(`Removed ${removed.length} orphaned temp file(s).`) : warning("Nothing to fix."));