langchain_agentx_stream_ui 0.2.6 → 0.2.7
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/index.d.ts +3 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ interface AgentSessionProps {
|
|
|
21
21
|
registry?: NodeRegistry;
|
|
22
22
|
tierOverrides?: TierOverrides;
|
|
23
23
|
onError?: (error: Error) => void;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated 重连策略由 Source(如 createAgentxSseSource 的 profile)承载;本 prop 未接入 store
|
|
26
|
+
*/
|
|
24
27
|
autoReconnect?: boolean;
|
|
25
28
|
debug?: boolean;
|
|
26
29
|
/** 为 true 且主舞台节点数超过阈值时使用 VirtualTimeline(V2-E) */
|
package/dist/index.js
CHANGED
|
@@ -263,6 +263,17 @@ var BOUNDED_DEFAULTS = {
|
|
|
263
263
|
reconnectTimeoutMs: 6e4,
|
|
264
264
|
reconnectDelayMs: 1e3
|
|
265
265
|
};
|
|
266
|
+
var legacyAutoReconnectWarned = false;
|
|
267
|
+
function warnLegacyAutoReconnectOnce() {
|
|
268
|
+
if (legacyAutoReconnectWarned) return;
|
|
269
|
+
if (typeof process !== "undefined" && process.env.NODE_ENV === "production") {
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
legacyAutoReconnectWarned = true;
|
|
273
|
+
console.warn(
|
|
274
|
+
"[langchain_agentx_stream_ui] autoReconnect is deprecated; use profile or policy.reconnect instead."
|
|
275
|
+
);
|
|
276
|
+
}
|
|
266
277
|
var AGENT_TERMINAL = {
|
|
267
278
|
primary: ["finish"],
|
|
268
279
|
allowFinishFallback: false
|
|
@@ -353,6 +364,9 @@ function resolveSseTransportPolicy(input) {
|
|
|
353
364
|
reconnectDelayMs,
|
|
354
365
|
expectedApplicationKind
|
|
355
366
|
} = input;
|
|
367
|
+
if (profile === void 0 && policyOverride === void 0 && autoReconnect !== void 0) {
|
|
368
|
+
warnLegacyAutoReconnectOnce();
|
|
369
|
+
}
|
|
356
370
|
let base;
|
|
357
371
|
if (profile) {
|
|
358
372
|
base = { ...PROFILE_PRESETS[profile] };
|