@easbot/utils 0.2.41 → 0.2.43

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.cts CHANGED
@@ -44,6 +44,8 @@ declare namespace Encode {
44
44
  declare namespace TruncateContent {
45
45
  const DEFAULT_MAX_CHARS = 4000;
46
46
  const DIRECTION: "head";
47
+ const DIR: string;
48
+ const GLOB: string;
47
49
  type Result = {
48
50
  content: string;
49
51
  truncated: false;
@@ -64,6 +66,7 @@ declare namespace TruncateContent {
64
66
  }
65
67
  function truncate(content: string, options?: Options): Promise<Result>;
66
68
  function formatHint(result: Result): string;
69
+ function cleanup(): Promise<void>;
67
70
  }
68
71
 
69
72
  declare namespace SessionTitle {
@@ -755,6 +758,7 @@ declare namespace Fetch {
755
758
  name: string;
756
759
  value: string | Uint8Array | Buffer;
757
760
  filename?: string;
761
+ maxSize?: number;
758
762
  }
759
763
  function postForm<T = any>(url: string | URL, fields: FormField[], options?: RequestOptions): Promise<FetchResponse<T>>;
760
764
  interface SSEHandler {
@@ -1125,6 +1129,7 @@ declare namespace Identifier {
1125
1129
  readonly command: "cmd";
1126
1130
  readonly task: "task";
1127
1131
  readonly heartbeat: "hb";
1132
+ readonly agent: "ag";
1128
1133
  readonly subagent: "sub";
1129
1134
  readonly hook: "hok";
1130
1135
  readonly compaction: "cmp";
package/dist/index.d.ts CHANGED
@@ -44,6 +44,8 @@ declare namespace Encode {
44
44
  declare namespace TruncateContent {
45
45
  const DEFAULT_MAX_CHARS = 4000;
46
46
  const DIRECTION: "head";
47
+ const DIR: string;
48
+ const GLOB: string;
47
49
  type Result = {
48
50
  content: string;
49
51
  truncated: false;
@@ -64,6 +66,7 @@ declare namespace TruncateContent {
64
66
  }
65
67
  function truncate(content: string, options?: Options): Promise<Result>;
66
68
  function formatHint(result: Result): string;
69
+ function cleanup(): Promise<void>;
67
70
  }
68
71
 
69
72
  declare namespace SessionTitle {
@@ -755,6 +758,7 @@ declare namespace Fetch {
755
758
  name: string;
756
759
  value: string | Uint8Array | Buffer;
757
760
  filename?: string;
761
+ maxSize?: number;
758
762
  }
759
763
  function postForm<T = any>(url: string | URL, fields: FormField[], options?: RequestOptions): Promise<FetchResponse<T>>;
760
764
  interface SSEHandler {
@@ -1125,6 +1129,7 @@ declare namespace Identifier {
1125
1129
  readonly command: "cmd";
1126
1130
  readonly task: "task";
1127
1131
  readonly heartbeat: "hb";
1132
+ readonly agent: "ag";
1128
1133
  readonly subagent: "sub";
1129
1134
  readonly hook: "hok";
1130
1135
  readonly compaction: "cmp";