@ouro.bot/cli 0.1.0-alpha.546 → 0.1.0-alpha.547
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.547",
|
|
6
|
+
"changes": [
|
|
7
|
+
"Version-managed macOS daemon LaunchAgents now point at the stable `~/.ouro-cli/CurrentVersion` entry path instead of a concrete installed version directory, so future runtime updates do not leave launchd holding stale daemon argv."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.546",
|
|
6
12
|
"changes": [
|
|
@@ -97,6 +97,14 @@ function defaultWriteRaw(text) {
|
|
|
97
97
|
process.stdout.write(text);
|
|
98
98
|
}
|
|
99
99
|
/* v8 ignore stop */
|
|
100
|
+
function resolveDaemonBootEntryPath(homeDir) {
|
|
101
|
+
const repoRoot = (0, identity_1.getRepoRoot)();
|
|
102
|
+
const versionManagerRootMarker = `${path.sep}.ouro-cli${path.sep}versions${path.sep}`;
|
|
103
|
+
if ((0, runtime_mode_1.detectRuntimeMode)(repoRoot) === "production" && repoRoot.includes(versionManagerRootMarker)) {
|
|
104
|
+
return path.join((0, ouro_version_manager_1.getOuroCliHome)(homeDir), "CurrentVersion", "node_modules", "@ouro.bot", "cli", "dist", "heart", "daemon", "daemon-entry.js");
|
|
105
|
+
}
|
|
106
|
+
return path.join(repoRoot, "dist", "heart", "daemon", "daemon-entry.js");
|
|
107
|
+
}
|
|
100
108
|
/**
|
|
101
109
|
* Read the runtimeVersion from the first .ouro bundle's bundle-meta.json.
|
|
102
110
|
* Returns undefined if none found or unreadable.
|
|
@@ -218,7 +226,7 @@ function defaultEnsureDaemonBootPersistence(socketPath) {
|
|
|
218
226
|
mkdirp: (dir) => fs.mkdirSync(dir, { recursive: true }),
|
|
219
227
|
homeDir,
|
|
220
228
|
};
|
|
221
|
-
const entryPath =
|
|
229
|
+
const entryPath = resolveDaemonBootEntryPath(homeDir);
|
|
222
230
|
/* v8 ignore next -- covered via mock in daemon-cli-defaults.test.ts; v8 on CI attributes the real fs.existsSync branch to the non-mock load @preserve */
|
|
223
231
|
if (!fs.existsSync(entryPath)) {
|
|
224
232
|
(0, runtime_1.emitNervesEvent)({
|