@wrongstack/tui 0.306.2 → 0.306.4

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.
@@ -0,0 +1,17 @@
1
+ import type { SlashCommandRegistry } from '@wrongstack/core/registry';
2
+ import type { SlashCommand } from '@wrongstack/core/types';
3
+ export interface SlashCommandRegistrationOptions {
4
+ owner?: string | undefined;
5
+ official?: boolean | undefined;
6
+ }
7
+ /**
8
+ * Register a slash command and return an ownership-safe teardown callback.
9
+ *
10
+ * The shared registry uses last-write-wins for official commands and removes
11
+ * every alias/namespace for the selected command on unregister. React effects
12
+ * therefore cannot safely pair `register()` with a bare `unregister(name)`:
13
+ * registration may have been a no-op, or it may have replaced a canonical
14
+ * host command that must become visible again after the TUI unmounts.
15
+ */
16
+ export declare function registerSlashCommandLifecycle(registry: SlashCommandRegistry, command: SlashCommand, options?: SlashCommandRegistrationOptions): () => void;
17
+ //# sourceMappingURL=slash-command-lifecycle.d.ts.map
@@ -9,6 +9,12 @@ import type { StatuslineItem as StatuslineItemSource } from './components/status
9
9
  * rendered layout.
10
10
  */
11
11
  export declare const SIDEBAR_MISSION_ROWS = 8;
12
+ /**
13
+ * Maximum outer height of the /settings picker, including its border. Small
14
+ * terminals still use their smaller available-height budget; large terminals
15
+ * stop growing here instead of allowing the picker to fill the screen.
16
+ */
17
+ export declare const SETTINGS_PICKER_MAX_HEIGHT = 24;
12
18
  /**
13
19
  * Field index where the per-panel-position rows begin. The first 46
14
20
  * indices (0–45) are the legacy auto-rebuilt Settings surface; rows 46+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/tui",
3
- "version": "0.306.2",
3
+ "version": "0.306.4",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack terminal UI: Ink-based interactive renderer with history, pickers, and slash menus.",
6
6
  "repository": {
@@ -29,12 +29,12 @@
29
29
  "ink": "7.1.1",
30
30
  "react": "^19.2.8",
31
31
  "string-width": "8.2.2",
32
- "@wrongstack/core": "0.306.2",
33
- "@wrongstack/sage": "0.306.2",
34
- "@wrongstack/runtime": "0.306.2",
35
- "@wrongstack/kanban": "0.306.2",
36
- "@wrongstack/sdd": "0.306.2",
37
- "@wrongstack/tools": "0.306.2"
32
+ "@wrongstack/runtime": "0.306.4",
33
+ "@wrongstack/core": "0.306.4",
34
+ "@wrongstack/kanban": "0.306.4",
35
+ "@wrongstack/sdd": "0.306.4",
36
+ "@wrongstack/tools": "0.306.4",
37
+ "@wrongstack/sage": "0.306.4"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@testing-library/dom": "^10.4.1",