@praxisui/ai 9.0.0-beta.7 → 9.0.0-beta.71
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 +3 -1
- package/ai/component-registry.json +11 -0
- package/fesm2022/praxisui-ai.mjs +156 -60
- package/package.json +7 -3
- package/types/praxisui-ai.d.ts +31 -7
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ Peer dependencies:
|
|
|
34
34
|
- `@angular/forms` `^21.0.0`
|
|
35
35
|
- `@angular/material` `^21.0.0`
|
|
36
36
|
- `@google/generative-ai` `^0.24.1`
|
|
37
|
-
- `@praxisui/core` `^9.0.0-beta.
|
|
37
|
+
- `@praxisui/core` `^9.0.0-beta.12`
|
|
38
38
|
- `rxjs` `~7.8.0`
|
|
39
39
|
|
|
40
40
|
## When to use
|
|
@@ -138,6 +138,8 @@ When a component exposes factual grounding for consultative answers, include a `
|
|
|
138
138
|
|
|
139
139
|
Use `createComponentAuthoringContext(...)` from `@praxisui/ai` when returning the adapter context. The helper normalizes the contract into a JSON-safe object, drops `undefined` fields and rejects non-JSON values before they leak into `contextHints`.
|
|
140
140
|
|
|
141
|
+
Specialized component-authoring flows should also apply `withAuthoringScopePolicy(...)` or `withAuthoringScopePolicyContextHints(...)` before calling the backend turn resolver. These helpers do not classify prompts locally. They add a shared semantic policy that tells the backend/LLM to return `info` with no patch for loose instructions, greetings, meta-prompts or other turns outside the active component authoring context, while still allowing consultative answers and governed component edits when the semantic intent fits the declared contracts.
|
|
142
|
+
|
|
141
143
|
The shell ships with centralized PT-BR default labels and accepts the `labels` input for a flow-specific override. The override is partial: omitted labels continue to come from the shared defaults.
|
|
142
144
|
|
|
143
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`.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"generatedAt": "2026-07-11T00:12:06.404Z",
|
|
4
|
+
"packageName": "@praxisui/ai",
|
|
5
|
+
"packageVersion": "9.0.0-beta.71",
|
|
6
|
+
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
|
+
"sourceRegistryVersion": "1.0.0",
|
|
8
|
+
"componentCount": 0,
|
|
9
|
+
"components": {},
|
|
10
|
+
"note": "Package-scoped Praxis component registry for source-free agent discovery. Use the canonical ingestion registry for cross-package aggregate analysis."
|
|
11
|
+
}
|
package/fesm2022/praxisui-ai.mjs
CHANGED
|
@@ -403,7 +403,7 @@ 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 = '66579be4b7637d3c8579e299388e45b89a17e164e72886f0895e98be5fa83c16';
|
|
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
409
|
const AI_STREAM_EVENT_TYPES = ['status', 'thought.step', 'heartbeat', 'intent.resolved', 'result', 'error', 'cancelled'];
|
|
@@ -497,6 +497,73 @@ class BaseAiAdapter {
|
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
|
|
500
|
+
const PRAXIS_AUTHORING_SCOPE_POLICY_KIND = 'praxis.authoring-scope-policy.v1';
|
|
501
|
+
const PRAXIS_AUTHORING_SCOPE_POLICY_VERSION = '1.0';
|
|
502
|
+
function createAuthoringScopePolicyContext(options = {}) {
|
|
503
|
+
const componentId = normalizeText(options.componentId);
|
|
504
|
+
const componentType = normalizeText(options.componentType);
|
|
505
|
+
const componentLabel = normalizeText(options.componentLabel);
|
|
506
|
+
return {
|
|
507
|
+
kind: PRAXIS_AUTHORING_SCOPE_POLICY_KIND,
|
|
508
|
+
version: PRAXIS_AUTHORING_SCOPE_POLICY_VERSION,
|
|
509
|
+
scope: 'component-authoring-assistant',
|
|
510
|
+
componentId,
|
|
511
|
+
componentType,
|
|
512
|
+
componentLabel,
|
|
513
|
+
intentResolution: 'semantic-contract-first',
|
|
514
|
+
outOfScopeResponseType: 'info',
|
|
515
|
+
patchRequiresExecutableAuthoringIntent: true,
|
|
516
|
+
clarificationRequiresComponentAuthoringAmbiguity: true,
|
|
517
|
+
localKeywordRoutingAllowed: false,
|
|
518
|
+
friendlyFallback: {
|
|
519
|
+
tone: 'helpful',
|
|
520
|
+
includePraxisContext: true,
|
|
521
|
+
noPatch: true,
|
|
522
|
+
},
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
function createAuthoringScopePolicySystemMessage(options = {}) {
|
|
526
|
+
const componentLabel = normalizeText(options.componentLabel)
|
|
527
|
+
|| normalizeText(options.componentType)
|
|
528
|
+
|| 'current component';
|
|
529
|
+
return {
|
|
530
|
+
role: 'system',
|
|
531
|
+
content: [
|
|
532
|
+
'Praxis component authoring scope policy:',
|
|
533
|
+
'- Resolve the user intent semantically using the declared Praxis contracts, current component context, conversation, capabilities, and grounding evidence. Do not classify intent by keyword matching.',
|
|
534
|
+
`- The active assistant is scoped to the ${componentLabel}. Return a patch only when the user semantically asks to create, change, configure, apply, open, export, filter, format, or otherwise materialize an executable operation for this component or a declared governed handoff.`,
|
|
535
|
+
'- If the prompt is a loose instruction, meta-prompt, greeting, small talk, or asks for a response that is not about the active Praxis authoring context, return type "info", canApply false, no patch, no componentEditPlan, and no runtime operation.',
|
|
536
|
+
'- For those out-of-scope prompts, answer in the user language with a concise friendly message that acknowledges the request and explains that this Praxis assistant can help inspect, explain, or safely change the current component.',
|
|
537
|
+
'- If the user asks an answerable factual question about the current component, return type "info" grounded in the declared context instead of inventing an edit plan.',
|
|
538
|
+
'- Ask a clarification only when there is a real component-authoring ambiguity that blocks a safe semantic decision.',
|
|
539
|
+
].join('\n'),
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
function withAuthoringScopePolicy(request, options = {}) {
|
|
543
|
+
return {
|
|
544
|
+
...request,
|
|
545
|
+
messages: withAuthoringScopePolicyMessage(request.messages ?? [], options),
|
|
546
|
+
contextHints: withAuthoringScopePolicyContextHints(request.contextHints, options),
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
function withAuthoringScopePolicyMessage(messages, options = {}) {
|
|
550
|
+
const policy = createAuthoringScopePolicySystemMessage(options);
|
|
551
|
+
const existing = messages ?? [];
|
|
552
|
+
const hasPolicy = existing.some((message) => message.role === 'system' && message.content.includes('Praxis component authoring scope policy:'));
|
|
553
|
+
return hasPolicy ? [...existing] : [policy, ...existing];
|
|
554
|
+
}
|
|
555
|
+
function withAuthoringScopePolicyContextHints(contextHints, options = {}) {
|
|
556
|
+
const existing = contextHints ?? {};
|
|
557
|
+
return {
|
|
558
|
+
...existing,
|
|
559
|
+
authoringScopePolicy: createAuthoringScopePolicyContext(options),
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
function normalizeText(value) {
|
|
563
|
+
const normalized = value?.trim();
|
|
564
|
+
return normalized ? normalized : null;
|
|
565
|
+
}
|
|
566
|
+
|
|
500
567
|
/**
|
|
501
568
|
* @deprecated Component assistants must not infer governed authoring from user
|
|
502
569
|
* wording. Route through the backend semantic resolver and use this only for
|
|
@@ -1962,7 +2029,19 @@ class AgenticAuthoringTurnClientService {
|
|
|
1962
2029
|
if (phase.startsWith('preview.')) {
|
|
1963
2030
|
return 'preview';
|
|
1964
2031
|
}
|
|
2032
|
+
if (phase === 'tool.plan'
|
|
2033
|
+
|| phase === 'tool.plan.skipped'
|
|
2034
|
+
|| phase === 'tool.start'
|
|
2035
|
+
|| phase === 'tool.result'
|
|
2036
|
+
|| phase === 'tool.error'
|
|
2037
|
+
|| phase === 'authoringEvidence.retrieve'
|
|
2038
|
+
|| phase === 'authoringEvidence.result'
|
|
2039
|
+
|| phase === 'authoringEvidence.error') {
|
|
2040
|
+
return 'plan';
|
|
2041
|
+
}
|
|
1965
2042
|
if (phase === 'intent.resolve'
|
|
2043
|
+
|| phase === 'intent.resolve.llm'
|
|
2044
|
+
|| phase === 'intent.resolve.grounding'
|
|
1966
2045
|
|| phase === 'resource.discovery'
|
|
1967
2046
|
|| phase === 'projectKnowledge.retrieve'
|
|
1968
2047
|
|| phase === 'context.bundle') {
|
|
@@ -1971,9 +2050,10 @@ class AgenticAuthoringTurnClientService {
|
|
|
1971
2050
|
return 'contextualize';
|
|
1972
2051
|
}
|
|
1973
2052
|
statusForPayload(payload) {
|
|
1974
|
-
return this.
|
|
1975
|
-
|| this.
|
|
1976
|
-
|| this.
|
|
2053
|
+
return this.readDisplayString(payload, 'statusText')
|
|
2054
|
+
|| this.readDisplayString(payload, 'message')
|
|
2055
|
+
|| this.readDisplayString(payload, 'label')
|
|
2056
|
+
|| this.readDisplayString(payload, 'summary')
|
|
1977
2057
|
|| '';
|
|
1978
2058
|
}
|
|
1979
2059
|
resultDiagnostics(payload, event) {
|
|
@@ -2143,6 +2223,14 @@ class AgenticAuthoringTurnClientService {
|
|
|
2143
2223
|
const candidate = value?.[key];
|
|
2144
2224
|
return typeof candidate === 'string' ? candidate.trim() : '';
|
|
2145
2225
|
}
|
|
2226
|
+
readDisplayString(value, key) {
|
|
2227
|
+
const candidate = this.readString(value, key);
|
|
2228
|
+
return this.isRedactedDisplayText(candidate) ? '' : candidate;
|
|
2229
|
+
}
|
|
2230
|
+
isRedactedDisplayText(value) {
|
|
2231
|
+
const normalized = value.trim().toLowerCase();
|
|
2232
|
+
return normalized === '[redacted]' || normalized === 'redacted';
|
|
2233
|
+
}
|
|
2146
2234
|
toJsonObject(value) {
|
|
2147
2235
|
return this.isRecord(value) ? value : null;
|
|
2148
2236
|
}
|
|
@@ -2556,7 +2644,9 @@ class AiResponseValidatorService {
|
|
|
2556
2644
|
case 'enum':
|
|
2557
2645
|
return schema.enumValues?.some(e => e.value === value) || false;
|
|
2558
2646
|
case 'object':
|
|
2559
|
-
return typeof value === 'object' && value !== null;
|
|
2647
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
2648
|
+
case 'array':
|
|
2649
|
+
return Array.isArray(value);
|
|
2560
2650
|
default:
|
|
2561
2651
|
return true;
|
|
2562
2652
|
}
|
|
@@ -5173,13 +5263,6 @@ class PraxisAiAssistantComponent {
|
|
|
5173
5263
|
await this.submitPrompt(base || selected);
|
|
5174
5264
|
return;
|
|
5175
5265
|
}
|
|
5176
|
-
const maskHints = this.buildMaskSelectionHints(selected, base);
|
|
5177
|
-
if (maskHints) {
|
|
5178
|
-
this.activeContextHints = this.mergeContextHints(this.activeContextHints, maskHints);
|
|
5179
|
-
this.skipClarificationAppend = true;
|
|
5180
|
-
await this.submitPrompt(base || selected);
|
|
5181
|
-
return;
|
|
5182
|
-
}
|
|
5183
5266
|
await this.submitPrompt(selected);
|
|
5184
5267
|
}
|
|
5185
5268
|
async confirmPatch() {
|
|
@@ -5948,7 +6031,7 @@ class PraxisAiAssistantComponent {
|
|
|
5948
6031
|
return null;
|
|
5949
6032
|
}
|
|
5950
6033
|
if (event.type === 'thought.step') {
|
|
5951
|
-
const step = Number(payload?.['step']);
|
|
6034
|
+
const step = Number(payload?.['step']) || this.resolveStreamStepFromPhase(typeof payload?.['phase'] === 'string' ? payload['phase'] : '');
|
|
5952
6035
|
const stepStateRaw = typeof payload?.['state'] === 'string' ? payload['state'].trim().toLowerCase() : '';
|
|
5953
6036
|
const stepState = stepStateRaw === 'done'
|
|
5954
6037
|
? 'done'
|
|
@@ -6074,6 +6157,10 @@ class PraxisAiAssistantComponent {
|
|
|
6074
6157
|
if (typeof summary === 'string' && summary.trim()) {
|
|
6075
6158
|
return summary.trim();
|
|
6076
6159
|
}
|
|
6160
|
+
const label = payload['label'];
|
|
6161
|
+
if (typeof label === 'string' && label.trim()) {
|
|
6162
|
+
return label.trim();
|
|
6163
|
+
}
|
|
6077
6164
|
const nested = this.asRecord(payload['error']);
|
|
6078
6165
|
const nestedMsg = nested?.['message'];
|
|
6079
6166
|
if (typeof nestedMsg === 'string' && nestedMsg.trim()) {
|
|
@@ -6081,6 +6168,38 @@ class PraxisAiAssistantComponent {
|
|
|
6081
6168
|
}
|
|
6082
6169
|
return '';
|
|
6083
6170
|
}
|
|
6171
|
+
resolveStreamStepFromPhase(phase) {
|
|
6172
|
+
const normalized = (phase || '').trim();
|
|
6173
|
+
if (!normalized)
|
|
6174
|
+
return 0;
|
|
6175
|
+
if (normalized === 'context.bundle'
|
|
6176
|
+
|| normalized === 'runtime.context.grounding'
|
|
6177
|
+
|| normalized === 'intent.resolve'
|
|
6178
|
+
|| normalized === 'intent.resolve.llm'
|
|
6179
|
+
|| normalized === 'intent.resolve.grounding'
|
|
6180
|
+
|| normalized === 'resource.discovery'
|
|
6181
|
+
|| normalized === 'projectKnowledge.retrieve') {
|
|
6182
|
+
return 1;
|
|
6183
|
+
}
|
|
6184
|
+
if (normalized === 'tool.plan'
|
|
6185
|
+
|| normalized === 'tool.plan.skipped'
|
|
6186
|
+
|| normalized === 'tool.start'
|
|
6187
|
+
|| normalized === 'tool.result'
|
|
6188
|
+
|| normalized === 'tool.error'
|
|
6189
|
+
|| normalized === 'authoringEvidence.retrieve'
|
|
6190
|
+
|| normalized === 'authoringEvidence.result'
|
|
6191
|
+
|| normalized === 'authoringEvidence.error') {
|
|
6192
|
+
return 2;
|
|
6193
|
+
}
|
|
6194
|
+
if (normalized === 'preview.plan'
|
|
6195
|
+
|| normalized === 'preview.compile'
|
|
6196
|
+
|| normalized === 'preview.validate'
|
|
6197
|
+
|| normalized === 'repair.attempt'
|
|
6198
|
+
|| normalized === 'tool.loop') {
|
|
6199
|
+
return 3;
|
|
6200
|
+
}
|
|
6201
|
+
return 0;
|
|
6202
|
+
}
|
|
6084
6203
|
requestStreamCancel() {
|
|
6085
6204
|
if (!this.activeStreamId) {
|
|
6086
6205
|
return;
|
|
@@ -7137,43 +7256,6 @@ class PraxisAiAssistantComponent {
|
|
|
7137
7256
|
}
|
|
7138
7257
|
return option;
|
|
7139
7258
|
}
|
|
7140
|
-
buildMaskSelectionHints(optionText, basePrompt) {
|
|
7141
|
-
const mask = this.extractMaskFromText(optionText);
|
|
7142
|
-
if (!mask)
|
|
7143
|
-
return null;
|
|
7144
|
-
const configRoot = this.resolveConfigRoot(this.adapter?.getCurrentConfig?.());
|
|
7145
|
-
const columns = this.extractColumnNames(configRoot);
|
|
7146
|
-
let targetField = basePrompt ? this.findColumnInPrompt(basePrompt, columns) : null;
|
|
7147
|
-
if (!targetField) {
|
|
7148
|
-
targetField = this.findColumnInPrompt(optionText, columns);
|
|
7149
|
-
}
|
|
7150
|
-
if (!targetField && columns.length) {
|
|
7151
|
-
const lowered = `${basePrompt} ${optionText}`.toLowerCase();
|
|
7152
|
-
if (lowered.includes('cpf') && columns.includes('cpf'))
|
|
7153
|
-
targetField = 'cpf';
|
|
7154
|
-
if (lowered.includes('cnpj') && columns.includes('cnpj'))
|
|
7155
|
-
targetField = 'cnpj';
|
|
7156
|
-
if (lowered.includes('cep') && columns.includes('cep'))
|
|
7157
|
-
targetField = 'cep';
|
|
7158
|
-
}
|
|
7159
|
-
const hints = {
|
|
7160
|
-
optionSelected: {
|
|
7161
|
-
selection: { value: mask, mode: 'mask' },
|
|
7162
|
-
},
|
|
7163
|
-
};
|
|
7164
|
-
if (targetField) {
|
|
7165
|
-
const optionSelected = this.asRecord(hints['optionSelected']);
|
|
7166
|
-
if (optionSelected) {
|
|
7167
|
-
optionSelected['targetField'] = targetField;
|
|
7168
|
-
}
|
|
7169
|
-
}
|
|
7170
|
-
return this.toClarificationContextHints(hints) ?? null;
|
|
7171
|
-
}
|
|
7172
|
-
extractMaskFromText(text) {
|
|
7173
|
-
const pattern = /(0{3}\.0{3}\.0{3}-0{2}|0{2}\.0{3}\.0{3}\/0{4}-0{2}|0{5}-0{3}|\(0{2}\)\s*0{4,5}-0{4}|0{8,14})/;
|
|
7174
|
-
const match = text.match(pattern);
|
|
7175
|
-
return match ? match[1] : null;
|
|
7176
|
-
}
|
|
7177
7259
|
resolveComponentId() {
|
|
7178
7260
|
if (this.adapter.componentId)
|
|
7179
7261
|
return this.adapter.componentId;
|
|
@@ -8221,9 +8303,7 @@ class PraxisAiAssistantShellComponent {
|
|
|
8221
8303
|
if (this.state === 'processing' || this.state === 'applying') {
|
|
8222
8304
|
return true;
|
|
8223
8305
|
}
|
|
8224
|
-
return this.
|
|
8225
|
-
|| this.state === 'clarification'
|
|
8226
|
-
|| this.state === 'review';
|
|
8306
|
+
return this.state === 'clarification';
|
|
8227
8307
|
}
|
|
8228
8308
|
updateProcessingTimer() {
|
|
8229
8309
|
if (this.state !== 'processing') {
|
|
@@ -8258,6 +8338,9 @@ class PraxisAiAssistantShellComponent {
|
|
|
8258
8338
|
getProcessingStatusText() {
|
|
8259
8339
|
if (this.state !== 'processing')
|
|
8260
8340
|
return '';
|
|
8341
|
+
if (this.statusText.trim()) {
|
|
8342
|
+
return this.statusText;
|
|
8343
|
+
}
|
|
8261
8344
|
if (this.processingElapsedSeconds >= 30) {
|
|
8262
8345
|
return 'Ainda preparando a resposta. Você pode cancelar e tentar novamente se precisar.';
|
|
8263
8346
|
}
|
|
@@ -8499,6 +8582,7 @@ class PraxisAiAssistantShellComponent {
|
|
|
8499
8582
|
return evidence
|
|
8500
8583
|
.filter((item) => !!item.value?.trim())
|
|
8501
8584
|
.map((item) => this.presentationEvidenceToChip(item))
|
|
8585
|
+
.filter((item) => !!item)
|
|
8502
8586
|
.slice(0, 4);
|
|
8503
8587
|
}
|
|
8504
8588
|
if (this.isContextualPreviewActionQuickReply(reply)) {
|
|
@@ -8833,10 +8917,16 @@ class PraxisAiAssistantShellComponent {
|
|
|
8833
8917
|
}
|
|
8834
8918
|
presentationEvidenceToChip(item) {
|
|
8835
8919
|
const value = item.value.trim();
|
|
8920
|
+
if (!this.isPublicDisplayText(value)) {
|
|
8921
|
+
return null;
|
|
8922
|
+
}
|
|
8923
|
+
const ariaLabel = item.ariaLabel?.trim() || value;
|
|
8836
8924
|
return {
|
|
8837
8925
|
icon: item.icon?.trim() || 'verified',
|
|
8838
8926
|
value: this.friendlyTechnicalLabel(value),
|
|
8839
|
-
ariaLabel: this.
|
|
8927
|
+
ariaLabel: this.isPublicDisplayText(ariaLabel)
|
|
8928
|
+
? this.friendlyTechnicalLabel(ariaLabel)
|
|
8929
|
+
: this.friendlyTechnicalLabel(value),
|
|
8840
8930
|
};
|
|
8841
8931
|
}
|
|
8842
8932
|
getContextualActionChips(reply) {
|
|
@@ -8845,11 +8935,13 @@ class PraxisAiAssistantShellComponent {
|
|
|
8845
8935
|
if (!details)
|
|
8846
8936
|
return [];
|
|
8847
8937
|
const chips = [];
|
|
8848
|
-
const targetComponentId =
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
const
|
|
8938
|
+
const targetComponentId = [
|
|
8939
|
+
this.quickReplyHint(details, hints, 'targetComponentId'),
|
|
8940
|
+
this.quickReplyHint(details, hints, 'selectedComponentId'),
|
|
8941
|
+
].find((value) => this.isPublicDisplayText(value)) ?? '';
|
|
8942
|
+
const changeKind = this.publicQuickReplyHint(details, hints, 'changeKind');
|
|
8943
|
+
const capabilityId = this.publicQuickReplyHint(details, hints, 'capabilityId');
|
|
8944
|
+
const selectedWidgetKey = this.publicQuickReplyHint(details, hints, 'selectedWidgetKey');
|
|
8853
8945
|
if (targetComponentId) {
|
|
8854
8946
|
chips.push({
|
|
8855
8947
|
icon: 'widgets',
|
|
@@ -8880,6 +8972,10 @@ class PraxisAiAssistantShellComponent {
|
|
|
8880
8972
|
}
|
|
8881
8973
|
return chips.slice(0, 3);
|
|
8882
8974
|
}
|
|
8975
|
+
publicQuickReplyHint(details, hints, key) {
|
|
8976
|
+
const value = this.quickReplyHint(details, hints, key);
|
|
8977
|
+
return this.isPublicDisplayText(value) ? value : '';
|
|
8978
|
+
}
|
|
8883
8979
|
isGenericContextualActionDescription(value) {
|
|
8884
8980
|
const normalized = value
|
|
8885
8981
|
.normalize('NFD')
|
|
@@ -10645,4 +10741,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
10645
10741
|
* Generated bundle index. Do not edit.
|
|
10646
10742
|
*/
|
|
10647
10743
|
|
|
10648
|
-
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 };
|
|
10744
|
+
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, PRAXIS_AUTHORING_SCOPE_POLICY_KIND, PRAXIS_AUTHORING_SCOPE_POLICY_VERSION, PraxisAi, PraxisAiAssistantComponent, PraxisAiAssistantDockComponent, PraxisAiAssistantSessionHostComponent, PraxisAiAssistantShellComponent, PraxisAiService, PraxisAssistantSessionRegistryService, PraxisAssistantTurnController, PraxisAssistantTurnOrchestratorService, SchemaMinifierService, createAuthoringScopePolicyContext, createAuthoringScopePolicySystemMessage, createComponentAuthoringContext, createPraxisAssistantViewportLayout, normalizeAuthoringPrompt, normalizePraxisAssistantAttachmentSummary, normalizePraxisAssistantContextSnapshot, sanitizePraxisAssistantText, shouldRoutePromptToGovernedDecision, submitPraxisAssistantQuickReply, toAiJsonObject, toPraxisAssistantClarificationOption, toPraxisAssistantConversationMessages, withAuthoringScopePolicy, withAuthoringScopePolicyContextHints, withAuthoringScopePolicyMessage };
|
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.71",
|
|
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.71",
|
|
9
9
|
"@angular/cdk": "^21.0.0",
|
|
10
10
|
"@angular/forms": "^21.0.0",
|
|
11
11
|
"@angular/material": "^21.0.0",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"keywords": [
|
|
24
24
|
"angular",
|
|
25
25
|
"praxisui",
|
|
26
|
+
"praxis",
|
|
26
27
|
"ai",
|
|
27
28
|
"assistant",
|
|
28
29
|
"llm",
|
|
@@ -39,7 +40,10 @@
|
|
|
39
40
|
".": {
|
|
40
41
|
"types": "./types/praxisui-ai.d.ts",
|
|
41
42
|
"default": "./fesm2022/praxisui-ai.mjs"
|
|
43
|
+
},
|
|
44
|
+
"./ai/component-registry.json": {
|
|
45
|
+
"default": "./ai/component-registry.json"
|
|
42
46
|
}
|
|
43
47
|
},
|
|
44
48
|
"type": "module"
|
|
45
|
-
}
|
|
49
|
+
}
|
package/types/praxisui-ai.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ 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: "66579be4b7637d3c8579e299388e45b89a17e164e72886f0895e98be5fa83c16";
|
|
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
25
|
declare const AI_STREAM_EVENT_TYPES: readonly ["status", "thought.step", "heartbeat", "intent.resolved", "result", "error", "cancelled"];
|
|
@@ -292,6 +292,7 @@ interface AgenticAuthoringSemanticSelectedResourceContract {
|
|
|
292
292
|
schemaUrl?: string | null;
|
|
293
293
|
submitUrl?: string | null;
|
|
294
294
|
submitMethod?: string | null;
|
|
295
|
+
label?: string | null;
|
|
295
296
|
[key: string]: AiJsonValue | undefined;
|
|
296
297
|
}
|
|
297
298
|
interface AgenticAuthoringSemanticRetrievalEvidenceContract {
|
|
@@ -716,7 +717,7 @@ interface Capability {
|
|
|
716
717
|
example?: string;
|
|
717
718
|
safetyNotes?: string;
|
|
718
719
|
}
|
|
719
|
-
type RulePropertyType = 'string' | 'boolean' | 'object' | 'enum' | 'number';
|
|
720
|
+
type RulePropertyType = 'string' | 'boolean' | 'object' | 'array' | 'enum' | 'number';
|
|
720
721
|
interface RulePropertyDefinition {
|
|
721
722
|
name: string;
|
|
722
723
|
type: RulePropertyType;
|
|
@@ -1397,6 +1398,27 @@ declare abstract class BaseAiAdapter<TConfig = any> implements AiConfigAdapter<T
|
|
|
1397
1398
|
protected getCriticalWarnings(patch: any): string[];
|
|
1398
1399
|
}
|
|
1399
1400
|
|
|
1401
|
+
type PraxisAuthoringScopeChatMessage = {
|
|
1402
|
+
role: 'user' | 'assistant' | 'system';
|
|
1403
|
+
content: string;
|
|
1404
|
+
};
|
|
1405
|
+
interface PraxisAuthoringScopePolicyOptions {
|
|
1406
|
+
componentId?: string | null;
|
|
1407
|
+
componentType?: string | null;
|
|
1408
|
+
componentLabel?: string | null;
|
|
1409
|
+
}
|
|
1410
|
+
interface PraxisAuthoringScopePolicyRequest {
|
|
1411
|
+
messages?: PraxisAuthoringScopeChatMessage[] | null;
|
|
1412
|
+
contextHints?: AiJsonObject | null;
|
|
1413
|
+
}
|
|
1414
|
+
declare const PRAXIS_AUTHORING_SCOPE_POLICY_KIND = "praxis.authoring-scope-policy.v1";
|
|
1415
|
+
declare const PRAXIS_AUTHORING_SCOPE_POLICY_VERSION = "1.0";
|
|
1416
|
+
declare function createAuthoringScopePolicyContext(options?: PraxisAuthoringScopePolicyOptions): AiJsonObject;
|
|
1417
|
+
declare function createAuthoringScopePolicySystemMessage(options?: PraxisAuthoringScopePolicyOptions): PraxisAuthoringScopeChatMessage;
|
|
1418
|
+
declare function withAuthoringScopePolicy<TRequest extends PraxisAuthoringScopePolicyRequest>(request: TRequest, options?: PraxisAuthoringScopePolicyOptions): TRequest;
|
|
1419
|
+
declare function withAuthoringScopePolicyMessage(messages: readonly PraxisAuthoringScopeChatMessage[] | null | undefined, options?: PraxisAuthoringScopePolicyOptions): PraxisAuthoringScopeChatMessage[];
|
|
1420
|
+
declare function withAuthoringScopePolicyContextHints(contextHints: AiJsonObject | null | undefined, options?: PraxisAuthoringScopePolicyOptions): AiJsonObject;
|
|
1421
|
+
|
|
1400
1422
|
interface AiGovernedDecisionRoutingOptions {
|
|
1401
1423
|
localCompositionTerms?: readonly string[];
|
|
1402
1424
|
}
|
|
@@ -1467,7 +1489,7 @@ declare class PraxisAiService {
|
|
|
1467
1489
|
}
|
|
1468
1490
|
|
|
1469
1491
|
declare const AI_INTENT_CONTRACT_VERSION: "v1.1";
|
|
1470
|
-
declare const AI_INTENT_CONTRACT_SCHEMA_HASH: "
|
|
1492
|
+
declare const AI_INTENT_CONTRACT_SCHEMA_HASH: "66579be4b7637d3c8579e299388e45b89a17e164e72886f0895e98be5fa83c16";
|
|
1471
1493
|
type AiSchemaContext = AiSchemaContextContract;
|
|
1472
1494
|
interface AiSuggestionsRequest {
|
|
1473
1495
|
componentId: string;
|
|
@@ -1765,6 +1787,8 @@ declare class AgenticAuthoringTurnClientService {
|
|
|
1765
1787
|
private isQuickReply;
|
|
1766
1788
|
private toPendingClarificationContract;
|
|
1767
1789
|
private readString;
|
|
1790
|
+
private readDisplayString;
|
|
1791
|
+
private isRedactedDisplayText;
|
|
1768
1792
|
private toJsonObject;
|
|
1769
1793
|
private isRecord;
|
|
1770
1794
|
static ɵfac: i0.ɵɵFactoryDeclaration<AgenticAuthoringTurnClientService, never>;
|
|
@@ -2263,6 +2287,7 @@ declare class PraxisAiAssistantComponent implements OnDestroy {
|
|
|
2263
2287
|
private acceptStreamEvent;
|
|
2264
2288
|
private resolveLastEventIdForStream;
|
|
2265
2289
|
private extractStreamMessage;
|
|
2290
|
+
private resolveStreamStepFromPhase;
|
|
2266
2291
|
private requestStreamCancel;
|
|
2267
2292
|
private closeActiveStreamConnection;
|
|
2268
2293
|
private resetStreamTracking;
|
|
@@ -2336,8 +2361,6 @@ declare class PraxisAiAssistantComponent implements OnDestroy {
|
|
|
2336
2361
|
private buildValueColorMap;
|
|
2337
2362
|
private findColumnInPrompt;
|
|
2338
2363
|
private extractOptionValue;
|
|
2339
|
-
private buildMaskSelectionHints;
|
|
2340
|
-
private extractMaskFromText;
|
|
2341
2364
|
private resolveComponentId;
|
|
2342
2365
|
private resolveComponentType;
|
|
2343
2366
|
private buildSuggestionsRequest;
|
|
@@ -2567,6 +2590,7 @@ declare class PraxisAiAssistantShellComponent implements OnChanges, OnDestroy {
|
|
|
2567
2590
|
private quickReplyPresentationKind;
|
|
2568
2591
|
private presentationEvidenceToChip;
|
|
2569
2592
|
private getContextualActionChips;
|
|
2593
|
+
private publicQuickReplyHint;
|
|
2570
2594
|
private isGenericContextualActionDescription;
|
|
2571
2595
|
private trimSentencePunctuation;
|
|
2572
2596
|
private shortPathLabel;
|
|
@@ -2736,5 +2760,5 @@ declare class AiRuleWizardDialogComponent implements OnInit {
|
|
|
2736
2760
|
static ɵcmp: i0.ɵɵComponentDeclaration<AiRuleWizardDialogComponent, "praxis-ai-rule-wizard-dialog", never, {}, {}, never, never, true, never>;
|
|
2737
2761
|
}
|
|
2738
2762
|
|
|
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 };
|
|
2763
|
+
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, PRAXIS_AUTHORING_SCOPE_POLICY_KIND, PRAXIS_AUTHORING_SCOPE_POLICY_VERSION, PraxisAi, PraxisAiAssistantComponent, PraxisAiAssistantDockComponent, PraxisAiAssistantSessionHostComponent, PraxisAiAssistantShellComponent, PraxisAiService, PraxisAssistantSessionRegistryService, PraxisAssistantTurnController, PraxisAssistantTurnOrchestratorService, SchemaMinifierService, createAuthoringScopePolicyContext, createAuthoringScopePolicySystemMessage, createComponentAuthoringContext, createPraxisAssistantViewportLayout, normalizeAuthoringPrompt, normalizePraxisAssistantAttachmentSummary, normalizePraxisAssistantContextSnapshot, sanitizePraxisAssistantText, shouldRoutePromptToGovernedDecision, submitPraxisAssistantQuickReply, toAiJsonObject, toPraxisAssistantClarificationOption, toPraxisAssistantConversationMessages, withAuthoringScopePolicy, withAuthoringScopePolicyContextHints, withAuthoringScopePolicyMessage };
|
|
2764
|
+
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, PraxisAuthoringScopeChatMessage, PraxisAuthoringScopePolicyOptions, PraxisAuthoringScopePolicyRequest, ProblemResponseContract, PromptContext, RulePropertyDefinition, RulePropertySchema, RulePropertyType, ValidationContext, ValueKind };
|