oh-my-opencode-cohub 1.12.9-beta.5 → 1.12.9-beta.6

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/cli/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  // package.json
3
- var version = "1.12.9-beta.5";
3
+ var version = "1.12.9-beta.6";
4
4
 
5
5
  // src/cli/config-io.ts
6
6
  import * as fs from "node:fs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAyHlD,QAAA,MAAM,WAAW,EAAE,MAkiBlB,CAAC;AAEF,eAAO,MAAM,MAAM,QAAc,CAAC;AAClC,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAyHlD,QAAA,MAAM,WAAW,EAAE,MA6gBlB,CAAC;AAEF,eAAO,MAAM,MAAM,QAAc,CAAC;AAClC,eAAe,WAAW,CAAC"}
package/dist/index.js CHANGED
@@ -2066,29 +2066,6 @@ ${ORCHESTRATOR_PROMPT}
2066
2066
  appendLog("messages.transform", `⚠️ 注入后 content 为空,已设空格占位 (session=${sessionID?.slice(0, 20) ?? "?"})`);
2067
2067
  }
2068
2068
  }
2069
- for (let i = 0;i < output.messages.length; i++) {
2070
- const msg = output.messages[i];
2071
- const parts = msg.parts ?? [];
2072
- let totalText = "";
2073
- for (const p of parts) {
2074
- if (p.type === "text" && p.text)
2075
- totalText += p.text;
2076
- }
2077
- if (!totalText.trim() && parts.length > 0) {
2078
- let found = false;
2079
- for (const p of parts) {
2080
- if (p.type === "text") {
2081
- p.text = " ";
2082
- found = true;
2083
- break;
2084
- }
2085
- }
2086
- if (!found) {
2087
- parts.push({ type: "text", text: " " });
2088
- }
2089
- appendLog("messages.transform", `⚠️ 消息[${i}] role=${msg.info?.role ?? "?"} content为空,已设占位 (session=${sessionID?.slice(0, 20) ?? "?"})`);
2090
- }
2091
- }
2092
2069
  } catch (err) {
2093
2070
  appendLog("messages.transform", "hook 失败", err);
2094
2071
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode-cohub",
3
- "version": "1.12.9-beta.5",
3
+ "version": "1.12.9-beta.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Mr-cjf/oh-my-opencode-cohub.git"