feat: start NEW_FEAT refactor (channel resolver + decision input modules) #16

Merged
hzhang merged 26 commits from feat/new-feat-refactor-start into feat/split-tools-and-mention-override 2026-03-08 07:25:42 +00:00
Collaborator

Phase-1 implementation from NEW_FEAT.md:

  • add plugin/channel-resolver.ts
    • extract discord channel id from ctx/event/session key/metadata
  • add plugin/decision-input.ts
    • centralized deriveDecisionInputFromPrompt with stable channelId priority
  • wire plugin/index.ts to use new modules in before_model_resolve / before_prompt_build / message_sent
  • remove dead helper functions from index (normalizeSender, normalizeChannel, old local parsers)
  • include NEW_FEAT.md with roadmap entries

This is a starting refactor branch; larger module split + channel member cache + discord-control in-plugin migration can follow in next commits.

Phase-1 implementation from NEW_FEAT.md: - add `plugin/channel-resolver.ts` - extract discord channel id from ctx/event/session key/metadata - add `plugin/decision-input.ts` - centralized deriveDecisionInputFromPrompt with stable channelId priority - wire `plugin/index.ts` to use new modules in before_model_resolve / before_prompt_build / message_sent - remove dead helper functions from index (`normalizeSender`, `normalizeChannel`, old local parsers) - include NEW_FEAT.md with roadmap entries This is a starting refactor branch; larger module split + channel member cache + discord-control in-plugin migration can follow in next commits.
orion added 1 commit 2026-03-07 22:12:40 +00:00
orion added 1 commit 2026-03-07 22:18:11 +00:00
orion added 1 commit 2026-03-07 22:21:18 +00:00
orion added 1 commit 2026-03-07 22:24:49 +00:00
orion added 1 commit 2026-03-07 22:27:04 +00:00
orion added 1 commit 2026-03-07 22:33:30 +00:00
orion added 1 commit 2026-03-07 22:38:13 +00:00
orion added 1 commit 2026-03-08 05:19:42 +00:00
orion added 1 commit 2026-03-08 05:25:55 +00:00
orion added 1 commit 2026-03-08 05:31:11 +00:00
orion added 1 commit 2026-03-08 05:39:30 +00:00
orion added 1 commit 2026-03-08 05:43:53 +00:00
orion added 1 commit 2026-03-08 05:50:13 +00:00
orion added 1 commit 2026-03-08 05:53:40 +00:00
orion added 1 commit 2026-03-08 06:08:53 +00:00
orion added 1 commit 2026-03-08 06:13:40 +00:00
orion added 1 commit 2026-03-08 06:15:22 +00:00
orion added 1 commit 2026-03-08 06:19:43 +00:00
orion added 1 commit 2026-03-08 06:21:28 +00:00
orion added 1 commit 2026-03-08 06:25:09 +00:00
orion added 1 commit 2026-03-08 06:38:35 +00:00
orion added 1 commit 2026-03-08 06:45:34 +00:00
orion added 1 commit 2026-03-08 06:57:25 +00:00
orion added 1 commit 2026-03-08 07:05:39 +00:00
orion added 1 commit 2026-03-08 07:17:26 +00:00
orion added 1 commit 2026-03-08 07:25:02 +00:00
hzhang merged commit 05702941c1 into feat/split-tools-and-mention-override 2026-03-08 07:25:42 +00:00
hzhang deleted branch feat/new-feat-refactor-start 2026-03-08 07:25:42 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nav/Dirigent#16