hiiro 0.1.192 → 0.1.193

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: 4e9c1c614a89e2944fca6de6cd01965528c0ae40e9321c6bc1bb787a35d4d7dd
4
- data.tar.gz: d1e0979b29abf886bae0da32950fa606defa9deac919f8d6892df83396593402
3
+ metadata.gz: 86964aa974dac110a631a4e226a8bc07eafd0b6e460c520637bf0a464a28114f
4
+ data.tar.gz: c0afb0b932a43d7f93f17832a453d69a799d6992ad91892cca824298d23b2c28
5
5
  SHA512:
6
- metadata.gz: 198254182cd9e1439126ee16ad2faaba987b15415ad7c727a72a54f6238621ecdbb313e368f54cc044f06078e3baad191f92dd2ef5aaa19e003fafbe63699982
7
- data.tar.gz: a13b441f071edc502cd5c4156aaaa62f3620f2b4bc660dfa2e3f28662e59180800058552d89fb9d84c1fd3271f6b1d9c2b5f8b3dd4ebf4ae570b97b06ebbfc6f
6
+ metadata.gz: d9fefad6d1320023865f6beeaffc0076ce1284caf8a39393abdd8e5d3df8e4ff0682961a5cac293070d50f22767266d368926c43ea8cade165bfaeffdaae3da3
7
+ data.tar.gz: dc09cf57deb1c146b9a82fe78ab2a31dad8a272050a2ebfd79dd0ccbb6ff828ab7c1f265239b5945331962e5a15e4a05280d025a2685fdf14f8fb0c5bb600519
data/lib/hiiro/queue.rb CHANGED
@@ -116,7 +116,7 @@ class Hiiro
116
116
 
117
117
  # Write a clean prompt file (no frontmatter) for claude
118
118
  raw = File.read(running_md).strip
119
- prompt_body = prompt_obj ? prompt_obj.doc.content.strip : strip_frontmatter(raw)
119
+ prompt_body = prompt_obj ? strip_frontmatter(prompt_obj.doc.content.strip) : strip_frontmatter(raw)
120
120
  prompt_file = File.join(dirs[:running], "#{name}.prompt")
121
121
  File.write(prompt_file, prompt_body + "\n")
122
122
 
@@ -419,10 +419,7 @@ class Hiiro
419
419
 
420
420
  h.add_subcmd(:session) {
421
421
  work_dir = File.expand_path('~/work')
422
- unless system('tmux', 'has-session', '-t', TMUX_SESSION, out: File::NULL, err: File::NULL)
423
- system('tmux', 'new-session', '-d', '-s', TMUX_SESSION, '-c', work_dir)
424
- end
425
- system('tmux', 'switch-client', '-t', TMUX_SESSION)
422
+ Tmux.open_session(TMUX_SESSION, start_directory: work_dir)
426
423
  }
427
424
 
428
425
  h.add_subcmd(:add) { |*args|
@@ -454,7 +451,9 @@ class Hiiro
454
451
 
455
452
  tmpfile.close
456
453
  editor = ENV['EDITOR'] || 'vim'
457
- system(editor, tmpfile.path)
454
+ editor_args = [editor]
455
+ editor_args << '+$' if editor.include?('vim')
456
+ system(*editor_args, tmpfile.path)
458
457
  content = File.read(tmpfile.path).strip
459
458
  tmpfile.unlink
460
459
  if content.empty?
@@ -463,7 +462,7 @@ class Hiiro
463
462
  end
464
463
  end
465
464
 
466
- result = q.add_with_frontmatter(content, task_info:)
465
+ result = q.add_with_frontmatter(content, task_info: ti)
467
466
  if result
468
467
  puts "Created: #{result[:path]}"
469
468
  else
@@ -509,7 +508,9 @@ class Hiiro
509
508
  end
510
509
  end
511
510
 
512
- system(editor, path)
511
+ editor_args = [editor]
512
+ editor_args << '+$' if editor.include?('vim')
513
+ system(*editor_args, path)
513
514
  }
514
515
 
515
516
  h.add_subcmd(:ready) { |name = nil|
data/lib/hiiro/tmux.rb CHANGED
@@ -125,12 +125,12 @@ class Hiiro
125
125
 
126
126
  def attach_session(name)
127
127
  resolved = find_session(name)&.name || name.to_s.tr('.', '_')
128
- run_system('attach-session', '-t', resolved)
128
+ run_system('attach-session', '-t', "=#{resolved}")
129
129
  end
130
130
 
131
131
  def switch_client(name)
132
132
  resolved = find_session(name)&.name || name.to_s.tr('.', '_')
133
- run_system('switch-client', '-t', resolved)
133
+ run_system('switch-client', '-t', "=#{resolved}")
134
134
  end
135
135
 
136
136
  def detach_client(session: nil)
data/lib/hiiro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.192"
2
+ VERSION = "0.1.193"
3
3
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiiro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.192
4
+ version: 0.1.193
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-03-10 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: pry
@@ -185,6 +186,7 @@ metadata:
185
186
  homepage_uri: https://github.com/unixsuperhero/hiiro
186
187
  source_code_uri: https://github.com/unixsuperhero/hiiro
187
188
  changelog_uri: https://github.com/unixsuperhero/hiiro/blob/main/CHANGELOG.md
189
+ post_install_message:
188
190
  rdoc_options: []
189
191
  require_paths:
190
192
  - lib
@@ -199,7 +201,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
201
  - !ruby/object:Gem::Version
200
202
  version: '0'
201
203
  requirements: []
202
- rubygems_version: 4.0.3
204
+ rubygems_version: 3.3.7
205
+ signing_key:
203
206
  specification_version: 4
204
207
  summary: A lightweight CLI framework for Ruby
205
208
  test_files: []