tui-td 0.2.0 → 0.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8ebaa8989019a8cd573f682a538ca76a21a17daee810f29a1f178f8f35f0008
4
- data.tar.gz: 52fecfc7d59143648f450e71612ac7b7b6839e1b697d03056cb80e0a0dd067ac
3
+ metadata.gz: 2434731fd0c15251a24a4e29168f4b9c7b5332d83eb9d50143225f5e13102404
4
+ data.tar.gz: c2827f1bbeef39368e675960b896f93e0369ee64e167094108c1ca8a0838afde
5
5
  SHA512:
6
- metadata.gz: 9563af163f07bbaae4ea0427120785cc814c444289f7a6bc75b527d9a2e2a5a29785b99f40fa7c31c807c10708693f7f1a5cb5d9c39fea40b82a31e8d8c56964
7
- data.tar.gz: 6912a0399394405e8678e33b13b1c95a7575ce5ef7f7731c23a514d2f55c720724c1f4d17bcb73be654a58461bade34d03adfcfd7e615509d1244c53ac8a8673
6
+ metadata.gz: 50f1ade06d2f2c921a77c4af6a4ff5a770754de165bf4e619c0d8ba21b73365d6172ea55f1863345e874ff32f5c5b997b0cae9cdb25ea844190a10d2f67cb324
7
+ data.tar.gz: e7c60585ec015b1b86d1b9f9a2546297f7eb4605f3af1ecf1048182fbfb09f4916a0c590d4ee4c955174b555f736b2b11fd2255df07bca3d4ae0fa53c44475f5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.2.1
4
+
5
+ - `Driver#refresh` — explicit state re-parse for MCP server clients
6
+
3
7
  ## 0.2.0
4
8
 
5
9
  - Live debug modes for `tui-td test`: `-v` (verbose), `-l` (live screen-refresh), `-s` (step-by-step pause)
data/README.md CHANGED
@@ -142,6 +142,16 @@ Global options:
142
142
  `tui-td --help` serves as the full CLI reference. `tui-td help test` shows all JSON test
143
143
  step types and `tui-td help rspec` shows all RSpec matchers — no need to consult the docs.
144
144
 
145
+ ## Demo
146
+
147
+ Step-by-step live view of a vim test — type "Hello World", copy the line, replace "World" with "Sun":
148
+
149
+ ![vim test demo](examples/vim_demo.gif)
150
+
151
+ ```bash
152
+ tui-td -vls test examples/vim_hello_world.json
153
+ ```
154
+
145
155
  ## Ruby API
146
156
 
147
157
  ### Driver — Start, send, capture
data/lib/tui_td/driver.rb CHANGED
@@ -123,6 +123,13 @@ module TUITD
123
123
  @output_mutex.synchronize { @output_buffer.dup }
124
124
  end
125
125
 
126
+ # Refresh the terminal state by re-parsing the output buffer.
127
+ # Call this if the terminal content has changed and you need an up-to-date state.
128
+ def refresh
129
+ refresh_state!
130
+ @state
131
+ end
132
+
126
133
  # Get structured terminal state as a Hash
127
134
  def state_data
128
135
  refresh_state! if @state.nil?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TUITD
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tui-td
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Haluk Durmus