@canonmsg/backend-contracts 8.1.0 → 8.1.1

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.
@@ -118,6 +118,13 @@ function shouldPromoteConversationMessage(input) {
118
118
  if (isHiddenRuntimeCardMetadata(input.metadata)) {
119
119
  return false;
120
120
  }
121
+ // Ordinary agent speech can update previews and notify people without
122
+ // opting into automatic agent-to-agent turns. Keep malformed explicit
123
+ // semantics on the existing conservative fallback.
124
+ if (input.metadata == null
125
+ || (isRecord(input.metadata) && input.metadata.turnSemantics === undefined)) {
126
+ return true;
127
+ }
121
128
  return resolveTurnMessageSemantics(input) !== 'progress';
122
129
  }
123
130
  function shouldTriggerAgentTurn(input) {
@@ -107,6 +107,13 @@ export function shouldPromoteConversationMessage(input) {
107
107
  if (isHiddenRuntimeCardMetadata(input.metadata)) {
108
108
  return false;
109
109
  }
110
+ // Ordinary agent speech can update previews and notify people without
111
+ // opting into automatic agent-to-agent turns. Keep malformed explicit
112
+ // semantics on the existing conservative fallback.
113
+ if (input.metadata == null
114
+ || (isRecord(input.metadata) && input.metadata.turnSemantics === undefined)) {
115
+ return true;
116
+ }
110
117
  return resolveTurnMessageSemantics(input) !== 'progress';
111
118
  }
112
119
  export function shouldTriggerAgentTurn(input) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonmsg/backend-contracts",
3
- "version": "8.1.0",
3
+ "version": "8.1.1",
4
4
  "description": "Canon backend contract helpers shared by Functions and stream-service",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.js",