@inworld/cli 2.0.0-rc.0 → 2.0.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Inworld CLI
2
2
 
3
- A command-line interface for the Inworld AI Framework that helps you manage projects, graphs, and runtime operations.
3
+ The `inworld` command-line interface: authentication, workspaces, TTS, and the `inworld mcp` server entry point.
4
4
 
5
5
  ## Installation
6
6
 
@@ -15,3 +15,38 @@ After installation, you can use the CLI from anywhere in your system:
15
15
  ```bash
16
16
  inworld --help
17
17
  ```
18
+
19
+ ## Audiobook performance
20
+
21
+ `audiobook generate --concurrency N` runs at most N chapter sessions (CLI limit
22
+ 20, not an account quota). Check your account's effective quota and other TTS
23
+ traffic before increasing it. Chapters start longest-first but retain their
24
+ original output order; segments within a chapter share one sequential context.
25
+ Retries restart the whole chapter and can repeat paid synthesis. Completed
26
+ chapter MP3s are published atomically so failed encoding cannot create a
27
+ resumable partial file.
28
+
29
+ PCM is written after each segment rather than held for the whole chapter. A
30
+ segment is capped at 32 MiB of decoded audio (concatenation can temporarily
31
+ double that buffer), with an 8 MiB WebSocket frame limit. Connections/context
32
+ creation time out after 30 seconds, synthesis after 120 seconds without audio
33
+ or 10 minutes total per segment. A failed session is terminated before retry;
34
+ voice/model, segment size, encoding and chapter-context semantics are unchanged.
35
+
36
+ When launched as a Node child with IPC, the CLI emits best-effort
37
+ `audiobook-diagnostic` version 1 events: fixed phase/outcome/error categories and
38
+ numeric duration, chapter/segment index, attempt and audio bytes. No book text,
39
+ credentials or server message is included. Diagnostics drop under IPC backlog
40
+ (at most 32 pending); they never block or fail a render. Normal CLI invocation
41
+ needs no IPC. A consumer must whitelist fields before logging them.
42
+
43
+ Offline verification (no credentials or paid synthesis):
44
+
45
+ ```sh
46
+ npm run build
47
+ npm test -w @inworld/cli -- tests/commands/audiobook tests/services/tts_websocket.test.ts
48
+ ```
49
+
50
+ The generation tests use a fake TTS session and encoder, including 13 chapters
51
+ at concurrency 8. They verify scheduling, original assembly order, bounded
52
+ concurrency and failed-output cleanup, not production throughput or audio quality.