hiiro 0.1.39 → 0.1.41

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: 51326555f6a9e16284115c7ca6cb22b7ba3162c0dd01057ee9178e17a00838f9
4
- data.tar.gz: 5936e3b1793665de2fe2ccfdcd260252e448c112f8819ed092c4954eed0cef15
3
+ metadata.gz: 35e9881c522ce2cbf303064ea29ba0f3bb667d1371ffde913669ed04bcc19db0
4
+ data.tar.gz: 4abad9761a4a9770035b3b38ea0cbe5309d346b77a8b8c8d984aa428e89f238e
5
5
  SHA512:
6
- metadata.gz: 700546bf712c93fd01b23d5e55676433fe239a54e3c6b478a4119e07a2329a40d6c17db9611a02d422a93f06395f87f89ced4b5039ac0ce9686bdf2fa4a3082a
7
- data.tar.gz: 06b08def682bfeb53969051f4fce54839b9271c5d19d14d92f9c0fbc3420a6beacbbe36b098a20bdcb7d7ed5ad453a7d535dc523042bc56c8400f407c9890870
6
+ metadata.gz: d753ea14cec821cb45b74977888a640abea42331764c598a4f6dc387efaae3f44892ed3c3bef8ec5bed59362d96ab7767e2337d8537859a80bae8c27cbde24e0
7
+ data.tar.gz: 77aa3de52e3bcaeb716a1fa79072e2f394102275a6c0cc9b2f9ef1cdd5abf4ae6a44811825d30994ff2912dcb6310feb4d7886e59f97af77b3d0bf943489ac3c
data/lib/hiiro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.39"
2
+ VERSION = "0.1.41"
3
3
  end
data/lib/hiiro.rb CHANGED
@@ -145,6 +145,15 @@ class Hiiro
145
145
  end
146
146
 
147
147
  def load_plugin(plugin_const)
148
+ if plugin_const.is_a?(String) || plugin_const.is_a?(Symbol)
149
+ begin
150
+ plugin_const = Kernel.const_get(plugin_const.to_sym)
151
+ rescue => e
152
+ puts "unable to load plugin: #{plugin_const}"
153
+ return
154
+ end
155
+ end
156
+
148
157
  return if @loaded_plugins.include?(plugin_const)
149
158
 
150
159
  plugin_const.load(self)
data/plugins/tasks.rb CHANGED
@@ -286,6 +286,26 @@ class TaskManager
286
286
  return YAML.safe_load_file(tasks_file) || { 'tasks' => [] }
287
287
  end
288
288
 
289
+ # Load from individual task_*.yml files
290
+ task_files = Dir.glob(File.join(File.dirname(tasks_file), 'task_*.yml'))
291
+ if task_files.any?
292
+ tasks = task_files.map do |file|
293
+ short_name = File.basename(file, '.yml').sub(/^task_/, '')
294
+ data = YAML.safe_load_file(file) || {}
295
+ # Support parent key for subtasks, or infer from tree path
296
+ parent = data['parent']
297
+ if parent.nil? && data['tree']&.include?('/')
298
+ parent = data['tree'].split('/').first
299
+ end
300
+ name = parent ? "#{parent}/#{short_name}" : short_name
301
+ h = { 'name' => name }
302
+ h['tree'] = data['tree'] if data['tree']
303
+ h['session'] = data['session'] if data['session']
304
+ h
305
+ end
306
+ return { 'tasks' => tasks }
307
+ end
308
+
289
309
  assignments_file = File.join(File.dirname(tasks_file), 'assignments.yml')
290
310
  if File.exist?(assignments_file)
291
311
  raw = YAML.safe_load_file(assignments_file) || {}
@@ -652,7 +672,9 @@ class TaskManager
652
672
  # --- Interactive selection with sk ---
653
673
 
654
674
  def select_task_interactive(prompt = nil)
655
- names = tasks.map { |t| scope == :subtask ? t.short_name : t.name }
675
+ # Include all tasks (top-level and subtasks) in selection
676
+ all = environment.all_tasks
677
+ names = all.map(&:name)
656
678
  return nil if names.empty?
657
679
 
658
680
  sk_select(names)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiiro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.39
4
+ version: 0.1.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-02-02 00:00:00.000000000 Z
11
+ date: 2026-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -78,7 +78,6 @@ files:
78
78
  - lib/hiiro.rb
79
79
  - lib/hiiro/history.rb
80
80
  - lib/hiiro/version.rb
81
- - links.backup.yml
82
81
  - notes
83
82
  - plugins/notify.rb
84
83
  - plugins/old_task.rb
data/links.backup.yml DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- - url: http://auth.unixsuperhero.com:9969
3
- description: stash
4
- shorthand: fap
5
- created_at: '2026-01-27T00:58:36-05:00'
6
- - url: http://auth.unixsuperhero.com:8012
7
- description: utorrent
8
- shorthand: utor
9
- created_at: '2026-01-27T22:10:55-05:00'
10
- - url: http://auth.unixsuperhero.com:3005
11
- description: sandbox nas
12
- shorthand: sandbox
13
- created_at: '2026-01-27T22:12:16-05:00'