@rivus/agent 0.5.1 → 0.6.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/dist/acp.js +11 -1
- package/dist/cli.js +2 -1
- package/dist/index.d.ts +254 -32
- package/dist/index.js +429 -187
- package/dist/rivus-daemon-cli.js +333 -2
- package/examples/pi-feishu-deployment.bootstrap.ts +16 -12
- package/package.json +1 -1
package/dist/acp.js
CHANGED
|
@@ -312,7 +312,11 @@ function createAcpStdioAgentLoop(options) {
|
|
|
312
312
|
resolveSession: async (input) => {
|
|
313
313
|
const processConnection = await resolveConnection();
|
|
314
314
|
const current = processConnection.sessions.get(input.sessionKey);
|
|
315
|
-
if (current) return current;
|
|
315
|
+
if (current?.isReusable) return current;
|
|
316
|
+
if (current) {
|
|
317
|
+
current.dispose();
|
|
318
|
+
processConnection.sessions.delete(input.sessionKey);
|
|
319
|
+
}
|
|
316
320
|
const session = new SdkAcpAgentSession(await processConnection.connection.agent.buildSession(options.workingDirectory).start(), processConnection.connection.agent);
|
|
317
321
|
sessionKeys.set(session.sessionId, input.sessionKey);
|
|
318
322
|
processConnection.sessions.set(input.sessionKey, session);
|
|
@@ -324,6 +328,7 @@ function createAcpStdioAgentLoop(options) {
|
|
|
324
328
|
var SdkAcpAgentSession = class {
|
|
325
329
|
session;
|
|
326
330
|
agent;
|
|
331
|
+
reusable = true;
|
|
327
332
|
constructor(session, agent) {
|
|
328
333
|
this.session = session;
|
|
329
334
|
this.agent = agent;
|
|
@@ -331,10 +336,15 @@ var SdkAcpAgentSession = class {
|
|
|
331
336
|
get sessionId() {
|
|
332
337
|
return this.session.sessionId;
|
|
333
338
|
}
|
|
339
|
+
get isReusable() {
|
|
340
|
+
return this.reusable;
|
|
341
|
+
}
|
|
334
342
|
cancel() {
|
|
343
|
+
this.reusable = false;
|
|
335
344
|
return this.agent.notify(acp.methods.agent.session.cancel, { sessionId: this.session.sessionId });
|
|
336
345
|
}
|
|
337
346
|
dispose() {
|
|
347
|
+
this.reusable = false;
|
|
338
348
|
this.session.dispose();
|
|
339
349
|
}
|
|
340
350
|
async prompt(text, onUpdate) {
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { D as loadRivusDeploymentManifest, G as validateRivusDeploymentManifest, H as loadMergedLocalEnvFile, T as resolveNodeRivusPluginModulePath, V as resolveFeishuEndpointCredentials, t as runRivusDaemonCli } from "./rivus-daemon-cli.js";
|
|
3
3
|
import { Effect } from "effect";
|
|
4
4
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
5
|
import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
@@ -336,6 +336,7 @@ function deploymentManifest() {
|
|
|
336
336
|
endpoints: [{
|
|
337
337
|
agentId: "agent-a",
|
|
338
338
|
baseUrl: "https://open.feishu.cn",
|
|
339
|
+
cardStreamLeaseMs: 51e4,
|
|
339
340
|
credentialRef: "env:RIVUS_FEISHU",
|
|
340
341
|
enabled: true,
|
|
341
342
|
experimental: { cotMessages: false },
|
package/dist/index.d.ts
CHANGED
|
@@ -218,6 +218,9 @@ type FeishuStreamAction = {
|
|
|
218
218
|
readonly type: "update_text";
|
|
219
219
|
readonly runId: AgentRunId;
|
|
220
220
|
readonly text: string;
|
|
221
|
+
} | {
|
|
222
|
+
readonly type: "handoff";
|
|
223
|
+
readonly runId: AgentRunId;
|
|
221
224
|
} | {
|
|
222
225
|
readonly type: "finish";
|
|
223
226
|
readonly runId: AgentRunId;
|
|
@@ -1184,6 +1187,7 @@ interface RivusDaemonConfig {
|
|
|
1184
1187
|
readonly appId: string;
|
|
1185
1188
|
readonly appSecret: string;
|
|
1186
1189
|
readonly baseUrl: string;
|
|
1190
|
+
readonly cardStreamLeaseMs: number;
|
|
1187
1191
|
readonly streamMinIntervalMs: number;
|
|
1188
1192
|
};
|
|
1189
1193
|
readonly pi: {
|
|
@@ -1291,6 +1295,13 @@ interface FeishuMessageWorkerOptions {
|
|
|
1291
1295
|
}
|
|
1292
1296
|
declare function createFeishuMessageWorker(options: FeishuMessageWorkerOptions): FeishuMessageWorker;
|
|
1293
1297
|
//#endregion
|
|
1298
|
+
//#region src/application/support/periodic-effect-loop.d.ts
|
|
1299
|
+
interface PeriodicEffectLoop {
|
|
1300
|
+
running(): boolean;
|
|
1301
|
+
start(): void;
|
|
1302
|
+
stop(): Promise<void>;
|
|
1303
|
+
}
|
|
1304
|
+
//#endregion
|
|
1294
1305
|
//#region src/application/feishu/feishu-worker-loop.d.ts
|
|
1295
1306
|
interface FeishuWorkerLoopOptions {
|
|
1296
1307
|
readonly drainAvailable: () => Effect.Effect<unknown, unknown>;
|
|
@@ -1298,11 +1309,7 @@ interface FeishuWorkerLoopOptions {
|
|
|
1298
1309
|
readonly onError?: (error: unknown) => void | Promise<void>;
|
|
1299
1310
|
readonly sleep: (ms: number) => Effect.Effect<void, unknown>;
|
|
1300
1311
|
}
|
|
1301
|
-
|
|
1302
|
-
running(): boolean;
|
|
1303
|
-
start(): void;
|
|
1304
|
-
stop(): Promise<void>;
|
|
1305
|
-
}
|
|
1312
|
+
type FeishuWorkerLoop = PeriodicEffectLoop;
|
|
1306
1313
|
declare function createFeishuWorkerLoop(options: FeishuWorkerLoopOptions): FeishuWorkerLoop;
|
|
1307
1314
|
//#endregion
|
|
1308
1315
|
//#region src/application/daemon/rivus-daemon-process.d.ts
|
|
@@ -1333,6 +1340,157 @@ interface CompositeRivusDaemonTransportOptions {
|
|
|
1333
1340
|
}
|
|
1334
1341
|
declare function createCompositeRivusDaemonTransport(options: CompositeRivusDaemonTransportOptions): RivusDaemonTransport;
|
|
1335
1342
|
//#endregion
|
|
1343
|
+
//#region src/domain/card-presentation.d.ts
|
|
1344
|
+
type CardPresentationStatus = "streaming" | "handoff-pending" | "active" | "closed" | "terminal";
|
|
1345
|
+
interface CardPresentation {
|
|
1346
|
+
readonly runId: string;
|
|
1347
|
+
readonly presentationId: string;
|
|
1348
|
+
readonly generation: number;
|
|
1349
|
+
readonly cardId: string;
|
|
1350
|
+
readonly elementId?: string;
|
|
1351
|
+
readonly sourceMessageId: string;
|
|
1352
|
+
readonly status: CardPresentationStatus;
|
|
1353
|
+
readonly createdAt: string;
|
|
1354
|
+
readonly leaseDeadlineAt: string;
|
|
1355
|
+
readonly handoffAt?: string;
|
|
1356
|
+
readonly handoffFailedAt?: string;
|
|
1357
|
+
readonly predecessorPresentationId?: string;
|
|
1358
|
+
readonly successorPresentationId?: string;
|
|
1359
|
+
readonly terminalReceiptId?: string;
|
|
1360
|
+
}
|
|
1361
|
+
interface CardPresentationChain {
|
|
1362
|
+
readonly runId: string;
|
|
1363
|
+
readonly activeGeneration: number;
|
|
1364
|
+
readonly activePresentationId: string;
|
|
1365
|
+
readonly presentations: ReadonlyArray<CardPresentation>;
|
|
1366
|
+
readonly revision: number;
|
|
1367
|
+
}
|
|
1368
|
+
interface CardPresentationBinding {
|
|
1369
|
+
readonly cardId: string;
|
|
1370
|
+
readonly createdAt: string;
|
|
1371
|
+
readonly elementId?: string;
|
|
1372
|
+
readonly leaseDeadlineAt: string;
|
|
1373
|
+
readonly presentationId: string;
|
|
1374
|
+
readonly runId: string;
|
|
1375
|
+
readonly sourceMessageId: string;
|
|
1376
|
+
}
|
|
1377
|
+
interface CardPresentationSuccessor {
|
|
1378
|
+
readonly cardId: string;
|
|
1379
|
+
readonly createdAt: string;
|
|
1380
|
+
readonly elementId?: string;
|
|
1381
|
+
readonly leaseDeadlineAt: string;
|
|
1382
|
+
readonly presentationId: string;
|
|
1383
|
+
}
|
|
1384
|
+
declare class CardPresentationTransitionDenied extends Error {
|
|
1385
|
+
readonly name = "CardPresentationTransitionDenied";
|
|
1386
|
+
}
|
|
1387
|
+
declare function activeCardPresentation(chain: CardPresentationChain): CardPresentation;
|
|
1388
|
+
declare function acceptsCardPresentationProgress(chain: CardPresentationChain): boolean;
|
|
1389
|
+
declare function isCardPresentationHandoffDue(chain: CardPresentationChain, now: string): boolean;
|
|
1390
|
+
//#endregion
|
|
1391
|
+
//#region src/application/feishu/feishu-card-presentation-store.d.ts
|
|
1392
|
+
declare class FeishuCardPresentationNotFound {
|
|
1393
|
+
readonly runId: string;
|
|
1394
|
+
readonly _tag = "FeishuCardPresentationNotFound";
|
|
1395
|
+
constructor(runId: string);
|
|
1396
|
+
}
|
|
1397
|
+
interface FeishuCardPresentationHandoffStart {
|
|
1398
|
+
readonly presentation: CardPresentation;
|
|
1399
|
+
readonly started: boolean;
|
|
1400
|
+
}
|
|
1401
|
+
interface FeishuCardPresentationStore {
|
|
1402
|
+
bind(binding: CardPresentationBinding): Effect.Effect<CardPresentation, unknown>;
|
|
1403
|
+
beginHandoff(input: {
|
|
1404
|
+
readonly handoffAt: string;
|
|
1405
|
+
readonly runId: string;
|
|
1406
|
+
}): Effect.Effect<FeishuCardPresentationHandoffStart, unknown>;
|
|
1407
|
+
chain(runId: string): CardPresentationChain | undefined;
|
|
1408
|
+
chains(): ReadonlyArray<CardPresentationChain>;
|
|
1409
|
+
compensateInterruptedHandoffs(compensatedAt: string): Effect.Effect<ReadonlyArray<CardPresentationChain>, unknown>;
|
|
1410
|
+
completeHandoff(input: {
|
|
1411
|
+
readonly runId: string;
|
|
1412
|
+
readonly successor: CardPresentationSuccessor;
|
|
1413
|
+
}): Effect.Effect<CardPresentation, unknown>;
|
|
1414
|
+
failHandoff(input: {
|
|
1415
|
+
readonly failedAt: string;
|
|
1416
|
+
readonly runId: string;
|
|
1417
|
+
}): Effect.Effect<void, unknown>;
|
|
1418
|
+
markTerminal(input: {
|
|
1419
|
+
readonly runId: string;
|
|
1420
|
+
readonly terminalReceiptId: string;
|
|
1421
|
+
}): Effect.Effect<void, unknown>;
|
|
1422
|
+
release(runId: string): Effect.Effect<void, unknown>;
|
|
1423
|
+
size(): number;
|
|
1424
|
+
}
|
|
1425
|
+
interface FeishuCardPresentationStoreOptions {
|
|
1426
|
+
readonly initial?: ReadonlyArray<CardPresentationChain>;
|
|
1427
|
+
readonly persist?: (chains: ReadonlyArray<CardPresentationChain>) => Promise<void>;
|
|
1428
|
+
}
|
|
1429
|
+
declare function createFeishuCardPresentationStore(options?: FeishuCardPresentationStoreOptions): FeishuCardPresentationStore;
|
|
1430
|
+
//#endregion
|
|
1431
|
+
//#region src/application/feishu/feishu-card-rollover.d.ts
|
|
1432
|
+
declare const DEFAULT_CARD_STREAM_LEASE_MS = 510000;
|
|
1433
|
+
interface FeishuCardRolloverTarget {
|
|
1434
|
+
readonly cardId: string;
|
|
1435
|
+
readonly elementId?: string;
|
|
1436
|
+
}
|
|
1437
|
+
interface FeishuCardRolloverSuccessorRequest {
|
|
1438
|
+
readonly generation: number;
|
|
1439
|
+
readonly presentationId: string;
|
|
1440
|
+
readonly run: FeishuAgentRunPreparation;
|
|
1441
|
+
}
|
|
1442
|
+
interface FeishuCardRolloverStreamPublisher {
|
|
1443
|
+
flush(runId?: string): Effect.Effect<void, unknown>;
|
|
1444
|
+
publish(action: FeishuStreamAction): Effect.Effect<void, unknown>;
|
|
1445
|
+
}
|
|
1446
|
+
type FeishuCardRolloverEventType = "handoff_started" | "handoff_succeeded" | "handoff_failed" | "handoff_notice_failed" | "presentation_write_failed" | "stale_update_dropped" | "stream_closed" | "terminal_delivery_failed";
|
|
1447
|
+
interface FeishuCardRolloverEvent {
|
|
1448
|
+
readonly at?: string;
|
|
1449
|
+
readonly cardId?: string;
|
|
1450
|
+
readonly error?: unknown;
|
|
1451
|
+
readonly generation?: number;
|
|
1452
|
+
readonly presentationId?: string;
|
|
1453
|
+
readonly runId?: string;
|
|
1454
|
+
readonly sourceMessageId?: string;
|
|
1455
|
+
readonly successorCardId?: string;
|
|
1456
|
+
readonly type: FeishuCardRolloverEventType;
|
|
1457
|
+
}
|
|
1458
|
+
type FeishuCardRolloverCounters = Readonly<Record<FeishuCardRolloverEventType, number>>;
|
|
1459
|
+
interface FeishuCardRolloverStatus {
|
|
1460
|
+
readonly counters: FeishuCardRolloverCounters;
|
|
1461
|
+
readonly leaseMs: number;
|
|
1462
|
+
readonly live: ReadonlyArray<CardPresentation>;
|
|
1463
|
+
}
|
|
1464
|
+
type FeishuCardRolloverHandoffResult = {
|
|
1465
|
+
readonly presentation: CardPresentation;
|
|
1466
|
+
readonly status: "rolled-over";
|
|
1467
|
+
} | {
|
|
1468
|
+
readonly reason: "already-pending" | "not-due" | "not-live" | "not-streaming";
|
|
1469
|
+
readonly status: "skipped";
|
|
1470
|
+
} | {
|
|
1471
|
+
readonly error: unknown;
|
|
1472
|
+
readonly status: "failed";
|
|
1473
|
+
};
|
|
1474
|
+
interface FeishuCardRolloverOptions {
|
|
1475
|
+
readonly clock: AgentClock;
|
|
1476
|
+
readonly createSuccessor: (request: FeishuCardRolloverSuccessorRequest) => Effect.Effect<FeishuCardRolloverTarget, unknown>;
|
|
1477
|
+
readonly leaseMs?: number;
|
|
1478
|
+
readonly observe?: (event: FeishuCardRolloverEvent) => void;
|
|
1479
|
+
readonly publisher: FeishuCardRolloverStreamPublisher;
|
|
1480
|
+
readonly store: FeishuCardPresentationStore;
|
|
1481
|
+
}
|
|
1482
|
+
interface FeishuCardRollover extends FeishuCardRolloverStreamPublisher {
|
|
1483
|
+
bindRun(run: FeishuAgentRunPreparation, target: FeishuCardRolloverTarget): Effect.Effect<CardPresentation, unknown>;
|
|
1484
|
+
dueRunIds(now: Date): ReadonlyArray<string>;
|
|
1485
|
+
handoff(runId: string): Effect.Effect<FeishuCardRolloverHandoffResult, unknown>;
|
|
1486
|
+
observeStreamClosed(cardId: string): void;
|
|
1487
|
+
recover(): Effect.Effect<{
|
|
1488
|
+
readonly compensated: number;
|
|
1489
|
+
}, unknown>;
|
|
1490
|
+
status(): FeishuCardRolloverStatus;
|
|
1491
|
+
}
|
|
1492
|
+
declare function createFeishuCardRollover(options: FeishuCardRolloverOptions): FeishuCardRollover;
|
|
1493
|
+
//#endregion
|
|
1336
1494
|
//#region src/application/feishu/feishu-receive-status.d.ts
|
|
1337
1495
|
type FeishuReceiveMessageReplayOptions = FeishuAgentDaemonHandleMessageOptions;
|
|
1338
1496
|
interface FeishuReceiveMessageSummary {
|
|
@@ -1365,6 +1523,7 @@ interface FeishuReceiveMessageReplayResult {
|
|
|
1365
1523
|
//#region src/application/daemon/rivus-daemon-status.d.ts
|
|
1366
1524
|
interface RivusDaemonStatus {
|
|
1367
1525
|
readonly agentId: string;
|
|
1526
|
+
readonly cards?: FeishuCardRolloverStatus;
|
|
1368
1527
|
readonly harness: {
|
|
1369
1528
|
readonly activeRunId?: AgentRunId;
|
|
1370
1529
|
readonly activeRunState?: AgentRunState;
|
|
@@ -1391,6 +1550,7 @@ interface RivusDaemonStatusReporter {
|
|
|
1391
1550
|
}
|
|
1392
1551
|
interface RivusDaemonStatusReporterOptions {
|
|
1393
1552
|
readonly activeRun?: () => ActiveAgentRun | undefined;
|
|
1553
|
+
readonly cardPresentations?: () => FeishuCardRolloverStatus;
|
|
1394
1554
|
readonly activeRunId?: () => AgentRunId | undefined;
|
|
1395
1555
|
readonly activeRunState?: () => AgentRunState | undefined;
|
|
1396
1556
|
readonly agentId: string;
|
|
@@ -1523,6 +1683,7 @@ interface RivusEndpointDeployment {
|
|
|
1523
1683
|
readonly experimental?: RivusEndpointExperimentalFeatures;
|
|
1524
1684
|
readonly required: boolean;
|
|
1525
1685
|
readonly baseUrl: string;
|
|
1686
|
+
readonly cardStreamLeaseMs: number;
|
|
1526
1687
|
readonly streamMinIntervalMs: number;
|
|
1527
1688
|
readonly groupPolicy: "mention-only" | "ignore-unmentioned" | "default-responder";
|
|
1528
1689
|
}
|
|
@@ -2001,8 +2162,13 @@ interface FeishuCardKitCancel {
|
|
|
2001
2162
|
readonly reason?: string;
|
|
2002
2163
|
readonly sequence: number;
|
|
2003
2164
|
}
|
|
2165
|
+
interface FeishuCardKitHandoff {
|
|
2166
|
+
readonly cardId: string;
|
|
2167
|
+
readonly sequence: number;
|
|
2168
|
+
}
|
|
2004
2169
|
interface FeishuCardKitClient {
|
|
2005
2170
|
cancel(request: FeishuCardKitCancel): Effect.Effect<void, unknown>;
|
|
2171
|
+
handoff(request: FeishuCardKitHandoff): Effect.Effect<void, unknown>;
|
|
2006
2172
|
updateText(request: FeishuCardKitTextUpdate): Effect.Effect<void, unknown>;
|
|
2007
2173
|
finish(request: FeishuCardKitFinish): Effect.Effect<void, unknown>;
|
|
2008
2174
|
fail(request: FeishuCardKitFail): Effect.Effect<void, unknown>;
|
|
@@ -2030,37 +2196,34 @@ declare class FeishuCardTargetRegistryStoreError {
|
|
|
2030
2196
|
readonly _tag = "FeishuCardTargetRegistryStoreError";
|
|
2031
2197
|
constructor(operation: FeishuCardTargetRegistryOperation, cause: unknown);
|
|
2032
2198
|
}
|
|
2033
|
-
interface FeishuCardTargetRegistry {
|
|
2034
|
-
|
|
2035
|
-
release(runId: AgentRunId): Effect.Effect<void, FeishuCardTargetRegistryStoreError>;
|
|
2036
|
-
resolveTarget(runId: AgentRunId): Effect.Effect<FeishuCardTarget, FeishuCardTargetNotFound | FeishuCardTargetRegistryStoreError>;
|
|
2037
|
-
size(): number;
|
|
2199
|
+
interface FeishuCardTargetRegistry extends FeishuCardPresentationStore {
|
|
2200
|
+
resolveTarget(runId: AgentRunId): Effect.Effect<FeishuCardTarget, unknown>;
|
|
2038
2201
|
}
|
|
2039
2202
|
interface JsonFileFeishuCardTargetRegistryOptions {
|
|
2040
2203
|
readonly filePath: string;
|
|
2041
2204
|
}
|
|
2042
|
-
declare function createInMemoryFeishuCardTargetRegistry(): FeishuCardTargetRegistry;
|
|
2205
|
+
declare function createInMemoryFeishuCardTargetRegistry(initial?: ReadonlyArray<CardPresentationChain>): FeishuCardTargetRegistry;
|
|
2043
2206
|
declare function createJsonFileFeishuCardTargetRegistry(options: JsonFileFeishuCardTargetRegistryOptions): FeishuCardTargetRegistry;
|
|
2044
2207
|
//#endregion
|
|
2045
|
-
//#region src/
|
|
2046
|
-
interface
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
readonly
|
|
2051
|
-
readonly minIntervalMs: number;
|
|
2208
|
+
//#region src/application/feishu/feishu-card-rollover-supervisor.d.ts
|
|
2209
|
+
interface FeishuCardRolloverSupervisorOptions {
|
|
2210
|
+
readonly clock: AgentClock;
|
|
2211
|
+
readonly intervalMs?: number;
|
|
2212
|
+
readonly onError?: (error: unknown) => void | Promise<void>;
|
|
2213
|
+
readonly rollover: Pick<FeishuCardRollover, "dueRunIds" | "handoff" | "recover">;
|
|
2052
2214
|
readonly sleep: (ms: number) => Effect.Effect<void, unknown>;
|
|
2053
2215
|
}
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
//#region src/infrastructure/feishu/feishu-coalescing-publisher.d.ts
|
|
2057
|
-
interface FeishuCoalescingPublisher extends FeishuStreamActionPublisher {
|
|
2058
|
-
flush(runId?: AgentRunId): Effect.Effect<void, unknown>;
|
|
2216
|
+
interface FeishuCardRolloverSupervisorTickResult {
|
|
2217
|
+
readonly results: ReadonlyArray<FeishuCardRolloverHandoffResult>;
|
|
2059
2218
|
}
|
|
2060
|
-
interface
|
|
2061
|
-
|
|
2219
|
+
interface FeishuCardRolloverSupervisor {
|
|
2220
|
+
recover(): Effect.Effect<void, unknown>;
|
|
2221
|
+
running(): boolean;
|
|
2222
|
+
start(): void;
|
|
2223
|
+
stop(): Promise<void>;
|
|
2224
|
+
tick(): Effect.Effect<FeishuCardRolloverSupervisorTickResult, unknown>;
|
|
2062
2225
|
}
|
|
2063
|
-
declare function
|
|
2226
|
+
declare function createFeishuCardRolloverSupervisor(options: FeishuCardRolloverSupervisorOptions): FeishuCardRolloverSupervisor;
|
|
2064
2227
|
//#endregion
|
|
2065
2228
|
//#region src/infrastructure/feishu/feishu-tenant-token-provider.d.ts
|
|
2066
2229
|
interface FeishuTenantAccessTokenRequest {
|
|
@@ -2137,6 +2300,30 @@ declare function createConfiguredFeishuOpenApiClient(options: {
|
|
|
2137
2300
|
readonly request: (request: ConfiguredFeishuOpenApiRequest) => Effect.Effect<ConfiguredFeishuOpenApiResponse, unknown>;
|
|
2138
2301
|
}): FeishuOpenApiClient;
|
|
2139
2302
|
//#endregion
|
|
2303
|
+
//#region src/composition/feishu-card-rollover-runtime.d.ts
|
|
2304
|
+
interface ConfiguredFeishuCardRolloverRuntimeOptions {
|
|
2305
|
+
readonly agentName?: string;
|
|
2306
|
+
readonly cardTargets: FeishuCardTargetRegistry;
|
|
2307
|
+
readonly client: FeishuOpenApiClient;
|
|
2308
|
+
readonly clock: AgentClock;
|
|
2309
|
+
readonly config: RivusDaemonConfig;
|
|
2310
|
+
readonly elementId?: string;
|
|
2311
|
+
readonly initialContent?: string;
|
|
2312
|
+
readonly ledger?: FeishuCardDeliveryLedger;
|
|
2313
|
+
readonly observe?: (event: FeishuCardRolloverEvent) => void;
|
|
2314
|
+
readonly onError?: (error: unknown) => void | Promise<void>;
|
|
2315
|
+
readonly sleep: (ms: number) => Effect.Effect<void, unknown>;
|
|
2316
|
+
readonly supervisorIntervalMs?: number;
|
|
2317
|
+
readonly title?: string;
|
|
2318
|
+
}
|
|
2319
|
+
interface ConfiguredFeishuCardRolloverRuntime {
|
|
2320
|
+
readonly rollover: FeishuCardRollover;
|
|
2321
|
+
readonly supervisor: FeishuCardRolloverSupervisor;
|
|
2322
|
+
readonly transport: RivusDaemonTransport;
|
|
2323
|
+
prepareRun(run: FeishuAgentRunPreparation): Effect.Effect<void, unknown>;
|
|
2324
|
+
}
|
|
2325
|
+
declare function createConfiguredFeishuCardRolloverRuntime(options: ConfiguredFeishuCardRolloverRuntimeOptions): ConfiguredFeishuCardRolloverRuntime;
|
|
2326
|
+
//#endregion
|
|
2140
2327
|
//#region src/infrastructure/persistence/jsonl-agent-event-log.d.ts
|
|
2141
2328
|
type AgentEventLogOperation = "append" | "read";
|
|
2142
2329
|
declare class AgentEventLogStoreError {
|
|
@@ -2160,6 +2347,8 @@ type ConfiguredRivusDaemonBootstrapRequest = ConfiguredFeishuOpenApiRequest;
|
|
|
2160
2347
|
type ConfiguredRivusDaemonBootstrapResponse = ConfiguredFeishuOpenApiResponse;
|
|
2161
2348
|
interface ConfiguredRivusDaemonBootstrapOptions {
|
|
2162
2349
|
readonly botOpenId?: string;
|
|
2350
|
+
readonly cardLedger?: FeishuCardDeliveryLedger;
|
|
2351
|
+
readonly cardRolloverIntervalMs?: number;
|
|
2163
2352
|
readonly cardTargets: FeishuCardTargetRegistry;
|
|
2164
2353
|
readonly clock: AgentClock;
|
|
2165
2354
|
readonly config: RivusDaemonConfig;
|
|
@@ -2171,6 +2360,7 @@ interface ConfiguredRivusDaemonBootstrapOptions {
|
|
|
2171
2360
|
readonly initialRunStates?: ReadonlyArray<AgentRunState>;
|
|
2172
2361
|
readonly inboxRepository?: FeishuInboxRepository;
|
|
2173
2362
|
readonly loop: AgentLoop;
|
|
2363
|
+
readonly observeCardRollover?: (event: FeishuCardRolloverEvent) => void;
|
|
2174
2364
|
readonly onWorkerError?: (error: unknown) => void | Promise<void>;
|
|
2175
2365
|
readonly request: (request: ConfiguredRivusDaemonBootstrapRequest) => Effect.Effect<ConfiguredRivusDaemonBootstrapResponse, unknown>;
|
|
2176
2366
|
readonly runIds: RunIdGenerator;
|
|
@@ -2180,10 +2370,11 @@ interface ConfiguredRivusDaemonBootstrapOptions {
|
|
|
2180
2370
|
readonly workerIntervalMs?: number;
|
|
2181
2371
|
}
|
|
2182
2372
|
interface ConfiguredRivusDaemonBootstrap {
|
|
2373
|
+
readonly cardRollover: ConfiguredFeishuCardRolloverRuntime;
|
|
2183
2374
|
readonly cardTargets: FeishuCardTargetRegistry;
|
|
2184
2375
|
readonly eventLog: AgentEventLog;
|
|
2185
2376
|
readonly process: RivusDaemonProcess;
|
|
2186
|
-
readonly publisher:
|
|
2377
|
+
readonly publisher: FeishuCardRollover;
|
|
2187
2378
|
readonly runtime: FeishuAgentRuntime;
|
|
2188
2379
|
readonly statusReporter: RivusDaemonStatusReporter;
|
|
2189
2380
|
readonly transport: RivusDaemonTransport;
|
|
@@ -2366,6 +2557,7 @@ interface FeishuCardKitOpenApiClientOptions {
|
|
|
2366
2557
|
readonly agentName?: string;
|
|
2367
2558
|
readonly baseUrl?: string;
|
|
2368
2559
|
readonly client: FeishuOpenApiClient;
|
|
2560
|
+
readonly onStreamingClosed?: (cardId: string) => void;
|
|
2369
2561
|
}
|
|
2370
2562
|
declare function createFeishuCardKitOpenApiClient(options: FeishuCardKitOpenApiClientOptions): FeishuCardKitClient;
|
|
2371
2563
|
//#endregion
|
|
@@ -2388,12 +2580,18 @@ declare class FeishuCotProtocolError extends Error {
|
|
|
2388
2580
|
declare function createFeishuCotPublisher(options: FeishuCotPublisherOptions): FeishuCotPublisher;
|
|
2389
2581
|
//#endregion
|
|
2390
2582
|
//#region src/infrastructure/feishu/feishu-cardkit-target-preparation.d.ts
|
|
2583
|
+
interface FeishuCardTargetCreateOptions {
|
|
2584
|
+
readonly generation?: number;
|
|
2585
|
+
}
|
|
2391
2586
|
interface FeishuCardTargetCreator {
|
|
2392
|
-
createTarget(run: FeishuAgentRunPreparation): Effect.Effect<FeishuCardTarget, unknown>;
|
|
2587
|
+
createTarget(run: FeishuAgentRunPreparation, options?: FeishuCardTargetCreateOptions): Effect.Effect<FeishuCardTarget, unknown>;
|
|
2588
|
+
}
|
|
2589
|
+
interface FeishuCardPresentationBinder {
|
|
2590
|
+
bindRun(run: FeishuAgentRunPreparation, target: FeishuCardTarget): Effect.Effect<unknown, unknown>;
|
|
2393
2591
|
}
|
|
2394
2592
|
interface FeishuCardTargetPreparationOptions {
|
|
2395
2593
|
readonly createTarget: (run: FeishuAgentRunPreparation) => Effect.Effect<FeishuCardTarget, unknown>;
|
|
2396
|
-
readonly
|
|
2594
|
+
readonly presentations: FeishuCardPresentationBinder;
|
|
2397
2595
|
}
|
|
2398
2596
|
interface FeishuCardKitOpenApiTargetCreatorOptions {
|
|
2399
2597
|
readonly baseUrl?: string;
|
|
@@ -2407,19 +2605,41 @@ interface ConfiguredFeishuCardKitTargetPreparationOptions {
|
|
|
2407
2605
|
readonly config: RivusDaemonConfig;
|
|
2408
2606
|
readonly elementId?: string;
|
|
2409
2607
|
readonly initialContent?: string;
|
|
2410
|
-
readonly
|
|
2608
|
+
readonly presentations: FeishuCardPresentationBinder;
|
|
2411
2609
|
readonly title?: string;
|
|
2412
2610
|
}
|
|
2413
2611
|
declare function createFeishuCardTargetPreparation(options: FeishuCardTargetPreparationOptions): (run: FeishuAgentRunPreparation) => Effect.Effect<void, unknown>;
|
|
2414
2612
|
declare function createConfiguredFeishuCardKitTargetPreparation(options: ConfiguredFeishuCardKitTargetPreparationOptions): (run: FeishuAgentRunPreparation) => Effect.Effect<void, unknown>;
|
|
2613
|
+
declare function createConfiguredFeishuCardKitTargetCreator(options: Omit<ConfiguredFeishuCardKitTargetPreparationOptions, "presentations">): FeishuCardTargetCreator;
|
|
2415
2614
|
declare function createFeishuCardKitOpenApiTargetCreator(options: FeishuCardKitOpenApiTargetCreatorOptions): FeishuCardTargetCreator;
|
|
2416
2615
|
//#endregion
|
|
2616
|
+
//#region src/infrastructure/feishu/feishu-rate-limited-publisher.d.ts
|
|
2617
|
+
interface FeishuStreamActionPublisher {
|
|
2618
|
+
publish(action: FeishuStreamAction): Effect.Effect<void, unknown>;
|
|
2619
|
+
}
|
|
2620
|
+
interface RateLimitedFeishuPublisherOptions {
|
|
2621
|
+
readonly publisher: FeishuStreamActionPublisher;
|
|
2622
|
+
readonly minIntervalMs: number;
|
|
2623
|
+
readonly sleep: (ms: number) => Effect.Effect<void, unknown>;
|
|
2624
|
+
}
|
|
2625
|
+
declare function createRateLimitedFeishuPublisher(options: RateLimitedFeishuPublisherOptions): FeishuStreamActionPublisher;
|
|
2626
|
+
//#endregion
|
|
2627
|
+
//#region src/infrastructure/feishu/feishu-coalescing-publisher.d.ts
|
|
2628
|
+
interface FeishuCoalescingPublisher extends FeishuStreamActionPublisher {
|
|
2629
|
+
flush(runId?: AgentRunId): Effect.Effect<void, unknown>;
|
|
2630
|
+
}
|
|
2631
|
+
interface FeishuCoalescingPublisherOptions {
|
|
2632
|
+
readonly publisher: FeishuStreamActionPublisher;
|
|
2633
|
+
}
|
|
2634
|
+
declare function createCoalescingFeishuPublisher(options: FeishuCoalescingPublisherOptions): FeishuCoalescingPublisher;
|
|
2635
|
+
//#endregion
|
|
2417
2636
|
//#region src/infrastructure/feishu/feishu-configured-cardkit-publisher.d.ts
|
|
2418
2637
|
interface ConfiguredFeishuCardKitPublisherOptions {
|
|
2419
2638
|
readonly agentName?: string;
|
|
2420
2639
|
readonly client: FeishuOpenApiClient;
|
|
2421
2640
|
readonly config: RivusDaemonConfig;
|
|
2422
2641
|
readonly ledger?: FeishuCardDeliveryLedger;
|
|
2642
|
+
readonly onStreamingClosed?: (cardId: string) => void;
|
|
2423
2643
|
readonly resolveTarget: (runId: AgentRunId) => Effect.Effect<FeishuCardTarget, unknown>;
|
|
2424
2644
|
readonly sleep: (ms: number) => Effect.Effect<void, unknown>;
|
|
2425
2645
|
}
|
|
@@ -2582,6 +2802,7 @@ declare function createAgentHarnessPooledRuntime(harness: AgentHarness): PooledA
|
|
|
2582
2802
|
//#region src/composition/feishu-deployment-endpoint.d.ts
|
|
2583
2803
|
interface FeishuDeploymentEndpointOptions extends Pick<CreateRivusDeploymentEndpointInput, "agentId" | "cancel" | "handle"> {
|
|
2584
2804
|
readonly botOpenId: string;
|
|
2805
|
+
readonly cardRollover?: RivusDaemonTransport;
|
|
2585
2806
|
readonly endpointId?: string;
|
|
2586
2807
|
readonly eventDispatcher: FeishuWebSocketEventDispatcher;
|
|
2587
2808
|
readonly groupPolicy: FeishuEndpointGroupPolicy;
|
|
@@ -3067,6 +3288,7 @@ declare function createJsonlHumanInteractionRepository(options: JsonlHumanIntera
|
|
|
3067
3288
|
type FeishuAgentRunCardInput = {
|
|
3068
3289
|
readonly agentName: string;
|
|
3069
3290
|
readonly elementId?: string;
|
|
3291
|
+
readonly generation?: number;
|
|
3070
3292
|
readonly runId: string;
|
|
3071
3293
|
readonly sessionKey: string;
|
|
3072
3294
|
readonly status: "running";
|
|
@@ -3077,7 +3299,7 @@ type FeishuAgentRunCardInput = {
|
|
|
3077
3299
|
readonly text: string;
|
|
3078
3300
|
} | {
|
|
3079
3301
|
readonly agentName: string;
|
|
3080
|
-
readonly status: "cancelled" | "failed";
|
|
3302
|
+
readonly status: "cancelled" | "failed" | "handoff";
|
|
3081
3303
|
};
|
|
3082
3304
|
declare function createFeishuAgentRunCard(input: FeishuAgentRunCardInput): FeishuRawCardJson;
|
|
3083
3305
|
//#endregion
|
|
@@ -3095,4 +3317,4 @@ interface ConfiguredFeishuHumanInteractionPresenterOptions {
|
|
|
3095
3317
|
}
|
|
3096
3318
|
declare function createConfiguredFeishuHumanInteractionPresenter(options: ConfiguredFeishuHumanInteractionPresenterOptions): HumanInteractionPresenter;
|
|
3097
3319
|
//#endregion
|
|
3098
|
-
export { type ActiveAgentRun, type AgentClientAttempt, type AgentClientFailure, type AgentClientSuccess, type AgentClock, AgentContextBudgetExceeded, type AgentContextInput, type AgentContextLayer, type AgentContextLayerKind, type AgentConversationMessagesOptions, type AgentDomainEvent, type AgentDomainEventCallback, type AgentDomainEventHandler, type AgentDomainEventListener, type AgentDomainEventSink, type AgentDomainEventSinkCallback, AgentEventHandlerFailed, type AgentEventLog, type AgentEventLogOperation, AgentEventLogStoreError, AgentEventSinkFailed, type AgentHarness, type AgentHarnessAvailability, AgentHarnessBusy, type AgentHarnessBusyAvailability, type AgentHarnessClient, type AgentHarnessError, type AgentHarnessIdleAvailability, type AgentHarnessOptions, type AgentHistory, type AgentHistoryEventLog, AgentInstanceBusy, AgentInstanceConflict, type AgentInstanceRecord, type AgentInstanceRegistry, type AgentInstanceRegistryOptions, type AgentInvocationOrigin, type AgentLoop, type AgentLoopCallback, type AgentLoopCallbackOutput, type AgentLoopCallbackResult, type AgentLoopEvent, type AgentLoopEventLike, AgentLoopFailed, type AgentLoopInput, type AgentLoopModelExecutionEnd, type AgentLoopModelExecutionEndOptions, type AgentLoopModelExecutionStart, type AgentLoopModelExecutionStartOptions, type AgentLoopSkillExecutionEnd, type AgentLoopSkillExecutionEndOptions, type AgentLoopSkillExecutionStart, type AgentLoopSkillExecutionStartOptions, type AgentLoopTextDelta, type AgentLoopThinkingDelta, type AgentLoopToolExecutionEnd, type AgentLoopToolExecutionEndOptions, type AgentLoopToolExecutionStart, type AgentLoopToolExecutionStartOptions, type AgentLoopToolExecutionUpdate, type AgentLoopToolExecutionUpdateOptions, type AgentMemoryAuthority, AgentMemoryError, type AgentMemoryHandle, type AgentMemoryIdentity, type AgentMemoryService, type AgentMemoryServiceOptions, type AgentMemorySnapshot, type AgentModelContentObserver, type AgentModelExecutionEnded, type AgentModelExecutionEvent, type AgentModelExecutionStarted, type AgentModelInputObservation, type AgentModelOutputObservation, type AgentModelUsage, type AgentPromptResult, type AgentRunAccepted, AgentRunCancelled, type AgentRunCancelled$1 as AgentRunCancelledEvent, type AgentRunCompleted, type AgentRunFailed, type AgentRunId, type AgentRunPhase, type AgentRunSnapshot, type AgentRunState, type AgentRunSummary, type AgentRunUpdate, type AgentRunUpdateCallback, type AgentRunUpdateHandler, type AgentRunUpdateListener, type AgentRuntime, type AgentRuntimeCancellation, AgentRuntimeDisposed, type AgentRuntimeInput, type AgentRuntimePool, type AgentRuntimePoolOptions, type AgentSessionAvailability, type AgentSessionBusyAvailability, type AgentSessionClient, type AgentSessionHandle, type AgentSessionOtherBusyAvailability, type AgentSessionOwnedBusyAvailability, type AgentSessionSnapshot, type AgentSessionSummary, type AgentSkillExecutionEnded, type AgentSkillExecutionStarted, type AgentSkillExecutionState, type AgentTextDeltaCallback, type AgentToolExecutionEnded, type AgentToolExecutionEvent, type AgentToolExecutionStarted, type AgentToolExecutionUpdated, type AgentTranscript, type AgentTranscriptMessage, type AgentTranscriptMessageRole, type AgentTranscriptTurn, type AgentTurnCompleted, type AgentTurnStarted, type ApprovedHumanInteractionState, type AssembledAgentContext, type AssistantTextDelta, type AssistantThinkingDelta, type AsyncIterableAgentLoopOptions, type AuthorizationPolicyProvider, type AuthorizationPolicyState, type AutomationAgentInvocationOrigin, type AutomationBinding, type AutomationDeliveryBinding, type AutomationMandate, AutomationMandateError, type AutomationMandateStore, type AutomationOutcome, type AutomationTick, type AutomationTickRecord, type AutomationTickRepository, type AutomationTickStatus, type CancelledHumanInteractionState, type CommitAutomationOutcomeInput, type CommittedAutomationOutcome, CompactionError, type CompactionInput, type CompactionService, type CompactionSnapshot, type CompactorPort, type CompositeRivusDaemonTransportOptions, type ConfiguredFeishuCardKitPublisherOptions, type ConfiguredFeishuCardKitTargetPreparationOptions, type ConfiguredFeishuHumanInteractionPresenterOptions, type ConfiguredFeishuOpenApiRequest, type ConfiguredFeishuOpenApiResponse, type ConfiguredRivusDaemonBootstrap, type ConfiguredRivusDaemonBootstrapOptions, type ConfiguredRivusDaemonBootstrapRequest, type ConfiguredRivusDaemonBootstrapResponse, type ConsumeToolApprovalInput, type CreateConfiguredRivusDeploymentDaemonOptions, type CreateRivusDeploymentAutomationInput, type CreateRivusDeploymentDaemonOptions, type CreateRivusDeploymentEndpointInput, type CreateRivusDeploymentRuntimeInput, type DailyAutomationSchedule, type DeadLetterRecoveryItem, type DeadLetterRequeueResult, type DefaultAgentHarnessClientFromCallbackOptions, type DefaultAgentHarnessClientFromTextCallbackOptions, type DefaultAgentHarnessClientOptions, type DefaultAgentHarnessFromCallbackOptions, type DefaultAgentHarnessFromTextCallbackOptions, type DefaultAgentHarnessOptions, type DefaultAgentRuntimeFromCallbackOptions, type DefaultAgentRuntimeFromTextCallbackOptions, type DefaultAgentRuntimeOptions, type DefaultAgentRuntimeSessionOptions, DelegationDenied, type DelegationEdge, type DelegationGrant, type DelegationRequest, type DelegationService, type DeliveryJob, type DeliveryJobStatus, type DeliveryOutbox, DeliveryOutboxError, type EventAgentLoopOptions, type ExpiredHumanInteractionState, type FeishuAgentCommand, type FeishuAgentDaemon, type FeishuAgentDaemonCancelResult, type FeishuAgentDaemonHandleMessageOptions, type FeishuAgentDaemonHandleResult, type FeishuAgentDaemonInteractionResult, type FeishuAgentDaemonOptions, type FeishuAgentDaemonRunResult, type FeishuAgentDaemonSkippedResult, type FeishuAgentExecution, type FeishuAgentExecutionResult, type FeishuAgentInvocationOrigin, type FeishuAgentMessageSideEffects, type FeishuAgentRunCardInput, type FeishuAgentRunPreparation, type FeishuAgentRuntime, type FeishuAgentRuntimeOptions, type FeishuAutomationCardInput, type FeishuAutomationCardSender, type FeishuCancelMessageIntakeSummary, type FeishuCancelRunCommand, type FeishuCardActionCallbackResponse, type FeishuCardActionCommand, type FeishuCardActionIntakeError, type FeishuCardActionToast, type FeishuCardActionTriggerPayload, type FeishuCardDeliveryLedger, type FeishuCardDeliveryLedgerStateOptions, type FeishuCardDeliveryReconciler, type FeishuCardDeliveryReconcilerOptions, type FeishuCardDeliveryRecord, type FeishuCardKitCancel, type FeishuCardKitClient, type FeishuCardKitFail, type FeishuCardKitFinish, type FeishuCardKitOpenApiClientOptions, type FeishuCardKitOpenApiTargetCreatorOptions, type FeishuCardKitPublisher, type FeishuCardKitPublisherOptions, type FeishuCardKitTextUpdate, type FeishuCardTarget, type FeishuCardTargetCreator, FeishuCardTargetNotFound, type FeishuCardTargetPreparationOptions, type FeishuCardTargetRegistry, type FeishuCardTargetRegistryOperation, FeishuCardTargetRegistryStoreError, type FeishuCoalescingPublisher, type FeishuCoalescingPublisherOptions, type FeishuConversationReference, FeishuCotProtocolError, type FeishuCotPublisher, type FeishuCotPublisherOptions, type FeishuCotRunPreparation, type FeishuDeploymentEndpointOptions, FeishuEndpointCredentialError, type FeishuEndpointCredentials, type FeishuEndpointGroupPolicy, type FeishuEventHandlerCardActions, type FeishuEventHandlerQueue, type FeishuEventHandlers, type FeishuEventHandlersOptions, type FeishuHumanInteractionActions, type FeishuHumanInteractionPresenterOptions, type FeishuInboxCompletedState, type FeishuInboxDeadState, type FeishuInboxDelivery, type FeishuInboxDeliveryState, type FeishuInboxLeasedState, type FeishuInboxPendingState, type FeishuInboxRepository, type FeishuInboxRepositoryStateOptions, type FeishuMessageAcceptResult, type FeishuMessageDrainResult, type FeishuMessageIntakeBaseSummary, type FeishuMessageIntakeError, type FeishuMessageIntakeOptions, type FeishuMessageIntakeSummary, type FeishuMessageQueue, type FeishuMessageQueueOptions, type FeishuMessageWorker, type FeishuMessageWorkerDrainAvailableResult, type FeishuMessageWorkerOptions, type FeishuMessageWorkerQueue, type FeishuOpenApiClient, FeishuOpenApiError, type FeishuOpenApiRequest, type FeishuOpenApiResponse, type FeishuPeriodicFlush, type FeishuPeriodicFlushOptions, type FeishuPeriodicFlushSupervisor, type FeishuPresentationPreparationOptions, type FeishuPromptAgentCommand, type FeishuPromptMessageIntakeSummary, type FeishuRawCardJson, type FeishuReceiveAcceptedObservation, type FeishuReceiveHandledObservation, type FeishuReceiveMessageHandlerPayload, type FeishuReceiveMessagePayload, type FeishuReceiveMessageReplayOptions, type FeishuReceiveMessageReplayResult, type FeishuReceiveMessageSummary, type FeishuReceiveRuntimeStatus, type FeishuResolveInteractionCommand, type FeishuSdkReceiveMessagePayload, type FeishuSessionReference, type FeishuStreamAction, type FeishuStreamActionPublisher, type FeishuStreamProjector, FeishuTenantAccessTokenError, type FeishuTenantAccessTokenProvider, type FeishuTenantAccessTokenProviderOptions, type FeishuTenantAccessTokenRequest, type FeishuTenantAccessTokenResponse, type FeishuTextReplySender, type FeishuWebSocketClient, type FeishuWebSocketClientStartOptions, type FeishuWebSocketDaemon, type FeishuWebSocketDaemonOptions, type FeishuWebSocketEventDispatcher, type FeishuWebSocketRuntime, type FeishuWorkerLoop, type FeishuWorkerLoopOptions, type FetchLike, type FetchLikeResponse, type HumanInteraction, type HumanInteractionActor, type HumanInteractionBase, type HumanInteractionClock, type HumanInteractionEndpointRegistry, type HumanInteractionFact, type HumanInteractionId, type HumanInteractionPresenter, type HumanInteractionRepository, HumanInteractionRepositoryError, type HumanInteractionResolutionAction, type HumanInteractionService, type HumanInteractionServiceOptions, type HumanInteractionTransition, HumanInteractionTransitionDenied, InvalidFeishuCardAction, InvalidFeishuMessageContent, InvalidFeishuSessionReference, InvalidInvocationAuthority, InvalidProjectSkillCatalog, InvalidRecoveryAction, InvalidRivusEndpointBinding, InvalidRivusPlugin, InvalidRivusProjectSpace, InvalidStableJson, InvalidToolInput, InvalidWorkspaceRoot, type InvocationAuthority, type InvocationAuthorityRef, type JsonFetchRequestOptions, type JsonFileFeishuCardTargetRegistryOptions, type JsonHttpRequest, type JsonHttpResponse, type JsonlAgentEventLogOptions, type JsonlFeishuCardDeliveryLedgerOptions, type JsonlFeishuInboxRepositoryOptions, type JsonlHumanInteractionRepositoryOptions, type JsonlRecoveryControlOptions, type LangfuseAgentTelemetry, type LangfuseTelemetryConfig, LangfuseTelemetryConfigError, type LangfuseTelemetryContentMode, type LangfuseTelemetryEnv, type LoadRivusDeploymentManifestOptions, type LoadRivusDeploymentOptions, type LoadedRivusDeployment, type LocalCliAgentInvocationOrigin, MEMORY_SCOPES, type MemoryBinding, type MemoryInvocationAudience, type MemoryRecord, type MemoryScope, type MemorySearchQuery, type MemoryState, type MemoryTombstoneReceipt, OpenClawEnvImportError, type OpenClawEnvImportOptions, type OpenClawEnvImportResult, type OpenJsonAutomationTickRepositoryOptions, type OpenTelemetryAgentEventSinkOptions, type OpenTelemetryAgentTelemetry, type PendingHumanInteractionState, type PiAgentLoopOptions, type PiAgentSession, type PiAgentSessionEvent, type PiAgentSessionHandle, type PiCreateAgentSessionResult, type PiSdkAgentLoopOptions, type PiSessionRegistry, type PiSessionRegistryOptions, type PiToolApprovalGateway, type PiToolApprovalRequest, type PiToolProxyOptions, PluginStateConflict, type PluginStateRecord, type PluginStateStore, type PooledAgentRuntime, type ProjectMemoryPromptInput, type ProjectMemoryRecallIdentity, type ProjectMemoryRecallOptions, type ProjectSkillCatalogDiagnostic, type ProjectSkillCatalogEntry, type PromptCommand, type PutPluginState, RIVUS_MEMORY_TOOL_ID, RIVUS_MEMORY_TOOL_PLUGIN_ID, RIVUS_MEMORY_TOOL_VERSION, RIVUS_PLUGIN_API_VERSION, type RateLimitedFeishuPublisherOptions, type RecoveryAction, type RecoveryControl, type RecoveryControlOptions, type RecoverySnapshot, type RegisteredRivusAgentProfile, type RegisteredRivusAutomation, type RegisteredRivusPlugin, type RegisteredRivusSkill, type RegisteredRivusTool, type RejectedHumanInteractionState, type RequestToolApprovalInput, type RequestUserDecisionInput, type ResolveHumanInteractionInput, type ResolvedRivusAgentDefinition, type ResolvedRivusAutomationDefinition, type ResolvedRivusProjectSpace, type RivusAgentDeployment, type RivusAgentDeploymentStatus, type RivusAgentHost, type RivusAgentHostOptions, type RivusAgentProfile, type RivusAutomationDelivery, type RivusAutomationDeliveryTargetType, type RivusAutomationDeployment, type RivusAutomationInput, type RivusAutomationTemplate, type RivusAutomationTickContext, type RivusDaemonBootstrapContext, type RivusDaemonBootstrapFactory, type RivusDaemonBootstrapModule, type RivusDaemonCliOptions, type RivusDaemonCliWriter, type RivusDaemonConfig, RivusDaemonConfigError, type RivusDaemonConfigLoaderOptions, type RivusDaemonEnv, type RivusDaemonFeishuReplayRunner, type RivusDaemonProcess, type RivusDaemonProcessOptions, type RivusDaemonPromptRunner, type RivusDaemonRecoveryRunner, type RivusDaemonShutdownController, type RivusDaemonShutdownControllerOptions, type RivusDaemonShutdownSignal, type RivusDaemonSignalSource, type RivusDaemonStatus, type RivusDaemonStatusHttpServer, type RivusDaemonStatusHttpServerOptions, type RivusDaemonStatusReporter, type RivusDaemonStatusReporterOptions, type RivusDaemonTransport, type RivusDaemonWorkerLoop, type RivusDeploymentAutomation, type RivusDeploymentAutomationLifecycle, RivusDeploymentAutomationReadinessError, type RivusDeploymentAutomationStatus, type RivusDeploymentBootstrapAdapters, type RivusDeploymentBootstrapContext, type RivusDeploymentBootstrapFactory, type RivusDeploymentCliProcess, type RivusDeploymentComponentLifecycle, type RivusDeploymentDaemon, type RivusDeploymentDaemonLifecycle, RivusDeploymentDaemonLifecycleError, type RivusDeploymentDaemonStatus, type RivusDeploymentEndpoint, type RivusDeploymentEndpointLifecycle, type RivusDeploymentEndpointStatus, type RivusDeploymentManifest, RivusDeploymentManifestError, RivusDeploymentReadinessError, type RivusEndpointDefinition, type RivusEndpointDeployment, type RivusEndpointExperimentalFeatures, type RivusEndpointInput, type RivusEnvFileVariables, type RivusHostToolDescriptor, type RivusMemoryTool, type RivusPlugin, type RivusPluginCatalog, type RivusPluginCatalogSnapshot, RivusPluginConformanceError, type RivusPluginConformanceInput, type RivusPluginConformanceReport, type RivusPluginDeclaration, type RivusPluginLifecycleProbe, RivusPluginLoadError, type RivusPluginLoadStatus, type RivusPluginManifest, type RivusPluginModule, type RivusPluginModuleLoadRequest, type RivusPluginRegistry, type RivusProjectSpaceDeployment, type RivusResolvedToolDescriptor, type RivusSkillDescriptor, type RivusSkillGrantSet, type RivusTextFileReader, type RivusThinkingLevel, type RivusToolDescriptor, type RivusToolExecutionContext, type RivusToolExecutor, type RivusToolFactoryContext, type RivusToolGrantSet, type RivusToolIdempotency, RivusToolInputRejected, type RivusToolRisk, type RunIdGenerator, type ScheduledAutomation, type ScheduledAutomationClock, type ScheduledAutomationDeliveryInput, type ScheduledAutomationOptions, type ScheduledAutomationRunInput, type ScheduledAutomationRunResult, type SelectedHumanInteractionState, type SessionKey, type SessionScheduler, SessionSchedulerCapacityExceeded, SessionSchedulerDisposed, type SessionSchedulerOptions, type SessionSchedulerStatus, type SpawnSubagentRequest, type SubagentCoordinator, type SubagentRecord, type TelemetryContentRedactor, type TelemetryContentRedactorOptions, type TerminalAgentDomainEvent, type TextAgentLoopCallback, type TextAgentLoopOptions, type ToolApprovalBinding, type ToolApprovalInteraction, type ToolApprovalInteractionState, type ToolApprovalRequest, type ToolApprovalService, type ToolBroker, type ToolBrokerOptions, type ToolExecutionRequest, ToolInvocationDenied, type ToolOperationBeginResult, type ToolOperationBinding, type ToolOperationInspectResult, type ToolOperationLedger, type ToolOperationReconciliation, type ToolOperationReconciliationOutcome, type ToolOperationRecord, type ToolOperationRecoveryItem, type ToolOperationResolutionResult, type ToolOperationState, UnsupportedFeishuCardAction, UnsupportedFeishuMessage, type UserDecisionInteraction, type UserDecisionInteractionState, type UserDecisionOption, type WorkspaceInstructionSource, type WorkspaceInstructionsDiagnostic, type WorkspaceInstructionsDiagnosticCode, type WorkspaceInstructionsProvider, type WorkspaceInstructionsRequest, WorkspaceInstructionsSourceError, type WorkspaceInstructionsView, type WorkspaceRootHandle, assembleAgentContext, assertRivusPluginConforms, commitAutomationOutcome, createAgentCommandFromFeishuCardAction, createAgentCommandFromFeishuMessage, createAgentConversationMessages, createAgentDomainEventHandler, createAgentDomainEventSink, createAgentDomainEventSinkFromCallback, createAgentHarness, createAgentHarnessClient, createAgentHarnessPooledRuntime, createAgentInstanceRegistry, createAgentLoopFromCallback, createAgentLoopModelExecutionEnd, createAgentLoopModelExecutionStart, createAgentLoopPromptTransformer, createAgentLoopSkillExecutionEnd, createAgentLoopSkillExecutionStart, createAgentLoopTextDelta, createAgentLoopThinkingDelta, createAgentLoopToolExecutionEnd, createAgentLoopToolExecutionStart, createAgentLoopToolExecutionUpdate, createAgentMemoryService, createAgentRunUpdateHandler, createAgentRuntime, createAgentRuntimePool, createAgentTranscriptMessages, createAgentTranscriptTurn, createAgentsMdInstructionsProvider, createAsyncIterableAgentLoop, createAutomationMandateStore, createCoalescingFeishuPublisher, createCompactionService, createCompositeRivusDaemonTransport, createConfiguredFeishuAutomationCardSender, createConfiguredFeishuCardKitPublisher, createConfiguredFeishuCardKitTargetPreparation, createConfiguredFeishuHumanInteractionPresenter, createConfiguredFeishuOpenApiClient, createConfiguredFeishuTextReplySender, createConfiguredRivusDaemonBootstrap, createConfiguredRivusDeploymentDaemon, createDailyAutomationSchedule, createDefaultAgentHarness, createDefaultAgentHarnessClient, createDefaultAgentHarnessClientFromCallback, createDefaultAgentHarnessClientFromTextCallback, createDefaultAgentHarnessFromCallback, createDefaultAgentHarnessFromTextCallback, createDefaultAgentRuntime, createDefaultAgentRuntimeFromCallback, createDefaultAgentRuntimeFromTextCallback, createDelegationService, createDeliveryOutbox, createEventAgentLoop, createFakeRivusPlugin, createFeishuAgentDaemon, createFeishuAgentRunCard, createFeishuAgentRuntime, createFeishuCardActionCallbackResponse, createFeishuCardActionErrorResponse, createFeishuCardDeliveryLedger, createFeishuCardDeliveryReconciler, createFeishuCardKitOpenApiClient, createFeishuCardKitOpenApiTargetCreator, createFeishuCardKitPublisher, createFeishuCardTargetPreparation, createFeishuConversationId, createFeishuCotPublisher, createFeishuDeploymentEndpoint, createFeishuEventHandlers, createFeishuHumanInteractionCard, createFeishuHumanInteractionPresenter, createFeishuInboxRepository, createFeishuMessageQueue, createFeishuMessageWorker, createFeishuOpenApiClient, createFeishuPeriodicFlush, createFeishuPresentationPreparation, createFeishuSessionKey, createFeishuStreamProjector, createFeishuTenantAccessTokenProvider, createFeishuWebSocketDaemon, createFeishuWorkerLoop, createFixedClock, createHumanInteractionEndpointRegistry, createHumanInteractionService, createHumanInteractionToolApprovalGateway, createInMemoryFeishuCardTargetRegistry, createInMemoryHumanInteractionRepository, createInvocationAuthority, createJsonFetchRequest, createJsonFileFeishuCardTargetRegistry, createJsonlAgentEventLog, createJsonlHumanInteractionRepository, createLangfuseAgentTelemetry, createLazyFeishuWebSocketEventDispatcher, createMemoryNamespace, createOpenTelemetryAgentEventSink, createOpenTelemetryAgentTelemetry, createPiAgentLoop, createPiSdkAgentLoop, createPiSessionRegistry, createPiSkillRuntime, createPiToolNameResolver, createPiToolProxyDefinitions, createPluginStateStore, createProjectMemoryPromptPreparer, createRateLimitedFeishuPublisher, createRecoveryAction, createRecoveryControl, createRivusAgentHost, createRivusDaemonProcess, createRivusDaemonShutdownController, createRivusDaemonStatusHttpServer, createRivusDaemonStatusReporter, createRivusDeploymentCliProcess, createRivusDeploymentDaemon, createRivusEnvFromOpenClawConfig, createRivusMemoryTool, createRivusMemoryToolContract, createRivusMemoryToolDescriptor, createRivusPluginCatalog, createRoutedHumanInteractionToolApprovalService, createScheduledAutomation, createSequenceRunIds, createSessionScheduler, createSubagentCoordinator, createSystemClock, createTelemetryContentRedactor, createTextAgentLoop, createTextAgentLoopFromCallback, createToolBroker, createToolInputDigest, createToolOperationLedger, createUuidRunIds, createWorkspaceRootHandle, describeFeishuMessageIntake, evolveAgentRun, formatRivusEnvFile, initialAgentRunState, intersectToolIds, isAgentToolExecutionEvent, isAssistantTextDeltaEvent, isAssistantThinkingDeltaEvent, isTerminalAgentDomainEvent, isTerminalAgentRunPhase, loadNodeRivusPluginModule, loadRivusDaemonConfig, loadRivusDeployment, loadRivusDeploymentManifest, normalizeStableJson, openJsonAutomationTickRepository, openJsonlAgentMemoryService, openJsonlFeishuCardDeliveryLedger, openJsonlFeishuInboxRepository, openJsonlRecoveryControl, openJsonlToolOperationLedger, replayAgentHistory, replayAgentTranscript, requiresToolApproval, resolveFeishuEndpointCredentials, resolveLangfuseTelemetryConfig, resolveRivusAgentDefinition, resolveRivusProjectSpace, restoreAgentHistory, restoreConfiguredRivusDaemonBootstrap, restrictMemoryScopesForAudience, runRivusDaemonCli, shouldAcceptFeishuEndpointMessage, transitionHumanInteraction, validateProjectSkillCatalog, validateProjectSkillCommand, validateRivusDeploymentManifest };
|
|
3320
|
+
export { type ActiveAgentRun, type AgentClientAttempt, type AgentClientFailure, type AgentClientSuccess, type AgentClock, AgentContextBudgetExceeded, type AgentContextInput, type AgentContextLayer, type AgentContextLayerKind, type AgentConversationMessagesOptions, type AgentDomainEvent, type AgentDomainEventCallback, type AgentDomainEventHandler, type AgentDomainEventListener, type AgentDomainEventSink, type AgentDomainEventSinkCallback, AgentEventHandlerFailed, type AgentEventLog, type AgentEventLogOperation, AgentEventLogStoreError, AgentEventSinkFailed, type AgentHarness, type AgentHarnessAvailability, AgentHarnessBusy, type AgentHarnessBusyAvailability, type AgentHarnessClient, type AgentHarnessError, type AgentHarnessIdleAvailability, type AgentHarnessOptions, type AgentHistory, type AgentHistoryEventLog, AgentInstanceBusy, AgentInstanceConflict, type AgentInstanceRecord, type AgentInstanceRegistry, type AgentInstanceRegistryOptions, type AgentInvocationOrigin, type AgentLoop, type AgentLoopCallback, type AgentLoopCallbackOutput, type AgentLoopCallbackResult, type AgentLoopEvent, type AgentLoopEventLike, AgentLoopFailed, type AgentLoopInput, type AgentLoopModelExecutionEnd, type AgentLoopModelExecutionEndOptions, type AgentLoopModelExecutionStart, type AgentLoopModelExecutionStartOptions, type AgentLoopSkillExecutionEnd, type AgentLoopSkillExecutionEndOptions, type AgentLoopSkillExecutionStart, type AgentLoopSkillExecutionStartOptions, type AgentLoopTextDelta, type AgentLoopThinkingDelta, type AgentLoopToolExecutionEnd, type AgentLoopToolExecutionEndOptions, type AgentLoopToolExecutionStart, type AgentLoopToolExecutionStartOptions, type AgentLoopToolExecutionUpdate, type AgentLoopToolExecutionUpdateOptions, type AgentMemoryAuthority, AgentMemoryError, type AgentMemoryHandle, type AgentMemoryIdentity, type AgentMemoryService, type AgentMemoryServiceOptions, type AgentMemorySnapshot, type AgentModelContentObserver, type AgentModelExecutionEnded, type AgentModelExecutionEvent, type AgentModelExecutionStarted, type AgentModelInputObservation, type AgentModelOutputObservation, type AgentModelUsage, type AgentPromptResult, type AgentRunAccepted, AgentRunCancelled, type AgentRunCancelled$1 as AgentRunCancelledEvent, type AgentRunCompleted, type AgentRunFailed, type AgentRunId, type AgentRunPhase, type AgentRunSnapshot, type AgentRunState, type AgentRunSummary, type AgentRunUpdate, type AgentRunUpdateCallback, type AgentRunUpdateHandler, type AgentRunUpdateListener, type AgentRuntime, type AgentRuntimeCancellation, AgentRuntimeDisposed, type AgentRuntimeInput, type AgentRuntimePool, type AgentRuntimePoolOptions, type AgentSessionAvailability, type AgentSessionBusyAvailability, type AgentSessionClient, type AgentSessionHandle, type AgentSessionOtherBusyAvailability, type AgentSessionOwnedBusyAvailability, type AgentSessionSnapshot, type AgentSessionSummary, type AgentSkillExecutionEnded, type AgentSkillExecutionStarted, type AgentSkillExecutionState, type AgentTextDeltaCallback, type AgentToolExecutionEnded, type AgentToolExecutionEvent, type AgentToolExecutionStarted, type AgentToolExecutionUpdated, type AgentTranscript, type AgentTranscriptMessage, type AgentTranscriptMessageRole, type AgentTranscriptTurn, type AgentTurnCompleted, type AgentTurnStarted, type ApprovedHumanInteractionState, type AssembledAgentContext, type AssistantTextDelta, type AssistantThinkingDelta, type AsyncIterableAgentLoopOptions, type AuthorizationPolicyProvider, type AuthorizationPolicyState, type AutomationAgentInvocationOrigin, type AutomationBinding, type AutomationDeliveryBinding, type AutomationMandate, AutomationMandateError, type AutomationMandateStore, type AutomationOutcome, type AutomationTick, type AutomationTickRecord, type AutomationTickRepository, type AutomationTickStatus, type CancelledHumanInteractionState, type CardPresentation, type CardPresentationChain, type CardPresentationStatus, CardPresentationTransitionDenied, type CommitAutomationOutcomeInput, type CommittedAutomationOutcome, CompactionError, type CompactionInput, type CompactionService, type CompactionSnapshot, type CompactorPort, type CompositeRivusDaemonTransportOptions, type ConfiguredFeishuCardKitPublisherOptions, type ConfiguredFeishuCardKitTargetPreparationOptions, type ConfiguredFeishuCardRolloverRuntime, type ConfiguredFeishuCardRolloverRuntimeOptions, type ConfiguredFeishuHumanInteractionPresenterOptions, type ConfiguredFeishuOpenApiRequest, type ConfiguredFeishuOpenApiResponse, type ConfiguredRivusDaemonBootstrap, type ConfiguredRivusDaemonBootstrapOptions, type ConfiguredRivusDaemonBootstrapRequest, type ConfiguredRivusDaemonBootstrapResponse, type ConsumeToolApprovalInput, type CreateConfiguredRivusDeploymentDaemonOptions, type CreateRivusDeploymentAutomationInput, type CreateRivusDeploymentDaemonOptions, type CreateRivusDeploymentEndpointInput, type CreateRivusDeploymentRuntimeInput, DEFAULT_CARD_STREAM_LEASE_MS, type DailyAutomationSchedule, type DeadLetterRecoveryItem, type DeadLetterRequeueResult, type DefaultAgentHarnessClientFromCallbackOptions, type DefaultAgentHarnessClientFromTextCallbackOptions, type DefaultAgentHarnessClientOptions, type DefaultAgentHarnessFromCallbackOptions, type DefaultAgentHarnessFromTextCallbackOptions, type DefaultAgentHarnessOptions, type DefaultAgentRuntimeFromCallbackOptions, type DefaultAgentRuntimeFromTextCallbackOptions, type DefaultAgentRuntimeOptions, type DefaultAgentRuntimeSessionOptions, DelegationDenied, type DelegationEdge, type DelegationGrant, type DelegationRequest, type DelegationService, type DeliveryJob, type DeliveryJobStatus, type DeliveryOutbox, DeliveryOutboxError, type EventAgentLoopOptions, type ExpiredHumanInteractionState, type FeishuAgentCommand, type FeishuAgentDaemon, type FeishuAgentDaemonCancelResult, type FeishuAgentDaemonHandleMessageOptions, type FeishuAgentDaemonHandleResult, type FeishuAgentDaemonInteractionResult, type FeishuAgentDaemonOptions, type FeishuAgentDaemonRunResult, type FeishuAgentDaemonSkippedResult, type FeishuAgentExecution, type FeishuAgentExecutionResult, type FeishuAgentInvocationOrigin, type FeishuAgentMessageSideEffects, type FeishuAgentRunCardInput, type FeishuAgentRunPreparation, type FeishuAgentRuntime, type FeishuAgentRuntimeOptions, type FeishuAutomationCardInput, type FeishuAutomationCardSender, type FeishuCancelMessageIntakeSummary, type FeishuCancelRunCommand, type FeishuCardActionCallbackResponse, type FeishuCardActionCommand, type FeishuCardActionIntakeError, type FeishuCardActionToast, type FeishuCardActionTriggerPayload, type FeishuCardDeliveryLedger, type FeishuCardDeliveryLedgerStateOptions, type FeishuCardDeliveryReconciler, type FeishuCardDeliveryReconcilerOptions, type FeishuCardDeliveryRecord, type FeishuCardKitCancel, type FeishuCardKitClient, type FeishuCardKitFail, type FeishuCardKitFinish, type FeishuCardKitHandoff, type FeishuCardKitOpenApiClientOptions, type FeishuCardKitOpenApiTargetCreatorOptions, type FeishuCardKitPublisher, type FeishuCardKitPublisherOptions, type FeishuCardKitTextUpdate, type FeishuCardPresentationBinder, type FeishuCardPresentationHandoffStart, FeishuCardPresentationNotFound, type FeishuCardPresentationStore, type FeishuCardPresentationStoreOptions, type FeishuCardRollover, type FeishuCardRolloverCounters, type FeishuCardRolloverEvent, type FeishuCardRolloverEventType, type FeishuCardRolloverHandoffResult, type FeishuCardRolloverOptions, type FeishuCardRolloverStatus, type FeishuCardRolloverSupervisor, type FeishuCardRolloverSupervisorOptions, type FeishuCardTarget, type FeishuCardTargetCreateOptions, type FeishuCardTargetCreator, FeishuCardTargetNotFound, type FeishuCardTargetPreparationOptions, type FeishuCardTargetRegistry, type FeishuCardTargetRegistryOperation, FeishuCardTargetRegistryStoreError, type FeishuCoalescingPublisher, type FeishuCoalescingPublisherOptions, type FeishuConversationReference, FeishuCotProtocolError, type FeishuCotPublisher, type FeishuCotPublisherOptions, type FeishuCotRunPreparation, type FeishuDeploymentEndpointOptions, FeishuEndpointCredentialError, type FeishuEndpointCredentials, type FeishuEndpointGroupPolicy, type FeishuEventHandlerCardActions, type FeishuEventHandlerQueue, type FeishuEventHandlers, type FeishuEventHandlersOptions, type FeishuHumanInteractionActions, type FeishuHumanInteractionPresenterOptions, type FeishuInboxCompletedState, type FeishuInboxDeadState, type FeishuInboxDelivery, type FeishuInboxDeliveryState, type FeishuInboxLeasedState, type FeishuInboxPendingState, type FeishuInboxRepository, type FeishuInboxRepositoryStateOptions, type FeishuMessageAcceptResult, type FeishuMessageDrainResult, type FeishuMessageIntakeBaseSummary, type FeishuMessageIntakeError, type FeishuMessageIntakeOptions, type FeishuMessageIntakeSummary, type FeishuMessageQueue, type FeishuMessageQueueOptions, type FeishuMessageWorker, type FeishuMessageWorkerDrainAvailableResult, type FeishuMessageWorkerOptions, type FeishuMessageWorkerQueue, type FeishuOpenApiClient, FeishuOpenApiError, type FeishuOpenApiRequest, type FeishuOpenApiResponse, type FeishuPeriodicFlush, type FeishuPeriodicFlushOptions, type FeishuPeriodicFlushSupervisor, type FeishuPresentationPreparationOptions, type FeishuPromptAgentCommand, type FeishuPromptMessageIntakeSummary, type FeishuRawCardJson, type FeishuReceiveAcceptedObservation, type FeishuReceiveHandledObservation, type FeishuReceiveMessageHandlerPayload, type FeishuReceiveMessagePayload, type FeishuReceiveMessageReplayOptions, type FeishuReceiveMessageReplayResult, type FeishuReceiveMessageSummary, type FeishuReceiveRuntimeStatus, type FeishuResolveInteractionCommand, type FeishuSdkReceiveMessagePayload, type FeishuSessionReference, type FeishuStreamAction, type FeishuStreamActionPublisher, type FeishuStreamProjector, FeishuTenantAccessTokenError, type FeishuTenantAccessTokenProvider, type FeishuTenantAccessTokenProviderOptions, type FeishuTenantAccessTokenRequest, type FeishuTenantAccessTokenResponse, type FeishuTextReplySender, type FeishuWebSocketClient, type FeishuWebSocketClientStartOptions, type FeishuWebSocketDaemon, type FeishuWebSocketDaemonOptions, type FeishuWebSocketEventDispatcher, type FeishuWebSocketRuntime, type FeishuWorkerLoop, type FeishuWorkerLoopOptions, type FetchLike, type FetchLikeResponse, type HumanInteraction, type HumanInteractionActor, type HumanInteractionBase, type HumanInteractionClock, type HumanInteractionEndpointRegistry, type HumanInteractionFact, type HumanInteractionId, type HumanInteractionPresenter, type HumanInteractionRepository, HumanInteractionRepositoryError, type HumanInteractionResolutionAction, type HumanInteractionService, type HumanInteractionServiceOptions, type HumanInteractionTransition, HumanInteractionTransitionDenied, InvalidFeishuCardAction, InvalidFeishuMessageContent, InvalidFeishuSessionReference, InvalidInvocationAuthority, InvalidProjectSkillCatalog, InvalidRecoveryAction, InvalidRivusEndpointBinding, InvalidRivusPlugin, InvalidRivusProjectSpace, InvalidStableJson, InvalidToolInput, InvalidWorkspaceRoot, type InvocationAuthority, type InvocationAuthorityRef, type JsonFetchRequestOptions, type JsonFileFeishuCardTargetRegistryOptions, type JsonHttpRequest, type JsonHttpResponse, type JsonlAgentEventLogOptions, type JsonlFeishuCardDeliveryLedgerOptions, type JsonlFeishuInboxRepositoryOptions, type JsonlHumanInteractionRepositoryOptions, type JsonlRecoveryControlOptions, type LangfuseAgentTelemetry, type LangfuseTelemetryConfig, LangfuseTelemetryConfigError, type LangfuseTelemetryContentMode, type LangfuseTelemetryEnv, type LoadRivusDeploymentManifestOptions, type LoadRivusDeploymentOptions, type LoadedRivusDeployment, type LocalCliAgentInvocationOrigin, MEMORY_SCOPES, type MemoryBinding, type MemoryInvocationAudience, type MemoryRecord, type MemoryScope, type MemorySearchQuery, type MemoryState, type MemoryTombstoneReceipt, OpenClawEnvImportError, type OpenClawEnvImportOptions, type OpenClawEnvImportResult, type OpenJsonAutomationTickRepositoryOptions, type OpenTelemetryAgentEventSinkOptions, type OpenTelemetryAgentTelemetry, type PendingHumanInteractionState, type PiAgentLoopOptions, type PiAgentSession, type PiAgentSessionEvent, type PiAgentSessionHandle, type PiCreateAgentSessionResult, type PiSdkAgentLoopOptions, type PiSessionRegistry, type PiSessionRegistryOptions, type PiToolApprovalGateway, type PiToolApprovalRequest, type PiToolProxyOptions, PluginStateConflict, type PluginStateRecord, type PluginStateStore, type PooledAgentRuntime, type ProjectMemoryPromptInput, type ProjectMemoryRecallIdentity, type ProjectMemoryRecallOptions, type ProjectSkillCatalogDiagnostic, type ProjectSkillCatalogEntry, type PromptCommand, type PutPluginState, RIVUS_MEMORY_TOOL_ID, RIVUS_MEMORY_TOOL_PLUGIN_ID, RIVUS_MEMORY_TOOL_VERSION, RIVUS_PLUGIN_API_VERSION, type RateLimitedFeishuPublisherOptions, type RecoveryAction, type RecoveryControl, type RecoveryControlOptions, type RecoverySnapshot, type RegisteredRivusAgentProfile, type RegisteredRivusAutomation, type RegisteredRivusPlugin, type RegisteredRivusSkill, type RegisteredRivusTool, type RejectedHumanInteractionState, type RequestToolApprovalInput, type RequestUserDecisionInput, type ResolveHumanInteractionInput, type ResolvedRivusAgentDefinition, type ResolvedRivusAutomationDefinition, type ResolvedRivusProjectSpace, type RivusAgentDeployment, type RivusAgentDeploymentStatus, type RivusAgentHost, type RivusAgentHostOptions, type RivusAgentProfile, type RivusAutomationDelivery, type RivusAutomationDeliveryTargetType, type RivusAutomationDeployment, type RivusAutomationInput, type RivusAutomationTemplate, type RivusAutomationTickContext, type RivusDaemonBootstrapContext, type RivusDaemonBootstrapFactory, type RivusDaemonBootstrapModule, type RivusDaemonCliOptions, type RivusDaemonCliWriter, type RivusDaemonConfig, RivusDaemonConfigError, type RivusDaemonConfigLoaderOptions, type RivusDaemonEnv, type RivusDaemonFeishuReplayRunner, type RivusDaemonProcess, type RivusDaemonProcessOptions, type RivusDaemonPromptRunner, type RivusDaemonRecoveryRunner, type RivusDaemonShutdownController, type RivusDaemonShutdownControllerOptions, type RivusDaemonShutdownSignal, type RivusDaemonSignalSource, type RivusDaemonStatus, type RivusDaemonStatusHttpServer, type RivusDaemonStatusHttpServerOptions, type RivusDaemonStatusReporter, type RivusDaemonStatusReporterOptions, type RivusDaemonTransport, type RivusDaemonWorkerLoop, type RivusDeploymentAutomation, type RivusDeploymentAutomationLifecycle, RivusDeploymentAutomationReadinessError, type RivusDeploymentAutomationStatus, type RivusDeploymentBootstrapAdapters, type RivusDeploymentBootstrapContext, type RivusDeploymentBootstrapFactory, type RivusDeploymentCliProcess, type RivusDeploymentComponentLifecycle, type RivusDeploymentDaemon, type RivusDeploymentDaemonLifecycle, RivusDeploymentDaemonLifecycleError, type RivusDeploymentDaemonStatus, type RivusDeploymentEndpoint, type RivusDeploymentEndpointLifecycle, type RivusDeploymentEndpointStatus, type RivusDeploymentManifest, RivusDeploymentManifestError, RivusDeploymentReadinessError, type RivusEndpointDefinition, type RivusEndpointDeployment, type RivusEndpointExperimentalFeatures, type RivusEndpointInput, type RivusEnvFileVariables, type RivusHostToolDescriptor, type RivusMemoryTool, type RivusPlugin, type RivusPluginCatalog, type RivusPluginCatalogSnapshot, RivusPluginConformanceError, type RivusPluginConformanceInput, type RivusPluginConformanceReport, type RivusPluginDeclaration, type RivusPluginLifecycleProbe, RivusPluginLoadError, type RivusPluginLoadStatus, type RivusPluginManifest, type RivusPluginModule, type RivusPluginModuleLoadRequest, type RivusPluginRegistry, type RivusProjectSpaceDeployment, type RivusResolvedToolDescriptor, type RivusSkillDescriptor, type RivusSkillGrantSet, type RivusTextFileReader, type RivusThinkingLevel, type RivusToolDescriptor, type RivusToolExecutionContext, type RivusToolExecutor, type RivusToolFactoryContext, type RivusToolGrantSet, type RivusToolIdempotency, RivusToolInputRejected, type RivusToolRisk, type RunIdGenerator, type ScheduledAutomation, type ScheduledAutomationClock, type ScheduledAutomationDeliveryInput, type ScheduledAutomationOptions, type ScheduledAutomationRunInput, type ScheduledAutomationRunResult, type SelectedHumanInteractionState, type SessionKey, type SessionScheduler, SessionSchedulerCapacityExceeded, SessionSchedulerDisposed, type SessionSchedulerOptions, type SessionSchedulerStatus, type SpawnSubagentRequest, type SubagentCoordinator, type SubagentRecord, type TelemetryContentRedactor, type TelemetryContentRedactorOptions, type TerminalAgentDomainEvent, type TextAgentLoopCallback, type TextAgentLoopOptions, type ToolApprovalBinding, type ToolApprovalInteraction, type ToolApprovalInteractionState, type ToolApprovalRequest, type ToolApprovalService, type ToolBroker, type ToolBrokerOptions, type ToolExecutionRequest, ToolInvocationDenied, type ToolOperationBeginResult, type ToolOperationBinding, type ToolOperationInspectResult, type ToolOperationLedger, type ToolOperationReconciliation, type ToolOperationReconciliationOutcome, type ToolOperationRecord, type ToolOperationRecoveryItem, type ToolOperationResolutionResult, type ToolOperationState, UnsupportedFeishuCardAction, UnsupportedFeishuMessage, type UserDecisionInteraction, type UserDecisionInteractionState, type UserDecisionOption, type WorkspaceInstructionSource, type WorkspaceInstructionsDiagnostic, type WorkspaceInstructionsDiagnosticCode, type WorkspaceInstructionsProvider, type WorkspaceInstructionsRequest, WorkspaceInstructionsSourceError, type WorkspaceInstructionsView, type WorkspaceRootHandle, acceptsCardPresentationProgress, activeCardPresentation, assembleAgentContext, assertRivusPluginConforms, commitAutomationOutcome, createAgentCommandFromFeishuCardAction, createAgentCommandFromFeishuMessage, createAgentConversationMessages, createAgentDomainEventHandler, createAgentDomainEventSink, createAgentDomainEventSinkFromCallback, createAgentHarness, createAgentHarnessClient, createAgentHarnessPooledRuntime, createAgentInstanceRegistry, createAgentLoopFromCallback, createAgentLoopModelExecutionEnd, createAgentLoopModelExecutionStart, createAgentLoopPromptTransformer, createAgentLoopSkillExecutionEnd, createAgentLoopSkillExecutionStart, createAgentLoopTextDelta, createAgentLoopThinkingDelta, createAgentLoopToolExecutionEnd, createAgentLoopToolExecutionStart, createAgentLoopToolExecutionUpdate, createAgentMemoryService, createAgentRunUpdateHandler, createAgentRuntime, createAgentRuntimePool, createAgentTranscriptMessages, createAgentTranscriptTurn, createAgentsMdInstructionsProvider, createAsyncIterableAgentLoop, createAutomationMandateStore, createCoalescingFeishuPublisher, createCompactionService, createCompositeRivusDaemonTransport, createConfiguredFeishuAutomationCardSender, createConfiguredFeishuCardKitPublisher, createConfiguredFeishuCardKitTargetCreator, createConfiguredFeishuCardKitTargetPreparation, createConfiguredFeishuCardRolloverRuntime, createConfiguredFeishuHumanInteractionPresenter, createConfiguredFeishuOpenApiClient, createConfiguredFeishuTextReplySender, createConfiguredRivusDaemonBootstrap, createConfiguredRivusDeploymentDaemon, createDailyAutomationSchedule, createDefaultAgentHarness, createDefaultAgentHarnessClient, createDefaultAgentHarnessClientFromCallback, createDefaultAgentHarnessClientFromTextCallback, createDefaultAgentHarnessFromCallback, createDefaultAgentHarnessFromTextCallback, createDefaultAgentRuntime, createDefaultAgentRuntimeFromCallback, createDefaultAgentRuntimeFromTextCallback, createDelegationService, createDeliveryOutbox, createEventAgentLoop, createFakeRivusPlugin, createFeishuAgentDaemon, createFeishuAgentRunCard, createFeishuAgentRuntime, createFeishuCardActionCallbackResponse, createFeishuCardActionErrorResponse, createFeishuCardDeliveryLedger, createFeishuCardDeliveryReconciler, createFeishuCardKitOpenApiClient, createFeishuCardKitOpenApiTargetCreator, createFeishuCardKitPublisher, createFeishuCardPresentationStore, createFeishuCardRollover, createFeishuCardRolloverSupervisor, createFeishuCardTargetPreparation, createFeishuConversationId, createFeishuCotPublisher, createFeishuDeploymentEndpoint, createFeishuEventHandlers, createFeishuHumanInteractionCard, createFeishuHumanInteractionPresenter, createFeishuInboxRepository, createFeishuMessageQueue, createFeishuMessageWorker, createFeishuOpenApiClient, createFeishuPeriodicFlush, createFeishuPresentationPreparation, createFeishuSessionKey, createFeishuStreamProjector, createFeishuTenantAccessTokenProvider, createFeishuWebSocketDaemon, createFeishuWorkerLoop, createFixedClock, createHumanInteractionEndpointRegistry, createHumanInteractionService, createHumanInteractionToolApprovalGateway, createInMemoryFeishuCardTargetRegistry, createInMemoryHumanInteractionRepository, createInvocationAuthority, createJsonFetchRequest, createJsonFileFeishuCardTargetRegistry, createJsonlAgentEventLog, createJsonlHumanInteractionRepository, createLangfuseAgentTelemetry, createLazyFeishuWebSocketEventDispatcher, createMemoryNamespace, createOpenTelemetryAgentEventSink, createOpenTelemetryAgentTelemetry, createPiAgentLoop, createPiSdkAgentLoop, createPiSessionRegistry, createPiSkillRuntime, createPiToolNameResolver, createPiToolProxyDefinitions, createPluginStateStore, createProjectMemoryPromptPreparer, createRateLimitedFeishuPublisher, createRecoveryAction, createRecoveryControl, createRivusAgentHost, createRivusDaemonProcess, createRivusDaemonShutdownController, createRivusDaemonStatusHttpServer, createRivusDaemonStatusReporter, createRivusDeploymentCliProcess, createRivusDeploymentDaemon, createRivusEnvFromOpenClawConfig, createRivusMemoryTool, createRivusMemoryToolContract, createRivusMemoryToolDescriptor, createRivusPluginCatalog, createRoutedHumanInteractionToolApprovalService, createScheduledAutomation, createSequenceRunIds, createSessionScheduler, createSubagentCoordinator, createSystemClock, createTelemetryContentRedactor, createTextAgentLoop, createTextAgentLoopFromCallback, createToolBroker, createToolInputDigest, createToolOperationLedger, createUuidRunIds, createWorkspaceRootHandle, describeFeishuMessageIntake, evolveAgentRun, formatRivusEnvFile, initialAgentRunState, intersectToolIds, isAgentToolExecutionEvent, isAssistantTextDeltaEvent, isAssistantThinkingDeltaEvent, isCardPresentationHandoffDue, isTerminalAgentDomainEvent, isTerminalAgentRunPhase, loadNodeRivusPluginModule, loadRivusDaemonConfig, loadRivusDeployment, loadRivusDeploymentManifest, normalizeStableJson, openJsonAutomationTickRepository, openJsonlAgentMemoryService, openJsonlFeishuCardDeliveryLedger, openJsonlFeishuInboxRepository, openJsonlRecoveryControl, openJsonlToolOperationLedger, replayAgentHistory, replayAgentTranscript, requiresToolApproval, resolveFeishuEndpointCredentials, resolveLangfuseTelemetryConfig, resolveRivusAgentDefinition, resolveRivusProjectSpace, restoreAgentHistory, restoreConfiguredRivusDaemonBootstrap, restrictMemoryScopesForAudience, runRivusDaemonCli, shouldAcceptFeishuEndpointMessage, transitionHumanInteraction, validateProjectSkillCatalog, validateProjectSkillCommand, validateRivusDeploymentManifest };
|