@codewithdan/zingit 0.7.0 → 0.9.0
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/client/dist/zingit-client.js +176 -97
- package/package.json +4 -1
- package/server/dist/agents/base.d.ts +2 -3
- package/server/dist/agents/claude.d.ts +1 -2
- package/server/dist/agents/claude.js +56 -22
- package/server/dist/agents/codex.d.ts +1 -2
- package/server/dist/agents/codex.js +14 -6
- package/server/dist/agents/copilot.d.ts +1 -2
- package/server/dist/agents/copilot.js +21 -7
- package/server/dist/handlers/messageHandlers.d.ts +3 -1
- package/server/dist/handlers/messageHandlers.js +113 -18
- package/server/dist/index.js +23 -13
- package/server/dist/types.d.ts +10 -1
- package/server/dist/types.js +9 -1
package/server/dist/types.d.ts
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import type { WebSocket } from 'ws';
|
|
2
2
|
import type { CheckpointInfo } from './services/git-manager.js';
|
|
3
|
+
/**
|
|
4
|
+
* Mutable WebSocket reference holder to support reconnection during agent processing
|
|
5
|
+
*/
|
|
6
|
+
export declare class WebSocketRef {
|
|
7
|
+
current: WebSocket;
|
|
8
|
+
constructor(current: WebSocket);
|
|
9
|
+
}
|
|
3
10
|
export interface Agent {
|
|
4
11
|
name: string;
|
|
5
12
|
model: string;
|
|
6
13
|
start(): Promise<void>;
|
|
7
14
|
stop(): Promise<void>;
|
|
8
|
-
createSession(
|
|
15
|
+
createSession(wsRef: WebSocketRef, projectDir: string, resumeSessionId?: string): Promise<AgentSession>;
|
|
9
16
|
formatPrompt(data: BatchData, projectDir: string): string;
|
|
10
17
|
extractImages(data: BatchData): ImageContent[];
|
|
11
18
|
}
|
|
@@ -20,6 +27,7 @@ export interface AgentSession {
|
|
|
20
27
|
images?: ImageContent[];
|
|
21
28
|
}): Promise<void>;
|
|
22
29
|
destroy(): Promise<void>;
|
|
30
|
+
getSessionId?(): string | null;
|
|
23
31
|
}
|
|
24
32
|
export interface Annotation {
|
|
25
33
|
id: string;
|
|
@@ -46,6 +54,7 @@ export interface WSIncomingMessage {
|
|
|
46
54
|
type: WSIncomingType;
|
|
47
55
|
data?: BatchData;
|
|
48
56
|
content?: string;
|
|
57
|
+
pageUrl?: string;
|
|
49
58
|
agent?: string;
|
|
50
59
|
checkpointId?: string;
|
|
51
60
|
}
|
package/server/dist/types.js
CHANGED