@kumion/cli 0.6.5 → 0.6.6

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
@@ -182,7 +182,10 @@ running dial. `scheduled-calls list` shows the API-scheduled dials, newest first
182
182
  `state` (`scheduled`, `dialing`, `done`, ...) and a `reason`. `scheduled-calls cancel` works only before the
183
183
  dial starts; after that it answers 404.
184
184
  `calls:read` is its own scope: a key that can start calls (`calls:create`) cannot read
185
- them. `calls list` returns one page (20 by default, at most 100) and prints the
185
+ them. When the workspace has personal-information masking on, `calls list`, `calls get`,
186
+ `calls transcript` and the captured items show masked values; only a key that also holds
187
+ `calls:read_unmasked` sees the stored values (each such read is audited). `kumion auth login`
188
+ does not ask for `calls:read_unmasked`; issue a key with it on the Portal's 設定 → 開発者 page. `calls list` returns one page (20 by default, at most 100) and prints the
186
189
  `--offset` of the next one. Every call in `calls list` and `calls get` carries what it came to: `outcome`
187
190
  (`ai_resolved`, `ai_unresolved_hangup`, `invalid_call`, `handoff`, `system_ended`, or `na` when not judged),
188
191
  `endedAtNode` (the node it ended on), `durationSec`, `transferred`, and `capturedItems` (the names of the
@@ -383,7 +386,7 @@ A key a node does not store follows the agent's setting (会話の運用) or the
383
386
  | `wait_cover` | start, agent | `tune` | `{ enabled?, on_threshold?, threshold_ms?, on_query_start?, query_grace_ms? }` | Node-level hold phrase. By default it plays only when a lookup tool is still running after `query_grace_ms` (100 to 10000, default 1000); `on_query_start: false` turns that off. `on_threshold: true` also plays it after `threshold_ms` (2000 to 15000, default 2000) of silence on an ordinary turn (default off). `enabled: false` turns it off for this node. The phrase text is set per agent. |
384
387
  | `trigger_path` | trigger | `internal` | `string` | Generated. Shown read-only as the trigger URL. |
385
388
  | `opening_speech` | start | `required` | `string` | The opening line. Supports {{variables}}. |
386
- | `items` | start, agent | `required` | `{key,label?,example?,source?,value_type?,options?,must_ask?,min_digits?,max_digits?,tool?}[]` | What this step collects, one object per item, in the order it asks. `key`: slot key. `label`: display name. `example`: test-call example. `source`: where the value comes from (caller, derived, system, tool). `value_type`: kind (text, select, boolean, ...). `options`: choices of a select item. `must_ask`: ask the caller to confirm on the spot even if already known (advanced). `min_digits` / `max_digits`: for a `code` item, the fewest / most digits the value may hold, counted by the platform (the same number twice = exact length). `tool`: `{tool_key,result_field}` for a tool-sourced item. |
389
+ | `items` | start, agent | `required` | `{key,label?,example?,source?,value_type?,options?,must_ask?,min_digits?,max_digits?,require_day?,tool?}[]` | What this step collects, one object per item, in the order it asks. `key`: slot key. `label`: display name. `example`: test-call example. `source`: where the value comes from (caller, derived, system, tool). `value_type`: kind (text, select, boolean, ...). `options`: choices of a select item. `must_ask`: ask the caller to confirm on the spot even if already known (advanced). `min_digits` / `max_digits`: for a `code` item, the fewest / most digits the value may hold, counted by the platform (the same number twice = exact length). `require_day`: for a `birthdate` item, tell the model the value needs a year, a month and a day (off = year and month). `tool`: `{tool_key,result_field}` for a tool-sourced item. |
387
390
  | `allow_interruptions` | start, agent | `tune` | `boolean` | Absent means the caller may interrupt. Only an explicit false is stored. |
388
391
  | `route_judge` | start | `tune` | `boolean` | Absent means off. Only an explicit true is stored. On: while the call stays on this start step, each caller turn is first read by the call model's own probability readout (at most 400 ms, before the AI answers); when it is sure which of the step's three connections fits, the call moves on without a model turn. Offered only for a call model whose endpoint has a calibrated readout; the step needs exactly three AI connections without items and no fixed connections (graph diagnostics `route_judge_not_applicable`). |
389
392
  | `ai_disclosure_stated` | start | `tune` | `boolean` | Absent means not declared. Only an explicit true is stored. The author's own statement that the opening tells the caller they are speaking with an AI; the platform does not read the opening for it. Not declared: graph diagnostics `opening_no_ai_disclosure` (a warning, never blocks). |
package/dist/data-ops.js CHANGED
@@ -24,6 +24,7 @@ export const DATA_OPS = [
24
24
  { name: "email", kind: "string", help: "email address" },
25
25
  { name: "note", kind: "string", help: "a note" },
26
26
  { name: "topics", kind: "list", help: "topics (repeat the flag)" },
27
+ { name: "accounts", kind: "list", help: "accounts the staff is the contact for (repeat the flag)" },
27
28
  { name: "custom", kind: "map", help: "custom fields as <fieldId>=<value> (ids from contact-fields list)" },
28
29
  ],
29
30
  description: "Register an お客様. Saved at once; 409 when a customer already has that phone number. Needs contacts:write.",
@@ -39,6 +40,7 @@ export const DATA_OPS = [
39
40
  { name: "note", kind: "string", help: "a note (an empty string clears it)" },
40
41
  { name: "enabled", kind: "boolean", help: "true or false" },
41
42
  { name: "topics", kind: "list", help: "topics (repeat the flag; replaces the list)" },
43
+ { name: "accounts", kind: "list", help: "accounts (repeat the flag; replaces the list)" },
42
44
  { name: "custom", kind: "map", help: "custom fields as <fieldId>=<value>" },
43
45
  ],
44
46
  description: "Change an お客様; only the fields you pass change. Needs contacts:write.",
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.5";
9
+ export const VERSION = "0.6.6";
10
10
  const HELP = `kumion — manage your Kumion voice agents over the Partner API
11
11
 
12
12
  Usage: kumion <command> [options]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumion/cli",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "description": "Manage your Kumion voice agents from the terminal over the Kumion Partner API",
5
5
  "author": "KAOPA株式会社",
6
6
  "license": "MIT",
@@ -270,7 +270,7 @@ A key a node does not store follows the agent's setting (会話の運用) or the
270
270
  | `wait_cover` | start, agent | `tune` | `{ enabled?, on_threshold?, threshold_ms?, on_query_start?, query_grace_ms? }` | Node-level hold phrase. By default it plays only when a lookup tool is still running after `query_grace_ms` (100 to 10000, default 1000); `on_query_start: false` turns that off. `on_threshold: true` also plays it after `threshold_ms` (2000 to 15000, default 2000) of silence on an ordinary turn (default off). `enabled: false` turns it off for this node. The phrase text is set per agent. |
271
271
  | `trigger_path` | trigger | `internal` | `string` | Generated. Shown read-only as the trigger URL. |
272
272
  | `opening_speech` | start | `required` | `string` | The opening line. Supports {{variables}}. |
273
- | `items` | start, agent | `required` | `{key,label?,example?,source?,value_type?,options?,must_ask?,min_digits?,max_digits?,tool?}[]` | What this step collects, one object per item, in the order it asks. `key`: slot key. `label`: display name. `example`: test-call example. `source`: where the value comes from (caller, derived, system, tool). `value_type`: kind (text, select, boolean, ...). `options`: choices of a select item. `must_ask`: ask the caller to confirm on the spot even if already known (advanced). `min_digits` / `max_digits`: for a `code` item, the fewest / most digits the value may hold, counted by the platform (the same number twice = exact length). `tool`: `{tool_key,result_field}` for a tool-sourced item. |
273
+ | `items` | start, agent | `required` | `{key,label?,example?,source?,value_type?,options?,must_ask?,min_digits?,max_digits?,require_day?,tool?}[]` | What this step collects, one object per item, in the order it asks. `key`: slot key. `label`: display name. `example`: test-call example. `source`: where the value comes from (caller, derived, system, tool). `value_type`: kind (text, select, boolean, ...). `options`: choices of a select item. `must_ask`: ask the caller to confirm on the spot even if already known (advanced). `min_digits` / `max_digits`: for a `code` item, the fewest / most digits the value may hold, counted by the platform (the same number twice = exact length). `require_day`: for a `birthdate` item, tell the model the value needs a year, a month and a day (off = year and month). `tool`: `{tool_key,result_field}` for a tool-sourced item. |
274
274
  | `allow_interruptions` | start, agent | `tune` | `boolean` | Absent means the caller may interrupt. Only an explicit false is stored. |
275
275
  | `route_judge` | start | `tune` | `boolean` | Absent means off. Only an explicit true is stored. On: while the call stays on this start step, each caller turn is first read by the call model's own probability readout (at most 400 ms, before the AI answers); when it is sure which of the step's three connections fits, the call moves on without a model turn. Offered only for a call model whose endpoint has a calibrated readout; the step needs exactly three AI connections without items and no fixed connections (graph diagnostics `route_judge_not_applicable`). |
276
276
  | `ai_disclosure_stated` | start | `tune` | `boolean` | Absent means not declared. Only an explicit true is stored. The author's own statement that the opening tells the caller they are speaking with an AI; the platform does not read the opening for it. Not declared: graph diagnostics `opening_no_ai_disclosure` (a warning, never blocks). |
@@ -351,7 +351,7 @@ These cover what the Portal's 顧客, 通話 and 分析 screens already do. Each
351
351
  tenant administrator (`kumion auth status` shows its expiry). The user re-runs
352
352
  `kumion auth login`.
353
353
  - **403 naming a scope** — the key lacks it (`agents:read`, `agents:write`,
354
- `agents:publish`, `agents:live`, `tests:run`, `calls:create`, `calls:read`, `calls:write`, `contacts:read`, `contacts:write`, `captures:read`, `captures:write`, `analytics:read`). The user issues a key with that scope
354
+ `agents:publish`, `agents:live`, `tests:run`, `calls:create`, `calls:read`, `calls:read_unmasked`, `calls:write`, `contacts:read`, `contacts:write`, `captures:read`, `captures:write`, `analytics:read`). The user issues a key with that scope
355
355
  in the Portal (設定 → 開発者) and logs in again. Do not work around it.
356
356
  - **403 without a scope name** — the tenant's plan cannot publish, or `create_call` hit
357
357
  the call-minute limit. Tell the user; a new key does not help.