@rivus/agent 0.16.2 → 0.16.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -1
- package/README.md +3 -1079
- package/dist/acp.d.ts +1 -143
- package/dist/acp.js +1 -767
- package/dist/bootstrap/pi-feishu.d.ts +1 -19
- package/dist/bootstrap/pi-feishu.js +1 -4340
- package/dist/chunks/rivus-plugin-testkit.d.ts +2 -189
- package/dist/chunks/rivus-plugin-testkit.js +4 -19
- package/dist/cli.js +12 -1234
- package/dist/index.d.ts +12 -7
- package/dist/index.js +4 -7
- package/dist/mcp.d.ts +1 -91
- package/dist/mcp.js +2 -450
- package/dist/pi.d.ts +1 -128
- package/dist/pi.js +1 -2
- package/dist/testing/index.d.ts +1 -1
- package/examples/pi-feishu-deployment.bootstrap.ts +3 -894
- package/package.json +50 -87
- package/dist/chunks/agent-loop.d.ts +0 -446
- package/dist/chunks/agent-loop.js +0 -158
- package/dist/chunks/background-session-authority.js +0 -230
- package/dist/chunks/background-session-control-input.js +0 -51
- package/dist/chunks/background-session-service.d.ts +0 -382
- package/dist/chunks/index.d.ts +0 -4448
- package/dist/chunks/pi-tool-proxy.d.ts +0 -120
- package/dist/chunks/pi.js +0 -406
- package/dist/chunks/rivus-agent-definition-resolver.js +0 -508
- package/dist/chunks/rivus-daemon-cli.js +0 -3839
- package/dist/chunks/rivus-model-management-wire.js +0 -344
- package/dist/chunks/rivus-skill.d.ts +0 -95
- package/dist/chunks/rivus-tool.js +0 -158
- package/dist/chunks/sha256-digest.js +0 -7
- package/dist/chunks/src.js +0 -15313
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { $ as UserDecisionInteraction, $a as AgentModelOutputObservation, $c as CardPresentation, $d as FeishuAgentExecutionResult, $f as FeishuStreamAction, $i as createRateLimitedFeishuPublisher, $l as AgentRuntime, $n as DEFAULT_BACKGROUND_SESSION_STEP_TIMEOUT_MS, $o as AgentEventLogStoreError, $r as RivusEndpointDefinition, $s as createBackgroundSessionToolContracts, $t as ScheduledAutomationClock, $u as AgentRuntimeSteering, A as createHumanInteractionService, Aa as PiAgentSession, Ac as RivusDaemonShutdownController, Ad as FeishuInboxLeasedState, Af as UnsupportedFeishuMessage, Ai as InvalidWorkspaceRoot, Al as FeishuMessagePreparedControl, An as createProjectMemoryPromptPreparer, Ao as JsonFileFeishuCardTargetRegistryOptions, Ap as AgentRunUpdateListener, Ar as renewBackgroundSessionLease, As as RivusDeploymentBootstrapAdapters, At as DelegationEdge, Au as AgentDomainEventSinkCallback, B as HumanInteractionBase, Ba as createOpenTelemetryAgentTelemetry, Bc as RivusDaemonStatusReporterOptions, Bd as ToolOperationRecoveryItem, Bf as createFeishuConversationId, Bi as createFixedClock, Bl as RivusEnvFileVariables, Bn as restrictMemoryScopesForAudience, Bo as FeishuCardKitTextUpdate, Bp as AgentEventSinkFailed, Br as AgentMemoryService, Bs as RivusDeploymentBackgroundSessionStatus, Bt as createPluginStateStore, Bu as JsonHttpRequest, C as HumanInteractionEndpointRegistry, Ca as PiSessionRegistry, Cc as ScheduledAutomationRunResult, Cd as ToolOperationRecord, Cf as FeishuNewSessionMessageIntakeSummary, Ci as requiresToolApproval, Cl as FeishuReceiveMessageReplayOptions, Cn as resolveRivusProjectSpace, Co as FeishuCardRolloverSupervisor, Cp as AgentHarnessBusyAvailability, Cr as createBackgroundSession, Cs as RivusDaemonBootstrapModule, Ct as createSubagentCoordinator, Cu as AgentClientFailure, D as HumanInteractionService, Da as PiAgentSessionHandle, Dc as AutomationMandateError, Dd as FeishuInboxDeadState, Df as describeFeishuMessageIntake, Di as WorkspaceInstructionsProvider, Dl as FeishuEndpointGroupPolicy, Dn as ProjectMemoryPromptInput, Do as FeishuCardTargetRegistry, Dp as AgentRunSnapshot, Dr as isBackgroundSessionTerminalPhase, Ds as RivusDaemonPromptRunner, Dt as createDelegationService, Du as AgentTextDeltaCallback, E as HumanInteractionClock, Ea as PiAgentLoopOptions, Ec as AutomationMandate, Ed as FeishuInboxCompletedState, Ef as createAgentCommandFromFeishuMessage, Ei as normalizeStableJson, El as FeishuReceiveRuntimeStatus, En as createAgentLoopPromptTransformer, Eo as FeishuCardTargetNotFound, Ep as AgentPromptResult, Er as isBackgroundSessionLeaseExpired, Es as RivusDaemonFeishuReplayRunner, Et as DelegationService, Eu as AgentSessionClient, F as ApprovedHumanInteractionState, Fa as initialAgentRunState, Fc as RivusDaemonStatusHttpServer, Fd as DeadLetterRecoveryItem, Ff as FeishuSessionStoreOptions, Fi as WorkspaceInstructionsRequest, Fl as MergePiProviderBaseUrlOverrideOptions, Fn as MemoryTombstoneReceipt, Fo as FeishuCardKitFail, Fp as AgentSessionOwnedBusyAvailability, Fr as AgentMemoryServiceOptions, Fs as RivusDeploymentAutomationLifecycle, Ft as DeliveryOutbox, Fu as AgentHarnessOptions, G as PendingHumanInteractionState, Ga as LangfuseTelemetryConfig, Gc as FeishuCardRolloverEventType, Gd as FeishuAgentDaemonHandleResult, Gf as openJsonlFeishuCardDeliveryLedger, Gi as createFeishuPeriodicFlush, Gl as resolveFeishuEndpointCredentials, Gn as createConfiguredFeishuBackgroundSessionDelivery, Go as FeishuWebSocketDaemon, Gp as DEFAULT_CONVERSATION_PROGRESS_DISPLAY, Gr as MemoryRecord, Gs as RivusDeploymentReadinessError, Gt as PluginStateRecord, Gu as SessionSchedulerDisposed, H as HumanInteractionId, Ha as TelemetryContentRedactorOptions, Hc as FeishuCardRollover, Hd as FeishuAgentDaemon, Hf as FeishuReceiveMessagePayload, Hi as createTestClock, Hl as formatRivusEnvFile, Hn as FeishuBackgroundSessionDeliveryInput, Ho as createFeishuCardKitPublisher, Hp as AgentLoopFailed, Hr as MEMORY_SCOPES, Hs as RivusDeploymentDaemonStatus, Ht as CommittedAutomationOutcome, Hu as createJsonFetchRequest, I as CancelledHumanInteractionState, Ia as isTerminalAgentRunPhase, Ic as RivusDaemonStatusHttpServerOptions, Id as DeadLetterRequeueResult, If as createFeishuSessionStore, Ii as WorkspaceInstructionsView, Il as mergePiProviderBaseUrlOverride, In as RivusMemoryTool, Io as FeishuCardKitFinish, Ip as AgentSessionSnapshot, Ir as createAgentMemoryService, Is as RivusDeploymentAutomationReadinessError, It as DeliveryOutboxError, Iu as createAgentHarness, J as RequestUserDecisionInput, Ja as LangfuseTelemetryEnv, Jc as FeishuCardRolloverStatus, Jd as FeishuAgentDaemonRunResult, Jf as FeishuCardDeliveryReconciler, Ji as FeishuCoalescingPublisher, Jl as RivusDaemonConfigLoaderOptions, Jn as DEFAULT_BACKGROUND_SESSION_LEASE_RENEWAL_INTERVAL_MS, Jo as FeishuWebSocketRuntime, Jr as MemoryState, Js as BACKGROUND_SESSION_START_TOOL_ID, Jt as openJsonAutomationTickRepository, Ju as createSessionScheduler, K as RejectedHumanInteractionState, Ka as LangfuseTelemetryConfigError, Kc as FeishuCardRolloverHandoffResult, Kd as FeishuAgentDaemonInteractionResult, Kf as FeishuCardDeliveryLedger, Ki as ConfiguredFeishuCardKitPublisherOptions, Kl as RivusDaemonConfig, Kn as resolveFeishuDeliveryChatId, Ko as FeishuWebSocketDaemonOptions, Kr as MemoryScope, Ks as RivusDeploymentComponentLifecycle, Kt as PutPluginState, Ku as SessionSchedulerOptions, L as ExpiredHumanInteractionState, La as OpenTelemetryAgentEventSinkOptions, Lc as createRivusDaemonStatusHttpServer, Ld as RecoveryAction, Lf as FeishuConversationReference, Li as WorkspaceRootHandle, Ll as OpenClawEnvImportError, Ln as createRivusMemoryTool, Lo as FeishuCardKitPresentationUpdate, Lp as PromptCommand, Lr as AgentMemoryAuthority, Ls as RivusDeploymentAutomationStatus, Lt as createDeliveryOutbox, Lu as FetchLike, M as HumanInteractionPresenter, Ma as PiCreateAgentSessionResult, Mc as RivusDaemonShutdownSignal, Md as FeishuInboxRepository, Mf as FeishuSessionEpochRecord, Mi as WorkspaceInstructionSource, Ml as FeishuMessageQueueOptions, Mn as RIVUS_MEMORY_TOOL_PLUGIN_ID, Mo as createJsonFileFeishuCardTargetRegistry, Mp as AgentSessionBusyAvailability, Mr as requeueInterruptedBackgroundSessionStep, Ms as RivusDeploymentBootstrapFactory, Mt as DelegationRequest, Mu as createAgentDomainEventHandler, N as HumanInteractionTransitionDenied, Na as PiSdkAgentLoopOptions, Nc as RivusDaemonSignalSource, Nd as FeishuInboxRepositoryStateOptions, Nf as FeishuSessionResetResult, Ni as WorkspaceInstructionsDiagnostic, Nl as createFeishuMessageQueue, Nn as RIVUS_MEMORY_TOOL_VERSION, No as FeishuCardKitCancel, Np as AgentSessionHandle, Nr as resolveBackgroundSessionReconciliation, Ns as RivusDeploymentCliProcess, Nt as CommitAutomationOutcomeInput, Nu as createAgentDomainEventSinkFromCallback, O as HumanInteractionServiceOptions, Oa as createPiAgentLoop, Oc as AutomationMandateStore, Od as FeishuInboxDelivery, Of as FeishuMessageContentInput, Oi as createAgentsMdInstructionsProvider, Ol as shouldAcceptFeishuEndpointMessage, On as ProjectMemoryRecallIdentity, Oo as FeishuCardTargetRegistryOperation, Op as AgentRunUpdate, Or as parkBackgroundSessionForReconciliation, Os as RivusDaemonRecoveryRunner, Ot as intersectToolIds, Ou as createAgentHarnessClient, P as transitionHumanInteraction, Pa as evolveAgentRun, Pc as createRivusDaemonShutdownController, Pd as createFeishuInboxRepository, Pf as FeishuSessionStore, Pi as WorkspaceInstructionsDiagnosticCode, Pl as FeishuMessageAcceptResult, Pn as createRivusMemoryToolContract, Po as FeishuCardKitClient, Pp as AgentSessionOtherBusyAvailability, Pr as suspendBackgroundSession, Ps as createRivusDeploymentCliProcess, Pt as commitAutomationOutcome, Pu as createAgentRunUpdateHandler, Q as ToolApprovalInteractionState, Qa as AgentModelInputObservation, Qc as FeishuCardPresentationStore, Qd as FeishuAgentExecution, Qf as createFeishuCardDeliveryReconciler, Qi as RateLimitedFeishuPublisherOptions, Ql as loadRivusDaemonConfig, Qn as DEFAULT_BACKGROUND_SESSION_RETRY_BACKOFF_MS, Qo as AgentEventLogOperation, Qr as RivusAgentHostOptions, Qs as backgroundSessionToolIds, Qt as ScheduledAutomation, Qu as AgentRuntimePoolOptions, R as HumanInteraction, Ra as OpenTelemetryAgentTelemetry, Rc as RivusDaemonStatus, Rd as RecoveryControl, Rf as FeishuSessionReference, Ri as createRivusPluginCatalog, Rl as OpenClawEnvImportOptions, Rn as createRivusMemoryToolDescriptor, Ro as FeishuCardKitPublisher, Rp as RunIdGenerator, Rr as AgentMemoryHandle, Rs as RivusDeploymentBackgroundSessionLifecycle, Rt as PluginStateConflict, Ru as FetchLikeResponse, S as createHumanInteractionToolApprovalGateway, Sa as createRunPresentationProjector, Sc as ScheduledAutomationRunInput, Sd as ToolOperationReconciliationOutcome, Sf as FeishuNewSessionCommand, Si as createToolInputDigest, Sl as FeishuReceiveHandledObservation, Sn as validateProjectSkillCommand, So as createFeishuTenantAccessTokenProvider, Sp as AgentHarnessAvailability, Sr as completeBackgroundSessionStop, Ss as RivusDaemonBootstrapFactory, St as SubagentCoordinator, Su as AgentClientAttempt, T as ConsumeToolApprovalInput, Ta as createPiSessionRegistry, Tc as AutomationDeliveryBinding, Td as createToolOperationLedger, Tf as FeishuPromptMessageIntakeSummary, Ti as InvalidToolInput, Tl as FeishuReceiveMessageSummary, Tn as validateRivusDeploymentManifest, To as createFeishuCardRolloverSupervisor, Tp as AgentHarnessIdleAvailability, Tr as isBackgroundSessionDue, Ts as RivusDaemonCliWriter, Tt as SubagentRecord, Tu as AgentHarnessClient, U as HumanInteractionResolutionAction, Ua as createTelemetryContentRedactor, Uc as FeishuCardRolloverCounters, Ud as FeishuAgentDaemonCancelResult, Uf as HumanInteractionRepositoryError, Ui as FeishuPeriodicFlush, Ul as FeishuEndpointCredentialError, Un as FeishuBackgroundSessionDeliveryKind, Uo as FeishuWebSocketClient, Up as AgentRunCancelled, Ur as MemoryBinding, Us as RivusDeploymentEndpointLifecycle, Ut as DeliveryJob, Uu as SessionScheduler, V as HumanInteractionFact, Va as TelemetryContentRedactor, Vc as createRivusDaemonStatusReporter, Vd as ToolOperationResolutionResult, Vf as createFeishuSessionKey, Vi as createSequenceRunIds, Vl as createRivusEnvFromOpenClawConfig, Vn as FeishuBackgroundSessionDelivery, Vo as FeishuCardTarget, Vp as AgentHarnessBusy, Vr as AgentMemorySnapshot, Vs as RivusDeploymentDaemonLifecycle, Vt as AutomationOutcome, Vu as JsonHttpResponse, W as HumanInteractionTransition, Wa as LangfuseAgentTelemetry, Wc as FeishuCardRolloverEvent, Wd as FeishuAgentDaemonHandleMessageOptions, Wf as JsonlFeishuCardDeliveryLedgerOptions, Wi as FeishuPeriodicFlushOptions, Wl as FeishuEndpointCredentials, Wn as createBackgroundSessionCard, Wo as FeishuWebSocketClientStartOptions, Wp as ConversationProgressDisplay, Wr as MemoryInvocationAudience, Ws as RivusDeploymentEndpointStatus, Wt as DeliveryJobStatus, Wu as SessionSchedulerCapacityExceeded, X as ToolApprovalBinding, Xa as resolveLangfuseTelemetryConfig, Xc as DEFAULT_CARD_STREAM_LEASE_MS, Xd as FeishuAgentDaemonSkippedResult, Xf as FeishuCardDeliveryRecord, Xi as createCoalescingFeishuPublisher, Xl as RivusTextFileReader, Xn as DEFAULT_BACKGROUND_SESSION_MAX_CONCURRENT_SESSIONS, Xo as createLazyFeishuWebSocketEventDispatcher, Xr as InvalidRivusEndpointBinding, Xs as BACKGROUND_SESSION_TOOL_PLUGIN_ID, Xt as createDailyAutomationSchedule, Xu as AgentRuntimeInput, Y as SelectedHumanInteractionState, Ya as createLangfuseAgentTelemetry, Yc as createFeishuCardRollover, Yd as FeishuAgentDaemonSessionResetResult, Yf as FeishuCardDeliveryReconcilerOptions, Yi as FeishuCoalescingPublisherOptions, Yl as RivusDaemonEnv, Yn as DEFAULT_BACKGROUND_SESSION_LIFETIME_MS, Yo as createFeishuWebSocketDaemon, Yr as AgentMemoryError, Ys as BACKGROUND_SESSION_TOOL_IDS, Yt as DailyAutomationSchedule, Yu as AgentRuntimeCancellation, Z as ToolApprovalInteraction, Za as AgentModelContentObserver, Zc as FeishuCardPresentationHandoffStart, Zd as FeishuAgentDaemonSteeredResult, Zf as createFeishuCardDeliveryLedger, Zi as FeishuStreamActionPublisher, Zl as RivusThinkingLevel, Zn as DEFAULT_BACKGROUND_SESSION_MAX_CONSECUTIVE_FAILURES, Zo as AgentEventLog, Zr as RivusAgentHost, Zs as BACKGROUND_SESSION_TOOL_VERSION, Zt as AutomationTickRepositoryCompatibility, Zu as AgentRuntimePool, _ as createConfiguredFeishuMessageReactionSender, _a as createFeishuCardKitOpenApiClient, _c as BackgroundSessionLimits, _d as ToolOperationBeginResult, _f as FeishuCancelRunCommand, _i as createToolBroker, _l as FeishuMessageWorkerOptions, _n as openJsonlAgentMemoryService, _o as FeishuTenantAccessTokenError, _p as AgentClock, _r as BackgroundSessionState, _s as FeishuCardActionToast, _t as loadNodeRivusPluginModule, _u as createDefaultAgentRuntime, a as ConfiguredFeishuHumanInteractionPresenterOptions, aa as createConfiguredFeishuCardKitTargetCreator, ac as RivusAgentDeploymentStatus, ad as AgentInstanceRegistryOptions, af as FeishuPromptContextResolver, ai as createFeishuDeploymentEndpoint, al as isCardPresentationHandoffDue, an as CompactionService, ao as restoreConfiguredRivusDaemonBootstrap, ap as PresentationStepStatus, ar as createBackgroundSessionHostTools, as as FeishuAgentRuntime, at as LoadRivusDeploymentManifestOptions, au as DefaultAgentHarnessOptions, b as createRoutedHumanInteractionToolApprovalService, ba as createFeishuCardPresentationStore, bc as AUTOMATION_SUPPRESSION_PREFIX, bd as ToolOperationLedger, bf as FeishuMessageIntakeOptions, bi as InvocationAuthorityRef, bl as FeishuMessageWorkerDrainAvailableResult, bn as ProjectSkillCatalogEntry, bo as FeishuTenantAccessTokenRequest, bp as AgentDomainEventSink, br as claimBackgroundSession, bs as FeishuRawCardJson, bt as loadRivusDeployment, bu as createSystemClock, c as createFeishuHumanInteractionCard, ca as FeishuCotProtocolError, cc as RivusAutomationDelivery, cd as AgentInstanceRecord, cf as FeishuCardActionCommand, ci as openJsonlRecoveryControl, cl as RivusDaemonProcess, cn as CompactionError, co as createConfiguredFeishuCardRolloverRuntime, cp as RunPresentation, cr as createBackgroundSessionRepository, cs as FeishuPeriodicFlushSupervisor, ct as CreateRivusDeploymentAutomationInput, cu as DefaultAgentRuntimeOptions, d as createJsonlHumanInteractionRepository, da as FeishuCotRunPreparation, dc as RivusBackgroundSessionsDeployment, dd as JsonlFeishuInboxRepositoryOptions, df as FeishuResolveInteractionCommand, di as AuthorizationPolicyState, dl as RivusDaemonWorkerLoop, dn as AgentContextBudgetExceeded, do as FeishuOpenApiClient, dp as ToolPresentationStep, dr as openJsonlBackgroundSessionDeliveryStore, ds as FeishuEventHandlers, dt as CreateRivusDeploymentEndpointInput, du as createDefaultAgentHarness, ea as FeishuCardKitOpenApiTargetCreatorOptions, ec as isBackgroundSessionToolId, ed as PooledAgentRuntime, ef as FeishuAgentMessageSideEffects, ei as RivusEndpointInput, el as CardPresentationChain, en as ScheduledAutomationOptions, eo as ConfiguredRivusDaemonBootstrap, ep as FeishuStreamProjector, er as DEFAULT_BACKGROUND_SESSION_SUPERVISOR_INTERVAL_MS, es as JsonlAgentEventLogOptions, et as UserDecisionInteractionState, eu as DefaultAgentHarnessClientFromCallbackOptions, f as JsonlHumanInteractionRepositoryOptions, fa as createFeishuCotPublisher, fc as RivusDeploymentManifest, fd as openJsonlFeishuInboxRepository, ff as InvalidFeishuCardAction, fi as ToolApprovalRequest, fl as createRivusDaemonProcess, fn as AgentContextInput, fo as FeishuOpenApiError, fp as hasInspectableRunProgress, fr as createBackgroundSessionDeliveryStore, fs as FeishuEventHandlersOptions, ft as CreateRivusDeploymentRuntimeInput, fu as createDefaultAgentHarnessClient, g as FeishuMessageReactionSender, ga as FeishuCardKitOpenApiClientOptions, gc as RivusProjectSpaceDeployment, gd as createRecoveryControl, gf as FeishuCancelMessageIntakeSummary, gi as ToolExecutionRequest, gl as FeishuMessageWorker, gn as assembleAgentContext, go as createFeishuOpenApiClient, gp as ActiveAgentRun, gr as BackgroundSessionRepository, gs as FeishuCardActionCallbackResponse, gt as RivusDeploymentEndpoint, gu as createDefaultAgentHarnessFromTextCallback, h as createConfiguredFeishuAutomationCardSender, ha as createFeishuTopicContextResolver, hc as RivusPluginDeclaration, hd as RecoveryControlOptions, hf as FeishuAgentCommand, hi as ToolBrokerOptions, hl as createFeishuWorkerLoop, hn as AssembledAgentContext, ho as createConfiguredFeishuOpenApiClient, hp as createPresentedValue, hr as createBackgroundSessionService, hs as createFeishuEventHandlers, ht as RivusDeploymentDaemon, hu as createDefaultAgentHarnessFromCallback, i as createFeishuAgentRunCard, ia as FeishuCardTargetPreparationOptions, ic as ResolvedRivusProjectSpace, id as AgentInstanceConflict, if as FeishuPromptContextInput, ii as FeishuDeploymentEndpointOptions, il as activeCardPresentation, in as createAutomationMandateStore, io as createConfiguredRivusDaemonBootstrap, ip as PresentationStep, ir as CreateBackgroundSessionHostToolsOptions, is as createAgentDomainEventSink, it as loadRivusDeploymentManifest, iu as DefaultAgentHarnessFromTextCallbackOptions, j as HumanInteractionRepository, ja as PiAgentSessionEvent, jc as RivusDaemonShutdownControllerOptions, jd as FeishuInboxPendingState, jf as readFeishuMessageContent, ji as WorkspaceInstructionsSourceError, jl as FeishuMessageQueue, jn as RIVUS_MEMORY_TOOL_ID, jo as createInMemoryFeishuCardTargetRegistry, jp as AgentSessionAvailability, jr as requestBackgroundSessionStop, js as RivusDeploymentBootstrapContext, jt as DelegationGrant, ju as AgentRunUpdateCallback, k as ResolveHumanInteractionInput, ka as createPiSdkAgentLoop, kc as AutomationTick, kd as FeishuInboxDeliveryState, kf as InvalidFeishuMessageContent, ki as createWorkspaceRootHandle, kl as FeishuMessageDrainResult, kn as ProjectMemoryRecallOptions, ko as FeishuCardTargetRegistryStoreError, kp as AgentRunUpdateHandler, kr as releaseBackgroundSessionLease, ks as runRivusDaemonCli, kt as DelegationDenied, ku as AgentDomainEventCallback, l as createFeishuHumanInteractionPresenter, la as FeishuCotPublisher, lc as RivusAutomationDeliveryTargetType, ld as OpenJsonFeishuSessionStoreOptions, lf as FeishuCardActionIntakeError, li as openJsonlToolOperationLedger, ll as RivusDaemonProcessOptions, ln as CompactionSnapshot, lo as ConfiguredFeishuOpenApiRequest, lp as RunPresentationPhase, lr as openJsonlBackgroundSessionRepository, ls as FeishuEventHandlerCardActions, lt as CreateRivusDeploymentBackgroundSessionInput, lu as DefaultAgentRuntimeSessionOptions, m as FeishuAutomationCardSender, ma as InvalidFeishuTopicContext, mc as RivusEndpointExperimentalFeatures, md as createRecoveryAction, mf as createAgentCommandFromFeishuCardAction, mi as ToolBroker, ml as FeishuWorkerLoopOptions, mn as AgentContextLayerKind, mo as FeishuOpenApiResponse, mp as PresentedValueOptions, mr as isBackgroundSessionState, ms as FeishuSdkReceiveMessagePayload, mt as RivusDeploymentBackgroundSession, mu as createDefaultAgentHarnessClientFromTextCallback, n as FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID, na as FeishuCardTargetCreateOptions, nc as LoadedRivusDeployment, nd as AgentInstanceRegistry, nf as FeishuHumanInteractionActions, ni as FeishuPresentationPreparationOptions, nl as CardPresentationTransitionDenied, nn as AutomationTickRecord, no as ConfiguredRivusDaemonBootstrapRequest, np as AssistantPresentationStep, nr as extendBackgroundSessionDefinition, ns as AgentHistoryEventLog, nt as CreateConfiguredRivusDeploymentDaemonOptions, nu as DefaultAgentHarnessClientOptions, o as FeishuHumanInteractionPresenterOptions, oa as createFeishuCardKitOpenApiTargetCreator, oc as RivusPluginLoadStatus, od as AgentInstanceBusy, of as composeFeishuTopicPrompt, oi as createAgentHarnessPooledRuntime, ol as CompositeRivusDaemonTransportOptions, on as CompactorPort, oo as ConfiguredFeishuCardRolloverRuntime, op as RUN_PRESENTATION_SCHEMA_VERSION, or as BackgroundSessionSupervisorOptions, os as FeishuAgentRuntimeOptions, ot as RivusDeploymentManifestError, ou as DefaultAgentRuntimeFromCallbackOptions, p as FeishuAutomationCardInput, pa as FeishuTopicContextResolverOptions, pc as RivusEndpointDeployment, pd as InvalidRecoveryAction, pf as UnsupportedFeishuCardAction, pi as ToolApprovalService, pl as FeishuWorkerLoop, pn as AgentContextLayer, po as FeishuOpenApiRequest, pp as PresentedValue, pr as BACKGROUND_SESSION_JSONL_VERSION, ps as FeishuReceiveMessageHandlerPayload, pt as RivusDeploymentAutomation, pu as createDefaultAgentHarnessClientFromCallback, q as RequestToolApprovalInput, qa as LangfuseTelemetryContentMode, qc as FeishuCardRolloverOptions, qd as FeishuAgentDaemonOptions, qf as FeishuCardDeliveryLedgerStateOptions, qi as createConfiguredFeishuCardKitPublisher, ql as RivusDaemonConfigError, qn as DEFAULT_BACKGROUND_SESSION_LEASE_MS, qo as FeishuWebSocketEventDispatcher, qr as MemorySearchQuery, qs as RivusDeploymentDaemonLifecycleError, qt as OpenJsonAutomationTickRepositoryOptions, qu as SessionSchedulerStatus, r as FeishuAgentRunCardInput, ra as FeishuCardTargetCreator, rc as ResolvedRivusAutomationDefinition, rd as createAgentInstanceRegistry, rf as createFeishuAgentDaemon, ri as createFeishuPresentationPreparation, rl as acceptsCardPresentationProgress, rn as AutomationTickStatus, ro as ConfiguredRivusDaemonBootstrapResponse, rp as ModelPresentationStep, rr as narrowBackgroundSessionDefinition, rs as restoreAgentHistory, rt as createConfiguredRivusDeploymentDaemon, ru as DefaultAgentHarnessFromCallbackOptions, s as createConfiguredFeishuHumanInteractionPresenter, sa as createFeishuCardTargetPreparation, sc as RivusPluginModuleLoadRequest, sd as AgentRuntimeDisposed, sf as FeishuAgentRunPreparation, si as JsonlRecoveryControlOptions, sl as createCompositeRivusDaemonTransport, sn as createCompactionService, so as ConfiguredFeishuCardRolloverRuntimeOptions, sp as ResponsePresentationStep, sr as createBackgroundSessionSupervisor, ss as createFeishuAgentRuntime, st as createRivusDeploymentDaemon, su as DefaultAgentRuntimeFromTextCallbackOptions, t as FEISHU_AGENT_CARD_ELEMENT_ID, ta as FeishuCardPresentationBinder, td as createAgentRuntimePool, tf as FeishuAgentPreparedControl, ti as createRivusAgentHost, tl as CardPresentationStatus, tn as createScheduledAutomation, to as ConfiguredRivusDaemonBootstrapOptions, tp as createFeishuStreamProjector, tr as resolveBackgroundSessionSupervisorIntervalMs, ts as createJsonlAgentEventLog, tt as UserDecisionOption, tu as DefaultAgentHarnessClientFromTextCallbackOptions, u as createInMemoryHumanInteractionRepository, ua as FeishuCotPublisherOptions, uc as RivusAutomationDeployment, ud as openJsonFeishuSessionStore, uf as FeishuCardActionTriggerPayload, ui as AuthorizationPolicyProvider, ul as RivusDaemonTransport, un as CompactionInput, uo as ConfiguredFeishuOpenApiResponse, up as SkillPresentationStep, ur as BACKGROUND_SESSION_DELIVERY_JSONL_VERSION, us as FeishuEventHandlerQueue, ut as CreateRivusDeploymentDaemonOptions, uu as createAgentRuntime, v as FeishuTextReplySender, va as FeishuCardPresentationNotFound, vc as BackgroundSessionSupervisor, vd as ToolOperationBinding, vf as FeishuMessageIntakeBaseSummary, vi as ToolInvocationDenied, vl as FeishuMessageWorkerQueue, vn as InvalidProjectSkillCatalog, vo as FeishuTenantAccessTokenProvider, vp as AgentDomainEventHandler, vr as BackgroundSessionTransitionDenied, vs as createFeishuCardActionCallbackResponse, vt as LoadRivusDeploymentOptions, vu as createDefaultAgentRuntimeFromCallback, w as createHumanInteractionEndpointRegistry, wa as PiSessionRegistryOptions, wc as AutomationBinding, wd as ToolOperationState, wf as FeishuPromptAgentCommand, wi as InvalidStableJson, wl as FeishuReceiveMessageReplayResult, wn as InvalidRivusProjectSpace, wo as FeishuCardRolloverSupervisorOptions, wp as AgentHarnessError, wr as failBackgroundSessionStep, ws as RivusDaemonCliOptions, wt as SpawnSubagentRequest, wu as AgentClientSuccess, x as createHumanInteractionModelChangeApproval, xa as RunPresentationProjector, xc as ScheduledAutomationDeliveryInput, xd as ToolOperationReconciliation, xf as FeishuMessageIntakeSummary, xi as createInvocationAuthority, xl as FeishuReceiveAcceptedObservation, xn as validateProjectSkillCatalog, xo as FeishuTenantAccessTokenResponse, xp as AgentHarness, xr as completeBackgroundSessionStep, xs as RivusDaemonBootstrapContext, xt as RivusPluginLoadError, xu as createUuidRunIds, y as createConfiguredFeishuTextReplySender, ya as FeishuCardPresentationStoreOptions, yc as BackgroundSessionSupervisorStatus, yd as ToolOperationInspectResult, yf as FeishuMessageIntakeError, yi as InvocationAuthority, yl as createFeishuMessageWorker, yn as ProjectSkillCatalogDiagnostic, yo as FeishuTenantAccessTokenProviderOptions, yp as AgentDomainEventListener, yr as appendBackgroundSessionInput, ys as createFeishuCardActionErrorResponse, yt as RivusPluginModule, yu as createDefaultAgentRuntimeFromTextCallback, z as HumanInteractionActor, za as createOpenTelemetryAgentEventSink, zc as RivusDaemonStatusReporter, zd as RecoverySnapshot, zf as InvalidFeishuSessionReference, zi as resolveRivusAgentDefinition, zl as OpenClawEnvImportResult, zn as createMemoryNamespace, zo as FeishuCardKitPublisherOptions, zp as AgentEventHandlerFailed, zr as AgentMemoryIdentity, zs as RivusDeploymentBackgroundSessionReadinessError, zt as PluginStateStore, zu as JsonFetchRequestOptions } 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 {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
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, createHumanInteractionModelChangeApproval, 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 };
|
|
1
|
+
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";
|
|
2
|
+
import { AUTOMATION_PRESENTATION_SCHEMA_VERSION, AUTOMATION_SUPPRESSION_PREFIX, AgentInstanceBusy, AgentInstanceConflict, AgentInstanceRecord, AgentInstanceRegistry, AgentInstanceRegistryOptions, AgentMemoryError, AgentMemoryHandle, AgentMemoryService, AgentMemoryServiceOptions, AgentRuntimeCancellation, AgentRuntimeDisposed, AgentRuntimeInput, AgentRuntimePool, AgentRuntimePoolOptions, AgentRuntimeSteering, ApprovedHumanInteractionState, AssistantPresentationStep, AuthorizationPolicyProvider, AuthorizationPolicyState, AutomationBinding, AutomationDeliveryBinding, AutomationMandate, AutomationMandateError, AutomationMandateStore, AutomationPresentation, AutomationPresentationInput, AutomationPresentationItem, AutomationPresentationKind, AutomationPresentationSection, AutomationPresentationSource, AutomationTick, AutomationTickRecord, AutomationTickRepository, 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, BackgroundSessionAuthority, BackgroundSessionCallerDenied, BackgroundSessionCancellation, BackgroundSessionDeliveryConflict, BackgroundSessionDeliveryRecord, BackgroundSessionDeliveryStore, BackgroundSessionDetail, BackgroundSessionId, BackgroundSessionLease, BackgroundSessionLimits, BackgroundSessionOrigin, BackgroundSessionPhase, BackgroundSessionRepository, BackgroundSessionRepositoryConflict, BackgroundSessionRepositoryCorrupted, BackgroundSessionState, BackgroundSessionSummary, BackgroundSessionSupervisor, BackgroundSessionSupervisorOptions, BackgroundSessionSupervisorStatus, BackgroundSessionTerminalResult, BackgroundSessionTransitionDenied, CancelledHumanInteractionState, CardPresentation, CardPresentationChain, CardPresentationStatus, CardPresentationTransitionDenied, CompositeRivusDaemonTransportOptions, ConfiguredFeishuCardKitPublisherOptions, ConfiguredFeishuCardRolloverRuntime, ConfiguredFeishuCardRolloverRuntimeOptions, ConfiguredFeishuHumanInteractionPresenterOptions, ConfiguredFeishuOpenApiRequest, ConfiguredFeishuOpenApiResponse, ConfiguredRivusDaemonBootstrap, ConfiguredRivusDaemonBootstrapOptions, ConfiguredRivusDaemonBootstrapRequest, ConfiguredRivusDaemonBootstrapResponse, ConversationProgressDisplay, CreateBackgroundSessionHostToolsOptions, CreateConfiguredRivusDeploymentDaemonOptions, CreateRivusDeploymentAutomationInput, CreateRivusDeploymentBackgroundSessionInput, CreateRivusDeploymentDaemonOptions, CreateRivusDeploymentEndpointInput, 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, DailyAutomationSchedule, DeadLetterRecoveryItem, DeadLetterRequeueResult, DelegationDenied, DelegationEdge, DelegationGrant, DelegationRequest, DelegationService, DeliveryJob, DeliveryJobStatus, DeliveryOutbox, DeliveryOutboxError, ExpiredHumanInteractionState, FEISHU_AGENT_CARD_ELEMENT_ID, FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID, FeishuAgentCommand, FeishuAgentDaemon, FeishuAgentDaemonCancelResult, FeishuAgentDaemonHandleMessageOptions, FeishuAgentDaemonHandleResult, FeishuAgentDaemonInteractionResult, FeishuAgentDaemonOptions, FeishuAgentDaemonRunResult, FeishuAgentDaemonSessionResetResult, FeishuAgentDaemonSkippedResult, FeishuAgentDaemonSteeredResult, FeishuAgentExecution, FeishuAgentExecutionResult, FeishuAgentMessageSideEffects, FeishuAgentPreparedControl, FeishuAgentRunCardInput, FeishuAgentRunPreparation, FeishuAgentRuntime, FeishuAgentRuntimeOptions, FeishuAutomationCardInput, FeishuAutomationCardSender, FeishuBackgroundSessionDelivery, FeishuBackgroundSessionDeliveryInput, FeishuBackgroundSessionDeliveryKind, FeishuCancelMessageIntakeSummary, FeishuCancelRunCommand, FeishuCardActionCallbackResponse, FeishuCardActionCommand, FeishuCardActionIntakeError, FeishuCardActionToast, FeishuCardActionTriggerPayload, FeishuCardDeliveryLedger, FeishuCardDeliveryLedgerStateOptions, FeishuCardDeliveryReconciler, FeishuCardDeliveryReconcilerOptions, FeishuCardDeliveryRecord, FeishuCardKitCancel, FeishuCardKitClient, FeishuCardKitFail, FeishuCardKitFinish, FeishuCardKitOpenApiClientOptions, FeishuCardKitOpenApiTargetCreatorOptions, FeishuCardKitPresentationUpdate, FeishuCardKitPublisher, FeishuCardKitPublisherOptions, FeishuCardKitTextUpdate, FeishuCardPresentationBinder, FeishuCardPresentationHandoffStart, FeishuCardPresentationNotFound, FeishuCardPresentationStore, FeishuCardPresentationStoreOptions, FeishuCardRollover, FeishuCardRolloverCounters, FeishuCardRolloverEvent, FeishuCardRolloverEventType, FeishuCardRolloverHandoffResult, FeishuCardRolloverOptions, FeishuCardRolloverStatus, FeishuCardRolloverSupervisor, FeishuCardRolloverSupervisorOptions, FeishuCardTarget, FeishuCardTargetCreateOptions, FeishuCardTargetCreator, FeishuCardTargetNotFound, FeishuCardTargetPreparationOptions, FeishuCardTargetRegistry, FeishuCardTargetRegistryOperation, FeishuCardTargetRegistryStoreError, FeishuCoalescingPublisher, FeishuCoalescingPublisherOptions, FeishuConversationReference, FeishuCotProtocolError, FeishuCotPublisher, FeishuCotPublisherOptions, FeishuCotRunPreparation, FeishuDeploymentEndpointOptions, FeishuEndpointCredentialError, FeishuEndpointCredentials, FeishuEndpointGroupPolicy, FeishuEventHandlerCardActions, FeishuEventHandlerQueue, FeishuEventHandlers, FeishuEventHandlersOptions, FeishuHumanInteractionActions, FeishuHumanInteractionPresenterOptions, FeishuInboxCompletedState, FeishuInboxDeadState, FeishuInboxDelivery, FeishuInboxDeliveryState, FeishuInboxLeasedState, FeishuInboxPendingState, FeishuInboxRepository, FeishuInboxRepositoryStateOptions, FeishuMessageAcceptResult, FeishuMessageContentInput, FeishuMessageDrainResult, FeishuMessageIntakeBaseSummary, FeishuMessageIntakeError, FeishuMessageIntakeOptions, FeishuMessageIntakeSummary, FeishuMessagePreparedControl, FeishuMessageQueue, FeishuMessageQueueOptions, FeishuMessageReactionSender, FeishuMessageWorker, FeishuMessageWorkerDrainAvailableResult, FeishuMessageWorkerOptions, FeishuMessageWorkerQueue, FeishuNewSessionCommand, FeishuNewSessionMessageIntakeSummary, FeishuOpenApiClient, FeishuOpenApiError, FeishuOpenApiRequest, FeishuOpenApiResponse, FeishuPeriodicFlush, FeishuPeriodicFlushOptions, FeishuPeriodicFlushSupervisor, FeishuPresentationPreparationOptions, FeishuPromptAgentCommand, FeishuPromptContextInput, FeishuPromptContextResolver, FeishuPromptMessageIntakeSummary, FeishuRawCardJson, FeishuReceiveAcceptedObservation, FeishuReceiveHandledObservation, FeishuReceiveMessageHandlerPayload, FeishuReceiveMessagePayload, FeishuReceiveMessageReplayOptions, FeishuReceiveMessageReplayResult, FeishuReceiveMessageSummary, FeishuReceiveRuntimeStatus, FeishuResolveInteractionCommand, FeishuSdkReceiveMessagePayload, FeishuSessionEpochRecord, FeishuSessionReference, FeishuSessionResetResult, FeishuSessionStore, FeishuSessionStoreOptions, FeishuStreamAction, FeishuStreamActionPublisher, FeishuStreamProjector, FeishuTenantAccessTokenError, FeishuTenantAccessTokenProvider, FeishuTenantAccessTokenProviderOptions, FeishuTenantAccessTokenRequest, FeishuTenantAccessTokenResponse, FeishuTextReplySender, FeishuTopicContextResolverOptions, FeishuWebSocketClient, FeishuWebSocketClientStartOptions, FeishuWebSocketDaemon, FeishuWebSocketDaemonOptions, FeishuWebSocketEventDispatcher, FeishuWebSocketRuntime, FeishuWorkerLoop, FeishuWorkerLoopOptions, FetchLike, FetchLikeResponse, HumanInteraction, HumanInteractionActor, HumanInteractionBase, HumanInteractionClock, HumanInteractionEndpointRegistry, HumanInteractionFact, HumanInteractionId, HumanInteractionRepositoryError, HumanInteractionResolutionAction, HumanInteractionTransition, HumanInteractionTransitionDenied, InvalidAutomationPresentation, InvalidFeishuCardAction, InvalidFeishuMessageContent, InvalidFeishuSessionReference, InvalidFeishuTopicContext, InvalidRivusEndpointBinding, InvalidRivusPlugin, InvalidRivusProjectSpace, JsonFetchRequestOptions, JsonFileFeishuCardTargetRegistryOptions, JsonHttpRequest, JsonHttpResponse, JsonlFeishuCardDeliveryLedgerOptions, JsonlFeishuInboxRepositoryOptions, JsonlHumanInteractionRepositoryOptions, JsonlRecoveryControlOptions, LegacyAutomationOutcome as AutomationOutcome, LegacyBackgroundSessionService as BackgroundSessionService, LegacyCommitAutomationOutcomeInput as CommitAutomationOutcomeInput, LegacyCommittedAutomationOutcome as CommittedAutomationOutcome, LegacyConsumeToolApprovalInput as ConsumeToolApprovalInput, LegacyHumanInteractionPresenter as HumanInteractionPresenter, LegacyHumanInteractionRepository as HumanInteractionRepository, LegacyHumanInteractionService as HumanInteractionService, LegacyHumanInteractionServiceOptions as HumanInteractionServiceOptions, LegacyResolveHumanInteractionInput as ResolveHumanInteractionInput, LoadRivusDeploymentManifestOptions, LoadRivusDeploymentOptions, LoadedRivusDeployment, MemorySearchQuery, ModelPresentationStep, OpenClawEnvImportError, OpenClawEnvImportOptions, OpenClawEnvImportResult, OpenJsonAutomationTickRepositoryOptions, OpenJsonFeishuSessionStoreOptions, PendingHumanInteractionState, PluginStateConflict, PluginStateRecord, PluginStateStore, PooledAgentRuntime, PresentationStep, PresentationStepStatus, PresentedValue, PresentedValueOptions, PutPluginState, RIVUS_PLUGIN_API_VERSION, RUN_PRESENTATION_SCHEMA_VERSION, RateLimitedFeishuPublisherOptions, RecoveryControl, RecoveryControlOptions, RecoverySnapshot, RegisteredRivusAgentProfile, RegisteredRivusAutomation, RegisteredRivusPlugin, RejectedHumanInteractionState, RequestToolApprovalInput, RequestUserDecisionInput, ResolvedRivusAgentDefinition, ResolvedRivusAutomationDefinition, ResolvedRivusProjectSpace, ResponsePresentationStep, RivusAgentDeployment, RivusAgentDeploymentStatus, RivusAgentHost, RivusAgentHostOptions, RivusAgentProfile, RivusAutomationDelivery, RivusAutomationDeliveryTargetType, RivusAutomationDeployment, RivusAutomationInput, RivusAutomationOutput, RivusAutomationTemplate, RivusAutomationTickContext, RivusBackgroundSessionsDeployment, RivusDaemonBootstrapContext, RivusDaemonBootstrapFactory, RivusDaemonBootstrapModule, RivusDaemonCliOptions, RivusDaemonCliWriter, RivusDaemonConfig, RivusDaemonConfigError, RivusDaemonConfigLoaderOptions, RivusDaemonEnv, RivusDaemonFeishuReplayRunner, RivusDaemonProcess, RivusDaemonProcessOptions, RivusDaemonPromptRunner, RivusDaemonRecoveryRunner, RivusDaemonShutdownController, RivusDaemonShutdownControllerOptions, RivusDaemonShutdownSignal, RivusDaemonSignalSource, RivusDaemonStatus, RivusDaemonStatusHttpServer, RivusDaemonStatusHttpServerOptions, RivusDaemonStatusReporter, RivusDaemonStatusReporterOptions, RivusDaemonTransport, RivusDaemonWorkerLoop, RivusDeploymentAutomation, RivusDeploymentAutomationLifecycle, RivusDeploymentAutomationReadinessError, RivusDeploymentAutomationStatus, RivusDeploymentBackgroundSession, RivusDeploymentBackgroundSessionLifecycle, RivusDeploymentBackgroundSessionReadinessError, RivusDeploymentBackgroundSessionStatus, RivusDeploymentBootstrapAdapters, RivusDeploymentBootstrapContext, RivusDeploymentBootstrapFactory, RivusDeploymentCliProcess, RivusDeploymentComponentLifecycle, RivusDeploymentDaemon, RivusDeploymentDaemonLifecycle, RivusDeploymentDaemonLifecycleError, RivusDeploymentDaemonStatus, RivusDeploymentEndpoint, RivusDeploymentEndpointLifecycle, RivusDeploymentEndpointStatus, RivusDeploymentManifest, RivusDeploymentManifestError, RivusDeploymentReadinessError, RivusEndpointDefinition, RivusEndpointDeployment, RivusEndpointExperimentalFeatures, RivusEndpointInput, RivusEnvFileVariables, RivusPlugin, RivusPluginCatalog, RivusPluginCatalogSnapshot, RivusPluginDeclaration, RivusPluginLoadError, RivusPluginLoadStatus, RivusPluginManifest, RivusPluginModule, RivusPluginModuleLoadRequest, RivusPluginRegistry, RivusProjectSpaceDeployment, RivusRuntimeToolGrantSet, RivusTextFileReader, RivusThinkingLevel, RunPresentation, RunPresentationPhase, RunPresentationProjector, ScheduledAutomation, ScheduledAutomationClock, ScheduledAutomationDeliveryInput, ScheduledAutomationOptions, ScheduledAutomationRunInput, ScheduledAutomationRunResult, SelectedHumanInteractionState, SessionScheduler, SessionSchedulerCapacityExceeded, SessionSchedulerDisposed, SessionSchedulerOptions, SessionSchedulerStatus, SkillPresentationStep, SpawnSubagentRequest, SubagentCoordinator, SubagentRecord, ToolApprovalBinding, ToolApprovalInteraction, ToolApprovalInteractionState, ToolApprovalRequest, ToolApprovalService, ToolBroker, ToolBrokerOptions, ToolExecutionRequest, ToolInvocationDenied, ToolOperationRecoveryItem, ToolOperationResolutionResult, ToolPresentationStep, UnsupportedFeishuCardAction, UnsupportedFeishuMessage, UserDecisionInteraction, UserDecisionInteractionState, UserDecisionOption, WorkspaceInstructionsProvider, acceptsCardPresentationProgress, activeCardPresentation, appendBackgroundSessionInput, backgroundSessionToolIds, claimBackgroundSession, commitLegacyAutomationOutcome as commitAutomationOutcome, completeBackgroundSessionStep, completeBackgroundSessionStop, composeFeishuTopicPrompt, createAgentCommandFromFeishuCardAction, createAgentCommandFromFeishuMessage, createAgentHarnessPooledRuntime, createAgentInstanceRegistry, createAgentMemoryService, createAgentRuntimePool, createAgentsMdInstructionsProvider, createAutomationMandateStore, createAutomationPresentation, createBackgroundSession, createBackgroundSessionCard, createBackgroundSessionDeliveryStore, createBackgroundSessionHostTools, createBackgroundSessionKey, createBackgroundSessionRepository, createBackgroundSessionStepSourceMessageId, createBackgroundSessionSupervisor, createBackgroundSessionToolContracts, createCoalescingFeishuPublisher, createCompositeRivusDaemonTransport, createConfiguredFeishuAutomationCardSender, createConfiguredFeishuBackgroundSessionDelivery, createConfiguredFeishuCardKitPublisher, createConfiguredFeishuCardKitTargetCreator, createConfiguredFeishuCardRolloverRuntime, createConfiguredFeishuHumanInteractionPresenter, createConfiguredFeishuMessageReactionSender, createConfiguredFeishuOpenApiClient, createConfiguredFeishuTextReplySender, createConfiguredRivusDaemonBootstrap, createConfiguredRivusDeploymentDaemon, createDailyAutomationSchedule, createDelegationService, createDeliveryOutbox, 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, createHumanInteractionEndpointRegistry, createHumanInteractionModelChangeApproval, createHumanInteractionToolApprovalGateway, createInMemoryFeishuCardTargetRegistry, createInMemoryHumanInteractionRepository, createJsonFetchRequest, createJsonFileFeishuCardTargetRegistry, createJsonlHumanInteractionRepository, createLazyFeishuWebSocketEventDispatcher, createLegacyBackgroundSessionService as createBackgroundSessionService, createLegacyHumanInteractionService as createHumanInteractionService, createPluginStateStore, createPresentedValue, createRateLimitedFeishuPublisher, createRecoveryControl, createRivusAgentHost, createRivusDaemonProcess, createRivusDaemonShutdownController, createRivusDaemonStatusHttpServer, createRivusDaemonStatusReporter, createRivusDeploymentCliProcess, createRivusDeploymentDaemon, createRivusEnvFromOpenClawConfig, createRivusPluginCatalog, createRoutedHumanInteractionToolApprovalService, createRunPresentationProjector, createScheduledAutomation, createSessionScheduler, createSubagentCoordinator, createToolBroker, describeFeishuMessageIntake, extendBackgroundSessionDefinition, failBackgroundSessionStep, formatRivusEnvFile, hasInspectableRunProgress, intersectToolIds, isBackgroundSessionDue, isBackgroundSessionLeaseExpired, isBackgroundSessionState, isBackgroundSessionTerminalPhase, isBackgroundSessionToolId, isCardPresentationHandoffDue, loadNodeRivusPluginModule, loadRivusDaemonConfig, loadRivusDeployment, loadRivusDeploymentManifest, narrowBackgroundSessionDefinition, openJsonAutomationTickRepository, openJsonFeishuSessionStore, openJsonlAgentMemoryService, openJsonlBackgroundSessionDeliveryStore, openJsonlBackgroundSessionRepository, openJsonlFeishuCardDeliveryLedger, openJsonlFeishuInboxRepository, openJsonlRecoveryControl, openJsonlToolOperationLedger, parkBackgroundSessionForReconciliation, progressDeliveryId, readAutomationPresentation, readFeishuMessageContent, releaseBackgroundSessionLease, renewBackgroundSessionLease, requestBackgroundSessionStop, requeueInterruptedBackgroundSessionStep, resolveBackgroundSessionReconciliation, resolveBackgroundSessionSupervisorIntervalMs, resolveFeishuDeliveryChatId, resolveFeishuEndpointCredentials, resolveRivusAgentDefinition, resolveRivusProjectSpace, restoreConfiguredRivusDaemonBootstrap, runRivusDaemonCli, sessionIdFromSessionKey, shouldAcceptFeishuEndpointMessage, suspendBackgroundSession, terminalDeliveryId, transitionHumanInteraction, validateRivusDeploymentManifest } from "@rivus/gateway";
|
|
3
|
+
import { ActiveAgentRun, AgentClientAttempt, AgentClientFailure, AgentClientSuccess, AgentClock, AgentContextBudgetExceeded, AgentContextInput, AgentContextLayer, AgentContextLayerKind, AgentConversationMessagesOptions, AgentDomainEvent, AgentDomainEventCallback, AgentDomainEventHandler, AgentDomainEventListener, AgentDomainEventSink, AgentDomainEventSinkCallback, AgentEventHandlerFailed, AgentEventLog, AgentEventLogOperation, AgentEventLogStoreError, AgentEventSinkFailed, AgentHarness, AgentHarnessAvailability, AgentHarnessBusy, AgentHarnessBusyAvailability, AgentHarnessClient, AgentHarnessError, AgentHarnessIdleAvailability, AgentHistory, AgentHistoryEventLog, AgentInvocationOrigin, AgentLoopEvent, AgentLoopEventLike, AgentLoopFailed, AgentLoopModelExecutionEnd, AgentLoopModelExecutionEndOptions, AgentLoopModelExecutionStart, AgentLoopModelExecutionStartOptions, AgentLoopSkillExecutionEnd, AgentLoopSkillExecutionEndOptions, AgentLoopSkillExecutionStart, AgentLoopSkillExecutionStartOptions, AgentLoopTextDelta, AgentLoopThinkingDelta, AgentLoopToolExecutionEnd, AgentLoopToolExecutionEndOptions, AgentLoopToolExecutionStart, AgentLoopToolExecutionStartOptions, AgentLoopToolExecutionUpdate, AgentLoopToolExecutionUpdateOptions, AgentLoopTurnStart, AgentModelContentObserver, AgentModelExecutionEnded, AgentModelExecutionEvent, AgentModelExecutionStarted, AgentModelInputObservation, AgentModelOutputObservation, AgentModelUsage, AgentPromptResult, AgentRunAccepted, AgentRunCancelled, AgentRunCancelled as AgentRunCancelledEvent, AgentRunCompleted, AgentRunFailed, AgentRunId, AgentRunPhase, AgentRunSnapshot, AgentRunState, AgentRunSummary, AgentRunUpdate, AgentRunUpdateCallback, AgentRunUpdateHandler, AgentRunUpdateListener, AgentRuntime, AgentSessionAvailability, AgentSessionBusyAvailability, AgentSessionClient, AgentSessionHandle, AgentSessionOtherBusyAvailability, AgentSessionOwnedBusyAvailability, AgentSessionSnapshot, AgentSessionSummary, AgentSkillExecutionEnded, AgentSkillExecutionStarted, AgentSkillExecutionState, AgentTextDeltaCallback, AgentToolExecutionEnded, AgentToolExecutionEvent, AgentToolExecutionStarted, AgentToolExecutionUpdated, AgentTranscript, AgentTranscriptMessage, AgentTranscriptMessageRole, AgentTranscriptTurn, AgentTurnCompleted, AgentTurnStarted, AssembledAgentContext, AssistantTextDelta, AssistantThinkingDelta, AutomationAgentInvocationOrigin, DefaultAgentHarnessClientFromCallbackOptions, DefaultAgentHarnessClientFromTextCallbackOptions, DefaultAgentHarnessClientOptions, DefaultAgentHarnessFromCallbackOptions, DefaultAgentHarnessFromTextCallbackOptions, DefaultAgentHarnessOptions, DefaultAgentRuntimeFromCallbackOptions, DefaultAgentRuntimeFromTextCallbackOptions, DefaultAgentRuntimeOptions, DefaultAgentRuntimeSessionOptions, FeishuAgentInvocationOrigin, InvalidRecoveryAction, InvalidWorkspaceRoot, JsonlAgentEventLogOptions, LangfuseAgentTelemetry, LangfuseTelemetryConfig, LangfuseTelemetryConfigError, LangfuseTelemetryContentMode, LangfuseTelemetryEnv, LegacyAgentHarnessOptions as AgentHarnessOptions, LegacyAgentLoop as AgentLoop, LegacyAgentLoopCallback as AgentLoopCallback, LegacyAgentLoopCallbackOutput as AgentLoopCallbackOutput, LegacyAgentLoopCallbackResult as AgentLoopCallbackResult, LegacyAgentLoopInput as AgentLoopInput, LegacyAgentMemoryAuthority as AgentMemoryAuthority, LegacyAgentMemoryIdentity as AgentMemoryIdentity, LegacyAgentMemorySnapshot, LegacyAgentSteeringChannel as AgentSteeringChannel, LegacyAsyncIterableAgentLoopOptions as AsyncIterableAgentLoopOptions, LegacyCompactionError as CompactionError, LegacyCompactionInput as CompactionInput, LegacyCompactionService as CompactionService, LegacyCompactionSnapshot as CompactionSnapshot, LegacyCompactorPort as CompactorPort, LegacyEventAgentLoopOptions as EventAgentLoopOptions, LegacyInvalidInvocationAuthority as InvalidInvocationAuthority, LegacyInvalidStableJson as InvalidStableJson, LegacyInvalidToolInput as InvalidToolInput, LegacyInvocationAuthority as InvocationAuthority, LegacyInvocationAuthorityRef as InvocationAuthorityRef, LegacyMemoryBinding as MemoryBinding, LegacyMemoryInvocationAudience as MemoryInvocationAudience, LegacyMemoryRecord, LegacyMemoryScope as MemoryScope, LegacyMemoryState as MemoryState, LegacyProjectMemoryPromptInput as ProjectMemoryPromptInput, LegacyProjectMemoryRecallIdentity as ProjectMemoryRecallIdentity, LegacyProjectMemoryRecallOptions as ProjectMemoryRecallOptions, LegacyRivusMemoryTool as RivusMemoryTool, LegacyTextAgentLoopCallback as TextAgentLoopCallback, LegacyTextAgentLoopOptions as TextAgentLoopOptions, LegacyToolOperationBeginResult as ToolOperationBeginResult, LegacyToolOperationBinding as ToolOperationBinding, LegacyToolOperationInspectResult as ToolOperationInspectResult, LegacyToolOperationLedger as ToolOperationLedger, LegacyToolOperationReconciliation as ToolOperationReconciliation, LegacyToolOperationReconciliationOutcome as ToolOperationReconciliationOutcome, LegacyToolOperationRecord as ToolOperationRecord, LegacyToolOperationState as ToolOperationState, LocalCliAgentInvocationOrigin, MEMORY_SCOPES, MemoryTombstoneReceipt, OpenTelemetryAgentEventSinkOptions, OpenTelemetryAgentTelemetry, PromptCommand, RIVUS_MEMORY_TOOL_ID, RIVUS_MEMORY_TOOL_PLUGIN_ID, RIVUS_MEMORY_TOOL_VERSION, RIVUS_RUNTIME_TOOL_IDS, RecoveryAction, RegisteredRivusSkill, RegisteredRivusTool, RivusHostToolDescriptor, RivusResolvedToolDescriptor, RivusRuntimeToolId, RivusSkillDescriptor, RivusSkillGrantSet, RivusToolDescriptor, RivusToolExecutionContext, RivusToolExecutor, RivusToolFactoryContext, RivusToolGrantSet, RivusToolIdempotency, RivusToolInputRejected, RivusToolRisk, RunIdGenerator, SessionKey, TelemetryContentRedactor, TelemetryContentRedactorOptions, TerminalAgentDomainEvent, WorkspaceInstructionSource, WorkspaceInstructionsDiagnostic, WorkspaceInstructionsDiagnosticCode, WorkspaceInstructionsRequest, WorkspaceInstructionsSourceError, WorkspaceInstructionsView, WorkspaceRootHandle, assembleAgentContext, createAgentConversationMessages, createAgentDomainEventHandler, createAgentDomainEventSink, createAgentDomainEventSinkFromCallback, createAgentHarnessClient, createAgentLoopModelExecutionEnd, createAgentLoopModelExecutionStart, createAgentLoopSkillExecutionEnd, createAgentLoopSkillExecutionStart, createAgentLoopTextDelta, createAgentLoopThinkingDelta, createAgentLoopToolExecutionEnd, createAgentLoopToolExecutionStart, createAgentLoopToolExecutionUpdate, createAgentLoopTurnStart, createAgentRunUpdateHandler, createAgentRuntime, createAgentTranscriptMessages, createAgentTranscriptTurn, createDefaultAgentHarness, createDefaultAgentHarnessClient, createDefaultAgentHarnessClientFromCallback, createDefaultAgentHarnessClientFromTextCallback, createDefaultAgentHarnessFromCallback, createDefaultAgentHarnessFromTextCallback, createDefaultAgentRuntime, createDefaultAgentRuntimeFromCallback, createDefaultAgentRuntimeFromTextCallback, createFixedClock, createJsonlAgentEventLog, createLangfuseAgentTelemetry, createLegacyAgentHarness as createAgentHarness, createLegacyAgentLoopFromCallback as createAgentLoopFromCallback, createLegacyAgentLoopPromptTransformer as createAgentLoopPromptTransformer, createLegacyAsyncIterableAgentLoop as createAsyncIterableAgentLoop, createLegacyCompactionService as createCompactionService, createLegacyEventAgentLoop as createEventAgentLoop, createLegacyInvocationAuthority as createInvocationAuthority, createLegacyMemoryNamespace as createMemoryNamespace, createLegacyProjectMemoryPromptPreparer as createProjectMemoryPromptPreparer, createLegacyRivusMemoryTool as createRivusMemoryTool, createLegacyRivusMemoryToolDescriptor as createRivusMemoryToolDescriptor, createLegacyTextAgentLoop as createTextAgentLoop, createLegacyTextAgentLoopFromCallback as createTextAgentLoopFromCallback, createLegacyToolInputDigest as createToolInputDigest, createLegacyToolOperationLedger as createToolOperationLedger, createOpenTelemetryAgentEventSink, createOpenTelemetryAgentTelemetry, createRecoveryAction, createRivusMemoryToolContract, createSequenceRunIds, createSystemClock, createTelemetryContentRedactor, createTestClock, createUuidRunIds, createWorkspaceRootHandle, evolveAgentRun, initialAgentRunState, isAgentToolExecutionEvent, isAssistantTextDeltaEvent, isAssistantThinkingDeltaEvent, isRivusRuntimeToolId, isTerminalAgentDomainEvent, isTerminalAgentRunPhase, normalizeLegacyStableJson as normalizeStableJson, replayAgentHistory, replayAgentTranscript, requiresLegacyToolApproval as requiresToolApproval, resolveLangfuseTelemetryConfig, restoreAgentHistory, restrictLegacyMemoryScopesForAudience as restrictMemoryScopesForAudience } from "@rivus/runtime";
|
|
4
|
+
import { InvalidProjectSkillCatalog, LegacyPiAgentLoopOptions as PiAgentLoopOptions, LegacyPiAgentSessionHandle as PiAgentSessionHandle, LegacyPiSdkAgentLoopOptions as PiSdkAgentLoopOptions, LegacyPiSessionRegistry as PiSessionRegistry, LegacyPiSessionRegistryOptions as PiSessionRegistryOptions, MergePiProviderBaseUrlOverrideOptions, PiAgentSession, PiAgentSessionEvent, PiCreateAgentSessionResult, ProjectSkillCatalogDiagnostic, ProjectSkillCatalogEntry, createLegacyPiAgentLoop as createPiAgentLoop, createLegacyPiSdkAgentLoop as createPiSdkAgentLoop, createLegacyPiSessionRegistry as createPiSessionRegistry, mergePiProviderBaseUrlOverride, validateProjectSkillCatalog, validateProjectSkillCommand } from "@rivus/runtime/pi";
|
|
5
|
+
|
|
6
|
+
//#region src/index.d.ts
|
|
7
|
+
/** Keep the legacy memory records open to consumer module augmentation. */
|
|
8
|
+
interface MemoryRecord extends LegacyMemoryRecord {}
|
|
9
|
+
/** Keep the legacy memory snapshots open to consumer module augmentation. */
|
|
10
|
+
interface AgentMemorySnapshot extends LegacyAgentMemorySnapshot {}
|
|
11
|
+
//#endregion
|
|
12
|
+
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, AgentMemorySnapshot, type AgentModelContentObserver, type AgentModelExecutionEnded, type AgentModelExecutionEvent, type AgentModelExecutionStarted, type AgentModelInputObservation, type AgentModelOutputObservation, type AgentModelUsage, type AgentPromptResult, type AgentRunAccepted, AgentRunCancelled, type 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 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, 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, createHumanInteractionModelChangeApproval, 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,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
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";
|
|
6
|
-
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";
|
|
7
|
-
import { a as createRivusPluginCatalog, n as assertRivusPluginConforms, o as resolveRivusAgentDefinition, r as createFakeRivusPlugin, t as RivusPluginConformanceError } from "./chunks/rivus-plugin-testkit.js";
|
|
1
|
+
import { n as assertRivusPluginConforms, r as createFakeRivusPlugin, t as RivusPluginConformanceError } from "./chunks/rivus-plugin-testkit.js";
|
|
2
|
+
import { AUTOMATION_PRESENTATION_SCHEMA_VERSION, AUTOMATION_SUPPRESSION_PREFIX, AgentInstanceBusy, AgentInstanceConflict, AgentMemoryError, 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, 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, InvalidRivusEndpointBinding, InvalidRivusPlugin, InvalidRivusProjectSpace, OpenClawEnvImportError, PluginStateConflict, RIVUS_PLUGIN_API_VERSION, RUN_PRESENTATION_SCHEMA_VERSION, RivusDaemonConfigError, RivusDeploymentAutomationReadinessError, RivusDeploymentBackgroundSessionReadinessError, RivusDeploymentDaemonLifecycleError, RivusDeploymentManifestError, RivusDeploymentReadinessError, RivusPluginLoadError, SessionSchedulerCapacityExceeded, SessionSchedulerDisposed, ToolInvocationDenied, UnsupportedFeishuCardAction, UnsupportedFeishuMessage, acceptsCardPresentationProgress, activeCardPresentation, appendBackgroundSessionInput, backgroundSessionToolIds, claimBackgroundSession, commitLegacyAutomationOutcome as commitAutomationOutcome, completeBackgroundSessionStep, completeBackgroundSessionStop, composeFeishuTopicPrompt, createAgentCommandFromFeishuCardAction, createAgentCommandFromFeishuMessage, createAgentHarnessPooledRuntime, createAgentInstanceRegistry, createAgentMemoryService, createAgentRuntimePool, createAgentsMdInstructionsProvider, createAutomationMandateStore, createAutomationPresentation, createBackgroundSession, createBackgroundSessionCard, createBackgroundSessionDeliveryStore, createBackgroundSessionHostTools, createBackgroundSessionKey, createBackgroundSessionRepository, createBackgroundSessionStepSourceMessageId, createBackgroundSessionSupervisor, createBackgroundSessionToolContracts, createCoalescingFeishuPublisher, createCompositeRivusDaemonTransport, createConfiguredFeishuAutomationCardSender, createConfiguredFeishuBackgroundSessionDelivery, createConfiguredFeishuCardKitPublisher, createConfiguredFeishuCardKitTargetCreator, createConfiguredFeishuCardRolloverRuntime, createConfiguredFeishuHumanInteractionPresenter, createConfiguredFeishuMessageReactionSender, createConfiguredFeishuOpenApiClient, createConfiguredFeishuTextReplySender, createConfiguredRivusDaemonBootstrap, createConfiguredRivusDeploymentDaemon, createDailyAutomationSchedule, createDelegationService, createDeliveryOutbox, 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, createHumanInteractionEndpointRegistry, createHumanInteractionModelChangeApproval, createHumanInteractionToolApprovalGateway, createInMemoryFeishuCardTargetRegistry, createInMemoryHumanInteractionRepository, createJsonFetchRequest, createJsonFileFeishuCardTargetRegistry, createJsonlHumanInteractionRepository, createLazyFeishuWebSocketEventDispatcher, createLegacyBackgroundSessionService as createBackgroundSessionService, createLegacyHumanInteractionService as createHumanInteractionService, createPluginStateStore, createPresentedValue, createRateLimitedFeishuPublisher, createRecoveryControl, createRivusAgentHost, createRivusDaemonProcess, createRivusDaemonShutdownController, createRivusDaemonStatusHttpServer, createRivusDaemonStatusReporter, createRivusDeploymentCliProcess, createRivusDeploymentDaemon, createRivusEnvFromOpenClawConfig, createRivusPluginCatalog, createRoutedHumanInteractionToolApprovalService, createRunPresentationProjector, createScheduledAutomation, createSessionScheduler, createSubagentCoordinator, createToolBroker, describeFeishuMessageIntake, extendBackgroundSessionDefinition, failBackgroundSessionStep, formatRivusEnvFile, hasInspectableRunProgress, intersectToolIds, isBackgroundSessionDue, isBackgroundSessionLeaseExpired, isBackgroundSessionState, isBackgroundSessionTerminalPhase, isBackgroundSessionToolId, isCardPresentationHandoffDue, loadNodeRivusPluginModule, loadRivusDaemonConfig, loadRivusDeployment, loadRivusDeploymentManifest, narrowBackgroundSessionDefinition, openJsonAutomationTickRepository, openJsonFeishuSessionStore, openJsonlAgentMemoryService, openJsonlBackgroundSessionDeliveryStore, openJsonlBackgroundSessionRepository, openJsonlFeishuCardDeliveryLedger, openJsonlFeishuInboxRepository, openJsonlRecoveryControl, openJsonlToolOperationLedger, parkBackgroundSessionForReconciliation, progressDeliveryId, readAutomationPresentation, readFeishuMessageContent, releaseBackgroundSessionLease, renewBackgroundSessionLease, requestBackgroundSessionStop, requeueInterruptedBackgroundSessionStep, resolveBackgroundSessionReconciliation, resolveBackgroundSessionSupervisorIntervalMs, resolveFeishuDeliveryChatId, resolveFeishuEndpointCredentials, resolveRivusAgentDefinition, resolveRivusProjectSpace, restoreConfiguredRivusDaemonBootstrap, runRivusDaemonCli, sessionIdFromSessionKey, shouldAcceptFeishuEndpointMessage, suspendBackgroundSession, terminalDeliveryId, transitionHumanInteraction, validateRivusDeploymentManifest } from "@rivus/gateway";
|
|
3
|
+
import { AgentContextBudgetExceeded, AgentEventHandlerFailed, AgentEventLogStoreError, AgentEventSinkFailed, AgentHarnessBusy, AgentLoopFailed, AgentRunCancelled, InvalidRecoveryAction, InvalidWorkspaceRoot, LangfuseTelemetryConfigError, LegacyCompactionError as CompactionError, LegacyInvalidInvocationAuthority as InvalidInvocationAuthority, LegacyInvalidStableJson as InvalidStableJson, LegacyInvalidToolInput as InvalidToolInput, MEMORY_SCOPES, RIVUS_MEMORY_TOOL_ID, RIVUS_MEMORY_TOOL_PLUGIN_ID, RIVUS_MEMORY_TOOL_VERSION, RIVUS_RUNTIME_TOOL_IDS, RivusToolInputRejected, WorkspaceInstructionsSourceError, assembleAgentContext, createAgentConversationMessages, createAgentDomainEventHandler, createAgentDomainEventSink, createAgentDomainEventSinkFromCallback, createAgentHarnessClient, createAgentLoopModelExecutionEnd, createAgentLoopModelExecutionStart, createAgentLoopSkillExecutionEnd, createAgentLoopSkillExecutionStart, createAgentLoopTextDelta, createAgentLoopThinkingDelta, createAgentLoopToolExecutionEnd, createAgentLoopToolExecutionStart, createAgentLoopToolExecutionUpdate, createAgentLoopTurnStart, createAgentRunUpdateHandler, createAgentRuntime, createAgentTranscriptMessages, createAgentTranscriptTurn, createDefaultAgentHarness, createDefaultAgentHarnessClient, createDefaultAgentHarnessClientFromCallback, createDefaultAgentHarnessClientFromTextCallback, createDefaultAgentHarnessFromCallback, createDefaultAgentHarnessFromTextCallback, createDefaultAgentRuntime, createDefaultAgentRuntimeFromCallback, createDefaultAgentRuntimeFromTextCallback, createFixedClock, createJsonlAgentEventLog, createLangfuseAgentTelemetry, createLegacyAgentHarness as createAgentHarness, createLegacyAgentLoopFromCallback as createAgentLoopFromCallback, createLegacyAgentLoopPromptTransformer as createAgentLoopPromptTransformer, createLegacyAsyncIterableAgentLoop as createAsyncIterableAgentLoop, createLegacyCompactionService as createCompactionService, createLegacyEventAgentLoop as createEventAgentLoop, createLegacyInvocationAuthority as createInvocationAuthority, createLegacyMemoryNamespace as createMemoryNamespace, createLegacyProjectMemoryPromptPreparer as createProjectMemoryPromptPreparer, createLegacyRivusMemoryTool as createRivusMemoryTool, createLegacyRivusMemoryToolDescriptor as createRivusMemoryToolDescriptor, createLegacyTextAgentLoop as createTextAgentLoop, createLegacyTextAgentLoopFromCallback as createTextAgentLoopFromCallback, createLegacyToolInputDigest as createToolInputDigest, createLegacyToolOperationLedger as createToolOperationLedger, createOpenTelemetryAgentEventSink, createOpenTelemetryAgentTelemetry, createRecoveryAction, createRivusMemoryToolContract, createSequenceRunIds, createSystemClock, createTelemetryContentRedactor, createTestClock, createUuidRunIds, createWorkspaceRootHandle, evolveAgentRun, initialAgentRunState, isAgentToolExecutionEvent, isAssistantTextDeltaEvent, isAssistantThinkingDeltaEvent, isRivusRuntimeToolId, isTerminalAgentDomainEvent, isTerminalAgentRunPhase, normalizeLegacyStableJson as normalizeStableJson, replayAgentHistory, replayAgentTranscript, requiresLegacyToolApproval as requiresToolApproval, resolveLangfuseTelemetryConfig, restoreAgentHistory, restrictLegacyMemoryScopesForAudience as restrictMemoryScopesForAudience } from "@rivus/runtime";
|
|
4
|
+
import { InvalidProjectSkillCatalog, createLegacyPiAgentLoop as createPiAgentLoop, createLegacyPiSdkAgentLoop as createPiSdkAgentLoop, createLegacyPiSessionRegistry as createPiSessionRegistry, mergePiProviderBaseUrlOverride, validateProjectSkillCatalog, validateProjectSkillCommand } from "@rivus/runtime/pi";
|
|
8
5
|
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, createHumanInteractionModelChangeApproval, 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,92 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Readable, Writable } from "node:stream";
|
|
3
|
-
|
|
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
|
|
37
|
-
declare const BACKGROUND_SESSION_MCP_SERVER_NAME = "rivus-background-sessions";
|
|
38
|
-
declare const BACKGROUND_SESSION_MCP_SERVER_VERSION = "1.0.0";
|
|
39
|
-
interface BackgroundSessionMcpServerOptions {
|
|
40
|
-
readonly capability: string;
|
|
41
|
-
readonly controlUrl: string;
|
|
42
|
-
readonly controlToken: string;
|
|
43
|
-
readonly enabledTools?: ReadonlyArray<BackgroundSessionControlCommand>;
|
|
44
|
-
readonly fetch?: typeof fetch;
|
|
45
|
-
readonly input?: Readable;
|
|
46
|
-
readonly output?: Writable;
|
|
47
|
-
readonly serverName?: string;
|
|
48
|
-
readonly serverVersion?: string;
|
|
49
|
-
}
|
|
50
|
-
interface BackgroundSessionMcpServer {
|
|
51
|
-
run(): Promise<void>;
|
|
52
|
-
}
|
|
53
|
-
declare class BackgroundSessionMcpError extends Error {
|
|
54
|
-
readonly name = "BackgroundSessionMcpError";
|
|
55
|
-
}
|
|
56
|
-
declare function createBackgroundSessionMcpServer(options: BackgroundSessionMcpServerOptions): BackgroundSessionMcpServer;
|
|
57
|
-
//#endregion
|
|
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
|
|
72
|
-
interface BackgroundSessionControlHttpServerOptions {
|
|
73
|
-
readonly control: BackgroundSessionControl;
|
|
74
|
-
readonly host?: string;
|
|
75
|
-
readonly port: number;
|
|
76
|
-
readonly status?: () => unknown;
|
|
77
|
-
readonly token: string;
|
|
78
|
-
}
|
|
79
|
-
interface BackgroundSessionControlHttpServer {
|
|
80
|
-
port(): number;
|
|
81
|
-
issueCapability(context: BackgroundSessionControlContext): string;
|
|
82
|
-
close(): Promise<void>;
|
|
83
|
-
start(): Promise<void>;
|
|
84
|
-
}
|
|
85
|
-
declare class BackgroundSessionControlHttpError extends Error {
|
|
86
|
-
readonly statusCode: number;
|
|
87
|
-
readonly name = "BackgroundSessionControlHttpError";
|
|
88
|
-
constructor(statusCode: number, message: string);
|
|
89
|
-
}
|
|
90
|
-
declare function createBackgroundSessionControlHttpServer(options: BackgroundSessionControlHttpServerOptions): BackgroundSessionControlHttpServer;
|
|
91
|
-
//#endregion
|
|
1
|
+
import { BACKGROUND_SESSION_MCP_SERVER_NAME, BACKGROUND_SESSION_MCP_SERVER_VERSION, BackgroundSessionControl, BackgroundSessionControlCommand, BackgroundSessionControlContext, BackgroundSessionControlError, BackgroundSessionControlHttpError, BackgroundSessionControlHttpServer, BackgroundSessionControlHttpServerOptions, BackgroundSessionControlOrigin, BackgroundSessionMcpError, BackgroundSessionMcpServer, BackgroundSessionMcpServerOptions, createBackgroundSessionControl, createBackgroundSessionControlHttpServer, createBackgroundSessionMcpServer, runBackgroundSessionMcpServer, toControlContext } from "@rivus/gateway/mcp";
|
|
92
2
|
export { BACKGROUND_SESSION_MCP_SERVER_NAME, BACKGROUND_SESSION_MCP_SERVER_VERSION, type BackgroundSessionControl, type BackgroundSessionControlCommand, type BackgroundSessionControlContext, BackgroundSessionControlError, BackgroundSessionControlHttpError, type BackgroundSessionControlHttpServer, type BackgroundSessionControlHttpServerOptions, type BackgroundSessionControlOrigin, BackgroundSessionMcpError, type BackgroundSessionMcpServer, type BackgroundSessionMcpServerOptions, createBackgroundSessionControl, createBackgroundSessionControlHttpServer, createBackgroundSessionMcpServer, runBackgroundSessionMcpServer, toControlContext };
|