dsh-auto-flow 0.1.1 → 0.1.3

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.
@@ -3,24 +3,43 @@ import type {
3
3
  RemoteResult,
4
4
  TypertRemoteContribution,
5
5
  } from '@deepseek-ai/dsh-typert-protocol'
6
- import type { ExecKillResult, ExecReadResult, ExecRequest, ExecResult, Greeting } from 'dsh-auto-flow/types'
6
+ import type { RetryPlanSummary, UnitEntryResult } from 'dsh-auto-flow/types'
7
+ import type { FlowGraph, FlowSummary, RunState, RunSummary, ScriptInfo, WorkflowDefinition, WorkflowListLlmRoutesResult, WorkflowListRouteModelsRequest, WorkflowListRouteModelsResult, WorkflowListRunsRequest } from 'workflow/types'
7
8
 
8
9
  declare module '@deepseek-ai/dsh-typert-protocol' {
9
10
  interface TypertRemoteNamespace$6175746f466c6f77 {
10
- exec: (request: ExecRequest) => Promise<RemoteResult<ExecResult>>
11
- execKill: (jobId: string) => Promise<RemoteResult<ExecKillResult>>
12
- execRead: (jobId: string) => Promise<RemoteResult<ExecReadResult>>
13
- last: () => Promise<RemoteResult<Greeting | null>>
14
- list: () => Promise<RemoteResult<Greeting[]>>
15
- send: (text: string) => Promise<RemoteResult<Greeting>>
11
+ approveRun: (runId: string, choice: string) => Promise<RemoteResult<RunState>>
12
+ cancelRun: (runId: string) => Promise<RemoteResult<RunState>>
13
+ deleteFlow: (flowId: string) => Promise<RemoteResult<{ deleted: boolean; }>>
14
+ listFlows: () => Promise<RemoteResult<FlowSummary[]>>
15
+ listLlmRoutes: () => Promise<RemoteResult<WorkflowListLlmRoutesResult>>
16
+ listRouteModels: (request: WorkflowListRouteModelsRequest) => Promise<RemoteResult<WorkflowListRouteModelsResult>>
17
+ listRuns: (request: WorkflowListRunsRequest) => Promise<RemoteResult<RunSummary[]>>
18
+ listScripts: () => Promise<RemoteResult<ScriptInfo[]>>
19
+ loadFlow: (flowId: string) => Promise<RemoteResult<WorkflowDefinition | null>>
20
+ resumeRun: (runId: string) => Promise<RemoteResult<RunState>>
21
+ retryRun: (runId: string) => Promise<RemoteResult<{ runId: string; plan: RetryPlanSummary; }>>
22
+ runFlow: (request: { flow: FlowGraph; workflowId?: string; name?: string; sessionId?: string; }) => Promise<RemoteResult<{ runId: string; }>>
23
+ runState: (runId: string) => Promise<RemoteResult<RunState | null>>
24
+ saveFlow: (flowId: string, flow: WorkflowDefinition) => Promise<RemoteResult<WorkflowDefinition>>
25
+ unitUrl: (unit: string) => Promise<RemoteResult<UnitEntryResult>>
16
26
  }
17
27
  interface TypertRemoteMap {
18
- 'autoFlow/exec': (request: ExecRequest) => Promise<RemoteResult<ExecResult>>
19
- 'autoFlow/execKill': (jobId: string) => Promise<RemoteResult<ExecKillResult>>
20
- 'autoFlow/execRead': (jobId: string) => Promise<RemoteResult<ExecReadResult>>
21
- 'autoFlow/last': () => Promise<RemoteResult<Greeting | null>>
22
- 'autoFlow/list': () => Promise<RemoteResult<Greeting[]>>
23
- 'autoFlow/send': (text: string) => Promise<RemoteResult<Greeting>>
28
+ 'autoFlow/approveRun': (runId: string, choice: string) => Promise<RemoteResult<RunState>>
29
+ 'autoFlow/cancelRun': (runId: string) => Promise<RemoteResult<RunState>>
30
+ 'autoFlow/deleteFlow': (flowId: string) => Promise<RemoteResult<{ deleted: boolean; }>>
31
+ 'autoFlow/listFlows': () => Promise<RemoteResult<FlowSummary[]>>
32
+ 'autoFlow/listLlmRoutes': () => Promise<RemoteResult<WorkflowListLlmRoutesResult>>
33
+ 'autoFlow/listRouteModels': (request: WorkflowListRouteModelsRequest) => Promise<RemoteResult<WorkflowListRouteModelsResult>>
34
+ 'autoFlow/listRuns': (request: WorkflowListRunsRequest) => Promise<RemoteResult<RunSummary[]>>
35
+ 'autoFlow/listScripts': () => Promise<RemoteResult<ScriptInfo[]>>
36
+ 'autoFlow/loadFlow': (flowId: string) => Promise<RemoteResult<WorkflowDefinition | null>>
37
+ 'autoFlow/resumeRun': (runId: string) => Promise<RemoteResult<RunState>>
38
+ 'autoFlow/retryRun': (runId: string) => Promise<RemoteResult<{ runId: string; plan: RetryPlanSummary; }>>
39
+ 'autoFlow/runFlow': (request: { flow: FlowGraph; workflowId?: string; name?: string; sessionId?: string; }) => Promise<RemoteResult<{ runId: string; }>>
40
+ 'autoFlow/runState': (runId: string) => Promise<RemoteResult<RunState | null>>
41
+ 'autoFlow/saveFlow': (flowId: string, flow: WorkflowDefinition) => Promise<RemoteResult<WorkflowDefinition>>
42
+ 'autoFlow/unitUrl': (unit: string) => Promise<RemoteResult<UnitEntryResult>>
24
43
  }
25
44
  interface TypertRemoteNamespaceMap {
26
45
  'autoFlow': TypertRemoteNamespace$6175746f466c6f77