@ouro.bot/cli 0.1.0-alpha.111 → 0.1.0-alpha.113
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 +12 -0
- package/dist/heart/daemon/daemon-cli.js +7 -3
- package/package.json +1 -1
package/changelog.json
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
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.113",
|
|
6
|
+
"changes": [
|
|
7
|
+
"`ouro changelog --from` now uses semver comparison instead of lexicographic string ordering, so alpha prerelease numbers sort correctly."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"version": "0.1.0-alpha.112",
|
|
12
|
+
"changes": [
|
|
13
|
+
"`ouro up` no longer prints the 'ouro updated to X (was Y)' message twice when the update flow re-execs from a newly installed version."
|
|
14
|
+
]
|
|
15
|
+
},
|
|
4
16
|
{
|
|
5
17
|
"version": "0.1.0-alpha.111",
|
|
6
18
|
"changes": [
|
|
@@ -46,6 +46,7 @@ const crypto_1 = require("crypto");
|
|
|
46
46
|
const fs = __importStar(require("fs"));
|
|
47
47
|
const os = __importStar(require("os"));
|
|
48
48
|
const path = __importStar(require("path"));
|
|
49
|
+
const semver = __importStar(require("semver"));
|
|
49
50
|
const identity_1 = require("../identity");
|
|
50
51
|
const runtime_1 = require("../../nerves/runtime");
|
|
51
52
|
const store_file_1 = require("../../mind/friends/store-file");
|
|
@@ -1884,9 +1885,12 @@ async function runOuroCli(args, deps = createDefaultOuroCliDeps()) {
|
|
|
1884
1885
|
// hooks overwrite it. This detects when npx downloaded a newer CLI.
|
|
1885
1886
|
const previousCliVersion = readFirstBundleMetaVersion(bundlesRoot);
|
|
1886
1887
|
const updateSummary = await (0, update_hooks_1.applyPendingUpdates)(bundlesRoot, currentVersion);
|
|
1887
|
-
// Notify about CLI binary update (npx downloaded a new version)
|
|
1888
|
+
// Notify about CLI binary update (npx downloaded a new version).
|
|
1889
|
+
// Skip when the symlink already points to the running version — that
|
|
1890
|
+
// means path 1 (checkForCliUpdate + reExecFromNewVersion) already
|
|
1891
|
+
// printed the update message before re-exec.
|
|
1888
1892
|
/* v8 ignore start -- CLI update detection: tested via daemon-cli-version-detect.test.ts @preserve */
|
|
1889
|
-
if (previousCliVersion && previousCliVersion !== currentVersion) {
|
|
1893
|
+
if (previousCliVersion && previousCliVersion !== currentVersion && linkedVersionBeforeUp !== currentVersion) {
|
|
1890
1894
|
deps.writeStdout(`ouro updated to ${currentVersion} (was ${previousCliVersion})`);
|
|
1891
1895
|
const changelogCommand = (0, ouro_version_manager_1.buildChangelogCommand)(previousCliVersion, currentVersion);
|
|
1892
1896
|
/* v8 ignore next -- buildChangelogCommand is non-null when previous/current runtime versions differ @preserve */
|
|
@@ -2217,7 +2221,7 @@ async function runOuroCli(args, deps = createDefaultOuroCliDeps()) {
|
|
|
2217
2221
|
let filtered = entries;
|
|
2218
2222
|
if (command.from) {
|
|
2219
2223
|
const fromVersion = command.from;
|
|
2220
|
-
filtered = entries.filter((e) => e.version
|
|
2224
|
+
filtered = entries.filter((e) => semver.valid(e.version) && semver.gt(e.version, fromVersion));
|
|
2221
2225
|
}
|
|
2222
2226
|
if (filtered.length === 0) {
|
|
2223
2227
|
const message = "no changelog entries found.";
|