tongflow 0.2.0 → 1.0.0
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 +661 -0
- package/README.md +3 -2
- package/abi/tongflow.abi.json +49 -4
- package/dist/canvas-messages.cjs +71 -63
- package/dist/canvas-messages.js +71 -63
- package/dist/canvas.cjs +860 -260
- package/dist/canvas.css +1 -1
- package/dist/canvas.d.cts +158 -12
- package/dist/canvas.d.ts +158 -12
- package/dist/canvas.js +856 -261
- package/dist/index.cjs +659 -12
- package/dist/index.d.cts +317 -22
- package/dist/index.d.ts +317 -22
- package/dist/index.js +651 -13
- package/package.json +235 -233
package/package.json
CHANGED
|
@@ -1,235 +1,237 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
"optional": true
|
|
188
|
-
},
|
|
189
|
-
"uuid": {
|
|
190
|
-
"optional": true
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
"devDependencies": {
|
|
194
|
-
"@radix-ui/react-alert-dialog": "1.1.15",
|
|
195
|
-
"@radix-ui/react-checkbox": "1.3.3",
|
|
196
|
-
"@radix-ui/react-dialog": "1.1.15",
|
|
197
|
-
"@radix-ui/react-dropdown-menu": "2.1.16",
|
|
198
|
-
"@radix-ui/react-label": "2.1.7",
|
|
199
|
-
"@radix-ui/react-progress": "1.1.7",
|
|
200
|
-
"@radix-ui/react-select": "2.2.6",
|
|
201
|
-
"@radix-ui/react-separator": "1.1.7",
|
|
202
|
-
"@radix-ui/react-slider": "1.3.6",
|
|
203
|
-
"@radix-ui/react-slot": "1.2.3",
|
|
204
|
-
"@radix-ui/react-switch": "1.2.6",
|
|
205
|
-
"@radix-ui/react-tabs": "1.1.13",
|
|
206
|
-
"@radix-ui/react-tooltip": "1.2.8",
|
|
207
|
-
"@sparkjsdev/spark": "2.1.0",
|
|
208
|
-
"@tailwindcss/cli": "4",
|
|
209
|
-
"@types/node": "20.19.13",
|
|
210
|
-
"@types/react": "19",
|
|
211
|
-
"@types/react-18": "npm:@types/react@18",
|
|
212
|
-
"@types/react-dom": "19",
|
|
213
|
-
"@types/react-dom-18": "npm:@types/react-dom@18",
|
|
214
|
-
"@types/three": "0.183.1",
|
|
215
|
-
"@xyflow/react": "12.9.0",
|
|
216
|
-
"class-variance-authority": "0.7.1",
|
|
217
|
-
"clsx": "2.1.1",
|
|
218
|
-
"lucide-react": "0.544.0",
|
|
219
|
-
"masonic": "4.1.0",
|
|
220
|
-
"react": "19.2.1",
|
|
221
|
-
"react-dom": "19.2.1",
|
|
222
|
-
"react-hot-toast": "2.6.0",
|
|
223
|
-
"tailwind-merge": "3.3.1",
|
|
224
|
-
"tailwindcss": "4",
|
|
225
|
-
"three": "0.183.2",
|
|
226
|
-
"tsdown": "0.22.14",
|
|
227
|
-
"tsx": "4.20.5",
|
|
228
|
-
"tw-animate-css": "1.3.8",
|
|
229
|
-
"typescript": "5",
|
|
230
|
-
"use-intl": "4.8.3",
|
|
231
|
-
"uuid": "13.0.0",
|
|
232
|
-
"vitest": "4.1.5",
|
|
233
|
-
"zustand": "5.0.8"
|
|
2
|
+
"name": "tongflow",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "TongFlow workflow core: ABI, node registry, connection validation, workflow exporter, headless canvas model and agent graph tools.",
|
|
5
|
+
"author": "tong-io",
|
|
6
|
+
"license": "AGPL-3.0-only",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/tong-io/tongflow",
|
|
10
|
+
"directory": "packages/tongflow"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/tong-io/tongflow#readme",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"tongflow",
|
|
15
|
+
"workflow",
|
|
16
|
+
"modality-first",
|
|
17
|
+
"multimodal",
|
|
18
|
+
"agent",
|
|
19
|
+
"enterprise",
|
|
20
|
+
"generative-ai"
|
|
21
|
+
],
|
|
22
|
+
"type": "module",
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"*.css",
|
|
25
|
+
"./dist/canvas.js",
|
|
26
|
+
"./dist/canvas.cjs"
|
|
27
|
+
],
|
|
28
|
+
"main": "./dist/index.cjs",
|
|
29
|
+
"module": "./dist/index.js",
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"import": {
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"default": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"require": {
|
|
38
|
+
"types": "./dist/index.d.cts",
|
|
39
|
+
"default": "./dist/index.cjs"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"./canvas": {
|
|
43
|
+
"import": {
|
|
44
|
+
"types": "./dist/canvas.d.ts",
|
|
45
|
+
"default": "./dist/canvas.js"
|
|
46
|
+
},
|
|
47
|
+
"require": {
|
|
48
|
+
"types": "./dist/canvas.d.cts",
|
|
49
|
+
"default": "./dist/canvas.cjs"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"./canvas/messages": {
|
|
53
|
+
"import": {
|
|
54
|
+
"types": "./dist/canvas-messages.d.ts",
|
|
55
|
+
"default": "./dist/canvas-messages.js"
|
|
56
|
+
},
|
|
57
|
+
"require": {
|
|
58
|
+
"types": "./dist/canvas-messages.d.cts",
|
|
59
|
+
"default": "./dist/canvas-messages.cjs"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"./canvas.css": "./dist/canvas.css",
|
|
63
|
+
"./abi": "./abi/tongflow.abi.json",
|
|
64
|
+
"./package.json": "./package.json"
|
|
65
|
+
},
|
|
66
|
+
"files": [
|
|
67
|
+
"dist",
|
|
68
|
+
"abi",
|
|
69
|
+
"README.md"
|
|
70
|
+
],
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"@types/json-schema": "7.0.15",
|
|
73
|
+
"json-schema-to-ts": "3.1.1",
|
|
74
|
+
"zod": "4.1.8"
|
|
75
|
+
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
78
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
79
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
80
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
81
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
82
|
+
"@radix-ui/react-progress": "^1.1.7",
|
|
83
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
84
|
+
"@radix-ui/react-separator": "^1.1.7",
|
|
85
|
+
"@radix-ui/react-slider": "^1.3.6",
|
|
86
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
87
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
88
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
89
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
90
|
+
"@sparkjsdev/spark": "^2.1.0",
|
|
91
|
+
"@xyflow/react": "^12",
|
|
92
|
+
"class-variance-authority": "^0.7.1",
|
|
93
|
+
"clsx": "^2.1.1",
|
|
94
|
+
"lucide-react": "^0.544.0",
|
|
95
|
+
"masonic": "^4.1.0",
|
|
96
|
+
"react": ">=18 <20",
|
|
97
|
+
"react-dom": ">=18 <20",
|
|
98
|
+
"react-hot-toast": "^2.6.0",
|
|
99
|
+
"tailwind-merge": "^3.3.1",
|
|
100
|
+
"three": "^0.183.2",
|
|
101
|
+
"tw-animate-css": "^1.3.8",
|
|
102
|
+
"use-intl": "^4",
|
|
103
|
+
"uuid": "^13.0.0",
|
|
104
|
+
"zustand": "^5"
|
|
105
|
+
},
|
|
106
|
+
"peerDependenciesMeta": {
|
|
107
|
+
"@radix-ui/react-alert-dialog": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
110
|
+
"@radix-ui/react-checkbox": {
|
|
111
|
+
"optional": true
|
|
112
|
+
},
|
|
113
|
+
"@radix-ui/react-dialog": {
|
|
114
|
+
"optional": true
|
|
115
|
+
},
|
|
116
|
+
"@radix-ui/react-dropdown-menu": {
|
|
117
|
+
"optional": true
|
|
118
|
+
},
|
|
119
|
+
"@radix-ui/react-label": {
|
|
120
|
+
"optional": true
|
|
121
|
+
},
|
|
122
|
+
"@radix-ui/react-progress": {
|
|
123
|
+
"optional": true
|
|
124
|
+
},
|
|
125
|
+
"@radix-ui/react-select": {
|
|
126
|
+
"optional": true
|
|
127
|
+
},
|
|
128
|
+
"@radix-ui/react-separator": {
|
|
129
|
+
"optional": true
|
|
130
|
+
},
|
|
131
|
+
"@radix-ui/react-slider": {
|
|
132
|
+
"optional": true
|
|
133
|
+
},
|
|
134
|
+
"@radix-ui/react-slot": {
|
|
135
|
+
"optional": true
|
|
136
|
+
},
|
|
137
|
+
"@radix-ui/react-switch": {
|
|
138
|
+
"optional": true
|
|
139
|
+
},
|
|
140
|
+
"@radix-ui/react-tabs": {
|
|
141
|
+
"optional": true
|
|
142
|
+
},
|
|
143
|
+
"@radix-ui/react-tooltip": {
|
|
144
|
+
"optional": true
|
|
145
|
+
},
|
|
146
|
+
"@sparkjsdev/spark": {
|
|
147
|
+
"optional": true
|
|
148
|
+
},
|
|
149
|
+
"@xyflow/react": {
|
|
150
|
+
"optional": true
|
|
151
|
+
},
|
|
152
|
+
"class-variance-authority": {
|
|
153
|
+
"optional": true
|
|
154
|
+
},
|
|
155
|
+
"clsx": {
|
|
156
|
+
"optional": true
|
|
157
|
+
},
|
|
158
|
+
"lucide-react": {
|
|
159
|
+
"optional": true
|
|
160
|
+
},
|
|
161
|
+
"masonic": {
|
|
162
|
+
"optional": true
|
|
163
|
+
},
|
|
164
|
+
"react": {
|
|
165
|
+
"optional": true
|
|
166
|
+
},
|
|
167
|
+
"react-dom": {
|
|
168
|
+
"optional": true
|
|
169
|
+
},
|
|
170
|
+
"react-hot-toast": {
|
|
171
|
+
"optional": true
|
|
172
|
+
},
|
|
173
|
+
"tailwind-merge": {
|
|
174
|
+
"optional": true
|
|
175
|
+
},
|
|
176
|
+
"three": {
|
|
177
|
+
"optional": true
|
|
178
|
+
},
|
|
179
|
+
"tw-animate-css": {
|
|
180
|
+
"optional": true
|
|
181
|
+
},
|
|
182
|
+
"use-intl": {
|
|
183
|
+
"optional": true
|
|
184
|
+
},
|
|
185
|
+
"uuid": {
|
|
186
|
+
"optional": true
|
|
234
187
|
}
|
|
235
|
-
}
|
|
188
|
+
},
|
|
189
|
+
"devDependencies": {
|
|
190
|
+
"@radix-ui/react-alert-dialog": "1.1.15",
|
|
191
|
+
"@radix-ui/react-checkbox": "1.3.3",
|
|
192
|
+
"@radix-ui/react-dialog": "1.1.15",
|
|
193
|
+
"@radix-ui/react-dropdown-menu": "2.1.16",
|
|
194
|
+
"@radix-ui/react-label": "2.1.7",
|
|
195
|
+
"@radix-ui/react-progress": "1.1.7",
|
|
196
|
+
"@radix-ui/react-select": "2.2.6",
|
|
197
|
+
"@radix-ui/react-separator": "1.1.7",
|
|
198
|
+
"@radix-ui/react-slider": "1.3.6",
|
|
199
|
+
"@radix-ui/react-slot": "1.2.3",
|
|
200
|
+
"@radix-ui/react-switch": "1.2.6",
|
|
201
|
+
"@radix-ui/react-tabs": "1.1.13",
|
|
202
|
+
"@radix-ui/react-tooltip": "1.2.8",
|
|
203
|
+
"@sparkjsdev/spark": "2.1.0",
|
|
204
|
+
"@tailwindcss/cli": "4",
|
|
205
|
+
"@types/node": "20.19.13",
|
|
206
|
+
"@types/react": "19",
|
|
207
|
+
"@types/react-18": "npm:@types/react@18",
|
|
208
|
+
"@types/react-dom": "19",
|
|
209
|
+
"@types/react-dom-18": "npm:@types/react-dom@18",
|
|
210
|
+
"@types/three": "0.183.1",
|
|
211
|
+
"@xyflow/react": "12.9.0",
|
|
212
|
+
"class-variance-authority": "0.7.1",
|
|
213
|
+
"clsx": "2.1.1",
|
|
214
|
+
"lucide-react": "0.544.0",
|
|
215
|
+
"masonic": "4.1.0",
|
|
216
|
+
"react": "19.2.1",
|
|
217
|
+
"react-dom": "19.2.1",
|
|
218
|
+
"react-hot-toast": "2.6.0",
|
|
219
|
+
"tailwind-merge": "3.3.1",
|
|
220
|
+
"tailwindcss": "4",
|
|
221
|
+
"three": "0.183.2",
|
|
222
|
+
"tsdown": "0.22.14",
|
|
223
|
+
"tsx": "4.20.5",
|
|
224
|
+
"tw-animate-css": "1.3.8",
|
|
225
|
+
"typescript": "5",
|
|
226
|
+
"use-intl": "4.8.3",
|
|
227
|
+
"uuid": "13.0.0",
|
|
228
|
+
"vitest": "4.1.5",
|
|
229
|
+
"zustand": "5.0.8"
|
|
230
|
+
},
|
|
231
|
+
"scripts": {
|
|
232
|
+
"gen:abi": "tsx scripts/gen-abi-types.ts",
|
|
233
|
+
"build": "tsdown && tailwindcss -i src/canvas/styles/canvas.css -o dist/canvas.css --minify",
|
|
234
|
+
"test": "vitest run",
|
|
235
|
+
"typecheck": "tsc --noEmit -p tsconfig.core.json && tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.react18.json"
|
|
236
|
+
}
|
|
237
|
+
}
|