@newheap/platform-ai-chat 0.19.0 → 0.20.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 CHANGED
@@ -154,6 +154,13 @@ title, Markdown text and a link within the application or to an `https` address.
154
154
  Custom layouts pass `[approvalRights]` to `nh-assistant-thread` and handle
155
155
  `(approvalChoice)`, which carries the approval id.
156
156
 
157
+ A question an agent asked with `ask_question` (`run.AllowQuestions()` on the server) shows as
158
+ `nh-assistant-question-card`: the person it is addressed to gets a button per choice, everyone else
159
+ reads it with whom it waits for. The turn waits for the answer as for an approval
160
+ (`conversation.pendingQuestion`); the thread emits `(questionAnswer)` for the addressee and the panel
161
+ calls `NhAssistantStore.answerQuestion`, which streams the resumed turn. An agent message of a chat
162
+ with `run.SkillsInChat()` names the skill it worked in (`message.skillId`).
163
+
157
164
  A tool call whose agent proposal closed without running no longer waits: it ends as
158
165
  `rejected`, as `not-executed` when the proposal expired, was withdrawn or became stale, or as
159
166
  `failed` when its execution failed before it started, with the result code
package/admin/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { InjectionToken, Type, Signal, EnvironmentProviders, Injector, OnInit } from '@angular/core';
3
3
  import * as _newheap_platform_ai_chat from '@newheap/platform-ai-chat';
4
- import { NhAssistantStore, NhAssistantError, ApplicationContext, ApplicationContextVersion, AdminAgent, PackagePartLink, ToolCatalogEntry, McpServer, RunCatalog, SetAgentStateRequest, AgentSkillState, AgentShadowMode, AgentShadowState, AssistantAutonomy, AssistantDataClassification, InstructionAssetReference, AgentMetadata, AgentMetadataEntry, NhAssistantAdminApiService, ɵnhAssistantErrorKeys as _nhAssistantErrorKeys, AgentEvaluation, AgentReplay, AgentEvaluationCost, AgentProposalFeedbackCategory, AgentFeedbackSummaryRow, AgentFeedbackItem, AgentFeedbackCategoryCount, StaleKind, AgentProposalFeedbackGroup, AgentSubjectType, AgentRunStatus, ɵnhAssistantCodeKeys as _nhAssistantCodeKeys, AgentRunHistoryItem, NhAssistantConsultationRoute, DataConsultation, CodeConsultation, DataTriggerVersion, DataSkill, AgentRunConfiguration, DataTrigger, SkillComparison, DataSkillVersion, TriggerComparison, ɵNhAssistantPickerOption as _NhAssistantPickerOption, McpServerTestResult, McpConnectionsSummary, McpBuiltInAuthMode, McpCustomAuthMode, McpAuthMode, McpTransport, McpConnectionScope, McpHeadlessUse, McpDiscovery, McpTool, McpToolEffect } from '@newheap/platform-ai-chat';
4
+ import { NhAssistantStore, NhAssistantError, ApplicationContext, ApplicationContextVersion, AdminAgent, PackagePartLink, ToolCatalogEntry, McpServer, RunCatalog, SetAgentStateRequest, AgentSkillState, AgentShadowMode, ShadowVariantPromotion, AgentShadowState, AssistantAutonomy, AssistantDataClassification, InstructionAssetReference, AgentMetadata, AgentMetadataEntry, NhAssistantAdminApiService, ɵnhAssistantErrorKeys as _nhAssistantErrorKeys, AgentEvaluation, AgentReplay, AgentEvaluationCost, AgentProposalFeedbackCategory, AgentFeedbackSummaryRow, AgentFeedbackItem, AgentFeedbackCategoryCount, StaleKind, AgentProposalFeedbackGroup, AgentSubjectType, AgentRunStatus, ɵnhAssistantCodeKeys as _nhAssistantCodeKeys, AgentRunHistoryItem, NhAssistantConsultationRoute, DataConsultation, CodeConsultation, DataTriggerVersion, DataSkill, AgentRunConfiguration, DataTrigger, SkillComparison, DataSkillVersion, TriggerComparison, ɵNhAssistantPickerOption as _NhAssistantPickerOption, McpServerTestResult, McpConnectionsSummary, McpBuiltInAuthMode, McpCustomAuthMode, McpAuthMode, McpTransport, McpConnectionScope, McpHeadlessUse, McpDiscovery, McpTool, McpToolEffect } from '@newheap/platform-ai-chat';
5
5
  import { ɵNhAssistantRunNowAgent as _NhAssistantRunNowAgent } from '@newheap/platform-ai-chat/agent-runs';
6
6
 
7
7
  type NhAssistantAdminTab = 'context' | 'agents' | 'mcp-servers';
@@ -370,6 +370,11 @@ declare class NhAssistantAdminAgentsComponent {
370
370
  * configuration's guided setup, since it receives the live agent's events only with run settings.
371
371
  */
372
372
  onVariantCreated(variant: AdminAgent): void;
373
+ /**
374
+ * A data shadow variant promoted onto the agent whose run configuration is open: the agent shows its
375
+ * new version there and in the list, and the variant, which was removed, leaves the list.
376
+ */
377
+ onVariantPromoted(promotion: ShadowVariantPromotion): void;
373
378
  /** The run configuration of a data shadow variant of the agent whose run configuration is open. */
374
379
  variantFromRunConfiguration(variantId: string): void;
375
380
  /** The flow of the agent's run configuration opens its runs; going back returns there. */
@@ -523,6 +528,12 @@ declare class NhAssistantAdminAgentEditorComponent {
523
528
  readonly cancelled: _angular_core.OutputEmitterRef<void>;
524
529
  readonly uses: readonly AgentUse[];
525
530
  readonly id: string;
531
+ private readonly language;
532
+ /**
533
+ * The agent's name in the title, as the agent list shows it: an agent in code names itself with a
534
+ * translation key, which reads in the reader's language.
535
+ */
536
+ readonly titleName: _angular_core.Signal<string>;
526
537
  readonly max = 20000;
527
538
  readonly autonomyLevels: readonly AssistantAutonomy[];
528
539
  readonly classifications: readonly AssistantDataClassification[];