hati-command 0.1.1 → 0.1.2

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: aec2f64bd4d95b364d32d5ac1f09ca03dc886382e212e425440eaca2e464b2a1
4
- data.tar.gz: 0caf27c5cc1639dd7eaa886745ae94493ff5b4766bf1d350810bd02df87d363d
3
+ metadata.gz: 54f93d1d8662184eadf899bbcf53d926fdf98cbd93cf4c6c960410490b0981b1
4
+ data.tar.gz: 79c3607c98de9bde6cfd53e254e6926c042c7844649df26fa9055df54e40521f
5
5
  SHA512:
6
- metadata.gz: 1e9a49de546aeca1535b08a86b46aa728f56908cbc048001db656e1af022097cfb1bc3145e51f6dc1143665931d2907e1724673b15368b8e2f50bdc08a4215da
7
- data.tar.gz: 04332a594ac3e214c0ea0b22efb2d5749da9ddb91fb628efd93e4c4241d2d10bd171f1cd0d74db379c2dd93cd5368278b9339324abe47ef1454598439d1826d2
6
+ metadata.gz: 5185941b03f47f4cf5f80a39347dfe4817b3a893d6bebbd3177bd9dd2b442aaa567cfe9b173306cd2311caf9297958fd0cd09fc2405f1ecbda164426d2689984
7
+ data.tar.gz: 85d2d2901903afabf7eaf3607575b87582c4c17b558ffdea8504a3a729ec3a440fd376cca701ae1d7504ade30e69050168af5867317831d3ff876f1b5907d621
data/README.md CHANGED
@@ -1,18 +1,21 @@
1
1
  # ![Ruby](icon.svg) hati-command
2
2
 
3
- The `hati-command` gem is designed to simplify command execution, emphasizing effective handling of success and failure outcomes. It can be employed as a service object or interactor, fostering clean and organized code for managing complex operations.
3
+ The `hati-command` gem provides a lightweight framework for structuring logic as discrete, callable actions ideal for agentic AI systems that require modular execution and explicit outcome handling.
4
4
 
5
- - **hati-command** provides a simple and flexible way to handle command execution and result handling.
5
+ - **hati-command** lets you define commands as service objects or interactors, ready for orchestration by AI agents.
6
+ - **hati-command** returns standardized `Success` and `Failure` results, making it easy to reason about next steps in autonomous workflows.
6
7
 
7
- - **hati-command** offers a `Success` and `Failure` result classes to handle command execution results.
8
+ ## Features
8
9
 
9
- - **hati-command** It provides a `Result` object to access the result value, success, and failure, along with options to attach custom messages and metadata for better context.
10
+ - **Command Execution**: Encapsulate atomic operations with clear input/output boundaries for agent use.
11
+ - **Structured Results**: Use `Result` objects with status, value, and metadata for deterministic planning.
10
12
 
11
- ## Features
13
+ ## Roadmap in Motion
12
14
 
13
- - **Command Execution**: Execute commands seamlessly, allowing for optional parameters.
14
- - **Success Handling**: Provides success responses with transformed messages and additional metadata.
15
- - **Failure Handling**: Handles failures gracefully, returning informative messages and context.
15
+ - AI Client Integration
16
+ - Cursor-style rule generation for defining agent behaviors from commands
17
+ - Planner integration (e.g. YAML/DSL for agent workflows)
18
+ - Command auto-discovery and metadata exposure for agent indexing and selection
16
19
 
17
20
  ## Table of Contents
18
21
 
data/hati-command.gemspec CHANGED
@@ -12,8 +12,8 @@ Gem::Specification.new do |spec|
12
12
  spec.email = %w[yurigi.pro@gmail.com giy.mariya@gmail.com]
13
13
  spec.license = 'MIT'
14
14
 
15
- spec.summary = 'A Ruby gem for creating Service objects, Command pattern, and Interactors with result handling.'
16
- spec.description = 'hati-command is a Ruby gem for implementing Service objects, Command pattern and Interactors with result handling.'
15
+ spec.summary = 'A Ruby gem for creating modular, agent-ready service objects and command-pattern interactors, following Railway-oriented design principles with structured, explicit result handling.'
16
+ spec.description = 'hati-command offers a clear, minimal abstraction for implementing composable service objects and command-pattern interactors. By enforcing explicit Success and Failure result pathways, it aligns well with autonomous system pipelines, decision-chain architectures, and AI-driven orchestration flows.'
17
17
  spec.homepage = "https://github.com/hackico-ai/#{spec.name}"
18
18
 
19
19
  spec.required_ruby_version = '>= 3.0.0'
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Compatibility shim for Bundler auto-require
4
+ require_relative '../hati_command'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HatiCommand
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hati-command
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mariya Giy
@@ -10,8 +10,10 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: hati-command is a Ruby gem for implementing Service objects, Command
14
- pattern and Interactors with result handling.
13
+ description: hati-command offers a clear, minimal abstraction for implementing composable
14
+ service objects and command-pattern interactors. By enforcing explicit Success and
15
+ Failure result pathways, it aligns well with autonomous system pipelines, decision-chain
16
+ architectures, and AI-driven orchestration flows.
15
17
  email:
16
18
  - yurigi.pro@gmail.com
17
19
  - giy.mariya@gmail.com
@@ -22,6 +24,7 @@ files:
22
24
  - LICENSE
23
25
  - README.md
24
26
  - hati-command.gemspec
27
+ - lib/hati/command.rb
25
28
  - lib/hati_command.rb
26
29
  - lib/hati_command/befehl.rb
27
30
  - lib/hati_command/callee.rb
@@ -61,6 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
64
  requirements: []
62
65
  rubygems_version: 3.6.9
63
66
  specification_version: 4
64
- summary: A Ruby gem for creating Service objects, Command pattern, and Interactors
65
- with result handling.
67
+ summary: A Ruby gem for creating modular, agent-ready service objects and command-pattern
68
+ interactors, following Railway-oriented design principles with structured, explicit
69
+ result handling.
66
70
  test_files: []