@yeaft/webchat-agent 1.0.421 → 1.0.423
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/local-runtime/server/.env.example +2 -2
- package/local-runtime/server/config.js +4 -2
- package/local-runtime/version.json +1 -1
- package/local-runtime/web/app.bundle.js +160 -115
- package/local-runtime/web/app.bundle.js.gz +0 -0
- package/local-runtime/web/index.html +2 -2
- package/local-runtime/web/style.bundle.css +1 -1
- package/local-runtime/web/style.bundle.css.gz +0 -0
- package/package.json +1 -1
|
@@ -44,9 +44,9 @@ EMAIL_CODE_EXPIRES_IN=300000
|
|
|
44
44
|
# Agents must provide this secret to connect
|
|
45
45
|
AGENT_SECRET=agent-shared-secret
|
|
46
46
|
|
|
47
|
-
# Browser Runtime
|
|
47
|
+
# Browser Runtime routes are enabled by default; set false to disable them globally.
|
|
48
48
|
# Production deployments should configure endpoint-scoped TURN credentials.
|
|
49
|
-
# BROWSER_RUNTIME_ENABLED=
|
|
49
|
+
# BROWSER_RUNTIME_ENABLED=true
|
|
50
50
|
# BROWSER_STUN_URLS=stun:stun.example.com:3478
|
|
51
51
|
# BROWSER_TURN_URLS=turn:turn.example.com:3478,turns:turn.example.com:443?transport=tcp
|
|
52
52
|
# BROWSER_TURN_SECRET=replace-with-coturn-rest-api-secret
|
|
@@ -119,11 +119,13 @@ export const CONFIG = {
|
|
|
119
119
|
// Agent authentication (global fallback — per-user agent_secret is preferred)
|
|
120
120
|
agentSecret: process.env.AGENT_SECRET || DEFAULT_AGENT_SECRET,
|
|
121
121
|
|
|
122
|
-
// Browser
|
|
122
|
+
// Browser setup/viewer routes are available by default; an administrator can
|
|
123
|
+
// still disable the entire surface explicitly. Downloads remain opt-in in the
|
|
124
|
+
// Workbench and all lifecycle/signaling routes stay owner-scoped.
|
|
123
125
|
// TURN credentials use the standard time-limited HMAC username scheme; Web and
|
|
124
126
|
// Agent endpoints receive separately scoped usernames from the route ledger.
|
|
125
127
|
browserRuntime: {
|
|
126
|
-
enabled: process.env.BROWSER_RUNTIME_ENABLED
|
|
128
|
+
enabled: process.env.BROWSER_RUNTIME_ENABLED !== 'false',
|
|
127
129
|
iceTransportPolicy: process.env.BROWSER_ICE_TRANSPORT_POLICY === 'relay' ? 'relay' : 'all',
|
|
128
130
|
stunUrls: commaList(process.env.BROWSER_STUN_URLS),
|
|
129
131
|
turnUrls: commaList(process.env.BROWSER_TURN_URLS),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.0.
|
|
1
|
+
{"version":"1.0.423"}
|