@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 +1 -0
- package/dist/codex-process.d.ts +1 -1
- package/dist/codex-process.js +2 -4
- package/dist/codex-process.js.map +1 -1
- package/dist/goal-notifications.d.ts +13 -0
- package/dist/goal-notifications.js +44 -0
- package/dist/goal-notifications.js.map +1 -0
- package/dist/parser.d.ts +3 -0
- package/dist/parser.js.map +1 -1
- package/dist/push-i18n.js +20 -0
- package/dist/push-i18n.js.map +1 -1
- package/dist/repository-root.d.ts +27 -0
- package/dist/repository-root.js +116 -0
- package/dist/repository-root.js.map +1 -0
- package/dist/session.js +39 -1
- package/dist/session.js.map +1 -1
- package/dist/sessions-index.d.ts +3 -1
- package/dist/sessions-index.js +104 -45
- package/dist/sessions-index.js.map +1 -1
- package/dist/websocket.js +22 -0
- package/dist/websocket.js.map +1 -1
- package/package.json +1 -1
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 |
|
package/dist/codex-process.d.ts
CHANGED
|
@@ -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;
|
package/dist/codex-process.js
CHANGED
|
@@ -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. */
|