@ccpocket/bridge 1.85.2 → 1.86.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
@@ -39,6 +39,7 @@ ccpocket-bridge --version
39
39
  | Environment Variable | Default | Description |
40
40
  |---------------------|---------|-------------|
41
41
  | `BRIDGE_PORT` | `8765` | WebSocket port |
42
+ | `BRIDGE_NOTIFY_GOAL_TURN_COMPLETED` | `false` | Set exactly to `true` to notify intermediate Codex turns while a Goal is active. Goal completion, blockers, limits, approvals and errors remain enabled. Read at session creation; restart Bridge to apply to all sessions. |
42
43
  | `BRIDGE_HOST` | `0.0.0.0` | Bind address |
43
44
  | `BRIDGE_API_KEY` | (none) | API key authentication (enabled when set) |
44
45
  | `BRIDGE_ALLOWED_DIRS` | `$HOME` | Comma-separated list of project directories the Bridge may access; set exactly to `*` to allow any directory |
@@ -212,7 +212,7 @@ export declare class CodexProcess extends EventEmitter<CodexProcessEvents> {
212
212
  */
213
213
  renameThread(name: string): Promise<void>;
214
214
  /** Read the persisted goal attached to this Codex thread. */
215
- getGoal(): Promise<CodexGoal | null>;
215
+ getGoal(timeoutMs?: number): Promise<CodexGoal | null>;
216
216
  /** Create or update the persisted goal attached to this Codex thread. */
217
217
  setGoal(update: {
218
218
  objective?: string;
@@ -241,13 +241,11 @@ export class CodexProcess extends EventEmitter {
241
241
  });
242
242
  }
243
243
  /** Read the persisted goal attached to this Codex thread. */
244
- async getGoal() {
244
+ async getGoal(timeoutMs = 3_000) {
245
245
  if (!this._threadId) {
246
246
  throw new Error("No thread ID available for goal lookup");
247
247
  }
248
- const response = (await this.request("thread/goal/get", {
249
- threadId: this._threadId,
250
- }));
248
+ const response = (await this.request("thread/goal/get", { threadId: this._threadId }, timeoutMs));
251
249
  return response.goal == null ? null : parseCodexGoal(response.goal);
252
250
  }
253
251
  /** Create or update the persisted goal attached to this Codex thread. */