neoagent 3.2.0 → 3.2.1-beta.1
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/docs/agent-run-lifecycle.md +10 -0
- package/flutter_app/lib/main_operations.dart +553 -19
- package/lib/schema_migrations.js +30 -0
- package/package.json +1 -1
- package/server/db/database.js +2 -2
- package/server/public/.last_build_id +1 -1
- package/server/public/assets/fonts/MaterialIcons-Regular.otf +0 -0
- package/server/public/flutter_bootstrap.js +2 -2
- package/server/public/main.dart.js +90015 -87169
- package/server/routes/agents.js +35 -2
- package/server/services/ai/loop/agent_engine_core.js +111 -9
- package/server/services/ai/loop/conversation_loop.js +123 -21
- package/server/services/ai/loop/lifecycle.js +108 -0
- package/server/services/ai/loop/model_io.js +31 -14
- package/server/services/ai/loop/tool_dispatch.js +9 -0
- package/server/services/ai/providers/anthropic.js +2 -2
- package/server/services/ai/providers/google.js +2 -2
- package/server/services/ai/providers/grok.js +2 -2
- package/server/services/ai/providers/nvidia.js +2 -2
- package/server/services/ai/providers/ollama.js +7 -6
- package/server/services/ai/providers/openai.js +2 -2
- package/server/services/ai/providers/openaiCodex.js +4 -2
- package/server/services/ai/providers/openrouter.js +2 -2
- package/server/services/messaging/formatting_guides.js +1 -0
package/server/db/database.js
CHANGED
|
@@ -1021,7 +1021,7 @@ function interruptStaleAgentRuns(reason = STALE_RUN_INTERRUPTED_ERROR) {
|
|
|
1021
1021
|
const staleRunIds = db.prepare(
|
|
1022
1022
|
`SELECT id
|
|
1023
1023
|
FROM agent_runs
|
|
1024
|
-
WHERE status
|
|
1024
|
+
WHERE status IN ('running', 'pausing', 'paused', 'resuming')`
|
|
1025
1025
|
).all().map((row) => row.id);
|
|
1026
1026
|
const runsResult = db.prepare(
|
|
1027
1027
|
`UPDATE agent_runs
|
|
@@ -1029,7 +1029,7 @@ function interruptStaleAgentRuns(reason = STALE_RUN_INTERRUPTED_ERROR) {
|
|
|
1029
1029
|
error = COALESCE(NULLIF(error, ''), ?),
|
|
1030
1030
|
updated_at = datetime('now'),
|
|
1031
1031
|
completed_at = COALESCE(completed_at, datetime('now'))
|
|
1032
|
-
WHERE status
|
|
1032
|
+
WHERE status IN ('running', 'pausing', 'paused', 'resuming')`
|
|
1033
1033
|
).run(normalizedReason);
|
|
1034
1034
|
|
|
1035
1035
|
db.prepare(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
93bc60f11ff8c552f052d374db0c2c06
|
|
Binary file
|
|
@@ -33,10 +33,10 @@ addEventListener("message", eventListener);
|
|
|
33
33
|
if (!window._flutter) {
|
|
34
34
|
window._flutter = {};
|
|
35
35
|
}
|
|
36
|
-
_flutter.buildConfig = {"engineRevision":"
|
|
36
|
+
_flutter.buildConfig = {"engineRevision":"69c8c61792f04cc809dfef0c910414fb9afc06cd","builds":[{"compileTarget":"dart2js","renderer":"canvaskit","mainJsPath":"main.dart.js"},{}]};
|
|
37
37
|
|
|
38
38
|
_flutter.loader.load({
|
|
39
39
|
serviceWorkerSettings: {
|
|
40
|
-
serviceWorkerVersion: "
|
|
40
|
+
serviceWorkerVersion: "1664863442" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
|
|
41
41
|
}
|
|
42
42
|
});
|