neoagent 2.3.1-beta.46 → 2.3.1-beta.48
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/package.json
CHANGED
|
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"42d3d75a56efe1a2e9902f52dc8006099c45d9
|
|
|
37
37
|
|
|
38
38
|
_flutter.loader.load({
|
|
39
39
|
serviceWorkerSettings: {
|
|
40
|
-
serviceWorkerVersion: "
|
|
40
|
+
serviceWorkerVersion: "2601671153" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
|
|
41
41
|
}
|
|
42
42
|
});
|
|
@@ -38,8 +38,8 @@ const {
|
|
|
38
38
|
normalizeInterimKind,
|
|
39
39
|
} = require('./interim');
|
|
40
40
|
|
|
41
|
-
const MAX_CONSECUTIVE_TOOL_FAILURES =
|
|
42
|
-
const WIDGET_REFRESH_MAX_ITERATIONS =
|
|
41
|
+
const MAX_CONSECUTIVE_TOOL_FAILURES = 5;
|
|
42
|
+
const WIDGET_REFRESH_MAX_ITERATIONS = 30;
|
|
43
43
|
|
|
44
44
|
function generateTitle(task) {
|
|
45
45
|
if (!task || typeof task !== 'string') return 'Untitled';
|
|
@@ -540,6 +540,7 @@ class WidgetService {
|
|
|
540
540
|
'',
|
|
541
541
|
'You are updating a structured product widget. Keep the layout fixed. Refresh only the content snapshot.',
|
|
542
542
|
'Use fresh tools for time-sensitive claims. Do not rely on stale memory for live data such as weather, markets, incidents, or schedules.',
|
|
543
|
+
'The refresh run has a hard limit of 15 tool-call iterations. Call save_widget_snapshot as early as you have enough accurate data; do not keep exploring after saving.',
|
|
543
544
|
'After gathering the latest information, call save_widget_snapshot exactly once with a payload matching this schema:',
|
|
544
545
|
'{"title":"","kicker":"","subtitle":"","body":"","metric":"","metricLabel":"","secondaryMetric":"","secondaryLabel":"","tertiaryMetric":"","tertiaryLabel":"","trend":{"label":"","direction":"flat"},"progress":{"value":0,"max":100,"label":""},"rows":[{"label":"","value":""}],"chips":[""],"iconToken":"","accentToken":"","backgroundToken":"","surfaceColor":"","updatedAt":"","deepLink":""}',
|
|
545
546
|
'Rules:',
|