@pingagent/sdk 0.1.15 → 0.1.16
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/bin/pingagent.js +45 -0
- package/dist/chunk-GU5W4KRD.js +5847 -0
- package/dist/chunk-HSVC3KDT.js +5611 -0
- package/dist/index.d.ts +234 -1
- package/dist/index.js +31 -1
- package/dist/web-server.js +234 -19
- package/package.json +1 -1
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,39 @@ declare function clearSessionBindingAlert(conversationId: string, filePath?: str
|
|
|
1528
1726
|
removed: boolean;
|
|
1529
1727
|
};
|
|
1530
1728
|
|
|
1531
|
-
|
|
1729
|
+
interface OpenClawDeliveryContext {
|
|
1730
|
+
channel?: string;
|
|
1731
|
+
to?: string;
|
|
1732
|
+
account_id?: string;
|
|
1733
|
+
thread_id?: string | number;
|
|
1734
|
+
}
|
|
1735
|
+
interface OpenClawSessionEntryRecord {
|
|
1736
|
+
session_key: string;
|
|
1737
|
+
updated_at?: number;
|
|
1738
|
+
origin?: Record<string, unknown> | null;
|
|
1739
|
+
channel?: string | null;
|
|
1740
|
+
delivery_context?: OpenClawDeliveryContext;
|
|
1741
|
+
last_channel?: string | null;
|
|
1742
|
+
last_to?: string | null;
|
|
1743
|
+
last_account_id?: string | null;
|
|
1744
|
+
last_thread_id?: string | number | null;
|
|
1745
|
+
raw: Record<string, unknown>;
|
|
1746
|
+
}
|
|
1747
|
+
interface OpenClawHumanDeliveryBindingCandidate {
|
|
1748
|
+
owner_ref?: string;
|
|
1749
|
+
channel: string;
|
|
1750
|
+
to: string;
|
|
1751
|
+
account_id?: string;
|
|
1752
|
+
thread_id?: string | number;
|
|
1753
|
+
target_key: string;
|
|
1754
|
+
last_inbound_at?: number;
|
|
1755
|
+
raw_session_key: string;
|
|
1756
|
+
}
|
|
1757
|
+
declare function getOpenClawConfigFilePath(): string;
|
|
1758
|
+
declare function getOpenClawSessionStorePath(agentId?: string): string;
|
|
1759
|
+
declare function listOpenClawSessionEntries(filePath?: string): OpenClawSessionEntryRecord[];
|
|
1760
|
+
declare function getOpenClawSessionEntry(sessionKey: string, filePath?: string): OpenClawSessionEntryRecord | null;
|
|
1761
|
+
declare function deriveOwnerRefFromOpenClawSessionEntry(entry: OpenClawSessionEntryRecord): string | undefined;
|
|
1762
|
+
declare function buildHumanDeliveryBindingCandidate(sessionKey: string, filePath?: string): OpenClawHumanDeliveryBindingCandidate | null;
|
|
1763
|
+
|
|
1764
|
+
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, 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 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, deriveOwnerRefFromOpenClawSessionEntry, deriveTransportHealth, 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, 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,6 +35,7 @@ import {
|
|
|
29
35
|
decideTaskPolicy,
|
|
30
36
|
decryptPayloadForIdentity,
|
|
31
37
|
defaultTrustPolicyDoc,
|
|
38
|
+
deriveOwnerRefFromOpenClawSessionEntry,
|
|
32
39
|
deriveTransportHealth,
|
|
33
40
|
describeProjectionPreset,
|
|
34
41
|
encryptPayloadForRecipients,
|
|
@@ -39,6 +46,9 @@ import {
|
|
|
39
46
|
getActiveSessionFilePath,
|
|
40
47
|
getIdentityPath,
|
|
41
48
|
getIngressRuntimeStatusFilePath,
|
|
49
|
+
getOpenClawConfigFilePath,
|
|
50
|
+
getOpenClawSessionEntry,
|
|
51
|
+
getOpenClawSessionStorePath,
|
|
42
52
|
getProfile,
|
|
43
53
|
getProjectedEventTypes,
|
|
44
54
|
getProjectionDisposition,
|
|
@@ -51,12 +61,15 @@ import {
|
|
|
51
61
|
hasDecisionPromptOutbox,
|
|
52
62
|
identityExists,
|
|
53
63
|
isEncryptedPayload,
|
|
64
|
+
listOpenClawSessionEntries,
|
|
54
65
|
listPendingDecisionViews,
|
|
66
|
+
listRecentBindingsForSession,
|
|
55
67
|
loadIdentity,
|
|
56
68
|
matchesTrustPolicyRule,
|
|
57
69
|
normalizeCapabilityCard,
|
|
58
70
|
normalizeTransportMode,
|
|
59
71
|
normalizeTrustPolicyDoc,
|
|
72
|
+
parseNotificationOverride,
|
|
60
73
|
previewFromPayload,
|
|
61
74
|
readCurrentActiveSessionKey,
|
|
62
75
|
readIngressRuntimeStatus,
|
|
@@ -64,9 +77,11 @@ import {
|
|
|
64
77
|
readSessionBindings,
|
|
65
78
|
readTransportPreference,
|
|
66
79
|
removeSessionBinding,
|
|
80
|
+
resolveHumanDeliveryBinding,
|
|
67
81
|
saveIdentity,
|
|
68
82
|
setSessionBinding,
|
|
69
83
|
shouldEncryptConversationPayload,
|
|
84
|
+
summarizeHumanDelivery,
|
|
70
85
|
summarizeSinceLastSeen,
|
|
71
86
|
summarizeTrustPolicyAudit,
|
|
72
87
|
switchTransportPreference,
|
|
@@ -76,15 +91,18 @@ import {
|
|
|
76
91
|
writeSessionBindingAlerts,
|
|
77
92
|
writeSessionBindings,
|
|
78
93
|
writeTransportPreference
|
|
79
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-GU5W4KRD.js";
|
|
80
95
|
export {
|
|
81
96
|
A2AAdapter,
|
|
82
97
|
CollaborationEventManager,
|
|
83
98
|
CollaborationProjectionOutboxManager,
|
|
84
99
|
ContactManager,
|
|
100
|
+
HUMAN_DELIVERY_CHANNELS,
|
|
85
101
|
HistoryManager,
|
|
86
102
|
HttpTransport,
|
|
103
|
+
HumanDeliveryBindingManager,
|
|
87
104
|
LocalStore,
|
|
105
|
+
NotificationIntentManager,
|
|
88
106
|
OperatorSeenStateManager,
|
|
89
107
|
PingAgentClient,
|
|
90
108
|
SESSION_SUMMARY_FIELDS,
|
|
@@ -98,6 +116,9 @@ export {
|
|
|
98
116
|
WsSubscription,
|
|
99
117
|
buildDecisionReminderOutboxMessage,
|
|
100
118
|
buildDeliveryTimeline,
|
|
119
|
+
buildHumanDeliveryBindingCandidate,
|
|
120
|
+
buildHumanDeliveryPayload,
|
|
121
|
+
buildNotificationIntentInputFromProjectionOutbox,
|
|
101
122
|
buildProjectionPreview,
|
|
102
123
|
buildSessionKey,
|
|
103
124
|
buildSessionSummaryHandoffText,
|
|
@@ -108,6 +129,7 @@ export {
|
|
|
108
129
|
decideTaskPolicy,
|
|
109
130
|
decryptPayloadForIdentity,
|
|
110
131
|
defaultTrustPolicyDoc,
|
|
132
|
+
deriveOwnerRefFromOpenClawSessionEntry,
|
|
111
133
|
deriveTransportHealth,
|
|
112
134
|
describeProjectionPreset,
|
|
113
135
|
encryptPayloadForRecipients,
|
|
@@ -118,6 +140,9 @@ export {
|
|
|
118
140
|
getActiveSessionFilePath,
|
|
119
141
|
getIdentityPath,
|
|
120
142
|
getIngressRuntimeStatusFilePath,
|
|
143
|
+
getOpenClawConfigFilePath,
|
|
144
|
+
getOpenClawSessionEntry,
|
|
145
|
+
getOpenClawSessionStorePath,
|
|
121
146
|
getProfile,
|
|
122
147
|
getProjectedEventTypes,
|
|
123
148
|
getProjectionDisposition,
|
|
@@ -130,12 +155,15 @@ export {
|
|
|
130
155
|
hasDecisionPromptOutbox,
|
|
131
156
|
identityExists,
|
|
132
157
|
isEncryptedPayload,
|
|
158
|
+
listOpenClawSessionEntries,
|
|
133
159
|
listPendingDecisionViews,
|
|
160
|
+
listRecentBindingsForSession,
|
|
134
161
|
loadIdentity,
|
|
135
162
|
matchesTrustPolicyRule,
|
|
136
163
|
normalizeCapabilityCard,
|
|
137
164
|
normalizeTransportMode,
|
|
138
165
|
normalizeTrustPolicyDoc,
|
|
166
|
+
parseNotificationOverride,
|
|
139
167
|
previewFromPayload,
|
|
140
168
|
readCurrentActiveSessionKey,
|
|
141
169
|
readIngressRuntimeStatus,
|
|
@@ -143,9 +171,11 @@ export {
|
|
|
143
171
|
readSessionBindings,
|
|
144
172
|
readTransportPreference,
|
|
145
173
|
removeSessionBinding,
|
|
174
|
+
resolveHumanDeliveryBinding,
|
|
146
175
|
saveIdentity,
|
|
147
176
|
setSessionBinding,
|
|
148
177
|
shouldEncryptConversationPayload,
|
|
178
|
+
summarizeHumanDelivery,
|
|
149
179
|
summarizeSinceLastSeen,
|
|
150
180
|
summarizeTrustPolicyAudit,
|
|
151
181
|
switchTransportPreference,
|