@rivus/agent 0.6.0 → 0.6.1
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/dist/agent-memory.js +114 -0
- package/dist/index.d.ts +13 -202
- package/dist/index.js +32 -246
- package/dist/pi-tool-proxy.d.ts +194 -0
- package/dist/pi.d.ts +10 -1
- package/dist/pi.js +111 -1
- package/dist/rivus-daemon-cli.js +5 -1
- package/dist/rivus-plugin-registry.js +2 -114
- package/dist/rivus-plugin-testkit.d.ts +2 -174
- package/dist/rivus-plugin-testkit.js +2 -1
- package/dist/rivus-plugin.d.ts +175 -0
- package/dist/tool-input-digest.js +126 -0
- package/examples/pi-feishu-deployment.bootstrap.ts +7 -4
- package/package.json +1 -1
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
//#region src/domain/rivus-plugin.ts
|
|
2
|
+
const RIVUS_PLUGIN_API_VERSION = "1";
|
|
3
|
+
function requiresToolApproval(risk) {
|
|
4
|
+
return risk === "irreversible" || risk === "host-control";
|
|
5
|
+
}
|
|
6
|
+
var RivusToolInputRejected = class extends Error {
|
|
7
|
+
name = "RivusToolInputRejected";
|
|
8
|
+
};
|
|
9
|
+
var InvalidRivusPlugin = class extends Error {
|
|
10
|
+
name = "InvalidRivusPlugin";
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/domain/agent-memory.ts
|
|
14
|
+
const MEMORY_SCOPES = [
|
|
15
|
+
"conversation",
|
|
16
|
+
"agent-private",
|
|
17
|
+
"project",
|
|
18
|
+
"shared-user-profile"
|
|
19
|
+
];
|
|
20
|
+
const RIVUS_MEMORY_TOOL_ID = "memory";
|
|
21
|
+
const RIVUS_MEMORY_TOOL_PLUGIN_ID = "rivus-core";
|
|
22
|
+
const RIVUS_MEMORY_TOOL_VERSION = "1.0.0";
|
|
23
|
+
function createMemoryNamespace(binding) {
|
|
24
|
+
const encode = (value) => encodeURIComponent(value);
|
|
25
|
+
switch (binding.scope) {
|
|
26
|
+
case "conversation": return [
|
|
27
|
+
binding.tenantId,
|
|
28
|
+
binding.agentId,
|
|
29
|
+
binding.subjectId,
|
|
30
|
+
binding.conversationId ?? "",
|
|
31
|
+
binding.scope
|
|
32
|
+
].map(encode).join("/");
|
|
33
|
+
case "agent-private": return [
|
|
34
|
+
binding.tenantId,
|
|
35
|
+
binding.agentId,
|
|
36
|
+
binding.subjectId,
|
|
37
|
+
binding.scope
|
|
38
|
+
].map(encode).join("/");
|
|
39
|
+
case "project": return [
|
|
40
|
+
binding.tenantId,
|
|
41
|
+
binding.agentId,
|
|
42
|
+
binding.projectId ?? "",
|
|
43
|
+
binding.scope
|
|
44
|
+
].map(encode).join("/");
|
|
45
|
+
case "shared-user-profile": return [
|
|
46
|
+
binding.tenantId,
|
|
47
|
+
binding.subjectId,
|
|
48
|
+
binding.scope
|
|
49
|
+
].map(encode).join("/");
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function restrictMemoryScopesForAudience(scopes, audience) {
|
|
53
|
+
return audience === "group" ? scopes.filter((scope) => scope === "conversation" || scope === "project") : [...scopes];
|
|
54
|
+
}
|
|
55
|
+
function createRivusMemoryToolContract(scopes) {
|
|
56
|
+
return Object.freeze({
|
|
57
|
+
description: "Search and read Memory inside Host-bound scopes; propose or request forgetting only in writable private scopes.",
|
|
58
|
+
digest: "sha256:rivus-memory-v3",
|
|
59
|
+
id: RIVUS_MEMORY_TOOL_ID,
|
|
60
|
+
idempotency: "required",
|
|
61
|
+
inputSchema: Object.freeze({
|
|
62
|
+
additionalProperties: false,
|
|
63
|
+
properties: {
|
|
64
|
+
command: {
|
|
65
|
+
description: "One of search, read, propose, or forget_request.",
|
|
66
|
+
enum: [
|
|
67
|
+
"search",
|
|
68
|
+
"read",
|
|
69
|
+
"propose",
|
|
70
|
+
"forget_request"
|
|
71
|
+
],
|
|
72
|
+
type: "string"
|
|
73
|
+
},
|
|
74
|
+
id: {
|
|
75
|
+
description: "Required for read and forget_request.",
|
|
76
|
+
minLength: 1,
|
|
77
|
+
type: "string"
|
|
78
|
+
},
|
|
79
|
+
input: {
|
|
80
|
+
additionalProperties: false,
|
|
81
|
+
description: "Required for propose.",
|
|
82
|
+
properties: { content: {
|
|
83
|
+
minLength: 1,
|
|
84
|
+
type: "string"
|
|
85
|
+
} },
|
|
86
|
+
required: ["content"],
|
|
87
|
+
type: "object"
|
|
88
|
+
},
|
|
89
|
+
query: {
|
|
90
|
+
additionalProperties: false,
|
|
91
|
+
description: "Required for search.",
|
|
92
|
+
properties: { query: { type: "string" } },
|
|
93
|
+
required: ["query"],
|
|
94
|
+
type: "object"
|
|
95
|
+
},
|
|
96
|
+
reason: {
|
|
97
|
+
description: "Optional reason for forget_request.",
|
|
98
|
+
type: "string"
|
|
99
|
+
},
|
|
100
|
+
...scopes.length === 0 ? {} : { scope: {
|
|
101
|
+
description: "Optional Host-granted scope for search or propose. Confirmed Project and Shared User Profile Memory are read-only to the model.",
|
|
102
|
+
enum: [...scopes],
|
|
103
|
+
type: "string"
|
|
104
|
+
} }
|
|
105
|
+
},
|
|
106
|
+
required: ["command"],
|
|
107
|
+
type: "object"
|
|
108
|
+
}),
|
|
109
|
+
risk: "mutate",
|
|
110
|
+
version: RIVUS_MEMORY_TOOL_VERSION
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
//#endregion
|
|
114
|
+
export { createMemoryNamespace as a, InvalidRivusPlugin as c, requiresToolApproval as d, RIVUS_MEMORY_TOOL_VERSION as i, RIVUS_PLUGIN_API_VERSION as l, RIVUS_MEMORY_TOOL_ID as n, createRivusMemoryToolContract as o, RIVUS_MEMORY_TOOL_PLUGIN_ID as r, restrictMemoryScopesForAudience as s, MEMORY_SCOPES as t, RivusToolInputRejected as u };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { $ as createAgentTranscriptTurn, A as createAgentLoopModelExecutionStart, At as AssistantThinkingDelta, B as createTextAgentLoop, C as AgentLoopToolExecutionUpdateOptions, Ct as AgentToolExecutionEnded, D as TextAgentLoopOptions, Dt as AgentTurnCompleted, E as TextAgentLoopCallback, Et as AgentToolExecutionUpdated, F as createAgentLoopToolExecutionEnd, Ft as isAssistantThinkingDeltaEvent, G as LocalCliAgentInvocationOrigin, H as AgentInvocationOrigin, I as createAgentLoopToolExecutionStart, It as isTerminalAgentDomainEvent, J as AgentTranscriptMessage, K as AgentConversationMessagesOptions, L as createAgentLoopToolExecutionUpdate, M as createAgentLoopSkillExecutionStart, Mt as TerminalAgentDomainEvent, N as createAgentLoopTextDelta, Nt as isAgentToolExecutionEvent, O as createAgentLoopFromCallback, Ot as AgentTurnStarted, P as createAgentLoopThinkingDelta, Pt as isAssistantTextDeltaEvent, Q as createAgentTranscriptMessages, R as createAsyncIterableAgentLoop, S as AgentLoopToolExecutionUpdate, St as AgentSkillExecutionStarted, T as EventAgentLoopOptions, Tt as AgentToolExecutionStarted, U as AutomationAgentInvocationOrigin, V as createTextAgentLoopFromCallback, W as FeishuAgentInvocationOrigin, X as AgentTranscriptTurn, Y as AgentTranscriptMessageRole, Z as createAgentConversationMessages, _ as AgentLoopThinkingDelta, _t as AgentRunCancelled$1, a as AgentLoopEvent, at as AgentRunPhase, b as AgentLoopToolExecutionStart, bt as AgentRunId, c as AgentLoopModelExecutionEnd, ct as evolveAgentRun, d as AgentLoopModelExecutionStartOptions, dt as AgentDomainEvent, et as replayAgentTranscript, f as AgentLoopSkillExecutionEnd, ft as AgentModelExecutionEnded, g as AgentLoopTextDelta, gt as AgentRunAccepted, h as AgentLoopSkillExecutionStartOptions, ht as AgentModelUsage, i as AgentLoopCallbackResult, it as replayAgentHistory, j as createAgentLoopSkillExecutionEnd, jt as SessionKey, k as createAgentLoopModelExecutionEnd, kt as AssistantTextDelta, l as AgentLoopModelExecutionEndOptions, lt as initialAgentRunState, m as AgentLoopSkillExecutionStart, mt as AgentModelExecutionStarted, n as AgentLoopCallback, nt as AgentRunSummary, o as AgentLoopEventLike, ot as AgentRunState, p as AgentLoopSkillExecutionEndOptions, pt as AgentModelExecutionEvent, q as AgentTranscript, r as AgentLoopCallbackOutput, rt as AgentSessionSummary, s as AgentLoopInput, st as AgentSkillExecutionState, t as AgentLoop, tt as AgentHistory, u as AgentLoopModelExecutionStart, ut as isTerminalAgentRunPhase, v as AgentLoopToolExecutionEnd, vt as AgentRunCompleted, w as AsyncIterableAgentLoopOptions, wt as AgentToolExecutionEvent, x as AgentLoopToolExecutionStartOptions, xt as AgentSkillExecutionEnded, y as AgentLoopToolExecutionEndOptions, yt as AgentRunFailed, z as createEventAgentLoop } 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
|
-
import { A as
|
|
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
|
+
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";
|
|
5
|
+
import { a as assertRivusPluginConforms, i as RivusPluginLifecycleProbe, n as RivusPluginConformanceInput, o as createFakeRivusPlugin, r as RivusPluginConformanceReport, t as RivusPluginConformanceError } from "./rivus-plugin-testkit.js";
|
|
4
6
|
import { Effect, Stream } from "effect";
|
|
5
7
|
import { Tracer } from "@opentelemetry/api";
|
|
6
|
-
import { ToolDefinition } from "@earendil-works/pi-coding-agent";
|
|
7
8
|
|
|
8
9
|
//#region src/application/agent/agent-harness.d.ts
|
|
9
10
|
interface AgentClock {
|
|
@@ -276,17 +277,6 @@ interface JsonlFeishuCardDeliveryLedgerOptions {
|
|
|
276
277
|
}
|
|
277
278
|
declare function openJsonlFeishuCardDeliveryLedger(options: JsonlFeishuCardDeliveryLedgerOptions): Promise<FeishuCardDeliveryLedger>;
|
|
278
279
|
//#endregion
|
|
279
|
-
//#region src/domain/recovery-action.d.ts
|
|
280
|
-
interface RecoveryAction {
|
|
281
|
-
readonly actorId: string;
|
|
282
|
-
readonly at: string;
|
|
283
|
-
readonly note: string;
|
|
284
|
-
}
|
|
285
|
-
declare class InvalidRecoveryAction extends Error {
|
|
286
|
-
readonly name = "InvalidRecoveryAction";
|
|
287
|
-
}
|
|
288
|
-
declare function createRecoveryAction(input: RecoveryAction): RecoveryAction;
|
|
289
|
-
//#endregion
|
|
290
280
|
//#region src/domain/human-interaction.d.ts
|
|
291
281
|
type HumanInteractionId = string;
|
|
292
282
|
interface HumanInteractionActor {
|
|
@@ -623,6 +613,7 @@ interface FeishuAgentDaemonBaseOptions {
|
|
|
623
613
|
readonly agentId: string;
|
|
624
614
|
readonly botOpenId?: string;
|
|
625
615
|
readonly dedupe?: boolean;
|
|
616
|
+
readonly finalizeRun?: (runId: AgentRunId) => Effect.Effect<void>;
|
|
626
617
|
readonly interactions?: FeishuHumanInteractionActions;
|
|
627
618
|
readonly prepareRun?: (run: FeishuAgentRunPreparation) => Effect.Effect<void, unknown>;
|
|
628
619
|
readonly publish: (action: FeishuStreamAction) => Effect.Effect<void, unknown>;
|
|
@@ -759,80 +750,6 @@ interface FeishuInboxRepositoryStateOptions {
|
|
|
759
750
|
}
|
|
760
751
|
declare function createFeishuInboxRepository(options?: FeishuInboxRepositoryStateOptions): FeishuInboxRepository;
|
|
761
752
|
//#endregion
|
|
762
|
-
//#region src/application/delegation/tool-operation-ledger.d.ts
|
|
763
|
-
interface ToolOperationBinding {
|
|
764
|
-
readonly agentId: string;
|
|
765
|
-
readonly inputDigest: string;
|
|
766
|
-
readonly instanceId: string;
|
|
767
|
-
readonly sourceMessageId: string;
|
|
768
|
-
readonly toolId: string;
|
|
769
|
-
readonly toolVersion: string;
|
|
770
|
-
}
|
|
771
|
-
type ToolOperationState = {
|
|
772
|
-
readonly status: "pending";
|
|
773
|
-
} | {
|
|
774
|
-
readonly result: unknown;
|
|
775
|
-
readonly status: "completed";
|
|
776
|
-
} | {
|
|
777
|
-
readonly reason: string;
|
|
778
|
-
readonly status: "reconciliation-required";
|
|
779
|
-
} | {
|
|
780
|
-
readonly status: "aborted";
|
|
781
|
-
};
|
|
782
|
-
interface ToolOperationRecord {
|
|
783
|
-
readonly binding: ToolOperationBinding;
|
|
784
|
-
readonly operationId: string;
|
|
785
|
-
readonly reconciliation?: ToolOperationReconciliation;
|
|
786
|
-
readonly revision: number;
|
|
787
|
-
readonly state: ToolOperationState;
|
|
788
|
-
}
|
|
789
|
-
interface ToolOperationReconciliation extends RecoveryAction {
|
|
790
|
-
readonly outcome: "applied" | "not-applied";
|
|
791
|
-
}
|
|
792
|
-
type ToolOperationReconciliationOutcome = {
|
|
793
|
-
readonly result: unknown;
|
|
794
|
-
readonly status: "applied";
|
|
795
|
-
} | {
|
|
796
|
-
readonly status: "not-applied";
|
|
797
|
-
};
|
|
798
|
-
type ToolOperationBeginResult = {
|
|
799
|
-
readonly status: "acquired";
|
|
800
|
-
} | {
|
|
801
|
-
readonly result: unknown;
|
|
802
|
-
readonly status: "completed";
|
|
803
|
-
} | {
|
|
804
|
-
readonly status: "blocked";
|
|
805
|
-
readonly reason: string;
|
|
806
|
-
};
|
|
807
|
-
type ToolOperationInspectResult = {
|
|
808
|
-
readonly status: "missing";
|
|
809
|
-
} | {
|
|
810
|
-
readonly result: unknown;
|
|
811
|
-
readonly status: "completed";
|
|
812
|
-
} | {
|
|
813
|
-
readonly status: "blocked";
|
|
814
|
-
readonly reason: string;
|
|
815
|
-
};
|
|
816
|
-
interface ToolOperationLedger {
|
|
817
|
-
abort(operationId: string, binding: ToolOperationBinding): Promise<void>;
|
|
818
|
-
begin(operationId: string, binding: ToolOperationBinding): Promise<ToolOperationBeginResult>;
|
|
819
|
-
complete(operationId: string, binding: ToolOperationBinding, result: unknown): Promise<void>;
|
|
820
|
-
inspect(operationId: string, binding: ToolOperationBinding): Promise<ToolOperationInspectResult>;
|
|
821
|
-
reconciliationRequired(): ReadonlyArray<ToolOperationRecord>;
|
|
822
|
-
reconcile(input: {
|
|
823
|
-
readonly action: RecoveryAction;
|
|
824
|
-
readonly expectedRevision: number;
|
|
825
|
-
readonly operationId: string;
|
|
826
|
-
readonly outcome: ToolOperationReconciliationOutcome;
|
|
827
|
-
}): Promise<ToolOperationRecord>;
|
|
828
|
-
requireReconciliation(operationId: string, binding: ToolOperationBinding, reason: string): Promise<void>;
|
|
829
|
-
unresolvedForSource(sourceMessageId: string): ReadonlyArray<ToolOperationRecord>;
|
|
830
|
-
}
|
|
831
|
-
declare function createToolOperationLedger(options?: {
|
|
832
|
-
readonly initial?: ReadonlyArray<ToolOperationRecord>;
|
|
833
|
-
readonly persist?: (record: ToolOperationRecord) => Promise<void>;
|
|
834
|
-
}): ToolOperationLedger;
|
|
835
|
-
//#endregion
|
|
836
753
|
//#region src/application/recovery/recovery-control.d.ts
|
|
837
754
|
interface DeadLetterRecoveryItem {
|
|
838
755
|
readonly acceptedAt: string;
|
|
@@ -1487,6 +1404,7 @@ interface FeishuCardRollover extends FeishuCardRolloverStreamPublisher {
|
|
|
1487
1404
|
recover(): Effect.Effect<{
|
|
1488
1405
|
readonly compensated: number;
|
|
1489
1406
|
}, unknown>;
|
|
1407
|
+
releaseRun(runId: string): Effect.Effect<void>;
|
|
1490
1408
|
status(): FeishuCardRolloverStatus;
|
|
1491
1409
|
}
|
|
1492
1410
|
declare function createFeishuCardRollover(options: FeishuCardRolloverOptions): FeishuCardRollover;
|
|
@@ -2067,6 +1985,7 @@ interface FeishuAgentRuntimeOptions {
|
|
|
2067
1985
|
readonly botOpenId?: string;
|
|
2068
1986
|
readonly clock: AgentClock;
|
|
2069
1987
|
readonly eventSinks?: ReadonlyArray<AgentDomainEventSink>;
|
|
1988
|
+
readonly finalizeRun?: (runId: AgentRunId) => Effect.Effect<void>;
|
|
2070
1989
|
readonly inboxRepository?: FeishuInboxRepository;
|
|
2071
1990
|
readonly initialEvents?: ReadonlyArray<AgentDomainEvent>;
|
|
2072
1991
|
readonly initialRunStates?: ReadonlyArray<AgentRunState>;
|
|
@@ -2451,13 +2370,6 @@ interface OpenTelemetryAgentTelemetry {
|
|
|
2451
2370
|
declare function createOpenTelemetryAgentEventSink(options: OpenTelemetryAgentEventSinkOptions): AgentDomainEventSink;
|
|
2452
2371
|
declare function createOpenTelemetryAgentTelemetry(options: OpenTelemetryAgentEventSinkOptions): OpenTelemetryAgentTelemetry;
|
|
2453
2372
|
//#endregion
|
|
2454
|
-
//#region src/infrastructure/pi/pi-skill-tool.d.ts
|
|
2455
|
-
interface PiSkillRuntime {
|
|
2456
|
-
readonly prompt: string;
|
|
2457
|
-
readonly tool?: ToolDefinition;
|
|
2458
|
-
}
|
|
2459
|
-
declare function createPiSkillRuntime(skills: ReadonlyArray<RegisteredRivusSkill>): PiSkillRuntime;
|
|
2460
|
-
//#endregion
|
|
2461
2373
|
//#region src/infrastructure/pi/pi-agent-loop.d.ts
|
|
2462
2374
|
type PiAgentSessionEvent = PiMessageStartEvent | PiMessageUpdateEvent | PiMessageEndEvent | PiToolExecutionStartEvent | PiToolExecutionUpdateEvent | PiToolExecutionEndEvent | {
|
|
2463
2375
|
readonly type: string;
|
|
@@ -2600,17 +2512,15 @@ interface FeishuCardKitOpenApiTargetCreatorOptions {
|
|
|
2600
2512
|
readonly initialContent?: string;
|
|
2601
2513
|
readonly title?: string;
|
|
2602
2514
|
}
|
|
2603
|
-
interface
|
|
2515
|
+
interface ConfiguredFeishuCardKitTargetCreatorOptions {
|
|
2604
2516
|
readonly client: FeishuOpenApiClient;
|
|
2605
2517
|
readonly config: RivusDaemonConfig;
|
|
2606
2518
|
readonly elementId?: string;
|
|
2607
2519
|
readonly initialContent?: string;
|
|
2608
|
-
readonly presentations: FeishuCardPresentationBinder;
|
|
2609
2520
|
readonly title?: string;
|
|
2610
2521
|
}
|
|
2611
2522
|
declare function createFeishuCardTargetPreparation(options: FeishuCardTargetPreparationOptions): (run: FeishuAgentRunPreparation) => Effect.Effect<void, unknown>;
|
|
2612
|
-
declare function
|
|
2613
|
-
declare function createConfiguredFeishuCardKitTargetCreator(options: Omit<ConfiguredFeishuCardKitTargetPreparationOptions, "presentations">): FeishuCardTargetCreator;
|
|
2523
|
+
declare function createConfiguredFeishuCardKitTargetCreator(options: ConfiguredFeishuCardKitTargetCreatorOptions): FeishuCardTargetCreator;
|
|
2614
2524
|
declare function createFeishuCardKitOpenApiTargetCreator(options: FeishuCardKitOpenApiTargetCreatorOptions): FeishuCardTargetCreator;
|
|
2615
2525
|
//#endregion
|
|
2616
2526
|
//#region src/infrastructure/feishu/feishu-rate-limited-publisher.d.ts
|
|
@@ -2658,6 +2568,9 @@ declare function createFeishuPeriodicFlush(options: FeishuPeriodicFlushOptions):
|
|
|
2658
2568
|
//#endregion
|
|
2659
2569
|
//#region src/testing/fakes.d.ts
|
|
2660
2570
|
declare function createFixedClock(now: Date): AgentClock;
|
|
2571
|
+
declare function createTestClock(initial: Date): AgentClock & {
|
|
2572
|
+
advance(ms: number): void;
|
|
2573
|
+
};
|
|
2661
2574
|
declare function createSequenceRunIds(runIds: ReadonlyArray<AgentRunId>): RunIdGenerator;
|
|
2662
2575
|
//#endregion
|
|
2663
2576
|
//#region src/application/plugin/rivus-plugin-registry.d.ts
|
|
@@ -2713,74 +2626,6 @@ declare class WorkspaceInstructionsSourceError extends Error {
|
|
|
2713
2626
|
}
|
|
2714
2627
|
declare function createAgentsMdInstructionsProvider(): WorkspaceInstructionsProvider;
|
|
2715
2628
|
//#endregion
|
|
2716
|
-
//#region src/application/delegation/tool-authority.d.ts
|
|
2717
|
-
interface InvocationAuthorityRef {
|
|
2718
|
-
readonly id: string;
|
|
2719
|
-
}
|
|
2720
|
-
interface InvocationAuthority {
|
|
2721
|
-
readonly agentId: string;
|
|
2722
|
-
readonly instanceId: string;
|
|
2723
|
-
readonly memory?: AgentMemoryAuthority;
|
|
2724
|
-
readonly runId: string;
|
|
2725
|
-
readonly sessionKey: string;
|
|
2726
|
-
readonly sourceMessageId: string;
|
|
2727
|
-
readonly tenantKey: string;
|
|
2728
|
-
readonly toolGrantSet: RivusToolGrantSet;
|
|
2729
|
-
}
|
|
2730
|
-
declare class InvalidInvocationAuthority extends Error {
|
|
2731
|
-
readonly name = "InvalidInvocationAuthority";
|
|
2732
|
-
}
|
|
2733
|
-
declare function createInvocationAuthority(authority: InvocationAuthority): InvocationAuthorityRef;
|
|
2734
|
-
//#endregion
|
|
2735
|
-
//#region src/application/delegation/tool-broker.d.ts
|
|
2736
|
-
interface AuthorizationPolicyState {
|
|
2737
|
-
readonly epoch: number;
|
|
2738
|
-
readonly revokedToolIds: ReadonlyArray<string>;
|
|
2739
|
-
}
|
|
2740
|
-
interface AuthorizationPolicyProvider {
|
|
2741
|
-
current(): Promise<AuthorizationPolicyState>;
|
|
2742
|
-
}
|
|
2743
|
-
interface ToolApprovalRequest {
|
|
2744
|
-
readonly approvalId: string;
|
|
2745
|
-
readonly agentId: string;
|
|
2746
|
-
readonly instanceId: string;
|
|
2747
|
-
readonly inputDigest: string;
|
|
2748
|
-
readonly operationId: string;
|
|
2749
|
-
readonly runId: string;
|
|
2750
|
-
readonly sessionKey: string;
|
|
2751
|
-
readonly tenantKey: string;
|
|
2752
|
-
readonly callId: string;
|
|
2753
|
-
readonly toolId: string;
|
|
2754
|
-
readonly toolVersion: string;
|
|
2755
|
-
readonly risk: RivusToolRisk;
|
|
2756
|
-
}
|
|
2757
|
-
interface ToolApprovalService {
|
|
2758
|
-
consume(request: ToolApprovalRequest): Promise<boolean>;
|
|
2759
|
-
}
|
|
2760
|
-
interface ToolBrokerOptions {
|
|
2761
|
-
readonly approvals: ToolApprovalService;
|
|
2762
|
-
readonly catalog: RivusPluginCatalog;
|
|
2763
|
-
readonly hostTools?: ReadonlyArray<RivusHostToolDescriptor>;
|
|
2764
|
-
readonly policy: AuthorizationPolicyProvider;
|
|
2765
|
-
readonly operations?: ToolOperationLedger;
|
|
2766
|
-
}
|
|
2767
|
-
interface ToolExecutionRequest {
|
|
2768
|
-
readonly authority: InvocationAuthorityRef;
|
|
2769
|
-
readonly callId: string;
|
|
2770
|
-
readonly toolId: string;
|
|
2771
|
-
readonly version: string;
|
|
2772
|
-
readonly input: unknown;
|
|
2773
|
-
readonly operationId?: string;
|
|
2774
|
-
readonly approvalId?: string;
|
|
2775
|
-
}
|
|
2776
|
-
interface ToolBroker {
|
|
2777
|
-
execute(request: ToolExecutionRequest): Promise<unknown>;
|
|
2778
|
-
}
|
|
2779
|
-
declare class ToolInvocationDenied extends Error {
|
|
2780
|
-
readonly name = "ToolInvocationDenied";
|
|
2781
|
-
}
|
|
2782
|
-
declare function createToolBroker(options: ToolBrokerOptions): ToolBroker;
|
|
2783
|
-
//#endregion
|
|
2784
2629
|
//#region src/infrastructure/persistence/jsonl-tool-operation-ledger.d.ts
|
|
2785
2630
|
declare function openJsonlToolOperationLedger(options: {
|
|
2786
2631
|
readonly filePath: string;
|
|
@@ -2804,6 +2649,7 @@ interface FeishuDeploymentEndpointOptions extends Pick<CreateRivusDeploymentEndp
|
|
|
2804
2649
|
readonly botOpenId: string;
|
|
2805
2650
|
readonly cardRollover?: RivusDaemonTransport;
|
|
2806
2651
|
readonly endpointId?: string;
|
|
2652
|
+
readonly finalizeRun?: (runId: string) => Effect.Effect<void>;
|
|
2807
2653
|
readonly eventDispatcher: FeishuWebSocketEventDispatcher;
|
|
2808
2654
|
readonly groupPolicy: FeishuEndpointGroupPolicy;
|
|
2809
2655
|
readonly interactions?: FeishuHumanInteractionActions;
|
|
@@ -3201,41 +3047,6 @@ declare class InvalidToolInput extends InvalidStableJson {
|
|
|
3201
3047
|
declare function createToolInputDigest(input: unknown): string;
|
|
3202
3048
|
declare function normalizeStableJson(value: unknown): unknown;
|
|
3203
3049
|
//#endregion
|
|
3204
|
-
//#region src/infrastructure/pi/pi-tool-proxy.d.ts
|
|
3205
|
-
interface PiToolApprovalRequest {
|
|
3206
|
-
readonly agentId: string;
|
|
3207
|
-
readonly allowedActorOpenIds: ReadonlyArray<string>;
|
|
3208
|
-
readonly approvalId: string;
|
|
3209
|
-
readonly callId: string;
|
|
3210
|
-
readonly endpointId: string;
|
|
3211
|
-
readonly inputDigest: string;
|
|
3212
|
-
readonly instanceId: string;
|
|
3213
|
-
readonly operationId: string;
|
|
3214
|
-
readonly risk: RivusToolRisk;
|
|
3215
|
-
readonly runId: string;
|
|
3216
|
-
readonly sessionKey: string;
|
|
3217
|
-
readonly signal?: AbortSignal;
|
|
3218
|
-
readonly sourceMessageId: string;
|
|
3219
|
-
readonly tenantKey: string;
|
|
3220
|
-
readonly toolId: string;
|
|
3221
|
-
readonly toolVersion: string;
|
|
3222
|
-
}
|
|
3223
|
-
interface PiToolApprovalGateway {
|
|
3224
|
-
requestApproval(request: PiToolApprovalRequest): Promise<void>;
|
|
3225
|
-
}
|
|
3226
|
-
interface PiToolProxyOptions {
|
|
3227
|
-
readonly agentId: string;
|
|
3228
|
-
readonly approvals: PiToolApprovalGateway;
|
|
3229
|
-
readonly broker: ToolBroker;
|
|
3230
|
-
readonly getActiveInput: () => AgentLoopInput | undefined;
|
|
3231
|
-
readonly instanceId: string;
|
|
3232
|
-
readonly memoryScopes?: ReadonlyArray<MemoryScope>;
|
|
3233
|
-
readonly toolGrantSet: RivusToolGrantSet;
|
|
3234
|
-
readonly tools: ReadonlyArray<RivusResolvedToolDescriptor>;
|
|
3235
|
-
}
|
|
3236
|
-
declare function createPiToolProxyDefinitions(options: PiToolProxyOptions): ToolDefinition[];
|
|
3237
|
-
declare function createPiToolNameResolver(tools: ReadonlyArray<Pick<RivusResolvedToolDescriptor, "id">>): (toolName: string) => string;
|
|
3238
|
-
//#endregion
|
|
3239
3050
|
//#region src/composition/human-interaction-tool-approval-gateway.d.ts
|
|
3240
3051
|
interface HumanInteractionEndpointRegistry {
|
|
3241
3052
|
register(endpointId: string, service: HumanInteractionService): void;
|
|
@@ -3317,4 +3128,4 @@ interface ConfiguredFeishuHumanInteractionPresenterOptions {
|
|
|
3317
3128
|
}
|
|
3318
3129
|
declare function createConfiguredFeishuHumanInteractionPresenter(options: ConfiguredFeishuHumanInteractionPresenterOptions): HumanInteractionPresenter;
|
|
3319
3130
|
//#endregion
|
|
3320
|
-
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, 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 ConfiguredFeishuCardKitTargetPreparationOptions, type ConfiguredFeishuCardRolloverRuntime, type ConfiguredFeishuCardRolloverRuntimeOptions, type ConfiguredFeishuHumanInteractionPresenterOptions, type ConfiguredFeishuOpenApiRequest, type ConfiguredFeishuOpenApiResponse, type ConfiguredRivusDaemonBootstrap, type ConfiguredRivusDaemonBootstrapOptions, type ConfiguredRivusDaemonBootstrapRequest, type ConfiguredRivusDaemonBootstrapResponse, type ConsumeToolApprovalInput, type CreateConfiguredRivusDeploymentDaemonOptions, type CreateRivusDeploymentAutomationInput, type CreateRivusDeploymentDaemonOptions, type CreateRivusDeploymentEndpointInput, type CreateRivusDeploymentRuntimeInput, 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 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, type PiToolApprovalGateway, type PiToolApprovalRequest, type PiToolProxyOptions, 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 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 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, assembleAgentContext, assertRivusPluginConforms, commitAutomationOutcome, 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, createCoalescingFeishuPublisher, createCompactionService, createCompositeRivusDaemonTransport, createConfiguredFeishuAutomationCardSender, createConfiguredFeishuCardKitPublisher, createConfiguredFeishuCardKitTargetCreator, createConfiguredFeishuCardKitTargetPreparation, 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, createPiSkillRuntime, createPiToolNameResolver, createPiToolProxyDefinitions, createPluginStateStore, createProjectMemoryPromptPreparer, createRateLimitedFeishuPublisher, createRecoveryAction, createRecoveryControl, createRivusAgentHost, createRivusDaemonProcess, createRivusDaemonShutdownController, createRivusDaemonStatusHttpServer, createRivusDaemonStatusReporter, createRivusDeploymentCliProcess, createRivusDeploymentDaemon, createRivusEnvFromOpenClawConfig, createRivusMemoryTool, createRivusMemoryToolContract, createRivusMemoryToolDescriptor, createRivusPluginCatalog, createRoutedHumanInteractionToolApprovalService, createScheduledAutomation, createSequenceRunIds, createSessionScheduler, createSubagentCoordinator, createSystemClock, createTelemetryContentRedactor, createTextAgentLoop, createTextAgentLoopFromCallback, createToolBroker, createToolInputDigest, createToolOperationLedger, createUuidRunIds, createWorkspaceRootHandle, describeFeishuMessageIntake, evolveAgentRun, formatRivusEnvFile, initialAgentRunState, intersectToolIds, isAgentToolExecutionEvent, isAssistantTextDeltaEvent, isAssistantThinkingDeltaEvent, isCardPresentationHandoffDue, isTerminalAgentDomainEvent, isTerminalAgentRunPhase, loadNodeRivusPluginModule, loadRivusDaemonConfig, loadRivusDeployment, loadRivusDeploymentManifest, normalizeStableJson, openJsonAutomationTickRepository, openJsonlAgentMemoryService, openJsonlFeishuCardDeliveryLedger, openJsonlFeishuInboxRepository, openJsonlRecoveryControl, openJsonlToolOperationLedger, replayAgentHistory, replayAgentTranscript, requiresToolApproval, resolveFeishuEndpointCredentials, resolveLangfuseTelemetryConfig, resolveRivusAgentDefinition, resolveRivusProjectSpace, restoreAgentHistory, restoreConfiguredRivusDaemonBootstrap, restrictMemoryScopesForAudience, runRivusDaemonCli, shouldAcceptFeishuEndpointMessage, transitionHumanInteraction, validateProjectSkillCatalog, validateProjectSkillCommand, validateRivusDeploymentManifest };
|
|
3131
|
+
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, 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 CreateConfiguredRivusDeploymentDaemonOptions, type CreateRivusDeploymentAutomationInput, type CreateRivusDeploymentDaemonOptions, type CreateRivusDeploymentEndpointInput, type CreateRivusDeploymentRuntimeInput, 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 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 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 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, assembleAgentContext, assertRivusPluginConforms, commitAutomationOutcome, 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, createCoalescingFeishuPublisher, createCompactionService, createCompositeRivusDaemonTransport, createConfiguredFeishuAutomationCardSender, 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, formatRivusEnvFile, initialAgentRunState, intersectToolIds, isAgentToolExecutionEvent, isAssistantTextDeltaEvent, isAssistantThinkingDeltaEvent, isCardPresentationHandoffDue, isTerminalAgentDomainEvent, isTerminalAgentRunPhase, loadNodeRivusPluginModule, loadRivusDaemonConfig, loadRivusDeployment, loadRivusDeploymentManifest, normalizeStableJson, openJsonAutomationTickRepository, openJsonlAgentMemoryService, openJsonlFeishuCardDeliveryLedger, openJsonlFeishuInboxRepository, openJsonlRecoveryControl, openJsonlToolOperationLedger, replayAgentHistory, replayAgentTranscript, requiresToolApproval, resolveFeishuEndpointCredentials, resolveLangfuseTelemetryConfig, resolveRivusAgentDefinition, resolveRivusProjectSpace, restoreAgentHistory, restoreConfiguredRivusDaemonBootstrap, restrictMemoryScopesForAudience, runRivusDaemonCli, shouldAcceptFeishuEndpointMessage, transitionHumanInteraction, validateProjectSkillCatalog, validateProjectSkillCommand, validateRivusDeploymentManifest };
|