@easbot/types 0.2.10 → 0.2.13

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=(o=>(o.TEXT="text",o.IMAGE="image",o.FILE="file",o.AUDIO="audio",o.VIDEO="video",o.SYSTEM="system",o))(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=(a=>(a.StdIO="stdio",a.HTTP="http",a.WebSocket="websocket",a.CLI="cli",a))(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;
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 {
@@ -731,6 +737,7 @@ interface IConfigLoader {
731
737
  }
732
738
  interface IInstance {
733
739
  directory: string;
740
+ worktree: string;
734
741
  }
735
742
  type GatewayHookHandler = (event: {
736
743
  name: string;
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 {
@@ -731,6 +737,7 @@ interface IConfigLoader {
731
737
  }
732
738
  interface IInstance {
733
739
  directory: string;
740
+ worktree: string;
734
741
  }
735
742
  type GatewayHookHandler = (event: {
736
743
  name: string;
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=(a=>(a.TEXT="text",a.IMAGE="image",a.FILE="file",a.AUDIO="audio",a.VIDEO="video",a.SYSTEM="system",a))(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 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,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,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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easbot/types",
3
- "version": "0.2.10",
3
+ "version": "0.2.13",
4
4
  "description": "Shared types library for EASBOT ecosystem",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -55,7 +55,7 @@
55
55
  "vitest": "^4.1.5"
56
56
  },
57
57
  "engines": {
58
- "node": ">=22.17.0"
58
+ "node": ">=22.22.3"
59
59
  },
60
60
  "publishConfig": {
61
61
  "access": "public"