@ccpocket/bridge 1.25.0 → 1.27.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/README.md CHANGED
@@ -12,6 +12,10 @@ npx @ccpocket/bridge@latest
12
12
 
13
13
  A QR code will appear in your terminal. Scan it with the ccpocket mobile app to connect.
14
14
 
15
+ > Warning
16
+ > Versions older than `1.25.0` are deprecated and should not be used for new installs due to potential Anthropic policy concerns around OAuth-based usage.
17
+ > Upgrade to `>=1.25.0` and use `ANTHROPIC_API_KEY` instead of OAuth.
18
+
15
19
  ## Installation
16
20
 
17
21
  ```bash
@@ -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;
@@ -56,7 +69,10 @@ export declare class CodexProcess extends EventEmitter<CodexProcessEvents> {
56
69
  private _pendingPlanInput;
57
70
  get status(): ProcessStatus;
58
71
  get isWaitingForInput(): boolean;
72
+ private getMessageModel;
59
73
  get sessionId(): string | null;
74
+ get agentNickname(): string | null;
75
+ get agentRole(): string | null;
60
76
  get isRunning(): boolean;
61
77
  get approvalPolicy(): string;
62
78
  /**
@@ -81,8 +97,20 @@ export declare class CodexProcess extends EventEmitter<CodexProcessEvents> {
81
97
  * can be archived without requiring a running process.
82
98
  */
83
99
  archiveThread(threadId: string): Promise<void>;
100
+ listThreads(params?: {
101
+ limit?: number;
102
+ cursor?: string | null;
103
+ cwd?: string;
104
+ searchTerm?: string;
105
+ }): Promise<{
106
+ data: CodexThreadSummary[];
107
+ nextCursor: string | null;
108
+ }>;
84
109
  start(projectPath: string, options?: CodexStartOptions): void;
110
+ initializeOnly(projectPath: string): Promise<void>;
85
111
  stop(): void;
112
+ private prepareLaunch;
113
+ private launchAppServer;
86
114
  interrupt(): void;
87
115
  sendInput(text: string): void;
88
116
  sendInputWithImages(text: string, images: Array<{
@@ -115,6 +143,7 @@ export declare class CodexProcess extends EventEmitter<CodexProcessEvents> {
115
143
  */
116
144
  private handlePlanRejected;
117
145
  private bootstrap;
146
+ private initializeRpcConnection;
118
147
  /**
119
148
  * Fetch skills from Codex app-server via `skills/list` RPC and emit them
120
149
  * as a `supported_commands` system message so the Flutter client can display
@@ -139,4 +168,5 @@ export declare class CodexProcess extends EventEmitter<CodexProcessEvents> {
139
168
  private setStatus;
140
169
  private emitMessage;
141
170
  private extractToolUseId;
171
+ private handleServerRequestResolved;
142
172
  }