Skip to content

v2.0.0-preview.15

@teacupuk teacupuk tagged this 18 Nov 00:19
* build(mcp): bundle the reviewed network tools with their dependency notices

Pins every packaging path to DashyNMS/mcp 8f32942 (exact Spotlight identities, Unimus domain matching, source-uncertainty fixes). The bundle now carries NOTICES.md and third-party/: each shipped package's licence files, collected by the MCP repo's verifier from byte-exact git sources, and the .NET runtime pack's notices. The bundle check offers and calls all 24 allowlisted tools against the demo.

Refs #589

* fix(intelligence): network tools judge sensors with your saved health thresholds

Every saved dBm, signal, temperature and fan-speed bound and the override choice reach the bundled server as invariant-culture MCP_* settings, read from one settings snapshot. Non-finite or out-of-order bounds stop the start with a fixed message naming only the Settings section. The server's identity is now a digest of all its settings, so a saved threshold change starts a new server before the next lookup. A bundle test compares the server's sensor states with the Health tab's for defaults, custom bands and the override on and off.

Refs #590

* fix(intelligence): lookups from a previous connection or settings are discarded

Each started network-tools server is a generation tied to the exact settings it was given. Signing out, switching LibreNMS (including the same address with another token, and A to B to A) or saving a setting the tools use retires it at once. Its pending lookups end with a fixed 'discarded' result instead of answering for the old account or thresholds. A failing or timed-out lookup retires only its own server, never a newer one, and an unresponsive server isn't reused. A stop during startup cancels or discards that start, and sign-out no longer leaves the old account's server running. The stdio process sits behind an internal seam so these races are tested deterministically.

Refs #590, #593

* fix(intelligence): acknowledged and recovered alerts stay valid in Spotlight

Spotlight alert and fault checks now ask for every state, as DashyNMS/mcp#154's resolver does. The single-alert route can default to active alerts, which made acknowledged or recovered objects look gone. Only the exact row is accepted: same ID (now checked explicitly), source, parent device and rule. A row for another ID, a colliding legacy/fault ID or a parent device never stands in. HTTP tests cover 26.9 /alerts and 26.10 /faults in every state, mismatches, a server ignoring the ID, refused reads and cancellation. View-model tests confirm a missing, refused or switched-away check keeps the current chat, draft and Spotlight. A malformed reply is now reported like any other failed check.

Refs #591

* test(intelligence): network tools' uncertainty reaches the model unchanged

The server's text blocks reach the model whole and in order, image bytes never enter the text beside them, structured content is read only when no text came, and an empty result is an empty object. A bundle check through the app's own start path shows unconfigured Unimus and Graylog arrive as unknown rather than as nothing changed. Core's side (byte-for-byte payloads, replay, truncation and withheld images) is in DashyNMS/core#89.

Refs #592

* fix(intelligence): an answer stopped mid-code no longer swallows the rest of an export

Fenced code now follows CommonMark in the chat view, the PDF and the Markdown export. Tilde fences count, and only a fence of the same character, at least as long and with nothing after it, closes one, so a shorter or labelled fence stays inside the code. The Markdown export closes an answer's unfinished fence, so later questions and answers are no longer read as code.

Refs #596

* fix(intelligence): starter questions only ask what the network tools can answer

"Which devices have been up the longest?" asked for a fleet-wide uptime ranking. No tool offers one, since uptime is only per device, so answering it meant a lookup per device until the limit ran out. It becomes "Which devices carry the most traffic?", which top_devices answers in one lookup. A test maps every starter to the offered tool that answers it.

Refs #596

* test(intelligence): deleted and single-chat conversations are never written back

A chat deleted while its autosave is queued is never saved again after the delete. A temporary single-chat conversation is not saved by a queued save, an explicit save or the switch back to saved chats.

Refs #596

* fix(intelligence): network names stay out of Intelligence's trusted instructions

Spotlight now reaches Core as checked identities only, and Core 2.0.0-ci.71 (DashyNMS/core#89) states them in the model's instructions as fixed words and IDs. Device, group, location, sensor, port and rule names, which anyone who can name a device controls, stay in the app's Spotlight and evidence views. The model reads names from tool results, which it treats as data. Hostile names stay out of the model's scope for every kind, including a saved chat brought back. Desktop never had Mobile's location FilterName, so nothing equivalent can leak.

Refs #594

* test(intelligence): exported graphs still open after the export is moved

A Markdown export whose name has spaces, brackets, # and % links its graphs with escaped relative paths. Moved with its images folder to another place, each link opens the right graph.

Refs #596

* docs(intelligence): record the MCP integration decision and handover evidence

Desktop keeps the bundled MCP process: Shared needs .NET 10, and every immediate fix fits the process path. Unimus short-hostname matching is deferred to DashyNMS/mcp#157 rather than invented locally. The record lists what was verified for each child issue, what remains manual and which upstream limits stay open. The user guide says Intelligence uses the saved health thresholds.

Refs #595

* docs: What's New for 2.0.0-preview.15

Refs #588

* fix(intelligence): a sign-out during startup never leaves the network tools running

Review follow-ups. A server that finishes starting after a sign-out, switch or saved change is retired at once, and the lookup starts again for the new settings or reports the sign-out. Lookups alongside a failed or timed-out one now say the tools stopped, rather than that settings changed. Every caller waits for the same stop. A failing version listener can't block a retirement. Tool discovery is bounded by the start timeout. The call timeout can be set in tests, which now cover timeouts and changes during startup.

Refs #590, #593

* fix(intelligence): an answer cut off by closing the app keeps its note outside the code

When an answer was interrupted inside a code block, the restored chat added "(Interrupted when DashyNMS closed.)" inside that block, so it showed as code. The unfinished block is now closed first. Found while rendering the chat for the UI review.

Refs #596

* fix(intelligence): chips sit on the line, and Spotlight names and focus are visible

UI review follow-ups for the chat: device and alert chips in answers no longer sit below the text or clip the descenders of the line beside them. A shortened Spotlight name shows in full in a tooltip, in the header and the Context pane. The question box shows keyboard focus on its card. Spotlight's dismiss buttons are 24 px targets.

Refs #596

* fix(intelligence): clearer notices when lookups are dropped or thresholds can't be used

UI review follow-ups: shorter, plainer wording for a lookup dropped after a change or a stopped server, a stop during startup, and health thresholds that aren't valid numbers in the right order.

Refs #590, #593

* fix(intelligence): exports only repair fences other Markdown viewers would read as fences

CodeRabbit follow-up. A fence indented four or more spaces, or by a tab, is code in CommonMark, so the export no longer treats one as open and adds a stray closer, and such a line never closes a real fence. The chat view and PDF have no nested blocks, so code indented under a list item still renders as code there.

Refs #596

* fix(intelligence): the question box's focus ring actually shows

CodeRabbit follow-up: the card's default border was a local value, which outranks a style, so the focus style never applied. The default now comes from a style too.

Refs #596

* fix(intelligence): quitting waits for network tools that are already stopping

CodeRabbit follow-up: a server being retired after a saved change was no longer current, so a stop on exit returned before it had stopped. Retirements under way are now tracked until they finish, and the stop waits for them.

Refs #593

* build(mcp): bundle notices collect under any user name and a failed check can be retried

CodeRabbit follow-ups: the notice collector runs in Python's UTF-8 mode, which -I otherwise leaves off, so a NuGet cache under a non-ASCII user name resolves. Publish-Package checks the MCP bundle before creating its output folder, so a rebuilt bundle can be packaged with the same version.

Refs #589

* docs(intelligence): say Spotlight names stay out of instructions, not out of every answer

CodeRabbit follow-up: names returned by lookups still reach the model as data, as PRIVACY.md describes. The preview notes and the handover record now say only what Spotlight changed.

Refs #594

* fix(intelligence): an interrupted answer's note stays outside code under a list item

CodeRabbit follow-up: the restored note is shown by the chat view and PDF, so its fence check now scans as they do. Code indented under a list item gets closed before the note, while the export keeps the strict CommonMark rule.

Refs #596

* fix(intelligence): a repaired fence keeps its opener's indent

CodeRabbit follow-up: an interrupted answer with code under a list item was closed with an unindented fence. The strict export then read that as a new code block and put the note inside it. A fence's closer now carries its opener's indent.

Refs #596
Assets 2
Loading