MemoryQuerySubcommand constructor

MemoryQuerySubcommand()

Implementation

MemoryQuerySubcommand() {
  argParser.addOption(
    'query',
    abbr: 'q',
    help:
        'The natural language question (e.g. "Why did we choose this architecture?").',
  );
  argParser.addOption(
    'type',
    abbr: 't',
    help:
        'Filter by knowledge type (decision, limitation, architecture, bug, releaseHistory, testHistory, implementationReport).',
  );
  argParser.addOption(
    'session',
    abbr: 's',
    help: 'Filter by session ID.',
  );
  argParser.addOption(
    'scope',
    help: 'Filter by component scope (e.g. "core", "cli").',
  );
  argParser.addOption(
    'dir',
    abbr: 'd',
    help: 'Project root directory path.',
    defaultsTo: '.',
  );
  argParser.addFlag(
    'json',
    negatable: false,
    help: 'Output result as structured JSON.',
  );
  argParser.addFlag(
    'include-expired',
    negatable: false,
    help: 'Include expired memory entries.',
  );
}