@craftedxp/sdk-node 0.15.0 → 0.16.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
@@ -284,6 +284,7 @@ for await (const call of client.calls.listAll({ agentId })) {
284
284
  ## Changelog
285
285
 
286
286
  - **Unreleased** _(forward-looking)_ — `isPersonal?: boolean` on `Agent` and `AgentCreateInput` (and so on `AgentUpdateInput`). Assistant-only: when `true`, the learning tools (`remember_fact`, `add_correction`, `add_skill_hint`) are live on every `ct_`-token call rather than only on `mode=learning`. Server-side field — no runtime change in this package.
287
+ - **0.16.0** — `debug?: boolean` on `CallTokenMintInput`. Operator-gated (Firebase-admin or `sk_`-key mints only — silently stripped otherwise); when set, the call streams diagnostic frames (`tool_call` / `tool_result` / `phase_marker` / `prefetch*`) to the client. Request-only field — the mint response does not echo it back (see `docs/openapi.yaml`). No client-side behavior change; the HTTP layer already posts `body: input` verbatim, so this is a type-only addition.
287
288
  - **0.15.0** — `client.speech` namespace (`synthesize` / `enqueue` / `get` / `list` / `delete`) for pre-generated agent audio (`POST /v1/speech`), plus `speech.ready` / `speech.failed` webhook event types and the `accepted` error code (`synthesize` → 202 handoff). Requires server ≥ the 2026-08 speech release.
288
289
  - **0.14.0** — `client.spaces` namespace (create / get / list / update / delete) for durable multi-party spaces, plus the standalone `buildJoinUrl(spaceOrCode, { baseUrl, style? })` helper for white-label participant links. No server changes — the `/v1/spaces` endpoints already existed.
289
290
 
package/dist/index.d.mts CHANGED
@@ -409,6 +409,14 @@ interface CallTokenMintInput {
409
409
  * (admin-bypass only) flags a self-learning session — see Phase 19.
410
410
  */
411
411
  mode?: 'standard' | 'learning';
412
+ /**
413
+ * Operator-only: stream diagnostic frames (`tool_call`, `tool_result`,
414
+ * `phase_marker`, `prefetch*`) to this call's client. Requires
415
+ * Firebase-admin auth or an `sk_` key — silently stripped (not an error)
416
+ * for untrusted mints (public/anonymous paths). Default `false`. Stored
417
+ * on the token server-side; NOT echoed back in the mint response.
418
+ */
419
+ debug?: boolean;
412
420
  }
413
421
  interface CallTokenMintResult {
414
422
  tokenId: string;
package/dist/index.d.ts CHANGED
@@ -409,6 +409,14 @@ interface CallTokenMintInput {
409
409
  * (admin-bypass only) flags a self-learning session — see Phase 19.
410
410
  */
411
411
  mode?: 'standard' | 'learning';
412
+ /**
413
+ * Operator-only: stream diagnostic frames (`tool_call`, `tool_result`,
414
+ * `phase_marker`, `prefetch*`) to this call's client. Requires
415
+ * Firebase-admin auth or an `sk_` key — silently stripped (not an error)
416
+ * for untrusted mints (public/anonymous paths). Default `false`. Stored
417
+ * on the token server-side; NOT echoed back in the mint response.
418
+ */
419
+ debug?: boolean;
412
420
  }
413
421
  interface CallTokenMintResult {
414
422
  tokenId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@craftedxp/sdk-node",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Node.js / TypeScript SDK for the voice agent platform. Server-side API client — mint call tokens, manage agents, query calls, upload knowledge-base docs.",
5
5
  "author": "Crafted XP",
6
6
  "license": "MIT",