@ouro.bot/cli 0.1.0-alpha.6 → 0.1.0-alpha.7
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.
|
@@ -709,6 +709,32 @@ async function runOuroCli(args, deps = createDefaultOuroCliDeps()) {
|
|
|
709
709
|
return message;
|
|
710
710
|
}
|
|
711
711
|
if (command.kind === "hatch.start") {
|
|
712
|
+
// Route through adoption specialist when no explicit hatch args were provided
|
|
713
|
+
const hasExplicitHatchArgs = !!(command.agentName || command.humanName || command.provider || command.credentials);
|
|
714
|
+
if (deps.runAdoptionSpecialist && !hasExplicitHatchArgs) {
|
|
715
|
+
const hatchlingName = await deps.runAdoptionSpecialist();
|
|
716
|
+
if (!hatchlingName) {
|
|
717
|
+
return "";
|
|
718
|
+
}
|
|
719
|
+
try {
|
|
720
|
+
await deps.installSubagents();
|
|
721
|
+
}
|
|
722
|
+
catch (error) {
|
|
723
|
+
(0, runtime_1.emitNervesEvent)({
|
|
724
|
+
level: "warn",
|
|
725
|
+
component: "daemon",
|
|
726
|
+
event: "daemon.subagent_install_error",
|
|
727
|
+
message: "subagent auto-install failed",
|
|
728
|
+
meta: { error: error instanceof Error ? error.message : /* v8 ignore next -- defensive: non-Error catch branch @preserve */ String(error) },
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
await registerOuroBundleTypeNonBlocking(deps);
|
|
732
|
+
await ensureDaemonRunning(deps);
|
|
733
|
+
if (deps.startChat) {
|
|
734
|
+
await deps.startChat(hatchlingName);
|
|
735
|
+
}
|
|
736
|
+
return "";
|
|
737
|
+
}
|
|
712
738
|
const hatchRunner = deps.runHatchFlow;
|
|
713
739
|
if (!hatchRunner) {
|
|
714
740
|
const response = await deps.sendCommand(deps.socketPath, { kind: "hatch.start" });
|
|
@@ -727,7 +753,7 @@ async function runOuroCli(args, deps = createDefaultOuroCliDeps()) {
|
|
|
727
753
|
component: "daemon",
|
|
728
754
|
event: "daemon.subagent_install_error",
|
|
729
755
|
message: "subagent auto-install failed",
|
|
730
|
-
meta: { error: error instanceof Error ? error.message : String(error) },
|
|
756
|
+
meta: { error: error instanceof Error ? error.message : /* v8 ignore next -- defensive: non-Error catch branch @preserve */ String(error) },
|
|
731
757
|
});
|
|
732
758
|
}
|
|
733
759
|
await registerOuroBundleTypeNonBlocking(deps);
|