@sjhmars/happy-bridge 0.3.6 → 0.3.7

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/lib/client.js CHANGED
@@ -17,21 +17,21 @@ window.__ModuleLoader__.load({
17
17
  document.head.appendChild(tag);
18
18
  }
19
19
  var HappyBridgeCard_module_css_default = {
20
- "description": "l9rBEq_description",
21
20
  "headText": "l9rBEq_headText",
22
- "error": "l9rBEq_error",
23
- "select": "l9rBEq_select",
24
- "row": "l9rBEq_row",
25
- "body": "l9rBEq_body",
21
+ "name": "l9rBEq_name",
22
+ "card": "l9rBEq_card",
26
23
  "status": "l9rBEq_status",
27
- "label": "l9rBEq_label",
24
+ "description": "l9rBEq_description",
28
25
  "header": "l9rBEq_header",
29
- "card": "l9rBEq_card",
26
+ "error": "l9rBEq_error",
27
+ "select": "l9rBEq_select",
30
28
  "button": "l9rBEq_button",
31
- "checkbox": "l9rBEq_checkbox",
32
- "chevron": "l9rBEq_chevron",
33
29
  "qr": "l9rBEq_qr",
34
- "name": "l9rBEq_name"
30
+ "body": "l9rBEq_body",
31
+ "checkbox": "l9rBEq_checkbox",
32
+ "label": "l9rBEq_label",
33
+ "row": "l9rBEq_row",
34
+ "chevron": "l9rBEq_chevron"
35
35
  };
36
36
  //#endregion
37
37
  //#region src/client/HappyBridgeCard.tsx
package/lib/index.js CHANGED
@@ -3788,12 +3788,13 @@ var HappyBridge = class {
3788
3788
  const model = messageModelCode(meta);
3789
3789
  const effort = messageEffort(meta);
3790
3790
  const permissionMode = meta.permissionMode;
3791
- const publishedModel = this.lastPublished.get(agent.id)?.model;
3792
- const modelIsEcho = model !== void 0 && publishedModel !== void 0 && sameCatalogPick({ model: publishedModel }, { model });
3791
+ const published = this.lastPublished.get(agent.id);
3792
+ const modelIsEcho = model !== void 0 && published?.model !== void 0 && sameCatalogPick({ model: published.model }, { model });
3793
+ const effortIsEcho = effort !== void 0 && published?.effort != null && effort === published.effort;
3793
3794
  if (model !== void 0 && !modelIsEcho) {
3794
3795
  if (!grantAtLeast(this.config.remoteGrant, "full")) link.socket.sendText("service", "改模型需要远程档「完整」,这条消息仍会发出。");
3795
3796
  else this.applyModel(agent, model, typeof effort === "string" ? effort : effort === null ? null : void 0);
3796
- } else if (effort === null || typeof effort === "string") {
3797
+ } else if ((effort === null || typeof effort === "string") && !effortIsEcho) {
3797
3798
  if (!grantAtLeast(this.config.remoteGrant, "full")) link.socket.sendText("service", "改思考强度需要远程档「完整」,这条消息仍会发出。");
3798
3799
  else if (effort === null) {
3799
3800
  const current = this.currentModel(agent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjhmars/happy-bridge",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Remote-control bridge: pair a running dsh web/desktop client with the Happy mobile app by QR code, then remote-control the same harness sessions from the phone (send messages, read replies, approve tool calls, switch models)",
5
5
  "keywords": [
6
6
  "deepseek-harness",