@yeaft/webchat-agent 1.0.358 → 1.0.360
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/index.js +15 -5
- package/local-runtime/version.json +1 -1
- package/local-runtime/web/app.bundle.js +74 -74
- package/local-runtime/web/app.bundle.js.gz +0 -0
- package/local-runtime/web/index.html +1 -1
- package/package.json +1 -1
- package/service/config.js +4 -0
- package/service/index.js +1 -0
- package/service.js +1 -0
|
Binary file
|
package/package.json
CHANGED
package/service/config.js
CHANGED
|
@@ -98,6 +98,10 @@ export function resolveRuntimeIdentity(fileConfig = {}, env = process.env) {
|
|
|
98
98
|
return { agentName, instanceId };
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
export function shouldLoadLegacyLocalConfig(env = process.env) {
|
|
102
|
+
return !String(env.YEAFT_AGENT_INSTANCE || '').trim();
|
|
103
|
+
}
|
|
104
|
+
|
|
101
105
|
export function resolveServiceInstanceId(args = [], env = process.env, options = {}) {
|
|
102
106
|
const { deprecatedInstanceId, explicitName } = readIdentityArgs(args);
|
|
103
107
|
if (explicitName) return explicitName;
|
package/service/index.js
CHANGED