# All files / src/agent index.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85

     /**
     * Agent Module - Public API
     *
     * Exports the AgentManager port interface and related types.
     * All consumers should import from this index file.
     */

    // Port interface and types
    export type {
      AgentStatus,
      SpawnAgentOptions,
      AgentInfo,
      AgentResult,
      AgentManager,
      AgentInputContext,
    } from './types.js';

    // Adapter implementations
    export { MultiProviderAgentManager } from './manager.js';
    /** @deprecated Use MultiProviderAgentManager instead */
    export { MultiProviderAgentManager as ClaudeAgentManager } from './manager.js';
    export { MockAgentManager, type MockAgentScenario } from './mock-manager.js';

    // Provider registry
    export {
      getProvider,
      listProviders,
      registerProvider,
      loadProvidersFromFile,
      PROVIDER_PRESETS,
    } from './providers/index.js';
    export type { AgentProviderConfig } from './providers/index.js';

    // Agent prompts
    export {
      buildDiscussPrompt,
      buildPlanPrompt,
      buildExecutePrompt,
      buildRefinePrompt,
      buildDetailPrompt,
    } from './prompts/index.js';

    // Schema
    export { agentSignalSchema, agentSignalJsonSchema } from './schema.js';
    export type { AgentSignal } from './schema.js';
    // Backward compat
    export { agentOutputSchema, agentOutputJsonSchema } from './schema.js';

    // File I/O
    export {
      writeInputFiles,
      readSummary,
      readPhaseFiles,
      readTaskFiles,
      readDecisionFiles,
      readPageFiles,
      generateId,
    } from './file-io.js';
    export type {
      WriteInputFilesOptions,
      ParsedSummary,
      ParsedPhaseFile,
      ParsedTaskFile,
      ParsedDecisionFile,
      ParsedPageFile,
    } from './file-io.js';

    // Content serializer
    export { serializePageTree, tiptapJsonToMarkdown } from './content-serializer.js';
    export type { PageForSerialization } from './content-serializer.js';

    // Alias generator
    export { generateUniqueAlias } from './alias.js';

    // File tailer for crash-resilient streaming
    export { FileTailer } from './file-tailer.js';
    export type { FileTailerOptions } from './file-tailer.js';

    // Extracted manager helpers
    export { ProcessManager } from './process-manager.js';
    export { CredentialHandler } from './credential-handler.js';
    export { OutputHandler } from './output-handler.js';
    export type { ActiveAgent } from './output-handler.js';
    export { CleanupManager } from './cleanup-manager.js';