@easbot/types 0.2.11 → 0.2.14

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.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var zod=require('zod');var m=(n=>(n.HTTP="http",n.WEBSOCKET="websocket",n.GRPC="grpc",n.TCP="tcp",n.UDP="udp",n))(m||{}),d=(t=>(t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE",t.PATCH="PATCH",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t))(d||{}),l=(r=>(r[r.OK=200]="OK",r[r.CREATED=201]="CREATED",r[r.NO_CONTENT=204]="NO_CONTENT",r[r.BAD_REQUEST=400]="BAD_REQUEST",r[r.UNAUTHORIZED=401]="UNAUTHORIZED",r[r.FORBIDDEN=403]="FORBIDDEN",r[r.NOT_FOUND=404]="NOT_FOUND",r[r.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",r[r.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",r[r.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",r))(l||{}),p=(n=>(n.CONNECTING="connecting",n.OPEN="open",n.CLOSING="closing",n.CLOSED="closed",n.ERROR="error",n))(p||{}),b=(n=>(n.TEXT="text",n.BINARY="binary",n.JSON="json",n.PING="ping",n.PONG="pong",n))(b||{}),f=(e=>(e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e))(f||{});var x=(t=>(t.INITIALIZING="initializing",t.IDLE="idle",t.RUNNING="running",t.SUSPENDED="suspended",t.STOPPING="stopping",t.STOPPED="stopped",t.ERROR="error",t))(x||{});var y=(a=>(a.TEXT="text",a.IMAGE="image",a.FILE="file",a.AUDIO="audio",a.VIDEO="video",a.SYSTEM="system",a))(y||{}),E=(c=>(c.USER="user",c.AGENT="agent",c.SYSTEM="system",c))(E||{});var A={};function H(i){return {description:i.description,args:i.args,execute:i.execute}}var X=zod.z;function Z(i){return zod.z.object(i)}var S={provider:"easbot-local",model:"bge-base-zh-v1.5",batchSize:32},h={maxResults:3,minScore:.1,hybrid:{enabled:true,vectorWeight:.7,textWeight:.3}},k={onBoot:true,onSearch:true,onSessionStart:true,intervalMs:3e5},N={batchSize:50,ignorePatterns:["node_modules/**","dist/**","build/**",".git/**","__pycache__/**","*.min.js","*.min.ts"],incremental:true},v={languages:["ts","tsx","js","py","rs","go","c","cpp","csharp","java","scala","ruby","php","zig"],lazyLoad:true},D={chunkSize:1024,chunkOverlap:102,minChunkLength:100};function O(i,g){return `${i}/easbot/${g}`}function M(i,g){return `${i}/.easbot/${g}`}var P=[{type:"person",rule:"A human individual, role holder, or named actor."},{type:"organization",rule:"A company, team, institution, or formal group."},{type:"location",rule:"A place, region, site, facility, or spatial scope."},{type:"concept",rule:"An abstract idea, theme, method, policy, or principle."},{type:"object",rule:"A tangible or digital thing, product, artifact, or resource."},{type:"document",rule:"A report, note, page, paper, guideline, or formal text artifact."},{type:"process",rule:"A workflow, procedure, lifecycle, or repeatable sequence of steps."},{type:"task",rule:"A specific action item, issue, requirement, or objective."},{type:"metric",rule:"A measurable quantity, KPI, target value, or indicator."},{type:"time",rule:"A date, period, schedule marker, deadline, or temporal reference."},{type:"event",rule:"A notable milestone, release, incident, meeting, or time-bounded activity."},{type:"keyword",rule:"A compact fallback term when no stronger category applies."}],_=[{type:"is_a",rule:"Source is a subtype or instance of target."},{type:"part_of",rule:"Source is a component/subset of target."},{type:"has_attribute",rule:"Source has target as a key property or characteristic."},{type:"located_in",rule:"Source is physically or logically located in target."},{type:"occurs_in",rule:"Source event/process happens during or within target context/time/place."},{type:"causes",rule:"Source contributes to or causes target."},{type:"influences",rule:"Source affects target without strict causality."},{type:"owned_by",rule:"Source belongs to or is controlled by target."},{type:"member_of",rule:"Source person/entity is a member of target group."},{type:"uses",rule:"Source uses target as a dependency or tool."},{type:"depends_on",rule:"Source requires target to work or complete."},{type:"related_to",rule:"Weak but useful semantic relation when others do not fit."},{type:"defines",rule:"Source document or concept defines target entity."},{type:"referenced_in",rule:"Source entity is referenced or mentioned in target document."},{type:"used_by",rule:"Source entity is used by target process or concept."},{type:"relates_to",rule:"Source concept is semantically related to target concept."}];var I=(u=>(u.Ephemeral="ephemeral",u.Persistent="persistent",u))(I||{}),T=(o=>(o.StdIO="stdio",o.HTTP="http",o.WebSocket="websocket",o.CLI="cli",o))(T||{}),C=(t=>(t.Idle="idle",t.Starting="starting",t.Running="running",t.Busy="busy",t.Stopping="stopping",t.Stopped="stopped",t.Error="error",t))(C||{});exports.AgentState=x;exports.DEFAULT_EMBEDDING_CONFIG=S;exports.DEFAULT_INDEXER_CONFIG=N;exports.DEFAULT_NOTE_CHUNK_CONFIG=D;exports.DEFAULT_PARSER_CONFIG=v;exports.DEFAULT_SEARCH_CONFIG=h;exports.DEFAULT_SYNC_CONFIG=k;exports.GRAPH_ENTITY_TYPE_DEFINITIONS=P;exports.GRAPH_RELATION_TYPE_DEFINITIONS=_;exports.GatewayTypes=A;exports.HTTPMethod=d;exports.HTTPStatusCode=l;exports.HttpStatus=f;exports.MessageSender=E;exports.MessageType=y;exports.Protocol=m;exports.RunMode=I;exports.SubAgentStatus=C;exports.TransportType=T;exports.WebSocketMessageType=b;exports.WebSocketState=p;exports.buildToolArgs=Z;exports.createTool=H;exports.getDefaultDatabasePath=O;exports.getWorkspaceDatabasePath=M;exports.toolSchema=X;
1
+ 'use strict';var zod=require('zod');var m=(n=>(n.HTTP="http",n.WEBSOCKET="websocket",n.GRPC="grpc",n.TCP="tcp",n.UDP="udp",n))(m||{}),d=(t=>(t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE",t.PATCH="PATCH",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t))(d||{}),l=(r=>(r[r.OK=200]="OK",r[r.CREATED=201]="CREATED",r[r.NO_CONTENT=204]="NO_CONTENT",r[r.BAD_REQUEST=400]="BAD_REQUEST",r[r.UNAUTHORIZED=401]="UNAUTHORIZED",r[r.FORBIDDEN=403]="FORBIDDEN",r[r.NOT_FOUND=404]="NOT_FOUND",r[r.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",r[r.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",r[r.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",r))(l||{}),p=(n=>(n.CONNECTING="connecting",n.OPEN="open",n.CLOSING="closing",n.CLOSED="closed",n.ERROR="error",n))(p||{}),b=(n=>(n.TEXT="text",n.BINARY="binary",n.JSON="json",n.PING="ping",n.PONG="pong",n))(b||{}),f=(e=>(e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e))(f||{});var x=(t=>(t.INITIALIZING="initializing",t.IDLE="idle",t.RUNNING="running",t.SUSPENDED="suspended",t.STOPPING="stopping",t.STOPPED="stopped",t.ERROR="error",t))(x||{});var y=(a=>(a.TEXT="text",a.IMAGE="image",a.FILE="file",a.AUDIO="audio",a.VIDEO="video",a.SYSTEM="system",a))(y||{}),E=(c=>(c.USER="user",c.AGENT="agent",c.SYSTEM="system",c))(E||{});var A={};function H(i){return {description:i.description,args:i.args,execute:i.execute}}var X=zod.z;function Z(i){return zod.z.object(i)}var S={provider:"easbot-local",model:"bge-base-zh-v1.5",batchSize:32},h={maxResults:3,minScore:.1,hybrid:{enabled:true,vectorWeight:.7,textWeight:.3}},k={onBoot:true,onSearch:true,onSessionStart:true,intervalMs:3e5},N={batchSize:50,ignorePatterns:["node_modules/**","dist/**","build/**",".git/**","__pycache__/**","*.min.js","*.min.ts"],incremental:true},v={languages:["ts","tsx","js","py","rs","go","c","cpp","csharp","java","scala","ruby","php","zig"],lazyLoad:true},D={chunkSize:1024,chunkOverlap:102,minChunkLength:100};function O(i,g){return `${i}/easbot/${g}`}function M(i,g){return `${i}/.easbot/${g}`}var P=[{type:"person",rule:"A human individual, role holder, or named actor."},{type:"organization",rule:"A company, team, institution, or formal group."},{type:"location",rule:"A place, region, site, facility, or spatial scope."},{type:"concept",rule:"An abstract idea, theme, method, policy, or principle."},{type:"object",rule:"A tangible or digital thing, product, artifact, or resource."},{type:"document",rule:"A report, note, page, paper, guideline, or formal text artifact."},{type:"process",rule:"A workflow, procedure, lifecycle, or repeatable sequence of steps."},{type:"task",rule:"A specific action item, issue, requirement, or objective."},{type:"metric",rule:"A measurable quantity, KPI, target value, or indicator."},{type:"time",rule:"A date, period, schedule marker, deadline, or temporal reference."},{type:"event",rule:"A notable milestone, release, incident, meeting, or time-bounded activity."},{type:"keyword",rule:"A compact fallback term when no stronger category applies."}],_=[{type:"is_a",rule:"Source is a subtype or instance of target."},{type:"part_of",rule:"Source is a component/subset of target."},{type:"has_attribute",rule:"Source has target as a key property or characteristic."},{type:"located_in",rule:"Source is physically or logically located in target."},{type:"occurs_in",rule:"Source event/process happens during or within target context/time/place."},{type:"causes",rule:"Source contributes to or causes target."},{type:"influences",rule:"Source affects target without strict causality."},{type:"owned_by",rule:"Source belongs to or is controlled by target."},{type:"member_of",rule:"Source person/entity is a member of target group."},{type:"uses",rule:"Source uses target as a dependency or tool."},{type:"depends_on",rule:"Source requires target to work or complete."},{type:"related_to",rule:"Weak but useful semantic relation when others do not fit."},{type:"defines",rule:"Source document or concept defines target entity."},{type:"referenced_in",rule:"Source entity is referenced or mentioned in target document."},{type:"used_by",rule:"Source entity is used by target process or concept."},{type:"relates_to",rule:"Source concept is semantically related to target concept."}];var T=(u=>(u.Ephemeral="ephemeral",u.Persistent="persistent",u))(T||{}),I=(o=>(o.StdIO="stdio",o.HTTP="http",o.WebSocket="websocket",o.CLI="cli",o))(I||{}),C=(t=>(t.Idle="idle",t.Starting="starting",t.Running="running",t.Busy="busy",t.Stopping="stopping",t.Stopped="stopped",t.Error="error",t))(C||{});exports.AgentState=x;exports.DEFAULT_EMBEDDING_CONFIG=S;exports.DEFAULT_INDEXER_CONFIG=N;exports.DEFAULT_NOTE_CHUNK_CONFIG=D;exports.DEFAULT_PARSER_CONFIG=v;exports.DEFAULT_SEARCH_CONFIG=h;exports.DEFAULT_SYNC_CONFIG=k;exports.GRAPH_ENTITY_TYPE_DEFINITIONS=P;exports.GRAPH_RELATION_TYPE_DEFINITIONS=_;exports.GatewayTypes=A;exports.HTTPMethod=d;exports.HTTPStatusCode=l;exports.HttpStatus=f;exports.MessageSender=E;exports.MessageType=y;exports.Protocol=m;exports.RunMode=T;exports.SubAgentStatus=C;exports.TransportType=I;exports.WebSocketMessageType=b;exports.WebSocketState=p;exports.buildToolArgs=Z;exports.createTool=H;exports.getDefaultDatabasePath=O;exports.getWorkspaceDatabasePath=M;exports.toolSchema=X;
package/dist/index.d.cts CHANGED
@@ -709,7 +709,13 @@ interface MessageStorage {
709
709
  }
710
710
  interface IGlobal {
711
711
  Path: {
712
+ home: string;
712
713
  data: string;
714
+ cache: string;
715
+ config: string;
716
+ state: string;
717
+ log: string;
718
+ bin: string;
713
719
  };
714
720
  }
715
721
  interface GatewayConfig {
@@ -726,11 +732,9 @@ interface GatewayServerConfig {
726
732
  hostname: string;
727
733
  [key: string]: unknown;
728
734
  }
729
- interface IConfigLoader {
730
- load(directory: string): Promise<GatewayConfig>;
731
- }
732
735
  interface IInstance {
733
736
  directory: string;
737
+ worktree: string;
734
738
  }
735
739
  type GatewayHookHandler = (event: {
736
740
  name: string;
@@ -748,7 +752,6 @@ interface AgentAdapter {
748
752
  subAgentRunner: ISubAgentRunner;
749
753
  hookRegistry: IHookRegistry;
750
754
  global: IGlobal;
751
- configLoader: IConfigLoader;
752
755
  instance: IInstance;
753
756
  setMessageStorage(storage: MessageStorage): void;
754
757
  }
@@ -772,7 +775,6 @@ type gateway_GatewayMessage = GatewayMessage;
772
775
  type gateway_GatewayMessagePromptPart = GatewayMessagePromptPart;
773
776
  type gateway_GatewayMessageReceiveInput = GatewayMessageReceiveInput;
774
777
  type gateway_GatewayServerConfig = GatewayServerConfig;
775
- type gateway_IConfigLoader = IConfigLoader;
776
778
  type gateway_IGatewayServer = IGatewayServer;
777
779
  type gateway_IGlobal = IGlobal;
778
780
  type gateway_IHookRegistry = IHookRegistry;
@@ -783,7 +785,7 @@ type gateway_MessageStorage = MessageStorage;
783
785
  type gateway_MessageType = MessageType;
784
786
  type gateway_PlatformType = PlatformType;
785
787
  declare namespace gateway {
786
- export type { gateway_AgentAdapter as AgentAdapter, gateway_AgentInfo as AgentInfo, gateway_ChannelInfo as ChannelInfo, gateway_GatewayConfig as GatewayConfig, gateway_GatewayHookHandler as GatewayHookHandler, gateway_GatewayMessage as GatewayMessage, gateway_GatewayMessagePromptPart as GatewayMessagePromptPart, gateway_GatewayMessageReceiveInput as GatewayMessageReceiveInput, gateway_GatewayServerConfig as GatewayServerConfig, gateway_IConfigLoader as IConfigLoader, gateway_IGatewayServer as IGatewayServer, gateway_IGlobal as IGlobal, gateway_IHookRegistry as IHookRegistry, gateway_IInstance as IInstance, gateway_MessageContext as MessageContext, gateway_MessageMetadata as MessageMetadata, gateway_MessageStorage as MessageStorage, gateway_MessageType as MessageType, gateway_PlatformType as PlatformType };
788
+ export type { gateway_AgentAdapter as AgentAdapter, gateway_AgentInfo as AgentInfo, gateway_ChannelInfo as ChannelInfo, gateway_GatewayConfig as GatewayConfig, gateway_GatewayHookHandler as GatewayHookHandler, gateway_GatewayMessage as GatewayMessage, gateway_GatewayMessagePromptPart as GatewayMessagePromptPart, gateway_GatewayMessageReceiveInput as GatewayMessageReceiveInput, gateway_GatewayServerConfig as GatewayServerConfig, gateway_IGatewayServer as IGatewayServer, gateway_IGlobal as IGlobal, gateway_IHookRegistry as IHookRegistry, gateway_IInstance as IInstance, gateway_MessageContext as MessageContext, gateway_MessageMetadata as MessageMetadata, gateway_MessageStorage as MessageStorage, gateway_MessageType as MessageType, gateway_PlatformType as PlatformType };
787
789
  }
788
790
 
789
791
  type ShellFunction = (input: Uint8Array) => Uint8Array;
@@ -1087,4 +1089,4 @@ type PromptPart = {
1087
1089
  mime?: string;
1088
1090
  };
1089
1091
 
1090
- export { type AgentAction, type AgentAdapter, AgentCapability, type AgentCreate, type AgentExecute, type AgentExecutionResult, type AgentInfo, type AgentPromptPart, type AgentQuery, AgentState, type AgentStatistics, type AgentStatusInfo, type AgentUpdate, type ApiResponse, ApiResponseBuilder, type ApiResult, type AskInput, type AuthInfo, type BaseKnowledgeConfig, type BaseSearchResult, type ChannelInfo, type CodebaseKnowledgeConfig, type CodebaseKnowledgeConfigWithModels, DEFAULT_EMBEDDING_CONFIG, DEFAULT_INDEXER_CONFIG, DEFAULT_NOTE_CHUNK_CONFIG, DEFAULT_PARSER_CONFIG, DEFAULT_SEARCH_CONFIG, DEFAULT_SYNC_CONFIG, type DatabaseConfig, type EasbotShell, type EasbotShellError, type EasbotShellOutput, type EasbotShellPromise, type EmbeddingConfig, type ErrorDetails, type ErrorMessageMode, type ErrorResponse, type FilterExpression, type FilterRule, GRAPH_ENTITY_TYPE_DEFINITIONS, GRAPH_RELATION_TYPE_DEFINITIONS, type GatewayConfig, type GatewayHookHandler, type GatewayMessage, type GatewayMessagePromptPart, type GatewayMessageReceiveInput, type GatewayServerConfig, gateway as GatewayTypes, type GraphLlmConfig, HTTPMethod, type HTTPRequestConfig, type HTTPResponseConfig, HTTPStatusCode, HttpStatus, type HybridSearchConfig, type IConfigLoader, type IGatewayServer, type IGlobal, type IHookRegistry, type IInstance, type ISubAgentRunner, type IndexerConfig, type KnowledgeSearchOptions, type KnowledgeSearchSource, type Language, type LlmConfig, type MemoryKnowledgeConfig, type MemoryKnowledgeConfigWithModels, type MessageAttachment, type MessageContext, type MessageMetadata, type MessageQuery, type MessageReaction, type MessageSend, MessageSender, type MessageStorage, MessageType$1 as MessageType, type NoteKnowledgeConfig, type NoteKnowledgeConfigWithModels, type NoteKnowledgeSource, type OAuth2Token, type PageParams, type PageResult, type ParserConfig, type PlatformType, type PromptPart, Protocol, type RequestOptions, type RerankLlmConfig, type RetryRequest, RunMode, type SearchConfig, type SessionCreate, type SessionInfo, type SessionMessage, type SessionQuery, type SessionStatistics, SessionStatus, type SessionUpdate, type ShellExpression, type ShellFunction, type SortingField, type SubAgentConfig, type SubAgentEvent, type SubAgentHandler, type SubAgentInput, type SubAgentInstance, type SubAgentModel, type SubAgentResult, SubAgentStatus, type SuccessMessageMode, type SyncConfig, type TaskCreate, type TaskExecutionResult, type TaskInfo, type TaskLog, TaskPriority, type TaskQuery, TaskStatus, type TaskStep, type TaskUpdate, type ToolContext, type ToolDefinition, type ToolFunction, TransportType, type UploadFileParams, type UploadFileResult, type WebSocketConnectionConfig, type WebSocketEvent, type WebSocketMessage, WebSocketMessageType, WebSocketState, buildToolArgs, createTool, getDefaultDatabasePath, getWorkspaceDatabasePath, toolSchema };
1092
+ export { type AgentAction, type AgentAdapter, AgentCapability, type AgentCreate, type AgentExecute, type AgentExecutionResult, type AgentInfo, type AgentPromptPart, type AgentQuery, AgentState, type AgentStatistics, type AgentStatusInfo, type AgentUpdate, type ApiResponse, ApiResponseBuilder, type ApiResult, type AskInput, type AuthInfo, type BaseKnowledgeConfig, type BaseSearchResult, type ChannelInfo, type CodebaseKnowledgeConfig, type CodebaseKnowledgeConfigWithModels, DEFAULT_EMBEDDING_CONFIG, DEFAULT_INDEXER_CONFIG, DEFAULT_NOTE_CHUNK_CONFIG, DEFAULT_PARSER_CONFIG, DEFAULT_SEARCH_CONFIG, DEFAULT_SYNC_CONFIG, type DatabaseConfig, type EasbotShell, type EasbotShellError, type EasbotShellOutput, type EasbotShellPromise, type EmbeddingConfig, type ErrorDetails, type ErrorMessageMode, type ErrorResponse, type FilterExpression, type FilterRule, GRAPH_ENTITY_TYPE_DEFINITIONS, GRAPH_RELATION_TYPE_DEFINITIONS, type GatewayConfig, type GatewayHookHandler, type GatewayMessage, type GatewayMessagePromptPart, type GatewayMessageReceiveInput, type GatewayServerConfig, gateway as GatewayTypes, type GraphLlmConfig, HTTPMethod, type HTTPRequestConfig, type HTTPResponseConfig, HTTPStatusCode, HttpStatus, type HybridSearchConfig, type IGatewayServer, type IGlobal, type IHookRegistry, type IInstance, type ISubAgentRunner, type IndexerConfig, type KnowledgeSearchOptions, type KnowledgeSearchSource, type Language, type LlmConfig, type MemoryKnowledgeConfig, type MemoryKnowledgeConfigWithModels, type MessageAttachment, type MessageContext, type MessageMetadata, type MessageQuery, type MessageReaction, type MessageSend, MessageSender, type MessageStorage, MessageType$1 as MessageType, type NoteKnowledgeConfig, type NoteKnowledgeConfigWithModels, type NoteKnowledgeSource, type OAuth2Token, type PageParams, type PageResult, type ParserConfig, type PlatformType, type PromptPart, Protocol, type RequestOptions, type RerankLlmConfig, type RetryRequest, RunMode, type SearchConfig, type SessionCreate, type SessionInfo, type SessionMessage, type SessionQuery, type SessionStatistics, SessionStatus, type SessionUpdate, type ShellExpression, type ShellFunction, type SortingField, type SubAgentConfig, type SubAgentEvent, type SubAgentHandler, type SubAgentInput, type SubAgentInstance, type SubAgentModel, type SubAgentResult, SubAgentStatus, type SuccessMessageMode, type SyncConfig, type TaskCreate, type TaskExecutionResult, type TaskInfo, type TaskLog, TaskPriority, type TaskQuery, TaskStatus, type TaskStep, type TaskUpdate, type ToolContext, type ToolDefinition, type ToolFunction, TransportType, type UploadFileParams, type UploadFileResult, type WebSocketConnectionConfig, type WebSocketEvent, type WebSocketMessage, WebSocketMessageType, WebSocketState, buildToolArgs, createTool, getDefaultDatabasePath, getWorkspaceDatabasePath, toolSchema };
package/dist/index.d.ts CHANGED
@@ -709,7 +709,13 @@ interface MessageStorage {
709
709
  }
710
710
  interface IGlobal {
711
711
  Path: {
712
+ home: string;
712
713
  data: string;
714
+ cache: string;
715
+ config: string;
716
+ state: string;
717
+ log: string;
718
+ bin: string;
713
719
  };
714
720
  }
715
721
  interface GatewayConfig {
@@ -726,11 +732,9 @@ interface GatewayServerConfig {
726
732
  hostname: string;
727
733
  [key: string]: unknown;
728
734
  }
729
- interface IConfigLoader {
730
- load(directory: string): Promise<GatewayConfig>;
731
- }
732
735
  interface IInstance {
733
736
  directory: string;
737
+ worktree: string;
734
738
  }
735
739
  type GatewayHookHandler = (event: {
736
740
  name: string;
@@ -748,7 +752,6 @@ interface AgentAdapter {
748
752
  subAgentRunner: ISubAgentRunner;
749
753
  hookRegistry: IHookRegistry;
750
754
  global: IGlobal;
751
- configLoader: IConfigLoader;
752
755
  instance: IInstance;
753
756
  setMessageStorage(storage: MessageStorage): void;
754
757
  }
@@ -772,7 +775,6 @@ type gateway_GatewayMessage = GatewayMessage;
772
775
  type gateway_GatewayMessagePromptPart = GatewayMessagePromptPart;
773
776
  type gateway_GatewayMessageReceiveInput = GatewayMessageReceiveInput;
774
777
  type gateway_GatewayServerConfig = GatewayServerConfig;
775
- type gateway_IConfigLoader = IConfigLoader;
776
778
  type gateway_IGatewayServer = IGatewayServer;
777
779
  type gateway_IGlobal = IGlobal;
778
780
  type gateway_IHookRegistry = IHookRegistry;
@@ -783,7 +785,7 @@ type gateway_MessageStorage = MessageStorage;
783
785
  type gateway_MessageType = MessageType;
784
786
  type gateway_PlatformType = PlatformType;
785
787
  declare namespace gateway {
786
- export type { gateway_AgentAdapter as AgentAdapter, gateway_AgentInfo as AgentInfo, gateway_ChannelInfo as ChannelInfo, gateway_GatewayConfig as GatewayConfig, gateway_GatewayHookHandler as GatewayHookHandler, gateway_GatewayMessage as GatewayMessage, gateway_GatewayMessagePromptPart as GatewayMessagePromptPart, gateway_GatewayMessageReceiveInput as GatewayMessageReceiveInput, gateway_GatewayServerConfig as GatewayServerConfig, gateway_IConfigLoader as IConfigLoader, gateway_IGatewayServer as IGatewayServer, gateway_IGlobal as IGlobal, gateway_IHookRegistry as IHookRegistry, gateway_IInstance as IInstance, gateway_MessageContext as MessageContext, gateway_MessageMetadata as MessageMetadata, gateway_MessageStorage as MessageStorage, gateway_MessageType as MessageType, gateway_PlatformType as PlatformType };
788
+ export type { gateway_AgentAdapter as AgentAdapter, gateway_AgentInfo as AgentInfo, gateway_ChannelInfo as ChannelInfo, gateway_GatewayConfig as GatewayConfig, gateway_GatewayHookHandler as GatewayHookHandler, gateway_GatewayMessage as GatewayMessage, gateway_GatewayMessagePromptPart as GatewayMessagePromptPart, gateway_GatewayMessageReceiveInput as GatewayMessageReceiveInput, gateway_GatewayServerConfig as GatewayServerConfig, gateway_IGatewayServer as IGatewayServer, gateway_IGlobal as IGlobal, gateway_IHookRegistry as IHookRegistry, gateway_IInstance as IInstance, gateway_MessageContext as MessageContext, gateway_MessageMetadata as MessageMetadata, gateway_MessageStorage as MessageStorage, gateway_MessageType as MessageType, gateway_PlatformType as PlatformType };
787
789
  }
788
790
 
789
791
  type ShellFunction = (input: Uint8Array) => Uint8Array;
@@ -1087,4 +1089,4 @@ type PromptPart = {
1087
1089
  mime?: string;
1088
1090
  };
1089
1091
 
1090
- export { type AgentAction, type AgentAdapter, AgentCapability, type AgentCreate, type AgentExecute, type AgentExecutionResult, type AgentInfo, type AgentPromptPart, type AgentQuery, AgentState, type AgentStatistics, type AgentStatusInfo, type AgentUpdate, type ApiResponse, ApiResponseBuilder, type ApiResult, type AskInput, type AuthInfo, type BaseKnowledgeConfig, type BaseSearchResult, type ChannelInfo, type CodebaseKnowledgeConfig, type CodebaseKnowledgeConfigWithModels, DEFAULT_EMBEDDING_CONFIG, DEFAULT_INDEXER_CONFIG, DEFAULT_NOTE_CHUNK_CONFIG, DEFAULT_PARSER_CONFIG, DEFAULT_SEARCH_CONFIG, DEFAULT_SYNC_CONFIG, type DatabaseConfig, type EasbotShell, type EasbotShellError, type EasbotShellOutput, type EasbotShellPromise, type EmbeddingConfig, type ErrorDetails, type ErrorMessageMode, type ErrorResponse, type FilterExpression, type FilterRule, GRAPH_ENTITY_TYPE_DEFINITIONS, GRAPH_RELATION_TYPE_DEFINITIONS, type GatewayConfig, type GatewayHookHandler, type GatewayMessage, type GatewayMessagePromptPart, type GatewayMessageReceiveInput, type GatewayServerConfig, gateway as GatewayTypes, type GraphLlmConfig, HTTPMethod, type HTTPRequestConfig, type HTTPResponseConfig, HTTPStatusCode, HttpStatus, type HybridSearchConfig, type IConfigLoader, type IGatewayServer, type IGlobal, type IHookRegistry, type IInstance, type ISubAgentRunner, type IndexerConfig, type KnowledgeSearchOptions, type KnowledgeSearchSource, type Language, type LlmConfig, type MemoryKnowledgeConfig, type MemoryKnowledgeConfigWithModels, type MessageAttachment, type MessageContext, type MessageMetadata, type MessageQuery, type MessageReaction, type MessageSend, MessageSender, type MessageStorage, MessageType$1 as MessageType, type NoteKnowledgeConfig, type NoteKnowledgeConfigWithModels, type NoteKnowledgeSource, type OAuth2Token, type PageParams, type PageResult, type ParserConfig, type PlatformType, type PromptPart, Protocol, type RequestOptions, type RerankLlmConfig, type RetryRequest, RunMode, type SearchConfig, type SessionCreate, type SessionInfo, type SessionMessage, type SessionQuery, type SessionStatistics, SessionStatus, type SessionUpdate, type ShellExpression, type ShellFunction, type SortingField, type SubAgentConfig, type SubAgentEvent, type SubAgentHandler, type SubAgentInput, type SubAgentInstance, type SubAgentModel, type SubAgentResult, SubAgentStatus, type SuccessMessageMode, type SyncConfig, type TaskCreate, type TaskExecutionResult, type TaskInfo, type TaskLog, TaskPriority, type TaskQuery, TaskStatus, type TaskStep, type TaskUpdate, type ToolContext, type ToolDefinition, type ToolFunction, TransportType, type UploadFileParams, type UploadFileResult, type WebSocketConnectionConfig, type WebSocketEvent, type WebSocketMessage, WebSocketMessageType, WebSocketState, buildToolArgs, createTool, getDefaultDatabasePath, getWorkspaceDatabasePath, toolSchema };
1092
+ export { type AgentAction, type AgentAdapter, AgentCapability, type AgentCreate, type AgentExecute, type AgentExecutionResult, type AgentInfo, type AgentPromptPart, type AgentQuery, AgentState, type AgentStatistics, type AgentStatusInfo, type AgentUpdate, type ApiResponse, ApiResponseBuilder, type ApiResult, type AskInput, type AuthInfo, type BaseKnowledgeConfig, type BaseSearchResult, type ChannelInfo, type CodebaseKnowledgeConfig, type CodebaseKnowledgeConfigWithModels, DEFAULT_EMBEDDING_CONFIG, DEFAULT_INDEXER_CONFIG, DEFAULT_NOTE_CHUNK_CONFIG, DEFAULT_PARSER_CONFIG, DEFAULT_SEARCH_CONFIG, DEFAULT_SYNC_CONFIG, type DatabaseConfig, type EasbotShell, type EasbotShellError, type EasbotShellOutput, type EasbotShellPromise, type EmbeddingConfig, type ErrorDetails, type ErrorMessageMode, type ErrorResponse, type FilterExpression, type FilterRule, GRAPH_ENTITY_TYPE_DEFINITIONS, GRAPH_RELATION_TYPE_DEFINITIONS, type GatewayConfig, type GatewayHookHandler, type GatewayMessage, type GatewayMessagePromptPart, type GatewayMessageReceiveInput, type GatewayServerConfig, gateway as GatewayTypes, type GraphLlmConfig, HTTPMethod, type HTTPRequestConfig, type HTTPResponseConfig, HTTPStatusCode, HttpStatus, type HybridSearchConfig, type IGatewayServer, type IGlobal, type IHookRegistry, type IInstance, type ISubAgentRunner, type IndexerConfig, type KnowledgeSearchOptions, type KnowledgeSearchSource, type Language, type LlmConfig, type MemoryKnowledgeConfig, type MemoryKnowledgeConfigWithModels, type MessageAttachment, type MessageContext, type MessageMetadata, type MessageQuery, type MessageReaction, type MessageSend, MessageSender, type MessageStorage, MessageType$1 as MessageType, type NoteKnowledgeConfig, type NoteKnowledgeConfigWithModels, type NoteKnowledgeSource, type OAuth2Token, type PageParams, type PageResult, type ParserConfig, type PlatformType, type PromptPart, Protocol, type RequestOptions, type RerankLlmConfig, type RetryRequest, RunMode, type SearchConfig, type SessionCreate, type SessionInfo, type SessionMessage, type SessionQuery, type SessionStatistics, SessionStatus, type SessionUpdate, type ShellExpression, type ShellFunction, type SortingField, type SubAgentConfig, type SubAgentEvent, type SubAgentHandler, type SubAgentInput, type SubAgentInstance, type SubAgentModel, type SubAgentResult, SubAgentStatus, type SuccessMessageMode, type SyncConfig, type TaskCreate, type TaskExecutionResult, type TaskInfo, type TaskLog, TaskPriority, type TaskQuery, TaskStatus, type TaskStep, type TaskUpdate, type ToolContext, type ToolDefinition, type ToolFunction, TransportType, type UploadFileParams, type UploadFileResult, type WebSocketConnectionConfig, type WebSocketEvent, type WebSocketMessage, WebSocketMessageType, WebSocketState, buildToolArgs, createTool, getDefaultDatabasePath, getWorkspaceDatabasePath, toolSchema };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import {z}from'zod';var d=(n=>(n.HTTP="http",n.WEBSOCKET="websocket",n.GRPC="grpc",n.TCP="tcp",n.UDP="udp",n))(d||{}),l=(t=>(t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE",t.PATCH="PATCH",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t))(l||{}),p=(r=>(r[r.OK=200]="OK",r[r.CREATED=201]="CREATED",r[r.NO_CONTENT=204]="NO_CONTENT",r[r.BAD_REQUEST=400]="BAD_REQUEST",r[r.UNAUTHORIZED=401]="UNAUTHORIZED",r[r.FORBIDDEN=403]="FORBIDDEN",r[r.NOT_FOUND=404]="NOT_FOUND",r[r.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",r[r.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",r[r.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",r))(p||{}),b=(n=>(n.CONNECTING="connecting",n.OPEN="open",n.CLOSING="closing",n.CLOSED="closed",n.ERROR="error",n))(b||{}),f=(n=>(n.TEXT="text",n.BINARY="binary",n.JSON="json",n.PING="ping",n.PONG="pong",n))(f||{}),x=(e=>(e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e))(x||{});var y=(t=>(t.INITIALIZING="initializing",t.IDLE="idle",t.RUNNING="running",t.SUSPENDED="suspended",t.STOPPING="stopping",t.STOPPED="stopped",t.ERROR="error",t))(y||{});var E=(o=>(o.TEXT="text",o.IMAGE="image",o.FILE="file",o.AUDIO="audio",o.VIDEO="video",o.SYSTEM="system",o))(E||{}),R=(u=>(u.USER="user",u.AGENT="agent",u.SYSTEM="system",u))(R||{});var S={};function X(i){return {description:i.description,args:i.args,execute:i.execute}}var Z=z;function J(i){return z.object(i)}var h={provider:"easbot-local",model:"bge-base-zh-v1.5",batchSize:32},k={maxResults:3,minScore:.1,hybrid:{enabled:true,vectorWeight:.7,textWeight:.3}},N={onBoot:true,onSearch:true,onSessionStart:true,intervalMs:3e5},v={batchSize:50,ignorePatterns:["node_modules/**","dist/**","build/**",".git/**","__pycache__/**","*.min.js","*.min.ts"],incremental:true},D={languages:["ts","tsx","js","py","rs","go","c","cpp","csharp","java","scala","ruby","php","zig"],lazyLoad:true},O={chunkSize:1024,chunkOverlap:102,minChunkLength:100};function M(i,c){return `${i}/easbot/${c}`}function P(i,c){return `${i}/.easbot/${c}`}var _=[{type:"person",rule:"A human individual, role holder, or named actor."},{type:"organization",rule:"A company, team, institution, or formal group."},{type:"location",rule:"A place, region, site, facility, or spatial scope."},{type:"concept",rule:"An abstract idea, theme, method, policy, or principle."},{type:"object",rule:"A tangible or digital thing, product, artifact, or resource."},{type:"document",rule:"A report, note, page, paper, guideline, or formal text artifact."},{type:"process",rule:"A workflow, procedure, lifecycle, or repeatable sequence of steps."},{type:"task",rule:"A specific action item, issue, requirement, or objective."},{type:"metric",rule:"A measurable quantity, KPI, target value, or indicator."},{type:"time",rule:"A date, period, schedule marker, deadline, or temporal reference."},{type:"event",rule:"A notable milestone, release, incident, meeting, or time-bounded activity."},{type:"keyword",rule:"A compact fallback term when no stronger category applies."}],L=[{type:"is_a",rule:"Source is a subtype or instance of target."},{type:"part_of",rule:"Source is a component/subset of target."},{type:"has_attribute",rule:"Source has target as a key property or characteristic."},{type:"located_in",rule:"Source is physically or logically located in target."},{type:"occurs_in",rule:"Source event/process happens during or within target context/time/place."},{type:"causes",rule:"Source contributes to or causes target."},{type:"influences",rule:"Source affects target without strict causality."},{type:"owned_by",rule:"Source belongs to or is controlled by target."},{type:"member_of",rule:"Source person/entity is a member of target group."},{type:"uses",rule:"Source uses target as a dependency or tool."},{type:"depends_on",rule:"Source requires target to work or complete."},{type:"related_to",rule:"Weak but useful semantic relation when others do not fit."},{type:"defines",rule:"Source document or concept defines target entity."},{type:"referenced_in",rule:"Source entity is referenced or mentioned in target document."},{type:"used_by",rule:"Source entity is used by target process or concept."},{type:"relates_to",rule:"Source concept is semantically related to target concept."}];var T=(m=>(m.Ephemeral="ephemeral",m.Persistent="persistent",m))(T||{}),C=(g=>(g.StdIO="stdio",g.HTTP="http",g.WebSocket="websocket",g.CLI="cli",g))(C||{}),A=(t=>(t.Idle="idle",t.Starting="starting",t.Running="running",t.Busy="busy",t.Stopping="stopping",t.Stopped="stopped",t.Error="error",t))(A||{});export{y as AgentState,h as DEFAULT_EMBEDDING_CONFIG,v as DEFAULT_INDEXER_CONFIG,O as DEFAULT_NOTE_CHUNK_CONFIG,D as DEFAULT_PARSER_CONFIG,k as DEFAULT_SEARCH_CONFIG,N as DEFAULT_SYNC_CONFIG,_ as GRAPH_ENTITY_TYPE_DEFINITIONS,L as GRAPH_RELATION_TYPE_DEFINITIONS,S as GatewayTypes,l as HTTPMethod,p as HTTPStatusCode,x as HttpStatus,R as MessageSender,E as MessageType,d as Protocol,T as RunMode,A as SubAgentStatus,C as TransportType,f as WebSocketMessageType,b as WebSocketState,J as buildToolArgs,X as createTool,M as getDefaultDatabasePath,P as getWorkspaceDatabasePath,Z as toolSchema};
1
+ import {z}from'zod';var d=(n=>(n.HTTP="http",n.WEBSOCKET="websocket",n.GRPC="grpc",n.TCP="tcp",n.UDP="udp",n))(d||{}),l=(t=>(t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE",t.PATCH="PATCH",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t))(l||{}),p=(r=>(r[r.OK=200]="OK",r[r.CREATED=201]="CREATED",r[r.NO_CONTENT=204]="NO_CONTENT",r[r.BAD_REQUEST=400]="BAD_REQUEST",r[r.UNAUTHORIZED=401]="UNAUTHORIZED",r[r.FORBIDDEN=403]="FORBIDDEN",r[r.NOT_FOUND=404]="NOT_FOUND",r[r.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",r[r.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",r[r.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",r))(p||{}),b=(n=>(n.CONNECTING="connecting",n.OPEN="open",n.CLOSING="closing",n.CLOSED="closed",n.ERROR="error",n))(b||{}),f=(n=>(n.TEXT="text",n.BINARY="binary",n.JSON="json",n.PING="ping",n.PONG="pong",n))(f||{}),x=(e=>(e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e))(x||{});var y=(t=>(t.INITIALIZING="initializing",t.IDLE="idle",t.RUNNING="running",t.SUSPENDED="suspended",t.STOPPING="stopping",t.STOPPED="stopped",t.ERROR="error",t))(y||{});var E=(o=>(o.TEXT="text",o.IMAGE="image",o.FILE="file",o.AUDIO="audio",o.VIDEO="video",o.SYSTEM="system",o))(E||{}),R=(u=>(u.USER="user",u.AGENT="agent",u.SYSTEM="system",u))(R||{});var S={};function X(i){return {description:i.description,args:i.args,execute:i.execute}}var Z=z;function J(i){return z.object(i)}var h={provider:"easbot-local",model:"bge-base-zh-v1.5",batchSize:32},k={maxResults:3,minScore:.1,hybrid:{enabled:true,vectorWeight:.7,textWeight:.3}},N={onBoot:true,onSearch:true,onSessionStart:true,intervalMs:3e5},v={batchSize:50,ignorePatterns:["node_modules/**","dist/**","build/**",".git/**","__pycache__/**","*.min.js","*.min.ts"],incremental:true},D={languages:["ts","tsx","js","py","rs","go","c","cpp","csharp","java","scala","ruby","php","zig"],lazyLoad:true},O={chunkSize:1024,chunkOverlap:102,minChunkLength:100};function M(i,c){return `${i}/easbot/${c}`}function P(i,c){return `${i}/.easbot/${c}`}var _=[{type:"person",rule:"A human individual, role holder, or named actor."},{type:"organization",rule:"A company, team, institution, or formal group."},{type:"location",rule:"A place, region, site, facility, or spatial scope."},{type:"concept",rule:"An abstract idea, theme, method, policy, or principle."},{type:"object",rule:"A tangible or digital thing, product, artifact, or resource."},{type:"document",rule:"A report, note, page, paper, guideline, or formal text artifact."},{type:"process",rule:"A workflow, procedure, lifecycle, or repeatable sequence of steps."},{type:"task",rule:"A specific action item, issue, requirement, or objective."},{type:"metric",rule:"A measurable quantity, KPI, target value, or indicator."},{type:"time",rule:"A date, period, schedule marker, deadline, or temporal reference."},{type:"event",rule:"A notable milestone, release, incident, meeting, or time-bounded activity."},{type:"keyword",rule:"A compact fallback term when no stronger category applies."}],w=[{type:"is_a",rule:"Source is a subtype or instance of target."},{type:"part_of",rule:"Source is a component/subset of target."},{type:"has_attribute",rule:"Source has target as a key property or characteristic."},{type:"located_in",rule:"Source is physically or logically located in target."},{type:"occurs_in",rule:"Source event/process happens during or within target context/time/place."},{type:"causes",rule:"Source contributes to or causes target."},{type:"influences",rule:"Source affects target without strict causality."},{type:"owned_by",rule:"Source belongs to or is controlled by target."},{type:"member_of",rule:"Source person/entity is a member of target group."},{type:"uses",rule:"Source uses target as a dependency or tool."},{type:"depends_on",rule:"Source requires target to work or complete."},{type:"related_to",rule:"Weak but useful semantic relation when others do not fit."},{type:"defines",rule:"Source document or concept defines target entity."},{type:"referenced_in",rule:"Source entity is referenced or mentioned in target document."},{type:"used_by",rule:"Source entity is used by target process or concept."},{type:"relates_to",rule:"Source concept is semantically related to target concept."}];var I=(m=>(m.Ephemeral="ephemeral",m.Persistent="persistent",m))(I||{}),C=(g=>(g.StdIO="stdio",g.HTTP="http",g.WebSocket="websocket",g.CLI="cli",g))(C||{}),A=(t=>(t.Idle="idle",t.Starting="starting",t.Running="running",t.Busy="busy",t.Stopping="stopping",t.Stopped="stopped",t.Error="error",t))(A||{});export{y as AgentState,h as DEFAULT_EMBEDDING_CONFIG,v as DEFAULT_INDEXER_CONFIG,O as DEFAULT_NOTE_CHUNK_CONFIG,D as DEFAULT_PARSER_CONFIG,k as DEFAULT_SEARCH_CONFIG,N as DEFAULT_SYNC_CONFIG,_ as GRAPH_ENTITY_TYPE_DEFINITIONS,w as GRAPH_RELATION_TYPE_DEFINITIONS,S as GatewayTypes,l as HTTPMethod,p as HTTPStatusCode,x as HttpStatus,R as MessageSender,E as MessageType,d as Protocol,I as RunMode,A as SubAgentStatus,C as TransportType,f as WebSocketMessageType,b as WebSocketState,J as buildToolArgs,X as createTool,M as getDefaultDatabasePath,P as getWorkspaceDatabasePath,Z as toolSchema};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easbot/types",
3
- "version": "0.2.11",
3
+ "version": "0.2.14",
4
4
  "description": "Shared types library for EASBOT ecosystem",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",