bilmem 0.1.0 → 0.2.0

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.
@@ -1,4 +1,4 @@
1
- import { o as Observation } from './types-Nxq5Gzay.js';
1
+ import { q as Observation } from './types-DNlvHsj9.js';
2
2
 
3
3
  interface ScannedFileInfo {
4
4
  path: string;
package/dist/index.d.ts CHANGED
@@ -1,20 +1,20 @@
1
- import { S as Scope, J as JevResult, P as Provenance, K as Knowledge, O as OutcomeType, T as TaskTrajectory, R as ResolveOptions, a as ResolutionResult, U as UnknownRecord } from './types-Nxq5Gzay.js';
2
- export { A as ActionType, B as BilmemConfig, b as BilmemMetrics, C as ConfidenceTier, E as EvaluatedRule, c as Evidence, d as EvidenceRelation, I as InvestigationReceipt, e as JevExplanation, f as JevMatchStatus, g as KnowledgeBudgetConfig, h as KnowledgeDiff, i as KnowledgeHistoryEntry, j as KnowledgeMetrics, k as KnowledgeOutcomesSummary, l as KnowledgeStage, m as KnowledgeStatus, n as KnowledgeType, N as NextEvidenceAction, o as Observation, p as OutcomeRecord, q as ReconciliationAction, r as ReconciliationResult, s as RelationType, t as ResolutionReason, u as ResolutionState, v as RevisionSnapshot, w as RuleCondition, x as RuleDefinition, y as RuleSet, z as TemporalMetadata, D as TrajectoryEvent, F as TrajectoryEventType, G as UnknownNextAction, H as UnknownReason, L as UnknownState } from './types-Nxq5Gzay.js';
1
+ import { S as Scope, J as JevResult, P as Provenance, K as Knowledge, O as OutcomeType, T as TaskTrajectory, R as ResolveOptions, a as ResolutionResult, b as PreflightOptions, c as PreflightResult, U as UnknownRecord } from './types-DNlvHsj9.js';
2
+ export { A as ActionType, B as BilmemConfig, d as BilmemMetrics, C as ConfidenceTier, E as EvaluatedRule, e as Evidence, f as EvidenceRelation, I as InvestigationReceipt, g as JevExplanation, h as JevMatchStatus, i as KnowledgeBudgetConfig, j as KnowledgeDiff, k as KnowledgeHistoryEntry, l as KnowledgeMetrics, m as KnowledgeOutcomesSummary, n as KnowledgeStage, o as KnowledgeStatus, p as KnowledgeType, N as NextEvidenceAction, q as Observation, r as OutcomeRecord, s as PreflightAlreadyInvestigated, t as PreflightConstraint, u as PreflightFailure, v as PreflightKnowledgeImpact, w as PreflightLesson, x as PreflightMissing, y as PreflightQuestion, z as PreflightStale, D as PreflightUnknown, F as ReadinessStatus, G as ReconciliationAction, H as ReconciliationResult, L as RelationType, M as ResolutionReason, Q as ResolutionState, V as RevisionSnapshot, W as RuleCondition, X as RuleDefinition, Y as RuleSet, Z as TemporalMetadata, _ as TrajectoryEvent, $ as TrajectoryEventType, a0 as UnknownClassification, a1 as UnknownNextAction, a2 as UnknownReason, a3 as UnknownState } from './types-DNlvHsj9.js';
3
3
  import { createUnknown } from './core/index.js';
4
- export { DistilledLesson, EvidenceGraph, MetricsTracker, RELATIVE_COSTS, SourceDependencyIndex, StalenessCheckResult, TrajectoryLearningResult, applyOutcomeToKnowledge, applyReconciliation, buildDependencyIndex, calculateEffectiveConfidence, calculateKnowledgeValue, checkKnowledgeListStaleness, checkKnowledgeStaleness, confidenceToTier, createEvidence, createKnowledge, createObservation, createOutcome, detectPolarContradiction, determineInitialStage, distillTrajectory, enforceKnowledgeBudget, evaluatePromotion, hasBeenInvestigated, hashString, learnFromTrajectory, markStaleKnowledge, normalizeSourceKey, processUserCorrection, reconcileKnowledge, recordOutcomeOnKnowledge, resolveEpistemicQuery, tierToConfidence, updateUnknown } from './core/index.js';
4
+ export { DistilledLesson, EvidenceGraph, MetricsTracker, RELATIVE_COSTS, SourceDependencyIndex, StalenessCheckResult, TrajectoryLearningResult, applyOutcomeToKnowledge, applyReconciliation, buildDependencyIndex, calculateEffectiveConfidence, calculateKnowledgeValue, checkKnowledgeListStaleness, checkKnowledgeStaleness, classifyUnknown, confidenceToTier, createEvidence, createKnowledge, createObservation, createOutcome, detectPolarContradiction, determineInitialStage, distillTrajectory, enforceKnowledgeBudget, evaluatePromotion, executePreflight, formatPreflightReport, hasBeenInvestigated, hashString, inferLikelyDomains, learnFromTrajectory, markStaleKnowledge, normalizeSourceKey, prioritizeQuestions, processUserCorrection, reconcileKnowledge, recordOutcomeOnKnowledge, resolveEpistemicQuery, tierToConfidence, tokenizeGoal, updateUnknown } from './core/index.js';
5
5
  export { QueryContext, evaluateJev, formatJevExplanation, formatWhyExplanation, formatWhyHistory, rerankCandidates } from './jev/index.js';
6
6
  import { LookupOptions, OramaIndex as SearchIndex, BilmemRetriever as Retriever } from './search/index.js';
7
7
  export { KnowledgeStoreProvider } from './search/index.js';
8
8
  import { CompactionReport, ImportReport } from './storage/index.js';
9
9
  export { BatchOp, PortableDump, StorageDriver, compact, dumpToYaml, exportKnowledgeToYaml, importKnowledgeFromYaml, restoreFromYaml } from './storage/index.js';
10
- import { S as Storage } from './canonical-CglQQ0xc.js';
11
- export { E as EffectivenessRatio, J as JevRejectReason, K as KnowledgeHealthCategory, a as KnowledgeStatsReport, M as MetricEvent, b as StatsReport, d as desanitizeFileName, f as formatKnowledgeDiff, s as sanitizeFileName } from './canonical-CglQQ0xc.js';
12
- export { B as BUILTIN_DETECTORS, C as ConventionDetector, a as ConventionRegistry, D as DetectorCategory, P as ProjectContext, S as ScannedFileInfo, W as WalkOptions, b as analyzeProjectStructure, d as defaultRegistry, r as registerConventionDetector, w as walkDirectory } from './filesystem-B3qAej0l.js';
10
+ import { S as Storage } from './canonical-JS6HUWGc.js';
11
+ export { E as EffectivenessRatio, J as JevRejectReason, K as KnowledgeHealthCategory, a as KnowledgeStatsReport, M as MetricEvent, b as StatsReport, d as desanitizeFileName, f as formatKnowledgeDiff, s as sanitizeFileName } from './canonical-JS6HUWGc.js';
12
+ export { B as BUILTIN_DETECTORS, C as ConventionDetector, a as ConventionRegistry, D as DetectorCategory, P as ProjectContext, S as ScannedFileInfo, W as WalkOptions, b as analyzeProjectStructure, d as defaultRegistry, r as registerConventionDetector, w as walkDirectory } from './filesystem-CrAkhr85.js';
13
13
  import { ScanOptions, ScanReport } from './scanner/index.js';
14
14
  export { BUILTIN_MARKDOWN_EXTRACTORS, GitCommit, GitScanResult, MarkdownAlert, MarkdownCodeBlock, MarkdownDocument, MarkdownEvidenceResult, MarkdownExtractor, MarkdownExtractorResult, MarkdownHeading, MarkdownLink, MarkdownRegistry, MarkdownSection, MarkdownTable, MarkdownTaskItem, SourceScanResult, analyzeSourceFile, defaultMarkdownRegistry, isGitRepository, isSourceFile, parseMarkdownDocument, parseMarkdownFile, registerMarkdownExtractor, scanGitHistory, scanRepository } from './scanner/index.js';
15
15
  export { RuleValidationResult, evaluateRule, evaluateRuleSet, findRuleFiles, loadAllProjectRuleSets, loadRuleSetFile, parseRuleSetYaml, ruleToCandidateLesson, ruleToObservation, stringifyRuleSetYaml, validateRuleDefinition, validateRuleSet } from './rules/index.js';
16
- export { CreateMcpAppOptions, createBilmemMcpApp } from './mcp/index.js';
17
- export { AgentDoctorReport, AgentInstaller, BILMEM_END_MARKER, BILMEM_START_MARKER, BaseAgentAdapter, CURRENT_INTEGRATION_VERSION, ClaudeAdapter, CliDoctorOptions, CliInstallOptions, CliUninstallOptions, CodexAdapter, CoreDoctorReport, CursorAdapter, DetectedAgent, DetectionResult, DoctorFixResult, DoctorReport, GeminiAdapter, InstallContext, InstallOptions, InstallResult, InstallScope, InstallState, IntegrationRecord, IntegrationsMetadata, JsonReadResult, UninstallOptions, UninstallResult, VerifyResult, createInstallContext, detectAgents, extractInstructionVersion, formatDoctorFixResult, formatDoctorReport, formatInstallResult, formatUninstallResult, getAdapter, getAgentInstructionText, getAllAdapters, getIntegrationRecord, getIntegrationsFilePath, handleDoctorCommand, handleInstallCommand, handleUninstallCommand, hasBilmemInstruction, isExecutableInPath, loadIntegrationsMetadata, pathExists, recordIntegration, removeIntegration, removeMarkdownInstructionFile, removeMcpJsonConfig, runDoctor, runDoctorFix, safeReadJson, saveIntegrationsMetadata, updateMarkdownInstructionFile, updateMcpJsonConfig, writeAtomic } from './install/index.js';
16
+ export { CreateMcpAppOptions, McpProjectContext, createBilmemMcpApp } from './mcp/index.js';
17
+ export { AgentDoctorReport, AgentInstaller, AntigravityAdapter, BILMEM_END_MARKER, BILMEM_START_MARKER, BaseAgentAdapter, CURRENT_INTEGRATION_VERSION, ClaudeAdapter, CliDoctorOptions, CliInstallOptions, CliUninstallOptions, CodexAdapter, CoreDoctorReport, CursorAdapter, DetectedAgent, DetectionResult, DoctorFixResult, DoctorReport, GeminiAdapter, InstallContext, InstallOptions, InstallResult, InstallScope, InstallState, IntegrationRecord, IntegrationsMetadata, JsonReadResult, UninstallOptions, UninstallResult, VerifyResult, createInstallContext, detectAgents, extractInstructionVersion, extractSkillVersion, formatDoctorFixResult, formatDoctorReport, formatInstallResult, formatUninstallResult, getAdapter, getAgentInstructionText, getAllAdapters, getBilmemSkillContent, getIntegrationRecord, getIntegrationsFilePath, handleDoctorCommand, handleInstallCommand, handleUninstallCommand, hasBilmemInstruction, hasBilmemSkill, isExecutableInPath, loadIntegrationsMetadata, pathExists, recordIntegration, removeIntegration, removeMarkdownInstructionFile, removeMcpJsonConfig, removeSkillFile, runDoctor, runDoctorFix, safeReadJson, saveIntegrationsMetadata, updateMarkdownInstructionFile, updateMcpJsonConfig, updateSkillFile, writeAtomic } from './install/index.js';
18
18
  export { RunStatsOptions, appendMetricEvent, classifyKnowledgeHealth, computeKnowledgeStats, computeStats, formatKnowledgeStatsReport, formatStatsReport, getEventsFilePath, readMetricEvents, resetMetricEvents, resolveSinceTimestamp, runStats } from './stats/index.js';
19
19
  import 'mcponce';
20
20
 
@@ -84,6 +84,12 @@ declare class Bilmem {
84
84
  * what am I missing, and what is the cheapest next step to resolve the uncertainty?"
85
85
  */
86
86
  resolve(options: ResolveOptions): Promise<ResolutionResult>;
87
+ /**
88
+ * Preflight analysis:
89
+ * Answers "What must I know before I start this work?"
90
+ * Analyzes existing constraints, relevant lessons, stale knowledge, and important unknowns.
91
+ */
92
+ preflight(options: PreflightOptions): Promise<PreflightResult>;
87
93
  /**
88
94
  * Check knowledge staleness based on changed source files.
89
95
  */
@@ -160,4 +166,4 @@ declare class Bilmem {
160
166
  */
161
167
  declare function createBilmem(options?: BilmemOptions): Bilmem;
162
168
 
163
- export { Bilmem, type BilmemOptions, Retriever as BilmemRetriever, Storage as CanonicalStorage, CompactionReport, ImportReport, JevResult, Knowledge, type LearnOptions, LookupOptions, type ObserveOptions, SearchIndex as OramaIndex, OutcomeType, Provenance, ResolutionResult, ResolveOptions, Retriever, ScanOptions, ScanReport, Scope, SearchIndex, Storage, TaskTrajectory, UnknownRecord, createBilmem, createUnknown };
169
+ export { Bilmem, type BilmemOptions, Retriever as BilmemRetriever, Storage as CanonicalStorage, CompactionReport, ImportReport, JevResult, Knowledge, type LearnOptions, LookupOptions, type ObserveOptions, SearchIndex as OramaIndex, OutcomeType, PreflightOptions, PreflightResult, Provenance, ResolutionResult, ResolveOptions, Retriever, ScanOptions, ScanReport, Scope, SearchIndex, Storage, TaskTrajectory, UnknownRecord, createBilmem, createUnknown };