@agentconnect.md/codex-acp 1.7.0-agentconnect.1 → 1.7.0-agentconnect.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/index.js +3 -56
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Use [OpenAI Codex](https://github.com/openai/codex) from [Agent Client Protocol]
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
11
11
|
- ChatGPT, API key, and client-provided custom gateway authentication.
|
|
12
|
-
- Model, reasoning effort, fast mode, approval
|
|
12
|
+
- Model, reasoning effort, fast mode, approval, and sandbox mode configuration.
|
|
13
13
|
- Text prompts, embedded context, images, resource links, and additional workspace directories.
|
|
14
14
|
- Shell command, file change, [permission request](docs/permission-extension.md), MCP tool call, terminal output, reasoning, plan, web search, image generation, image view, token usage, and review events.
|
|
15
15
|
- [Native ACP subagent sessions](docs/subagent-sessions.md) (after capability negotiation) with separate child histories and root-routed permissions; a legacy tool-call fallback otherwise.
|
package/dist/index.js
CHANGED
|
@@ -27235,7 +27235,7 @@ var package_default = {
|
|
|
27235
27235
|
publishConfig: {
|
|
27236
27236
|
access: "public"
|
|
27237
27237
|
},
|
|
27238
|
-
version: "1.7.0-agentconnect.
|
|
27238
|
+
version: "1.7.0-agentconnect.2",
|
|
27239
27239
|
description: "",
|
|
27240
27240
|
main: "dist/index.js",
|
|
27241
27241
|
bin: {
|
|
@@ -27797,41 +27797,6 @@ var CodexSubagentSubscriptions = class {
|
|
|
27797
27797
|
}
|
|
27798
27798
|
};
|
|
27799
27799
|
|
|
27800
|
-
// src/ApprovalsReviewerConfig.ts
|
|
27801
|
-
var APPROVALS_REVIEWER_CONFIG_ID = "approvals_reviewer";
|
|
27802
|
-
var USER_APPROVALS_REVIEWER = "user";
|
|
27803
|
-
var AUTO_APPROVALS_REVIEWER = "auto_review";
|
|
27804
|
-
function createApprovalsReviewerConfigOption(currentValue) {
|
|
27805
|
-
return {
|
|
27806
|
-
id: APPROVALS_REVIEWER_CONFIG_ID,
|
|
27807
|
-
name: "Approval reviewer",
|
|
27808
|
-
description: "Who reviews eligible approval requests",
|
|
27809
|
-
category: "_approvals_reviewer",
|
|
27810
|
-
type: "select",
|
|
27811
|
-
currentValue,
|
|
27812
|
-
options: [
|
|
27813
|
-
{
|
|
27814
|
-
value: USER_APPROVALS_REVIEWER,
|
|
27815
|
-
name: "User",
|
|
27816
|
-
description: "Ask the user to approve or deny requests"
|
|
27817
|
-
},
|
|
27818
|
-
{
|
|
27819
|
-
value: AUTO_APPROVALS_REVIEWER,
|
|
27820
|
-
name: "Auto-review",
|
|
27821
|
-
description: "Use a reviewer agent to assess eligible requests"
|
|
27822
|
-
}
|
|
27823
|
-
]
|
|
27824
|
-
};
|
|
27825
|
-
}
|
|
27826
|
-
function parseApprovalsReviewer(value) {
|
|
27827
|
-
if (value === USER_APPROVALS_REVIEWER) return USER_APPROVALS_REVIEWER;
|
|
27828
|
-
if (value === AUTO_APPROVALS_REVIEWER) return AUTO_APPROVALS_REVIEWER;
|
|
27829
|
-
return null;
|
|
27830
|
-
}
|
|
27831
|
-
function normalizeApprovalsReviewer(value) {
|
|
27832
|
-
return value === AUTO_APPROVALS_REVIEWER || value === "guardian_subagent" ? AUTO_APPROVALS_REVIEWER : USER_APPROVALS_REVIEWER;
|
|
27833
|
-
}
|
|
27834
|
-
|
|
27835
27800
|
// src/PermissionProfileConfig.ts
|
|
27836
27801
|
var PERMISSION_PROFILE_CONFIG_ENV = "CODEX_ACP_PERMISSION_PROFILE_CONFIG";
|
|
27837
27802
|
var permissionProfileConfigSchema = external_exports.object({
|
|
@@ -28200,7 +28165,6 @@ var CodexAcpClient = class {
|
|
|
28200
28165
|
currentModelId,
|
|
28201
28166
|
models: codexModels,
|
|
28202
28167
|
collaborationMode: this.getCollaborationMode(response.thread.id),
|
|
28203
|
-
approvalsReviewer: normalizeApprovalsReviewer(response.approvalsReviewer),
|
|
28204
28168
|
modelProvider: response.modelProvider,
|
|
28205
28169
|
currentServiceTier: response.serviceTier ?? null,
|
|
28206
28170
|
additionalDirectories
|
|
@@ -28229,7 +28193,6 @@ var CodexAcpClient = class {
|
|
|
28229
28193
|
currentModelId,
|
|
28230
28194
|
models: codexModels,
|
|
28231
28195
|
collaborationMode: this.getCollaborationMode(response.thread.id),
|
|
28232
|
-
approvalsReviewer: normalizeApprovalsReviewer(response.approvalsReviewer),
|
|
28233
28196
|
modelProvider: response.modelProvider,
|
|
28234
28197
|
currentServiceTier: response.serviceTier ?? null,
|
|
28235
28198
|
thread: historyResponse.thread,
|
|
@@ -28262,7 +28225,6 @@ var CodexAcpClient = class {
|
|
|
28262
28225
|
currentModelId,
|
|
28263
28226
|
models: codexModels,
|
|
28264
28227
|
collaborationMode: this.getCollaborationMode(response.thread.id),
|
|
28265
|
-
approvalsReviewer: normalizeApprovalsReviewer(response.approvalsReviewer),
|
|
28266
28228
|
modelProvider: response.modelProvider,
|
|
28267
28229
|
currentServiceTier: response.serviceTier ?? null,
|
|
28268
28230
|
additionalDirectories
|
|
@@ -28500,7 +28462,7 @@ var CodexAcpClient = class {
|
|
|
28500
28462
|
}
|
|
28501
28463
|
});
|
|
28502
28464
|
}
|
|
28503
|
-
async sendPrompt(request, agentMode,
|
|
28465
|
+
async sendPrompt(request, agentMode, modelId, serviceTier, disableSummary, cwd, additionalDirectories, onTurnStarted, shouldCancel) {
|
|
28504
28466
|
const input = buildPromptItems(request.prompt);
|
|
28505
28467
|
const effort = modelId.effort;
|
|
28506
28468
|
await this.refreshSkills(cwd, additionalDirectories);
|
|
@@ -28516,7 +28478,7 @@ var CodexAcpClient = class {
|
|
|
28516
28478
|
threadId: request.sessionId,
|
|
28517
28479
|
input,
|
|
28518
28480
|
approvalPolicy: agentMode.approvalPolicy,
|
|
28519
|
-
approvalsReviewer,
|
|
28481
|
+
approvalsReviewer: agentMode.approvalsReviewer,
|
|
28520
28482
|
...sandboxSelection,
|
|
28521
28483
|
summary: disableSummary ? "none" : "auto",
|
|
28522
28484
|
effort,
|
|
@@ -31716,7 +31678,6 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
31716
31678
|
supportedReasoningEfforts: currentModel?.supportedReasoningEfforts ?? [],
|
|
31717
31679
|
supportedInputModalities: currentModel?.inputModalities ?? ["text", "image"],
|
|
31718
31680
|
agentMode: AgentMode.getInitialAgentMode(),
|
|
31719
|
-
approvalsReviewer: sessionMetadata.approvalsReviewer,
|
|
31720
31681
|
collaborationMode: sessionMetadata.collaborationMode,
|
|
31721
31682
|
currentTurnId: null,
|
|
31722
31683
|
lastTokenUsage: null,
|
|
@@ -32105,9 +32066,6 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
32105
32066
|
case MODE_CONFIG_ID:
|
|
32106
32067
|
await this.applyModeChange(sessionState, this.stringConfigValue(params));
|
|
32107
32068
|
break;
|
|
32108
|
-
case APPROVALS_REVIEWER_CONFIG_ID:
|
|
32109
|
-
this.applyApprovalsReviewerChange(sessionState, this.stringConfigValue(params));
|
|
32110
|
-
break;
|
|
32111
32069
|
case COLLABORATION_MODE_CONFIG_ID:
|
|
32112
32070
|
await this.applyCollaborationModeChange(sessionState, this.stringConfigValue(params));
|
|
32113
32071
|
break;
|
|
@@ -32149,13 +32107,6 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
32149
32107
|
);
|
|
32150
32108
|
sessionState.agentMode = newMode;
|
|
32151
32109
|
}
|
|
32152
|
-
applyApprovalsReviewerChange(sessionState, value) {
|
|
32153
|
-
const approvalsReviewer = parseApprovalsReviewer(value);
|
|
32154
|
-
if (approvalsReviewer === null) {
|
|
32155
|
-
throw RequestError.invalidParams();
|
|
32156
|
-
}
|
|
32157
|
-
sessionState.approvalsReviewer = approvalsReviewer;
|
|
32158
|
-
}
|
|
32159
32110
|
async applyCollaborationModeChange(sessionState, value) {
|
|
32160
32111
|
const mode = parseCollaborationMode(value);
|
|
32161
32112
|
if (mode === null) {
|
|
@@ -32443,7 +32394,6 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
32443
32394
|
const currentModelId = ModelId.fromString(sessionState.currentModelId);
|
|
32444
32395
|
const configOptions = [
|
|
32445
32396
|
sessionState.agentMode.toConfigOption(),
|
|
32446
|
-
createApprovalsReviewerConfigOption(sessionState.approvalsReviewer),
|
|
32447
32397
|
createCollaborationModeConfigOption(sessionState.collaborationMode),
|
|
32448
32398
|
createModelConfigOption(sessionState.availableModels, currentModelId.model)
|
|
32449
32399
|
];
|
|
@@ -32583,7 +32533,6 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
32583
32533
|
supportedReasoningEfforts: currentModel?.supportedReasoningEfforts ?? [],
|
|
32584
32534
|
supportedInputModalities: currentModel?.inputModalities ?? ["text", "image"],
|
|
32585
32535
|
agentMode: AgentMode.getInitialAgentMode(),
|
|
32586
|
-
approvalsReviewer: sessionMetadata.approvalsReviewer,
|
|
32587
32536
|
collaborationMode: sessionMetadata.collaborationMode,
|
|
32588
32537
|
currentTurnId: null,
|
|
32589
32538
|
lastTokenUsage: null,
|
|
@@ -33401,7 +33350,6 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
33401
33350
|
() => this.codexAcpClient.sendPrompt(
|
|
33402
33351
|
effectiveParams,
|
|
33403
33352
|
agentMode,
|
|
33404
|
-
sessionState.approvalsReviewer,
|
|
33405
33353
|
modelId,
|
|
33406
33354
|
serviceTier,
|
|
33407
33355
|
disableSummary,
|
|
@@ -33492,7 +33440,6 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
33492
33440
|
() => this.codexAcpClient.sendPrompt(
|
|
33493
33441
|
implementationRequest,
|
|
33494
33442
|
agentMode,
|
|
33495
|
-
sessionState.approvalsReviewer,
|
|
33496
33443
|
modelId,
|
|
33497
33444
|
serviceTier,
|
|
33498
33445
|
disableSummary,
|