feat(commands): detect and report missing core command modules at startup #109

Open
opened 2026-06-01 10:53:01 +02:00 by michael · 0 comments
Owner

Problem

When core command modules (e.g. core.commands.code, core.commands.article)
fail to load -- for example because they were not copied during make install
-- the failure is silent. berhtjan later reports "handler not found" which
gives no indication of the root cause.

Debugging requires manually tracing through the code to discover that the
module was simply missing from the installation.

Goal

Produce a clear, actionable error message at startup when required core
command modules are missing, pointing directly to the missing component.

Example:
[ERROR] fragjan: core.commands.code not available -- incomplete installation
Run: make install

Acceptance Criteria

  • Missing core command modules are detected at startup
  • Error message names the missing module and suggests a fix
  • No silent fallback to empty command table

Notes

core.commands is loaded via berhtjan-cli scanner and contribution.json,
not via direct require. The detection point needs to be identified --
likely core/commands.lua or the module loader.

Related: DAW/fragjan#90 (output routing via adapters/ui)

## Problem When core command modules (e.g. core.commands.code, core.commands.article) fail to load -- for example because they were not copied during `make install` -- the failure is silent. berhtjan later reports "handler not found" which gives no indication of the root cause. Debugging requires manually tracing through the code to discover that the module was simply missing from the installation. ## Goal Produce a clear, actionable error message at startup when required core command modules are missing, pointing directly to the missing component. Example: [ERROR] fragjan: core.commands.code not available -- incomplete installation Run: make install ## Acceptance Criteria - [ ] Missing core command modules are detected at startup - [ ] Error message names the missing module and suggests a fix - [ ] No silent fallback to empty command table ## Notes core.commands is loaded via berhtjan-cli scanner and contribution.json, not via direct require. The detection point needs to be identified -- likely core/commands.lua or the module loader. Related: DAW/fragjan#90 (output routing via adapters/ui)
michael added this to the Basic Version milestone 2026-06-01 13:36:51 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/fragjan#109
No description provided.