learning_ai_notes/backend/src/lib
saravanakumardb1 3260b7ea0a feat(smart-actions): F1-F4 inline editor AI, F15-F19 mobile capture modes, F25-F27 scheduler/webhooks/approval
F1-F4: Inline editor AI
- Backend: expand CopilotAction with fix-rewrite, change-tone, continue, explain
- Backend: add tone parameter to copilot route for change-tone action
- Web: copilot-client adds CopilotTone type and tone parameter
- Web: NoteEditor toolbar gains AI row with Fix & Rewrite, Change Tone dropdown,
  Continue Writing (appends at cursor), Explain (inline popover)

F15-F19: Mobile capture enhancements
- Backend: POST /note-prompts/url-extract endpoint (fetch, strip HTML, LLM summarize)
- Mobile API: extractFromUrl() and copilotTransform() client functions
- Mobile: capture tab rewritten with 6 capture modes grid (text, photo, voice,
  URL, scan, paste) — URL extract + clipboard paste fully wired, camera/voice/scan
  surface native permission prompts (require expo-av/expo-image-picker)
- expo-clipboard added as dependency

F25-F27: Scheduled actions, webhook triggers, approval-gated actions
- New scheduler.ts module with PromptScheduleDoc + PromptWebhookDoc types
- Schedule CRUD: GET/POST/PATCH/DELETE /prompt-schedules
- Webhook CRUD: GET/POST/PATCH/DELETE /prompt-webhooks
- POST /prompt-webhooks/:id/trigger — execute template against note
- Scheduler loop (60s tick) with cron next-run calculation
- Diagnostics endpoint: GET /prompt-schedules/diagnostics
- Cosmos containers: note_prompt_schedules, note_prompt_webhooks
- PromptTemplateDoc gains requiresApproval field (F27)
- Runner produces approvalState: proposed|applied based on template flag
- Create/Update schemas accept requiresApproval boolean
2026-04-06 10:25:34 -07:00
..
auth.test.ts fix(auth): JWKS URL-tracking singleton + expanded test coverage 2026-03-12 11:22:04 -07:00
auth.ts fix(backend): fix trackEvent call signature and route registration tests 2026-03-31 01:00:32 -07:00
config.ts feat(backend): add note-prompts module with Smart Actions LLM integration 2026-04-06 08:01:42 -07:00
copilot-transform.ts feat(smart-actions): F1-F4 inline editor AI, F15-F19 mobile capture modes, F25-F27 scheduler/webhooks/approval 2026-04-06 10:25:34 -07:00
cosmos-init.ts feat(smart-actions): F1-F4 inline editor AI, F15-F19 mobile capture modes, F25-F27 scheduler/webhooks/approval 2026-04-06 10:25:34 -07:00
datastore.ts fix(backend): use config.DB_PROVIDER instead of process.env.DB_PROVIDER in datastore.ts 2026-03-20 08:29:36 -07:00
ecosystem-phase1.test.ts test(notes): verify phase1 transcript→note import against @bytelyst/events schemas 2026-04-03 19:13:55 -07:00
ecosystem-phase1.ts fix(notes): preserve phase1 transcript event lineage 2026-04-03 17:40:59 -07:00
ecosystem-phase3.test.ts feat(phase3): add notelett trail report import 2026-04-03 19:49:46 -07:00
ecosystem-phase3.ts feat(phase3): add notelett trail report import 2026-04-03 19:49:46 -07:00
embeddings.test.ts feat(backend): add note intelligence — embeddings, auto-summarize, duplicates, suggest-links, knowledge gaps 2026-04-06 08:10:26 -07:00
embeddings.ts feat(backend): add note intelligence — embeddings, auto-summarize, duplicates, suggest-links, knowledge gaps 2026-04-06 08:10:26 -07:00
extraction-client.ts feat(backend+web): note summarization + export endpoints [B3, B6] 2026-03-19 08:59:26 -07:00
feature-flags.ts feat(backend): add note intelligence — embeddings, auto-summarize, duplicates, suggest-links, knowledge gaps 2026-04-06 08:10:26 -07:00
field-encrypt.ts feat(backend): admin-panel encryption toggle via initEncryption() 2026-03-21 15:25:41 -07:00
llm.ts feat(backend): add note-prompts module with Smart Actions LLM integration 2026-04-06 08:01:42 -07:00
note-hooks.ts feat(backend): add note intelligence — embeddings, auto-summarize, duplicates, suggest-links, knowledge gaps 2026-04-06 08:10:26 -07:00
note-search-rank.ts feat: implement WEB_AI_FAST_ROADMAP (web + backend + docs) 2026-03-31 13:00:36 -07:00
product-config.ts feat(backend): add GET /api/bootstrap route + test 2026-03-20 21:15:41 -07:00
request-context.ts refactor(backend): migrate auth.ts + request-context.ts to @bytelyst/fastify-auth 2026-03-20 07:45:59 -07:00
telemetry.ts feat(backend): add @bytelyst/backend-flags + backend-telemetry, fix config defaults 2026-03-20 17:31:53 -07:00