callkaro-cli-unofficial 0.9.1 → 0.9.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.
@@ -60,8 +60,12 @@ async function analyticsPerformanceCommand(opts) {
60
60
  async function analyticsVersionCommand(agentId, opts) {
61
61
  const api = (0, session_1.requireApi)();
62
62
  try {
63
+ if (opts.cohort && opts.cohort !== 'leads')
64
+ throw new Error(`--cohort must be "leads" (got "${opts.cohort}"). Omit it for the call view.`);
63
65
  const res = await api.versionAnalytics(agentId, {
64
66
  version_ids: opts.versions,
67
+ initial_version_ids: opts.initialVersions,
68
+ cohort: opts.cohort,
65
69
  startDate: opts.start,
66
70
  endDate: opts.end,
67
71
  });
@@ -71,7 +75,7 @@ async function analyticsVersionCommand(agentId, opts) {
71
75
  if (!rows.length)
72
76
  return void (0, ui_1.info)('No version analytics.');
73
77
  (0, ui_1.table)(['VERSION', 'CALLS', 'CONNECTED', 'CONVERTED', 'RECEIPT→CONV %', 'CONN→CONV %'], rows.map((r) => [
74
- r._id, r.total_calls ?? '', r.connected_calls ?? '', r.converted_calls ?? '',
78
+ r.versionName ?? r._id, r.total_calls ?? '', r.connected_calls ?? '', r.converted_calls ?? '',
75
79
  r.overall_receipt_to_conversion_pct ?? '', r.overall_connected_to_conversion_pct ?? '',
76
80
  ]));
77
81
  }
@@ -1206,7 +1206,6 @@
1206
1206
  "transcriber_provider",
1207
1207
  "transcriber_language",
1208
1208
  "transcriber_general_context",
1209
- "transcriber_text_context",
1210
1209
  "transcriber_translation_terms",
1211
1210
  "keywords"
1212
1211
  ],
@@ -1720,7 +1719,6 @@
1720
1719
  "transcriber_provider",
1721
1720
  "transcriber_language",
1722
1721
  "transcriber_general_context",
1723
- "transcriber_text_context",
1724
1722
  "transcriber_translation_terms",
1725
1723
  "keywords"
1726
1724
  ],
package/dist/index.js CHANGED
@@ -1295,7 +1295,9 @@ analytics.command('performance').description('per-agent performance')
1295
1295
  .option('--json', 'raw JSON')
1296
1296
  .action(analytics_1.analyticsPerformanceCommand);
1297
1297
  analytics.command('version <agentId>').description('per-version analytics for an agent')
1298
- .option('--versions <ids>', 'comma-separated version ids')
1298
+ .option('--versions <ids>', 'comma-separated final version ids')
1299
+ .option('--initial-versions <ids>', 'comma-separated initial version ids (calls that started on these versions)')
1300
+ .option('--cohort <view>', 'leads = Lead View (count each lead once) instead of per-call')
1299
1301
  .option('--start <date>', 'start date')
1300
1302
  .option('--end <date>', 'end date')
1301
1303
  .option('--json', 'raw JSON')
package/package.json CHANGED
@@ -1,52 +1,52 @@
1
- {
2
- "name": "callkaro-cli-unofficial",
3
- "version": "0.9.1",
4
- "license": "Apache-2.0",
5
- "description": "Unofficial fork of the CallKaro CLI — manage your voice AI agents from the terminal",
6
- "bin": {
7
- "cku": "dist/index.js"
8
- },
9
- "files": [
10
- "dist"
11
- ],
12
- "scripts": {
13
- "build": "npm run clean && tsc -p tsconfig.json && node -e \"require('fs').copyFileSync('src/endpoints.json','dist/endpoints.json')\" && node -e \"try{require('fs').chmodSync('dist/index.js',0o755)}catch(e){}\"",
14
- "dev": "npm run build && node dist/index.js",
15
- "test": "npm run build && node --test tests/*.test.js",
16
- "test:only": "node --test tests/*.test.js",
17
- "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
18
- "catalog:sync": "node scripts/sync-catalog.js",
19
- "catalog:check": "node scripts/check-catalog-drift.js",
20
- "catalog:check:live": "node scripts/check-catalog-drift.js --live"
21
- },
22
- "dependencies": {
23
- "chalk": "^4.1.2",
24
- "cli-table3": "^0.6.5",
25
- "commander": "^12.0.0",
26
- "just-bash": "^3.4.2",
27
- "prompts": "^2.4.2"
28
- },
29
- "devDependencies": {
30
- "@types/node": "^20.0.0",
31
- "@types/prompts": "^2.4.9",
32
- "typescript": "^5.4.0"
33
- },
34
- "engines": {
35
- "node": ">=18"
36
- },
37
- "repository": {
38
- "type": "git",
39
- "url": "git+https://github.com/TejasLamba2006/callkaro-cli-unofficial.git"
40
- },
41
- "homepage": "https://github.com/TejasLamba2006/callkaro-cli-unofficial#readme",
42
- "bugs": {
43
- "url": "https://github.com/TejasLamba2006/callkaro-cli-unofficial/issues"
44
- },
45
- "keywords": [
46
- "callkaro",
47
- "voice-ai",
48
- "cli",
49
- "agents",
50
- "telephony"
51
- ]
52
- }
1
+ {
2
+ "name": "callkaro-cli-unofficial",
3
+ "version": "0.9.3",
4
+ "license": "Apache-2.0",
5
+ "description": "Unofficial fork of the CallKaro CLI — manage your voice AI agents from the terminal",
6
+ "bin": {
7
+ "cku": "dist/index.js"
8
+ },
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "build": "npm run clean && tsc -p tsconfig.json && node -e \"require('fs').copyFileSync('src/endpoints.json','dist/endpoints.json')\" && node -e \"try{require('fs').chmodSync('dist/index.js',0o755)}catch(e){}\"",
14
+ "dev": "npm run build && node dist/index.js",
15
+ "test": "npm run build && node --test tests/*.test.js",
16
+ "test:only": "node --test tests/*.test.js",
17
+ "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"",
18
+ "catalog:sync": "node scripts/sync-catalog.js",
19
+ "catalog:check": "node scripts/check-catalog-drift.js",
20
+ "catalog:check:live": "node scripts/check-catalog-drift.js --live"
21
+ },
22
+ "dependencies": {
23
+ "chalk": "^4.1.2",
24
+ "cli-table3": "^0.6.5",
25
+ "commander": "^12.0.0",
26
+ "just-bash": "^3.4.2",
27
+ "prompts": "^2.4.2"
28
+ },
29
+ "devDependencies": {
30
+ "@types/node": "^20.0.0",
31
+ "@types/prompts": "^2.4.9",
32
+ "typescript": "^5.4.0"
33
+ },
34
+ "engines": {
35
+ "node": ">=18"
36
+ },
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "git+https://github.com/TejasLamba2006/callkaro-cli-unofficial.git"
40
+ },
41
+ "homepage": "https://github.com/TejasLamba2006/callkaro-cli-unofficial#readme",
42
+ "bugs": {
43
+ "url": "https://github.com/TejasLamba2006/callkaro-cli-unofficial/issues"
44
+ },
45
+ "keywords": [
46
+ "callkaro",
47
+ "voice-ai",
48
+ "cli",
49
+ "agents",
50
+ "telephony"
51
+ ]
52
+ }