@rivus/agent 0.10.3 → 0.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/acp.d.ts +6 -1
- package/dist/acp.js +121 -29
- package/dist/agent-loop.d.ts +8 -1
- package/dist/index.d.ts +186 -23
- package/dist/index.js +869 -250
- package/dist/rivus-daemon-cli.js +6 -0
- package/examples/pi-feishu-deployment.bootstrap.ts +19 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as createAgentTranscriptMessages, A as createAgentLoopModelExecutionEnd, At as AssistantTextDelta, B as createEventAgentLoop, C as AgentLoopToolExecutionUpdateOptions, Ct as AgentSkillExecutionStarted, D as TextAgentLoopCallback, Dt as AgentToolExecutionUpdated, E as EventAgentLoopOptions, Et as AgentToolExecutionStarted, F as createAgentLoopThinkingDelta, Ft as isAssistantTextDeltaEvent, G as FeishuAgentInvocationOrigin, H as createTextAgentLoopFromCallback, I as createAgentLoopToolExecutionEnd, It as isAssistantThinkingDeltaEvent, J as AgentTranscript, K as LocalCliAgentInvocationOrigin, L as createAgentLoopToolExecutionStart, Lt as isTerminalAgentDomainEvent, M as createAgentLoopSkillExecutionEnd, Mt as SessionKey, N as createAgentLoopSkillExecutionStart, Nt as TerminalAgentDomainEvent, O as TextAgentLoopOptions, Ot as AgentTurnCompleted, P as createAgentLoopTextDelta, Pt as isAgentToolExecutionEvent, Q as createAgentConversationMessages, R as createAgentLoopToolExecutionUpdate, S as AgentLoopToolExecutionUpdate, St as AgentSkillExecutionEnded, T as AsyncIterableAgentLoopOptions, Tt as AgentToolExecutionEvent, U as AgentInvocationOrigin, V as createTextAgentLoop, W as AutomationAgentInvocationOrigin, X as AgentTranscriptMessageRole, Y as AgentTranscriptMessage, Z as AgentTranscriptTurn, _ as AgentLoopThinkingDelta, _t as AgentRunAccepted, a as AgentLoopEvent, at as replayAgentHistory, b as AgentLoopToolExecutionStart, bt as AgentRunFailed, c as AgentLoopModelExecutionEnd, ct as AgentSkillExecutionState, d as AgentLoopModelExecutionStartOptions, dt as isTerminalAgentRunPhase, et as createAgentTranscriptTurn, f as AgentLoopSkillExecutionEnd, ft as AgentDomainEvent, g as AgentLoopTextDelta, gt as AgentModelUsage, h as AgentLoopSkillExecutionStartOptions, ht as AgentModelExecutionStarted, i as AgentLoopCallbackResult, it as AgentSessionSummary, j as createAgentLoopModelExecutionStart, jt as AssistantThinkingDelta, k as createAgentLoopFromCallback, kt as AgentTurnStarted, l as AgentLoopModelExecutionEndOptions, lt as evolveAgentRun, m as AgentLoopSkillExecutionStart, mt as AgentModelExecutionEvent, n as AgentLoopCallback, nt as AgentHistory, o as AgentLoopEventLike, ot as AgentRunPhase, p as AgentLoopSkillExecutionEndOptions, pt as AgentModelExecutionEnded, q as AgentConversationMessagesOptions, r as AgentLoopCallbackOutput, rt as AgentRunSummary, s as AgentLoopInput, st as AgentRunState, t as AgentLoop, tt as replayAgentTranscript, u as AgentLoopModelExecutionStart, ut as initialAgentRunState, v as AgentLoopToolExecutionEnd, vt as AgentRunCancelled$1, w as AgentSteeringChannel, wt as AgentToolExecutionEnded, x as AgentLoopToolExecutionStartOptions, xt as AgentRunId, y as AgentLoopToolExecutionEndOptions, yt as AgentRunCompleted, z as createAsyncIterableAgentLoop } from "./agent-loop.js";
|
|
2
2
|
import { a as MemoryBinding, c as MemoryScope, d as RIVUS_MEMORY_TOOL_PLUGIN_ID, f as RIVUS_MEMORY_TOOL_VERSION, h as restrictMemoryScopesForAudience, i as MEMORY_SCOPES, l as MemoryState, m as createRivusMemoryToolContract, n as AgentMemoryIdentity, o as MemoryInvocationAudience, p as createMemoryNamespace, r as AgentMemorySnapshot, s as MemoryRecord, t as AgentMemoryAuthority, u as RIVUS_MEMORY_TOOL_ID } from "./agent-memory.js";
|
|
3
3
|
import { A as createRecoveryAction, C as ToolOperationReconciliation, D as createToolOperationLedger, E as ToolOperationState, O as InvalidRecoveryAction, S as ToolOperationLedger, T as ToolOperationRecord, _ as InvocationAuthorityRef, b as ToolOperationBinding, c as ToolApprovalRequest, d as ToolBrokerOptions, f as ToolExecutionRequest, g as InvocationAuthority, h as InvalidInvocationAuthority, k as RecoveryAction, l as ToolApprovalService, m as createToolBroker, o as AuthorizationPolicyProvider, p as ToolInvocationDenied, s as AuthorizationPolicyState, t as PiToolApprovalGateway, u as ToolBroker, v as createInvocationAuthority, w as ToolOperationReconciliationOutcome, x as ToolOperationInspectResult, y as ToolOperationBeginResult } from "./pi-tool-proxy.js";
|
|
4
4
|
import { A as RivusToolRisk, C as RivusToolDescriptor, D as RivusToolGrantSet, E as RivusToolFactoryContext, O as RivusToolIdempotency, S as RivusSkillGrantSet, T as RivusToolExecutor, _ as RivusPluginCatalogSnapshot, a as RegisteredRivusPlugin, b as RivusResolvedToolDescriptor, c as ResolvedRivusAgentDefinition, d as RivusAutomationInput, f as RivusAutomationTemplate, g as RivusPluginCatalog, h as RivusPlugin, i as RegisteredRivusAutomation, j as requiresToolApproval, k as RivusToolInputRejected, l as RivusAgentDeployment, m as RivusHostToolDescriptor, n as RIVUS_PLUGIN_API_VERSION, o as RegisteredRivusSkill, p as RivusAutomationTickContext, r as RegisteredRivusAgentProfile, s as RegisteredRivusTool, t as InvalidRivusPlugin, u as RivusAgentProfile, v as RivusPluginManifest, w as RivusToolExecutionContext, x as RivusSkillDescriptor, y as RivusPluginRegistry } from "./rivus-plugin.js";
|
|
@@ -129,6 +129,7 @@ type AgentHarnessError = AgentHarnessBusy | AgentLoopFailed | AgentEventSinkFail
|
|
|
129
129
|
interface AgentHarness {
|
|
130
130
|
cancelActiveRun(reason?: string): Effect.Effect<boolean>;
|
|
131
131
|
cancelRun(runId: AgentRunId, reason?: string): Effect.Effect<boolean>;
|
|
132
|
+
steerRun(runId: AgentRunId, text: string): Effect.Effect<boolean>;
|
|
132
133
|
forSession(sessionKey: SessionKey): AgentSessionHandle;
|
|
133
134
|
getActiveRun(): ActiveAgentRun | undefined;
|
|
134
135
|
getActiveRunId(): AgentRunId | undefined;
|
|
@@ -168,6 +169,7 @@ interface AgentSessionHandle {
|
|
|
168
169
|
readonly sessionKey: SessionKey;
|
|
169
170
|
cancelActiveRun(reason?: string): Effect.Effect<boolean>;
|
|
170
171
|
cancelRun(runId: AgentRunId, reason?: string): Effect.Effect<boolean>;
|
|
172
|
+
steerRun(runId: AgentRunId, text: string): Effect.Effect<boolean>;
|
|
171
173
|
getActiveRun(): ActiveAgentRun | undefined;
|
|
172
174
|
getActiveRunState(): AgentRunState | undefined;
|
|
173
175
|
getAvailability(): AgentSessionAvailability;
|
|
@@ -490,10 +492,50 @@ declare class InvalidFeishuSessionReference {
|
|
|
490
492
|
declare function createFeishuSessionKey(reference: FeishuSessionReference): Effect.Effect<SessionKey, InvalidFeishuSessionReference>;
|
|
491
493
|
declare function createFeishuConversationId(reference: FeishuConversationReference): Effect.Effect<string, InvalidFeishuSessionReference>;
|
|
492
494
|
//#endregion
|
|
495
|
+
//#region src/application/feishu/feishu-session-store.d.ts
|
|
496
|
+
interface FeishuSessionEpochRecord {
|
|
497
|
+
readonly baseSessionKey: string;
|
|
498
|
+
readonly generation: number;
|
|
499
|
+
}
|
|
500
|
+
interface FeishuSessionResetResult {
|
|
501
|
+
readonly generation: number;
|
|
502
|
+
readonly previousSessionKey: string;
|
|
503
|
+
readonly sessionKey: string;
|
|
504
|
+
}
|
|
505
|
+
interface FeishuSessionStore {
|
|
506
|
+
current(baseSessionKey: string): Effect.Effect<string, Error>;
|
|
507
|
+
reset(baseSessionKey: string): Effect.Effect<FeishuSessionResetResult, Error>;
|
|
508
|
+
}
|
|
509
|
+
interface FeishuSessionStoreOptions {
|
|
510
|
+
readonly initial?: ReadonlyArray<FeishuSessionEpochRecord>;
|
|
511
|
+
readonly persist?: (records: ReadonlyArray<FeishuSessionEpochRecord>) => Promise<void>;
|
|
512
|
+
}
|
|
513
|
+
declare function createFeishuSessionStore(options?: FeishuSessionStoreOptions): FeishuSessionStore;
|
|
514
|
+
//#endregion
|
|
515
|
+
//#region src/application/feishu/feishu-message-content.d.ts
|
|
516
|
+
declare class UnsupportedFeishuMessage extends Error {
|
|
517
|
+
readonly messageType: string;
|
|
518
|
+
readonly name = "UnsupportedFeishuMessage";
|
|
519
|
+
readonly _tag = "UnsupportedFeishuMessage";
|
|
520
|
+
constructor(messageType: string);
|
|
521
|
+
}
|
|
522
|
+
declare class InvalidFeishuMessageContent extends Error {
|
|
523
|
+
readonly reason: string;
|
|
524
|
+
readonly name = "InvalidFeishuMessageContent";
|
|
525
|
+
readonly _tag = "InvalidFeishuMessageContent";
|
|
526
|
+
constructor(reason: string);
|
|
527
|
+
}
|
|
528
|
+
interface FeishuMessageContentInput {
|
|
529
|
+
readonly content: string;
|
|
530
|
+
readonly messageType: string;
|
|
531
|
+
}
|
|
532
|
+
declare function readFeishuMessageContent(input: FeishuMessageContentInput): Effect.Effect<string, UnsupportedFeishuMessage | InvalidFeishuMessageContent>;
|
|
533
|
+
//#endregion
|
|
493
534
|
//#region src/application/feishu/feishu-message-intake.d.ts
|
|
494
535
|
interface FeishuMessageIntakeOptions {
|
|
495
536
|
readonly agentId: string;
|
|
496
537
|
readonly botOpenId?: string;
|
|
538
|
+
readonly sessionStore?: FeishuSessionStore;
|
|
497
539
|
}
|
|
498
540
|
interface FeishuReceiveMessagePayload {
|
|
499
541
|
readonly header?: {
|
|
@@ -508,10 +550,13 @@ interface FeishuReceiveMessagePayload {
|
|
|
508
550
|
readonly tenant_key?: string;
|
|
509
551
|
};
|
|
510
552
|
readonly message: {
|
|
553
|
+
readonly create_time?: string;
|
|
511
554
|
readonly message_id: string;
|
|
512
555
|
readonly chat_id: string;
|
|
513
556
|
readonly chat_type?: string;
|
|
514
557
|
readonly thread_id?: string;
|
|
558
|
+
readonly parent_id?: string;
|
|
559
|
+
readonly root_id?: string;
|
|
515
560
|
readonly message_type: string;
|
|
516
561
|
readonly mentions?: ReadonlyArray<{
|
|
517
562
|
readonly id?: Readonly<Record<string, string>>;
|
|
@@ -528,16 +573,23 @@ interface FeishuPromptAgentCommand {
|
|
|
528
573
|
readonly command: PromptCommand;
|
|
529
574
|
readonly type: "prompt";
|
|
530
575
|
}
|
|
576
|
+
interface FeishuNewSessionCommand {
|
|
577
|
+
readonly messageId: string;
|
|
578
|
+
readonly previousSessionKey: SessionKey;
|
|
579
|
+
readonly sessionKey: SessionKey;
|
|
580
|
+
readonly type: "new_session";
|
|
581
|
+
}
|
|
531
582
|
interface FeishuCancelRunCommand {
|
|
532
583
|
readonly type: "cancel_run";
|
|
533
584
|
readonly messageId: string;
|
|
534
|
-
|
|
585
|
+
/** Omitted when `/cancel` targets the active run in this Feishu session. */
|
|
586
|
+
readonly runId?: AgentRunId;
|
|
535
587
|
readonly reason: string;
|
|
536
588
|
readonly sessionKey?: SessionKey;
|
|
537
589
|
readonly token?: string;
|
|
538
590
|
}
|
|
539
|
-
type FeishuAgentCommand = FeishuPromptAgentCommand | FeishuCancelRunCommand;
|
|
540
|
-
type FeishuMessageIntakeSummary = FeishuPromptMessageIntakeSummary | FeishuCancelMessageIntakeSummary;
|
|
591
|
+
type FeishuAgentCommand = FeishuPromptAgentCommand | FeishuNewSessionCommand | FeishuCancelRunCommand;
|
|
592
|
+
type FeishuMessageIntakeSummary = FeishuPromptMessageIntakeSummary | FeishuNewSessionMessageIntakeSummary | FeishuCancelMessageIntakeSummary;
|
|
541
593
|
interface FeishuMessageIntakeBaseSummary {
|
|
542
594
|
readonly messageId: string;
|
|
543
595
|
readonly sessionKey: SessionKey;
|
|
@@ -547,22 +599,14 @@ interface FeishuPromptMessageIntakeSummary extends FeishuMessageIntakeBaseSummar
|
|
|
547
599
|
readonly commandType: "prompt";
|
|
548
600
|
readonly text: string;
|
|
549
601
|
}
|
|
602
|
+
interface FeishuNewSessionMessageIntakeSummary extends FeishuMessageIntakeBaseSummary {
|
|
603
|
+
readonly commandType: "new_session";
|
|
604
|
+
readonly previousSessionKey: SessionKey;
|
|
605
|
+
}
|
|
550
606
|
interface FeishuCancelMessageIntakeSummary extends FeishuMessageIntakeBaseSummary {
|
|
551
607
|
readonly commandType: "cancel_run";
|
|
552
608
|
readonly reason: string;
|
|
553
|
-
readonly runId
|
|
554
|
-
}
|
|
555
|
-
declare class UnsupportedFeishuMessage extends Error {
|
|
556
|
-
readonly messageType: string;
|
|
557
|
-
readonly name = "UnsupportedFeishuMessage";
|
|
558
|
-
readonly _tag = "UnsupportedFeishuMessage";
|
|
559
|
-
constructor(messageType: string);
|
|
560
|
-
}
|
|
561
|
-
declare class InvalidFeishuMessageContent extends Error {
|
|
562
|
-
readonly reason: string;
|
|
563
|
-
readonly name = "InvalidFeishuMessageContent";
|
|
564
|
-
readonly _tag = "InvalidFeishuMessageContent";
|
|
565
|
-
constructor(reason: string);
|
|
609
|
+
readonly runId?: AgentRunId;
|
|
566
610
|
}
|
|
567
611
|
type FeishuMessageIntakeError = UnsupportedFeishuMessage | InvalidFeishuMessageContent | InvalidFeishuSessionReference;
|
|
568
612
|
declare function createAgentCommandFromFeishuMessage(payload: FeishuReceiveMessagePayload, options: FeishuMessageIntakeOptions): Effect.Effect<FeishuAgentCommand, FeishuMessageIntakeError>;
|
|
@@ -612,8 +656,20 @@ interface FeishuResolveInteractionCommand {
|
|
|
612
656
|
type FeishuCardActionCommand = FeishuCancelRunCommand | FeishuResolveInteractionCommand;
|
|
613
657
|
declare function createAgentCommandFromFeishuCardAction(payload: FeishuCardActionTriggerPayload): Effect.Effect<FeishuCardActionCommand, FeishuCardActionIntakeError>;
|
|
614
658
|
//#endregion
|
|
659
|
+
//#region src/application/feishu/feishu-prompt-context.d.ts
|
|
660
|
+
interface FeishuPromptContextInput {
|
|
661
|
+
readonly payload: FeishuReceiveMessagePayload;
|
|
662
|
+
readonly text: string;
|
|
663
|
+
}
|
|
664
|
+
/** Resolves conversation context only when a message is about to start a run. */
|
|
665
|
+
interface FeishuPromptContextResolver {
|
|
666
|
+
resolve(input: FeishuPromptContextInput): Effect.Effect<string, unknown>;
|
|
667
|
+
}
|
|
668
|
+
declare function composeFeishuTopicPrompt(currentText: string, rootText: string): string;
|
|
669
|
+
//#endregion
|
|
615
670
|
//#region src/application/feishu/feishu-agent-daemon.d.ts
|
|
616
671
|
interface FeishuAgentDaemonBaseOptions {
|
|
672
|
+
readonly acknowledgeSteering?: (messageId: string) => Effect.Effect<void, unknown>;
|
|
617
673
|
readonly agentId: string;
|
|
618
674
|
readonly botOpenId?: string;
|
|
619
675
|
readonly dedupe?: boolean;
|
|
@@ -622,7 +678,10 @@ interface FeishuAgentDaemonBaseOptions {
|
|
|
622
678
|
readonly prepareRun?: (run: FeishuAgentRunPreparation) => Effect.Effect<void, unknown>;
|
|
623
679
|
readonly publish: (action: FeishuStreamAction) => Effect.Effect<void, unknown>;
|
|
624
680
|
readonly publishRunUpdate?: AgentRunUpdateHandler;
|
|
681
|
+
readonly reply?: (messageId: string, text: string) => Effect.Effect<void, unknown>;
|
|
682
|
+
readonly promptContext?: FeishuPromptContextResolver;
|
|
625
683
|
readonly resolveInvocation?: (payload: FeishuReceiveMessagePayload, conversationId: string) => AgentInvocationOrigin;
|
|
684
|
+
readonly sessionStore?: FeishuSessionStore;
|
|
626
685
|
}
|
|
627
686
|
type FeishuAgentDaemonOptions = FeishuAgentDaemonBaseOptions & ({
|
|
628
687
|
readonly execution: FeishuAgentExecution;
|
|
@@ -636,11 +695,23 @@ interface FeishuAgentExecutionResult {
|
|
|
636
695
|
readonly runId: AgentRunId;
|
|
637
696
|
}
|
|
638
697
|
interface FeishuAgentExecution {
|
|
698
|
+
cancelActiveRun(input: {
|
|
699
|
+
readonly reason: string;
|
|
700
|
+
readonly sessionKey: SessionKey;
|
|
701
|
+
}): Effect.Effect<AgentRunId | undefined, unknown>;
|
|
639
702
|
cancelRun(input: {
|
|
640
703
|
readonly reason: string;
|
|
641
704
|
readonly runId: AgentRunId;
|
|
642
705
|
readonly sessionKey?: SessionKey;
|
|
643
706
|
}): Effect.Effect<boolean, unknown>;
|
|
707
|
+
/** Routes a message into the active run without creating a second run/card. */
|
|
708
|
+
steerRun(input: {
|
|
709
|
+
readonly sessionKey: SessionKey;
|
|
710
|
+
readonly text: string;
|
|
711
|
+
}): Effect.Effect<{
|
|
712
|
+
readonly runId: AgentRunId;
|
|
713
|
+
readonly steered: true;
|
|
714
|
+
} | undefined, unknown>;
|
|
644
715
|
promptWithUpdates(command: PromptCommand, onUpdate: AgentRunUpdateHandler): Effect.Effect<FeishuAgentExecutionResult, unknown>;
|
|
645
716
|
}
|
|
646
717
|
interface FeishuAgentRunPreparation {
|
|
@@ -663,25 +734,37 @@ interface FeishuAgentDaemonSkippedResult {
|
|
|
663
734
|
interface FeishuAgentDaemonCancelResult {
|
|
664
735
|
readonly cancelled: boolean;
|
|
665
736
|
readonly messageId: string;
|
|
666
|
-
readonly runId
|
|
737
|
+
readonly runId?: AgentRunId;
|
|
667
738
|
readonly reason?: "not_active";
|
|
668
739
|
}
|
|
740
|
+
interface FeishuAgentDaemonSteeredResult {
|
|
741
|
+
readonly messageId: string;
|
|
742
|
+
readonly runId: AgentRunId;
|
|
743
|
+
readonly steered: true;
|
|
744
|
+
}
|
|
669
745
|
interface FeishuAgentDaemonInteractionResult {
|
|
670
746
|
readonly interaction: HumanInteraction;
|
|
671
747
|
readonly interactionId: string;
|
|
672
748
|
readonly messageId: string;
|
|
673
749
|
readonly resolved: true;
|
|
674
750
|
}
|
|
751
|
+
interface FeishuAgentDaemonSessionResetResult {
|
|
752
|
+
readonly messageId: string;
|
|
753
|
+
readonly previousSessionKey: SessionKey;
|
|
754
|
+
readonly sessionKey: SessionKey;
|
|
755
|
+
readonly reset: true;
|
|
756
|
+
}
|
|
675
757
|
interface FeishuHumanInteractionActions {
|
|
676
758
|
resolve(input: ResolveHumanInteractionInput): Effect.Effect<HumanInteraction, unknown>;
|
|
677
759
|
}
|
|
678
|
-
type FeishuAgentDaemonHandleResult = FeishuAgentDaemonRunResult | FeishuAgentDaemonSkippedResult | FeishuAgentDaemonCancelResult | FeishuAgentDaemonInteractionResult;
|
|
760
|
+
type FeishuAgentDaemonHandleResult = FeishuAgentDaemonRunResult | FeishuAgentDaemonSkippedResult | FeishuAgentDaemonCancelResult | FeishuAgentDaemonSteeredResult | FeishuAgentDaemonInteractionResult | FeishuAgentDaemonSessionResetResult;
|
|
679
761
|
type FeishuAgentMessageSideEffects = "enabled" | "disabled";
|
|
680
762
|
interface FeishuAgentDaemonHandleMessageOptions {
|
|
681
763
|
readonly sideEffects?: FeishuAgentMessageSideEffects;
|
|
682
764
|
}
|
|
683
765
|
interface FeishuAgentDaemon {
|
|
684
766
|
handleCardAction(payload: FeishuCardActionTriggerPayload): Effect.Effect<FeishuAgentDaemonHandleResult, unknown>;
|
|
767
|
+
trySteerMessage(payload: FeishuReceiveMessagePayload): Effect.Effect<FeishuAgentDaemonHandleResult | undefined, unknown>;
|
|
685
768
|
handleMessage(payload: FeishuReceiveMessagePayload, options?: FeishuAgentDaemonHandleMessageOptions): Effect.Effect<FeishuAgentDaemonHandleResult, unknown>;
|
|
686
769
|
}
|
|
687
770
|
declare function createFeishuAgentDaemon(options: FeishuAgentDaemonOptions): FeishuAgentDaemon;
|
|
@@ -725,6 +808,12 @@ interface FeishuInboxRepository {
|
|
|
725
808
|
readonly leaseId: string;
|
|
726
809
|
readonly now: string;
|
|
727
810
|
}): Effect.Effect<FeishuInboxDelivery | undefined, unknown>;
|
|
811
|
+
claimById(input: {
|
|
812
|
+
readonly id: string;
|
|
813
|
+
readonly leaseExpiresAt: string;
|
|
814
|
+
readonly leaseId: string;
|
|
815
|
+
readonly now: string;
|
|
816
|
+
}): Effect.Effect<FeishuInboxDelivery | undefined, unknown>;
|
|
728
817
|
complete(input: {
|
|
729
818
|
readonly completedAt: string;
|
|
730
819
|
readonly id: string;
|
|
@@ -747,6 +836,11 @@ interface FeishuInboxRepository {
|
|
|
747
836
|
readonly id: string;
|
|
748
837
|
readonly recovery: RecoveryAction;
|
|
749
838
|
}): Effect.Effect<FeishuInboxDelivery, unknown>;
|
|
839
|
+
release(input: {
|
|
840
|
+
readonly availableAt: string;
|
|
841
|
+
readonly id: string;
|
|
842
|
+
readonly leaseId: string;
|
|
843
|
+
}): Effect.Effect<void, unknown>;
|
|
750
844
|
}
|
|
751
845
|
interface FeishuInboxRepositoryStateOptions {
|
|
752
846
|
readonly initial?: ReadonlyArray<FeishuInboxDelivery>;
|
|
@@ -843,6 +937,12 @@ interface JsonlFeishuInboxRepositoryOptions {
|
|
|
843
937
|
}
|
|
844
938
|
declare function openJsonlFeishuInboxRepository(options: JsonlFeishuInboxRepositoryOptions): Promise<FeishuInboxRepository>;
|
|
845
939
|
//#endregion
|
|
940
|
+
//#region src/infrastructure/persistence/json-feishu-session-store.d.ts
|
|
941
|
+
interface OpenJsonFeishuSessionStoreOptions {
|
|
942
|
+
readonly filePath: string;
|
|
943
|
+
}
|
|
944
|
+
declare function openJsonFeishuSessionStore(options: OpenJsonFeishuSessionStoreOptions): Promise<FeishuSessionStore>;
|
|
945
|
+
//#endregion
|
|
846
946
|
//#region src/application/host/agent-instance-registry.d.ts
|
|
847
947
|
interface AgentInstanceRecord {
|
|
848
948
|
readonly agentId: string;
|
|
@@ -888,9 +988,15 @@ interface AgentRuntimeCancellation {
|
|
|
888
988
|
readonly runId: AgentRunId;
|
|
889
989
|
readonly sessionKey: SessionKey;
|
|
890
990
|
}
|
|
991
|
+
interface AgentRuntimeSteering {
|
|
992
|
+
readonly runId: AgentRunId;
|
|
993
|
+
readonly sessionKey: SessionKey;
|
|
994
|
+
readonly text: string;
|
|
995
|
+
}
|
|
891
996
|
interface PooledAgentRuntime {
|
|
892
997
|
readonly concurrency?: "managed";
|
|
893
998
|
cancel?(input: AgentRuntimeCancellation): Promise<boolean>;
|
|
999
|
+
steer?(input: AgentRuntimeSteering): Promise<boolean>;
|
|
894
1000
|
run(input: AgentRuntimeInput): Promise<unknown>;
|
|
895
1001
|
dispose?(): Promise<void> | void;
|
|
896
1002
|
}
|
|
@@ -902,6 +1008,7 @@ interface AgentRuntimePoolOptions {
|
|
|
902
1008
|
interface AgentRuntimePool {
|
|
903
1009
|
readonly registry: AgentInstanceRegistry;
|
|
904
1010
|
cancel(instance: AgentInstanceRecord, input: AgentRuntimeCancellation): Promise<boolean>;
|
|
1011
|
+
steer(instance: AgentInstanceRecord, input: AgentRuntimeSteering): Promise<boolean>;
|
|
905
1012
|
run(instance: AgentInstanceRecord, input: AgentRuntimeInput): Promise<unknown>;
|
|
906
1013
|
disposeAll(): Promise<void>;
|
|
907
1014
|
}
|
|
@@ -1162,6 +1269,12 @@ interface FeishuMessageQueueOptions {
|
|
|
1162
1269
|
readonly clock?: {
|
|
1163
1270
|
readonly now: () => string;
|
|
1164
1271
|
};
|
|
1272
|
+
/**
|
|
1273
|
+
* Applies cancellation, session reset, or steering immediately after the
|
|
1274
|
+
* message is durably admitted. Returning undefined leaves it on the prompt
|
|
1275
|
+
* lane; returning a result completes the durable delivery.
|
|
1276
|
+
*/
|
|
1277
|
+
readonly handleControl?: (payload: FeishuReceiveMessagePayload) => Effect.Effect<FeishuAgentDaemonHandleResult | undefined, unknown>;
|
|
1165
1278
|
readonly handleMessage: (payload: FeishuReceiveMessagePayload, options?: FeishuAgentDaemonHandleMessageOptions) => Effect.Effect<FeishuAgentDaemonHandleResult, unknown>;
|
|
1166
1279
|
readonly shouldRetryError?: (error: unknown) => boolean;
|
|
1167
1280
|
readonly leaseMs?: number;
|
|
@@ -1169,6 +1282,12 @@ interface FeishuMessageQueueOptions {
|
|
|
1169
1282
|
readonly maxPending?: number;
|
|
1170
1283
|
readonly repository?: FeishuInboxRepository;
|
|
1171
1284
|
readonly retryDelayMs?: number;
|
|
1285
|
+
/**
|
|
1286
|
+
* Identifies a delivery that belongs to a run which was interrupted before
|
|
1287
|
+
* the process restarted. Such a delivery is completed as a duplicate rather
|
|
1288
|
+
* than starting the same user prompt a second time.
|
|
1289
|
+
*/
|
|
1290
|
+
readonly shouldSkipReplay?: (payload: FeishuReceiveMessagePayload) => Effect.Effect<boolean, unknown>;
|
|
1172
1291
|
}
|
|
1173
1292
|
type FeishuMessageAcceptResult = {
|
|
1174
1293
|
readonly accepted: true;
|
|
@@ -1546,6 +1665,7 @@ interface RivusEndpointInput extends AgentRuntimeInput {}
|
|
|
1546
1665
|
interface RivusAgentHost {
|
|
1547
1666
|
cancelBackgroundSession(agentId: string, input: AgentRuntimeCancellation): Promise<boolean>;
|
|
1548
1667
|
cancelEndpoint(endpointId: string, input: AgentRuntimeCancellation): Promise<boolean>;
|
|
1668
|
+
steerEndpoint(endpointId: string, input: AgentRuntimeSteering): Promise<boolean>;
|
|
1549
1669
|
handleAutomation(automationId: string, input: AgentRuntimeInput): Promise<unknown>;
|
|
1550
1670
|
handleBackgroundSession(agentId: string, input: AgentRuntimeInput): Promise<unknown>;
|
|
1551
1671
|
handleEndpoint(endpointId: string, input: RivusEndpointInput): Promise<unknown>;
|
|
@@ -1877,6 +1997,8 @@ interface CreateRivusDeploymentEndpointInput {
|
|
|
1877
1997
|
readonly endpointId: string;
|
|
1878
1998
|
readonly definition: RivusEndpointDeployment;
|
|
1879
1999
|
readonly handle: (input: RivusEndpointInput) => Promise<unknown>;
|
|
2000
|
+
/** Optional control-plane steering; endpoints that do not support it remain prompt-only. */
|
|
2001
|
+
readonly steer?: (input: AgentRuntimeSteering) => Promise<boolean>;
|
|
1880
2002
|
readonly instanceId: string;
|
|
1881
2003
|
readonly projectSpaceId?: string;
|
|
1882
2004
|
}
|
|
@@ -2088,6 +2210,7 @@ declare function createFeishuCardActionErrorResponse(): FeishuCardActionCallback
|
|
|
2088
2210
|
//#region src/infrastructure/feishu/feishu-event-handlers.d.ts
|
|
2089
2211
|
interface FeishuEventHandlerQueue {
|
|
2090
2212
|
accept(payload: FeishuReceiveMessagePayload): Effect.Effect<FeishuMessageAcceptResult, unknown>;
|
|
2213
|
+
pending?(): number;
|
|
2091
2214
|
}
|
|
2092
2215
|
interface FeishuEventHandlerCardActions {
|
|
2093
2216
|
handleCardAction(payload: FeishuCardActionTriggerPayload): Effect.Effect<FeishuAgentDaemonHandleResult, unknown>;
|
|
@@ -2110,6 +2233,7 @@ declare function createFeishuEventHandlers(options: FeishuEventHandlersOptions):
|
|
|
2110
2233
|
//#endregion
|
|
2111
2234
|
//#region src/composition/feishu-agent-runtime.d.ts
|
|
2112
2235
|
interface FeishuAgentRuntimeOptions {
|
|
2236
|
+
readonly acknowledgeSteering?: (messageId: string) => Effect.Effect<void, unknown>;
|
|
2113
2237
|
readonly agentId: string;
|
|
2114
2238
|
readonly botOpenId?: string;
|
|
2115
2239
|
readonly clock: AgentClock;
|
|
@@ -2120,10 +2244,13 @@ interface FeishuAgentRuntimeOptions {
|
|
|
2120
2244
|
readonly initialRunStates?: ReadonlyArray<AgentRunState>;
|
|
2121
2245
|
readonly loop: AgentLoop;
|
|
2122
2246
|
readonly prepareRun?: (run: FeishuAgentRunPreparation) => Effect.Effect<void, unknown>;
|
|
2247
|
+
readonly promptContext?: FeishuPromptContextResolver;
|
|
2123
2248
|
readonly periodicFlush?: FeishuPeriodicFlushSupervisor;
|
|
2124
2249
|
readonly publish: (action: FeishuStreamAction) => Effect.Effect<void, unknown>;
|
|
2250
|
+
readonly reply?: (messageId: string, text: string) => Effect.Effect<void, unknown>;
|
|
2125
2251
|
readonly runTimeoutMs?: number;
|
|
2126
2252
|
readonly runIds: RunIdGenerator;
|
|
2253
|
+
readonly sessionStore?: FeishuSessionStore;
|
|
2127
2254
|
}
|
|
2128
2255
|
interface FeishuPeriodicFlushSupervisor {
|
|
2129
2256
|
withPeriodicFlush<A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, unknown, R>;
|
|
@@ -2316,10 +2443,10 @@ declare function createFeishuTenantAccessTokenProvider(options: FeishuTenantAcce
|
|
|
2316
2443
|
//#endregion
|
|
2317
2444
|
//#region src/infrastructure/feishu/feishu-openapi-client.d.ts
|
|
2318
2445
|
interface FeishuOpenApiRequest {
|
|
2319
|
-
readonly method: "PATCH" | "POST" | "PUT";
|
|
2446
|
+
readonly method: "GET" | "PATCH" | "POST" | "PUT";
|
|
2320
2447
|
readonly url: string;
|
|
2321
2448
|
readonly headers: Readonly<Record<string, string>>;
|
|
2322
|
-
readonly body
|
|
2449
|
+
readonly body?: unknown;
|
|
2323
2450
|
}
|
|
2324
2451
|
interface FeishuOpenApiResponse {
|
|
2325
2452
|
readonly status: number;
|
|
@@ -2354,11 +2481,14 @@ declare function createConfiguredFeishuOpenApiClient(options: {
|
|
|
2354
2481
|
interface ConfiguredFeishuCardRolloverRuntimeOptions {
|
|
2355
2482
|
readonly agentName?: string;
|
|
2356
2483
|
readonly cardTargets: FeishuCardTargetRegistry;
|
|
2484
|
+
/** Whether running cards should include Feishu HTTP callback cancel buttons. */
|
|
2485
|
+
readonly cancelButton?: boolean;
|
|
2357
2486
|
readonly client: FeishuOpenApiClient;
|
|
2358
2487
|
readonly clock: AgentClock;
|
|
2359
2488
|
readonly config: RivusDaemonConfig;
|
|
2360
2489
|
readonly elementId?: string;
|
|
2361
2490
|
readonly initialContent?: string;
|
|
2491
|
+
readonly flushIntervalMs?: number;
|
|
2362
2492
|
readonly ledger?: FeishuCardDeliveryLedger;
|
|
2363
2493
|
readonly observe?: (event: FeishuCardRolloverEvent) => void;
|
|
2364
2494
|
readonly onError?: (error: unknown) => void | Promise<void>;
|
|
@@ -2604,6 +2734,16 @@ interface FeishuCardKitOpenApiClientOptions {
|
|
|
2604
2734
|
}
|
|
2605
2735
|
declare function createFeishuCardKitOpenApiClient(options: FeishuCardKitOpenApiClientOptions): FeishuCardKitClient;
|
|
2606
2736
|
//#endregion
|
|
2737
|
+
//#region src/infrastructure/feishu/feishu-topic-context-resolver.d.ts
|
|
2738
|
+
interface FeishuTopicContextResolverOptions {
|
|
2739
|
+
readonly baseUrl?: string;
|
|
2740
|
+
readonly client: FeishuOpenApiClient;
|
|
2741
|
+
}
|
|
2742
|
+
declare class InvalidFeishuTopicContext extends Error {
|
|
2743
|
+
readonly name = "InvalidFeishuTopicContext";
|
|
2744
|
+
}
|
|
2745
|
+
declare function createFeishuTopicContextResolver(options: FeishuTopicContextResolverOptions): FeishuPromptContextResolver;
|
|
2746
|
+
//#endregion
|
|
2607
2747
|
//#region src/infrastructure/feishu/feishu-cot-publisher.d.ts
|
|
2608
2748
|
type FeishuCotRunPreparation = FeishuAgentRunPreparation;
|
|
2609
2749
|
interface FeishuCotPublisher {
|
|
@@ -2639,12 +2779,14 @@ interface FeishuCardTargetPreparationOptions {
|
|
|
2639
2779
|
}
|
|
2640
2780
|
interface FeishuCardKitOpenApiTargetCreatorOptions {
|
|
2641
2781
|
readonly baseUrl?: string;
|
|
2782
|
+
readonly cancelButton?: boolean;
|
|
2642
2783
|
readonly client: FeishuOpenApiClient;
|
|
2643
2784
|
readonly elementId: string;
|
|
2644
2785
|
readonly initialContent?: string;
|
|
2645
2786
|
readonly title?: string;
|
|
2646
2787
|
}
|
|
2647
2788
|
interface ConfiguredFeishuCardKitTargetCreatorOptions {
|
|
2789
|
+
readonly cancelButton?: boolean;
|
|
2648
2790
|
readonly client: FeishuOpenApiClient;
|
|
2649
2791
|
readonly config: RivusDaemonConfig;
|
|
2650
2792
|
readonly elementId?: string;
|
|
@@ -2779,13 +2921,15 @@ declare function openJsonlRecoveryControl(options: JsonlRecoveryControlOptions):
|
|
|
2779
2921
|
declare function createAgentHarnessPooledRuntime(harness: AgentHarness): PooledAgentRuntime;
|
|
2780
2922
|
//#endregion
|
|
2781
2923
|
//#region src/composition/feishu-deployment-endpoint.d.ts
|
|
2782
|
-
interface FeishuDeploymentEndpointOptions extends Pick<CreateRivusDeploymentEndpointInput, "agentId" | "cancel" | "handle"> {
|
|
2924
|
+
interface FeishuDeploymentEndpointOptions extends Pick<CreateRivusDeploymentEndpointInput, "agentId" | "cancel" | "handle" | "steer"> {
|
|
2925
|
+
readonly acknowledgeSteering?: (messageId: string) => Effect.Effect<void, unknown>;
|
|
2783
2926
|
readonly botOpenId: string;
|
|
2784
2927
|
readonly cardRollover?: RivusDaemonTransport;
|
|
2785
2928
|
readonly endpointId?: string;
|
|
2786
2929
|
readonly finalizeRun?: (runId: string) => Effect.Effect<void>;
|
|
2787
2930
|
readonly eventDispatcher: FeishuWebSocketEventDispatcher;
|
|
2788
2931
|
readonly groupPolicy: FeishuEndpointGroupPolicy;
|
|
2932
|
+
readonly initialEvents?: ReadonlyArray<AgentDomainEvent>;
|
|
2789
2933
|
readonly interactions?: FeishuHumanInteractionActions;
|
|
2790
2934
|
readonly inboxRepository?: FeishuInboxRepository;
|
|
2791
2935
|
readonly maxPendingMessages?: number;
|
|
@@ -2794,8 +2938,11 @@ interface FeishuDeploymentEndpointOptions extends Pick<CreateRivusDeploymentEndp
|
|
|
2794
2938
|
readonly onWorkerError?: (error: unknown) => void | Promise<void>;
|
|
2795
2939
|
readonly onCapacityExceeded?: (payload: FeishuReceiveMessagePayload) => Effect.Effect<void, unknown>;
|
|
2796
2940
|
readonly prepareRun?: (run: FeishuAgentRunPreparation) => Effect.Effect<void, unknown>;
|
|
2941
|
+
readonly promptContext?: FeishuPromptContextResolver;
|
|
2797
2942
|
readonly publish: (action: FeishuStreamAction) => Effect.Effect<void, unknown>;
|
|
2798
2943
|
readonly publishRunUpdate?: AgentRunUpdateHandler;
|
|
2944
|
+
readonly reply?: (messageId: string, text: string) => Effect.Effect<void, unknown>;
|
|
2945
|
+
readonly sessionStore?: FeishuSessionStore;
|
|
2799
2946
|
readonly sessionNamespace: string;
|
|
2800
2947
|
readonly shutdownTimeoutMs?: number;
|
|
2801
2948
|
readonly sleep: (ms: number) => Effect.Effect<void, unknown>;
|
|
@@ -3276,6 +3423,15 @@ declare function createConfiguredFeishuTextReplySender(options: {
|
|
|
3276
3423
|
readonly config: RivusDaemonConfig;
|
|
3277
3424
|
}): FeishuTextReplySender;
|
|
3278
3425
|
//#endregion
|
|
3426
|
+
//#region src/infrastructure/feishu/feishu-message-reaction.d.ts
|
|
3427
|
+
interface FeishuMessageReactionSender {
|
|
3428
|
+
add(messageId: string, emojiType?: string): Effect.Effect<void, unknown>;
|
|
3429
|
+
}
|
|
3430
|
+
declare function createConfiguredFeishuMessageReactionSender(options: {
|
|
3431
|
+
readonly client: FeishuOpenApiClient;
|
|
3432
|
+
readonly config: RivusDaemonConfig;
|
|
3433
|
+
}): FeishuMessageReactionSender;
|
|
3434
|
+
//#endregion
|
|
3279
3435
|
//#region src/infrastructure/feishu/feishu-automation-card-sender.d.ts
|
|
3280
3436
|
interface FeishuAutomationCardInput {
|
|
3281
3437
|
readonly idempotencyKey: string;
|
|
@@ -3307,6 +3463,13 @@ type FeishuAgentRunCardInput = {
|
|
|
3307
3463
|
readonly runId: string;
|
|
3308
3464
|
readonly sessionKey: string;
|
|
3309
3465
|
readonly status: "running";
|
|
3466
|
+
/**
|
|
3467
|
+
* Card action callbacks require Feishu's HTTP callback transport. Long
|
|
3468
|
+
* connection mode only delivers event subscriptions, so deployments
|
|
3469
|
+
* using the WebSocket transport must disable this button and use the
|
|
3470
|
+
* text cancel command shown in the note instead.
|
|
3471
|
+
*/
|
|
3472
|
+
readonly cancelButton?: boolean;
|
|
3310
3473
|
readonly text?: string;
|
|
3311
3474
|
} | {
|
|
3312
3475
|
readonly agentName: string;
|
|
@@ -3341,4 +3504,4 @@ interface ConfiguredFeishuHumanInteractionPresenterOptions {
|
|
|
3341
3504
|
}
|
|
3342
3505
|
declare function createConfiguredFeishuHumanInteractionPresenter(options: ConfiguredFeishuHumanInteractionPresenterOptions): HumanInteractionPresenter;
|
|
3343
3506
|
//#endregion
|
|
3344
|
-
export { 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 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$1 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 AgentSessionAvailability, type AgentSessionBusyAvailability, type AgentSessionClient, type AgentSessionHandle, type AgentSessionOtherBusyAvailability, type AgentSessionOwnedBusyAvailability, type AgentSessionSnapshot, type AgentSessionSummary, type AgentSkillExecutionEnded, type AgentSkillExecutionStarted, type AgentSkillExecutionState, 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 AssistantTextDelta, type AssistantThinkingDelta, type AsyncIterableAgentLoopOptions, type AuthorizationPolicyProvider, type AuthorizationPolicyState, type AutomationAgentInvocationOrigin, type AutomationBinding, type AutomationDeliveryBinding, type AutomationMandate, AutomationMandateError, type AutomationMandateStore, type AutomationOutcome, 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 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, 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, type FeishuAgentCommand, type FeishuAgentDaemon, type FeishuAgentDaemonCancelResult, type FeishuAgentDaemonHandleMessageOptions, type FeishuAgentDaemonHandleResult, type FeishuAgentDaemonInteractionResult, type FeishuAgentDaemonOptions, type FeishuAgentDaemonRunResult, type FeishuAgentDaemonSkippedResult, type FeishuAgentExecution, type FeishuAgentExecutionResult, type FeishuAgentInvocationOrigin, type FeishuAgentMessageSideEffects, 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 FeishuCardKitHandoff, type FeishuCardKitOpenApiClientOptions, type FeishuCardKitOpenApiTargetCreatorOptions, 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 FeishuMessageDrainResult, type FeishuMessageIntakeBaseSummary, type FeishuMessageIntakeError, type FeishuMessageIntakeOptions, type FeishuMessageIntakeSummary, type FeishuMessageQueue, type FeishuMessageQueueOptions, type FeishuMessageWorker, type FeishuMessageWorkerDrainAvailableResult, type FeishuMessageWorkerOptions, type FeishuMessageWorkerQueue, type FeishuOpenApiClient, FeishuOpenApiError, type FeishuOpenApiRequest, type FeishuOpenApiResponse, type FeishuPeriodicFlush, type FeishuPeriodicFlushOptions, type FeishuPeriodicFlushSupervisor, type FeishuPresentationPreparationOptions, type FeishuPromptAgentCommand, 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 FeishuSessionReference, type FeishuStreamAction, type FeishuStreamActionPublisher, type FeishuStreamProjector, FeishuTenantAccessTokenError, type FeishuTenantAccessTokenProvider, type FeishuTenantAccessTokenProviderOptions, type FeishuTenantAccessTokenRequest, type FeishuTenantAccessTokenResponse, type FeishuTextReplySender, 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, InvalidFeishuCardAction, InvalidFeishuMessageContent, InvalidFeishuSessionReference, 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, OpenClawEnvImportError, type OpenClawEnvImportOptions, type OpenClawEnvImportResult, type OpenJsonAutomationTickRepositoryOptions, 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 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, 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 RivusAgentDeployment, type RivusAgentDeploymentStatus, type RivusAgentHost, type RivusAgentHostOptions, type RivusAgentProfile, type RivusAutomationDelivery, type RivusAutomationDeliveryTargetType, type RivusAutomationDeployment, type RivusAutomationInput, 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, 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 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 ScheduledAutomation, type ScheduledAutomationClock, type ScheduledAutomationDeliveryInput, type ScheduledAutomationOptions, type ScheduledAutomationRunInput, type ScheduledAutomationRunResult, type SelectedHumanInteractionState, type SessionKey, type SessionScheduler, SessionSchedulerCapacityExceeded, SessionSchedulerDisposed, type SessionSchedulerOptions, type SessionSchedulerStatus, 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, 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, createAgentCommandFromFeishuCardAction, createAgentCommandFromFeishuMessage, createAgentConversationMessages, createAgentDomainEventHandler, createAgentDomainEventSink, createAgentDomainEventSinkFromCallback, createAgentHarness, createAgentHarnessClient, createAgentHarnessPooledRuntime, createAgentInstanceRegistry, createAgentLoopFromCallback, createAgentLoopModelExecutionEnd, createAgentLoopModelExecutionStart, createAgentLoopPromptTransformer, createAgentLoopSkillExecutionEnd, createAgentLoopSkillExecutionStart, createAgentLoopTextDelta, createAgentLoopThinkingDelta, createAgentLoopToolExecutionEnd, createAgentLoopToolExecutionStart, createAgentLoopToolExecutionUpdate, createAgentMemoryService, createAgentRunUpdateHandler, createAgentRuntime, createAgentRuntimePool, createAgentTranscriptMessages, createAgentTranscriptTurn, createAgentsMdInstructionsProvider, createAsyncIterableAgentLoop, createAutomationMandateStore, createBackgroundSession, createBackgroundSessionCard, createBackgroundSessionDeliveryStore, createBackgroundSessionHostTools, createBackgroundSessionKey, createBackgroundSessionRepository, createBackgroundSessionService, createBackgroundSessionStepSourceMessageId, createBackgroundSessionSupervisor, createBackgroundSessionToolContracts, createCoalescingFeishuPublisher, createCompactionService, createCompositeRivusDaemonTransport, createConfiguredFeishuAutomationCardSender, createConfiguredFeishuBackgroundSessionDelivery, createConfiguredFeishuCardKitPublisher, createConfiguredFeishuCardKitTargetCreator, createConfiguredFeishuCardRolloverRuntime, createConfiguredFeishuHumanInteractionPresenter, 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, createFeishuStreamProjector, createFeishuTenantAccessTokenProvider, createFeishuWebSocketDaemon, createFeishuWorkerLoop, createFixedClock, createHumanInteractionEndpointRegistry, createHumanInteractionService, createHumanInteractionToolApprovalGateway, createInMemoryFeishuCardTargetRegistry, createInMemoryHumanInteractionRepository, createInvocationAuthority, createJsonFetchRequest, createJsonFileFeishuCardTargetRegistry, createJsonlAgentEventLog, createJsonlHumanInteractionRepository, createLangfuseAgentTelemetry, createLazyFeishuWebSocketEventDispatcher, createMemoryNamespace, createOpenTelemetryAgentEventSink, createOpenTelemetryAgentTelemetry, createPiAgentLoop, createPiSdkAgentLoop, createPiSessionRegistry, createPluginStateStore, createProjectMemoryPromptPreparer, createRateLimitedFeishuPublisher, createRecoveryAction, createRecoveryControl, createRivusAgentHost, createRivusDaemonProcess, createRivusDaemonShutdownController, createRivusDaemonStatusHttpServer, createRivusDaemonStatusReporter, createRivusDeploymentCliProcess, createRivusDeploymentDaemon, createRivusEnvFromOpenClawConfig, createRivusMemoryTool, createRivusMemoryToolContract, createRivusMemoryToolDescriptor, createRivusPluginCatalog, createRoutedHumanInteractionToolApprovalService, createScheduledAutomation, createSequenceRunIds, createSessionScheduler, createSubagentCoordinator, createSystemClock, createTelemetryContentRedactor, createTestClock, createTextAgentLoop, createTextAgentLoopFromCallback, createToolBroker, createToolInputDigest, createToolOperationLedger, createUuidRunIds, createWorkspaceRootHandle, describeFeishuMessageIntake, evolveAgentRun, extendBackgroundSessionDefinition, failBackgroundSessionStep, formatRivusEnvFile, initialAgentRunState, intersectToolIds, isAgentToolExecutionEvent, isAssistantTextDeltaEvent, isAssistantThinkingDeltaEvent, isBackgroundSessionDue, isBackgroundSessionLeaseExpired, isBackgroundSessionState, isBackgroundSessionTerminalPhase, isBackgroundSessionToolId, isCardPresentationHandoffDue, isTerminalAgentDomainEvent, isTerminalAgentRunPhase, loadNodeRivusPluginModule, loadRivusDaemonConfig, loadRivusDeployment, loadRivusDeploymentManifest, narrowBackgroundSessionDefinition, normalizeStableJson, openJsonAutomationTickRepository, openJsonlAgentMemoryService, openJsonlBackgroundSessionDeliveryStore, openJsonlBackgroundSessionRepository, openJsonlFeishuCardDeliveryLedger, openJsonlFeishuInboxRepository, openJsonlRecoveryControl, openJsonlToolOperationLedger, parkBackgroundSessionForReconciliation, progressDeliveryId, 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 };
|
|
3507
|
+
export { 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 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$1 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 AssistantTextDelta, type AssistantThinkingDelta, type AsyncIterableAgentLoopOptions, type AuthorizationPolicyProvider, type AuthorizationPolicyState, type AutomationAgentInvocationOrigin, type AutomationBinding, type AutomationDeliveryBinding, type AutomationMandate, AutomationMandateError, type AutomationMandateStore, type AutomationOutcome, 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 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, 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, 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 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 FeishuCardKitHandoff, type FeishuCardKitOpenApiClientOptions, type FeishuCardKitOpenApiTargetCreatorOptions, 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 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, 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, 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 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, 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 RivusAgentDeployment, type RivusAgentDeploymentStatus, type RivusAgentHost, type RivusAgentHostOptions, type RivusAgentProfile, type RivusAutomationDelivery, type RivusAutomationDeliveryTargetType, type RivusAutomationDeployment, type RivusAutomationInput, 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, 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 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 ScheduledAutomation, type ScheduledAutomationClock, type ScheduledAutomationDeliveryInput, type ScheduledAutomationOptions, type ScheduledAutomationRunInput, type ScheduledAutomationRunResult, type SelectedHumanInteractionState, type SessionKey, type SessionScheduler, SessionSchedulerCapacityExceeded, SessionSchedulerDisposed, type SessionSchedulerOptions, type SessionSchedulerStatus, 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, 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, createAgentMemoryService, createAgentRunUpdateHandler, createAgentRuntime, createAgentRuntimePool, createAgentTranscriptMessages, createAgentTranscriptTurn, createAgentsMdInstructionsProvider, createAsyncIterableAgentLoop, createAutomationMandateStore, createBackgroundSession, createBackgroundSessionCard, createBackgroundSessionDeliveryStore, createBackgroundSessionHostTools, createBackgroundSessionKey, createBackgroundSessionRepository, createBackgroundSessionService, createBackgroundSessionStepSourceMessageId, createBackgroundSessionSupervisor, createBackgroundSessionToolContracts, createCoalescingFeishuPublisher, createCompactionService, createCompositeRivusDaemonTransport, createConfiguredFeishuAutomationCardSender, createConfiguredFeishuBackgroundSessionDelivery, createConfiguredFeishuCardKitPublisher, createConfiguredFeishuCardKitTargetCreator, createConfiguredFeishuCardRolloverRuntime, createConfiguredFeishuHumanInteractionPresenter, createConfiguredFeishuMessageReactionSender, createConfiguredFeishuOpenApiClient, createConfiguredFeishuTextReplySender, createConfiguredRivusDaemonBootstrap, createConfiguredRivusDeploymentDaemon, createDailyAutomationSchedule, createDefaultAgentHarness, createDefaultAgentHarnessClient, createDefaultAgentHarnessClientFromCallback, createDefaultAgentHarnessClientFromTextCallback, createDefaultAgentHarnessFromCallback, createDefaultAgentHarnessFromTextCallback, createDefaultAgentRuntime, createDefaultAgentRuntimeFromCallback, createDefaultAgentRuntimeFromTextCallback, createDelegationService, createDeliveryOutbox, createEventAgentLoop, createFakeRivusPlugin, createFeishuAgentDaemon, createFeishuAgentRunCard, createFeishuAgentRuntime, createFeishuCardActionCallbackResponse, createFeishuCardActionErrorResponse, createFeishuCardDeliveryLedger, createFeishuCardDeliveryReconciler, createFeishuCardKitOpenApiClient, createFeishuCardKitOpenApiTargetCreator, createFeishuCardKitPublisher, createFeishuCardPresentationStore, createFeishuCardRollover, createFeishuCardRolloverSupervisor, createFeishuCardTargetPreparation, createFeishuConversationId, createFeishuCotPublisher, createFeishuDeploymentEndpoint, createFeishuEventHandlers, createFeishuHumanInteractionCard, createFeishuHumanInteractionPresenter, createFeishuInboxRepository, createFeishuMessageQueue, createFeishuMessageWorker, createFeishuOpenApiClient, createFeishuPeriodicFlush, createFeishuPresentationPreparation, createFeishuSessionKey, createFeishuSessionStore, createFeishuStreamProjector, createFeishuTenantAccessTokenProvider, createFeishuTopicContextResolver, createFeishuWebSocketDaemon, createFeishuWorkerLoop, createFixedClock, createHumanInteractionEndpointRegistry, createHumanInteractionService, createHumanInteractionToolApprovalGateway, createInMemoryFeishuCardTargetRegistry, createInMemoryHumanInteractionRepository, createInvocationAuthority, createJsonFetchRequest, createJsonFileFeishuCardTargetRegistry, createJsonlAgentEventLog, createJsonlHumanInteractionRepository, createLangfuseAgentTelemetry, createLazyFeishuWebSocketEventDispatcher, createMemoryNamespace, createOpenTelemetryAgentEventSink, createOpenTelemetryAgentTelemetry, createPiAgentLoop, createPiSdkAgentLoop, createPiSessionRegistry, createPluginStateStore, createProjectMemoryPromptPreparer, createRateLimitedFeishuPublisher, createRecoveryAction, createRecoveryControl, createRivusAgentHost, createRivusDaemonProcess, createRivusDaemonShutdownController, createRivusDaemonStatusHttpServer, createRivusDaemonStatusReporter, createRivusDeploymentCliProcess, createRivusDeploymentDaemon, createRivusEnvFromOpenClawConfig, createRivusMemoryTool, createRivusMemoryToolContract, createRivusMemoryToolDescriptor, createRivusPluginCatalog, createRoutedHumanInteractionToolApprovalService, createScheduledAutomation, createSequenceRunIds, createSessionScheduler, createSubagentCoordinator, createSystemClock, createTelemetryContentRedactor, createTestClock, createTextAgentLoop, createTextAgentLoopFromCallback, createToolBroker, createToolInputDigest, createToolOperationLedger, createUuidRunIds, createWorkspaceRootHandle, describeFeishuMessageIntake, evolveAgentRun, extendBackgroundSessionDefinition, failBackgroundSessionStep, formatRivusEnvFile, initialAgentRunState, intersectToolIds, isAgentToolExecutionEvent, isAssistantTextDeltaEvent, isAssistantThinkingDeltaEvent, isBackgroundSessionDue, isBackgroundSessionLeaseExpired, isBackgroundSessionState, isBackgroundSessionTerminalPhase, isBackgroundSessionToolId, isCardPresentationHandoffDue, isTerminalAgentDomainEvent, isTerminalAgentRunPhase, loadNodeRivusPluginModule, loadRivusDaemonConfig, loadRivusDeployment, loadRivusDeploymentManifest, narrowBackgroundSessionDefinition, normalizeStableJson, openJsonAutomationTickRepository, openJsonFeishuSessionStore, openJsonlAgentMemoryService, openJsonlBackgroundSessionDeliveryStore, openJsonlBackgroundSessionRepository, openJsonlFeishuCardDeliveryLedger, openJsonlFeishuInboxRepository, openJsonlRecoveryControl, openJsonlToolOperationLedger, parkBackgroundSessionForReconciliation, progressDeliveryId, 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 };
|