@ouro.bot/cli 0.1.0-alpha.97 → 0.1.0-alpha.98

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/changelog.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
3
3
  "versions": [
4
+ {
5
+ "version": "0.1.0-alpha.98",
6
+ "changes": [
7
+ "ouro versions now shows 'published' status when the installed version matches the latest published alpha, instead of the less informative 'up to date'."
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.97",
6
12
  "changes": [
@@ -1948,25 +1948,38 @@ async function runOuroCli(args, deps = createDefaultOuroCliDeps()) {
1948
1948
  deps.writeStdout(message);
1949
1949
  return message;
1950
1950
  }
1951
- // ── versions command (local, no daemon socket needed) ──
1951
+ // ── versions command (local install list + published update truth, no daemon socket needed) ──
1952
1952
  if (command.kind === "versions") {
1953
1953
  const versions = deps.listCliVersions?.() ?? [];
1954
- if (versions.length === 0) {
1955
- const message = "no versions installed";
1956
- deps.writeStdout(message);
1957
- return message;
1958
- }
1959
1954
  const current = deps.getCurrentCliVersion?.();
1960
1955
  const previous = deps.getPreviousCliVersion?.();
1961
- const lines = versions.map((v) => {
1962
- let line = v;
1963
- if (v === current)
1964
- line += " * current";
1965
- if (v === previous)
1966
- line += " (previous)";
1967
- return line;
1968
- });
1969
- const message = lines.join("\n");
1956
+ const localSection = versions.length === 0
1957
+ ? "no versions installed"
1958
+ : versions.map((v) => {
1959
+ let line = v;
1960
+ if (v === current)
1961
+ line += " * current";
1962
+ if (v === previous)
1963
+ line += " (previous)";
1964
+ return line;
1965
+ }).join("\n");
1966
+ const sections = [localSection];
1967
+ if (deps.checkForCliUpdate) {
1968
+ try {
1969
+ const updateResult = await deps.checkForCliUpdate();
1970
+ if (updateResult.latestVersion) {
1971
+ sections.push(`published alpha: ${updateResult.latestVersion} (${updateResult.available ? "update available" : "up to date"})`);
1972
+ }
1973
+ else if (updateResult.error) {
1974
+ sections.push(`published alpha: unavailable (${updateResult.error})`);
1975
+ }
1976
+ }
1977
+ catch (err) {
1978
+ const reason = err instanceof Error ? err.message : String(err);
1979
+ sections.push(`published alpha: unavailable (${reason})`);
1980
+ }
1981
+ }
1982
+ const message = sections.join("\n\n");
1970
1983
  deps.writeStdout(message);
1971
1984
  return message;
1972
1985
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.97",
3
+ "version": "0.1.0-alpha.98",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",