hiiro 0.1.256 → 0.1.257
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 +1 -21
- data/lib/hiiro/queue.rb +13 -8
- 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: 4ded49631615a60e3bec1c1006fc4969c01e1f460fa86382cc42f506edb43b8d
|
|
4
|
+
data.tar.gz: 293d3919860f85761e0cbf3207e149f041c17e8fed837dbdaed6bb8eb9d8cd81
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7da6b266d5adfcd1a0ed4a8df3586b4627ace45e99af2b1db64197cd9ec3bf3fba7e10a6a5af400bff74ab12f24a876a94ca5f0b4f5327f54d5a83126de85295
|
|
7
|
+
data.tar.gz: 2ef3bad3b8f6d3ff2a6909d46dea89e967f47d5fc50bcd2dc5ac509335626c9e0c94e2787602f18e68694b80222a5c96ec9b99df1e4be4a18a0ad41f54a11f0c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,21 +1 @@
|
|
|
1
|
-
|
|
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
|
|
1
|
+
Done! I've added the v0.1.257 entry to the top of CHANGELOG.md with today's date (2026-03-16) and documented the custom name option feature from commit fb4746c.
|
data/lib/hiiro/queue.rb
CHANGED
|
@@ -292,7 +292,7 @@ class Hiiro
|
|
|
292
292
|
text.downcase.gsub(/[^a-z0-9]+/, '-').gsub(/^-|-$/, '')[0, 60]
|
|
293
293
|
end
|
|
294
294
|
|
|
295
|
-
def add_with_frontmatter(content, task_info: nil, ignore: false)
|
|
295
|
+
def add_with_frontmatter(content, task_info: nil, ignore: false, name: nil)
|
|
296
296
|
queue_dirs # ensure dirs exist
|
|
297
297
|
|
|
298
298
|
if (task_info || ignore) && !content.start_with?("---")
|
|
@@ -307,8 +307,12 @@ class Hiiro
|
|
|
307
307
|
end
|
|
308
308
|
end
|
|
309
309
|
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
if name && !name.empty?
|
|
311
|
+
name = slugify(name)
|
|
312
|
+
else
|
|
313
|
+
content_lines = content.lines.drop_while { |l| l.strip.empty? || l.start_with?('---') || l.match?(/^\w+:/) }.first.to_s.strip
|
|
314
|
+
name = slugify(content_lines)
|
|
315
|
+
end
|
|
312
316
|
|
|
313
317
|
if name.empty?
|
|
314
318
|
name = Time.now.strftime("%Y%m%d%H%M%S")
|
|
@@ -452,10 +456,11 @@ class Hiiro
|
|
|
452
456
|
h.add_subcmd(:add) { |*args|
|
|
453
457
|
q.queue_dirs
|
|
454
458
|
opts = Hiiro::Options.parse(args) do
|
|
455
|
-
option(:task,
|
|
456
|
-
|
|
457
|
-
flag(:
|
|
458
|
-
flag(:
|
|
459
|
+
option(:task, short: :t, desc: 'Task name')
|
|
460
|
+
option(:name, short: :n, desc: 'Base filename for the queue task')
|
|
461
|
+
flag(:choose, short: :T, desc: 'Choose task interactively')
|
|
462
|
+
flag(:session, short: :s, desc: 'Use current tmux session')
|
|
463
|
+
flag(:ignore, short: :i, desc: 'Background task — close window when done, no shell')
|
|
459
464
|
end
|
|
460
465
|
|
|
461
466
|
if opts.help?
|
|
@@ -498,7 +503,7 @@ class Hiiro
|
|
|
498
503
|
end
|
|
499
504
|
end
|
|
500
505
|
|
|
501
|
-
result = q.add_with_frontmatter(content, task_info: ti, ignore: opts.ignore)
|
|
506
|
+
result = q.add_with_frontmatter(content, task_info: ti, ignore: opts.ignore, name: opts.name)
|
|
502
507
|
if result
|
|
503
508
|
puts "Created: #{result[:path]}"
|
|
504
509
|
else
|
data/lib/hiiro/version.rb
CHANGED