@agentclientprotocol/codex-acp 1.10.1-preview.2 → 1.10.1-preview.3
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/index.js +10 -14
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -27360,7 +27360,7 @@ var package_default = {
|
|
|
27360
27360
|
publishConfig: {
|
|
27361
27361
|
access: "public"
|
|
27362
27362
|
},
|
|
27363
|
-
version: "1.10.1-preview.
|
|
27363
|
+
version: "1.10.1-preview.3",
|
|
27364
27364
|
description: "",
|
|
27365
27365
|
main: "dist/index.js",
|
|
27366
27366
|
bin: {
|
|
@@ -27423,7 +27423,7 @@ var package_default = {
|
|
|
27423
27423
|
},
|
|
27424
27424
|
dependencies: {
|
|
27425
27425
|
"@agentclientprotocol/sdk": "^1.4.0",
|
|
27426
|
-
"@openai/codex": "^0.153.
|
|
27426
|
+
"@openai/codex": "^0.153.4",
|
|
27427
27427
|
diff: "^9.0.0",
|
|
27428
27428
|
open: "^11.0.1",
|
|
27429
27429
|
"vscode-jsonrpc": "^9.0.1",
|
|
@@ -30028,6 +30028,10 @@ function extractTurnRouting(notification) {
|
|
|
30028
30028
|
// src/ModelConfigOption.ts
|
|
30029
30029
|
var MODEL_CONFIG_ID = "model";
|
|
30030
30030
|
var REASONING_EFFORT_CONFIG_ID = "reasoning_effort";
|
|
30031
|
+
function formatModelDisplayName(displayName) {
|
|
30032
|
+
if (!/^gpt-/i.test(displayName)) return displayName;
|
|
30033
|
+
return displayName.replace(/^gpt-/i, "").split(/[-/]+/).filter(Boolean).map(capitalize).join(" ");
|
|
30034
|
+
}
|
|
30031
30035
|
function capitalize(value) {
|
|
30032
30036
|
return value.charAt(0).toUpperCase() + value.slice(1);
|
|
30033
30037
|
}
|
|
@@ -30038,13 +30042,13 @@ function findSupportedEffort(options, effort) {
|
|
|
30038
30042
|
function createModelConfigOption(availableModels, currentBaseModelId, recommendedModelId) {
|
|
30039
30043
|
const options = availableModels.map((model) => ({
|
|
30040
30044
|
value: model.id,
|
|
30041
|
-
name: model.displayName,
|
|
30045
|
+
name: formatModelDisplayName(model.displayName),
|
|
30042
30046
|
description: model.description
|
|
30043
30047
|
}));
|
|
30044
30048
|
if (!availableModels.some((model) => model.id === currentBaseModelId)) {
|
|
30045
30049
|
options.unshift({
|
|
30046
30050
|
value: currentBaseModelId,
|
|
30047
|
-
name: currentBaseModelId,
|
|
30051
|
+
name: formatModelDisplayName(currentBaseModelId),
|
|
30048
30052
|
description: null
|
|
30049
30053
|
});
|
|
30050
30054
|
}
|
|
@@ -32217,12 +32221,7 @@ function clientSupportsTypedSessionFailures(capabilities) {
|
|
|
32217
32221
|
function clientSupportsAgentFileChangeReports(capabilities) {
|
|
32218
32222
|
return clientSupportsAirCapability(capabilities, AIR_AGENT_FILE_CHANGE_REPORT_KEY);
|
|
32219
32223
|
}
|
|
32220
|
-
var CodexAcpServer = class
|
|
32221
|
-
static MODEL_NAME_TOKEN_OVERRIDES = {
|
|
32222
|
-
gpt: "GPT",
|
|
32223
|
-
mini: "Mini",
|
|
32224
|
-
codex: "Codex"
|
|
32225
|
-
};
|
|
32224
|
+
var CodexAcpServer = class {
|
|
32226
32225
|
codexAcpClient;
|
|
32227
32226
|
connection;
|
|
32228
32227
|
defaultAuthRequest;
|
|
@@ -33605,14 +33604,11 @@ Check ${configPath} and project .codex directories, especially their config.toml
|
|
|
33605
33604
|
const modelId = ModelId.fromString(currentModelId);
|
|
33606
33605
|
return models.find((m) => m.id === modelId.model);
|
|
33607
33606
|
}
|
|
33608
|
-
normalizeModelDisplayName(displayName) {
|
|
33609
|
-
return displayName.split("-").map((token) => _CodexAcpServer.MODEL_NAME_TOKEN_OVERRIDES[token.toLowerCase()] ?? token).join("-");
|
|
33610
|
-
}
|
|
33611
33607
|
createModelState(availableModels, selectedModelId) {
|
|
33612
33608
|
const allowedModels = availableModels.flatMap(
|
|
33613
33609
|
(model) => model.supportedReasoningEfforts.map((effort) => ({
|
|
33614
33610
|
modelId: ModelId.fromComponents(model, effort.reasoningEffort).toString(),
|
|
33615
|
-
name: `${
|
|
33611
|
+
name: `${formatModelDisplayName(model.displayName)} (${effort.reasoningEffort})`,
|
|
33616
33612
|
description: `${model.description} ${effort.description}`
|
|
33617
33613
|
}))
|
|
33618
33614
|
);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.10.1-preview.
|
|
6
|
+
"version": "1.10.1-preview.3",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"bin": {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@agentclientprotocol/sdk": "^1.4.0",
|
|
69
|
-
"@openai/codex": "^0.153.
|
|
69
|
+
"@openai/codex": "^0.153.4",
|
|
70
70
|
"diff": "^9.0.0",
|
|
71
71
|
"open": "^11.0.1",
|
|
72
72
|
"vscode-jsonrpc": "^9.0.1",
|