@meiyukichan/dsh-sandore 0.1.0-rc.6
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 +201 -0
- package/cordis.patch.yml +39 -0
- package/dsh.plugin.json +16 -0
- package/lib/client/CommandEditor.d.ts +19 -0
- package/lib/client/DagEditor.d.ts +22 -0
- package/lib/client/DefinitionDetail.d.ts +13 -0
- package/lib/client/DefinitionList.d.ts +19 -0
- package/lib/client/DiscussionInput.d.ts +63 -0
- package/lib/client/DragHandle.d.ts +16 -0
- package/lib/client/EditorPane.d.ts +13 -0
- package/lib/client/FlowEditor.d.ts +31 -0
- package/lib/client/InstanceList.d.ts +24 -0
- package/lib/client/NewInstanceDialog.d.ts +19 -0
- package/lib/client/PreviewPanel.d.ts +13 -0
- package/lib/client/RunView.d.ts +79 -0
- package/lib/client/StepChatPanel.d.ts +34 -0
- package/lib/client/TreeNav.d.ts +27 -0
- package/lib/client/UnifiedTimeline.d.ts +11 -0
- package/lib/client/WorkflowButton.d.ts +11 -0
- package/lib/client/WorkflowList.d.ts +18 -0
- package/lib/client/WorkflowOverlay.d.ts +6 -0
- package/lib/client/chat/AssistantMarkdown.d.ts +22 -0
- package/lib/client/chat/CompactionItem.d.ts +24 -0
- package/lib/client/chat/ContextBody.d.ts +136 -0
- package/lib/client/chat/ContextInjectionRow.d.ts +25 -0
- package/lib/client/chat/GenericCommandCard.d.ts +10 -0
- package/lib/client/chat/MessageIconActions.d.ts +41 -0
- package/lib/client/chat/MessageItem.d.ts +65 -0
- package/lib/client/chat/ReasoningRow.d.ts +13 -0
- package/lib/client/chat/TurnTailNodeView.d.ts +29 -0
- package/lib/client/chat/UserMessageRow.d.ts +18 -0
- package/lib/client/chat/attachment/ImageLightbox.d.ts +26 -0
- package/lib/client/chat/attachment/MessageImage.d.ts +56 -0
- package/lib/client/chat/attachment/image-attachment.d.ts +41 -0
- package/lib/client/chat/attachment/image-labels.d.ts +21 -0
- package/lib/client/chat/message-chrome.d.ts +51 -0
- package/lib/client/chat/reference/ReferenceIcon.d.ts +20 -0
- package/lib/client/chat/turn-assistant.d.ts +12 -0
- package/lib/client/chat/turn-metrics.d.ts +42 -0
- package/lib/client/chat/use-calendar-day.d.ts +5 -0
- package/lib/client/chat/use-throttled-visual-update.d.ts +7 -0
- package/lib/client/chat-flow.d.ts +110 -0
- package/lib/client/composer-selects.d.ts +17 -0
- package/lib/client/dag-editor-model.d.ts +141 -0
- package/lib/client/describe-error.d.ts +9 -0
- package/lib/client/index.d.ts +6 -0
- package/lib/client/locales.d.ts +777 -0
- package/lib/client/model-faces.d.ts +156 -0
- package/lib/client/open-discussion.d.ts +24 -0
- package/lib/client/panel-model.d.ts +34 -0
- package/lib/client/remote.d.ts +34 -0
- package/lib/client/run-view-model.d.ts +304 -0
- package/lib/client/sandore-save.d.ts +41 -0
- package/lib/client/sandore-sse.d.ts +15 -0
- package/lib/client/step-chat-retry.d.ts +44 -0
- package/lib/client/tool/GenericToolCard.d.ts +28 -0
- package/lib/client/tool/ToolRow.d.ts +95 -0
- package/lib/client/tool/diff-card-model.d.ts +63 -0
- package/lib/client/tool/read-card-model.d.ts +67 -0
- package/lib/client/tool/search-card-model.d.ts +94 -0
- package/lib/client/tool/terminal-card-model.d.ts +86 -0
- package/lib/client/tool/tool-call-model.d.ts +74 -0
- package/lib/client/tool/web-card-model.d.ts +44 -0
- package/lib/client/use-focus-refresh.d.ts +1 -0
- package/lib/client/workflow-face.d.ts +68 -0
- package/lib/client/workflow-store.d.ts +80 -0
- package/lib/client/workspace-path.d.ts +15 -0
- package/lib/client.js +38389 -0
- package/lib/index.js +8854 -0
- package/lib/microflow/branch-evaluator.d.ts +290 -0
- package/lib/microflow/concurrency-limiter.d.ts +39 -0
- package/lib/microflow/errors.d.ts +39 -0
- package/lib/microflow/file-utils.d.ts +210 -0
- package/lib/microflow/finalize-manager.d.ts +414 -0
- package/lib/microflow/fork-session.d.ts +151 -0
- package/lib/microflow/index.d.ts +17 -0
- package/lib/microflow/internal.d.ts +56 -0
- package/lib/microflow/loop-manager.d.ts +127 -0
- package/lib/microflow/rules-resolver.d.ts +28 -0
- package/lib/microflow/stage-executor.d.ts +362 -0
- package/lib/microflow/step-navigator.d.ts +108 -0
- package/lib/microflow/step-runner.d.ts +190 -0
- package/lib/microflow/subagents.d.ts +380 -0
- package/lib/tool/index.d.ts +65 -0
- package/lib/typert.host.d.ts +16 -0
- package/lib/typert.host.js +25 -0
- package/lib/typert.remote-client.d.ts +114 -0
- package/lib/typert.remote-client.js +399 -0
- package/lib/workflow/ask-tool.d.ts +78 -0
- package/lib/workflow/dag-navigator.d.ts +136 -0
- package/lib/workflow/domain.d.ts +304 -0
- package/lib/workflow/engine-surface.d.ts +70 -0
- package/lib/workflow/errors.d.ts +13 -0
- package/lib/workflow/host-agent.d.ts +53 -0
- package/lib/workflow/index.d.ts +23 -0
- package/lib/workflow/interaction-manager.d.ts +170 -0
- package/lib/workflow/lifecycle-manager.d.ts +111 -0
- package/lib/workflow/persistence.d.ts +35 -0
- package/lib/workflow/plugin.d.ts +27 -0
- package/lib/workflow/reactive-state.d.ts +27 -0
- package/lib/workflow/recovery-manager.d.ts +158 -0
- package/lib/workflow/remote.d.ts +139 -0
- package/lib/workflow/schema.d.ts +1917 -0
- package/lib/workflow/seam.d.ts +254 -0
- package/lib/workflow/shell.d.ts +127 -0
- package/lib/workflow/sse.d.ts +16 -0
- package/lib/workflow/typert/typert.host.d.ts +16 -0
- package/lib/workflow/typert/typert.remote-client.d.ts +114 -0
- package/lib/workflow/types.d.ts +187 -0
- package/lib/workflow/wire.d.ts +256 -0
- package/lib/workflow/workflow-engine.d.ts +373 -0
- package/lib/workflow/yaml-error.d.ts +22 -0
- package/lib/workflow/yaml-parser.d.ts +23 -0
- package/package.json +140 -0
- package/packages/client/CommandEditor.tsx +73 -0
- package/packages/client/DagEditor.module.css +711 -0
- package/packages/client/DagEditor.tsx +1203 -0
- package/packages/client/DefinitionDetail.module.css +110 -0
- package/packages/client/DefinitionDetail.tsx +126 -0
- package/packages/client/DefinitionList.tsx +173 -0
- package/packages/client/DiscussionInput.tsx +763 -0
- package/packages/client/DragHandle.tsx +92 -0
- package/packages/client/EditorPane.tsx +70 -0
- package/packages/client/FlowEditor.tsx +227 -0
- package/packages/client/InstanceList.tsx +250 -0
- package/packages/client/NewInstanceDialog.module.css +244 -0
- package/packages/client/NewInstanceDialog.tsx +478 -0
- package/packages/client/PreviewPanel.tsx +55 -0
- package/packages/client/RunView.module.css +246 -0
- package/packages/client/RunView.tsx +314 -0
- package/packages/client/StepChatPanel.tsx +486 -0
- package/packages/client/TreeNav.tsx +294 -0
- package/packages/client/UnifiedTimeline.tsx +484 -0
- package/packages/client/WorkflowButton.module.css +72 -0
- package/packages/client/WorkflowButton.tsx +50 -0
- package/packages/client/WorkflowList.tsx +158 -0
- package/packages/client/WorkflowOverlay.module.css +390 -0
- package/packages/client/WorkflowOverlay.tsx +136 -0
- package/packages/client/WorkflowPanel.module.css +247 -0
- package/packages/client/chat/AssistantMarkdown.module.css +38 -0
- package/packages/client/chat/AssistantMarkdown.tsx +120 -0
- package/packages/client/chat/ChatView.module.css +198 -0
- package/packages/client/chat/CompactionItem.tsx +85 -0
- package/packages/client/chat/ContextBody.module.css +162 -0
- package/packages/client/chat/ContextBody.tsx +598 -0
- package/packages/client/chat/ContextInjectionRow.module.css +63 -0
- package/packages/client/chat/ContextInjectionRow.tsx +78 -0
- package/packages/client/chat/GenericCommandCard.module.css +87 -0
- package/packages/client/chat/GenericCommandCard.tsx +76 -0
- package/packages/client/chat/MessageIconActions.module.css +84 -0
- package/packages/client/chat/MessageIconActions.tsx +147 -0
- package/packages/client/chat/MessageItem.module.css +293 -0
- package/packages/client/chat/MessageItem.tsx +384 -0
- package/packages/client/chat/ReasoningRow.module.css +82 -0
- package/packages/client/chat/ReasoningRow.tsx +70 -0
- package/packages/client/chat/TurnTailNodeView.module.css +10 -0
- package/packages/client/chat/TurnTailNodeView.tsx +63 -0
- package/packages/client/chat/UserMessageRow.module.css +75 -0
- package/packages/client/chat/UserMessageRow.tsx +92 -0
- package/packages/client/chat/accessibility.module.css +9 -0
- package/packages/client/chat/attachment/ImageLightbox.module.css +45 -0
- package/packages/client/chat/attachment/ImageLightbox.tsx +70 -0
- package/packages/client/chat/attachment/MessageImage.module.css +70 -0
- package/packages/client/chat/attachment/MessageImage.tsx +136 -0
- package/packages/client/chat/attachment/image-attachment.ts +98 -0
- package/packages/client/chat/attachment/image-labels.ts +34 -0
- package/packages/client/chat/message-chrome.ts +96 -0
- package/packages/client/chat/reference/ReferenceIcon.tsx +40 -0
- package/packages/client/chat/turn-assistant.ts +15 -0
- package/packages/client/chat/turn-metrics.ts +102 -0
- package/packages/client/chat/use-calendar-day.ts +27 -0
- package/packages/client/chat/use-throttled-visual-update.ts +44 -0
- package/packages/client/chat-flow.spec.ts +357 -0
- package/packages/client/chat-flow.ts +278 -0
- package/packages/client/composer-selects.module.css +376 -0
- package/packages/client/composer-selects.tsx +531 -0
- package/packages/client/dag-editor-model.spec.ts +173 -0
- package/packages/client/dag-editor-model.ts +359 -0
- package/packages/client/describe-error.spec.ts +18 -0
- package/packages/client/describe-error.ts +12 -0
- package/packages/client/index.ts +144 -0
- package/packages/client/input.module.css +854 -0
- package/packages/client/is-conditional-check.spec.ts +34 -0
- package/packages/client/locales.ts +789 -0
- package/packages/client/model-faces.ts +225 -0
- package/packages/client/open-discussion.spec.ts +39 -0
- package/packages/client/open-discussion.ts +32 -0
- package/packages/client/panel-model.spec.ts +152 -0
- package/packages/client/panel-model.ts +72 -0
- package/packages/client/preview.module.css +95 -0
- package/packages/client/react-dom.d.ts +11 -0
- package/packages/client/reactflow-theme.css +91 -0
- package/packages/client/remote.spec.ts +41 -0
- package/packages/client/remote.ts +46 -0
- package/packages/client/run-view-model.spec.ts +641 -0
- package/packages/client/run-view-model.ts +636 -0
- package/packages/client/sandore-save.spec.ts +146 -0
- package/packages/client/sandore-save.ts +97 -0
- package/packages/client/sandore-sse.ts +59 -0
- package/packages/client/step-chat-retry.spec.ts +70 -0
- package/packages/client/step-chat-retry.ts +65 -0
- package/packages/client/timeline.module.css +503 -0
- package/packages/client/tool/GenericToolCard.tsx +99 -0
- package/packages/client/tool/ToolRow.module.css +308 -0
- package/packages/client/tool/ToolRow.tsx +328 -0
- package/packages/client/tool/diff-card-model.ts +103 -0
- package/packages/client/tool/read-card-model.ts +86 -0
- package/packages/client/tool/search-card-model.ts +166 -0
- package/packages/client/tool/terminal-card-model.ts +225 -0
- package/packages/client/tool/tool-call-model.ts +267 -0
- package/packages/client/tool/web-card-model.ts +80 -0
- package/packages/client/tree-nav.module.css +282 -0
- package/packages/client/use-focus-refresh.ts +23 -0
- package/packages/client/workflow-face.ts +72 -0
- package/packages/client/workflow-store.spec.ts +49 -0
- package/packages/client/workflow-store.ts +161 -0
- package/packages/client/workspace-path.ts +27 -0
- package/packages/css-modules.d.ts +6 -0
- package/packages/microflow/branch-evaluator.spec.ts +745 -0
- package/packages/microflow/branch-evaluator.ts +1037 -0
- package/packages/microflow/concurrency-limiter.ts +70 -0
- package/packages/microflow/errors.ts +64 -0
- package/packages/microflow/file-utils.spec.ts +604 -0
- package/packages/microflow/file-utils.ts +521 -0
- package/packages/microflow/finalize-manager.spec.ts +1977 -0
- package/packages/microflow/finalize-manager.ts +1464 -0
- package/packages/microflow/fork-session.spec.ts +184 -0
- package/packages/microflow/fork-session.ts +316 -0
- package/packages/microflow/index.ts +17 -0
- package/packages/microflow/internal.ts +166 -0
- package/packages/microflow/loop-manager.spec.ts +294 -0
- package/packages/microflow/loop-manager.ts +255 -0
- package/packages/microflow/rules-resolver.spec.ts +147 -0
- package/packages/microflow/rules-resolver.ts +58 -0
- package/packages/microflow/stage-executor.spec.ts +1577 -0
- package/packages/microflow/stage-executor.ts +1478 -0
- package/packages/microflow/step-navigator.spec.ts +301 -0
- package/packages/microflow/step-navigator.ts +300 -0
- package/packages/microflow/step-runner.spec.ts +1132 -0
- package/packages/microflow/step-runner.ts +752 -0
- package/packages/microflow/subagents.spec.ts +215 -0
- package/packages/microflow/subagents.ts +422 -0
- package/packages/tests/fixtures/test-workflow.yaml +128 -0
- package/packages/tests/mocks/agents.ts +206 -0
- package/packages/tests/mocks/llm.ts +46 -0
- package/packages/tests/mocks/session-title.ts +31 -0
- package/packages/tests/mocks/sessions.ts +131 -0
- package/packages/tests/mocks/shell.ts +60 -0
- package/packages/tests/mocks/storage-domain.ts +101 -0
- package/packages/tests/mocks/subagents.ts +197 -0
- package/packages/tests/mocks/subprocess.ts +59 -0
- package/packages/tests/mocks/user-questions.ts +33 -0
- package/packages/tests/mocks/workspace.ts +52 -0
- package/packages/tool/index.spec.ts +287 -0
- package/packages/tool/index.ts +348 -0
- package/packages/workflow/ask-tool.ts +173 -0
- package/packages/workflow/dag-navigator.spec.ts +236 -0
- package/packages/workflow/dag-navigator.ts +425 -0
- package/packages/workflow/domain.ts +26 -0
- package/packages/workflow/engine-surface.ts +71 -0
- package/packages/workflow/errors.ts +13 -0
- package/packages/workflow/host-agent.spec.ts +92 -0
- package/packages/workflow/host-agent.ts +62 -0
- package/packages/workflow/index.ts +25 -0
- package/packages/workflow/interaction-manager.spec.ts +390 -0
- package/packages/workflow/interaction-manager.ts +397 -0
- package/packages/workflow/lifecycle-manager.spec.ts +683 -0
- package/packages/workflow/lifecycle-manager.ts +288 -0
- package/packages/workflow/persistence.spec.ts +109 -0
- package/packages/workflow/persistence.ts +64 -0
- package/packages/workflow/plugin.ts +39 -0
- package/packages/workflow/reactive-state.spec.ts +69 -0
- package/packages/workflow/reactive-state.ts +52 -0
- package/packages/workflow/recovery-manager.spec.ts +606 -0
- package/packages/workflow/recovery-manager.ts +471 -0
- package/packages/workflow/remote.spec.ts +1045 -0
- package/packages/workflow/remote.ts +479 -0
- package/packages/workflow/schema.spec.ts +303 -0
- package/packages/workflow/schema.ts +562 -0
- package/packages/workflow/seam.ts +293 -0
- package/packages/workflow/shell.ts +142 -0
- package/packages/workflow/sse.ts +110 -0
- package/packages/workflow/typert/typert.host.d.ts +16 -0
- package/packages/workflow/typert/typert.host.js +25 -0
- package/packages/workflow/typert/typert.remote-client.d.ts +114 -0
- package/packages/workflow/typert/typert.remote-client.js +399 -0
- package/packages/workflow/types.ts +258 -0
- package/packages/workflow/wire.ts +267 -0
- package/packages/workflow/workflow-engine-e2e.spec.ts +262 -0
- package/packages/workflow/workflow-engine-real-e2e.spec.ts +922 -0
- package/packages/workflow/workflow-engine.spec.ts +4389 -0
- package/packages/workflow/workflow-engine.ts +2133 -0
- package/packages/workflow/yaml-error.ts +29 -0
- package/packages/workflow/yaml-parser.spec.ts +757 -0
- package/packages/workflow/yaml-parser.ts +287 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
|
|
2
|
+
import type {
|
|
3
|
+
RemoteResult,
|
|
4
|
+
TypertRemoteContribution,
|
|
5
|
+
} from '@deepseek-ai/dsh-typert-protocol'
|
|
6
|
+
import type { LlmModelInfo, LlmProviderInfo } from '@deepseek-ai/dsh-llm'
|
|
7
|
+
import type {
|
|
8
|
+
ArtifactEntry,
|
|
9
|
+
CreateDefinitionInput,
|
|
10
|
+
DagRun,
|
|
11
|
+
ImportDefinitionInput,
|
|
12
|
+
ImportDefinitionResult,
|
|
13
|
+
InstanceSummary,
|
|
14
|
+
ListRevertBoundariesInput,
|
|
15
|
+
PauseAllInput,
|
|
16
|
+
PauseStepInput,
|
|
17
|
+
PingResponse,
|
|
18
|
+
RecoverInstanceInput,
|
|
19
|
+
RecoverOrphanedInstancesResult,
|
|
20
|
+
RejectQuestionInput,
|
|
21
|
+
ReplyPermissionInput,
|
|
22
|
+
ReplyQuestionInput,
|
|
23
|
+
ResumeAllInput,
|
|
24
|
+
ResumeStepInput,
|
|
25
|
+
RetryStepInput,
|
|
26
|
+
RevertBoundaryOption,
|
|
27
|
+
SendStepMessageInput,
|
|
28
|
+
StartInstanceInput,
|
|
29
|
+
UpdateDefinitionInput,
|
|
30
|
+
UpdateInstancePermissionModeInput,
|
|
31
|
+
WorkflowDefinitionEntry,
|
|
32
|
+
WorkflowTaskState,
|
|
33
|
+
} from 'dsh-sandore/types'
|
|
34
|
+
|
|
35
|
+
export type {
|
|
36
|
+
ArtifactEntry,
|
|
37
|
+
DagRun,
|
|
38
|
+
ImportDefinitionResult,
|
|
39
|
+
InstanceSummary,
|
|
40
|
+
PingResponse,
|
|
41
|
+
RecoverOrphanedInstancesResult,
|
|
42
|
+
WorkflowDefinitionEntry,
|
|
43
|
+
} from 'dsh-sandore/types'
|
|
44
|
+
|
|
45
|
+
declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
46
|
+
interface TypertRemoteNamespace$73616e646f7265 {
|
|
47
|
+
ping: () => Promise<RemoteResult<PingResponse>>
|
|
48
|
+
listDefinitions: () => Promise<RemoteResult<WorkflowDefinitionEntry[]>>
|
|
49
|
+
createDefinition: (input: CreateDefinitionInput) => Promise<RemoteResult<WorkflowDefinitionEntry>>
|
|
50
|
+
updateDefinition: (id: string, input: UpdateDefinitionInput) => Promise<RemoteResult<WorkflowDefinitionEntry>>
|
|
51
|
+
deleteDefinition: (id: string) => Promise<RemoteResult<boolean>>
|
|
52
|
+
getYaml: (id: string) => Promise<RemoteResult<string>>
|
|
53
|
+
updateYaml: (id: string, yaml: string) => Promise<RemoteResult<WorkflowDefinitionEntry>>
|
|
54
|
+
importDefinitionFromYaml: (input: ImportDefinitionInput) => Promise<RemoteResult<ImportDefinitionResult>>
|
|
55
|
+
listInstances: () => Promise<RemoteResult<InstanceSummary[]>>
|
|
56
|
+
startInstance: (input: StartInstanceInput) => Promise<RemoteResult<DagRun>>
|
|
57
|
+
deleteInstance: (instanceId: string) => Promise<RemoteResult<boolean>>
|
|
58
|
+
getInstanceState: (instanceId: string) => Promise<RemoteResult<WorkflowTaskState>>
|
|
59
|
+
abortInstance: (instanceId: string) => Promise<RemoteResult<void>>
|
|
60
|
+
recoverInstance: (input: RecoverInstanceInput) => Promise<RemoteResult<DagRun>>
|
|
61
|
+
recoverOrphanedInstances: () => Promise<RemoteResult<RecoverOrphanedInstancesResult>>
|
|
62
|
+
replyQuestion: (input: ReplyQuestionInput) => Promise<RemoteResult<void>>
|
|
63
|
+
rejectQuestion: (input: RejectQuestionInput) => Promise<RemoteResult<void>>
|
|
64
|
+
replyPermission: (input: ReplyPermissionInput) => Promise<RemoteResult<void>>
|
|
65
|
+
pauseStep: (input: PauseStepInput) => Promise<RemoteResult<void>>
|
|
66
|
+
resumeStep: (input: ResumeStepInput) => Promise<RemoteResult<void>>
|
|
67
|
+
pauseAll: (input: PauseAllInput) => Promise<RemoteResult<void>>
|
|
68
|
+
resumeAll: (input: ResumeAllInput) => Promise<RemoteResult<void>>
|
|
69
|
+
retryStep: (input: RetryStepInput) => Promise<RemoteResult<void>>
|
|
70
|
+
listRevertBoundaries: (input: ListRevertBoundariesInput) => Promise<RemoteResult<RevertBoundaryOption[]>>
|
|
71
|
+
sendStepMessage: (input: SendStepMessageInput) => Promise<RemoteResult<void>>
|
|
72
|
+
updateInstancePermissionMode: (input: UpdateInstancePermissionModeInput) => Promise<RemoteResult<void>>
|
|
73
|
+
getArtifacts: (instanceId: string, stageId?: string) => Promise<RemoteResult<ArtifactEntry[]>>
|
|
74
|
+
listProviders: () => Promise<RemoteResult<LlmProviderInfo[]>>
|
|
75
|
+
listModels: (provider: string) => Promise<RemoteResult<LlmModelInfo[]>>
|
|
76
|
+
}
|
|
77
|
+
interface TypertRemoteMap {
|
|
78
|
+
'sandore/ping': () => Promise<RemoteResult<PingResponse>>
|
|
79
|
+
'sandore/listDefinitions': () => Promise<RemoteResult<WorkflowDefinitionEntry[]>>
|
|
80
|
+
'sandore/createDefinition': (input: CreateDefinitionInput) => Promise<RemoteResult<WorkflowDefinitionEntry>>
|
|
81
|
+
'sandore/updateDefinition': (id: string, input: UpdateDefinitionInput) => Promise<RemoteResult<WorkflowDefinitionEntry>>
|
|
82
|
+
'sandore/deleteDefinition': (id: string) => Promise<RemoteResult<boolean>>
|
|
83
|
+
'sandore/getYaml': (id: string) => Promise<RemoteResult<string>>
|
|
84
|
+
'sandore/updateYaml': (id: string, yaml: string) => Promise<RemoteResult<WorkflowDefinitionEntry>>
|
|
85
|
+
'sandore/importDefinitionFromYaml': (input: ImportDefinitionInput) => Promise<RemoteResult<ImportDefinitionResult>>
|
|
86
|
+
'sandore/listInstances': () => Promise<RemoteResult<InstanceSummary[]>>
|
|
87
|
+
'sandore/startInstance': (input: StartInstanceInput) => Promise<RemoteResult<DagRun>>
|
|
88
|
+
'sandore/deleteInstance': (instanceId: string) => Promise<RemoteResult<boolean>>
|
|
89
|
+
'sandore/getInstanceState': (instanceId: string) => Promise<RemoteResult<WorkflowTaskState>>
|
|
90
|
+
'sandore/abortInstance': (instanceId: string) => Promise<RemoteResult<void>>
|
|
91
|
+
'sandore/recoverInstance': (input: RecoverInstanceInput) => Promise<RemoteResult<DagRun>>
|
|
92
|
+
'sandore/recoverOrphanedInstances': () => Promise<RemoteResult<RecoverOrphanedInstancesResult>>
|
|
93
|
+
'sandore/replyQuestion': (input: ReplyQuestionInput) => Promise<RemoteResult<void>>
|
|
94
|
+
'sandore/rejectQuestion': (input: RejectQuestionInput) => Promise<RemoteResult<void>>
|
|
95
|
+
'sandore/replyPermission': (input: ReplyPermissionInput) => Promise<RemoteResult<void>>
|
|
96
|
+
'sandore/pauseStep': (input: PauseStepInput) => Promise<RemoteResult<void>>
|
|
97
|
+
'sandore/resumeStep': (input: ResumeStepInput) => Promise<RemoteResult<void>>
|
|
98
|
+
'sandore/pauseAll': (input: PauseAllInput) => Promise<RemoteResult<void>>
|
|
99
|
+
'sandore/resumeAll': (input: ResumeAllInput) => Promise<RemoteResult<void>>
|
|
100
|
+
'sandore/retryStep': (input: RetryStepInput) => Promise<RemoteResult<void>>
|
|
101
|
+
'sandore/listRevertBoundaries': (input: ListRevertBoundariesInput) => Promise<RemoteResult<RevertBoundaryOption[]>>
|
|
102
|
+
'sandore/sendStepMessage': (input: SendStepMessageInput) => Promise<RemoteResult<void>>
|
|
103
|
+
'sandore/updateInstancePermissionMode': (input: UpdateInstancePermissionModeInput) => Promise<RemoteResult<void>>
|
|
104
|
+
'sandore/getArtifacts': (instanceId: string, stageId?: string) => Promise<RemoteResult<ArtifactEntry[]>>
|
|
105
|
+
'sandore/listProviders': () => Promise<RemoteResult<LlmProviderInfo[]>>
|
|
106
|
+
'sandore/listModels': (provider: string) => Promise<RemoteResult<LlmModelInfo[]>>
|
|
107
|
+
}
|
|
108
|
+
interface TypertRemoteNamespaceMap {
|
|
109
|
+
'sandore': TypertRemoteNamespace$73616e646f7265
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export declare const TYPERT_REMOTE: TypertRemoteContribution
|
|
114
|
+
export default TYPERT_REMOTE
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
const pingResponse = z.object({
|
|
5
|
+
pong: z.boolean(),
|
|
6
|
+
service: z.string(),
|
|
7
|
+
time: z.string(),
|
|
8
|
+
})
|
|
9
|
+
const definitionEntry = z.object({
|
|
10
|
+
id: z.string(),
|
|
11
|
+
yaml: z.string(),
|
|
12
|
+
name: z.string(),
|
|
13
|
+
version: z.string(),
|
|
14
|
+
description: z.string().optional(),
|
|
15
|
+
createdAt: z.string(),
|
|
16
|
+
updatedAt: z.string(),
|
|
17
|
+
})
|
|
18
|
+
const startModelSelection = z.object({
|
|
19
|
+
provider: z.string(),
|
|
20
|
+
model: z.string(),
|
|
21
|
+
reasoningEffort: z.string().optional(),
|
|
22
|
+
})
|
|
23
|
+
const instanceSummary = z.object({
|
|
24
|
+
instanceId: z.string(),
|
|
25
|
+
workflowId: z.string(),
|
|
26
|
+
originalInput: z.string(),
|
|
27
|
+
status: z.string(),
|
|
28
|
+
createdAt: z.string(),
|
|
29
|
+
updatedAt: z.string(),
|
|
30
|
+
})
|
|
31
|
+
const artifactEntry = z.object({
|
|
32
|
+
stepId: z.string(),
|
|
33
|
+
stageId: z.string(),
|
|
34
|
+
outputToId: z.string().optional(),
|
|
35
|
+
files: z.array(z.string()),
|
|
36
|
+
returnPrompt: z.string().optional(),
|
|
37
|
+
})
|
|
38
|
+
const dagRun = z.object({
|
|
39
|
+
instanceId: z.string(),
|
|
40
|
+
status: z.string(),
|
|
41
|
+
})
|
|
42
|
+
const askUserQuestionAnswerItem = z.object({
|
|
43
|
+
id: z.string(),
|
|
44
|
+
selected: z.array(z.string()),
|
|
45
|
+
custom: z.string().optional(),
|
|
46
|
+
})
|
|
47
|
+
const askUserQuestionAnswer = z.object({
|
|
48
|
+
answers: z.array(askUserQuestionAnswerItem),
|
|
49
|
+
})
|
|
50
|
+
const providerInfo = z.object({
|
|
51
|
+
id: z.string(),
|
|
52
|
+
name: z.string(),
|
|
53
|
+
})
|
|
54
|
+
const modelInfo = z.object({
|
|
55
|
+
provider: z.string(),
|
|
56
|
+
id: z.string(),
|
|
57
|
+
name: z.string(),
|
|
58
|
+
description: z.string().optional(),
|
|
59
|
+
inputModalities: z.array(z.enum(['text', 'image'])).optional(),
|
|
60
|
+
})
|
|
61
|
+
const importDefinitionResult = z.object({
|
|
62
|
+
status: z.enum(['created', 'updated', 'skipped']),
|
|
63
|
+
id: z.string(),
|
|
64
|
+
name: z.string(),
|
|
65
|
+
matchedCount: z.number(),
|
|
66
|
+
})
|
|
67
|
+
const revertBoundaryOption = z.object({
|
|
68
|
+
seq: z.number(),
|
|
69
|
+
turn: z.number(),
|
|
70
|
+
preview: z.string(),
|
|
71
|
+
})
|
|
72
|
+
const recoverOrphanedInstancesResult = z.object({
|
|
73
|
+
recovered: z.array(z.string()),
|
|
74
|
+
errors: z.array(z.object({ instanceId: z.string(), error: z.string() })),
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
const json = (schema, typeSymbol) => ({ mode: 'strict', typeSymbol, schema })
|
|
78
|
+
|
|
79
|
+
export const TYPERT_REMOTE = {
|
|
80
|
+
package: 'dsh-sandore/workflow',
|
|
81
|
+
descriptors: [
|
|
82
|
+
{
|
|
83
|
+
id: 'dsh-sandore/workflow#sandore/ping',
|
|
84
|
+
service: 'sandore',
|
|
85
|
+
namespace: 'sandore',
|
|
86
|
+
method: 'ping',
|
|
87
|
+
invocation: { kind: 'direct' },
|
|
88
|
+
parameters: [],
|
|
89
|
+
result: json(pingResponse, '../../src/workflow/types#PingResponse'),
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: 'dsh-sandore/workflow#sandore/listDefinitions',
|
|
93
|
+
service: 'sandore',
|
|
94
|
+
namespace: 'sandore',
|
|
95
|
+
method: 'listDefinitions',
|
|
96
|
+
invocation: { kind: 'direct' },
|
|
97
|
+
parameters: [],
|
|
98
|
+
result: json(z.array(definitionEntry), '../../src/workflow/types#WorkflowDefinitionEntry'),
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: 'dsh-sandore/workflow#sandore/createDefinition',
|
|
102
|
+
service: 'sandore',
|
|
103
|
+
namespace: 'sandore',
|
|
104
|
+
method: 'createDefinition',
|
|
105
|
+
invocation: { kind: 'direct' },
|
|
106
|
+
parameters: [
|
|
107
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ yaml: z.string() }), '../../src/workflow/types#CreateDefinitionInput') },
|
|
108
|
+
],
|
|
109
|
+
result: json(definitionEntry, '../../src/workflow/types#WorkflowDefinitionEntry'),
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: 'dsh-sandore/workflow#sandore/updateDefinition',
|
|
113
|
+
service: 'sandore',
|
|
114
|
+
namespace: 'sandore',
|
|
115
|
+
method: 'updateDefinition',
|
|
116
|
+
invocation: { kind: 'direct' },
|
|
117
|
+
parameters: [
|
|
118
|
+
{ name: 'id', wire: 'id', source: 'json', codec: json(z.string(), 'dsh-sandore/workflow#sandore/updateDefinition:id') },
|
|
119
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ name: z.string().optional(), version: z.string().optional(), description: z.string().optional() }), '../../src/workflow/types#UpdateDefinitionInput') },
|
|
120
|
+
],
|
|
121
|
+
result: json(definitionEntry, '../../src/workflow/types#WorkflowDefinitionEntry'),
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
id: 'dsh-sandore/workflow#sandore/deleteDefinition',
|
|
125
|
+
service: 'sandore',
|
|
126
|
+
namespace: 'sandore',
|
|
127
|
+
method: 'deleteDefinition',
|
|
128
|
+
invocation: { kind: 'direct' },
|
|
129
|
+
parameters: [
|
|
130
|
+
{ name: 'id', wire: 'id', source: 'json', codec: json(z.string(), 'dsh-sandore/workflow#sandore/deleteDefinition:id') },
|
|
131
|
+
],
|
|
132
|
+
result: json(z.boolean(), 'dsh-sandore/workflow#sandore/deleteDefinition:result'),
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
id: 'dsh-sandore/workflow#sandore/getYaml',
|
|
136
|
+
service: 'sandore',
|
|
137
|
+
namespace: 'sandore',
|
|
138
|
+
method: 'getYaml',
|
|
139
|
+
invocation: { kind: 'direct' },
|
|
140
|
+
parameters: [
|
|
141
|
+
{ name: 'id', wire: 'id', source: 'json', codec: json(z.string(), 'dsh-sandore/workflow#sandore/getYaml:id') },
|
|
142
|
+
],
|
|
143
|
+
result: json(z.string(), 'dsh-sandore/workflow#sandore/getYaml:result'),
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: 'dsh-sandore/workflow#sandore/updateYaml',
|
|
147
|
+
service: 'sandore',
|
|
148
|
+
namespace: 'sandore',
|
|
149
|
+
method: 'updateYaml',
|
|
150
|
+
invocation: { kind: 'direct' },
|
|
151
|
+
parameters: [
|
|
152
|
+
{ name: 'id', wire: 'id', source: 'json', codec: json(z.string(), 'dsh-sandore/workflow#sandore/updateYaml:id') },
|
|
153
|
+
{ name: 'yaml', wire: 'yaml', source: 'json', codec: json(z.string(), 'dsh-sandore/workflow#sandore/updateYaml:yaml') },
|
|
154
|
+
],
|
|
155
|
+
result: json(definitionEntry, '../../src/workflow/types#WorkflowDefinitionEntry'),
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: 'dsh-sandore/workflow#sandore/importDefinitionFromYaml',
|
|
159
|
+
service: 'sandore',
|
|
160
|
+
namespace: 'sandore',
|
|
161
|
+
method: 'importDefinitionFromYaml',
|
|
162
|
+
invocation: { kind: 'direct' },
|
|
163
|
+
parameters: [
|
|
164
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ yaml: z.string(), matchBy: z.enum(['id', 'name']).optional() }), '../../src/workflow/types#ImportDefinitionInput') },
|
|
165
|
+
],
|
|
166
|
+
result: json(importDefinitionResult, '../../src/workflow/types#ImportDefinitionResult'),
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
id: 'dsh-sandore/workflow#sandore/listInstances',
|
|
170
|
+
service: 'sandore',
|
|
171
|
+
namespace: 'sandore',
|
|
172
|
+
method: 'listInstances',
|
|
173
|
+
invocation: { kind: 'direct' },
|
|
174
|
+
// 去 job 概念:实例全量列表,无过滤参数。
|
|
175
|
+
parameters: [],
|
|
176
|
+
result: json(z.array(instanceSummary), '../../src/workflow/types#InstanceSummary'),
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
id: 'dsh-sandore/workflow#sandore/startInstance',
|
|
180
|
+
service: 'sandore',
|
|
181
|
+
namespace: 'sandore',
|
|
182
|
+
method: 'startInstance',
|
|
183
|
+
invocation: { kind: 'direct' },
|
|
184
|
+
parameters: [
|
|
185
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ workflowId: z.string(), originalInput: z.string(), cwd: z.string().optional(), model: startModelSelection.optional(), permission: z.string().optional() }), '../../src/workflow/types#StartInstanceInput') },
|
|
186
|
+
],
|
|
187
|
+
result: json(dagRun, '../../src/workflow/types#DagRun'),
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
id: 'dsh-sandore/workflow#sandore/deleteInstance',
|
|
191
|
+
service: 'sandore',
|
|
192
|
+
namespace: 'sandore',
|
|
193
|
+
method: 'deleteInstance',
|
|
194
|
+
invocation: { kind: 'direct' },
|
|
195
|
+
parameters: [
|
|
196
|
+
{ name: 'instanceId', wire: 'instanceId', source: 'json', codec: json(z.string(), 'dsh-sandore/workflow#sandore/deleteInstance:instanceId') },
|
|
197
|
+
],
|
|
198
|
+
result: json(z.boolean(), 'dsh-sandore/workflow#sandore/deleteInstance:result'),
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
id: 'dsh-sandore/workflow#sandore/getInstanceState',
|
|
202
|
+
service: 'sandore',
|
|
203
|
+
namespace: 'sandore',
|
|
204
|
+
method: 'getInstanceState',
|
|
205
|
+
invocation: { kind: 'direct' },
|
|
206
|
+
parameters: [
|
|
207
|
+
{ name: 'instanceId', wire: 'instanceId', source: 'json', codec: json(z.string(), 'dsh-sandore/workflow#sandore/getInstanceState:instanceId') },
|
|
208
|
+
],
|
|
209
|
+
result: json(z.unknown(), '../../src/workflow/types#WorkflowTaskState'),
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
id: 'dsh-sandore/workflow#sandore/abortInstance',
|
|
213
|
+
service: 'sandore',
|
|
214
|
+
namespace: 'sandore',
|
|
215
|
+
method: 'abortInstance',
|
|
216
|
+
invocation: { kind: 'direct' },
|
|
217
|
+
parameters: [
|
|
218
|
+
{ name: 'instanceId', wire: 'instanceId', source: 'json', codec: json(z.string(), 'dsh-sandore/workflow#sandore/abortInstance:instanceId') },
|
|
219
|
+
],
|
|
220
|
+
result: json(z.void(), 'dsh-sandore/workflow#sandore/abortInstance:result'),
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
id: 'dsh-sandore/workflow#sandore/recoverInstance',
|
|
224
|
+
service: 'sandore',
|
|
225
|
+
namespace: 'sandore',
|
|
226
|
+
method: 'recoverInstance',
|
|
227
|
+
invocation: { kind: 'direct' },
|
|
228
|
+
parameters: [
|
|
229
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ instanceId: z.string() }), '../../src/workflow/types#RecoverInstanceInput') },
|
|
230
|
+
],
|
|
231
|
+
result: json(dagRun, '../../src/workflow/types#DagRun'),
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
id: 'dsh-sandore/workflow#sandore/recoverOrphanedInstances',
|
|
235
|
+
service: 'sandore',
|
|
236
|
+
namespace: 'sandore',
|
|
237
|
+
method: 'recoverOrphanedInstances',
|
|
238
|
+
invocation: { kind: 'direct' },
|
|
239
|
+
parameters: [],
|
|
240
|
+
result: json(recoverOrphanedInstancesResult, '../../src/workflow/types#RecoverOrphanedInstancesResult'),
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
id: 'dsh-sandore/workflow#sandore/replyQuestion',
|
|
244
|
+
service: 'sandore',
|
|
245
|
+
namespace: 'sandore',
|
|
246
|
+
method: 'replyQuestion',
|
|
247
|
+
invocation: { kind: 'direct' },
|
|
248
|
+
parameters: [
|
|
249
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ instanceId: z.string(), requestId: z.string(), answers: askUserQuestionAnswer }), '../../src/workflow/types#ReplyQuestionInput') },
|
|
250
|
+
],
|
|
251
|
+
result: json(z.void(), 'dsh-sandore/workflow#sandore/replyQuestion:result'),
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
id: 'dsh-sandore/workflow#sandore/rejectQuestion',
|
|
255
|
+
service: 'sandore',
|
|
256
|
+
namespace: 'sandore',
|
|
257
|
+
method: 'rejectQuestion',
|
|
258
|
+
invocation: { kind: 'direct' },
|
|
259
|
+
parameters: [
|
|
260
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ instanceId: z.string(), requestId: z.string() }), '../../src/workflow/types#RejectQuestionInput') },
|
|
261
|
+
],
|
|
262
|
+
result: json(z.void(), 'dsh-sandore/workflow#sandore/rejectQuestion:result'),
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
id: 'dsh-sandore/workflow#sandore/replyPermission',
|
|
266
|
+
service: 'sandore',
|
|
267
|
+
namespace: 'sandore',
|
|
268
|
+
method: 'replyPermission',
|
|
269
|
+
invocation: { kind: 'direct' },
|
|
270
|
+
parameters: [
|
|
271
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ instanceId: z.string(), requestId: z.string(), reply: z.enum(['once', 'always', 'reject']) }), '../../src/workflow/types#ReplyPermissionInput') },
|
|
272
|
+
],
|
|
273
|
+
result: json(z.void(), 'dsh-sandore/workflow#sandore/replyPermission:result'),
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
id: 'dsh-sandore/workflow#sandore/pauseStep',
|
|
277
|
+
service: 'sandore',
|
|
278
|
+
namespace: 'sandore',
|
|
279
|
+
method: 'pauseStep',
|
|
280
|
+
invocation: { kind: 'direct' },
|
|
281
|
+
parameters: [
|
|
282
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ instanceId: z.string(), stepId: z.string() }), '../../src/workflow/types#PauseStepInput') },
|
|
283
|
+
],
|
|
284
|
+
result: json(z.void(), 'dsh-sandore/workflow#sandore/pauseStep:result'),
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
id: 'dsh-sandore/workflow#sandore/resumeStep',
|
|
288
|
+
service: 'sandore',
|
|
289
|
+
namespace: 'sandore',
|
|
290
|
+
method: 'resumeStep',
|
|
291
|
+
invocation: { kind: 'direct' },
|
|
292
|
+
parameters: [
|
|
293
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ instanceId: z.string(), stepId: z.string(), resumePrompt: z.string().optional() }), '../../src/workflow/types#ResumeStepInput') },
|
|
294
|
+
],
|
|
295
|
+
result: json(z.void(), 'dsh-sandore/workflow#sandore/resumeStep:result'),
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
id: 'dsh-sandore/workflow#sandore/pauseAll',
|
|
299
|
+
service: 'sandore',
|
|
300
|
+
namespace: 'sandore',
|
|
301
|
+
method: 'pauseAll',
|
|
302
|
+
invocation: { kind: 'direct' },
|
|
303
|
+
parameters: [
|
|
304
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ instanceId: z.string() }), '../../src/workflow/types#PauseAllInput') },
|
|
305
|
+
],
|
|
306
|
+
result: json(z.void(), 'dsh-sandore/workflow#sandore/pauseAll:result'),
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
id: 'dsh-sandore/workflow#sandore/resumeAll',
|
|
310
|
+
service: 'sandore',
|
|
311
|
+
namespace: 'sandore',
|
|
312
|
+
method: 'resumeAll',
|
|
313
|
+
invocation: { kind: 'direct' },
|
|
314
|
+
parameters: [
|
|
315
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ instanceId: z.string(), resumePrompt: z.string().optional() }), '../../src/workflow/types#ResumeAllInput') },
|
|
316
|
+
],
|
|
317
|
+
result: json(z.void(), 'dsh-sandore/workflow#sandore/resumeAll:result'),
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
id: 'dsh-sandore/workflow#sandore/retryStep',
|
|
321
|
+
service: 'sandore',
|
|
322
|
+
namespace: 'sandore',
|
|
323
|
+
method: 'retryStep',
|
|
324
|
+
invocation: { kind: 'direct' },
|
|
325
|
+
parameters: [
|
|
326
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ instanceId: z.string(), stepId: z.string(), mode: z.enum(['continue', 'revert', 'fork']), message: z.string() }), '../../src/workflow/types#RetryStepInput') },
|
|
327
|
+
],
|
|
328
|
+
result: json(z.void(), 'dsh-sandore/workflow#sandore/retryStep:result'),
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
id: 'dsh-sandore/workflow#sandore/listRevertBoundaries',
|
|
332
|
+
service: 'sandore',
|
|
333
|
+
namespace: 'sandore',
|
|
334
|
+
method: 'listRevertBoundaries',
|
|
335
|
+
invocation: { kind: 'direct' },
|
|
336
|
+
parameters: [
|
|
337
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ instanceId: z.string(), stepId: z.string() }), '../../src/workflow/types#ListRevertBoundariesInput') },
|
|
338
|
+
],
|
|
339
|
+
result: json(z.array(revertBoundaryOption), '../../src/workflow/types#RevertBoundaryOption'),
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
id: 'dsh-sandore/workflow#sandore/sendStepMessage',
|
|
343
|
+
service: 'sandore',
|
|
344
|
+
namespace: 'sandore',
|
|
345
|
+
method: 'sendStepMessage',
|
|
346
|
+
invocation: { kind: 'direct' },
|
|
347
|
+
parameters: [
|
|
348
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ instanceId: z.string(), stepId: z.string(), message: z.string().min(1) }), '../../src/workflow/types#SendStepMessageInput') },
|
|
349
|
+
],
|
|
350
|
+
result: json(z.void(), 'dsh-sandore/workflow#sandore/sendStepMessage:result'),
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
id: 'dsh-sandore/workflow#sandore/updateInstancePermissionMode',
|
|
354
|
+
service: 'sandore',
|
|
355
|
+
namespace: 'sandore',
|
|
356
|
+
method: 'updateInstancePermissionMode',
|
|
357
|
+
invocation: { kind: 'direct' },
|
|
358
|
+
parameters: [
|
|
359
|
+
{ name: 'input', wire: 'input', source: 'json', codec: json(z.object({ instanceId: z.string(), mode: z.enum(['read-only', 'workspace-write', 'danger-full-access']) }), '../../src/workflow/types#UpdateInstancePermissionModeInput') },
|
|
360
|
+
],
|
|
361
|
+
result: json(z.void(), 'dsh-sandore/workflow#sandore/updateInstancePermissionMode:result'),
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
id: 'dsh-sandore/workflow#sandore/getArtifacts',
|
|
365
|
+
service: 'sandore',
|
|
366
|
+
namespace: 'sandore',
|
|
367
|
+
method: 'getArtifacts',
|
|
368
|
+
invocation: { kind: 'direct' },
|
|
369
|
+
// `stageId?` 为可选过滤条件,Typert 客户端不支持可选参数;UI 只传必填 instanceId,
|
|
370
|
+
// stageId 由 Host SRC 宽松校验允许缺失(undefined → 全部 Stage 产物)。
|
|
371
|
+
parameters: [
|
|
372
|
+
{ name: 'instanceId', wire: 'instanceId', source: 'json', codec: json(z.string(), 'dsh-sandore/workflow#sandore/getArtifacts:instanceId') },
|
|
373
|
+
],
|
|
374
|
+
result: json(z.array(artifactEntry), '../../src/workflow/types#ArtifactEntry'),
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
id: 'dsh-sandore/workflow#sandore/listProviders',
|
|
378
|
+
service: 'sandore',
|
|
379
|
+
namespace: 'sandore',
|
|
380
|
+
method: 'listProviders',
|
|
381
|
+
invocation: { kind: 'direct' },
|
|
382
|
+
parameters: [],
|
|
383
|
+
result: json(z.array(providerInfo), 'dsh-sandore/workflow#sandore/listProviders:result'),
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
id: 'dsh-sandore/workflow#sandore/listModels',
|
|
387
|
+
service: 'sandore',
|
|
388
|
+
namespace: 'sandore',
|
|
389
|
+
method: 'listModels',
|
|
390
|
+
invocation: { kind: 'direct' },
|
|
391
|
+
parameters: [
|
|
392
|
+
{ name: 'provider', wire: 'provider', source: 'json', codec: json(z.string(), 'dsh-sandore/workflow#sandore/listModels:provider') },
|
|
393
|
+
],
|
|
394
|
+
result: json(z.array(modelInfo), 'dsh-sandore/workflow#sandore/listModels:result'),
|
|
395
|
+
},
|
|
396
|
+
],
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export default TYPERT_REMOTE
|