@rivus/agent 0.6.1 → 0.7.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 +12 -0
- package/dist/agent-loop.d.ts +10 -1
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +493 -3
- package/dist/index.js +1589 -79
- package/dist/pi-tool-proxy.d.ts +3 -0
- package/dist/pi.js +3 -0
- package/dist/rivus-daemon-cli.js +163 -23
- package/dist/rivus-plugin-registry.js +227 -3
- package/dist/rivus-plugin.d.ts +8 -0
- package/dist/tool-input-digest.js +2 -0
- package/examples/pi-feishu-deployment.bootstrap.ts +187 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -222,6 +222,7 @@ type FeishuStreamAction = {
|
|
|
222
222
|
} | {
|
|
223
223
|
readonly type: "handoff";
|
|
224
224
|
readonly runId: AgentRunId;
|
|
225
|
+
readonly text?: string;
|
|
225
226
|
} | {
|
|
226
227
|
readonly type: "finish";
|
|
227
228
|
readonly runId: AgentRunId;
|
|
@@ -234,6 +235,7 @@ type FeishuStreamAction = {
|
|
|
234
235
|
readonly type: "cancel";
|
|
235
236
|
readonly runId: AgentRunId;
|
|
236
237
|
readonly reason?: string;
|
|
238
|
+
readonly text?: string;
|
|
237
239
|
};
|
|
238
240
|
interface FeishuStreamProjector {
|
|
239
241
|
apply(event: AgentDomainEvent): ReadonlyArray<FeishuStreamAction>;
|
|
@@ -853,12 +855,16 @@ type AgentInstanceBinding = {
|
|
|
853
855
|
} | {
|
|
854
856
|
readonly kind: "automation";
|
|
855
857
|
readonly automationId: string;
|
|
858
|
+
} | {
|
|
859
|
+
readonly kind: "background-session";
|
|
860
|
+
readonly agentId: string;
|
|
856
861
|
};
|
|
857
862
|
interface AgentInstanceRegistryOptions {
|
|
858
863
|
readonly initialRecords?: ReadonlyArray<AgentInstanceRecord>;
|
|
859
864
|
}
|
|
860
865
|
interface AgentInstanceRegistry {
|
|
861
866
|
resolveAutomation(automationId: string, definition: ResolvedRivusAgentDefinition): AgentInstanceRecord;
|
|
867
|
+
resolveBackgroundSession(agentId: string, definition: ResolvedRivusAgentDefinition): AgentInstanceRecord;
|
|
862
868
|
resolveEndpoint(endpointId: string, definition: ResolvedRivusAgentDefinition): AgentInstanceRecord;
|
|
863
869
|
snapshot(): ReadonlyArray<AgentInstanceRecord>;
|
|
864
870
|
}
|
|
@@ -1355,6 +1361,7 @@ interface FeishuCardRolloverSuccessorRequest {
|
|
|
1355
1361
|
readonly generation: number;
|
|
1356
1362
|
readonly presentationId: string;
|
|
1357
1363
|
readonly run: FeishuAgentRunPreparation;
|
|
1364
|
+
readonly text?: string;
|
|
1358
1365
|
}
|
|
1359
1366
|
interface FeishuCardRolloverStreamPublisher {
|
|
1360
1367
|
flush(runId?: string): Effect.Effect<void, unknown>;
|
|
@@ -1520,6 +1527,7 @@ interface RivusEndpointDefinition {
|
|
|
1520
1527
|
}
|
|
1521
1528
|
interface RivusAgentHostOptions {
|
|
1522
1529
|
readonly automations?: ReadonlyArray<RivusAutomationDefinition>;
|
|
1530
|
+
readonly backgroundSessions?: ReadonlyArray<RivusBackgroundSessionDefinition>;
|
|
1523
1531
|
readonly definitions: ReadonlyArray<ResolvedRivusAgentDefinition>;
|
|
1524
1532
|
readonly endpoints: ReadonlyArray<RivusEndpointDefinition>;
|
|
1525
1533
|
readonly runtimePool: AgentRuntimePool;
|
|
@@ -1528,12 +1536,19 @@ interface RivusAutomationDefinition {
|
|
|
1528
1536
|
readonly definition: ResolvedRivusAgentDefinition;
|
|
1529
1537
|
readonly id: string;
|
|
1530
1538
|
}
|
|
1539
|
+
interface RivusBackgroundSessionDefinition {
|
|
1540
|
+
readonly agentId: string;
|
|
1541
|
+
readonly definition: ResolvedRivusAgentDefinition;
|
|
1542
|
+
}
|
|
1531
1543
|
interface RivusEndpointInput extends AgentRuntimeInput {}
|
|
1532
1544
|
interface RivusAgentHost {
|
|
1545
|
+
cancelBackgroundSession(agentId: string, input: AgentRuntimeCancellation): Promise<boolean>;
|
|
1533
1546
|
cancelEndpoint(endpointId: string, input: AgentRuntimeCancellation): Promise<boolean>;
|
|
1534
1547
|
handleAutomation(automationId: string, input: AgentRuntimeInput): Promise<unknown>;
|
|
1548
|
+
handleBackgroundSession(agentId: string, input: AgentRuntimeInput): Promise<unknown>;
|
|
1535
1549
|
handleEndpoint(endpointId: string, input: RivusEndpointInput): Promise<unknown>;
|
|
1536
1550
|
resolveAutomation(automationId: string): AgentInstanceRecord;
|
|
1551
|
+
resolveBackgroundSession(agentId: string): AgentInstanceRecord;
|
|
1537
1552
|
resolveEndpoint(endpointId: string): AgentInstanceRecord;
|
|
1538
1553
|
}
|
|
1539
1554
|
declare class InvalidRivusEndpointBinding extends Error {
|
|
@@ -1575,6 +1590,18 @@ interface RivusDeploymentManifest {
|
|
|
1575
1590
|
readonly defaultAgentId: string;
|
|
1576
1591
|
readonly defaultEndpointId: string;
|
|
1577
1592
|
readonly projectSpaces?: ReadonlyArray<RivusProjectSpaceDeployment>;
|
|
1593
|
+
readonly backgroundSessions?: RivusBackgroundSessionsDeployment;
|
|
1594
|
+
}
|
|
1595
|
+
interface RivusBackgroundSessionsDeployment {
|
|
1596
|
+
readonly enabled: boolean;
|
|
1597
|
+
readonly required: boolean;
|
|
1598
|
+
readonly stepTimeoutMs: number;
|
|
1599
|
+
readonly maxConcurrentSessions: number;
|
|
1600
|
+
readonly leaseMs: number;
|
|
1601
|
+
readonly leaseRenewalIntervalMs: number;
|
|
1602
|
+
readonly maxConsecutiveFailures: number;
|
|
1603
|
+
readonly retryBackoffMs: number;
|
|
1604
|
+
readonly sessionLifetimeMs: number;
|
|
1578
1605
|
}
|
|
1579
1606
|
type RivusAutomationDeliveryTargetType = "chat_id" | "open_id" | "user_id" | "union_id" | "email";
|
|
1580
1607
|
interface RivusAutomationDelivery {
|
|
@@ -1753,6 +1780,271 @@ interface ScheduledAutomation {
|
|
|
1753
1780
|
}
|
|
1754
1781
|
declare function createScheduledAutomation(options: ScheduledAutomationOptions): ScheduledAutomation;
|
|
1755
1782
|
//#endregion
|
|
1783
|
+
//#region src/domain/background-agent-session.d.ts
|
|
1784
|
+
type BackgroundSessionId = string;
|
|
1785
|
+
type BackgroundSessionPhase = "queued" | "running" | "waiting" | "input-required" | "stopping" | "stopped" | "completed" | "failed" | "reconciliation-required";
|
|
1786
|
+
declare function isBackgroundSessionTerminalPhase(phase: BackgroundSessionPhase): boolean;
|
|
1787
|
+
interface BackgroundSessionLease {
|
|
1788
|
+
readonly owner: string;
|
|
1789
|
+
readonly epoch: number;
|
|
1790
|
+
readonly expiresAt: string;
|
|
1791
|
+
}
|
|
1792
|
+
interface BackgroundSessionOrigin {
|
|
1793
|
+
readonly endpointId: string;
|
|
1794
|
+
readonly tenantKey: string;
|
|
1795
|
+
readonly conversationId?: string;
|
|
1796
|
+
readonly allowedActorOpenIds: ReadonlyArray<string>;
|
|
1797
|
+
readonly memory?: AgentMemoryIdentity;
|
|
1798
|
+
}
|
|
1799
|
+
interface BackgroundSessionAuthority {
|
|
1800
|
+
readonly agentId: string;
|
|
1801
|
+
readonly profileRevision: string;
|
|
1802
|
+
readonly toolGrantRevision: string;
|
|
1803
|
+
readonly policyEpoch: number;
|
|
1804
|
+
readonly memoryScopes: ReadonlyArray<MemoryScope>;
|
|
1805
|
+
readonly projectSpaceId?: string;
|
|
1806
|
+
readonly sessionKey: string;
|
|
1807
|
+
}
|
|
1808
|
+
interface BackgroundSessionTerminalResult {
|
|
1809
|
+
readonly text: string;
|
|
1810
|
+
readonly stepRunId: string;
|
|
1811
|
+
readonly completedAt: string;
|
|
1812
|
+
}
|
|
1813
|
+
interface BackgroundSessionCancellation {
|
|
1814
|
+
readonly reason: string;
|
|
1815
|
+
readonly requestedAt: string;
|
|
1816
|
+
}
|
|
1817
|
+
interface BackgroundSessionState {
|
|
1818
|
+
readonly sessionId: BackgroundSessionId;
|
|
1819
|
+
readonly displayName: string;
|
|
1820
|
+
readonly phase: BackgroundSessionPhase;
|
|
1821
|
+
readonly revision: number;
|
|
1822
|
+
readonly parentRunId: string;
|
|
1823
|
+
readonly sourceMessageId: string;
|
|
1824
|
+
readonly origin: BackgroundSessionOrigin;
|
|
1825
|
+
readonly authority: BackgroundSessionAuthority;
|
|
1826
|
+
readonly prompt: string;
|
|
1827
|
+
readonly stepCount: number;
|
|
1828
|
+
readonly wakeCount: number;
|
|
1829
|
+
readonly currentStepRunId?: string;
|
|
1830
|
+
readonly lastWakeText?: string;
|
|
1831
|
+
readonly pendingInput: ReadonlyArray<string>;
|
|
1832
|
+
readonly wakeAt?: string;
|
|
1833
|
+
readonly lease?: BackgroundSessionLease;
|
|
1834
|
+
readonly cancellation?: BackgroundSessionCancellation;
|
|
1835
|
+
readonly consecutiveFailures: number;
|
|
1836
|
+
readonly result?: BackgroundSessionTerminalResult;
|
|
1837
|
+
readonly errorMessage?: string;
|
|
1838
|
+
readonly reconciliationNote?: string;
|
|
1839
|
+
readonly createdAt: string;
|
|
1840
|
+
readonly updatedAt: string;
|
|
1841
|
+
}
|
|
1842
|
+
declare class BackgroundSessionTransitionDenied extends Error {
|
|
1843
|
+
readonly sessionId: BackgroundSessionId;
|
|
1844
|
+
readonly name = "BackgroundSessionTransitionDenied";
|
|
1845
|
+
constructor(sessionId: BackgroundSessionId, message: string);
|
|
1846
|
+
}
|
|
1847
|
+
interface CreateBackgroundSessionInput {
|
|
1848
|
+
readonly sessionId: BackgroundSessionId;
|
|
1849
|
+
readonly displayName: string;
|
|
1850
|
+
readonly prompt: string;
|
|
1851
|
+
readonly parentRunId: string;
|
|
1852
|
+
readonly sourceMessageId: string;
|
|
1853
|
+
readonly origin: BackgroundSessionOrigin;
|
|
1854
|
+
readonly authority: BackgroundSessionAuthority;
|
|
1855
|
+
readonly now: string;
|
|
1856
|
+
}
|
|
1857
|
+
declare function createBackgroundSession(input: CreateBackgroundSessionInput): BackgroundSessionState;
|
|
1858
|
+
interface ClaimBackgroundSessionInput {
|
|
1859
|
+
readonly lease: BackgroundSessionLease;
|
|
1860
|
+
readonly stepRunId: string;
|
|
1861
|
+
readonly wakeText: string;
|
|
1862
|
+
readonly now: string;
|
|
1863
|
+
}
|
|
1864
|
+
declare function claimBackgroundSession(state: BackgroundSessionState, input: ClaimBackgroundSessionInput): BackgroundSessionState;
|
|
1865
|
+
declare function renewBackgroundSessionLease(state: BackgroundSessionState, lease: BackgroundSessionLease): BackgroundSessionState;
|
|
1866
|
+
declare function releaseBackgroundSessionLease(state: BackgroundSessionState): BackgroundSessionState;
|
|
1867
|
+
interface SuspendBackgroundSessionInput {
|
|
1868
|
+
readonly wakeAt?: string;
|
|
1869
|
+
readonly reason?: string;
|
|
1870
|
+
readonly now: string;
|
|
1871
|
+
}
|
|
1872
|
+
declare function suspendBackgroundSession(state: BackgroundSessionState, input: SuspendBackgroundSessionInput): BackgroundSessionState;
|
|
1873
|
+
declare function completeBackgroundSessionStep(state: BackgroundSessionState, input: {
|
|
1874
|
+
readonly text: string;
|
|
1875
|
+
readonly stepRunId: string;
|
|
1876
|
+
readonly now: string;
|
|
1877
|
+
}): BackgroundSessionState;
|
|
1878
|
+
declare function failBackgroundSessionStep(state: BackgroundSessionState, input: {
|
|
1879
|
+
readonly errorMessage: string;
|
|
1880
|
+
readonly now: string;
|
|
1881
|
+
readonly retryable: boolean;
|
|
1882
|
+
readonly wakeAt?: string;
|
|
1883
|
+
}): BackgroundSessionState;
|
|
1884
|
+
declare function requestBackgroundSessionStop(state: BackgroundSessionState, input: {
|
|
1885
|
+
readonly reason: string;
|
|
1886
|
+
readonly now: string;
|
|
1887
|
+
}): BackgroundSessionState;
|
|
1888
|
+
declare function completeBackgroundSessionStop(state: BackgroundSessionState, input: {
|
|
1889
|
+
readonly now: string;
|
|
1890
|
+
}): BackgroundSessionState;
|
|
1891
|
+
declare function parkBackgroundSessionForReconciliation(state: BackgroundSessionState, input: {
|
|
1892
|
+
readonly reason: string;
|
|
1893
|
+
readonly now: string;
|
|
1894
|
+
}): BackgroundSessionState;
|
|
1895
|
+
declare function resolveBackgroundSessionReconciliation(state: BackgroundSessionState, input: {
|
|
1896
|
+
readonly outcome: "continue" | "stop";
|
|
1897
|
+
readonly now: string;
|
|
1898
|
+
}): BackgroundSessionState;
|
|
1899
|
+
declare function appendBackgroundSessionInput(state: BackgroundSessionState, input: {
|
|
1900
|
+
readonly message: string;
|
|
1901
|
+
readonly now: string;
|
|
1902
|
+
}): BackgroundSessionState;
|
|
1903
|
+
declare function requeueInterruptedBackgroundSessionStep(state: BackgroundSessionState, input: {
|
|
1904
|
+
readonly wakeText: string;
|
|
1905
|
+
readonly now: string;
|
|
1906
|
+
}): BackgroundSessionState;
|
|
1907
|
+
declare function isBackgroundSessionLeaseExpired(state: BackgroundSessionState, now: string): boolean;
|
|
1908
|
+
declare function isBackgroundSessionDue(state: BackgroundSessionState, now: string): boolean;
|
|
1909
|
+
//#endregion
|
|
1910
|
+
//#region src/application/background-session/background-session-repository.d.ts
|
|
1911
|
+
interface BackgroundSessionLeasePrecondition {
|
|
1912
|
+
readonly kind: "absent";
|
|
1913
|
+
}
|
|
1914
|
+
interface BackgroundSessionLeaseRequirement {
|
|
1915
|
+
readonly kind: "held";
|
|
1916
|
+
readonly owner: string;
|
|
1917
|
+
readonly epoch: number;
|
|
1918
|
+
}
|
|
1919
|
+
interface BackgroundSessionLeaseStaleOrAbsent {
|
|
1920
|
+
readonly kind: "absent-or-stale";
|
|
1921
|
+
}
|
|
1922
|
+
interface BackgroundSessionRepository {
|
|
1923
|
+
create(state: BackgroundSessionState): Promise<BackgroundSessionState>;
|
|
1924
|
+
get(sessionId: string): Promise<BackgroundSessionState | undefined>;
|
|
1925
|
+
list(options?: {
|
|
1926
|
+
readonly phase?: BackgroundSessionPhase;
|
|
1927
|
+
readonly limit?: number;
|
|
1928
|
+
}): Promise<ReadonlyArray<BackgroundSessionState>>;
|
|
1929
|
+
update(input: {
|
|
1930
|
+
readonly sessionId: string;
|
|
1931
|
+
readonly expectedRevision: number;
|
|
1932
|
+
readonly expectedLease?: BackgroundSessionLeasePrecondition | BackgroundSessionLeaseRequirement | BackgroundSessionLeaseStaleOrAbsent;
|
|
1933
|
+
readonly now?: string;
|
|
1934
|
+
readonly build: (state: BackgroundSessionState) => BackgroundSessionState;
|
|
1935
|
+
}): Promise<BackgroundSessionState | undefined>;
|
|
1936
|
+
}
|
|
1937
|
+
declare class BackgroundSessionRepositoryConflict extends Error {
|
|
1938
|
+
readonly name = "BackgroundSessionRepositoryConflict";
|
|
1939
|
+
constructor(sessionId: string, message: string);
|
|
1940
|
+
}
|
|
1941
|
+
declare class BackgroundSessionRepositoryCorrupted extends Error {
|
|
1942
|
+
readonly name = "BackgroundSessionRepositoryCorrupted";
|
|
1943
|
+
}
|
|
1944
|
+
interface CreateBackgroundSessionRepositoryOptions {
|
|
1945
|
+
readonly initial?: ReadonlyArray<BackgroundSessionState>;
|
|
1946
|
+
readonly persist?: (state: BackgroundSessionState) => Promise<void>;
|
|
1947
|
+
}
|
|
1948
|
+
declare function createBackgroundSessionRepository(options?: CreateBackgroundSessionRepositoryOptions): BackgroundSessionRepository;
|
|
1949
|
+
//#endregion
|
|
1950
|
+
//#region src/application/background-session/background-session-delivery-store.d.ts
|
|
1951
|
+
type BackgroundSessionDeliveryKind = "progress" | "final" | "stopped" | "failed" | "reconciliation";
|
|
1952
|
+
interface BackgroundSessionDeliveryRecord {
|
|
1953
|
+
readonly deliveryId: string;
|
|
1954
|
+
readonly sessionId: string;
|
|
1955
|
+
readonly kind: BackgroundSessionDeliveryKind;
|
|
1956
|
+
readonly text: string;
|
|
1957
|
+
readonly state: "pending" | "delivered";
|
|
1958
|
+
readonly revision: number;
|
|
1959
|
+
readonly providerMessageId?: string;
|
|
1960
|
+
readonly createdAt: string;
|
|
1961
|
+
}
|
|
1962
|
+
interface BackgroundSessionDeliveryStore {
|
|
1963
|
+
enqueue(input: {
|
|
1964
|
+
readonly deliveryId: string;
|
|
1965
|
+
readonly sessionId: string;
|
|
1966
|
+
readonly kind: BackgroundSessionDeliveryKind;
|
|
1967
|
+
readonly text: string;
|
|
1968
|
+
readonly createdAt: string;
|
|
1969
|
+
}): Promise<BackgroundSessionDeliveryRecord>;
|
|
1970
|
+
pending(): Promise<ReadonlyArray<BackgroundSessionDeliveryRecord>>;
|
|
1971
|
+
markDelivered(deliveryId: string, providerMessageId: string): Promise<BackgroundSessionDeliveryRecord | undefined>;
|
|
1972
|
+
}
|
|
1973
|
+
declare class BackgroundSessionDeliveryConflict extends Error {
|
|
1974
|
+
readonly name = "BackgroundSessionDeliveryConflict";
|
|
1975
|
+
constructor(deliveryId: string, message: string);
|
|
1976
|
+
}
|
|
1977
|
+
interface CreateBackgroundSessionDeliveryStoreOptions {
|
|
1978
|
+
readonly initial?: ReadonlyArray<BackgroundSessionDeliveryRecord>;
|
|
1979
|
+
readonly persist?: (record: BackgroundSessionDeliveryRecord) => Promise<void>;
|
|
1980
|
+
}
|
|
1981
|
+
declare function createBackgroundSessionDeliveryStore(options?: CreateBackgroundSessionDeliveryStoreOptions): BackgroundSessionDeliveryStore;
|
|
1982
|
+
//#endregion
|
|
1983
|
+
//#region src/application/background-session/background-session-supervisor.d.ts
|
|
1984
|
+
interface BackgroundSessionLimits {
|
|
1985
|
+
readonly intervalMs: number;
|
|
1986
|
+
readonly leaseMs: number;
|
|
1987
|
+
readonly leaseRenewalIntervalMs: number;
|
|
1988
|
+
readonly maxConcurrentSessions: number;
|
|
1989
|
+
readonly maxConsecutiveFailures: number;
|
|
1990
|
+
readonly retryBackoffMs: number;
|
|
1991
|
+
readonly sessionLifetimeMs: number;
|
|
1992
|
+
}
|
|
1993
|
+
interface BackgroundSessionStepResult {
|
|
1994
|
+
readonly finalText: string;
|
|
1995
|
+
readonly runId: string;
|
|
1996
|
+
}
|
|
1997
|
+
type BackgroundSessionDeliveryKindForSupervisor = "progress" | "final" | "stopped" | "failed" | "reconciliation";
|
|
1998
|
+
interface BackgroundSessionSupervisorOptions {
|
|
1999
|
+
readonly clock: {
|
|
2000
|
+
now(): string;
|
|
2001
|
+
};
|
|
2002
|
+
readonly config: BackgroundSessionLimits;
|
|
2003
|
+
readonly deliveries: BackgroundSessionDeliveryStore;
|
|
2004
|
+
readonly deliver: (delivery: {
|
|
2005
|
+
readonly deliveryId: string;
|
|
2006
|
+
readonly kind: BackgroundSessionDeliveryKindForSupervisor;
|
|
2007
|
+
readonly sessionId: string;
|
|
2008
|
+
readonly text: string;
|
|
2009
|
+
}) => Promise<{
|
|
2010
|
+
readonly providerMessageId: string;
|
|
2011
|
+
}>;
|
|
2012
|
+
readonly onError?: (error: unknown) => void;
|
|
2013
|
+
readonly repository: BackgroundSessionRepository;
|
|
2014
|
+
readonly runStep: (input: {
|
|
2015
|
+
readonly session: BackgroundSessionState;
|
|
2016
|
+
readonly signal: AbortSignal;
|
|
2017
|
+
readonly wakeText: string;
|
|
2018
|
+
}) => Promise<BackgroundSessionStepResult>;
|
|
2019
|
+
readonly sleep: (ms: number) => Effect.Effect<void>;
|
|
2020
|
+
}
|
|
2021
|
+
interface BackgroundSessionSupervisorStatus {
|
|
2022
|
+
readonly capacity: number;
|
|
2023
|
+
readonly counters: {
|
|
2024
|
+
readonly completed: number;
|
|
2025
|
+
readonly deliveriesDelivered: number;
|
|
2026
|
+
readonly failed: number;
|
|
2027
|
+
readonly started: number;
|
|
2028
|
+
readonly staleLeaseEventsDropped: number;
|
|
2029
|
+
readonly stopped: number;
|
|
2030
|
+
};
|
|
2031
|
+
readonly inFlightSteps: number;
|
|
2032
|
+
readonly oldestDueAt?: string;
|
|
2033
|
+
readonly owner: string;
|
|
2034
|
+
readonly phaseCounts: Readonly<Record<BackgroundSessionPhase, number>>;
|
|
2035
|
+
readonly reconciliationCount: number;
|
|
2036
|
+
readonly repositoryHealthy: boolean;
|
|
2037
|
+
readonly running: boolean;
|
|
2038
|
+
}
|
|
2039
|
+
interface BackgroundSessionSupervisor {
|
|
2040
|
+
recover(): Effect.Effect<void>;
|
|
2041
|
+
start(): Effect.Effect<void>;
|
|
2042
|
+
status(): BackgroundSessionSupervisorStatus;
|
|
2043
|
+
stop(): Effect.Effect<void>;
|
|
2044
|
+
tick(): Effect.Effect<void>;
|
|
2045
|
+
}
|
|
2046
|
+
declare function createBackgroundSessionSupervisor(options: BackgroundSessionSupervisorOptions): BackgroundSessionSupervisor;
|
|
2047
|
+
//#endregion
|
|
1756
2048
|
//#region src/application/deployment/rivus-deployment-daemon.d.ts
|
|
1757
2049
|
interface RivusDeploymentEndpoint {
|
|
1758
2050
|
running(): boolean;
|
|
@@ -1764,6 +2056,12 @@ interface RivusDeploymentAutomation {
|
|
|
1764
2056
|
start(): Promise<void> | void;
|
|
1765
2057
|
stop(): Promise<void> | void;
|
|
1766
2058
|
}
|
|
2059
|
+
interface RivusDeploymentBackgroundSession {
|
|
2060
|
+
running(): boolean;
|
|
2061
|
+
start(): Promise<void> | void;
|
|
2062
|
+
status?(): BackgroundSessionSupervisorStatus;
|
|
2063
|
+
stop(): Promise<void> | void;
|
|
2064
|
+
}
|
|
1767
2065
|
interface CreateRivusDeploymentAutomationInput {
|
|
1768
2066
|
readonly automationId: string;
|
|
1769
2067
|
readonly definition: ResolvedRivusAutomationDefinition;
|
|
@@ -1780,6 +2078,23 @@ interface CreateRivusDeploymentEndpointInput {
|
|
|
1780
2078
|
readonly instanceId: string;
|
|
1781
2079
|
readonly projectSpaceId?: string;
|
|
1782
2080
|
}
|
|
2081
|
+
interface CreateRivusDeploymentBackgroundSessionInput {
|
|
2082
|
+
readonly agentIds: ReadonlyArray<string>;
|
|
2083
|
+
readonly config: RivusBackgroundSessionsDeployment;
|
|
2084
|
+
readonly cancel: (input: {
|
|
2085
|
+
readonly agentId: string;
|
|
2086
|
+
readonly reason?: string;
|
|
2087
|
+
readonly runId: string;
|
|
2088
|
+
readonly sessionKey: SessionKey;
|
|
2089
|
+
}) => Promise<boolean>;
|
|
2090
|
+
readonly run: (input: {
|
|
2091
|
+
readonly agentId: string;
|
|
2092
|
+
readonly invocation: AgentInvocationOrigin;
|
|
2093
|
+
readonly onUpdate?: (update: AgentRunUpdate) => void | Promise<void>;
|
|
2094
|
+
readonly sessionKey: SessionKey;
|
|
2095
|
+
readonly text: string;
|
|
2096
|
+
}) => Promise<unknown>;
|
|
2097
|
+
}
|
|
1783
2098
|
interface CreateRivusDeploymentRuntimeInput extends AgentInstanceRecord {
|
|
1784
2099
|
readonly catalog: RivusPluginCatalog;
|
|
1785
2100
|
readonly definition: ResolvedRivusAgentDefinition;
|
|
@@ -1793,6 +2108,7 @@ interface CreateRivusDeploymentDaemonOptions {
|
|
|
1793
2108
|
readonly createRuntime: (input: CreateRivusDeploymentRuntimeInput) => PooledAgentRuntime | Promise<PooledAgentRuntime>;
|
|
1794
2109
|
readonly createEndpoint: (input: CreateRivusDeploymentEndpointInput) => RivusDeploymentEndpoint | Promise<RivusDeploymentEndpoint>;
|
|
1795
2110
|
readonly createAutomation?: (input: CreateRivusDeploymentAutomationInput) => RivusDeploymentAutomation | Promise<RivusDeploymentAutomation>;
|
|
2111
|
+
readonly createBackgroundSession?: (input: CreateRivusDeploymentBackgroundSessionInput) => RivusDeploymentBackgroundSession | Promise<RivusDeploymentBackgroundSession>;
|
|
1796
2112
|
readonly resolveProjectSpace?: (input: {
|
|
1797
2113
|
readonly declaration: RivusProjectSpaceDeployment;
|
|
1798
2114
|
readonly deploymentRoot: string;
|
|
@@ -1821,6 +2137,7 @@ interface RivusDeploymentDaemonStatus {
|
|
|
1821
2137
|
readonly agents: LoadedRivusDeployment["agents"];
|
|
1822
2138
|
readonly endpoints: ReadonlyArray<RivusDeploymentEndpointStatus>;
|
|
1823
2139
|
readonly automations: ReadonlyArray<RivusDeploymentAutomationStatus>;
|
|
2140
|
+
readonly backgroundSessions?: RivusDeploymentBackgroundSessionStatus;
|
|
1824
2141
|
}
|
|
1825
2142
|
interface RivusDeploymentAutomationStatus {
|
|
1826
2143
|
readonly agentId: string;
|
|
@@ -1831,6 +2148,15 @@ interface RivusDeploymentAutomationStatus {
|
|
|
1831
2148
|
readonly lifecycle: RivusDeploymentAutomationLifecycle;
|
|
1832
2149
|
readonly error?: string;
|
|
1833
2150
|
}
|
|
2151
|
+
interface RivusDeploymentBackgroundSessionStatus {
|
|
2152
|
+
readonly enabled: boolean;
|
|
2153
|
+
readonly required: boolean;
|
|
2154
|
+
readonly running: boolean;
|
|
2155
|
+
readonly lifecycle: RivusDeploymentBackgroundSessionLifecycle;
|
|
2156
|
+
readonly error?: string;
|
|
2157
|
+
readonly supervisor?: BackgroundSessionSupervisorStatus;
|
|
2158
|
+
}
|
|
2159
|
+
type RivusDeploymentBackgroundSessionLifecycle = RivusDeploymentComponentLifecycle;
|
|
1834
2160
|
interface RivusDeploymentDaemon {
|
|
1835
2161
|
readonly deployment: LoadedRivusDeployment;
|
|
1836
2162
|
handleDefault(input: RivusEndpointInput): Promise<unknown>;
|
|
@@ -1861,6 +2187,7 @@ interface RivusDeploymentBootstrapAdapters {
|
|
|
1861
2187
|
readonly initialInstanceRecords?: AgentInstanceRegistryOptions["initialRecords"];
|
|
1862
2188
|
readonly dispose?: () => Promise<void> | void;
|
|
1863
2189
|
readonly createAutomation?: (input: CreateRivusDeploymentAutomationInput) => RivusDeploymentAutomation | Promise<RivusDeploymentAutomation>;
|
|
2190
|
+
readonly createBackgroundSession?: (input: CreateRivusDeploymentBackgroundSessionInput) => RivusDeploymentBackgroundSession | Promise<RivusDeploymentBackgroundSession>;
|
|
1864
2191
|
readonly createRecoveryControl?: () => Promise<RecoveryControl> | RecoveryControl;
|
|
1865
2192
|
readonly createRuntime: (input: CreateRivusDeploymentRuntimeInput) => PooledAgentRuntime | Promise<PooledAgentRuntime>;
|
|
1866
2193
|
readonly createEndpoint: (input: CreateRivusDeploymentEndpointInput) => RivusDeploymentEndpoint | Promise<RivusDeploymentEndpoint>;
|
|
@@ -2080,10 +2407,12 @@ interface FeishuCardKitCancel {
|
|
|
2080
2407
|
readonly cardId: string;
|
|
2081
2408
|
readonly reason?: string;
|
|
2082
2409
|
readonly sequence: number;
|
|
2410
|
+
readonly text?: string;
|
|
2083
2411
|
}
|
|
2084
2412
|
interface FeishuCardKitHandoff {
|
|
2085
2413
|
readonly cardId: string;
|
|
2086
2414
|
readonly sequence: number;
|
|
2415
|
+
readonly text?: string;
|
|
2087
2416
|
}
|
|
2088
2417
|
interface FeishuCardKitClient {
|
|
2089
2418
|
cancel(request: FeishuCardKitCancel): Effect.Effect<void, unknown>;
|
|
@@ -2494,6 +2823,7 @@ declare function createFeishuCotPublisher(options: FeishuCotPublisherOptions): F
|
|
|
2494
2823
|
//#region src/infrastructure/feishu/feishu-cardkit-target-preparation.d.ts
|
|
2495
2824
|
interface FeishuCardTargetCreateOptions {
|
|
2496
2825
|
readonly generation?: number;
|
|
2826
|
+
readonly initialContent?: string;
|
|
2497
2827
|
}
|
|
2498
2828
|
interface FeishuCardTargetCreator {
|
|
2499
2829
|
createTarget(run: FeishuAgentRunPreparation, options?: FeishuCardTargetCreateOptions): Effect.Effect<FeishuCardTarget, unknown>;
|
|
@@ -2575,7 +2905,9 @@ declare function createSequenceRunIds(runIds: ReadonlyArray<AgentRunId>): RunIdG
|
|
|
2575
2905
|
//#endregion
|
|
2576
2906
|
//#region src/application/plugin/rivus-plugin-registry.d.ts
|
|
2577
2907
|
declare function createRivusPluginCatalog(): RivusPluginCatalog;
|
|
2578
|
-
declare function resolveRivusAgentDefinition(catalog: RivusPluginCatalog, deployment: RivusAgentDeployment
|
|
2908
|
+
declare function resolveRivusAgentDefinition(catalog: RivusPluginCatalog, deployment: RivusAgentDeployment, options?: {
|
|
2909
|
+
readonly backgroundSessions?: boolean;
|
|
2910
|
+
}): ResolvedRivusAgentDefinition;
|
|
2579
2911
|
//#endregion
|
|
2580
2912
|
//#region src/application/workspace/workspace-instructions.d.ts
|
|
2581
2913
|
interface WorkspaceRootHandle {
|
|
@@ -2718,6 +3050,155 @@ declare class AgentMemoryError extends Error {
|
|
|
2718
3050
|
}
|
|
2719
3051
|
declare function createAgentMemoryService(options?: AgentMemoryServiceOptions): AgentMemoryService;
|
|
2720
3052
|
//#endregion
|
|
3053
|
+
//#region src/application/background-session/background-session-authority.d.ts
|
|
3054
|
+
declare const BACKGROUND_SESSION_TOOL_IDS: readonly ["background.start", "background.wait", "background.list", "background.status", "background.send", "background.stop"];
|
|
3055
|
+
declare const BACKGROUND_SESSION_START_TOOL_ID = "background.start";
|
|
3056
|
+
declare const BACKGROUND_SESSION_TOOL_PLUGIN_ID = "rivus-core";
|
|
3057
|
+
declare const BACKGROUND_SESSION_TOOL_VERSION = "1.0.0";
|
|
3058
|
+
declare const BACKGROUND_SESSION_SESSION_KEY_PREFIX = "background";
|
|
3059
|
+
declare function createBackgroundSessionKey(sessionId: string): string;
|
|
3060
|
+
declare function createBackgroundSessionStepSourceMessageId(sessionId: string, stepCount: number): string;
|
|
3061
|
+
interface BackgroundSessionToolContract extends RivusResolvedToolDescriptor {}
|
|
3062
|
+
declare function createBackgroundSessionToolContracts(): ReadonlyArray<BackgroundSessionToolContract>;
|
|
3063
|
+
declare function backgroundSessionToolIds(): ReadonlyArray<string>;
|
|
3064
|
+
declare function isBackgroundSessionToolId(toolId: string): boolean;
|
|
3065
|
+
declare function extendBackgroundSessionDefinition(definition: ResolvedRivusAgentDefinition): ResolvedRivusAgentDefinition;
|
|
3066
|
+
declare function narrowBackgroundSessionDefinition(definition: ResolvedRivusAgentDefinition): ResolvedRivusAgentDefinition;
|
|
3067
|
+
//#endregion
|
|
3068
|
+
//#region src/application/background-session/background-session-service.d.ts
|
|
3069
|
+
interface BackgroundSessionSummary {
|
|
3070
|
+
readonly sessionId: string;
|
|
3071
|
+
readonly displayName: string;
|
|
3072
|
+
readonly phase: BackgroundSessionPhase;
|
|
3073
|
+
readonly stepCount: number;
|
|
3074
|
+
readonly wakeAt?: string;
|
|
3075
|
+
readonly createdAt: string;
|
|
3076
|
+
readonly updatedAt: string;
|
|
3077
|
+
}
|
|
3078
|
+
interface BackgroundSessionDetail extends BackgroundSessionSummary {
|
|
3079
|
+
readonly parentRunId: string;
|
|
3080
|
+
readonly pendingInput: ReadonlyArray<string>;
|
|
3081
|
+
readonly result?: BackgroundSessionState["result"];
|
|
3082
|
+
readonly errorMessage?: string;
|
|
3083
|
+
readonly cancellationReason?: string;
|
|
3084
|
+
readonly reconciliationNote?: string;
|
|
3085
|
+
}
|
|
3086
|
+
declare class BackgroundSessionCallerDenied extends Error {
|
|
3087
|
+
readonly name = "BackgroundSessionCallerDenied";
|
|
3088
|
+
constructor(message: string);
|
|
3089
|
+
}
|
|
3090
|
+
interface BackgroundSessionServiceOptions {
|
|
3091
|
+
readonly clock: {
|
|
3092
|
+
now(): string;
|
|
3093
|
+
};
|
|
3094
|
+
readonly deliveries: BackgroundSessionDeliveryStore;
|
|
3095
|
+
readonly repository: BackgroundSessionRepository;
|
|
3096
|
+
}
|
|
3097
|
+
interface BackgroundSessionService {
|
|
3098
|
+
list(input: {
|
|
3099
|
+
readonly context: RivusToolExecutionContext;
|
|
3100
|
+
readonly limit?: number;
|
|
3101
|
+
readonly phase?: BackgroundSessionPhase;
|
|
3102
|
+
}): Promise<ReadonlyArray<BackgroundSessionSummary>>;
|
|
3103
|
+
resolveReconciliation(input: {
|
|
3104
|
+
readonly outcome: "continue" | "stop";
|
|
3105
|
+
readonly sessionId: string;
|
|
3106
|
+
}): Promise<BackgroundSessionSummary>;
|
|
3107
|
+
send(input: {
|
|
3108
|
+
readonly context: RivusToolExecutionContext;
|
|
3109
|
+
readonly message: string;
|
|
3110
|
+
readonly sessionId: string;
|
|
3111
|
+
}): Promise<BackgroundSessionSummary>;
|
|
3112
|
+
start(input: {
|
|
3113
|
+
readonly authority: BackgroundSessionAuthority;
|
|
3114
|
+
readonly context: RivusToolExecutionContext;
|
|
3115
|
+
readonly displayName?: string;
|
|
3116
|
+
readonly prompt: string;
|
|
3117
|
+
readonly sessionId: string;
|
|
3118
|
+
}): Promise<BackgroundSessionSummary>;
|
|
3119
|
+
status(input: {
|
|
3120
|
+
readonly context: RivusToolExecutionContext;
|
|
3121
|
+
readonly sessionId: string;
|
|
3122
|
+
}): Promise<BackgroundSessionDetail>;
|
|
3123
|
+
stop(input: {
|
|
3124
|
+
readonly context: RivusToolExecutionContext;
|
|
3125
|
+
readonly reason?: string;
|
|
3126
|
+
readonly sessionId: string;
|
|
3127
|
+
}): Promise<BackgroundSessionSummary>;
|
|
3128
|
+
wait(input: {
|
|
3129
|
+
readonly context: RivusToolExecutionContext;
|
|
3130
|
+
readonly delayMs?: number;
|
|
3131
|
+
readonly reason?: string;
|
|
3132
|
+
readonly until?: string;
|
|
3133
|
+
}): Promise<BackgroundSessionSummary>;
|
|
3134
|
+
}
|
|
3135
|
+
declare function createBackgroundSessionService(options: BackgroundSessionServiceOptions): BackgroundSessionService;
|
|
3136
|
+
declare function sessionIdFromSessionKey(sessionKey: string): string | undefined;
|
|
3137
|
+
declare function terminalDeliveryId(sessionId: string, kind: BackgroundSessionDeliveryKind): string;
|
|
3138
|
+
declare function progressDeliveryId(sessionId: string, stepCount: number): string;
|
|
3139
|
+
//#endregion
|
|
3140
|
+
//#region src/application/background-session/background-session-tools.d.ts
|
|
3141
|
+
interface CreateBackgroundSessionHostToolsOptions {
|
|
3142
|
+
readonly createSessionId: () => string;
|
|
3143
|
+
readonly definition: ResolvedRivusAgentDefinition;
|
|
3144
|
+
readonly service: BackgroundSessionService;
|
|
3145
|
+
}
|
|
3146
|
+
declare function createBackgroundSessionHostTools(options: CreateBackgroundSessionHostToolsOptions): ReadonlyArray<RivusHostToolDescriptor>;
|
|
3147
|
+
//#endregion
|
|
3148
|
+
//#region src/application/background-session/background-session-config.d.ts
|
|
3149
|
+
declare const DEFAULT_BACKGROUND_SESSION_STEP_TIMEOUT_MS: number;
|
|
3150
|
+
declare const DEFAULT_BACKGROUND_SESSION_MAX_CONCURRENT_SESSIONS = 4;
|
|
3151
|
+
declare const DEFAULT_BACKGROUND_SESSION_LEASE_MS = 30000;
|
|
3152
|
+
declare const DEFAULT_BACKGROUND_SESSION_LEASE_RENEWAL_INTERVAL_MS = 10000;
|
|
3153
|
+
declare const DEFAULT_BACKGROUND_SESSION_MAX_CONSECUTIVE_FAILURES = 3;
|
|
3154
|
+
declare const DEFAULT_BACKGROUND_SESSION_RETRY_BACKOFF_MS = 30000;
|
|
3155
|
+
declare const DEFAULT_BACKGROUND_SESSION_LIFETIME_MS: number;
|
|
3156
|
+
declare const DEFAULT_BACKGROUND_SESSION_SUPERVISOR_INTERVAL_MS = 1000;
|
|
3157
|
+
declare function resolveBackgroundSessionSupervisorIntervalMs(leaseMs: number): number;
|
|
3158
|
+
//#endregion
|
|
3159
|
+
//#region src/infrastructure/persistence/jsonl-background-session-repository.d.ts
|
|
3160
|
+
declare const BACKGROUND_SESSION_JSONL_VERSION = 1;
|
|
3161
|
+
interface OpenJsonlBackgroundSessionRepositoryOptions {
|
|
3162
|
+
readonly filePath: string;
|
|
3163
|
+
readonly compactThreshold?: number;
|
|
3164
|
+
}
|
|
3165
|
+
declare function openJsonlBackgroundSessionRepository(options: OpenJsonlBackgroundSessionRepositoryOptions): Promise<BackgroundSessionRepository>;
|
|
3166
|
+
declare function isBackgroundSessionState(value: unknown): value is BackgroundSessionState;
|
|
3167
|
+
//#endregion
|
|
3168
|
+
//#region src/infrastructure/persistence/jsonl-background-session-delivery-store.d.ts
|
|
3169
|
+
declare const BACKGROUND_SESSION_DELIVERY_JSONL_VERSION = 1;
|
|
3170
|
+
interface OpenJsonlBackgroundSessionDeliveryStoreOptions {
|
|
3171
|
+
readonly filePath: string;
|
|
3172
|
+
readonly compactThreshold?: number;
|
|
3173
|
+
}
|
|
3174
|
+
declare function openJsonlBackgroundSessionDeliveryStore(options: OpenJsonlBackgroundSessionDeliveryStoreOptions): Promise<BackgroundSessionDeliveryStore>;
|
|
3175
|
+
//#endregion
|
|
3176
|
+
//#region src/infrastructure/feishu/feishu-background-session-delivery.d.ts
|
|
3177
|
+
type FeishuBackgroundSessionDeliveryKind = "progress" | "final" | "stopped" | "failed" | "reconciliation";
|
|
3178
|
+
interface FeishuBackgroundSessionDeliveryInput {
|
|
3179
|
+
readonly chatId: string;
|
|
3180
|
+
readonly deliveryId: string;
|
|
3181
|
+
readonly displayName: string;
|
|
3182
|
+
readonly kind: FeishuBackgroundSessionDeliveryKind;
|
|
3183
|
+
readonly sessionId: string;
|
|
3184
|
+
readonly text: string;
|
|
3185
|
+
}
|
|
3186
|
+
interface FeishuBackgroundSessionDelivery {
|
|
3187
|
+
deliver(input: FeishuBackgroundSessionDeliveryInput): Promise<{
|
|
3188
|
+
readonly providerMessageId: string;
|
|
3189
|
+
}>;
|
|
3190
|
+
}
|
|
3191
|
+
declare function createConfiguredFeishuBackgroundSessionDelivery(options: {
|
|
3192
|
+
readonly client: FeishuOpenApiClient;
|
|
3193
|
+
readonly config: RivusDaemonConfig;
|
|
3194
|
+
}): FeishuBackgroundSessionDelivery;
|
|
3195
|
+
declare function createBackgroundSessionCard(input: {
|
|
3196
|
+
readonly displayName: string;
|
|
3197
|
+
readonly kind: FeishuBackgroundSessionDeliveryKind;
|
|
3198
|
+
readonly sessionId: string;
|
|
3199
|
+
readonly text: string;
|
|
3200
|
+
}): FeishuRawCardJson;
|
|
3201
|
+
//#endregion
|
|
2721
3202
|
//#region src/application/memory/rivus-memory-tool.d.ts
|
|
2722
3203
|
interface RivusMemoryTool {
|
|
2723
3204
|
execute(command: {
|
|
@@ -3110,7 +3591,16 @@ type FeishuAgentRunCardInput = {
|
|
|
3110
3591
|
readonly text: string;
|
|
3111
3592
|
} | {
|
|
3112
3593
|
readonly agentName: string;
|
|
3113
|
-
readonly
|
|
3594
|
+
readonly reason?: string;
|
|
3595
|
+
readonly status: "cancelled";
|
|
3596
|
+
readonly text?: string;
|
|
3597
|
+
} | {
|
|
3598
|
+
readonly agentName: string;
|
|
3599
|
+
readonly status: "failed";
|
|
3600
|
+
} | {
|
|
3601
|
+
readonly agentName: string;
|
|
3602
|
+
readonly status: "handoff";
|
|
3603
|
+
readonly text?: string;
|
|
3114
3604
|
};
|
|
3115
3605
|
declare function createFeishuAgentRunCard(input: FeishuAgentRunCardInput): FeishuRawCardJson;
|
|
3116
3606
|
//#endregion
|
|
@@ -3128,4 +3618,4 @@ interface ConfiguredFeishuHumanInteractionPresenterOptions {
|
|
|
3128
3618
|
}
|
|
3129
3619
|
declare function createConfiguredFeishuHumanInteractionPresenter(options: ConfiguredFeishuHumanInteractionPresenterOptions): HumanInteractionPresenter;
|
|
3130
3620
|
//#endregion
|
|
3131
|
-
export { type ActiveAgentRun, type AgentClientAttempt, type AgentClientFailure, type AgentClientSuccess, type AgentClock, AgentContextBudgetExceeded, type AgentContextInput, type AgentContextLayer, type AgentContextLayerKind, type AgentConversationMessagesOptions, type AgentDomainEvent, type AgentDomainEventCallback, type AgentDomainEventHandler, type AgentDomainEventListener, type AgentDomainEventSink, type AgentDomainEventSinkCallback, AgentEventHandlerFailed, type AgentEventLog, type AgentEventLogOperation, AgentEventLogStoreError, AgentEventSinkFailed, type AgentHarness, type AgentHarnessAvailability, AgentHarnessBusy, type AgentHarnessBusyAvailability, type AgentHarnessClient, type AgentHarnessError, type AgentHarnessIdleAvailability, type AgentHarnessOptions, type AgentHistory, type AgentHistoryEventLog, AgentInstanceBusy, AgentInstanceConflict, type AgentInstanceRecord, type AgentInstanceRegistry, type AgentInstanceRegistryOptions, type AgentInvocationOrigin, type AgentLoop, type AgentLoopCallback, type AgentLoopCallbackOutput, type AgentLoopCallbackResult, type AgentLoopEvent, type AgentLoopEventLike, AgentLoopFailed, type AgentLoopInput, type AgentLoopModelExecutionEnd, type AgentLoopModelExecutionEndOptions, type AgentLoopModelExecutionStart, type AgentLoopModelExecutionStartOptions, type AgentLoopSkillExecutionEnd, type AgentLoopSkillExecutionEndOptions, type AgentLoopSkillExecutionStart, type AgentLoopSkillExecutionStartOptions, type AgentLoopTextDelta, type AgentLoopThinkingDelta, type AgentLoopToolExecutionEnd, type AgentLoopToolExecutionEndOptions, type AgentLoopToolExecutionStart, type AgentLoopToolExecutionStartOptions, type AgentLoopToolExecutionUpdate, type AgentLoopToolExecutionUpdateOptions, type AgentMemoryAuthority, AgentMemoryError, type AgentMemoryHandle, type AgentMemoryIdentity, type AgentMemoryService, type AgentMemoryServiceOptions, type AgentMemorySnapshot, type AgentModelContentObserver, type AgentModelExecutionEnded, type AgentModelExecutionEvent, type AgentModelExecutionStarted, type AgentModelInputObservation, type AgentModelOutputObservation, type AgentModelUsage, type AgentPromptResult, type AgentRunAccepted, AgentRunCancelled, type AgentRunCancelled$1 as AgentRunCancelledEvent, type AgentRunCompleted, type AgentRunFailed, type AgentRunId, type AgentRunPhase, type AgentRunSnapshot, type AgentRunState, type AgentRunSummary, type AgentRunUpdate, type AgentRunUpdateCallback, type AgentRunUpdateHandler, type AgentRunUpdateListener, type AgentRuntime, type AgentRuntimeCancellation, AgentRuntimeDisposed, type AgentRuntimeInput, type AgentRuntimePool, type AgentRuntimePoolOptions, type AgentSessionAvailability, type AgentSessionBusyAvailability, type AgentSessionClient, type AgentSessionHandle, type AgentSessionOtherBusyAvailability, type AgentSessionOwnedBusyAvailability, type AgentSessionSnapshot, type AgentSessionSummary, type AgentSkillExecutionEnded, type AgentSkillExecutionStarted, type AgentSkillExecutionState, type AgentTextDeltaCallback, type AgentToolExecutionEnded, type AgentToolExecutionEvent, type AgentToolExecutionStarted, type AgentToolExecutionUpdated, type AgentTranscript, type AgentTranscriptMessage, type AgentTranscriptMessageRole, type AgentTranscriptTurn, type AgentTurnCompleted, type AgentTurnStarted, type ApprovedHumanInteractionState, type AssembledAgentContext, type AssistantTextDelta, type AssistantThinkingDelta, type AsyncIterableAgentLoopOptions, type AuthorizationPolicyProvider, type AuthorizationPolicyState, type AutomationAgentInvocationOrigin, type AutomationBinding, type AutomationDeliveryBinding, type AutomationMandate, AutomationMandateError, type AutomationMandateStore, type AutomationOutcome, type AutomationTick, type AutomationTickRecord, type AutomationTickRepository, type AutomationTickStatus, type CancelledHumanInteractionState, type CardPresentation, type CardPresentationChain, type CardPresentationStatus, CardPresentationTransitionDenied, type CommitAutomationOutcomeInput, type CommittedAutomationOutcome, CompactionError, type CompactionInput, type CompactionService, type CompactionSnapshot, type CompactorPort, type CompositeRivusDaemonTransportOptions, type ConfiguredFeishuCardKitPublisherOptions, type ConfiguredFeishuCardRolloverRuntime, type ConfiguredFeishuCardRolloverRuntimeOptions, type ConfiguredFeishuHumanInteractionPresenterOptions, type ConfiguredFeishuOpenApiRequest, type ConfiguredFeishuOpenApiResponse, type ConfiguredRivusDaemonBootstrap, type ConfiguredRivusDaemonBootstrapOptions, type ConfiguredRivusDaemonBootstrapRequest, type ConfiguredRivusDaemonBootstrapResponse, type ConsumeToolApprovalInput, type CreateConfiguredRivusDeploymentDaemonOptions, type CreateRivusDeploymentAutomationInput, type CreateRivusDeploymentDaemonOptions, type CreateRivusDeploymentEndpointInput, type CreateRivusDeploymentRuntimeInput, DEFAULT_CARD_STREAM_LEASE_MS, type DailyAutomationSchedule, type DeadLetterRecoveryItem, type DeadLetterRequeueResult, type DefaultAgentHarnessClientFromCallbackOptions, type DefaultAgentHarnessClientFromTextCallbackOptions, type DefaultAgentHarnessClientOptions, type DefaultAgentHarnessFromCallbackOptions, type DefaultAgentHarnessFromTextCallbackOptions, type DefaultAgentHarnessOptions, type DefaultAgentRuntimeFromCallbackOptions, type DefaultAgentRuntimeFromTextCallbackOptions, type DefaultAgentRuntimeOptions, type DefaultAgentRuntimeSessionOptions, DelegationDenied, type DelegationEdge, type DelegationGrant, type DelegationRequest, type DelegationService, type DeliveryJob, type DeliveryJobStatus, type DeliveryOutbox, DeliveryOutboxError, type EventAgentLoopOptions, type ExpiredHumanInteractionState, type FeishuAgentCommand, type FeishuAgentDaemon, type FeishuAgentDaemonCancelResult, type FeishuAgentDaemonHandleMessageOptions, type FeishuAgentDaemonHandleResult, type FeishuAgentDaemonInteractionResult, type FeishuAgentDaemonOptions, type FeishuAgentDaemonRunResult, type FeishuAgentDaemonSkippedResult, type FeishuAgentExecution, type FeishuAgentExecutionResult, type FeishuAgentInvocationOrigin, type FeishuAgentMessageSideEffects, type FeishuAgentRunCardInput, type FeishuAgentRunPreparation, type FeishuAgentRuntime, type FeishuAgentRuntimeOptions, type FeishuAutomationCardInput, type FeishuAutomationCardSender, type FeishuCancelMessageIntakeSummary, type FeishuCancelRunCommand, type FeishuCardActionCallbackResponse, type FeishuCardActionCommand, type FeishuCardActionIntakeError, type FeishuCardActionToast, type FeishuCardActionTriggerPayload, type FeishuCardDeliveryLedger, type FeishuCardDeliveryLedgerStateOptions, type FeishuCardDeliveryReconciler, type FeishuCardDeliveryReconcilerOptions, type FeishuCardDeliveryRecord, type FeishuCardKitCancel, type FeishuCardKitClient, type FeishuCardKitFail, type FeishuCardKitFinish, type FeishuCardKitHandoff, type FeishuCardKitOpenApiClientOptions, type FeishuCardKitOpenApiTargetCreatorOptions, type FeishuCardKitPublisher, type FeishuCardKitPublisherOptions, type FeishuCardKitTextUpdate, type FeishuCardPresentationBinder, type FeishuCardPresentationHandoffStart, FeishuCardPresentationNotFound, type FeishuCardPresentationStore, type FeishuCardPresentationStoreOptions, type FeishuCardRollover, type FeishuCardRolloverCounters, type FeishuCardRolloverEvent, type FeishuCardRolloverEventType, type FeishuCardRolloverHandoffResult, type FeishuCardRolloverOptions, type FeishuCardRolloverStatus, type FeishuCardRolloverSupervisor, type FeishuCardRolloverSupervisorOptions, type FeishuCardTarget, type FeishuCardTargetCreateOptions, type FeishuCardTargetCreator, FeishuCardTargetNotFound, type FeishuCardTargetPreparationOptions, type FeishuCardTargetRegistry, type FeishuCardTargetRegistryOperation, FeishuCardTargetRegistryStoreError, type FeishuCoalescingPublisher, type FeishuCoalescingPublisherOptions, type FeishuConversationReference, FeishuCotProtocolError, type FeishuCotPublisher, type FeishuCotPublisherOptions, type FeishuCotRunPreparation, type FeishuDeploymentEndpointOptions, FeishuEndpointCredentialError, type FeishuEndpointCredentials, type FeishuEndpointGroupPolicy, type FeishuEventHandlerCardActions, type FeishuEventHandlerQueue, type FeishuEventHandlers, type FeishuEventHandlersOptions, type FeishuHumanInteractionActions, type FeishuHumanInteractionPresenterOptions, type FeishuInboxCompletedState, type FeishuInboxDeadState, type FeishuInboxDelivery, type FeishuInboxDeliveryState, type FeishuInboxLeasedState, type FeishuInboxPendingState, type FeishuInboxRepository, type FeishuInboxRepositoryStateOptions, type FeishuMessageAcceptResult, type FeishuMessageDrainResult, type FeishuMessageIntakeBaseSummary, type FeishuMessageIntakeError, type FeishuMessageIntakeOptions, type FeishuMessageIntakeSummary, type FeishuMessageQueue, type FeishuMessageQueueOptions, type FeishuMessageWorker, type FeishuMessageWorkerDrainAvailableResult, type FeishuMessageWorkerOptions, type FeishuMessageWorkerQueue, type FeishuOpenApiClient, FeishuOpenApiError, type FeishuOpenApiRequest, type FeishuOpenApiResponse, type FeishuPeriodicFlush, type FeishuPeriodicFlushOptions, type FeishuPeriodicFlushSupervisor, type FeishuPresentationPreparationOptions, type FeishuPromptAgentCommand, type FeishuPromptMessageIntakeSummary, type FeishuRawCardJson, type FeishuReceiveAcceptedObservation, type FeishuReceiveHandledObservation, type FeishuReceiveMessageHandlerPayload, type FeishuReceiveMessagePayload, type FeishuReceiveMessageReplayOptions, type FeishuReceiveMessageReplayResult, type FeishuReceiveMessageSummary, type FeishuReceiveRuntimeStatus, type FeishuResolveInteractionCommand, type FeishuSdkReceiveMessagePayload, type FeishuSessionReference, type FeishuStreamAction, type FeishuStreamActionPublisher, type FeishuStreamProjector, FeishuTenantAccessTokenError, type FeishuTenantAccessTokenProvider, type FeishuTenantAccessTokenProviderOptions, type FeishuTenantAccessTokenRequest, type FeishuTenantAccessTokenResponse, type FeishuTextReplySender, type FeishuWebSocketClient, type FeishuWebSocketClientStartOptions, type FeishuWebSocketDaemon, type FeishuWebSocketDaemonOptions, type FeishuWebSocketEventDispatcher, type FeishuWebSocketRuntime, type FeishuWorkerLoop, type FeishuWorkerLoopOptions, type FetchLike, type FetchLikeResponse, type HumanInteraction, type HumanInteractionActor, type HumanInteractionBase, type HumanInteractionClock, type HumanInteractionEndpointRegistry, type HumanInteractionFact, type HumanInteractionId, type HumanInteractionPresenter, type HumanInteractionRepository, HumanInteractionRepositoryError, type HumanInteractionResolutionAction, type HumanInteractionService, type HumanInteractionServiceOptions, type HumanInteractionTransition, HumanInteractionTransitionDenied, InvalidFeishuCardAction, InvalidFeishuMessageContent, InvalidFeishuSessionReference, InvalidInvocationAuthority, InvalidProjectSkillCatalog, InvalidRecoveryAction, InvalidRivusEndpointBinding, InvalidRivusPlugin, InvalidRivusProjectSpace, InvalidStableJson, InvalidToolInput, InvalidWorkspaceRoot, type InvocationAuthority, type InvocationAuthorityRef, type JsonFetchRequestOptions, type JsonFileFeishuCardTargetRegistryOptions, type JsonHttpRequest, type JsonHttpResponse, type JsonlAgentEventLogOptions, type JsonlFeishuCardDeliveryLedgerOptions, type JsonlFeishuInboxRepositoryOptions, type JsonlHumanInteractionRepositoryOptions, type JsonlRecoveryControlOptions, type LangfuseAgentTelemetry, type LangfuseTelemetryConfig, LangfuseTelemetryConfigError, type LangfuseTelemetryContentMode, type LangfuseTelemetryEnv, type LoadRivusDeploymentManifestOptions, type LoadRivusDeploymentOptions, type LoadedRivusDeployment, type LocalCliAgentInvocationOrigin, MEMORY_SCOPES, type MemoryBinding, type MemoryInvocationAudience, type MemoryRecord, type MemoryScope, type MemorySearchQuery, type MemoryState, type MemoryTombstoneReceipt, OpenClawEnvImportError, type OpenClawEnvImportOptions, type OpenClawEnvImportResult, type OpenJsonAutomationTickRepositoryOptions, type OpenTelemetryAgentEventSinkOptions, type OpenTelemetryAgentTelemetry, type PendingHumanInteractionState, type PiAgentLoopOptions, type PiAgentSession, type PiAgentSessionEvent, type PiAgentSessionHandle, type PiCreateAgentSessionResult, type PiSdkAgentLoopOptions, type PiSessionRegistry, type PiSessionRegistryOptions, PluginStateConflict, type PluginStateRecord, type PluginStateStore, type PooledAgentRuntime, type ProjectMemoryPromptInput, type ProjectMemoryRecallIdentity, type ProjectMemoryRecallOptions, type ProjectSkillCatalogDiagnostic, type ProjectSkillCatalogEntry, type PromptCommand, type PutPluginState, RIVUS_MEMORY_TOOL_ID, RIVUS_MEMORY_TOOL_PLUGIN_ID, RIVUS_MEMORY_TOOL_VERSION, RIVUS_PLUGIN_API_VERSION, type RateLimitedFeishuPublisherOptions, type RecoveryAction, type RecoveryControl, type RecoveryControlOptions, type RecoverySnapshot, type RegisteredRivusAgentProfile, type RegisteredRivusAutomation, type RegisteredRivusPlugin, type RegisteredRivusSkill, type RegisteredRivusTool, type RejectedHumanInteractionState, type RequestToolApprovalInput, type RequestUserDecisionInput, type ResolveHumanInteractionInput, type ResolvedRivusAgentDefinition, type ResolvedRivusAutomationDefinition, type ResolvedRivusProjectSpace, type RivusAgentDeployment, type RivusAgentDeploymentStatus, type RivusAgentHost, type RivusAgentHostOptions, type RivusAgentProfile, type RivusAutomationDelivery, type RivusAutomationDeliveryTargetType, type RivusAutomationDeployment, type RivusAutomationInput, type RivusAutomationTemplate, type RivusAutomationTickContext, type RivusDaemonBootstrapContext, type RivusDaemonBootstrapFactory, type RivusDaemonBootstrapModule, type RivusDaemonCliOptions, type RivusDaemonCliWriter, type RivusDaemonConfig, RivusDaemonConfigError, type RivusDaemonConfigLoaderOptions, type RivusDaemonEnv, type RivusDaemonFeishuReplayRunner, type RivusDaemonProcess, type RivusDaemonProcessOptions, type RivusDaemonPromptRunner, type RivusDaemonRecoveryRunner, type RivusDaemonShutdownController, type RivusDaemonShutdownControllerOptions, type RivusDaemonShutdownSignal, type RivusDaemonSignalSource, type RivusDaemonStatus, type RivusDaemonStatusHttpServer, type RivusDaemonStatusHttpServerOptions, type RivusDaemonStatusReporter, type RivusDaemonStatusReporterOptions, type RivusDaemonTransport, type RivusDaemonWorkerLoop, type RivusDeploymentAutomation, type RivusDeploymentAutomationLifecycle, RivusDeploymentAutomationReadinessError, type RivusDeploymentAutomationStatus, type RivusDeploymentBootstrapAdapters, type RivusDeploymentBootstrapContext, type RivusDeploymentBootstrapFactory, type RivusDeploymentCliProcess, type RivusDeploymentComponentLifecycle, type RivusDeploymentDaemon, type RivusDeploymentDaemonLifecycle, RivusDeploymentDaemonLifecycleError, type RivusDeploymentDaemonStatus, type RivusDeploymentEndpoint, type RivusDeploymentEndpointLifecycle, type RivusDeploymentEndpointStatus, type RivusDeploymentManifest, RivusDeploymentManifestError, RivusDeploymentReadinessError, type RivusEndpointDefinition, type RivusEndpointDeployment, type RivusEndpointExperimentalFeatures, type RivusEndpointInput, type RivusEnvFileVariables, type RivusHostToolDescriptor, type RivusMemoryTool, type RivusPlugin, type RivusPluginCatalog, type RivusPluginCatalogSnapshot, RivusPluginConformanceError, type RivusPluginConformanceInput, type RivusPluginConformanceReport, type RivusPluginDeclaration, type RivusPluginLifecycleProbe, RivusPluginLoadError, type RivusPluginLoadStatus, type RivusPluginManifest, type RivusPluginModule, type RivusPluginModuleLoadRequest, type RivusPluginRegistry, type RivusProjectSpaceDeployment, type RivusResolvedToolDescriptor, type RivusSkillDescriptor, type RivusSkillGrantSet, type RivusTextFileReader, type RivusThinkingLevel, type RivusToolDescriptor, type RivusToolExecutionContext, type RivusToolExecutor, type RivusToolFactoryContext, type RivusToolGrantSet, type RivusToolIdempotency, RivusToolInputRejected, type RivusToolRisk, type RunIdGenerator, type ScheduledAutomation, type ScheduledAutomationClock, type ScheduledAutomationDeliveryInput, type ScheduledAutomationOptions, type ScheduledAutomationRunInput, type ScheduledAutomationRunResult, type SelectedHumanInteractionState, type SessionKey, type SessionScheduler, SessionSchedulerCapacityExceeded, SessionSchedulerDisposed, type SessionSchedulerOptions, type SessionSchedulerStatus, type SpawnSubagentRequest, type SubagentCoordinator, type SubagentRecord, type TelemetryContentRedactor, type TelemetryContentRedactorOptions, type TerminalAgentDomainEvent, type TextAgentLoopCallback, type TextAgentLoopOptions, type ToolApprovalBinding, type ToolApprovalInteraction, type ToolApprovalInteractionState, type ToolApprovalRequest, type ToolApprovalService, type ToolBroker, type ToolBrokerOptions, type ToolExecutionRequest, ToolInvocationDenied, type ToolOperationBeginResult, type ToolOperationBinding, type ToolOperationInspectResult, type ToolOperationLedger, type ToolOperationReconciliation, type ToolOperationReconciliationOutcome, type ToolOperationRecord, type ToolOperationRecoveryItem, type ToolOperationResolutionResult, type ToolOperationState, UnsupportedFeishuCardAction, UnsupportedFeishuMessage, type UserDecisionInteraction, type UserDecisionInteractionState, type UserDecisionOption, type WorkspaceInstructionSource, type WorkspaceInstructionsDiagnostic, type WorkspaceInstructionsDiagnosticCode, type WorkspaceInstructionsProvider, type WorkspaceInstructionsRequest, WorkspaceInstructionsSourceError, type WorkspaceInstructionsView, type WorkspaceRootHandle, acceptsCardPresentationProgress, activeCardPresentation, assembleAgentContext, assertRivusPluginConforms, commitAutomationOutcome, createAgentCommandFromFeishuCardAction, createAgentCommandFromFeishuMessage, createAgentConversationMessages, createAgentDomainEventHandler, createAgentDomainEventSink, createAgentDomainEventSinkFromCallback, createAgentHarness, createAgentHarnessClient, createAgentHarnessPooledRuntime, createAgentInstanceRegistry, createAgentLoopFromCallback, createAgentLoopModelExecutionEnd, createAgentLoopModelExecutionStart, createAgentLoopPromptTransformer, createAgentLoopSkillExecutionEnd, createAgentLoopSkillExecutionStart, createAgentLoopTextDelta, createAgentLoopThinkingDelta, createAgentLoopToolExecutionEnd, createAgentLoopToolExecutionStart, createAgentLoopToolExecutionUpdate, createAgentMemoryService, createAgentRunUpdateHandler, createAgentRuntime, createAgentRuntimePool, createAgentTranscriptMessages, createAgentTranscriptTurn, createAgentsMdInstructionsProvider, createAsyncIterableAgentLoop, createAutomationMandateStore, createCoalescingFeishuPublisher, createCompactionService, createCompositeRivusDaemonTransport, createConfiguredFeishuAutomationCardSender, createConfiguredFeishuCardKitPublisher, createConfiguredFeishuCardKitTargetCreator, createConfiguredFeishuCardRolloverRuntime, createConfiguredFeishuHumanInteractionPresenter, createConfiguredFeishuOpenApiClient, createConfiguredFeishuTextReplySender, createConfiguredRivusDaemonBootstrap, createConfiguredRivusDeploymentDaemon, createDailyAutomationSchedule, createDefaultAgentHarness, createDefaultAgentHarnessClient, createDefaultAgentHarnessClientFromCallback, createDefaultAgentHarnessClientFromTextCallback, createDefaultAgentHarnessFromCallback, createDefaultAgentHarnessFromTextCallback, createDefaultAgentRuntime, createDefaultAgentRuntimeFromCallback, createDefaultAgentRuntimeFromTextCallback, createDelegationService, createDeliveryOutbox, createEventAgentLoop, createFakeRivusPlugin, createFeishuAgentDaemon, createFeishuAgentRunCard, createFeishuAgentRuntime, createFeishuCardActionCallbackResponse, createFeishuCardActionErrorResponse, createFeishuCardDeliveryLedger, createFeishuCardDeliveryReconciler, createFeishuCardKitOpenApiClient, createFeishuCardKitOpenApiTargetCreator, createFeishuCardKitPublisher, createFeishuCardPresentationStore, createFeishuCardRollover, createFeishuCardRolloverSupervisor, createFeishuCardTargetPreparation, createFeishuConversationId, createFeishuCotPublisher, createFeishuDeploymentEndpoint, createFeishuEventHandlers, createFeishuHumanInteractionCard, createFeishuHumanInteractionPresenter, createFeishuInboxRepository, createFeishuMessageQueue, createFeishuMessageWorker, createFeishuOpenApiClient, createFeishuPeriodicFlush, createFeishuPresentationPreparation, createFeishuSessionKey, createFeishuStreamProjector, createFeishuTenantAccessTokenProvider, createFeishuWebSocketDaemon, createFeishuWorkerLoop, createFixedClock, createHumanInteractionEndpointRegistry, createHumanInteractionService, createHumanInteractionToolApprovalGateway, createInMemoryFeishuCardTargetRegistry, createInMemoryHumanInteractionRepository, createInvocationAuthority, createJsonFetchRequest, createJsonFileFeishuCardTargetRegistry, createJsonlAgentEventLog, createJsonlHumanInteractionRepository, createLangfuseAgentTelemetry, createLazyFeishuWebSocketEventDispatcher, createMemoryNamespace, createOpenTelemetryAgentEventSink, createOpenTelemetryAgentTelemetry, createPiAgentLoop, createPiSdkAgentLoop, createPiSessionRegistry, createPluginStateStore, createProjectMemoryPromptPreparer, createRateLimitedFeishuPublisher, createRecoveryAction, createRecoveryControl, createRivusAgentHost, createRivusDaemonProcess, createRivusDaemonShutdownController, createRivusDaemonStatusHttpServer, createRivusDaemonStatusReporter, createRivusDeploymentCliProcess, createRivusDeploymentDaemon, createRivusEnvFromOpenClawConfig, createRivusMemoryTool, createRivusMemoryToolContract, createRivusMemoryToolDescriptor, createRivusPluginCatalog, createRoutedHumanInteractionToolApprovalService, createScheduledAutomation, createSequenceRunIds, createSessionScheduler, createSubagentCoordinator, createSystemClock, createTelemetryContentRedactor, createTestClock, createTextAgentLoop, createTextAgentLoopFromCallback, createToolBroker, createToolInputDigest, createToolOperationLedger, createUuidRunIds, createWorkspaceRootHandle, describeFeishuMessageIntake, evolveAgentRun, formatRivusEnvFile, initialAgentRunState, intersectToolIds, isAgentToolExecutionEvent, isAssistantTextDeltaEvent, isAssistantThinkingDeltaEvent, isCardPresentationHandoffDue, isTerminalAgentDomainEvent, isTerminalAgentRunPhase, loadNodeRivusPluginModule, loadRivusDaemonConfig, loadRivusDeployment, loadRivusDeploymentManifest, normalizeStableJson, openJsonAutomationTickRepository, openJsonlAgentMemoryService, openJsonlFeishuCardDeliveryLedger, openJsonlFeishuInboxRepository, openJsonlRecoveryControl, openJsonlToolOperationLedger, replayAgentHistory, replayAgentTranscript, requiresToolApproval, resolveFeishuEndpointCredentials, resolveLangfuseTelemetryConfig, resolveRivusAgentDefinition, resolveRivusProjectSpace, restoreAgentHistory, restoreConfiguredRivusDaemonBootstrap, restrictMemoryScopesForAudience, runRivusDaemonCli, shouldAcceptFeishuEndpointMessage, transitionHumanInteraction, validateProjectSkillCatalog, validateProjectSkillCommand, validateRivusDeploymentManifest };
|
|
3621
|
+
export { type ActiveAgentRun, type AgentClientAttempt, type AgentClientFailure, type AgentClientSuccess, type AgentClock, AgentContextBudgetExceeded, type AgentContextInput, type AgentContextLayer, type AgentContextLayerKind, type AgentConversationMessagesOptions, type AgentDomainEvent, type AgentDomainEventCallback, type AgentDomainEventHandler, type AgentDomainEventListener, type AgentDomainEventSink, type AgentDomainEventSinkCallback, AgentEventHandlerFailed, type AgentEventLog, type AgentEventLogOperation, AgentEventLogStoreError, AgentEventSinkFailed, type AgentHarness, type AgentHarnessAvailability, AgentHarnessBusy, type AgentHarnessBusyAvailability, type AgentHarnessClient, type AgentHarnessError, type AgentHarnessIdleAvailability, type AgentHarnessOptions, type AgentHistory, type AgentHistoryEventLog, AgentInstanceBusy, AgentInstanceConflict, type AgentInstanceRecord, type AgentInstanceRegistry, type AgentInstanceRegistryOptions, type AgentInvocationOrigin, type AgentLoop, type AgentLoopCallback, type AgentLoopCallbackOutput, type AgentLoopCallbackResult, type AgentLoopEvent, type AgentLoopEventLike, AgentLoopFailed, type AgentLoopInput, type AgentLoopModelExecutionEnd, type AgentLoopModelExecutionEndOptions, type AgentLoopModelExecutionStart, type AgentLoopModelExecutionStartOptions, type AgentLoopSkillExecutionEnd, type AgentLoopSkillExecutionEndOptions, type AgentLoopSkillExecutionStart, type AgentLoopSkillExecutionStartOptions, type AgentLoopTextDelta, type AgentLoopThinkingDelta, type AgentLoopToolExecutionEnd, type AgentLoopToolExecutionEndOptions, type AgentLoopToolExecutionStart, type AgentLoopToolExecutionStartOptions, type AgentLoopToolExecutionUpdate, type AgentLoopToolExecutionUpdateOptions, type AgentMemoryAuthority, AgentMemoryError, type AgentMemoryHandle, type AgentMemoryIdentity, type AgentMemoryService, type AgentMemoryServiceOptions, type AgentMemorySnapshot, type AgentModelContentObserver, type AgentModelExecutionEnded, type AgentModelExecutionEvent, type AgentModelExecutionStarted, type AgentModelInputObservation, type AgentModelOutputObservation, type AgentModelUsage, type AgentPromptResult, type AgentRunAccepted, AgentRunCancelled, type AgentRunCancelled$1 as AgentRunCancelledEvent, type AgentRunCompleted, type AgentRunFailed, type AgentRunId, type AgentRunPhase, type AgentRunSnapshot, type AgentRunState, type AgentRunSummary, type AgentRunUpdate, type AgentRunUpdateCallback, type AgentRunUpdateHandler, type AgentRunUpdateListener, type AgentRuntime, type AgentRuntimeCancellation, AgentRuntimeDisposed, type AgentRuntimeInput, type AgentRuntimePool, type AgentRuntimePoolOptions, type AgentSessionAvailability, type AgentSessionBusyAvailability, type AgentSessionClient, type AgentSessionHandle, type AgentSessionOtherBusyAvailability, type AgentSessionOwnedBusyAvailability, type AgentSessionSnapshot, type AgentSessionSummary, type AgentSkillExecutionEnded, type AgentSkillExecutionStarted, type AgentSkillExecutionState, type AgentTextDeltaCallback, type AgentToolExecutionEnded, type AgentToolExecutionEvent, type AgentToolExecutionStarted, type AgentToolExecutionUpdated, type AgentTranscript, type AgentTranscriptMessage, type AgentTranscriptMessageRole, type AgentTranscriptTurn, type AgentTurnCompleted, type AgentTurnStarted, type ApprovedHumanInteractionState, type AssembledAgentContext, type AssistantTextDelta, type AssistantThinkingDelta, type AsyncIterableAgentLoopOptions, type AuthorizationPolicyProvider, type AuthorizationPolicyState, type AutomationAgentInvocationOrigin, type AutomationBinding, type AutomationDeliveryBinding, type AutomationMandate, AutomationMandateError, type AutomationMandateStore, type AutomationOutcome, type AutomationTick, type AutomationTickRecord, type AutomationTickRepository, type AutomationTickStatus, BACKGROUND_SESSION_DELIVERY_JSONL_VERSION, BACKGROUND_SESSION_JSONL_VERSION, BACKGROUND_SESSION_SESSION_KEY_PREFIX, BACKGROUND_SESSION_START_TOOL_ID, BACKGROUND_SESSION_TOOL_IDS, BACKGROUND_SESSION_TOOL_PLUGIN_ID, BACKGROUND_SESSION_TOOL_VERSION, type BackgroundSessionAuthority, BackgroundSessionCallerDenied, type BackgroundSessionCancellation, BackgroundSessionDeliveryConflict, type BackgroundSessionDeliveryRecord, type BackgroundSessionDeliveryStore, type BackgroundSessionDetail, type BackgroundSessionId, type BackgroundSessionLease, type BackgroundSessionLimits, type BackgroundSessionOrigin, type BackgroundSessionPhase, type BackgroundSessionRepository, BackgroundSessionRepositoryConflict, BackgroundSessionRepositoryCorrupted, type BackgroundSessionService, type BackgroundSessionState, type BackgroundSessionSummary, type BackgroundSessionSupervisor, type BackgroundSessionSupervisorOptions, type BackgroundSessionSupervisorStatus, type BackgroundSessionTerminalResult, BackgroundSessionTransitionDenied, type CancelledHumanInteractionState, type CardPresentation, type CardPresentationChain, type CardPresentationStatus, CardPresentationTransitionDenied, type CommitAutomationOutcomeInput, type CommittedAutomationOutcome, CompactionError, type CompactionInput, type CompactionService, type CompactionSnapshot, type CompactorPort, type CompositeRivusDaemonTransportOptions, type ConfiguredFeishuCardKitPublisherOptions, type ConfiguredFeishuCardRolloverRuntime, type ConfiguredFeishuCardRolloverRuntimeOptions, type ConfiguredFeishuHumanInteractionPresenterOptions, type ConfiguredFeishuOpenApiRequest, type ConfiguredFeishuOpenApiResponse, type ConfiguredRivusDaemonBootstrap, type ConfiguredRivusDaemonBootstrapOptions, type ConfiguredRivusDaemonBootstrapRequest, type ConfiguredRivusDaemonBootstrapResponse, type ConsumeToolApprovalInput, type CreateBackgroundSessionHostToolsOptions, type CreateConfiguredRivusDeploymentDaemonOptions, type CreateRivusDeploymentAutomationInput, type CreateRivusDeploymentBackgroundSessionInput, type CreateRivusDeploymentDaemonOptions, type CreateRivusDeploymentEndpointInput, type CreateRivusDeploymentRuntimeInput, DEFAULT_BACKGROUND_SESSION_LEASE_MS, DEFAULT_BACKGROUND_SESSION_LEASE_RENEWAL_INTERVAL_MS, DEFAULT_BACKGROUND_SESSION_LIFETIME_MS, DEFAULT_BACKGROUND_SESSION_MAX_CONCURRENT_SESSIONS, DEFAULT_BACKGROUND_SESSION_MAX_CONSECUTIVE_FAILURES, DEFAULT_BACKGROUND_SESSION_RETRY_BACKOFF_MS, DEFAULT_BACKGROUND_SESSION_STEP_TIMEOUT_MS, DEFAULT_BACKGROUND_SESSION_SUPERVISOR_INTERVAL_MS, DEFAULT_CARD_STREAM_LEASE_MS, type DailyAutomationSchedule, type DeadLetterRecoveryItem, type DeadLetterRequeueResult, type DefaultAgentHarnessClientFromCallbackOptions, type DefaultAgentHarnessClientFromTextCallbackOptions, type DefaultAgentHarnessClientOptions, type DefaultAgentHarnessFromCallbackOptions, type DefaultAgentHarnessFromTextCallbackOptions, type DefaultAgentHarnessOptions, type DefaultAgentRuntimeFromCallbackOptions, type DefaultAgentRuntimeFromTextCallbackOptions, type DefaultAgentRuntimeOptions, type DefaultAgentRuntimeSessionOptions, DelegationDenied, type DelegationEdge, type DelegationGrant, type DelegationRequest, type DelegationService, type DeliveryJob, type DeliveryJobStatus, type DeliveryOutbox, DeliveryOutboxError, type EventAgentLoopOptions, type ExpiredHumanInteractionState, type FeishuAgentCommand, type FeishuAgentDaemon, type FeishuAgentDaemonCancelResult, type FeishuAgentDaemonHandleMessageOptions, type FeishuAgentDaemonHandleResult, type FeishuAgentDaemonInteractionResult, type FeishuAgentDaemonOptions, type FeishuAgentDaemonRunResult, type FeishuAgentDaemonSkippedResult, type FeishuAgentExecution, type FeishuAgentExecutionResult, type FeishuAgentInvocationOrigin, type FeishuAgentMessageSideEffects, type FeishuAgentRunCardInput, type FeishuAgentRunPreparation, type FeishuAgentRuntime, type FeishuAgentRuntimeOptions, type FeishuAutomationCardInput, type FeishuAutomationCardSender, type FeishuBackgroundSessionDelivery, type FeishuBackgroundSessionDeliveryInput, type FeishuBackgroundSessionDeliveryKind, type FeishuCancelMessageIntakeSummary, type FeishuCancelRunCommand, type FeishuCardActionCallbackResponse, type FeishuCardActionCommand, type FeishuCardActionIntakeError, type FeishuCardActionToast, type FeishuCardActionTriggerPayload, type FeishuCardDeliveryLedger, type FeishuCardDeliveryLedgerStateOptions, type FeishuCardDeliveryReconciler, type FeishuCardDeliveryReconcilerOptions, type FeishuCardDeliveryRecord, type FeishuCardKitCancel, type FeishuCardKitClient, type FeishuCardKitFail, type FeishuCardKitFinish, type FeishuCardKitHandoff, type FeishuCardKitOpenApiClientOptions, type FeishuCardKitOpenApiTargetCreatorOptions, type FeishuCardKitPublisher, type FeishuCardKitPublisherOptions, type FeishuCardKitTextUpdate, type FeishuCardPresentationBinder, type FeishuCardPresentationHandoffStart, FeishuCardPresentationNotFound, type FeishuCardPresentationStore, type FeishuCardPresentationStoreOptions, type FeishuCardRollover, type FeishuCardRolloverCounters, type FeishuCardRolloverEvent, type FeishuCardRolloverEventType, type FeishuCardRolloverHandoffResult, type FeishuCardRolloverOptions, type FeishuCardRolloverStatus, type FeishuCardRolloverSupervisor, type FeishuCardRolloverSupervisorOptions, type FeishuCardTarget, type FeishuCardTargetCreateOptions, type FeishuCardTargetCreator, FeishuCardTargetNotFound, type FeishuCardTargetPreparationOptions, type FeishuCardTargetRegistry, type FeishuCardTargetRegistryOperation, FeishuCardTargetRegistryStoreError, type FeishuCoalescingPublisher, type FeishuCoalescingPublisherOptions, type FeishuConversationReference, FeishuCotProtocolError, type FeishuCotPublisher, type FeishuCotPublisherOptions, type FeishuCotRunPreparation, type FeishuDeploymentEndpointOptions, FeishuEndpointCredentialError, type FeishuEndpointCredentials, type FeishuEndpointGroupPolicy, type FeishuEventHandlerCardActions, type FeishuEventHandlerQueue, type FeishuEventHandlers, type FeishuEventHandlersOptions, type FeishuHumanInteractionActions, type FeishuHumanInteractionPresenterOptions, type FeishuInboxCompletedState, type FeishuInboxDeadState, type FeishuInboxDelivery, type FeishuInboxDeliveryState, type FeishuInboxLeasedState, type FeishuInboxPendingState, type FeishuInboxRepository, type FeishuInboxRepositoryStateOptions, type FeishuMessageAcceptResult, type FeishuMessageDrainResult, type FeishuMessageIntakeBaseSummary, type FeishuMessageIntakeError, type FeishuMessageIntakeOptions, type FeishuMessageIntakeSummary, type FeishuMessageQueue, type FeishuMessageQueueOptions, type FeishuMessageWorker, type FeishuMessageWorkerDrainAvailableResult, type FeishuMessageWorkerOptions, type FeishuMessageWorkerQueue, type FeishuOpenApiClient, FeishuOpenApiError, type FeishuOpenApiRequest, type FeishuOpenApiResponse, type FeishuPeriodicFlush, type FeishuPeriodicFlushOptions, type FeishuPeriodicFlushSupervisor, type FeishuPresentationPreparationOptions, type FeishuPromptAgentCommand, type FeishuPromptMessageIntakeSummary, type FeishuRawCardJson, type FeishuReceiveAcceptedObservation, type FeishuReceiveHandledObservation, type FeishuReceiveMessageHandlerPayload, type FeishuReceiveMessagePayload, type FeishuReceiveMessageReplayOptions, type FeishuReceiveMessageReplayResult, type FeishuReceiveMessageSummary, type FeishuReceiveRuntimeStatus, type FeishuResolveInteractionCommand, type FeishuSdkReceiveMessagePayload, type FeishuSessionReference, type FeishuStreamAction, type FeishuStreamActionPublisher, type FeishuStreamProjector, FeishuTenantAccessTokenError, type FeishuTenantAccessTokenProvider, type FeishuTenantAccessTokenProviderOptions, type FeishuTenantAccessTokenRequest, type FeishuTenantAccessTokenResponse, type FeishuTextReplySender, type FeishuWebSocketClient, type FeishuWebSocketClientStartOptions, type FeishuWebSocketDaemon, type FeishuWebSocketDaemonOptions, type FeishuWebSocketEventDispatcher, type FeishuWebSocketRuntime, type FeishuWorkerLoop, type FeishuWorkerLoopOptions, type FetchLike, type FetchLikeResponse, type HumanInteraction, type HumanInteractionActor, type HumanInteractionBase, type HumanInteractionClock, type HumanInteractionEndpointRegistry, type HumanInteractionFact, type HumanInteractionId, type HumanInteractionPresenter, type HumanInteractionRepository, HumanInteractionRepositoryError, type HumanInteractionResolutionAction, type HumanInteractionService, type HumanInteractionServiceOptions, type HumanInteractionTransition, HumanInteractionTransitionDenied, InvalidFeishuCardAction, InvalidFeishuMessageContent, InvalidFeishuSessionReference, InvalidInvocationAuthority, InvalidProjectSkillCatalog, InvalidRecoveryAction, InvalidRivusEndpointBinding, InvalidRivusPlugin, InvalidRivusProjectSpace, InvalidStableJson, InvalidToolInput, InvalidWorkspaceRoot, type InvocationAuthority, type InvocationAuthorityRef, type JsonFetchRequestOptions, type JsonFileFeishuCardTargetRegistryOptions, type JsonHttpRequest, type JsonHttpResponse, type JsonlAgentEventLogOptions, type JsonlFeishuCardDeliveryLedgerOptions, type JsonlFeishuInboxRepositoryOptions, type JsonlHumanInteractionRepositoryOptions, type JsonlRecoveryControlOptions, type LangfuseAgentTelemetry, type LangfuseTelemetryConfig, LangfuseTelemetryConfigError, type LangfuseTelemetryContentMode, type LangfuseTelemetryEnv, type LoadRivusDeploymentManifestOptions, type LoadRivusDeploymentOptions, type LoadedRivusDeployment, type LocalCliAgentInvocationOrigin, MEMORY_SCOPES, type MemoryBinding, type MemoryInvocationAudience, type MemoryRecord, type MemoryScope, type MemorySearchQuery, type MemoryState, type MemoryTombstoneReceipt, OpenClawEnvImportError, type OpenClawEnvImportOptions, type OpenClawEnvImportResult, type OpenJsonAutomationTickRepositoryOptions, type OpenTelemetryAgentEventSinkOptions, type OpenTelemetryAgentTelemetry, type PendingHumanInteractionState, type PiAgentLoopOptions, type PiAgentSession, type PiAgentSessionEvent, type PiAgentSessionHandle, type PiCreateAgentSessionResult, type PiSdkAgentLoopOptions, type PiSessionRegistry, type PiSessionRegistryOptions, PluginStateConflict, type PluginStateRecord, type PluginStateStore, type PooledAgentRuntime, type ProjectMemoryPromptInput, type ProjectMemoryRecallIdentity, type ProjectMemoryRecallOptions, type ProjectSkillCatalogDiagnostic, type ProjectSkillCatalogEntry, type PromptCommand, type PutPluginState, RIVUS_MEMORY_TOOL_ID, RIVUS_MEMORY_TOOL_PLUGIN_ID, RIVUS_MEMORY_TOOL_VERSION, RIVUS_PLUGIN_API_VERSION, type RateLimitedFeishuPublisherOptions, type RecoveryAction, type RecoveryControl, type RecoveryControlOptions, type RecoverySnapshot, type RegisteredRivusAgentProfile, type RegisteredRivusAutomation, type RegisteredRivusPlugin, type RegisteredRivusSkill, type RegisteredRivusTool, type RejectedHumanInteractionState, type RequestToolApprovalInput, type RequestUserDecisionInput, type ResolveHumanInteractionInput, type ResolvedRivusAgentDefinition, type ResolvedRivusAutomationDefinition, type ResolvedRivusProjectSpace, type RivusAgentDeployment, type RivusAgentDeploymentStatus, type RivusAgentHost, type RivusAgentHostOptions, type RivusAgentProfile, type RivusAutomationDelivery, type RivusAutomationDeliveryTargetType, type RivusAutomationDeployment, type RivusAutomationInput, type RivusAutomationTemplate, type RivusAutomationTickContext, type RivusBackgroundSessionsDeployment, type RivusDaemonBootstrapContext, type RivusDaemonBootstrapFactory, type RivusDaemonBootstrapModule, type RivusDaemonCliOptions, type RivusDaemonCliWriter, type RivusDaemonConfig, RivusDaemonConfigError, type RivusDaemonConfigLoaderOptions, type RivusDaemonEnv, type RivusDaemonFeishuReplayRunner, type RivusDaemonProcess, type RivusDaemonProcessOptions, type RivusDaemonPromptRunner, type RivusDaemonRecoveryRunner, type RivusDaemonShutdownController, type RivusDaemonShutdownControllerOptions, type RivusDaemonShutdownSignal, type RivusDaemonSignalSource, type RivusDaemonStatus, type RivusDaemonStatusHttpServer, type RivusDaemonStatusHttpServerOptions, type RivusDaemonStatusReporter, type RivusDaemonStatusReporterOptions, type RivusDaemonTransport, type RivusDaemonWorkerLoop, type RivusDeploymentAutomation, type RivusDeploymentAutomationLifecycle, RivusDeploymentAutomationReadinessError, type RivusDeploymentAutomationStatus, type RivusDeploymentBackgroundSession, type RivusDeploymentBackgroundSessionLifecycle, type RivusDeploymentBackgroundSessionStatus, type RivusDeploymentBootstrapAdapters, type RivusDeploymentBootstrapContext, type RivusDeploymentBootstrapFactory, type RivusDeploymentCliProcess, type RivusDeploymentComponentLifecycle, type RivusDeploymentDaemon, type RivusDeploymentDaemonLifecycle, RivusDeploymentDaemonLifecycleError, type RivusDeploymentDaemonStatus, type RivusDeploymentEndpoint, type RivusDeploymentEndpointLifecycle, type RivusDeploymentEndpointStatus, type RivusDeploymentManifest, RivusDeploymentManifestError, RivusDeploymentReadinessError, type RivusEndpointDefinition, type RivusEndpointDeployment, type RivusEndpointExperimentalFeatures, type RivusEndpointInput, type RivusEnvFileVariables, type RivusHostToolDescriptor, type RivusMemoryTool, type RivusPlugin, type RivusPluginCatalog, type RivusPluginCatalogSnapshot, RivusPluginConformanceError, type RivusPluginConformanceInput, type RivusPluginConformanceReport, type RivusPluginDeclaration, type RivusPluginLifecycleProbe, RivusPluginLoadError, type RivusPluginLoadStatus, type RivusPluginManifest, type RivusPluginModule, type RivusPluginModuleLoadRequest, type RivusPluginRegistry, type RivusProjectSpaceDeployment, type RivusResolvedToolDescriptor, type RivusSkillDescriptor, type RivusSkillGrantSet, type RivusTextFileReader, type RivusThinkingLevel, type RivusToolDescriptor, type RivusToolExecutionContext, type RivusToolExecutor, type RivusToolFactoryContext, type RivusToolGrantSet, type RivusToolIdempotency, RivusToolInputRejected, type RivusToolRisk, type RunIdGenerator, type ScheduledAutomation, type ScheduledAutomationClock, type ScheduledAutomationDeliveryInput, type ScheduledAutomationOptions, type ScheduledAutomationRunInput, type ScheduledAutomationRunResult, type SelectedHumanInteractionState, type SessionKey, type SessionScheduler, SessionSchedulerCapacityExceeded, SessionSchedulerDisposed, type SessionSchedulerOptions, type SessionSchedulerStatus, type SpawnSubagentRequest, type SubagentCoordinator, type SubagentRecord, type TelemetryContentRedactor, type TelemetryContentRedactorOptions, type TerminalAgentDomainEvent, type TextAgentLoopCallback, type TextAgentLoopOptions, type ToolApprovalBinding, type ToolApprovalInteraction, type ToolApprovalInteractionState, type ToolApprovalRequest, type ToolApprovalService, type ToolBroker, type ToolBrokerOptions, type ToolExecutionRequest, ToolInvocationDenied, type ToolOperationBeginResult, type ToolOperationBinding, type ToolOperationInspectResult, type ToolOperationLedger, type ToolOperationReconciliation, type ToolOperationReconciliationOutcome, type ToolOperationRecord, type ToolOperationRecoveryItem, type ToolOperationResolutionResult, type ToolOperationState, UnsupportedFeishuCardAction, UnsupportedFeishuMessage, type UserDecisionInteraction, type UserDecisionInteractionState, type UserDecisionOption, type WorkspaceInstructionSource, type WorkspaceInstructionsDiagnostic, type WorkspaceInstructionsDiagnosticCode, type WorkspaceInstructionsProvider, type WorkspaceInstructionsRequest, WorkspaceInstructionsSourceError, type WorkspaceInstructionsView, type WorkspaceRootHandle, acceptsCardPresentationProgress, activeCardPresentation, appendBackgroundSessionInput, assembleAgentContext, assertRivusPluginConforms, backgroundSessionToolIds, claimBackgroundSession, commitAutomationOutcome, completeBackgroundSessionStep, completeBackgroundSessionStop, createAgentCommandFromFeishuCardAction, createAgentCommandFromFeishuMessage, createAgentConversationMessages, createAgentDomainEventHandler, createAgentDomainEventSink, createAgentDomainEventSinkFromCallback, createAgentHarness, createAgentHarnessClient, createAgentHarnessPooledRuntime, createAgentInstanceRegistry, createAgentLoopFromCallback, createAgentLoopModelExecutionEnd, createAgentLoopModelExecutionStart, createAgentLoopPromptTransformer, createAgentLoopSkillExecutionEnd, createAgentLoopSkillExecutionStart, createAgentLoopTextDelta, createAgentLoopThinkingDelta, createAgentLoopToolExecutionEnd, createAgentLoopToolExecutionStart, createAgentLoopToolExecutionUpdate, createAgentMemoryService, createAgentRunUpdateHandler, createAgentRuntime, createAgentRuntimePool, createAgentTranscriptMessages, createAgentTranscriptTurn, createAgentsMdInstructionsProvider, createAsyncIterableAgentLoop, createAutomationMandateStore, createBackgroundSession, createBackgroundSessionCard, createBackgroundSessionDeliveryStore, createBackgroundSessionHostTools, createBackgroundSessionKey, createBackgroundSessionRepository, createBackgroundSessionService, createBackgroundSessionStepSourceMessageId, createBackgroundSessionSupervisor, createBackgroundSessionToolContracts, createCoalescingFeishuPublisher, createCompactionService, createCompositeRivusDaemonTransport, createConfiguredFeishuAutomationCardSender, createConfiguredFeishuBackgroundSessionDelivery, createConfiguredFeishuCardKitPublisher, createConfiguredFeishuCardKitTargetCreator, createConfiguredFeishuCardRolloverRuntime, createConfiguredFeishuHumanInteractionPresenter, createConfiguredFeishuOpenApiClient, createConfiguredFeishuTextReplySender, createConfiguredRivusDaemonBootstrap, createConfiguredRivusDeploymentDaemon, createDailyAutomationSchedule, createDefaultAgentHarness, createDefaultAgentHarnessClient, createDefaultAgentHarnessClientFromCallback, createDefaultAgentHarnessClientFromTextCallback, createDefaultAgentHarnessFromCallback, createDefaultAgentHarnessFromTextCallback, createDefaultAgentRuntime, createDefaultAgentRuntimeFromCallback, createDefaultAgentRuntimeFromTextCallback, createDelegationService, createDeliveryOutbox, createEventAgentLoop, createFakeRivusPlugin, createFeishuAgentDaemon, createFeishuAgentRunCard, createFeishuAgentRuntime, createFeishuCardActionCallbackResponse, createFeishuCardActionErrorResponse, createFeishuCardDeliveryLedger, createFeishuCardDeliveryReconciler, createFeishuCardKitOpenApiClient, createFeishuCardKitOpenApiTargetCreator, createFeishuCardKitPublisher, createFeishuCardPresentationStore, createFeishuCardRollover, createFeishuCardRolloverSupervisor, createFeishuCardTargetPreparation, createFeishuConversationId, createFeishuCotPublisher, createFeishuDeploymentEndpoint, createFeishuEventHandlers, createFeishuHumanInteractionCard, createFeishuHumanInteractionPresenter, createFeishuInboxRepository, createFeishuMessageQueue, createFeishuMessageWorker, createFeishuOpenApiClient, createFeishuPeriodicFlush, createFeishuPresentationPreparation, createFeishuSessionKey, createFeishuStreamProjector, createFeishuTenantAccessTokenProvider, createFeishuWebSocketDaemon, createFeishuWorkerLoop, createFixedClock, createHumanInteractionEndpointRegistry, createHumanInteractionService, createHumanInteractionToolApprovalGateway, createInMemoryFeishuCardTargetRegistry, createInMemoryHumanInteractionRepository, createInvocationAuthority, createJsonFetchRequest, createJsonFileFeishuCardTargetRegistry, createJsonlAgentEventLog, createJsonlHumanInteractionRepository, createLangfuseAgentTelemetry, createLazyFeishuWebSocketEventDispatcher, createMemoryNamespace, createOpenTelemetryAgentEventSink, createOpenTelemetryAgentTelemetry, createPiAgentLoop, createPiSdkAgentLoop, createPiSessionRegistry, createPluginStateStore, createProjectMemoryPromptPreparer, createRateLimitedFeishuPublisher, createRecoveryAction, createRecoveryControl, createRivusAgentHost, createRivusDaemonProcess, createRivusDaemonShutdownController, createRivusDaemonStatusHttpServer, createRivusDaemonStatusReporter, createRivusDeploymentCliProcess, createRivusDeploymentDaemon, createRivusEnvFromOpenClawConfig, createRivusMemoryTool, createRivusMemoryToolContract, createRivusMemoryToolDescriptor, createRivusPluginCatalog, createRoutedHumanInteractionToolApprovalService, createScheduledAutomation, createSequenceRunIds, createSessionScheduler, createSubagentCoordinator, createSystemClock, createTelemetryContentRedactor, createTestClock, createTextAgentLoop, createTextAgentLoopFromCallback, createToolBroker, createToolInputDigest, createToolOperationLedger, createUuidRunIds, createWorkspaceRootHandle, describeFeishuMessageIntake, evolveAgentRun, extendBackgroundSessionDefinition, failBackgroundSessionStep, formatRivusEnvFile, initialAgentRunState, intersectToolIds, isAgentToolExecutionEvent, isAssistantTextDeltaEvent, isAssistantThinkingDeltaEvent, isBackgroundSessionDue, isBackgroundSessionLeaseExpired, isBackgroundSessionState, isBackgroundSessionTerminalPhase, isBackgroundSessionToolId, isCardPresentationHandoffDue, isTerminalAgentDomainEvent, isTerminalAgentRunPhase, loadNodeRivusPluginModule, loadRivusDaemonConfig, loadRivusDeployment, loadRivusDeploymentManifest, narrowBackgroundSessionDefinition, normalizeStableJson, openJsonAutomationTickRepository, openJsonlAgentMemoryService, openJsonlBackgroundSessionDeliveryStore, openJsonlBackgroundSessionRepository, openJsonlFeishuCardDeliveryLedger, openJsonlFeishuInboxRepository, openJsonlRecoveryControl, openJsonlToolOperationLedger, parkBackgroundSessionForReconciliation, progressDeliveryId, releaseBackgroundSessionLease, renewBackgroundSessionLease, replayAgentHistory, replayAgentTranscript, requestBackgroundSessionStop, requeueInterruptedBackgroundSessionStep, requiresToolApproval, resolveBackgroundSessionReconciliation, resolveBackgroundSessionSupervisorIntervalMs, resolveFeishuEndpointCredentials, resolveLangfuseTelemetryConfig, resolveRivusAgentDefinition, resolveRivusProjectSpace, restoreAgentHistory, restoreConfiguredRivusDaemonBootstrap, restrictMemoryScopesForAudience, runRivusDaemonCli, sessionIdFromSessionKey, shouldAcceptFeishuEndpointMessage, suspendBackgroundSession, terminalDeliveryId, transitionHumanInteraction, validateProjectSkillCatalog, validateProjectSkillCommand, validateRivusDeploymentManifest };
|