@praxisui/ai 9.0.0-beta.3 → 9.0.0-beta.5
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 +1 -28
- package/fesm2022/praxisui-ai.mjs +8 -15
- package/package.json +2 -2
- package/types/praxisui-ai.d.ts +3 -3
package/README.md
CHANGED
|
@@ -1,30 +1,3 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "AI"
|
|
3
|
-
slug: "ai-overview"
|
|
4
|
-
description: "Overview of @praxisui/ai with backend-orchestrated provider flows, governed assistant UX, structured configuration proposals, and tenant-aware risk policy."
|
|
5
|
-
doc_type: "guide"
|
|
6
|
-
document_kind: "component-overview"
|
|
7
|
-
component: "ai"
|
|
8
|
-
category: "components"
|
|
9
|
-
audience:
|
|
10
|
-
- "host"
|
|
11
|
-
- "frontend"
|
|
12
|
-
- "platform-team"
|
|
13
|
-
- "architect"
|
|
14
|
-
level: "intermediate"
|
|
15
|
-
status: "active"
|
|
16
|
-
owner: "praxis-ui"
|
|
17
|
-
toc: true
|
|
18
|
-
sidebar: true
|
|
19
|
-
icon: "smart_toy"
|
|
20
|
-
last_updated: "2026-04-08"
|
|
21
|
-
source_of_truth:
|
|
22
|
-
- "projects/praxis-ai/README.md"
|
|
23
|
-
- "projects/praxis-ai/docs/ai-deployment-flow.md"
|
|
24
|
-
related_docs:
|
|
25
|
-
- "host-integration-guide"
|
|
26
|
-
---
|
|
27
|
-
|
|
28
1
|
# @praxisui/ai
|
|
29
2
|
|
|
30
3
|
AI building blocks and assistant integration for Praxis UI applications. The package is designed for Angular hosts that need AI to understand existing runtime materializers, ask for clarification, answer consultative questions, and propose governed configuration changes without turning the browser into a free-form code generator.
|
|
@@ -61,7 +34,7 @@ Peer dependencies:
|
|
|
61
34
|
- `@angular/forms` `^21.0.0`
|
|
62
35
|
- `@angular/material` `^21.0.0`
|
|
63
36
|
- `@google/generative-ai` `^0.24.1`
|
|
64
|
-
- `@praxisui/core` `^9.0.0-beta.
|
|
37
|
+
- `@praxisui/core` `^9.0.0-beta.4`
|
|
65
38
|
- `rxjs` `~7.8.0`
|
|
66
39
|
|
|
67
40
|
## When to use
|
package/fesm2022/praxisui-ai.mjs
CHANGED
|
@@ -403,10 +403,10 @@ function toPraxisAssistantConversationMessageRole(role) {
|
|
|
403
403
|
* Do not edit manually. Run praxis-config-starter/tools/contracts/generate-ai-contract-bindings.js.
|
|
404
404
|
*/
|
|
405
405
|
const AI_CONTRACT_VERSION = 'v1.1';
|
|
406
|
-
const AI_CONTRACT_SCHEMA_HASH = '
|
|
406
|
+
const AI_CONTRACT_SCHEMA_HASH = '39e28310b20a9f2bb5e58df32f4f3f98bb1a4236761dfc7d9ee5d18fb588894c';
|
|
407
407
|
const AI_STREAM_EVENT_SCHEMA_VERSION = 'v1';
|
|
408
408
|
const AI_DOMAIN_CATALOG_CONTEXT_HINT_SCHEMA_VERSION = 'praxis.ai.context-hints.domain-catalog/v0.2';
|
|
409
|
-
const AI_STREAM_EVENT_TYPES = ['status', 'thought.step', 'heartbeat', 'result', 'error', 'cancelled'];
|
|
409
|
+
const AI_STREAM_EVENT_TYPES = ['status', 'thought.step', 'heartbeat', 'intent.resolved', 'result', 'error', 'cancelled'];
|
|
410
410
|
|
|
411
411
|
function createComponentAuthoringContext(authoringContract) {
|
|
412
412
|
return {
|
|
@@ -8215,18 +8215,15 @@ class PraxisAiAssistantShellComponent {
|
|
|
8215
8215
|
return action.id;
|
|
8216
8216
|
}
|
|
8217
8217
|
hasRecoverableTurn() {
|
|
8218
|
-
if (this.busy && this.state !== 'processing') {
|
|
8219
|
-
return false;
|
|
8220
|
-
}
|
|
8221
8218
|
if (this.state === 'idle' || this.state === 'listening') {
|
|
8222
8219
|
return false;
|
|
8223
8220
|
}
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8221
|
+
if (this.state === 'processing' || this.state === 'applying') {
|
|
8222
|
+
return true;
|
|
8223
|
+
}
|
|
8224
|
+
return this.canApply
|
|
8227
8225
|
|| this.state === 'clarification'
|
|
8228
|
-
|| this.state === 'review'
|
|
8229
|
-
|| this.state === 'error';
|
|
8226
|
+
|| this.state === 'review';
|
|
8230
8227
|
}
|
|
8231
8228
|
updateProcessingTimer() {
|
|
8232
8229
|
if (this.state !== 'processing') {
|
|
@@ -8335,11 +8332,7 @@ class PraxisAiAssistantShellComponent {
|
|
|
8335
8332
|
tone: 'warning',
|
|
8336
8333
|
};
|
|
8337
8334
|
case 'success':
|
|
8338
|
-
return
|
|
8339
|
-
...base,
|
|
8340
|
-
label: 'Novo pedido',
|
|
8341
|
-
icon: 'add_comment',
|
|
8342
|
-
};
|
|
8335
|
+
return base;
|
|
8343
8336
|
case 'idle':
|
|
8344
8337
|
case 'listening':
|
|
8345
8338
|
default:
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/ai",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.0.0-beta.5",
|
|
4
4
|
"description": "AI building blocks and assistant integration for Praxis UI applications.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
|
-
"@praxisui/core": "^9.0.0-beta.
|
|
8
|
+
"@praxisui/core": "^9.0.0-beta.5",
|
|
9
9
|
"@angular/cdk": "^21.0.0",
|
|
10
10
|
"@angular/forms": "^21.0.0",
|
|
11
11
|
"@angular/material": "^21.0.0",
|
package/types/praxisui-ai.d.ts
CHANGED
|
@@ -19,10 +19,10 @@ declare class PraxisAi {
|
|
|
19
19
|
* Do not edit manually. Run praxis-config-starter/tools/contracts/generate-ai-contract-bindings.js.
|
|
20
20
|
*/
|
|
21
21
|
declare const AI_CONTRACT_VERSION: "v1.1";
|
|
22
|
-
declare const AI_CONTRACT_SCHEMA_HASH: "
|
|
22
|
+
declare const AI_CONTRACT_SCHEMA_HASH: "39e28310b20a9f2bb5e58df32f4f3f98bb1a4236761dfc7d9ee5d18fb588894c";
|
|
23
23
|
declare const AI_STREAM_EVENT_SCHEMA_VERSION: "v1";
|
|
24
24
|
declare const AI_DOMAIN_CATALOG_CONTEXT_HINT_SCHEMA_VERSION: "praxis.ai.context-hints.domain-catalog/v0.2";
|
|
25
|
-
declare const AI_STREAM_EVENT_TYPES: readonly ["status", "thought.step", "heartbeat", "result", "error", "cancelled"];
|
|
25
|
+
declare const AI_STREAM_EVENT_TYPES: readonly ["status", "thought.step", "heartbeat", "intent.resolved", "result", "error", "cancelled"];
|
|
26
26
|
type AiJsonPrimitive = string | number | boolean | null;
|
|
27
27
|
type AiJsonArray = AiJsonValue[];
|
|
28
28
|
interface AiJsonObject {
|
|
@@ -1467,7 +1467,7 @@ declare class PraxisAiService {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
|
|
1469
1469
|
declare const AI_INTENT_CONTRACT_VERSION: "v1.1";
|
|
1470
|
-
declare const AI_INTENT_CONTRACT_SCHEMA_HASH: "
|
|
1470
|
+
declare const AI_INTENT_CONTRACT_SCHEMA_HASH: "39e28310b20a9f2bb5e58df32f4f3f98bb1a4236761dfc7d9ee5d18fb588894c";
|
|
1471
1471
|
type AiSchemaContext = AiSchemaContextContract;
|
|
1472
1472
|
interface AiSuggestionsRequest {
|
|
1473
1473
|
componentId: string;
|