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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 304eccc4cc257b138e363a50587efc7abe25703b5eb71e9f72dec0d1bfae134d
4
- data.tar.gz: 1a6d6244986d3a081daa1422f8f58fb4c2164e05f07549097126bb92e9f69d96
3
+ metadata.gz: 4ded49631615a60e3bec1c1006fc4969c01e1f460fa86382cc42f506edb43b8d
4
+ data.tar.gz: 293d3919860f85761e0cbf3207e149f041c17e8fed837dbdaed6bb8eb9d8cd81
5
5
  SHA512:
6
- metadata.gz: a0ef7ca1495a1ceb56dd4b5e9314073d53ec1b0144d88dcc19e80e217d2b42cca19b2f1559c817d9e92be59580b43743233a7cee7c4d0d808872a422f392e6b0
7
- data.tar.gz: 29aec1162e45d459ae53cc9f8f2304c9aa00f906d95674a77446142fc131ebf65a704dca4fb4f24117460cf677bda67536dd9fa1ad4efafde1889bcf666a4ae7
6
+ metadata.gz: 7da6b266d5adfcd1a0ed4a8df3586b4627ace45e99af2b1db64197cd9ec3bf3fba7e10a6a5af400bff74ab12f24a876a94ca5f0b4f5327f54d5a83126de85295
7
+ data.tar.gz: 2ef3bad3b8f6d3ff2a6909d46dea89e967f47d5fc50bcd2dc5ac509335626c9e0c94e2787602f18e68694b80222a5c96ec9b99df1e4be4a18a0ad41f54a11f0c
data/CHANGELOG.md CHANGED
@@ -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
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
- content_lines =content.lines.drop_while { |l| l.strip.empty? || l.start_with?('---') || l.match?(/^\w+:/) }.first.to_s.strip
311
- name = slugify(content_lines)
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, short: :t, desc: 'Task name')
456
- flag(:choose, short: :T, desc: 'Choose task interactively')
457
- flag(:session, short: :s, desc: 'Use current tmux session')
458
- flag(:ignore, short: :i, desc: 'Background task close window when done, no shell')
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
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.256"
2
+ VERSION = "0.1.257"
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.256
4
+ version: 0.1.257
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota