@agentconnect.md/codex-acp 2.6.0-agentconnect.1 → 2.6.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -41951,7 +41951,7 @@ var package_default = {
41951
41951
  publishConfig: {
41952
41952
  access: "public"
41953
41953
  },
41954
- version: "2.6.0-agentconnect.1",
41954
+ version: "2.6.0-agentconnect.2",
41955
41955
  description: "",
41956
41956
  main: "dist/index.js",
41957
41957
  bin: {
@@ -43530,7 +43530,8 @@ var CodexAcpClient = class _CodexAcpClient {
43530
43530
  profiles.push(...response?.data ?? []);
43531
43531
  cursor = response?.nextCursor ?? null;
43532
43532
  } while (cursor !== null);
43533
- return profiles;
43533
+ const internalIds = new Set(Object.values(this.permissionProfileConfig?.modeProfiles ?? {}));
43534
+ return profiles.filter((profile) => !internalIds.has(profile.id));
43534
43535
  }
43535
43536
  getModelProvider() {
43536
43537
  return this.gatewayConfig?.modelProvider ?? this.modelProvider;
@@ -43671,7 +43672,7 @@ var CodexAcpClient = class _CodexAcpClient {
43671
43672
  await this.codexClient.threadSettingsUpdate({
43672
43673
  threadId: sessionId,
43673
43674
  approvalPolicy: this.approvalPolicyForMode(agentMode),
43674
- permissions: permissionProfileForMode(config2, agentMode.id)
43675
+ permissions: agentMode.permissionProfileId ?? permissionProfileForMode(config2, agentMode.id)
43675
43676
  });
43676
43677
  }
43677
43678
  async setCollaborationMode(sessionId, mode, currentModelId) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "2.6.0-agentconnect.1",
6
+ "version": "2.6.0-agentconnect.2",
7
7
  "description": "",
8
8
  "main": "dist/index.js",
9
9
  "bin": {