@easbot/codebase 0.3.36 → 0.3.39

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/dist/index.d.ts CHANGED
@@ -1,9 +1,13 @@
1
+ import * as _easbot_types from '@easbot/types';
1
2
  import { KnowledgeSearchOptions, SearchConfig, BaseSearchResult, KnowledgeLlmStatus, CodebaseKnowledgeConfigWithModels, CodebaseKnowledgeConfig, IGlobal, IInstance } from '@easbot/types';
2
3
  export { CodebaseKnowledgeConfig, CodebaseKnowledgeConfigWithModels, SyncConfig } from '@easbot/types';
3
4
  import z$1, { z } from 'zod';
4
5
  import { EmbeddingModelV3 } from '@ai-sdk/provider';
5
6
  export { EmbeddingModelV3 as EmbeddingModel } from '@ai-sdk/provider';
6
7
  import { ILLMInitConfig, ILLMCapabilities, LanguageModelRef, EmbeddingModelRef, ILLM } from '@easbot/llm';
8
+ export { Truncate } from '@easbot/llm';
9
+ export { renderKnowledgeStatus } from '@easbot/terminal';
10
+ import { Plugin, PluginManifest } from '@easbot/plugin';
7
11
  export { ServiceError, ServiceError as ServiceErrorInstance } from '@easbot/utils';
8
12
 
9
13
  type IndexState = 'uninitialized' | 'indexing' | 'complete' | 'partial' | 'failed' | 'stale';
@@ -1957,6 +1961,163 @@ declare namespace Llm {
1957
1961
  }
1958
1962
  declare const llm: ILLM;
1959
1963
 
1964
+ declare const CodebasePlugin: Plugin;
1965
+
1966
+ declare const CODEBASE_PLUGIN_ID = "codebase";
1967
+ declare const CODEBASE_PLUGIN_VERSION = "0.3.39";
1968
+ declare const CODEBASE_PLUGIN_MANIFEST: PluginManifest;
1969
+
1970
+ declare const CodebaseTool: _easbot_types.ToolDefinition & {
1971
+ args: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
1972
+ operation: z$1.ZodLiteral<"search">;
1973
+ query: z$1.ZodString;
1974
+ kind: z$1.ZodOptional<z$1.ZodEnum<{
1975
+ function: "function";
1976
+ type: "type";
1977
+ method: "method";
1978
+ class: "class";
1979
+ interface: "interface";
1980
+ variable: "variable";
1981
+ route: "route";
1982
+ component: "component";
1983
+ const: "const";
1984
+ }>>;
1985
+ file: z$1.ZodOptional<z$1.ZodString>;
1986
+ language: z$1.ZodOptional<z$1.ZodString>;
1987
+ astType: z$1.ZodOptional<z$1.ZodString>;
1988
+ intent: z$1.ZodOptional<z$1.ZodString>;
1989
+ maxResults: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
1990
+ maxEdgesPerNode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
1991
+ includeContent: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
1992
+ enableFts: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
1993
+ }, z$1.core.$strip>, z$1.ZodObject<{
1994
+ operation: z$1.ZodLiteral<"node">;
1995
+ name: z$1.ZodOptional<z$1.ZodString>;
1996
+ nodeId: z$1.ZodOptional<z$1.ZodString>;
1997
+ file: z$1.ZodOptional<z$1.ZodString>;
1998
+ kind: z$1.ZodOptional<z$1.ZodEnum<{
1999
+ function: "function";
2000
+ type: "type";
2001
+ method: "method";
2002
+ class: "class";
2003
+ interface: "interface";
2004
+ variable: "variable";
2005
+ route: "route";
2006
+ component: "component";
2007
+ const: "const";
2008
+ }>>;
2009
+ includeEdges: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
2010
+ includeContent: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
2011
+ maxEdgesPerNode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
2012
+ }, z$1.core.$strip>, z$1.ZodObject<{
2013
+ operation: z$1.ZodLiteral<"context">;
2014
+ name: z$1.ZodOptional<z$1.ZodString>;
2015
+ nodeId: z$1.ZodOptional<z$1.ZodString>;
2016
+ file: z$1.ZodOptional<z$1.ZodString>;
2017
+ kind: z$1.ZodOptional<z$1.ZodEnum<{
2018
+ function: "function";
2019
+ type: "type";
2020
+ method: "method";
2021
+ class: "class";
2022
+ interface: "interface";
2023
+ variable: "variable";
2024
+ route: "route";
2025
+ component: "component";
2026
+ const: "const";
2027
+ }>>;
2028
+ depth: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
2029
+ maxNodes: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
2030
+ maxEdgesPerNode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
2031
+ direction: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
2032
+ incoming: "incoming";
2033
+ outgoing: "outgoing";
2034
+ both: "both";
2035
+ }>>>;
2036
+ relationTypes: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodArray<z$1.ZodString>, z$1.ZodString]>, z$1.ZodTransform<string[], string | string[]>>, z$1.ZodArray<z$1.ZodString>>>;
2037
+ }, z$1.core.$strip>, z$1.ZodObject<{
2038
+ operation: z$1.ZodLiteral<"impact">;
2039
+ name: z$1.ZodOptional<z$1.ZodString>;
2040
+ nodeId: z$1.ZodOptional<z$1.ZodString>;
2041
+ file: z$1.ZodOptional<z$1.ZodString>;
2042
+ kind: z$1.ZodOptional<z$1.ZodEnum<{
2043
+ function: "function";
2044
+ type: "type";
2045
+ method: "method";
2046
+ class: "class";
2047
+ interface: "interface";
2048
+ variable: "variable";
2049
+ route: "route";
2050
+ component: "component";
2051
+ const: "const";
2052
+ }>>;
2053
+ depth: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
2054
+ relationTypes: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodArray<z$1.ZodString>, z$1.ZodString]>, z$1.ZodTransform<string[], string | string[]>>, z$1.ZodArray<z$1.ZodString>>>;
2055
+ maxResults: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
2056
+ maxEdgesPerNode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
2057
+ }, z$1.core.$strip>, z$1.ZodObject<{
2058
+ operation: z$1.ZodLiteral<"callers">;
2059
+ name: z$1.ZodOptional<z$1.ZodString>;
2060
+ nodeId: z$1.ZodOptional<z$1.ZodString>;
2061
+ file: z$1.ZodOptional<z$1.ZodString>;
2062
+ kind: z$1.ZodOptional<z$1.ZodEnum<{
2063
+ function: "function";
2064
+ type: "type";
2065
+ method: "method";
2066
+ class: "class";
2067
+ interface: "interface";
2068
+ variable: "variable";
2069
+ route: "route";
2070
+ component: "component";
2071
+ const: "const";
2072
+ }>>;
2073
+ relationTypes: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodArray<z$1.ZodString>, z$1.ZodString]>, z$1.ZodTransform<string[], string | string[]>>, z$1.ZodArray<z$1.ZodString>>>;
2074
+ maxResults: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
2075
+ maxEdgesPerNode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
2076
+ }, z$1.core.$strip>, z$1.ZodObject<{
2077
+ operation: z$1.ZodLiteral<"callees">;
2078
+ name: z$1.ZodOptional<z$1.ZodString>;
2079
+ nodeId: z$1.ZodOptional<z$1.ZodString>;
2080
+ file: z$1.ZodOptional<z$1.ZodString>;
2081
+ kind: z$1.ZodOptional<z$1.ZodEnum<{
2082
+ function: "function";
2083
+ type: "type";
2084
+ method: "method";
2085
+ class: "class";
2086
+ interface: "interface";
2087
+ variable: "variable";
2088
+ route: "route";
2089
+ component: "component";
2090
+ const: "const";
2091
+ }>>;
2092
+ relationTypes: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodArray<z$1.ZodString>, z$1.ZodString]>, z$1.ZodTransform<string[], string | string[]>>, z$1.ZodArray<z$1.ZodString>>>;
2093
+ maxResults: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
2094
+ maxEdgesPerNode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
2095
+ }, z$1.core.$strip>, z$1.ZodObject<{
2096
+ operation: z$1.ZodLiteral<"explore">;
2097
+ query: z$1.ZodString;
2098
+ file: z$1.ZodOptional<z$1.ZodString>;
2099
+ kind: z$1.ZodOptional<z$1.ZodEnum<{
2100
+ function: "function";
2101
+ type: "type";
2102
+ method: "method";
2103
+ class: "class";
2104
+ interface: "interface";
2105
+ variable: "variable";
2106
+ route: "route";
2107
+ component: "component";
2108
+ const: "const";
2109
+ }>>;
2110
+ maxFiles: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
2111
+ maxSymbols: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
2112
+ maxEdgesPerNode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
2113
+ depth: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodPipe<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodNumber, z$1.ZodString]>, z$1.ZodTransform<number, string | number>>, z$1.ZodNumber>>>;
2114
+ includeContent: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodBoolean>>;
2115
+ intent: z$1.ZodOptional<z$1.ZodString>;
2116
+ }, z$1.core.$strip>, z$1.ZodObject<{
2117
+ operation: z$1.ZodLiteral<"status">;
2118
+ }, z$1.core.$strip>], "operation">;
2119
+ };
2120
+
1960
2121
  declare const I18n: {
1961
2122
  readonly defaultLocale: "zh-CN";
1962
2123
  readonly timeZone: "Asia/Shanghai";
@@ -2344,4 +2505,4 @@ declare namespace CodebaseCache {
2344
2505
  function getConfigPath(): Promise<string>;
2345
2506
  }
2346
2507
 
2347
- export { type ASTNodeType, CODEBASE_BUSINESS_CODES, CODEBASE_BUSINESS_HINTS, CODEBASE_JSON_REL_PATH, type CalleeEntry, type CalleesParams, type CalleesResult, type CallerEntry, type CallersParams, type CallersResult, CodeBase, type CodeKnowledgeGraphConfig, CodebaseCache, type CodebaseCliDeps, type CodebaseCliResult, type CodebaseConfig, CodebaseError, type CodebaseJson, CodebaseJsonSchema, type ContextInput, type ContextNode, type ContextParams, type ContextResult, DEFAULT_CODEBASE_JSON, DEFAULT_EMBEDDING_CONFIG, DEFAULT_INDEXER_CONFIG, DEFAULT_PARSER_CONFIG, DEFAULT_TOKENIZER_CONFIG, DatabaseManager, type DoctorParams, type DoctorResult, type Edge, EdgeExtractor, type EdgeQueryFilter, type EdgeWithNodes, type ExploreEntryPoint, type ExploreParams, type ExploreResult, type ExtractedEdge, type ExtractedNode, FILE_EXTENSION_MAP, type FileHashRecord, type FormattedEdge, type FormattedNode, type FormattedSearchHit, type GraphStatus, type HealthCheckResult, type HybridSearchResult, type ICodebase, type IEdgeExtractor, type INodeExtractor, type IParser, type ImpactBucket, type ImpactBucketEntry, type ImpactParams, type ImpactResult, type IndexResult, Indexer, type IndexerConfig, type Language, Llm, type LlmInitConfig, type LlmModels, type LlmOptions, type Node, NodeExtractor, type NodeKind, type NodeParams, type NodeQueryFilter, type NodeResult, type NodeWithEdges, ParserManager, type PendingFile, type ProgressCallback, QueryInterface, type RelationQueryOptions, type RelationType, type RenderOptions, SECTION_END, SECTION_MARKER, type SearchHit, type SearchOptions, type SearchParams, type SearchResult$1 as SearchResult, type ServiceContext, type StatusParams, type StatusResult, type SyncResult, type TruncateOptions, type TruncateResult, callees, callers, codebaseConfigPath, codebaseDbPath, context, createCodebase, createEdgeExtractor, createIndexer, createNodeExtractor, createQueryInterface, defaultRiskLabel, doctor, easbotDir, emptyFormattedNode, explore, formatCodebaseEdge, formatCodebaseNode, formatCodebaseSearchHits, getGlobal, getHomeDir, getInstance, getParserManager, getProjectDirectory, getXdgCache, getXdgConfig, getXdgData, getXdgState, handleCodebaseCli, impact, initCodebase, llm, node, registerBusinessErrors, renderBanner, renderCalleesFromResult, renderCallersFromResult, renderContext, renderContextFromQuery, renderExploreFromResult, renderHelp, renderImpact, renderImpactFromTuples, renderNeighborList, renderNode, renderNodeDetail, renderSearch, renderSearchResult, renderStatusFromResult, resetGlobalAdapter, resetInstanceAdapter, resetParserManager, search, setGlobalAdapter, setInstanceAdapter, status, truncateAtSectionBoundary, truncateAtSectionBoundarySync };
2508
+ export { type ASTNodeType, CODEBASE_BUSINESS_CODES, CODEBASE_BUSINESS_HINTS, CODEBASE_JSON_REL_PATH, CODEBASE_PLUGIN_ID, CODEBASE_PLUGIN_MANIFEST, CODEBASE_PLUGIN_VERSION, type CalleeEntry, type CalleesParams, type CalleesResult, type CallerEntry, type CallersParams, type CallersResult, CodeBase, type CodeKnowledgeGraphConfig, CodebaseCache, type CodebaseCliDeps, type CodebaseCliResult, type CodebaseConfig, CodebaseError, type CodebaseJson, CodebaseJsonSchema, CodebasePlugin, CodebasePlugin as CodebasePluginEntry, CodebaseTool, type ContextInput, type ContextNode, type ContextParams, type ContextResult, DEFAULT_CODEBASE_JSON, DEFAULT_EMBEDDING_CONFIG, DEFAULT_INDEXER_CONFIG, DEFAULT_PARSER_CONFIG, DEFAULT_TOKENIZER_CONFIG, DatabaseManager, type DoctorParams, type DoctorResult, type Edge, EdgeExtractor, type EdgeQueryFilter, type EdgeWithNodes, type ExploreEntryPoint, type ExploreParams, type ExploreResult, type ExtractedEdge, type ExtractedNode, FILE_EXTENSION_MAP, type FileHashRecord, type FormattedEdge, type FormattedNode, type FormattedSearchHit, type GraphStatus, type HealthCheckResult, type HybridSearchResult, type ICodebase, type IEdgeExtractor, type INodeExtractor, type IParser, type ImpactBucket, type ImpactBucketEntry, type ImpactParams, type ImpactResult, type IndexResult, Indexer, type IndexerConfig, type Language, Llm, type LlmInitConfig, type LlmModels, type LlmOptions, type Node, NodeExtractor, type NodeKind, type NodeParams, type NodeQueryFilter, type NodeResult, type NodeWithEdges, ParserManager, type PendingFile, type ProgressCallback, QueryInterface, type RelationQueryOptions, type RelationType, type RenderOptions, SECTION_END, SECTION_MARKER, type SearchHit, type SearchOptions, type SearchParams, type SearchResult$1 as SearchResult, type ServiceContext, type StatusParams, type StatusResult, type SyncResult, type TruncateOptions, type TruncateResult, callees, callers, codebaseConfigPath, codebaseDbPath, context, createCodebase, createEdgeExtractor, createIndexer, createNodeExtractor, createQueryInterface, defaultRiskLabel, doctor, easbotDir, emptyFormattedNode, explore, formatCodebaseEdge, formatCodebaseNode, formatCodebaseSearchHits, getGlobal, getHomeDir, getInstance, getParserManager, getProjectDirectory, getXdgCache, getXdgConfig, getXdgData, getXdgState, handleCodebaseCli, impact, initCodebase, llm, node, registerBusinessErrors, renderBanner, renderCalleesFromResult, renderCallersFromResult, renderContext, renderContextFromQuery, renderExploreFromResult, renderHelp, renderImpact, renderImpactFromTuples, renderNeighborList, renderNode, renderNodeDetail, renderSearch, renderSearchResult, renderStatusFromResult, resetGlobalAdapter, resetInstanceAdapter, resetParserManager, search, setGlobalAdapter, setInstanceAdapter, status, truncateAtSectionBoundary, truncateAtSectionBoundarySync };
package/dist/index.mjs CHANGED
@@ -1 +1,7 @@
1
- export{d as handleCodebaseCli,a as renderBanner,b as renderHelp}from'./chunks/chunk-OUJNWRIY.mjs';export{p as SECTION_END,o as SECTION_MARKER,f as callees,e as callers,c as context,u as defaultRiskLabel,i as doctor,n as emptyFormattedNode,g as explore,l as formatCodebaseEdge,k as formatCodebaseNode,m as formatCodebaseSearchHits,d as impact,j as initCodebase,b as node,C as renderCalleesFromResult,B as renderCallersFromResult,v as renderContext,A as renderContextFromQuery,F as renderExploreFromResult,t as renderImpact,z as renderImpactFromTuples,x as renderNeighborList,w as renderNode,E as renderNodeDetail,y as renderSearch,s as renderSearchResult,D as renderStatusFromResult,a as search,h as status,q as truncateAtSectionBoundary,r as truncateAtSectionBoundarySync}from'./chunks/chunk-FZNMPXUO.mjs';export{a as CODEBASE_JSON_REL_PATH,b as CodebaseCache}from'./chunks/chunk-ETCTXAXR.mjs';export{c as getGlobal,g as getHomeDir,f as getInstance,l as getProjectDirectory,k as getXdgCache,i as getXdgConfig,h as getXdgData,j as getXdgState,b as resetGlobalAdapter,e as resetInstanceAdapter,a as setGlobalAdapter,d as setInstanceAdapter}from'./chunks/chunk-H4VZF3ZQ.mjs';import'./chunks/chunk-ECMVXJH2.mjs';export{r as CodeBase,l as EdgeExtractor,f as FILE_EXTENSION_MAP,n as Indexer,j as NodeExtractor,g as ParserManager,p as QueryInterface,b as codebaseConfigPath,c as codebaseDbPath,s as createCodebase,m as createEdgeExtractor,o as createIndexer,k as createNodeExtractor,q as createQueryInterface,a as easbotDir,h as getParserManager,i as resetParserManager}from'./chunks/chunk-QZMJ5EUF.mjs';export{f as DatabaseManager}from'./chunks/chunk-EU2I2AMK.mjs';export{c as CODEBASE_BUSINESS_CODES,d as CODEBASE_BUSINESS_HINTS,b as CodebaseError,e as registerBusinessErrors}from'./chunks/chunk-KTSR5VPT.mjs';export{a as Llm,b as llm}from'./chunks/chunk-ESA2CL57.mjs';export{e as CodebaseJsonSchema,g as DEFAULT_CODEBASE_JSON,a as DEFAULT_EMBEDDING_CONFIG,b as DEFAULT_INDEXER_CONFIG,c as DEFAULT_PARSER_CONFIG,d as DEFAULT_TOKENIZER_CONFIG}from'./chunks/chunk-43WAI4Z7.mjs';import'./chunks/chunk-47LKNS74.mjs';
1
+ export{d as handleCodebaseCli,a as renderBanner,b as renderHelp}from'./chunks/chunk-KUX25CUR.mjs';import {h as h$1,g,f,e,d,c,b as b$1,a,C as C$1,B,F as F$1,E,y}from'./chunks/chunk-OXF2UU4K.mjs';export{p as SECTION_END,o as SECTION_MARKER,f as callees,e as callers,c as context,u as defaultRiskLabel,i as doctor,n as emptyFormattedNode,g as explore,l as formatCodebaseEdge,k as formatCodebaseNode,m as formatCodebaseSearchHits,d as impact,j as initCodebase,b as node,C as renderCalleesFromResult,B as renderCallersFromResult,v as renderContext,A as renderContextFromQuery,F as renderExploreFromResult,t as renderImpact,z as renderImpactFromTuples,x as renderNeighborList,w as renderNode,E as renderNodeDetail,y as renderSearch,s as renderSearchResult,D as renderStatusFromResult,a as search,h as status,q as truncateAtSectionBoundary,r as truncateAtSectionBoundarySync}from'./chunks/chunk-OXF2UU4K.mjs';import {b}from'./chunks/chunk-ETCTXAXR.mjs';export{a as CODEBASE_JSON_REL_PATH,b as CodebaseCache}from'./chunks/chunk-ETCTXAXR.mjs';import {h as h$2}from'./chunks/chunk-H4VZF3ZQ.mjs';export{c as getGlobal,g as getHomeDir,f as getInstance,l as getProjectDirectory,k as getXdgCache,i as getXdgConfig,h as getXdgData,j as getXdgState,b as resetGlobalAdapter,e as resetInstanceAdapter,a as setGlobalAdapter,d as setInstanceAdapter}from'./chunks/chunk-H4VZF3ZQ.mjs';import'./chunks/chunk-ECMVXJH2.mjs';import {c as c$1}from'./chunks/chunk-QZMJ5EUF.mjs';export{r as CodeBase,l as EdgeExtractor,f as FILE_EXTENSION_MAP,n as Indexer,j as NodeExtractor,g as ParserManager,p as QueryInterface,b as codebaseConfigPath,c as codebaseDbPath,s as createCodebase,m as createEdgeExtractor,o as createIndexer,k as createNodeExtractor,q as createQueryInterface,a as easbotDir,h as getParserManager,i as resetParserManager}from'./chunks/chunk-QZMJ5EUF.mjs';export{f as DatabaseManager}from'./chunks/chunk-EU2I2AMK.mjs';export{c as CODEBASE_BUSINESS_CODES,d as CODEBASE_BUSINESS_HINTS,b as CodebaseError,e as registerBusinessErrors}from'./chunks/chunk-KTSR5VPT.mjs';export{a as Llm,b as llm}from'./chunks/chunk-ESA2CL57.mjs';export{e as CodebaseJsonSchema,g as DEFAULT_CODEBASE_JSON,a as DEFAULT_EMBEDDING_CONFIG,b as DEFAULT_INDEXER_CONFIG,c as DEFAULT_PARSER_CONFIG,d as DEFAULT_TOKENIZER_CONFIG}from'./chunks/chunk-43WAI4Z7.mjs';import'./chunks/chunk-47LKNS74.mjs';import {Truncate}from'@easbot/llm';export{Truncate}from'@easbot/llm';import {renderKnowledgeStatus}from'@easbot/terminal';export{renderKnowledgeStatus}from'@easbot/terminal';import r from'zod';import {existsSync}from'fs';import {createTool}from'@easbot/plugin';import Q from'fs/promises';import {Log,loadTextFile,Schema,ServiceError,ServiceErrorBus,errorMeta,Instance,NameErrors,Filesystem,Identifier}from'@easbot/utils';var oe=Log.create({service:"codebase.plugin.tool.knowledge-truncation"}),Ue=30,ze=1500,N={codebase:1500},k={listPaths:["hits","callers","callees","references","directlyAffected","transitivelyAffected","files","entryPoints","entryPoints.*.symbols","edges","nodes"],fieldPaths:["hits.*.content","hits.*.snippet","hits.*.docstring","hits.*.sourceCode","references.*.snippet","directlyAffected.*.snippet","transitivelyAffected.*.snippet","files.*.summary","entryPoints.*.symbols.*.node.text","entryPoints.*.symbols.*.node.sourceCode"]};var Ve=["hits","files","results","matches","nodes","edges"];function Xe(e,t){return !e||e.length===0?{items:[],truncated:false,dropped:0}:e.length<=t?{items:e.slice(),truncated:false,dropped:0}:{items:e.slice(0,t),truncated:true,dropped:e.length-t}}function Ye(e,t){if(e==null)return {value:"",truncated:false,droppedChars:0};if(typeof e!="string")return {value:String(e),truncated:false,droppedChars:0};if(e.length<=t)return {value:e,truncated:false,droppedChars:0};let o=e.length-t;return {value:`${e.slice(0,t)}\u2026(+${o} chars)`,truncated:true,droppedChars:o}}function ee(e,t){let o=0,i=false,n=(s,l)=>{if(s!=null){if(Array.isArray(s)){for(let c of t)M(c,l)&&(o+=s.length,i=true);for(let c=0;c<s.length;c++)n(s[c],[...l,String(c)]);return}if(typeof s=="object"){let a=s;for(let[c,E]of Object.entries(a))n(E,[...l,c]);}}};return n(e,[]),i?o:0}function M(e,t){let o=e.split(".");if(o.length!==t.length)return false;for(let i=0;i<o.length;i++){let n=o[i];if(n!=="*"&&n!==t[i])return false}return true}async function w(e,t){let o=t.listLimit??Ue,i=t.fieldMax??ze,n=t.saveFull!==false,s=Math.max(ee(e,[...Ve]),ee(e,t.paths.listPaths)),l;n&&(l=await Je(e,t.toolName));let a=0,c=0,E=new WeakSet,f=(d,b)=>{if(d==null)return d;if(typeof d=="string"){for(let m of t.paths.fieldPaths??[])if(M(m,b)){let g=Ye(d,i);return g.truncated&&(c+=1),g.value}return d}if(Array.isArray(d)){let m=false;for(let g of t.paths.listPaths)if(M(g,b)){m=true;break}if(m){let g=Xe(d,o);return g.truncated&&(a+=g.dropped),g.items.map((y,R)=>f(y,[...b,String(R)]))}return d.map((g,y)=>f(g,[...b,String(y)]))}if(typeof d=="object"){if(E.has(d))return d;E.add(d);let m=d,g={};for(let[y,R]of Object.entries(m))g[y]=f(R,[...b,y]);return g}return d},x=f(e,[]),p=a>0||c>0;return p&&oe.debug("knowledge tool trimmed",{toolName:t.toolName,total:s,trimmedListCount:a,trimmedFieldCount:c,outputPath:l}),{result:x,total:s,truncated:p,trimmedListCount:a,trimmedFieldCount:c,outputPath:l}}async function Je(e,t){try{let o=Filesystem.join(h$2(),"tool-output");await Q.mkdir(o,{recursive:!0}).catch(()=>{});let i=t.replace(/[^a-zA-Z0-9_-]/g,"_"),n=Identifier.ascending("tool"),s=Filesystem.join(o,`knowledge_${i}_${n}.json`);return await Q.writeFile(s,JSON.stringify(e,null,2),"utf-8"),s}catch(o){oe.warn("knowledge truncation: persistFullResult failed",{toolName:t,error:errorMeta(o)});return}}function F(e,t){if(!e.truncated&&!e.outputPath)return "";let o=[];return o.push("---"),o.push(`[${t} output truncated for context window]`),o.push(`- Total items: ${e.total}`),o.push(`- Items shown: ${e.total-e.trimmedListCount}`),o.push(`- Fields trimmed: ${e.trimmedFieldCount}`),e.outputPath&&(o.push(`- Full data saved to: ${e.outputPath}`),o.push("- To recover: use Grep to search this file, or Read with offset/limit."),o.push(`- To narrow: call ${t} again with a more specific query.`)),o.join(`
2
+ `)}var We=["callers","callees","references","directlyAffected","transitivelyAffected","edges"];function te(e){switch(e){case "CALLS":return 0;case "IMPORTS":return 1;case "TYPE_REFERENCES":return 2;case "EXTENDS":case "IMPLEMENTS":return 3;default:return 4}}function Qe(e,t,o){return e.filePath==="(unresolved)"?o==="callers"||o==="callees":!(t.rootFilePath&&e.filePath&&e.filePath!==t.rootFilePath&&!Ze(t.rootFilePath,e.filePath))}function ne(e){let t=e.replace(/\\/g,"/"),o=[...t.matchAll(/(?:^|\/)(packages|apps|examples|src|tests|bin|scripts)\//g)];if(o.length>0){let i=o[o.length-1];if(i&&i.index!==void 0)return t.slice(i.index+(i[0].startsWith("/")?1:0))}return t}function Ze(e,t){let o=ne(e),i=ne(t),n=o.split("/")[0]??"",s=i.split("/")[0]??"";return !n||!s?true:n===s}function S(e,t={}){let o=t.maxEdgesPerList??15;if(e==null||typeof e!="object"||Array.isArray(e))return e;let i={...e};for(let s of We){let l=i[s];if(!Array.isArray(l))continue;let a=l.filter(p=>p===null||typeof p!="object"?false:Qe(p,t,s)),c=new Set,f=a.filter(p=>{let d=p,b=`${d.filePath??""}:${d.startLine??0}:${d.name??""}`;return c.has(b)?false:(c.add(b),true)}).map((p,d)=>({edge:p,idx:d})).sort((p,d)=>{let b=te(p.edge.relation),m=te(d.edge.relation);return b!==m?b-m:p.idx-d.idx}).map(({edge:p})=>p),x=f.length>o?f.slice(0,o):f;i[s]=x;}let n=["hits","facts","chunks","nodes","files","results","matches","entryPoints"];for(let s of n){let l=i[s];Array.isArray(l)&&(i[s]=l.map(a=>a===null||typeof a!="object"?a:S(a,t)));}return Array.isArray(i.entryPoints)&&(i.entryPoints=i.entryPoints.map(s=>{if(s===null||typeof s!="object")return s;let l=s;return Array.isArray(l.symbols)?(l.symbols=l.symbols.map(a=>a===null||typeof a!="object"?a:S(a,t)),l):s})),i}var v=Log.create({service:"codebase.plugin.tool"});var lt=loadTextFile("./codebase.txt",import.meta.url),ct=lt(),h=r.enum(["function","method","class","interface","type","variable","route","component","const"]),ut=r.enum(["incoming","outgoing","both"]),A=Schema.stringArray,ft=r.discriminatedUnion("operation",[r.object({operation:r.literal("search"),query:r.string().describe("Search query (symbol name / natural language / snippet)"),kind:h.optional().describe("Filter by node kind"),file:r.string().optional().describe("Filter by source file (substring match)"),language:r.string().optional().describe("Filter by programming language"),astType:r.string().optional().describe("Filter by AST type (finer than kind)"),intent:r.string().optional().describe("LLM task context (for ranking)"),maxResults:Schema.positiveInt.optional().default(10).describe("Max results (default 10)"),maxEdgesPerNode:Schema.positiveInt.optional().default(10).refine(e=>e===void 0||e>=1&&e<=100,{message:"maxEdgesPerNode must be in [1, 100]"}).describe("Max edges per search hit (default 10; range [1, 100])"),includeContent:r.boolean().optional().default(false).describe("Include source content (default false)"),enableFts:r.boolean().optional().default(true).describe("Enable FTS search (default true)")}),r.object({operation:r.literal("node"),name:r.string().optional().describe("Node name (recommended; LLM workflow friendly)"),nodeId:r.string().optional().describe("Node ID (zero ambiguity)"),file:r.string().optional().describe("File path (disambiguation)"),kind:h.optional().describe("Kind (disambiguation)"),includeEdges:r.boolean().optional().default(false).describe("Include edges (default false)"),includeContent:r.boolean().optional().default(false).describe("Include source content (default false)"),maxEdgesPerNode:Schema.positiveInt.optional().default(10).refine(e=>e===void 0||e>=1&&e<=100,{message:"maxEdgesPerNode must be in [1, 100]"}).describe("Max edges to return (default 10; range [1, 100])")}),r.object({operation:r.literal("context"),name:r.string().optional().describe("Center node name"),nodeId:r.string().optional().describe("Center node ID (zero ambiguity)"),file:r.string().optional().describe("File path (disambiguation)"),kind:h.optional().describe("Kind (disambiguation)"),depth:Schema.positiveInt.optional().default(2).describe("BFS depth (default 2, max 3)"),maxNodes:Schema.positiveInt.optional().default(100).describe("Max nodes (default 100)"),maxEdgesPerNode:Schema.positiveInt.optional().default(10).refine(e=>e===void 0||e>=1&&e<=100,{message:"maxEdgesPerNode must be in [1, 100]"}).describe("Max edges per direction per BFS level (default 10; range [1, 100])"),direction:ut.optional().default("both").describe("Edge direction (default both)"),relationTypes:A.optional().describe('Relation type filter (exact match against @easbot/codebase RelationType enum), e.g. `["CALLS","IMPORTS"]`. Valid values: CALLS / IMPORTS / TYPE_REFERENCES / ANNOTATES / EXTENDS / IMPLEMENTS / HAS_METHOD / HAS_PROPERTY / METHOD_OVERRIDES / CONTAINS.')}),r.object({operation:r.literal("impact"),name:r.string().optional().describe("Center node name"),nodeId:r.string().optional().describe("Center node ID"),file:r.string().optional().describe("File path (disambiguation)"),kind:h.optional().describe("Kind (disambiguation)"),depth:Schema.positiveInt.optional().default(2).describe("BFS depth (default 2, max 3)"),relationTypes:A.optional().describe('Relation type filter (exact match against @easbot/codebase RelationType enum), e.g. `["CALLS","IMPORTS"]`. Valid values: CALLS / IMPORTS / TYPE_REFERENCES / ANNOTATES / EXTENDS / IMPLEMENTS / HAS_METHOD / HAS_PROPERTY / METHOD_OVERRIDES / CONTAINS.'),maxResults:Schema.positiveInt.optional().default(10).describe("Max affected nodes (default 10)"),maxEdgesPerNode:Schema.positiveInt.optional().default(10).refine(e=>e===void 0||e>=1&&e<=100,{message:"maxEdgesPerNode must be in [1, 100]"}).describe("Max incoming edges per BFS level (default 10; range [1, 100])")}),r.object({operation:r.literal("callers"),name:r.string().optional().describe("Target node name"),nodeId:r.string().optional().describe("Target node ID"),file:r.string().optional().describe("File path (disambiguation)"),kind:h.optional().describe("Kind (disambiguation)"),relationTypes:A.optional().describe('Relation type filter (exact match against @easbot/codebase RelationType enum), e.g. `["CALLS","IMPORTS"]`. Valid values: CALLS / IMPORTS / TYPE_REFERENCES / ANNOTATES / EXTENDS / IMPLEMENTS / HAS_METHOD / HAS_PROPERTY / METHOD_OVERRIDES / CONTAINS.'),maxResults:Schema.positiveInt.optional().default(10).describe("Max results (default 10)"),maxEdgesPerNode:Schema.positiveInt.optional().default(10).refine(e=>e===void 0||e>=1&&e<=100,{message:"maxEdgesPerNode must be in [1, 100]"}).describe("Max incoming edges (default 10; range [1, 100])")}),r.object({operation:r.literal("callees"),name:r.string().optional().describe("Target node name"),nodeId:r.string().optional().describe("Target node ID"),file:r.string().optional().describe("File path (disambiguation)"),kind:h.optional().describe("Kind (disambiguation)"),relationTypes:A.optional().describe('Relation type filter (exact match against @easbot/codebase RelationType enum), e.g. `["CALLS","IMPORTS"]`. Valid values: CALLS / IMPORTS / TYPE_REFERENCES / ANNOTATES / EXTENDS / IMPLEMENTS / HAS_METHOD / HAS_PROPERTY / METHOD_OVERRIDES / CONTAINS.'),maxResults:Schema.positiveInt.optional().default(10).describe("Max results (default 10)"),maxEdgesPerNode:Schema.positiveInt.optional().default(10).refine(e=>e===void 0||e>=1&&e<=100,{message:"maxEdgesPerNode must be in [1, 100]"}).describe("Max outgoing edges (default 10; range [1, 100])")}),r.object({operation:r.literal("explore"),query:r.string().describe("Entry query (symbol name or natural language, required)"),file:r.string().optional().describe("File path filter"),kind:h.optional().describe("Kind filter"),maxFiles:Schema.positiveInt.optional().default(5).describe("Entry point count (default 5)"),maxSymbols:Schema.positiveInt.optional().default(3).describe("Symbols per entry point (default 3)"),maxEdgesPerNode:Schema.positiveInt.optional().default(10).refine(e=>e===void 0||e>=1&&e<=100,{message:"maxEdgesPerNode must be in [1, 100]"}).describe("Max caller/callee edges per symbol (default 10; range [1, 100])"),depth:Schema.positiveInt.optional().default(1).describe("Neighbor depth (default 1)"),includeContent:r.boolean().optional().default(true).describe("Include source content (default true)"),intent:r.string().optional().describe("LLM task context")}),r.object({operation:r.literal("status")})]);function pt(e){return e.worktree??e.directory??Instance.worktree??process.cwd()}async function gt(e){let t;try{t=c$1(e);}catch{return}if(!existsSync(t))throw new NameErrors.OperationFailedError({message:`Codebase knowledge graph is not initialized at ${e} (db not found at ${t}).
3
+ Run \`easbot codebase index <workspaceDir>\` (one-time bootstrap) and retry. See eas-knowledge-using skill for details.`,operation:"codebase-init-required"})}function bt(e){return {workspaceDir:e,rootDir:e}}function mt(e){return e.map(t=>({nodeId:t.nodeId,name:t.name,kind:t.kind,filePath:t.filePath,startLine:t.startLine,endLine:t.endLine,edges:t.edges,source:t.source,score:t.score,snippet:t.snippet}))}var O=createTool({description:ct,args:ft,isEnabled:()=>b.exists(),async execute(e,t){await t.ask({permission:"codebase",patterns:e.operation==="search"||e.operation==="explore"?[e.query]:e.operation==="node"||e.operation==="context"||e.operation==="impact"||e.operation==="callers"||e.operation==="callees"?[e.name??e.nodeId??"*"]:["*"],always:["*"],metadata:{operation:e.operation,...(e.operation==="search"||e.operation==="explore")&&{query:e.query},...(e.operation==="node"||e.operation==="context"||e.operation==="impact"||e.operation==="callers"||e.operation==="callees")&&{name:e.name,nodeId:e.nodeId}}});let o=pt(t);await gt(o),v.debug("codebase tool execute",{operation:e.operation,workspaceDir:o,...(e.operation==="search"||e.operation==="explore")&&{query:e.query}});try{let i=bt(o),n=await Et(e,i),s=await w(n,{toolName:`codebase_${e.operation}`,paths:k}),l=s.result.root,a=l?.file_path??l?.filePath??"",c=S(s.result,{rootFilePath:a||void 0}),E=await ht(e,c,i),f=await Truncate.output(E,{contentType:"output",toolName:`codebase_${e.operation}`},{name:t.agent}),x=F(s,`codebase_${e.operation}`);return {output:f.truncated?`${f.content}
4
+
5
+ [Full output truncated: ${f.outputPath}]`:x?`${f.content}
6
+
7
+ ${x}`:f.content,title:`Codebase: ${e.operation}${e.operation==="search"||e.operation==="explore"?` (${e.query})`:""}${e.operation==="node"&&e.name?` (${e.name})`:""}`,metadata:{operation:e.operation,enabled:!0,available:!0,workspaceDir:o,truncated:f.truncated,...f.truncated?{outputPath:f.outputPath}:{},...(e.operation==="search"||e.operation==="explore")&&{query:e.query},...(e.operation==="node"||e.operation==="context"||e.operation==="impact"||e.operation==="callers"||e.operation==="callees")&&{name:e.name,nodeId:e.nodeId}}}}catch(i){if(ServiceError.isInstance(i))return v.debug("codebase tool business result",{operation:e.operation,workspaceDir:o,code:i.data.code,message:i.data.message}),{output:ServiceErrorBus.toMarkdown(i,{tool:"codebase",operation:e.operation,resultTag:"<codebase_context>",pack:"codebase"}),title:`Codebase: ${e.operation} (${i.data.code})`,metadata:{operation:e.operation,enabled:true,available:true,workspaceDir:o,businessErrorCode:i.data.code}};throw v.warn("codebase tool execute failed",{operation:e.operation,workspaceDir:o,error:errorMeta(i)}),i}}});async function Et(e$1,t){switch(e$1.operation){case "search":return a(t,{query:e$1.query,kind:e$1.kind,file:e$1.file,language:e$1.language,astType:e$1.astType,intent:e$1.intent,includeContent:e$1.includeContent,maxResults:e$1.maxResults,maxEdgesPerNode:e$1.maxEdgesPerNode,enableFts:e$1.enableFts,snippetMaxChars:N.codebase});case "node":return b$1(t,{name:e$1.name,nodeId:e$1.nodeId,file:e$1.file,kind:e$1.kind,includeEdges:e$1.includeEdges,includeContent:e$1.includeContent,maxEdgesPerNode:e$1.maxEdgesPerNode});case "context":return c(t,{name:e$1.name,nodeId:e$1.nodeId,file:e$1.file,kind:e$1.kind,depth:e$1.depth,maxNodes:e$1.maxNodes,direction:e$1.direction,relationTypes:e$1.relationTypes,maxEdgesPerNode:e$1.maxEdgesPerNode});case "impact":return d(t,{name:e$1.name,nodeId:e$1.nodeId,file:e$1.file,kind:e$1.kind,depth:e$1.depth,relationTypes:e$1.relationTypes,maxResults:e$1.maxResults,maxEdgesPerNode:e$1.maxEdgesPerNode});case "callers":return e(t,{name:e$1.name,nodeId:e$1.nodeId,file:e$1.file,kind:e$1.kind,relationTypes:e$1.relationTypes,maxResults:e$1.maxResults,maxEdgesPerNode:e$1.maxEdgesPerNode});case "callees":return f(t,{name:e$1.name,nodeId:e$1.nodeId,file:e$1.file,kind:e$1.kind,relationTypes:e$1.relationTypes,maxResults:e$1.maxResults,maxEdgesPerNode:e$1.maxEdgesPerNode});case "explore":return g(t,{query:e$1.query,file:e$1.file,kind:e$1.kind,maxFiles:e$1.maxFiles,maxSymbols:e$1.maxSymbols,depth:e$1.depth,includeContent:e$1.includeContent,intent:e$1.intent,maxEdgesPerNode:e$1.maxEdgesPerNode,snippetMaxChars:N.codebase});case "status":return h$1(t,{})}}async function ht(e,t,o){let i={toolName:`codebase_${e.operation}`};switch(e.operation){case "search":return y(mt(t.hits),i);case "impact":return JSON.stringify(t,null,2);case "context":return JSON.stringify(t,null,2);case "node":{let n=t;return E(n.node,n.edges,i)}case "explore":return F$1(t,i);case "callers":return B(t,i);case "callees":return C$1(t,i);case "status":{let n=t;return renderKnowledgeStatus({packageName:"codebase",rootDir:n.workspaceDir,configPath:n.configPath??"",configExists:typeof n.configExists=="boolean"?n.configExists:false,dbPath:n.dbPath,dbExists:typeof n.dbExists=="boolean"?n.dbExists:true,dbSize:n.dbSize,indexState:n.indexState,schemaVersion:(()=>{let s=n.meta?.schema_version;return s&&Number.isFinite(Number.parseInt(s,10))?Number.parseInt(s,10):void 0})(),extractionVersion:n.extractionVersion,lastSyncAt:n.lastSync,vectorEnabled:typeof n.vectorEnabled=="boolean"?n.vectorEnabled:false,embeddingDims:typeof n.embeddingDims=="number"?n.embeddingDims:void 0,llm:n.llm??{initialized:false,capabilities:{}},healthy:n.healthy,dbStats:n.dbStats,extras:(()=>{let s={};if(n.isStale===true&&(s.stale="yes \u2014 reindex recommended"),typeof n.ftsAvailable=="boolean"&&(s.fts_available=n.ftsAvailable?"yes":"no"),n.meta&&typeof n.meta=="object")for(let[l,a]of Object.entries(n.meta))a!=null&&(s[`meta/${l}`]=String(a));return Object.keys(s).length>0?s:void 0})()})}}}var C="codebase",H="0.3.39",se={name:C,version:H,description:"EASBot codebase plugin: code knowledge graph tool",entry:"./index.mjs",capabilities:["tools"]};var I=async e=>({tools:{[C]:O}});export{C as CODEBASE_PLUGIN_ID,se as CODEBASE_PLUGIN_MANIFEST,H as CODEBASE_PLUGIN_VERSION,I as CodebasePlugin,I as CodebasePluginEntry,O as CodebaseTool};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easbot/codebase",
3
- "version": "0.3.36",
3
+ "version": "0.3.39",
4
4
  "description": "Code Knowledge Graph SDK for EASBot - Property Graph model for code indexing and querying with Tree-sitter parsing, FTS hybrid search, and incremental updates",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -72,13 +72,14 @@
72
72
  "tree-sitter-typescript": "^0.23.2",
73
73
  "web-tree-sitter": "^0.26.12",
74
74
  "zod": "^4.6.7",
75
- "@easbot/database": "0.3.36",
76
- "@easbot/llm": "0.3.36",
77
- "@easbot/mcp": "0.3.36",
78
- "@easbot/local-model-sdk": "0.3.36",
79
- "@easbot/terminal": "0.3.36",
80
- "@easbot/types": "0.3.36",
81
- "@easbot/utils": "0.3.36"
75
+ "@easbot/database": "0.3.39",
76
+ "@easbot/llm": "0.3.39",
77
+ "@easbot/local-model-sdk": "0.3.39",
78
+ "@easbot/mcp": "0.3.39",
79
+ "@easbot/plugin": "0.3.39",
80
+ "@easbot/terminal": "0.3.39",
81
+ "@easbot/types": "0.3.39",
82
+ "@easbot/utils": "0.3.39"
82
83
  },
83
84
  "devDependencies": {
84
85
  "@types/node": "^25.9.5",
@@ -96,11 +97,13 @@
96
97
  },
97
98
  "scripts": {
98
99
  "dev": "tsup --watch --env.NODE_ENV development",
99
- "build": "tsup --env.NODE_ENV production",
100
+ "build": "tsup --env.NODE_ENV production && pnpm plugin:generate",
100
101
  "test": "vitest",
101
102
  "test:run": "vitest run",
102
103
  "test:coverage": "vitest run --coverage",
103
104
  "test:clean": "tsx scripts/clean-test-fixtures.ts",
105
+ "plugin:generate": "tsx scripts/generate-plugin-distribution.ts",
106
+ "plugin:check": "tsx scripts/generate-plugin-distribution.ts --check",
104
107
  "lint": "biome check .",
105
108
  "lint:fix": "biome check --write .",
106
109
  "lint:report": "biome check --reporter=summary .",
@@ -1 +0,0 @@
1
- 'use strict';var chunk6NYX22KV_cjs=require('./chunk-6NYX22KV.cjs');require('./chunk-VXLUR7M5.cjs'),require('./chunk-Y7JDLK56.cjs'),require('./chunk-J7Z3MIR7.cjs'),require('./chunk-D5NDNAKA.cjs'),require('./chunk-3DAM6EZN.cjs'),require('./chunk-AARBEAIB.cjs'),require('./chunk-W5SMGCKO.cjs'),require('./chunk-EH2QTB6S.cjs'),require('./chunk-VZCOLSBF.cjs'),require('./chunk-R32346OA.cjs');Object.defineProperty(exports,"COMMANDS_HELP",{enumerable:true,get:function(){return chunk6NYX22KV_cjs.c}});Object.defineProperty(exports,"handleCodebaseCli",{enumerable:true,get:function(){return chunk6NYX22KV_cjs.d}});Object.defineProperty(exports,"mapCodebaseDoctor",{enumerable:true,get:function(){return chunk6NYX22KV_cjs.e}});Object.defineProperty(exports,"renderBanner",{enumerable:true,get:function(){return chunk6NYX22KV_cjs.a}});Object.defineProperty(exports,"renderHelp",{enumerable:true,get:function(){return chunk6NYX22KV_cjs.b}});