Commit 294748d
committed
feat(scripts): Add automatic UUID generation to ask_sam.sh
**Problem:**
- Agents struggle to generate valid UUIDs and often get it wrong
- Script required conversation ID as first positional argument
- Error messages and validation could be improved
- Duplicate/corrupted code sections
- Default model was set to non-existent 'gpt-5-mini'
**Solution:**
1. **Automatic UUID generation**
- Uses uuidgen to auto-generate conversation UUID if not provided
- Optional --uuid flag allows specifying custom UUID
- Displays generated UUID for reference
2. **Improved argument parsing**
- All options are now flags (--uuid, --model, --token)
- More intuitive: ./ask_sam.sh --token xyz 'query'
- No longer requires conversation ID as positional arg
3. **Better validation**
- UUID format validation with helpful warning
- Clearer error messages
- Fixed duplicate error handling
4. **Code cleanup**
- Removed duplicate API token validation
- Fixed cor - Fixed cor - Fixed cor - Fixed cor - Fixed cor - Fixed cor - Fixed cor - Fixed cor - ed help text and examples
5. **Enhanced output**
- Shows conversation UUID and model in summary
- Better error diagnostics
- Cleaner r - Cleaner r - Cleaner r - Cleaner r - Cda - Cleaner r - Cleaner r - Cut - Cleaner r - Cleaner r - Cleaner r - Cleaork - Cleanerth - Cleaner r - Cleaner -line - Cleaner r - Cleaner r - Cleaner r - Cleaner r - Cda recommended)
./ask_sam.sh --token abc123 'query'1 parent f8cd86a commit 294748d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments