@openma/deepseek-harness-acp 0.4.7 → 0.4.8

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/bridge.js +8 -2
  2. package/package.json +1 -1
package/dist/bridge.js CHANGED
@@ -1612,6 +1612,13 @@ function installAcpUserQuestionProvider(service, options) {
1612
1612
  });
1613
1613
  }
1614
1614
 
1615
+ // src/bridge/presets.ts
1616
+ function presetDisplayName(preset) {
1617
+ if (preset.id === "cordis") return "Creator";
1618
+ const name3 = preset.name?.trim();
1619
+ return name3 !== void 0 && name3.length > 0 ? name3 : preset.id;
1620
+ }
1621
+
1615
1622
  // src/bridge/index.ts
1616
1623
  var name = "acp-bridge";
1617
1624
  var inject = ["agents", "credentials", "llm", "agentDefaultModel", "sessionPersistence", "approval", "permissionPresets", "commands", "agentPresets", "skills", "subagents", "userQuestions"];
@@ -2079,7 +2086,6 @@ async function apply(ctx, config = {}) {
2079
2086
  }
2080
2087
  return header?.agentPreset;
2081
2088
  };
2082
- const presetLabel = (id) => id.charAt(0).toUpperCase() + id.slice(1);
2083
2089
  const modeState = (record) => {
2084
2090
  const permission = permissionService();
2085
2091
  if (permission.names.length > 0) {
@@ -2286,7 +2292,7 @@ async function apply(ctx, config = {}) {
2286
2292
  currentValue: record.preset,
2287
2293
  options: roster.map((preset) => ({
2288
2294
  value: preset.id,
2289
- name: presetLabel(preset.id),
2295
+ name: presetDisplayName(preset),
2290
2296
  description: `Agent preset \u201C${preset.id}\u201D`
2291
2297
  }))
2292
2298
  });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.4.7",
6
+ "version": "0.4.8",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/openma-ai/deepseek-harness-acp.git"