Skip to content

Commit f7d315a

Browse files
committed
Nuke the dag
1 parent 71b8b3f commit f7d315a

3 files changed

Lines changed: 4 additions & 160 deletions

File tree

apps/sim/lib/copilot/tools/server/workflow/edit-workflow/dag.test.ts

Lines changed: 0 additions & 92 deletions
This file was deleted.

apps/sim/lib/copilot/tools/server/workflow/edit-workflow/dag.ts

Lines changed: 0 additions & 56 deletions
This file was deleted.

apps/sim/lib/copilot/vfs/workspace-vfs.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import { compileDoc, getE2BDocFormat } from '@/lib/copilot/tools/server/files/do
2828
import { extractDocText, isExtractableDocExt } from '@/lib/copilot/tools/server/files/doc-extract'
2929
import { runE2BCompiledCheck } from '@/lib/copilot/tools/server/files/doc-recalc'
3030
import { isRenderableDocExt, renderDocToGrid } from '@/lib/copilot/tools/server/files/doc-render'
31-
import { computeWorkflowDag } from '@/lib/copilot/tools/server/workflow/edit-workflow/dag'
3231
import {
3332
collectWorkflowFieldIssues,
3433
lintEditedWorkflowState,
@@ -348,7 +347,6 @@ function getStaticComponentFiles(): Map<string, string> {
348347
* WORKSPACE.md — workspace inventory summary (auto-generated)
349348
* workflows/{name}/meta.json (root-level workflows)
350349
* workflows/{name}/state.json (sanitized blocks with embedded connections)
351-
* workflows/{name}/dag.json (block name -> downstream block names adjacency)
352350
* workflows/{name}/lint.json (sources/sinks, required-field, credential/resource issues)
353351
* workflows/{name}/executions.json
354352
* workflows/{name}/deployment.json
@@ -1094,16 +1092,10 @@ export class WorkspaceVFS {
10941092
} as any)
10951093
this.files.set(`${prefix}state.json`, JSON.stringify(sanitized, null, 2))
10961094

1097-
// Dynamically-computed workflow shape (dag.json) and validation
1098-
// state (lint.json), derived from the raw normalized state so
1099-
// subBlock values, advancedMode, canonicalModes, and subflow edges
1100-
// are all available.
1095+
// Dynamically-computed validation state (lint.json), derived from
1096+
// the raw normalized state so subBlock values, advancedMode,
1097+
// canonicalModes, and subflow edges are all available.
11011098
try {
1102-
this.files.set(
1103-
`${prefix}dag.json`,
1104-
JSON.stringify(computeWorkflowDag(normalized as any), null, 2)
1105-
)
1106-
11071099
const graphLint = lintEditedWorkflowState(normalized as any)
11081100
const fieldIssues = collectWorkflowFieldIssues(normalized.blocks as any)
11091101
let unresolvedReferences: Awaited<ReturnType<typeof collectUnresolvedReferences>> = []
@@ -1134,7 +1126,7 @@ export class WorkspaceVFS {
11341126
)
11351127
)
11361128
} catch (lintErr) {
1137-
logger.warn('Failed to compute lint.json/dag.json', {
1129+
logger.warn('Failed to compute lint.json', {
11381130
workflowId: wf.id,
11391131
error: toError(lintErr).message,
11401132
})

0 commit comments

Comments
 (0)