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/core/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { B as BilmemConfig, E as EvaluatedRule, I as InvestigationReceipt,
|
|
3
|
-
import { M as MetricEvent, S as Storage } from '../canonical-
|
|
1
|
+
import { f as EvidenceRelation, H as ReconciliationResult, K as Knowledge, G as ReconciliationAction, C as ConfidenceTier, q as Observation, e as Evidence, p as KnowledgeType, o as KnowledgeStatus, n as KnowledgeStage, S as Scope, k as KnowledgeHistoryEntry, m as KnowledgeOutcomesSummary, P as Provenance, a3 as UnknownState, a2 as UnknownReason, a1 as UnknownNextAction, U as UnknownRecord, d as BilmemMetrics, r as OutcomeRecord, O as OutcomeType, T as TaskTrajectory, i as KnowledgeBudgetConfig, A as ActionType, R as ResolveOptions, a as ResolutionResult, a0 as UnknownClassification, b as PreflightOptions, c as PreflightResult, D as PreflightUnknown, y as PreflightQuestion } from '../types-DNlvHsj9.js';
|
|
2
|
+
export { B as BilmemConfig, E as EvaluatedRule, I as InvestigationReceipt, g as JevExplanation, h as JevMatchStatus, J as JevResult, j as KnowledgeDiff, l as KnowledgeMetrics, N as NextEvidenceAction, s as PreflightAlreadyInvestigated, t as PreflightConstraint, u as PreflightFailure, v as PreflightKnowledgeImpact, w as PreflightLesson, x as PreflightMissing, z as PreflightStale, F as ReadinessStatus, 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 } from '../types-DNlvHsj9.js';
|
|
3
|
+
import { M as MetricEvent, S as Storage } from '../canonical-JS6HUWGc.js';
|
|
4
4
|
import { BilmemRetriever as Retriever, OramaIndex as SearchIndex } from '../search/index.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -51,7 +51,7 @@ declare function createKnowledge(params: {
|
|
|
51
51
|
type?: KnowledgeType;
|
|
52
52
|
status?: KnowledgeStatus;
|
|
53
53
|
stage?: KnowledgeStage;
|
|
54
|
-
statement
|
|
54
|
+
statement?: string;
|
|
55
55
|
positive?: string[];
|
|
56
56
|
negative?: string[];
|
|
57
57
|
relations?: string[];
|
|
@@ -65,6 +65,11 @@ declare function createKnowledge(params: {
|
|
|
65
65
|
tags?: string[];
|
|
66
66
|
history?: KnowledgeHistoryEntry[];
|
|
67
67
|
outcomesSummary?: KnowledgeOutcomesSummary;
|
|
68
|
+
lesson?: string;
|
|
69
|
+
failure_details?: Record<string, unknown>;
|
|
70
|
+
context?: Record<string, unknown>;
|
|
71
|
+
contradicts?: string[];
|
|
72
|
+
blocking?: boolean;
|
|
68
73
|
}): Knowledge;
|
|
69
74
|
/**
|
|
70
75
|
* Calculate effective confidence combining evidence ratio and outcome history.
|
|
@@ -308,4 +313,46 @@ declare const RELATIVE_COSTS: Record<ActionType, number>;
|
|
|
308
313
|
*/
|
|
309
314
|
declare function resolveEpistemicQuery(options: ResolveOptions, storage: Storage, retriever?: Retriever | SearchIndex): Promise<ResolutionResult>;
|
|
310
315
|
|
|
311
|
-
|
|
316
|
+
declare function tokenizeGoal(goal: string): string[];
|
|
317
|
+
declare function inferLikelyDomains(tokens: string[], knowledgeTags: string[]): string[];
|
|
318
|
+
/**
|
|
319
|
+
* Classifies an unknown into BLOCKING, IMPORTANT, or NON_BLOCKING.
|
|
320
|
+
* When uncertain, prefers IMPORTANT rather than falsely declaring blocking.
|
|
321
|
+
*/
|
|
322
|
+
declare function classifyUnknown(unknown: {
|
|
323
|
+
id: string;
|
|
324
|
+
statement?: string;
|
|
325
|
+
reason?: string;
|
|
326
|
+
question?: string;
|
|
327
|
+
next?: {
|
|
328
|
+
type: string;
|
|
329
|
+
question?: string;
|
|
330
|
+
target?: string;
|
|
331
|
+
};
|
|
332
|
+
blocking?: boolean;
|
|
333
|
+
}, goalTokens: string[], domainCues: string[]): {
|
|
334
|
+
classification: UnknownClassification;
|
|
335
|
+
isDecision: boolean;
|
|
336
|
+
reason: string;
|
|
337
|
+
};
|
|
338
|
+
/**
|
|
339
|
+
* Prioritizes and consolidates questions using question memory and expected value.
|
|
340
|
+
*/
|
|
341
|
+
declare function prioritizeQuestions(rawQuestions: Array<{
|
|
342
|
+
question: string;
|
|
343
|
+
reason: string;
|
|
344
|
+
targetTopic?: string;
|
|
345
|
+
isBlocking?: boolean;
|
|
346
|
+
outcomeScore?: number;
|
|
347
|
+
}>, blockingUnknowns: PreflightUnknown[]): PreflightQuestion[];
|
|
348
|
+
/**
|
|
349
|
+
* Executes Preflight Pipeline for a given goal.
|
|
350
|
+
* Answers: "What must I know before I start this work?"
|
|
351
|
+
*/
|
|
352
|
+
declare function executePreflight(options: PreflightOptions, storage: Storage, retriever?: Retriever, index?: SearchIndex): Promise<PreflightResult>;
|
|
353
|
+
/**
|
|
354
|
+
* Formats a PreflightResult into human-readable YAML matching the Section 4 specification.
|
|
355
|
+
*/
|
|
356
|
+
declare function formatPreflightReport(result: PreflightResult): string;
|
|
357
|
+
|
|
358
|
+
export { ActionType, BilmemMetrics, ConfidenceTier, type DistilledLesson, Evidence, EvidenceGraph, EvidenceRelation, Knowledge, KnowledgeBudgetConfig, KnowledgeHistoryEntry, KnowledgeOutcomesSummary, KnowledgeStage, KnowledgeStatus, KnowledgeType, MetricsTracker, Observation, OutcomeRecord, OutcomeType, PreflightOptions, PreflightQuestion, PreflightResult, PreflightUnknown, Provenance, RELATIVE_COSTS, ReconciliationAction, ReconciliationResult, ResolutionResult, ResolveOptions, Scope, type SourceDependencyIndex, type StalenessCheckResult, TaskTrajectory, type TrajectoryLearningResult, UnknownClassification, UnknownNextAction, UnknownReason, UnknownRecord, UnknownState, applyOutcomeToKnowledge, applyReconciliation, buildDependencyIndex, calculateEffectiveConfidence, calculateKnowledgeValue, checkKnowledgeListStaleness, checkKnowledgeStaleness, classifyUnknown, confidenceToTier, createEvidence, createKnowledge, createObservation, createOutcome, createUnknown, detectPolarContradiction, determineInitialStage, distillTrajectory, enforceKnowledgeBudget, evaluatePromotion, executePreflight, formatPreflightReport, hasBeenInvestigated, hashString, inferLikelyDomains, learnFromTrajectory, markStaleKnowledge, normalizeSourceKey, prioritizeQuestions, processUserCorrection, reconcileKnowledge, recordOutcomeOnKnowledge, resolveEpistemicQuery, tierToConfidence, tokenizeGoal, updateUnknown };
|