Skip to content

Commit a8861bb

Browse files
committed
chore: add ts-edge dependency and update package versions
- Added `ts-edge` version 1.0.3 to `package.json`.
1 parent cb4086c commit a8861bb

3 files changed

Lines changed: 105 additions & 49 deletions

File tree

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
"sonner": "^2.0.4",
102102
"swr": "^2.3.3",
103103
"tailwind-merge": "^3.3.0",
104+
"ts-edge": "^1.0.3",
104105
"ts-safe": "^0.0.5",
105106
"tw-animate-css": "^1.3.3",
106107
"vaul": "^1.1.2",
@@ -129,10 +130,7 @@
129130
"vitest": "^3.1.4"
130131
},
131132
"lint-staged": {
132-
"*.{js,json,mjs,ts,yaml,tsx,css}": [
133-
"pnpm format",
134-
"pnpm lint:fix"
135-
]
133+
"*.{js,json,mjs,ts,yaml,tsx,css}": ["pnpm format", "pnpm lint:fix"]
136134
},
137135
"packageManager": "pnpm@10.2.1",
138136
"engines": {

pnpm-lock.yaml

Lines changed: 70 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/types/workflow.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
export type NodeType =
2+
| "start"
3+
| "end"
4+
| "condition"
5+
| "llm"
6+
| "tool"
7+
| "code"
8+
| "http";
9+
10+
export type NodeMetadata = {
11+
position: {
12+
x: number;
13+
y: number;
14+
};
15+
[key: string]: any;
16+
};
17+
18+
export type BaseNode = {
19+
id: string;
20+
name: string;
21+
description: string;
22+
metadata: NodeMetadata;
23+
};
24+
25+
export type StartNode = BaseNode & {
26+
type: "start";
27+
input: any;
28+
};
29+
30+
export type EndNode = BaseNode & {
31+
type: "end";
32+
output: any;
33+
};

0 commit comments

Comments
 (0)