@vendian/cli 0.0.18 → 0.0.20

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.
Files changed (2) hide show
  1. package/cli-wrapper.mjs +17 -2
  2. package/package.json +1 -1
package/cli-wrapper.mjs CHANGED
@@ -36794,7 +36794,7 @@ import fs12 from "node:fs";
36794
36794
  import readlinePromises from "node:readline/promises";
36795
36795
 
36796
36796
  // src/version.js
36797
- var CLI_VERSION = true ? "0.0.18" : process.env.npm_package_version || "0.0.0-dev";
36797
+ var CLI_VERSION = true ? "0.0.20" : process.env.npm_package_version || "0.0.0-dev";
36798
36798
 
36799
36799
  // src/npm-update.js
36800
36800
  var NPM_CHECK_INTERVAL_MS = 30 * 60 * 1e3;
@@ -37197,6 +37197,19 @@ function applyServeEvent(state, event) {
37197
37197
  activity: "Daemon registered"
37198
37198
  };
37199
37199
  }
37200
+ if (event.type === "agent_discovery_started") {
37201
+ return {
37202
+ ...next,
37203
+ activity: "Scanning local agents"
37204
+ };
37205
+ }
37206
+ if (event.type === "agent_discovery_completed") {
37207
+ const agentCount = Number(event.agentCount || 0);
37208
+ return {
37209
+ ...next,
37210
+ activity: `Discovered ${agentCount} agent${agentCount === 1 ? "" : "s"}`
37211
+ };
37212
+ }
37200
37213
  if (event.type === "agent_prepare_plan") {
37201
37214
  const agentCount = Number(event.agentCount || 0);
37202
37215
  const environmentCount = Number(event.environmentCount || 0);
@@ -37717,10 +37730,12 @@ function reconcileInventoryRunState(agentRunState, agents, timestamp) {
37717
37730
  disabledReason: stringValue(agent.disabledReason || "System dependency not met locally"),
37718
37731
  resolutionHints: Array.isArray(agent.resolutionHints) ? agent.resolutionHints : []
37719
37732
  });
37720
- } else if (agent?.status === "online" && (current?.status === "error" || current?.status === "disabled") && !current?.runId) {
37733
+ } else if (agent?.status === "online" && ["preparing", "error", "disabled"].includes(current?.status) && !current?.runId) {
37721
37734
  next = setAgentRunState(next, path8, {
37722
37735
  status: "ready",
37723
37736
  lastEventAt: timestamp || (/* @__PURE__ */ new Date()).toISOString(),
37737
+ progressMessage: null,
37738
+ progressStage: null,
37724
37739
  errorMessage: null,
37725
37740
  disabledReason: null,
37726
37741
  resolutionHints: null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendian/cli",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "Public Vendian CLI bootstrapper and launcher",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,