@praxisui/ai 8.0.0-beta.99 → 9.0.0-beta.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 +49 -6
- package/fesm2022/praxisui-ai.mjs +1003 -81
- package/package.json +2 -2
- package/types/praxisui-ai.d.ts +159 -10
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/ai",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-beta.0",
|
|
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": "^
|
|
8
|
+
"@praxisui/core": "^9.0.0-beta.0",
|
|
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
|
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { InjectionToken, OnDestroy, ElementRef, OnChanges, EventEmitter, SimpleChanges, OnInit, ChangeDetectorRef } from '@angular/core';
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
+
import { PraxisRuntimeComponentObservationEnvelope, PraxisRuntimeComponentObservationRegistryService } from '@praxisui/core';
|
|
5
6
|
import { Schema } from '@google/generative-ai';
|
|
6
7
|
import { ConnectedPosition, CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
7
8
|
import * as _praxisui_ai from '@praxisui/ai';
|
|
@@ -18,7 +19,7 @@ declare class PraxisAi {
|
|
|
18
19
|
* Do not edit manually. Run praxis-config-starter/tools/contracts/generate-ai-contract-bindings.js.
|
|
19
20
|
*/
|
|
20
21
|
declare const AI_CONTRACT_VERSION: "v1.1";
|
|
21
|
-
declare const AI_CONTRACT_SCHEMA_HASH: "
|
|
22
|
+
declare const AI_CONTRACT_SCHEMA_HASH: "daab9623a5c4d660105dfe1c85a6bd1ee1ef1b54ef5981e26d27c44aa82ddb4f";
|
|
22
23
|
declare const AI_STREAM_EVENT_SCHEMA_VERSION: "v1";
|
|
23
24
|
declare const AI_DOMAIN_CATALOG_CONTEXT_HINT_SCHEMA_VERSION: "praxis.ai.context-hints.domain-catalog/v0.2";
|
|
24
25
|
declare const AI_STREAM_EVENT_TYPES: readonly ["status", "thought.step", "heartbeat", "result", "error", "cancelled"];
|
|
@@ -281,7 +282,9 @@ interface AgenticAuthoringQuickReplyContract {
|
|
|
281
282
|
icon?: string | null;
|
|
282
283
|
tone?: string | null;
|
|
283
284
|
contextHints?: AiContextHintsContract | null;
|
|
284
|
-
|
|
285
|
+
semanticDecision?: AgenticAuthoringSemanticDecisionContract | null;
|
|
286
|
+
value?: AiJsonObject | AiJsonValue | null;
|
|
287
|
+
[key: string]: AiJsonValue | AiContextHintsContract | AgenticAuthoringSemanticDecisionContract | null | undefined;
|
|
285
288
|
}
|
|
286
289
|
interface AgenticAuthoringSemanticSelectedResourceContract {
|
|
287
290
|
resourcePath?: string | null;
|
|
@@ -442,7 +445,10 @@ interface AgenticAuthoringTurnStreamRequestContract extends AgenticAuthoringConv
|
|
|
442
445
|
contextHints?: AiContextHintsContract | null;
|
|
443
446
|
componentCapabilities?: AgenticAuthoringComponentCapabilitiesResultContract | null;
|
|
444
447
|
activeSemanticDecision?: AgenticAuthoringSemanticDecisionContract | null;
|
|
445
|
-
|
|
448
|
+
diagnostics?: AiJsonObject | null;
|
|
449
|
+
runtimeComponentObservations?: unknown[] | null;
|
|
450
|
+
runtimeComponentObservationTrustBoundary?: 'untrusted_frontend_observation' | null;
|
|
451
|
+
[key: string]: AiJsonValue | AiContextHintsContract | AgenticAuthoringComponentCapabilitiesResultContract | AgenticAuthoringSemanticDecisionContract | AgenticAuthoringConversationMessageContract[] | AgenticAuthoringPendingClarificationContract | AgenticAuthoringAttachmentSummaryContract[] | unknown[] | undefined;
|
|
446
452
|
}
|
|
447
453
|
interface AgenticAuthoringPreviewResultContract {
|
|
448
454
|
valid?: boolean;
|
|
@@ -845,6 +851,7 @@ interface PraxisAssistantShellMessage {
|
|
|
845
851
|
id: string;
|
|
846
852
|
role: PraxisAssistantShellMessageRole;
|
|
847
853
|
text: string;
|
|
854
|
+
assistantContent?: Readonly<Record<string, unknown>> | null;
|
|
848
855
|
status?: 'pending' | 'done' | 'error';
|
|
849
856
|
editable?: boolean;
|
|
850
857
|
resendable?: boolean;
|
|
@@ -1103,6 +1110,7 @@ interface PraxisAssistantClarificationOption {
|
|
|
1103
1110
|
id: string;
|
|
1104
1111
|
label: string;
|
|
1105
1112
|
value: string;
|
|
1113
|
+
rawValue?: unknown;
|
|
1106
1114
|
description?: string;
|
|
1107
1115
|
displayPrompt?: string;
|
|
1108
1116
|
example?: string;
|
|
@@ -1125,6 +1133,7 @@ interface PraxisAssistantTurnAction {
|
|
|
1125
1133
|
value?: unknown;
|
|
1126
1134
|
displayPrompt?: string;
|
|
1127
1135
|
contextHints?: Record<string, unknown>;
|
|
1136
|
+
activeSemanticDecision?: Record<string, unknown>;
|
|
1128
1137
|
}
|
|
1129
1138
|
interface PraxisAssistantPendingClarification {
|
|
1130
1139
|
sourcePrompt: string;
|
|
@@ -1158,16 +1167,19 @@ interface PraxisAssistantTurnRequest {
|
|
|
1158
1167
|
schemaFields?: unknown;
|
|
1159
1168
|
dataProfile?: unknown;
|
|
1160
1169
|
contextHints?: Record<string, unknown>;
|
|
1170
|
+
activeSemanticDecision?: Record<string, unknown>;
|
|
1161
1171
|
preview?: unknown;
|
|
1162
1172
|
pendingPatch?: unknown;
|
|
1163
1173
|
pendingClarification?: PraxisAssistantPendingClarification;
|
|
1164
1174
|
diagnostics?: Record<string, unknown>;
|
|
1165
1175
|
observationId?: string | null;
|
|
1176
|
+
runtimeComponentObservations?: readonly PraxisRuntimeComponentObservationEnvelope[];
|
|
1166
1177
|
}
|
|
1167
1178
|
interface PraxisAssistantTurnResult {
|
|
1168
1179
|
state: PraxisAssistantShellState;
|
|
1169
1180
|
phase?: PraxisAssistantTurnPhase;
|
|
1170
1181
|
assistantMessage?: string;
|
|
1182
|
+
assistantContent?: Readonly<Record<string, unknown>> | null;
|
|
1171
1183
|
messages?: readonly PraxisAssistantShellMessage[];
|
|
1172
1184
|
quickReplies?: readonly PraxisAssistantShellQuickReply[];
|
|
1173
1185
|
clarificationQuestions?: readonly PraxisAssistantClarificationQuestion[];
|
|
@@ -1455,7 +1467,7 @@ declare class PraxisAiService {
|
|
|
1455
1467
|
}
|
|
1456
1468
|
|
|
1457
1469
|
declare const AI_INTENT_CONTRACT_VERSION: "v1.1";
|
|
1458
|
-
declare const AI_INTENT_CONTRACT_SCHEMA_HASH: "
|
|
1470
|
+
declare const AI_INTENT_CONTRACT_SCHEMA_HASH: "daab9623a5c4d660105dfe1c85a6bd1ee1ef1b54ef5981e26d27c44aa82ddb4f";
|
|
1459
1471
|
type AiSchemaContext = AiSchemaContextContract;
|
|
1460
1472
|
interface AiSuggestionsRequest {
|
|
1461
1473
|
componentId: string;
|
|
@@ -1493,7 +1505,13 @@ type AgenticAuthoringResolveTargetRequest = AgenticAuthoringResolveTargetRequest
|
|
|
1493
1505
|
type AgenticAuthoringResolvedTarget = AgenticAuthoringResolvedTargetContract;
|
|
1494
1506
|
type AgenticAuthoringManifestValidationResult = AgenticAuthoringManifestValidationResultContract;
|
|
1495
1507
|
type AgenticAuthoringManifestCompileResult = AgenticAuthoringManifestCompileResultContract;
|
|
1496
|
-
type
|
|
1508
|
+
type WithoutStringIndex<T> = {
|
|
1509
|
+
[K in keyof T as string extends K ? never : K]: T[K];
|
|
1510
|
+
};
|
|
1511
|
+
type AgenticAuthoringTurnStreamRequest = WithoutStringIndex<AgenticAuthoringTurnStreamRequestContract> & Record<string, unknown> & {
|
|
1512
|
+
runtimeComponentObservations?: readonly PraxisRuntimeComponentObservationEnvelope[] | readonly unknown[] | null;
|
|
1513
|
+
runtimeComponentObservationTrustBoundary?: 'untrusted_frontend_observation' | null;
|
|
1514
|
+
};
|
|
1497
1515
|
type AgenticAuthoringTurnStreamStartResponse = AgenticAuthoringTurnStreamStartResponseContract;
|
|
1498
1516
|
type AgenticAuthoringTurnStreamEnvelope<TPayload extends AiJsonObject = AiJsonObject> = AgenticAuthoringTurnStreamEnvelopeContract<TPayload>;
|
|
1499
1517
|
interface AiPatchStreamConnection {
|
|
@@ -1504,6 +1522,23 @@ interface AgenticAuthoringTurnStreamConnection {
|
|
|
1504
1522
|
events$: Observable<AgenticAuthoringTurnStreamEnvelope>;
|
|
1505
1523
|
close: () => void;
|
|
1506
1524
|
}
|
|
1525
|
+
interface AgenticAuthoringTurnStreamLifecycle {
|
|
1526
|
+
phase: string;
|
|
1527
|
+
transport?: 'event-source' | 'fetch' | string;
|
|
1528
|
+
connectElapsedMs?: number;
|
|
1529
|
+
probeStatus?: number | null;
|
|
1530
|
+
firstEventSeq?: number | null;
|
|
1531
|
+
firstEventType?: string | null;
|
|
1532
|
+
}
|
|
1533
|
+
interface AgenticAuthoringTurnStreamConnectionOptions {
|
|
1534
|
+
baseUrl?: string;
|
|
1535
|
+
headers?: Record<string, string | undefined>;
|
|
1536
|
+
onLifecycle?: (event: AgenticAuthoringTurnStreamLifecycle) => void;
|
|
1537
|
+
}
|
|
1538
|
+
interface AgenticAuthoringTurnStreamStartOptions {
|
|
1539
|
+
baseUrl?: string;
|
|
1540
|
+
headers?: Record<string, string | undefined>;
|
|
1541
|
+
}
|
|
1507
1542
|
type AiPatchStreamConnectionErrorKind = 'unsupported' | 'http_status' | 'transport' | 'parse' | 'schema';
|
|
1508
1543
|
declare class AiPatchStreamConnectionError extends Error {
|
|
1509
1544
|
readonly kind: AiPatchStreamConnectionErrorKind;
|
|
@@ -1628,8 +1663,8 @@ declare class AiBackendApiService {
|
|
|
1628
1663
|
startPatchStream(request: AiOrchestratorRequest): Observable<AiPatchStreamStartResponse>;
|
|
1629
1664
|
connectPatchStream(streamId: string, lastEventId?: string, accessToken?: string): AiPatchStreamConnection;
|
|
1630
1665
|
cancelPatchStream(streamId: string, accessToken?: string): Observable<AiPatchStreamCancelResponse>;
|
|
1631
|
-
startAgenticAuthoringTurnStream(request: AgenticAuthoringTurnStreamRequest): Observable<AgenticAuthoringTurnStreamStartResponse>;
|
|
1632
|
-
connectAgenticAuthoringTurnStream(streamId: string, lastEventId?: string, accessToken?: string): AgenticAuthoringTurnStreamConnection;
|
|
1666
|
+
startAgenticAuthoringTurnStream(request: AgenticAuthoringTurnStreamRequest, options?: AgenticAuthoringTurnStreamStartOptions): Observable<AgenticAuthoringTurnStreamStartResponse>;
|
|
1667
|
+
connectAgenticAuthoringTurnStream(streamId: string, lastEventId?: string, accessToken?: string, options?: AgenticAuthoringTurnStreamConnectionOptions): AgenticAuthoringTurnStreamConnection;
|
|
1633
1668
|
cancelAgenticAuthoringTurnStream(streamId: string, accessToken?: string): Observable<AiPatchStreamCancelResponse>;
|
|
1634
1669
|
sendAssistantObservationFeedback(observationId: string, request: AiAssistantObservationFeedbackRequest): Observable<AiAssistantObservationFeedbackResponse>;
|
|
1635
1670
|
listModels(request: AiProviderModelsRequest): Observable<AiProviderModelsResponse>;
|
|
@@ -1666,11 +1701,76 @@ declare class AiBackendApiService {
|
|
|
1666
1701
|
private isJsonObject;
|
|
1667
1702
|
private registerNamedStreamEventListeners;
|
|
1668
1703
|
private isTerminalStreamEventType;
|
|
1704
|
+
private agenticAuthoringBaseUrl;
|
|
1705
|
+
private consumeFetchAgenticTurnStream;
|
|
1706
|
+
private consumeBufferedSseFrames;
|
|
1707
|
+
private findSseFrameBoundary;
|
|
1669
1708
|
private probePatchStreamEndpoint;
|
|
1709
|
+
private buildFetchHeaders;
|
|
1710
|
+
private hasExplicitHeaders;
|
|
1670
1711
|
static ɵfac: i0.ɵɵFactoryDeclaration<AiBackendApiService, never>;
|
|
1671
1712
|
static ɵprov: i0.ɵɵInjectableDeclaration<AiBackendApiService>;
|
|
1672
1713
|
}
|
|
1673
1714
|
|
|
1715
|
+
interface AgenticAuthoringTurnClientOptions {
|
|
1716
|
+
readonly baseUrl?: string;
|
|
1717
|
+
readonly headers?: Record<string, string | undefined>;
|
|
1718
|
+
readonly initialStatusText?: string;
|
|
1719
|
+
readonly silenceStatusMs?: number;
|
|
1720
|
+
readonly resultTimeoutMs?: number;
|
|
1721
|
+
readonly streamTimeoutMs?: number;
|
|
1722
|
+
}
|
|
1723
|
+
interface AgenticAuthoringTurnStreamStartedEvent {
|
|
1724
|
+
readonly kind: 'stream-started';
|
|
1725
|
+
readonly start: AgenticAuthoringTurnStreamStartResponseContract;
|
|
1726
|
+
}
|
|
1727
|
+
interface AgenticAuthoringTurnStreamEnvelopeEvent {
|
|
1728
|
+
readonly kind: 'stream-event';
|
|
1729
|
+
readonly event: AgenticAuthoringTurnStreamEnvelopeContract;
|
|
1730
|
+
}
|
|
1731
|
+
interface AgenticAuthoringTurnLifecycleEvent {
|
|
1732
|
+
readonly kind: 'stream-lifecycle';
|
|
1733
|
+
readonly start: AgenticAuthoringTurnStreamStartResponseContract;
|
|
1734
|
+
readonly phase: string;
|
|
1735
|
+
readonly statusText: string;
|
|
1736
|
+
readonly diagnostics?: AiJsonObject;
|
|
1737
|
+
}
|
|
1738
|
+
type AgenticAuthoringTurnClientEvent = AgenticAuthoringTurnStreamStartedEvent | AgenticAuthoringTurnLifecycleEvent | AgenticAuthoringTurnStreamEnvelopeEvent;
|
|
1739
|
+
declare class AgenticAuthoringTurnClientService {
|
|
1740
|
+
private readonly aiApi;
|
|
1741
|
+
private readonly runtimeObservationRegistry;
|
|
1742
|
+
streamEvents(request: AgenticAuthoringTurnStreamRequest, options?: AgenticAuthoringTurnClientOptions): Observable<AgenticAuthoringTurnClientEvent>;
|
|
1743
|
+
streamTurn(request: AgenticAuthoringTurnStreamRequest, options?: AgenticAuthoringTurnClientOptions): Observable<PraxisAssistantTurnResult>;
|
|
1744
|
+
toTurnResult(event: AgenticAuthoringTurnStreamEnvelopeContract, clientTurnId?: string | null): PraxisAssistantTurnResult;
|
|
1745
|
+
private withRuntimeObservationTrustBoundary;
|
|
1746
|
+
private collectRuntimeComponentObservations;
|
|
1747
|
+
private isRuntimeComponentObservationEnvelopeLike;
|
|
1748
|
+
private startAuthoringTurnStream;
|
|
1749
|
+
private isPromiseLike;
|
|
1750
|
+
private toResultTurn;
|
|
1751
|
+
private isConsultativeCatalogAnswer;
|
|
1752
|
+
private toShellQuickReplies;
|
|
1753
|
+
private toPendingClarification;
|
|
1754
|
+
private phaseForPayload;
|
|
1755
|
+
private statusForPayload;
|
|
1756
|
+
private resultDiagnostics;
|
|
1757
|
+
private runtimeRelatedSurfaceDisambiguationContext;
|
|
1758
|
+
private runtimeRelatedSurfaceDisambiguationPageId;
|
|
1759
|
+
private toLifecycleEvent;
|
|
1760
|
+
private silenceStatusEvent;
|
|
1761
|
+
private resultTimeoutEvent;
|
|
1762
|
+
private streamTimeoutEvent;
|
|
1763
|
+
private isTerminalEventType;
|
|
1764
|
+
private toQuickReplies;
|
|
1765
|
+
private isQuickReply;
|
|
1766
|
+
private toPendingClarificationContract;
|
|
1767
|
+
private readString;
|
|
1768
|
+
private toJsonObject;
|
|
1769
|
+
private isRecord;
|
|
1770
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AgenticAuthoringTurnClientService, never>;
|
|
1771
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AgenticAuthoringTurnClientService>;
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1674
1774
|
interface ValidationContext {
|
|
1675
1775
|
fieldSchemas: Record<string, FieldSchemaLike>;
|
|
1676
1776
|
targetSchemas?: any;
|
|
@@ -1711,6 +1811,7 @@ interface PraxisAssistantTurnControllerOptions {
|
|
|
1711
1811
|
contextHints?: Record<string, unknown>;
|
|
1712
1812
|
}
|
|
1713
1813
|
declare class PraxisAssistantTurnOrchestratorService {
|
|
1814
|
+
private readonly runtimeObservationRegistry;
|
|
1714
1815
|
createController(flow: PraxisAssistantTurnFlow, options?: PraxisAssistantTurnControllerOptions): PraxisAssistantTurnController;
|
|
1715
1816
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisAssistantTurnOrchestratorService, never>;
|
|
1716
1817
|
static ɵprov: i0.ɵɵInjectableDeclaration<PraxisAssistantTurnOrchestratorService>;
|
|
@@ -1718,10 +1819,11 @@ declare class PraxisAssistantTurnOrchestratorService {
|
|
|
1718
1819
|
declare class PraxisAssistantTurnController {
|
|
1719
1820
|
private readonly flow;
|
|
1720
1821
|
private readonly options;
|
|
1822
|
+
private readonly runtimeObservationRegistry;
|
|
1721
1823
|
private readonly stateSubject;
|
|
1722
1824
|
readonly state$: Observable<PraxisAssistantTurnViewState>;
|
|
1723
1825
|
private activeFlowClientTurnId;
|
|
1724
|
-
constructor(flow: PraxisAssistantTurnFlow, options: PraxisAssistantTurnControllerOptions);
|
|
1826
|
+
constructor(flow: PraxisAssistantTurnFlow, options: PraxisAssistantTurnControllerOptions, runtimeObservationRegistry: PraxisRuntimeComponentObservationRegistryService | null);
|
|
1725
1827
|
snapshot(): PraxisAssistantTurnViewState;
|
|
1726
1828
|
setContextHints(hints: Record<string, unknown> | undefined): void;
|
|
1727
1829
|
setContextItems(items: readonly PraxisAssistantShellContextItem[]): void;
|
|
@@ -1739,7 +1841,10 @@ declare class PraxisAssistantTurnController {
|
|
|
1739
1841
|
retry(): Observable<PraxisAssistantTurnViewState>;
|
|
1740
1842
|
cancel(): Observable<PraxisAssistantTurnViewState>;
|
|
1741
1843
|
private runFlow;
|
|
1844
|
+
private invokeFlow;
|
|
1742
1845
|
private buildRequest;
|
|
1846
|
+
private collectRuntimeComponentObservations;
|
|
1847
|
+
private isPromiseLike;
|
|
1743
1848
|
private submitExistingUserMessage;
|
|
1744
1849
|
private findUserMessageIndex;
|
|
1745
1850
|
private resetReplayState;
|
|
@@ -2275,6 +2380,21 @@ interface QuickReplyContextChip {
|
|
|
2275
2380
|
value: string;
|
|
2276
2381
|
ariaLabel: string;
|
|
2277
2382
|
}
|
|
2383
|
+
type AssistantContentBlock = Readonly<Record<string, unknown>>;
|
|
2384
|
+
interface AssistantContentResourceField {
|
|
2385
|
+
name: string;
|
|
2386
|
+
label: string;
|
|
2387
|
+
description: string;
|
|
2388
|
+
}
|
|
2389
|
+
interface AssistantContentResource {
|
|
2390
|
+
id: string;
|
|
2391
|
+
label: string;
|
|
2392
|
+
description: string;
|
|
2393
|
+
role: string;
|
|
2394
|
+
resourcePath: string;
|
|
2395
|
+
fields: readonly AssistantContentResourceField[];
|
|
2396
|
+
evidence: readonly string[];
|
|
2397
|
+
}
|
|
2278
2398
|
declare class PraxisAiAssistantShellComponent implements OnChanges, OnDestroy {
|
|
2279
2399
|
labels: Partial<PraxisAssistantShellLabels> | null;
|
|
2280
2400
|
mode: PraxisAssistantShellMode;
|
|
@@ -2349,6 +2469,9 @@ declare class PraxisAiAssistantShellComponent implements OnChanges, OnDestroy {
|
|
|
2349
2469
|
private readonly submittedFeedbackObservationIds;
|
|
2350
2470
|
private voiceCaptureSequence;
|
|
2351
2471
|
private destroyed;
|
|
2472
|
+
private processingStartedAt;
|
|
2473
|
+
private processingElapsedSeconds;
|
|
2474
|
+
private processingTimer;
|
|
2352
2475
|
private readonly onWindowPointerMove;
|
|
2353
2476
|
private readonly onWindowPointerUp;
|
|
2354
2477
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -2373,10 +2496,25 @@ declare class PraxisAiAssistantShellComponent implements OnChanges, OnDestroy {
|
|
|
2373
2496
|
protected onAttachmentFilesSelected(event: Event): void;
|
|
2374
2497
|
protected onApply(): void;
|
|
2375
2498
|
protected renderMessageText(text: string | null | undefined): string;
|
|
2499
|
+
protected hasStructuredAssistantContent(message: PraxisAssistantShellMessage): boolean;
|
|
2500
|
+
protected getAssistantContentBlocks(message: PraxisAssistantShellMessage): readonly AssistantContentBlock[];
|
|
2501
|
+
protected getAssistantContentBlockType(block: AssistantContentBlock): string;
|
|
2502
|
+
protected getAssistantContentBlockTitle(block: AssistantContentBlock, fallback?: string): string;
|
|
2503
|
+
protected getAssistantContentBlockText(block: AssistantContentBlock): string;
|
|
2504
|
+
protected getAssistantContentResources(block: AssistantContentBlock): readonly AssistantContentResource[];
|
|
2505
|
+
protected getAssistantContentResourceFields(resource: Record<string, unknown>): readonly AssistantContentResourceField[];
|
|
2506
|
+
protected getAssistantContentResourceMeta(resource: AssistantContentResource): readonly string[];
|
|
2507
|
+
protected trackAssistantContentBlock(index: number, block: AssistantContentBlock): string;
|
|
2508
|
+
protected trackAssistantContentResource(index: number, resource: AssistantContentResource): string;
|
|
2509
|
+
protected trackAssistantContentField(index: number, field: AssistantContentResourceField): string;
|
|
2510
|
+
protected trackAssistantContentValue(_index: number, value: string): string;
|
|
2511
|
+
private isSupportedAssistantContentBlock;
|
|
2512
|
+
private getStringArray;
|
|
2376
2513
|
private renderInlineMarkdown;
|
|
2377
2514
|
private escapeHtml;
|
|
2378
2515
|
protected shouldShowStatusText(): boolean;
|
|
2379
2516
|
protected shouldShowErrorText(): boolean;
|
|
2517
|
+
protected getAuxiliaryStatusText(): string;
|
|
2380
2518
|
protected onShellAction(action: PraxisAssistantShellAction): void;
|
|
2381
2519
|
protected getPrimaryAction(): PraxisAssistantShellAction;
|
|
2382
2520
|
protected getSecondaryActions(): readonly PraxisAssistantShellAction[];
|
|
@@ -2385,6 +2523,9 @@ declare class PraxisAiAssistantShellComponent implements OnChanges, OnDestroy {
|
|
|
2385
2523
|
protected getShellActionTone(action: PraxisAssistantShellAction): string;
|
|
2386
2524
|
protected trackShellAction(_index: number, action: PraxisAssistantShellAction): string;
|
|
2387
2525
|
private hasRecoverableTurn;
|
|
2526
|
+
private updateProcessingTimer;
|
|
2527
|
+
private stopProcessingTimer;
|
|
2528
|
+
private getProcessingStatusText;
|
|
2388
2529
|
private shouldShowAuxiliaryText;
|
|
2389
2530
|
private normalizeMessageText;
|
|
2390
2531
|
private getDefaultPrimaryAction;
|
|
@@ -2399,6 +2540,7 @@ declare class PraxisAiAssistantShellComponent implements OnChanges, OnDestroy {
|
|
|
2399
2540
|
protected getRecommendedIntentTone(intent: PraxisAssistantRecommendedIntent): string;
|
|
2400
2541
|
protected getRecommendedIntentGroupLabel(intent: PraxisAssistantRecommendedIntent): string;
|
|
2401
2542
|
protected getQuickReplyAriaLabel(reply: PraxisAssistantShellQuickReply): string;
|
|
2543
|
+
protected getQuickReplyLabel(reply: PraxisAssistantShellQuickReply): string;
|
|
2402
2544
|
protected getQuickReplyTechnicalDetails(reply: PraxisAssistantShellQuickReply): string;
|
|
2403
2545
|
protected isRichQuickReply(reply: PraxisAssistantShellQuickReply): boolean;
|
|
2404
2546
|
protected shouldUseInlineQuickReplies(): boolean;
|
|
@@ -2414,9 +2556,12 @@ declare class PraxisAiAssistantShellComponent implements OnChanges, OnDestroy {
|
|
|
2414
2556
|
private asRecord;
|
|
2415
2557
|
private stringHint;
|
|
2416
2558
|
private quickReplyHint;
|
|
2559
|
+
private quickReplyPublicResourceLabel;
|
|
2560
|
+
private isPublicDisplayText;
|
|
2417
2561
|
private hasQuickReplyResourceContext;
|
|
2418
2562
|
private isFieldDiscoveryQuickReply;
|
|
2419
2563
|
protected isContextualPreviewActionQuickReply(reply: PraxisAssistantShellQuickReply): boolean;
|
|
2564
|
+
protected isSourceReviewQuickReply(reply: PraxisAssistantShellQuickReply): boolean;
|
|
2420
2565
|
protected isGuidedActionQuickReply(reply: PraxisAssistantShellQuickReply): boolean;
|
|
2421
2566
|
private quickReplyPresentation;
|
|
2422
2567
|
private quickReplyPresentationKind;
|
|
@@ -2425,8 +2570,12 @@ declare class PraxisAiAssistantShellComponent implements OnChanges, OnDestroy {
|
|
|
2425
2570
|
private isGenericContextualActionDescription;
|
|
2426
2571
|
private trimSentencePunctuation;
|
|
2427
2572
|
private shortPathLabel;
|
|
2573
|
+
private knownPublicResourceLabel;
|
|
2428
2574
|
private shortTechnicalLabel;
|
|
2575
|
+
private friendlyTechnicalLabel;
|
|
2576
|
+
private normalizePortugueseDisplayText;
|
|
2429
2577
|
protected getCloseIcon(): string;
|
|
2578
|
+
protected getContextItemValue(item: PraxisAssistantShellContextItem): string;
|
|
2430
2579
|
private normalizeShellAction;
|
|
2431
2580
|
protected onRemoveAttachment(attachment: PraxisAssistantShellAttachment): void;
|
|
2432
2581
|
protected onMessageAction(message: PraxisAssistantShellMessage, action: PraxisAssistantShellMessageAction): void;
|
|
@@ -2587,5 +2736,5 @@ declare class AiRuleWizardDialogComponent implements OnInit {
|
|
|
2587
2736
|
static ɵcmp: i0.ɵɵComponentDeclaration<AiRuleWizardDialogComponent, "praxis-ai-rule-wizard-dialog", never, {}, {}, never, never, true, never>;
|
|
2588
2737
|
}
|
|
2589
2738
|
|
|
2590
|
-
export { AI_BACKEND_CONFIG_STORE, AI_BACKEND_ENDPOINTS, AI_BACKEND_STORAGE_OPTIONS, AI_CONTRACT_SCHEMA_HASH, AI_CONTRACT_VERSION, AI_INTENT_CONTRACT_SCHEMA_HASH, AI_INTENT_CONTRACT_VERSION, AI_STREAM_EVENT_SCHEMA_VERSION, AI_STREAM_EVENT_TYPES, AiBackendApiService, AiPatchStreamConnectionError, AiResponseValidatorService, AiRuleWizardDialogComponent, BaseAiAdapter, PRAXIS_ASSISTANT_CONTEXT_ATTACHMENT_LIMIT, PRAXIS_ASSISTANT_CONTEXT_ITEM_LIMIT, PRAXIS_ASSISTANT_CONTEXT_SCHEMA_FIELD_LIMIT, PRAXIS_ASSISTANT_CONTEXT_TEXT_LIMIT, PRAXIS_ASSISTANT_VOICE_INPUT_MODE, PRAXIS_ASSISTANT_VOICE_LANGUAGE, PraxisAi, PraxisAiAssistantComponent, PraxisAiAssistantDockComponent, PraxisAiAssistantSessionHostComponent, PraxisAiAssistantShellComponent, PraxisAiService, PraxisAssistantSessionRegistryService, PraxisAssistantTurnController, PraxisAssistantTurnOrchestratorService, SchemaMinifierService, createComponentAuthoringContext, createPraxisAssistantViewportLayout, normalizeAuthoringPrompt, normalizePraxisAssistantAttachmentSummary, normalizePraxisAssistantContextSnapshot, sanitizePraxisAssistantText, shouldRoutePromptToGovernedDecision, submitPraxisAssistantQuickReply, toAiJsonObject, toPraxisAssistantClarificationOption, toPraxisAssistantConversationMessages };
|
|
2591
|
-
export type { AgenticAuthoringApplyRequestContract, AgenticAuthoringApplyResultContract, AgenticAuthoringAttachmentSummaryContract, AgenticAuthoringCandidateContract, AgenticAuthoringComponentCapabilitiesResultContract, AgenticAuthoringComponentCapabilityCatalogContract, AgenticAuthoringComponentCapabilityContract, AgenticAuthoringComponentCapabilityExampleContract, AgenticAuthoringComponentFieldAliasContract, AgenticAuthoringConversationContextContract, AgenticAuthoringConversationMessageContract, AgenticAuthoringIntentResolutionRequestContract, AgenticAuthoringIntentResolutionResultContract, AgenticAuthoringManifestCompileResult, AgenticAuthoringManifestCompileResultContract, AgenticAuthoringManifestEditPlanRequest, AgenticAuthoringManifestEditPlanRequestContract, AgenticAuthoringManifestValidationResult, AgenticAuthoringManifestValidationResultContract, AgenticAuthoringPendingClarificationContract, AgenticAuthoringPlanRequestContract, AgenticAuthoringPreviewResultContract, AgenticAuthoringQuickReplyContract, AgenticAuthoringResolveTargetRequest, AgenticAuthoringResolveTargetRequestContract, AgenticAuthoringResolvedTarget, AgenticAuthoringResolvedTargetContract, AgenticAuthoringResourceCandidatesRequestContract, AgenticAuthoringResourceCandidatesResultContract, AgenticAuthoringSemanticDecisionContract, AgenticAuthoringTurnStreamConnection, AgenticAuthoringTurnStreamEnvelope, AgenticAuthoringTurnStreamEnvelopeContract, AgenticAuthoringTurnStreamRequest, AgenticAuthoringTurnStreamRequestContract, AgenticAuthoringTurnStreamStartResponse, AgenticAuthoringTurnStreamStartResponseContract, AiAssistantObservationFeedbackRating, AiAssistantObservationFeedbackRatingValue, AiAssistantObservationFeedbackRequest, AiAssistantObservationFeedbackRequestContract, AiAssistantObservationFeedbackResponse, AiAssistantObservationFeedbackResponseContract, AiAssistantObservationResponseContract, AiAssistantObservationSummaryResponseContract, AiAssistantObservationSummaryRowContract, AiAuthoringResponseMode, AiAuthoringResponseModeKind, AiBackendConfigStore, AiBackendEndpoints, AiBackendStorageOptions, AiChatMessage, AiChatMessageContract, AiClarificationUiContract, AiComponentAuthoringContract, AiConfigAdapter, AiConsultativeAuthoringContext, AiContextDTO, AiContextHintsContract, AiContextTemplate, AiContextTemplateMeta, AiCurrentStateDigest, AiCurrentStateDigestContract, AiDomainCatalogContextHintContract, AiDomainCatalogContextHintIntent, AiDomainCatalogContextHintItemType, AiDomainCatalogRelationshipHintContract, AiExamplePair, AiGlobalConfigSnapshot, AiGovernedDecisionRoutingOptions, AiHeaderContext, AiIntegrationConfig, AiJsonArray, AiJsonObject, AiJsonPrimitive, AiJsonValue, AiMemoryInfoContract, AiModel, AiOptionContract, AiOrchestratorRequest, AiOrchestratorRequestContract, AiOrchestratorResponse, AiOrchestratorResponseContract, AiOrchestratorResponseType, AiPatchDiff, AiPatchDiffContract, AiPatchStreamCancelResponse, AiPatchStreamCancelResponseContract, AiPatchStreamConnection, AiPatchStreamConnectionErrorKind, AiPatchStreamEnvelope, AiPatchStreamEnvelopeContract, AiPatchStreamEventType, AiPatchStreamStartResponse, AiPatchStreamStartResponseContract, AiProviderCatalogItem, AiProviderCatalogResponse, AiProviderModelsRequest, AiProviderModelsResponse, AiProviderStatusResponse, AiProviderTestRequest, AiProviderTestResponse, AiResponseCompileResult, AiRuleResponse, AiSchemaContext, AiSchemaContextContract, AiSuggestion, AiSuggestionsRequest, AiSuggestionsResponse, AiTurnStreamEventType, AiUiContextRef, AiUiContextRefContract, AiValidationError, AiValidationResult, AiValidationWarning, AiWizardData, Capability, FieldSchemaLike, MinifiedField, PatchResult, PraxisAssistantActionContract, PraxisAssistantActionKind, PraxisAssistantAttachmentKind, PraxisAssistantAttachmentSummary, PraxisAssistantAuthoringManifestRef, PraxisAssistantCapabilityRef, PraxisAssistantClarificationOption, PraxisAssistantClarificationQuestion, PraxisAssistantClarificationQuestionType, PraxisAssistantComponentType, PraxisAssistantContextItem, PraxisAssistantContextMode, PraxisAssistantContextSessionDescriptor, PraxisAssistantContextSnapshot, PraxisAssistantConversationMessage, PraxisAssistantConversationMessageRole, PraxisAssistantDigest, PraxisAssistantDockTone, PraxisAssistantGovernanceHint, PraxisAssistantIdentity, PraxisAssistantOpenRequest, PraxisAssistantOpportunityCandidate, PraxisAssistantOpportunityCandidateStatus, PraxisAssistantOpportunityCatalog, PraxisAssistantOpportunityEvidence, PraxisAssistantOpportunityGroup, PraxisAssistantOpportunityMissingContext, PraxisAssistantOpportunitySafety, PraxisAssistantOpportunityTarget, PraxisAssistantOwnerType, PraxisAssistantPendingClarification, PraxisAssistantRecommendedIntent, PraxisAssistantRecommendedIntentAction, PraxisAssistantRecommendedIntentPresentation, PraxisAssistantRecommendedIntentTone, PraxisAssistantRiskLevel, PraxisAssistantSessionDescriptor, PraxisAssistantSessionIdentityRef, PraxisAssistantSessionPresence, PraxisAssistantSessionSnapshot, PraxisAssistantSessionVisibility, PraxisAssistantShellAction, PraxisAssistantShellActionTone, PraxisAssistantShellAttachment, PraxisAssistantShellContextItem, PraxisAssistantShellLabels, PraxisAssistantShellLayout, PraxisAssistantShellMessage, PraxisAssistantShellMessageAction, PraxisAssistantShellMessageRole, PraxisAssistantShellMode, PraxisAssistantShellQuickReply, PraxisAssistantShellQuickReplyEvidence, PraxisAssistantShellQuickReplyPresentation, PraxisAssistantShellQuickReplyPresentationItem, PraxisAssistantShellQuickReplyPresentationKind, PraxisAssistantShellState, PraxisAssistantTargetKind, PraxisAssistantTargetRef, PraxisAssistantTurnAction, PraxisAssistantTurnControllerOptions, PraxisAssistantTurnFlow, PraxisAssistantTurnPhase, PraxisAssistantTurnRequest, PraxisAssistantTurnResult, PraxisAssistantTurnViewState, PraxisAssistantViewportLayoutOptions, PraxisAssistantVoiceCaptureState, PraxisAssistantVoiceInputMode, ProblemResponseContract, PromptContext, RulePropertyDefinition, RulePropertySchema, RulePropertyType, ValidationContext, ValueKind };
|
|
2739
|
+
export { AI_BACKEND_CONFIG_STORE, AI_BACKEND_ENDPOINTS, AI_BACKEND_STORAGE_OPTIONS, AI_CONTRACT_SCHEMA_HASH, AI_CONTRACT_VERSION, AI_INTENT_CONTRACT_SCHEMA_HASH, AI_INTENT_CONTRACT_VERSION, AI_STREAM_EVENT_SCHEMA_VERSION, AI_STREAM_EVENT_TYPES, AgenticAuthoringTurnClientService, AiBackendApiService, AiPatchStreamConnectionError, AiResponseValidatorService, AiRuleWizardDialogComponent, BaseAiAdapter, PRAXIS_ASSISTANT_CONTEXT_ATTACHMENT_LIMIT, PRAXIS_ASSISTANT_CONTEXT_ITEM_LIMIT, PRAXIS_ASSISTANT_CONTEXT_SCHEMA_FIELD_LIMIT, PRAXIS_ASSISTANT_CONTEXT_TEXT_LIMIT, PRAXIS_ASSISTANT_VOICE_INPUT_MODE, PRAXIS_ASSISTANT_VOICE_LANGUAGE, PraxisAi, PraxisAiAssistantComponent, PraxisAiAssistantDockComponent, PraxisAiAssistantSessionHostComponent, PraxisAiAssistantShellComponent, PraxisAiService, PraxisAssistantSessionRegistryService, PraxisAssistantTurnController, PraxisAssistantTurnOrchestratorService, SchemaMinifierService, createComponentAuthoringContext, createPraxisAssistantViewportLayout, normalizeAuthoringPrompt, normalizePraxisAssistantAttachmentSummary, normalizePraxisAssistantContextSnapshot, sanitizePraxisAssistantText, shouldRoutePromptToGovernedDecision, submitPraxisAssistantQuickReply, toAiJsonObject, toPraxisAssistantClarificationOption, toPraxisAssistantConversationMessages };
|
|
2740
|
+
export type { AgenticAuthoringApplyRequestContract, AgenticAuthoringApplyResultContract, AgenticAuthoringAttachmentSummaryContract, AgenticAuthoringCandidateContract, AgenticAuthoringComponentCapabilitiesResultContract, AgenticAuthoringComponentCapabilityCatalogContract, AgenticAuthoringComponentCapabilityContract, AgenticAuthoringComponentCapabilityExampleContract, AgenticAuthoringComponentFieldAliasContract, AgenticAuthoringConversationContextContract, AgenticAuthoringConversationMessageContract, AgenticAuthoringIntentResolutionRequestContract, AgenticAuthoringIntentResolutionResultContract, AgenticAuthoringManifestCompileResult, AgenticAuthoringManifestCompileResultContract, AgenticAuthoringManifestEditPlanRequest, AgenticAuthoringManifestEditPlanRequestContract, AgenticAuthoringManifestValidationResult, AgenticAuthoringManifestValidationResultContract, AgenticAuthoringPendingClarificationContract, AgenticAuthoringPlanRequestContract, AgenticAuthoringPreviewResultContract, AgenticAuthoringQuickReplyContract, AgenticAuthoringResolveTargetRequest, AgenticAuthoringResolveTargetRequestContract, AgenticAuthoringResolvedTarget, AgenticAuthoringResolvedTargetContract, AgenticAuthoringResourceCandidatesRequestContract, AgenticAuthoringResourceCandidatesResultContract, AgenticAuthoringSemanticDecisionContract, AgenticAuthoringTurnClientEvent, AgenticAuthoringTurnClientOptions, AgenticAuthoringTurnLifecycleEvent, AgenticAuthoringTurnStreamConnection, AgenticAuthoringTurnStreamConnectionOptions, AgenticAuthoringTurnStreamEnvelope, AgenticAuthoringTurnStreamEnvelopeContract, AgenticAuthoringTurnStreamEnvelopeEvent, AgenticAuthoringTurnStreamLifecycle, AgenticAuthoringTurnStreamRequest, AgenticAuthoringTurnStreamRequestContract, AgenticAuthoringTurnStreamStartOptions, AgenticAuthoringTurnStreamStartResponse, AgenticAuthoringTurnStreamStartResponseContract, AgenticAuthoringTurnStreamStartedEvent, AiAssistantObservationFeedbackRating, AiAssistantObservationFeedbackRatingValue, AiAssistantObservationFeedbackRequest, AiAssistantObservationFeedbackRequestContract, AiAssistantObservationFeedbackResponse, AiAssistantObservationFeedbackResponseContract, AiAssistantObservationResponseContract, AiAssistantObservationSummaryResponseContract, AiAssistantObservationSummaryRowContract, AiAuthoringResponseMode, AiAuthoringResponseModeKind, AiBackendConfigStore, AiBackendEndpoints, AiBackendStorageOptions, AiChatMessage, AiChatMessageContract, AiClarificationUiContract, AiComponentAuthoringContract, AiConfigAdapter, AiConsultativeAuthoringContext, AiContextDTO, AiContextHintsContract, AiContextTemplate, AiContextTemplateMeta, AiCurrentStateDigest, AiCurrentStateDigestContract, AiDomainCatalogContextHintContract, AiDomainCatalogContextHintIntent, AiDomainCatalogContextHintItemType, AiDomainCatalogRelationshipHintContract, AiExamplePair, AiGlobalConfigSnapshot, AiGovernedDecisionRoutingOptions, AiHeaderContext, AiIntegrationConfig, AiJsonArray, AiJsonObject, AiJsonPrimitive, AiJsonValue, AiMemoryInfoContract, AiModel, AiOptionContract, AiOrchestratorRequest, AiOrchestratorRequestContract, AiOrchestratorResponse, AiOrchestratorResponseContract, AiOrchestratorResponseType, AiPatchDiff, AiPatchDiffContract, AiPatchStreamCancelResponse, AiPatchStreamCancelResponseContract, AiPatchStreamConnection, AiPatchStreamConnectionErrorKind, AiPatchStreamEnvelope, AiPatchStreamEnvelopeContract, AiPatchStreamEventType, AiPatchStreamStartResponse, AiPatchStreamStartResponseContract, AiProviderCatalogItem, AiProviderCatalogResponse, AiProviderModelsRequest, AiProviderModelsResponse, AiProviderStatusResponse, AiProviderTestRequest, AiProviderTestResponse, AiResponseCompileResult, AiRuleResponse, AiSchemaContext, AiSchemaContextContract, AiSuggestion, AiSuggestionsRequest, AiSuggestionsResponse, AiTurnStreamEventType, AiUiContextRef, AiUiContextRefContract, AiValidationError, AiValidationResult, AiValidationWarning, AiWizardData, Capability, FieldSchemaLike, MinifiedField, PatchResult, PraxisAssistantActionContract, PraxisAssistantActionKind, PraxisAssistantAttachmentKind, PraxisAssistantAttachmentSummary, PraxisAssistantAuthoringManifestRef, PraxisAssistantCapabilityRef, PraxisAssistantClarificationOption, PraxisAssistantClarificationQuestion, PraxisAssistantClarificationQuestionType, PraxisAssistantComponentType, PraxisAssistantContextItem, PraxisAssistantContextMode, PraxisAssistantContextSessionDescriptor, PraxisAssistantContextSnapshot, PraxisAssistantConversationMessage, PraxisAssistantConversationMessageRole, PraxisAssistantDigest, PraxisAssistantDockTone, PraxisAssistantGovernanceHint, PraxisAssistantIdentity, PraxisAssistantOpenRequest, PraxisAssistantOpportunityCandidate, PraxisAssistantOpportunityCandidateStatus, PraxisAssistantOpportunityCatalog, PraxisAssistantOpportunityEvidence, PraxisAssistantOpportunityGroup, PraxisAssistantOpportunityMissingContext, PraxisAssistantOpportunitySafety, PraxisAssistantOpportunityTarget, PraxisAssistantOwnerType, PraxisAssistantPendingClarification, PraxisAssistantRecommendedIntent, PraxisAssistantRecommendedIntentAction, PraxisAssistantRecommendedIntentPresentation, PraxisAssistantRecommendedIntentTone, PraxisAssistantRiskLevel, PraxisAssistantSessionDescriptor, PraxisAssistantSessionIdentityRef, PraxisAssistantSessionPresence, PraxisAssistantSessionSnapshot, PraxisAssistantSessionVisibility, PraxisAssistantShellAction, PraxisAssistantShellActionTone, PraxisAssistantShellAttachment, PraxisAssistantShellContextItem, PraxisAssistantShellLabels, PraxisAssistantShellLayout, PraxisAssistantShellMessage, PraxisAssistantShellMessageAction, PraxisAssistantShellMessageRole, PraxisAssistantShellMode, PraxisAssistantShellQuickReply, PraxisAssistantShellQuickReplyEvidence, PraxisAssistantShellQuickReplyPresentation, PraxisAssistantShellQuickReplyPresentationItem, PraxisAssistantShellQuickReplyPresentationKind, PraxisAssistantShellState, PraxisAssistantTargetKind, PraxisAssistantTargetRef, PraxisAssistantTurnAction, PraxisAssistantTurnControllerOptions, PraxisAssistantTurnFlow, PraxisAssistantTurnPhase, PraxisAssistantTurnRequest, PraxisAssistantTurnResult, PraxisAssistantTurnViewState, PraxisAssistantViewportLayoutOptions, PraxisAssistantVoiceCaptureState, PraxisAssistantVoiceInputMode, ProblemResponseContract, PromptContext, RulePropertyDefinition, RulePropertySchema, RulePropertyType, ValidationContext, ValueKind };
|