@orquentra/codebuddy 2.4.1 → 2.5.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.
Files changed (61) hide show
  1. package/README.md +17 -2
  2. package/dist/chunk-3XYQGFPB.js +91 -0
  3. package/dist/chunk-3XYQGFPB.js.map +1 -0
  4. package/dist/chunk-4BYGTEJT.js +103 -0
  5. package/dist/chunk-4BYGTEJT.js.map +1 -0
  6. package/dist/{chunk-ITGRANYW.js → chunk-6MKEIDX5.js} +2 -2
  7. package/dist/{chunk-K63EOA4B.js → chunk-776EQXDV.js} +25 -6
  8. package/dist/chunk-776EQXDV.js.map +1 -0
  9. package/dist/{chunk-5OWZVZSO.js → chunk-CQPCHMBS.js} +8 -165
  10. package/dist/chunk-CQPCHMBS.js.map +1 -0
  11. package/dist/chunk-JDZ3VK26.js +4006 -0
  12. package/dist/chunk-JDZ3VK26.js.map +1 -0
  13. package/dist/chunk-JMWJ7V6Y.js +99 -0
  14. package/dist/chunk-JMWJ7V6Y.js.map +1 -0
  15. package/dist/chunk-KYK6RPAJ.js +99 -0
  16. package/dist/chunk-KYK6RPAJ.js.map +1 -0
  17. package/dist/{chunk-IBMJYIEP.js → chunk-L5AYZC3F.js} +7 -7
  18. package/dist/{chunk-3ZELDCR3.js → chunk-PCE4STAY.js} +7 -7
  19. package/dist/{chunk-TI5TQD6D.js → chunk-QDBDYCM2.js} +2 -2
  20. package/dist/{chunk-DSN5CEHO.js → chunk-ROQTT5ZO.js} +3 -3
  21. package/dist/{chunk-IE2OUO54.js → chunk-UFZD3JAA.js} +3 -3
  22. package/dist/chunk-Z5QB367W.js +5028 -0
  23. package/dist/chunk-Z5QB367W.js.map +1 -0
  24. package/dist/cli/index.js +2 -2
  25. package/dist/cloud-GP6G3EAK.js +17 -0
  26. package/dist/{codebuddy-D2xJ6hFk.d.ts → codebuddy-DM-i0Fu5.d.ts} +49 -18
  27. package/dist/{config-S2TULOMK.js → config-KFEHLV6W.js} +3 -3
  28. package/dist/index.d.ts +23 -3
  29. package/dist/index.js +34 -25
  30. package/dist/langgraph/index.d.ts +1 -1
  31. package/dist/lean-command-DA4ZNKG3.js +15 -0
  32. package/dist/local-3NGNESNB.js +13 -0
  33. package/dist/{main-BFDVQHKO.js → main-BDVQAGAS.js} +1261 -242
  34. package/dist/main-BDVQAGAS.js.map +1 -0
  35. package/dist/{memory-NIBFAMY4.js → memory-4RGVLPKG.js} +6 -6
  36. package/dist/operations-EQGOFCBD.js +24 -0
  37. package/dist/operations-EQGOFCBD.js.map +1 -0
  38. package/dist/{rerank-Q7MIFNKA.js → rerank-3P3C2UHN.js} +4 -4
  39. package/dist/{summaries-TSE44KUQ.js → summaries-ZBV5IN7Y.js} +6 -6
  40. package/dist/summaries-ZBV5IN7Y.js.map +1 -0
  41. package/dist/{zvec-F27AR357.js → zvec-MAPSJQSR.js} +3 -3
  42. package/dist/zvec-MAPSJQSR.js.map +1 -0
  43. package/package.json +6 -2
  44. package/dist/chunk-5OWZVZSO.js.map +0 -1
  45. package/dist/chunk-K63EOA4B.js.map +0 -1
  46. package/dist/chunk-OLFCOR4U.js +0 -8580
  47. package/dist/chunk-OLFCOR4U.js.map +0 -1
  48. package/dist/lean-command-D6TZJEFX.js +0 -13
  49. package/dist/main-BFDVQHKO.js.map +0 -1
  50. /package/dist/{chunk-ITGRANYW.js.map → chunk-6MKEIDX5.js.map} +0 -0
  51. /package/dist/{chunk-IBMJYIEP.js.map → chunk-L5AYZC3F.js.map} +0 -0
  52. /package/dist/{chunk-3ZELDCR3.js.map → chunk-PCE4STAY.js.map} +0 -0
  53. /package/dist/{chunk-TI5TQD6D.js.map → chunk-QDBDYCM2.js.map} +0 -0
  54. /package/dist/{chunk-DSN5CEHO.js.map → chunk-ROQTT5ZO.js.map} +0 -0
  55. /package/dist/{chunk-IE2OUO54.js.map → chunk-UFZD3JAA.js.map} +0 -0
  56. /package/dist/{config-S2TULOMK.js.map → cloud-GP6G3EAK.js.map} +0 -0
  57. /package/dist/{lean-command-D6TZJEFX.js.map → config-KFEHLV6W.js.map} +0 -0
  58. /package/dist/{summaries-TSE44KUQ.js.map → lean-command-DA4ZNKG3.js.map} +0 -0
  59. /package/dist/{zvec-F27AR357.js.map → local-3NGNESNB.js.map} +0 -0
  60. /package/dist/{memory-NIBFAMY4.js.map → memory-4RGVLPKG.js.map} +0 -0
  61. /package/dist/{rerank-Q7MIFNKA.js.map → rerank-3P3C2UHN.js.map} +0 -0
package/dist/cli/index.js CHANGED
@@ -3,13 +3,13 @@
3
3
  // src/cli/index.ts
4
4
  var [command, subcommand] = process.argv.slice(2);
5
5
  if (command === "hooks" && subcommand === "lean") {
6
- const { runLeanHookCommand } = await import("../lean-command-D6TZJEFX.js");
6
+ const { runLeanHookCommand } = await import("../lean-command-DA4ZNKG3.js");
7
7
  await runLeanHookCommand();
8
8
  } else if (command === "hooks" && subcommand === "pretool") {
9
9
  const { runPreToolHookCommand } = await import("../pretool-command-MQQ2UNQM.js");
10
10
  await runPreToolHookCommand();
11
11
  } else {
12
- const { createCli } = await import("../main-BFDVQHKO.js");
12
+ const { createCli } = await import("../main-BDVQAGAS.js");
13
13
  await createCli().parseAsync();
14
14
  }
15
15
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,17 @@
1
+ import {
2
+ HF_ROUTER_BASE_URL,
3
+ OPENROUTER_BASE_URL,
4
+ OpenRouterEmbeddingProvider,
5
+ rerankHuggingFace,
6
+ rerankOpenRouter
7
+ } from "./chunk-KYK6RPAJ.js";
8
+ import "./chunk-JMWJ7V6Y.js";
9
+ import "./chunk-PZ5AY32C.js";
10
+ export {
11
+ HF_ROUTER_BASE_URL,
12
+ OPENROUTER_BASE_URL,
13
+ OpenRouterEmbeddingProvider,
14
+ rerankHuggingFace,
15
+ rerankOpenRouter
16
+ };
17
+ //# sourceMappingURL=cloud-GP6G3EAK.js.map
@@ -1,5 +1,17 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ /** Identity of the coordinate system, including provider preprocessing. */
4
+ type EmbeddingSpace = {
5
+ model: string;
6
+ revision: string;
7
+ schema: string;
8
+ dimensions: number;
9
+ };
10
+ type QueryEmbedding = {
11
+ vector: number[];
12
+ space: EmbeddingSpace;
13
+ };
14
+
3
15
  type ProviderCallType = "embedding" | "llm";
4
16
  type ProviderCallStatus = "success" | "failed" | "timeout" | "rate_limited" | "gated" | "fallback";
5
17
  type ProviderCallMetadata = {
@@ -38,13 +50,24 @@ type TextGenerationResponse = {
38
50
  text: string;
39
51
  };
40
52
  type ModelProvider = {
53
+ /** Set when the provider has one fixed embedding space (known before any call). */
54
+ readonly space?: EmbeddingSpace;
41
55
  embed(request: EmbeddingRequest): Promise<EmbeddingResponse>;
42
56
  generateText(request: TextGenerationRequest): Promise<TextGenerationResponse>;
43
57
  };
44
58
 
45
59
  type ProviderConfig = {
46
- type: "huggingface";
60
+ /**
61
+ * `local`: transformers.js on this machine (default). `huggingface`: the
62
+ * hosted Inference API (HF_TOKEN). `openrouter`: OpenRouter embeddings
63
+ * (OPENROUTER_API_KEY). Hosted models must return 384-d vectors.
64
+ */
65
+ type: "local" | "huggingface" | "openrouter";
47
66
  apiKey?: string;
67
+ /** Hosted embedding model id (ignored for `local`). */
68
+ model?: string;
69
+ /** Cosine floor for dense recall; overrides the built-in calibration (`models calibrate`). */
70
+ relevanceFloor?: number;
48
71
  };
49
72
  type WorkerConfig = {
50
73
  pollIntervalMs?: number;
@@ -436,6 +459,8 @@ type MemoryRepository = {
436
459
  getReadyEmbeddings(namespaceId: string, limit: number, space?: string): Promise<ReadyEmbedding[]>;
437
460
  /** Rank every compatible visible vector (own + live shares) before applying the limit. */
438
461
  searchSimilarEmbeddings(input: SimilaritySearchInput): Promise<SimilaritySearchResult>;
462
+ /** Reset the namespace's ready/failed vectors of any other space to pending; returns the count. */
463
+ requeueEmbeddingsOutsideSpace(namespaceId: string, embeddingSpace: string): Promise<number>;
439
464
  /** Search durable facts across every session, including pending/failed embeddings. */
440
465
  searchFactsLexically(namespaceId: string, query: string, limit: number): Promise<LexicalFactSearchResult>;
441
466
  getRecentInteractions(namespaceId: string, sessionId: string, limit: number): Promise<RecentInteraction[]>;
@@ -469,18 +494,6 @@ type MemoryRepository = {
469
494
  getVectorIndexHealth(namespaceId?: string): Promise<VectorIndexHealth>;
470
495
  };
471
496
 
472
- /** Identity of the coordinate system, including provider preprocessing. */
473
- type EmbeddingSpace = {
474
- model: string;
475
- revision: string;
476
- schema: string;
477
- dimensions: number;
478
- };
479
- type QueryEmbedding = {
480
- vector: number[];
481
- space: EmbeddingSpace;
482
- };
483
-
484
497
  type ConflictMode = "all" | "latest" | "highest_confidence";
485
498
  type PlanInput = {
486
499
  namespace: string;
@@ -574,8 +587,14 @@ declare function createTracer(env?: NodeJS.ProcessEnv): Tracer;
574
587
  declare const codeBuddyConfigSchema: z.ZodObject<{
575
588
  postgresUrl: z.ZodString;
576
589
  provider: z.ZodObject<{
577
- type: z.ZodLiteral<"huggingface">;
590
+ type: z.ZodEnum<{
591
+ local: "local";
592
+ huggingface: "huggingface";
593
+ openrouter: "openrouter";
594
+ }>;
578
595
  apiKey: z.ZodOptional<z.ZodString>;
596
+ model: z.ZodOptional<z.ZodString>;
597
+ relevanceFloor: z.ZodOptional<z.ZodNumber>;
579
598
  }, z.core.$strip>;
580
599
  namespace: z.ZodString;
581
600
  projectRoot: z.ZodOptional<z.ZodString>;
@@ -778,14 +797,24 @@ declare class CodeBuddy {
778
797
  private namespaceId;
779
798
  private initialized;
780
799
  constructor(config: CodeBuddyConfig, deps?: CodeBuddyDependencies);
781
- init(): Promise<CodeBuddyStatus>;
800
+ init(options?: {
801
+ startWorker?: boolean;
802
+ }): Promise<CodeBuddyStatus>;
782
803
  shutdown(): Promise<void>;
783
804
  getWorker(): EmbeddingWorker;
784
805
  remember(input: RememberInput): Promise<RememberResult>;
785
806
  rememberBatch(items: RememberBatchItem[]): Promise<RememberResult[]>;
786
807
  recall(input: RecallInput): Promise<RecallResult>;
787
- /** Score only eligible file facts supplied by the context engine, without generating text. */
788
- rankContextFacts(task: string, factIds: string[]): Promise<Record<string, number>>;
808
+ /**
809
+ * Dense evidence for file facts supplied by the context engine: the cosine of
810
+ * each fact whose stored vector clears the embedding model's calibrated
811
+ * `relevanceFloor` against the task (exact pgvector search over the
812
+ * namespace). Facts below the floor, of unknown models, or on any failure or
813
+ * timeout are simply absent, so callers fall back to lexical evidence.
814
+ */
815
+ rankContextFacts(task: string, factIds: string[], options?: {
816
+ timeoutMs?: number;
817
+ }): Promise<Record<string, number>>;
789
818
  private embedQueryWithFallback;
790
819
  /**
791
820
  * Share facts owned by the configured namespace. A reference is a live grant
@@ -836,6 +865,8 @@ type ReindexResult = {
836
865
  summaries: ReindexCounts;
837
866
  /** Per-file problems, capped at {@link MAX_REPORTED_FAILURES}; counts stay exact. */
838
867
  failures: ReindexFailure[];
868
+ /** Ready vectors from another embedding space, queued to be embedded again. */
869
+ reembedding?: number;
839
870
  };
840
871
 
841
- export { type AgentWriteBreakdown as A, type ShareResult as B, CodeBuddy as C, type SkipReason as D, type EmbeddingRequest as E, FACT_CATEGORIES as F, type SummaryFile as G, type SummaryFileWrite as H, INCIDENT_SEVERITIES as I, type TraceSpan as J, type Tracer as K, type ListedFact as L, type MemoryRepository as M, type NamespaceSummary as N, type UnshareResult as O, type PlannedContext as P, type QueryEmbedding as Q, type RecallInput as R, type ShareInput as S, type TextGenerationRequest as T, type UnshareInput as U, type WorkerState as V, type WorkerConfig as W, createTracer as X, isLangSmithTracingEnabled as Y, type CodeBuddyConfig as a, MemoryFileStore as b, type ModelProvider as c, type ContextPolicy as d, type PlanInput as e, type ProviderDiagnosticsHook as f, type EmbeddingResponse as g, type TextGenerationResponse as h, type CodeBuddyDependencies as i, type CodeBuddyStatus as j, type ConflictMode as k, type EmbeddingSpace as l, EmbeddingWorker as m, type FactCategory as n, type FactFile as o, type FactFileWrite as p, type ForgetResult as q, type IncidentFactFile as r, type IncidentSeverity as s, type MemoryWriteType as t, type PlannedMessage as u, type PlannerStats as v, type RecallResult as w, type RememberBatchItem as x, type RememberInput as y, type RememberResult as z };
872
+ export { type AgentWriteBreakdown as A, type ShareResult as B, CodeBuddy as C, type SkipReason as D, type EmbeddingSpace as E, FACT_CATEGORIES as F, type SummaryFile as G, type SummaryFileWrite as H, INCIDENT_SEVERITIES as I, type TraceSpan as J, type Tracer as K, type ListedFact as L, type MemoryRepository as M, type NamespaceSummary as N, type UnshareResult as O, type PlannedContext as P, type QueryEmbedding as Q, type RecallInput as R, type ShareInput as S, type TextGenerationRequest as T, type UnshareInput as U, type WorkerState as V, type WorkerConfig as W, createTracer as X, isLangSmithTracingEnabled as Y, type CodeBuddyConfig as a, MemoryFileStore as b, type ModelProvider as c, type ContextPolicy as d, type PlanInput as e, type ProviderDiagnosticsHook as f, type EmbeddingRequest as g, type EmbeddingResponse as h, type TextGenerationResponse as i, type CodeBuddyDependencies as j, type CodeBuddyStatus as k, type ConflictMode as l, EmbeddingWorker as m, type FactCategory as n, type FactFile as o, type FactFileWrite as p, type ForgetResult as q, type IncidentFactFile as r, type IncidentSeverity as s, type MemoryWriteType as t, type PlannedMessage as u, type PlannerStats as v, type RecallResult as w, type RememberBatchItem as x, type RememberInput as y, type RememberResult as z };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  redactLlmKeys,
3
3
  resolveLlmConfig
4
- } from "./chunk-ITGRANYW.js";
5
- import "./chunk-K63EOA4B.js";
4
+ } from "./chunk-6MKEIDX5.js";
5
+ import "./chunk-776EQXDV.js";
6
6
  import "./chunk-PZ5AY32C.js";
7
7
  export {
8
8
  redactLlmKeys,
9
9
  resolveLlmConfig
10
10
  };
11
- //# sourceMappingURL=config-S2TULOMK.js.map
11
+ //# sourceMappingURL=config-KFEHLV6W.js.map
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as CodeBuddyConfig, M as MemoryRepository, b as MemoryFileStore, C as CodeBuddy, N as NamespaceSummary, A as AgentWriteBreakdown, L as ListedFact, c as ModelProvider, d as ContextPolicy, e as PlanInput, P as PlannedContext, f as ProviderDiagnosticsHook, E as EmbeddingRequest, g as EmbeddingResponse, T as TextGenerationRequest, h as TextGenerationResponse } from './codebuddy-D2xJ6hFk.js';
2
- export { i as CodeBuddyDependencies, j as CodeBuddyStatus, k as ConflictMode, l as EmbeddingSpace, m as EmbeddingWorker, F as FACT_CATEGORIES, n as FactCategory, o as FactFile, p as FactFileWrite, q as ForgetResult, I as INCIDENT_SEVERITIES, r as IncidentFactFile, s as IncidentSeverity, t as MemoryWriteType, u as PlannedMessage, v as PlannerStats, Q as QueryEmbedding, R as RecallInput, w as RecallResult, x as RememberBatchItem, y as RememberInput, z as RememberResult, S as ShareInput, B as ShareResult, D as SkipReason, G as SummaryFile, H as SummaryFileWrite, J as TraceSpan, K as Tracer, U as UnshareInput, O as UnshareResult, W as WorkerConfig, V as WorkerState, X as createTracer, Y as isLangSmithTracingEnabled } from './codebuddy-D2xJ6hFk.js';
1
+ import { a as CodeBuddyConfig, M as MemoryRepository, b as MemoryFileStore, C as CodeBuddy, N as NamespaceSummary, A as AgentWriteBreakdown, L as ListedFact, c as ModelProvider, d as ContextPolicy, e as PlanInput, P as PlannedContext, E as EmbeddingSpace, f as ProviderDiagnosticsHook, g as EmbeddingRequest, h as EmbeddingResponse, T as TextGenerationRequest, i as TextGenerationResponse } from './codebuddy-DM-i0Fu5.js';
2
+ export { j as CodeBuddyDependencies, k as CodeBuddyStatus, l as ConflictMode, m as EmbeddingWorker, F as FACT_CATEGORIES, n as FactCategory, o as FactFile, p as FactFileWrite, q as ForgetResult, I as INCIDENT_SEVERITIES, r as IncidentFactFile, s as IncidentSeverity, t as MemoryWriteType, u as PlannedMessage, v as PlannerStats, Q as QueryEmbedding, R as RecallInput, w as RecallResult, x as RememberBatchItem, y as RememberInput, z as RememberResult, S as ShareInput, B as ShareResult, D as SkipReason, G as SummaryFile, H as SummaryFileWrite, J as TraceSpan, K as Tracer, U as UnshareInput, O as UnshareResult, W as WorkerConfig, V as WorkerState, X as createTracer, Y as isLangSmithTracingEnabled } from './codebuddy-DM-i0Fu5.js';
3
3
  import { z } from 'zod';
4
4
  import * as drizzle_orm_postgres_js from 'drizzle-orm/postgres-js';
5
5
  import postgres from 'postgres';
@@ -138,6 +138,9 @@ type CreateRuntimeOptions = {
138
138
  */
139
139
  autoBootstrap?: boolean;
140
140
  repositoryRoot?: string;
141
+ /** false: read-only use (the prompt hook) that must not start embedding jobs. */
142
+ startWorker?: boolean;
143
+ connectTimeoutSeconds?: number;
141
144
  };
142
145
  declare function createRuntime(config?: CodeBuddyConfig, options?: CreateRuntimeOptions): Promise<RuntimeHandle>;
143
146
  declare function encodeFactCursor(fact: {
@@ -1990,6 +1993,8 @@ declare namespace schema {
1990
1993
  type DatabaseClientConfig = {
1991
1994
  postgresUrl: string;
1992
1995
  maxConnections?: number;
1996
+ /** postgres.js waits 30 s by default; latency-bound callers (hooks) pass less. */
1997
+ connectTimeoutSeconds?: number;
1993
1998
  };
1994
1999
  type DatabaseClient = ReturnType<typeof createDatabaseClient>;
1995
2000
  declare function createDatabaseClient(config: DatabaseClientConfig): {
@@ -2323,6 +2328,12 @@ type ModelDefinition = {
2323
2328
  contextWindow?: number;
2324
2329
  dailyCallBudget?: number;
2325
2330
  supportsBatch?: boolean;
2331
+ /**
2332
+ * Cosine at or above which a memory counts as semantically relevant to a
2333
+ * task on its own (without a shared word or path). Calibrated per model by
2334
+ * `npm run eval:semantic`; cosines are not comparable across models.
2335
+ */
2336
+ relevanceFloor?: number;
2326
2337
  };
2327
2338
 
2328
2339
  type ResilienceOptions = {
@@ -2351,11 +2362,20 @@ declare class HuggingFaceProvider implements ModelProvider {
2351
2362
  private readonly llmModels;
2352
2363
  private readonly resilience;
2353
2364
  private readonly onDiagnostic;
2365
+ /** The primary model's space: `reindex` re-embeds rows from any other (incl. fallback) space. */
2366
+ readonly space?: EmbeddingSpace;
2354
2367
  constructor(options?: HuggingFaceProviderOptions);
2355
2368
  embed(request: EmbeddingRequest): Promise<EmbeddingResponse>;
2356
2369
  generateText(request: TextGenerationRequest): Promise<TextGenerationResponse>;
2357
2370
  }
2358
2371
 
2372
+ declare class LocalModelProvider implements ModelProvider {
2373
+ readonly space: EmbeddingSpace;
2374
+ /** `request.model` is ignored: one provider is one embedding space. */
2375
+ embed(request: EmbeddingRequest): Promise<EmbeddingResponse>;
2376
+ generateText(): Promise<TextGenerationResponse>;
2377
+ }
2378
+
2359
2379
  /**
2360
2380
  * Risk model (Proposal 03.1). A risk assessment is a deterministic,
2361
2381
  * evidence-backed ranking of the files in a pending change set. Every score
@@ -2524,4 +2544,4 @@ type PolicySignalOptions = {
2524
2544
  declare function createPolicySignal(options: PolicySignalOptions): Signal;
2525
2545
  declare function readPolicyFile(path: string): Promise<PolicyFile>;
2526
2546
 
2527
- export { ACTIVE_PLAN_STATUSES, type AbandonOptions, ActivePlanExistsError, type AmendPlanPatch, type ArchitectureMap, type Assessment, type AssessmentInput, type AssessmentStats, type AssessorOptions, type BudgetClampResult, type ChurnSignalOptions, CodeBuddy, CodeBuddyConfig, type CompleteOptions, ContextPolicy, type CreatePlanInput, DefaultPolicy, type DefaultPolicyOptions, EmbeddingRequest, EmbeddingResponse, type Evidence, HuggingFaceProvider, type HuggingFaceProviderOptions, type IncidentSignalOptions, type MapQuery, MemoryFileStore, MemoryRepository, type MigrationPreview, ModelProvider, type ModuleEdge, type ModuleNode, PLAN_POLICIES, PLAN_STATUSES, PlanFileStore, type PlanFrontMatter, PlanInput, PlanLifecycle, PlanLockError, type PlanLockOptions, PlanNotFoundError, type PlanPolicy, type PlanSpec, type PlanStatus, PlanTransitionError, PlanValidationError, type PlanWrite, PlannedContext, type PlannedFile, type PlannedTest, type PolicyFile, type PolicyRule, type PolicySignalOptions, type RiskAssessRequest, RiskAssessor, type RiskCategory, type RiskItem, type Signal, type SignalContribution, type SignalStat, assessRisk, buildArchitectureMap, checkConfigPermissions, clampBudgetForCallerModel, configPath, countTokens, createChurnSignal, createIncidentSignal, createPolicySignal, createPostgresRepository, createRuntime, decodeFactCursor, encodeFactCursor, initConfigFile, initProjectScaffold, inspectNamespace, listFactsPage, loadPlanPolicy, loadRuntimeConfig, mcpToolInputSchemas, migrateMemoryToFiles, neighbours, queryMap, readPolicyFile, redactSecrets, registerCodeBuddyTools, resolveRiskPaths, runDoctor, setPlanPolicy, startMcpServer };
2547
+ export { ACTIVE_PLAN_STATUSES, type AbandonOptions, ActivePlanExistsError, type AmendPlanPatch, type ArchitectureMap, type Assessment, type AssessmentInput, type AssessmentStats, type AssessorOptions, type BudgetClampResult, type ChurnSignalOptions, CodeBuddy, CodeBuddyConfig, type CompleteOptions, ContextPolicy, type CreatePlanInput, DefaultPolicy, type DefaultPolicyOptions, EmbeddingRequest, EmbeddingResponse, EmbeddingSpace, type Evidence, HuggingFaceProvider, type HuggingFaceProviderOptions, type IncidentSignalOptions, LocalModelProvider, type MapQuery, MemoryFileStore, MemoryRepository, type MigrationPreview, ModelProvider, type ModuleEdge, type ModuleNode, PLAN_POLICIES, PLAN_STATUSES, PlanFileStore, type PlanFrontMatter, PlanInput, PlanLifecycle, PlanLockError, type PlanLockOptions, PlanNotFoundError, type PlanPolicy, type PlanSpec, type PlanStatus, PlanTransitionError, PlanValidationError, type PlanWrite, PlannedContext, type PlannedFile, type PlannedTest, type PolicyFile, type PolicyRule, type PolicySignalOptions, type RiskAssessRequest, RiskAssessor, type RiskCategory, type RiskItem, type Signal, type SignalContribution, type SignalStat, assessRisk, buildArchitectureMap, checkConfigPermissions, clampBudgetForCallerModel, configPath, countTokens, createChurnSignal, createIncidentSignal, createPolicySignal, createPostgresRepository, createRuntime, decodeFactCursor, encodeFactCursor, initConfigFile, initProjectScaffold, inspectNamespace, listFactsPage, loadPlanPolicy, loadRuntimeConfig, mcpToolInputSchemas, migrateMemoryToFiles, neighbours, queryMap, readPolicyFile, redactSecrets, registerCodeBuddyTools, resolveRiskPaths, runDoctor, setPlanPolicy, startMcpServer };
package/dist/index.js CHANGED
@@ -1,13 +1,6 @@
1
1
  import {
2
2
  ACTIVE_PLAN_STATUSES,
3
3
  ActivePlanExistsError,
4
- CodeBuddy,
5
- DefaultPolicy,
6
- EmbeddingWorker,
7
- FACT_CATEGORIES,
8
- HuggingFaceProvider,
9
- INCIDENT_SEVERITIES,
10
- MemoryFileStore,
11
4
  PLAN_STATUSES,
12
5
  PlanFileStore,
13
6
  PlanLifecycle,
@@ -20,35 +13,50 @@ import {
20
13
  createChurnSignal,
21
14
  createIncidentSignal,
22
15
  createPolicySignal,
23
- createPostgresRepository,
24
- createRuntime,
25
- createTracer,
26
- decodeFactCursor,
27
- encodeFactCursor,
28
- inspectNamespace,
29
- isLangSmithTracingEnabled,
30
- listFactsPage,
31
16
  mcpToolInputSchemas,
32
17
  migrateMemoryToFiles,
33
18
  readPolicyFile,
34
19
  registerCodeBuddyTools,
35
20
  resolveRiskPaths,
36
- runDoctor,
37
21
  startMcpServer
38
- } from "./chunk-OLFCOR4U.js";
39
- import {
40
- clampBudgetForCallerModel,
41
- countTokens
42
- } from "./chunk-5OWZVZSO.js";
43
- import "./chunk-TI5TQD6D.js";
22
+ } from "./chunk-Z5QB367W.js";
23
+ import "./chunk-IHQM2ZDV.js";
24
+ import "./chunk-CQPCHMBS.js";
44
25
  import {
45
26
  buildArchitectureMap,
46
27
  neighbours,
47
28
  queryMap
48
- } from "./chunk-IBMJYIEP.js";
29
+ } from "./chunk-L5AYZC3F.js";
49
30
  import "./chunk-PQK3GKZH.js";
50
- import "./chunk-IHQM2ZDV.js";
31
+ import {
32
+ CodeBuddy,
33
+ DefaultPolicy,
34
+ EmbeddingWorker,
35
+ FACT_CATEGORIES,
36
+ HuggingFaceProvider,
37
+ INCIDENT_SEVERITIES,
38
+ MemoryFileStore,
39
+ createPostgresRepository,
40
+ createRuntime,
41
+ createTracer,
42
+ decodeFactCursor,
43
+ encodeFactCursor,
44
+ inspectNamespace,
45
+ isLangSmithTracingEnabled,
46
+ listFactsPage,
47
+ runDoctor
48
+ } from "./chunk-JDZ3VK26.js";
51
49
  import "./chunk-GDJH7XJC.js";
50
+ import {
51
+ clampBudgetForCallerModel,
52
+ countTokens
53
+ } from "./chunk-4BYGTEJT.js";
54
+ import "./chunk-KYK6RPAJ.js";
55
+ import {
56
+ LocalModelProvider
57
+ } from "./chunk-3XYQGFPB.js";
58
+ import "./chunk-JMWJ7V6Y.js";
59
+ import "./chunk-QDBDYCM2.js";
52
60
  import {
53
61
  PLAN_POLICIES,
54
62
  checkConfigPermissions,
@@ -59,7 +67,7 @@ import {
59
67
  loadRuntimeConfig,
60
68
  redactSecrets,
61
69
  setPlanPolicy
62
- } from "./chunk-K63EOA4B.js";
70
+ } from "./chunk-776EQXDV.js";
63
71
  import "./chunk-PZ5AY32C.js";
64
72
  export {
65
73
  ACTIVE_PLAN_STATUSES,
@@ -70,6 +78,7 @@ export {
70
78
  FACT_CATEGORIES,
71
79
  HuggingFaceProvider,
72
80
  INCIDENT_SEVERITIES,
81
+ LocalModelProvider,
73
82
  MemoryFileStore,
74
83
  PLAN_POLICIES,
75
84
  PLAN_STATUSES,
@@ -1,4 +1,4 @@
1
- import { P as PlannedContext, C as CodeBuddy } from '../codebuddy-D2xJ6hFk.js';
1
+ import { P as PlannedContext, C as CodeBuddy } from '../codebuddy-DM-i0Fu5.js';
2
2
  import 'zod';
3
3
 
4
4
  type CodeBuddyCheckpointerOptions = {
@@ -0,0 +1,15 @@
1
+ import {
2
+ runLeanHookCommand
3
+ } from "./chunk-ROQTT5ZO.js";
4
+ import "./chunk-PYLH4MH5.js";
5
+ import "./chunk-CQPCHMBS.js";
6
+ import "./chunk-L5AYZC3F.js";
7
+ import "./chunk-PQK3GKZH.js";
8
+ import "./chunk-4BYGTEJT.js";
9
+ import "./chunk-JMWJ7V6Y.js";
10
+ import "./chunk-776EQXDV.js";
11
+ import "./chunk-PZ5AY32C.js";
12
+ export {
13
+ runLeanHookCommand
14
+ };
15
+ //# sourceMappingURL=lean-command-DA4ZNKG3.js.map
@@ -0,0 +1,13 @@
1
+ import {
2
+ LocalModelProvider,
3
+ modelCacheDir,
4
+ rerankLocally
5
+ } from "./chunk-3XYQGFPB.js";
6
+ import "./chunk-JMWJ7V6Y.js";
7
+ import "./chunk-PZ5AY32C.js";
8
+ export {
9
+ LocalModelProvider,
10
+ modelCacheDir,
11
+ rerankLocally
12
+ };
13
+ //# sourceMappingURL=local-3NGNESNB.js.map