mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-04 00:03:02 +00:00
remove copilot node
This commit is contained in:
@@ -37,7 +37,6 @@
|
||||
import { Alert, Drawer } from '../common'
|
||||
import Button from '../common/button/Button.svelte'
|
||||
import FlowYamlEditor from '../flows/header/FlowYamlEditor.svelte'
|
||||
import CopilotNode from './renderers/nodes/CopilotNode.svelte'
|
||||
export let success: boolean | undefined = undefined
|
||||
export let modules: FlowModule[] | undefined = []
|
||||
export let failureModule: FlowModule | undefined = undefined
|
||||
@@ -223,8 +222,7 @@
|
||||
branchOneStart: BranchOneStart,
|
||||
branchOneEnd: BranchAllEndNode,
|
||||
noBranch: NoBranchNode,
|
||||
trigger: TriggersNode,
|
||||
copilot: CopilotNode
|
||||
trigger: TriggersNode
|
||||
} as any
|
||||
|
||||
const edgeTypes = {
|
||||
|
||||
@@ -158,25 +158,6 @@ export default function graphBuilder(
|
||||
}
|
||||
}
|
||||
|
||||
if (extra.insertable && !extra.disableAi) {
|
||||
const copilotNode: Node = {
|
||||
id: 'Copilot',
|
||||
position: { x: -1, y: -1 },
|
||||
type: 'copilot',
|
||||
data: {}
|
||||
}
|
||||
nodes.push(copilotNode)
|
||||
if (!!preprocessorModule) {
|
||||
addEdge('Copilot', preprocessorModule.id, {
|
||||
type: 'hiddenedge'
|
||||
})
|
||||
} else {
|
||||
addEdge('Copilot', 'Input', {
|
||||
type: 'hiddenedge'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
if (extra.path) {
|
||||
const triggerNode: Node = {
|
||||
id: 'Trigger',
|
||||
@@ -192,11 +173,7 @@ export default function graphBuilder(
|
||||
}
|
||||
|
||||
nodes.push(triggerNode)
|
||||
if (extra.insertable && !extra.disableAi) {
|
||||
addEdge('Trigger', 'Copilot', {
|
||||
type: 'hiddenedge'
|
||||
})
|
||||
} else if (!!preprocessorModule) {
|
||||
if (!!preprocessorModule) {
|
||||
addEdge('Trigger', preprocessorModule.id, {
|
||||
type: 'hiddenedge'
|
||||
})
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
<script lang="ts">
|
||||
import NodeWrapper from './NodeWrapper.svelte'
|
||||
import FlowCopilotButton from '$lib/components/flows/map/FlowCopilotButton.svelte'
|
||||
import { NODE } from '../../util'
|
||||
</script>
|
||||
|
||||
<NodeWrapper wrapperClass="shadow-none">
|
||||
<div style="width: {NODE.width}px" class="flex flex-row justify-center">
|
||||
<FlowCopilotButton />
|
||||
</div>
|
||||
</NodeWrapper>
|
||||
Reference in New Issue
Block a user