@ssrrb/ctrl-linux-x64-test 0.0.0-stage → 0.0.0-test.3

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/ATTRIBUTION.md ADDED
@@ -0,0 +1,57 @@
1
+ # Codex terminal adaptation
2
+
3
+ Upstream: https://github.com/openai/codex
4
+ Current visual snapshot: `cf0ed4c600161fcaa18eeac02b5fc715e1076955`
5
+ Reference clone: `.research/codex` (read-only).
6
+ Original lifecycle and scroll-state snapshot: `816fa702ec66a4c81b204701a03371a1ac3511e6`.
7
+
8
+ `src/scroll_state.rs` extracts the vertical list navigation and viewport helper
9
+ from `codex-rs/tui/src/bottom_pane/scroll_state.rs`. Unused reset, page and jump
10
+ helpers and their tests were omitted. Selection and multiselection use this
11
+ state; checkbox state remains independent from keyboard focus as in Codex's
12
+ `multi_select_picker.rs`.
13
+
14
+ `src/main.rs` adapts terminal mode setup and independent cleanup from
15
+ `codex-rs/tui/src/tui.rs`: bracketed paste, raw mode, restoration guard, and
16
+ cursor restoration. Selection rendering follows
17
+ `codex-rs/tui/src/bottom_pane/list_selection_view.rs` (numbered rows `› 1.`
18
+ with focus highlight, dim descriptions, `↑/↓ N más…` overflow) and footer hints
19
+ follow `bottom_pane/footer.rs` (contextual per-kind, narrow collapse).
20
+ Login waiting mirrors `codex-rs/cli/src/login.rs` server-start message with
21
+ full URL fallback. Alternate-screen ownership, the fixed viewport, the panic
22
+ hook and the size monitor follow `tui.rs`/`custom_terminal.rs` (the monitor
23
+ runs on standard-library threads every 500 ms instead of tmux-only); the
24
+ bottom-anchored layout with Codex's height cap and per-frame owned-screen
25
+ rendering also follow `tui.rs`. Retained history cells, width-keyed reflow,
26
+ navigation and the shell summary line are new code.
27
+ Text entry and the JSONL backend bridge are new code, with grapheme editing
28
+ matching Codex's text area behavior. Agent engines, sessions, model providers,
29
+ network services, tools, MCP, model instructions and app event buses are
30
+ excluded: this TUI only drives workspace create/link via Clerk + Ctrl+ API.
31
+
32
+ The initial picker above is replaced by the current visual extraction:
33
+
34
+ - `src/ui.rs`: `bottom_pane/chat_composer/composer_layout.rs`, `chat_composer.rs`,
35
+ `textarea/single_line.rs`, `key_hint.rs` and `chatwidget/rendering.rs`.
36
+ One layout drives measurement, borderless composer shading, painting and the
37
+ real cursor. Guided views replace free-form agent input.
38
+ - `src/palette.rs`: `style.rs`, `style/contrast.rs`, `terminal_palette.rs`.
39
+ Composer/history alpha, selection fill, 4.5:1 foreground correction and palette
40
+ reduction are retained. Palette probing uses the pinned crossterm APIs;
41
+ syntax themes and palette caches are omitted. Unknown colors and NO_COLOR
42
+ preserve native foreground/background.
43
+ - `src/color.rs`: the original blend, light-background and CIE76 distance functions.
44
+ - `src/terminal.rs`: terminal ownership from `tui.rs` and `custom_terminal.rs`
45
+ (alternate screen, mouse capture, bracketed paste, raw mode with independent
46
+ restore, panic hook, synchronized updates, explicit fixed-viewport resizing).
47
+ The bottom height cap and bottom-anchored split follow the Codex layout.
48
+ - `src/logo.rs`: the existing Ctrl+ brand emblem (static artwork, no animation).
49
+
50
+ The JSONL bridge and Node workspace context are Ctrl+ code. Login displays only
51
+ the helper's explicit public auth-url event, with the full URL in history.
52
+
53
+ The original Apache-2.0 license and NOTICE are retained beside this file.
54
+ Dependencies retain their own licenses. Ratatui and Crossterm are pinned to the
55
+ snapshot versions and Crossterm fork commit; Cargo.lock fixes the standalone
56
+ crate's complete dependency graph. The rendered-line-info Ratatui feature is
57
+ enabled to measure history wrapping accurately.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2015 - present Microsoft Corporation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.