aia 0.9.14 → 0.9.15
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/.version +1 -1
- data/CHANGELOG.md +9 -1
- data/README.md +4 -0
- data/docs/advanced-prompting.md +29 -0
- data/docs/directives-reference.md +18 -0
- data/lib/aia/directives/web_and_file.rb +12 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acca553714c1fe19ed2a152a5ca500691d0435817369e60a1d773b9996d02802
|
4
|
+
data.tar.gz: f97fd1bc43cf1d8d1a8d2364313ad59a89462c31b71648c28828faa3ddc36ab9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b54ffdbcc2268e9a509f4c144182249c2d02cc520b0f1f37d7ebe8a4e79400cd2e23a96f77660019c5fb205a0bdf5df8eff14c3809f24c58886aee1fbde306f
|
7
|
+
data.tar.gz: 57a0a68ddedd0bdd69a5f25802cb9a09f8c300829d2e48c2f6025147eae3b29c861d47004614dc33108cf3a403605ee98ad9c0c239aae47e05afb8def40fb738
|
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.15
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
# Changelog
|
2
2
|
## [Unreleased]
|
3
|
-
|
4
3
|
## Released
|
4
|
+
### [0.9.15] 2025-09-21
|
5
|
+
|
6
|
+
#### New Features
|
7
|
+
- **NEW FEATURE**: Added `//paste` directive to insert clipboard contents into prompts
|
8
|
+
- **NEW FEATURE**: Added `//clipboard` alias for the paste directive
|
9
|
+
|
10
|
+
#### Technical Changes
|
11
|
+
- Enhanced DirectiveProcessor with clipboard integration using the clipboard gem
|
12
|
+
- Added comprehensive test coverage for paste directive functionality
|
5
13
|
|
6
14
|
### [0.9.14] 2025-09-19
|
7
15
|
|
data/README.md
CHANGED
@@ -338,6 +338,7 @@ Directives are special commands in prompt files that begin with `//` and provide
|
|
338
338
|
| `//checkpoint` | Create a named checkpoint of current context | `//checkpoint save_point` |
|
339
339
|
| `//restore` | Restore context to a previous checkpoint | `//restore save_point` |
|
340
340
|
| `//include` | Insert file contents | `//include path/to/file.txt` |
|
341
|
+
| `//paste` | Insert clipboard contents | `//paste` |
|
341
342
|
| `//shell` | Execute shell commands | `//shell ls -la` |
|
342
343
|
| `//robot` | Show the pet robot ASCII art w/versions | `//robot` |
|
343
344
|
| `//ruby` | Execute Ruby code | `//ruby puts "Hello World"` |
|
@@ -372,6 +373,9 @@ Your prompt content here...
|
|
372
373
|
# Include file contents
|
373
374
|
//include ~/project/README.md
|
374
375
|
|
376
|
+
# Paste clipboard contents
|
377
|
+
//paste
|
378
|
+
|
375
379
|
# Execute shell commands
|
376
380
|
//shell git log --oneline -10
|
377
381
|
|
data/docs/advanced-prompting.md
CHANGED
@@ -160,6 +160,30 @@ if File.exist?(history_file)
|
|
160
160
|
Now analyze <%= task %> using all available context layers.
|
161
161
|
```
|
162
162
|
|
163
|
+
### Clipboard Integration
|
164
|
+
Quick data insertion from clipboard:
|
165
|
+
|
166
|
+
```markdown
|
167
|
+
# Code Review with Clipboard Content
|
168
|
+
|
169
|
+
## Code to Review
|
170
|
+
//paste
|
171
|
+
|
172
|
+
## Review Guidelines
|
173
|
+
- Check for best practices
|
174
|
+
- Identify security vulnerabilities
|
175
|
+
- Suggest performance improvements
|
176
|
+
- Validate error handling
|
177
|
+
|
178
|
+
Please provide detailed feedback on the code above.
|
179
|
+
```
|
180
|
+
|
181
|
+
This is particularly useful for:
|
182
|
+
- Quick code reviews when you've copied code from an IDE
|
183
|
+
- Analyzing error messages or logs copied from terminals
|
184
|
+
- Including data from spreadsheets or other applications
|
185
|
+
- Rapid prototyping with copied examples
|
186
|
+
|
163
187
|
### Context Filtering and Summarization
|
164
188
|
Manage large contexts intelligently:
|
165
189
|
|
@@ -237,6 +261,11 @@ Generate an academic document with:
|
|
237
261
|
<% end %>
|
238
262
|
<% end %>
|
239
263
|
|
264
|
+
## Clipboard Content (if applicable)
|
265
|
+
<% if include_clipboard %>
|
266
|
+
//paste
|
267
|
+
<% end %>
|
268
|
+
|
240
269
|
Target audience: <%= audience || "general professional" %>
|
241
270
|
Document length: <%= length || "2000-3000 words" %>
|
242
271
|
```
|
@@ -111,6 +111,24 @@ Include content from files or websites.
|
|
111
111
|
|
112
112
|
**Aliases**: `//import`
|
113
113
|
|
114
|
+
### `//paste`
|
115
|
+
Insert content from the system clipboard.
|
116
|
+
|
117
|
+
**Syntax**: `//paste`
|
118
|
+
|
119
|
+
**Examples**:
|
120
|
+
```markdown
|
121
|
+
//paste
|
122
|
+
```
|
123
|
+
|
124
|
+
**Features**:
|
125
|
+
- Inserts the current clipboard contents directly into the prompt
|
126
|
+
- Useful for quickly including copied text, code, or data
|
127
|
+
- Works across different platforms (macOS, Linux, Windows)
|
128
|
+
- Handles multi-line clipboard content
|
129
|
+
|
130
|
+
**Aliases**: `//clipboard`
|
131
|
+
|
114
132
|
### `//webpage`
|
115
133
|
Include content from web pages (requires PUREMD_API_KEY).
|
116
134
|
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'faraday'
|
4
4
|
require 'active_support/all'
|
5
|
+
require 'clipboard'
|
5
6
|
|
6
7
|
module AIA
|
7
8
|
module Directives
|
@@ -60,11 +61,21 @@ module AIA
|
|
60
61
|
@included_files = files
|
61
62
|
end
|
62
63
|
|
64
|
+
def self.paste(args = [], context_manager = nil)
|
65
|
+
begin
|
66
|
+
content = Clipboard.paste
|
67
|
+
content.to_s
|
68
|
+
rescue => e
|
69
|
+
"Error: Unable to paste from clipboard - #{e.message}"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
63
73
|
# Set up aliases - these work on the module's singleton class
|
64
74
|
class << self
|
65
75
|
alias_method :website, :webpage
|
66
|
-
alias_method :web, :webpage
|
76
|
+
alias_method :web, :webpage
|
67
77
|
alias_method :import, :include
|
78
|
+
alias_method :clipboard, :paste
|
68
79
|
end
|
69
80
|
end
|
70
81
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dewayne VanHoozer
|
@@ -51,6 +51,20 @@ dependencies:
|
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0'
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: clipboard
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
type: :runtime
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
54
68
|
- !ruby/object:Gem::Dependency
|
55
69
|
name: faraday
|
56
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -433,7 +447,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
433
447
|
- !ruby/object:Gem::Version
|
434
448
|
version: '0'
|
435
449
|
requirements: []
|
436
|
-
rubygems_version: 3.
|
450
|
+
rubygems_version: 3.7.2
|
437
451
|
specification_version: 4
|
438
452
|
summary: Multi-model AI CLI with dynamic prompts, consensus responses, shell & Ruby
|
439
453
|
integration, and seamless chat workflows.
|