@saga-ai/cli 0.8.0 → 2.12.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/dist/cli.cjs +2 -1
- package/package.json +5 -2
package/dist/cli.cjs
CHANGED
|
@@ -1882,9 +1882,10 @@ function createApp(sagaRoot) {
|
|
|
1882
1882
|
});
|
|
1883
1883
|
app.use("/api", createApiRouter(sagaRoot));
|
|
1884
1884
|
const clientDistPath = (0, import_path6.join)(__dirname, "client");
|
|
1885
|
+
const indexHtmlPath = (0, import_path6.join)(clientDistPath, "index.html");
|
|
1885
1886
|
app.use(import_express2.default.static(clientDistPath));
|
|
1886
1887
|
app.get("/{*splat}", (_req, res) => {
|
|
1887
|
-
res.sendFile(
|
|
1888
|
+
res.sendFile("index.html", { root: clientDistPath });
|
|
1888
1889
|
});
|
|
1889
1890
|
return app;
|
|
1890
1891
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saga-ai/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "CLI for SAGA - Structured Autonomous Goal Achievement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"autoprefixer": "^10.4.23",
|
|
56
56
|
"class-variance-authority": "^0.7.1",
|
|
57
57
|
"clsx": "^2.1.1",
|
|
58
|
+
"concurrently": "^9.2.1",
|
|
58
59
|
"esbuild": "^0.24.0",
|
|
59
60
|
"lucide-react": "^0.563.0",
|
|
60
61
|
"playwright": "^1.58.0",
|
|
@@ -85,10 +86,12 @@
|
|
|
85
86
|
"build:all": "pnpm build && pnpm build:client",
|
|
86
87
|
"dev": "npm run build && node dist/cli.cjs",
|
|
87
88
|
"dev:client": "vite --config src/client/vite.config.ts",
|
|
88
|
-
"test": "vitest run",
|
|
89
|
+
"test": "concurrently -g \"vitest run\" \"pnpm run test:integration\" \"pnpm run test:e2e\"",
|
|
89
90
|
"test:watch": "vitest",
|
|
90
91
|
"test:integration": "playwright test --config src/client/playwright.config.ts",
|
|
91
92
|
"test:integration:ui": "playwright test --config src/client/playwright.config.ts --ui",
|
|
93
|
+
"test:e2e": "playwright test --config src/client/playwright.e2e.config.ts",
|
|
94
|
+
"test:e2e:ui": "playwright test --config src/client/playwright.e2e.config.ts --ui",
|
|
92
95
|
"test-storybook": "vitest --project=storybook",
|
|
93
96
|
"test:storybook": "vitest run --project=storybook",
|
|
94
97
|
"publish:npm": "pnpm build:all && pnpm test && pnpm publish --access public",
|