@pingagent/sdk 0.1.15 → 0.1.17

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
@@ -1156,6 +1156,141 @@ declare class OperatorSeenStateManager {
1156
1156
  listByOperator(operatorId: OperatorSeenStateOperatorId): OperatorSeenState[];
1157
1157
  }
1158
1158
 
1159
+ type HumanDeliveryBindingStatus = 'active' | 'stale';
1160
+ interface HumanDeliveryBinding {
1161
+ id: number;
1162
+ created_at: number;
1163
+ updated_at: number;
1164
+ owner_ref?: string;
1165
+ source_session_key?: string;
1166
+ source_conversation_id?: string;
1167
+ channel: string;
1168
+ to: string;
1169
+ account_id?: string;
1170
+ thread_id?: string | number;
1171
+ target_key: string;
1172
+ status: HumanDeliveryBindingStatus;
1173
+ last_inbound_at?: number;
1174
+ last_outbound_at?: number;
1175
+ detail?: Record<string, unknown>;
1176
+ }
1177
+ interface HumanDeliveryBindingInput {
1178
+ created_at?: number;
1179
+ updated_at?: number;
1180
+ owner_ref?: string;
1181
+ source_session_key?: string;
1182
+ source_conversation_id?: string;
1183
+ channel: string;
1184
+ to: string;
1185
+ account_id?: string;
1186
+ thread_id?: string | number;
1187
+ target_key: string;
1188
+ status?: HumanDeliveryBindingStatus;
1189
+ last_inbound_at?: number;
1190
+ last_outbound_at?: number;
1191
+ detail?: Record<string, unknown>;
1192
+ }
1193
+ declare class HumanDeliveryBindingManager {
1194
+ private store;
1195
+ constructor(store: LocalStore);
1196
+ private findExisting;
1197
+ findMatching(input: Pick<HumanDeliveryBindingInput, 'target_key' | 'source_session_key' | 'source_conversation_id'>): HumanDeliveryBinding | null;
1198
+ upsert(input: HumanDeliveryBindingInput): HumanDeliveryBinding;
1199
+ get(id: number): HumanDeliveryBinding | null;
1200
+ listRecent(limit?: number): HumanDeliveryBinding[];
1201
+ listBySession(sessionKey: string, limit?: number): HumanDeliveryBinding[];
1202
+ listByConversation(conversationId: string, limit?: number): HumanDeliveryBinding[];
1203
+ listByOwner(ownerRef: string, limit?: number): HumanDeliveryBinding[];
1204
+ markOutbound(id: number, ts?: number): HumanDeliveryBinding | null;
1205
+ markActive(id: number, ts?: number): HumanDeliveryBinding | null;
1206
+ markStale(id: number, ts?: number): HumanDeliveryBinding | null;
1207
+ }
1208
+
1209
+ type NotificationIntentType = 'decision_required' | 'approval_result' | 'task_completed' | 'risk_alert' | 'handoff' | 'runtime_alert' | 'collaboration_update';
1210
+ type NotificationIntentStatus = 'pending' | 'bound' | 'sent' | 'acknowledged' | 'failed' | 'unresolved' | 'canceled';
1211
+ type NotificationIntentBindingScope = 'same_conversation' | 'same_session' | 'owner_last_active';
1212
+ interface NotificationIntent {
1213
+ id: number;
1214
+ created_at: number;
1215
+ updated_at: number;
1216
+ session_key?: string;
1217
+ conversation_id?: string;
1218
+ owner_ref?: string;
1219
+ source_event_id?: number;
1220
+ source_projection_outbox_id?: number;
1221
+ intent_type: NotificationIntentType;
1222
+ title: string;
1223
+ summary: string;
1224
+ deep_link?: string;
1225
+ body: Record<string, unknown>;
1226
+ preferred_binding_scope: NotificationIntentBindingScope;
1227
+ status: NotificationIntentStatus;
1228
+ attempt_count: number;
1229
+ last_error?: string;
1230
+ delivered_at?: number;
1231
+ resolved_binding_id?: number;
1232
+ acknowledged_at?: number;
1233
+ acknowledged_by_binding_id?: number;
1234
+ acknowledged_by_message_ref?: string;
1235
+ }
1236
+ interface NotificationIntentInput {
1237
+ created_at?: number;
1238
+ updated_at?: number;
1239
+ session_key?: string;
1240
+ conversation_id?: string;
1241
+ owner_ref?: string;
1242
+ source_event_id?: number;
1243
+ source_projection_outbox_id?: number;
1244
+ intent_type: NotificationIntentType;
1245
+ title: string;
1246
+ summary: string;
1247
+ deep_link?: string;
1248
+ body?: Record<string, unknown>;
1249
+ preferred_binding_scope?: NotificationIntentBindingScope;
1250
+ status?: NotificationIntentStatus;
1251
+ attempt_count?: number;
1252
+ last_error?: string;
1253
+ delivered_at?: number;
1254
+ resolved_binding_id?: number;
1255
+ acknowledged_at?: number;
1256
+ acknowledged_by_binding_id?: number;
1257
+ acknowledged_by_message_ref?: string;
1258
+ }
1259
+ declare class NotificationIntentManager {
1260
+ private store;
1261
+ constructor(store: LocalStore);
1262
+ enqueue(input: NotificationIntentInput): NotificationIntent;
1263
+ get(id: number): NotificationIntent | null;
1264
+ findBySourceProjectionOutboxId(sourceProjectionOutboxId: number): NotificationIntent | null;
1265
+ listRecent(limit?: number): NotificationIntent[];
1266
+ listPending(limit?: number): NotificationIntent[];
1267
+ listUnacknowledgedSent(limit?: number): NotificationIntent[];
1268
+ listBySession(sessionKey: string, limit?: number): NotificationIntent[];
1269
+ listByStatus(status: NotificationIntentStatus, limit?: number): NotificationIntent[];
1270
+ markBound(id: number, bindingId: number, ts?: number): NotificationIntent | null;
1271
+ markSent(id: number, bindingId?: number | null, ts?: number): NotificationIntent | null;
1272
+ markPending(id: number, options?: {
1273
+ clear_binding?: boolean;
1274
+ clear_ack?: boolean;
1275
+ clear_error?: boolean;
1276
+ }, ts?: number): NotificationIntent | null;
1277
+ markFailed(id: number, error: string, bindingId?: number | null, ts?: number): NotificationIntent | null;
1278
+ markUnresolved(id: number, error?: string, ts?: number): NotificationIntent | null;
1279
+ markCanceled(id: number, error?: string, ts?: number): NotificationIntent | null;
1280
+ markAcknowledged(id: number, input?: {
1281
+ binding_id?: number | null;
1282
+ message_ref?: string | null;
1283
+ ts?: number;
1284
+ }): NotificationIntent | null;
1285
+ acknowledgeLatestSentForBinding(input: {
1286
+ binding_id?: number | null;
1287
+ conversation_id?: string | null;
1288
+ session_key?: string | null;
1289
+ message_ref?: string | null;
1290
+ ts?: number;
1291
+ }): NotificationIntent | null;
1292
+ }
1293
+
1159
1294
  type ProjectionDisposition = 'project' | 'detail_only' | 'decision_gate';
1160
1295
  interface ProjectionDispositionInput {
1161
1296
  preset: CollaborationProjectionPreset;
@@ -1224,6 +1359,62 @@ declare function buildProjectionPreview(store: LocalStore, sessionKey: string, p
1224
1359
  declare function buildDecisionReminderOutboxMessage(event: CollaborationEvent): string;
1225
1360
  declare function hasDecisionPromptOutbox(outboxManager: CollaborationProjectionOutboxManager, sourceEventId: number): boolean;
1226
1361
 
1362
+ declare const HUMAN_DELIVERY_CHANNELS: readonly ["feishu", "discord", "telegram", "slack", "whatsapp"];
1363
+ type HumanDeliveryChannel = typeof HUMAN_DELIVERY_CHANNELS[number];
1364
+ interface HumanDeliveryChannelCapability {
1365
+ channel: string;
1366
+ configured: boolean;
1367
+ supports_explicit_send: boolean;
1368
+ supports_thread_id: boolean;
1369
+ supports_account_id: boolean;
1370
+ supports_plain_text_send: boolean;
1371
+ supports_dry_run: boolean;
1372
+ last_canary_at?: string | null;
1373
+ last_canary_ok?: boolean | null;
1374
+ last_canary_error?: string | null;
1375
+ }
1376
+ interface HumanDeliverySummary {
1377
+ mode: 'projection_outbox' | 'bound_channel_reply';
1378
+ total_bindings: number;
1379
+ active_bindings: number;
1380
+ stale_bindings: number;
1381
+ pending_intents: number;
1382
+ unresolved_intents: number;
1383
+ failed_intents: number;
1384
+ acknowledged_intents: number;
1385
+ supported_channels: string[];
1386
+ unsupported_channels: string[];
1387
+ last_canary_at?: string | null;
1388
+ last_canary_ok?: boolean | null;
1389
+ last_canary_error?: string | null;
1390
+ channel_capabilities: HumanDeliveryChannelCapability[];
1391
+ recent_bindings: HumanDeliveryBinding[];
1392
+ recent_notification_intents: NotificationIntent[];
1393
+ }
1394
+ interface ResolveHumanDeliveryBindingInput {
1395
+ conversation_id?: string | null;
1396
+ session_key?: string | null;
1397
+ owner_ref?: string | null;
1398
+ preferred_binding_scope?: NotificationIntentBindingScope | null;
1399
+ }
1400
+ interface ResolveHumanDeliveryBindingResult {
1401
+ binding: HumanDeliveryBinding | null;
1402
+ resolution_scope?: NotificationIntentBindingScope;
1403
+ }
1404
+ interface NotificationOverride {
1405
+ notify?: boolean;
1406
+ intent_type?: NotificationIntentType;
1407
+ title?: string;
1408
+ summary?: string;
1409
+ deep_link?: string;
1410
+ }
1411
+ declare function resolveHumanDeliveryBinding(store: LocalStore, input: ResolveHumanDeliveryBindingInput): ResolveHumanDeliveryBindingResult;
1412
+ declare function buildHumanDeliveryPayload(intent: NotificationIntent): string;
1413
+ declare function summarizeHumanDelivery(store: LocalStore, limit?: number): HumanDeliverySummary;
1414
+ declare function parseNotificationOverride(text: string | null | undefined): NotificationOverride | null;
1415
+ declare function buildNotificationIntentInputFromProjectionOutbox(store: LocalStore, projectionOutboxId: number, override?: NotificationOverride | null): NotificationIntentInput | null;
1416
+ declare function listRecentBindingsForSession(store: LocalStore, sessionKey: string, conversationId?: string | null, limit?: number): HumanDeliveryBinding[];
1417
+
1227
1418
  type OpenClawTransportMode = 'bridge' | 'channel';
1228
1419
  interface TransportPreferenceState {
1229
1420
  preferred_mode: OpenClawTransportMode;
@@ -1262,6 +1453,7 @@ declare function switchTransportPreference(preferredMode: OpenClawTransportMode,
1262
1453
 
1263
1454
  interface OpenClawIngressRuntimeStatus {
1264
1455
  receive_mode: 'webhook' | 'polling_degraded';
1456
+ human_delivery_mode?: 'projection_outbox' | 'bound_channel_reply' | null;
1265
1457
  reason?: string | null;
1266
1458
  hooks_url?: string | null;
1267
1459
  hooks_base_url?: string | null;
@@ -1286,6 +1478,12 @@ interface OpenClawIngressRuntimeStatus {
1286
1478
  channel_last_repaired_at?: string | null;
1287
1479
  channel_last_error?: string | null;
1288
1480
  channel_consecutive_failures?: number;
1481
+ human_delivery_supported_channels?: string[];
1482
+ human_delivery_unsupported_channels?: string[];
1483
+ human_delivery_last_canary_at?: string | null;
1484
+ human_delivery_last_canary_ok?: boolean | null;
1485
+ human_delivery_last_canary_error?: string | null;
1486
+ human_delivery_channel_capabilities?: Record<string, Partial<HumanDeliveryChannelCapability>> | null;
1289
1487
  status_updated_at?: string | null;
1290
1488
  }
1291
1489
  declare function getIngressRuntimeStatusFilePath(): string;
@@ -1528,4 +1726,66 @@ declare function clearSessionBindingAlert(conversationId: string, filePath?: str
1528
1726
  removed: boolean;
1529
1727
  };
1530
1728
 
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 };
1729
+ type OpenClawAgentLifecycleState = 'activating' | 'ready_waiting_inbound' | 'active_session' | 'decision_pending' | 'human_delivery_pending' | 'human_delivery_acknowledged' | 'degraded' | 'blocked';
1730
+ interface OpenClawAgentState {
1731
+ state: OpenClawAgentLifecycleState;
1732
+ summary: string;
1733
+ reason?: string | null;
1734
+ next_action: string;
1735
+ active_session_key?: string | null;
1736
+ pending_decisions: number;
1737
+ human_delivery_pending: number;
1738
+ human_delivery_unresolved: number;
1739
+ human_delivery_failed: number;
1740
+ human_delivery_acknowledged: number;
1741
+ blocked: boolean;
1742
+ degraded: boolean;
1743
+ }
1744
+ interface DeriveOpenClawAgentStateInput {
1745
+ runtime_status?: OpenClawIngressRuntimeStatus | null;
1746
+ sessions?: Array<Pick<SessionState, 'session_key' | 'active' | 'unread_count'>>;
1747
+ pending_decisions?: number;
1748
+ human_delivery?: Pick<HumanDeliverySummary, 'pending_intents' | 'unresolved_intents' | 'failed_intents' | 'acknowledged_intents'> | null;
1749
+ transport_health?: Pick<TransportHealth, 'state' | 'last_error'> | null;
1750
+ blocked_reason?: string | null;
1751
+ }
1752
+ declare function describeOpenClawAgentState(state: OpenClawAgentLifecycleState): string;
1753
+ declare function nextActionForOpenClawAgentState(state: OpenClawAgentLifecycleState): string;
1754
+ declare function deriveOpenClawAgentState(input: DeriveOpenClawAgentStateInput): OpenClawAgentState;
1755
+
1756
+ interface OpenClawDeliveryContext {
1757
+ channel?: string;
1758
+ to?: string;
1759
+ account_id?: string;
1760
+ thread_id?: string | number;
1761
+ }
1762
+ interface OpenClawSessionEntryRecord {
1763
+ session_key: string;
1764
+ updated_at?: number;
1765
+ origin?: Record<string, unknown> | null;
1766
+ channel?: string | null;
1767
+ delivery_context?: OpenClawDeliveryContext;
1768
+ last_channel?: string | null;
1769
+ last_to?: string | null;
1770
+ last_account_id?: string | null;
1771
+ last_thread_id?: string | number | null;
1772
+ raw: Record<string, unknown>;
1773
+ }
1774
+ interface OpenClawHumanDeliveryBindingCandidate {
1775
+ owner_ref?: string;
1776
+ channel: string;
1777
+ to: string;
1778
+ account_id?: string;
1779
+ thread_id?: string | number;
1780
+ target_key: string;
1781
+ last_inbound_at?: number;
1782
+ raw_session_key: string;
1783
+ }
1784
+ declare function getOpenClawConfigFilePath(): string;
1785
+ declare function getOpenClawSessionStorePath(agentId?: string): string;
1786
+ declare function listOpenClawSessionEntries(filePath?: string): OpenClawSessionEntryRecord[];
1787
+ declare function getOpenClawSessionEntry(sessionKey: string, filePath?: string): OpenClawSessionEntryRecord | null;
1788
+ declare function deriveOwnerRefFromOpenClawSessionEntry(entry: OpenClawSessionEntryRecord): string | undefined;
1789
+ declare function buildHumanDeliveryBindingCandidate(sessionKey: string, filePath?: string): OpenClawHumanDeliveryBindingCandidate | null;
1790
+
1791
+ 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 DeriveOpenClawAgentStateInput, type DirectoryBrowseResponse, type DirectorySelfResponse, type EncryptedPayloadWrapper, type EncryptionIdentityFields, type EncryptionPrivateKeyJwk, type EncryptionPublicKeyJwk, type FeedByDidResponse, type FeedPost, type FeedPublicResponse, type FetchResponse, HUMAN_DELIVERY_CHANNELS, HistoryManager, HttpTransport, type HumanDeliveryBinding, type HumanDeliveryBindingInput, HumanDeliveryBindingManager, type HumanDeliveryBindingStatus, type HumanDeliveryChannel, type HumanDeliveryChannelCapability, type HumanDeliverySummary, LocalStore, type ManagedTransportSwitchResult, type MarkOperatorSeenInput, type NotificationIntent, type NotificationIntentBindingScope, type NotificationIntentInput, NotificationIntentManager, type NotificationIntentStatus, type NotificationIntentType, type NotificationOverride, type OpenClawAgentLifecycleState, type OpenClawAgentState, type OpenClawDeliveryContext, type OpenClawHumanDeliveryBindingCandidate, type OpenClawIngressRuntimeStatus, type OpenClawSessionEntryRecord, 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 ResolveHumanDeliveryBindingInput, type ResolveHumanDeliveryBindingResult, 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, buildHumanDeliveryBindingCandidate, buildHumanDeliveryPayload, buildNotificationIntentInputFromProjectionOutbox, buildProjectionPreview, buildSessionKey, buildSessionSummaryHandoffText, buildTrustPolicyRecommendations, capabilityCardToLegacyCapabilities, clearSessionBindingAlert, decideContactPolicy, decideTaskPolicy, decryptPayloadForIdentity, defaultTrustPolicyDoc, deriveOpenClawAgentState, deriveOwnerRefFromOpenClawSessionEntry, deriveTransportHealth, describeOpenClawAgentState, describeProjectionPreset, encryptPayloadForRecipients, ensureIdentityEncryptionKeys, ensureTokenValid, formatCapabilityCardSummary, generateIdentity, getActiveSessionFilePath, getIdentityPath, getIngressRuntimeStatusFilePath, getOpenClawConfigFilePath, getOpenClawSessionEntry, getOpenClawSessionStorePath, getProfile, getProjectedEventTypes, getProjectionDisposition, getRootDir, getSessionBindingAlertsFilePath, getSessionMapFilePath, getStorePath, getTransportPreferenceFilePath, getTrustRecommendationActionLabel, hasDecisionPromptOutbox, identityExists, isEncryptedPayload, listOpenClawSessionEntries, listPendingDecisionViews, listRecentBindingsForSession, loadIdentity, matchesTrustPolicyRule, nextActionForOpenClawAgentState, normalizeCapabilityCard, normalizeTransportMode, normalizeTrustPolicyDoc, parseNotificationOverride, previewFromPayload, readCurrentActiveSessionKey, readIngressRuntimeStatus, readSessionBindingAlerts, readSessionBindings, readTransportPreference, removeSessionBinding, resolveHumanDeliveryBinding, saveIdentity, setSessionBinding, shouldEncryptConversationPayload, summarizeHumanDelivery, summarizeSinceLastSeen, summarizeTrustPolicyAudit, switchTransportPreference, updateStoredToken, upsertSessionBindingAlert, upsertTrustPolicyRecommendation, writeSessionBindingAlerts, writeSessionBindings, writeTransportPreference };
package/dist/index.js CHANGED
@@ -3,9 +3,12 @@ import {
3
3
  CollaborationEventManager,
4
4
  CollaborationProjectionOutboxManager,
5
5
  ContactManager,
6
+ HUMAN_DELIVERY_CHANNELS,
6
7
  HistoryManager,
7
8
  HttpTransport,
9
+ HumanDeliveryBindingManager,
8
10
  LocalStore,
11
+ NotificationIntentManager,
9
12
  OperatorSeenStateManager,
10
13
  PingAgentClient,
11
14
  SESSION_SUMMARY_FIELDS,
@@ -19,6 +22,9 @@ import {
19
22
  WsSubscription,
20
23
  buildDecisionReminderOutboxMessage,
21
24
  buildDeliveryTimeline,
25
+ buildHumanDeliveryBindingCandidate,
26
+ buildHumanDeliveryPayload,
27
+ buildNotificationIntentInputFromProjectionOutbox,
22
28
  buildProjectionPreview,
23
29
  buildSessionKey,
24
30
  buildSessionSummaryHandoffText,
@@ -29,7 +35,10 @@ import {
29
35
  decideTaskPolicy,
30
36
  decryptPayloadForIdentity,
31
37
  defaultTrustPolicyDoc,
38
+ deriveOpenClawAgentState,
39
+ deriveOwnerRefFromOpenClawSessionEntry,
32
40
  deriveTransportHealth,
41
+ describeOpenClawAgentState,
33
42
  describeProjectionPreset,
34
43
  encryptPayloadForRecipients,
35
44
  ensureIdentityEncryptionKeys,
@@ -39,6 +48,9 @@ import {
39
48
  getActiveSessionFilePath,
40
49
  getIdentityPath,
41
50
  getIngressRuntimeStatusFilePath,
51
+ getOpenClawConfigFilePath,
52
+ getOpenClawSessionEntry,
53
+ getOpenClawSessionStorePath,
42
54
  getProfile,
43
55
  getProjectedEventTypes,
44
56
  getProjectionDisposition,
@@ -51,12 +63,16 @@ import {
51
63
  hasDecisionPromptOutbox,
52
64
  identityExists,
53
65
  isEncryptedPayload,
66
+ listOpenClawSessionEntries,
54
67
  listPendingDecisionViews,
68
+ listRecentBindingsForSession,
55
69
  loadIdentity,
56
70
  matchesTrustPolicyRule,
71
+ nextActionForOpenClawAgentState,
57
72
  normalizeCapabilityCard,
58
73
  normalizeTransportMode,
59
74
  normalizeTrustPolicyDoc,
75
+ parseNotificationOverride,
60
76
  previewFromPayload,
61
77
  readCurrentActiveSessionKey,
62
78
  readIngressRuntimeStatus,
@@ -64,9 +80,11 @@ import {
64
80
  readSessionBindings,
65
81
  readTransportPreference,
66
82
  removeSessionBinding,
83
+ resolveHumanDeliveryBinding,
67
84
  saveIdentity,
68
85
  setSessionBinding,
69
86
  shouldEncryptConversationPayload,
87
+ summarizeHumanDelivery,
70
88
  summarizeSinceLastSeen,
71
89
  summarizeTrustPolicyAudit,
72
90
  switchTransportPreference,
@@ -76,15 +94,18 @@ import {
76
94
  writeSessionBindingAlerts,
77
95
  writeSessionBindings,
78
96
  writeTransportPreference
79
- } from "./chunk-BCYHGKQE.js";
97
+ } from "./chunk-IB7OSFZS.js";
80
98
  export {
81
99
  A2AAdapter,
82
100
  CollaborationEventManager,
83
101
  CollaborationProjectionOutboxManager,
84
102
  ContactManager,
103
+ HUMAN_DELIVERY_CHANNELS,
85
104
  HistoryManager,
86
105
  HttpTransport,
106
+ HumanDeliveryBindingManager,
87
107
  LocalStore,
108
+ NotificationIntentManager,
88
109
  OperatorSeenStateManager,
89
110
  PingAgentClient,
90
111
  SESSION_SUMMARY_FIELDS,
@@ -98,6 +119,9 @@ export {
98
119
  WsSubscription,
99
120
  buildDecisionReminderOutboxMessage,
100
121
  buildDeliveryTimeline,
122
+ buildHumanDeliveryBindingCandidate,
123
+ buildHumanDeliveryPayload,
124
+ buildNotificationIntentInputFromProjectionOutbox,
101
125
  buildProjectionPreview,
102
126
  buildSessionKey,
103
127
  buildSessionSummaryHandoffText,
@@ -108,7 +132,10 @@ export {
108
132
  decideTaskPolicy,
109
133
  decryptPayloadForIdentity,
110
134
  defaultTrustPolicyDoc,
135
+ deriveOpenClawAgentState,
136
+ deriveOwnerRefFromOpenClawSessionEntry,
111
137
  deriveTransportHealth,
138
+ describeOpenClawAgentState,
112
139
  describeProjectionPreset,
113
140
  encryptPayloadForRecipients,
114
141
  ensureIdentityEncryptionKeys,
@@ -118,6 +145,9 @@ export {
118
145
  getActiveSessionFilePath,
119
146
  getIdentityPath,
120
147
  getIngressRuntimeStatusFilePath,
148
+ getOpenClawConfigFilePath,
149
+ getOpenClawSessionEntry,
150
+ getOpenClawSessionStorePath,
121
151
  getProfile,
122
152
  getProjectedEventTypes,
123
153
  getProjectionDisposition,
@@ -130,12 +160,16 @@ export {
130
160
  hasDecisionPromptOutbox,
131
161
  identityExists,
132
162
  isEncryptedPayload,
163
+ listOpenClawSessionEntries,
133
164
  listPendingDecisionViews,
165
+ listRecentBindingsForSession,
134
166
  loadIdentity,
135
167
  matchesTrustPolicyRule,
168
+ nextActionForOpenClawAgentState,
136
169
  normalizeCapabilityCard,
137
170
  normalizeTransportMode,
138
171
  normalizeTrustPolicyDoc,
172
+ parseNotificationOverride,
139
173
  previewFromPayload,
140
174
  readCurrentActiveSessionKey,
141
175
  readIngressRuntimeStatus,
@@ -143,9 +177,11 @@ export {
143
177
  readSessionBindings,
144
178
  readTransportPreference,
145
179
  removeSessionBinding,
180
+ resolveHumanDeliveryBinding,
146
181
  saveIdentity,
147
182
  setSessionBinding,
148
183
  shouldEncryptConversationPayload,
184
+ summarizeHumanDelivery,
149
185
  summarizeSinceLastSeen,
150
186
  summarizeTrustPolicyAudit,
151
187
  switchTransportPreference,