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.
- package/README.md +163 -20
- package/dist/{canonical-CglQQ0xc.d.ts → canonical-JS6HUWGc.d.ts} +24 -1
- package/dist/cli/index.js +1433 -200
- package/dist/cli/index.js.map +1 -1
- package/dist/core/index.d.ts +52 -5
- package/dist/core/index.js +623 -1
- package/dist/core/index.js.map +1 -1
- package/dist/{filesystem-B3qAej0l.d.ts → filesystem-CrAkhr85.d.ts} +1 -1
- package/dist/index.d.ts +15 -9
- package/dist/index.js +1451 -303
- package/dist/index.js.map +1 -1
- package/dist/install/index.d.ts +59 -3
- package/dist/install/index.js +1245 -111
- package/dist/install/index.js.map +1 -1
- package/dist/jev/index.d.ts +1 -1
- package/dist/mcp/index.d.ts +12 -1
- package/dist/mcp/index.js +846 -97
- package/dist/mcp/index.js.map +1 -1
- package/dist/rules/index.d.ts +2 -2
- package/dist/rules/index.js.map +1 -1
- package/dist/scanner/index.d.ts +2 -2
- package/dist/scanner/index.js +6 -1
- package/dist/scanner/index.js.map +1 -1
- package/dist/search/index.d.ts +1 -1
- package/dist/stats/index.d.ts +3 -3
- package/dist/stats/index.js +45 -1
- package/dist/stats/index.js.map +1 -1
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.js +6 -1
- package/dist/storage/index.js.map +1 -1
- package/dist/{types-Nxq5Gzay.d.ts → types-DNlvHsj9.d.ts} +120 -3
- package/package.json +1 -1
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-
|
|
2
|
-
export { A as ActionType, B as BilmemConfig,
|
|
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-
|
|
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-
|
|
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-
|
|
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 };
|