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 +4 -4
- data/CHANGELOG.md +21 -1
- data/lib/hiiro/queue.rb +13 -9
- data/lib/hiiro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 304eccc4cc257b138e363a50587efc7abe25703b5eb71e9f72dec0d1bfae134d
|
|
4
|
+
data.tar.gz: 1a6d6244986d3a081daa1422f8f58fb4c2164e05f07549097126bb92e9f69d96
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0ef7ca1495a1ceb56dd4b5e9314073d53ec1b0144d88dcc19e80e217d2b42cca19b2f1559c817d9e92be59580b43743233a7cee7c4d0d808872a422f392e6b0
|
|
7
|
+
data.tar.gz: 29aec1162e45d459ae53cc9f8f2304c9aa00f906d95674a77446142fc131ebf65a704dca4fb4f24117460cf677bda67536dd9fa1ad4efafde1889bcf666a4ae7
|
data/CHANGELOG.md
CHANGED
|
@@ -1 +1,21 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
|
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
|
|
480
|
-
fm_lines << "tree_name: #{ti[:tree_name]}" if ti
|
|
481
|
-
fm_lines << "session_name: #{ti[:session_name]}" if ti
|
|
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