Commit Graph

8 Commits

Author SHA1 Message Date
hikari 52cbdce4ee style: fix key-spacing alignment
Node.js CI / CI (pull_request) Successful in 30s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 55s
2026-03-09 13:21:32 -07:00
hikari d2be204188 chore: remove news feed feature
Node.js CI / CI (pull_request) Failing after 11s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 50s
Removes the hourly RSS news posting functionality, including the
postNews module, rss interface, lastRssItems tracking, and the
rss-parser dependency.
2026-03-09 13:11:55 -07:00
hikari 1ebe240475 feat: add slash commands and context menu command (#16)
Node.js CI / CI (push) Successful in 28s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 2m41s
## Summary

This PR adds a suite of slash commands and a context menu command to Amari, along with shared utilities and quality improvements across the board.

### New Commands
- **`/create-issue`** — generates a GitHub issue on a specified repo using AI-drafted content (title, description, acceptance criteria)
- **`/create-task`** — creates a task in Naomi's Leantime instance with an AI-drafted description and configurable priority
- **`/onboard-mentee`** — automates the mentorship onboarding flow (GitHub invite, forum thread, role assignment)
- **Forward to Owner** (context menu, message command) — forwards any message to Naomi with action buttons (contributed by @teklu)

### Shared Utilities
- **`src/utils/makeAiRequest.ts`** — a single wrapper around the Anthropic SDK for all AI calls, with Amari's personality prompt baked in and full error handling
- **`src/events/handleInteractionCreate.ts`** — extracted interaction handler (was inline in `index.ts`) to keep complexity under control

### Quality Improvements
- `ephemeral: true` → `flags: [ MessageFlags.Ephemeral ]` (deprecated API removed)
- Full `try/catch` + `logger.error` audit across all modules (`logMenteeJoin`, `checkAchievements`, `processMentorshipRole`, `processGitHubEvent`)
- `deployGlobal.ts` replaced with a static `commands.json` payload for manual registration
- Amari's personality prompt updated to reflect her actual character — warm, observant, and relentlessly caring

### Notes
- `CLIENT_ID` is needed in 1Password at `op://Environment Variables - Naomi/Amari/client id` for the `commands.json` registration call
- The forward-to-owner command (PR #13, contributed by @teklu) is fully preserved with original commit authorship

 This PR was created with help from Hikari~ 🌸

Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-authored-by: Teklu <tekluabayneh@gmail.com>
Reviewed-on: #16
Co-authored-by: Hikari <hikari@nhcarrigan.com>
Co-committed-by: Hikari <hikari@nhcarrigan.com>
2026-03-03 15:05:09 -08:00
naomi 7facefccd8 feat: track when naomi is recently active
Node.js CI / Lint and Test (push) Successful in 48s
2025-09-02 14:14:03 -07:00
naomi 1b7f83f335 feat: auto-assign issues and prs to naomi
Node.js CI / Lint and Test (push) Successful in 42s
2025-08-27 17:58:28 -07:00
naomi 186414e96a feat: pull from hackernews
Node.js CI / Lint and Test (push) Successful in 40s
2025-08-20 13:58:03 -07:00
naomi b5c19abb52 feat: syndicate freeCodeCamp news posts 2025-08-20 12:23:53 -07:00
naomi a05de6ba2a feat: initial prototype
Node.js CI / Lint and Test (push) Successful in 37s
2025-08-19 17:16:42 -07:00