@praxisui/ai 9.0.0-beta.4 → 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.
@@ -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 = 'daab9623a5c4d660105dfe1c85a6bd1ee1ef1b54ef5981e26d27c44aa82ddb4f';
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
- return this.messages.length > 0
8225
- || this.quickReplies.length > 0
8226
- || this.canApply
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.4",
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.4",
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",
@@ -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: "daab9623a5c4d660105dfe1c85a6bd1ee1ef1b54ef5981e26d27c44aa82ddb4f";
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: "daab9623a5c4d660105dfe1c85a6bd1ee1ef1b54ef5981e26d27c44aa82ddb4f";
1470
+ declare const AI_INTENT_CONTRACT_SCHEMA_HASH: "39e28310b20a9f2bb5e58df32f4f3f98bb1a4236761dfc7d9ee5d18fb588894c";
1471
1471
  type AiSchemaContext = AiSchemaContextContract;
1472
1472
  interface AiSuggestionsRequest {
1473
1473
  componentId: string;