doer-agent 0.6.0 → 0.6.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/dist/agent.js +4 -1
- package/dist/codex-app-server-manager.js +10 -1
- package/package.json +1 -1
package/dist/agent.js
CHANGED
|
@@ -118,7 +118,9 @@ function formatCodexAppNotificationParams(params) {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
function shouldForwardCodexAppNotification(method) {
|
|
121
|
-
return method !== "item/agentMessage/delta"
|
|
121
|
+
return (method !== "item/agentMessage/delta" &&
|
|
122
|
+
method !== "item/commandExecution/outputDelta" &&
|
|
123
|
+
method !== "item/plan/delta");
|
|
122
124
|
}
|
|
123
125
|
const runtimeEnvHelpers = createRuntimeEnvHelpers({
|
|
124
126
|
resolveWorkspaceRoot,
|
|
@@ -221,6 +223,7 @@ async function main() {
|
|
|
221
223
|
subscribeAll: () => {
|
|
222
224
|
const codexAppServerManager = createCodexAppServerManager({
|
|
223
225
|
workspaceRoot: resolveWorkspaceRoot(),
|
|
226
|
+
agentProjectDir: AGENT_PROJECT_DIR,
|
|
224
227
|
resolveCodexHomePath: runtimeEnvHelpers.resolveCodexHomePath,
|
|
225
228
|
readAgentSettingsConfig,
|
|
226
229
|
onLog: writeAgentInfo,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { buildAgentSettingsEnvPatch, readAgentModelInstructions, resolveAgentModelInstructionsFilePath, } from "./agent-settings.js";
|
|
2
|
+
import { buildDaemonMcpConfigArgs } from "./agent-codex-cli.js";
|
|
2
3
|
import { CodexAppServerClient } from "./codex-app-server-client.js";
|
|
3
4
|
function toTomlStringLiteral(value) {
|
|
4
5
|
return `"${value.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
@@ -23,6 +24,10 @@ async function buildCodexAppServerArgs(args) {
|
|
|
23
24
|
return [
|
|
24
25
|
"app-server",
|
|
25
26
|
...configArgs,
|
|
27
|
+
...buildDaemonMcpConfigArgs({
|
|
28
|
+
agentProjectDir: args.agentProjectDir,
|
|
29
|
+
workspaceRoot: args.workspaceRoot,
|
|
30
|
+
}),
|
|
26
31
|
...buildFeatureArg(args.settings.codex.computerUseEnabled, "computer_use"),
|
|
27
32
|
...buildFeatureArg(args.settings.codex.browserUseEnabled, "browser_use"),
|
|
28
33
|
"--listen",
|
|
@@ -42,7 +47,11 @@ export function createCodexAppServerManager(args) {
|
|
|
42
47
|
let generation = 0;
|
|
43
48
|
const createClient = async () => {
|
|
44
49
|
const settings = await args.readAgentSettingsConfig({ workspaceRoot: args.workspaceRoot });
|
|
45
|
-
const appServerArgs = await buildCodexAppServerArgs({
|
|
50
|
+
const appServerArgs = await buildCodexAppServerArgs({
|
|
51
|
+
workspaceRoot: args.workspaceRoot,
|
|
52
|
+
agentProjectDir: args.agentProjectDir,
|
|
53
|
+
settings,
|
|
54
|
+
});
|
|
46
55
|
const env = await buildCodexAppServerEnv({
|
|
47
56
|
workspaceRoot: args.workspaceRoot,
|
|
48
57
|
resolveCodexHomePath: args.resolveCodexHomePath,
|