@camstack/agent 1.0.4 → 1.0.6

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/dist/cli.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import { createRequire as __cr } from 'node:module'; const require = globalThis.require ?? __cr(import.meta.url);
3
3
  import {
4
4
  startAgent
5
- } from "./chunk-5JHGVZFN.mjs";
5
+ } from "./chunk-GM2IV7NO.mjs";
6
6
 
7
7
  // src/cli.ts
8
8
  import * as os from "os";
package/dist/index.d.ts CHANGED
@@ -21,8 +21,17 @@ declare function loadAgentConfig(configPath?: string, dataDirOverride?: string):
21
21
  interface LoadedAddonEntry {
22
22
  readonly id: string;
23
23
  readonly status: string;
24
+ /** Addon DECLARATION version (from the addon manifest). */
24
25
  readonly version?: string;
25
26
  readonly packageName?: string;
27
+ /**
28
+ * npm PACKAGE version (from the package's package.json) — distinct from the
29
+ * addon declaration `version`. The hub's per-node update check compares the
30
+ * installed PACKAGE version against the registry, so it must be reported
31
+ * here; reporting the declaration version (often `0.1.0` while the package
32
+ * is `1.0.4`) makes `listUpdates` show a permanent phantom update.
33
+ */
34
+ readonly packageVersion?: string;
26
35
  readonly addon?: {
27
36
  shutdown?(): Promise<void>;
28
37
  onHubReachable?(): Promise<void> | void;