@opentui/core 0.6.8 → 0.7.0
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/NativeScene.d.ts +5 -26
- package/Renderable.d.ts +27 -32
- package/audio.d.ts +1 -0
- package/{chunk-bun-ehr9v0n8.js → chunk-bun-qkpm62w1.js} +257 -69
- package/chunk-bun-qkpm62w1.js.map +35 -0
- package/{chunk-bun-4e5bpeqh.js → chunk-bun-zevtbcf6.js} +846 -785
- package/chunk-bun-zevtbcf6.js.map +70 -0
- package/{chunk-node-yyjd8p1g.js → chunk-node-7bcmqh18.js} +846 -785
- package/chunk-node-7bcmqh18.js.map +70 -0
- package/{chunk-node-jhq62x0c.js → chunk-node-mzgnr3sw.js} +257 -69
- package/chunk-node-mzgnr3sw.js.map +34 -0
- package/index.bun.js +313 -91
- package/index.bun.js.map +12 -11
- package/index.node.js +313 -91
- package/index.node.js.map +12 -10
- package/lib/detect-links.d.ts +2 -0
- package/lib/parse.keypress-kitty.d.ts +2 -0
- package/lib/scroll-chain.d.ts +16 -0
- package/lib/stdin-parser-native.d.ts +88 -0
- package/native-abi.generated.d.ts +394 -5
- package/package.json +9 -9
- package/renderables/Box.d.ts +2 -2
- package/renderables/Code.d.ts +2 -1
- package/renderables/Diff.d.ts +2 -2
- package/renderables/EditBufferRenderable.d.ts +2 -2
- package/renderables/EmbeddedTerminal.d.ts +2 -2
- package/renderables/FrameBuffer.d.ts +3 -3
- package/renderables/Image.d.ts +2 -2
- package/renderables/Markdown.d.ts +2 -2
- package/renderables/ScrollBar.d.ts +3 -3
- package/renderables/ScrollBox.d.ts +6 -3
- package/renderables/Slider.d.ts +2 -2
- package/renderables/Text.d.ts +2 -2
- package/renderables/TextBufferRenderable.d.ts +2 -4
- package/renderer.d.ts +8 -4
- package/testing/test-renderer.d.ts +2 -0
- package/testing.bun.js +11 -4
- package/testing.bun.js.map +3 -3
- package/testing.js +11 -4
- package/testing.js.map +3 -3
- package/yoga.bun.js +1 -1
- package/yoga.js +1 -1
- package/zig-structs.d.ts +25 -0
- package/zig.d.ts +20 -7
- package/chunk-bun-4e5bpeqh.js.map +0 -69
- package/chunk-bun-ehr9v0n8.js.map +0 -35
- package/chunk-node-jhq62x0c.js.map +0 -34
- package/chunk-node-yyjd8p1g.js.map +0 -69
|
@@ -118,7 +118,7 @@ __export(exports_yoga, {
|
|
|
118
118
|
var nativeSymbols = {
|
|
119
119
|
ot_scene_set_hooks: { args: ["ptr", "buffer", "buffer"], returns: "i32" },
|
|
120
120
|
ot_scene_frame_step_with_geometry: {
|
|
121
|
-
args: ["ptr", "buffer", "ptr", "buffer", "
|
|
121
|
+
args: ["ptr", "buffer", "ptr", "buffer", "ptr", "u32", "buffer", "buffer"],
|
|
122
122
|
returns: "i32"
|
|
123
123
|
},
|
|
124
124
|
ot_scene_frame_get_paint_slots: { args: ["ptr", "buffer", "buffer", "buffer", "u32", "buffer"], returns: "i32" },
|
|
@@ -153,6 +153,7 @@ var nativeSymbols = {
|
|
|
153
153
|
ot_scene_paint: { args: ["ptr", "buffer", "buffer", "u32", "u32", "buffer"], returns: "i32" },
|
|
154
154
|
ot_scene_hit_test: { args: ["ptr", "buffer", "i32", "i32", "buffer"], returns: "i32" },
|
|
155
155
|
ot_scene_get_stats: { args: ["ptr", "buffer", "buffer"], returns: "i32" },
|
|
156
|
+
ot_scene_set_debug_flags: { args: ["ptr", "buffer", "u32"], returns: "i32" },
|
|
156
157
|
ot_scene_get_cursor_state: { args: ["ptr", "buffer", "buffer"], returns: "i32" },
|
|
157
158
|
ot_scene_frame_copy_buffer: { args: ["ptr", "buffer", "buffer", "buffer"], returns: "i32" },
|
|
158
159
|
ot_scene_measure_layout: { args: ["ptr", "buffer", "buffer"], returns: "i32" },
|
|
@@ -354,6 +355,12 @@ var nativeSymbols = {
|
|
|
354
355
|
ot_session_set_palette_state: { args: ["ptr", "buffer", "buffer", "u32", "buffer", "buffer", "u32"], returns: "i32" },
|
|
355
356
|
ot_session_notification: { args: ["ptr", "buffer", "buffer", "u32", "ptr", "u32", "buffer"], returns: "i32" },
|
|
356
357
|
ot_session_pump: { args: ["ptr", "buffer", "u64", "u32", "buffer"], returns: "i32" },
|
|
358
|
+
ot_session_input_feed: {
|
|
359
|
+
args: ["ptr", "buffer", "ptr", "u32", "u64", "buffer", "u32", "buffer", "u32", "buffer"],
|
|
360
|
+
returns: "i32"
|
|
361
|
+
},
|
|
362
|
+
ot_session_input_expect: { args: ["ptr", "buffer", "u32"], returns: "i32" },
|
|
363
|
+
ot_session_input_reset: { args: ["ptr", "buffer", "u32"], returns: "i32" },
|
|
357
364
|
ot_session_get_write_limit: { args: ["ptr", "buffer", "buffer"], returns: "i32" },
|
|
358
365
|
ot_session_write: { args: ["ptr", "buffer", "ptr", "u32"], returns: "i32" },
|
|
359
366
|
ot_session_read_output: { args: ["ptr", "buffer", "ptr", "u32", "buffer"], returns: "i32" },
|
|
@@ -580,7 +587,7 @@ var nativeLayouts = {
|
|
|
580
587
|
}
|
|
581
588
|
},
|
|
582
589
|
ot_scene_stats: {
|
|
583
|
-
size:
|
|
590
|
+
size: 224,
|
|
584
591
|
alignment: 8,
|
|
585
592
|
fields: {
|
|
586
593
|
struct_size: { offset: 0, size: 4, alignment: 4, type: "u32" },
|
|
@@ -593,7 +600,29 @@ var nativeLayouts = {
|
|
|
593
600
|
cells_updated: { offset: 48, size: 4, alignment: 4, type: "u32" },
|
|
594
601
|
average_cells_updated: { offset: 52, size: 4, alignment: 4, type: "u32" },
|
|
595
602
|
render_time_valid: { offset: 56, size: 4, alignment: 4, type: "u32" },
|
|
596
|
-
stdout_write_time_valid: { offset: 60, size: 4, alignment: 4, type: "u32" }
|
|
603
|
+
stdout_write_time_valid: { offset: 60, size: 4, alignment: 4, type: "u32" },
|
|
604
|
+
work_frame_id: { offset: 64, size: 8, alignment: 8, type: "u64" },
|
|
605
|
+
candidate_visits: { offset: 72, size: 8, alignment: 8, type: "u64" },
|
|
606
|
+
paint_visits: { offset: 80, size: 8, alignment: 8, type: "u64" },
|
|
607
|
+
view_preparations: { offset: 88, size: 8, alignment: 8, type: "u64" },
|
|
608
|
+
geometry_reads: { offset: 96, size: 8, alignment: 8, type: "u64" },
|
|
609
|
+
yoga_solves: { offset: 104, size: 8, alignment: 8, type: "u64" },
|
|
610
|
+
feedback_operations: { offset: 112, size: 8, alignment: 8, type: "u64" },
|
|
611
|
+
visibility_steps: { offset: 120, size: 8, alignment: 8, type: "u64" },
|
|
612
|
+
viewport_child_refreshes: { offset: 128, size: 8, alignment: 8, type: "u64" },
|
|
613
|
+
overlap_tests: { offset: 136, size: 8, alignment: 8, type: "u64" },
|
|
614
|
+
members_painted: { offset: 144, size: 8, alignment: 8, type: "u64" },
|
|
615
|
+
member_cells: { offset: 152, size: 8, alignment: 8, type: "u64" },
|
|
616
|
+
cells_cleared: { offset: 160, size: 8, alignment: 8, type: "u64" },
|
|
617
|
+
hit_cells_written: { offset: 168, size: 8, alignment: 8, type: "u64" },
|
|
618
|
+
hit_cells_cleared: { offset: 176, size: 8, alignment: 8, type: "u64" },
|
|
619
|
+
hit_cells_compared: { offset: 184, size: 8, alignment: 8, type: "u64" },
|
|
620
|
+
rows_compared: { offset: 192, size: 8, alignment: 8, type: "u64" },
|
|
621
|
+
rows_diffed: { offset: 200, size: 8, alignment: 8, type: "u64" },
|
|
622
|
+
full_path_reasons: { offset: 208, size: 4, alignment: 4, type: "u32" },
|
|
623
|
+
host_requests: { offset: 212, size: 4, alignment: 4, type: "u32" },
|
|
624
|
+
layout_rounds: { offset: 216, size: 4, alignment: 4, type: "u32" },
|
|
625
|
+
reserved: { offset: 220, size: 4, alignment: 4, type: "u32" }
|
|
597
626
|
}
|
|
598
627
|
},
|
|
599
628
|
ot_scene_cursor_state: {
|
|
@@ -1319,6 +1348,37 @@ var nativeLayouts = {
|
|
|
1319
1348
|
deadline_ns: { offset: 16, size: 8, alignment: 8, type: "u64" }
|
|
1320
1349
|
}
|
|
1321
1350
|
},
|
|
1351
|
+
ot_input_event: {
|
|
1352
|
+
size: 32,
|
|
1353
|
+
alignment: 4,
|
|
1354
|
+
fields: {
|
|
1355
|
+
kind: { offset: 0, size: 1, alignment: 1, type: "u8" },
|
|
1356
|
+
action: { offset: 1, size: 1, alignment: 1, type: "u8" },
|
|
1357
|
+
modifiers: { offset: 2, size: 1, alignment: 1, type: "u8" },
|
|
1358
|
+
flags: { offset: 3, size: 1, alignment: 1, type: "u8" },
|
|
1359
|
+
code: { offset: 4, size: 4, alignment: 4, type: "u32" },
|
|
1360
|
+
base_code: { offset: 8, size: 4, alignment: 4, type: "u32" },
|
|
1361
|
+
x: { offset: 12, size: 2, alignment: 2, type: "u16" },
|
|
1362
|
+
y: { offset: 14, size: 2, alignment: 2, type: "u16" },
|
|
1363
|
+
raw_offset: { offset: 16, size: 4, alignment: 4, type: "u32" },
|
|
1364
|
+
raw_len: { offset: 20, size: 4, alignment: 4, type: "u32" },
|
|
1365
|
+
text_offset: { offset: 24, size: 4, alignment: 4, type: "u32" },
|
|
1366
|
+
text_len: { offset: 28, size: 4, alignment: 4, type: "u32" }
|
|
1367
|
+
}
|
|
1368
|
+
},
|
|
1369
|
+
ot_input_drain: {
|
|
1370
|
+
size: 32,
|
|
1371
|
+
alignment: 8,
|
|
1372
|
+
fields: {
|
|
1373
|
+
struct_size: { offset: 0, size: 4, alignment: 4, type: "u32" },
|
|
1374
|
+
abi_version: { offset: 4, size: 4, alignment: 4, type: "u32" },
|
|
1375
|
+
consumed: { offset: 8, size: 4, alignment: 4, type: "u32" },
|
|
1376
|
+
count: { offset: 12, size: 4, alignment: 4, type: "u32" },
|
|
1377
|
+
payload_len: { offset: 16, size: 4, alignment: 4, type: "u32" },
|
|
1378
|
+
discarded: { offset: 20, size: 4, alignment: 4, type: "u32" },
|
|
1379
|
+
deadline_ns: { offset: 24, size: 8, alignment: 8, type: "u64" }
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1322
1382
|
ot_context_options: {
|
|
1323
1383
|
size: 32,
|
|
1324
1384
|
alignment: 4,
|
|
@@ -1501,7 +1561,7 @@ var nativeLayouts = {
|
|
|
1501
1561
|
}
|
|
1502
1562
|
};
|
|
1503
1563
|
var nativeConstants = {
|
|
1504
|
-
OT_CONTEXT_ABI_VERSION:
|
|
1564
|
+
OT_CONTEXT_ABI_VERSION: 2,
|
|
1505
1565
|
OT_OK: 0,
|
|
1506
1566
|
OT_INVALID_ARGUMENT: -1,
|
|
1507
1567
|
OT_UNSUPPORTED_VERSION: -2,
|
|
@@ -1686,6 +1746,9 @@ var nativeConstants = {
|
|
|
1686
1746
|
OT_SCENE_TEXT_BACKGROUND: 2,
|
|
1687
1747
|
OT_SCENE_TEXT_LINK: 4,
|
|
1688
1748
|
OT_SCENE_MUTATIONS_MAX: 4096,
|
|
1749
|
+
OT_SCENE_FULL_PATH_FORCED: 1,
|
|
1750
|
+
OT_SCENE_FULL_PATH_SCREEN: 2,
|
|
1751
|
+
OT_SCENE_FULL_PATH_IMAGES: 4,
|
|
1689
1752
|
OT_SCENE_HOOK_UPDATE: 1,
|
|
1690
1753
|
OT_SCENE_HOOK_RESIZE: 2,
|
|
1691
1754
|
OT_SCENE_HOOK_LAYOUT_CHANGED: 4,
|
|
@@ -1698,7 +1761,6 @@ var nativeConstants = {
|
|
|
1698
1761
|
OT_SCENE_FRAME_RESIZE: 2,
|
|
1699
1762
|
OT_SCENE_FRAME_LAYOUT_CHANGED: 3,
|
|
1700
1763
|
OT_SCENE_FRAME_RECORD: 4,
|
|
1701
|
-
OT_SCENE_FRAME_YIELD: 5,
|
|
1702
1764
|
OT_SCENE_GEOMETRY_PAINT: 1,
|
|
1703
1765
|
OT_SCENE_GEOMETRY_PUBLIC: 2,
|
|
1704
1766
|
OT_SCENE_PROPERTY_Z_INDEX: 1,
|
|
@@ -1716,6 +1778,7 @@ var nativeConstants = {
|
|
|
1716
1778
|
OT_SCENE_PROPERTY_RESET_BORDER_CHARACTERS: 4096,
|
|
1717
1779
|
OT_SCENE_PROPERTY_RECORD_MAX: 88,
|
|
1718
1780
|
OT_SCENE_PROPERTY_BYTES_MAX: 360448,
|
|
1781
|
+
OT_SCENE_DEBUG_FULL_FRAME: 1,
|
|
1719
1782
|
OT_SESSION_OPEN: 0,
|
|
1720
1783
|
OT_SESSION_CLOSING: 1,
|
|
1721
1784
|
OT_SESSION_CLOSED_STATE: 2,
|
|
@@ -1810,6 +1873,7 @@ var nativeConstants = {
|
|
|
1810
1873
|
OT_EDIT_HIGHLIGHT_REMOVE_REF: 2,
|
|
1811
1874
|
OT_EDIT_HIGHLIGHT_CLEAR_LINE: 3,
|
|
1812
1875
|
OT_EDIT_HIGHLIGHT_CLEAR_ALL: 4,
|
|
1876
|
+
OT_STYLE_RUN_FLAG: 2147483648,
|
|
1813
1877
|
OT_EDITOR_MOVE_UP: 0,
|
|
1814
1878
|
OT_EDITOR_MOVE_DOWN: 1,
|
|
1815
1879
|
OT_EDITOR_GOTO_LINE_END: 2,
|
|
@@ -1977,6 +2041,117 @@ var nativeConstants = {
|
|
|
1977
2041
|
OT_PUMP_OUTPUT_PENDING: 2,
|
|
1978
2042
|
OT_PUMP_WAIT_UNTIL: 3,
|
|
1979
2043
|
OT_PUMP_CLOSED: 4,
|
|
2044
|
+
OT_INPUT_KEY: 1,
|
|
2045
|
+
OT_INPUT_MOUSE: 2,
|
|
2046
|
+
OT_INPUT_PASTE: 3,
|
|
2047
|
+
OT_INPUT_FOCUS: 4,
|
|
2048
|
+
OT_INPUT_REPLY: 5,
|
|
2049
|
+
OT_INPUT_KEY_PRESS: 1,
|
|
2050
|
+
OT_INPUT_KEY_REPEAT: 2,
|
|
2051
|
+
OT_INPUT_KEY_RELEASE: 3,
|
|
2052
|
+
OT_INPUT_MOUSE_DOWN: 1,
|
|
2053
|
+
OT_INPUT_MOUSE_UP: 2,
|
|
2054
|
+
OT_INPUT_MOUSE_MOVE: 3,
|
|
2055
|
+
OT_INPUT_MOUSE_DRAG: 4,
|
|
2056
|
+
OT_INPUT_MOUSE_SCROLL: 5,
|
|
2057
|
+
OT_INPUT_MOUSE_BUTTON_NONE: 255,
|
|
2058
|
+
OT_INPUT_FOCUS_OUT: 0,
|
|
2059
|
+
OT_INPUT_FOCUS_IN: 1,
|
|
2060
|
+
OT_INPUT_MOD_SHIFT: 1,
|
|
2061
|
+
OT_INPUT_MOD_ALT: 2,
|
|
2062
|
+
OT_INPUT_MOD_CTRL: 4,
|
|
2063
|
+
OT_INPUT_MOD_SUPER: 8,
|
|
2064
|
+
OT_INPUT_MOD_HYPER: 16,
|
|
2065
|
+
OT_INPUT_MOD_META: 32,
|
|
2066
|
+
OT_INPUT_MOD_CAPS_LOCK: 64,
|
|
2067
|
+
OT_INPUT_MOD_NUM_LOCK: 128,
|
|
2068
|
+
OT_INPUT_KEY_KITTY: 1,
|
|
2069
|
+
OT_INPUT_KEY_TEXT_TRUNCATED: 2,
|
|
2070
|
+
OT_INPUT_PASTE_START: 1,
|
|
2071
|
+
OT_INPUT_PASTE_END: 2,
|
|
2072
|
+
OT_INPUT_REPLY_FRAGMENT: 1,
|
|
2073
|
+
OT_INPUT_REPLY_CURSOR_POSITION: 2,
|
|
2074
|
+
OT_INPUT_REPLY_CSI: 1,
|
|
2075
|
+
OT_INPUT_REPLY_SS3: 2,
|
|
2076
|
+
OT_INPUT_REPLY_OSC: 3,
|
|
2077
|
+
OT_INPUT_REPLY_DCS: 4,
|
|
2078
|
+
OT_INPUT_REPLY_APC: 5,
|
|
2079
|
+
OT_INPUT_KEY_ESCAPE: 27,
|
|
2080
|
+
OT_INPUT_KEY_ENTER: 13,
|
|
2081
|
+
OT_INPUT_KEY_TAB: 9,
|
|
2082
|
+
OT_INPUT_KEY_BACKSPACE: 127,
|
|
2083
|
+
OT_INPUT_KEY_INSERT: 57348,
|
|
2084
|
+
OT_INPUT_KEY_DELETE: 57349,
|
|
2085
|
+
OT_INPUT_KEY_LEFT: 57350,
|
|
2086
|
+
OT_INPUT_KEY_RIGHT: 57351,
|
|
2087
|
+
OT_INPUT_KEY_UP: 57352,
|
|
2088
|
+
OT_INPUT_KEY_DOWN: 57353,
|
|
2089
|
+
OT_INPUT_KEY_PAGE_UP: 57354,
|
|
2090
|
+
OT_INPUT_KEY_PAGE_DOWN: 57355,
|
|
2091
|
+
OT_INPUT_KEY_HOME: 57356,
|
|
2092
|
+
OT_INPUT_KEY_END: 57357,
|
|
2093
|
+
OT_INPUT_KEY_CAPS_LOCK: 57358,
|
|
2094
|
+
OT_INPUT_KEY_SCROLL_LOCK: 57359,
|
|
2095
|
+
OT_INPUT_KEY_NUM_LOCK: 57360,
|
|
2096
|
+
OT_INPUT_KEY_PRINT_SCREEN: 57361,
|
|
2097
|
+
OT_INPUT_KEY_PAUSE: 57362,
|
|
2098
|
+
OT_INPUT_KEY_MENU: 57363,
|
|
2099
|
+
OT_INPUT_KEY_F1: 57364,
|
|
2100
|
+
OT_INPUT_KEY_F35: 57398,
|
|
2101
|
+
OT_INPUT_KEY_KP_0: 57399,
|
|
2102
|
+
OT_INPUT_KEY_KP_9: 57408,
|
|
2103
|
+
OT_INPUT_KEY_KP_DECIMAL: 57409,
|
|
2104
|
+
OT_INPUT_KEY_KP_DIVIDE: 57410,
|
|
2105
|
+
OT_INPUT_KEY_KP_MULTIPLY: 57411,
|
|
2106
|
+
OT_INPUT_KEY_KP_SUBTRACT: 57412,
|
|
2107
|
+
OT_INPUT_KEY_KP_ADD: 57413,
|
|
2108
|
+
OT_INPUT_KEY_KP_ENTER: 57414,
|
|
2109
|
+
OT_INPUT_KEY_KP_EQUAL: 57415,
|
|
2110
|
+
OT_INPUT_KEY_KP_SEPARATOR: 57416,
|
|
2111
|
+
OT_INPUT_KEY_KP_LEFT: 57417,
|
|
2112
|
+
OT_INPUT_KEY_KP_RIGHT: 57418,
|
|
2113
|
+
OT_INPUT_KEY_KP_UP: 57419,
|
|
2114
|
+
OT_INPUT_KEY_KP_DOWN: 57420,
|
|
2115
|
+
OT_INPUT_KEY_KP_PAGE_UP: 57421,
|
|
2116
|
+
OT_INPUT_KEY_KP_PAGE_DOWN: 57422,
|
|
2117
|
+
OT_INPUT_KEY_KP_HOME: 57423,
|
|
2118
|
+
OT_INPUT_KEY_KP_END: 57424,
|
|
2119
|
+
OT_INPUT_KEY_KP_INSERT: 57425,
|
|
2120
|
+
OT_INPUT_KEY_KP_DELETE: 57426,
|
|
2121
|
+
OT_INPUT_KEY_KP_BEGIN: 57427,
|
|
2122
|
+
OT_INPUT_KEY_MEDIA_PLAY: 57428,
|
|
2123
|
+
OT_INPUT_KEY_MEDIA_PAUSE: 57429,
|
|
2124
|
+
OT_INPUT_KEY_MEDIA_PLAY_PAUSE: 57430,
|
|
2125
|
+
OT_INPUT_KEY_MEDIA_REVERSE: 57431,
|
|
2126
|
+
OT_INPUT_KEY_MEDIA_STOP: 57432,
|
|
2127
|
+
OT_INPUT_KEY_MEDIA_FAST_FORWARD: 57433,
|
|
2128
|
+
OT_INPUT_KEY_MEDIA_REWIND: 57434,
|
|
2129
|
+
OT_INPUT_KEY_MEDIA_TRACK_NEXT: 57435,
|
|
2130
|
+
OT_INPUT_KEY_MEDIA_TRACK_PREVIOUS: 57436,
|
|
2131
|
+
OT_INPUT_KEY_MEDIA_RECORD: 57437,
|
|
2132
|
+
OT_INPUT_KEY_LOWER_VOLUME: 57438,
|
|
2133
|
+
OT_INPUT_KEY_RAISE_VOLUME: 57439,
|
|
2134
|
+
OT_INPUT_KEY_MUTE_VOLUME: 57440,
|
|
2135
|
+
OT_INPUT_KEY_LEFT_SHIFT: 57441,
|
|
2136
|
+
OT_INPUT_KEY_LEFT_CONTROL: 57442,
|
|
2137
|
+
OT_INPUT_KEY_LEFT_ALT: 57443,
|
|
2138
|
+
OT_INPUT_KEY_LEFT_SUPER: 57444,
|
|
2139
|
+
OT_INPUT_KEY_LEFT_HYPER: 57445,
|
|
2140
|
+
OT_INPUT_KEY_LEFT_META: 57446,
|
|
2141
|
+
OT_INPUT_KEY_RIGHT_SHIFT: 57447,
|
|
2142
|
+
OT_INPUT_KEY_RIGHT_CONTROL: 57448,
|
|
2143
|
+
OT_INPUT_KEY_RIGHT_ALT: 57449,
|
|
2144
|
+
OT_INPUT_KEY_RIGHT_SUPER: 57450,
|
|
2145
|
+
OT_INPUT_KEY_RIGHT_HYPER: 57451,
|
|
2146
|
+
OT_INPUT_KEY_RIGHT_META: 57452,
|
|
2147
|
+
OT_INPUT_KEY_ISO_LEVEL3_SHIFT: 57453,
|
|
2148
|
+
OT_INPUT_KEY_ISO_LEVEL5_SHIFT: 57454,
|
|
2149
|
+
OT_INPUT_EXPECT_REPLIES: 1,
|
|
2150
|
+
OT_INPUT_EXPECT_KITTY_KEYBOARD: 2,
|
|
2151
|
+
OT_INPUT_EXPECT_CURSOR_POSITION: 4,
|
|
2152
|
+
OT_INPUT_EVENTS_MIN: 4,
|
|
2153
|
+
OT_INPUT_PAYLOAD_BYTES_MIN: 4384,
|
|
2154
|
+
OT_INPUT_TIMEOUT_NS: 20000000,
|
|
1980
2155
|
OT_DIAGNOSTIC_MESSAGE_BYTES: 4096,
|
|
1981
2156
|
OT_DIAGNOSTIC_TRUNCATED: 1,
|
|
1982
2157
|
OT_SCENE_RECORD_BYTES_MAX: 67108864,
|
|
@@ -1999,6 +2174,7 @@ var nativeConstants = {
|
|
|
1999
2174
|
OT_SCENE_RECORD_GRAYSCALE_FOREGROUND: 1,
|
|
2000
2175
|
OT_SCENE_RECORD_GRAYSCALE_BACKGROUND: 2,
|
|
2001
2176
|
OT_SCENE_RECORD_GRAYSCALE_SUPERSAMPLED: 4,
|
|
2177
|
+
OT_INPUT_RESET_KEEP_REPLY: 1,
|
|
2002
2178
|
OT_CLIPBOARD_OPERATION_PENDING: 0,
|
|
2003
2179
|
OT_CLIPBOARD_OPERATION_READ: 1,
|
|
2004
2180
|
OT_CLIPBOARD_OPERATION_EMPTY: 2,
|
|
@@ -2031,7 +2207,6 @@ var nativeConstants = {
|
|
|
2031
2207
|
OT_CLIPBOARD_SHUTDOWN_READY: 1,
|
|
2032
2208
|
OT_CLIPBOARD_SHUTDOWN_INVALID_HANDLE: 2
|
|
2033
2209
|
};
|
|
2034
|
-
var nativeStyleEnumMaxima = [2, 3, 5, 8, 8, 8, 2, 2, 2, 1, 1];
|
|
2035
2210
|
|
|
2036
2211
|
// src/platform/ffi.ts
|
|
2037
2212
|
import { createRequire } from "module";
|
|
@@ -5581,7 +5756,6 @@ var NativeSceneFrame2;
|
|
|
5581
5756
|
NativeSceneFrame[NativeSceneFrame["Resize"] = nativeConstants.OT_SCENE_FRAME_RESIZE] = "Resize";
|
|
5582
5757
|
NativeSceneFrame[NativeSceneFrame["LayoutChanged"] = nativeConstants.OT_SCENE_FRAME_LAYOUT_CHANGED] = "LayoutChanged";
|
|
5583
5758
|
NativeSceneFrame[NativeSceneFrame["Record"] = nativeConstants.OT_SCENE_FRAME_RECORD] = "Record";
|
|
5584
|
-
NativeSceneFrame[NativeSceneFrame["Yield"] = nativeConstants.OT_SCENE_FRAME_YIELD] = "Yield";
|
|
5585
5759
|
})(NativeSceneFrame2 ||= {});
|
|
5586
5760
|
var NativeScenePaintPhase2;
|
|
5587
5761
|
((NativeScenePaintPhase) => {
|
|
@@ -5874,6 +6048,20 @@ var processLogLibraries = [];
|
|
|
5874
6048
|
var globalTraceSymbols = null;
|
|
5875
6049
|
var globalFFILogPath = null;
|
|
5876
6050
|
var exitHandlerRegistered = false;
|
|
6051
|
+
function readFrameWork(layout, output, words) {
|
|
6052
|
+
const result = {};
|
|
6053
|
+
let counting = false;
|
|
6054
|
+
for (const [field, { offset, type }] of Object.entries(layout.fields)) {
|
|
6055
|
+
if (field === "reserved")
|
|
6056
|
+
break;
|
|
6057
|
+
counting ||= field === "work_frame_id";
|
|
6058
|
+
if (!counting)
|
|
6059
|
+
continue;
|
|
6060
|
+
const name = field.replace(/_(.)/g, (_, letter) => letter.toUpperCase());
|
|
6061
|
+
result[name] = type === "u64" ? toNumber(output[offset / 8]) : words[offset / 4];
|
|
6062
|
+
}
|
|
6063
|
+
return result;
|
|
6064
|
+
}
|
|
5877
6065
|
function toNumber(value) {
|
|
5878
6066
|
return typeof value === "bigint" ? Number(value) : value;
|
|
5879
6067
|
}
|
|
@@ -6330,35 +6518,24 @@ function encodeScenePaint(paint, scratch) {
|
|
|
6330
6518
|
record[layout.fields.z_index.offset / 4] = toFFII32(zIndex, "Scene zIndex");
|
|
6331
6519
|
fields |= nativeConstants.OT_SCENE_PROPERTY_Z_INDEX;
|
|
6332
6520
|
}
|
|
6333
|
-
const
|
|
6334
|
-
if (
|
|
6335
|
-
|
|
6336
|
-
if (opacity < 0 || opacity > 1)
|
|
6337
|
-
throw new RangeError("Scene opacity must be within 0..1");
|
|
6338
|
-
floats[layout.fields.opacity.offset / 4] = opacity;
|
|
6521
|
+
const opacity = paint.opacity;
|
|
6522
|
+
if (opacity !== undefined) {
|
|
6523
|
+
floats[layout.fields.opacity.offset / 4] = toFFIF32(opacity, "Scene opacity");
|
|
6339
6524
|
fields |= nativeConstants.OT_SCENE_PROPERTY_OPACITY;
|
|
6340
6525
|
}
|
|
6341
6526
|
const translateX = paint.translateX;
|
|
6342
6527
|
const translateY = paint.translateY;
|
|
6343
6528
|
if (translateX !== undefined) {
|
|
6344
|
-
|
|
6345
|
-
throw new RangeError("Scene translations must be finite numbers");
|
|
6346
|
-
}
|
|
6347
|
-
doubles[layout.fields.translate_x.offset / 8] = translateX;
|
|
6529
|
+
doubles[layout.fields.translate_x.offset / 8] = toFFIF32(translateX, "Scene translateX");
|
|
6348
6530
|
fields |= nativeConstants.OT_SCENE_PROPERTY_TRANSLATE_X;
|
|
6349
6531
|
}
|
|
6350
6532
|
if (translateY !== undefined) {
|
|
6351
|
-
|
|
6352
|
-
throw new RangeError("Scene translations must be finite numbers");
|
|
6353
|
-
doubles[layout.fields.translate_y.offset / 8] = translateY;
|
|
6533
|
+
doubles[layout.fields.translate_y.offset / 8] = toFFIF32(translateY, "Scene translateY");
|
|
6354
6534
|
fields |= nativeConstants.OT_SCENE_PROPERTY_TRANSLATE_Y;
|
|
6355
6535
|
}
|
|
6356
|
-
const
|
|
6357
|
-
if (
|
|
6358
|
-
|
|
6359
|
-
if (borderSides > 15)
|
|
6360
|
-
throw new RangeError("Scene border sides must use four edge bits");
|
|
6361
|
-
record[layout.fields.border_sides.offset / 4] = borderSides;
|
|
6536
|
+
const border = paint.border;
|
|
6537
|
+
if (border !== undefined) {
|
|
6538
|
+
record[layout.fields.border_sides.offset / 4] = toSafeFFIU32Length(border, "Scene border");
|
|
6362
6539
|
fields |= nativeConstants.OT_SCENE_PROPERTY_BORDER;
|
|
6363
6540
|
}
|
|
6364
6541
|
const shouldFill = paint.shouldFill;
|
|
@@ -6402,34 +6579,6 @@ function encodeScenePaint(paint, scratch) {
|
|
|
6402
6579
|
}
|
|
6403
6580
|
return fields;
|
|
6404
6581
|
}
|
|
6405
|
-
function validateSceneStyle(group, kind, edge, unit, value, flags) {
|
|
6406
|
-
const c = nativeConstants;
|
|
6407
|
-
if (group > c.OT_STYLE_DIMENSION || group === c.OT_STYLE_BORDER || group !== c.OT_STYLE_DIMENSION && flags !== 0 || flags > c.OT_STYLE_DISABLE_FLEX_SHRINK) {
|
|
6408
|
-
throw new NativeError2("ot_scene_set_style", -1 /* InvalidArgument */);
|
|
6409
|
-
}
|
|
6410
|
-
if ((group === c.OT_STYLE_ENUM || group === c.OT_STYLE_FLOAT) && (edge !== c.OT_EDGE_NONE || unit !== c.OT_UNIT_UNDEFINED)) {
|
|
6411
|
-
throw new NativeError2("ot_scene_set_style", -1 /* InvalidArgument */);
|
|
6412
|
-
}
|
|
6413
|
-
if (group === c.OT_STYLE_DIMENSION && edge !== c.OT_EDGE_NONE)
|
|
6414
|
-
throw new NativeError2("ot_scene_set_style", -1 /* InvalidArgument */);
|
|
6415
|
-
let valid = false;
|
|
6416
|
-
switch (group) {
|
|
6417
|
-
case c.OT_STYLE_ENUM:
|
|
6418
|
-
valid = kind < nativeStyleEnumMaxima.length && value <= nativeStyleEnumMaxima[kind];
|
|
6419
|
-
break;
|
|
6420
|
-
case c.OT_STYLE_FLOAT:
|
|
6421
|
-
valid = kind <= c.OT_STYLE_FLOAT_ASPECT_RATIO;
|
|
6422
|
-
break;
|
|
6423
|
-
case c.OT_STYLE_VALUE:
|
|
6424
|
-
valid = kind <= c.OT_STYLE_VALUE_GAP && unit <= c.OT_UNIT_AUTO && (kind < c.OT_STYLE_VALUE_MARGIN || edge <= (kind === c.OT_STYLE_VALUE_GAP ? c.OT_GUTTER_ALL : c.OT_EDGE_ALL)) && !(unit === c.OT_UNIT_AUTO && (kind >= c.OT_STYLE_VALUE_MIN_WIDTH && kind <= c.OT_STYLE_VALUE_MAX_HEIGHT || kind === c.OT_STYLE_VALUE_PADDING || kind === c.OT_STYLE_VALUE_GAP));
|
|
6425
|
-
break;
|
|
6426
|
-
case c.OT_STYLE_DIMENSION:
|
|
6427
|
-
valid = kind <= c.OT_DIMENSION_HEIGHT && unit <= c.OT_UNIT_AUTO;
|
|
6428
|
-
break;
|
|
6429
|
-
}
|
|
6430
|
-
if (!valid)
|
|
6431
|
-
throw new NativeError2("ot_scene_set_style", -1 /* InvalidArgument */);
|
|
6432
|
-
}
|
|
6433
6582
|
var scenePropertyWords = [
|
|
6434
6583
|
["z_index", nativeConstants.OT_SCENE_PROPERTY_Z_INDEX],
|
|
6435
6584
|
["opacity", nativeConstants.OT_SCENE_PROPERTY_OPACITY],
|
|
@@ -6561,7 +6710,8 @@ class SceneStaging {
|
|
|
6561
6710
|
unit = toSafeFFIU32Length(unit, "Scene style unit");
|
|
6562
6711
|
value = SceneStaging.checkStyleValue(group, value);
|
|
6563
6712
|
flags = toSafeFFIU32Length(flags, "Scene style flags");
|
|
6564
|
-
|
|
6713
|
+
if (Math.max(group, kind, edge, unit) > 255)
|
|
6714
|
+
throw new NativeError2("ot_scene_set_style", -1 /* InvalidArgument */);
|
|
6565
6715
|
if (group === nativeConstants.OT_STYLE_VALUE && kind < nativeConstants.OT_STYLE_VALUE_MARGIN)
|
|
6566
6716
|
edge = 0;
|
|
6567
6717
|
const handle = encodedContextHandle(context, node);
|
|
@@ -9604,6 +9754,41 @@ class FFIRenderLib2 {
|
|
|
9604
9754
|
nativeResult("ot_session_pump_exit", this.opentui.symbols.ot_session_pump_exit(pointer, handle, output));
|
|
9605
9755
|
return output[0];
|
|
9606
9756
|
}
|
|
9757
|
+
sessionInputFeed(context, session, bytes, nowNs, records, payload) {
|
|
9758
|
+
const layout = nativeLayouts.ot_input_drain;
|
|
9759
|
+
const handle = encodeContextHandle(context, session);
|
|
9760
|
+
const input = sessionBytes(bytes, "Session input length");
|
|
9761
|
+
const now = toFFIU64(nowNs, "Session input nowNs");
|
|
9762
|
+
const recordView = sessionBytes(records, "Session input records length");
|
|
9763
|
+
const payloadView = sessionBytes(payload, "Session input payload length");
|
|
9764
|
+
if (recordView.byteOffset % nativeLayouts.ot_input_event.alignment !== 0) {
|
|
9765
|
+
throw new RangeError("Session input records must be aligned to ot_input_event");
|
|
9766
|
+
}
|
|
9767
|
+
const capacity = Math.floor(recordView.byteLength / nativeLayouts.ot_input_event.size);
|
|
9768
|
+
const output = new BigUint64Array(layout.size / 8);
|
|
9769
|
+
const words = new Uint32Array(output.buffer);
|
|
9770
|
+
words[layout.fields.struct_size.offset / 4] = layout.size;
|
|
9771
|
+
words[layout.fields.abi_version.offset / 4] = nativeConstants.OT_CONTEXT_ABI_VERSION;
|
|
9772
|
+
const pointer = this.nativeContextPointer(context, "ot_session_input_feed");
|
|
9773
|
+
nativeResult("ot_session_input_feed", this.opentui.symbols.ot_session_input_feed(pointer, handle, input.byteLength === 0 ? null : input, input.byteLength, now, recordView, capacity, payloadView, payloadView.byteLength, output));
|
|
9774
|
+
const deadline = output[layout.fields.deadline_ns.offset / 8];
|
|
9775
|
+
return {
|
|
9776
|
+
consumed: words[layout.fields.consumed.offset / 4],
|
|
9777
|
+
count: words[layout.fields.count.offset / 4],
|
|
9778
|
+
deadlineNs: deadline === 0n ? null : deadline
|
|
9779
|
+
};
|
|
9780
|
+
}
|
|
9781
|
+
sessionInputExpect(context, session, flags) {
|
|
9782
|
+
const handle = encodeContextHandle(context, session);
|
|
9783
|
+
const value = toSafeFFIU32Length(flags, "Session input expectations");
|
|
9784
|
+
const pointer = this.nativeContextPointer(context, "ot_session_input_expect");
|
|
9785
|
+
nativeResult("ot_session_input_expect", this.opentui.symbols.ot_session_input_expect(pointer, handle, value));
|
|
9786
|
+
}
|
|
9787
|
+
sessionInputReset(context, session, flags) {
|
|
9788
|
+
const handle = encodeContextHandle(context, session);
|
|
9789
|
+
const pointer = this.nativeContextPointer(context, "ot_session_input_reset");
|
|
9790
|
+
nativeResult("ot_session_input_reset", this.opentui.symbols.ot_session_input_reset(pointer, handle, flags));
|
|
9791
|
+
}
|
|
9607
9792
|
terminalFlushInput() {
|
|
9608
9793
|
nativeResult("ot_terminal_flush_input", this.opentui.symbols.ot_terminal_flush_input());
|
|
9609
9794
|
}
|
|
@@ -10382,7 +10567,7 @@ class FFIRenderLib2 {
|
|
|
10382
10567
|
this.sceneHooksRecord ??= scratch;
|
|
10383
10568
|
}
|
|
10384
10569
|
}
|
|
10385
|
-
sceneFrameStep(context, session, previous, options,
|
|
10570
|
+
sceneFrameStep(context, session, previous, options, recording = null) {
|
|
10386
10571
|
const layout = nativeLayouts.ot_scene_frame_options;
|
|
10387
10572
|
this.getYogaHost().assertMutable();
|
|
10388
10573
|
const scratch = this.sceneFrameRecord ?? createSceneFrameRecord();
|
|
@@ -10396,9 +10581,6 @@ class FFIRenderLib2 {
|
|
|
10396
10581
|
config[layout.fields.max_layout_rounds.offset / 4] = toSafeFFIU32Length(options.maxLayoutRounds, "Scene layout round limit");
|
|
10397
10582
|
config[layout.fields.max_host_requests.offset / 4] = toSafeFFIU32Length(options.maxHostRequests, "Scene host request limit");
|
|
10398
10583
|
config[layout.fields.preserve_unwritten.offset / 4] = toFFIBool(options.preserveUnwritten ?? false, "Scene preserve unwritten cells");
|
|
10399
|
-
const workBudget = maxWorkItems === undefined ? 4294967295 : toSafeFFIU32Length(maxWorkItems, "Scene work budget");
|
|
10400
|
-
if (workBudget === 0)
|
|
10401
|
-
throw new RangeError("Scene work budget must be positive");
|
|
10402
10584
|
const recordingLength = recording === null ? 0 : toSafeFFIU32Length(recording.byteLength, "Scene recording");
|
|
10403
10585
|
const recordingView = recordingLength === 0 ? null : recording;
|
|
10404
10586
|
const output = encodeSceneFrameRequest(context, previous, scratch);
|
|
@@ -10408,9 +10590,9 @@ class FFIRenderLib2 {
|
|
|
10408
10590
|
this.getYogaHost().flushSceneMutations();
|
|
10409
10591
|
const pointer = this.nativeContextPointer(context, operation);
|
|
10410
10592
|
if (measures) {
|
|
10411
|
-
this.sceneFrameStepWithMeasures(context, pointer, handle, previous === null ? null : output, config, output,
|
|
10593
|
+
this.sceneFrameStepWithMeasures(context, pointer, handle, previous === null ? null : output, config, output, recordingView, recordingLength, geometry);
|
|
10412
10594
|
} else {
|
|
10413
|
-
nativeResult(operation, this.opentui.symbols.ot_scene_frame_step_with_geometry(pointer, handle, previous === null ? null : output, config,
|
|
10595
|
+
nativeResult(operation, this.opentui.symbols.ot_scene_frame_step_with_geometry(pointer, handle, previous === null ? null : output, config, recordingView, recordingLength, output, geometry));
|
|
10414
10596
|
}
|
|
10415
10597
|
try {
|
|
10416
10598
|
const fields = nativeLayouts.ot_scene_frame_geometry.fields;
|
|
@@ -10428,8 +10610,7 @@ class FFIRenderLib2 {
|
|
|
10428
10610
|
width: words[nativeLayouts.ot_scene_frame_request.fields.width.offset / 4],
|
|
10429
10611
|
height: words[nativeLayouts.ot_scene_frame_request.fields.height.offset / 4],
|
|
10430
10612
|
paintLayout: flags & nativeConstants.OT_SCENE_GEOMETRY_PAINT ? decodeSceneLayout(scratch.geometryValues, scratch.geometryCoordinates, fields.paint.offset) : undefined,
|
|
10431
|
-
publicLayout: flags & nativeConstants.OT_SCENE_GEOMETRY_PUBLIC ? decodeSceneLayout(scratch.geometryValues, scratch.geometryCoordinates, fields.public_layout.offset) : undefined
|
|
10432
|
-
geometryRevision: undefined
|
|
10613
|
+
publicLayout: flags & nativeConstants.OT_SCENE_GEOMETRY_PUBLIC ? decodeSceneLayout(scratch.geometryValues, scratch.geometryCoordinates, fields.public_layout.offset) : undefined
|
|
10433
10614
|
};
|
|
10434
10615
|
} catch (error) {
|
|
10435
10616
|
const livePointer = this.nativeContexts.get(context);
|
|
@@ -10441,11 +10622,11 @@ class FFIRenderLib2 {
|
|
|
10441
10622
|
this.sceneFrameRecord ??= scratch;
|
|
10442
10623
|
}
|
|
10443
10624
|
}
|
|
10444
|
-
sceneFrameStepWithMeasures(context, pointer, handle, previous, config, output,
|
|
10625
|
+
sceneFrameStepWithMeasures(context, pointer, handle, previous, config, output, recording, recordingLength, geometry) {
|
|
10445
10626
|
let accepted = false;
|
|
10446
10627
|
try {
|
|
10447
10628
|
this.getYogaHost().runMutation(() => {
|
|
10448
|
-
nativeResult("ot_scene_frame_step_with_geometry", this.opentui.symbols.ot_scene_frame_step_with_geometry(pointer, handle, previous, config,
|
|
10629
|
+
nativeResult("ot_scene_frame_step_with_geometry", this.opentui.symbols.ot_scene_frame_step_with_geometry(pointer, handle, previous, config, recording, recordingLength, output, geometry));
|
|
10449
10630
|
accepted = true;
|
|
10450
10631
|
});
|
|
10451
10632
|
} catch (error) {
|
|
@@ -10535,6 +10716,12 @@ class FFIRenderLib2 {
|
|
|
10535
10716
|
nativeResult("ot_scene_hit_test", this.opentui.symbols.ot_scene_hit_test(pointer, handle, x, y, output));
|
|
10536
10717
|
return output[0];
|
|
10537
10718
|
}
|
|
10719
|
+
sceneSetDebugFlags(context, session, flags) {
|
|
10720
|
+
const handle = encodeContextHandle(context, session);
|
|
10721
|
+
const value = toSafeFFIU32Length(flags, "Scene debug flags");
|
|
10722
|
+
const pointer = this.nativeContextPointer(context, "ot_scene_set_debug_flags");
|
|
10723
|
+
nativeResult("ot_scene_set_debug_flags", this.opentui.symbols.ot_scene_set_debug_flags(pointer, handle, value));
|
|
10724
|
+
}
|
|
10538
10725
|
sceneGetStats(context, session) {
|
|
10539
10726
|
const layout = nativeLayouts.ot_scene_stats;
|
|
10540
10727
|
const handle = encodeContextHandle(context, session);
|
|
@@ -10552,7 +10739,8 @@ class FFIRenderLib2 {
|
|
|
10552
10739
|
cellsUpdated: words[layout.fields.cells_updated.offset / 4],
|
|
10553
10740
|
averageCellsUpdated: words[layout.fields.average_cells_updated.offset / 4],
|
|
10554
10741
|
nativeRenderTime: words[layout.fields.render_time_valid.offset / 4] !== 0 ? times[layout.fields.render_time.offset / 8] : undefined,
|
|
10555
|
-
nativeStdoutWriteTime: words[layout.fields.stdout_write_time_valid.offset / 4] !== 0 ? times[layout.fields.stdout_write_time.offset / 8] : undefined
|
|
10742
|
+
nativeStdoutWriteTime: words[layout.fields.stdout_write_time_valid.offset / 4] !== 0 ? times[layout.fields.stdout_write_time.offset / 8] : undefined,
|
|
10743
|
+
frameWork: readFrameWork(layout, output, words)
|
|
10556
10744
|
};
|
|
10557
10745
|
}
|
|
10558
10746
|
sceneGetCursorState(context, session) {
|
|
@@ -12627,7 +12815,7 @@ var Yoga = {
|
|
|
12627
12815
|
};
|
|
12628
12816
|
var yoga_default = Yoga;
|
|
12629
12817
|
|
|
12630
|
-
export { nativeConstants, toArrayBuffer, singleton, getSingleton, destroySingleton, envRegistry2, registerEnvVar2, clearEnvCache2, generateEnvMarkdown2, generateEnvColored2, env2, stringWidth, resolveBundledFilePath2, Worker, TextAttributes2, ATTRIBUTE_BASE_BITS2, ATTRIBUTE_BASE_MASK2, getBaseAttributes2, DebugOverlayCorner2, TargetChannel2, DEFAULT_FOREGROUND_RGB2, DEFAULT_BACKGROUND_RGB2, normalizeIndexedColorIndex2, ansi256IndexToRgb2, RGBA2, normalizeColorValue2, hexToRgb2, rgbToHex2, hsvToRgb2, parseColor2, createTextAttributes2, attributesWithLink2, getLinkId2, visualizeRenderableTree2, isStyledText2, StyledText2, stringToStyledText2, black2, red2, green2, yellow2, blue2, magenta2, cyan2, white2, brightBlack2, brightRed2, brightGreen2, brightYellow2, brightBlue2, brightMagenta2, brightCyan2, brightWhite2, bgBlack2, bgRed2, bgGreen2, bgYellow2, bgBlue2, bgMagenta2, bgCyan2, bgWhite2, bold2, italic2, underline2, strikethrough2, dim2, reverse2, blink2, fg2, bg2, link2, t2, YogaEnumKind, YogaFloatKind, YogaValueKind, sceneSetEnum, sceneGetEnum, sceneSetFloat, sceneGetFloat, sceneSetValue, sceneGetValue, sceneSetDimension, UNDEFINED_VALUE, parseYogaValue, SpanInfoStruct, NativeAudioStreamFormat2, NativeAudioStreamState2, NativeAudioStreamStateNames, NativeAudioStreamCloseReason2, isBunfsPath, normalizeBunfsPath, resolveDefaultParserAsset, resolveDefaultTreeSitterWorkerPath, resolveTreeSitterWasm, NativeAudioStreamState3, NativeAudioStreamCloseReason3, NativeAudioStreamFormat3, MAX_LINK_URL_BYTES2, NativeTextViewCommand2, NativeEditCommand2, NativeEditPositionQuery2, NativeEditorStyleMask2, NativeEditHighlightOperation2, NativeEditorCommand2, NativeEditorSelectionOperation2, NativeEditorPositionQuery2, NativeEditEvent2, NativeStyleGroup, NativeStyleFlags, NATIVE_EDGE_NONE2, NativeBorder2, NativeSceneHook2, NativeSceneFrame2, NativeScenePaintPhase2, NATIVE_BUFFER_TEXT_BYTES_MAX2, NativeSessionState2, NativeSessionRenderStatus2, NATIVE_SESSION_CONTROL_PACKET_BYTES2, NativeSessionTerminalPhase2, NativeSessionPumpStatus2, NativeStatus2, NativeError2, NativeClipboardOperationStatus2, NativeClipboardStartStatus2, NativeClipboardCancelStatus2, NativeClipboardCopyStatus2, NativeClipboardDestroyStatus2, NativeClipboardShutdownStatus2, SceneStaging, NativePaintRecorder, LogLevel2, FFIRenderLib2, setRenderLibPath2, resolveRenderLib2, Align2, BoxSizing2, Dimension2, Direction2, Display2, Edge2, Errata2, ExperimentalFeature2, FlexDirection2, Gutter2, Justify2, LogLevel3, MeasureMode2, NodeType2, Overflow2, PositionType2, Unit2, Wrap2, ALIGN_AUTO2, ALIGN_FLEX_START2, ALIGN_CENTER2, ALIGN_FLEX_END2, ALIGN_STRETCH2, ALIGN_BASELINE2, ALIGN_SPACE_BETWEEN2, ALIGN_SPACE_AROUND2, ALIGN_SPACE_EVENLY2, BOX_SIZING_BORDER_BOX2, BOX_SIZING_CONTENT_BOX2, DIMENSION_WIDTH2, DIMENSION_HEIGHT2, DIRECTION_INHERIT2, DIRECTION_LTR2, DIRECTION_RTL2, DISPLAY_FLEX2, DISPLAY_NONE2, DISPLAY_CONTENTS2, EDGE_LEFT2, EDGE_TOP2, EDGE_RIGHT2, EDGE_BOTTOM2, EDGE_START2, EDGE_END2, EDGE_HORIZONTAL2, EDGE_VERTICAL2, EDGE_ALL2, ERRATA_NONE2, ERRATA_STRETCH_FLEX_BASIS2, ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING2, ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE2, ERRATA_ALL2, ERRATA_CLASSIC2, EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS2, FLEX_DIRECTION_COLUMN2, FLEX_DIRECTION_COLUMN_REVERSE2, FLEX_DIRECTION_ROW2, FLEX_DIRECTION_ROW_REVERSE2, GUTTER_COLUMN2, GUTTER_ROW2, GUTTER_ALL2, JUSTIFY_FLEX_START2, JUSTIFY_CENTER2, JUSTIFY_FLEX_END2, JUSTIFY_SPACE_BETWEEN2, JUSTIFY_SPACE_AROUND2, JUSTIFY_SPACE_EVENLY2, LOG_LEVEL_ERROR2, LOG_LEVEL_WARN2, LOG_LEVEL_INFO2, LOG_LEVEL_DEBUG2, LOG_LEVEL_VERBOSE2, LOG_LEVEL_FATAL2, MEASURE_MODE_UNDEFINED2, MEASURE_MODE_EXACTLY2, MEASURE_MODE_AT_MOST2, NODE_TYPE_DEFAULT2, NODE_TYPE_TEXT2, OVERFLOW_VISIBLE2, OVERFLOW_HIDDEN2, OVERFLOW_SCROLL2, POSITION_TYPE_STATIC2, POSITION_TYPE_RELATIVE2, POSITION_TYPE_ABSOLUTE2, UNIT_UNDEFINED2, UNIT_POINT2, UNIT_PERCENT2, UNIT_AUTO2, WRAP_NO_WRAP2, WRAP_WRAP2, WRAP_WRAP_REVERSE2, YogaStatus2, YogaError2, Config2, Node2, exports_yoga, yoga_default };
|
|
12818
|
+
export { nativeLayouts, nativeConstants, toArrayBuffer, singleton, getSingleton, destroySingleton, envRegistry2, registerEnvVar2, clearEnvCache2, generateEnvMarkdown2, generateEnvColored2, env2, stringWidth, resolveBundledFilePath2, Worker, TextAttributes2, ATTRIBUTE_BASE_BITS2, ATTRIBUTE_BASE_MASK2, getBaseAttributes2, DebugOverlayCorner2, TargetChannel2, DEFAULT_FOREGROUND_RGB2, DEFAULT_BACKGROUND_RGB2, normalizeIndexedColorIndex2, ansi256IndexToRgb2, RGBA2, normalizeColorValue2, hexToRgb2, rgbToHex2, hsvToRgb2, parseColor2, createTextAttributes2, attributesWithLink2, getLinkId2, visualizeRenderableTree2, isStyledText2, StyledText2, stringToStyledText2, black2, red2, green2, yellow2, blue2, magenta2, cyan2, white2, brightBlack2, brightRed2, brightGreen2, brightYellow2, brightBlue2, brightMagenta2, brightCyan2, brightWhite2, bgBlack2, bgRed2, bgGreen2, bgYellow2, bgBlue2, bgMagenta2, bgCyan2, bgWhite2, bold2, italic2, underline2, strikethrough2, dim2, reverse2, blink2, fg2, bg2, link2, t2, YogaEnumKind, YogaFloatKind, YogaValueKind, sceneSetEnum, sceneGetEnum, sceneSetFloat, sceneGetFloat, sceneSetValue, sceneGetValue, sceneSetDimension, UNDEFINED_VALUE, parseYogaValue, SpanInfoStruct, NativeAudioStreamFormat2, NativeAudioStreamState2, NativeAudioStreamStateNames, NativeAudioStreamCloseReason2, isBunfsPath, normalizeBunfsPath, resolveDefaultParserAsset, resolveDefaultTreeSitterWorkerPath, resolveTreeSitterWasm, NativeAudioStreamState3, NativeAudioStreamCloseReason3, NativeAudioStreamFormat3, MAX_LINK_URL_BYTES2, NativeTextViewCommand2, NativeEditCommand2, NativeEditPositionQuery2, NativeEditorStyleMask2, NativeEditHighlightOperation2, NativeEditorCommand2, NativeEditorSelectionOperation2, NativeEditorPositionQuery2, NativeEditEvent2, NativeStyleGroup, NativeStyleFlags, NATIVE_EDGE_NONE2, NativeBorder2, NativeSceneHook2, NativeSceneFrame2, NativeScenePaintPhase2, NATIVE_BUFFER_TEXT_BYTES_MAX2, NativeSessionState2, NativeSessionRenderStatus2, NATIVE_SESSION_CONTROL_PACKET_BYTES2, NativeSessionTerminalPhase2, NativeSessionPumpStatus2, NativeStatus2, NativeError2, NativeClipboardOperationStatus2, NativeClipboardStartStatus2, NativeClipboardCancelStatus2, NativeClipboardCopyStatus2, NativeClipboardDestroyStatus2, NativeClipboardShutdownStatus2, SceneStaging, NativePaintRecorder, LogLevel2, FFIRenderLib2, setRenderLibPath2, resolveRenderLib2, Align2, BoxSizing2, Dimension2, Direction2, Display2, Edge2, Errata2, ExperimentalFeature2, FlexDirection2, Gutter2, Justify2, LogLevel3, MeasureMode2, NodeType2, Overflow2, PositionType2, Unit2, Wrap2, ALIGN_AUTO2, ALIGN_FLEX_START2, ALIGN_CENTER2, ALIGN_FLEX_END2, ALIGN_STRETCH2, ALIGN_BASELINE2, ALIGN_SPACE_BETWEEN2, ALIGN_SPACE_AROUND2, ALIGN_SPACE_EVENLY2, BOX_SIZING_BORDER_BOX2, BOX_SIZING_CONTENT_BOX2, DIMENSION_WIDTH2, DIMENSION_HEIGHT2, DIRECTION_INHERIT2, DIRECTION_LTR2, DIRECTION_RTL2, DISPLAY_FLEX2, DISPLAY_NONE2, DISPLAY_CONTENTS2, EDGE_LEFT2, EDGE_TOP2, EDGE_RIGHT2, EDGE_BOTTOM2, EDGE_START2, EDGE_END2, EDGE_HORIZONTAL2, EDGE_VERTICAL2, EDGE_ALL2, ERRATA_NONE2, ERRATA_STRETCH_FLEX_BASIS2, ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING2, ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE2, ERRATA_ALL2, ERRATA_CLASSIC2, EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS2, FLEX_DIRECTION_COLUMN2, FLEX_DIRECTION_COLUMN_REVERSE2, FLEX_DIRECTION_ROW2, FLEX_DIRECTION_ROW_REVERSE2, GUTTER_COLUMN2, GUTTER_ROW2, GUTTER_ALL2, JUSTIFY_FLEX_START2, JUSTIFY_CENTER2, JUSTIFY_FLEX_END2, JUSTIFY_SPACE_BETWEEN2, JUSTIFY_SPACE_AROUND2, JUSTIFY_SPACE_EVENLY2, LOG_LEVEL_ERROR2, LOG_LEVEL_WARN2, LOG_LEVEL_INFO2, LOG_LEVEL_DEBUG2, LOG_LEVEL_VERBOSE2, LOG_LEVEL_FATAL2, MEASURE_MODE_UNDEFINED2, MEASURE_MODE_EXACTLY2, MEASURE_MODE_AT_MOST2, NODE_TYPE_DEFAULT2, NODE_TYPE_TEXT2, OVERFLOW_VISIBLE2, OVERFLOW_HIDDEN2, OVERFLOW_SCROLL2, POSITION_TYPE_STATIC2, POSITION_TYPE_RELATIVE2, POSITION_TYPE_ABSOLUTE2, UNIT_UNDEFINED2, UNIT_POINT2, UNIT_PERCENT2, UNIT_AUTO2, WRAP_NO_WRAP2, WRAP_WRAP2, WRAP_WRAP_REVERSE2, YogaStatus2, YogaError2, Config2, Node2, exports_yoga, yoga_default };
|
|
12631
12819
|
|
|
12632
|
-
//# debugId=
|
|
12633
|
-
//# sourceMappingURL=chunk-bun-
|
|
12820
|
+
//# debugId=01DEEEF49711D30F64756E2164756E21
|
|
12821
|
+
//# sourceMappingURL=chunk-bun-qkpm62w1.js.map
|