@hilbras/omninode 2.0.0-alpha.12 → 2.0.0-alpha.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ OPENAI_COMPATIBLE_TYPES,
4
+ OmniHilbrasProvider,
5
+ OpenAICompatibleProvider,
6
+ authHeaders,
7
+ createProvider,
8
+ extractMessage,
9
+ isNetworkError,
10
+ isRetryable,
11
+ isTimeoutError,
12
+ kindFromStatus,
13
+ parseRetryAfter,
14
+ providerHttpError,
15
+ providerTransportError,
16
+ requestJson,
17
+ resolveApiKey
18
+ } from "./chunk-6Z6O63SS.js";
19
+ export {
20
+ OPENAI_COMPATIBLE_TYPES,
21
+ OmniHilbrasProvider,
22
+ OpenAICompatibleProvider,
23
+ authHeaders,
24
+ createProvider,
25
+ extractMessage,
26
+ isNetworkError,
27
+ isRetryable,
28
+ isTimeoutError,
29
+ kindFromStatus,
30
+ parseRetryAfter,
31
+ providerHttpError,
32
+ providerTransportError,
33
+ requestJson,
34
+ resolveApiKey
35
+ };
36
+ //# sourceMappingURL=providers-OYXBAQTX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/dist/index.d.ts CHANGED
@@ -517,6 +517,8 @@ interface TaskResult {
517
517
  interface Task {
518
518
  id: string;
519
519
  project?: string;
520
+ /** Pipeline run that owns this task, when created by a pipeline. */
521
+ pipelineId?: string;
520
522
  objective: string;
521
523
  /** Role id from the role system. */
522
524
  role?: string;
@@ -850,7 +852,7 @@ interface IChatProvider extends IProvider {
850
852
  }
851
853
 
852
854
  /** Typed error hierarchy shared across the whole codebase (§4.1 — error model). */
853
- type OmniNodeErrorCode = "CONFIG_NOT_FOUND" | "CONFIG_INVALID" | "PROVIDER_NOT_FOUND" | "PROVIDER_UNAVAILABLE" | "PROVIDER_AUTH_FAILED" | "MODEL_NOT_FOUND" | "AGENT_NOT_FOUND" | "AGENT_FAILED" | "AGENT_TIMEOUT" | "TASK_INVALID" | "TASK_NOT_FOUND" | "TASK_FAILED" | "PIPELINE_NOT_FOUND" | "PIPELINE_INVALID" | "PIPELINE_FAILED" | "PLANNER_FAILED" | "PLAN_INVALID" | "PROTOCOL_VIOLATION" | "MEMORY_UNAVAILABLE" | "REPORT_NOT_FOUND" | "NOT_IMPLEMENTED" | "CLI_USAGE" | "INTERNAL";
855
+ type OmniNodeErrorCode = "CONFIG_NOT_FOUND" | "CONFIG_INVALID" | "PROVIDER_NOT_FOUND" | "PROVIDER_UNAVAILABLE" | "PROVIDER_AUTH_FAILED" | "MODEL_NOT_FOUND" | "AGENT_NOT_FOUND" | "AGENT_FAILED" | "AGENT_TIMEOUT" | "TASK_INVALID" | "TASK_NOT_FOUND" | "TASK_FAILED" | "PIPELINE_NOT_FOUND" | "PIPELINE_INVALID" | "PIPELINE_FAILED" | "PLANNER_FAILED" | "PLAN_INVALID" | "TASK_NOT_FOUND" | "PROVIDER_NOT_FOUND" | "PROTOCOL_VIOLATION" | "MEMORY_UNAVAILABLE" | "REPORT_NOT_FOUND" | "NOT_IMPLEMENTED" | "CLI_USAGE" | "INTERNAL";
854
856
  interface OmniNodeErrorOptions {
855
857
  cause?: unknown;
856
858
  details?: Record<string, unknown>;
@@ -899,14 +901,18 @@ declare class ConsoleLogSink implements LogSink {
899
901
  constructor(stream?: WritableLike);
900
902
  write(_level: LogLevel, line: string): void;
901
903
  }
904
+ type LogFormat = "text" | "json";
902
905
  interface LoggerOptions {
903
906
  level?: LogLevel;
904
907
  sink?: LogSink;
908
+ /** "text" (default) or machine-readable "json" lines (roadmap §18). */
909
+ format?: LogFormat;
905
910
  /** Structured fields attached to every line, e.g. { component: "config" }. */
906
911
  context?: Record<string, unknown>;
907
912
  }
908
913
  declare class Logger {
909
- private readonly level;
914
+ level: LogLevel;
915
+ format: LogFormat;
910
916
  private readonly sink;
911
917
  private readonly context;
912
918
  constructor(options?: LoggerOptions);
@@ -919,6 +925,11 @@ declare class Logger {
919
925
  }
920
926
  /** Default application logger. Writes to stderr so stdout stays clean for CLI output. */
921
927
  declare const logger: Logger;
928
+ /** Applies configuration (level/format) to the default logger — used by the CLI. */
929
+ declare function configureLogger(options: {
930
+ level?: LogLevel;
931
+ format?: LogFormat;
932
+ }): void;
922
933
 
923
934
  /**
924
935
  * Configuration schema. The project file (omninode.yaml) uses snake_case keys
@@ -1836,10 +1847,13 @@ declare const appConfigSchema: z.ZodObject<{
1836
1847
  }>;
1837
1848
  logging: z.ZodOptional<z.ZodObject<{
1838
1849
  level: z.ZodEnum<["debug", "info", "warn", "error"]>;
1850
+ format: z.ZodOptional<z.ZodEnum<["text", "json"]>>;
1839
1851
  }, "strict", z.ZodTypeAny, {
1840
1852
  level: "info" | "error" | "debug" | "warn";
1853
+ format?: "text" | "json" | undefined;
1841
1854
  }, {
1842
1855
  level: "info" | "error" | "debug" | "warn";
1856
+ format?: "text" | "json" | undefined;
1843
1857
  }>>;
1844
1858
  }, "strict", z.ZodTypeAny, {
1845
1859
  project: {
@@ -1912,6 +1926,7 @@ declare const appConfigSchema: z.ZodObject<{
1912
1926
  };
1913
1927
  logging?: {
1914
1928
  level: "info" | "error" | "debug" | "warn";
1929
+ format?: "text" | "json" | undefined;
1915
1930
  } | undefined;
1916
1931
  }, {
1917
1932
  project: {
@@ -1984,6 +1999,7 @@ declare const appConfigSchema: z.ZodObject<{
1984
1999
  };
1985
2000
  logging?: {
1986
2001
  level: "info" | "error" | "debug" | "warn";
2002
+ format?: "text" | "json" | undefined;
1987
2003
  } | undefined;
1988
2004
  }>;
1989
2005
  type ProviderConfigYaml = z.infer<typeof providerConfigSchema>;
@@ -1995,6 +2011,26 @@ type PlannerConfigYaml = z.infer<typeof plannerConfigSchema>;
1995
2011
  type ProjectConfigYaml = z.infer<typeof projectConfigSchema>;
1996
2012
  type AppConfigYaml = z.infer<typeof appConfigSchema>;
1997
2013
 
2014
+ /**
2015
+ * Inline secret detection (roadmap §17, Secrets).
2016
+ *
2017
+ * OmniNode configuration must never contain literal credentials — only
2018
+ * environment-variable *references*. This scanner runs before the config is
2019
+ * parsed and reports anything that looks like an inline secret, so the file
2020
+ * is rejected before it can be committed or persisted.
2021
+ */
2022
+ interface SecretFinding {
2023
+ /** 1-based line number in the source. */
2024
+ line: number;
2025
+ /** The offending key, e.g. `api_key`. */
2026
+ key: string;
2027
+ /** Redacted excerpt — never echoes the value. */
2028
+ excerpt: string;
2029
+ }
2030
+ declare function scanForInlineSecrets(source: string): SecretFinding[];
2031
+ /** Formats findings as an actionable configuration error message. */
2032
+ declare function describeSecretFindings(file: string, findings: SecretFinding[]): string;
2033
+
1998
2034
  interface AppConfig {
1999
2035
  project: {
2000
2036
  name: string;
@@ -2058,9 +2094,46 @@ interface HttpResponse {
2058
2094
  }
2059
2095
  declare function requestJson(url: string, options?: HttpRequestOptions): Promise<HttpResponse>;
2060
2096
 
2097
+ type AuditAction = "task.created" | "task.queued" | "task.running" | "task.completed" | "task.failed" | "task.cancelled" | "task.retry" | "pipeline.run.started" | "pipeline.run.finished" | "pipeline.run.failed" | "pipeline.run.cancelled" | "plan.generated" | "agent.started" | "agent.completed" | "provider.error" | "memory.context.gathered" | "memory.outcome.recorded";
2098
+ /**
2099
+ * Every event carries correlation ids so a failed execution can be traced
2100
+ * across task → execution → pipeline run → agent → provider (roadmap §18).
2101
+ */
2102
+ interface AuditEvent {
2103
+ at: string;
2104
+ action: AuditAction;
2105
+ project?: string;
2106
+ /** Primary subject: task id, pipeline run id, plan id… */
2107
+ id?: string;
2108
+ taskId?: string;
2109
+ pipelineId?: string;
2110
+ executionId?: string;
2111
+ agentId?: string;
2112
+ providerId?: string;
2113
+ actor?: string;
2114
+ detail?: Record<string, unknown>;
2115
+ }
2116
+ interface AuditSink {
2117
+ record(event: AuditEvent): Promise<void>;
2118
+ }
2119
+ /** Append-only JSONL sink. Failures are logged, never propagated. */
2120
+ declare class FileAuditLog implements AuditSink {
2121
+ private readonly filePath;
2122
+ private readonly log;
2123
+ constructor(directory?: string, log?: Logger);
2124
+ record(event: AuditEvent): Promise<void>;
2125
+ /** Recent events, oldest first; used by the CLI. */
2126
+ recent(limit?: number): Promise<AuditEvent[]>;
2127
+ }
2128
+
2061
2129
  /** Provider types served by the OpenAI-compatible adapter. */
2062
2130
  declare const OPENAI_COMPATIBLE_TYPES: readonly ProviderType[];
2063
- declare function createProvider(config: ProviderConfig): IChatProvider;
2131
+ interface CreateProviderOptions {
2132
+ /** Correlates provider errors in the audit log (§18). */
2133
+ audit?: AuditSink;
2134
+ env?: Record<string, string | undefined>;
2135
+ }
2136
+ declare function createProvider(config: ProviderConfig, options?: CreateProviderOptions): IChatProvider;
2064
2137
 
2065
2138
  /**
2066
2139
  * Provider error normalization (roadmap §10).
@@ -2105,7 +2178,8 @@ declare class OpenAICompatibleProvider implements IChatProvider {
2105
2178
  /** Discovered models, so getModel() answers without another round-trip. */
2106
2179
  private discovered?;
2107
2180
  private readonly env;
2108
- constructor(config: ProviderConfig, log?: Logger, env?: Record<string, string | undefined>);
2181
+ private readonly audit?;
2182
+ constructor(config: ProviderConfig, log?: Logger, env?: Record<string, string | undefined>, audit?: AuditSink);
2109
2183
  /** Provider-level request timeout (roadmap §6.6/§11) with the shared default. */
2110
2184
  private get requestTimeoutMs();
2111
2185
  /** Authenticate + discover (roadmap §10, Model Discovery). */
@@ -2119,6 +2193,8 @@ declare class OpenAICompatibleProvider implements IChatProvider {
2119
2193
  private toModelInfo;
2120
2194
  /** Streaming where the gateway supports it (§11). */
2121
2195
  stream(request: ChatRequest, onChunk: (chunk: ChatStreamChunk) => void): Promise<ChatResponse>;
2196
+ /** Provider errors are part of the audit trail (§14 correlation, §18 observability). */
2197
+ private recordProviderError;
2122
2198
  healthCheck(): Promise<ProviderStatus>;
2123
2199
  chat(request: ChatRequest): Promise<ChatResponse>;
2124
2200
  }
@@ -2419,13 +2495,21 @@ interface JsonFileStoreOptions {
2419
2495
  fileName: string;
2420
2496
  /** Schema version to write (defaults to the current version). */
2421
2497
  schemaVersion?: number;
2498
+ /** Power-loss durability: "rename" (default) or "fsync" (slower). */
2499
+ durability?: Durability;
2422
2500
  /** Called when a persisted file is corrupt (after quarantine). */
2423
2501
  onCorrupt?: (path: string, error: unknown) => void;
2424
2502
  /** Disable file moves (used by dry runs / tests that inspect in place). */
2425
2503
  quarantine?: boolean;
2426
2504
  }
2427
- /** Durably writes a file: temp → fsync → rename → directory fsync. */
2428
- declare function writeFileAtomic(target: string, contents: string): Promise<void>;
2505
+ type Durability = "rename" | "fsync";
2506
+ /**
2507
+ * Writes a file atomically: temp → rename. The rename guarantees readers
2508
+ * never observe a torn file. With `durability: "fsync"` the data and the
2509
+ * directory entry are also flushed, which additionally survives power loss —
2510
+ * at a significant per-write cost, so it is opt-in.
2511
+ */
2512
+ declare function writeFileAtomic(target: string, contents: string, durability?: Durability): Promise<void>;
2429
2513
  /** Reads and classifies a persisted document without modifying it. */
2430
2514
  declare function inspectDocument(path: string): Promise<DocumentState>;
2431
2515
  /** Reads a document, migrating v1 shapes and quarantining corruption. */
@@ -2433,6 +2517,7 @@ declare function readDocument<T>(path: string, onCorrupt?: (path: string, error:
2433
2517
  declare class JsonFileStore<T> {
2434
2518
  private readonly filePath;
2435
2519
  private readonly schemaVersion;
2520
+ private readonly durability;
2436
2521
  private readonly onCorrupt?;
2437
2522
  private readonly quarantine;
2438
2523
  private readonly log;
@@ -2470,28 +2555,6 @@ declare class FileTaskStore extends JsonFileStore<Task> implements TaskStore {
2470
2555
  list(filter?: TaskStoreFilter): Promise<Task[]>;
2471
2556
  }
2472
2557
 
2473
- type AuditAction = "task.created" | "task.queued" | "task.running" | "task.completed" | "task.failed" | "task.cancelled" | "task.retry" | "pipeline.run.started" | "pipeline.run.finished" | "plan.generated" | "memory.context.gathered" | "memory.outcome.recorded";
2474
- interface AuditEvent {
2475
- at: string;
2476
- action: AuditAction;
2477
- project?: string;
2478
- id?: string;
2479
- actor?: string;
2480
- detail?: Record<string, unknown>;
2481
- }
2482
- interface AuditSink {
2483
- record(event: AuditEvent): Promise<void>;
2484
- }
2485
- /** Append-only JSONL sink. Failures are logged, never propagated. */
2486
- declare class FileAuditLog implements AuditSink {
2487
- private readonly filePath;
2488
- private readonly log;
2489
- constructor(directory?: string, log?: Logger);
2490
- record(event: AuditEvent): Promise<void>;
2491
- /** Recent events, oldest first; used by the CLI. */
2492
- recent(limit?: number): Promise<AuditEvent[]>;
2493
- }
2494
-
2495
2558
  /**
2496
2559
  * Local file-based memory provider: the default implementation so persistent
2497
2560
  * memory works out of the box, locally (§25), with no external service.
@@ -2613,6 +2676,7 @@ declare function defaultMetadata(name: string, options?: {
2613
2676
  interface CreateTaskInput {
2614
2677
  objective: string;
2615
2678
  project?: string;
2679
+ pipelineId?: string;
2616
2680
  role?: string;
2617
2681
  agent?: string;
2618
2682
  context?: TaskContext;
@@ -2704,6 +2768,8 @@ interface CombinedMeta {
2704
2768
  pipelineRunId?: string;
2705
2769
  taskIds?: string[];
2706
2770
  }
2771
+ /** Serialized size budget for a single report (roadmap §17 — output limits). */
2772
+ declare const MAX_REPORT_BYTES: number;
2707
2773
  interface CollectionDiagnostics {
2708
2774
  collected: number;
2709
2775
  accepted: number;
@@ -3040,7 +3106,12 @@ declare class PipelineEngine implements IPipelineExecutor {
3040
3106
  private getChat;
3041
3107
  }
3042
3108
  /** Default chat function: resolves "provider:model" against the configured providers. */
3043
- declare function createDefaultChatFn(providers: AppConfig["project"]["providers"]): ChatFn;
3109
+ interface DefaultChatOptions {
3110
+ /** Correlates provider errors in the audit log (§18). */
3111
+ audit?: AuditSink;
3112
+ env?: Record<string, string | undefined>;
3113
+ }
3114
+ declare function createDefaultChatFn(providers: AppConfig["project"]["providers"], options?: DefaultChatOptions): ChatFn;
3044
3115
 
3045
3116
  declare function buildPipelineEngine(config: AppConfig, log?: Logger): PipelineEngine;
3046
3117
 
@@ -3080,6 +3151,6 @@ declare function migrateProjectStores(directory?: string, options?: {
3080
3151
  checkOnly?: boolean;
3081
3152
  }): Promise<MigrationReport[]>;
3082
3153
 
3083
- declare const OMNINODE_VERSION = "2.0.0-alpha.12";
3154
+ declare const OMNINODE_VERSION = "2.0.0-alpha.14";
3084
3155
 
3085
- export { AgentAdapterRegistry, type AgentConfig, type AgentConfigYaml, type AgentDescriptor, AgentError, type AgentInfo, type AgentInputMode, type AgentIntegrationType, AgentRegistry, type AgentStatus, type AgentTaskInput, type AgentTaskOutput, type AgentToNodeMessage, type AggregateOptions, type AggregatedFinding, type AggregatedRecommendation, type AppConfig, type AppConfigYaml, type ArtifactKind, type ArtifactPayload, type AskedQuestion, type AuditAction, type AuditEvent, type AuditSink, type AuditSink as AuditStore, type ChatFn, type ChatMessage, type ChatRequest, type ChatResponse, type ChatRole, type ChatStreamChunk, type ChatUsage, type CollectionDiagnostics, type CombinedMeta, type CombinedReport, type CombinedReportFilter, type Confidence, ConfigError, type ConflictPosition, ConsoleLogSink, type CreateTaskInput, type CwdValidation, DEFAULT_MAX_OUTPUT_BYTES, type DecodeResult, type DiscoveryResult, type DocumentState, type EnvPolicy, type EnvelopeMeta, type Evidence, type EvidenceInput, type EvidenceKind, type ExecutionRecord, type ExtractionMeta, FileAuditLog, FilePipelineRunStore, FilePlanStore, FileReportStore, FileTaskStore, type Finding, type FindingOrigin, type FindingSeverity, type FindingSource, type HelloResult, HeuristicPlanner, type HttpRequestOptions, type HttpResponse, type IAgent, type IAgentAdapter, type IChatProvider, type IMemoryProvider, type IPipelineExecutor, type IPlanner, type IProvider, type JsonDocument, JsonFileStore, type JsonFileStoreOptions, type LoadConfigOptions, LocalMemoryProvider, type LogLevel, type LogSink, Logger, type LoggerOptions, MAX_CONTEXT_CHARS, MAX_MESSAGE_BYTES, type MemoryCategory, type MemoryContextQuery, type MemoryEntry, MemoryError, type MemoryProviderConfig, type MemoryProviderMetadata, type MemoryQuery, type MemoryScope, MemoryService, type MemoryServiceOptions, LocalMemoryProvider as MemoryStore, type MemoryTaskContext, type MessageEnvelope, type MigrationReport, type Modality, type ModelCapabilities, type ModelFilter, type ModelInfo, ModelPlanner, ModelRegistry, type ModelStatus, type NodeToAgentMessage, OMNINODE_VERSION, OPENAI_COMPATIBLE_TYPES, type OmniHilbrasConnectionResult, OmniHilbrasProvider, OmniNodeError, type OmniNodeErrorCode, type OmniNodeErrorOptions, OpenAICompatibleProvider, PROTOCOL_V2, type PipelineConfigYaml, type PipelineDefinition, PipelineEngine, type PipelineEngineOptions, PipelineError, type PipelineRun, type PipelineRunAttempt, type PipelineRunFilter, type PipelineRunOptions, type PipelineRunStatus, type PipelineRunStore, type PipelineStep, type PipelineStepCondition, type PipelineStepConfigYaml, type PipelineStepKind, type PipelineStepRun, type PipelineRunStore as PipelineStore, type Plan, type PlanFilter, type PlanJsonResult, type PlanRequest, type PlanStep, type PlanStore, type PlanValidationIssue, type PlanValidationResult, type PlannerConfigYaml, PlannerError, ProcessAgent, ProcessAgentAdapter, type Project, type ProjectConfigYaml, ProjectStores, type ProtocolAgentToNodeType, ProtocolDecoder, type ProtocolEnvelope, ProtocolError, type ProtocolMessageType, type ProtocolNodeToAgentType, ProtocolSession, type ProtocolViolation, type ProtocolViolationCode, type ProviderAuthentication, type ProviderCapability, type ProviderConfig, type ProviderConfigYaml, ProviderError, type ProviderErrorKind, type ProviderHealth, type ProviderStatus, type ProviderType, type QuestionPayload, type QuestionResponder, type RememberaConfig, RememberaMemoryProvider, type Report, type ReportArtifact, type ReportConflict, type ReportFilter, type ReportPayload, ReportService, type ReportStore, type ReportValidationIssue, type ReportValidationResult, type RoleConfigYaml, type RoleDefinition, RoleRegistry, type RunPipelineOptions, SCHEMA_VERSION, STORE_FILES, SUPPORTED_PROTOCOL_VERSIONS, type SessionIds, TERMINAL_TASK_STATUSES, type Task, type TaskContext, TaskEngine, type TaskEngineOptions, TaskError, type TaskPayload, type TaskResult, type TaskStatus, type TaskStore, type TaskStoreFilter, type WritableLike, agentConfigSchema, aggregateReports, appConfigSchema, authHeaders, buildAgentRegistry, buildChildEnv, buildHello, buildHelloAck, buildPipelineEngine, buildPlanner, buildPlannerContext, buildRoleRegistry, composeTaskText, createAgent, createDefaultChatFn, createMemoryProvider, createProvider, createTaskEngine, decodeMessage, decodeStream, defaultMetadata, defaultProjectConfigYaml, defaultSearch, describeExit, detectConflicts, encodeMessage, envelope, expandEnvRefs, extractMessage, extractReportFromText, findConfigFile, inspectDocument, isNetworkError, isOmniNodeError, isRetryable, isSupportedProtocol, isTimeoutError, keywords, killTree, kindFromStatus, loadConfig, logger, migrateProjectStores, newMessageId, normalizeEvidence, normalizeFinding, parseHello, parsePlanJson, parseRetryAfter, pipelineConfigSchema, pipelineStepConfigSchema, planJsonSchema, plannerConfigSchema, projectConfigSchema, providerConfigSchema, providerHttpError, providerTransportError, readDocument, registryKey, requestJson, requireCompletion, resolveApiKey, resolveEnvPolicy, roleConfigSchema, sanitizeChunk, similar, validateEnvelope, validatePlan, validateReport, validateWorkingDirectory, writeFileAtomic };
3156
+ export { AgentAdapterRegistry, type AgentConfig, type AgentConfigYaml, type AgentDescriptor, AgentError, type AgentInfo, type AgentInputMode, type AgentIntegrationType, AgentRegistry, type AgentStatus, type AgentTaskInput, type AgentTaskOutput, type AgentToNodeMessage, type AggregateOptions, type AggregatedFinding, type AggregatedRecommendation, type AppConfig, type AppConfigYaml, type ArtifactKind, type ArtifactPayload, type AskedQuestion, type AuditAction, type AuditEvent, type AuditSink, type AuditSink as AuditStore, type ChatFn, type ChatMessage, type ChatRequest, type ChatResponse, type ChatRole, type ChatStreamChunk, type ChatUsage, type CollectionDiagnostics, type CombinedMeta, type CombinedReport, type CombinedReportFilter, type Confidence, ConfigError, type ConflictPosition, ConsoleLogSink, type CreateTaskInput, type CwdValidation, DEFAULT_MAX_OUTPUT_BYTES, type DecodeResult, type DefaultChatOptions, type DiscoveryResult, type DocumentState, type Durability, type EnvPolicy, type EnvelopeMeta, type Evidence, type EvidenceInput, type EvidenceKind, type ExecutionRecord, type ExtractionMeta, FileAuditLog, FilePipelineRunStore, FilePlanStore, FileReportStore, FileTaskStore, type Finding, type FindingOrigin, type FindingSeverity, type FindingSource, type HelloResult, HeuristicPlanner, type HttpRequestOptions, type HttpResponse, type IAgent, type IAgentAdapter, type IChatProvider, type IMemoryProvider, type IPipelineExecutor, type IPlanner, type IProvider, type JsonDocument, JsonFileStore, type JsonFileStoreOptions, type LoadConfigOptions, LocalMemoryProvider, type LogFormat, type LogLevel, type LogSink, Logger, type LoggerOptions, MAX_CONTEXT_CHARS, MAX_MESSAGE_BYTES, MAX_REPORT_BYTES, type MemoryCategory, type MemoryContextQuery, type MemoryEntry, MemoryError, type MemoryProviderConfig, type MemoryProviderMetadata, type MemoryQuery, type MemoryScope, MemoryService, type MemoryServiceOptions, LocalMemoryProvider as MemoryStore, type MemoryTaskContext, type MessageEnvelope, type MigrationReport, type Modality, type ModelCapabilities, type ModelFilter, type ModelInfo, ModelPlanner, ModelRegistry, type ModelStatus, type NodeToAgentMessage, OMNINODE_VERSION, OPENAI_COMPATIBLE_TYPES, type OmniHilbrasConnectionResult, OmniHilbrasProvider, OmniNodeError, type OmniNodeErrorCode, type OmniNodeErrorOptions, OpenAICompatibleProvider, PROTOCOL_V2, type PipelineConfigYaml, type PipelineDefinition, PipelineEngine, type PipelineEngineOptions, PipelineError, type PipelineRun, type PipelineRunAttempt, type PipelineRunFilter, type PipelineRunOptions, type PipelineRunStatus, type PipelineRunStore, type PipelineStep, type PipelineStepCondition, type PipelineStepConfigYaml, type PipelineStepKind, type PipelineStepRun, type PipelineRunStore as PipelineStore, type Plan, type PlanFilter, type PlanJsonResult, type PlanRequest, type PlanStep, type PlanStore, type PlanValidationIssue, type PlanValidationResult, type PlannerConfigYaml, PlannerError, ProcessAgent, ProcessAgentAdapter, type Project, type ProjectConfigYaml, ProjectStores, type ProtocolAgentToNodeType, ProtocolDecoder, type ProtocolEnvelope, ProtocolError, type ProtocolMessageType, type ProtocolNodeToAgentType, ProtocolSession, type ProtocolViolation, type ProtocolViolationCode, type ProviderAuthentication, type ProviderCapability, type ProviderConfig, type ProviderConfigYaml, ProviderError, type ProviderErrorKind, type ProviderHealth, type ProviderStatus, type ProviderType, type QuestionPayload, type QuestionResponder, type RememberaConfig, RememberaMemoryProvider, type Report, type ReportArtifact, type ReportConflict, type ReportFilter, type ReportPayload, ReportService, type ReportStore, type ReportValidationIssue, type ReportValidationResult, type RoleConfigYaml, type RoleDefinition, RoleRegistry, type RunPipelineOptions, SCHEMA_VERSION, STORE_FILES, SUPPORTED_PROTOCOL_VERSIONS, type SecretFinding, type SessionIds, TERMINAL_TASK_STATUSES, type Task, type TaskContext, TaskEngine, type TaskEngineOptions, TaskError, type TaskPayload, type TaskResult, type TaskStatus, type TaskStore, type TaskStoreFilter, type WritableLike, agentConfigSchema, aggregateReports, appConfigSchema, authHeaders, buildAgentRegistry, buildChildEnv, buildHello, buildHelloAck, buildPipelineEngine, buildPlanner, buildPlannerContext, buildRoleRegistry, composeTaskText, configureLogger, createAgent, createDefaultChatFn, createMemoryProvider, createProvider, createTaskEngine, decodeMessage, decodeStream, defaultMetadata, defaultProjectConfigYaml, defaultSearch, describeExit, describeSecretFindings, detectConflicts, encodeMessage, envelope, expandEnvRefs, extractMessage, extractReportFromText, findConfigFile, inspectDocument, isNetworkError, isOmniNodeError, isRetryable, isSupportedProtocol, isTimeoutError, keywords, killTree, kindFromStatus, loadConfig, logger, migrateProjectStores, newMessageId, normalizeEvidence, normalizeFinding, parseHello, parsePlanJson, parseRetryAfter, pipelineConfigSchema, pipelineStepConfigSchema, planJsonSchema, plannerConfigSchema, projectConfigSchema, providerConfigSchema, providerHttpError, providerTransportError, readDocument, registryKey, requestJson, requireCompletion, resolveApiKey, resolveEnvPolicy, roleConfigSchema, sanitizeChunk, scanForInlineSecrets, similar, validateEnvelope, validatePlan, validateReport, validateWorkingDirectory, writeFileAtomic };