neuralos 3.9.0 → 3.9.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/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.0",
53
+ "version": "3.9.1",
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
  }
@@ -35,6 +35,12 @@ export function register(ctx) {
35
35
  } catch { /* logging must never break a tool */ }
36
36
  }
37
37
 
38
+ const settings = (typeof ctx.getSettings === 'function' ? ctx.getSettings() : ctx.settings) || {}
39
+ if (settings.neuralos?.enabled === false) {
40
+ log('disabled in settings — not registering tools')
41
+ return
42
+ }
43
+
38
44
  registerList(ctx, cfg, log)
39
45
  registerAsk(ctx, cfg, exec, log)
40
46
  registerGraph(ctx, cfg, exec, log)
@@ -257,6 +257,15 @@ else { console.log(JSON.stringify({ function_calls: [{ name: 'transactions_count
257
257
  const answered = (await unknown.handler({ instance: 'does-not-exist', question: 'x' })) as { error?: string }
258
258
  ok(answered.error?.includes("no instance named 'does-not-exist'"), 'ask answers an unknown instance as data')
259
259
  ok(logged.some((l) => l.includes('registered neuralos tools')), 'the plugin announces registration through ctx.log')
260
+
261
+ // the enabled=false settings gate: the Settings panel switch is honest
262
+ const off: Array<{ name: string }> = []
263
+ register({
264
+ registerTool: (t) => off.push(t as never),
265
+ log: () => {},
266
+ getSettings: () => ({ neuralos: { enabled: false } }),
267
+ })
268
+ ok(off.length === 0, 'enabled=false registers zero tools')
260
269
  }
261
270
 
262
271
  // ---------------------------------------------------------------------------