neoagent 2.3.1-beta.87 → 2.3.1-beta.89

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.
@@ -45,7 +45,7 @@ router.get('/status', async (req, res) => {
45
45
  res.json(getBrowserStatusSnapshot(req));
46
46
  return;
47
47
  }
48
- if (!await runtimeManager?.isGuestAgentReadyForUser?.(req.session?.userId, 1000, 'browser')) {
48
+ if (!await runtimeManager?.isGuestAgentReadyForUser?.(req.session?.userId, 6000, 'browser')) {
49
49
  res.json(getBrowserStatusSnapshot(req));
50
50
  return;
51
51
  }
@@ -1,5 +1,6 @@
1
1
  const express = require('express');
2
2
  const { requireAuth } = require('../middleware/auth');
3
+ const { getAgentIdFromRequest, resolveAgentId } = require('../services/agents/manager');
3
4
  const { sanitizeError } = require('../utils/security');
4
5
 
5
6
  const router = express.Router();
@@ -39,9 +40,12 @@ router.post('/extract', async (req, res) => {
39
40
  return res.status(400).json({ error: 'url is required.' });
40
41
  }
41
42
 
43
+ const agentId = resolveAgentId(req.session.userId, getAgentIdFromRequest(req));
44
+
42
45
  const result = await service.extractFromUrl(req.session.userId, sourceUrl, {
43
46
  includeFrame: req.body?.include_frame !== false,
44
47
  forceStt: req.body?.force_stt === true,
48
+ agentId,
45
49
  });
46
50
 
47
51
  if (result?.setup?.ready === false) {
@@ -1976,6 +1976,7 @@ async function executeTool(toolName, args, context, engine) {
1976
1976
  return await service.extractFromUrl(userId, sourceUrl, {
1977
1977
  includeFrame: args.include_frame !== false,
1978
1978
  forceStt: args.force_stt === true,
1979
+ agentId,
1979
1980
  });
1980
1981
  }
1981
1982
 
@@ -11,6 +11,7 @@ async function main() {
11
11
  const controller = new AndroidController({
12
12
  userId: process.env.NEOAGENT_ANDROID_BOOTSTRAP_USER_ID || null,
13
13
  runtimeBackend: 'host',
14
+ manageProcessCleanup: false,
14
15
  });
15
16
  const headless = parseBoolean(process.env.NEOAGENT_ANDROID_BOOTSTRAP_HEADLESS);
16
17
  const timeoutMs = Math.max(120000, Number(process.env.NEOAGENT_ANDROID_BOOTSTRAP_TIMEOUT_MS) || 600000);