Files
EasyFlow/easyflow-ui-admin/packages/tinyflow-ui/package.json
陈子默 ac8de7dbb8 feat: 增强代码节点编辑器与放大阅读体验
- tinyflow-ui: 新增 CodeScriptEditor(CodeMirror 6)并支持语法高亮、上下文补全、自动括号与 _result 高亮

- tinyflow-ui: 代码节点接入引擎能力列表与节点说明提示,统一 JS/Python 编辑体验

- tinyflow-ui: 增加放大编辑模式,支持居中弹层、ESC 与点击外部关闭

- app/workflow: 对接 supportedCodeEngines 能力并透传 codeEngine provider
2026-03-01 19:57:28 +08:00

84 lines
2.0 KiB
JSON

{
"name": "@tinyflow-ai/ui",
"version": "1.2.2",
"type": "module",
"keywords": [
"tinyflow",
"ai",
"ai flow",
"agent flow",
"agents flow"
],
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"module": "./dist/index.js",
"browser": "./dist/index.umd.js",
"license": "LGPL-3.0-or-later",
"files": [
"dist",
"LICENSE",
"README.md"
],
"scripts": {
"dev": "vite",
"build": "vite build",
"build:watch": "vite build --watch --emptyOutDir false",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json"
},
"devDependencies": {
"@rollup/plugin-replace": "^6.0.2",
"@sveltejs/vite-plugin-svelte": "^6.2.1",
"@tsconfig/svelte": "^5.0.5",
"@types/node": "^22.18.12",
"autoprefixer": "^10.4.21",
"less": "^4.2.2",
"svelte": "^5.45.2",
"svelte-check": "^4.3.4",
"typescript": "^5.6.2",
"vite": "^7.2.4",
"vite-plugin-dts": "^4.5.4"
},
"dependencies": {
"@codemirror/autocomplete": "^6.18.7",
"@codemirror/commands": "^6.8.1",
"@codemirror/lang-javascript": "^6.2.4",
"@codemirror/lang-python": "^6.2.1",
"@codemirror/language": "^6.11.3",
"@codemirror/state": "^6.5.2",
"@codemirror/view": "^6.38.6",
"@floating-ui/dom": "^1.7.4",
"@xyflow/svelte": "^1.4.2"
},
"imports": {
"#*": [
"./src/*.ts",
"./src/*.svelte"
]
},
"exports": {
".": {
"svelte": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.js"
},
"./dist/index.css": {
"import": "./dist/index.css",
"require": "./dist/index.css"
}
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"repository": {
"type": "git",
"url": "https://github.com/tinyflow-ai/tinyflow"
},
"bugs": {
"url": "https://github.com/tinyflow-ai/tinyflow/issues"
},
"homepage": "https://github.com/tinyflow-ai/tinyflow#readme"
}