Add airport address alias to log-work-expense skill
This commit is contained in:
parent
bda05feab1
commit
f473c09a26
2 changed files with 50 additions and 4 deletions
|
|
@ -25,7 +25,7 @@ Log work expenses into `wip.work_expenses` via `scripts/log_expense.py`.
|
|||
4. **Insert via script** — Run the script once **per entry**:
|
||||
|
||||
```bash
|
||||
uv run --with pymongo ~/notes/skills/log-work-expense/scripts/log_expense.py <type> <account> <date> "<note>" <s2_url_1> [s2_url_2]
|
||||
uv run --with pymongo ~/notes/skills/log-work-expense/scripts/log_expense.py <type> <account> <date> "<note>" <s2_url_1> [s2_url_2] [--route "stop1|stop2"]
|
||||
```
|
||||
|
||||
- **Meal receipts**: Run once per receipt (1 file each).
|
||||
|
|
@ -33,6 +33,23 @@ uv run --with pymongo ~/notes/skills/log-work-expense/scripts/log_expense.py <ty
|
|||
|
||||
The script enforces file counts and rejects invalid input.
|
||||
|
||||
### Mileage Routes
|
||||
|
||||
For mileage entries, always include `--route` with the destination address(es). Separate multiple stops with `|`. Home (`11600 Minda Cir Austin, TX 78758`) is automatically prepended and appended — only provide the intermediate stop(s).
|
||||
|
||||
- **One address**: `--route "123 Main St Austin, TX"` → route becomes `[home, "123 Main St Austin, TX", home]`
|
||||
- **Multiple addresses**: `--route "123 Main St Austin, TX|456 Elm St Austin, TX"` → route becomes `[home, "123 Main St Austin, TX", "456 Elm St Austin, TX", home]`
|
||||
|
||||
If the user doesn't specify an address, ask for it.
|
||||
|
||||
#### Shorthand Aliases
|
||||
|
||||
When the user says a shorthand, expand it to the full address before building the route:
|
||||
|
||||
| Shorthand | Full Address |
|
||||
|-----------|-------------|
|
||||
| `airport` or `AUS` | `3201 Presidential Blvd, Austin, TX 78719` |
|
||||
|
||||
5. **Confirm** — Brief summary of what was logged.
|
||||
|
||||
## Notes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue