@praxisui/ai 10.0.0-rc.5 → 10.0.0-rc.50

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
@@ -144,7 +144,7 @@ The shell ships with centralized PT-BR default labels and accepts the `labels` i
144
144
 
145
145
  By default, the prompt composer submits with `Enter` and keeps `Shift+Enter` for multiline prompts. Hosts with custom composer behavior can set `submitOnEnter` to `false`.
146
146
 
147
- The prompt composer supports governed provider-backed transcription with `voiceInputMode="governed-transcription"`. It captures a short audio blob with `MediaRecorder`, sends it to `POST /api/praxis/config/ai/transcriptions` using the normal tenant/user/environment scope, appends the returned text to the prompt and never auto-submits the assistant turn. Provider selection, credentials, limits and audit policy remain backend-owned by Praxis Config. The older `browser-speech` mode remains an explicit compatibility option for approved low-risk environments, but it is not the enterprise/default path because `SpeechRecognition` availability varies by browser.
147
+ The prompt composer supports governed provider-backed transcription with `voiceInputMode="governed-transcription"`. It captures a short audio blob with `MediaRecorder`, sends it to `POST /api/praxis/config/ai/transcriptions` using the normal tenant/user/environment scope, appends the returned text to the prompt and never auto-submits the assistant turn. The 44px microphone sits beside Send and stops an active recording; pending states disable it and expose a separate Cancel dictation control. A reserved status row shows progress and recording time without announcing every timer tick. Focus moves between voice controls only when needed, preserving the editable draft's focus. Provider selection, credentials, limits and audit policy remain backend-owned by Praxis Config. The older `browser-speech` mode remains an explicit compatibility option for approved low-risk environments, but it is not the enterprise/default path because `SpeechRecognition` availability varies by browser.
148
148
 
149
149
  When a user pastes an image into the prompt composer, the shell emits `attachmentsPasted` with `PraxisAssistantShellAttachment` items containing the original `File`, image metadata, `source: 'paste'` and a local preview URL.
150
150
 
@@ -277,6 +277,14 @@ Notes:
277
277
 
278
278
  `AiBackendApiService` exposes these endpoints through typed methods so hosts can inspect the executable manifest, resolve targets, validate a component edit plan and compile a backend-owned patch without routing by local keywords.
279
279
 
280
+ ### Operational agent turn streaming & blocks
281
+ - `POST /api/praxis/config/ai/agent/turn/stream/start`
282
+ - `GET /api/praxis/config/ai/agent/turn/stream/{streamId}`
283
+ - `GET /api/praxis/config/ai/agent/turn/stream/{streamId}/probe`
284
+ - `POST /api/praxis/config/ai/agent/turn/stream/{streamId}/cancel`
285
+
286
+ `OperationalAgentTurnClientService` starts and cancels turns via `HttpClient` (`withCredentials: true`, preserving CSRF headers) and consumes SSE frames over `fetch()` `ReadableStream` with `Last-Event-ID` resume when custom host headers are supplied. `PraxisAiAssistantShellComponent` renders governed `assistantContent` (`praxis.assistant-content/v2`) operational blocks (`alert-list`, `widget-block` via `DynamicWidgetLoaderDirective` with fail-closed `hostCapabilities`, 5-row `compact-collection`, and `action-bar`) through `PraxisAssistantOperationalBlockComponent` and emits `blockAction` events to the host.
287
+
280
288
  ### Agentic authoring turn streaming
281
289
  - `POST /api/praxis/config/ai/authoring/turn/stream/start`
282
290
  - `GET /api/praxis/config/ai/authoring/turn/stream/{streamId}`
@@ -327,6 +335,16 @@ The manual patch editor UI is disabled by default and can be enabled explicitly
327
335
 
328
336
  - `projects/praxis-ai/docs/ai-deployment-flow.md`
329
337
 
338
+ ### Shared assistant voice policy
339
+
340
+ Configure `{ provide: PRAXIS_ASSISTANT_VOICE_INPUT_MODE, useValue: 'governed-transcription' }` once in the host application (token from `@praxisui/ai`). The shell, Page Builder and Table inherit it; explicit component inputs can override it, including `disabled`. The default remains disabled when the host does not opt in.
341
+
342
+ The shared composer checks `GET /api/praxis/config/ai/transcriptions/capabilities` before requesting microphone permission. Readiness means local provider/credential configuration, not quota or network health. Recording, transcription and cancellation preserve the editable draft and never auto-submit. Deploy the backend capability before enabling the updated client.
343
+
344
+ Voice language also inherits `PRAXIS_ASSISTANT_VOICE_LANGUAGE`; explicit component inputs override it. Governed capture is bound to confirmed enterprise context (user/tenant/profile/version) and is cancelled when that authority is invalidated. Page Builder session resets and Table owner changes discard the old shell capture; editing the current draft does not cancel it. The host must keep its session and runtime authority coherent and invalidate it on session-generation changes.
345
+
346
+ Corporate adoption requires a ready context and current context-version headers, a host resolver bound to the server session/membership, and the correct cookie transport. The quickstart enterprise resolver applies this admission to all its AI callers. Local header-only integration cannot detect cookie changes that the host does not report. Focused/mock tests are not proof of durable session persistence, provider connectivity or published package adoption.
347
+
330
348
  <!-- praxis-npm-catalog-links:start -->
331
349
  ## Official documentation and examples
332
350
 
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-10-11T22:45:11.695Z",
3
+ "generatedAt": "2026-11-18T01:27:35.895Z",
4
4
  "packageName": "@praxisui/ai",
5
- "packageVersion": "10.0.0-rc.5",
5
+ "packageVersion": "10.0.0-rc.50",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 0,