hiiro 0.1.270 → 0.1.271
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 -1
- data/bin/h-claude +2 -1
- data/bin/h-config +4 -0
- data/bin/h-pr +7 -7
- data/lib/hiiro/version.rb +1 -1
- data/script/diff +56 -0
- data/script/diffhome +6 -0
- data/script/diffrepo +7 -0
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 162cba6a85d05b26c11a91355bc05b6b50a01fe41b7542fb256d006f2053f754
|
|
4
|
+
data.tar.gz: d13d0379125305f13eee0cdd7c70c8d07e79a1a247906776f9baa86ccaa5a160
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa61fd251c70de6232e5f86609ad210ddbeb03aacd4921070dbd351cfeb24cbbc5e37f000a0521e782e0d6d0ed8cf39a04a4a461dfe42afa0e623b3fed4f3b72
|
|
7
|
+
data.tar.gz: 8790489e4b3e3ed4b897461692da00d271dd9595bda277406a0957c2df9a6b498ffbc01377bb170dbc0fec1d99eb9c4107eca44ce23c3b7d3f6bed833a5b9dc3
|
data/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Done. CHANGELOG.md has been updated with v0.1.271 at the top with today's date (2026-03-22), with changes grouped into Added, Changed, and Fixed sections based on the recent commits.
|
data/bin/h-claude
CHANGED
|
@@ -107,7 +107,8 @@ add_subcmd(:env) { |*args|
|
|
|
107
107
|
|
|
108
108
|
add_subcmd(:skills) {
|
|
109
109
|
dir = File.expand_path('~/.claude/skills')
|
|
110
|
-
|
|
110
|
+
plugin_dir = File.expand_path('~/.claude/plugins/local/skills')
|
|
111
|
+
dirs = Dir.glob("{#{dir},#{plugin_dir}}/*/").sort
|
|
111
112
|
dirs.each { |d| puts File.basename(d) }
|
|
112
113
|
}
|
|
113
114
|
|
data/bin/h-config
CHANGED
|
@@ -20,6 +20,10 @@ Hiiro.run(*ARGV) {
|
|
|
20
20
|
open_config.(dir: '~', file: '.gitconfig')
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
add_subcmd(:ignore) {
|
|
24
|
+
open_config.(dir: '~/.config/git', file: 'ignore')
|
|
25
|
+
}
|
|
26
|
+
|
|
23
27
|
add_subcmd(:local) {
|
|
24
28
|
root = `git rev-parse --show-toplevel`.chomp
|
|
25
29
|
open_config.(dir: root, file: '.git/config')
|
data/bin/h-pr
CHANGED
|
@@ -593,7 +593,7 @@ Hiiro.run(*ARGV, plugins: [Pins]) do
|
|
|
593
593
|
return nil
|
|
594
594
|
end
|
|
595
595
|
lines = pinned.each_with_index.each_with_object({}) do |(pr, idx), h|
|
|
596
|
-
h[pinned_manager.display_pinned(pr, idx)] = pr.number.to_s
|
|
596
|
+
h[pinned_manager.display_pinned(pr, idx, oneline: true)] = pr.number.to_s
|
|
597
597
|
end
|
|
598
598
|
return fuzzyfind_from_map(lines)
|
|
599
599
|
end
|
|
@@ -831,9 +831,9 @@ Hiiro.run(*ARGV, plugins: [Pins]) do
|
|
|
831
831
|
|
|
832
832
|
add_subcmd(:ls) do |*ls_args|
|
|
833
833
|
opts = Hiiro::Options.parse(ls_args) {
|
|
834
|
-
flag(:update,
|
|
835
|
-
flag(:
|
|
836
|
-
flag(:checks,
|
|
834
|
+
flag(:update, short: 'u', desc: 'update status before listing')
|
|
835
|
+
flag(:verbose, short: 'v', desc: 'multi-line output per PR')
|
|
836
|
+
flag(:checks, short: 'C', desc: 'show individual check run details')
|
|
837
837
|
instance_eval(&FILTER_OPTS)
|
|
838
838
|
}
|
|
839
839
|
|
|
@@ -869,7 +869,7 @@ Hiiro.run(*ARGV, plugins: [Pins]) do
|
|
|
869
869
|
crs_w = results.map { |pr| [pr.reviews&.dig('changes_requested').to_i.to_s.length, 1].max }.max
|
|
870
870
|
widths = { slot: slot_w, succ: succ_w, total: total_w, as: as_w, crs: crs_w }
|
|
871
871
|
results.each_with_index do |pr, idx|
|
|
872
|
-
puts pinned_manager.display_pinned(pr, idx, widths: widths, oneline: opts.
|
|
872
|
+
puts pinned_manager.display_pinned(pr, idx, widths: widths, oneline: !opts.verbose)
|
|
873
873
|
pinned_manager.display_check_runs(pr) if opts.checks
|
|
874
874
|
end
|
|
875
875
|
last_checked = pinned.filter_map(&:last_checked).max
|
|
@@ -1182,7 +1182,7 @@ Hiiro.run(*ARGV, plugins: [Pins]) do
|
|
|
1182
1182
|
|
|
1183
1183
|
if ref.nil?
|
|
1184
1184
|
lines = pinned.each_with_index.each_with_object({}) do |(pr, idx), h|
|
|
1185
|
-
h[pinned_manager.display_pinned(pr, idx)] = pr.number.to_s
|
|
1185
|
+
h[pinned_manager.display_pinned(pr, idx, oneline: true)] = pr.number.to_s
|
|
1186
1186
|
end
|
|
1187
1187
|
|
|
1188
1188
|
pr_number = fuzzyfind_from_map(lines)
|
|
@@ -1262,7 +1262,7 @@ Hiiro.run(*ARGV, plugins: [Pins]) do
|
|
|
1262
1262
|
next
|
|
1263
1263
|
end
|
|
1264
1264
|
lines = candidates.each_with_index.each_with_object({}) do |(pr, idx), h|
|
|
1265
|
-
h[pinned_manager.display_pinned(pr, idx)] = pr
|
|
1265
|
+
h[pinned_manager.display_pinned(pr, idx, oneline: true)] = pr
|
|
1266
1266
|
end
|
|
1267
1267
|
selected = fuzzyfind_from_map(lines)
|
|
1268
1268
|
next unless selected
|
data/lib/hiiro/version.rb
CHANGED
data/script/diff
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require 'json'
|
|
4
|
+
require 'hiiro/options'
|
|
5
|
+
|
|
6
|
+
opts = Hiiro::Options.parse(ARGV) do
|
|
7
|
+
flag(:repo, short: :r)
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
if opts.help?
|
|
11
|
+
puts opts.help_text
|
|
12
|
+
exit 1
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
dest_dir =
|
|
16
|
+
if opts.repo
|
|
17
|
+
`git rev-parse --show-toplevel`.strip
|
|
18
|
+
else
|
|
19
|
+
Dir.home
|
|
20
|
+
end
|
|
21
|
+
context = {
|
|
22
|
+
script_path: File.dirname(__FILE__),
|
|
23
|
+
script_dir: __dir__,
|
|
24
|
+
files: opts.args.flat_map { |arg|
|
|
25
|
+
Dir.glob("{bin,lib,plugins}/**/*#{arg}*").tap do |mfiles|
|
|
26
|
+
mfiles.each do |mfile|
|
|
27
|
+
if mfile.match?(/h-/)
|
|
28
|
+
puts "ARG MATCHES bin-style name => #{mfile}"
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
}.each_with_object({}) { |file, h|
|
|
33
|
+
case file
|
|
34
|
+
when /^bin/ then h[file] = File.join(Dir.home, file)
|
|
35
|
+
when /^lib/
|
|
36
|
+
ilib = `gem which hiiro`.strip
|
|
37
|
+
basename = File.basename(ilib)
|
|
38
|
+
dirname = File.dirname(ilib)
|
|
39
|
+
6.times do
|
|
40
|
+
break if basename == 'lib'
|
|
41
|
+
basename = File.basename(dirname)
|
|
42
|
+
dirname = File.dirname(dirname)
|
|
43
|
+
end
|
|
44
|
+
h[file] = File.join(dirname, file)
|
|
45
|
+
when /^plug/ then h[file] = File.join(Dir.home, '.config/hiiro', file)
|
|
46
|
+
end
|
|
47
|
+
},
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
files = opts.repo ? context[:files].invert : context[:files]
|
|
51
|
+
files = files.to_a.flatten
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
system('safe_nvim', '-O2', *files)
|
|
55
|
+
puts JSON.pretty_generate(context)
|
|
56
|
+
|
data/script/diffhome
ADDED
data/script/diffrepo
ADDED
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.
|
|
4
|
+
version: 0.1.271
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joshua Toyota
|
|
@@ -294,6 +294,9 @@ files:
|
|
|
294
294
|
- plugins/project.rb
|
|
295
295
|
- record-demo.sh
|
|
296
296
|
- script/compare
|
|
297
|
+
- script/diff
|
|
298
|
+
- script/diffhome
|
|
299
|
+
- script/diffrepo
|
|
297
300
|
- script/install
|
|
298
301
|
- script/publish
|
|
299
302
|
- script/sync
|