@pokit/tabs-core 0.0.46 → 0.0.47

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/README.md CHANGED
@@ -4,7 +4,7 @@ Shared logic for pok tabbed terminal UI adapters.
4
4
 
5
5
  ## Purpose
6
6
 
7
- This package provides framework-agnostic types, state management, and process handling used by tabs adapter implementations like `@pokit/tabs-ink`.
7
+ This package provides framework-agnostic types, state management, and process handling used by tabs adapter implementations like `@pokit/opentui`.
8
8
 
9
9
  ## Installation
10
10
 
@@ -13,7 +13,7 @@ export type ShortcutGroup = {
13
13
  };
14
14
  /**
15
15
  * Standard keyboard shortcut help content.
16
- * Used by both Ink and OpenTUI help overlays.
16
+ * Used by tabs adapter help overlays.
17
17
  */
18
18
  export declare const HELP_CONTENT: ShortcutGroup[];
19
19
  //# sourceMappingURL=help-content.d.ts.map
@@ -5,7 +5,7 @@
5
5
  */
6
6
  /**
7
7
  * Standard keyboard shortcut help content.
8
- * Used by both Ink and OpenTUI help overlays.
8
+ * Used by tabs adapter help overlays.
9
9
  */
10
10
  export const HELP_CONTENT = [
11
11
  {
@@ -89,7 +89,7 @@ export type KeyboardAction = {
89
89
  * Process a normalized key event and return the appropriate action.
90
90
  *
91
91
  * This is the core keyboard handling logic, extracted to be framework-agnostic.
92
- * Each adapter (Ink, OpenTUI) normalizes their keyboard events and calls this function.
92
+ * Each adapter normalizes keyboard events and calls this function.
93
93
  */
94
94
  export declare function processKeyEvent(event: NormalizedKeyEvent, state: KeyboardState, viewHeight: number): KeyboardAction;
95
95
  /**
@@ -10,7 +10,7 @@ import { KEY_SEQUENCES, ctrlKeyToSequence } from '../constants/keyboard.js';
10
10
  * Process a normalized key event and return the appropriate action.
11
11
  *
12
12
  * This is the core keyboard handling logic, extracted to be framework-agnostic.
13
- * Each adapter (Ink, OpenTUI) normalizes their keyboard events and calls this function.
13
+ * Each adapter normalizes keyboard events and calls this function.
14
14
  */
15
15
  export function processKeyEvent(event, state, viewHeight) {
16
16
  const { char, name, ctrl, shift, meta } = event;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @pokit/tabs-core
3
3
  *
4
- * Shared logic for CLI tabs adapters (Ink, OpenTUI).
4
+ * Shared logic for CLI tabs adapters.
5
5
  * Framework-agnostic types, state management, and process handling.
6
6
  */
7
7
  export type { TabStatus, TabProcess, StatusIndicator, ActivityNode, GroupNode, EventDrivenState, } from './types.js';
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @pokit/tabs-core
3
3
  *
4
- * Shared logic for CLI tabs adapters (Ink, OpenTUI).
4
+ * Shared logic for CLI tabs adapters.
5
5
  * Framework-agnostic types, state management, and process handling.
6
6
  */
7
7
  export { MAX_OUTPUT_LINES, MAX_LINE_LENGTH, BUFFER_WARNING_THRESHOLD, STATUS_INDICATORS, getStatusIndicator, } from './types.js';
@@ -2,7 +2,7 @@
2
2
  * State Reducer for Event-Driven CLI
3
3
  *
4
4
  * Builds a state tree from CLI events using a reducer pattern.
5
- * Framework-agnostic - used by both Ink and OpenTUI adapters.
5
+ * Framework-agnostic reducer used by tabs adapters.
6
6
  */
7
7
  import type { CLIEvent, GroupId } from '@pokit/core';
8
8
  import type { EventDrivenState, ActivityNode, GroupNode } from './types.js';
@@ -2,7 +2,7 @@
2
2
  * State Reducer for Event-Driven CLI
3
3
  *
4
4
  * Builds a state tree from CLI events using a reducer pattern.
5
- * Framework-agnostic - used by both Ink and OpenTUI adapters.
5
+ * Framework-agnostic reducer used by tabs adapters.
6
6
  */
7
7
  /**
8
8
  * Create initial state
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Shared Types for CLI Tabs
3
3
  *
4
- * Framework-agnostic types used by both Ink and OpenTUI adapters.
4
+ * Framework-agnostic types used by tabs adapters.
5
5
  */
6
6
  import type { ActivityId, GroupId, GroupLayout } from '@pokit/core';
7
7
  export type TabStatus = 'running' | 'done' | 'error' | 'stopped';
package/dist/types.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Shared Types for CLI Tabs
3
3
  *
4
- * Framework-agnostic types used by both Ink and OpenTUI adapters.
4
+ * Framework-agnostic types used by tabs adapters.
5
5
  */
6
6
  export const MAX_OUTPUT_LINES = 10_000;
7
7
  export const MAX_LINE_LENGTH = 5_000;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pokit/tabs-core",
3
- "version": "0.0.46",
3
+ "version": "0.0.47",
4
4
  "description": "Core tab management utilities for pok CLI applications",
5
5
  "keywords": [
6
6
  "cli",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "peerDependencies": {
47
47
  "react": "^18.0.0 || ^19.0.0",
48
- "@pokit/core": "0.0.46"
48
+ "@pokit/core": "0.0.47"
49
49
  },
50
50
  "peerDependenciesMeta": {
51
51
  "react": {
@@ -56,7 +56,7 @@
56
56
  "@types/bun": "latest",
57
57
  "@types/react": "^19.2.0",
58
58
  "react": "^19.2.0",
59
- "@pokit/core": "0.0.46"
59
+ "@pokit/core": "0.0.47"
60
60
  },
61
61
  "engines": {
62
62
  "bun": ">=1.0.0"
@@ -16,7 +16,7 @@ export type ShortcutGroup = {
16
16
 
17
17
  /**
18
18
  * Standard keyboard shortcut help content.
19
- * Used by both Ink and OpenTUI help overlays.
19
+ * Used by tabs adapter help overlays.
20
20
  */
21
21
  export const HELP_CONTENT: ShortcutGroup[] = [
22
22
  {
@@ -77,7 +77,7 @@ export type KeyboardAction =
77
77
  * Process a normalized key event and return the appropriate action.
78
78
  *
79
79
  * This is the core keyboard handling logic, extracted to be framework-agnostic.
80
- * Each adapter (Ink, OpenTUI) normalizes their keyboard events and calls this function.
80
+ * Each adapter normalizes keyboard events and calls this function.
81
81
  */
82
82
  export function processKeyEvent(
83
83
  event: NormalizedKeyEvent,
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @pokit/tabs-core
3
3
  *
4
- * Shared logic for CLI tabs adapters (Ink, OpenTUI).
4
+ * Shared logic for CLI tabs adapters.
5
5
  * Framework-agnostic types, state management, and process handling.
6
6
  */
7
7
 
@@ -2,7 +2,7 @@
2
2
  * State Reducer for Event-Driven CLI
3
3
  *
4
4
  * Builds a state tree from CLI events using a reducer pattern.
5
- * Framework-agnostic - used by both Ink and OpenTUI adapters.
5
+ * Framework-agnostic reducer used by tabs adapters.
6
6
  */
7
7
 
8
8
  import type { CLIEvent, ActivityId, GroupId } from '@pokit/core';
package/src/types.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Shared Types for CLI Tabs
3
3
  *
4
- * Framework-agnostic types used by both Ink and OpenTUI adapters.
4
+ * Framework-agnostic types used by tabs adapters.
5
5
  */
6
6
 
7
7
  import type { ActivityId, GroupId, GroupLayout } from '@pokit/core';