@ouro.bot/cli 0.1.0-alpha.179 → 0.1.0-alpha.180

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.180",
6
+ "changes": [
7
+ "fix(cli): suppress React unmount warning on TUI exit"
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.179",
6
12
  "changes": [
@@ -837,7 +837,19 @@ async function runCliSession(options) {
837
837
  finally {
838
838
  rl?.close();
839
839
  if (inkRef) {
840
+ // Suppress React "state update on unmounted component" warnings during cleanup.
841
+ // Ink's useInput hook fires after unmount — this is harmless but noisy.
842
+ // eslint-disable-next-line no-console -- intentional console.warn/error override for cleanup
843
+ const origWarn = console.warn;
844
+ const origError = console.error; // eslint-disable-line no-console
845
+ // eslint-disable-next-line no-console -- suppress React unmount warnings
846
+ console.warn = (...args) => { if (typeof args[0] === "string" && args[0].includes("Can't perform a React state update"))
847
+ return; origWarn.apply(console, args); };
848
+ // eslint-disable-next-line no-console -- suppress React unmount warnings
849
+ console.error = (...args) => { if (typeof args[0] === "string" && args[0].includes("Can't perform a React state update"))
850
+ return; origError.apply(console, args); };
840
851
  inkRef.unmount();
852
+ setTimeout(() => { console.warn = origWarn; console.error = origError; }, 100); // eslint-disable-line no-console
841
853
  }
842
854
  if (options.banner !== false) {
843
855
  // eslint-disable-next-line no-console -- terminal UX: goodbye
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.179",
3
+ "version": "0.1.0-alpha.180",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",