@rivus/agent 0.14.3 → 0.15.0
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 +1 -1
- package/dist/acp.js +1 -2
- package/dist/bootstrap/pi-feishu.d.ts +2 -2
- package/dist/bootstrap/pi-feishu.js +4119 -389
- package/dist/chunks/agent-loop.d.ts +55 -300
- package/dist/chunks/agent-loop.js +3 -1123
- package/dist/chunks/background-session-authority.js +230 -0
- package/dist/chunks/background-session-control-input.js +51 -0
- package/dist/chunks/background-session-service.d.ts +382 -0
- package/dist/chunks/index.d.ts +1294 -515
- package/dist/chunks/pi-tool-proxy.d.ts +22 -90
- package/dist/chunks/pi.js +60 -20
- package/dist/chunks/rivus-agent-definition-resolver.js +508 -0
- package/dist/chunks/rivus-daemon-cli.js +3004 -3164
- package/dist/chunks/rivus-model-management-wire.js +344 -0
- package/dist/chunks/rivus-plugin-testkit.d.ts +175 -2
- package/dist/chunks/rivus-plugin-testkit.js +11 -4
- package/dist/chunks/rivus-skill.d.ts +95 -0
- package/dist/chunks/rivus-tool.js +158 -0
- package/dist/chunks/sha256-digest.js +2 -7
- package/dist/chunks/src.js +13402 -8264
- package/dist/cli.js +901 -698
- package/dist/index.d.ts +7 -8
- package/dist/index.js +8 -9
- package/dist/mcp.d.ts +46 -7
- package/dist/mcp.js +145 -19
- package/dist/pi.d.ts +5 -4
- package/dist/pi.js +1 -1
- package/examples/pi-feishu-deployment.bootstrap.ts +557 -462
- package/package.json +9 -7
- package/skills/runtime-management/SKILL.md +61 -0
- package/dist/chunks/api.d.ts +0 -70
- package/dist/chunks/api.js +0 -471
- package/dist/chunks/api2.d.ts +0 -387
- package/dist/chunks/api2.js +0 -1331
- package/dist/chunks/api3.d.ts +0 -402
- package/dist/chunks/module.js +0 -267
- package/dist/chunks/pi-skill-tool.js +0 -460
- package/dist/chunks/spi.d.ts +0 -1
- package/dist/chunks/spi.js +0 -2
package/dist/chunks/index.d.ts
CHANGED
|
@@ -1,12 +1,209 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Effect } from "effect";
|
|
1
|
+
import { Et as SessionKey, K as AgentTranscript, Mt as AgentInvocationOrigin, Y as AgentTranscriptTurn, a as AgentLoopInput, at as AgentRunState, et as AgentHistory, ht as AgentRunId$1, it as AgentRunPhase, l as TextAgentLoopCallback, n as AgentLoopCallback, nt as AgentSessionSummary, st as AgentDomainEvent, t as AgentLoop, tt as AgentRunSummary } from "./agent-loop.js";
|
|
2
|
+
import { c as RivusHostToolDescriptor, g as RivusToolGrantSet, l as RivusMemoryAuthority, y as RivusToolRisk } from "./rivus-skill.js";
|
|
3
|
+
import { M as RivusAgentDeployment, _ as AutomationPresentation, c as RivusPluginCatalog, d as RegisteredRivusAutomation, j as ResolvedRivusAgentDefinition, s as RivusPlugin } from "./rivus-plugin-testkit.js";
|
|
4
|
+
import { C as SuspendBackgroundSessionInput, E as BackgroundSessionPhase, M as BackgroundSessionId, O as BackgroundSessionLease, S as CreateBackgroundSessionInput, b as BackgroundSession, d as BackgroundSessionLeasePrecondition, f as BackgroundSessionLeaseRequirement, j as BackgroundSessionMemoryScope, m as BackgroundSessionRepository$1, p as BackgroundSessionLeaseStaleOrAbsent, r as BackgroundSessionService, v as BackgroundSessionDeliveryRecord, w as BackgroundSessionSnapshot, x as ClaimBackgroundSessionInput, y as BackgroundSessionDeliveryStore } from "./background-session-service.js";
|
|
5
|
+
import { c as ToolExecutionRequest$1, d as InvocationAuthorityRef$1, o as AuthorizationPolicyState$1, s as ToolApprovalRequest$1, t as PiToolApprovalGateway, u as InvocationAuthority$1 } from "./pi-tool-proxy.js";
|
|
6
|
+
import { Effect, Stream } from "effect";
|
|
7
7
|
import { Tracer } from "@opentelemetry/api";
|
|
8
8
|
|
|
9
|
-
//#region src/
|
|
9
|
+
//#region src/core/application/run-presentation/projection/conversation-progress.d.ts
|
|
10
|
+
declare const DEFAULT_CONVERSATION_PROGRESS_DISPLAY: "collapsed";
|
|
11
|
+
type ConversationProgressDisplay = "hidden" | "collapsed" | "expanded";
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/core/application/agent-execution/contracts/agent-execution-errors.d.ts
|
|
14
|
+
declare class AgentHarnessBusy {
|
|
15
|
+
readonly activeRun: ActiveAgentRun;
|
|
16
|
+
readonly activeState?: AgentRunState | undefined;
|
|
17
|
+
readonly _tag = "AgentHarnessBusy";
|
|
18
|
+
readonly activeRunId: AgentRunId$1;
|
|
19
|
+
readonly activeSessionKey: SessionKey;
|
|
20
|
+
constructor(activeRun: ActiveAgentRun, activeState?: AgentRunState | undefined);
|
|
21
|
+
}
|
|
22
|
+
declare class AgentLoopFailed {
|
|
23
|
+
readonly runId: AgentRunId$1;
|
|
24
|
+
readonly errorMessage: string;
|
|
25
|
+
readonly cause: unknown;
|
|
26
|
+
readonly state?: AgentRunState | undefined;
|
|
27
|
+
readonly _tag = "AgentLoopFailed";
|
|
28
|
+
constructor(runId: AgentRunId$1, errorMessage: string, cause: unknown, state?: AgentRunState | undefined);
|
|
29
|
+
}
|
|
30
|
+
declare class AgentEventSinkFailed {
|
|
31
|
+
readonly runId: AgentRunId$1;
|
|
32
|
+
readonly eventType: AgentDomainEvent["type"];
|
|
33
|
+
readonly cause: unknown;
|
|
34
|
+
readonly _tag = "AgentEventSinkFailed";
|
|
35
|
+
constructor(runId: AgentRunId$1, eventType: AgentDomainEvent["type"], cause: unknown);
|
|
36
|
+
}
|
|
37
|
+
declare class AgentEventHandlerFailed {
|
|
38
|
+
readonly runId: AgentRunId$1;
|
|
39
|
+
readonly eventType: AgentDomainEvent["type"];
|
|
40
|
+
readonly cause: unknown;
|
|
41
|
+
readonly state?: AgentRunState | undefined;
|
|
42
|
+
readonly _tag = "AgentEventHandlerFailed";
|
|
43
|
+
constructor(runId: AgentRunId$1, eventType: AgentDomainEvent["type"], cause: unknown, state?: AgentRunState | undefined);
|
|
44
|
+
}
|
|
45
|
+
declare class AgentRunCancelled {
|
|
46
|
+
readonly runId: AgentRunId$1;
|
|
47
|
+
readonly reason: string | undefined;
|
|
48
|
+
readonly state: AgentRunState;
|
|
49
|
+
readonly _tag = "AgentRunCancelled";
|
|
50
|
+
constructor(runId: AgentRunId$1, reason: string | undefined, state: AgentRunState);
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/core/application/agent-execution/contracts/agent-execution-contracts.d.ts
|
|
54
|
+
interface AgentClock {
|
|
55
|
+
readonly now: Effect.Effect<Date>;
|
|
56
|
+
}
|
|
57
|
+
interface RunIdGenerator {
|
|
58
|
+
readonly next: Effect.Effect<AgentRunId$1>;
|
|
59
|
+
}
|
|
60
|
+
interface PromptCommand {
|
|
61
|
+
readonly invocation?: AgentInvocationOrigin;
|
|
62
|
+
readonly sessionKey: SessionKey;
|
|
63
|
+
readonly text: string;
|
|
64
|
+
}
|
|
65
|
+
interface AgentPromptResult {
|
|
66
|
+
readonly runId: AgentRunId$1;
|
|
67
|
+
readonly events: ReadonlyArray<AgentDomainEvent>;
|
|
68
|
+
readonly finalText: string;
|
|
69
|
+
readonly runSnapshot: AgentRunSnapshot;
|
|
70
|
+
readonly snapshot: AgentSessionSnapshot;
|
|
71
|
+
readonly state: AgentRunState;
|
|
72
|
+
readonly turn: AgentTranscriptTurn;
|
|
73
|
+
readonly updates: ReadonlyArray<AgentRunUpdate>;
|
|
74
|
+
}
|
|
75
|
+
interface AgentRunUpdate {
|
|
76
|
+
readonly event: AgentDomainEvent;
|
|
77
|
+
readonly previousState?: AgentRunState;
|
|
78
|
+
readonly state: AgentRunState;
|
|
79
|
+
}
|
|
80
|
+
interface AgentRunSnapshot {
|
|
81
|
+
readonly events: ReadonlyArray<AgentDomainEvent>;
|
|
82
|
+
readonly runId: AgentRunId$1;
|
|
83
|
+
readonly state?: AgentRunState;
|
|
84
|
+
readonly summary: AgentRunSummary;
|
|
85
|
+
readonly updates: ReadonlyArray<AgentRunUpdate>;
|
|
86
|
+
}
|
|
87
|
+
interface ActiveAgentRun {
|
|
88
|
+
readonly runId: AgentRunId$1;
|
|
89
|
+
readonly sessionKey: SessionKey;
|
|
90
|
+
}
|
|
91
|
+
type AgentHarnessAvailability = AgentHarnessIdleAvailability | AgentHarnessBusyAvailability;
|
|
92
|
+
type AgentSessionAvailability = AgentHarnessIdleAvailability | AgentSessionBusyAvailability;
|
|
93
|
+
interface AgentHarnessIdleAvailability {
|
|
94
|
+
readonly busy: false;
|
|
95
|
+
}
|
|
96
|
+
interface AgentHarnessBusyAvailability {
|
|
97
|
+
readonly activeRun: ActiveAgentRun;
|
|
98
|
+
readonly activeRunId: AgentRunId$1;
|
|
99
|
+
readonly activeSessionKey: SessionKey;
|
|
100
|
+
readonly activeState?: AgentRunState;
|
|
101
|
+
readonly busy: true;
|
|
102
|
+
}
|
|
103
|
+
type AgentSessionBusyAvailability = AgentSessionOwnedBusyAvailability | AgentSessionOtherBusyAvailability;
|
|
104
|
+
interface AgentSessionOwnedBusyAvailability {
|
|
105
|
+
readonly activeInSession: true;
|
|
106
|
+
readonly activeRun: ActiveAgentRun;
|
|
107
|
+
readonly activeRunId: AgentRunId$1;
|
|
108
|
+
readonly activeState?: AgentRunState;
|
|
109
|
+
readonly busy: true;
|
|
110
|
+
}
|
|
111
|
+
interface AgentSessionOtherBusyAvailability {
|
|
112
|
+
readonly activeInSession: false;
|
|
113
|
+
readonly busy: true;
|
|
114
|
+
}
|
|
115
|
+
interface AgentSessionSnapshot {
|
|
116
|
+
readonly availability: AgentSessionAvailability;
|
|
117
|
+
readonly latestRunSummary?: AgentRunSummary;
|
|
118
|
+
readonly runs: ReadonlyArray<AgentRunSummary>;
|
|
119
|
+
readonly sessionKey: SessionKey;
|
|
120
|
+
readonly state?: AgentRunState;
|
|
121
|
+
readonly summary?: AgentSessionSummary;
|
|
122
|
+
readonly transcript: AgentTranscript;
|
|
123
|
+
}
|
|
124
|
+
type AgentHarnessError = AgentHarnessBusy | AgentLoopFailed | AgentEventSinkFailed | AgentEventHandlerFailed | AgentRunCancelled;
|
|
125
|
+
interface AgentRunSubscriptionCapabilities {
|
|
126
|
+
subscribe(listener: AgentDomainEventListener): () => void;
|
|
127
|
+
subscribeRun(runId: AgentRunId$1, listener: AgentDomainEventListener): () => void;
|
|
128
|
+
subscribeRunUpdates(runId: AgentRunId$1, listener: AgentRunUpdateListener): () => void;
|
|
129
|
+
subscribeUpdates(listener: AgentRunUpdateListener): () => void;
|
|
130
|
+
}
|
|
131
|
+
interface AgentHarness extends AgentRunSubscriptionCapabilities {
|
|
132
|
+
cancelActiveRun(reason?: string): Effect.Effect<boolean>;
|
|
133
|
+
cancelRun(runId: AgentRunId$1, reason?: string): Effect.Effect<boolean>;
|
|
134
|
+
steerRun(runId: AgentRunId$1, text: string): Effect.Effect<boolean>;
|
|
135
|
+
forSession(sessionKey: SessionKey): AgentSessionHandle;
|
|
136
|
+
getActiveRun(): ActiveAgentRun | undefined;
|
|
137
|
+
getActiveRunId(): AgentRunId$1 | undefined;
|
|
138
|
+
getActiveRunState(): AgentRunState | undefined;
|
|
139
|
+
getAvailability(): AgentHarnessAvailability;
|
|
140
|
+
getHistory(): AgentHistory;
|
|
141
|
+
getRunEvents(runId: AgentRunId$1): ReadonlyArray<AgentDomainEvent> | undefined;
|
|
142
|
+
getRunSnapshot(runId: AgentRunId$1): AgentRunSnapshot | undefined;
|
|
143
|
+
getRunSummary(runId: AgentRunId$1): AgentRunSummary | undefined;
|
|
144
|
+
getRunState(runId: AgentRunId$1): AgentRunState | undefined;
|
|
145
|
+
getRunUpdates(runId: AgentRunId$1): ReadonlyArray<AgentRunUpdate> | undefined;
|
|
146
|
+
getSessionHistory(sessionKey: SessionKey): AgentHistory;
|
|
147
|
+
getSessionLatestRunSnapshot(sessionKey: SessionKey): AgentRunSnapshot | undefined;
|
|
148
|
+
getSessionLatestRunSummary(sessionKey: SessionKey): AgentRunSummary | undefined;
|
|
149
|
+
getSessionRuns(sessionKey: SessionKey): ReadonlyArray<AgentRunSummary>;
|
|
150
|
+
getSessionSnapshot(sessionKey: SessionKey): AgentSessionSnapshot;
|
|
151
|
+
getSessionSummary(sessionKey: SessionKey): AgentSessionSummary | undefined;
|
|
152
|
+
getSessionTranscript(sessionKey: SessionKey): AgentTranscript;
|
|
153
|
+
getSessionState(sessionKey: SessionKey): AgentRunState | undefined;
|
|
154
|
+
getState(): AgentRunState;
|
|
155
|
+
prompt(command: PromptCommand): Effect.Effect<AgentPromptResult, AgentHarnessError>;
|
|
156
|
+
promptRunSnapshot(command: PromptCommand): Effect.Effect<AgentRunSnapshot, AgentHarnessError>;
|
|
157
|
+
promptSnapshot(command: PromptCommand): Effect.Effect<AgentSessionSnapshot, AgentHarnessError>;
|
|
158
|
+
promptText(command: PromptCommand): Effect.Effect<string, AgentHarnessError>;
|
|
159
|
+
promptTurn(command: PromptCommand): Effect.Effect<AgentTranscriptTurn, AgentHarnessError>;
|
|
160
|
+
promptWithEvents<R>(command: PromptCommand, onEvent: AgentDomainEventHandler<R>): Effect.Effect<AgentPromptResult, AgentHarnessError, R>;
|
|
161
|
+
promptWithUpdates<R>(command: PromptCommand, onUpdate: AgentRunUpdateHandler<R>): Effect.Effect<AgentPromptResult, AgentHarnessError, R>;
|
|
162
|
+
stream(command: PromptCommand): Stream.Stream<AgentDomainEvent, AgentHarnessError>;
|
|
163
|
+
streamText(command: PromptCommand): Stream.Stream<string, AgentHarnessError>;
|
|
164
|
+
streamUpdates(command: PromptCommand): Stream.Stream<AgentRunUpdate, AgentHarnessError>;
|
|
165
|
+
}
|
|
166
|
+
interface AgentSessionHandle extends AgentRunSubscriptionCapabilities {
|
|
167
|
+
readonly sessionKey: SessionKey;
|
|
168
|
+
cancelActiveRun(reason?: string): Effect.Effect<boolean>;
|
|
169
|
+
cancelRun(runId: AgentRunId$1, reason?: string): Effect.Effect<boolean>;
|
|
170
|
+
steerRun(runId: AgentRunId$1, text: string): Effect.Effect<boolean>;
|
|
171
|
+
getActiveRun(): ActiveAgentRun | undefined;
|
|
172
|
+
getActiveRunState(): AgentRunState | undefined;
|
|
173
|
+
getAvailability(): AgentSessionAvailability;
|
|
174
|
+
getHistory(): AgentHistory;
|
|
175
|
+
getLatestRunSnapshot(): AgentRunSnapshot | undefined;
|
|
176
|
+
getLatestRunSummary(): AgentRunSummary | undefined;
|
|
177
|
+
getRunEvents(runId: AgentRunId$1): ReadonlyArray<AgentDomainEvent> | undefined;
|
|
178
|
+
getRunSnapshot(runId: AgentRunId$1): AgentRunSnapshot | undefined;
|
|
179
|
+
getRunSummary(runId: AgentRunId$1): AgentRunSummary | undefined;
|
|
180
|
+
getRuns(): ReadonlyArray<AgentRunSummary>;
|
|
181
|
+
getSnapshot(): AgentSessionSnapshot;
|
|
182
|
+
getSummary(): AgentSessionSummary | undefined;
|
|
183
|
+
getTranscript(): AgentTranscript;
|
|
184
|
+
getRunState(runId: AgentRunId$1): AgentRunState | undefined;
|
|
185
|
+
getRunUpdates(runId: AgentRunId$1): ReadonlyArray<AgentRunUpdate> | undefined;
|
|
186
|
+
getState(): AgentRunState | undefined;
|
|
187
|
+
prompt(text: string): Effect.Effect<AgentPromptResult, AgentHarnessError>;
|
|
188
|
+
promptRunSnapshot(text: string): Effect.Effect<AgentRunSnapshot, AgentHarnessError>;
|
|
189
|
+
promptSnapshot(text: string): Effect.Effect<AgentSessionSnapshot, AgentHarnessError>;
|
|
190
|
+
promptText(text: string): Effect.Effect<string, AgentHarnessError>;
|
|
191
|
+
promptTurn(text: string): Effect.Effect<AgentTranscriptTurn, AgentHarnessError>;
|
|
192
|
+
promptWithEvents<R>(text: string, onEvent: AgentDomainEventHandler<R>): Effect.Effect<AgentPromptResult, AgentHarnessError, R>;
|
|
193
|
+
promptWithUpdates<R>(text: string, onUpdate: AgentRunUpdateHandler<R>): Effect.Effect<AgentPromptResult, AgentHarnessError, R>;
|
|
194
|
+
stream(text: string): Stream.Stream<AgentDomainEvent, AgentHarnessError>;
|
|
195
|
+
streamText(text: string): Stream.Stream<string, AgentHarnessError>;
|
|
196
|
+
streamUpdates(text: string): Stream.Stream<AgentRunUpdate, AgentHarnessError>;
|
|
197
|
+
}
|
|
198
|
+
type AgentDomainEventListener = (event: AgentDomainEvent) => void;
|
|
199
|
+
type AgentRunUpdateListener = (update: AgentRunUpdate) => void;
|
|
200
|
+
type AgentDomainEventHandler<R = never> = (event: AgentDomainEvent) => Effect.Effect<void, unknown, R>;
|
|
201
|
+
type AgentRunUpdateHandler<R = never> = (update: AgentRunUpdate) => Effect.Effect<void, unknown, R>;
|
|
202
|
+
interface AgentDomainEventSink {
|
|
203
|
+
append(event: AgentDomainEvent): Effect.Effect<void, unknown>;
|
|
204
|
+
}
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region src/core/application/run-presentation/projection/presented-value.d.ts
|
|
10
207
|
type PresentedValue = {
|
|
11
208
|
readonly kind: "boolean";
|
|
12
209
|
readonly value: boolean;
|
|
@@ -45,7 +242,7 @@ interface PresentedValueOptions {
|
|
|
45
242
|
}
|
|
46
243
|
declare function createPresentedValue(value: unknown, options?: PresentedValueOptions): PresentedValue;
|
|
47
244
|
//#endregion
|
|
48
|
-
//#region src/
|
|
245
|
+
//#region src/core/application/run-presentation/projection/run-presentation.d.ts
|
|
49
246
|
declare const RUN_PRESENTATION_SCHEMA_VERSION: 2;
|
|
50
247
|
type AgentRunId = string;
|
|
51
248
|
type RunPresentationPhase = "cancelled" | "completed" | "failed" | "running";
|
|
@@ -99,10 +296,6 @@ interface RunPresentation {
|
|
|
99
296
|
}
|
|
100
297
|
declare function hasInspectableRunProgress(presentation: RunPresentation): boolean;
|
|
101
298
|
//#endregion
|
|
102
|
-
//#region src/modules/run-presentation/domain/presentation/conversation-progress.d.ts
|
|
103
|
-
declare const DEFAULT_CONVERSATION_PROGRESS_DISPLAY: "collapsed";
|
|
104
|
-
type ConversationProgressDisplay = "hidden" | "collapsed" | "expanded";
|
|
105
|
-
//#endregion
|
|
106
299
|
//#region src/adapters/feishu/card-presentation/streaming/feishu-stream-projector.d.ts
|
|
107
300
|
type FeishuStreamAction = {
|
|
108
301
|
readonly type: "update_text";
|
|
@@ -178,18 +371,18 @@ interface JsonlFeishuCardDeliveryLedgerOptions {
|
|
|
178
371
|
}
|
|
179
372
|
declare function openJsonlFeishuCardDeliveryLedger(options: JsonlFeishuCardDeliveryLedgerOptions): Promise<FeishuCardDeliveryLedger>;
|
|
180
373
|
//#endregion
|
|
181
|
-
//#region src/
|
|
182
|
-
type HumanInteractionId = string;
|
|
374
|
+
//#region src/core/domain/human-interaction/aggregate/snapshot.d.ts
|
|
375
|
+
type HumanInteractionId$1 = string;
|
|
183
376
|
type HumanInteractionToolRisk = "observe" | "mutate" | "irreversible" | "host-control";
|
|
184
|
-
interface HumanInteractionActor {
|
|
377
|
+
interface HumanInteractionActor$1 {
|
|
185
378
|
readonly openId: string;
|
|
186
379
|
readonly tenantKey: string;
|
|
187
380
|
}
|
|
188
|
-
interface HumanInteractionFact {
|
|
381
|
+
interface HumanInteractionFact$1 {
|
|
189
382
|
readonly label: string;
|
|
190
383
|
readonly value: string;
|
|
191
384
|
}
|
|
192
|
-
interface ToolApprovalBinding {
|
|
385
|
+
interface ToolApprovalBinding$1 {
|
|
193
386
|
readonly agentId: string;
|
|
194
387
|
readonly callId: string;
|
|
195
388
|
readonly inputDigest: string;
|
|
@@ -202,13 +395,13 @@ interface ToolApprovalBinding {
|
|
|
202
395
|
readonly toolId: string;
|
|
203
396
|
readonly toolVersion: string;
|
|
204
397
|
}
|
|
205
|
-
interface HumanInteractionBase {
|
|
398
|
+
interface HumanInteractionBase$1 {
|
|
206
399
|
readonly agentId: string;
|
|
207
400
|
readonly allowedActorOpenIds: ReadonlyArray<string>;
|
|
208
401
|
readonly createdAt: string;
|
|
209
402
|
readonly expiresAt: string;
|
|
210
|
-
readonly facts: ReadonlyArray<HumanInteractionFact>;
|
|
211
|
-
readonly id: HumanInteractionId;
|
|
403
|
+
readonly facts: ReadonlyArray<HumanInteractionFact$1>;
|
|
404
|
+
readonly id: HumanInteractionId$1;
|
|
212
405
|
readonly instanceId: string;
|
|
213
406
|
readonly revision: number;
|
|
214
407
|
readonly runId: string;
|
|
@@ -218,63 +411,64 @@ interface HumanInteractionBase {
|
|
|
218
411
|
readonly tenantKey: string;
|
|
219
412
|
readonly title: string;
|
|
220
413
|
}
|
|
221
|
-
interface PendingHumanInteractionState {
|
|
414
|
+
interface PendingHumanInteractionState$1 {
|
|
222
415
|
readonly status: "pending";
|
|
223
416
|
}
|
|
224
|
-
interface ApprovedHumanInteractionState {
|
|
225
|
-
readonly actor: HumanInteractionActor;
|
|
417
|
+
interface ApprovedHumanInteractionState$1 {
|
|
418
|
+
readonly actor: HumanInteractionActor$1;
|
|
226
419
|
readonly consumedAt?: string;
|
|
227
420
|
readonly resolvedAt: string;
|
|
228
421
|
readonly status: "approved";
|
|
229
422
|
}
|
|
230
|
-
interface RejectedHumanInteractionState {
|
|
231
|
-
readonly actor: HumanInteractionActor;
|
|
423
|
+
interface RejectedHumanInteractionState$1 {
|
|
424
|
+
readonly actor: HumanInteractionActor$1;
|
|
232
425
|
readonly resolvedAt: string;
|
|
233
426
|
readonly status: "rejected";
|
|
234
427
|
}
|
|
235
|
-
interface SelectedHumanInteractionState {
|
|
236
|
-
readonly actor: HumanInteractionActor;
|
|
428
|
+
interface SelectedHumanInteractionState$1 {
|
|
429
|
+
readonly actor: HumanInteractionActor$1;
|
|
237
430
|
readonly optionId: string;
|
|
238
431
|
readonly resolvedAt: string;
|
|
239
432
|
readonly status: "selected";
|
|
240
433
|
}
|
|
241
|
-
interface ExpiredHumanInteractionState {
|
|
434
|
+
interface ExpiredHumanInteractionState$1 {
|
|
242
435
|
readonly expiredAt: string;
|
|
243
436
|
readonly status: "expired";
|
|
244
437
|
}
|
|
245
|
-
interface CancelledHumanInteractionState {
|
|
438
|
+
interface CancelledHumanInteractionState$1 {
|
|
246
439
|
readonly cancelledAt: string;
|
|
247
440
|
readonly reason?: string;
|
|
248
441
|
readonly status: "cancelled";
|
|
249
442
|
}
|
|
250
|
-
type ToolApprovalInteractionState = PendingHumanInteractionState | ApprovedHumanInteractionState | RejectedHumanInteractionState | ExpiredHumanInteractionState | CancelledHumanInteractionState;
|
|
251
|
-
interface ToolApprovalInteraction extends HumanInteractionBase {
|
|
443
|
+
type ToolApprovalInteractionState$1 = PendingHumanInteractionState$1 | ApprovedHumanInteractionState$1 | RejectedHumanInteractionState$1 | ExpiredHumanInteractionState$1 | CancelledHumanInteractionState$1;
|
|
444
|
+
interface ToolApprovalInteraction$1 extends HumanInteractionBase$1 {
|
|
252
445
|
readonly kind: "tool-approval";
|
|
253
|
-
readonly request: Omit<ToolApprovalBinding, "agentId" | "instanceId" | "runId" | "sessionKey" | "tenantKey">;
|
|
254
|
-
readonly state: ToolApprovalInteractionState;
|
|
446
|
+
readonly request: Omit<ToolApprovalBinding$1, "agentId" | "instanceId" | "runId" | "sessionKey" | "tenantKey">;
|
|
447
|
+
readonly state: ToolApprovalInteractionState$1;
|
|
255
448
|
}
|
|
256
|
-
interface UserDecisionOption {
|
|
449
|
+
interface UserDecisionOption$1 {
|
|
257
450
|
readonly description: string;
|
|
258
451
|
readonly id: string;
|
|
259
452
|
readonly label: string;
|
|
260
453
|
}
|
|
261
|
-
type UserDecisionInteractionState = PendingHumanInteractionState | SelectedHumanInteractionState | RejectedHumanInteractionState | ExpiredHumanInteractionState | CancelledHumanInteractionState;
|
|
262
|
-
interface UserDecisionInteraction extends HumanInteractionBase {
|
|
454
|
+
type UserDecisionInteractionState$1 = PendingHumanInteractionState$1 | SelectedHumanInteractionState$1 | RejectedHumanInteractionState$1 | ExpiredHumanInteractionState$1 | CancelledHumanInteractionState$1;
|
|
455
|
+
interface UserDecisionInteraction$1 extends HumanInteractionBase$1 {
|
|
263
456
|
readonly kind: "user-decision";
|
|
264
|
-
readonly options: ReadonlyArray<UserDecisionOption>;
|
|
457
|
+
readonly options: ReadonlyArray<UserDecisionOption$1>;
|
|
265
458
|
readonly recommendedOptionId?: string;
|
|
266
|
-
readonly state: UserDecisionInteractionState;
|
|
267
|
-
}
|
|
268
|
-
type HumanInteraction = ToolApprovalInteraction | UserDecisionInteraction;
|
|
269
|
-
type
|
|
270
|
-
type
|
|
271
|
-
|
|
272
|
-
readonly
|
|
459
|
+
readonly state: UserDecisionInteractionState$1;
|
|
460
|
+
}
|
|
461
|
+
type HumanInteraction$1 = ToolApprovalInteraction$1 | UserDecisionInteraction$1;
|
|
462
|
+
type HumanInteractionSnapshot = HumanInteraction$1;
|
|
463
|
+
type HumanInteractionResolutionAction$1 = "approve" | "reject" | "select";
|
|
464
|
+
type HumanInteractionTransition$1 = {
|
|
465
|
+
readonly action: HumanInteractionResolutionAction$1;
|
|
466
|
+
readonly actor: HumanInteractionActor$1;
|
|
273
467
|
readonly now: string;
|
|
274
468
|
readonly optionId?: string;
|
|
275
469
|
readonly type: "resolve";
|
|
276
470
|
} | {
|
|
277
|
-
readonly binding: ToolApprovalBinding;
|
|
471
|
+
readonly binding: ToolApprovalBinding$1;
|
|
278
472
|
readonly now: string;
|
|
279
473
|
readonly type: "consume-approval";
|
|
280
474
|
} | {
|
|
@@ -282,13 +476,11 @@ type HumanInteractionTransition = {
|
|
|
282
476
|
readonly reason?: string;
|
|
283
477
|
readonly type: "cancel";
|
|
284
478
|
};
|
|
285
|
-
|
|
286
|
-
//#region src/modules/human-interaction/application/interaction/human-interaction-request.d.ts
|
|
287
|
-
interface RequestToolApprovalInput {
|
|
479
|
+
interface RequestToolApprovalInput$1 {
|
|
288
480
|
readonly agentId: string;
|
|
289
481
|
readonly allowedActorOpenIds: ReadonlyArray<string>;
|
|
290
482
|
readonly expiresAt: string;
|
|
291
|
-
readonly facts: ReadonlyArray<HumanInteractionFact>;
|
|
483
|
+
readonly facts: ReadonlyArray<HumanInteractionFact$1>;
|
|
292
484
|
readonly instanceId: string;
|
|
293
485
|
readonly interactionId: string;
|
|
294
486
|
readonly request: {
|
|
@@ -306,14 +498,14 @@ interface RequestToolApprovalInput {
|
|
|
306
498
|
readonly tenantKey: string;
|
|
307
499
|
readonly title: string;
|
|
308
500
|
}
|
|
309
|
-
interface RequestUserDecisionInput {
|
|
501
|
+
interface RequestUserDecisionInput$1 {
|
|
310
502
|
readonly agentId: string;
|
|
311
503
|
readonly allowedActorOpenIds: ReadonlyArray<string>;
|
|
312
504
|
readonly expiresAt: string;
|
|
313
|
-
readonly facts: ReadonlyArray<HumanInteractionFact>;
|
|
505
|
+
readonly facts: ReadonlyArray<HumanInteractionFact$1>;
|
|
314
506
|
readonly instanceId: string;
|
|
315
507
|
readonly interactionId: string;
|
|
316
|
-
readonly options: ReadonlyArray<UserDecisionOption>;
|
|
508
|
+
readonly options: ReadonlyArray<UserDecisionOption$1>;
|
|
317
509
|
readonly recommendedOptionId?: string;
|
|
318
510
|
readonly runId: string;
|
|
319
511
|
readonly sessionKey: string;
|
|
@@ -323,62 +515,55 @@ interface RequestUserDecisionInput {
|
|
|
323
515
|
readonly title: string;
|
|
324
516
|
}
|
|
325
517
|
//#endregion
|
|
326
|
-
//#region src/
|
|
327
|
-
interface
|
|
328
|
-
present(interaction: HumanInteraction): Effect.Effect<void, unknown>;
|
|
329
|
-
}
|
|
330
|
-
//#endregion
|
|
331
|
-
//#region src/modules/human-interaction/application/interaction/human-interaction-repository.d.ts
|
|
332
|
-
declare class HumanInteractionRepositoryError extends Error {
|
|
333
|
-
readonly operation: "create" | "get" | "update";
|
|
334
|
-
readonly cause?: unknown | undefined;
|
|
335
|
-
readonly name = "HumanInteractionRepositoryError";
|
|
336
|
-
constructor(operation: "create" | "get" | "update", message: string, cause?: unknown | undefined);
|
|
337
|
-
}
|
|
338
|
-
interface HumanInteractionRepository {
|
|
339
|
-
create(interaction: HumanInteraction): Effect.Effect<void, HumanInteractionRepositoryError>;
|
|
340
|
-
get(id: HumanInteractionId): Effect.Effect<HumanInteraction | undefined, HumanInteractionRepositoryError>;
|
|
341
|
-
update(id: HumanInteractionId, transition: (current: HumanInteraction) => HumanInteraction): Effect.Effect<HumanInteraction, HumanInteractionRepositoryError>;
|
|
342
|
-
}
|
|
343
|
-
//#endregion
|
|
344
|
-
//#region src/modules/human-interaction/application/interaction/human-interaction-service.d.ts
|
|
345
|
-
interface HumanInteractionClock {
|
|
518
|
+
//#region src/core/application/human-interaction/ports/human-interaction-contracts.d.ts
|
|
519
|
+
interface HumanInteractionClock$1 {
|
|
346
520
|
now(): string;
|
|
347
521
|
}
|
|
348
|
-
interface ResolveHumanInteractionInput {
|
|
349
|
-
readonly action: HumanInteractionResolutionAction;
|
|
350
|
-
readonly actor: HumanInteractionActor;
|
|
522
|
+
interface ResolveHumanInteractionInput$1 {
|
|
523
|
+
readonly action: HumanInteractionResolutionAction$1;
|
|
524
|
+
readonly actor: HumanInteractionActor$1;
|
|
351
525
|
readonly interactionId: string;
|
|
352
526
|
readonly optionId?: string;
|
|
353
527
|
}
|
|
354
|
-
interface ConsumeToolApprovalInput {
|
|
528
|
+
interface ConsumeToolApprovalInput$1 {
|
|
355
529
|
readonly approvalId: string;
|
|
356
|
-
readonly binding: ToolApprovalBinding;
|
|
357
|
-
}
|
|
358
|
-
interface
|
|
359
|
-
consumeToolApproval(input:
|
|
360
|
-
get(interactionId: string): Effect.Effect<
|
|
361
|
-
resolve(input:
|
|
362
|
-
requestToolApproval(input:
|
|
363
|
-
requestUserDecision(input:
|
|
530
|
+
readonly binding: ToolApprovalBinding$1;
|
|
531
|
+
}
|
|
532
|
+
interface HumanInteractionServiceContract<Interaction, ToolApprovalInteraction = Interaction, UserDecisionInteraction = Interaction, ToolApprovalInput = RequestToolApprovalInput$1, UserDecisionInput = RequestUserDecisionInput$1, ResolveInput = ResolveHumanInteractionInput$1, ConsumeInput = ConsumeToolApprovalInput$1> {
|
|
533
|
+
consumeToolApproval(input: ConsumeInput): Effect.Effect<boolean, unknown>;
|
|
534
|
+
get(interactionId: string): Effect.Effect<Interaction | undefined, unknown>;
|
|
535
|
+
resolve(input: ResolveInput): Effect.Effect<Interaction, unknown>;
|
|
536
|
+
requestToolApproval(input: ToolApprovalInput): Effect.Effect<ToolApprovalInteraction, unknown>;
|
|
537
|
+
requestUserDecision(input: UserDecisionInput): Effect.Effect<UserDecisionInteraction, unknown>;
|
|
364
538
|
waitForResolution(input: {
|
|
365
539
|
readonly interactionId: string;
|
|
366
540
|
readonly signal?: AbortSignal;
|
|
367
|
-
}): Effect.Effect<
|
|
541
|
+
}): Effect.Effect<Interaction, unknown>;
|
|
368
542
|
}
|
|
369
|
-
interface
|
|
370
|
-
readonly clock:
|
|
371
|
-
readonly presenter:
|
|
372
|
-
readonly repository:
|
|
543
|
+
interface HumanInteractionServiceOptionsContract<Clock, Presenter, Repository> {
|
|
544
|
+
readonly clock: Clock;
|
|
545
|
+
readonly presenter: Presenter;
|
|
546
|
+
readonly repository: Repository;
|
|
373
547
|
readonly sleep?: (ms: number) => Promise<void>;
|
|
374
548
|
}
|
|
375
|
-
declare function createHumanInteractionService(options: HumanInteractionServiceOptions): HumanInteractionService;
|
|
376
549
|
//#endregion
|
|
377
|
-
//#region src/
|
|
378
|
-
|
|
379
|
-
|
|
550
|
+
//#region src/core/application/human-interaction/ports/human-interaction-presenter.d.ts
|
|
551
|
+
interface HumanInteractionPresenterContract<Interaction> {
|
|
552
|
+
present(interaction: Interaction): Effect.Effect<void, unknown>;
|
|
553
|
+
}
|
|
554
|
+
//#endregion
|
|
555
|
+
//#region src/core/application/human-interaction/ports/human-interaction-repository.d.ts
|
|
556
|
+
declare class HumanInteractionRepositoryError extends Error {
|
|
557
|
+
readonly operation: "create" | "get" | "update";
|
|
558
|
+
readonly cause?: unknown | undefined;
|
|
559
|
+
readonly name = "HumanInteractionRepositoryError";
|
|
560
|
+
constructor(operation: "create" | "get" | "update", message: string, cause?: unknown | undefined);
|
|
561
|
+
}
|
|
562
|
+
interface HumanInteractionRepositoryContract<Interaction> {
|
|
563
|
+
create(interaction: Interaction): Effect.Effect<void, HumanInteractionRepositoryError>;
|
|
564
|
+
get(id: HumanInteractionId$1): Effect.Effect<Interaction | undefined, HumanInteractionRepositoryError>;
|
|
565
|
+
update(id: HumanInteractionId$1, transition: (current: Interaction) => Interaction): Effect.Effect<Interaction, HumanInteractionRepositoryError>;
|
|
380
566
|
}
|
|
381
|
-
declare function transitionHumanInteraction(interaction: HumanInteraction, transition: HumanInteractionTransition): HumanInteraction;
|
|
382
567
|
//#endregion
|
|
383
568
|
//#region src/adapters/feishu/protocol/feishu-receive-message.d.ts
|
|
384
569
|
interface FeishuReceiveMessagePayload {
|
|
@@ -412,10 +597,8 @@ interface FeishuReceiveMessagePayload {
|
|
|
412
597
|
};
|
|
413
598
|
}
|
|
414
599
|
//#endregion
|
|
415
|
-
//#region src/modules/conversation-session/domain/session/conversation-session.d.ts
|
|
416
|
-
type ConversationSessionKey = string;
|
|
417
|
-
//#endregion
|
|
418
600
|
//#region src/adapters/feishu/conversation-session/feishu-session-key.d.ts
|
|
601
|
+
type ConversationSessionKey = string;
|
|
419
602
|
interface FeishuSessionReference {
|
|
420
603
|
readonly tenantKey: string;
|
|
421
604
|
readonly chatId: string;
|
|
@@ -555,8 +738,8 @@ declare class UnsupportedFeishuCardAction {
|
|
|
555
738
|
}
|
|
556
739
|
type FeishuCardActionIntakeError = InvalidFeishuCardAction | UnsupportedFeishuCardAction;
|
|
557
740
|
interface FeishuResolveInteractionCommand {
|
|
558
|
-
readonly action: HumanInteractionResolutionAction;
|
|
559
|
-
readonly actor: HumanInteractionActor;
|
|
741
|
+
readonly action: HumanInteractionResolutionAction$1;
|
|
742
|
+
readonly actor: HumanInteractionActor$1;
|
|
560
743
|
readonly interactionId: string;
|
|
561
744
|
readonly messageId: string;
|
|
562
745
|
readonly optionId?: string;
|
|
@@ -567,7 +750,6 @@ type FeishuCardActionCommand = FeishuCancelRunCommand | FeishuResolveInteraction
|
|
|
567
750
|
declare function createAgentCommandFromFeishuCardAction(payload: FeishuCardActionTriggerPayload): Effect.Effect<FeishuCardActionCommand, FeishuCardActionIntakeError>;
|
|
568
751
|
//#endregion
|
|
569
752
|
//#region src/adapters/feishu/protocol/feishu-agent-run-preparation.d.ts
|
|
570
|
-
/** Channel contract shared by Feishu intake and presentation adapters. */
|
|
571
753
|
interface FeishuAgentRunPreparation {
|
|
572
754
|
readonly messageId: string;
|
|
573
755
|
readonly prompt: string;
|
|
@@ -659,7 +841,7 @@ interface FeishuAgentDaemonSteeredResult {
|
|
|
659
841
|
readonly steered: true;
|
|
660
842
|
}
|
|
661
843
|
interface FeishuAgentDaemonInteractionResult {
|
|
662
|
-
readonly interaction:
|
|
844
|
+
readonly interaction: HumanInteractionSnapshot;
|
|
663
845
|
readonly interactionId: string;
|
|
664
846
|
readonly messageId: string;
|
|
665
847
|
readonly resolved: true;
|
|
@@ -671,7 +853,7 @@ interface FeishuAgentDaemonSessionResetResult {
|
|
|
671
853
|
readonly reset: true;
|
|
672
854
|
}
|
|
673
855
|
interface FeishuHumanInteractionActions {
|
|
674
|
-
resolve(input: ResolveHumanInteractionInput): Effect.Effect<
|
|
856
|
+
resolve(input: ResolveHumanInteractionInput$1): Effect.Effect<HumanInteractionSnapshot, unknown>;
|
|
675
857
|
}
|
|
676
858
|
type FeishuAgentDaemonHandleResult = FeishuAgentDaemonRunResult | FeishuAgentDaemonSkippedResult | FeishuAgentDaemonCancelResult | FeishuAgentDaemonSteeredResult | FeishuAgentDaemonInteractionResult | FeishuAgentDaemonSessionResetResult;
|
|
677
859
|
interface FeishuAgentPreparedControl {
|
|
@@ -689,18 +871,12 @@ interface FeishuAgentDaemon {
|
|
|
689
871
|
}
|
|
690
872
|
declare function createFeishuAgentDaemon(options: FeishuAgentDaemonOptions): FeishuAgentDaemon;
|
|
691
873
|
//#endregion
|
|
692
|
-
//#region src/
|
|
874
|
+
//#region src/core/application/recovery/contracts/recovery-control.d.ts
|
|
693
875
|
interface RecoveryAction {
|
|
694
876
|
readonly actorId: string;
|
|
695
877
|
readonly at: string;
|
|
696
878
|
readonly note: string;
|
|
697
879
|
}
|
|
698
|
-
declare class InvalidRecoveryAction extends Error {
|
|
699
|
-
readonly name = "InvalidRecoveryAction";
|
|
700
|
-
}
|
|
701
|
-
declare function createRecoveryAction(input: RecoveryAction): RecoveryAction;
|
|
702
|
-
//#endregion
|
|
703
|
-
//#region src/modules/recovery/application/control/recovery-control.d.ts
|
|
704
880
|
type RecoveryToolOperationOutcome = {
|
|
705
881
|
readonly result: unknown;
|
|
706
882
|
readonly status: "applied";
|
|
@@ -775,94 +951,6 @@ interface RecoveryControl {
|
|
|
775
951
|
}): Effect.Effect<ToolOperationResolutionResult, unknown>;
|
|
776
952
|
}
|
|
777
953
|
//#endregion
|
|
778
|
-
//#region src/modules/inbound-delivery/domain/delivery/inbound-delivery.d.ts
|
|
779
|
-
interface InboundDeliveryPendingState {
|
|
780
|
-
readonly availableAt: string;
|
|
781
|
-
readonly status: "pending";
|
|
782
|
-
}
|
|
783
|
-
interface InboundDeliveryLeasedState {
|
|
784
|
-
readonly leaseExpiresAt: string;
|
|
785
|
-
readonly leaseId: string;
|
|
786
|
-
readonly leasedAt: string;
|
|
787
|
-
readonly status: "leased";
|
|
788
|
-
}
|
|
789
|
-
interface InboundDeliveryCompletedState {
|
|
790
|
-
readonly completedAt: string;
|
|
791
|
-
readonly status: "completed";
|
|
792
|
-
}
|
|
793
|
-
interface InboundDeliveryDeadState {
|
|
794
|
-
readonly failedAt: string;
|
|
795
|
-
readonly reason: string;
|
|
796
|
-
readonly status: "dead";
|
|
797
|
-
}
|
|
798
|
-
type InboundDeliveryState = InboundDeliveryPendingState | InboundDeliveryLeasedState | InboundDeliveryCompletedState | InboundDeliveryDeadState;
|
|
799
|
-
interface InboundDeliveryRecoveryAudit {
|
|
800
|
-
readonly actorId: string;
|
|
801
|
-
readonly at: string;
|
|
802
|
-
readonly note: string;
|
|
803
|
-
}
|
|
804
|
-
interface InboundDelivery<Payload = unknown, Metadata = unknown> {
|
|
805
|
-
readonly acceptedAt: string;
|
|
806
|
-
readonly attempts: number;
|
|
807
|
-
readonly id: string;
|
|
808
|
-
readonly laneKey: string;
|
|
809
|
-
readonly metadata?: Metadata;
|
|
810
|
-
readonly payload: Payload;
|
|
811
|
-
readonly recovery?: InboundDeliveryRecoveryAudit;
|
|
812
|
-
readonly revision: number;
|
|
813
|
-
readonly state: InboundDeliveryState;
|
|
814
|
-
}
|
|
815
|
-
//#endregion
|
|
816
|
-
//#region src/modules/inbound-delivery/application/inbox/inbound-delivery-repository.d.ts
|
|
817
|
-
type InboundDeliveryAdmission = "created" | "duplicate" | "capacity";
|
|
818
|
-
interface InboundDeliveryRepository<Payload = unknown, Metadata = unknown> {
|
|
819
|
-
admit(delivery: InboundDelivery<Payload, Metadata>, maxPending: number): Effect.Effect<InboundDeliveryAdmission, unknown>;
|
|
820
|
-
claim(input: {
|
|
821
|
-
readonly leaseExpiresAt: string;
|
|
822
|
-
readonly leaseId: string;
|
|
823
|
-
readonly now: string;
|
|
824
|
-
}): Effect.Effect<InboundDelivery<Payload, Metadata> | undefined, unknown>;
|
|
825
|
-
claimById(input: {
|
|
826
|
-
readonly id: string;
|
|
827
|
-
readonly leaseExpiresAt: string;
|
|
828
|
-
readonly leaseId: string;
|
|
829
|
-
readonly now: string;
|
|
830
|
-
}): Effect.Effect<InboundDelivery<Payload, Metadata> | undefined, unknown>;
|
|
831
|
-
complete(input: {
|
|
832
|
-
readonly completedAt: string;
|
|
833
|
-
readonly id: string;
|
|
834
|
-
readonly leaseId: string;
|
|
835
|
-
}): Effect.Effect<void, unknown>;
|
|
836
|
-
create(delivery: InboundDelivery<Payload, Metadata>): Effect.Effect<boolean, unknown>;
|
|
837
|
-
deadLetters(): ReadonlyArray<InboundDelivery<Payload, Metadata>>;
|
|
838
|
-
fail(input: {
|
|
839
|
-
readonly availableAt?: string;
|
|
840
|
-
readonly failedAt: string;
|
|
841
|
-
readonly id: string;
|
|
842
|
-
readonly leaseId: string;
|
|
843
|
-
readonly reason: string;
|
|
844
|
-
readonly terminal: boolean;
|
|
845
|
-
}): Effect.Effect<void, unknown>;
|
|
846
|
-
pendingCount(): number;
|
|
847
|
-
renew(input: {
|
|
848
|
-
readonly id: string;
|
|
849
|
-
readonly leaseExpiresAt: string;
|
|
850
|
-
readonly leaseId: string;
|
|
851
|
-
readonly now: string;
|
|
852
|
-
}): Effect.Effect<InboundDelivery<Payload, Metadata>, unknown>;
|
|
853
|
-
requeueDeadLetter(input: {
|
|
854
|
-
readonly availableAt: string;
|
|
855
|
-
readonly expectedRevision: number;
|
|
856
|
-
readonly id: string;
|
|
857
|
-
readonly recovery: InboundDeliveryRecoveryAudit;
|
|
858
|
-
}): Effect.Effect<InboundDelivery<Payload, Metadata>, unknown>;
|
|
859
|
-
release(input: {
|
|
860
|
-
readonly availableAt: string;
|
|
861
|
-
readonly id: string;
|
|
862
|
-
readonly leaseId: string;
|
|
863
|
-
}): Effect.Effect<void, unknown>;
|
|
864
|
-
}
|
|
865
|
-
//#endregion
|
|
866
954
|
//#region src/adapters/compatibility/inbound-delivery/feishu-inbox-repository.d.ts
|
|
867
955
|
interface FeishuInboxPendingState {
|
|
868
956
|
readonly availableAt: string;
|
|
@@ -895,15 +983,40 @@ interface FeishuInboxDelivery {
|
|
|
895
983
|
readonly revision: number;
|
|
896
984
|
readonly state: FeishuInboxDeliveryState;
|
|
897
985
|
}
|
|
898
|
-
|
|
986
|
+
interface FeishuInboxClaimInput {
|
|
987
|
+
readonly leaseExpiresAt: string;
|
|
988
|
+
readonly leaseId: string;
|
|
989
|
+
readonly now: string;
|
|
990
|
+
}
|
|
991
|
+
interface FeishuInboxClaimByIdInput extends FeishuInboxClaimInput {
|
|
992
|
+
readonly id: string;
|
|
993
|
+
}
|
|
994
|
+
interface FeishuInboxCompleteInput {
|
|
995
|
+
readonly completedAt: string;
|
|
996
|
+
readonly id: string;
|
|
997
|
+
readonly leaseId: string;
|
|
998
|
+
}
|
|
999
|
+
interface FeishuInboxFailInput {
|
|
1000
|
+
readonly availableAt?: string;
|
|
1001
|
+
readonly failedAt: string;
|
|
1002
|
+
readonly id: string;
|
|
1003
|
+
readonly leaseId: string;
|
|
1004
|
+
readonly reason: string;
|
|
1005
|
+
readonly terminal: boolean;
|
|
1006
|
+
}
|
|
1007
|
+
interface FeishuInboxReleaseInput {
|
|
1008
|
+
readonly availableAt: string;
|
|
1009
|
+
readonly id: string;
|
|
1010
|
+
readonly leaseId: string;
|
|
1011
|
+
}
|
|
899
1012
|
interface FeishuInboxRepository {
|
|
900
|
-
admit(delivery: FeishuInboxDelivery, maxPending: number):
|
|
901
|
-
claim(input:
|
|
902
|
-
claimById(input:
|
|
903
|
-
complete(input:
|
|
1013
|
+
admit(delivery: FeishuInboxDelivery, maxPending: number): Effect.Effect<"created" | "duplicate" | "capacity", unknown>;
|
|
1014
|
+
claim(input: FeishuInboxClaimInput): Effect.Effect<FeishuInboxDelivery | undefined, unknown>;
|
|
1015
|
+
claimById(input: FeishuInboxClaimByIdInput): Effect.Effect<FeishuInboxDelivery | undefined, unknown>;
|
|
1016
|
+
complete(input: FeishuInboxCompleteInput): Effect.Effect<void, unknown>;
|
|
904
1017
|
create(delivery: FeishuInboxDelivery): Effect.Effect<boolean, unknown>;
|
|
905
1018
|
deadLetters(): ReadonlyArray<FeishuInboxDelivery>;
|
|
906
|
-
fail(input:
|
|
1019
|
+
fail(input: FeishuInboxFailInput): Effect.Effect<void, unknown>;
|
|
907
1020
|
pendingCount(): number;
|
|
908
1021
|
requeueDeadLetter(input: {
|
|
909
1022
|
readonly availableAt: string;
|
|
@@ -911,7 +1024,7 @@ interface FeishuInboxRepository {
|
|
|
911
1024
|
readonly id: string;
|
|
912
1025
|
readonly recovery: RecoveryAction;
|
|
913
1026
|
}): Effect.Effect<FeishuInboxDelivery, unknown>;
|
|
914
|
-
release(input:
|
|
1027
|
+
release(input: FeishuInboxReleaseInput): Effect.Effect<void, unknown>;
|
|
915
1028
|
}
|
|
916
1029
|
interface FeishuInboxRepositoryStateOptions {
|
|
917
1030
|
readonly initial?: ReadonlyArray<FeishuInboxDelivery>;
|
|
@@ -919,7 +1032,77 @@ interface FeishuInboxRepositoryStateOptions {
|
|
|
919
1032
|
}
|
|
920
1033
|
declare function createFeishuInboxRepository(options?: FeishuInboxRepositoryStateOptions): FeishuInboxRepository;
|
|
921
1034
|
//#endregion
|
|
1035
|
+
//#region src/core/domain/tool-operation/value-objects/binding.d.ts
|
|
1036
|
+
interface ToolOperationBinding$1 {
|
|
1037
|
+
readonly agentId: string;
|
|
1038
|
+
readonly inputDigest: string;
|
|
1039
|
+
readonly instanceId: string;
|
|
1040
|
+
readonly sourceMessageId: string;
|
|
1041
|
+
readonly toolId: string;
|
|
1042
|
+
readonly toolVersion: string;
|
|
1043
|
+
}
|
|
1044
|
+
//#endregion
|
|
1045
|
+
//#region src/core/domain/tool-operation/aggregate/snapshot.d.ts
|
|
1046
|
+
type ToolOperationState$1 = {
|
|
1047
|
+
readonly status: "pending";
|
|
1048
|
+
} | {
|
|
1049
|
+
readonly result: unknown;
|
|
1050
|
+
readonly status: "completed";
|
|
1051
|
+
} | {
|
|
1052
|
+
readonly reason: string;
|
|
1053
|
+
readonly status: "reconciliation-required";
|
|
1054
|
+
} | {
|
|
1055
|
+
readonly status: "aborted";
|
|
1056
|
+
};
|
|
1057
|
+
interface ToolOperationReconciliationAction {
|
|
1058
|
+
readonly actorId: string;
|
|
1059
|
+
readonly at: string;
|
|
1060
|
+
readonly note: string;
|
|
1061
|
+
}
|
|
1062
|
+
interface ToolOperationReconciliation$1 extends ToolOperationReconciliationAction {
|
|
1063
|
+
readonly outcome: "applied" | "not-applied";
|
|
1064
|
+
}
|
|
1065
|
+
interface ToolOperationSnapshot {
|
|
1066
|
+
readonly binding: ToolOperationBinding$1;
|
|
1067
|
+
readonly operationId: string;
|
|
1068
|
+
readonly reconciliation?: ToolOperationReconciliation$1;
|
|
1069
|
+
readonly revision: number;
|
|
1070
|
+
readonly state: ToolOperationState$1;
|
|
1071
|
+
}
|
|
1072
|
+
type ToolOperationRecord$1 = ToolOperationSnapshot;
|
|
1073
|
+
type ToolOperationReconciliationOutcome$1 = {
|
|
1074
|
+
readonly result: unknown;
|
|
1075
|
+
readonly status: "applied";
|
|
1076
|
+
} | {
|
|
1077
|
+
readonly status: "not-applied";
|
|
1078
|
+
};
|
|
1079
|
+
type ToolOperationBeginResult$1 = {
|
|
1080
|
+
readonly status: "acquired";
|
|
1081
|
+
} | {
|
|
1082
|
+
readonly result: unknown;
|
|
1083
|
+
readonly status: "completed";
|
|
1084
|
+
} | {
|
|
1085
|
+
readonly status: "blocked";
|
|
1086
|
+
readonly reason: string;
|
|
1087
|
+
};
|
|
1088
|
+
type ToolOperationInspectResult$1 = {
|
|
1089
|
+
readonly status: "missing";
|
|
1090
|
+
} | {
|
|
1091
|
+
readonly result: unknown;
|
|
1092
|
+
readonly status: "completed";
|
|
1093
|
+
} | {
|
|
1094
|
+
readonly status: "blocked";
|
|
1095
|
+
readonly reason: string;
|
|
1096
|
+
};
|
|
1097
|
+
//#endregion
|
|
922
1098
|
//#region src/adapters/compatibility/tool-execution/tool-operation-ledger.d.ts
|
|
1099
|
+
interface ToolOperationBinding extends ToolOperationBinding$1 {}
|
|
1100
|
+
type ToolOperationState = ToolOperationState$1;
|
|
1101
|
+
interface ToolOperationReconciliation extends ToolOperationReconciliation$1 {}
|
|
1102
|
+
interface ToolOperationRecord extends ToolOperationRecord$1 {}
|
|
1103
|
+
type ToolOperationReconciliationOutcome = ToolOperationReconciliationOutcome$1;
|
|
1104
|
+
type ToolOperationBeginResult = ToolOperationBeginResult$1;
|
|
1105
|
+
type ToolOperationInspectResult = ToolOperationInspectResult$1;
|
|
923
1106
|
interface ToolOperationLedger {
|
|
924
1107
|
abort(operationId: string, binding: ToolOperationBinding): Promise<void>;
|
|
925
1108
|
begin(operationId: string, binding: ToolOperationBinding): Promise<ToolOperationBeginResult>;
|
|
@@ -956,6 +1139,12 @@ interface RecoveryControlOptions {
|
|
|
956
1139
|
}
|
|
957
1140
|
declare function createRecoveryControl(options: RecoveryControlOptions): RecoveryControl;
|
|
958
1141
|
//#endregion
|
|
1142
|
+
//#region src/core/application/recovery/commands/recovery-action.d.ts
|
|
1143
|
+
declare class InvalidRecoveryAction extends Error {
|
|
1144
|
+
readonly name = "InvalidRecoveryAction";
|
|
1145
|
+
}
|
|
1146
|
+
declare function createRecoveryAction(input: RecoveryAction): RecoveryAction;
|
|
1147
|
+
//#endregion
|
|
959
1148
|
//#region src/adapters/compatibility/inbound-delivery/jsonl-feishu-inbox-repository.d.ts
|
|
960
1149
|
interface JsonlFeishuInboxRepositoryOptions {
|
|
961
1150
|
readonly filePath: string;
|
|
@@ -968,7 +1157,7 @@ interface OpenJsonFeishuSessionStoreOptions {
|
|
|
968
1157
|
}
|
|
969
1158
|
declare function openJsonFeishuSessionStore(options: OpenJsonFeishuSessionStoreOptions): Promise<FeishuSessionStore>;
|
|
970
1159
|
//#endregion
|
|
971
|
-
//#region src/
|
|
1160
|
+
//#region src/core/application/agent-host/contracts/agent-instance.d.ts
|
|
972
1161
|
type AgentInstanceBinding = {
|
|
973
1162
|
readonly kind: "endpoint";
|
|
974
1163
|
readonly endpointId: string;
|
|
@@ -986,16 +1175,8 @@ interface AgentInstanceRecord {
|
|
|
986
1175
|
readonly instanceId: string;
|
|
987
1176
|
readonly runtimeGenerationId: string;
|
|
988
1177
|
}
|
|
989
|
-
declare class AgentInstanceConflict extends Error {
|
|
990
|
-
readonly name = "AgentInstanceConflict";
|
|
991
|
-
}
|
|
992
1178
|
//#endregion
|
|
993
|
-
//#region src/
|
|
994
|
-
interface AgentInstanceRegistryOptions {
|
|
995
|
-
readonly initialRecords?: ReadonlyArray<AgentInstanceRecord>;
|
|
996
|
-
}
|
|
997
|
-
//#endregion
|
|
998
|
-
//#region src/modules/agent-host/application/runtime/agent-host-runtime.d.ts
|
|
1179
|
+
//#region src/core/application/agent-host/contracts/agent-host-runtime.d.ts
|
|
999
1180
|
interface AgentRuntimeInput$1 {
|
|
1000
1181
|
readonly invocation?: AgentInvocationOrigin;
|
|
1001
1182
|
readonly onUpdate?: (update: AgentRunUpdate) => Effect.Effect<void, unknown>;
|
|
@@ -1013,6 +1194,8 @@ interface AgentRuntimeSteering$1 {
|
|
|
1013
1194
|
readonly sessionKey: SessionKey;
|
|
1014
1195
|
readonly text: string;
|
|
1015
1196
|
}
|
|
1197
|
+
//#endregion
|
|
1198
|
+
//#region src/adapters/agent/runtime/effect-agent-runtime-pool.d.ts
|
|
1016
1199
|
declare class AgentInstanceBusy extends Error {
|
|
1017
1200
|
readonly name = "AgentInstanceBusy";
|
|
1018
1201
|
}
|
|
@@ -1020,6 +1203,14 @@ declare class AgentRuntimeDisposed extends Error {
|
|
|
1020
1203
|
readonly name = "AgentRuntimeDisposed";
|
|
1021
1204
|
}
|
|
1022
1205
|
//#endregion
|
|
1206
|
+
//#region src/core/application/agent-host/registry/agent-instance-registry.d.ts
|
|
1207
|
+
interface AgentInstanceRegistryOptions {
|
|
1208
|
+
readonly initialRecords?: ReadonlyArray<AgentInstanceRecord>;
|
|
1209
|
+
}
|
|
1210
|
+
declare class AgentInstanceConflict extends Error {
|
|
1211
|
+
readonly name = "AgentInstanceConflict";
|
|
1212
|
+
}
|
|
1213
|
+
//#endregion
|
|
1023
1214
|
//#region src/adapters/compatibility/agent-host/agent-instance-registry.d.ts
|
|
1024
1215
|
interface AgentInstanceRegistry {
|
|
1025
1216
|
resolveAutomation(automationId: string, definition: ResolvedRivusAgentDefinition): AgentInstanceRecord;
|
|
@@ -1329,8 +1520,8 @@ interface MergePiProviderBaseUrlOverrideOptions {
|
|
|
1329
1520
|
}
|
|
1330
1521
|
declare function mergePiProviderBaseUrlOverride(options: MergePiProviderBaseUrlOverrideOptions): Promise<void>;
|
|
1331
1522
|
//#endregion
|
|
1332
|
-
//#region src/
|
|
1333
|
-
interface
|
|
1523
|
+
//#region src/platform/durable-queue/processing/durable-queue.d.ts
|
|
1524
|
+
interface DurableQueuePreparedAction<Result> {
|
|
1334
1525
|
execute(): Effect.Effect<Result | undefined, unknown>;
|
|
1335
1526
|
}
|
|
1336
1527
|
//#endregion
|
|
@@ -1372,7 +1563,7 @@ interface FeishuMessageQueueOptions {
|
|
|
1372
1563
|
*/
|
|
1373
1564
|
readonly shouldSkipReplay?: (payload: FeishuReceiveMessagePayload) => Effect.Effect<boolean, unknown>;
|
|
1374
1565
|
}
|
|
1375
|
-
type FeishuMessagePreparedControl =
|
|
1566
|
+
type FeishuMessagePreparedControl = DurableQueuePreparedAction<FeishuAgentDaemonHandleResult>;
|
|
1376
1567
|
type FeishuMessageDrainResult = {
|
|
1377
1568
|
readonly handled: true;
|
|
1378
1569
|
readonly messageId: string;
|
|
@@ -1489,7 +1680,7 @@ interface CompositeRivusDaemonTransportOptions {
|
|
|
1489
1680
|
}
|
|
1490
1681
|
declare function createCompositeRivusDaemonTransport(options: CompositeRivusDaemonTransportOptions): RivusDaemonTransport;
|
|
1491
1682
|
//#endregion
|
|
1492
|
-
//#region src/
|
|
1683
|
+
//#region src/core/application/card-presentation/projection/card-presentation.d.ts
|
|
1493
1684
|
type CardPresentationStatus = "streaming" | "handoff-pending" | "active" | "closed" | "terminal";
|
|
1494
1685
|
interface CardPresentation {
|
|
1495
1686
|
readonly runId: string;
|
|
@@ -1537,9 +1728,6 @@ declare function activeCardPresentation(chain: CardPresentationChain): CardPrese
|
|
|
1537
1728
|
declare function acceptsCardPresentationProgress(chain: CardPresentationChain): boolean;
|
|
1538
1729
|
declare function isCardPresentationHandoffDue(chain: CardPresentationChain, now: string): boolean;
|
|
1539
1730
|
//#endregion
|
|
1540
|
-
//#region src/modules/card-presentation/domain/presentation/card-presentation-lease.d.ts
|
|
1541
|
-
declare const DEFAULT_CARD_STREAM_LEASE_MS = 510000;
|
|
1542
|
-
//#endregion
|
|
1543
1731
|
//#region src/adapters/feishu/card-presentation/feishu-card-presentation-store.d.ts
|
|
1544
1732
|
interface FeishuCardPresentationHandoffStart {
|
|
1545
1733
|
readonly presentation: CardPresentation;
|
|
@@ -1570,6 +1758,9 @@ interface FeishuCardPresentationStore {
|
|
|
1570
1758
|
size(): number;
|
|
1571
1759
|
}
|
|
1572
1760
|
//#endregion
|
|
1761
|
+
//#region src/core/application/card-presentation/projection/card-presentation-lease.d.ts
|
|
1762
|
+
declare const DEFAULT_CARD_STREAM_LEASE_MS = 510000;
|
|
1763
|
+
//#endregion
|
|
1573
1764
|
//#region src/adapters/feishu/card-presentation/rollover/feishu-card-rollover.d.ts
|
|
1574
1765
|
interface FeishuCardRolloverTarget {
|
|
1575
1766
|
readonly cardId: string;
|
|
@@ -1720,151 +1911,134 @@ interface ProcessAgentRuntime {
|
|
|
1720
1911
|
steer?(input: AgentRuntimeSteering$1): Promise<boolean>;
|
|
1721
1912
|
}
|
|
1722
1913
|
//#endregion
|
|
1723
|
-
//#region src/
|
|
1724
|
-
interface
|
|
1725
|
-
readonly
|
|
1726
|
-
readonly
|
|
1727
|
-
readonly
|
|
1728
|
-
readonly
|
|
1729
|
-
readonly
|
|
1730
|
-
readonly
|
|
1731
|
-
readonly
|
|
1732
|
-
readonly
|
|
1914
|
+
//#region src/core/application/automation/policy/automation-mandate.d.ts
|
|
1915
|
+
interface AutomationBinding {
|
|
1916
|
+
readonly agentId: string;
|
|
1917
|
+
readonly bindingId: string;
|
|
1918
|
+
readonly delivery: AutomationDeliveryBinding;
|
|
1919
|
+
readonly schedule: string;
|
|
1920
|
+
readonly servicePrincipalId: string;
|
|
1921
|
+
readonly skillGrantRevision: string;
|
|
1922
|
+
readonly skillIds: ReadonlyArray<string>;
|
|
1923
|
+
readonly templateId: string;
|
|
1924
|
+
readonly timeZone: string;
|
|
1925
|
+
readonly toolIds: ReadonlyArray<string>;
|
|
1733
1926
|
}
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
readonly
|
|
1737
|
-
readonly
|
|
1738
|
-
readonly wakeText: string;
|
|
1739
|
-
readonly now: string;
|
|
1927
|
+
interface AutomationDeliveryBinding {
|
|
1928
|
+
readonly endpointId: string;
|
|
1929
|
+
readonly targetKey: string;
|
|
1930
|
+
readonly targetType: "chat_id" | "open_id" | "user_id" | "union_id" | "email";
|
|
1740
1931
|
}
|
|
1741
|
-
|
|
1742
|
-
declare function renewBackgroundSessionLease(state: BackgroundSessionState, lease: BackgroundSessionLease): BackgroundSessionState;
|
|
1743
|
-
declare function releaseBackgroundSessionLease(state: BackgroundSessionState): BackgroundSessionState;
|
|
1744
|
-
interface SuspendBackgroundSessionInput {
|
|
1745
|
-
readonly wakeAt?: string;
|
|
1746
|
-
readonly reason?: string;
|
|
1747
|
-
readonly now: string;
|
|
1748
|
-
}
|
|
1749
|
-
declare function suspendBackgroundSession(state: BackgroundSessionState, input: SuspendBackgroundSessionInput): BackgroundSessionState;
|
|
1750
|
-
declare function completeBackgroundSessionStep(state: BackgroundSessionState, input: {
|
|
1751
|
-
readonly text: string;
|
|
1752
|
-
readonly stepRunId: string;
|
|
1753
|
-
readonly now: string;
|
|
1754
|
-
}): BackgroundSessionState;
|
|
1755
|
-
declare function failBackgroundSessionStep(state: BackgroundSessionState, input: {
|
|
1756
|
-
readonly errorMessage: string;
|
|
1757
|
-
readonly now: string;
|
|
1758
|
-
readonly retryable: boolean;
|
|
1759
|
-
readonly wakeAt?: string;
|
|
1760
|
-
}): BackgroundSessionState;
|
|
1761
|
-
declare function requestBackgroundSessionStop(state: BackgroundSessionState, input: {
|
|
1762
|
-
readonly reason: string;
|
|
1763
|
-
readonly now: string;
|
|
1764
|
-
}): BackgroundSessionState;
|
|
1765
|
-
declare function completeBackgroundSessionStop(state: BackgroundSessionState, input: {
|
|
1766
|
-
readonly now: string;
|
|
1767
|
-
}): BackgroundSessionState;
|
|
1768
|
-
declare function parkBackgroundSessionForReconciliation(state: BackgroundSessionState, input: {
|
|
1769
|
-
readonly reason: string;
|
|
1770
|
-
readonly now: string;
|
|
1771
|
-
}): BackgroundSessionState;
|
|
1772
|
-
declare function resolveBackgroundSessionReconciliation(state: BackgroundSessionState, input: {
|
|
1773
|
-
readonly outcome: "continue" | "stop";
|
|
1774
|
-
readonly now: string;
|
|
1775
|
-
}): BackgroundSessionState;
|
|
1776
|
-
declare function appendBackgroundSessionInput(state: BackgroundSessionState, input: {
|
|
1777
|
-
readonly message: string;
|
|
1778
|
-
readonly now: string;
|
|
1779
|
-
}): BackgroundSessionState;
|
|
1780
|
-
declare function requeueInterruptedBackgroundSessionStep(state: BackgroundSessionState, input: {
|
|
1781
|
-
readonly wakeText: string;
|
|
1782
|
-
readonly now: string;
|
|
1783
|
-
}): BackgroundSessionState;
|
|
1784
|
-
declare function isBackgroundSessionLeaseExpired(state: BackgroundSessionState, now: string): boolean;
|
|
1785
|
-
declare function isBackgroundSessionDue(state: BackgroundSessionState, now: string): boolean;
|
|
1786
|
-
//#endregion
|
|
1787
|
-
//#region src/modules/project-space/application/workspace/workspace-instructions.d.ts
|
|
1788
|
-
interface WorkspaceRootHandle {
|
|
1932
|
+
interface AutomationMandate extends AutomationBinding {
|
|
1789
1933
|
readonly id: string;
|
|
1934
|
+
readonly active: boolean;
|
|
1790
1935
|
}
|
|
1791
|
-
interface
|
|
1792
|
-
readonly
|
|
1793
|
-
readonly
|
|
1794
|
-
readonly
|
|
1795
|
-
readonly
|
|
1796
|
-
}
|
|
1797
|
-
type WorkspaceInstructionsDiagnosticCode = "workspace-instructions-refresh-required" | "workspace-instructions-source-omitted";
|
|
1798
|
-
interface WorkspaceInstructionsDiagnostic {
|
|
1799
|
-
readonly code: WorkspaceInstructionsDiagnosticCode;
|
|
1800
|
-
readonly relativePath?: string;
|
|
1801
|
-
readonly reason: string;
|
|
1802
|
-
}
|
|
1803
|
-
interface WorkspaceInstructionsRequest {
|
|
1804
|
-
readonly workspaceRoot: WorkspaceRootHandle;
|
|
1805
|
-
readonly workingDirectory: string;
|
|
1806
|
-
readonly targetPath?: string;
|
|
1807
|
-
readonly maxBytes: number;
|
|
1808
|
-
readonly operation?: "read" | "mutate";
|
|
1809
|
-
readonly presentedDigests?: ReadonlyArray<string>;
|
|
1810
|
-
}
|
|
1811
|
-
interface WorkspaceInstructionsView {
|
|
1812
|
-
readonly sources: ReadonlyArray<WorkspaceInstructionSource>;
|
|
1813
|
-
readonly content: string;
|
|
1814
|
-
readonly digest: string;
|
|
1815
|
-
readonly truncated: boolean;
|
|
1816
|
-
readonly refreshRequired: boolean;
|
|
1817
|
-
readonly diagnostics: ReadonlyArray<WorkspaceInstructionsDiagnostic>;
|
|
1936
|
+
interface AutomationTick {
|
|
1937
|
+
readonly tickId: string;
|
|
1938
|
+
readonly mandateId: string;
|
|
1939
|
+
readonly occurrence: string;
|
|
1940
|
+
readonly claimedBy: string;
|
|
1818
1941
|
}
|
|
1819
|
-
|
|
1820
|
-
|
|
1942
|
+
interface AutomationMandateStore {
|
|
1943
|
+
activate(binding: AutomationBinding): AutomationMandate;
|
|
1944
|
+
revoke(id: string): void;
|
|
1945
|
+
claim(id: string, occurrence: string, workerId: string): AutomationTick;
|
|
1821
1946
|
}
|
|
1822
|
-
declare class
|
|
1823
|
-
readonly
|
|
1824
|
-
readonly reason: string;
|
|
1825
|
-
readonly name = "WorkspaceInstructionsSourceError";
|
|
1826
|
-
constructor(relativePath: string, reason: string);
|
|
1947
|
+
declare class AutomationMandateError extends Error {
|
|
1948
|
+
readonly name = "AutomationMandateError";
|
|
1827
1949
|
}
|
|
1828
1950
|
//#endregion
|
|
1829
|
-
//#region src/
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
readonly
|
|
1833
|
-
readonly
|
|
1834
|
-
readonly
|
|
1835
|
-
|
|
1836
|
-
};
|
|
1951
|
+
//#region src/core/application/automation/scheduling/automation-scheduler.d.ts
|
|
1952
|
+
declare const AUTOMATION_SUPPRESSION_PREFIX = "RIVUS_AUTOMATION_SUPPRESSED:";
|
|
1953
|
+
interface ScheduledAutomationRunInput {
|
|
1954
|
+
readonly occurrence: string;
|
|
1955
|
+
readonly sessionKey: string;
|
|
1956
|
+
readonly text: string;
|
|
1957
|
+
readonly tickId: string;
|
|
1837
1958
|
}
|
|
1838
|
-
interface
|
|
1839
|
-
readonly
|
|
1840
|
-
readonly
|
|
1841
|
-
readonly
|
|
1842
|
-
readonly
|
|
1843
|
-
readonly revision: string;
|
|
1959
|
+
interface ScheduledAutomationRunResult {
|
|
1960
|
+
readonly body?: string;
|
|
1961
|
+
readonly presentation?: AutomationPresentation;
|
|
1962
|
+
readonly runId: string;
|
|
1963
|
+
readonly suppressedReason?: string;
|
|
1844
1964
|
}
|
|
1845
|
-
|
|
1846
|
-
readonly
|
|
1965
|
+
interface ScheduledAutomationDeliveryInput {
|
|
1966
|
+
readonly body: string;
|
|
1967
|
+
readonly idempotencyKey: string;
|
|
1968
|
+
readonly presentation?: AutomationPresentation;
|
|
1847
1969
|
}
|
|
1848
1970
|
//#endregion
|
|
1849
|
-
//#region src/
|
|
1850
|
-
|
|
1851
|
-
|
|
1971
|
+
//#region src/core/domain/background-session/factories/create-background-session.d.ts
|
|
1972
|
+
declare function createBackgroundSession$1(input: CreateBackgroundSessionInput): BackgroundSession;
|
|
1973
|
+
//#endregion
|
|
1974
|
+
//#region src/core/application/background-session/supervision/background-session-delivery-queue.d.ts
|
|
1975
|
+
type BackgroundSessionDeliveryKindForSupervisor = "progress" | "final" | "stopped" | "failed" | "reconciliation";
|
|
1976
|
+
type BackgroundSessionDeliverySink = (delivery: {
|
|
1977
|
+
readonly deliveryId: string;
|
|
1978
|
+
readonly kind: BackgroundSessionDeliveryKindForSupervisor;
|
|
1979
|
+
readonly sessionId: string;
|
|
1980
|
+
readonly text: string;
|
|
1981
|
+
}) => Promise<{
|
|
1982
|
+
readonly providerMessageId: string;
|
|
1983
|
+
}>;
|
|
1984
|
+
//#endregion
|
|
1985
|
+
//#region src/core/application/background-session/supervision/background-session-supervisor.d.ts
|
|
1986
|
+
interface BackgroundSessionLimits {
|
|
1987
|
+
readonly intervalMs: number;
|
|
1988
|
+
readonly leaseMs: number;
|
|
1989
|
+
readonly leaseRenewalIntervalMs: number;
|
|
1990
|
+
readonly maxConcurrentSessions: number;
|
|
1991
|
+
readonly maxConsecutiveFailures: number;
|
|
1992
|
+
readonly retryBackoffMs: number;
|
|
1993
|
+
readonly sessionLifetimeMs: number;
|
|
1852
1994
|
}
|
|
1853
|
-
interface
|
|
1854
|
-
readonly
|
|
1855
|
-
readonly
|
|
1856
|
-
readonly type: "warning" | "error" | "collision";
|
|
1995
|
+
interface BackgroundSessionStepResult {
|
|
1996
|
+
readonly finalText: string;
|
|
1997
|
+
readonly runId: string;
|
|
1857
1998
|
}
|
|
1858
|
-
|
|
1859
|
-
readonly
|
|
1999
|
+
interface BackgroundSessionSupervisorOptions$1 {
|
|
2000
|
+
readonly clock: {
|
|
2001
|
+
now(): string;
|
|
2002
|
+
};
|
|
2003
|
+
readonly config: BackgroundSessionLimits;
|
|
2004
|
+
readonly deliveries: BackgroundSessionDeliveryStore;
|
|
2005
|
+
readonly deliver: BackgroundSessionDeliverySink;
|
|
2006
|
+
readonly onError?: (error: unknown) => void;
|
|
2007
|
+
readonly repository: BackgroundSessionRepository$1;
|
|
2008
|
+
readonly runStep: (input: {
|
|
2009
|
+
readonly session: BackgroundSession;
|
|
2010
|
+
readonly signal: AbortSignal;
|
|
2011
|
+
readonly wakeText: string;
|
|
2012
|
+
}) => Promise<BackgroundSessionStepResult>;
|
|
2013
|
+
readonly sleep: (ms: number) => Effect.Effect<void>;
|
|
2014
|
+
}
|
|
2015
|
+
interface BackgroundSessionSupervisorStatus {
|
|
2016
|
+
readonly capacity: number;
|
|
2017
|
+
readonly counters: {
|
|
2018
|
+
readonly completed: number;
|
|
2019
|
+
readonly deliveriesDelivered: number;
|
|
2020
|
+
readonly failed: number;
|
|
2021
|
+
readonly started: number;
|
|
2022
|
+
readonly staleLeaseEventsDropped: number;
|
|
2023
|
+
readonly stopped: number;
|
|
2024
|
+
};
|
|
2025
|
+
readonly inFlightSteps: number;
|
|
2026
|
+
readonly oldestDueAt?: string;
|
|
2027
|
+
readonly owner: string;
|
|
2028
|
+
readonly phaseCounts: Readonly<Record<BackgroundSessionPhase, number>>;
|
|
2029
|
+
readonly reconciliationCount: number;
|
|
2030
|
+
readonly repositoryHealthy: boolean;
|
|
2031
|
+
readonly running: boolean;
|
|
2032
|
+
}
|
|
2033
|
+
interface BackgroundSessionSupervisor {
|
|
2034
|
+
recover(): Effect.Effect<void>;
|
|
2035
|
+
start(): Effect.Effect<void>;
|
|
2036
|
+
status(): BackgroundSessionSupervisorStatus;
|
|
2037
|
+
stop(): Effect.Effect<void>;
|
|
2038
|
+
tick(): Effect.Effect<void>;
|
|
1860
2039
|
}
|
|
1861
|
-
declare function validateProjectSkillCatalog(input: {
|
|
1862
|
-
readonly diagnostics: ReadonlyArray<ProjectSkillCatalogDiagnostic>;
|
|
1863
|
-
readonly skills: ReadonlyArray<ProjectSkillCatalogEntry>;
|
|
1864
|
-
}): ReadonlySet<string>;
|
|
1865
|
-
declare function validateProjectSkillCommand(text: string, skillNames: ReadonlySet<string>): void;
|
|
1866
2040
|
//#endregion
|
|
1867
|
-
//#region src/
|
|
2041
|
+
//#region src/core/application/deployment/contracts/manifest.d.ts
|
|
1868
2042
|
interface RivusPluginDeclaration {
|
|
1869
2043
|
readonly id: string;
|
|
1870
2044
|
readonly module: string;
|
|
@@ -1916,7 +2090,7 @@ interface RivusEndpointDeployment {
|
|
|
1916
2090
|
readonly experimental?: RivusEndpointExperimentalFeatures;
|
|
1917
2091
|
readonly groupPolicy: "mention-only" | "ignore-unmentioned" | "default-responder";
|
|
1918
2092
|
readonly id: string;
|
|
1919
|
-
readonly progressDisplay?:
|
|
2093
|
+
readonly progressDisplay?: "hidden" | "collapsed" | "expanded";
|
|
1920
2094
|
readonly required: boolean;
|
|
1921
2095
|
readonly sessionNamespace: string;
|
|
1922
2096
|
readonly streamMinIntervalMs: number;
|
|
@@ -1924,16 +2098,16 @@ interface RivusEndpointDeployment {
|
|
|
1924
2098
|
interface RivusEndpointExperimentalFeatures {
|
|
1925
2099
|
readonly cotMessages: boolean;
|
|
1926
2100
|
}
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
readonly
|
|
1932
|
-
|
|
1933
|
-
|
|
2101
|
+
interface RivusProjectSpaceDeployment {
|
|
2102
|
+
readonly id: string;
|
|
2103
|
+
readonly root: string;
|
|
2104
|
+
readonly workingDirectory: string;
|
|
2105
|
+
readonly skills: {
|
|
2106
|
+
readonly sources: ReadonlyArray<string>;
|
|
2107
|
+
};
|
|
1934
2108
|
}
|
|
1935
2109
|
//#endregion
|
|
1936
|
-
//#region src/
|
|
2110
|
+
//#region src/core/application/deployment/contracts/deployment.d.ts
|
|
1937
2111
|
interface RivusPluginLoadStatus {
|
|
1938
2112
|
readonly error?: string;
|
|
1939
2113
|
readonly id: string;
|
|
@@ -1954,6 +2128,13 @@ interface ResolvedRivusAutomationDefinition extends RivusAutomationDeployment {
|
|
|
1954
2128
|
readonly runtimeDefinition: ResolvedRivusAgentDefinition;
|
|
1955
2129
|
readonly template: RegisteredRivusAutomation;
|
|
1956
2130
|
}
|
|
2131
|
+
interface ResolvedRivusProjectSpace {
|
|
2132
|
+
readonly id: string;
|
|
2133
|
+
readonly root: string;
|
|
2134
|
+
readonly workingDirectory: string;
|
|
2135
|
+
readonly skillPaths: ReadonlyArray<string>;
|
|
2136
|
+
readonly revision: string;
|
|
2137
|
+
}
|
|
1957
2138
|
interface LoadedRivusDeployment {
|
|
1958
2139
|
readonly agents: ReadonlyArray<RivusAgentDeploymentStatus>;
|
|
1959
2140
|
readonly automationDefinitions: ReadonlyArray<ResolvedRivusAutomationDefinition>;
|
|
@@ -1962,14 +2143,11 @@ interface LoadedRivusDeployment {
|
|
|
1962
2143
|
readonly manifest: RivusDeploymentManifest;
|
|
1963
2144
|
readonly plugins: ReadonlyArray<RivusPluginLoadStatus>;
|
|
1964
2145
|
}
|
|
1965
|
-
|
|
2146
|
+
interface RivusPluginModuleLoadRequest {
|
|
2147
|
+
readonly deploymentRoot: string;
|
|
2148
|
+
readonly module: string;
|
|
1966
2149
|
readonly pluginId: string;
|
|
1967
|
-
readonly moduleSpecifier: string;
|
|
1968
|
-
readonly name = "RivusPluginLoadError";
|
|
1969
|
-
constructor(pluginId: string, moduleSpecifier: string, message: string, options?: ErrorOptions);
|
|
1970
2150
|
}
|
|
1971
|
-
//#endregion
|
|
1972
|
-
//#region src/modules/deployment-control/application/lifecycle/deployment-control-ports.d.ts
|
|
1973
2151
|
interface RivusDeploymentBackgroundSessionCancellation {
|
|
1974
2152
|
readonly agentId: string;
|
|
1975
2153
|
readonly reason?: string;
|
|
@@ -1977,64 +2155,7 @@ interface RivusDeploymentBackgroundSessionCancellation {
|
|
|
1977
2155
|
readonly sessionKey: string;
|
|
1978
2156
|
}
|
|
1979
2157
|
//#endregion
|
|
1980
|
-
//#region src/
|
|
1981
|
-
type RivusDeploymentComponentLifecycle = "disabled" | "stopped" | "starting" | "running" | "degraded" | "stopping" | "cleanup-required";
|
|
1982
|
-
type RivusDeploymentControlLifecycle = "stopped" | "starting" | "running" | "degraded" | "stopping" | "cleanup-required";
|
|
1983
|
-
//#endregion
|
|
1984
|
-
//#region src/modules/deployment-control/application/lifecycle/deployment-control.d.ts
|
|
1985
|
-
type RivusDeploymentDaemonLifecycle = RivusDeploymentControlLifecycle;
|
|
1986
|
-
type RivusDeploymentEndpointLifecycle = RivusDeploymentComponentLifecycle;
|
|
1987
|
-
type RivusDeploymentAutomationLifecycle = RivusDeploymentComponentLifecycle;
|
|
1988
|
-
type RivusDeploymentBackgroundSessionLifecycle = RivusDeploymentComponentLifecycle;
|
|
1989
|
-
interface RivusDeploymentEndpointStatus extends RivusDeploymentComponentStatus {
|
|
1990
|
-
readonly agentId: string;
|
|
1991
|
-
readonly endpointId: string;
|
|
1992
|
-
}
|
|
1993
|
-
interface RivusDeploymentAutomationStatus extends RivusDeploymentComponentStatus {
|
|
1994
|
-
readonly agentId: string;
|
|
1995
|
-
readonly automationId: string;
|
|
1996
|
-
}
|
|
1997
|
-
interface RivusDeploymentBackgroundSessionStatus extends RivusDeploymentComponentStatus {
|
|
1998
|
-
readonly supervisor?: BackgroundSessionSupervisorStatus;
|
|
1999
|
-
}
|
|
2000
|
-
interface RivusDeploymentComponentStatus {
|
|
2001
|
-
readonly enabled: boolean;
|
|
2002
|
-
readonly error?: string;
|
|
2003
|
-
readonly lifecycle: RivusDeploymentComponentLifecycle;
|
|
2004
|
-
readonly required: boolean;
|
|
2005
|
-
readonly running: boolean;
|
|
2006
|
-
}
|
|
2007
|
-
interface RivusDeploymentDaemonStatus {
|
|
2008
|
-
readonly agents: LoadedRivusDeployment["agents"];
|
|
2009
|
-
readonly automations: ReadonlyArray<RivusDeploymentAutomationStatus>;
|
|
2010
|
-
readonly backgroundSessions?: RivusDeploymentBackgroundSessionStatus;
|
|
2011
|
-
readonly defaultAgentId: string;
|
|
2012
|
-
readonly defaultEndpointId: string;
|
|
2013
|
-
readonly endpoints: ReadonlyArray<RivusDeploymentEndpointStatus>;
|
|
2014
|
-
readonly lifecycle: RivusDeploymentDaemonLifecycle;
|
|
2015
|
-
readonly plugins: LoadedRivusDeployment["plugins"];
|
|
2016
|
-
readonly ready: boolean;
|
|
2017
|
-
readonly running: boolean;
|
|
2018
|
-
}
|
|
2019
|
-
declare class RivusDeploymentDaemonLifecycleError extends Error {
|
|
2020
|
-
readonly name = "RivusDeploymentDaemonLifecycleError";
|
|
2021
|
-
}
|
|
2022
|
-
declare class RivusDeploymentReadinessError extends Error {
|
|
2023
|
-
readonly endpointIds: ReadonlyArray<string>;
|
|
2024
|
-
readonly name = "RivusDeploymentReadinessError";
|
|
2025
|
-
constructor(endpointIds: ReadonlyArray<string>);
|
|
2026
|
-
}
|
|
2027
|
-
declare class RivusDeploymentAutomationReadinessError extends Error {
|
|
2028
|
-
readonly automationIds: ReadonlyArray<string>;
|
|
2029
|
-
readonly name = "RivusDeploymentAutomationReadinessError";
|
|
2030
|
-
constructor(automationIds: ReadonlyArray<string>);
|
|
2031
|
-
}
|
|
2032
|
-
declare class RivusDeploymentBackgroundSessionReadinessError extends Error {
|
|
2033
|
-
readonly name = "RivusDeploymentBackgroundSessionReadinessError";
|
|
2034
|
-
constructor();
|
|
2035
|
-
}
|
|
2036
|
-
//#endregion
|
|
2037
|
-
//#region src/adapters/deployment/bootstrap/process-deployment-adapters.d.ts
|
|
2158
|
+
//#region src/adapters/deployment/process/process-deployment-adapters.d.ts
|
|
2038
2159
|
interface ProcessDeploymentRuntime extends ProcessAgentRuntime {}
|
|
2039
2160
|
interface CreateProcessDeploymentRuntimeInput extends AgentInstanceRecord {
|
|
2040
2161
|
readonly catalog: RivusPluginCatalog;
|
|
@@ -2087,7 +2208,112 @@ interface CreateProcessDeploymentBackgroundSessionInput {
|
|
|
2087
2208
|
}) => Promise<unknown>;
|
|
2088
2209
|
}
|
|
2089
2210
|
//#endregion
|
|
2090
|
-
//#region src/
|
|
2211
|
+
//#region src/core/application/background-session/authority/background-session-authority.d.ts
|
|
2212
|
+
declare const BACKGROUND_SESSION_TOOL_IDS: readonly ["background.start", "background.wait", "background.list", "background.status", "background.send", "background.stop"];
|
|
2213
|
+
declare const BACKGROUND_SESSION_START_TOOL_ID = "background.start";
|
|
2214
|
+
declare const BACKGROUND_SESSION_TOOL_PLUGIN_ID = "rivus-core";
|
|
2215
|
+
declare const BACKGROUND_SESSION_TOOL_VERSION = "1.0.0";
|
|
2216
|
+
interface BackgroundSessionToolContract {
|
|
2217
|
+
readonly description: string;
|
|
2218
|
+
readonly digest: string;
|
|
2219
|
+
readonly id: string;
|
|
2220
|
+
readonly idempotency: "none" | "supported" | "required";
|
|
2221
|
+
readonly inputSchema: unknown;
|
|
2222
|
+
readonly pluginId: string;
|
|
2223
|
+
readonly risk: "observe" | "mutate" | "irreversible" | "host-control";
|
|
2224
|
+
readonly version: string;
|
|
2225
|
+
}
|
|
2226
|
+
interface BackgroundSessionToolGrantSet {
|
|
2227
|
+
readonly revision: string;
|
|
2228
|
+
readonly toolIds: ReadonlyArray<string>;
|
|
2229
|
+
}
|
|
2230
|
+
interface BackgroundSessionAgentDefinition {
|
|
2231
|
+
readonly agentId: string;
|
|
2232
|
+
readonly endpointIds: ReadonlyArray<string>;
|
|
2233
|
+
readonly memory: {
|
|
2234
|
+
readonly scopes: ReadonlyArray<BackgroundSessionMemoryScope>;
|
|
2235
|
+
};
|
|
2236
|
+
readonly model: Readonly<Record<string, unknown>>;
|
|
2237
|
+
readonly pluginId: string;
|
|
2238
|
+
readonly profileId: string;
|
|
2239
|
+
readonly profileRevision: string;
|
|
2240
|
+
readonly projectSpaceId?: string;
|
|
2241
|
+
readonly projectSpaceRevision?: string;
|
|
2242
|
+
readonly skillGrantSet: {
|
|
2243
|
+
readonly revision: string;
|
|
2244
|
+
readonly skillIds: ReadonlyArray<string>;
|
|
2245
|
+
};
|
|
2246
|
+
readonly skills: ReadonlyArray<unknown>;
|
|
2247
|
+
readonly systemPrompt: string;
|
|
2248
|
+
readonly tools: ReadonlyArray<BackgroundSessionToolContract>;
|
|
2249
|
+
readonly toolGrantSet: BackgroundSessionToolGrantSet;
|
|
2250
|
+
}
|
|
2251
|
+
type TransformedBackgroundSessionDefinition<T extends BackgroundSessionAgentDefinition> = Omit<T, "toolGrantSet" | "tools"> & {
|
|
2252
|
+
readonly toolGrantSet: BackgroundSessionToolGrantSet;
|
|
2253
|
+
readonly tools: ReadonlyArray<BackgroundSessionToolContract>;
|
|
2254
|
+
};
|
|
2255
|
+
declare function createBackgroundSessionToolContracts(): ReadonlyArray<BackgroundSessionToolContract>;
|
|
2256
|
+
declare function backgroundSessionToolIds(): ReadonlyArray<string>;
|
|
2257
|
+
declare function isBackgroundSessionToolId(toolId: string): boolean;
|
|
2258
|
+
//#endregion
|
|
2259
|
+
//#region src/core/application/deployment/lifecycle/deployment-lifecycle.d.ts
|
|
2260
|
+
type RivusDeploymentComponentLifecycle = "disabled" | "stopped" | "starting" | "running" | "degraded" | "stopping" | "cleanup-required";
|
|
2261
|
+
type RivusDeploymentControlLifecycle = "stopped" | "starting" | "running" | "degraded" | "stopping" | "cleanup-required";
|
|
2262
|
+
declare class RivusDeploymentDaemonLifecycleError extends Error {
|
|
2263
|
+
readonly name = "RivusDeploymentDaemonLifecycleError";
|
|
2264
|
+
}
|
|
2265
|
+
//#endregion
|
|
2266
|
+
//#region src/core/application/deployment/lifecycle/deployment-control.d.ts
|
|
2267
|
+
type RivusDeploymentDaemonLifecycle = RivusDeploymentControlLifecycle;
|
|
2268
|
+
type RivusDeploymentEndpointLifecycle = RivusDeploymentComponentLifecycle;
|
|
2269
|
+
type RivusDeploymentAutomationLifecycle = RivusDeploymentComponentLifecycle;
|
|
2270
|
+
type RivusDeploymentBackgroundSessionLifecycle = RivusDeploymentComponentLifecycle;
|
|
2271
|
+
interface RivusDeploymentEndpointStatus extends RivusDeploymentComponentStatus {
|
|
2272
|
+
readonly agentId: string;
|
|
2273
|
+
readonly endpointId: string;
|
|
2274
|
+
}
|
|
2275
|
+
interface RivusDeploymentAutomationStatus extends RivusDeploymentComponentStatus {
|
|
2276
|
+
readonly agentId: string;
|
|
2277
|
+
readonly automationId: string;
|
|
2278
|
+
}
|
|
2279
|
+
interface RivusDeploymentBackgroundSessionStatus extends RivusDeploymentComponentStatus {
|
|
2280
|
+
readonly supervisor?: BackgroundSessionSupervisorStatus;
|
|
2281
|
+
}
|
|
2282
|
+
interface RivusDeploymentComponentStatus {
|
|
2283
|
+
readonly enabled: boolean;
|
|
2284
|
+
readonly error?: string;
|
|
2285
|
+
readonly lifecycle: RivusDeploymentComponentLifecycle;
|
|
2286
|
+
readonly required: boolean;
|
|
2287
|
+
readonly running: boolean;
|
|
2288
|
+
}
|
|
2289
|
+
interface RivusDeploymentDaemonStatus {
|
|
2290
|
+
readonly agents: LoadedRivusDeployment["agents"];
|
|
2291
|
+
readonly automations: ReadonlyArray<RivusDeploymentAutomationStatus>;
|
|
2292
|
+
readonly backgroundSessions?: RivusDeploymentBackgroundSessionStatus;
|
|
2293
|
+
readonly defaultAgentId: string;
|
|
2294
|
+
readonly defaultEndpointId: string;
|
|
2295
|
+
readonly endpoints: ReadonlyArray<RivusDeploymentEndpointStatus>;
|
|
2296
|
+
readonly lifecycle: RivusDeploymentDaemonLifecycle;
|
|
2297
|
+
readonly plugins: LoadedRivusDeployment["plugins"];
|
|
2298
|
+
readonly ready: boolean;
|
|
2299
|
+
readonly running: boolean;
|
|
2300
|
+
}
|
|
2301
|
+
declare class RivusDeploymentReadinessError extends Error {
|
|
2302
|
+
readonly endpointIds: ReadonlyArray<string>;
|
|
2303
|
+
readonly name = "RivusDeploymentReadinessError";
|
|
2304
|
+
constructor(endpointIds: ReadonlyArray<string>);
|
|
2305
|
+
}
|
|
2306
|
+
declare class RivusDeploymentAutomationReadinessError extends Error {
|
|
2307
|
+
readonly automationIds: ReadonlyArray<string>;
|
|
2308
|
+
readonly name = "RivusDeploymentAutomationReadinessError";
|
|
2309
|
+
constructor(automationIds: ReadonlyArray<string>);
|
|
2310
|
+
}
|
|
2311
|
+
declare class RivusDeploymentBackgroundSessionReadinessError extends Error {
|
|
2312
|
+
readonly name = "RivusDeploymentBackgroundSessionReadinessError";
|
|
2313
|
+
constructor();
|
|
2314
|
+
}
|
|
2315
|
+
//#endregion
|
|
2316
|
+
//#region src/bootstrap/deployment/rivus-deployment-cli-process.d.ts
|
|
2091
2317
|
interface RivusDeploymentBootstrapAdapters {
|
|
2092
2318
|
readonly initialInstanceRecords?: AgentInstanceRegistryOptions["initialRecords"];
|
|
2093
2319
|
readonly dispose?: () => Promise<void> | void;
|
|
@@ -2101,6 +2327,10 @@ interface RivusDeploymentBootstrapAdapters {
|
|
|
2101
2327
|
interface RivusDeploymentBootstrapContext {
|
|
2102
2328
|
readonly argv: ReadonlyArray<string>;
|
|
2103
2329
|
readonly env: RivusDaemonEnv;
|
|
2330
|
+
/** Explicit original configuration source, required for controlled export on disable. */
|
|
2331
|
+
readonly envFilePath?: string;
|
|
2332
|
+
/** Environment values before the explicit env file is merged. */
|
|
2333
|
+
readonly environmentOverrides?: RivusDaemonEnv;
|
|
2104
2334
|
readonly manifestPath: string;
|
|
2105
2335
|
readonly pluginPackageManifestPath?: string;
|
|
2106
2336
|
}
|
|
@@ -2114,7 +2344,7 @@ interface RivusDeploymentCliProcess extends RivusDaemonProcess {
|
|
|
2114
2344
|
}
|
|
2115
2345
|
declare function createRivusDeploymentCliProcess(factory: RivusDeploymentBootstrapFactory, context: RivusDeploymentBootstrapContext): Promise<RivusDeploymentCliProcess>;
|
|
2116
2346
|
//#endregion
|
|
2117
|
-
//#region src/
|
|
2347
|
+
//#region src/bootstrap/daemon/rivus-daemon-cli.d.ts
|
|
2118
2348
|
interface RivusDaemonBootstrapContext {
|
|
2119
2349
|
readonly argv: ReadonlyArray<string>;
|
|
2120
2350
|
readonly config: RivusDaemonConfig;
|
|
@@ -2218,7 +2448,12 @@ interface FeishuEventHandlers {
|
|
|
2218
2448
|
}
|
|
2219
2449
|
declare function createFeishuEventHandlers(options: FeishuEventHandlersOptions): FeishuEventHandlers;
|
|
2220
2450
|
//#endregion
|
|
2221
|
-
//#region src/
|
|
2451
|
+
//#region src/adapters/feishu/runtime/feishu-receive-runtime.d.ts
|
|
2452
|
+
interface FeishuPeriodicFlushSupervisor {
|
|
2453
|
+
withPeriodicFlush<A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, unknown, R>;
|
|
2454
|
+
}
|
|
2455
|
+
//#endregion
|
|
2456
|
+
//#region src/bootstrap/feishu/agent-runtime.d.ts
|
|
2222
2457
|
interface FeishuAgentRuntimeOptions {
|
|
2223
2458
|
readonly acknowledgeSteering?: (messageId: string) => Effect.Effect<void, unknown>;
|
|
2224
2459
|
readonly agentId: string;
|
|
@@ -2239,9 +2474,6 @@ interface FeishuAgentRuntimeOptions {
|
|
|
2239
2474
|
readonly runIds: RunIdGenerator;
|
|
2240
2475
|
readonly sessionStore?: FeishuSessionStore;
|
|
2241
2476
|
}
|
|
2242
|
-
interface FeishuPeriodicFlushSupervisor {
|
|
2243
|
-
withPeriodicFlush<A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, unknown, R>;
|
|
2244
|
-
}
|
|
2245
2477
|
interface FeishuAgentRuntime {
|
|
2246
2478
|
readonly handlers: FeishuEventHandlers;
|
|
2247
2479
|
readonly harness: AgentHarness;
|
|
@@ -2255,7 +2487,16 @@ interface FeishuAgentRuntime {
|
|
|
2255
2487
|
}
|
|
2256
2488
|
declare function createFeishuAgentRuntime(options: FeishuAgentRuntimeOptions): FeishuAgentRuntime;
|
|
2257
2489
|
//#endregion
|
|
2258
|
-
//#region src/
|
|
2490
|
+
//#region src/core/application/agent-execution/execution/agent-event-sink.d.ts
|
|
2491
|
+
declare function createAgentDomainEventSink(append: (event: AgentDomainEvent) => Effect.Effect<void, unknown>): AgentDomainEventSink;
|
|
2492
|
+
//#endregion
|
|
2493
|
+
//#region src/core/application/agent-execution/history/restore-agent-history.d.ts
|
|
2494
|
+
interface AgentHistoryEventLog {
|
|
2495
|
+
readAll(): Effect.Effect<ReadonlyArray<AgentDomainEvent>, unknown>;
|
|
2496
|
+
}
|
|
2497
|
+
declare function restoreAgentHistory(eventLog: AgentHistoryEventLog): Effect.Effect<AgentHistory, unknown>;
|
|
2498
|
+
//#endregion
|
|
2499
|
+
//#region src/adapters/outbound/persistence/agent-run/event-log/jsonl-agent-event-log.d.ts
|
|
2259
2500
|
type AgentEventLogOperation = "append" | "read";
|
|
2260
2501
|
declare class AgentEventLogStoreError {
|
|
2261
2502
|
readonly operation: AgentEventLogOperation;
|
|
@@ -2512,11 +2753,10 @@ declare function createConfiguredFeishuOpenApiClient(options: {
|
|
|
2512
2753
|
readonly request: (request: ConfiguredFeishuOpenApiRequest) => Effect.Effect<ConfiguredFeishuOpenApiResponse, unknown>;
|
|
2513
2754
|
}): FeishuOpenApiClient;
|
|
2514
2755
|
//#endregion
|
|
2515
|
-
//#region src/
|
|
2756
|
+
//#region src/bootstrap/feishu/card-rollover-runtime.d.ts
|
|
2516
2757
|
interface ConfiguredFeishuCardRolloverRuntimeOptions {
|
|
2517
2758
|
readonly agentName?: string;
|
|
2518
2759
|
readonly cardTargets: FeishuCardTargetRegistry;
|
|
2519
|
-
/** Whether running cards should include Feishu HTTP callback cancel buttons. */
|
|
2520
2760
|
readonly cancelButton?: boolean;
|
|
2521
2761
|
readonly client: FeishuOpenApiClient;
|
|
2522
2762
|
readonly clock: AgentClock;
|
|
@@ -2540,7 +2780,7 @@ interface ConfiguredFeishuCardRolloverRuntime {
|
|
|
2540
2780
|
}
|
|
2541
2781
|
declare function createConfiguredFeishuCardRolloverRuntime(options: ConfiguredFeishuCardRolloverRuntimeOptions): ConfiguredFeishuCardRolloverRuntime;
|
|
2542
2782
|
//#endregion
|
|
2543
|
-
//#region src/
|
|
2783
|
+
//#region src/bootstrap/feishu/rivus-daemon-bootstrap.d.ts
|
|
2544
2784
|
type ConfiguredRivusDaemonBootstrapRequest = ConfiguredFeishuOpenApiRequest;
|
|
2545
2785
|
type ConfiguredRivusDaemonBootstrapResponse = ConfiguredFeishuOpenApiResponse;
|
|
2546
2786
|
type ConfiguredRivusDaemonStatus = DaemonStatusSnapshot<AgentHistory, AgentRunState, FeishuCardRolloverStatus, FeishuReceiveRuntimeStatus>;
|
|
@@ -2587,6 +2827,22 @@ interface ConfiguredRivusDaemonBootstrap {
|
|
|
2587
2827
|
declare function restoreConfiguredRivusDaemonBootstrap(options: ConfiguredRivusDaemonBootstrapOptions): Effect.Effect<ConfiguredRivusDaemonBootstrap, unknown>;
|
|
2588
2828
|
declare function createConfiguredRivusDaemonBootstrap(options: ConfiguredRivusDaemonBootstrapOptions): ConfiguredRivusDaemonBootstrap;
|
|
2589
2829
|
//#endregion
|
|
2830
|
+
//#region src/core/application/agent-execution/observation/agent-model-content-observer.d.ts
|
|
2831
|
+
interface AgentModelInputObservation {
|
|
2832
|
+
readonly input: unknown;
|
|
2833
|
+
readonly modelCallId: string;
|
|
2834
|
+
readonly runId: AgentRunId$1;
|
|
2835
|
+
}
|
|
2836
|
+
interface AgentModelOutputObservation {
|
|
2837
|
+
readonly modelCallId: string;
|
|
2838
|
+
readonly output: unknown;
|
|
2839
|
+
readonly runId: AgentRunId$1;
|
|
2840
|
+
}
|
|
2841
|
+
interface AgentModelContentObserver {
|
|
2842
|
+
observeInput(observation: AgentModelInputObservation): void;
|
|
2843
|
+
observeOutput(observation: AgentModelOutputObservation): void;
|
|
2844
|
+
}
|
|
2845
|
+
//#endregion
|
|
2590
2846
|
//#region src/adapters/observability/agent/langfuse-agent-telemetry.d.ts
|
|
2591
2847
|
type LangfuseTelemetryEnv = Readonly<Record<string, string | undefined>>;
|
|
2592
2848
|
type LangfuseTelemetryContentMode = "metadata-only" | "redacted";
|
|
@@ -2635,6 +2891,41 @@ interface OpenTelemetryAgentTelemetry {
|
|
|
2635
2891
|
declare function createOpenTelemetryAgentEventSink(options: OpenTelemetryAgentEventSinkOptions): AgentDomainEventSink;
|
|
2636
2892
|
declare function createOpenTelemetryAgentTelemetry(options: OpenTelemetryAgentEventSinkOptions): OpenTelemetryAgentTelemetry;
|
|
2637
2893
|
//#endregion
|
|
2894
|
+
//#region src/core/application/agent-execution/history/agent-run-state-projection.d.ts
|
|
2895
|
+
declare const initialAgentRunState: AgentRunState;
|
|
2896
|
+
declare function isTerminalAgentRunPhase(phase: AgentRunPhase): boolean;
|
|
2897
|
+
declare function evolveAgentRun(state: AgentRunState, event: AgentDomainEvent): AgentRunState;
|
|
2898
|
+
//#endregion
|
|
2899
|
+
//#region src/core/application/deployment/model/model-change-contracts.d.ts
|
|
2900
|
+
type ModelChangeOperation = "set" | "rollback";
|
|
2901
|
+
interface ModelReference {
|
|
2902
|
+
readonly model: string;
|
|
2903
|
+
readonly provider: string;
|
|
2904
|
+
}
|
|
2905
|
+
interface ModelChangeSubmission {
|
|
2906
|
+
readonly expectedRevision: number;
|
|
2907
|
+
readonly operation: ModelChangeOperation;
|
|
2908
|
+
readonly requestId: string;
|
|
2909
|
+
readonly target?: ModelReference;
|
|
2910
|
+
}
|
|
2911
|
+
interface ModelChangeSource {
|
|
2912
|
+
readonly kind: "automation" | "human";
|
|
2913
|
+
readonly reference: string;
|
|
2914
|
+
}
|
|
2915
|
+
interface ModelChangePrincipal {
|
|
2916
|
+
readonly homeId: string;
|
|
2917
|
+
readonly ownerId: string;
|
|
2918
|
+
readonly source: ModelChangeSource;
|
|
2919
|
+
}
|
|
2920
|
+
interface ModelChangeBudgetLimits {
|
|
2921
|
+
readonly deadlineAt: string;
|
|
2922
|
+
readonly identity: string;
|
|
2923
|
+
readonly maxOutputTokens: number;
|
|
2924
|
+
readonly maxPaidRequests: number;
|
|
2925
|
+
readonly recoveryReserveOutputTokens: number;
|
|
2926
|
+
readonly recoveryReservePaidRequests: number;
|
|
2927
|
+
}
|
|
2928
|
+
//#endregion
|
|
2638
2929
|
//#region src/adapters/pi/execution/pi-agent-loop.d.ts
|
|
2639
2930
|
type PiAgentSessionEvent = PiMessageStartEvent | PiMessageUpdateEvent | PiMessageEndEvent | PiToolExecutionStartEvent | PiToolExecutionUpdateEvent | PiToolExecutionEndEvent | {
|
|
2640
2931
|
readonly type: string;
|
|
@@ -2688,8 +2979,21 @@ interface PiToolExecutionEndEvent {
|
|
|
2688
2979
|
readonly result: unknown;
|
|
2689
2980
|
readonly isError: boolean;
|
|
2690
2981
|
}
|
|
2982
|
+
/** Public session context shape needed by model management and history checks. */
|
|
2983
|
+
interface PiSessionContext {
|
|
2984
|
+
readonly messages: readonly unknown[];
|
|
2985
|
+
}
|
|
2986
|
+
/** Minimal session-manager capability exposed by the Pi adapter boundary. */
|
|
2987
|
+
interface PiSessionManager {
|
|
2988
|
+
readonly buildSessionContext: () => PiSessionContext;
|
|
2989
|
+
}
|
|
2691
2990
|
interface PiAgentSession {
|
|
2692
2991
|
abort?: () => Promise<void> | void;
|
|
2992
|
+
setModel?(model: unknown): Promise<void> | void;
|
|
2993
|
+
setThinkingLevel?(level: string): void;
|
|
2994
|
+
waitForIdle?(): Promise<void>;
|
|
2995
|
+
reload?(): Promise<void> | void;
|
|
2996
|
+
readonly sessionManager?: PiSessionManager;
|
|
2693
2997
|
prompt(text: string): Promise<void>;
|
|
2694
2998
|
readonly state?: unknown;
|
|
2695
2999
|
subscribe(listener: (event: PiAgentSessionEvent) => void): () => void;
|
|
@@ -2710,11 +3014,21 @@ interface PiAgentSessionHandle {
|
|
|
2710
3014
|
readonly preparePrompt?: (input: AgentLoopInput) => Promise<string> | string;
|
|
2711
3015
|
readonly dispose?: () => Promise<void> | void;
|
|
2712
3016
|
readonly activate?: (input: AgentLoopInput) => Promise<void> | void;
|
|
3017
|
+
readonly deactivate?: () => Promise<void> | void;
|
|
3018
|
+
readonly refreshResources?: () => Promise<void> | void;
|
|
2713
3019
|
}
|
|
2714
3020
|
interface PiAgentLoopOptions {
|
|
2715
3021
|
readonly resolveSession: (input: AgentLoopInput) => Promise<PiAgentSessionHandle> | PiAgentSessionHandle;
|
|
2716
3022
|
readonly modelContentObserver?: AgentModelContentObserver;
|
|
2717
3023
|
readonly disposeSessionAfterRun?: boolean;
|
|
3024
|
+
readonly runBoundary?: {
|
|
3025
|
+
readonly acquireRun: (input?: {
|
|
3026
|
+
readonly deadlineAt?: string;
|
|
3027
|
+
readonly signal?: AbortSignal;
|
|
3028
|
+
}) => Effect.Effect<{
|
|
3029
|
+
readonly release: () => void;
|
|
3030
|
+
}, unknown>;
|
|
3031
|
+
};
|
|
2718
3032
|
}
|
|
2719
3033
|
declare function createPiAgentLoop(options: PiAgentLoopOptions): AgentLoop;
|
|
2720
3034
|
declare function createPiSdkAgentLoop<TSessionOptions = unknown>(options: PiSdkAgentLoopOptions<TSessionOptions>): AgentLoop;
|
|
@@ -2726,6 +3040,7 @@ interface PiSessionRegistryOptions {
|
|
|
2726
3040
|
interface PiSessionRegistry {
|
|
2727
3041
|
disposeAll(): Promise<void>;
|
|
2728
3042
|
dispose(sessionKey: SessionKey): Promise<void>;
|
|
3043
|
+
list(): Promise<ReadonlyArray<PiAgentSessionHandle>>;
|
|
2729
3044
|
size(): number;
|
|
2730
3045
|
resolve(input: AgentLoopInput): Promise<PiAgentSessionHandle>;
|
|
2731
3046
|
}
|
|
@@ -2880,17 +3195,56 @@ declare function createTestClock(initial: Date): AgentClock & {
|
|
|
2880
3195
|
declare function createSequenceRunIds(runIds: ReadonlyArray<AgentRunId$1>): RunIdGenerator;
|
|
2881
3196
|
//#endregion
|
|
2882
3197
|
//#region src/adapters/compatibility/agent-catalog/rivus-agent-catalog.d.ts
|
|
3198
|
+
declare function createRivusPluginCatalog(): RivusPluginCatalog;
|
|
2883
3199
|
declare function resolveRivusAgentDefinition(catalog: RivusPluginCatalog, deployment: RivusAgentDeployment, options?: {
|
|
2884
3200
|
readonly backgroundSessions?: boolean;
|
|
2885
3201
|
}): ResolvedRivusAgentDefinition;
|
|
2886
3202
|
//#endregion
|
|
2887
|
-
//#region src/
|
|
2888
|
-
|
|
2889
|
-
readonly
|
|
2890
|
-
|
|
2891
|
-
|
|
3203
|
+
//#region src/core/application/agent-execution/contracts/workspace-instructions.d.ts
|
|
3204
|
+
interface WorkspaceRootHandle {
|
|
3205
|
+
readonly id: string;
|
|
3206
|
+
}
|
|
3207
|
+
interface WorkspaceInstructionSource {
|
|
3208
|
+
readonly relativePath: string;
|
|
3209
|
+
readonly digest: string;
|
|
3210
|
+
readonly bytes: number;
|
|
3211
|
+
readonly content: string;
|
|
3212
|
+
}
|
|
3213
|
+
type WorkspaceInstructionsDiagnosticCode = "workspace-instructions-refresh-required" | "workspace-instructions-source-omitted";
|
|
3214
|
+
interface WorkspaceInstructionsDiagnostic {
|
|
3215
|
+
readonly code: WorkspaceInstructionsDiagnosticCode;
|
|
3216
|
+
readonly relativePath?: string;
|
|
3217
|
+
readonly reason: string;
|
|
3218
|
+
}
|
|
3219
|
+
interface WorkspaceInstructionsRequest {
|
|
3220
|
+
readonly workspaceRoot: WorkspaceRootHandle;
|
|
3221
|
+
readonly workingDirectory: string;
|
|
3222
|
+
readonly targetPath?: string;
|
|
3223
|
+
readonly maxBytes: number;
|
|
3224
|
+
readonly operation?: "read" | "mutate";
|
|
3225
|
+
readonly presentedDigests?: ReadonlyArray<string>;
|
|
3226
|
+
}
|
|
3227
|
+
interface WorkspaceInstructionsView {
|
|
3228
|
+
readonly sources: ReadonlyArray<WorkspaceInstructionSource>;
|
|
3229
|
+
readonly content: string;
|
|
3230
|
+
readonly digest: string;
|
|
3231
|
+
readonly truncated: boolean;
|
|
3232
|
+
readonly refreshRequired: boolean;
|
|
3233
|
+
readonly diagnostics: ReadonlyArray<WorkspaceInstructionsDiagnostic>;
|
|
3234
|
+
}
|
|
2892
3235
|
//#endregion
|
|
2893
|
-
//#region src/
|
|
3236
|
+
//#region src/core/application/agent-execution/context/workspace-instructions-resolver.d.ts
|
|
3237
|
+
declare class InvalidWorkspaceRoot extends Error {
|
|
3238
|
+
readonly name = "InvalidWorkspaceRoot";
|
|
3239
|
+
}
|
|
3240
|
+
declare class WorkspaceInstructionsSourceError extends Error {
|
|
3241
|
+
readonly relativePath: string;
|
|
3242
|
+
readonly reason: string;
|
|
3243
|
+
readonly name = "WorkspaceInstructionsSourceError";
|
|
3244
|
+
constructor(relativePath: string, reason: string);
|
|
3245
|
+
}
|
|
3246
|
+
//#endregion
|
|
3247
|
+
//#region src/adapters/agent/workspace/node-workspace-root-registry.d.ts
|
|
2894
3248
|
declare function createWorkspaceRootHandle(rootPath: string): Promise<WorkspaceRootHandle>;
|
|
2895
3249
|
//#endregion
|
|
2896
3250
|
//#region src/adapters/compatibility/project-space/workspace-instructions.d.ts
|
|
@@ -2899,7 +3253,35 @@ interface WorkspaceInstructionsProvider {
|
|
|
2899
3253
|
}
|
|
2900
3254
|
declare function createAgentsMdInstructionsProvider(): WorkspaceInstructionsProvider;
|
|
2901
3255
|
//#endregion
|
|
3256
|
+
//#region src/core/application/tool-execution/brokerage/tool-input-digest.d.ts
|
|
3257
|
+
declare class InvalidStableJson extends Error {
|
|
3258
|
+
readonly name: string;
|
|
3259
|
+
}
|
|
3260
|
+
declare class InvalidToolInput extends InvalidStableJson {
|
|
3261
|
+
readonly name = "InvalidToolInput";
|
|
3262
|
+
}
|
|
3263
|
+
declare function normalizeStableJson(value: unknown): unknown;
|
|
3264
|
+
//#endregion
|
|
3265
|
+
//#region src/adapters/compatibility/tool-execution/public-contract.d.ts
|
|
3266
|
+
interface InvocationAuthorityRef extends InvocationAuthorityRef$1 {}
|
|
3267
|
+
interface InvocationAuthority extends Omit<InvocationAuthority$1, "memory" | "toolGrantSet"> {
|
|
3268
|
+
readonly memory?: RivusMemoryAuthority;
|
|
3269
|
+
readonly toolGrantSet: RivusToolGrantSet;
|
|
3270
|
+
}
|
|
3271
|
+
declare function createInvocationAuthority(authority: InvocationAuthority): InvocationAuthorityRef;
|
|
3272
|
+
declare function createToolInputDigest(input: unknown): string;
|
|
3273
|
+
declare function requiresToolApproval(risk: RivusToolRisk): boolean;
|
|
3274
|
+
//#endregion
|
|
3275
|
+
//#region src/core/application/tool-execution/brokerage/tool-broker.d.ts
|
|
3276
|
+
declare class ToolInvocationDenied extends Error {
|
|
3277
|
+
readonly name = "ToolInvocationDenied";
|
|
3278
|
+
}
|
|
3279
|
+
//#endregion
|
|
2902
3280
|
//#region src/adapters/compatibility/tool-execution/tool-broker.d.ts
|
|
3281
|
+
interface AuthorizationPolicyState extends AuthorizationPolicyState$1 {}
|
|
3282
|
+
interface ToolApprovalRequest extends ToolApprovalRequest$1 {
|
|
3283
|
+
readonly risk: RivusToolRisk;
|
|
3284
|
+
}
|
|
2903
3285
|
interface AuthorizationPolicyProvider {
|
|
2904
3286
|
current(): Promise<AuthorizationPolicyState>;
|
|
2905
3287
|
}
|
|
@@ -2913,14 +3295,8 @@ interface ToolBrokerOptions {
|
|
|
2913
3295
|
readonly policy: AuthorizationPolicyProvider;
|
|
2914
3296
|
readonly operations?: ToolOperationLedger;
|
|
2915
3297
|
}
|
|
2916
|
-
interface ToolExecutionRequest {
|
|
3298
|
+
interface ToolExecutionRequest extends ToolExecutionRequest$1 {
|
|
2917
3299
|
readonly authority: InvocationAuthorityRef;
|
|
2918
|
-
readonly callId: string;
|
|
2919
|
-
readonly toolId: string;
|
|
2920
|
-
readonly version: string;
|
|
2921
|
-
readonly input: unknown;
|
|
2922
|
-
readonly operationId?: string;
|
|
2923
|
-
readonly approvalId?: string;
|
|
2924
3300
|
}
|
|
2925
3301
|
interface ToolBroker {
|
|
2926
3302
|
execute(request: ToolExecutionRequest): Promise<unknown>;
|
|
@@ -2942,10 +3318,10 @@ interface JsonlRecoveryControlOptions {
|
|
|
2942
3318
|
}
|
|
2943
3319
|
declare function openJsonlRecoveryControl(options: JsonlRecoveryControlOptions): Promise<RecoveryControl>;
|
|
2944
3320
|
//#endregion
|
|
2945
|
-
//#region src/
|
|
3321
|
+
//#region src/adapters/compatibility/agent-host/runtime/agent-harness-pooled-runtime.d.ts
|
|
2946
3322
|
declare function createAgentHarnessPooledRuntime(harness: AgentHarness): PooledAgentRuntime;
|
|
2947
3323
|
//#endregion
|
|
2948
|
-
//#region src/
|
|
3324
|
+
//#region src/bootstrap/feishu/deployment-endpoint.d.ts
|
|
2949
3325
|
interface FeishuDeploymentEndpointOptions extends Pick<CreateProcessDeploymentEndpointInput, "agentId" | "cancel" | "handle" | "steer"> {
|
|
2950
3326
|
readonly acknowledgeSteering?: (messageId: string) => Effect.Effect<void, unknown>;
|
|
2951
3327
|
readonly botOpenId: string;
|
|
@@ -2977,7 +3353,7 @@ interface FeishuDeploymentEndpointOptions extends Pick<CreateProcessDeploymentEn
|
|
|
2977
3353
|
}
|
|
2978
3354
|
declare function createFeishuDeploymentEndpoint(options: FeishuDeploymentEndpointOptions): ProcessDeploymentEndpoint;
|
|
2979
3355
|
//#endregion
|
|
2980
|
-
//#region src/
|
|
3356
|
+
//#region src/adapters/feishu/run-presentation/feishu-presentation-preparation.d.ts
|
|
2981
3357
|
interface FeishuPresentationPreparationOptions {
|
|
2982
3358
|
readonly cotPublisher?: Pick<FeishuCotPublisher, "fail" | "prepare">;
|
|
2983
3359
|
readonly prepareCardTarget: (run: FeishuAgentRunPreparation) => Effect.Effect<void, unknown>;
|
|
@@ -3020,9 +3396,52 @@ interface RivusAgentHost {
|
|
|
3020
3396
|
declare class InvalidRivusEndpointBinding extends Error {
|
|
3021
3397
|
readonly name = "InvalidRivusEndpointBinding";
|
|
3022
3398
|
}
|
|
3023
|
-
declare function createRivusAgentHost(options: RivusAgentHostOptions): RivusAgentHost;
|
|
3024
|
-
//#endregion
|
|
3025
|
-
//#region src/
|
|
3399
|
+
declare function createRivusAgentHost(options: RivusAgentHostOptions): RivusAgentHost;
|
|
3400
|
+
//#endregion
|
|
3401
|
+
//#region src/core/application/memory/commands/agent-memory-service.d.ts
|
|
3402
|
+
declare class AgentMemoryError extends Error {
|
|
3403
|
+
readonly name = "AgentMemoryError";
|
|
3404
|
+
}
|
|
3405
|
+
//#endregion
|
|
3406
|
+
//#region src/adapters/agent/memory/agent-memory-access.d.ts
|
|
3407
|
+
declare const MEMORY_SCOPES: readonly ["conversation", "agent-private", "project", "shared-user-profile"];
|
|
3408
|
+
type MemoryScope = (typeof MEMORY_SCOPES)[number];
|
|
3409
|
+
type MemoryInvocationAudience = "group" | "private";
|
|
3410
|
+
interface MemoryBinding {
|
|
3411
|
+
readonly agentId: string;
|
|
3412
|
+
readonly conversationId?: string;
|
|
3413
|
+
readonly projectId?: string;
|
|
3414
|
+
readonly scope: MemoryScope;
|
|
3415
|
+
readonly subjectId: string;
|
|
3416
|
+
readonly tenantId: string;
|
|
3417
|
+
}
|
|
3418
|
+
interface AgentMemoryIdentity {
|
|
3419
|
+
readonly audience: MemoryInvocationAudience;
|
|
3420
|
+
readonly conversationId?: string;
|
|
3421
|
+
readonly projectId?: string;
|
|
3422
|
+
readonly subjectId: string;
|
|
3423
|
+
readonly tenantId: string;
|
|
3424
|
+
}
|
|
3425
|
+
interface AgentMemoryAuthority extends AgentMemoryIdentity {
|
|
3426
|
+
readonly scopes: ReadonlyArray<MemoryScope>;
|
|
3427
|
+
}
|
|
3428
|
+
type MemoryState = "proposed" | "confirmed" | "superseded" | "tombstoned";
|
|
3429
|
+
interface MemoryRecord {
|
|
3430
|
+
readonly content: string;
|
|
3431
|
+
readonly conversationSafe: boolean;
|
|
3432
|
+
readonly id: string;
|
|
3433
|
+
readonly revision: number;
|
|
3434
|
+
readonly scope: MemoryScope;
|
|
3435
|
+
readonly state: MemoryState;
|
|
3436
|
+
readonly tombstoneReason?: string;
|
|
3437
|
+
}
|
|
3438
|
+
interface AgentMemorySnapshot {
|
|
3439
|
+
readonly binding: MemoryBinding;
|
|
3440
|
+
readonly record: MemoryRecord;
|
|
3441
|
+
}
|
|
3442
|
+
interface MemorySearchQuery {
|
|
3443
|
+
readonly query: string;
|
|
3444
|
+
}
|
|
3026
3445
|
/** Promise-based Memory access required at the host-tool adapter boundary. */
|
|
3027
3446
|
interface AgentMemoryHandle {
|
|
3028
3447
|
readonly namespace: string;
|
|
@@ -3059,14 +3478,99 @@ interface AgentMemoryServiceOptions {
|
|
|
3059
3478
|
}
|
|
3060
3479
|
declare function createAgentMemoryService(options?: AgentMemoryServiceOptions): AgentMemoryService;
|
|
3061
3480
|
//#endregion
|
|
3062
|
-
//#region src/
|
|
3481
|
+
//#region src/adapters/compatibility/background-session/transitions.d.ts
|
|
3482
|
+
type BackgroundSessionState = BackgroundSessionSnapshot;
|
|
3483
|
+
declare function isBackgroundSessionTerminalPhase(phase: BackgroundSessionPhase): boolean;
|
|
3484
|
+
declare class BackgroundSessionTransitionDenied extends Error {
|
|
3485
|
+
readonly sessionId: BackgroundSessionId;
|
|
3486
|
+
readonly name = "BackgroundSessionTransitionDenied";
|
|
3487
|
+
constructor(sessionId: BackgroundSessionId, message: string);
|
|
3488
|
+
}
|
|
3489
|
+
declare function createBackgroundSession(input: Parameters<typeof createBackgroundSession$1>[0]): BackgroundSessionState;
|
|
3490
|
+
declare function claimBackgroundSession(state: BackgroundSessionState, input: ClaimBackgroundSessionInput): BackgroundSessionState;
|
|
3491
|
+
declare function renewBackgroundSessionLease(state: BackgroundSessionState, lease: BackgroundSessionLease): BackgroundSessionState;
|
|
3492
|
+
declare function releaseBackgroundSessionLease(state: BackgroundSessionState): BackgroundSessionState;
|
|
3493
|
+
declare function suspendBackgroundSession(state: BackgroundSessionState, input: SuspendBackgroundSessionInput): BackgroundSessionState;
|
|
3494
|
+
declare function completeBackgroundSessionStep(state: BackgroundSessionState, input: {
|
|
3495
|
+
readonly text: string;
|
|
3496
|
+
readonly stepRunId: string;
|
|
3497
|
+
readonly now: string;
|
|
3498
|
+
}): BackgroundSessionState;
|
|
3499
|
+
declare function failBackgroundSessionStep(state: BackgroundSessionState, input: {
|
|
3500
|
+
readonly errorMessage: string;
|
|
3501
|
+
readonly now: string;
|
|
3502
|
+
readonly retryable: boolean;
|
|
3503
|
+
readonly wakeAt?: string;
|
|
3504
|
+
}): BackgroundSessionState;
|
|
3505
|
+
declare function requestBackgroundSessionStop(state: BackgroundSessionState, input: {
|
|
3506
|
+
readonly reason: string;
|
|
3507
|
+
readonly now: string;
|
|
3508
|
+
}): BackgroundSessionState;
|
|
3509
|
+
declare function completeBackgroundSessionStop(state: BackgroundSessionState, input: {
|
|
3510
|
+
readonly now: string;
|
|
3511
|
+
}): BackgroundSessionState;
|
|
3512
|
+
declare function parkBackgroundSessionForReconciliation(state: BackgroundSessionState, input: {
|
|
3513
|
+
readonly reason: string;
|
|
3514
|
+
readonly now: string;
|
|
3515
|
+
}): BackgroundSessionState;
|
|
3516
|
+
declare function resolveBackgroundSessionReconciliation(state: BackgroundSessionState, input: {
|
|
3517
|
+
readonly outcome: "continue" | "stop";
|
|
3518
|
+
readonly now: string;
|
|
3519
|
+
}): BackgroundSessionState;
|
|
3520
|
+
declare function appendBackgroundSessionInput(state: BackgroundSessionState, input: {
|
|
3521
|
+
readonly message: string;
|
|
3522
|
+
readonly now: string;
|
|
3523
|
+
}): BackgroundSessionState;
|
|
3524
|
+
declare function requeueInterruptedBackgroundSessionStep(state: BackgroundSessionState, input: {
|
|
3525
|
+
readonly wakeText: string;
|
|
3526
|
+
readonly now: string;
|
|
3527
|
+
}): BackgroundSessionState;
|
|
3528
|
+
declare function isBackgroundSessionDue(state: BackgroundSessionState, now: string): boolean;
|
|
3529
|
+
declare function isBackgroundSessionLeaseExpired(state: BackgroundSessionState, now: string): boolean;
|
|
3530
|
+
//#endregion
|
|
3531
|
+
//#region src/adapters/compatibility/background-session/repository.d.ts
|
|
3532
|
+
interface BackgroundSessionRepository {
|
|
3533
|
+
create(state: BackgroundSessionState): Promise<BackgroundSessionState>;
|
|
3534
|
+
get(sessionId: string): Promise<BackgroundSessionState | undefined>;
|
|
3535
|
+
list(options?: {
|
|
3536
|
+
readonly phase?: BackgroundSessionPhase;
|
|
3537
|
+
readonly limit?: number;
|
|
3538
|
+
}): Promise<ReadonlyArray<BackgroundSessionState>>;
|
|
3539
|
+
update(input: {
|
|
3540
|
+
readonly sessionId: string;
|
|
3541
|
+
readonly expectedRevision: number;
|
|
3542
|
+
readonly expectedLease?: BackgroundSessionLeasePrecondition | BackgroundSessionLeaseRequirement | BackgroundSessionLeaseStaleOrAbsent;
|
|
3543
|
+
readonly now?: string;
|
|
3544
|
+
readonly build: (state: BackgroundSessionState) => BackgroundSessionState;
|
|
3545
|
+
}): Promise<BackgroundSessionState | undefined>;
|
|
3546
|
+
}
|
|
3547
|
+
//#endregion
|
|
3548
|
+
//#region src/adapters/compatibility/background-session/service.d.ts
|
|
3549
|
+
interface BackgroundSessionServiceOptions {
|
|
3550
|
+
readonly clock: {
|
|
3551
|
+
now(): string;
|
|
3552
|
+
};
|
|
3553
|
+
readonly deliveries: BackgroundSessionDeliveryStore;
|
|
3554
|
+
readonly repository: BackgroundSessionRepository;
|
|
3555
|
+
}
|
|
3556
|
+
declare function createBackgroundSessionService(options: BackgroundSessionServiceOptions): BackgroundSessionService;
|
|
3557
|
+
//#endregion
|
|
3558
|
+
//#region src/adapters/outbound/persistence/background-session/session/jsonl-background-session-repository.d.ts
|
|
3559
|
+
declare const BACKGROUND_SESSION_JSONL_VERSION = 1;
|
|
3560
|
+
interface OpenJsonlBackgroundSessionRepositoryOptions {
|
|
3561
|
+
readonly filePath: string;
|
|
3562
|
+
readonly compactThreshold?: number;
|
|
3563
|
+
}
|
|
3564
|
+
declare function isBackgroundSessionState(value: unknown): value is BackgroundSessionSnapshot;
|
|
3565
|
+
//#endregion
|
|
3566
|
+
//#region src/adapters/outbound/persistence/background-session/delivery/in-memory-background-session-delivery-store.d.ts
|
|
3063
3567
|
interface CreateBackgroundSessionDeliveryStoreOptions {
|
|
3064
3568
|
readonly initial?: ReadonlyArray<BackgroundSessionDeliveryRecord>;
|
|
3065
3569
|
readonly persist?: (record: BackgroundSessionDeliveryRecord) => Promise<void>;
|
|
3066
3570
|
}
|
|
3067
3571
|
declare function createBackgroundSessionDeliveryStore(options?: CreateBackgroundSessionDeliveryStoreOptions): BackgroundSessionDeliveryStore;
|
|
3068
3572
|
//#endregion
|
|
3069
|
-
//#region src/
|
|
3573
|
+
//#region src/adapters/outbound/persistence/background-session/delivery/jsonl-background-session-delivery-store.d.ts
|
|
3070
3574
|
declare const BACKGROUND_SESSION_DELIVERY_JSONL_VERSION = 1;
|
|
3071
3575
|
interface OpenJsonlBackgroundSessionDeliveryStoreOptions {
|
|
3072
3576
|
readonly filePath: string;
|
|
@@ -3074,21 +3578,27 @@ interface OpenJsonlBackgroundSessionDeliveryStoreOptions {
|
|
|
3074
3578
|
}
|
|
3075
3579
|
declare function openJsonlBackgroundSessionDeliveryStore(options: OpenJsonlBackgroundSessionDeliveryStoreOptions): Promise<BackgroundSessionDeliveryStore>;
|
|
3076
3580
|
//#endregion
|
|
3077
|
-
//#region src/
|
|
3581
|
+
//#region src/adapters/compatibility/background-session/persistence.d.ts
|
|
3078
3582
|
interface CreateBackgroundSessionRepositoryOptions {
|
|
3079
3583
|
readonly initial?: ReadonlyArray<BackgroundSessionState>;
|
|
3080
3584
|
readonly persist?: (state: BackgroundSessionState) => Promise<void>;
|
|
3081
3585
|
}
|
|
3082
3586
|
declare function createBackgroundSessionRepository(options?: CreateBackgroundSessionRepositoryOptions): BackgroundSessionRepository;
|
|
3587
|
+
declare function openJsonlBackgroundSessionRepository(options: OpenJsonlBackgroundSessionRepositoryOptions): Promise<BackgroundSessionRepository>;
|
|
3083
3588
|
//#endregion
|
|
3084
|
-
//#region src/
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
readonly
|
|
3088
|
-
|
|
3589
|
+
//#region src/adapters/compatibility/background-session/runtime.d.ts
|
|
3590
|
+
interface BackgroundSessionSupervisorOptions extends Pick<BackgroundSessionSupervisorOptions$1, "clock" | "config" | "deliver" | "deliveries" | "onError" | "sleep"> {
|
|
3591
|
+
readonly repository: BackgroundSessionRepository;
|
|
3592
|
+
readonly runStep: (input: {
|
|
3593
|
+
readonly session: BackgroundSessionState;
|
|
3594
|
+
readonly signal: AbortSignal;
|
|
3595
|
+
readonly wakeText: string;
|
|
3596
|
+
}) => Promise<{
|
|
3597
|
+
readonly finalText: string;
|
|
3598
|
+
readonly runId: string;
|
|
3599
|
+
}>;
|
|
3089
3600
|
}
|
|
3090
|
-
declare function
|
|
3091
|
-
declare function isBackgroundSessionState(value: unknown): value is BackgroundSessionState;
|
|
3601
|
+
declare function createBackgroundSessionSupervisor(options: BackgroundSessionSupervisorOptions): BackgroundSessionSupervisor;
|
|
3092
3602
|
//#endregion
|
|
3093
3603
|
//#region src/adapters/agent/background-session/background-session-host-tools.d.ts
|
|
3094
3604
|
interface CreateBackgroundSessionHostToolsOptions {
|
|
@@ -3098,6 +3608,21 @@ interface CreateBackgroundSessionHostToolsOptions {
|
|
|
3098
3608
|
}
|
|
3099
3609
|
declare function createBackgroundSessionHostTools(options: CreateBackgroundSessionHostToolsOptions): ReadonlyArray<RivusHostToolDescriptor>;
|
|
3100
3610
|
//#endregion
|
|
3611
|
+
//#region src/adapters/compatibility/background-session/authority.d.ts
|
|
3612
|
+
declare function extendBackgroundSessionDefinition<T extends BackgroundSessionAgentDefinition>(definition: T): TransformedBackgroundSessionDefinition<T>;
|
|
3613
|
+
declare function narrowBackgroundSessionDefinition<T extends BackgroundSessionAgentDefinition>(definition: T): TransformedBackgroundSessionDefinition<T>;
|
|
3614
|
+
//#endregion
|
|
3615
|
+
//#region src/core/application/background-session/supervision/background-session-config.d.ts
|
|
3616
|
+
declare const DEFAULT_BACKGROUND_SESSION_STEP_TIMEOUT_MS: number;
|
|
3617
|
+
declare const DEFAULT_BACKGROUND_SESSION_MAX_CONCURRENT_SESSIONS = 4;
|
|
3618
|
+
declare const DEFAULT_BACKGROUND_SESSION_LEASE_MS = 30000;
|
|
3619
|
+
declare const DEFAULT_BACKGROUND_SESSION_LEASE_RENEWAL_INTERVAL_MS = 10000;
|
|
3620
|
+
declare const DEFAULT_BACKGROUND_SESSION_MAX_CONSECUTIVE_FAILURES = 3;
|
|
3621
|
+
declare const DEFAULT_BACKGROUND_SESSION_RETRY_BACKOFF_MS = 30000;
|
|
3622
|
+
declare const DEFAULT_BACKGROUND_SESSION_LIFETIME_MS: number;
|
|
3623
|
+
declare const DEFAULT_BACKGROUND_SESSION_SUPERVISOR_INTERVAL_MS = 1000;
|
|
3624
|
+
declare function resolveBackgroundSessionSupervisorIntervalMs(leaseMs: number): number;
|
|
3625
|
+
//#endregion
|
|
3101
3626
|
//#region src/adapters/feishu/background-session/background-session-delivery.d.ts
|
|
3102
3627
|
type FeishuBackgroundSessionDeliveryKind = "progress" | "final" | "stopped" | "failed" | "reconciliation";
|
|
3103
3628
|
interface FeishuBackgroundSessionDeliveryInput {
|
|
@@ -3132,6 +3657,10 @@ declare function createBackgroundSessionCard(input: {
|
|
|
3132
3657
|
readonly text: string;
|
|
3133
3658
|
}): FeishuRawCardJson;
|
|
3134
3659
|
//#endregion
|
|
3660
|
+
//#region src/adapters/compatibility/memory/public-contract.d.ts
|
|
3661
|
+
declare function createMemoryNamespace(binding: MemoryBinding): string;
|
|
3662
|
+
declare function restrictMemoryScopesForAudience(scopes: ReadonlyArray<MemoryScope>, audience: MemoryInvocationAudience): ReadonlyArray<MemoryScope>;
|
|
3663
|
+
//#endregion
|
|
3135
3664
|
//#region src/adapters/agent/memory/rivus-memory-tool.d.ts
|
|
3136
3665
|
interface RivusMemoryTool {
|
|
3137
3666
|
execute(command: {
|
|
@@ -3255,11 +3784,90 @@ declare function createAgentLoopPromptTransformer(options: {
|
|
|
3255
3784
|
readonly transform: (input: AgentLoopInput) => Promise<string> | string;
|
|
3256
3785
|
}): AgentLoop;
|
|
3257
3786
|
//#endregion
|
|
3787
|
+
//#region src/core/application/deployment/manifest/deployment-manifest.d.ts
|
|
3788
|
+
declare class InvalidRivusProjectSpace extends Error {
|
|
3789
|
+
readonly name = "InvalidRivusProjectSpace";
|
|
3790
|
+
}
|
|
3791
|
+
declare function validateRivusDeploymentManifest(manifest: RivusDeploymentManifest): void;
|
|
3792
|
+
//#endregion
|
|
3793
|
+
//#region src/adapters/deployment/project-space/node-project-space-resolver.d.ts
|
|
3794
|
+
declare function resolveRivusProjectSpace(input: {
|
|
3795
|
+
readonly declaration: RivusProjectSpaceDeployment;
|
|
3796
|
+
readonly deploymentRoot: string;
|
|
3797
|
+
}): Promise<ResolvedRivusProjectSpace>;
|
|
3798
|
+
//#endregion
|
|
3799
|
+
//#region src/adapters/pi/skills/project-skill-catalog.d.ts
|
|
3800
|
+
interface ProjectSkillCatalogEntry {
|
|
3801
|
+
readonly name: string;
|
|
3802
|
+
}
|
|
3803
|
+
interface ProjectSkillCatalogDiagnostic {
|
|
3804
|
+
readonly message: string;
|
|
3805
|
+
readonly path?: string;
|
|
3806
|
+
readonly type: "warning" | "error" | "collision";
|
|
3807
|
+
}
|
|
3808
|
+
declare class InvalidProjectSkillCatalog extends Error {
|
|
3809
|
+
readonly name = "InvalidProjectSkillCatalog";
|
|
3810
|
+
}
|
|
3811
|
+
declare function validateProjectSkillCatalog(input: {
|
|
3812
|
+
readonly diagnostics: ReadonlyArray<ProjectSkillCatalogDiagnostic>;
|
|
3813
|
+
readonly skills: ReadonlyArray<ProjectSkillCatalogEntry>;
|
|
3814
|
+
}): ReadonlySet<string>;
|
|
3815
|
+
declare function validateProjectSkillCommand(text: string, skillNames: ReadonlySet<string>): void;
|
|
3816
|
+
//#endregion
|
|
3258
3817
|
//#region src/adapters/compatibility/memory/service/jsonl-agent-memory-service.d.ts
|
|
3259
3818
|
declare function openJsonlAgentMemoryService(options: {
|
|
3260
3819
|
readonly filePath: string;
|
|
3261
3820
|
}): Promise<AgentMemoryService>;
|
|
3262
3821
|
//#endregion
|
|
3822
|
+
//#region src/core/application/agent-execution/context/agent-context-assembler.d.ts
|
|
3823
|
+
type AgentContextLayerKind = "host-safety" | "system-prompt" | "managed-instructions" | "workspace-instructions" | "tool-schema" | "skill" | "memory" | "compaction" | "transcript" | "current-input";
|
|
3824
|
+
interface AgentContextLayer {
|
|
3825
|
+
readonly kind: AgentContextLayerKind;
|
|
3826
|
+
readonly content: string;
|
|
3827
|
+
}
|
|
3828
|
+
interface AgentContextInput {
|
|
3829
|
+
readonly hostSafety: string;
|
|
3830
|
+
readonly systemPrompt: string;
|
|
3831
|
+
readonly managedInstructions?: string;
|
|
3832
|
+
readonly workspaceInstructions?: ReadonlyArray<string>;
|
|
3833
|
+
readonly toolSchemas: ReadonlyArray<string>;
|
|
3834
|
+
readonly skills?: ReadonlyArray<string>;
|
|
3835
|
+
readonly memory?: ReadonlyArray<string>;
|
|
3836
|
+
readonly compaction?: string;
|
|
3837
|
+
readonly transcript?: ReadonlyArray<string>;
|
|
3838
|
+
readonly currentInput: string;
|
|
3839
|
+
readonly maxBytes: number;
|
|
3840
|
+
}
|
|
3841
|
+
interface AssembledAgentContext {
|
|
3842
|
+
readonly layers: ReadonlyArray<AgentContextLayer>;
|
|
3843
|
+
readonly omittedKinds: ReadonlyArray<AgentContextLayerKind>;
|
|
3844
|
+
readonly bytes: number;
|
|
3845
|
+
}
|
|
3846
|
+
declare class AgentContextBudgetExceeded extends Error {
|
|
3847
|
+
readonly name = "AgentContextBudgetExceeded";
|
|
3848
|
+
}
|
|
3849
|
+
declare function assembleAgentContext(input: AgentContextInput): AssembledAgentContext;
|
|
3850
|
+
//#endregion
|
|
3851
|
+
//#region src/core/application/memory/ports/compactor.d.ts
|
|
3852
|
+
interface CompactionInput {
|
|
3853
|
+
readonly tenantId: string;
|
|
3854
|
+
readonly agentId: string;
|
|
3855
|
+
readonly instanceId: string;
|
|
3856
|
+
readonly conversationId: string;
|
|
3857
|
+
readonly profileRevision: string;
|
|
3858
|
+
readonly watermark: number;
|
|
3859
|
+
readonly transcript: ReadonlyArray<string>;
|
|
3860
|
+
}
|
|
3861
|
+
//#endregion
|
|
3862
|
+
//#region src/core/application/memory/compaction/compaction-service.d.ts
|
|
3863
|
+
interface CompactionSnapshot extends Omit<CompactionInput, "transcript"> {
|
|
3864
|
+
readonly id: string;
|
|
3865
|
+
readonly summary: string;
|
|
3866
|
+
}
|
|
3867
|
+
declare class CompactionError extends Error {
|
|
3868
|
+
readonly name = "CompactionError";
|
|
3869
|
+
}
|
|
3870
|
+
//#endregion
|
|
3263
3871
|
//#region src/adapters/compatibility/memory/compaction/compaction-service.d.ts
|
|
3264
3872
|
interface CompactorPort {
|
|
3265
3873
|
compact(input: CompactionInput): Promise<string>;
|
|
@@ -3276,6 +3884,23 @@ declare function createCompactionService(options: {
|
|
|
3276
3884
|
//#region src/adapters/compatibility/automation/automation-mandate-store.d.ts
|
|
3277
3885
|
declare function createAutomationMandateStore(): AutomationMandateStore;
|
|
3278
3886
|
//#endregion
|
|
3887
|
+
//#region src/adapters/compatibility/automation/automation-tick-record.d.ts
|
|
3888
|
+
type AutomationTickStatus = "running" | "failed" | "generated" | "suppressed" | "delivered";
|
|
3889
|
+
interface AutomationTickRecord {
|
|
3890
|
+
readonly automationId: string;
|
|
3891
|
+
readonly body?: string;
|
|
3892
|
+
readonly error?: string;
|
|
3893
|
+
readonly occurrence: string;
|
|
3894
|
+
readonly mandateId: string;
|
|
3895
|
+
readonly providerMessageId?: string;
|
|
3896
|
+
readonly presentation?: AutomationPresentation;
|
|
3897
|
+
readonly revision: number;
|
|
3898
|
+
readonly runId?: string;
|
|
3899
|
+
readonly suppressionReason?: string;
|
|
3900
|
+
readonly status: AutomationTickStatus;
|
|
3901
|
+
readonly tickId: string;
|
|
3902
|
+
}
|
|
3903
|
+
//#endregion
|
|
3279
3904
|
//#region src/adapters/compatibility/automation/scheduled-automation.d.ts
|
|
3280
3905
|
interface ScheduledAutomationClock {
|
|
3281
3906
|
now(): Date;
|
|
@@ -3310,14 +3935,62 @@ interface ScheduledAutomation {
|
|
|
3310
3935
|
}
|
|
3311
3936
|
declare function createScheduledAutomation(options: ScheduledAutomationOptions): ScheduledAutomation;
|
|
3312
3937
|
//#endregion
|
|
3313
|
-
//#region src/
|
|
3314
|
-
interface
|
|
3315
|
-
|
|
3938
|
+
//#region src/core/application/automation/policy/daily-automation-schedule.d.ts
|
|
3939
|
+
interface DailyAutomationSchedule {
|
|
3940
|
+
currentOccurrence(now: Date): string | undefined;
|
|
3941
|
+
nextOccurrence(now: Date): Date;
|
|
3316
3942
|
}
|
|
3943
|
+
declare function createDailyAutomationSchedule(expression: string, timeZone: string, now?: Date): DailyAutomationSchedule;
|
|
3317
3944
|
//#endregion
|
|
3318
3945
|
//#region src/adapters/compatibility/automation/json-automation-tick-repository.d.ts
|
|
3946
|
+
interface OpenJsonAutomationTickRepositoryOptions {
|
|
3947
|
+
readonly filePath: string;
|
|
3948
|
+
}
|
|
3319
3949
|
declare function openJsonAutomationTickRepository(options: OpenJsonAutomationTickRepositoryOptions): Promise<AutomationTickRepositoryCompatibility>;
|
|
3320
3950
|
//#endregion
|
|
3951
|
+
//#region src/core/application/automation/outcome/automation-outcome.d.ts
|
|
3952
|
+
type AutomationOutcome = {
|
|
3953
|
+
readonly kind: "suppressed";
|
|
3954
|
+
} | {
|
|
3955
|
+
readonly kind: "report" | "alert";
|
|
3956
|
+
readonly body: string;
|
|
3957
|
+
readonly target: string;
|
|
3958
|
+
};
|
|
3959
|
+
interface PluginStateRecord {
|
|
3960
|
+
readonly pluginId: string;
|
|
3961
|
+
readonly agentId: string;
|
|
3962
|
+
readonly key: string;
|
|
3963
|
+
readonly value: unknown;
|
|
3964
|
+
readonly revision: number;
|
|
3965
|
+
}
|
|
3966
|
+
interface PutPluginState {
|
|
3967
|
+
readonly pluginId: string;
|
|
3968
|
+
readonly agentId: string;
|
|
3969
|
+
readonly key: string;
|
|
3970
|
+
readonly value: unknown;
|
|
3971
|
+
readonly expectedRevision: number;
|
|
3972
|
+
}
|
|
3973
|
+
type DeliveryJobStatus = "pending" | "delivered" | "reconciliation-required";
|
|
3974
|
+
interface DeliveryJob {
|
|
3975
|
+
readonly id: string;
|
|
3976
|
+
readonly tickId: string;
|
|
3977
|
+
readonly kind: "report" | "alert";
|
|
3978
|
+
readonly body: string;
|
|
3979
|
+
readonly target: string;
|
|
3980
|
+
readonly status: DeliveryJobStatus;
|
|
3981
|
+
readonly receiptId?: string;
|
|
3982
|
+
}
|
|
3983
|
+
type DeliveryAttemptResult = {
|
|
3984
|
+
readonly kind: "delivered";
|
|
3985
|
+
readonly providerMessageId: string;
|
|
3986
|
+
} | {
|
|
3987
|
+
readonly kind: "uncertain";
|
|
3988
|
+
};
|
|
3989
|
+
interface CommittedAutomationOutcome {
|
|
3990
|
+
readonly state: PluginStateRecord;
|
|
3991
|
+
readonly job?: DeliveryJob;
|
|
3992
|
+
}
|
|
3993
|
+
//#endregion
|
|
3321
3994
|
//#region src/adapters/compatibility/automation/outcome/plugin-state-store.d.ts
|
|
3322
3995
|
interface PluginStateStore {
|
|
3323
3996
|
get(pluginId: string, agentId: string, key: string): PluginStateRecord | undefined;
|
|
@@ -3349,7 +4022,7 @@ interface CommitAutomationOutcomeInput {
|
|
|
3349
4022
|
}
|
|
3350
4023
|
declare function commitAutomationOutcome(input: CommitAutomationOutcomeInput): CommittedAutomationOutcome;
|
|
3351
4024
|
//#endregion
|
|
3352
|
-
//#region src/
|
|
4025
|
+
//#region src/core/application/delegation/contracts/delegation.d.ts
|
|
3353
4026
|
interface DelegationEdge {
|
|
3354
4027
|
readonly fromAgentId: string;
|
|
3355
4028
|
readonly toAgentId: string;
|
|
@@ -3357,13 +4030,8 @@ interface DelegationEdge {
|
|
|
3357
4030
|
readonly maxHops: number;
|
|
3358
4031
|
readonly maxBudget: number;
|
|
3359
4032
|
}
|
|
3360
|
-
declare class DelegationDenied extends Error {
|
|
3361
|
-
readonly name = "DelegationDenied";
|
|
3362
|
-
}
|
|
3363
|
-
//#endregion
|
|
3364
|
-
//#region src/modules/delegation/application/grant/delegation-service.d.ts
|
|
3365
4033
|
interface DelegationRequest {
|
|
3366
|
-
readonly callerAuthority: InvocationAuthorityRef;
|
|
4034
|
+
readonly callerAuthority: InvocationAuthorityRef$1;
|
|
3367
4035
|
readonly targetAgentId: string;
|
|
3368
4036
|
readonly targetInstanceId: string;
|
|
3369
4037
|
readonly targetToolGrantSet: RivusToolGrantSet;
|
|
@@ -3375,20 +4043,26 @@ interface DelegationGrant {
|
|
|
3375
4043
|
readonly id: string;
|
|
3376
4044
|
readonly request: DelegationRequest;
|
|
3377
4045
|
readonly toolGrantSet: RivusToolGrantSet;
|
|
3378
|
-
readonly authority: InvocationAuthorityRef;
|
|
4046
|
+
readonly authority: InvocationAuthorityRef$1;
|
|
3379
4047
|
}
|
|
3380
4048
|
//#endregion
|
|
3381
|
-
//#region src/
|
|
3382
|
-
|
|
3383
|
-
readonly
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
4049
|
+
//#region src/core/application/delegation/grant/delegation-service.d.ts
|
|
4050
|
+
declare class DelegationDenied extends Error {
|
|
4051
|
+
readonly name = "DelegationDenied";
|
|
4052
|
+
}
|
|
4053
|
+
//#endregion
|
|
4054
|
+
//#region src/adapters/compatibility/delegation/delegation-service.d.ts
|
|
4055
|
+
interface DelegationService {
|
|
4056
|
+
delegate(request: DelegationRequest): DelegationGrant;
|
|
3387
4057
|
}
|
|
4058
|
+
declare function createDelegationService(options: {
|
|
4059
|
+
readonly edges: ReadonlyArray<DelegationEdge>;
|
|
4060
|
+
}): DelegationService;
|
|
4061
|
+
declare function intersectToolIds(sets: ReadonlyArray<ReadonlyArray<string>>): RivusToolGrantSet;
|
|
3388
4062
|
//#endregion
|
|
3389
|
-
//#region src/
|
|
4063
|
+
//#region src/core/application/delegation/contracts/subagent.d.ts
|
|
3390
4064
|
interface SpawnSubagentRequest {
|
|
3391
|
-
readonly parentAuthority: InvocationAuthorityRef;
|
|
4065
|
+
readonly parentAuthority: InvocationAuthorityRef$1;
|
|
3392
4066
|
readonly childAgentId: string;
|
|
3393
4067
|
readonly childProfileToolIds: ReadonlyArray<string>;
|
|
3394
4068
|
readonly childDeploymentToolIds: ReadonlyArray<string>;
|
|
@@ -3399,21 +4073,16 @@ interface SubagentCapabilities {
|
|
|
3399
4073
|
readonly privateMemory: false;
|
|
3400
4074
|
readonly shell: false;
|
|
3401
4075
|
}
|
|
3402
|
-
interface SubagentRecord
|
|
4076
|
+
interface SubagentRecord {
|
|
4077
|
+
readonly id: string;
|
|
4078
|
+
readonly parentRunId: string;
|
|
4079
|
+
readonly childAgentId: string;
|
|
4080
|
+
readonly status: "active" | "cancelled";
|
|
3403
4081
|
readonly toolGrantSet: RivusToolGrantSet;
|
|
3404
|
-
readonly authority: InvocationAuthorityRef;
|
|
4082
|
+
readonly authority: InvocationAuthorityRef$1;
|
|
3405
4083
|
readonly capabilities: SubagentCapabilities;
|
|
3406
4084
|
}
|
|
3407
4085
|
//#endregion
|
|
3408
|
-
//#region src/adapters/compatibility/delegation/delegation-service.d.ts
|
|
3409
|
-
interface DelegationService {
|
|
3410
|
-
delegate(request: DelegationRequest): DelegationGrant;
|
|
3411
|
-
}
|
|
3412
|
-
declare function createDelegationService(options: {
|
|
3413
|
-
readonly edges: ReadonlyArray<DelegationEdge>;
|
|
3414
|
-
}): DelegationService;
|
|
3415
|
-
declare function intersectToolIds(sets: ReadonlyArray<ReadonlyArray<string>>): RivusToolGrantSet;
|
|
3416
|
-
//#endregion
|
|
3417
4086
|
//#region src/adapters/compatibility/delegation/subagent-coordinator.d.ts
|
|
3418
4087
|
interface SubagentCoordinator {
|
|
3419
4088
|
spawn(request: SpawnSubagentRequest): SubagentRecord;
|
|
@@ -3422,6 +4091,14 @@ interface SubagentCoordinator {
|
|
|
3422
4091
|
}
|
|
3423
4092
|
declare function createSubagentCoordinator(): SubagentCoordinator;
|
|
3424
4093
|
//#endregion
|
|
4094
|
+
//#region src/core/application/deployment/resolution/deployment-resolution.d.ts
|
|
4095
|
+
declare class RivusPluginLoadError extends Error {
|
|
4096
|
+
readonly pluginId: string;
|
|
4097
|
+
readonly moduleSpecifier: string;
|
|
4098
|
+
readonly name = "RivusPluginLoadError";
|
|
4099
|
+
constructor(pluginId: string, moduleSpecifier: string, message: string, options?: ErrorOptions);
|
|
4100
|
+
}
|
|
4101
|
+
//#endregion
|
|
3425
4102
|
//#region src/adapters/compatibility/deployment-control/rivus-plugin-loader.d.ts
|
|
3426
4103
|
type RivusPluginModule = RivusPlugin | {
|
|
3427
4104
|
readonly default: RivusPlugin | (() => RivusPlugin | Promise<RivusPlugin>);
|
|
@@ -3471,7 +4148,6 @@ interface CreateRivusDeploymentEndpointInput {
|
|
|
3471
4148
|
readonly endpointId: string;
|
|
3472
4149
|
readonly definition: RivusEndpointDeployment;
|
|
3473
4150
|
readonly handle: (input: RivusEndpointInput) => Promise<unknown>;
|
|
3474
|
-
/** Optional control-plane steering; endpoints that do not support it remain prompt-only. */
|
|
3475
4151
|
readonly steer?: (input: AgentRuntimeSteering) => Promise<boolean>;
|
|
3476
4152
|
readonly instanceId: string;
|
|
3477
4153
|
readonly projectSpaceId?: string;
|
|
@@ -3523,6 +4199,8 @@ interface RivusDeploymentDaemon {
|
|
|
3523
4199
|
status(): RivusDeploymentDaemonStatus;
|
|
3524
4200
|
stop(): Promise<void>;
|
|
3525
4201
|
}
|
|
4202
|
+
//#endregion
|
|
4203
|
+
//#region src/bootstrap/deployment/rivus-deployment-daemon.d.ts
|
|
3526
4204
|
declare function createRivusDeploymentDaemon(options: CreateRivusDeploymentDaemonOptions): Promise<RivusDeploymentDaemon>;
|
|
3527
4205
|
//#endregion
|
|
3528
4206
|
//#region src/adapters/deployment/manifest/node-rivus-deployment-manifest.d.ts
|
|
@@ -3538,7 +4216,7 @@ declare class RivusDeploymentManifestError extends Error {
|
|
|
3538
4216
|
//#region src/adapters/compatibility/deployment-control/rivus-deployment-manifest.d.ts
|
|
3539
4217
|
declare function loadRivusDeploymentManifest(manifestPath: string, options?: LoadRivusDeploymentManifestOptions): Promise<RivusDeploymentManifest>;
|
|
3540
4218
|
//#endregion
|
|
3541
|
-
//#region src/
|
|
4219
|
+
//#region src/bootstrap/deployment/configured-rivus-deployment-daemon.d.ts
|
|
3542
4220
|
type CreateConfiguredRivusDeploymentDaemonOptions = Omit<CreateRivusDeploymentDaemonOptions, "deploymentRoot" | "loadModule" | "manifest"> & {
|
|
3543
4221
|
readonly manifestPath: string;
|
|
3544
4222
|
readonly manifestOptions?: LoadRivusDeploymentManifestOptions;
|
|
@@ -3546,13 +4224,58 @@ type CreateConfiguredRivusDeploymentDaemonOptions = Omit<CreateRivusDeploymentDa
|
|
|
3546
4224
|
};
|
|
3547
4225
|
declare function createConfiguredRivusDeploymentDaemon(options: CreateConfiguredRivusDeploymentDaemonOptions): Promise<RivusDeploymentDaemon>;
|
|
3548
4226
|
//#endregion
|
|
3549
|
-
//#region src/
|
|
4227
|
+
//#region src/adapters/compatibility/human-interaction/snapshot.d.ts
|
|
4228
|
+
interface ApprovedHumanInteractionState extends ApprovedHumanInteractionState$1 {}
|
|
4229
|
+
interface CancelledHumanInteractionState extends CancelledHumanInteractionState$1 {}
|
|
4230
|
+
interface ExpiredHumanInteractionState extends ExpiredHumanInteractionState$1 {}
|
|
4231
|
+
interface HumanInteractionActor extends HumanInteractionActor$1 {}
|
|
4232
|
+
interface HumanInteractionBase extends HumanInteractionBase$1 {}
|
|
4233
|
+
interface HumanInteractionFact extends HumanInteractionFact$1 {}
|
|
4234
|
+
type HumanInteractionId = HumanInteractionId$1;
|
|
4235
|
+
type HumanInteractionResolutionAction = HumanInteractionResolutionAction$1;
|
|
4236
|
+
type HumanInteractionTransition = HumanInteractionTransition$1;
|
|
4237
|
+
interface PendingHumanInteractionState extends PendingHumanInteractionState$1 {}
|
|
4238
|
+
interface RejectedHumanInteractionState extends RejectedHumanInteractionState$1 {}
|
|
4239
|
+
interface RequestToolApprovalInput extends RequestToolApprovalInput$1 {}
|
|
4240
|
+
interface RequestUserDecisionInput extends RequestUserDecisionInput$1 {}
|
|
4241
|
+
interface SelectedHumanInteractionState extends SelectedHumanInteractionState$1 {}
|
|
4242
|
+
interface ToolApprovalBinding extends ToolApprovalBinding$1 {}
|
|
4243
|
+
type ToolApprovalInteractionState = ToolApprovalInteractionState$1;
|
|
4244
|
+
type UserDecisionInteractionState = UserDecisionInteractionState$1;
|
|
4245
|
+
interface UserDecisionOption extends UserDecisionOption$1 {}
|
|
4246
|
+
type HumanInteraction = ToolApprovalInteraction | UserDecisionInteraction;
|
|
4247
|
+
interface ToolApprovalInteraction extends ToolApprovalInteraction$1 {}
|
|
4248
|
+
interface UserDecisionInteraction extends UserDecisionInteraction$1 {}
|
|
4249
|
+
//#endregion
|
|
4250
|
+
//#region src/adapters/compatibility/human-interaction/transitions.d.ts
|
|
4251
|
+
declare class HumanInteractionTransitionDenied extends Error {
|
|
4252
|
+
readonly name = "HumanInteractionTransitionDenied";
|
|
4253
|
+
}
|
|
4254
|
+
declare function transitionHumanInteraction(interaction: HumanInteraction, transition: HumanInteractionTransition): HumanInteraction;
|
|
4255
|
+
//#endregion
|
|
4256
|
+
//#region src/adapters/compatibility/human-interaction/presenter.d.ts
|
|
4257
|
+
interface HumanInteractionPresenter extends HumanInteractionPresenterContract<HumanInteraction> {}
|
|
4258
|
+
//#endregion
|
|
4259
|
+
//#region src/adapters/compatibility/human-interaction/repository.d.ts
|
|
4260
|
+
interface HumanInteractionRepository extends HumanInteractionRepositoryContract<HumanInteraction> {}
|
|
4261
|
+
//#endregion
|
|
4262
|
+
//#region src/adapters/compatibility/human-interaction/service.d.ts
|
|
4263
|
+
interface HumanInteractionClock extends HumanInteractionClock$1 {}
|
|
4264
|
+
interface ResolveHumanInteractionInput extends ResolveHumanInteractionInput$1 {}
|
|
4265
|
+
interface ConsumeToolApprovalInput extends ConsumeToolApprovalInput$1 {}
|
|
4266
|
+
interface HumanInteractionService extends HumanInteractionServiceContract<HumanInteraction, ToolApprovalInteraction, UserDecisionInteraction, RequestToolApprovalInput, RequestUserDecisionInput, ResolveHumanInteractionInput, ConsumeToolApprovalInput> {}
|
|
4267
|
+
interface HumanInteractionServiceOptions extends HumanInteractionServiceOptionsContract<HumanInteractionClock, HumanInteractionPresenter, HumanInteractionRepository> {}
|
|
4268
|
+
declare function createHumanInteractionService(options: HumanInteractionServiceOptions): HumanInteractionService;
|
|
4269
|
+
//#endregion
|
|
4270
|
+
//#region src/adapters/compatibility/human-interaction/endpoint-registry.d.ts
|
|
3550
4271
|
interface HumanInteractionEndpointRegistry {
|
|
3551
4272
|
register(endpointId: string, service: HumanInteractionService): void;
|
|
3552
4273
|
resolve(endpointId: string): HumanInteractionService | undefined;
|
|
3553
4274
|
services(): ReadonlyArray<HumanInteractionService>;
|
|
3554
4275
|
}
|
|
3555
4276
|
declare function createHumanInteractionEndpointRegistry(): HumanInteractionEndpointRegistry;
|
|
4277
|
+
//#endregion
|
|
4278
|
+
//#region src/adapters/compatibility/human-interaction/tool-approval-gateway.d.ts
|
|
3556
4279
|
declare function createHumanInteractionToolApprovalGateway(options: {
|
|
3557
4280
|
readonly clock?: {
|
|
3558
4281
|
readonly now: () => string;
|
|
@@ -3560,6 +4283,66 @@ declare function createHumanInteractionToolApprovalGateway(options: {
|
|
|
3560
4283
|
readonly expiresAfterMs?: number;
|
|
3561
4284
|
readonly registry: HumanInteractionEndpointRegistry;
|
|
3562
4285
|
}): PiToolApprovalGateway;
|
|
4286
|
+
//#endregion
|
|
4287
|
+
//#region src/core/application/tool-execution/brokerage/model-change-authorization-contracts.d.ts
|
|
4288
|
+
/** A Host-maintained grant. No field in this contract comes from the CLI request. */
|
|
4289
|
+
interface ModelManagementGrant {
|
|
4290
|
+
readonly bindingRevision: string;
|
|
4291
|
+
readonly budget: Omit<ModelChangeBudgetLimits, "identity" | "deadlineAt">;
|
|
4292
|
+
readonly enabled: boolean;
|
|
4293
|
+
readonly endpointId: string;
|
|
4294
|
+
readonly homeId: string;
|
|
4295
|
+
readonly operations: ReadonlyArray<ModelChangeOperation>;
|
|
4296
|
+
readonly ownerId: string;
|
|
4297
|
+
readonly provider: string;
|
|
4298
|
+
readonly revision: number;
|
|
4299
|
+
/** Host policy requiring a durable human decision before this request can run. */
|
|
4300
|
+
readonly requireApproval?: boolean;
|
|
4301
|
+
readonly tenantKey: string;
|
|
4302
|
+
readonly timeoutMs: number;
|
|
4303
|
+
}
|
|
4304
|
+
interface ModelChangeApprovalInput {
|
|
4305
|
+
/** Present only while creating the interaction from a live trusted Run. */
|
|
4306
|
+
readonly authority?: ModelChangeApprovalAuthority;
|
|
4307
|
+
readonly budget: ModelManagementGrant["budget"];
|
|
4308
|
+
readonly expiresAt: string;
|
|
4309
|
+
readonly grantRevision: number;
|
|
4310
|
+
readonly interactionId: string;
|
|
4311
|
+
readonly principal: ModelChangePrincipal;
|
|
4312
|
+
readonly request: ModelChangeSubmission;
|
|
4313
|
+
}
|
|
4314
|
+
interface ModelChangeApprovalAuthority {
|
|
4315
|
+
readonly agentId: string;
|
|
4316
|
+
readonly endpointId?: string;
|
|
4317
|
+
readonly instanceId: string;
|
|
4318
|
+
readonly runId: string;
|
|
4319
|
+
readonly sessionKey: string;
|
|
4320
|
+
readonly sourceMessageId: string;
|
|
4321
|
+
readonly tenantKey: string;
|
|
4322
|
+
}
|
|
4323
|
+
type ModelChangeApprovalStatus = {
|
|
4324
|
+
readonly status: "approved";
|
|
4325
|
+
} | {
|
|
4326
|
+
readonly reason?: string;
|
|
4327
|
+
readonly status: "pending";
|
|
4328
|
+
} | {
|
|
4329
|
+
readonly reason?: string;
|
|
4330
|
+
readonly status: "rejected";
|
|
4331
|
+
};
|
|
4332
|
+
/** Durable approval adapter. Initial authorization must stay non-blocking; accepted workers may wait. */
|
|
4333
|
+
interface ModelChangeApprovalPort {
|
|
4334
|
+
requestOrGet(input: ModelChangeApprovalInput): Effect.Effect<ModelChangeApprovalStatus, unknown>;
|
|
4335
|
+
waitForResolution(input: ModelChangeApprovalInput): Effect.Effect<ModelChangeApprovalStatus, unknown>;
|
|
4336
|
+
}
|
|
4337
|
+
//#endregion
|
|
4338
|
+
//#region src/adapters/compatibility/human-interaction/model-change-approval.d.ts
|
|
4339
|
+
/** Route accepted model requests through the existing durable human decision service. */
|
|
4340
|
+
declare function createHumanInteractionModelChangeApproval(options: {
|
|
4341
|
+
readonly endpointId: string;
|
|
4342
|
+
readonly registry: HumanInteractionEndpointRegistry;
|
|
4343
|
+
}): ModelChangeApprovalPort;
|
|
4344
|
+
//#endregion
|
|
4345
|
+
//#region src/adapters/compatibility/human-interaction/routed-tool-approval-service.d.ts
|
|
3563
4346
|
declare function createRoutedHumanInteractionToolApprovalService(registry: HumanInteractionEndpointRegistry): ToolApprovalService;
|
|
3564
4347
|
//#endregion
|
|
3565
4348
|
//#region src/adapters/feishu/delivery/feishu-text-reply.d.ts
|
|
@@ -3598,17 +4381,27 @@ declare function createConfiguredFeishuAutomationCardSender(options: {
|
|
|
3598
4381
|
readonly config: RivusDaemonConfig;
|
|
3599
4382
|
}): FeishuAutomationCardSender;
|
|
3600
4383
|
//#endregion
|
|
3601
|
-
//#region src/
|
|
3602
|
-
declare function createInMemoryHumanInteractionRepository(): HumanInteractionRepository;
|
|
3603
|
-
//#endregion
|
|
3604
|
-
//#region src/modules/human-interaction/infrastructure/persistence/interaction/jsonl-human-interaction-repository.d.ts
|
|
4384
|
+
//#region src/adapters/outbound/persistence/human-interaction/jsonl-human-interaction-repository.d.ts
|
|
3605
4385
|
interface JsonlHumanInteractionRepositoryOptions {
|
|
3606
4386
|
readonly filePath: string;
|
|
3607
4387
|
}
|
|
4388
|
+
//#endregion
|
|
4389
|
+
//#region src/adapters/compatibility/human-interaction/persistence.d.ts
|
|
4390
|
+
declare function createInMemoryHumanInteractionRepository(): HumanInteractionRepository;
|
|
3608
4391
|
declare function createJsonlHumanInteractionRepository(options: JsonlHumanInteractionRepositoryOptions): HumanInteractionRepository;
|
|
3609
4392
|
//#endregion
|
|
3610
|
-
//#region src/adapters/
|
|
4393
|
+
//#region src/adapters/compatibility/human-interaction/feishu.d.ts
|
|
3611
4394
|
declare function createFeishuHumanInteractionCard(interaction: HumanInteraction): FeishuRawCardJson;
|
|
4395
|
+
interface FeishuHumanInteractionPresenterOptions {
|
|
4396
|
+
readonly baseUrl?: string;
|
|
4397
|
+
readonly client: FeishuOpenApiClient;
|
|
4398
|
+
}
|
|
4399
|
+
declare function createFeishuHumanInteractionPresenter(options: FeishuHumanInteractionPresenterOptions): HumanInteractionPresenter;
|
|
4400
|
+
interface ConfiguredFeishuHumanInteractionPresenterOptions {
|
|
4401
|
+
readonly client: FeishuOpenApiClient;
|
|
4402
|
+
readonly config: RivusDaemonConfig;
|
|
4403
|
+
}
|
|
4404
|
+
declare function createConfiguredFeishuHumanInteractionPresenter(options: ConfiguredFeishuHumanInteractionPresenterOptions): HumanInteractionPresenter;
|
|
3612
4405
|
//#endregion
|
|
3613
4406
|
//#region src/adapters/feishu/run-presentation/feishu-agent-run-card.d.ts
|
|
3614
4407
|
declare const FEISHU_AGENT_CARD_ELEMENT_ID = "rivus_agent_answer";
|
|
@@ -3645,18 +4438,4 @@ type FeishuAgentRunCardInput = {
|
|
|
3645
4438
|
};
|
|
3646
4439
|
declare function createFeishuAgentRunCard(input: FeishuAgentRunCardInput): FeishuRawCardJson;
|
|
3647
4440
|
//#endregion
|
|
3648
|
-
//#region src/adapters/feishu/interaction/human-interaction-presenter.d.ts
|
|
3649
|
-
interface FeishuHumanInteractionPresenterOptions {
|
|
3650
|
-
readonly baseUrl?: string;
|
|
3651
|
-
readonly client: FeishuOpenApiClient;
|
|
3652
|
-
}
|
|
3653
|
-
declare function createFeishuHumanInteractionPresenter(options: FeishuHumanInteractionPresenterOptions): HumanInteractionPresenter;
|
|
3654
|
-
//#endregion
|
|
3655
|
-
//#region src/adapters/feishu/interaction/configured-human-interaction-presenter.d.ts
|
|
3656
|
-
interface ConfiguredFeishuHumanInteractionPresenterOptions {
|
|
3657
|
-
readonly client: FeishuOpenApiClient;
|
|
3658
|
-
readonly config: RivusDaemonConfig;
|
|
3659
|
-
}
|
|
3660
|
-
declare function createConfiguredFeishuHumanInteractionPresenter(options: ConfiguredFeishuHumanInteractionPresenterOptions): HumanInteractionPresenter;
|
|
3661
|
-
//#endregion
|
|
3662
|
-
export { DelegationEdge as $, WorkspaceRootHandle as $a, createRecoveryControl as $c, RivusDaemonCliWriter as $i, FeishuMessageIntakeSummary as $l, FeishuCardKitOpenApiClientOptions as $n, FeishuWorkerLoopOptions as $o, createFeishuTenantAccessTokenProvider as $r, createDefaultAgentHarnessClientFromTextCallback as $s, RivusAgentHost as $t, JsonlFeishuCardDeliveryLedgerOptions as $u, CreateRivusDeploymentBackgroundSessionInput as A, RivusAutomationDeliveryTargetType as Aa, SessionSchedulerDisposed as Ac, AgentEventLogStoreError as Ai, FeishuAgentExecution as Al, createConfiguredFeishuCardKitPublisher as An, FeishuCardRolloverEventType as Ao, resolveLangfuseTelemetryConfig as Ar, resolveFeishuEndpointCredentials as As, RivusMemoryTool as At, HumanInteractionRepositoryError as Au, LoadRivusDeploymentOptions as B, ProjectSkillCatalogEntry as Ba, createAgentRuntimePool as Bc, FeishuEventHandlersOptions as Bi, FeishuCardActionCommand as Bl, FeishuCardTargetCreator as Bn, CardPresentationStatus as Bo, ConfiguredFeishuOpenApiRequest as Br, DefaultAgentHarnessClientFromTextCallbackOptions as Bs, createBackgroundSessionHostTools as Bt, HumanInteractionFact as Bu, createRoutedHumanInteractionToolApprovalService as C, LoadedRivusDeployment as Ca, FetchLikeResponse as Cc, hasInspectableRunProgress as Cd, FeishuWebSocketDaemonOptions as Ci, FeishuAgentDaemonHandleResult as Cl, createFixedClock as Cn, RivusDaemonStatus as Co, createTelemetryContentRedactor as Cr, OpenClawEnvImportOptions as Cs, ProjectMemoryRecallOptions as Ct, ConsumeToolApprovalInput as Cu, LoadRivusDeploymentManifestOptions as D, RivusPluginLoadStatus as Da, createJsonFetchRequest as Dc, createLazyFeishuWebSocketEventDispatcher as Di, FeishuAgentDaemonSessionResetResult as Dl, FeishuPeriodicFlushOptions as Dn, FeishuCardRollover as Do, LangfuseTelemetryContentMode as Dr, formatRivusEnvFile as Ds, RIVUS_MEMORY_TOOL_VERSION as Dt, ResolveHumanInteractionInput as Du, loadRivusDeploymentManifest as E, RivusPluginLoadError as Ea, JsonHttpResponse as Ec, createPresentedValue as Ed, createFeishuWebSocketDaemon as Ei, FeishuAgentDaemonRunResult as El, FeishuPeriodicFlush as En, createRivusDaemonStatusReporter as Eo, LangfuseTelemetryConfigError as Er, createRivusEnvFromOpenClawConfig as Es, RIVUS_MEMORY_TOOL_PLUGIN_ID as Et, HumanInteractionServiceOptions as Eu, RivusDeploymentBackgroundSession as F, RivusEndpointExperimentalFeatures as Fa, AgentRuntimeInput as Fc, FeishuPeriodicFlushSupervisor as Fi, createFeishuAgentDaemon as Fl, RateLimitedFeishuPublisherOptions as Fn, FeishuCardPresentationHandoffStart as Fo, createConfiguredRivusDaemonBootstrap as Fr, RivusTextFileReader as Fs, FeishuBackgroundSessionDeliveryKind as Ft, CancelledHumanInteractionState as Fu, DelegationService as G, RivusProjectSpaceDeployment as Ga, AgentInstanceRegistryOptions as Gc, FeishuCardActionToast as Gi, UnsupportedFeishuCardAction as Gl, FeishuCotProtocolError as Gn, CompositeRivusDaemonTransportOptions as Go, FeishuOpenApiResponse as Gr, DefaultAgentRuntimeFromCallbackOptions as Gs, BACKGROUND_SESSION_DELIVERY_JSONL_VERSION as Gt, RejectedHumanInteractionState as Gu, loadRivusDeployment as H, validateProjectSkillCommand as Ha, createAgentInstanceRegistry as Hc, FeishuSdkReceiveMessagePayload as Hi, FeishuCardActionTriggerPayload as Hl, createConfiguredFeishuCardKitTargetCreator as Hn, acceptsCardPresentationProgress as Ho, FeishuOpenApiClient as Hr, DefaultAgentHarnessFromCallbackOptions as Hs, isBackgroundSessionState as Ht, HumanInteractionResolutionAction as Hu, RivusDeploymentDaemon as I, RivusPluginDeclaration as Ia, AgentRuntimePool as Ic, createFeishuAgentRuntime as Ii, FeishuPromptContextInput as Il, createRateLimitedFeishuPublisher as In, FeishuCardPresentationStore as Io, restoreConfiguredRivusDaemonBootstrap as Ir, RivusThinkingLevel as Is, createBackgroundSessionCard as It, ExpiredHumanInteractionState as Iu, SpawnSubagentRequest as J, WorkspaceInstructionsDiagnostic as Ja, OpenJsonFeishuSessionStoreOptions as Jc, FeishuRawCardJson as Ji, FeishuCancelMessageIntakeSummary as Jl, FeishuCotRunPreparation as Jn, RivusDaemonProcessOptions as Jo, FeishuTenantAccessTokenError as Jr, DefaultAgentRuntimeSessionOptions as Js, AgentMemoryServiceOptions as Jt, ToolApprovalInteraction as Ju, createDelegationService as K, InvalidWorkspaceRoot as Ka, AgentInstanceConflict as Kc, createFeishuCardActionCallbackResponse as Ki, createAgentCommandFromFeishuCardAction as Kl, FeishuCotPublisher as Kn, createCompositeRivusDaemonTransport as Ko, createConfiguredFeishuOpenApiClient as Kr, DefaultAgentRuntimeFromTextCallbackOptions as Ks, openJsonlBackgroundSessionDeliveryStore as Kt, SelectedHumanInteractionState as Ku, RivusDeploymentEndpoint as L, validateRivusDeploymentManifest as La, AgentRuntimePoolOptions as Lc, FeishuEventHandlerCardActions as Li, FeishuPromptContextResolver as Ll, FeishuCardKitOpenApiTargetCreatorOptions as Ln, DEFAULT_CARD_STREAM_LEASE_MS as Lo, ConfiguredFeishuCardRolloverRuntime as Lr, loadRivusDaemonConfig as Ls, createConfiguredFeishuBackgroundSessionDelivery as Lt, HumanInteraction as Lu, CreateRivusDeploymentEndpointInput as M, RivusBackgroundSessionsDeployment as Ma, SessionSchedulerStatus as Mc, createJsonlAgentEventLog as Mi, FeishuAgentMessageSideEffects as Ml, FeishuCoalescingPublisherOptions as Mn, FeishuCardRolloverOptions as Mo, ConfiguredRivusDaemonBootstrapOptions as Mr, RivusDaemonConfigError as Ms, createRivusMemoryToolDescriptor as Mt, RequestToolApprovalInput as Mu, CreateRivusDeploymentRuntimeInput as N, RivusDeploymentManifest as Na, createSessionScheduler as Nc, FeishuAgentRuntime as Ni, FeishuAgentPreparedControl as Nl, createCoalescingFeishuPublisher as Nn, FeishuCardRolloverStatus as No, ConfiguredRivusDaemonBootstrapRequest as Nr, RivusDaemonConfigLoaderOptions as Ns, FeishuBackgroundSessionDelivery as Nt, RequestUserDecisionInput as Nu, RivusDeploymentManifestError as O, RivusPluginModuleLoadRequest as Oa, SessionScheduler as Oc, AgentEventLog as Oi, FeishuAgentDaemonSkippedResult as Ol, createFeishuPeriodicFlush as On, FeishuCardRolloverCounters as Oo, LangfuseTelemetryEnv as Or, FeishuEndpointCredentialError as Os, createRivusMemoryToolContract as Ot, createHumanInteractionService as Ou, RivusDeploymentAutomation as P, RivusEndpointDeployment as Pa, AgentRuntimeCancellation as Pc, FeishuAgentRuntimeOptions as Pi, FeishuHumanInteractionActions as Pl, FeishuStreamActionPublisher as Pn, createFeishuCardRollover as Po, ConfiguredRivusDaemonBootstrapResponse as Pr, RivusDaemonEnv as Ps, FeishuBackgroundSessionDeliveryInput as Pt, ApprovedHumanInteractionState as Pu, DelegationDenied as Q, WorkspaceInstructionsView as Qa, RecoveryControlOptions as Qc, RivusDaemonCliOptions as Qi, FeishuMessageIntakeOptions as Ql, createFeishuTopicContextResolver as Qn, FeishuWorkerLoop as Qo, FeishuTenantAccessTokenResponse as Qr, createDefaultAgentHarnessClientFromCallback as Qs, InvalidRivusEndpointBinding as Qt, UserDecisionOption as Qu, createRivusDeploymentDaemon as R, InvalidProjectSkillCatalog as Ra, AgentRuntimeSteering as Rc, FeishuEventHandlerQueue as Ri, composeFeishuTopicPrompt as Rl, FeishuCardPresentationBinder as Rn, CardPresentation as Ro, ConfiguredFeishuCardRolloverRuntimeOptions as Rr, AgentRuntime as Rs, resolveFeishuDeliveryChatId as Rt, HumanInteractionActor as Ru, createHumanInteractionToolApprovalGateway as S, RivusDeploymentComponentLifecycle as Sa, FetchLike as Sc, ToolPresentationStep as Sd, FeishuWebSocketDaemon as Si, FeishuAgentDaemonHandleMessageOptions as Sl, resolveRivusAgentDefinition as Sn, createRivusDaemonStatusHttpServer as So, TelemetryContentRedactorOptions as Sr, OpenClawEnvImportError as Ss, ProjectMemoryRecallIdentity as St, transitionHumanInteraction as Su, createConfiguredRivusDeploymentDaemon as T, RivusAgentDeploymentStatus as Ta, JsonHttpRequest as Tc, PresentedValueOptions as Td, FeishuWebSocketRuntime as Ti, FeishuAgentDaemonOptions as Tl, createTestClock as Tn, RivusDaemonStatusReporterOptions as To, LangfuseTelemetryConfig as Tr, RivusEnvFileVariables as Ts, RIVUS_MEMORY_TOOL_ID as Tt, HumanInteractionService as Tu, SubagentCoordinator as U, InvalidRivusProjectSpace as Ua, AgentInstanceBusy as Uc, createFeishuEventHandlers as Ui, FeishuResolveInteractionCommand as Ul, createFeishuCardKitOpenApiTargetCreator as Un, activeCardPresentation as Uo, FeishuOpenApiError as Ur, DefaultAgentHarnessFromTextCallbackOptions as Us, openJsonlBackgroundSessionRepository as Ut, HumanInteractionTransition as Uu, RivusPluginModule as V, validateProjectSkillCatalog as Va, AgentInstanceRegistry as Vc, FeishuReceiveMessageHandlerPayload as Vi, FeishuCardActionIntakeError as Vl, FeishuCardTargetPreparationOptions as Vn, CardPresentationTransitionDenied as Vo, ConfiguredFeishuOpenApiResponse as Vr, DefaultAgentHarnessClientOptions as Vs, BACKGROUND_SESSION_JSONL_VERSION as Vt, HumanInteractionId as Vu, createSubagentCoordinator as W, ResolvedRivusProjectSpace as Wa, AgentRuntimeDisposed as Wc, FeishuCardActionCallbackResponse as Wi, InvalidFeishuCardAction as Wl, createFeishuCardTargetPreparation as Wn, isCardPresentationHandoffDue as Wo, FeishuOpenApiRequest as Wr, DefaultAgentHarnessOptions as Ws, createBackgroundSessionRepository as Wt, PendingHumanInteractionState as Wu, DelegationGrant as X, WorkspaceInstructionsRequest as Xa, JsonlFeishuInboxRepositoryOptions as Xc, RivusDaemonBootstrapFactory as Xi, FeishuMessageIntakeBaseSummary as Xl, FeishuTopicContextResolverOptions as Xn, RivusDaemonWorkerLoop as Xo, FeishuTenantAccessTokenProviderOptions as Xr, createDefaultAgentHarness as Xs, AgentMemoryHandle as Xt, UserDecisionInteraction as Xu, SubagentRecord as Y, WorkspaceInstructionsDiagnosticCode as Ya, openJsonFeishuSessionStore as Yc, RivusDaemonBootstrapContext as Yi, FeishuCancelRunCommand as Yl, createFeishuCotPublisher as Yn, RivusDaemonTransport as Yo, FeishuTenantAccessTokenProvider as Yr, createAgentRuntime as Ys, createAgentMemoryService as Yt, ToolApprovalInteractionState as Yu, DelegationRequest as Z, WorkspaceInstructionsSourceError as Za, openJsonlFeishuInboxRepository as Zc, RivusDaemonBootstrapModule as Zi, FeishuMessageIntakeError as Zl, InvalidFeishuTopicContext as Zn, createRivusDaemonProcess as Zo, FeishuTenantAccessTokenRequest as Zr, createDefaultAgentHarnessClient as Zs, AgentMemoryService as Zt, UserDecisionInteractionState as Zu, createConfiguredFeishuMessageReactionSender as _, RivusDeploymentDaemonLifecycleError as _a, createAgentDomainEventHandler as _c, RUN_PRESENTATION_SCHEMA_VERSION as _d, FeishuCardKitTextUpdate as _i, InvalidRecoveryAction as _l, createToolBroker as _n, RivusDaemonShutdownSignal as _o, OpenTelemetryAgentEventSinkOptions as _r, FeishuMessageQueueOptions as _s, CompactorPort as _t, InvalidFeishuSessionReference as _u, FEISHU_AGENT_CARD_ELEMENT_ID as a, RivusDeploymentBootstrapContext as aa, createSystemClock as ac, FeishuCardDeliveryRecord as ad, FeishuCardTargetRegistryOperation as ai, FeishuInboxDeliveryState as al, createFeishuPresentationPreparation as an, failBackgroundSessionStep as ao, createRunPresentationProjector as ar, FeishuMessageWorkerDrainAvailableResult as as, PluginStateConflict as at, describeFeishuMessageIntake as au, HumanInteractionEndpointRegistry as b, RivusDeploymentEndpointStatus as ba, AgentHarnessOptions as bc, RunPresentationPhase as bd, FeishuWebSocketClient as bi, FeishuAgentDaemon as bl, createWorkspaceRootHandle as bn, RivusDaemonStatusHttpServer as bo, createOpenTelemetryAgentTelemetry as br, MergePiProviderBaseUrlOverrideOptions as bs, createAgentLoopPromptTransformer as bt, FeishuReceiveMessagePayload as bu, createFeishuAgentRunCard as c, createRivusDeploymentCliProcess as ca, AgentClientFailure as cc, FeishuStreamAction as cd, createInMemoryFeishuCardTargetRegistry as ci, FeishuInboxRepository as cl, createAgentHarnessPooledRuntime as cn, parkBackgroundSessionForReconciliation as co, createPiSessionRegistry as cr, FeishuReceiveMessageReplayOptions as cs, openJsonAutomationTickRepository as ct, UnsupportedFeishuMessage as cu, createJsonlHumanInteractionRepository as d, RivusDeploymentAutomationReadinessError as da, AgentSessionClient as dc, ConversationProgressDisplay as dd, FeishuCardKitClient as di, DeadLetterRecoveryItem as dl, openJsonlToolOperationLedger as dn, requestBackgroundSessionStop as do, createPiAgentLoop as dr, FeishuReceiveRuntimeStatus as ds, ScheduledAutomation as dt, FeishuSessionResetResult as du, RivusDaemonFeishuReplayRunner as ea, createDefaultAgentHarnessFromCallback as ec, openJsonlFeishuCardDeliveryLedger as ed, FeishuCardRolloverSupervisor as ei, ToolOperationLedger as el, RivusAgentHostOptions as en, appendBackgroundSessionInput as eo, createFeishuCardKitOpenApiClient as er, createFeishuWorkerLoop as es, CommitAutomationOutcomeInput as et, FeishuNewSessionCommand as eu, createInMemoryHumanInteractionRepository as f, RivusDeploymentAutomationStatus as fa, AgentTextDeltaCallback as fc, DEFAULT_CONVERSATION_PROGRESS_DISPLAY as fd, FeishuCardKitFail as fi, DeadLetterRequeueResult as fl, AuthorizationPolicyProvider as fn, requeueInterruptedBackgroundSessionStep as fo, createPiSdkAgentLoop as fr, FeishuEndpointGroupPolicy as fs, ScheduledAutomationClock as ft, FeishuSessionStore as fu, FeishuMessageReactionSender as g, RivusDeploymentDaemonLifecycle as ga, AgentRunUpdateCallback as gc, PresentationStepStatus as gd, FeishuCardKitPublisherOptions as gi, ToolOperationResolutionResult as gl, ToolExecutionRequest as gn, RivusDaemonShutdownControllerOptions as go, PiSdkAgentLoopOptions as gr, FeishuMessageQueue as gs, CompactionService as gt, FeishuSessionReference as gu, createConfiguredFeishuAutomationCardSender as h, RivusDeploymentBackgroundSessionStatus as ha, AgentDomainEventSinkCallback as hc, PresentationStep as hd, FeishuCardKitPublisher as hi, ToolOperationRecoveryItem as hl, ToolBrokerOptions as hn, RivusDaemonShutdownController as ho, PiCreateAgentSessionResult as hr, FeishuMessagePreparedControl as hs, createAutomationMandateStore as ht, FeishuConversationReference as hu, createFeishuHumanInteractionPresenter as i, RivusDeploymentBootstrapAdapters as ia, createDefaultAgentRuntimeFromTextCallback as ic, FeishuCardDeliveryReconcilerOptions as id, FeishuCardTargetRegistry as ii, FeishuInboxDelivery as il, FeishuPresentationPreparationOptions as in, createBackgroundSession as io, RunPresentationProjector as ir, createFeishuMessageWorker as is, createDeliveryOutbox as it, createAgentCommandFromFeishuMessage as iu, CreateRivusDeploymentDaemonOptions as j, RivusAutomationDeployment as ja, SessionSchedulerOptions as jc, JsonlAgentEventLogOptions as ji, FeishuAgentExecutionResult as jl, FeishuCoalescingPublisher as jn, FeishuCardRolloverHandoffResult as jo, ConfiguredRivusDaemonBootstrap as jr, RivusDaemonConfig as js, createRivusMemoryTool as jt, HumanInteractionPresenter as ju, CreateRivusDeploymentAutomationInput as k, RivusAutomationDelivery as ka, SessionSchedulerCapacityExceeded as kc, AgentEventLogOperation as ki, FeishuAgentDaemonSteeredResult as kl, ConfiguredFeishuCardKitPublisherOptions as kn, FeishuCardRolloverEvent as ko, createLangfuseAgentTelemetry as kr, FeishuEndpointCredentials as ks, MemoryTombstoneReceipt as kt, HumanInteractionRepository as ku, createFeishuHumanInteractionCard as l, ProcessDeploymentEndpoint as la, AgentClientSuccess as lc, FeishuStreamProjector as ld, createJsonFileFeishuCardTargetRegistry as li, FeishuInboxRepositoryStateOptions as ll, JsonlRecoveryControlOptions as ln, releaseBackgroundSessionLease as lo, PiAgentLoopOptions as lr, FeishuReceiveMessageReplayResult as ls, OpenJsonAutomationTickRepositoryOptions as lt, readFeishuMessageContent as lu, FeishuAutomationCardSender as m, RivusDeploymentBackgroundSessionReadinessError as ma, AgentDomainEventCallback as mc, ModelPresentationStep as md, FeishuCardKitPresentationUpdate as mi, RecoverySnapshot as ml, ToolBroker as mn, suspendBackgroundSession as mo, PiAgentSessionEvent as mr, FeishuMessageDrainResult as ms, createScheduledAutomation as mt, createFeishuSessionStore as mu, createConfiguredFeishuHumanInteractionPresenter as n, RivusDaemonRecoveryRunner as na, createDefaultAgentRuntime as nc, FeishuCardDeliveryLedgerStateOptions as nd, createFeishuCardRolloverSupervisor as ni, FeishuInboxCompletedState as nl, RivusEndpointInput$1 as nn, completeBackgroundSessionStep as no, FeishuCardPresentationStoreOptions as nr, FeishuMessageWorkerOptions as ns, DeliveryOutbox as nt, FeishuPromptAgentCommand as nu, FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID as o, RivusDeploymentBootstrapFactory as oa, createUuidRunIds as oc, createFeishuCardDeliveryLedger as od, FeishuCardTargetRegistryStoreError as oi, FeishuInboxLeasedState as ol, FeishuDeploymentEndpointOptions as on, isBackgroundSessionDue as oo, PiSessionRegistry as or, FeishuReceiveAcceptedObservation as os, PluginStateStore as ot, FeishuMessageContentInput as ou, FeishuAutomationCardInput as p, RivusDeploymentBackgroundSessionLifecycle as pa, createAgentHarnessClient as pc, AssistantPresentationStep as pd, FeishuCardKitFinish as pi, RecoveryControl as pl, ToolApprovalService as pn, resolveBackgroundSessionReconciliation as po, PiAgentSession as pr, shouldAcceptFeishuEndpointMessage as ps, ScheduledAutomationOptions as pt, FeishuSessionStoreOptions as pu, intersectToolIds as q, WorkspaceInstructionSource as qa, AgentInstanceRecord as qc, createFeishuCardActionErrorResponse as qi, FeishuAgentCommand as ql, FeishuCotPublisherOptions as qn, RivusDaemonProcess as qo, createFeishuOpenApiClient as qr, DefaultAgentRuntimeOptions as qs, createBackgroundSessionDeliveryStore as qt, ToolApprovalBinding as qu, FeishuHumanInteractionPresenterOptions as r, runRivusDaemonCli as ra, createDefaultAgentRuntimeFromCallback as rc, FeishuCardDeliveryReconciler as rd, FeishuCardTargetNotFound as ri, FeishuInboxDeadState as rl, createRivusAgentHost as rn, completeBackgroundSessionStop as ro, createFeishuCardPresentationStore as rr, FeishuMessageWorkerQueue as rs, DeliveryOutboxError as rt, FeishuPromptMessageIntakeSummary as ru, FeishuAgentRunCardInput as s, RivusDeploymentCliProcess as sa, AgentClientAttempt as sc, createFeishuCardDeliveryReconciler as sd, JsonFileFeishuCardTargetRegistryOptions as si, FeishuInboxPendingState as sl, createFeishuDeploymentEndpoint as sn, isBackgroundSessionLeaseExpired as so, PiSessionRegistryOptions as sr, FeishuReceiveHandledObservation as ss, createPluginStateStore as st, InvalidFeishuMessageContent as su, ConfiguredFeishuHumanInteractionPresenterOptions as t, RivusDaemonPromptRunner as ta, createDefaultAgentHarnessFromTextCallback as tc, FeishuCardDeliveryLedger as td, FeishuCardRolloverSupervisorOptions as ti, createToolOperationLedger as tl, RivusEndpointDefinition as tn, claimBackgroundSession as to, FeishuCardPresentationNotFound as tr, FeishuMessageWorker as ts, commitAutomationOutcome as tt, FeishuNewSessionMessageIntakeSummary as tu, JsonlHumanInteractionRepositoryOptions as u, RivusDeploymentAutomationLifecycle as ua, AgentHarnessClient as uc, createFeishuStreamProjector as ud, FeishuCardKitCancel as ui, createFeishuInboxRepository as ul, openJsonlRecoveryControl as un, renewBackgroundSessionLease as uo, PiAgentSessionHandle as ur, FeishuReceiveMessageSummary as us, AutomationTickRepositoryCompatibility as ut, FeishuSessionEpochRecord as uu, FeishuTextReplySender as v, RivusDeploymentDaemonStatus as va, createAgentDomainEventSinkFromCallback as vc, ResponsePresentationStep as vd, FeishuCardTarget as vi, RecoveryAction as vl, WorkspaceInstructionsProvider as vn, RivusDaemonSignalSource as vo, OpenTelemetryAgentTelemetry as vr, createFeishuMessageQueue as vs, createCompactionService as vt, createFeishuConversationId as vu, CreateConfiguredRivusDeploymentDaemonOptions as w, ResolvedRivusAutomationDefinition as wa, JsonFetchRequestOptions as wc, PresentedValue as wd, FeishuWebSocketEventDispatcher as wi, FeishuAgentDaemonInteractionResult as wl, createSequenceRunIds as wn, RivusDaemonStatusReporter as wo, LangfuseAgentTelemetry as wr, OpenClawEnvImportResult as ws, createProjectMemoryPromptPreparer as wt, HumanInteractionClock as wu, createHumanInteractionEndpointRegistry as x, RivusDeploymentReadinessError as xa, createAgentHarness as xc, SkillPresentationStep as xd, FeishuWebSocketClientStartOptions as xi, FeishuAgentDaemonCancelResult as xl, resolveRivusProjectSpace as xn, RivusDaemonStatusHttpServerOptions as xo, TelemetryContentRedactor as xr, mergePiProviderBaseUrlOverride as xs, ProjectMemoryPromptInput as xt, HumanInteractionTransitionDenied as xu, createConfiguredFeishuTextReplySender as y, RivusDeploymentEndpointLifecycle as ya, createAgentRunUpdateHandler as yc, RunPresentation as yd, createFeishuCardKitPublisher as yi, createRecoveryAction as yl, createAgentsMdInstructionsProvider as yn, createRivusDaemonShutdownController as yo, createOpenTelemetryAgentEventSink as yr, FeishuMessageAcceptResult as ys, openJsonlAgentMemoryService as yt, createFeishuSessionKey as yu, loadNodeRivusPluginModule as z, ProjectSkillCatalogDiagnostic as za, PooledAgentRuntime as zc, FeishuEventHandlers as zi, FeishuAgentRunPreparation as zl, FeishuCardTargetCreateOptions as zn, CardPresentationChain as zo, createConfiguredFeishuCardRolloverRuntime as zr, DefaultAgentHarnessClientFromCallbackOptions as zs, CreateBackgroundSessionHostToolsOptions as zt, HumanInteractionBase as zu };
|
|
4441
|
+
export { UserDecisionInteraction as $, AgentModelOutputObservation as $a, CardPresentation as $c, FeishuAgentExecutionResult as $d, FeishuStreamAction as $f, createRateLimitedFeishuPublisher as $i, AgentRuntime as $l, DEFAULT_BACKGROUND_SESSION_STEP_TIMEOUT_MS as $n, AgentEventLogStoreError as $o, RivusEndpointDefinition as $r, createBackgroundSessionToolContracts as $s, ScheduledAutomationClock as $t, AgentRuntimeSteering as $u, createHumanInteractionService as A, PiAgentSession as Aa, RivusDaemonShutdownController as Ac, FeishuInboxLeasedState as Ad, UnsupportedFeishuMessage as Af, InvalidWorkspaceRoot as Ai, FeishuMessagePreparedControl as Al, createProjectMemoryPromptPreparer as An, JsonFileFeishuCardTargetRegistryOptions as Ao, AgentRunUpdateListener as Ap, renewBackgroundSessionLease as Ar, RivusDeploymentBootstrapAdapters as As, DelegationEdge as At, AgentDomainEventSinkCallback as Au, HumanInteractionBase as B, createOpenTelemetryAgentTelemetry as Ba, RivusDaemonStatusReporterOptions as Bc, ToolOperationRecoveryItem as Bd, createFeishuConversationId as Bf, createFixedClock as Bi, RivusEnvFileVariables as Bl, restrictMemoryScopesForAudience as Bn, FeishuCardKitTextUpdate as Bo, AgentEventSinkFailed as Bp, AgentMemoryService as Br, RivusDeploymentBackgroundSessionStatus as Bs, createPluginStateStore as Bt, JsonHttpRequest as Bu, HumanInteractionEndpointRegistry as C, PiSessionRegistry as Ca, ScheduledAutomationRunResult as Cc, ToolOperationRecord as Cd, FeishuNewSessionMessageIntakeSummary as Cf, requiresToolApproval as Ci, FeishuReceiveMessageReplayOptions as Cl, resolveRivusProjectSpace as Cn, FeishuCardRolloverSupervisor as Co, AgentHarnessBusyAvailability as Cp, createBackgroundSession as Cr, RivusDaemonBootstrapModule as Cs, createSubagentCoordinator as Ct, AgentClientFailure as Cu, HumanInteractionService as D, PiAgentSessionHandle as Da, AutomationMandateError as Dc, FeishuInboxDeadState as Dd, describeFeishuMessageIntake as Df, WorkspaceInstructionsProvider as Di, FeishuEndpointGroupPolicy as Dl, ProjectMemoryPromptInput as Dn, FeishuCardTargetRegistry as Do, AgentRunSnapshot as Dp, isBackgroundSessionTerminalPhase as Dr, RivusDaemonPromptRunner as Ds, createDelegationService as Dt, AgentTextDeltaCallback as Du, HumanInteractionClock as E, PiAgentLoopOptions as Ea, AutomationMandate as Ec, FeishuInboxCompletedState as Ed, createAgentCommandFromFeishuMessage as Ef, normalizeStableJson as Ei, FeishuReceiveRuntimeStatus as El, createAgentLoopPromptTransformer as En, FeishuCardTargetNotFound as Eo, AgentPromptResult as Ep, isBackgroundSessionLeaseExpired as Er, RivusDaemonFeishuReplayRunner as Es, DelegationService as Et, AgentSessionClient as Eu, ApprovedHumanInteractionState as F, initialAgentRunState as Fa, RivusDaemonStatusHttpServer as Fc, DeadLetterRecoveryItem as Fd, FeishuSessionStoreOptions as Ff, WorkspaceInstructionsRequest as Fi, MergePiProviderBaseUrlOverrideOptions as Fl, MemoryTombstoneReceipt as Fn, FeishuCardKitFail as Fo, AgentSessionOwnedBusyAvailability as Fp, AgentMemoryServiceOptions as Fr, RivusDeploymentAutomationLifecycle as Fs, DeliveryOutbox as Ft, AgentHarnessOptions as Fu, PendingHumanInteractionState as G, LangfuseTelemetryConfig as Ga, FeishuCardRolloverEventType as Gc, FeishuAgentDaemonHandleResult as Gd, openJsonlFeishuCardDeliveryLedger as Gf, createFeishuPeriodicFlush as Gi, resolveFeishuEndpointCredentials as Gl, createConfiguredFeishuBackgroundSessionDelivery as Gn, FeishuWebSocketDaemon as Go, DEFAULT_CONVERSATION_PROGRESS_DISPLAY as Gp, MemoryRecord as Gr, RivusDeploymentReadinessError as Gs, PluginStateRecord as Gt, SessionSchedulerDisposed as Gu, HumanInteractionId as H, TelemetryContentRedactorOptions as Ha, FeishuCardRollover as Hc, FeishuAgentDaemon as Hd, FeishuReceiveMessagePayload as Hf, createTestClock as Hi, formatRivusEnvFile as Hl, FeishuBackgroundSessionDeliveryInput as Hn, createFeishuCardKitPublisher as Ho, AgentLoopFailed as Hp, MEMORY_SCOPES as Hr, RivusDeploymentDaemonStatus as Hs, CommittedAutomationOutcome as Ht, createJsonFetchRequest as Hu, CancelledHumanInteractionState as I, isTerminalAgentRunPhase as Ia, RivusDaemonStatusHttpServerOptions as Ic, DeadLetterRequeueResult as Id, createFeishuSessionStore as If, WorkspaceInstructionsView as Ii, mergePiProviderBaseUrlOverride as Il, RivusMemoryTool as In, FeishuCardKitFinish as Io, AgentSessionSnapshot as Ip, createAgentMemoryService as Ir, RivusDeploymentAutomationReadinessError as Is, DeliveryOutboxError as It, createAgentHarness as Iu, RequestUserDecisionInput as J, LangfuseTelemetryEnv as Ja, FeishuCardRolloverStatus as Jc, FeishuAgentDaemonRunResult as Jd, FeishuCardDeliveryReconciler as Jf, FeishuCoalescingPublisher as Ji, RivusDaemonConfigLoaderOptions as Jl, DEFAULT_BACKGROUND_SESSION_LEASE_RENEWAL_INTERVAL_MS as Jn, FeishuWebSocketRuntime as Jo, MemoryState as Jr, BACKGROUND_SESSION_START_TOOL_ID as Js, openJsonAutomationTickRepository as Jt, createSessionScheduler as Ju, RejectedHumanInteractionState as K, LangfuseTelemetryConfigError as Ka, FeishuCardRolloverHandoffResult as Kc, FeishuAgentDaemonInteractionResult as Kd, FeishuCardDeliveryLedger as Kf, ConfiguredFeishuCardKitPublisherOptions as Ki, RivusDaemonConfig as Kl, resolveFeishuDeliveryChatId as Kn, FeishuWebSocketDaemonOptions as Ko, MemoryScope as Kr, RivusDeploymentComponentLifecycle as Ks, PutPluginState as Kt, SessionSchedulerOptions as Ku, ExpiredHumanInteractionState as L, OpenTelemetryAgentEventSinkOptions as La, createRivusDaemonStatusHttpServer as Lc, RecoveryAction as Ld, FeishuConversationReference as Lf, WorkspaceRootHandle as Li, OpenClawEnvImportError as Ll, createRivusMemoryTool as Ln, FeishuCardKitPresentationUpdate as Lo, PromptCommand as Lp, AgentMemoryAuthority as Lr, RivusDeploymentAutomationStatus as Ls, createDeliveryOutbox as Lt, FetchLike as Lu, HumanInteractionPresenter as M, PiCreateAgentSessionResult as Ma, RivusDaemonShutdownSignal as Mc, FeishuInboxRepository as Md, FeishuSessionEpochRecord as Mf, WorkspaceInstructionSource as Mi, FeishuMessageQueueOptions as Ml, RIVUS_MEMORY_TOOL_PLUGIN_ID as Mn, createJsonFileFeishuCardTargetRegistry as Mo, AgentSessionBusyAvailability as Mp, requeueInterruptedBackgroundSessionStep as Mr, RivusDeploymentBootstrapFactory as Ms, DelegationRequest as Mt, createAgentDomainEventHandler as Mu, HumanInteractionTransitionDenied as N, PiSdkAgentLoopOptions as Na, RivusDaemonSignalSource as Nc, FeishuInboxRepositoryStateOptions as Nd, FeishuSessionResetResult as Nf, WorkspaceInstructionsDiagnostic as Ni, createFeishuMessageQueue as Nl, RIVUS_MEMORY_TOOL_VERSION as Nn, FeishuCardKitCancel as No, AgentSessionHandle as Np, resolveBackgroundSessionReconciliation as Nr, RivusDeploymentCliProcess as Ns, CommitAutomationOutcomeInput as Nt, createAgentDomainEventSinkFromCallback as Nu, HumanInteractionServiceOptions as O, createPiAgentLoop as Oa, AutomationMandateStore as Oc, FeishuInboxDelivery as Od, FeishuMessageContentInput as Of, createAgentsMdInstructionsProvider as Oi, shouldAcceptFeishuEndpointMessage as Ol, ProjectMemoryRecallIdentity as On, FeishuCardTargetRegistryOperation as Oo, AgentRunUpdate as Op, parkBackgroundSessionForReconciliation as Or, RivusDaemonRecoveryRunner as Os, intersectToolIds as Ot, createAgentHarnessClient as Ou, transitionHumanInteraction as P, evolveAgentRun as Pa, createRivusDaemonShutdownController as Pc, createFeishuInboxRepository as Pd, FeishuSessionStore as Pf, WorkspaceInstructionsDiagnosticCode as Pi, FeishuMessageAcceptResult as Pl, createRivusMemoryToolContract as Pn, FeishuCardKitClient as Po, AgentSessionOtherBusyAvailability as Pp, suspendBackgroundSession as Pr, createRivusDeploymentCliProcess as Ps, commitAutomationOutcome as Pt, createAgentRunUpdateHandler as Pu, ToolApprovalInteractionState as Q, AgentModelInputObservation as Qa, FeishuCardPresentationStore as Qc, FeishuAgentExecution as Qd, createFeishuCardDeliveryReconciler as Qf, RateLimitedFeishuPublisherOptions as Qi, loadRivusDaemonConfig as Ql, DEFAULT_BACKGROUND_SESSION_RETRY_BACKOFF_MS as Qn, AgentEventLogOperation as Qo, RivusAgentHostOptions as Qr, backgroundSessionToolIds as Qs, ScheduledAutomation as Qt, AgentRuntimePoolOptions as Qu, HumanInteraction as R, OpenTelemetryAgentTelemetry as Ra, RivusDaemonStatus as Rc, RecoveryControl as Rd, FeishuSessionReference as Rf, createRivusPluginCatalog as Ri, OpenClawEnvImportOptions as Rl, createRivusMemoryToolDescriptor as Rn, FeishuCardKitPublisher as Ro, RunIdGenerator as Rp, AgentMemoryHandle as Rr, RivusDeploymentBackgroundSessionLifecycle as Rs, PluginStateConflict as Rt, FetchLikeResponse as Ru, createHumanInteractionToolApprovalGateway as S, createRunPresentationProjector as Sa, ScheduledAutomationRunInput as Sc, ToolOperationReconciliationOutcome as Sd, FeishuNewSessionCommand as Sf, createToolInputDigest as Si, FeishuReceiveHandledObservation as Sl, validateProjectSkillCommand as Sn, createFeishuTenantAccessTokenProvider as So, AgentHarnessAvailability as Sp, completeBackgroundSessionStop as Sr, RivusDaemonBootstrapFactory as Ss, SubagentCoordinator as St, AgentClientAttempt as Su, ConsumeToolApprovalInput as T, createPiSessionRegistry as Ta, AutomationDeliveryBinding as Tc, createToolOperationLedger as Td, FeishuPromptMessageIntakeSummary as Tf, InvalidToolInput as Ti, FeishuReceiveMessageSummary as Tl, validateRivusDeploymentManifest as Tn, createFeishuCardRolloverSupervisor as To, AgentHarnessIdleAvailability as Tp, isBackgroundSessionDue as Tr, RivusDaemonCliWriter as Ts, SubagentRecord as Tt, AgentHarnessClient as Tu, HumanInteractionResolutionAction as U, createTelemetryContentRedactor as Ua, FeishuCardRolloverCounters as Uc, FeishuAgentDaemonCancelResult as Ud, HumanInteractionRepositoryError as Uf, FeishuPeriodicFlush as Ui, FeishuEndpointCredentialError as Ul, FeishuBackgroundSessionDeliveryKind as Un, FeishuWebSocketClient as Uo, AgentRunCancelled as Up, MemoryBinding as Ur, RivusDeploymentEndpointLifecycle as Us, DeliveryJob as Ut, SessionScheduler as Uu, HumanInteractionFact as V, TelemetryContentRedactor as Va, createRivusDaemonStatusReporter as Vc, ToolOperationResolutionResult as Vd, createFeishuSessionKey as Vf, createSequenceRunIds as Vi, createRivusEnvFromOpenClawConfig as Vl, FeishuBackgroundSessionDelivery as Vn, FeishuCardTarget as Vo, AgentHarnessBusy as Vp, AgentMemorySnapshot as Vr, RivusDeploymentDaemonLifecycle as Vs, AutomationOutcome as Vt, JsonHttpResponse as Vu, HumanInteractionTransition as W, LangfuseAgentTelemetry as Wa, FeishuCardRolloverEvent as Wc, FeishuAgentDaemonHandleMessageOptions as Wd, JsonlFeishuCardDeliveryLedgerOptions as Wf, FeishuPeriodicFlushOptions as Wi, FeishuEndpointCredentials as Wl, createBackgroundSessionCard as Wn, FeishuWebSocketClientStartOptions as Wo, ConversationProgressDisplay as Wp, MemoryInvocationAudience as Wr, RivusDeploymentEndpointStatus as Ws, DeliveryJobStatus as Wt, SessionSchedulerCapacityExceeded as Wu, ToolApprovalBinding as X, resolveLangfuseTelemetryConfig as Xa, DEFAULT_CARD_STREAM_LEASE_MS as Xc, FeishuAgentDaemonSkippedResult as Xd, FeishuCardDeliveryRecord as Xf, createCoalescingFeishuPublisher as Xi, RivusTextFileReader as Xl, DEFAULT_BACKGROUND_SESSION_MAX_CONCURRENT_SESSIONS as Xn, createLazyFeishuWebSocketEventDispatcher as Xo, InvalidRivusEndpointBinding as Xr, BACKGROUND_SESSION_TOOL_PLUGIN_ID as Xs, createDailyAutomationSchedule as Xt, AgentRuntimeInput as Xu, SelectedHumanInteractionState as Y, createLangfuseAgentTelemetry as Ya, createFeishuCardRollover as Yc, FeishuAgentDaemonSessionResetResult as Yd, FeishuCardDeliveryReconcilerOptions as Yf, FeishuCoalescingPublisherOptions as Yi, RivusDaemonEnv as Yl, DEFAULT_BACKGROUND_SESSION_LIFETIME_MS as Yn, createFeishuWebSocketDaemon as Yo, AgentMemoryError as Yr, BACKGROUND_SESSION_TOOL_IDS as Ys, DailyAutomationSchedule as Yt, AgentRuntimeCancellation as Yu, ToolApprovalInteraction as Z, AgentModelContentObserver as Za, FeishuCardPresentationHandoffStart as Zc, FeishuAgentDaemonSteeredResult as Zd, createFeishuCardDeliveryLedger as Zf, FeishuStreamActionPublisher as Zi, RivusThinkingLevel as Zl, DEFAULT_BACKGROUND_SESSION_MAX_CONSECUTIVE_FAILURES as Zn, AgentEventLog as Zo, RivusAgentHost as Zr, BACKGROUND_SESSION_TOOL_VERSION as Zs, AutomationTickRepositoryCompatibility as Zt, AgentRuntimePool as Zu, createConfiguredFeishuMessageReactionSender as _, createFeishuCardKitOpenApiClient as _a, BackgroundSessionLimits as _c, ToolOperationBeginResult as _d, FeishuCancelRunCommand as _f, createToolBroker as _i, FeishuMessageWorkerOptions as _l, openJsonlAgentMemoryService as _n, FeishuTenantAccessTokenError as _o, AgentClock as _p, BackgroundSessionState as _r, FeishuCardActionToast as _s, loadNodeRivusPluginModule as _t, createDefaultAgentRuntime as _u, ConfiguredFeishuHumanInteractionPresenterOptions as a, createConfiguredFeishuCardKitTargetCreator as aa, RivusAgentDeploymentStatus as ac, AgentInstanceRegistryOptions as ad, FeishuPromptContextResolver as af, createFeishuDeploymentEndpoint as ai, isCardPresentationHandoffDue as al, CompactionService as an, restoreConfiguredRivusDaemonBootstrap as ao, PresentationStepStatus as ap, createBackgroundSessionHostTools as ar, FeishuAgentRuntime as as, LoadRivusDeploymentManifestOptions as at, DefaultAgentHarnessOptions as au, createRoutedHumanInteractionToolApprovalService as b, createFeishuCardPresentationStore as ba, AUTOMATION_SUPPRESSION_PREFIX as bc, ToolOperationLedger as bd, FeishuMessageIntakeOptions as bf, InvocationAuthorityRef as bi, FeishuMessageWorkerDrainAvailableResult as bl, ProjectSkillCatalogEntry as bn, FeishuTenantAccessTokenRequest as bo, AgentDomainEventSink as bp, claimBackgroundSession as br, FeishuRawCardJson as bs, loadRivusDeployment as bt, createSystemClock as bu, createFeishuHumanInteractionCard as c, FeishuCotProtocolError as ca, RivusAutomationDelivery as cc, AgentInstanceRecord as cd, FeishuCardActionCommand as cf, openJsonlRecoveryControl as ci, RivusDaemonProcess as cl, CompactionError as cn, createConfiguredFeishuCardRolloverRuntime as co, RunPresentation as cp, createBackgroundSessionRepository as cr, FeishuPeriodicFlushSupervisor as cs, CreateRivusDeploymentAutomationInput as ct, DefaultAgentRuntimeOptions as cu, createJsonlHumanInteractionRepository as d, FeishuCotRunPreparation as da, RivusBackgroundSessionsDeployment as dc, JsonlFeishuInboxRepositoryOptions as dd, FeishuResolveInteractionCommand as df, AuthorizationPolicyState as di, RivusDaemonWorkerLoop as dl, AgentContextBudgetExceeded as dn, FeishuOpenApiClient as do, ToolPresentationStep as dp, openJsonlBackgroundSessionDeliveryStore as dr, FeishuEventHandlers as ds, CreateRivusDeploymentEndpointInput as dt, createDefaultAgentHarness as du, FeishuCardKitOpenApiTargetCreatorOptions as ea, isBackgroundSessionToolId as ec, PooledAgentRuntime as ed, FeishuAgentMessageSideEffects as ef, RivusEndpointInput$1 as ei, CardPresentationChain as el, ScheduledAutomationOptions as en, ConfiguredRivusDaemonBootstrap as eo, FeishuStreamProjector as ep, DEFAULT_BACKGROUND_SESSION_SUPERVISOR_INTERVAL_MS as er, JsonlAgentEventLogOptions as es, UserDecisionInteractionState as et, DefaultAgentHarnessClientFromCallbackOptions as eu, JsonlHumanInteractionRepositoryOptions as f, createFeishuCotPublisher as fa, RivusDeploymentManifest as fc, openJsonlFeishuInboxRepository as fd, InvalidFeishuCardAction as ff, ToolApprovalRequest as fi, createRivusDaemonProcess as fl, AgentContextInput as fn, FeishuOpenApiError as fo, hasInspectableRunProgress as fp, createBackgroundSessionDeliveryStore as fr, FeishuEventHandlersOptions as fs, CreateRivusDeploymentRuntimeInput as ft, createDefaultAgentHarnessClient as fu, FeishuMessageReactionSender as g, FeishuCardKitOpenApiClientOptions as ga, RivusProjectSpaceDeployment as gc, createRecoveryControl as gd, FeishuCancelMessageIntakeSummary as gf, ToolExecutionRequest as gi, FeishuMessageWorker as gl, assembleAgentContext as gn, createFeishuOpenApiClient as go, ActiveAgentRun as gp, BackgroundSessionRepository as gr, FeishuCardActionCallbackResponse as gs, RivusDeploymentEndpoint as gt, createDefaultAgentHarnessFromTextCallback as gu, createConfiguredFeishuAutomationCardSender as h, createFeishuTopicContextResolver as ha, RivusPluginDeclaration as hc, RecoveryControlOptions as hd, FeishuAgentCommand as hf, ToolBrokerOptions as hi, createFeishuWorkerLoop as hl, AssembledAgentContext as hn, createConfiguredFeishuOpenApiClient as ho, createPresentedValue as hp, createBackgroundSessionService as hr, createFeishuEventHandlers as hs, RivusDeploymentDaemon as ht, createDefaultAgentHarnessFromCallback as hu, createFeishuAgentRunCard as i, FeishuCardTargetPreparationOptions as ia, ResolvedRivusProjectSpace as ic, AgentInstanceConflict as id, FeishuPromptContextInput as if, FeishuDeploymentEndpointOptions as ii, activeCardPresentation as il, createAutomationMandateStore as in, createConfiguredRivusDaemonBootstrap as io, PresentationStep as ip, CreateBackgroundSessionHostToolsOptions as ir, createAgentDomainEventSink as is, loadRivusDeploymentManifest as it, DefaultAgentHarnessFromTextCallbackOptions as iu, HumanInteractionRepository as j, PiAgentSessionEvent as ja, RivusDaemonShutdownControllerOptions as jc, FeishuInboxPendingState as jd, readFeishuMessageContent as jf, WorkspaceInstructionsSourceError as ji, FeishuMessageQueue as jl, RIVUS_MEMORY_TOOL_ID as jn, createInMemoryFeishuCardTargetRegistry as jo, AgentSessionAvailability as jp, requestBackgroundSessionStop as jr, RivusDeploymentBootstrapContext as js, DelegationGrant as jt, AgentRunUpdateCallback as ju, ResolveHumanInteractionInput as k, createPiSdkAgentLoop as ka, AutomationTick as kc, FeishuInboxDeliveryState as kd, InvalidFeishuMessageContent as kf, createWorkspaceRootHandle as ki, FeishuMessageDrainResult as kl, ProjectMemoryRecallOptions as kn, FeishuCardTargetRegistryStoreError as ko, AgentRunUpdateHandler as kp, releaseBackgroundSessionLease as kr, runRivusDaemonCli as ks, DelegationDenied as kt, AgentDomainEventCallback as ku, createFeishuHumanInteractionPresenter as l, FeishuCotPublisher as la, RivusAutomationDeliveryTargetType as lc, OpenJsonFeishuSessionStoreOptions as ld, FeishuCardActionIntakeError as lf, openJsonlToolOperationLedger as li, RivusDaemonProcessOptions as ll, CompactionSnapshot as ln, ConfiguredFeishuOpenApiRequest as lo, RunPresentationPhase as lp, openJsonlBackgroundSessionRepository as lr, FeishuEventHandlerCardActions as ls, CreateRivusDeploymentBackgroundSessionInput as lt, DefaultAgentRuntimeSessionOptions as lu, FeishuAutomationCardSender as m, InvalidFeishuTopicContext as ma, RivusEndpointExperimentalFeatures as mc, createRecoveryAction as md, createAgentCommandFromFeishuCardAction as mf, ToolBroker as mi, FeishuWorkerLoopOptions as ml, AgentContextLayerKind as mn, FeishuOpenApiResponse as mo, PresentedValueOptions as mp, isBackgroundSessionState as mr, FeishuSdkReceiveMessagePayload as ms, RivusDeploymentBackgroundSession as mt, createDefaultAgentHarnessClientFromTextCallback as mu, FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID as n, FeishuCardTargetCreateOptions as na, LoadedRivusDeployment as nc, AgentInstanceRegistry as nd, FeishuHumanInteractionActions as nf, FeishuPresentationPreparationOptions as ni, CardPresentationTransitionDenied as nl, AutomationTickRecord as nn, ConfiguredRivusDaemonBootstrapRequest as no, AssistantPresentationStep as np, extendBackgroundSessionDefinition as nr, AgentHistoryEventLog as ns, CreateConfiguredRivusDeploymentDaemonOptions as nt, DefaultAgentHarnessClientOptions as nu, FeishuHumanInteractionPresenterOptions as o, createFeishuCardKitOpenApiTargetCreator as oa, RivusPluginLoadStatus as oc, AgentInstanceBusy as od, composeFeishuTopicPrompt as of, createAgentHarnessPooledRuntime as oi, CompositeRivusDaemonTransportOptions as ol, CompactorPort as on, ConfiguredFeishuCardRolloverRuntime as oo, RUN_PRESENTATION_SCHEMA_VERSION as op, BackgroundSessionSupervisorOptions as or, FeishuAgentRuntimeOptions as os, RivusDeploymentManifestError as ot, DefaultAgentRuntimeFromCallbackOptions as ou, FeishuAutomationCardInput as p, FeishuTopicContextResolverOptions as pa, RivusEndpointDeployment as pc, InvalidRecoveryAction as pd, UnsupportedFeishuCardAction as pf, ToolApprovalService as pi, FeishuWorkerLoop as pl, AgentContextLayer as pn, FeishuOpenApiRequest as po, PresentedValue as pp, BACKGROUND_SESSION_JSONL_VERSION as pr, FeishuReceiveMessageHandlerPayload as ps, RivusDeploymentAutomation as pt, createDefaultAgentHarnessClientFromCallback as pu, RequestToolApprovalInput as q, LangfuseTelemetryContentMode as qa, FeishuCardRolloverOptions as qc, FeishuAgentDaemonOptions as qd, FeishuCardDeliveryLedgerStateOptions as qf, createConfiguredFeishuCardKitPublisher as qi, RivusDaemonConfigError as ql, DEFAULT_BACKGROUND_SESSION_LEASE_MS as qn, FeishuWebSocketEventDispatcher as qo, MemorySearchQuery as qr, RivusDeploymentDaemonLifecycleError as qs, OpenJsonAutomationTickRepositoryOptions as qt, SessionSchedulerStatus as qu, FeishuAgentRunCardInput as r, FeishuCardTargetCreator as ra, ResolvedRivusAutomationDefinition as rc, createAgentInstanceRegistry as rd, createFeishuAgentDaemon as rf, createFeishuPresentationPreparation as ri, acceptsCardPresentationProgress as rl, AutomationTickStatus as rn, ConfiguredRivusDaemonBootstrapResponse as ro, ModelPresentationStep as rp, narrowBackgroundSessionDefinition as rr, restoreAgentHistory as rs, createConfiguredRivusDeploymentDaemon as rt, DefaultAgentHarnessFromCallbackOptions as ru, createConfiguredFeishuHumanInteractionPresenter as s, createFeishuCardTargetPreparation as sa, RivusPluginModuleLoadRequest as sc, AgentRuntimeDisposed as sd, FeishuAgentRunPreparation as sf, JsonlRecoveryControlOptions as si, createCompositeRivusDaemonTransport as sl, createCompactionService as sn, ConfiguredFeishuCardRolloverRuntimeOptions as so, ResponsePresentationStep as sp, createBackgroundSessionSupervisor as sr, createFeishuAgentRuntime as ss, createRivusDeploymentDaemon as st, DefaultAgentRuntimeFromTextCallbackOptions as su, FEISHU_AGENT_CARD_ELEMENT_ID as t, FeishuCardPresentationBinder as ta, ProcessDeploymentEndpoint as tc, createAgentRuntimePool as td, FeishuAgentPreparedControl as tf, createRivusAgentHost as ti, CardPresentationStatus as tl, createScheduledAutomation as tn, ConfiguredRivusDaemonBootstrapOptions as to, createFeishuStreamProjector as tp, resolveBackgroundSessionSupervisorIntervalMs as tr, createJsonlAgentEventLog as ts, UserDecisionOption as tt, DefaultAgentHarnessClientFromTextCallbackOptions as tu, createInMemoryHumanInteractionRepository as u, FeishuCotPublisherOptions as ua, RivusAutomationDeployment as uc, openJsonFeishuSessionStore as ud, FeishuCardActionTriggerPayload as uf, AuthorizationPolicyProvider as ui, RivusDaemonTransport as ul, CompactionInput as un, ConfiguredFeishuOpenApiResponse as uo, SkillPresentationStep as up, BACKGROUND_SESSION_DELIVERY_JSONL_VERSION as ur, FeishuEventHandlerQueue as us, CreateRivusDeploymentDaemonOptions as ut, createAgentRuntime as uu, FeishuTextReplySender as v, FeishuCardPresentationNotFound as va, BackgroundSessionSupervisor as vc, ToolOperationBinding as vd, FeishuMessageIntakeBaseSummary as vf, ToolInvocationDenied as vi, FeishuMessageWorkerQueue as vl, InvalidProjectSkillCatalog as vn, FeishuTenantAccessTokenProvider as vo, AgentDomainEventHandler as vp, BackgroundSessionTransitionDenied as vr, createFeishuCardActionCallbackResponse as vs, LoadRivusDeploymentOptions as vt, createDefaultAgentRuntimeFromCallback as vu, createHumanInteractionEndpointRegistry as w, PiSessionRegistryOptions as wa, AutomationBinding as wc, ToolOperationState as wd, FeishuPromptAgentCommand as wf, InvalidStableJson as wi, FeishuReceiveMessageReplayResult as wl, InvalidRivusProjectSpace as wn, FeishuCardRolloverSupervisorOptions as wo, AgentHarnessError as wp, failBackgroundSessionStep as wr, RivusDaemonCliOptions as ws, SpawnSubagentRequest as wt, AgentClientSuccess as wu, createHumanInteractionModelChangeApproval as x, RunPresentationProjector as xa, ScheduledAutomationDeliveryInput as xc, ToolOperationReconciliation as xd, FeishuMessageIntakeSummary as xf, createInvocationAuthority as xi, FeishuReceiveAcceptedObservation as xl, validateProjectSkillCatalog as xn, FeishuTenantAccessTokenResponse as xo, AgentHarness as xp, completeBackgroundSessionStep as xr, RivusDaemonBootstrapContext as xs, RivusPluginLoadError as xt, createUuidRunIds as xu, createConfiguredFeishuTextReplySender as y, FeishuCardPresentationStoreOptions as ya, BackgroundSessionSupervisorStatus as yc, ToolOperationInspectResult as yd, FeishuMessageIntakeError as yf, InvocationAuthority as yi, createFeishuMessageWorker as yl, ProjectSkillCatalogDiagnostic as yn, FeishuTenantAccessTokenProviderOptions as yo, AgentDomainEventListener as yp, appendBackgroundSessionInput as yr, createFeishuCardActionErrorResponse as ys, RivusPluginModule as yt, createDefaultAgentRuntimeFromTextCallback as yu, HumanInteractionActor as z, createOpenTelemetryAgentEventSink as za, RivusDaemonStatusReporter as zc, RecoverySnapshot as zd, InvalidFeishuSessionReference as zf, resolveRivusAgentDefinition as zi, OpenClawEnvImportResult as zl, createMemoryNamespace as zn, FeishuCardKitPublisherOptions as zo, AgentEventHandlerFailed as zp, AgentMemoryIdentity as zr, RivusDeploymentBackgroundSessionReadinessError as zs, PluginStateStore as zt, JsonFetchRequestOptions as zu };
|