feat(agent): persist coreinfo semver and build info to node doc #98
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/VS-79-persist-agent-coreinfo-to-node-doc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The device detail AGENT card renders
dev.agent_versionfrom the node doc'sagent.ver, but the server only ever wrote the numeric protocol constant (194) there at handshake, so the card was blank. The agent already reports its real running semver (and, once VA-99 lands, git hash and build date) in the unsolicitedcoreinforeport it sends right after every registration, but the server persisted none of it.Add a
persist_agent_coreinfoside-effect branch todispatch_textforaction == "coreinfo": readsemver,githash,builddate,commitdatefrom the frame and merge the present ones as string fields into the node doc'sagentobject via read-modify-write. The numericagent.verand the siblingid/capsare preserved. Only fields actually present in the frame are written, sogithash/builddateare picked up automatically when the agent starts emitting them. Because the agent re-sends coreinfo after every registration, a reconnect refreshes the stored values to the currently running build.#VS-79