@rivus/agent 0.14.4 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bootstrap/pi-feishu.d.ts +2 -2
- package/dist/bootstrap/pi-feishu.js +4118 -388
- package/dist/chunks/index.d.ts +117 -1
- package/dist/chunks/pi.js +56 -19
- package/dist/chunks/rivus-daemon-cli.js +452 -144
- package/dist/chunks/rivus-model-management-wire.js +344 -0
- package/dist/chunks/rivus-plugin-testkit.js +1 -1
- package/dist/chunks/{tool-input-digest.js → rivus-tool.js} +67 -67
- package/dist/chunks/src.js +1885 -1687
- package/dist/cli.js +152 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/mcp.js +1 -1
- package/dist/pi.d.ts +2 -0
- package/dist/pi.js +1 -1
- package/examples/pi-feishu-deployment.bootstrap.ts +557 -462
- package/package.json +5 -3
- package/skills/runtime-management/SKILL.md +61 -0
package/dist/chunks/index.d.ts
CHANGED
|
@@ -2327,6 +2327,10 @@ interface RivusDeploymentBootstrapAdapters {
|
|
|
2327
2327
|
interface RivusDeploymentBootstrapContext {
|
|
2328
2328
|
readonly argv: ReadonlyArray<string>;
|
|
2329
2329
|
readonly env: RivusDaemonEnv;
|
|
2330
|
+
/** Explicit original configuration source, required for controlled export on disable. */
|
|
2331
|
+
readonly envFilePath?: string;
|
|
2332
|
+
/** Environment values before the explicit env file is merged. */
|
|
2333
|
+
readonly environmentOverrides?: RivusDaemonEnv;
|
|
2330
2334
|
readonly manifestPath: string;
|
|
2331
2335
|
readonly pluginPackageManifestPath?: string;
|
|
2332
2336
|
}
|
|
@@ -2892,6 +2896,36 @@ declare const initialAgentRunState: AgentRunState;
|
|
|
2892
2896
|
declare function isTerminalAgentRunPhase(phase: AgentRunPhase): boolean;
|
|
2893
2897
|
declare function evolveAgentRun(state: AgentRunState, event: AgentDomainEvent): AgentRunState;
|
|
2894
2898
|
//#endregion
|
|
2899
|
+
//#region src/core/application/deployment/model/model-change-contracts.d.ts
|
|
2900
|
+
type ModelChangeOperation = "set" | "rollback";
|
|
2901
|
+
interface ModelReference {
|
|
2902
|
+
readonly model: string;
|
|
2903
|
+
readonly provider: string;
|
|
2904
|
+
}
|
|
2905
|
+
interface ModelChangeSubmission {
|
|
2906
|
+
readonly expectedRevision: number;
|
|
2907
|
+
readonly operation: ModelChangeOperation;
|
|
2908
|
+
readonly requestId: string;
|
|
2909
|
+
readonly target?: ModelReference;
|
|
2910
|
+
}
|
|
2911
|
+
interface ModelChangeSource {
|
|
2912
|
+
readonly kind: "automation" | "human";
|
|
2913
|
+
readonly reference: string;
|
|
2914
|
+
}
|
|
2915
|
+
interface ModelChangePrincipal {
|
|
2916
|
+
readonly homeId: string;
|
|
2917
|
+
readonly ownerId: string;
|
|
2918
|
+
readonly source: ModelChangeSource;
|
|
2919
|
+
}
|
|
2920
|
+
interface ModelChangeBudgetLimits {
|
|
2921
|
+
readonly deadlineAt: string;
|
|
2922
|
+
readonly identity: string;
|
|
2923
|
+
readonly maxOutputTokens: number;
|
|
2924
|
+
readonly maxPaidRequests: number;
|
|
2925
|
+
readonly recoveryReserveOutputTokens: number;
|
|
2926
|
+
readonly recoveryReservePaidRequests: number;
|
|
2927
|
+
}
|
|
2928
|
+
//#endregion
|
|
2895
2929
|
//#region src/adapters/pi/execution/pi-agent-loop.d.ts
|
|
2896
2930
|
type PiAgentSessionEvent = PiMessageStartEvent | PiMessageUpdateEvent | PiMessageEndEvent | PiToolExecutionStartEvent | PiToolExecutionUpdateEvent | PiToolExecutionEndEvent | {
|
|
2897
2931
|
readonly type: string;
|
|
@@ -2945,8 +2979,21 @@ interface PiToolExecutionEndEvent {
|
|
|
2945
2979
|
readonly result: unknown;
|
|
2946
2980
|
readonly isError: boolean;
|
|
2947
2981
|
}
|
|
2982
|
+
/** Public session context shape needed by model management and history checks. */
|
|
2983
|
+
interface PiSessionContext {
|
|
2984
|
+
readonly messages: readonly unknown[];
|
|
2985
|
+
}
|
|
2986
|
+
/** Minimal session-manager capability exposed by the Pi adapter boundary. */
|
|
2987
|
+
interface PiSessionManager {
|
|
2988
|
+
readonly buildSessionContext: () => PiSessionContext;
|
|
2989
|
+
}
|
|
2948
2990
|
interface PiAgentSession {
|
|
2949
2991
|
abort?: () => Promise<void> | void;
|
|
2992
|
+
setModel?(model: unknown): Promise<void> | void;
|
|
2993
|
+
setThinkingLevel?(level: string): void;
|
|
2994
|
+
waitForIdle?(): Promise<void>;
|
|
2995
|
+
reload?(): Promise<void> | void;
|
|
2996
|
+
readonly sessionManager?: PiSessionManager;
|
|
2950
2997
|
prompt(text: string): Promise<void>;
|
|
2951
2998
|
readonly state?: unknown;
|
|
2952
2999
|
subscribe(listener: (event: PiAgentSessionEvent) => void): () => void;
|
|
@@ -2967,11 +3014,21 @@ interface PiAgentSessionHandle {
|
|
|
2967
3014
|
readonly preparePrompt?: (input: AgentLoopInput) => Promise<string> | string;
|
|
2968
3015
|
readonly dispose?: () => Promise<void> | void;
|
|
2969
3016
|
readonly activate?: (input: AgentLoopInput) => Promise<void> | void;
|
|
3017
|
+
readonly deactivate?: () => Promise<void> | void;
|
|
3018
|
+
readonly refreshResources?: () => Promise<void> | void;
|
|
2970
3019
|
}
|
|
2971
3020
|
interface PiAgentLoopOptions {
|
|
2972
3021
|
readonly resolveSession: (input: AgentLoopInput) => Promise<PiAgentSessionHandle> | PiAgentSessionHandle;
|
|
2973
3022
|
readonly modelContentObserver?: AgentModelContentObserver;
|
|
2974
3023
|
readonly disposeSessionAfterRun?: boolean;
|
|
3024
|
+
readonly runBoundary?: {
|
|
3025
|
+
readonly acquireRun: (input?: {
|
|
3026
|
+
readonly deadlineAt?: string;
|
|
3027
|
+
readonly signal?: AbortSignal;
|
|
3028
|
+
}) => Effect.Effect<{
|
|
3029
|
+
readonly release: () => void;
|
|
3030
|
+
}, unknown>;
|
|
3031
|
+
};
|
|
2975
3032
|
}
|
|
2976
3033
|
declare function createPiAgentLoop(options: PiAgentLoopOptions): AgentLoop;
|
|
2977
3034
|
declare function createPiSdkAgentLoop<TSessionOptions = unknown>(options: PiSdkAgentLoopOptions<TSessionOptions>): AgentLoop;
|
|
@@ -2983,6 +3040,7 @@ interface PiSessionRegistryOptions {
|
|
|
2983
3040
|
interface PiSessionRegistry {
|
|
2984
3041
|
disposeAll(): Promise<void>;
|
|
2985
3042
|
dispose(sessionKey: SessionKey): Promise<void>;
|
|
3043
|
+
list(): Promise<ReadonlyArray<PiAgentSessionHandle>>;
|
|
2986
3044
|
size(): number;
|
|
2987
3045
|
resolve(input: AgentLoopInput): Promise<PiAgentSessionHandle>;
|
|
2988
3046
|
}
|
|
@@ -4226,6 +4284,64 @@ declare function createHumanInteractionToolApprovalGateway(options: {
|
|
|
4226
4284
|
readonly registry: HumanInteractionEndpointRegistry;
|
|
4227
4285
|
}): PiToolApprovalGateway;
|
|
4228
4286
|
//#endregion
|
|
4287
|
+
//#region src/core/application/tool-execution/brokerage/model-change-authorization-contracts.d.ts
|
|
4288
|
+
/** A Host-maintained grant. No field in this contract comes from the CLI request. */
|
|
4289
|
+
interface ModelManagementGrant {
|
|
4290
|
+
readonly bindingRevision: string;
|
|
4291
|
+
readonly budget: Omit<ModelChangeBudgetLimits, "identity" | "deadlineAt">;
|
|
4292
|
+
readonly enabled: boolean;
|
|
4293
|
+
readonly endpointId: string;
|
|
4294
|
+
readonly homeId: string;
|
|
4295
|
+
readonly operations: ReadonlyArray<ModelChangeOperation>;
|
|
4296
|
+
readonly ownerId: string;
|
|
4297
|
+
readonly provider: string;
|
|
4298
|
+
readonly revision: number;
|
|
4299
|
+
/** Host policy requiring a durable human decision before this request can run. */
|
|
4300
|
+
readonly requireApproval?: boolean;
|
|
4301
|
+
readonly tenantKey: string;
|
|
4302
|
+
readonly timeoutMs: number;
|
|
4303
|
+
}
|
|
4304
|
+
interface ModelChangeApprovalInput {
|
|
4305
|
+
/** Present only while creating the interaction from a live trusted Run. */
|
|
4306
|
+
readonly authority?: ModelChangeApprovalAuthority;
|
|
4307
|
+
readonly budget: ModelManagementGrant["budget"];
|
|
4308
|
+
readonly expiresAt: string;
|
|
4309
|
+
readonly grantRevision: number;
|
|
4310
|
+
readonly interactionId: string;
|
|
4311
|
+
readonly principal: ModelChangePrincipal;
|
|
4312
|
+
readonly request: ModelChangeSubmission;
|
|
4313
|
+
}
|
|
4314
|
+
interface ModelChangeApprovalAuthority {
|
|
4315
|
+
readonly agentId: string;
|
|
4316
|
+
readonly endpointId?: string;
|
|
4317
|
+
readonly instanceId: string;
|
|
4318
|
+
readonly runId: string;
|
|
4319
|
+
readonly sessionKey: string;
|
|
4320
|
+
readonly sourceMessageId: string;
|
|
4321
|
+
readonly tenantKey: string;
|
|
4322
|
+
}
|
|
4323
|
+
type ModelChangeApprovalStatus = {
|
|
4324
|
+
readonly status: "approved";
|
|
4325
|
+
} | {
|
|
4326
|
+
readonly reason?: string;
|
|
4327
|
+
readonly status: "pending";
|
|
4328
|
+
} | {
|
|
4329
|
+
readonly reason?: string;
|
|
4330
|
+
readonly status: "rejected";
|
|
4331
|
+
};
|
|
4332
|
+
/** Durable approval adapter. Initial authorization must stay non-blocking; accepted workers may wait. */
|
|
4333
|
+
interface ModelChangeApprovalPort {
|
|
4334
|
+
requestOrGet(input: ModelChangeApprovalInput): Effect.Effect<ModelChangeApprovalStatus, unknown>;
|
|
4335
|
+
waitForResolution(input: ModelChangeApprovalInput): Effect.Effect<ModelChangeApprovalStatus, unknown>;
|
|
4336
|
+
}
|
|
4337
|
+
//#endregion
|
|
4338
|
+
//#region src/adapters/compatibility/human-interaction/model-change-approval.d.ts
|
|
4339
|
+
/** Route accepted model requests through the existing durable human decision service. */
|
|
4340
|
+
declare function createHumanInteractionModelChangeApproval(options: {
|
|
4341
|
+
readonly endpointId: string;
|
|
4342
|
+
readonly registry: HumanInteractionEndpointRegistry;
|
|
4343
|
+
}): ModelChangeApprovalPort;
|
|
4344
|
+
//#endregion
|
|
4229
4345
|
//#region src/adapters/compatibility/human-interaction/routed-tool-approval-service.d.ts
|
|
4230
4346
|
declare function createRoutedHumanInteractionToolApprovalService(registry: HumanInteractionEndpointRegistry): ToolApprovalService;
|
|
4231
4347
|
//#endregion
|
|
@@ -4322,4 +4438,4 @@ type FeishuAgentRunCardInput = {
|
|
|
4322
4438
|
};
|
|
4323
4439
|
declare function createFeishuAgentRunCard(input: FeishuAgentRunCardInput): FeishuRawCardJson;
|
|
4324
4440
|
//#endregion
|
|
4325
|
-
export { UserDecisionInteractionState as $, ConfiguredRivusDaemonBootstrap as $a, CardPresentationChain as $c, FeishuAgentMessageSideEffects as $d, FeishuStreamProjector as $f, FeishuCardKitOpenApiTargetCreatorOptions as $i, DefaultAgentHarnessClientFromCallbackOptions as $l, DEFAULT_BACKGROUND_SESSION_SUPERVISOR_INTERVAL_MS as $n, JsonlAgentEventLogOptions as $o, RivusEndpointInput$1 as $r, isBackgroundSessionToolId as $s, ScheduledAutomationOptions as $t, PooledAgentRuntime as $u, HumanInteractionRepository as A, PiAgentSessionEvent as Aa, RivusDaemonShutdownControllerOptions as Ac, FeishuInboxPendingState as Ad, readFeishuMessageContent as Af, WorkspaceInstructionsSourceError as Ai, FeishuMessageQueue as Al, RIVUS_MEMORY_TOOL_ID as An, createInMemoryFeishuCardTargetRegistry as Ao, AgentSessionAvailability as Ap, requestBackgroundSessionStop as Ar, RivusDeploymentBootstrapContext as As, DelegationGrant as At, AgentRunUpdateCallback as Au, HumanInteractionFact as B, TelemetryContentRedactor as Ba, createRivusDaemonStatusReporter as Bc, ToolOperationResolutionResult as Bd, createFeishuSessionKey as Bf, createSequenceRunIds as Bi, createRivusEnvFromOpenClawConfig as Bl, FeishuBackgroundSessionDelivery as Bn, FeishuCardTarget as Bo, AgentHarnessBusy as Bp, AgentMemorySnapshot as Br, RivusDeploymentDaemonLifecycle as Bs, AutomationOutcome as Bt, JsonHttpResponse as Bu, createHumanInteractionEndpointRegistry as C, PiSessionRegistryOptions as Ca, AutomationBinding as Cc, ToolOperationState as Cd, FeishuPromptAgentCommand as Cf, InvalidStableJson as Ci, FeishuReceiveMessageReplayResult as Cl, InvalidRivusProjectSpace as Cn, FeishuCardRolloverSupervisorOptions as Co, AgentHarnessError as Cp, failBackgroundSessionStep as Cr, RivusDaemonCliOptions as Cs, SpawnSubagentRequest as Ct, AgentClientSuccess as Cu, HumanInteractionServiceOptions as D, createPiAgentLoop as Da, AutomationMandateStore as Dc, FeishuInboxDelivery as Dd, FeishuMessageContentInput as Df, createAgentsMdInstructionsProvider as Di, shouldAcceptFeishuEndpointMessage as Dl, ProjectMemoryRecallIdentity as Dn, FeishuCardTargetRegistryOperation as Do, AgentRunUpdate as Dp, parkBackgroundSessionForReconciliation as Dr, RivusDaemonRecoveryRunner as Ds, intersectToolIds as Dt, createAgentHarnessClient as Du, HumanInteractionService as E, PiAgentSessionHandle as Ea, AutomationMandateError as Ec, FeishuInboxDeadState as Ed, describeFeishuMessageIntake as Ef, WorkspaceInstructionsProvider as Ei, FeishuEndpointGroupPolicy as El, ProjectMemoryPromptInput as En, FeishuCardTargetRegistry as Eo, AgentRunSnapshot as Ep, isBackgroundSessionTerminalPhase as Er, RivusDaemonPromptRunner as Es, createDelegationService as Et, AgentTextDeltaCallback as Eu, CancelledHumanInteractionState as F, isTerminalAgentRunPhase as Fa, RivusDaemonStatusHttpServerOptions as Fc, DeadLetterRequeueResult as Fd, createFeishuSessionStore as Ff, WorkspaceInstructionsView as Fi, mergePiProviderBaseUrlOverride as Fl, RivusMemoryTool as Fn, FeishuCardKitFinish as Fo, AgentSessionSnapshot as Fp, createAgentMemoryService as Fr, RivusDeploymentAutomationReadinessError as Fs, DeliveryOutboxError as Ft, createAgentHarness as Fu, RejectedHumanInteractionState as G, LangfuseTelemetryConfigError as Ga, FeishuCardRolloverHandoffResult as Gc, FeishuAgentDaemonInteractionResult as Gd, FeishuCardDeliveryLedger as Gf, ConfiguredFeishuCardKitPublisherOptions as Gi, RivusDaemonConfig as Gl, resolveFeishuDeliveryChatId as Gn, FeishuWebSocketDaemonOptions as Go, MemoryScope as Gr, RivusDeploymentComponentLifecycle as Gs, PutPluginState as Gt, SessionSchedulerOptions as Gu, HumanInteractionResolutionAction as H, createTelemetryContentRedactor as Ha, FeishuCardRolloverCounters as Hc, FeishuAgentDaemonCancelResult as Hd, HumanInteractionRepositoryError as Hf, FeishuPeriodicFlush as Hi, FeishuEndpointCredentialError as Hl, FeishuBackgroundSessionDeliveryKind as Hn, FeishuWebSocketClient as Ho, AgentRunCancelled as Hp, MemoryBinding as Hr, RivusDeploymentEndpointLifecycle as Hs, DeliveryJob as Ht, SessionScheduler as Hu, ExpiredHumanInteractionState as I, OpenTelemetryAgentEventSinkOptions as Ia, createRivusDaemonStatusHttpServer as Ic, RecoveryAction as Id, FeishuConversationReference as If, WorkspaceRootHandle as Ii, OpenClawEnvImportError as Il, createRivusMemoryTool as In, FeishuCardKitPresentationUpdate as Io, PromptCommand as Ip, AgentMemoryAuthority as Ir, RivusDeploymentAutomationStatus as Is, createDeliveryOutbox as It, FetchLike as Iu, SelectedHumanInteractionState as J, createLangfuseAgentTelemetry as Ja, createFeishuCardRollover as Jc, FeishuAgentDaemonSessionResetResult as Jd, FeishuCardDeliveryReconcilerOptions as Jf, FeishuCoalescingPublisherOptions as Ji, RivusDaemonEnv as Jl, DEFAULT_BACKGROUND_SESSION_LIFETIME_MS as Jn, createFeishuWebSocketDaemon as Jo, AgentMemoryError as Jr, BACKGROUND_SESSION_TOOL_IDS as Js, DailyAutomationSchedule as Jt, AgentRuntimeCancellation as Ju, RequestToolApprovalInput as K, LangfuseTelemetryContentMode as Ka, FeishuCardRolloverOptions as Kc, FeishuAgentDaemonOptions as Kd, FeishuCardDeliveryLedgerStateOptions as Kf, createConfiguredFeishuCardKitPublisher as Ki, RivusDaemonConfigError as Kl, DEFAULT_BACKGROUND_SESSION_LEASE_MS as Kn, FeishuWebSocketEventDispatcher as Ko, MemorySearchQuery as Kr, RivusDeploymentDaemonLifecycleError as Ks, OpenJsonAutomationTickRepositoryOptions as Kt, SessionSchedulerStatus as Ku, HumanInteraction as L, OpenTelemetryAgentTelemetry as La, RivusDaemonStatus as Lc, RecoveryControl as Ld, FeishuSessionReference as Lf, createRivusPluginCatalog as Li, OpenClawEnvImportOptions as Ll, createRivusMemoryToolDescriptor as Ln, FeishuCardKitPublisher as Lo, RunIdGenerator as Lp, AgentMemoryHandle as Lr, RivusDeploymentBackgroundSessionLifecycle as Ls, PluginStateConflict as Lt, FetchLikeResponse as Lu, HumanInteractionTransitionDenied as M, PiSdkAgentLoopOptions as Ma, RivusDaemonSignalSource as Mc, FeishuInboxRepositoryStateOptions as Md, FeishuSessionResetResult as Mf, WorkspaceInstructionsDiagnostic as Mi, createFeishuMessageQueue as Ml, RIVUS_MEMORY_TOOL_VERSION as Mn, FeishuCardKitCancel as Mo, AgentSessionHandle as Mp, resolveBackgroundSessionReconciliation as Mr, RivusDeploymentCliProcess as Ms, CommitAutomationOutcomeInput as Mt, createAgentDomainEventSinkFromCallback as Mu, transitionHumanInteraction as N, evolveAgentRun as Na, createRivusDaemonShutdownController as Nc, createFeishuInboxRepository as Nd, FeishuSessionStore as Nf, WorkspaceInstructionsDiagnosticCode as Ni, FeishuMessageAcceptResult as Nl, createRivusMemoryToolContract as Nn, FeishuCardKitClient as No, AgentSessionOtherBusyAvailability as Np, suspendBackgroundSession as Nr, createRivusDeploymentCliProcess as Ns, commitAutomationOutcome as Nt, createAgentRunUpdateHandler as Nu, ResolveHumanInteractionInput as O, createPiSdkAgentLoop as Oa, AutomationTick as Oc, FeishuInboxDeliveryState as Od, InvalidFeishuMessageContent as Of, createWorkspaceRootHandle as Oi, FeishuMessageDrainResult as Ol, ProjectMemoryRecallOptions as On, FeishuCardTargetRegistryStoreError as Oo, AgentRunUpdateHandler as Op, releaseBackgroundSessionLease as Or, runRivusDaemonCli as Os, DelegationDenied as Ot, AgentDomainEventCallback as Ou, ApprovedHumanInteractionState as P, initialAgentRunState as Pa, RivusDaemonStatusHttpServer as Pc, DeadLetterRecoveryItem as Pd, FeishuSessionStoreOptions as Pf, WorkspaceInstructionsRequest as Pi, MergePiProviderBaseUrlOverrideOptions as Pl, MemoryTombstoneReceipt as Pn, FeishuCardKitFail as Po, AgentSessionOwnedBusyAvailability as Pp, AgentMemoryServiceOptions as Pr, RivusDeploymentAutomationLifecycle as Ps, DeliveryOutbox as Pt, AgentHarnessOptions as Pu, UserDecisionInteraction as Q, AgentModelOutputObservation as Qa, CardPresentation as Qc, FeishuAgentExecutionResult as Qd, FeishuStreamAction as Qf, createRateLimitedFeishuPublisher as Qi, AgentRuntime as Ql, DEFAULT_BACKGROUND_SESSION_STEP_TIMEOUT_MS as Qn, AgentEventLogStoreError as Qo, RivusEndpointDefinition as Qr, createBackgroundSessionToolContracts as Qs, ScheduledAutomationClock as Qt, AgentRuntimeSteering as Qu, HumanInteractionActor as R, createOpenTelemetryAgentEventSink as Ra, RivusDaemonStatusReporter as Rc, RecoverySnapshot as Rd, InvalidFeishuSessionReference as Rf, resolveRivusAgentDefinition as Ri, OpenClawEnvImportResult as Rl, createMemoryNamespace as Rn, FeishuCardKitPublisherOptions as Ro, AgentEventHandlerFailed as Rp, AgentMemoryIdentity as Rr, RivusDeploymentBackgroundSessionReadinessError as Rs, PluginStateStore as Rt, JsonFetchRequestOptions as Ru, HumanInteractionEndpointRegistry as S, PiSessionRegistry as Sa, ScheduledAutomationRunResult as Sc, ToolOperationRecord as Sd, FeishuNewSessionMessageIntakeSummary as Sf, requiresToolApproval as Si, FeishuReceiveMessageReplayOptions as Sl, resolveRivusProjectSpace as Sn, FeishuCardRolloverSupervisor as So, AgentHarnessBusyAvailability as Sp, createBackgroundSession as Sr, RivusDaemonBootstrapModule as Ss, createSubagentCoordinator as St, AgentClientFailure as Su, HumanInteractionClock as T, PiAgentLoopOptions as Ta, AutomationMandate as Tc, FeishuInboxCompletedState as Td, createAgentCommandFromFeishuMessage as Tf, normalizeStableJson as Ti, FeishuReceiveRuntimeStatus as Tl, createAgentLoopPromptTransformer as Tn, FeishuCardTargetNotFound as To, AgentPromptResult as Tp, isBackgroundSessionLeaseExpired as Tr, RivusDaemonFeishuReplayRunner as Ts, DelegationService as Tt, AgentSessionClient as Tu, HumanInteractionTransition as U, LangfuseAgentTelemetry as Ua, FeishuCardRolloverEvent as Uc, FeishuAgentDaemonHandleMessageOptions as Ud, JsonlFeishuCardDeliveryLedgerOptions as Uf, FeishuPeriodicFlushOptions as Ui, FeishuEndpointCredentials as Ul, createBackgroundSessionCard as Un, FeishuWebSocketClientStartOptions as Uo, ConversationProgressDisplay as Up, MemoryInvocationAudience as Ur, RivusDeploymentEndpointStatus as Us, DeliveryJobStatus as Ut, SessionSchedulerCapacityExceeded as Uu, HumanInteractionId as V, TelemetryContentRedactorOptions as Va, FeishuCardRollover as Vc, FeishuAgentDaemon as Vd, FeishuReceiveMessagePayload as Vf, createTestClock as Vi, formatRivusEnvFile as Vl, FeishuBackgroundSessionDeliveryInput as Vn, createFeishuCardKitPublisher as Vo, AgentLoopFailed as Vp, MEMORY_SCOPES as Vr, RivusDeploymentDaemonStatus as Vs, CommittedAutomationOutcome as Vt, createJsonFetchRequest as Vu, PendingHumanInteractionState as W, LangfuseTelemetryConfig as Wa, FeishuCardRolloverEventType as Wc, FeishuAgentDaemonHandleResult as Wd, openJsonlFeishuCardDeliveryLedger as Wf, createFeishuPeriodicFlush as Wi, resolveFeishuEndpointCredentials as Wl, createConfiguredFeishuBackgroundSessionDelivery as Wn, FeishuWebSocketDaemon as Wo, DEFAULT_CONVERSATION_PROGRESS_DISPLAY as Wp, MemoryRecord as Wr, RivusDeploymentReadinessError as Ws, PluginStateRecord as Wt, SessionSchedulerDisposed as Wu, ToolApprovalInteraction as X, AgentModelContentObserver as Xa, FeishuCardPresentationHandoffStart as Xc, FeishuAgentDaemonSteeredResult as Xd, createFeishuCardDeliveryLedger as Xf, FeishuStreamActionPublisher as Xi, RivusThinkingLevel as Xl, DEFAULT_BACKGROUND_SESSION_MAX_CONSECUTIVE_FAILURES as Xn, AgentEventLog as Xo, RivusAgentHost as Xr, BACKGROUND_SESSION_TOOL_VERSION as Xs, AutomationTickRepositoryCompatibility as Xt, AgentRuntimePool as Xu, ToolApprovalBinding as Y, resolveLangfuseTelemetryConfig as Ya, DEFAULT_CARD_STREAM_LEASE_MS as Yc, FeishuAgentDaemonSkippedResult as Yd, FeishuCardDeliveryRecord as Yf, createCoalescingFeishuPublisher as Yi, RivusTextFileReader as Yl, DEFAULT_BACKGROUND_SESSION_MAX_CONCURRENT_SESSIONS as Yn, createLazyFeishuWebSocketEventDispatcher as Yo, InvalidRivusEndpointBinding as Yr, BACKGROUND_SESSION_TOOL_PLUGIN_ID as Ys, createDailyAutomationSchedule as Yt, AgentRuntimeInput as Yu, ToolApprovalInteractionState as Z, AgentModelInputObservation as Za, FeishuCardPresentationStore as Zc, FeishuAgentExecution as Zd, createFeishuCardDeliveryReconciler as Zf, RateLimitedFeishuPublisherOptions as Zi, loadRivusDaemonConfig as Zl, DEFAULT_BACKGROUND_SESSION_RETRY_BACKOFF_MS as Zn, AgentEventLogOperation as Zo, RivusAgentHostOptions as Zr, backgroundSessionToolIds as Zs, ScheduledAutomation as Zt, AgentRuntimePoolOptions as Zu, createConfiguredFeishuMessageReactionSender as _, FeishuCardPresentationNotFound as _a, BackgroundSessionSupervisor as _c, ToolOperationBinding as _d, FeishuMessageIntakeBaseSummary as _f, ToolInvocationDenied as _i, FeishuMessageWorkerQueue as _l, InvalidProjectSkillCatalog as _n, FeishuTenantAccessTokenProvider as _o, AgentDomainEventHandler as _p, BackgroundSessionTransitionDenied as _r, createFeishuCardActionCallbackResponse as _s, LoadRivusDeploymentOptions as _t, createDefaultAgentRuntimeFromCallback as _u, ConfiguredFeishuHumanInteractionPresenterOptions as a, createFeishuCardKitOpenApiTargetCreator as aa, RivusPluginLoadStatus as ac, AgentInstanceBusy as ad, composeFeishuTopicPrompt as af, createAgentHarnessPooledRuntime as ai, CompositeRivusDaemonTransportOptions as al, CompactorPort as an, ConfiguredFeishuCardRolloverRuntime as ao, RUN_PRESENTATION_SCHEMA_VERSION as ap, BackgroundSessionSupervisorOptions as ar, FeishuAgentRuntimeOptions as as, RivusDeploymentManifestError as at, DefaultAgentRuntimeFromCallbackOptions as au, createRoutedHumanInteractionToolApprovalService as b, RunPresentationProjector as ba, ScheduledAutomationDeliveryInput as bc, ToolOperationReconciliation as bd, FeishuMessageIntakeSummary as bf, createInvocationAuthority as bi, FeishuReceiveAcceptedObservation as bl, validateProjectSkillCatalog as bn, FeishuTenantAccessTokenResponse as bo, AgentHarness as bp, completeBackgroundSessionStep as br, RivusDaemonBootstrapContext as bs, RivusPluginLoadError as bt, createUuidRunIds as bu, createFeishuHumanInteractionCard as c, FeishuCotPublisher as ca, RivusAutomationDeliveryTargetType as cc, OpenJsonFeishuSessionStoreOptions as cd, FeishuCardActionIntakeError as cf, openJsonlToolOperationLedger as ci, RivusDaemonProcessOptions as cl, CompactionSnapshot as cn, ConfiguredFeishuOpenApiRequest as co, RunPresentationPhase as cp, openJsonlBackgroundSessionRepository as cr, FeishuEventHandlerCardActions as cs, CreateRivusDeploymentBackgroundSessionInput as ct, DefaultAgentRuntimeSessionOptions as cu, createJsonlHumanInteractionRepository as d, createFeishuCotPublisher as da, RivusDeploymentManifest as dc, openJsonlFeishuInboxRepository as dd, InvalidFeishuCardAction as df, ToolApprovalRequest as di, createRivusDaemonProcess as dl, AgentContextInput as dn, FeishuOpenApiError as do, hasInspectableRunProgress as dp, createBackgroundSessionDeliveryStore as dr, FeishuEventHandlersOptions as ds, CreateRivusDeploymentRuntimeInput as dt, createDefaultAgentHarnessClient as du, FeishuCardPresentationBinder as ea, ProcessDeploymentEndpoint as ec, createAgentRuntimePool as ed, FeishuAgentPreparedControl as ef, createRivusAgentHost as ei, CardPresentationStatus as el, createScheduledAutomation as en, ConfiguredRivusDaemonBootstrapOptions as eo, createFeishuStreamProjector as ep, resolveBackgroundSessionSupervisorIntervalMs as er, createJsonlAgentEventLog as es, UserDecisionOption as et, DefaultAgentHarnessClientFromTextCallbackOptions as eu, JsonlHumanInteractionRepositoryOptions as f, FeishuTopicContextResolverOptions as fa, RivusEndpointDeployment as fc, InvalidRecoveryAction as fd, UnsupportedFeishuCardAction as ff, ToolApprovalService as fi, FeishuWorkerLoop as fl, AgentContextLayer as fn, FeishuOpenApiRequest as fo, PresentedValue as fp, BACKGROUND_SESSION_JSONL_VERSION as fr, FeishuReceiveMessageHandlerPayload as fs, RivusDeploymentAutomation as ft, createDefaultAgentHarnessClientFromCallback as fu, FeishuMessageReactionSender as g, createFeishuCardKitOpenApiClient as ga, BackgroundSessionLimits as gc, ToolOperationBeginResult as gd, FeishuCancelRunCommand as gf, createToolBroker as gi, FeishuMessageWorkerOptions as gl, openJsonlAgentMemoryService as gn, FeishuTenantAccessTokenError as go, AgentClock as gp, BackgroundSessionState as gr, FeishuCardActionToast as gs, loadNodeRivusPluginModule as gt, createDefaultAgentRuntime as gu, createConfiguredFeishuAutomationCardSender as h, FeishuCardKitOpenApiClientOptions as ha, RivusProjectSpaceDeployment as hc, createRecoveryControl as hd, FeishuCancelMessageIntakeSummary as hf, ToolExecutionRequest as hi, FeishuMessageWorker as hl, assembleAgentContext as hn, createFeishuOpenApiClient as ho, ActiveAgentRun as hp, BackgroundSessionRepository as hr, FeishuCardActionCallbackResponse as hs, RivusDeploymentEndpoint as ht, createDefaultAgentHarnessFromTextCallback as hu, createFeishuAgentRunCard as i, createConfiguredFeishuCardKitTargetCreator as ia, RivusAgentDeploymentStatus as ic, AgentInstanceRegistryOptions as id, FeishuPromptContextResolver as if, createFeishuDeploymentEndpoint as ii, isCardPresentationHandoffDue as il, CompactionService as in, restoreConfiguredRivusDaemonBootstrap as io, PresentationStepStatus as ip, createBackgroundSessionHostTools as ir, FeishuAgentRuntime as is, LoadRivusDeploymentManifestOptions as it, DefaultAgentHarnessOptions as iu, HumanInteractionPresenter as j, PiCreateAgentSessionResult as ja, RivusDaemonShutdownSignal as jc, FeishuInboxRepository as jd, FeishuSessionEpochRecord as jf, WorkspaceInstructionSource as ji, FeishuMessageQueueOptions as jl, RIVUS_MEMORY_TOOL_PLUGIN_ID as jn, createJsonFileFeishuCardTargetRegistry as jo, AgentSessionBusyAvailability as jp, requeueInterruptedBackgroundSessionStep as jr, RivusDeploymentBootstrapFactory as js, DelegationRequest as jt, createAgentDomainEventHandler as ju, createHumanInteractionService as k, PiAgentSession as ka, RivusDaemonShutdownController as kc, FeishuInboxLeasedState as kd, UnsupportedFeishuMessage as kf, InvalidWorkspaceRoot as ki, FeishuMessagePreparedControl as kl, createProjectMemoryPromptPreparer as kn, JsonFileFeishuCardTargetRegistryOptions as ko, AgentRunUpdateListener as kp, renewBackgroundSessionLease as kr, RivusDeploymentBootstrapAdapters as ks, DelegationEdge as kt, AgentDomainEventSinkCallback as ku, createFeishuHumanInteractionPresenter as l, FeishuCotPublisherOptions as la, RivusAutomationDeployment as lc, openJsonFeishuSessionStore as ld, FeishuCardActionTriggerPayload as lf, AuthorizationPolicyProvider as li, RivusDaemonTransport as ll, CompactionInput as ln, ConfiguredFeishuOpenApiResponse as lo, SkillPresentationStep as lp, BACKGROUND_SESSION_DELIVERY_JSONL_VERSION as lr, FeishuEventHandlerQueue as ls, CreateRivusDeploymentDaemonOptions as lt, createAgentRuntime as lu, FeishuAutomationCardSender as m, createFeishuTopicContextResolver as ma, RivusPluginDeclaration as mc, RecoveryControlOptions as md, FeishuAgentCommand as mf, ToolBrokerOptions as mi, createFeishuWorkerLoop as ml, AssembledAgentContext as mn, createConfiguredFeishuOpenApiClient as mo, createPresentedValue as mp, createBackgroundSessionService as mr, createFeishuEventHandlers as ms, RivusDeploymentDaemon as mt, createDefaultAgentHarnessFromCallback as mu, FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID as n, FeishuCardTargetCreator as na, ResolvedRivusAutomationDefinition as nc, createAgentInstanceRegistry as nd, createFeishuAgentDaemon as nf, createFeishuPresentationPreparation as ni, acceptsCardPresentationProgress as nl, AutomationTickStatus as nn, ConfiguredRivusDaemonBootstrapResponse as no, ModelPresentationStep as np, narrowBackgroundSessionDefinition as nr, restoreAgentHistory as ns, createConfiguredRivusDeploymentDaemon as nt, DefaultAgentHarnessFromCallbackOptions as nu, FeishuHumanInteractionPresenterOptions as o, createFeishuCardTargetPreparation as oa, RivusPluginModuleLoadRequest as oc, AgentRuntimeDisposed as od, FeishuAgentRunPreparation as of, JsonlRecoveryControlOptions as oi, createCompositeRivusDaemonTransport as ol, createCompactionService as on, ConfiguredFeishuCardRolloverRuntimeOptions as oo, ResponsePresentationStep as op, createBackgroundSessionSupervisor as or, createFeishuAgentRuntime as os, createRivusDeploymentDaemon as ot, DefaultAgentRuntimeFromTextCallbackOptions as ou, FeishuAutomationCardInput as p, InvalidFeishuTopicContext as pa, RivusEndpointExperimentalFeatures as pc, createRecoveryAction as pd, createAgentCommandFromFeishuCardAction as pf, ToolBroker as pi, FeishuWorkerLoopOptions as pl, AgentContextLayerKind as pn, FeishuOpenApiResponse as po, PresentedValueOptions as pp, isBackgroundSessionState as pr, FeishuSdkReceiveMessagePayload as ps, RivusDeploymentBackgroundSession as pt, createDefaultAgentHarnessClientFromTextCallback as pu, RequestUserDecisionInput as q, LangfuseTelemetryEnv as qa, FeishuCardRolloverStatus as qc, FeishuAgentDaemonRunResult as qd, FeishuCardDeliveryReconciler as qf, FeishuCoalescingPublisher as qi, RivusDaemonConfigLoaderOptions as ql, DEFAULT_BACKGROUND_SESSION_LEASE_RENEWAL_INTERVAL_MS as qn, FeishuWebSocketRuntime as qo, MemoryState as qr, BACKGROUND_SESSION_START_TOOL_ID as qs, openJsonAutomationTickRepository as qt, createSessionScheduler as qu, FeishuAgentRunCardInput as r, FeishuCardTargetPreparationOptions as ra, ResolvedRivusProjectSpace as rc, AgentInstanceConflict as rd, FeishuPromptContextInput as rf, FeishuDeploymentEndpointOptions as ri, activeCardPresentation as rl, createAutomationMandateStore as rn, createConfiguredRivusDaemonBootstrap as ro, PresentationStep as rp, CreateBackgroundSessionHostToolsOptions as rr, createAgentDomainEventSink as rs, loadRivusDeploymentManifest as rt, DefaultAgentHarnessFromTextCallbackOptions as ru, createConfiguredFeishuHumanInteractionPresenter as s, FeishuCotProtocolError as sa, RivusAutomationDelivery as sc, AgentInstanceRecord as sd, FeishuCardActionCommand as sf, openJsonlRecoveryControl as si, RivusDaemonProcess as sl, CompactionError as sn, createConfiguredFeishuCardRolloverRuntime as so, RunPresentation as sp, createBackgroundSessionRepository as sr, FeishuPeriodicFlushSupervisor as ss, CreateRivusDeploymentAutomationInput as st, DefaultAgentRuntimeOptions as su, FEISHU_AGENT_CARD_ELEMENT_ID as t, FeishuCardTargetCreateOptions as ta, LoadedRivusDeployment as tc, AgentInstanceRegistry as td, FeishuHumanInteractionActions as tf, FeishuPresentationPreparationOptions as ti, CardPresentationTransitionDenied as tl, AutomationTickRecord as tn, ConfiguredRivusDaemonBootstrapRequest as to, AssistantPresentationStep as tp, extendBackgroundSessionDefinition as tr, AgentHistoryEventLog as ts, CreateConfiguredRivusDeploymentDaemonOptions as tt, DefaultAgentHarnessClientOptions as tu, createInMemoryHumanInteractionRepository as u, FeishuCotRunPreparation as ua, RivusBackgroundSessionsDeployment as uc, JsonlFeishuInboxRepositoryOptions as ud, FeishuResolveInteractionCommand as uf, AuthorizationPolicyState as ui, RivusDaemonWorkerLoop as ul, AgentContextBudgetExceeded as un, FeishuOpenApiClient as uo, ToolPresentationStep as up, openJsonlBackgroundSessionDeliveryStore as ur, FeishuEventHandlers as us, CreateRivusDeploymentEndpointInput as ut, createDefaultAgentHarness as uu, FeishuTextReplySender as v, FeishuCardPresentationStoreOptions as va, BackgroundSessionSupervisorStatus as vc, ToolOperationInspectResult as vd, FeishuMessageIntakeError as vf, InvocationAuthority as vi, createFeishuMessageWorker as vl, ProjectSkillCatalogDiagnostic as vn, FeishuTenantAccessTokenProviderOptions as vo, AgentDomainEventListener as vp, appendBackgroundSessionInput as vr, createFeishuCardActionErrorResponse as vs, RivusPluginModule as vt, createDefaultAgentRuntimeFromTextCallback as vu, ConsumeToolApprovalInput as w, createPiSessionRegistry as wa, AutomationDeliveryBinding as wc, createToolOperationLedger as wd, FeishuPromptMessageIntakeSummary as wf, InvalidToolInput as wi, FeishuReceiveMessageSummary as wl, validateRivusDeploymentManifest as wn, createFeishuCardRolloverSupervisor as wo, AgentHarnessIdleAvailability as wp, isBackgroundSessionDue as wr, RivusDaemonCliWriter as ws, SubagentRecord as wt, AgentHarnessClient as wu, createHumanInteractionToolApprovalGateway as x, createRunPresentationProjector as xa, ScheduledAutomationRunInput as xc, ToolOperationReconciliationOutcome as xd, FeishuNewSessionCommand as xf, createToolInputDigest as xi, FeishuReceiveHandledObservation as xl, validateProjectSkillCommand as xn, createFeishuTenantAccessTokenProvider as xo, AgentHarnessAvailability as xp, completeBackgroundSessionStop as xr, RivusDaemonBootstrapFactory as xs, SubagentCoordinator as xt, AgentClientAttempt as xu, createConfiguredFeishuTextReplySender as y, createFeishuCardPresentationStore as ya, AUTOMATION_SUPPRESSION_PREFIX as yc, ToolOperationLedger as yd, FeishuMessageIntakeOptions as yf, InvocationAuthorityRef as yi, FeishuMessageWorkerDrainAvailableResult as yl, ProjectSkillCatalogEntry as yn, FeishuTenantAccessTokenRequest as yo, AgentDomainEventSink as yp, claimBackgroundSession as yr, FeishuRawCardJson as ys, loadRivusDeployment as yt, createSystemClock as yu, HumanInteractionBase as z, createOpenTelemetryAgentTelemetry as za, RivusDaemonStatusReporterOptions as zc, ToolOperationRecoveryItem as zd, createFeishuConversationId as zf, createFixedClock as zi, RivusEnvFileVariables as zl, restrictMemoryScopesForAudience as zn, FeishuCardKitTextUpdate as zo, AgentEventSinkFailed as zp, AgentMemoryService as zr, RivusDeploymentBackgroundSessionStatus as zs, createPluginStateStore as zt, JsonHttpRequest as zu };
|
|
4441
|
+
export { UserDecisionInteraction as $, AgentModelOutputObservation as $a, CardPresentation as $c, FeishuAgentExecutionResult as $d, FeishuStreamAction as $f, createRateLimitedFeishuPublisher as $i, AgentRuntime as $l, DEFAULT_BACKGROUND_SESSION_STEP_TIMEOUT_MS as $n, AgentEventLogStoreError as $o, RivusEndpointDefinition as $r, createBackgroundSessionToolContracts as $s, ScheduledAutomationClock as $t, AgentRuntimeSteering as $u, createHumanInteractionService as A, PiAgentSession as Aa, RivusDaemonShutdownController as Ac, FeishuInboxLeasedState as Ad, UnsupportedFeishuMessage as Af, InvalidWorkspaceRoot as Ai, FeishuMessagePreparedControl as Al, createProjectMemoryPromptPreparer as An, JsonFileFeishuCardTargetRegistryOptions as Ao, AgentRunUpdateListener as Ap, renewBackgroundSessionLease as Ar, RivusDeploymentBootstrapAdapters as As, DelegationEdge as At, AgentDomainEventSinkCallback as Au, HumanInteractionBase as B, createOpenTelemetryAgentTelemetry as Ba, RivusDaemonStatusReporterOptions as Bc, ToolOperationRecoveryItem as Bd, createFeishuConversationId as Bf, createFixedClock as Bi, RivusEnvFileVariables as Bl, restrictMemoryScopesForAudience as Bn, FeishuCardKitTextUpdate as Bo, AgentEventSinkFailed as Bp, AgentMemoryService as Br, RivusDeploymentBackgroundSessionStatus as Bs, createPluginStateStore as Bt, JsonHttpRequest as Bu, HumanInteractionEndpointRegistry as C, PiSessionRegistry as Ca, ScheduledAutomationRunResult as Cc, ToolOperationRecord as Cd, FeishuNewSessionMessageIntakeSummary as Cf, requiresToolApproval as Ci, FeishuReceiveMessageReplayOptions as Cl, resolveRivusProjectSpace as Cn, FeishuCardRolloverSupervisor as Co, AgentHarnessBusyAvailability as Cp, createBackgroundSession as Cr, RivusDaemonBootstrapModule as Cs, createSubagentCoordinator as Ct, AgentClientFailure as Cu, HumanInteractionService as D, PiAgentSessionHandle as Da, AutomationMandateError as Dc, FeishuInboxDeadState as Dd, describeFeishuMessageIntake as Df, WorkspaceInstructionsProvider as Di, FeishuEndpointGroupPolicy as Dl, ProjectMemoryPromptInput as Dn, FeishuCardTargetRegistry as Do, AgentRunSnapshot as Dp, isBackgroundSessionTerminalPhase as Dr, RivusDaemonPromptRunner as Ds, createDelegationService as Dt, AgentTextDeltaCallback as Du, HumanInteractionClock as E, PiAgentLoopOptions as Ea, AutomationMandate as Ec, FeishuInboxCompletedState as Ed, createAgentCommandFromFeishuMessage as Ef, normalizeStableJson as Ei, FeishuReceiveRuntimeStatus as El, createAgentLoopPromptTransformer as En, FeishuCardTargetNotFound as Eo, AgentPromptResult as Ep, isBackgroundSessionLeaseExpired as Er, RivusDaemonFeishuReplayRunner as Es, DelegationService as Et, AgentSessionClient as Eu, ApprovedHumanInteractionState as F, initialAgentRunState as Fa, RivusDaemonStatusHttpServer as Fc, DeadLetterRecoveryItem as Fd, FeishuSessionStoreOptions as Ff, WorkspaceInstructionsRequest as Fi, MergePiProviderBaseUrlOverrideOptions as Fl, MemoryTombstoneReceipt as Fn, FeishuCardKitFail as Fo, AgentSessionOwnedBusyAvailability as Fp, AgentMemoryServiceOptions as Fr, RivusDeploymentAutomationLifecycle as Fs, DeliveryOutbox as Ft, AgentHarnessOptions as Fu, PendingHumanInteractionState as G, LangfuseTelemetryConfig as Ga, FeishuCardRolloverEventType as Gc, FeishuAgentDaemonHandleResult as Gd, openJsonlFeishuCardDeliveryLedger as Gf, createFeishuPeriodicFlush as Gi, resolveFeishuEndpointCredentials as Gl, createConfiguredFeishuBackgroundSessionDelivery as Gn, FeishuWebSocketDaemon as Go, DEFAULT_CONVERSATION_PROGRESS_DISPLAY as Gp, MemoryRecord as Gr, RivusDeploymentReadinessError as Gs, PluginStateRecord as Gt, SessionSchedulerDisposed as Gu, HumanInteractionId as H, TelemetryContentRedactorOptions as Ha, FeishuCardRollover as Hc, FeishuAgentDaemon as Hd, FeishuReceiveMessagePayload as Hf, createTestClock as Hi, formatRivusEnvFile as Hl, FeishuBackgroundSessionDeliveryInput as Hn, createFeishuCardKitPublisher as Ho, AgentLoopFailed as Hp, MEMORY_SCOPES as Hr, RivusDeploymentDaemonStatus as Hs, CommittedAutomationOutcome as Ht, createJsonFetchRequest as Hu, CancelledHumanInteractionState as I, isTerminalAgentRunPhase as Ia, RivusDaemonStatusHttpServerOptions as Ic, DeadLetterRequeueResult as Id, createFeishuSessionStore as If, WorkspaceInstructionsView as Ii, mergePiProviderBaseUrlOverride as Il, RivusMemoryTool as In, FeishuCardKitFinish as Io, AgentSessionSnapshot as Ip, createAgentMemoryService as Ir, RivusDeploymentAutomationReadinessError as Is, DeliveryOutboxError as It, createAgentHarness as Iu, RequestUserDecisionInput as J, LangfuseTelemetryEnv as Ja, FeishuCardRolloverStatus as Jc, FeishuAgentDaemonRunResult as Jd, FeishuCardDeliveryReconciler as Jf, FeishuCoalescingPublisher as Ji, RivusDaemonConfigLoaderOptions as Jl, DEFAULT_BACKGROUND_SESSION_LEASE_RENEWAL_INTERVAL_MS as Jn, FeishuWebSocketRuntime as Jo, MemoryState as Jr, BACKGROUND_SESSION_START_TOOL_ID as Js, openJsonAutomationTickRepository as Jt, createSessionScheduler as Ju, RejectedHumanInteractionState as K, LangfuseTelemetryConfigError as Ka, FeishuCardRolloverHandoffResult as Kc, FeishuAgentDaemonInteractionResult as Kd, FeishuCardDeliveryLedger as Kf, ConfiguredFeishuCardKitPublisherOptions as Ki, RivusDaemonConfig as Kl, resolveFeishuDeliveryChatId as Kn, FeishuWebSocketDaemonOptions as Ko, MemoryScope as Kr, RivusDeploymentComponentLifecycle as Ks, PutPluginState as Kt, SessionSchedulerOptions as Ku, ExpiredHumanInteractionState as L, OpenTelemetryAgentEventSinkOptions as La, createRivusDaemonStatusHttpServer as Lc, RecoveryAction as Ld, FeishuConversationReference as Lf, WorkspaceRootHandle as Li, OpenClawEnvImportError as Ll, createRivusMemoryTool as Ln, FeishuCardKitPresentationUpdate as Lo, PromptCommand as Lp, AgentMemoryAuthority as Lr, RivusDeploymentAutomationStatus as Ls, createDeliveryOutbox as Lt, FetchLike as Lu, HumanInteractionPresenter as M, PiCreateAgentSessionResult as Ma, RivusDaemonShutdownSignal as Mc, FeishuInboxRepository as Md, FeishuSessionEpochRecord as Mf, WorkspaceInstructionSource as Mi, FeishuMessageQueueOptions as Ml, RIVUS_MEMORY_TOOL_PLUGIN_ID as Mn, createJsonFileFeishuCardTargetRegistry as Mo, AgentSessionBusyAvailability as Mp, requeueInterruptedBackgroundSessionStep as Mr, RivusDeploymentBootstrapFactory as Ms, DelegationRequest as Mt, createAgentDomainEventHandler as Mu, HumanInteractionTransitionDenied as N, PiSdkAgentLoopOptions as Na, RivusDaemonSignalSource as Nc, FeishuInboxRepositoryStateOptions as Nd, FeishuSessionResetResult as Nf, WorkspaceInstructionsDiagnostic as Ni, createFeishuMessageQueue as Nl, RIVUS_MEMORY_TOOL_VERSION as Nn, FeishuCardKitCancel as No, AgentSessionHandle as Np, resolveBackgroundSessionReconciliation as Nr, RivusDeploymentCliProcess as Ns, CommitAutomationOutcomeInput as Nt, createAgentDomainEventSinkFromCallback as Nu, HumanInteractionServiceOptions as O, createPiAgentLoop as Oa, AutomationMandateStore as Oc, FeishuInboxDelivery as Od, FeishuMessageContentInput as Of, createAgentsMdInstructionsProvider as Oi, shouldAcceptFeishuEndpointMessage as Ol, ProjectMemoryRecallIdentity as On, FeishuCardTargetRegistryOperation as Oo, AgentRunUpdate as Op, parkBackgroundSessionForReconciliation as Or, RivusDaemonRecoveryRunner as Os, intersectToolIds as Ot, createAgentHarnessClient as Ou, transitionHumanInteraction as P, evolveAgentRun as Pa, createRivusDaemonShutdownController as Pc, createFeishuInboxRepository as Pd, FeishuSessionStore as Pf, WorkspaceInstructionsDiagnosticCode as Pi, FeishuMessageAcceptResult as Pl, createRivusMemoryToolContract as Pn, FeishuCardKitClient as Po, AgentSessionOtherBusyAvailability as Pp, suspendBackgroundSession as Pr, createRivusDeploymentCliProcess as Ps, commitAutomationOutcome as Pt, createAgentRunUpdateHandler as Pu, ToolApprovalInteractionState as Q, AgentModelInputObservation as Qa, FeishuCardPresentationStore as Qc, FeishuAgentExecution as Qd, createFeishuCardDeliveryReconciler as Qf, RateLimitedFeishuPublisherOptions as Qi, loadRivusDaemonConfig as Ql, DEFAULT_BACKGROUND_SESSION_RETRY_BACKOFF_MS as Qn, AgentEventLogOperation as Qo, RivusAgentHostOptions as Qr, backgroundSessionToolIds as Qs, ScheduledAutomation as Qt, AgentRuntimePoolOptions as Qu, HumanInteraction as R, OpenTelemetryAgentTelemetry as Ra, RivusDaemonStatus as Rc, RecoveryControl as Rd, FeishuSessionReference as Rf, createRivusPluginCatalog as Ri, OpenClawEnvImportOptions as Rl, createRivusMemoryToolDescriptor as Rn, FeishuCardKitPublisher as Ro, RunIdGenerator as Rp, AgentMemoryHandle as Rr, RivusDeploymentBackgroundSessionLifecycle as Rs, PluginStateConflict as Rt, FetchLikeResponse as Ru, createHumanInteractionToolApprovalGateway as S, createRunPresentationProjector as Sa, ScheduledAutomationRunInput as Sc, ToolOperationReconciliationOutcome as Sd, FeishuNewSessionCommand as Sf, createToolInputDigest as Si, FeishuReceiveHandledObservation as Sl, validateProjectSkillCommand as Sn, createFeishuTenantAccessTokenProvider as So, AgentHarnessAvailability as Sp, completeBackgroundSessionStop as Sr, RivusDaemonBootstrapFactory as Ss, SubagentCoordinator as St, AgentClientAttempt as Su, ConsumeToolApprovalInput as T, createPiSessionRegistry as Ta, AutomationDeliveryBinding as Tc, createToolOperationLedger as Td, FeishuPromptMessageIntakeSummary as Tf, InvalidToolInput as Ti, FeishuReceiveMessageSummary as Tl, validateRivusDeploymentManifest as Tn, createFeishuCardRolloverSupervisor as To, AgentHarnessIdleAvailability as Tp, isBackgroundSessionDue as Tr, RivusDaemonCliWriter as Ts, SubagentRecord as Tt, AgentHarnessClient as Tu, HumanInteractionResolutionAction as U, createTelemetryContentRedactor as Ua, FeishuCardRolloverCounters as Uc, FeishuAgentDaemonCancelResult as Ud, HumanInteractionRepositoryError as Uf, FeishuPeriodicFlush as Ui, FeishuEndpointCredentialError as Ul, FeishuBackgroundSessionDeliveryKind as Un, FeishuWebSocketClient as Uo, AgentRunCancelled as Up, MemoryBinding as Ur, RivusDeploymentEndpointLifecycle as Us, DeliveryJob as Ut, SessionScheduler as Uu, HumanInteractionFact as V, TelemetryContentRedactor as Va, createRivusDaemonStatusReporter as Vc, ToolOperationResolutionResult as Vd, createFeishuSessionKey as Vf, createSequenceRunIds as Vi, createRivusEnvFromOpenClawConfig as Vl, FeishuBackgroundSessionDelivery as Vn, FeishuCardTarget as Vo, AgentHarnessBusy as Vp, AgentMemorySnapshot as Vr, RivusDeploymentDaemonLifecycle as Vs, AutomationOutcome as Vt, JsonHttpResponse as Vu, HumanInteractionTransition as W, LangfuseAgentTelemetry as Wa, FeishuCardRolloverEvent as Wc, FeishuAgentDaemonHandleMessageOptions as Wd, JsonlFeishuCardDeliveryLedgerOptions as Wf, FeishuPeriodicFlushOptions as Wi, FeishuEndpointCredentials as Wl, createBackgroundSessionCard as Wn, FeishuWebSocketClientStartOptions as Wo, ConversationProgressDisplay as Wp, MemoryInvocationAudience as Wr, RivusDeploymentEndpointStatus as Ws, DeliveryJobStatus as Wt, SessionSchedulerCapacityExceeded as Wu, ToolApprovalBinding as X, resolveLangfuseTelemetryConfig as Xa, DEFAULT_CARD_STREAM_LEASE_MS as Xc, FeishuAgentDaemonSkippedResult as Xd, FeishuCardDeliveryRecord as Xf, createCoalescingFeishuPublisher as Xi, RivusTextFileReader as Xl, DEFAULT_BACKGROUND_SESSION_MAX_CONCURRENT_SESSIONS as Xn, createLazyFeishuWebSocketEventDispatcher as Xo, InvalidRivusEndpointBinding as Xr, BACKGROUND_SESSION_TOOL_PLUGIN_ID as Xs, createDailyAutomationSchedule as Xt, AgentRuntimeInput as Xu, SelectedHumanInteractionState as Y, createLangfuseAgentTelemetry as Ya, createFeishuCardRollover as Yc, FeishuAgentDaemonSessionResetResult as Yd, FeishuCardDeliveryReconcilerOptions as Yf, FeishuCoalescingPublisherOptions as Yi, RivusDaemonEnv as Yl, DEFAULT_BACKGROUND_SESSION_LIFETIME_MS as Yn, createFeishuWebSocketDaemon as Yo, AgentMemoryError as Yr, BACKGROUND_SESSION_TOOL_IDS as Ys, DailyAutomationSchedule as Yt, AgentRuntimeCancellation as Yu, ToolApprovalInteraction as Z, AgentModelContentObserver as Za, FeishuCardPresentationHandoffStart as Zc, FeishuAgentDaemonSteeredResult as Zd, createFeishuCardDeliveryLedger as Zf, FeishuStreamActionPublisher as Zi, RivusThinkingLevel as Zl, DEFAULT_BACKGROUND_SESSION_MAX_CONSECUTIVE_FAILURES as Zn, AgentEventLog as Zo, RivusAgentHost as Zr, BACKGROUND_SESSION_TOOL_VERSION as Zs, AutomationTickRepositoryCompatibility as Zt, AgentRuntimePool as Zu, createConfiguredFeishuMessageReactionSender as _, createFeishuCardKitOpenApiClient as _a, BackgroundSessionLimits as _c, ToolOperationBeginResult as _d, FeishuCancelRunCommand as _f, createToolBroker as _i, FeishuMessageWorkerOptions as _l, openJsonlAgentMemoryService as _n, FeishuTenantAccessTokenError as _o, AgentClock as _p, BackgroundSessionState as _r, FeishuCardActionToast as _s, loadNodeRivusPluginModule as _t, createDefaultAgentRuntime as _u, ConfiguredFeishuHumanInteractionPresenterOptions as a, createConfiguredFeishuCardKitTargetCreator as aa, RivusAgentDeploymentStatus as ac, AgentInstanceRegistryOptions as ad, FeishuPromptContextResolver as af, createFeishuDeploymentEndpoint as ai, isCardPresentationHandoffDue as al, CompactionService as an, restoreConfiguredRivusDaemonBootstrap as ao, PresentationStepStatus as ap, createBackgroundSessionHostTools as ar, FeishuAgentRuntime as as, LoadRivusDeploymentManifestOptions as at, DefaultAgentHarnessOptions as au, createRoutedHumanInteractionToolApprovalService as b, createFeishuCardPresentationStore as ba, AUTOMATION_SUPPRESSION_PREFIX as bc, ToolOperationLedger as bd, FeishuMessageIntakeOptions as bf, InvocationAuthorityRef as bi, FeishuMessageWorkerDrainAvailableResult as bl, ProjectSkillCatalogEntry as bn, FeishuTenantAccessTokenRequest as bo, AgentDomainEventSink as bp, claimBackgroundSession as br, FeishuRawCardJson as bs, loadRivusDeployment as bt, createSystemClock as bu, createFeishuHumanInteractionCard as c, FeishuCotProtocolError as ca, RivusAutomationDelivery as cc, AgentInstanceRecord as cd, FeishuCardActionCommand as cf, openJsonlRecoveryControl as ci, RivusDaemonProcess as cl, CompactionError as cn, createConfiguredFeishuCardRolloverRuntime as co, RunPresentation as cp, createBackgroundSessionRepository as cr, FeishuPeriodicFlushSupervisor as cs, CreateRivusDeploymentAutomationInput as ct, DefaultAgentRuntimeOptions as cu, createJsonlHumanInteractionRepository as d, FeishuCotRunPreparation as da, RivusBackgroundSessionsDeployment as dc, JsonlFeishuInboxRepositoryOptions as dd, FeishuResolveInteractionCommand as df, AuthorizationPolicyState as di, RivusDaemonWorkerLoop as dl, AgentContextBudgetExceeded as dn, FeishuOpenApiClient as do, ToolPresentationStep as dp, openJsonlBackgroundSessionDeliveryStore as dr, FeishuEventHandlers as ds, CreateRivusDeploymentEndpointInput as dt, createDefaultAgentHarness as du, FeishuCardKitOpenApiTargetCreatorOptions as ea, isBackgroundSessionToolId as ec, PooledAgentRuntime as ed, FeishuAgentMessageSideEffects as ef, RivusEndpointInput$1 as ei, CardPresentationChain as el, ScheduledAutomationOptions as en, ConfiguredRivusDaemonBootstrap as eo, FeishuStreamProjector as ep, DEFAULT_BACKGROUND_SESSION_SUPERVISOR_INTERVAL_MS as er, JsonlAgentEventLogOptions as es, UserDecisionInteractionState as et, DefaultAgentHarnessClientFromCallbackOptions as eu, JsonlHumanInteractionRepositoryOptions as f, createFeishuCotPublisher as fa, RivusDeploymentManifest as fc, openJsonlFeishuInboxRepository as fd, InvalidFeishuCardAction as ff, ToolApprovalRequest as fi, createRivusDaemonProcess as fl, AgentContextInput as fn, FeishuOpenApiError as fo, hasInspectableRunProgress as fp, createBackgroundSessionDeliveryStore as fr, FeishuEventHandlersOptions as fs, CreateRivusDeploymentRuntimeInput as ft, createDefaultAgentHarnessClient as fu, FeishuMessageReactionSender as g, FeishuCardKitOpenApiClientOptions as ga, RivusProjectSpaceDeployment as gc, createRecoveryControl as gd, FeishuCancelMessageIntakeSummary as gf, ToolExecutionRequest as gi, FeishuMessageWorker as gl, assembleAgentContext as gn, createFeishuOpenApiClient as go, ActiveAgentRun as gp, BackgroundSessionRepository as gr, FeishuCardActionCallbackResponse as gs, RivusDeploymentEndpoint as gt, createDefaultAgentHarnessFromTextCallback as gu, createConfiguredFeishuAutomationCardSender as h, createFeishuTopicContextResolver as ha, RivusPluginDeclaration as hc, RecoveryControlOptions as hd, FeishuAgentCommand as hf, ToolBrokerOptions as hi, createFeishuWorkerLoop as hl, AssembledAgentContext as hn, createConfiguredFeishuOpenApiClient as ho, createPresentedValue as hp, createBackgroundSessionService as hr, createFeishuEventHandlers as hs, RivusDeploymentDaemon as ht, createDefaultAgentHarnessFromCallback as hu, createFeishuAgentRunCard as i, FeishuCardTargetPreparationOptions as ia, ResolvedRivusProjectSpace as ic, AgentInstanceConflict as id, FeishuPromptContextInput as if, FeishuDeploymentEndpointOptions as ii, activeCardPresentation as il, createAutomationMandateStore as in, createConfiguredRivusDaemonBootstrap as io, PresentationStep as ip, CreateBackgroundSessionHostToolsOptions as ir, createAgentDomainEventSink as is, loadRivusDeploymentManifest as it, DefaultAgentHarnessFromTextCallbackOptions as iu, HumanInteractionRepository as j, PiAgentSessionEvent as ja, RivusDaemonShutdownControllerOptions as jc, FeishuInboxPendingState as jd, readFeishuMessageContent as jf, WorkspaceInstructionsSourceError as ji, FeishuMessageQueue as jl, RIVUS_MEMORY_TOOL_ID as jn, createInMemoryFeishuCardTargetRegistry as jo, AgentSessionAvailability as jp, requestBackgroundSessionStop as jr, RivusDeploymentBootstrapContext as js, DelegationGrant as jt, AgentRunUpdateCallback as ju, ResolveHumanInteractionInput as k, createPiSdkAgentLoop as ka, AutomationTick as kc, FeishuInboxDeliveryState as kd, InvalidFeishuMessageContent as kf, createWorkspaceRootHandle as ki, FeishuMessageDrainResult as kl, ProjectMemoryRecallOptions as kn, FeishuCardTargetRegistryStoreError as ko, AgentRunUpdateHandler as kp, releaseBackgroundSessionLease as kr, runRivusDaemonCli as ks, DelegationDenied as kt, AgentDomainEventCallback as ku, createFeishuHumanInteractionPresenter as l, FeishuCotPublisher as la, RivusAutomationDeliveryTargetType as lc, OpenJsonFeishuSessionStoreOptions as ld, FeishuCardActionIntakeError as lf, openJsonlToolOperationLedger as li, RivusDaemonProcessOptions as ll, CompactionSnapshot as ln, ConfiguredFeishuOpenApiRequest as lo, RunPresentationPhase as lp, openJsonlBackgroundSessionRepository as lr, FeishuEventHandlerCardActions as ls, CreateRivusDeploymentBackgroundSessionInput as lt, DefaultAgentRuntimeSessionOptions as lu, FeishuAutomationCardSender as m, InvalidFeishuTopicContext as ma, RivusEndpointExperimentalFeatures as mc, createRecoveryAction as md, createAgentCommandFromFeishuCardAction as mf, ToolBroker as mi, FeishuWorkerLoopOptions as ml, AgentContextLayerKind as mn, FeishuOpenApiResponse as mo, PresentedValueOptions as mp, isBackgroundSessionState as mr, FeishuSdkReceiveMessagePayload as ms, RivusDeploymentBackgroundSession as mt, createDefaultAgentHarnessClientFromTextCallback as mu, FEISHU_AGENT_CARD_PROGRESS_ELEMENT_ID as n, FeishuCardTargetCreateOptions as na, LoadedRivusDeployment as nc, AgentInstanceRegistry as nd, FeishuHumanInteractionActions as nf, FeishuPresentationPreparationOptions as ni, CardPresentationTransitionDenied as nl, AutomationTickRecord as nn, ConfiguredRivusDaemonBootstrapRequest as no, AssistantPresentationStep as np, extendBackgroundSessionDefinition as nr, AgentHistoryEventLog as ns, CreateConfiguredRivusDeploymentDaemonOptions as nt, DefaultAgentHarnessClientOptions as nu, FeishuHumanInteractionPresenterOptions as o, createFeishuCardKitOpenApiTargetCreator as oa, RivusPluginLoadStatus as oc, AgentInstanceBusy as od, composeFeishuTopicPrompt as of, createAgentHarnessPooledRuntime as oi, CompositeRivusDaemonTransportOptions as ol, CompactorPort as on, ConfiguredFeishuCardRolloverRuntime as oo, RUN_PRESENTATION_SCHEMA_VERSION as op, BackgroundSessionSupervisorOptions as or, FeishuAgentRuntimeOptions as os, RivusDeploymentManifestError as ot, DefaultAgentRuntimeFromCallbackOptions as ou, FeishuAutomationCardInput as p, FeishuTopicContextResolverOptions as pa, RivusEndpointDeployment as pc, InvalidRecoveryAction as pd, UnsupportedFeishuCardAction as pf, ToolApprovalService as pi, FeishuWorkerLoop as pl, AgentContextLayer as pn, FeishuOpenApiRequest as po, PresentedValue as pp, BACKGROUND_SESSION_JSONL_VERSION as pr, FeishuReceiveMessageHandlerPayload as ps, RivusDeploymentAutomation as pt, createDefaultAgentHarnessClientFromCallback as pu, RequestToolApprovalInput as q, LangfuseTelemetryContentMode as qa, FeishuCardRolloverOptions as qc, FeishuAgentDaemonOptions as qd, FeishuCardDeliveryLedgerStateOptions as qf, createConfiguredFeishuCardKitPublisher as qi, RivusDaemonConfigError as ql, DEFAULT_BACKGROUND_SESSION_LEASE_MS as qn, FeishuWebSocketEventDispatcher as qo, MemorySearchQuery as qr, RivusDeploymentDaemonLifecycleError as qs, OpenJsonAutomationTickRepositoryOptions as qt, SessionSchedulerStatus as qu, FeishuAgentRunCardInput as r, FeishuCardTargetCreator as ra, ResolvedRivusAutomationDefinition as rc, createAgentInstanceRegistry as rd, createFeishuAgentDaemon as rf, createFeishuPresentationPreparation as ri, acceptsCardPresentationProgress as rl, AutomationTickStatus as rn, ConfiguredRivusDaemonBootstrapResponse as ro, ModelPresentationStep as rp, narrowBackgroundSessionDefinition as rr, restoreAgentHistory as rs, createConfiguredRivusDeploymentDaemon as rt, DefaultAgentHarnessFromCallbackOptions as ru, createConfiguredFeishuHumanInteractionPresenter as s, createFeishuCardTargetPreparation as sa, RivusPluginModuleLoadRequest as sc, AgentRuntimeDisposed as sd, FeishuAgentRunPreparation as sf, JsonlRecoveryControlOptions as si, createCompositeRivusDaemonTransport as sl, createCompactionService as sn, ConfiguredFeishuCardRolloverRuntimeOptions as so, ResponsePresentationStep as sp, createBackgroundSessionSupervisor as sr, createFeishuAgentRuntime as ss, createRivusDeploymentDaemon as st, DefaultAgentRuntimeFromTextCallbackOptions as su, FEISHU_AGENT_CARD_ELEMENT_ID as t, FeishuCardPresentationBinder as ta, ProcessDeploymentEndpoint as tc, createAgentRuntimePool as td, FeishuAgentPreparedControl as tf, createRivusAgentHost as ti, CardPresentationStatus as tl, createScheduledAutomation as tn, ConfiguredRivusDaemonBootstrapOptions as to, createFeishuStreamProjector as tp, resolveBackgroundSessionSupervisorIntervalMs as tr, createJsonlAgentEventLog as ts, UserDecisionOption as tt, DefaultAgentHarnessClientFromTextCallbackOptions as tu, createInMemoryHumanInteractionRepository as u, FeishuCotPublisherOptions as ua, RivusAutomationDeployment as uc, openJsonFeishuSessionStore as ud, FeishuCardActionTriggerPayload as uf, AuthorizationPolicyProvider as ui, RivusDaemonTransport as ul, CompactionInput as un, ConfiguredFeishuOpenApiResponse as uo, SkillPresentationStep as up, BACKGROUND_SESSION_DELIVERY_JSONL_VERSION as ur, FeishuEventHandlerQueue as us, CreateRivusDeploymentDaemonOptions as ut, createAgentRuntime as uu, FeishuTextReplySender as v, FeishuCardPresentationNotFound as va, BackgroundSessionSupervisor as vc, ToolOperationBinding as vd, FeishuMessageIntakeBaseSummary as vf, ToolInvocationDenied as vi, FeishuMessageWorkerQueue as vl, InvalidProjectSkillCatalog as vn, FeishuTenantAccessTokenProvider as vo, AgentDomainEventHandler as vp, BackgroundSessionTransitionDenied as vr, createFeishuCardActionCallbackResponse as vs, LoadRivusDeploymentOptions as vt, createDefaultAgentRuntimeFromCallback as vu, createHumanInteractionEndpointRegistry as w, PiSessionRegistryOptions as wa, AutomationBinding as wc, ToolOperationState as wd, FeishuPromptAgentCommand as wf, InvalidStableJson as wi, FeishuReceiveMessageReplayResult as wl, InvalidRivusProjectSpace as wn, FeishuCardRolloverSupervisorOptions as wo, AgentHarnessError as wp, failBackgroundSessionStep as wr, RivusDaemonCliOptions as ws, SpawnSubagentRequest as wt, AgentClientSuccess as wu, createHumanInteractionModelChangeApproval as x, RunPresentationProjector as xa, ScheduledAutomationDeliveryInput as xc, ToolOperationReconciliation as xd, FeishuMessageIntakeSummary as xf, createInvocationAuthority as xi, FeishuReceiveAcceptedObservation as xl, validateProjectSkillCatalog as xn, FeishuTenantAccessTokenResponse as xo, AgentHarness as xp, completeBackgroundSessionStep as xr, RivusDaemonBootstrapContext as xs, RivusPluginLoadError as xt, createUuidRunIds as xu, createConfiguredFeishuTextReplySender as y, FeishuCardPresentationStoreOptions as ya, BackgroundSessionSupervisorStatus as yc, ToolOperationInspectResult as yd, FeishuMessageIntakeError as yf, InvocationAuthority as yi, createFeishuMessageWorker as yl, ProjectSkillCatalogDiagnostic as yn, FeishuTenantAccessTokenProviderOptions as yo, AgentDomainEventListener as yp, appendBackgroundSessionInput as yr, createFeishuCardActionErrorResponse as ys, RivusPluginModule as yt, createDefaultAgentRuntimeFromTextCallback as yu, HumanInteractionActor as z, createOpenTelemetryAgentEventSink as za, RivusDaemonStatusReporter as zc, RecoverySnapshot as zd, InvalidFeishuSessionReference as zf, resolveRivusAgentDefinition as zi, OpenClawEnvImportResult as zl, createMemoryNamespace as zn, FeishuCardKitPublisherOptions as zo, AgentEventHandlerFailed as zp, AgentMemoryIdentity as zr, RivusDeploymentBackgroundSessionReadinessError as zs, PluginStateStore as zt, JsonFetchRequestOptions as zu };
|
package/dist/chunks/pi.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { l as toEffectAgentLoopInput } from "./agent-loop.js";
|
|
2
|
+
import { i as requiresToolApproval, s as createToolInputDigest$1, u as createInvocationAuthority } from "./rivus-tool.js";
|
|
2
3
|
import { t as createSha256Digest } from "./sha256-digest.js";
|
|
3
|
-
import { a as requiresToolApproval, r as createToolInputDigest$1, s as createInvocationAuthority } from "./tool-input-digest.js";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import { readFile, realpath, stat } from "node:fs/promises";
|
|
6
6
|
import { isAbsolute, join, relative } from "node:path";
|
|
7
7
|
import { DefaultResourceLoader, SettingsManager, createReadToolDefinition } from "@earendil-works/pi-coding-agent";
|
|
8
|
-
import { realpathSync, statSync } from "node:fs";
|
|
9
8
|
import { Unsafe } from "typebox";
|
|
9
|
+
import { realpathSync, statSync } from "node:fs";
|
|
10
10
|
//#region src/adapters/pi/skills/pi-skill-read-tool.ts
|
|
11
11
|
var ProjectSkillReadDenied = class extends Error {
|
|
12
12
|
name = "ProjectSkillReadDenied";
|
|
@@ -164,13 +164,62 @@ const PI_BEHAVIOR_SETTING_KEYS = Object.freeze([
|
|
|
164
164
|
"websocketConnectTimeoutMs"
|
|
165
165
|
]);
|
|
166
166
|
async function createPiSessionResources(options) {
|
|
167
|
-
const settingsManager = createSanitizedSettingsManager(options.cwd, options.agentDir);
|
|
168
|
-
|
|
167
|
+
const settingsManager = createSanitizedSettingsManager(options.cwd, options.agentDir, options.settingsOverrides);
|
|
168
|
+
let skillPaths = await resolveSkillPaths(options);
|
|
169
|
+
let currentResourceLoader = createResourceLoader(options, settingsManager, skillPaths);
|
|
170
|
+
await currentResourceLoader.reload();
|
|
171
|
+
let skillNames = validatePiSkillCatalog(currentResourceLoader.getSkills());
|
|
172
|
+
const resourceLoader = createResourceLoaderFacade(() => currentResourceLoader, settingsManager);
|
|
173
|
+
return {
|
|
174
|
+
get skillNames() {
|
|
175
|
+
return skillNames;
|
|
176
|
+
},
|
|
177
|
+
get skillPaths() {
|
|
178
|
+
return skillPaths;
|
|
179
|
+
},
|
|
180
|
+
refresh: async () => {
|
|
181
|
+
const nextSkillPaths = await resolveSkillPaths(options);
|
|
182
|
+
const nextResourceLoader = createResourceLoader(options, settingsManager, nextSkillPaths);
|
|
183
|
+
await nextResourceLoader.reload();
|
|
184
|
+
const nextSkillNames = validatePiSkillCatalog(nextResourceLoader.getSkills());
|
|
185
|
+
skillPaths = nextSkillPaths;
|
|
186
|
+
currentResourceLoader = nextResourceLoader;
|
|
187
|
+
skillNames = nextSkillNames;
|
|
188
|
+
},
|
|
189
|
+
withSessionOptions: (sessionOptions) => Object.freeze({
|
|
190
|
+
...sessionOptions,
|
|
191
|
+
agentDir: options.agentDir,
|
|
192
|
+
cwd: options.cwd,
|
|
193
|
+
resourceLoader,
|
|
194
|
+
settingsManager
|
|
195
|
+
})
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
function createResourceLoaderFacade(getCurrent, settingsManager) {
|
|
199
|
+
return {
|
|
200
|
+
extendResources: (paths) => getCurrent().extendResources(paths),
|
|
201
|
+
getAgentsFiles: () => getCurrent().getAgentsFiles(),
|
|
202
|
+
getAppendSystemPrompt: () => getCurrent().getAppendSystemPrompt(),
|
|
203
|
+
getAppendSystemPromptSources: () => getCurrent().getAppendSystemPromptSources(),
|
|
204
|
+
getExtensions: () => getCurrent().getExtensions(),
|
|
205
|
+
getPrompts: () => getCurrent().getPrompts(),
|
|
206
|
+
getSkills: () => getCurrent().getSkills(),
|
|
207
|
+
getSystemPrompt: () => getCurrent().getSystemPrompt(),
|
|
208
|
+
getSystemPromptSource: () => getCurrent().getSystemPromptSource(),
|
|
209
|
+
getThemes: () => getCurrent().getThemes(),
|
|
210
|
+
reload: (reloadOptions) => getCurrent().reload(reloadOptions),
|
|
211
|
+
settingsManager
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
async function resolveSkillPaths(options) {
|
|
215
|
+
return resolvePiSkillSources({
|
|
169
216
|
agentDir: options.agentDir,
|
|
170
217
|
homeDirectory: options.homeDirectory,
|
|
171
218
|
...options.projectSkillPaths ? { projectSkillPaths: options.projectSkillPaths } : {}
|
|
172
219
|
});
|
|
173
|
-
|
|
220
|
+
}
|
|
221
|
+
function createResourceLoader(options, settingsManager, skillPaths) {
|
|
222
|
+
return new DefaultResourceLoader({
|
|
174
223
|
agentDir: options.agentDir,
|
|
175
224
|
additionalSkillPaths: [...skillPaths],
|
|
176
225
|
...options.appendSystemPromptOverride ? { appendSystemPromptOverride: options.appendSystemPromptOverride } : {},
|
|
@@ -183,23 +232,11 @@ async function createPiSessionResources(options) {
|
|
|
183
232
|
settingsManager,
|
|
184
233
|
...options.systemPromptOverride ? { systemPromptOverride: options.systemPromptOverride } : {}
|
|
185
234
|
});
|
|
186
|
-
await resourceLoader.reload();
|
|
187
|
-
const skillNames = validatePiSkillCatalog(resourceLoader.getSkills());
|
|
188
|
-
return Object.freeze({
|
|
189
|
-
skillNames,
|
|
190
|
-
skillPaths,
|
|
191
|
-
withSessionOptions: (sessionOptions) => Object.freeze({
|
|
192
|
-
...sessionOptions,
|
|
193
|
-
agentDir: options.agentDir,
|
|
194
|
-
cwd: options.cwd,
|
|
195
|
-
resourceLoader,
|
|
196
|
-
settingsManager
|
|
197
|
-
})
|
|
198
|
-
});
|
|
199
235
|
}
|
|
200
|
-
function createSanitizedSettingsManager(cwd, agentDir) {
|
|
236
|
+
function createSanitizedSettingsManager(cwd, agentDir, settingsOverrides) {
|
|
201
237
|
const fileSettings = SettingsManager.create(cwd, agentDir, { projectTrusted: false }).getGlobalSettings();
|
|
202
238
|
const behaviorSettings = Object.fromEntries(PI_BEHAVIOR_SETTING_KEYS.flatMap((key) => fileSettings[key] === void 0 ? [] : [[key, fileSettings[key]]]));
|
|
239
|
+
for (const key of PI_BEHAVIOR_SETTING_KEYS) if (settingsOverrides?.[key] !== void 0) behaviorSettings[key] = settingsOverrides[key];
|
|
203
240
|
return SettingsManager.inMemory(behaviorSettings, { projectTrusted: false });
|
|
204
241
|
}
|
|
205
242
|
//#endregion
|