@rivus/agent 0.14.1 → 0.14.3

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.
@@ -1,4 +1,4 @@
1
- import { $ as createFeishuPresentationPreparation, $n as createUuidRunIds, B as openJsonlBackgroundSessionDeliveryStore, D as openJsonAutomationTickRepository, F as createRivusMemoryToolDescriptor, Gt as createConfiguredFeishuTextReplySender, Ht as createFeishuTopicContextResolver, Kt as createConfiguredFeishuCardRolloverRuntime, L as createConfiguredFeishuBackgroundSessionDelivery, Mt as createLangfuseAgentTelemetry, N as createProjectMemoryPromptPreparer, Nt as resolveLangfuseTelemetryConfig, O as createScheduledAutomation, Ot as createPiSessionRegistry, Qn as createSystemClock, R as resolveFeishuDeliveryChatId, Rt as createJsonlAgentEventLog, Tt as AUTOMATION_SUPPRESSION_PREFIX, U as openJsonlBackgroundSessionRepository, Vn as mergePiProviderBaseUrlOverride, W as createBackgroundSessionHostTools, _r as openJsonlFeishuCardDeliveryLedger, ar as createJsonFetchRequest, at as openJsonlToolOperationLedger, c as createHumanInteractionToolApprovalGateway, cr as createSessionScheduler, dr as openJsonlFeishuInboxRepository, et as createFeishuDeploymentEndpoint, fn as createLazyFeishuWebSocketEventDispatcher, ir as createAgentHarness, it as openJsonlRecoveryControl, j as openJsonlAgentMemoryService, kt as createPiAgentLoop, l as createRoutedHumanInteractionToolApprovalService, lr as openJsonFeishuSessionStore, m as loadRivusDeploymentManifest, o as createConfiguredFeishuAutomationCardSender, ot as createToolBroker, pt as createFeishuCotPublisher, r as createJsonlHumanInteractionRepository, rn as createConfiguredFeishuOpenApiClient, s as createHumanInteractionEndpointRegistry, st as createAgentsMdInstructionsProvider, t as createConfiguredFeishuHumanInteractionPresenter, tt as createAgentHarnessPooledRuntime, u as createHumanInteractionService, wt as readAutomationPresentation, yr as createFeishuCardDeliveryReconciler, yt as createJsonFileFeishuCardTargetRegistry } from "../chunks/src.js";
1
+ import { $ as createFeishuPresentationPreparation, $n as createUuidRunIds, D as openJsonAutomationTickRepository, F as createRivusMemoryToolDescriptor, G as openJsonlBackgroundSessionDeliveryStore, Gt as createConfiguredFeishuTextReplySender, H as openJsonlBackgroundSessionRepository, Ht as createFeishuTopicContextResolver, Kt as createConfiguredFeishuCardRolloverRuntime, L as createConfiguredFeishuBackgroundSessionDelivery, Mt as createLangfuseAgentTelemetry, N as createProjectMemoryPromptPreparer, Nt as resolveLangfuseTelemetryConfig, O as createScheduledAutomation, Ot as createPiSessionRegistry, Qn as createSystemClock, R as resolveFeishuDeliveryChatId, Rt as createJsonlAgentEventLog, Tt as AUTOMATION_SUPPRESSION_PREFIX, Vn as mergePiProviderBaseUrlOverride, _r as openJsonlFeishuCardDeliveryLedger, ar as createJsonFetchRequest, at as openJsonlToolOperationLedger, c as createHumanInteractionToolApprovalGateway, cr as createSessionScheduler, dr as openJsonlFeishuInboxRepository, et as createFeishuDeploymentEndpoint, fn as createLazyFeishuWebSocketEventDispatcher, ir as createAgentHarness, it as openJsonlRecoveryControl, j as openJsonlAgentMemoryService, kt as createPiAgentLoop, l as createRoutedHumanInteractionToolApprovalService, lr as openJsonFeishuSessionStore, m as loadRivusDeploymentManifest, o as createConfiguredFeishuAutomationCardSender, ot as createToolBroker, pt as createFeishuCotPublisher, r as createJsonlHumanInteractionRepository, rn as createConfiguredFeishuOpenApiClient, s as createHumanInteractionEndpointRegistry, st as createAgentsMdInstructionsProvider, t as createConfiguredFeishuHumanInteractionPresenter, tt as createAgentHarnessPooledRuntime, u as createHumanInteractionService, wt as readAutomationPresentation, yr as createFeishuCardDeliveryReconciler, yt as createJsonFileFeishuCardTargetRegistry, z as createBackgroundSessionHostTools } from "../chunks/src.js";
2
2
  import { V as resolveFeishuEndpointCredentials, a as createWorkspaceRootHandle } from "../chunks/rivus-daemon-cli.js";
3
3
  import { n as createPiSkillRuntime } from "../chunks/pi-skill-tool.js";
4
4
  import { $ as createBackgroundSessionStepSourceMessageId, f as createBackgroundSessionService, t as createBackgroundSessionSupervisor, u as resolveBackgroundSessionSupervisorIntervalMs } from "../chunks/api2.js";
@@ -3059,13 +3059,6 @@ interface AgentMemoryServiceOptions {
3059
3059
  }
3060
3060
  declare function createAgentMemoryService(options?: AgentMemoryServiceOptions): AgentMemoryService;
3061
3061
  //#endregion
3062
- //#region src/modules/background-session/infrastructure/persistence/session/in-memory-background-session-repository.d.ts
3063
- interface CreateBackgroundSessionRepositoryOptions {
3064
- readonly initial?: ReadonlyArray<BackgroundSessionState>;
3065
- readonly persist?: (state: BackgroundSessionState) => Promise<void>;
3066
- }
3067
- declare function createBackgroundSessionRepository(options?: CreateBackgroundSessionRepositoryOptions): BackgroundSessionRepository;
3068
- //#endregion
3069
3062
  //#region src/modules/background-session/infrastructure/persistence/delivery/in-memory-background-session-delivery-store.d.ts
3070
3063
  interface CreateBackgroundSessionDeliveryStoreOptions {
3071
3064
  readonly initial?: ReadonlyArray<BackgroundSessionDeliveryRecord>;
@@ -3073,13 +3066,20 @@ interface CreateBackgroundSessionDeliveryStoreOptions {
3073
3066
  }
3074
3067
  declare function createBackgroundSessionDeliveryStore(options?: CreateBackgroundSessionDeliveryStoreOptions): BackgroundSessionDeliveryStore;
3075
3068
  //#endregion
3076
- //#region src/adapters/agent/background-session-host-tools.d.ts
3077
- interface CreateBackgroundSessionHostToolsOptions {
3078
- readonly createSessionId: () => string;
3079
- readonly definition: ResolvedRivusAgentDefinition;
3080
- readonly service: BackgroundSessionService;
3069
+ //#region src/modules/background-session/infrastructure/persistence/delivery/jsonl-background-session-delivery-store.d.ts
3070
+ declare const BACKGROUND_SESSION_DELIVERY_JSONL_VERSION = 1;
3071
+ interface OpenJsonlBackgroundSessionDeliveryStoreOptions {
3072
+ readonly filePath: string;
3073
+ readonly compactThreshold?: number;
3081
3074
  }
3082
- declare function createBackgroundSessionHostTools(options: CreateBackgroundSessionHostToolsOptions): ReadonlyArray<RivusHostToolDescriptor>;
3075
+ declare function openJsonlBackgroundSessionDeliveryStore(options: OpenJsonlBackgroundSessionDeliveryStoreOptions): Promise<BackgroundSessionDeliveryStore>;
3076
+ //#endregion
3077
+ //#region src/modules/background-session/infrastructure/persistence/session/in-memory-background-session-repository.d.ts
3078
+ interface CreateBackgroundSessionRepositoryOptions {
3079
+ readonly initial?: ReadonlyArray<BackgroundSessionState>;
3080
+ readonly persist?: (state: BackgroundSessionState) => Promise<void>;
3081
+ }
3082
+ declare function createBackgroundSessionRepository(options?: CreateBackgroundSessionRepositoryOptions): BackgroundSessionRepository;
3083
3083
  //#endregion
3084
3084
  //#region src/modules/background-session/infrastructure/persistence/session/jsonl-background-session-repository.d.ts
3085
3085
  declare const BACKGROUND_SESSION_JSONL_VERSION = 1;
@@ -3090,13 +3090,13 @@ interface OpenJsonlBackgroundSessionRepositoryOptions {
3090
3090
  declare function openJsonlBackgroundSessionRepository(options: OpenJsonlBackgroundSessionRepositoryOptions): Promise<BackgroundSessionRepository>;
3091
3091
  declare function isBackgroundSessionState(value: unknown): value is BackgroundSessionState;
3092
3092
  //#endregion
3093
- //#region src/modules/background-session/infrastructure/persistence/delivery/jsonl-background-session-delivery-store.d.ts
3094
- declare const BACKGROUND_SESSION_DELIVERY_JSONL_VERSION = 1;
3095
- interface OpenJsonlBackgroundSessionDeliveryStoreOptions {
3096
- readonly filePath: string;
3097
- readonly compactThreshold?: number;
3093
+ //#region src/adapters/agent/background-session/background-session-host-tools.d.ts
3094
+ interface CreateBackgroundSessionHostToolsOptions {
3095
+ readonly createSessionId: () => string;
3096
+ readonly definition: ResolvedRivusAgentDefinition;
3097
+ readonly service: BackgroundSessionService;
3098
3098
  }
3099
- declare function openJsonlBackgroundSessionDeliveryStore(options: OpenJsonlBackgroundSessionDeliveryStoreOptions): Promise<BackgroundSessionDeliveryStore>;
3099
+ declare function createBackgroundSessionHostTools(options: CreateBackgroundSessionHostToolsOptions): ReadonlyArray<RivusHostToolDescriptor>;
3100
3100
  //#endregion
3101
3101
  //#region src/adapters/feishu/background-session/background-session-delivery.d.ts
3102
3102
  type FeishuBackgroundSessionDeliveryKind = "progress" | "final" | "stopped" | "failed" | "reconciliation";
@@ -3659,4 +3659,4 @@ interface ConfiguredFeishuHumanInteractionPresenterOptions {
3659
3659
  }
3660
3660
  declare function createConfiguredFeishuHumanInteractionPresenter(options: ConfiguredFeishuHumanInteractionPresenterOptions): HumanInteractionPresenter;
3661
3661
  //#endregion
3662
- export { DelegationEdge as $, WorkspaceRootHandle as $a, createRecoveryControl as $c, RivusDaemonCliWriter as $i, FeishuMessageIntakeSummary as $l, FeishuCardKitOpenApiClientOptions as $n, FeishuWorkerLoopOptions as $o, createFeishuTenantAccessTokenProvider as $r, createDefaultAgentHarnessClientFromTextCallback as $s, RivusAgentHost as $t, JsonlFeishuCardDeliveryLedgerOptions as $u, CreateRivusDeploymentBackgroundSessionInput as A, RivusAutomationDeliveryTargetType as Aa, SessionSchedulerDisposed as Ac, AgentEventLogStoreError as Ai, FeishuAgentExecution as Al, createConfiguredFeishuCardKitPublisher as An, FeishuCardRolloverEventType as Ao, resolveLangfuseTelemetryConfig as Ar, resolveFeishuEndpointCredentials as As, RivusMemoryTool as At, HumanInteractionRepositoryError as Au, LoadRivusDeploymentOptions as B, ProjectSkillCatalogEntry as Ba, createAgentRuntimePool as Bc, FeishuEventHandlersOptions as Bi, FeishuCardActionCommand as Bl, FeishuCardTargetCreator as Bn, CardPresentationStatus as Bo, ConfiguredFeishuOpenApiRequest as Br, DefaultAgentHarnessClientFromTextCallbackOptions as Bs, openJsonlBackgroundSessionDeliveryStore as Bt, HumanInteractionFact as Bu, createRoutedHumanInteractionToolApprovalService as C, LoadedRivusDeployment as Ca, FetchLikeResponse as Cc, hasInspectableRunProgress as Cd, FeishuWebSocketDaemonOptions as Ci, FeishuAgentDaemonHandleResult as Cl, createFixedClock as Cn, RivusDaemonStatus as Co, createTelemetryContentRedactor as Cr, OpenClawEnvImportOptions as Cs, ProjectMemoryRecallOptions as Ct, ConsumeToolApprovalInput as Cu, LoadRivusDeploymentManifestOptions as D, RivusPluginLoadStatus as Da, createJsonFetchRequest as Dc, createLazyFeishuWebSocketEventDispatcher as Di, FeishuAgentDaemonSessionResetResult as Dl, FeishuPeriodicFlushOptions as Dn, FeishuCardRollover as Do, LangfuseTelemetryContentMode as Dr, formatRivusEnvFile as Ds, RIVUS_MEMORY_TOOL_VERSION as Dt, ResolveHumanInteractionInput as Du, loadRivusDeploymentManifest as E, RivusPluginLoadError as Ea, JsonHttpResponse as Ec, createPresentedValue as Ed, createFeishuWebSocketDaemon as Ei, FeishuAgentDaemonRunResult as El, FeishuPeriodicFlush as En, createRivusDaemonStatusReporter as Eo, LangfuseTelemetryConfigError as Er, createRivusEnvFromOpenClawConfig as Es, RIVUS_MEMORY_TOOL_PLUGIN_ID as Et, HumanInteractionServiceOptions as Eu, RivusDeploymentBackgroundSession as F, RivusEndpointExperimentalFeatures as Fa, AgentRuntimeInput as Fc, FeishuPeriodicFlushSupervisor as Fi, createFeishuAgentDaemon as Fl, RateLimitedFeishuPublisherOptions as Fn, FeishuCardPresentationHandoffStart as Fo, createConfiguredRivusDaemonBootstrap as Fr, RivusTextFileReader as Fs, FeishuBackgroundSessionDeliveryKind as Ft, CancelledHumanInteractionState as Fu, DelegationService as G, RivusProjectSpaceDeployment as Ga, AgentInstanceRegistryOptions as Gc, FeishuCardActionToast as Gi, UnsupportedFeishuCardAction as Gl, FeishuCotProtocolError as Gn, CompositeRivusDaemonTransportOptions as Go, FeishuOpenApiResponse as Gr, DefaultAgentRuntimeFromCallbackOptions as Gs, createBackgroundSessionHostTools as Gt, RejectedHumanInteractionState as Gu, loadRivusDeployment as H, validateProjectSkillCommand as Ha, createAgentInstanceRegistry as Hc, FeishuSdkReceiveMessagePayload as Hi, FeishuCardActionTriggerPayload as Hl, createConfiguredFeishuCardKitTargetCreator as Hn, acceptsCardPresentationProgress as Ho, FeishuOpenApiClient as Hr, DefaultAgentHarnessFromCallbackOptions as Hs, isBackgroundSessionState as Ht, HumanInteractionResolutionAction as Hu, RivusDeploymentDaemon as I, RivusPluginDeclaration as Ia, AgentRuntimePool as Ic, createFeishuAgentRuntime as Ii, FeishuPromptContextInput as Il, createRateLimitedFeishuPublisher as In, FeishuCardPresentationStore as Io, restoreConfiguredRivusDaemonBootstrap as Ir, RivusThinkingLevel as Is, createBackgroundSessionCard as It, ExpiredHumanInteractionState as Iu, SpawnSubagentRequest as J, WorkspaceInstructionsDiagnostic as Ja, OpenJsonFeishuSessionStoreOptions as Jc, FeishuRawCardJson as Ji, FeishuCancelMessageIntakeSummary as Jl, FeishuCotRunPreparation as Jn, RivusDaemonProcessOptions as Jo, FeishuTenantAccessTokenError as Jr, DefaultAgentRuntimeSessionOptions as Js, AgentMemoryServiceOptions as Jt, ToolApprovalInteraction as Ju, createDelegationService as K, InvalidWorkspaceRoot as Ka, AgentInstanceConflict as Kc, createFeishuCardActionCallbackResponse as Ki, createAgentCommandFromFeishuCardAction as Kl, FeishuCotPublisher as Kn, createCompositeRivusDaemonTransport as Ko, createConfiguredFeishuOpenApiClient as Kr, DefaultAgentRuntimeFromTextCallbackOptions as Ks, createBackgroundSessionDeliveryStore as Kt, SelectedHumanInteractionState as Ku, RivusDeploymentEndpoint as L, validateRivusDeploymentManifest as La, AgentRuntimePoolOptions as Lc, FeishuEventHandlerCardActions as Li, FeishuPromptContextResolver as Ll, FeishuCardKitOpenApiTargetCreatorOptions as Ln, DEFAULT_CARD_STREAM_LEASE_MS as Lo, ConfiguredFeishuCardRolloverRuntime as Lr, loadRivusDaemonConfig as Ls, createConfiguredFeishuBackgroundSessionDelivery as Lt, HumanInteraction as Lu, CreateRivusDeploymentEndpointInput as M, RivusBackgroundSessionsDeployment as Ma, SessionSchedulerStatus as Mc, createJsonlAgentEventLog as Mi, FeishuAgentMessageSideEffects as Ml, FeishuCoalescingPublisherOptions as Mn, FeishuCardRolloverOptions as Mo, ConfiguredRivusDaemonBootstrapOptions as Mr, RivusDaemonConfigError as Ms, createRivusMemoryToolDescriptor as Mt, RequestToolApprovalInput as Mu, CreateRivusDeploymentRuntimeInput as N, RivusDeploymentManifest as Na, createSessionScheduler as Nc, FeishuAgentRuntime as Ni, FeishuAgentPreparedControl as Nl, createCoalescingFeishuPublisher as Nn, FeishuCardRolloverStatus as No, ConfiguredRivusDaemonBootstrapRequest as Nr, RivusDaemonConfigLoaderOptions as Ns, FeishuBackgroundSessionDelivery as Nt, RequestUserDecisionInput as Nu, RivusDeploymentManifestError as O, RivusPluginModuleLoadRequest as Oa, SessionScheduler as Oc, AgentEventLog as Oi, FeishuAgentDaemonSkippedResult as Ol, createFeishuPeriodicFlush as On, FeishuCardRolloverCounters as Oo, LangfuseTelemetryEnv as Or, FeishuEndpointCredentialError as Os, createRivusMemoryToolContract as Ot, createHumanInteractionService as Ou, RivusDeploymentAutomation as P, RivusEndpointDeployment as Pa, AgentRuntimeCancellation as Pc, FeishuAgentRuntimeOptions as Pi, FeishuHumanInteractionActions as Pl, FeishuStreamActionPublisher as Pn, createFeishuCardRollover as Po, ConfiguredRivusDaemonBootstrapResponse as Pr, RivusDaemonEnv as Ps, FeishuBackgroundSessionDeliveryInput as Pt, ApprovedHumanInteractionState as Pu, DelegationDenied as Q, WorkspaceInstructionsView as Qa, RecoveryControlOptions as Qc, RivusDaemonCliOptions as Qi, FeishuMessageIntakeOptions as Ql, createFeishuTopicContextResolver as Qn, FeishuWorkerLoop as Qo, FeishuTenantAccessTokenResponse as Qr, createDefaultAgentHarnessClientFromCallback as Qs, InvalidRivusEndpointBinding as Qt, UserDecisionOption as Qu, createRivusDeploymentDaemon as R, InvalidProjectSkillCatalog as Ra, AgentRuntimeSteering as Rc, FeishuEventHandlerQueue as Ri, composeFeishuTopicPrompt as Rl, FeishuCardPresentationBinder as Rn, CardPresentation as Ro, ConfiguredFeishuCardRolloverRuntimeOptions as Rr, AgentRuntime as Rs, resolveFeishuDeliveryChatId as Rt, HumanInteractionActor as Ru, createHumanInteractionToolApprovalGateway as S, RivusDeploymentComponentLifecycle as Sa, FetchLike as Sc, ToolPresentationStep as Sd, FeishuWebSocketDaemon as Si, FeishuAgentDaemonHandleMessageOptions as Sl, resolveRivusAgentDefinition as Sn, createRivusDaemonStatusHttpServer as So, TelemetryContentRedactorOptions as Sr, OpenClawEnvImportError as Ss, ProjectMemoryRecallIdentity as St, transitionHumanInteraction as Su, createConfiguredRivusDeploymentDaemon as T, RivusAgentDeploymentStatus as Ta, JsonHttpRequest as Tc, PresentedValueOptions as Td, FeishuWebSocketRuntime as Ti, FeishuAgentDaemonOptions as Tl, createTestClock as Tn, RivusDaemonStatusReporterOptions as To, LangfuseTelemetryConfig as Tr, RivusEnvFileVariables as Ts, RIVUS_MEMORY_TOOL_ID as Tt, HumanInteractionService as Tu, SubagentCoordinator as U, InvalidRivusProjectSpace as Ua, AgentInstanceBusy as Uc, createFeishuEventHandlers as Ui, FeishuResolveInteractionCommand as Ul, createFeishuCardKitOpenApiTargetCreator as Un, activeCardPresentation as Uo, FeishuOpenApiError as Ur, DefaultAgentHarnessFromTextCallbackOptions as Us, openJsonlBackgroundSessionRepository as Ut, HumanInteractionTransition as Uu, RivusPluginModule as V, validateProjectSkillCatalog as Va, AgentInstanceRegistry as Vc, FeishuReceiveMessageHandlerPayload as Vi, FeishuCardActionIntakeError as Vl, FeishuCardTargetPreparationOptions as Vn, CardPresentationTransitionDenied as Vo, ConfiguredFeishuOpenApiResponse as Vr, DefaultAgentHarnessClientOptions as Vs, BACKGROUND_SESSION_JSONL_VERSION as Vt, HumanInteractionId as Vu, createSubagentCoordinator as W, ResolvedRivusProjectSpace as Wa, AgentRuntimeDisposed as Wc, FeishuCardActionCallbackResponse as Wi, InvalidFeishuCardAction as Wl, createFeishuCardTargetPreparation as Wn, isCardPresentationHandoffDue as Wo, FeishuOpenApiRequest as Wr, DefaultAgentHarnessOptions as Ws, CreateBackgroundSessionHostToolsOptions as Wt, PendingHumanInteractionState as Wu, DelegationGrant as X, WorkspaceInstructionsRequest as Xa, JsonlFeishuInboxRepositoryOptions as Xc, RivusDaemonBootstrapFactory as Xi, FeishuMessageIntakeBaseSummary as Xl, FeishuTopicContextResolverOptions as Xn, RivusDaemonWorkerLoop as Xo, FeishuTenantAccessTokenProviderOptions as Xr, createDefaultAgentHarness as Xs, AgentMemoryHandle as Xt, UserDecisionInteraction as Xu, SubagentRecord as Y, WorkspaceInstructionsDiagnosticCode as Ya, openJsonFeishuSessionStore as Yc, RivusDaemonBootstrapContext as Yi, FeishuCancelRunCommand as Yl, createFeishuCotPublisher as Yn, RivusDaemonTransport as Yo, FeishuTenantAccessTokenProvider as Yr, createAgentRuntime as Ys, createAgentMemoryService as Yt, ToolApprovalInteractionState as Yu, DelegationRequest as Z, WorkspaceInstructionsSourceError as Za, openJsonlFeishuInboxRepository as Zc, RivusDaemonBootstrapModule as Zi, FeishuMessageIntakeError as Zl, InvalidFeishuTopicContext as Zn, createRivusDaemonProcess as Zo, FeishuTenantAccessTokenRequest as Zr, createDefaultAgentHarnessClient as Zs, AgentMemoryService as Zt, UserDecisionInteractionState as Zu, createConfiguredFeishuMessageReactionSender as _, RivusDeploymentDaemonLifecycleError as _a, createAgentDomainEventHandler as _c, RUN_PRESENTATION_SCHEMA_VERSION as _d, FeishuCardKitTextUpdate as _i, InvalidRecoveryAction as _l, createToolBroker as _n, RivusDaemonShutdownSignal as _o, OpenTelemetryAgentEventSinkOptions as _r, FeishuMessageQueueOptions as _s, CompactorPort as _t, InvalidFeishuSessionReference as _u, FEISHU_AGENT_CARD_ELEMENT_ID as a, RivusDeploymentBootstrapContext as aa, createSystemClock as ac, FeishuCardDeliveryRecord as ad, FeishuCardTargetRegistryOperation as ai, FeishuInboxDeliveryState as al, createFeishuPresentationPreparation as an, failBackgroundSessionStep as ao, createRunPresentationProjector as ar, FeishuMessageWorkerDrainAvailableResult as as, PluginStateConflict as at, describeFeishuMessageIntake as au, HumanInteractionEndpointRegistry as b, RivusDeploymentEndpointStatus as ba, AgentHarnessOptions as bc, RunPresentationPhase as bd, FeishuWebSocketClient as bi, FeishuAgentDaemon as bl, createWorkspaceRootHandle as bn, RivusDaemonStatusHttpServer as bo, createOpenTelemetryAgentTelemetry as br, MergePiProviderBaseUrlOverrideOptions as bs, createAgentLoopPromptTransformer as bt, FeishuReceiveMessagePayload as bu, createFeishuAgentRunCard as c, createRivusDeploymentCliProcess as ca, AgentClientFailure as cc, FeishuStreamAction as cd, createInMemoryFeishuCardTargetRegistry as ci, FeishuInboxRepository as cl, createAgentHarnessPooledRuntime as cn, parkBackgroundSessionForReconciliation as co, createPiSessionRegistry as cr, FeishuReceiveMessageReplayOptions as cs, openJsonAutomationTickRepository as ct, UnsupportedFeishuMessage as cu, createJsonlHumanInteractionRepository as d, RivusDeploymentAutomationReadinessError as da, AgentSessionClient as dc, ConversationProgressDisplay as dd, FeishuCardKitClient as di, DeadLetterRecoveryItem as dl, openJsonlToolOperationLedger as dn, requestBackgroundSessionStop as do, createPiAgentLoop as dr, FeishuReceiveRuntimeStatus as ds, ScheduledAutomation as dt, FeishuSessionResetResult as du, RivusDaemonFeishuReplayRunner as ea, createDefaultAgentHarnessFromCallback as ec, openJsonlFeishuCardDeliveryLedger as ed, FeishuCardRolloverSupervisor as ei, ToolOperationLedger as el, RivusAgentHostOptions as en, appendBackgroundSessionInput as eo, createFeishuCardKitOpenApiClient as er, createFeishuWorkerLoop as es, CommitAutomationOutcomeInput as et, FeishuNewSessionCommand as eu, createInMemoryHumanInteractionRepository as f, RivusDeploymentAutomationStatus as fa, AgentTextDeltaCallback as fc, DEFAULT_CONVERSATION_PROGRESS_DISPLAY as fd, FeishuCardKitFail as fi, DeadLetterRequeueResult as fl, AuthorizationPolicyProvider as fn, requeueInterruptedBackgroundSessionStep as fo, createPiSdkAgentLoop as fr, FeishuEndpointGroupPolicy as fs, ScheduledAutomationClock as ft, FeishuSessionStore as fu, FeishuMessageReactionSender as g, RivusDeploymentDaemonLifecycle as ga, AgentRunUpdateCallback as gc, PresentationStepStatus as gd, FeishuCardKitPublisherOptions as gi, ToolOperationResolutionResult as gl, ToolExecutionRequest as gn, RivusDaemonShutdownControllerOptions as go, PiSdkAgentLoopOptions as gr, FeishuMessageQueue as gs, CompactionService as gt, FeishuSessionReference as gu, createConfiguredFeishuAutomationCardSender as h, RivusDeploymentBackgroundSessionStatus as ha, AgentDomainEventSinkCallback as hc, PresentationStep as hd, FeishuCardKitPublisher as hi, ToolOperationRecoveryItem as hl, ToolBrokerOptions as hn, RivusDaemonShutdownController as ho, PiCreateAgentSessionResult as hr, FeishuMessagePreparedControl as hs, createAutomationMandateStore as ht, FeishuConversationReference as hu, createFeishuHumanInteractionPresenter as i, RivusDeploymentBootstrapAdapters as ia, createDefaultAgentRuntimeFromTextCallback as ic, FeishuCardDeliveryReconcilerOptions as id, FeishuCardTargetRegistry as ii, FeishuInboxDelivery as il, FeishuPresentationPreparationOptions as in, createBackgroundSession as io, RunPresentationProjector as ir, createFeishuMessageWorker as is, createDeliveryOutbox as it, createAgentCommandFromFeishuMessage as iu, CreateRivusDeploymentDaemonOptions as j, RivusAutomationDeployment as ja, SessionSchedulerOptions as jc, JsonlAgentEventLogOptions as ji, FeishuAgentExecutionResult as jl, FeishuCoalescingPublisher as jn, FeishuCardRolloverHandoffResult as jo, ConfiguredRivusDaemonBootstrap as jr, RivusDaemonConfig as js, createRivusMemoryTool as jt, HumanInteractionPresenter as ju, CreateRivusDeploymentAutomationInput as k, RivusAutomationDelivery as ka, SessionSchedulerCapacityExceeded as kc, AgentEventLogOperation as ki, FeishuAgentDaemonSteeredResult as kl, ConfiguredFeishuCardKitPublisherOptions as kn, FeishuCardRolloverEvent as ko, createLangfuseAgentTelemetry as kr, FeishuEndpointCredentials as ks, MemoryTombstoneReceipt as kt, HumanInteractionRepository as ku, createFeishuHumanInteractionCard as l, ProcessDeploymentEndpoint as la, AgentClientSuccess as lc, FeishuStreamProjector as ld, createJsonFileFeishuCardTargetRegistry as li, FeishuInboxRepositoryStateOptions as ll, JsonlRecoveryControlOptions as ln, releaseBackgroundSessionLease as lo, PiAgentLoopOptions as lr, FeishuReceiveMessageReplayResult as ls, OpenJsonAutomationTickRepositoryOptions as lt, readFeishuMessageContent as lu, FeishuAutomationCardSender as m, RivusDeploymentBackgroundSessionReadinessError as ma, AgentDomainEventCallback as mc, ModelPresentationStep as md, FeishuCardKitPresentationUpdate as mi, RecoverySnapshot as ml, ToolBroker as mn, suspendBackgroundSession as mo, PiAgentSessionEvent as mr, FeishuMessageDrainResult as ms, createScheduledAutomation as mt, createFeishuSessionStore as mu, createConfiguredFeishuHumanInteractionPresenter as n, RivusDaemonRecoveryRunner as na, createDefaultAgentRuntime as nc, FeishuCardDeliveryLedgerStateOptions as nd, createFeishuCardRolloverSupervisor as ni, FeishuInboxCompletedState as nl, RivusEndpointInput$1 as nn, completeBackgroundSessionStep as no, FeishuCardPresentationStoreOptions as nr, FeishuMessageWorkerOptions as ns, DeliveryOutbox as nt, FeishuPromptAgentCommand as nu, FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID as o, RivusDeploymentBootstrapFactory as oa, createUuidRunIds as oc, createFeishuCardDeliveryLedger as od, FeishuCardTargetRegistryStoreError as oi, FeishuInboxLeasedState as ol, FeishuDeploymentEndpointOptions as on, isBackgroundSessionDue as oo, PiSessionRegistry as or, FeishuReceiveAcceptedObservation as os, PluginStateStore as ot, FeishuMessageContentInput as ou, FeishuAutomationCardInput as p, RivusDeploymentBackgroundSessionLifecycle as pa, createAgentHarnessClient as pc, AssistantPresentationStep as pd, FeishuCardKitFinish as pi, RecoveryControl as pl, ToolApprovalService as pn, resolveBackgroundSessionReconciliation as po, PiAgentSession as pr, shouldAcceptFeishuEndpointMessage as ps, ScheduledAutomationOptions as pt, FeishuSessionStoreOptions as pu, intersectToolIds as q, WorkspaceInstructionSource as qa, AgentInstanceRecord as qc, createFeishuCardActionErrorResponse as qi, FeishuAgentCommand as ql, FeishuCotPublisherOptions as qn, RivusDaemonProcess as qo, createFeishuOpenApiClient as qr, DefaultAgentRuntimeOptions as qs, createBackgroundSessionRepository as qt, ToolApprovalBinding as qu, FeishuHumanInteractionPresenterOptions as r, runRivusDaemonCli as ra, createDefaultAgentRuntimeFromCallback as rc, FeishuCardDeliveryReconciler as rd, FeishuCardTargetNotFound as ri, FeishuInboxDeadState as rl, createRivusAgentHost as rn, completeBackgroundSessionStop as ro, createFeishuCardPresentationStore as rr, FeishuMessageWorkerQueue as rs, DeliveryOutboxError as rt, FeishuPromptMessageIntakeSummary as ru, FeishuAgentRunCardInput as s, RivusDeploymentCliProcess as sa, AgentClientAttempt as sc, createFeishuCardDeliveryReconciler as sd, JsonFileFeishuCardTargetRegistryOptions as si, FeishuInboxPendingState as sl, createFeishuDeploymentEndpoint as sn, isBackgroundSessionLeaseExpired as so, PiSessionRegistryOptions as sr, FeishuReceiveHandledObservation as ss, createPluginStateStore as st, InvalidFeishuMessageContent as su, ConfiguredFeishuHumanInteractionPresenterOptions as t, RivusDaemonPromptRunner as ta, createDefaultAgentHarnessFromTextCallback as tc, FeishuCardDeliveryLedger as td, FeishuCardRolloverSupervisorOptions as ti, createToolOperationLedger as tl, RivusEndpointDefinition as tn, claimBackgroundSession as to, FeishuCardPresentationNotFound as tr, FeishuMessageWorker as ts, commitAutomationOutcome as tt, FeishuNewSessionMessageIntakeSummary as tu, JsonlHumanInteractionRepositoryOptions as u, RivusDeploymentAutomationLifecycle as ua, AgentHarnessClient as uc, createFeishuStreamProjector as ud, FeishuCardKitCancel as ui, createFeishuInboxRepository as ul, openJsonlRecoveryControl as un, renewBackgroundSessionLease as uo, PiAgentSessionHandle as ur, FeishuReceiveMessageSummary as us, AutomationTickRepositoryCompatibility as ut, FeishuSessionEpochRecord as uu, FeishuTextReplySender as v, RivusDeploymentDaemonStatus as va, createAgentDomainEventSinkFromCallback as vc, ResponsePresentationStep as vd, FeishuCardTarget as vi, RecoveryAction as vl, WorkspaceInstructionsProvider as vn, RivusDaemonSignalSource as vo, OpenTelemetryAgentTelemetry as vr, createFeishuMessageQueue as vs, createCompactionService as vt, createFeishuConversationId as vu, CreateConfiguredRivusDeploymentDaemonOptions as w, ResolvedRivusAutomationDefinition as wa, JsonFetchRequestOptions as wc, PresentedValue as wd, FeishuWebSocketEventDispatcher as wi, FeishuAgentDaemonInteractionResult as wl, createSequenceRunIds as wn, RivusDaemonStatusReporter as wo, LangfuseAgentTelemetry as wr, OpenClawEnvImportResult as ws, createProjectMemoryPromptPreparer as wt, HumanInteractionClock as wu, createHumanInteractionEndpointRegistry as x, RivusDeploymentReadinessError as xa, createAgentHarness as xc, SkillPresentationStep as xd, FeishuWebSocketClientStartOptions as xi, FeishuAgentDaemonCancelResult as xl, resolveRivusProjectSpace as xn, RivusDaemonStatusHttpServerOptions as xo, TelemetryContentRedactor as xr, mergePiProviderBaseUrlOverride as xs, ProjectMemoryPromptInput as xt, HumanInteractionTransitionDenied as xu, createConfiguredFeishuTextReplySender as y, RivusDeploymentEndpointLifecycle as ya, createAgentRunUpdateHandler as yc, RunPresentation as yd, createFeishuCardKitPublisher as yi, createRecoveryAction as yl, createAgentsMdInstructionsProvider as yn, createRivusDaemonShutdownController as yo, createOpenTelemetryAgentEventSink as yr, FeishuMessageAcceptResult as ys, openJsonlAgentMemoryService as yt, createFeishuSessionKey as yu, loadNodeRivusPluginModule as z, ProjectSkillCatalogDiagnostic as za, PooledAgentRuntime as zc, FeishuEventHandlers as zi, FeishuAgentRunPreparation as zl, FeishuCardTargetCreateOptions as zn, CardPresentationChain as zo, createConfiguredFeishuCardRolloverRuntime as zr, DefaultAgentHarnessClientFromCallbackOptions as zs, BACKGROUND_SESSION_DELIVERY_JSONL_VERSION as zt, HumanInteractionBase as zu };
3662
+ export { DelegationEdge as $, WorkspaceRootHandle as $a, createRecoveryControl as $c, RivusDaemonCliWriter as $i, FeishuMessageIntakeSummary as $l, FeishuCardKitOpenApiClientOptions as $n, FeishuWorkerLoopOptions as $o, createFeishuTenantAccessTokenProvider as $r, createDefaultAgentHarnessClientFromTextCallback as $s, RivusAgentHost as $t, JsonlFeishuCardDeliveryLedgerOptions as $u, CreateRivusDeploymentBackgroundSessionInput as A, RivusAutomationDeliveryTargetType as Aa, SessionSchedulerDisposed as Ac, AgentEventLogStoreError as Ai, FeishuAgentExecution as Al, createConfiguredFeishuCardKitPublisher as An, FeishuCardRolloverEventType as Ao, resolveLangfuseTelemetryConfig as Ar, resolveFeishuEndpointCredentials as As, RivusMemoryTool as At, HumanInteractionRepositoryError as Au, LoadRivusDeploymentOptions as B, ProjectSkillCatalogEntry as Ba, createAgentRuntimePool as Bc, FeishuEventHandlersOptions as Bi, FeishuCardActionCommand as Bl, FeishuCardTargetCreator as Bn, CardPresentationStatus as Bo, ConfiguredFeishuOpenApiRequest as Br, DefaultAgentHarnessClientFromTextCallbackOptions as Bs, createBackgroundSessionHostTools as Bt, HumanInteractionFact as Bu, createRoutedHumanInteractionToolApprovalService as C, LoadedRivusDeployment as Ca, FetchLikeResponse as Cc, hasInspectableRunProgress as Cd, FeishuWebSocketDaemonOptions as Ci, FeishuAgentDaemonHandleResult as Cl, createFixedClock as Cn, RivusDaemonStatus as Co, createTelemetryContentRedactor as Cr, OpenClawEnvImportOptions as Cs, ProjectMemoryRecallOptions as Ct, ConsumeToolApprovalInput as Cu, LoadRivusDeploymentManifestOptions as D, RivusPluginLoadStatus as Da, createJsonFetchRequest as Dc, createLazyFeishuWebSocketEventDispatcher as Di, FeishuAgentDaemonSessionResetResult as Dl, FeishuPeriodicFlushOptions as Dn, FeishuCardRollover as Do, LangfuseTelemetryContentMode as Dr, formatRivusEnvFile as Ds, RIVUS_MEMORY_TOOL_VERSION as Dt, ResolveHumanInteractionInput as Du, loadRivusDeploymentManifest as E, RivusPluginLoadError as Ea, JsonHttpResponse as Ec, createPresentedValue as Ed, createFeishuWebSocketDaemon as Ei, FeishuAgentDaemonRunResult as El, FeishuPeriodicFlush as En, createRivusDaemonStatusReporter as Eo, LangfuseTelemetryConfigError as Er, createRivusEnvFromOpenClawConfig as Es, RIVUS_MEMORY_TOOL_PLUGIN_ID as Et, HumanInteractionServiceOptions as Eu, RivusDeploymentBackgroundSession as F, RivusEndpointExperimentalFeatures as Fa, AgentRuntimeInput as Fc, FeishuPeriodicFlushSupervisor as Fi, createFeishuAgentDaemon as Fl, RateLimitedFeishuPublisherOptions as Fn, FeishuCardPresentationHandoffStart as Fo, createConfiguredRivusDaemonBootstrap as Fr, RivusTextFileReader as Fs, FeishuBackgroundSessionDeliveryKind as Ft, CancelledHumanInteractionState as Fu, DelegationService as G, RivusProjectSpaceDeployment as Ga, AgentInstanceRegistryOptions as Gc, FeishuCardActionToast as Gi, UnsupportedFeishuCardAction as Gl, FeishuCotProtocolError as Gn, CompositeRivusDaemonTransportOptions as Go, FeishuOpenApiResponse as Gr, DefaultAgentRuntimeFromCallbackOptions as Gs, BACKGROUND_SESSION_DELIVERY_JSONL_VERSION as Gt, RejectedHumanInteractionState as Gu, loadRivusDeployment as H, validateProjectSkillCommand as Ha, createAgentInstanceRegistry as Hc, FeishuSdkReceiveMessagePayload as Hi, FeishuCardActionTriggerPayload as Hl, createConfiguredFeishuCardKitTargetCreator as Hn, acceptsCardPresentationProgress as Ho, FeishuOpenApiClient as Hr, DefaultAgentHarnessFromCallbackOptions as Hs, isBackgroundSessionState as Ht, HumanInteractionResolutionAction as Hu, RivusDeploymentDaemon as I, RivusPluginDeclaration as Ia, AgentRuntimePool as Ic, createFeishuAgentRuntime as Ii, FeishuPromptContextInput as Il, createRateLimitedFeishuPublisher as In, FeishuCardPresentationStore as Io, restoreConfiguredRivusDaemonBootstrap as Ir, RivusThinkingLevel as Is, createBackgroundSessionCard as It, ExpiredHumanInteractionState as Iu, SpawnSubagentRequest as J, WorkspaceInstructionsDiagnostic as Ja, OpenJsonFeishuSessionStoreOptions as Jc, FeishuRawCardJson as Ji, FeishuCancelMessageIntakeSummary as Jl, FeishuCotRunPreparation as Jn, RivusDaemonProcessOptions as Jo, FeishuTenantAccessTokenError as Jr, DefaultAgentRuntimeSessionOptions as Js, AgentMemoryServiceOptions as Jt, ToolApprovalInteraction as Ju, createDelegationService as K, InvalidWorkspaceRoot as Ka, AgentInstanceConflict as Kc, createFeishuCardActionCallbackResponse as Ki, createAgentCommandFromFeishuCardAction as Kl, FeishuCotPublisher as Kn, createCompositeRivusDaemonTransport as Ko, createConfiguredFeishuOpenApiClient as Kr, DefaultAgentRuntimeFromTextCallbackOptions as Ks, openJsonlBackgroundSessionDeliveryStore as Kt, SelectedHumanInteractionState as Ku, RivusDeploymentEndpoint as L, validateRivusDeploymentManifest as La, AgentRuntimePoolOptions as Lc, FeishuEventHandlerCardActions as Li, FeishuPromptContextResolver as Ll, FeishuCardKitOpenApiTargetCreatorOptions as Ln, DEFAULT_CARD_STREAM_LEASE_MS as Lo, ConfiguredFeishuCardRolloverRuntime as Lr, loadRivusDaemonConfig as Ls, createConfiguredFeishuBackgroundSessionDelivery as Lt, HumanInteraction as Lu, CreateRivusDeploymentEndpointInput as M, RivusBackgroundSessionsDeployment as Ma, SessionSchedulerStatus as Mc, createJsonlAgentEventLog as Mi, FeishuAgentMessageSideEffects as Ml, FeishuCoalescingPublisherOptions as Mn, FeishuCardRolloverOptions as Mo, ConfiguredRivusDaemonBootstrapOptions as Mr, RivusDaemonConfigError as Ms, createRivusMemoryToolDescriptor as Mt, RequestToolApprovalInput as Mu, CreateRivusDeploymentRuntimeInput as N, RivusDeploymentManifest as Na, createSessionScheduler as Nc, FeishuAgentRuntime as Ni, FeishuAgentPreparedControl as Nl, createCoalescingFeishuPublisher as Nn, FeishuCardRolloverStatus as No, ConfiguredRivusDaemonBootstrapRequest as Nr, RivusDaemonConfigLoaderOptions as Ns, FeishuBackgroundSessionDelivery as Nt, RequestUserDecisionInput as Nu, RivusDeploymentManifestError as O, RivusPluginModuleLoadRequest as Oa, SessionScheduler as Oc, AgentEventLog as Oi, FeishuAgentDaemonSkippedResult as Ol, createFeishuPeriodicFlush as On, FeishuCardRolloverCounters as Oo, LangfuseTelemetryEnv as Or, FeishuEndpointCredentialError as Os, createRivusMemoryToolContract as Ot, createHumanInteractionService as Ou, RivusDeploymentAutomation as P, RivusEndpointDeployment as Pa, AgentRuntimeCancellation as Pc, FeishuAgentRuntimeOptions as Pi, FeishuHumanInteractionActions as Pl, FeishuStreamActionPublisher as Pn, createFeishuCardRollover as Po, ConfiguredRivusDaemonBootstrapResponse as Pr, RivusDaemonEnv as Ps, FeishuBackgroundSessionDeliveryInput as Pt, ApprovedHumanInteractionState as Pu, DelegationDenied as Q, WorkspaceInstructionsView as Qa, RecoveryControlOptions as Qc, RivusDaemonCliOptions as Qi, FeishuMessageIntakeOptions as Ql, createFeishuTopicContextResolver as Qn, FeishuWorkerLoop as Qo, FeishuTenantAccessTokenResponse as Qr, createDefaultAgentHarnessClientFromCallback as Qs, InvalidRivusEndpointBinding as Qt, UserDecisionOption as Qu, createRivusDeploymentDaemon as R, InvalidProjectSkillCatalog as Ra, AgentRuntimeSteering as Rc, FeishuEventHandlerQueue as Ri, composeFeishuTopicPrompt as Rl, FeishuCardPresentationBinder as Rn, CardPresentation as Ro, ConfiguredFeishuCardRolloverRuntimeOptions as Rr, AgentRuntime as Rs, resolveFeishuDeliveryChatId as Rt, HumanInteractionActor as Ru, createHumanInteractionToolApprovalGateway as S, RivusDeploymentComponentLifecycle as Sa, FetchLike as Sc, ToolPresentationStep as Sd, FeishuWebSocketDaemon as Si, FeishuAgentDaemonHandleMessageOptions as Sl, resolveRivusAgentDefinition as Sn, createRivusDaemonStatusHttpServer as So, TelemetryContentRedactorOptions as Sr, OpenClawEnvImportError as Ss, ProjectMemoryRecallIdentity as St, transitionHumanInteraction as Su, createConfiguredRivusDeploymentDaemon as T, RivusAgentDeploymentStatus as Ta, JsonHttpRequest as Tc, PresentedValueOptions as Td, FeishuWebSocketRuntime as Ti, FeishuAgentDaemonOptions as Tl, createTestClock as Tn, RivusDaemonStatusReporterOptions as To, LangfuseTelemetryConfig as Tr, RivusEnvFileVariables as Ts, RIVUS_MEMORY_TOOL_ID as Tt, HumanInteractionService as Tu, SubagentCoordinator as U, InvalidRivusProjectSpace as Ua, AgentInstanceBusy as Uc, createFeishuEventHandlers as Ui, FeishuResolveInteractionCommand as Ul, createFeishuCardKitOpenApiTargetCreator as Un, activeCardPresentation as Uo, FeishuOpenApiError as Ur, DefaultAgentHarnessFromTextCallbackOptions as Us, openJsonlBackgroundSessionRepository as Ut, HumanInteractionTransition as Uu, RivusPluginModule as V, validateProjectSkillCatalog as Va, AgentInstanceRegistry as Vc, FeishuReceiveMessageHandlerPayload as Vi, FeishuCardActionIntakeError as Vl, FeishuCardTargetPreparationOptions as Vn, CardPresentationTransitionDenied as Vo, ConfiguredFeishuOpenApiResponse as Vr, DefaultAgentHarnessClientOptions as Vs, BACKGROUND_SESSION_JSONL_VERSION as Vt, HumanInteractionId as Vu, createSubagentCoordinator as W, ResolvedRivusProjectSpace as Wa, AgentRuntimeDisposed as Wc, FeishuCardActionCallbackResponse as Wi, InvalidFeishuCardAction as Wl, createFeishuCardTargetPreparation as Wn, isCardPresentationHandoffDue as Wo, FeishuOpenApiRequest as Wr, DefaultAgentHarnessOptions as Ws, createBackgroundSessionRepository as Wt, PendingHumanInteractionState as Wu, DelegationGrant as X, WorkspaceInstructionsRequest as Xa, JsonlFeishuInboxRepositoryOptions as Xc, RivusDaemonBootstrapFactory as Xi, FeishuMessageIntakeBaseSummary as Xl, FeishuTopicContextResolverOptions as Xn, RivusDaemonWorkerLoop as Xo, FeishuTenantAccessTokenProviderOptions as Xr, createDefaultAgentHarness as Xs, AgentMemoryHandle as Xt, UserDecisionInteraction as Xu, SubagentRecord as Y, WorkspaceInstructionsDiagnosticCode as Ya, openJsonFeishuSessionStore as Yc, RivusDaemonBootstrapContext as Yi, FeishuCancelRunCommand as Yl, createFeishuCotPublisher as Yn, RivusDaemonTransport as Yo, FeishuTenantAccessTokenProvider as Yr, createAgentRuntime as Ys, createAgentMemoryService as Yt, ToolApprovalInteractionState as Yu, DelegationRequest as Z, WorkspaceInstructionsSourceError as Za, openJsonlFeishuInboxRepository as Zc, RivusDaemonBootstrapModule as Zi, FeishuMessageIntakeError as Zl, InvalidFeishuTopicContext as Zn, createRivusDaemonProcess as Zo, FeishuTenantAccessTokenRequest as Zr, createDefaultAgentHarnessClient as Zs, AgentMemoryService as Zt, UserDecisionInteractionState as Zu, createConfiguredFeishuMessageReactionSender as _, RivusDeploymentDaemonLifecycleError as _a, createAgentDomainEventHandler as _c, RUN_PRESENTATION_SCHEMA_VERSION as _d, FeishuCardKitTextUpdate as _i, InvalidRecoveryAction as _l, createToolBroker as _n, RivusDaemonShutdownSignal as _o, OpenTelemetryAgentEventSinkOptions as _r, FeishuMessageQueueOptions as _s, CompactorPort as _t, InvalidFeishuSessionReference as _u, FEISHU_AGENT_CARD_ELEMENT_ID as a, RivusDeploymentBootstrapContext as aa, createSystemClock as ac, FeishuCardDeliveryRecord as ad, FeishuCardTargetRegistryOperation as ai, FeishuInboxDeliveryState as al, createFeishuPresentationPreparation as an, failBackgroundSessionStep as ao, createRunPresentationProjector as ar, FeishuMessageWorkerDrainAvailableResult as as, PluginStateConflict as at, describeFeishuMessageIntake as au, HumanInteractionEndpointRegistry as b, RivusDeploymentEndpointStatus as ba, AgentHarnessOptions as bc, RunPresentationPhase as bd, FeishuWebSocketClient as bi, FeishuAgentDaemon as bl, createWorkspaceRootHandle as bn, RivusDaemonStatusHttpServer as bo, createOpenTelemetryAgentTelemetry as br, MergePiProviderBaseUrlOverrideOptions as bs, createAgentLoopPromptTransformer as bt, FeishuReceiveMessagePayload as bu, createFeishuAgentRunCard as c, createRivusDeploymentCliProcess as ca, AgentClientFailure as cc, FeishuStreamAction as cd, createInMemoryFeishuCardTargetRegistry as ci, FeishuInboxRepository as cl, createAgentHarnessPooledRuntime as cn, parkBackgroundSessionForReconciliation as co, createPiSessionRegistry as cr, FeishuReceiveMessageReplayOptions as cs, openJsonAutomationTickRepository as ct, UnsupportedFeishuMessage as cu, createJsonlHumanInteractionRepository as d, RivusDeploymentAutomationReadinessError as da, AgentSessionClient as dc, ConversationProgressDisplay as dd, FeishuCardKitClient as di, DeadLetterRecoveryItem as dl, openJsonlToolOperationLedger as dn, requestBackgroundSessionStop as do, createPiAgentLoop as dr, FeishuReceiveRuntimeStatus as ds, ScheduledAutomation as dt, FeishuSessionResetResult as du, RivusDaemonFeishuReplayRunner as ea, createDefaultAgentHarnessFromCallback as ec, openJsonlFeishuCardDeliveryLedger as ed, FeishuCardRolloverSupervisor as ei, ToolOperationLedger as el, RivusAgentHostOptions as en, appendBackgroundSessionInput as eo, createFeishuCardKitOpenApiClient as er, createFeishuWorkerLoop as es, CommitAutomationOutcomeInput as et, FeishuNewSessionCommand as eu, createInMemoryHumanInteractionRepository as f, RivusDeploymentAutomationStatus as fa, AgentTextDeltaCallback as fc, DEFAULT_CONVERSATION_PROGRESS_DISPLAY as fd, FeishuCardKitFail as fi, DeadLetterRequeueResult as fl, AuthorizationPolicyProvider as fn, requeueInterruptedBackgroundSessionStep as fo, createPiSdkAgentLoop as fr, FeishuEndpointGroupPolicy as fs, ScheduledAutomationClock as ft, FeishuSessionStore as fu, FeishuMessageReactionSender as g, RivusDeploymentDaemonLifecycle as ga, AgentRunUpdateCallback as gc, PresentationStepStatus as gd, FeishuCardKitPublisherOptions as gi, ToolOperationResolutionResult as gl, ToolExecutionRequest as gn, RivusDaemonShutdownControllerOptions as go, PiSdkAgentLoopOptions as gr, FeishuMessageQueue as gs, CompactionService as gt, FeishuSessionReference as gu, createConfiguredFeishuAutomationCardSender as h, RivusDeploymentBackgroundSessionStatus as ha, AgentDomainEventSinkCallback as hc, PresentationStep as hd, FeishuCardKitPublisher as hi, ToolOperationRecoveryItem as hl, ToolBrokerOptions as hn, RivusDaemonShutdownController as ho, PiCreateAgentSessionResult as hr, FeishuMessagePreparedControl as hs, createAutomationMandateStore as ht, FeishuConversationReference as hu, createFeishuHumanInteractionPresenter as i, RivusDeploymentBootstrapAdapters as ia, createDefaultAgentRuntimeFromTextCallback as ic, FeishuCardDeliveryReconcilerOptions as id, FeishuCardTargetRegistry as ii, FeishuInboxDelivery as il, FeishuPresentationPreparationOptions as in, createBackgroundSession as io, RunPresentationProjector as ir, createFeishuMessageWorker as is, createDeliveryOutbox as it, createAgentCommandFromFeishuMessage as iu, CreateRivusDeploymentDaemonOptions as j, RivusAutomationDeployment as ja, SessionSchedulerOptions as jc, JsonlAgentEventLogOptions as ji, FeishuAgentExecutionResult as jl, FeishuCoalescingPublisher as jn, FeishuCardRolloverHandoffResult as jo, ConfiguredRivusDaemonBootstrap as jr, RivusDaemonConfig as js, createRivusMemoryTool as jt, HumanInteractionPresenter as ju, CreateRivusDeploymentAutomationInput as k, RivusAutomationDelivery as ka, SessionSchedulerCapacityExceeded as kc, AgentEventLogOperation as ki, FeishuAgentDaemonSteeredResult as kl, ConfiguredFeishuCardKitPublisherOptions as kn, FeishuCardRolloverEvent as ko, createLangfuseAgentTelemetry as kr, FeishuEndpointCredentials as ks, MemoryTombstoneReceipt as kt, HumanInteractionRepository as ku, createFeishuHumanInteractionCard as l, ProcessDeploymentEndpoint as la, AgentClientSuccess as lc, FeishuStreamProjector as ld, createJsonFileFeishuCardTargetRegistry as li, FeishuInboxRepositoryStateOptions as ll, JsonlRecoveryControlOptions as ln, releaseBackgroundSessionLease as lo, PiAgentLoopOptions as lr, FeishuReceiveMessageReplayResult as ls, OpenJsonAutomationTickRepositoryOptions as lt, readFeishuMessageContent as lu, FeishuAutomationCardSender as m, RivusDeploymentBackgroundSessionReadinessError as ma, AgentDomainEventCallback as mc, ModelPresentationStep as md, FeishuCardKitPresentationUpdate as mi, RecoverySnapshot as ml, ToolBroker as mn, suspendBackgroundSession as mo, PiAgentSessionEvent as mr, FeishuMessageDrainResult as ms, createScheduledAutomation as mt, createFeishuSessionStore as mu, createConfiguredFeishuHumanInteractionPresenter as n, RivusDaemonRecoveryRunner as na, createDefaultAgentRuntime as nc, FeishuCardDeliveryLedgerStateOptions as nd, createFeishuCardRolloverSupervisor as ni, FeishuInboxCompletedState as nl, RivusEndpointInput$1 as nn, completeBackgroundSessionStep as no, FeishuCardPresentationStoreOptions as nr, FeishuMessageWorkerOptions as ns, DeliveryOutbox as nt, FeishuPromptAgentCommand as nu, FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID as o, RivusDeploymentBootstrapFactory as oa, createUuidRunIds as oc, createFeishuCardDeliveryLedger as od, FeishuCardTargetRegistryStoreError as oi, FeishuInboxLeasedState as ol, FeishuDeploymentEndpointOptions as on, isBackgroundSessionDue as oo, PiSessionRegistry as or, FeishuReceiveAcceptedObservation as os, PluginStateStore as ot, FeishuMessageContentInput as ou, FeishuAutomationCardInput as p, RivusDeploymentBackgroundSessionLifecycle as pa, createAgentHarnessClient as pc, AssistantPresentationStep as pd, FeishuCardKitFinish as pi, RecoveryControl as pl, ToolApprovalService as pn, resolveBackgroundSessionReconciliation as po, PiAgentSession as pr, shouldAcceptFeishuEndpointMessage as ps, ScheduledAutomationOptions as pt, FeishuSessionStoreOptions as pu, intersectToolIds as q, WorkspaceInstructionSource as qa, AgentInstanceRecord as qc, createFeishuCardActionErrorResponse as qi, FeishuAgentCommand as ql, FeishuCotPublisherOptions as qn, RivusDaemonProcess as qo, createFeishuOpenApiClient as qr, DefaultAgentRuntimeOptions as qs, createBackgroundSessionDeliveryStore as qt, ToolApprovalBinding as qu, FeishuHumanInteractionPresenterOptions as r, runRivusDaemonCli as ra, createDefaultAgentRuntimeFromCallback as rc, FeishuCardDeliveryReconciler as rd, FeishuCardTargetNotFound as ri, FeishuInboxDeadState as rl, createRivusAgentHost as rn, completeBackgroundSessionStop as ro, createFeishuCardPresentationStore as rr, FeishuMessageWorkerQueue as rs, DeliveryOutboxError as rt, FeishuPromptMessageIntakeSummary as ru, FeishuAgentRunCardInput as s, RivusDeploymentCliProcess as sa, AgentClientAttempt as sc, createFeishuCardDeliveryReconciler as sd, JsonFileFeishuCardTargetRegistryOptions as si, FeishuInboxPendingState as sl, createFeishuDeploymentEndpoint as sn, isBackgroundSessionLeaseExpired as so, PiSessionRegistryOptions as sr, FeishuReceiveHandledObservation as ss, createPluginStateStore as st, InvalidFeishuMessageContent as su, ConfiguredFeishuHumanInteractionPresenterOptions as t, RivusDaemonPromptRunner as ta, createDefaultAgentHarnessFromTextCallback as tc, FeishuCardDeliveryLedger as td, FeishuCardRolloverSupervisorOptions as ti, createToolOperationLedger as tl, RivusEndpointDefinition as tn, claimBackgroundSession as to, FeishuCardPresentationNotFound as tr, FeishuMessageWorker as ts, commitAutomationOutcome as tt, FeishuNewSessionMessageIntakeSummary as tu, JsonlHumanInteractionRepositoryOptions as u, RivusDeploymentAutomationLifecycle as ua, AgentHarnessClient as uc, createFeishuStreamProjector as ud, FeishuCardKitCancel as ui, createFeishuInboxRepository as ul, openJsonlRecoveryControl as un, renewBackgroundSessionLease as uo, PiAgentSessionHandle as ur, FeishuReceiveMessageSummary as us, AutomationTickRepositoryCompatibility as ut, FeishuSessionEpochRecord as uu, FeishuTextReplySender as v, RivusDeploymentDaemonStatus as va, createAgentDomainEventSinkFromCallback as vc, ResponsePresentationStep as vd, FeishuCardTarget as vi, RecoveryAction as vl, WorkspaceInstructionsProvider as vn, RivusDaemonSignalSource as vo, OpenTelemetryAgentTelemetry as vr, createFeishuMessageQueue as vs, createCompactionService as vt, createFeishuConversationId as vu, CreateConfiguredRivusDeploymentDaemonOptions as w, ResolvedRivusAutomationDefinition as wa, JsonFetchRequestOptions as wc, PresentedValue as wd, FeishuWebSocketEventDispatcher as wi, FeishuAgentDaemonInteractionResult as wl, createSequenceRunIds as wn, RivusDaemonStatusReporter as wo, LangfuseAgentTelemetry as wr, OpenClawEnvImportResult as ws, createProjectMemoryPromptPreparer as wt, HumanInteractionClock as wu, createHumanInteractionEndpointRegistry as x, RivusDeploymentReadinessError as xa, createAgentHarness as xc, SkillPresentationStep as xd, FeishuWebSocketClientStartOptions as xi, FeishuAgentDaemonCancelResult as xl, resolveRivusProjectSpace as xn, RivusDaemonStatusHttpServerOptions as xo, TelemetryContentRedactor as xr, mergePiProviderBaseUrlOverride as xs, ProjectMemoryPromptInput as xt, HumanInteractionTransitionDenied as xu, createConfiguredFeishuTextReplySender as y, RivusDeploymentEndpointLifecycle as ya, createAgentRunUpdateHandler as yc, RunPresentation as yd, createFeishuCardKitPublisher as yi, createRecoveryAction as yl, createAgentsMdInstructionsProvider as yn, createRivusDaemonShutdownController as yo, createOpenTelemetryAgentEventSink as yr, FeishuMessageAcceptResult as ys, openJsonlAgentMemoryService as yt, createFeishuSessionKey as yu, loadNodeRivusPluginModule as z, ProjectSkillCatalogDiagnostic as za, PooledAgentRuntime as zc, FeishuEventHandlers as zi, FeishuAgentRunPreparation as zl, FeishuCardTargetCreateOptions as zn, CardPresentationChain as zo, createConfiguredFeishuCardRolloverRuntime as zr, DefaultAgentHarnessClientFromCallbackOptions as zs, CreateBackgroundSessionHostToolsOptions as zt, HumanInteractionBase as zu };
@@ -1108,7 +1108,7 @@ function decodeInboundDeliverySnapshots(raw, options) {
1108
1108
  if (delivery.revision !== (previous?.revision ?? 0) + 1) throw new Error(`invalid ${options.label} revision at line ${index + 1}`);
1109
1109
  try {
1110
1110
  if (previous) {
1111
- if (!isValidInboundDeliveryTransition(previous, delivery)) throw new Error("transition");
1111
+ if (!isValidPersistedTransition(previous, delivery, options.acceptLegacySameAttemptClaims ?? false)) throw new Error("transition");
1112
1112
  } else validateNewInboundDelivery(delivery);
1113
1113
  } catch {
1114
1114
  throw new Error(`invalid ${options.label} transition at line ${index + 1}`);
@@ -1153,6 +1153,14 @@ function decodeDelivery(value, payloadCodec) {
1153
1153
  function isEnvelope(value) {
1154
1154
  return isRecord$5(value) && value.version === 1 && "delivery" in value;
1155
1155
  }
1156
+ function isValidPersistedTransition(previous, next, acceptLegacySameAttemptClaims) {
1157
+ if (isValidInboundDeliveryTransition(previous, next)) return true;
1158
+ if (!acceptLegacySameAttemptClaims || previous.state.status !== "pending" || next.state.status !== "leased" || next.attempts !== previous.attempts) return false;
1159
+ return isValidInboundDeliveryTransition(previous, {
1160
+ ...next,
1161
+ attempts: next.attempts + 1
1162
+ });
1163
+ }
1156
1164
  //#endregion
1157
1165
  //#region src/modules/inbound-delivery/infrastructure/persistence/delivery/jsonl-inbound-delivery-repository.ts
1158
1166
  function openJsonlInboundDeliveryRepository(options) {
@@ -1160,6 +1168,7 @@ function openJsonlInboundDeliveryRepository(options) {
1160
1168
  catch: (error) => error,
1161
1169
  try: () => readPersistenceFile(options.filePath)
1162
1170
  }).pipe(Effect.map((raw) => decodeInboundDeliverySnapshots(raw, {
1171
+ ...options.acceptLegacySameAttemptClaims === void 0 ? {} : { acceptLegacySameAttemptClaims: options.acceptLegacySameAttemptClaims },
1163
1172
  label: options.label ?? "Inbound Delivery",
1164
1173
  payload: options.payload
1165
1174
  })), Effect.map((initial) => createInMemoryInboundDeliveryRepository({
@@ -1588,6 +1597,7 @@ function nonEmpty$1(value) {
1588
1597
  //#region src/adapters/compatibility/inbound-delivery/jsonl-feishu-inbox-repository.ts
1589
1598
  function openJsonlFeishuInboxRepository(options) {
1590
1599
  return Effect.runPromise(openJsonlInboundDeliveryRepository({
1600
+ acceptLegacySameAttemptClaims: true,
1591
1601
  filePath: options.filePath,
1592
1602
  label: "Feishu inbox",
1593
1603
  payload: feishuInboundDeliveryPayloadCodec
@@ -7824,6 +7834,14 @@ function adaptMemoryHandle(handle) {
7824
7834
  return Object.freeze(facade);
7825
7835
  }
7826
7836
  //#endregion
7837
+ //#region src/modules/background-session/application/session/background-session-delivery-store.ts
7838
+ var BackgroundSessionDeliveryConflict = class extends Error {
7839
+ name = "BackgroundSessionDeliveryConflict";
7840
+ constructor(deliveryId, message) {
7841
+ super(`${deliveryId}: ${message}`);
7842
+ }
7843
+ };
7844
+ //#endregion
7827
7845
  //#region src/modules/background-session/application/session/background-session-repository.ts
7828
7846
  var BackgroundSessionRepositoryConflict = class extends Error {
7829
7847
  name = "BackgroundSessionRepositoryConflict";
@@ -7835,63 +7853,6 @@ var BackgroundSessionRepositoryCorrupted = class extends Error {
7835
7853
  name = "BackgroundSessionRepositoryCorrupted";
7836
7854
  };
7837
7855
  //#endregion
7838
- //#region src/modules/background-session/infrastructure/persistence/session/in-memory-background-session-repository.ts
7839
- function createBackgroundSessionRepository(options = {}) {
7840
- const serial = createSerialExecutor();
7841
- const states = /* @__PURE__ */ new Map();
7842
- for (const state of options.initial ?? []) states.set(state.sessionId, structuredClone(state));
7843
- const persist = async (state) => {
7844
- if (options.persist) await options.persist(state);
7845
- };
7846
- return {
7847
- create: (state) => serial.run(async () => {
7848
- if (states.has(state.sessionId)) throw new BackgroundSessionRepositoryConflict(state.sessionId, "duplicate background session id");
7849
- states.set(state.sessionId, structuredClone(state));
7850
- await persist(state);
7851
- return structuredClone(state);
7852
- }),
7853
- get: (sessionId) => serial.run(async () => {
7854
- const state = states.get(sessionId);
7855
- return state ? structuredClone(state) : void 0;
7856
- }),
7857
- list: (listOptions) => serial.run(async () => {
7858
- let results = [...states.values()];
7859
- if (listOptions?.phase !== void 0) results = results.filter((state) => state.phase === listOptions.phase);
7860
- results.sort((left, right) => left.createdAt.localeCompare(right.createdAt));
7861
- if (listOptions?.limit !== void 0) results = results.slice(0, listOptions.limit);
7862
- return results.map((state) => structuredClone(state));
7863
- }),
7864
- update: (input) => serial.run(async () => {
7865
- const previous = states.get(input.sessionId);
7866
- if (!previous) return void 0;
7867
- if (previous.revision !== input.expectedRevision) throw new BackgroundSessionRepositoryConflict(input.sessionId, `revision conflict: expected ${input.expectedRevision}, found ${previous.revision}`);
7868
- if (input.expectedLease !== void 0) {
7869
- const leaseMismatch = leaseConflict(previous.lease, input.expectedLease, input.now);
7870
- if (leaseMismatch) throw new BackgroundSessionRepositoryConflict(input.sessionId, leaseMismatch);
7871
- }
7872
- const nextState = input.build(previous);
7873
- const invalid = isValidBackgroundSessionTransition(previous, nextState);
7874
- if (invalid) throw new BackgroundSessionRepositoryConflict(input.sessionId, `invalid transition: ${invalid}`);
7875
- states.set(input.sessionId, structuredClone(nextState));
7876
- await persist(nextState);
7877
- return structuredClone(nextState);
7878
- })
7879
- };
7880
- }
7881
- function leaseConflict(lease, expected, now) {
7882
- if (expected.kind === "absent") return lease === void 0 ? void 0 : `lease conflict: expected no lease, found owner ${lease.owner} epoch ${lease.epoch}`;
7883
- if (expected.kind === "absent-or-stale") return lease !== void 0 && lease.expiresAt > (now ?? (/* @__PURE__ */ new Date()).toISOString()) ? `lease conflict: expected absent or stale lease, found live lease owner ${lease.owner} epoch ${lease.epoch}` : void 0;
7884
- return lease === void 0 || lease.owner !== expected.owner || lease.epoch !== expected.epoch ? `lease conflict: expected owner ${expected.owner} epoch ${expected.epoch}` : void 0;
7885
- }
7886
- //#endregion
7887
- //#region src/modules/background-session/application/session/background-session-delivery-store.ts
7888
- var BackgroundSessionDeliveryConflict = class extends Error {
7889
- name = "BackgroundSessionDeliveryConflict";
7890
- constructor(deliveryId, message) {
7891
- super(`${deliveryId}: ${message}`);
7892
- }
7893
- };
7894
- //#endregion
7895
7856
  //#region src/modules/background-session/infrastructure/persistence/delivery/in-memory-background-session-delivery-store.ts
7896
7857
  function createBackgroundSessionDeliveryStore(options = {}) {
7897
7858
  const serial = createSerialExecutor();
@@ -7937,148 +7898,6 @@ function createBackgroundSessionDeliveryStore(options = {}) {
7937
7898
  };
7938
7899
  }
7939
7900
  //#endregion
7940
- //#region src/adapters/agent/background-session-host-tools.ts
7941
- function createBackgroundSessionHostTools(options) {
7942
- const contracts = createBackgroundSessionToolContracts();
7943
- const executors = new Map(contracts.map((contract) => [contract.id, createExecutor(contract, options)]));
7944
- return contracts.map((contract) => Object.freeze({
7945
- ...contract,
7946
- createExecutor: () => ({ execute: (input, context) => asToolInputRejection$1(() => executors.get(contract.id)(input, context)) }),
7947
- replayCompleted: (input, completedResult, context) => asToolInputRejection$1(() => replayCompleted(contract.id, input, completedResult, context, options))
7948
- }));
7949
- }
7950
- function createExecutor(contract, options) {
7951
- switch (contract.id) {
7952
- case "background.start": return (input, context) => {
7953
- const { prompt, displayName } = readObject(input, ["prompt", "displayName"]);
7954
- if (typeof prompt !== "string" || prompt.trim() === "") throw new BackgroundSessionCallerDenied("background.start requires a non-empty prompt");
7955
- if (displayName !== void 0 && typeof displayName !== "string") throw new BackgroundSessionCallerDenied("background.start displayName must be a string");
7956
- const sessionId = options.createSessionId();
7957
- return options.service.start({
7958
- authority: buildAuthority(options.definition, context, sessionId),
7959
- context,
7960
- sessionId,
7961
- ...displayName === void 0 ? {} : { displayName },
7962
- prompt
7963
- });
7964
- };
7965
- case "background.wait": return (input, context) => {
7966
- const { delayMs, reason, until } = readWaitInput(input);
7967
- return options.service.wait({
7968
- context,
7969
- ...delayMs === void 0 ? {} : { delayMs },
7970
- ...reason === void 0 ? {} : { reason },
7971
- ...until === void 0 ? {} : { until }
7972
- });
7973
- };
7974
- case "background.list": return async (input, context) => {
7975
- const { limit, phase } = readObject(input, ["limit", "phase"]);
7976
- return { sessions: await options.service.list({
7977
- context,
7978
- ...limit === void 0 ? {} : { limit: readInteger(limit, "limit") },
7979
- ...phase === void 0 ? {} : { phase: readPhase(phase) }
7980
- }) };
7981
- };
7982
- case "background.status": return (input, context) => {
7983
- const { sessionId } = readObject(input, ["sessionId"]);
7984
- return options.service.status({
7985
- context,
7986
- sessionId: readString(sessionId, "sessionId")
7987
- });
7988
- };
7989
- case "background.send": return (input, context) => {
7990
- const { message, sessionId } = readObject(input, ["message", "sessionId"]);
7991
- return options.service.send({
7992
- context,
7993
- message: readString(message, "message"),
7994
- sessionId: readString(sessionId, "sessionId")
7995
- });
7996
- };
7997
- case "background.stop": return (input, context) => {
7998
- const { reason, sessionId } = readObject(input, ["reason", "sessionId"]);
7999
- return options.service.stop({
8000
- context,
8001
- ...reason === void 0 ? {} : { reason: readString(reason, "reason") },
8002
- sessionId: readString(sessionId, "sessionId")
8003
- });
8004
- };
8005
- default: throw new BackgroundSessionCallerDenied(`unknown background tool: ${contract.id}`);
8006
- }
8007
- }
8008
- function replayCompleted(toolId, input, completedResult, context, options) {
8009
- switch (toolId) {
8010
- case "background.start": {
8011
- const sessionId = readReplayedSessionId(completedResult);
8012
- return options.service.status({
8013
- context,
8014
- sessionId
8015
- });
8016
- }
8017
- case "background.wait": return completedResult;
8018
- case "background.list": return completedResult;
8019
- case "background.status": {
8020
- const sessionId = readReplayedSessionId(input);
8021
- return options.service.status({
8022
- context,
8023
- sessionId
8024
- });
8025
- }
8026
- case "background.send": {
8027
- const sessionId = readReplayedSessionId(input);
8028
- return options.service.status({
8029
- context,
8030
- sessionId
8031
- });
8032
- }
8033
- case "background.stop": {
8034
- const sessionId = readReplayedSessionId(input);
8035
- return options.service.status({
8036
- context,
8037
- sessionId
8038
- });
8039
- }
8040
- default: return completedResult;
8041
- }
8042
- }
8043
- function buildAuthority(definition, context, sessionId) {
8044
- return Object.freeze({
8045
- agentId: definition.agentId,
8046
- memoryScopes: definition.memory.scopes,
8047
- policyEpoch: context.policyEpoch,
8048
- profileRevision: definition.profileRevision,
8049
- ...definition.projectSpaceId === void 0 ? {} : { projectSpaceId: definition.projectSpaceId },
8050
- sessionKey: createBackgroundSessionKey(sessionId),
8051
- toolGrantRevision: definition.toolGrantSet.revision
8052
- });
8053
- }
8054
- function readObject(input, allowed) {
8055
- return readBackgroundSessionObject(input, allowed, (message) => new BackgroundSessionCallerDenied(message));
8056
- }
8057
- function readString(value, name) {
8058
- return readBackgroundSessionString(value, name, (message) => new BackgroundSessionCallerDenied(message));
8059
- }
8060
- function readInteger(value, name) {
8061
- return readBackgroundSessionInteger(value, name, (message) => new BackgroundSessionCallerDenied(message));
8062
- }
8063
- function readPhase(value) {
8064
- return readBackgroundSessionPhase(value, (message) => new BackgroundSessionCallerDenied(message));
8065
- }
8066
- function readReplayedSessionId(value) {
8067
- if (value === null || typeof value !== "object" || Array.isArray(value)) throw new BackgroundSessionCallerDenied("replayed background tool result is invalid");
8068
- return readString(value.sessionId, "sessionId");
8069
- }
8070
- function readWaitInput(input) {
8071
- return readBackgroundSessionWaitInput(input, (message) => new BackgroundSessionCallerDenied(message));
8072
- }
8073
- async function asToolInputRejection$1(operation) {
8074
- try {
8075
- return await operation();
8076
- } catch (error) {
8077
- if (error instanceof BackgroundSessionCallerDenied || error instanceof BackgroundSessionTransitionDenied) throw new RivusToolInputRejected(error.message);
8078
- throw error;
8079
- }
8080
- }
8081
- //#endregion
8082
7901
  //#region src/platform/persistence/jsonl/jsonl-snapshot-store.ts
8083
7902
  var JsonlSnapshotStoreCorrupted = class extends Error {
8084
7903
  name = "JsonlSnapshotStoreCorrupted";
@@ -8143,6 +7962,93 @@ async function truncateAtLine(filePath, lines, lineIndex) {
8143
7962
  await truncate(filePath, offset);
8144
7963
  }
8145
7964
  //#endregion
7965
+ //#region src/modules/background-session/infrastructure/persistence/delivery/jsonl-background-session-delivery-store.ts
7966
+ const BACKGROUND_SESSION_DELIVERY_JSONL_VERSION = 1;
7967
+ async function openJsonlBackgroundSessionDeliveryStore(options) {
7968
+ return createBackgroundSessionDeliveryStore({
7969
+ initial: await loadJsonlSnapshotStore({
7970
+ compactThreshold: options.compactThreshold ?? 2e3,
7971
+ errorLabel: "background session delivery",
7972
+ filePath: options.filePath,
7973
+ isRecord: isDeliveryRecord,
7974
+ keyOf: (record) => record.deliveryId,
7975
+ validateSequence: validateDeliverySequence,
7976
+ version: 1
7977
+ }),
7978
+ persist: (record) => appendJsonlRecord(options.filePath, 1, record)
7979
+ });
7980
+ }
7981
+ function validateDeliverySequence(previous, record, _lineNumber) {
7982
+ if (previous === void 0) return record.revision === 1 && record.state === "pending" ? void 0 : "first record";
7983
+ if (record.revision !== previous.revision + 1) return "revision";
7984
+ return previous.state === "pending" && record.state === "delivered" ? void 0 : "transition";
7985
+ }
7986
+ function isDeliveryRecord(value) {
7987
+ if (!isRecord$5(value)) return false;
7988
+ if (typeof value.deliveryId !== "string" || value.deliveryId.trim() === "" || typeof value.sessionId !== "string" || value.sessionId.trim() === "") return false;
7989
+ if (typeof value.kind !== "string" || ![
7990
+ "progress",
7991
+ "final",
7992
+ "stopped",
7993
+ "failed",
7994
+ "reconciliation"
7995
+ ].includes(value.kind)) return false;
7996
+ if (typeof value.text !== "string") return false;
7997
+ if (value.state !== "pending" && value.state !== "delivered") return false;
7998
+ if (!Number.isInteger(value.revision) || value.revision < 1) return false;
7999
+ if (value.providerMessageId !== void 0 && typeof value.providerMessageId !== "string") return false;
8000
+ return typeof value.createdAt === "string" && Number.isFinite(Date.parse(value.createdAt));
8001
+ }
8002
+ //#endregion
8003
+ //#region src/modules/background-session/infrastructure/persistence/session/in-memory-background-session-repository.ts
8004
+ function createBackgroundSessionRepository(options = {}) {
8005
+ const serial = createSerialExecutor();
8006
+ const states = /* @__PURE__ */ new Map();
8007
+ for (const state of options.initial ?? []) states.set(state.sessionId, structuredClone(state));
8008
+ const persist = async (state) => {
8009
+ if (options.persist) await options.persist(state);
8010
+ };
8011
+ return {
8012
+ create: (state) => serial.run(async () => {
8013
+ if (states.has(state.sessionId)) throw new BackgroundSessionRepositoryConflict(state.sessionId, "duplicate background session id");
8014
+ states.set(state.sessionId, structuredClone(state));
8015
+ await persist(state);
8016
+ return structuredClone(state);
8017
+ }),
8018
+ get: (sessionId) => serial.run(async () => {
8019
+ const state = states.get(sessionId);
8020
+ return state ? structuredClone(state) : void 0;
8021
+ }),
8022
+ list: (listOptions) => serial.run(async () => {
8023
+ let results = [...states.values()];
8024
+ if (listOptions?.phase !== void 0) results = results.filter((state) => state.phase === listOptions.phase);
8025
+ results.sort((left, right) => left.createdAt.localeCompare(right.createdAt));
8026
+ if (listOptions?.limit !== void 0) results = results.slice(0, listOptions.limit);
8027
+ return results.map((state) => structuredClone(state));
8028
+ }),
8029
+ update: (input) => serial.run(async () => {
8030
+ const previous = states.get(input.sessionId);
8031
+ if (!previous) return void 0;
8032
+ if (previous.revision !== input.expectedRevision) throw new BackgroundSessionRepositoryConflict(input.sessionId, `revision conflict: expected ${input.expectedRevision}, found ${previous.revision}`);
8033
+ if (input.expectedLease !== void 0) {
8034
+ const leaseMismatch = leaseConflict(previous.lease, input.expectedLease, input.now);
8035
+ if (leaseMismatch) throw new BackgroundSessionRepositoryConflict(input.sessionId, leaseMismatch);
8036
+ }
8037
+ const nextState = input.build(previous);
8038
+ const invalid = isValidBackgroundSessionTransition(previous, nextState);
8039
+ if (invalid) throw new BackgroundSessionRepositoryConflict(input.sessionId, `invalid transition: ${invalid}`);
8040
+ states.set(input.sessionId, structuredClone(nextState));
8041
+ await persist(nextState);
8042
+ return structuredClone(nextState);
8043
+ })
8044
+ };
8045
+ }
8046
+ function leaseConflict(lease, expected, now) {
8047
+ if (expected.kind === "absent") return lease === void 0 ? void 0 : `lease conflict: expected no lease, found owner ${lease.owner} epoch ${lease.epoch}`;
8048
+ if (expected.kind === "absent-or-stale") return lease !== void 0 && lease.expiresAt > (now ?? (/* @__PURE__ */ new Date()).toISOString()) ? `lease conflict: expected absent or stale lease, found live lease owner ${lease.owner} epoch ${lease.epoch}` : void 0;
8049
+ return lease === void 0 || lease.owner !== expected.owner || lease.epoch !== expected.epoch ? `lease conflict: expected owner ${expected.owner} epoch ${expected.epoch}` : void 0;
8050
+ }
8051
+ //#endregion
8146
8052
  //#region src/modules/background-session/infrastructure/persistence/session/jsonl-background-session-repository.ts
8147
8053
  const BACKGROUND_SESSION_JSONL_VERSION = 1;
8148
8054
  async function openJsonlBackgroundSessionRepository(options) {
@@ -8233,42 +8139,146 @@ function isIso(value) {
8233
8139
  return typeof value === "string" && Number.isFinite(Date.parse(value));
8234
8140
  }
8235
8141
  //#endregion
8236
- //#region src/modules/background-session/infrastructure/persistence/delivery/jsonl-background-session-delivery-store.ts
8237
- const BACKGROUND_SESSION_DELIVERY_JSONL_VERSION = 1;
8238
- async function openJsonlBackgroundSessionDeliveryStore(options) {
8239
- return createBackgroundSessionDeliveryStore({
8240
- initial: await loadJsonlSnapshotStore({
8241
- compactThreshold: options.compactThreshold ?? 2e3,
8242
- errorLabel: "background session delivery",
8243
- filePath: options.filePath,
8244
- isRecord: isDeliveryRecord,
8245
- keyOf: (record) => record.deliveryId,
8246
- validateSequence: validateDeliverySequence,
8247
- version: 1
8248
- }),
8249
- persist: (record) => appendJsonlRecord(options.filePath, 1, record)
8142
+ //#region src/adapters/agent/background-session/background-session-host-tools.ts
8143
+ function createBackgroundSessionHostTools(options) {
8144
+ const contracts = createBackgroundSessionToolContracts();
8145
+ const executors = new Map(contracts.map((contract) => [contract.id, createExecutor(contract, options)]));
8146
+ return contracts.map((contract) => Object.freeze({
8147
+ ...contract,
8148
+ createExecutor: () => ({ execute: (input, context) => asToolInputRejection$1(() => executors.get(contract.id)(input, context)) }),
8149
+ replayCompleted: (input, completedResult, context) => asToolInputRejection$1(() => replayCompleted(contract.id, input, completedResult, context, options))
8150
+ }));
8151
+ }
8152
+ function createExecutor(contract, options) {
8153
+ switch (contract.id) {
8154
+ case "background.start": return (input, context) => {
8155
+ const { prompt, displayName } = readObject(input, ["prompt", "displayName"]);
8156
+ if (typeof prompt !== "string" || prompt.trim() === "") throw new BackgroundSessionCallerDenied("background.start requires a non-empty prompt");
8157
+ if (displayName !== void 0 && typeof displayName !== "string") throw new BackgroundSessionCallerDenied("background.start displayName must be a string");
8158
+ const sessionId = options.createSessionId();
8159
+ return options.service.start({
8160
+ authority: buildAuthority(options.definition, context, sessionId),
8161
+ context,
8162
+ sessionId,
8163
+ ...displayName === void 0 ? {} : { displayName },
8164
+ prompt
8165
+ });
8166
+ };
8167
+ case "background.wait": return (input, context) => {
8168
+ const { delayMs, reason, until } = readWaitInput(input);
8169
+ return options.service.wait({
8170
+ context,
8171
+ ...delayMs === void 0 ? {} : { delayMs },
8172
+ ...reason === void 0 ? {} : { reason },
8173
+ ...until === void 0 ? {} : { until }
8174
+ });
8175
+ };
8176
+ case "background.list": return async (input, context) => {
8177
+ const { limit, phase } = readObject(input, ["limit", "phase"]);
8178
+ return { sessions: await options.service.list({
8179
+ context,
8180
+ ...limit === void 0 ? {} : { limit: readInteger(limit, "limit") },
8181
+ ...phase === void 0 ? {} : { phase: readPhase(phase) }
8182
+ }) };
8183
+ };
8184
+ case "background.status": return (input, context) => {
8185
+ const { sessionId } = readObject(input, ["sessionId"]);
8186
+ return options.service.status({
8187
+ context,
8188
+ sessionId: readString(sessionId, "sessionId")
8189
+ });
8190
+ };
8191
+ case "background.send": return (input, context) => {
8192
+ const { message, sessionId } = readObject(input, ["message", "sessionId"]);
8193
+ return options.service.send({
8194
+ context,
8195
+ message: readString(message, "message"),
8196
+ sessionId: readString(sessionId, "sessionId")
8197
+ });
8198
+ };
8199
+ case "background.stop": return (input, context) => {
8200
+ const { reason, sessionId } = readObject(input, ["reason", "sessionId"]);
8201
+ return options.service.stop({
8202
+ context,
8203
+ ...reason === void 0 ? {} : { reason: readString(reason, "reason") },
8204
+ sessionId: readString(sessionId, "sessionId")
8205
+ });
8206
+ };
8207
+ default: throw new BackgroundSessionCallerDenied(`unknown background tool: ${contract.id}`);
8208
+ }
8209
+ }
8210
+ function replayCompleted(toolId, input, completedResult, context, options) {
8211
+ switch (toolId) {
8212
+ case "background.start": {
8213
+ const sessionId = readReplayedSessionId(completedResult);
8214
+ return options.service.status({
8215
+ context,
8216
+ sessionId
8217
+ });
8218
+ }
8219
+ case "background.wait": return completedResult;
8220
+ case "background.list": return completedResult;
8221
+ case "background.status": {
8222
+ const sessionId = readReplayedSessionId(input);
8223
+ return options.service.status({
8224
+ context,
8225
+ sessionId
8226
+ });
8227
+ }
8228
+ case "background.send": {
8229
+ const sessionId = readReplayedSessionId(input);
8230
+ return options.service.status({
8231
+ context,
8232
+ sessionId
8233
+ });
8234
+ }
8235
+ case "background.stop": {
8236
+ const sessionId = readReplayedSessionId(input);
8237
+ return options.service.status({
8238
+ context,
8239
+ sessionId
8240
+ });
8241
+ }
8242
+ default: return completedResult;
8243
+ }
8244
+ }
8245
+ function buildAuthority(definition, context, sessionId) {
8246
+ return Object.freeze({
8247
+ agentId: definition.agentId,
8248
+ memoryScopes: definition.memory.scopes,
8249
+ policyEpoch: context.policyEpoch,
8250
+ profileRevision: definition.profileRevision,
8251
+ ...definition.projectSpaceId === void 0 ? {} : { projectSpaceId: definition.projectSpaceId },
8252
+ sessionKey: createBackgroundSessionKey(sessionId),
8253
+ toolGrantRevision: definition.toolGrantSet.revision
8250
8254
  });
8251
8255
  }
8252
- function validateDeliverySequence(previous, record, _lineNumber) {
8253
- if (previous === void 0) return record.revision === 1 && record.state === "pending" ? void 0 : "first record";
8254
- if (record.revision !== previous.revision + 1) return "revision";
8255
- return previous.state === "pending" && record.state === "delivered" ? void 0 : "transition";
8256
+ function readObject(input, allowed) {
8257
+ return readBackgroundSessionObject(input, allowed, (message) => new BackgroundSessionCallerDenied(message));
8256
8258
  }
8257
- function isDeliveryRecord(value) {
8258
- if (!isRecord$5(value)) return false;
8259
- if (typeof value.deliveryId !== "string" || value.deliveryId.trim() === "" || typeof value.sessionId !== "string" || value.sessionId.trim() === "") return false;
8260
- if (typeof value.kind !== "string" || ![
8261
- "progress",
8262
- "final",
8263
- "stopped",
8264
- "failed",
8265
- "reconciliation"
8266
- ].includes(value.kind)) return false;
8267
- if (typeof value.text !== "string") return false;
8268
- if (value.state !== "pending" && value.state !== "delivered") return false;
8269
- if (!Number.isInteger(value.revision) || value.revision < 1) return false;
8270
- if (value.providerMessageId !== void 0 && typeof value.providerMessageId !== "string") return false;
8271
- return typeof value.createdAt === "string" && Number.isFinite(Date.parse(value.createdAt));
8259
+ function readString(value, name) {
8260
+ return readBackgroundSessionString(value, name, (message) => new BackgroundSessionCallerDenied(message));
8261
+ }
8262
+ function readInteger(value, name) {
8263
+ return readBackgroundSessionInteger(value, name, (message) => new BackgroundSessionCallerDenied(message));
8264
+ }
8265
+ function readPhase(value) {
8266
+ return readBackgroundSessionPhase(value, (message) => new BackgroundSessionCallerDenied(message));
8267
+ }
8268
+ function readReplayedSessionId(value) {
8269
+ if (value === null || typeof value !== "object" || Array.isArray(value)) throw new BackgroundSessionCallerDenied("replayed background tool result is invalid");
8270
+ return readString(value.sessionId, "sessionId");
8271
+ }
8272
+ function readWaitInput(input) {
8273
+ return readBackgroundSessionWaitInput(input, (message) => new BackgroundSessionCallerDenied(message));
8274
+ }
8275
+ async function asToolInputRejection$1(operation) {
8276
+ try {
8277
+ return await operation();
8278
+ } catch (error) {
8279
+ if (error instanceof BackgroundSessionCallerDenied || error instanceof BackgroundSessionTransitionDenied) throw new RivusToolInputRejected(error.message);
8280
+ throw error;
8281
+ }
8272
8282
  }
8273
8283
  //#endregion
8274
8284
  //#region src/adapters/feishu/delivery/feishu-interactive-card-send.ts
@@ -9894,4 +9904,4 @@ function createConfiguredFeishuHumanInteractionPresenter(options) {
9894
9904
  });
9895
9905
  }
9896
9906
  //#endregion
9897
- export { createFeishuPresentationPreparation as $, createUuidRunIds as $n, FEISHU_AGENT_CARD_ELEMENT_ID as $t, createCompactionService as A, createAgentCommandFromFeishuMessage as An, createPiSdkAgentLoop as At, openJsonlBackgroundSessionDeliveryStore as B, createAgentCommandFromFeishuCardAction as Bn, restoreConfiguredRivusDaemonBootstrap as Bt, DeliveryOutboxError as C, createCompositeRivusDaemonTransport as Cn, hasInspectableRunProgress as Cr, createAutomationPresentation as Ct, openJsonAutomationTickRepository as D, shouldAcceptFeishuEndpointMessage as Dn, AutomationMandateError as Dt, createPluginStateStore as E, createFeishuMessageWorker as En, createDailyAutomationSchedule as Et, createRivusMemoryToolDescriptor as F, InvalidFeishuSessionReference as Fn, createOpenTelemetryAgentTelemetry as Ft, createBackgroundSessionDeliveryStore as G, createDefaultAgentHarnessClientFromCallback as Gn, createConfiguredFeishuTextReplySender as Gt, isBackgroundSessionState as H, createAgentRuntime as Hn, createFeishuTopicContextResolver as Ht, createBackgroundSessionCard as I, createFeishuConversationId as In, createTelemetryContentRedactor as It, BackgroundSessionRepositoryConflict as J, createDefaultAgentHarnessFromTextCallback as Jn, createFeishuCardKitOpenApiTargetCreator as Jt, BackgroundSessionDeliveryConflict as K, createDefaultAgentHarnessClientFromTextCallback as Kn, createConfiguredFeishuCardRolloverRuntime as Kt, createConfiguredFeishuBackgroundSessionDelivery as L, createFeishuSessionKey as Ln, AgentEventLogStoreError as Lt, createAgentLoopPromptTransformer as M, InvalidFeishuMessageContent as Mn, createLangfuseAgentTelemetry as Mt, createProjectMemoryPromptPreparer as N, UnsupportedFeishuMessage as Nn, resolveLangfuseTelemetryConfig as Nt, createScheduledAutomation as O, createFeishuMessageQueue as On, createPiSessionRegistry as Ot, createRivusMemoryTool as P, readFeishuMessageContent as Pn, createOpenTelemetryAgentEventSink as Pt, createRivusAgentHost as Q, createSystemClock as Qn, createFeishuCardKitOpenApiClient as Qt, resolveFeishuDeliveryChatId as R, InvalidFeishuCardAction as Rn, createJsonlAgentEventLog as Rt, commitAutomationOutcome as S, createRivusDaemonStatusReporter as Sn, RUN_PRESENTATION_SCHEMA_VERSION as Sr, InvalidAutomationPresentation as St, PluginStateConflict as T, createFeishuWorkerLoop as Tn, AUTOMATION_SUPPRESSION_PREFIX as Tt, openJsonlBackgroundSessionRepository as U, createDefaultAgentHarness as Un, composeFeishuTopicPrompt as Ut, BACKGROUND_SESSION_JSONL_VERSION as V, mergePiProviderBaseUrlOverride as Vn, InvalidFeishuTopicContext as Vt, createBackgroundSessionHostTools as W, createDefaultAgentHarnessClient as Wn, createConfiguredFeishuMessageReactionSender as Wt, createAgentMemoryService as X, createDefaultAgentRuntimeFromCallback as Xn, createConfiguredFeishuCardKitPublisher as Xt, BackgroundSessionRepositoryCorrupted as Y, createDefaultAgentRuntime as Yn, createFeishuCardTargetPreparation as Yt, InvalidRivusEndpointBinding as Z, createDefaultAgentRuntimeFromTextCallback as Zn, createFeishuCardKitPublisher as Zt, loadRivusDeployment as _, createFeishuHumanInteractionCard as _n, openJsonlFeishuCardDeliveryLedger as _r, FeishuCardTargetRegistryStoreError as _t, HumanInteractionRepositoryError as a, FeishuTenantAccessTokenError as an, createJsonFetchRequest as ar, openJsonlToolOperationLedger as at, intersectToolIds as b, validateProjectSkillCommand as bn, createFeishuStreamProjector as br, createRunPresentationProjector as bt, createHumanInteractionToolApprovalGateway as c, createCoalescingFeishuPublisher as cn, createSessionScheduler as cr, createFixedClock as ct, HumanInteractionTransitionDenied as d, createFeishuWebSocketDaemon as dn, openJsonlFeishuInboxRepository as dr, createFeishuPeriodicFlush as dt, FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID as en, createAgentHarnessClient as er, createFeishuDeploymentEndpoint as et, transitionHumanInteraction as f, createLazyFeishuWebSocketEventDispatcher as fn, createRecoveryControl as fr, FeishuCotProtocolError as ft, loadNodeRivusPluginModule as g, createFeishuCardActionErrorResponse as gn, createFeishuInboxRepository as gr, FeishuCardTargetNotFound as gt, createRivusDeploymentDaemon as h, createFeishuCardActionCallbackResponse as hn, createRecoveryAction as hr, createFeishuCardPresentationStore as ht, createInMemoryHumanInteractionRepository as i, createFeishuOpenApiClient as in, createAgentHarness as ir, openJsonlRecoveryControl as it, openJsonlAgentMemoryService as j, describeFeishuMessageIntake as jn, LangfuseTelemetryConfigError as jt, createAutomationMandateStore as k, createFeishuAgentDaemon as kn, createPiAgentLoop as kt, createRoutedHumanInteractionToolApprovalService as l, createFeishuCardRolloverSupervisor as ln, openJsonFeishuSessionStore as lr, createSequenceRunIds as lt, loadRivusDeploymentManifest as m, createFeishuEventHandlers as mn, InvalidRecoveryAction as mr, FeishuCardPresentationNotFound as mt, createFeishuHumanInteractionPresenter as n, FeishuOpenApiError as nn, createAgentDomainEventSinkFromCallback as nr, createAgentRuntimePool as nt, createConfiguredFeishuAutomationCardSender as o, createFeishuTenantAccessTokenProvider as on, SessionSchedulerCapacityExceeded as or, createToolBroker as ot, createConfiguredRivusDeploymentDaemon as p, createFeishuAgentRuntime as pn, createToolOperationLedger as pr, createFeishuCotPublisher as pt, createBackgroundSessionRepository as q, createDefaultAgentHarnessFromCallback as qn, createConfiguredFeishuCardKitTargetCreator as qt, createJsonlHumanInteractionRepository as r, createConfiguredFeishuOpenApiClient as rn, createAgentRunUpdateHandler as rr, createAgentInstanceRegistry as rt, createHumanInteractionEndpointRegistry as s, createRateLimitedFeishuPublisher as sn, SessionSchedulerDisposed as sr, createAgentsMdInstructionsProvider as st, createConfiguredFeishuHumanInteractionPresenter as t, createFeishuAgentRunCard as tn, createAgentDomainEventHandler as tr, createAgentHarnessPooledRuntime as tt, createHumanInteractionService as u, createFeishuCardRollover as un, createFeishuSessionStore as ur, createTestClock as ut, createSubagentCoordinator as v, InvalidProjectSkillCatalog as vn, createFeishuCardDeliveryLedger as vr, createInMemoryFeishuCardTargetRegistry as vt, createDeliveryOutbox as w, createRivusDaemonProcess as wn, readAutomationPresentation as wt, DelegationDenied as x, createRivusDaemonStatusHttpServer as xn, createPresentedValue as xr, AUTOMATION_PRESENTATION_SCHEMA_VERSION as xt, createDelegationService as y, validateProjectSkillCatalog as yn, createFeishuCardDeliveryReconciler as yr, createJsonFileFeishuCardTargetRegistry as yt, BACKGROUND_SESSION_DELIVERY_JSONL_VERSION as z, UnsupportedFeishuCardAction as zn, createConfiguredRivusDaemonBootstrap as zt };
9907
+ export { createFeishuPresentationPreparation as $, createUuidRunIds as $n, FEISHU_AGENT_CARD_ELEMENT_ID as $t, createCompactionService as A, createAgentCommandFromFeishuMessage as An, createPiSdkAgentLoop as At, BACKGROUND_SESSION_JSONL_VERSION as B, createAgentCommandFromFeishuCardAction as Bn, restoreConfiguredRivusDaemonBootstrap as Bt, DeliveryOutboxError as C, createCompositeRivusDaemonTransport as Cn, hasInspectableRunProgress as Cr, createAutomationPresentation as Ct, openJsonAutomationTickRepository as D, shouldAcceptFeishuEndpointMessage as Dn, AutomationMandateError as Dt, createPluginStateStore as E, createFeishuMessageWorker as En, createDailyAutomationSchedule as Et, createRivusMemoryToolDescriptor as F, InvalidFeishuSessionReference as Fn, createOpenTelemetryAgentTelemetry as Ft, openJsonlBackgroundSessionDeliveryStore as G, createDefaultAgentHarnessClientFromCallback as Gn, createConfiguredFeishuTextReplySender as Gt, openJsonlBackgroundSessionRepository as H, createAgentRuntime as Hn, createFeishuTopicContextResolver as Ht, createBackgroundSessionCard as I, createFeishuConversationId as In, createTelemetryContentRedactor as It, BackgroundSessionRepositoryCorrupted as J, createDefaultAgentHarnessFromTextCallback as Jn, createFeishuCardKitOpenApiTargetCreator as Jt, createBackgroundSessionDeliveryStore as K, createDefaultAgentHarnessClientFromTextCallback as Kn, createConfiguredFeishuCardRolloverRuntime as Kt, createConfiguredFeishuBackgroundSessionDelivery as L, createFeishuSessionKey as Ln, AgentEventLogStoreError as Lt, createAgentLoopPromptTransformer as M, InvalidFeishuMessageContent as Mn, createLangfuseAgentTelemetry as Mt, createProjectMemoryPromptPreparer as N, UnsupportedFeishuMessage as Nn, resolveLangfuseTelemetryConfig as Nt, createScheduledAutomation as O, createFeishuMessageQueue as On, createPiSessionRegistry as Ot, createRivusMemoryTool as P, readFeishuMessageContent as Pn, createOpenTelemetryAgentEventSink as Pt, createRivusAgentHost as Q, createSystemClock as Qn, createFeishuCardKitOpenApiClient as Qt, resolveFeishuDeliveryChatId as R, InvalidFeishuCardAction as Rn, createJsonlAgentEventLog as Rt, commitAutomationOutcome as S, createRivusDaemonStatusReporter as Sn, RUN_PRESENTATION_SCHEMA_VERSION as Sr, InvalidAutomationPresentation as St, PluginStateConflict as T, createFeishuWorkerLoop as Tn, AUTOMATION_SUPPRESSION_PREFIX as Tt, createBackgroundSessionRepository as U, createDefaultAgentHarness as Un, composeFeishuTopicPrompt as Ut, isBackgroundSessionState as V, mergePiProviderBaseUrlOverride as Vn, InvalidFeishuTopicContext as Vt, BACKGROUND_SESSION_DELIVERY_JSONL_VERSION as W, createDefaultAgentHarnessClient as Wn, createConfiguredFeishuMessageReactionSender as Wt, createAgentMemoryService as X, createDefaultAgentRuntimeFromCallback as Xn, createConfiguredFeishuCardKitPublisher as Xt, BackgroundSessionDeliveryConflict as Y, createDefaultAgentRuntime as Yn, createFeishuCardTargetPreparation as Yt, InvalidRivusEndpointBinding as Z, createDefaultAgentRuntimeFromTextCallback as Zn, createFeishuCardKitPublisher as Zt, loadRivusDeployment as _, createFeishuHumanInteractionCard as _n, openJsonlFeishuCardDeliveryLedger as _r, FeishuCardTargetRegistryStoreError as _t, HumanInteractionRepositoryError as a, FeishuTenantAccessTokenError as an, createJsonFetchRequest as ar, openJsonlToolOperationLedger as at, intersectToolIds as b, validateProjectSkillCommand as bn, createFeishuStreamProjector as br, createRunPresentationProjector as bt, createHumanInteractionToolApprovalGateway as c, createCoalescingFeishuPublisher as cn, createSessionScheduler as cr, createFixedClock as ct, HumanInteractionTransitionDenied as d, createFeishuWebSocketDaemon as dn, openJsonlFeishuInboxRepository as dr, createFeishuPeriodicFlush as dt, FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID as en, createAgentHarnessClient as er, createFeishuDeploymentEndpoint as et, transitionHumanInteraction as f, createLazyFeishuWebSocketEventDispatcher as fn, createRecoveryControl as fr, FeishuCotProtocolError as ft, loadNodeRivusPluginModule as g, createFeishuCardActionErrorResponse as gn, createFeishuInboxRepository as gr, FeishuCardTargetNotFound as gt, createRivusDeploymentDaemon as h, createFeishuCardActionCallbackResponse as hn, createRecoveryAction as hr, createFeishuCardPresentationStore as ht, createInMemoryHumanInteractionRepository as i, createFeishuOpenApiClient as in, createAgentHarness as ir, openJsonlRecoveryControl as it, openJsonlAgentMemoryService as j, describeFeishuMessageIntake as jn, LangfuseTelemetryConfigError as jt, createAutomationMandateStore as k, createFeishuAgentDaemon as kn, createPiAgentLoop as kt, createRoutedHumanInteractionToolApprovalService as l, createFeishuCardRolloverSupervisor as ln, openJsonFeishuSessionStore as lr, createSequenceRunIds as lt, loadRivusDeploymentManifest as m, createFeishuEventHandlers as mn, InvalidRecoveryAction as mr, FeishuCardPresentationNotFound as mt, createFeishuHumanInteractionPresenter as n, FeishuOpenApiError as nn, createAgentDomainEventSinkFromCallback as nr, createAgentRuntimePool as nt, createConfiguredFeishuAutomationCardSender as o, createFeishuTenantAccessTokenProvider as on, SessionSchedulerCapacityExceeded as or, createToolBroker as ot, createConfiguredRivusDeploymentDaemon as p, createFeishuAgentRuntime as pn, createToolOperationLedger as pr, createFeishuCotPublisher as pt, BackgroundSessionRepositoryConflict as q, createDefaultAgentHarnessFromCallback as qn, createConfiguredFeishuCardKitTargetCreator as qt, createJsonlHumanInteractionRepository as r, createConfiguredFeishuOpenApiClient as rn, createAgentRunUpdateHandler as rr, createAgentInstanceRegistry as rt, createHumanInteractionEndpointRegistry as s, createRateLimitedFeishuPublisher as sn, SessionSchedulerDisposed as sr, createAgentsMdInstructionsProvider as st, createConfiguredFeishuHumanInteractionPresenter as t, createFeishuAgentRunCard as tn, createAgentDomainEventHandler as tr, createAgentHarnessPooledRuntime as tt, createHumanInteractionService as u, createFeishuCardRollover as un, createFeishuSessionStore as ur, createTestClock as ut, createSubagentCoordinator as v, InvalidProjectSkillCatalog as vn, createFeishuCardDeliveryLedger as vr, createInMemoryFeishuCardTargetRegistry as vt, createDeliveryOutbox as w, createRivusDaemonProcess as wn, readAutomationPresentation as wt, DelegationDenied as x, createRivusDaemonStatusHttpServer as xn, createPresentedValue as xr, AUTOMATION_PRESENTATION_SCHEMA_VERSION as xt, createDelegationService as y, validateProjectSkillCatalog as yn, createFeishuCardDeliveryReconciler as yr, createJsonFileFeishuCardTargetRegistry as yt, createBackgroundSessionHostTools as z, UnsupportedFeishuCardAction as zn, createConfiguredRivusDaemonBootstrap as zt };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as DelegationEdge, $a as WorkspaceRootHandle, $c as createRecoveryControl, $i as RivusDaemonCliWriter, $l as FeishuMessageIntakeSummary, $n as FeishuCardKitOpenApiClientOptions, $o as FeishuWorkerLoopOptions, $r as createFeishuTenantAccessTokenProvider, $s as createDefaultAgentHarnessClientFromTextCallback, $t as RivusAgentHost, $u as JsonlFeishuCardDeliveryLedgerOptions, A as CreateRivusDeploymentBackgroundSessionInput, Aa as RivusAutomationDeliveryTargetType, Ac as SessionSchedulerDisposed, Ai as AgentEventLogStoreError, Al as FeishuAgentExecution, An as createConfiguredFeishuCardKitPublisher, Ao as FeishuCardRolloverEventType, Ar as resolveLangfuseTelemetryConfig, As as resolveFeishuEndpointCredentials, At as RivusMemoryTool, Au as HumanInteractionRepositoryError, B as LoadRivusDeploymentOptions, Ba as ProjectSkillCatalogEntry, Bc as createAgentRuntimePool, Bi as FeishuEventHandlersOptions, Bl as FeishuCardActionCommand, Bn as FeishuCardTargetCreator, Bo as CardPresentationStatus, Br as ConfiguredFeishuOpenApiRequest, Bs as DefaultAgentHarnessClientFromTextCallbackOptions, Bt as openJsonlBackgroundSessionDeliveryStore, Bu as HumanInteractionFact, C as createRoutedHumanInteractionToolApprovalService, Ca as LoadedRivusDeployment, Cc as FetchLikeResponse, Cd as hasInspectableRunProgress, Ci as FeishuWebSocketDaemonOptions, Cl as FeishuAgentDaemonHandleResult, Cn as createFixedClock, Co as RivusDaemonStatus, Cr as createTelemetryContentRedactor, Cs as OpenClawEnvImportOptions, Ct as ProjectMemoryRecallOptions, Cu as ConsumeToolApprovalInput, D as LoadRivusDeploymentManifestOptions, Da as RivusPluginLoadStatus, Dc as createJsonFetchRequest, Di as createLazyFeishuWebSocketEventDispatcher, Dl as FeishuAgentDaemonSessionResetResult, Dn as FeishuPeriodicFlushOptions, Do as FeishuCardRollover, Dr as LangfuseTelemetryContentMode, Ds as formatRivusEnvFile, Dt as RIVUS_MEMORY_TOOL_VERSION, Du as ResolveHumanInteractionInput, E as loadRivusDeploymentManifest, Ea as RivusPluginLoadError, Ec as JsonHttpResponse, Ed as createPresentedValue, Ei as createFeishuWebSocketDaemon, El as FeishuAgentDaemonRunResult, En as FeishuPeriodicFlush, Eo as createRivusDaemonStatusReporter, Er as LangfuseTelemetryConfigError, Es as createRivusEnvFromOpenClawConfig, Et as RIVUS_MEMORY_TOOL_PLUGIN_ID, Eu as HumanInteractionServiceOptions, F as RivusDeploymentBackgroundSession, Fa as RivusEndpointExperimentalFeatures, Fc as AgentRuntimeInput, Fi as FeishuPeriodicFlushSupervisor, Fl as createFeishuAgentDaemon, Fn as RateLimitedFeishuPublisherOptions, Fo as FeishuCardPresentationHandoffStart, Fr as createConfiguredRivusDaemonBootstrap, Fs as RivusTextFileReader, Ft as FeishuBackgroundSessionDeliveryKind, Fu as CancelledHumanInteractionState, G as DelegationService, Ga as RivusProjectSpaceDeployment, Gc as AgentInstanceRegistryOptions, Gi as FeishuCardActionToast, Gl as UnsupportedFeishuCardAction, Gn as FeishuCotProtocolError, Go as CompositeRivusDaemonTransportOptions, Gr as FeishuOpenApiResponse, Gs as DefaultAgentRuntimeFromCallbackOptions, Gt as createBackgroundSessionHostTools, Gu as RejectedHumanInteractionState, H as loadRivusDeployment, Ha as validateProjectSkillCommand, Hc as createAgentInstanceRegistry, Hi as FeishuSdkReceiveMessagePayload, Hl as FeishuCardActionTriggerPayload, Hn as createConfiguredFeishuCardKitTargetCreator, Ho as acceptsCardPresentationProgress, Hr as FeishuOpenApiClient, Hs as DefaultAgentHarnessFromCallbackOptions, Ht as isBackgroundSessionState, Hu as HumanInteractionResolutionAction, I as RivusDeploymentDaemon, Ia as RivusPluginDeclaration, Ic as AgentRuntimePool, Ii as createFeishuAgentRuntime, Il as FeishuPromptContextInput, In as createRateLimitedFeishuPublisher, Io as FeishuCardPresentationStore, Ir as restoreConfiguredRivusDaemonBootstrap, Is as RivusThinkingLevel, It as createBackgroundSessionCard, Iu as ExpiredHumanInteractionState, J as SpawnSubagentRequest, Ja as WorkspaceInstructionsDiagnostic, Jc as OpenJsonFeishuSessionStoreOptions, Ji as FeishuRawCardJson, Jl as FeishuCancelMessageIntakeSummary, Jn as FeishuCotRunPreparation, Jo as RivusDaemonProcessOptions, Jr as FeishuTenantAccessTokenError, Js as DefaultAgentRuntimeSessionOptions, Jt as AgentMemoryServiceOptions, Ju as ToolApprovalInteraction, K as createDelegationService, Ka as InvalidWorkspaceRoot, Kc as AgentInstanceConflict, Ki as createFeishuCardActionCallbackResponse, Kl as createAgentCommandFromFeishuCardAction, Kn as FeishuCotPublisher, Ko as createCompositeRivusDaemonTransport, Kr as createConfiguredFeishuOpenApiClient, Ks as DefaultAgentRuntimeFromTextCallbackOptions, Kt as createBackgroundSessionDeliveryStore, Ku as SelectedHumanInteractionState, L as RivusDeploymentEndpoint, La as validateRivusDeploymentManifest, Lc as AgentRuntimePoolOptions, Li as FeishuEventHandlerCardActions, Ll as FeishuPromptContextResolver, Ln as FeishuCardKitOpenApiTargetCreatorOptions, Lo as DEFAULT_CARD_STREAM_LEASE_MS, Lr as ConfiguredFeishuCardRolloverRuntime, Ls as loadRivusDaemonConfig, Lt as createConfiguredFeishuBackgroundSessionDelivery, Lu as HumanInteraction, M as CreateRivusDeploymentEndpointInput, Ma as RivusBackgroundSessionsDeployment, Mc as SessionSchedulerStatus, Mi as createJsonlAgentEventLog, Ml as FeishuAgentMessageSideEffects, Mn as FeishuCoalescingPublisherOptions, Mo as FeishuCardRolloverOptions, Mr as ConfiguredRivusDaemonBootstrapOptions, Ms as RivusDaemonConfigError, Mt as createRivusMemoryToolDescriptor, Mu as RequestToolApprovalInput, N as CreateRivusDeploymentRuntimeInput, Na as RivusDeploymentManifest, Nc as createSessionScheduler, Ni as FeishuAgentRuntime, Nl as FeishuAgentPreparedControl, Nn as createCoalescingFeishuPublisher, No as FeishuCardRolloverStatus, Nr as ConfiguredRivusDaemonBootstrapRequest, Ns as RivusDaemonConfigLoaderOptions, Nt as FeishuBackgroundSessionDelivery, Nu as RequestUserDecisionInput, O as RivusDeploymentManifestError, Oa as RivusPluginModuleLoadRequest, Oc as SessionScheduler, Oi as AgentEventLog, Ol as FeishuAgentDaemonSkippedResult, On as createFeishuPeriodicFlush, Oo as FeishuCardRolloverCounters, Or as LangfuseTelemetryEnv, Os as FeishuEndpointCredentialError, Ot as createRivusMemoryToolContract, Ou as createHumanInteractionService, P as RivusDeploymentAutomation, Pa as RivusEndpointDeployment, Pc as AgentRuntimeCancellation, Pi as FeishuAgentRuntimeOptions, Pl as FeishuHumanInteractionActions, Pn as FeishuStreamActionPublisher, Po as createFeishuCardRollover, Pr as ConfiguredRivusDaemonBootstrapResponse, Ps as RivusDaemonEnv, Pt as FeishuBackgroundSessionDeliveryInput, Pu as ApprovedHumanInteractionState, Q as DelegationDenied, Qa as WorkspaceInstructionsView, Qc as RecoveryControlOptions, Qi as RivusDaemonCliOptions, Ql as FeishuMessageIntakeOptions, Qn as createFeishuTopicContextResolver, Qo as FeishuWorkerLoop, Qr as FeishuTenantAccessTokenResponse, Qs as createDefaultAgentHarnessClientFromCallback, Qt as InvalidRivusEndpointBinding, Qu as UserDecisionOption, R as createRivusDeploymentDaemon, Ra as InvalidProjectSkillCatalog, Rc as AgentRuntimeSteering, Ri as FeishuEventHandlerQueue, Rl as composeFeishuTopicPrompt, Rn as FeishuCardPresentationBinder, Ro as CardPresentation, Rr as ConfiguredFeishuCardRolloverRuntimeOptions, Rs as AgentRuntime, Rt as resolveFeishuDeliveryChatId, Ru as HumanInteractionActor, S as createHumanInteractionToolApprovalGateway, Sa as RivusDeploymentComponentLifecycle, Sc as FetchLike, Sd as ToolPresentationStep, Si as FeishuWebSocketDaemon, Sl as FeishuAgentDaemonHandleMessageOptions, Sn as resolveRivusAgentDefinition, So as createRivusDaemonStatusHttpServer, Sr as TelemetryContentRedactorOptions, Ss as OpenClawEnvImportError, St as ProjectMemoryRecallIdentity, Su as transitionHumanInteraction, T as createConfiguredRivusDeploymentDaemon, Ta as RivusAgentDeploymentStatus, Tc as JsonHttpRequest, Td as PresentedValueOptions, Ti as FeishuWebSocketRuntime, Tl as FeishuAgentDaemonOptions, Tn as createTestClock, To as RivusDaemonStatusReporterOptions, Tr as LangfuseTelemetryConfig, Ts as RivusEnvFileVariables, Tt as RIVUS_MEMORY_TOOL_ID, Tu as HumanInteractionService, U as SubagentCoordinator, Ua as InvalidRivusProjectSpace, Uc as AgentInstanceBusy, Ui as createFeishuEventHandlers, Ul as FeishuResolveInteractionCommand, Un as createFeishuCardKitOpenApiTargetCreator, Uo as activeCardPresentation, Ur as FeishuOpenApiError, Us as DefaultAgentHarnessFromTextCallbackOptions, Ut as openJsonlBackgroundSessionRepository, Uu as HumanInteractionTransition, V as RivusPluginModule, Va as validateProjectSkillCatalog, Vc as AgentInstanceRegistry, Vi as FeishuReceiveMessageHandlerPayload, Vl as FeishuCardActionIntakeError, Vn as FeishuCardTargetPreparationOptions, Vo as CardPresentationTransitionDenied, Vr as ConfiguredFeishuOpenApiResponse, Vs as DefaultAgentHarnessClientOptions, Vt as BACKGROUND_SESSION_JSONL_VERSION, Vu as HumanInteractionId, W as createSubagentCoordinator, Wa as ResolvedRivusProjectSpace, Wc as AgentRuntimeDisposed, Wi as FeishuCardActionCallbackResponse, Wl as InvalidFeishuCardAction, Wn as createFeishuCardTargetPreparation, Wo as isCardPresentationHandoffDue, Wr as FeishuOpenApiRequest, Ws as DefaultAgentHarnessOptions, Wt as CreateBackgroundSessionHostToolsOptions, Wu as PendingHumanInteractionState, X as DelegationGrant, Xa as WorkspaceInstructionsRequest, Xc as JsonlFeishuInboxRepositoryOptions, Xi as RivusDaemonBootstrapFactory, Xl as FeishuMessageIntakeBaseSummary, Xn as FeishuTopicContextResolverOptions, Xo as RivusDaemonWorkerLoop, Xr as FeishuTenantAccessTokenProviderOptions, Xs as createDefaultAgentHarness, Xt as AgentMemoryHandle, Xu as UserDecisionInteraction, Y as SubagentRecord, Ya as WorkspaceInstructionsDiagnosticCode, Yc as openJsonFeishuSessionStore, Yi as RivusDaemonBootstrapContext, Yl as FeishuCancelRunCommand, Yn as createFeishuCotPublisher, Yo as RivusDaemonTransport, Yr as FeishuTenantAccessTokenProvider, Ys as createAgentRuntime, Yt as createAgentMemoryService, Yu as ToolApprovalInteractionState, Z as DelegationRequest, Za as WorkspaceInstructionsSourceError, Zc as openJsonlFeishuInboxRepository, Zi as RivusDaemonBootstrapModule, Zl as FeishuMessageIntakeError, Zn as InvalidFeishuTopicContext, Zo as createRivusDaemonProcess, Zr as FeishuTenantAccessTokenRequest, Zs as createDefaultAgentHarnessClient, Zt as AgentMemoryService, Zu as UserDecisionInteractionState, _ as createConfiguredFeishuMessageReactionSender, _a as RivusDeploymentDaemonLifecycleError, _c as createAgentDomainEventHandler, _d as RUN_PRESENTATION_SCHEMA_VERSION, _i as FeishuCardKitTextUpdate, _l as InvalidRecoveryAction, _n as createToolBroker, _o as RivusDaemonShutdownSignal, _r as OpenTelemetryAgentEventSinkOptions, _s as FeishuMessageQueueOptions, _t as CompactorPort, _u as InvalidFeishuSessionReference, a as FEISHU_AGENT_CARD_ELEMENT_ID, aa as RivusDeploymentBootstrapContext, ac as createSystemClock, ad as FeishuCardDeliveryRecord, ai as FeishuCardTargetRegistryOperation, al as FeishuInboxDeliveryState, an as createFeishuPresentationPreparation, ao as failBackgroundSessionStep, ar as createRunPresentationProjector, as as FeishuMessageWorkerDrainAvailableResult, at as PluginStateConflict, au as describeFeishuMessageIntake, b as HumanInteractionEndpointRegistry, ba as RivusDeploymentEndpointStatus, bc as AgentHarnessOptions, bd as RunPresentationPhase, bi as FeishuWebSocketClient, bl as FeishuAgentDaemon, bn as createWorkspaceRootHandle, bo as RivusDaemonStatusHttpServer, br as createOpenTelemetryAgentTelemetry, bs as MergePiProviderBaseUrlOverrideOptions, bt as createAgentLoopPromptTransformer, bu as FeishuReceiveMessagePayload, c as createFeishuAgentRunCard, ca as createRivusDeploymentCliProcess, cc as AgentClientFailure, cd as FeishuStreamAction, ci as createInMemoryFeishuCardTargetRegistry, cl as FeishuInboxRepository, cn as createAgentHarnessPooledRuntime, co as parkBackgroundSessionForReconciliation, cr as createPiSessionRegistry, cs as FeishuReceiveMessageReplayOptions, ct as openJsonAutomationTickRepository, cu as UnsupportedFeishuMessage, d as createJsonlHumanInteractionRepository, da as RivusDeploymentAutomationReadinessError, dc as AgentSessionClient, dd as ConversationProgressDisplay, di as FeishuCardKitClient, dl as DeadLetterRecoveryItem, dn as openJsonlToolOperationLedger, do as requestBackgroundSessionStop, dr as createPiAgentLoop, ds as FeishuReceiveRuntimeStatus, dt as ScheduledAutomation, du as FeishuSessionResetResult, ea as RivusDaemonFeishuReplayRunner, ec as createDefaultAgentHarnessFromCallback, ed as openJsonlFeishuCardDeliveryLedger, ei as FeishuCardRolloverSupervisor, el as ToolOperationLedger, en as RivusAgentHostOptions, eo as appendBackgroundSessionInput, er as createFeishuCardKitOpenApiClient, es as createFeishuWorkerLoop, et as CommitAutomationOutcomeInput, eu as FeishuNewSessionCommand, f as createInMemoryHumanInteractionRepository, fa as RivusDeploymentAutomationStatus, fc as AgentTextDeltaCallback, fd as DEFAULT_CONVERSATION_PROGRESS_DISPLAY, fi as FeishuCardKitFail, fl as DeadLetterRequeueResult, fn as AuthorizationPolicyProvider, fo as requeueInterruptedBackgroundSessionStep, fr as createPiSdkAgentLoop, fs as FeishuEndpointGroupPolicy, ft as ScheduledAutomationClock, fu as FeishuSessionStore, g as FeishuMessageReactionSender, ga as RivusDeploymentDaemonLifecycle, gc as AgentRunUpdateCallback, gd as PresentationStepStatus, gi as FeishuCardKitPublisherOptions, gl as ToolOperationResolutionResult, gn as ToolExecutionRequest, go as RivusDaemonShutdownControllerOptions, gr as PiSdkAgentLoopOptions, gs as FeishuMessageQueue, gt as CompactionService, gu as FeishuSessionReference, h as createConfiguredFeishuAutomationCardSender, ha as RivusDeploymentBackgroundSessionStatus, hc as AgentDomainEventSinkCallback, hd as PresentationStep, hi as FeishuCardKitPublisher, hl as ToolOperationRecoveryItem, hn as ToolBrokerOptions, ho as RivusDaemonShutdownController, hr as PiCreateAgentSessionResult, hs as FeishuMessagePreparedControl, ht as createAutomationMandateStore, hu as FeishuConversationReference, i as createFeishuHumanInteractionPresenter, ia as RivusDeploymentBootstrapAdapters, ic as createDefaultAgentRuntimeFromTextCallback, id as FeishuCardDeliveryReconcilerOptions, ii as FeishuCardTargetRegistry, il as FeishuInboxDelivery, in as FeishuPresentationPreparationOptions, io as createBackgroundSession, ir as RunPresentationProjector, is as createFeishuMessageWorker, it as createDeliveryOutbox, iu as createAgentCommandFromFeishuMessage, j as CreateRivusDeploymentDaemonOptions, ja as RivusAutomationDeployment, jc as SessionSchedulerOptions, ji as JsonlAgentEventLogOptions, jl as FeishuAgentExecutionResult, jn as FeishuCoalescingPublisher, jo as FeishuCardRolloverHandoffResult, jr as ConfiguredRivusDaemonBootstrap, js as RivusDaemonConfig, jt as createRivusMemoryTool, ju as HumanInteractionPresenter, k as CreateRivusDeploymentAutomationInput, ka as RivusAutomationDelivery, kc as SessionSchedulerCapacityExceeded, ki as AgentEventLogOperation, kl as FeishuAgentDaemonSteeredResult, kn as ConfiguredFeishuCardKitPublisherOptions, ko as FeishuCardRolloverEvent, kr as createLangfuseAgentTelemetry, ks as FeishuEndpointCredentials, kt as MemoryTombstoneReceipt, ku as HumanInteractionRepository, l as createFeishuHumanInteractionCard, lc as AgentClientSuccess, ld as FeishuStreamProjector, li as createJsonFileFeishuCardTargetRegistry, ll as FeishuInboxRepositoryStateOptions, ln as JsonlRecoveryControlOptions, lo as releaseBackgroundSessionLease, lr as PiAgentLoopOptions, ls as FeishuReceiveMessageReplayResult, lt as OpenJsonAutomationTickRepositoryOptions, lu as readFeishuMessageContent, m as FeishuAutomationCardSender, ma as RivusDeploymentBackgroundSessionReadinessError, mc as AgentDomainEventCallback, md as ModelPresentationStep, mi as FeishuCardKitPresentationUpdate, ml as RecoverySnapshot, mn as ToolBroker, mo as suspendBackgroundSession, mr as PiAgentSessionEvent, ms as FeishuMessageDrainResult, mt as createScheduledAutomation, mu as createFeishuSessionStore, n as createConfiguredFeishuHumanInteractionPresenter, na as RivusDaemonRecoveryRunner, nc as createDefaultAgentRuntime, nd as FeishuCardDeliveryLedgerStateOptions, ni as createFeishuCardRolloverSupervisor, nl as FeishuInboxCompletedState, nn as RivusEndpointInput, no as completeBackgroundSessionStep, nr as FeishuCardPresentationStoreOptions, ns as FeishuMessageWorkerOptions, nt as DeliveryOutbox, nu as FeishuPromptAgentCommand, o as FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID, oa as RivusDeploymentBootstrapFactory, oc as createUuidRunIds, od as createFeishuCardDeliveryLedger, oi as FeishuCardTargetRegistryStoreError, ol as FeishuInboxLeasedState, on as FeishuDeploymentEndpointOptions, oo as isBackgroundSessionDue, or as PiSessionRegistry, os as FeishuReceiveAcceptedObservation, ot as PluginStateStore, ou as FeishuMessageContentInput, p as FeishuAutomationCardInput, pa as RivusDeploymentBackgroundSessionLifecycle, pc as createAgentHarnessClient, pd as AssistantPresentationStep, pi as FeishuCardKitFinish, pl as RecoveryControl, pn as ToolApprovalService, po as resolveBackgroundSessionReconciliation, pr as PiAgentSession, ps as shouldAcceptFeishuEndpointMessage, pt as ScheduledAutomationOptions, pu as FeishuSessionStoreOptions, q as intersectToolIds, qa as WorkspaceInstructionSource, qc as AgentInstanceRecord, qi as createFeishuCardActionErrorResponse, ql as FeishuAgentCommand, qn as FeishuCotPublisherOptions, qo as RivusDaemonProcess, qr as createFeishuOpenApiClient, qs as DefaultAgentRuntimeOptions, qt as createBackgroundSessionRepository, qu as ToolApprovalBinding, r as FeishuHumanInteractionPresenterOptions, ra as runRivusDaemonCli, rc as createDefaultAgentRuntimeFromCallback, rd as FeishuCardDeliveryReconciler, ri as FeishuCardTargetNotFound, rl as FeishuInboxDeadState, rn as createRivusAgentHost, ro as completeBackgroundSessionStop, rr as createFeishuCardPresentationStore, rs as FeishuMessageWorkerQueue, rt as DeliveryOutboxError, ru as FeishuPromptMessageIntakeSummary, s as FeishuAgentRunCardInput, sa as RivusDeploymentCliProcess, sc as AgentClientAttempt, sd as createFeishuCardDeliveryReconciler, si as JsonFileFeishuCardTargetRegistryOptions, sl as FeishuInboxPendingState, sn as createFeishuDeploymentEndpoint, so as isBackgroundSessionLeaseExpired, sr as PiSessionRegistryOptions, ss as FeishuReceiveHandledObservation, st as createPluginStateStore, su as InvalidFeishuMessageContent, t as ConfiguredFeishuHumanInteractionPresenterOptions, ta as RivusDaemonPromptRunner, tc as createDefaultAgentHarnessFromTextCallback, td as FeishuCardDeliveryLedger, ti as FeishuCardRolloverSupervisorOptions, tl as createToolOperationLedger, tn as RivusEndpointDefinition, to as claimBackgroundSession, tr as FeishuCardPresentationNotFound, ts as FeishuMessageWorker, tt as commitAutomationOutcome, tu as FeishuNewSessionMessageIntakeSummary, u as JsonlHumanInteractionRepositoryOptions, ua as RivusDeploymentAutomationLifecycle, uc as AgentHarnessClient, ud as createFeishuStreamProjector, ui as FeishuCardKitCancel, ul as createFeishuInboxRepository, un as openJsonlRecoveryControl, uo as renewBackgroundSessionLease, ur as PiAgentSessionHandle, us as FeishuReceiveMessageSummary, ut as AutomationTickRepositoryCompatibility, uu as FeishuSessionEpochRecord, v as FeishuTextReplySender, va as RivusDeploymentDaemonStatus, vc as createAgentDomainEventSinkFromCallback, vd as ResponsePresentationStep, vi as FeishuCardTarget, vl as RecoveryAction, vn as WorkspaceInstructionsProvider, vo as RivusDaemonSignalSource, vr as OpenTelemetryAgentTelemetry, vs as createFeishuMessageQueue, vt as createCompactionService, vu as createFeishuConversationId, w as CreateConfiguredRivusDeploymentDaemonOptions, wa as ResolvedRivusAutomationDefinition, wc as JsonFetchRequestOptions, wd as PresentedValue, wi as FeishuWebSocketEventDispatcher, wl as FeishuAgentDaemonInteractionResult, wn as createSequenceRunIds, wo as RivusDaemonStatusReporter, wr as LangfuseAgentTelemetry, ws as OpenClawEnvImportResult, wt as createProjectMemoryPromptPreparer, wu as HumanInteractionClock, x as createHumanInteractionEndpointRegistry, xa as RivusDeploymentReadinessError, xc as createAgentHarness, xd as SkillPresentationStep, xi as FeishuWebSocketClientStartOptions, xl as FeishuAgentDaemonCancelResult, xn as resolveRivusProjectSpace, xo as RivusDaemonStatusHttpServerOptions, xr as TelemetryContentRedactor, xs as mergePiProviderBaseUrlOverride, xt as ProjectMemoryPromptInput, xu as HumanInteractionTransitionDenied, y as createConfiguredFeishuTextReplySender, ya as RivusDeploymentEndpointLifecycle, yc as createAgentRunUpdateHandler, yd as RunPresentation, yi as createFeishuCardKitPublisher, yl as createRecoveryAction, yn as createAgentsMdInstructionsProvider, yo as createRivusDaemonShutdownController, yr as createOpenTelemetryAgentEventSink, ys as FeishuMessageAcceptResult, yt as openJsonlAgentMemoryService, yu as createFeishuSessionKey, z as loadNodeRivusPluginModule, za as ProjectSkillCatalogDiagnostic, zc as PooledAgentRuntime, zi as FeishuEventHandlers, zl as FeishuAgentRunPreparation, zn as FeishuCardTargetCreateOptions, zo as CardPresentationChain, zr as createConfiguredFeishuCardRolloverRuntime, zs as DefaultAgentHarnessClientFromCallbackOptions, zt as BACKGROUND_SESSION_DELIVERY_JSONL_VERSION, zu as HumanInteractionBase } from "./chunks/index.js";
1
+ import { $ as DelegationEdge, $a as WorkspaceRootHandle, $c as createRecoveryControl, $i as RivusDaemonCliWriter, $l as FeishuMessageIntakeSummary, $n as FeishuCardKitOpenApiClientOptions, $o as FeishuWorkerLoopOptions, $r as createFeishuTenantAccessTokenProvider, $s as createDefaultAgentHarnessClientFromTextCallback, $t as RivusAgentHost, $u as JsonlFeishuCardDeliveryLedgerOptions, A as CreateRivusDeploymentBackgroundSessionInput, Aa as RivusAutomationDeliveryTargetType, Ac as SessionSchedulerDisposed, Ai as AgentEventLogStoreError, Al as FeishuAgentExecution, An as createConfiguredFeishuCardKitPublisher, Ao as FeishuCardRolloverEventType, Ar as resolveLangfuseTelemetryConfig, As as resolveFeishuEndpointCredentials, At as RivusMemoryTool, Au as HumanInteractionRepositoryError, B as LoadRivusDeploymentOptions, Ba as ProjectSkillCatalogEntry, Bc as createAgentRuntimePool, Bi as FeishuEventHandlersOptions, Bl as FeishuCardActionCommand, Bn as FeishuCardTargetCreator, Bo as CardPresentationStatus, Br as ConfiguredFeishuOpenApiRequest, Bs as DefaultAgentHarnessClientFromTextCallbackOptions, Bt as createBackgroundSessionHostTools, Bu as HumanInteractionFact, C as createRoutedHumanInteractionToolApprovalService, Ca as LoadedRivusDeployment, Cc as FetchLikeResponse, Cd as hasInspectableRunProgress, Ci as FeishuWebSocketDaemonOptions, Cl as FeishuAgentDaemonHandleResult, Cn as createFixedClock, Co as RivusDaemonStatus, Cr as createTelemetryContentRedactor, Cs as OpenClawEnvImportOptions, Ct as ProjectMemoryRecallOptions, Cu as ConsumeToolApprovalInput, D as LoadRivusDeploymentManifestOptions, Da as RivusPluginLoadStatus, Dc as createJsonFetchRequest, Di as createLazyFeishuWebSocketEventDispatcher, Dl as FeishuAgentDaemonSessionResetResult, Dn as FeishuPeriodicFlushOptions, Do as FeishuCardRollover, Dr as LangfuseTelemetryContentMode, Ds as formatRivusEnvFile, Dt as RIVUS_MEMORY_TOOL_VERSION, Du as ResolveHumanInteractionInput, E as loadRivusDeploymentManifest, Ea as RivusPluginLoadError, Ec as JsonHttpResponse, Ed as createPresentedValue, Ei as createFeishuWebSocketDaemon, El as FeishuAgentDaemonRunResult, En as FeishuPeriodicFlush, Eo as createRivusDaemonStatusReporter, Er as LangfuseTelemetryConfigError, Es as createRivusEnvFromOpenClawConfig, Et as RIVUS_MEMORY_TOOL_PLUGIN_ID, Eu as HumanInteractionServiceOptions, F as RivusDeploymentBackgroundSession, Fa as RivusEndpointExperimentalFeatures, Fc as AgentRuntimeInput, Fi as FeishuPeriodicFlushSupervisor, Fl as createFeishuAgentDaemon, Fn as RateLimitedFeishuPublisherOptions, Fo as FeishuCardPresentationHandoffStart, Fr as createConfiguredRivusDaemonBootstrap, Fs as RivusTextFileReader, Ft as FeishuBackgroundSessionDeliveryKind, Fu as CancelledHumanInteractionState, G as DelegationService, Ga as RivusProjectSpaceDeployment, Gc as AgentInstanceRegistryOptions, Gi as FeishuCardActionToast, Gl as UnsupportedFeishuCardAction, Gn as FeishuCotProtocolError, Go as CompositeRivusDaemonTransportOptions, Gr as FeishuOpenApiResponse, Gs as DefaultAgentRuntimeFromCallbackOptions, Gt as BACKGROUND_SESSION_DELIVERY_JSONL_VERSION, Gu as RejectedHumanInteractionState, H as loadRivusDeployment, Ha as validateProjectSkillCommand, Hc as createAgentInstanceRegistry, Hi as FeishuSdkReceiveMessagePayload, Hl as FeishuCardActionTriggerPayload, Hn as createConfiguredFeishuCardKitTargetCreator, Ho as acceptsCardPresentationProgress, Hr as FeishuOpenApiClient, Hs as DefaultAgentHarnessFromCallbackOptions, Ht as isBackgroundSessionState, Hu as HumanInteractionResolutionAction, I as RivusDeploymentDaemon, Ia as RivusPluginDeclaration, Ic as AgentRuntimePool, Ii as createFeishuAgentRuntime, Il as FeishuPromptContextInput, In as createRateLimitedFeishuPublisher, Io as FeishuCardPresentationStore, Ir as restoreConfiguredRivusDaemonBootstrap, Is as RivusThinkingLevel, It as createBackgroundSessionCard, Iu as ExpiredHumanInteractionState, J as SpawnSubagentRequest, Ja as WorkspaceInstructionsDiagnostic, Jc as OpenJsonFeishuSessionStoreOptions, Ji as FeishuRawCardJson, Jl as FeishuCancelMessageIntakeSummary, Jn as FeishuCotRunPreparation, Jo as RivusDaemonProcessOptions, Jr as FeishuTenantAccessTokenError, Js as DefaultAgentRuntimeSessionOptions, Jt as AgentMemoryServiceOptions, Ju as ToolApprovalInteraction, K as createDelegationService, Ka as InvalidWorkspaceRoot, Kc as AgentInstanceConflict, Ki as createFeishuCardActionCallbackResponse, Kl as createAgentCommandFromFeishuCardAction, Kn as FeishuCotPublisher, Ko as createCompositeRivusDaemonTransport, Kr as createConfiguredFeishuOpenApiClient, Ks as DefaultAgentRuntimeFromTextCallbackOptions, Kt as openJsonlBackgroundSessionDeliveryStore, Ku as SelectedHumanInteractionState, L as RivusDeploymentEndpoint, La as validateRivusDeploymentManifest, Lc as AgentRuntimePoolOptions, Li as FeishuEventHandlerCardActions, Ll as FeishuPromptContextResolver, Ln as FeishuCardKitOpenApiTargetCreatorOptions, Lo as DEFAULT_CARD_STREAM_LEASE_MS, Lr as ConfiguredFeishuCardRolloverRuntime, Ls as loadRivusDaemonConfig, Lt as createConfiguredFeishuBackgroundSessionDelivery, Lu as HumanInteraction, M as CreateRivusDeploymentEndpointInput, Ma as RivusBackgroundSessionsDeployment, Mc as SessionSchedulerStatus, Mi as createJsonlAgentEventLog, Ml as FeishuAgentMessageSideEffects, Mn as FeishuCoalescingPublisherOptions, Mo as FeishuCardRolloverOptions, Mr as ConfiguredRivusDaemonBootstrapOptions, Ms as RivusDaemonConfigError, Mt as createRivusMemoryToolDescriptor, Mu as RequestToolApprovalInput, N as CreateRivusDeploymentRuntimeInput, Na as RivusDeploymentManifest, Nc as createSessionScheduler, Ni as FeishuAgentRuntime, Nl as FeishuAgentPreparedControl, Nn as createCoalescingFeishuPublisher, No as FeishuCardRolloverStatus, Nr as ConfiguredRivusDaemonBootstrapRequest, Ns as RivusDaemonConfigLoaderOptions, Nt as FeishuBackgroundSessionDelivery, Nu as RequestUserDecisionInput, O as RivusDeploymentManifestError, Oa as RivusPluginModuleLoadRequest, Oc as SessionScheduler, Oi as AgentEventLog, Ol as FeishuAgentDaemonSkippedResult, On as createFeishuPeriodicFlush, Oo as FeishuCardRolloverCounters, Or as LangfuseTelemetryEnv, Os as FeishuEndpointCredentialError, Ot as createRivusMemoryToolContract, Ou as createHumanInteractionService, P as RivusDeploymentAutomation, Pa as RivusEndpointDeployment, Pc as AgentRuntimeCancellation, Pi as FeishuAgentRuntimeOptions, Pl as FeishuHumanInteractionActions, Pn as FeishuStreamActionPublisher, Po as createFeishuCardRollover, Pr as ConfiguredRivusDaemonBootstrapResponse, Ps as RivusDaemonEnv, Pt as FeishuBackgroundSessionDeliveryInput, Pu as ApprovedHumanInteractionState, Q as DelegationDenied, Qa as WorkspaceInstructionsView, Qc as RecoveryControlOptions, Qi as RivusDaemonCliOptions, Ql as FeishuMessageIntakeOptions, Qn as createFeishuTopicContextResolver, Qo as FeishuWorkerLoop, Qr as FeishuTenantAccessTokenResponse, Qs as createDefaultAgentHarnessClientFromCallback, Qt as InvalidRivusEndpointBinding, Qu as UserDecisionOption, R as createRivusDeploymentDaemon, Ra as InvalidProjectSkillCatalog, Rc as AgentRuntimeSteering, Ri as FeishuEventHandlerQueue, Rl as composeFeishuTopicPrompt, Rn as FeishuCardPresentationBinder, Ro as CardPresentation, Rr as ConfiguredFeishuCardRolloverRuntimeOptions, Rs as AgentRuntime, Rt as resolveFeishuDeliveryChatId, Ru as HumanInteractionActor, S as createHumanInteractionToolApprovalGateway, Sa as RivusDeploymentComponentLifecycle, Sc as FetchLike, Sd as ToolPresentationStep, Si as FeishuWebSocketDaemon, Sl as FeishuAgentDaemonHandleMessageOptions, Sn as resolveRivusAgentDefinition, So as createRivusDaemonStatusHttpServer, Sr as TelemetryContentRedactorOptions, Ss as OpenClawEnvImportError, St as ProjectMemoryRecallIdentity, Su as transitionHumanInteraction, T as createConfiguredRivusDeploymentDaemon, Ta as RivusAgentDeploymentStatus, Tc as JsonHttpRequest, Td as PresentedValueOptions, Ti as FeishuWebSocketRuntime, Tl as FeishuAgentDaemonOptions, Tn as createTestClock, To as RivusDaemonStatusReporterOptions, Tr as LangfuseTelemetryConfig, Ts as RivusEnvFileVariables, Tt as RIVUS_MEMORY_TOOL_ID, Tu as HumanInteractionService, U as SubagentCoordinator, Ua as InvalidRivusProjectSpace, Uc as AgentInstanceBusy, Ui as createFeishuEventHandlers, Ul as FeishuResolveInteractionCommand, Un as createFeishuCardKitOpenApiTargetCreator, Uo as activeCardPresentation, Ur as FeishuOpenApiError, Us as DefaultAgentHarnessFromTextCallbackOptions, Ut as openJsonlBackgroundSessionRepository, Uu as HumanInteractionTransition, V as RivusPluginModule, Va as validateProjectSkillCatalog, Vc as AgentInstanceRegistry, Vi as FeishuReceiveMessageHandlerPayload, Vl as FeishuCardActionIntakeError, Vn as FeishuCardTargetPreparationOptions, Vo as CardPresentationTransitionDenied, Vr as ConfiguredFeishuOpenApiResponse, Vs as DefaultAgentHarnessClientOptions, Vt as BACKGROUND_SESSION_JSONL_VERSION, Vu as HumanInteractionId, W as createSubagentCoordinator, Wa as ResolvedRivusProjectSpace, Wc as AgentRuntimeDisposed, Wi as FeishuCardActionCallbackResponse, Wl as InvalidFeishuCardAction, Wn as createFeishuCardTargetPreparation, Wo as isCardPresentationHandoffDue, Wr as FeishuOpenApiRequest, Ws as DefaultAgentHarnessOptions, Wt as createBackgroundSessionRepository, Wu as PendingHumanInteractionState, X as DelegationGrant, Xa as WorkspaceInstructionsRequest, Xc as JsonlFeishuInboxRepositoryOptions, Xi as RivusDaemonBootstrapFactory, Xl as FeishuMessageIntakeBaseSummary, Xn as FeishuTopicContextResolverOptions, Xo as RivusDaemonWorkerLoop, Xr as FeishuTenantAccessTokenProviderOptions, Xs as createDefaultAgentHarness, Xt as AgentMemoryHandle, Xu as UserDecisionInteraction, Y as SubagentRecord, Ya as WorkspaceInstructionsDiagnosticCode, Yc as openJsonFeishuSessionStore, Yi as RivusDaemonBootstrapContext, Yl as FeishuCancelRunCommand, Yn as createFeishuCotPublisher, Yo as RivusDaemonTransport, Yr as FeishuTenantAccessTokenProvider, Ys as createAgentRuntime, Yt as createAgentMemoryService, Yu as ToolApprovalInteractionState, Z as DelegationRequest, Za as WorkspaceInstructionsSourceError, Zc as openJsonlFeishuInboxRepository, Zi as RivusDaemonBootstrapModule, Zl as FeishuMessageIntakeError, Zn as InvalidFeishuTopicContext, Zo as createRivusDaemonProcess, Zr as FeishuTenantAccessTokenRequest, Zs as createDefaultAgentHarnessClient, Zt as AgentMemoryService, Zu as UserDecisionInteractionState, _ as createConfiguredFeishuMessageReactionSender, _a as RivusDeploymentDaemonLifecycleError, _c as createAgentDomainEventHandler, _d as RUN_PRESENTATION_SCHEMA_VERSION, _i as FeishuCardKitTextUpdate, _l as InvalidRecoveryAction, _n as createToolBroker, _o as RivusDaemonShutdownSignal, _r as OpenTelemetryAgentEventSinkOptions, _s as FeishuMessageQueueOptions, _t as CompactorPort, _u as InvalidFeishuSessionReference, a as FEISHU_AGENT_CARD_ELEMENT_ID, aa as RivusDeploymentBootstrapContext, ac as createSystemClock, ad as FeishuCardDeliveryRecord, ai as FeishuCardTargetRegistryOperation, al as FeishuInboxDeliveryState, an as createFeishuPresentationPreparation, ao as failBackgroundSessionStep, ar as createRunPresentationProjector, as as FeishuMessageWorkerDrainAvailableResult, at as PluginStateConflict, au as describeFeishuMessageIntake, b as HumanInteractionEndpointRegistry, ba as RivusDeploymentEndpointStatus, bc as AgentHarnessOptions, bd as RunPresentationPhase, bi as FeishuWebSocketClient, bl as FeishuAgentDaemon, bn as createWorkspaceRootHandle, bo as RivusDaemonStatusHttpServer, br as createOpenTelemetryAgentTelemetry, bs as MergePiProviderBaseUrlOverrideOptions, bt as createAgentLoopPromptTransformer, bu as FeishuReceiveMessagePayload, c as createFeishuAgentRunCard, ca as createRivusDeploymentCliProcess, cc as AgentClientFailure, cd as FeishuStreamAction, ci as createInMemoryFeishuCardTargetRegistry, cl as FeishuInboxRepository, cn as createAgentHarnessPooledRuntime, co as parkBackgroundSessionForReconciliation, cr as createPiSessionRegistry, cs as FeishuReceiveMessageReplayOptions, ct as openJsonAutomationTickRepository, cu as UnsupportedFeishuMessage, d as createJsonlHumanInteractionRepository, da as RivusDeploymentAutomationReadinessError, dc as AgentSessionClient, dd as ConversationProgressDisplay, di as FeishuCardKitClient, dl as DeadLetterRecoveryItem, dn as openJsonlToolOperationLedger, do as requestBackgroundSessionStop, dr as createPiAgentLoop, ds as FeishuReceiveRuntimeStatus, dt as ScheduledAutomation, du as FeishuSessionResetResult, ea as RivusDaemonFeishuReplayRunner, ec as createDefaultAgentHarnessFromCallback, ed as openJsonlFeishuCardDeliveryLedger, ei as FeishuCardRolloverSupervisor, el as ToolOperationLedger, en as RivusAgentHostOptions, eo as appendBackgroundSessionInput, er as createFeishuCardKitOpenApiClient, es as createFeishuWorkerLoop, et as CommitAutomationOutcomeInput, eu as FeishuNewSessionCommand, f as createInMemoryHumanInteractionRepository, fa as RivusDeploymentAutomationStatus, fc as AgentTextDeltaCallback, fd as DEFAULT_CONVERSATION_PROGRESS_DISPLAY, fi as FeishuCardKitFail, fl as DeadLetterRequeueResult, fn as AuthorizationPolicyProvider, fo as requeueInterruptedBackgroundSessionStep, fr as createPiSdkAgentLoop, fs as FeishuEndpointGroupPolicy, ft as ScheduledAutomationClock, fu as FeishuSessionStore, g as FeishuMessageReactionSender, ga as RivusDeploymentDaemonLifecycle, gc as AgentRunUpdateCallback, gd as PresentationStepStatus, gi as FeishuCardKitPublisherOptions, gl as ToolOperationResolutionResult, gn as ToolExecutionRequest, go as RivusDaemonShutdownControllerOptions, gr as PiSdkAgentLoopOptions, gs as FeishuMessageQueue, gt as CompactionService, gu as FeishuSessionReference, h as createConfiguredFeishuAutomationCardSender, ha as RivusDeploymentBackgroundSessionStatus, hc as AgentDomainEventSinkCallback, hd as PresentationStep, hi as FeishuCardKitPublisher, hl as ToolOperationRecoveryItem, hn as ToolBrokerOptions, ho as RivusDaemonShutdownController, hr as PiCreateAgentSessionResult, hs as FeishuMessagePreparedControl, ht as createAutomationMandateStore, hu as FeishuConversationReference, i as createFeishuHumanInteractionPresenter, ia as RivusDeploymentBootstrapAdapters, ic as createDefaultAgentRuntimeFromTextCallback, id as FeishuCardDeliveryReconcilerOptions, ii as FeishuCardTargetRegistry, il as FeishuInboxDelivery, in as FeishuPresentationPreparationOptions, io as createBackgroundSession, ir as RunPresentationProjector, is as createFeishuMessageWorker, it as createDeliveryOutbox, iu as createAgentCommandFromFeishuMessage, j as CreateRivusDeploymentDaemonOptions, ja as RivusAutomationDeployment, jc as SessionSchedulerOptions, ji as JsonlAgentEventLogOptions, jl as FeishuAgentExecutionResult, jn as FeishuCoalescingPublisher, jo as FeishuCardRolloverHandoffResult, jr as ConfiguredRivusDaemonBootstrap, js as RivusDaemonConfig, jt as createRivusMemoryTool, ju as HumanInteractionPresenter, k as CreateRivusDeploymentAutomationInput, ka as RivusAutomationDelivery, kc as SessionSchedulerCapacityExceeded, ki as AgentEventLogOperation, kl as FeishuAgentDaemonSteeredResult, kn as ConfiguredFeishuCardKitPublisherOptions, ko as FeishuCardRolloverEvent, kr as createLangfuseAgentTelemetry, ks as FeishuEndpointCredentials, kt as MemoryTombstoneReceipt, ku as HumanInteractionRepository, l as createFeishuHumanInteractionCard, lc as AgentClientSuccess, ld as FeishuStreamProjector, li as createJsonFileFeishuCardTargetRegistry, ll as FeishuInboxRepositoryStateOptions, ln as JsonlRecoveryControlOptions, lo as releaseBackgroundSessionLease, lr as PiAgentLoopOptions, ls as FeishuReceiveMessageReplayResult, lt as OpenJsonAutomationTickRepositoryOptions, lu as readFeishuMessageContent, m as FeishuAutomationCardSender, ma as RivusDeploymentBackgroundSessionReadinessError, mc as AgentDomainEventCallback, md as ModelPresentationStep, mi as FeishuCardKitPresentationUpdate, ml as RecoverySnapshot, mn as ToolBroker, mo as suspendBackgroundSession, mr as PiAgentSessionEvent, ms as FeishuMessageDrainResult, mt as createScheduledAutomation, mu as createFeishuSessionStore, n as createConfiguredFeishuHumanInteractionPresenter, na as RivusDaemonRecoveryRunner, nc as createDefaultAgentRuntime, nd as FeishuCardDeliveryLedgerStateOptions, ni as createFeishuCardRolloverSupervisor, nl as FeishuInboxCompletedState, nn as RivusEndpointInput, no as completeBackgroundSessionStep, nr as FeishuCardPresentationStoreOptions, ns as FeishuMessageWorkerOptions, nt as DeliveryOutbox, nu as FeishuPromptAgentCommand, o as FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID, oa as RivusDeploymentBootstrapFactory, oc as createUuidRunIds, od as createFeishuCardDeliveryLedger, oi as FeishuCardTargetRegistryStoreError, ol as FeishuInboxLeasedState, on as FeishuDeploymentEndpointOptions, oo as isBackgroundSessionDue, or as PiSessionRegistry, os as FeishuReceiveAcceptedObservation, ot as PluginStateStore, ou as FeishuMessageContentInput, p as FeishuAutomationCardInput, pa as RivusDeploymentBackgroundSessionLifecycle, pc as createAgentHarnessClient, pd as AssistantPresentationStep, pi as FeishuCardKitFinish, pl as RecoveryControl, pn as ToolApprovalService, po as resolveBackgroundSessionReconciliation, pr as PiAgentSession, ps as shouldAcceptFeishuEndpointMessage, pt as ScheduledAutomationOptions, pu as FeishuSessionStoreOptions, q as intersectToolIds, qa as WorkspaceInstructionSource, qc as AgentInstanceRecord, qi as createFeishuCardActionErrorResponse, ql as FeishuAgentCommand, qn as FeishuCotPublisherOptions, qo as RivusDaemonProcess, qr as createFeishuOpenApiClient, qs as DefaultAgentRuntimeOptions, qt as createBackgroundSessionDeliveryStore, qu as ToolApprovalBinding, r as FeishuHumanInteractionPresenterOptions, ra as runRivusDaemonCli, rc as createDefaultAgentRuntimeFromCallback, rd as FeishuCardDeliveryReconciler, ri as FeishuCardTargetNotFound, rl as FeishuInboxDeadState, rn as createRivusAgentHost, ro as completeBackgroundSessionStop, rr as createFeishuCardPresentationStore, rs as FeishuMessageWorkerQueue, rt as DeliveryOutboxError, ru as FeishuPromptMessageIntakeSummary, s as FeishuAgentRunCardInput, sa as RivusDeploymentCliProcess, sc as AgentClientAttempt, sd as createFeishuCardDeliveryReconciler, si as JsonFileFeishuCardTargetRegistryOptions, sl as FeishuInboxPendingState, sn as createFeishuDeploymentEndpoint, so as isBackgroundSessionLeaseExpired, sr as PiSessionRegistryOptions, ss as FeishuReceiveHandledObservation, st as createPluginStateStore, su as InvalidFeishuMessageContent, t as ConfiguredFeishuHumanInteractionPresenterOptions, ta as RivusDaemonPromptRunner, tc as createDefaultAgentHarnessFromTextCallback, td as FeishuCardDeliveryLedger, ti as FeishuCardRolloverSupervisorOptions, tl as createToolOperationLedger, tn as RivusEndpointDefinition, to as claimBackgroundSession, tr as FeishuCardPresentationNotFound, ts as FeishuMessageWorker, tt as commitAutomationOutcome, tu as FeishuNewSessionMessageIntakeSummary, u as JsonlHumanInteractionRepositoryOptions, ua as RivusDeploymentAutomationLifecycle, uc as AgentHarnessClient, ud as createFeishuStreamProjector, ui as FeishuCardKitCancel, ul as createFeishuInboxRepository, un as openJsonlRecoveryControl, uo as renewBackgroundSessionLease, ur as PiAgentSessionHandle, us as FeishuReceiveMessageSummary, ut as AutomationTickRepositoryCompatibility, uu as FeishuSessionEpochRecord, v as FeishuTextReplySender, va as RivusDeploymentDaemonStatus, vc as createAgentDomainEventSinkFromCallback, vd as ResponsePresentationStep, vi as FeishuCardTarget, vl as RecoveryAction, vn as WorkspaceInstructionsProvider, vo as RivusDaemonSignalSource, vr as OpenTelemetryAgentTelemetry, vs as createFeishuMessageQueue, vt as createCompactionService, vu as createFeishuConversationId, w as CreateConfiguredRivusDeploymentDaemonOptions, wa as ResolvedRivusAutomationDefinition, wc as JsonFetchRequestOptions, wd as PresentedValue, wi as FeishuWebSocketEventDispatcher, wl as FeishuAgentDaemonInteractionResult, wn as createSequenceRunIds, wo as RivusDaemonStatusReporter, wr as LangfuseAgentTelemetry, ws as OpenClawEnvImportResult, wt as createProjectMemoryPromptPreparer, wu as HumanInteractionClock, x as createHumanInteractionEndpointRegistry, xa as RivusDeploymentReadinessError, xc as createAgentHarness, xd as SkillPresentationStep, xi as FeishuWebSocketClientStartOptions, xl as FeishuAgentDaemonCancelResult, xn as resolveRivusProjectSpace, xo as RivusDaemonStatusHttpServerOptions, xr as TelemetryContentRedactor, xs as mergePiProviderBaseUrlOverride, xt as ProjectMemoryPromptInput, xu as HumanInteractionTransitionDenied, y as createConfiguredFeishuTextReplySender, ya as RivusDeploymentEndpointLifecycle, yc as createAgentRunUpdateHandler, yd as RunPresentation, yi as createFeishuCardKitPublisher, yl as createRecoveryAction, yn as createAgentsMdInstructionsProvider, yo as createRivusDaemonShutdownController, yr as createOpenTelemetryAgentEventSink, ys as FeishuMessageAcceptResult, yt as openJsonlAgentMemoryService, yu as createFeishuSessionKey, z as loadNodeRivusPluginModule, za as ProjectSkillCatalogDiagnostic, zc as PooledAgentRuntime, zi as FeishuEventHandlers, zl as FeishuAgentRunPreparation, zn as FeishuCardTargetCreateOptions, zo as CardPresentationChain, zr as createConfiguredFeishuCardRolloverRuntime, zs as DefaultAgentHarnessClientFromCallbackOptions, zt as CreateBackgroundSessionHostToolsOptions, zu as HumanInteractionBase } from "./chunks/index.js";
2
2
  import { $ as AgentSessionSnapshot, $t as isTerminalAgentRunPhase, A as AgentHarnessBusy, At as createAgentLoopTurnStart, B as AgentHarnessBusyAvailability, Bt as createAgentConversationMessages, C as AssembledAgentContext, Cn as isAssistantThinkingDeltaEvent, Ct as createAgentLoopSkillExecutionEnd, D as createAgentDomainEventSink, Dt as createAgentLoopToolExecutionEnd, E as restoreAgentHistory, Et as createAgentLoopThinkingDelta, F as AgentDomainEventHandler, Ft as AgentConversationMessagesOptions, G as AgentRunUpdate, Gt as AgentRunSummary, H as AgentHarnessIdleAvailability, Ht as createAgentTranscriptTurn, I as AgentDomainEventListener, It as AgentTranscript, J as AgentSessionAvailability, Jt as AgentRunPhase, K as AgentRunUpdateHandler, Kt as AgentSessionSummary, L as AgentDomainEventSink, Lt as AgentTranscriptMessage, M as AgentRunCancelled, Mt as AutomationAgentInvocationOrigin, N as ActiveAgentRun, Nt as FeishuAgentInvocationOrigin, O as AgentEventHandlerFailed, Ot as createAgentLoopToolExecutionStart, P as AgentClock, Pt as LocalCliAgentInvocationOrigin, Q as AgentSessionOwnedBusyAvailability, Qt as initialAgentRunState, R as AgentHarness, Rt as AgentTranscriptMessageRole, S as AgentContextLayerKind, Sn as isAssistantTextDeltaEvent, St as createAgentLoopModelExecutionStart, T as AgentHistoryEventLog, Tt as createAgentLoopTextDelta, U as AgentPromptResult, Ut as replayAgentTranscript, V as AgentHarnessError, Vt as createAgentTranscriptMessages, W as AgentRunSnapshot, Wt as AgentHistory, X as AgentSessionHandle, Xt as AgentSkillExecutionState, Y as AgentSessionBusyAvailability, Yt as AgentRunState, Z as AgentSessionOtherBusyAvailability, Zt as evolveAgentRun, _ as AgentModelInputObservation, _n as AssistantTextDelta, _t as AgentLoopToolExecutionStartOptions, a as AgentLoopInput, an as AgentRunAccepted, at as AgentLoopModelExecutionEndOptions, b as AgentContextInput, bn as TerminalAgentDomainEvent, bt as AgentLoopTurnStart, c as EventAgentLoopOptions, cn as AgentRunId, ct as AgentLoopSkillExecutionEnd, d as createAgentLoopFromCallback, dn as AgentToolExecutionEnded, dt as AgentLoopSkillExecutionStartOptions, en as AgentDomainEvent, et as PromptCommand, f as createAsyncIterableAgentLoop, fn as AgentToolExecutionEvent, ft as AgentLoopTextDelta, g as AgentModelContentObserver, gn as AgentTurnStarted, gt as AgentLoopToolExecutionStart, h as createTextAgentLoopFromCallback, hn as AgentTurnCompleted, ht as AgentLoopToolExecutionEndOptions, i as AgentLoopCallbackResult, in as AgentModelUsage, it as AgentLoopModelExecutionEnd, j as AgentLoopFailed, jt as AgentInvocationOrigin, k as AgentEventSinkFailed, kt as createAgentLoopToolExecutionUpdate, l as TextAgentLoopCallback, ln as AgentSkillExecutionEnded, lt as AgentLoopSkillExecutionEndOptions, m as createTextAgentLoop, mn as AgentToolExecutionUpdated, mt as AgentLoopToolExecutionEnd, n as AgentLoopCallback, nn as AgentModelExecutionEvent, nt as AgentLoopEvent, o as AgentSteeringChannel, on as AgentRunCompleted, ot as AgentLoopModelExecutionStart, p as createEventAgentLoop, pn as AgentToolExecutionStarted, pt as AgentLoopThinkingDelta, q as AgentRunUpdateListener, qt as replayAgentHistory, r as AgentLoopCallbackOutput, rn as AgentModelExecutionStarted, rt as AgentLoopEventLike, s as AsyncIterableAgentLoopOptions, sn as AgentRunFailed, st as AgentLoopModelExecutionStartOptions, t as AgentLoop, tn as AgentModelExecutionEnded, tt as RunIdGenerator, u as TextAgentLoopOptions, un as AgentSkillExecutionStarted, ut as AgentLoopSkillExecutionStart, v as AgentModelOutputObservation, vn as AssistantThinkingDelta, vt as AgentLoopToolExecutionUpdate, w as assembleAgentContext, wn as isTerminalAgentDomainEvent, wt as createAgentLoopSkillExecutionStart, x as AgentContextLayer, xn as isAgentToolExecutionEvent, xt as createAgentLoopModelExecutionEnd, y as AgentContextBudgetExceeded, yn as SessionKey, yt as AgentLoopToolExecutionUpdateOptions, z as AgentHarnessAvailability, zt as AgentTranscriptTurn } from "./chunks/agent-loop.js";
3
3
  import { a as MemoryState, c as MEMORY_SCOPES, d as MemoryScope, f as createMemoryNamespace, g as CompactionSnapshot, h as CompactionInput, i as MemoryRecord, l as MemoryBinding, m as CompactionError, n as MemorySearchQuery, o as AgentMemoryAuthority, p as restrictMemoryScopesForAudience, r as AgentMemorySnapshot, s as AgentMemoryIdentity, t as AgentMemoryError, u as MemoryInvocationAudience } from "./chunks/api.js";
4
4
  import { $ as RivusToolDescriptor, A as InvalidAutomationPresentation, B as CommittedAutomationOutcome, C as AUTOMATION_PRESENTATION_SCHEMA_VERSION, D as AutomationPresentationKind, E as AutomationPresentationItem, F as AutomationMandate, G as PutPluginState, H as DeliveryJob, I as AutomationMandateError, J as RivusAgentDeployment, K as RegisteredRivusAgentProfile, L as AutomationMandateStore, M as readAutomationPresentation, N as AutomationBinding, O as AutomationPresentationSection, P as AutomationDeliveryBinding, Q as RivusResolvedToolDescriptor, R as AutomationTick, S as AutomationTickStatus, T as AutomationPresentationInput, U as DeliveryJobStatus, W as PluginStateRecord, X as RegisteredRivusTool, Y as RivusAgentProfile, Z as RivusHostToolDescriptor, _ as AUTOMATION_SUPPRESSION_PREFIX, a as RivusPlugin, at as RivusToolInputRejected, b as ScheduledAutomationRunResult, c as RivusPluginManifest, ct as RivusSkillDescriptor, d as RivusAutomationInput, dt as RivusRuntimeToolGrantSet, et as RivusToolExecutionContext, f as RivusAutomationOutput, ft as RivusRuntimeToolId, g as createDailyAutomationSchedule, h as DailyAutomationSchedule, i as RegisteredRivusPlugin, it as RivusToolIdempotency, j as createAutomationPresentation, k as AutomationPresentationSource, l as RivusPluginRegistry, lt as RivusSkillGrantSet, m as RivusAutomationTickContext, n as InvalidRivusPlugin, nt as RivusToolFactoryContext, o as RivusPluginCatalog, ot as RivusToolRisk, p as RivusAutomationTemplate, pt as isRivusRuntimeToolId, q as ResolvedRivusAgentDefinition, r as RIVUS_PLUGIN_API_VERSION, rt as RivusToolGrantSet, s as RivusPluginCatalogSnapshot, st as RegisteredRivusSkill, t as createRivusPluginCatalog, tt as RivusToolExecutor, u as RegisteredRivusAutomation, ut as RIVUS_RUNTIME_TOOL_IDS, v as ScheduledAutomationDeliveryInput, w as AutomationPresentation, x as AutomationTickRecord, y as ScheduledAutomationRunInput, z as AutomationOutcome } from "./chunks/api2.js";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { A as isAssistantThinkingDeltaEvent, B as createAgentLoopToolExecutionUpdate, C as replayAgentTranscript, D as isTerminalAgentRunPhase, E as initialAgentRunState, F as createAgentLoopSkillExecutionStart, I as createAgentLoopTextDelta, L as createAgentLoopThinkingDelta, M as createAgentLoopModelExecutionEnd, N as createAgentLoopModelExecutionStart, O as isAgentToolExecutionEvent, P as createAgentLoopSkillExecutionEnd, R as createAgentLoopToolExecutionEnd, S as createAgentTranscriptTurn, T as evolveAgentRun, V as createAgentLoopTurnStart, _ as AgentHarnessBusy, a as createTextAgentLoopFromCallback, b as createAgentConversationMessages, d as assembleAgentContext, f as restoreAgentHistory, g as AgentEventSinkFailed, h as AgentEventHandlerFailed, i as createTextAgentLoop, j as isTerminalAgentDomainEvent, k as isAssistantTextDeltaEvent, m as createAgentDomainEventSink, n as createAsyncIterableAgentLoop, r as createEventAgentLoop, t as createAgentLoopFromCallback, u as AgentContextBudgetExceeded, v as AgentLoopFailed, w as replayAgentHistory, x as createAgentTranscriptMessages, y as AgentRunCancelled, z as createAgentLoopToolExecutionStart } from "./chunks/agent-loop.js";
2
- import { $ as createFeishuPresentationPreparation, $n as createUuidRunIds, $t as FEISHU_AGENT_CARD_ELEMENT_ID, A as createCompactionService, An as createAgentCommandFromFeishuMessage, At as createPiSdkAgentLoop, B as openJsonlBackgroundSessionDeliveryStore, Bn as createAgentCommandFromFeishuCardAction, Bt as restoreConfiguredRivusDaemonBootstrap, C as DeliveryOutboxError, Cn as createCompositeRivusDaemonTransport, Cr as hasInspectableRunProgress, Ct as createAutomationPresentation, D as openJsonAutomationTickRepository, Dn as shouldAcceptFeishuEndpointMessage, Dt as AutomationMandateError, E as createPluginStateStore, En as createFeishuMessageWorker, Et as createDailyAutomationSchedule, F as createRivusMemoryToolDescriptor, Fn as InvalidFeishuSessionReference, Ft as createOpenTelemetryAgentTelemetry, G as createBackgroundSessionDeliveryStore, Gn as createDefaultAgentHarnessClientFromCallback, Gt as createConfiguredFeishuTextReplySender, H as isBackgroundSessionState, Hn as createAgentRuntime, Ht as createFeishuTopicContextResolver, I as createBackgroundSessionCard, In as createFeishuConversationId, It as createTelemetryContentRedactor, J as BackgroundSessionRepositoryConflict, Jn as createDefaultAgentHarnessFromTextCallback, Jt as createFeishuCardKitOpenApiTargetCreator, K as BackgroundSessionDeliveryConflict, Kn as createDefaultAgentHarnessClientFromTextCallback, Kt as createConfiguredFeishuCardRolloverRuntime, L as createConfiguredFeishuBackgroundSessionDelivery, Ln as createFeishuSessionKey, Lt as AgentEventLogStoreError, M as createAgentLoopPromptTransformer, Mn as InvalidFeishuMessageContent, Mt as createLangfuseAgentTelemetry, N as createProjectMemoryPromptPreparer, Nn as UnsupportedFeishuMessage, Nt as resolveLangfuseTelemetryConfig, O as createScheduledAutomation, On as createFeishuMessageQueue, Ot as createPiSessionRegistry, P as createRivusMemoryTool, Pn as readFeishuMessageContent, Pt as createOpenTelemetryAgentEventSink, Q as createRivusAgentHost, Qn as createSystemClock, Qt as createFeishuCardKitOpenApiClient, R as resolveFeishuDeliveryChatId, Rn as InvalidFeishuCardAction, Rt as createJsonlAgentEventLog, S as commitAutomationOutcome, Sn as createRivusDaemonStatusReporter, Sr as RUN_PRESENTATION_SCHEMA_VERSION, St as InvalidAutomationPresentation, T as PluginStateConflict, Tn as createFeishuWorkerLoop, Tt as AUTOMATION_SUPPRESSION_PREFIX, U as openJsonlBackgroundSessionRepository, Un as createDefaultAgentHarness, Ut as composeFeishuTopicPrompt, V as BACKGROUND_SESSION_JSONL_VERSION, Vn as mergePiProviderBaseUrlOverride, Vt as InvalidFeishuTopicContext, W as createBackgroundSessionHostTools, Wn as createDefaultAgentHarnessClient, Wt as createConfiguredFeishuMessageReactionSender, X as createAgentMemoryService, Xn as createDefaultAgentRuntimeFromCallback, Xt as createConfiguredFeishuCardKitPublisher, Y as BackgroundSessionRepositoryCorrupted, Yn as createDefaultAgentRuntime, Yt as createFeishuCardTargetPreparation, Z as InvalidRivusEndpointBinding, Zn as createDefaultAgentRuntimeFromTextCallback, Zt as createFeishuCardKitPublisher, _ as loadRivusDeployment, _n as createFeishuHumanInteractionCard, _r as openJsonlFeishuCardDeliveryLedger, _t as FeishuCardTargetRegistryStoreError, a as HumanInteractionRepositoryError, an as FeishuTenantAccessTokenError, ar as createJsonFetchRequest, at as openJsonlToolOperationLedger, b as intersectToolIds, bn as validateProjectSkillCommand, br as createFeishuStreamProjector, bt as createRunPresentationProjector, c as createHumanInteractionToolApprovalGateway, cn as createCoalescingFeishuPublisher, cr as createSessionScheduler, ct as createFixedClock, d as HumanInteractionTransitionDenied, dn as createFeishuWebSocketDaemon, dr as openJsonlFeishuInboxRepository, dt as createFeishuPeriodicFlush, en as FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID, er as createAgentHarnessClient, et as createFeishuDeploymentEndpoint, f as transitionHumanInteraction, fn as createLazyFeishuWebSocketEventDispatcher, fr as createRecoveryControl, ft as FeishuCotProtocolError, g as loadNodeRivusPluginModule, gn as createFeishuCardActionErrorResponse, gr as createFeishuInboxRepository, gt as FeishuCardTargetNotFound, h as createRivusDeploymentDaemon, hn as createFeishuCardActionCallbackResponse, hr as createRecoveryAction, ht as createFeishuCardPresentationStore, i as createInMemoryHumanInteractionRepository, in as createFeishuOpenApiClient, ir as createAgentHarness, it as openJsonlRecoveryControl, j as openJsonlAgentMemoryService, jn as describeFeishuMessageIntake, jt as LangfuseTelemetryConfigError, k as createAutomationMandateStore, kn as createFeishuAgentDaemon, kt as createPiAgentLoop, l as createRoutedHumanInteractionToolApprovalService, ln as createFeishuCardRolloverSupervisor, lr as openJsonFeishuSessionStore, lt as createSequenceRunIds, m as loadRivusDeploymentManifest, mn as createFeishuEventHandlers, mr as InvalidRecoveryAction, mt as FeishuCardPresentationNotFound, n as createFeishuHumanInteractionPresenter, nn as FeishuOpenApiError, nr as createAgentDomainEventSinkFromCallback, nt as createAgentRuntimePool, o as createConfiguredFeishuAutomationCardSender, on as createFeishuTenantAccessTokenProvider, or as SessionSchedulerCapacityExceeded, ot as createToolBroker, p as createConfiguredRivusDeploymentDaemon, pn as createFeishuAgentRuntime, pr as createToolOperationLedger, pt as createFeishuCotPublisher, q as createBackgroundSessionRepository, qn as createDefaultAgentHarnessFromCallback, qt as createConfiguredFeishuCardKitTargetCreator, r as createJsonlHumanInteractionRepository, rn as createConfiguredFeishuOpenApiClient, rr as createAgentRunUpdateHandler, rt as createAgentInstanceRegistry, s as createHumanInteractionEndpointRegistry, sn as createRateLimitedFeishuPublisher, sr as SessionSchedulerDisposed, st as createAgentsMdInstructionsProvider, t as createConfiguredFeishuHumanInteractionPresenter, tn as createFeishuAgentRunCard, tr as createAgentDomainEventHandler, tt as createAgentHarnessPooledRuntime, u as createHumanInteractionService, un as createFeishuCardRollover, ur as createFeishuSessionStore, ut as createTestClock, v as createSubagentCoordinator, vn as InvalidProjectSkillCatalog, vr as createFeishuCardDeliveryLedger, vt as createInMemoryFeishuCardTargetRegistry, w as createDeliveryOutbox, wn as createRivusDaemonProcess, wt as readAutomationPresentation, x as DelegationDenied, xn as createRivusDaemonStatusHttpServer, xr as createPresentedValue, xt as AUTOMATION_PRESENTATION_SCHEMA_VERSION, y as createDelegationService, yn as validateProjectSkillCatalog, yr as createFeishuCardDeliveryReconciler, yt as createJsonFileFeishuCardTargetRegistry, z as BACKGROUND_SESSION_DELIVERY_JSONL_VERSION, zn as UnsupportedFeishuCardAction, zt as createConfiguredRivusDaemonBootstrap } from "./chunks/src.js";
2
+ import { $ as createFeishuPresentationPreparation, $n as createUuidRunIds, $t as FEISHU_AGENT_CARD_ELEMENT_ID, A as createCompactionService, An as createAgentCommandFromFeishuMessage, At as createPiSdkAgentLoop, B as BACKGROUND_SESSION_JSONL_VERSION, Bn as createAgentCommandFromFeishuCardAction, Bt as restoreConfiguredRivusDaemonBootstrap, C as DeliveryOutboxError, Cn as createCompositeRivusDaemonTransport, Cr as hasInspectableRunProgress, Ct as createAutomationPresentation, D as openJsonAutomationTickRepository, Dn as shouldAcceptFeishuEndpointMessage, Dt as AutomationMandateError, E as createPluginStateStore, En as createFeishuMessageWorker, Et as createDailyAutomationSchedule, F as createRivusMemoryToolDescriptor, Fn as InvalidFeishuSessionReference, Ft as createOpenTelemetryAgentTelemetry, G as openJsonlBackgroundSessionDeliveryStore, Gn as createDefaultAgentHarnessClientFromCallback, Gt as createConfiguredFeishuTextReplySender, H as openJsonlBackgroundSessionRepository, Hn as createAgentRuntime, Ht as createFeishuTopicContextResolver, I as createBackgroundSessionCard, In as createFeishuConversationId, It as createTelemetryContentRedactor, J as BackgroundSessionRepositoryCorrupted, Jn as createDefaultAgentHarnessFromTextCallback, Jt as createFeishuCardKitOpenApiTargetCreator, K as createBackgroundSessionDeliveryStore, Kn as createDefaultAgentHarnessClientFromTextCallback, Kt as createConfiguredFeishuCardRolloverRuntime, L as createConfiguredFeishuBackgroundSessionDelivery, Ln as createFeishuSessionKey, Lt as AgentEventLogStoreError, M as createAgentLoopPromptTransformer, Mn as InvalidFeishuMessageContent, Mt as createLangfuseAgentTelemetry, N as createProjectMemoryPromptPreparer, Nn as UnsupportedFeishuMessage, Nt as resolveLangfuseTelemetryConfig, O as createScheduledAutomation, On as createFeishuMessageQueue, Ot as createPiSessionRegistry, P as createRivusMemoryTool, Pn as readFeishuMessageContent, Pt as createOpenTelemetryAgentEventSink, Q as createRivusAgentHost, Qn as createSystemClock, Qt as createFeishuCardKitOpenApiClient, R as resolveFeishuDeliveryChatId, Rn as InvalidFeishuCardAction, Rt as createJsonlAgentEventLog, S as commitAutomationOutcome, Sn as createRivusDaemonStatusReporter, Sr as RUN_PRESENTATION_SCHEMA_VERSION, St as InvalidAutomationPresentation, T as PluginStateConflict, Tn as createFeishuWorkerLoop, Tt as AUTOMATION_SUPPRESSION_PREFIX, U as createBackgroundSessionRepository, Un as createDefaultAgentHarness, Ut as composeFeishuTopicPrompt, V as isBackgroundSessionState, Vn as mergePiProviderBaseUrlOverride, Vt as InvalidFeishuTopicContext, W as BACKGROUND_SESSION_DELIVERY_JSONL_VERSION, Wn as createDefaultAgentHarnessClient, Wt as createConfiguredFeishuMessageReactionSender, X as createAgentMemoryService, Xn as createDefaultAgentRuntimeFromCallback, Xt as createConfiguredFeishuCardKitPublisher, Y as BackgroundSessionDeliveryConflict, Yn as createDefaultAgentRuntime, Yt as createFeishuCardTargetPreparation, Z as InvalidRivusEndpointBinding, Zn as createDefaultAgentRuntimeFromTextCallback, Zt as createFeishuCardKitPublisher, _ as loadRivusDeployment, _n as createFeishuHumanInteractionCard, _r as openJsonlFeishuCardDeliveryLedger, _t as FeishuCardTargetRegistryStoreError, a as HumanInteractionRepositoryError, an as FeishuTenantAccessTokenError, ar as createJsonFetchRequest, at as openJsonlToolOperationLedger, b as intersectToolIds, bn as validateProjectSkillCommand, br as createFeishuStreamProjector, bt as createRunPresentationProjector, c as createHumanInteractionToolApprovalGateway, cn as createCoalescingFeishuPublisher, cr as createSessionScheduler, ct as createFixedClock, d as HumanInteractionTransitionDenied, dn as createFeishuWebSocketDaemon, dr as openJsonlFeishuInboxRepository, dt as createFeishuPeriodicFlush, en as FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID, er as createAgentHarnessClient, et as createFeishuDeploymentEndpoint, f as transitionHumanInteraction, fn as createLazyFeishuWebSocketEventDispatcher, fr as createRecoveryControl, ft as FeishuCotProtocolError, g as loadNodeRivusPluginModule, gn as createFeishuCardActionErrorResponse, gr as createFeishuInboxRepository, gt as FeishuCardTargetNotFound, h as createRivusDeploymentDaemon, hn as createFeishuCardActionCallbackResponse, hr as createRecoveryAction, ht as createFeishuCardPresentationStore, i as createInMemoryHumanInteractionRepository, in as createFeishuOpenApiClient, ir as createAgentHarness, it as openJsonlRecoveryControl, j as openJsonlAgentMemoryService, jn as describeFeishuMessageIntake, jt as LangfuseTelemetryConfigError, k as createAutomationMandateStore, kn as createFeishuAgentDaemon, kt as createPiAgentLoop, l as createRoutedHumanInteractionToolApprovalService, ln as createFeishuCardRolloverSupervisor, lr as openJsonFeishuSessionStore, lt as createSequenceRunIds, m as loadRivusDeploymentManifest, mn as createFeishuEventHandlers, mr as InvalidRecoveryAction, mt as FeishuCardPresentationNotFound, n as createFeishuHumanInteractionPresenter, nn as FeishuOpenApiError, nr as createAgentDomainEventSinkFromCallback, nt as createAgentRuntimePool, o as createConfiguredFeishuAutomationCardSender, on as createFeishuTenantAccessTokenProvider, or as SessionSchedulerCapacityExceeded, ot as createToolBroker, p as createConfiguredRivusDeploymentDaemon, pn as createFeishuAgentRuntime, pr as createToolOperationLedger, pt as createFeishuCotPublisher, q as BackgroundSessionRepositoryConflict, qn as createDefaultAgentHarnessFromCallback, qt as createConfiguredFeishuCardKitTargetCreator, r as createJsonlHumanInteractionRepository, rn as createConfiguredFeishuOpenApiClient, rr as createAgentRunUpdateHandler, rt as createAgentInstanceRegistry, s as createHumanInteractionEndpointRegistry, sn as createRateLimitedFeishuPublisher, sr as SessionSchedulerDisposed, st as createAgentsMdInstructionsProvider, t as createConfiguredFeishuHumanInteractionPresenter, tn as createFeishuAgentRunCard, tr as createAgentDomainEventHandler, tt as createAgentHarnessPooledRuntime, u as createHumanInteractionService, un as createFeishuCardRollover, ur as createFeishuSessionStore, ut as createTestClock, v as createSubagentCoordinator, vn as InvalidProjectSkillCatalog, vr as createFeishuCardDeliveryLedger, vt as createInMemoryFeishuCardTargetRegistry, w as createDeliveryOutbox, wn as createRivusDaemonProcess, wt as readAutomationPresentation, x as DelegationDenied, xn as createRivusDaemonStatusHttpServer, xr as createPresentedValue, xt as AUTOMATION_PRESENTATION_SCHEMA_VERSION, y as createDelegationService, yn as validateProjectSkillCatalog, yr as createFeishuCardDeliveryReconciler, yt as createJsonFileFeishuCardTargetRegistry, z as createBackgroundSessionHostTools, zn as UnsupportedFeishuCardAction, zt as createConfiguredRivusDaemonBootstrap } from "./chunks/src.js";
3
3
  import { A as RivusDeploymentReadinessError, B as FeishuEndpointCredentialError, C as AgentInstanceConflict, D as RivusDeploymentAutomationReadinessError, E as RivusPluginLoadError, F as WorkspaceInstructionsSourceError, H as RivusDaemonConfigError, I as createRivusDaemonShutdownController, L as OpenClawEnvImportError, M as InvalidRivusProjectSpace, O as RivusDeploymentBackgroundSessionReadinessError, P as InvalidWorkspaceRoot, R as createRivusEnvFromOpenClawConfig, U as loadRivusDaemonConfig, V as resolveFeishuEndpointCredentials, Z as DEFAULT_CARD_STREAM_LEASE_MS, a as createWorkspaceRootHandle, b as AgentInstanceBusy, ct as activeCardPresentation, ft as DEFAULT_CONVERSATION_PROGRESS_DISPLAY, i as resolveRivusProjectSpace, j as validateRivusDeploymentManifest, k as RivusDeploymentDaemonLifecycleError, n as createRivusDeploymentCliProcess, ot as CardPresentationTransitionDenied, st as acceptsCardPresentationProgress, t as runRivusDaemonCli, ut as isCardPresentationHandoffDue, w as RivusDeploymentManifestError, x as AgentRuntimeDisposed, z as formatRivusEnvFile } from "./chunks/rivus-daemon-cli.js";
4
4
  import { S as CompactionError, b as restrictMemoryScopesForAudience, d as RIVUS_RUNTIME_TOOL_IDS, f as isRivusRuntimeToolId, h as AgentMemoryError, i as createRivusPluginCatalog, m as RIVUS_PLUGIN_API_VERSION, p as InvalidRivusPlugin, u as RivusToolInputRejected, v as MEMORY_SCOPES, y as createMemoryNamespace } from "./chunks/api.js";
5
5
  import { d as InvalidToolInput, f as normalizeStableJson, g as InvalidInvocationAuthority, h as requiresToolApproval, o as createToolInputDigest, p as createInvocationAuthority, r as ToolInvocationDenied, u as InvalidStableJson } from "./chunks/pi-skill-tool.js";
package/dist/mcp.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { _ as BackgroundSessionControlContext, b as createBackgroundSessionControl, g as BackgroundSessionControlCommand, h as BackgroundSessionControl, v as BackgroundSessionControlError, x as toControlContext, y as BackgroundSessionControlOrigin } from "./chunks/api3.js";
2
2
  import { Readable, Writable } from "node:stream";
3
3
 
4
- //#region src/adapters/mcp/background-session-mcp-server.d.ts
4
+ //#region src/adapters/mcp/background-session/background-session-mcp-server.d.ts
5
5
  declare const BACKGROUND_SESSION_MCP_SERVER_NAME = "rivus-background-sessions";
6
6
  declare const BACKGROUND_SESSION_MCP_SERVER_VERSION = "1.0.0";
7
7
  interface BackgroundSessionMcpServerOptions {
@@ -29,7 +29,7 @@ interface RunBackgroundSessionMcpServerEnv {
29
29
  }
30
30
  declare function runBackgroundSessionMcpServer(options?: RunBackgroundSessionMcpServerEnv): Promise<void>;
31
31
  //#endregion
32
- //#region src/adapters/http/background-session-control-http-server.d.ts
32
+ //#region src/adapters/http/background-session/background-session-control-http-server.d.ts
33
33
  interface BackgroundSessionControlHttpServerOptions {
34
34
  readonly control: BackgroundSessionControl;
35
35
  readonly host?: string;
package/dist/mcp.js CHANGED
@@ -2,7 +2,7 @@ import { F as createBackgroundSessionControl, I as toControlContext, P as Backgr
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { createServer } from "node:http";
4
4
  import { pathToFileURL } from "node:url";
5
- //#region src/adapters/mcp/background-session-mcp-server.ts
5
+ //#region src/adapters/mcp/background-session/background-session-mcp-server.ts
6
6
  const BACKGROUND_SESSION_MCP_SERVER_NAME = "rivus-background-sessions";
7
7
  const BACKGROUND_SESSION_MCP_SERVER_VERSION = "1.0.0";
8
8
  var BackgroundSessionMcpError = class extends Error {
@@ -201,7 +201,7 @@ function isRecord(value) {
201
201
  return value !== null && typeof value === "object" && !Array.isArray(value);
202
202
  }
203
203
  //#endregion
204
- //#region src/adapters/http/background-session-control-http-server.ts
204
+ //#region src/adapters/http/background-session/background-session-control-http-server.ts
205
205
  var BackgroundSessionControlHttpError = class extends Error {
206
206
  statusCode;
207
207
  name = "BackgroundSessionControlHttpError";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivus/agent",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "description": "A local agent daemon core built around a usable agent harness and domain events.",
5
5
  "type": "module",
6
6
  "license": "MIT",