replicas-engine 0.1.0 → 0.1.2
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 -1
- package/dist/routes/codex.js +4 -1
- package/dist/services/codex-manager.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ The Replicas Engine is automatically installed on every workspace and runs as a
|
|
|
18
18
|
The engine is automatically installed during workspace initialization. For manual installation:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
|
|
21
|
+
npm install -g replicas-engine
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
## Configuration
|
package/dist/routes/codex.js
CHANGED
|
@@ -17,7 +17,10 @@ codex.post('/send', async (c) => {
|
|
|
17
17
|
}
|
|
18
18
|
// Stream events using SSE
|
|
19
19
|
return stream(c, async (stream) => {
|
|
20
|
-
// Set SSE headers
|
|
20
|
+
// Set SSE headers explicitly
|
|
21
|
+
c.header('Content-Type', 'text/event-stream');
|
|
22
|
+
c.header('Cache-Control', 'no-cache');
|
|
23
|
+
c.header('Connection', 'keep-alive');
|
|
21
24
|
stream.onAbort(() => {
|
|
22
25
|
console.log('Client aborted SSE connection');
|
|
23
26
|
});
|
|
@@ -25,6 +25,7 @@ export class CodexManager {
|
|
|
25
25
|
this.currentThread = this.codex.resumeThread(this.currentThreadId, {
|
|
26
26
|
workingDirectory: this.workingDirectory,
|
|
27
27
|
skipGitRepoCheck: true,
|
|
28
|
+
sandboxMode: 'danger-full-access',
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
31
|
else {
|
|
@@ -32,6 +33,7 @@ export class CodexManager {
|
|
|
32
33
|
this.currentThread = this.codex.startThread({
|
|
33
34
|
workingDirectory: this.workingDirectory,
|
|
34
35
|
skipGitRepoCheck: true,
|
|
36
|
+
sandboxMode: 'danger-full-access',
|
|
35
37
|
});
|
|
36
38
|
}
|
|
37
39
|
}
|