@ccpocket/bridge 1.24.0 → 1.26.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/dist/codex-process.d.ts +29 -0
- package/dist/codex-process.js +560 -44
- package/dist/codex-process.js.map +1 -1
- package/dist/parser.d.ts +3 -0
- package/dist/parser.js.map +1 -1
- package/dist/push-i18n.d.ts +1 -1
- package/dist/push-i18n.js +18 -1
- package/dist/push-i18n.js.map +1 -1
- package/dist/sdk-process.js +11 -38
- package/dist/sdk-process.js.map +1 -1
- package/dist/session.d.ts +2 -0
- package/dist/session.js +56 -50
- package/dist/session.js.map +1 -1
- package/dist/sessions-index.d.ts +2 -0
- package/dist/sessions-index.js +10 -0
- package/dist/sessions-index.js.map +1 -1
- package/dist/websocket.d.ts +4 -0
- package/dist/websocket.js +104 -10
- package/dist/websocket.js.map +1 -1
- package/package.json +1 -1
package/dist/codex-process.d.ts
CHANGED
|
@@ -27,10 +27,23 @@ export interface CodexSkillMetadata {
|
|
|
27
27
|
defaultPrompt?: string;
|
|
28
28
|
brandColor?: string;
|
|
29
29
|
}
|
|
30
|
+
export interface CodexThreadSummary {
|
|
31
|
+
id: string;
|
|
32
|
+
preview: string;
|
|
33
|
+
createdAt: number;
|
|
34
|
+
updatedAt: number;
|
|
35
|
+
cwd: string;
|
|
36
|
+
agentNickname: string | null;
|
|
37
|
+
agentRole: string | null;
|
|
38
|
+
gitBranch: string | null;
|
|
39
|
+
name: string | null;
|
|
40
|
+
}
|
|
30
41
|
export declare class CodexProcess extends EventEmitter<CodexProcessEvents> {
|
|
31
42
|
private child;
|
|
32
43
|
private _status;
|
|
33
44
|
private _threadId;
|
|
45
|
+
private _agentNickname;
|
|
46
|
+
private _agentRole;
|
|
34
47
|
private stopped;
|
|
35
48
|
private startModel;
|
|
36
49
|
private inputResolve;
|
|
@@ -57,6 +70,8 @@ export declare class CodexProcess extends EventEmitter<CodexProcessEvents> {
|
|
|
57
70
|
get status(): ProcessStatus;
|
|
58
71
|
get isWaitingForInput(): boolean;
|
|
59
72
|
get sessionId(): string | null;
|
|
73
|
+
get agentNickname(): string | null;
|
|
74
|
+
get agentRole(): string | null;
|
|
60
75
|
get isRunning(): boolean;
|
|
61
76
|
get approvalPolicy(): string;
|
|
62
77
|
/**
|
|
@@ -81,8 +96,20 @@ export declare class CodexProcess extends EventEmitter<CodexProcessEvents> {
|
|
|
81
96
|
* can be archived without requiring a running process.
|
|
82
97
|
*/
|
|
83
98
|
archiveThread(threadId: string): Promise<void>;
|
|
99
|
+
listThreads(params?: {
|
|
100
|
+
limit?: number;
|
|
101
|
+
cursor?: string | null;
|
|
102
|
+
cwd?: string;
|
|
103
|
+
searchTerm?: string;
|
|
104
|
+
}): Promise<{
|
|
105
|
+
data: CodexThreadSummary[];
|
|
106
|
+
nextCursor: string | null;
|
|
107
|
+
}>;
|
|
84
108
|
start(projectPath: string, options?: CodexStartOptions): void;
|
|
109
|
+
initializeOnly(projectPath: string): Promise<void>;
|
|
85
110
|
stop(): void;
|
|
111
|
+
private prepareLaunch;
|
|
112
|
+
private launchAppServer;
|
|
86
113
|
interrupt(): void;
|
|
87
114
|
sendInput(text: string): void;
|
|
88
115
|
sendInputWithImages(text: string, images: Array<{
|
|
@@ -115,6 +142,7 @@ export declare class CodexProcess extends EventEmitter<CodexProcessEvents> {
|
|
|
115
142
|
*/
|
|
116
143
|
private handlePlanRejected;
|
|
117
144
|
private bootstrap;
|
|
145
|
+
private initializeRpcConnection;
|
|
118
146
|
/**
|
|
119
147
|
* Fetch skills from Codex app-server via `skills/list` RPC and emit them
|
|
120
148
|
* as a `supported_commands` system message so the Flutter client can display
|
|
@@ -139,4 +167,5 @@ export declare class CodexProcess extends EventEmitter<CodexProcessEvents> {
|
|
|
139
167
|
private setStatus;
|
|
140
168
|
private emitMessage;
|
|
141
169
|
private extractToolUseId;
|
|
170
|
+
private handleServerRequestResolved;
|
|
142
171
|
}
|