@newheap/platform-ai-chat 0.8.1 → 0.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newheap/platform-ai-chat",
3
- "version": "0.8.1",
3
+ "version": "0.10.0",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^20.2.14",
6
6
  "@angular/common": "^20.3.28",
@@ -34,6 +34,10 @@
34
34
  "types": "./admin/index.d.ts",
35
35
  "default": "./fesm2022/newheap-platform-ai-chat-admin.mjs"
36
36
  },
37
+ "./agent-runs": {
38
+ "types": "./agent-runs/index.d.ts",
39
+ "default": "./fesm2022/newheap-platform-ai-chat-agent-runs.mjs"
40
+ },
37
41
  "./testing": {
38
42
  "types": "./testing/index.d.ts",
39
43
  "default": "./fesm2022/newheap-platform-ai-chat-testing.mjs"
@@ -1,4 +1,4 @@
1
- import { AssistantStatus, AgentSummary, Conversation, ClientContext, AssistantPreferences, ToolCatalogEntry, AdminAgentInput, McpServerInput, LiveConversationChanged, LiveConversationRead, LiveConversationRemoved, LiveConversationEvent, NhAssistantLiveService, NhAssistantLiveState } from '@newheap/platform-ai-chat';
1
+ import { AssistantStatus, AgentSummary, Conversation, ClientContext, AssistantPreferences, ToolCatalogEntry, AdminAgentInput, McpServerInput, LiveConversationChanged, LiveConversationRead, LiveConversationRemoved, LiveConversationEvent, NhAssistantLiveService, LiveAgentWorkChanged, NhAssistantLiveState } from '@newheap/platform-ai-chat';
2
2
  import * as i0 from '@angular/core';
3
3
  import { InjectionToken, EnvironmentProviders } from '@angular/core';
4
4
  import { Observable } from 'rxjs';
@@ -249,7 +249,7 @@ declare class NhAssistantMockBackend {
249
249
  static ɵprov: i0.ɵɵInjectableDeclaration<NhAssistantMockBackend>;
250
250
  }
251
251
 
252
- type NhAssistantLiveSurface = Pick<NhAssistantLiveService, 'changed$' | 'read$' | 'removed$' | 'events$' | 'resync$' | 'state' | 'connect' | 'stop'>;
252
+ type NhAssistantLiveSurface = Pick<NhAssistantLiveService, 'changed$' | 'read$' | 'removed$' | 'events$' | 'agentWork$' | 'resync$' | 'state' | 'connect' | 'stop'>;
253
253
  /**
254
254
  * Stands in for the SignalR live service: it delivers the mock back-end's live updates in
255
255
  * memory, so shared conversations, other tabs and parallel turns behave as with a real hub.
@@ -267,6 +267,8 @@ declare class NhAssistantMockLiveService implements NhAssistantLiveSurface {
267
267
  readonly read$: Observable<LiveConversationRead>;
268
268
  readonly removed$: Observable<LiveConversationRemoved>;
269
269
  readonly events$: Observable<LiveConversationEvent>;
270
+ /** Agents of the mock never run on their own, so their work never changes. */
271
+ readonly agentWork$: Observable<LiveAgentWorkChanged>;
270
272
  readonly resync$: Observable<void>;
271
273
  readonly state: i0.Signal<NhAssistantLiveState>;
272
274
  constructor();