neuralos 3.9.2 → 3.9.4
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/bin/gybackend.cjs
CHANGED
|
@@ -258993,9 +258993,6 @@ var init_HistorySqliteStore = __esm({
|
|
|
258993
258993
|
* Returns the number of rows appended.
|
|
258994
258994
|
*/
|
|
258995
258995
|
appendUiSessionMessages(sessionId, messages, fromPosition, summary) {
|
|
258996
|
-
if (messages.length === 0 || fromPosition >= messages.length) {
|
|
258997
|
-
return 0;
|
|
258998
|
-
}
|
|
258999
258996
|
const upsertSession = this.db.prepare(
|
|
259000
258997
|
`INSERT INTO ui_sessions (
|
|
259001
258998
|
id, title, updated_at, messages_count, last_message_preview
|
package/package.json
CHANGED
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
"url": "git+https://github.com/DrOlu/RTerm.git"
|
|
51
51
|
},
|
|
52
52
|
"name": "neuralos",
|
|
53
|
-
"version": "3.9.
|
|
53
|
+
"version": "3.9.4",
|
|
54
54
|
"description": "Standalone neuralOS backend (rterm-backend): AI-native terminal & agentic-AI operations platform. Ships the neuralOS plugin — on-device data agents (verified probe menus over real data sources, engine + weights auto-provisioned on first use)."
|
|
55
55
|
}
|
|
@@ -47,8 +47,9 @@ export function resolveConfig(ctx = {}, env = process.env) {
|
|
|
47
47
|
auth: block.auth || undefined,
|
|
48
48
|
enabled: block.enabled !== false,
|
|
49
49
|
autoServe: block.autoServe !== false,
|
|
50
|
-
/** dispatch timeout in ms (default
|
|
51
|
-
|
|
50
|
+
/** dispatch timeout in ms (default 180s = the edge invoke floor; a real
|
|
51
|
+
* LLM agent turn takes 60s+, and callers time out at 30s without it). */
|
|
52
|
+
dispatchTimeout: block.dispatchTimeout ?? 180000,
|
|
52
53
|
/** multiple meshes (v3.2.0). Each: {name, url/servers, auth, prefix?}. */
|
|
53
54
|
meshes: Array.isArray(block.meshes) ? block.meshes : undefined,
|
|
54
55
|
}
|
|
@@ -167,7 +168,7 @@ export async function discoverAgents(ctx, filter = {}) {
|
|
|
167
168
|
|
|
168
169
|
export async function dispatchTask(ctx, target, skill, input = {}, opts = {}) {
|
|
169
170
|
const cfg = resolveConfig(ctx)
|
|
170
|
-
const timeout = opts.timeout ?? cfg.dispatchTimeout ??
|
|
171
|
+
const timeout = opts.timeout ?? cfg.dispatchTimeout ?? 180000
|
|
171
172
|
const nc = await connectMesh(ctx)
|
|
172
173
|
const reqEnv = envelope('request', { skill, input }, cfg, { to: target, task_id: randomUUID() })
|
|
173
174
|
const inbox = `${cfg.prefix}.agent.${target}.inbox`
|
|
@@ -276,7 +277,7 @@ export function register(ctx) {
|
|
|
276
277
|
target: { type: 'string', description: 'Target agent id (e.g. grip-cli-001)' },
|
|
277
278
|
skill: { type: 'string', description: 'Skill id from the target manifest' },
|
|
278
279
|
input: { type: 'object', description: 'Input payload for the skill', optional: true },
|
|
279
|
-
timeout: { type: 'number', description: 'Reply timeout ms (default
|
|
280
|
+
timeout: { type: 'number', description: 'Reply timeout ms (default 180000 — the edge invoke floor; a real LLM agent turn takes 60s+)', optional: true },
|
|
280
281
|
},
|
|
281
282
|
handler: async (p) => guarded(async () => {
|
|
282
283
|
if (!p?.target || !p?.skill) return { error: 'synapse_dispatch needs target and skill' }
|
|
@@ -86,9 +86,9 @@ function mkCtx(settings = {}, conn) {
|
|
|
86
86
|
|
|
87
87
|
// ─── config ─────────────────────────────────────────────────────────────────
|
|
88
88
|
|
|
89
|
-
test('resolveConfig includes dispatchTimeout (default
|
|
89
|
+
test('resolveConfig includes dispatchTimeout (default 180000 = the edge invoke floor) + meshes', () => {
|
|
90
90
|
const c = resolveConfig({ settings: {} }, {})
|
|
91
|
-
eq(c.dispatchTimeout,
|
|
91
|
+
eq(c.dispatchTimeout, 180000, 'default dispatchTimeout 180s (edge invoke floor; LLM turns take 60s+)')
|
|
92
92
|
eq(c.meshes, undefined, 'no meshes by default')
|
|
93
93
|
})
|
|
94
94
|
|