@openma/deepseek-harness-acp 0.4.7 → 0.4.9

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