@ouro.bot/cli 0.1.0-alpha.93 → 0.1.0-alpha.94
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 +7 -0
- package/dist/heart/daemon/daemon-cli.js +15 -5
- package/package.json +1 -1
package/changelog.json
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
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.94",
|
|
6
|
+
"changes": [
|
|
7
|
+
"Fix stale CurrentVersion symlink not healing during `ouro up` — the daemon now detects and repairs dangling version symlinks before reading the active version.",
|
|
8
|
+
"Fix homedir regression in daemon-cli-defaults test and cover changelog-null branch."
|
|
9
|
+
]
|
|
10
|
+
},
|
|
4
11
|
{
|
|
5
12
|
"version": "0.1.0-alpha.93",
|
|
6
13
|
"changes": [
|
|
@@ -1353,12 +1353,12 @@ function createDefaultOuroCliDeps(socketPath = socket_client_1.DEFAULT_DAEMON_SO
|
|
|
1353
1353
|
runAuthFlow: auth_flow_1.runRuntimeAuthFlow,
|
|
1354
1354
|
registerOuroBundleType: ouro_uti_1.registerOuroBundleUti,
|
|
1355
1355
|
installOuroCommand: ouro_path_installer_1.installOuroCommand,
|
|
1356
|
-
/* v8 ignore start -- self-healing: ensures
|
|
1356
|
+
/* v8 ignore start -- self-healing: ensures active symlink matches running runtime version @preserve */
|
|
1357
1357
|
ensureCurrentVersionInstalled: () => {
|
|
1358
|
-
const
|
|
1359
|
-
if (currentVersion)
|
|
1360
|
-
return; // Already installed and linked
|
|
1358
|
+
const linkedVersion = (0, ouro_version_manager_1.getCurrentVersion)({});
|
|
1361
1359
|
const version = (0, bundle_manifest_1.getPackageVersion)();
|
|
1360
|
+
if (linkedVersion === version)
|
|
1361
|
+
return;
|
|
1362
1362
|
(0, ouro_version_manager_1.ensureLayout)({});
|
|
1363
1363
|
const cliHome = (0, ouro_version_manager_1.getOuroCliHome)();
|
|
1364
1364
|
const versionEntry = path.join(cliHome, "versions", version, "node_modules", "@ouro.bot", "cli", "dist", "heart", "daemon", "ouro-entry.js");
|
|
@@ -1817,6 +1817,7 @@ async function runOuroCli(args, deps = createDefaultOuroCliDeps()) {
|
|
|
1817
1817
|
meta: { kind: command.kind },
|
|
1818
1818
|
});
|
|
1819
1819
|
if (command.kind === "daemon.up") {
|
|
1820
|
+
const linkedVersionBeforeUp = deps.getCurrentCliVersion?.() ?? null;
|
|
1820
1821
|
// ── versioned CLI update check ──
|
|
1821
1822
|
if (deps.checkForCliUpdate) {
|
|
1822
1823
|
let pendingReExec = false;
|
|
@@ -1824,7 +1825,7 @@ async function runOuroCli(args, deps = createDefaultOuroCliDeps()) {
|
|
|
1824
1825
|
const updateResult = await deps.checkForCliUpdate();
|
|
1825
1826
|
if (updateResult.available && updateResult.latestVersion) {
|
|
1826
1827
|
/* v8 ignore next -- fallback: getCurrentCliVersion always injected in tests @preserve */
|
|
1827
|
-
const currentVersion =
|
|
1828
|
+
const currentVersion = linkedVersionBeforeUp ?? "unknown";
|
|
1828
1829
|
await deps.installCliVersion(updateResult.latestVersion);
|
|
1829
1830
|
deps.activateCliVersion(updateResult.latestVersion);
|
|
1830
1831
|
deps.writeStdout(`ouro updated to ${updateResult.latestVersion} (was ${currentVersion})`);
|
|
@@ -1852,6 +1853,15 @@ async function runOuroCli(args, deps = createDefaultOuroCliDeps()) {
|
|
|
1852
1853
|
}
|
|
1853
1854
|
}
|
|
1854
1855
|
await performSystemSetup(deps);
|
|
1856
|
+
const linkedVersionAfterSetup = deps.getCurrentCliVersion?.() ?? null;
|
|
1857
|
+
const runtimeVersion = (0, bundle_manifest_1.getPackageVersion)();
|
|
1858
|
+
if (linkedVersionBeforeUp && linkedVersionBeforeUp !== runtimeVersion && linkedVersionAfterSetup === runtimeVersion) {
|
|
1859
|
+
deps.writeStdout(`ouro updated to ${runtimeVersion} (was ${linkedVersionBeforeUp})`);
|
|
1860
|
+
const changelogCommand = (0, ouro_version_manager_1.buildChangelogCommand)(linkedVersionBeforeUp, runtimeVersion);
|
|
1861
|
+
if (changelogCommand) {
|
|
1862
|
+
deps.writeStdout(`review changes with: ${changelogCommand}`);
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1855
1865
|
if (deps.ensureDaemonBootPersistence) {
|
|
1856
1866
|
try {
|
|
1857
1867
|
await Promise.resolve(deps.ensureDaemonBootPersistence(deps.socketPath));
|