@53ai/53ai-openclaw 1.0.7 → 1.0.9

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.
@@ -0,0 +1,25 @@
1
+ interface BeforeCompactionEvent {
2
+ messageCount: number;
3
+ compactingCount?: number;
4
+ tokenCount?: number;
5
+ messages?: unknown[];
6
+ sessionFile?: string;
7
+ }
8
+ interface AfterCompactionEvent {
9
+ messageCount: number;
10
+ tokenCount?: number;
11
+ compactedCount: number;
12
+ sessionFile?: string;
13
+ }
14
+ interface AgentContext {
15
+ agentId?: string;
16
+ sessionKey?: string;
17
+ sessionId?: string;
18
+ workspaceDir?: string;
19
+ messageProvider?: string;
20
+ trigger?: string;
21
+ channelId?: string;
22
+ }
23
+ export declare function handleBeforeCompaction(event: BeforeCompactionEvent, ctx: AgentContext): Promise<void>;
24
+ export declare function handleAfterCompaction(event: AfterCompactionEvent, ctx: AgentContext): Promise<void>;
25
+ export {};
@@ -12,6 +12,7 @@ interface SendReplyParams {
12
12
  isError?: boolean;
13
13
  errorCode?: ErrorCode | string;
14
14
  errorDetails?: string;
15
+ isThinking?: boolean;
15
16
  }
16
17
  export declare function sendReply(params: SendReplyParams): Promise<void>;
17
18
  export declare function sendDirectMessage(wsClient: WebSocket, to: string, content: string, runtime?: RuntimeEnv): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@53ai/53ai-openclaw",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -41,7 +41,7 @@
41
41
  "bugs": {
42
42
  "url": "https://github.com/53AI/53ai-openclaw/issues"
43
43
  },
44
- "homepage": "https://github.com/53AI/53ai-openclaw#readme",
44
+ "homepage": "https://www.53ai.com",
45
45
  "dependencies": {
46
46
  "ws": "^8.16.0"
47
47
  },
@@ -57,4 +57,4 @@
57
57
  "tslib": "^2.6.2",
58
58
  "typescript": "^5.3.3"
59
59
  }
60
- }
60
+ }