ikanban-web 0.2.2 → 0.2.4
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/README.md +0 -17
- package/bin/cli.js +32 -2
- package/dist/assets/{ghostty-web-DC9h7yp6.js → ghostty-web-jGvmQkEo.js} +1 -1
- package/dist/assets/{home-B2bEEt-Q.js → home-CvPou5Jd.js} +1 -1
- package/dist/assets/{index-CLdyKsqF.css → index-CitLv2ln.css} +1 -1
- package/dist/assets/index-HcsA-1S9.js +2413 -0
- package/dist/assets/session-DXwXMH7X.js +24 -0
- package/dist/index.html +2 -2
- package/package.json +1 -6
- package/src/components/dialog-select-model.tsx +43 -6
- package/src/components/prompt-input.tsx +3 -9
- package/src/context/language.tsx +77 -199
- package/src/i18n/en.ts +1 -0
- package/src/pages/session/use-session-commands.tsx +226 -180
- package/dist/assets/index-BM0fG0_S.js +0 -2443
- package/dist/assets/session-CFBQK6ra.js +0 -24
package/README.md
CHANGED
|
@@ -29,23 +29,6 @@ It correctly bundles Solid in production mode and optimizes the build for the be
|
|
|
29
29
|
The build is minified and the filenames include the hashes.<br>
|
|
30
30
|
Your app is ready to be deployed!
|
|
31
31
|
|
|
32
|
-
## E2E Testing
|
|
33
|
-
|
|
34
|
-
Playwright starts the Vite dev server automatically via `webServer`, and UI tests need an opencode backend (defaults to `localhost:4096`).
|
|
35
|
-
Use the local runner to create a temp sandbox, seed data, and run the tests.
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
bunx playwright install
|
|
39
|
-
bun run test:e2e:local
|
|
40
|
-
bun run test:e2e:local -- --grep "settings"
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Environment options:
|
|
44
|
-
|
|
45
|
-
- `PLAYWRIGHT_SERVER_HOST` / `PLAYWRIGHT_SERVER_PORT` (backend address, default: `localhost:4096`)
|
|
46
|
-
- `PLAYWRIGHT_PORT` (Vite dev server port, default: `3000`)
|
|
47
|
-
- `PLAYWRIGHT_BASE_URL` (override base URL, default: `http://localhost:<PLAYWRIGHT_PORT>`)
|
|
48
|
-
|
|
49
32
|
## Deployment
|
|
50
33
|
|
|
51
34
|
You can deploy the `dist` folder to any static host provider (netlify, surge, now, etc.)
|
package/bin/cli.js
CHANGED
|
@@ -54,8 +54,38 @@ function proxyRequest(req, res) {
|
|
|
54
54
|
const server = http.createServer((req, res) => {
|
|
55
55
|
const url = new URL(req.url, `http://localhost:${PORT}`)
|
|
56
56
|
|
|
57
|
-
// Proxy API
|
|
58
|
-
|
|
57
|
+
// Proxy OpenCode API paths to backend.
|
|
58
|
+
// These are the top-level path segments used by @opencode-ai/sdk.
|
|
59
|
+
const API_PREFIXES = [
|
|
60
|
+
"/agent",
|
|
61
|
+
"/auth",
|
|
62
|
+
"/command",
|
|
63
|
+
"/config",
|
|
64
|
+
"/event",
|
|
65
|
+
"/experimental",
|
|
66
|
+
"/file",
|
|
67
|
+
"/find",
|
|
68
|
+
"/formatter",
|
|
69
|
+
"/global",
|
|
70
|
+
"/instance",
|
|
71
|
+
"/log",
|
|
72
|
+
"/lsp",
|
|
73
|
+
"/mcp",
|
|
74
|
+
"/path",
|
|
75
|
+
"/permission",
|
|
76
|
+
"/project",
|
|
77
|
+
"/provider",
|
|
78
|
+
"/pty",
|
|
79
|
+
"/question",
|
|
80
|
+
"/session",
|
|
81
|
+
"/skill",
|
|
82
|
+
"/tui",
|
|
83
|
+
"/vcs",
|
|
84
|
+
]
|
|
85
|
+
const isApi = API_PREFIXES.some(
|
|
86
|
+
(p) => url.pathname === p || url.pathname.startsWith(p + "/"),
|
|
87
|
+
)
|
|
88
|
+
if (isApi) {
|
|
59
89
|
return proxyRequest(req, res)
|
|
60
90
|
}
|
|
61
91
|
|