@pingagent/sdk 0.1.13 → 0.1.15

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/dist/index.d.ts CHANGED
@@ -265,6 +265,109 @@ declare class TaskHandoffManager {
265
265
  listBySession(sessionKey: string, limit?: number): TaskHandoff[];
266
266
  }
267
267
 
268
+ type CollaborationProjectionOutboxStatus = 'pending' | 'sent' | 'failed';
269
+ type CollaborationProjectionKind = 'approval_resolution' | 'decision_prompt' | 'runtime_update' | 'collaboration_update';
270
+ interface CollaborationProjectionOutboxEntry {
271
+ id: number;
272
+ created_at: number;
273
+ session_key?: string;
274
+ conversation_id?: string;
275
+ target_human_session?: string;
276
+ projection_kind: CollaborationProjectionKind;
277
+ summary: string;
278
+ body: Record<string, unknown>;
279
+ status: CollaborationProjectionOutboxStatus;
280
+ attempt_count: number;
281
+ last_error?: string;
282
+ delivered_at?: number;
283
+ source_event_id?: number;
284
+ }
285
+ interface CollaborationProjectionOutboxInput {
286
+ created_at?: number;
287
+ session_key?: string;
288
+ conversation_id?: string;
289
+ target_human_session?: string;
290
+ projection_kind: CollaborationProjectionKind;
291
+ summary: string;
292
+ body: Record<string, unknown>;
293
+ source_event_id?: number;
294
+ }
295
+ declare class CollaborationProjectionOutboxManager {
296
+ private store;
297
+ constructor(store: LocalStore);
298
+ enqueue(input: CollaborationProjectionOutboxInput): CollaborationProjectionOutboxEntry;
299
+ get(id: number): CollaborationProjectionOutboxEntry | null;
300
+ listRecent(limit?: number): CollaborationProjectionOutboxEntry[];
301
+ listPending(limit?: number): CollaborationProjectionOutboxEntry[];
302
+ listDispatchable(limit?: number): CollaborationProjectionOutboxEntry[];
303
+ listBySession(sessionKey: string, limit?: number): CollaborationProjectionOutboxEntry[];
304
+ listByStatus(status: CollaborationProjectionOutboxStatus, limit?: number): CollaborationProjectionOutboxEntry[];
305
+ findBySourceEventId(sourceEventId: number, projectionKind?: CollaborationProjectionKind): CollaborationProjectionOutboxEntry[];
306
+ markSent(id: number, deliveredAt?: number): CollaborationProjectionOutboxEntry | null;
307
+ markFailed(id: number, error: string): CollaborationProjectionOutboxEntry | null;
308
+ }
309
+
310
+ type CollaborationEventType = 'external_message_received' | 'agent_progress' | 'agent_conclusion' | 'handoff_started' | 'handoff_completed' | 'risk_detected' | 'decision_required' | 'task_completed' | 'runtime_degraded' | 'runtime_repaired' | 'transport_switch_recommended' | 'transport_switched';
311
+ type CollaborationEventSeverity = 'info' | 'notice' | 'warning' | 'critical';
312
+ type CollaborationApprovalStatus = 'not_required' | 'pending' | 'approved' | 'rejected';
313
+ interface CollaborationEvent {
314
+ id: number;
315
+ ts_ms: number;
316
+ event_type: CollaborationEventType;
317
+ severity: CollaborationEventSeverity;
318
+ session_key?: string;
319
+ conversation_id?: string;
320
+ target_human_session?: string;
321
+ summary: string;
322
+ approval_required: boolean;
323
+ approval_status: CollaborationApprovalStatus;
324
+ detail?: Record<string, unknown>;
325
+ }
326
+ interface CollaborationEventInput {
327
+ ts_ms?: number;
328
+ event_type: CollaborationEventType;
329
+ severity?: CollaborationEventSeverity;
330
+ session_key?: string;
331
+ conversation_id?: string;
332
+ target_human_session?: string;
333
+ summary: string;
334
+ approval_required?: boolean;
335
+ approval_status?: CollaborationApprovalStatus;
336
+ detail?: Record<string, unknown>;
337
+ }
338
+ interface CollaborationEventSummary {
339
+ total_events: number;
340
+ latest_ts_ms?: number;
341
+ by_type: Record<string, number>;
342
+ by_severity: Record<string, number>;
343
+ pending_approvals: number;
344
+ }
345
+ interface ResolveCollaborationApprovalInput {
346
+ resolved_by?: string;
347
+ note?: string;
348
+ ts_ms?: number;
349
+ }
350
+ interface ResolveCollaborationApprovalResult {
351
+ updated: CollaborationEvent;
352
+ resolution_event: CollaborationEvent;
353
+ projection_outbox: CollaborationProjectionOutboxEntry | null;
354
+ }
355
+ declare class CollaborationEventManager {
356
+ private store;
357
+ constructor(store: LocalStore);
358
+ record(input: CollaborationEventInput): CollaborationEvent;
359
+ listRecent(limit?: number): CollaborationEvent[];
360
+ listBySession(sessionKey: string, limit?: number): CollaborationEvent[];
361
+ listByConversation(conversationId: string, limit?: number): CollaborationEvent[];
362
+ listByTargetHumanSession(targetHumanSession: string, limit?: number): CollaborationEvent[];
363
+ get(id: number): CollaborationEvent | null;
364
+ listPending(limit?: number): CollaborationEvent[];
365
+ listPendingBySession(sessionKey: string, limit?: number): CollaborationEvent[];
366
+ listPendingOlderThan(cutoffTs: number, limit?: number): CollaborationEvent[];
367
+ resolveApproval(id: number, approvalStatus: Extract<CollaborationApprovalStatus, 'approved' | 'rejected'>, input?: ResolveCollaborationApprovalInput): ResolveCollaborationApprovalResult | null;
368
+ summarize(limit?: number): CollaborationEventSummary;
369
+ }
370
+
268
371
  type CapabilityContactMode = 'dm' | 'task' | 'either';
269
372
  interface CapabilityCardItem {
270
373
  id: string;
@@ -545,6 +648,7 @@ declare class PingAgentClient {
545
648
  private sessionSummaryManager?;
546
649
  private taskThreadManager?;
547
650
  private taskHandoffManager?;
651
+ private collaborationEventManager?;
548
652
  private agentCardCache;
549
653
  constructor(opts: ClientOptions);
550
654
  getContactManager(): ContactManager | undefined;
@@ -553,6 +657,7 @@ declare class PingAgentClient {
553
657
  getSessionSummaryManager(): SessionSummaryManager | undefined;
554
658
  getTaskThreadManager(): TaskThreadManager | undefined;
555
659
  getTaskHandoffManager(): TaskHandoffManager | undefined;
660
+ getCollaborationEventManager(): CollaborationEventManager | undefined;
556
661
  /** Update the in-memory access token (e.g. after proactive refresh from disk). */
557
662
  setAccessToken(token: string): void;
558
663
  register(developerToken?: string): Promise<ApiResponse>;
@@ -832,6 +937,7 @@ declare class HttpTransport {
832
937
  type ContactPolicyAction = 'approve' | 'manual' | 'reject';
833
938
  type TaskPolicyAction = 'bridge' | 'execute' | 'deny';
834
939
  type RuntimeMode = 'bridge' | 'executor';
940
+ type CollaborationProjectionPreset = 'quiet' | 'balanced' | 'strict';
835
941
  interface TrustPolicyRule<A extends string> {
836
942
  match: string;
837
943
  action: A;
@@ -848,6 +954,9 @@ interface TrustPolicyDoc {
848
954
  default_action: TaskPolicyAction;
849
955
  rules: Array<TrustPolicyRule<TaskPolicyAction>>;
850
956
  };
957
+ collaboration_projection: {
958
+ preset: CollaborationProjectionPreset;
959
+ };
851
960
  }
852
961
  interface TrustPolicyContext {
853
962
  sender_did?: string;
@@ -1024,6 +1133,186 @@ declare class TrustRecommendationManager {
1024
1133
  summarize(): RecommendationSummary;
1025
1134
  }
1026
1135
 
1136
+ type OperatorSeenStateOperatorId = 'host_panel' | 'tui' | 'mcp';
1137
+ type OperatorSeenStateScopeType = 'global' | 'session';
1138
+ interface OperatorSeenState {
1139
+ operator_id: OperatorSeenStateOperatorId;
1140
+ scope_type: OperatorSeenStateScopeType;
1141
+ scope_key?: string | null;
1142
+ last_seen_ts: number;
1143
+ updated_at: number;
1144
+ }
1145
+ interface MarkOperatorSeenInput {
1146
+ operator_id: OperatorSeenStateOperatorId;
1147
+ scope_type: OperatorSeenStateScopeType;
1148
+ scope_key?: string | null;
1149
+ last_seen_ts?: number;
1150
+ }
1151
+ declare class OperatorSeenStateManager {
1152
+ private store;
1153
+ constructor(store: LocalStore);
1154
+ get(operatorId: OperatorSeenStateOperatorId, scopeType: OperatorSeenStateScopeType, scopeKey?: string | null): OperatorSeenState | null;
1155
+ markSeen(input: MarkOperatorSeenInput): OperatorSeenState;
1156
+ listByOperator(operatorId: OperatorSeenStateOperatorId): OperatorSeenState[];
1157
+ }
1158
+
1159
+ type ProjectionDisposition = 'project' | 'detail_only' | 'decision_gate';
1160
+ interface ProjectionDispositionInput {
1161
+ preset: CollaborationProjectionPreset;
1162
+ event_type?: CollaborationEventType | null;
1163
+ has_pending_decision?: boolean;
1164
+ projection_mode?: 'update' | 'decision' | 'runtime';
1165
+ }
1166
+ interface ProjectionDispositionResult {
1167
+ disposition: ProjectionDisposition;
1168
+ reason: string;
1169
+ }
1170
+ declare function getProjectedEventTypes(preset: CollaborationProjectionPreset): CollaborationEventType[];
1171
+ declare function describeProjectionPreset(preset: CollaborationProjectionPreset): {
1172
+ immediate_event_types: CollaborationEventType[];
1173
+ detail_only_event_types: CollaborationEventType[];
1174
+ };
1175
+ declare function getProjectionDisposition(input: ProjectionDispositionInput): ProjectionDispositionResult;
1176
+
1177
+ interface SinceLastSeenSummary {
1178
+ operator_id: OperatorSeenStateOperatorId;
1179
+ scope_type: OperatorSeenStateScopeType;
1180
+ scope_key?: string | null;
1181
+ last_seen_ts?: number;
1182
+ new_external_messages: number;
1183
+ new_conclusions: number;
1184
+ new_handoffs: number;
1185
+ new_decisions: number;
1186
+ new_failures: number;
1187
+ new_repairs: number;
1188
+ new_projection_failures: number;
1189
+ latest_ts?: number;
1190
+ }
1191
+ interface DeliveryTimelineEntry {
1192
+ ts_ms: number;
1193
+ kind: string;
1194
+ summary: string;
1195
+ session_key?: string | null;
1196
+ conversation_id?: string | null;
1197
+ status?: string | null;
1198
+ detail?: Record<string, unknown> | null;
1199
+ }
1200
+ interface ProjectionPreviewEntry {
1201
+ event_id: number;
1202
+ ts_ms: number;
1203
+ event_type: CollaborationEventType;
1204
+ summary: string;
1205
+ disposition: ProjectionDisposition;
1206
+ reason: string;
1207
+ }
1208
+ interface CollaborationDecisionView extends CollaborationEvent {
1209
+ overdue: boolean;
1210
+ overdue_by_ms?: number;
1211
+ }
1212
+ declare function listPendingDecisionViews(store: LocalStore, limit?: number, overdueThresholdMs?: number): CollaborationDecisionView[];
1213
+ declare function summarizeSinceLastSeen(store: LocalStore, input: {
1214
+ operator_id: OperatorSeenStateOperatorId;
1215
+ scope_type: OperatorSeenStateScopeType;
1216
+ scope_key?: string | null;
1217
+ }): SinceLastSeenSummary;
1218
+ declare function buildDeliveryTimeline(store: LocalStore, sessionKey: string, limit?: number): DeliveryTimelineEntry[];
1219
+ declare function buildProjectionPreview(store: LocalStore, sessionKey: string, preset: CollaborationProjectionPreset, limit?: number): {
1220
+ preset: CollaborationProjectionPreset;
1221
+ rules: ReturnType<typeof describeProjectionPreset>;
1222
+ recent: ProjectionPreviewEntry[];
1223
+ };
1224
+ declare function buildDecisionReminderOutboxMessage(event: CollaborationEvent): string;
1225
+ declare function hasDecisionPromptOutbox(outboxManager: CollaborationProjectionOutboxManager, sourceEventId: number): boolean;
1226
+
1227
+ type OpenClawTransportMode = 'bridge' | 'channel';
1228
+ interface TransportPreferenceState {
1229
+ preferred_mode: OpenClawTransportMode;
1230
+ updated_at: string;
1231
+ updated_by: string;
1232
+ last_auto_switch_at?: string | null;
1233
+ last_auto_switch_reason?: string | null;
1234
+ }
1235
+ interface ManagedTransportSwitchResult {
1236
+ preferred_mode: OpenClawTransportMode;
1237
+ preference_path: string;
1238
+ updated_at: string;
1239
+ updated_by: string;
1240
+ last_auto_switch_at?: string | null;
1241
+ last_auto_switch_reason?: string | null;
1242
+ restarted: boolean;
1243
+ restart_required: boolean;
1244
+ restart_method?: string | null;
1245
+ restart_error?: string | null;
1246
+ }
1247
+ declare function normalizeTransportMode(value: unknown, fallback?: OpenClawTransportMode): OpenClawTransportMode;
1248
+ declare function getTransportPreferenceFilePath(): string;
1249
+ declare function readTransportPreference(filePath?: string): TransportPreferenceState | null;
1250
+ declare function writeTransportPreference(input: {
1251
+ preferred_mode: OpenClawTransportMode;
1252
+ updated_by: string;
1253
+ last_auto_switch_at?: string | null;
1254
+ last_auto_switch_reason?: string | null;
1255
+ }, filePath?: string): TransportPreferenceState;
1256
+ declare function switchTransportPreference(preferredMode: OpenClawTransportMode, opts: {
1257
+ updated_by: string;
1258
+ auto_switch_reason?: string | null;
1259
+ attempt_restart?: boolean;
1260
+ filePath?: string;
1261
+ }): ManagedTransportSwitchResult;
1262
+
1263
+ interface OpenClawIngressRuntimeStatus {
1264
+ receive_mode: 'webhook' | 'polling_degraded';
1265
+ reason?: string | null;
1266
+ hooks_url?: string | null;
1267
+ hooks_base_url?: string | null;
1268
+ hooks_last_error?: string | null;
1269
+ hooks_last_error_at?: string | null;
1270
+ hooks_last_probe_ok_at?: string | null;
1271
+ hooks_message_mode?: string | null;
1272
+ fallback_last_injected_at?: string | null;
1273
+ fallback_last_injected_conversation_id?: string | null;
1274
+ active_work_session?: string | null;
1275
+ sessions_send_available?: boolean;
1276
+ hooks_fix_hint?: string | null;
1277
+ gateway_base_url?: string | null;
1278
+ transport_mode?: OpenClawTransportMode;
1279
+ preferred_transport_mode?: OpenClawTransportMode;
1280
+ transport_switch_recommended?: boolean;
1281
+ transport_switch_reason?: string | null;
1282
+ channel_retry_queue_length?: number;
1283
+ channel_last_inbound_at?: string | null;
1284
+ channel_last_outbound_at?: string | null;
1285
+ channel_last_degraded_at?: string | null;
1286
+ channel_last_repaired_at?: string | null;
1287
+ channel_last_error?: string | null;
1288
+ channel_consecutive_failures?: number;
1289
+ status_updated_at?: string | null;
1290
+ }
1291
+ declare function getIngressRuntimeStatusFilePath(): string;
1292
+ declare function readIngressRuntimeStatus(filePath?: string): OpenClawIngressRuntimeStatus | null;
1293
+
1294
+ type TransportHealthState = 'Ready' | 'Degraded' | 'Switching Recommended';
1295
+ interface TransportHealth {
1296
+ transport_mode: OpenClawTransportMode;
1297
+ preferred_transport_mode: OpenClawTransportMode;
1298
+ state: TransportHealthState;
1299
+ transport_switch_recommended: boolean;
1300
+ transport_switch_reason?: string | null;
1301
+ retry_queue_length: number;
1302
+ last_inbound_at?: string | null;
1303
+ last_outbound_at?: string | null;
1304
+ last_degraded_at?: string | null;
1305
+ last_repaired_at?: string | null;
1306
+ last_error?: string | null;
1307
+ consecutive_failures: number;
1308
+ receive_mode?: string | null;
1309
+ }
1310
+ declare function deriveTransportHealth(input: {
1311
+ runtime_status?: OpenClawIngressRuntimeStatus | null;
1312
+ recent_events?: CollaborationEvent[];
1313
+ projection_outbox_failed?: CollaborationProjectionOutboxEntry[];
1314
+ }): TransportHealth;
1315
+
1027
1316
  /**
1028
1317
  * A2A adapter for PingAgentClient.
1029
1318
  * Allows PingAgent to call external agents that speak the A2A protocol,
@@ -1239,21 +1528,4 @@ declare function clearSessionBindingAlert(conversationId: string, filePath?: str
1239
1528
  removed: boolean;
1240
1529
  };
1241
1530
 
1242
- interface OpenClawIngressRuntimeStatus {
1243
- receive_mode: 'webhook' | 'polling_degraded';
1244
- reason?: string | null;
1245
- hooks_url?: string | null;
1246
- hooks_last_error?: string | null;
1247
- hooks_last_error_at?: string | null;
1248
- hooks_last_probe_ok_at?: string | null;
1249
- fallback_last_injected_at?: string | null;
1250
- fallback_last_injected_conversation_id?: string | null;
1251
- active_work_session?: string | null;
1252
- sessions_send_available?: boolean;
1253
- hooks_fix_hint?: string | null;
1254
- status_updated_at?: string | null;
1255
- }
1256
- declare function getIngressRuntimeStatusFilePath(): string;
1257
- declare function readIngressRuntimeStatus(filePath?: string): OpenClawIngressRuntimeStatus | null;
1258
-
1259
- export { A2AAdapter, type A2AAdapterOptions, type A2ATaskResult, type AgentEncryptionCard, type AgentProfile, type CapabilityCard, type CapabilityCardItem, type CapabilityContactMode, type ClientOptions, type Contact, type ContactCardShare, ContactManager, type ContactPolicyAction, type ContactPolicyDecision, type ConversationEntry, type ConversationListResponse, type DirectoryBrowseResponse, type DirectorySelfResponse, type EncryptedPayloadWrapper, type EncryptionIdentityFields, type EncryptionPrivateKeyJwk, type EncryptionPublicKeyJwk, type FeedByDidResponse, type FeedPost, type FeedPublicResponse, type FetchResponse, HistoryManager, HttpTransport, LocalStore, type OpenClawIngressRuntimeStatus, PingAgentClient, type PublicAgentProfile, type PublicLinkState, type RecommendationSummary, type ReplyTarget, type RuntimeMode, SESSION_SUMMARY_FIELDS, type SendResponse, type SessionBindingAlert, type SessionBindingEntry, SessionManager, type SessionMessageInput, type SessionState, type SessionSummary, type SessionSummaryFieldKey, SessionSummaryManager, type SessionSummaryUpsert, type StoredMessage, type StoredTrustRecommendation, type SubscriptionResponse, type SubscriptionUsage, type SyncTrustRecommendationsInput, type TaskHandoff, TaskHandoffManager, type TaskHandoffPayload, type TaskHandoffUpsert, type TaskPolicyAction, type TaskPolicyDecision, type TaskResult, type TaskShareEntry, type TaskThread, TaskThreadManager, type TaskThreadStatus, type TaskThreadUpsert, type TransportOptions, type TrustPolicyAuditEvent, type TrustPolicyAuditEventType, type TrustPolicyAuditInput, TrustPolicyAuditManager, type TrustPolicyAuditSummary, type TrustPolicyContext, type TrustPolicyDoc, type TrustPolicyLearningSummary, type TrustPolicyRecommendation, TrustRecommendationManager, type TrustRecommendationStatus, type TrustState, type UpdateProfileInput, type UserWakeEvent, UserWakeSubscription, type UserWakeSubscriptionOptions, WsSubscription, type WsSubscriptionOptions, buildSessionKey, buildSessionSummaryHandoffText, buildTrustPolicyRecommendations, capabilityCardToLegacyCapabilities, clearSessionBindingAlert, decideContactPolicy, decideTaskPolicy, decryptPayloadForIdentity, defaultTrustPolicyDoc, encryptPayloadForRecipients, ensureIdentityEncryptionKeys, ensureTokenValid, formatCapabilityCardSummary, generateIdentity, getActiveSessionFilePath, getIdentityPath, getIngressRuntimeStatusFilePath, getProfile, getRootDir, getSessionBindingAlertsFilePath, getSessionMapFilePath, getStorePath, getTrustRecommendationActionLabel, identityExists, isEncryptedPayload, loadIdentity, matchesTrustPolicyRule, normalizeCapabilityCard, normalizeTrustPolicyDoc, previewFromPayload, readCurrentActiveSessionKey, readIngressRuntimeStatus, readSessionBindingAlerts, readSessionBindings, removeSessionBinding, saveIdentity, setSessionBinding, shouldEncryptConversationPayload, summarizeTrustPolicyAudit, updateStoredToken, upsertSessionBindingAlert, upsertTrustPolicyRecommendation, writeSessionBindingAlerts, writeSessionBindings };
1531
+ export { A2AAdapter, type A2AAdapterOptions, type A2ATaskResult, type AgentEncryptionCard, type AgentProfile, type CapabilityCard, type CapabilityCardItem, type CapabilityContactMode, type ClientOptions, type CollaborationApprovalStatus, type CollaborationDecisionView, type CollaborationEvent, type CollaborationEventInput, CollaborationEventManager, type CollaborationEventSeverity, type CollaborationEventSummary, type CollaborationEventType, type CollaborationProjectionKind, type CollaborationProjectionOutboxEntry, type CollaborationProjectionOutboxInput, CollaborationProjectionOutboxManager, type CollaborationProjectionOutboxStatus, type CollaborationProjectionPreset, type Contact, type ContactCardShare, ContactManager, type ContactPolicyAction, type ContactPolicyDecision, type ConversationEntry, type ConversationListResponse, type DeliveryTimelineEntry, type DirectoryBrowseResponse, type DirectorySelfResponse, type EncryptedPayloadWrapper, type EncryptionIdentityFields, type EncryptionPrivateKeyJwk, type EncryptionPublicKeyJwk, type FeedByDidResponse, type FeedPost, type FeedPublicResponse, type FetchResponse, HistoryManager, HttpTransport, LocalStore, type ManagedTransportSwitchResult, type MarkOperatorSeenInput, type OpenClawIngressRuntimeStatus, type OpenClawTransportMode, type OperatorSeenState, OperatorSeenStateManager, type OperatorSeenStateOperatorId, type OperatorSeenStateScopeType, PingAgentClient, type ProjectionDisposition, type ProjectionDispositionInput, type ProjectionDispositionResult, type ProjectionPreviewEntry, type PublicAgentProfile, type PublicLinkState, type RecommendationSummary, type ReplyTarget, type ResolveCollaborationApprovalInput, type ResolveCollaborationApprovalResult, type RuntimeMode, SESSION_SUMMARY_FIELDS, type SendResponse, type SessionBindingAlert, type SessionBindingEntry, SessionManager, type SessionMessageInput, type SessionState, type SessionSummary, type SessionSummaryFieldKey, SessionSummaryManager, type SessionSummaryUpsert, type SinceLastSeenSummary, type StoredMessage, type StoredTrustRecommendation, type SubscriptionResponse, type SubscriptionUsage, type SyncTrustRecommendationsInput, type TaskHandoff, TaskHandoffManager, type TaskHandoffPayload, type TaskHandoffUpsert, type TaskPolicyAction, type TaskPolicyDecision, type TaskResult, type TaskShareEntry, type TaskThread, TaskThreadManager, type TaskThreadStatus, type TaskThreadUpsert, type TransportHealth, type TransportHealthState, type TransportOptions, type TransportPreferenceState, type TrustPolicyAuditEvent, type TrustPolicyAuditEventType, type TrustPolicyAuditInput, TrustPolicyAuditManager, type TrustPolicyAuditSummary, type TrustPolicyContext, type TrustPolicyDoc, type TrustPolicyLearningSummary, type TrustPolicyRecommendation, TrustRecommendationManager, type TrustRecommendationStatus, type TrustState, type UpdateProfileInput, type UserWakeEvent, UserWakeSubscription, type UserWakeSubscriptionOptions, WsSubscription, type WsSubscriptionOptions, buildDecisionReminderOutboxMessage, buildDeliveryTimeline, buildProjectionPreview, buildSessionKey, buildSessionSummaryHandoffText, buildTrustPolicyRecommendations, capabilityCardToLegacyCapabilities, clearSessionBindingAlert, decideContactPolicy, decideTaskPolicy, decryptPayloadForIdentity, defaultTrustPolicyDoc, deriveTransportHealth, describeProjectionPreset, encryptPayloadForRecipients, ensureIdentityEncryptionKeys, ensureTokenValid, formatCapabilityCardSummary, generateIdentity, getActiveSessionFilePath, getIdentityPath, getIngressRuntimeStatusFilePath, getProfile, getProjectedEventTypes, getProjectionDisposition, getRootDir, getSessionBindingAlertsFilePath, getSessionMapFilePath, getStorePath, getTransportPreferenceFilePath, getTrustRecommendationActionLabel, hasDecisionPromptOutbox, identityExists, isEncryptedPayload, listPendingDecisionViews, loadIdentity, matchesTrustPolicyRule, normalizeCapabilityCard, normalizeTransportMode, normalizeTrustPolicyDoc, previewFromPayload, readCurrentActiveSessionKey, readIngressRuntimeStatus, readSessionBindingAlerts, readSessionBindings, readTransportPreference, removeSessionBinding, saveIdentity, setSessionBinding, shouldEncryptConversationPayload, summarizeSinceLastSeen, summarizeTrustPolicyAudit, switchTransportPreference, updateStoredToken, upsertSessionBindingAlert, upsertTrustPolicyRecommendation, writeSessionBindingAlerts, writeSessionBindings, writeTransportPreference };
package/dist/index.js CHANGED
@@ -1,9 +1,12 @@
1
1
  import {
2
2
  A2AAdapter,
3
+ CollaborationEventManager,
4
+ CollaborationProjectionOutboxManager,
3
5
  ContactManager,
4
6
  HistoryManager,
5
7
  HttpTransport,
6
8
  LocalStore,
9
+ OperatorSeenStateManager,
7
10
  PingAgentClient,
8
11
  SESSION_SUMMARY_FIELDS,
9
12
  SessionManager,
@@ -14,6 +17,9 @@ import {
14
17
  TrustRecommendationManager,
15
18
  UserWakeSubscription,
16
19
  WsSubscription,
20
+ buildDecisionReminderOutboxMessage,
21
+ buildDeliveryTimeline,
22
+ buildProjectionPreview,
17
23
  buildSessionKey,
18
24
  buildSessionSummaryHandoffText,
19
25
  buildTrustPolicyRecommendations,
@@ -23,6 +29,8 @@ import {
23
29
  decideTaskPolicy,
24
30
  decryptPayloadForIdentity,
25
31
  defaultTrustPolicyDoc,
32
+ deriveTransportHealth,
33
+ describeProjectionPreset,
26
34
  encryptPayloadForRecipients,
27
35
  ensureIdentityEncryptionKeys,
28
36
  ensureTokenValid,
@@ -32,39 +40,52 @@ import {
32
40
  getIdentityPath,
33
41
  getIngressRuntimeStatusFilePath,
34
42
  getProfile,
43
+ getProjectedEventTypes,
44
+ getProjectionDisposition,
35
45
  getRootDir,
36
46
  getSessionBindingAlertsFilePath,
37
47
  getSessionMapFilePath,
38
48
  getStorePath,
49
+ getTransportPreferenceFilePath,
39
50
  getTrustRecommendationActionLabel,
51
+ hasDecisionPromptOutbox,
40
52
  identityExists,
41
53
  isEncryptedPayload,
54
+ listPendingDecisionViews,
42
55
  loadIdentity,
43
56
  matchesTrustPolicyRule,
44
57
  normalizeCapabilityCard,
58
+ normalizeTransportMode,
45
59
  normalizeTrustPolicyDoc,
46
60
  previewFromPayload,
47
61
  readCurrentActiveSessionKey,
48
62
  readIngressRuntimeStatus,
49
63
  readSessionBindingAlerts,
50
64
  readSessionBindings,
65
+ readTransportPreference,
51
66
  removeSessionBinding,
52
67
  saveIdentity,
53
68
  setSessionBinding,
54
69
  shouldEncryptConversationPayload,
70
+ summarizeSinceLastSeen,
55
71
  summarizeTrustPolicyAudit,
72
+ switchTransportPreference,
56
73
  updateStoredToken,
57
74
  upsertSessionBindingAlert,
58
75
  upsertTrustPolicyRecommendation,
59
76
  writeSessionBindingAlerts,
60
- writeSessionBindings
61
- } from "./chunk-N2GCIMAW.js";
77
+ writeSessionBindings,
78
+ writeTransportPreference
79
+ } from "./chunk-BCYHGKQE.js";
62
80
  export {
63
81
  A2AAdapter,
82
+ CollaborationEventManager,
83
+ CollaborationProjectionOutboxManager,
64
84
  ContactManager,
65
85
  HistoryManager,
66
86
  HttpTransport,
67
87
  LocalStore,
88
+ OperatorSeenStateManager,
68
89
  PingAgentClient,
69
90
  SESSION_SUMMARY_FIELDS,
70
91
  SessionManager,
@@ -75,6 +96,9 @@ export {
75
96
  TrustRecommendationManager,
76
97
  UserWakeSubscription,
77
98
  WsSubscription,
99
+ buildDecisionReminderOutboxMessage,
100
+ buildDeliveryTimeline,
101
+ buildProjectionPreview,
78
102
  buildSessionKey,
79
103
  buildSessionSummaryHandoffText,
80
104
  buildTrustPolicyRecommendations,
@@ -84,6 +108,8 @@ export {
84
108
  decideTaskPolicy,
85
109
  decryptPayloadForIdentity,
86
110
  defaultTrustPolicyDoc,
111
+ deriveTransportHealth,
112
+ describeProjectionPreset,
87
113
  encryptPayloadForRecipients,
88
114
  ensureIdentityEncryptionKeys,
89
115
  ensureTokenValid,
@@ -93,30 +119,40 @@ export {
93
119
  getIdentityPath,
94
120
  getIngressRuntimeStatusFilePath,
95
121
  getProfile,
122
+ getProjectedEventTypes,
123
+ getProjectionDisposition,
96
124
  getRootDir,
97
125
  getSessionBindingAlertsFilePath,
98
126
  getSessionMapFilePath,
99
127
  getStorePath,
128
+ getTransportPreferenceFilePath,
100
129
  getTrustRecommendationActionLabel,
130
+ hasDecisionPromptOutbox,
101
131
  identityExists,
102
132
  isEncryptedPayload,
133
+ listPendingDecisionViews,
103
134
  loadIdentity,
104
135
  matchesTrustPolicyRule,
105
136
  normalizeCapabilityCard,
137
+ normalizeTransportMode,
106
138
  normalizeTrustPolicyDoc,
107
139
  previewFromPayload,
108
140
  readCurrentActiveSessionKey,
109
141
  readIngressRuntimeStatus,
110
142
  readSessionBindingAlerts,
111
143
  readSessionBindings,
144
+ readTransportPreference,
112
145
  removeSessionBinding,
113
146
  saveIdentity,
114
147
  setSessionBinding,
115
148
  shouldEncryptConversationPayload,
149
+ summarizeSinceLastSeen,
116
150
  summarizeTrustPolicyAudit,
151
+ switchTransportPreference,
117
152
  updateStoredToken,
118
153
  upsertSessionBindingAlert,
119
154
  upsertTrustPolicyRecommendation,
120
155
  writeSessionBindingAlerts,
121
- writeSessionBindings
156
+ writeSessionBindings,
157
+ writeTransportPreference
122
158
  };