hiiro 0.1.255 → 0.1.256

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: bb472db403d753903ba92a570446c9c75c94e444b2d0f9592dbf68bf6a99a73e
4
- data.tar.gz: 81dc1ddc9c8cb349cef84a1bf50553c110e7f1d8f87e2026370eb97fd7dc23f3
3
+ metadata.gz: 304eccc4cc257b138e363a50587efc7abe25703b5eb71e9f72dec0d1bfae134d
4
+ data.tar.gz: 1a6d6244986d3a081daa1422f8f58fb4c2164e05f07549097126bb92e9f69d96
5
5
  SHA512:
6
- metadata.gz: fc81609863e8624c8c194c5afb6b65212d4bf67ea0a8cb271c857188615994aff41f798d04a88fb5bfd041f3d8b27bd9d872e154dbde3b91718484b2f3182578
7
- data.tar.gz: 9b1ee0a460f770263d10275f53066bbd958e9d7ddcb761ec85814c83bfec86d761a3efca86e6d0c4e6a9cab244775241dd2e9627d5555b828d3f8a45aeea93a6
6
+ metadata.gz: a0ef7ca1495a1ceb56dd4b5e9314073d53ec1b0144d88dcc19e80e217d2b42cca19b2f1559c817d9e92be59580b43743233a7cee7c4d0d808872a422f392e6b0
7
+ data.tar.gz: 29aec1162e45d459ae53cc9f8f2304c9aa00f906d95674a77446142fc131ebf65a704dca4fb4f24117460cf677bda67536dd9fa1ad4efafde1889bcf666a4ae7
data/CHANGELOG.md CHANGED
@@ -1 +1,21 @@
1
- Done. CHANGELOG.md has been created with v0.1.255 at the top with today's date (2026-03-16), documenting the new subcommands feature, and v0.1.254 properly listed below.
1
+ # Changelog
2
+
3
+ ## [0.1.256] - 2026-03-16
4
+
5
+ ### Added
6
+ - Status filtering to queue list command
7
+
8
+ ## [0.1.255] - 2026-03-16
9
+
10
+ ### Added
11
+ - Subcommands to list agents, commands, and skills
12
+
13
+ ## [0.1.254] - 2026-03-13
14
+
15
+ ### Changed
16
+ - Refactored h-pr to use Pr domain object with method access
17
+ - Promoted Pr to full domain object with all pinned attributes
18
+
19
+ ### Fixed
20
+ - Removed code duplication in multi-pr pr commands
21
+ - Updated all multi-pr commands to use YAML
data/lib/hiiro/queue.rb CHANGED
@@ -50,9 +50,11 @@ class Hiiro
50
50
  mtime.year == now.year ? mtime.strftime("%m-%d %H:%M") : mtime.strftime("%Y-%m-%d %H:%M")
51
51
  end
52
52
 
53
- def list_lines(all: false)
53
+ def list_lines(all: false, statuses: nil)
54
+ filter = statuses && Array(statuses).map(&:to_s).reject(&:empty?)
55
+ active_statuses = filter&.any? ? STATUSES.select { |s| filter.include?(s) } : STATUSES
54
56
  lines = []
55
- STATUSES.each do |status|
57
+ active_statuses.each do |status|
56
58
  tasks = tasks_in_sorted(status.to_sym)
57
59
  next if tasks.empty?
58
60
 
@@ -368,9 +370,10 @@ class Hiiro
368
370
 
369
371
  h.add_subcmd(:ls, :list) { |*args|
370
372
  opts = Hiiro::Options.parse(args) do
371
- flag(:all, short: :a, desc: 'Show all tasks without limit; use pager if output exceeds terminal height')
373
+ flag(:all, short: :a, desc: 'Show all tasks without limit; use pager if output exceeds terminal height')
374
+ option(:status, short: :s, desc: "Filter by status (#{Queue::STATUSES.join(', ')}); repeat for multiple", multi: true)
372
375
  end
373
- lines = q.list_lines(all: opts.all)
376
+ lines = q.list_lines(all: opts.all, statuses: opts.status)
374
377
  if lines.empty?
375
378
  puts "No tasks"
376
379
  next
@@ -473,12 +476,13 @@ class Hiiro
473
476
  elsif args.any?
474
477
  content = args.join(' ')
475
478
  else
476
- # Pre-fill with frontmatter template if task_info is available
477
- fm_content = if ti
479
+ # Pre-fill with frontmatter template if task_info or flags require it
480
+ fm_content = if ti || opts.ignore
478
481
  fm_lines = ["---"]
479
- fm_lines << "task_name: #{ti[:task_name]}" if ti[:task_name]
480
- fm_lines << "tree_name: #{ti[:tree_name]}" if ti[:tree_name]
481
- fm_lines << "session_name: #{ti[:session_name]}" if ti[:session_name]
482
+ fm_lines << "task_name: #{ti[:task_name]}" if ti&.dig(:task_name)
483
+ fm_lines << "tree_name: #{ti[:tree_name]}" if ti&.dig(:tree_name)
484
+ fm_lines << "session_name: #{ti[:session_name]}" if ti&.dig(:session_name)
485
+ fm_lines << "ignore: true" if opts.ignore
482
486
  fm_lines << "---"
483
487
  fm_lines << ""
484
488
  fm_lines.join("\n")
data/lib/hiiro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.255"
2
+ VERSION = "0.1.256"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiiro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.255
4
+ version: 0.1.256
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota