Skip to content

Commit 480a461

Browse files
committed
Merge branch 'release/0.6.2'
2 parents 6791e2b + 3cbe8d1 commit 480a461

8 files changed

Lines changed: 737 additions & 25 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ resolver = "2"
88

99
[package]
1010
name = "cliptions-core"
11-
version = "0.6.1"
11+
version = "0.6.2"
1212
edition = "2021"
1313
description = "Cliptions prediction market core functionality implemented in Rust with optional Python bindings"
1414
license = "MIT"

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,44 @@ Success: Commitment data saved to /Users/username/.cliptions/commitments.json
165165
- **Multiple formats**: Output in text, JSON, or CSV format
166166
- **Batch processing**: Process multiple commitments from a JSON file
167167

168+
### Commitment Collection
169+
170+
Collect commitment replies from a specific tweet:
171+
172+
```bash
173+
# Basic commitment collection
174+
cliptions collect-commitments --tweet-id "1234567890123456789"
175+
176+
# Verbose output with detailed information
177+
cliptions collect-commitments --tweet-id "1234567890123456789" --verbose
178+
179+
# Limit results per page
180+
cliptions collect-commitments --tweet-id "1234567890123456789" --max-results 50
181+
182+
# Use custom config file
183+
cliptions collect-commitments --tweet-id "1234567890123456789" --config config/custom.yaml
184+
```
185+
186+
**Example Output:**
187+
```
188+
✅ Loaded config from: config/llm.yaml
189+
✅ Search complete!
190+
Total replies found: 3
191+
192+
--- Reply 1 ---
193+
🐦 Tweet ID: 1234567890123456789
194+
👤 Author ID: 9876543210987654321
195+
📅 Created: 2024-01-15 14:30:00 UTC
196+
💬 Text: My commitment hash: abc123def456...
197+
🔗 URL: https://twitter.com/user/status/1234567890123456789
198+
```
199+
200+
**Features:**
201+
- **Twitter API integration**: Uses Twitter API v2 for reliable data collection
202+
- **Configurable limits**: Control maximum results per page
203+
- **Verbose mode**: Detailed output with metrics and conversation IDs
204+
- **Error handling**: Comprehensive error messages for API issues
205+
168206
### Score Calculation
169207

170208
Calculate similarity scores and rankings for a round:

src/actions.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
//! Actions module containing all CLI subcommand implementations
22
3-
pub mod generate_commitment;
3+
pub mod generate_commitment;
4+
pub mod collect_commitments;

0 commit comments

Comments
 (0)