mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:30:42 +00:00
refactor: trim lobster helper exports
This commit is contained in:
@@ -18,7 +18,7 @@ type BoundTaskFlow = ReturnType<
|
||||
type FlowRecord = ReturnType<BoundTaskFlow["createManaged"]>;
|
||||
type MutationResult = ReturnType<BoundTaskFlow["setWaiting"]>;
|
||||
|
||||
export type LobsterApprovalWaitState = {
|
||||
type LobsterApprovalWaitState = {
|
||||
kind: "lobster_approval";
|
||||
prompt: string;
|
||||
items: JsonLike[];
|
||||
@@ -26,7 +26,7 @@ export type LobsterApprovalWaitState = {
|
||||
approvalId?: string;
|
||||
};
|
||||
|
||||
export type RunManagedLobsterFlowParams = {
|
||||
type RunManagedLobsterFlowParams = {
|
||||
taskFlow: BoundTaskFlow;
|
||||
runner: LobsterRunner;
|
||||
runnerParams: LobsterRunnerParams;
|
||||
@@ -37,7 +37,7 @@ export type RunManagedLobsterFlowParams = {
|
||||
waitingStep?: string;
|
||||
};
|
||||
|
||||
export type ResumeManagedLobsterFlowParams = {
|
||||
type ResumeManagedLobsterFlowParams = {
|
||||
taskFlow: BoundTaskFlow;
|
||||
runner: LobsterRunner;
|
||||
runnerParams: LobsterRunnerParams & {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { vi } from "vitest";
|
||||
import type { OpenClawPluginApi } from "../runtime-api.js";
|
||||
|
||||
export type BoundTaskFlow = ReturnType<
|
||||
type BoundTaskFlow = ReturnType<
|
||||
NonNullable<OpenClawPluginApi["runtime"]>["tasks"]["managedFlows"]["bindSession"]
|
||||
>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user