@meiyukichan/dsh-sandore 0.1.0-rc.10
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/CommandEditor.js +23 -0
- package/lib/client/DagEditor.d.ts +22 -0
- package/lib/client/DagEditor.js +621 -0
- package/lib/client/DefinitionDetail.d.ts +13 -0
- package/lib/client/DefinitionDetail.js +39 -0
- package/lib/client/DefinitionList.d.ts +19 -0
- package/lib/client/DefinitionList.js +73 -0
- package/lib/client/DiscussionInput.d.ts +63 -0
- package/lib/client/DiscussionInput.js +289 -0
- package/lib/client/DragHandle.d.ts +16 -0
- package/lib/client/DragHandle.js +80 -0
- package/lib/client/EditorPane.d.ts +13 -0
- package/lib/client/EditorPane.js +23 -0
- package/lib/client/FlowEditor.d.ts +31 -0
- package/lib/client/FlowEditor.js +101 -0
- package/lib/client/InstanceList.d.ts +24 -0
- package/lib/client/InstanceList.js +121 -0
- package/lib/client/NewInstanceDialog.d.ts +19 -0
- package/lib/client/NewInstanceDialog.js +180 -0
- package/lib/client/PreviewPanel.d.ts +13 -0
- package/lib/client/PreviewPanel.js +18 -0
- package/lib/client/RunView.d.ts +79 -0
- package/lib/client/RunView.js +148 -0
- package/lib/client/StepChatPanel.d.ts +34 -0
- package/lib/client/StepChatPanel.js +317 -0
- package/lib/client/TreeNav.d.ts +27 -0
- package/lib/client/TreeNav.js +102 -0
- package/lib/client/UnifiedTimeline.d.ts +11 -0
- package/lib/client/UnifiedTimeline.js +259 -0
- package/lib/client/WorkflowButton.d.ts +11 -0
- package/lib/client/WorkflowButton.js +18 -0
- package/lib/client/WorkflowList.d.ts +18 -0
- package/lib/client/WorkflowList.js +38 -0
- package/lib/client/WorkflowOverlay.d.ts +6 -0
- package/lib/client/WorkflowOverlay.js +67 -0
- package/lib/client/chat/AssistantMarkdown.d.ts +22 -0
- package/lib/client/chat/AssistantMarkdown.js +77 -0
- package/lib/client/chat/CompactionItem.d.ts +24 -0
- package/lib/client/chat/CompactionItem.js +36 -0
- package/lib/client/chat/ContextBody.d.ts +136 -0
- package/lib/client/chat/ContextBody.js +397 -0
- package/lib/client/chat/ContextInjectionRow.d.ts +25 -0
- package/lib/client/chat/ContextInjectionRow.js +32 -0
- package/lib/client/chat/GenericCommandCard.d.ts +10 -0
- package/lib/client/chat/GenericCommandCard.js +37 -0
- package/lib/client/chat/MessageIconActions.d.ts +41 -0
- package/lib/client/chat/MessageIconActions.js +59 -0
- package/lib/client/chat/MessageItem.d.ts +65 -0
- package/lib/client/chat/MessageItem.js +201 -0
- package/lib/client/chat/ReasoningRow.d.ts +13 -0
- package/lib/client/chat/ReasoningRow.js +43 -0
- package/lib/client/chat/TurnTailNodeView.d.ts +29 -0
- package/lib/client/chat/TurnTailNodeView.js +18 -0
- package/lib/client/chat/UserMessageRow.d.ts +18 -0
- package/lib/client/chat/UserMessageRow.js +50 -0
- package/lib/client/chat/attachment/ImageLightbox.d.ts +26 -0
- package/lib/client/chat/attachment/ImageLightbox.js +42 -0
- package/lib/client/chat/attachment/MessageImage.d.ts +56 -0
- package/lib/client/chat/attachment/MessageImage.js +73 -0
- package/lib/client/chat/attachment/image-attachment.d.ts +41 -0
- package/lib/client/chat/attachment/image-attachment.js +62 -0
- package/lib/client/chat/attachment/image-labels.d.ts +21 -0
- package/lib/client/chat/attachment/image-labels.js +23 -0
- package/lib/client/chat/message-chrome.d.ts +51 -0
- package/lib/client/chat/message-chrome.js +79 -0
- package/lib/client/chat/reference/ReferenceIcon.d.ts +20 -0
- package/lib/client/chat/reference/ReferenceIcon.js +15 -0
- package/lib/client/chat/turn-assistant.d.ts +12 -0
- package/lib/client/chat/turn-assistant.js +8 -0
- package/lib/client/chat/turn-metrics.d.ts +42 -0
- package/lib/client/chat/turn-metrics.js +71 -0
- package/lib/client/chat/use-calendar-day.d.ts +5 -0
- package/lib/client/chat/use-calendar-day.js +26 -0
- package/lib/client/chat/use-throttled-visual-update.d.ts +7 -0
- package/lib/client/chat/use-throttled-visual-update.js +39 -0
- package/lib/client/chat-flow.d.ts +110 -0
- package/lib/client/chat-flow.js +178 -0
- package/lib/client/composer-selects.d.ts +17 -0
- package/lib/client/composer-selects.js +272 -0
- package/lib/client/dag-editor-model.d.ts +141 -0
- package/lib/client/dag-editor-model.js +304 -0
- package/lib/client/describe-error.d.ts +9 -0
- package/lib/client/describe-error.js +11 -0
- package/lib/client/index.d.ts +6 -0
- package/lib/client/index.js +120 -0
- package/lib/client/locales.d.ts +777 -0
- package/lib/client/locales.js +776 -0
- package/lib/client/model-faces.d.ts +156 -0
- package/lib/client/model-faces.js +107 -0
- package/lib/client/open-discussion.d.ts +24 -0
- package/lib/client/open-discussion.js +12 -0
- package/lib/client/panel-model.d.ts +34 -0
- package/lib/client/panel-model.js +50 -0
- package/lib/client/remote.d.ts +34 -0
- package/lib/client/remote.js +31 -0
- package/lib/client/run-view-model.d.ts +304 -0
- package/lib/client/run-view-model.js +469 -0
- package/lib/client/sandore-save.d.ts +41 -0
- package/lib/client/sandore-save.js +63 -0
- package/lib/client/sandore-sse.d.ts +15 -0
- package/lib/client/sandore-sse.js +60 -0
- package/lib/client/step-chat-retry.d.ts +44 -0
- package/lib/client/step-chat-retry.js +55 -0
- package/lib/client/tool/GenericToolCard.d.ts +28 -0
- package/lib/client/tool/GenericToolCard.js +42 -0
- package/lib/client/tool/ToolRow.d.ts +95 -0
- package/lib/client/tool/ToolRow.js +129 -0
- package/lib/client/tool/diff-card-model.d.ts +63 -0
- package/lib/client/tool/diff-card-model.js +74 -0
- package/lib/client/tool/read-card-model.d.ts +67 -0
- package/lib/client/tool/read-card-model.js +56 -0
- package/lib/client/tool/search-card-model.d.ts +94 -0
- package/lib/client/tool/search-card-model.js +94 -0
- package/lib/client/tool/terminal-card-model.d.ts +86 -0
- package/lib/client/tool/terminal-card-model.js +184 -0
- package/lib/client/tool/tool-call-model.d.ts +74 -0
- package/lib/client/tool/tool-call-model.js +233 -0
- package/lib/client/tool/web-card-model.d.ts +44 -0
- package/lib/client/tool/web-card-model.js +59 -0
- package/lib/client/use-focus-refresh.d.ts +1 -0
- package/lib/client/use-focus-refresh.js +23 -0
- package/lib/client/workflow-face.d.ts +68 -0
- package/lib/client/workflow-face.js +1 -0
- package/lib/client/workflow-store.d.ts +80 -0
- package/lib/client/workflow-store.js +99 -0
- package/lib/client/workspace-path.d.ts +15 -0
- package/lib/client/workspace-path.js +27 -0
- package/lib/client.js +38389 -0
- package/lib/index.js +8875 -0
- package/lib/microflow/branch-evaluator.d.ts +296 -0
- package/lib/microflow/branch-evaluator.js +813 -0
- package/lib/microflow/concurrency-limiter.d.ts +39 -0
- package/lib/microflow/concurrency-limiter.js +60 -0
- package/lib/microflow/errors.d.ts +39 -0
- package/lib/microflow/errors.js +36 -0
- package/lib/microflow/file-utils.d.ts +210 -0
- package/lib/microflow/file-utils.js +400 -0
- package/lib/microflow/finalize-manager.d.ts +414 -0
- package/lib/microflow/finalize-manager.js +1143 -0
- package/lib/microflow/fork-session.d.ts +151 -0
- package/lib/microflow/fork-session.js +224 -0
- package/lib/microflow/index.d.ts +17 -0
- package/lib/microflow/index.js +17 -0
- package/lib/microflow/internal.d.ts +56 -0
- package/lib/microflow/internal.js +124 -0
- package/lib/microflow/loop-manager.d.ts +127 -0
- package/lib/microflow/loop-manager.js +178 -0
- package/lib/microflow/rules-resolver.d.ts +28 -0
- package/lib/microflow/rules-resolver.js +33 -0
- package/lib/microflow/stage-executor.d.ts +362 -0
- package/lib/microflow/stage-executor.js +1127 -0
- package/lib/microflow/step-navigator.d.ts +108 -0
- package/lib/microflow/step-navigator.js +209 -0
- package/lib/microflow/step-runner.d.ts +190 -0
- package/lib/microflow/step-runner.js +527 -0
- package/lib/microflow/subagents.d.ts +380 -0
- package/lib/microflow/subagents.js +86 -0
- package/lib/tool/index.d.ts +65 -0
- package/lib/tool/index.js +206 -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/ask-tool.js +97 -0
- package/lib/workflow/dag-navigator.d.ts +136 -0
- package/lib/workflow/dag-navigator.js +333 -0
- package/lib/workflow/domain.d.ts +304 -0
- package/lib/workflow/domain.js +19 -0
- package/lib/workflow/engine-surface.d.ts +70 -0
- package/lib/workflow/engine-surface.js +1 -0
- package/lib/workflow/errors.d.ts +13 -0
- package/lib/workflow/errors.js +11 -0
- package/lib/workflow/host-agent.d.ts +53 -0
- package/lib/workflow/host-agent.js +18 -0
- package/lib/workflow/index.d.ts +23 -0
- package/lib/workflow/index.js +11 -0
- package/lib/workflow/interaction-manager.d.ts +170 -0
- package/lib/workflow/interaction-manager.js +321 -0
- package/lib/workflow/lifecycle-manager.d.ts +111 -0
- package/lib/workflow/lifecycle-manager.js +203 -0
- package/lib/workflow/persistence.d.ts +35 -0
- package/lib/workflow/persistence.js +47 -0
- package/lib/workflow/plugin.d.ts +27 -0
- package/lib/workflow/plugin.js +36 -0
- package/lib/workflow/reactive-state.d.ts +27 -0
- package/lib/workflow/reactive-state.js +47 -0
- package/lib/workflow/recovery-manager.d.ts +158 -0
- package/lib/workflow/recovery-manager.js +351 -0
- package/lib/workflow/remote.d.ts +139 -0
- package/lib/workflow/remote.js +483 -0
- package/lib/workflow/schema.d.ts +1917 -0
- package/lib/workflow/schema.js +484 -0
- package/lib/workflow/seam.d.ts +254 -0
- package/lib/workflow/seam.js +91 -0
- package/lib/workflow/shell.d.ts +155 -0
- package/lib/workflow/shell.js +15 -0
- package/lib/workflow/sse.d.ts +16 -0
- package/lib/workflow/sse.js +86 -0
- package/lib/workflow/typert/typert.host.d.ts +16 -0
- package/lib/workflow/typert/typert.host.js +25 -0
- package/lib/workflow/typert/typert.remote-client.d.ts +114 -0
- package/lib/workflow/typert/typert.remote-client.js +399 -0
- package/lib/workflow/types.d.ts +187 -0
- package/lib/workflow/types.js +1 -0
- package/lib/workflow/wire.d.ts +256 -0
- package/lib/workflow/wire.js +160 -0
- package/lib/workflow/workflow-engine.d.ts +373 -0
- package/lib/workflow/workflow-engine.js +1833 -0
- package/lib/workflow/yaml-error.d.ts +22 -0
- package/lib/workflow/yaml-error.js +24 -0
- package/lib/workflow/yaml-parser.d.ts +23 -0
- package/lib/workflow/yaml-parser.js +274 -0
- package/package.json +137 -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 +1048 -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 +1153 -0
- package/packages/microflow/step-runner.ts +758 -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 +262 -0
- package/packages/workflow/dag-navigator.ts +430 -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 +177 -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
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# dsh-sandore bundle patch
|
|
2
|
+
#
|
|
3
|
+
# 本文件是 `dsh.bundle.patch` 层:通过官方 CLI 安装时——
|
|
4
|
+
#
|
|
5
|
+
# dsh plugin --profile <name> add @meiyukichan/dsh-sandore
|
|
6
|
+
#
|
|
7
|
+
# 命令会把 `dsh-sandore` 追加进 profile 的 `dsh.profile.bundles` 层栈;启动时
|
|
8
|
+
# profile boot 合并本 patch(单条 `insert` 插件行 + storage 路由),无需手改任何
|
|
9
|
+
# profile 文件。一个命令完成安装与挂载(host 引擎 + client UI + sqlite 持久化)。
|
|
10
|
+
#
|
|
11
|
+
# 行 id 用语义前缀 `sandore`:DSH bundle 的行 id 都是语义前缀(ui-* / tool-* /
|
|
12
|
+
# storage-* 等),`sandore` 唯一且不易与其它 overlay 的 id patch 冲突。
|
|
13
|
+
#
|
|
14
|
+
# 插件行 name = 本包名('@meiyukichan/dsh-sandore'):host 半由 main 提供;client 半经
|
|
15
|
+
# package.json 的 `dsh.client` 声明被 client-modules 扫描发现(exports["./client"])。
|
|
16
|
+
#
|
|
17
|
+
# storage 路由固化在此:sandore 存储域路由到 sqlite(行级读写,避免 json 后端把
|
|
18
|
+
# 整个 unit 全量重写进 sandore.json 导致膨胀)。`- id: storage-domain` 的 patch
|
|
19
|
+
# 会整行替换该行 config,所以必须同时带 `backend: json`(DSH bundle 默认)。
|
|
20
|
+
# storage-sqlite 包随本包 dependencies 安装(^0.1.0-rc.6),profile 可直接解析。
|
|
21
|
+
|
|
22
|
+
- insert:
|
|
23
|
+
- id: sandore
|
|
24
|
+
name: '@meiyukichan/dsh-sandore'
|
|
25
|
+
config:
|
|
26
|
+
defaultTimeoutMs: 7200000
|
|
27
|
+
maxConcurrentSteps: 0
|
|
28
|
+
- id: storage-sqlite
|
|
29
|
+
name: '@deepseek-ai/dsh-storage-sqlite'
|
|
30
|
+
config:
|
|
31
|
+
path: !!js dshHomePath('storages/sandore.sqlite')
|
|
32
|
+
|
|
33
|
+
# sandore 持久化走 sqlite:把 sandore 存储域路由到 sqlite 后端,
|
|
34
|
+
# 其余域保持 json 默认不变。
|
|
35
|
+
- id: storage-domain
|
|
36
|
+
config:
|
|
37
|
+
backend: json
|
|
38
|
+
routes:
|
|
39
|
+
sandore: sqlite
|
package/dsh.plugin.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "dsh-external/dsh-sandore",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"main": "./lib/index.js",
|
|
5
|
+
"description": "sandore: workflow orchestration engine for DSH — host engine + client UI in one bundle package",
|
|
6
|
+
"engines": {
|
|
7
|
+
"dsh": ">=0.0.1"
|
|
8
|
+
},
|
|
9
|
+
"contributes": {
|
|
10
|
+
"tools": [],
|
|
11
|
+
"skills": []
|
|
12
|
+
},
|
|
13
|
+
"client": {
|
|
14
|
+
"main": "./lib/client.js"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots';
|
|
2
|
+
import type { CommandConfig } from '@meiyukichan/dsh-sandore/schema';
|
|
3
|
+
import { type CommandType } from './dag-editor-model.ts';
|
|
4
|
+
/** 命令类型的本地化标签键。 */
|
|
5
|
+
export declare const COMMAND_LABEL_KEYS: {
|
|
6
|
+
readonly shell: "editor.command.shell";
|
|
7
|
+
readonly prompt: "editor.command.prompt";
|
|
8
|
+
readonly agent: "editor.command.agent";
|
|
9
|
+
readonly skill: "editor.command.skill";
|
|
10
|
+
readonly mcp: "editor.command.mcp";
|
|
11
|
+
};
|
|
12
|
+
/** 渲染命令编辑(类型选择 + 对应 value 字段)。`types` 可限定可选类型(如条件判断仅 bash/prompt)。 */
|
|
13
|
+
export declare function CommandEditor({ command, onChange, t, types }: {
|
|
14
|
+
readonly command: CommandConfig;
|
|
15
|
+
readonly onChange: (command: CommandConfig) => void;
|
|
16
|
+
readonly t: TranslateNS<'sandore'>;
|
|
17
|
+
/** 允许选择的命令类型;缺省为全部五类型。 */
|
|
18
|
+
readonly types?: readonly CommandType[] | undefined;
|
|
19
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* CommandEditor:五类型命令(shell/prompt/agent/skill/mcp)编辑,供 Step command 与
|
|
4
|
+
* 分支 condition / 循环 breakCondition 复用。
|
|
5
|
+
* @module @deepseek-ai/dsh-client-ui-sandore/src/client/CommandEditor
|
|
6
|
+
*/
|
|
7
|
+
import { Input, Pill } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
8
|
+
import { COMMAND_TYPES, createCommand, updateCommandText } from "./dag-editor-model.js";
|
|
9
|
+
import css from './DagEditor.module.css';
|
|
10
|
+
/** 命令类型的本地化标签键。 */
|
|
11
|
+
export const COMMAND_LABEL_KEYS = {
|
|
12
|
+
shell: 'editor.command.shell',
|
|
13
|
+
prompt: 'editor.command.prompt',
|
|
14
|
+
agent: 'editor.command.agent',
|
|
15
|
+
skill: 'editor.command.skill',
|
|
16
|
+
mcp: 'editor.command.mcp',
|
|
17
|
+
};
|
|
18
|
+
/** 渲染命令编辑(类型选择 + 对应 value 字段)。`types` 可限定可选类型(如条件判断仅 bash/prompt)。 */
|
|
19
|
+
export function CommandEditor({ command, onChange, t, types }) {
|
|
20
|
+
const available = types ?? COMMAND_TYPES;
|
|
21
|
+
const update = (field) => (value) => { onChange(updateCommandText(command, field, value)); };
|
|
22
|
+
return (_jsxs("div", { className: css.command, children: [_jsx("div", { className: css.commandTypes, role: "group", "aria-label": t('editor.step.command'), children: available.map(type => (_jsx(Pill, { active: command.type === type, onClick: () => { onChange(createCommand(type)); }, children: t(COMMAND_LABEL_KEYS[type]) }, type))) }), _jsxs("div", { className: css.commandValue, children: [command.type === 'shell' && (_jsx(Input, { value: command.value.command, onChange: event => { update('command')(event.target.value); }, placeholder: t('editor.field.command') })), command.type === 'prompt' && (_jsxs(_Fragment, { children: [_jsx(Input, { value: command.value.promptText, onChange: event => { update('promptText')(event.target.value); }, placeholder: t('editor.field.promptText') }), _jsx(Input, { value: command.value.providerId ?? '', onChange: event => { update('providerId')(event.target.value); }, placeholder: t('editor.field.providerId') }), _jsx(Input, { value: command.value.modelId ?? '', onChange: event => { update('modelId')(event.target.value); }, placeholder: t('editor.field.modelId') })] })), command.type === 'agent' && (_jsxs(_Fragment, { children: [_jsx(Input, { value: command.value.promptText, onChange: event => { update('promptText')(event.target.value); }, placeholder: t('editor.field.promptText') }), _jsx(Input, { value: command.value.agentParamsTemplate ?? '', onChange: event => { update('agentParamsTemplate')(event.target.value); }, placeholder: t('editor.field.agentParamsTemplate') }), _jsx(Input, { value: command.value.providerId ?? '', onChange: event => { update('providerId')(event.target.value); }, placeholder: t('editor.field.providerId') }), _jsx(Input, { value: command.value.modelId ?? '', onChange: event => { update('modelId')(event.target.value); }, placeholder: t('editor.field.modelId') })] })), command.type === 'skill' && (_jsxs(_Fragment, { children: [_jsx(Input, { value: command.value.promptText, onChange: event => { update('promptText')(event.target.value); }, placeholder: t('editor.field.promptText') }), _jsx(Input, { value: command.value.providerId ?? '', onChange: event => { update('providerId')(event.target.value); }, placeholder: t('editor.field.providerId') })] })), command.type === 'mcp' && (_jsx(Input, { value: command.value.promptText, onChange: event => { update('promptText')(event.target.value); }, placeholder: t('editor.field.promptText') }))] })] }));
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import '@xyflow/react/dist/style.css';
|
|
2
|
+
import './reactflow-theme.css';
|
|
3
|
+
import type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots';
|
|
4
|
+
import { type SaveDefinition } from './sandore-save.ts';
|
|
5
|
+
import type { WorkflowOverlayFace } from './workflow-face.ts';
|
|
6
|
+
/** DagEditor 接收的最小业务 props:初始定义 + 保存回调 + face + locale。 */
|
|
7
|
+
export interface DagEditorProps {
|
|
8
|
+
/** 类型化的翻译函数(sandore 命名空间)。 */
|
|
9
|
+
t: TranslateNS<'sandore'>;
|
|
10
|
+
/** 已有定义的原始 YAML;省略时进入新建(空白骨架)。 */
|
|
11
|
+
initialYaml?: string | undefined;
|
|
12
|
+
/** 已有定义 id;新建时省略(首次保存后由保存回调返回并回填)。 */
|
|
13
|
+
initialId?: string | undefined;
|
|
14
|
+
/** 保存回调:`id` 为 `undefined` 时走 `createDefinition`,否则走 `updateYaml`;返回持久化后的 id。 */
|
|
15
|
+
save: SaveDefinition;
|
|
16
|
+
/** 保存成功回调(携带持久化后的 id),供宿主刷新定义列表等。 */
|
|
17
|
+
onSaved?: (id: string) => void;
|
|
18
|
+
/** 业务 face(「▶ 测试运行」复用 NewInstanceDialog 选工作目录后启动实例,无 job 概念)。 */
|
|
19
|
+
face: WorkflowOverlayFace;
|
|
20
|
+
}
|
|
21
|
+
/** 渲染 DagEditor(两层 DAG 画布 + 编辑侧栏 + YAML 预览)。 */
|
|
22
|
+
export declare function DagEditor({ t, initialYaml, initialId, save, onSaved, face }: DagEditorProps): import("react").JSX.Element;
|