@praxisui/ai 10.0.0-rc.41 → 10.0.0-rc.43
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 +11 -1
- package/ai/component-registry.json +2 -2
- package/fesm2022/praxisui-ai.mjs +1059 -121
- package/package.json +2 -2
- package/types/praxisui-ai.d.ts +171 -15
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
|
|
|
@@ -327,6 +327,16 @@ The manual patch editor UI is disabled by default and can be enabled explicitly
|
|
|
327
327
|
|
|
328
328
|
- `projects/praxis-ai/docs/ai-deployment-flow.md`
|
|
329
329
|
|
|
330
|
+
### Shared assistant voice policy
|
|
331
|
+
|
|
332
|
+
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.
|
|
333
|
+
|
|
334
|
+
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.
|
|
335
|
+
|
|
336
|
+
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.
|
|
337
|
+
|
|
338
|
+
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.
|
|
339
|
+
|
|
330
340
|
<!-- praxis-npm-catalog-links:start -->
|
|
331
341
|
## Official documentation and examples
|
|
332
342
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-
|
|
3
|
+
"generatedAt": "2026-11-01T16:17:35.480Z",
|
|
4
4
|
"packageName": "@praxisui/ai",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.43",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 0,
|