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.
- package/LICENSE +21 -21
- package/README.md +253 -51
- package/cordis.patch.yml +3 -24
- package/lib/client.js +2899 -917
- package/lib/index.d.ts +360 -113
- package/lib/index.js +12222 -437
- package/lib/typert.host.js +1134 -158
- package/lib/typert.remote-client.d.ts +32 -13
- package/lib/typert.remote-client.js +846 -99
- package/lib/types-B5z-T_7S.d.ts +1389 -0
- package/lib/types.d.ts +2 -106
- package/lib/types.js +2 -1
- package/package.json +53 -37
|
@@ -3,24 +3,43 @@ import type {
|
|
|
3
3
|
RemoteResult,
|
|
4
4
|
TypertRemoteContribution,
|
|
5
5
|
} from '@deepseek-ai/dsh-typert-protocol'
|
|
6
|
-
import type {
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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/
|
|
19
|
-
'autoFlow/
|
|
20
|
-
'autoFlow/
|
|
21
|
-
'autoFlow/
|
|
22
|
-
'autoFlow/
|
|
23
|
-
'autoFlow/
|
|
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
|