安装
npm install -D @expressots/studio
快速启动
CLI 使用量
# Start Studio
npx expressots-studio start
# With options
npx expressots-studio start --port 3333 --agent-port 3334
# Show project info
npx expressots-studio info
# Clean Studio data
npx expressots-studio clean
程序用途
import { Studio } from "@expressots/studio";
const studio = new Studio({
uiPort: 3333,
agentPort: 3334,
dbPath: ".studio/studio.db",
srcPath: "./src",
});
await studio.start();
// Studio is now running
// UI: http://localhost:3333
// Agent: ws://localhost:3334
// To stop
await studio.stop();
与 ExpressotS CLI 合并
# Via ExpressoTS CLI (when integrated)
expressots studio
CLI 命令
start (默认)
启动快递工作室.
选项 :
-p, --port <port>- UI 端口( 默认: 3333)-a, --agent-port <port>- 代理WebSocket端口(默认:3334)-d, --db-path <path>- 数据库路径(默认:.studio/studio.db)--src <path>- 要扫描的源目录( 默认:./ src)--no-browser- 不要自动打开浏览器
info
显示当前项目的信息, 包括已发现的路径 .
选项 :
--src <path>- 要扫描的源目录( 默认:./ src)
clean
删除所有 Studio 数据( 数据库, 缓存) .
选项 :
-d, --db-path <path>- 数据库路径(默认:.studio/studio.db)
配置
您也可以通过 expressots.config.ts数字 :
// expressots.config.ts
export default {
studio: {
uiPort: 3333,
agentPort: 3334,
dbPath: ".studio/studio.db",
},
};
建筑
┌─────────────────────────────────────────────────────────┐
│ ExpressoTS Studio │
│ ┌─────────────┐ ┌──────────────┐ ┌────────────┐ │
│ │ Web UI │ │ Studio Agent │ │ MCP Server │ │
│ │ :3333 │←→│ :3334 │←→│ (AI tools) │ │
│ └─────────────┘ └──────────────┘ └────────────┘ │
│ ↓ ↓ │
│ Your ExpressoTS App (instrumented) │
└─────────────────────────────────────────────────────────┘
包含什么
- 工作室代理:仪器、路线发现、请求记录
- 网络用户界面: 有微量可视化、结构地图、度量衡的 Dashboard
- MCP 服务器: AI驱动的代码生成工具(可选)
许可证
麻省理工学院