@semiont/cli 0.4.5 → 0.4.6
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.mjs +286 -301
- package/dist/templates/envoy.yaml +13 -18
- package/package.json +7 -7
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# Envoy proxy configuration for local development and Codespaces
|
|
2
|
-
# Routes traffic between frontend (
|
|
2
|
+
# Routes traffic between frontend (Vite SPA) and backend (Hono API)
|
|
3
3
|
#
|
|
4
4
|
# Routing rules (order matters - first match wins):
|
|
5
|
-
# 1. /api/
|
|
6
|
-
# 2. /api/cookies/* →
|
|
7
|
-
# 3. /api/
|
|
5
|
+
# 1. /api/resources/* → backend (authenticated proxy for images/files)
|
|
6
|
+
# 2. /api/cookies/* → backend (cookie consent/export)
|
|
7
|
+
# 3. /api/tokens/mcp-setup → backend (MCP CLI token setup)
|
|
8
8
|
# 4. /resources/* → backend (main API, SSE-safe: no timeout, no buffering)
|
|
9
9
|
# 5. /annotations/* → backend (main API)
|
|
10
10
|
# 6. /admin/* → backend (main API)
|
|
11
11
|
# 7. /api/events/stream → backend (SSE-safe: no timeout, no buffering)
|
|
12
12
|
# 8. /api/participants/* → backend (SSE-safe: no timeout, no buffering)
|
|
13
13
|
# 9. /api/* → backend (OpenAPI docs, spec)
|
|
14
|
-
# 10. /
|
|
15
|
-
# 11. /* → frontend (
|
|
14
|
+
# 10. /assets/* → frontend (Vite static assets)
|
|
15
|
+
# 11. /* → frontend (Vite SPA pages)
|
|
16
16
|
|
|
17
17
|
static_resources:
|
|
18
18
|
listeners:
|
|
@@ -47,21 +47,16 @@ static_resources:
|
|
|
47
47
|
- name: local_service
|
|
48
48
|
domains: ["*"]
|
|
49
49
|
routes:
|
|
50
|
-
#
|
|
50
|
+
# Backend /api/ routes that need specific handling before generic /api/ catch-all
|
|
51
51
|
- match:
|
|
52
|
-
prefix: "/api/
|
|
52
|
+
prefix: "/api/resources/"
|
|
53
53
|
route:
|
|
54
|
-
cluster:
|
|
54
|
+
cluster: backend
|
|
55
55
|
timeout: 30s
|
|
56
56
|
- match:
|
|
57
57
|
prefix: "/api/cookies/"
|
|
58
58
|
route:
|
|
59
|
-
cluster:
|
|
60
|
-
timeout: 30s
|
|
61
|
-
- match:
|
|
62
|
-
prefix: "/api/resources/"
|
|
63
|
-
route:
|
|
64
|
-
cluster: frontend
|
|
59
|
+
cluster: backend
|
|
65
60
|
timeout: 30s
|
|
66
61
|
|
|
67
62
|
# Backend API routes (without /api prefix)
|
|
@@ -153,14 +148,14 @@ static_resources:
|
|
|
153
148
|
cluster: backend
|
|
154
149
|
timeout: 30s
|
|
155
150
|
|
|
156
|
-
#
|
|
151
|
+
# Vite static assets (must come before catch-all)
|
|
157
152
|
- match:
|
|
158
|
-
prefix: "/
|
|
153
|
+
prefix: "/assets/"
|
|
159
154
|
route:
|
|
160
155
|
cluster: frontend
|
|
161
156
|
timeout: 30s
|
|
162
157
|
|
|
163
|
-
# Everything else goes to frontend (
|
|
158
|
+
# Everything else goes to frontend (Vite SPA pages)
|
|
164
159
|
- match:
|
|
165
160
|
prefix: "/"
|
|
166
161
|
route:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semiont/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"description": "Semiont CLI - Unified environment management tool",
|
|
5
5
|
"_comment": "AWS SDK dependencies (@aws-sdk/*) are only used by platforms/aws",
|
|
6
6
|
"type": "module",
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"@aws-sdk/client-secrets-manager": "^3.600.0",
|
|
65
65
|
"@aws-sdk/client-sts": "^3.859.0",
|
|
66
66
|
"@aws-sdk/client-wafv2": "^3.859.0",
|
|
67
|
-
"@semiont/api-client": "0.4.
|
|
68
|
-
"@semiont/content": "0.4.
|
|
69
|
-
"@semiont/core": "0.4.
|
|
70
|
-
"@semiont/event-sourcing": "0.4.
|
|
71
|
-
"@semiont/graph": "0.4.
|
|
72
|
-
"@semiont/make-meaning": "0.4.
|
|
67
|
+
"@semiont/api-client": "0.4.6",
|
|
68
|
+
"@semiont/content": "0.4.6",
|
|
69
|
+
"@semiont/core": "0.4.6",
|
|
70
|
+
"@semiont/event-sourcing": "0.4.6",
|
|
71
|
+
"@semiont/graph": "0.4.6",
|
|
72
|
+
"@semiont/make-meaning": "0.4.6",
|
|
73
73
|
"arg": "^5.0.2",
|
|
74
74
|
"argon2": "^0.44.0",
|
|
75
75
|
"express": "^5.2.1",
|