@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.
Binary file
@@ -16,6 +16,6 @@
16
16
  </head>
17
17
  <body>
18
18
  <div id="app"></div>
19
- <script type="module" src="app.bundle.js?v=9b8157e4"></script>
19
+ <script type="module" src="app.bundle.js?v=0cf29e6e"></script>
20
20
  </body>
21
21
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "1.0.358",
3
+ "version": "1.0.360",
4
4
  "description": "Remote worker agent for Yeaft Web Code Agent — connects the native Yeaft engine, CLI providers, and workbench tools",
5
5
  "main": "index.js",
6
6
  "type": "module",
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
@@ -29,6 +29,7 @@ export {
29
29
  resolveDisplayName,
30
30
  resolveRuntimeIdentity,
31
31
  resolveServiceInstanceId,
32
+ shouldLoadLegacyLocalConfig,
32
33
  normalizeInstanceId,
33
34
  isDefaultInstance,
34
35
  validateInstanceId,
package/service.js CHANGED
@@ -22,6 +22,7 @@ export {
22
22
  resolveDisplayName,
23
23
  resolveRuntimeIdentity,
24
24
  resolveServiceInstanceId,
25
+ shouldLoadLegacyLocalConfig,
25
26
  normalizeInstanceId,
26
27
  isDefaultInstance,
27
28
  validateInstanceId,