@kumion/cli 0.6.9 → 0.6.10

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/README.md CHANGED
@@ -205,7 +205,7 @@ does not ask for `calls:read_unmasked`; issue a key with it on the Portal's 設
205
205
  items it recorded, never their values). `calls get` also returns `direction` (the raw value stored with
206
206
  the call: `inbound`, `outbound`, `on_net`) and `portalDirection`, which is the 着信/発信 the Portal's call history
207
207
  shows: `inbound`, `outbound`, or `null` when the call is neither (a trigger run, say). An `on_net` web call is
208
- `inbound` there. Count 着信/発信 from `portalDirection`. A transcript's `turns` hold only what the caller and the agent said. A call handed to a person adds `handoffSegment` (`status` `transcribed` / `failed` / `not_sent`, `reason`, `fromSec` / `toSec`, and `turns` of `speaker`, `text`, `offsetSec`, in seconds into the call recording); `not_sent` means the tenant's contract forbids sending the recording out, so it has no text.
208
+ `inbound` there. Count 着信/発信 from `portalDirection`. A transcript's `turns` hold only what the caller and the agent said. A call handed to a person adds `handoffSegment` (`status` `transcribed` / `failed` / `not_sent`, `reason`, `fromSec` / `toSec`, and `turns` of `speaker`, `text`, `offsetSec`, in seconds into the call recording; when each person was transcribed apart a turn also has `role`: `ai` for the platform, `caller` for the other side of the call, `callee` for the person transferred to); `not_sent` means the tenant's contract forbids sending the recording out, so it has no text.
209
209
  Add `--json` to any command for the API's JSON instead of a summary.
210
210
 
211
211
  `hours` is the shop clock the call answers 「何時までですか」 from, and it is one calendar for the
package/dist/main.js CHANGED
@@ -6,7 +6,7 @@ import { ApiError, KumionClient, isTextFile, specText, } from "./client.js";
6
6
  import { DEFAULT_BASE_URL, keyPrefix, looksLikeApiKey, normalizeBaseUrl, resolveCredentials, } from "./credentials.js";
7
7
  import { DEFAULT_DEVICE_SCOPES, deviceLogin } from "./device-login.js";
8
8
  import { describeError, ReportedFailure, UsageError } from "./errors.js";
9
- export const VERSION = "0.6.9";
9
+ export const VERSION = "0.6.10";
10
10
  const HELP = `kumion — manage your Kumion voice agents over the Partner API
11
11
 
12
12
  Usage: kumion <command> [options]
@@ -2543,7 +2543,10 @@ export function formatTranscript(transcript) {
2543
2543
  else if (segment.status === "failed")
2544
2544
  lines.push(`Transcription failed${segment.reason ? ` (${segment.reason})` : ""}.`);
2545
2545
  for (const t of segment.turns) {
2546
- lines.push(`${t.offsetSec !== null ? `[+${t.offsetSec}s] ` : ""}${t.speaker !== null ? `Person (speaker ${t.speaker})` : "Person"}: ${t.text}`);
2546
+ const who = t.role
2547
+ ? { ai: "Agent", caller: "Caller", callee: "Transferee" }[t.role]
2548
+ : t.speaker !== null ? `Person (speaker ${t.speaker})` : "Person";
2549
+ lines.push(`${t.offsetSec !== null ? `[+${t.offsetSec}s] ` : ""}${who}: ${t.text}`);
2547
2550
  }
2548
2551
  }
2549
2552
  return lines.join("\n");
package/dist/mcp.js CHANGED
@@ -523,9 +523,10 @@ export function createKumionMcpServer(client, options) {
523
523
  description: "Read what the caller (`user`) and the agent (`assistant`) said on one call, in order. Tool calls and " +
524
524
  "the agent's instructions are not included. `available: false` means no transcript has been written " +
525
525
  "yet (the call is still up, or never connected) — not that the call was silent. A call handed to a " +
526
- "person also carries `handoffSegment`: what the person said after the pickup (`status` transcribed / " +
526
+ "person also carries `handoffSegment`: the conversation after the pickup (`status` transcribed / " +
527
527
  "failed / not_sent; not_sent means the tenant's contract forbids sending the recording out, so there is " +
528
- "no text). Needs calls:read.",
528
+ "no text). When each person was transcribed apart its turns have `role`: `ai` (the platform), `caller` " +
529
+ "(the other side of the call), `callee` (the person transferred to). Needs calls:read.",
529
530
  inputSchema: { callId },
530
531
  annotations: { readOnlyHint: true },
531
532
  }, (args) => attempt(async () => ({ transcript: await client.getTranscript(args.callId) })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumion/cli",
3
- "version": "0.6.9",
3
+ "version": "0.6.10",
4
4
  "description": "Manage your Kumion voice agents from the terminal over the Kumion Partner API",
5
5
  "author": "KAOPA株式会社",
6
6
  "license": "MIT",
@@ -174,8 +174,9 @@ channel, time range, or caller number). Each call already carries its result (`o
174
174
  transcript only for the call you need. `get_call_transcript` /
175
175
  `kumion calls transcript <callId>` returns what the caller (`user`) and the agent
176
176
  (`assistant`) said. `available: false` means no transcript has been written yet, not a
177
- silent call. A call handed to a person also has `handoffSegment`: what the person said after
178
- the pickup (`status` is `transcribed`, `failed` or `not_sent`; `not_sent` means the tenant's
177
+ silent call. A call handed to a person also has `handoffSegment`: the conversation after
178
+ the pickup; when each person was transcribed apart its turns have `role` (`ai`, `caller`,
179
+ `callee` = the person transferred to) (`status` is `transcribed`, `failed` or `not_sent`; `not_sent` means the tenant's
179
180
  contract forbids sending the recording out, so there is no text). `turns` stays the AI part. `get_call` carries `direction` (the raw stored value) and `portalDirection` (`inbound` /
180
181
  `outbound` / null: the 着信/発信 the Portal call history shows); count from `portalDirection`.
181
182
  Use a transcript to find where the agent went wrong before editing its