@rivus/agent 0.14.2 → 0.14.4

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.
Files changed (37) hide show
  1. package/README.md +1 -1
  2. package/dist/acp.js +1 -2
  3. package/dist/bootstrap/pi-feishu.d.ts +1 -1
  4. package/dist/bootstrap/pi-feishu.js +4 -4
  5. package/dist/chunks/agent-loop.d.ts +55 -300
  6. package/dist/chunks/agent-loop.js +3 -1123
  7. package/dist/chunks/background-session-authority.js +230 -0
  8. package/dist/chunks/background-session-control-input.js +51 -0
  9. package/dist/chunks/background-session-service.d.ts +382 -0
  10. package/dist/chunks/index.d.ts +1201 -538
  11. package/dist/chunks/pi-tool-proxy.d.ts +22 -90
  12. package/dist/chunks/pi.js +5 -2
  13. package/dist/chunks/rivus-agent-definition-resolver.js +508 -0
  14. package/dist/chunks/rivus-daemon-cli.js +2776 -3244
  15. package/dist/chunks/rivus-plugin-testkit.d.ts +175 -2
  16. package/dist/chunks/rivus-plugin-testkit.js +11 -4
  17. package/dist/chunks/rivus-skill.d.ts +95 -0
  18. package/dist/chunks/sha256-digest.js +2 -7
  19. package/dist/chunks/src.js +11941 -7001
  20. package/dist/chunks/tool-input-digest.js +158 -0
  21. package/dist/cli.js +764 -712
  22. package/dist/index.d.ts +6 -7
  23. package/dist/index.js +7 -8
  24. package/dist/mcp.d.ts +48 -9
  25. package/dist/mcp.js +146 -20
  26. package/dist/pi.d.ts +3 -4
  27. package/dist/pi.js +1 -1
  28. package/package.json +5 -5
  29. package/dist/chunks/api.d.ts +0 -70
  30. package/dist/chunks/api.js +0 -471
  31. package/dist/chunks/api2.d.ts +0 -387
  32. package/dist/chunks/api2.js +0 -1331
  33. package/dist/chunks/api3.d.ts +0 -402
  34. package/dist/chunks/module.js +0 -267
  35. package/dist/chunks/pi-skill-tool.js +0 -460
  36. package/dist/chunks/spi.d.ts +0 -1
  37. package/dist/chunks/spi.js +0 -2
package/dist/index.d.ts CHANGED
@@ -1,8 +1,7 @@
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";
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
- 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
- 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";
5
- import { C as InvalidInvocationAuthority, S as requiresToolApproval, T as InvocationAuthorityRef, _ as ToolOperationInspectResult, b as ToolOperationRecord, c as InvalidToolInput, d as ToolInvocationDenied, f as AuthorizationPolicyState, g as ToolOperationBinding, h as ToolOperationBeginResult, l as normalizeStableJson, m as createInvocationAuthority, o as createToolInputDigest, p as ToolApprovalRequest, s as InvalidStableJson, v as ToolOperationReconciliation, w as InvocationAuthority, x as ToolOperationState, y as ToolOperationReconciliationOutcome } from "./chunks/pi-tool-proxy.js";
6
- import { $ as BackgroundSessionPhase, A as BackgroundSessionRepository, B as backgroundSessionToolIds, C as BackgroundSessionDetail, D as progressDeliveryId, E as createBackgroundSessionService, F as BackgroundSessionDeliveryStore, G as BACKGROUND_SESSION_SESSION_KEY_PREFIX, H as extendBackgroundSessionDefinition, I as BACKGROUND_SESSION_START_TOOL_ID, J as BackgroundSessionAuthority, K as createBackgroundSessionKey, L as BACKGROUND_SESSION_TOOL_IDS, M as BackgroundSessionRepositoryCorrupted, N as BackgroundSessionDeliveryConflict, O as sessionIdFromSessionKey, P as BackgroundSessionDeliveryRecord, Q as BackgroundSessionOrigin, R as BACKGROUND_SESSION_TOOL_PLUGIN_ID, S as BackgroundSessionCallerDenied, T as BackgroundSessionSummary, U as isBackgroundSessionToolId, V as createBackgroundSessionToolContracts, W as narrowBackgroundSessionDefinition, X as BackgroundSessionId, Y as BackgroundSessionCancellation, Z as BackgroundSessionLease, a as createBackgroundSessionSupervisor, c as DEFAULT_BACKGROUND_SESSION_LIFETIME_MS, d as DEFAULT_BACKGROUND_SESSION_RETRY_BACKOFF_MS, et as BackgroundSessionState, f as DEFAULT_BACKGROUND_SESSION_STEP_TIMEOUT_MS, i as BackgroundSessionSupervisorStatus, j as BackgroundSessionRepositoryConflict, k as terminalDeliveryId, l as DEFAULT_BACKGROUND_SESSION_MAX_CONCURRENT_SESSIONS, m as resolveBackgroundSessionSupervisorIntervalMs, n as BackgroundSessionSupervisor, nt as BackgroundSessionTransitionDenied, o as DEFAULT_BACKGROUND_SESSION_LEASE_MS, p as DEFAULT_BACKGROUND_SESSION_SUPERVISOR_INTERVAL_MS, q as createBackgroundSessionStepSourceMessageId, r as BackgroundSessionSupervisorOptions, rt as isBackgroundSessionTerminalPhase, s as DEFAULT_BACKGROUND_SESSION_LEASE_RENEWAL_INTERVAL_MS, t as BackgroundSessionLimits, tt as BackgroundSessionTerminalResult, u as DEFAULT_BACKGROUND_SESSION_MAX_CONSECUTIVE_FAILURES, w as BackgroundSessionService, z as BACKGROUND_SESSION_TOOL_VERSION } from "./chunks/api3.js";
7
- import { a as assertRivusPluginConforms, i as RivusPluginLifecycleProbe, n as RivusPluginConformanceInput, o as createFakeRivusPlugin, r as RivusPluginConformanceReport, t as RivusPluginConformanceError } from "./chunks/rivus-plugin-testkit.js";
1
+ import { $ as UserDecisionInteractionState, $a as ConfiguredRivusDaemonBootstrap, $c as CardPresentationChain, $d as FeishuAgentMessageSideEffects, $f as FeishuStreamProjector, $i as FeishuCardKitOpenApiTargetCreatorOptions, $l as DefaultAgentHarnessClientFromCallbackOptions, $n as DEFAULT_BACKGROUND_SESSION_SUPERVISOR_INTERVAL_MS, $o as JsonlAgentEventLogOptions, $r as RivusEndpointInput, $s as isBackgroundSessionToolId, $t as ScheduledAutomationOptions, $u as PooledAgentRuntime, A as HumanInteractionRepository, Aa as PiAgentSessionEvent, Ac as RivusDaemonShutdownControllerOptions, Ad as FeishuInboxPendingState, Af as readFeishuMessageContent, Ai as WorkspaceInstructionsSourceError, Al as FeishuMessageQueue, An as RIVUS_MEMORY_TOOL_ID, Ao as createInMemoryFeishuCardTargetRegistry, Ap as AgentSessionAvailability, Ar as requestBackgroundSessionStop, As as RivusDeploymentBootstrapContext, At as DelegationGrant, Au as AgentRunUpdateCallback, B as HumanInteractionFact, Ba as TelemetryContentRedactor, Bc as createRivusDaemonStatusReporter, Bd as ToolOperationResolutionResult, Bf as createFeishuSessionKey, Bi as createSequenceRunIds, Bl as createRivusEnvFromOpenClawConfig, Bn as FeishuBackgroundSessionDelivery, Bo as FeishuCardTarget, Bp as AgentHarnessBusy, Br as AgentMemorySnapshot, Bs as RivusDeploymentDaemonLifecycle, Bt as AutomationOutcome, Bu as JsonHttpResponse, C as createHumanInteractionEndpointRegistry, Ca as PiSessionRegistryOptions, Cc as AutomationBinding, Cd as ToolOperationState, Cf as FeishuPromptAgentCommand, Ci as InvalidStableJson, Cl as FeishuReceiveMessageReplayResult, Cn as InvalidRivusProjectSpace, Co as FeishuCardRolloverSupervisorOptions, Cp as AgentHarnessError, Cr as failBackgroundSessionStep, Cs as RivusDaemonCliOptions, Ct as SpawnSubagentRequest, Cu as AgentClientSuccess, D as HumanInteractionServiceOptions, Da as createPiAgentLoop, Dc as AutomationMandateStore, Dd as FeishuInboxDelivery, Df as FeishuMessageContentInput, Di as createAgentsMdInstructionsProvider, Dl as shouldAcceptFeishuEndpointMessage, Dn as ProjectMemoryRecallIdentity, Do as FeishuCardTargetRegistryOperation, Dp as AgentRunUpdate, Dr as parkBackgroundSessionForReconciliation, Ds as RivusDaemonRecoveryRunner, Dt as intersectToolIds, Du as createAgentHarnessClient, E as HumanInteractionService, Ea as PiAgentSessionHandle, Ec as AutomationMandateError, Ed as FeishuInboxDeadState, Ef as describeFeishuMessageIntake, Ei as WorkspaceInstructionsProvider, El as FeishuEndpointGroupPolicy, En as ProjectMemoryPromptInput, Eo as FeishuCardTargetRegistry, Ep as AgentRunSnapshot, Er as isBackgroundSessionTerminalPhase, Es as RivusDaemonPromptRunner, Et as createDelegationService, Eu as AgentTextDeltaCallback, F as CancelledHumanInteractionState, Fa as isTerminalAgentRunPhase, Fc as RivusDaemonStatusHttpServerOptions, Fd as DeadLetterRequeueResult, Ff as createFeishuSessionStore, Fi as WorkspaceInstructionsView, Fl as mergePiProviderBaseUrlOverride, Fn as RivusMemoryTool, Fo as FeishuCardKitFinish, Fp as AgentSessionSnapshot, Fr as createAgentMemoryService, Fs as RivusDeploymentAutomationReadinessError, Ft as DeliveryOutboxError, Fu as createAgentHarness, G as RejectedHumanInteractionState, Ga as LangfuseTelemetryConfigError, Gc as FeishuCardRolloverHandoffResult, Gd as FeishuAgentDaemonInteractionResult, Gf as FeishuCardDeliveryLedger, Gi as ConfiguredFeishuCardKitPublisherOptions, Gl as RivusDaemonConfig, Gn as resolveFeishuDeliveryChatId, Go as FeishuWebSocketDaemonOptions, Gr as MemoryScope, Gs as RivusDeploymentComponentLifecycle, Gt as PutPluginState, Gu as SessionSchedulerOptions, H as HumanInteractionResolutionAction, Ha as createTelemetryContentRedactor, Hc as FeishuCardRolloverCounters, Hd as FeishuAgentDaemonCancelResult, Hf as HumanInteractionRepositoryError, Hi as FeishuPeriodicFlush, Hl as FeishuEndpointCredentialError, Hn as FeishuBackgroundSessionDeliveryKind, Ho as FeishuWebSocketClient, Hp as AgentRunCancelled, Hr as MemoryBinding, Hs as RivusDeploymentEndpointLifecycle, Ht as DeliveryJob, Hu as SessionScheduler, I as ExpiredHumanInteractionState, Ia as OpenTelemetryAgentEventSinkOptions, Ic as createRivusDaemonStatusHttpServer, Id as RecoveryAction, If as FeishuConversationReference, Ii as WorkspaceRootHandle, Il as OpenClawEnvImportError, In as createRivusMemoryTool, Io as FeishuCardKitPresentationUpdate, Ip as PromptCommand, Ir as AgentMemoryAuthority, Is as RivusDeploymentAutomationStatus, It as createDeliveryOutbox, Iu as FetchLike, J as SelectedHumanInteractionState, Ja as createLangfuseAgentTelemetry, Jc as createFeishuCardRollover, Jd as FeishuAgentDaemonSessionResetResult, Jf as FeishuCardDeliveryReconcilerOptions, Ji as FeishuCoalescingPublisherOptions, Jl as RivusDaemonEnv, Jn as DEFAULT_BACKGROUND_SESSION_LIFETIME_MS, Jo as createFeishuWebSocketDaemon, Jr as AgentMemoryError, Js as BACKGROUND_SESSION_TOOL_IDS, Jt as DailyAutomationSchedule, Ju as AgentRuntimeCancellation, K as RequestToolApprovalInput, Ka as LangfuseTelemetryContentMode, Kc as FeishuCardRolloverOptions, Kd as FeishuAgentDaemonOptions, Kf as FeishuCardDeliveryLedgerStateOptions, Ki as createConfiguredFeishuCardKitPublisher, Kl as RivusDaemonConfigError, Kn as DEFAULT_BACKGROUND_SESSION_LEASE_MS, Ko as FeishuWebSocketEventDispatcher, Kr as MemorySearchQuery, Ks as RivusDeploymentDaemonLifecycleError, Kt as OpenJsonAutomationTickRepositoryOptions, Ku as SessionSchedulerStatus, L as HumanInteraction, La as OpenTelemetryAgentTelemetry, Lc as RivusDaemonStatus, Ld as RecoveryControl, Lf as FeishuSessionReference, Li as createRivusPluginCatalog, Ll as OpenClawEnvImportOptions, Ln as createRivusMemoryToolDescriptor, Lo as FeishuCardKitPublisher, Lp as RunIdGenerator, Lr as AgentMemoryHandle, Ls as RivusDeploymentBackgroundSessionLifecycle, Lt as PluginStateConflict, Lu as FetchLikeResponse, M as HumanInteractionTransitionDenied, Ma as PiSdkAgentLoopOptions, Mc as RivusDaemonSignalSource, Md as FeishuInboxRepositoryStateOptions, Mf as FeishuSessionResetResult, Mi as WorkspaceInstructionsDiagnostic, Ml as createFeishuMessageQueue, Mn as RIVUS_MEMORY_TOOL_VERSION, Mo as FeishuCardKitCancel, Mp as AgentSessionHandle, Mr as resolveBackgroundSessionReconciliation, Ms as RivusDeploymentCliProcess, Mt as CommitAutomationOutcomeInput, Mu as createAgentDomainEventSinkFromCallback, N as transitionHumanInteraction, Na as evolveAgentRun, Nc as createRivusDaemonShutdownController, Nd as createFeishuInboxRepository, Nf as FeishuSessionStore, Ni as WorkspaceInstructionsDiagnosticCode, Nl as FeishuMessageAcceptResult, Nn as createRivusMemoryToolContract, No as FeishuCardKitClient, Np as AgentSessionOtherBusyAvailability, Nr as suspendBackgroundSession, Ns as createRivusDeploymentCliProcess, Nt as commitAutomationOutcome, Nu as createAgentRunUpdateHandler, O as ResolveHumanInteractionInput, Oa as createPiSdkAgentLoop, Oc as AutomationTick, Od as FeishuInboxDeliveryState, Of as InvalidFeishuMessageContent, Oi as createWorkspaceRootHandle, Ol as FeishuMessageDrainResult, On as ProjectMemoryRecallOptions, Oo as FeishuCardTargetRegistryStoreError, Op as AgentRunUpdateHandler, Or as releaseBackgroundSessionLease, Os as runRivusDaemonCli, Ot as DelegationDenied, Ou as AgentDomainEventCallback, P as ApprovedHumanInteractionState, Pa as initialAgentRunState, Pc as RivusDaemonStatusHttpServer, Pd as DeadLetterRecoveryItem, Pf as FeishuSessionStoreOptions, Pi as WorkspaceInstructionsRequest, Pl as MergePiProviderBaseUrlOverrideOptions, Pn as MemoryTombstoneReceipt, Po as FeishuCardKitFail, Pp as AgentSessionOwnedBusyAvailability, Pr as AgentMemoryServiceOptions, Ps as RivusDeploymentAutomationLifecycle, Pt as DeliveryOutbox, Pu as AgentHarnessOptions, Q as UserDecisionInteraction, Qa as AgentModelOutputObservation, Qc as CardPresentation, Qd as FeishuAgentExecutionResult, Qf as FeishuStreamAction, Qi as createRateLimitedFeishuPublisher, Ql as AgentRuntime, Qn as DEFAULT_BACKGROUND_SESSION_STEP_TIMEOUT_MS, Qo as AgentEventLogStoreError, Qr as RivusEndpointDefinition, Qs as createBackgroundSessionToolContracts, Qt as ScheduledAutomationClock, Qu as AgentRuntimeSteering, R as HumanInteractionActor, Ra as createOpenTelemetryAgentEventSink, Rc as RivusDaemonStatusReporter, Rd as RecoverySnapshot, Rf as InvalidFeishuSessionReference, Ri as resolveRivusAgentDefinition, Rl as OpenClawEnvImportResult, Rn as createMemoryNamespace, Ro as FeishuCardKitPublisherOptions, Rp as AgentEventHandlerFailed, Rr as AgentMemoryIdentity, Rs as RivusDeploymentBackgroundSessionReadinessError, Rt as PluginStateStore, Ru as JsonFetchRequestOptions, S as HumanInteractionEndpointRegistry, Sa as PiSessionRegistry, Sc as ScheduledAutomationRunResult, Sd as ToolOperationRecord, Sf as FeishuNewSessionMessageIntakeSummary, Si as requiresToolApproval, Sl as FeishuReceiveMessageReplayOptions, Sn as resolveRivusProjectSpace, So as FeishuCardRolloverSupervisor, Sp as AgentHarnessBusyAvailability, Sr as createBackgroundSession, Ss as RivusDaemonBootstrapModule, St as createSubagentCoordinator, Su as AgentClientFailure, T as HumanInteractionClock, Ta as PiAgentLoopOptions, Tc as AutomationMandate, Td as FeishuInboxCompletedState, Tf as createAgentCommandFromFeishuMessage, Ti as normalizeStableJson, Tl as FeishuReceiveRuntimeStatus, Tn as createAgentLoopPromptTransformer, To as FeishuCardTargetNotFound, Tp as AgentPromptResult, Tr as isBackgroundSessionLeaseExpired, Ts as RivusDaemonFeishuReplayRunner, Tt as DelegationService, Tu as AgentSessionClient, U as HumanInteractionTransition, Ua as LangfuseAgentTelemetry, Uc as FeishuCardRolloverEvent, Ud as FeishuAgentDaemonHandleMessageOptions, Uf as JsonlFeishuCardDeliveryLedgerOptions, Ui as FeishuPeriodicFlushOptions, Ul as FeishuEndpointCredentials, Un as createBackgroundSessionCard, Uo as FeishuWebSocketClientStartOptions, Up as ConversationProgressDisplay, Ur as MemoryInvocationAudience, Us as RivusDeploymentEndpointStatus, Ut as DeliveryJobStatus, Uu as SessionSchedulerCapacityExceeded, V as HumanInteractionId, Va as TelemetryContentRedactorOptions, Vc as FeishuCardRollover, Vd as FeishuAgentDaemon, Vf as FeishuReceiveMessagePayload, Vi as createTestClock, Vl as formatRivusEnvFile, Vn as FeishuBackgroundSessionDeliveryInput, Vo as createFeishuCardKitPublisher, Vp as AgentLoopFailed, Vr as MEMORY_SCOPES, Vs as RivusDeploymentDaemonStatus, Vt as CommittedAutomationOutcome, Vu as createJsonFetchRequest, W as PendingHumanInteractionState, Wa as LangfuseTelemetryConfig, Wc as FeishuCardRolloverEventType, Wd as FeishuAgentDaemonHandleResult, Wf as openJsonlFeishuCardDeliveryLedger, Wi as createFeishuPeriodicFlush, Wl as resolveFeishuEndpointCredentials, Wn as createConfiguredFeishuBackgroundSessionDelivery, Wo as FeishuWebSocketDaemon, Wp as DEFAULT_CONVERSATION_PROGRESS_DISPLAY, Wr as MemoryRecord, Ws as RivusDeploymentReadinessError, Wt as PluginStateRecord, Wu as SessionSchedulerDisposed, X as ToolApprovalInteraction, Xa as AgentModelContentObserver, Xc as FeishuCardPresentationHandoffStart, Xd as FeishuAgentDaemonSteeredResult, Xf as createFeishuCardDeliveryLedger, Xi as FeishuStreamActionPublisher, Xl as RivusThinkingLevel, Xn as DEFAULT_BACKGROUND_SESSION_MAX_CONSECUTIVE_FAILURES, Xo as AgentEventLog, Xr as RivusAgentHost, Xs as BACKGROUND_SESSION_TOOL_VERSION, Xt as AutomationTickRepositoryCompatibility, Xu as AgentRuntimePool, Y as ToolApprovalBinding, Ya as resolveLangfuseTelemetryConfig, Yc as DEFAULT_CARD_STREAM_LEASE_MS, Yd as FeishuAgentDaemonSkippedResult, Yf as FeishuCardDeliveryRecord, Yi as createCoalescingFeishuPublisher, Yl as RivusTextFileReader, Yn as DEFAULT_BACKGROUND_SESSION_MAX_CONCURRENT_SESSIONS, Yo as createLazyFeishuWebSocketEventDispatcher, Yr as InvalidRivusEndpointBinding, Ys as BACKGROUND_SESSION_TOOL_PLUGIN_ID, Yt as createDailyAutomationSchedule, Yu as AgentRuntimeInput, Z as ToolApprovalInteractionState, Za as AgentModelInputObservation, Zc as FeishuCardPresentationStore, Zd as FeishuAgentExecution, Zf as createFeishuCardDeliveryReconciler, Zi as RateLimitedFeishuPublisherOptions, Zl as loadRivusDaemonConfig, Zn as DEFAULT_BACKGROUND_SESSION_RETRY_BACKOFF_MS, Zo as AgentEventLogOperation, Zr as RivusAgentHostOptions, Zs as backgroundSessionToolIds, Zt as ScheduledAutomation, Zu as AgentRuntimePoolOptions, _ as createConfiguredFeishuMessageReactionSender, _a as FeishuCardPresentationNotFound, _c as BackgroundSessionSupervisor, _d as ToolOperationBinding, _f as FeishuMessageIntakeBaseSummary, _i as ToolInvocationDenied, _l as FeishuMessageWorkerQueue, _n as InvalidProjectSkillCatalog, _o as FeishuTenantAccessTokenProvider, _p as AgentDomainEventHandler, _r as BackgroundSessionTransitionDenied, _s as createFeishuCardActionCallbackResponse, _t as LoadRivusDeploymentOptions, _u as createDefaultAgentRuntimeFromCallback, a as ConfiguredFeishuHumanInteractionPresenterOptions, aa as createFeishuCardKitOpenApiTargetCreator, ac as RivusPluginLoadStatus, ad as AgentInstanceBusy, af as composeFeishuTopicPrompt, ai as createAgentHarnessPooledRuntime, al as CompositeRivusDaemonTransportOptions, an as CompactorPort, ao as ConfiguredFeishuCardRolloverRuntime, ap as RUN_PRESENTATION_SCHEMA_VERSION, ar as BackgroundSessionSupervisorOptions, as as FeishuAgentRuntimeOptions, at as RivusDeploymentManifestError, au as DefaultAgentRuntimeFromCallbackOptions, b as createRoutedHumanInteractionToolApprovalService, ba as RunPresentationProjector, bc as ScheduledAutomationDeliveryInput, bd as ToolOperationReconciliation, bf as FeishuMessageIntakeSummary, bi as createInvocationAuthority, bl as FeishuReceiveAcceptedObservation, bn as validateProjectSkillCatalog, bo as FeishuTenantAccessTokenResponse, bp as AgentHarness, br as completeBackgroundSessionStep, bs as RivusDaemonBootstrapContext, bt as RivusPluginLoadError, bu as createUuidRunIds, c as createFeishuHumanInteractionCard, ca as FeishuCotPublisher, cc as RivusAutomationDeliveryTargetType, cd as OpenJsonFeishuSessionStoreOptions, cf as FeishuCardActionIntakeError, ci as openJsonlToolOperationLedger, cl as RivusDaemonProcessOptions, cn as CompactionSnapshot, co as ConfiguredFeishuOpenApiRequest, cp as RunPresentationPhase, cr as openJsonlBackgroundSessionRepository, cs as FeishuEventHandlerCardActions, ct as CreateRivusDeploymentBackgroundSessionInput, cu as DefaultAgentRuntimeSessionOptions, d as createJsonlHumanInteractionRepository, da as createFeishuCotPublisher, dc as RivusDeploymentManifest, dd as openJsonlFeishuInboxRepository, df as InvalidFeishuCardAction, di as ToolApprovalRequest, dl as createRivusDaemonProcess, dn as AgentContextInput, do as FeishuOpenApiError, dp as hasInspectableRunProgress, dr as createBackgroundSessionDeliveryStore, ds as FeishuEventHandlersOptions, dt as CreateRivusDeploymentRuntimeInput, du as createDefaultAgentHarnessClient, ea as FeishuCardPresentationBinder, ed as createAgentRuntimePool, ef as FeishuAgentPreparedControl, ei as createRivusAgentHost, el as CardPresentationStatus, en as createScheduledAutomation, eo as ConfiguredRivusDaemonBootstrapOptions, ep as createFeishuStreamProjector, er as resolveBackgroundSessionSupervisorIntervalMs, es as createJsonlAgentEventLog, et as UserDecisionOption, eu as DefaultAgentHarnessClientFromTextCallbackOptions, f as JsonlHumanInteractionRepositoryOptions, fa as FeishuTopicContextResolverOptions, fc as RivusEndpointDeployment, fd as InvalidRecoveryAction, ff as UnsupportedFeishuCardAction, fi as ToolApprovalService, fl as FeishuWorkerLoop, fn as AgentContextLayer, fo as FeishuOpenApiRequest, fp as PresentedValue, fr as BACKGROUND_SESSION_JSONL_VERSION, fs as FeishuReceiveMessageHandlerPayload, ft as RivusDeploymentAutomation, fu as createDefaultAgentHarnessClientFromCallback, g as FeishuMessageReactionSender, ga as createFeishuCardKitOpenApiClient, gc as BackgroundSessionLimits, gd as ToolOperationBeginResult, gf as FeishuCancelRunCommand, gi as createToolBroker, gl as FeishuMessageWorkerOptions, gn as openJsonlAgentMemoryService, go as FeishuTenantAccessTokenError, gp as AgentClock, gr as BackgroundSessionState, gs as FeishuCardActionToast, gt as loadNodeRivusPluginModule, gu as createDefaultAgentRuntime, h as createConfiguredFeishuAutomationCardSender, ha as FeishuCardKitOpenApiClientOptions, hc as RivusProjectSpaceDeployment, hd as createRecoveryControl, hf as FeishuCancelMessageIntakeSummary, hi as ToolExecutionRequest, hl as FeishuMessageWorker, hn as assembleAgentContext, ho as createFeishuOpenApiClient, hp as ActiveAgentRun, hr as BackgroundSessionRepository, hs as FeishuCardActionCallbackResponse, ht as RivusDeploymentEndpoint, hu as createDefaultAgentHarnessFromTextCallback, i as createFeishuAgentRunCard, ia as createConfiguredFeishuCardKitTargetCreator, ic as RivusAgentDeploymentStatus, id as AgentInstanceRegistryOptions, if as FeishuPromptContextResolver, ii as createFeishuDeploymentEndpoint, il as isCardPresentationHandoffDue, in as CompactionService, io as restoreConfiguredRivusDaemonBootstrap, ip as PresentationStepStatus, ir as createBackgroundSessionHostTools, is as FeishuAgentRuntime, it as LoadRivusDeploymentManifestOptions, iu as DefaultAgentHarnessOptions, j as HumanInteractionPresenter, ja as PiCreateAgentSessionResult, jc as RivusDaemonShutdownSignal, jd as FeishuInboxRepository, jf as FeishuSessionEpochRecord, ji as WorkspaceInstructionSource, jl as FeishuMessageQueueOptions, jn as RIVUS_MEMORY_TOOL_PLUGIN_ID, jo as createJsonFileFeishuCardTargetRegistry, jp as AgentSessionBusyAvailability, jr as requeueInterruptedBackgroundSessionStep, js as RivusDeploymentBootstrapFactory, jt as DelegationRequest, ju as createAgentDomainEventHandler, k as createHumanInteractionService, ka as PiAgentSession, kc as RivusDaemonShutdownController, kd as FeishuInboxLeasedState, kf as UnsupportedFeishuMessage, ki as InvalidWorkspaceRoot, kl as FeishuMessagePreparedControl, kn as createProjectMemoryPromptPreparer, ko as JsonFileFeishuCardTargetRegistryOptions, kp as AgentRunUpdateListener, kr as renewBackgroundSessionLease, ks as RivusDeploymentBootstrapAdapters, kt as DelegationEdge, ku as AgentDomainEventSinkCallback, l as createFeishuHumanInteractionPresenter, la as FeishuCotPublisherOptions, lc as RivusAutomationDeployment, ld as openJsonFeishuSessionStore, lf as FeishuCardActionTriggerPayload, li as AuthorizationPolicyProvider, ll as RivusDaemonTransport, ln as CompactionInput, lo as ConfiguredFeishuOpenApiResponse, lp as SkillPresentationStep, lr as BACKGROUND_SESSION_DELIVERY_JSONL_VERSION, ls as FeishuEventHandlerQueue, lt as CreateRivusDeploymentDaemonOptions, lu as createAgentRuntime, m as FeishuAutomationCardSender, ma as createFeishuTopicContextResolver, mc as RivusPluginDeclaration, md as RecoveryControlOptions, mf as FeishuAgentCommand, mi as ToolBrokerOptions, ml as createFeishuWorkerLoop, mn as AssembledAgentContext, mo as createConfiguredFeishuOpenApiClient, mp as createPresentedValue, mr as createBackgroundSessionService, ms as createFeishuEventHandlers, mt as RivusDeploymentDaemon, mu as createDefaultAgentHarnessFromCallback, n as FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID, na as FeishuCardTargetCreator, nc as ResolvedRivusAutomationDefinition, nd as createAgentInstanceRegistry, nf as createFeishuAgentDaemon, ni as createFeishuPresentationPreparation, nl as acceptsCardPresentationProgress, nn as AutomationTickStatus, no as ConfiguredRivusDaemonBootstrapResponse, np as ModelPresentationStep, nr as narrowBackgroundSessionDefinition, ns as restoreAgentHistory, nt as createConfiguredRivusDeploymentDaemon, nu as DefaultAgentHarnessFromCallbackOptions, o as FeishuHumanInteractionPresenterOptions, oa as createFeishuCardTargetPreparation, oc as RivusPluginModuleLoadRequest, od as AgentRuntimeDisposed, of as FeishuAgentRunPreparation, oi as JsonlRecoveryControlOptions, ol as createCompositeRivusDaemonTransport, on as createCompactionService, oo as ConfiguredFeishuCardRolloverRuntimeOptions, op as ResponsePresentationStep, or as createBackgroundSessionSupervisor, os as createFeishuAgentRuntime, ot as createRivusDeploymentDaemon, ou as DefaultAgentRuntimeFromTextCallbackOptions, p as FeishuAutomationCardInput, pa as InvalidFeishuTopicContext, pc as RivusEndpointExperimentalFeatures, pd as createRecoveryAction, pf as createAgentCommandFromFeishuCardAction, pi as ToolBroker, pl as FeishuWorkerLoopOptions, pn as AgentContextLayerKind, po as FeishuOpenApiResponse, pp as PresentedValueOptions, pr as isBackgroundSessionState, ps as FeishuSdkReceiveMessagePayload, pt as RivusDeploymentBackgroundSession, pu as createDefaultAgentHarnessClientFromTextCallback, q as RequestUserDecisionInput, qa as LangfuseTelemetryEnv, qc as FeishuCardRolloverStatus, qd as FeishuAgentDaemonRunResult, qf as FeishuCardDeliveryReconciler, qi as FeishuCoalescingPublisher, ql as RivusDaemonConfigLoaderOptions, qn as DEFAULT_BACKGROUND_SESSION_LEASE_RENEWAL_INTERVAL_MS, qo as FeishuWebSocketRuntime, qr as MemoryState, qs as BACKGROUND_SESSION_START_TOOL_ID, qt as openJsonAutomationTickRepository, qu as createSessionScheduler, r as FeishuAgentRunCardInput, ra as FeishuCardTargetPreparationOptions, rc as ResolvedRivusProjectSpace, rd as AgentInstanceConflict, rf as FeishuPromptContextInput, ri as FeishuDeploymentEndpointOptions, rl as activeCardPresentation, rn as createAutomationMandateStore, ro as createConfiguredRivusDaemonBootstrap, rp as PresentationStep, rr as CreateBackgroundSessionHostToolsOptions, rs as createAgentDomainEventSink, rt as loadRivusDeploymentManifest, ru as DefaultAgentHarnessFromTextCallbackOptions, s as createConfiguredFeishuHumanInteractionPresenter, sa as FeishuCotProtocolError, sc as RivusAutomationDelivery, sd as AgentInstanceRecord, sf as FeishuCardActionCommand, si as openJsonlRecoveryControl, sl as RivusDaemonProcess, sn as CompactionError, so as createConfiguredFeishuCardRolloverRuntime, sp as RunPresentation, sr as createBackgroundSessionRepository, ss as FeishuPeriodicFlushSupervisor, st as CreateRivusDeploymentAutomationInput, su as DefaultAgentRuntimeOptions, t as FEISHU_AGENT_CARD_ELEMENT_ID, ta as FeishuCardTargetCreateOptions, tc as LoadedRivusDeployment, td as AgentInstanceRegistry, tf as FeishuHumanInteractionActions, ti as FeishuPresentationPreparationOptions, tl as CardPresentationTransitionDenied, tn as AutomationTickRecord, to as ConfiguredRivusDaemonBootstrapRequest, tp as AssistantPresentationStep, tr as extendBackgroundSessionDefinition, ts as AgentHistoryEventLog, tt as CreateConfiguredRivusDeploymentDaemonOptions, tu as DefaultAgentHarnessClientOptions, u as createInMemoryHumanInteractionRepository, ua as FeishuCotRunPreparation, uc as RivusBackgroundSessionsDeployment, ud as JsonlFeishuInboxRepositoryOptions, uf as FeishuResolveInteractionCommand, ui as AuthorizationPolicyState, ul as RivusDaemonWorkerLoop, un as AgentContextBudgetExceeded, uo as FeishuOpenApiClient, up as ToolPresentationStep, ur as openJsonlBackgroundSessionDeliveryStore, us as FeishuEventHandlers, ut as CreateRivusDeploymentEndpointInput, uu as createDefaultAgentHarness, v as FeishuTextReplySender, va as FeishuCardPresentationStoreOptions, vc as BackgroundSessionSupervisorStatus, vd as ToolOperationInspectResult, vf as FeishuMessageIntakeError, vi as InvocationAuthority, vl as createFeishuMessageWorker, vn as ProjectSkillCatalogDiagnostic, vo as FeishuTenantAccessTokenProviderOptions, vp as AgentDomainEventListener, vr as appendBackgroundSessionInput, vs as createFeishuCardActionErrorResponse, vt as RivusPluginModule, vu as createDefaultAgentRuntimeFromTextCallback, w as ConsumeToolApprovalInput, wa as createPiSessionRegistry, wc as AutomationDeliveryBinding, wd as createToolOperationLedger, wf as FeishuPromptMessageIntakeSummary, wi as InvalidToolInput, wl as FeishuReceiveMessageSummary, wn as validateRivusDeploymentManifest, wo as createFeishuCardRolloverSupervisor, wp as AgentHarnessIdleAvailability, wr as isBackgroundSessionDue, ws as RivusDaemonCliWriter, wt as SubagentRecord, wu as AgentHarnessClient, x as createHumanInteractionToolApprovalGateway, xa as createRunPresentationProjector, xc as ScheduledAutomationRunInput, xd as ToolOperationReconciliationOutcome, xf as FeishuNewSessionCommand, xi as createToolInputDigest, xl as FeishuReceiveHandledObservation, xn as validateProjectSkillCommand, xo as createFeishuTenantAccessTokenProvider, xp as AgentHarnessAvailability, xr as completeBackgroundSessionStop, xs as RivusDaemonBootstrapFactory, xt as SubagentCoordinator, xu as AgentClientAttempt, y as createConfiguredFeishuTextReplySender, ya as createFeishuCardPresentationStore, yc as AUTOMATION_SUPPRESSION_PREFIX, yd as ToolOperationLedger, yf as FeishuMessageIntakeOptions, yi as InvocationAuthorityRef, yl as FeishuMessageWorkerDrainAvailableResult, yn as ProjectSkillCatalogEntry, yo as FeishuTenantAccessTokenRequest, yp as AgentDomainEventSink, yr as claimBackgroundSession, ys as FeishuRawCardJson, yt as loadRivusDeployment, yu as createSystemClock, z as HumanInteractionBase, za as createOpenTelemetryAgentTelemetry, zc as RivusDaemonStatusReporterOptions, zd as ToolOperationRecoveryItem, zf as createFeishuConversationId, zi as createFixedClock, zl as RivusEnvFileVariables, zn as restrictMemoryScopesForAudience, zo as FeishuCardKitTextUpdate, zp as AgentEventSinkFailed, zr as AgentMemoryService, zs as RivusDeploymentBackgroundSessionStatus, zt as createPluginStateStore, zu as JsonHttpRequest } from "./chunks/index.js";
2
+ import { $ as replayAgentTranscript, A as AgentLoopToolExecutionStart, At as isAssistantThinkingDeltaEvent, B as createAgentLoopThinkingDelta, C as AgentLoopSkillExecutionEndOptions, Ct as AgentTurnStarted, D as AgentLoopThinkingDelta, Dt as TerminalAgentDomainEvent, E as AgentLoopTextDelta, Et as SessionKey, F as createAgentLoopModelExecutionEnd, Ft as LocalCliAgentInvocationOrigin, G as AgentConversationMessagesOptions, H as createAgentLoopToolExecutionStart, I as createAgentLoopModelExecutionStart, J as AgentTranscriptMessageRole, K as AgentTranscript, L as createAgentLoopSkillExecutionEnd, M as AgentLoopToolExecutionUpdate, Mt as AgentInvocationOrigin, N as AgentLoopToolExecutionUpdateOptions, Nt as AutomationAgentInvocationOrigin, O as AgentLoopToolExecutionEnd, Ot as isAgentToolExecutionEvent, P as AgentLoopTurnStart, Pt as FeishuAgentInvocationOrigin, Q as createAgentTranscriptTurn, R as createAgentLoopSkillExecutionStart, S as AgentLoopSkillExecutionEnd, St as AgentTurnCompleted, T as AgentLoopSkillExecutionStartOptions, Tt as AssistantThinkingDelta, U as createAgentLoopToolExecutionUpdate, V as createAgentLoopToolExecutionEnd, W as createAgentLoopTurnStart, X as createAgentConversationMessages, Y as AgentTranscriptTurn, Z as createAgentTranscriptMessages, _ as AgentLoopEventLike, _t as AgentSkillExecutionStarted, a as AgentLoopInput, at as AgentRunState, b as AgentLoopModelExecutionStart, bt as AgentToolExecutionStarted, c as EventAgentLoopOptions, ct as AgentModelExecutionEnded, d as createAgentLoopFromCallback, dt as AgentModelUsage, et as AgentHistory, f as createAsyncIterableAgentLoop, ft as AgentRunAccepted, g as AgentLoopEvent, gt as AgentSkillExecutionEnded, h as createTextAgentLoopFromCallback, ht as AgentRunId, i as AgentLoopCallbackResult, it as AgentRunPhase, j as AgentLoopToolExecutionStartOptions, jt as isTerminalAgentDomainEvent, k as AgentLoopToolExecutionEndOptions, kt as isAssistantTextDeltaEvent, l as TextAgentLoopCallback, lt as AgentModelExecutionEvent, m as createTextAgentLoop, mt as AgentRunFailed, n as AgentLoopCallback, nt as AgentSessionSummary, o as AgentSteeringChannel, ot as AgentSkillExecutionState, p as createEventAgentLoop, pt as AgentRunCompleted, q as AgentTranscriptMessage, r as AgentLoopCallbackOutput, rt as replayAgentHistory, s as AsyncIterableAgentLoopOptions, st as AgentDomainEvent, t as AgentLoop, tt as AgentRunSummary, u as TextAgentLoopOptions, ut as AgentModelExecutionStarted, v as AgentLoopModelExecutionEnd, vt as AgentToolExecutionEnded, w as AgentLoopSkillExecutionStart, wt as AssistantTextDelta, x as AgentLoopModelExecutionStartOptions, xt as AgentToolExecutionUpdated, y as AgentLoopModelExecutionEndOptions, yt as AgentToolExecutionEvent, z as createAgentLoopTextDelta } from "./chunks/agent-loop.js";
3
+ import { _ as RivusToolIdempotency, a as RivusRuntimeToolId, c as RivusHostToolDescriptor, d as RivusResolvedToolDescriptor, f as RivusToolDescriptor, g as RivusToolGrantSet, h as RivusToolFactoryContext, i as RIVUS_RUNTIME_TOOL_IDS, m as RivusToolExecutor, n as RivusSkillDescriptor, o as isRivusRuntimeToolId, p as RivusToolExecutionContext, r as RivusSkillGrantSet, s as RegisteredRivusTool, t as RegisteredRivusSkill, v as RivusToolInputRejected, y as RivusToolRisk } from "./chunks/rivus-skill.js";
4
+ import { A as RegisteredRivusAgentProfile, C as InvalidAutomationPresentation, D as RIVUS_PLUGIN_API_VERSION, E as InvalidRivusPlugin, M as RivusAgentDeployment, N as RivusAgentProfile, O as RegisteredRivusPlugin, P as RivusRuntimeToolGrantSet, S as AutomationPresentationSource, T as readAutomationPresentation, _ as AutomationPresentation, a as assertRivusPluginConforms, b as AutomationPresentationKind, c as RivusPluginCatalog, d as RegisteredRivusAutomation, f as RivusAutomationInput, g as AUTOMATION_PRESENTATION_SCHEMA_VERSION, h as RivusAutomationTickContext, i as RivusPluginLifecycleProbe, j as ResolvedRivusAgentDefinition, k as RivusPluginManifest, l as RivusPluginCatalogSnapshot, m as RivusAutomationTemplate, n as RivusPluginConformanceInput, o as createFakeRivusPlugin, p as RivusAutomationOutput, r as RivusPluginConformanceReport, s as RivusPlugin, t as RivusPluginConformanceError, u as RivusPluginRegistry, v as AutomationPresentationInput, w as createAutomationPresentation, x as AutomationPresentationSection, y as AutomationPresentationItem } from "./chunks/rivus-plugin-testkit.js";
5
+ import { A as BackgroundSessionAuthority, D as BackgroundSessionOrigin, E as BackgroundSessionPhase, M as BackgroundSessionId, O as BackgroundSessionLease, T as BackgroundSessionTerminalResult, _ as BackgroundSessionDeliveryConflict, a as progressDeliveryId, c as BACKGROUND_SESSION_SESSION_KEY_PREFIX, g as BackgroundSessionRepositoryCorrupted, h as BackgroundSessionRepositoryConflict, i as BackgroundSessionSummary, k as BackgroundSessionCancellation, l as createBackgroundSessionKey, n as BackgroundSessionDetail, o as sessionIdFromSessionKey, r as BackgroundSessionService, s as terminalDeliveryId, t as BackgroundSessionCallerDenied, u as createBackgroundSessionStepSourceMessageId, v as BackgroundSessionDeliveryRecord, y as BackgroundSessionDeliveryStore } from "./chunks/background-session-service.js";
6
+ import { l as InvalidInvocationAuthority } from "./chunks/pi-tool-proxy.js";
8
7
  export { AUTOMATION_PRESENTATION_SCHEMA_VERSION, AUTOMATION_SUPPRESSION_PREFIX, type ActiveAgentRun, type AgentClientAttempt, type AgentClientFailure, type AgentClientSuccess, type AgentClock, AgentContextBudgetExceeded, type AgentContextInput, type AgentContextLayer, type AgentContextLayerKind, type AgentConversationMessagesOptions, type AgentDomainEvent, type AgentDomainEventCallback, type AgentDomainEventHandler, type AgentDomainEventListener, type AgentDomainEventSink, type AgentDomainEventSinkCallback, AgentEventHandlerFailed, type AgentEventLog, type AgentEventLogOperation, AgentEventLogStoreError, AgentEventSinkFailed, type AgentHarness, type AgentHarnessAvailability, AgentHarnessBusy, type AgentHarnessBusyAvailability, type AgentHarnessClient, type AgentHarnessError, type AgentHarnessIdleAvailability, type AgentHarnessOptions, type AgentHistory, type AgentHistoryEventLog, AgentInstanceBusy, AgentInstanceConflict, type AgentInstanceRecord, type AgentInstanceRegistry, type AgentInstanceRegistryOptions, type AgentInvocationOrigin, type AgentLoop, type AgentLoopCallback, type AgentLoopCallbackOutput, type AgentLoopCallbackResult, type AgentLoopEvent, type AgentLoopEventLike, AgentLoopFailed, type AgentLoopInput, type AgentLoopModelExecutionEnd, type AgentLoopModelExecutionEndOptions, type AgentLoopModelExecutionStart, type AgentLoopModelExecutionStartOptions, type AgentLoopSkillExecutionEnd, type AgentLoopSkillExecutionEndOptions, type AgentLoopSkillExecutionStart, type AgentLoopSkillExecutionStartOptions, type AgentLoopTextDelta, type AgentLoopThinkingDelta, type AgentLoopToolExecutionEnd, type AgentLoopToolExecutionEndOptions, type AgentLoopToolExecutionStart, type AgentLoopToolExecutionStartOptions, type AgentLoopToolExecutionUpdate, type AgentLoopToolExecutionUpdateOptions, type AgentLoopTurnStart, type AgentMemoryAuthority, AgentMemoryError, type AgentMemoryHandle, type AgentMemoryIdentity, type AgentMemoryService, type AgentMemoryServiceOptions, type AgentMemorySnapshot, type AgentModelContentObserver, type AgentModelExecutionEnded, type AgentModelExecutionEvent, type AgentModelExecutionStarted, type AgentModelInputObservation, type AgentModelOutputObservation, type AgentModelUsage, type AgentPromptResult, type AgentRunAccepted, AgentRunCancelled, type AgentRunCancelled as AgentRunCancelledEvent, type AgentRunCompleted, type AgentRunFailed, type AgentRunId, type AgentRunPhase, type AgentRunSnapshot, type AgentRunState, type AgentRunSummary, type AgentRunUpdate, type AgentRunUpdateCallback, type AgentRunUpdateHandler, type AgentRunUpdateListener, type AgentRuntime, type AgentRuntimeCancellation, AgentRuntimeDisposed, type AgentRuntimeInput, type AgentRuntimePool, type AgentRuntimePoolOptions, type AgentRuntimeSteering, type AgentSessionAvailability, type AgentSessionBusyAvailability, type AgentSessionClient, type AgentSessionHandle, type AgentSessionOtherBusyAvailability, type AgentSessionOwnedBusyAvailability, type AgentSessionSnapshot, type AgentSessionSummary, type AgentSkillExecutionEnded, type AgentSkillExecutionStarted, type AgentSkillExecutionState, type AgentSteeringChannel, type AgentTextDeltaCallback, type AgentToolExecutionEnded, type AgentToolExecutionEvent, type AgentToolExecutionStarted, type AgentToolExecutionUpdated, type AgentTranscript, type AgentTranscriptMessage, type AgentTranscriptMessageRole, type AgentTranscriptTurn, type AgentTurnCompleted, type AgentTurnStarted, type ApprovedHumanInteractionState, type AssembledAgentContext, type AssistantPresentationStep, type AssistantTextDelta, type AssistantThinkingDelta, type AsyncIterableAgentLoopOptions, type AuthorizationPolicyProvider, type AuthorizationPolicyState, type AutomationAgentInvocationOrigin, type AutomationBinding, type AutomationDeliveryBinding, type AutomationMandate, AutomationMandateError, type AutomationMandateStore, type AutomationOutcome, type AutomationPresentation, type AutomationPresentationInput, type AutomationPresentationItem, type AutomationPresentationKind, type AutomationPresentationSection, type AutomationPresentationSource, type AutomationTick, type AutomationTickRecord, type AutomationTickRepositoryCompatibility as AutomationTickRepository, type AutomationTickStatus, BACKGROUND_SESSION_DELIVERY_JSONL_VERSION, BACKGROUND_SESSION_JSONL_VERSION, BACKGROUND_SESSION_SESSION_KEY_PREFIX, BACKGROUND_SESSION_START_TOOL_ID, BACKGROUND_SESSION_TOOL_IDS, BACKGROUND_SESSION_TOOL_PLUGIN_ID, BACKGROUND_SESSION_TOOL_VERSION, type BackgroundSessionAuthority, BackgroundSessionCallerDenied, type BackgroundSessionCancellation, BackgroundSessionDeliveryConflict, type BackgroundSessionDeliveryRecord, type BackgroundSessionDeliveryStore, type BackgroundSessionDetail, type BackgroundSessionId, type BackgroundSessionLease, type BackgroundSessionLimits, type BackgroundSessionOrigin, type BackgroundSessionPhase, type BackgroundSessionRepository, BackgroundSessionRepositoryConflict, BackgroundSessionRepositoryCorrupted, type BackgroundSessionService, type BackgroundSessionState, type BackgroundSessionSummary, type BackgroundSessionSupervisor, type BackgroundSessionSupervisorOptions, type BackgroundSessionSupervisorStatus, type BackgroundSessionTerminalResult, BackgroundSessionTransitionDenied, type CancelledHumanInteractionState, type CardPresentation, type CardPresentationChain, type CardPresentationStatus, CardPresentationTransitionDenied, type CommitAutomationOutcomeInput, type CommittedAutomationOutcome, CompactionError, type CompactionInput, type CompactionService, type CompactionSnapshot, type CompactorPort, type CompositeRivusDaemonTransportOptions, type ConfiguredFeishuCardKitPublisherOptions, type ConfiguredFeishuCardRolloverRuntime, type ConfiguredFeishuCardRolloverRuntimeOptions, type ConfiguredFeishuHumanInteractionPresenterOptions, type ConfiguredFeishuOpenApiRequest, type ConfiguredFeishuOpenApiResponse, type ConfiguredRivusDaemonBootstrap, type ConfiguredRivusDaemonBootstrapOptions, type ConfiguredRivusDaemonBootstrapRequest, type ConfiguredRivusDaemonBootstrapResponse, type ConsumeToolApprovalInput, type ConversationProgressDisplay, type CreateBackgroundSessionHostToolsOptions, type CreateConfiguredRivusDeploymentDaemonOptions, type CreateRivusDeploymentAutomationInput, type CreateRivusDeploymentBackgroundSessionInput, type CreateRivusDeploymentDaemonOptions, type CreateRivusDeploymentEndpointInput, type CreateRivusDeploymentRuntimeInput, DEFAULT_BACKGROUND_SESSION_LEASE_MS, DEFAULT_BACKGROUND_SESSION_LEASE_RENEWAL_INTERVAL_MS, DEFAULT_BACKGROUND_SESSION_LIFETIME_MS, DEFAULT_BACKGROUND_SESSION_MAX_CONCURRENT_SESSIONS, DEFAULT_BACKGROUND_SESSION_MAX_CONSECUTIVE_FAILURES, DEFAULT_BACKGROUND_SESSION_RETRY_BACKOFF_MS, DEFAULT_BACKGROUND_SESSION_STEP_TIMEOUT_MS, DEFAULT_BACKGROUND_SESSION_SUPERVISOR_INTERVAL_MS, DEFAULT_CARD_STREAM_LEASE_MS, DEFAULT_CONVERSATION_PROGRESS_DISPLAY, type DailyAutomationSchedule, type DeadLetterRecoveryItem, type DeadLetterRequeueResult, type DefaultAgentHarnessClientFromCallbackOptions, type DefaultAgentHarnessClientFromTextCallbackOptions, type DefaultAgentHarnessClientOptions, type DefaultAgentHarnessFromCallbackOptions, type DefaultAgentHarnessFromTextCallbackOptions, type DefaultAgentHarnessOptions, type DefaultAgentRuntimeFromCallbackOptions, type DefaultAgentRuntimeFromTextCallbackOptions, type DefaultAgentRuntimeOptions, type DefaultAgentRuntimeSessionOptions, DelegationDenied, type DelegationEdge, type DelegationGrant, type DelegationRequest, type DelegationService, type DeliveryJob, type DeliveryJobStatus, type DeliveryOutbox, DeliveryOutboxError, type EventAgentLoopOptions, type ExpiredHumanInteractionState, FEISHU_AGENT_CARD_ELEMENT_ID, FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID, type FeishuAgentCommand, type FeishuAgentDaemon, type FeishuAgentDaemonCancelResult, type FeishuAgentDaemonHandleMessageOptions, type FeishuAgentDaemonHandleResult, type FeishuAgentDaemonInteractionResult, type FeishuAgentDaemonOptions, type FeishuAgentDaemonRunResult, type FeishuAgentDaemonSessionResetResult, type FeishuAgentDaemonSkippedResult, type FeishuAgentDaemonSteeredResult, type FeishuAgentExecution, type FeishuAgentExecutionResult, type FeishuAgentInvocationOrigin, type FeishuAgentMessageSideEffects, type FeishuAgentPreparedControl, type FeishuAgentRunCardInput, type FeishuAgentRunPreparation, type FeishuAgentRuntime, type FeishuAgentRuntimeOptions, type FeishuAutomationCardInput, type FeishuAutomationCardSender, type FeishuBackgroundSessionDelivery, type FeishuBackgroundSessionDeliveryInput, type FeishuBackgroundSessionDeliveryKind, type FeishuCancelMessageIntakeSummary, type FeishuCancelRunCommand, type FeishuCardActionCallbackResponse, type FeishuCardActionCommand, type FeishuCardActionIntakeError, type FeishuCardActionToast, type FeishuCardActionTriggerPayload, type FeishuCardDeliveryLedger, type FeishuCardDeliveryLedgerStateOptions, type FeishuCardDeliveryReconciler, type FeishuCardDeliveryReconcilerOptions, type FeishuCardDeliveryRecord, type FeishuCardKitCancel, type FeishuCardKitClient, type FeishuCardKitFail, type FeishuCardKitFinish, type FeishuCardKitOpenApiClientOptions, type FeishuCardKitOpenApiTargetCreatorOptions, type FeishuCardKitPresentationUpdate, type FeishuCardKitPublisher, type FeishuCardKitPublisherOptions, type FeishuCardKitTextUpdate, type FeishuCardPresentationBinder, type FeishuCardPresentationHandoffStart, FeishuCardPresentationNotFound, type FeishuCardPresentationStore, type FeishuCardPresentationStoreOptions, type FeishuCardRollover, type FeishuCardRolloverCounters, type FeishuCardRolloverEvent, type FeishuCardRolloverEventType, type FeishuCardRolloverHandoffResult, type FeishuCardRolloverOptions, type FeishuCardRolloverStatus, type FeishuCardRolloverSupervisor, type FeishuCardRolloverSupervisorOptions, type FeishuCardTarget, type FeishuCardTargetCreateOptions, type FeishuCardTargetCreator, FeishuCardTargetNotFound, type FeishuCardTargetPreparationOptions, type FeishuCardTargetRegistry, type FeishuCardTargetRegistryOperation, FeishuCardTargetRegistryStoreError, type FeishuCoalescingPublisher, type FeishuCoalescingPublisherOptions, type FeishuConversationReference, FeishuCotProtocolError, type FeishuCotPublisher, type FeishuCotPublisherOptions, type FeishuCotRunPreparation, type FeishuDeploymentEndpointOptions, FeishuEndpointCredentialError, type FeishuEndpointCredentials, type FeishuEndpointGroupPolicy, type FeishuEventHandlerCardActions, type FeishuEventHandlerQueue, type FeishuEventHandlers, type FeishuEventHandlersOptions, type FeishuHumanInteractionActions, type FeishuHumanInteractionPresenterOptions, type FeishuInboxCompletedState, type FeishuInboxDeadState, type FeishuInboxDelivery, type FeishuInboxDeliveryState, type FeishuInboxLeasedState, type FeishuInboxPendingState, type FeishuInboxRepository, type FeishuInboxRepositoryStateOptions, type FeishuMessageAcceptResult, type FeishuMessageContentInput, type FeishuMessageDrainResult, type FeishuMessageIntakeBaseSummary, type FeishuMessageIntakeError, type FeishuMessageIntakeOptions, type FeishuMessageIntakeSummary, type FeishuMessagePreparedControl, type FeishuMessageQueue, type FeishuMessageQueueOptions, type FeishuMessageReactionSender, type FeishuMessageWorker, type FeishuMessageWorkerDrainAvailableResult, type FeishuMessageWorkerOptions, type FeishuMessageWorkerQueue, type FeishuNewSessionCommand, type FeishuNewSessionMessageIntakeSummary, type FeishuOpenApiClient, FeishuOpenApiError, type FeishuOpenApiRequest, type FeishuOpenApiResponse, type FeishuPeriodicFlush, type FeishuPeriodicFlushOptions, type FeishuPeriodicFlushSupervisor, type FeishuPresentationPreparationOptions, type FeishuPromptAgentCommand, type FeishuPromptContextInput, type FeishuPromptContextResolver, type FeishuPromptMessageIntakeSummary, type FeishuRawCardJson, type FeishuReceiveAcceptedObservation, type FeishuReceiveHandledObservation, type FeishuReceiveMessageHandlerPayload, type FeishuReceiveMessagePayload, type FeishuReceiveMessageReplayOptions, type FeishuReceiveMessageReplayResult, type FeishuReceiveMessageSummary, type FeishuReceiveRuntimeStatus, type FeishuResolveInteractionCommand, type FeishuSdkReceiveMessagePayload, type FeishuSessionEpochRecord, type FeishuSessionReference, type FeishuSessionResetResult, type FeishuSessionStore, type FeishuSessionStoreOptions, type FeishuStreamAction, type FeishuStreamActionPublisher, type FeishuStreamProjector, FeishuTenantAccessTokenError, type FeishuTenantAccessTokenProvider, type FeishuTenantAccessTokenProviderOptions, type FeishuTenantAccessTokenRequest, type FeishuTenantAccessTokenResponse, type FeishuTextReplySender, type FeishuTopicContextResolverOptions, type FeishuWebSocketClient, type FeishuWebSocketClientStartOptions, type FeishuWebSocketDaemon, type FeishuWebSocketDaemonOptions, type FeishuWebSocketEventDispatcher, type FeishuWebSocketRuntime, type FeishuWorkerLoop, type FeishuWorkerLoopOptions, type FetchLike, type FetchLikeResponse, type HumanInteraction, type HumanInteractionActor, type HumanInteractionBase, type HumanInteractionClock, type HumanInteractionEndpointRegistry, type HumanInteractionFact, type HumanInteractionId, type HumanInteractionPresenter, type HumanInteractionRepository, HumanInteractionRepositoryError, type HumanInteractionResolutionAction, type HumanInteractionService, type HumanInteractionServiceOptions, type HumanInteractionTransition, HumanInteractionTransitionDenied, InvalidAutomationPresentation, InvalidFeishuCardAction, InvalidFeishuMessageContent, InvalidFeishuSessionReference, InvalidFeishuTopicContext, InvalidInvocationAuthority, InvalidProjectSkillCatalog, InvalidRecoveryAction, InvalidRivusEndpointBinding, InvalidRivusPlugin, InvalidRivusProjectSpace, InvalidStableJson, InvalidToolInput, InvalidWorkspaceRoot, type InvocationAuthority, type InvocationAuthorityRef, type JsonFetchRequestOptions, type JsonFileFeishuCardTargetRegistryOptions, type JsonHttpRequest, type JsonHttpResponse, type JsonlAgentEventLogOptions, type JsonlFeishuCardDeliveryLedgerOptions, type JsonlFeishuInboxRepositoryOptions, type JsonlHumanInteractionRepositoryOptions, type JsonlRecoveryControlOptions, type LangfuseAgentTelemetry, type LangfuseTelemetryConfig, LangfuseTelemetryConfigError, type LangfuseTelemetryContentMode, type LangfuseTelemetryEnv, type LoadRivusDeploymentManifestOptions, type LoadRivusDeploymentOptions, type LoadedRivusDeployment, type LocalCliAgentInvocationOrigin, MEMORY_SCOPES, type MemoryBinding, type MemoryInvocationAudience, type MemoryRecord, type MemoryScope, type MemorySearchQuery, type MemoryState, type MemoryTombstoneReceipt, type MergePiProviderBaseUrlOverrideOptions, type ModelPresentationStep, OpenClawEnvImportError, type OpenClawEnvImportOptions, type OpenClawEnvImportResult, type OpenJsonAutomationTickRepositoryOptions, type OpenJsonFeishuSessionStoreOptions, type OpenTelemetryAgentEventSinkOptions, type OpenTelemetryAgentTelemetry, type PendingHumanInteractionState, type PiAgentLoopOptions, type PiAgentSession, type PiAgentSessionEvent, type PiAgentSessionHandle, type PiCreateAgentSessionResult, type PiSdkAgentLoopOptions, type PiSessionRegistry, type PiSessionRegistryOptions, PluginStateConflict, type PluginStateRecord, type PluginStateStore, type PooledAgentRuntime, type PresentationStep, type PresentationStepStatus, type PresentedValue, type PresentedValueOptions, type ProjectMemoryPromptInput, type ProjectMemoryRecallIdentity, type ProjectMemoryRecallOptions, type ProjectSkillCatalogDiagnostic, type ProjectSkillCatalogEntry, type PromptCommand, type PutPluginState, RIVUS_MEMORY_TOOL_ID, RIVUS_MEMORY_TOOL_PLUGIN_ID, RIVUS_MEMORY_TOOL_VERSION, RIVUS_PLUGIN_API_VERSION, RIVUS_RUNTIME_TOOL_IDS, RUN_PRESENTATION_SCHEMA_VERSION, type RateLimitedFeishuPublisherOptions, type RecoveryAction, type RecoveryControl, type RecoveryControlOptions, type RecoverySnapshot, type RegisteredRivusAgentProfile, type RegisteredRivusAutomation, type RegisteredRivusPlugin, type RegisteredRivusSkill, type RegisteredRivusTool, type RejectedHumanInteractionState, type RequestToolApprovalInput, type RequestUserDecisionInput, type ResolveHumanInteractionInput, type ResolvedRivusAgentDefinition, type ResolvedRivusAutomationDefinition, type ResolvedRivusProjectSpace, type ResponsePresentationStep, type RivusAgentDeployment, type RivusAgentDeploymentStatus, type RivusAgentHost, type RivusAgentHostOptions, type RivusAgentProfile, type RivusAutomationDelivery, type RivusAutomationDeliveryTargetType, type RivusAutomationDeployment, type RivusAutomationInput, type RivusAutomationOutput, type RivusAutomationTemplate, type RivusAutomationTickContext, type RivusBackgroundSessionsDeployment, type RivusDaemonBootstrapContext, type RivusDaemonBootstrapFactory, type RivusDaemonBootstrapModule, type RivusDaemonCliOptions, type RivusDaemonCliWriter, type RivusDaemonConfig, RivusDaemonConfigError, type RivusDaemonConfigLoaderOptions, type RivusDaemonEnv, type RivusDaemonFeishuReplayRunner, type RivusDaemonProcess, type RivusDaemonProcessOptions, type RivusDaemonPromptRunner, type RivusDaemonRecoveryRunner, type RivusDaemonShutdownController, type RivusDaemonShutdownControllerOptions, type RivusDaemonShutdownSignal, type RivusDaemonSignalSource, type RivusDaemonStatus, type RivusDaemonStatusHttpServer, type RivusDaemonStatusHttpServerOptions, type RivusDaemonStatusReporter, type RivusDaemonStatusReporterOptions, type RivusDaemonTransport, type RivusDaemonWorkerLoop, type RivusDeploymentAutomation, type RivusDeploymentAutomationLifecycle, RivusDeploymentAutomationReadinessError, type RivusDeploymentAutomationStatus, type RivusDeploymentBackgroundSession, type RivusDeploymentBackgroundSessionLifecycle, RivusDeploymentBackgroundSessionReadinessError, type RivusDeploymentBackgroundSessionStatus, type RivusDeploymentBootstrapAdapters, type RivusDeploymentBootstrapContext, type RivusDeploymentBootstrapFactory, type RivusDeploymentCliProcess, type RivusDeploymentComponentLifecycle, type RivusDeploymentDaemon, type RivusDeploymentDaemonLifecycle, RivusDeploymentDaemonLifecycleError, type RivusDeploymentDaemonStatus, type RivusDeploymentEndpoint, type RivusDeploymentEndpointLifecycle, type RivusDeploymentEndpointStatus, type RivusDeploymentManifest, RivusDeploymentManifestError, RivusDeploymentReadinessError, type RivusEndpointDefinition, type RivusEndpointDeployment, type RivusEndpointExperimentalFeatures, type RivusEndpointInput, type RivusEnvFileVariables, type RivusHostToolDescriptor, type RivusMemoryTool, type RivusPlugin, type RivusPluginCatalog, type RivusPluginCatalogSnapshot, RivusPluginConformanceError, type RivusPluginConformanceInput, type RivusPluginConformanceReport, type RivusPluginDeclaration, type RivusPluginLifecycleProbe, RivusPluginLoadError, type RivusPluginLoadStatus, type RivusPluginManifest, type RivusPluginModule, type RivusPluginModuleLoadRequest, type RivusPluginRegistry, type RivusProjectSpaceDeployment, type RivusResolvedToolDescriptor, type RivusRuntimeToolGrantSet, type RivusRuntimeToolId, type RivusSkillDescriptor, type RivusSkillGrantSet, type RivusTextFileReader, type RivusThinkingLevel, type RivusToolDescriptor, type RivusToolExecutionContext, type RivusToolExecutor, type RivusToolFactoryContext, type RivusToolGrantSet, type RivusToolIdempotency, RivusToolInputRejected, type RivusToolRisk, type RunIdGenerator, type RunPresentation, type RunPresentationPhase, type RunPresentationProjector, type ScheduledAutomation, type ScheduledAutomationClock, type ScheduledAutomationDeliveryInput, type ScheduledAutomationOptions, type ScheduledAutomationRunInput, type ScheduledAutomationRunResult, type SelectedHumanInteractionState, type SessionKey, type SessionScheduler, SessionSchedulerCapacityExceeded, SessionSchedulerDisposed, type SessionSchedulerOptions, type SessionSchedulerStatus, type SkillPresentationStep, type SpawnSubagentRequest, type SubagentCoordinator, type SubagentRecord, type TelemetryContentRedactor, type TelemetryContentRedactorOptions, type TerminalAgentDomainEvent, type TextAgentLoopCallback, type TextAgentLoopOptions, type ToolApprovalBinding, type ToolApprovalInteraction, type ToolApprovalInteractionState, type ToolApprovalRequest, type ToolApprovalService, type ToolBroker, type ToolBrokerOptions, type ToolExecutionRequest, ToolInvocationDenied, type ToolOperationBeginResult, type ToolOperationBinding, type ToolOperationInspectResult, type ToolOperationLedger, type ToolOperationReconciliation, type ToolOperationReconciliationOutcome, type ToolOperationRecord, type ToolOperationRecoveryItem, type ToolOperationResolutionResult, type ToolOperationState, type ToolPresentationStep, UnsupportedFeishuCardAction, UnsupportedFeishuMessage, type UserDecisionInteraction, type UserDecisionInteractionState, type UserDecisionOption, type WorkspaceInstructionSource, type WorkspaceInstructionsDiagnostic, type WorkspaceInstructionsDiagnosticCode, type WorkspaceInstructionsProvider, type WorkspaceInstructionsRequest, WorkspaceInstructionsSourceError, type WorkspaceInstructionsView, type WorkspaceRootHandle, acceptsCardPresentationProgress, activeCardPresentation, appendBackgroundSessionInput, assembleAgentContext, assertRivusPluginConforms, backgroundSessionToolIds, claimBackgroundSession, commitAutomationOutcome, completeBackgroundSessionStep, completeBackgroundSessionStop, composeFeishuTopicPrompt, createAgentCommandFromFeishuCardAction, createAgentCommandFromFeishuMessage, createAgentConversationMessages, createAgentDomainEventHandler, createAgentDomainEventSink, createAgentDomainEventSinkFromCallback, createAgentHarness, createAgentHarnessClient, createAgentHarnessPooledRuntime, createAgentInstanceRegistry, createAgentLoopFromCallback, createAgentLoopModelExecutionEnd, createAgentLoopModelExecutionStart, createAgentLoopPromptTransformer, createAgentLoopSkillExecutionEnd, createAgentLoopSkillExecutionStart, createAgentLoopTextDelta, createAgentLoopThinkingDelta, createAgentLoopToolExecutionEnd, createAgentLoopToolExecutionStart, createAgentLoopToolExecutionUpdate, createAgentLoopTurnStart, createAgentMemoryService, createAgentRunUpdateHandler, createAgentRuntime, createAgentRuntimePool, createAgentTranscriptMessages, createAgentTranscriptTurn, createAgentsMdInstructionsProvider, createAsyncIterableAgentLoop, createAutomationMandateStore, createAutomationPresentation, createBackgroundSession, createBackgroundSessionCard, createBackgroundSessionDeliveryStore, createBackgroundSessionHostTools, createBackgroundSessionKey, createBackgroundSessionRepository, createBackgroundSessionService, createBackgroundSessionStepSourceMessageId, createBackgroundSessionSupervisor, createBackgroundSessionToolContracts, createCoalescingFeishuPublisher, createCompactionService, createCompositeRivusDaemonTransport, createConfiguredFeishuAutomationCardSender, createConfiguredFeishuBackgroundSessionDelivery, createConfiguredFeishuCardKitPublisher, createConfiguredFeishuCardKitTargetCreator, createConfiguredFeishuCardRolloverRuntime, createConfiguredFeishuHumanInteractionPresenter, createConfiguredFeishuMessageReactionSender, createConfiguredFeishuOpenApiClient, createConfiguredFeishuTextReplySender, createConfiguredRivusDaemonBootstrap, createConfiguredRivusDeploymentDaemon, createDailyAutomationSchedule, createDefaultAgentHarness, createDefaultAgentHarnessClient, createDefaultAgentHarnessClientFromCallback, createDefaultAgentHarnessClientFromTextCallback, createDefaultAgentHarnessFromCallback, createDefaultAgentHarnessFromTextCallback, createDefaultAgentRuntime, createDefaultAgentRuntimeFromCallback, createDefaultAgentRuntimeFromTextCallback, createDelegationService, createDeliveryOutbox, createEventAgentLoop, createFakeRivusPlugin, createFeishuAgentDaemon, createFeishuAgentRunCard, createFeishuAgentRuntime, createFeishuCardActionCallbackResponse, createFeishuCardActionErrorResponse, createFeishuCardDeliveryLedger, createFeishuCardDeliveryReconciler, createFeishuCardKitOpenApiClient, createFeishuCardKitOpenApiTargetCreator, createFeishuCardKitPublisher, createFeishuCardPresentationStore, createFeishuCardRollover, createFeishuCardRolloverSupervisor, createFeishuCardTargetPreparation, createFeishuConversationId, createFeishuCotPublisher, createFeishuDeploymentEndpoint, createFeishuEventHandlers, createFeishuHumanInteractionCard, createFeishuHumanInteractionPresenter, createFeishuInboxRepository, createFeishuMessageQueue, createFeishuMessageWorker, createFeishuOpenApiClient, createFeishuPeriodicFlush, createFeishuPresentationPreparation, createFeishuSessionKey, createFeishuSessionStore, createFeishuStreamProjector, createFeishuTenantAccessTokenProvider, createFeishuTopicContextResolver, createFeishuWebSocketDaemon, createFeishuWorkerLoop, createFixedClock, createHumanInteractionEndpointRegistry, createHumanInteractionService, createHumanInteractionToolApprovalGateway, createInMemoryFeishuCardTargetRegistry, createInMemoryHumanInteractionRepository, createInvocationAuthority, createJsonFetchRequest, createJsonFileFeishuCardTargetRegistry, createJsonlAgentEventLog, createJsonlHumanInteractionRepository, createLangfuseAgentTelemetry, createLazyFeishuWebSocketEventDispatcher, createMemoryNamespace, createOpenTelemetryAgentEventSink, createOpenTelemetryAgentTelemetry, createPiAgentLoop, createPiSdkAgentLoop, createPiSessionRegistry, createPluginStateStore, createPresentedValue, createProjectMemoryPromptPreparer, createRateLimitedFeishuPublisher, createRecoveryAction, createRecoveryControl, createRivusAgentHost, createRivusDaemonProcess, createRivusDaemonShutdownController, createRivusDaemonStatusHttpServer, createRivusDaemonStatusReporter, createRivusDeploymentCliProcess, createRivusDeploymentDaemon, createRivusEnvFromOpenClawConfig, createRivusMemoryTool, createRivusMemoryToolContract, createRivusMemoryToolDescriptor, createRivusPluginCatalog, createRoutedHumanInteractionToolApprovalService, createRunPresentationProjector, createScheduledAutomation, createSequenceRunIds, createSessionScheduler, createSubagentCoordinator, createSystemClock, createTelemetryContentRedactor, createTestClock, createTextAgentLoop, createTextAgentLoopFromCallback, createToolBroker, createToolInputDigest, createToolOperationLedger, createUuidRunIds, createWorkspaceRootHandle, describeFeishuMessageIntake, evolveAgentRun, extendBackgroundSessionDefinition, failBackgroundSessionStep, formatRivusEnvFile, hasInspectableRunProgress, initialAgentRunState, intersectToolIds, isAgentToolExecutionEvent, isAssistantTextDeltaEvent, isAssistantThinkingDeltaEvent, isBackgroundSessionDue, isBackgroundSessionLeaseExpired, isBackgroundSessionState, isBackgroundSessionTerminalPhase, isBackgroundSessionToolId, isCardPresentationHandoffDue, isRivusRuntimeToolId, isTerminalAgentDomainEvent, isTerminalAgentRunPhase, loadNodeRivusPluginModule, loadRivusDaemonConfig, loadRivusDeployment, loadRivusDeploymentManifest, mergePiProviderBaseUrlOverride, narrowBackgroundSessionDefinition, normalizeStableJson, openJsonAutomationTickRepository, openJsonFeishuSessionStore, openJsonlAgentMemoryService, openJsonlBackgroundSessionDeliveryStore, openJsonlBackgroundSessionRepository, openJsonlFeishuCardDeliveryLedger, openJsonlFeishuInboxRepository, openJsonlRecoveryControl, openJsonlToolOperationLedger, parkBackgroundSessionForReconciliation, progressDeliveryId, readAutomationPresentation, readFeishuMessageContent, releaseBackgroundSessionLease, renewBackgroundSessionLease, replayAgentHistory, replayAgentTranscript, requestBackgroundSessionStop, requeueInterruptedBackgroundSessionStep, requiresToolApproval, resolveBackgroundSessionReconciliation, resolveBackgroundSessionSupervisorIntervalMs, resolveFeishuDeliveryChatId, resolveFeishuEndpointCredentials, resolveLangfuseTelemetryConfig, resolveRivusAgentDefinition, resolveRivusProjectSpace, restoreAgentHistory, restoreConfiguredRivusDaemonBootstrap, restrictMemoryScopesForAudience, runRivusDaemonCli, sessionIdFromSessionKey, shouldAcceptFeishuEndpointMessage, suspendBackgroundSession, terminalDeliveryId, transitionHumanInteraction, validateProjectSkillCatalog, validateProjectSkillCommand, validateRivusDeploymentManifest };
package/dist/index.js CHANGED
@@ -1,9 +1,8 @@
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";
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
- 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
- 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";
6
- import { $ as createBackgroundSessionStepSourceMessageId, A as resolveBackgroundSessionReconciliation, C as isBackgroundSessionDue, D as renewBackgroundSessionLease, E as releaseBackgroundSessionLease, G as BACKGROUND_SESSION_TOOL_VERSION, H as BACKGROUND_SESSION_START_TOOL_ID, J as extendBackgroundSessionDefinition, K as backgroundSessionToolIds, M as BackgroundSessionTransitionDenied, N as isBackgroundSessionTerminalPhase, O as requestBackgroundSessionStop, Q as createBackgroundSessionKey, S as failBackgroundSessionStep, T as parkBackgroundSessionForReconciliation, U as BACKGROUND_SESSION_TOOL_IDS, W as BACKGROUND_SESSION_TOOL_PLUGIN_ID, X as narrowBackgroundSessionDefinition, Y as isBackgroundSessionToolId, Z as BACKGROUND_SESSION_SESSION_KEY_PREFIX, _ as appendBackgroundSessionInput, a as DEFAULT_BACKGROUND_SESSION_MAX_CONCURRENT_SESSIONS, b as completeBackgroundSessionStop, c as DEFAULT_BACKGROUND_SESSION_STEP_TIMEOUT_MS, d as BackgroundSessionCallerDenied, f as createBackgroundSessionService, h as terminalDeliveryId, i as DEFAULT_BACKGROUND_SESSION_LIFETIME_MS, j as suspendBackgroundSession, k as requeueInterruptedBackgroundSessionStep, l as DEFAULT_BACKGROUND_SESSION_SUPERVISOR_INTERVAL_MS, m as sessionIdFromSessionKey, n as DEFAULT_BACKGROUND_SESSION_LEASE_MS, o as DEFAULT_BACKGROUND_SESSION_MAX_CONSECUTIVE_FAILURES, p as progressDeliveryId, q as createBackgroundSessionToolContracts, r as DEFAULT_BACKGROUND_SESSION_LEASE_RENEWAL_INTERVAL_MS, s as DEFAULT_BACKGROUND_SESSION_RETRY_BACKOFF_MS, t as createBackgroundSessionSupervisor, u as resolveBackgroundSessionSupervisorIntervalMs, v as claimBackgroundSession, w as isBackgroundSessionLeaseExpired, x as createBackgroundSession, y as completeBackgroundSessionStep } from "./chunks/api2.js";
7
- import { a as RIVUS_MEMORY_TOOL_VERSION, i as RIVUS_MEMORY_TOOL_PLUGIN_ID, o as createRivusMemoryToolContract, r as RIVUS_MEMORY_TOOL_ID } from "./chunks/module.js";
8
- import { a as resolveRivusAgentDefinition, n as assertRivusPluginConforms, r as createFakeRivusPlugin, t as RivusPluginConformanceError } from "./chunks/rivus-plugin-testkit.js";
1
+ import { _ as createAgentLoopToolExecutionStart, a as createTextAgentLoopFromCallback, d as createAgentLoopModelExecutionStart, f as createAgentLoopSkillExecutionEnd, g as createAgentLoopToolExecutionEnd, h as createAgentLoopThinkingDelta, i as createTextAgentLoop, m as createAgentLoopTextDelta, n as createAsyncIterableAgentLoop, p as createAgentLoopSkillExecutionStart, r as createEventAgentLoop, t as createAgentLoopFromCallback, u as createAgentLoopModelExecutionEnd, v as createAgentLoopToolExecutionUpdate, y as createAgentLoopTurnStart } from "./chunks/agent-loop.js";
2
+ import { $ as completeBackgroundSessionStop, $n as createFeishuAgentRunCard, $r as createUuidRunIds, $t as openJsonlToolOperationLedger, A as AUTOMATION_SUPPRESSION_PREFIX, Ai as createRecoveryControl, An as createLangfuseAgentTelemetry, Ar as createAgentCommandFromFeishuMessage, At as openJsonlBackgroundSessionRepository, B as validateProjectSkillCatalog, Bi as RUN_PRESENTATION_SCHEMA_VERSION, Bn as createFeishuTopicContextResolver, Br as createAgentCommandFromFeishuCardAction, Bt as progressDeliveryId, C as commitAutomationOutcome, Ci as createJsonFetchRequest, Cn as InvalidAutomationPresentation, Cr as createCompositeRivusDaemonTransport, Ct as resolveBackgroundSessionSupervisorIntervalMs, D as createPluginStateStore, Di as openJsonFeishuSessionStore, Dn as createPiAgentLoop, Dr as shouldAcceptFeishuEndpointMessage, Dt as createBackgroundSessionSupervisor, E as PluginStateConflict, Ei as createSessionScheduler, En as createPiSessionRegistry, Er as createFeishuMessageWorker, Et as createBackgroundSessionHostTools, F as CompactionError, Fi as openJsonlFeishuCardDeliveryLedger, Fn as AgentEventLogStoreError, Fr as InvalidFeishuSessionReference, Ft as isBackgroundSessionState, G as createRivusMemoryToolDescriptor, Gn as createConfiguredFeishuCardKitTargetCreator, Gr as createDefaultAgentHarnessClientFromCallback, Gt as InvalidRivusEndpointBinding, H as createAgentLoopPromptTransformer, Hi as DEFAULT_CONVERSATION_PROGRESS_DISPLAY, Hn as createConfiguredFeishuMessageReactionSender, Hr as createAgentRuntime, Ht as terminalDeliveryId, I as AgentContextBudgetExceeded, Ii as createFeishuCardDeliveryLedger, In as createJsonlAgentEventLog, Ir as createFeishuConversationId, It as createBackgroundSessionService, J as MEMORY_SCOPES, Jn as createConfiguredFeishuCardKitPublisher, Jr as createDefaultAgentHarnessFromTextCallback, Jt as createFeishuDeploymentEndpoint, K as createMemoryNamespace, Kn as createFeishuCardKitOpenApiTargetCreator, Kr as createDefaultAgentHarnessClientFromTextCallback, Kt as createRivusAgentHost, L as assembleAgentContext, Li as createFeishuCardDeliveryReconciler, Ln as createConfiguredRivusDaemonBootstrap, Lr as createFeishuSessionKey, Lt as BackgroundSessionRepositoryConflict, M as createAutomationMandateStore, Mi as InvalidRecoveryAction, Mn as createOpenTelemetryAgentEventSink, Mr as InvalidFeishuMessageContent, Mt as openJsonlBackgroundSessionDeliveryStore, N as AutomationMandateError, Ni as createRecoveryAction, Nn as createOpenTelemetryAgentTelemetry, Nr as UnsupportedFeishuMessage, Nt as createBackgroundSessionDeliveryStore, O as openJsonAutomationTickRepository, Oi as createFeishuSessionStore, On as createPiSdkAgentLoop, Or as createFeishuMessageQueue, Ot as BackgroundSessionDeliveryConflict, P as createCompactionService, Pi as createFeishuInboxRepository, Pn as createTelemetryContentRedactor, Pr as readFeishuMessageContent, Pt as BACKGROUND_SESSION_JSONL_VERSION, Q as completeBackgroundSessionStep, Qn as FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID, Qr as createSystemClock, Qt as openJsonlRecoveryControl, R as openJsonlAgentMemoryService, Ri as createFeishuStreamProjector, Rn as restoreConfiguredRivusDaemonBootstrap, Rr as InvalidFeishuCardAction, Rt as BackgroundSessionRepositoryCorrupted, S as DelegationDenied, Si as isTerminalAgentRunPhase, Sn as AUTOMATION_PRESENTATION_SCHEMA_VERSION, Sr as createRivusDaemonStatusReporter, St as DEFAULT_BACKGROUND_SESSION_SUPERVISOR_INTERVAL_MS, T as createDeliveryOutbox, Ti as SessionSchedulerDisposed, Tn as readAutomationPresentation, Tr as createFeishuWorkerLoop, Tt as narrowBackgroundSessionDefinition, U as createProjectMemoryPromptPreparer, Un as createConfiguredFeishuTextReplySender, Ur as createDefaultAgentHarness, Ut as createAgentMemoryService, V as validateProjectSkillCommand, Vi as hasInspectableRunProgress, Vn as composeFeishuTopicPrompt, Vr as mergePiProviderBaseUrlOverride, Vt as sessionIdFromSessionKey, W as createRivusMemoryTool, Wn as createConfiguredFeishuCardRolloverRuntime, Wr as createDefaultAgentHarnessClient, Wt as AgentMemoryError, X as appendBackgroundSessionInput, Xn as createFeishuCardKitOpenApiClient, Xr as createDefaultAgentRuntimeFromCallback, Xt as createAgentRuntimePool, Y as BackgroundSessionTransitionDenied, Yn as createFeishuCardKitPublisher, Yr as createDefaultAgentRuntime, Yt as createAgentHarnessPooledRuntime, Z as claimBackgroundSession, Zn as FEISHU_AGENT_CARD_ELEMENT_ID, Zr as createDefaultAgentRuntimeFromTextCallback, Zt as createAgentInstanceRegistry, _ as loadNodeRivusPluginModule, _i as isAssistantTextDeltaEvent, _n as FeishuCardTargetNotFound, _r as createFeishuAgentRuntime, _t as DEFAULT_BACKGROUND_SESSION_LIFETIME_MS, a as createInMemoryHumanInteractionRepository, ai as createAgentHarness, an as createAgentsMdInstructionsProvider, ar as createRateLimitedFeishuPublisher, at as parkBackgroundSessionForReconciliation, b as createDelegationService, bi as evolveAgentRun, bn as createJsonFileFeishuCardTargetRegistry, br as createFeishuCardActionErrorResponse, bt as DEFAULT_BACKGROUND_SESSION_RETRY_BACKOFF_MS, c as createConfiguredFeishuAutomationCardSender, ci as AgentHarnessBusy, cn as WorkspaceInstructionsSourceError, cr as createFeishuCardRollover, ct as requestBackgroundSessionStop, d as createHumanInteractionEndpointRegistry, di as createAgentConversationMessages, dn as createTestClock, dr as acceptsCardPresentationProgress, dt as suspendBackgroundSession, ei as createAgentHarnessClient, en as createToolBroker, er as FeishuOpenApiError, et as createBackgroundSession, f as HumanInteractionTransitionDenied, fi as createAgentTranscriptMessages, fn as createFeishuPeriodicFlush, fr as activeCardPresentation, ft as createBackgroundSessionCard, g as createRivusDeploymentDaemon, gi as isAgentToolExecutionEvent, gn as createFeishuCardPresentationStore, gr as restoreAgentHistory, gt as DEFAULT_BACKGROUND_SESSION_LEASE_RENEWAL_INTERVAL_MS, h as loadRivusDeploymentManifest, hi as replayAgentHistory, hn as FeishuCardPresentationNotFound, hr as createLazyFeishuWebSocketEventDispatcher, ht as DEFAULT_BACKGROUND_SESSION_LEASE_MS, i as createFeishuHumanInteractionPresenter, ii as createAgentDomainEventSink, in as requiresToolApproval, ir as createFeishuTenantAccessTokenProvider, it as isBackgroundSessionTerminalPhase, j as createDailyAutomationSchedule, ji as createToolOperationLedger, jn as resolveLangfuseTelemetryConfig, jr as describeFeishuMessageIntake, jt as BACKGROUND_SESSION_DELIVERY_JSONL_VERSION, k as createScheduledAutomation, ki as openJsonlFeishuInboxRepository, kn as LangfuseTelemetryConfigError, kr as createFeishuAgentDaemon, kt as createBackgroundSessionRepository, l as createRoutedHumanInteractionToolApprovalService, li as AgentLoopFailed, ln as createFixedClock, lr as DEFAULT_CARD_STREAM_LEASE_MS, lt as requeueInterruptedBackgroundSessionStep, m as createConfiguredRivusDeploymentDaemon, mi as replayAgentTranscript, mn as createFeishuCotPublisher, mr as createFeishuWebSocketDaemon, mt as resolveFeishuDeliveryChatId, n as createConfiguredFeishuHumanInteractionPresenter, ni as createAgentDomainEventSinkFromCallback, nn as createInvocationAuthority, nr as createFeishuOpenApiClient, nt as isBackgroundSessionDue, o as createJsonlHumanInteractionRepository, oi as AgentEventHandlerFailed, on as createWorkspaceRootHandle, or as createCoalescingFeishuPublisher, ot as releaseBackgroundSessionLease, p as transitionHumanInteraction, pi as createAgentTranscriptTurn, pn as FeishuCotProtocolError, pr as isCardPresentationHandoffDue, pt as createConfiguredFeishuBackgroundSessionDelivery, q as restrictMemoryScopesForAudience, qn as createFeishuCardTargetPreparation, qr as createDefaultAgentHarnessFromCallback, qt as createFeishuPresentationPreparation, r as createFeishuHumanInteractionCard, ri as createAgentRunUpdateHandler, rn as createToolInputDigest, rr as FeishuTenantAccessTokenError, rt as isBackgroundSessionLeaseExpired, s as HumanInteractionRepositoryError, si as AgentEventSinkFailed, sn as InvalidWorkspaceRoot, sr as createFeishuCardRolloverSupervisor, st as renewBackgroundSessionLease, t as createHumanInteractionService, ti as createAgentDomainEventHandler, tn as ToolInvocationDenied, tr as createConfiguredFeishuOpenApiClient, tt as failBackgroundSessionStep, u as createHumanInteractionToolApprovalGateway, ui as AgentRunCancelled, un as createSequenceRunIds, ur as CardPresentationTransitionDenied, ut as resolveBackgroundSessionReconciliation, v as loadRivusDeployment, vi as isAssistantThinkingDeltaEvent, vn as FeishuCardTargetRegistryStoreError, vr as createFeishuEventHandlers, vt as DEFAULT_BACKGROUND_SESSION_MAX_CONCURRENT_SESSIONS, w as DeliveryOutboxError, wi as SessionSchedulerCapacityExceeded, wn as createAutomationPresentation, wr as createRivusDaemonProcess, wt as extendBackgroundSessionDefinition, x as intersectToolIds, xi as initialAgentRunState, xn as createRunPresentationProjector, xr as createRivusDaemonStatusHttpServer, xt as DEFAULT_BACKGROUND_SESSION_STEP_TIMEOUT_MS, y as createSubagentCoordinator, yi as isTerminalAgentDomainEvent, yn as createInMemoryFeishuCardTargetRegistry, yr as createFeishuCardActionCallbackResponse, yt as DEFAULT_BACKGROUND_SESSION_MAX_CONSECUTIVE_FAILURES, z as InvalidProjectSkillCatalog, zi as createPresentedValue, zn as InvalidFeishuTopicContext, zr as UnsupportedFeishuCardAction, zt as BackgroundSessionCallerDenied } from "./chunks/src.js";
3
+ import { a as RIVUS_PLUGIN_API_VERSION, c as RIVUS_MEMORY_TOOL_PLUGIN_ID, d as RIVUS_RUNTIME_TOOL_IDS, f as isRivusRuntimeToolId, i as InvalidRivusPlugin, l as RIVUS_MEMORY_TOOL_VERSION, s as RIVUS_MEMORY_TOOL_ID, u as createRivusMemoryToolContract } from "./chunks/rivus-agent-definition-resolver.js";
4
+ import { A as InvalidRivusProjectSpace, E as AgentRuntimeDisposed, F as formatRivusEnvFile, I as FeishuEndpointCredentialError, L as resolveFeishuEndpointCredentials, M as createRivusDaemonShutdownController, N as OpenClawEnvImportError, O as RivusDeploymentManifestError, P as createRivusEnvFromOpenClawConfig, R as RivusDaemonConfigError, S as AgentInstanceConflict, T as AgentInstanceBusy, a as RivusDeploymentAutomationReadinessError, i as resolveRivusProjectSpace, j as validateRivusDeploymentManifest, l as RivusDeploymentDaemonLifecycleError, n as createRivusDeploymentCliProcess, o as RivusDeploymentBackgroundSessionReadinessError, s as RivusDeploymentReadinessError, t as runRivusDaemonCli, u as RivusPluginLoadError, z as loadRivusDaemonConfig } from "./chunks/rivus-daemon-cli.js";
5
+ import { a as backgroundSessionToolIds, c as isBackgroundSessionToolId, d as createBackgroundSessionKey, f as createBackgroundSessionStepSourceMessageId, i as BACKGROUND_SESSION_TOOL_VERSION, n as BACKGROUND_SESSION_TOOL_IDS, o as createBackgroundSessionToolContracts, r as BACKGROUND_SESSION_TOOL_PLUGIN_ID, t as BACKGROUND_SESSION_START_TOOL_ID, u as BACKGROUND_SESSION_SESSION_KEY_PREFIX } from "./chunks/background-session-authority.js";
6
+ import { i as normalizeStableJson, l as RivusToolInputRejected, n as InvalidToolInput, o as InvalidInvocationAuthority, t as InvalidStableJson } from "./chunks/tool-input-digest.js";
7
+ import { a as createRivusPluginCatalog, n as assertRivusPluginConforms, o as resolveRivusAgentDefinition, r as createFakeRivusPlugin, t as RivusPluginConformanceError } from "./chunks/rivus-plugin-testkit.js";
9
8
  export { AUTOMATION_PRESENTATION_SCHEMA_VERSION, AUTOMATION_SUPPRESSION_PREFIX, AgentContextBudgetExceeded, AgentEventHandlerFailed, AgentEventLogStoreError, AgentEventSinkFailed, AgentHarnessBusy, AgentInstanceBusy, AgentInstanceConflict, AgentLoopFailed, AgentMemoryError, AgentRunCancelled, AgentRuntimeDisposed, AutomationMandateError, BACKGROUND_SESSION_DELIVERY_JSONL_VERSION, BACKGROUND_SESSION_JSONL_VERSION, BACKGROUND_SESSION_SESSION_KEY_PREFIX, BACKGROUND_SESSION_START_TOOL_ID, BACKGROUND_SESSION_TOOL_IDS, BACKGROUND_SESSION_TOOL_PLUGIN_ID, BACKGROUND_SESSION_TOOL_VERSION, BackgroundSessionCallerDenied, BackgroundSessionDeliveryConflict, BackgroundSessionRepositoryConflict, BackgroundSessionRepositoryCorrupted, BackgroundSessionTransitionDenied, CardPresentationTransitionDenied, CompactionError, DEFAULT_BACKGROUND_SESSION_LEASE_MS, DEFAULT_BACKGROUND_SESSION_LEASE_RENEWAL_INTERVAL_MS, DEFAULT_BACKGROUND_SESSION_LIFETIME_MS, DEFAULT_BACKGROUND_SESSION_MAX_CONCURRENT_SESSIONS, DEFAULT_BACKGROUND_SESSION_MAX_CONSECUTIVE_FAILURES, DEFAULT_BACKGROUND_SESSION_RETRY_BACKOFF_MS, DEFAULT_BACKGROUND_SESSION_STEP_TIMEOUT_MS, DEFAULT_BACKGROUND_SESSION_SUPERVISOR_INTERVAL_MS, DEFAULT_CARD_STREAM_LEASE_MS, DEFAULT_CONVERSATION_PROGRESS_DISPLAY, DelegationDenied, DeliveryOutboxError, FEISHU_AGENT_CARD_ELEMENT_ID, FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID, FeishuCardPresentationNotFound, FeishuCardTargetNotFound, FeishuCardTargetRegistryStoreError, FeishuCotProtocolError, FeishuEndpointCredentialError, FeishuOpenApiError, FeishuTenantAccessTokenError, HumanInteractionRepositoryError, HumanInteractionTransitionDenied, InvalidAutomationPresentation, InvalidFeishuCardAction, InvalidFeishuMessageContent, InvalidFeishuSessionReference, InvalidFeishuTopicContext, InvalidInvocationAuthority, InvalidProjectSkillCatalog, InvalidRecoveryAction, InvalidRivusEndpointBinding, InvalidRivusPlugin, InvalidRivusProjectSpace, InvalidStableJson, InvalidToolInput, InvalidWorkspaceRoot, LangfuseTelemetryConfigError, MEMORY_SCOPES, OpenClawEnvImportError, PluginStateConflict, RIVUS_MEMORY_TOOL_ID, RIVUS_MEMORY_TOOL_PLUGIN_ID, RIVUS_MEMORY_TOOL_VERSION, RIVUS_PLUGIN_API_VERSION, RIVUS_RUNTIME_TOOL_IDS, RUN_PRESENTATION_SCHEMA_VERSION, RivusDaemonConfigError, RivusDeploymentAutomationReadinessError, RivusDeploymentBackgroundSessionReadinessError, RivusDeploymentDaemonLifecycleError, RivusDeploymentManifestError, RivusDeploymentReadinessError, RivusPluginConformanceError, RivusPluginLoadError, RivusToolInputRejected, SessionSchedulerCapacityExceeded, SessionSchedulerDisposed, ToolInvocationDenied, UnsupportedFeishuCardAction, UnsupportedFeishuMessage, WorkspaceInstructionsSourceError, acceptsCardPresentationProgress, activeCardPresentation, appendBackgroundSessionInput, assembleAgentContext, assertRivusPluginConforms, backgroundSessionToolIds, claimBackgroundSession, commitAutomationOutcome, completeBackgroundSessionStep, completeBackgroundSessionStop, composeFeishuTopicPrompt, createAgentCommandFromFeishuCardAction, createAgentCommandFromFeishuMessage, createAgentConversationMessages, createAgentDomainEventHandler, createAgentDomainEventSink, createAgentDomainEventSinkFromCallback, createAgentHarness, createAgentHarnessClient, createAgentHarnessPooledRuntime, createAgentInstanceRegistry, createAgentLoopFromCallback, createAgentLoopModelExecutionEnd, createAgentLoopModelExecutionStart, createAgentLoopPromptTransformer, createAgentLoopSkillExecutionEnd, createAgentLoopSkillExecutionStart, createAgentLoopTextDelta, createAgentLoopThinkingDelta, createAgentLoopToolExecutionEnd, createAgentLoopToolExecutionStart, createAgentLoopToolExecutionUpdate, createAgentLoopTurnStart, createAgentMemoryService, createAgentRunUpdateHandler, createAgentRuntime, createAgentRuntimePool, createAgentTranscriptMessages, createAgentTranscriptTurn, createAgentsMdInstructionsProvider, createAsyncIterableAgentLoop, createAutomationMandateStore, createAutomationPresentation, createBackgroundSession, createBackgroundSessionCard, createBackgroundSessionDeliveryStore, createBackgroundSessionHostTools, createBackgroundSessionKey, createBackgroundSessionRepository, createBackgroundSessionService, createBackgroundSessionStepSourceMessageId, createBackgroundSessionSupervisor, createBackgroundSessionToolContracts, createCoalescingFeishuPublisher, createCompactionService, createCompositeRivusDaemonTransport, createConfiguredFeishuAutomationCardSender, createConfiguredFeishuBackgroundSessionDelivery, createConfiguredFeishuCardKitPublisher, createConfiguredFeishuCardKitTargetCreator, createConfiguredFeishuCardRolloverRuntime, createConfiguredFeishuHumanInteractionPresenter, createConfiguredFeishuMessageReactionSender, createConfiguredFeishuOpenApiClient, createConfiguredFeishuTextReplySender, createConfiguredRivusDaemonBootstrap, createConfiguredRivusDeploymentDaemon, createDailyAutomationSchedule, createDefaultAgentHarness, createDefaultAgentHarnessClient, createDefaultAgentHarnessClientFromCallback, createDefaultAgentHarnessClientFromTextCallback, createDefaultAgentHarnessFromCallback, createDefaultAgentHarnessFromTextCallback, createDefaultAgentRuntime, createDefaultAgentRuntimeFromCallback, createDefaultAgentRuntimeFromTextCallback, createDelegationService, createDeliveryOutbox, createEventAgentLoop, createFakeRivusPlugin, createFeishuAgentDaemon, createFeishuAgentRunCard, createFeishuAgentRuntime, createFeishuCardActionCallbackResponse, createFeishuCardActionErrorResponse, createFeishuCardDeliveryLedger, createFeishuCardDeliveryReconciler, createFeishuCardKitOpenApiClient, createFeishuCardKitOpenApiTargetCreator, createFeishuCardKitPublisher, createFeishuCardPresentationStore, createFeishuCardRollover, createFeishuCardRolloverSupervisor, createFeishuCardTargetPreparation, createFeishuConversationId, createFeishuCotPublisher, createFeishuDeploymentEndpoint, createFeishuEventHandlers, createFeishuHumanInteractionCard, createFeishuHumanInteractionPresenter, createFeishuInboxRepository, createFeishuMessageQueue, createFeishuMessageWorker, createFeishuOpenApiClient, createFeishuPeriodicFlush, createFeishuPresentationPreparation, createFeishuSessionKey, createFeishuSessionStore, createFeishuStreamProjector, createFeishuTenantAccessTokenProvider, createFeishuTopicContextResolver, createFeishuWebSocketDaemon, createFeishuWorkerLoop, createFixedClock, createHumanInteractionEndpointRegistry, createHumanInteractionService, createHumanInteractionToolApprovalGateway, createInMemoryFeishuCardTargetRegistry, createInMemoryHumanInteractionRepository, createInvocationAuthority, createJsonFetchRequest, createJsonFileFeishuCardTargetRegistry, createJsonlAgentEventLog, createJsonlHumanInteractionRepository, createLangfuseAgentTelemetry, createLazyFeishuWebSocketEventDispatcher, createMemoryNamespace, createOpenTelemetryAgentEventSink, createOpenTelemetryAgentTelemetry, createPiAgentLoop, createPiSdkAgentLoop, createPiSessionRegistry, createPluginStateStore, createPresentedValue, createProjectMemoryPromptPreparer, createRateLimitedFeishuPublisher, createRecoveryAction, createRecoveryControl, createRivusAgentHost, createRivusDaemonProcess, createRivusDaemonShutdownController, createRivusDaemonStatusHttpServer, createRivusDaemonStatusReporter, createRivusDeploymentCliProcess, createRivusDeploymentDaemon, createRivusEnvFromOpenClawConfig, createRivusMemoryTool, createRivusMemoryToolContract, createRivusMemoryToolDescriptor, createRivusPluginCatalog, createRoutedHumanInteractionToolApprovalService, createRunPresentationProjector, createScheduledAutomation, createSequenceRunIds, createSessionScheduler, createSubagentCoordinator, createSystemClock, createTelemetryContentRedactor, createTestClock, createTextAgentLoop, createTextAgentLoopFromCallback, createToolBroker, createToolInputDigest, createToolOperationLedger, createUuidRunIds, createWorkspaceRootHandle, describeFeishuMessageIntake, evolveAgentRun, extendBackgroundSessionDefinition, failBackgroundSessionStep, formatRivusEnvFile, hasInspectableRunProgress, initialAgentRunState, intersectToolIds, isAgentToolExecutionEvent, isAssistantTextDeltaEvent, isAssistantThinkingDeltaEvent, isBackgroundSessionDue, isBackgroundSessionLeaseExpired, isBackgroundSessionState, isBackgroundSessionTerminalPhase, isBackgroundSessionToolId, isCardPresentationHandoffDue, isRivusRuntimeToolId, isTerminalAgentDomainEvent, isTerminalAgentRunPhase, loadNodeRivusPluginModule, loadRivusDaemonConfig, loadRivusDeployment, loadRivusDeploymentManifest, mergePiProviderBaseUrlOverride, narrowBackgroundSessionDefinition, normalizeStableJson, openJsonAutomationTickRepository, openJsonFeishuSessionStore, openJsonlAgentMemoryService, openJsonlBackgroundSessionDeliveryStore, openJsonlBackgroundSessionRepository, openJsonlFeishuCardDeliveryLedger, openJsonlFeishuInboxRepository, openJsonlRecoveryControl, openJsonlToolOperationLedger, parkBackgroundSessionForReconciliation, progressDeliveryId, readAutomationPresentation, readFeishuMessageContent, releaseBackgroundSessionLease, renewBackgroundSessionLease, replayAgentHistory, replayAgentTranscript, requestBackgroundSessionStop, requeueInterruptedBackgroundSessionStep, requiresToolApproval, resolveBackgroundSessionReconciliation, resolveBackgroundSessionSupervisorIntervalMs, resolveFeishuDeliveryChatId, resolveFeishuEndpointCredentials, resolveLangfuseTelemetryConfig, resolveRivusAgentDefinition, resolveRivusProjectSpace, restoreAgentHistory, restoreConfiguredRivusDaemonBootstrap, restrictMemoryScopesForAudience, runRivusDaemonCli, sessionIdFromSessionKey, shouldAcceptFeishuEndpointMessage, suspendBackgroundSession, terminalDeliveryId, transitionHumanInteraction, validateProjectSkillCatalog, validateProjectSkillCommand, validateRivusDeploymentManifest };
package/dist/mcp.d.ts CHANGED
@@ -1,7 +1,39 @@
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";
1
+ import { A as BackgroundSessionAuthority, r as BackgroundSessionService } from "./chunks/background-session-service.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/bootstrap/mcp/rivus-mcp-entrypoint.d.ts
5
+ interface RunBackgroundSessionMcpServerEnv {
6
+ readonly fetch?: typeof fetch;
7
+ readonly input?: Readable;
8
+ readonly output?: Writable;
9
+ }
10
+ declare function runBackgroundSessionMcpServer(options?: RunBackgroundSessionMcpServerEnv): Promise<void>;
11
+ //#endregion
12
+ //#region src/core/application/background-session/control/background-session-control.d.ts
13
+ type BackgroundSessionControlCommand = "start" | "wait" | "list" | "status" | "send" | "stop";
14
+ interface BackgroundSessionControlOrigin {
15
+ readonly allowedActorOpenIds: ReadonlyArray<string>;
16
+ readonly conversationId?: string;
17
+ readonly endpointId: string;
18
+ readonly tenantKey: string;
19
+ }
20
+ interface BackgroundSessionControlContext {
21
+ readonly agentId: string;
22
+ readonly authority: BackgroundSessionAuthority;
23
+ readonly origin: BackgroundSessionControlOrigin;
24
+ readonly policyEpoch: number;
25
+ readonly runId: string;
26
+ readonly sessionKey: string;
27
+ readonly sourceMessageId: string;
28
+ }
29
+ interface BackgroundSessionControl {
30
+ handle(command: BackgroundSessionControlCommand, context: BackgroundSessionControlContext, input: unknown): Promise<unknown>;
31
+ }
32
+ declare class BackgroundSessionControlError extends Error {
33
+ readonly name = "BackgroundSessionControlError";
34
+ }
35
+ //#endregion
36
+ //#region src/adapters/mcp/background-session/background-session-mcp-server.d.ts
5
37
  declare const BACKGROUND_SESSION_MCP_SERVER_NAME = "rivus-background-sessions";
6
38
  declare const BACKGROUND_SESSION_MCP_SERVER_VERSION = "1.0.0";
7
39
  interface BackgroundSessionMcpServerOptions {
@@ -22,14 +54,21 @@ declare class BackgroundSessionMcpError extends Error {
22
54
  readonly name = "BackgroundSessionMcpError";
23
55
  }
24
56
  declare function createBackgroundSessionMcpServer(options: BackgroundSessionMcpServerOptions): BackgroundSessionMcpServer;
25
- interface RunBackgroundSessionMcpServerEnv {
26
- readonly fetch?: typeof fetch;
27
- readonly input?: Readable;
28
- readonly output?: Writable;
29
- }
30
- declare function runBackgroundSessionMcpServer(options?: RunBackgroundSessionMcpServerEnv): Promise<void>;
31
57
  //#endregion
32
- //#region src/adapters/http/background-session-control-http-server.d.ts
58
+ //#region src/adapters/compatibility/background-session/control.d.ts
59
+ declare function createBackgroundSessionControl(options: {
60
+ readonly service: BackgroundSessionService;
61
+ }): BackgroundSessionControl;
62
+ declare function toControlContext(input: {
63
+ readonly agentId: string;
64
+ readonly authority: BackgroundSessionAuthority;
65
+ readonly origin: BackgroundSessionControlOrigin;
66
+ readonly policyEpoch: number;
67
+ readonly sessionKey: string;
68
+ readonly sourceMessageId?: string;
69
+ }): BackgroundSessionControlContext;
70
+ //#endregion
71
+ //#region src/adapters/http/background-session/background-session-control-http-server.d.ts
33
72
  interface BackgroundSessionControlHttpServerOptions {
34
73
  readonly control: BackgroundSessionControl;
35
74
  readonly host?: string;
package/dist/mcp.js CHANGED
@@ -1,8 +1,9 @@
1
- import { F as createBackgroundSessionControl, I as toControlContext, P as BackgroundSessionControlError, q as createBackgroundSessionToolContracts } from "./chunks/api2.js";
1
+ import { a as readBackgroundSessionWaitInput, i as readBackgroundSessionString, n as readBackgroundSessionObject, o as createRandomId, r as readBackgroundSessionPhase, t as readBackgroundSessionInteger } from "./chunks/background-session-control-input.js";
2
+ import { d as createBackgroundSessionKey, o as createBackgroundSessionToolContracts } from "./chunks/background-session-authority.js";
2
3
  import { randomUUID } from "node:crypto";
3
4
  import { createServer } from "node:http";
4
5
  import { pathToFileURL } from "node:url";
5
- //#region src/adapters/mcp/background-session-mcp-server.ts
6
+ //#region src/adapters/mcp/background-session/background-session-mcp-server.ts
6
7
  const BACKGROUND_SESSION_MCP_SERVER_NAME = "rivus-background-sessions";
7
8
  const BACKGROUND_SESSION_MCP_SERVER_VERSION = "1.0.0";
8
9
  var BackgroundSessionMcpError = class extends Error {
@@ -40,21 +41,6 @@ function createBackgroundSessionMcpServer(options) {
40
41
  tools
41
42
  }) };
42
43
  }
43
- async function runBackgroundSessionMcpServer(options = {}) {
44
- const controlUrl = requireEnv("RIVUS_MCP_CONTROL_URL");
45
- const controlToken = requireEnv("RIVUS_MCP_CONTROL_TOKEN");
46
- const capability = requireEnv("RIVUS_MCP_CAPABILITY");
47
- const enabledTools = optionalEnv("RIVUS_MCP_TOOLS")?.split(",").map((tool) => tool.trim()).filter(Boolean);
48
- await createBackgroundSessionMcpServer({
49
- capability,
50
- controlToken,
51
- controlUrl,
52
- ...enabledTools ? { enabledTools } : {},
53
- ...options.fetch ? { fetch: options.fetch } : {},
54
- ...options.input ? { input: options.input } : {},
55
- ...options.output ? { output: options.output } : {}
56
- }).run();
57
- }
58
44
  async function runMcpServer(options) {
59
45
  const send = (message) => {
60
46
  const body = JSON.stringify(message);
@@ -189,6 +175,26 @@ function parseMcpMessage(payload) {
189
175
  function isJsonRpcRequestId(value) {
190
176
  return value === null || typeof value === "string" || typeof value === "number";
191
177
  }
178
+ function isRecord(value) {
179
+ return value !== null && typeof value === "object" && !Array.isArray(value);
180
+ }
181
+ //#endregion
182
+ //#region src/bootstrap/mcp/rivus-mcp-entrypoint.ts
183
+ async function runBackgroundSessionMcpServer(options = {}) {
184
+ const controlUrl = requireEnv("RIVUS_MCP_CONTROL_URL");
185
+ const controlToken = requireEnv("RIVUS_MCP_CONTROL_TOKEN");
186
+ const capability = requireEnv("RIVUS_MCP_CAPABILITY");
187
+ const enabledTools = optionalEnv("RIVUS_MCP_TOOLS")?.split(",").map((tool) => tool.trim()).filter(Boolean);
188
+ await createBackgroundSessionMcpServer({
189
+ capability,
190
+ controlToken,
191
+ controlUrl,
192
+ ...enabledTools ? { enabledTools } : {},
193
+ ...options.fetch ? { fetch: options.fetch } : {},
194
+ ...options.input ? { input: options.input } : {},
195
+ ...options.output ? { output: options.output } : {}
196
+ }).run();
197
+ }
192
198
  function requireEnv(name) {
193
199
  const value = process.env[name]?.trim();
194
200
  if (!value) throw new BackgroundSessionMcpError(`${name} is required`);
@@ -197,11 +203,131 @@ function requireEnv(name) {
197
203
  function optionalEnv(name) {
198
204
  return process.env[name]?.trim() || void 0;
199
205
  }
200
- function isRecord(value) {
201
- return value !== null && typeof value === "object" && !Array.isArray(value);
206
+ //#endregion
207
+ //#region src/core/application/background-session/control/background-session-control.ts
208
+ function createBackgroundSessionControl$1(options) {
209
+ return { handle: async (command, context, input) => {
210
+ const executionContext = {
211
+ agentId: context.agentId,
212
+ callId: `mcp-call:${options.createId()}`,
213
+ instanceId: `mcp:${context.agentId}`,
214
+ policyEpoch: context.policyEpoch,
215
+ runId: context.runId,
216
+ sessionKey: context.sessionKey,
217
+ sourceMessageId: context.sourceMessageId,
218
+ toolId: `background.${command}`,
219
+ toolVersion: "1.0.0",
220
+ origin: toToolOrigin(context.origin)
221
+ };
222
+ switch (command) {
223
+ case "start": {
224
+ const { displayName, prompt } = readObject(input, ["displayName", "prompt"]);
225
+ if (typeof prompt !== "string" || prompt.trim() === "") throw new BackgroundSessionControlError("background.start requires a non-empty prompt");
226
+ const sessionId = `bg-${options.createId()}`;
227
+ return options.service.start({
228
+ authority: {
229
+ ...context.authority,
230
+ sessionKey: createBackgroundSessionKey(sessionId)
231
+ },
232
+ context: executionContext,
233
+ ...displayName === void 0 ? {} : { displayName: readString(displayName, "displayName") },
234
+ prompt,
235
+ sessionId
236
+ });
237
+ }
238
+ case "wait": return options.service.wait({
239
+ context: executionContext,
240
+ ...readBackgroundSessionWaitInput(input, (message) => new BackgroundSessionControlError(message))
241
+ });
242
+ case "list": {
243
+ const { limit, phase } = readObject(input, ["limit", "phase"]);
244
+ return options.service.list({
245
+ context: executionContext,
246
+ ...limit === void 0 ? {} : { limit: readInteger(limit, "limit") },
247
+ ...phase === void 0 ? {} : { phase: readPhase(phase) }
248
+ });
249
+ }
250
+ case "status": {
251
+ const { sessionId } = readObject(input, ["sessionId"]);
252
+ return options.service.status({
253
+ context: executionContext,
254
+ sessionId: readString(sessionId, "sessionId")
255
+ });
256
+ }
257
+ case "send": {
258
+ const { message, sessionId } = readObject(input, ["message", "sessionId"]);
259
+ return options.service.send({
260
+ context: executionContext,
261
+ message: readString(message, "message"),
262
+ sessionId: readString(sessionId, "sessionId")
263
+ });
264
+ }
265
+ case "stop": {
266
+ const { reason, sessionId } = readObject(input, ["reason", "sessionId"]);
267
+ return options.service.stop({
268
+ context: executionContext,
269
+ ...reason === void 0 ? {} : { reason: readString(reason, "reason") },
270
+ sessionId: readString(sessionId, "sessionId")
271
+ });
272
+ }
273
+ }
274
+ } };
275
+ }
276
+ var BackgroundSessionControlError = class extends Error {
277
+ name = "BackgroundSessionControlError";
278
+ };
279
+ function toControlContext$1(input) {
280
+ return {
281
+ agentId: input.agentId,
282
+ authority: input.authority,
283
+ origin: {
284
+ allowedActorOpenIds: input.origin.allowedActorOpenIds,
285
+ ...input.origin.conversationId === void 0 ? {} : { conversationId: input.origin.conversationId },
286
+ endpointId: input.origin.endpointId,
287
+ tenantKey: input.origin.tenantKey
288
+ },
289
+ policyEpoch: input.policyEpoch,
290
+ runId: `mcp:${input.createId()}`,
291
+ sessionKey: input.sessionKey,
292
+ sourceMessageId: input.sourceMessageId ?? `mcp:${input.createId()}`
293
+ };
294
+ }
295
+ function toToolOrigin(origin) {
296
+ return {
297
+ allowedActorOpenIds: origin.allowedActorOpenIds,
298
+ endpointId: origin.endpointId,
299
+ tenantKey: origin.tenantKey,
300
+ ...origin.conversationId === void 0 ? {} : { conversationId: origin.conversationId }
301
+ };
302
+ }
303
+ function readObject(input, allowed) {
304
+ return readBackgroundSessionObject(input, allowed, (message) => new BackgroundSessionControlError(message));
305
+ }
306
+ function readString(value, name) {
307
+ return readBackgroundSessionString(value, name, (message) => new BackgroundSessionControlError(message));
308
+ }
309
+ function readInteger(value, name) {
310
+ return readBackgroundSessionInteger(value, name, (message) => new BackgroundSessionControlError(message));
311
+ }
312
+ function readPhase(value) {
313
+ return readBackgroundSessionPhase(value, (message) => new BackgroundSessionControlError(message));
314
+ }
315
+ //#endregion
316
+ //#region src/adapters/compatibility/background-session/control.ts
317
+ function createBackgroundSessionControl(options) {
318
+ return createBackgroundSessionControl$1({
319
+ createId: createRandomId,
320
+ service: options.service
321
+ });
322
+ }
323
+ function toControlContext(input) {
324
+ return toControlContext$1({
325
+ ...input,
326
+ createId: createRandomId
327
+ });
202
328
  }
203
329
  //#endregion
204
- //#region src/adapters/http/background-session-control-http-server.ts
330
+ //#region src/adapters/http/background-session/background-session-control-http-server.ts
205
331
  var BackgroundSessionControlHttpError = class extends Error {
206
332
  statusCode;
207
333
  name = "BackgroundSessionControlHttpError";
package/dist/pi.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { a as AgentLoopInput } from "./chunks/agent-loop.js";
2
- import { d as MemoryScope } from "./chunks/api.js";
3
- import { Q as RivusResolvedToolDescriptor, ft as RivusRuntimeToolId, rt as RivusToolGrantSet, st as RegisteredRivusSkill } from "./chunks/api2.js";
4
- import { a as PiToolResult, i as PiToolDefinition, n as PiToolApprovalRequest, r as PiToolContent, t as PiToolApprovalGateway, u as ToolExecutionRequest } from "./chunks/pi-tool-proxy.js";
2
+ import { a as RivusRuntimeToolId, d as RivusResolvedToolDescriptor, g as RivusToolGrantSet, t as RegisteredRivusSkill, u as RivusMemoryScope } from "./chunks/rivus-skill.js";
3
+ import { a as PiToolResult, c as ToolExecutionRequest, i as PiToolDefinition, n as PiToolApprovalRequest, r as PiToolContent, t as PiToolApprovalGateway } from "./chunks/pi-tool-proxy.js";
5
4
 
6
5
  //#region src/adapters/pi/skills/pi-skill-read-tool.d.ts
7
6
  declare class ProjectSkillReadDenied extends Error {
@@ -99,7 +98,7 @@ interface PiToolProxyOptions {
99
98
  readonly broker: ToolBroker;
100
99
  readonly approvals: PiToolApprovalGateway;
101
100
  readonly getActiveInput: () => AgentLoopInput | undefined;
102
- readonly memoryScopes?: ReadonlyArray<MemoryScope>;
101
+ readonly memoryScopes?: ReadonlyArray<RivusMemoryScope>;
103
102
  }
104
103
  declare function createPiToolProxyDefinitions(options: PiToolProxyOptions): PiToolDefinition[];
105
104
  declare function createPiToolNameResolver(tools: ReadonlyArray<Pick<RivusResolvedToolDescriptor, "id">>): (toolName: string) => string;
package/dist/pi.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as createPiSkillRuntime } from "./chunks/pi-skill-tool.js";
1
+ import { d as createPiSkillRuntime } from "./chunks/tool-input-digest.js";
2
2
  import { a as InvalidPiSkillSource, c as validatePiSkillCatalog, d as createPiProjectSkillReadTool, f as createPiSkillReadTool, i as resolvePiSessionToolNames, l as validatePiSkillCommand, n as createPiToolProxyDefinitions, o as resolvePiSkillSources, p as createPiSkillReadTools, r as createPiSessionResources, s as InvalidPiSkillCatalog, t as createPiToolNameResolver, u as ProjectSkillReadDenied } from "./chunks/pi.js";
3
3
  export { InvalidPiSkillCatalog, InvalidPiSkillSource, ProjectSkillReadDenied, createPiProjectSkillReadTool, createPiSessionResources, createPiSkillReadTool, createPiSkillReadTools, createPiSkillRuntime, createPiToolNameResolver, createPiToolProxyDefinitions, resolvePiSessionToolNames, resolvePiSkillSources, validatePiSkillCatalog, validatePiSkillCommand };